UNPKG

@pepperi/lib

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.0.1.

517 lines 58.5 kB
import { Component, Input, Output, EventEmitter, ChangeDetectionStrategy } from '@angular/core'; import { LAYOUT_TYPE, CustomizationService } from '@pepperi/lib'; import { GROUP_BUTTONS_VIEW_TYPE } from '@pepperi/lib/group-buttons'; import * as i0 from "@angular/core"; import * as i1 from "@pepperi/lib"; import * as i2 from "@angular/common"; import * as i3 from "@pepperi/lib/field-title"; import * as i4 from "@angular/material/button"; import * as i5 from "@angular/material/icon"; import * as i6 from "@pepperi/lib/icon"; import * as i7 from "@pepperi/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, "ReferenceTSA_CreateNew")); } } 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, "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, "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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJuYWwtYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3BlcHBlcmktbGliL2ludGVybmFsLWJ1dHRvbi9pbnRlcm5hbC1idXR0b24uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vcHJvamVjdHMvcGVwcGVyaS1saWIvaW50ZXJuYWwtYnV0dG9uL2ludGVybmFsLWJ1dHRvbi5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1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6IHZvaWQge1xyXG4gICAgICAgIGlmICh0aGlzLnR5cGUgPT09ICdyZWZlcmVuY2UnKSB7XHJcbiAgICAgICAgICAgIGNvbnN0IHZhbHVlQXJyID0gdGhpcy52YWx1ZS5zcGxpdCgnLycpO1xyXG5cclxuICAgICAgICAgICAgdGhpcy5lbGVtZW50Q2xpY2tlZC5lbWl0KHtcclxuICAgICAgICAgICAgICAgIGFwaU5hbWU6IHRoaXMua2V5LFxyXG4gICAgICAgICAgICAgICAgZXZlbnRXaGljaDogZXZlbnQud2hpY2gsXHJcbiAgICAgICAgICAgICAgICB2YWx1ZTogdmFsdWVBcnJbdmFsdWVBcnIubGVuZ3RoIC0gMV0sIC8vIC5yZXBsYWNlKC9bXmEtekEtWjAtOSBdL2csICcnKSxcclxuICAgICAgICAgICAgICAgIHJlZmVyZW5jZU9iamVjdEludGVybmFsVHlwZTogdGhpcy5yZWZlcmVuY2VPYmplY3RJbnRlcm5hbFR5cGUsXHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0gZWxzZSBpZiAodGhpcy50eXBlID09PSAnYnV0dG9uJyAmJiB0cnVlKSB7XHJcbiAgICAgICAgICAgIHRoaXMuZWxlbWVudENsaWNrZWQuZW1pdCh7XHJcbiAgICAgICAgICAgICAgICBhcGlOYW1lOiB0aGlzLmtleSxcclxuICAgICAgICAgICAgICAgIGV2ZW50V2hpY2g6IGV2ZW50LndoaWNoLFxyXG4gICAgICAgICAgICAgICAgdmFsdWU6IHRoaXMudmFsdWUgLy8gc2hvdWxkIGNvbnRhaW4gdGhlIHByb2dyYW0gbmFtZVxyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgIHRoaXMuZWxlbWVudENsaWNrZWQuZW1pdCh7IGFwaU5hbWU6IHRoaXMua2V5LCBldmVudFdoaWNoOiBldmVudC53aGljaCB9KTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAg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3B1bGwtcmlnaHQnOiB4QWxpZ25tZW50ID09ICcyJyxcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICdjZW50ZXItYWxpZ25tZW50JzogeEFsaWdubWVudCA9PSAnMydcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cInB1bGwtbGVmdCBmbGlwXCI+e3sgJ1JlZmVyZW5jZVRTQV9DcmVhdGVOZXcnIHwgdHJhbnNsYXRlIH19PC9zcGFuPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8bWF0LWljb24gY2xhc3M9XCJwdWxsLXJpZ2h0IGZsaXBcIiBwZXBSdGxDbGFzcz5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxwZXAtaWNvbiBuYW1lPVwibnVtYmVyX3BsdXNcIiAoY2xpY2spPVwib25CdXR0b25DbGlja2VkKCRldmVudClcIj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvcGVwLWljb24+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDwvbWF0LWljb24+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxyXG4gICAgICAgICAgICAgICAgPG5nLXRlbXBsYXRlICNleGlzdGluZ0Jsb2NrPlxyXG4gICAgICAgICAgICAgICAgICAgIDxwZXAtZ3JvdXAtYnV0dG9ucyBbYnV0dG9uc109XCJyZWZlcmVuY2VCdXR0b25zXCIgW2J1dHRvbnNDbGFzc109XCInbWQgcmVndWxhcidcIlxyXG4gICAgICAgICAgICAgICAgICAgICAgICBbYnV0dG9uc0Rpc2FibGVkXT1cImZhbHNlXCIgW3ZpZXdUeXBlXT1cIkdST1VQX0JVVFRPTlNfVklFV19UWVBFLlNwbGl0XCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9wZXAtZ3JvdXAtYnV0dG9ucz5cclxuICAgICAgICAgICAgICAgIDwvbmctdGVtcGxhdGU+XHJcbiAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgIDwvbmctdGVtcGxhdGU+XHJcbiAgICAgICAgPG5nLXRlbXBsYX