@tekkare/auriga 0.1.83 → 0.1.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/dist/module.json +1 -1
- package/dist/runtime/components/argChart.vue +212 -134
- package/dist/runtime/components/argDate.vue +1 -1
- package/dist/runtime/components/argDate.vue.d.ts +1 -1
- package/dist/runtime/components/argHybridChart.vue +2 -2
- package/dist/runtime/components/argLangSelect.vue +54 -12
- package/dist/runtime/components/argLangSelect.vue.d.ts +9 -0
- package/dist/runtime/components/argMaps.vue +4 -0
- package/dist/runtime/components/argSourceCollapse.vue +3 -1
- package/dist/runtime/components/argToolbarContent.vue +1 -1
- package/dist/runtime/typings/index.d.ts +1 -0
- package/package.json +2 -1
package/dist/module.json
CHANGED
|
@@ -259,7 +259,7 @@ export default defineComponent({
|
|
|
259
259
|
props.options["tooltip"] = {
|
|
260
260
|
y: {
|
|
261
261
|
formatter(value, { series, seriesIndex, dataPointIndex, w }) {
|
|
262
|
-
return value;
|
|
262
|
+
return value.toFixed(1);
|
|
263
263
|
}
|
|
264
264
|
},
|
|
265
265
|
shared: false
|
|
@@ -283,33 +283,46 @@ export default defineComponent({
|
|
|
283
283
|
dataLabels: { position: "top", hideOverflowingLabels: true }
|
|
284
284
|
}
|
|
285
285
|
};
|
|
286
|
-
|
|
286
|
+
let defaultDataLabelsConfig = {
|
|
287
287
|
position: "top",
|
|
288
288
|
enabled: true,
|
|
289
289
|
offsetY: -20,
|
|
290
|
-
style: { fontSize: "14px", colors: ["#3E3F5E"], fontWeight: "500" }
|
|
291
|
-
formatter(value, opt) {
|
|
292
|
-
let returnValue = value;
|
|
293
|
-
if (compactMode) {
|
|
294
|
-
returnValue = new Intl.NumberFormat("en-US", {
|
|
295
|
-
notation: "compact",
|
|
296
|
-
maximumFractionDigits: 1
|
|
297
|
-
}).format(value);
|
|
298
|
-
}
|
|
299
|
-
if (!compactMode) {
|
|
300
|
-
returnValue = new Intl.NumberFormat("fr-FR").format(value);
|
|
301
|
-
}
|
|
302
|
-
if (hasPercentages) {
|
|
303
|
-
let seriesTotal = seriesData[opt.seriesIndex].data.reduce(
|
|
304
|
-
(a, b) => a + b,
|
|
305
|
-
0
|
|
306
|
-
);
|
|
307
|
-
let percentage2 = new Intl.NumberFormat("fr-FR").format((100 * value / seriesTotal).toFixed(1)).replace(",", ".");
|
|
308
|
-
returnValue = returnValue + " (" + percentage2 + "%)";
|
|
309
|
-
}
|
|
310
|
-
return returnValue;
|
|
311
|
-
}
|
|
290
|
+
style: { fontSize: "14px", colors: ["#3E3F5E"], fontWeight: "500" }
|
|
312
291
|
};
|
|
292
|
+
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
293
|
+
props.options["dataLabels"] = {
|
|
294
|
+
...defaultDataLabelsConfig,
|
|
295
|
+
...props.options.dataLabels
|
|
296
|
+
};
|
|
297
|
+
} else {
|
|
298
|
+
let defaultDataLabelFormatter = {
|
|
299
|
+
formatter(value, opt) {
|
|
300
|
+
let returnValue = value;
|
|
301
|
+
if (compactMode) {
|
|
302
|
+
returnValue = new Intl.NumberFormat("en-US", {
|
|
303
|
+
notation: "compact",
|
|
304
|
+
maximumFractionDigits: 1
|
|
305
|
+
}).format(value);
|
|
306
|
+
}
|
|
307
|
+
if (!compactMode) {
|
|
308
|
+
returnValue = new Intl.NumberFormat("fr-FR").format(value);
|
|
309
|
+
}
|
|
310
|
+
if (hasPercentages) {
|
|
311
|
+
let seriesTotal = seriesData[opt.seriesIndex].data.reduce(
|
|
312
|
+
(a, b) => a + b,
|
|
313
|
+
0
|
|
314
|
+
);
|
|
315
|
+
let percentage2 = new Intl.NumberFormat("fr-FR").format((100 * value / seriesTotal).toFixed(1)).replace(",", ".");
|
|
316
|
+
returnValue = returnValue + " (" + percentage2 + "%)";
|
|
317
|
+
}
|
|
318
|
+
return returnValue;
|
|
319
|
+
}
|
|
320
|
+
};
|
|
321
|
+
props.options["dataLabels"] = {
|
|
322
|
+
...defaultDataLabelsConfig,
|
|
323
|
+
...defaultDataLabelFormatter
|
|
324
|
+
};
|
|
325
|
+
}
|
|
313
326
|
if (props.hideLegend) {
|
|
314
327
|
props.options["legend"] = { show: false };
|
|
315
328
|
}
|
|
@@ -346,33 +359,46 @@ export default defineComponent({
|
|
|
346
359
|
dataLabels: { position: "top", hideOverflowingLabels: true }
|
|
347
360
|
}
|
|
348
361
|
};
|
|
349
|
-
|
|
362
|
+
let defaultDataLabelsConfig = {
|
|
350
363
|
position: "top",
|
|
351
364
|
enabled: true,
|
|
352
365
|
offsetX: 65,
|
|
353
|
-
style: { fontSize: "14px", colors: ["#3E3F5E"] }
|
|
354
|
-
formatter(value, opt) {
|
|
355
|
-
let returnValue = value;
|
|
356
|
-
if (compactMode) {
|
|
357
|
-
returnValue = new Intl.NumberFormat("en-US", {
|
|
358
|
-
notation: "compact",
|
|
359
|
-
maximumFractionDigits: 1
|
|
360
|
-
}).format(value);
|
|
361
|
-
}
|
|
362
|
-
if (!compactMode) {
|
|
363
|
-
returnValue = new Intl.NumberFormat("fr-FR").format(value);
|
|
364
|
-
}
|
|
365
|
-
if (hasPercentages) {
|
|
366
|
-
let seriesTotal = seriesData[opt.seriesIndex].data.reduce(
|
|
367
|
-
(a, b) => a + b,
|
|
368
|
-
0
|
|
369
|
-
);
|
|
370
|
-
let percentage2 = new Intl.NumberFormat("fr-FR").format((100 * value / seriesTotal).toFixed(1)).replace(",", ".");
|
|
371
|
-
returnValue = returnValue + " (" + percentage2 + "%)";
|
|
372
|
-
}
|
|
373
|
-
return returnValue;
|
|
374
|
-
}
|
|
366
|
+
style: { fontSize: "14px", colors: ["#3E3F5E"] }
|
|
375
367
|
};
|
|
368
|
+
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
369
|
+
props.options["dataLabels"] = {
|
|
370
|
+
...defaultDataLabelsConfig,
|
|
371
|
+
...props.options.dataLabels
|
|
372
|
+
};
|
|
373
|
+
} else {
|
|
374
|
+
let defaultDataLabelFormatter = {
|
|
375
|
+
formatter(value, opt) {
|
|
376
|
+
let returnValue = value;
|
|
377
|
+
if (compactMode) {
|
|
378
|
+
returnValue = new Intl.NumberFormat("en-US", {
|
|
379
|
+
notation: "compact",
|
|
380
|
+
maximumFractionDigits: 1
|
|
381
|
+
}).format(value);
|
|
382
|
+
}
|
|
383
|
+
if (!compactMode) {
|
|
384
|
+
returnValue = new Intl.NumberFormat("fr-FR").format(value);
|
|
385
|
+
}
|
|
386
|
+
if (hasPercentages) {
|
|
387
|
+
let seriesTotal = seriesData[opt.seriesIndex].data.reduce(
|
|
388
|
+
(a, b) => a + b,
|
|
389
|
+
0
|
|
390
|
+
);
|
|
391
|
+
let percentage2 = new Intl.NumberFormat("fr-FR").format((100 * value / seriesTotal).toFixed(1)).replace(",", ".");
|
|
392
|
+
returnValue = returnValue + " (" + percentage2 + "%)";
|
|
393
|
+
}
|
|
394
|
+
return returnValue;
|
|
395
|
+
}
|
|
396
|
+
};
|
|
397
|
+
props.options["dataLabels"] = {
|
|
398
|
+
...defaultDataLabelsConfig,
|
|
399
|
+
...defaultDataLabelFormatter
|
|
400
|
+
};
|
|
401
|
+
}
|
|
376
402
|
if (props.hideLegend) {
|
|
377
403
|
props.options["legend"] = { show: false };
|
|
378
404
|
}
|
|
@@ -403,33 +429,46 @@ export default defineComponent({
|
|
|
403
429
|
dataLabels: { position: "top", hideOverflowingLabels: true }
|
|
404
430
|
}
|
|
405
431
|
};
|
|
406
|
-
|
|
432
|
+
let defaultDataLabelsConfig = {
|
|
407
433
|
position: "top",
|
|
408
434
|
enabled: true,
|
|
409
435
|
offsetX: -30,
|
|
410
|
-
style: { fontSize: "14px", colors: ["#FFFFFF"] }
|
|
411
|
-
formatter(value, opt) {
|
|
412
|
-
let returnValue = value;
|
|
413
|
-
if (compactMode) {
|
|
414
|
-
returnValue = new Intl.NumberFormat("en-US", {
|
|
415
|
-
notation: "compact",
|
|
416
|
-
maximumFractionDigits: 1
|
|
417
|
-
}).format(value);
|
|
418
|
-
}
|
|
419
|
-
if (!compactMode) {
|
|
420
|
-
returnValue = new Intl.NumberFormat("fr-FR").format(value);
|
|
421
|
-
}
|
|
422
|
-
if (hasPercentages) {
|
|
423
|
-
let groupTotal = 0;
|
|
424
|
-
seriesData.map(
|
|
425
|
-
(d) => groupTotal = groupTotal + d.data[opt.dataPointIndex]
|
|
426
|
-
);
|
|
427
|
-
let percentage2 = new Intl.NumberFormat("fr-FR").format((100 * value / groupTotal).toFixed(1)).replace(",", ".");
|
|
428
|
-
returnValue = returnValue + " (" + percentage2 + "%)";
|
|
429
|
-
}
|
|
430
|
-
return returnValue;
|
|
431
|
-
}
|
|
436
|
+
style: { fontSize: "14px", colors: ["#FFFFFF"] }
|
|
432
437
|
};
|
|
438
|
+
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
439
|
+
props.options["dataLabels"] = {
|
|
440
|
+
...defaultDataLabelsConfig,
|
|
441
|
+
...props.options.dataLabels
|
|
442
|
+
};
|
|
443
|
+
} else {
|
|
444
|
+
let defaultDataLabelFormatter = {
|
|
445
|
+
formatter(value, opt) {
|
|
446
|
+
let returnValue = value;
|
|
447
|
+
if (compactMode) {
|
|
448
|
+
returnValue = new Intl.NumberFormat("en-US", {
|
|
449
|
+
notation: "compact",
|
|
450
|
+
maximumFractionDigits: 1
|
|
451
|
+
}).format(value);
|
|
452
|
+
}
|
|
453
|
+
if (!compactMode) {
|
|
454
|
+
returnValue = new Intl.NumberFormat("fr-FR").format(value);
|
|
455
|
+
}
|
|
456
|
+
if (hasPercentages) {
|
|
457
|
+
let groupTotal = 0;
|
|
458
|
+
seriesData.map(
|
|
459
|
+
(d) => groupTotal = groupTotal + d.data[opt.dataPointIndex]
|
|
460
|
+
);
|
|
461
|
+
let percentage2 = new Intl.NumberFormat("fr-FR").format((100 * value / groupTotal).toFixed(1)).replace(",", ".");
|
|
462
|
+
returnValue = returnValue + " (" + percentage2 + "%)";
|
|
463
|
+
}
|
|
464
|
+
return returnValue;
|
|
465
|
+
}
|
|
466
|
+
};
|
|
467
|
+
props.options["dataLabels"] = {
|
|
468
|
+
...defaultDataLabelsConfig,
|
|
469
|
+
...defaultDataLabelFormatter
|
|
470
|
+
};
|
|
471
|
+
}
|
|
433
472
|
if (props.tooltipOptions) {
|
|
434
473
|
props.options["tooltip"] = props.tooltipOptions;
|
|
435
474
|
}
|
|
@@ -474,29 +513,42 @@ export default defineComponent({
|
|
|
474
513
|
}
|
|
475
514
|
}
|
|
476
515
|
};
|
|
477
|
-
|
|
516
|
+
let defaultDataLabelsConfig = {
|
|
478
517
|
position: "top",
|
|
479
518
|
enabled: true,
|
|
480
519
|
offsetX: -50,
|
|
481
|
-
style: { fontSize: "14px", colors: ["#3E3F5E"] }
|
|
482
|
-
formatter(value, opt) {
|
|
483
|
-
let dataValue = seriesData[opt.seriesIndex].data[opt.dataPointIndex];
|
|
484
|
-
let returnValue = dataValue;
|
|
485
|
-
if (compactMode) {
|
|
486
|
-
returnValue = new Intl.NumberFormat("en-US", {
|
|
487
|
-
notation: "compact",
|
|
488
|
-
maximumFractionDigits: 1
|
|
489
|
-
}).format(dataValue);
|
|
490
|
-
}
|
|
491
|
-
if (!compactMode) {
|
|
492
|
-
returnValue = new Intl.NumberFormat("fr-FR").format(dataValue);
|
|
493
|
-
}
|
|
494
|
-
if (hasPercentages) {
|
|
495
|
-
returnValue = returnValue + " (" + value.toFixed(1) + "%)";
|
|
496
|
-
}
|
|
497
|
-
return returnValue;
|
|
498
|
-
}
|
|
520
|
+
style: { fontSize: "14px", colors: ["#3E3F5E"] }
|
|
499
521
|
};
|
|
522
|
+
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
523
|
+
props.options["dataLabels"] = {
|
|
524
|
+
...defaultDataLabelsConfig,
|
|
525
|
+
...props.options.dataLabels
|
|
526
|
+
};
|
|
527
|
+
} else {
|
|
528
|
+
let defaultDataLabelFormatter = {
|
|
529
|
+
formatter(value, opt) {
|
|
530
|
+
let dataValue = seriesData[opt.seriesIndex].data[opt.dataPointIndex];
|
|
531
|
+
let returnValue = dataValue;
|
|
532
|
+
if (compactMode) {
|
|
533
|
+
returnValue = new Intl.NumberFormat("en-US", {
|
|
534
|
+
notation: "compact",
|
|
535
|
+
maximumFractionDigits: 1
|
|
536
|
+
}).format(dataValue);
|
|
537
|
+
}
|
|
538
|
+
if (!compactMode) {
|
|
539
|
+
returnValue = new Intl.NumberFormat("fr-FR").format(dataValue);
|
|
540
|
+
}
|
|
541
|
+
if (hasPercentages) {
|
|
542
|
+
returnValue = returnValue + " (" + value.toFixed(1) + "%)";
|
|
543
|
+
}
|
|
544
|
+
return returnValue;
|
|
545
|
+
}
|
|
546
|
+
};
|
|
547
|
+
props.options["dataLabels"] = {
|
|
548
|
+
...defaultDataLabelsConfig,
|
|
549
|
+
...defaultDataLabelFormatter
|
|
550
|
+
};
|
|
551
|
+
}
|
|
500
552
|
if (props.tooltipOptions) {
|
|
501
553
|
props.options["tooltip"] = props.tooltipOptions;
|
|
502
554
|
}
|
|
@@ -514,33 +566,46 @@ export default defineComponent({
|
|
|
514
566
|
dataLabels: { position: "top", hideOverflowingLabels: true }
|
|
515
567
|
}
|
|
516
568
|
};
|
|
517
|
-
|
|
569
|
+
let defaultDataLabelsConfig = {
|
|
518
570
|
position: "top",
|
|
519
571
|
enabled: true,
|
|
520
572
|
offsetX: 65,
|
|
521
|
-
style: { fontSize: "14px", colors: ["#3E3F5E"] }
|
|
522
|
-
formatter(value, opt) {
|
|
523
|
-
let returnValue = value;
|
|
524
|
-
if (compactMode) {
|
|
525
|
-
returnValue = new Intl.NumberFormat("en-US", {
|
|
526
|
-
notation: "compact",
|
|
527
|
-
maximumFractionDigits: 1
|
|
528
|
-
}).format(value);
|
|
529
|
-
}
|
|
530
|
-
if (!compactMode) {
|
|
531
|
-
returnValue = new Intl.NumberFormat("fr-FR").format(value);
|
|
532
|
-
}
|
|
533
|
-
if (hasPercentages) {
|
|
534
|
-
let seriesTotal = seriesData[opt.seriesIndex].data.reduce(
|
|
535
|
-
(a, b) => a + b,
|
|
536
|
-
0
|
|
537
|
-
);
|
|
538
|
-
let percentage2 = new Intl.NumberFormat("fr-FR").format((100 * value / seriesTotal).toFixed(1)).replace(",", ".");
|
|
539
|
-
returnValue = returnValue + " (" + percentage2 + "%)";
|
|
540
|
-
}
|
|
541
|
-
return returnValue;
|
|
542
|
-
}
|
|
573
|
+
style: { fontSize: "14px", colors: ["#3E3F5E"] }
|
|
543
574
|
};
|
|
575
|
+
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
576
|
+
props.options["dataLabels"] = {
|
|
577
|
+
...defaultDataLabelsConfig,
|
|
578
|
+
...props.options.dataLabels
|
|
579
|
+
};
|
|
580
|
+
} else {
|
|
581
|
+
let defaultDataLabelFormatter = {
|
|
582
|
+
formatter(value, opt) {
|
|
583
|
+
let returnValue = value;
|
|
584
|
+
if (compactMode) {
|
|
585
|
+
returnValue = new Intl.NumberFormat("en-US", {
|
|
586
|
+
notation: "compact",
|
|
587
|
+
maximumFractionDigits: 1
|
|
588
|
+
}).format(value);
|
|
589
|
+
}
|
|
590
|
+
if (!compactMode) {
|
|
591
|
+
returnValue = new Intl.NumberFormat("fr-FR").format(value);
|
|
592
|
+
}
|
|
593
|
+
if (hasPercentages) {
|
|
594
|
+
let seriesTotal = seriesData[opt.seriesIndex].data.reduce(
|
|
595
|
+
(a, b) => a + b,
|
|
596
|
+
0
|
|
597
|
+
);
|
|
598
|
+
let percentage2 = new Intl.NumberFormat("fr-FR").format((100 * value / seriesTotal).toFixed(1)).replace(",", ".");
|
|
599
|
+
returnValue = returnValue + " (" + percentage2 + "%)";
|
|
600
|
+
}
|
|
601
|
+
return returnValue;
|
|
602
|
+
}
|
|
603
|
+
};
|
|
604
|
+
props.options["dataLabels"] = {
|
|
605
|
+
...defaultDataLabelsConfig,
|
|
606
|
+
...defaultDataLabelFormatter
|
|
607
|
+
};
|
|
608
|
+
}
|
|
544
609
|
if (props.tooltipOptions) {
|
|
545
610
|
props.options["tooltip"] = props.tooltipOptions;
|
|
546
611
|
}
|
|
@@ -560,32 +625,45 @@ export default defineComponent({
|
|
|
560
625
|
};
|
|
561
626
|
} else if (props.type === "pie") {
|
|
562
627
|
props.options["labels"] = props.categories;
|
|
563
|
-
|
|
628
|
+
let defaultDataLabelsConfig = {
|
|
564
629
|
offset: -50,
|
|
565
630
|
enabled: true,
|
|
566
631
|
style: { fontSize: "14px", colors: ["#FFFFFF"] },
|
|
567
|
-
dropShadow: { enabled: false }
|
|
568
|
-
formatter(value, opt) {
|
|
569
|
-
let returnValue = opt.w.config.series[opt.seriesIndex];
|
|
570
|
-
if (compactMode) {
|
|
571
|
-
returnValue = new Intl.NumberFormat("en-US", {
|
|
572
|
-
notation: "compact",
|
|
573
|
-
maximumFractionDigits: 1
|
|
574
|
-
}).format(opt.w.config.series[opt.seriesIndex]);
|
|
575
|
-
}
|
|
576
|
-
if (!compactMode) {
|
|
577
|
-
returnValue = new Intl.NumberFormat("fr-FR").format(opt.w.config.series[opt.seriesIndex]).replace(",", ".");
|
|
578
|
-
}
|
|
579
|
-
if (hasPercentages) {
|
|
580
|
-
let percentage2 = new Intl.NumberFormat("fr-FR", {
|
|
581
|
-
notation: "compact",
|
|
582
|
-
maximumFractionDigits: 1
|
|
583
|
-
}).format(value).replace(",", ".");
|
|
584
|
-
returnValue = returnValue + " (" + percentage2 + "%)";
|
|
585
|
-
}
|
|
586
|
-
return returnValue;
|
|
587
|
-
}
|
|
632
|
+
dropShadow: { enabled: false }
|
|
588
633
|
};
|
|
634
|
+
if (props.options.dataLabels && props.options.dataLabels.formatter) {
|
|
635
|
+
props.options["dataLabels"] = {
|
|
636
|
+
...defaultDataLabelsConfig,
|
|
637
|
+
...props.options.dataLabels
|
|
638
|
+
};
|
|
639
|
+
} else {
|
|
640
|
+
let defaultDataLabelFormatter = {
|
|
641
|
+
formatter(value, opt) {
|
|
642
|
+
let returnValue = opt.w.config.series[opt.seriesIndex];
|
|
643
|
+
if (compactMode) {
|
|
644
|
+
returnValue = new Intl.NumberFormat("en-US", {
|
|
645
|
+
notation: "compact",
|
|
646
|
+
maximumFractionDigits: 1
|
|
647
|
+
}).format(opt.w.config.series[opt.seriesIndex]);
|
|
648
|
+
}
|
|
649
|
+
if (!compactMode) {
|
|
650
|
+
returnValue = new Intl.NumberFormat("fr-FR").format(opt.w.config.series[opt.seriesIndex]).replace(",", ".");
|
|
651
|
+
}
|
|
652
|
+
if (hasPercentages) {
|
|
653
|
+
let percentage2 = new Intl.NumberFormat("fr-FR", {
|
|
654
|
+
notation: "compact",
|
|
655
|
+
maximumFractionDigits: 1
|
|
656
|
+
}).format(value).replace(",", ".");
|
|
657
|
+
returnValue = returnValue + " (" + percentage2 + "%)";
|
|
658
|
+
}
|
|
659
|
+
return returnValue;
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
props.options["dataLabels"] = {
|
|
663
|
+
...defaultDataLabelsConfig,
|
|
664
|
+
...defaultDataLabelFormatter
|
|
665
|
+
};
|
|
666
|
+
}
|
|
589
667
|
if (props.tooltipOptions) {
|
|
590
668
|
props.options["tooltip"] = props.tooltipOptions;
|
|
591
669
|
}
|
|
@@ -13,7 +13,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
15
|
}, {
|
|
16
|
-
formatDate: (str: string) => string;
|
|
16
|
+
formatDate: (str: string | number) => string;
|
|
17
17
|
monthToString: (month: number) => "Jan." | "Janvier" | "Jan" | "January" | "Fév." | "Février" | "Feb." | "February" | "Mar." | "Mars" | "March" | "Avr." | "Avril" | "Apr." | "April" | "Mai" | "May" | "Juin" | "Jun." | "June" | "Juil." | "Juillet" | "Jul." | "July" | "Aoû." | "Août" | "Aug." | "August" | "Sep." | "Septembre" | "September" | "Oct." | "Octobre" | "October" | "Nov." | "Novembre" | "November" | "Déc." | "Décembre" | "Dec." | "December" | undefined;
|
|
18
18
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
19
|
rawDate: {
|
|
@@ -62,14 +62,14 @@
|
|
|
62
62
|
</client-only>
|
|
63
63
|
<div class="oip_hybrid_chart__footer" v-if="limiter">
|
|
64
64
|
<arg-btn
|
|
65
|
-
btnStyle="
|
|
65
|
+
btnStyle="secondary-stroke"
|
|
66
66
|
prefixIcon="CornersOut"
|
|
67
67
|
@onClick="changeShowState(true)"
|
|
68
68
|
v-if="!showAll"
|
|
69
69
|
>Show all</arg-btn
|
|
70
70
|
>
|
|
71
71
|
<arg-btn
|
|
72
|
-
btnStyle="
|
|
72
|
+
btnStyle="secondary-stroke"
|
|
73
73
|
prefixIcon="CornersIn"
|
|
74
74
|
@onClick="changeShowState(false)"
|
|
75
75
|
v-if="showAll"
|
|
@@ -2,32 +2,55 @@
|
|
|
2
2
|
<div
|
|
3
3
|
v-if="langs.length > 0"
|
|
4
4
|
class="language_container"
|
|
5
|
-
:class="
|
|
6
|
-
|
|
5
|
+
:class="[
|
|
6
|
+
showLangOptions ? 'open' : 'close',
|
|
7
|
+
sidebarOpen !== null ? 'in-sidebar' : '',
|
|
8
|
+
]"
|
|
9
|
+
@click.stop="showLangOptions = !showLangOptions"
|
|
7
10
|
>
|
|
8
|
-
<div
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
<div
|
|
12
|
+
class="oip_row v-center justify-between"
|
|
13
|
+
:class="sidebarOpen !== false ? 'gap-8' : 'gap-4'"
|
|
14
|
+
>
|
|
15
|
+
<div class="oip_row v-center gap-4 flex-80">
|
|
16
|
+
<arg-flag
|
|
17
|
+
:iso="selectedItem.iso"
|
|
18
|
+
:height="sidebarOpen !== false ? '16' : '14'"
|
|
19
|
+
emoji
|
|
20
|
+
/>
|
|
21
|
+
<p v-if="sidebarOpen !== false">
|
|
12
22
|
{{ langs.filter((f) => f.iso === selectedItem.iso)[0].title }}
|
|
13
23
|
</p>
|
|
14
24
|
</div>
|
|
15
25
|
<arg-icon
|
|
26
|
+
v-if="sidebarOpen !== false"
|
|
16
27
|
name="CaretDown"
|
|
17
28
|
size="14"
|
|
18
|
-
class="lang_choice_icon"
|
|
29
|
+
class="lang_choice_icon flex-20"
|
|
19
30
|
:class="showLangOptions ? 'icon-rotate' : ''"
|
|
20
31
|
/>
|
|
21
32
|
</div>
|
|
22
|
-
<div
|
|
33
|
+
<div
|
|
34
|
+
:class="[
|
|
35
|
+
'lang_choice_container',
|
|
36
|
+
showLangOptions ? 'open' : 'close',
|
|
37
|
+
sidebarOpen !== null ? 'in-sidebar' : '',
|
|
38
|
+
]"
|
|
39
|
+
>
|
|
23
40
|
<div
|
|
24
41
|
v-for="(lang, index) in langs.filter((f) => f.iso !== selectedItem.iso)"
|
|
25
42
|
:key="index"
|
|
26
43
|
class="oip_row v-center gap-4 lang-choice"
|
|
27
44
|
@click="selectLang(lang)"
|
|
28
45
|
>
|
|
29
|
-
<arg-flag
|
|
30
|
-
|
|
46
|
+
<arg-flag
|
|
47
|
+
:iso="lang.iso"
|
|
48
|
+
:height="sidebarOpen !== false ? '16' : '14'"
|
|
49
|
+
emoji
|
|
50
|
+
/>
|
|
51
|
+
<p v-if="sidebarOpen !== false">
|
|
52
|
+
{{ lang.title }}
|
|
53
|
+
</p>
|
|
31
54
|
</div>
|
|
32
55
|
</div>
|
|
33
56
|
</div>
|
|
@@ -37,6 +60,7 @@
|
|
|
37
60
|
import {
|
|
38
61
|
onMounted,
|
|
39
62
|
ref,
|
|
63
|
+
watch,
|
|
40
64
|
defineComponent
|
|
41
65
|
} from "vue";
|
|
42
66
|
import argIcon from "./argIcon.vue";
|
|
@@ -51,7 +75,11 @@ export default defineComponent({
|
|
|
51
75
|
},
|
|
52
76
|
default_locale: {
|
|
53
77
|
type: String,
|
|
54
|
-
default: "
|
|
78
|
+
default: "en"
|
|
79
|
+
},
|
|
80
|
+
sidebarOpen: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: null
|
|
55
83
|
}
|
|
56
84
|
},
|
|
57
85
|
emits: ["onSelectLang", "update:Lang"],
|
|
@@ -65,11 +93,25 @@ export default defineComponent({
|
|
|
65
93
|
onMounted(() => {
|
|
66
94
|
selectedItem.value = props.langs[props.langs.findIndex((a) => a.locale === props.default_locale)];
|
|
67
95
|
});
|
|
96
|
+
watch(
|
|
97
|
+
() => showLangOptions.value,
|
|
98
|
+
() => {
|
|
99
|
+
if (showLangOptions.value === true) {
|
|
100
|
+
setTimeout(() => {
|
|
101
|
+
document.addEventListener("click", closeLang);
|
|
102
|
+
}, 150);
|
|
103
|
+
} else
|
|
104
|
+
document.removeEventListener("click", closeLang);
|
|
105
|
+
}
|
|
106
|
+
);
|
|
68
107
|
function selectLang(item) {
|
|
69
108
|
selectedItem.value = item;
|
|
70
109
|
emit("onSelectLang", item);
|
|
71
110
|
emit("update:Lang", item.locale);
|
|
72
111
|
}
|
|
112
|
+
function closeLang() {
|
|
113
|
+
showLangOptions.value = false;
|
|
114
|
+
}
|
|
73
115
|
return {
|
|
74
116
|
selectedItem,
|
|
75
117
|
showLangOptions,
|
|
@@ -80,5 +122,5 @@ export default defineComponent({
|
|
|
80
122
|
</script>
|
|
81
123
|
|
|
82
124
|
<style scoped>
|
|
83
|
-
.language_container{
|
|
125
|
+
.flex-80{flex-basis:85%}.width-100{width:100%}.language_container{border:none;border-radius:4px;cursor:pointer;display:flex;flex-direction:column;padding:8px;position:relative;transition:max-height .3s ease,background-color .3s linear;z-index:99}.language_container.close{background-color:transparent;max-height:42px}.language_container.open{max-height:100px}.language_container.open,.language_container.open.in-sidebar:hover,.language_container:not(.in-sidebar):hover{background:#fdfdff}.language_container.open{box-shadow:5px 5px 5px rgba(62,63,94,.06)}.language_container.in-sidebar:hover{background:var(--light)}.language_container:hover svg{color:var(--primary)!important}.lang_choice_container{background-color:#fdfdff;border-top:none!important;border:none;border-radius:4px;border-top-left-radius:0!important;border-top-right-radius:0!important;box-shadow:5px 5px 5px rgba(62,63,94,.06);display:flex;flex-direction:column;gap:4px;left:0;padding:8px 12px 10px 8px;position:absolute;right:0;top:32px;transition:max-height .3s linear,opacity .3s ease}.lang_choice_container.open{max-height:100px;opacity:1}.lang_choice_container.close{max-height:0;opacity:0}.active_lang .lang_choice_container{border-top:none!important}.lang_choice:hover{color:var(--primary)!important}.lang_choice_icon{flex-shrink:0;transition:transform .3s}.icon-rotate{transform:rotate(-180deg)}p{font-size:14px;font-style:normal;font-weight:400;line-height:160%;white-space:nowrap}.lang-choice:hover p{color:var(--primary)!important}
|
|
84
126
|
</style>
|
|
@@ -20,6 +20,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
type: StringConstructor;
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
|
+
sidebarOpen: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: null;
|
|
26
|
+
};
|
|
23
27
|
}, {
|
|
24
28
|
selectedItem: import("vue").Ref<any>;
|
|
25
29
|
showLangOptions: import("vue").Ref<boolean>;
|
|
@@ -46,10 +50,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
50
|
type: StringConstructor;
|
|
47
51
|
default: string;
|
|
48
52
|
};
|
|
53
|
+
sidebarOpen: {
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
default: null;
|
|
56
|
+
};
|
|
49
57
|
}>> & {
|
|
50
58
|
onOnSelectLang?: ((...args: any[]) => any) | undefined;
|
|
51
59
|
"onUpdate:Lang"?: ((...args: any[]) => any) | undefined;
|
|
52
60
|
}, {
|
|
61
|
+
sidebarOpen: boolean;
|
|
53
62
|
default_locale: string;
|
|
54
63
|
}, {}>;
|
|
55
64
|
export default _default;
|
|
@@ -120,6 +120,7 @@ import {
|
|
|
120
120
|
import Usa from "@svg-maps/usa";
|
|
121
121
|
import UsaCounties from "@svg-maps/usa.counties";
|
|
122
122
|
import France from "@svg-maps/france.regions";
|
|
123
|
+
import FranceDepartments from "@svg-maps/france.departments";
|
|
123
124
|
import World from "@svg-maps/world";
|
|
124
125
|
import SvgMap from "./SvgMap.vue";
|
|
125
126
|
export default defineComponent({
|
|
@@ -158,6 +159,7 @@ export default defineComponent({
|
|
|
158
159
|
return typeof value4 === "undefined";
|
|
159
160
|
}
|
|
160
161
|
onMounted(() => {
|
|
162
|
+
tooltipStyle.value = { display: "none" };
|
|
161
163
|
updateTableRange();
|
|
162
164
|
});
|
|
163
165
|
watch(
|
|
@@ -175,6 +177,8 @@ export default defineComponent({
|
|
|
175
177
|
return UsaCounties;
|
|
176
178
|
if (props.country === "World")
|
|
177
179
|
return World;
|
|
180
|
+
if (props.country === "FranceDepartments")
|
|
181
|
+
return FranceDepartments;
|
|
178
182
|
return null;
|
|
179
183
|
}
|
|
180
184
|
function getLocationName(node) {
|
|
@@ -126,5 +126,5 @@ export default defineComponent({
|
|
|
126
126
|
</script>
|
|
127
127
|
|
|
128
128
|
<style scoped>
|
|
129
|
-
.info_main_container{background-color:transparent;opacity:0;transition:background-color .3s linear,opacity .4s linear;z-index:0}.info_main_container_open{background-color:rgba(0,0,0,.4);bottom:0;height:100%;left:0;opacity:1;position:fixed;top:0;width:100%;z-index:99}.oip_info_menu{align-items:center;align-self:stretch;border-bottom:2px solid transparent;color:var(--dark);cursor:pointer;display:flex;font-size:14px;font-style:normal;font-weight:500;gap:4px;justify-content:space-between;line-height:normal;padding:0 16px 4px}.active_info_menu{border-bottom:2px solid var(--primary-primary,#2176ff)!important;color:var(--darkest)!important}.oip_info_item svg{flex-basis:100%}.oip_info_item:hover{background:rgba(237,237,243,.65)}.oip_info_close{align-items:center;background:var(--white);border-radius:var(--s,8px);cursor:pointer;display:flex;font-size:14px;font-style:normal;font-weight:400;gap:6px;line-height:160%;margin:24px;padding:6px 12px 6px 8px}.oip_info_close:hover{background:var(--light)!important}.oip_info_section{align-items:flex-start;display:flex;flex-direction:row;height:0;overflow:hidden;transition:all .5s ease;width:0}.oip_info_section_open{height:
|
|
129
|
+
.info_main_container{background-color:transparent;opacity:0;transition:background-color .3s linear,opacity .4s linear;z-index:0}.info_main_container_open{background-color:rgba(0,0,0,.4);bottom:0;height:100%;left:0;opacity:1;position:fixed;top:0;width:100%;z-index:99}.oip_info_menu{align-items:center;align-self:stretch;border-bottom:2px solid transparent;color:var(--dark);cursor:pointer;display:flex;font-size:14px;font-style:normal;font-weight:500;gap:4px;justify-content:space-between;line-height:normal;padding:0 16px 4px}.active_info_menu{border-bottom:2px solid var(--primary-primary,#2176ff)!important;color:var(--darkest)!important}.oip_info_item svg{flex-basis:100%}.oip_info_item:hover{background:rgba(237,237,243,.65)}.oip_info_close{align-items:center;background:var(--white);border-radius:var(--s,8px);cursor:pointer;display:flex;font-size:14px;font-style:normal;font-weight:400;gap:6px;line-height:160%;margin:24px;padding:6px 12px 6px 8px}.oip_info_close:hover{background:var(--light)!important}.oip_info_section{align-items:flex-start;display:flex;flex-direction:row;height:0;overflow:hidden;transition:all .5s ease;width:0}.oip_info_section_open{height:100%;width:620px}.oip_info_sidebar{background:var(--base-demi-fond,#f9f9fa);gap:16px;padding:24px 0;width:160px}.oip_info_content,.oip_info_sidebar{align-items:flex-start;align-self:stretch;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-left:1px solid var(--light,#ececf2);display:flex;flex-direction:column}.oip_info_content{background:var(--base-white,#fff);border-radius:var(--None,0);gap:24px;overflow-y:scroll;padding:24px;width:460px}.oip_info_content::-webkit-scrollbar{height:5px!important;width:5px!important}.oip_info_content::-webkit-scrollbar-thumb{background:var(--medium);border-radius:12px!important}.oip_info_content::-webkit-scrollbar-thumb:hover{background:var(--medium)!important}.oip_info_container{align-items:flex-start;display:inline-flex;height:100%;position:fixed;right:0;top:0;z-index:999}.hide{display:none}.arg_source_amount{align-items:center;background:var(--system-alert,#ef4444);border-radius:30px;color:var(--white);display:flex;flex-direction:column;font-size:10px;font-style:normal;font-weight:900;height:var(--m,16px);justify-content:center;line-height:normal;width:var(--m,16px)}.toolbar_menu_content{align-self:stretch}
|
|
130
130
|
</style>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tekkare/auriga",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.85",
|
|
4
4
|
"description": "Aurgia is a UI kit developped by Tekkare",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@nuxt/kit": "^3.7.3",
|
|
34
|
+
"@svg-maps/france.departments": "^1.0.1",
|
|
34
35
|
"@svg-maps/france.regions": "^1.1.1",
|
|
35
36
|
"@svg-maps/usa": "^1.1.1",
|
|
36
37
|
"@svg-maps/usa.counties": "^1.1.2",
|