@aurodesignsystem/auro-tail 1.0.0-rc-7.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.
@@ -0,0 +1,699 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/assets/badges/OneWorld.js",
8
+ "declarations": [
9
+ {
10
+ "kind": "function",
11
+ "name": "OneWorld"
12
+ }
13
+ ],
14
+ "exports": [
15
+ {
16
+ "kind": "js",
17
+ "name": "OneWorld",
18
+ "declaration": {
19
+ "name": "OneWorld",
20
+ "module": "src/assets/badges/OneWorld.js"
21
+ }
22
+ }
23
+ ]
24
+ },
25
+ {
26
+ "kind": "javascript-module",
27
+ "path": "src/auro-tail-group.js",
28
+ "declarations": [
29
+ {
30
+ "kind": "class",
31
+ "description": "",
32
+ "name": "AuroTailGroup",
33
+ "members": [
34
+ {
35
+ "kind": "method",
36
+ "name": "#setDefaults",
37
+ "privacy": "private"
38
+ },
39
+ {
40
+ "kind": "method",
41
+ "name": "handleSlotChange",
42
+ "description": "Handle slot changes to update tails.",
43
+ "privacy": "private"
44
+ },
45
+ {
46
+ "kind": "field",
47
+ "name": "isAuroTailGroup",
48
+ "type": {
49
+ "text": "boolean"
50
+ },
51
+ "static": true,
52
+ "default": "true",
53
+ "description": "Identifies this element as an auro-tail-group.\nUsed by auro-tail to identify when it's inside an auro-tail-group.",
54
+ "privacy": "private"
55
+ },
56
+ {
57
+ "kind": "field",
58
+ "name": "layout",
59
+ "privacy": "public",
60
+ "type": {
61
+ "text": "'horizontal' | 'diagonal'"
62
+ },
63
+ "description": "Sets the layout direction for the group.",
64
+ "default": "'horizontal'",
65
+ "attribute": "layout",
66
+ "reflects": true
67
+ },
68
+ {
69
+ "kind": "method",
70
+ "name": "register",
71
+ "static": true,
72
+ "parameters": [
73
+ {
74
+ "name": "name",
75
+ "default": "\"auro-tail-group\"",
76
+ "description": "The name of element that you want to register to.",
77
+ "optional": true,
78
+ "type": {
79
+ "text": "string"
80
+ }
81
+ }
82
+ ],
83
+ "description": "This will register this element with the browser.",
84
+ "type": {
85
+ "text": "register(name?: string = \"auro-tail-group\") => void"
86
+ }
87
+ },
88
+ {
89
+ "kind": "field",
90
+ "name": "runtimeUtils",
91
+ "privacy": "private",
92
+ "default": "new AuroLibraryRuntimeUtils()"
93
+ },
94
+ {
95
+ "kind": "field",
96
+ "name": "size",
97
+ "privacy": "public",
98
+ "type": {
99
+ "text": "'xs' | 'sm' | 'md' | 'lg'"
100
+ },
101
+ "description": "Sets the size for all child tails in the group.",
102
+ "default": "'lg'",
103
+ "attribute": "size",
104
+ "reflects": true
105
+ },
106
+ {
107
+ "kind": "method",
108
+ "name": "updateChildTails",
109
+ "description": "Updates the size of child tails to match the group size.",
110
+ "privacy": "private"
111
+ }
112
+ ],
113
+ "attributes": [
114
+ {
115
+ "name": "layout",
116
+ "type": {
117
+ "text": "'horizontal' | 'diagonal'"
118
+ },
119
+ "description": "Sets the layout direction for the group.",
120
+ "default": "'horizontal'",
121
+ "fieldName": "layout"
122
+ },
123
+ {
124
+ "name": "size",
125
+ "type": {
126
+ "text": "'xs' | 'sm' | 'md' | 'lg'"
127
+ },
128
+ "description": "Sets the size for all child tails in the group.",
129
+ "default": "'lg'",
130
+ "fieldName": "size"
131
+ }
132
+ ],
133
+ "superclass": {
134
+ "name": "LitElement",
135
+ "package": "lit"
136
+ },
137
+ "tagName": "auro-tail-group",
138
+ "customElement": true,
139
+ "modulePath": "src/auro-tail-group.js"
140
+ }
141
+ ],
142
+ "exports": [
143
+ {
144
+ "kind": "js",
145
+ "name": "AuroTailGroup",
146
+ "declaration": {
147
+ "name": "AuroTailGroup",
148
+ "module": "src/auro-tail-group.js"
149
+ }
150
+ }
151
+ ]
152
+ },
153
+ {
154
+ "kind": "javascript-module",
155
+ "path": "src/auro-tail.js",
156
+ "declarations": [
157
+ {
158
+ "kind": "class",
159
+ "description": "",
160
+ "name": "AuroTail",
161
+ "members": [
162
+ {
163
+ "kind": "field",
164
+ "name": "_carrierType",
165
+ "type": {
166
+ "text": "string"
167
+ },
168
+ "description": "Determines the carrier type based on tail code. Valid values: `aag`, `oa`\nUsed internally for styling.",
169
+ "privacy": "private",
170
+ "default": "'oa'"
171
+ },
172
+ {
173
+ "kind": "method",
174
+ "name": "_findParentGroup",
175
+ "description": "Finds the parent tail group element.",
176
+ "privacy": "private",
177
+ "return": {
178
+ "type": {
179
+ "text": "HTMLElement|null"
180
+ }
181
+ }
182
+ },
183
+ {
184
+ "kind": "method",
185
+ "name": "#setDefaults",
186
+ "privacy": "private"
187
+ },
188
+ {
189
+ "kind": "field",
190
+ "name": "badge",
191
+ "privacy": "public",
192
+ "type": {
193
+ "text": "string"
194
+ },
195
+ "description": "Sets the badge type to display (e.g., `oneworld`).",
196
+ "attribute": "badge"
197
+ },
198
+ {
199
+ "kind": "field",
200
+ "name": "badgeConfig",
201
+ "description": "Returns badge config when eligible.",
202
+ "privacy": "private",
203
+ "return": {
204
+ "type": {
205
+ "text": "BadgeConfig | undefined"
206
+ }
207
+ },
208
+ "readonly": true
209
+ },
210
+ {
211
+ "kind": "field",
212
+ "name": "carrierType",
213
+ "description": "Gets the carrier type based on the current tail code. Returns `aag` or `oa`",
214
+ "privacy": "private",
215
+ "return": {
216
+ "type": {
217
+ "text": "string"
218
+ }
219
+ },
220
+ "readonly": true
221
+ },
222
+ {
223
+ "kind": "field",
224
+ "name": "href",
225
+ "privacy": "public",
226
+ "type": {
227
+ "text": "string"
228
+ },
229
+ "description": "Sets the href for the tail.",
230
+ "attribute": "href"
231
+ },
232
+ {
233
+ "kind": "field",
234
+ "name": "hyperlinkTag",
235
+ "privacy": "private"
236
+ },
237
+ {
238
+ "kind": "field",
239
+ "name": "iconTag",
240
+ "privacy": "private"
241
+ },
242
+ {
243
+ "kind": "field",
244
+ "name": "isAuroTail",
245
+ "type": {
246
+ "text": "boolean"
247
+ },
248
+ "static": true,
249
+ "default": "true",
250
+ "description": "Identifies this element as an auro-tail.\nUsed by auro-tail-group to identify valid child elements.",
251
+ "privacy": "private"
252
+ },
253
+ {
254
+ "kind": "field",
255
+ "name": "isInDiagonalGroup",
256
+ "description": "Checks if this tail is in a diagonal group layout.",
257
+ "privacy": "private",
258
+ "return": {
259
+ "type": {
260
+ "text": "boolean"
261
+ }
262
+ },
263
+ "readonly": true
264
+ },
265
+ {
266
+ "kind": "field",
267
+ "name": "isInGroup",
268
+ "description": "Checks if this tail is inside an auro-tail-group element.",
269
+ "privacy": "private",
270
+ "return": {
271
+ "type": {
272
+ "text": "boolean"
273
+ }
274
+ },
275
+ "readonly": true
276
+ },
277
+ {
278
+ "kind": "field",
279
+ "name": "isInHorizontalGroup",
280
+ "description": "Checks if this tail is in a horizontal group layout.",
281
+ "privacy": "private",
282
+ "return": {
283
+ "type": {
284
+ "text": "boolean"
285
+ }
286
+ },
287
+ "readonly": true
288
+ },
289
+ {
290
+ "kind": "field",
291
+ "name": "labelTypeClass",
292
+ "description": "Gets the appropriate CSS type class based on tail size.",
293
+ "privacy": "private",
294
+ "return": {
295
+ "type": {
296
+ "text": "string"
297
+ }
298
+ },
299
+ "readonly": true
300
+ },
301
+ {
302
+ "kind": "method",
303
+ "name": "register",
304
+ "static": true,
305
+ "parameters": [
306
+ {
307
+ "name": "name",
308
+ "default": "\"auro-tail\"",
309
+ "description": "The name of element that you want to register to.",
310
+ "optional": true,
311
+ "type": {
312
+ "text": "string"
313
+ }
314
+ }
315
+ ],
316
+ "description": "This will register this element with the browser.",
317
+ "type": {
318
+ "text": "register(name?: string = \"auro-tail\") => void"
319
+ }
320
+ },
321
+ {
322
+ "kind": "field",
323
+ "name": "runtimeUtils",
324
+ "privacy": "private",
325
+ "default": "new AuroLibraryRuntimeUtils()"
326
+ },
327
+ {
328
+ "kind": "field",
329
+ "name": "shouldShowLink",
330
+ "description": "Checks if the tail should display as a clickable link.",
331
+ "privacy": "private",
332
+ "return": {
333
+ "type": {
334
+ "text": "boolean"
335
+ }
336
+ },
337
+ "readonly": true
338
+ },
339
+ {
340
+ "kind": "field",
341
+ "name": "size",
342
+ "privacy": "public",
343
+ "type": {
344
+ "text": "'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'"
345
+ },
346
+ "description": "Sets the size of the tail.",
347
+ "default": "'lg'",
348
+ "attribute": "size",
349
+ "reflects": true
350
+ },
351
+ {
352
+ "kind": "field",
353
+ "name": "tail",
354
+ "privacy": "public",
355
+ "type": {
356
+ "text": "string"
357
+ },
358
+ "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`).",
359
+ "default": "'AS'",
360
+ "attribute": "tail"
361
+ },
362
+ {
363
+ "kind": "field",
364
+ "name": "variant",
365
+ "privacy": "public",
366
+ "type": {
367
+ "text": "'outline'"
368
+ },
369
+ "description": "Sets the visual variant of the tail.",
370
+ "attribute": "variant",
371
+ "reflects": true
372
+ }
373
+ ],
374
+ "attributes": [
375
+ {
376
+ "name": "badge",
377
+ "type": {
378
+ "text": "string"
379
+ },
380
+ "description": "Sets the badge type to display (e.g., `oneworld`).",
381
+ "fieldName": "badge"
382
+ },
383
+ {
384
+ "name": "href",
385
+ "type": {
386
+ "text": "string"
387
+ },
388
+ "description": "Sets the href for the tail.",
389
+ "fieldName": "href"
390
+ },
391
+ {
392
+ "name": "size",
393
+ "type": {
394
+ "text": "'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'"
395
+ },
396
+ "description": "Sets the size of the tail.",
397
+ "default": "'lg'",
398
+ "fieldName": "size"
399
+ },
400
+ {
401
+ "name": "tail",
402
+ "type": {
403
+ "text": "string"
404
+ },
405
+ "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`).",
406
+ "default": "'AS'",
407
+ "fieldName": "tail"
408
+ },
409
+ {
410
+ "name": "variant",
411
+ "type": {
412
+ "text": "'outline'"
413
+ },
414
+ "description": "Sets the visual variant of the tail.",
415
+ "fieldName": "variant"
416
+ }
417
+ ],
418
+ "superclass": {
419
+ "name": "LitElement",
420
+ "package": "lit"
421
+ },
422
+ "tagName": "auro-tail",
423
+ "customElement": true,
424
+ "modulePath": "src/auro-tail.js"
425
+ }
426
+ ],
427
+ "exports": [
428
+ {
429
+ "kind": "js",
430
+ "name": "AuroTail",
431
+ "declaration": {
432
+ "name": "AuroTail",
433
+ "module": "src/auro-tail.js"
434
+ }
435
+ }
436
+ ]
437
+ },
438
+ {
439
+ "kind": "javascript-module",
440
+ "path": "src/constants.js",
441
+ "declarations": [
442
+ {
443
+ "kind": "variable",
444
+ "name": "ARIA_LABELS",
445
+ "type": {
446
+ "text": "object"
447
+ },
448
+ "default": "{ tailLivery: 'Tail livery', tailLiveryWithBadge: 'Tail livery, {badgeAlt} member' }"
449
+ },
450
+ {
451
+ "kind": "variable",
452
+ "name": "BADGE_LOGOS",
453
+ "type": {
454
+ "text": "object"
455
+ },
456
+ "default": "{ oneworld: { icon: OneWorld, alt: 'OneWorld Alliance', }, }"
457
+ },
458
+ {
459
+ "kind": "variable",
460
+ "name": "BADGES_SIZES",
461
+ "type": {
462
+ "text": "array"
463
+ },
464
+ "default": "['md', 'lg', 'xl', '2xl']"
465
+ },
466
+ {
467
+ "kind": "variable",
468
+ "name": "DEFAULT_AIRLINE_NAME",
469
+ "type": {
470
+ "text": "string"
471
+ },
472
+ "default": "'Airline'"
473
+ },
474
+ {
475
+ "kind": "variable",
476
+ "name": "GROUPS_SIZES",
477
+ "type": {
478
+ "text": "array"
479
+ },
480
+ "default": "['xs', 'sm', 'md', 'lg']"
481
+ },
482
+ {
483
+ "kind": "variable",
484
+ "name": "LINKS_SIZES",
485
+ "type": {
486
+ "text": "array"
487
+ },
488
+ "default": "['md', 'lg', 'xl', '2xl']"
489
+ }
490
+ ],
491
+ "exports": [
492
+ {
493
+ "kind": "js",
494
+ "name": "ARIA_LABELS",
495
+ "declaration": {
496
+ "name": "ARIA_LABELS",
497
+ "module": "src/constants.js"
498
+ }
499
+ },
500
+ {
501
+ "kind": "js",
502
+ "name": "BADGE_LOGOS",
503
+ "declaration": {
504
+ "name": "BADGE_LOGOS",
505
+ "module": "src/constants.js"
506
+ }
507
+ },
508
+ {
509
+ "kind": "js",
510
+ "name": "BADGES_SIZES",
511
+ "declaration": {
512
+ "name": "BADGES_SIZES",
513
+ "module": "src/constants.js"
514
+ }
515
+ },
516
+ {
517
+ "kind": "js",
518
+ "name": "DEFAULT_AIRLINE_NAME",
519
+ "declaration": {
520
+ "name": "DEFAULT_AIRLINE_NAME",
521
+ "module": "src/constants.js"
522
+ }
523
+ },
524
+ {
525
+ "kind": "js",
526
+ "name": "GROUPS_SIZES",
527
+ "declaration": {
528
+ "name": "GROUPS_SIZES",
529
+ "module": "src/constants.js"
530
+ }
531
+ },
532
+ {
533
+ "kind": "js",
534
+ "name": "LINKS_SIZES",
535
+ "declaration": {
536
+ "name": "LINKS_SIZES",
537
+ "module": "src/constants.js"
538
+ }
539
+ }
540
+ ]
541
+ },
542
+ {
543
+ "kind": "javascript-module",
544
+ "path": "src/hyperlinkVersion.js",
545
+ "declarations": [],
546
+ "exports": [
547
+ {
548
+ "kind": "js",
549
+ "name": "default",
550
+ "declaration": {
551
+ "name": "7.1.0",
552
+ "module": "src/hyperlinkVersion.js"
553
+ }
554
+ }
555
+ ]
556
+ },
557
+ {
558
+ "kind": "javascript-module",
559
+ "path": "src/iconVersion.js",
560
+ "declarations": [],
561
+ "exports": [
562
+ {
563
+ "kind": "js",
564
+ "name": "default",
565
+ "declaration": {
566
+ "name": "9.1.1",
567
+ "module": "src/iconVersion.js"
568
+ }
569
+ }
570
+ ]
571
+ },
572
+ {
573
+ "kind": "javascript-module",
574
+ "path": "src/index.js",
575
+ "declarations": [],
576
+ "exports": [
577
+ {
578
+ "kind": "js",
579
+ "name": "AuroTail",
580
+ "declaration": {
581
+ "name": "AuroTail",
582
+ "module": "src/index.js"
583
+ }
584
+ },
585
+ {
586
+ "kind": "js",
587
+ "name": "AuroTailGroup",
588
+ "declaration": {
589
+ "name": "AuroTailGroup",
590
+ "module": "src/index.js"
591
+ }
592
+ }
593
+ ]
594
+ },
595
+ {
596
+ "kind": "javascript-module",
597
+ "path": "src/registered.js",
598
+ "declarations": [],
599
+ "exports": []
600
+ },
601
+ {
602
+ "kind": "javascript-module",
603
+ "path": "src/utils.js",
604
+ "declarations": [
605
+ {
606
+ "kind": "function",
607
+ "name": "i18nTemplate",
608
+ "parameters": [
609
+ {
610
+ "name": "template",
611
+ "description": "The template string with placeholders",
612
+ "type": {
613
+ "text": "string"
614
+ }
615
+ },
616
+ {
617
+ "name": "values",
618
+ "default": "{}",
619
+ "description": "Object with key-value pairs for replacement",
620
+ "type": {
621
+ "text": "Record<string, string>"
622
+ }
623
+ }
624
+ ],
625
+ "description": "Template for internationalization (i18n).\nReplaces placeholders in the format {key} with provided values.",
626
+ "return": {
627
+ "type": {
628
+ "text": "string"
629
+ }
630
+ }
631
+ },
632
+ {
633
+ "kind": "function",
634
+ "name": "isAuroTailElement",
635
+ "parameters": [
636
+ {
637
+ "name": "element",
638
+ "description": "The element to check",
639
+ "type": {
640
+ "text": "Element"
641
+ }
642
+ }
643
+ ],
644
+ "description": "Checks if an element is an AuroTail",
645
+ "return": {
646
+ "type": {
647
+ "text": "boolean"
648
+ }
649
+ }
650
+ },
651
+ {
652
+ "kind": "function",
653
+ "name": "isAuroTailGroupElement",
654
+ "parameters": [
655
+ {
656
+ "name": "element",
657
+ "description": "The element to check",
658
+ "type": {
659
+ "text": "HTMLElement"
660
+ }
661
+ }
662
+ ],
663
+ "description": "Checks if an element is an AuroTailGroup",
664
+ "return": {
665
+ "type": {
666
+ "text": "boolean"
667
+ }
668
+ }
669
+ }
670
+ ],
671
+ "exports": [
672
+ {
673
+ "kind": "js",
674
+ "name": "i18nTemplate",
675
+ "declaration": {
676
+ "name": "i18nTemplate",
677
+ "module": "src/utils.js"
678
+ }
679
+ },
680
+ {
681
+ "kind": "js",
682
+ "name": "isAuroTailElement",
683
+ "declaration": {
684
+ "name": "isAuroTailElement",
685
+ "module": "src/utils.js"
686
+ }
687
+ },
688
+ {
689
+ "kind": "js",
690
+ "name": "isAuroTailGroupElement",
691
+ "declaration": {
692
+ "name": "isAuroTailGroupElement",
693
+ "module": "src/utils.js"
694
+ }
695
+ }
696
+ ]
697
+ }
698
+ ]
699
+ }