@patternfly/pfe-core 5.0.5 → 5.0.6

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.
@@ -62,6 +62,15 @@
62
62
  "kind": "field",
63
63
  "privacy": "protected"
64
64
  },
65
+ {
66
+ "name": "atFocusableItems",
67
+ "description": "Check the source item's focusable state, not the clone's.\nThis is needed because filtering sets `hidden` on the light DOM item,\nand the MutationObserver sync to clones is asynchronous.",
68
+ "type": {
69
+ "text": "Item[]"
70
+ },
71
+ "readonly": true,
72
+ "kind": "field"
73
+ },
65
74
  {
66
75
  "name": "items",
67
76
  "description": "All items",
@@ -89,8 +98,7 @@
89
98
  }
90
99
  },
91
100
  "name": "initItems",
92
- "kind": "method",
93
- "privacy": "protected"
101
+ "kind": "method"
94
102
  },
95
103
  {
96
104
  "return": {
@@ -386,7 +394,7 @@
386
394
  {
387
395
  "name": "host",
388
396
  "type": {
389
- "text": "ReactiveControllerHost"
397
+ "text": "ReactiveControllerHost \u0026 HTMLElement"
390
398
  }
391
399
  },
392
400
  {
@@ -478,7 +486,7 @@
478
486
  {
479
487
  "name": "host",
480
488
  "type": {
481
- "text": "ReactiveControllerHost"
489
+ "text": "ReactiveControllerHost \u0026 HTMLElement"
482
490
  },
483
491
  "kind": "field"
484
492
  },
@@ -525,7 +533,8 @@
525
533
  }
526
534
  },
527
535
  "name": "_onFocusoutElement",
528
- "kind": "method"
536
+ "kind": "method",
537
+ "privacy": "private"
529
538
  },
530
539
  {
531
540
  "return": {
@@ -751,7 +760,7 @@
751
760
  "members": [
752
761
  {
753
762
  "name": "instances",
754
- "default": "new WeakMap\u003cReactiveControllerHost, InternalsController\u003e()",
763
+ "default": "new WeakMap\u003cHTMLElement, InternalsController\u003e()",
755
764
  "kind": "field",
756
765
  "static": true,
757
766
  "privacy": "private"
@@ -801,7 +810,7 @@
801
810
  {
802
811
  "name": "host",
803
812
  "type": {
804
- "text": "ReactiveControllerHost"
813
+ "text": "InternalsHost"
805
814
  }
806
815
  }
807
816
  ],
@@ -815,6 +824,98 @@
815
824
  "static": true,
816
825
  "privacy": "public"
817
826
  },
827
+ {
828
+ "parameters": [
829
+ {
830
+ "name": "host",
831
+ "type": {
832
+ "text": "HTMLElement"
833
+ }
834
+ }
835
+ ],
836
+ "return": {
837
+ "type": {
838
+ "text": "string | null"
839
+ }
840
+ },
841
+ "name": "getAriaPosInSet",
842
+ "description": "Gets the ARIA posinset value from a listbox item (attribute takes precedence over internals).",
843
+ "kind": "method",
844
+ "static": true,
845
+ "privacy": "public"
846
+ },
847
+ {
848
+ "parameters": [
849
+ {
850
+ "name": "host",
851
+ "type": {
852
+ "text": "HTMLElement"
853
+ }
854
+ },
855
+ {
856
+ "name": "value",
857
+ "type": {
858
+ "text": "number | string | null"
859
+ }
860
+ }
861
+ ],
862
+ "return": {
863
+ "type": {
864
+ "text": "void"
865
+ }
866
+ },
867
+ "name": "setAriaPosInSet",
868
+ "description": "Sets the ARIA posinset on a listbox item. Uses ElementInternals when the host has\nan InternalsController instance; otherwise sets/removes the host attribute.",
869
+ "kind": "method",
870
+ "static": true,
871
+ "privacy": "public"
872
+ },
873
+ {
874
+ "parameters": [
875
+ {
876
+ "name": "host",
877
+ "type": {
878
+ "text": "HTMLElement"
879
+ }
880
+ }
881
+ ],
882
+ "return": {
883
+ "type": {
884
+ "text": "string | null"
885
+ }
886
+ },
887
+ "name": "getAriaSetSize",
888
+ "description": "Gets the ARIA setsize from a listbox item (aria attribute if set or defaulting to internals).",
889
+ "kind": "method",
890
+ "static": true,
891
+ "privacy": "public"
892
+ },
893
+ {
894
+ "parameters": [
895
+ {
896
+ "name": "host",
897
+ "type": {
898
+ "text": "HTMLElement"
899
+ }
900
+ },
901
+ {
902
+ "name": "value",
903
+ "type": {
904
+ "text": "number | string | null"
905
+ }
906
+ }
907
+ ],
908
+ "return": {
909
+ "type": {
910
+ "text": "void"
911
+ }
912
+ },
913
+ "name": "setAriaSetSize",
914
+ "description": "Sets the ARIA setsize on a listbox item. Uses ElementInternals when the host has\nan InternalsController instance; otherwise sets/removes the host attribute.",
915
+ "kind": "method",
916
+ "static": true,
917
+ "privacy": "public"
918
+ },
818
919
  {
819
920
  "name": "isSafari",
820
921
  "type": {
@@ -829,7 +930,7 @@
829
930
  {
830
931
  "name": "host",
831
932
  "type": {
832
- "text": "ReactiveControllerHost"
933
+ "text": "InternalsHost"
833
934
  }
834
935
  },
835
936
  {
@@ -1211,7 +1312,7 @@
1211
1312
  },
1212
1313
  {
1213
1314
  "name": "ariaActiveDescendantElement",
1214
- "description": "WARNING: be careful of cross-root ARIA browser support",
1315
+ "description": "As of April 2025, the following are considered Baseline supported in evergreen browsers",
1215
1316
  "type": {
1216
1317
  "text": "Element | null"
1217
1318
  },
@@ -1220,7 +1321,6 @@
1220
1321
  },
1221
1322
  {
1222
1323
  "name": "ariaControlsElements",
1223
- "description": "WARNING: be careful of cross-root ARIA browser support",
1224
1324
  "type": {
1225
1325
  "text": "Element[] | null"
1226
1326
  },
@@ -1229,7 +1329,6 @@
1229
1329
  },
1230
1330
  {
1231
1331
  "name": "ariaDescribedByElements",
1232
- "description": "WARNING: be careful of cross-root ARIA browser support",
1233
1332
  "type": {
1234
1333
  "text": "Element[] | null"
1235
1334
  },
@@ -1238,7 +1337,6 @@
1238
1337
  },
1239
1338
  {
1240
1339
  "name": "ariaDetailsElements",
1241
- "description": "WARNING: be careful of cross-root ARIA browser support",
1242
1340
  "type": {
1243
1341
  "text": "Element[] | null"
1244
1342
  },
@@ -1247,7 +1345,6 @@
1247
1345
  },
1248
1346
  {
1249
1347
  "name": "ariaErrorMessageElements",
1250
- "description": "WARNING: be careful of cross-root ARIA browser support",
1251
1348
  "type": {
1252
1349
  "text": "Element[] | null"
1253
1350
  },
@@ -1256,7 +1353,6 @@
1256
1353
  },
1257
1354
  {
1258
1355
  "name": "ariaFlowToElements",
1259
- "description": "WARNING: be careful of cross-root ARIA browser support",
1260
1356
  "type": {
1261
1357
  "text": "Element[] | null"
1262
1358
  },
@@ -1265,7 +1361,6 @@
1265
1361
  },
1266
1362
  {
1267
1363
  "name": "ariaLabelledByElements",
1268
- "description": "WARNING: be careful of cross-root ARIA browser support",
1269
1364
  "type": {
1270
1365
  "text": "Element[] | null"
1271
1366
  },
@@ -1274,7 +1369,7 @@
1274
1369
  },
1275
1370
  {
1276
1371
  "name": "ariaOwnsElements",
1277
- "description": "WARNING: be careful of cross-root ARIA browser support",
1372
+ "description": "As of February 2026, this is not supported in Chromium browsers",
1278
1373
  "type": {
1279
1374
  "text": "Element[] | null"
1280
1375
  },
@@ -1341,7 +1436,7 @@
1341
1436
  {
1342
1437
  "name": "host",
1343
1438
  "type": {
1344
- "text": "ReactiveControllerHost"
1439
+ "text": "InternalsHost"
1345
1440
  },
1346
1441
  "kind": "field"
1347
1442
  },
@@ -1464,7 +1559,7 @@
1464
1559
  }
1465
1560
  ],
1466
1561
  "source": {
1467
- "href": "https://github.com/patternfly/patternfly-elements/tree/main/controllers/internals-controller.ts#L71"
1562
+ "href": "https://github.com/patternfly/patternfly-elements/tree/main/controllers/internals-controller.ts#L72"
1468
1563
  },
1469
1564
  "kind": "class"
1470
1565
  }
@@ -1595,7 +1690,7 @@
1595
1690
  "name": "isItem",
1596
1691
  "kind": "function",
1597
1692
  "source": {
1598
- "href": "https://github.com/patternfly/patternfly-elements/tree/main/controllers/listbox-controller.ts#L81"
1693
+ "href": "https://github.com/patternfly/patternfly-elements/tree/main/controllers/listbox-controller.ts#L82"
1599
1694
  }
1600
1695
  },
1601
1696
  {
@@ -1612,7 +1707,7 @@
1612
1707
  "description": "This is a fib. aria-disabled might not be present on an element that uses internals,\nand the `disabled` attribute may not accurately represent the disabled state.\nshort of patching the `attachInternals` constructor, it may not be possible at\nruntime to know with certainty that an arbitrary custom element is disabled or not.",
1613
1708
  "kind": "function",
1614
1709
  "source": {
1615
- "href": "https://github.com/patternfly/patternfly-elements/tree/main/controllers/listbox-controller.ts#L96"
1710
+ "href": "https://github.com/patternfly/patternfly-elements/tree/main/controllers/listbox-controller.ts#L97"
1616
1711
  }
1617
1712
  },
1618
1713
  {
@@ -1677,7 +1772,7 @@
1677
1772
  },
1678
1773
  {
1679
1774
  "name": "items",
1680
- "description": "register's the host's Item elements as listbox controller items\nsets aria-setsize and aria-posinset on items",
1775
+ "description": "Registers the host's item elements as listbox controller items.",
1681
1776
  "type": {
1682
1777
  "text": "Item[]"
1683
1778
  },
@@ -1714,6 +1809,7 @@
1714
1809
  }
1715
1810
  },
1716
1811
  "name": "hostUpdate",
1812
+ "description": "Called during host update; syncs control element listeners and\napplies aria-posinset/aria-setsize to each item via InternalsController.",
1717
1813
  "kind": "method"
1718
1814
  },
1719
1815
  {
@@ -1754,7 +1850,7 @@
1754
1850
  }
1755
1851
  ],
1756
1852
  "source": {
1757
- "href": "https://github.com/patternfly/patternfly-elements/tree/main/controllers/listbox-controller.ts#L145"
1853
+ "href": "https://github.com/patternfly/patternfly-elements/tree/main/controllers/listbox-controller.ts#L146"
1758
1854
  },
1759
1855
  "kind": "class"
1760
1856
  }
@@ -7,7 +7,7 @@
7
7
  * @param b second array
8
8
  */
9
9
  export function arraysAreEquivalent(a, b) {
10
- if (!Array.isArray(a) || !Array.isArray(b)) {
10
+ if (!Array.isArray(a) || !Array.isArray(b)) { // one or both are not an array
11
11
  return a === b;
12
12
  }
13
13
  else if (a.length !== b.length) { // lengths are different
@@ -17,12 +17,7 @@ export function arraysAreEquivalent(a, b) {
17
17
  return true;
18
18
  }
19
19
  else { // multi and length of both is equal
20
- for (const [i, element] of a.entries()) {
21
- if (element !== b[i]) {
22
- return false;
23
- }
24
- }
25
- return true;
20
+ return a.every((v, i) => b[i] === v);
26
21
  }
27
22
  }
28
23
  //# sourceMappingURL=arraysAreEquivalent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"arraysAreEquivalent.js","sourceRoot":"","sources":["arraysAreEquivalent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,CAAU,EAAE,CAAU;IACxD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3C,OAAO,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;SAAM,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,wBAAwB;QAC1D,OAAO,KAAK,CAAC;IACf,CAAC;SAAM,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,iBAAiB;QACpD,OAAO,IAAI,CAAC;IACd,CAAC;SAAM,CAAC,CAAC,oCAAoC;QAC3C,KAAK,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC;YACvC,IAAI,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBACrB,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC","sourcesContent":["/**\n * Whether the two arrays are equivalent\n * Arrays are equivalent when they are both empty, or when their lengths are equal and each of\n * their members is equal (===) to the corresponding member in the other array.\n * If either argument is not an array, the result will be strict equivalence (===)\n * @param a first array\n * @param b second array\n */\nexport function arraysAreEquivalent(a: unknown, b: unknown): boolean {\n if (!Array.isArray(a) || !Array.isArray(b)) {\n return a === b;\n } else if (a.length !== b.length) { // lengths are different\n return false;\n } else if (!a.length && !b.length) { // both are empty\n return true;\n } else { // multi and length of both is equal\n for (const [i, element] of a.entries()) {\n if (element !== b[i]) {\n return false;\n }\n }\n return true;\n }\n}\n"]}
1
+ {"version":3,"file":"arraysAreEquivalent.js","sourceRoot":"","sources":["arraysAreEquivalent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,mBAAmB,CAAC,CAAU,EAAE,CAAU;IACxD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,+BAA+B;QAC3E,OAAO,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;SAAM,IAAI,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,wBAAwB;QAC1D,OAAO,KAAK,CAAC;IACf,CAAC;SAAM,IAAI,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,iBAAiB;QACpD,OAAO,IAAI,CAAC;IACd,CAAC;SAAM,CAAC,CAAC,oCAAoC;QAC3C,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IACvC,CAAC;AACH,CAAC","sourcesContent":["/**\n * Whether the two arrays are equivalent\n * Arrays are equivalent when they are both empty, or when their lengths are equal and each of\n * their members is equal (===) to the corresponding member in the other array.\n * If either argument is not an array, the result will be strict equivalence (===)\n * @param a first array\n * @param b second array\n */\nexport function arraysAreEquivalent(a: unknown, b: unknown): boolean {\n if (!Array.isArray(a) || !Array.isArray(b)) { // one or both are not an array\n return a === b;\n } else if (a.length !== b.length) { // lengths are different\n return false;\n } else if (!a.length && !b.length) { // both are empty\n return true;\n } else { // multi and length of both is equal\n return a.every((v, i) => b[i] === v);\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/pfe-core",
3
- "version": "5.0.5",
3
+ "version": "5.0.6",
4
4
  "license": "MIT",
5
5
  "description": "PatternFly Elements Core Library",
6
6
  "customElements": "custom-elements.json",