@po-ui/ng-components 6.10.0 → 6.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/po-button/po-button-base.component.mjs +64 -14
- package/esm2020/lib/components/po-button/po-button-type.enum.mjs +10 -0
- package/esm2020/lib/components/po-button/po-button.component.mjs +4 -4
- package/esm2020/lib/components/po-dynamic/po-dynamic-field.interface.mjs +1 -1
- package/esm2020/lib/components/po-dynamic/po-dynamic-form/po-dynamic-form-fields/po-dynamic-form-fields-base.component.mjs +12 -2
- package/esm2020/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.mjs +12 -2
- package/esm2020/lib/components/po-dynamic/po-dynamic.util.mjs +18 -11
- package/esm2020/lib/components/po-field/index.mjs +2 -1
- package/esm2020/lib/components/po-field/po-checkbox/po-checkbox.module.mjs +20 -0
- package/esm2020/lib/components/po-field/po-combo/po-combo-base.component.mjs +2 -1
- package/esm2020/lib/components/po-field/po-field.module.mjs +15 -13
- package/esm2020/lib/components/po-field/po-upload/po-upload.component.mjs +3 -3
- package/esm2020/lib/components/po-list-view/po-list-view.component.mjs +4 -4
- package/esm2020/lib/components/po-menu/po-menu-base.component.mjs +46 -6
- package/esm2020/lib/components/po-menu/po-menu.component.mjs +5 -5
- package/esm2020/lib/components/po-modal/po-modal-footer/po-modal-footer.component.mjs +2 -2
- package/esm2020/lib/components/po-modal/po-modal.component.mjs +6 -6
- package/esm2020/lib/components/po-page/po-page-default/po-page-default.component.mjs +3 -3
- package/esm2020/lib/components/po-page/po-page-detail/po-page-detail.component.mjs +7 -7
- package/esm2020/lib/components/po-page/po-page-edit/po-page-edit.component.mjs +6 -6
- package/esm2020/lib/components/po-page/po-page-list/po-page-list.component.mjs +3 -3
- package/esm2020/lib/components/po-table/po-table-base.component.mjs +6 -2
- package/esm2020/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.mjs +19 -5
- package/esm2020/lib/components/po-table/po-table-detail/po-table-detail.component.mjs +40 -40
- package/esm2020/lib/components/po-table/po-table.component.mjs +441 -438
- package/esm2020/lib/components/po-table/po-table.module.mjs +12 -4
- package/esm2020/lib/services/po-notification/po-notification-base.service.mjs +6 -4
- package/esm2020/lib/services/po-notification/po-notification.interface.mjs +1 -1
- package/esm2020/lib/services/po-notification/po-notification.module.mjs +6 -4
- package/esm2020/lib/services/po-notification/po-notification.service.mjs +3 -2
- package/esm2020/lib/services/po-notification/po-toaster/po-toaster.component.mjs +49 -32
- package/esm2020/lib/services/po-notification/po-toaster/po-toaster.literals.mjs +15 -0
- package/fesm2015/po-ui-ng-components.mjs +1078 -886
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +1070 -871
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-button/po-button-base.component.d.ts +40 -9
- package/lib/components/po-button/po-button-type.enum.d.ts +8 -0
- package/lib/components/po-dynamic/po-dynamic-field.interface.d.ts +44 -0
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +5 -0
- package/lib/components/po-dynamic/po-dynamic.util.d.ts +1 -1
- package/lib/components/po-field/index.d.ts +1 -0
- package/lib/components/po-field/po-checkbox/po-checkbox.module.d.ts +9 -0
- package/lib/components/po-field/po-field.module.d.ts +54 -54
- package/lib/components/po-menu/po-menu-base.component.d.ts +19 -1
- package/lib/components/po-modal/po-modal-footer/po-modal-footer.component.d.ts +1 -1
- package/lib/components/po-modal/po-modal.component.d.ts +1 -1
- package/lib/components/po-table/po-table-base.component.d.ts +2 -0
- package/lib/components/po-table/po-table-column-manager/po-table-column-manager.component.d.ts +3 -0
- package/lib/components/po-table/po-table.component.d.ts +2 -0
- package/lib/components/po-table/po-table.module.d.ts +14 -12
- package/lib/services/po-notification/po-notification-base.service.d.ts +4 -2
- package/lib/services/po-notification/po-notification.interface.d.ts +5 -1
- package/lib/services/po-notification/po-notification.module.d.ts +3 -1
- package/lib/services/po-notification/po-toaster/po-toaster.component.d.ts +5 -1
- package/lib/services/po-notification/po-toaster/po-toaster.literals.d.ts +14 -0
- package/package.json +4 -4
- package/po-ui-ng-components-6.12.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.spec.js +5 -5
- package/schematics/ng-generate/po-page-default/index.spec.js +12 -12
- package/schematics/ng-generate/po-page-detail/index.spec.js +12 -12
- package/schematics/ng-generate/po-page-edit/index.spec.js +12 -12
- package/schematics/ng-generate/po-page-list/index.spec.js +12 -12
- package/schematics/ng-generate/sidemenu/index.spec.js +4 -4
- package/schematics/ng-update/v2/index.js +1 -1
- package/schematics/ng-update/v3/index.js +1 -1
- package/schematics/ng-update/v4/index.js +1 -1
- package/schematics/ng-update/v5/index.js +1 -1
- package/schematics/ng-update/v6/index.js +1 -1
- package/po-ui-ng-components-6.10.0.tgz +0 -0
|
@@ -13,6 +13,8 @@ import { __decorate, __param } from 'tslib';
|
|
|
13
13
|
import * as i3 from '@angular/forms';
|
|
14
14
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule, NgControl, ControlContainer, NgForm } from '@angular/forms';
|
|
15
15
|
import { debounceTime, concatMap, mapTo, scan, tap, switchMap, map, filter, distinctUntilChanged, finalize, catchError, takeWhile, delay, take } from 'rxjs/operators';
|
|
16
|
+
import * as i13 from '@angular/cdk/scrolling';
|
|
17
|
+
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
16
18
|
import * as i3$1 from '@angular/platform-browser';
|
|
17
19
|
|
|
18
20
|
/**
|
|
@@ -1593,7 +1595,7 @@ PoBreadcrumbDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
1593
1595
|
}] }); })();
|
|
1594
1596
|
|
|
1595
1597
|
const _c0$1r = ["breadcrumb"];
|
|
1596
|
-
const _c1$
|
|
1598
|
+
const _c1$C = ["dropdownIcon"];
|
|
1597
1599
|
function PoBreadcrumbComponent_li_3_Template(rf, ctx) { if (rf & 1) {
|
|
1598
1600
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
1599
1601
|
i0.ɵɵelementStart(0, "li", 7, 8);
|
|
@@ -1768,7 +1770,7 @@ class PoBreadcrumbComponent extends PoBreadcrumbBaseComponent {
|
|
|
1768
1770
|
PoBreadcrumbComponent.ɵfac = function PoBreadcrumbComponent_Factory(t) { return new (t || PoBreadcrumbComponent)(i0.ɵɵdirectiveInject(i0.IterableDiffers), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
1769
1771
|
PoBreadcrumbComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoBreadcrumbComponent, selectors: [["po-breadcrumb"]], viewQuery: function PoBreadcrumbComponent_Query(rf, ctx) { if (rf & 1) {
|
|
1770
1772
|
i0.ɵɵviewQuery(_c0$1r, 7, ElementRef);
|
|
1771
|
-
i0.ɵɵviewQuery(_c1$
|
|
1773
|
+
i0.ɵɵviewQuery(_c1$C, 5, ElementRef);
|
|
1772
1774
|
} if (rf & 2) {
|
|
1773
1775
|
let _t;
|
|
1774
1776
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.breadcrumbElement = _t.first);
|
|
@@ -2304,21 +2306,28 @@ function validateProperty(property, target) {
|
|
|
2304
2306
|
}
|
|
2305
2307
|
}
|
|
2306
2308
|
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
+
var PoButtonKind;
|
|
2310
|
+
(function (PoButtonKind) {
|
|
2311
|
+
PoButtonKind["primary"] = "primary";
|
|
2312
|
+
PoButtonKind["default"] = "secondary";
|
|
2313
|
+
PoButtonKind["secondary"] = "secondary";
|
|
2314
|
+
PoButtonKind["link"] = "tertiary";
|
|
2315
|
+
PoButtonKind["tertiary"] = "tertiary";
|
|
2316
|
+
PoButtonKind["danger"] = "danger";
|
|
2317
|
+
})(PoButtonKind || (PoButtonKind = {}));
|
|
2318
|
+
|
|
2309
2319
|
/**
|
|
2310
2320
|
* @description
|
|
2311
2321
|
*
|
|
2312
2322
|
* O `po-button` permite que o usuário execute ações predefinidas pelo desenvolvedor.
|
|
2313
2323
|
*
|
|
2314
|
-
* Através dos tipos, é possível identificar a importância de cada ação
|
|
2315
|
-
* ação irreversível (`danger`), como a exclusão de um registro.
|
|
2324
|
+
* Através dos tipos, é possível identificar a importância de cada ação.
|
|
2316
2325
|
*
|
|
2317
2326
|
* #### Boas práticas
|
|
2318
2327
|
*
|
|
2319
2328
|
* - Evite `labels` extensos que quebram o layout do `po-button`, use `labels` diretos, curtos e intuitivos.
|
|
2320
2329
|
* - Utilize apenas um `po-button` configurado como `primary` por página.
|
|
2321
|
-
* - Para ações irreversíveis use sempre
|
|
2330
|
+
* - Para ações irreversíveis use sempre a propriedade `p-danger`.
|
|
2322
2331
|
*/
|
|
2323
2332
|
class PoButtonBaseComponent {
|
|
2324
2333
|
constructor() {
|
|
@@ -2340,10 +2349,11 @@ class PoButtonBaseComponent {
|
|
|
2340
2349
|
this.autoFocus = false;
|
|
2341
2350
|
/** Ação que será executada quando o usuário clicar sobre o `po-button`. */
|
|
2342
2351
|
this.click = new EventEmitter();
|
|
2352
|
+
this._danger = false;
|
|
2343
2353
|
this._disabled = false;
|
|
2344
2354
|
this._loading = false;
|
|
2345
2355
|
this._small = false;
|
|
2346
|
-
this.
|
|
2356
|
+
this._kind = PoButtonKind.secondary;
|
|
2347
2357
|
}
|
|
2348
2358
|
/**
|
|
2349
2359
|
* @optional
|
|
@@ -2378,25 +2388,67 @@ class PoButtonBaseComponent {
|
|
|
2378
2388
|
return this._small;
|
|
2379
2389
|
}
|
|
2380
2390
|
/**
|
|
2391
|
+
* @deprecated 15.x.x
|
|
2392
|
+
*
|
|
2381
2393
|
* @optional
|
|
2382
2394
|
*
|
|
2383
2395
|
* @description
|
|
2384
2396
|
*
|
|
2397
|
+
* **Deprecated 15.x.x**. Utilizar `p-kind` no lugar.
|
|
2398
|
+
*
|
|
2385
2399
|
* Define o estilo do `po-button`.
|
|
2386
2400
|
*
|
|
2387
2401
|
* Valore válidos:
|
|
2388
|
-
* - `default`:
|
|
2402
|
+
* - `default`: **Deprecated 15.x.x**. Utilizar `p-kind="secondary"`.
|
|
2389
2403
|
* - `primary`: deixa o `po-button` com destaque, deve ser usado para ações primárias.
|
|
2390
|
-
* - `danger`:
|
|
2391
|
-
* - `link`:
|
|
2404
|
+
* - `danger`: **Deprecated 15.x.x**. Utilizar `p-danger`.
|
|
2405
|
+
* - `link`: **Deprecated 15.x.x**. Utilizar `p-kind="tertiary"`.
|
|
2392
2406
|
*
|
|
2393
|
-
* @default `
|
|
2407
|
+
* @default `secondary`
|
|
2394
2408
|
*/
|
|
2395
2409
|
set type(value) {
|
|
2396
|
-
this.
|
|
2410
|
+
this.kind = value;
|
|
2397
2411
|
}
|
|
2398
2412
|
get type() {
|
|
2399
|
-
return this.
|
|
2413
|
+
return this.kind;
|
|
2414
|
+
}
|
|
2415
|
+
/**
|
|
2416
|
+
* @optional
|
|
2417
|
+
*
|
|
2418
|
+
* @description
|
|
2419
|
+
*
|
|
2420
|
+
* Deve ser usado em ações irreversíveis que o usuário precisa ter cuidado ao executá-la, como a exclusão de um registro.
|
|
2421
|
+
*
|
|
2422
|
+
* > Ao utilizar esta propriedade será atribuído `p-kind="secondary"`.
|
|
2423
|
+
*/
|
|
2424
|
+
set danger(value) {
|
|
2425
|
+
this._danger = value;
|
|
2426
|
+
if (this._danger) {
|
|
2427
|
+
this.kind = PoButtonKind.secondary;
|
|
2428
|
+
}
|
|
2429
|
+
}
|
|
2430
|
+
get danger() {
|
|
2431
|
+
return this._danger;
|
|
2432
|
+
}
|
|
2433
|
+
/**
|
|
2434
|
+
* @optional
|
|
2435
|
+
*
|
|
2436
|
+
* @description
|
|
2437
|
+
*
|
|
2438
|
+
* Define o estilo do `po-button`.
|
|
2439
|
+
*
|
|
2440
|
+
* Valore válidos:
|
|
2441
|
+
* - `primary`: deixa o `po-button` com destaque, deve ser usado para ações primárias.
|
|
2442
|
+
* - `secondary`: estilo padrão do `po-button`.
|
|
2443
|
+
* - `tertiary`: o `po-button` é exibido sem cor do fundo, recebendo menos destaque entre as ações.
|
|
2444
|
+
*
|
|
2445
|
+
* @default `secondary`
|
|
2446
|
+
*/
|
|
2447
|
+
set kind(value) {
|
|
2448
|
+
this._kind = PoButtonKind[value] && !this.danger ? PoButtonKind[value] : PoButtonKind.secondary;
|
|
2449
|
+
}
|
|
2450
|
+
get kind() {
|
|
2451
|
+
return this._kind;
|
|
2400
2452
|
}
|
|
2401
2453
|
/**
|
|
2402
2454
|
* @optional
|
|
@@ -2415,10 +2467,13 @@ class PoButtonBaseComponent {
|
|
|
2415
2467
|
}
|
|
2416
2468
|
}
|
|
2417
2469
|
PoButtonBaseComponent.ɵfac = function PoButtonBaseComponent_Factory(t) { return new (t || PoButtonBaseComponent)(); };
|
|
2418
|
-
PoButtonBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoButtonBaseComponent, inputs: { autoFocus: ["p-auto-focus", "autoFocus"], label: ["p-label", "label"], icon: ["p-icon", "icon"], loading: ["p-loading", "loading"], small: ["p-small", "small"], type: ["p-type", "type"], disabled: ["p-disabled", "disabled"] }, outputs: { click: "p-click" } });
|
|
2470
|
+
PoButtonBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoButtonBaseComponent, inputs: { autoFocus: ["p-auto-focus", "autoFocus"], label: ["p-label", "label"], icon: ["p-icon", "icon"], loading: ["p-loading", "loading"], small: ["p-small", "small"], type: ["p-type", "type"], danger: ["p-danger", "danger"], kind: ["p-kind", "kind"], disabled: ["p-disabled", "disabled"] }, outputs: { click: "p-click" } });
|
|
2419
2471
|
__decorate([
|
|
2420
2472
|
InputBoolean()
|
|
2421
2473
|
], PoButtonBaseComponent.prototype, "autoFocus", void 0);
|
|
2474
|
+
__decorate([
|
|
2475
|
+
InputBoolean()
|
|
2476
|
+
], PoButtonBaseComponent.prototype, "danger", null);
|
|
2422
2477
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoButtonBaseComponent, [{
|
|
2423
2478
|
type: Directive
|
|
2424
2479
|
}], null, { autoFocus: [{
|
|
@@ -2442,6 +2497,12 @@ __decorate([
|
|
|
2442
2497
|
}], type: [{
|
|
2443
2498
|
type: Input,
|
|
2444
2499
|
args: ['p-type']
|
|
2500
|
+
}], danger: [{
|
|
2501
|
+
type: Input,
|
|
2502
|
+
args: ['p-danger']
|
|
2503
|
+
}], kind: [{
|
|
2504
|
+
type: Input,
|
|
2505
|
+
args: ['p-kind']
|
|
2445
2506
|
}], disabled: [{
|
|
2446
2507
|
type: Input,
|
|
2447
2508
|
args: ['p-disabled']
|
|
@@ -2530,7 +2591,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2530
2591
|
} if (rf & 2) {
|
|
2531
2592
|
let _t;
|
|
2532
2593
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.buttonElement = _t.first);
|
|
2533
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 16, consts: [["type", "button", 1, "po-button",
|
|
2594
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 16, consts: [["type", "button", 1, "po-button", 3, "disabled", "click"], ["button", ""], ["class", "po-button-loading-icon", 4, "ngIf"], ["class", "po-button-icon", 3, "p-icon", 4, "ngIf"], ["class", "po-button-label", 4, "ngIf"], [1, "po-button-loading-icon"], ["p-neutral-color", ""], [1, "po-button-icon", 3, "p-icon"], [1, "po-button-label"]], template: function PoButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
2534
2595
|
i0.ɵɵelementStart(0, "button", 0, 1);
|
|
2535
2596
|
i0.ɵɵlistener("click", function PoButtonComponent_Template_button_click_0_listener() { return ctx.onClick(); });
|
|
2536
2597
|
i0.ɵɵtemplate(2, PoButtonComponent_div_2_Template, 2, 0, "div", 2);
|
|
@@ -2538,7 +2599,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2538
2599
|
i0.ɵɵtemplate(4, PoButtonComponent_span_4_Template, 2, 1, "span", 4);
|
|
2539
2600
|
i0.ɵɵelementEnd();
|
|
2540
2601
|
} if (rf & 2) {
|
|
2541
|
-
i0.ɵɵclassProp("po-button-default", ctx.
|
|
2602
|
+
i0.ɵɵclassProp("po-button-default", ctx.kind === "secondary")("po-button-danger", ctx.kind === "danger" || ctx.danger)("po-button-link", ctx.kind === "tertiary")("po-button-primary", ctx.kind === "primary")("po-button-sm", ctx.small)("po-clickable", ctx.kind === "link");
|
|
2542
2603
|
i0.ɵɵproperty("disabled", ctx.disabled || ctx.loading);
|
|
2543
2604
|
i0.ɵɵadvance(2);
|
|
2544
2605
|
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
@@ -2549,7 +2610,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2549
2610
|
} }, directives: [i1.NgIf, PoLoadingIconComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
2550
2611
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoButtonComponent, [{
|
|
2551
2612
|
type: Component,
|
|
2552
|
-
args: [{ selector: 'po-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n #button\n class=\"po-button
|
|
2613
|
+
args: [{ selector: 'po-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n #button\n class=\"po-button\"\n type=\"button\"\n [class.po-button-default]=\"kind === 'secondary'\"\n [class.po-button-danger]=\"kind === 'danger' || danger\"\n [class.po-button-link]=\"kind === 'tertiary'\"\n [class.po-button-primary]=\"kind === 'primary'\"\n [class.po-button-sm]=\"small\"\n [class.po-clickable]=\"kind === 'link'\"\n [disabled]=\"disabled || loading\"\n (click)=\"onClick()\"\n>\n <div *ngIf=\"loading\" class=\"po-button-loading-icon\">\n <po-loading-icon p-neutral-color></po-loading-icon>\n </div>\n\n <po-icon *ngIf=\"icon\" class=\"po-button-icon\" [p-icon]=\"icon\"></po-icon>\n <span *ngIf=\"label\" class=\"po-button-label\">{{ label }}</span>\n</button>\n" }]
|
|
2553
2614
|
}], null, { buttonElement: [{
|
|
2554
2615
|
type: ViewChild,
|
|
2555
2616
|
args: ['button', { static: true }]
|
|
@@ -4609,7 +4670,7 @@ function PoCalendarComponent_ng_template_1_ng_container_2_Template(rf, ctx) { if
|
|
|
4609
4670
|
i0.ɵɵadvance(1);
|
|
4610
4671
|
i0.ɵɵproperty("ngTemplateOutlet", _r5)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c0$1o));
|
|
4611
4672
|
} }
|
|
4612
|
-
const _c1$
|
|
4673
|
+
const _c1$B = function () { return { partType: "start" }; };
|
|
4613
4674
|
function PoCalendarComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
4614
4675
|
i0.ɵɵelementStart(0, "div", 4);
|
|
4615
4676
|
i0.ɵɵtemplate(1, PoCalendarComponent_ng_template_1_ng_container_1_Template, 1, 0, "ng-container", 5);
|
|
@@ -4619,7 +4680,7 @@ function PoCalendarComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
4619
4680
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
4620
4681
|
const _r5 = i0.ɵɵreference(6);
|
|
4621
4682
|
i0.ɵɵadvance(1);
|
|
4622
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r5)("ngTemplateOutletContext", i0.ɵɵpureFunction0(3, _c1$
|
|
4683
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r5)("ngTemplateOutletContext", i0.ɵɵpureFunction0(3, _c1$B));
|
|
4623
4684
|
i0.ɵɵadvance(1);
|
|
4624
4685
|
i0.ɵɵproperty("ngIf", !ctx_r2.isResponsive);
|
|
4625
4686
|
} }
|
|
@@ -5213,7 +5274,7 @@ PoChartLineBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: Po
|
|
|
5213
5274
|
}] }); })();
|
|
5214
5275
|
|
|
5215
5276
|
const _c0$1m = ["chartPath"];
|
|
5216
|
-
const _c1$
|
|
5277
|
+
const _c1$A = ["po-chart-path", ""];
|
|
5217
5278
|
const pathDashoffsetDefaultWidth = 0;
|
|
5218
5279
|
class PoChartPathComponent {
|
|
5219
5280
|
constructor(changeDetector) {
|
|
@@ -5257,7 +5318,7 @@ PoChartPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChar
|
|
|
5257
5318
|
} if (rf & 2) {
|
|
5258
5319
|
let _t;
|
|
5259
5320
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chartPath = _t.first);
|
|
5260
|
-
} }, inputs: { isActive: ["p-is-active", "isActive"], chartLine: ["p-chart-line", "chartLine"], coordinates: ["p-coordinates", "coordinates"], color: ["p-color", "color"], animate: ["p-animate", "animate"] }, attrs: _c1$
|
|
5321
|
+
} }, inputs: { isActive: ["p-is-active", "isActive"], chartLine: ["p-chart-line", "chartLine"], coordinates: ["p-coordinates", "coordinates"], color: ["p-color", "color"], animate: ["p-animate", "animate"] }, attrs: _c1$A, decls: 2, vars: 11, consts: [[1, "po-chart-path"], ["chartPath", ""]], template: function PoChartPathComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5261
5322
|
i0.ɵɵnamespaceSVG();
|
|
5262
5323
|
i0.ɵɵelement(0, "path", 0, 1);
|
|
5263
5324
|
} if (rf & 2) {
|
|
@@ -6780,7 +6841,7 @@ PoChartLineComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChar
|
|
|
6780
6841
|
}], function () { return [{ type: PoChartMathsService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, null); })();
|
|
6781
6842
|
|
|
6782
6843
|
const _c0$1c = ["svgPaths"];
|
|
6783
|
-
const _c1$
|
|
6844
|
+
const _c1$z = ["svgLabels"];
|
|
6784
6845
|
class PoChartCircularComponent {
|
|
6785
6846
|
constructor(ngZone, changeDetector) {
|
|
6786
6847
|
this.ngZone = ngZone;
|
|
@@ -6906,7 +6967,7 @@ class PoChartCircularComponent {
|
|
|
6906
6967
|
PoChartCircularComponent.ɵfac = function PoChartCircularComponent_Factory(t) { return new (t || PoChartCircularComponent)(i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
6907
6968
|
PoChartCircularComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoChartCircularComponent, viewQuery: function PoChartCircularComponent_Query(rf, ctx) { if (rf & 1) {
|
|
6908
6969
|
i0.ɵɵviewQuery(_c0$1c, 5);
|
|
6909
|
-
i0.ɵɵviewQuery(_c1$
|
|
6970
|
+
i0.ɵɵviewQuery(_c1$z, 5);
|
|
6910
6971
|
} if (rf & 2) {
|
|
6911
6972
|
let _t;
|
|
6912
6973
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.svgPaths = _t);
|
|
@@ -7020,7 +7081,7 @@ PoChartTooltipDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoC
|
|
|
7020
7081
|
}] }); })();
|
|
7021
7082
|
|
|
7022
7083
|
const _c0$1b = ["svgPath"];
|
|
7023
|
-
const _c1$
|
|
7084
|
+
const _c1$y = ["po-chart-circular-path", ""];
|
|
7024
7085
|
class PoChartCircularPathComponent {
|
|
7025
7086
|
constructor(renderer) {
|
|
7026
7087
|
this.renderer = renderer;
|
|
@@ -7045,7 +7106,7 @@ PoChartCircularPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
7045
7106
|
} if (rf & 2) {
|
|
7046
7107
|
let _t;
|
|
7047
7108
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.svgPath = _t.first);
|
|
7048
|
-
} }, inputs: { serie: ["p-serie", "serie"] }, outputs: { onClick: "p-on-click", onHover: "p-on-hover" }, attrs: _c1$
|
|
7109
|
+
} }, inputs: { serie: ["p-serie", "serie"] }, outputs: { onClick: "p-on-click", onHover: "p-on-hover" }, attrs: _c1$y, decls: 2, vars: 4, consts: [[1, "po-path-item", 3, "p-chart-tooltip", "click", "mouseenter"], ["svgPath", ""]], template: function PoChartCircularPathComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7049
7110
|
i0.ɵɵnamespaceSVG();
|
|
7050
7111
|
i0.ɵɵelementStart(0, "path", 0, 1);
|
|
7051
7112
|
i0.ɵɵlistener("click", function PoChartCircularPathComponent_Template__svg_path_click_0_listener() { return ctx.onMouseClick(); })("mouseenter", function PoChartCircularPathComponent_Template__svg_path_mouseenter_0_listener() { return ctx.onMouseEnter(); });
|
|
@@ -7073,7 +7134,7 @@ PoChartCircularPathComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type
|
|
|
7073
7134
|
}] }); })();
|
|
7074
7135
|
|
|
7075
7136
|
const _c0$1a = ["svgLabel"];
|
|
7076
|
-
const _c1$
|
|
7137
|
+
const _c1$x = ["po-chart-circular-label", ""];
|
|
7077
7138
|
class PoChartCircularLabelComponent {
|
|
7078
7139
|
constructor(changeDetection, renderer) {
|
|
7079
7140
|
this.changeDetection = changeDetection;
|
|
@@ -7092,7 +7153,7 @@ PoChartCircularLabelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
7092
7153
|
} if (rf & 2) {
|
|
7093
7154
|
let _t;
|
|
7094
7155
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.svgLabel = _t.first);
|
|
7095
|
-
} }, inputs: { serie: ["p-serie", "serie"], showLabel: ["p-show-label", "showLabel"] }, attrs: _c1$
|
|
7156
|
+
} }, inputs: { serie: ["p-serie", "serie"], showLabel: ["p-show-label", "showLabel"] }, attrs: _c1$x, decls: 3, vars: 6, consts: [["dominant-baseline", "middle", 1, "po-chart-label"], ["svgLabel", ""]], template: function PoChartCircularLabelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7096
7157
|
i0.ɵɵnamespaceSVG();
|
|
7097
7158
|
i0.ɵɵelementStart(0, "text", 0, 1);
|
|
7098
7159
|
i0.ɵɵtext(2);
|
|
@@ -7644,7 +7705,7 @@ PoChartLegendComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCh
|
|
|
7644
7705
|
}] }); })();
|
|
7645
7706
|
|
|
7646
7707
|
const _c0$16 = ["chartContainer"];
|
|
7647
|
-
const _c1$
|
|
7708
|
+
const _c1$w = ["chartHeader"];
|
|
7648
7709
|
const _c2$f = ["chartLegend"];
|
|
7649
7710
|
const _c3$9 = ["chartWrapper"];
|
|
7650
7711
|
function PoChartComponent_ng_template_7_Template(rf, ctx) { }
|
|
@@ -7829,7 +7890,7 @@ class PoChartComponent extends PoChartBaseComponent {
|
|
|
7829
7890
|
PoChartComponent.ɵfac = function PoChartComponent_Factory(t) { return new (t || PoChartComponent)(i0.ɵɵdirectiveInject(PoColorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PoChartSvgContainerService), i0.ɵɵdirectiveInject(i0.ComponentFactoryResolver), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(PoChartMathsService), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
7830
7891
|
PoChartComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoChartComponent, selectors: [["po-chart"]], viewQuery: function PoChartComponent_Query(rf, ctx) { if (rf & 1) {
|
|
7831
7892
|
i0.ɵɵviewQuery(_c0$16, 7, ViewContainerRef);
|
|
7832
|
-
i0.ɵɵviewQuery(_c1$
|
|
7893
|
+
i0.ɵɵviewQuery(_c1$w, 7);
|
|
7833
7894
|
i0.ɵɵviewQuery(_c2$f, 5, ElementRef);
|
|
7834
7895
|
i0.ɵɵviewQuery(_c3$9, 7);
|
|
7835
7896
|
} if (rf & 2) {
|
|
@@ -8914,7 +8975,7 @@ function PoPopupComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
8914
8975
|
i0.ɵɵadvance(3);
|
|
8915
8976
|
i0.ɵɵproperty("ngForOf", ctx_r0.actions);
|
|
8916
8977
|
} }
|
|
8917
|
-
const _c1$
|
|
8978
|
+
const _c1$v = [[["", "p-popup-header-template", ""]]];
|
|
8918
8979
|
const _c2$e = ["[p-popup-header-template]"];
|
|
8919
8980
|
/**
|
|
8920
8981
|
*
|
|
@@ -9069,7 +9130,7 @@ PoPopupComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPopupCom
|
|
|
9069
9130
|
let _t;
|
|
9070
9131
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popupRef = _t.first);
|
|
9071
9132
|
} }, features: [i0.ɵɵProvidersFeature([PoControlPositionService]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c2$e, decls: 1, vars: 1, consts: [["class", "po-popup", 4, "ngIf"], [1, "po-popup"], ["popupRef", ""], [3, "class", 4, "ngIf"], [1, "po-popup-container"], [4, "ngFor", "ngForOf"], [3, "po-popup-item-default", "po-popup-item-danger", "po-popup-item-disabled", "po-popup-item-separator", "po-popup-item-selected", "click", 4, "ngIf"], [3, "click"], ["class", "po-popup-icon-item po-icon", 3, "p-icon", 4, "ngIf"], [1, "po-popup-icon-item", "po-icon", 3, "p-icon"]], template: function PoPopupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9072
|
-
i0.ɵɵprojectionDef(_c1$
|
|
9133
|
+
i0.ɵɵprojectionDef(_c1$v);
|
|
9073
9134
|
i0.ɵɵtemplate(0, PoPopupComponent_div_0_Template, 6, 2, "div", 0);
|
|
9074
9135
|
} if (rf & 2) {
|
|
9075
9136
|
i0.ɵɵproperty("ngIf", ctx.showPopup);
|
|
@@ -9180,7 +9241,7 @@ PoDropdownBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoD
|
|
|
9180
9241
|
}] }); })();
|
|
9181
9242
|
|
|
9182
9243
|
const _c0$13 = ["dropdownRef"];
|
|
9183
|
-
const _c1$
|
|
9244
|
+
const _c1$u = ["popupRef"];
|
|
9184
9245
|
const _c2$d = function (a0) { return { "po-dropdown-button-disabled": a0 }; };
|
|
9185
9246
|
const _c3$8 = function () { return ["bottom-left", "top-left"]; };
|
|
9186
9247
|
/**
|
|
@@ -9266,7 +9327,7 @@ class PoDropdownComponent extends PoDropdownBaseComponent {
|
|
|
9266
9327
|
PoDropdownComponent.ɵfac = function PoDropdownComponent_Factory(t) { return new (t || PoDropdownComponent)(i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
9267
9328
|
PoDropdownComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDropdownComponent, selectors: [["po-dropdown"]], viewQuery: function PoDropdownComponent_Query(rf, ctx) { if (rf & 1) {
|
|
9268
9329
|
i0.ɵɵviewQuery(_c0$13, 7, ElementRef);
|
|
9269
|
-
i0.ɵɵviewQuery(_c1$
|
|
9330
|
+
i0.ɵɵviewQuery(_c1$u, 5);
|
|
9270
9331
|
} if (rf & 2) {
|
|
9271
9332
|
let _t;
|
|
9272
9333
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdownRef = _t.first);
|
|
@@ -10994,7 +11055,7 @@ __decorate([
|
|
|
10994
11055
|
}] }); })();
|
|
10995
11056
|
|
|
10996
11057
|
const _c0$10 = ["calendar"];
|
|
10997
|
-
const _c1$
|
|
11058
|
+
const _c1$t = ["dialogPicker"];
|
|
10998
11059
|
const _c2$c = ["iconDatepicker"];
|
|
10999
11060
|
const _c3$7 = ["inp"];
|
|
11000
11061
|
function PoDatepickerComponent_po_clean_5_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -11313,7 +11374,7 @@ class PoDatepickerComponent extends PoDatepickerBaseComponent {
|
|
|
11313
11374
|
PoDatepickerComponent.ɵfac = function PoDatepickerComponent_Factory(t) { return new (t || PoDatepickerComponent)(i0.ɵɵdirectiveInject(PoControlPositionService), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
11314
11375
|
PoDatepickerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDatepickerComponent, selectors: [["po-datepicker"]], viewQuery: function PoDatepickerComponent_Query(rf, ctx) { if (rf & 1) {
|
|
11315
11376
|
i0.ɵɵviewQuery(_c0$10, 7);
|
|
11316
|
-
i0.ɵɵviewQuery(_c1$
|
|
11377
|
+
i0.ɵɵviewQuery(_c1$t, 7, ElementRef);
|
|
11317
11378
|
i0.ɵɵviewQuery(_c2$c, 7, ElementRef);
|
|
11318
11379
|
i0.ɵɵviewQuery(_c3$7, 7, ElementRef);
|
|
11319
11380
|
} if (rf & 2) {
|
|
@@ -11588,7 +11649,7 @@ const _c0$$ = ["*"];
|
|
|
11588
11649
|
* <po-modal-footer>
|
|
11589
11650
|
* <po-button p-label="Close" (p-click)="modal.close()"> </po-button>
|
|
11590
11651
|
* <po-button p-label="Clean" (p-click)="clean()"> </po-button>
|
|
11591
|
-
* <po-button p-label="Confirm" p-
|
|
11652
|
+
* <po-button p-label="Confirm" p-kind="primary" (p-click)="confirm()"> </po-button>
|
|
11592
11653
|
* </po-modal-footer>
|
|
11593
11654
|
* </po-modal>
|
|
11594
11655
|
* ```
|
|
@@ -11660,7 +11721,7 @@ function PoModalComponent_div_0_ng_template_13_po_button_1_Template(rf, ctx) { i
|
|
|
11660
11721
|
i0.ɵɵelementEnd();
|
|
11661
11722
|
} if (rf & 2) {
|
|
11662
11723
|
const ctx_r8 = i0.ɵɵnextContext(3);
|
|
11663
|
-
i0.ɵɵproperty("p-disabled", ctx_r8.secondaryAction.disabled)("p-label", ctx_r8.secondaryAction.label)("p-loading", ctx_r8.secondaryAction.loading)("p-
|
|
11724
|
+
i0.ɵɵproperty("p-disabled", ctx_r8.secondaryAction.disabled)("p-label", ctx_r8.secondaryAction.label)("p-loading", ctx_r8.secondaryAction.loading)("p-kind", ctx_r8.getSecondaryActionButtonType());
|
|
11664
11725
|
} }
|
|
11665
11726
|
function PoModalComponent_div_0_ng_template_13_Template(rf, ctx) { if (rf & 1) {
|
|
11666
11727
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
@@ -11674,7 +11735,7 @@ function PoModalComponent_div_0_ng_template_13_Template(rf, ctx) { if (rf & 1) {
|
|
|
11674
11735
|
i0.ɵɵadvance(1);
|
|
11675
11736
|
i0.ɵɵproperty("ngIf", ctx_r5.secondaryAction);
|
|
11676
11737
|
i0.ɵɵadvance(1);
|
|
11677
|
-
i0.ɵɵproperty("p-disabled", ctx_r5.primaryAction.disabled)("p-label", ctx_r5.primaryAction.label)("p-loading", ctx_r5.primaryAction.loading)("p-
|
|
11738
|
+
i0.ɵɵproperty("p-disabled", ctx_r5.primaryAction.disabled)("p-label", ctx_r5.primaryAction.label)("p-loading", ctx_r5.primaryAction.loading)("p-kind", ctx_r5.getPrimaryActionButtonType());
|
|
11678
11739
|
} }
|
|
11679
11740
|
function PoModalComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
11680
11741
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
@@ -11705,7 +11766,7 @@ function PoModalComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
11705
11766
|
i0.ɵɵadvance(3);
|
|
11706
11767
|
i0.ɵɵproperty("ngIf", ctx_r0.modalFooter)("ngIfElse", _r4);
|
|
11707
11768
|
} }
|
|
11708
|
-
const _c1$
|
|
11769
|
+
const _c1$s = ["*", [["po-modal-footer"]]];
|
|
11709
11770
|
const _c2$b = ["*", "po-modal-footer"];
|
|
11710
11771
|
/**
|
|
11711
11772
|
* @docsExtends PoModalBaseComponent
|
|
@@ -11753,7 +11814,7 @@ class PoModalComponent extends PoModalBaseComponent {
|
|
|
11753
11814
|
return this.primaryAction.danger ? 'danger' : 'primary';
|
|
11754
11815
|
}
|
|
11755
11816
|
getSecondaryActionButtonType() {
|
|
11756
|
-
return this.secondaryAction && this.secondaryAction.danger && !this.primaryAction.danger ? 'danger' : '
|
|
11817
|
+
return this.secondaryAction && this.secondaryAction.danger && !this.primaryAction.danger ? 'danger' : 'secondary';
|
|
11757
11818
|
}
|
|
11758
11819
|
onClickOut(event) {
|
|
11759
11820
|
if (this.clickOut && !this.modalContent.nativeElement.contains(event.target)) {
|
|
@@ -11811,15 +11872,15 @@ PoModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalCom
|
|
|
11811
11872
|
} if (rf & 2) {
|
|
11812
11873
|
let _t;
|
|
11813
11874
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modalContent = _t.first);
|
|
11814
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c2$b, decls: 1, vars: 1, consts: [["class", "po-modal", "tabindex", "0", 3, "keydown.esc", 4, "ngIf"], ["tabindex", "0", 1, "po-modal", 3, "keydown.esc"], [1, "po-modal-overlay"], [1, "po-modal-container", "po-pb-2", "po-pt-2", 3, "mousedown"], [1, "po-modal-vertical-align"], ["tabindex", "-1"], ["modalContent", ""], [1, "po-modal-header"], [1, "po-modal-title", "po-text-ellipsis"], ["class", "po-modal-header-close-button", "tabindex", "0", 3, "click", 4, "ngIf"], [1, "po-modal-body"], [4, "ngIf", "ngIfElse"], ["defaultModalFooterTemplate", ""], ["tabindex", "0", 1, "po-modal-header-close-button", 3, "click"], [1, "po-icon", "po-icon-close"], [3, "p-disabled", "p-label", "p-loading", "p-
|
|
11815
|
-
i0.ɵɵprojectionDef(_c1$
|
|
11875
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c2$b, decls: 1, vars: 1, consts: [["class", "po-modal", "tabindex", "0", 3, "keydown.esc", 4, "ngIf"], ["tabindex", "0", 1, "po-modal", 3, "keydown.esc"], [1, "po-modal-overlay"], [1, "po-modal-container", "po-pb-2", "po-pt-2", 3, "mousedown"], [1, "po-modal-vertical-align"], ["tabindex", "-1"], ["modalContent", ""], [1, "po-modal-header"], [1, "po-modal-title", "po-text-ellipsis"], ["class", "po-modal-header-close-button", "tabindex", "0", 3, "click", 4, "ngIf"], [1, "po-modal-body"], [4, "ngIf", "ngIfElse"], ["defaultModalFooterTemplate", ""], ["tabindex", "0", 1, "po-modal-header-close-button", 3, "click"], [1, "po-icon", "po-icon-close"], [3, "p-disabled", "p-label", "p-loading", "p-kind", "p-click", 4, "ngIf"], [1, "po-button-modal-first-action", 3, "p-disabled", "p-label", "p-loading", "p-kind", "p-click"], [3, "p-disabled", "p-label", "p-loading", "p-kind", "p-click"]], template: function PoModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11876
|
+
i0.ɵɵprojectionDef(_c1$s);
|
|
11816
11877
|
i0.ɵɵtemplate(0, PoModalComponent_div_0_Template, 15, 7, "div", 0);
|
|
11817
11878
|
} if (rf & 2) {
|
|
11818
11879
|
i0.ɵɵproperty("ngIf", !ctx.isHidden);
|
|
11819
11880
|
} }, directives: [i1.NgIf, PoModalFooterComponent, PoButtonComponent], encapsulation: 2 });
|
|
11820
11881
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoModalComponent, [{
|
|
11821
11882
|
type: Component,
|
|
11822
|
-
args: [{ selector: 'po-modal', template: "<div *ngIf=\"!isHidden\" class=\"po-modal\" tabindex=\"0\" (keydown.esc)=\"closeModalOnEscapeKey($event)\">\n <div class=\"po-modal-overlay\">\n <div class=\"po-modal-container po-pb-2 po-pt-2\" (mousedown)=\"onClickOut($event)\">\n <div class=\"po-modal-vertical-align\">\n <div #modalContent class=\"po-modal-content po-modal-{{ size }}\" tabindex=\"-1\">\n <div class=\"po-modal-header\">\n <div class=\"po-modal-title po-text-ellipsis\">\n {{ title }}\n </div>\n\n <a *ngIf=\"!hideClose\" class=\"po-modal-header-close-button\" tabindex=\"0\" (click)=\"close(true)\">\n <span class=\"po-icon po-icon-close\"></span>\n </a>\n </div>\n\n <div class=\"po-modal-body\">\n <ng-content></ng-content>\n </div>\n\n <ng-container *ngIf=\"modalFooter; else defaultModalFooterTemplate\">\n <ng-content select=\"po-modal-footer\"></ng-content>\n </ng-container>\n\n <ng-template #defaultModalFooterTemplate>\n <po-modal-footer>\n <po-button\n *ngIf=\"secondaryAction\"\n [p-disabled]=\"secondaryAction.disabled\"\n [p-label]=\"secondaryAction.label\"\n [p-loading]=\"secondaryAction.loading\"\n [p-
|
|
11883
|
+
args: [{ selector: 'po-modal', template: "<div *ngIf=\"!isHidden\" class=\"po-modal\" tabindex=\"0\" (keydown.esc)=\"closeModalOnEscapeKey($event)\">\n <div class=\"po-modal-overlay\">\n <div class=\"po-modal-container po-pb-2 po-pt-2\" (mousedown)=\"onClickOut($event)\">\n <div class=\"po-modal-vertical-align\">\n <div #modalContent class=\"po-modal-content po-modal-{{ size }}\" tabindex=\"-1\">\n <div class=\"po-modal-header\">\n <div class=\"po-modal-title po-text-ellipsis\">\n {{ title }}\n </div>\n\n <a *ngIf=\"!hideClose\" class=\"po-modal-header-close-button\" tabindex=\"0\" (click)=\"close(true)\">\n <span class=\"po-icon po-icon-close\"></span>\n </a>\n </div>\n\n <div class=\"po-modal-body\">\n <ng-content></ng-content>\n </div>\n\n <ng-container *ngIf=\"modalFooter; else defaultModalFooterTemplate\">\n <ng-content select=\"po-modal-footer\"></ng-content>\n </ng-container>\n\n <ng-template #defaultModalFooterTemplate>\n <po-modal-footer>\n <po-button\n *ngIf=\"secondaryAction\"\n [p-disabled]=\"secondaryAction.disabled\"\n [p-label]=\"secondaryAction.label\"\n [p-loading]=\"secondaryAction.loading\"\n [p-kind]=\"getSecondaryActionButtonType()\"\n (p-click)=\"secondaryAction.action()\"\n >\n </po-button>\n\n <po-button\n class=\"po-button-modal-first-action\"\n [p-disabled]=\"primaryAction.disabled\"\n [p-label]=\"primaryAction.label\"\n [p-loading]=\"primaryAction.loading\"\n [p-kind]=\"getPrimaryActionButtonType()\"\n (p-click)=\"primaryAction.action()\"\n >\n </po-button>\n </po-modal-footer>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n</div>\n" }]
|
|
11823
11884
|
}], function () { return [{ type: PoActiveOverlayService }, { type: PoLanguageService }]; }, { modalContent: [{
|
|
11824
11885
|
type: ViewChild,
|
|
11825
11886
|
args: ['modalContent', { read: ElementRef }]
|
|
@@ -12558,6 +12619,21 @@ PoI18nPipe.ɵpipe = /*@__PURE__*/ i0.ɵɵdefinePipe({ name: "poI18n", type: PoI1
|
|
|
12558
12619
|
}]
|
|
12559
12620
|
}], null, null); })();
|
|
12560
12621
|
|
|
12622
|
+
const poToasterLiterals = {
|
|
12623
|
+
en: {
|
|
12624
|
+
close: 'Close'
|
|
12625
|
+
},
|
|
12626
|
+
es: {
|
|
12627
|
+
close: 'Cerrar'
|
|
12628
|
+
},
|
|
12629
|
+
pt: {
|
|
12630
|
+
close: 'Fechar'
|
|
12631
|
+
},
|
|
12632
|
+
ru: {
|
|
12633
|
+
close: 'близко'
|
|
12634
|
+
}
|
|
12635
|
+
};
|
|
12636
|
+
|
|
12561
12637
|
/**
|
|
12562
12638
|
* @docsPrivate
|
|
12563
12639
|
*
|
|
@@ -12603,35 +12679,40 @@ var PoToasterType;
|
|
|
12603
12679
|
})(PoToasterType || (PoToasterType = {}));
|
|
12604
12680
|
|
|
12605
12681
|
const _c0$Z = ["toaster"];
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
i0.ɵɵ
|
|
12609
|
-
i0.ɵɵ
|
|
12610
|
-
i0.ɵɵ
|
|
12682
|
+
const _c1$r = ["buttonClose"];
|
|
12683
|
+
function PoToasterComponent_po_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
12684
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
12685
|
+
i0.ɵɵelementStart(0, "po-button", 9);
|
|
12686
|
+
i0.ɵɵlistener("p-click", function PoToasterComponent_po_button_7_Template_po_button_p_click_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.poToasterAction($event); });
|
|
12611
12687
|
i0.ɵɵelementEnd();
|
|
12612
12688
|
} if (rf & 2) {
|
|
12613
12689
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
12614
|
-
i0.ɵɵ
|
|
12615
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.actionLabel, " ");
|
|
12690
|
+
i0.ɵɵproperty("p-label", ctx_r1.actionLabel);
|
|
12616
12691
|
} }
|
|
12692
|
+
const SPACE_BETWEEN_TOASTERS = 8;
|
|
12693
|
+
const TOASTER_HEIGHT_DEFAULT = 62;
|
|
12617
12694
|
/**
|
|
12618
12695
|
* @docsPrivate
|
|
12619
12696
|
*
|
|
12620
12697
|
* @docsExtends PoToasterBaseComponent
|
|
12621
12698
|
*/
|
|
12622
12699
|
class PoToasterComponent extends PoToasterBaseComponent {
|
|
12623
|
-
constructor(
|
|
12700
|
+
constructor(poLanguageService, changeDetector, elementeRef, renderer) {
|
|
12624
12701
|
super();
|
|
12625
12702
|
this.changeDetector = changeDetector;
|
|
12626
12703
|
this.elementeRef = elementeRef;
|
|
12627
12704
|
this.renderer = renderer;
|
|
12628
12705
|
this.alive = true;
|
|
12629
12706
|
/* Margem do Toaster referênte à sua orientação e posição*/
|
|
12630
|
-
this.margin =
|
|
12707
|
+
this.margin = 0;
|
|
12631
12708
|
/* Observable para monitorar o Close to Toaster */
|
|
12632
12709
|
this.observableOnClose = new Subject();
|
|
12633
12710
|
/* Posição do Toaster*/
|
|
12634
12711
|
this.toasterPosition = 'po-toaster-bottom';
|
|
12712
|
+
this.language = poLanguageService.getShortLanguage();
|
|
12713
|
+
this.literals = {
|
|
12714
|
+
...poToasterLiterals[this.language]
|
|
12715
|
+
};
|
|
12635
12716
|
}
|
|
12636
12717
|
ngOnDestroy() {
|
|
12637
12718
|
this.alive = false;
|
|
@@ -12641,8 +12722,7 @@ class PoToasterComponent extends PoToasterBaseComponent {
|
|
|
12641
12722
|
}
|
|
12642
12723
|
/* Muda a posição do Toaster na tela*/
|
|
12643
12724
|
changePosition(position) {
|
|
12644
|
-
this.
|
|
12645
|
-
this.margin = 6 + 44 * position + position * 6;
|
|
12725
|
+
this.margin = SPACE_BETWEEN_TOASTERS + TOASTER_HEIGHT_DEFAULT * position + position * SPACE_BETWEEN_TOASTERS;
|
|
12646
12726
|
if (this.orientation === PoToasterOrientation.Top) {
|
|
12647
12727
|
this.toaster.nativeElement.style.top = this.margin + 'px';
|
|
12648
12728
|
}
|
|
@@ -12673,6 +12753,15 @@ class PoToasterComponent extends PoToasterBaseComponent {
|
|
|
12673
12753
|
}
|
|
12674
12754
|
/* Muda a posição do Toaster */
|
|
12675
12755
|
this.changePosition(this.position);
|
|
12756
|
+
if (this.type === PoToasterType.Error) {
|
|
12757
|
+
this.toaster.nativeElement.setAttribute('role', 'alert');
|
|
12758
|
+
}
|
|
12759
|
+
else if (this.action && this.actionLabel) {
|
|
12760
|
+
this.toaster.nativeElement.setAttribute('role', 'alertdialog');
|
|
12761
|
+
}
|
|
12762
|
+
else {
|
|
12763
|
+
this.toaster.nativeElement.setAttribute('role', 'status');
|
|
12764
|
+
}
|
|
12676
12765
|
/* Switch para o tipo de Toaster */
|
|
12677
12766
|
switch (this.type) {
|
|
12678
12767
|
case PoToasterType.Error: {
|
|
@@ -12696,6 +12785,7 @@ class PoToasterComponent extends PoToasterBaseComponent {
|
|
|
12696
12785
|
break;
|
|
12697
12786
|
}
|
|
12698
12787
|
}
|
|
12788
|
+
this.buttonClose.buttonElement.nativeElement.setAttribute('aria-label', this.literals.close);
|
|
12699
12789
|
this.changeDetector.detectChanges();
|
|
12700
12790
|
}
|
|
12701
12791
|
getIcon() {
|
|
@@ -12708,8 +12798,6 @@ class PoToasterComponent extends PoToasterBaseComponent {
|
|
|
12708
12798
|
return this.toasterType;
|
|
12709
12799
|
}
|
|
12710
12800
|
onButtonClose(event) {
|
|
12711
|
-
event.preventDefault();
|
|
12712
|
-
event.stopPropagation();
|
|
12713
12801
|
if (this.action && !this.actionLabel) {
|
|
12714
12802
|
this.poToasterAction(event);
|
|
12715
12803
|
}
|
|
@@ -12719,64 +12807,66 @@ class PoToasterComponent extends PoToasterBaseComponent {
|
|
|
12719
12807
|
}
|
|
12720
12808
|
/* Chama a função passada pelo atributo `action` */
|
|
12721
12809
|
poToasterAction(event) {
|
|
12722
|
-
event.preventDefault();
|
|
12723
|
-
event.stopPropagation();
|
|
12724
12810
|
this.action(this);
|
|
12725
12811
|
}
|
|
12726
12812
|
}
|
|
12727
12813
|
PoToasterComponent.ɵfac = function PoToasterComponent_Factory(t) { return new (t || PoToasterComponent)(i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2)); };
|
|
12728
12814
|
PoToasterComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoToasterComponent, selectors: [["po-toaster"]], viewQuery: function PoToasterComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12729
12815
|
i0.ɵɵviewQuery(_c0$Z, 5);
|
|
12816
|
+
i0.ɵɵviewQuery(_c1$r, 5);
|
|
12730
12817
|
} if (rf & 2) {
|
|
12731
12818
|
let _t;
|
|
12732
12819
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.toaster = _t.first);
|
|
12733
|
-
|
|
12734
|
-
|
|
12735
|
-
i0.ɵɵ
|
|
12736
|
-
i0.ɵɵ
|
|
12737
|
-
i0.ɵɵelement(3, "span");
|
|
12820
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.buttonClose = _t.first);
|
|
12821
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 11, vars: 7, consts: [["toaster", ""], [1, "po-toaster-icon"], [3, "p-icon"], [1, "po-toaster-message"], [1, "po-toaster-actions"], ["class", "po-toaster-action", "p-type", "tertiary", 3, "p-label", "p-click", 4, "ngIf"], [1, "po-toaster-divider"], ["p-icon", "po-icon-close", "p-type", "tertiary", 1, "po-toaster-close", 3, "p-click"], ["buttonClose", ""], ["p-type", "tertiary", 1, "po-toaster-action", 3, "p-label", "p-click"]], template: function PoToasterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12822
|
+
i0.ɵɵelementStart(0, "div", null, 0)(2, "div", 1);
|
|
12823
|
+
i0.ɵɵelement(3, "po-icon", 2);
|
|
12738
12824
|
i0.ɵɵelementEnd();
|
|
12739
12825
|
i0.ɵɵelementStart(4, "div", 3);
|
|
12740
12826
|
i0.ɵɵtext(5);
|
|
12741
12827
|
i0.ɵɵelementEnd();
|
|
12742
|
-
i0.ɵɵ
|
|
12743
|
-
i0.ɵɵ
|
|
12744
|
-
i0.ɵɵ
|
|
12745
|
-
i0.ɵɵ
|
|
12746
|
-
i0.ɵɵ
|
|
12828
|
+
i0.ɵɵelementStart(6, "div", 4);
|
|
12829
|
+
i0.ɵɵtemplate(7, PoToasterComponent_po_button_7_Template, 1, 1, "po-button", 5);
|
|
12830
|
+
i0.ɵɵelement(8, "div", 6);
|
|
12831
|
+
i0.ɵɵelementStart(9, "po-button", 7, 8);
|
|
12832
|
+
i0.ɵɵlistener("p-click", function PoToasterComponent_Template_po_button_p_click_9_listener($event) { return ctx.onButtonClose($event); });
|
|
12833
|
+
i0.ɵɵelementEnd()()();
|
|
12747
12834
|
} if (rf & 2) {
|
|
12748
|
-
i0.ɵɵclassMapInterpolate2("po-toaster ", ctx.getToasterType(), " ", ctx.getToasterPosition(), "
|
|
12835
|
+
i0.ɵɵclassMapInterpolate2("po-toaster ", ctx.getToasterType(), " ", ctx.getToasterPosition(), "");
|
|
12749
12836
|
i0.ɵɵadvance(3);
|
|
12750
|
-
i0.ɵɵ
|
|
12837
|
+
i0.ɵɵproperty("p-icon", ctx.getIcon());
|
|
12751
12838
|
i0.ɵɵadvance(2);
|
|
12752
12839
|
i0.ɵɵtextInterpolate(ctx.message);
|
|
12753
|
-
i0.ɵɵadvance(
|
|
12840
|
+
i0.ɵɵadvance(2);
|
|
12754
12841
|
i0.ɵɵproperty("ngIf", ctx.action && ctx.actionLabel);
|
|
12755
|
-
} }, directives: [i1.NgIf], encapsulation: 2 });
|
|
12842
|
+
} }, directives: [PoIconComponent, i1.NgIf, PoButtonComponent], encapsulation: 2 });
|
|
12756
12843
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoToasterComponent, [{
|
|
12757
12844
|
type: Component,
|
|
12758
|
-
args: [{ selector: 'po-toaster', template: "<div #toaster class=\"po-toaster {{ getToasterType() }} {{ getToasterPosition() }}
|
|
12845
|
+
args: [{ selector: 'po-toaster', template: "<div #toaster class=\"po-toaster {{ getToasterType() }} {{ getToasterPosition() }}\">\n <div class=\"po-toaster-icon\">\n <po-icon [p-icon]=\"getIcon()\"></po-icon>\n </div>\n\n <div class=\"po-toaster-message\">{{ message }}</div>\n\n <div class=\"po-toaster-actions\">\n <po-button\n *ngIf=\"action && actionLabel\"\n class=\"po-toaster-action\"\n (p-click)=\"poToasterAction($event)\"\n [p-label]=\"actionLabel\"\n p-type=\"tertiary\"\n ></po-button>\n\n <div class=\"po-toaster-divider\"></div>\n\n <po-button\n #buttonClose\n class=\"po-toaster-close\"\n (p-click)=\"onButtonClose($event)\"\n p-icon=\"po-icon-close\"\n p-type=\"tertiary\"\n ></po-button>\n </div>\n</div>\n" }]
|
|
12759
12846
|
}], function () { return [{ type: PoLanguageService }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, { toaster: [{
|
|
12760
12847
|
type: ViewChild,
|
|
12761
12848
|
args: ['toaster']
|
|
12849
|
+
}], buttonClose: [{
|
|
12850
|
+
type: ViewChild,
|
|
12851
|
+
args: ['buttonClose']
|
|
12762
12852
|
}] }); })();
|
|
12763
12853
|
|
|
12764
12854
|
class PoNotificationModule {
|
|
12765
12855
|
}
|
|
12766
12856
|
PoNotificationModule.ɵfac = function PoNotificationModule_Factory(t) { return new (t || PoNotificationModule)(); };
|
|
12767
12857
|
PoNotificationModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoNotificationModule });
|
|
12768
|
-
PoNotificationModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [], imports: [[CommonModule]] });
|
|
12858
|
+
PoNotificationModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [], imports: [[CommonModule, PoButtonModule, PoIconModule]] });
|
|
12769
12859
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoNotificationModule, [{
|
|
12770
12860
|
type: NgModule,
|
|
12771
12861
|
args: [{
|
|
12772
12862
|
declarations: [PoToasterComponent],
|
|
12773
|
-
imports: [CommonModule],
|
|
12863
|
+
imports: [CommonModule, PoButtonModule, PoIconModule],
|
|
12774
12864
|
exports: [],
|
|
12775
12865
|
providers: [],
|
|
12776
12866
|
bootstrap: []
|
|
12777
12867
|
}]
|
|
12778
12868
|
}], null, null); })();
|
|
12779
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoNotificationModule, { declarations: [PoToasterComponent], imports: [CommonModule] }); })();
|
|
12869
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoNotificationModule, { declarations: [PoToasterComponent], imports: [CommonModule, PoButtonModule, PoIconModule] }); })();
|
|
12780
12870
|
|
|
12781
12871
|
class PoServicesModule {
|
|
12782
12872
|
}
|
|
@@ -13227,7 +13317,282 @@ PoTimeModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [], import
|
|
|
13227
13317
|
}], null, null); })();
|
|
13228
13318
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoTimeModule, { declarations: [PoTimePipe], exports: [PoTimePipe] }); })();
|
|
13229
13319
|
|
|
13230
|
-
|
|
13320
|
+
/**
|
|
13321
|
+
* @docsPrivate
|
|
13322
|
+
*
|
|
13323
|
+
* @description
|
|
13324
|
+
*
|
|
13325
|
+
* Enum que contém os valores numéricos dos *keyCodes*.
|
|
13326
|
+
*/
|
|
13327
|
+
var PoKeyCodeEnum;
|
|
13328
|
+
(function (PoKeyCodeEnum) {
|
|
13329
|
+
/** Seta para baixo */
|
|
13330
|
+
PoKeyCodeEnum[PoKeyCodeEnum["arrowDown"] = 40] = "arrowDown";
|
|
13331
|
+
/** Seta para cima */
|
|
13332
|
+
PoKeyCodeEnum[PoKeyCodeEnum["arrowUp"] = 38] = "arrowUp";
|
|
13333
|
+
/** Backspace */
|
|
13334
|
+
PoKeyCodeEnum[PoKeyCodeEnum["backspace"] = 8] = "backspace";
|
|
13335
|
+
/** Delete */
|
|
13336
|
+
PoKeyCodeEnum[PoKeyCodeEnum["delete"] = 46] = "delete";
|
|
13337
|
+
/** Enter */
|
|
13338
|
+
PoKeyCodeEnum[PoKeyCodeEnum["enter"] = 13] = "enter";
|
|
13339
|
+
/** Esc */
|
|
13340
|
+
PoKeyCodeEnum[PoKeyCodeEnum["esc"] = 27] = "esc";
|
|
13341
|
+
/** Tecla K */
|
|
13342
|
+
PoKeyCodeEnum[PoKeyCodeEnum["keyK"] = 75] = "keyK";
|
|
13343
|
+
/** Tecla L */
|
|
13344
|
+
PoKeyCodeEnum[PoKeyCodeEnum["keyL"] = 76] = "keyL";
|
|
13345
|
+
/** Espaço */
|
|
13346
|
+
PoKeyCodeEnum[PoKeyCodeEnum["space"] = 32] = "space";
|
|
13347
|
+
/** Tab */
|
|
13348
|
+
PoKeyCodeEnum[PoKeyCodeEnum["tab"] = 9] = "tab";
|
|
13349
|
+
})(PoKeyCodeEnum || (PoKeyCodeEnum = {}));
|
|
13350
|
+
|
|
13351
|
+
/**
|
|
13352
|
+
* @description
|
|
13353
|
+
*
|
|
13354
|
+
* O componente `po-checkbox` exibe uma caixa de opção com um texto ao lado, na qual é possível marcar e desmarcar através tanto
|
|
13355
|
+
* no *click* do *mouse* quanto por meio da tecla *space* quando estiver com foco.
|
|
13356
|
+
*
|
|
13357
|
+
* Cada opção poderá receber um estado de marcado, desmarcado, indeterminado/mixed e desabilitado, como também uma ação que será disparada quando
|
|
13358
|
+
* ocorrer mudanças do valor.
|
|
13359
|
+
*
|
|
13360
|
+
* > O *model* deste componente aceitará valores igual à `true`, `false` ou `null` para quando for indeterminado/mixed.
|
|
13361
|
+
*
|
|
13362
|
+
* **Acessibilidade tratada no componente:**
|
|
13363
|
+
*
|
|
13364
|
+
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas pelo proprietário do conteúdo. São elas:
|
|
13365
|
+
*
|
|
13366
|
+
* - O componente foi desenvolvido utilizando controles padrões HTML para permitir a identificação do mesmo na interface por tecnologias assistivas. [WCAG 4.1.2: Name, Role, Value](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value)
|
|
13367
|
+
* - A área do foco precisar ter uma espessura de pelo menos 2 pixels CSS e o foco não pode ficar escondido por outros elementos da tela. [WCAG 2.4.12: Focus Appearance](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced)
|
|
13368
|
+
* - A cor não deve ser o único meio para diferenciar o componente do seu estado marcado e desmarcado. [WGAG 1.4.1: Use of Color, 3.2.4: Consistent Identification](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color)
|
|
13369
|
+
*/
|
|
13370
|
+
class PoCheckboxBaseComponent {
|
|
13371
|
+
constructor() {
|
|
13372
|
+
/**
|
|
13373
|
+
* @optional
|
|
13374
|
+
*
|
|
13375
|
+
* @description
|
|
13376
|
+
*
|
|
13377
|
+
* Aplica foco no elemento ao ser iniciado.
|
|
13378
|
+
*
|
|
13379
|
+
* > Caso mais de um elemento seja configurado com essa propriedade, apenas o último elemento declarado com ela terá o foco.
|
|
13380
|
+
*
|
|
13381
|
+
* @default `false`
|
|
13382
|
+
*/
|
|
13383
|
+
this.autoFocus = false;
|
|
13384
|
+
/**
|
|
13385
|
+
* @optional
|
|
13386
|
+
*
|
|
13387
|
+
* @description
|
|
13388
|
+
*
|
|
13389
|
+
* Evento disparado quando o valor do *checkbox* for alterado.
|
|
13390
|
+
*/
|
|
13391
|
+
this.change = new EventEmitter();
|
|
13392
|
+
this.id = uuid();
|
|
13393
|
+
this._disabled = false;
|
|
13394
|
+
}
|
|
13395
|
+
/**
|
|
13396
|
+
* @optional
|
|
13397
|
+
*
|
|
13398
|
+
* @description
|
|
13399
|
+
*
|
|
13400
|
+
* Define o estado do *checkbox* como desabilitado.
|
|
13401
|
+
*
|
|
13402
|
+
* @default `false`
|
|
13403
|
+
*/
|
|
13404
|
+
set disabled(value) {
|
|
13405
|
+
this._disabled = convertToBoolean(value);
|
|
13406
|
+
}
|
|
13407
|
+
get disabled() {
|
|
13408
|
+
return this._disabled;
|
|
13409
|
+
}
|
|
13410
|
+
changeValue() {
|
|
13411
|
+
if (this.propagateChange) {
|
|
13412
|
+
this.propagateChange(this.checkboxValue);
|
|
13413
|
+
}
|
|
13414
|
+
this.change.emit(this.checkboxValue);
|
|
13415
|
+
}
|
|
13416
|
+
checkOption(value) {
|
|
13417
|
+
if (!this.disabled) {
|
|
13418
|
+
value === 'mixed' ? this.changeModelValue(true) : this.changeModelValue(!value);
|
|
13419
|
+
this.changeValue();
|
|
13420
|
+
}
|
|
13421
|
+
}
|
|
13422
|
+
// Função implementada do ControlValueAccessor
|
|
13423
|
+
// Usada para interceptar os estados de habilitado via forms api
|
|
13424
|
+
setDisabledState(isDisabled) {
|
|
13425
|
+
this.disabled = isDisabled;
|
|
13426
|
+
}
|
|
13427
|
+
registerOnChange(fn) {
|
|
13428
|
+
this.propagateChange = fn;
|
|
13429
|
+
}
|
|
13430
|
+
registerOnTouched(fn) {
|
|
13431
|
+
this.onTouched = fn;
|
|
13432
|
+
}
|
|
13433
|
+
writeValue(value) {
|
|
13434
|
+
if (value !== this.checkboxValue) {
|
|
13435
|
+
this.changeModelValue(value);
|
|
13436
|
+
}
|
|
13437
|
+
}
|
|
13438
|
+
}
|
|
13439
|
+
PoCheckboxBaseComponent.ɵfac = function PoCheckboxBaseComponent_Factory(t) { return new (t || PoCheckboxBaseComponent)(); };
|
|
13440
|
+
PoCheckboxBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoCheckboxBaseComponent, inputs: { name: "name", autoFocus: ["p-auto-focus", "autoFocus"], label: ["p-label", "label"], disabled: ["p-disabled", "disabled"] }, outputs: { change: "p-change" } });
|
|
13441
|
+
__decorate([
|
|
13442
|
+
InputBoolean()
|
|
13443
|
+
], PoCheckboxBaseComponent.prototype, "autoFocus", void 0);
|
|
13444
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxBaseComponent, [{
|
|
13445
|
+
type: Directive
|
|
13446
|
+
}], null, { name: [{
|
|
13447
|
+
type: Input,
|
|
13448
|
+
args: ['name']
|
|
13449
|
+
}], autoFocus: [{
|
|
13450
|
+
type: Input,
|
|
13451
|
+
args: ['p-auto-focus']
|
|
13452
|
+
}], label: [{
|
|
13453
|
+
type: Input,
|
|
13454
|
+
args: ['p-label']
|
|
13455
|
+
}], change: [{
|
|
13456
|
+
type: Output,
|
|
13457
|
+
args: ['p-change']
|
|
13458
|
+
}], disabled: [{
|
|
13459
|
+
type: Input,
|
|
13460
|
+
args: ['p-disabled']
|
|
13461
|
+
}] }); })();
|
|
13462
|
+
|
|
13463
|
+
const _c0$X = ["checkboxLabel"];
|
|
13464
|
+
/**
|
|
13465
|
+
* @docsExtends PoCheckboxBaseComponent
|
|
13466
|
+
*
|
|
13467
|
+
* @example
|
|
13468
|
+
*
|
|
13469
|
+
* <example name="po-checkbox-basic" title="PO Checkbox Basic">
|
|
13470
|
+
* <file name="sample-po-checkbox-basic/sample-po-checkbox-basic.component.html"> </file>
|
|
13471
|
+
* <file name="sample-po-checkbox-basic/sample-po-checkbox-basic.component.ts"> </file>
|
|
13472
|
+
* </example>
|
|
13473
|
+
*
|
|
13474
|
+
* <example name="po-checkbox-labs" title="PO Checkbox Labs">
|
|
13475
|
+
* <file name="sample-po-checkbox-labs/sample-po-checkbox-labs.component.html"> </file>
|
|
13476
|
+
* <file name="sample-po-checkbox-labs/sample-po-checkbox-labs.component.ts"> </file>
|
|
13477
|
+
* </example>
|
|
13478
|
+
*
|
|
13479
|
+
* <example name="po-checkbox-acceptance-term" title="PO Checkbox - Acceptance Term">
|
|
13480
|
+
* <file name="sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.html"> </file>
|
|
13481
|
+
* <file name="sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.ts"> </file>
|
|
13482
|
+
* </example>
|
|
13483
|
+
*/
|
|
13484
|
+
class PoCheckboxComponent extends PoCheckboxBaseComponent {
|
|
13485
|
+
constructor(changeDetector) {
|
|
13486
|
+
super();
|
|
13487
|
+
this.changeDetector = changeDetector;
|
|
13488
|
+
}
|
|
13489
|
+
/**
|
|
13490
|
+
* Função que atribui foco ao *checkbox*.
|
|
13491
|
+
*
|
|
13492
|
+
* Para utilizá-la é necessário capturar a referência do componente no DOM através do `ViewChild`, como por exemplo:
|
|
13493
|
+
*
|
|
13494
|
+
* ```
|
|
13495
|
+
* ...
|
|
13496
|
+
* import { ViewChild } from '@angular/core';
|
|
13497
|
+
* import { PoCheckboxComponent } from '@po-ui/ng-components';
|
|
13498
|
+
*
|
|
13499
|
+
* ...
|
|
13500
|
+
*
|
|
13501
|
+
* @ViewChild(PoCheckboxComponent, { static: true }) checkbox: PoCheckboxComponent;
|
|
13502
|
+
*
|
|
13503
|
+
* focusCheckbox() {
|
|
13504
|
+
* this.checkbox.focus();
|
|
13505
|
+
* }
|
|
13506
|
+
* ```
|
|
13507
|
+
*/
|
|
13508
|
+
focus() {
|
|
13509
|
+
if (this.checkboxLabel && !this.disabled) {
|
|
13510
|
+
this.checkboxLabel.nativeElement.focus();
|
|
13511
|
+
}
|
|
13512
|
+
}
|
|
13513
|
+
onBlur() {
|
|
13514
|
+
this.onTouched?.();
|
|
13515
|
+
}
|
|
13516
|
+
ngAfterViewInit() {
|
|
13517
|
+
if (this.autoFocus) {
|
|
13518
|
+
this.focus();
|
|
13519
|
+
}
|
|
13520
|
+
}
|
|
13521
|
+
onKeyDown(event, value) {
|
|
13522
|
+
if (event.which === PoKeyCodeEnum.space || event.keyCode === PoKeyCodeEnum.space) {
|
|
13523
|
+
this.checkOption(value);
|
|
13524
|
+
event.preventDefault();
|
|
13525
|
+
}
|
|
13526
|
+
}
|
|
13527
|
+
changeModelValue(value) {
|
|
13528
|
+
if (value === null) {
|
|
13529
|
+
this.checkboxValue = 'mixed';
|
|
13530
|
+
}
|
|
13531
|
+
else {
|
|
13532
|
+
this.checkboxValue = typeof value === 'boolean' || value === null ? value : false;
|
|
13533
|
+
}
|
|
13534
|
+
this.changeDetector.detectChanges();
|
|
13535
|
+
}
|
|
13536
|
+
}
|
|
13537
|
+
PoCheckboxComponent.ɵfac = function PoCheckboxComponent_Factory(t) { return new (t || PoCheckboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
13538
|
+
PoCheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheckboxComponent, selectors: [["po-checkbox"]], viewQuery: function PoCheckboxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
13539
|
+
i0.ɵɵviewQuery(_c0$X, 7);
|
|
13540
|
+
} if (rf & 2) {
|
|
13541
|
+
let _t;
|
|
13542
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkboxLabel = _t.first);
|
|
13543
|
+
} }, features: [i0.ɵɵProvidersFeature([
|
|
13544
|
+
{
|
|
13545
|
+
provide: NG_VALUE_ACCESSOR,
|
|
13546
|
+
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
13547
|
+
multi: true
|
|
13548
|
+
}
|
|
13549
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 8, consts: [[1, "container-po-checkbox", 3, "click", "keydown"], ["role", "checkbox", 1, "po-checkbox", 3, "id", "tabindex"], ["tabindex", "-1", 1, "po-checkbox-label", 3, "for"], ["checkboxLabel", ""]], template: function PoCheckboxComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13550
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
13551
|
+
i0.ɵɵlistener("click", function PoCheckboxComponent_Template_div_click_0_listener() { return ctx.checkOption(ctx.checkboxValue); })("keydown", function PoCheckboxComponent_Template_div_keydown_0_listener($event) { return ctx.onKeyDown($event, ctx.checkboxValue); });
|
|
13552
|
+
i0.ɵɵelement(1, "span", 1);
|
|
13553
|
+
i0.ɵɵelementStart(2, "label", 2, 3);
|
|
13554
|
+
i0.ɵɵtext(4);
|
|
13555
|
+
i0.ɵɵelementEnd()();
|
|
13556
|
+
} if (rf & 2) {
|
|
13557
|
+
i0.ɵɵattribute("checked", ctx.checkboxValue);
|
|
13558
|
+
i0.ɵɵadvance(1);
|
|
13559
|
+
i0.ɵɵproperty("id", ctx.id)("tabindex", ctx.disabled ? -1 : 0);
|
|
13560
|
+
i0.ɵɵattribute("aria-checked", ctx.checkboxValue)("aria-label", ctx.label)("aria-disabled", ctx.disabled);
|
|
13561
|
+
i0.ɵɵadvance(1);
|
|
13562
|
+
i0.ɵɵproperty("for", ctx.id);
|
|
13563
|
+
i0.ɵɵadvance(2);
|
|
13564
|
+
i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
13565
|
+
} }, encapsulation: 2, changeDetection: 0 });
|
|
13566
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxComponent, [{
|
|
13567
|
+
type: Component,
|
|
13568
|
+
args: [{ selector: 'po-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
13569
|
+
{
|
|
13570
|
+
provide: NG_VALUE_ACCESSOR,
|
|
13571
|
+
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
13572
|
+
multi: true
|
|
13573
|
+
}
|
|
13574
|
+
], template: "<div\n class=\"container-po-checkbox\"\n [attr.checked]=\"checkboxValue\"\n (click)=\"checkOption(checkboxValue)\"\n (keydown)=\"onKeyDown($event, checkboxValue)\"\n>\n <span\n [attr.aria-checked]=\"checkboxValue\"\n [attr.aria-label]=\"label\"\n [id]=\"id\"\n class=\"po-checkbox\"\n role=\"checkbox\"\n [attr.aria-disabled]=\"disabled\"\n [tabindex]=\"disabled ? -1 : 0\"\n >\n </span>\n\n <label #checkboxLabel [for]=\"id\" class=\"po-checkbox-label\" tabindex=\"-1\">\n {{ label }}\n </label>\n</div>\n" }]
|
|
13575
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { checkboxLabel: [{
|
|
13576
|
+
type: ViewChild,
|
|
13577
|
+
args: ['checkboxLabel', { static: true }]
|
|
13578
|
+
}] }); })();
|
|
13579
|
+
|
|
13580
|
+
class PoCheckboxModule {
|
|
13581
|
+
}
|
|
13582
|
+
PoCheckboxModule.ɵfac = function PoCheckboxModule_Factory(t) { return new (t || PoCheckboxModule)(); };
|
|
13583
|
+
PoCheckboxModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoCheckboxModule });
|
|
13584
|
+
PoCheckboxModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [[CommonModule, FormsModule]] });
|
|
13585
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxModule, [{
|
|
13586
|
+
type: NgModule,
|
|
13587
|
+
args: [{
|
|
13588
|
+
declarations: [PoCheckboxComponent],
|
|
13589
|
+
imports: [CommonModule, FormsModule],
|
|
13590
|
+
exports: [PoCheckboxComponent]
|
|
13591
|
+
}]
|
|
13592
|
+
}], null, null); })();
|
|
13593
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoCheckboxModule, { declarations: [PoCheckboxComponent], imports: [CommonModule, FormsModule], exports: [PoCheckboxComponent] }); })();
|
|
13594
|
+
|
|
13595
|
+
const _c0$W = function (a0, a1) { return { "po-clickable": a0, "po-table-icon-disabled": a1 }; };
|
|
13231
13596
|
/**
|
|
13232
13597
|
* @docsPrivate
|
|
13233
13598
|
*
|
|
@@ -13264,7 +13629,7 @@ PoTableIconComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTabl
|
|
|
13264
13629
|
i0.ɵɵelementEnd();
|
|
13265
13630
|
} if (rf & 2) {
|
|
13266
13631
|
i0.ɵɵclassMapInterpolate1("po-table-icon-content ", ctx.disabled ? "" : ctx.color, "");
|
|
13267
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(6, _c0$
|
|
13632
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(6, _c0$W, ctx.clickable, ctx.disabled))("p-icon", ctx.icon)("p-tooltip", ctx.tooltip);
|
|
13268
13633
|
} }, directives: [PoIconComponent, i1.NgClass, PoTooltipDirective], encapsulation: 2, changeDetection: 0 });
|
|
13269
13634
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableIconComponent, [{
|
|
13270
13635
|
type: Component,
|
|
@@ -13576,6 +13941,7 @@ class PoTableColumnManagerComponent {
|
|
|
13576
13941
|
this.visibleColumns = [];
|
|
13577
13942
|
this._maxColumns = PoTableColumnManagerMaxColumnsDefault;
|
|
13578
13943
|
this.defaultColumns = [];
|
|
13944
|
+
this.minColumns = 1;
|
|
13579
13945
|
const language = languageService.getShortLanguage();
|
|
13580
13946
|
this.literals = {
|
|
13581
13947
|
...poTableColumnManagerLiteralsDefault[poLocaleDefault],
|
|
@@ -13619,9 +13985,14 @@ class PoTableColumnManagerComponent {
|
|
|
13619
13985
|
}
|
|
13620
13986
|
verifyToEmitChange(event) {
|
|
13621
13987
|
const newColumns = [...event];
|
|
13622
|
-
if (this.allowsChangeVisibleColumns()) {
|
|
13988
|
+
if (newColumns.length >= 1 && this.allowsChangeVisibleColumns()) {
|
|
13623
13989
|
this.emitChangesToSelectedColumns(newColumns);
|
|
13624
13990
|
}
|
|
13991
|
+
// Desabilita ultimo checkbox ativo
|
|
13992
|
+
if (newColumns.length === 1) {
|
|
13993
|
+
const columnsOptions = this.mapTableColumnsToCheckboxOptions(this.columnUpdate);
|
|
13994
|
+
this.columnsOptions = this.disabledLastColumn(columnsOptions);
|
|
13995
|
+
}
|
|
13625
13996
|
}
|
|
13626
13997
|
emitChangesToSelectedColumns(newColumns) {
|
|
13627
13998
|
this.visibleColumns = [...newColumns];
|
|
@@ -13741,14 +14112,22 @@ class PoTableColumnManagerComponent {
|
|
|
13741
14112
|
columnsOptions.push({
|
|
13742
14113
|
value: column.property,
|
|
13743
14114
|
label: this.getColumnTitleLabel(column),
|
|
13744
|
-
disabled: this.isDisableColumn(column.property)
|
|
14115
|
+
disabled: this.isDisableColumn(column.property),
|
|
14116
|
+
visible: column.visible
|
|
13745
14117
|
});
|
|
13746
14118
|
}
|
|
13747
14119
|
});
|
|
13748
14120
|
return columnsOptions;
|
|
13749
14121
|
}
|
|
14122
|
+
disabledLastColumn(columns) {
|
|
14123
|
+
return columns.map(column => ({
|
|
14124
|
+
...column,
|
|
14125
|
+
disabled: column.type !== 'detail' && column.visible ? true : false
|
|
14126
|
+
}));
|
|
14127
|
+
}
|
|
13750
14128
|
onChangeColumns(columns) {
|
|
13751
14129
|
const { currentValue = [], previousValue = [] } = columns;
|
|
14130
|
+
this.columnUpdate = columns.currentValue;
|
|
13752
14131
|
// atualizara o defaultColumns, quando for a primeira vez ou quando o defaultColumns for diferente do currentValue
|
|
13753
14132
|
if (!this.lastVisibleColumnsSelected && this.stringify(this.defaultColumns) !== this.stringify(currentValue)) {
|
|
13754
14133
|
this.defaultColumns = [...currentValue];
|
|
@@ -13785,14 +14164,14 @@ PoTableColumnManagerComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ typ
|
|
|
13785
14164
|
} if (rf & 2) {
|
|
13786
14165
|
let _t;
|
|
13787
14166
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.popover = _t.first);
|
|
13788
|
-
} }, inputs: { columns: ["p-columns", "columns"], target: ["p-target", "target"], colunsDefault: ["p-columns-default", "colunsDefault"], lastVisibleColumnsSelected: ["p-last-visible-columns-selected", "lastVisibleColumnsSelected"], maxColumns: ["p-max-columns", "maxColumns"] }, outputs: { visibleColumnsChange: "p-visible-columns-change", changeVisibleColumns: "p-change-visible-columns", initialColumns: "p-initial-columns" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["p-position", "bottom-left", 3, "p-target", "p-close", 4, "ngIf"], ["p-position", "bottom-left", 3, "p-target", "p-close"], ["popover", ""], [1, "po-table-column-manager-header"], [1, "po-table-column-manager-header-title"], [1, "po-table-column-manager-header-close"], [1, "po-table-column-manager-header-close-button", "po-clickable", "po-icon", "po-icon-close", 3, "click"], [1, "po-table-column-manager-body"], ["name", "visibleColumns", "p-columns", "1", 3, "ngModel", "p-options", "ngModelChange", "p-change"], [1, "po-table-column-manager-footer"], ["p-small", "", "p-
|
|
14167
|
+
} }, inputs: { columns: ["p-columns", "columns"], target: ["p-target", "target"], colunsDefault: ["p-columns-default", "colunsDefault"], lastVisibleColumnsSelected: ["p-last-visible-columns-selected", "lastVisibleColumnsSelected"], maxColumns: ["p-max-columns", "maxColumns"] }, outputs: { visibleColumnsChange: "p-visible-columns-change", changeVisibleColumns: "p-change-visible-columns", initialColumns: "p-initial-columns" }, features: [i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["p-position", "bottom-left", 3, "p-target", "p-close", 4, "ngIf"], ["p-position", "bottom-left", 3, "p-target", "p-close"], ["popover", ""], [1, "po-table-column-manager-header"], [1, "po-table-column-manager-header-title"], [1, "po-table-column-manager-header-close"], [1, "po-table-column-manager-header-close-button", "po-clickable", "po-icon", "po-icon-close", 3, "click"], [1, "po-table-column-manager-body"], ["name", "visibleColumns", "p-columns", "1", 3, "ngModel", "p-options", "ngModelChange", "p-change"], [1, "po-table-column-manager-footer"], ["p-small", "", "p-kind", "tertiary", 1, "po-table-column-manager-footer-restore", 3, "p-label", "p-click"]], template: function PoTableColumnManagerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13789
14168
|
i0.ɵɵtemplate(0, PoTableColumnManagerComponent_po_popover_0_Template, 11, 5, "po-popover", 0);
|
|
13790
14169
|
} if (rf & 2) {
|
|
13791
14170
|
i0.ɵɵproperty("ngIf", ctx.target);
|
|
13792
14171
|
} }, directives: [i1.NgIf, PoPopoverComponent, PoCheckboxGroupComponent, i3.NgControlStatus, i3.NgModel, PoButtonComponent], encapsulation: 2 });
|
|
13793
14172
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableColumnManagerComponent, [{
|
|
13794
14173
|
type: Component,
|
|
13795
|
-
args: [{ selector: 'po-table-column-manager', template: "<po-popover #popover *ngIf=\"target\" [p-target]=\"target\" p-position=\"bottom-left\" (p-close)=\"checkChanges([], true)\">\n <div class=\"po-table-column-manager-header\">\n <div class=\"po-table-column-manager-header-title\">{{ literals.columnsManager }}</div>\n\n <div class=\"po-table-column-manager-header-close\">\n <button\n class=\"po-table-column-manager-header-close-button po-clickable po-icon po-icon-close\"\n (click)=\"popover.close()\"\n ></button>\n </div>\n </div>\n\n <div class=\"po-table-column-manager-body\">\n <po-checkbox-group\n name=\"visibleColumns\"\n [(ngModel)]=\"visibleColumns\"\n p-columns=\"1\"\n [p-options]=\"columnsOptions\"\n (p-change)=\"checkChanges($event, false)\"\n >\n </po-checkbox-group>\n </div>\n\n <div class=\"po-table-column-manager-footer\">\n <po-button\n class=\"po-table-column-manager-footer-restore\"\n p-small\n p-
|
|
14174
|
+
args: [{ selector: 'po-table-column-manager', template: "<po-popover #popover *ngIf=\"target\" [p-target]=\"target\" p-position=\"bottom-left\" (p-close)=\"checkChanges([], true)\">\n <div class=\"po-table-column-manager-header\">\n <div class=\"po-table-column-manager-header-title\">{{ literals.columnsManager }}</div>\n\n <div class=\"po-table-column-manager-header-close\">\n <button\n class=\"po-table-column-manager-header-close-button po-clickable po-icon po-icon-close\"\n (click)=\"popover.close()\"\n ></button>\n </div>\n </div>\n\n <div class=\"po-table-column-manager-body\">\n <po-checkbox-group\n name=\"visibleColumns\"\n [(ngModel)]=\"visibleColumns\"\n p-columns=\"1\"\n [p-options]=\"columnsOptions\"\n (p-change)=\"checkChanges($event, false)\"\n >\n </po-checkbox-group>\n </div>\n\n <div class=\"po-table-column-manager-footer\">\n <po-button\n class=\"po-table-column-manager-footer-restore\"\n p-small\n p-kind=\"tertiary\"\n [p-label]=\"literals.restoreDefault\"\n (p-click)=\"restore()\"\n >\n </po-button>\n </div>\n</po-popover>\n" }]
|
|
13796
14175
|
}], function () { return [{ type: i0.Renderer2 }, { type: PoLanguageService }]; }, { popover: [{
|
|
13797
14176
|
type: ViewChild,
|
|
13798
14177
|
args: [PoPopoverComponent]
|
|
@@ -14214,6 +14593,8 @@ class PoTableBaseComponent {
|
|
|
14214
14593
|
* @description
|
|
14215
14594
|
*
|
|
14216
14595
|
* Define a altura da tabela em *pixels* e fixa o cabeçalho.
|
|
14596
|
+
*
|
|
14597
|
+
* Ao utilizar essa propriedade será inserido o `virtual-scroll` na tabela melhorando a performance.
|
|
14217
14598
|
*/
|
|
14218
14599
|
set height(height) {
|
|
14219
14600
|
this._height = height;
|
|
@@ -14634,7 +15015,9 @@ class PoTableBaseComponent {
|
|
|
14634
15015
|
this.subtitleColumns = this.getSubtitleColumns();
|
|
14635
15016
|
}
|
|
14636
15017
|
sortArray(column, ascending) {
|
|
14637
|
-
|
|
15018
|
+
const itemsList = [...this.items];
|
|
15019
|
+
itemsList.sort((leftSide, rightSide) => sortValues(leftSide[column.property], rightSide[column.property], ascending));
|
|
15020
|
+
this.items = itemsList;
|
|
14638
15021
|
}
|
|
14639
15022
|
unselectOtherRows(rows, row) {
|
|
14640
15023
|
rows.forEach(item => {
|
|
@@ -15345,29 +15728,27 @@ function PoTableDetailComponent_tr_3_ng_container_1_Template(rf, ctx) { if (rf &
|
|
|
15345
15728
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
15346
15729
|
i0.ɵɵelementContainerStart(0);
|
|
15347
15730
|
i0.ɵɵelement(1, "td", 12);
|
|
15348
|
-
i0.ɵɵelementStart(2, "td", 13);
|
|
15349
|
-
i0.ɵɵ
|
|
15350
|
-
i0.ɵɵelementStart(4, "label", 15);
|
|
15351
|
-
i0.ɵɵlistener("click", function PoTableDetailComponent_tr_3_ng_container_1_Template_label_click_4_listener() { i0.ɵɵrestoreView(_r12); const item_r5 = i0.ɵɵnextContext().$implicit; const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onSelectRow(item_r5); });
|
|
15731
|
+
i0.ɵɵelementStart(2, "td", 13)(3, "po-checkbox", 14);
|
|
15732
|
+
i0.ɵɵlistener("click", function PoTableDetailComponent_tr_3_ng_container_1_Template_po_checkbox_click_3_listener() { i0.ɵɵrestoreView(_r12); const item_r5 = i0.ɵɵnextContext().$implicit; const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.onSelectRow(item_r5); })("p-change", function PoTableDetailComponent_tr_3_ng_container_1_Template_po_checkbox_p_change_3_listener() { i0.ɵɵrestoreView(_r12); const item_r5 = i0.ɵɵnextContext().$implicit; const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.onSelectRow(item_r5); })("ngModelChange", function PoTableDetailComponent_tr_3_ng_container_1_Template_po_checkbox_ngModelChange_3_listener($event) { i0.ɵɵrestoreView(_r12); const item_r5 = i0.ɵɵnextContext().$implicit; return item_r5.$selected = $event; });
|
|
15352
15733
|
i0.ɵɵelementEnd()();
|
|
15353
15734
|
i0.ɵɵelementContainerEnd();
|
|
15354
15735
|
} if (rf & 2) {
|
|
15355
15736
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15356
15737
|
i0.ɵɵadvance(3);
|
|
15357
|
-
i0.ɵɵ
|
|
15738
|
+
i0.ɵɵproperty("ngModel", item_r5.$selected);
|
|
15358
15739
|
} }
|
|
15359
15740
|
function PoTableDetailComponent_tr_3_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
15360
|
-
i0.ɵɵelement(0, "td",
|
|
15741
|
+
i0.ɵɵelement(0, "td", 15);
|
|
15361
15742
|
} }
|
|
15362
15743
|
function PoTableDetailComponent_tr_3_td_4_strong_1_Template(rf, ctx) { if (rf & 1) {
|
|
15363
15744
|
i0.ɵɵelementStart(0, "strong");
|
|
15364
15745
|
i0.ɵɵtext(1);
|
|
15365
15746
|
i0.ɵɵelementEnd();
|
|
15366
15747
|
} if (rf & 2) {
|
|
15367
|
-
const
|
|
15368
|
-
const
|
|
15748
|
+
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15749
|
+
const ctx_r19 = i0.ɵɵnextContext(2);
|
|
15369
15750
|
i0.ɵɵadvance(1);
|
|
15370
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
15751
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r19.getColumnTitleLabel(detail_r18), ": ");
|
|
15371
15752
|
} }
|
|
15372
15753
|
function PoTableDetailComponent_tr_3_td_4_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
15373
15754
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -15375,10 +15756,10 @@ function PoTableDetailComponent_tr_3_td_4_span_3_Template(rf, ctx) { if (rf & 1)
|
|
|
15375
15756
|
i0.ɵɵpipe(2, "currency");
|
|
15376
15757
|
i0.ɵɵelementEnd();
|
|
15377
15758
|
} if (rf & 2) {
|
|
15378
|
-
const
|
|
15759
|
+
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15379
15760
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15380
15761
|
i0.ɵɵadvance(1);
|
|
15381
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind4(2, 1, item_r5[
|
|
15762
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind4(2, 1, item_r5[detail_r18.property], detail_r18.format, "symbol", "1.2-2"));
|
|
15382
15763
|
} }
|
|
15383
15764
|
function PoTableDetailComponent_tr_3_td_4_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
15384
15765
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -15386,10 +15767,10 @@ function PoTableDetailComponent_tr_3_td_4_span_4_Template(rf, ctx) { if (rf & 1)
|
|
|
15386
15767
|
i0.ɵɵpipe(2, "date");
|
|
15387
15768
|
i0.ɵɵelementEnd();
|
|
15388
15769
|
} if (rf & 2) {
|
|
15389
|
-
const
|
|
15770
|
+
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15390
15771
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15391
15772
|
i0.ɵɵadvance(1);
|
|
15392
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, item_r5[
|
|
15773
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, item_r5[detail_r18.property], detail_r18.format || "dd/MM/yyyy"));
|
|
15393
15774
|
} }
|
|
15394
15775
|
function PoTableDetailComponent_tr_3_td_4_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
15395
15776
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -15397,10 +15778,10 @@ function PoTableDetailComponent_tr_3_td_4_span_5_Template(rf, ctx) { if (rf & 1)
|
|
|
15397
15778
|
i0.ɵɵpipe(2, "po_time");
|
|
15398
15779
|
i0.ɵɵelementEnd();
|
|
15399
15780
|
} if (rf & 2) {
|
|
15400
|
-
const
|
|
15781
|
+
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15401
15782
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15402
15783
|
i0.ɵɵadvance(1);
|
|
15403
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, item_r5[
|
|
15784
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(2, 1, item_r5[detail_r18.property], detail_r18.format || "HH:mm:ss.ffffff"));
|
|
15404
15785
|
} }
|
|
15405
15786
|
function PoTableDetailComponent_tr_3_td_4_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
15406
15787
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -15408,53 +15789,53 @@ function PoTableDetailComponent_tr_3_td_4_span_6_Template(rf, ctx) { if (rf & 1)
|
|
|
15408
15789
|
i0.ɵɵpipe(2, "date");
|
|
15409
15790
|
i0.ɵɵelementEnd();
|
|
15410
15791
|
} if (rf & 2) {
|
|
15411
|
-
const
|
|
15792
|
+
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15412
15793
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15413
15794
|
i0.ɵɵadvance(1);
|
|
15414
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, item_r5[
|
|
15795
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, item_r5[detail_r18.property], detail_r18.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
15415
15796
|
} }
|
|
15416
15797
|
function PoTableDetailComponent_tr_3_td_4_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
15417
15798
|
i0.ɵɵelementStart(0, "span");
|
|
15418
15799
|
i0.ɵɵtext(1);
|
|
15419
15800
|
i0.ɵɵelementEnd();
|
|
15420
15801
|
} if (rf & 2) {
|
|
15421
|
-
const
|
|
15802
|
+
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15422
15803
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15423
|
-
const
|
|
15804
|
+
const ctx_r24 = i0.ɵɵnextContext();
|
|
15424
15805
|
i0.ɵɵadvance(1);
|
|
15425
|
-
i0.ɵɵtextInterpolate(
|
|
15806
|
+
i0.ɵɵtextInterpolate(ctx_r24.formatNumberDetail(item_r5[detail_r18.property], detail_r18.format));
|
|
15426
15807
|
} }
|
|
15427
15808
|
function PoTableDetailComponent_tr_3_td_4_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
15428
15809
|
i0.ɵɵelementStart(0, "span");
|
|
15429
15810
|
i0.ɵɵtext(1);
|
|
15430
15811
|
i0.ɵɵelementEnd();
|
|
15431
15812
|
} if (rf & 2) {
|
|
15432
|
-
const
|
|
15813
|
+
const detail_r18 = i0.ɵɵnextContext().$implicit;
|
|
15433
15814
|
const item_r5 = i0.ɵɵnextContext().$implicit;
|
|
15434
15815
|
i0.ɵɵadvance(1);
|
|
15435
|
-
i0.ɵɵtextInterpolate(item_r5[
|
|
15816
|
+
i0.ɵɵtextInterpolate(item_r5[detail_r18.property]);
|
|
15436
15817
|
} }
|
|
15437
15818
|
function PoTableDetailComponent_tr_3_td_4_Template(rf, ctx) { if (rf & 1) {
|
|
15438
|
-
const
|
|
15439
|
-
i0.ɵɵelementStart(0, "td",
|
|
15440
|
-
i0.ɵɵlistener("click", function PoTableDetailComponent_tr_3_td_4_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
15819
|
+
const _r40 = i0.ɵɵgetCurrentView();
|
|
15820
|
+
i0.ɵɵelementStart(0, "td", 16);
|
|
15821
|
+
i0.ɵɵlistener("click", function PoTableDetailComponent_tr_3_td_4_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r40); const item_r5 = i0.ɵɵnextContext().$implicit; const ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.isSelectable ? ctx_r39.onSelectRow(item_r5) : "javascript:;"; });
|
|
15441
15822
|
i0.ɵɵtemplate(1, PoTableDetailComponent_tr_3_td_4_strong_1_Template, 2, 1, "strong", 1);
|
|
15442
|
-
i0.ɵɵelementContainerStart(2,
|
|
15443
|
-
i0.ɵɵtemplate(3, PoTableDetailComponent_tr_3_td_4_span_3_Template, 3, 6, "span",
|
|
15444
|
-
i0.ɵɵtemplate(4, PoTableDetailComponent_tr_3_td_4_span_4_Template, 3, 4, "span",
|
|
15445
|
-
i0.ɵɵtemplate(5, PoTableDetailComponent_tr_3_td_4_span_5_Template, 3, 4, "span",
|
|
15446
|
-
i0.ɵɵtemplate(6, PoTableDetailComponent_tr_3_td_4_span_6_Template, 3, 4, "span",
|
|
15447
|
-
i0.ɵɵtemplate(7, PoTableDetailComponent_tr_3_td_4_span_7_Template, 2, 1, "span",
|
|
15448
|
-
i0.ɵɵtemplate(8, PoTableDetailComponent_tr_3_td_4_span_8_Template, 2, 1, "span",
|
|
15823
|
+
i0.ɵɵelementContainerStart(2, 17);
|
|
15824
|
+
i0.ɵɵtemplate(3, PoTableDetailComponent_tr_3_td_4_span_3_Template, 3, 6, "span", 18);
|
|
15825
|
+
i0.ɵɵtemplate(4, PoTableDetailComponent_tr_3_td_4_span_4_Template, 3, 4, "span", 18);
|
|
15826
|
+
i0.ɵɵtemplate(5, PoTableDetailComponent_tr_3_td_4_span_5_Template, 3, 4, "span", 18);
|
|
15827
|
+
i0.ɵɵtemplate(6, PoTableDetailComponent_tr_3_td_4_span_6_Template, 3, 4, "span", 18);
|
|
15828
|
+
i0.ɵɵtemplate(7, PoTableDetailComponent_tr_3_td_4_span_7_Template, 2, 1, "span", 18);
|
|
15829
|
+
i0.ɵɵtemplate(8, PoTableDetailComponent_tr_3_td_4_span_8_Template, 2, 1, "span", 19);
|
|
15449
15830
|
i0.ɵɵelementContainerEnd();
|
|
15450
15831
|
i0.ɵɵelementEnd();
|
|
15451
15832
|
} if (rf & 2) {
|
|
15452
|
-
const
|
|
15833
|
+
const detail_r18 = ctx.$implicit;
|
|
15453
15834
|
const ctx_r9 = i0.ɵɵnextContext(2);
|
|
15454
15835
|
i0.ɵɵadvance(1);
|
|
15455
15836
|
i0.ɵɵproperty("ngIf", ctx_r9.typeHeaderInline);
|
|
15456
15837
|
i0.ɵɵadvance(1);
|
|
15457
|
-
i0.ɵɵproperty("ngSwitch",
|
|
15838
|
+
i0.ɵɵproperty("ngSwitch", detail_r18.type);
|
|
15458
15839
|
i0.ɵɵadvance(1);
|
|
15459
15840
|
i0.ɵɵproperty("ngSwitchCase", "currency");
|
|
15460
15841
|
i0.ɵɵadvance(1);
|
|
@@ -15468,7 +15849,7 @@ function PoTableDetailComponent_tr_3_td_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15468
15849
|
} }
|
|
15469
15850
|
function PoTableDetailComponent_tr_3_Template(rf, ctx) { if (rf & 1) {
|
|
15470
15851
|
i0.ɵɵelementStart(0, "tr", 8);
|
|
15471
|
-
i0.ɵɵtemplate(1, PoTableDetailComponent_tr_3_ng_container_1_Template,
|
|
15852
|
+
i0.ɵɵtemplate(1, PoTableDetailComponent_tr_3_ng_container_1_Template, 4, 1, "ng-container", 9);
|
|
15472
15853
|
i0.ɵɵtemplate(2, PoTableDetailComponent_tr_3_ng_template_2_Template, 1, 0, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
15473
15854
|
i0.ɵɵtemplate(4, PoTableDetailComponent_tr_3_td_4_Template, 9, 7, "td", 11);
|
|
15474
15855
|
i0.ɵɵelementEnd();
|
|
@@ -15551,7 +15932,7 @@ class PoTableDetailComponent {
|
|
|
15551
15932
|
}
|
|
15552
15933
|
}
|
|
15553
15934
|
PoTableDetailComponent.ɵfac = function PoTableDetailComponent_Factory(t) { return new (t || PoTableDetailComponent)(i0.ɵɵdirectiveInject(i1.DecimalPipe)); };
|
|
15554
|
-
PoTableDetailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableDetailComponent, selectors: [["po-table-detail"]], inputs: { items: ["p-items", "items"], isSelectable: ["p-selectable", "isSelectable"], detail: ["p-detail", "detail"] }, outputs: { selectRow: "p-select-row" }, decls: 4, vars: 2, consts: [[1, "po-table-master-detail"], [4, "ngIf"], ["class", "po-table-detail-row", 3, "po-table-row-active", 4, "ngFor", "ngForOf"], ["class", "po-table-header po-table-column-selectable", 4, "ngIf"], [1, "po-table-header", "po-table-header-column", "po-table-header-master-detail"], ["class", "po-table-header po-table-header-ellipsis", 4, "ngFor", "ngForOf"], [1, "po-table-header", "po-table-column-selectable"], [1, "po-table-header", "po-table-header-ellipsis"], [1, "po-table-detail-row"], [4, "ngIf", "ngIfElse"], ["masterDetailSpace", ""], ["class", "po-table-column-master-detail po-table-master-detail-label", 3, "click", 4, "ngFor", "ngForOf"], [1, "po-table-column-master-detail-space-checkbox"], [1, "po-table-column", "po-table-column-selectable"], ["
|
|
15935
|
+
PoTableDetailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableDetailComponent, selectors: [["po-table-detail"]], inputs: { items: ["p-items", "items"], isSelectable: ["p-selectable", "isSelectable"], detail: ["p-detail", "detail"] }, outputs: { selectRow: "p-select-row" }, decls: 4, vars: 2, consts: [[1, "po-table-master-detail"], [4, "ngIf"], ["class", "po-table-detail-row", 3, "po-table-row-active", 4, "ngFor", "ngForOf"], ["class", "po-table-header po-table-column-selectable", 4, "ngIf"], [1, "po-table-header", "po-table-header-column", "po-table-header-master-detail"], ["class", "po-table-header po-table-header-ellipsis", 4, "ngFor", "ngForOf"], [1, "po-table-header", "po-table-column-selectable"], [1, "po-table-header", "po-table-header-ellipsis"], [1, "po-table-detail-row"], [4, "ngIf", "ngIfElse"], ["masterDetailSpace", ""], ["class", "po-table-column-master-detail po-table-master-detail-label", 3, "click", 4, "ngFor", "ngForOf"], [1, "po-table-column-master-detail-space-checkbox"], [1, "po-table-column", "po-table-column-selectable"], ["name", "checkbox", 3, "ngModel", "click", "p-change", "ngModelChange"], [1, "po-table-column-master-detail-space"], [1, "po-table-column-master-detail", "po-table-master-detail-label", 3, "click"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"]], template: function PoTableDetailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15555
15936
|
i0.ɵɵelementStart(0, "table", 0);
|
|
15556
15937
|
i0.ɵɵtemplate(1, PoTableDetailComponent_thead_1_Template, 5, 2, "thead", 1);
|
|
15557
15938
|
i0.ɵɵelementStart(2, "tbody");
|
|
@@ -15562,10 +15943,10 @@ PoTableDetailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTa
|
|
|
15562
15943
|
i0.ɵɵproperty("ngIf", ctx.typeHeaderTop);
|
|
15563
15944
|
i0.ɵɵadvance(2);
|
|
15564
15945
|
i0.ɵɵproperty("ngForOf", ctx.items);
|
|
15565
|
-
} }, directives: [i1.NgIf, i1.NgForOf, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault], pipes: [i1.CurrencyPipe, i1.DatePipe, PoTimePipe], encapsulation: 2 });
|
|
15946
|
+
} }, directives: [i1.NgIf, i1.NgForOf, PoCheckboxComponent, i3.NgControlStatus, i3.NgModel, i1.NgSwitch, i1.NgSwitchCase, i1.NgSwitchDefault], pipes: [i1.CurrencyPipe, i1.DatePipe, PoTimePipe], encapsulation: 2 });
|
|
15566
15947
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableDetailComponent, [{
|
|
15567
15948
|
type: Component,
|
|
15568
|
-
args: [{ selector: 'po-table-detail', template: "<table class=\"po-table-master-detail\">\n <thead *ngIf=\"typeHeaderTop\">\n <tr>\n <th class=\"po-table-header po-table-column-selectable\" *ngIf=\"isSelectable\"></th>\n <th class=\"po-table-header po-table-header-column po-table-header-master-detail\"></th>\n <th class=\"po-table-header po-table-header-ellipsis\" *ngFor=\"let detail of detail.columns\">\n {{ getColumnTitleLabel(detail) }}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr\n class=\"po-table-detail-row\"\n [class.po-table-row-active]=\"item.$selected && isSelectable\"\n *ngFor=\"let item of items\"\n >\n <ng-container *ngIf=\"isSelectable; else masterDetailSpace\">\n <td class=\"po-table-column-master-detail-space-checkbox\"></td>\n <td class=\"po-table-column po-table-column-selectable\">\n <
|
|
15949
|
+
args: [{ selector: 'po-table-detail', template: "<table class=\"po-table-master-detail\">\n <thead *ngIf=\"typeHeaderTop\">\n <tr>\n <th class=\"po-table-header po-table-column-selectable\" *ngIf=\"isSelectable\"></th>\n <th class=\"po-table-header po-table-header-column po-table-header-master-detail\"></th>\n <th class=\"po-table-header po-table-header-ellipsis\" *ngFor=\"let detail of detail.columns\">\n {{ getColumnTitleLabel(detail) }}\n </th>\n </tr>\n </thead>\n <tbody>\n <tr\n class=\"po-table-detail-row\"\n [class.po-table-row-active]=\"item.$selected && isSelectable\"\n *ngFor=\"let item of items\"\n >\n <ng-container *ngIf=\"isSelectable; else masterDetailSpace\">\n <td class=\"po-table-column-master-detail-space-checkbox\"></td>\n <td class=\"po-table-column po-table-column-selectable\">\n <po-checkbox\n name=\"checkbox\"\n (click)=\"onSelectRow(item)\"\n (p-change)=\"onSelectRow(item)\"\n [(ngModel)]=\"item.$selected\"\n ></po-checkbox>\n </td>\n </ng-container>\n\n <ng-template #masterDetailSpace>\n <td class=\"po-table-column-master-detail-space\"></td>\n </ng-template>\n\n <td\n class=\"po-table-column-master-detail po-table-master-detail-label\"\n (click)=\"isSelectable ? onSelectRow(item) : 'javascript:;'\"\n *ngFor=\"let detail of detailColumns\"\n >\n <strong *ngIf=\"typeHeaderInline\"> {{ getColumnTitleLabel(detail) }}: </strong>\n\n <ng-container [ngSwitch]=\"detail.type\">\n <span *ngSwitchCase=\"'currency'\">{{ item[detail.property] | currency: detail.format:'symbol':'1.2-2' }}</span>\n <span *ngSwitchCase=\"'date'\">{{ item[detail.property] | date: detail.format || 'dd/MM/yyyy' }}</span>\n <span *ngSwitchCase=\"'time'\">{{ item[detail.property] | po_time: detail.format || 'HH:mm:ss.ffffff' }}</span>\n <span *ngSwitchCase=\"'dateTime'\">\n {{ item[detail.property] | date: detail.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n <span *ngSwitchCase=\"'number'\">{{ formatNumberDetail(item[detail.property], detail.format) }}</span>\n <span *ngSwitchDefault>{{ item[detail.property] }}</span>\n </ng-container>\n </td>\n </tr>\n </tbody>\n</table>\n" }]
|
|
15569
15950
|
}], function () { return [{ type: i1.DecimalPipe }]; }, { items: [{
|
|
15570
15951
|
type: Input,
|
|
15571
15952
|
args: ['p-items']
|
|
@@ -15580,16 +15961,17 @@ PoTableDetailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTa
|
|
|
15580
15961
|
args: ['p-detail']
|
|
15581
15962
|
}] }); })();
|
|
15582
15963
|
|
|
15583
|
-
const _c0$
|
|
15964
|
+
const _c0$V = ["noColumnsHeader"];
|
|
15584
15965
|
const _c1$p = ["popup"];
|
|
15585
15966
|
const _c2$a = ["tableFooter"];
|
|
15586
15967
|
const _c3$6 = ["tableWrapper"];
|
|
15587
15968
|
const _c4$4 = ["poTableTbody"];
|
|
15588
15969
|
const _c5$2 = ["poTableThead"];
|
|
15589
|
-
const _c6$2 = ["
|
|
15590
|
-
const _c7$1 = ["
|
|
15591
|
-
const _c8$1 = ["
|
|
15592
|
-
const _c9 = ["
|
|
15970
|
+
const _c6$2 = ["poTableTbodyVirtual"];
|
|
15971
|
+
const _c7$1 = ["columnManagerTarget"];
|
|
15972
|
+
const _c8$1 = ["actionsIconElement"];
|
|
15973
|
+
const _c9 = ["actionsElement"];
|
|
15974
|
+
const _c10 = ["headersTable"];
|
|
15593
15975
|
function PoTableComponent_po_container_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15594
15976
|
i0.ɵɵelementContainer(0);
|
|
15595
15977
|
} }
|
|
@@ -15620,23 +16002,21 @@ function PoTableComponent_ng_template_1_div_5_ng_container_6_Template(rf, ctx) {
|
|
|
15620
16002
|
i0.ɵɵelementContainer(0);
|
|
15621
16003
|
} }
|
|
15622
16004
|
function PoTableComponent_ng_template_1_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
15623
|
-
const _r37 = i0.ɵɵgetCurrentView();
|
|
15624
16005
|
i0.ɵɵelementStart(0, "div", 27)(1, "div", 28, 29);
|
|
15625
16006
|
i0.ɵɵtemplate(3, PoTableComponent_ng_template_1_div_5_ng_container_3_Template, 1, 0, "ng-container", 17);
|
|
15626
16007
|
i0.ɵɵelementEnd();
|
|
15627
16008
|
i0.ɵɵelementStart(4, "div", 30, 31);
|
|
15628
|
-
i0.ɵɵ
|
|
15629
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_1_div_5_ng_container_6_Template, 1, 0, "ng-container", 17);
|
|
16009
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_1_div_5_ng_container_6_Template, 1, 0, "ng-container", 32);
|
|
15630
16010
|
i0.ɵɵelementEnd()();
|
|
15631
16011
|
} if (rf & 2) {
|
|
15632
16012
|
const ctx_r29 = i0.ɵɵnextContext(2);
|
|
15633
16013
|
const _r4 = i0.ɵɵreference(5);
|
|
15634
16014
|
const _r6 = i0.ɵɵreference(7);
|
|
15635
|
-
i0.ɵɵ
|
|
16015
|
+
const _r8 = i0.ɵɵreference(9);
|
|
15636
16016
|
i0.ɵɵadvance(3);
|
|
15637
16017
|
i0.ɵɵproperty("ngTemplateOutlet", _r4);
|
|
15638
16018
|
i0.ɵɵadvance(3);
|
|
15639
|
-
i0.ɵɵproperty("
|
|
16019
|
+
i0.ɵɵproperty("ngIf", ctx_r29.height)("ngIfThen", _r6)("ngIfElse", _r8);
|
|
15640
16020
|
} }
|
|
15641
16021
|
function PoTableComponent_ng_template_1_div_6_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15642
16022
|
i0.ɵɵelementContainer(0);
|
|
@@ -15653,17 +16033,17 @@ function PoTableComponent_ng_template_1_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
15653
16033
|
} }
|
|
15654
16034
|
function PoTableComponent_ng_template_1_div_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15655
16035
|
i0.ɵɵelementContainerStart(0);
|
|
15656
|
-
i0.ɵɵelement(1, "po-table-subtitle-footer",
|
|
16036
|
+
i0.ɵɵelement(1, "po-table-subtitle-footer", 35);
|
|
15657
16037
|
i0.ɵɵelementContainerEnd();
|
|
15658
16038
|
} if (rf & 2) {
|
|
15659
|
-
const
|
|
15660
|
-
const
|
|
16039
|
+
const column_r38 = ctx.$implicit;
|
|
16040
|
+
const ctx_r37 = i0.ɵɵnextContext(3);
|
|
15661
16041
|
i0.ɵɵadvance(1);
|
|
15662
|
-
i0.ɵɵproperty("p-literals",
|
|
16042
|
+
i0.ɵɵproperty("p-literals", ctx_r37.literals)("p-subtitles", column_r38.subtitles);
|
|
15663
16043
|
} }
|
|
15664
16044
|
function PoTableComponent_ng_template_1_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
15665
|
-
i0.ɵɵelementStart(0, "div",
|
|
15666
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_7_ng_container_1_Template, 2, 2, "ng-container",
|
|
16045
|
+
i0.ɵɵelementStart(0, "div", 33);
|
|
16046
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_div_7_ng_container_1_Template, 2, 2, "ng-container", 34);
|
|
15667
16047
|
i0.ɵɵelementEnd();
|
|
15668
16048
|
} if (rf & 2) {
|
|
15669
16049
|
const ctx_r31 = i0.ɵɵnextContext(2);
|
|
@@ -15694,9 +16074,9 @@ function PoTableComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
15694
16074
|
i0.ɵɵproperty("ngIf", ctx_r2.hasFooter);
|
|
15695
16075
|
} }
|
|
15696
16076
|
function PoTableComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
15697
|
-
const
|
|
15698
|
-
i0.ɵɵelementStart(0, "div",
|
|
15699
|
-
i0.ɵɵlistener("p-click", function PoTableComponent_div_3_Template_po_button_p_click_2_listener() { i0.ɵɵrestoreView(
|
|
16077
|
+
const _r41 = i0.ɵɵgetCurrentView();
|
|
16078
|
+
i0.ɵɵelementStart(0, "div", 36, 37)(2, "po-button", 38);
|
|
16079
|
+
i0.ɵɵlistener("p-click", function PoTableComponent_div_3_Template_po_button_p_click_2_listener() { i0.ɵɵrestoreView(_r41); const ctx_r40 = i0.ɵɵnextContext(); return ctx_r40.onShowMore(); });
|
|
15700
16080
|
i0.ɵɵelementEnd()();
|
|
15701
16081
|
} if (rf & 2) {
|
|
15702
16082
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
@@ -15704,111 +16084,105 @@ function PoTableComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
15704
16084
|
i0.ɵɵadvance(2);
|
|
15705
16085
|
i0.ɵɵproperty("p-disabled", ctx_r3.showMoreDisabled)("p-label", ctx_r3.literals.loadMoreData)("p-loading", ctx_r3.loadingShowMore);
|
|
15706
16086
|
} }
|
|
15707
|
-
function
|
|
15708
|
-
i0.ɵɵ
|
|
15709
|
-
|
|
15710
|
-
const
|
|
15711
|
-
i0.ɵɵclassProp("po-table-checkbox-checked", ctx_r52.selectAll)("po-table-checkbox-indeterminate", ctx_r52.selectAll === null);
|
|
15712
|
-
} }
|
|
15713
|
-
function PoTableComponent_ng_template_4_th_3_label_3_Template(rf, ctx) { if (rf & 1) {
|
|
15714
|
-
const _r55 = i0.ɵɵgetCurrentView();
|
|
15715
|
-
i0.ɵɵelementStart(0, "label", 50);
|
|
15716
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_3_label_3_Template_label_click_0_listener() { i0.ɵɵrestoreView(_r55); const ctx_r54 = i0.ɵɵnextContext(3); return ctx_r54.selectAllRows(); });
|
|
16087
|
+
function PoTableComponent_ng_template_4_th_3_po_checkbox_2_Template(rf, ctx) { if (rf & 1) {
|
|
16088
|
+
const _r52 = i0.ɵɵgetCurrentView();
|
|
16089
|
+
i0.ɵɵelementStart(0, "po-checkbox", 49);
|
|
16090
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_3_po_checkbox_2_Template_po_checkbox_click_0_listener() { i0.ɵɵrestoreView(_r52); const ctx_r51 = i0.ɵɵnextContext(3); return ctx_r51.selectAllRows(); })("p-change", function PoTableComponent_ng_template_4_th_3_po_checkbox_2_Template_po_checkbox_p_change_0_listener() { i0.ɵɵrestoreView(_r52); const ctx_r53 = i0.ɵɵnextContext(3); return ctx_r53.selectAllRows(); })("ngModelChange", function PoTableComponent_ng_template_4_th_3_po_checkbox_2_Template_po_checkbox_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r52); const ctx_r54 = i0.ɵɵnextContext(3); return ctx_r54.selectAll = $event; });
|
|
15717
16091
|
i0.ɵɵelementEnd();
|
|
16092
|
+
} if (rf & 2) {
|
|
16093
|
+
const ctx_r50 = i0.ɵɵnextContext(3);
|
|
16094
|
+
i0.ɵɵproperty("ngModel", ctx_r50.selectAll);
|
|
15718
16095
|
} }
|
|
15719
16096
|
function PoTableComponent_ng_template_4_th_3_Template(rf, ctx) { if (rf & 1) {
|
|
15720
|
-
i0.ɵɵelementStart(0, "th",
|
|
15721
|
-
i0.ɵɵtemplate(2,
|
|
15722
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_3_label_3_Template, 1, 0, "label", 48);
|
|
16097
|
+
i0.ɵɵelementStart(0, "th", 47)(1, "div");
|
|
16098
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_3_po_checkbox_2_Template, 1, 1, "po-checkbox", 48);
|
|
15723
16099
|
i0.ɵɵelementEnd()();
|
|
15724
16100
|
} if (rf & 2) {
|
|
15725
|
-
const
|
|
15726
|
-
i0.ɵɵadvance(1);
|
|
15727
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r44.height);
|
|
16101
|
+
const ctx_r42 = i0.ɵɵnextContext(2);
|
|
15728
16102
|
i0.ɵɵadvance(1);
|
|
15729
|
-
i0.ɵɵ
|
|
16103
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r42.height);
|
|
15730
16104
|
i0.ɵɵadvance(1);
|
|
15731
|
-
i0.ɵɵproperty("ngIf", !
|
|
16105
|
+
i0.ɵɵproperty("ngIf", !ctx_r42.hideSelectAll);
|
|
15732
16106
|
} }
|
|
15733
16107
|
function PoTableComponent_ng_template_4_th_4_Template(rf, ctx) { if (rf & 1) {
|
|
15734
|
-
i0.ɵɵelement(0, "th",
|
|
16108
|
+
i0.ɵɵelement(0, "th", 50);
|
|
15735
16109
|
} }
|
|
15736
16110
|
function PoTableComponent_ng_template_4_th_5_Template(rf, ctx) { if (rf & 1) {
|
|
15737
16111
|
i0.ɵɵelement(0, "th");
|
|
15738
16112
|
} if (rf & 2) {
|
|
15739
|
-
const
|
|
15740
|
-
i0.ɵɵclassProp("po-table-header-master-detail", !
|
|
16113
|
+
const ctx_r44 = i0.ɵɵnextContext(2);
|
|
16114
|
+
i0.ɵɵclassProp("po-table-header-master-detail", !ctx_r44.isSingleAction)("po-table-header-single-action", ctx_r44.isSingleAction);
|
|
15741
16115
|
} }
|
|
15742
16116
|
function PoTableComponent_ng_template_4_th_6_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
15743
16117
|
i0.ɵɵelementContainer(0);
|
|
15744
16118
|
} }
|
|
15745
16119
|
function PoTableComponent_ng_template_4_th_6_Template(rf, ctx) { if (rf & 1) {
|
|
15746
|
-
i0.ɵɵelementStart(0, "th",
|
|
15747
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_6_ng_container_2_Template, 1, 0, "ng-container",
|
|
16120
|
+
i0.ɵɵelementStart(0, "th", 51, 52);
|
|
16121
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_4_th_6_ng_container_2_Template, 1, 0, "ng-container", 32);
|
|
15748
16122
|
i0.ɵɵelementEnd();
|
|
15749
16123
|
} if (rf & 2) {
|
|
15750
|
-
const
|
|
16124
|
+
const ctx_r45 = i0.ɵɵnextContext(2);
|
|
15751
16125
|
const _r19 = i0.ɵɵreference(21);
|
|
15752
16126
|
const _r21 = i0.ɵɵreference(23);
|
|
15753
16127
|
i0.ɵɵadvance(2);
|
|
15754
|
-
i0.ɵɵproperty("ngIf",
|
|
16128
|
+
i0.ɵɵproperty("ngIf", ctx_r45.height)("ngIfThen", _r19)("ngIfElse", _r21);
|
|
15755
16129
|
} }
|
|
15756
16130
|
function PoTableComponent_ng_template_4_th_7_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
15757
16131
|
i0.ɵɵelementContainer(0);
|
|
15758
16132
|
} }
|
|
15759
|
-
const
|
|
16133
|
+
const _c11 = function (a0) { return { $implicit: a0 }; };
|
|
15760
16134
|
function PoTableComponent_ng_template_4_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
15761
|
-
const
|
|
15762
|
-
i0.ɵɵelementStart(0, "th",
|
|
15763
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
15764
|
-
i0.ɵɵelementStart(2, "div",
|
|
15765
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_7_ng_container_3_Template, 1, 0, "ng-container",
|
|
16135
|
+
const _r62 = i0.ɵɵgetCurrentView();
|
|
16136
|
+
i0.ɵɵelementStart(0, "th", 53, 54);
|
|
16137
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r62); const column_r57 = restoredCtx.$implicit; const ctx_r61 = i0.ɵɵnextContext(2); return ctx_r61.sortColumn(column_r57); });
|
|
16138
|
+
i0.ɵɵelementStart(2, "div", 55);
|
|
16139
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_7_ng_container_3_Template, 1, 0, "ng-container", 56);
|
|
15766
16140
|
i0.ɵɵelementEnd()();
|
|
15767
16141
|
} if (rf & 2) {
|
|
15768
|
-
const
|
|
15769
|
-
const
|
|
16142
|
+
const column_r57 = ctx.$implicit;
|
|
16143
|
+
const ctx_r46 = i0.ɵɵnextContext(2);
|
|
15770
16144
|
const _r17 = i0.ɵɵreference(19);
|
|
15771
|
-
i0.ɵɵstyleProp("width",
|
|
15772
|
-
i0.ɵɵclassProp("po-clickable",
|
|
16145
|
+
i0.ɵɵstyleProp("width", column_r57.width)("max-width", column_r57.width)("min-width", column_r57.width);
|
|
16146
|
+
i0.ɵɵclassProp("po-clickable", ctx_r46.sort && column_r57.sortable !== false || ctx_r46.hasService)("po-table-header-subtitle", column_r57.type === "subtitle");
|
|
15773
16147
|
i0.ɵɵadvance(2);
|
|
15774
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner",
|
|
16148
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r46.height)("po-table-header-flex-right", column_r57.type === "currency" || column_r57.type === "number")("po-table-header-flex-center", column_r57.type === "subtitle");
|
|
15775
16149
|
i0.ɵɵadvance(1);
|
|
15776
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18,
|
|
16150
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18, _c11, column_r57));
|
|
15777
16151
|
} }
|
|
15778
16152
|
function PoTableComponent_ng_template_4_th_8_Template(rf, ctx) { if (rf & 1) {
|
|
15779
|
-
i0.ɵɵelement(0, "th",
|
|
16153
|
+
i0.ɵɵelement(0, "th", 50);
|
|
15780
16154
|
} }
|
|
15781
16155
|
function PoTableComponent_ng_template_4_th_9_Template(rf, ctx) { if (rf & 1) {
|
|
15782
16156
|
i0.ɵɵelement(0, "th");
|
|
15783
16157
|
} if (rf & 2) {
|
|
15784
|
-
const
|
|
15785
|
-
i0.ɵɵclassProp("po-table-header-single-action",
|
|
16158
|
+
const ctx_r48 = i0.ɵɵnextContext(2);
|
|
16159
|
+
i0.ɵɵclassProp("po-table-header-single-action", ctx_r48.isSingleAction)("po-table-header-actions", !ctx_r48.isSingleAction);
|
|
15786
16160
|
} }
|
|
15787
16161
|
function PoTableComponent_ng_template_4_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
15788
|
-
const
|
|
15789
|
-
i0.ɵɵelementStart(0, "th", null,
|
|
15790
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(
|
|
16162
|
+
const _r66 = i0.ɵɵgetCurrentView();
|
|
16163
|
+
i0.ɵɵelementStart(0, "th", null, 57)(2, "div")(3, "button", 58, 59);
|
|
16164
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_4_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r66); const ctx_r65 = i0.ɵɵnextContext(2); return ctx_r65.onOpenColumnManager(); });
|
|
15791
16165
|
i0.ɵɵelementEnd()()();
|
|
15792
16166
|
} if (rf & 2) {
|
|
15793
|
-
const
|
|
15794
|
-
const
|
|
15795
|
-
i0.ɵɵclassProp("po-table-header-column-manager", !
|
|
16167
|
+
const _r63 = i0.ɵɵreference(1);
|
|
16168
|
+
const ctx_r49 = i0.ɵɵnextContext(2);
|
|
16169
|
+
i0.ɵɵclassProp("po-table-header-column-manager", !ctx_r49.isSingleAction || !ctx_r49.actionRight)("po-table-header-column-manager-border", !ctx_r49.height && ctx_r49.container)("po-table-header-single-action", ctx_r49.isSingleAction && ctx_r49.actionRight);
|
|
15796
16170
|
i0.ɵɵadvance(2);
|
|
15797
|
-
i0.ɵɵstyleProp("width",
|
|
15798
|
-
i0.ɵɵclassProp("po-table-header-column-manager-border",
|
|
16171
|
+
i0.ɵɵstyleProp("width", ctx_r49.height && ctx_r49.visibleActions.length ? _r63.offsetWidth : undefined, "px");
|
|
16172
|
+
i0.ɵɵclassProp("po-table-header-column-manager-border", ctx_r49.height && ctx_r49.container)("po-table-header-column-manager-fixed-inner", ctx_r49.height);
|
|
15799
16173
|
i0.ɵɵadvance(1);
|
|
15800
|
-
i0.ɵɵproperty("p-tooltip",
|
|
16174
|
+
i0.ɵɵproperty("p-tooltip", ctx_r49.literals.columnsManager);
|
|
15801
16175
|
} }
|
|
15802
16176
|
function PoTableComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
15803
|
-
i0.ɵɵelementStart(0, "table",
|
|
15804
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_3_Template,
|
|
15805
|
-
i0.ɵɵtemplate(4, PoTableComponent_ng_template_4_th_4_Template, 1, 0, "th",
|
|
15806
|
-
i0.ɵɵtemplate(5, PoTableComponent_ng_template_4_th_5_Template, 1, 4, "th",
|
|
15807
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_4_th_6_Template, 3, 3, "th",
|
|
15808
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_4_th_7_Template, 4, 20, "th",
|
|
15809
|
-
i0.ɵɵtemplate(8, PoTableComponent_ng_template_4_th_8_Template, 1, 0, "th",
|
|
15810
|
-
i0.ɵɵtemplate(9, PoTableComponent_ng_template_4_th_9_Template, 1, 4, "th",
|
|
15811
|
-
i0.ɵɵtemplate(10, PoTableComponent_ng_template_4_th_10_Template, 5, 13, "th",
|
|
16177
|
+
i0.ɵɵelementStart(0, "table", 39)(1, "thead")(2, "tr");
|
|
16178
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_4_th_3_Template, 3, 3, "th", 40);
|
|
16179
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_4_th_4_Template, 1, 0, "th", 41);
|
|
16180
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_4_th_5_Template, 1, 4, "th", 42);
|
|
16181
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_4_th_6_Template, 3, 3, "th", 43);
|
|
16182
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_4_th_7_Template, 4, 20, "th", 44);
|
|
16183
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_4_th_8_Template, 1, 0, "th", 41);
|
|
16184
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_4_th_9_Template, 1, 4, "th", 45);
|
|
16185
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_4_th_10_Template, 5, 13, "th", 46);
|
|
15812
16186
|
i0.ɵɵelementEnd()()();
|
|
15813
16187
|
} if (rf & 2) {
|
|
15814
16188
|
const ctx_r5 = i0.ɵɵnextContext();
|
|
@@ -15832,7 +16206,7 @@ function PoTableComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
15832
16206
|
i0.ɵɵadvance(1);
|
|
15833
16207
|
i0.ɵɵproperty("ngIf", ctx_r5.hasValidColumns && !ctx_r5.hideColumnsManager);
|
|
15834
16208
|
} }
|
|
15835
|
-
function
|
|
16209
|
+
function PoTableComponent_ng_template_6_tbody_3_Template(rf, ctx) { if (rf & 1) {
|
|
15836
16210
|
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 64)(2, "td", 65)(3, "span");
|
|
15837
16211
|
i0.ɵɵtext(4);
|
|
15838
16212
|
i0.ɵɵelementEnd()()()();
|
|
@@ -15843,12 +16217,12 @@ function PoTableComponent_ng_template_6_tbody_1_Template(rf, ctx) { if (rf & 1)
|
|
|
15843
16217
|
i0.ɵɵadvance(2);
|
|
15844
16218
|
i0.ɵɵtextInterpolate1(" ", ctx_r68.literals.noData, " ");
|
|
15845
16219
|
} }
|
|
15846
|
-
function
|
|
16220
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15847
16221
|
i0.ɵɵelementContainer(0);
|
|
15848
16222
|
} }
|
|
15849
|
-
function
|
|
15850
|
-
i0.ɵɵelementStart(0, "td",
|
|
15851
|
-
i0.ɵɵtemplate(1,
|
|
16223
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
16224
|
+
i0.ɵɵelementStart(0, "td", 47);
|
|
16225
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
15852
16226
|
i0.ɵɵelementEnd();
|
|
15853
16227
|
} if (rf & 2) {
|
|
15854
16228
|
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
@@ -15856,15 +16230,15 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_2_Template(rf,
|
|
|
15856
16230
|
const _r13 = i0.ɵɵreference(15);
|
|
15857
16231
|
const _r15 = i0.ɵɵreference(17);
|
|
15858
16232
|
i0.ɵɵadvance(1);
|
|
15859
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r73.singleSelect ? _r13 : _r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2,
|
|
16233
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r73.singleSelect ? _r13 : _r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, row_r71));
|
|
15860
16234
|
} }
|
|
15861
|
-
function
|
|
15862
|
-
const
|
|
15863
|
-
function
|
|
16235
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_ng_template_1_Template(rf, ctx) { }
|
|
16236
|
+
const _c12 = function (a0, a1) { return { row: a0, rowIndex: a1 }; };
|
|
16237
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
15864
16238
|
const _r89 = i0.ɵɵgetCurrentView();
|
|
15865
16239
|
i0.ɵɵelementStart(0, "td", 71);
|
|
15866
|
-
i0.ɵɵlistener("click", function
|
|
15867
|
-
i0.ɵɵtemplate(1,
|
|
16240
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r89); const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r87 = i0.ɵɵnextContext(3); return ctx_r87.toggleDetail(row_r71); });
|
|
16241
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
15868
16242
|
i0.ɵɵelementEnd();
|
|
15869
16243
|
} if (rf & 2) {
|
|
15870
16244
|
const ctx_r90 = i0.ɵɵnextContext();
|
|
@@ -15873,25 +16247,25 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_3_Template(rf,
|
|
|
15873
16247
|
i0.ɵɵnextContext(3);
|
|
15874
16248
|
const _r11 = i0.ɵɵreference(13);
|
|
15875
16249
|
i0.ɵɵadvance(1);
|
|
15876
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
16250
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r71, rowIndex_r72));
|
|
15877
16251
|
} }
|
|
15878
|
-
function
|
|
15879
|
-
function
|
|
15880
|
-
i0.ɵɵtemplate(0,
|
|
16252
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_4_ng_template_0_Template(rf, ctx) { }
|
|
16253
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_4_Template(rf, ctx) { if (rf & 1) {
|
|
16254
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_6_ng_container_4_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
15881
16255
|
} if (rf & 2) {
|
|
15882
16256
|
const ctx_r92 = i0.ɵɵnextContext();
|
|
15883
16257
|
const row_r71 = ctx_r92.$implicit;
|
|
15884
16258
|
const rowIndex_r72 = ctx_r92.index;
|
|
15885
16259
|
i0.ɵɵnextContext(3);
|
|
15886
16260
|
const _r23 = i0.ɵɵreference(25);
|
|
15887
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
16261
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r71, rowIndex_r72));
|
|
15888
16262
|
} }
|
|
15889
|
-
function
|
|
15890
|
-
function
|
|
16263
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_ng_template_1_Template(rf, ctx) { }
|
|
16264
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_Template(rf, ctx) { if (rf & 1) {
|
|
15891
16265
|
const _r96 = i0.ɵɵgetCurrentView();
|
|
15892
16266
|
i0.ɵɵelementStart(0, "td", 71);
|
|
15893
|
-
i0.ɵɵlistener("click", function
|
|
15894
|
-
i0.ɵɵtemplate(1,
|
|
16267
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r96); const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r94 = i0.ɵɵnextContext(3); return ctx_r94.toggleDetail(row_r71); });
|
|
16268
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
15895
16269
|
i0.ɵɵelementEnd();
|
|
15896
16270
|
} if (rf & 2) {
|
|
15897
16271
|
const ctx_r97 = i0.ɵɵnextContext();
|
|
@@ -15900,38 +16274,38 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_5_Template(rf,
|
|
|
15900
16274
|
i0.ɵɵnextContext(3);
|
|
15901
16275
|
const _r11 = i0.ɵɵreference(13);
|
|
15902
16276
|
i0.ɵɵadvance(1);
|
|
15903
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
16277
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r71, rowIndex_r72));
|
|
15904
16278
|
} }
|
|
15905
|
-
function
|
|
16279
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15906
16280
|
i0.ɵɵelementContainer(0);
|
|
15907
16281
|
} }
|
|
15908
|
-
function
|
|
16282
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
15909
16283
|
i0.ɵɵelementStart(0, "span");
|
|
15910
|
-
i0.ɵɵtemplate(1,
|
|
16284
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_2_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
15911
16285
|
i0.ɵɵelementEnd();
|
|
15912
16286
|
} if (rf & 2) {
|
|
15913
16287
|
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
15914
16288
|
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
15915
16289
|
const ctx_r100 = i0.ɵɵnextContext(3);
|
|
15916
16290
|
i0.ɵɵadvance(1);
|
|
15917
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r100.getTemplate(column_r98))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2,
|
|
16291
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r100.getTemplate(column_r98))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, ctx_r100.getCellData(row_r71, column_r98)));
|
|
15918
16292
|
} }
|
|
15919
|
-
function
|
|
16293
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
15920
16294
|
i0.ɵɵelementContainer(0);
|
|
15921
16295
|
} }
|
|
15922
|
-
const
|
|
15923
|
-
function
|
|
16296
|
+
const _c13 = function (a0, a1) { return { row: a0, column: a1 }; };
|
|
16297
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
15924
16298
|
i0.ɵɵelementStart(0, "span");
|
|
15925
|
-
i0.ɵɵtemplate(1,
|
|
16299
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_3_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
15926
16300
|
i0.ɵɵelementEnd();
|
|
15927
16301
|
} if (rf & 2) {
|
|
15928
16302
|
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
15929
16303
|
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
15930
16304
|
const ctx_r101 = i0.ɵɵnextContext(3);
|
|
15931
16305
|
i0.ɵɵadvance(1);
|
|
15932
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r101.tableCellTemplate == null ? null : ctx_r101.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
16306
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r101.tableCellTemplate == null ? null : ctx_r101.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c13, row_r71, column_r98));
|
|
15933
16307
|
} }
|
|
15934
|
-
function
|
|
16308
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
15935
16309
|
i0.ɵɵelementStart(0, "span");
|
|
15936
16310
|
i0.ɵɵtext(1);
|
|
15937
16311
|
i0.ɵɵelementEnd();
|
|
@@ -15942,7 +16316,7 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_4_Templ
|
|
|
15942
16316
|
i0.ɵɵadvance(1);
|
|
15943
16317
|
i0.ɵɵtextInterpolate1(" ", ctx_r102.getBooleanLabel(ctx_r102.getCellData(row_r71, column_r98), column_r98), " ");
|
|
15944
16318
|
} }
|
|
15945
|
-
function
|
|
16319
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
15946
16320
|
i0.ɵɵelementStart(0, "span");
|
|
15947
16321
|
i0.ɵɵtext(1);
|
|
15948
16322
|
i0.ɵɵpipe(2, "currency");
|
|
@@ -15954,7 +16328,7 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_5_Templ
|
|
|
15954
16328
|
i0.ɵɵadvance(1);
|
|
15955
16329
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1, ctx_r103.getCellData(row_r71, column_r98), column_r98.format, "symbol", "1.2-2"), " ");
|
|
15956
16330
|
} }
|
|
15957
|
-
function
|
|
16331
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
15958
16332
|
i0.ɵɵelementStart(0, "span");
|
|
15959
16333
|
i0.ɵɵtext(1);
|
|
15960
16334
|
i0.ɵɵpipe(2, "date");
|
|
@@ -15966,7 +16340,7 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_6_Templ
|
|
|
15966
16340
|
i0.ɵɵadvance(1);
|
|
15967
16341
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r104.getCellData(row_r71, column_r98), column_r98.format || "dd/MM/yyyy"), " ");
|
|
15968
16342
|
} }
|
|
15969
|
-
function
|
|
16343
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
15970
16344
|
i0.ɵɵelementStart(0, "span");
|
|
15971
16345
|
i0.ɵɵtext(1);
|
|
15972
16346
|
i0.ɵɵpipe(2, "po_time");
|
|
@@ -15978,7 +16352,7 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_7_Templ
|
|
|
15978
16352
|
i0.ɵɵadvance(1);
|
|
15979
16353
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r105.getCellData(row_r71, column_r98), column_r98.format || "HH:mm:ss.ffffff"), " ");
|
|
15980
16354
|
} }
|
|
15981
|
-
function
|
|
16355
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
15982
16356
|
i0.ɵɵelementStart(0, "span");
|
|
15983
16357
|
i0.ɵɵtext(1);
|
|
15984
16358
|
i0.ɵɵpipe(2, "date");
|
|
@@ -15990,7 +16364,7 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_8_Templ
|
|
|
15990
16364
|
i0.ɵɵadvance(1);
|
|
15991
16365
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r106.getCellData(row_r71, column_r98), column_r98.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
15992
16366
|
} }
|
|
15993
|
-
function
|
|
16367
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_9_Template(rf, ctx) { if (rf & 1) {
|
|
15994
16368
|
i0.ɵɵelementStart(0, "span");
|
|
15995
16369
|
i0.ɵɵtext(1);
|
|
15996
16370
|
i0.ɵɵelementEnd();
|
|
@@ -16001,10 +16375,10 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_9_Templ
|
|
|
16001
16375
|
i0.ɵɵadvance(1);
|
|
16002
16376
|
i0.ɵɵtextInterpolate1(" ", ctx_r107.formatNumber(ctx_r107.getCellData(row_r71, column_r98), column_r98.format), " ");
|
|
16003
16377
|
} }
|
|
16004
|
-
function
|
|
16378
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_link_10_Template(rf, ctx) { if (rf & 1) {
|
|
16005
16379
|
const _r133 = i0.ɵɵgetCurrentView();
|
|
16006
16380
|
i0.ɵɵelementStart(0, "po-table-column-link", 79);
|
|
16007
|
-
i0.ɵɵlistener("click", function
|
|
16381
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_link_10_Template_po_table_column_link_click_0_listener($event) { i0.ɵɵrestoreView(_r133); const column_r98 = i0.ɵɵnextContext().$implicit; const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r131 = i0.ɵɵnextContext(3); return ctx_r131.onClickLink($event, row_r71, column_r98); });
|
|
16008
16382
|
i0.ɵɵelementEnd();
|
|
16009
16383
|
} if (rf & 2) {
|
|
16010
16384
|
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
@@ -16012,7 +16386,7 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_po_table_col
|
|
|
16012
16386
|
const ctx_r108 = i0.ɵɵnextContext(3);
|
|
16013
16387
|
i0.ɵɵproperty("p-action", column_r98.action)("p-disabled", ctx_r108.checkDisabled(row_r71, column_r98))("p-link", row_r71[column_r98.link])("p-row", row_r71)("p-value", ctx_r108.getCellData(row_r71, column_r98));
|
|
16014
16388
|
} }
|
|
16015
|
-
function
|
|
16389
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_icon_11_Template(rf, ctx) { if (rf & 1) {
|
|
16016
16390
|
i0.ɵɵelement(0, "po-table-column-icon", 80);
|
|
16017
16391
|
} if (rf & 2) {
|
|
16018
16392
|
const column_r98 = i0.ɵɵnextContext().$implicit;
|
|
@@ -16020,7 +16394,7 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_po_table_col
|
|
|
16020
16394
|
const ctx_r109 = i0.ɵɵnextContext(3);
|
|
16021
16395
|
i0.ɵɵproperty("p-column", column_r98)("p-icons", ctx_r109.getColumnIcons(row_r71, column_r98))("p-row", row_r71);
|
|
16022
16396
|
} }
|
|
16023
|
-
function
|
|
16397
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_12_Template(rf, ctx) { if (rf & 1) {
|
|
16024
16398
|
i0.ɵɵelementStart(0, "span");
|
|
16025
16399
|
i0.ɵɵelement(1, "po-table-subtitle-circle", 81);
|
|
16026
16400
|
i0.ɵɵelementEnd();
|
|
@@ -16031,7 +16405,7 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_12_Temp
|
|
|
16031
16405
|
i0.ɵɵadvance(1);
|
|
16032
16406
|
i0.ɵɵproperty("p-subtitle", ctx_r110.getSubtitleColumn(row_r71, column_r98));
|
|
16033
16407
|
} }
|
|
16034
|
-
function
|
|
16408
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
16035
16409
|
i0.ɵɵelementStart(0, "span");
|
|
16036
16410
|
i0.ɵɵelement(1, "po-table-column-label", 82);
|
|
16037
16411
|
i0.ɵɵelementEnd();
|
|
@@ -16042,7 +16416,7 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_13_Temp
|
|
|
16042
16416
|
i0.ɵɵadvance(1);
|
|
16043
16417
|
i0.ɵɵproperty("p-value", ctx_r111.getColumnLabel(row_r71, column_r98));
|
|
16044
16418
|
} }
|
|
16045
|
-
function
|
|
16419
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_14_Template(rf, ctx) { if (rf & 1) {
|
|
16046
16420
|
i0.ɵɵelementStart(0, "span");
|
|
16047
16421
|
i0.ɵɵtext(1);
|
|
16048
16422
|
i0.ɵɵelementEnd();
|
|
@@ -16053,25 +16427,25 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_span_14_Temp
|
|
|
16053
16427
|
i0.ɵɵadvance(1);
|
|
16054
16428
|
i0.ɵɵtextInterpolate(ctx_r112.getCellData(row_r71, column_r98));
|
|
16055
16429
|
} }
|
|
16056
|
-
function
|
|
16430
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template(rf, ctx) { if (rf & 1) {
|
|
16057
16431
|
const _r146 = i0.ɵɵgetCurrentView();
|
|
16058
16432
|
i0.ɵɵelementStart(0, "td", 73);
|
|
16059
|
-
i0.ɵɵlistener("click", function
|
|
16433
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r146); const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r145 = i0.ɵɵnextContext(3); return ctx_r145.selectable ? ctx_r145.selectRow(row_r71) : "javascript:;"; });
|
|
16060
16434
|
i0.ɵɵelementStart(1, "div", 74);
|
|
16061
|
-
i0.ɵɵlistener("mouseenter", function
|
|
16062
|
-
i0.ɵɵtemplate(2,
|
|
16063
|
-
i0.ɵɵtemplate(3,
|
|
16064
|
-
i0.ɵɵtemplate(4,
|
|
16065
|
-
i0.ɵɵtemplate(5,
|
|
16066
|
-
i0.ɵɵtemplate(6,
|
|
16067
|
-
i0.ɵɵtemplate(7,
|
|
16068
|
-
i0.ɵɵtemplate(8,
|
|
16069
|
-
i0.ɵɵtemplate(9,
|
|
16070
|
-
i0.ɵɵtemplate(10,
|
|
16071
|
-
i0.ɵɵtemplate(11,
|
|
16072
|
-
i0.ɵɵtemplate(12,
|
|
16073
|
-
i0.ɵɵtemplate(13,
|
|
16074
|
-
i0.ɵɵtemplate(14,
|
|
16435
|
+
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template_div_mouseenter_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r146); const column_r98 = restoredCtx.$implicit; const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r148 = i0.ɵɵnextContext(3); return ctx_r148.tooltipMouseEnter($event, column_r98, row_r71); })("mouseleave", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template_div_mouseleave_1_listener() { i0.ɵɵrestoreView(_r146); const ctx_r150 = i0.ɵɵnextContext(4); return ctx_r150.tooltipMouseLeave(); });
|
|
16436
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_2_Template, 2, 4, "span", 75);
|
|
16437
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_3_Template, 2, 5, "span", 75);
|
|
16438
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_4_Template, 2, 1, "span", 75);
|
|
16439
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_5_Template, 3, 6, "span", 75);
|
|
16440
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_6_Template, 3, 4, "span", 75);
|
|
16441
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_7_Template, 3, 4, "span", 75);
|
|
16442
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_8_Template, 3, 4, "span", 75);
|
|
16443
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_9_Template, 2, 1, "span", 75);
|
|
16444
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_link_10_Template, 1, 5, "po-table-column-link", 76);
|
|
16445
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_po_table_column_icon_11_Template, 1, 3, "po-table-column-icon", 77);
|
|
16446
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_12_Template, 2, 1, "span", 75);
|
|
16447
|
+
i0.ɵɵtemplate(13, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_13_Template, 2, 1, "span", 75);
|
|
16448
|
+
i0.ɵɵtemplate(14, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_span_14_Template, 2, 1, "span", 78);
|
|
16075
16449
|
i0.ɵɵelementEnd()();
|
|
16076
16450
|
} if (rf & 2) {
|
|
16077
16451
|
const column_r98 = ctx.$implicit;
|
|
@@ -16109,12 +16483,12 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_6_Template(rf,
|
|
|
16109
16483
|
i0.ɵɵadvance(1);
|
|
16110
16484
|
i0.ɵɵproperty("ngSwitchCase", "label");
|
|
16111
16485
|
} }
|
|
16112
|
-
function
|
|
16113
|
-
function
|
|
16486
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_ng_template_1_Template(rf, ctx) { }
|
|
16487
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_Template(rf, ctx) { if (rf & 1) {
|
|
16114
16488
|
const _r155 = i0.ɵɵgetCurrentView();
|
|
16115
16489
|
i0.ɵɵelementStart(0, "td", 71);
|
|
16116
|
-
i0.ɵɵlistener("click", function
|
|
16117
|
-
i0.ɵɵtemplate(1,
|
|
16490
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r155); const row_r71 = i0.ɵɵnextContext().$implicit; const ctx_r153 = i0.ɵɵnextContext(3); return ctx_r153.toggleDetail(row_r71); });
|
|
16491
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
16118
16492
|
i0.ɵɵelementEnd();
|
|
16119
16493
|
} if (rf & 2) {
|
|
16120
16494
|
const ctx_r156 = i0.ɵɵnextContext();
|
|
@@ -16123,32 +16497,32 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_td_7_Template(rf,
|
|
|
16123
16497
|
i0.ɵɵnextContext(3);
|
|
16124
16498
|
const _r11 = i0.ɵɵreference(13);
|
|
16125
16499
|
i0.ɵɵadvance(1);
|
|
16126
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
16500
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r71, rowIndex_r72));
|
|
16127
16501
|
} }
|
|
16128
|
-
function
|
|
16129
|
-
function
|
|
16130
|
-
i0.ɵɵtemplate(0,
|
|
16502
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_8_ng_template_0_Template(rf, ctx) { }
|
|
16503
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_8_Template(rf, ctx) { if (rf & 1) {
|
|
16504
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_6_ng_container_4_tbody_1_8_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
16131
16505
|
} if (rf & 2) {
|
|
16132
16506
|
const ctx_r158 = i0.ɵɵnextContext();
|
|
16133
16507
|
const row_r71 = ctx_r158.$implicit;
|
|
16134
16508
|
const rowIndex_r72 = ctx_r158.index;
|
|
16135
16509
|
i0.ɵɵnextContext(3);
|
|
16136
16510
|
const _r23 = i0.ɵɵreference(25);
|
|
16137
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
16511
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r71, rowIndex_r72));
|
|
16138
16512
|
} }
|
|
16139
|
-
function
|
|
16513
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
16140
16514
|
i0.ɵɵelementContainerStart(0);
|
|
16141
16515
|
i0.ɵɵelement(1, "td", 83);
|
|
16142
16516
|
i0.ɵɵelementContainerEnd();
|
|
16143
16517
|
} }
|
|
16144
|
-
function
|
|
16518
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
16145
16519
|
i0.ɵɵelement(0, "td", 84);
|
|
16146
16520
|
} }
|
|
16147
|
-
function
|
|
16148
|
-
const
|
|
16149
|
-
function
|
|
16521
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_11_ng_template_2_Template(rf, ctx) { }
|
|
16522
|
+
const _c14 = function (a0, a1) { return { $implicit: a0, rowIndex: a1 }; };
|
|
16523
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_11_Template(rf, ctx) { if (rf & 1) {
|
|
16150
16524
|
i0.ɵɵelementStart(0, "tr")(1, "td", 85);
|
|
16151
|
-
i0.ɵɵtemplate(2,
|
|
16525
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_11_ng_template_2_Template, 0, 0, "ng-template", 72);
|
|
16152
16526
|
i0.ɵɵelementEnd()();
|
|
16153
16527
|
} if (rf & 2) {
|
|
16154
16528
|
const ctx_r160 = i0.ɵɵnextContext();
|
|
@@ -16158,12 +16532,12 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_11_Template(rf
|
|
|
16158
16532
|
i0.ɵɵadvance(1);
|
|
16159
16533
|
i0.ɵɵproperty("colSpan", ctx_r82.columnCountForMasterDetail);
|
|
16160
16534
|
i0.ɵɵadvance(1);
|
|
16161
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r82.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3,
|
|
16535
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r82.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c14, row_r71, rowIndex_r72));
|
|
16162
16536
|
} }
|
|
16163
|
-
function
|
|
16537
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_12_Template(rf, ctx) { if (rf & 1) {
|
|
16164
16538
|
const _r162 = i0.ɵɵgetCurrentView();
|
|
16165
16539
|
i0.ɵɵelementStart(0, "tr")(1, "td", 86)(2, "po-table-detail", 87);
|
|
16166
|
-
i0.ɵɵlistener("p-select-row", function
|
|
16540
|
+
i0.ɵɵlistener("p-select-row", function PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_12_Template_po_table_detail_p_select_row_2_listener($event) { i0.ɵɵrestoreView(_r162); const ctx_r161 = i0.ɵɵnextContext(4); return ctx_r161.selectDetailRow($event); });
|
|
16167
16541
|
i0.ɵɵelementEnd()()();
|
|
16168
16542
|
} if (rf & 2) {
|
|
16169
16543
|
const row_r71 = i0.ɵɵnextContext().$implicit;
|
|
@@ -16173,20 +16547,20 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_tr_12_Template(rf
|
|
|
16173
16547
|
i0.ɵɵadvance(1);
|
|
16174
16548
|
i0.ɵɵproperty("p-selectable", ctx_r83.selectable && !ctx_r83.detailHideSelect)("p-detail", ctx_r83.columnMasterDetail.detail)("p-items", row_r71[ctx_r83.nameColumnDetail]);
|
|
16175
16549
|
} }
|
|
16176
|
-
function
|
|
16550
|
+
function PoTableComponent_ng_template_6_ng_container_4_tbody_1_Template(rf, ctx) { if (rf & 1) {
|
|
16177
16551
|
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 67);
|
|
16178
|
-
i0.ɵɵtemplate(2,
|
|
16179
|
-
i0.ɵɵtemplate(3,
|
|
16180
|
-
i0.ɵɵtemplate(4,
|
|
16181
|
-
i0.ɵɵtemplate(5,
|
|
16182
|
-
i0.ɵɵtemplate(6,
|
|
16183
|
-
i0.ɵɵtemplate(7,
|
|
16184
|
-
i0.ɵɵtemplate(8,
|
|
16185
|
-
i0.ɵɵtemplate(9,
|
|
16186
|
-
i0.ɵɵtemplate(10,
|
|
16552
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_2_Template, 2, 4, "td", 40);
|
|
16553
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_3_Template, 2, 5, "td", 68);
|
|
16554
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_6_ng_container_4_tbody_1_4_Template, 1, 5, null, 23);
|
|
16555
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_5_Template, 2, 5, "td", 68);
|
|
16556
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_6_Template, 15, 33, "td", 69);
|
|
16557
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_7_Template, 2, 5, "td", 68);
|
|
16558
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_6_ng_container_4_tbody_1_8_Template, 1, 5, null, 23);
|
|
16559
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_6_ng_container_4_tbody_1_ng_container_9_Template, 2, 0, "ng-container", 23);
|
|
16560
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_6_ng_container_4_tbody_1_td_10_Template, 1, 0, "td", 70);
|
|
16187
16561
|
i0.ɵɵelementEnd();
|
|
16188
|
-
i0.ɵɵtemplate(11,
|
|
16189
|
-
i0.ɵɵtemplate(12,
|
|
16562
|
+
i0.ɵɵtemplate(11, PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_11_Template, 3, 6, "tr", 23);
|
|
16563
|
+
i0.ɵɵtemplate(12, PoTableComponent_ng_template_6_ng_container_4_tbody_1_tr_12_Template, 3, 4, "tr", 23);
|
|
16190
16564
|
i0.ɵɵelementEnd();
|
|
16191
16565
|
} if (rf & 2) {
|
|
16192
16566
|
const row_r71 = ctx.$implicit;
|
|
@@ -16217,229 +16591,229 @@ function PoTableComponent_ng_template_6_ng_container_2_tbody_1_Template(rf, ctx)
|
|
|
16217
16591
|
i0.ɵɵadvance(1);
|
|
16218
16592
|
i0.ɵɵproperty("ngIf", ctx_r70.hasMainColumns && ctx_r70.isShowMasterDetail(row_r71));
|
|
16219
16593
|
} }
|
|
16220
|
-
function
|
|
16594
|
+
function PoTableComponent_ng_template_6_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
16221
16595
|
i0.ɵɵelementContainerStart(0);
|
|
16222
|
-
i0.ɵɵtemplate(1,
|
|
16596
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_6_ng_container_4_tbody_1_Template, 13, 14, "tbody", 66);
|
|
16223
16597
|
i0.ɵɵelementContainerEnd();
|
|
16224
16598
|
} if (rf & 2) {
|
|
16225
16599
|
const ctx_r69 = i0.ɵɵnextContext(2);
|
|
16226
16600
|
i0.ɵɵadvance(1);
|
|
16227
|
-
i0.ɵɵproperty("
|
|
16601
|
+
i0.ɵɵproperty("cdkVirtualForOf", ctx_r69.items)("cdkVirtualForTrackBy", ctx_r69.trackBy);
|
|
16228
16602
|
} }
|
|
16229
16603
|
function PoTableComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
16230
|
-
i0.ɵɵ
|
|
16231
|
-
i0.ɵɵ
|
|
16232
|
-
i0.ɵɵ
|
|
16233
|
-
i0.ɵɵ
|
|
16604
|
+
const _r165 = i0.ɵɵgetCurrentView();
|
|
16605
|
+
i0.ɵɵelementStart(0, "cdk-virtual-scroll-viewport", 60, 61);
|
|
16606
|
+
i0.ɵɵlistener("scroll", function PoTableComponent_ng_template_6_Template_cdk_virtual_scroll_viewport_scroll_0_listener() { i0.ɵɵrestoreView(_r165); const ctx_r164 = i0.ɵɵnextContext(); return ctx_r164.syncronizeHorizontalScroll(); });
|
|
16607
|
+
i0.ɵɵelementStart(2, "table", 39);
|
|
16608
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_6_tbody_3_Template, 5, 2, "tbody", 62);
|
|
16609
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_6_ng_container_4_Template, 2, 2, "ng-container", 23);
|
|
16610
|
+
i0.ɵɵelementEnd()();
|
|
16234
16611
|
} if (rf & 2) {
|
|
16235
16612
|
const ctx_r7 = i0.ɵɵnextContext();
|
|
16613
|
+
i0.ɵɵstyleProp("height", ctx_r7.heightTableContainer, "px");
|
|
16614
|
+
i0.ɵɵproperty("itemSize", ctx_r7.itemSize)("minBufferPx", ctx_r7.height < 100 ? 100 : ctx_r7.height)("maxBufferPx", ctx_r7.height < 200 ? 200 : ctx_r7.height);
|
|
16615
|
+
i0.ɵɵadvance(2);
|
|
16236
16616
|
i0.ɵɵclassProp("po-table-striped", ctx_r7.striped)("po-table-layout-fixed", ctx_r7.hideTextOverflow);
|
|
16237
16617
|
i0.ɵɵadvance(1);
|
|
16238
16618
|
i0.ɵɵproperty("ngIf", !ctx_r7.hasItems || !ctx_r7.hasMainColumns);
|
|
16239
16619
|
i0.ɵɵadvance(1);
|
|
16240
16620
|
i0.ɵɵproperty("ngIf", ctx_r7.hasMainColumns);
|
|
16241
16621
|
} }
|
|
16242
|
-
function
|
|
16243
|
-
i0.ɵɵ
|
|
16244
|
-
|
|
16245
|
-
const
|
|
16246
|
-
i0.ɵɵclassProp("po-table-checkbox-checked", ctx_r174.selectAll)("po-table-checkbox-indeterminate", ctx_r174.selectAll === null);
|
|
16247
|
-
} }
|
|
16248
|
-
function PoTableComponent_ng_template_8_th_3_label_3_Template(rf, ctx) { if (rf & 1) {
|
|
16249
|
-
const _r177 = i0.ɵɵgetCurrentView();
|
|
16250
|
-
i0.ɵɵelementStart(0, "label", 50);
|
|
16251
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_3_label_3_Template_label_click_0_listener() { i0.ɵɵrestoreView(_r177); const ctx_r176 = i0.ɵɵnextContext(3); return ctx_r176.selectAllRows(); });
|
|
16622
|
+
function PoTableComponent_ng_template_8_th_3_po_checkbox_2_Template(rf, ctx) { if (rf & 1) {
|
|
16623
|
+
const _r178 = i0.ɵɵgetCurrentView();
|
|
16624
|
+
i0.ɵɵelementStart(0, "po-checkbox", 49);
|
|
16625
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_3_po_checkbox_2_Template_po_checkbox_click_0_listener() { i0.ɵɵrestoreView(_r178); const ctx_r177 = i0.ɵɵnextContext(3); return ctx_r177.selectAllRows(); })("p-change", function PoTableComponent_ng_template_8_th_3_po_checkbox_2_Template_po_checkbox_p_change_0_listener() { i0.ɵɵrestoreView(_r178); const ctx_r179 = i0.ɵɵnextContext(3); return ctx_r179.selectAllRows(); })("ngModelChange", function PoTableComponent_ng_template_8_th_3_po_checkbox_2_Template_po_checkbox_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r178); const ctx_r180 = i0.ɵɵnextContext(3); return ctx_r180.selectAll = $event; });
|
|
16252
16626
|
i0.ɵɵelementEnd();
|
|
16627
|
+
} if (rf & 2) {
|
|
16628
|
+
const ctx_r176 = i0.ɵɵnextContext(3);
|
|
16629
|
+
i0.ɵɵproperty("ngModel", ctx_r176.selectAll);
|
|
16253
16630
|
} }
|
|
16254
16631
|
function PoTableComponent_ng_template_8_th_3_Template(rf, ctx) { if (rf & 1) {
|
|
16255
|
-
i0.ɵɵelementStart(0, "th",
|
|
16256
|
-
i0.ɵɵtemplate(2,
|
|
16257
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_th_3_label_3_Template, 1, 0, "label", 48);
|
|
16632
|
+
i0.ɵɵelementStart(0, "th", 47)(1, "div");
|
|
16633
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_th_3_po_checkbox_2_Template, 1, 1, "po-checkbox", 48);
|
|
16258
16634
|
i0.ɵɵelementEnd()();
|
|
16259
16635
|
} if (rf & 2) {
|
|
16260
|
-
const
|
|
16261
|
-
i0.ɵɵadvance(1);
|
|
16262
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r164.height);
|
|
16636
|
+
const ctx_r166 = i0.ɵɵnextContext(2);
|
|
16263
16637
|
i0.ɵɵadvance(1);
|
|
16264
|
-
i0.ɵɵ
|
|
16638
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r166.height);
|
|
16265
16639
|
i0.ɵɵadvance(1);
|
|
16266
|
-
i0.ɵɵproperty("ngIf", !
|
|
16640
|
+
i0.ɵɵproperty("ngIf", !ctx_r166.hideSelectAll);
|
|
16267
16641
|
} }
|
|
16268
16642
|
function PoTableComponent_ng_template_8_th_4_Template(rf, ctx) { if (rf & 1) {
|
|
16269
|
-
i0.ɵɵelement(0, "th",
|
|
16643
|
+
i0.ɵɵelement(0, "th", 50);
|
|
16270
16644
|
} }
|
|
16271
16645
|
function PoTableComponent_ng_template_8_th_5_Template(rf, ctx) { if (rf & 1) {
|
|
16272
16646
|
i0.ɵɵelement(0, "th");
|
|
16273
16647
|
} if (rf & 2) {
|
|
16274
|
-
const
|
|
16275
|
-
i0.ɵɵclassProp("po-table-header-master-detail", !
|
|
16648
|
+
const ctx_r168 = i0.ɵɵnextContext(2);
|
|
16649
|
+
i0.ɵɵclassProp("po-table-header-master-detail", !ctx_r168.isSingleAction)("po-table-header-single-action", ctx_r168.isSingleAction);
|
|
16276
16650
|
} }
|
|
16277
16651
|
function PoTableComponent_ng_template_8_th_6_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
16278
16652
|
i0.ɵɵelementContainer(0);
|
|
16279
16653
|
} }
|
|
16280
16654
|
function PoTableComponent_ng_template_8_th_6_Template(rf, ctx) { if (rf & 1) {
|
|
16281
|
-
i0.ɵɵelementStart(0, "th",
|
|
16282
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_th_6_ng_container_2_Template, 1, 0, "ng-container",
|
|
16655
|
+
i0.ɵɵelementStart(0, "th", 51, 52);
|
|
16656
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_th_6_ng_container_2_Template, 1, 0, "ng-container", 32);
|
|
16283
16657
|
i0.ɵɵelementEnd();
|
|
16284
16658
|
} if (rf & 2) {
|
|
16285
|
-
const
|
|
16659
|
+
const ctx_r169 = i0.ɵɵnextContext(2);
|
|
16286
16660
|
const _r19 = i0.ɵɵreference(21);
|
|
16287
16661
|
const _r21 = i0.ɵɵreference(23);
|
|
16288
16662
|
i0.ɵɵadvance(2);
|
|
16289
|
-
i0.ɵɵproperty("ngIf",
|
|
16663
|
+
i0.ɵɵproperty("ngIf", ctx_r169.height)("ngIfThen", _r19)("ngIfElse", _r21);
|
|
16290
16664
|
} }
|
|
16291
16665
|
function PoTableComponent_ng_template_8_th_7_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
16292
16666
|
i0.ɵɵelementContainer(0);
|
|
16293
16667
|
} }
|
|
16294
16668
|
function PoTableComponent_ng_template_8_th_7_Template(rf, ctx) { if (rf & 1) {
|
|
16295
|
-
const
|
|
16296
|
-
i0.ɵɵelementStart(0, "th",
|
|
16297
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
16298
|
-
i0.ɵɵelementStart(2, "div",
|
|
16299
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_th_7_ng_container_3_Template, 1, 0, "ng-container",
|
|
16669
|
+
const _r188 = i0.ɵɵgetCurrentView();
|
|
16670
|
+
i0.ɵɵelementStart(0, "th", 53, 54);
|
|
16671
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_7_Template_th_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r188); const column_r183 = restoredCtx.$implicit; const ctx_r187 = i0.ɵɵnextContext(2); return ctx_r187.sortColumn(column_r183); });
|
|
16672
|
+
i0.ɵɵelementStart(2, "div", 55);
|
|
16673
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_th_7_ng_container_3_Template, 1, 0, "ng-container", 56);
|
|
16300
16674
|
i0.ɵɵelementEnd()();
|
|
16301
16675
|
} if (rf & 2) {
|
|
16302
|
-
const
|
|
16303
|
-
const
|
|
16676
|
+
const column_r183 = ctx.$implicit;
|
|
16677
|
+
const ctx_r170 = i0.ɵɵnextContext(2);
|
|
16304
16678
|
const _r17 = i0.ɵɵreference(19);
|
|
16305
|
-
i0.ɵɵstyleProp("width",
|
|
16306
|
-
i0.ɵɵclassProp("po-clickable",
|
|
16679
|
+
i0.ɵɵstyleProp("width", column_r183.width)("max-width", column_r183.width)("min-width", column_r183.width);
|
|
16680
|
+
i0.ɵɵclassProp("po-clickable", ctx_r170.sort && column_r183.sortable !== false || ctx_r170.hasService)("po-table-header-subtitle", column_r183.type === "subtitle");
|
|
16307
16681
|
i0.ɵɵadvance(2);
|
|
16308
|
-
i0.ɵɵclassProp("po-table-header-fixed-inner",
|
|
16682
|
+
i0.ɵɵclassProp("po-table-header-fixed-inner", ctx_r170.height)("po-table-header-flex-right", column_r183.type === "currency" || column_r183.type === "number")("po-table-header-flex-center", column_r183.type === "subtitle");
|
|
16309
16683
|
i0.ɵɵadvance(1);
|
|
16310
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18,
|
|
16684
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r17)("ngTemplateOutletContext", i0.ɵɵpureFunction1(18, _c11, column_r183));
|
|
16311
16685
|
} }
|
|
16312
16686
|
function PoTableComponent_ng_template_8_th_8_Template(rf, ctx) { if (rf & 1) {
|
|
16313
|
-
i0.ɵɵelement(0, "th",
|
|
16687
|
+
i0.ɵɵelement(0, "th", 50);
|
|
16314
16688
|
} }
|
|
16315
16689
|
function PoTableComponent_ng_template_8_th_9_Template(rf, ctx) { if (rf & 1) {
|
|
16316
16690
|
i0.ɵɵelement(0, "th");
|
|
16317
16691
|
} if (rf & 2) {
|
|
16318
|
-
const
|
|
16319
|
-
i0.ɵɵclassProp("po-table-header-single-action",
|
|
16692
|
+
const ctx_r172 = i0.ɵɵnextContext(2);
|
|
16693
|
+
i0.ɵɵclassProp("po-table-header-single-action", ctx_r172.isSingleAction)("po-table-header-actions", !ctx_r172.isSingleAction);
|
|
16320
16694
|
} }
|
|
16321
16695
|
function PoTableComponent_ng_template_8_th_10_Template(rf, ctx) { if (rf & 1) {
|
|
16322
|
-
const
|
|
16323
|
-
i0.ɵɵelementStart(0, "th", null,
|
|
16324
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(
|
|
16696
|
+
const _r192 = i0.ɵɵgetCurrentView();
|
|
16697
|
+
i0.ɵɵelementStart(0, "th", null, 57)(2, "div")(3, "button", 58, 59);
|
|
16698
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_th_10_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r192); const ctx_r191 = i0.ɵɵnextContext(2); return ctx_r191.onOpenColumnManager(); });
|
|
16325
16699
|
i0.ɵɵelementEnd()()();
|
|
16326
16700
|
} if (rf & 2) {
|
|
16327
|
-
const
|
|
16328
|
-
const
|
|
16329
|
-
i0.ɵɵclassProp("po-table-header-column-manager", !
|
|
16701
|
+
const _r189 = i0.ɵɵreference(1);
|
|
16702
|
+
const ctx_r173 = i0.ɵɵnextContext(2);
|
|
16703
|
+
i0.ɵɵclassProp("po-table-header-column-manager", !ctx_r173.isSingleAction || !ctx_r173.actionRight)("po-table-header-column-manager-border", !ctx_r173.height && ctx_r173.container)("po-table-header-single-action", ctx_r173.isSingleAction && ctx_r173.actionRight);
|
|
16330
16704
|
i0.ɵɵadvance(2);
|
|
16331
|
-
i0.ɵɵstyleProp("width",
|
|
16332
|
-
i0.ɵɵclassProp("po-table-header-column-manager-border",
|
|
16705
|
+
i0.ɵɵstyleProp("width", ctx_r173.height && ctx_r173.visibleActions.length ? _r189.offsetWidth : undefined, "px");
|
|
16706
|
+
i0.ɵɵclassProp("po-table-header-column-manager-border", ctx_r173.height && ctx_r173.container)("po-table-header-column-manager-fixed-inner", ctx_r173.height);
|
|
16333
16707
|
i0.ɵɵadvance(1);
|
|
16334
|
-
i0.ɵɵproperty("p-tooltip",
|
|
16708
|
+
i0.ɵɵproperty("p-tooltip", ctx_r173.literals.columnsManager);
|
|
16335
16709
|
} }
|
|
16336
16710
|
function PoTableComponent_ng_template_8_tbody_11_Template(rf, ctx) { if (rf & 1) {
|
|
16337
16711
|
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 64)(2, "td", 65)(3, "span");
|
|
16338
16712
|
i0.ɵɵtext(4);
|
|
16339
16713
|
i0.ɵɵelementEnd()()()();
|
|
16340
16714
|
} if (rf & 2) {
|
|
16341
|
-
const
|
|
16715
|
+
const ctx_r174 = i0.ɵɵnextContext(2);
|
|
16342
16716
|
i0.ɵɵadvance(2);
|
|
16343
|
-
i0.ɵɵproperty("colSpan",
|
|
16717
|
+
i0.ɵɵproperty("colSpan", ctx_r174.columnCount);
|
|
16344
16718
|
i0.ɵɵadvance(2);
|
|
16345
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16719
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r174.literals.noData, " ");
|
|
16346
16720
|
} }
|
|
16347
16721
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
16348
16722
|
i0.ɵɵelementContainer(0);
|
|
16349
16723
|
} }
|
|
16350
16724
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_Template(rf, ctx) { if (rf & 1) {
|
|
16351
|
-
i0.ɵɵelementStart(0, "td",
|
|
16352
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container",
|
|
16725
|
+
i0.ɵɵelementStart(0, "td", 47);
|
|
16726
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
16353
16727
|
i0.ɵɵelementEnd();
|
|
16354
16728
|
} if (rf & 2) {
|
|
16355
|
-
const
|
|
16356
|
-
const
|
|
16729
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16730
|
+
const ctx_r196 = i0.ɵɵnextContext(3);
|
|
16357
16731
|
const _r13 = i0.ɵɵreference(15);
|
|
16358
16732
|
const _r15 = i0.ɵɵreference(17);
|
|
16359
16733
|
i0.ɵɵadvance(1);
|
|
16360
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16734
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r196.singleSelect ? _r13 : _r15)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, row_r194));
|
|
16361
16735
|
} }
|
|
16362
16736
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_ng_template_1_Template(rf, ctx) { }
|
|
16363
16737
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template(rf, ctx) { if (rf & 1) {
|
|
16364
|
-
const
|
|
16738
|
+
const _r212 = i0.ɵɵgetCurrentView();
|
|
16365
16739
|
i0.ɵɵelementStart(0, "td", 71);
|
|
16366
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
16740
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r212); const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r210 = i0.ɵɵnextContext(3); return ctx_r210.toggleDetail(row_r194); });
|
|
16367
16741
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
16368
16742
|
i0.ɵɵelementEnd();
|
|
16369
16743
|
} if (rf & 2) {
|
|
16370
|
-
const
|
|
16371
|
-
const
|
|
16372
|
-
const
|
|
16744
|
+
const ctx_r213 = i0.ɵɵnextContext();
|
|
16745
|
+
const row_r194 = ctx_r213.$implicit;
|
|
16746
|
+
const rowIndex_r195 = ctx_r213.index;
|
|
16373
16747
|
i0.ɵɵnextContext(3);
|
|
16374
16748
|
const _r11 = i0.ɵɵreference(13);
|
|
16375
16749
|
i0.ɵɵadvance(1);
|
|
16376
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
16750
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r194, rowIndex_r195));
|
|
16377
16751
|
} }
|
|
16378
16752
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_ng_template_0_Template(rf, ctx) { }
|
|
16379
16753
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_Template(rf, ctx) { if (rf & 1) {
|
|
16380
16754
|
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
16381
16755
|
} if (rf & 2) {
|
|
16382
|
-
const
|
|
16383
|
-
const
|
|
16384
|
-
const
|
|
16756
|
+
const ctx_r215 = i0.ɵɵnextContext();
|
|
16757
|
+
const row_r194 = ctx_r215.$implicit;
|
|
16758
|
+
const rowIndex_r195 = ctx_r215.index;
|
|
16385
16759
|
i0.ɵɵnextContext(3);
|
|
16386
16760
|
const _r23 = i0.ɵɵreference(25);
|
|
16387
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
16761
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r194, rowIndex_r195));
|
|
16388
16762
|
} }
|
|
16389
16763
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_ng_template_1_Template(rf, ctx) { }
|
|
16390
16764
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template(rf, ctx) { if (rf & 1) {
|
|
16391
|
-
const
|
|
16765
|
+
const _r219 = i0.ɵɵgetCurrentView();
|
|
16392
16766
|
i0.ɵɵelementStart(0, "td", 71);
|
|
16393
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
16767
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r219); const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r217 = i0.ɵɵnextContext(3); return ctx_r217.toggleDetail(row_r194); });
|
|
16394
16768
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
16395
16769
|
i0.ɵɵelementEnd();
|
|
16396
16770
|
} if (rf & 2) {
|
|
16397
|
-
const
|
|
16398
|
-
const
|
|
16399
|
-
const
|
|
16771
|
+
const ctx_r220 = i0.ɵɵnextContext();
|
|
16772
|
+
const row_r194 = ctx_r220.$implicit;
|
|
16773
|
+
const rowIndex_r195 = ctx_r220.index;
|
|
16400
16774
|
i0.ɵɵnextContext(3);
|
|
16401
16775
|
const _r11 = i0.ɵɵreference(13);
|
|
16402
16776
|
i0.ɵɵadvance(1);
|
|
16403
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
16777
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r194, rowIndex_r195));
|
|
16404
16778
|
} }
|
|
16405
16779
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
16406
16780
|
i0.ɵɵelementContainer(0);
|
|
16407
16781
|
} }
|
|
16408
16782
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
16409
16783
|
i0.ɵɵelementStart(0, "span");
|
|
16410
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_ng_container_1_Template, 1, 0, "ng-container",
|
|
16784
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
16411
16785
|
i0.ɵɵelementEnd();
|
|
16412
16786
|
} if (rf & 2) {
|
|
16413
|
-
const
|
|
16414
|
-
const
|
|
16415
|
-
const
|
|
16787
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16788
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16789
|
+
const ctx_r223 = i0.ɵɵnextContext(3);
|
|
16416
16790
|
i0.ɵɵadvance(1);
|
|
16417
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16791
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r223.getTemplate(column_r221))("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c11, ctx_r223.getCellData(row_r194, column_r221)));
|
|
16418
16792
|
} }
|
|
16419
16793
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
16420
16794
|
i0.ɵɵelementContainer(0);
|
|
16421
16795
|
} }
|
|
16422
16796
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
16423
16797
|
i0.ɵɵelementStart(0, "span");
|
|
16424
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_ng_container_1_Template, 1, 0, "ng-container",
|
|
16798
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_ng_container_1_Template, 1, 0, "ng-container", 56);
|
|
16425
16799
|
i0.ɵɵelementEnd();
|
|
16426
16800
|
} if (rf & 2) {
|
|
16427
|
-
const
|
|
16428
|
-
const
|
|
16429
|
-
const
|
|
16801
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16802
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16803
|
+
const ctx_r224 = i0.ɵɵnextContext(3);
|
|
16430
16804
|
i0.ɵɵadvance(1);
|
|
16431
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
16805
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r224.tableCellTemplate == null ? null : ctx_r224.tableCellTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c13, row_r194, column_r221));
|
|
16432
16806
|
} }
|
|
16433
16807
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16434
16808
|
i0.ɵɵelementStart(0, "span");
|
|
16435
16809
|
i0.ɵɵtext(1);
|
|
16436
16810
|
i0.ɵɵelementEnd();
|
|
16437
16811
|
} if (rf & 2) {
|
|
16438
|
-
const
|
|
16439
|
-
const
|
|
16440
|
-
const
|
|
16812
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16813
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16814
|
+
const ctx_r225 = i0.ɵɵnextContext(3);
|
|
16441
16815
|
i0.ɵɵadvance(1);
|
|
16442
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16816
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r225.getBooleanLabel(ctx_r225.getCellData(row_r194, column_r221), column_r221), " ");
|
|
16443
16817
|
} }
|
|
16444
16818
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_5_Template(rf, ctx) { if (rf & 1) {
|
|
16445
16819
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -16447,11 +16821,11 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_5_Temp
|
|
|
16447
16821
|
i0.ɵɵpipe(2, "currency");
|
|
16448
16822
|
i0.ɵɵelementEnd();
|
|
16449
16823
|
} if (rf & 2) {
|
|
16450
|
-
const
|
|
16451
|
-
const
|
|
16452
|
-
const
|
|
16824
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16825
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16826
|
+
const ctx_r226 = i0.ɵɵnextContext(3);
|
|
16453
16827
|
i0.ɵɵadvance(1);
|
|
16454
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1,
|
|
16828
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind4(2, 1, ctx_r226.getCellData(row_r194, column_r221), column_r221.format, "symbol", "1.2-2"), " ");
|
|
16455
16829
|
} }
|
|
16456
16830
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
16457
16831
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -16459,11 +16833,11 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_6_Temp
|
|
|
16459
16833
|
i0.ɵɵpipe(2, "date");
|
|
16460
16834
|
i0.ɵɵelementEnd();
|
|
16461
16835
|
} if (rf & 2) {
|
|
16462
|
-
const
|
|
16463
|
-
const
|
|
16464
|
-
const
|
|
16836
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16837
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16838
|
+
const ctx_r227 = i0.ɵɵnextContext(3);
|
|
16465
16839
|
i0.ɵɵadvance(1);
|
|
16466
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
16840
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r227.getCellData(row_r194, column_r221), column_r221.format || "dd/MM/yyyy"), " ");
|
|
16467
16841
|
} }
|
|
16468
16842
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
16469
16843
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -16471,11 +16845,11 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_7_Temp
|
|
|
16471
16845
|
i0.ɵɵpipe(2, "po_time");
|
|
16472
16846
|
i0.ɵɵelementEnd();
|
|
16473
16847
|
} if (rf & 2) {
|
|
16474
|
-
const
|
|
16475
|
-
const
|
|
16476
|
-
const
|
|
16848
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16849
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16850
|
+
const ctx_r228 = i0.ɵɵnextContext(3);
|
|
16477
16851
|
i0.ɵɵadvance(1);
|
|
16478
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
16852
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r228.getCellData(row_r194, column_r221), column_r221.format || "HH:mm:ss.ffffff"), " ");
|
|
16479
16853
|
} }
|
|
16480
16854
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
16481
16855
|
i0.ɵɵelementStart(0, "span");
|
|
@@ -16483,81 +16857,81 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_8_Temp
|
|
|
16483
16857
|
i0.ɵɵpipe(2, "date");
|
|
16484
16858
|
i0.ɵɵelementEnd();
|
|
16485
16859
|
} if (rf & 2) {
|
|
16486
|
-
const
|
|
16487
|
-
const
|
|
16488
|
-
const
|
|
16860
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16861
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16862
|
+
const ctx_r229 = i0.ɵɵnextContext(3);
|
|
16489
16863
|
i0.ɵɵadvance(1);
|
|
16490
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1,
|
|
16864
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r229.getCellData(row_r194, column_r221), column_r221.format || "dd/MM/yyyy HH:mm:ss"), " ");
|
|
16491
16865
|
} }
|
|
16492
16866
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_9_Template(rf, ctx) { if (rf & 1) {
|
|
16493
16867
|
i0.ɵɵelementStart(0, "span");
|
|
16494
16868
|
i0.ɵɵtext(1);
|
|
16495
16869
|
i0.ɵɵelementEnd();
|
|
16496
16870
|
} if (rf & 2) {
|
|
16497
|
-
const
|
|
16498
|
-
const
|
|
16499
|
-
const
|
|
16871
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16872
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16873
|
+
const ctx_r230 = i0.ɵɵnextContext(3);
|
|
16500
16874
|
i0.ɵɵadvance(1);
|
|
16501
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
16875
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r230.formatNumber(ctx_r230.getCellData(row_r194, column_r221), column_r221.format), " ");
|
|
16502
16876
|
} }
|
|
16503
16877
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_link_10_Template(rf, ctx) { if (rf & 1) {
|
|
16504
|
-
const
|
|
16878
|
+
const _r256 = i0.ɵɵgetCurrentView();
|
|
16505
16879
|
i0.ɵɵelementStart(0, "po-table-column-link", 79);
|
|
16506
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_link_10_Template_po_table_column_link_click_0_listener($event) { i0.ɵɵrestoreView(
|
|
16880
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_link_10_Template_po_table_column_link_click_0_listener($event) { i0.ɵɵrestoreView(_r256); const column_r221 = i0.ɵɵnextContext().$implicit; const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r254 = i0.ɵɵnextContext(3); return ctx_r254.onClickLink($event, row_r194, column_r221); });
|
|
16507
16881
|
i0.ɵɵelementEnd();
|
|
16508
16882
|
} if (rf & 2) {
|
|
16509
|
-
const
|
|
16510
|
-
const
|
|
16511
|
-
const
|
|
16512
|
-
i0.ɵɵproperty("p-action",
|
|
16883
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16884
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16885
|
+
const ctx_r231 = i0.ɵɵnextContext(3);
|
|
16886
|
+
i0.ɵɵproperty("p-action", column_r221.action)("p-disabled", ctx_r231.checkDisabled(row_r194, column_r221))("p-link", row_r194[column_r221.link])("p-row", row_r194)("p-value", ctx_r231.getCellData(row_r194, column_r221));
|
|
16513
16887
|
} }
|
|
16514
16888
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_po_table_column_icon_11_Template(rf, ctx) { if (rf & 1) {
|
|
16515
16889
|
i0.ɵɵelement(0, "po-table-column-icon", 80);
|
|
16516
16890
|
} if (rf & 2) {
|
|
16517
|
-
const
|
|
16518
|
-
const
|
|
16519
|
-
const
|
|
16520
|
-
i0.ɵɵproperty("p-column",
|
|
16891
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16892
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16893
|
+
const ctx_r232 = i0.ɵɵnextContext(3);
|
|
16894
|
+
i0.ɵɵproperty("p-column", column_r221)("p-icons", ctx_r232.getColumnIcons(row_r194, column_r221))("p-row", row_r194);
|
|
16521
16895
|
} }
|
|
16522
16896
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_12_Template(rf, ctx) { if (rf & 1) {
|
|
16523
16897
|
i0.ɵɵelementStart(0, "span");
|
|
16524
16898
|
i0.ɵɵelement(1, "po-table-subtitle-circle", 81);
|
|
16525
16899
|
i0.ɵɵelementEnd();
|
|
16526
16900
|
} if (rf & 2) {
|
|
16527
|
-
const
|
|
16528
|
-
const
|
|
16529
|
-
const
|
|
16901
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16902
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16903
|
+
const ctx_r233 = i0.ɵɵnextContext(3);
|
|
16530
16904
|
i0.ɵɵadvance(1);
|
|
16531
|
-
i0.ɵɵproperty("p-subtitle",
|
|
16905
|
+
i0.ɵɵproperty("p-subtitle", ctx_r233.getSubtitleColumn(row_r194, column_r221));
|
|
16532
16906
|
} }
|
|
16533
16907
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_13_Template(rf, ctx) { if (rf & 1) {
|
|
16534
16908
|
i0.ɵɵelementStart(0, "span");
|
|
16535
16909
|
i0.ɵɵelement(1, "po-table-column-label", 82);
|
|
16536
16910
|
i0.ɵɵelementEnd();
|
|
16537
16911
|
} if (rf & 2) {
|
|
16538
|
-
const
|
|
16539
|
-
const
|
|
16540
|
-
const
|
|
16912
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16913
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16914
|
+
const ctx_r234 = i0.ɵɵnextContext(3);
|
|
16541
16915
|
i0.ɵɵadvance(1);
|
|
16542
|
-
i0.ɵɵproperty("p-value",
|
|
16916
|
+
i0.ɵɵproperty("p-value", ctx_r234.getColumnLabel(row_r194, column_r221));
|
|
16543
16917
|
} }
|
|
16544
16918
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_14_Template(rf, ctx) { if (rf & 1) {
|
|
16545
16919
|
i0.ɵɵelementStart(0, "span");
|
|
16546
16920
|
i0.ɵɵtext(1);
|
|
16547
16921
|
i0.ɵɵelementEnd();
|
|
16548
16922
|
} if (rf & 2) {
|
|
16549
|
-
const
|
|
16550
|
-
const
|
|
16551
|
-
const
|
|
16923
|
+
const column_r221 = i0.ɵɵnextContext().$implicit;
|
|
16924
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16925
|
+
const ctx_r235 = i0.ɵɵnextContext(3);
|
|
16552
16926
|
i0.ɵɵadvance(1);
|
|
16553
|
-
i0.ɵɵtextInterpolate(
|
|
16927
|
+
i0.ɵɵtextInterpolate(ctx_r235.getCellData(row_r194, column_r221));
|
|
16554
16928
|
} }
|
|
16555
16929
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template(rf, ctx) { if (rf & 1) {
|
|
16556
|
-
const
|
|
16930
|
+
const _r269 = i0.ɵɵgetCurrentView();
|
|
16557
16931
|
i0.ɵɵelementStart(0, "td", 73);
|
|
16558
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
16932
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r269); const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r268 = i0.ɵɵnextContext(3); return ctx_r268.selectable ? ctx_r268.selectRow(row_r194) : "javascript:;"; });
|
|
16559
16933
|
i0.ɵɵelementStart(1, "div", 74);
|
|
16560
|
-
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_div_mouseenter_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(
|
|
16934
|
+
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_div_mouseenter_1_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r269); const column_r221 = restoredCtx.$implicit; const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r271 = i0.ɵɵnextContext(3); return ctx_r271.tooltipMouseEnter($event, column_r221, row_r194); })("mouseleave", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template_div_mouseleave_1_listener() { i0.ɵɵrestoreView(_r269); const ctx_r273 = i0.ɵɵnextContext(4); return ctx_r273.tooltipMouseLeave(); });
|
|
16561
16935
|
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_2_Template, 2, 4, "span", 75);
|
|
16562
16936
|
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_3_Template, 2, 5, "span", 75);
|
|
16563
16937
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_4_Template, 2, 1, "span", 75);
|
|
@@ -16573,15 +16947,15 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template(rf
|
|
|
16573
16947
|
i0.ɵɵtemplate(14, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_span_14_Template, 2, 1, "span", 78);
|
|
16574
16948
|
i0.ɵɵelementEnd()();
|
|
16575
16949
|
} if (rf & 2) {
|
|
16576
|
-
const
|
|
16577
|
-
const
|
|
16578
|
-
const
|
|
16579
|
-
i0.ɵɵstyleProp("width",
|
|
16580
|
-
i0.ɵɵclassProp("po-table-column",
|
|
16581
|
-
i0.ɵɵproperty("ngClass",
|
|
16950
|
+
const column_r221 = ctx.$implicit;
|
|
16951
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
16952
|
+
const ctx_r200 = i0.ɵɵnextContext(3);
|
|
16953
|
+
i0.ɵɵstyleProp("width", column_r221.width)("max-width", column_r221.width)("min-width", column_r221.width);
|
|
16954
|
+
i0.ɵɵclassProp("po-table-column", column_r221.type !== "icon")("po-table-column-right", column_r221.type === "currency" || column_r221.type === "number")("po-table-column-center", column_r221.type === "subtitle")("po-table-column-icons", column_r221.type === "icon");
|
|
16955
|
+
i0.ɵɵproperty("ngClass", ctx_r200.getClassColor(row_r194, column_r221));
|
|
16582
16956
|
i0.ɵɵadvance(1);
|
|
16583
|
-
i0.ɵɵclassProp("po-table-body-ellipsis",
|
|
16584
|
-
i0.ɵɵproperty("ngSwitch",
|
|
16957
|
+
i0.ɵɵclassProp("po-table-body-ellipsis", ctx_r200.hideTextOverflow);
|
|
16958
|
+
i0.ɵɵproperty("ngSwitch", column_r221.type)("p-tooltip", ctx_r200.tooltipText);
|
|
16585
16959
|
i0.ɵɵadvance(1);
|
|
16586
16960
|
i0.ɵɵproperty("ngSwitchCase", "columnTemplate");
|
|
16587
16961
|
i0.ɵɵadvance(1);
|
|
@@ -16609,34 +16983,34 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_6_Template(rf
|
|
|
16609
16983
|
} }
|
|
16610
16984
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_ng_template_1_Template(rf, ctx) { }
|
|
16611
16985
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template(rf, ctx) { if (rf & 1) {
|
|
16612
|
-
const
|
|
16986
|
+
const _r278 = i0.ɵɵgetCurrentView();
|
|
16613
16987
|
i0.ɵɵelementStart(0, "td", 71);
|
|
16614
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template_td_click_0_listener() { i0.ɵɵrestoreView(
|
|
16988
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_Template_td_click_0_listener() { i0.ɵɵrestoreView(_r278); const row_r194 = i0.ɵɵnextContext().$implicit; const ctx_r276 = i0.ɵɵnextContext(3); return ctx_r276.toggleDetail(row_r194); });
|
|
16615
16989
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_7_ng_template_1_Template, 0, 0, "ng-template", 72);
|
|
16616
16990
|
i0.ɵɵelementEnd();
|
|
16617
16991
|
} if (rf & 2) {
|
|
16618
|
-
const
|
|
16619
|
-
const
|
|
16620
|
-
const
|
|
16992
|
+
const ctx_r279 = i0.ɵɵnextContext();
|
|
16993
|
+
const row_r194 = ctx_r279.$implicit;
|
|
16994
|
+
const rowIndex_r195 = ctx_r279.index;
|
|
16621
16995
|
i0.ɵɵnextContext(3);
|
|
16622
16996
|
const _r11 = i0.ɵɵreference(13);
|
|
16623
16997
|
i0.ɵɵadvance(1);
|
|
16624
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
16998
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r11)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r194, rowIndex_r195));
|
|
16625
16999
|
} }
|
|
16626
17000
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_ng_template_0_Template(rf, ctx) { }
|
|
16627
17001
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_Template(rf, ctx) { if (rf & 1) {
|
|
16628
17002
|
i0.ɵɵtemplate(0, PoTableComponent_ng_template_8_ng_container_12_tbody_1_8_ng_template_0_Template, 0, 0, "ng-template", 72);
|
|
16629
17003
|
} if (rf & 2) {
|
|
16630
|
-
const
|
|
16631
|
-
const
|
|
16632
|
-
const
|
|
17004
|
+
const ctx_r281 = i0.ɵɵnextContext();
|
|
17005
|
+
const row_r194 = ctx_r281.$implicit;
|
|
17006
|
+
const rowIndex_r195 = ctx_r281.index;
|
|
16633
17007
|
i0.ɵɵnextContext(3);
|
|
16634
17008
|
const _r23 = i0.ɵɵreference(25);
|
|
16635
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2,
|
|
17009
|
+
i0.ɵɵproperty("ngTemplateOutlet", _r23)("ngTemplateOutletContext", i0.ɵɵpureFunction2(2, _c12, row_r194, rowIndex_r195));
|
|
16636
17010
|
} }
|
|
16637
17011
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_ng_container_9_Template(rf, ctx) { if (rf & 1) {
|
|
16638
17012
|
i0.ɵɵelementContainerStart(0);
|
|
16639
|
-
i0.ɵɵelement(1, "td",
|
|
17013
|
+
i0.ɵɵelement(1, "td", 89);
|
|
16640
17014
|
i0.ɵɵelementContainerEnd();
|
|
16641
17015
|
} }
|
|
16642
17016
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_10_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -16648,31 +17022,31 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_Template(r
|
|
|
16648
17022
|
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_11_ng_template_2_Template, 0, 0, "ng-template", 72);
|
|
16649
17023
|
i0.ɵɵelementEnd()();
|
|
16650
17024
|
} if (rf & 2) {
|
|
16651
|
-
const
|
|
16652
|
-
const
|
|
16653
|
-
const
|
|
16654
|
-
const
|
|
17025
|
+
const ctx_r283 = i0.ɵɵnextContext();
|
|
17026
|
+
const row_r194 = ctx_r283.$implicit;
|
|
17027
|
+
const rowIndex_r195 = ctx_r283.index;
|
|
17028
|
+
const ctx_r205 = i0.ɵɵnextContext(3);
|
|
16655
17029
|
i0.ɵɵadvance(1);
|
|
16656
|
-
i0.ɵɵproperty("colSpan",
|
|
17030
|
+
i0.ɵɵproperty("colSpan", ctx_r205.columnCountForMasterDetail);
|
|
16657
17031
|
i0.ɵɵadvance(1);
|
|
16658
|
-
i0.ɵɵproperty("ngTemplateOutlet",
|
|
17032
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r205.tableRowTemplate.templateRef)("ngTemplateOutletContext", i0.ɵɵpureFunction2(3, _c14, row_r194, rowIndex_r195));
|
|
16659
17033
|
} }
|
|
16660
17034
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template(rf, ctx) { if (rf & 1) {
|
|
16661
|
-
const
|
|
17035
|
+
const _r285 = i0.ɵɵgetCurrentView();
|
|
16662
17036
|
i0.ɵɵelementStart(0, "tr")(1, "td", 86)(2, "po-table-detail", 87);
|
|
16663
|
-
i0.ɵɵlistener("p-select-row", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template_po_table_detail_p_select_row_2_listener($event) { i0.ɵɵrestoreView(
|
|
17037
|
+
i0.ɵɵlistener("p-select-row", function PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template_po_table_detail_p_select_row_2_listener($event) { i0.ɵɵrestoreView(_r285); const ctx_r284 = i0.ɵɵnextContext(4); return ctx_r284.selectDetailRow($event); });
|
|
16664
17038
|
i0.ɵɵelementEnd()()();
|
|
16665
17039
|
} if (rf & 2) {
|
|
16666
|
-
const
|
|
16667
|
-
const
|
|
17040
|
+
const row_r194 = i0.ɵɵnextContext().$implicit;
|
|
17041
|
+
const ctx_r206 = i0.ɵɵnextContext(3);
|
|
16668
17042
|
i0.ɵɵadvance(1);
|
|
16669
|
-
i0.ɵɵproperty("colSpan",
|
|
17043
|
+
i0.ɵɵproperty("colSpan", ctx_r206.columnCountForMasterDetail);
|
|
16670
17044
|
i0.ɵɵadvance(1);
|
|
16671
|
-
i0.ɵɵproperty("p-selectable",
|
|
17045
|
+
i0.ɵɵproperty("p-selectable", ctx_r206.selectable && !ctx_r206.detailHideSelect)("p-detail", ctx_r206.columnMasterDetail.detail)("p-items", row_r194[ctx_r206.nameColumnDetail]);
|
|
16672
17046
|
} }
|
|
16673
17047
|
function PoTableComponent_ng_template_8_ng_container_12_tbody_1_Template(rf, ctx) { if (rf & 1) {
|
|
16674
17048
|
i0.ɵɵelementStart(0, "tbody", 63)(1, "tr", 67);
|
|
16675
|
-
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_Template, 2, 4, "td",
|
|
17049
|
+
i0.ɵɵtemplate(2, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_2_Template, 2, 4, "td", 40);
|
|
16676
17050
|
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_3_Template, 2, 5, "td", 68);
|
|
16677
17051
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_ng_container_12_tbody_1_4_Template, 1, 5, null, 23);
|
|
16678
17052
|
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_ng_container_12_tbody_1_td_5_Template, 2, 5, "td", 68);
|
|
@@ -16686,53 +17060,53 @@ function PoTableComponent_ng_template_8_ng_container_12_tbody_1_Template(rf, ctx
|
|
|
16686
17060
|
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_tbody_1_tr_12_Template, 3, 4, "tr", 23);
|
|
16687
17061
|
i0.ɵɵelementEnd();
|
|
16688
17062
|
} if (rf & 2) {
|
|
16689
|
-
const
|
|
16690
|
-
const
|
|
16691
|
-
const
|
|
17063
|
+
const row_r194 = ctx.$implicit;
|
|
17064
|
+
const rowIndex_r195 = ctx.index;
|
|
17065
|
+
const ctx_r193 = i0.ɵɵnextContext(3);
|
|
16692
17066
|
i0.ɵɵadvance(1);
|
|
16693
|
-
i0.ɵɵclassProp("po-table-row-active",
|
|
17067
|
+
i0.ɵɵclassProp("po-table-row-active", row_r194.$selected || row_r194.$selected === null && ctx_r193.selectable);
|
|
16694
17068
|
i0.ɵɵadvance(1);
|
|
16695
|
-
i0.ɵɵproperty("ngIf",
|
|
17069
|
+
i0.ɵɵproperty("ngIf", ctx_r193.selectable);
|
|
16696
17070
|
i0.ɵɵadvance(1);
|
|
16697
|
-
i0.ɵɵproperty("ngIf",
|
|
17071
|
+
i0.ɵɵproperty("ngIf", ctx_r193.columnMasterDetail && !ctx_r193.hideDetail && !ctx_r193.hasRowTemplate);
|
|
16698
17072
|
i0.ɵɵadvance(1);
|
|
16699
|
-
i0.ɵɵproperty("ngIf", !
|
|
17073
|
+
i0.ɵɵproperty("ngIf", !ctx_r193.actionRight && (ctx_r193.visibleActions.length > 1 || ctx_r193.isSingleAction));
|
|
16700
17074
|
i0.ɵɵadvance(1);
|
|
16701
|
-
i0.ɵɵproperty("ngIf",
|
|
17075
|
+
i0.ɵɵproperty("ngIf", ctx_r193.hasRowTemplate && !ctx_r193.hasRowTemplateWithArrowDirectionRight);
|
|
16702
17076
|
i0.ɵɵadvance(1);
|
|
16703
|
-
i0.ɵɵproperty("ngForOf",
|
|
17077
|
+
i0.ɵɵproperty("ngForOf", ctx_r193.mainColumns)("ngForTrackBy", ctx_r193.trackBy);
|
|
16704
17078
|
i0.ɵɵadvance(1);
|
|
16705
|
-
i0.ɵɵproperty("ngIf",
|
|
17079
|
+
i0.ɵɵproperty("ngIf", ctx_r193.hasRowTemplateWithArrowDirectionRight);
|
|
16706
17080
|
i0.ɵɵadvance(1);
|
|
16707
|
-
i0.ɵɵproperty("ngIf",
|
|
17081
|
+
i0.ɵɵproperty("ngIf", ctx_r193.actionRight);
|
|
16708
17082
|
i0.ɵɵadvance(1);
|
|
16709
|
-
i0.ɵɵproperty("ngIf", !
|
|
17083
|
+
i0.ɵɵproperty("ngIf", !ctx_r193.actionRight && (ctx_r193.visibleActions.length > 1 || ctx_r193.isSingleAction) && !ctx_r193.hideColumnsManager);
|
|
16710
17084
|
i0.ɵɵadvance(1);
|
|
16711
|
-
i0.ɵɵproperty("ngIf", !
|
|
17085
|
+
i0.ɵɵproperty("ngIf", !ctx_r193.hasVisibleActions && !ctx_r193.hideColumnsManager && !ctx_r193.hasRowTemplateWithArrowDirectionRight);
|
|
16712
17086
|
i0.ɵɵadvance(1);
|
|
16713
|
-
i0.ɵɵproperty("ngIf",
|
|
17087
|
+
i0.ɵɵproperty("ngIf", ctx_r193.hasMainColumns && ctx_r193.hasRowTemplate && row_r194.$showDetail && ctx_r193.isShowRowTemplate(row_r194, rowIndex_r195));
|
|
16714
17088
|
i0.ɵɵadvance(1);
|
|
16715
|
-
i0.ɵɵproperty("ngIf",
|
|
17089
|
+
i0.ɵɵproperty("ngIf", ctx_r193.hasMainColumns && ctx_r193.isShowMasterDetail(row_r194));
|
|
16716
17090
|
} }
|
|
16717
17091
|
function PoTableComponent_ng_template_8_ng_container_12_Template(rf, ctx) { if (rf & 1) {
|
|
16718
17092
|
i0.ɵɵelementContainerStart(0);
|
|
16719
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_Template, 13, 14, "tbody",
|
|
17093
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_8_ng_container_12_tbody_1_Template, 13, 14, "tbody", 88);
|
|
16720
17094
|
i0.ɵɵelementContainerEnd();
|
|
16721
17095
|
} if (rf & 2) {
|
|
16722
|
-
const
|
|
17096
|
+
const ctx_r175 = i0.ɵɵnextContext(2);
|
|
16723
17097
|
i0.ɵɵadvance(1);
|
|
16724
|
-
i0.ɵɵproperty("ngForOf",
|
|
17098
|
+
i0.ɵɵproperty("ngForOf", ctx_r175.items)("ngForTrackBy", ctx_r175.trackBy);
|
|
16725
17099
|
} }
|
|
16726
17100
|
function PoTableComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
16727
|
-
i0.ɵɵelementStart(0, "table",
|
|
16728
|
-
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_th_3_Template,
|
|
16729
|
-
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_th_4_Template, 1, 0, "th",
|
|
16730
|
-
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_th_5_Template, 1, 4, "th",
|
|
16731
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_th_6_Template, 3, 3, "th",
|
|
16732
|
-
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_th_7_Template, 4, 20, "th",
|
|
16733
|
-
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_th_8_Template, 1, 0, "th",
|
|
16734
|
-
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_th_9_Template, 1, 4, "th",
|
|
16735
|
-
i0.ɵɵtemplate(10, PoTableComponent_ng_template_8_th_10_Template, 5, 13, "th",
|
|
17101
|
+
i0.ɵɵelementStart(0, "table", 39)(1, "thead")(2, "tr");
|
|
17102
|
+
i0.ɵɵtemplate(3, PoTableComponent_ng_template_8_th_3_Template, 3, 3, "th", 40);
|
|
17103
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_8_th_4_Template, 1, 0, "th", 41);
|
|
17104
|
+
i0.ɵɵtemplate(5, PoTableComponent_ng_template_8_th_5_Template, 1, 4, "th", 42);
|
|
17105
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_8_th_6_Template, 3, 3, "th", 43);
|
|
17106
|
+
i0.ɵɵtemplate(7, PoTableComponent_ng_template_8_th_7_Template, 4, 20, "th", 44);
|
|
17107
|
+
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_th_8_Template, 1, 0, "th", 41);
|
|
17108
|
+
i0.ɵɵtemplate(9, PoTableComponent_ng_template_8_th_9_Template, 1, 4, "th", 45);
|
|
17109
|
+
i0.ɵɵtemplate(10, PoTableComponent_ng_template_8_th_10_Template, 5, 13, "th", 46);
|
|
16736
17110
|
i0.ɵɵelementEnd()();
|
|
16737
17111
|
i0.ɵɵtemplate(11, PoTableComponent_ng_template_8_tbody_11_Template, 5, 2, "tbody", 62);
|
|
16738
17112
|
i0.ɵɵtemplate(12, PoTableComponent_ng_template_8_ng_container_12_Template, 2, 2, "ng-container", 23);
|
|
@@ -16764,65 +17138,64 @@ function PoTableComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
|
16764
17138
|
i0.ɵɵproperty("ngIf", ctx_r9.hasMainColumns);
|
|
16765
17139
|
} }
|
|
16766
17140
|
function PoTableComponent_ng_template_12_span_0_Template(rf, ctx) { if (rf & 1) {
|
|
16767
|
-
i0.ɵɵelement(0, "span",
|
|
17141
|
+
i0.ɵɵelement(0, "span", 91);
|
|
16768
17142
|
} if (rf & 2) {
|
|
16769
|
-
const
|
|
16770
|
-
i0.ɵɵclassProp("po-icon-arrow-up",
|
|
17143
|
+
const row_r287 = i0.ɵɵnextContext().row;
|
|
17144
|
+
i0.ɵɵclassProp("po-icon-arrow-up", row_r287.$showDetail)("po-icon-arrow-down", !row_r287.$showDetail);
|
|
16771
17145
|
} }
|
|
16772
17146
|
function PoTableComponent_ng_template_12_Template(rf, ctx) { if (rf & 1) {
|
|
16773
|
-
i0.ɵɵtemplate(0, PoTableComponent_ng_template_12_span_0_Template, 1, 4, "span",
|
|
17147
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_12_span_0_Template, 1, 4, "span", 90);
|
|
16774
17148
|
} if (rf & 2) {
|
|
16775
|
-
const
|
|
16776
|
-
const
|
|
17149
|
+
const row_r287 = ctx.row;
|
|
17150
|
+
const rowIndex_r288 = ctx.rowIndex;
|
|
16777
17151
|
const ctx_r12 = i0.ɵɵnextContext();
|
|
16778
|
-
i0.ɵɵproperty("ngIf", ctx_r12.containsMasterDetail(
|
|
17152
|
+
i0.ɵɵproperty("ngIf", ctx_r12.containsMasterDetail(row_r287) && !ctx_r12.hasRowTemplate || ctx_r12.isShowRowTemplate(row_r287, rowIndex_r288) && ctx_r12.hasRowTemplate);
|
|
16779
17153
|
} }
|
|
16780
17154
|
function PoTableComponent_ng_template_14_Template(rf, ctx) { if (rf & 1) {
|
|
16781
|
-
const
|
|
16782
|
-
i0.ɵɵelement(0, "input",
|
|
16783
|
-
i0.ɵɵelementStart(1, "label",
|
|
16784
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_14_Template_label_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(
|
|
17155
|
+
const _r293 = i0.ɵɵgetCurrentView();
|
|
17156
|
+
i0.ɵɵelement(0, "input", 92);
|
|
17157
|
+
i0.ɵɵelementStart(1, "label", 93);
|
|
17158
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_14_Template_label_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r293); const row_r291 = restoredCtx.$implicit; const ctx_r292 = i0.ɵɵnextContext(); return ctx_r292.selectable ? ctx_r292.selectRow(row_r291) : "javascript:;"; });
|
|
16785
17159
|
i0.ɵɵelementEnd();
|
|
16786
17160
|
} if (rf & 2) {
|
|
16787
|
-
const
|
|
16788
|
-
i0.ɵɵclassProp("po-table-radio-checked",
|
|
17161
|
+
const row_r291 = ctx.$implicit;
|
|
17162
|
+
i0.ɵɵclassProp("po-table-radio-checked", row_r291.$selected);
|
|
16789
17163
|
} }
|
|
16790
17164
|
function PoTableComponent_ng_template_16_Template(rf, ctx) { if (rf & 1) {
|
|
16791
|
-
const
|
|
16792
|
-
i0.ɵɵ
|
|
16793
|
-
i0.ɵɵ
|
|
16794
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_16_Template_label_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r293); const row_r291 = restoredCtx.$implicit; const ctx_r292 = i0.ɵɵnextContext(); return ctx_r292.selectable ? ctx_r292.selectRow(row_r291) : "javascript:;"; });
|
|
17165
|
+
const _r296 = i0.ɵɵgetCurrentView();
|
|
17166
|
+
i0.ɵɵelementStart(0, "po-checkbox", 94);
|
|
17167
|
+
i0.ɵɵlistener("p-change", function PoTableComponent_ng_template_16_Template_po_checkbox_p_change_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r296); const row_r294 = restoredCtx.$implicit; const ctx_r295 = i0.ɵɵnextContext(); return ctx_r295.selectable ? ctx_r295.selectRow(row_r294) : "javascript:;"; })("ngModelChange", function PoTableComponent_ng_template_16_Template_po_checkbox_ngModelChange_0_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r296); const row_r294 = restoredCtx.$implicit; return row_r294.$selected = $event; })("click", function PoTableComponent_ng_template_16_Template_po_checkbox_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r296); const row_r294 = restoredCtx.$implicit; const ctx_r298 = i0.ɵɵnextContext(); return ctx_r298.selectable ? ctx_r298.selectRow(row_r294) : "javascript:;"; });
|
|
16795
17168
|
i0.ɵɵelementEnd();
|
|
16796
17169
|
} if (rf & 2) {
|
|
16797
|
-
const
|
|
16798
|
-
i0.ɵɵ
|
|
17170
|
+
const row_r294 = ctx.$implicit;
|
|
17171
|
+
i0.ɵɵproperty("ngModel", row_r294.$selected);
|
|
16799
17172
|
} }
|
|
16800
17173
|
function PoTableComponent_ng_template_18_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
16801
17174
|
i0.ɵɵelement(0, "span");
|
|
16802
17175
|
} if (rf & 2) {
|
|
16803
|
-
const
|
|
16804
|
-
const
|
|
16805
|
-
i0.ɵɵclassProp("po-table-header-icon-unselected", (
|
|
17176
|
+
const column_r299 = i0.ɵɵnextContext().$implicit;
|
|
17177
|
+
const ctx_r301 = i0.ɵɵnextContext();
|
|
17178
|
+
i0.ɵɵclassProp("po-table-header-icon-unselected", (ctx_r301.sortedColumn == null ? null : ctx_r301.sortedColumn.property) !== column_r299)("po-table-header-icon-descending", (ctx_r301.sortedColumn == null ? null : ctx_r301.sortedColumn.property) === column_r299 && ctx_r301.sortedColumn.ascending)("po-table-header-icon-ascending", (ctx_r301.sortedColumn == null ? null : ctx_r301.sortedColumn.property) === column_r299 && !ctx_r301.sortedColumn.ascending);
|
|
16806
17179
|
} }
|
|
16807
17180
|
function PoTableComponent_ng_template_18_Template(rf, ctx) { if (rf & 1) {
|
|
16808
|
-
const
|
|
16809
|
-
i0.ɵɵelementStart(0, "span",
|
|
16810
|
-
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_18_Template_span_mouseenter_0_listener($event) { i0.ɵɵrestoreView(
|
|
17181
|
+
const _r304 = i0.ɵɵgetCurrentView();
|
|
17182
|
+
i0.ɵɵelementStart(0, "span", 95, 96);
|
|
17183
|
+
i0.ɵɵlistener("mouseenter", function PoTableComponent_ng_template_18_Template_span_mouseenter_0_listener($event) { i0.ɵɵrestoreView(_r304); const ctx_r303 = i0.ɵɵnextContext(); return ctx_r303.tooltipMouseEnter($event); })("mouseleave", function PoTableComponent_ng_template_18_Template_span_mouseleave_0_listener() { i0.ɵɵrestoreView(_r304); const ctx_r305 = i0.ɵɵnextContext(); return ctx_r305.tooltipMouseLeave(); });
|
|
16811
17184
|
i0.ɵɵtext(2);
|
|
16812
17185
|
i0.ɵɵpipe(3, "titlecase");
|
|
16813
17186
|
i0.ɵɵelementEnd();
|
|
16814
|
-
i0.ɵɵtemplate(4, PoTableComponent_ng_template_18_span_4_Template, 1, 6, "span",
|
|
17187
|
+
i0.ɵɵtemplate(4, PoTableComponent_ng_template_18_span_4_Template, 1, 6, "span", 97);
|
|
16815
17188
|
} if (rf & 2) {
|
|
16816
|
-
const
|
|
17189
|
+
const column_r299 = ctx.$implicit;
|
|
16817
17190
|
const ctx_r18 = i0.ɵɵnextContext();
|
|
16818
17191
|
i0.ɵɵproperty("p-tooltip", ctx_r18.tooltipText);
|
|
16819
17192
|
i0.ɵɵadvance(2);
|
|
16820
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17193
|
+
i0.ɵɵtextInterpolate1(" ", column_r299.label || i0.ɵɵpipeBind1(3, 3, column_r299.property), " ");
|
|
16821
17194
|
i0.ɵɵadvance(2);
|
|
16822
|
-
i0.ɵɵproperty("ngIf", ctx_r18.sort &&
|
|
17195
|
+
i0.ɵɵproperty("ngIf", ctx_r18.sort && column_r299.sortable !== false);
|
|
16823
17196
|
} }
|
|
16824
17197
|
function PoTableComponent_ng_template_20_Template(rf, ctx) { if (rf & 1) {
|
|
16825
|
-
i0.ɵɵelementStart(0, "div",
|
|
17198
|
+
i0.ɵɵelementStart(0, "div", 98);
|
|
16826
17199
|
i0.ɵɵtext(1);
|
|
16827
17200
|
i0.ɵɵelementEnd();
|
|
16828
17201
|
} if (rf & 2) {
|
|
@@ -16838,45 +17211,45 @@ function PoTableComponent_ng_template_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
16838
17211
|
i0.ɵɵtextInterpolate1(" ", ctx_r22.hasValidColumns ? ctx_r22.literals.noVisibleColumn : ctx_r22.literals.noColumns, "\n");
|
|
16839
17212
|
} }
|
|
16840
17213
|
function PoTableComponent_ng_template_24_td_0_div_1_po_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
16841
|
-
i0.ɵɵelement(0, "po-icon",
|
|
17214
|
+
i0.ɵɵelement(0, "po-icon", 105);
|
|
16842
17215
|
} if (rf & 2) {
|
|
16843
|
-
const
|
|
16844
|
-
i0.ɵɵproperty("p-icon",
|
|
17216
|
+
const ctx_r311 = i0.ɵɵnextContext(4);
|
|
17217
|
+
i0.ɵɵproperty("p-icon", ctx_r311.firstAction.icon);
|
|
16845
17218
|
} }
|
|
16846
17219
|
function PoTableComponent_ng_template_24_td_0_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
16847
|
-
const
|
|
16848
|
-
i0.ɵɵelementStart(0, "div",
|
|
16849
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_24_td_0_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
16850
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_po_icon_1_Template, 1, 1, "po-icon",
|
|
17220
|
+
const _r314 = i0.ɵɵgetCurrentView();
|
|
17221
|
+
i0.ɵɵelementStart(0, "div", 103);
|
|
17222
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_24_td_0_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r314); const row_r306 = i0.ɵɵnextContext(2).row; const ctx_r312 = i0.ɵɵnextContext(); return ctx_r312.executeTableAction(row_r306, ctx_r312.firstAction); });
|
|
17223
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_po_icon_1_Template, 1, 1, "po-icon", 104);
|
|
16851
17224
|
i0.ɵɵtext(2);
|
|
16852
17225
|
i0.ɵɵelementEnd();
|
|
16853
17226
|
} if (rf & 2) {
|
|
16854
|
-
const
|
|
16855
|
-
const
|
|
16856
|
-
i0.ɵɵclassProp("po-table-action-disabled",
|
|
17227
|
+
const row_r306 = i0.ɵɵnextContext(2).row;
|
|
17228
|
+
const ctx_r310 = i0.ɵɵnextContext();
|
|
17229
|
+
i0.ɵɵclassProp("po-table-action-disabled", ctx_r310.firstAction.disabled ? ctx_r310.validateTableAction(row_r306, ctx_r310.firstAction) : false);
|
|
16857
17230
|
i0.ɵɵadvance(1);
|
|
16858
|
-
i0.ɵɵproperty("ngIf",
|
|
17231
|
+
i0.ɵɵproperty("ngIf", ctx_r310.firstAction.icon);
|
|
16859
17232
|
i0.ɵɵadvance(1);
|
|
16860
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17233
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r310.firstAction.label, " ");
|
|
16861
17234
|
} }
|
|
16862
17235
|
function PoTableComponent_ng_template_24_td_0_Template(rf, ctx) { if (rf & 1) {
|
|
16863
|
-
i0.ɵɵelementStart(0, "td",
|
|
16864
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_Template, 3, 4, "div",
|
|
17236
|
+
i0.ɵɵelementStart(0, "td", 101);
|
|
17237
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_0_div_1_Template, 3, 4, "div", 102);
|
|
16865
17238
|
i0.ɵɵelementEnd();
|
|
16866
17239
|
} if (rf & 2) {
|
|
16867
|
-
const
|
|
17240
|
+
const ctx_r308 = i0.ɵɵnextContext(2);
|
|
16868
17241
|
i0.ɵɵadvance(1);
|
|
16869
|
-
i0.ɵɵproperty("ngIf",
|
|
17242
|
+
i0.ɵɵproperty("ngIf", ctx_r308.firstAction.visible !== false);
|
|
16870
17243
|
} }
|
|
16871
17244
|
function PoTableComponent_ng_template_24_td_1_Template(rf, ctx) { if (rf & 1) {
|
|
16872
|
-
const
|
|
16873
|
-
i0.ɵɵelementStart(0, "td",
|
|
16874
|
-
i0.ɵɵlistener("click", function PoTableComponent_ng_template_24_td_1_Template_span_click_1_listener() { i0.ɵɵrestoreView(
|
|
17245
|
+
const _r319 = i0.ɵɵgetCurrentView();
|
|
17246
|
+
i0.ɵɵelementStart(0, "td", 106)(1, "span", 107, 108);
|
|
17247
|
+
i0.ɵɵlistener("click", function PoTableComponent_ng_template_24_td_1_Template_span_click_1_listener() { i0.ɵɵrestoreView(_r319); const _r316 = i0.ɵɵreference(2); const row_r306 = i0.ɵɵnextContext().row; const ctx_r317 = i0.ɵɵnextContext(); return ctx_r317.togglePopup(row_r306, _r316); });
|
|
16875
17248
|
i0.ɵɵelementEnd()();
|
|
16876
17249
|
} }
|
|
16877
17250
|
function PoTableComponent_ng_template_24_Template(rf, ctx) { if (rf & 1) {
|
|
16878
|
-
i0.ɵɵtemplate(0, PoTableComponent_ng_template_24_td_0_Template, 2, 1, "td",
|
|
16879
|
-
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_1_Template, 3, 0, "td",
|
|
17251
|
+
i0.ɵɵtemplate(0, PoTableComponent_ng_template_24_td_0_Template, 2, 1, "td", 99);
|
|
17252
|
+
i0.ɵɵtemplate(1, PoTableComponent_ng_template_24_td_1_Template, 3, 0, "td", 100);
|
|
16880
17253
|
} if (rf & 2) {
|
|
16881
17254
|
const ctx_r24 = i0.ɵɵnextContext();
|
|
16882
17255
|
i0.ɵɵproperty("ngIf", ctx_r24.isSingleAction);
|
|
@@ -16884,9 +17257,9 @@ function PoTableComponent_ng_template_24_Template(rf, ctx) { if (rf & 1) {
|
|
|
16884
17257
|
i0.ɵɵproperty("ngIf", ctx_r24.visibleActions.length > 1);
|
|
16885
17258
|
} }
|
|
16886
17259
|
function PoTableComponent_po_table_column_manager_26_Template(rf, ctx) { if (rf & 1) {
|
|
16887
|
-
const
|
|
16888
|
-
i0.ɵɵelementStart(0, "po-table-column-manager",
|
|
16889
|
-
i0.ɵɵlistener("p-visible-columns-change", function PoTableComponent_po_table_column_manager_26_Template_po_table_column_manager_p_visible_columns_change_0_listener($event) { i0.ɵɵrestoreView(
|
|
17260
|
+
const _r321 = i0.ɵɵgetCurrentView();
|
|
17261
|
+
i0.ɵɵelementStart(0, "po-table-column-manager", 109);
|
|
17262
|
+
i0.ɵɵlistener("p-visible-columns-change", function PoTableComponent_po_table_column_manager_26_Template_po_table_column_manager_p_visible_columns_change_0_listener($event) { i0.ɵɵrestoreView(_r321); const ctx_r320 = i0.ɵɵnextContext(); return ctx_r320.onVisibleColumnsChange($event); })("p-change-visible-columns", function PoTableComponent_po_table_column_manager_26_Template_po_table_column_manager_p_change_visible_columns_0_listener($event) { i0.ɵɵrestoreView(_r321); const ctx_r322 = i0.ɵɵnextContext(); return ctx_r322.onChangeVisibleColumns($event); })("p-initial-columns", function PoTableComponent_po_table_column_manager_26_Template_po_table_column_manager_p_initial_columns_0_listener($event) { i0.ɵɵrestoreView(_r321); const ctx_r323 = i0.ɵɵnextContext(); return ctx_r323.onColumnRestoreManager($event); });
|
|
16890
17263
|
i0.ɵɵelementEnd();
|
|
16891
17264
|
} if (rf & 2) {
|
|
16892
17265
|
const ctx_r25 = i0.ɵɵnextContext();
|
|
@@ -17029,6 +17402,7 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
17029
17402
|
this.checkInfiniteScroll();
|
|
17030
17403
|
this.visibleElement = true;
|
|
17031
17404
|
}
|
|
17405
|
+
document.body.offsetWidth > 1366 ? (this.itemSize = 44) : (this.itemSize = 32);
|
|
17032
17406
|
}
|
|
17033
17407
|
ngOnDestroy() {
|
|
17034
17408
|
this.removeListeners();
|
|
@@ -17285,7 +17659,7 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
17285
17659
|
return template.templateRef;
|
|
17286
17660
|
}
|
|
17287
17661
|
syncronizeHorizontalScroll() {
|
|
17288
|
-
this.poTableThead.nativeElement.scrollLeft = this.
|
|
17662
|
+
this.poTableThead.nativeElement.scrollLeft = this.poTableTbodyVirtual.nativeElement.scrollLeft;
|
|
17289
17663
|
}
|
|
17290
17664
|
calculateHeightTableContainer(height) {
|
|
17291
17665
|
const value = parseFloat(height);
|
|
@@ -17303,11 +17677,12 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
17303
17677
|
}
|
|
17304
17678
|
});
|
|
17305
17679
|
}
|
|
17680
|
+
this.changeDetector.detectChanges();
|
|
17306
17681
|
});
|
|
17307
17682
|
}
|
|
17308
17683
|
checkInfiniteScroll() {
|
|
17309
17684
|
if (this.hasInfiniteScroll()) {
|
|
17310
|
-
if (this.
|
|
17685
|
+
if (this.poTableTbodyVirtual.nativeElement.scrollHeight >= this.height) {
|
|
17311
17686
|
this.includeInfiniteScroll();
|
|
17312
17687
|
}
|
|
17313
17688
|
else {
|
|
@@ -17354,11 +17729,12 @@ class PoTableComponent extends PoTableBaseComponent {
|
|
|
17354
17729
|
this.hasItems &&
|
|
17355
17730
|
!this.subscriptionScrollEvent &&
|
|
17356
17731
|
this.height &&
|
|
17357
|
-
this.
|
|
17732
|
+
this.poTableTbodyVirtual.nativeElement.scrollHeight);
|
|
17358
17733
|
}
|
|
17359
17734
|
includeInfiniteScroll() {
|
|
17360
|
-
this.scrollEvent$ = this.defaultService.scrollListener(this.
|
|
17735
|
+
this.scrollEvent$ = this.defaultService.scrollListener(this.poTableTbodyVirtual.nativeElement);
|
|
17361
17736
|
this.subscriptionScrollEvent = this.scrollEvent$.subscribe(event => this.showMoreInfiniteScroll(event));
|
|
17737
|
+
this.changeDetector.detectChanges();
|
|
17362
17738
|
}
|
|
17363
17739
|
mergeCustomIcons(rowIcons, customIcons) {
|
|
17364
17740
|
const mergedIcons = [];
|
|
@@ -17419,16 +17795,17 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17419
17795
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableCellTemplate = _t.first);
|
|
17420
17796
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableColumnTemplates = _t);
|
|
17421
17797
|
} }, viewQuery: function PoTableComponent_Query(rf, ctx) { if (rf & 1) {
|
|
17422
|
-
i0.ɵɵviewQuery(_c0$
|
|
17798
|
+
i0.ɵɵviewQuery(_c0$V, 5, ElementRef);
|
|
17423
17799
|
i0.ɵɵviewQuery(_c1$p, 5);
|
|
17424
17800
|
i0.ɵɵviewQuery(_c2$a, 5, ElementRef);
|
|
17425
17801
|
i0.ɵɵviewQuery(_c3$6, 5, ElementRef);
|
|
17426
17802
|
i0.ɵɵviewQuery(_c4$4, 5, ElementRef);
|
|
17427
17803
|
i0.ɵɵviewQuery(_c5$2, 5, ElementRef);
|
|
17428
|
-
i0.ɵɵviewQuery(_c6$2, 5);
|
|
17429
|
-
i0.ɵɵviewQuery(_c7$1, 5
|
|
17804
|
+
i0.ɵɵviewQuery(_c6$2, 5, ElementRef);
|
|
17805
|
+
i0.ɵɵviewQuery(_c7$1, 5);
|
|
17430
17806
|
i0.ɵɵviewQuery(_c8$1, 5, ElementRef);
|
|
17431
|
-
i0.ɵɵviewQuery(_c9, 5);
|
|
17807
|
+
i0.ɵɵviewQuery(_c9, 5, ElementRef);
|
|
17808
|
+
i0.ɵɵviewQuery(_c10, 5);
|
|
17432
17809
|
} if (rf & 2) {
|
|
17433
17810
|
let _t;
|
|
17434
17811
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.noColumnsHeader = _t.first);
|
|
@@ -17437,21 +17814,22 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17437
17814
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tableWrapperElement = _t.first);
|
|
17438
17815
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTableTbody = _t.first);
|
|
17439
17816
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTableThead = _t.first);
|
|
17817
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poTableTbodyVirtual = _t.first);
|
|
17440
17818
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.columnManagerTarget = _t.first);
|
|
17441
17819
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionsIconElement = _t);
|
|
17442
17820
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.actionsElement = _t);
|
|
17443
17821
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headersTable = _t);
|
|
17444
|
-
} }, features: [i0.ɵɵProvidersFeature([PoDateService]), i0.ɵɵInheritDefinitionFeature], decls: 27, vars: 6, consts: [["p-no-padding", "", 3, "p-no-shadow", 4, "ngIf", "ngIfElse"], ["tableContainerTemplate", ""], ["class", "po-row po-table-footer-show-more", 3, "po-invisible", 4, "ngIf"], ["tableHeaderTemplate", ""], ["tableBodyTemplate", ""], ["tableTemplate", ""], [3, "p-actions", "p-target"], ["popup", ""], ["poTableColumnDetail", ""], ["inputRadio", ""], ["inputCheckbox", ""], ["contentHeaderTemplate", ""], ["noColumnsWithHeight", ""], ["noColumnsWithoutHeight", ""], ["ActionsColumnTemplate", ""], [3, "p-columns", "p-max-columns", "p-target", "p-last-visible-columns-selected", "p-columns-default", "p-visible-columns-change", "p-change-visible-columns", "p-initial-columns", 4, "ngIf"], ["p-no-padding", "", 3, "p-no-shadow"], [4, "ngTemplateOutlet"], ["class", "po-table-overlay", 4, "ngIf"], [1, "po-table-main-container"], [1, "po-table-wrapper"], ["tableWrapper", ""], ["class", "po-table-container",
|
|
17822
|
+
} }, features: [i0.ɵɵProvidersFeature([PoDateService]), i0.ɵɵInheritDefinitionFeature], decls: 27, vars: 6, consts: [["p-no-padding", "", 3, "p-no-shadow", 4, "ngIf", "ngIfElse"], ["tableContainerTemplate", ""], ["class", "po-row po-table-footer-show-more", 3, "po-invisible", 4, "ngIf"], ["tableHeaderTemplate", ""], ["tableBodyTemplate", ""], ["tableTemplate", ""], [3, "p-actions", "p-target"], ["popup", ""], ["poTableColumnDetail", ""], ["inputRadio", ""], ["inputCheckbox", ""], ["contentHeaderTemplate", ""], ["noColumnsWithHeight", ""], ["noColumnsWithoutHeight", ""], ["ActionsColumnTemplate", ""], [3, "p-columns", "p-max-columns", "p-target", "p-last-visible-columns-selected", "p-columns-default", "p-visible-columns-change", "p-change-visible-columns", "p-initial-columns", 4, "ngIf"], ["p-no-padding", "", 3, "p-no-shadow"], [4, "ngTemplateOutlet"], ["class", "po-table-overlay", 4, "ngIf"], [1, "po-table-main-container"], [1, "po-table-wrapper"], ["tableWrapper", ""], ["class", "po-table-container", 4, "ngIf"], [4, "ngIf"], ["class", "po-table-footer", 4, "ngIf"], [1, "po-table-overlay"], [1, "po-table-overlay-content", 3, "p-text"], [1, "po-table-container"], [1, "po-table-header-fixed", "po-table-header"], ["poTableThead", ""], [1, "po-table-container-fixed-inner"], ["poTableTbody", ""], [4, "ngIf", "ngIfThen", "ngIfElse"], [1, "po-table-footer"], [4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "p-literals", "p-subtitles"], [1, "po-row", "po-table-footer-show-more"], ["tableFooter", ""], [1, "po-offset-xl-4", "po-offset-lg-4", "po-offset-md-3", "po-lg-4", "po-md-6", 3, "p-disabled", "p-label", "p-loading", "p-click"], [1, "po-table"], ["class", "po-table-column-selectable", 4, "ngIf"], ["class", "po-table-header-column po-table-header-master-detail", 4, "ngIf"], [3, "po-table-header-master-detail", "po-table-header-single-action", 4, "ngIf"], ["class", "po-table-header-column po-text-center", 4, "ngIf"], ["class", "po-table-header-ellipsis", 3, "width", "max-width", "min-width", "po-clickable", "po-table-header-subtitle", "click", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "po-table-header-single-action", "po-table-header-actions", 4, "ngIf"], [3, "po-table-header-column-manager", "po-table-header-column-manager-border", "po-table-header-single-action", 4, "ngIf"], [1, "po-table-column-selectable"], ["name", "selectAll", 3, "ngModel", "click", "p-change", "ngModelChange", 4, "ngIf"], ["name", "selectAll", 3, "ngModel", "click", "p-change", "ngModelChange"], [1, "po-table-header-column", "po-table-header-master-detail"], [1, "po-table-header-column", "po-text-center"], ["noColumnsHeader", ""], [1, "po-table-header-ellipsis", 3, "click"], ["headersTable", ""], [1, "po-table-header-flex"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["columnManager", ""], ["p-tooltip-position", "left", 1, "po-table-header-column-manager-button", "po-icon", "po-icon-settings", "po-clickable", 3, "p-tooltip", "click"], ["columnManagerTarget", ""], [3, "itemSize", "minBufferPx", "maxBufferPx", "scroll"], ["poTableTbodyVirtual", ""], ["class", "po-table-group-row", 4, "ngIf"], [1, "po-table-group-row"], [1, "po-table-row", "po-table-row-no-data"], [1, "po-table-no-data", "po-text-center", 3, "colSpan"], ["class", "po-table-group-row", 4, "cdkVirtualFor", "cdkVirtualForOf", "cdkVirtualForTrackBy"], [1, "po-table-row"], ["class", "po-table-column-detail-toggle", 3, "click", 4, "ngIf"], [3, "width", "max-width", "min-width", "po-table-column", "po-table-column-right", "po-table-column-center", "po-table-column-icons", "ngClass", "click", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-table-column", 4, "ngIf"], [1, "po-table-column-detail-toggle", 3, "click"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "ngClass", "click"], [1, "po-table-column-cell", "notranslate", 3, "ngSwitch", "p-tooltip", "mouseenter", "mouseleave"], [4, "ngSwitchCase"], [3, "p-action", "p-disabled", "p-link", "p-row", "p-value", "click", 4, "ngSwitchCase"], [3, "p-column", "p-icons", "p-row", 4, "ngSwitchCase"], [4, "ngSwitchDefault"], [3, "p-action", "p-disabled", "p-link", "p-row", "p-value", "click"], [3, "p-column", "p-icons", "p-row"], [3, "p-subtitle"], [3, "p-value"], [1, "po-table-column", "po-table-column-empty"], [1, "po-table-column"], [1, "po-table-row-template-container", 3, "colSpan"], [1, "po-table-column-detail", 3, "colSpan"], [3, "p-selectable", "p-detail", "p-items", "p-select-row"], ["class", "po-table-group-row", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "po-table-row-no-data", "po-table-column-empty"], ["class", "po-icon po-clickable", 3, "po-icon-arrow-up", "po-icon-arrow-down", 4, "ngIf"], [1, "po-icon", "po-clickable"], ["type", "radio", 1, "po-table-radio"], [1, "po-table-radio-label", "po-clickable", 3, "click"], ["name", "checkbox", 3, "ngModel", "p-change", "ngModelChange", "click"], [1, "po-table-header-ellipsis", 3, "p-tooltip", "mouseenter", "mouseleave"], ["columnHeader", ""], [3, "po-table-header-icon-unselected", "po-table-header-icon-descending", "po-table-header-icon-ascending", 4, "ngIf"], [1, "po-table-header-fixed-inner"], ["class", "po-table-column po-table-column-single-action", 4, "ngIf"], ["class", "po-table-column-actions", 4, "ngIf"], [1, "po-table-column", "po-table-column-single-action"], ["class", "po-table-single-action po-clickable", 3, "po-table-action-disabled", "click", 4, "ngIf"], [1, "po-table-single-action", "po-clickable", 3, "click"], ["class", "po-table-single-action-content", 3, "p-icon", 4, "ngIf"], [1, "po-table-single-action-content", 3, "p-icon"], [1, "po-table-column-actions"], [1, "po-icon", "po-icon-more", "po-clickable", 3, "click"], ["popupTarget", ""], [3, "p-columns", "p-max-columns", "p-target", "p-last-visible-columns-selected", "p-columns-default", "p-visible-columns-change", "p-change-visible-columns", "p-initial-columns"]], template: function PoTableComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17445
17823
|
i0.ɵɵtemplate(0, PoTableComponent_po_container_0_Template, 2, 2, "po-container", 0);
|
|
17446
17824
|
i0.ɵɵtemplate(1, PoTableComponent_ng_template_1_Template, 8, 10, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
17447
17825
|
i0.ɵɵtemplate(3, PoTableComponent_div_3_Template, 3, 5, "div", 2);
|
|
17448
17826
|
i0.ɵɵtemplate(4, PoTableComponent_ng_template_4_Template, 11, 15, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
17449
|
-
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_Template,
|
|
17827
|
+
i0.ɵɵtemplate(6, PoTableComponent_ng_template_6_Template, 5, 11, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
17450
17828
|
i0.ɵɵtemplate(8, PoTableComponent_ng_template_8_Template, 13, 17, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
|
|
17451
17829
|
i0.ɵɵelement(10, "po-popup", 6, 7);
|
|
17452
17830
|
i0.ɵɵtemplate(12, PoTableComponent_ng_template_12_Template, 1, 1, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor);
|
|
17453
17831
|
i0.ɵɵtemplate(14, PoTableComponent_ng_template_14_Template, 2, 2, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor);
|
|
17454
|
-
i0.ɵɵtemplate(16, PoTableComponent_ng_template_16_Template,
|
|
17832
|
+
i0.ɵɵtemplate(16, PoTableComponent_ng_template_16_Template, 1, 1, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
17455
17833
|
i0.ɵɵtemplate(18, PoTableComponent_ng_template_18_Template, 5, 5, "ng-template", null, 11, i0.ɵɵtemplateRefExtractor);
|
|
17456
17834
|
i0.ɵɵtemplate(20, PoTableComponent_ng_template_20_Template, 2, 3, "ng-template", null, 12, i0.ɵɵtemplateRefExtractor);
|
|
17457
17835
|
i0.ɵɵtemplate(22, PoTableComponent_ng_template_22_Template, 1, 1, "ng-template", null, 13, i0.ɵɵtemplateRefExtractor);
|
|
@@ -17466,10 +17844,10 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17466
17844
|
i0.ɵɵproperty("p-actions", ctx.actions)("p-target", ctx.popupTarget);
|
|
17467
17845
|
i0.ɵɵadvance(16);
|
|
17468
17846
|
i0.ɵɵproperty("ngIf", !ctx.hideColumnsManager);
|
|
17469
|
-
} }, directives: [i1.NgIf, PoContainerComponent, i1.NgTemplateOutlet, PoLoadingComponent, i1.NgForOf, PoTableSubtitleFooterComponent, PoButtonComponent, PoTooltipDirective, i1.NgClass, i1.NgSwitch, i1.NgSwitchCase, PoTableColumnLinkComponent, PoTableColumnIconComponent, PoTableSubtitleCircleComponent, PoTableColumnLabelComponent, i1.NgSwitchDefault, PoTableDetailComponent, PoPopupComponent, PoIconComponent, PoTableColumnManagerComponent], pipes: [i1.CurrencyPipe, i1.DatePipe, PoTimePipe, i1.TitleCasePipe], encapsulation: 2 });
|
|
17847
|
+
} }, directives: [i1.NgIf, PoContainerComponent, i1.NgTemplateOutlet, PoLoadingComponent, i1.NgForOf, PoTableSubtitleFooterComponent, PoButtonComponent, PoCheckboxComponent, i3.NgControlStatus, i3.NgModel, PoTooltipDirective, i13.CdkVirtualScrollViewport, i13.CdkFixedSizeVirtualScroll, i13.CdkVirtualForOf, i1.NgClass, i1.NgSwitch, i1.NgSwitchCase, PoTableColumnLinkComponent, PoTableColumnIconComponent, PoTableSubtitleCircleComponent, PoTableColumnLabelComponent, i1.NgSwitchDefault, PoTableDetailComponent, PoPopupComponent, PoIconComponent, PoTableColumnManagerComponent], pipes: [i1.CurrencyPipe, i1.DatePipe, PoTimePipe, i1.TitleCasePipe], encapsulation: 2 });
|
|
17470
17848
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableComponent, [{
|
|
17471
17849
|
type: Component,
|
|
17472
|
-
args: [{ selector: 'po-table', providers: [PoDateService], template: "<po-container *ngIf=\"container; else tableContainerTemplate\" p-no-padding [p-no-shadow]=\"container === 'border'\">\n <ng-container *ngTemplateOutlet=\"tableContainerTemplate\"></ng-container>\n</po-container>\n\n<ng-template #tableContainerTemplate>\n <div [class.po-table-container-relative]=\"loading\">\n <div *ngIf=\"loading\" class=\"po-table-overlay\">\n <po-loading class=\"po-table-overlay-content\" [p-text]=\"literals.loadingData\"></po-loading>\n </div>\n\n <div class=\"po-table-main-container\">\n <div\n #tableWrapper\n class=\"po-table-wrapper\"\n [class.po-table-header-fixed-columns-pixels]=\"allColumnsWidthPixels\"\n [style.opacity]=\"tableOpacity\"\n >\n <div *ngIf=\"height\" class=\"po-table-container\" [style.height.px]=\"heightTableContainer\">\n <div #poTableThead class=\"po-table-header-fixed po-table-header\">\n <ng-container *ngTemplateOutlet=\"tableHeaderTemplate\"></ng-container>\n </div>\n <div #poTableTbody class=\"po-table-container-fixed-inner\" (scroll)=\"syncronizeHorizontalScroll()\">\n <ng-container *ngTemplateOutlet=\"tableBodyTemplate\"></ng-container>\n </div>\n </div>\n\n <div *ngIf=\"!height\">\n <ng-container *ngTemplateOutlet=\"tableTemplate\"></ng-container>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"po-table-footer\" *ngIf=\"hasFooter\">\n <ng-container *ngFor=\"let column of subtitleColumns; trackBy: trackBy\">\n <po-table-subtitle-footer [p-literals]=\"literals\" [p-subtitles]=\"column.subtitles\"> </po-table-subtitle-footer>\n </ng-container>\n </div>\n</ng-template>\n\n<div\n *ngIf=\"!infiniteScroll\"\n class=\"po-row po-table-footer-show-more\"\n [class.po-invisible]=\"showMore.observers.length === 0 && !hasService\"\n #tableFooter\n>\n <po-button\n class=\"po-offset-xl-4 po-offset-lg-4 po-offset-md-3 po-lg-4 po-md-6\"\n [p-disabled]=\"showMoreDisabled\"\n [p-label]=\"literals.loadMoreData\"\n [p-loading]=\"loadingShowMore\"\n (p-click)=\"onShowMore()\"\n >\n </po-button>\n</div>\n\n<ng-template #tableHeaderTemplate>\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <thead>\n <tr [class.po-table-header]=\"!height\">\n <th *ngIf=\"hasSelectableColumn\" class=\"po-table-column-selectable\">\n <div [class.po-table-header-fixed-inner]=\"height\">\n <input\n *ngIf=\"!hideSelectAll\"\n type=\"checkbox\"\n class=\"po-table-checkbox\"\n [class.po-table-checkbox-checked]=\"selectAll\"\n [class.po-table-checkbox-indeterminate]=\"selectAll === null\"\n />\n <label *ngIf=\"!hideSelectAll\" class=\"po-table-checkbox-label po-clickable\" (click)=\"selectAllRows()\">\n </label>\n </div>\n </th>\n\n <th\n *ngIf=\"(hasMasterDetailColumn || hasRowTemplate) && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeader class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n #headersTable\n class=\"po-table-header-ellipsis\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n >\n <div\n class=\"po-table-header-flex\"\n [class.po-table-header-fixed-inner]=\"height\"\n [class.po-table-header-flex-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-header-flex-center]=\"column.type === 'subtitle'\"\n >\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n\n <th\n *ngIf=\"hasRowTemplateWithArrowDirectionRight && (hasVisibleActions || hideColumnsManager)\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <th\n *ngIf=\"hasVisibleActions && hideColumnsManager && actionRight\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n [class.po-table-header-actions]=\"!isSingleAction\"\n ></th>\n\n <th\n #columnManager\n *ngIf=\"hasValidColumns && !hideColumnsManager\"\n [class.po-table-header-column-manager]=\"!isSingleAction || !actionRight\"\n [class.po-table-header-column-manager-border]=\"!height && container\"\n [class.po-table-header-single-action]=\"isSingleAction && actionRight\"\n >\n <div\n [class.po-table-header-column-manager-border]=\"height && container\"\n [class.po-table-header-column-manager-fixed-inner]=\"height\"\n [style.width.px]=\"height && visibleActions.length ? columnManager.offsetWidth : undefined\"\n >\n <button\n #columnManagerTarget\n class=\"po-table-header-column-manager-button po-icon po-icon-settings po-clickable\"\n p-tooltip-position=\"left\"\n [p-tooltip]=\"literals.columnsManager\"\n (click)=\"onOpenColumnManager()\"\n ></button>\n </div>\n </th>\n </tr>\n </thead>\n </table>\n</ng-template>\n\n<ng-template #tableBodyTemplate>\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <tbody class=\"po-table-group-row\" *ngIf=\"!hasItems || !hasMainColumns\">\n <tr class=\"po-table-row po-table-row-no-data\">\n <td [colSpan]=\"columnCount\" class=\"po-table-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </td>\n </tr>\n </tbody>\n\n <ng-container *ngIf=\"hasMainColumns\">\n <tbody class=\"po-table-group-row\" *ngFor=\"let row of items; let rowIndex = index; trackBy: trackBy\">\n <tr class=\"po-table-row\" [class.po-table-row-active]=\"row.$selected || (row.$selected === null && selectable)\">\n <td *ngIf=\"selectable\" class=\"po-table-column-selectable\">\n <ng-container *ngTemplateOutlet=\"singleSelect ? inputRadio : inputCheckbox; context: { $implicit: row }\">\n </ng-container>\n </td>\n\n <!-- Valida se a origem do detail \u00E9 pelo input do po-table -->\n <td\n *ngIf=\"columnMasterDetail && !hideDetail && !hasRowTemplate\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna com as a\u00E7\u00F5es na esquerda (padr\u00E3o)-->\n <ng-template\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Valida se a origem do detail \u00E9 pela diretiva -->\n <td\n *ngIf=\"hasRowTemplate && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <td\n *ngFor=\"let column of mainColumns; let columnIndex = index; trackBy: trackBy\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-table-column]=\"column.type !== 'icon'\"\n [class.po-table-column-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-column-center]=\"column.type === 'subtitle'\"\n [class.po-table-column-icons]=\"column.type === 'icon'\"\n [ngClass]=\"getClassColor(row, column)\"\n (click)=\"selectable ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell notranslate\"\n [class.po-table-body-ellipsis]=\"hideTextOverflow\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n [style.width.px]=\"noColumnsHeader?.nativeElement.parentElement?.offsetWidth\"\n (mouseenter)=\"tooltipMouseEnter($event, column, row)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n <span *ngSwitchCase=\"'columnTemplate'\">\n <ng-container *ngTemplateOutlet=\"getTemplate(column); context: { $implicit: getCellData(row, column) }\">\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'cellTemplate'\">\n <ng-container *ngTemplateOutlet=\"tableCellTemplate?.templateRef; context: { row: row, column: column }\">\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'boolean'\">\n {{ getBooleanLabel(getCellData(row, column), column) }}\n </span>\n\n <span *ngSwitchCase=\"'currency'\">\n {{ getCellData(row, column) | currency: column.format:'symbol':'1.2-2' }}\n </span>\n\n <span *ngSwitchCase=\"'date'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy' }}\n </span>\n\n <span *ngSwitchCase=\"'time'\">\n {{ getCellData(row, column) | po_time: column.format || 'HH:mm:ss.ffffff' }}\n </span>\n\n <span *ngSwitchCase=\"'dateTime'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n\n <span *ngSwitchCase=\"'number'\">\n {{ formatNumber(getCellData(row, column), column.format) }}\n </span>\n\n <po-table-column-link\n *ngSwitchCase=\"'link'\"\n [p-action]=\"column.action\"\n [p-disabled]=\"checkDisabled(row, column)\"\n [p-link]=\"row[column.link]\"\n [p-row]=\"row\"\n [p-value]=\"getCellData(row, column)\"\n (click)=\"onClickLink($event, row, column)\"\n >\n </po-table-column-link>\n\n <po-table-column-icon\n *ngSwitchCase=\"'icon'\"\n [p-column]=\"column\"\n [p-icons]=\"getColumnIcons(row, column)\"\n [p-row]=\"row\"\n >\n </po-table-column-icon>\n\n <span *ngSwitchCase=\"'subtitle'\">\n <po-table-subtitle-circle [p-subtitle]=\"getSubtitleColumn(row, column)\"></po-table-subtitle-circle>\n </span>\n <span *ngSwitchCase=\"'label'\">\n <po-table-column-label [p-value]=\"getColumnLabel(row, column)\"> </po-table-column-label>\n </span>\n <span *ngSwitchDefault>{{ getCellData(row, column) }}</span>\n </div>\n </td>\n\n <td\n *ngIf=\"hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna de a\u00E7oes na direita -->\n <ng-template\n *ngIf=\"actionRight\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Coluna para n\u00E3o ficar em branco nas linhas de gerenciamento -->\n <ng-container *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction) && !hideColumnsManager\">\n <td class=\"po-table-column po-table-column-empty\"></td>\n </ng-container>\n\n <!-- Column Manager -->\n <td\n *ngIf=\"!hasVisibleActions && !hideColumnsManager && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column\"\n ></td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && hasRowTemplate && row.$showDetail && isShowRowTemplate(row, rowIndex)\">\n <td class=\"po-table-row-template-container\" [colSpan]=\"columnCountForMasterDetail\">\n <ng-template\n [ngTemplateOutlet]=\"tableRowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && isShowMasterDetail(row)\">\n <td class=\"po-table-column-detail\" [colSpan]=\"columnCountForMasterDetail\">\n <po-table-detail\n [p-selectable]=\"selectable && !detailHideSelect\"\n [p-detail]=\"columnMasterDetail.detail\"\n [p-items]=\"row[nameColumnDetail]\"\n (p-select-row)=\"selectDetailRow($event)\"\n >\n </po-table-detail>\n </td>\n </tr>\n </tbody>\n </ng-container>\n </table>\n</ng-template>\n\n<ng-template #tableTemplate>\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <thead>\n <tr [class.po-table-header]=\"!height\">\n <th *ngIf=\"hasSelectableColumn\" class=\"po-table-column-selectable\">\n <div [class.po-table-header-fixed-inner]=\"height\">\n <input\n *ngIf=\"!hideSelectAll\"\n type=\"checkbox\"\n class=\"po-table-checkbox\"\n [class.po-table-checkbox-checked]=\"selectAll\"\n [class.po-table-checkbox-indeterminate]=\"selectAll === null\"\n />\n <label *ngIf=\"!hideSelectAll\" class=\"po-table-checkbox-label po-clickable\" (click)=\"selectAllRows()\">\n </label>\n </div>\n </th>\n\n <th\n *ngIf=\"(hasMasterDetailColumn || hasRowTemplate) && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeader class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n #headersTable\n class=\"po-table-header-ellipsis\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n >\n <div\n class=\"po-table-header-flex\"\n [class.po-table-header-fixed-inner]=\"height\"\n [class.po-table-header-flex-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-header-flex-center]=\"column.type === 'subtitle'\"\n >\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n\n <th\n *ngIf=\"hasRowTemplateWithArrowDirectionRight && (hasVisibleActions || hideColumnsManager)\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <th\n *ngIf=\"hasVisibleActions && hideColumnsManager && actionRight\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n [class.po-table-header-actions]=\"!isSingleAction\"\n ></th>\n\n <th\n #columnManager\n *ngIf=\"hasValidColumns && !hideColumnsManager\"\n [class.po-table-header-column-manager]=\"!isSingleAction || !actionRight\"\n [class.po-table-header-column-manager-border]=\"!height && container\"\n [class.po-table-header-single-action]=\"isSingleAction && actionRight\"\n >\n <div\n [class.po-table-header-column-manager-border]=\"height && container\"\n [class.po-table-header-column-manager-fixed-inner]=\"height\"\n [style.width.px]=\"height && visibleActions.length ? columnManager.offsetWidth : undefined\"\n >\n <button\n #columnManagerTarget\n class=\"po-table-header-column-manager-button po-icon po-icon-settings po-clickable\"\n p-tooltip-position=\"left\"\n [p-tooltip]=\"literals.columnsManager\"\n (click)=\"onOpenColumnManager()\"\n ></button>\n </div>\n </th>\n </tr>\n </thead>\n\n <tbody class=\"po-table-group-row\" *ngIf=\"!hasItems || !hasMainColumns\">\n <tr class=\"po-table-row po-table-row-no-data\">\n <td [colSpan]=\"columnCount\" class=\"po-table-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </td>\n </tr>\n </tbody>\n\n <ng-container *ngIf=\"hasMainColumns\">\n <tbody class=\"po-table-group-row\" *ngFor=\"let row of items; let rowIndex = index; trackBy: trackBy\">\n <tr class=\"po-table-row\" [class.po-table-row-active]=\"row.$selected || (row.$selected === null && selectable)\">\n <td *ngIf=\"selectable\" class=\"po-table-column-selectable\">\n <ng-container *ngTemplateOutlet=\"singleSelect ? inputRadio : inputCheckbox; context: { $implicit: row }\">\n </ng-container>\n </td>\n\n <!-- Valida se a origem do detail \u00E9 pelo input do po-table -->\n <td\n *ngIf=\"columnMasterDetail && !hideDetail && !hasRowTemplate\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna com as a\u00E7\u00F5es na esquerda (padr\u00E3o)-->\n <ng-template\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Valida se a origem do detail \u00E9 pela diretiva -->\n <td\n *ngIf=\"hasRowTemplate && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <td\n *ngFor=\"let column of mainColumns; let columnIndex = index; trackBy: trackBy\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-table-column]=\"column.type !== 'icon'\"\n [class.po-table-column-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-column-center]=\"column.type === 'subtitle'\"\n [class.po-table-column-icons]=\"column.type === 'icon'\"\n [ngClass]=\"getClassColor(row, column)\"\n (click)=\"selectable ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell notranslate\"\n [class.po-table-body-ellipsis]=\"hideTextOverflow\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n (mouseenter)=\"tooltipMouseEnter($event, column, row)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n <span *ngSwitchCase=\"'columnTemplate'\">\n <ng-container *ngTemplateOutlet=\"getTemplate(column); context: { $implicit: getCellData(row, column) }\">\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'cellTemplate'\">\n <ng-container *ngTemplateOutlet=\"tableCellTemplate?.templateRef; context: { row: row, column: column }\">\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'boolean'\">\n {{ getBooleanLabel(getCellData(row, column), column) }}\n </span>\n\n <span *ngSwitchCase=\"'currency'\">\n {{ getCellData(row, column) | currency: column.format:'symbol':'1.2-2' }}\n </span>\n\n <span *ngSwitchCase=\"'date'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy' }}\n </span>\n\n <span *ngSwitchCase=\"'time'\">\n {{ getCellData(row, column) | po_time: column.format || 'HH:mm:ss.ffffff' }}\n </span>\n\n <span *ngSwitchCase=\"'dateTime'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n\n <span *ngSwitchCase=\"'number'\">\n {{ formatNumber(getCellData(row, column), column.format) }}\n </span>\n\n <po-table-column-link\n *ngSwitchCase=\"'link'\"\n [p-action]=\"column.action\"\n [p-disabled]=\"checkDisabled(row, column)\"\n [p-link]=\"row[column.link]\"\n [p-row]=\"row\"\n [p-value]=\"getCellData(row, column)\"\n (click)=\"onClickLink($event, row, column)\"\n >\n </po-table-column-link>\n\n <po-table-column-icon\n *ngSwitchCase=\"'icon'\"\n [p-column]=\"column\"\n [p-icons]=\"getColumnIcons(row, column)\"\n [p-row]=\"row\"\n >\n </po-table-column-icon>\n\n <span *ngSwitchCase=\"'subtitle'\">\n <po-table-subtitle-circle [p-subtitle]=\"getSubtitleColumn(row, column)\"></po-table-subtitle-circle>\n </span>\n <span *ngSwitchCase=\"'label'\">\n <po-table-column-label [p-value]=\"getColumnLabel(row, column)\"> </po-table-column-label>\n </span>\n <span *ngSwitchDefault>{{ getCellData(row, column) }}</span>\n </div>\n </td>\n\n <td\n *ngIf=\"hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna de a\u00E7oes na direita -->\n <ng-template\n *ngIf=\"actionRight\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Coluna para n\u00E3o ficar em branco nas linhas de gerenciamento -->\n <ng-container *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction) && !hideColumnsManager\">\n <td class=\"po-table-row-no-data po-table-column-empty\"></td>\n </ng-container>\n\n <!-- Column Manager -->\n <td\n *ngIf=\"!hasVisibleActions && !hideColumnsManager && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column\"\n ></td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && hasRowTemplate && row.$showDetail && isShowRowTemplate(row, rowIndex)\">\n <td class=\"po-table-row-template-container\" [colSpan]=\"columnCountForMasterDetail\">\n <ng-template\n [ngTemplateOutlet]=\"tableRowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && isShowMasterDetail(row)\">\n <td class=\"po-table-column-detail\" [colSpan]=\"columnCountForMasterDetail\">\n <po-table-detail\n [p-selectable]=\"selectable && !detailHideSelect\"\n [p-detail]=\"columnMasterDetail.detail\"\n [p-items]=\"row[nameColumnDetail]\"\n (p-select-row)=\"selectDetailRow($event)\"\n >\n </po-table-detail>\n </td>\n </tr>\n </tbody>\n </ng-container>\n </table>\n</ng-template>\n\n<po-popup #popup [p-actions]=\"actions\" [p-target]=\"popupTarget\"> </po-popup>\n\n<ng-template #poTableColumnDetail let-row=\"row\" let-rowIndex=\"rowIndex\">\n <span\n *ngIf=\"(containsMasterDetail(row) && !hasRowTemplate) || (isShowRowTemplate(row, rowIndex) && hasRowTemplate)\"\n class=\"po-icon po-clickable\"\n [class.po-icon-arrow-up]=\"row.$showDetail\"\n [class.po-icon-arrow-down]=\"!row.$showDetail\"\n >\n </span>\n</ng-template>\n\n<ng-template #inputRadio let-row>\n <input type=\"radio\" class=\"po-table-radio\" [class.po-table-radio-checked]=\"row.$selected\" />\n <label class=\"po-table-radio-label po-clickable\" (click)=\"selectable ? selectRow(row) : 'javascript:;'\"></label>\n</ng-template>\n\n<ng-template #inputCheckbox let-row>\n <input type=\"checkbox\" class=\"po-table-checkbox\" [class.po-table-checkbox-checked]=\"row.$selected\" />\n <label class=\"po-table-checkbox-label po-clickable\" (click)=\"selectable ? selectRow(row) : 'javascript:;'\"></label>\n</ng-template>\n\n<ng-template #contentHeaderTemplate let-column>\n <span\n #columnHeader\n class=\"po-table-header-ellipsis\"\n [p-tooltip]=\"tooltipText\"\n (mouseenter)=\"tooltipMouseEnter($event)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n {{ column.label || (column.property | titlecase) }}\n </span>\n <span\n *ngIf=\"sort && column.sortable !== false\"\n [class.po-table-header-icon-unselected]=\"sortedColumn?.property !== column\"\n [class.po-table-header-icon-descending]=\"sortedColumn?.property === column && sortedColumn.ascending\"\n [class.po-table-header-icon-ascending]=\"sortedColumn?.property === column && !sortedColumn.ascending\"\n >\n </span>\n</ng-template>\n\n<ng-template #noColumnsWithHeight>\n <div class=\"po-table-header-fixed-inner\" [style.width.px]=\"noColumnsHeader?.nativeElement.offsetWidth\">\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n </div>\n</ng-template>\n\n<ng-template #noColumnsWithoutHeight>\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n</ng-template>\n\n<!-- Template de a\u00E7\u00F5es -->\n<ng-template #ActionsColumnTemplate let-row=\"row\" let-rowIndex=\"rowIndex\">\n <td *ngIf=\"isSingleAction\" class=\"po-table-column po-table-column-single-action\">\n <div\n *ngIf=\"firstAction.visible !== false\"\n class=\"po-table-single-action po-clickable\"\n [class.po-table-action-disabled]=\"firstAction.disabled ? validateTableAction(row, firstAction) : false\"\n (click)=\"executeTableAction(row, firstAction)\"\n >\n <po-icon *ngIf=\"firstAction.icon\" class=\"po-table-single-action-content\" [p-icon]=\"firstAction.icon\"></po-icon>\n {{ firstAction.label }}\n </div>\n </td>\n\n <td *ngIf=\"visibleActions.length > 1\" class=\"po-table-column-actions\">\n <span #popupTarget class=\"po-icon po-icon-more po-clickable\" (click)=\"togglePopup(row, popupTarget)\"></span>\n </td>\n</ng-template>\n\n<po-table-column-manager\n *ngIf=\"!hideColumnsManager\"\n [p-columns]=\"columns\"\n [p-max-columns]=\"maxColumns\"\n [p-target]=\"columnManagerTarget\"\n [p-last-visible-columns-selected]=\"lastVisibleColumnsSelected\"\n (p-visible-columns-change)=\"onVisibleColumnsChange($event)\"\n (p-change-visible-columns)=\"onChangeVisibleColumns($event)\"\n [p-columns-default]=\"initialColumns\"\n (p-initial-columns)=\"onColumnRestoreManager($event)\"\n>\n</po-table-column-manager>\n" }]
|
|
17850
|
+
args: [{ selector: 'po-table', providers: [PoDateService], template: "<po-container *ngIf=\"container; else tableContainerTemplate\" p-no-padding [p-no-shadow]=\"container === 'border'\">\n <ng-container *ngTemplateOutlet=\"tableContainerTemplate\"></ng-container>\n</po-container>\n\n<ng-template #tableContainerTemplate>\n <div [class.po-table-container-relative]=\"loading\">\n <div *ngIf=\"loading\" class=\"po-table-overlay\">\n <po-loading class=\"po-table-overlay-content\" [p-text]=\"literals.loadingData\"></po-loading>\n </div>\n\n <div class=\"po-table-main-container\">\n <div\n #tableWrapper\n class=\"po-table-wrapper\"\n [class.po-table-header-fixed-columns-pixels]=\"allColumnsWidthPixels\"\n [style.opacity]=\"tableOpacity\"\n >\n <div *ngIf=\"height\" class=\"po-table-container\">\n <div #poTableThead class=\"po-table-header-fixed po-table-header\">\n <ng-container *ngTemplateOutlet=\"tableHeaderTemplate\"></ng-container>\n </div>\n\n <div #poTableTbody class=\"po-table-container-fixed-inner\">\n <ng-container *ngIf=\"height; then tableBodyTemplate; else tableTemplate\"></ng-container>\n </div>\n </div>\n\n <div *ngIf=\"!height\">\n <ng-container *ngTemplateOutlet=\"tableTemplate\"></ng-container>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"po-table-footer\" *ngIf=\"hasFooter\">\n <ng-container *ngFor=\"let column of subtitleColumns; trackBy: trackBy\">\n <po-table-subtitle-footer [p-literals]=\"literals\" [p-subtitles]=\"column.subtitles\"> </po-table-subtitle-footer>\n </ng-container>\n </div>\n</ng-template>\n\n<div\n *ngIf=\"!infiniteScroll\"\n class=\"po-row po-table-footer-show-more\"\n [class.po-invisible]=\"showMore.observers.length === 0 && !hasService\"\n #tableFooter\n>\n <po-button\n class=\"po-offset-xl-4 po-offset-lg-4 po-offset-md-3 po-lg-4 po-md-6\"\n [p-disabled]=\"showMoreDisabled\"\n [p-label]=\"literals.loadMoreData\"\n [p-loading]=\"loadingShowMore\"\n (p-click)=\"onShowMore()\"\n >\n </po-button>\n</div>\n\n<ng-template #tableHeaderTemplate>\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <thead>\n <tr [class.po-table-header]=\"!height\">\n <th *ngIf=\"hasSelectableColumn\" class=\"po-table-column-selectable\">\n <div [class.po-table-header-fixed-inner]=\"height\">\n <po-checkbox\n name=\"selectAll\"\n *ngIf=\"!hideSelectAll\"\n (click)=\"selectAllRows()\"\n (p-change)=\"selectAllRows()\"\n [(ngModel)]=\"selectAll\"\n ></po-checkbox>\n </div>\n </th>\n\n <th\n *ngIf=\"(hasMasterDetailColumn || hasRowTemplate) && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeader class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n #headersTable\n class=\"po-table-header-ellipsis\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n >\n <div\n class=\"po-table-header-flex\"\n [class.po-table-header-fixed-inner]=\"height\"\n [class.po-table-header-flex-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-header-flex-center]=\"column.type === 'subtitle'\"\n >\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n\n <th\n *ngIf=\"hasRowTemplateWithArrowDirectionRight && (hasVisibleActions || hideColumnsManager)\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <th\n *ngIf=\"hasVisibleActions && hideColumnsManager && actionRight\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n [class.po-table-header-actions]=\"!isSingleAction\"\n ></th>\n\n <th\n #columnManager\n *ngIf=\"hasValidColumns && !hideColumnsManager\"\n [class.po-table-header-column-manager]=\"!isSingleAction || !actionRight\"\n [class.po-table-header-column-manager-border]=\"!height && container\"\n [class.po-table-header-single-action]=\"isSingleAction && actionRight\"\n >\n <div\n [class.po-table-header-column-manager-border]=\"height && container\"\n [class.po-table-header-column-manager-fixed-inner]=\"height\"\n [style.width.px]=\"height && visibleActions.length ? columnManager.offsetWidth : undefined\"\n >\n <button\n #columnManagerTarget\n class=\"po-table-header-column-manager-button po-icon po-icon-settings po-clickable\"\n p-tooltip-position=\"left\"\n [p-tooltip]=\"literals.columnsManager\"\n (click)=\"onOpenColumnManager()\"\n ></button>\n </div>\n </th>\n </tr>\n </thead>\n </table>\n</ng-template>\n\n<!-- s\u00F3 virtual -->\n<ng-template #tableBodyTemplate>\n <cdk-virtual-scroll-viewport\n #poTableTbodyVirtual\n [itemSize]=\"itemSize\"\n [style.height.px]=\"heightTableContainer\"\n [minBufferPx]=\"height < 100 ? 100 : height\"\n [maxBufferPx]=\"height < 200 ? 200 : height\"\n (scroll)=\"syncronizeHorizontalScroll()\"\n >\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <tbody class=\"po-table-group-row\" *ngIf=\"!hasItems || !hasMainColumns\">\n <tr class=\"po-table-row po-table-row-no-data\">\n <td [colSpan]=\"columnCount\" class=\"po-table-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </td>\n </tr>\n </tbody>\n <ng-container *ngIf=\"hasMainColumns\">\n <tbody class=\"po-table-group-row\" *cdkVirtualFor=\"let row of items; let rowIndex = index; trackBy: trackBy\">\n <tr\n class=\"po-table-row\"\n [class.po-table-row-active]=\"row.$selected || (row.$selected === null && selectable)\"\n >\n <td *ngIf=\"selectable\" class=\"po-table-column-selectable\">\n <ng-container *ngTemplateOutlet=\"singleSelect ? inputRadio : inputCheckbox; context: { $implicit: row }\">\n </ng-container>\n </td>\n\n <!-- Valida se a origem do detail \u00E9 pelo input do po-table -->\n <td\n *ngIf=\"columnMasterDetail && !hideDetail && !hasRowTemplate\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna com as a\u00E7\u00F5es na esquerda (padr\u00E3o)-->\n <ng-template\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Valida se a origem do detail \u00E9 pela diretiva -->\n <td\n *ngIf=\"hasRowTemplate && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <td\n *ngFor=\"let column of mainColumns; let columnIndex = index; trackBy: trackBy\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-table-column]=\"column.type !== 'icon'\"\n [class.po-table-column-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-column-center]=\"column.type === 'subtitle'\"\n [class.po-table-column-icons]=\"column.type === 'icon'\"\n [ngClass]=\"getClassColor(row, column)\"\n (click)=\"selectable ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell notranslate\"\n [class.po-table-body-ellipsis]=\"hideTextOverflow\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n [style.width.px]=\"noColumnsHeader?.nativeElement.parentElement?.offsetWidth\"\n (mouseenter)=\"tooltipMouseEnter($event, column, row)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n <span *ngSwitchCase=\"'columnTemplate'\">\n <ng-container\n *ngTemplateOutlet=\"getTemplate(column); context: { $implicit: getCellData(row, column) }\"\n >\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'cellTemplate'\">\n <ng-container\n *ngTemplateOutlet=\"tableCellTemplate?.templateRef; context: { row: row, column: column }\"\n >\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'boolean'\">\n {{ getBooleanLabel(getCellData(row, column), column) }}\n </span>\n\n <span *ngSwitchCase=\"'currency'\">\n {{ getCellData(row, column) | currency: column.format:'symbol':'1.2-2' }}\n </span>\n\n <span *ngSwitchCase=\"'date'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy' }}\n </span>\n\n <span *ngSwitchCase=\"'time'\">\n {{ getCellData(row, column) | po_time: column.format || 'HH:mm:ss.ffffff' }}\n </span>\n\n <span *ngSwitchCase=\"'dateTime'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n\n <span *ngSwitchCase=\"'number'\">\n {{ formatNumber(getCellData(row, column), column.format) }}\n </span>\n\n <po-table-column-link\n *ngSwitchCase=\"'link'\"\n [p-action]=\"column.action\"\n [p-disabled]=\"checkDisabled(row, column)\"\n [p-link]=\"row[column.link]\"\n [p-row]=\"row\"\n [p-value]=\"getCellData(row, column)\"\n (click)=\"onClickLink($event, row, column)\"\n >\n </po-table-column-link>\n\n <po-table-column-icon\n *ngSwitchCase=\"'icon'\"\n [p-column]=\"column\"\n [p-icons]=\"getColumnIcons(row, column)\"\n [p-row]=\"row\"\n >\n </po-table-column-icon>\n\n <span *ngSwitchCase=\"'subtitle'\">\n <po-table-subtitle-circle [p-subtitle]=\"getSubtitleColumn(row, column)\"></po-table-subtitle-circle>\n </span>\n <span *ngSwitchCase=\"'label'\">\n <po-table-column-label [p-value]=\"getColumnLabel(row, column)\"> </po-table-column-label>\n </span>\n <span *ngSwitchDefault>{{ getCellData(row, column) }}</span>\n </div>\n </td>\n\n <td\n *ngIf=\"hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna de a\u00E7oes na direita -->\n <ng-template\n *ngIf=\"actionRight\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Coluna para n\u00E3o ficar em branco nas linhas de gerenciamento -->\n <ng-container *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction) && !hideColumnsManager\">\n <td class=\"po-table-column po-table-column-empty\"></td>\n </ng-container>\n\n <!-- Column Manager -->\n <td\n *ngIf=\"!hasVisibleActions && !hideColumnsManager && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column\"\n ></td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && hasRowTemplate && row.$showDetail && isShowRowTemplate(row, rowIndex)\">\n <td class=\"po-table-row-template-container\" [colSpan]=\"columnCountForMasterDetail\">\n <ng-template\n [ngTemplateOutlet]=\"tableRowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && isShowMasterDetail(row)\">\n <td class=\"po-table-column-detail\" [colSpan]=\"columnCountForMasterDetail\">\n <po-table-detail\n [p-selectable]=\"selectable && !detailHideSelect\"\n [p-detail]=\"columnMasterDetail.detail\"\n [p-items]=\"row[nameColumnDetail]\"\n (p-select-row)=\"selectDetailRow($event)\"\n >\n </po-table-detail>\n </td>\n </tr>\n </tbody>\n </ng-container>\n </table>\n </cdk-virtual-scroll-viewport>\n</ng-template>\n\n<ng-template #tableTemplate>\n <table class=\"po-table\" [class.po-table-striped]=\"striped\" [class.po-table-layout-fixed]=\"hideTextOverflow\">\n <thead>\n <tr [class.po-table-header]=\"!height\">\n <th *ngIf=\"hasSelectableColumn\" class=\"po-table-column-selectable\">\n <div [class.po-table-header-fixed-inner]=\"height\">\n <po-checkbox\n name=\"selectAll\"\n *ngIf=\"!hideSelectAll\"\n (click)=\"selectAllRows()\"\n (p-change)=\"selectAllRows()\"\n [(ngModel)]=\"selectAll\"\n ></po-checkbox>\n </div>\n </th>\n\n <th\n *ngIf=\"(hasMasterDetailColumn || hasRowTemplate) && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <!-- Coluna criada para caso as a\u00E7\u00F5es fiquem no lado esquerdo -->\n <th\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [class.po-table-header-master-detail]=\"!isSingleAction\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n ></th>\n\n <th *ngIf=\"!hasMainColumns\" #noColumnsHeader class=\"po-table-header-column po-text-center\">\n <ng-container *ngIf=\"height; then noColumnsWithHeight; else noColumnsWithoutHeight\"> </ng-container>\n </th>\n\n <th\n *ngFor=\"let column of mainColumns; let i = index; trackBy: trackBy\"\n #headersTable\n class=\"po-table-header-ellipsis\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-clickable]=\"(sort && column.sortable !== false) || hasService\"\n [class.po-table-header-subtitle]=\"column.type === 'subtitle'\"\n (click)=\"sortColumn(column)\"\n >\n <div\n class=\"po-table-header-flex\"\n [class.po-table-header-fixed-inner]=\"height\"\n [class.po-table-header-flex-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-header-flex-center]=\"column.type === 'subtitle'\"\n >\n <ng-container *ngTemplateOutlet=\"contentHeaderTemplate; context: { $implicit: column }\"> </ng-container>\n </div>\n </th>\n\n <th\n *ngIf=\"hasRowTemplateWithArrowDirectionRight && (hasVisibleActions || hideColumnsManager)\"\n class=\"po-table-header-column po-table-header-master-detail\"\n ></th>\n\n <th\n *ngIf=\"hasVisibleActions && hideColumnsManager && actionRight\"\n [class.po-table-header-single-action]=\"isSingleAction\"\n [class.po-table-header-actions]=\"!isSingleAction\"\n ></th>\n\n <th\n #columnManager\n *ngIf=\"hasValidColumns && !hideColumnsManager\"\n [class.po-table-header-column-manager]=\"!isSingleAction || !actionRight\"\n [class.po-table-header-column-manager-border]=\"!height && container\"\n [class.po-table-header-single-action]=\"isSingleAction && actionRight\"\n >\n <div\n [class.po-table-header-column-manager-border]=\"height && container\"\n [class.po-table-header-column-manager-fixed-inner]=\"height\"\n [style.width.px]=\"height && visibleActions.length ? columnManager.offsetWidth : undefined\"\n >\n <button\n #columnManagerTarget\n class=\"po-table-header-column-manager-button po-icon po-icon-settings po-clickable\"\n p-tooltip-position=\"left\"\n [p-tooltip]=\"literals.columnsManager\"\n (click)=\"onOpenColumnManager()\"\n ></button>\n </div>\n </th>\n </tr>\n </thead>\n\n <tbody class=\"po-table-group-row\" *ngIf=\"!hasItems || !hasMainColumns\">\n <tr class=\"po-table-row po-table-row-no-data\">\n <td [colSpan]=\"columnCount\" class=\"po-table-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </td>\n </tr>\n </tbody>\n\n <ng-container *ngIf=\"hasMainColumns\">\n <tbody class=\"po-table-group-row\" *ngFor=\"let row of items; let rowIndex = index; trackBy: trackBy\">\n <tr class=\"po-table-row\" [class.po-table-row-active]=\"row.$selected || (row.$selected === null && selectable)\">\n <td *ngIf=\"selectable\" class=\"po-table-column-selectable\">\n <ng-container *ngTemplateOutlet=\"singleSelect ? inputRadio : inputCheckbox; context: { $implicit: row }\">\n </ng-container>\n </td>\n\n <!-- Valida se a origem do detail \u00E9 pelo input do po-table -->\n <td\n *ngIf=\"columnMasterDetail && !hideDetail && !hasRowTemplate\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna com as a\u00E7\u00F5es na esquerda (padr\u00E3o)-->\n <ng-template\n *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction)\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Valida se a origem do detail \u00E9 pela diretiva -->\n <td\n *ngIf=\"hasRowTemplate && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <td\n *ngFor=\"let column of mainColumns; let columnIndex = index; trackBy: trackBy\"\n [style.width]=\"column.width\"\n [style.max-width]=\"column.width\"\n [style.min-width]=\"column.width\"\n [class.po-table-column]=\"column.type !== 'icon'\"\n [class.po-table-column-right]=\"column.type === 'currency' || column.type === 'number'\"\n [class.po-table-column-center]=\"column.type === 'subtitle'\"\n [class.po-table-column-icons]=\"column.type === 'icon'\"\n [ngClass]=\"getClassColor(row, column)\"\n (click)=\"selectable ? selectRow(row) : 'javascript:;'\"\n >\n <div\n class=\"po-table-column-cell notranslate\"\n [class.po-table-body-ellipsis]=\"hideTextOverflow\"\n [ngSwitch]=\"column.type\"\n [p-tooltip]=\"tooltipText\"\n (mouseenter)=\"tooltipMouseEnter($event, column, row)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n <span *ngSwitchCase=\"'columnTemplate'\">\n <ng-container *ngTemplateOutlet=\"getTemplate(column); context: { $implicit: getCellData(row, column) }\">\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'cellTemplate'\">\n <ng-container *ngTemplateOutlet=\"tableCellTemplate?.templateRef; context: { row: row, column: column }\">\n </ng-container>\n </span>\n\n <span *ngSwitchCase=\"'boolean'\">\n {{ getBooleanLabel(getCellData(row, column), column) }}\n </span>\n\n <span *ngSwitchCase=\"'currency'\">\n {{ getCellData(row, column) | currency: column.format:'symbol':'1.2-2' }}\n </span>\n\n <span *ngSwitchCase=\"'date'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy' }}\n </span>\n\n <span *ngSwitchCase=\"'time'\">\n {{ getCellData(row, column) | po_time: column.format || 'HH:mm:ss.ffffff' }}\n </span>\n\n <span *ngSwitchCase=\"'dateTime'\">\n {{ getCellData(row, column) | date: column.format || 'dd/MM/yyyy HH:mm:ss' }}\n </span>\n\n <span *ngSwitchCase=\"'number'\">\n {{ formatNumber(getCellData(row, column), column.format) }}\n </span>\n\n <po-table-column-link\n *ngSwitchCase=\"'link'\"\n [p-action]=\"column.action\"\n [p-disabled]=\"checkDisabled(row, column)\"\n [p-link]=\"row[column.link]\"\n [p-row]=\"row\"\n [p-value]=\"getCellData(row, column)\"\n (click)=\"onClickLink($event, row, column)\"\n >\n </po-table-column-link>\n\n <po-table-column-icon\n *ngSwitchCase=\"'icon'\"\n [p-column]=\"column\"\n [p-icons]=\"getColumnIcons(row, column)\"\n [p-row]=\"row\"\n >\n </po-table-column-icon>\n\n <span *ngSwitchCase=\"'subtitle'\">\n <po-table-subtitle-circle [p-subtitle]=\"getSubtitleColumn(row, column)\"></po-table-subtitle-circle>\n </span>\n <span *ngSwitchCase=\"'label'\">\n <po-table-column-label [p-value]=\"getColumnLabel(row, column)\"> </po-table-column-label>\n </span>\n <span *ngSwitchDefault>{{ getCellData(row, column) }}</span>\n </div>\n </td>\n\n <td\n *ngIf=\"hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column-detail-toggle\"\n (click)=\"toggleDetail(row)\"\n >\n <ng-template\n [ngTemplateOutlet]=\"poTableColumnDetail\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n\n <!-- Coluna de a\u00E7oes na direita -->\n <ng-template\n *ngIf=\"actionRight\"\n [ngTemplateOutlet]=\"ActionsColumnTemplate\"\n [ngTemplateOutletContext]=\"{ row: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n\n <!-- Coluna para n\u00E3o ficar em branco nas linhas de gerenciamento -->\n <ng-container *ngIf=\"!actionRight && (visibleActions.length > 1 || isSingleAction) && !hideColumnsManager\">\n <td class=\"po-table-row-no-data po-table-column-empty\"></td>\n </ng-container>\n\n <!-- Column Manager -->\n <td\n *ngIf=\"!hasVisibleActions && !hideColumnsManager && !hasRowTemplateWithArrowDirectionRight\"\n class=\"po-table-column\"\n ></td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && hasRowTemplate && row.$showDetail && isShowRowTemplate(row, rowIndex)\">\n <td class=\"po-table-row-template-container\" [colSpan]=\"columnCountForMasterDetail\">\n <ng-template\n [ngTemplateOutlet]=\"tableRowTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: row, rowIndex: rowIndex }\"\n >\n </ng-template>\n </td>\n </tr>\n\n <tr *ngIf=\"hasMainColumns && isShowMasterDetail(row)\">\n <td class=\"po-table-column-detail\" [colSpan]=\"columnCountForMasterDetail\">\n <po-table-detail\n [p-selectable]=\"selectable && !detailHideSelect\"\n [p-detail]=\"columnMasterDetail.detail\"\n [p-items]=\"row[nameColumnDetail]\"\n (p-select-row)=\"selectDetailRow($event)\"\n >\n </po-table-detail>\n </td>\n </tr>\n </tbody>\n </ng-container>\n </table>\n</ng-template>\n\n<po-popup #popup [p-actions]=\"actions\" [p-target]=\"popupTarget\"> </po-popup>\n\n<ng-template #poTableColumnDetail let-row=\"row\" let-rowIndex=\"rowIndex\">\n <span\n *ngIf=\"(containsMasterDetail(row) && !hasRowTemplate) || (isShowRowTemplate(row, rowIndex) && hasRowTemplate)\"\n class=\"po-icon po-clickable\"\n [class.po-icon-arrow-up]=\"row.$showDetail\"\n [class.po-icon-arrow-down]=\"!row.$showDetail\"\n >\n </span>\n</ng-template>\n\n<ng-template #inputRadio let-row>\n <input type=\"radio\" class=\"po-table-radio\" [class.po-table-radio-checked]=\"row.$selected\" />\n <label class=\"po-table-radio-label po-clickable\" (click)=\"selectable ? selectRow(row) : 'javascript:;'\"></label>\n</ng-template>\n\n<ng-template #inputCheckbox let-row>\n <po-checkbox\n name=\"checkbox\"\n (p-change)=\"selectable ? selectRow(row) : 'javascript:;'\"\n [(ngModel)]=\"row.$selected\"\n (click)=\"selectable ? selectRow(row) : 'javascript:;'\"\n ></po-checkbox>\n</ng-template>\n\n<ng-template #contentHeaderTemplate let-column>\n <span\n #columnHeader\n class=\"po-table-header-ellipsis\"\n [p-tooltip]=\"tooltipText\"\n (mouseenter)=\"tooltipMouseEnter($event)\"\n (mouseleave)=\"tooltipMouseLeave()\"\n >\n {{ column.label || (column.property | titlecase) }}\n </span>\n <span\n *ngIf=\"sort && column.sortable !== false\"\n [class.po-table-header-icon-unselected]=\"sortedColumn?.property !== column\"\n [class.po-table-header-icon-descending]=\"sortedColumn?.property === column && sortedColumn.ascending\"\n [class.po-table-header-icon-ascending]=\"sortedColumn?.property === column && !sortedColumn.ascending\"\n >\n </span>\n</ng-template>\n\n<ng-template #noColumnsWithHeight>\n <div class=\"po-table-header-fixed-inner\" [style.width.px]=\"noColumnsHeader?.nativeElement.offsetWidth\">\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n </div>\n</ng-template>\n\n<ng-template #noColumnsWithoutHeight>\n {{ hasValidColumns ? literals.noVisibleColumn : literals.noColumns }}\n</ng-template>\n\n<!-- Template de a\u00E7\u00F5es -->\n<ng-template #ActionsColumnTemplate let-row=\"row\" let-rowIndex=\"rowIndex\">\n <td *ngIf=\"isSingleAction\" class=\"po-table-column po-table-column-single-action\">\n <div\n *ngIf=\"firstAction.visible !== false\"\n class=\"po-table-single-action po-clickable\"\n [class.po-table-action-disabled]=\"firstAction.disabled ? validateTableAction(row, firstAction) : false\"\n (click)=\"executeTableAction(row, firstAction)\"\n >\n <po-icon *ngIf=\"firstAction.icon\" class=\"po-table-single-action-content\" [p-icon]=\"firstAction.icon\"></po-icon>\n {{ firstAction.label }}\n </div>\n </td>\n\n <td *ngIf=\"visibleActions.length > 1\" class=\"po-table-column-actions\">\n <span #popupTarget class=\"po-icon po-icon-more po-clickable\" (click)=\"togglePopup(row, popupTarget)\"></span>\n </td>\n</ng-template>\n\n<po-table-column-manager\n *ngIf=\"!hideColumnsManager\"\n [p-columns]=\"columns\"\n [p-max-columns]=\"maxColumns\"\n [p-target]=\"columnManagerTarget\"\n [p-last-visible-columns-selected]=\"lastVisibleColumnsSelected\"\n (p-visible-columns-change)=\"onVisibleColumnsChange($event)\"\n (p-change-visible-columns)=\"onChangeVisibleColumns($event)\"\n [p-columns-default]=\"initialColumns\"\n (p-initial-columns)=\"onColumnRestoreManager($event)\"\n>\n</po-table-column-manager>\n" }]
|
|
17473
17851
|
}], function () { return [{ type: PoDateService }, { type: i0.IterableDiffers }, { type: i0.Renderer2 }, { type: PoLanguageService }, { type: i0.ChangeDetectorRef }, { type: i1.DecimalPipe }, { type: i2.Router }, { type: PoTableService }]; }, { tableRowTemplate: [{
|
|
17474
17852
|
type: ContentChild,
|
|
17475
17853
|
args: [PoTableRowTemplateDirective, { static: true }]
|
|
@@ -17497,6 +17875,9 @@ PoTableComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoTableCom
|
|
|
17497
17875
|
}], poTableThead: [{
|
|
17498
17876
|
type: ViewChild,
|
|
17499
17877
|
args: ['poTableThead', { read: ElementRef, static: false }]
|
|
17878
|
+
}], poTableTbodyVirtual: [{
|
|
17879
|
+
type: ViewChild,
|
|
17880
|
+
args: ['poTableTbodyVirtual', { read: ElementRef, static: false }]
|
|
17500
17881
|
}], actionsIconElement: [{
|
|
17501
17882
|
type: ViewChildren,
|
|
17502
17883
|
args: ['actionsIconElement', { read: ElementRef }]
|
|
@@ -17522,6 +17903,7 @@ PoTableModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoTableModule
|
|
|
17522
17903
|
PoTableModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [DecimalPipe], imports: [[
|
|
17523
17904
|
CommonModule,
|
|
17524
17905
|
FormsModule,
|
|
17906
|
+
ScrollingModule,
|
|
17525
17907
|
RouterModule,
|
|
17526
17908
|
PoButtonModule,
|
|
17527
17909
|
PoCheckboxGroupModule,
|
|
@@ -17532,7 +17914,8 @@ PoTableModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [DecimalP
|
|
|
17532
17914
|
PoPopupModule,
|
|
17533
17915
|
PoTimeModule,
|
|
17534
17916
|
PoTooltipModule,
|
|
17535
|
-
PoIconModule
|
|
17917
|
+
PoIconModule,
|
|
17918
|
+
PoCheckboxModule
|
|
17536
17919
|
]] });
|
|
17537
17920
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoTableModule, [{
|
|
17538
17921
|
type: NgModule,
|
|
@@ -17540,6 +17923,7 @@ PoTableModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [DecimalP
|
|
|
17540
17923
|
imports: [
|
|
17541
17924
|
CommonModule,
|
|
17542
17925
|
FormsModule,
|
|
17926
|
+
ScrollingModule,
|
|
17543
17927
|
RouterModule,
|
|
17544
17928
|
PoButtonModule,
|
|
17545
17929
|
PoCheckboxGroupModule,
|
|
@@ -17550,7 +17934,8 @@ PoTableModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [DecimalP
|
|
|
17550
17934
|
PoPopupModule,
|
|
17551
17935
|
PoTimeModule,
|
|
17552
17936
|
PoTooltipModule,
|
|
17553
|
-
PoIconModule
|
|
17937
|
+
PoIconModule,
|
|
17938
|
+
PoCheckboxModule
|
|
17554
17939
|
],
|
|
17555
17940
|
declarations: [
|
|
17556
17941
|
PoTableComponent,
|
|
@@ -17590,6 +17975,7 @@ PoTableModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [DecimalP
|
|
|
17590
17975
|
PoTableCellTemplateDirective,
|
|
17591
17976
|
PoTableColumnTemplateDirective], imports: [CommonModule,
|
|
17592
17977
|
FormsModule,
|
|
17978
|
+
ScrollingModule,
|
|
17593
17979
|
RouterModule,
|
|
17594
17980
|
PoButtonModule,
|
|
17595
17981
|
PoCheckboxGroupModule,
|
|
@@ -17600,271 +17986,12 @@ PoTableModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [DecimalP
|
|
|
17600
17986
|
PoPopupModule,
|
|
17601
17987
|
PoTimeModule,
|
|
17602
17988
|
PoTooltipModule,
|
|
17603
|
-
PoIconModule
|
|
17989
|
+
PoIconModule,
|
|
17990
|
+
PoCheckboxModule], exports: [PoTableComponent,
|
|
17604
17991
|
PoTableRowTemplateDirective,
|
|
17605
17992
|
PoTableCellTemplateDirective,
|
|
17606
17993
|
PoTableColumnTemplateDirective] }); })();
|
|
17607
17994
|
|
|
17608
|
-
/**
|
|
17609
|
-
* @docsPrivate
|
|
17610
|
-
*
|
|
17611
|
-
* @description
|
|
17612
|
-
*
|
|
17613
|
-
* Enum que contém os valores numéricos dos *keyCodes*.
|
|
17614
|
-
*/
|
|
17615
|
-
var PoKeyCodeEnum;
|
|
17616
|
-
(function (PoKeyCodeEnum) {
|
|
17617
|
-
/** Seta para baixo */
|
|
17618
|
-
PoKeyCodeEnum[PoKeyCodeEnum["arrowDown"] = 40] = "arrowDown";
|
|
17619
|
-
/** Seta para cima */
|
|
17620
|
-
PoKeyCodeEnum[PoKeyCodeEnum["arrowUp"] = 38] = "arrowUp";
|
|
17621
|
-
/** Backspace */
|
|
17622
|
-
PoKeyCodeEnum[PoKeyCodeEnum["backspace"] = 8] = "backspace";
|
|
17623
|
-
/** Delete */
|
|
17624
|
-
PoKeyCodeEnum[PoKeyCodeEnum["delete"] = 46] = "delete";
|
|
17625
|
-
/** Enter */
|
|
17626
|
-
PoKeyCodeEnum[PoKeyCodeEnum["enter"] = 13] = "enter";
|
|
17627
|
-
/** Esc */
|
|
17628
|
-
PoKeyCodeEnum[PoKeyCodeEnum["esc"] = 27] = "esc";
|
|
17629
|
-
/** Tecla K */
|
|
17630
|
-
PoKeyCodeEnum[PoKeyCodeEnum["keyK"] = 75] = "keyK";
|
|
17631
|
-
/** Tecla L */
|
|
17632
|
-
PoKeyCodeEnum[PoKeyCodeEnum["keyL"] = 76] = "keyL";
|
|
17633
|
-
/** Espaço */
|
|
17634
|
-
PoKeyCodeEnum[PoKeyCodeEnum["space"] = 32] = "space";
|
|
17635
|
-
/** Tab */
|
|
17636
|
-
PoKeyCodeEnum[PoKeyCodeEnum["tab"] = 9] = "tab";
|
|
17637
|
-
})(PoKeyCodeEnum || (PoKeyCodeEnum = {}));
|
|
17638
|
-
|
|
17639
|
-
/**
|
|
17640
|
-
* @description
|
|
17641
|
-
*
|
|
17642
|
-
* O componente `po-checkbox` exibe uma caixa de opção com um texto ao lado, na qual é possível marcar e desmarcar através tanto
|
|
17643
|
-
* no *click* do *mouse* quanto por meio da tecla *space* quando estiver com foco.
|
|
17644
|
-
*
|
|
17645
|
-
* Cada opção poderá receber um estado de marcado, desmarcado, indeterminado/mixed e desabilitado, como também uma ação que será disparada quando
|
|
17646
|
-
* ocorrer mudanças do valor.
|
|
17647
|
-
*
|
|
17648
|
-
* > O *model* deste componente aceitará valores igual à `true`, `false` ou `null` para quando for indeterminado/mixed.
|
|
17649
|
-
*
|
|
17650
|
-
* **Acessibilidade tratada no componente:**
|
|
17651
|
-
*
|
|
17652
|
-
* Algumas diretrizes de acessibilidade já são tratadas no componente, internamente, e não podem ser alteradas pelo proprietário do conteúdo. São elas:
|
|
17653
|
-
*
|
|
17654
|
-
* - O componente foi desenvolvido utilizando controles padrões HTML para permitir a identificação do mesmo na interface por tecnologias assistivas. [WCAG 4.1.2: Name, Role, Value](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value)
|
|
17655
|
-
* - A área do foco precisar ter uma espessura de pelo menos 2 pixels CSS e o foco não pode ficar escondido por outros elementos da tela. [WCAG 2.4.12: Focus Appearance](https://www.w3.org/WAI/WCAG22/Understanding/focus-appearance-enhanced)
|
|
17656
|
-
* - A cor não deve ser o único meio para diferenciar o componente do seu estado marcado e desmarcado. [WGAG 1.4.1: Use of Color, 3.2.4: Consistent Identification](https://www.w3.org/WAI/WCAG21/Understanding/use-of-color)
|
|
17657
|
-
*/
|
|
17658
|
-
class PoCheckboxBaseComponent {
|
|
17659
|
-
constructor() {
|
|
17660
|
-
/**
|
|
17661
|
-
* @optional
|
|
17662
|
-
*
|
|
17663
|
-
* @description
|
|
17664
|
-
*
|
|
17665
|
-
* Aplica foco no elemento ao ser iniciado.
|
|
17666
|
-
*
|
|
17667
|
-
* > Caso mais de um elemento seja configurado com essa propriedade, apenas o último elemento declarado com ela terá o foco.
|
|
17668
|
-
*
|
|
17669
|
-
* @default `false`
|
|
17670
|
-
*/
|
|
17671
|
-
this.autoFocus = false;
|
|
17672
|
-
/**
|
|
17673
|
-
* @optional
|
|
17674
|
-
*
|
|
17675
|
-
* @description
|
|
17676
|
-
*
|
|
17677
|
-
* Evento disparado quando o valor do *checkbox* for alterado.
|
|
17678
|
-
*/
|
|
17679
|
-
this.change = new EventEmitter();
|
|
17680
|
-
this.id = uuid();
|
|
17681
|
-
this._disabled = false;
|
|
17682
|
-
}
|
|
17683
|
-
/**
|
|
17684
|
-
* @optional
|
|
17685
|
-
*
|
|
17686
|
-
* @description
|
|
17687
|
-
*
|
|
17688
|
-
* Define o estado do *checkbox* como desabilitado.
|
|
17689
|
-
*
|
|
17690
|
-
* @default `false`
|
|
17691
|
-
*/
|
|
17692
|
-
set disabled(value) {
|
|
17693
|
-
this._disabled = convertToBoolean(value);
|
|
17694
|
-
}
|
|
17695
|
-
get disabled() {
|
|
17696
|
-
return this._disabled;
|
|
17697
|
-
}
|
|
17698
|
-
changeValue() {
|
|
17699
|
-
if (this.propagateChange) {
|
|
17700
|
-
this.propagateChange(this.checkboxValue);
|
|
17701
|
-
}
|
|
17702
|
-
this.change.emit(this.checkboxValue);
|
|
17703
|
-
}
|
|
17704
|
-
checkOption(value) {
|
|
17705
|
-
if (!this.disabled) {
|
|
17706
|
-
value === 'mixed' ? this.changeModelValue(true) : this.changeModelValue(!value);
|
|
17707
|
-
this.changeValue();
|
|
17708
|
-
}
|
|
17709
|
-
}
|
|
17710
|
-
// Função implementada do ControlValueAccessor
|
|
17711
|
-
// Usada para interceptar os estados de habilitado via forms api
|
|
17712
|
-
setDisabledState(isDisabled) {
|
|
17713
|
-
this.disabled = isDisabled;
|
|
17714
|
-
}
|
|
17715
|
-
registerOnChange(fn) {
|
|
17716
|
-
this.propagateChange = fn;
|
|
17717
|
-
}
|
|
17718
|
-
registerOnTouched(fn) {
|
|
17719
|
-
this.onTouched = fn;
|
|
17720
|
-
}
|
|
17721
|
-
writeValue(value) {
|
|
17722
|
-
if (value !== this.checkboxValue) {
|
|
17723
|
-
this.changeModelValue(value);
|
|
17724
|
-
}
|
|
17725
|
-
}
|
|
17726
|
-
}
|
|
17727
|
-
PoCheckboxBaseComponent.ɵfac = function PoCheckboxBaseComponent_Factory(t) { return new (t || PoCheckboxBaseComponent)(); };
|
|
17728
|
-
PoCheckboxBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoCheckboxBaseComponent, inputs: { name: "name", autoFocus: ["p-auto-focus", "autoFocus"], label: ["p-label", "label"], disabled: ["p-disabled", "disabled"] }, outputs: { change: "p-change" } });
|
|
17729
|
-
__decorate([
|
|
17730
|
-
InputBoolean()
|
|
17731
|
-
], PoCheckboxBaseComponent.prototype, "autoFocus", void 0);
|
|
17732
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxBaseComponent, [{
|
|
17733
|
-
type: Directive
|
|
17734
|
-
}], null, { name: [{
|
|
17735
|
-
type: Input,
|
|
17736
|
-
args: ['name']
|
|
17737
|
-
}], autoFocus: [{
|
|
17738
|
-
type: Input,
|
|
17739
|
-
args: ['p-auto-focus']
|
|
17740
|
-
}], label: [{
|
|
17741
|
-
type: Input,
|
|
17742
|
-
args: ['p-label']
|
|
17743
|
-
}], change: [{
|
|
17744
|
-
type: Output,
|
|
17745
|
-
args: ['p-change']
|
|
17746
|
-
}], disabled: [{
|
|
17747
|
-
type: Input,
|
|
17748
|
-
args: ['p-disabled']
|
|
17749
|
-
}] }); })();
|
|
17750
|
-
|
|
17751
|
-
const _c0$V = ["checkboxLabel"];
|
|
17752
|
-
/**
|
|
17753
|
-
* @docsExtends PoCheckboxBaseComponent
|
|
17754
|
-
*
|
|
17755
|
-
* @example
|
|
17756
|
-
*
|
|
17757
|
-
* <example name="po-checkbox-basic" title="PO Checkbox Basic">
|
|
17758
|
-
* <file name="sample-po-checkbox-basic/sample-po-checkbox-basic.component.html"> </file>
|
|
17759
|
-
* <file name="sample-po-checkbox-basic/sample-po-checkbox-basic.component.ts"> </file>
|
|
17760
|
-
* </example>
|
|
17761
|
-
*
|
|
17762
|
-
* <example name="po-checkbox-labs" title="PO Checkbox Labs">
|
|
17763
|
-
* <file name="sample-po-checkbox-labs/sample-po-checkbox-labs.component.html"> </file>
|
|
17764
|
-
* <file name="sample-po-checkbox-labs/sample-po-checkbox-labs.component.ts"> </file>
|
|
17765
|
-
* </example>
|
|
17766
|
-
*
|
|
17767
|
-
* <example name="po-checkbox-acceptance-term" title="PO Checkbox - Acceptance Term">
|
|
17768
|
-
* <file name="sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.html"> </file>
|
|
17769
|
-
* <file name="sample-po-checkbox-acceptance-term/sample-po-checkbox-acceptance-term.component.ts"> </file>
|
|
17770
|
-
* </example>
|
|
17771
|
-
*/
|
|
17772
|
-
class PoCheckboxComponent extends PoCheckboxBaseComponent {
|
|
17773
|
-
constructor(changeDetector) {
|
|
17774
|
-
super();
|
|
17775
|
-
this.changeDetector = changeDetector;
|
|
17776
|
-
}
|
|
17777
|
-
/**
|
|
17778
|
-
* Função que atribui foco ao *checkbox*.
|
|
17779
|
-
*
|
|
17780
|
-
* Para utilizá-la é necessário capturar a referência do componente no DOM através do `ViewChild`, como por exemplo:
|
|
17781
|
-
*
|
|
17782
|
-
* ```
|
|
17783
|
-
* ...
|
|
17784
|
-
* import { ViewChild } from '@angular/core';
|
|
17785
|
-
* import { PoCheckboxComponent } from '@po-ui/ng-components';
|
|
17786
|
-
*
|
|
17787
|
-
* ...
|
|
17788
|
-
*
|
|
17789
|
-
* @ViewChild(PoCheckboxComponent, { static: true }) checkbox: PoCheckboxComponent;
|
|
17790
|
-
*
|
|
17791
|
-
* focusCheckbox() {
|
|
17792
|
-
* this.checkbox.focus();
|
|
17793
|
-
* }
|
|
17794
|
-
* ```
|
|
17795
|
-
*/
|
|
17796
|
-
focus() {
|
|
17797
|
-
if (this.checkboxLabel && !this.disabled) {
|
|
17798
|
-
this.checkboxLabel.nativeElement.focus();
|
|
17799
|
-
}
|
|
17800
|
-
}
|
|
17801
|
-
onBlur() {
|
|
17802
|
-
this.onTouched?.();
|
|
17803
|
-
}
|
|
17804
|
-
ngAfterViewInit() {
|
|
17805
|
-
if (this.autoFocus) {
|
|
17806
|
-
this.focus();
|
|
17807
|
-
}
|
|
17808
|
-
}
|
|
17809
|
-
onKeyDown(event, value) {
|
|
17810
|
-
if (event.which === PoKeyCodeEnum.space || event.keyCode === PoKeyCodeEnum.space) {
|
|
17811
|
-
this.checkOption(value);
|
|
17812
|
-
event.preventDefault();
|
|
17813
|
-
}
|
|
17814
|
-
}
|
|
17815
|
-
changeModelValue(value) {
|
|
17816
|
-
if (value === null) {
|
|
17817
|
-
this.checkboxValue = 'mixed';
|
|
17818
|
-
}
|
|
17819
|
-
else {
|
|
17820
|
-
this.checkboxValue = typeof value === 'boolean' || value === null ? value : false;
|
|
17821
|
-
}
|
|
17822
|
-
this.changeDetector.detectChanges();
|
|
17823
|
-
}
|
|
17824
|
-
}
|
|
17825
|
-
PoCheckboxComponent.ɵfac = function PoCheckboxComponent_Factory(t) { return new (t || PoCheckboxComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
17826
|
-
PoCheckboxComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoCheckboxComponent, selectors: [["po-checkbox"]], viewQuery: function PoCheckboxComponent_Query(rf, ctx) { if (rf & 1) {
|
|
17827
|
-
i0.ɵɵviewQuery(_c0$V, 7);
|
|
17828
|
-
} if (rf & 2) {
|
|
17829
|
-
let _t;
|
|
17830
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.checkboxLabel = _t.first);
|
|
17831
|
-
} }, features: [i0.ɵɵProvidersFeature([
|
|
17832
|
-
{
|
|
17833
|
-
provide: NG_VALUE_ACCESSOR,
|
|
17834
|
-
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
17835
|
-
multi: true
|
|
17836
|
-
}
|
|
17837
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 8, consts: [[1, "container-po-checkbox", 3, "click", "keydown"], ["role", "checkbox", 1, "po-checkbox", 3, "id", "tabindex"], ["tabindex", "-1", 1, "po-checkbox-label", 3, "for"], ["checkboxLabel", ""]], template: function PoCheckboxComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17838
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
17839
|
-
i0.ɵɵlistener("click", function PoCheckboxComponent_Template_div_click_0_listener() { return ctx.checkOption(ctx.checkboxValue); })("keydown", function PoCheckboxComponent_Template_div_keydown_0_listener($event) { return ctx.onKeyDown($event, ctx.checkboxValue); });
|
|
17840
|
-
i0.ɵɵelement(1, "span", 1);
|
|
17841
|
-
i0.ɵɵelementStart(2, "label", 2, 3);
|
|
17842
|
-
i0.ɵɵtext(4);
|
|
17843
|
-
i0.ɵɵelementEnd()();
|
|
17844
|
-
} if (rf & 2) {
|
|
17845
|
-
i0.ɵɵattribute("checked", ctx.checkboxValue);
|
|
17846
|
-
i0.ɵɵadvance(1);
|
|
17847
|
-
i0.ɵɵproperty("id", ctx.id)("tabindex", ctx.disabled ? -1 : 0);
|
|
17848
|
-
i0.ɵɵattribute("aria-checked", ctx.checkboxValue)("aria-label", ctx.label)("aria-disabled", ctx.disabled);
|
|
17849
|
-
i0.ɵɵadvance(1);
|
|
17850
|
-
i0.ɵɵproperty("for", ctx.id);
|
|
17851
|
-
i0.ɵɵadvance(2);
|
|
17852
|
-
i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
17853
|
-
} }, encapsulation: 2, changeDetection: 0 });
|
|
17854
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoCheckboxComponent, [{
|
|
17855
|
-
type: Component,
|
|
17856
|
-
args: [{ selector: 'po-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
17857
|
-
{
|
|
17858
|
-
provide: NG_VALUE_ACCESSOR,
|
|
17859
|
-
useExisting: forwardRef(() => PoCheckboxComponent),
|
|
17860
|
-
multi: true
|
|
17861
|
-
}
|
|
17862
|
-
], template: "<div\n class=\"container-po-checkbox\"\n [attr.checked]=\"checkboxValue\"\n (click)=\"checkOption(checkboxValue)\"\n (keydown)=\"onKeyDown($event, checkboxValue)\"\n>\n <span\n [attr.aria-checked]=\"checkboxValue\"\n [attr.aria-label]=\"label\"\n [id]=\"id\"\n class=\"po-checkbox\"\n role=\"checkbox\"\n [attr.aria-disabled]=\"disabled\"\n [tabindex]=\"disabled ? -1 : 0\"\n >\n </span>\n\n <label #checkboxLabel [for]=\"id\" class=\"po-checkbox-label\" tabindex=\"-1\">\n {{ label }}\n </label>\n</div>\n" }]
|
|
17863
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { checkboxLabel: [{
|
|
17864
|
-
type: ViewChild,
|
|
17865
|
-
args: ['checkboxLabel', { static: true }]
|
|
17866
|
-
}] }); })();
|
|
17867
|
-
|
|
17868
17995
|
/**
|
|
17869
17996
|
* @usedBy PoComboComponent
|
|
17870
17997
|
*
|
|
@@ -18498,6 +18625,7 @@ class PoComboBaseComponent {
|
|
|
18498
18625
|
this.callModelChange(value);
|
|
18499
18626
|
this.updateSelectedValue(null);
|
|
18500
18627
|
this.updateComboList();
|
|
18628
|
+
this.initInputObservable();
|
|
18501
18629
|
}
|
|
18502
18630
|
configAfterSetFilterService(service) {
|
|
18503
18631
|
if (service) {
|
|
@@ -27243,9 +27371,11 @@ PoUploadDragDropAreaOverlayComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponen
|
|
|
27243
27371
|
* Cada um destes métodos recebe como parâmetro o objeto `PoNotification` que contém os dados da mensagem e o
|
|
27244
27372
|
* objeto ViewContainerRef que é a representação do container do componente onde será criada a notificação.
|
|
27245
27373
|
*
|
|
27246
|
-
* Estas notificações serão exibidas durante
|
|
27374
|
+
* Estas notificações serão exibidas durante 9 segundos por padrão, podendo ser alterada conforme necessidade.
|
|
27247
27375
|
* Após este tempo a mesma é removida automaticamente.
|
|
27248
27376
|
*
|
|
27377
|
+
* Notificações com ação ou notificações de `erro` permanecerão em tela até o usuário fecha-lá ou clicar na ação.
|
|
27378
|
+
*
|
|
27249
27379
|
* O serviço possui um limite de até 5 notificações por vez, a partir do sexto a primeira notificação será removida dando lugar a nova.
|
|
27250
27380
|
*
|
|
27251
27381
|
*/
|
|
@@ -27256,7 +27386,7 @@ class PoNotificationBaseService {
|
|
|
27256
27386
|
// Array responsável por guardar a instância de po-toaster's inferiores.
|
|
27257
27387
|
this.stackBottom = [];
|
|
27258
27388
|
// Duração da notificação ativa.
|
|
27259
|
-
this.defaultDuration =
|
|
27389
|
+
this.defaultDuration = 9000;
|
|
27260
27390
|
}
|
|
27261
27391
|
/**
|
|
27262
27392
|
* Emite uma notificação de sucesso.
|
|
@@ -27293,7 +27423,7 @@ class PoNotificationBaseService {
|
|
|
27293
27423
|
/**
|
|
27294
27424
|
* Define em milissegundos a duração padrão para as notificações.
|
|
27295
27425
|
*
|
|
27296
|
-
* > Padrão
|
|
27426
|
+
* > Padrão 9 segundos.
|
|
27297
27427
|
*
|
|
27298
27428
|
* @param {number} defaultDuration Duração em milisegundos
|
|
27299
27429
|
*/
|
|
@@ -27375,7 +27505,7 @@ class PoNotificationService extends PoNotificationBaseService {
|
|
|
27375
27505
|
stack.push(componentRef);
|
|
27376
27506
|
this.verifyLimitToaster(stack);
|
|
27377
27507
|
this.observableOnClose(componentRef);
|
|
27378
|
-
if (!(toaster.action && toaster.actionLabel)) {
|
|
27508
|
+
if (!((toaster.action && toaster.actionLabel) || toaster.type === PoToasterType.Error)) {
|
|
27379
27509
|
timer(toaster.duration)
|
|
27380
27510
|
.pipe(takeWhile(() => componentRef.instance.alive))
|
|
27381
27511
|
.subscribe(() => {
|
|
@@ -28199,7 +28329,7 @@ PoUploadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUploadC
|
|
|
28199
28329
|
useExisting: forwardRef(() => PoUploadComponent),
|
|
28200
28330
|
multi: true
|
|
28201
28331
|
}
|
|
28202
|
-
]), i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 13, consts: [[3, "p-label", "p-help", "p-optional"], [1, "po-upload"], ["type", "file", 1, "po-upload-input", 3, "accept", "disabled", "multiple", "required", "change"], ["inputFile", ""], [3, "p-directory-compatible", "p-disabled", "p-drag-drop-height", "p-literals", "p-file-change", "p-select-files", 4, "ngIf"], ["class", "po-upload-button", "for", "file", 3, "p-disabled", "p-label", "p-click", 4, "ngIf"], ["class", "po-upload-file-restrictions", 3, "ngClass", "p-allowed-extensions", "p-max-files", "p-max-file-size", "p-min-file-size", 4, "ngIf"], ["class", "po-upload-progress-container", 4, "ngIf"], ["class", "po-upload-send-button", "p-
|
|
28332
|
+
]), i0.ɵɵInheritDefinitionFeature], decls: 9, vars: 13, consts: [[3, "p-label", "p-help", "p-optional"], [1, "po-upload"], ["type", "file", 1, "po-upload-input", 3, "accept", "disabled", "multiple", "required", "change"], ["inputFile", ""], [3, "p-directory-compatible", "p-disabled", "p-drag-drop-height", "p-literals", "p-file-change", "p-select-files", 4, "ngIf"], ["class", "po-upload-button", "for", "file", 3, "p-disabled", "p-label", "p-click", 4, "ngIf"], ["class", "po-upload-file-restrictions", 3, "ngClass", "p-allowed-extensions", "p-max-files", "p-max-file-size", "p-min-file-size", 4, "ngIf"], ["class", "po-upload-progress-container", 4, "ngIf"], ["class", "po-upload-send-button", "p-kind", "primary", 3, "po-mt-3", "p-disabled", "p-label", "p-click", 4, "ngIf"], [3, "p-directory-compatible", "p-disabled", "p-drag-drop-height", "p-literals", "p-file-change", "p-select-files"], ["for", "file", 1, "po-upload-button", 3, "p-disabled", "p-label", "p-click"], ["uploadButton", ""], [1, "po-upload-file-restrictions", 3, "ngClass", "p-allowed-extensions", "p-max-files", "p-max-file-size", "p-min-file-size"], [1, "po-upload-progress-container"], ["p-no-shadow", "", 3, "p-height", "p-no-border", "p-no-padding"], [3, "ngClass"], [3, "p-info", "p-info-icon", "p-status", "p-text", "p-value", "p-cancel", "p-retry", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "p-info", "p-info-icon", "p-status", "p-text", "p-value", "p-cancel", "p-retry"], ["p-kind", "primary", 1, "po-upload-send-button", 3, "p-disabled", "p-label", "p-click"]], template: function PoUploadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
28203
28333
|
i0.ɵɵelementStart(0, "po-field-container", 0)(1, "div", 1)(2, "input", 2, 3);
|
|
28204
28334
|
i0.ɵɵlistener("change", function PoUploadComponent_Template_input_change_2_listener($event) { return ctx.onFileChange($event); });
|
|
28205
28335
|
i0.ɵɵelementEnd();
|
|
@@ -28240,7 +28370,7 @@ PoUploadComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoUploadC
|
|
|
28240
28370
|
useExisting: forwardRef(() => PoUploadComponent),
|
|
28241
28371
|
multi: true
|
|
28242
28372
|
}
|
|
28243
|
-
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-upload\">\n <input\n #inputFile\n class=\"po-upload-input\"\n type=\"file\"\n [accept]=\"allowedExtensions\"\n [attr.name]=\"name\"\n [disabled]=\"isDisabled\"\n [multiple]=\"isMultiple\"\n [required]=\"required\"\n (change)=\"onFileChange($event)\"\n />\n\n <po-upload-drag-drop\n *ngIf=\"displayDragDrop\"\n [p-directory-compatible]=\"canHandleDirectory\"\n [p-disabled]=\"isDisabled\"\n [p-drag-drop-height]=\"dragDropHeight\"\n [p-literals]=\"literals\"\n (p-file-change)=\"onFileChangeDragDrop($event)\"\n (p-select-files)=\"selectFiles()\"\n >\n </po-upload-drag-drop>\n\n <po-button\n *ngIf=\"!hideSelectButton && !displayDragDrop\"\n #uploadButton\n class=\"po-upload-button\"\n for=\"file\"\n [p-disabled]=\"isDisabled\"\n [p-label]=\"selectFileButtonLabel\"\n (p-click)=\"selectFiles()\"\n >\n </po-button>\n\n <po-upload-file-restrictions\n *ngIf=\"fileRestrictions && !hideRestrictionsInfo\"\n class=\"po-upload-file-restrictions\"\n [ngClass]=\"{ 'po-upload-file-restrictions-drag-drop': displayDragDrop }\"\n [p-allowed-extensions]=\"fileRestrictions?.allowedExtensions\"\n [p-max-files]=\"maxFiles\"\n [p-max-file-size]=\"fileRestrictions?.maxFileSize\"\n [p-min-file-size]=\"fileRestrictions?.minFileSize\"\n >\n </po-upload-file-restrictions>\n\n <div *ngIf=\"currentFiles && currentFiles.length\" class=\"po-upload-progress-container\">\n <po-container\n p-no-shadow\n [p-height]=\"hasMoreThanFourItems ? 280 : 'auto'\"\n [p-no-border]=\"!hasMoreThanFourItems\"\n [p-no-padding]=\"!hasMoreThanFourItems\"\n >\n <div [ngClass]=\"{ 'po-upload-progress-container-area po-pt-2 po-pl-1': hasMoreThanFourItems }\">\n <po-progress\n *ngFor=\"let file of currentFiles; trackBy: trackByFn\"\n [p-info]=\"infoByUploadStatus[file.status]?.text(file.percent)\"\n [p-info-icon]=\"infoByUploadStatus[file.status]?.icon\"\n [p-status]=\"progressStatusByFileStatus[file.status]\"\n [p-text]=\"file.displayName\"\n [p-value]=\"file.percent\"\n (p-cancel)=\"cancel(file)\"\n (p-retry)=\"uploadFiles([file])\"\n >\n </po-progress>\n </div>\n </po-container>\n </div>\n\n <po-button\n *ngIf=\"displaySendButton\"\n class=\"po-upload-send-button\"\n [class.po-mt-3]=\"hasMoreThanFourItems\"\n p-
|
|
28373
|
+
], template: "<po-field-container [p-label]=\"label\" [p-help]=\"help\" [p-optional]=\"!required && optional\">\n <div class=\"po-upload\">\n <input\n #inputFile\n class=\"po-upload-input\"\n type=\"file\"\n [accept]=\"allowedExtensions\"\n [attr.name]=\"name\"\n [disabled]=\"isDisabled\"\n [multiple]=\"isMultiple\"\n [required]=\"required\"\n (change)=\"onFileChange($event)\"\n />\n\n <po-upload-drag-drop\n *ngIf=\"displayDragDrop\"\n [p-directory-compatible]=\"canHandleDirectory\"\n [p-disabled]=\"isDisabled\"\n [p-drag-drop-height]=\"dragDropHeight\"\n [p-literals]=\"literals\"\n (p-file-change)=\"onFileChangeDragDrop($event)\"\n (p-select-files)=\"selectFiles()\"\n >\n </po-upload-drag-drop>\n\n <po-button\n *ngIf=\"!hideSelectButton && !displayDragDrop\"\n #uploadButton\n class=\"po-upload-button\"\n for=\"file\"\n [p-disabled]=\"isDisabled\"\n [p-label]=\"selectFileButtonLabel\"\n (p-click)=\"selectFiles()\"\n >\n </po-button>\n\n <po-upload-file-restrictions\n *ngIf=\"fileRestrictions && !hideRestrictionsInfo\"\n class=\"po-upload-file-restrictions\"\n [ngClass]=\"{ 'po-upload-file-restrictions-drag-drop': displayDragDrop }\"\n [p-allowed-extensions]=\"fileRestrictions?.allowedExtensions\"\n [p-max-files]=\"maxFiles\"\n [p-max-file-size]=\"fileRestrictions?.maxFileSize\"\n [p-min-file-size]=\"fileRestrictions?.minFileSize\"\n >\n </po-upload-file-restrictions>\n\n <div *ngIf=\"currentFiles && currentFiles.length\" class=\"po-upload-progress-container\">\n <po-container\n p-no-shadow\n [p-height]=\"hasMoreThanFourItems ? 280 : 'auto'\"\n [p-no-border]=\"!hasMoreThanFourItems\"\n [p-no-padding]=\"!hasMoreThanFourItems\"\n >\n <div [ngClass]=\"{ 'po-upload-progress-container-area po-pt-2 po-pl-1': hasMoreThanFourItems }\">\n <po-progress\n *ngFor=\"let file of currentFiles; trackBy: trackByFn\"\n [p-info]=\"infoByUploadStatus[file.status]?.text(file.percent)\"\n [p-info-icon]=\"infoByUploadStatus[file.status]?.icon\"\n [p-status]=\"progressStatusByFileStatus[file.status]\"\n [p-text]=\"file.displayName\"\n [p-value]=\"file.percent\"\n (p-cancel)=\"cancel(file)\"\n (p-retry)=\"uploadFiles([file])\"\n >\n </po-progress>\n </div>\n </po-container>\n </div>\n\n <po-button\n *ngIf=\"displaySendButton\"\n class=\"po-upload-send-button\"\n [class.po-mt-3]=\"hasMoreThanFourItems\"\n p-kind=\"primary\"\n [p-disabled]=\"hasAnyFileUploading(currentFiles)\"\n [p-label]=\"literals.startSending\"\n (p-click)=\"uploadFiles(currentFiles)\"\n >\n </po-button>\n </div>\n</po-field-container>\n" }]
|
|
28244
28374
|
}], function () { return [{ type: PoUploadService }, { type: i0.Renderer2 }, { type: PoI18nPipe }, { type: PoNotificationService }, { type: i0.ChangeDetectorRef }, { type: PoLanguageService }]; }, { inputFile: [{
|
|
28245
28375
|
type: ViewChild,
|
|
28246
28376
|
args: ['inputFile', { read: ElementRef, static: true }]
|
|
@@ -31375,11 +31505,13 @@ PoFieldModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [], impor
|
|
|
31375
31505
|
PoServicesModule,
|
|
31376
31506
|
PoTableModule,
|
|
31377
31507
|
PoTooltipModule,
|
|
31378
|
-
PoIconModule
|
|
31508
|
+
PoIconModule,
|
|
31509
|
+
PoCheckboxModule
|
|
31379
31510
|
], PoCheckboxGroupModule,
|
|
31380
31511
|
PoCleanModule,
|
|
31381
31512
|
PoDatepickerModule,
|
|
31382
|
-
PoFieldContainerModule
|
|
31513
|
+
PoFieldContainerModule,
|
|
31514
|
+
PoCheckboxModule] });
|
|
31383
31515
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoFieldModule, [{
|
|
31384
31516
|
type: NgModule,
|
|
31385
31517
|
args: [{
|
|
@@ -31403,13 +31535,13 @@ PoFieldModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [], impor
|
|
|
31403
31535
|
PoServicesModule,
|
|
31404
31536
|
PoTableModule,
|
|
31405
31537
|
PoTooltipModule,
|
|
31406
|
-
PoIconModule
|
|
31538
|
+
PoIconModule,
|
|
31539
|
+
PoCheckboxModule
|
|
31407
31540
|
],
|
|
31408
31541
|
exports: [
|
|
31409
31542
|
PoCheckboxGroupModule,
|
|
31410
31543
|
PoCleanModule,
|
|
31411
31544
|
PoDatepickerModule,
|
|
31412
|
-
PoCheckboxComponent,
|
|
31413
31545
|
PoComboComponent,
|
|
31414
31546
|
PoComboOptionTemplateDirective,
|
|
31415
31547
|
PoDecimalComponent,
|
|
@@ -31430,10 +31562,10 @@ PoFieldModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [], impor
|
|
|
31430
31562
|
PoSwitchComponent,
|
|
31431
31563
|
PoTextareaComponent,
|
|
31432
31564
|
PoUploadComponent,
|
|
31433
|
-
PoUrlComponent
|
|
31565
|
+
PoUrlComponent,
|
|
31566
|
+
PoCheckboxModule
|
|
31434
31567
|
],
|
|
31435
31568
|
declarations: [
|
|
31436
|
-
PoCheckboxComponent,
|
|
31437
31569
|
PoComboComponent,
|
|
31438
31570
|
PoComboOptionTemplateDirective,
|
|
31439
31571
|
PoDecimalComponent,
|
|
@@ -31470,8 +31602,7 @@ PoFieldModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [], impor
|
|
|
31470
31602
|
providers: []
|
|
31471
31603
|
}]
|
|
31472
31604
|
}], null, null); })();
|
|
31473
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoFieldModule, { declarations: [
|
|
31474
|
-
PoComboComponent,
|
|
31605
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoFieldModule, { declarations: [PoComboComponent,
|
|
31475
31606
|
PoComboOptionTemplateDirective,
|
|
31476
31607
|
PoDecimalComponent,
|
|
31477
31608
|
PoDatepickerRangeComponent,
|
|
@@ -31521,10 +31652,10 @@ PoFieldModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [], impor
|
|
|
31521
31652
|
PoServicesModule,
|
|
31522
31653
|
PoTableModule,
|
|
31523
31654
|
PoTooltipModule,
|
|
31524
|
-
PoIconModule
|
|
31655
|
+
PoIconModule,
|
|
31656
|
+
PoCheckboxModule], exports: [PoCheckboxGroupModule,
|
|
31525
31657
|
PoCleanModule,
|
|
31526
31658
|
PoDatepickerModule,
|
|
31527
|
-
PoCheckboxComponent,
|
|
31528
31659
|
PoComboComponent,
|
|
31529
31660
|
PoComboOptionTemplateDirective,
|
|
31530
31661
|
PoDecimalComponent,
|
|
@@ -31545,7 +31676,8 @@ PoFieldModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [], impor
|
|
|
31545
31676
|
PoSwitchComponent,
|
|
31546
31677
|
PoTextareaComponent,
|
|
31547
31678
|
PoUploadComponent,
|
|
31548
|
-
PoUrlComponent
|
|
31679
|
+
PoUrlComponent,
|
|
31680
|
+
PoCheckboxModule] }); })();
|
|
31549
31681
|
i0.ɵɵsetComponentScope(PoMultiselectComponent, [PoFieldContainerComponent, i1.NgIf, i1.NgForOf, PoDisclaimerComponent, i1.NgClass, PoMultiselectDropdownComponent, PoFieldContainerBottomComponent], []);
|
|
31550
31682
|
i0.ɵɵsetComponentScope(PoMultiselectDropdownComponent, [i1.NgIf, PoMultiselectSearchComponent, PoLoadingComponent, PoMultiselectItemComponent, i1.NgForOf], []);
|
|
31551
31683
|
|
|
@@ -32118,18 +32250,25 @@ PoTagModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [], imports
|
|
|
32118
32250
|
}], null, null); })();
|
|
32119
32251
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoTagModule, { declarations: [PoTagComponent], imports: [CommonModule, PoIconModule], exports: [PoTagComponent] }); })();
|
|
32120
32252
|
|
|
32121
|
-
function getGridColumnsClasses(
|
|
32253
|
+
function getGridColumnsClasses(gridColumns, offsetColumns, grid, offset, pull) {
|
|
32122
32254
|
const systemGrid = {
|
|
32123
|
-
|
|
32124
|
-
|
|
32125
|
-
|
|
32126
|
-
|
|
32127
|
-
|
|
32128
|
-
|
|
32129
|
-
|
|
32130
|
-
|
|
32255
|
+
gridSm: grid?.smGrid || gridColumns || 12,
|
|
32256
|
+
gridMd: grid?.mdGrid || gridColumns || 6,
|
|
32257
|
+
gridLg: grid?.lgGrid || gridColumns || 4,
|
|
32258
|
+
gridXl: grid?.xlGrid || gridColumns || 3,
|
|
32259
|
+
offsetSm: offset?.smOffset || offsetColumns || 0,
|
|
32260
|
+
offsetMd: offset?.mdOffset || offsetColumns || 0,
|
|
32261
|
+
offsetLg: offset?.lgOffset || offsetColumns || 0,
|
|
32262
|
+
offsetXl: offset?.xlOffset || offsetColumns || 0,
|
|
32263
|
+
pullSm: pull?.smPull || 0,
|
|
32264
|
+
pullMd: pull?.mdPull || 0,
|
|
32265
|
+
pullLg: pull?.lgPull || 0,
|
|
32266
|
+
pullXl: pull?.xlPull || 0
|
|
32131
32267
|
};
|
|
32132
|
-
return `po-sm-${systemGrid.
|
|
32268
|
+
return (`po-sm-${systemGrid.gridSm} po-offset-sm-${systemGrid.offsetSm} po-pull-sm-${systemGrid.pullSm} ` +
|
|
32269
|
+
`po-md-${systemGrid.gridMd} po-offset-md-${systemGrid.offsetMd} po-pull-md-${systemGrid.pullMd} ` +
|
|
32270
|
+
`po-lg-${systemGrid.gridLg} po-offset-lg-${systemGrid.offsetLg} po-pull-lg-${systemGrid.pullLg} ` +
|
|
32271
|
+
`po-xl-${systemGrid.gridXl} po-offset-xl-${systemGrid.offsetXl} po-pull-xl-${systemGrid.pullXl}`);
|
|
32133
32272
|
}
|
|
32134
32273
|
function isVisibleField(field) {
|
|
32135
32274
|
const containsVisible = 'visible' in field;
|
|
@@ -32226,7 +32365,17 @@ class PoDynamicFormFieldsBaseComponent {
|
|
|
32226
32365
|
const options = !!field.options ? this.convertOptions(field.options) : undefined;
|
|
32227
32366
|
const focus = this.hasFocus(field);
|
|
32228
32367
|
const type = field && field.type ? field.type.toLocaleLowerCase() : 'string';
|
|
32229
|
-
const componentClass = getGridColumnsClasses(field.
|
|
32368
|
+
const componentClass = getGridColumnsClasses(field.gridColumns, field.offsetColumns, {
|
|
32369
|
+
smGrid: field.gridSmColumns,
|
|
32370
|
+
mdGrid: field.gridMdColumns,
|
|
32371
|
+
lgGrid: field.gridLgColumns,
|
|
32372
|
+
xlGrid: field.gridXlColumns
|
|
32373
|
+
}, {
|
|
32374
|
+
smOffset: field.offsetSmColumns,
|
|
32375
|
+
mdOffset: field.offsetMdColumns,
|
|
32376
|
+
lgOffset: field.offsetLgColumns,
|
|
32377
|
+
xlOffset: field.offsetXlColumns
|
|
32378
|
+
}, {
|
|
32230
32379
|
smPull: field.gridSmPull,
|
|
32231
32380
|
mdPull: field.gridMdPull,
|
|
32232
32381
|
lgPull: field.gridLgPull,
|
|
@@ -32825,7 +32974,17 @@ class PoDynamicViewBaseComponent {
|
|
|
32825
32974
|
createField(field) {
|
|
32826
32975
|
const property = field.property;
|
|
32827
32976
|
const value = this.transformValue(field.type, this.value[property], field.format);
|
|
32828
|
-
const classesGridColumns = getGridColumnsClasses(field.
|
|
32977
|
+
const classesGridColumns = getGridColumnsClasses(field.gridColumns, field.offsetColumns, {
|
|
32978
|
+
smGrid: field.gridSmColumns,
|
|
32979
|
+
mdGrid: field.gridMdColumns,
|
|
32980
|
+
lgGrid: field.gridLgColumns,
|
|
32981
|
+
xlGrid: field.gridXlColumns
|
|
32982
|
+
}, {
|
|
32983
|
+
smOffset: field.offsetSmColumns,
|
|
32984
|
+
mdOffset: field.offsetMdColumns,
|
|
32985
|
+
lgOffset: field.offsetLgColumns,
|
|
32986
|
+
xlOffset: field.offsetXlColumns
|
|
32987
|
+
}, {
|
|
32829
32988
|
smPull: field.gridSmPull,
|
|
32830
32989
|
mdPull: field.gridMdPull,
|
|
32831
32990
|
lgPull: field.gridLgPull,
|
|
@@ -35234,7 +35393,7 @@ function PoListViewComponent_ng_container_4_div_9_po_button_1_Template(rf, ctx)
|
|
|
35234
35393
|
const action_r35 = ctx.$implicit;
|
|
35235
35394
|
const item_r7 = i0.ɵɵnextContext(2).$implicit;
|
|
35236
35395
|
const ctx_r34 = i0.ɵɵnextContext();
|
|
35237
|
-
i0.ɵɵproperty("p-disabled", ctx_r34.returnBooleanValue(action_r35, item_r7))("p-icon", action_r35.icon)("p-label", action_r35.label)("p-
|
|
35396
|
+
i0.ɵɵproperty("p-disabled", ctx_r34.returnBooleanValue(action_r35, item_r7))("p-icon", action_r35.icon)("p-label", action_r35.label)("p-kind", action_r35.type);
|
|
35238
35397
|
} }
|
|
35239
35398
|
function PoListViewComponent_ng_container_4_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
35240
35399
|
i0.ɵɵelementStart(0, "div", 30);
|
|
@@ -35451,7 +35610,7 @@ PoListViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoListV
|
|
|
35451
35610
|
} if (rf & 2) {
|
|
35452
35611
|
let _t;
|
|
35453
35612
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poPopupComponent = _t.first);
|
|
35454
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 13, consts: [["class", "po-list-view-main-header", 4, "ngIf"], [1, "po-list-view-main-content"], ["class", "po-list-view", 4, "ngIf"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-mb-2 po-text-center", 4, "ngIf"], [3, "p-actions", "p-target"], ["popup", ""], [1, "po-list-view-main-header"], [1, "po-checkbox-group-item"], [1, "po-list-view-main-select"], ["type", "checkbox", 1, "po-input", "po-checkbox-group-input"], [1, "po-checkbox-group-label", "po-list-view-selectable-label", "po-clickable", 3, "click"], [1, "po-list-view"], [1, "po-list-view-container-no-data", "po-text-center"], [1, "po-list-view-container"], [1, "po-list-view-header"], [1, "po-list-view-title", 3, "ngSwitch"], ["class", "po-list-view-select", 4, "ngIf"], ["class", "po-list-view-title-link", "target", "_blank", 3, "href", "click", 4, "ngSwitchCase"], ["class", "po-list-view-title-link", 3, "routerLink", "click", 4, "ngSwitchCase"], ["class", "po-list-view-title-no-link", 3, "po-list-view-title-link", "click", 4, "ngSwitchCase"], ["class", "po-list-view-actions", 4, "ngIf"], ["class", "po-list-view-more-actions", 4, "ngIf"], ["class", "po-list-view-content", 4, "ngIf"], ["class", "po-list-view-detail", 4, "ngIf"], ["class", "po-list-view-detail-button", 4, "ngIf"], [1, "po-list-view-select"], ["target", "_blank", 1, "po-list-view-title-link", 3, "href", "click"], [1, "po-list-view-title-link", 3, "routerLink", "click"], [1, "po-list-view-title-no-link", 3, "click"], [1, "po-list-view-actions"], ["p-small", "true", 3, "p-disabled", "p-icon", "p-label", "p-
|
|
35613
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 8, vars: 13, consts: [["class", "po-list-view-main-header", 4, "ngIf"], [1, "po-list-view-main-content"], ["class", "po-list-view", 4, "ngIf"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "po-mb-2 po-text-center", 4, "ngIf"], [3, "p-actions", "p-target"], ["popup", ""], [1, "po-list-view-main-header"], [1, "po-checkbox-group-item"], [1, "po-list-view-main-select"], ["type", "checkbox", 1, "po-input", "po-checkbox-group-input"], [1, "po-checkbox-group-label", "po-list-view-selectable-label", "po-clickable", 3, "click"], [1, "po-list-view"], [1, "po-list-view-container-no-data", "po-text-center"], [1, "po-list-view-container"], [1, "po-list-view-header"], [1, "po-list-view-title", 3, "ngSwitch"], ["class", "po-list-view-select", 4, "ngIf"], ["class", "po-list-view-title-link", "target", "_blank", 3, "href", "click", 4, "ngSwitchCase"], ["class", "po-list-view-title-link", 3, "routerLink", "click", 4, "ngSwitchCase"], ["class", "po-list-view-title-no-link", 3, "po-list-view-title-link", "click", 4, "ngSwitchCase"], ["class", "po-list-view-actions", 4, "ngIf"], ["class", "po-list-view-more-actions", 4, "ngIf"], ["class", "po-list-view-content", 4, "ngIf"], ["class", "po-list-view-detail", 4, "ngIf"], ["class", "po-list-view-detail-button", 4, "ngIf"], [1, "po-list-view-select"], ["target", "_blank", 1, "po-list-view-title-link", 3, "href", "click"], [1, "po-list-view-title-link", 3, "routerLink", "click"], [1, "po-list-view-title-no-link", 3, "click"], [1, "po-list-view-actions"], ["p-small", "true", 3, "p-disabled", "p-icon", "p-label", "p-kind", "p-click", 4, "ngFor", "ngForOf"], ["p-small", "true", 3, "p-disabled", "p-icon", "p-label", "p-kind", "p-click"], [1, "po-list-view-more-actions"], [1, "po-icon", "po-icon-more", "po-list-view-more-icon", "po-clickable", 3, "click"], ["popupTarget", ""], [1, "po-list-view-content"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [1, "po-list-view-detail"], [1, "po-list-view-detail-button"], [1, "po-clickable", 3, "click"], [1, "po-mb-2", "po-text-center"], [3, "p-disabled", "p-label", "p-click"]], template: function PoListViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
35455
35614
|
i0.ɵɵelementStart(0, "div");
|
|
35456
35615
|
i0.ɵɵtemplate(1, PoListViewComponent_div_1_Template, 6, 5, "div", 0);
|
|
35457
35616
|
i0.ɵɵelementStart(2, "div", 1);
|
|
@@ -35490,7 +35649,7 @@ PoListViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoListV
|
|
|
35490
35649
|
transition('* => void', [style({ height: '*', 'overflow-y': 'hidden' }), animate(100, style({ height: 0 }))]),
|
|
35491
35650
|
transition('void => *', [style({ height: '0' }), animate(100, style({ height: '*' }))])
|
|
35492
35651
|
])
|
|
35493
|
-
], template: "<div\n [class.po-list-view-main-container-header]=\"showHeader\"\n [class.po-list-view-main-container]=\"!showHeader\"\n [style.height.px]=\"height\"\n>\n <div *ngIf=\"showHeader\" class=\"po-list-view-main-header\">\n <div class=\"po-checkbox-group-item\">\n <div class=\"po-list-view-main-select\">\n <input\n class=\"po-input po-checkbox-group-input\"\n type=\"checkbox\"\n [class.po-checkbox-group-input-checked]=\"selectAll\"\n [class.po-checkbox-group-input-indeterminate]=\"selectAll === null\"\n />\n <label\n class=\"po-checkbox-group-label po-list-view-selectable-label po-clickable\"\n (click)=\"selectAllListItems()\"\n >\n {{ literals.selectAll }}\n </label>\n </div>\n </div>\n </div>\n\n <div class=\"po-list-view-main-content\">\n <div class=\"po-list-view\" *ngIf=\"!hasItems()\">\n <div class=\"po-list-view-container-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </div>\n </div>\n\n <ng-container *ngFor=\"let item of items; let index = index; trackBy: trackBy\">\n <div class=\"po-list-view\">\n <div class=\"po-list-view-container\">\n <div class=\"po-list-view-header\">\n <div class=\"po-list-view-title\" [ngSwitch]=\"checkTitleType(item)\">\n <div *ngIf=\"select\" class=\"po-list-view-select\">\n <input\n class=\"po-input po-checkbox-group-input\"\n type=\"checkbox\"\n [class.po-checkbox-group-input-checked]=\"item.$selected\"\n />\n <label\n class=\"po-checkbox-group-label po-list-view-selectable-label po-clickable\"\n (click)=\"selectListItem(item)\"\n ></label>\n </div>\n <a\n *ngSwitchCase=\"'externalLink'\"\n class=\"po-list-view-title-link\"\n target=\"_blank\"\n [href]=\"item[propertyLink]\"\n (click)=\"runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </a>\n <a\n *ngSwitchCase=\"'internalLink'\"\n class=\"po-list-view-title-link\"\n [routerLink]=\"item[propertyLink]\"\n (click)=\"runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </a>\n <span\n *ngSwitchCase=\"'noLink'\"\n class=\"po-list-view-title-no-link\"\n [class.po-list-view-title-link]=\"titleHasAction\"\n (click)=\"titleHasAction && runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </span>\n </div>\n\n <div *ngIf=\"showButtonsActions\" class=\"po-list-view-actions\">\n <po-button\n *ngFor=\"let action of visibleActions\"\n p-small=\"true\"\n [p-disabled]=\"returnBooleanValue(action, item)\"\n [p-icon]=\"action.icon\"\n [p-label]=\"action.label\"\n [p-
|
|
35652
|
+
], template: "<div\n [class.po-list-view-main-container-header]=\"showHeader\"\n [class.po-list-view-main-container]=\"!showHeader\"\n [style.height.px]=\"height\"\n>\n <div *ngIf=\"showHeader\" class=\"po-list-view-main-header\">\n <div class=\"po-checkbox-group-item\">\n <div class=\"po-list-view-main-select\">\n <input\n class=\"po-input po-checkbox-group-input\"\n type=\"checkbox\"\n [class.po-checkbox-group-input-checked]=\"selectAll\"\n [class.po-checkbox-group-input-indeterminate]=\"selectAll === null\"\n />\n <label\n class=\"po-checkbox-group-label po-list-view-selectable-label po-clickable\"\n (click)=\"selectAllListItems()\"\n >\n {{ literals.selectAll }}\n </label>\n </div>\n </div>\n </div>\n\n <div class=\"po-list-view-main-content\">\n <div class=\"po-list-view\" *ngIf=\"!hasItems()\">\n <div class=\"po-list-view-container-no-data po-text-center\">\n <span> {{ literals.noData }} </span>\n </div>\n </div>\n\n <ng-container *ngFor=\"let item of items; let index = index; trackBy: trackBy\">\n <div class=\"po-list-view\">\n <div class=\"po-list-view-container\">\n <div class=\"po-list-view-header\">\n <div class=\"po-list-view-title\" [ngSwitch]=\"checkTitleType(item)\">\n <div *ngIf=\"select\" class=\"po-list-view-select\">\n <input\n class=\"po-input po-checkbox-group-input\"\n type=\"checkbox\"\n [class.po-checkbox-group-input-checked]=\"item.$selected\"\n />\n <label\n class=\"po-checkbox-group-label po-list-view-selectable-label po-clickable\"\n (click)=\"selectListItem(item)\"\n ></label>\n </div>\n <a\n *ngSwitchCase=\"'externalLink'\"\n class=\"po-list-view-title-link\"\n target=\"_blank\"\n [href]=\"item[propertyLink]\"\n (click)=\"runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </a>\n <a\n *ngSwitchCase=\"'internalLink'\"\n class=\"po-list-view-title-link\"\n [routerLink]=\"item[propertyLink]\"\n (click)=\"runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </a>\n <span\n *ngSwitchCase=\"'noLink'\"\n class=\"po-list-view-title-no-link\"\n [class.po-list-view-title-link]=\"titleHasAction\"\n (click)=\"titleHasAction && runTitleAction(item)\"\n >\n {{ getItemTitle(item) }}\n </span>\n </div>\n\n <div *ngIf=\"showButtonsActions\" class=\"po-list-view-actions\">\n <po-button\n *ngFor=\"let action of visibleActions\"\n p-small=\"true\"\n [p-disabled]=\"returnBooleanValue(action, item)\"\n [p-icon]=\"action.icon\"\n [p-label]=\"action.label\"\n [p-kind]=\"action.type\"\n (p-click)=\"onClickAction(action, item)\"\n >\n </po-button>\n </div>\n\n <div *ngIf=\"showPopupActions\" class=\"po-list-view-more-actions\">\n <span\n #popupTarget\n class=\"po-icon po-icon-more po-list-view-more-icon po-clickable\"\n (click)=\"togglePopup(item, popupTarget)\"\n >\n </span>\n </div>\n </div>\n\n <div *ngIf=\"hasContentTemplate\" class=\"po-list-view-content\">\n <ng-template\n [ngTemplateOutlet]=\"listViewContentTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-template>\n </div>\n\n <div @showHideDetail *ngIf=\"hasDetailTemplate && item.$showDetail\" class=\"po-list-view-detail\">\n <ng-template\n [ngTemplateOutlet]=\"listViewDetailTemplate.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: index }\"\n >\n </ng-template>\n </div>\n </div>\n\n <div *ngIf=\"hasDetailTemplate\" class=\"po-list-view-detail-button\">\n <span class=\"po-clickable\" (click)=\"item.$showDetail = !item.$showDetail\">\n {{ item.$showDetail ? literals.hideDetails : literals.showDetails }}\n </span>\n </div>\n </div>\n </ng-container>\n </div>\n</div>\n\n<div *ngIf=\"displayShowMoreButton\" class=\"po-mb-2 po-text-center\">\n <po-button [p-disabled]=\"showMoreDisabled\" [p-label]=\"literals.loadMoreData\" (p-click)=\"onShowMore()\"> </po-button>\n</div>\n\n<po-popup #popup [p-actions]=\"actions\" [p-target]=\"popupTarget\"> </po-popup>\n" }]
|
|
35494
35653
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.IterableDiffers }, { type: PoLanguageService }]; }, { listViewContentTemplate: [{
|
|
35495
35654
|
type: ContentChild,
|
|
35496
35655
|
args: [PoListViewContentTemplateDirective, { static: true }]
|
|
@@ -35749,11 +35908,28 @@ PoMenuService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: PoMenuServ
|
|
|
35749
35908
|
}], function () { return [{ type: i1$1.HttpClient }]; }, null); })();
|
|
35750
35909
|
|
|
35751
35910
|
const poMenuLiteralsDefault = {
|
|
35752
|
-
en: {
|
|
35753
|
-
|
|
35754
|
-
|
|
35755
|
-
|
|
35911
|
+
en: {
|
|
35912
|
+
itemNotFound: 'Item not found.',
|
|
35913
|
+
emptyLabelError: 'Attribute PoMenuItem.label can not be empty.',
|
|
35914
|
+
logomarcaHome: 'Home logo'
|
|
35915
|
+
},
|
|
35916
|
+
es: {
|
|
35917
|
+
itemNotFound: 'Elemento no encontrado.',
|
|
35918
|
+
emptyLabelError: 'El atributo PoMenuItem.label no puede ser vacío.',
|
|
35919
|
+
logomarcaHome: 'Logomarca inicio'
|
|
35920
|
+
},
|
|
35921
|
+
pt: {
|
|
35922
|
+
itemNotFound: 'Item não encontrado.',
|
|
35923
|
+
emptyLabelError: 'O atributo PoMenuItem.label não pode ser vazio.',
|
|
35924
|
+
logomarcaHome: 'Logomarca home'
|
|
35925
|
+
},
|
|
35926
|
+
ru: {
|
|
35927
|
+
itemNotFound: 'Предмет не найден.',
|
|
35928
|
+
emptyLabelError: 'Атрибут PoMenuItem.label не может быть пустым.',
|
|
35929
|
+
logomarcaHome: 'Дом Логомарка'
|
|
35930
|
+
}
|
|
35756
35931
|
};
|
|
35932
|
+
const MAX_LENGHT = 125;
|
|
35757
35933
|
/**
|
|
35758
35934
|
* @description
|
|
35759
35935
|
*
|
|
@@ -35773,6 +35949,7 @@ class PoMenuBaseComponent {
|
|
|
35773
35949
|
};
|
|
35774
35950
|
this._collapsed = false;
|
|
35775
35951
|
this._filter = false;
|
|
35952
|
+
this._logoAlt = this.literals.logomarcaHome;
|
|
35776
35953
|
this._maxLevel = 4;
|
|
35777
35954
|
this._menus = [];
|
|
35778
35955
|
}
|
|
@@ -35913,6 +36090,22 @@ class PoMenuBaseComponent {
|
|
|
35913
36090
|
get logo() {
|
|
35914
36091
|
return this._logo;
|
|
35915
36092
|
}
|
|
36093
|
+
/**
|
|
36094
|
+
* @optional
|
|
36095
|
+
*
|
|
36096
|
+
* @description
|
|
36097
|
+
*
|
|
36098
|
+
* Texto alternativo para o logo.
|
|
36099
|
+
*
|
|
36100
|
+
* > Caso esta propriedade seja indefinida ou inválida o texto padrão será "Logomarca home".
|
|
36101
|
+
*/
|
|
36102
|
+
set logoAlt(value) {
|
|
36103
|
+
const alt = isTypeof(value, 'string') && value.trim() ? this.maxLength(value) : undefined;
|
|
36104
|
+
this._logoAlt = alt ?? this._logoAlt;
|
|
36105
|
+
}
|
|
36106
|
+
get logoAlt() {
|
|
36107
|
+
return this._logoAlt;
|
|
36108
|
+
}
|
|
35916
36109
|
/**
|
|
35917
36110
|
* @optional
|
|
35918
36111
|
*
|
|
@@ -36026,9 +36219,12 @@ class PoMenuBaseComponent {
|
|
|
36026
36219
|
});
|
|
36027
36220
|
}
|
|
36028
36221
|
}
|
|
36222
|
+
maxLength(value) {
|
|
36223
|
+
return value.length > MAX_LENGHT ? value.toString().substring(0, MAX_LENGHT) : value;
|
|
36224
|
+
}
|
|
36029
36225
|
}
|
|
36030
36226
|
PoMenuBaseComponent.ɵfac = function PoMenuBaseComponent_Factory(t) { return new (t || PoMenuBaseComponent)(i0.ɵɵdirectiveInject(PoMenuGlobalService), i0.ɵɵdirectiveInject(PoMenuService), i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
36031
|
-
PoMenuBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoMenuBaseComponent, inputs: { collapsed: ["p-collapsed", "collapsed"], menus: ["p-menus", "menus"], filter: ["p-filter", "filter"], service: ["p-service", "service"], params: ["p-params", "params"], logo: ["p-logo", "logo"], shortLogo: ["p-short-logo", "shortLogo"] } });
|
|
36227
|
+
PoMenuBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoMenuBaseComponent, inputs: { collapsed: ["p-collapsed", "collapsed"], menus: ["p-menus", "menus"], filter: ["p-filter", "filter"], service: ["p-service", "service"], params: ["p-params", "params"], logo: ["p-logo", "logo"], logoAlt: ["p-logo-alt", "logoAlt"], shortLogo: ["p-short-logo", "shortLogo"] } });
|
|
36032
36228
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMenuBaseComponent, [{
|
|
36033
36229
|
type: Directive
|
|
36034
36230
|
}], function () { return [{ type: PoMenuGlobalService }, { type: PoMenuService }, { type: PoLanguageService }]; }, { collapsed: [{
|
|
@@ -36049,6 +36245,9 @@ PoMenuBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoMenuB
|
|
|
36049
36245
|
}], logo: [{
|
|
36050
36246
|
type: Input,
|
|
36051
36247
|
args: ['p-logo']
|
|
36248
|
+
}], logoAlt: [{
|
|
36249
|
+
type: Input,
|
|
36250
|
+
args: ['p-logo-alt']
|
|
36052
36251
|
}], shortLogo: [{
|
|
36053
36252
|
type: Input,
|
|
36054
36253
|
args: ['p-short-logo']
|
|
@@ -36580,7 +36779,7 @@ function PoMenuComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
36580
36779
|
} if (rf & 2) {
|
|
36581
36780
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
36582
36781
|
i0.ɵɵadvance(2);
|
|
36583
|
-
i0.ɵɵproperty("ngClass", ctx_r1.enableCollapse ? "po-menu-short-logo" : "po-menu-logo")("src", ctx_r1.enableCollapse ? ctx_r1.shortLogo || ctx_r1.logo : ctx_r1.logo, i0.ɵɵsanitizeUrl);
|
|
36782
|
+
i0.ɵɵproperty("ngClass", ctx_r1.enableCollapse ? "po-menu-short-logo" : "po-menu-logo")("src", ctx_r1.enableCollapse ? ctx_r1.shortLogo || ctx_r1.logo : ctx_r1.logo, i0.ɵɵsanitizeUrl)("alt", ctx_r1.logoAlt);
|
|
36584
36783
|
} }
|
|
36585
36784
|
function PoMenuComponent_div_7_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
36586
36785
|
i0.ɵɵelementContainer(0);
|
|
@@ -37104,14 +37303,14 @@ PoMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoMenuCompo
|
|
|
37104
37303
|
} if (rf & 2) {
|
|
37105
37304
|
let _t;
|
|
37106
37305
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.menuHeaderTemplate = _t.first);
|
|
37107
|
-
} }, features: [i0.ɵɵProvidersFeature([PoMenuItemsService, PoMenuService]), i0.ɵɵInheritDefinitionFeature], decls: 15, vars: 10, consts: [["class", "po-menu-overlay", 3, "click", 4, "ngIf"], [1, "po-menu-mobile", "po-clickable", 3, "click"], [1, "po-icon", "po-icon-menu"], [1, "po-menu", 3, "ngClass"], [1, "po-menu-header"], ["class", "po-menu-header-container-logo", 4, "ngIf"], ["class", "po-menu-header-template", 4, "ngIf"], [3, "p-loading", "p-filter", 4, "ngIf"], [1, "po-menu-body"], [1, "po-menu-outer"], [1, "po-menu-inner"], ["class", "po-menu-item-wrapper", 4, "ngIf"], ["class", "po-menu-item-wrapper", 4, "ngFor", "ngForOf"], ["class", "po-menu-footer", 4, "ngIf"], [1, "po-menu-overlay", 3, "click"], [1, "po-menu-header-container-logo"], ["href", "./"], [3, "ngClass", "src"], [1, "po-menu-header-template"], [4, "ngTemplateOutlet"], [3, "p-loading", "p-filter"], [1, "po-menu-item-wrapper"], [1, "po-menu-item-first"], [1, "po-menu-icon-container", "po-menu-item-no-data"], [1, "po-icon", "po-icon-info", "po-menu-icon-item", "po-lg-2"], [1, "po-lg-10", "po-menu-icon-label"], [3, "p-action", "p-badge-alert", "p-badge-color", "p-badge-value", "p-collapsed-menu", "p-icon", "p-id", "p-label", "p-level", "p-link", "p-short-label", "p-sub-items", "p-type"], [1, "po-menu-footer"], [1, "po-menu-collapse-button-icon", "po-clickable", 3, "click"], [1, "po-icon"]], template: function PoMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
37306
|
+
} }, features: [i0.ɵɵProvidersFeature([PoMenuItemsService, PoMenuService]), i0.ɵɵInheritDefinitionFeature], decls: 15, vars: 10, consts: [["class", "po-menu-overlay", 3, "click", 4, "ngIf"], [1, "po-menu-mobile", "po-clickable", 3, "click"], [1, "po-icon", "po-icon-menu"], [1, "po-menu", 3, "ngClass"], [1, "po-menu-header"], ["class", "po-menu-header-container-logo", 4, "ngIf"], ["class", "po-menu-header-template", 4, "ngIf"], [3, "p-loading", "p-filter", 4, "ngIf"], [1, "po-menu-body"], [1, "po-menu-outer"], [1, "po-menu-inner"], ["class", "po-menu-item-wrapper", 4, "ngIf"], ["class", "po-menu-item-wrapper", 4, "ngFor", "ngForOf"], ["class", "po-menu-footer", 4, "ngIf"], [1, "po-menu-overlay", 3, "click"], [1, "po-menu-header-container-logo"], ["href", "./"], [3, "ngClass", "src", "alt"], [1, "po-menu-header-template"], [4, "ngTemplateOutlet"], [3, "p-loading", "p-filter"], [1, "po-menu-item-wrapper"], [1, "po-menu-item-first"], [1, "po-menu-icon-container", "po-menu-item-no-data"], [1, "po-icon", "po-icon-info", "po-menu-icon-item", "po-lg-2"], [1, "po-lg-10", "po-menu-icon-label"], [3, "p-action", "p-badge-alert", "p-badge-color", "p-badge-value", "p-collapsed-menu", "p-icon", "p-id", "p-label", "p-level", "p-link", "p-short-label", "p-sub-items", "p-type"], [1, "po-menu-footer"], [1, "po-menu-collapse-button-icon", "po-clickable", 3, "click"], [1, "po-icon"]], template: function PoMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
37108
37307
|
i0.ɵɵtemplate(0, PoMenuComponent_div_0_Template, 1, 0, "div", 0);
|
|
37109
37308
|
i0.ɵɵelementStart(1, "nav")(2, "div", 1);
|
|
37110
37309
|
i0.ɵɵlistener("click", function PoMenuComponent_Template_div_click_2_listener() { return ctx.toggleMenuMobile(); });
|
|
37111
37310
|
i0.ɵɵelement(3, "span", 2);
|
|
37112
37311
|
i0.ɵɵelementEnd();
|
|
37113
37312
|
i0.ɵɵelementStart(4, "div", 3)(5, "div", 4);
|
|
37114
|
-
i0.ɵɵtemplate(6, PoMenuComponent_div_6_Template, 3,
|
|
37313
|
+
i0.ɵɵtemplate(6, PoMenuComponent_div_6_Template, 3, 3, "div", 5);
|
|
37115
37314
|
i0.ɵɵtemplate(7, PoMenuComponent_div_7_Template, 2, 1, "div", 6);
|
|
37116
37315
|
i0.ɵɵtemplate(8, PoMenuComponent_po_menu_filter_8_Template, 1, 1, "po-menu-filter", 7);
|
|
37117
37316
|
i0.ɵɵelementEnd();
|
|
@@ -37140,7 +37339,7 @@ PoMenuComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoMenuCompo
|
|
|
37140
37339
|
} }, directives: [i1.NgIf, i1.NgClass, i1.NgTemplateOutlet, PoMenuFilterComponent, PoIconComponent, i1.NgForOf, PoMenuItemComponent], encapsulation: 2 });
|
|
37141
37340
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoMenuComponent, [{
|
|
37142
37341
|
type: Component,
|
|
37143
|
-
args: [{ selector: 'po-menu', providers: [PoMenuItemsService, PoMenuService], template: "<div *ngIf=\"mobileOpened\" class=\"po-menu-overlay\" (click)=\"toggleMenuMobile()\"></div>\n<nav>\n <div class=\"po-menu-mobile po-clickable\" (click)=\"toggleMenuMobile()\">\n <span class=\"po-icon po-icon-menu\"></span>\n </div>\n\n <div class=\"po-menu\" [ngClass]=\"{ 'po-menu-animation': mobileOpened }\">\n <div class=\"po-menu-header\">\n <div *ngIf=\"logo || (shortLogo && enableCollapse)\" class=\"po-menu-header-container-logo\">\n <a href=\"./\">\n <img\n [ngClass]=\"enableCollapse ? 'po-menu-short-logo' : 'po-menu-logo'\"\n [src]=\"enableCollapse ? shortLogo || logo : logo\"\n />\n </a>\n </div>\n\n <div *ngIf=\"!enableCollapse && menuHeaderTemplate\" class=\"po-menu-header-template\">\n <ng-container *ngTemplateOutlet=\"menuHeaderTemplate.templateRef\"></ng-container>\n </div>\n\n <po-menu-filter *ngIf=\"filter && !enableCollapse\" [p-loading]=\"filterLoading\" (p-filter)=\"debounceFilter($event)\">\n </po-menu-filter>\n </div>\n\n <div class=\"po-menu-body\">\n <!-- Inner e outer para esconder scroll -->\n <div class=\"po-menu-outer\">\n <div class=\"po-menu-inner\">\n <div *ngIf=\"noData\" class=\"po-menu-item-wrapper\">\n <div class=\"po-menu-item-first\">\n <div class=\"po-menu-icon-container po-menu-item-no-data\">\n <po-icon class=\"po-icon po-icon-info po-menu-icon-item po-lg-2\"></po-icon>\n <div class=\"po-lg-10 po-menu-icon-label\">{{ literals.itemNotFound }}</div>\n </div>\n </div>\n </div>\n\n <div *ngFor=\"let menu of filteredItems; let menuIndex = index\" class=\"po-menu-item-wrapper\">\n <po-menu-item\n [class.po-menu-item-first]=\"menuIndex === 0\"\n [p-action]=\"menu.action\"\n [p-badge-alert]=\"menu.badgeAlert\"\n [p-badge-color]=\"menu.badge ? menu.badge.color : undefined\"\n [p-badge-value]=\"menu.badge ? menu.badge.value : undefined\"\n [p-collapsed-menu]=\"enableCollapse\"\n [p-icon]=\"allowIcons ? menu.icon : null\"\n [p-id]=\"menu.id\"\n [p-label]=\"menu.label\"\n [p-level]=\"menu.level\"\n [p-link]=\"menu.link\"\n [p-short-label]=\"menu.shortLabel\"\n [p-sub-items]=\"menu.subItems\"\n [p-type]=\"menu.type\"\n >\n </po-menu-item>\n </div>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"hasFooter\" class=\"po-menu-footer\">\n <a class=\"po-menu-collapse-button-icon po-clickable\" (click)=\"toggle()\">\n <span\n class=\"po-icon\"\n [class.po-icon-menu-close]=\"enableCollapseButton\"\n [class.po-icon-menu-open]=\"enableCollapse\"\n >\n </span>\n </a>\n </div>\n </div>\n</nav>\n" }]
|
|
37342
|
+
args: [{ selector: 'po-menu', providers: [PoMenuItemsService, PoMenuService], template: "<div *ngIf=\"mobileOpened\" class=\"po-menu-overlay\" (click)=\"toggleMenuMobile()\"></div>\n<nav>\n <div class=\"po-menu-mobile po-clickable\" (click)=\"toggleMenuMobile()\">\n <span class=\"po-icon po-icon-menu\"></span>\n </div>\n\n <div class=\"po-menu\" [ngClass]=\"{ 'po-menu-animation': mobileOpened }\">\n <div class=\"po-menu-header\">\n <div *ngIf=\"logo || (shortLogo && enableCollapse)\" class=\"po-menu-header-container-logo\">\n <a href=\"./\">\n <img\n [ngClass]=\"enableCollapse ? 'po-menu-short-logo' : 'po-menu-logo'\"\n [src]=\"enableCollapse ? shortLogo || logo : logo\"\n [alt]=\"logoAlt\"\n />\n </a>\n </div>\n\n <div *ngIf=\"!enableCollapse && menuHeaderTemplate\" class=\"po-menu-header-template\">\n <ng-container *ngTemplateOutlet=\"menuHeaderTemplate.templateRef\"></ng-container>\n </div>\n\n <po-menu-filter *ngIf=\"filter && !enableCollapse\" [p-loading]=\"filterLoading\" (p-filter)=\"debounceFilter($event)\">\n </po-menu-filter>\n </div>\n\n <div class=\"po-menu-body\">\n <!-- Inner e outer para esconder scroll -->\n <div class=\"po-menu-outer\">\n <div class=\"po-menu-inner\">\n <div *ngIf=\"noData\" class=\"po-menu-item-wrapper\">\n <div class=\"po-menu-item-first\">\n <div class=\"po-menu-icon-container po-menu-item-no-data\">\n <po-icon class=\"po-icon po-icon-info po-menu-icon-item po-lg-2\"></po-icon>\n <div class=\"po-lg-10 po-menu-icon-label\">{{ literals.itemNotFound }}</div>\n </div>\n </div>\n </div>\n\n <div *ngFor=\"let menu of filteredItems; let menuIndex = index\" class=\"po-menu-item-wrapper\">\n <po-menu-item\n [class.po-menu-item-first]=\"menuIndex === 0\"\n [p-action]=\"menu.action\"\n [p-badge-alert]=\"menu.badgeAlert\"\n [p-badge-color]=\"menu.badge ? menu.badge.color : undefined\"\n [p-badge-value]=\"menu.badge ? menu.badge.value : undefined\"\n [p-collapsed-menu]=\"enableCollapse\"\n [p-icon]=\"allowIcons ? menu.icon : null\"\n [p-id]=\"menu.id\"\n [p-label]=\"menu.label\"\n [p-level]=\"menu.level\"\n [p-link]=\"menu.link\"\n [p-short-label]=\"menu.shortLabel\"\n [p-sub-items]=\"menu.subItems\"\n [p-type]=\"menu.type\"\n >\n </po-menu-item>\n </div>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"hasFooter\" class=\"po-menu-footer\">\n <a class=\"po-menu-collapse-button-icon po-clickable\" (click)=\"toggle()\">\n <span\n class=\"po-icon\"\n [class.po-icon-menu-close]=\"enableCollapseButton\"\n [class.po-icon-menu-open]=\"enableCollapse\"\n >\n </span>\n </a>\n </div>\n </div>\n</nav>\n" }]
|
|
37144
37343
|
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i2.Router }, { type: PoMenuItemsService }, { type: PoMenuGlobalService }, { type: PoMenuService }, { type: PoLanguageService }]; }, { menuHeaderTemplate: [{
|
|
37145
37344
|
type: ContentChild,
|
|
37146
37345
|
args: [PoMenuHeaderTemplateDirective, { static: true }]
|
|
@@ -38867,7 +39066,7 @@ class PoPageDefaultComponent extends PoPageDefaultBaseComponent {
|
|
|
38867
39066
|
}
|
|
38868
39067
|
}
|
|
38869
39068
|
PoPageDefaultComponent.ɵfac = function PoPageDefaultComponent_Factory(t) { return new (t || PoPageDefaultComponent)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(PoLanguageService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i2.Router)); };
|
|
38870
|
-
PoPageDefaultComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageDefaultComponent, selectors: [["po-page-default"]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$e, decls: 4, vars: 1, consts: [[3, "p-breadcrumb", "p-title", 4, "ngIf"], [3, "p-breadcrumb", "p-title"], [1, "po-page-header-actions"], [3, "p-label", "p-actions", 4, "ngIf"], [3, "p-disabled", "p-label", "p-click", 4, "ngIf"], ["p-
|
|
39069
|
+
PoPageDefaultComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageDefaultComponent, selectors: [["po-page-default"]], features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c0$e, decls: 4, vars: 1, consts: [[3, "p-breadcrumb", "p-title", 4, "ngIf"], [3, "p-breadcrumb", "p-title"], [1, "po-page-header-actions"], [3, "p-label", "p-actions", 4, "ngIf"], [3, "p-disabled", "p-label", "p-click", 4, "ngIf"], ["p-kind", "primary", 3, "p-disabled", "p-icon", "p-label", "p-click", 4, "ngIf"], [3, "p-label", "p-actions"], [3, "p-disabled", "p-label", "p-click"], ["p-kind", "primary", 3, "p-disabled", "p-icon", "p-label", "p-click"]], template: function PoPageDefaultComponent_Template(rf, ctx) { if (rf & 1) {
|
|
38871
39070
|
i0.ɵɵprojectionDef();
|
|
38872
39071
|
i0.ɵɵelementStart(0, "po-page");
|
|
38873
39072
|
i0.ɵɵtemplate(1, PoPageDefaultComponent_po_page_header_1_Template, 6, 6, "po-page-header", 0);
|
|
@@ -38880,7 +39079,7 @@ PoPageDefaultComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPa
|
|
|
38880
39079
|
} }, directives: [PoPageComponent, i1.NgIf, PoPageHeaderComponent, PoDropdownComponent, PoButtonComponent, PoPageContentComponent], encapsulation: 2 });
|
|
38881
39080
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageDefaultComponent, [{
|
|
38882
39081
|
type: Component,
|
|
38883
|
-
args: [{ selector: 'po-page-default', template: "<po-page>\n <!-- HEADER -->\n <po-page-header *ngIf=\"hasPageHeader()\" [p-breadcrumb]=\"breadcrumb\" [p-title]=\"title\">\n <!-- OPERATIONS -->\n <div class=\"po-page-header-actions\">\n <po-dropdown\n *ngIf=\"visibleActions.length > limitPrimaryActions\"\n [p-label]=\"literals.otherActions\"\n [p-actions]=\"dropdownActions\"\n >\n </po-dropdown>\n\n <po-button\n *ngIf=\"visibleActions.length === 3 && visibleActions[2] && !isMobile\"\n [p-disabled]=\"actionIsDisabled(visibleActions[2])\"\n [p-label]=\"visibleActions[2].label\"\n (p-click)=\"callAction(visibleActions[2])\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"visibleActions[1] && (visibleActions.length === 2 || !isMobile)\"\n [p-disabled]=\"actionIsDisabled(visibleActions[1])\"\n [p-label]=\"visibleActions[1].label\"\n (p-click)=\"callAction(visibleActions[1])\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"visibleActions[0]\"\n p-
|
|
39082
|
+
args: [{ selector: 'po-page-default', template: "<po-page>\n <!-- HEADER -->\n <po-page-header *ngIf=\"hasPageHeader()\" [p-breadcrumb]=\"breadcrumb\" [p-title]=\"title\">\n <!-- OPERATIONS -->\n <div class=\"po-page-header-actions\">\n <po-dropdown\n *ngIf=\"visibleActions.length > limitPrimaryActions\"\n [p-label]=\"literals.otherActions\"\n [p-actions]=\"dropdownActions\"\n >\n </po-dropdown>\n\n <po-button\n *ngIf=\"visibleActions.length === 3 && visibleActions[2] && !isMobile\"\n [p-disabled]=\"actionIsDisabled(visibleActions[2])\"\n [p-label]=\"visibleActions[2].label\"\n (p-click)=\"callAction(visibleActions[2])\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"visibleActions[1] && (visibleActions.length === 2 || !isMobile)\"\n [p-disabled]=\"actionIsDisabled(visibleActions[1])\"\n [p-label]=\"visibleActions[1].label\"\n (p-click)=\"callAction(visibleActions[1])\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"visibleActions[0]\"\n p-kind=\"primary\"\n [p-disabled]=\"actionIsDisabled(visibleActions[0])\"\n [p-icon]=\"visibleActions[0].icon\"\n [p-label]=\"visibleActions[0].label\"\n (p-click)=\"callAction(visibleActions[0])\"\n >\n </po-button>\n </div>\n </po-page-header>\n\n <!-- CONTENT -->\n <po-page-content>\n <ng-content></ng-content>\n </po-page-content>\n</po-page>\n" }]
|
|
38884
39083
|
}], function () { return [{ type: i0.ViewContainerRef }, { type: PoLanguageService }, { type: i0.Renderer2 }, { type: i2.Router }]; }, null); })();
|
|
38885
39084
|
|
|
38886
39085
|
const poPageDetailLiteralsDefault = {
|
|
@@ -39047,7 +39246,7 @@ function PoPageDetailComponent_po_page_header_1_div_1_po_button_1_Template(rf, c
|
|
|
39047
39246
|
i0.ɵɵelementEnd();
|
|
39048
39247
|
} if (rf & 2) {
|
|
39049
39248
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
39050
|
-
i0.ɵɵproperty("p-icon", ctx_r2.hasEditOrRemoveFn("icon"))("p-label", ctx_r2.literals.back)("p-
|
|
39249
|
+
i0.ɵɵproperty("p-icon", ctx_r2.hasEditOrRemoveFn("icon"))("p-label", ctx_r2.literals.back)("p-kind", ctx_r2.hasEditOrRemoveFn("type"));
|
|
39051
39250
|
} }
|
|
39052
39251
|
function PoPageDetailComponent_po_page_header_1_div_1_po_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
39053
39252
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -39056,7 +39255,7 @@ function PoPageDetailComponent_po_page_header_1_div_1_po_button_2_Template(rf, c
|
|
|
39056
39255
|
i0.ɵɵelementEnd();
|
|
39057
39256
|
} if (rf & 2) {
|
|
39058
39257
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
39059
|
-
i0.ɵɵproperty("p-icon", ctx_r3.hasEditFn("icon"))("p-label", ctx_r3.literals.remove)("p-
|
|
39258
|
+
i0.ɵɵproperty("p-icon", ctx_r3.hasEditFn("icon"))("p-label", ctx_r3.literals.remove)("p-kind", ctx_r3.hasEditFn("type"));
|
|
39060
39259
|
} }
|
|
39061
39260
|
function PoPageDetailComponent_po_page_header_1_div_1_po_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
39062
39261
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
@@ -39122,7 +39321,7 @@ class PoPageDetailComponent extends PoPageDetailBaseComponent {
|
|
|
39122
39321
|
return this.hasEvent('edit') ? '' : 'po-icon-delete';
|
|
39123
39322
|
}
|
|
39124
39323
|
else if (property === 'type') {
|
|
39125
|
-
return this.hasEvent('edit') ? '
|
|
39324
|
+
return this.hasEvent('edit') ? 'secondary' : 'primary';
|
|
39126
39325
|
}
|
|
39127
39326
|
else {
|
|
39128
39327
|
return '';
|
|
@@ -39133,7 +39332,7 @@ class PoPageDetailComponent extends PoPageDetailBaseComponent {
|
|
|
39133
39332
|
return this.hasEvent('edit') || this.hasEvent('remove') ? '' : 'po-icon-arrow-left';
|
|
39134
39333
|
}
|
|
39135
39334
|
else if (property === 'type') {
|
|
39136
|
-
return this.hasEvent('edit') || this.hasEvent('remove') ? '
|
|
39335
|
+
return this.hasEvent('edit') || this.hasEvent('remove') ? 'secondary' : 'primary';
|
|
39137
39336
|
}
|
|
39138
39337
|
else {
|
|
39139
39338
|
return '';
|
|
@@ -39147,7 +39346,7 @@ class PoPageDetailComponent extends PoPageDetailBaseComponent {
|
|
|
39147
39346
|
}
|
|
39148
39347
|
}
|
|
39149
39348
|
PoPageDetailComponent.ɵfac = /*@__PURE__*/ function () { let ɵPoPageDetailComponent_BaseFactory; return function PoPageDetailComponent_Factory(t) { return (ɵPoPageDetailComponent_BaseFactory || (ɵPoPageDetailComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PoPageDetailComponent)))(t || PoPageDetailComponent); }; }();
|
|
39150
|
-
PoPageDetailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageDetailComponent, selectors: [["po-page-detail"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$d, decls: 4, vars: 1, consts: [[3, "p-breadcrumb", "p-title", 4, "ngIf"], [3, "p-breadcrumb", "p-title"], ["class", "po-page-header-actions", 4, "ngIf"], [1, "po-page-header-actions"], [3, "p-icon", "p-label", "p-
|
|
39349
|
+
PoPageDetailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageDetailComponent, selectors: [["po-page-detail"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$d, decls: 4, vars: 1, consts: [[3, "p-breadcrumb", "p-title", 4, "ngIf"], [3, "p-breadcrumb", "p-title"], ["class", "po-page-header-actions", 4, "ngIf"], [1, "po-page-header-actions"], [3, "p-icon", "p-label", "p-kind", "p-click", 4, "ngIf"], ["p-icon", "po-icon-edit", "p-kind", "primary", 3, "p-label", "p-click", 4, "ngIf"], [3, "p-icon", "p-label", "p-kind", "p-click"], ["p-icon", "po-icon-edit", "p-kind", "primary", 3, "p-label", "p-click"]], template: function PoPageDetailComponent_Template(rf, ctx) { if (rf & 1) {
|
|
39151
39350
|
i0.ɵɵprojectionDef();
|
|
39152
39351
|
i0.ɵɵelementStart(0, "po-page");
|
|
39153
39352
|
i0.ɵɵtemplate(1, PoPageDetailComponent_po_page_header_1_Template, 2, 3, "po-page-header", 0);
|
|
@@ -39160,7 +39359,7 @@ PoPageDetailComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPag
|
|
|
39160
39359
|
} }, directives: [PoPageComponent, i1.NgIf, PoPageHeaderComponent, PoButtonComponent, PoPageContentComponent], encapsulation: 2 });
|
|
39161
39360
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageDetailComponent, [{
|
|
39162
39361
|
type: Component,
|
|
39163
|
-
args: [{ selector: 'po-page-detail', template: "<po-page>\n <!-- HEADER -->\n <po-page-header *ngIf=\"hasPageHeader()\" [p-breadcrumb]=\"breadcrumb\" [p-title]=\"title\">\n <!-- OPERATIONS -->\n <div *ngIf=\"hasAnyAction()\" class=\"po-page-header-actions\">\n <po-button\n *ngIf=\"hasEvent('back')\"\n [p-icon]=\"hasEditOrRemoveFn('icon')\"\n [p-label]=\"literals.back\"\n [p-
|
|
39362
|
+
args: [{ selector: 'po-page-detail', template: "<po-page>\n <!-- HEADER -->\n <po-page-header *ngIf=\"hasPageHeader()\" [p-breadcrumb]=\"breadcrumb\" [p-title]=\"title\">\n <!-- OPERATIONS -->\n <div *ngIf=\"hasAnyAction()\" class=\"po-page-header-actions\">\n <po-button\n *ngIf=\"hasEvent('back')\"\n [p-icon]=\"hasEditOrRemoveFn('icon')\"\n [p-label]=\"literals.back\"\n [p-kind]=\"hasEditOrRemoveFn('type')\"\n (p-click)=\"back.emit()\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"hasEvent('remove')\"\n [p-icon]=\"hasEditFn('icon')\"\n [p-label]=\"literals.remove\"\n [p-kind]=\"hasEditFn('type')\"\n (p-click)=\"remove.emit()\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"hasEvent('edit')\"\n p-icon=\"po-icon-edit\"\n p-kind=\"primary\"\n [p-label]=\"literals.edit\"\n (p-click)=\"edit.emit()\"\n >\n </po-button>\n </div>\n </po-page-header>\n\n <!-- CONTENT -->\n <po-page-content>\n <ng-content> </ng-content>\n </po-page-content>\n</po-page>\n" }]
|
|
39164
39363
|
}], null, null); })();
|
|
39165
39364
|
|
|
39166
39365
|
const poPageEditLiteralsDefault = {
|
|
@@ -39334,7 +39533,7 @@ function PoPageEditComponent_po_page_header_1_div_1_po_button_1_Template(rf, ctx
|
|
|
39334
39533
|
i0.ɵɵelementEnd();
|
|
39335
39534
|
} if (rf & 2) {
|
|
39336
39535
|
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
39337
|
-
i0.ɵɵproperty("p-icon", ctx_r2.getIcon("cancel"))("p-label", ctx_r2.literals.cancel)("p-
|
|
39536
|
+
i0.ɵɵproperty("p-icon", ctx_r2.getIcon("cancel"))("p-label", ctx_r2.literals.cancel)("p-kind", ctx_r2.getType("cancel"));
|
|
39338
39537
|
} }
|
|
39339
39538
|
function PoPageEditComponent_po_page_header_1_div_1_po_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
39340
39539
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
@@ -39343,7 +39542,7 @@ function PoPageEditComponent_po_page_header_1_div_1_po_button_2_Template(rf, ctx
|
|
|
39343
39542
|
i0.ɵɵelementEnd();
|
|
39344
39543
|
} if (rf & 2) {
|
|
39345
39544
|
const ctx_r3 = i0.ɵɵnextContext(3);
|
|
39346
|
-
i0.ɵɵproperty("p-disabled", ctx_r3.disableSubmit)("p-icon", ctx_r3.getIcon("saveNew"))("p-label", ctx_r3.literals.saveNew)("p-
|
|
39545
|
+
i0.ɵɵproperty("p-disabled", ctx_r3.disableSubmit)("p-icon", ctx_r3.getIcon("saveNew"))("p-label", ctx_r3.literals.saveNew)("p-kind", ctx_r3.getType("saveNew"));
|
|
39347
39546
|
} }
|
|
39348
39547
|
function PoPageEditComponent_po_page_header_1_div_1_po_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
39349
39548
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
@@ -39413,7 +39612,7 @@ class PoPageEditComponent extends PoPageEditBaseComponent {
|
|
|
39413
39612
|
getType(type) {
|
|
39414
39613
|
const isCancelPrimaryAction = type === 'cancel' && this.isPrimaryAction('cancel');
|
|
39415
39614
|
const isSaveNewPrimaryAction = type === 'saveNew' && this.isPrimaryAction('saveNew');
|
|
39416
|
-
return isCancelPrimaryAction || isSaveNewPrimaryAction ? 'primary' : '
|
|
39615
|
+
return isCancelPrimaryAction || isSaveNewPrimaryAction ? 'primary' : 'secondary';
|
|
39417
39616
|
}
|
|
39418
39617
|
hasAnyAction() {
|
|
39419
39618
|
return this.hasEvent('cancel') || this.hasEvent('saveNew') || this.hasEvent('save');
|
|
@@ -39437,7 +39636,7 @@ class PoPageEditComponent extends PoPageEditBaseComponent {
|
|
|
39437
39636
|
}
|
|
39438
39637
|
}
|
|
39439
39638
|
PoPageEditComponent.ɵfac = /*@__PURE__*/ function () { let ɵPoPageEditComponent_BaseFactory; return function PoPageEditComponent_Factory(t) { return (ɵPoPageEditComponent_BaseFactory || (ɵPoPageEditComponent_BaseFactory = i0.ɵɵgetInheritedFactory(PoPageEditComponent)))(t || PoPageEditComponent); }; }();
|
|
39440
|
-
PoPageEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageEditComponent, selectors: [["po-page-edit"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$c, decls: 4, vars: 1, consts: [[3, "p-breadcrumb", "p-title", 4, "ngIf"], [3, "p-breadcrumb", "p-title"], ["class", "po-page-header-actions", 4, "ngIf"], [1, "po-page-header-actions"], [3, "p-icon", "p-label", "p-
|
|
39639
|
+
PoPageEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageEditComponent, selectors: [["po-page-edit"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$c, decls: 4, vars: 1, consts: [[3, "p-breadcrumb", "p-title", 4, "ngIf"], [3, "p-breadcrumb", "p-title"], ["class", "po-page-header-actions", 4, "ngIf"], [1, "po-page-header-actions"], [3, "p-icon", "p-label", "p-kind", "p-click", 4, "ngIf"], [3, "p-disabled", "p-icon", "p-label", "p-kind", "p-click", 4, "ngIf"], ["p-icon", "po-icon-ok", "p-kind", "primary", 3, "p-disabled", "p-label", "p-click", 4, "ngIf"], [3, "p-icon", "p-label", "p-kind", "p-click"], [3, "p-disabled", "p-icon", "p-label", "p-kind", "p-click"], ["p-icon", "po-icon-ok", "p-kind", "primary", 3, "p-disabled", "p-label", "p-click"]], template: function PoPageEditComponent_Template(rf, ctx) { if (rf & 1) {
|
|
39441
39640
|
i0.ɵɵprojectionDef();
|
|
39442
39641
|
i0.ɵɵelementStart(0, "po-page");
|
|
39443
39642
|
i0.ɵɵtemplate(1, PoPageEditComponent_po_page_header_1_Template, 2, 3, "po-page-header", 0);
|
|
@@ -39450,7 +39649,7 @@ PoPageEditComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageE
|
|
|
39450
39649
|
} }, directives: [PoPageComponent, i1.NgIf, PoPageHeaderComponent, PoButtonComponent, PoPageContentComponent], encapsulation: 2 });
|
|
39451
39650
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageEditComponent, [{
|
|
39452
39651
|
type: Component,
|
|
39453
|
-
args: [{ selector: 'po-page-edit', template: "<po-page>\n <!-- HEADER -->\n <po-page-header *ngIf=\"hasPageHeader()\" [p-breadcrumb]=\"breadcrumb\" [p-title]=\"title\">\n <!-- OPERATIONS -->\n <div *ngIf=\"hasAnyAction()\" class=\"po-page-header-actions\">\n <po-button\n *ngIf=\"hasEvent('cancel')\"\n [p-icon]=\"getIcon('cancel')\"\n [p-label]=\"literals.cancel\"\n [p-
|
|
39652
|
+
args: [{ selector: 'po-page-edit', template: "<po-page>\n <!-- HEADER -->\n <po-page-header *ngIf=\"hasPageHeader()\" [p-breadcrumb]=\"breadcrumb\" [p-title]=\"title\">\n <!-- OPERATIONS -->\n <div *ngIf=\"hasAnyAction()\" class=\"po-page-header-actions\">\n <po-button\n *ngIf=\"hasEvent('cancel')\"\n [p-icon]=\"getIcon('cancel')\"\n [p-label]=\"literals.cancel\"\n [p-kind]=\"getType('cancel')\"\n (p-click)=\"cancel.emit()\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"hasEvent('saveNew')\"\n [p-disabled]=\"disableSubmit\"\n [p-icon]=\"getIcon('saveNew')\"\n [p-label]=\"literals.saveNew\"\n [p-kind]=\"getType('saveNew')\"\n (p-click)=\"saveNew.emit()\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"hasEvent('save')\"\n p-icon=\"po-icon-ok\"\n p-kind=\"primary\"\n [p-disabled]=\"disableSubmit\"\n [p-label]=\"literals.save\"\n (p-click)=\"save.emit()\"\n >\n </po-button>\n </div>\n </po-page-header>\n\n <!-- CONTENT -->\n <po-page-content>\n <ng-content> </ng-content>\n </po-page-content>\n</po-page>\n" }]
|
|
39454
39653
|
}], null, null); })();
|
|
39455
39654
|
|
|
39456
39655
|
const poPageListLiteralsDefault = {
|
|
@@ -39883,7 +40082,7 @@ PoPageListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageL
|
|
|
39883
40082
|
let _t;
|
|
39884
40083
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterInput = _t.first);
|
|
39885
40084
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.poPageContent = _t.first);
|
|
39886
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1$5, decls: 4, vars: 1, consts: [[3, "po-page-list-header-padding", "p-breadcrumb", "p-title", 4, "ngIf"], [3, "p-breadcrumb", "p-title"], [1, "po-page-list-operations"], [1, "po-page-list-actions"], ["p-
|
|
40085
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c1$5, decls: 4, vars: 1, consts: [[3, "po-page-list-header-padding", "p-breadcrumb", "p-title", 4, "ngIf"], [3, "p-breadcrumb", "p-title"], [1, "po-page-list-operations"], [1, "po-page-list-actions"], ["p-kind", "primary", 3, "p-disabled", "p-icon", "p-label", "p-click", 4, "ngIf"], [3, "p-disabled", "p-label", "p-click", 4, "ngIf"], [3, "p-actions", "p-label", 4, "ngIf"], ["class", "po-page-list-filter-wrapper", 3, "ngClass", 4, "ngIf"], [3, "po-page-list-disclaimer-group", "p-disclaimers", "p-hide-remove-all", "p-title", "p-change", "p-remove", "p-remove-all", 4, "ngIf"], ["p-kind", "primary", 3, "p-disabled", "p-icon", "p-label", "p-click"], [3, "p-disabled", "p-label", "p-click"], [3, "p-actions", "p-label"], [1, "po-page-list-filter-wrapper", 3, "ngClass"], [1, "po-field-container-content", "po-page-filter-content", 3, "ngClass"], [1, "po-field-icon-container-right"], [1, "po-icon", "po-icon-search", "po-field-icon", 3, "click"], ["name", "model", "type", "text", 1, "po-input", "po-input-icon-right", 3, "placeholder", "keypress"], ["filterInput", ""], ["class", "po-page-list-filter-search", 4, "ngIf"], [1, "po-page-list-filter-search"], ["tabindex", "0", 1, "po-page-list-filter-search-link", 3, "click", "keydown.enter"], [3, "p-disclaimers", "p-hide-remove-all", "p-title", "p-change", "p-remove", "p-remove-all"]], template: function PoPageListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
39887
40086
|
i0.ɵɵprojectionDef();
|
|
39888
40087
|
i0.ɵɵelementStart(0, "po-page");
|
|
39889
40088
|
i0.ɵɵtemplate(1, PoPageListComponent_po_page_header_1_Template, 9, 12, "po-page-header", 0);
|
|
@@ -39896,7 +40095,7 @@ PoPageListComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoPageL
|
|
|
39896
40095
|
} }, directives: [PoPageComponent, i1.NgIf, PoPageHeaderComponent, PoButtonComponent, PoDropdownComponent, i1.NgClass, PoDisclaimerGroupComponent, PoPageContentComponent], encapsulation: 2 });
|
|
39897
40096
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoPageListComponent, [{
|
|
39898
40097
|
type: Component,
|
|
39899
|
-
args: [{ selector: 'po-page-list', template: "<po-page>\n <!-- HEADER -->\n <po-page-header\n *ngIf=\"hasPageHeader()\"\n [class.po-page-list-header-padding]=\"filter && !visibleActions.length\"\n [p-breadcrumb]=\"breadcrumb\"\n [p-title]=\"title\"\n >\n <!-- OPERATIONS -->\n <div class=\"po-page-list-operations\">\n <div class=\"po-page-list-actions\" [class.po-page-list-actions-padding]=\"filter\">\n <po-button\n *ngIf=\"visibleActions[0]\"\n p-
|
|
40098
|
+
args: [{ selector: 'po-page-list', template: "<po-page>\n <!-- HEADER -->\n <po-page-header\n *ngIf=\"hasPageHeader()\"\n [class.po-page-list-header-padding]=\"filter && !visibleActions.length\"\n [p-breadcrumb]=\"breadcrumb\"\n [p-title]=\"title\"\n >\n <!-- OPERATIONS -->\n <div class=\"po-page-list-operations\">\n <div class=\"po-page-list-actions\" [class.po-page-list-actions-padding]=\"filter\">\n <po-button\n *ngIf=\"visibleActions[0]\"\n p-kind=\"primary\"\n [p-disabled]=\"actionIsDisabled(actions[0])\"\n [p-icon]=\"visibleActions[0].icon\"\n [p-label]=\"visibleActions[0].label\"\n (p-click)=\"callAction(visibleActions[0])\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"visibleActions[1] && (visibleActions.length === 2 || !isMobile)\"\n [p-disabled]=\"actionIsDisabled(actions[1])\"\n [p-label]=\"visibleActions[1].label\"\n (p-click)=\"callAction(visibleActions[1])\"\n >\n </po-button>\n\n <po-button\n *ngIf=\"visibleActions.length === 3 && visibleActions[2] && !isMobile\"\n [p-disabled]=\"actionIsDisabled(visibleActions[2])\"\n [p-label]=\"visibleActions[2].label\"\n (p-click)=\"callAction(visibleActions[2])\"\n >\n </po-button>\n\n <po-dropdown\n *ngIf=\"visibleActions.length > limitPrimaryActions\"\n [p-actions]=\"dropdownActions\"\n [p-label]=\"literals.otherActions\"\n >\n </po-dropdown>\n </div>\n\n <!-- FILTER -->\n <div\n class=\"po-page-list-filter-wrapper\"\n *ngIf=\"filter\"\n [ngClass]=\"hasCustomFilterSize() ? filterSizeClass(filter.width) : ''\"\n >\n <div\n class=\"po-field-container-content po-page-filter-content\"\n [ngClass]=\"\n hasCustomFilterSize()\n ? filter.advancedAction\n ? 'po-page-filter-input-variable-size'\n : 'po-page-filter-input-variable-size-wo-adv-search'\n : ''\n \"\n >\n <div class=\"po-field-icon-container-right\">\n <span class=\"po-icon po-icon-search po-field-icon\" (click)=\"callActionFilter('action')\"> </span>\n </div>\n\n <input\n #filterInput\n class=\"po-input po-input-icon-right\"\n name=\"model\"\n type=\"text\"\n [placeholder]=\"filter.placeholder || ''\"\n (keypress)=\"onkeypress($event.keyCode)\"\n />\n </div>\n\n <div class=\"po-page-list-filter-search\" *ngIf=\"filter.advancedAction\">\n <span\n class=\"po-page-list-filter-search-link\"\n tabindex=\"0\"\n (click)=\"callActionFilter('advancedAction')\"\n (keydown.enter)=\"callActionFilter('advancedAction')\"\n >\n {{ advancedSearch }}\n </span>\n </div>\n </div>\n </div>\n\n <!-- DISCLAIMER -->\n <po-disclaimer-group\n *ngIf=\"!!disclaimerGroup\"\n [class.po-page-list-disclaimer-group]=\"!!disclaimerGroup?.disclaimers?.length\"\n [p-disclaimers]=\"disclaimerGroup?.disclaimers\"\n [p-hide-remove-all]=\"disclaimerGroup?.hideRemoveAll\"\n [p-title]=\"disclaimerGroup?.title\"\n (p-change)=\"onChangeDisclaimerGroup($event)\"\n (p-remove)=\"onRemoveDisclaimer($event)\"\n (p-remove-all)=\"onRemoveAllDisclaimers($event)\"\n >\n </po-disclaimer-group>\n </po-page-header>\n\n <!-- CONTENT -->\n <po-page-content>\n <ng-content></ng-content>\n </po-page-content>\n</po-page>\n" }]
|
|
39900
40099
|
}], function () { return [{ type: i0.ViewContainerRef }, { type: PoLanguageService }, { type: i0.Renderer2 }, { type: i2.Router }, { type: i0.ChangeDetectorRef }]; }, { filterInput: [{
|
|
39901
40100
|
type: ViewChild,
|
|
39902
40101
|
args: ['filterInput']
|
|
@@ -45535,5 +45734,5 @@ function initializeLanguageDefault(config, languageService) {
|
|
|
45535
45734
|
* Generated bundle index. Do not edit.
|
|
45536
45735
|
*/
|
|
45537
45736
|
|
|
45538
|
-
export { I18N_CONFIG, InputBoolean, InputRequired, PO_CONTROL_POSITIONS, PoAccordionComponent, PoAccordionItemComponent, PoAccordionModule, PoActiveOverlayModule, PoActiveOverlayService, PoAvatarComponent, PoAvatarModule, PoBreadcrumbComponent, PoBreadcrumbModule, PoButtonComponent, PoButtonGroupComponent, PoButtonGroupModule, PoButtonGroupToggle, PoButtonModule, PoCalendarComponent, PoCalendarMode, PoCalendarModule, PoChartComponent, PoChartModule, PoChartType, PoCheckboxComponent, PoCheckboxGroupComponent, PoCheckboxGroupModule, PoCleanComponent, PoCleanModule, PoColorPaletteModule, PoColorPaletteService, PoComboComponent, PoComboFilterMode, PoComboOptionTemplateDirective, PoComponentInjectorModule, PoComponentInjectorService, PoComponentsModule, PoContainerComponent, PoContainerModule, PoControlPositionModule, PoDateService, PoDateTimeModule, PoDatepickerComponent, PoDatepickerIsoFormat, PoDatepickerModule, PoDatepickerRangeComponent, PoDecimalComponent, PoDialogComponent, PoDialogModule, PoDialogService, PoDialogType, PoDirectivesModule, PoDisclaimerComponent, PoDisclaimerGroupComponent, PoDisclaimerGroupModule, PoDisclaimerModule, PoDividerComponent, PoDividerModule, PoDropdownComponent, PoDropdownModule, PoDynamicFieldType, PoDynamicFormComponent, PoDynamicModule, PoDynamicViewComponent, PoEmailComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoFieldContainerModule, PoFieldModule, PoGaugeComponent, PoGaugeModule, PoGridComponent, PoGridModule, PoGuardsModule, PoHttpInterceptorModule, PoHttpInterceptorService, PoHttpRequestInterceptorService, PoHttpRequestModule, PoI18nModule, PoI18nPipe, PoI18nService, PoIconComponent, PoIconModule, PoInfoComponent, PoInfoModule, PoInfoOrientation, PoInputComponent, PoInterceptorsModule, PoLanguageModule, PoLanguageService, PoListViewComponent, PoListViewContentTemplateDirective, PoListViewDetailTemplateDirective, PoListViewModule, PoLoadingComponent, PoLoadingIconComponent, PoLoadingModule, PoLoadingOverlayComponent, PoLoginComponent, PoLookupComponent, PoLookupModalComponent, PoMenuComponent, PoMenuGlobalService, PoMenuHeaderTemplateDirective, PoMenuModule, PoMenuPanelComponent, PoMenuPanelModule, PoModalComponent, PoModalFooterComponent, PoModalModule, PoModule, PoMultiselectComponent, PoMultiselectFilterMode, PoNavbarComponent, PoNavbarModule, PoNotificationModule, PoNotificationService, PoNumberComponent, PoPageDefaultComponent, PoPageDetailComponent, PoPageEditComponent, PoPageListComponent, PoPageModule, PoPageSlideComponent, PoPasswordComponent, PoPipesModule, PoPopoverComponent, PoPopoverModule, PoPopupComponent, PoPopupModule, PoProgressComponent, PoProgressModule, PoProgressStatus, PoRadioGroupComponent, PoRichTextComponent, PoSelectComponent, PoSelectOptionTemplateDirective, PoServicesModule, PoSlideComponent, PoSlideContentTemplateDirective, PoSlideModule, PoStepComponent, PoStepperComponent, PoStepperModule, PoStepperOrientation, PoStepperStatus, PoSwitchComponent, PoSwitchLabelPosition, PoTabComponent, PoTableCellTemplateDirective, PoTableColumnSortType, PoTableColumnTemplateDirective, PoTableComponent, PoTableModule, PoTableRowTemplateArrowDirection, PoTableRowTemplateDirective, PoTabsComponent, PoTabsModule, PoTagComponent, PoTagModule, PoTagOrientation, PoTagType, PoTextareaComponent, PoTimeModule, PoTimePipe, PoToasterOrientation, PoToasterType, PoToolbarComponent, PoToolbarModule, PoTooltipDirective, PoTooltipModule, PoTreeViewComponent, PoTreeViewModule, PoUploadComponent, PoUrlComponent, PoWidgetComponent, PoWidgetModule, initializeLanguageDefault, poDialogAlertLiteralsDefault, poDialogConfirmLiteralsDefault, poLanguageDefault, poLocaleDecimalSeparatorList, poLocaleDefault, poLocaleThousandSeparatorList, poLocales, returnPoI18nService };
|
|
45737
|
+
export { I18N_CONFIG, InputBoolean, InputRequired, PO_CONTROL_POSITIONS, PoAccordionComponent, PoAccordionItemComponent, PoAccordionModule, PoActiveOverlayModule, PoActiveOverlayService, PoAvatarComponent, PoAvatarModule, PoBreadcrumbComponent, PoBreadcrumbModule, PoButtonComponent, PoButtonGroupComponent, PoButtonGroupModule, PoButtonGroupToggle, PoButtonModule, PoCalendarComponent, PoCalendarMode, PoCalendarModule, PoChartComponent, PoChartModule, PoChartType, PoCheckboxComponent, PoCheckboxGroupComponent, PoCheckboxGroupModule, PoCheckboxModule, PoCleanComponent, PoCleanModule, PoColorPaletteModule, PoColorPaletteService, PoComboComponent, PoComboFilterMode, PoComboOptionTemplateDirective, PoComponentInjectorModule, PoComponentInjectorService, PoComponentsModule, PoContainerComponent, PoContainerModule, PoControlPositionModule, PoDateService, PoDateTimeModule, PoDatepickerComponent, PoDatepickerIsoFormat, PoDatepickerModule, PoDatepickerRangeComponent, PoDecimalComponent, PoDialogComponent, PoDialogModule, PoDialogService, PoDialogType, PoDirectivesModule, PoDisclaimerComponent, PoDisclaimerGroupComponent, PoDisclaimerGroupModule, PoDisclaimerModule, PoDividerComponent, PoDividerModule, PoDropdownComponent, PoDropdownModule, PoDynamicFieldType, PoDynamicFormComponent, PoDynamicModule, PoDynamicViewComponent, PoEmailComponent, PoFieldContainerBottomComponent, PoFieldContainerComponent, PoFieldContainerModule, PoFieldModule, PoGaugeComponent, PoGaugeModule, PoGridComponent, PoGridModule, PoGuardsModule, PoHttpInterceptorModule, PoHttpInterceptorService, PoHttpRequestInterceptorService, PoHttpRequestModule, PoI18nModule, PoI18nPipe, PoI18nService, PoIconComponent, PoIconModule, PoInfoComponent, PoInfoModule, PoInfoOrientation, PoInputComponent, PoInterceptorsModule, PoLanguageModule, PoLanguageService, PoListViewComponent, PoListViewContentTemplateDirective, PoListViewDetailTemplateDirective, PoListViewModule, PoLoadingComponent, PoLoadingIconComponent, PoLoadingModule, PoLoadingOverlayComponent, PoLoginComponent, PoLookupComponent, PoLookupModalComponent, PoMenuComponent, PoMenuGlobalService, PoMenuHeaderTemplateDirective, PoMenuModule, PoMenuPanelComponent, PoMenuPanelModule, PoModalComponent, PoModalFooterComponent, PoModalModule, PoModule, PoMultiselectComponent, PoMultiselectFilterMode, PoNavbarComponent, PoNavbarModule, PoNotificationModule, PoNotificationService, PoNumberComponent, PoPageDefaultComponent, PoPageDetailComponent, PoPageEditComponent, PoPageListComponent, PoPageModule, PoPageSlideComponent, PoPasswordComponent, PoPipesModule, PoPopoverComponent, PoPopoverModule, PoPopupComponent, PoPopupModule, PoProgressComponent, PoProgressModule, PoProgressStatus, PoRadioGroupComponent, PoRichTextComponent, PoSelectComponent, PoSelectOptionTemplateDirective, PoServicesModule, PoSlideComponent, PoSlideContentTemplateDirective, PoSlideModule, PoStepComponent, PoStepperComponent, PoStepperModule, PoStepperOrientation, PoStepperStatus, PoSwitchComponent, PoSwitchLabelPosition, PoTabComponent, PoTableCellTemplateDirective, PoTableColumnSortType, PoTableColumnTemplateDirective, PoTableComponent, PoTableModule, PoTableRowTemplateArrowDirection, PoTableRowTemplateDirective, PoTabsComponent, PoTabsModule, PoTagComponent, PoTagModule, PoTagOrientation, PoTagType, PoTextareaComponent, PoTimeModule, PoTimePipe, PoToasterOrientation, PoToasterType, PoToolbarComponent, PoToolbarModule, PoTooltipDirective, PoTooltipModule, PoTreeViewComponent, PoTreeViewModule, PoUploadComponent, PoUrlComponent, PoWidgetComponent, PoWidgetModule, initializeLanguageDefault, poDialogAlertLiteralsDefault, poDialogConfirmLiteralsDefault, poLanguageDefault, poLocaleDecimalSeparatorList, poLocaleDefault, poLocaleThousandSeparatorList, poLocales, returnPoI18nService };
|
|
45539
45738
|
//# sourceMappingURL=po-ui-ng-components.mjs.map
|