@pepperi-addons/ngx-composite-lib 0.4.2-beta.177 → 0.4.2-beta.179

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.
@@ -57,7 +57,7 @@ class ParamMapComponent {
57
57
  constructor(translate, _mappingParametersService) {
58
58
  this.translate = translate;
59
59
  this._mappingParametersService = _mappingParametersService;
60
- this.mappedParamValueChanged = new EventEmitter();
60
+ this.mappedParamChanged = new EventEmitter();
61
61
  this.parametersByType = [];
62
62
  this.paramTypes = [];
63
63
  this.paramHasDefaultValue = false;
@@ -79,7 +79,7 @@ class ParamMapComponent {
79
79
  this.paramHasDefaultValue = !!this.configurationParameter?.DefaultValue;
80
80
  this.param.Type = this.mappedParam?.Type || (this.paramHasDefaultValue ? 'Default' : 'Static');
81
81
  this.param.Value = this.mappedParam?.Value || this.configurationParameter?.DefaultValue;
82
- this.mappedParamValueChanged.emit(this.param);
82
+ this.mappedParamChanged.emit(this.param);
83
83
  }
84
84
  }
85
85
  ngOnInit() {
@@ -99,15 +99,15 @@ class ParamMapComponent {
99
99
  onParamKeyChanged(event) {
100
100
  this.param.Type = event;
101
101
  this.param.Value = event === 'Default' ? this.configurationParameter?.DefaultValue : event === 'Static' ? '' : '';
102
- this.mappedParamValueChanged.emit(this.param);
102
+ this.mappedParamChanged.emit(this.param);
103
103
  }
104
104
  onParamValueChanged(event) {
105
105
  this.param.Value = event;
106
- this.mappedParamValueChanged.emit(this.param);
106
+ this.mappedParamChanged.emit(this.param);
107
107
  }
108
108
  }
109
109
  ParamMapComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ParamMapComponent, deps: [{ token: i1.TranslateService }, { token: PepMappingParametersService }], target: i0.ɵɵFactoryTarget.Component });
110
- ParamMapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: ParamMapComponent, selector: "param-map", inputs: { configurationParameter: "configurationParameter", mappedParam: "mappedParam" }, outputs: { mappedParamValueChanged: "mappedParamValueChanged" }, ngImport: i0, template: "<div class=\"paramMapCont\">\n <pep-select\n [label]=\"configurationParameter.Key\"\n [value]=\"param.Type\"\n [options]=\"paramTypes\"\n [emptyOption]=\"false\"\n (valueChange)=\"onParamKeyChanged($event)\"\n ></pep-select>\n <pep-textbox\n *ngIf=\"!(param.Type === 'Dynamic')\"\n [label]=\"configurationParameter.Key\"\n [disabled]=\"param.Type !== 'Static'\"\n [value]=\"param.Value\"\n (valueChange)=\"onParamValueChanged($event)\"\n ></pep-textbox>\n\n <pep-select\n *ngIf=\"param.Type === 'Dynamic'\"\n [label]=\"configurationParameter.Key\"\n [value]=\"param.Value\"\n [options]=\"parametersByType\"\n [emptyOption]=\"true\"\n (valueChange)=\"onParamValueChanged($event)\"\n ></pep-select>\n</div>\n", styles: [".paramMapCont{display:grid;grid-template-columns:1fr 1fr;gap:var(--pep-spacing-lg, 1rem)}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.PepSelectComponent, selector: "pep-select", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "placeholder", "placeholderWhenDisabled", "autoSortOptions", "options", "visible", "emptyOption", "form", "layoutType", "parentFieldKey", "isActive", "showTitle", "renderTitle", "typeaheadDebounceInterval", "addValueToOptionsIfNotExist"], outputs: ["valueChange", "validationChange"] }, { kind: "component", type: i5.PepTextboxComponent, selector: "pep-textbox", inputs: ["key", "value", "minFractionDigits", "maxFractionDigits", "accessory", "label", "placeholder", "type", "mandatory", "disabled", "readonly", "maxFieldCharacters", "hint", "textColor", "xAlignment", "rowSpan", "minValue", "maxValue", "visible", "form", "isActive", "showTitle", "renderTitle", "renderError", "renderSymbol", "layoutType", "parentFieldKey", "regex", "regexError", "isInFocus"], outputs: ["valueChange", "keyup", "validationChange"] }] });
110
+ ParamMapComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: ParamMapComponent, selector: "param-map", inputs: { configurationParameter: "configurationParameter", mappedParam: "mappedParam" }, outputs: { mappedParamChanged: "mappedParamChanged" }, ngImport: i0, template: "<div class=\"paramMapCont\">\n <pep-select\n [label]=\"configurationParameter.Key\"\n [value]=\"param.Type\"\n [options]=\"paramTypes\"\n [emptyOption]=\"false\"\n (valueChange)=\"onParamKeyChanged($event)\"\n ></pep-select>\n <pep-textbox\n *ngIf=\"!(param.Type === 'Dynamic')\"\n [label]=\"configurationParameter.Key\"\n [disabled]=\"param.Type !== 'Static'\"\n [value]=\"param.Value\"\n (valueChange)=\"onParamValueChanged($event)\"\n ></pep-textbox>\n\n <pep-select\n *ngIf=\"param.Type === 'Dynamic'\"\n [label]=\"configurationParameter.Key\"\n [value]=\"param.Value\"\n [options]=\"parametersByType\"\n [emptyOption]=\"true\"\n (valueChange)=\"onParamValueChanged($event)\"\n ></pep-select>\n</div>\n", styles: [".paramMapCont{display:grid;grid-template-columns:1fr 1fr;gap:var(--pep-spacing-lg, 1rem)}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.PepSelectComponent, selector: "pep-select", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "placeholder", "placeholderWhenDisabled", "autoSortOptions", "options", "visible", "emptyOption", "form", "layoutType", "parentFieldKey", "isActive", "showTitle", "renderTitle", "typeaheadDebounceInterval", "addValueToOptionsIfNotExist"], outputs: ["valueChange", "validationChange"] }, { kind: "component", type: i5.PepTextboxComponent, selector: "pep-textbox", inputs: ["key", "value", "minFractionDigits", "maxFractionDigits", "accessory", "label", "placeholder", "type", "mandatory", "disabled", "readonly", "maxFieldCharacters", "hint", "textColor", "xAlignment", "rowSpan", "minValue", "maxValue", "visible", "form", "isActive", "showTitle", "renderTitle", "renderError", "renderSymbol", "layoutType", "parentFieldKey", "regex", "regexError", "isInFocus"], outputs: ["valueChange", "keyup", "validationChange"] }] });
111
111
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: ParamMapComponent, decorators: [{
112
112
  type: Component,
113
113
  args: [{ selector: 'param-map', template: "<div class=\"paramMapCont\">\n <pep-select\n [label]=\"configurationParameter.Key\"\n [value]=\"param.Type\"\n [options]=\"paramTypes\"\n [emptyOption]=\"false\"\n (valueChange)=\"onParamKeyChanged($event)\"\n ></pep-select>\n <pep-textbox\n *ngIf=\"!(param.Type === 'Dynamic')\"\n [label]=\"configurationParameter.Key\"\n [disabled]=\"param.Type !== 'Static'\"\n [value]=\"param.Value\"\n (valueChange)=\"onParamValueChanged($event)\"\n ></pep-textbox>\n\n <pep-select\n *ngIf=\"param.Type === 'Dynamic'\"\n [label]=\"configurationParameter.Key\"\n [value]=\"param.Value\"\n [options]=\"parametersByType\"\n [emptyOption]=\"true\"\n (valueChange)=\"onParamValueChanged($event)\"\n ></pep-select>\n</div>\n", styles: [".paramMapCont{display:grid;grid-template-columns:1fr 1fr;gap:var(--pep-spacing-lg, 1rem)}\n"] }]
@@ -115,7 +115,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
115
115
  type: Input
116
116
  }], mappedParam: [{
117
117
  type: Input
118
- }], mappedParamValueChanged: [{
118
+ }], mappedParamChanged: [{
119
119
  type: Output
120
120
  }] } });
121
121
 
@@ -126,24 +126,24 @@ class PepMappingParametersComponent {
126
126
  this.configurationParameters = [];
127
127
  this.mappedParameters = {};
128
128
  this.maxHeight = '100%';
129
- this.mappedParamValueChanged = new EventEmitter();
129
+ this.mappedParametersChange = new EventEmitter();
130
130
  }
131
131
  ngOnInit() {
132
132
  this._mappingParametersService.initParametersByType(this.mapToParameters);
133
133
  }
134
- onMappedParamValueChanged(event, key) {
134
+ onMappedParamChanged(event, key) {
135
135
  if (!this.mappedParameters) {
136
136
  this.mappedParameters = {};
137
137
  }
138
138
  this.mappedParameters[key] = event;
139
- this.mappedParamValueChanged.emit(this.mappedParameters);
139
+ this.mappedParametersChange.emit(this.mappedParameters);
140
140
  }
141
141
  }
142
142
  PepMappingParametersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepMappingParametersComponent, deps: [{ token: PepMappingParametersService }], target: i0.ɵɵFactoryTarget.Component });
143
- PepMappingParametersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepMappingParametersComponent, selector: "pep-mapping-parameters", inputs: { mapToParameters: "mapToParameters", configurationParameters: "configurationParameters", mappedParameters: "mappedParameters", maxHeight: "maxHeight" }, outputs: { mappedParamValueChanged: "mappedParamValueChanged" }, providers: [PepMappingParametersService], ngImport: i0, template: "<div class=\"header-title pep-border-bottom\">\n <span class=\"body-md bold\">{{'MAPPING_PARAMETERS.VARIABLE_MAPPING' | translate}}</span>\n</div>\n<div class=\"params-container\" [style.max-height]=\"maxHeight\">\n <ng-container *ngFor=\"let configParam of configurationParameters\">\n <param-map \n [configurationParameter]=\"configParam\" \n [mappedParam]=\"mappedParameters && mappedParameters[configParam.Key]\" \n (mappedParamValueChanged)=\"onMappedParamValueChanged($event, configParam.Key)\">\n </param-map>\n </ng-container>\n</div>\n", styles: [".header-title{height:var(--pep-form-field-height, 2.5rem);display:flex;margin-bottom:var(--pep-spacing-md, .75rem);align-items:center}.params-container{overflow:auto}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ParamMapComponent, selector: "param-map", inputs: ["configurationParameter", "mappedParam"], outputs: ["mappedParamValueChanged"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
143
+ PepMappingParametersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepMappingParametersComponent, selector: "pep-mapping-parameters", inputs: { mapToParameters: "mapToParameters", configurationParameters: "configurationParameters", mappedParameters: "mappedParameters", maxHeight: "maxHeight" }, outputs: { mappedParametersChange: "mappedParametersChange" }, providers: [PepMappingParametersService], ngImport: i0, template: "<div class=\"header-title pep-border-bottom\">\n <span class=\"body-md bold\">{{'MAPPING_PARAMETERS.VARIABLE_MAPPING' | translate}}</span>\n</div>\n<div class=\"params-container\" [style.max-height]=\"maxHeight\">\n <ng-container *ngFor=\"let configParam of configurationParameters\">\n <param-map \n [configurationParameter]=\"configParam\" \n [mappedParam]=\"mappedParameters && mappedParameters[configParam.Key]\" \n (mappedParamChanged)=\"onMappedParamChanged($event, configParam.Key)\">\n </param-map>\n </ng-container>\n</div>\n", styles: [".header-title{height:var(--pep-form-field-height, 2.5rem);display:flex;margin-bottom:var(--pep-spacing-md, .75rem);align-items:center}.params-container{overflow:auto}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: ParamMapComponent, selector: "param-map", inputs: ["configurationParameter", "mappedParam"], outputs: ["mappedParamChanged"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
144
144
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepMappingParametersComponent, decorators: [{
145
145
  type: Component,
146
- args: [{ selector: 'pep-mapping-parameters', providers: [PepMappingParametersService], template: "<div class=\"header-title pep-border-bottom\">\n <span class=\"body-md bold\">{{'MAPPING_PARAMETERS.VARIABLE_MAPPING' | translate}}</span>\n</div>\n<div class=\"params-container\" [style.max-height]=\"maxHeight\">\n <ng-container *ngFor=\"let configParam of configurationParameters\">\n <param-map \n [configurationParameter]=\"configParam\" \n [mappedParam]=\"mappedParameters && mappedParameters[configParam.Key]\" \n (mappedParamValueChanged)=\"onMappedParamValueChanged($event, configParam.Key)\">\n </param-map>\n </ng-container>\n</div>\n", styles: [".header-title{height:var(--pep-form-field-height, 2.5rem);display:flex;margin-bottom:var(--pep-spacing-md, .75rem);align-items:center}.params-container{overflow:auto}\n"] }]
146
+ args: [{ selector: 'pep-mapping-parameters', providers: [PepMappingParametersService], template: "<div class=\"header-title pep-border-bottom\">\n <span class=\"body-md bold\">{{'MAPPING_PARAMETERS.VARIABLE_MAPPING' | translate}}</span>\n</div>\n<div class=\"params-container\" [style.max-height]=\"maxHeight\">\n <ng-container *ngFor=\"let configParam of configurationParameters\">\n <param-map \n [configurationParameter]=\"configParam\" \n [mappedParam]=\"mappedParameters && mappedParameters[configParam.Key]\" \n (mappedParamChanged)=\"onMappedParamChanged($event, configParam.Key)\">\n </param-map>\n </ng-container>\n</div>\n", styles: [".header-title{height:var(--pep-form-field-height, 2.5rem);display:flex;margin-bottom:var(--pep-spacing-md, .75rem);align-items:center}.params-container{overflow:auto}\n"] }]
147
147
  }], ctorParameters: function () { return [{ type: PepMappingParametersService }]; }, propDecorators: { mapToParameters: [{
148
148
  type: Input
149
149
  }], configurationParameters: [{
@@ -152,7 +152,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
152
152
  type: Input
153
153
  }], maxHeight: [{
154
154
  type: Input
155
- }], mappedParamValueChanged: [{
155
+ }], mappedParametersChange: [{
156
156
  type: Output
157
157
  }] } });
158
158
 
@@ -1 +1 @@
1
- {"version":3,"file":"pepperi-addons-ngx-composite-lib-mapping-parameters.mjs","sources":["../../../projects/ngx-composite-lib/mapping-parameters/mapping-parameters.model.ts","../../../projects/ngx-composite-lib/mapping-parameters/mapping-parameters.service.ts","../../../projects/ngx-composite-lib/mapping-parameters/param-map/param-map.component.ts","../../../projects/ngx-composite-lib/mapping-parameters/param-map/param-map.component.html","../../../projects/ngx-composite-lib/mapping-parameters/mapping-parameters.component.ts","../../../projects/ngx-composite-lib/mapping-parameters/mapping-parameters.component.html","../../../projects/ngx-composite-lib/mapping-parameters/mapping-parameters.module.ts","../../../projects/ngx-composite-lib/mapping-parameters/pepperi-addons-ngx-composite-lib-mapping-parameters.ts"],"sourcesContent":["/**\n * Interface for mapping parameters\n */\n// export type ListParameter = Record<string, any>;\n\nexport interface MappedParameter {\n // Key: string;\n Value: string;\n Type: 'Default' | 'Static' | 'Dynamic';\n}\n\nexport type MappedParameters = Record<string, MappedParameter>;","import { AddonDataScheme, DataViewFieldType, FlowParam, SchemeField, SchemeFieldType } from \"@pepperi-addons/papi-sdk\";\nimport { Injectable } from \"@angular/core\";\nimport { IPepOption } from \"@pepperi-addons/ngx-lib\";\n\n// export const SELECTION_FIELD_PREFIX = 'ValueSelectionType_';\n\n@Injectable()\nexport class PepMappingParametersService {\n\n // configParams: IParamemeter[] = []\n\n // variablesMap: {\n // [key: string]: Set<string>\n // } = {};\n private _parameters: AddonDataScheme['Fields'];\n private _parametersByType: Map<SchemeFieldType, IPepOption[]> = new Map<SchemeFieldType, IPepOption[]>();\n get parametersByType(): ReadonlyMap<SchemeFieldType, IPepOption[]> {\n return this._parametersByType;\n }\n\n constructor() {}\n\n initParametersByType(parameters: AddonDataScheme['Fields']) {\n this._parameters = parameters || {};\n Object.keys(this._parameters).forEach(key => {\n const param: SchemeField | undefined = this._parameters ? this._parameters[key] : undefined;\n if (!param) {\n return;\n }\n\n if (!this._parametersByType.has(param.Type)) {\n this._parametersByType.set(param.Type, []);\n }\n \n this._parametersByType.get(param.Type)?.push({\n key: key,\n value: key\n });\n });\n }\n\n getParametersOptions(type: SchemeFieldType): IPepOption[] {\n return this._parametersByType.get(type) || [];\n }\n \n \n // private initVariables(hostParams: AddonDataScheme['Fields']) {\n // const params = hostParams || {};\n // Object.keys(params).forEach(name => {\n // const param = params[name];\n // if(!this.variablesMap.hasOwnProperty(param.Type)) {\n // this.variablesMap[param.Type] = new Set<string>();\n // }\n // this.variablesMap[param.Type].add(name);\n // })\n // }\n \n // private getDefaultValueForType(paramType: SchemeFieldType): any {\n // let defaultValue;\n // switch (paramType) {\n // case 'Bool':{\n // defaultValue = false;\n // break;\n // }\n // case 'Integer':{\n // defaultValue = 0;\n // break;\n // }\n // case 'Double': {\n // defaultValue = 0.0;\n // break;\n // }\n // case 'Object': {\n // defaultValue = '{}';\n // break;\n // }\n // default: {\n // defaultValue = ''\n // }\n // }\n // return defaultValue; \n // }\n\n // private getFieldsFromConfigParams(configParams: IParamemeter[], formData: Record<string, any>): IPepGenericFormDataViewField[] {\n // const viewFields: IPepGenericFormDataViewField[] = [{\n // Type: 'Separator',\n // FieldID: '',\n // OptionalValues: [],\n // AdditionalProps: {},\n // Mandatory: false,\n // ReadOnly: true,\n // Title: '', //this.translate.instant('FlowPicker_ParamsSection_Title'),\n // Layout: {\n // Origin: {\n // X: 0,\n // Y: 0\n // },\n // Size: {\n // Width: 2,\n // Height:0\n // }\n // }\n // }];\n // (configParams).filter(param => !param.Internal).forEach((param, index) => {\n // const fieldID = `${SELECTION_FIELD_PREFIX}${param.Key}`;\n // const pair = this.getParamDataViewFields(param, index + 1, formData[fieldID]);\n // viewFields.push(...pair);\n // })\n // return viewFields;\n // }\n \n // private getParamDataViewFields(param: IParamemeter, index: number, fieldSelection: string): IPepGenericFormDataViewField[]{\n // const fieldID = `${SELECTION_FIELD_PREFIX}${param.Key}`;\n // const variableNames: KeyValuePair<string>[] = this.getVariablesForType(param.Type);\n // const valueSelectionOptions: KeyValuePair<string>[] = [{\n // Key: 'static', \n // Value: 'Static'\n // }]\n // if(param.DefaultValue) {\n // valueSelectionOptions.push({\n // Key: 'default',\n // Value: 'Default'\n // })\n // }\n // if(variableNames?.length > 0) {\n // valueSelectionOptions.push({\n // Key: 'dynamic',\n // Value: 'Dynamic'\n // })\n // }\n // return [{\n // FieldID: fieldID,\n // Mandatory: false,\n // ReadOnly: false,\n // Title: param.Key,\n // Type:'ComboBox',\n // Layout: {\n // Origin: {\n // X: 0,\n // Y: index\n // },\n // Size: {\n // Width: 1,\n // Height: 0\n // }\n // },\n // Style: {\n // Alignment: {\n // Horizontal: 'Stretch',\n // Vertical: 'Stretch'\n // }\n // },\n // OptionalValues: valueSelectionOptions,\n // AdditionalProps: {\n // emptyOption: false\n // }\n // }, {\n // FieldID: param.Key,\n // Mandatory: false,\n // ReadOnly: fieldSelection === 'default',\n // Title: param.Key,\n // Type: fieldSelection != 'dynamic' ? this.convertParamsTypeToDVType(param.Type): 'ComboBox',\n // Layout: {\n // Origin: {\n // X: 1,\n // Y: index\n // },\n // Size: {\n // Width: 1,\n // Height: 0\n // }\n // },\n // Style: {\n // Alignment: {\n // Horizontal: 'Stretch',\n // Vertical: 'Stretch'\n // }\n // },\n // OptionalValues: fieldSelection === 'dynamic' ? variableNames : [],\n // AdditionalProps: {\n // emptyOption: false\n // }\n // }]\n // }\n\n // private convertParamsTypeToDVType(paramType: SchemeFieldType): DataViewFieldType {\n // let res: DataViewFieldType = 'TextBox';\n // switch (paramType) {\n // case 'Bool': {\n // res = 'Boolean';\n // break;\n // }\n // case 'Integer': {\n // res = 'NumberInteger';\n // break;\n // }\n // case 'Double': {\n // res = 'NumberReal';\n // break;\n // }\n // }\n // return res;\n // }\n\n // private getVariablesForType(paramType: SchemeFieldType): KeyValuePair<string>[] {\n // const result: KeyValuePair<string>[] = []\n // const variables = this.variablesMap[paramType];\n // if(variables) {\n // for (const item of variables.entries()){\n // result.push({\n // Key: item[1],\n // Value: item[1]\n // })\n // }\n // }\n\n // return result;\n // }\n\n // handleFieldChanged(event: IPepGenericFormValueChange, currentFormData: Record<string, any>) {\n // let newValue = ''\n // if(event.ApiName.startsWith(SELECTION_FIELD_PREFIX)) {\n // const paramName = event.ApiName.substring(SELECTION_FIELD_PREFIX.length);\n // const param = this.configParams.find(x=> x.Key === paramName);\n // if(event.Value === 'default') {\n // newValue = param?.DefaultValue;\n // }\n // else {\n // newValue = this.getDefaultValueForType(param?.Type as SchemeFieldType);\n // }\n // currentFormData[paramName] = newValue;\n // }\n // return currentFormData;\n // }\n\n // getFormData(FlowParamsObject?: Record<string, any>, configParams: IParamemeter[] = []): Record<string, any> {\n // this.configParams = configParams;\n // return configParams.filter(param => !param.Internal).map((param): Record<string, any> => {\n // const result: Record<string, any> = {};\n // const formPropName = `${SELECTION_FIELD_PREFIX}${param.Key}`;\n // if (FlowParamsObject) {\n // const data = FlowParamsObject[param.Name];\n // if(data) {\n // switch (data.Source) {\n // case 'Dynamic': {\n // result[formPropName] = 'dynamic';\n // break;\n // }\n // case 'Static': {\n // result[formPropName] = 'static'\n // break;\n // }\n // }\n // result[param.Key] = data.Value;\n // }\n // }\n // if (!result[formPropName]) {\n // result[param.Key] = param?.DefaultValue ? param.DefaultValue : this.getDefaultValueForType(param.Type);\n // result[formPropName] = param?.DefaultValue ? 'default': 'static';\n // }\n // return result;\n // }).reduce((prev, current) => {\n // prev = {...prev, ...current};\n // return prev;\n // }, {})\n // }\n\n // getRunFlowParamsData(formData: Record<string, any>): Record<string, any> {\n // const result: Record<string, any> = {}\n // Object.keys(formData).forEach(prop => {\n // if (prop.startsWith(SELECTION_FIELD_PREFIX)) {\n // const paramName = prop.substring(SELECTION_FIELD_PREFIX.length);\n // const value = {\n // Source: formData[prop] === 'dynamic' ? 'Dynamic' : 'Static',\n // Value: formData[paramName]\n // }\n // result[paramName] = value;\n // }\n // })\n // return result;\n // }\n\n // getPickerFormView(configParams: IParamemeter[], hostParams: AddonDataScheme['Fields'], formData: Record<string, any>): IPepGenericFormDataView {\n // this.initVariables(hostParams);\n // const result: IPepGenericFormDataView = {\n // Type: 'Form',\n // Fields: [],\n // Columns: [{},{}],\n // Context: {\n // Name: '',\n // Profile: { },\n // ScreenSize: 'Tablet'\n // }\n // };\n // result.Fields = this.getFieldsFromConfigParams(configParams, formData);\n // return result;\n // }\n}","import { Component, EventEmitter, Input, Output, OnInit } from '@angular/core';\nimport { MappedParameter } from '../mapping-parameters.model';\nimport { TranslateService } from '@ngx-translate/core';\nimport { IParamemeter } from '@pepperi-addons/ngx-composite-lib/manage-parameters';\nimport { PepMappingParametersService } from '../mapping-parameters.service';\nimport { IPepOption } from '@pepperi-addons/ngx-lib';\n\n@Component({\n selector: 'param-map',\n templateUrl: './param-map.component.html',\n styleUrls: ['./param-map.component.scss']\n})\nexport class ParamMapComponent implements OnInit {\n\n @Input() configurationParameter!: IParamemeter;\n\n private _mappedParam: MappedParameter | undefined;\n @Input()\n set mappedParam(value: MappedParameter | undefined) {\n this._mappedParam = value;\n this.initParam();\n }\n get mappedParam(): MappedParameter | undefined {\n return this._mappedParam;\n }\n \n @Output() mappedParamValueChanged: EventEmitter<MappedParameter> = new EventEmitter()\n\n protected parametersByType: IPepOption[] = [];\n protected paramTypes: any[] = [];\n\n protected paramHasDefaultValue: boolean = false;\n protected param: MappedParameter = {\n Value: '',\n Type: 'Static'\n }\n\n constructor(\n private translate: TranslateService,\n private _mappingParametersService: PepMappingParametersService\n ) {}\n\n private initParam() {\n if (this.param.Type !== this.mappedParam?.Type ||\n this.param.Value !== this.mappedParam?.Value\n ) {\n this.paramHasDefaultValue = !!this.configurationParameter?.DefaultValue;\n this.param.Type = this.mappedParam?.Type || (this.paramHasDefaultValue ? 'Default' : 'Static');\n this.param.Value = this.mappedParam?.Value || this.configurationParameter?.DefaultValue;\n\n this.mappedParamValueChanged.emit(this.param);\n }\n }\n\n ngOnInit() {\n // Get the parameters options by type from the service.\n this.parametersByType = this._mappingParametersService.getParametersOptions(this.configurationParameter.Type);\n this.initParam();\n\n this.paramTypes = [\n { key: 'Static', value: this.translate.instant('MAPPING_PARAMETERS.STATIC') },\n ];\n \n if (this.paramHasDefaultValue) {\n this.paramTypes.push({ key: 'Default', value: this.translate.instant('MAPPING_PARAMETERS.DEFAULT') });\n }\n\n if (this.parametersByType.length > 0) {\n this.paramTypes.push({ key: 'Dynamic', value: this.translate.instant('MAPPING_PARAMETERS.DYNAMIC') });\n }\n }\n\n onParamKeyChanged(event: any) {\n this.param.Type = event;\n this.param.Value = event === 'Default' ? this.configurationParameter?.DefaultValue : event === 'Static' ? '' : '';\n\n this.mappedParamValueChanged.emit(this.param);\n }\n\n onParamValueChanged(event: any) {\n this.param.Value = event;\n this.mappedParamValueChanged.emit(this.param);\n }\n}\n","<div class=\"paramMapCont\">\n <pep-select\n [label]=\"configurationParameter.Key\"\n [value]=\"param.Type\"\n [options]=\"paramTypes\"\n [emptyOption]=\"false\"\n (valueChange)=\"onParamKeyChanged($event)\"\n ></pep-select>\n <pep-textbox\n *ngIf=\"!(param.Type === 'Dynamic')\"\n [label]=\"configurationParameter.Key\"\n [disabled]=\"param.Type !== 'Static'\"\n [value]=\"param.Value\"\n (valueChange)=\"onParamValueChanged($event)\"\n ></pep-textbox>\n\n <pep-select\n *ngIf=\"param.Type === 'Dynamic'\"\n [label]=\"configurationParameter.Key\"\n [value]=\"param.Value\"\n [options]=\"parametersByType\"\n [emptyOption]=\"true\"\n (valueChange)=\"onParamValueChanged($event)\"\n ></pep-select>\n</div>\n","import { Component, EventEmitter, Input, Output, OnInit } from '@angular/core';\nimport { MappedParameter, MappedParameters } from './mapping-parameters.model';\nimport { IParamemeter } from '@pepperi-addons/ngx-composite-lib/manage-parameters';\nimport { PepMappingParametersService } from './mapping-parameters.service';\nimport { AddonDataScheme } from '@pepperi-addons/papi-sdk';\n\n@Component({\n selector: 'pep-mapping-parameters',\n templateUrl: './mapping-parameters.component.html',\n styleUrls: ['./mapping-parameters.component.scss'],\n providers: [PepMappingParametersService]\n})\nexport class PepMappingParametersComponent implements OnInit {\n\n @Input() mapToParameters: AddonDataScheme['Fields'] = {};\n @Input() configurationParameters: IParamemeter[] = [];\n @Input() mappedParameters: Record<string, MappedParameter> = {};\n @Input() maxHeight: string = '100%';\n \n @Output() mappedParamValueChanged: EventEmitter<MappedParameters> = new EventEmitter()\n\n constructor(private _mappingParametersService: PepMappingParametersService) {}\n\n ngOnInit(): void {\n this._mappingParametersService.initParametersByType(this.mapToParameters);\n }\n\n onMappedParamValueChanged(event: MappedParameter, key: string) {\n if (!this.mappedParameters) {\n this.mappedParameters = {};\n }\n\n this.mappedParameters[key] = event;\n this.mappedParamValueChanged.emit(this.mappedParameters);\n }\n}\n","<div class=\"header-title pep-border-bottom\">\n <span class=\"body-md bold\">{{'MAPPING_PARAMETERS.VARIABLE_MAPPING' | translate}}</span>\n</div>\n<div class=\"params-container\" [style.max-height]=\"maxHeight\">\n <ng-container *ngFor=\"let configParam of configurationParameters\">\n <param-map \n [configurationParameter]=\"configParam\" \n [mappedParam]=\"mappedParameters && mappedParameters[configParam.Key]\" \n (mappedParamValueChanged)=\"onMappedParamValueChanged($event, configParam.Key)\">\n </param-map>\n </ng-container>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\nimport { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { PepSliderModule } from '@pepperi-addons/ngx-lib/slider';\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepGroupButtonsModule } from '@pepperi-addons/ngx-lib/group-buttons';\nimport { PepSelectModule } from '@pepperi-addons/ngx-lib/select';\nimport { PepMappingParametersComponent } from './mapping-parameters.component';\nimport { PepTextboxModule } from '@pepperi-addons/ngx-lib/textbox';\nimport { ParamMapComponent } from './param-map/param-map.component';\nimport { PepMappingParametersService } from './mapping-parameters.service';\nimport { PepGenericFormModule } from '@pepperi-addons/ngx-composite-lib/generic-form';\n\n@NgModule({\n declarations: [PepMappingParametersComponent, ParamMapComponent],\n imports: [\n CommonModule,\n PepButtonModule,\n PepCheckboxModule,\n PepSliderModule,\n PepNgxLibModule,\n PepSelectModule,\n PepGroupButtonsModule,\n PepTextboxModule,\n PepGenericFormModule,\n TranslateModule.forChild()\n ],\n exports: [PepMappingParametersComponent],\n providers: [PepMappingParametersService]\n})\nexport class PepMappingParametersModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.PepMappingParametersService","i1.PepMappingParametersService","i2","i3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xB,SAAA,EAAA,CAAC,2BAA2B,CAAC,YAZpC,YAAY;QACZ,eAAe;QACf,iBAAiB;QACjB,eAAe;QACf,eAAe;QACf,eAAe;QACf,qBAAqB;QACrB,gBAAgB;QAChB,oBAAoB;QACpB,eAAe,CAAC,QAAQ,EAAE,CAAA,EAAA,CAAA,CAAA;2FAKrB,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAjBtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,6BAA6B,EAAE,iBAAiB,CAAC;AAChE,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,iBAAiB;wBACjB,eAAe;wBACf,eAAe;wBACf,eAAe;wBACf,qBAAqB;wBACrB,gBAAgB;wBAChB,oBAAoB;wBACpB,eAAe,CAAC,QAAQ,EAAE;AAC7B,qBAAA;oBACD,OAAO,EAAE,CAAC,6BAA6B,CAAC;oBACxC,SAAS,EAAE,CAAC,2BAA2B,CAAC;AAC3C,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"pepperi-addons-ngx-composite-lib-mapping-parameters.mjs","sources":["../../../projects/ngx-composite-lib/mapping-parameters/mapping-parameters.model.ts","../../../projects/ngx-composite-lib/mapping-parameters/mapping-parameters.service.ts","../../../projects/ngx-composite-lib/mapping-parameters/param-map/param-map.component.ts","../../../projects/ngx-composite-lib/mapping-parameters/param-map/param-map.component.html","../../../projects/ngx-composite-lib/mapping-parameters/mapping-parameters.component.ts","../../../projects/ngx-composite-lib/mapping-parameters/mapping-parameters.component.html","../../../projects/ngx-composite-lib/mapping-parameters/mapping-parameters.module.ts","../../../projects/ngx-composite-lib/mapping-parameters/pepperi-addons-ngx-composite-lib-mapping-parameters.ts"],"sourcesContent":["/**\n * Interface for mapping parameters\n */\n// export type ListParameter = Record<string, any>;\n\nexport interface MappedParameter {\n // Key: string;\n Value: string;\n Type: 'Default' | 'Static' | 'Dynamic';\n}\n\nexport type MappedParameters = Record<string, MappedParameter>;","import { AddonDataScheme, DataViewFieldType, FlowParam, SchemeField, SchemeFieldType } from \"@pepperi-addons/papi-sdk\";\nimport { Injectable } from \"@angular/core\";\nimport { IPepOption } from \"@pepperi-addons/ngx-lib\";\n\n// export const SELECTION_FIELD_PREFIX = 'ValueSelectionType_';\n\n@Injectable()\nexport class PepMappingParametersService {\n\n // configParams: IParamemeter[] = []\n\n // variablesMap: {\n // [key: string]: Set<string>\n // } = {};\n private _parameters: AddonDataScheme['Fields'];\n private _parametersByType: Map<SchemeFieldType, IPepOption[]> = new Map<SchemeFieldType, IPepOption[]>();\n get parametersByType(): ReadonlyMap<SchemeFieldType, IPepOption[]> {\n return this._parametersByType;\n }\n\n constructor() {}\n\n initParametersByType(parameters: AddonDataScheme['Fields']) {\n this._parameters = parameters || {};\n Object.keys(this._parameters).forEach(key => {\n const param: SchemeField | undefined = this._parameters ? this._parameters[key] : undefined;\n if (!param) {\n return;\n }\n\n if (!this._parametersByType.has(param.Type)) {\n this._parametersByType.set(param.Type, []);\n }\n \n this._parametersByType.get(param.Type)?.push({\n key: key,\n value: key\n });\n });\n }\n\n getParametersOptions(type: SchemeFieldType): IPepOption[] {\n return this._parametersByType.get(type) || [];\n }\n \n \n // private initVariables(hostParams: AddonDataScheme['Fields']) {\n // const params = hostParams || {};\n // Object.keys(params).forEach(name => {\n // const param = params[name];\n // if(!this.variablesMap.hasOwnProperty(param.Type)) {\n // this.variablesMap[param.Type] = new Set<string>();\n // }\n // this.variablesMap[param.Type].add(name);\n // })\n // }\n \n // private getDefaultValueForType(paramType: SchemeFieldType): any {\n // let defaultValue;\n // switch (paramType) {\n // case 'Bool':{\n // defaultValue = false;\n // break;\n // }\n // case 'Integer':{\n // defaultValue = 0;\n // break;\n // }\n // case 'Double': {\n // defaultValue = 0.0;\n // break;\n // }\n // case 'Object': {\n // defaultValue = '{}';\n // break;\n // }\n // default: {\n // defaultValue = ''\n // }\n // }\n // return defaultValue; \n // }\n\n // private getFieldsFromConfigParams(configParams: IParamemeter[], formData: Record<string, any>): IPepGenericFormDataViewField[] {\n // const viewFields: IPepGenericFormDataViewField[] = [{\n // Type: 'Separator',\n // FieldID: '',\n // OptionalValues: [],\n // AdditionalProps: {},\n // Mandatory: false,\n // ReadOnly: true,\n // Title: '', //this.translate.instant('FlowPicker_ParamsSection_Title'),\n // Layout: {\n // Origin: {\n // X: 0,\n // Y: 0\n // },\n // Size: {\n // Width: 2,\n // Height:0\n // }\n // }\n // }];\n // (configParams).filter(param => !param.Internal).forEach((param, index) => {\n // const fieldID = `${SELECTION_FIELD_PREFIX}${param.Key}`;\n // const pair = this.getParamDataViewFields(param, index + 1, formData[fieldID]);\n // viewFields.push(...pair);\n // })\n // return viewFields;\n // }\n \n // private getParamDataViewFields(param: IParamemeter, index: number, fieldSelection: string): IPepGenericFormDataViewField[]{\n // const fieldID = `${SELECTION_FIELD_PREFIX}${param.Key}`;\n // const variableNames: KeyValuePair<string>[] = this.getVariablesForType(param.Type);\n // const valueSelectionOptions: KeyValuePair<string>[] = [{\n // Key: 'static', \n // Value: 'Static'\n // }]\n // if(param.DefaultValue) {\n // valueSelectionOptions.push({\n // Key: 'default',\n // Value: 'Default'\n // })\n // }\n // if(variableNames?.length > 0) {\n // valueSelectionOptions.push({\n // Key: 'dynamic',\n // Value: 'Dynamic'\n // })\n // }\n // return [{\n // FieldID: fieldID,\n // Mandatory: false,\n // ReadOnly: false,\n // Title: param.Key,\n // Type:'ComboBox',\n // Layout: {\n // Origin: {\n // X: 0,\n // Y: index\n // },\n // Size: {\n // Width: 1,\n // Height: 0\n // }\n // },\n // Style: {\n // Alignment: {\n // Horizontal: 'Stretch',\n // Vertical: 'Stretch'\n // }\n // },\n // OptionalValues: valueSelectionOptions,\n // AdditionalProps: {\n // emptyOption: false\n // }\n // }, {\n // FieldID: param.Key,\n // Mandatory: false,\n // ReadOnly: fieldSelection === 'default',\n // Title: param.Key,\n // Type: fieldSelection != 'dynamic' ? this.convertParamsTypeToDVType(param.Type): 'ComboBox',\n // Layout: {\n // Origin: {\n // X: 1,\n // Y: index\n // },\n // Size: {\n // Width: 1,\n // Height: 0\n // }\n // },\n // Style: {\n // Alignment: {\n // Horizontal: 'Stretch',\n // Vertical: 'Stretch'\n // }\n // },\n // OptionalValues: fieldSelection === 'dynamic' ? variableNames : [],\n // AdditionalProps: {\n // emptyOption: false\n // }\n // }]\n // }\n\n // private convertParamsTypeToDVType(paramType: SchemeFieldType): DataViewFieldType {\n // let res: DataViewFieldType = 'TextBox';\n // switch (paramType) {\n // case 'Bool': {\n // res = 'Boolean';\n // break;\n // }\n // case 'Integer': {\n // res = 'NumberInteger';\n // break;\n // }\n // case 'Double': {\n // res = 'NumberReal';\n // break;\n // }\n // }\n // return res;\n // }\n\n // private getVariablesForType(paramType: SchemeFieldType): KeyValuePair<string>[] {\n // const result: KeyValuePair<string>[] = []\n // const variables = this.variablesMap[paramType];\n // if(variables) {\n // for (const item of variables.entries()){\n // result.push({\n // Key: item[1],\n // Value: item[1]\n // })\n // }\n // }\n\n // return result;\n // }\n\n // handleFieldChanged(event: IPepGenericFormValueChange, currentFormData: Record<string, any>) {\n // let newValue = ''\n // if(event.ApiName.startsWith(SELECTION_FIELD_PREFIX)) {\n // const paramName = event.ApiName.substring(SELECTION_FIELD_PREFIX.length);\n // const param = this.configParams.find(x=> x.Key === paramName);\n // if(event.Value === 'default') {\n // newValue = param?.DefaultValue;\n // }\n // else {\n // newValue = this.getDefaultValueForType(param?.Type as SchemeFieldType);\n // }\n // currentFormData[paramName] = newValue;\n // }\n // return currentFormData;\n // }\n\n // getFormData(FlowParamsObject?: Record<string, any>, configParams: IParamemeter[] = []): Record<string, any> {\n // this.configParams = configParams;\n // return configParams.filter(param => !param.Internal).map((param): Record<string, any> => {\n // const result: Record<string, any> = {};\n // const formPropName = `${SELECTION_FIELD_PREFIX}${param.Key}`;\n // if (FlowParamsObject) {\n // const data = FlowParamsObject[param.Name];\n // if(data) {\n // switch (data.Source) {\n // case 'Dynamic': {\n // result[formPropName] = 'dynamic';\n // break;\n // }\n // case 'Static': {\n // result[formPropName] = 'static'\n // break;\n // }\n // }\n // result[param.Key] = data.Value;\n // }\n // }\n // if (!result[formPropName]) {\n // result[param.Key] = param?.DefaultValue ? param.DefaultValue : this.getDefaultValueForType(param.Type);\n // result[formPropName] = param?.DefaultValue ? 'default': 'static';\n // }\n // return result;\n // }).reduce((prev, current) => {\n // prev = {...prev, ...current};\n // return prev;\n // }, {})\n // }\n\n // getRunFlowParamsData(formData: Record<string, any>): Record<string, any> {\n // const result: Record<string, any> = {}\n // Object.keys(formData).forEach(prop => {\n // if (prop.startsWith(SELECTION_FIELD_PREFIX)) {\n // const paramName = prop.substring(SELECTION_FIELD_PREFIX.length);\n // const value = {\n // Source: formData[prop] === 'dynamic' ? 'Dynamic' : 'Static',\n // Value: formData[paramName]\n // }\n // result[paramName] = value;\n // }\n // })\n // return result;\n // }\n\n // getPickerFormView(configParams: IParamemeter[], hostParams: AddonDataScheme['Fields'], formData: Record<string, any>): IPepGenericFormDataView {\n // this.initVariables(hostParams);\n // const result: IPepGenericFormDataView = {\n // Type: 'Form',\n // Fields: [],\n // Columns: [{},{}],\n // Context: {\n // Name: '',\n // Profile: { },\n // ScreenSize: 'Tablet'\n // }\n // };\n // result.Fields = this.getFieldsFromConfigParams(configParams, formData);\n // return result;\n // }\n}","import { Component, EventEmitter, Input, Output, OnInit } from '@angular/core';\nimport { MappedParameter } from '../mapping-parameters.model';\nimport { TranslateService } from '@ngx-translate/core';\nimport { IParamemeter } from '@pepperi-addons/ngx-composite-lib/manage-parameters';\nimport { PepMappingParametersService } from '../mapping-parameters.service';\nimport { IPepOption } from '@pepperi-addons/ngx-lib';\n\n@Component({\n selector: 'param-map',\n templateUrl: './param-map.component.html',\n styleUrls: ['./param-map.component.scss']\n})\nexport class ParamMapComponent implements OnInit {\n\n @Input() configurationParameter!: IParamemeter;\n\n private _mappedParam: MappedParameter | undefined;\n @Input()\n set mappedParam(value: MappedParameter | undefined) {\n this._mappedParam = value;\n this.initParam();\n }\n get mappedParam(): MappedParameter | undefined {\n return this._mappedParam;\n }\n \n @Output() mappedParamChanged: EventEmitter<MappedParameter> = new EventEmitter()\n\n protected parametersByType: IPepOption[] = [];\n protected paramTypes: any[] = [];\n\n protected paramHasDefaultValue: boolean = false;\n protected param: MappedParameter = {\n Value: '',\n Type: 'Static'\n }\n\n constructor(\n private translate: TranslateService,\n private _mappingParametersService: PepMappingParametersService\n ) {}\n\n private initParam() {\n if (this.param.Type !== this.mappedParam?.Type ||\n this.param.Value !== this.mappedParam?.Value\n ) {\n this.paramHasDefaultValue = !!this.configurationParameter?.DefaultValue;\n this.param.Type = this.mappedParam?.Type || (this.paramHasDefaultValue ? 'Default' : 'Static');\n this.param.Value = this.mappedParam?.Value || this.configurationParameter?.DefaultValue;\n\n this.mappedParamChanged.emit(this.param);\n }\n }\n\n ngOnInit() {\n // Get the parameters options by type from the service.\n this.parametersByType = this._mappingParametersService.getParametersOptions(this.configurationParameter.Type);\n this.initParam();\n\n this.paramTypes = [\n { key: 'Static', value: this.translate.instant('MAPPING_PARAMETERS.STATIC') },\n ];\n \n if (this.paramHasDefaultValue) {\n this.paramTypes.push({ key: 'Default', value: this.translate.instant('MAPPING_PARAMETERS.DEFAULT') });\n }\n\n if (this.parametersByType.length > 0) {\n this.paramTypes.push({ key: 'Dynamic', value: this.translate.instant('MAPPING_PARAMETERS.DYNAMIC') });\n }\n }\n\n onParamKeyChanged(event: any) {\n this.param.Type = event;\n this.param.Value = event === 'Default' ? this.configurationParameter?.DefaultValue : event === 'Static' ? '' : '';\n\n this.mappedParamChanged.emit(this.param);\n }\n\n onParamValueChanged(event: any) {\n this.param.Value = event;\n this.mappedParamChanged.emit(this.param);\n }\n}\n","<div class=\"paramMapCont\">\n <pep-select\n [label]=\"configurationParameter.Key\"\n [value]=\"param.Type\"\n [options]=\"paramTypes\"\n [emptyOption]=\"false\"\n (valueChange)=\"onParamKeyChanged($event)\"\n ></pep-select>\n <pep-textbox\n *ngIf=\"!(param.Type === 'Dynamic')\"\n [label]=\"configurationParameter.Key\"\n [disabled]=\"param.Type !== 'Static'\"\n [value]=\"param.Value\"\n (valueChange)=\"onParamValueChanged($event)\"\n ></pep-textbox>\n\n <pep-select\n *ngIf=\"param.Type === 'Dynamic'\"\n [label]=\"configurationParameter.Key\"\n [value]=\"param.Value\"\n [options]=\"parametersByType\"\n [emptyOption]=\"true\"\n (valueChange)=\"onParamValueChanged($event)\"\n ></pep-select>\n</div>\n","import { Component, EventEmitter, Input, Output, OnInit } from '@angular/core';\nimport { MappedParameter, MappedParameters } from './mapping-parameters.model';\nimport { IParamemeter } from '@pepperi-addons/ngx-composite-lib/manage-parameters';\nimport { PepMappingParametersService } from './mapping-parameters.service';\nimport { AddonDataScheme } from '@pepperi-addons/papi-sdk';\n\n@Component({\n selector: 'pep-mapping-parameters',\n templateUrl: './mapping-parameters.component.html',\n styleUrls: ['./mapping-parameters.component.scss'],\n providers: [PepMappingParametersService]\n})\nexport class PepMappingParametersComponent implements OnInit {\n\n @Input() mapToParameters: AddonDataScheme['Fields'] = {};\n @Input() configurationParameters: IParamemeter[] = [];\n @Input() mappedParameters: Record<string, MappedParameter> = {};\n @Input() maxHeight: string = '100%';\n \n @Output() mappedParametersChange: EventEmitter<MappedParameters> = new EventEmitter()\n\n constructor(private _mappingParametersService: PepMappingParametersService) {}\n\n ngOnInit(): void {\n this._mappingParametersService.initParametersByType(this.mapToParameters);\n }\n\n onMappedParamChanged(event: MappedParameter, key: string) {\n if (!this.mappedParameters) {\n this.mappedParameters = {};\n }\n\n this.mappedParameters[key] = event;\n this.mappedParametersChange.emit(this.mappedParameters);\n }\n}\n","<div class=\"header-title pep-border-bottom\">\n <span class=\"body-md bold\">{{'MAPPING_PARAMETERS.VARIABLE_MAPPING' | translate}}</span>\n</div>\n<div class=\"params-container\" [style.max-height]=\"maxHeight\">\n <ng-container *ngFor=\"let configParam of configurationParameters\">\n <param-map \n [configurationParameter]=\"configParam\" \n [mappedParam]=\"mappedParameters && mappedParameters[configParam.Key]\" \n (mappedParamChanged)=\"onMappedParamChanged($event, configParam.Key)\">\n </param-map>\n </ng-container>\n</div>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\nimport { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { PepSliderModule } from '@pepperi-addons/ngx-lib/slider';\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepGroupButtonsModule } from '@pepperi-addons/ngx-lib/group-buttons';\nimport { PepSelectModule } from '@pepperi-addons/ngx-lib/select';\nimport { PepMappingParametersComponent } from './mapping-parameters.component';\nimport { PepTextboxModule } from '@pepperi-addons/ngx-lib/textbox';\nimport { ParamMapComponent } from './param-map/param-map.component';\nimport { PepMappingParametersService } from './mapping-parameters.service';\nimport { PepGenericFormModule } from '@pepperi-addons/ngx-composite-lib/generic-form';\n\n@NgModule({\n declarations: [PepMappingParametersComponent, ParamMapComponent],\n imports: [\n CommonModule,\n PepButtonModule,\n PepCheckboxModule,\n PepSliderModule,\n PepNgxLibModule,\n PepSelectModule,\n PepGroupButtonsModule,\n PepTextboxModule,\n PepGenericFormModule,\n TranslateModule.forChild()\n ],\n exports: [PepMappingParametersComponent],\n providers: [PepMappingParametersService]\n})\nexport class PepMappingParametersModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2.PepMappingParametersService","i1.PepMappingParametersService","i2","i3.ParamMapComponent","i4"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;AAEG;;ACEH;MAGa,2BAA2B,CAAA;AAapC,IAAA,WAAA,GAAA;AALQ,QAAA,IAAA,CAAA,iBAAiB,GAAuC,IAAI,GAAG,EAAiC,CAAC;KAKzF;AAJhB,IAAA,IAAI,gBAAgB,GAAA;QAChB,OAAO,IAAI,CAAC,iBA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,CAAA;kBAjBtC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,YAAY,EAAE,CAAC,6BAA6B,EAAE,iBAAiB,CAAC;AAChE,oBAAA,OAAO,EAAE;wBACL,YAAY;wBACZ,eAAe;wBACf,iBAAiB;wBACjB,eAAe;wBACf,eAAe;wBACf,eAAe;wBACf,qBAAqB;wBACrB,gBAAgB;wBAChB,oBAAoB;wBACpB,eAAe,CAAC,QAAQ,EAAE;AAC7B,qBAAA;oBACD,OAAO,EAAE,CAAC,6BAA6B,CAAC;oBACxC,SAAS,EAAE,CAAC,2BAA2B,CAAC;AAC3C,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
@@ -19,6 +19,9 @@ export declare class PepLayoutComponent extends BaseDestroyerDirective implement
19
19
  set layoutView(value: IPepLayoutView);
20
20
  get layoutView(): IPepLayoutView;
21
21
  blockTemplate: TemplateRef<any> | undefined;
22
+ private _renderSkeleton;
23
+ set renderSkeleton(value: boolean);
24
+ get renderSkeleton(): boolean;
22
25
  private _showSkeleton;
23
26
  set showSkeleton(value: boolean);
24
27
  get showSkeleton(): boolean;
@@ -49,5 +52,5 @@ export declare class PepLayoutComponent extends BaseDestroyerDirective implement
49
52
  onDragStart(event: CdkDragStart): void;
50
53
  onDragEnd(event: CdkDragEnd): void;
51
54
  static ɵfac: i0.ɵɵFactoryDeclaration<PepLayoutComponent, [{ optional: true; }, null, null, null]>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<PepLayoutComponent, "pep-layout", never, { "editorMode": "editorMode"; "layoutView": "layoutView"; "blockTemplate": "blockTemplate"; "showSkeleton": "showSkeleton"; }, { "layoutViewChange": "layoutViewChange"; "screenTypeChange": "screenTypeChange"; }, never, never, false>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<PepLayoutComponent, "pep-layout", never, { "editorMode": "editorMode"; "layoutView": "layoutView"; "blockTemplate": "blockTemplate"; "renderSkeleton": "renderSkeleton"; "showSkeleton": "showSkeleton"; }, { "layoutViewChange": "layoutViewChange"; "screenTypeChange": "screenTypeChange"; }, never, never, false>;
53
56
  }
@@ -10,10 +10,10 @@ export declare class PepMappingParametersComponent implements OnInit {
10
10
  configurationParameters: IParamemeter[];
11
11
  mappedParameters: Record<string, MappedParameter>;
12
12
  maxHeight: string;
13
- mappedParamValueChanged: EventEmitter<MappedParameters>;
13
+ mappedParametersChange: EventEmitter<MappedParameters>;
14
14
  constructor(_mappingParametersService: PepMappingParametersService);
15
15
  ngOnInit(): void;
16
- onMappedParamValueChanged(event: MappedParameter, key: string): void;
16
+ onMappedParamChanged(event: MappedParameter, key: string): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<PepMappingParametersComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<PepMappingParametersComponent, "pep-mapping-parameters", never, { "mapToParameters": "mapToParameters"; "configurationParameters": "configurationParameters"; "mappedParameters": "mappedParameters"; "maxHeight": "maxHeight"; }, { "mappedParamValueChanged": "mappedParamValueChanged"; }, never, never, false>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<PepMappingParametersComponent, "pep-mapping-parameters", never, { "mapToParameters": "mapToParameters"; "configurationParameters": "configurationParameters"; "mappedParameters": "mappedParameters"; "maxHeight": "maxHeight"; }, { "mappedParametersChange": "mappedParametersChange"; }, never, never, false>;
19
19
  }
@@ -12,7 +12,7 @@ export declare class ParamMapComponent implements OnInit {
12
12
  private _mappedParam;
13
13
  set mappedParam(value: MappedParameter | undefined);
14
14
  get mappedParam(): MappedParameter | undefined;
15
- mappedParamValueChanged: EventEmitter<MappedParameter>;
15
+ mappedParamChanged: EventEmitter<MappedParameter>;
16
16
  protected parametersByType: IPepOption[];
17
17
  protected paramTypes: any[];
18
18
  protected paramHasDefaultValue: boolean;
@@ -23,5 +23,5 @@ export declare class ParamMapComponent implements OnInit {
23
23
  onParamKeyChanged(event: any): void;
24
24
  onParamValueChanged(event: any): void;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ParamMapComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<ParamMapComponent, "param-map", never, { "configurationParameter": "configurationParameter"; "mappedParam": "mappedParam"; }, { "mappedParamValueChanged": "mappedParamValueChanged"; }, never, never, false>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<ParamMapComponent, "param-map", never, { "configurationParameter": "configurationParameter"; "mappedParam": "mappedParam"; }, { "mappedParamChanged": "mappedParamChanged"; }, never, never, false>;
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pepperi-addons/ngx-composite-lib",
3
- "version": "0.4.2-beta.177",
3
+ "version": "0.4.2-beta.179",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": ">= 14.0.2",
6
6
  "@angular/cdk": ">= 14.0.2",