UNPKG

@pepperi/ngx-lib

Version:

Pepperi Angular Components and Services

517 lines 58.6 kB
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core'; import { LAYOUT_TYPE, CustomizationService } from '@pepperi/ngx-lib'; import { GROUP_BUTTONS_VIEW_TYPE } from '@pepperi/ngx-lib/group-buttons'; import * as i0 from "@angular/core"; import * as i1 from "@pepperi/ngx-lib"; import * as i2 from "@angular/common"; import * as i3 from "@pepperi/ngx-lib/field-title"; import * as i4 from "@angular/material/button"; import * as i5 from "@angular/material/icon"; import * as i6 from "@pepperi/ngx-lib/icon"; import * as i7 from "@pepperi/ngx-lib/group-buttons"; import * as i8 from "@angular/cdk/bidi"; import * as i9 from "@ngx-translate/core"; function PepperiInternalButtonComponent_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function PepperiInternalButtonComponent_ng_container_1_ng_template_2_ng_container_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } const _c0 = function (a0, a1, a2, a3) { return { disabled: a0, "pull-left": a1, "pull-right": a2, "center-alignment": a3 }; }; function PepperiInternalButtonComponent_ng_container_1_ng_template_2_ng_template_3_Template(rf, ctx) { if (rf & 1) { const _r18 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "button", 11); i0.ɵɵlistener("click", function PepperiInternalButtonComponent_ng_container_1_ng_template_2_ng_template_3_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r17 = i0.ɵɵnextContext(3); return ctx_r17.onButtonClicked($event); }); i0.ɵɵelementStart(1, "span", 12); i0.ɵɵtext(2); i0.ɵɵpipe(3, "translate"); i0.ɵɵelementEnd(); i0.ɵɵelementStart(4, "mat-icon", 13); i0.ɵɵelementStart(5, "pep-icon", 14); i0.ɵɵlistener("click", function PepperiInternalButtonComponent_ng_container_1_ng_template_2_ng_template_3_Template_pep_icon_click_5_listener($event) { i0.ɵɵrestoreView(_r18); const ctx_r19 = i0.ɵɵnextContext(3); return ctx_r19.onButtonClicked($event); }); i0.ɵɵelementEnd(); i0.ɵɵelementEnd(); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r14 = i0.ɵɵnextContext(3); i0.ɵɵpropertyInterpolate("title", ctx_r14.formattedValue); i0.ɵɵproperty("id", ctx_r14.key)("ngClass", i0.ɵɵpureFunction4(6, _c0, ctx_r14.disabled, ctx_r14.xAlignment == "1" || ctx_r14.xAlignment == "0", ctx_r14.xAlignment == "2", ctx_r14.xAlignment == "3")); i0.ɵɵadvance(2); i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 4, "ACTIONS.CREATE_NEW")); } } function PepperiInternalButtonComponent_ng_container_1_ng_template_2_ng_template_5_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "pep-group-buttons", 15); } if (rf & 2) { const ctx_r16 = i0.ɵɵnextContext(3); i0.ɵɵproperty("buttons", ctx_r16.referenceButtons)("buttonsClass", "md regular")("buttonsDisabled", false)("viewType", ctx_r16.GROUP_BUTTONS_VIEW_TYPE.Split); } } function PepperiInternalButtonComponent_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "div", 7); i0.ɵɵelement(1, "pep-field-title", 8); i0.ɵɵtemplate(2, PepperiInternalButtonComponent_ng_container_1_ng_template_2_ng_container_2_Template, 1, 0, "ng-container", 4); i0.ɵɵtemplate(3, PepperiInternalButtonComponent_ng_container_1_ng_template_2_ng_template_3_Template, 6, 11, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor); i0.ɵɵtemplate(5, PepperiInternalButtonComponent_ng_container_1_ng_template_2_ng_template_5_Template, 1, 4, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor); i0.ɵɵelementEnd(); } if (rf & 2) { const _r13 = i0.ɵɵreference(4); const _r15 = i0.ɵɵreference(6); const ctx_r9 = i0.ɵɵnextContext(2); i0.ɵɵadvance(1); i0.ɵɵproperty("label", ctx_r9.label)("required", ctx_r9.required)("disabled", ctx_r9.disabled)("xAlignment", ctx_r9.xAlignment)("showTitle", ctx_r9.showTitle); i0.ɵɵadvance(1); i0.ɵɵproperty("ngIf", ctx_r9.createNewReference)("ngIfThen", _r13)("ngIfElse", _r15); } } function PepperiInternalButtonComponent_ng_container_1_ng_template_4_ng_container_0_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function PepperiInternalButtonComponent_ng_container_1_ng_template_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, PepperiInternalButtonComponent_ng_container_1_ng_template_4_ng_container_0_Template, 1, 0, "ng-container", 16); } if (rf & 2) { i0.ɵɵnextContext(2); const _r5 = i0.ɵɵreference(7); i0.ɵɵproperty("ngTemplateOutlet", _r5); } } function PepperiInternalButtonComponent_ng_container_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtemplate(1, PepperiInternalButtonComponent_ng_container_1_ng_container_1_Template, 1, 0, "ng-container", 4); i0.ɵɵtemplate(2, PepperiInternalButtonComponent_ng_container_1_ng_template_2_Template, 7, 8, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor); i0.ɵɵtemplate(4, PepperiInternalButtonComponent_ng_container_1_ng_template_4_Template, 1, 1, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const _r8 = i0.ɵɵreference(3); const _r10 = i0.ɵɵreference(5); const ctx_r0 = i0.ɵɵnextContext(); i0.ɵɵadvance(1); i0.ɵɵproperty("ngIf", ctx_r0.layoutType === ctx_r0.LAYOUT_TYPE.PepperiForm)("ngIfThen", _r8)("ngIfElse", _r10); } } function PepperiInternalButtonComponent_ng_container_2_ng_container_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function PepperiInternalButtonComponent_ng_container_2_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } const _c1 = function () { return { internal: true }; }; function PepperiInternalButtonComponent_ng_container_2_ng_template_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, PepperiInternalButtonComponent_ng_container_2_ng_template_2_ng_container_0_Template, 1, 0, "ng-container", 17); } if (rf & 2) { i0.ɵɵnextContext(2); const _r3 = i0.ɵɵreference(5); i0.ɵɵproperty("ngTemplateOutlet", _r3)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c1)); } } function PepperiInternalButtonComponent_ng_container_2_ng_template_4_ng_container_0_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function PepperiInternalButtonComponent_ng_container_2_ng_template_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, PepperiInternalButtonComponent_ng_container_2_ng_template_4_ng_container_0_Template, 1, 0, "ng-container", 16); } if (rf & 2) { i0.ɵɵnextContext(2); const _r5 = i0.ɵɵreference(7); i0.ɵɵproperty("ngTemplateOutlet", _r5); } } function PepperiInternalButtonComponent_ng_container_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtemplate(1, PepperiInternalButtonComponent_ng_container_2_ng_container_1_Template, 1, 0, "ng-container", 4); i0.ɵɵtemplate(2, PepperiInternalButtonComponent_ng_container_2_ng_template_2_Template, 1, 3, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor); i0.ɵɵtemplate(4, PepperiInternalButtonComponent_ng_container_2_ng_template_4_Template, 1, 1, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const _r22 = i0.ɵɵreference(3); const _r24 = i0.ɵɵreference(5); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵadvance(1); i0.ɵɵproperty("ngIf", ctx_r1.layoutType === ctx_r1.LAYOUT_TYPE.PepperiForm)("ngIfThen", _r22)("ngIfElse", _r24); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_2_pep_icon_3_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelement(0, "pep-icon", 21); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_2_Template(rf, ctx) { if (rf & 1) { const _r33 = i0.ɵɵgetCurrentView(); i0.ɵɵelementContainerStart(0); i0.ɵɵelementStart(1, "span", 19); i0.ɵɵlistener("click", function PepperiInternalButtonComponent_ng_container_3_ng_container_2_Template_span_click_1_listener($event) { i0.ɵɵrestoreView(_r33); const ctx_r32 = i0.ɵɵnextContext(2); return ctx_r32.onButtonClicked($event); }); i0.ɵɵelementStart(2, "mat-icon"); i0.ɵɵtemplate(3, PepperiInternalButtonComponent_ng_container_3_ng_container_2_pep_icon_3_Template, 1, 0, "pep-icon", 20); i0.ɵɵelementEnd(); i0.ɵɵelementEnd(); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const ctx_r28 = i0.ɵɵnextContext(2); i0.ɵɵadvance(1); i0.ɵɵpropertyInterpolate("title", ctx_r28.key); i0.ɵɵadvance(2); i0.ɵɵproperty("ngIf", ctx_r28.key == "ObjectMenu"); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_3_ng_container_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_3_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_3_ng_template_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, PepperiInternalButtonComponent_ng_container_3_ng_container_3_ng_template_2_ng_container_0_Template, 1, 0, "ng-container", 17); } if (rf & 2) { i0.ɵɵnextContext(3); const _r3 = i0.ɵɵreference(5); i0.ɵɵproperty("ngTemplateOutlet", _r3)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c1)); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_3_ng_template_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "span", 24); i0.ɵɵtext(1); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r38 = i0.ɵɵnextContext(3); i0.ɵɵpropertyInterpolate("title", ctx_r38.formattedValue); i0.ɵɵproperty("id", ctx_r38.key); i0.ɵɵadvance(1); i0.ɵɵtextInterpolate(ctx_r38.formattedValue); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_3_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtemplate(1, PepperiInternalButtonComponent_ng_container_3_ng_container_3_ng_container_1_Template, 1, 0, "ng-container", 4); i0.ɵɵtemplate(2, PepperiInternalButtonComponent_ng_container_3_ng_container_3_ng_template_2_Template, 1, 3, "ng-template", null, 22, i0.ɵɵtemplateRefExtractor); i0.ɵɵtemplate(4, PepperiInternalButtonComponent_ng_container_3_ng_container_3_ng_template_4_Template, 2, 3, "ng-template", null, 23, i0.ɵɵtemplateRefExtractor); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const _r35 = i0.ɵɵreference(3); const _r37 = i0.ɵɵreference(5); const ctx_r29 = i0.ɵɵnextContext(2); i0.ɵɵadvance(1); i0.ɵɵproperty("ngIf", ctx_r29.layoutType === ctx_r29.LAYOUT_TYPE.PepperiTable)("ngIfThen", _r37)("ngIfElse", _r35); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_4_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } const _c2 = function () { return { internal: false }; }; function PepperiInternalButtonComponent_ng_container_3_ng_container_4_ng_template_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, PepperiInternalButtonComponent_ng_container_3_ng_container_4_ng_template_2_ng_container_0_Template, 1, 0, "ng-container", 17); } if (rf & 2) { i0.ɵɵnextContext(3); const _r3 = i0.ɵɵreference(5); i0.ɵɵproperty("ngTemplateOutlet", _r3)("ngTemplateOutletContext", i0.ɵɵpureFunction0(2, _c2)); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_4_ng_template_4_ng_container_0_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_4_ng_template_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, PepperiInternalButtonComponent_ng_container_3_ng_container_4_ng_template_4_ng_container_0_Template, 1, 0, "ng-container", 16); } if (rf & 2) { i0.ɵɵnextContext(3); const _r5 = i0.ɵɵreference(7); i0.ɵɵproperty("ngTemplateOutlet", _r5); } } function PepperiInternalButtonComponent_ng_container_3_ng_container_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵtemplate(1, PepperiInternalButtonComponent_ng_container_3_ng_container_4_ng_container_1_Template, 1, 0, "ng-container", 4); i0.ɵɵtemplate(2, PepperiInternalButtonComponent_ng_container_3_ng_container_4_ng_template_2_Template, 1, 3, "ng-template", null, 25, i0.ɵɵtemplateRefExtractor); i0.ɵɵtemplate(4, PepperiInternalButtonComponent_ng_container_3_ng_container_4_ng_template_4_Template, 1, 1, "ng-template", null, 26, i0.ɵɵtemplateRefExtractor); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const _r41 = i0.ɵɵreference(3); const _r43 = i0.ɵɵreference(5); const ctx_r30 = i0.ɵɵnextContext(2); i0.ɵɵadvance(1); i0.ɵɵproperty("ngIf", ctx_r30.layoutType === ctx_r30.LAYOUT_TYPE.PepperiForm)("ngIfThen", _r41)("ngIfElse", _r43); } } function PepperiInternalButtonComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0); i0.ɵɵelementContainerStart(1, 0); i0.ɵɵtemplate(2, PepperiInternalButtonComponent_ng_container_3_ng_container_2_Template, 4, 2, "ng-container", 1); i0.ɵɵtemplate(3, PepperiInternalButtonComponent_ng_container_3_ng_container_3_Template, 6, 3, "ng-container", 1); i0.ɵɵtemplate(4, PepperiInternalButtonComponent_ng_container_3_ng_container_4_Template, 6, 3, "ng-container", 18); i0.ɵɵelementContainerEnd(); i0.ɵɵelementContainerEnd(); } if (rf & 2) { const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵadvance(1); i0.ɵɵproperty("ngSwitch", ctx_r2.key); i0.ɵɵadvance(1); i0.ɵɵproperty("ngSwitchCase", "ObjectMenu"); i0.ɵɵadvance(1); i0.ɵɵproperty("ngSwitchCase", "Agents" || "ContactPersons" || "Buyers"); } } function PepperiInternalButtonComponent_ng_template_4_ng_container_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function PepperiInternalButtonComponent_ng_template_4_ng_template_3_Template(rf, ctx) { if (rf & 1) { const _r54 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "button", 30); i0.ɵɵlistener("click", function PepperiInternalButtonComponent_ng_template_4_ng_template_3_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r54); const ctx_r53 = i0.ɵɵnextContext(2); return ctx_r53.onButtonClicked($event); }); i0.ɵɵtext(1); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r50 = i0.ɵɵnextContext(2); i0.ɵɵpropertyInterpolate("title", ctx_r50.formattedValue); i0.ɵɵpropertyInterpolate("dir", ctx_r50.xAlignment == "2" ? "rtl" : "ltr"); i0.ɵɵproperty("id", ctx_r50.key)("disabled", ctx_r50.disabled)("ngClass", i0.ɵɵpureFunction4(6, _c0, ctx_r50.disabled, ctx_r50.xAlignment == "1" || ctx_r50.xAlignment == "0", ctx_r50.xAlignment == "2", ctx_r50.xAlignment == "3")); i0.ɵɵadvance(1); i0.ɵɵtextInterpolate1(" ", ctx_r50.formattedValue, " "); } } function PepperiInternalButtonComponent_ng_template_4_ng_template_5_ng_container_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function PepperiInternalButtonComponent_ng_template_4_ng_template_5_ng_template_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "span", 12); i0.ɵɵtext(1); i0.ɵɵpipe(2, "translate"); i0.ɵɵelementEnd(); i0.ɵɵelementStart(3, "mat-icon"); i0.ɵɵelement(4, "pep-icon", 31); i0.ɵɵelementEnd(); } if (rf & 2) { i0.ɵɵadvance(1); i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(2, 1, "LIST.SELECT"), "\u00A0"); } } function PepperiInternalButtonComponent_ng_template_4_ng_template_5_ng_template_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "span", 12); i0.ɵɵtext(1); i0.ɵɵpipe(2, "translate"); i0.ɵɵelementEnd(); i0.ɵɵelementStart(3, "mat-icon"); i0.ɵɵelement(4, "pep-icon", 32); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r59 = i0.ɵɵnextContext(3); i0.ɵɵadvance(1); i0.ɵɵtextInterpolate2("", ctx_r59.formattedValue, "\u00A0", i0.ɵɵpipeBind1(2, 2, "LIST.SELECTED"), "\u00A0"); } } function PepperiInternalButtonComponent_ng_template_4_ng_template_5_Template(rf, ctx) { if (rf & 1) { const _r61 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "button", 30); i0.ɵɵlistener("click", function PepperiInternalButtonComponent_ng_template_4_ng_template_5_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r61); const ctx_r60 = i0.ɵɵnextContext(2); return ctx_r60.openReferenceObjectInternal($event); }); i0.ɵɵtemplate(1, PepperiInternalButtonComponent_ng_template_4_ng_template_5_ng_container_1_Template, 1, 0, "ng-container", 4); i0.ɵɵtemplate(2, PepperiInternalButtonComponent_ng_template_4_ng_template_5_ng_template_2_Template, 5, 3, "ng-template", null, 9, i0.ɵɵtemplateRefExtractor); i0.ɵɵtemplate(4, PepperiInternalButtonComponent_ng_template_4_ng_template_5_ng_template_4_Template, 5, 4, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor); i0.ɵɵelementEnd(); } if (rf & 2) { const _r56 = i0.ɵɵreference(3); const _r58 = i0.ɵɵreference(5); const ctx_r52 = i0.ɵɵnextContext(2); i0.ɵɵpropertyInterpolate("title", ctx_r52.formattedValue); i0.ɵɵpropertyInterpolate("dir", ctx_r52.xAlignment == "2" ? "rtl" : "ltr"); i0.ɵɵproperty("id", ctx_r52.key)("disabled", ctx_r52.disabled)("ngClass", i0.ɵɵpureFunction4(8, _c0, ctx_r52.disabled, ctx_r52.xAlignment == "1" || ctx_r52.xAlignment == "0", ctx_r52.xAlignment == "2", ctx_r52.xAlignment == "3")); i0.ɵɵadvance(1); i0.ɵɵproperty("ngIf", ctx_r52.formattedValue == "0" || ctx_r52.formattedValue == "")("ngIfThen", _r56)("ngIfElse", _r58); } } function PepperiInternalButtonComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "div", 27); i0.ɵɵelement(1, "pep-field-title", 8); i0.ɵɵtemplate(2, PepperiInternalButtonComponent_ng_template_4_ng_container_2_Template, 1, 0, "ng-container", 4); i0.ɵɵtemplate(3, PepperiInternalButtonComponent_ng_template_4_ng_template_3_Template, 2, 11, "ng-template", null, 28, i0.ɵɵtemplateRefExtractor); i0.ɵɵtemplate(5, PepperiInternalButtonComponent_ng_template_4_ng_template_5_Template, 6, 13, "ng-template", null, 29, i0.ɵɵtemplateRefExtractor); i0.ɵɵelementEnd(); } if (rf & 2) { const internal_r47 = ctx.internal; const _r49 = i0.ɵɵreference(4); const _r51 = i0.ɵɵreference(6); const ctx_r4 = i0.ɵɵnextContext(); i0.ɵɵadvance(1); i0.ɵɵproperty("label", ctx_r4.label)("required", ctx_r4.required)("disabled", ctx_r4.disabled)("xAlignment", ctx_r4.xAlignment)("showTitle", ctx_r4.showTitle); i0.ɵɵadvance(1); i0.ɵɵproperty("ngIf", internal_r47)("ngIfThen", _r51)("ngIfElse", _r49); } } function PepperiInternalButtonComponent_ng_template_6_ng_container_0_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainer(0); } } function PepperiInternalButtonComponent_ng_template_6_ng_template_1_span_1_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "span", 38); i0.ɵɵtext(1); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r67 = i0.ɵɵnextContext(3); i0.ɵɵpropertyInterpolate("title", ctx_r67.formattedValue); i0.ɵɵproperty("id", ctx_r67.key); i0.ɵɵadvance(1); i0.ɵɵtextInterpolate1(" ", ctx_r67.formattedValue, " "); } } function PepperiInternalButtonComponent_ng_template_6_ng_template_1_span_2_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "span", 39); i0.ɵɵtext(1); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r68 = i0.ɵɵnextContext(3); i0.ɵɵpropertyInterpolate("title", ctx_r68.formattedValue); i0.ɵɵproperty("id", ctx_r68.key); i0.ɵɵadvance(1); i0.ɵɵtextInterpolate1(" ", ctx_r68.formattedValue, " "); } } function PepperiInternalButtonComponent_ng_template_6_ng_template_1_Template(rf, ctx) { if (rf & 1) { const _r70 = i0.ɵɵgetCurrentView(); i0.ɵɵelementStart(0, "a", 35); i0.ɵɵlistener("mousedown", function PepperiInternalButtonComponent_ng_template_6_ng_template_1_Template_a_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r70); const ctx_r69 = i0.ɵɵnextContext(2); return ctx_r69.hrefFunction($event); }); i0.ɵɵtemplate(1, PepperiInternalButtonComponent_ng_template_6_ng_template_1_span_1_Template, 2, 3, "span", 36); i0.ɵɵtemplate(2, PepperiInternalButtonComponent_ng_template_6_ng_template_1_span_2_Template, 2, 3, "span", 37); i0.ɵɵelementEnd(); } if (rf & 2) { const ctx_r64 = i0.ɵɵnextContext(2); i0.ɵɵpropertyInterpolate("href", ctx_r64.value, i0.ɵɵsanitizeUrl); i0.ɵɵadvance(1); i0.ɵɵproperty("ngIf", ctx_r64.layoutType === ctx_r64.LAYOUT_TYPE.PepperiTable); i0.ɵɵadvance(1); i0.ɵɵproperty("ngIf", ctx_r64.layoutType !== ctx_r64.LAYOUT_TYPE.PepperiTable); } } function PepperiInternalButtonComponent_ng_template_6_ng_template_3_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementStart(0, "span"); i0.ɵɵtext(1, "\u00A0"); i0.ɵɵelementEnd(); } } function PepperiInternalButtonComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) { i0.ɵɵtemplate(0, PepperiInternalButtonComponent_ng_template_6_ng_container_0_Template, 1, 0, "ng-container", 4); i0.ɵɵtemplate(1, PepperiInternalButtonComponent_ng_template_6_ng_template_1_Template, 3, 3, "ng-template", null, 33, i0.ɵɵtemplateRefExtractor); i0.ɵɵtemplate(3, PepperiInternalButtonComponent_ng_template_6_ng_template_3_Template, 2, 0, "ng-template", null, 34, i0.ɵɵtemplateRefExtractor); } if (rf & 2) { const _r63 = i0.ɵɵreference(2); const _r65 = i0.ɵɵreference(4); const ctx_r6 = i0.ɵɵnextContext(); i0.ɵɵproperty("ngIf", (ctx_r6.formattedValue == null ? null : ctx_r6.formattedValue.length) > 0)("ngIfThen", _r63)("ngIfElse", _r65); } } export class PepperiInternalButtonComponent { constructor(customizationService, renderer, element) { this.customizationService = customizationService; this.renderer = renderer; this.element = element; this.key = ''; this.value = ''; this.formattedValue = ''; this.label = ''; this.type = 'button'; // || 'reference' || 'listofobjects' || 'Agents' || 'ContactPersons' || 'Buyers', etc this.required = false; this.disabled = false; this.readonly = false; this.xAlignment = '0'; this.rowSpan = 1; this.controlType = 'button'; this.form = null; this.showTitle = true; this.layoutType = LAYOUT_TYPE.PepperiForm; this.elementClicked = new EventEmitter(); this.valueChanged = new EventEmitter(); this.LAYOUT_TYPE = LAYOUT_TYPE; this.GROUP_BUTTONS_VIEW_TYPE = GROUP_BUTTONS_VIEW_TYPE; this.standAlone = false; this.createNewReference = false; this.referenceButtons = [ { Value: '', Class: '', Callback: () => this.onButtonClicked(event), Icon: null }, { Value: '', Class: 'caution', Callback: () => this.remove(event), Icon: 'system_bin' }, ]; } ngOnInit() { if (this.form === null) { this.standAlone = true; this.form = this.customizationService.getDefaultFromGroup(this.key, this.value, this.required, this.readonly, this.disabled); this.formattedValue = this.formattedValue || this.value; this.renderer.addClass(this.element.nativeElement, CustomizationService.STAND_ALONE_FIELD_CLASS_NAME); } } ngOnChanges(changes) { if (this.type === 'reference') { this.createNewReference = this.value.length === 0; this.referenceButtons[0].Value = this.formattedValue; } } ngOnDestroy() { if (this.elementClicked) { this.elementClicked.unsubscribe(); } } onButtonClicked(event) { if (this.type === 'reference') { const valueArr = this.value.split('/'); this.elementClicked.emit({ apiName: this.key, eventWhich: event.which, value: valueArr[valueArr.length - 1], referenceObjectInternalType: this.referenceObjectInternalType, }); } else if (this.type === 'button' && true) { this.elementClicked.emit({ apiName: this.key, eventWhich: event.which, value: this.value // should contain the program name }); } else { this.elementClicked.emit({ apiName: this.key, eventWhich: event.which }); } } hrefFunction(event) { if (event.which === 1 /*|| event.which === 2*/) { this.onButtonClicked(event); } } openReferenceObjectInternal(event) { this.elementClicked.emit({ apiName: this.key, eventWhich: event.which, value: this.value, referenceObjectInternalType: this.referenceObjectInternalType }); } remove(event) { this.value = ''; this.valueChanged.emit({ apiName: this.key, value: this.value }); } } PepperiInternalButtonComponent.ɵfac = function PepperiInternalButtonComponent_Factory(t) { return new (t || PepperiInternalButtonComponent)(i0.ɵɵdirectiveInject(i1.CustomizationService), i0.ɵɵdirectiveInject(i0.Renderer2), i0.ɵɵdirectiveInject(i0.ElementRef)); }; PepperiInternalButtonComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PepperiInternalButtonComponent, selectors: [["pep-internal-button"]], inputs: { key: "key", value: "value", formattedValue: "formattedValue", label: "label", referenceObjectInternalType: "referenceObjectInternalType", type: "type", required: "required", disabled: "disabled", readonly: "readonly", xAlignment: "xAlignment", rowSpan: "rowSpan", form: "form", showTitle: "showTitle", layoutType: "layoutType" }, outputs: { elementClicked: "elementClicked", valueChanged: "valueChanged" }, features: [i0.ɵɵNgOnChangesFeature], decls: 8, vars: 4, consts: [[3, "ngSwitch"], [4, "ngSwitchCase"], ["buttonTemplate", ""], ["linkTemplate", ""], [4, "ngIf", "ngIfThen", "ngIfElse"], ["formBlock", ""], ["notFormBlock", ""], [1, "pepperi-button-container", "reference-button"], [3, "label", "required", "disabled", "xAlignment", "showTitle"], ["newBlock", ""], ["existingBlock", ""], ["mat-button", "", 1, "pepperi-button", "md", "regular", 3, "id", "title", "ngClass", "click"], [1, "pull-left", "flip"], ["pepRtlClass", "", 1, "pull-right", "flip"], ["name", "number_plus", 3, "click"], [3, "buttons", "buttonsClass", "buttonsDisabled", "viewType"], [4, "ngTemplateOutlet"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], [4, "ngSwitchDefault"], [3, "title", "click"], ["name", "system_menu", 4, "ngIf"], ["name", "system_menu"], ["nonTableBlock", ""], ["tableBlock", ""], [1, "pepperi-report-input", "readonly", "body-sm", 3, "id", "title"], ["buttonBlock", ""], ["linkBlock", ""], [1, "pepperi-button-container"], ["regularButtonTemplate", ""], ["internalButtonTemplate", ""], ["mat-button", "", 1, "pepperi-button", "md", "regular", 3, "id", "title", "dir", "disabled", "ngClass", "click"], ["name", "number_plus"], ["name", "system_edit"], ["notEmptyBlock", ""], ["emptyBlock", ""], [1, "color-link", 3, "href", "mousedown"], ["class", "body-sm pepperi-report-input readonly", 3, "id", "title", 4, "ngIf"], ["class", "body-sm pepperi-card-input", "style", "display: block;", 3, "id", "title", 4, "ngIf"], [1, "body-sm", "pepperi-report-input", "readonly", 3, "id", "title"], [1, "body-sm", "pepperi-card-input", 2, "display", "block", 3, "id", "title"]], template: function PepperiInternalButtonComponent_Template(rf, ctx) { if (rf & 1) { i0.ɵɵelementContainerStart(0, 0); i0.ɵɵtemplate(1, PepperiInternalButtonComponent_ng_container_1_Template, 6, 3, "ng-container", 1); i0.ɵɵtemplate(2, PepperiInternalButtonComponent_ng_container_2_Template, 6, 3, "ng-container", 1); i0.ɵɵtemplate(3, PepperiInternalButtonComponent_ng_container_3_Template, 5, 3, "ng-container", 1); i0.ɵɵelementContainerEnd(); i0.ɵɵtemplate(4, PepperiInternalButtonComponent_ng_template_4_Template, 7, 8, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor); i0.ɵɵtemplate(6, PepperiInternalButtonComponent_ng_template_6_Template, 5, 3, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor); } if (rf & 2) { i0.ɵɵproperty("ngSwitch", ctx.type); i0.ɵɵadvance(1); i0.ɵɵproperty("ngSwitchCase", "reference"); i0.ɵɵadvance(1); i0.ɵɵproperty("ngSwitchCase", "listofobjects"); i0.ɵɵadvance(1); i0.ɵɵproperty("ngSwitchCase", "button"); } }, directives: [i2.NgSwitch, i2.NgSwitchCase, i2.NgIf, i3.PepperiFieldTitleComponent, i4.MatButton, i2.NgClass, i5.MatIcon, i1.RtlClassDirective, i6.PepperiIconComponent, i7.GroupButtonsComponent, i2.NgTemplateOutlet, i2.NgSwitchDefault, i8.Dir], pipes: [i9.TranslatePipe], styles: ["[_nghost-%COMP%]{display:-ms-grid;display:grid;height:inherit}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{-ms-grid-row-align:center;align-self:center}.pepperi-button-container[_ngcontent-%COMP%]{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.pepperi-button-container[_ngcontent-%COMP%] .center-alignment[_ngcontent-%COMP%]{left:50%;position:absolute;transform:translate(-50%)}.pepperi-button-container.reference-button[_ngcontent-%COMP%] .split-buttons[_ngcontent-%COMP%], .pepperi-button-container.reference-button[_ngcontent-%COMP%] .split-buttons{float:left}.pepperi-button-container.reference-button[_ngcontent-%COMP%] .split-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:last-of-type, .pepperi-button-container.reference-button[_ngcontent-%COMP%] .split-buttons button:last-of-type{padding:0;width:1.5rem}.pepperi-button-container.reference-button[_ngcontent-%COMP%] .pepperi-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .pepperi-button-container.reference-button[_ngcontent-%COMP%] .pepperi-button mat-icon{margin-left:var(--pep-spacing-md,.75rem)}.pepperi-button-container.reference-button[_ngcontent-%COMP%] .pepperi-button[_ngcontent-%COMP%] mat-icon.rtl[_ngcontent-%COMP%], .pepperi-button-container.reference-button[_ngcontent-%COMP%] .pepperi-button mat-icon.rtl{margin-left:unset;margin-right:var(--pep-spacing-md,.75rem)}.pepperi-button-container.reference-button[_ngcontent-%COMP%] .pepperi-button.last-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%], .pepperi-button-container.reference-button[_ngcontent-%COMP%] .pepperi-button.last-button mat-icon{margin:0}"], changeDetection: 0 }); /*@__PURE__*/ (function () { i0.ɵsetClassMetadata(PepperiInternalButtonComponent, [{ type: Component, args: [{ selector: 'pep-internal-button', templateUrl: './internal-button.component.html', styleUrls: ['./internal-button.component.scss'], changeDetection: ChangeDetectionStrategy.OnPush, }] }], function () { return [{ type: i1.CustomizationService }, { type: i0.Renderer2 }, { type: i0.ElementRef }]; }, { key: [{ type: Input }], value: [{ type: Input }], formattedValue: [{ type: Input }], label: [{ type: Input }], referenceObjectInternalType: [{ type: Input }], type: [{ type: Input }], required: [{ type: Input }], disabled: [{ type: Input }], readonly: [{ type: Input }], xAlignment: [{ type: Input }], rowSpan: [{ type: Input }], form: [{ type: Input }], showTitle: [{ type: Input }], layoutType: [{ type: Input }], elementClicked: [{ type: Output }], valueChanged: [{ type: Output }] }); })(); //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJuYWwtYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1saWIvaW50ZXJuYWwtYnV0dG9uL2ludGVybmFsLWJ1dHRvbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtbGliL2ludGVybmFsLWJ1dHRvbi9pbnRlcm5hbC1idXR0b24uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiO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bkJ1dHRvbkNsaWNrZWQoZXZlbnQpOiB2b2lkIHtcclxuICAgICAgICBpZiAodGhpcy50eXBlID09PSAncmVmZXJlbmNlJykge1xyXG4gICAgICAgICAgICBjb25zdCB2YWx1ZUFyciA9IHRoaXMudmFsdWUuc3BsaXQoJy8nKTtcclxuXHJcbiAgICAgICAgICAgIHRoaXMuZWxlbWVudENsaWNrZWQuZW1pdCh7XHJcbiAgICAgICAgICAgICAgICBhcGlOYW1lOiB0aGlzLmtleSxcclxuICAgICAgICAgICAgICAgIGV2ZW50V2hpY2g6IGV2ZW50LndoaWNoLFxyXG4gICAgICAgICAgICAgICAgdmFsdWU6IHZhbHVlQXJyW3ZhbHVlQXJyLmxlbmd0aCAtIDFdLCAvLyAucmVwbGFjZSgvW15hLXpBLVowLTkgXS9nLCAnJyksXHJcbiAgICAgICAgICAgICAgICByZWZlcmVuY2VPYmplY3RJbnRlcm5hbFR5cGU6IHRoaXMucmVmZXJlbmNlT2JqZWN0SW50ZXJuYWxUeXBlLFxyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICB9IGVsc2UgaWYgKHRoaXMudHlwZSA9PT0gJ2J1dHRvbicgJiYgdHJ1ZSkge1xyXG4gICAgICAgICAgICB0aGlzLmVsZW1lbnRDbGlja2VkLmVtaXQoe1xyXG4gICAgICAgICAgICAgICAgYXBpTmFtZTogdGhpcy5rZXksXHJcbiAgICAgICAgICAgICAgICBldmVudFdoaWNoOiBldmVudC53aGljaCxcclxuICAgICAgICAgICAgICAgIHZhbHVlOiB0aGlzLnZhbHVlIC8vIHNob3VsZCBjb250YWluIHRoZSBwcm9ncmFtIG5hbWVcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfVxyXG4gICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICB0aGlzLmVsZW1lbnRDbGlja2VkLmVtaXQoeyBhcGlOYW1lOiB0aGlzLmtleSwgZXZlbnRXaGljaDogZXZlbnQud2hpY2ggfSk7XHJcbiAgICAgICAg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9ja1wiPjwvbmctY29udGFpbmVyPlxyXG4gICAgICAgIDxuZy10ZW1wbGF0ZSAjZm9ybUJsb2NrPlxyXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwicGVwcGVyaS1idXR0b24tY29udGFpbmVyIHJlZmVyZW5jZS1idXR0b25cIj5cclxuICAgICAgICAgICAgICAgIDxwZXAtZmllbGQtdGl0bGUgW2xhYmVsXT1cImxhYmVsXCIgW3JlcXVpcmVkXT1cInJlcXVpcmVkXCIgW2Rpc2FibGVkXT1cImRpc2FibGVkXCIgW3hBbGlnbm1lbnRdPVwieEFsaWdubWVudFwiXHJcbiAgICAgICAgICAgICAgICAgICAgW3Nob3dUaXRsZV09XCJzaG93VGl0bGVcIj5cclxuICAgICAgICAgICAgICAgIDwvcGVwLWZpZWxkLXRpdGxlPlxyXG4gICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciAqbmdJZj1cImNyZWF0ZU5ld1JlZmVyZW5jZTsgdGhlbiBuZXdCbG9jazsgZWxzZSBleGlzdGluZ0Jsb2NrXCI+PC9uZy1jb250YWluZXI+XHJcbiAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgI25ld0Jsb2NrPlxyXG4gICAgICAgICAgICAgICAgICAgIDxidXR0b24gW2lkXT1cImtleVwiIHRpdGxlPVwie3sgZm9ybWF0dGVkVmFsdWUgfX1cIiBtYXQtYnV0dG9uIGNsYXNzPVwicGVwcGVyaS1idXR0b24gbWQgcmVndWxhclwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIChjbGljayk9XCJvbkJ1dHRvbkNsaWNrZWQoJGV2ZW50KVwiIFtuZ0NsYXNzXT1cIntcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRpc2FibGVkOiBkaXNhYmxlZCxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICdwdWxsLWxlZnQnOiB4QWxpZ25tZW50ID09ICcxJyB8fCB4QWxpZ25tZW50ID09ICcwJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICdwdWxsLXJpZ2h0JzogeEFsaWdubWVudCA9PSAnMicsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnY2VudGVyLWFsaWdubWVudCc6IHhBbGlnbm1lbnQgPT0gJzMnXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJwdWxsLWxlZnQgZmxpcFwiPnt7ICdBQ1RJT05TLkNSRUFURV9ORVcnIHwgdHJhbnNsYXRlIH19PC9zcGFuPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWljb24gY2xhc3M9XCJwdWxsLXJpZ2h0IGZsaXBcIiBwZXBSdGxDbGFzcz5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwZXAtaWNvbiBuYW1lPVwibnVtYmVyX3BsdXNcIiAoY2xpY2spPVwib25CdXR0b25DbGlja2VkKCRldmVudClcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGVwLWljb24+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWljb24+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxyXG4gICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlICNleGlzdGluZ0Jsb2NrPlxyXG4gICAgICAgICAgICAgICAgICAgIDxwZXAtZ3JvdXAtYnV0dG9ucyBbYnV0dG9uc109XCJyZWZlcmVuY2VCdXR0b25zXCIgW2J1dHRvbnNDbGFzc109XCInbWQgcmVndWxhcidcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICBbYnV0dG9uc0Rpc2FibGVkXT1cImZhbHNlXCIgW3ZpZXdUeXBlXT1cIkdST1VQX0JVVFRPTlNfVklFV19UWVBFLlNwbGl0XCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9wZXAtZ3JvdXAtYnV0dG9ucz5cclxuICAgICAgICAgICAgICAgIDwvbmctdGVtcGxhdGU+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgIDwv