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.
- package/bin/bus_utils.js +1 -76
- package/bin/markcad.js +1 -1121
- package/bin/marked.js +1 -21
- package/bin/markuno.js +1 -268
- package/bin/proto.js +1 -184
- package/package.json +1 -1
- package/types/bus_utils.d.ts +15 -45
- package/types/markcad.d.ts +2151 -485
- package/types/marked.d.ts +43 -43
- package/types/markuno.d.ts +168 -363
package/types/markuno.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export class Ambiente {
|
|
2
|
-
constructor(
|
|
2
|
+
constructor(t?: string, e?: number, a?: boolean);
|
|
3
3
|
righevuote: boolean;
|
|
4
4
|
maxdelays: number;
|
|
5
5
|
pick: Pickers;
|
|
6
|
-
setcatalog(
|
|
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(
|
|
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(
|
|
31
|
-
getimgpreview(
|
|
32
|
-
setfndot(
|
|
27
|
+
setimgpreview(t: any, e: any): void;
|
|
28
|
+
getimgpreview(t: any): any;
|
|
29
|
+
setfndot(t: any): void;
|
|
33
30
|
fndotcallback: any;
|
|
34
|
-
parseheaderfrominfo(
|
|
35
|
-
setitem(
|
|
31
|
+
parseheaderfrominfo(t: any): void;
|
|
32
|
+
setitem(t: any, e: any, a: any, s?: any[], i?: number): void;
|
|
36
33
|
data: any;
|
|
37
|
-
getheader(
|
|
34
|
+
getheader(t: any): Promise<any>;
|
|
38
35
|
getalias(): Promise<any>;
|
|
39
36
|
get deriva(): any;
|
|
40
|
-
getmacro(
|
|
37
|
+
getmacro(t: any): Promise<{
|
|
41
38
|
macro: any;
|
|
42
|
-
pars:
|
|
39
|
+
pars: any;
|
|
43
40
|
} | {
|
|
44
41
|
macro?: undefined;
|
|
45
42
|
pars?: undefined;
|
|
46
43
|
}>;
|
|
47
|
-
getvariante(
|
|
48
|
-
varcompila(
|
|
49
|
-
macrocompila(
|
|
50
|
-
barrecompila(
|
|
51
|
-
tojson(
|
|
52
|
-
compila(
|
|
53
|
-
checkvarianti(
|
|
54
|
-
getheaderfromdb(
|
|
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(
|
|
60
|
-
checkscripts(
|
|
61
|
-
setruleheader(
|
|
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(
|
|
64
|
-
valuta(
|
|
65
|
-
setinfos(
|
|
66
|
-
splitteroggetti(
|
|
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,
|
|
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(
|
|
90
|
-
compila(
|
|
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(
|
|
94
|
-
name:
|
|
95
|
-
cat:
|
|
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(
|
|
119
|
-
setparametri(
|
|
120
|
-
setparametro(
|
|
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(
|
|
123
|
-
impostaparametri(
|
|
124
|
-
checkvalid(
|
|
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(
|
|
128
|
-
load(
|
|
129
|
-
loadAndCompile(
|
|
130
|
-
parsedata(
|
|
131
|
-
cleanfiltraparametri(
|
|
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(
|
|
136
|
-
static sanitizeKey(
|
|
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(
|
|
140
|
+
setfndot(t: any): void;
|
|
142
141
|
fndotcallback: any;
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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(
|
|
155
|
-
getvar(
|
|
156
|
-
colonna(
|
|
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
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
|
|
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
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
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:
|
|
205
|
-
vdef: any
|
|
206
|
-
h: any
|
|
207
|
-
|
|
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
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
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:
|
|
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
|
-
|
|
290
|
-
|
|
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
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
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
|
-
|
|
315
|
-
|
|
316
|
-
|
|
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
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
export function
|
|
369
|
-
export function
|
|
370
|
-
export function
|
|
371
|
-
export function
|
|
372
|
-
export function
|
|
373
|
-
export function
|
|
374
|
-
export function
|
|
375
|
-
export function
|
|
376
|
-
export function
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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
|
-
|
|
415
|
-
|
|
416
|
-
|
|
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(
|
|
433
|
-
|
|
434
|
-
|
|
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:
|
|
446
|
-
}
|
|
447
|
-
export function muValuta(
|
|
448
|
-
|
|
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(
|
|
506
|
-
export function newMacro(
|
|
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(
|
|
509
|
-
export function noquote(
|
|
510
|
-
export function parselimitifromdb(
|
|
511
|
-
export function parselimitifromrule(
|
|
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
|
-
|
|
518
|
-
|
|
519
|
-
|
|
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:
|
|
351
|
+
res: any;
|
|
527
352
|
};
|
|
528
|
-
export function poppars(
|
|
529
|
-
export function pushpars(
|
|
530
|
-
v:
|
|
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(
|
|
534
|
-
export function seedarray(
|
|
535
|
-
export function seeder(
|
|
536
|
-
|
|
537
|
-
|
|
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
|
-
|
|
563
|
-
|
|
373
|
+
declare const w: string[];
|
|
374
|
+
declare const y: {
|
|
564
375
|
cod: string;
|
|
565
376
|
des: string;
|
|
566
377
|
}[];
|
|
567
|
-
|
|
568
|
-
|
|
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(
|
|
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(
|
|
586
|
-
add(
|
|
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 };
|