@aurodesignsystem-dev/auro-tail 0.0.0-pr6.0

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,1331 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "scripts/wca/auro-tail.js",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "The auro-tail-group element displays multiple auro-tail elements in a grouped layout.",
12
+ "name": "AuroTailGroupWCA",
13
+ "superclass": {
14
+ "name": "AuroTailGroup",
15
+ "module": "/src/auro-tail-group.js"
16
+ },
17
+ "tagName": "auro-tail-group",
18
+ "customElement": true,
19
+ "attributes": [
20
+ {
21
+ "name": "border-color",
22
+ "type": {
23
+ "text": "string | undefined"
24
+ },
25
+ "description": "Sets the border color for all child tails in the group. Does not apply to diagonal layout.",
26
+ "default": "undefined",
27
+ "fieldName": "borderColor",
28
+ "inheritedFrom": {
29
+ "name": "AuroTailGroup",
30
+ "module": "src/auro-tail-group.js"
31
+ }
32
+ },
33
+ {
34
+ "name": "layout",
35
+ "type": {
36
+ "text": "'horizontal' | 'diagonal'"
37
+ },
38
+ "description": "Sets the layout direction for the group.",
39
+ "default": "'horizontal'",
40
+ "fieldName": "layout",
41
+ "inheritedFrom": {
42
+ "name": "AuroTailGroup",
43
+ "module": "src/auro-tail-group.js"
44
+ }
45
+ },
46
+ {
47
+ "name": "size",
48
+ "type": {
49
+ "text": "'xs' | 'sm' | 'md' | 'lg'"
50
+ },
51
+ "description": "Sets the size for all child tails in the group.",
52
+ "default": "'lg'",
53
+ "fieldName": "size",
54
+ "inheritedFrom": {
55
+ "name": "AuroTailGroup",
56
+ "module": "src/auro-tail-group.js"
57
+ }
58
+ }
59
+ ],
60
+ "members": [
61
+ {
62
+ "kind": "field",
63
+ "name": "borderColor",
64
+ "privacy": "public",
65
+ "type": {
66
+ "text": "string | undefined"
67
+ },
68
+ "description": "Sets the border color for all child tails in the group. Does not apply to diagonal layout.",
69
+ "default": "undefined",
70
+ "attribute": "border-color",
71
+ "reflects": true,
72
+ "inheritedFrom": {
73
+ "name": "AuroTailGroup",
74
+ "module": "src/auro-tail-group.js"
75
+ }
76
+ },
77
+ {
78
+ "kind": "method",
79
+ "name": "handleSlotChange",
80
+ "description": "Handle slot changes to update tails.",
81
+ "privacy": "private",
82
+ "inheritedFrom": {
83
+ "name": "AuroTailGroup",
84
+ "module": "src/auro-tail-group.js"
85
+ }
86
+ },
87
+ {
88
+ "kind": "field",
89
+ "name": "layout",
90
+ "privacy": "public",
91
+ "type": {
92
+ "text": "'horizontal' | 'diagonal'"
93
+ },
94
+ "description": "Sets the layout direction for the group.",
95
+ "default": "'horizontal'",
96
+ "attribute": "layout",
97
+ "reflects": true,
98
+ "inheritedFrom": {
99
+ "name": "AuroTailGroup",
100
+ "module": "src/auro-tail-group.js"
101
+ }
102
+ },
103
+ {
104
+ "kind": "method",
105
+ "name": "register",
106
+ "static": true,
107
+ "parameters": [
108
+ {
109
+ "name": "name",
110
+ "default": "\"auro-tail-group\"",
111
+ "description": "The name of element that you want to register to.",
112
+ "optional": true,
113
+ "type": {
114
+ "text": "string"
115
+ }
116
+ }
117
+ ],
118
+ "description": "This will register this element with the browser.",
119
+ "inheritedFrom": {
120
+ "name": "AuroTailGroup",
121
+ "module": "src/auro-tail-group.js"
122
+ }
123
+ },
124
+ {
125
+ "kind": "field",
126
+ "name": "runtimeUtils",
127
+ "privacy": "private",
128
+ "default": "new AuroLibraryRuntimeUtils()",
129
+ "inheritedFrom": {
130
+ "name": "AuroTailGroup",
131
+ "module": "src/auro-tail-group.js"
132
+ }
133
+ },
134
+ {
135
+ "kind": "field",
136
+ "name": "size",
137
+ "privacy": "public",
138
+ "type": {
139
+ "text": "'xs' | 'sm' | 'md' | 'lg'"
140
+ },
141
+ "description": "Sets the size for all child tails in the group.",
142
+ "default": "'lg'",
143
+ "attribute": "size",
144
+ "reflects": true,
145
+ "inheritedFrom": {
146
+ "name": "AuroTailGroup",
147
+ "module": "src/auro-tail-group.js"
148
+ }
149
+ },
150
+ {
151
+ "kind": "method",
152
+ "name": "updateChildTails",
153
+ "description": "Manages child tails - removes excess tails and updates sizes.",
154
+ "privacy": "private",
155
+ "inheritedFrom": {
156
+ "name": "AuroTailGroup",
157
+ "module": "src/auro-tail-group.js"
158
+ }
159
+ }
160
+ ]
161
+ },
162
+ {
163
+ "kind": "class",
164
+ "description": "The auro-tail element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Auro applications.",
165
+ "name": "AuroTailWCA",
166
+ "superclass": {
167
+ "name": "AuroTail",
168
+ "module": "/src/auro-tail.js"
169
+ },
170
+ "tagName": "auro-tail",
171
+ "customElement": true,
172
+ "attributes": [
173
+ {
174
+ "name": "badge",
175
+ "type": {
176
+ "text": "string | undefined"
177
+ },
178
+ "description": "Sets the badge type to display (e.g., 'oneworld').",
179
+ "default": "undefined",
180
+ "fieldName": "badge",
181
+ "inheritedFrom": {
182
+ "name": "AuroTail",
183
+ "module": "src/auro-tail.js"
184
+ }
185
+ },
186
+ {
187
+ "name": "border-color",
188
+ "type": {
189
+ "text": "string | undefined"
190
+ },
191
+ "description": "Sets the border color around the tail.",
192
+ "default": "undefined",
193
+ "fieldName": "borderColor",
194
+ "inheritedFrom": {
195
+ "name": "AuroTail",
196
+ "module": "src/auro-tail.js"
197
+ }
198
+ },
199
+ {
200
+ "name": "border-width",
201
+ "description": "Sets the border width around the tail.",
202
+ "type": {
203
+ "text": "string | undefined"
204
+ },
205
+ "default": "undefined",
206
+ "fieldName": "borderWidth",
207
+ "inheritedFrom": {
208
+ "name": "AuroTail",
209
+ "module": "src/auro-tail.js"
210
+ }
211
+ },
212
+ {
213
+ "name": "href",
214
+ "type": {
215
+ "text": "string | undefined"
216
+ },
217
+ "description": "Sets the href for the tail.",
218
+ "default": "undefined",
219
+ "fieldName": "href",
220
+ "inheritedFrom": {
221
+ "name": "AuroTail",
222
+ "module": "src/auro-tail.js"
223
+ }
224
+ },
225
+ {
226
+ "name": "outline",
227
+ "type": {
228
+ "text": "boolean"
229
+ },
230
+ "description": "Renders the tail with an outline style.",
231
+ "default": "false",
232
+ "fieldName": "outline",
233
+ "inheritedFrom": {
234
+ "name": "AuroTail",
235
+ "module": "src/auro-tail.js"
236
+ }
237
+ },
238
+ {
239
+ "name": "size",
240
+ "type": {
241
+ "text": "'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'"
242
+ },
243
+ "description": "Sets the size of the tail.",
244
+ "default": "'lg'",
245
+ "fieldName": "size",
246
+ "inheritedFrom": {
247
+ "name": "AuroTail",
248
+ "module": "src/auro-tail.js"
249
+ }
250
+ },
251
+ {
252
+ "name": "tail",
253
+ "type": {
254
+ "text": "string"
255
+ },
256
+ "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., AS, HA, PR).",
257
+ "default": "'AS'",
258
+ "fieldName": "tail",
259
+ "inheritedFrom": {
260
+ "name": "AuroTail",
261
+ "module": "src/auro-tail.js"
262
+ }
263
+ }
264
+ ],
265
+ "members": [
266
+ {
267
+ "kind": "method",
268
+ "name": "_handleLinkClick",
269
+ "parameters": [
270
+ {
271
+ "name": "ev",
272
+ "description": "The click event",
273
+ "type": {
274
+ "text": "Event"
275
+ }
276
+ }
277
+ ],
278
+ "description": "Handles clicks on the href prop, invokes optional callback, and\ndispatches a cancelable custom event `href-click`.\n\nIf the event is canceled by a consumer, navigation is prevented.",
279
+ "privacy": "private",
280
+ "inheritedFrom": {
281
+ "name": "AuroTail",
282
+ "module": "src/auro-tail.js"
283
+ }
284
+ },
285
+ {
286
+ "kind": "field",
287
+ "name": "_variant",
288
+ "type": {
289
+ "text": "'aag'|'oa'"
290
+ },
291
+ "description": "Determines the carrier variant based on tail code.\nUsed internally for styling.",
292
+ "privacy": "private",
293
+ "default": "'oa'",
294
+ "inheritedFrom": {
295
+ "name": "AuroTail",
296
+ "module": "src/auro-tail.js"
297
+ }
298
+ },
299
+ {
300
+ "kind": "method",
301
+ "name": "applyCSSProperties",
302
+ "description": "Applies border styles and variant from props to CSS custom properties.",
303
+ "privacy": "private",
304
+ "inheritedFrom": {
305
+ "name": "AuroTail",
306
+ "module": "src/auro-tail.js"
307
+ }
308
+ },
309
+ {
310
+ "kind": "field",
311
+ "name": "badge",
312
+ "privacy": "public",
313
+ "type": {
314
+ "text": "string | undefined"
315
+ },
316
+ "description": "Sets the badge type to display (e.g., 'oneworld').",
317
+ "default": "undefined",
318
+ "attribute": "badge",
319
+ "inheritedFrom": {
320
+ "name": "AuroTail",
321
+ "module": "src/auro-tail.js"
322
+ }
323
+ },
324
+ {
325
+ "kind": "field",
326
+ "name": "badgeConfig",
327
+ "description": "Returns badge config when eligible.",
328
+ "readonly": true,
329
+ "return": {
330
+ "type": {
331
+ "text": "BadgeConfig | undefined"
332
+ }
333
+ },
334
+ "inheritedFrom": {
335
+ "name": "AuroTail",
336
+ "module": "src/auro-tail.js"
337
+ }
338
+ },
339
+ {
340
+ "kind": "field",
341
+ "name": "borderColor",
342
+ "privacy": "public",
343
+ "type": {
344
+ "text": "string | undefined"
345
+ },
346
+ "description": "Sets the border color around the tail.",
347
+ "default": "undefined",
348
+ "attribute": "border-color",
349
+ "reflects": true,
350
+ "inheritedFrom": {
351
+ "name": "AuroTail",
352
+ "module": "src/auro-tail.js"
353
+ }
354
+ },
355
+ {
356
+ "kind": "field",
357
+ "name": "borderWidth",
358
+ "privacy": "public",
359
+ "description": "Sets the border width around the tail.",
360
+ "type": {
361
+ "text": "string | undefined"
362
+ },
363
+ "default": "undefined",
364
+ "attribute": "border-width",
365
+ "reflects": true,
366
+ "inheritedFrom": {
367
+ "name": "AuroTail",
368
+ "module": "src/auro-tail.js"
369
+ }
370
+ },
371
+ {
372
+ "kind": "field",
373
+ "name": "hasBorder",
374
+ "description": "Checks if tail has border properties defined.",
375
+ "readonly": true,
376
+ "return": {
377
+ "type": {
378
+ "text": "boolean"
379
+ }
380
+ },
381
+ "inheritedFrom": {
382
+ "name": "AuroTail",
383
+ "module": "src/auro-tail.js"
384
+ }
385
+ },
386
+ {
387
+ "kind": "field",
388
+ "name": "href",
389
+ "privacy": "public",
390
+ "type": {
391
+ "text": "string | undefined"
392
+ },
393
+ "description": "Sets the href for the tail.",
394
+ "default": "undefined",
395
+ "attribute": "href",
396
+ "inheritedFrom": {
397
+ "name": "AuroTail",
398
+ "module": "src/auro-tail.js"
399
+ }
400
+ },
401
+ {
402
+ "kind": "field",
403
+ "name": "iconTag",
404
+ "privacy": "private",
405
+ "inheritedFrom": {
406
+ "name": "AuroTail",
407
+ "module": "src/auro-tail.js"
408
+ }
409
+ },
410
+ {
411
+ "kind": "field",
412
+ "name": "isInGroup",
413
+ "description": "Checks if this tail is inside an auro-tail-group element.",
414
+ "readonly": true,
415
+ "return": {
416
+ "type": {
417
+ "text": "boolean"
418
+ }
419
+ },
420
+ "inheritedFrom": {
421
+ "name": "AuroTail",
422
+ "module": "src/auro-tail.js"
423
+ }
424
+ },
425
+ {
426
+ "kind": "field",
427
+ "name": "isInHorizontalGroup",
428
+ "description": "Checks if this tail is in a horizontal group layout.",
429
+ "readonly": true,
430
+ "return": {
431
+ "type": {
432
+ "text": "boolean"
433
+ }
434
+ },
435
+ "inheritedFrom": {
436
+ "name": "AuroTail",
437
+ "module": "src/auro-tail.js"
438
+ }
439
+ },
440
+ {
441
+ "kind": "field",
442
+ "name": "labelTypeClass",
443
+ "description": "Gets the appropriate CSS type class based on tail size.",
444
+ "readonly": true,
445
+ "return": {
446
+ "type": {
447
+ "text": "string"
448
+ }
449
+ },
450
+ "inheritedFrom": {
451
+ "name": "AuroTail",
452
+ "module": "src/auro-tail.js"
453
+ }
454
+ },
455
+ {
456
+ "kind": "field",
457
+ "name": "onHrefClick",
458
+ "description": "Optional internal callback invoked on hyperlink click before the custom\nevent is dispatched.",
459
+ "privacy": "private",
460
+ "type": {
461
+ "text": "HrefClickCallback | undefined"
462
+ },
463
+ "default": "undefined",
464
+ "inheritedFrom": {
465
+ "name": "AuroTail",
466
+ "module": "src/auro-tail.js"
467
+ }
468
+ },
469
+ {
470
+ "kind": "field",
471
+ "name": "outline",
472
+ "privacy": "public",
473
+ "type": {
474
+ "text": "boolean"
475
+ },
476
+ "description": "Renders the tail with an outline style.",
477
+ "default": "false",
478
+ "attribute": "outline",
479
+ "reflects": true,
480
+ "inheritedFrom": {
481
+ "name": "AuroTail",
482
+ "module": "src/auro-tail.js"
483
+ }
484
+ },
485
+ {
486
+ "kind": "method",
487
+ "name": "register",
488
+ "static": true,
489
+ "parameters": [
490
+ {
491
+ "name": "name",
492
+ "default": "\"auro-tail\"",
493
+ "description": "The name of element that you want to register to.",
494
+ "optional": true,
495
+ "type": {
496
+ "text": "string"
497
+ }
498
+ }
499
+ ],
500
+ "description": "This will register this element with the browser.",
501
+ "inheritedFrom": {
502
+ "name": "AuroTail",
503
+ "module": "src/auro-tail.js"
504
+ }
505
+ },
506
+ {
507
+ "kind": "field",
508
+ "name": "runtimeUtils",
509
+ "privacy": "private",
510
+ "default": "new AuroLibraryRuntimeUtils()",
511
+ "inheritedFrom": {
512
+ "name": "AuroTail",
513
+ "module": "src/auro-tail.js"
514
+ }
515
+ },
516
+ {
517
+ "kind": "field",
518
+ "name": "shouldShowLink",
519
+ "description": "Checks if the tail should display as a clickable link.",
520
+ "readonly": true,
521
+ "return": {
522
+ "type": {
523
+ "text": "boolean"
524
+ }
525
+ },
526
+ "inheritedFrom": {
527
+ "name": "AuroTail",
528
+ "module": "src/auro-tail.js"
529
+ }
530
+ },
531
+ {
532
+ "kind": "field",
533
+ "name": "size",
534
+ "privacy": "public",
535
+ "type": {
536
+ "text": "'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'"
537
+ },
538
+ "description": "Sets the size of the tail.",
539
+ "default": "'lg'",
540
+ "attribute": "size",
541
+ "reflects": true,
542
+ "inheritedFrom": {
543
+ "name": "AuroTail",
544
+ "module": "src/auro-tail.js"
545
+ }
546
+ },
547
+ {
548
+ "kind": "field",
549
+ "name": "tail",
550
+ "privacy": "public",
551
+ "type": {
552
+ "text": "string"
553
+ },
554
+ "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., AS, HA, PR).",
555
+ "default": "'AS'",
556
+ "attribute": "tail",
557
+ "inheritedFrom": {
558
+ "name": "AuroTail",
559
+ "module": "src/auro-tail.js"
560
+ }
561
+ },
562
+ {
563
+ "kind": "field",
564
+ "name": "variant",
565
+ "description": "Gets the carrier variant based on the current tail code.",
566
+ "readonly": true,
567
+ "return": {
568
+ "type": {
569
+ "text": "'aag'|'oa'"
570
+ }
571
+ },
572
+ "inheritedFrom": {
573
+ "name": "AuroTail",
574
+ "module": "src/auro-tail.js"
575
+ }
576
+ }
577
+ ],
578
+ "events": [
579
+ {
580
+ "name": "href-click",
581
+ "type": {
582
+ "text": "CustomEvent<{ href: string }>"
583
+ },
584
+ "description": "Fired when the auro-hyperlink is clicked.",
585
+ "inheritedFrom": {
586
+ "name": "AuroTail",
587
+ "module": "src/auro-tail.js"
588
+ }
589
+ }
590
+ ]
591
+ }
592
+ ],
593
+ "exports": [
594
+ {
595
+ "kind": "custom-element-definition",
596
+ "name": "auro-tail",
597
+ "declaration": {
598
+ "name": "AuroTailWCA",
599
+ "module": "scripts/wca/auro-tail.js"
600
+ }
601
+ },
602
+ {
603
+ "kind": "custom-element-definition",
604
+ "name": "auro-tail-group",
605
+ "declaration": {
606
+ "name": "AuroTailGroupWCA",
607
+ "module": "scripts/wca/auro-tail.js"
608
+ }
609
+ }
610
+ ]
611
+ },
612
+ {
613
+ "kind": "javascript-module",
614
+ "path": "src/auro-tail-group.js",
615
+ "declarations": [
616
+ {
617
+ "kind": "class",
618
+ "description": "The auro-tail-group element displays multiple auro-tail elements in a grouped layout. When tails are placed within a group, labels/links and badge logos are not displayed, and only two tails can be paired together.",
619
+ "name": "AuroTailGroup",
620
+ "members": [
621
+ {
622
+ "kind": "field",
623
+ "name": "borderColor",
624
+ "privacy": "public",
625
+ "type": {
626
+ "text": "string | undefined"
627
+ },
628
+ "description": "Sets the border color for all child tails in the group. Does not apply to diagonal layout.",
629
+ "default": "undefined",
630
+ "attribute": "border-color",
631
+ "reflects": true
632
+ },
633
+ {
634
+ "kind": "method",
635
+ "name": "handleSlotChange",
636
+ "description": "Handle slot changes to update tails.",
637
+ "privacy": "private"
638
+ },
639
+ {
640
+ "kind": "field",
641
+ "name": "layout",
642
+ "privacy": "public",
643
+ "type": {
644
+ "text": "'horizontal' | 'diagonal'"
645
+ },
646
+ "description": "Sets the layout direction for the group.",
647
+ "default": "'horizontal'",
648
+ "attribute": "layout",
649
+ "reflects": true
650
+ },
651
+ {
652
+ "kind": "method",
653
+ "name": "register",
654
+ "static": true,
655
+ "parameters": [
656
+ {
657
+ "name": "name",
658
+ "default": "\"auro-tail-group\"",
659
+ "description": "The name of element that you want to register to.",
660
+ "optional": true,
661
+ "type": {
662
+ "text": "string"
663
+ }
664
+ }
665
+ ],
666
+ "description": "This will register this element with the browser."
667
+ },
668
+ {
669
+ "kind": "field",
670
+ "name": "runtimeUtils",
671
+ "privacy": "private",
672
+ "default": "new AuroLibraryRuntimeUtils()"
673
+ },
674
+ {
675
+ "kind": "field",
676
+ "name": "size",
677
+ "privacy": "public",
678
+ "type": {
679
+ "text": "'xs' | 'sm' | 'md' | 'lg'"
680
+ },
681
+ "description": "Sets the size for all child tails in the group.",
682
+ "default": "'lg'",
683
+ "attribute": "size",
684
+ "reflects": true
685
+ },
686
+ {
687
+ "kind": "method",
688
+ "name": "updateChildTails",
689
+ "description": "Manages child tails - removes excess tails and updates sizes.",
690
+ "privacy": "private"
691
+ }
692
+ ],
693
+ "attributes": [
694
+ {
695
+ "name": "border-color",
696
+ "type": {
697
+ "text": "string | undefined"
698
+ },
699
+ "description": "Sets the border color for all child tails in the group. Does not apply to diagonal layout.",
700
+ "default": "undefined",
701
+ "fieldName": "borderColor"
702
+ },
703
+ {
704
+ "name": "layout",
705
+ "type": {
706
+ "text": "'horizontal' | 'diagonal'"
707
+ },
708
+ "description": "Sets the layout direction for the group.",
709
+ "default": "'horizontal'",
710
+ "fieldName": "layout"
711
+ },
712
+ {
713
+ "name": "size",
714
+ "type": {
715
+ "text": "'xs' | 'sm' | 'md' | 'lg'"
716
+ },
717
+ "description": "Sets the size for all child tails in the group.",
718
+ "default": "'lg'",
719
+ "fieldName": "size"
720
+ }
721
+ ],
722
+ "superclass": {
723
+ "name": "LitElement",
724
+ "package": "lit"
725
+ },
726
+ "customElement": true
727
+ }
728
+ ],
729
+ "exports": [
730
+ {
731
+ "kind": "js",
732
+ "name": "AuroTailGroup",
733
+ "declaration": {
734
+ "name": "AuroTailGroup",
735
+ "module": "src/auro-tail-group.js"
736
+ }
737
+ }
738
+ ]
739
+ },
740
+ {
741
+ "kind": "javascript-module",
742
+ "path": "src/auro-tail.js",
743
+ "declarations": [
744
+ {
745
+ "kind": "class",
746
+ "description": "The auro-tail element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Auro applications.",
747
+ "name": "AuroTail",
748
+ "members": [
749
+ {
750
+ "kind": "method",
751
+ "name": "_handleLinkClick",
752
+ "parameters": [
753
+ {
754
+ "name": "ev",
755
+ "description": "The click event",
756
+ "type": {
757
+ "text": "Event"
758
+ }
759
+ }
760
+ ],
761
+ "description": "Handles clicks on the href prop, invokes optional callback, and\ndispatches a cancelable custom event `href-click`.\n\nIf the event is canceled by a consumer, navigation is prevented.",
762
+ "privacy": "private"
763
+ },
764
+ {
765
+ "kind": "field",
766
+ "name": "_variant",
767
+ "type": {
768
+ "text": "'aag'|'oa'"
769
+ },
770
+ "description": "Determines the carrier variant based on tail code.\nUsed internally for styling.",
771
+ "privacy": "private",
772
+ "default": "'oa'"
773
+ },
774
+ {
775
+ "kind": "method",
776
+ "name": "applyCSSProperties",
777
+ "description": "Applies border styles and variant from props to CSS custom properties.",
778
+ "privacy": "private"
779
+ },
780
+ {
781
+ "kind": "field",
782
+ "name": "badge",
783
+ "privacy": "public",
784
+ "type": {
785
+ "text": "string | undefined"
786
+ },
787
+ "description": "Sets the badge type to display (e.g., 'oneworld').",
788
+ "default": "undefined",
789
+ "attribute": "badge"
790
+ },
791
+ {
792
+ "kind": "field",
793
+ "name": "badgeConfig",
794
+ "description": "Returns badge config when eligible.",
795
+ "readonly": true,
796
+ "return": {
797
+ "type": {
798
+ "text": "BadgeConfig | undefined"
799
+ }
800
+ }
801
+ },
802
+ {
803
+ "kind": "field",
804
+ "name": "borderColor",
805
+ "privacy": "public",
806
+ "type": {
807
+ "text": "string | undefined"
808
+ },
809
+ "description": "Sets the border color around the tail.",
810
+ "default": "undefined",
811
+ "attribute": "border-color",
812
+ "reflects": true
813
+ },
814
+ {
815
+ "kind": "field",
816
+ "name": "borderWidth",
817
+ "privacy": "public",
818
+ "description": "Sets the border width around the tail.",
819
+ "type": {
820
+ "text": "string | undefined"
821
+ },
822
+ "default": "undefined",
823
+ "attribute": "border-width",
824
+ "reflects": true
825
+ },
826
+ {
827
+ "kind": "field",
828
+ "name": "hasBorder",
829
+ "description": "Checks if tail has border properties defined.",
830
+ "readonly": true,
831
+ "return": {
832
+ "type": {
833
+ "text": "boolean"
834
+ }
835
+ }
836
+ },
837
+ {
838
+ "kind": "field",
839
+ "name": "href",
840
+ "privacy": "public",
841
+ "type": {
842
+ "text": "string | undefined"
843
+ },
844
+ "description": "Sets the href for the tail.",
845
+ "default": "undefined",
846
+ "attribute": "href"
847
+ },
848
+ {
849
+ "kind": "field",
850
+ "name": "iconTag",
851
+ "privacy": "private"
852
+ },
853
+ {
854
+ "kind": "field",
855
+ "name": "isInGroup",
856
+ "description": "Checks if this tail is inside an auro-tail-group element.",
857
+ "readonly": true,
858
+ "return": {
859
+ "type": {
860
+ "text": "boolean"
861
+ }
862
+ }
863
+ },
864
+ {
865
+ "kind": "field",
866
+ "name": "isInHorizontalGroup",
867
+ "description": "Checks if this tail is in a horizontal group layout.",
868
+ "readonly": true,
869
+ "return": {
870
+ "type": {
871
+ "text": "boolean"
872
+ }
873
+ }
874
+ },
875
+ {
876
+ "kind": "field",
877
+ "name": "labelTypeClass",
878
+ "description": "Gets the appropriate CSS type class based on tail size.",
879
+ "readonly": true,
880
+ "return": {
881
+ "type": {
882
+ "text": "string"
883
+ }
884
+ }
885
+ },
886
+ {
887
+ "kind": "field",
888
+ "name": "onHrefClick",
889
+ "description": "Optional internal callback invoked on hyperlink click before the custom\nevent is dispatched.",
890
+ "privacy": "private",
891
+ "type": {
892
+ "text": "HrefClickCallback | undefined"
893
+ },
894
+ "default": "undefined"
895
+ },
896
+ {
897
+ "kind": "field",
898
+ "name": "outline",
899
+ "privacy": "public",
900
+ "type": {
901
+ "text": "boolean"
902
+ },
903
+ "description": "Renders the tail with an outline style.",
904
+ "default": "false",
905
+ "attribute": "outline",
906
+ "reflects": true
907
+ },
908
+ {
909
+ "kind": "method",
910
+ "name": "register",
911
+ "static": true,
912
+ "parameters": [
913
+ {
914
+ "name": "name",
915
+ "default": "\"auro-tail\"",
916
+ "description": "The name of element that you want to register to.",
917
+ "optional": true,
918
+ "type": {
919
+ "text": "string"
920
+ }
921
+ }
922
+ ],
923
+ "description": "This will register this element with the browser."
924
+ },
925
+ {
926
+ "kind": "field",
927
+ "name": "runtimeUtils",
928
+ "privacy": "private",
929
+ "default": "new AuroLibraryRuntimeUtils()"
930
+ },
931
+ {
932
+ "kind": "field",
933
+ "name": "shouldShowLink",
934
+ "description": "Checks if the tail should display as a clickable link.",
935
+ "readonly": true,
936
+ "return": {
937
+ "type": {
938
+ "text": "boolean"
939
+ }
940
+ }
941
+ },
942
+ {
943
+ "kind": "field",
944
+ "name": "size",
945
+ "privacy": "public",
946
+ "type": {
947
+ "text": "'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'"
948
+ },
949
+ "description": "Sets the size of the tail.",
950
+ "default": "'lg'",
951
+ "attribute": "size",
952
+ "reflects": true
953
+ },
954
+ {
955
+ "kind": "field",
956
+ "name": "tail",
957
+ "privacy": "public",
958
+ "type": {
959
+ "text": "string"
960
+ },
961
+ "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., AS, HA, PR).",
962
+ "default": "'AS'",
963
+ "attribute": "tail"
964
+ },
965
+ {
966
+ "kind": "field",
967
+ "name": "variant",
968
+ "description": "Gets the carrier variant based on the current tail code.",
969
+ "readonly": true,
970
+ "return": {
971
+ "type": {
972
+ "text": "'aag'|'oa'"
973
+ }
974
+ }
975
+ }
976
+ ],
977
+ "events": [
978
+ {
979
+ "name": "href-click",
980
+ "type": {
981
+ "text": "CustomEvent<{ href: string }>"
982
+ },
983
+ "description": "Fired when the auro-hyperlink is clicked."
984
+ }
985
+ ],
986
+ "attributes": [
987
+ {
988
+ "name": "badge",
989
+ "type": {
990
+ "text": "string | undefined"
991
+ },
992
+ "description": "Sets the badge type to display (e.g., 'oneworld').",
993
+ "default": "undefined",
994
+ "fieldName": "badge"
995
+ },
996
+ {
997
+ "name": "border-color",
998
+ "type": {
999
+ "text": "string | undefined"
1000
+ },
1001
+ "description": "Sets the border color around the tail.",
1002
+ "default": "undefined",
1003
+ "fieldName": "borderColor"
1004
+ },
1005
+ {
1006
+ "name": "border-width",
1007
+ "description": "Sets the border width around the tail.",
1008
+ "type": {
1009
+ "text": "string | undefined"
1010
+ },
1011
+ "default": "undefined",
1012
+ "fieldName": "borderWidth"
1013
+ },
1014
+ {
1015
+ "name": "href",
1016
+ "type": {
1017
+ "text": "string | undefined"
1018
+ },
1019
+ "description": "Sets the href for the tail.",
1020
+ "default": "undefined",
1021
+ "fieldName": "href"
1022
+ },
1023
+ {
1024
+ "name": "outline",
1025
+ "type": {
1026
+ "text": "boolean"
1027
+ },
1028
+ "description": "Renders the tail with an outline style.",
1029
+ "default": "false",
1030
+ "fieldName": "outline"
1031
+ },
1032
+ {
1033
+ "name": "size",
1034
+ "type": {
1035
+ "text": "'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'"
1036
+ },
1037
+ "description": "Sets the size of the tail.",
1038
+ "default": "'lg'",
1039
+ "fieldName": "size"
1040
+ },
1041
+ {
1042
+ "name": "tail",
1043
+ "type": {
1044
+ "text": "string"
1045
+ },
1046
+ "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., AS, HA, PR).",
1047
+ "default": "'AS'",
1048
+ "fieldName": "tail"
1049
+ }
1050
+ ],
1051
+ "superclass": {
1052
+ "name": "LitElement",
1053
+ "package": "lit"
1054
+ },
1055
+ "customElement": true
1056
+ }
1057
+ ],
1058
+ "exports": [
1059
+ {
1060
+ "kind": "js",
1061
+ "name": "AuroTail",
1062
+ "declaration": {
1063
+ "name": "AuroTail",
1064
+ "module": "src/auro-tail.js"
1065
+ }
1066
+ }
1067
+ ]
1068
+ },
1069
+ {
1070
+ "kind": "javascript-module",
1071
+ "path": "src/constants.js",
1072
+ "declarations": [
1073
+ {
1074
+ "kind": "variable",
1075
+ "name": "ARIA_LABELS",
1076
+ "type": {
1077
+ "text": "object"
1078
+ },
1079
+ "default": "{ tailLivery: 'Tail livery', tailLiveryWithBadge: 'Tail livery, {badgeAlt} member' }"
1080
+ },
1081
+ {
1082
+ "kind": "variable",
1083
+ "name": "BADGE_LOGOS",
1084
+ "type": {
1085
+ "text": "object"
1086
+ },
1087
+ "default": "{ oneworld: { icon: OneWorld, alt: 'OneWorld Alliance', }, }"
1088
+ },
1089
+ {
1090
+ "kind": "variable",
1091
+ "name": "BADGES_SIZES",
1092
+ "type": {
1093
+ "text": "array"
1094
+ },
1095
+ "default": "['md', 'lg', 'xl', '2xl']"
1096
+ },
1097
+ {
1098
+ "kind": "variable",
1099
+ "name": "DEFAULT_AIRLINE_NAME",
1100
+ "type": {
1101
+ "text": "string"
1102
+ },
1103
+ "default": "'Airline'"
1104
+ },
1105
+ {
1106
+ "kind": "variable",
1107
+ "name": "GROUPS_SIZES",
1108
+ "type": {
1109
+ "text": "array"
1110
+ },
1111
+ "default": "['xs', 'sm', 'md', 'lg']"
1112
+ },
1113
+ {
1114
+ "kind": "variable",
1115
+ "name": "LINKS_SIZES",
1116
+ "type": {
1117
+ "text": "array"
1118
+ },
1119
+ "default": "['md', 'lg', 'xl', '2xl']"
1120
+ },
1121
+ {
1122
+ "kind": "variable",
1123
+ "name": "MAX_TAILS_IN_GROUP",
1124
+ "type": {
1125
+ "text": "number"
1126
+ },
1127
+ "default": "2"
1128
+ }
1129
+ ],
1130
+ "exports": [
1131
+ {
1132
+ "kind": "js",
1133
+ "name": "ARIA_LABELS",
1134
+ "declaration": {
1135
+ "name": "ARIA_LABELS",
1136
+ "module": "src/constants.js"
1137
+ }
1138
+ },
1139
+ {
1140
+ "kind": "js",
1141
+ "name": "BADGE_LOGOS",
1142
+ "declaration": {
1143
+ "name": "BADGE_LOGOS",
1144
+ "module": "src/constants.js"
1145
+ }
1146
+ },
1147
+ {
1148
+ "kind": "js",
1149
+ "name": "BADGES_SIZES",
1150
+ "declaration": {
1151
+ "name": "BADGES_SIZES",
1152
+ "module": "src/constants.js"
1153
+ }
1154
+ },
1155
+ {
1156
+ "kind": "js",
1157
+ "name": "DEFAULT_AIRLINE_NAME",
1158
+ "declaration": {
1159
+ "name": "DEFAULT_AIRLINE_NAME",
1160
+ "module": "src/constants.js"
1161
+ }
1162
+ },
1163
+ {
1164
+ "kind": "js",
1165
+ "name": "GROUPS_SIZES",
1166
+ "declaration": {
1167
+ "name": "GROUPS_SIZES",
1168
+ "module": "src/constants.js"
1169
+ }
1170
+ },
1171
+ {
1172
+ "kind": "js",
1173
+ "name": "LINKS_SIZES",
1174
+ "declaration": {
1175
+ "name": "LINKS_SIZES",
1176
+ "module": "src/constants.js"
1177
+ }
1178
+ },
1179
+ {
1180
+ "kind": "js",
1181
+ "name": "MAX_TAILS_IN_GROUP",
1182
+ "declaration": {
1183
+ "name": "MAX_TAILS_IN_GROUP",
1184
+ "module": "src/constants.js"
1185
+ }
1186
+ }
1187
+ ]
1188
+ },
1189
+ {
1190
+ "kind": "javascript-module",
1191
+ "path": "src/iconVersion.js",
1192
+ "declarations": [],
1193
+ "exports": [
1194
+ {
1195
+ "kind": "js",
1196
+ "name": "default",
1197
+ "declaration": {
1198
+ "name": "9.1.1",
1199
+ "module": "src/iconVersion.js"
1200
+ }
1201
+ }
1202
+ ]
1203
+ },
1204
+ {
1205
+ "kind": "javascript-module",
1206
+ "path": "src/index.js",
1207
+ "declarations": [],
1208
+ "exports": [
1209
+ {
1210
+ "kind": "js",
1211
+ "name": "AuroTail",
1212
+ "declaration": {
1213
+ "name": "AuroTail",
1214
+ "module": "src/index.js"
1215
+ }
1216
+ },
1217
+ {
1218
+ "kind": "js",
1219
+ "name": "AuroTailGroup",
1220
+ "declaration": {
1221
+ "name": "AuroTailGroup",
1222
+ "module": "src/index.js"
1223
+ }
1224
+ }
1225
+ ]
1226
+ },
1227
+ {
1228
+ "kind": "javascript-module",
1229
+ "path": "src/registered.js",
1230
+ "declarations": [],
1231
+ "exports": []
1232
+ },
1233
+ {
1234
+ "kind": "javascript-module",
1235
+ "path": "src/utils.js",
1236
+ "declarations": [
1237
+ {
1238
+ "kind": "function",
1239
+ "name": "i18nTemplate",
1240
+ "parameters": [
1241
+ {
1242
+ "name": "template",
1243
+ "description": "The template string with placeholders",
1244
+ "type": {
1245
+ "text": "string"
1246
+ }
1247
+ },
1248
+ {
1249
+ "name": "values",
1250
+ "default": "{}",
1251
+ "description": "Object with key-value pairs for replacement",
1252
+ "type": {
1253
+ "text": "Record<string, string>"
1254
+ }
1255
+ }
1256
+ ],
1257
+ "description": "Template for internationalization (i18n).\nReplaces placeholders in the format {key} with provided values.",
1258
+ "return": {
1259
+ "type": {
1260
+ "text": "string"
1261
+ }
1262
+ }
1263
+ },
1264
+ {
1265
+ "kind": "function",
1266
+ "name": "normalizeBorderWidth",
1267
+ "parameters": [
1268
+ {
1269
+ "name": "value",
1270
+ "description": "The border width value to normalize",
1271
+ "type": {
1272
+ "text": "number|string|undefined|null"
1273
+ }
1274
+ }
1275
+ ],
1276
+ "description": "Normalizes border width to a px length.\nAccepts:\n- number => \"<n>px\"\n- \"<number>\" => \"<number>px\"\n- \"<number>px\" => passthrough\nIgnores any other units or tokens and returns undefined.",
1277
+ "return": {
1278
+ "type": {
1279
+ "text": "string|undefined"
1280
+ }
1281
+ }
1282
+ },
1283
+ {
1284
+ "kind": "function",
1285
+ "name": "resolveBorderProps",
1286
+ "parameters": [
1287
+ {
1288
+ "name": "props",
1289
+ "description": "The props object",
1290
+ "type": {
1291
+ "text": "@param {string|undefined} props.borderColor - Optional CSS color value for the border.\n * @param {number|string|undefined} props.borderWidth - Optional border width as a number, numeric string, or px string. Other units are ignored.\n * "
1292
+ }
1293
+ }
1294
+ ],
1295
+ "description": "Pass through border-related overrides while enforcing px-only widths.\n\nBehavior:\n- `borderColor` is returned as-is when provided.\n- `borderWidth` accepts only numbers, numeric strings, or px strings and normalizes via `normalizeBorderWidth`.\n • number -> \"<n>px\" (e.g., 2 -> \"2px\").\n • \"<number>\" -> \"<number>px\" (e.g., \"2\" -> \"2px\").\n • \"<number>px\" -> passthrough.\n • Zero is returned as \"0px\".\n • Any other units/tokens (e.g., \"0.125rem\", \"var(--w)\") are ignored (treated as undefined).",
1296
+ "return": {
1297
+ "type": {
1298
+ "text": "{borderColor: string|undefined, borderWidth: string|undefined}"
1299
+ }
1300
+ }
1301
+ }
1302
+ ],
1303
+ "exports": [
1304
+ {
1305
+ "kind": "js",
1306
+ "name": "i18nTemplate",
1307
+ "declaration": {
1308
+ "name": "i18nTemplate",
1309
+ "module": "src/utils.js"
1310
+ }
1311
+ },
1312
+ {
1313
+ "kind": "js",
1314
+ "name": "normalizeBorderWidth",
1315
+ "declaration": {
1316
+ "name": "normalizeBorderWidth",
1317
+ "module": "src/utils.js"
1318
+ }
1319
+ },
1320
+ {
1321
+ "kind": "js",
1322
+ "name": "resolveBorderProps",
1323
+ "declaration": {
1324
+ "name": "resolveBorderProps",
1325
+ "module": "src/utils.js"
1326
+ }
1327
+ }
1328
+ ]
1329
+ }
1330
+ ]
1331
+ }