@fto-consult/expo-ui 6.77.0 → 6.77.1

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,4 +0,0 @@
1
- import all from "./all";
2
- import iso from "./iso";
3
- export {all,iso};
4
- export default {all,iso};
@@ -1,493 +0,0 @@
1
- export default {
2
- "A0": {
3
- "mm": [
4
- 841,
5
- 1189
6
- ],
7
- "pt": [
8
- 2384,
9
- 3370
10
- ],
11
- "in": [
12
- 33.1,
13
- 46.8
14
- ]
15
- },
16
- "A1": {
17
- "mm": [
18
- 594,
19
- 841
20
- ],
21
- "pt": [
22
- 1684,
23
- 2384
24
- ],
25
- "in": [
26
- 23.4,
27
- 33.1
28
- ]
29
- },
30
- "A2": {
31
- "mm": [
32
- 420,
33
- 594
34
- ],
35
- "pt": [
36
- 1191,
37
- 1684
38
- ],
39
- "in": [
40
- 16.5,
41
- 23.4
42
- ]
43
- },
44
- "A3": {
45
- "mm": [
46
- 297,
47
- 420
48
- ],
49
- "pt": [
50
- 842,
51
- 1191
52
- ],
53
- "in": [
54
- 11.7,
55
- 16.5
56
- ]
57
- },
58
- "A4": {
59
- "mm": [
60
- 210,
61
- 297
62
- ],
63
- "pt": [
64
- 595,
65
- 842
66
- ],
67
- "in": [
68
- 8.3,
69
- 11.7
70
- ]
71
- },
72
- "A5": {
73
- "mm": [
74
- 148,
75
- 210
76
- ],
77
- "pt": [
78
- 420,
79
- 595
80
- ],
81
- "in": [
82
- 5.8,
83
- 8.3
84
- ]
85
- },
86
- "A6": {
87
- "mm": [
88
- 105,
89
- 148
90
- ],
91
- "pt": [
92
- 298,
93
- 420
94
- ],
95
- "in": [
96
- 4.1,
97
- 5.8
98
- ]
99
- },
100
- "A7": {
101
- "mm": [
102
- 74,
103
- 105
104
- ],
105
- "pt": [
106
- 210,
107
- 298
108
- ],
109
- "in": [
110
- 2.9,
111
- 4.1
112
- ]
113
- },
114
- "A8": {
115
- "mm": [
116
- 52,
117
- 74
118
- ],
119
- "pt": [
120
- 147,
121
- 210
122
- ],
123
- "in": [
124
- 2,
125
- 2.9
126
- ]
127
- },
128
- "A9": {
129
- "mm": [
130
- 37,
131
- 52
132
- ],
133
- "pt": [
134
- 105,
135
- 147
136
- ],
137
- "in": [
138
- 1.5,
139
- 2
140
- ]
141
- },
142
- ///in : inches, mm : millimetre, pt : points
143
- "A10": {
144
- "mm": [
145
- 26,
146
- 37
147
- ],
148
- "pt": [
149
- 74,
150
- 105
151
- ],
152
- "in": [
153
- 1,
154
- 1.5
155
- ]
156
- },
157
- "B10": {
158
- "mm": [
159
- 44,
160
- 31
161
- ],
162
- "pt": [
163
- 125,
164
- 88
165
- ],
166
- "in": [
167
- 1.7,
168
- 1.2
169
- ]
170
- },
171
- "B1+": {
172
- "mm": [
173
- 1020,
174
- 720
175
- ],
176
- "pt": [
177
- 2891,
178
- 2041
179
- ],
180
- "in": [
181
- 40.2,
182
- 28.3
183
- ]
184
- },
185
- "B4": {
186
- "mm": [
187
- 353,
188
- 250
189
- ],
190
- "pt": [
191
- 1001,
192
- 709
193
- ],
194
- "in": [
195
- 13.9,
196
- 9.8
197
- ]
198
- },
199
- "B5": {
200
- "mm": [
201
- 250,
202
- 176
203
- ],
204
- "pt": [
205
- 709,
206
- 499
207
- ],
208
- "in": [
209
- 9.8,
210
- 6.9
211
- ]
212
- },
213
- "B6": {
214
- "mm": [
215
- 176,
216
- 125
217
- ],
218
- "pt": [
219
- 499,
220
- 354
221
- ],
222
- "in": [
223
- 6.9,
224
- 4.9
225
- ]
226
- },
227
- "B7": {
228
- "mm": [
229
- 125,
230
- 88
231
- ],
232
- "pt": [
233
- 354,
234
- 249
235
- ],
236
- "in": [
237
- 4.9,
238
- 3.5
239
- ]
240
- },
241
- "B0": {
242
- "mm": [
243
- 1414,
244
- 1000
245
- ],
246
- "pt": [
247
- 4008,
248
- 2835
249
- ],
250
- "in": [
251
- 55.7,
252
- 39.4
253
- ]
254
- },
255
- "B1": {
256
- "mm": [
257
- 1000,
258
- 707
259
- ],
260
- "pt": [
261
- 2835,
262
- 2004
263
- ],
264
- "in": [
265
- 39.4,
266
- 27.8
267
- ]
268
- },
269
- "B2": {
270
- "mm": [
271
- 707,
272
- 500
273
- ],
274
- "pt": [
275
- 2004,
276
- 1417
277
- ],
278
- "in": [
279
- 27.8,
280
- 19.7
281
- ]
282
- },
283
- "B3": {
284
- "mm": [
285
- 500,
286
- 353
287
- ],
288
- "pt": [
289
- 1417,
290
- 1001
291
- ],
292
- "in": [
293
- 19.7,
294
- 13.9
295
- ]
296
- },
297
- "B2+": {
298
- "mm": [
299
- 720,
300
- 520
301
- ],
302
- "pt": [
303
- 2041,
304
- 1474
305
- ],
306
- "in": [
307
- 28.3,
308
- 20.5
309
- ]
310
- },
311
- "B8": {
312
- "mm": [
313
- 88,
314
- 62
315
- ],
316
- "pt": [
317
- 249,
318
- 176
319
- ],
320
- "in": [
321
- 3.5,
322
- 2.4
323
- ]
324
- },
325
- "B9": {
326
- "mm": [
327
- 62,
328
- 44
329
- ],
330
- "pt": [
331
- 176,
332
- 125
333
- ],
334
- "in": [
335
- 2.4,
336
- 1.7
337
- ]
338
- },
339
- "C10": {
340
- "mm": [
341
- 40,
342
- 28
343
- ],
344
- "pt": [
345
- 113,
346
- 79
347
- ],
348
- "in": [
349
- 1.6,
350
- 1.1
351
- ]
352
- },
353
- "C9": {
354
- "mm": [
355
- 57,
356
- 40
357
- ],
358
- "pt": [
359
- 162,
360
- 113
361
- ],
362
- "in": [
363
- 2.2,
364
- 1.6
365
- ]
366
- },
367
- "C8": {
368
- "mm": [
369
- 81,
370
- 57
371
- ],
372
- "pt": [
373
- 230,
374
- 162
375
- ],
376
- "in": [
377
- 3.2,
378
- 2.2
379
- ]
380
- },
381
- "C3": {
382
- "mm": [
383
- 458,
384
- 324
385
- ],
386
- "pt": [
387
- 1298,
388
- 918
389
- ],
390
- "in": [
391
- 18,
392
- 12.8
393
- ]
394
- },
395
- "C2": {
396
- "mm": [
397
- 648,
398
- 458
399
- ],
400
- "pt": [
401
- 1837,
402
- 1298
403
- ],
404
- "in": [
405
- 25.5,
406
- 18
407
- ]
408
- },
409
- "C1": {
410
- "mm": [
411
- 917,
412
- 648
413
- ],
414
- "pt": [
415
- 2599,
416
- 1837
417
- ],
418
- "in": [
419
- 36.1,
420
- 25.5
421
- ]
422
- },
423
- "C0": {
424
- "mm": [
425
- 1297,
426
- 917
427
- ],
428
- "pt": [
429
- 3677,
430
- 2599
431
- ],
432
- "in": [
433
- 51.5,
434
- 36.1
435
- ]
436
- },
437
- "C7": {
438
- "mm": [
439
- 114,
440
- 81
441
- ],
442
- "pt": [
443
- 323,
444
- 230
445
- ],
446
- "in": [
447
- 4.5,
448
- 3.2
449
- ]
450
- },
451
- "C6": {
452
- "mm": [
453
- 162,
454
- 114
455
- ],
456
- "pt": [
457
- 459,
458
- 323
459
- ],
460
- "in": [
461
- 6.4,
462
- 4.5
463
- ]
464
- },
465
- "C5": {
466
- "mm": [
467
- 229,
468
- 162
469
- ],
470
- "pt": [
471
- 649,
472
- 459
473
- ],
474
- "in": [
475
- 9,
476
- 6.4
477
- ]
478
- },
479
- "C4": {
480
- "mm": [
481
- 324,
482
- 229
483
- ],
484
- "pt": [
485
- 918,
486
- 649
487
- ],
488
- "in": [
489
- 12.8,
490
- 9
491
- ]
492
- }
493
- }
@@ -1,44 +0,0 @@
1
- /**** permet de parser un QRCODE LUE A PARTIR DU SCANNER
2
- * @param {string} //le qrCode lu
3
- * @return void
4
- */
5
- let parse = (str)=>{
6
- if(!isNonNullString(str)) return null;
7
- return parseJSON('{"' + decodeURI(str).replace(/"/g, '\\"').replace(/&/g, '","').replace(/=/g,'":"') + '"}');
8
- }
9
- /***** génère le qr code à partir de la données passée en paramètre
10
- * @param {string||object}, si c'est une chaine de caractère, alors le contenu est retourné, sinon, ça doit être un document valide de l'applicaton
11
- * @return {object, pdfmake} {
12
- * qr : //la valeur du contenu du qrCode voir, https://pdfmake.github.io/docs/0.1/document-definition-object/qr/
13
- * }
14
- */
15
- let generate = (data)=>{
16
- if(isObj(data)){
17
- let t = "";
18
- Object.map({id:"_id",db:"dbId",tb:"table"},(v,i)=>{
19
- if(isNonNullString(data[v])){
20
- t+=(t?"&":"")+i+"="+data[v];
21
- }
22
- })
23
- data = t;
24
- }
25
- if(isNonNullString(data)){
26
- data+="&c="+APP.getName()+"&u="+Auth.getLoggedUserCode()+"&d="+new Date().toSQLDateTimeFormat();
27
- return {
28
- qr : encodeURI(data),
29
- fit : '90',
30
- margin : [0,5,0,0]
31
- }
32
- }
33
- return {qr : undefined};
34
- }
35
-
36
- let scan = (data)=>{
37
-
38
- }
39
-
40
- module.exports = {
41
- generate,
42
- scan,
43
- parse
44
- }
@@ -1,25 +0,0 @@
1
- import {isClientSide,isWeb} from "$cplatform";
2
- import {isDOMElemnet} from "$cutils";
3
- export const outlineText = function(text,options) {
4
- if(!isWeb() || !isDOMElemnet()) return null;
5
- if(isObj(text)){
6
- options = text;
7
- text = defaultStr(options.text);
8
- }
9
- options = defaultObj(options);
10
- if(!isNonNullString(text)) return null;
11
- var ctx, canvas = document.createElement('canvas');
12
- canvas.width = 17*text.length;
13
- canvas.height = 22;
14
- ctx = canvas.getContext('2d');
15
- ctx.font = "25px Verdana";
16
- ctx.lineWidth = 1.5;
17
- let gradient = ctx.createLinearGradient(0, 0, canvas.width, 0);
18
- gradient.addColorStop("0", "magenta");
19
- gradient.addColorStop("0.5", "blue");
20
- gradient.addColorStop("1.0", "red");
21
- ctx.strokeStyle = gradient;
22
- ctx.strokeText(text, 0, 20);
23
- ctx.restore();
24
- return canvas.toDataURL();
25
- };
@@ -1,51 +0,0 @@
1
- import {isNonNullString,sprintf} from "$cutils";
2
- export default function toPdfmakeObj(str){
3
- if(!isNonNullString(str)) return null;
4
- let bold = false, italics = false;
5
- const output = [];
6
- const text = sprintf(str).split('').reduce((a, b) => {
7
- if(b == '*'){
8
- if(bold){
9
- if(a != ''){
10
- if(italics)
11
- output.push({text: a, bold: true, italics:true});
12
- else
13
- output.push({text: a, bold: true});
14
- }
15
- bold = false;
16
- }
17
- else{
18
- if(italics)
19
- output.push({text: a, italics: true})
20
- else
21
- output.push({text: a})
22
- bold = true;
23
- }
24
- return '';
25
- }
26
- else if(b == '_'){
27
- if(italics){
28
- if(a != ''){
29
- if(bold)
30
- output.push({text: a, bold: true, italics:true});
31
- else
32
- output.push({text: a, italics: true});
33
- }
34
- italics = false;
35
- }
36
- else{
37
- if(bold)
38
- output.push({text: a, bold: true})
39
- else
40
- output.push({text: a})
41
- italics = true;
42
- }
43
- return '';
44
- }
45
- else{
46
- return a+b;
47
- }
48
- }, '');
49
- if(text != '') output.push({text : text});
50
- return output;
51
- }