markuno_lib 1.2.83 → 1.2.85

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