@tekkare/auriga 0.1.116 → 0.1.118
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/allIcons2.vue +271 -1
- package/dist/runtime/components/argActions.vue +8 -8
- package/dist/runtime/components/argComplexSelect.vue +48 -16
- package/dist/runtime/components/argDate.vue +12 -12
- package/dist/runtime/components/argDate.vue.d.ts +1 -1
- package/dist/runtime/components/argDropdownSelect.vue +5 -5
- package/dist/runtime/components/argFilterCard.vue +16 -3
- package/dist/runtime/components/argFilterCard.vue.d.ts +9 -0
- package/dist/runtime/components/argFooter.vue +13 -3
- package/dist/runtime/components/argIcon.vue +542 -2
- package/dist/runtime/components/argIcon.vue.d.ts +270 -0
- package/dist/runtime/components/argMainLayout.vue +1 -1
- package/dist/runtime/components/argMultipleSelect.vue +5 -5
- package/dist/runtime/components/argNoSavedScope.vue +7 -1
- package/dist/runtime/components/argNoSavedScope.vue.d.ts +3 -0
- package/dist/runtime/components/argNoSelectedScope.vue +19 -3
- package/dist/runtime/components/argNoSelectedScope.vue.d.ts +1 -1
- package/dist/runtime/components/argScopeChange.vue +51 -10
- package/dist/runtime/components/argScopeChange.vue.d.ts +31 -2
- package/dist/runtime/components/argScopeCriteria.vue +25 -5
- package/dist/runtime/components/argScopeCriteria.vue.d.ts +4 -0
- package/dist/runtime/components/argScopeCriteriaIndicator.vue +15 -3
- package/dist/runtime/components/argScopeHeader.vue +3 -1
- package/dist/runtime/components/argScopeManage.vue +34 -6
- package/dist/runtime/components/argScopeModal.vue +35 -5
- package/dist/runtime/components/argSidebar.vue +11 -4
- package/dist/runtime/components/argSourceCollapse.vue +4 -2
- package/dist/runtime/components/argToolbarSources.vue +12 -2
- package/package.json +1 -1
|
@@ -1296,6 +1296,276 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1296
1296
|
SwimmingPool: string;
|
|
1297
1297
|
SquareSplitHorizontal: string;
|
|
1298
1298
|
DotOutline: string;
|
|
1299
|
+
OpenAiLogo: string;
|
|
1300
|
+
NotEquals: string;
|
|
1301
|
+
Lectern: string;
|
|
1302
|
+
Lasso: string;
|
|
1303
|
+
ShippingContainer: string;
|
|
1304
|
+
PintGlass: string;
|
|
1305
|
+
UserCircleDashed: string;
|
|
1306
|
+
TreasureChest: string;
|
|
1307
|
+
GpsSlash: string;
|
|
1308
|
+
Tire: string;
|
|
1309
|
+
SecurityCamera: string;
|
|
1310
|
+
TumblrLogo: string;
|
|
1311
|
+
ThreeD: string;
|
|
1312
|
+
SkypeLogo: string;
|
|
1313
|
+
SupersetOf: string;
|
|
1314
|
+
StackMinus: string;
|
|
1315
|
+
Panorama: string;
|
|
1316
|
+
Mailbox: string;
|
|
1317
|
+
MonitorArrowUp: string;
|
|
1318
|
+
RowsPlusTop: string;
|
|
1319
|
+
TipJar: string;
|
|
1320
|
+
HardHat: string;
|
|
1321
|
+
HandArrowDown: string;
|
|
1322
|
+
Windmill: string;
|
|
1323
|
+
Trolley: string;
|
|
1324
|
+
MouseScroll: string;
|
|
1325
|
+
Tornado: string;
|
|
1326
|
+
Lego: string;
|
|
1327
|
+
RowsPlusBottom: string;
|
|
1328
|
+
Towel: string;
|
|
1329
|
+
Island: string;
|
|
1330
|
+
LessThan: string;
|
|
1331
|
+
Joystick: string;
|
|
1332
|
+
TrayArrowUp: string;
|
|
1333
|
+
HeadCircuit: string;
|
|
1334
|
+
PicnicTable: string;
|
|
1335
|
+
PersonSimpleSnowboard: string;
|
|
1336
|
+
Sailboat: string;
|
|
1337
|
+
VectorThree: string;
|
|
1338
|
+
Hurricane: string;
|
|
1339
|
+
HandWithdraw: string;
|
|
1340
|
+
MapPinSimple: string;
|
|
1341
|
+
Numpad: string;
|
|
1342
|
+
Seat: string;
|
|
1343
|
+
SteamLogo: string;
|
|
1344
|
+
TrayArrowDown: string;
|
|
1345
|
+
Popsicle: string;
|
|
1346
|
+
HairDryer: string;
|
|
1347
|
+
LetterCircleP: string;
|
|
1348
|
+
Jar: string;
|
|
1349
|
+
PhoneList: string;
|
|
1350
|
+
ThreadsLogo: string;
|
|
1351
|
+
SolarPanel: string;
|
|
1352
|
+
MapPinArea: string;
|
|
1353
|
+
ScanSmiley: string;
|
|
1354
|
+
Sphere: string;
|
|
1355
|
+
Seatbelt: string;
|
|
1356
|
+
PingPong: string;
|
|
1357
|
+
ListHeart: string;
|
|
1358
|
+
Gps: string;
|
|
1359
|
+
HandPeace: string;
|
|
1360
|
+
MapPinPlus: string;
|
|
1361
|
+
TruckTrailer: string;
|
|
1362
|
+
PencilRuler: string;
|
|
1363
|
+
NetworkX: string;
|
|
1364
|
+
MarkdownLogo: string;
|
|
1365
|
+
Scribble: string;
|
|
1366
|
+
MoneyWavy: string;
|
|
1367
|
+
SubsetProperOf: string;
|
|
1368
|
+
Rabbit: string;
|
|
1369
|
+
Ranking: string;
|
|
1370
|
+
ImageBroken: string;
|
|
1371
|
+
SolarRoof: string;
|
|
1372
|
+
Hospital: string;
|
|
1373
|
+
PersonSimpleSwim: string;
|
|
1374
|
+
TrolleySuitcase: string;
|
|
1375
|
+
MapPinSimpleLine: string;
|
|
1376
|
+
MouseLeftClick: string;
|
|
1377
|
+
TreeView: string;
|
|
1378
|
+
LetterCircleV: string;
|
|
1379
|
+
NuclearPlant: string;
|
|
1380
|
+
Speedometer: string;
|
|
1381
|
+
SprayBottle: string;
|
|
1382
|
+
SubsetOf: string;
|
|
1383
|
+
Onigiri: string;
|
|
1384
|
+
NotSupersetOf: string;
|
|
1385
|
+
HandArrowUp: string;
|
|
1386
|
+
NotMemberOf: string;
|
|
1387
|
+
MastodonLogo: string;
|
|
1388
|
+
LinktreeLogo: string;
|
|
1389
|
+
MouseMiddleClick: string;
|
|
1390
|
+
HandDeposit: string;
|
|
1391
|
+
PhoneTransfer: string;
|
|
1392
|
+
Sock: string;
|
|
1393
|
+
UserCircleCheck: string;
|
|
1394
|
+
Oven: string;
|
|
1395
|
+
Yarn: string;
|
|
1396
|
+
GreaterThan: string;
|
|
1397
|
+
UserSound: string;
|
|
1398
|
+
Golf: string;
|
|
1399
|
+
MusicNotesMinus: string;
|
|
1400
|
+
Tilde: string;
|
|
1401
|
+
MatrixLogo: string;
|
|
1402
|
+
Union: string;
|
|
1403
|
+
Racquet: string;
|
|
1404
|
+
RectangleDashed: string;
|
|
1405
|
+
GpsFix: string;
|
|
1406
|
+
MapPinSimpleArea: string;
|
|
1407
|
+
Network: string;
|
|
1408
|
+
Memory: string;
|
|
1409
|
+
PersonSimpleTaiChi: string;
|
|
1410
|
+
WaveformSlash: string;
|
|
1411
|
+
Intersection: string;
|
|
1412
|
+
Resize: string;
|
|
1413
|
+
Highlighter: string;
|
|
1414
|
+
Pipe: string;
|
|
1415
|
+
SealPercent: string;
|
|
1416
|
+
StackPlus: string;
|
|
1417
|
+
PersonSimpleHike: string;
|
|
1418
|
+
Shovel: string;
|
|
1419
|
+
Meteor: string;
|
|
1420
|
+
Log: string;
|
|
1421
|
+
TriangleDashed: string;
|
|
1422
|
+
LetterCircleH: string;
|
|
1423
|
+
Visor: string;
|
|
1424
|
+
SpinnerBall: string;
|
|
1425
|
+
LegoSmiley: string;
|
|
1426
|
+
LampPendant: string;
|
|
1427
|
+
LessThanOrEqual: string;
|
|
1428
|
+
QuestionMark: string;
|
|
1429
|
+
GlobeSimpleX: string;
|
|
1430
|
+
Tractor: string;
|
|
1431
|
+
XLogo: string;
|
|
1432
|
+
JarLabel: string;
|
|
1433
|
+
GraphicsCard: string;
|
|
1434
|
+
PersonSimpleSki: string;
|
|
1435
|
+
PhonePause: string;
|
|
1436
|
+
LastfmLogo: string;
|
|
1437
|
+
LineVertical: string;
|
|
1438
|
+
Microscope: string;
|
|
1439
|
+
Subway: string;
|
|
1440
|
+
PersonSimpleCircle: string;
|
|
1441
|
+
GlobeX: string;
|
|
1442
|
+
VideoConference: string;
|
|
1443
|
+
SmileyMelting: string;
|
|
1444
|
+
WashingMachine: string;
|
|
1445
|
+
Invoice: string;
|
|
1446
|
+
UserCheck: string;
|
|
1447
|
+
MouseRightClick: string;
|
|
1448
|
+
GreaterThanOrEqual: string;
|
|
1449
|
+
NetworkSlash: string;
|
|
1450
|
+
Pentagon: string;
|
|
1451
|
+
Screwdriver: string;
|
|
1452
|
+
StandardDefinition: string;
|
|
1453
|
+
SubtitlesSlash: string;
|
|
1454
|
+
VectorTwo: string;
|
|
1455
|
+
Hockey: string;
|
|
1456
|
+
HighDefinition: string;
|
|
1457
|
+
PipeWrench: string;
|
|
1458
|
+
Orange: string;
|
|
1459
|
+
ReplitLogo: string;
|
|
1460
|
+
PixLogo: string;
|
|
1461
|
+
MemberOf: string;
|
|
1462
|
+
ListStar: string;
|
|
1463
|
+
NotSubsetOf: string;
|
|
1464
|
+
CigaretteSlash: string;
|
|
1465
|
+
CashRegister: string;
|
|
1466
|
+
FediverseLogo: string;
|
|
1467
|
+
DropSlash: string;
|
|
1468
|
+
CraneTower: string;
|
|
1469
|
+
FlipVertical: string;
|
|
1470
|
+
FileCpp: string;
|
|
1471
|
+
CalendarDot: string;
|
|
1472
|
+
Cow: string;
|
|
1473
|
+
ColumnsPlusRight: string;
|
|
1474
|
+
Asclepius: string;
|
|
1475
|
+
FileMd: string;
|
|
1476
|
+
CalendarDots: string;
|
|
1477
|
+
Barn: string;
|
|
1478
|
+
Beanie: string;
|
|
1479
|
+
Cricket: string;
|
|
1480
|
+
CaretLineDown: string;
|
|
1481
|
+
Empty: string;
|
|
1482
|
+
City: string;
|
|
1483
|
+
BuildingApartment: string;
|
|
1484
|
+
FireTruck: string;
|
|
1485
|
+
FileTxt: string;
|
|
1486
|
+
Cigarette: string;
|
|
1487
|
+
ColumnsPlusLeft: string;
|
|
1488
|
+
DeviceRotate: string;
|
|
1489
|
+
CableCar: string;
|
|
1490
|
+
CalendarSlash: string;
|
|
1491
|
+
FileIni: string;
|
|
1492
|
+
TeaBag: string;
|
|
1493
|
+
Farm: string;
|
|
1494
|
+
Clover: string;
|
|
1495
|
+
DeviceMobileSlash: string;
|
|
1496
|
+
Ambulance: string;
|
|
1497
|
+
Bread: string;
|
|
1498
|
+
Blueprint: string;
|
|
1499
|
+
DropSimple: string;
|
|
1500
|
+
FileCSharp: string;
|
|
1501
|
+
Angle: string;
|
|
1502
|
+
Desk: string;
|
|
1503
|
+
CowboyHat: string;
|
|
1504
|
+
ClockUser: string;
|
|
1505
|
+
CardsThree: string;
|
|
1506
|
+
ApproximateEquals: string;
|
|
1507
|
+
CellTower: string;
|
|
1508
|
+
BeachBall: string;
|
|
1509
|
+
Bomb: string;
|
|
1510
|
+
ChatSlash: string;
|
|
1511
|
+
Biohazard: string;
|
|
1512
|
+
FileC: string;
|
|
1513
|
+
FourK: string;
|
|
1514
|
+
Boules: string;
|
|
1515
|
+
BoxArrowDown: string;
|
|
1516
|
+
FootballHelmet: string;
|
|
1517
|
+
FunnelX: string;
|
|
1518
|
+
FilePy: string;
|
|
1519
|
+
CrownCross: string;
|
|
1520
|
+
Belt: string;
|
|
1521
|
+
Bulldozer: string;
|
|
1522
|
+
ExclamationMark: string;
|
|
1523
|
+
CarBattery: string;
|
|
1524
|
+
BabyCarriage: string;
|
|
1525
|
+
CalendarStar: string;
|
|
1526
|
+
CompassRose: string;
|
|
1527
|
+
FunnelSimpleX: string;
|
|
1528
|
+
TextSubscript: string;
|
|
1529
|
+
ChatCenteredSlash: string;
|
|
1530
|
+
Eyes: string;
|
|
1531
|
+
AirplaneTaxiing: string;
|
|
1532
|
+
ChefHat: string;
|
|
1533
|
+
Acorn: string;
|
|
1534
|
+
BuildingOffice: string;
|
|
1535
|
+
Crane: string;
|
|
1536
|
+
Dresser: string;
|
|
1537
|
+
DiscoBall: string;
|
|
1538
|
+
ChatTeardropSlash: string;
|
|
1539
|
+
BoxArrowUp: string;
|
|
1540
|
+
TextTSlash: string;
|
|
1541
|
+
BoxingGlove: string;
|
|
1542
|
+
CaretLineUp: string;
|
|
1543
|
+
Drone: string;
|
|
1544
|
+
AddressBookTabs: string;
|
|
1545
|
+
Axe: string;
|
|
1546
|
+
Binary: string;
|
|
1547
|
+
Cheers: string;
|
|
1548
|
+
TextSuperscript: string;
|
|
1549
|
+
CalendarMinus: string;
|
|
1550
|
+
BowlingBall: string;
|
|
1551
|
+
CalendarHeart: string;
|
|
1552
|
+
Checkerboard: string;
|
|
1553
|
+
Avocado: string;
|
|
1554
|
+
ChatCircleSlash: string;
|
|
1555
|
+
Cheese: string;
|
|
1556
|
+
CaretLineLeft: string;
|
|
1557
|
+
FlagBannerFold: string;
|
|
1558
|
+
BowlSteam: string;
|
|
1559
|
+
CourtBasketball: string;
|
|
1560
|
+
SupersetProperOf: string;
|
|
1561
|
+
BookUser: string;
|
|
1562
|
+
Building: string;
|
|
1563
|
+
BaseballHelmet: string;
|
|
1564
|
+
Cherries: string;
|
|
1565
|
+
FalloutShelter: string;
|
|
1566
|
+
CoffeeBean: string;
|
|
1567
|
+
FlipHorizontal: string;
|
|
1568
|
+
CaretLineRight: string;
|
|
1299
1569
|
};
|
|
1300
1570
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1301
1571
|
size: {
|
|
@@ -335,7 +335,7 @@ export default defineComponent({
|
|
|
335
335
|
type: String,
|
|
336
336
|
default: "en",
|
|
337
337
|
validator: (value) => {
|
|
338
|
-
return ["en", "fr"].includes(value);
|
|
338
|
+
return ["en", "fr", "es"].includes(value);
|
|
339
339
|
}
|
|
340
340
|
},
|
|
341
341
|
loader_text: { type: Array, default: null },
|
|
@@ -387,25 +387,25 @@ export default defineComponent({
|
|
|
387
387
|
});
|
|
388
388
|
const getEmptyMsg = computed(() => {
|
|
389
389
|
if (props.empty_msg === null) {
|
|
390
|
-
return props.lang === "fr" ? "Aucune S\xE9lection" : "No Selection";
|
|
390
|
+
return props.lang === "fr" ? "Aucune S\xE9lection" : props.lang === "es" ? "Ninguna selecci\xF3n" : "No Selection";
|
|
391
391
|
} else
|
|
392
392
|
return props.empty_msg;
|
|
393
393
|
});
|
|
394
394
|
const getLoaderText = computed(() => {
|
|
395
395
|
if (props.loader_text === null) {
|
|
396
|
-
return props.lang === "fr" ? ["Chargement...", "Veuillez patienter"] : ["Loading...", "Please wait"];
|
|
396
|
+
return props.lang === "fr" ? ["Chargement...", "Veuillez patienter"] : props.lang === "es" ? ["Cargando...", "Espere, por favor"] : ["Loading...", "Please wait"];
|
|
397
397
|
} else
|
|
398
398
|
return props.loader_text;
|
|
399
399
|
});
|
|
400
400
|
const getPlaceholder = computed(() => {
|
|
401
401
|
if (props.filter_placeholder === null) {
|
|
402
|
-
return props.lang === "fr" ? "Rechercher une option..." : "Search options...";
|
|
402
|
+
return props.lang === "fr" ? "Rechercher une option..." : props.lang === "es" ? "Buscar una opci\xF3n..." : "Search options...";
|
|
403
403
|
} else
|
|
404
404
|
return props.filter_placeholder;
|
|
405
405
|
});
|
|
406
406
|
const getEmptyContentMsg = computed(() => {
|
|
407
407
|
if (props.empty_content_msg === null) {
|
|
408
|
-
return props.lang === "fr" ? "Aucun contenu n'a \xE9t\xE9 trouv\xE9" : "No content was found";
|
|
408
|
+
return props.lang === "fr" ? "Aucun contenu n'a \xE9t\xE9 trouv\xE9" : props.lang === "es" ? "Ning\xFAn contenido encontrado" : "No content was found";
|
|
409
409
|
} else
|
|
410
410
|
return props.empty_content_msg;
|
|
411
411
|
});
|
|
@@ -23,35 +23,41 @@ export default defineComponent({
|
|
|
23
23
|
type: String,
|
|
24
24
|
default: "en",
|
|
25
25
|
validator: (value) => {
|
|
26
|
-
return ["en", "fr"].includes(value);
|
|
26
|
+
return ["en", "fr", "es"].includes(value);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
setup() {
|
|
31
31
|
const noScopeText = {
|
|
32
32
|
en: `You don't have Scopes saved yet. Here's how to create a new scope:`,
|
|
33
|
+
es: `No tienes Scopes salvados. As\xED se crea un nuevo scope: `,
|
|
33
34
|
fr: `Vous n'avez pas encore de scope enregistr\xE9. Voici comment cr\xE9er un nouveau scope:`
|
|
34
35
|
};
|
|
35
36
|
const saveScopeSteps = [
|
|
36
37
|
{
|
|
37
38
|
en: `Switch to \u201CNew Scope Criteria\u201D`,
|
|
39
|
+
es: `Cambiar a "Nuveo Scope Criterio"`,
|
|
38
40
|
fr: `Choisissez l'onglet "Nouveau crit\xE8re scope"`
|
|
39
41
|
},
|
|
40
42
|
{
|
|
41
43
|
en: `Select all the criteria you need`,
|
|
44
|
+
es: `Seleccione todos los criterios que necesite`,
|
|
42
45
|
fr: `S\xE9lectionnez les crit\xE8res dont vous avez besoin`
|
|
43
46
|
},
|
|
44
47
|
{
|
|
45
48
|
en: `Click on \u201CSave and continue\u201D at the top right of your screen`,
|
|
49
|
+
es: `Haga clic en "Salvar y continuar" en la parte superior derecha de la pantalla.`,
|
|
46
50
|
fr: `Cliquez sur "Sauvegarder et continuer" en haut \xE0 droite de votre \xE9cran`
|
|
47
51
|
},
|
|
48
52
|
{
|
|
49
53
|
en: `Fill the form with the information you need and click on \u201CSave scope and continue\u201D`,
|
|
54
|
+
es: `Rellene el formulario con la informaci\xF3n que necesita y haga clic en "Salvar scope y continuar"`,
|
|
50
55
|
fr: `Remplissez le formulaire avec vos informations et cliquez sur "Sauvegarder le scope et continuer"`
|
|
51
56
|
}
|
|
52
57
|
];
|
|
53
58
|
const noScopeEnd = {
|
|
54
59
|
en: `And that\u2019s it ! Your scope will be saved and you will be able to recover it next time you connect !`,
|
|
60
|
+
es: `Ya est\xE1 ! Su scope quedar\xE1 guardado y podr\xE1 recuperarlo la pr\xF3xima vez que se conecte.`,
|
|
55
61
|
fr: `Et c'est tout ! Votre scope sera sauvegard\xE9 et vous pourrez le retrouver lors de vos prochaines connexions !`
|
|
56
62
|
};
|
|
57
63
|
return {
|
|
@@ -7,14 +7,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
}, {
|
|
8
8
|
noScopeText: {
|
|
9
9
|
en: string;
|
|
10
|
+
es: string;
|
|
10
11
|
fr: string;
|
|
11
12
|
};
|
|
12
13
|
saveScopeSteps: {
|
|
13
14
|
en: string;
|
|
15
|
+
es: string;
|
|
14
16
|
fr: string;
|
|
15
17
|
}[];
|
|
16
18
|
noScopeEnd: {
|
|
17
19
|
en: string;
|
|
20
|
+
es: string;
|
|
18
21
|
fr: string;
|
|
19
22
|
};
|
|
20
23
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
{{
|
|
14
14
|
lang === "fr"
|
|
15
15
|
? "Appliquer un scope existant"
|
|
16
|
+
: lang === "es"
|
|
17
|
+
? "Aplicar un scope existente"
|
|
16
18
|
: "Apply an existing scope"
|
|
17
19
|
}}
|
|
18
20
|
</p>
|
|
@@ -31,7 +33,13 @@
|
|
|
31
33
|
size="m"
|
|
32
34
|
full-width
|
|
33
35
|
@onClick="selectScope"
|
|
34
|
-
>{{
|
|
36
|
+
>{{
|
|
37
|
+
lang === "fr"
|
|
38
|
+
? "Appliquer le scope"
|
|
39
|
+
: lang === "es"
|
|
40
|
+
? "Aplicar el scope"
|
|
41
|
+
: "Apply scope"
|
|
42
|
+
}}</arg-btn
|
|
35
43
|
>
|
|
36
44
|
<div
|
|
37
45
|
v-if="scopeArray.length > 0"
|
|
@@ -46,7 +54,13 @@
|
|
|
46
54
|
size="m"
|
|
47
55
|
full-width
|
|
48
56
|
@onClick="createNewScope"
|
|
49
|
-
>{{
|
|
57
|
+
>{{
|
|
58
|
+
lang === "fr"
|
|
59
|
+
? "+ Nouveau scope"
|
|
60
|
+
: lang === "es"
|
|
61
|
+
? "+ Nuevo scope"
|
|
62
|
+
: "+ New scope"
|
|
63
|
+
}}</arg-btn
|
|
50
64
|
>
|
|
51
65
|
</div>
|
|
52
66
|
</div>
|
|
@@ -69,7 +83,7 @@ export default defineComponent({
|
|
|
69
83
|
type: String,
|
|
70
84
|
default: "en",
|
|
71
85
|
validator: (value) => {
|
|
72
|
-
return ["en", "fr"].includes(value);
|
|
86
|
+
return ["en", "fr", "es"].includes(value);
|
|
73
87
|
}
|
|
74
88
|
},
|
|
75
89
|
scopeArray: {
|
|
@@ -83,6 +97,8 @@ export default defineComponent({
|
|
|
83
97
|
const getNoScopeMsg = computed(() => {
|
|
84
98
|
if (props.lang === "en") {
|
|
85
99
|
return `You need to select your scope to view any results or data. Please choose one of the options below to proceed.`;
|
|
100
|
+
} else if (props.lang === "es") {
|
|
101
|
+
return `Debe seleccionar su scope para ver los resultados o los datos. Elija una de las opciones siguientes para continuar.`;
|
|
86
102
|
} else
|
|
87
103
|
return `Vous devez s\xE9lectionner votre scope pour voir les r\xE9sultats ou donn\xE9es. Veuillez choisir une des options ci-dessous pour continuer`;
|
|
88
104
|
});
|
|
@@ -9,7 +9,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
9
|
default: () => never[];
|
|
10
10
|
};
|
|
11
11
|
}, {
|
|
12
|
-
getNoScopeMsg: import("vue").ComputedRef<"You need to select your scope to view any results or data. Please choose one of the options below to proceed." | "Vous devez sélectionner votre scope pour voir les résultats ou données. Veuillez choisir une des options ci-dessous pour continuer">;
|
|
12
|
+
getNoScopeMsg: import("vue").ComputedRef<"You need to select your scope to view any results or data. Please choose one of the options below to proceed." | "Debe seleccionar su scope para ver los resultados o los datos. Elija una de las opciones siguientes para continuar." | "Vous devez sélectionner votre scope pour voir les résultats ou données. Veuillez choisir une des options ci-dessous pour continuer">;
|
|
13
13
|
selectedScope: import("vue").Ref<any>;
|
|
14
14
|
selectScope: () => void;
|
|
15
15
|
createNewScope: () => void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="scope_change_display">
|
|
3
|
-
<arg-btn btn-style="primary-fill" @onClick="changeDisplay()">
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
<arg-btn btn-style="primary-fill" @onClick="changeDisplay()">
|
|
4
|
+
<slot v-if="custom" />
|
|
5
|
+
<p v-else>{{ getTitle }}</p></arg-btn
|
|
6
|
+
>
|
|
6
7
|
<div
|
|
7
8
|
:style="
|
|
8
9
|
isDisplay === false || scopes.length === 0 ? 'display : none' : ''
|
|
@@ -17,7 +18,30 @@
|
|
|
17
18
|
full-width
|
|
18
19
|
@onClick="newScope()"
|
|
19
20
|
prefix-icon="PlusCircle"
|
|
20
|
-
>{{
|
|
21
|
+
>{{
|
|
22
|
+
lang === "fr"
|
|
23
|
+
? "Nouveau scope"
|
|
24
|
+
: lang === "es"
|
|
25
|
+
? "Nuevo scope"
|
|
26
|
+
: "New scope"
|
|
27
|
+
}}</arg-btn
|
|
28
|
+
>
|
|
29
|
+
<arg-btn
|
|
30
|
+
v-if="clear"
|
|
31
|
+
btn-style="warning-stroke"
|
|
32
|
+
class="my-4"
|
|
33
|
+
full-width
|
|
34
|
+
@onClick="clearScope()"
|
|
35
|
+
prefix-icon="XCircle"
|
|
36
|
+
>{{
|
|
37
|
+
clearMsg !== null
|
|
38
|
+
? clearMsg
|
|
39
|
+
: lang === "fr"
|
|
40
|
+
? "Effacer scope"
|
|
41
|
+
: lang === "es"
|
|
42
|
+
? "Borrar scope"
|
|
43
|
+
: "Clear scope"
|
|
44
|
+
}}</arg-btn
|
|
21
45
|
>
|
|
22
46
|
<div
|
|
23
47
|
v-for="(element, index) of scopes"
|
|
@@ -72,15 +96,27 @@ export default defineComponent({
|
|
|
72
96
|
type: String,
|
|
73
97
|
default: "en",
|
|
74
98
|
validator: (value) => {
|
|
75
|
-
return ["en", "fr"].includes(value);
|
|
99
|
+
return ["en", "fr", "es"].includes(value);
|
|
76
100
|
}
|
|
77
101
|
},
|
|
78
102
|
createNew: {
|
|
79
103
|
type: Boolean,
|
|
80
104
|
default: true
|
|
105
|
+
},
|
|
106
|
+
custom: {
|
|
107
|
+
type: Boolean,
|
|
108
|
+
default: false
|
|
109
|
+
},
|
|
110
|
+
clear: {
|
|
111
|
+
type: Boolean,
|
|
112
|
+
default: false
|
|
113
|
+
},
|
|
114
|
+
clearMsg: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: null
|
|
81
117
|
}
|
|
82
118
|
},
|
|
83
|
-
emits: ["changeScope", "update:Scope", "onNewScope"],
|
|
119
|
+
emits: ["changeScope", "update:Scope", "onNewScope", "onClear"],
|
|
84
120
|
setup(props, { emit }) {
|
|
85
121
|
const isDisplay = ref(false);
|
|
86
122
|
const selectedScope = ref(null);
|
|
@@ -94,12 +130,13 @@ export default defineComponent({
|
|
|
94
130
|
(new_scopes) => {
|
|
95
131
|
if (new_scopes !== null) {
|
|
96
132
|
selectedScope.value = new_scopes;
|
|
97
|
-
}
|
|
133
|
+
} else
|
|
134
|
+
selectedScope.value = null;
|
|
98
135
|
}
|
|
99
136
|
);
|
|
100
137
|
const getTitle = computed(() => {
|
|
101
138
|
if (props.scopes.length > 0) {
|
|
102
|
-
return props.lang === "en" ? "
|
|
139
|
+
return props.lang === "en" ? "My scope" : "Mon scope";
|
|
103
140
|
} else
|
|
104
141
|
return props.lang === "en" ? "New scope" : "Nouveau scope";
|
|
105
142
|
});
|
|
@@ -129,6 +166,9 @@ export default defineComponent({
|
|
|
129
166
|
function newScope() {
|
|
130
167
|
emit("onNewScope");
|
|
131
168
|
}
|
|
169
|
+
function clearScope() {
|
|
170
|
+
emit("onClear");
|
|
171
|
+
}
|
|
132
172
|
onUnmounted(() => {
|
|
133
173
|
document?.removeEventListener("click", closeDropdown);
|
|
134
174
|
});
|
|
@@ -139,12 +179,13 @@ export default defineComponent({
|
|
|
139
179
|
getTitle,
|
|
140
180
|
selectScope,
|
|
141
181
|
selectedScope,
|
|
142
|
-
newScope
|
|
182
|
+
newScope,
|
|
183
|
+
clearScope
|
|
143
184
|
};
|
|
144
185
|
}
|
|
145
186
|
});
|
|
146
187
|
</script>
|
|
147
188
|
|
|
148
189
|
<style scoped>
|
|
149
|
-
.scope_select_dropdown_block{background:var(--demi-fond);border:1.5px solid var(--light);border-radius:12px;box-shadow:var(--overlay-shadow);display:flex;flex-direction:column;
|
|
190
|
+
.scope_select_dropdown_block{background:var(--demi-fond);border:1.5px solid var(--light);border-radius:12px;box-shadow:var(--overlay-shadow);display:flex;flex-direction:column;left:-50%;margin-top:15px;padding:16px;position:absolute;right:-50%;width:-moz-max-content;width:max-content;z-index:99!important}.scope_change_display{position:relative}.oip_select_complex_selection_loop>svg.add{color:var(--primary)!important}.oip_select_complex_selection_loop.disabled_option:hover svg,.oip_select_complex_selection_loop>svg.disable{color:var(--darkest)!important}.oip_select_complex_selection_loop:hover>svg.add{color:var(--primary-hover)!important}.oip_select_complex_selection_loop:hover svg{color:var(--primary)!important}.oip_select_complex_selection_loop .add{font-weight:700!important}.oip_select_complex_selection_loop:hover{background:rgba(33,118,255,.05)!important;border-radius:4px!important}.oip_select_complex_selection_loop{padding:2px 4px}.oip_select_complex_selection_loop.disabled_option:hover{background:transparent!important}.oip_select_complex_selection_loop{margin:4px 0!important}svg.add{flex-shrink:0}.my-4{margin:4px 0}.full_width{width:100%}
|
|
150
191
|
</style>
|
|
@@ -30,15 +30,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
type: BooleanConstructor;
|
|
31
31
|
default: boolean;
|
|
32
32
|
};
|
|
33
|
+
custom: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
clear: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
clearMsg: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: null;
|
|
44
|
+
};
|
|
33
45
|
}, {
|
|
34
46
|
isDisplay: import("vue").Ref<boolean>;
|
|
35
47
|
closeDropdown: () => void;
|
|
36
48
|
changeDisplay: () => void;
|
|
37
|
-
getTitle: import("vue").ComputedRef<"
|
|
49
|
+
getTitle: import("vue").ComputedRef<"Mon scope" | "My scope" | "New scope" | "Nouveau scope">;
|
|
38
50
|
selectScope: (scope: any) => void;
|
|
39
51
|
selectedScope: import("vue").Ref<any>;
|
|
40
52
|
newScope: () => void;
|
|
41
|
-
|
|
53
|
+
clearScope: () => void;
|
|
54
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Scope" | "changeScope" | "onNewScope" | "onClear")[], "update:Scope" | "changeScope" | "onNewScope" | "onClear", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
55
|
scopes: {
|
|
43
56
|
type: {
|
|
44
57
|
(arrayLength: number): string[];
|
|
@@ -70,13 +83,29 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
83
|
type: BooleanConstructor;
|
|
71
84
|
default: boolean;
|
|
72
85
|
};
|
|
86
|
+
custom: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
clear: {
|
|
91
|
+
type: BooleanConstructor;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
clearMsg: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: null;
|
|
97
|
+
};
|
|
73
98
|
}>> & {
|
|
74
99
|
"onUpdate:Scope"?: ((...args: any[]) => any) | undefined;
|
|
75
100
|
onChangeScope?: ((...args: any[]) => any) | undefined;
|
|
76
101
|
onOnNewScope?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
onOnClear?: ((...args: any[]) => any) | undefined;
|
|
77
103
|
}, {
|
|
104
|
+
clear: boolean;
|
|
78
105
|
lang: string;
|
|
106
|
+
clearMsg: string;
|
|
79
107
|
active_scope: Record<string, any>;
|
|
80
108
|
createNew: boolean;
|
|
109
|
+
custom: boolean;
|
|
81
110
|
}, {}>;
|
|
82
111
|
export default _default;
|