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.
- 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 -484
- package/types/marked.d.ts +43 -43
- package/types/markuno.d.ts +169 -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,59 +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(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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(
|
|
127
|
-
load(
|
|
128
|
-
loadAndCompile(
|
|
129
|
-
parsedata(
|
|
130
|
-
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
|
+
}[];
|
|
131
131
|
#private;
|
|
132
132
|
}
|
|
133
133
|
export class Variabile {
|
|
134
|
-
static isValidKey(
|
|
135
|
-
static sanitizeKey(
|
|
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(
|
|
140
|
+
setfndot(t: any): void;
|
|
141
141
|
fndotcallback: any;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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(
|
|
154
|
-
getvar(
|
|
155
|
-
colonna(
|
|
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
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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
|
-
|
|
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
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
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:
|
|
204
|
-
vdef: any
|
|
205
|
-
h: any
|
|
206
|
-
|
|
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
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
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:
|
|
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
|
-
|
|
289
|
-
|
|
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
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
-
|
|
314
|
-
|
|
315
|
-
|
|
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
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
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
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
export function
|
|
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
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
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
|
-
|
|
414
|
-
|
|
415
|
-
|
|
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(
|
|
432
|
-
|
|
433
|
-
|
|
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:
|
|
445
|
-
}
|
|
446
|
-
export function muValuta(
|
|
447
|
-
|
|
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(
|
|
505
|
-
export function newMacro(
|
|
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(
|
|
508
|
-
export function noquote(
|
|
509
|
-
export function parselimitifromdb(
|
|
510
|
-
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): {
|
|
511
342
|
v: any[];
|
|
512
343
|
datai: number;
|
|
513
344
|
dataf: number;
|
|
514
345
|
}[];
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
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:
|
|
351
|
+
res: any;
|
|
526
352
|
};
|
|
527
|
-
export function poppars(
|
|
528
|
-
export function pushpars(
|
|
529
|
-
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;
|
|
530
356
|
o: any;
|
|
531
357
|
}[]>;
|
|
532
|
-
export function quote(
|
|
533
|
-
export function seedarray(
|
|
534
|
-
export function seeder(
|
|
535
|
-
|
|
536
|
-
|
|
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
|
-
|
|
562
|
-
|
|
373
|
+
declare const w: string[];
|
|
374
|
+
declare const y: {
|
|
563
375
|
cod: string;
|
|
564
376
|
des: string;
|
|
565
377
|
}[];
|
|
566
|
-
|
|
567
|
-
|
|
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(
|
|
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(
|
|
585
|
-
add(
|
|
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 };
|