@beeq/core 1.8.5-beta.2 → 1.9.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.
Files changed (50) hide show
  1. package/dist/beeq/beeq.esm.js +1 -1
  2. package/dist/beeq/bq-select.entry.esm.js.map +1 -1
  3. package/dist/beeq/index.esm.js +1 -1
  4. package/dist/beeq/index.esm.js.map +1 -1
  5. package/dist/beeq/p-BO2RoztC.js +6 -0
  6. package/dist/beeq/p-BO2RoztC.js.map +1 -0
  7. package/dist/beeq/p-e5a52055.entry.js +6 -0
  8. package/dist/beeq/p-e5a52055.entry.js.map +1 -0
  9. package/dist/beeq.html-custom-data.json +67 -67
  10. package/dist/cjs/beeq.cjs.js +1 -1
  11. package/dist/cjs/bq-select.cjs.entry.js +60 -20
  12. package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
  13. package/dist/cjs/bq-select.entry.cjs.js.map +1 -1
  14. package/dist/cjs/index.cjs.js +2 -0
  15. package/dist/cjs/index.cjs.js.map +1 -1
  16. package/dist/cjs/loader.cjs.js +1 -1
  17. package/dist/cjs/stringToArray-DWnmNBjZ.js +31 -0
  18. package/dist/cjs/stringToArray-DWnmNBjZ.js.map +1 -0
  19. package/dist/collection/components/input/scss/bq-input.css +1 -1
  20. package/dist/collection/components/select/bq-select.js +109 -21
  21. package/dist/collection/components/select/bq-select.js.map +1 -1
  22. package/dist/collection/shared/utils/index.js +1 -0
  23. package/dist/collection/shared/utils/index.js.map +1 -1
  24. package/dist/collection/shared/utils/stringToArray.js +24 -0
  25. package/dist/collection/shared/utils/stringToArray.js.map +1 -0
  26. package/dist/components/bq-select.js +1 -1
  27. package/dist/components/bq-select.js.map +1 -1
  28. package/dist/components/index.js +1 -1
  29. package/dist/components/index.js.map +1 -1
  30. package/dist/custom-elements.json +746 -707
  31. package/dist/esm/beeq.js +1 -1
  32. package/dist/esm/bq-select.entry.js +60 -20
  33. package/dist/esm/bq-select.entry.js.map +1 -1
  34. package/dist/esm/index.js +1 -0
  35. package/dist/esm/index.js.map +1 -1
  36. package/dist/esm/loader.js +1 -1
  37. package/dist/esm/stringToArray-g9MEtfgW.js +29 -0
  38. package/dist/esm/stringToArray-g9MEtfgW.js.map +1 -0
  39. package/dist/hydrate/index.js +80 -21
  40. package/dist/hydrate/index.mjs +80 -21
  41. package/dist/types/components/select/bq-select.d.ts +14 -0
  42. package/dist/types/components.d.ts +12 -0
  43. package/dist/types/shared/utils/index.d.ts +1 -0
  44. package/dist/types/shared/utils/stringToArray.d.ts +8 -0
  45. package/package.json +1 -1
  46. package/dist/beeq/p-f5b3e9be.entry.js +0 -6
  47. package/dist/beeq/p-f5b3e9be.entry.js.map +0 -1
  48. /package/dist/types/{Users/dramos/PROJECTs/ENDAVA/BEEQ-Design-System → home/runner/work/BEEQ/BEEQ}/.stencil/packages/beeq/jest.config.d.ts +0 -0
  49. /package/dist/types/{Users/dramos/PROJECTs/ENDAVA/BEEQ-Design-System → home/runner/work/BEEQ/BEEQ}/.stencil/packages/beeq/stencil.config.d.ts +0 -0
  50. /package/dist/types/{Users/dramos/PROJECTs/ENDAVA/BEEQ-Design-System → home/runner/work/BEEQ/BEEQ}/.stencil/tailwind.config.d.ts +0 -0
@@ -643,219 +643,6 @@
643
643
  }
644
644
  ]
645
645
  },
646
- {
647
- "kind": "javascript-module",
648
- "path": "components/bq-accordion-group.js",
649
- "declarations": [
650
- {
651
- "kind": "class",
652
- "description": "The accordion group component is a container for multiple accordion elements.\nIt allows to manage the appearance and size of all accordions at once.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-accordion-group appearance=\"filled\" size=\"medium\">\n<bq-accordion> ... </bq-accordion>\n<bq-accordion> ... </bq-accordion>\n<bq-accordion> ... </bq-accordion>\n</bq-accordion-group>\n```\n\n</figure>",
653
- "name": "BqAccordionGroup",
654
- "cssProperties": [
655
- {
656
- "description": "Accordion group distance between elements",
657
- "name": "--bq-accordion-group--gap"
658
- }
659
- ],
660
- "cssParts": [
661
- {
662
- "description": "The component's base wrapper.",
663
- "name": "base"
664
- }
665
- ],
666
- "slots": [
667
- {
668
- "description": "The default slot where the bq-accordion elements are placed.",
669
- "name": ""
670
- }
671
- ],
672
- "members": [
673
- {
674
- "kind": "field",
675
- "name": "el",
676
- "type": {
677
- "text": "HTMLBqAccordionGroupElement"
678
- }
679
- },
680
- {
681
- "kind": "field",
682
- "name": "appearance",
683
- "type": {
684
- "text": "TAccordionAppearance"
685
- },
686
- "default": "'filled'",
687
- "description": "The appearance style of accordion to be applied to all accordions"
688
- },
689
- {
690
- "kind": "field",
691
- "name": "expandAll",
692
- "type": {
693
- "text": "boolean"
694
- },
695
- "description": "If true all accordions are expanded"
696
- },
697
- {
698
- "kind": "field",
699
- "name": "noAnimation",
700
- "type": {
701
- "text": "boolean"
702
- },
703
- "default": "false",
704
- "description": "Animation is set through JS when the browser does not support CSS calc-size()\nIf true, the accordion animation, will be disabled. No animation will be applied."
705
- },
706
- {
707
- "kind": "field",
708
- "name": "multiple",
709
- "type": {
710
- "text": "boolean"
711
- },
712
- "default": "false",
713
- "description": "If true multiple accordions can be expanded at the same time"
714
- },
715
- {
716
- "kind": "field",
717
- "name": "size",
718
- "type": {
719
- "text": "TAccordionSize"
720
- },
721
- "default": "'medium'",
722
- "description": "The size of accordion to be applied to all accordions"
723
- },
724
- {
725
- "kind": "method",
726
- "name": "checkPropValues"
727
- },
728
- {
729
- "kind": "method",
730
- "name": "onBqClick",
731
- "parameters": [
732
- {
733
- "name": "event",
734
- "type": {
735
- "text": "CustomEvent<HTMLBqAccordionElement>"
736
- }
737
- }
738
- ]
739
- },
740
- {
741
- "kind": "field",
742
- "name": "bqAccordionElements",
743
- "type": {
744
- "text": "HTMLBqAccordionElement[]"
745
- },
746
- "privacy": "private",
747
- "readonly": true
748
- },
749
- {
750
- "kind": "method",
751
- "name": "render"
752
- }
753
- ],
754
- "attributes": [
755
- {
756
- "type": {
757
- "text": "\"filled\" | \"ghost\""
758
- },
759
- "description": "The appearance style of accordion to be applied to all accordions",
760
- "name": "appearance",
761
- "default": "\"filled\""
762
- },
763
- {
764
- "type": {
765
- "text": "boolean"
766
- },
767
- "description": "If true all accordions are expanded",
768
- "name": "expandAll",
769
- "default": "false"
770
- },
771
- {
772
- "type": {
773
- "text": "boolean"
774
- },
775
- "description": "Animation is set through JS when the browser does not support CSS calc-size() If true, the accordion animation, will be disabled. No animation will be applied.",
776
- "name": "no-animation",
777
- "default": "false"
778
- },
779
- {
780
- "type": {
781
- "text": "boolean"
782
- },
783
- "description": "If true multiple accordions can be expanded at the same time",
784
- "name": "multiple",
785
- "default": "false"
786
- },
787
- {
788
- "type": {
789
- "text": "\"small\" | \"medium\""
790
- },
791
- "description": "The size of accordion to be applied to all accordions",
792
- "name": "size",
793
- "default": "\"medium\""
794
- },
795
- {
796
- "name": "appearance",
797
- "fieldName": "appearance",
798
- "type": {
799
- "text": "TAccordionAppearance"
800
- }
801
- },
802
- {
803
- "name": "expand-all",
804
- "fieldName": "expandAll",
805
- "type": {
806
- "text": "boolean"
807
- }
808
- },
809
- {
810
- "name": "no-animation",
811
- "fieldName": "noAnimation",
812
- "type": {
813
- "text": "boolean"
814
- }
815
- },
816
- {
817
- "name": "multiple",
818
- "fieldName": "multiple",
819
- "type": {
820
- "text": "boolean"
821
- }
822
- },
823
- {
824
- "name": "size",
825
- "fieldName": "size",
826
- "type": {
827
- "text": "TAccordionSize"
828
- }
829
- }
830
- ],
831
- "tagName": "bq-accordion-group",
832
- "csspart": {
833
- "name": "base",
834
- "description": "The component's base wrapper."
835
- },
836
- "events": [],
837
- "customElement": true
838
- }
839
- ],
840
- "exports": [
841
- {
842
- "kind": "js",
843
- "name": "BqAccordionGroup",
844
- "declaration": {
845
- "name": "BqAccordionGroup",
846
- "module": "components/bq-accordion-group.js"
847
- }
848
- },
849
- {
850
- "kind": "custom-element-definition",
851
- "name": "bq-accordion-group",
852
- "declaration": {
853
- "name": "BqAccordionGroup",
854
- "module": "components/bq-accordion-group.js"
855
- }
856
- }
857
- ]
858
- },
859
646
  {
860
647
  "kind": "javascript-module",
861
648
  "path": "components/bq-alert.js",
@@ -1458,36 +1245,249 @@
1458
1245
  },
1459
1246
  {
1460
1247
  "kind": "javascript-module",
1461
- "path": "components/bq-avatar.js",
1248
+ "path": "components/bq-accordion-group.js",
1462
1249
  "declarations": [
1463
1250
  {
1464
1251
  "kind": "class",
1465
- "description": "The Avatar component is a simple and customizable element that displays an image or initials in a circular or square shape.\nThis component is useful for displaying user profile pictures or any other image that represents a person or an entity.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-avatar\nalt-text=\"John Doe profile picture\"\nimage=\"/image/url/photo-1524593689594.jpeg\"\nlabel=\"John Doe profile picture\"\nshape=\"circle\"\nsize=\"medium\"\n>\n<bq-badge slot=\"badge\" text-color=\"#fff\">9</bq-badge>\n</bq-avatar>\n```\n\n</figure>",
1466
- "name": "BqAvatar",
1252
+ "description": "The accordion group component is a container for multiple accordion elements.\nIt allows to manage the appearance and size of all accordions at once.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-accordion-group appearance=\"filled\" size=\"medium\">\n<bq-accordion> ... </bq-accordion>\n<bq-accordion> ... </bq-accordion>\n<bq-accordion> ... </bq-accordion>\n</bq-accordion-group>\n```\n\n</figure>",
1253
+ "name": "BqAccordionGroup",
1467
1254
  "cssProperties": [
1468
1255
  {
1469
- "description": "Avatar background color",
1470
- "name": "--bq-avatar--background"
1471
- },
1472
- {
1473
- "description": "Avatar border color",
1474
- "name": "--bq-avatar--border-color"
1475
- },
1256
+ "description": "Accordion group distance between elements",
1257
+ "name": "--bq-accordion-group--gap"
1258
+ }
1259
+ ],
1260
+ "cssParts": [
1476
1261
  {
1477
- "description": "Avatar border style",
1478
- "name": "--bq-avatar--border-style"
1479
- },
1262
+ "description": "The component's base wrapper.",
1263
+ "name": "base"
1264
+ }
1265
+ ],
1266
+ "slots": [
1480
1267
  {
1481
- "description": "Avatar border width",
1482
- "name": "--bq-avatar--border-width"
1483
- },
1268
+ "description": "The default slot where the bq-accordion elements are placed.",
1269
+ "name": ""
1270
+ }
1271
+ ],
1272
+ "members": [
1484
1273
  {
1485
- "description": "Avatar border radius for circle & any size",
1486
- "name": "--bq-avatar--border-radius-circle"
1274
+ "kind": "field",
1275
+ "name": "el",
1276
+ "type": {
1277
+ "text": "HTMLBqAccordionGroupElement"
1278
+ }
1487
1279
  },
1488
1280
  {
1489
- "description": "Avatar border radius for square & size xsmall",
1490
- "name": "--bq-avatar--border-radius-squareXs"
1281
+ "kind": "field",
1282
+ "name": "appearance",
1283
+ "type": {
1284
+ "text": "TAccordionAppearance"
1285
+ },
1286
+ "default": "'filled'",
1287
+ "description": "The appearance style of accordion to be applied to all accordions"
1288
+ },
1289
+ {
1290
+ "kind": "field",
1291
+ "name": "expandAll",
1292
+ "type": {
1293
+ "text": "boolean"
1294
+ },
1295
+ "description": "If true all accordions are expanded"
1296
+ },
1297
+ {
1298
+ "kind": "field",
1299
+ "name": "noAnimation",
1300
+ "type": {
1301
+ "text": "boolean"
1302
+ },
1303
+ "default": "false",
1304
+ "description": "Animation is set through JS when the browser does not support CSS calc-size()\nIf true, the accordion animation, will be disabled. No animation will be applied."
1305
+ },
1306
+ {
1307
+ "kind": "field",
1308
+ "name": "multiple",
1309
+ "type": {
1310
+ "text": "boolean"
1311
+ },
1312
+ "default": "false",
1313
+ "description": "If true multiple accordions can be expanded at the same time"
1314
+ },
1315
+ {
1316
+ "kind": "field",
1317
+ "name": "size",
1318
+ "type": {
1319
+ "text": "TAccordionSize"
1320
+ },
1321
+ "default": "'medium'",
1322
+ "description": "The size of accordion to be applied to all accordions"
1323
+ },
1324
+ {
1325
+ "kind": "method",
1326
+ "name": "checkPropValues"
1327
+ },
1328
+ {
1329
+ "kind": "method",
1330
+ "name": "onBqClick",
1331
+ "parameters": [
1332
+ {
1333
+ "name": "event",
1334
+ "type": {
1335
+ "text": "CustomEvent<HTMLBqAccordionElement>"
1336
+ }
1337
+ }
1338
+ ]
1339
+ },
1340
+ {
1341
+ "kind": "field",
1342
+ "name": "bqAccordionElements",
1343
+ "type": {
1344
+ "text": "HTMLBqAccordionElement[]"
1345
+ },
1346
+ "privacy": "private",
1347
+ "readonly": true
1348
+ },
1349
+ {
1350
+ "kind": "method",
1351
+ "name": "render"
1352
+ }
1353
+ ],
1354
+ "attributes": [
1355
+ {
1356
+ "type": {
1357
+ "text": "\"filled\" | \"ghost\""
1358
+ },
1359
+ "description": "The appearance style of accordion to be applied to all accordions",
1360
+ "name": "appearance",
1361
+ "default": "\"filled\""
1362
+ },
1363
+ {
1364
+ "type": {
1365
+ "text": "boolean"
1366
+ },
1367
+ "description": "If true all accordions are expanded",
1368
+ "name": "expandAll",
1369
+ "default": "false"
1370
+ },
1371
+ {
1372
+ "type": {
1373
+ "text": "boolean"
1374
+ },
1375
+ "description": "Animation is set through JS when the browser does not support CSS calc-size() If true, the accordion animation, will be disabled. No animation will be applied.",
1376
+ "name": "no-animation",
1377
+ "default": "false"
1378
+ },
1379
+ {
1380
+ "type": {
1381
+ "text": "boolean"
1382
+ },
1383
+ "description": "If true multiple accordions can be expanded at the same time",
1384
+ "name": "multiple",
1385
+ "default": "false"
1386
+ },
1387
+ {
1388
+ "type": {
1389
+ "text": "\"small\" | \"medium\""
1390
+ },
1391
+ "description": "The size of accordion to be applied to all accordions",
1392
+ "name": "size",
1393
+ "default": "\"medium\""
1394
+ },
1395
+ {
1396
+ "name": "appearance",
1397
+ "fieldName": "appearance",
1398
+ "type": {
1399
+ "text": "TAccordionAppearance"
1400
+ }
1401
+ },
1402
+ {
1403
+ "name": "expand-all",
1404
+ "fieldName": "expandAll",
1405
+ "type": {
1406
+ "text": "boolean"
1407
+ }
1408
+ },
1409
+ {
1410
+ "name": "no-animation",
1411
+ "fieldName": "noAnimation",
1412
+ "type": {
1413
+ "text": "boolean"
1414
+ }
1415
+ },
1416
+ {
1417
+ "name": "multiple",
1418
+ "fieldName": "multiple",
1419
+ "type": {
1420
+ "text": "boolean"
1421
+ }
1422
+ },
1423
+ {
1424
+ "name": "size",
1425
+ "fieldName": "size",
1426
+ "type": {
1427
+ "text": "TAccordionSize"
1428
+ }
1429
+ }
1430
+ ],
1431
+ "tagName": "bq-accordion-group",
1432
+ "csspart": {
1433
+ "name": "base",
1434
+ "description": "The component's base wrapper."
1435
+ },
1436
+ "events": [],
1437
+ "customElement": true
1438
+ }
1439
+ ],
1440
+ "exports": [
1441
+ {
1442
+ "kind": "js",
1443
+ "name": "BqAccordionGroup",
1444
+ "declaration": {
1445
+ "name": "BqAccordionGroup",
1446
+ "module": "components/bq-accordion-group.js"
1447
+ }
1448
+ },
1449
+ {
1450
+ "kind": "custom-element-definition",
1451
+ "name": "bq-accordion-group",
1452
+ "declaration": {
1453
+ "name": "BqAccordionGroup",
1454
+ "module": "components/bq-accordion-group.js"
1455
+ }
1456
+ }
1457
+ ]
1458
+ },
1459
+ {
1460
+ "kind": "javascript-module",
1461
+ "path": "components/bq-avatar.js",
1462
+ "declarations": [
1463
+ {
1464
+ "kind": "class",
1465
+ "description": "The Avatar component is a simple and customizable element that displays an image or initials in a circular or square shape.\nThis component is useful for displaying user profile pictures or any other image that represents a person or an entity.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-avatar\nalt-text=\"John Doe profile picture\"\nimage=\"/image/url/photo-1524593689594.jpeg\"\nlabel=\"John Doe profile picture\"\nshape=\"circle\"\nsize=\"medium\"\n>\n<bq-badge slot=\"badge\" text-color=\"#fff\">9</bq-badge>\n</bq-avatar>\n```\n\n</figure>",
1466
+ "name": "BqAvatar",
1467
+ "cssProperties": [
1468
+ {
1469
+ "description": "Avatar background color",
1470
+ "name": "--bq-avatar--background"
1471
+ },
1472
+ {
1473
+ "description": "Avatar border color",
1474
+ "name": "--bq-avatar--border-color"
1475
+ },
1476
+ {
1477
+ "description": "Avatar border style",
1478
+ "name": "--bq-avatar--border-style"
1479
+ },
1480
+ {
1481
+ "description": "Avatar border width",
1482
+ "name": "--bq-avatar--border-width"
1483
+ },
1484
+ {
1485
+ "description": "Avatar border radius for circle & any size",
1486
+ "name": "--bq-avatar--border-radius-circle"
1487
+ },
1488
+ {
1489
+ "description": "Avatar border radius for square & size xsmall",
1490
+ "name": "--bq-avatar--border-radius-squareXs"
1491
1491
  },
1492
1492
  {
1493
1493
  "description": "Avatar border radius for square & size small",
@@ -9025,144 +9025,32 @@
9025
9025
  },
9026
9026
  {
9027
9027
  "kind": "javascript-module",
9028
- "path": "components/bq-option-list.js",
9028
+ "path": "components/bq-option-group.js",
9029
9029
  "declarations": [
9030
9030
  {
9031
9031
  "kind": "class",
9032
- "description": "The option list component is a container for multiple option elements.\nIt allows to manage the appearance and size of all options at once.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-option-list>\n<bq-option value=\"football\">Football</bq-option>\n<bq-option value=\"basketball\">Basketball</bq-option>\n<bq-option value=\"tennis\">Tennis</bq-option>\n</bq-option-list>\n```\n\n</figure>",
9033
- "name": "BqOptionList",
9032
+ "description": "The option group component is a container for multiple option elements.\nIt allows to manage the appearance and size of all options at once.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-option-group class=\"hydrated\">\n<span slot=\"header-label\">Sport</span>\n<bq-option value=\"football\">Football</bq-option>\n<bq-option value=\"basketball\">Basketball</bq-option>\n<bq-option value=\"tennis\">Tennis</bq-option>\n</bq-option-group>\n```\n\n</figure>",
9033
+ "name": "BqOptionGroup",
9034
9034
  "cssProperties": [
9035
9035
  {
9036
- "description": "Option group gap between items Y axis",
9037
- "name": "--bq-option-group--gapY-list"
9038
- }
9039
- ],
9040
- "cssParts": [
9036
+ "description": "option group background color",
9037
+ "name": "--bq-option-group--background"
9038
+ },
9041
9039
  {
9042
- "description": "The component's internal wrapper.",
9043
- "name": "base"
9044
- }
9045
- ],
9046
- "slots": [
9040
+ "description": "option group font size",
9041
+ "name": "--bq-option-group--font-size"
9042
+ },
9047
9043
  {
9048
- "description": "The option items",
9049
- "name": ""
9050
- }
9051
- ],
9052
- "members": [
9044
+ "description": "option group line height",
9045
+ "name": "--bq-option-group--line-height"
9046
+ },
9053
9047
  {
9054
- "kind": "field",
9055
- "name": "el",
9056
- "type": {
9057
- "text": "HTMLBqOptionListElement"
9058
- }
9048
+ "description": "option group header padding start",
9049
+ "name": "--bq-option-group--label-padding-start"
9059
9050
  },
9060
9051
  {
9061
- "kind": "field",
9062
- "name": "ariaLabel",
9063
- "type": {
9064
- "text": "string"
9065
- },
9066
- "default": "'Options'",
9067
- "description": "Aria label for the list."
9068
- },
9069
- {
9070
- "kind": "method",
9071
- "name": "onBqSelect",
9072
- "parameters": [
9073
- {
9074
- "name": "event",
9075
- "type": {
9076
- "text": "CustomEvent<HTMLElement>"
9077
- }
9078
- }
9079
- ]
9080
- },
9081
- {
9082
- "kind": "method",
9083
- "name": "render"
9084
- }
9085
- ],
9086
- "attributes": [
9087
- {
9088
- "type": {
9089
- "text": "string"
9090
- },
9091
- "description": "Aria label for the list.",
9092
- "name": "aria-label"
9093
- },
9094
- {
9095
- "name": "aria-label",
9096
- "fieldName": "ariaLabel",
9097
- "type": {
9098
- "text": "string"
9099
- }
9100
- }
9101
- ],
9102
- "tagName": "bq-option-list",
9103
- "csspart": {
9104
- "name": "base",
9105
- "description": "The component's internal wrapper."
9106
- },
9107
- "events": [
9108
- {
9109
- "name": "bqSelect",
9110
- "type": {
9111
- "text": "EventEmitter<{ value: string; item: HTMLBqOptionElement }>"
9112
- },
9113
- "description": "Handler to be called when `bq-option` is selected (on click/enter press)."
9114
- }
9115
- ],
9116
- "customElement": true
9117
- }
9118
- ],
9119
- "exports": [
9120
- {
9121
- "kind": "js",
9122
- "name": "BqOptionList",
9123
- "declaration": {
9124
- "name": "BqOptionList",
9125
- "module": "components/bq-option-list.js"
9126
- }
9127
- },
9128
- {
9129
- "kind": "custom-element-definition",
9130
- "name": "bq-option-list",
9131
- "declaration": {
9132
- "name": "BqOptionList",
9133
- "module": "components/bq-option-list.js"
9134
- }
9135
- }
9136
- ]
9137
- },
9138
- {
9139
- "kind": "javascript-module",
9140
- "path": "components/bq-option-group.js",
9141
- "declarations": [
9142
- {
9143
- "kind": "class",
9144
- "description": "The option group component is a container for multiple option elements.\nIt allows to manage the appearance and size of all options at once.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-option-group class=\"hydrated\">\n<span slot=\"header-label\">Sport</span>\n<bq-option value=\"football\">Football</bq-option>\n<bq-option value=\"basketball\">Basketball</bq-option>\n<bq-option value=\"tennis\">Tennis</bq-option>\n</bq-option-group>\n```\n\n</figure>",
9145
- "name": "BqOptionGroup",
9146
- "cssProperties": [
9147
- {
9148
- "description": "option group background color",
9149
- "name": "--bq-option-group--background"
9150
- },
9151
- {
9152
- "description": "option group font size",
9153
- "name": "--bq-option-group--font-size"
9154
- },
9155
- {
9156
- "description": "option group line height",
9157
- "name": "--bq-option-group--line-height"
9158
- },
9159
- {
9160
- "description": "option group header padding start",
9161
- "name": "--bq-option-group--label-padding-start"
9162
- },
9163
- {
9164
- "description": "option group header padding start",
9165
- "name": "--bq-option-group--label-padding-end"
9052
+ "description": "option group header padding start",
9053
+ "name": "--bq-option-group--label-padding-end"
9166
9054
  },
9167
9055
  {
9168
9056
  "description": "option group header padding Y axis",
@@ -9280,6 +9168,118 @@
9280
9168
  }
9281
9169
  ]
9282
9170
  },
9171
+ {
9172
+ "kind": "javascript-module",
9173
+ "path": "components/bq-option-list.js",
9174
+ "declarations": [
9175
+ {
9176
+ "kind": "class",
9177
+ "description": "The option list component is a container for multiple option elements.\nIt allows to manage the appearance and size of all options at once.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-option-list>\n<bq-option value=\"football\">Football</bq-option>\n<bq-option value=\"basketball\">Basketball</bq-option>\n<bq-option value=\"tennis\">Tennis</bq-option>\n</bq-option-list>\n```\n\n</figure>",
9178
+ "name": "BqOptionList",
9179
+ "cssProperties": [
9180
+ {
9181
+ "description": "Option group gap between items Y axis",
9182
+ "name": "--bq-option-group--gapY-list"
9183
+ }
9184
+ ],
9185
+ "cssParts": [
9186
+ {
9187
+ "description": "The component's internal wrapper.",
9188
+ "name": "base"
9189
+ }
9190
+ ],
9191
+ "slots": [
9192
+ {
9193
+ "description": "The option items",
9194
+ "name": ""
9195
+ }
9196
+ ],
9197
+ "members": [
9198
+ {
9199
+ "kind": "field",
9200
+ "name": "el",
9201
+ "type": {
9202
+ "text": "HTMLBqOptionListElement"
9203
+ }
9204
+ },
9205
+ {
9206
+ "kind": "field",
9207
+ "name": "ariaLabel",
9208
+ "type": {
9209
+ "text": "string"
9210
+ },
9211
+ "default": "'Options'",
9212
+ "description": "Aria label for the list."
9213
+ },
9214
+ {
9215
+ "kind": "method",
9216
+ "name": "onBqSelect",
9217
+ "parameters": [
9218
+ {
9219
+ "name": "event",
9220
+ "type": {
9221
+ "text": "CustomEvent<HTMLElement>"
9222
+ }
9223
+ }
9224
+ ]
9225
+ },
9226
+ {
9227
+ "kind": "method",
9228
+ "name": "render"
9229
+ }
9230
+ ],
9231
+ "attributes": [
9232
+ {
9233
+ "type": {
9234
+ "text": "string"
9235
+ },
9236
+ "description": "Aria label for the list.",
9237
+ "name": "aria-label"
9238
+ },
9239
+ {
9240
+ "name": "aria-label",
9241
+ "fieldName": "ariaLabel",
9242
+ "type": {
9243
+ "text": "string"
9244
+ }
9245
+ }
9246
+ ],
9247
+ "tagName": "bq-option-list",
9248
+ "csspart": {
9249
+ "name": "base",
9250
+ "description": "The component's internal wrapper."
9251
+ },
9252
+ "events": [
9253
+ {
9254
+ "name": "bqSelect",
9255
+ "type": {
9256
+ "text": "EventEmitter<{ value: string; item: HTMLBqOptionElement }>"
9257
+ },
9258
+ "description": "Handler to be called when `bq-option` is selected (on click/enter press)."
9259
+ }
9260
+ ],
9261
+ "customElement": true
9262
+ }
9263
+ ],
9264
+ "exports": [
9265
+ {
9266
+ "kind": "js",
9267
+ "name": "BqOptionList",
9268
+ "declaration": {
9269
+ "name": "BqOptionList",
9270
+ "module": "components/bq-option-list.js"
9271
+ }
9272
+ },
9273
+ {
9274
+ "kind": "custom-element-definition",
9275
+ "name": "bq-option-list",
9276
+ "declaration": {
9277
+ "name": "BqOptionList",
9278
+ "module": "components/bq-option-list.js"
9279
+ }
9280
+ }
9281
+ ]
9282
+ },
9283
9283
  {
9284
9284
  "kind": "javascript-module",
9285
9285
  "path": "components/bq-page-title.js",
@@ -10124,103 +10124,95 @@
10124
10124
  },
10125
10125
  {
10126
10126
  "kind": "javascript-module",
10127
- "path": "components/bq-radio-group.js",
10127
+ "path": "components/bq-radio.js",
10128
10128
  "declarations": [
10129
10129
  {
10130
10130
  "kind": "class",
10131
- "description": "The radio group is a user interface component that groups radio buttons to enable a single selection within the group.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-radio-group fieldset value=\"option1\">\n<span slot=\"label\">radio group</span>\n<bq-radio value=\"option1\">Radio option 1</bq-radio>\n<bq-radio value=\"option2\">Radio option 2</bq-radio>\n<bq-radio value=\"option3\">Radio option 3</bq-radio>\n</bq-radio-group>\n```\n\n</figure>",
10132
- "name": "BqRadioGroup",
10131
+ "description": "The radio button is a user interface element that allows users to select a single option.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-radio value=\"option1\">Radio option 1</bq-radio>\n```\n\n</figure>",
10132
+ "name": "BqRadio",
10133
+ "cssProperties": [
10134
+ {
10135
+ "description": "Radio size",
10136
+ "name": "--bq-radio--size"
10137
+ },
10138
+ {
10139
+ "description": "Radio border width",
10140
+ "name": "--bq-radio--border-width"
10141
+ }
10142
+ ],
10133
10143
  "cssParts": [
10134
10144
  {
10135
- "description": "The component's internal wrapper of the radio components.",
10145
+ "description": "The component's internal wrapper of the radio component.",
10136
10146
  "name": "base"
10137
10147
  },
10138
10148
  {
10139
- "description": "The `<legend>` element that holds the text content.",
10140
- "name": "label"
10149
+ "description": "The native HTML `<input type=\"radio\">` used under the hood.",
10150
+ "name": "input"
10141
10151
  },
10142
10152
  {
10143
- "description": "The `<div>` element that holds the radio inputs.",
10144
- "name": "group"
10153
+ "description": "The component's internal wrapper of the radio component.",
10154
+ "name": "radio"
10155
+ },
10156
+ {
10157
+ "description": "The `<span>` element that holds the text content.",
10158
+ "name": "label"
10145
10159
  }
10146
10160
  ],
10147
10161
  "slots": [
10148
10162
  {
10149
- "description": "The bq-radio items to group",
10163
+ "description": "The bq-radio item",
10150
10164
  "name": ""
10151
- },
10152
- {
10153
- "description": "The label content of radio group",
10154
- "name": "label"
10155
10165
  }
10156
10166
  ],
10157
10167
  "members": [
10158
10168
  {
10159
10169
  "kind": "field",
10160
- "name": "focusedBqRadio",
10170
+ "name": "inputElement",
10161
10171
  "type": {
10162
- "text": "HTMLBqRadioElement | null"
10172
+ "text": "HTMLInputElement"
10163
10173
  },
10164
- "privacy": "private",
10165
- "default": "null"
10174
+ "privacy": "private"
10166
10175
  },
10167
10176
  {
10168
10177
  "kind": "field",
10169
- "name": "debouncedBqChange",
10178
+ "name": "el",
10170
10179
  "type": {
10171
- "text": "TDebounce<{ value: string; target: HTMLBqRadioElement }>"
10172
- },
10173
- "privacy": "private"
10174
- },
10175
- {
10176
- "kind": "field",
10177
- "name": "internals",
10178
- "type": {
10179
- "text": "ElementInternals"
10180
+ "text": "HTMLBqRadioElement"
10180
10181
  }
10181
10182
  },
10182
10183
  {
10183
10184
  "kind": "field",
10184
- "name": "el",
10185
+ "name": "checked",
10185
10186
  "type": {
10186
- "text": "HTMLBqRadioGroupElement"
10187
- }
10187
+ "text": "boolean | undefined"
10188
+ },
10189
+ "description": "If true radio input is checked"
10188
10190
  },
10189
10191
  {
10190
10192
  "kind": "field",
10191
- "name": "backgroundOnHover",
10193
+ "name": "disabled",
10192
10194
  "type": {
10193
10195
  "text": "boolean"
10194
10196
  },
10195
10197
  "default": "false",
10196
- "description": "If true, all radio inputs in the group will display a background on hover"
10197
- },
10198
- {
10199
- "kind": "field",
10200
- "name": "debounceTime",
10201
- "type": {
10202
- "text": "number"
10203
- },
10204
- "default": "0",
10205
- "description": "A number representing the delay time (in milliseconds) that `bqChange` event handler gets triggered once the value change"
10198
+ "description": "If true radio input is disabled"
10206
10199
  },
10207
10200
  {
10208
10201
  "kind": "field",
10209
- "name": "disabled",
10202
+ "name": "backgroundOnHover",
10210
10203
  "type": {
10211
10204
  "text": "boolean"
10212
10205
  },
10213
10206
  "default": "false",
10214
- "description": "If true radio inputs are disabled"
10207
+ "description": "If true radio displays background on hover"
10215
10208
  },
10216
10209
  {
10217
10210
  "kind": "field",
10218
- "name": "fieldset",
10211
+ "name": "formId",
10219
10212
  "type": {
10220
- "text": "boolean"
10213
+ "text": "string | undefined"
10221
10214
  },
10222
- "default": "false",
10223
- "description": "If true displays fieldset"
10215
+ "description": "The form ID that the radio input is associated with"
10224
10216
  },
10225
10217
  {
10226
10218
  "kind": "field",
@@ -10230,149 +10222,67 @@
10230
10222
  },
10231
10223
  "description": "Name of the HTML input form control. Submitted with the form as part of a name/value pair."
10232
10224
  },
10233
- {
10234
- "kind": "field",
10235
- "name": "orientation",
10236
- "type": {
10237
- "text": "TRadioGroupOrientation | undefined"
10238
- },
10239
- "default": "'vertical'",
10240
- "description": "The display orientation of the radio inputs"
10241
- },
10242
10225
  {
10243
10226
  "kind": "field",
10244
10227
  "name": "required",
10245
10228
  "type": {
10246
- "text": "boolean"
10247
- },
10248
- "default": "false",
10249
- "description": "If true, the radio group is required"
10250
- },
10251
- {
10252
- "kind": "field",
10253
- "name": "requiredValidationMessage",
10254
- "type": {
10255
- "text": "string | undefined"
10229
+ "text": "boolean | undefined"
10256
10230
  },
10257
- "description": "The native form validation message when the radio group is required"
10231
+ "description": "If `true`, it will indicate that the user must specify a value for the radio before the owning form can be submitted"
10258
10232
  },
10259
10233
  {
10260
10234
  "kind": "field",
10261
10235
  "name": "value",
10262
10236
  "type": {
10263
- "text": "string | undefined"
10237
+ "text": "string"
10264
10238
  },
10265
10239
  "description": "A string representing the value of the radio."
10266
10240
  },
10267
10241
  {
10268
10242
  "kind": "method",
10269
- "name": "handleGroupProperties"
10270
- },
10271
- {
10272
- "kind": "method",
10273
- "name": "checkPropValues"
10274
- },
10275
- {
10276
- "kind": "method",
10277
- "name": "checkDebounceChange"
10278
- },
10279
- {
10280
- "kind": "method",
10281
- "name": "handleRequiredChange"
10282
- },
10283
- {
10284
- "kind": "method",
10285
- "name": "formAssociatedCallback"
10286
- },
10287
- {
10288
- "kind": "method",
10289
- "name": "formResetCallback"
10290
- },
10291
- {
10292
- "kind": "method",
10293
- "name": "onMouseDown",
10294
- "parameters": [
10295
- {
10296
- "name": "event",
10297
- "type": {
10298
- "text": "MouseEvent"
10299
- }
10300
- }
10301
- ]
10302
- },
10303
- {
10304
- "kind": "method",
10305
- "name": "onBqClick",
10306
- "parameters": [
10307
- {
10308
- "name": "event",
10309
- "type": {
10310
- "text": "CustomEvent<HTMLBqRadioElement>"
10311
- }
10312
- }
10313
- ]
10243
+ "name": "vClick",
10244
+ "description": "Simulate a click event on the native `<input>` HTML element used under the hood.\nUse this method instead of the global `element.click()`."
10314
10245
  },
10315
10246
  {
10316
10247
  "kind": "method",
10317
- "name": "onBqKeyDown",
10318
- "parameters": [
10319
- {
10320
- "name": "event",
10321
- "type": {
10322
- "text": "CustomEvent<KeyboardEvent>"
10323
- }
10324
- }
10325
- ]
10248
+ "name": "vFocus",
10249
+ "description": "Sets focus on the native `<input>` HTML element used under the hood.\nUse this method instead of the global `element.focus()`."
10326
10250
  },
10327
10251
  {
10328
10252
  "kind": "method",
10329
- "name": "onBqFocus",
10330
- "parameters": [
10331
- {
10332
- "name": "event",
10333
- "type": {
10334
- "text": "CustomEvent<HTMLBqRadioElement>"
10335
- }
10336
- }
10337
- ]
10253
+ "name": "vBlur",
10254
+ "description": "Remove focus from the native `<input>` HTML element used under the hood.\nUse this method instead of the global `element.blur()`."
10338
10255
  },
10339
10256
  {
10340
10257
  "kind": "method",
10341
- "name": "onBqBlur",
10342
- "parameters": [
10343
- {
10344
- "name": "event",
10345
- "type": {
10346
- "text": "CustomEvent<HTMLBqRadioElement>"
10347
- }
10348
- }
10349
- ]
10258
+ "name": "getNativeInput",
10259
+ "description": "Returns the native `<input>` HTML element used under the hood."
10350
10260
  },
10351
10261
  {
10352
10262
  "kind": "field",
10353
- "name": "focusRadioInputSibling",
10263
+ "name": "handleClick",
10354
10264
  "privacy": "private"
10355
10265
  },
10356
10266
  {
10357
10267
  "kind": "field",
10358
- "name": "setCheckedRadioItem",
10268
+ "name": "handleOnFocus",
10359
10269
  "privacy": "private"
10360
10270
  },
10361
10271
  {
10362
10272
  "kind": "field",
10363
- "name": "getNextRadioElement",
10273
+ "name": "handleOnBlur",
10364
10274
  "privacy": "private"
10365
10275
  },
10366
10276
  {
10367
10277
  "kind": "field",
10368
- "name": "updateFormValidity",
10278
+ "name": "handleOnKeyDown",
10369
10279
  "privacy": "private"
10370
10280
  },
10371
10281
  {
10372
10282
  "kind": "field",
10373
- "name": "bqRadioElements",
10283
+ "name": "tabindex",
10374
10284
  "type": {
10375
- "text": "HTMLBqRadioElement[]"
10285
+ "text": "string"
10376
10286
  },
10377
10287
  "privacy": "private",
10378
10288
  "readonly": true
@@ -10383,16 +10293,49 @@
10383
10293
  }
10384
10294
  ],
10385
10295
  "events": [
10296
+ {
10297
+ "description": "Handler to be called when the radio loses focus",
10298
+ "name": "bqBlur"
10299
+ },
10386
10300
  {
10387
10301
  "description": "Handler to be called when the radio state changes",
10388
- "name": "bqChange"
10302
+ "name": "bqClick"
10389
10303
  },
10390
10304
  {
10391
- "name": "bqChange",
10305
+ "description": "Handler to be called when the radio gets focused",
10306
+ "name": "bqFocus"
10307
+ },
10308
+ {
10309
+ "description": "The handler is to be called when the radio key is pressed",
10310
+ "name": "bqKeyDown"
10311
+ },
10312
+ {
10313
+ "name": "bqClick",
10392
10314
  "type": {
10393
- "text": "EventEmitter<{ value: string; target: HTMLBqRadioElement }>"
10315
+ "text": "EventEmitter<HTMLBqRadioElement>"
10394
10316
  },
10395
10317
  "description": "Handler to be called when the radio state changes"
10318
+ },
10319
+ {
10320
+ "name": "bqFocus",
10321
+ "type": {
10322
+ "text": "EventEmitter<HTMLBqRadioElement>"
10323
+ },
10324
+ "description": "Handler to be called when the radio gets focus"
10325
+ },
10326
+ {
10327
+ "name": "bqBlur",
10328
+ "type": {
10329
+ "text": "EventEmitter<HTMLBqRadioElement>"
10330
+ },
10331
+ "description": "Handler to be called when the radio loses focus"
10332
+ },
10333
+ {
10334
+ "name": "bqKeyDown",
10335
+ "type": {
10336
+ "text": "EventEmitter<KeyboardEvent>"
10337
+ },
10338
+ "description": "Handler to be called when the radio key is pressed"
10396
10339
  }
10397
10340
  ],
10398
10341
  "attributes": [
@@ -10405,24 +10348,24 @@
10405
10348
  },
10406
10349
  {
10407
10350
  "type": {
10408
- "text": "number"
10351
+ "text": "boolean"
10409
10352
  },
10410
- "description": "A number representing the delay time (in milliseconds) that bqChange event handler gets triggered once the value change",
10411
- "name": "debounce-time"
10353
+ "description": "If `true` radio input is checked",
10354
+ "name": "checked"
10412
10355
  },
10413
10356
  {
10414
10357
  "type": {
10415
10358
  "text": "boolean"
10416
10359
  },
10417
- "description": "If `true` radio inputs are disabled",
10360
+ "description": "If `true` radio input is disabled",
10418
10361
  "name": "disabled"
10419
10362
  },
10420
10363
  {
10421
10364
  "type": {
10422
- "text": "boolean"
10365
+ "text": "string"
10423
10366
  },
10424
- "description": "If `true` displays fieldset",
10425
- "name": "fieldset"
10367
+ "description": "The form ID that the radio input is associated with",
10368
+ "name": "form-id"
10426
10369
  },
10427
10370
  {
10428
10371
  "type": {
@@ -10431,73 +10374,54 @@
10431
10374
  "description": "Name of the HTML input form control. Submitted with the form as part of a name/value pair",
10432
10375
  "name": "name"
10433
10376
  },
10434
- {
10435
- "type": {
10436
- "text": "\"horizontal\" | \"vertical\""
10437
- },
10438
- "description": "The display orientation of the radio inputs",
10439
- "name": "orientation"
10440
- },
10441
10377
  {
10442
10378
  "type": {
10443
10379
  "text": "boolean"
10444
10380
  },
10445
- "description": "If `true`, the radio group is required",
10381
+ "description": "If `true`, it will indicate that the user must specify a value for the radio before the owning form can be submitted",
10446
10382
  "name": "required"
10447
10383
  },
10448
10384
  {
10449
10385
  "type": {
10450
- "text": "string"
10451
- },
10452
- "description": "The native form validation message when the radio group is required",
10453
- "name": "required-validation-message"
10454
- },
10455
- {
10456
- "type": {
10457
- "text": "string"
10386
+ "text": "boolean"
10458
10387
  },
10459
- "description": "The display orientation of the radio inputs",
10388
+ "description": "A string representing the value of the radio",
10460
10389
  "name": "value"
10461
10390
  },
10462
10391
  {
10463
- "name": "background-on-hover",
10464
- "fieldName": "backgroundOnHover"
10465
- },
10466
- {
10467
- "name": "debounce-time",
10468
- "fieldName": "debounceTime"
10392
+ "name": "checked",
10393
+ "fieldName": "checked",
10394
+ "type": {
10395
+ "text": "boolean"
10396
+ }
10469
10397
  },
10470
10398
  {
10471
10399
  "name": "disabled",
10472
10400
  "fieldName": "disabled"
10473
10401
  },
10474
10402
  {
10475
- "name": "fieldset",
10476
- "fieldName": "fieldset"
10403
+ "name": "background-on-hover",
10404
+ "fieldName": "backgroundOnHover"
10477
10405
  },
10478
10406
  {
10479
- "name": "name",
10480
- "fieldName": "name",
10407
+ "name": "form-id",
10408
+ "fieldName": "formId",
10481
10409
  "type": {
10482
10410
  "text": "string"
10483
10411
  }
10484
10412
  },
10485
10413
  {
10486
- "name": "orientation",
10487
- "fieldName": "orientation",
10414
+ "name": "name",
10415
+ "fieldName": "name",
10488
10416
  "type": {
10489
- "text": "TRadioGroupOrientation"
10417
+ "text": "string"
10490
10418
  }
10491
10419
  },
10492
10420
  {
10493
10421
  "name": "required",
10494
- "fieldName": "required"
10495
- },
10496
- {
10497
- "name": "required-validation-message",
10498
- "fieldName": "requiredValidationMessage",
10422
+ "fieldName": "required",
10499
10423
  "type": {
10500
- "text": "string"
10424
+ "text": "boolean"
10501
10425
  }
10502
10426
  },
10503
10427
  {
@@ -10508,19 +10432,23 @@
10508
10432
  }
10509
10433
  }
10510
10434
  ],
10511
- "tagName": "bq-radio-group",
10435
+ "tagName": "bq-radio",
10512
10436
  "csspart": [
10513
10437
  {
10514
10438
  "name": "base",
10515
- "description": "The component's internal wrapper of the radio components."
10439
+ "description": "The component's internal wrapper of the radio component."
10516
10440
  },
10517
10441
  {
10518
- "name": "label",
10519
- "description": "The `<legend>` element that holds the text content."
10442
+ "name": "input",
10443
+ "description": "The native HTML `<input type=\"radio\">` used under the hood."
10520
10444
  },
10521
10445
  {
10522
- "name": "group",
10523
- "description": "The `<div>` element that holds the radio inputs."
10446
+ "name": "radio",
10447
+ "description": "The component's internal wrapper of the radio component."
10448
+ },
10449
+ {
10450
+ "name": "label",
10451
+ "description": "The `<span>` element that holds the text content."
10524
10452
  }
10525
10453
  ],
10526
10454
  "customElement": true
@@ -10529,87 +10457,103 @@
10529
10457
  "exports": [
10530
10458
  {
10531
10459
  "kind": "js",
10532
- "name": "BqRadioGroup",
10460
+ "name": "BqRadio",
10533
10461
  "declaration": {
10534
- "name": "BqRadioGroup",
10535
- "module": "components/bq-radio-group.js"
10462
+ "name": "BqRadio",
10463
+ "module": "components/bq-radio.js"
10536
10464
  }
10537
10465
  },
10538
10466
  {
10539
10467
  "kind": "custom-element-definition",
10540
- "name": "bq-radio-group",
10468
+ "name": "bq-radio",
10541
10469
  "declaration": {
10542
- "name": "BqRadioGroup",
10543
- "module": "components/bq-radio-group.js"
10470
+ "name": "BqRadio",
10471
+ "module": "components/bq-radio.js"
10544
10472
  }
10545
10473
  }
10546
10474
  ]
10547
10475
  },
10548
10476
  {
10549
10477
  "kind": "javascript-module",
10550
- "path": "components/bq-radio.js",
10478
+ "path": "components/bq-radio-group.js",
10551
10479
  "declarations": [
10552
10480
  {
10553
10481
  "kind": "class",
10554
- "description": "The radio button is a user interface element that allows users to select a single option.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-radio value=\"option1\">Radio option 1</bq-radio>\n```\n\n</figure>",
10555
- "name": "BqRadio",
10556
- "cssProperties": [
10557
- {
10558
- "description": "Radio size",
10559
- "name": "--bq-radio--size"
10560
- },
10561
- {
10562
- "description": "Radio border width",
10563
- "name": "--bq-radio--border-width"
10564
- }
10565
- ],
10482
+ "description": "The radio group is a user interface component that groups radio buttons to enable a single selection within the group.\n\n## Examples\n\n<figure class=\"example\"><figcaption>How to use it</figcaption>\n\n```html\n<bq-radio-group fieldset value=\"option1\">\n<span slot=\"label\">radio group</span>\n<bq-radio value=\"option1\">Radio option 1</bq-radio>\n<bq-radio value=\"option2\">Radio option 2</bq-radio>\n<bq-radio value=\"option3\">Radio option 3</bq-radio>\n</bq-radio-group>\n```\n\n</figure>",
10483
+ "name": "BqRadioGroup",
10566
10484
  "cssParts": [
10567
10485
  {
10568
- "description": "The component's internal wrapper of the radio component.",
10486
+ "description": "The component's internal wrapper of the radio components.",
10569
10487
  "name": "base"
10570
10488
  },
10571
10489
  {
10572
- "description": "The native HTML `<input type=\"radio\">` used under the hood.",
10573
- "name": "input"
10574
- },
10575
- {
10576
- "description": "The component's internal wrapper of the radio component.",
10577
- "name": "radio"
10490
+ "description": "The `<legend>` element that holds the text content.",
10491
+ "name": "label"
10578
10492
  },
10579
10493
  {
10580
- "description": "The `<span>` element that holds the text content.",
10581
- "name": "label"
10494
+ "description": "The `<div>` element that holds the radio inputs.",
10495
+ "name": "group"
10582
10496
  }
10583
10497
  ],
10584
10498
  "slots": [
10585
10499
  {
10586
- "description": "The bq-radio item",
10500
+ "description": "The bq-radio items to group",
10587
10501
  "name": ""
10502
+ },
10503
+ {
10504
+ "description": "The label content of radio group",
10505
+ "name": "label"
10588
10506
  }
10589
10507
  ],
10590
10508
  "members": [
10591
10509
  {
10592
10510
  "kind": "field",
10593
- "name": "inputElement",
10511
+ "name": "focusedBqRadio",
10594
10512
  "type": {
10595
- "text": "HTMLInputElement"
10513
+ "text": "HTMLBqRadioElement | null"
10514
+ },
10515
+ "privacy": "private",
10516
+ "default": "null"
10517
+ },
10518
+ {
10519
+ "kind": "field",
10520
+ "name": "debouncedBqChange",
10521
+ "type": {
10522
+ "text": "TDebounce<{ value: string; target: HTMLBqRadioElement }>"
10596
10523
  },
10597
10524
  "privacy": "private"
10598
10525
  },
10526
+ {
10527
+ "kind": "field",
10528
+ "name": "internals",
10529
+ "type": {
10530
+ "text": "ElementInternals"
10531
+ }
10532
+ },
10599
10533
  {
10600
10534
  "kind": "field",
10601
10535
  "name": "el",
10602
10536
  "type": {
10603
- "text": "HTMLBqRadioElement"
10537
+ "text": "HTMLBqRadioGroupElement"
10604
10538
  }
10605
10539
  },
10606
10540
  {
10607
10541
  "kind": "field",
10608
- "name": "checked",
10542
+ "name": "backgroundOnHover",
10609
10543
  "type": {
10610
- "text": "boolean | undefined"
10544
+ "text": "boolean"
10611
10545
  },
10612
- "description": "If true radio input is checked"
10546
+ "default": "false",
10547
+ "description": "If true, all radio inputs in the group will display a background on hover"
10548
+ },
10549
+ {
10550
+ "kind": "field",
10551
+ "name": "debounceTime",
10552
+ "type": {
10553
+ "text": "number"
10554
+ },
10555
+ "default": "0",
10556
+ "description": "A number representing the delay time (in milliseconds) that `bqChange` event handler gets triggered once the value change"
10613
10557
  },
10614
10558
  {
10615
10559
  "kind": "field",
@@ -10618,94 +10562,168 @@
10618
10562
  "text": "boolean"
10619
10563
  },
10620
10564
  "default": "false",
10621
- "description": "If true radio input is disabled"
10565
+ "description": "If true radio inputs are disabled"
10622
10566
  },
10623
10567
  {
10624
10568
  "kind": "field",
10625
- "name": "backgroundOnHover",
10569
+ "name": "fieldset",
10626
10570
  "type": {
10627
10571
  "text": "boolean"
10628
10572
  },
10629
10573
  "default": "false",
10630
- "description": "If true radio displays background on hover"
10574
+ "description": "If true displays fieldset"
10631
10575
  },
10632
10576
  {
10633
10577
  "kind": "field",
10634
- "name": "formId",
10578
+ "name": "name",
10579
+ "type": {
10580
+ "text": "string"
10581
+ },
10582
+ "description": "Name of the HTML input form control. Submitted with the form as part of a name/value pair."
10583
+ },
10584
+ {
10585
+ "kind": "field",
10586
+ "name": "orientation",
10587
+ "type": {
10588
+ "text": "TRadioGroupOrientation | undefined"
10589
+ },
10590
+ "default": "'vertical'",
10591
+ "description": "The display orientation of the radio inputs"
10592
+ },
10593
+ {
10594
+ "kind": "field",
10595
+ "name": "required",
10596
+ "type": {
10597
+ "text": "boolean"
10598
+ },
10599
+ "default": "false",
10600
+ "description": "If true, the radio group is required"
10601
+ },
10602
+ {
10603
+ "kind": "field",
10604
+ "name": "requiredValidationMessage",
10635
10605
  "type": {
10636
10606
  "text": "string | undefined"
10637
10607
  },
10638
- "description": "The form ID that the radio input is associated with"
10608
+ "description": "The native form validation message when the radio group is required"
10609
+ },
10610
+ {
10611
+ "kind": "field",
10612
+ "name": "value",
10613
+ "type": {
10614
+ "text": "string | undefined"
10615
+ },
10616
+ "description": "A string representing the value of the radio."
10617
+ },
10618
+ {
10619
+ "kind": "method",
10620
+ "name": "handleGroupProperties"
10621
+ },
10622
+ {
10623
+ "kind": "method",
10624
+ "name": "checkPropValues"
10625
+ },
10626
+ {
10627
+ "kind": "method",
10628
+ "name": "checkDebounceChange"
10639
10629
  },
10640
10630
  {
10641
- "kind": "field",
10642
- "name": "name",
10643
- "type": {
10644
- "text": "string"
10645
- },
10646
- "description": "Name of the HTML input form control. Submitted with the form as part of a name/value pair."
10631
+ "kind": "method",
10632
+ "name": "handleRequiredChange"
10647
10633
  },
10648
10634
  {
10649
- "kind": "field",
10650
- "name": "required",
10651
- "type": {
10652
- "text": "boolean | undefined"
10653
- },
10654
- "description": "If `true`, it will indicate that the user must specify a value for the radio before the owning form can be submitted"
10635
+ "kind": "method",
10636
+ "name": "formAssociatedCallback"
10655
10637
  },
10656
10638
  {
10657
- "kind": "field",
10658
- "name": "value",
10659
- "type": {
10660
- "text": "string"
10661
- },
10662
- "description": "A string representing the value of the radio."
10639
+ "kind": "method",
10640
+ "name": "formResetCallback"
10663
10641
  },
10664
10642
  {
10665
10643
  "kind": "method",
10666
- "name": "vClick",
10667
- "description": "Simulate a click event on the native `<input>` HTML element used under the hood.\nUse this method instead of the global `element.click()`."
10644
+ "name": "onMouseDown",
10645
+ "parameters": [
10646
+ {
10647
+ "name": "event",
10648
+ "type": {
10649
+ "text": "MouseEvent"
10650
+ }
10651
+ }
10652
+ ]
10668
10653
  },
10669
10654
  {
10670
10655
  "kind": "method",
10671
- "name": "vFocus",
10672
- "description": "Sets focus on the native `<input>` HTML element used under the hood.\nUse this method instead of the global `element.focus()`."
10656
+ "name": "onBqClick",
10657
+ "parameters": [
10658
+ {
10659
+ "name": "event",
10660
+ "type": {
10661
+ "text": "CustomEvent<HTMLBqRadioElement>"
10662
+ }
10663
+ }
10664
+ ]
10673
10665
  },
10674
10666
  {
10675
10667
  "kind": "method",
10676
- "name": "vBlur",
10677
- "description": "Remove focus from the native `<input>` HTML element used under the hood.\nUse this method instead of the global `element.blur()`."
10668
+ "name": "onBqKeyDown",
10669
+ "parameters": [
10670
+ {
10671
+ "name": "event",
10672
+ "type": {
10673
+ "text": "CustomEvent<KeyboardEvent>"
10674
+ }
10675
+ }
10676
+ ]
10678
10677
  },
10679
10678
  {
10680
10679
  "kind": "method",
10681
- "name": "getNativeInput",
10682
- "description": "Returns the native `<input>` HTML element used under the hood."
10680
+ "name": "onBqFocus",
10681
+ "parameters": [
10682
+ {
10683
+ "name": "event",
10684
+ "type": {
10685
+ "text": "CustomEvent<HTMLBqRadioElement>"
10686
+ }
10687
+ }
10688
+ ]
10689
+ },
10690
+ {
10691
+ "kind": "method",
10692
+ "name": "onBqBlur",
10693
+ "parameters": [
10694
+ {
10695
+ "name": "event",
10696
+ "type": {
10697
+ "text": "CustomEvent<HTMLBqRadioElement>"
10698
+ }
10699
+ }
10700
+ ]
10683
10701
  },
10684
10702
  {
10685
10703
  "kind": "field",
10686
- "name": "handleClick",
10704
+ "name": "focusRadioInputSibling",
10687
10705
  "privacy": "private"
10688
10706
  },
10689
10707
  {
10690
10708
  "kind": "field",
10691
- "name": "handleOnFocus",
10709
+ "name": "setCheckedRadioItem",
10692
10710
  "privacy": "private"
10693
10711
  },
10694
10712
  {
10695
10713
  "kind": "field",
10696
- "name": "handleOnBlur",
10714
+ "name": "getNextRadioElement",
10697
10715
  "privacy": "private"
10698
10716
  },
10699
10717
  {
10700
10718
  "kind": "field",
10701
- "name": "handleOnKeyDown",
10719
+ "name": "updateFormValidity",
10702
10720
  "privacy": "private"
10703
10721
  },
10704
10722
  {
10705
10723
  "kind": "field",
10706
- "name": "tabindex",
10724
+ "name": "bqRadioElements",
10707
10725
  "type": {
10708
- "text": "string"
10726
+ "text": "HTMLBqRadioElement[]"
10709
10727
  },
10710
10728
  "privacy": "private",
10711
10729
  "readonly": true
@@ -10716,49 +10734,16 @@
10716
10734
  }
10717
10735
  ],
10718
10736
  "events": [
10719
- {
10720
- "description": "Handler to be called when the radio loses focus",
10721
- "name": "bqBlur"
10722
- },
10723
10737
  {
10724
10738
  "description": "Handler to be called when the radio state changes",
10725
- "name": "bqClick"
10726
- },
10727
- {
10728
- "description": "Handler to be called when the radio gets focused",
10729
- "name": "bqFocus"
10730
- },
10731
- {
10732
- "description": "The handler is to be called when the radio key is pressed",
10733
- "name": "bqKeyDown"
10739
+ "name": "bqChange"
10734
10740
  },
10735
10741
  {
10736
- "name": "bqClick",
10742
+ "name": "bqChange",
10737
10743
  "type": {
10738
- "text": "EventEmitter<HTMLBqRadioElement>"
10744
+ "text": "EventEmitter<{ value: string; target: HTMLBqRadioElement }>"
10739
10745
  },
10740
10746
  "description": "Handler to be called when the radio state changes"
10741
- },
10742
- {
10743
- "name": "bqFocus",
10744
- "type": {
10745
- "text": "EventEmitter<HTMLBqRadioElement>"
10746
- },
10747
- "description": "Handler to be called when the radio gets focus"
10748
- },
10749
- {
10750
- "name": "bqBlur",
10751
- "type": {
10752
- "text": "EventEmitter<HTMLBqRadioElement>"
10753
- },
10754
- "description": "Handler to be called when the radio loses focus"
10755
- },
10756
- {
10757
- "name": "bqKeyDown",
10758
- "type": {
10759
- "text": "EventEmitter<KeyboardEvent>"
10760
- },
10761
- "description": "Handler to be called when the radio key is pressed"
10762
10747
  }
10763
10748
  ],
10764
10749
  "attributes": [
@@ -10771,24 +10756,24 @@
10771
10756
  },
10772
10757
  {
10773
10758
  "type": {
10774
- "text": "boolean"
10759
+ "text": "number"
10775
10760
  },
10776
- "description": "If `true` radio input is checked",
10777
- "name": "checked"
10761
+ "description": "A number representing the delay time (in milliseconds) that bqChange event handler gets triggered once the value change",
10762
+ "name": "debounce-time"
10778
10763
  },
10779
10764
  {
10780
10765
  "type": {
10781
10766
  "text": "boolean"
10782
10767
  },
10783
- "description": "If `true` radio input is disabled",
10768
+ "description": "If `true` radio inputs are disabled",
10784
10769
  "name": "disabled"
10785
10770
  },
10786
10771
  {
10787
10772
  "type": {
10788
- "text": "string"
10773
+ "text": "boolean"
10789
10774
  },
10790
- "description": "The form ID that the radio input is associated with",
10791
- "name": "form-id"
10775
+ "description": "If `true` displays fieldset",
10776
+ "name": "fieldset"
10792
10777
  },
10793
10778
  {
10794
10779
  "type": {
@@ -10797,54 +10782,73 @@
10797
10782
  "description": "Name of the HTML input form control. Submitted with the form as part of a name/value pair",
10798
10783
  "name": "name"
10799
10784
  },
10785
+ {
10786
+ "type": {
10787
+ "text": "\"horizontal\" | \"vertical\""
10788
+ },
10789
+ "description": "The display orientation of the radio inputs",
10790
+ "name": "orientation"
10791
+ },
10800
10792
  {
10801
10793
  "type": {
10802
10794
  "text": "boolean"
10803
10795
  },
10804
- "description": "If `true`, it will indicate that the user must specify a value for the radio before the owning form can be submitted",
10796
+ "description": "If `true`, the radio group is required",
10805
10797
  "name": "required"
10806
10798
  },
10807
10799
  {
10808
10800
  "type": {
10809
- "text": "boolean"
10801
+ "text": "string"
10810
10802
  },
10811
- "description": "A string representing the value of the radio",
10812
- "name": "value"
10803
+ "description": "The native form validation message when the radio group is required",
10804
+ "name": "required-validation-message"
10813
10805
  },
10814
10806
  {
10815
- "name": "checked",
10816
- "fieldName": "checked",
10817
10807
  "type": {
10818
- "text": "boolean"
10819
- }
10808
+ "text": "string"
10809
+ },
10810
+ "description": "The display orientation of the radio inputs",
10811
+ "name": "value"
10812
+ },
10813
+ {
10814
+ "name": "background-on-hover",
10815
+ "fieldName": "backgroundOnHover"
10816
+ },
10817
+ {
10818
+ "name": "debounce-time",
10819
+ "fieldName": "debounceTime"
10820
10820
  },
10821
10821
  {
10822
10822
  "name": "disabled",
10823
10823
  "fieldName": "disabled"
10824
10824
  },
10825
10825
  {
10826
- "name": "background-on-hover",
10827
- "fieldName": "backgroundOnHover"
10826
+ "name": "fieldset",
10827
+ "fieldName": "fieldset"
10828
10828
  },
10829
10829
  {
10830
- "name": "form-id",
10831
- "fieldName": "formId",
10830
+ "name": "name",
10831
+ "fieldName": "name",
10832
10832
  "type": {
10833
10833
  "text": "string"
10834
10834
  }
10835
10835
  },
10836
10836
  {
10837
- "name": "name",
10838
- "fieldName": "name",
10837
+ "name": "orientation",
10838
+ "fieldName": "orientation",
10839
10839
  "type": {
10840
- "text": "string"
10840
+ "text": "TRadioGroupOrientation"
10841
10841
  }
10842
10842
  },
10843
10843
  {
10844
10844
  "name": "required",
10845
- "fieldName": "required",
10845
+ "fieldName": "required"
10846
+ },
10847
+ {
10848
+ "name": "required-validation-message",
10849
+ "fieldName": "requiredValidationMessage",
10846
10850
  "type": {
10847
- "text": "boolean"
10851
+ "text": "string"
10848
10852
  }
10849
10853
  },
10850
10854
  {
@@ -10855,23 +10859,19 @@
10855
10859
  }
10856
10860
  }
10857
10861
  ],
10858
- "tagName": "bq-radio",
10862
+ "tagName": "bq-radio-group",
10859
10863
  "csspart": [
10860
10864
  {
10861
10865
  "name": "base",
10862
- "description": "The component's internal wrapper of the radio component."
10863
- },
10864
- {
10865
- "name": "input",
10866
- "description": "The native HTML `<input type=\"radio\">` used under the hood."
10866
+ "description": "The component's internal wrapper of the radio components."
10867
10867
  },
10868
10868
  {
10869
- "name": "radio",
10870
- "description": "The component's internal wrapper of the radio component."
10869
+ "name": "label",
10870
+ "description": "The `<legend>` element that holds the text content."
10871
10871
  },
10872
10872
  {
10873
- "name": "label",
10874
- "description": "The `<span>` element that holds the text content."
10873
+ "name": "group",
10874
+ "description": "The `<div>` element that holds the radio inputs."
10875
10875
  }
10876
10876
  ],
10877
10877
  "customElement": true
@@ -10880,18 +10880,18 @@
10880
10880
  "exports": [
10881
10881
  {
10882
10882
  "kind": "js",
10883
- "name": "BqRadio",
10883
+ "name": "BqRadioGroup",
10884
10884
  "declaration": {
10885
- "name": "BqRadio",
10886
- "module": "components/bq-radio.js"
10885
+ "name": "BqRadioGroup",
10886
+ "module": "components/bq-radio-group.js"
10887
10887
  }
10888
10888
  },
10889
10889
  {
10890
10890
  "kind": "custom-element-definition",
10891
- "name": "bq-radio",
10891
+ "name": "bq-radio-group",
10892
10892
  "declaration": {
10893
- "name": "BqRadio",
10894
- "module": "components/bq-radio.js"
10893
+ "name": "BqRadioGroup",
10894
+ "module": "components/bq-radio-group.js"
10895
10895
  }
10896
10896
  }
10897
10897
  ]
@@ -11139,6 +11139,14 @@
11139
11139
  },
11140
11140
  "privacy": "private"
11141
11141
  },
11142
+ {
11143
+ "kind": "field",
11144
+ "name": "debounceInput",
11145
+ "type": {
11146
+ "text": "TDebounce<void>"
11147
+ },
11148
+ "privacy": "private"
11149
+ },
11142
11150
  {
11143
11151
  "kind": "field",
11144
11152
  "name": "fallbackInputId",
@@ -11456,6 +11464,25 @@
11456
11464
  },
11457
11465
  "description": "Clears the selected value."
11458
11466
  },
11467
+ {
11468
+ "kind": "method",
11469
+ "name": "reset",
11470
+ "return": {
11471
+ "type": {
11472
+ "text": "Promise<void>"
11473
+ }
11474
+ },
11475
+ "parameters": [
11476
+ {
11477
+ "name": "value",
11478
+ "type": {
11479
+ "text": "TSelectValue"
11480
+ },
11481
+ "description": "The value to reset the Select input to."
11482
+ }
11483
+ ],
11484
+ "description": "Resets the Select input to a previous value."
11485
+ },
11459
11486
  {
11460
11487
  "kind": "field",
11461
11488
  "name": "initMultipleValue",
@@ -11486,6 +11513,11 @@
11486
11513
  "name": "handleSearchFilter",
11487
11514
  "privacy": "private"
11488
11515
  },
11516
+ {
11517
+ "kind": "field",
11518
+ "name": "handleInput",
11519
+ "privacy": "private"
11520
+ },
11489
11521
  {
11490
11522
  "kind": "field",
11491
11523
  "name": "handleClearClick",
@@ -11601,6 +11633,13 @@
11601
11633
  "text": "EventEmitter<{ value: string | number | string[]; item: HTMLBqOptionElement }>"
11602
11634
  },
11603
11635
  "description": "Callback handler emitted when the selected value has changed"
11636
+ },
11637
+ {
11638
+ "name": "bqInput",
11639
+ "type": {
11640
+ "text": "EventEmitter<{ value: string | number | string[] }>"
11641
+ },
11642
+ "description": "Callback handler emitted when the Select input changes its value while typing"
11604
11643
  }
11605
11644
  ],
11606
11645
  "attributes": [