@aurodesignsystem-dev/auro-tail 0.0.0-pr6.2 → 0.0.0-pr6.21

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.
@@ -4,607 +4,20 @@
4
4
  "modules": [
5
5
  {
6
6
  "kind": "javascript-module",
7
- "path": "scripts/wca/auro-tail.js",
7
+ "path": "src/assets/badges/OneWorld.js",
8
8
  "declarations": [
9
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
- ]
10
+ "kind": "function",
11
+ "name": "OneWorld"
591
12
  }
592
13
  ],
593
14
  "exports": [
594
15
  {
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",
16
+ "kind": "js",
17
+ "name": "OneWorld",
605
18
  "declaration": {
606
- "name": "AuroTailGroupWCA",
607
- "module": "scripts/wca/auro-tail.js"
19
+ "name": "OneWorld",
20
+ "module": "src/assets/badges/OneWorld.js"
608
21
  }
609
22
  }
610
23
  ]
@@ -615,20 +28,13 @@
615
28
  "declarations": [
616
29
  {
617
30
  "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.",
31
+ "description": "",
619
32
  "name": "AuroTailGroup",
620
33
  "members": [
621
34
  {
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
35
+ "kind": "method",
36
+ "name": "#setDefaults",
37
+ "privacy": "private"
632
38
  },
633
39
  {
634
40
  "kind": "method",
@@ -636,6 +42,17 @@
636
42
  "description": "Handle slot changes to update tails.",
637
43
  "privacy": "private"
638
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
+ },
639
56
  {
640
57
  "kind": "field",
641
58
  "name": "layout",
@@ -663,7 +80,10 @@
663
80
  }
664
81
  }
665
82
  ],
666
- "description": "This will register this element with the browser."
83
+ "description": "This will register this element with the browser.",
84
+ "type": {
85
+ "text": "register(name?: string = \"auro-tail-group\") => void"
86
+ }
667
87
  },
668
88
  {
669
89
  "kind": "field",
@@ -686,20 +106,11 @@
686
106
  {
687
107
  "kind": "method",
688
108
  "name": "updateChildTails",
689
- "description": "Manages child tails - removes excess tails and updates sizes.",
109
+ "description": "Updates the size of child tails to match the group size.",
690
110
  "privacy": "private"
691
111
  }
692
112
  ],
693
113
  "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
114
  {
704
115
  "name": "layout",
705
116
  "type": {
@@ -723,7 +134,9 @@
723
134
  "name": "LitElement",
724
135
  "package": "lit"
725
136
  },
726
- "customElement": true
137
+ "tagName": "auro-tail-group",
138
+ "customElement": true,
139
+ "modulePath": "src/auro-tail-group.js"
727
140
  }
728
141
  ],
729
142
  "exports": [
@@ -743,38 +156,33 @@
743
156
  "declarations": [
744
157
  {
745
158
  "kind": "class",
746
- "description": "The auro-tail element displays Alaska, Hawaiian, and partner airline tail graphics for consistent visual representation across Auro applications.",
159
+ "description": "",
747
160
  "name": "AuroTail",
748
161
  "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
162
  {
765
163
  "kind": "field",
766
- "name": "_variant",
164
+ "name": "_carrierType",
767
165
  "type": {
768
- "text": "'aag'|'oa'"
166
+ "text": "string"
769
167
  },
770
- "description": "Determines the carrier variant based on tail code.\nUsed internally for styling.",
168
+ "description": "Determines the carrier type based on tail code. Valid values: `aag`, `oa`\nUsed internally for styling.",
771
169
  "privacy": "private",
772
170
  "default": "'oa'"
773
171
  },
774
172
  {
775
173
  "kind": "method",
776
- "name": "applyCSSProperties",
777
- "description": "Applies border styles and variant from props to CSS custom properties.",
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",
778
186
  "privacy": "private"
779
187
  },
780
188
  {
@@ -782,128 +190,113 @@
782
190
  "name": "badge",
783
191
  "privacy": "public",
784
192
  "type": {
785
- "text": "string | undefined"
193
+ "text": "string"
786
194
  },
787
- "description": "Sets the badge type to display (e.g., 'oneworld').",
788
- "default": "undefined",
195
+ "description": "Sets the badge type to display (e.g., `oneworld`).",
789
196
  "attribute": "badge"
790
197
  },
791
198
  {
792
199
  "kind": "field",
793
200
  "name": "badgeConfig",
794
201
  "description": "Returns badge config when eligible.",
795
- "readonly": true,
202
+ "privacy": "private",
796
203
  "return": {
797
204
  "type": {
798
205
  "text": "BadgeConfig | undefined"
799
206
  }
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
207
  },
822
- "default": "undefined",
823
- "attribute": "border-width",
824
- "reflects": true
208
+ "readonly": true
825
209
  },
826
210
  {
827
211
  "kind": "field",
828
- "name": "hasBorder",
829
- "description": "Checks if tail has border properties defined.",
830
- "readonly": true,
212
+ "name": "carrierType",
213
+ "description": "Gets the carrier type based on the current tail code. Returns `aag` or `oa`",
214
+ "privacy": "private",
831
215
  "return": {
832
216
  "type": {
833
- "text": "boolean"
217
+ "text": "string"
834
218
  }
835
- }
219
+ },
220
+ "readonly": true
836
221
  },
837
222
  {
838
223
  "kind": "field",
839
224
  "name": "href",
840
225
  "privacy": "public",
841
226
  "type": {
842
- "text": "string | undefined"
227
+ "text": "string"
843
228
  },
844
229
  "description": "Sets the href for the tail.",
845
- "default": "undefined",
846
230
  "attribute": "href"
847
231
  },
232
+ {
233
+ "kind": "field",
234
+ "name": "hyperlinkTag",
235
+ "privacy": "private"
236
+ },
848
237
  {
849
238
  "kind": "field",
850
239
  "name": "iconTag",
851
240
  "privacy": "private"
852
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
+ },
853
265
  {
854
266
  "kind": "field",
855
267
  "name": "isInGroup",
856
268
  "description": "Checks if this tail is inside an auro-tail-group element.",
857
- "readonly": true,
269
+ "privacy": "private",
858
270
  "return": {
859
271
  "type": {
860
272
  "text": "boolean"
861
273
  }
862
- }
274
+ },
275
+ "readonly": true
863
276
  },
864
277
  {
865
278
  "kind": "field",
866
279
  "name": "isInHorizontalGroup",
867
280
  "description": "Checks if this tail is in a horizontal group layout.",
868
- "readonly": true,
281
+ "privacy": "private",
869
282
  "return": {
870
283
  "type": {
871
284
  "text": "boolean"
872
285
  }
873
- }
286
+ },
287
+ "readonly": true
874
288
  },
875
289
  {
876
290
  "kind": "field",
877
291
  "name": "labelTypeClass",
878
292
  "description": "Gets the appropriate CSS type class based on tail size.",
879
- "readonly": true,
293
+ "privacy": "private",
880
294
  "return": {
881
295
  "type": {
882
296
  "text": "string"
883
297
  }
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
298
  },
903
- "description": "Renders the tail with an outline style.",
904
- "default": "false",
905
- "attribute": "outline",
906
- "reflects": true
299
+ "readonly": true
907
300
  },
908
301
  {
909
302
  "kind": "method",
@@ -920,7 +313,10 @@
920
313
  }
921
314
  }
922
315
  ],
923
- "description": "This will register this element with the browser."
316
+ "description": "This will register this element with the browser.",
317
+ "type": {
318
+ "text": "register(name?: string = \"auro-tail\") => void"
319
+ }
924
320
  },
925
321
  {
926
322
  "kind": "field",
@@ -932,12 +328,13 @@
932
328
  "kind": "field",
933
329
  "name": "shouldShowLink",
934
330
  "description": "Checks if the tail should display as a clickable link.",
935
- "readonly": true,
331
+ "privacy": "private",
936
332
  "return": {
937
333
  "type": {
938
334
  "text": "boolean"
939
335
  }
940
- }
336
+ },
337
+ "readonly": true
941
338
  },
942
339
  {
943
340
  "kind": "field",
@@ -958,77 +355,39 @@
958
355
  "type": {
959
356
  "text": "string"
960
357
  },
961
- "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., AS, HA, PR).",
358
+ "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`).",
962
359
  "default": "'AS'",
963
360
  "attribute": "tail"
964
361
  },
965
362
  {
966
363
  "kind": "field",
967
364
  "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",
365
+ "privacy": "public",
980
366
  "type": {
981
- "text": "CustomEvent<{ href: string }>"
367
+ "text": "'outline'"
982
368
  },
983
- "description": "Fired when the auro-hyperlink is clicked."
369
+ "description": "Sets the visual variant of the tail.",
370
+ "attribute": "variant",
371
+ "reflects": true
984
372
  }
985
373
  ],
986
374
  "attributes": [
987
375
  {
988
376
  "name": "badge",
989
377
  "type": {
990
- "text": "string | undefined"
378
+ "text": "string"
991
379
  },
992
- "description": "Sets the badge type to display (e.g., 'oneworld').",
993
- "default": "undefined",
380
+ "description": "Sets the badge type to display (e.g., `oneworld`).",
994
381
  "fieldName": "badge"
995
382
  },
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
383
  {
1015
384
  "name": "href",
1016
385
  "type": {
1017
- "text": "string | undefined"
386
+ "text": "string"
1018
387
  },
1019
388
  "description": "Sets the href for the tail.",
1020
- "default": "undefined",
1021
389
  "fieldName": "href"
1022
390
  },
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
391
  {
1033
392
  "name": "size",
1034
393
  "type": {
@@ -1043,16 +402,26 @@
1043
402
  "type": {
1044
403
  "text": "string"
1045
404
  },
1046
- "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., AS, HA, PR).",
405
+ "description": "Sets the airline tail based on the tail codes used in auro-icon (e.g., `AS`, `HA`, `PR`).",
1047
406
  "default": "'AS'",
1048
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"
1049
416
  }
1050
417
  ],
1051
418
  "superclass": {
1052
419
  "name": "LitElement",
1053
420
  "package": "lit"
1054
421
  },
1055
- "customElement": true
422
+ "tagName": "auro-tail",
423
+ "customElement": true,
424
+ "modulePath": "src/auro-tail.js"
1056
425
  }
1057
426
  ],
1058
427
  "exports": [
@@ -1117,14 +486,6 @@
1117
486
  "text": "array"
1118
487
  },
1119
488
  "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
489
  }
1129
490
  ],
1130
491
  "exports": [
@@ -1175,13 +536,20 @@
1175
536
  "name": "LINKS_SIZES",
1176
537
  "module": "src/constants.js"
1177
538
  }
1178
- },
539
+ }
540
+ ]
541
+ },
542
+ {
543
+ "kind": "javascript-module",
544
+ "path": "src/hyperlinkVersion.js",
545
+ "declarations": [],
546
+ "exports": [
1179
547
  {
1180
548
  "kind": "js",
1181
- "name": "MAX_TAILS_IN_GROUP",
549
+ "name": "default",
1182
550
  "declaration": {
1183
- "name": "MAX_TAILS_IN_GROUP",
1184
- "module": "src/constants.js"
551
+ "name": "7.1.0",
552
+ "module": "src/hyperlinkVersion.js"
1185
553
  }
1186
554
  }
1187
555
  ]
@@ -1263,39 +631,39 @@
1263
631
  },
1264
632
  {
1265
633
  "kind": "function",
1266
- "name": "normalizeBorderWidth",
634
+ "name": "isAuroTailElement",
1267
635
  "parameters": [
1268
636
  {
1269
- "name": "value",
1270
- "description": "The border width value to normalize",
637
+ "name": "element",
638
+ "description": "The element to check",
1271
639
  "type": {
1272
- "text": "number|string|undefined|null"
640
+ "text": "Element"
1273
641
  }
1274
642
  }
1275
643
  ],
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.",
644
+ "description": "Checks if an element is an AuroTail",
1277
645
  "return": {
1278
646
  "type": {
1279
- "text": "string|undefined"
647
+ "text": "boolean"
1280
648
  }
1281
649
  }
1282
650
  },
1283
651
  {
1284
652
  "kind": "function",
1285
- "name": "resolveBorderProps",
653
+ "name": "isAuroTailGroupElement",
1286
654
  "parameters": [
1287
655
  {
1288
- "name": "props",
1289
- "description": "The props object",
656
+ "name": "element",
657
+ "description": "The element to check",
1290
658
  "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 * "
659
+ "text": "HTMLElement"
1292
660
  }
1293
661
  }
1294
662
  ],
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).",
663
+ "description": "Checks if an element is an AuroTailGroup",
1296
664
  "return": {
1297
665
  "type": {
1298
- "text": "{borderColor: string|undefined, borderWidth: string|undefined}"
666
+ "text": "boolean"
1299
667
  }
1300
668
  }
1301
669
  }
@@ -1311,17 +679,17 @@
1311
679
  },
1312
680
  {
1313
681
  "kind": "js",
1314
- "name": "normalizeBorderWidth",
682
+ "name": "isAuroTailElement",
1315
683
  "declaration": {
1316
- "name": "normalizeBorderWidth",
684
+ "name": "isAuroTailElement",
1317
685
  "module": "src/utils.js"
1318
686
  }
1319
687
  },
1320
688
  {
1321
689
  "kind": "js",
1322
- "name": "resolveBorderProps",
690
+ "name": "isAuroTailGroupElement",
1323
691
  "declaration": {
1324
- "name": "resolveBorderProps",
692
+ "name": "isAuroTailGroupElement",
1325
693
  "module": "src/utils.js"
1326
694
  }
1327
695
  }