markuno_lib 1.2.82 → 1.2.84

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,9 +1,9 @@
1
1
  export class Ambiente {
2
- constructor(cat?: string, maxdelays?: number, righevuote?: boolean);
2
+ constructor(t?: string, e?: number, a?: boolean);
3
3
  righevuote: boolean;
4
4
  maxdelays: number;
5
5
  pick: Pickers;
6
- setcatalog(cat: any): any;
6
+ setcatalog(t: any): any;
7
7
  cat: any;
8
8
  item: any;
9
9
  rule: any;
@@ -14,56 +14,53 @@ export class Ambiente {
14
14
  muEval: typeof muEval;
15
15
  tipifree: string[];
16
16
  };
17
- azzera(mode?: boolean): void;
18
- /** @type {Variabile} */
17
+ azzera(t?: boolean): void;
19
18
  imgpreview: {};
20
19
  vari: Variabile;
21
20
  ruleset: {};
22
21
  ruleheader: string;
23
- /** @type {Object.<string, Macro>} */
24
22
  macro: {};
25
- /** @type {Object.<string, Variante>} */
26
23
  varianti: {};
27
24
  varelenco: {};
28
25
  macroelenco: {};
29
26
  scripts: {};
30
- setimgpreview(cod: any, img: any): void;
31
- getimgpreview(cod: any): any;
32
- setfndot(fndotcallback: any): void;
27
+ setimgpreview(t: any, e: any): void;
28
+ getimgpreview(t: any): any;
29
+ setfndot(t: any): void;
33
30
  fndotcallback: any;
34
- parseheaderfrominfo(tm: any): void;
35
- setitem(item: any, rule: any, model: any, ruleset?: any[], datadelgiorno?: number): void;
31
+ parseheaderfrominfo(t: any): void;
32
+ setitem(t: any, e: any, a: any, s?: any[], i?: number): void;
36
33
  data: any;
37
- getheader(cod: any): Promise<any>;
34
+ getheader(t: any): Promise<any>;
38
35
  getalias(): Promise<any>;
39
36
  get deriva(): any;
40
- getmacro(riga: any): Promise<{
37
+ getmacro(t: any): Promise<{
41
38
  macro: any;
42
- pars: string[];
39
+ pars: any;
43
40
  } | {
44
41
  macro?: undefined;
45
42
  pars?: undefined;
46
43
  }>;
47
- getvariante(cod: any): Promise<any>;
48
- varcompila(v: any, callback: any): Promise<void>;
49
- macrocompila(v: any, callback: any): Promise<void>;
50
- barrecompila(articolibarre: any, titolibarre: any, callback: any): Promise<CodiceBarra>;
51
- tojson(d: any): Promise<any>;
52
- compila(info: any, callback: any): Promise<void>;
53
- checkvarianti(cat: any, vars: any): Promise<void>;
54
- getheaderfromdb(name: any): Promise<{
44
+ getvariante(t: any): Promise<any>;
45
+ varcompila(t: any, e: any): Promise<void>;
46
+ macrocompila(t: any, e: any): Promise<void>;
47
+ barrecompila(t: any, e: any, a: any): Promise<CodiceBarra>;
48
+ tojson(t: any): Promise<any>;
49
+ compila(t: any, e: any): Promise<void>;
50
+ checkvarianti(e: any, a: any): Promise<void>;
51
+ getheaderfromdb(e: any): Promise<{
55
52
  head: any;
56
53
  rows: any;
57
54
  macros: any;
58
55
  }>;
59
- getlinkedmacros(rule: any, macros: any): Promise<void>;
60
- checkscripts(vv: any): void;
61
- setruleheader(rule: any, pars: any, ruleset: any): Promise<any>;
56
+ getlinkedmacros(t: any, a: any): Promise<void>;
57
+ checkscripts(t: any): void;
58
+ setruleheader(t: any, e: any, a: any): Promise<any>;
62
59
  getruleheader(): any;
63
- setvariante(cod: any, opz: any): Promise<any>;
64
- valuta(codice: any): Promise<any>;
65
- setinfos(tm: any): void;
66
- splitteroggetti(name: any): Promise<{
60
+ setvariante(t: any, e: any): Promise<any>;
61
+ valuta(t: any): Promise<any>;
62
+ setinfos(t: any): void;
63
+ splitteroggetti(t: any): Promise<{
67
64
  tipo: string;
68
65
  cod: string;
69
66
  des: string;
@@ -75,7 +72,7 @@ export class Ambiente {
75
72
  export class CodiceBarra {
76
73
  barre: {};
77
74
  azzera(): void;
78
- oriented(t: any, l: any, a: any, p: any): {
75
+ oriented(t: any, e: any, a: any, s: any): {
79
76
  t: string;
80
77
  x: any;
81
78
  y?: undefined;
@@ -86,14 +83,13 @@ export class CodiceBarra {
86
83
  y: any;
87
84
  z: any;
88
85
  };
89
- getcode(codicebarratot: any, l: any, a: any, p: any, callback: any): Promise<any>;
90
- compila(vettore: any, headers: any): void;
86
+ getcode(t: any, e: any, a: any, s: any, i: any): Promise<any>;
87
+ compila(t: any, e: any): void;
91
88
  }
92
89
  export class Macro {
93
- constructor(amb: any, _name: any);
94
- name: string;
95
- cat: string;
96
- /** @type {Ambiente} */
90
+ constructor(t: any, e: any);
91
+ name: any;
92
+ cat: any;
97
93
  amb: any;
98
94
  azzera(): void;
99
95
  key: string;
@@ -115,59 +111,51 @@ export class Macro {
115
111
  get iscodice(): any;
116
112
  get isheader(): number;
117
113
  geterrori(): any[];
118
- getparametri(op?: {}): {};
119
- setparametri(pars: any): Promise<{}>;
120
- setparametro(name: any, value: any, propaga?: boolean, pars?: {}): Promise<any>;
121
- isderivato(hd: any): boolean;
122
- impostaparametri(parimposta: any, parcall: any, ismacro: boolean, progettokeys: any): Promise<void>;
123
- checkvalid(formula: any): Promise<boolean>;
114
+ getparametri(t?: {}): {};
115
+ setparametri(t: any): Promise<{}>;
116
+ setparametro(t: any, e: any, a?: boolean, s?: {}): Promise<any>;
117
+ getmarker(): any;
118
+ isderivato(t: any): boolean;
119
+ impostaparametri(t: any, e: any, a: boolean, s: any): Promise<void>;
120
+ checkvalid(t: any): Promise<boolean>;
124
121
  getmacrostr(): string;
125
122
  getmacro(): any;
126
- setmacro(vv: any): void;
127
- load(xname: any, xcat: any): Promise<boolean>;
128
- loadAndCompile(file: any, _cat: any, acapo?: boolean): Promise<any>;
129
- parsedata(res: any, acapo?: boolean): Promise<void>;
130
- cleanfiltraparametri(key: any, codice: any, acapo: any): any[];
123
+ setmacro(t: any): void;
124
+ load(t: any, a: any): Promise<boolean>;
125
+ loadAndCompile(t: any, e: any, a?: boolean): Promise<any>;
126
+ parsedata(t: any, e?: boolean): Promise<void>;
127
+ cleanfiltraparametri(t: any, e: any, a: any): {
128
+ tipo: any;
129
+ contenuto: any;
130
+ }[];
131
131
  #private;
132
132
  }
133
133
  export class Variabile {
134
- static isValidKey(key: any): boolean;
135
- static sanitizeKey(key: any): any;
134
+ static isValidKey(t: any): boolean;
135
+ static sanitizeKey(t: any): any;
136
136
  stl: {};
137
137
  dictionary: {};
138
138
  vec: any[];
139
139
  counter: number;
140
- setfndot(fndotcallback: any): void;
140
+ setfndot(t: any): void;
141
141
  fndotcallback: any;
142
- /**
143
- * Salva lo stato corrente delle variabili nello stack
144
- */ push(): void;
145
- /**
146
- * Ripristina l'ultimo stato salvato delle variabili
147
- */ pop(): void;
148
- savevars(str: any): void;
149
- /**
150
- * Rimuove tutte le variabili e pulisce lo stack
151
- */ clear(): void;
142
+ push(): void;
143
+ pop(): void;
144
+ savevars(t: any): void;
145
+ clear(): void;
152
146
  azzera: () => void;
153
- var(key: any): any;
154
- getvar(key: any): any;
155
- colonna(value: any, index: any): any;
156
- /**
157
- * Restituisce un dump delle variabili
158
- */ dump(isstr?: boolean): string[] | {
147
+ var(t: any): any;
148
+ getvar(t: any): any;
149
+ colonna(t: any, e: any): any;
150
+ dump(t?: boolean): string[] | {
159
151
  cod: string;
160
152
  val: any;
161
153
  }[];
162
- /**
163
- * Aggiunge o rimuove una variabile
164
- */ add(key: any, value: any): void;
165
- removeallvars(exclude: any): void;
166
- /**
167
- * Valuta un'espressione con supporto per callback asincroni
168
- */ valutasync(str: any): any;
169
- valuta(ex: any, callback: any): Promise<any>;
170
- parametrokeyval(p: any): Promise<{
154
+ add(t: any, e: any): void;
155
+ removeallvars(t: any): void;
156
+ valutasync(t: any): any;
157
+ valuta(t: any, e: any): Promise<any>;
158
+ parametrokeyval(t: any): Promise<{
171
159
  k?: undefined;
172
160
  v?: undefined;
173
161
  } | {
@@ -175,105 +163,46 @@ export class Variabile {
175
163
  v: any;
176
164
  }>;
177
165
  }
178
- /**
179
- * Classe per gestire le varianti di un prodotto.
180
- * Permette di caricare, manipolare e convertire varianti di prodotto con relativi attributi e limiti.
181
- * @class
182
- * @exports
183
- */ export class Variante {
184
- /**
185
- * Crea una nuova istanza di Variante
186
- * @param {Object} amb - Ambiente di esecuzione contenente il contesto applicativo
187
- */
188
- constructor(amb: any);
166
+ export class Variante {
167
+ constructor(t: any);
189
168
  rows: {};
190
169
  name: string;
191
170
  key: string;
192
- /** @type {Ambiente} */
193
171
  amb: any;
194
- /**
195
- * Imposta i dati principali della variante
196
- * @param {string} id - Identificativo univoco della variante
197
- * @param {string} cat - Categoria di appartenenza
198
- * @returns {Object} Oggetto contenente nome e categoria normalizzati
199
- */ setheader(id: string, _cat: any): any;
200
- cat: string;
172
+ setheader(t: any, e: any): {
173
+ name: any;
174
+ cat: any;
175
+ };
176
+ cat: any;
201
177
  alias: string;
202
178
  obbligo: boolean;
203
- des: string;
204
- vdef: any[] | string[];
205
- h: any[] | {
206
- des: string;
207
- }[];
208
- /**
209
- * Cerca la riga con dimensione più vicina a quella richiesta
210
- * @param {number|string} dim - Dimensione target da cercare
211
- * @param {number} colonna - Indice della colonna (1-based) contenente la dimensione
212
- * @returns {string} Riga formattata nel formato CSV
213
- */ fromdim(dim: number | string, colonna?: number): string;
214
- /**
215
- * Carica una variante dal database o da file
216
- * @param {string} id - Identificativo della variante
217
- * @param {string} cat - Categoria della variante
218
- * @param {boolean} nofilter - Se true, non carica i filtri associati
219
- * @returns {Promise<boolean>} Promise che risolve a true se il caricamento ha successo
220
- */ load(id: string, _cat: any, nofilter?: boolean): Promise<boolean>;
179
+ des: any;
180
+ vdef: any;
181
+ h: any;
182
+ fromdim(t: any, e?: number): string;
183
+ load(e: any, a: any, i?: boolean): Promise<boolean>;
221
184
  limits: {}[] | {
222
185
  v: any[];
223
186
  datai: number;
224
187
  dataf: number;
225
188
  }[];
226
- /**
227
- * Carica il contenuto della variante da array di stringhe
228
- * @private
229
- * @param {string[]} lines - Array di stringhe contenenti la definizione della variante
230
- * @returns {Promise<boolean>} Promise che risolve a true se il caricamento ha successo
231
- */ private _loadContent;
189
+ _loadContent(t: any): Promise<boolean>;
232
190
  noerp: boolean;
233
- /**
234
- * Converte la variante in un vettore di righe
235
- * @returns {string[]} Array di righe formattate
236
- */ tovec(): string[];
237
- /**
238
- * Converte un codice nella sua rappresentazione CSV
239
- * @param {string} cod - Codice da convertire
240
- * @returns {string} Stringa CSV o codice originale se non trovato
241
- */ tovar(cod: string, vcod?: string): string;
242
- /**
243
- * Verifica se un'opzione è valida
244
- * @param {string} opz - Opzione da verificare
245
- * @returns {boolean} True se l'opzione è valida
246
- */ isvalidopz(opz: string): boolean;
247
- /**
248
- * Trova la prima opzione valida tra quelle disponibili
249
- * @param {string} opz - Opzione da controllare per prima
250
- * @returns {string|undefined} Prima opzione valida trovata o undefined
251
- */ firstvalid(opz: string, defs?: any): string | undefined;
252
- /**
253
- * Resetta tutti i filtri applicati alla variante
254
- */ resetfilter(): void;
255
- /**
256
- * Restituisce le chiavi valide ordinate alfabeticamente
257
- * @returns {string[]} Array di chiavi valide
258
- */ validkeys(): string[];
259
- limitfiltra(filtra: any): void;
260
- /**
261
- * Applica i limiti configurati alle opzioni della variante
262
- * @returns {Array|void} Array di limiti applicati o void se reset
263
- */ limita(filtra: any): any[] | void;
264
- /**
265
- * Carica il contenuto esteso della variante
266
- * @param {Object|string} content - Contenuto da caricare, può essere un oggetto o una stringa
267
- * @returns {Promise<void>} Promise che si risolve al completamento del caricamento
268
- */ loadContentExtended(content: any | string): Promise<void>;
191
+ tovec(): string[];
192
+ tovar(t: any, e?: string): any;
193
+ isvalidopz(t: any): boolean;
194
+ firstvalid(t: any, e?: any): any;
195
+ resetfilter(): void;
196
+ validkeys(): string[];
197
+ limitfiltra(t: any): void;
198
+ limita(t: any): void | {}[];
199
+ loadContentExtended(t: any): Promise<void>;
269
200
  todata(): {
270
201
  name: string;
271
- des: string;
202
+ des: any;
272
203
  alias: string;
273
204
  obbligo: boolean;
274
- h: any[] | {
275
- des: string;
276
- }[];
205
+ h: any;
277
206
  rows: {};
278
207
  limits: {}[] | {
279
208
  v: any[];
@@ -284,167 +213,69 @@ export class Variabile {
284
213
  };
285
214
  #private;
286
215
  }
287
- /**
288
- * Valida e separa un identificatore e una categoria
289
- * @param {string} id - Identificatore da validare (formato: "categoria/nome" o solo "nome")
290
- * @param {string} cat - Categoria di default
291
- * @throws {Error} Se manca la categoria
292
- * @returns {{name: string, cat: string}} Oggetto con nome e categoria validati
293
- */ export function checkmu(id: string, cat: string): {
294
- name: string;
295
- cat: string;
216
+ export function checkmu(t: any, e: any): {
217
+ name: any;
218
+ cat: any;
296
219
  };
297
- /**
298
- * Valida un identificatore verificando che contenga solo caratteri permessi
299
- * @param {string} id - Identificatore da validare
300
- * @param {boolean} vuoto - Default false: Accetta valori vuoti!
301
- * @throws {Error} Se l'identificatore contiene caratteri non validi
302
- * @returns {string} Identificatore validato in minuscolo
303
- */ export function checkname(id: string, vuoto?: boolean): string;
304
- export function clamp(n: any, min?: number, max?: number): any;
305
- export function clean(k: any, locase?: boolean): any;
306
- export function dammivariante(amb: any, macro: any, ky: any): Promise<any>;
307
- export const errori: {
308
- /**
309
- * Azzera la lista degli errori
310
- */ azzera(): void;
220
+ export function checkname(t: any, e?: boolean): any;
221
+ export function clamp(t: any, e?: number, a?: number): any;
222
+ export function clean(t: any, e?: boolean): any;
223
+ export function dammivariante(t: any, e: any, a: any): Promise<any>;
224
+ declare const n: {
225
+ azzera(): void;
311
226
  err: any[];
312
- /**
313
- * Aggiunge un errore alla lista
314
- * @param {string} msg - Messaggio di errore
315
- * @param {Object} row - Informazioni aggiuntive sull'errore
316
- */ add(msg: string, row: any): void;
317
- /**
318
- * Restituisce la lista completa degli errori
319
- * @returns {Array} Lista degli errori
320
- */ get(): any[];
321
- /**
322
- * Restituisce il numero di errori presenti
323
- * @returns {number} Numero di errori
324
- */ readonly length: number;
325
- /**
326
- * Converte la lista degli errori in stringa
327
- * @returns {string} Rappresentazione testuale degli errori
328
- */ toString(): string;
227
+ add(t: any, e: any): void;
228
+ get(): any[];
229
+ readonly length: number;
230
+ toString(): string;
329
231
  };
330
- /**
331
- * Converte una stringa in un oggetto JSON, gestendo errori e restituendo un valore di default se non valido
332
- * @param {string|Array|Object} str - Stringa da convertire in JSON, array o oggetto da restituire direttamente
333
- * @param {*} [def={}] - Valore di default da restituire in caso di errore di parsing
334
- * @throws {Error} Non genera eccezioni, gli errori vengono loggati internamente
335
- * @returns {*} L'oggetto JSON convertito dalla stringa, l'input originale se è un array/oggetto, o il valore di default in caso di errore
336
- * @example
337
- * fromjson('{"a": 1}') // returns {a: 1}
338
- * fromjson([1,2,3]) // returns [1,2,3]
339
- * fromjson('invalid json', {}) // returns {}
340
- */ export function fromjson(str: string | any[] | any, def?: any): any;
341
- /**
342
- * Estrae le proprietà non-funzione da un oggetto, escludendo chiavi specificate
343
- * @param {Object} obj - Oggetto da cui estrarre le proprietà
344
- * @param {string[]} [exclude] - Array di chiavi da escludere
345
- * @returns {Object} Nuovo oggetto con le proprietà estratte
346
- */ export function getOggetto(obj: any, exclude?: string[]): any;
347
- /**
348
- * Converte una stringa in array di colonne, gestendo diversi formati
349
- * @param {string} value - Stringa da convertire
350
- * @returns {string[]} Array di colonne
351
- */ export function getcolonne(value: string, keepquote?: boolean): string[];
352
- /**
353
- * Analizza una stringa per estrarre una coppia chiave-valore
354
- * @param {string} r - Stringa da analizzare (es: "chiave=valore")
355
- * @param {string} [sep='='] - Carattere separatore
356
- * @returns {{v: string, o: string, fl: boolean}} Oggetto contenente chiave (v), valore (o) e flag presenza separatore (fl)
357
- */ export function getcouple(r: string, sep?: string, locase?: boolean): {
358
- v: string;
359
- o: string;
232
+ export function fromjson(t: any, e: any): any;
233
+ export function getOggetto(t: any, e?: any[]): any;
234
+ export function getcolonne(t: any, e?: boolean): any;
235
+ export function getcouple(t: any, e?: string, a?: boolean): {
236
+ v: any;
237
+ o: any;
360
238
  fl: boolean;
361
239
  };
362
- /**
363
- * Formatta un messaggio di errore rimuovendo informazioni non necessarie
364
- * @param {Error|string} err - L'errore da formattare
365
- * @returns {string} Il messaggio di errore formattato
366
- */ export function geterrdes(err: Error | string): string;
367
- export function getheaddims(dims: any): any;
368
- export function gettipocolonna(cod: any): string;
369
- export function gettipofolder(cod: any): string;
370
- export function hash(obj: any): string;
371
- export function impostavariante(amb: any, macro: any, a: any, b: any, head: any): Promise<any>;
372
- export function intvaluta(amb: any, mac: any, str: any): Promise<any>;
373
- export function isJsonStr(str: any): boolean;
374
- export function isObject(value: any): boolean;
375
- export function muInit(cat: any, cbGetMacro: any, cbGetVariante: any, cbFunc: any, cbInfo: any, cbGetFile: any, cbLogga: any): Ambiente;
376
- /**
377
- * Funzione di logging che utilizza un callback personalizzato se disponibile
378
- * @param {...any} args - Argomenti da loggare
379
- */ export function logga(...args: any[]): void;
380
- /**
381
- * Valuta un'espressione matematica o logica e restituisce il risultato
382
- * @param {string|number} expression - L'espressione da valutare
383
- * @returns {number} Il risultato della valutazione dell'espressione
384
- * @description
385
- * Supporta operazioni matematiche di base, funzioni trigonometriche,
386
- * operatori di confronto e operazioni logiche.
387
- * Le funzioni supportate includono: sqrt, floor, abs, sin, cos, random, clamp, round
388
- */ export function muCalc(expression: string | number): number;
389
- /**
390
- * Rimuove i commenti dal codice sorgente mantenendo la struttura del codice
391
- * @param {string} codice - Il codice sorgente da processare
392
- * @param {boolean} tienivuoti - Se true mantiene le righe vuote
393
- * @returns {string[]} Array di righe di codice senza commenti
394
- */ export function muClComments(codice: string, tienivuoti: boolean): string[];
395
- /**
396
- * Analizza e organizza il codice in una struttura dati gerarchica
397
- * @param {string[]} tt - Array di righe di codice da analizzare
398
- * @param {boolean} acapo - Se true mantiene i ritorni a capo nel contenuto
399
- * @returns {Object[]} Array di oggetti rappresentanti la struttura del codice
400
- * @throws {Error} Se tt non è un array
401
- */ export function muClean(tt: string[], acapo?: boolean): any[];
402
- export function muCompileScript(codice: any): any;
403
- export function muEval(amb: any, mac: any, codice: any, options: any): any;
404
- export function muEvalScript(amb: Ambiente, codice: any, pars: any, reset?: boolean): Promise<{
240
+ export function geterrdes(t: any): any;
241
+ export function getheaddims(t: any): any;
242
+ export function gettipocolonna(t: any): string;
243
+ export function gettipofolder(t: any): string;
244
+ export function hash(t: any): string;
245
+ export function impostavariante(t: any, e: any, a: any, s: any, i: any): Promise<any>;
246
+ export function intvaluta(t: any, e: any, a: any): Promise<any>;
247
+ export function isJsonStr(t: any): boolean;
248
+ export function isObject(t: any): boolean;
249
+ export function muInit(t: any, e: any, a: any, s: any, i: any, r: any, n: any): Ambiente;
250
+ export function logga(...t: any[]): void;
251
+ export function muCalc(t: any): any;
252
+ export function muClComments(t: any, e: any): any[];
253
+ export function muClean(t: any, e?: boolean): {
254
+ tipo: any;
255
+ contenuto: any;
256
+ }[];
257
+ export function muCompileScript(t: any): any;
258
+ export function muEval(t: any, e: any, a: any, s: any): any;
259
+ export function muEvalScript(t: any, e: any, a: any, s?: boolean): Promise<{
405
260
  output: any;
406
- vari: {};
261
+ vari: any;
407
262
  errori: {
408
- /**
409
- * Azzera la lista degli errori
410
- */ azzera(): void;
263
+ azzera(): void;
411
264
  err: any[];
412
- /**
413
- * Aggiunge un errore alla lista
414
- * @param {string} msg - Messaggio di errore
415
- * @param {Object} row - Informazioni aggiuntive sull'errore
416
- */ add(msg: string, row: any): void;
417
- /**
418
- * Restituisce la lista completa degli errori
419
- * @returns {Array} Lista degli errori
420
- */ get(): any[];
421
- /**
422
- * Restituisce il numero di errori presenti
423
- * @returns {number} Numero di errori
424
- */ readonly length: number;
425
- /**
426
- * Converte la lista degli errori in stringa
427
- * @returns {string} Rappresentazione testuale degli errori
428
- */ toString(): string;
265
+ add(t: any, e: any): void;
266
+ get(): any[];
267
+ readonly length: number;
268
+ toString(): string;
429
269
  };
430
270
  }>;
431
- export function muGenerate(macro: any, amb: any, genera: any, callback: any, isTestmode?: number): Promise<boolean>;
432
- /**
433
- * Analizza e processa i limiti definiti nel codice
434
- * @param {string} dati - Dati contenenti le definizioni dei limiti
435
- * @returns {Object[]} Array di oggetti rappresentanti i limiti processati
436
- */ export function muLimits(dati: string): any[];
437
- /**
438
- * Analizza il codice sorgente e restituisce un array di token con classi CSS
439
- * @param {string} tt - Il codice sorgente da analizzare
440
- * @param {boolean} isvar - Flag che indica se analizzare come variabile
441
- * @returns {Array<{class: string, text: string}>} Array di token con classi CSS
442
- */ export function muParsecode(tt: string, isvar: boolean): Array<{
271
+ export function muGenerate(t: any, e: any, a: any, s: any, i?: number): Promise<boolean>;
272
+ export function muLimits(t: any): {}[];
273
+ export function muParsecode(t: any, e: any): {
443
274
  class: string;
444
- text: string;
445
- }>;
446
- export function muValuta(mu: any, codice: any, azzera: any): any;
447
- export namespace mustr {
275
+ text: any;
276
+ }[];
277
+ export function muValuta(t: any, e: any, a: any): any;
278
+ declare namespace x {
448
279
  namespace mus {
449
280
  namespace variants {
450
281
  let cod: string;
@@ -501,55 +332,36 @@ export namespace mustr {
501
332
  }
502
333
  }
503
334
  }
504
- export function newAmbiente(cat: any, maxmillis?: number): Ambiente;
505
- export function newMacro(amb: any, name: any): Macro;
335
+ export function newAmbiente(t: any, e?: number): Ambiente;
336
+ export function newMacro(t: any, e: any): Macro;
506
337
  export function newVariabile(): Variabile;
507
- export function newVariante(cod: any, cat: any, amb: any): Promise<Variante>;
508
- export function noquote(e: any): any;
509
- export function parselimitifromdb(rr: any): {}[];
510
- export function parselimitifromrule(limvec: any): {
338
+ export function newVariante(t: any, e: any, a: any): Promise<Variante>;
339
+ export function noquote(t: any): any;
340
+ export function parselimitifromdb(t: any): {}[];
341
+ export function parselimitifromrule(t: any): {
511
342
  v: any[];
512
343
  datai: number;
513
344
  dataf: number;
514
345
  }[];
515
- /**
516
- * Analizza variabili in un'espressione usando delimitatori
517
- * @param {string} ex - Espressione da analizzare
518
- * @param {number} k0 - Posizione iniziale
519
- * @param {string} inipar - Delimitatore iniziale ([, (, {)
520
- * @param {string} endpar - Delimitatore finale (], ), })
521
- * @param {boolean} [nonewline=false] - Se true, termina all'incontro di un newline
522
- * @returns {{i: number, res: string[]}} Risultato dell'analisi con posizione finale e array risultati
523
- */ export function parsevar(ex: string, k0: number, inipar: string, endpar: string, nonewline?: boolean): {
346
+ export function parsevar(t: any, e: any, a: any, s: any, i?: boolean): {
347
+ i: any;
348
+ res: any[];
349
+ } | {
524
350
  i: number;
525
- res: string[];
351
+ res: any;
526
352
  };
527
- export function poppars(amb: any, tm: any): void;
528
- export function pushpars(amb: any, macro: any, parsfunzione: any, parsinit: any): Promise<{
529
- v: string;
353
+ export function poppars(t: any, e: any): void;
354
+ export function pushpars(t: any, e: any, a: any, s: any): Promise<{
355
+ v: any;
530
356
  o: any;
531
357
  }[]>;
532
- export function quote(v: any): any;
533
- export function seedarray(arr: any, seed: any): any;
534
- export function seeder(n: any, seed?: string): number;
535
- /**
536
- * Classe per la gestione degli errori con funzionalità di accumulo e formattazione
537
- */
538
- /**
539
- * Copia le proprietà non-funzione da un oggetto sorgente a uno destinazione
540
- * @param {Object} objDestinazione - Oggetto destinazione
541
- * @param {Object} objSorgente - Oggetto sorgente
542
- */
543
- export function setOggetto(objDestinazione: any, objSorgente: any): void;
544
- export function sortrows(rows: any): {};
545
- /**
546
- * Esegue una semplice somma sincrona di due numeri
547
- * @param {number} a - Primo numero da sommare
548
- * @param {number} b - Secondo numero da sommare
549
- * @returns {number} La somma dei due numeri
550
- */
551
- export function testsync(a: number, b: number): number;
552
- export const tipicolonna: ({
358
+ export function quote(t: any): any;
359
+ export function seedarray(t: any, e: any): any;
360
+ export function seeder(t: any, e?: string): number;
361
+ export function setOggetto(t: any, e: any): void;
362
+ export function sortrows(t: any): {};
363
+ export function testsync(t: any, e: any): any;
364
+ declare const k: ({
553
365
  cod: string;
554
366
  des: string;
555
367
  folder?: undefined;
@@ -558,22 +370,16 @@ export const tipicolonna: ({
558
370
  des: string;
559
371
  folder: string;
560
372
  })[];
561
- export const tipifree: string[];
562
- export const tipiheader: {
373
+ declare const w: string[];
374
+ declare const y: {
563
375
  cod: string;
564
376
  des: string;
565
377
  }[];
566
- /**
567
- * Restituisce il timestamp corrente in millisecondi
568
- * @returns {number} Timestamp corrente
569
- */ export function tk(): number;
570
- export function toCadPars(str: any): {};
378
+ export function tk(): number;
379
+ export function toCadPars(t: any): {};
571
380
  export function toJson(t: any): string;
572
- export function tonum(s: any, dec?: number): number;
573
- /**
574
- * Restituisce il timestamp corrente in millisecondi
575
- * @returns {number} Timestamp corrente
576
- */ export function xdt(): number;
381
+ export function tonum(t: any, e?: number): number;
382
+ export function xdt(): number;
577
383
  declare class Pickers {
578
384
  clear(): void;
579
385
  d: {};
@@ -581,7 +387,7 @@ declare class Pickers {
581
387
  key: any;
582
388
  reset(): void;
583
389
  pack(): void;
584
- setkey(k: any): void;
585
- add(data: any): string;
390
+ setkey(t: any): void;
391
+ add(t: any): string;
586
392
  }
587
- export { muInit as jsTest };
393
+ export { n as errori, muInit as jsTest, x as mustr, k as tipicolonna, w as tipifree, y as tipiheader };