@po-ui/ng-components 15.2.0 → 15.3.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 +5 -2
- package/esm2020/lib/components/po-button/po-button.component.mjs +4 -4
- package/esm2020/lib/components/po-calendar/po-calendar-base.component.mjs +25 -3
- package/esm2020/lib/components/po-calendar/po-calendar.component.mjs +19 -5
- package/esm2020/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-field.interface.mjs +1 -1
- package/esm2020/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.mjs +15 -4
- package/esm2020/lib/components/po-field/po-number/po-number-base.component.mjs +4 -2
- package/esm2020/lib/components/po-image/po-image.component.mjs +1 -1
- package/esm2020/lib/components/po-modal/po-modal-base.component.mjs +5 -2
- package/esm2020/lib/components/po-modal/po-modal.component.mjs +57 -43
- package/esm2020/lib/components/po-modal/po-modal.module.mjs +5 -4
- package/fesm2015/po-ui-ng-components.mjs +131 -60
- package/fesm2015/po-ui-ng-components.mjs.map +1 -1
- package/fesm2020/po-ui-ng-components.mjs +127 -60
- package/fesm2020/po-ui-ng-components.mjs.map +1 -1
- package/lib/components/po-button/po-button-base.component.d.ts +13 -1
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-base.component.d.ts +4 -0
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view-field.interface.d.ts +28 -0
- package/lib/components/po-dynamic/po-dynamic-view/po-dynamic-view.component.d.ts +1 -0
- package/lib/components/po-modal/po-modal-base.component.d.ts +26 -2
- package/lib/components/po-modal/po-modal.module.d.ts +2 -1
- package/package.json +4 -4
- package/po-ui-ng-components-15.3.0.tgz +0 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-update/v14/index.js +1 -1
- package/schematics/ng-update/v15/index.js +1 -1
- package/schematics/ng-update/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-15.2.0.tgz +0 -0
|
@@ -2217,7 +2217,7 @@ class PoButtonBaseComponent {
|
|
|
2217
2217
|
PoButtonBaseComponent.ɵfac = function PoButtonBaseComponent_Factory(t) { return new (t || PoButtonBaseComponent)(); };
|
|
2218
2218
|
PoButtonBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoButtonBaseComponent, hostVars: 3, hostBindings: function PoButtonBaseComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
2219
2219
|
i0.ɵɵattribute("p-danger", ctx.danger)("p-size", ctx.size)("p-kind", ctx.kind);
|
|
2220
|
-
} }, inputs: { label: ["p-label", "label"], icon: ["p-icon", "icon"], loading: ["p-loading", "loading"], small: ["p-small", "small"], danger: ["p-danger", "danger"], size: ["p-size", "size"], kind: ["p-kind", "kind"], disabled: ["p-disabled", "disabled"] }, outputs: { click: "p-click" } });
|
|
2220
|
+
} }, inputs: { label: ["p-label", "label"], icon: ["p-icon", "icon"], loading: ["p-loading", "loading"], small: ["p-small", "small"], danger: ["p-danger", "danger"], size: ["p-size", "size"], kind: ["p-kind", "kind"], disabled: ["p-disabled", "disabled"], ariaLabel: ["p-aria-label", "ariaLabel"] }, outputs: { click: "p-click" } });
|
|
2221
2221
|
__decorate([
|
|
2222
2222
|
InputBoolean()
|
|
2223
2223
|
], PoButtonBaseComponent.prototype, "small", null);
|
|
@@ -2262,6 +2262,9 @@ __decorate([
|
|
|
2262
2262
|
}], disabled: [{
|
|
2263
2263
|
type: Input,
|
|
2264
2264
|
args: ['p-disabled']
|
|
2265
|
+
}], ariaLabel: [{
|
|
2266
|
+
type: Input,
|
|
2267
|
+
args: ['p-aria-label']
|
|
2265
2268
|
}] }); })();
|
|
2266
2269
|
|
|
2267
2270
|
/**
|
|
@@ -2457,7 +2460,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2457
2460
|
} if (rf & 2) {
|
|
2458
2461
|
let _t;
|
|
2459
2462
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.buttonElement = _t.first);
|
|
2460
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
2463
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 10, 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) {
|
|
2461
2464
|
i0.ɵɵelementStart(0, "button", 0, 1);
|
|
2462
2465
|
i0.ɵɵlistener("click", function PoButtonComponent_Template_button_click_0_listener() { return ctx.onClick(); });
|
|
2463
2466
|
i0.ɵɵtemplate(2, PoButtonComponent_div_2_Template, 2, 0, "div", 2);
|
|
@@ -2467,7 +2470,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2467
2470
|
} if (rf & 2) {
|
|
2468
2471
|
i0.ɵɵclassProp("po-button-sm", ctx.small);
|
|
2469
2472
|
i0.ɵɵproperty("disabled", ctx.disabled || ctx.loading);
|
|
2470
|
-
i0.ɵɵattribute("p-size", ctx.size)("p-kind", ctx.kind)("p-danger", ctx.danger);
|
|
2473
|
+
i0.ɵɵattribute("p-size", ctx.size)("p-kind", ctx.kind)("p-danger", ctx.danger)("aria-label", ctx.ariaLabel);
|
|
2471
2474
|
i0.ɵɵadvance(2);
|
|
2472
2475
|
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
2473
2476
|
i0.ɵɵadvance(1);
|
|
@@ -2477,7 +2480,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2477
2480
|
} }, dependencies: [i1.NgIf, PoLoadingIconComponent, PoIconComponent], encapsulation: 2, changeDetection: 0 });
|
|
2478
2481
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoButtonComponent, [{
|
|
2479
2482
|
type: Component,
|
|
2480
|
-
args: [{ selector: 'po-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\r\n #button\r\n class=\"po-button\"\r\n type=\"button\"\r\n [attr.p-size]=\"size\"\r\n [attr.p-kind]=\"kind\"\r\n [attr.p-danger]=\"danger\"\r\n [class.po-button-sm]=\"small\"\r\n [disabled]=\"disabled || loading\"\r\n (click)=\"onClick()\"\r\n>\r\n <div *ngIf=\"loading\" class=\"po-button-loading-icon\">\r\n <po-loading-icon p-neutral-color></po-loading-icon>\r\n </div>\r\n\r\n <po-icon *ngIf=\"icon\" class=\"po-button-icon\" [p-icon]=\"icon\"></po-icon>\r\n <span *ngIf=\"label\" class=\"po-button-label\">{{ label }}</span>\r\n</button>\r\n" }]
|
|
2483
|
+
args: [{ selector: 'po-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\r\n #button\r\n class=\"po-button\"\r\n type=\"button\"\r\n [attr.p-size]=\"size\"\r\n [attr.p-kind]=\"kind\"\r\n [attr.p-danger]=\"danger\"\r\n [class.po-button-sm]=\"small\"\r\n [disabled]=\"disabled || loading\"\r\n [attr.aria-label]=\"ariaLabel\"\r\n (click)=\"onClick()\"\r\n>\r\n <div *ngIf=\"loading\" class=\"po-button-loading-icon\">\r\n <po-loading-icon p-neutral-color></po-loading-icon>\r\n </div>\r\n\r\n <po-icon *ngIf=\"icon\" class=\"po-button-icon\" [p-icon]=\"icon\"></po-icon>\r\n <span *ngIf=\"label\" class=\"po-button-label\">{{ label }}</span>\r\n</button>\r\n" }]
|
|
2481
2484
|
}], null, { buttonElement: [{
|
|
2482
2485
|
type: ViewChild,
|
|
2483
2486
|
args: ['button', { static: true }]
|
|
@@ -4050,10 +4053,32 @@ class PoCalendarBaseComponent {
|
|
|
4050
4053
|
return this.mode === PoCalendarMode.Range;
|
|
4051
4054
|
}
|
|
4052
4055
|
setActivateDate(date) {
|
|
4056
|
+
let newData;
|
|
4057
|
+
if (typeof date !== 'string') {
|
|
4058
|
+
const temporaryDate = new Date(date);
|
|
4059
|
+
const year = temporaryDate.getFullYear();
|
|
4060
|
+
const month = ('0' + (temporaryDate.getMonth() + 1)).slice(-2);
|
|
4061
|
+
const day = ('0' + temporaryDate.getDate()).slice(-2);
|
|
4062
|
+
const formattedDate = `${year}-${month}-${day}`;
|
|
4063
|
+
newData = formattedDate + 'T00:00:00';
|
|
4064
|
+
}
|
|
4065
|
+
else {
|
|
4066
|
+
newData = date + 'T00:00:00';
|
|
4067
|
+
}
|
|
4053
4068
|
const activateDate = date ? date : this.verifyActivateDate();
|
|
4069
|
+
let checkedStart;
|
|
4070
|
+
let checkedEnd;
|
|
4054
4071
|
if (this.isRange) {
|
|
4055
|
-
|
|
4056
|
-
|
|
4072
|
+
if (new Date(newData).getDate() > 28) {
|
|
4073
|
+
checkedStart = new Date(activateDate);
|
|
4074
|
+
checkedEnd = new Date(checkedStart.getFullYear(), checkedStart.getMonth() + 1, 0, 23, 59, 59, 999);
|
|
4075
|
+
checkedEnd.setMilliseconds(checkedEnd.getMilliseconds() + 1);
|
|
4076
|
+
}
|
|
4077
|
+
else {
|
|
4078
|
+
checkedStart =
|
|
4079
|
+
typeof activateDate === 'string' ? this.poDate.convertIsoToDate(activateDate) : new Date(activateDate);
|
|
4080
|
+
checkedEnd = new Date(new Date(checkedStart).setMonth(checkedStart.getMonth() + 1));
|
|
4081
|
+
}
|
|
4057
4082
|
this.activateDate = { start: checkedStart, end: checkedEnd };
|
|
4058
4083
|
}
|
|
4059
4084
|
else {
|
|
@@ -4968,13 +4993,27 @@ class PoCalendarComponent extends PoCalendarBaseComponent {
|
|
|
4968
4993
|
const { start, end } = this.activateDate;
|
|
4969
4994
|
if (partType === 'end') {
|
|
4970
4995
|
const newYear = month === 0 ? year - 1 : year;
|
|
4971
|
-
|
|
4972
|
-
|
|
4996
|
+
const daysInMonth = new Date(newYear, month, 0).getDate();
|
|
4997
|
+
if (year !== newYear) {
|
|
4998
|
+
newStart = new Date(year, month - 1, Math.min(start.getDate(), daysInMonth));
|
|
4999
|
+
newEnd = new Date(year, month, Math.min(end.getDate(), daysInMonth));
|
|
5000
|
+
}
|
|
5001
|
+
else {
|
|
5002
|
+
newStart = new Date(newYear, month - 1, Math.min(start.getDate(), daysInMonth));
|
|
5003
|
+
newEnd = new Date(newYear, month, Math.min(end.getDate(), daysInMonth));
|
|
5004
|
+
}
|
|
4973
5005
|
}
|
|
4974
5006
|
else {
|
|
4975
5007
|
const newYear = month === 11 ? year + 1 : year;
|
|
4976
|
-
|
|
4977
|
-
|
|
5008
|
+
const daysInMonth = new Date(newYear, month + 1, 0).getDate();
|
|
5009
|
+
if (year !== newYear) {
|
|
5010
|
+
newEnd = new Date(year, month + 1, Math.min(end.getDate(), daysInMonth));
|
|
5011
|
+
newStart = new Date(year, month, Math.min(start.getDate(), daysInMonth));
|
|
5012
|
+
}
|
|
5013
|
+
else {
|
|
5014
|
+
newEnd = new Date(newYear, month + 1, Math.min(end.getDate(), daysInMonth));
|
|
5015
|
+
newStart = new Date(newYear, month, Math.min(start.getDate(), daysInMonth));
|
|
5016
|
+
}
|
|
4978
5017
|
}
|
|
4979
5018
|
this.activateDate = { start: newStart, end: newEnd };
|
|
4980
5019
|
}
|
|
@@ -13364,7 +13403,7 @@ class PoModalBaseComponent {
|
|
|
13364
13403
|
}
|
|
13365
13404
|
}
|
|
13366
13405
|
PoModalBaseComponent.ɵfac = function PoModalBaseComponent_Factory(t) { return new (t || PoModalBaseComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
13367
|
-
PoModalBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoModalBaseComponent, inputs: { title: ["p-title", "title"], primaryAction: ["p-primary-action", "primaryAction"], secondaryAction: ["p-secondary-action", "secondaryAction"], size: ["p-size", "size"], setClickOut: ["p-click-out", "setClickOut"], hideClose: ["p-hide-close", "hideClose"] }, outputs: { closeModal: "p-close" } });
|
|
13406
|
+
PoModalBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoModalBaseComponent, inputs: { title: ["p-title", "title"], primaryAction: ["p-primary-action", "primaryAction"], secondaryAction: ["p-secondary-action", "secondaryAction"], size: ["p-size", "size"], setClickOut: ["p-click-out", "setClickOut"], hideClose: ["p-hide-close", "hideClose"], icon: ["p-icon", "icon"] }, outputs: { closeModal: "p-close" } });
|
|
13368
13407
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoModalBaseComponent, [{
|
|
13369
13408
|
type: Directive
|
|
13370
13409
|
}], function () { return [{ type: PoLanguageService }]; }, { title: [{
|
|
@@ -13388,6 +13427,9 @@ PoModalBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoModa
|
|
|
13388
13427
|
}], hideClose: [{
|
|
13389
13428
|
type: Input,
|
|
13390
13429
|
args: ['p-hide-close']
|
|
13430
|
+
}], icon: [{
|
|
13431
|
+
type: Input,
|
|
13432
|
+
args: ['p-icon']
|
|
13391
13433
|
}] }); })();
|
|
13392
13434
|
|
|
13393
13435
|
const _c0$10 = ["*"];
|
|
@@ -13455,69 +13497,82 @@ PoActiveOverlayService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: P
|
|
|
13455
13497
|
}], null, null); })();
|
|
13456
13498
|
|
|
13457
13499
|
const _c0$$ = ["modalContent"];
|
|
13458
|
-
function
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
|
|
13462
|
-
i0.ɵɵ
|
|
13500
|
+
function PoModalComponent_div_0_po_icon_8_Template(rf, ctx) { if (rf & 1) {
|
|
13501
|
+
i0.ɵɵelement(0, "po-icon", 15);
|
|
13502
|
+
} if (rf & 2) {
|
|
13503
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
13504
|
+
i0.ɵɵproperty("p-icon", ctx_r2.icon);
|
|
13505
|
+
} }
|
|
13506
|
+
function PoModalComponent_div_0_po_button_11_Template(rf, ctx) { if (rf & 1) {
|
|
13507
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
13508
|
+
i0.ɵɵelementStart(0, "po-button", 16);
|
|
13509
|
+
i0.ɵɵlistener("p-click", function PoModalComponent_div_0_po_button_11_Template_po_button_p_click_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r7 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r7.close(true)); });
|
|
13463
13510
|
i0.ɵɵelementEnd();
|
|
13511
|
+
} if (rf & 2) {
|
|
13512
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
13513
|
+
i0.ɵɵproperty("p-aria-label", ctx_r3.literals.close);
|
|
13464
13514
|
} }
|
|
13465
|
-
function
|
|
13515
|
+
function PoModalComponent_div_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
13466
13516
|
i0.ɵɵelementContainerStart(0);
|
|
13467
13517
|
i0.ɵɵprojection(1, 1);
|
|
13468
13518
|
i0.ɵɵelementContainerEnd();
|
|
13469
13519
|
} }
|
|
13470
|
-
function
|
|
13471
|
-
const
|
|
13472
|
-
i0.ɵɵelementStart(0, "po-button",
|
|
13473
|
-
i0.ɵɵlistener("p-click", function
|
|
13520
|
+
function PoModalComponent_div_0_ng_template_15_po_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
13521
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
13522
|
+
i0.ɵɵelementStart(0, "po-button", 20);
|
|
13523
|
+
i0.ɵɵlistener("p-click", function PoModalComponent_div_0_ng_template_15_po_button_2_Template_po_button_p_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r10.secondaryAction.action()); });
|
|
13474
13524
|
i0.ɵɵelementEnd();
|
|
13475
13525
|
} if (rf & 2) {
|
|
13476
|
-
const
|
|
13477
|
-
i0.ɵɵproperty("p-danger",
|
|
13526
|
+
const ctx_r9 = i0.ɵɵnextContext(3);
|
|
13527
|
+
i0.ɵɵproperty("p-danger", ctx_r9.getSecondaryActionButtonDanger())("p-disabled", ctx_r9.secondaryAction.disabled)("p-label", ctx_r9.secondaryAction.label)("p-loading", ctx_r9.secondaryAction.loading);
|
|
13478
13528
|
} }
|
|
13479
|
-
function
|
|
13480
|
-
const
|
|
13481
|
-
i0.ɵɵelementStart(0, "po-modal-footer");
|
|
13482
|
-
i0.ɵɵtemplate(
|
|
13483
|
-
i0.ɵɵelementStart(
|
|
13484
|
-
i0.ɵɵlistener("p-click", function
|
|
13485
|
-
i0.ɵɵelementEnd()();
|
|
13529
|
+
function PoModalComponent_div_0_ng_template_15_Template(rf, ctx) { if (rf & 1) {
|
|
13530
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
13531
|
+
i0.ɵɵelementStart(0, "po-modal-footer")(1, "div", 17);
|
|
13532
|
+
i0.ɵɵtemplate(2, PoModalComponent_div_0_ng_template_15_po_button_2_Template, 1, 4, "po-button", 18);
|
|
13533
|
+
i0.ɵɵelementStart(3, "po-button", 19);
|
|
13534
|
+
i0.ɵɵlistener("p-click", function PoModalComponent_div_0_ng_template_15_Template_po_button_p_click_3_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r12.primaryAction.action()); });
|
|
13535
|
+
i0.ɵɵelementEnd()()();
|
|
13486
13536
|
} if (rf & 2) {
|
|
13487
|
-
const
|
|
13488
|
-
i0.ɵɵadvance(
|
|
13489
|
-
i0.ɵɵproperty("ngIf",
|
|
13537
|
+
const ctx_r6 = i0.ɵɵnextContext(2);
|
|
13538
|
+
i0.ɵɵadvance(2);
|
|
13539
|
+
i0.ɵɵproperty("ngIf", ctx_r6.secondaryAction);
|
|
13490
13540
|
i0.ɵɵadvance(1);
|
|
13491
|
-
i0.ɵɵproperty("p-danger",
|
|
13541
|
+
i0.ɵɵproperty("p-danger", ctx_r6.primaryAction.danger)("p-disabled", ctx_r6.primaryAction.disabled)("p-label", ctx_r6.primaryAction.label)("p-loading", ctx_r6.primaryAction.loading);
|
|
13492
13542
|
} }
|
|
13493
13543
|
function PoModalComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
13494
|
-
const
|
|
13544
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
13495
13545
|
i0.ɵɵelementStart(0, "div", 1);
|
|
13496
|
-
i0.ɵɵlistener("keydown.esc", function PoModalComponent_div_0_Template_div_keydown_esc_0_listener($event) { i0.ɵɵrestoreView(
|
|
13497
|
-
i0.ɵɵelementStart(1, "div", 2)
|
|
13498
|
-
i0.ɵɵlistener("mousedown", function
|
|
13499
|
-
i0.ɵɵelementStart(3, "div", 4)(4, "div", 5, 6)(6, "div", 7)(7, "div", 8);
|
|
13500
|
-
i0.ɵɵtext(8);
|
|
13546
|
+
i0.ɵɵlistener("keydown.esc", function PoModalComponent_div_0_Template_div_keydown_esc_0_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r14 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r14.closeModalOnEscapeKey($event)); });
|
|
13547
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
13548
|
+
i0.ɵɵlistener("mousedown", function PoModalComponent_div_0_Template_div_mousedown_1_listener($event) { i0.ɵɵrestoreView(_r15); const ctx_r16 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r16.onClickOut($event)); });
|
|
13501
13549
|
i0.ɵɵelementEnd();
|
|
13502
|
-
i0.ɵɵ
|
|
13550
|
+
i0.ɵɵelementStart(2, "div", 3)(3, "div", 4)(4, "div", 5, 6)(6, "div", 7)(7, "div", 8);
|
|
13551
|
+
i0.ɵɵtemplate(8, PoModalComponent_div_0_po_icon_8_Template, 1, 1, "po-icon", 9);
|
|
13552
|
+
i0.ɵɵelementStart(9, "div", 10);
|
|
13553
|
+
i0.ɵɵtext(10);
|
|
13554
|
+
i0.ɵɵelementEnd()();
|
|
13555
|
+
i0.ɵɵtemplate(11, PoModalComponent_div_0_po_button_11_Template, 1, 1, "po-button", 11);
|
|
13503
13556
|
i0.ɵɵelementEnd();
|
|
13504
|
-
i0.ɵɵelementStart(
|
|
13505
|
-
i0.ɵɵprojection(
|
|
13557
|
+
i0.ɵɵelementStart(12, "div", 12);
|
|
13558
|
+
i0.ɵɵprojection(13);
|
|
13506
13559
|
i0.ɵɵelementEnd();
|
|
13507
|
-
i0.ɵɵtemplate(
|
|
13508
|
-
i0.ɵɵtemplate(
|
|
13509
|
-
i0.ɵɵelementEnd()()()()
|
|
13560
|
+
i0.ɵɵtemplate(14, PoModalComponent_div_0_ng_container_14_Template, 2, 0, "ng-container", 13);
|
|
13561
|
+
i0.ɵɵtemplate(15, PoModalComponent_div_0_ng_template_15_Template, 4, 5, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
|
|
13562
|
+
i0.ɵɵelementEnd()()()();
|
|
13510
13563
|
} if (rf & 2) {
|
|
13511
|
-
const
|
|
13564
|
+
const _r5 = i0.ɵɵreference(16);
|
|
13512
13565
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
13513
13566
|
i0.ɵɵadvance(4);
|
|
13514
13567
|
i0.ɵɵclassMapInterpolate1("po-modal-content po-modal-", ctx_r0.size, "");
|
|
13515
13568
|
i0.ɵɵadvance(4);
|
|
13569
|
+
i0.ɵɵproperty("ngIf", ctx_r0.icon);
|
|
13570
|
+
i0.ɵɵadvance(2);
|
|
13516
13571
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
|
|
13517
13572
|
i0.ɵɵadvance(1);
|
|
13518
13573
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideClose);
|
|
13519
13574
|
i0.ɵɵadvance(3);
|
|
13520
|
-
i0.ɵɵproperty("ngIf", ctx_r0.modalFooter)("ngIfElse",
|
|
13575
|
+
i0.ɵɵproperty("ngIf", ctx_r0.modalFooter)("ngIfElse", _r5);
|
|
13521
13576
|
} }
|
|
13522
13577
|
const _c1$s = ["*", [["po-modal-footer"]]];
|
|
13523
13578
|
const _c2$a = ["*", "po-modal-footer"];
|
|
@@ -13622,15 +13677,15 @@ PoModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalCom
|
|
|
13622
13677
|
} if (rf & 2) {
|
|
13623
13678
|
let _t;
|
|
13624
13679
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modalContent = _t.first);
|
|
13625
|
-
} }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c2$a, 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"
|
|
13680
|
+
} }, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c2$a, 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", 3, "mousedown"], [1, "po-modal-container", "po-pb-2", "po-pt-2"], [1, "po-modal-vertical-align"], ["tabindex", "-1"], ["modalContent", ""], [1, "po-modal-header"], [1, "po-modal-title", "po-text-ellipsis"], [3, "p-icon", 4, "ngIf"], [1, "po-text-ellipsis"], ["p-icon", "po-icon po-icon-close", "p-kind", "tertiary", 3, "p-aria-label", "p-click", 4, "ngIf"], [1, "po-modal-body"], [4, "ngIf", "ngIfElse"], ["defaultModalFooterTemplate", ""], [3, "p-icon"], ["p-icon", "po-icon po-icon-close", "p-kind", "tertiary", 3, "p-aria-label", "p-click"], [1, "po-modal-footer-basic"], ["p-kind", "secondary", 3, "p-danger", "p-disabled", "p-label", "p-loading", "p-click", 4, "ngIf"], ["p-kind", "primary", 1, "po-button-modal-first-action", 3, "p-danger", "p-disabled", "p-label", "p-loading", "p-click"], ["p-kind", "secondary", 3, "p-danger", "p-disabled", "p-label", "p-loading", "p-click"]], template: function PoModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
13626
13681
|
i0.ɵɵprojectionDef(_c1$s);
|
|
13627
|
-
i0.ɵɵtemplate(0, PoModalComponent_div_0_Template,
|
|
13682
|
+
i0.ɵɵtemplate(0, PoModalComponent_div_0_Template, 17, 8, "div", 0);
|
|
13628
13683
|
} if (rf & 2) {
|
|
13629
13684
|
i0.ɵɵproperty("ngIf", !ctx.isHidden);
|
|
13630
|
-
} }, dependencies: [i1.NgIf, PoButtonComponent, PoModalFooterComponent], encapsulation: 2 });
|
|
13685
|
+
} }, dependencies: [i1.NgIf, PoButtonComponent, PoIconComponent, PoModalFooterComponent], encapsulation: 2 });
|
|
13631
13686
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoModalComponent, [{
|
|
13632
13687
|
type: Component,
|
|
13633
|
-
args: [{ selector: 'po-modal', template: "<div *ngIf=\"!isHidden\" class=\"po-modal\" tabindex=\"0\" (keydown.esc)=\"closeModalOnEscapeKey($event)\">\r\n <div class=\"po-modal-overlay\">\r\n
|
|
13688
|
+
args: [{ selector: 'po-modal', template: "<div *ngIf=\"!isHidden\" class=\"po-modal\" tabindex=\"0\" (keydown.esc)=\"closeModalOnEscapeKey($event)\">\r\n <div class=\"po-modal-overlay\" (mousedown)=\"onClickOut($event)\"></div>\r\n <div class=\"po-modal-container po-pb-2 po-pt-2\">\r\n <div class=\"po-modal-vertical-align\">\r\n <div #modalContent class=\"po-modal-content po-modal-{{ size }}\" tabindex=\"-1\">\r\n <div class=\"po-modal-header\">\r\n <div class=\"po-modal-title po-text-ellipsis\">\r\n <po-icon *ngIf=\"icon\" [p-icon]=\"icon\"></po-icon>\r\n <div class=\"po-text-ellipsis\">\r\n {{ title }}\r\n </div>\r\n </div>\r\n <po-button\r\n *ngIf=\"!hideClose\"\r\n [p-aria-label]=\"literals.close\"\r\n p-icon=\"po-icon po-icon-close\"\r\n (p-click)=\"close(true)\"\r\n p-kind=\"tertiary\"\r\n >\r\n </po-button>\r\n </div>\r\n\r\n <div class=\"po-modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <ng-container *ngIf=\"modalFooter; else defaultModalFooterTemplate\">\r\n <ng-content select=\"po-modal-footer\"></ng-content>\r\n </ng-container>\r\n\r\n <ng-template #defaultModalFooterTemplate>\r\n <po-modal-footer>\r\n <div class=\"po-modal-footer-basic\">\r\n <po-button\r\n *ngIf=\"secondaryAction\"\r\n [p-danger]=\"getSecondaryActionButtonDanger()\"\r\n [p-disabled]=\"secondaryAction.disabled\"\r\n [p-label]=\"secondaryAction.label\"\r\n [p-loading]=\"secondaryAction.loading\"\r\n p-kind=\"secondary\"\r\n (p-click)=\"secondaryAction.action()\"\r\n >\r\n </po-button>\r\n\r\n <po-button\r\n class=\"po-button-modal-first-action\"\r\n [p-danger]=\"primaryAction.danger\"\r\n [p-disabled]=\"primaryAction.disabled\"\r\n [p-label]=\"primaryAction.label\"\r\n [p-loading]=\"primaryAction.loading\"\r\n p-kind=\"primary\"\r\n (p-click)=\"primaryAction.action()\"\r\n >\r\n </po-button>\r\n </div>\r\n </po-modal-footer>\r\n </ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
13634
13689
|
}], function () { return [{ type: PoActiveOverlayService }, { type: PoLanguageService }]; }, { modalContent: [{
|
|
13635
13690
|
type: ViewChild,
|
|
13636
13691
|
args: ['modalContent', { read: ElementRef }]
|
|
@@ -13647,16 +13702,16 @@ class PoModalModule {
|
|
|
13647
13702
|
}
|
|
13648
13703
|
PoModalModule.ɵfac = function PoModalModule_Factory(t) { return new (t || PoModalModule)(); };
|
|
13649
13704
|
PoModalModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoModalModule });
|
|
13650
|
-
PoModalModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, PoButtonModule] });
|
|
13705
|
+
PoModalModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, PoButtonModule, PoIconModule] });
|
|
13651
13706
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoModalModule, [{
|
|
13652
13707
|
type: NgModule,
|
|
13653
13708
|
args: [{
|
|
13654
|
-
imports: [CommonModule, PoButtonModule],
|
|
13709
|
+
imports: [CommonModule, PoButtonModule, PoIconModule],
|
|
13655
13710
|
declarations: [PoModalComponent, PoModalFooterComponent],
|
|
13656
13711
|
exports: [PoModalComponent, PoModalFooterComponent]
|
|
13657
13712
|
}]
|
|
13658
13713
|
}], null, null); })();
|
|
13659
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoModalModule, { declarations: [PoModalComponent, PoModalFooterComponent], imports: [CommonModule, PoButtonModule], exports: [PoModalComponent, PoModalFooterComponent] }); })();
|
|
13714
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoModalModule, { declarations: [PoModalComponent, PoModalFooterComponent], imports: [CommonModule, PoButtonModule, PoIconModule], exports: [PoModalComponent, PoModalFooterComponent] }); })();
|
|
13660
13715
|
|
|
13661
13716
|
class PoProgressBarComponent {
|
|
13662
13717
|
get valueScale() {
|
|
@@ -31476,7 +31531,9 @@ class PoNumberBaseComponent extends PoInputGeneric {
|
|
|
31476
31531
|
'Up',
|
|
31477
31532
|
'Down',
|
|
31478
31533
|
'Tab',
|
|
31479
|
-
'Delete'
|
|
31534
|
+
'Delete',
|
|
31535
|
+
'Home',
|
|
31536
|
+
'End'
|
|
31480
31537
|
];
|
|
31481
31538
|
return controlKeys.indexOf(event.key) !== -1;
|
|
31482
31539
|
}
|
|
@@ -35053,13 +35110,15 @@ function PoDynamicViewComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
35053
35110
|
i0.ɵɵelement(0, "po-info", 9);
|
|
35054
35111
|
} if (rf & 2) {
|
|
35055
35112
|
const field_r12 = ctx.$implicit;
|
|
35056
|
-
i0.ɵɵ
|
|
35113
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
35114
|
+
i0.ɵɵproperty("ngClass", field_r12.cssClass)("p-label", field_r12.label)("p-value", ctx_r2.setFieldValue(field_r12));
|
|
35057
35115
|
} }
|
|
35058
35116
|
function PoDynamicViewComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
35059
35117
|
i0.ɵɵelement(0, "po-tag", 10);
|
|
35060
35118
|
} if (rf & 2) {
|
|
35061
35119
|
const field_r13 = ctx.$implicit;
|
|
35062
|
-
|
|
35120
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
35121
|
+
i0.ɵɵproperty("ngClass", field_r13.cssClass)("p-color", field_r13.color)("p-icon", field_r13.icon)("p-inverse", field_r13.inverse)("p-label", field_r13.label)("p-value", ctx_r4.setFieldValue(field_r13));
|
|
35063
35122
|
} }
|
|
35064
35123
|
function PoDynamicViewComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
35065
35124
|
i0.ɵɵelement(0, "po-image", 11);
|
|
@@ -35101,6 +35160,15 @@ class PoDynamicViewComponent extends PoDynamicViewBaseComponent {
|
|
|
35101
35160
|
this.updateValuesAndFieldsOnLoad();
|
|
35102
35161
|
}
|
|
35103
35162
|
}
|
|
35163
|
+
setFieldValue(field) {
|
|
35164
|
+
if (field.options) {
|
|
35165
|
+
const selectedOption = field.options.find(option => option.value === field.value);
|
|
35166
|
+
return selectedOption ? selectedOption.label : field.value;
|
|
35167
|
+
}
|
|
35168
|
+
else {
|
|
35169
|
+
return field.value;
|
|
35170
|
+
}
|
|
35171
|
+
}
|
|
35104
35172
|
async getValuesAndFieldsFromLoad() {
|
|
35105
35173
|
let valueAndFieldsFromLoad;
|
|
35106
35174
|
if (typeof this.load === 'string') {
|
|
@@ -35154,7 +35222,7 @@ PoDynamicViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDy
|
|
|
35154
35222
|
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, PoDividerComponent, PoInfoComponent, PoTagComponent, PoImageComponent], encapsulation: 2 });
|
|
35155
35223
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDynamicViewComponent, [{
|
|
35156
35224
|
type: Component,
|
|
35157
|
-
args: [{ selector: 'po-dynamic-view', template: "<div class=\"po-dynamic-view po-row\" *ngIf=\"visibleFields.length\">\r\n <ng-template ngFor let-field [ngForOf]=\"visibleFields\">\r\n <po-divider *ngIf=\"field?.divider?.trim()\" class=\"po-sm-12\" [p-label]=\"field.divider\"> </po-divider>\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n !field.tag && !field.image ? poInfo : !field.image ? poTag : poImage;\r\n context: { $implicit: field }\r\n \"\r\n >\r\n </ng-container>\r\n </ng-template>\r\n</div>\r\n\r\n<ng-template #poInfo let-field>\r\n <po-info [ngClass]=\"field.cssClass\" [p-label]=\"field.label\" [p-value]=\"field
|
|
35225
|
+
args: [{ selector: 'po-dynamic-view', template: "<div class=\"po-dynamic-view po-row\" *ngIf=\"visibleFields.length\">\r\n <ng-template ngFor let-field [ngForOf]=\"visibleFields\">\r\n <po-divider *ngIf=\"field?.divider?.trim()\" class=\"po-sm-12\" [p-label]=\"field.divider\"> </po-divider>\r\n\r\n <ng-container\r\n *ngTemplateOutlet=\"\r\n !field.tag && !field.image ? poInfo : !field.image ? poTag : poImage;\r\n context: { $implicit: field }\r\n \"\r\n >\r\n </ng-container>\r\n </ng-template>\r\n</div>\r\n\r\n<ng-template #poInfo let-field>\r\n <po-info [ngClass]=\"field.cssClass\" [p-label]=\"field.label\" [p-value]=\"setFieldValue(field)\"> </po-info>\r\n</ng-template>\r\n\r\n<ng-template #poTag let-field>\r\n <po-tag\r\n [ngClass]=\"field.cssClass\"\r\n [p-color]=\"field.color\"\r\n [p-icon]=\"field.icon\"\r\n [p-inverse]=\"field.inverse\"\r\n [p-label]=\"field.label\"\r\n [p-value]=\"setFieldValue(field)\"\r\n >\r\n </po-tag>\r\n</ng-template>\r\n\r\n<ng-template #poImage let-field>\r\n <po-image [p-alt]=\"field.alt\" [p-height]=\"field.height\" [p-src]=\"field.value\"> </po-image>\r\n</ng-template>\r\n" }]
|
|
35158
35226
|
}], function () { return [{ type: i1.CurrencyPipe }, { type: i1.DatePipe }, { type: i1.DecimalPipe }, { type: PoTimePipe }, { type: i1.TitleCasePipe }, { type: PoDynamicViewService }]; }, null); })();
|
|
35159
35227
|
|
|
35160
35228
|
/**
|
|
@@ -48065,4 +48133,3 @@ function initializeLanguageDefault(config, languageService) {
|
|
|
48065
48133
|
|
|
48066
48134
|
export { ForceOptionComponentEnum, 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, PoCheckboxSize, 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, PoDividerSize, 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, PoImageComponent, PoImageModule, PoInfoComponent, PoInfoModule, PoInfoOrientation, PoInputComponent, PoInterceptorsModule, PoItemListComponent, PoLabelComponent, PoLabelModule, PoLanguageModule, PoLanguageService, PoLinkComponent, PoLinkModule, PoListBoxComponent, PoListBoxModule, PoListViewComponent, PoListViewContentTemplateDirective, PoListViewDetailTemplateDirective, PoListViewModule, PoLoadingComponent, PoLoadingIconComponent, PoLoadingModule, PoLoadingOverlayComponent, PoLoginComponent, PoLogoComponent, PoLogoModule, 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, PoRadioComponent, PoRadioGroupComponent, PoRichTextComponent, PoSelectComponent, 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, poLocaleDateSeparatorList, poLocaleDecimalSeparatorList, poLocaleDefault, poLocaleThousandSeparatorList, poLocales, poTabsLiterals, returnPoI18nService };
|
|
48067
48135
|
//# sourceMappingURL=po-ui-ng-components.mjs.map
|
|
48068
|
-
//# sourceMappingURL=po-ui-ng-components.mjs.map
|