@esfaenza/parameters 12.2.12 → 13.1.5

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.
@@ -1,271 +0,0 @@
1
- import { InjectionToken, Injectable, Inject, Component, forwardRef, ChangeDetectorRef, Injector, Input, NgModule } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { NgControl, NG_VALUE_ACCESSOR, NG_VALIDATORS, FormsModule } from '@angular/forms';
4
- import { FormsAndValidationsModule } from '@esfaenza/forms-and-validations';
5
- import { LocalizationService, LocalizationModule } from '@esfaenza/localizations';
6
- import { UtilityService, FullExtensionsModule } from '@esfaenza/extensions';
7
-
8
- /**
9
- * Token che indica il locale da utilizzare per l'applicazione. Sono supportati i locali "it-IT" ed "en-US"
10
- */
11
- const PAR_LOCALE = new InjectionToken('PAR_LOCALE');
12
-
13
- /**
14
- * Classe di localizzazione per il componente **EsParametersComponent**
15
- */
16
- class EsParametersLoc extends LocalizationService {
17
- /**
18
- * Costruttore
19
- *
20
- * @ignore
21
- */
22
- constructor(LOC_LOCALE) {
23
- super(LOC_LOCALE);
24
- }
25
- }
26
- EsParametersLoc.decorators = [
27
- { type: Injectable }
28
- ];
29
- EsParametersLoc.ctorParameters = () => [
30
- { type: String, decorators: [{ type: Inject, args: [PAR_LOCALE,] }] }
31
- ];
32
-
33
- // Angular
34
- /**
35
- * Componente che permette di graficare una lista di **GenericParameter** come Input in base al loro tipo specifico
36
- */
37
- class EsParametersComponent {
38
- /**
39
- * Costruttore
40
- *
41
- * @ignore
42
- */
43
- constructor(utiExts, lc, cdr, inj) {
44
- this.utiExts = utiExts;
45
- this.lc = lc;
46
- this.cdr = cdr;
47
- this.inj = inj;
48
- /**
49
- * Pipeline di Angular
50
- *
51
- * @ignore
52
- */
53
- this.propagateChange = (_) => { };
54
- /**
55
- * Indica che l'ultimo parametro non deve avere margine in fondo
56
- */
57
- this.LastParameterNoMargin = false;
58
- /**
59
- * col-md-X per la label
60
- */
61
- this.LabelColWidth = 4;
62
- /**
63
- * col-md-X per l'input
64
- */
65
- this.InputColWidth = 8;
66
- /**
67
- * Input a cui collegare la variabile **submitted** del form all'interno del quale viene utilizzato questo componente
68
- */
69
- this.submitted = false;
70
- /**
71
- * Valore da mostrare qualora non fossero ancora ricevuti i **Parameters** da mostrare
72
- */
73
- this.EmptyMessage = "";
74
- /**
75
- * Permette di rimuovere i parametri dalla lista cliccando sulla X davanti alla Label
76
- */
77
- this.Removal = false;
78
- /**
79
- * Indica se i componenti di Input generati sono Readonly o no
80
- */
81
- this.Readonly = false;
82
- }
83
- /**
84
- * Permette di settare in una volta solo gli input **LabelColWidth** e **InputColWidth**, basta scriverlo con la sintassi "X Y"
85
- */
86
- set LabelInputRatio(input) {
87
- var ratio = input.split(/\s/);
88
- this.LabelColWidth = parseInt(ratio[0]);
89
- this.InputColWidth = parseInt(ratio[1]);
90
- }
91
- /**
92
- * Pipeline di Angular
93
- *
94
- * @ignore
95
- */
96
- writeValue(obj) {
97
- this.Parameters = obj;
98
- if (!this.Parameters)
99
- return;
100
- this.Parameters.forEach(t => {
101
- if (t.typecode && !t.type)
102
- t.type = this.utiExts.getJsTypeFromTypeCode(t.typecode);
103
- if (t.type != this.utiExts.getJsTypeFromTypeCode(t.typecode))
104
- throw "Rilevate inconsistenze fra il tipo " + t.type + " e il tipo " + this.utiExts.getJsTypeFromTypeCode(t.typecode);
105
- if (t.type == "boolean")
106
- t.value = t.value.toString().toLowerCase() === "true";
107
- if (t.enumtype || t.dicttype)
108
- t.type = 'enum';
109
- });
110
- }
111
- /**
112
- * Pipeline di Angular
113
- *
114
- * @ignore
115
- */
116
- validate(c) {
117
- var _a;
118
- // Se la validazione è richiamata da un componente non me stesso vuol dire che i componenti di validazione interni stanno richiamando
119
- // questo validator, ma dal loro punto di vista non se ne devono preoccupare quindi faccio finta non ci siano errori.
120
- // Se invece vengo richiamato direttamente significa che è il form in cui vive es-parameters e lì devo effettuare la validazione
121
- let control = (_a = this.inj.get(NgControl, null)) === null || _a === void 0 ? void 0 : _a.control;
122
- if (c != control)
123
- return null;
124
- let valid = true;
125
- if (this.Parameters && this.Parameters.length > 0) {
126
- this.Parameters.forEach(t => {
127
- if (t.mandatory && !t.value)
128
- valid = false;
129
- else if (t.value && t.type == 'number')
130
- valid = new RegExp(t.pattern || /^[+-]?[0-9]*[,]?[0-9]+$/).test(t.value);
131
- else if (t.value && t.pattern)
132
- valid = new RegExp(t.pattern).test(t.value);
133
- });
134
- }
135
- if (valid)
136
- return null;
137
- return { "es-parameters": valid };
138
- }
139
- /**
140
- * Pipeline di Angular
141
- *
142
- * @ignore
143
- */
144
- registerOnChange(fn) { this.propagateChange = fn; }
145
- /**
146
- * Pipeline di Angular
147
- *
148
- * @ignore
149
- */
150
- registerOnTouched(fn) { }
151
- /**
152
- * Metodo che si occupa di gestire il modello in uscita e propagarlo sul binding ngModel
153
- */
154
- changed() {
155
- var thyCleanShaltNotBlankMe = JSON.parse(JSON.stringify(this.Parameters));
156
- this.propagateChange(thyCleanShaltNotBlankMe);
157
- }
158
- /**
159
- * Rimuove il parametro selezionato e propaga il modello
160
- *
161
- * @param {GenericParameter} par Parametro da rimuovere
162
- */
163
- removeParameter(par) {
164
- this.Parameters.splice(this.Parameters.indexOf(par), 1);
165
- this.changed();
166
- }
167
- }
168
- EsParametersComponent.decorators = [
169
- { type: Component, args: [{
170
- selector: "es-parameters",
171
- providers: [
172
- { provide: LocalizationService, useClass: EsParametersLoc },
173
- {
174
- provide: NG_VALUE_ACCESSOR,
175
- useExisting: forwardRef(() => EsParametersComponent),
176
- multi: true
177
- },
178
- {
179
- provide: NG_VALIDATORS,
180
- useExisting: forwardRef(() => EsParametersComponent),
181
- multi: true
182
- }
183
- ],
184
- template: "<div *ngIf=\"(!Parameters || Parameters.length == 0) && EmptyMessage\">\r\n <em>{{EmptyMessage}}</em>\r\n</div>\r\n\r\n<div *ngIf=\"Parameters && Parameters.length > 0\">\r\n <div class=\"row form-group\" *ngFor=\"let par of Parameters; let i= index; let last = last;\" [class.app-margin-bottom-0]=\"LastParameterNoMargin && last\" [hidden]=\"!par.insertthis\">\r\n <label class=\"col-md-{{LabelColWidth}} m-t-5\"><span *ngIf=\"Removal\" class=\"fa fa-remove text-danger\" (click)=\"removeParameter(par)\"></span>&nbsp;{{par.description}}{{par.mandatory ? '*' : ''}}:</label>\r\n\r\n <div class=\"col-md-{{InputColWidth}}\" *ngIf=\"par.type == 'date'\">\r\n <form-date [FormLayout]=\"false\" [Readonly]=\"Readonly || par.isreadonly\" [required]=\"par.mandatory\" [(ngModel)]=\"par.value\" name=\"par{{i}}\" (inputChange)=\"changed();\" #validator></form-date>\r\n </div>\r\n <!--Se stringa-->\r\n <div class=\"col-md-{{InputColWidth}}\" *ngIf=\"par.type == 'string'\">\r\n <form-input [FormLayout]=\"false\" [Readonly]=\"Readonly || par.isreadonly\" [required]=\"par.mandatory\" [(ngModel)]=\"par.value\" name=\"par{{i}}\" (inputChange)=\"changed();\" #validator></form-input>\r\n </div>\r\n <!--Se numero-->\r\n <div class=\"col-md-{{InputColWidth}}\" *ngIf=\"par.type == 'number'\">\r\n <form-input [FormLayout]=\"false\" [Readonly]=\"Readonly || par.isreadonly\" [required]=\"par.mandatory\" [(ngModel)]=\"par.value\" name=\"par{{i}}\" (inputChange)=\"changed();\" #validator pattern=\"{{par.pattern || '^[+-]?[0-9]*[,]?[0-9]+$'}}\"></form-input>\r\n </div>\r\n <!--Se boolean-->\r\n <div class=\"col-md-{{InputColWidth}} m-t-5\" *ngIf=\"par.type == 'boolean'\">\r\n <form-checkbox [FormLayout]=\"false\" [Readonly]=\"Readonly || par.isreadonly\" [(ngModel)]=\"par.value\" name=\"par{{i}}\" (inputChange)=\"changed();\" #validator></form-checkbox>\r\n </div>\r\n <!--Se enum single select-->\r\n <div class=\"col-md-{{InputColWidth}}\" *ngIf=\"par.type == 'enum' && !par.multienum\">\r\n <form-select [FormLayout]=\"false\" [Readonly]=\"Readonly || par.isreadonly\" [required]=\"par.mandatory\" [(ngModel)]=\"par.value\" name=\"par{{i}}\" (inputChange)=\"changed();\" #validator [Source]=\"par.enumvalues\"></form-select>\r\n </div>\r\n <!--Se enum multi select-->\r\n <div class=\"col-md-{{InputColWidth}}\" *ngIf=\"par.type == 'enum' && par.multienum\">\r\n <form-multiselect [FormLayout]=\"false\" [SelectLabel]=\"('Select' | localize : lc) + '...'\" [(ngModel)]=\"par.value\" name=\"mtu\" [Readonly]=\"Readonly || par.isreadonly\" [Source]=\"par.enumvalues\" required (inputChange)=\"changed();\" #validator></form-multiselect>\r\n </div>\r\n\r\n <div class=\"clearfix\"></div>\r\n </div>\r\n</div>"
185
- },] }
186
- ];
187
- EsParametersComponent.ctorParameters = () => [
188
- { type: UtilityService },
189
- { type: LocalizationService },
190
- { type: ChangeDetectorRef },
191
- { type: Injector }
192
- ];
193
- EsParametersComponent.propDecorators = {
194
- LastParameterNoMargin: [{ type: Input }],
195
- LabelColWidth: [{ type: Input }],
196
- InputColWidth: [{ type: Input }],
197
- submitted: [{ type: Input }],
198
- EmptyMessage: [{ type: Input }],
199
- Removal: [{ type: Input }],
200
- Readonly: [{ type: Input }],
201
- LabelInputRatio: [{ type: Input }]
202
- };
203
-
204
- class EsParametersModule {
205
- static forRoot(config) {
206
- return {
207
- ngModule: EsParametersModule,
208
- providers: [
209
- { provide: PAR_LOCALE, useValue: (config === null || config === void 0 ? void 0 : config.locale) || 'it-IT' }
210
- ]
211
- };
212
- }
213
- }
214
- EsParametersModule.decorators = [
215
- { type: NgModule, args: [{
216
- declarations: [EsParametersComponent],
217
- imports: [
218
- CommonModule,
219
- LocalizationModule,
220
- FormsModule,
221
- FullExtensionsModule,
222
- FormsAndValidationsModule,
223
- ],
224
- exports: [EsParametersComponent]
225
- },] }
226
- ];
227
-
228
- /**
229
- * Classe che rappresenta un parametro generico
230
- */
231
- class GenericParameter {
232
- /**
233
- * Costruttore
234
- *
235
- * @param {string} id Codice del parametro
236
- * @param {string} description Descrizione del parametro
237
- * @param {string} pattern Pattern di validazione
238
- * @param {'date' | 'string' | 'number' | 'boolean' | 'enum'} type Tipo di input
239
- * @param {boolean} mandatory Indica se il valore è obbligatorio o meno
240
- * @param {any} v_default Valore di default per questo Parametro
241
- * @param {{ id: string, description: string }[]} enumvalues Qualora il **type** fosse di tipo **enum**, qui devono esserci tutti i valori che può assumere
242
- * @param {boolean} multienum Qualora il **type** fosse di tipo **enum**, indica se è possibile selezionare più valori (multiselect)
243
- */
244
- constructor(id, description, pattern, type, mandatory, v_default = null, enumvalues = [], multienum) {
245
- this.id = id;
246
- this.description = description;
247
- this.pattern = pattern;
248
- this.mandatory = mandatory;
249
- this.enumvalues = enumvalues;
250
- this.multienum = multienum;
251
- this.type = type == 'enum' ? "" : type;
252
- this.insertthis = true;
253
- this.enumtype = type == 'enum' ? type : "";
254
- this.isreadonly = false;
255
- if (!this.enumtype && enumvalues.length != 0)
256
- console.error("impossibile gestire valori di dizionario per un parametro non di tipo enum");
257
- if (v_default != null)
258
- this.value = v_default;
259
- }
260
- }
261
-
262
- /*
263
- * Public API Surface of parameters
264
- */
265
-
266
- /**
267
- * Generated bundle index. Do not edit.
268
- */
269
-
270
- export { EsParametersComponent, EsParametersModule, GenericParameter, PAR_LOCALE, EsParametersLoc as ɵa };
271
- //# sourceMappingURL=esfaenza-parameters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"esfaenza-parameters.js","sources":["../../../projects/parameters/src/lib/tokens.ts","../../../projects/parameters/src/lib/es_parameters.component.loc.ts","../../../projects/parameters/src/lib/es_parameters.component.ts","../../../projects/parameters/src/lib/es_parameters.module.ts","../../../projects/parameters/src/lib/models/GenericParameter.ts","../../../projects/parameters/src/public-api.ts","../../../projects/parameters/src/esfaenza-parameters.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\n/**\r\n * Token che indica il locale da utilizzare per l'applicazione. Sono supportati i locali \"it-IT\" ed \"en-US\"\r\n */\r\nexport const PAR_LOCALE: InjectionToken<string> = new InjectionToken<string>('PAR_LOCALE');","import { Injectable, Inject } from \"@angular/core\";\r\nimport { LocalizationService } from \"@esfaenza/localizations\";\r\nimport { PAR_LOCALE } from './tokens';\r\n\r\n/**\r\n * Classe di localizzazione per il componente **EsParametersComponent**\r\n */\r\n@Injectable()\r\nexport class EsParametersLoc extends LocalizationService {\r\n\r\n /**\r\n * Costruttore\r\n * \r\n * @ignore\r\n */\r\n constructor(@Inject(PAR_LOCALE) LOC_LOCALE: string) {\r\n super(LOC_LOCALE);\r\n }\r\n}","// Angular\r\nimport { ControlValueAccessor, FormControl, NgControl, NG_VALIDATORS, NG_VALUE_ACCESSOR, Validator } from \"@angular/forms\";\r\nimport { ChangeDetectorRef, Component, forwardRef, Injector, Input } from \"@angular/core\";\r\n\r\n// Configurazioni\r\nimport { LocalizationService } from \"@esfaenza/localizations\";\r\nimport { UtilityService } from \"@esfaenza/extensions\";\r\n\r\n// Classi\r\nimport { GenericParameter } from './models/GenericParameter';\r\n\r\n// Applicazione\r\nimport { EsParametersLoc } from \"./es_parameters.component.loc\";\r\n\r\n/**\r\n * Componente che permette di graficare una lista di **GenericParameter** come Input in base al loro tipo specifico\r\n */\r\n@Component({\r\n selector: \"es-parameters\",\r\n providers: [\r\n { provide: LocalizationService, useClass: EsParametersLoc },\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => EsParametersComponent),\r\n multi: true\r\n },\r\n {\r\n provide: NG_VALIDATORS,\r\n useExisting: forwardRef(() => EsParametersComponent),\r\n multi: true\r\n }],\r\n templateUrl: \"./es_parameters.component.html\"\r\n})\r\nexport class EsParametersComponent implements ControlValueAccessor, Validator {\r\n\r\n /**\r\n * Modello del componente su cui vengono effettuate le graficazioni\r\n */\r\n public Parameters: GenericParameter[];\r\n\r\n /**\r\n * Pipeline di Angular \r\n * \r\n * @ignore\r\n */\r\n propagateChange = (_: any) => { };\r\n\r\n /**\r\n * Indica che l'ultimo parametro non deve avere margine in fondo\r\n */\r\n @Input() LastParameterNoMargin: boolean = false;\r\n\r\n /**\r\n * col-md-X per la label\r\n */\r\n @Input() LabelColWidth: number = 4;\r\n\r\n /**\r\n * col-md-X per l'input\r\n */\r\n @Input() InputColWidth: number = 8;\r\n\r\n /**\r\n * Input a cui collegare la variabile **submitted** del form all'interno del quale viene utilizzato questo componente\r\n */\r\n @Input() submitted: boolean = false;\r\n\r\n /**\r\n * Valore da mostrare qualora non fossero ancora ricevuti i **Parameters** da mostrare\r\n */\r\n @Input() EmptyMessage: string = \"\";\r\n\r\n /**\r\n * Permette di rimuovere i parametri dalla lista cliccando sulla X davanti alla Label\r\n */\r\n @Input() Removal: boolean = false;\r\n\r\n /**\r\n * Indica se i componenti di Input generati sono Readonly o no\r\n */\r\n @Input() Readonly: boolean = false;\r\n\r\n /**\r\n * Permette di settare in una volta solo gli input **LabelColWidth** e **InputColWidth**, basta scriverlo con la sintassi \"X Y\"\r\n */\r\n @Input() set LabelInputRatio(input: string) {\r\n var ratio = input.split(/\\s/);\r\n this.LabelColWidth = parseInt(ratio[0]);\r\n this.InputColWidth = parseInt(ratio[1]);\r\n }\r\n\r\n /**\r\n * Costruttore\r\n * \r\n * @ignore\r\n */\r\n constructor(private utiExts: UtilityService, public lc: LocalizationService, public cdr: ChangeDetectorRef, private inj: Injector) { }\r\n\r\n /**\r\n * Pipeline di Angular\r\n * \r\n * @ignore\r\n */\r\n public writeValue(obj): void {\r\n this.Parameters = obj;\r\n if (!this.Parameters)\r\n return;\r\n\r\n this.Parameters.forEach(t => {\r\n if (t.typecode && !t.type)\r\n t.type = this.utiExts.getJsTypeFromTypeCode(t.typecode);\r\n\r\n if (t.type != this.utiExts.getJsTypeFromTypeCode(t.typecode))\r\n throw \"Rilevate inconsistenze fra il tipo \" + t.type + \" e il tipo \" + this.utiExts.getJsTypeFromTypeCode(t.typecode);\r\n\r\n if (t.type == \"boolean\")\r\n t.value = (<string>t.value.toString()).toLowerCase() === \"true\";\r\n\r\n if (t.enumtype || t.dicttype)\r\n t.type = 'enum';\r\n });\r\n }\r\n\r\n /**\r\n * Pipeline di Angular\r\n * \r\n * @ignore\r\n */\r\n validate(c: FormControl): any {\r\n // Se la validazione è richiamata da un componente non me stesso vuol dire che i componenti di validazione interni stanno richiamando\r\n // questo validator, ma dal loro punto di vista non se ne devono preoccupare quindi faccio finta non ci siano errori.\r\n // Se invece vengo richiamato direttamente significa che è il form in cui vive es-parameters e lì devo effettuare la validazione\r\n let control = this.inj.get(NgControl, null)?.control;\r\n if (c != control)\r\n return null;\r\n\r\n let valid = true;\r\n if (this.Parameters && this.Parameters.length > 0) {\r\n this.Parameters.forEach(t => {\r\n if (t.mandatory && !t.value)\r\n valid = false;\r\n else if (t.value && t.type == 'number')\r\n valid = new RegExp(t.pattern || /^[+-]?[0-9]*[,]?[0-9]+$/).test(t.value);\r\n else if (t.value && t.pattern)\r\n valid = new RegExp(t.pattern).test(t.value);\r\n });\r\n }\r\n\r\n if (valid)\r\n return null;\r\n return { \"es-parameters\": valid };\r\n }\r\n\r\n /**\r\n * Pipeline di Angular\r\n * \r\n * @ignore\r\n */\r\n public registerOnChange(fn): void { this.propagateChange = fn; }\r\n\r\n /**\r\n * Pipeline di Angular\r\n * \r\n * @ignore\r\n */\r\n public registerOnTouched(fn): void { }\r\n\r\n /**\r\n * Metodo che si occupa di gestire il modello in uscita e propagarlo sul binding ngModel\r\n */\r\n public changed() {\r\n var thyCleanShaltNotBlankMe = JSON.parse(JSON.stringify(this.Parameters));\r\n this.propagateChange(thyCleanShaltNotBlankMe);\r\n }\r\n\r\n /**\r\n * Rimuove il parametro selezionato e propaga il modello\r\n * \r\n * @param {GenericParameter} par Parametro da rimuovere\r\n */\r\n public removeParameter(par: GenericParameter) {\r\n this.Parameters.splice(this.Parameters.indexOf(par), 1);\r\n this.changed();\r\n }\r\n}","import { NgModule, ModuleWithProviders } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { FormsAndValidationsModule } from \"@esfaenza/forms-and-validations\";\r\nimport { LocalizationModule } from '@esfaenza/localizations';\r\nimport { FullExtensionsModule } from '@esfaenza/extensions';\r\nimport { EsParametersComponent } from './es_parameters.component';\r\nimport { EsParametersModuleConfig } from './models/EsParametersModuleConfig';\r\nimport { PAR_LOCALE } from './tokens';\r\n\r\n\r\n@NgModule({\r\n declarations: [EsParametersComponent],\r\n imports: [\r\n CommonModule,\r\n LocalizationModule,\r\n FormsModule,\r\n FullExtensionsModule,\r\n FormsAndValidationsModule,\r\n ],\r\n exports: [EsParametersComponent]\r\n})\r\nexport class EsParametersModule {\r\n static forRoot(config?: EsParametersModuleConfig): ModuleWithProviders<EsParametersModule> {\r\n return {\r\n ngModule: EsParametersModule,\r\n providers: [\r\n { provide: PAR_LOCALE, useValue: config?.locale || 'it-IT' }\r\n ]\r\n };\r\n }\r\n }\r\n","/**\r\n * Classe che rappresenta un parametro generico\r\n */\r\nexport class GenericParameter {\r\n\r\n /**\r\n * Costruttore\r\n * \r\n * @param {string} id Codice del parametro\r\n * @param {string} description Descrizione del parametro\r\n * @param {string} pattern Pattern di validazione\r\n * @param {'date' | 'string' | 'number' | 'boolean' | 'enum'} type Tipo di input \r\n * @param {boolean} mandatory Indica se il valore è obbligatorio o meno\r\n * @param {any} v_default Valore di default per questo Parametro\r\n * @param {{ id: string, description: string }[]} enumvalues Qualora il **type** fosse di tipo **enum**, qui devono esserci tutti i valori che può assumere \r\n * @param {boolean} multienum Qualora il **type** fosse di tipo **enum**, indica se è possibile selezionare più valori (multiselect)\r\n */\r\n constructor(\r\n public id: string, \r\n public description: string, \r\n public pattern: string,\r\n type: 'date' | 'string' | 'number' | 'boolean' | 'enum', \r\n public mandatory: boolean, \r\n v_default: any = null, \r\n public enumvalues: { id: string, description: string }[] = [],\r\n public multienum?: boolean) {\r\n\r\n this.type = type == 'enum' ? \"\" : type;\r\n this.insertthis = true;\r\n this.enumtype = type == 'enum' ? type : \"\";\r\n this.isreadonly = false;\r\n\r\n if(!this.enumtype && enumvalues.length != 0)\r\n console.error(\"impossibile gestire valori di dizionario per un parametro non di tipo enum\");\r\n\r\n if (v_default != null)\r\n this.value = v_default;\r\n }\r\n \r\n /**\r\n * Tipo di dato rappresentato da questo parametro\r\n */\r\n public type: string;\r\n\r\n /**\r\n * Typecode lato C# che rappresenta il tipo di dato\r\n */\r\n public typecode: number;\r\n\r\n /**\r\n * Indica se il campo specificato dev'essere di sola lettura o meno\r\n */\r\n public isreadonly: boolean;\r\n\r\n /**\r\n * Valore del parametro\r\n */\r\n public value: any;\r\n\r\n /**\r\n * Indica se questo parametro dev'essere inserito o no. In caso contrario viene semplicemente nascosto\r\n */\r\n public insertthis: boolean;\r\n\r\n /**\r\n * Tipo Enum, valorizzato dal Backend\r\n */\r\n public enumtype: string;\r\n\r\n /**\r\n * Tipo Dizionario, valorizzato dal Backend\r\n */\r\n public dicttype: string;\r\n}","/*\r\n * Public API Surface of parameters\r\n */\r\nexport * from './lib/es_parameters.module';\r\nexport * from './lib/tokens';\r\nexport * from './lib/models/GenericParameter';\r\nexport * from './lib/es_parameters.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n\nexport {EsParametersLoc as ɵa} from './lib/es_parameters.component.loc';"],"names":[],"mappings":";;;;;;;AAEA;;;MAGa,UAAU,GAA2B,IAAI,cAAc,CAAS,YAAY;;ACDzF;;;MAIa,eAAgB,SAAQ,mBAAmB;;;;;;IAOpD,YAAgC,UAAkB;QAC9C,KAAK,CAAC,UAAU,CAAC,CAAC;KACrB;;;YAVJ,UAAU;;;yCAQM,MAAM,SAAC,UAAU;;;ACflC;AAcA;;;MAmBa,qBAAqB;;;;;;IA+D9B,YAAoB,OAAuB,EAAS,EAAuB,EAAS,GAAsB,EAAU,GAAa;QAA7G,YAAO,GAAP,OAAO,CAAgB;QAAS,OAAE,GAAF,EAAE,CAAqB;QAAS,QAAG,GAAH,GAAG,CAAmB;QAAU,QAAG,GAAH,GAAG,CAAU;;;;;;QAnDjI,oBAAe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