@tekkare/auriga 0.1.115 → 0.1.117

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.
@@ -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: {
@@ -1,8 +1,9 @@
1
1
  <template>
2
2
  <div class="scope_change_display">
3
- <arg-btn btn-style="primary-fill" @onClick="changeDisplay()">{{
4
- getTitle
5
- }}</arg-btn>
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' : ''
@@ -19,6 +20,21 @@
19
20
  prefix-icon="PlusCircle"
20
21
  >{{ lang === "fr" ? "Nouveau scope" : "New scope" }}</arg-btn
21
22
  >
23
+ <arg-btn
24
+ v-if="clear"
25
+ btn-style="warning-stroke"
26
+ class="my-4"
27
+ full-width
28
+ @onClick="clearScope()"
29
+ prefix-icon="XCircle"
30
+ >{{
31
+ clearMsg !== null
32
+ ? clearMsg
33
+ : lang === "fr"
34
+ ? "Effacer scope"
35
+ : "Clear scope"
36
+ }}</arg-btn
37
+ >
22
38
  <div
23
39
  v-for="(element, index) of scopes"
24
40
  :key="index"
@@ -78,9 +94,21 @@ export default defineComponent({
78
94
  createNew: {
79
95
  type: Boolean,
80
96
  default: true
97
+ },
98
+ custom: {
99
+ type: Boolean,
100
+ default: false
101
+ },
102
+ clear: {
103
+ type: Boolean,
104
+ default: false
105
+ },
106
+ clearMsg: {
107
+ type: String,
108
+ default: null
81
109
  }
82
110
  },
83
- emits: ["changeScope", "update:Scope", "onNewScope"],
111
+ emits: ["changeScope", "update:Scope", "onNewScope", "onClear"],
84
112
  setup(props, { emit }) {
85
113
  const isDisplay = ref(false);
86
114
  const selectedScope = ref(null);
@@ -94,12 +122,13 @@ export default defineComponent({
94
122
  (new_scopes) => {
95
123
  if (new_scopes !== null) {
96
124
  selectedScope.value = new_scopes;
97
- }
125
+ } else
126
+ selectedScope.value = null;
98
127
  }
99
128
  );
100
129
  const getTitle = computed(() => {
101
130
  if (props.scopes.length > 0) {
102
- return props.lang === "en" ? "Change scope" : "Changer de scope";
131
+ return props.lang === "en" ? "My scope" : "Mon scope";
103
132
  } else
104
133
  return props.lang === "en" ? "New scope" : "Nouveau scope";
105
134
  });
@@ -129,6 +158,9 @@ export default defineComponent({
129
158
  function newScope() {
130
159
  emit("onNewScope");
131
160
  }
161
+ function clearScope() {
162
+ emit("onClear");
163
+ }
132
164
  onUnmounted(() => {
133
165
  document?.removeEventListener("click", closeDropdown);
134
166
  });
@@ -139,12 +171,13 @@ export default defineComponent({
139
171
  getTitle,
140
172
  selectScope,
141
173
  selectedScope,
142
- newScope
174
+ newScope,
175
+ clearScope
143
176
  };
144
177
  }
145
178
  });
146
179
  </script>
147
180
 
148
181
  <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;margin-left:-22px;margin-top:15px;padding:16px;position:absolute;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%}
182
+ .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
183
  </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<"Change scope" | "Changer de scope" | "New scope" | "Nouveau scope">;
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
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:Scope" | "changeScope" | "onNewScope")[], "update:Scope" | "changeScope" | "onNewScope", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/auriga",
3
- "version": "0.1.115",
3
+ "version": "0.1.117",
4
4
  "description": "Aurgia is a UI kit developped by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",