@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
|
@@ -2341,7 +2341,7 @@ PoButtonBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoBut
|
|
|
2341
2341
|
if (rf & 2) {
|
|
2342
2342
|
i0.ɵɵattribute("p-danger", ctx.danger)("p-size", ctx.size)("p-kind", ctx.kind);
|
|
2343
2343
|
}
|
|
2344
|
-
}, 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" } });
|
|
2344
|
+
}, 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" } });
|
|
2345
2345
|
__decorate([
|
|
2346
2346
|
InputBoolean()
|
|
2347
2347
|
], PoButtonBaseComponent.prototype, "small", null);
|
|
@@ -2387,6 +2387,9 @@ __decorate([
|
|
|
2387
2387
|
}], disabled: [{
|
|
2388
2388
|
type: Input,
|
|
2389
2389
|
args: ['p-disabled']
|
|
2390
|
+
}], ariaLabel: [{
|
|
2391
|
+
type: Input,
|
|
2392
|
+
args: ['p-aria-label']
|
|
2390
2393
|
}] });
|
|
2391
2394
|
})();
|
|
2392
2395
|
|
|
@@ -2609,7 +2612,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2609
2612
|
let _t;
|
|
2610
2613
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.buttonElement = _t.first);
|
|
2611
2614
|
}
|
|
2612
|
-
}, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars:
|
|
2615
|
+
}, 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) {
|
|
2613
2616
|
if (rf & 1) {
|
|
2614
2617
|
i0.ɵɵelementStart(0, "button", 0, 1);
|
|
2615
2618
|
i0.ɵɵlistener("click", function PoButtonComponent_Template_button_click_0_listener() { return ctx.onClick(); });
|
|
@@ -2621,7 +2624,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2621
2624
|
if (rf & 2) {
|
|
2622
2625
|
i0.ɵɵclassProp("po-button-sm", ctx.small);
|
|
2623
2626
|
i0.ɵɵproperty("disabled", ctx.disabled || ctx.loading);
|
|
2624
|
-
i0.ɵɵattribute("p-size", ctx.size)("p-kind", ctx.kind)("p-danger", ctx.danger);
|
|
2627
|
+
i0.ɵɵattribute("p-size", ctx.size)("p-kind", ctx.kind)("p-danger", ctx.danger)("aria-label", ctx.ariaLabel);
|
|
2625
2628
|
i0.ɵɵadvance(2);
|
|
2626
2629
|
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
2627
2630
|
i0.ɵɵadvance(1);
|
|
@@ -2633,7 +2636,7 @@ PoButtonComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoButtonC
|
|
|
2633
2636
|
(function () {
|
|
2634
2637
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoButtonComponent, [{
|
|
2635
2638
|
type: Component,
|
|
2636
|
-
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" }]
|
|
2639
|
+
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" }]
|
|
2637
2640
|
}], null, { buttonElement: [{
|
|
2638
2641
|
type: ViewChild,
|
|
2639
2642
|
args: ['button', { static: true }]
|
|
@@ -4260,10 +4263,32 @@ class PoCalendarBaseComponent {
|
|
|
4260
4263
|
return this.mode === PoCalendarMode.Range;
|
|
4261
4264
|
}
|
|
4262
4265
|
setActivateDate(date) {
|
|
4266
|
+
let newData;
|
|
4267
|
+
if (typeof date !== 'string') {
|
|
4268
|
+
const temporaryDate = new Date(date);
|
|
4269
|
+
const year = temporaryDate.getFullYear();
|
|
4270
|
+
const month = ('0' + (temporaryDate.getMonth() + 1)).slice(-2);
|
|
4271
|
+
const day = ('0' + temporaryDate.getDate()).slice(-2);
|
|
4272
|
+
const formattedDate = `${year}-${month}-${day}`;
|
|
4273
|
+
newData = formattedDate + 'T00:00:00';
|
|
4274
|
+
}
|
|
4275
|
+
else {
|
|
4276
|
+
newData = date + 'T00:00:00';
|
|
4277
|
+
}
|
|
4263
4278
|
const activateDate = date ? date : this.verifyActivateDate();
|
|
4279
|
+
let checkedStart;
|
|
4280
|
+
let checkedEnd;
|
|
4264
4281
|
if (this.isRange) {
|
|
4265
|
-
|
|
4266
|
-
|
|
4282
|
+
if (new Date(newData).getDate() > 28) {
|
|
4283
|
+
checkedStart = new Date(activateDate);
|
|
4284
|
+
checkedEnd = new Date(checkedStart.getFullYear(), checkedStart.getMonth() + 1, 0, 23, 59, 59, 999);
|
|
4285
|
+
checkedEnd.setMilliseconds(checkedEnd.getMilliseconds() + 1);
|
|
4286
|
+
}
|
|
4287
|
+
else {
|
|
4288
|
+
checkedStart =
|
|
4289
|
+
typeof activateDate === 'string' ? this.poDate.convertIsoToDate(activateDate) : new Date(activateDate);
|
|
4290
|
+
checkedEnd = new Date(new Date(checkedStart).setMonth(checkedStart.getMonth() + 1));
|
|
4291
|
+
}
|
|
4267
4292
|
this.activateDate = { start: checkedStart, end: checkedEnd };
|
|
4268
4293
|
}
|
|
4269
4294
|
else {
|
|
@@ -5245,13 +5270,27 @@ class PoCalendarComponent extends PoCalendarBaseComponent {
|
|
|
5245
5270
|
const { start, end } = this.activateDate;
|
|
5246
5271
|
if (partType === 'end') {
|
|
5247
5272
|
const newYear = month === 0 ? year - 1 : year;
|
|
5248
|
-
|
|
5249
|
-
|
|
5273
|
+
const daysInMonth = new Date(newYear, month, 0).getDate();
|
|
5274
|
+
if (year !== newYear) {
|
|
5275
|
+
newStart = new Date(year, month - 1, Math.min(start.getDate(), daysInMonth));
|
|
5276
|
+
newEnd = new Date(year, month, Math.min(end.getDate(), daysInMonth));
|
|
5277
|
+
}
|
|
5278
|
+
else {
|
|
5279
|
+
newStart = new Date(newYear, month - 1, Math.min(start.getDate(), daysInMonth));
|
|
5280
|
+
newEnd = new Date(newYear, month, Math.min(end.getDate(), daysInMonth));
|
|
5281
|
+
}
|
|
5250
5282
|
}
|
|
5251
5283
|
else {
|
|
5252
5284
|
const newYear = month === 11 ? year + 1 : year;
|
|
5253
|
-
|
|
5254
|
-
|
|
5285
|
+
const daysInMonth = new Date(newYear, month + 1, 0).getDate();
|
|
5286
|
+
if (year !== newYear) {
|
|
5287
|
+
newEnd = new Date(year, month + 1, Math.min(end.getDate(), daysInMonth));
|
|
5288
|
+
newStart = new Date(year, month, Math.min(start.getDate(), daysInMonth));
|
|
5289
|
+
}
|
|
5290
|
+
else {
|
|
5291
|
+
newEnd = new Date(newYear, month + 1, Math.min(end.getDate(), daysInMonth));
|
|
5292
|
+
newStart = new Date(newYear, month, Math.min(start.getDate(), daysInMonth));
|
|
5293
|
+
}
|
|
5255
5294
|
}
|
|
5256
5295
|
this.activateDate = { start: newStart, end: newEnd };
|
|
5257
5296
|
}
|
|
@@ -14100,7 +14139,7 @@ class PoModalBaseComponent {
|
|
|
14100
14139
|
}
|
|
14101
14140
|
}
|
|
14102
14141
|
PoModalBaseComponent.ɵfac = function PoModalBaseComponent_Factory(t) { return new (t || PoModalBaseComponent)(i0.ɵɵdirectiveInject(PoLanguageService)); };
|
|
14103
|
-
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" } });
|
|
14142
|
+
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" } });
|
|
14104
14143
|
(function () {
|
|
14105
14144
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoModalBaseComponent, [{
|
|
14106
14145
|
type: Directive
|
|
@@ -14125,6 +14164,9 @@ PoModalBaseComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: PoModa
|
|
|
14125
14164
|
}], hideClose: [{
|
|
14126
14165
|
type: Input,
|
|
14127
14166
|
args: ['p-hide-close']
|
|
14167
|
+
}], icon: [{
|
|
14168
|
+
type: Input,
|
|
14169
|
+
args: ['p-icon']
|
|
14128
14170
|
}] });
|
|
14129
14171
|
})();
|
|
14130
14172
|
|
|
@@ -14200,81 +14242,98 @@ PoActiveOverlayService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: P
|
|
|
14200
14242
|
})();
|
|
14201
14243
|
|
|
14202
14244
|
const _c0$$ = ["modalContent"];
|
|
14203
|
-
function
|
|
14245
|
+
function PoModalComponent_div_0_po_icon_8_Template(rf, ctx) {
|
|
14204
14246
|
if (rf & 1) {
|
|
14205
|
-
|
|
14206
|
-
|
|
14207
|
-
|
|
14208
|
-
i0.ɵɵ
|
|
14247
|
+
i0.ɵɵelement(0, "po-icon", 15);
|
|
14248
|
+
}
|
|
14249
|
+
if (rf & 2) {
|
|
14250
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
14251
|
+
i0.ɵɵproperty("p-icon", ctx_r2.icon);
|
|
14252
|
+
}
|
|
14253
|
+
}
|
|
14254
|
+
function PoModalComponent_div_0_po_button_11_Template(rf, ctx) {
|
|
14255
|
+
if (rf & 1) {
|
|
14256
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
14257
|
+
i0.ɵɵelementStart(0, "po-button", 16);
|
|
14258
|
+
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)); });
|
|
14209
14259
|
i0.ɵɵelementEnd();
|
|
14210
14260
|
}
|
|
14261
|
+
if (rf & 2) {
|
|
14262
|
+
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
14263
|
+
i0.ɵɵproperty("p-aria-label", ctx_r3.literals.close);
|
|
14264
|
+
}
|
|
14211
14265
|
}
|
|
14212
|
-
function
|
|
14266
|
+
function PoModalComponent_div_0_ng_container_14_Template(rf, ctx) {
|
|
14213
14267
|
if (rf & 1) {
|
|
14214
14268
|
i0.ɵɵelementContainerStart(0);
|
|
14215
14269
|
i0.ɵɵprojection(1, 1);
|
|
14216
14270
|
i0.ɵɵelementContainerEnd();
|
|
14217
14271
|
}
|
|
14218
14272
|
}
|
|
14219
|
-
function
|
|
14273
|
+
function PoModalComponent_div_0_ng_template_15_po_button_2_Template(rf, ctx) {
|
|
14220
14274
|
if (rf & 1) {
|
|
14221
|
-
const
|
|
14222
|
-
i0.ɵɵelementStart(0, "po-button",
|
|
14223
|
-
i0.ɵɵlistener("p-click", function
|
|
14275
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
14276
|
+
i0.ɵɵelementStart(0, "po-button", 20);
|
|
14277
|
+
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()); });
|
|
14224
14278
|
i0.ɵɵelementEnd();
|
|
14225
14279
|
}
|
|
14226
14280
|
if (rf & 2) {
|
|
14227
|
-
const
|
|
14228
|
-
i0.ɵɵproperty("p-danger",
|
|
14281
|
+
const ctx_r9 = i0.ɵɵnextContext(3);
|
|
14282
|
+
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);
|
|
14229
14283
|
}
|
|
14230
14284
|
}
|
|
14231
|
-
function
|
|
14285
|
+
function PoModalComponent_div_0_ng_template_15_Template(rf, ctx) {
|
|
14232
14286
|
if (rf & 1) {
|
|
14233
|
-
const
|
|
14234
|
-
i0.ɵɵelementStart(0, "po-modal-footer");
|
|
14235
|
-
i0.ɵɵtemplate(
|
|
14236
|
-
i0.ɵɵelementStart(
|
|
14237
|
-
i0.ɵɵlistener("p-click", function
|
|
14238
|
-
i0.ɵɵelementEnd()();
|
|
14287
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
14288
|
+
i0.ɵɵelementStart(0, "po-modal-footer")(1, "div", 17);
|
|
14289
|
+
i0.ɵɵtemplate(2, PoModalComponent_div_0_ng_template_15_po_button_2_Template, 1, 4, "po-button", 18);
|
|
14290
|
+
i0.ɵɵelementStart(3, "po-button", 19);
|
|
14291
|
+
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()); });
|
|
14292
|
+
i0.ɵɵelementEnd()()();
|
|
14239
14293
|
}
|
|
14240
14294
|
if (rf & 2) {
|
|
14241
|
-
const
|
|
14242
|
-
i0.ɵɵadvance(
|
|
14243
|
-
i0.ɵɵproperty("ngIf",
|
|
14295
|
+
const ctx_r6 = i0.ɵɵnextContext(2);
|
|
14296
|
+
i0.ɵɵadvance(2);
|
|
14297
|
+
i0.ɵɵproperty("ngIf", ctx_r6.secondaryAction);
|
|
14244
14298
|
i0.ɵɵadvance(1);
|
|
14245
|
-
i0.ɵɵproperty("p-danger",
|
|
14299
|
+
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);
|
|
14246
14300
|
}
|
|
14247
14301
|
}
|
|
14248
14302
|
function PoModalComponent_div_0_Template(rf, ctx) {
|
|
14249
14303
|
if (rf & 1) {
|
|
14250
|
-
const
|
|
14304
|
+
const _r15 = i0.ɵɵgetCurrentView();
|
|
14251
14305
|
i0.ɵɵelementStart(0, "div", 1);
|
|
14252
|
-
i0.ɵɵlistener("keydown.esc", function PoModalComponent_div_0_Template_div_keydown_esc_0_listener($event) { i0.ɵɵrestoreView(
|
|
14253
|
-
i0.ɵɵelementStart(1, "div", 2)
|
|
14254
|
-
i0.ɵɵlistener("mousedown", function
|
|
14255
|
-
i0.ɵɵelementStart(3, "div", 4)(4, "div", 5, 6)(6, "div", 7)(7, "div", 8);
|
|
14256
|
-
i0.ɵɵtext(8);
|
|
14306
|
+
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)); });
|
|
14307
|
+
i0.ɵɵelementStart(1, "div", 2);
|
|
14308
|
+
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)); });
|
|
14257
14309
|
i0.ɵɵelementEnd();
|
|
14258
|
-
i0.ɵɵ
|
|
14310
|
+
i0.ɵɵelementStart(2, "div", 3)(3, "div", 4)(4, "div", 5, 6)(6, "div", 7)(7, "div", 8);
|
|
14311
|
+
i0.ɵɵtemplate(8, PoModalComponent_div_0_po_icon_8_Template, 1, 1, "po-icon", 9);
|
|
14312
|
+
i0.ɵɵelementStart(9, "div", 10);
|
|
14313
|
+
i0.ɵɵtext(10);
|
|
14314
|
+
i0.ɵɵelementEnd()();
|
|
14315
|
+
i0.ɵɵtemplate(11, PoModalComponent_div_0_po_button_11_Template, 1, 1, "po-button", 11);
|
|
14259
14316
|
i0.ɵɵelementEnd();
|
|
14260
|
-
i0.ɵɵelementStart(
|
|
14261
|
-
i0.ɵɵprojection(
|
|
14317
|
+
i0.ɵɵelementStart(12, "div", 12);
|
|
14318
|
+
i0.ɵɵprojection(13);
|
|
14262
14319
|
i0.ɵɵelementEnd();
|
|
14263
|
-
i0.ɵɵtemplate(
|
|
14264
|
-
i0.ɵɵtemplate(
|
|
14265
|
-
i0.ɵɵelementEnd()()()()
|
|
14320
|
+
i0.ɵɵtemplate(14, PoModalComponent_div_0_ng_container_14_Template, 2, 0, "ng-container", 13);
|
|
14321
|
+
i0.ɵɵtemplate(15, PoModalComponent_div_0_ng_template_15_Template, 4, 5, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
|
|
14322
|
+
i0.ɵɵelementEnd()()()();
|
|
14266
14323
|
}
|
|
14267
14324
|
if (rf & 2) {
|
|
14268
|
-
const
|
|
14325
|
+
const _r5 = i0.ɵɵreference(16);
|
|
14269
14326
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
14270
14327
|
i0.ɵɵadvance(4);
|
|
14271
14328
|
i0.ɵɵclassMapInterpolate1("po-modal-content po-modal-", ctx_r0.size, "");
|
|
14272
14329
|
i0.ɵɵadvance(4);
|
|
14330
|
+
i0.ɵɵproperty("ngIf", ctx_r0.icon);
|
|
14331
|
+
i0.ɵɵadvance(2);
|
|
14273
14332
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.title, " ");
|
|
14274
14333
|
i0.ɵɵadvance(1);
|
|
14275
14334
|
i0.ɵɵproperty("ngIf", !ctx_r0.hideClose);
|
|
14276
14335
|
i0.ɵɵadvance(3);
|
|
14277
|
-
i0.ɵɵproperty("ngIf", ctx_r0.modalFooter)("ngIfElse",
|
|
14336
|
+
i0.ɵɵproperty("ngIf", ctx_r0.modalFooter)("ngIfElse", _r5);
|
|
14278
14337
|
}
|
|
14279
14338
|
}
|
|
14280
14339
|
const _c1$s = ["*", [["po-modal-footer"]]];
|
|
@@ -14386,19 +14445,19 @@ PoModalComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoModalCom
|
|
|
14386
14445
|
let _t;
|
|
14387
14446
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modalContent = _t.first);
|
|
14388
14447
|
}
|
|
14389
|
-
}, 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"
|
|
14448
|
+
}, 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) {
|
|
14390
14449
|
if (rf & 1) {
|
|
14391
14450
|
i0.ɵɵprojectionDef(_c1$s);
|
|
14392
|
-
i0.ɵɵtemplate(0, PoModalComponent_div_0_Template,
|
|
14451
|
+
i0.ɵɵtemplate(0, PoModalComponent_div_0_Template, 17, 8, "div", 0);
|
|
14393
14452
|
}
|
|
14394
14453
|
if (rf & 2) {
|
|
14395
14454
|
i0.ɵɵproperty("ngIf", !ctx.isHidden);
|
|
14396
14455
|
}
|
|
14397
|
-
}, dependencies: [i1.NgIf, PoButtonComponent, PoModalFooterComponent], encapsulation: 2 });
|
|
14456
|
+
}, dependencies: [i1.NgIf, PoButtonComponent, PoIconComponent, PoModalFooterComponent], encapsulation: 2 });
|
|
14398
14457
|
(function () {
|
|
14399
14458
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoModalComponent, [{
|
|
14400
14459
|
type: Component,
|
|
14401
|
-
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
|
|
14460
|
+
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" }]
|
|
14402
14461
|
}], function () { return [{ type: PoActiveOverlayService }, { type: PoLanguageService }]; }, { modalContent: [{
|
|
14403
14462
|
type: ViewChild,
|
|
14404
14463
|
args: ['modalContent', { read: ElementRef }]
|
|
@@ -14416,18 +14475,18 @@ class PoModalModule {
|
|
|
14416
14475
|
}
|
|
14417
14476
|
PoModalModule.ɵfac = function PoModalModule_Factory(t) { return new (t || PoModalModule)(); };
|
|
14418
14477
|
PoModalModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: PoModalModule });
|
|
14419
|
-
PoModalModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, PoButtonModule] });
|
|
14478
|
+
PoModalModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule, PoButtonModule, PoIconModule] });
|
|
14420
14479
|
(function () {
|
|
14421
14480
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoModalModule, [{
|
|
14422
14481
|
type: NgModule,
|
|
14423
14482
|
args: [{
|
|
14424
|
-
imports: [CommonModule, PoButtonModule],
|
|
14483
|
+
imports: [CommonModule, PoButtonModule, PoIconModule],
|
|
14425
14484
|
declarations: [PoModalComponent, PoModalFooterComponent],
|
|
14426
14485
|
exports: [PoModalComponent, PoModalFooterComponent]
|
|
14427
14486
|
}]
|
|
14428
14487
|
}], null, null);
|
|
14429
14488
|
})();
|
|
14430
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoModalModule, { declarations: [PoModalComponent, PoModalFooterComponent], imports: [CommonModule, PoButtonModule], exports: [PoModalComponent, PoModalFooterComponent] }); })();
|
|
14489
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(PoModalModule, { declarations: [PoModalComponent, PoModalFooterComponent], imports: [CommonModule, PoButtonModule, PoIconModule], exports: [PoModalComponent, PoModalFooterComponent] }); })();
|
|
14431
14490
|
|
|
14432
14491
|
class PoProgressBarComponent {
|
|
14433
14492
|
get valueScale() {
|
|
@@ -33215,7 +33274,9 @@ class PoNumberBaseComponent extends PoInputGeneric {
|
|
|
33215
33274
|
'Up',
|
|
33216
33275
|
'Down',
|
|
33217
33276
|
'Tab',
|
|
33218
|
-
'Delete'
|
|
33277
|
+
'Delete',
|
|
33278
|
+
'Home',
|
|
33279
|
+
'End'
|
|
33219
33280
|
];
|
|
33220
33281
|
return controlKeys.indexOf(event.key) !== -1;
|
|
33221
33282
|
}
|
|
@@ -37010,7 +37071,8 @@ function PoDynamicViewComponent_ng_template_1_Template(rf, ctx) {
|
|
|
37010
37071
|
}
|
|
37011
37072
|
if (rf & 2) {
|
|
37012
37073
|
const field_r12 = ctx.$implicit;
|
|
37013
|
-
i0.ɵɵ
|
|
37074
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
37075
|
+
i0.ɵɵproperty("ngClass", field_r12.cssClass)("p-label", field_r12.label)("p-value", ctx_r2.setFieldValue(field_r12));
|
|
37014
37076
|
}
|
|
37015
37077
|
}
|
|
37016
37078
|
function PoDynamicViewComponent_ng_template_3_Template(rf, ctx) {
|
|
@@ -37019,7 +37081,8 @@ function PoDynamicViewComponent_ng_template_3_Template(rf, ctx) {
|
|
|
37019
37081
|
}
|
|
37020
37082
|
if (rf & 2) {
|
|
37021
37083
|
const field_r13 = ctx.$implicit;
|
|
37022
|
-
|
|
37084
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
37085
|
+
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));
|
|
37023
37086
|
}
|
|
37024
37087
|
}
|
|
37025
37088
|
function PoDynamicViewComponent_ng_template_5_Template(rf, ctx) {
|
|
@@ -37065,6 +37128,15 @@ class PoDynamicViewComponent extends PoDynamicViewBaseComponent {
|
|
|
37065
37128
|
this.updateValuesAndFieldsOnLoad();
|
|
37066
37129
|
}
|
|
37067
37130
|
}
|
|
37131
|
+
setFieldValue(field) {
|
|
37132
|
+
if (field.options) {
|
|
37133
|
+
const selectedOption = field.options.find(option => option.value === field.value);
|
|
37134
|
+
return selectedOption ? selectedOption.label : field.value;
|
|
37135
|
+
}
|
|
37136
|
+
else {
|
|
37137
|
+
return field.value;
|
|
37138
|
+
}
|
|
37139
|
+
}
|
|
37068
37140
|
getValuesAndFieldsFromLoad() {
|
|
37069
37141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37070
37142
|
let valueAndFieldsFromLoad;
|
|
@@ -37126,7 +37198,7 @@ PoDynamicViewComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PoDy
|
|
|
37126
37198
|
(function () {
|
|
37127
37199
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PoDynamicViewComponent, [{
|
|
37128
37200
|
type: Component,
|
|
37129
|
-
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
|
|
37201
|
+
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" }]
|
|
37130
37202
|
}], function () { return [{ type: i1.CurrencyPipe }, { type: i1.DatePipe }, { type: i1.DecimalPipe }, { type: PoTimePipe }, { type: i1.TitleCasePipe }, { type: PoDynamicViewService }]; }, null);
|
|
37131
37203
|
})();
|
|
37132
37204
|
|
|
@@ -51021,4 +51093,3 @@ function initializeLanguageDefault(config, languageService) {
|
|
|
51021
51093
|
|
|
51022
51094
|
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 };
|
|
51023
51095
|
//# sourceMappingURL=po-ui-ng-components.mjs.map
|
|
51024
|
-
//# sourceMappingURL=po-ui-ng-components.mjs.map
|