@bythium/unisson 0.1.0 → 0.2.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.
- package/README.md +61 -15
- package/dist/CHANGELOG.md +29 -1
- package/dist/badge.d.ts +27 -0
- package/dist/badge.js +1 -0
- package/dist/button.js +1 -1
- package/dist/card.d.ts +29 -0
- package/dist/card.js +1 -0
- package/dist/checkbox.d.ts +39 -0
- package/dist/checkbox.js +1 -0
- package/dist/chunks/chunk-4JVFLK3U.js +416 -0
- package/dist/chunks/chunk-4LYJO5OS.js +411 -0
- package/dist/chunks/chunk-53M4DJQN.js +406 -0
- package/dist/chunks/chunk-5UXAUVTG.js +1 -0
- package/dist/chunks/chunk-6OG5ZBWQ.js +334 -0
- package/dist/chunks/chunk-7YT6MUHG.js +383 -0
- package/dist/chunks/chunk-B2JFDWCV.js +265 -0
- package/dist/chunks/chunk-D52FUFUP.js +1 -0
- package/dist/chunks/{chunk-MYB6FQX2.js → chunk-FATZ4W4Y.js} +2 -2
- package/dist/chunks/chunk-GG2TGBO7.js +388 -0
- package/dist/chunks/chunk-HBQNWILJ.js +447 -0
- package/dist/chunks/chunk-HYLPNRSS.js +346 -0
- package/dist/chunks/chunk-I67ANBTP.js +328 -0
- package/dist/chunks/chunk-IGDZPHRL.js +338 -0
- package/dist/chunks/chunk-J5K4GGOS.js +269 -0
- package/dist/chunks/chunk-KDXXLMWM.js +1 -0
- package/dist/chunks/{chunk-WKXQ2JMZ.js → chunk-NHTQILO5.js} +2 -2
- package/dist/chunks/chunk-ORYY4OPY.js +307 -0
- package/dist/chunks/chunk-QMY5FB4F.js +293 -0
- package/dist/chunks/chunk-SADTI7JS.js +319 -0
- package/dist/chunks/chunk-SEAWGQLP.js +316 -0
- package/dist/chunks/chunk-SUDTJKQT.js +314 -0
- package/dist/chunks/chunk-SVPZPTWA.js +353 -0
- package/dist/chunks/{chunk-MWNIQCR3.js → chunk-U7UKQQ5V.js} +1 -1
- package/dist/chunks/chunk-YAVUNJL2.js +326 -0
- package/dist/chunks/chunk-ZOW53TBP.js +358 -0
- package/dist/confirm-button.js +1 -1
- package/dist/copy-button.js +1 -1
- package/dist/custom-elements.json +3925 -0
- package/dist/define.d.ts +20 -0
- package/dist/define.js +1 -1
- package/dist/dialog.d.ts +29 -0
- package/dist/dialog.js +1 -0
- package/dist/field.d.ts +23 -0
- package/dist/field.js +1 -0
- package/dist/form.d.ts +29 -0
- package/dist/form.js +1 -0
- package/dist/heading.d.ts +21 -0
- package/dist/heading.js +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.js +1 -1
- package/dist/inline-alert.d.ts +25 -0
- package/dist/inline-alert.js +1 -0
- package/dist/input.d.ts +53 -0
- package/dist/input.js +1 -0
- package/dist/radio-group.d.ts +45 -0
- package/dist/radio-group.js +1 -0
- package/dist/react/badge.d.ts +25 -0
- package/dist/react/badge.js +7 -0
- package/dist/react/card.d.ts +27 -0
- package/dist/react/card.js +7 -0
- package/dist/react/checkbox.d.ts +37 -0
- package/dist/react/checkbox.js +7 -0
- package/dist/react/dialog.d.ts +27 -0
- package/dist/react/dialog.js +7 -0
- package/dist/react/field.d.ts +21 -0
- package/dist/react/field.js +7 -0
- package/dist/react/form.d.ts +27 -0
- package/dist/react/form.js +7 -0
- package/dist/react/heading.d.ts +19 -0
- package/dist/react/heading.js +7 -0
- package/dist/react/index.d.ts +20 -0
- package/dist/react/index.js +20 -0
- package/dist/react/inline-alert.d.ts +23 -0
- package/dist/react/inline-alert.js +7 -0
- package/dist/react/input.d.ts +51 -0
- package/dist/react/input.js +7 -0
- package/dist/react/radio-group.d.ts +43 -0
- package/dist/react/radio-group.js +7 -0
- package/dist/react/select.d.ts +39 -0
- package/dist/react/select.js +7 -0
- package/dist/react/stack.d.ts +25 -0
- package/dist/react/stack.js +7 -0
- package/dist/react/switch.d.ts +37 -0
- package/dist/react/switch.js +7 -0
- package/dist/react/tab-panel.d.ts +23 -0
- package/dist/react/tab-panel.js +7 -0
- package/dist/react/tab.d.ts +23 -0
- package/dist/react/tab.js +7 -0
- package/dist/react/tabs.d.ts +27 -0
- package/dist/react/tabs.js +7 -0
- package/dist/react/text.d.ts +23 -0
- package/dist/react/text.js +7 -0
- package/dist/react/textarea.d.ts +43 -0
- package/dist/react/textarea.js +7 -0
- package/dist/react/toast.d.ts +25 -0
- package/dist/react/toast.js +7 -0
- package/dist/react/toaster.d.ts +21 -0
- package/dist/react/toaster.js +7 -0
- package/dist/select.d.ts +41 -0
- package/dist/select.js +1 -0
- package/dist/stack.d.ts +27 -0
- package/dist/stack.js +1 -0
- package/dist/svelte/OBadge.svelte +14 -0
- package/dist/svelte/OBadge.svelte.d.ts +26 -0
- package/dist/svelte/OCard.svelte +14 -0
- package/dist/svelte/OCard.svelte.d.ts +28 -0
- package/dist/svelte/OCheckbox.svelte +14 -0
- package/dist/svelte/OCheckbox.svelte.d.ts +38 -0
- package/dist/svelte/ODialog.svelte +14 -0
- package/dist/svelte/ODialog.svelte.d.ts +28 -0
- package/dist/svelte/OField.svelte +14 -0
- package/dist/svelte/OField.svelte.d.ts +22 -0
- package/dist/svelte/OForm.svelte +14 -0
- package/dist/svelte/OForm.svelte.d.ts +28 -0
- package/dist/svelte/OHeading.svelte +14 -0
- package/dist/svelte/OHeading.svelte.d.ts +20 -0
- package/dist/svelte/OInlineAlert.svelte +14 -0
- package/dist/svelte/OInlineAlert.svelte.d.ts +24 -0
- package/dist/svelte/OInput.svelte +14 -0
- package/dist/svelte/OInput.svelte.d.ts +52 -0
- package/dist/svelte/ORadioGroup.svelte +14 -0
- package/dist/svelte/ORadioGroup.svelte.d.ts +44 -0
- package/dist/svelte/OSelect.svelte +14 -0
- package/dist/svelte/OSelect.svelte.d.ts +40 -0
- package/dist/svelte/OStack.svelte +14 -0
- package/dist/svelte/OStack.svelte.d.ts +26 -0
- package/dist/svelte/OSwitch.svelte +14 -0
- package/dist/svelte/OSwitch.svelte.d.ts +38 -0
- package/dist/svelte/OTab.svelte +14 -0
- package/dist/svelte/OTab.svelte.d.ts +24 -0
- package/dist/svelte/OTabPanel.svelte +14 -0
- package/dist/svelte/OTabPanel.svelte.d.ts +24 -0
- package/dist/svelte/OTabs.svelte +14 -0
- package/dist/svelte/OTabs.svelte.d.ts +28 -0
- package/dist/svelte/OText.svelte +14 -0
- package/dist/svelte/OText.svelte.d.ts +24 -0
- package/dist/svelte/OTextarea.svelte +14 -0
- package/dist/svelte/OTextarea.svelte.d.ts +44 -0
- package/dist/svelte/OToast.svelte +14 -0
- package/dist/svelte/OToast.svelte.d.ts +26 -0
- package/dist/svelte/OToaster.svelte +14 -0
- package/dist/svelte/OToaster.svelte.d.ts +22 -0
- package/dist/svelte/index.d.ts +20 -0
- package/dist/svelte/index.js +20 -0
- package/dist/switch.d.ts +39 -0
- package/dist/switch.js +1 -0
- package/dist/tab-panel.d.ts +25 -0
- package/dist/tab-panel.js +1 -0
- package/dist/tab.d.ts +25 -0
- package/dist/tab.js +1 -0
- package/dist/tabs.d.ts +29 -0
- package/dist/tabs.js +1 -0
- package/dist/text.d.ts +25 -0
- package/dist/text.js +1 -0
- package/dist/textarea.d.ts +45 -0
- package/dist/textarea.js +1 -0
- package/dist/toast.d.ts +27 -0
- package/dist/toast.js +1 -0
- package/dist/toaster.d.ts +23 -0
- package/dist/toaster.js +1 -0
- package/dist/vue/badge.d.ts +26 -0
- package/dist/vue/badge.js +6 -0
- package/dist/vue/card.d.ts +28 -0
- package/dist/vue/card.js +6 -0
- package/dist/vue/checkbox.d.ts +37 -0
- package/dist/vue/checkbox.js +6 -0
- package/dist/vue/dialog.d.ts +27 -0
- package/dist/vue/dialog.js +6 -0
- package/dist/vue/field.d.ts +22 -0
- package/dist/vue/field.js +6 -0
- package/dist/vue/form.d.ts +27 -0
- package/dist/vue/form.js +6 -0
- package/dist/vue/heading.d.ts +20 -0
- package/dist/vue/heading.js +6 -0
- package/dist/vue/index.d.ts +20 -0
- package/dist/vue/index.js +20 -0
- package/dist/vue/inline-alert.d.ts +23 -0
- package/dist/vue/inline-alert.js +6 -0
- package/dist/vue/input.d.ts +51 -0
- package/dist/vue/input.js +6 -0
- package/dist/vue/radio-group.d.ts +43 -0
- package/dist/vue/radio-group.js +6 -0
- package/dist/vue/select.d.ts +39 -0
- package/dist/vue/select.js +6 -0
- package/dist/vue/stack.d.ts +26 -0
- package/dist/vue/stack.js +6 -0
- package/dist/vue/switch.d.ts +37 -0
- package/dist/vue/switch.js +6 -0
- package/dist/vue/tab-panel.d.ts +24 -0
- package/dist/vue/tab-panel.js +6 -0
- package/dist/vue/tab.d.ts +24 -0
- package/dist/vue/tab.js +6 -0
- package/dist/vue/tabs.d.ts +27 -0
- package/dist/vue/tabs.js +6 -0
- package/dist/vue/text.d.ts +24 -0
- package/dist/vue/text.js +6 -0
- package/dist/vue/textarea.d.ts +43 -0
- package/dist/vue/textarea.js +6 -0
- package/dist/vue/toast.d.ts +25 -0
- package/dist/vue/toast.js +6 -0
- package/dist/vue/toaster.d.ts +22 -0
- package/dist/vue/toaster.js +6 -0
- package/package.json +346 -3
- package/dist/chunks/chunk-BAYUYXVR.js +0 -1
|
@@ -1475,6 +1475,3931 @@
|
|
|
1475
1475
|
}
|
|
1476
1476
|
}
|
|
1477
1477
|
]
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"kind": "javascript-module",
|
|
1481
|
+
"path": "dist/text.js",
|
|
1482
|
+
"declarations": [
|
|
1483
|
+
{
|
|
1484
|
+
"kind": "class",
|
|
1485
|
+
"name": "BythiumText",
|
|
1486
|
+
"tagName": "bythium-text",
|
|
1487
|
+
"customElement": true,
|
|
1488
|
+
"description": "Paragraphe de texte courant, interligne 1,55, ton par défaut ou atténué, taille courante, d'introduction ou petite, sans marge.",
|
|
1489
|
+
"attributes": [
|
|
1490
|
+
{
|
|
1491
|
+
"name": "tone",
|
|
1492
|
+
"fieldName": "tone",
|
|
1493
|
+
"type": {
|
|
1494
|
+
"text": "string"
|
|
1495
|
+
},
|
|
1496
|
+
"default": "\"default\"",
|
|
1497
|
+
"description": "Ton du texte : default (couleur du texte de la page) ou muted (couleur atténuée). Une autre valeur garde le ton par défaut."
|
|
1498
|
+
},
|
|
1499
|
+
{
|
|
1500
|
+
"name": "size",
|
|
1501
|
+
"fieldName": "size",
|
|
1502
|
+
"type": {
|
|
1503
|
+
"text": "'default' | 'lead' | 'small' | 'intro'"
|
|
1504
|
+
},
|
|
1505
|
+
"default": "\"default\"",
|
|
1506
|
+
"description": "Taille du texte : default (taille héritée, interligne 1,55) ; lead : introduction sous un titre, 18 px sur 1,6 ; small : mention discrète, 14 px sur 1,6 ; intro : introduction du premier écran d'une page d'accueil, 19 px sur 1,6."
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
"name": "variant",
|
|
1510
|
+
"fieldName": "variant",
|
|
1511
|
+
"type": {
|
|
1512
|
+
"text": "'default' | 'stat' | 'note'"
|
|
1513
|
+
},
|
|
1514
|
+
"default": "\"default\"",
|
|
1515
|
+
"description": "default : texte courant ; stat : chiffre ou décompte en police à chasse fixe, 14 px sur 1,6, graisse 600 (les décomptes des cas d'usage) ; note : petite mention en police à chasse fixe, 12 px sur 1,6 (la note sous un filtre, la source d'un chiffre). La couleur reste celle de tone."
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
"name": "kind",
|
|
1519
|
+
"fieldName": "kind",
|
|
1520
|
+
"type": {
|
|
1521
|
+
"text": "'paragraph' | 'note'"
|
|
1522
|
+
},
|
|
1523
|
+
"default": "\"paragraph\"",
|
|
1524
|
+
"description": "Sens du texte pour les lecteurs d’écran : paragraph (paragraphe du contenu) ou note (remarque à part du contenu principal : avertissement de parité, précision sur une donnée), annoncée comme note (role note). L’apparence reste celle de tone, size et variant."
|
|
1525
|
+
}
|
|
1526
|
+
],
|
|
1527
|
+
"members": [
|
|
1528
|
+
{
|
|
1529
|
+
"kind": "field",
|
|
1530
|
+
"name": "tone",
|
|
1531
|
+
"attribute": "tone",
|
|
1532
|
+
"reflects": true,
|
|
1533
|
+
"type": {
|
|
1534
|
+
"text": "string"
|
|
1535
|
+
}
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
"kind": "field",
|
|
1539
|
+
"name": "size",
|
|
1540
|
+
"attribute": "size",
|
|
1541
|
+
"reflects": true,
|
|
1542
|
+
"type": {
|
|
1543
|
+
"text": "'default' | 'lead' | 'small' | 'intro'"
|
|
1544
|
+
}
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"kind": "field",
|
|
1548
|
+
"name": "variant",
|
|
1549
|
+
"attribute": "variant",
|
|
1550
|
+
"reflects": true,
|
|
1551
|
+
"type": {
|
|
1552
|
+
"text": "'default' | 'stat' | 'note'"
|
|
1553
|
+
}
|
|
1554
|
+
},
|
|
1555
|
+
{
|
|
1556
|
+
"kind": "field",
|
|
1557
|
+
"name": "kind",
|
|
1558
|
+
"attribute": "kind",
|
|
1559
|
+
"reflects": true,
|
|
1560
|
+
"type": {
|
|
1561
|
+
"text": "'paragraph' | 'note'"
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
],
|
|
1565
|
+
"events": [],
|
|
1566
|
+
"slots": [
|
|
1567
|
+
{
|
|
1568
|
+
"name": "",
|
|
1569
|
+
"description": "Texte du paragraphe, avec au besoin des éléments de texte en ligne : bythium-strong pour un passage important en gras, bythium-link, bythium-code-inline, bythium-highlight."
|
|
1570
|
+
}
|
|
1571
|
+
],
|
|
1572
|
+
"cssParts": [
|
|
1573
|
+
{
|
|
1574
|
+
"name": "base",
|
|
1575
|
+
"description": "Paragraphe natif (p) qui porte l’interligne ; role note quand kind vaut note."
|
|
1576
|
+
}
|
|
1577
|
+
],
|
|
1578
|
+
"cssProperties": [
|
|
1579
|
+
{
|
|
1580
|
+
"name": "--bythium-text-primary"
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
"name": "--bythium-text-muted"
|
|
1584
|
+
}
|
|
1585
|
+
]
|
|
1586
|
+
}
|
|
1587
|
+
],
|
|
1588
|
+
"exports": [
|
|
1589
|
+
{
|
|
1590
|
+
"kind": "custom-element-definition",
|
|
1591
|
+
"name": "bythium-text",
|
|
1592
|
+
"declaration": {
|
|
1593
|
+
"name": "BythiumText"
|
|
1594
|
+
}
|
|
1595
|
+
}
|
|
1596
|
+
]
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
"kind": "javascript-module",
|
|
1600
|
+
"path": "dist/heading.js",
|
|
1601
|
+
"declarations": [
|
|
1602
|
+
{
|
|
1603
|
+
"kind": "class",
|
|
1604
|
+
"name": "BythiumHeading",
|
|
1605
|
+
"tagName": "bythium-heading",
|
|
1606
|
+
"customElement": true,
|
|
1607
|
+
"description": "Titre de niveau 1 à 6 choisi par la page, interlettrage négatif et graisse 600 : hiérarchise sans couleur.",
|
|
1608
|
+
"attributes": [
|
|
1609
|
+
{
|
|
1610
|
+
"name": "level",
|
|
1611
|
+
"fieldName": "level",
|
|
1612
|
+
"type": {
|
|
1613
|
+
"text": "number"
|
|
1614
|
+
},
|
|
1615
|
+
"default": "2",
|
|
1616
|
+
"description": "Niveau du titre (h1 à h6), fixé par la page (WC-N03) ; décimal tronqué, ramené entre 1 et 6."
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"name": "size",
|
|
1620
|
+
"fieldName": "size",
|
|
1621
|
+
"type": {
|
|
1622
|
+
"text": "'default' | 'display' | 'section' | 'huge' | 'hero' | 'compact' | 'subsection'"
|
|
1623
|
+
},
|
|
1624
|
+
"default": "\"default\"",
|
|
1625
|
+
"description": "default : échelle courante ; display : titre de haut de page, de 40 à 64 px selon la largeur ; section : titre de section de page marketing, de 32 à 48 px, graisse 660 ; huge : énoncé de très grande taille, de 40 à 96 px, interligne serré ; hero : titre du premier écran d'une page d'accueil, de 40 à 66 px, graisse 680, interligne 1,02 ; compact : titre réduit des pages secondaires (feuille de route, journal, cas d'usage, interfaces d'agents, démos), de 38 à 60 px, graisse 680, interligne 1,02 ; subsection : titre de panneau ou de carte, de 24 à 32 px, interlettrage -0,03em, interligne 1,15."
|
|
1626
|
+
}
|
|
1627
|
+
],
|
|
1628
|
+
"members": [
|
|
1629
|
+
{
|
|
1630
|
+
"kind": "field",
|
|
1631
|
+
"name": "level",
|
|
1632
|
+
"attribute": "level",
|
|
1633
|
+
"reflects": true,
|
|
1634
|
+
"type": {
|
|
1635
|
+
"text": "number"
|
|
1636
|
+
}
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"kind": "field",
|
|
1640
|
+
"name": "size",
|
|
1641
|
+
"attribute": "size",
|
|
1642
|
+
"reflects": true,
|
|
1643
|
+
"type": {
|
|
1644
|
+
"text": "'default' | 'display' | 'section' | 'huge' | 'hero' | 'compact' | 'subsection'"
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
],
|
|
1648
|
+
"events": [],
|
|
1649
|
+
"slots": [
|
|
1650
|
+
{
|
|
1651
|
+
"name": "",
|
|
1652
|
+
"description": "Texte du titre, qui donne aussi son nom accessible."
|
|
1653
|
+
}
|
|
1654
|
+
],
|
|
1655
|
+
"cssParts": [
|
|
1656
|
+
{
|
|
1657
|
+
"name": "base",
|
|
1658
|
+
"description": "Élément de titre natif h1 à h6."
|
|
1659
|
+
}
|
|
1660
|
+
],
|
|
1661
|
+
"cssProperties": [
|
|
1662
|
+
{
|
|
1663
|
+
"name": "--bythium-accent"
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
"name": "--bythium-border-strong"
|
|
1667
|
+
},
|
|
1668
|
+
{
|
|
1669
|
+
"name": "--bythium-status-danger"
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"name": "--bythium-border-focus"
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
"name": "--font-sans"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"name": "--bythium-link"
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
"name": "--bythium-text-muted"
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
"name": "--bythium-on-brand-primary"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"name": "--bythium-brand-primary"
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
"name": "--bythium-brand-primary-hover"
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"name": "--bythium-surface-raised"
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
"name": "--bythium-surface-base"
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"name": "--bythium-text-primary"
|
|
1700
|
+
}
|
|
1701
|
+
]
|
|
1702
|
+
}
|
|
1703
|
+
],
|
|
1704
|
+
"exports": [
|
|
1705
|
+
{
|
|
1706
|
+
"kind": "custom-element-definition",
|
|
1707
|
+
"name": "bythium-heading",
|
|
1708
|
+
"declaration": {
|
|
1709
|
+
"name": "BythiumHeading"
|
|
1710
|
+
}
|
|
1711
|
+
}
|
|
1712
|
+
]
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"kind": "javascript-module",
|
|
1716
|
+
"path": "dist/stack.js",
|
|
1717
|
+
"declarations": [
|
|
1718
|
+
{
|
|
1719
|
+
"kind": "class",
|
|
1720
|
+
"name": "BythiumStack",
|
|
1721
|
+
"tagName": "bythium-stack",
|
|
1722
|
+
"customElement": true,
|
|
1723
|
+
"description": "Pile flex qui empile ou aligne ses enfants avec un espacement régulier de l’échelle de 4 px, sans rôle ni cadre.",
|
|
1724
|
+
"attributes": [
|
|
1725
|
+
{
|
|
1726
|
+
"name": "direction",
|
|
1727
|
+
"fieldName": "direction",
|
|
1728
|
+
"type": {
|
|
1729
|
+
"text": "'vertical' | 'horizontal'"
|
|
1730
|
+
},
|
|
1731
|
+
"default": "\"vertical\"",
|
|
1732
|
+
"description": "Axe de la pile : vertical (défaut) ou horizontal."
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
"name": "gap",
|
|
1736
|
+
"fieldName": "gap",
|
|
1737
|
+
"type": {
|
|
1738
|
+
"text": "number"
|
|
1739
|
+
},
|
|
1740
|
+
"default": "3",
|
|
1741
|
+
"description": "Espacement en pas de 4 px : 0, 1, 2, 3, 4, 6 ou 8 (0 à 32 px). Une autre valeur donne l’espacement par défaut (12 px)."
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
"name": "align",
|
|
1745
|
+
"fieldName": "align",
|
|
1746
|
+
"type": {
|
|
1747
|
+
"text": "'stretch' | 'start' | 'center' | 'end' | 'baseline'"
|
|
1748
|
+
},
|
|
1749
|
+
"default": "\"stretch\"",
|
|
1750
|
+
"description": "Alignement sur l’axe transversal."
|
|
1751
|
+
},
|
|
1752
|
+
{
|
|
1753
|
+
"name": "justify",
|
|
1754
|
+
"fieldName": "justify",
|
|
1755
|
+
"type": {
|
|
1756
|
+
"text": "'start' | 'center' | 'end' | 'between'"
|
|
1757
|
+
},
|
|
1758
|
+
"default": "\"start\"",
|
|
1759
|
+
"description": "Répartition sur l’axe principal."
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"name": "wrap",
|
|
1763
|
+
"fieldName": "wrap",
|
|
1764
|
+
"type": {
|
|
1765
|
+
"text": "boolean"
|
|
1766
|
+
},
|
|
1767
|
+
"default": "false",
|
|
1768
|
+
"description": "Autorise le retour à la ligne quand la place manque."
|
|
1769
|
+
}
|
|
1770
|
+
],
|
|
1771
|
+
"members": [
|
|
1772
|
+
{
|
|
1773
|
+
"kind": "field",
|
|
1774
|
+
"name": "direction",
|
|
1775
|
+
"attribute": "direction",
|
|
1776
|
+
"reflects": true,
|
|
1777
|
+
"type": {
|
|
1778
|
+
"text": "'vertical' | 'horizontal'"
|
|
1779
|
+
}
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"kind": "field",
|
|
1783
|
+
"name": "gap",
|
|
1784
|
+
"attribute": "gap",
|
|
1785
|
+
"reflects": true,
|
|
1786
|
+
"type": {
|
|
1787
|
+
"text": "number"
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
"kind": "field",
|
|
1792
|
+
"name": "align",
|
|
1793
|
+
"attribute": "align",
|
|
1794
|
+
"reflects": true,
|
|
1795
|
+
"type": {
|
|
1796
|
+
"text": "'stretch' | 'start' | 'center' | 'end' | 'baseline'"
|
|
1797
|
+
}
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
"kind": "field",
|
|
1801
|
+
"name": "justify",
|
|
1802
|
+
"attribute": "justify",
|
|
1803
|
+
"reflects": true,
|
|
1804
|
+
"type": {
|
|
1805
|
+
"text": "'start' | 'center' | 'end' | 'between'"
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"kind": "field",
|
|
1810
|
+
"name": "wrap",
|
|
1811
|
+
"attribute": "wrap",
|
|
1812
|
+
"reflects": true,
|
|
1813
|
+
"type": {
|
|
1814
|
+
"text": "boolean"
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
],
|
|
1818
|
+
"events": [],
|
|
1819
|
+
"slots": [
|
|
1820
|
+
{
|
|
1821
|
+
"name": "",
|
|
1822
|
+
"description": "Éléments empilés, dans l’ordre du DOM."
|
|
1823
|
+
}
|
|
1824
|
+
],
|
|
1825
|
+
"cssParts": [
|
|
1826
|
+
{
|
|
1827
|
+
"name": "base",
|
|
1828
|
+
"description": "Conteneur flex qui porte la direction, l’espacement et l’alignement."
|
|
1829
|
+
}
|
|
1830
|
+
],
|
|
1831
|
+
"cssProperties": [
|
|
1832
|
+
{
|
|
1833
|
+
"name": "--bythium-stack-gap"
|
|
1834
|
+
}
|
|
1835
|
+
]
|
|
1836
|
+
}
|
|
1837
|
+
],
|
|
1838
|
+
"exports": [
|
|
1839
|
+
{
|
|
1840
|
+
"kind": "custom-element-definition",
|
|
1841
|
+
"name": "bythium-stack",
|
|
1842
|
+
"declaration": {
|
|
1843
|
+
"name": "BythiumStack"
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
]
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
"kind": "javascript-module",
|
|
1850
|
+
"path": "dist/field.js",
|
|
1851
|
+
"declarations": [
|
|
1852
|
+
{
|
|
1853
|
+
"kind": "class",
|
|
1854
|
+
"name": "BythiumField",
|
|
1855
|
+
"tagName": "bythium-field",
|
|
1856
|
+
"customElement": true,
|
|
1857
|
+
"description": "Enveloppe de champ : libellé, aide et erreur autour d’un contrôle glissé dans le slot, qu’elle nomme et décrit ; sans deuxième participation au formulaire.",
|
|
1858
|
+
"attributes": [
|
|
1859
|
+
{
|
|
1860
|
+
"name": "label",
|
|
1861
|
+
"fieldName": "label",
|
|
1862
|
+
"type": {
|
|
1863
|
+
"text": "string"
|
|
1864
|
+
},
|
|
1865
|
+
"default": "\"Champ\"",
|
|
1866
|
+
"description": "Libellé visible ; copié sur le contrôle slotté (propriété label s’il en a une, sinon aria-label), qui reçoit ainsi son nom accessible."
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
"name": "hint",
|
|
1870
|
+
"fieldName": "hint",
|
|
1871
|
+
"type": {
|
|
1872
|
+
"text": "string"
|
|
1873
|
+
},
|
|
1874
|
+
"default": "\"\"",
|
|
1875
|
+
"description": "Aide visible sous le contrôle ; avec l’erreur, elle forme l’aria-description du contrôle slotté (retirée quand les deux sont vides). Vide par défaut."
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
"name": "error",
|
|
1879
|
+
"fieldName": "error",
|
|
1880
|
+
"type": {
|
|
1881
|
+
"text": "string"
|
|
1882
|
+
},
|
|
1883
|
+
"default": "\"\"",
|
|
1884
|
+
"description": "Erreur fournie par l’application, affichée et annoncée (role status) ; pose aria-invalid=\"true\" sur le contrôle slotté."
|
|
1885
|
+
}
|
|
1886
|
+
],
|
|
1887
|
+
"members": [
|
|
1888
|
+
{
|
|
1889
|
+
"kind": "field",
|
|
1890
|
+
"name": "label",
|
|
1891
|
+
"attribute": "label",
|
|
1892
|
+
"reflects": true,
|
|
1893
|
+
"type": {
|
|
1894
|
+
"text": "string"
|
|
1895
|
+
}
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
"kind": "field",
|
|
1899
|
+
"name": "hint",
|
|
1900
|
+
"attribute": "hint",
|
|
1901
|
+
"reflects": true,
|
|
1902
|
+
"type": {
|
|
1903
|
+
"text": "string"
|
|
1904
|
+
}
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"kind": "field",
|
|
1908
|
+
"name": "error",
|
|
1909
|
+
"attribute": "error",
|
|
1910
|
+
"reflects": true,
|
|
1911
|
+
"type": {
|
|
1912
|
+
"text": "string"
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
],
|
|
1916
|
+
"events": [],
|
|
1917
|
+
"slots": [
|
|
1918
|
+
{
|
|
1919
|
+
"name": "",
|
|
1920
|
+
"description": "Contrôle à habiller : input, select ou textarea natif, ou une balise de champ qui a une propriété label. Un contrôle natif reçoit son nom (aria-label) dès le rendu serveur."
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
"name": "label",
|
|
1924
|
+
"description": "Label natif du DOM léger (for vers l’id du contrôle) à la place du libellé interne : association réelle, le clic focalise le contrôle sans JavaScript ; l’attribut label n’est alors plus copié."
|
|
1925
|
+
}
|
|
1926
|
+
],
|
|
1927
|
+
"cssParts": [
|
|
1928
|
+
{
|
|
1929
|
+
"name": "base",
|
|
1930
|
+
"description": "Conteneur en grille."
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
"name": "label",
|
|
1934
|
+
"description": "Libellé visible."
|
|
1935
|
+
},
|
|
1936
|
+
{
|
|
1937
|
+
"name": "hint",
|
|
1938
|
+
"description": "Aide sous le contrôle."
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
"name": "error",
|
|
1942
|
+
"description": "Message d’erreur, annoncé par role status."
|
|
1943
|
+
}
|
|
1944
|
+
],
|
|
1945
|
+
"cssProperties": [
|
|
1946
|
+
{
|
|
1947
|
+
"name": "--bythium-text-primary"
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
"name": "--bythium-text-secondary"
|
|
1951
|
+
},
|
|
1952
|
+
{
|
|
1953
|
+
"name": "--bythium-text-muted"
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
"name": "--bythium-surface-base"
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
"name": "--bythium-border-strong"
|
|
1960
|
+
},
|
|
1961
|
+
{
|
|
1962
|
+
"name": "--bythium-border-focus"
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
"name": "--bythium-status-danger"
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
"name": "--bythium-brand-primary"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"name": "--control-height"
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
"name": "--radius-control"
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
"name": "--duration-fast"
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
"name": "--ease-standard"
|
|
1981
|
+
}
|
|
1982
|
+
]
|
|
1983
|
+
}
|
|
1984
|
+
],
|
|
1985
|
+
"exports": [
|
|
1986
|
+
{
|
|
1987
|
+
"kind": "custom-element-definition",
|
|
1988
|
+
"name": "bythium-field",
|
|
1989
|
+
"declaration": {
|
|
1990
|
+
"name": "BythiumField"
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
]
|
|
1994
|
+
},
|
|
1995
|
+
{
|
|
1996
|
+
"kind": "javascript-module",
|
|
1997
|
+
"path": "dist/input.js",
|
|
1998
|
+
"declarations": [
|
|
1999
|
+
{
|
|
2000
|
+
"kind": "class",
|
|
2001
|
+
"name": "BythiumInput",
|
|
2002
|
+
"tagName": "bythium-input",
|
|
2003
|
+
"customElement": true,
|
|
2004
|
+
"description": "Champ de saisie natif typé (texte, courriel, URL, téléphone, nombre, date, heure, recherche), avec libellé, aide, préfixe, suffixe et erreur.",
|
|
2005
|
+
"attributes": [
|
|
2006
|
+
{
|
|
2007
|
+
"name": "value",
|
|
2008
|
+
"fieldName": "value",
|
|
2009
|
+
"type": {
|
|
2010
|
+
"text": "string"
|
|
2011
|
+
},
|
|
2012
|
+
"default": "\"\"",
|
|
2013
|
+
"description": "Valeur du champ, reflétée à chaque saisie ; celle du premier raccordement revient au reset du formulaire. Avec type color, la couleur de départ en #rrggbb : obligatoire et non vide dans une spec."
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
"name": "label",
|
|
2017
|
+
"fieldName": "label",
|
|
2018
|
+
"type": {
|
|
2019
|
+
"text": "string"
|
|
2020
|
+
},
|
|
2021
|
+
"default": "\"Champ\"",
|
|
2022
|
+
"description": "Libellé visible, rendu à côté du contrôle dans le même arbre : il donne le nom accessible."
|
|
2023
|
+
},
|
|
2024
|
+
{
|
|
2025
|
+
"name": "name",
|
|
2026
|
+
"fieldName": "name",
|
|
2027
|
+
"type": {
|
|
2028
|
+
"text": "string"
|
|
2029
|
+
},
|
|
2030
|
+
"default": "\"\"",
|
|
2031
|
+
"description": "Nom du champ dans le formulaire."
|
|
2032
|
+
},
|
|
2033
|
+
{
|
|
2034
|
+
"name": "required",
|
|
2035
|
+
"fieldName": "required",
|
|
2036
|
+
"type": {
|
|
2037
|
+
"text": "boolean"
|
|
2038
|
+
},
|
|
2039
|
+
"default": "false",
|
|
2040
|
+
"description": "Champ obligatoire : invalide tant qu’il est vide ; l’erreur ne s’affiche qu’après une interaction."
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"name": "disabled",
|
|
2044
|
+
"fieldName": "disabled",
|
|
2045
|
+
"type": {
|
|
2046
|
+
"text": "boolean"
|
|
2047
|
+
},
|
|
2048
|
+
"default": "false",
|
|
2049
|
+
"description": "Refuse la saisie ; la valeur n’est pas envoyée."
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
"name": "hint",
|
|
2053
|
+
"fieldName": "hint",
|
|
2054
|
+
"type": {
|
|
2055
|
+
"text": "string"
|
|
2056
|
+
},
|
|
2057
|
+
"default": "\"\"",
|
|
2058
|
+
"description": "Aide affichée sous le champ quand le slot help est vide."
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
"name": "type",
|
|
2062
|
+
"fieldName": "type",
|
|
2063
|
+
"type": {
|
|
2064
|
+
"text": "'text' | 'email' | 'url' | 'tel' | 'number' | 'date' | 'time' | 'search' | 'color'"
|
|
2065
|
+
},
|
|
2066
|
+
"default": "\"text\"",
|
|
2067
|
+
"description": "Type du contrôle natif. color : sélecteur de couleur natif, sa valeur écrite en #rrggbb à côté de la pastille (la couleur n’est jamais dite par la pastille seule) ; la valeur envoyée est #rrggbb en minuscules. Une spec donne toujours la couleur de départ (value), sinon le validateur signale ATTR_REQUIRED. Une valeur vide ou illisible s’écrit « Aucune couleur choisie », envoie une chaîne vide (invalide si required) et montre une pastille gris neutre #808080, jamais un noir pris pour un choix. placeholder, pattern, min, max et maxlength ne comptent pas, et readonly rend la pastille inactive."
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
"name": "placeholder",
|
|
2071
|
+
"fieldName": "placeholder",
|
|
2072
|
+
"type": {
|
|
2073
|
+
"text": "string | null"
|
|
2074
|
+
},
|
|
2075
|
+
"default": "\"\"",
|
|
2076
|
+
"description": "Exemple de saisie ; il ne remplace jamais le libellé. Absent : « Saisir… » (« Type… » en anglais) ; vide : aucun."
|
|
2077
|
+
},
|
|
2078
|
+
{
|
|
2079
|
+
"name": "autocomplete",
|
|
2080
|
+
"fieldName": "autocomplete",
|
|
2081
|
+
"type": {
|
|
2082
|
+
"text": "string"
|
|
2083
|
+
},
|
|
2084
|
+
"default": "\"\"",
|
|
2085
|
+
"description": "Jeton de remplissage automatique du contrôle natif (name, email, tel, organization, off…) ; vide : aucun."
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
"name": "locale",
|
|
2089
|
+
"fieldName": "locale",
|
|
2090
|
+
"type": {
|
|
2091
|
+
"text": "string"
|
|
2092
|
+
},
|
|
2093
|
+
"default": "\"fr\"",
|
|
2094
|
+
"description": "Langue BCP 47 des textes de la balise (mention obligatoire, exemple par défaut, messages d’erreur) : anglais pour toute balise en, français sinon."
|
|
2095
|
+
},
|
|
2096
|
+
{
|
|
2097
|
+
"name": "pattern",
|
|
2098
|
+
"fieldName": "pattern",
|
|
2099
|
+
"type": {
|
|
2100
|
+
"text": "string"
|
|
2101
|
+
},
|
|
2102
|
+
"default": "\"\"",
|
|
2103
|
+
"description": "Expression régulière que la valeur doit respecter (vide : aucune)."
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
"name": "min",
|
|
2107
|
+
"fieldName": "min",
|
|
2108
|
+
"type": {
|
|
2109
|
+
"text": "string"
|
|
2110
|
+
},
|
|
2111
|
+
"default": "\"\"",
|
|
2112
|
+
"description": "Minimum, pour les types nombre, date et heure."
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"name": "max",
|
|
2116
|
+
"fieldName": "max",
|
|
2117
|
+
"type": {
|
|
2118
|
+
"text": "string"
|
|
2119
|
+
},
|
|
2120
|
+
"default": "\"\"",
|
|
2121
|
+
"description": "Maximum, pour les types nombre, date et heure."
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
"name": "maxlength",
|
|
2125
|
+
"fieldName": "maxlength",
|
|
2126
|
+
"type": {
|
|
2127
|
+
"text": "number"
|
|
2128
|
+
},
|
|
2129
|
+
"default": "1000",
|
|
2130
|
+
"description": "Nombre maximal de caractères."
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
"name": "readonly",
|
|
2134
|
+
"fieldName": "readonly",
|
|
2135
|
+
"type": {
|
|
2136
|
+
"text": "boolean"
|
|
2137
|
+
},
|
|
2138
|
+
"default": "false",
|
|
2139
|
+
"description": "Lecture seule : la valeur est envoyée mais ne se modifie pas."
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
"name": "error",
|
|
2143
|
+
"fieldName": "error",
|
|
2144
|
+
"type": {
|
|
2145
|
+
"text": "string"
|
|
2146
|
+
},
|
|
2147
|
+
"default": "\"\"",
|
|
2148
|
+
"description": "Erreur fournie par l’application (par exemple après une validation serveur) : affichée tout de suite."
|
|
2149
|
+
}
|
|
2150
|
+
],
|
|
2151
|
+
"members": [
|
|
2152
|
+
{
|
|
2153
|
+
"kind": "field",
|
|
2154
|
+
"name": "value",
|
|
2155
|
+
"attribute": "value",
|
|
2156
|
+
"reflects": true,
|
|
2157
|
+
"type": {
|
|
2158
|
+
"text": "string"
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
"kind": "field",
|
|
2163
|
+
"name": "label",
|
|
2164
|
+
"attribute": "label",
|
|
2165
|
+
"reflects": true,
|
|
2166
|
+
"type": {
|
|
2167
|
+
"text": "string"
|
|
2168
|
+
}
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
"kind": "field",
|
|
2172
|
+
"name": "name",
|
|
2173
|
+
"attribute": "name",
|
|
2174
|
+
"reflects": true,
|
|
2175
|
+
"type": {
|
|
2176
|
+
"text": "string"
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
"kind": "field",
|
|
2181
|
+
"name": "required",
|
|
2182
|
+
"attribute": "required",
|
|
2183
|
+
"reflects": true,
|
|
2184
|
+
"type": {
|
|
2185
|
+
"text": "boolean"
|
|
2186
|
+
}
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
"kind": "field",
|
|
2190
|
+
"name": "disabled",
|
|
2191
|
+
"attribute": "disabled",
|
|
2192
|
+
"reflects": true,
|
|
2193
|
+
"type": {
|
|
2194
|
+
"text": "boolean"
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
"kind": "field",
|
|
2199
|
+
"name": "hint",
|
|
2200
|
+
"attribute": "hint",
|
|
2201
|
+
"reflects": true,
|
|
2202
|
+
"type": {
|
|
2203
|
+
"text": "string"
|
|
2204
|
+
}
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
"kind": "field",
|
|
2208
|
+
"name": "type",
|
|
2209
|
+
"attribute": "type",
|
|
2210
|
+
"reflects": true,
|
|
2211
|
+
"type": {
|
|
2212
|
+
"text": "'text' | 'email' | 'url' | 'tel' | 'number' | 'date' | 'time' | 'search' | 'color'"
|
|
2213
|
+
}
|
|
2214
|
+
},
|
|
2215
|
+
{
|
|
2216
|
+
"kind": "field",
|
|
2217
|
+
"name": "placeholder",
|
|
2218
|
+
"attribute": "placeholder",
|
|
2219
|
+
"reflects": true,
|
|
2220
|
+
"type": {
|
|
2221
|
+
"text": "string | null"
|
|
2222
|
+
}
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
"kind": "field",
|
|
2226
|
+
"name": "autocomplete",
|
|
2227
|
+
"attribute": "autocomplete",
|
|
2228
|
+
"reflects": true,
|
|
2229
|
+
"type": {
|
|
2230
|
+
"text": "string"
|
|
2231
|
+
}
|
|
2232
|
+
},
|
|
2233
|
+
{
|
|
2234
|
+
"kind": "field",
|
|
2235
|
+
"name": "locale",
|
|
2236
|
+
"attribute": "locale",
|
|
2237
|
+
"reflects": true,
|
|
2238
|
+
"type": {
|
|
2239
|
+
"text": "string"
|
|
2240
|
+
}
|
|
2241
|
+
},
|
|
2242
|
+
{
|
|
2243
|
+
"kind": "field",
|
|
2244
|
+
"name": "pattern",
|
|
2245
|
+
"attribute": "pattern",
|
|
2246
|
+
"reflects": true,
|
|
2247
|
+
"type": {
|
|
2248
|
+
"text": "string"
|
|
2249
|
+
}
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
"kind": "field",
|
|
2253
|
+
"name": "min",
|
|
2254
|
+
"attribute": "min",
|
|
2255
|
+
"reflects": true,
|
|
2256
|
+
"type": {
|
|
2257
|
+
"text": "string"
|
|
2258
|
+
}
|
|
2259
|
+
},
|
|
2260
|
+
{
|
|
2261
|
+
"kind": "field",
|
|
2262
|
+
"name": "max",
|
|
2263
|
+
"attribute": "max",
|
|
2264
|
+
"reflects": true,
|
|
2265
|
+
"type": {
|
|
2266
|
+
"text": "string"
|
|
2267
|
+
}
|
|
2268
|
+
},
|
|
2269
|
+
{
|
|
2270
|
+
"kind": "field",
|
|
2271
|
+
"name": "maxlength",
|
|
2272
|
+
"attribute": "maxlength",
|
|
2273
|
+
"reflects": true,
|
|
2274
|
+
"type": {
|
|
2275
|
+
"text": "number"
|
|
2276
|
+
}
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
"kind": "field",
|
|
2280
|
+
"name": "readonly",
|
|
2281
|
+
"attribute": "readonly",
|
|
2282
|
+
"reflects": true,
|
|
2283
|
+
"type": {
|
|
2284
|
+
"text": "boolean"
|
|
2285
|
+
}
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
"kind": "field",
|
|
2289
|
+
"name": "error",
|
|
2290
|
+
"attribute": "error",
|
|
2291
|
+
"reflects": true,
|
|
2292
|
+
"type": {
|
|
2293
|
+
"text": "string"
|
|
2294
|
+
}
|
|
2295
|
+
}
|
|
2296
|
+
],
|
|
2297
|
+
"events": [
|
|
2298
|
+
{
|
|
2299
|
+
"name": "bythium-input",
|
|
2300
|
+
"type": {
|
|
2301
|
+
"text": "CustomEvent<{ value: string }>"
|
|
2302
|
+
},
|
|
2303
|
+
"description": "Émis à chaque saisie de l’utilisateur, après la mise à jour de value."
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
"name": "bythium-change",
|
|
2307
|
+
"type": {
|
|
2308
|
+
"text": "CustomEvent<{ value: string }>"
|
|
2309
|
+
},
|
|
2310
|
+
"description": "Émis quand l’utilisateur valide la valeur (sortie du champ après modification, Entrée)."
|
|
2311
|
+
}
|
|
2312
|
+
],
|
|
2313
|
+
"slots": [
|
|
2314
|
+
{
|
|
2315
|
+
"name": "prefix",
|
|
2316
|
+
"description": "Texte ou pictogramme avant le contrôle (unité, devise)."
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
"name": "suffix",
|
|
2320
|
+
"description": "Texte ou pictogramme après le contrôle."
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"name": "help",
|
|
2324
|
+
"description": "Aide sous le champ ; remplace l’attribut hint."
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
"name": "control",
|
|
2328
|
+
"description": "Input natif du DOM léger, à la place du contrôle interne : il appartient au formulaire et part sans JavaScript ; il porte lui-même name, type, value, required et autocomplete. La balise le nomme (aria-label), le décrit et affiche son erreur."
|
|
2329
|
+
}
|
|
2330
|
+
],
|
|
2331
|
+
"cssParts": [
|
|
2332
|
+
{
|
|
2333
|
+
"name": "base",
|
|
2334
|
+
"description": "Conteneur du champ."
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
"name": "label",
|
|
2338
|
+
"description": "Libellé."
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
"name": "prefix",
|
|
2342
|
+
"description": "Emplacement du préfixe."
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
"name": "control",
|
|
2346
|
+
"description": "Contrôle input natif."
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
"name": "color-value",
|
|
2350
|
+
"description": "Valeur de couleur écrite en #rrggbb à côté de la pastille, ou « Aucune couleur choisie » quand la pastille montre le gris neutre (type color seulement) ; elle décrit le contrôle."
|
|
2351
|
+
},
|
|
2352
|
+
{
|
|
2353
|
+
"name": "suffix",
|
|
2354
|
+
"description": "Emplacement du suffixe."
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
"name": "hint",
|
|
2358
|
+
"description": "Aide."
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"name": "error",
|
|
2362
|
+
"description": "Message d’erreur, relié au contrôle par aria-describedby."
|
|
2363
|
+
}
|
|
2364
|
+
],
|
|
2365
|
+
"cssProperties": [
|
|
2366
|
+
{
|
|
2367
|
+
"name": "--bythium-text-secondary"
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
"name": "--bythium-text-muted"
|
|
2371
|
+
},
|
|
2372
|
+
{
|
|
2373
|
+
"name": "--bythium-status-danger"
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
"name": "--bythium-border-strong"
|
|
2377
|
+
},
|
|
2378
|
+
{
|
|
2379
|
+
"name": "--control-height"
|
|
2380
|
+
},
|
|
2381
|
+
{
|
|
2382
|
+
"name": "--font-mono"
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"name": "--bythium-text-primary"
|
|
2386
|
+
}
|
|
2387
|
+
]
|
|
2388
|
+
}
|
|
2389
|
+
],
|
|
2390
|
+
"exports": [
|
|
2391
|
+
{
|
|
2392
|
+
"kind": "custom-element-definition",
|
|
2393
|
+
"name": "bythium-input",
|
|
2394
|
+
"declaration": {
|
|
2395
|
+
"name": "BythiumInput"
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
]
|
|
2399
|
+
},
|
|
2400
|
+
{
|
|
2401
|
+
"kind": "javascript-module",
|
|
2402
|
+
"path": "dist/textarea.js",
|
|
2403
|
+
"declarations": [
|
|
2404
|
+
{
|
|
2405
|
+
"kind": "class",
|
|
2406
|
+
"name": "BythiumTextarea",
|
|
2407
|
+
"tagName": "bythium-textarea",
|
|
2408
|
+
"customElement": true,
|
|
2409
|
+
"description": "Texte sur plusieurs lignes avec libellé, aide, compteur de caractères, erreur après interaction et hauteur automatique optionnelle.",
|
|
2410
|
+
"attributes": [
|
|
2411
|
+
{
|
|
2412
|
+
"name": "value",
|
|
2413
|
+
"fieldName": "value",
|
|
2414
|
+
"type": {
|
|
2415
|
+
"text": "string"
|
|
2416
|
+
},
|
|
2417
|
+
"default": "\"\"",
|
|
2418
|
+
"description": "Texte du champ, reflété à chaque saisie ; celui du premier raccordement revient au reset du formulaire."
|
|
2419
|
+
},
|
|
2420
|
+
{
|
|
2421
|
+
"name": "label",
|
|
2422
|
+
"fieldName": "label",
|
|
2423
|
+
"type": {
|
|
2424
|
+
"text": "string"
|
|
2425
|
+
},
|
|
2426
|
+
"default": "\"Champ\"",
|
|
2427
|
+
"description": "Libellé visible, rendu à côté du contrôle dans le même arbre : il donne le nom accessible."
|
|
2428
|
+
},
|
|
2429
|
+
{
|
|
2430
|
+
"name": "name",
|
|
2431
|
+
"fieldName": "name",
|
|
2432
|
+
"type": {
|
|
2433
|
+
"text": "string"
|
|
2434
|
+
},
|
|
2435
|
+
"default": "\"\"",
|
|
2436
|
+
"description": "Nom du champ dans le formulaire."
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
"name": "required",
|
|
2440
|
+
"fieldName": "required",
|
|
2441
|
+
"type": {
|
|
2442
|
+
"text": "boolean"
|
|
2443
|
+
},
|
|
2444
|
+
"default": "false",
|
|
2445
|
+
"description": "Champ obligatoire : invalide tant qu’il est vide ; l’erreur ne s’affiche qu’après une interaction."
|
|
2446
|
+
},
|
|
2447
|
+
{
|
|
2448
|
+
"name": "disabled",
|
|
2449
|
+
"fieldName": "disabled",
|
|
2450
|
+
"type": {
|
|
2451
|
+
"text": "boolean"
|
|
2452
|
+
},
|
|
2453
|
+
"default": "false",
|
|
2454
|
+
"description": "Refuse la saisie ; la valeur n’est pas envoyée."
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
"name": "hint",
|
|
2458
|
+
"fieldName": "hint",
|
|
2459
|
+
"type": {
|
|
2460
|
+
"text": "string"
|
|
2461
|
+
},
|
|
2462
|
+
"default": "\"\"",
|
|
2463
|
+
"description": "Aide affichée sous le champ quand le slot help est vide."
|
|
2464
|
+
},
|
|
2465
|
+
{
|
|
2466
|
+
"name": "rows",
|
|
2467
|
+
"fieldName": "rows",
|
|
2468
|
+
"type": {
|
|
2469
|
+
"text": "number"
|
|
2470
|
+
},
|
|
2471
|
+
"default": "3",
|
|
2472
|
+
"description": "Nombre de lignes visibles (hauteur de départ)."
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
"name": "maxlength",
|
|
2476
|
+
"fieldName": "maxlength",
|
|
2477
|
+
"type": {
|
|
2478
|
+
"text": "number"
|
|
2479
|
+
},
|
|
2480
|
+
"default": "500",
|
|
2481
|
+
"description": "Nombre maximal de caractères, repris par le compteur."
|
|
2482
|
+
},
|
|
2483
|
+
{
|
|
2484
|
+
"name": "autosize",
|
|
2485
|
+
"fieldName": "autosize",
|
|
2486
|
+
"type": {
|
|
2487
|
+
"text": "boolean"
|
|
2488
|
+
},
|
|
2489
|
+
"default": "false",
|
|
2490
|
+
"description": "Hauteur qui suit le contenu après chaque rendu, 500 px au plus."
|
|
2491
|
+
},
|
|
2492
|
+
{
|
|
2493
|
+
"name": "placeholder",
|
|
2494
|
+
"fieldName": "placeholder",
|
|
2495
|
+
"type": {
|
|
2496
|
+
"text": "string"
|
|
2497
|
+
},
|
|
2498
|
+
"default": "\"\"",
|
|
2499
|
+
"description": "Exemple de saisie ; il ne remplace jamais le libellé. Vide par défaut."
|
|
2500
|
+
},
|
|
2501
|
+
{
|
|
2502
|
+
"name": "error",
|
|
2503
|
+
"fieldName": "error",
|
|
2504
|
+
"type": {
|
|
2505
|
+
"text": "string"
|
|
2506
|
+
},
|
|
2507
|
+
"default": "\"\"",
|
|
2508
|
+
"description": "Erreur fournie par l’application (par exemple après une validation serveur) : affichée tout de suite."
|
|
2509
|
+
},
|
|
2510
|
+
{
|
|
2511
|
+
"name": "locale",
|
|
2512
|
+
"fieldName": "locale",
|
|
2513
|
+
"type": {
|
|
2514
|
+
"text": "string"
|
|
2515
|
+
},
|
|
2516
|
+
"default": "\"fr\"",
|
|
2517
|
+
"description": "Langue BCP 47 des textes de la balise (mention obligatoire, messages d’erreur) : anglais pour toute balise en, français sinon."
|
|
2518
|
+
}
|
|
2519
|
+
],
|
|
2520
|
+
"members": [
|
|
2521
|
+
{
|
|
2522
|
+
"kind": "field",
|
|
2523
|
+
"name": "value",
|
|
2524
|
+
"attribute": "value",
|
|
2525
|
+
"reflects": true,
|
|
2526
|
+
"type": {
|
|
2527
|
+
"text": "string"
|
|
2528
|
+
}
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
"kind": "field",
|
|
2532
|
+
"name": "label",
|
|
2533
|
+
"attribute": "label",
|
|
2534
|
+
"reflects": true,
|
|
2535
|
+
"type": {
|
|
2536
|
+
"text": "string"
|
|
2537
|
+
}
|
|
2538
|
+
},
|
|
2539
|
+
{
|
|
2540
|
+
"kind": "field",
|
|
2541
|
+
"name": "name",
|
|
2542
|
+
"attribute": "name",
|
|
2543
|
+
"reflects": true,
|
|
2544
|
+
"type": {
|
|
2545
|
+
"text": "string"
|
|
2546
|
+
}
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
"kind": "field",
|
|
2550
|
+
"name": "required",
|
|
2551
|
+
"attribute": "required",
|
|
2552
|
+
"reflects": true,
|
|
2553
|
+
"type": {
|
|
2554
|
+
"text": "boolean"
|
|
2555
|
+
}
|
|
2556
|
+
},
|
|
2557
|
+
{
|
|
2558
|
+
"kind": "field",
|
|
2559
|
+
"name": "disabled",
|
|
2560
|
+
"attribute": "disabled",
|
|
2561
|
+
"reflects": true,
|
|
2562
|
+
"type": {
|
|
2563
|
+
"text": "boolean"
|
|
2564
|
+
}
|
|
2565
|
+
},
|
|
2566
|
+
{
|
|
2567
|
+
"kind": "field",
|
|
2568
|
+
"name": "hint",
|
|
2569
|
+
"attribute": "hint",
|
|
2570
|
+
"reflects": true,
|
|
2571
|
+
"type": {
|
|
2572
|
+
"text": "string"
|
|
2573
|
+
}
|
|
2574
|
+
},
|
|
2575
|
+
{
|
|
2576
|
+
"kind": "field",
|
|
2577
|
+
"name": "rows",
|
|
2578
|
+
"attribute": "rows",
|
|
2579
|
+
"reflects": true,
|
|
2580
|
+
"type": {
|
|
2581
|
+
"text": "number"
|
|
2582
|
+
}
|
|
2583
|
+
},
|
|
2584
|
+
{
|
|
2585
|
+
"kind": "field",
|
|
2586
|
+
"name": "maxlength",
|
|
2587
|
+
"attribute": "maxlength",
|
|
2588
|
+
"reflects": true,
|
|
2589
|
+
"type": {
|
|
2590
|
+
"text": "number"
|
|
2591
|
+
}
|
|
2592
|
+
},
|
|
2593
|
+
{
|
|
2594
|
+
"kind": "field",
|
|
2595
|
+
"name": "autosize",
|
|
2596
|
+
"attribute": "autosize",
|
|
2597
|
+
"reflects": true,
|
|
2598
|
+
"type": {
|
|
2599
|
+
"text": "boolean"
|
|
2600
|
+
}
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
"kind": "field",
|
|
2604
|
+
"name": "placeholder",
|
|
2605
|
+
"attribute": "placeholder",
|
|
2606
|
+
"reflects": true,
|
|
2607
|
+
"type": {
|
|
2608
|
+
"text": "string"
|
|
2609
|
+
}
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
"kind": "field",
|
|
2613
|
+
"name": "error",
|
|
2614
|
+
"attribute": "error",
|
|
2615
|
+
"reflects": true,
|
|
2616
|
+
"type": {
|
|
2617
|
+
"text": "string"
|
|
2618
|
+
}
|
|
2619
|
+
},
|
|
2620
|
+
{
|
|
2621
|
+
"kind": "field",
|
|
2622
|
+
"name": "locale",
|
|
2623
|
+
"attribute": "locale",
|
|
2624
|
+
"reflects": true,
|
|
2625
|
+
"type": {
|
|
2626
|
+
"text": "string"
|
|
2627
|
+
}
|
|
2628
|
+
}
|
|
2629
|
+
],
|
|
2630
|
+
"events": [
|
|
2631
|
+
{
|
|
2632
|
+
"name": "bythium-input",
|
|
2633
|
+
"type": {
|
|
2634
|
+
"text": "CustomEvent<{ value: string }>"
|
|
2635
|
+
},
|
|
2636
|
+
"description": "Émis à chaque saisie de l’utilisateur, après la mise à jour de value."
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
"name": "bythium-change",
|
|
2640
|
+
"type": {
|
|
2641
|
+
"text": "CustomEvent<{ value: string }>"
|
|
2642
|
+
},
|
|
2643
|
+
"description": "Émis quand l’utilisateur valide le texte (sortie du champ après modification)."
|
|
2644
|
+
}
|
|
2645
|
+
],
|
|
2646
|
+
"slots": [
|
|
2647
|
+
{
|
|
2648
|
+
"name": "help",
|
|
2649
|
+
"description": "Aide sous le champ ; remplace l’attribut hint."
|
|
2650
|
+
},
|
|
2651
|
+
{
|
|
2652
|
+
"name": "control",
|
|
2653
|
+
"description": "Textarea natif du DOM léger, à la place du contrôle interne : il appartient au formulaire et part sans JavaScript ; il porte lui-même name, required, maxlength et son texte. La balise le nomme (aria-label), le décrit et affiche son erreur."
|
|
2654
|
+
}
|
|
2655
|
+
],
|
|
2656
|
+
"cssParts": [
|
|
2657
|
+
{
|
|
2658
|
+
"name": "base",
|
|
2659
|
+
"description": "Conteneur du champ."
|
|
2660
|
+
},
|
|
2661
|
+
{
|
|
2662
|
+
"name": "label",
|
|
2663
|
+
"description": "Libellé."
|
|
2664
|
+
},
|
|
2665
|
+
{
|
|
2666
|
+
"name": "control",
|
|
2667
|
+
"description": "Contrôle textarea natif."
|
|
2668
|
+
},
|
|
2669
|
+
{
|
|
2670
|
+
"name": "counter",
|
|
2671
|
+
"description": "Compteur « longueur / maximum »."
|
|
2672
|
+
},
|
|
2673
|
+
{
|
|
2674
|
+
"name": "hint",
|
|
2675
|
+
"description": "Aide."
|
|
2676
|
+
},
|
|
2677
|
+
{
|
|
2678
|
+
"name": "error",
|
|
2679
|
+
"description": "Message d’erreur, relié au contrôle par aria-describedby."
|
|
2680
|
+
}
|
|
2681
|
+
],
|
|
2682
|
+
"cssProperties": [
|
|
2683
|
+
{
|
|
2684
|
+
"name": "--bythium-text-secondary"
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
"name": "--bythium-text-muted"
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
"name": "--bythium-status-danger"
|
|
2691
|
+
},
|
|
2692
|
+
{
|
|
2693
|
+
"name": "--bythium-border-strong"
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
"name": "--control-height"
|
|
2697
|
+
}
|
|
2698
|
+
]
|
|
2699
|
+
}
|
|
2700
|
+
],
|
|
2701
|
+
"exports": [
|
|
2702
|
+
{
|
|
2703
|
+
"kind": "custom-element-definition",
|
|
2704
|
+
"name": "bythium-textarea",
|
|
2705
|
+
"declaration": {
|
|
2706
|
+
"name": "BythiumTextarea"
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
]
|
|
2710
|
+
},
|
|
2711
|
+
{
|
|
2712
|
+
"kind": "javascript-module",
|
|
2713
|
+
"path": "dist/select.js",
|
|
2714
|
+
"declarations": [
|
|
2715
|
+
{
|
|
2716
|
+
"kind": "class",
|
|
2717
|
+
"name": "BythiumSelect",
|
|
2718
|
+
"tagName": "bythium-select",
|
|
2719
|
+
"customElement": true,
|
|
2720
|
+
"description": "Sélecteur natif dans une liste d’options fixe, avec libellé, aide, validation en français et association au formulaire.",
|
|
2721
|
+
"attributes": [
|
|
2722
|
+
{
|
|
2723
|
+
"name": "value",
|
|
2724
|
+
"fieldName": "value",
|
|
2725
|
+
"type": {
|
|
2726
|
+
"text": "string"
|
|
2727
|
+
},
|
|
2728
|
+
"default": "\"\"",
|
|
2729
|
+
"description": "Option choisie, reflétée à chaque choix ; une valeur absente de items affiche « Choisir… ». Celle du premier raccordement revient au reset du formulaire."
|
|
2730
|
+
},
|
|
2731
|
+
{
|
|
2732
|
+
"name": "label",
|
|
2733
|
+
"fieldName": "label",
|
|
2734
|
+
"type": {
|
|
2735
|
+
"text": "string"
|
|
2736
|
+
},
|
|
2737
|
+
"default": "\"Champ\"",
|
|
2738
|
+
"description": "Libellé visible, rendu à côté du contrôle dans le même arbre : il donne le nom accessible."
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
"name": "name",
|
|
2742
|
+
"fieldName": "name",
|
|
2743
|
+
"type": {
|
|
2744
|
+
"text": "string"
|
|
2745
|
+
},
|
|
2746
|
+
"default": "\"\"",
|
|
2747
|
+
"description": "Nom du champ dans le formulaire."
|
|
2748
|
+
},
|
|
2749
|
+
{
|
|
2750
|
+
"name": "required",
|
|
2751
|
+
"fieldName": "required",
|
|
2752
|
+
"type": {
|
|
2753
|
+
"text": "boolean"
|
|
2754
|
+
},
|
|
2755
|
+
"default": "false",
|
|
2756
|
+
"description": "Choix obligatoire : invalide tant que « Choisir… » est sélectionné ; l’erreur ne s’affiche qu’après une interaction."
|
|
2757
|
+
},
|
|
2758
|
+
{
|
|
2759
|
+
"name": "disabled",
|
|
2760
|
+
"fieldName": "disabled",
|
|
2761
|
+
"type": {
|
|
2762
|
+
"text": "boolean"
|
|
2763
|
+
},
|
|
2764
|
+
"default": "false",
|
|
2765
|
+
"description": "Refuse le choix ; la valeur n’est pas envoyée."
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
"name": "hint",
|
|
2769
|
+
"fieldName": "hint",
|
|
2770
|
+
"type": {
|
|
2771
|
+
"text": "string"
|
|
2772
|
+
},
|
|
2773
|
+
"default": "\"\"",
|
|
2774
|
+
"description": "Aide affichée sous le champ quand le slot help est vide."
|
|
2775
|
+
},
|
|
2776
|
+
{
|
|
2777
|
+
"name": "items",
|
|
2778
|
+
"fieldName": "items",
|
|
2779
|
+
"type": {
|
|
2780
|
+
"text": "string"
|
|
2781
|
+
},
|
|
2782
|
+
"default": "\"\"",
|
|
2783
|
+
"description": "Options séparées par |, dans l’ordre d’affichage ; chaque texte est aussi la valeur de l’option. La première option, « Choisir… », vaut toujours la chaîne vide."
|
|
2784
|
+
},
|
|
2785
|
+
{
|
|
2786
|
+
"name": "disabled-items",
|
|
2787
|
+
"fieldName": "disabledItems",
|
|
2788
|
+
"type": {
|
|
2789
|
+
"text": "string"
|
|
2790
|
+
},
|
|
2791
|
+
"default": "\"\"",
|
|
2792
|
+
"description": "Options de items listées mais impossibles à choisir, séparées par | (« Nova|Orion »). Une option désactivée déjà choisie reste affichée et envoyée. Vide par défaut : toutes les options se choisissent."
|
|
2793
|
+
},
|
|
2794
|
+
{
|
|
2795
|
+
"name": "disabled-hint",
|
|
2796
|
+
"fieldName": "disabledHint",
|
|
2797
|
+
"type": {
|
|
2798
|
+
"text": "string"
|
|
2799
|
+
},
|
|
2800
|
+
"default": "\"\"",
|
|
2801
|
+
"description": "Raison des options désactivées (« Réservé aux administrateurs. »), affichée sous le champ et lue avec le contrôle. Sans option désactivée dans la liste, rien n’est affiché."
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
"name": "placeholder",
|
|
2805
|
+
"fieldName": "placeholder",
|
|
2806
|
+
"type": {
|
|
2807
|
+
"text": "string"
|
|
2808
|
+
},
|
|
2809
|
+
"default": "\"\"",
|
|
2810
|
+
"description": "Texte de la première option, celle qui vaut la chaîne vide ; vide, le texte intégré de la langue (« Choisir… »)."
|
|
2811
|
+
},
|
|
2812
|
+
{
|
|
2813
|
+
"name": "locale",
|
|
2814
|
+
"fieldName": "locale",
|
|
2815
|
+
"type": {
|
|
2816
|
+
"text": "string"
|
|
2817
|
+
},
|
|
2818
|
+
"default": "\"fr-CA\"",
|
|
2819
|
+
"description": "Langue BCP 47 des textes intégrés (« Choisir… », « obligatoire », message d’erreur) : français par défaut, anglais pour une balise en."
|
|
2820
|
+
}
|
|
2821
|
+
],
|
|
2822
|
+
"members": [
|
|
2823
|
+
{
|
|
2824
|
+
"kind": "field",
|
|
2825
|
+
"name": "value",
|
|
2826
|
+
"attribute": "value",
|
|
2827
|
+
"reflects": true,
|
|
2828
|
+
"type": {
|
|
2829
|
+
"text": "string"
|
|
2830
|
+
}
|
|
2831
|
+
},
|
|
2832
|
+
{
|
|
2833
|
+
"kind": "field",
|
|
2834
|
+
"name": "label",
|
|
2835
|
+
"attribute": "label",
|
|
2836
|
+
"reflects": true,
|
|
2837
|
+
"type": {
|
|
2838
|
+
"text": "string"
|
|
2839
|
+
}
|
|
2840
|
+
},
|
|
2841
|
+
{
|
|
2842
|
+
"kind": "field",
|
|
2843
|
+
"name": "name",
|
|
2844
|
+
"attribute": "name",
|
|
2845
|
+
"reflects": true,
|
|
2846
|
+
"type": {
|
|
2847
|
+
"text": "string"
|
|
2848
|
+
}
|
|
2849
|
+
},
|
|
2850
|
+
{
|
|
2851
|
+
"kind": "field",
|
|
2852
|
+
"name": "required",
|
|
2853
|
+
"attribute": "required",
|
|
2854
|
+
"reflects": true,
|
|
2855
|
+
"type": {
|
|
2856
|
+
"text": "boolean"
|
|
2857
|
+
}
|
|
2858
|
+
},
|
|
2859
|
+
{
|
|
2860
|
+
"kind": "field",
|
|
2861
|
+
"name": "disabled",
|
|
2862
|
+
"attribute": "disabled",
|
|
2863
|
+
"reflects": true,
|
|
2864
|
+
"type": {
|
|
2865
|
+
"text": "boolean"
|
|
2866
|
+
}
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
"kind": "field",
|
|
2870
|
+
"name": "hint",
|
|
2871
|
+
"attribute": "hint",
|
|
2872
|
+
"reflects": true,
|
|
2873
|
+
"type": {
|
|
2874
|
+
"text": "string"
|
|
2875
|
+
}
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
"kind": "field",
|
|
2879
|
+
"name": "items",
|
|
2880
|
+
"attribute": "items",
|
|
2881
|
+
"reflects": true,
|
|
2882
|
+
"type": {
|
|
2883
|
+
"text": "string"
|
|
2884
|
+
}
|
|
2885
|
+
},
|
|
2886
|
+
{
|
|
2887
|
+
"kind": "field",
|
|
2888
|
+
"name": "disabledItems",
|
|
2889
|
+
"attribute": "disabled-items",
|
|
2890
|
+
"reflects": true,
|
|
2891
|
+
"type": {
|
|
2892
|
+
"text": "string"
|
|
2893
|
+
}
|
|
2894
|
+
},
|
|
2895
|
+
{
|
|
2896
|
+
"kind": "field",
|
|
2897
|
+
"name": "disabledHint",
|
|
2898
|
+
"attribute": "disabled-hint",
|
|
2899
|
+
"reflects": true,
|
|
2900
|
+
"type": {
|
|
2901
|
+
"text": "string"
|
|
2902
|
+
}
|
|
2903
|
+
},
|
|
2904
|
+
{
|
|
2905
|
+
"kind": "field",
|
|
2906
|
+
"name": "placeholder",
|
|
2907
|
+
"attribute": "placeholder",
|
|
2908
|
+
"reflects": true,
|
|
2909
|
+
"type": {
|
|
2910
|
+
"text": "string"
|
|
2911
|
+
}
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
"kind": "field",
|
|
2915
|
+
"name": "locale",
|
|
2916
|
+
"attribute": "locale",
|
|
2917
|
+
"reflects": true,
|
|
2918
|
+
"type": {
|
|
2919
|
+
"text": "string"
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2922
|
+
],
|
|
2923
|
+
"events": [
|
|
2924
|
+
{
|
|
2925
|
+
"name": "bythium-change",
|
|
2926
|
+
"type": {
|
|
2927
|
+
"text": "CustomEvent<{ value: string }>"
|
|
2928
|
+
},
|
|
2929
|
+
"description": "Émis quand l’utilisateur choisit une option, après la mise à jour de value. Une écriture de l’attribut n’émet rien."
|
|
2930
|
+
}
|
|
2931
|
+
],
|
|
2932
|
+
"slots": [
|
|
2933
|
+
{
|
|
2934
|
+
"name": "help",
|
|
2935
|
+
"description": "Aide sous le champ ; remplace l’attribut hint."
|
|
2936
|
+
}
|
|
2937
|
+
],
|
|
2938
|
+
"cssParts": [
|
|
2939
|
+
{
|
|
2940
|
+
"name": "base",
|
|
2941
|
+
"description": "Conteneur du champ."
|
|
2942
|
+
},
|
|
2943
|
+
{
|
|
2944
|
+
"name": "label",
|
|
2945
|
+
"description": "Libellé."
|
|
2946
|
+
},
|
|
2947
|
+
{
|
|
2948
|
+
"name": "control",
|
|
2949
|
+
"description": "Contrôle select natif."
|
|
2950
|
+
},
|
|
2951
|
+
{
|
|
2952
|
+
"name": "disabled-hint",
|
|
2953
|
+
"description": "Raison des options désactivées, sous le contrôle."
|
|
2954
|
+
},
|
|
2955
|
+
{
|
|
2956
|
+
"name": "hint",
|
|
2957
|
+
"description": "Aide."
|
|
2958
|
+
},
|
|
2959
|
+
{
|
|
2960
|
+
"name": "error",
|
|
2961
|
+
"description": "Message d’erreur, relié au contrôle par aria-describedby."
|
|
2962
|
+
}
|
|
2963
|
+
],
|
|
2964
|
+
"cssProperties": [
|
|
2965
|
+
{
|
|
2966
|
+
"name": "--bythium-text-secondary"
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
"name": "--bythium-text-muted"
|
|
2970
|
+
},
|
|
2971
|
+
{
|
|
2972
|
+
"name": "--bythium-status-danger"
|
|
2973
|
+
},
|
|
2974
|
+
{
|
|
2975
|
+
"name": "--control-height"
|
|
2976
|
+
},
|
|
2977
|
+
{
|
|
2978
|
+
"name": "--target-touch-min"
|
|
2979
|
+
}
|
|
2980
|
+
]
|
|
2981
|
+
}
|
|
2982
|
+
],
|
|
2983
|
+
"exports": [
|
|
2984
|
+
{
|
|
2985
|
+
"kind": "custom-element-definition",
|
|
2986
|
+
"name": "bythium-select",
|
|
2987
|
+
"declaration": {
|
|
2988
|
+
"name": "BythiumSelect"
|
|
2989
|
+
}
|
|
2990
|
+
}
|
|
2991
|
+
]
|
|
2992
|
+
},
|
|
2993
|
+
{
|
|
2994
|
+
"kind": "javascript-module",
|
|
2995
|
+
"path": "dist/checkbox.js",
|
|
2996
|
+
"declarations": [
|
|
2997
|
+
{
|
|
2998
|
+
"kind": "class",
|
|
2999
|
+
"name": "BythiumCheckbox",
|
|
3000
|
+
"tagName": "bythium-checkbox",
|
|
3001
|
+
"customElement": true,
|
|
3002
|
+
"description": "Case à cocher native avec libellé, aide, état indéterminé et validation obligatoire, associée aux formulaires.",
|
|
3003
|
+
"attributes": [
|
|
3004
|
+
{
|
|
3005
|
+
"name": "value",
|
|
3006
|
+
"fieldName": "value",
|
|
3007
|
+
"type": {
|
|
3008
|
+
"text": "string"
|
|
3009
|
+
},
|
|
3010
|
+
"default": "\"on\"",
|
|
3011
|
+
"description": "Valeur envoyée avec le formulaire quand la case est cochée."
|
|
3012
|
+
},
|
|
3013
|
+
{
|
|
3014
|
+
"name": "label",
|
|
3015
|
+
"fieldName": "label",
|
|
3016
|
+
"type": {
|
|
3017
|
+
"text": "string"
|
|
3018
|
+
},
|
|
3019
|
+
"default": "\"Champ\"",
|
|
3020
|
+
"description": "Libellé visible à côté de la case, dans le même arbre : il donne le nom accessible."
|
|
3021
|
+
},
|
|
3022
|
+
{
|
|
3023
|
+
"name": "name",
|
|
3024
|
+
"fieldName": "name",
|
|
3025
|
+
"type": {
|
|
3026
|
+
"text": "string"
|
|
3027
|
+
},
|
|
3028
|
+
"default": "\"\"",
|
|
3029
|
+
"description": "Nom du champ dans le formulaire."
|
|
3030
|
+
},
|
|
3031
|
+
{
|
|
3032
|
+
"name": "required",
|
|
3033
|
+
"fieldName": "required",
|
|
3034
|
+
"type": {
|
|
3035
|
+
"text": "boolean"
|
|
3036
|
+
},
|
|
3037
|
+
"default": "false",
|
|
3038
|
+
"description": "Case à cocher obligatoirement : invalide tant qu’elle est décochée (« Cochez cette case. ») ; l’erreur ne s’affiche qu’après une interaction."
|
|
3039
|
+
},
|
|
3040
|
+
{
|
|
3041
|
+
"name": "disabled",
|
|
3042
|
+
"fieldName": "disabled",
|
|
3043
|
+
"type": {
|
|
3044
|
+
"text": "boolean"
|
|
3045
|
+
},
|
|
3046
|
+
"default": "false",
|
|
3047
|
+
"description": "Refuse le changement ; la valeur n’est pas envoyée."
|
|
3048
|
+
},
|
|
3049
|
+
{
|
|
3050
|
+
"name": "hint",
|
|
3051
|
+
"fieldName": "hint",
|
|
3052
|
+
"type": {
|
|
3053
|
+
"text": "string"
|
|
3054
|
+
},
|
|
3055
|
+
"default": "\"\"",
|
|
3056
|
+
"description": "Aide affichée sous le libellé quand le slot help est vide."
|
|
3057
|
+
},
|
|
3058
|
+
{
|
|
3059
|
+
"name": "checked",
|
|
3060
|
+
"fieldName": "checked",
|
|
3061
|
+
"type": {
|
|
3062
|
+
"text": "boolean"
|
|
3063
|
+
},
|
|
3064
|
+
"default": "false",
|
|
3065
|
+
"description": "État coché, reflété à chaque clic ; celui du premier raccordement revient au reset du formulaire."
|
|
3066
|
+
},
|
|
3067
|
+
{
|
|
3068
|
+
"name": "indeterminate",
|
|
3069
|
+
"fieldName": "indeterminate",
|
|
3070
|
+
"type": {
|
|
3071
|
+
"text": "boolean"
|
|
3072
|
+
},
|
|
3073
|
+
"default": "false",
|
|
3074
|
+
"description": "État mixte affiché (ni coché ni décoché) ; retiré dès que l’utilisateur change la case."
|
|
3075
|
+
},
|
|
3076
|
+
{
|
|
3077
|
+
"name": "error",
|
|
3078
|
+
"fieldName": "error",
|
|
3079
|
+
"type": {
|
|
3080
|
+
"text": "string"
|
|
3081
|
+
},
|
|
3082
|
+
"default": "\"\"",
|
|
3083
|
+
"description": "Erreur fournie par l’application (par exemple après une validation serveur) : affichée tout de suite, sans attendre une interaction."
|
|
3084
|
+
},
|
|
3085
|
+
{
|
|
3086
|
+
"name": "locale",
|
|
3087
|
+
"fieldName": "locale",
|
|
3088
|
+
"type": {
|
|
3089
|
+
"text": "string"
|
|
3090
|
+
},
|
|
3091
|
+
"default": "\"fr-CA\"",
|
|
3092
|
+
"description": "Langue des textes intégrés (BCP 47) : la mention « obligatoire » (« required ») et le message de validation. Toute balise en vaut en, le reste vaut fr. Un libellé écrit par la page l’emporte."
|
|
3093
|
+
}
|
|
3094
|
+
],
|
|
3095
|
+
"members": [
|
|
3096
|
+
{
|
|
3097
|
+
"kind": "field",
|
|
3098
|
+
"name": "value",
|
|
3099
|
+
"attribute": "value",
|
|
3100
|
+
"reflects": true,
|
|
3101
|
+
"type": {
|
|
3102
|
+
"text": "string"
|
|
3103
|
+
}
|
|
3104
|
+
},
|
|
3105
|
+
{
|
|
3106
|
+
"kind": "field",
|
|
3107
|
+
"name": "label",
|
|
3108
|
+
"attribute": "label",
|
|
3109
|
+
"reflects": true,
|
|
3110
|
+
"type": {
|
|
3111
|
+
"text": "string"
|
|
3112
|
+
}
|
|
3113
|
+
},
|
|
3114
|
+
{
|
|
3115
|
+
"kind": "field",
|
|
3116
|
+
"name": "name",
|
|
3117
|
+
"attribute": "name",
|
|
3118
|
+
"reflects": true,
|
|
3119
|
+
"type": {
|
|
3120
|
+
"text": "string"
|
|
3121
|
+
}
|
|
3122
|
+
},
|
|
3123
|
+
{
|
|
3124
|
+
"kind": "field",
|
|
3125
|
+
"name": "required",
|
|
3126
|
+
"attribute": "required",
|
|
3127
|
+
"reflects": true,
|
|
3128
|
+
"type": {
|
|
3129
|
+
"text": "boolean"
|
|
3130
|
+
}
|
|
3131
|
+
},
|
|
3132
|
+
{
|
|
3133
|
+
"kind": "field",
|
|
3134
|
+
"name": "disabled",
|
|
3135
|
+
"attribute": "disabled",
|
|
3136
|
+
"reflects": true,
|
|
3137
|
+
"type": {
|
|
3138
|
+
"text": "boolean"
|
|
3139
|
+
}
|
|
3140
|
+
},
|
|
3141
|
+
{
|
|
3142
|
+
"kind": "field",
|
|
3143
|
+
"name": "hint",
|
|
3144
|
+
"attribute": "hint",
|
|
3145
|
+
"reflects": true,
|
|
3146
|
+
"type": {
|
|
3147
|
+
"text": "string"
|
|
3148
|
+
}
|
|
3149
|
+
},
|
|
3150
|
+
{
|
|
3151
|
+
"kind": "field",
|
|
3152
|
+
"name": "checked",
|
|
3153
|
+
"attribute": "checked",
|
|
3154
|
+
"reflects": true,
|
|
3155
|
+
"type": {
|
|
3156
|
+
"text": "boolean"
|
|
3157
|
+
}
|
|
3158
|
+
},
|
|
3159
|
+
{
|
|
3160
|
+
"kind": "field",
|
|
3161
|
+
"name": "indeterminate",
|
|
3162
|
+
"attribute": "indeterminate",
|
|
3163
|
+
"reflects": true,
|
|
3164
|
+
"type": {
|
|
3165
|
+
"text": "boolean"
|
|
3166
|
+
}
|
|
3167
|
+
},
|
|
3168
|
+
{
|
|
3169
|
+
"kind": "field",
|
|
3170
|
+
"name": "error",
|
|
3171
|
+
"attribute": "error",
|
|
3172
|
+
"reflects": true,
|
|
3173
|
+
"type": {
|
|
3174
|
+
"text": "string"
|
|
3175
|
+
}
|
|
3176
|
+
},
|
|
3177
|
+
{
|
|
3178
|
+
"kind": "field",
|
|
3179
|
+
"name": "locale",
|
|
3180
|
+
"attribute": "locale",
|
|
3181
|
+
"reflects": true,
|
|
3182
|
+
"type": {
|
|
3183
|
+
"text": "string"
|
|
3184
|
+
}
|
|
3185
|
+
}
|
|
3186
|
+
],
|
|
3187
|
+
"events": [
|
|
3188
|
+
{
|
|
3189
|
+
"name": "bythium-change",
|
|
3190
|
+
"type": {
|
|
3191
|
+
"text": "CustomEvent<{ value: string; checked: boolean }>"
|
|
3192
|
+
},
|
|
3193
|
+
"description": "Émis quand l’utilisateur coche ou décoche la case, après la mise à jour de checked. Une écriture de l’attribut n’émet rien."
|
|
3194
|
+
}
|
|
3195
|
+
],
|
|
3196
|
+
"slots": [
|
|
3197
|
+
{
|
|
3198
|
+
"name": "help",
|
|
3199
|
+
"description": "Aide sous le libellé ; remplace l’attribut hint."
|
|
3200
|
+
},
|
|
3201
|
+
{
|
|
3202
|
+
"name": "control",
|
|
3203
|
+
"description": "Case à cocher native (input type checkbox) du DOM léger, à la place de la case interne, avant le texte : elle appartient au formulaire et part sans JavaScript ; elle porte elle-même name, value, required et checked. La balise la nomme (aria-label), la décrit et affiche son erreur ; un clic sur le libellé la coche."
|
|
3204
|
+
}
|
|
3205
|
+
],
|
|
3206
|
+
"cssParts": [
|
|
3207
|
+
{
|
|
3208
|
+
"name": "base",
|
|
3209
|
+
"description": "Conteneur du champ."
|
|
3210
|
+
},
|
|
3211
|
+
{
|
|
3212
|
+
"name": "label",
|
|
3213
|
+
"description": "Libellé, cliquable."
|
|
3214
|
+
},
|
|
3215
|
+
{
|
|
3216
|
+
"name": "control",
|
|
3217
|
+
"description": "Case à cocher native (interne, ou celle du slot control)."
|
|
3218
|
+
},
|
|
3219
|
+
{
|
|
3220
|
+
"name": "hint",
|
|
3221
|
+
"description": "Aide."
|
|
3222
|
+
},
|
|
3223
|
+
{
|
|
3224
|
+
"name": "error",
|
|
3225
|
+
"description": "Message d’erreur, relié à la case par aria-describedby."
|
|
3226
|
+
}
|
|
3227
|
+
],
|
|
3228
|
+
"cssProperties": [
|
|
3229
|
+
{
|
|
3230
|
+
"name": "--bythium-text-primary"
|
|
3231
|
+
},
|
|
3232
|
+
{
|
|
3233
|
+
"name": "--bythium-text-secondary"
|
|
3234
|
+
},
|
|
3235
|
+
{
|
|
3236
|
+
"name": "--bythium-text-muted"
|
|
3237
|
+
},
|
|
3238
|
+
{
|
|
3239
|
+
"name": "--bythium-status-danger"
|
|
3240
|
+
}
|
|
3241
|
+
]
|
|
3242
|
+
}
|
|
3243
|
+
],
|
|
3244
|
+
"exports": [
|
|
3245
|
+
{
|
|
3246
|
+
"kind": "custom-element-definition",
|
|
3247
|
+
"name": "bythium-checkbox",
|
|
3248
|
+
"declaration": {
|
|
3249
|
+
"name": "BythiumCheckbox"
|
|
3250
|
+
}
|
|
3251
|
+
}
|
|
3252
|
+
]
|
|
3253
|
+
},
|
|
3254
|
+
{
|
|
3255
|
+
"kind": "javascript-module",
|
|
3256
|
+
"path": "dist/radio-group.js",
|
|
3257
|
+
"declarations": [
|
|
3258
|
+
{
|
|
3259
|
+
"kind": "class",
|
|
3260
|
+
"name": "BythiumRadioGroup",
|
|
3261
|
+
"tagName": "bythium-radio-group",
|
|
3262
|
+
"customElement": true,
|
|
3263
|
+
"description": "Groupe de boutons radio natifs pour un choix exclusif, en liste ou en contrôle segmenté, avec libellé, aide et erreur ; associé aux formulaires.",
|
|
3264
|
+
"attributes": [
|
|
3265
|
+
{
|
|
3266
|
+
"name": "value",
|
|
3267
|
+
"fieldName": "value",
|
|
3268
|
+
"type": {
|
|
3269
|
+
"text": "string"
|
|
3270
|
+
},
|
|
3271
|
+
"default": "\"\"",
|
|
3272
|
+
"description": "Option choisie, envoyée avec le formulaire. Une valeur hors de items rend le champ invalide (« Choix hors de la liste. »)."
|
|
3273
|
+
},
|
|
3274
|
+
{
|
|
3275
|
+
"name": "label",
|
|
3276
|
+
"fieldName": "label",
|
|
3277
|
+
"type": {
|
|
3278
|
+
"text": "string"
|
|
3279
|
+
},
|
|
3280
|
+
"default": "\"Champ\"",
|
|
3281
|
+
"description": "Libellé visible du groupe ; il nomme le groupe, jamais une option : chaque option est nommée par son seul texte."
|
|
3282
|
+
},
|
|
3283
|
+
{
|
|
3284
|
+
"name": "name",
|
|
3285
|
+
"fieldName": "name",
|
|
3286
|
+
"type": {
|
|
3287
|
+
"text": "string"
|
|
3288
|
+
},
|
|
3289
|
+
"default": "\"\"",
|
|
3290
|
+
"description": "Nom du champ dans le formulaire."
|
|
3291
|
+
},
|
|
3292
|
+
{
|
|
3293
|
+
"name": "required",
|
|
3294
|
+
"fieldName": "required",
|
|
3295
|
+
"type": {
|
|
3296
|
+
"text": "boolean"
|
|
3297
|
+
},
|
|
3298
|
+
"default": "false",
|
|
3299
|
+
"description": "Une option doit être choisie pour que le formulaire soit valide."
|
|
3300
|
+
},
|
|
3301
|
+
{
|
|
3302
|
+
"name": "disabled",
|
|
3303
|
+
"fieldName": "disabled",
|
|
3304
|
+
"type": {
|
|
3305
|
+
"text": "boolean"
|
|
3306
|
+
},
|
|
3307
|
+
"default": "false",
|
|
3308
|
+
"description": "Refuse tout choix ; rien n’est envoyé."
|
|
3309
|
+
},
|
|
3310
|
+
{
|
|
3311
|
+
"name": "hint",
|
|
3312
|
+
"fieldName": "hint",
|
|
3313
|
+
"type": {
|
|
3314
|
+
"text": "string"
|
|
3315
|
+
},
|
|
3316
|
+
"default": "\"\"",
|
|
3317
|
+
"description": "Aide sous le groupe, quand le slot help est vide."
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
"name": "items",
|
|
3321
|
+
"fieldName": "items",
|
|
3322
|
+
"type": {
|
|
3323
|
+
"text": "string"
|
|
3324
|
+
},
|
|
3325
|
+
"default": "\"\"",
|
|
3326
|
+
"description": "Options, séparées par « | », dans l’ordre d’affichage. Vide par défaut : aucune option (les données vont dans la page)."
|
|
3327
|
+
},
|
|
3328
|
+
{
|
|
3329
|
+
"name": "disabled-items",
|
|
3330
|
+
"fieldName": "disabledItems",
|
|
3331
|
+
"type": {
|
|
3332
|
+
"text": "string"
|
|
3333
|
+
},
|
|
3334
|
+
"default": "\"\"",
|
|
3335
|
+
"description": "Options de items montrées mais impossibles à choisir, séparées par « | » (« Nova|Orion »). Une option désactivée déjà choisie reste choisie et envoyée. Vide par défaut : toutes les options se choisissent."
|
|
3336
|
+
},
|
|
3337
|
+
{
|
|
3338
|
+
"name": "disabled-hint",
|
|
3339
|
+
"fieldName": "disabledHint",
|
|
3340
|
+
"type": {
|
|
3341
|
+
"text": "string"
|
|
3342
|
+
},
|
|
3343
|
+
"default": "\"\"",
|
|
3344
|
+
"description": "Raison des options désactivées (« Réservé aux administrateurs. »), affichée sous le groupe et lue avec chaque option désactivée. Sans option désactivée dans la liste, rien n’est affiché."
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
"name": "appearance",
|
|
3348
|
+
"fieldName": "appearance",
|
|
3349
|
+
"type": {
|
|
3350
|
+
"text": "'default' | 'segmented'"
|
|
3351
|
+
},
|
|
3352
|
+
"default": "\"default\"",
|
|
3353
|
+
"description": "Apparence : liste verticale (default) ou contrôle segmenté en rail (segmented)."
|
|
3354
|
+
},
|
|
3355
|
+
{
|
|
3356
|
+
"name": "group-target",
|
|
3357
|
+
"fieldName": "groupTarget",
|
|
3358
|
+
"type": {
|
|
3359
|
+
"text": "string"
|
|
3360
|
+
},
|
|
3361
|
+
"default": "\"\"",
|
|
3362
|
+
"description": "Nom d’un groupe d’exemples de code (l’attribut group de bythium-code-sample) que ce groupe pilote : choisir une option choisit la version du même libellé dans tous les exemples du groupe de la page, et un choix fait dans un exemple coche ici l’option du même libellé. Les options s’écrivent comme les libellés des versions (« HTML|Vue|React|Svelte »). Vide par défaut : le groupe ne pilote rien."
|
|
3363
|
+
},
|
|
3364
|
+
{
|
|
3365
|
+
"name": "storage-key",
|
|
3366
|
+
"fieldName": "storageKey",
|
|
3367
|
+
"type": {
|
|
3368
|
+
"text": "string"
|
|
3369
|
+
},
|
|
3370
|
+
"default": "\"\"",
|
|
3371
|
+
"description": "Avec group-target : clé de stockage local, la même que celle des exemples, sous laquelle l’option choisie est gardée et relue au chargement. Stockage refusé : le choix dure le temps de la page. Vide par défaut : rien n’est gardé."
|
|
3372
|
+
},
|
|
3373
|
+
{
|
|
3374
|
+
"name": "locale",
|
|
3375
|
+
"fieldName": "locale",
|
|
3376
|
+
"type": {
|
|
3377
|
+
"text": "string"
|
|
3378
|
+
},
|
|
3379
|
+
"default": "\"fr-CA\"",
|
|
3380
|
+
"description": "Langue des textes intégrés (BCP 47) : la mention « obligatoire » (« required ») et le message de validation. Toute balise en vaut en, le reste vaut fr. Un libellé écrit par la page l’emporte."
|
|
3381
|
+
}
|
|
3382
|
+
],
|
|
3383
|
+
"members": [
|
|
3384
|
+
{
|
|
3385
|
+
"kind": "field",
|
|
3386
|
+
"name": "value",
|
|
3387
|
+
"attribute": "value",
|
|
3388
|
+
"reflects": true,
|
|
3389
|
+
"type": {
|
|
3390
|
+
"text": "string"
|
|
3391
|
+
}
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
"kind": "field",
|
|
3395
|
+
"name": "label",
|
|
3396
|
+
"attribute": "label",
|
|
3397
|
+
"reflects": true,
|
|
3398
|
+
"type": {
|
|
3399
|
+
"text": "string"
|
|
3400
|
+
}
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
"kind": "field",
|
|
3404
|
+
"name": "name",
|
|
3405
|
+
"attribute": "name",
|
|
3406
|
+
"reflects": true,
|
|
3407
|
+
"type": {
|
|
3408
|
+
"text": "string"
|
|
3409
|
+
}
|
|
3410
|
+
},
|
|
3411
|
+
{
|
|
3412
|
+
"kind": "field",
|
|
3413
|
+
"name": "required",
|
|
3414
|
+
"attribute": "required",
|
|
3415
|
+
"reflects": true,
|
|
3416
|
+
"type": {
|
|
3417
|
+
"text": "boolean"
|
|
3418
|
+
}
|
|
3419
|
+
},
|
|
3420
|
+
{
|
|
3421
|
+
"kind": "field",
|
|
3422
|
+
"name": "disabled",
|
|
3423
|
+
"attribute": "disabled",
|
|
3424
|
+
"reflects": true,
|
|
3425
|
+
"type": {
|
|
3426
|
+
"text": "boolean"
|
|
3427
|
+
}
|
|
3428
|
+
},
|
|
3429
|
+
{
|
|
3430
|
+
"kind": "field",
|
|
3431
|
+
"name": "hint",
|
|
3432
|
+
"attribute": "hint",
|
|
3433
|
+
"reflects": true,
|
|
3434
|
+
"type": {
|
|
3435
|
+
"text": "string"
|
|
3436
|
+
}
|
|
3437
|
+
},
|
|
3438
|
+
{
|
|
3439
|
+
"kind": "field",
|
|
3440
|
+
"name": "items",
|
|
3441
|
+
"attribute": "items",
|
|
3442
|
+
"reflects": true,
|
|
3443
|
+
"type": {
|
|
3444
|
+
"text": "string"
|
|
3445
|
+
}
|
|
3446
|
+
},
|
|
3447
|
+
{
|
|
3448
|
+
"kind": "field",
|
|
3449
|
+
"name": "disabledItems",
|
|
3450
|
+
"attribute": "disabled-items",
|
|
3451
|
+
"reflects": true,
|
|
3452
|
+
"type": {
|
|
3453
|
+
"text": "string"
|
|
3454
|
+
}
|
|
3455
|
+
},
|
|
3456
|
+
{
|
|
3457
|
+
"kind": "field",
|
|
3458
|
+
"name": "disabledHint",
|
|
3459
|
+
"attribute": "disabled-hint",
|
|
3460
|
+
"reflects": true,
|
|
3461
|
+
"type": {
|
|
3462
|
+
"text": "string"
|
|
3463
|
+
}
|
|
3464
|
+
},
|
|
3465
|
+
{
|
|
3466
|
+
"kind": "field",
|
|
3467
|
+
"name": "appearance",
|
|
3468
|
+
"attribute": "appearance",
|
|
3469
|
+
"reflects": true,
|
|
3470
|
+
"type": {
|
|
3471
|
+
"text": "'default' | 'segmented'"
|
|
3472
|
+
}
|
|
3473
|
+
},
|
|
3474
|
+
{
|
|
3475
|
+
"kind": "field",
|
|
3476
|
+
"name": "groupTarget",
|
|
3477
|
+
"attribute": "group-target",
|
|
3478
|
+
"reflects": true,
|
|
3479
|
+
"type": {
|
|
3480
|
+
"text": "string"
|
|
3481
|
+
}
|
|
3482
|
+
},
|
|
3483
|
+
{
|
|
3484
|
+
"kind": "field",
|
|
3485
|
+
"name": "storageKey",
|
|
3486
|
+
"attribute": "storage-key",
|
|
3487
|
+
"reflects": true,
|
|
3488
|
+
"type": {
|
|
3489
|
+
"text": "string"
|
|
3490
|
+
}
|
|
3491
|
+
},
|
|
3492
|
+
{
|
|
3493
|
+
"kind": "field",
|
|
3494
|
+
"name": "locale",
|
|
3495
|
+
"attribute": "locale",
|
|
3496
|
+
"reflects": true,
|
|
3497
|
+
"type": {
|
|
3498
|
+
"text": "string"
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
],
|
|
3502
|
+
"events": [
|
|
3503
|
+
{
|
|
3504
|
+
"name": "bythium-change",
|
|
3505
|
+
"type": {
|
|
3506
|
+
"text": "CustomEvent<{ value: string }>"
|
|
3507
|
+
},
|
|
3508
|
+
"description": "Émis après un choix par l’utilisateur (clic, flèches, Espace). Une écriture de value par la page n’émet rien."
|
|
3509
|
+
}
|
|
3510
|
+
],
|
|
3511
|
+
"slots": [
|
|
3512
|
+
{
|
|
3513
|
+
"name": "help",
|
|
3514
|
+
"description": "Aide sous le groupe ; remplace hint."
|
|
3515
|
+
}
|
|
3516
|
+
],
|
|
3517
|
+
"cssParts": [
|
|
3518
|
+
{
|
|
3519
|
+
"name": "base",
|
|
3520
|
+
"description": "Conteneur du champ."
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
"name": "label",
|
|
3524
|
+
"description": "Libellé visible, qui nomme le groupe."
|
|
3525
|
+
},
|
|
3526
|
+
{
|
|
3527
|
+
"name": "choices",
|
|
3528
|
+
"description": "Fieldset natif qui regroupe les options."
|
|
3529
|
+
},
|
|
3530
|
+
{
|
|
3531
|
+
"name": "control",
|
|
3532
|
+
"description": "Chaque bouton radio natif."
|
|
3533
|
+
},
|
|
3534
|
+
{
|
|
3535
|
+
"name": "disabled-hint",
|
|
3536
|
+
"description": "Raison des options désactivées, sous les options."
|
|
3537
|
+
},
|
|
3538
|
+
{
|
|
3539
|
+
"name": "hint",
|
|
3540
|
+
"description": "Aide."
|
|
3541
|
+
},
|
|
3542
|
+
{
|
|
3543
|
+
"name": "error",
|
|
3544
|
+
"description": "Message d’erreur."
|
|
3545
|
+
}
|
|
3546
|
+
],
|
|
3547
|
+
"cssProperties": [
|
|
3548
|
+
{
|
|
3549
|
+
"name": "--bythium-text-primary"
|
|
3550
|
+
},
|
|
3551
|
+
{
|
|
3552
|
+
"name": "--bythium-surface-base"
|
|
3553
|
+
},
|
|
3554
|
+
{
|
|
3555
|
+
"name": "--bythium-accent"
|
|
3556
|
+
},
|
|
3557
|
+
{
|
|
3558
|
+
"name": "--bythium-border-focus"
|
|
3559
|
+
},
|
|
3560
|
+
{
|
|
3561
|
+
"name": "--bythium-border-strong"
|
|
3562
|
+
},
|
|
3563
|
+
{
|
|
3564
|
+
"name": "--radius-control"
|
|
3565
|
+
},
|
|
3566
|
+
{
|
|
3567
|
+
"name": "--bythium-text-muted"
|
|
3568
|
+
}
|
|
3569
|
+
]
|
|
3570
|
+
}
|
|
3571
|
+
],
|
|
3572
|
+
"exports": [
|
|
3573
|
+
{
|
|
3574
|
+
"kind": "custom-element-definition",
|
|
3575
|
+
"name": "bythium-radio-group",
|
|
3576
|
+
"declaration": {
|
|
3577
|
+
"name": "BythiumRadioGroup"
|
|
3578
|
+
}
|
|
3579
|
+
}
|
|
3580
|
+
]
|
|
3581
|
+
},
|
|
3582
|
+
{
|
|
3583
|
+
"kind": "javascript-module",
|
|
3584
|
+
"path": "dist/switch.js",
|
|
3585
|
+
"declarations": [
|
|
3586
|
+
{
|
|
3587
|
+
"kind": "class",
|
|
3588
|
+
"name": "BythiumSwitch",
|
|
3589
|
+
"tagName": "bythium-switch",
|
|
3590
|
+
"customElement": true,
|
|
3591
|
+
"description": "Interrupteur libellé associé aux formulaires : case native role=switch, description, libellé avant ou après la piste, deux tailles, bascule animée.",
|
|
3592
|
+
"attributes": [
|
|
3593
|
+
{
|
|
3594
|
+
"name": "label",
|
|
3595
|
+
"fieldName": "label",
|
|
3596
|
+
"type": {
|
|
3597
|
+
"text": "string"
|
|
3598
|
+
},
|
|
3599
|
+
"default": "\"Interrupteur\"",
|
|
3600
|
+
"description": "Libellé visible, relié à la case dans le même arbre : il donne le nom accessible."
|
|
3601
|
+
},
|
|
3602
|
+
{
|
|
3603
|
+
"name": "description",
|
|
3604
|
+
"fieldName": "description",
|
|
3605
|
+
"type": {
|
|
3606
|
+
"text": "string"
|
|
3607
|
+
},
|
|
3608
|
+
"default": "\"\"",
|
|
3609
|
+
"description": "Aide sous le libellé, qui décrit la case (aria-describedby). Vide : rien n’est affiché."
|
|
3610
|
+
},
|
|
3611
|
+
{
|
|
3612
|
+
"name": "checked",
|
|
3613
|
+
"fieldName": "checked",
|
|
3614
|
+
"type": {
|
|
3615
|
+
"text": "boolean"
|
|
3616
|
+
},
|
|
3617
|
+
"default": "false",
|
|
3618
|
+
"description": "État activé, réfléchi. Une écriture par la page n’émet aucun événement."
|
|
3619
|
+
},
|
|
3620
|
+
{
|
|
3621
|
+
"name": "value",
|
|
3622
|
+
"fieldName": "value",
|
|
3623
|
+
"type": {
|
|
3624
|
+
"text": "string"
|
|
3625
|
+
},
|
|
3626
|
+
"default": "\"on\"",
|
|
3627
|
+
"description": "Valeur envoyée avec le formulaire quand l’interrupteur est activé. Vide : rien n’est envoyé et required n’est pas satisfait."
|
|
3628
|
+
},
|
|
3629
|
+
{
|
|
3630
|
+
"name": "name",
|
|
3631
|
+
"fieldName": "name",
|
|
3632
|
+
"type": {
|
|
3633
|
+
"text": "string"
|
|
3634
|
+
},
|
|
3635
|
+
"default": "\"\"",
|
|
3636
|
+
"description": "Nom du champ dans le formulaire."
|
|
3637
|
+
},
|
|
3638
|
+
{
|
|
3639
|
+
"name": "required",
|
|
3640
|
+
"fieldName": "required",
|
|
3641
|
+
"type": {
|
|
3642
|
+
"text": "boolean"
|
|
3643
|
+
},
|
|
3644
|
+
"default": "false",
|
|
3645
|
+
"description": "Doit être activé pour que le formulaire soit valide ; l’erreur s’affiche après une interaction ou une tentative d’envoi."
|
|
3646
|
+
},
|
|
3647
|
+
{
|
|
3648
|
+
"name": "disabled",
|
|
3649
|
+
"fieldName": "disabled",
|
|
3650
|
+
"type": {
|
|
3651
|
+
"text": "boolean"
|
|
3652
|
+
},
|
|
3653
|
+
"default": "false",
|
|
3654
|
+
"description": "Refuse la bascule ; rien n’est envoyé. Un fieldset désactivé a le même effet."
|
|
3655
|
+
},
|
|
3656
|
+
{
|
|
3657
|
+
"name": "label-position",
|
|
3658
|
+
"fieldName": "labelPosition",
|
|
3659
|
+
"type": {
|
|
3660
|
+
"text": "'start' | 'end'"
|
|
3661
|
+
},
|
|
3662
|
+
"default": "\"end\"",
|
|
3663
|
+
"description": "Libellé après la piste (end, défaut) ou avant (start). Toute autre valeur vaut end."
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
"name": "size",
|
|
3667
|
+
"fieldName": "size",
|
|
3668
|
+
"type": {
|
|
3669
|
+
"text": "'sm' | 'md'"
|
|
3670
|
+
},
|
|
3671
|
+
"default": "\"md\"",
|
|
3672
|
+
"description": "Piste de 24 × 14 (sm) ou 28 × 16 px (md) ; 36 × 20 px au pointeur grossier. Toute autre valeur vaut md."
|
|
3673
|
+
},
|
|
3674
|
+
{
|
|
3675
|
+
"name": "locale",
|
|
3676
|
+
"fieldName": "locale",
|
|
3677
|
+
"type": {
|
|
3678
|
+
"text": "string"
|
|
3679
|
+
},
|
|
3680
|
+
"default": "\"fr-CA\"",
|
|
3681
|
+
"description": "Langue des textes intégrés (BCP 47) : la mention « obligatoire » (« required ») et le message de validation. Toute balise en vaut en, le reste vaut fr. Un libellé écrit par la page l’emporte."
|
|
3682
|
+
}
|
|
3683
|
+
],
|
|
3684
|
+
"members": [
|
|
3685
|
+
{
|
|
3686
|
+
"kind": "field",
|
|
3687
|
+
"name": "label",
|
|
3688
|
+
"attribute": "label",
|
|
3689
|
+
"reflects": true,
|
|
3690
|
+
"type": {
|
|
3691
|
+
"text": "string"
|
|
3692
|
+
}
|
|
3693
|
+
},
|
|
3694
|
+
{
|
|
3695
|
+
"kind": "field",
|
|
3696
|
+
"name": "description",
|
|
3697
|
+
"attribute": "description",
|
|
3698
|
+
"reflects": true,
|
|
3699
|
+
"type": {
|
|
3700
|
+
"text": "string"
|
|
3701
|
+
}
|
|
3702
|
+
},
|
|
3703
|
+
{
|
|
3704
|
+
"kind": "field",
|
|
3705
|
+
"name": "checked",
|
|
3706
|
+
"attribute": "checked",
|
|
3707
|
+
"reflects": true,
|
|
3708
|
+
"type": {
|
|
3709
|
+
"text": "boolean"
|
|
3710
|
+
}
|
|
3711
|
+
},
|
|
3712
|
+
{
|
|
3713
|
+
"kind": "field",
|
|
3714
|
+
"name": "value",
|
|
3715
|
+
"attribute": "value",
|
|
3716
|
+
"reflects": true,
|
|
3717
|
+
"type": {
|
|
3718
|
+
"text": "string"
|
|
3719
|
+
}
|
|
3720
|
+
},
|
|
3721
|
+
{
|
|
3722
|
+
"kind": "field",
|
|
3723
|
+
"name": "name",
|
|
3724
|
+
"attribute": "name",
|
|
3725
|
+
"reflects": true,
|
|
3726
|
+
"type": {
|
|
3727
|
+
"text": "string"
|
|
3728
|
+
}
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
"kind": "field",
|
|
3732
|
+
"name": "required",
|
|
3733
|
+
"attribute": "required",
|
|
3734
|
+
"reflects": true,
|
|
3735
|
+
"type": {
|
|
3736
|
+
"text": "boolean"
|
|
3737
|
+
}
|
|
3738
|
+
},
|
|
3739
|
+
{
|
|
3740
|
+
"kind": "field",
|
|
3741
|
+
"name": "disabled",
|
|
3742
|
+
"attribute": "disabled",
|
|
3743
|
+
"reflects": true,
|
|
3744
|
+
"type": {
|
|
3745
|
+
"text": "boolean"
|
|
3746
|
+
}
|
|
3747
|
+
},
|
|
3748
|
+
{
|
|
3749
|
+
"kind": "field",
|
|
3750
|
+
"name": "labelPosition",
|
|
3751
|
+
"attribute": "label-position",
|
|
3752
|
+
"reflects": true,
|
|
3753
|
+
"type": {
|
|
3754
|
+
"text": "'start' | 'end'"
|
|
3755
|
+
}
|
|
3756
|
+
},
|
|
3757
|
+
{
|
|
3758
|
+
"kind": "field",
|
|
3759
|
+
"name": "size",
|
|
3760
|
+
"attribute": "size",
|
|
3761
|
+
"reflects": true,
|
|
3762
|
+
"type": {
|
|
3763
|
+
"text": "'sm' | 'md'"
|
|
3764
|
+
}
|
|
3765
|
+
},
|
|
3766
|
+
{
|
|
3767
|
+
"kind": "field",
|
|
3768
|
+
"name": "locale",
|
|
3769
|
+
"attribute": "locale",
|
|
3770
|
+
"reflects": true,
|
|
3771
|
+
"type": {
|
|
3772
|
+
"text": "string"
|
|
3773
|
+
}
|
|
3774
|
+
}
|
|
3775
|
+
],
|
|
3776
|
+
"events": [
|
|
3777
|
+
{
|
|
3778
|
+
"name": "bythium-change",
|
|
3779
|
+
"type": {
|
|
3780
|
+
"text": "CustomEvent<{ checked: boolean; value: string }>"
|
|
3781
|
+
},
|
|
3782
|
+
"description": "Émis après une bascule par l’utilisateur (clic, Espace, Entrée). Une écriture de checked par la page n’émet rien."
|
|
3783
|
+
}
|
|
3784
|
+
],
|
|
3785
|
+
"slots": [],
|
|
3786
|
+
"cssParts": [
|
|
3787
|
+
{
|
|
3788
|
+
"name": "base",
|
|
3789
|
+
"description": "Grille qui place la piste, le libellé, la description et l’erreur."
|
|
3790
|
+
},
|
|
3791
|
+
{
|
|
3792
|
+
"name": "control",
|
|
3793
|
+
"description": "Case native de rôle switch, dessinée en piste et pastille."
|
|
3794
|
+
},
|
|
3795
|
+
{
|
|
3796
|
+
"name": "label",
|
|
3797
|
+
"description": "Libellé relié à la case."
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"name": "description",
|
|
3801
|
+
"description": "Description de la case."
|
|
3802
|
+
},
|
|
3803
|
+
{
|
|
3804
|
+
"name": "error",
|
|
3805
|
+
"description": "Message d’erreur, affiché après interaction."
|
|
3806
|
+
}
|
|
3807
|
+
],
|
|
3808
|
+
"cssProperties": [
|
|
3809
|
+
{
|
|
3810
|
+
"name": "--bythium-text-primary"
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
"name": "--bythium-text-secondary"
|
|
3814
|
+
},
|
|
3815
|
+
{
|
|
3816
|
+
"name": "--bythium-text-muted"
|
|
3817
|
+
},
|
|
3818
|
+
{
|
|
3819
|
+
"name": "--bythium-surface-raised"
|
|
3820
|
+
},
|
|
3821
|
+
{
|
|
3822
|
+
"name": "--bythium-surface-base"
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
"name": "--bythium-border-subtle"
|
|
3826
|
+
},
|
|
3827
|
+
{
|
|
3828
|
+
"name": "--bythium-border-strong"
|
|
3829
|
+
},
|
|
3830
|
+
{
|
|
3831
|
+
"name": "--bythium-brand-primary"
|
|
3832
|
+
},
|
|
3833
|
+
{
|
|
3834
|
+
"name": "--bythium-brand-primary-hover"
|
|
3835
|
+
},
|
|
3836
|
+
{
|
|
3837
|
+
"name": "--bythium-on-brand-primary"
|
|
3838
|
+
},
|
|
3839
|
+
{
|
|
3840
|
+
"name": "--bythium-status-danger"
|
|
3841
|
+
},
|
|
3842
|
+
{
|
|
3843
|
+
"name": "--bythium-border-focus"
|
|
3844
|
+
},
|
|
3845
|
+
{
|
|
3846
|
+
"name": "--duration-fast"
|
|
3847
|
+
},
|
|
3848
|
+
{
|
|
3849
|
+
"name": "--ease-standard"
|
|
3850
|
+
}
|
|
3851
|
+
]
|
|
3852
|
+
}
|
|
3853
|
+
],
|
|
3854
|
+
"exports": [
|
|
3855
|
+
{
|
|
3856
|
+
"kind": "custom-element-definition",
|
|
3857
|
+
"name": "bythium-switch",
|
|
3858
|
+
"declaration": {
|
|
3859
|
+
"name": "BythiumSwitch"
|
|
3860
|
+
}
|
|
3861
|
+
}
|
|
3862
|
+
]
|
|
3863
|
+
},
|
|
3864
|
+
{
|
|
3865
|
+
"kind": "javascript-module",
|
|
3866
|
+
"path": "dist/form.js",
|
|
3867
|
+
"declarations": [
|
|
3868
|
+
{
|
|
3869
|
+
"kind": "class",
|
|
3870
|
+
"name": "BythiumForm",
|
|
3871
|
+
"tagName": "bythium-form",
|
|
3872
|
+
"customElement": true,
|
|
3873
|
+
"description": "Enveloppe d’un formulaire natif du DOM léger : validation globale, résumé d’erreurs lié et focalisé, soumission par événement ou envoi natif.",
|
|
3874
|
+
"attributes": [
|
|
3875
|
+
{
|
|
3876
|
+
"name": "label",
|
|
3877
|
+
"fieldName": "label",
|
|
3878
|
+
"type": {
|
|
3879
|
+
"text": "string"
|
|
3880
|
+
},
|
|
3881
|
+
"default": "\"Formulaire\"",
|
|
3882
|
+
"description": "Nom accessible de la région qui entoure le formulaire."
|
|
3883
|
+
},
|
|
3884
|
+
{
|
|
3885
|
+
"name": "heading-level",
|
|
3886
|
+
"fieldName": "headingLevel",
|
|
3887
|
+
"type": {
|
|
3888
|
+
"text": "number"
|
|
3889
|
+
},
|
|
3890
|
+
"default": "2",
|
|
3891
|
+
"description": "Niveau du titre du résumé d’erreurs dans le plan de la page (WC-N03)."
|
|
3892
|
+
},
|
|
3893
|
+
{
|
|
3894
|
+
"name": "locale",
|
|
3895
|
+
"fieldName": "locale",
|
|
3896
|
+
"type": {
|
|
3897
|
+
"text": "string"
|
|
3898
|
+
},
|
|
3899
|
+
"default": "\"fr\"",
|
|
3900
|
+
"description": "Langue BCP 47 des textes de la balise (titre du résumé, messages des champs natifs) : anglais pour toute balise en, français sinon."
|
|
3901
|
+
}
|
|
3902
|
+
],
|
|
3903
|
+
"members": [
|
|
3904
|
+
{
|
|
3905
|
+
"kind": "field",
|
|
3906
|
+
"name": "label",
|
|
3907
|
+
"attribute": "label",
|
|
3908
|
+
"reflects": true,
|
|
3909
|
+
"type": {
|
|
3910
|
+
"text": "string"
|
|
3911
|
+
}
|
|
3912
|
+
},
|
|
3913
|
+
{
|
|
3914
|
+
"kind": "field",
|
|
3915
|
+
"name": "headingLevel",
|
|
3916
|
+
"attribute": "heading-level",
|
|
3917
|
+
"reflects": true,
|
|
3918
|
+
"type": {
|
|
3919
|
+
"text": "number"
|
|
3920
|
+
}
|
|
3921
|
+
},
|
|
3922
|
+
{
|
|
3923
|
+
"kind": "field",
|
|
3924
|
+
"name": "locale",
|
|
3925
|
+
"attribute": "locale",
|
|
3926
|
+
"reflects": true,
|
|
3927
|
+
"type": {
|
|
3928
|
+
"text": "string"
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
],
|
|
3932
|
+
"events": [
|
|
3933
|
+
{
|
|
3934
|
+
"name": "bythium-invalid",
|
|
3935
|
+
"type": {
|
|
3936
|
+
"text": "CustomEvent<{ errors: { id: string; label: string; message: string }[] }>"
|
|
3937
|
+
},
|
|
3938
|
+
"description": "Émis quand une validation (soumission ou validate()) trouve au moins un champ invalide, après le rendu du résumé ; le focus passe ensuite au résumé."
|
|
3939
|
+
},
|
|
3940
|
+
{
|
|
3941
|
+
"name": "bythium-submit",
|
|
3942
|
+
"type": {
|
|
3943
|
+
"text": "CustomEvent<{ formData: unknown; form: unknown }>"
|
|
3944
|
+
},
|
|
3945
|
+
"description": "Émis à la soumission d’un formulaire valide (annulable). Sans action, ou sans method post, sur le form natif, l’envoi réseau est toujours empêché ; avec une action et method post, le navigateur envoie le formulaire, sauf si la page annule l’événement (envoi par la page). Un envoi par GET mettrait chaque champ, mot de passe compris, dans l’adresse."
|
|
3946
|
+
},
|
|
3947
|
+
{
|
|
3948
|
+
"name": "bythium-reset",
|
|
3949
|
+
"type": {
|
|
3950
|
+
"text": "CustomEvent<{ form: unknown }>"
|
|
3951
|
+
},
|
|
3952
|
+
"description": "Émis après le reset natif du formulaire (bouton reset ou reset()) ; le résumé est alors vidé."
|
|
3953
|
+
}
|
|
3954
|
+
],
|
|
3955
|
+
"slots": [
|
|
3956
|
+
{
|
|
3957
|
+
"name": "",
|
|
3958
|
+
"description": "Un form natif (H-02) et ses champs : label, input, select, textarea, button, fieldset, et balises du catalogue. Le form peut porter action (chemin du même site), toujours avec method post : il part alors sans JavaScript. Sans form, les enfants sont placés dans un form créé au raccordement."
|
|
3959
|
+
}
|
|
3960
|
+
],
|
|
3961
|
+
"cssParts": [
|
|
3962
|
+
{
|
|
3963
|
+
"name": "base",
|
|
3964
|
+
"description": "Région nommée par label qui entoure le résumé et le formulaire."
|
|
3965
|
+
},
|
|
3966
|
+
{
|
|
3967
|
+
"name": "summary",
|
|
3968
|
+
"description": "Résumé des erreurs, masqué tant qu’il est vide ; focalisé après une validation refusée."
|
|
3969
|
+
},
|
|
3970
|
+
{
|
|
3971
|
+
"name": "title",
|
|
3972
|
+
"description": "Titre du résumé (« Corrigez 2 erreurs »)."
|
|
3973
|
+
},
|
|
3974
|
+
{
|
|
3975
|
+
"name": "errors",
|
|
3976
|
+
"description": "Liste des liens vers les champs invalides."
|
|
3977
|
+
}
|
|
3978
|
+
],
|
|
3979
|
+
"cssProperties": [
|
|
3980
|
+
{
|
|
3981
|
+
"name": "--bythium-text-primary"
|
|
3982
|
+
},
|
|
3983
|
+
{
|
|
3984
|
+
"name": "--bythium-text-muted"
|
|
3985
|
+
},
|
|
3986
|
+
{
|
|
3987
|
+
"name": "--bythium-surface-base"
|
|
3988
|
+
},
|
|
3989
|
+
{
|
|
3990
|
+
"name": "--bythium-border-subtle"
|
|
3991
|
+
},
|
|
3992
|
+
{
|
|
3993
|
+
"name": "--bythium-brand-primary"
|
|
3994
|
+
},
|
|
3995
|
+
{
|
|
3996
|
+
"name": "--bythium-status-danger"
|
|
3997
|
+
},
|
|
3998
|
+
{
|
|
3999
|
+
"name": "--radius-control"
|
|
4000
|
+
},
|
|
4001
|
+
{
|
|
4002
|
+
"name": "--radius-sm"
|
|
4003
|
+
}
|
|
4004
|
+
]
|
|
4005
|
+
}
|
|
4006
|
+
],
|
|
4007
|
+
"exports": [
|
|
4008
|
+
{
|
|
4009
|
+
"kind": "custom-element-definition",
|
|
4010
|
+
"name": "bythium-form",
|
|
4011
|
+
"declaration": {
|
|
4012
|
+
"name": "BythiumForm"
|
|
4013
|
+
}
|
|
4014
|
+
}
|
|
4015
|
+
]
|
|
4016
|
+
},
|
|
4017
|
+
{
|
|
4018
|
+
"kind": "javascript-module",
|
|
4019
|
+
"path": "dist/badge.js",
|
|
4020
|
+
"declarations": [
|
|
4021
|
+
{
|
|
4022
|
+
"kind": "class",
|
|
4023
|
+
"name": "BythiumBadge",
|
|
4024
|
+
"tagName": "bythium-badge",
|
|
4025
|
+
"customElement": true,
|
|
4026
|
+
"description": "Étiquette statique de statut ou de catégorie : un texte court (ou un nombre) sur un fond teinté par le ton, en rectangle arrondi, en pastille ou en rond.",
|
|
4027
|
+
"attributes": [
|
|
4028
|
+
{
|
|
4029
|
+
"name": "tone",
|
|
4030
|
+
"fieldName": "tone",
|
|
4031
|
+
"type": {
|
|
4032
|
+
"text": "'info' | 'success' | 'danger' | 'warning' | 'neutral' | 'brand' | 'outline' | 'gradient'"
|
|
4033
|
+
},
|
|
4034
|
+
"default": "\"info\"",
|
|
4035
|
+
"description": "Ton : info (défaut), success, danger, warning, neutral (gris), brand (violet de marque), outline (contour sans fond) ou gradient (dégradé de marque, texte sombre). Le texte porte le sens ; la couleur le souligne."
|
|
4036
|
+
},
|
|
4037
|
+
{
|
|
4038
|
+
"name": "shape",
|
|
4039
|
+
"fieldName": "shape",
|
|
4040
|
+
"type": {
|
|
4041
|
+
"text": "'rounded' | 'pill' | 'circle'"
|
|
4042
|
+
},
|
|
4043
|
+
"default": "\"rounded\"",
|
|
4044
|
+
"description": "Forme : rounded (défaut, coins arrondis), pill (pastille aux extrémités rondes) ou circle (rond, pour un ou deux caractères comme un numéro)."
|
|
4045
|
+
},
|
|
4046
|
+
{
|
|
4047
|
+
"name": "size",
|
|
4048
|
+
"fieldName": "size",
|
|
4049
|
+
"type": {
|
|
4050
|
+
"text": "'sm' | 'md' | 'lg'"
|
|
4051
|
+
},
|
|
4052
|
+
"default": "\"sm\"",
|
|
4053
|
+
"description": "Taille : sm (défaut, 20 px), md (28 px, pour une puce de filtre ou de catégorie) ou lg (52 px, pour une grande pastille de confirmation : cadre à 50 % du ton, fond à 14 %, pictogramme de 26 px, comme le crochet de la page de remerciement)."
|
|
4054
|
+
},
|
|
4055
|
+
{
|
|
4056
|
+
"name": "dot",
|
|
4057
|
+
"fieldName": "dot",
|
|
4058
|
+
"type": {
|
|
4059
|
+
"text": "boolean"
|
|
4060
|
+
},
|
|
4061
|
+
"default": "false",
|
|
4062
|
+
"description": "Ajoute un point décoratif devant le texte, de la couleur du ton."
|
|
4063
|
+
},
|
|
4064
|
+
{
|
|
4065
|
+
"name": "hint",
|
|
4066
|
+
"fieldName": "hint",
|
|
4067
|
+
"type": {
|
|
4068
|
+
"text": "string"
|
|
4069
|
+
},
|
|
4070
|
+
"default": "\"\"",
|
|
4071
|
+
"description": "Infobulle de l’étiquette, montrée au survol et au focus clavier, masquée par Échap ; elle décrit l’étiquette (aria-describedby) et la rend atteignable au clavier. Vide : aucune infobulle, aucun arrêt de tabulation."
|
|
4072
|
+
}
|
|
4073
|
+
],
|
|
4074
|
+
"members": [
|
|
4075
|
+
{
|
|
4076
|
+
"kind": "field",
|
|
4077
|
+
"name": "tone",
|
|
4078
|
+
"attribute": "tone",
|
|
4079
|
+
"reflects": true,
|
|
4080
|
+
"type": {
|
|
4081
|
+
"text": "'info' | 'success' | 'danger' | 'warning' | 'neutral' | 'brand' | 'outline' | 'gradient'"
|
|
4082
|
+
}
|
|
4083
|
+
},
|
|
4084
|
+
{
|
|
4085
|
+
"kind": "field",
|
|
4086
|
+
"name": "shape",
|
|
4087
|
+
"attribute": "shape",
|
|
4088
|
+
"reflects": true,
|
|
4089
|
+
"type": {
|
|
4090
|
+
"text": "'rounded' | 'pill' | 'circle'"
|
|
4091
|
+
}
|
|
4092
|
+
},
|
|
4093
|
+
{
|
|
4094
|
+
"kind": "field",
|
|
4095
|
+
"name": "size",
|
|
4096
|
+
"attribute": "size",
|
|
4097
|
+
"reflects": true,
|
|
4098
|
+
"type": {
|
|
4099
|
+
"text": "'sm' | 'md' | 'lg'"
|
|
4100
|
+
}
|
|
4101
|
+
},
|
|
4102
|
+
{
|
|
4103
|
+
"kind": "field",
|
|
4104
|
+
"name": "dot",
|
|
4105
|
+
"attribute": "dot",
|
|
4106
|
+
"reflects": true,
|
|
4107
|
+
"type": {
|
|
4108
|
+
"text": "boolean"
|
|
4109
|
+
}
|
|
4110
|
+
},
|
|
4111
|
+
{
|
|
4112
|
+
"kind": "field",
|
|
4113
|
+
"name": "hint",
|
|
4114
|
+
"attribute": "hint",
|
|
4115
|
+
"reflects": true,
|
|
4116
|
+
"type": {
|
|
4117
|
+
"text": "string"
|
|
4118
|
+
}
|
|
4119
|
+
}
|
|
4120
|
+
],
|
|
4121
|
+
"events": [],
|
|
4122
|
+
"slots": [
|
|
4123
|
+
{
|
|
4124
|
+
"name": "",
|
|
4125
|
+
"description": "Texte de l’étiquette, qui porte le statut ; en taille lg, il peut aussi être un pictogramme décoratif (image vectorielle) dont le sens est donné par le contexte."
|
|
4126
|
+
}
|
|
4127
|
+
],
|
|
4128
|
+
"cssParts": [
|
|
4129
|
+
{
|
|
4130
|
+
"name": "base",
|
|
4131
|
+
"description": "Étiquette."
|
|
4132
|
+
},
|
|
4133
|
+
{
|
|
4134
|
+
"name": "hint",
|
|
4135
|
+
"description": "Infobulle, dans la couche supérieure, ancrée sous l’étiquette."
|
|
4136
|
+
}
|
|
4137
|
+
],
|
|
4138
|
+
"cssProperties": [
|
|
4139
|
+
{
|
|
4140
|
+
"name": "--bythium-text-primary"
|
|
4141
|
+
},
|
|
4142
|
+
{
|
|
4143
|
+
"name": "--bythium-surface-base"
|
|
4144
|
+
},
|
|
4145
|
+
{
|
|
4146
|
+
"name": "--bythium-accent"
|
|
4147
|
+
},
|
|
4148
|
+
{
|
|
4149
|
+
"name": "--bythium-border-focus"
|
|
4150
|
+
},
|
|
4151
|
+
{
|
|
4152
|
+
"name": "--bythium-border-strong"
|
|
4153
|
+
},
|
|
4154
|
+
{
|
|
4155
|
+
"name": "--radius-control"
|
|
4156
|
+
},
|
|
4157
|
+
{
|
|
4158
|
+
"name": "--bythium-brand-cyan"
|
|
4159
|
+
},
|
|
4160
|
+
{
|
|
4161
|
+
"name": "--bythium-brand-violet"
|
|
4162
|
+
},
|
|
4163
|
+
{
|
|
4164
|
+
"name": "--bythium-brand-primary-text"
|
|
4165
|
+
},
|
|
4166
|
+
{
|
|
4167
|
+
"name": "--bythium-status-info"
|
|
4168
|
+
},
|
|
4169
|
+
{
|
|
4170
|
+
"name": "--bythium-status-success"
|
|
4171
|
+
},
|
|
4172
|
+
{
|
|
4173
|
+
"name": "--bythium-status-danger"
|
|
4174
|
+
},
|
|
4175
|
+
{
|
|
4176
|
+
"name": "--bythium-status-warning"
|
|
4177
|
+
},
|
|
4178
|
+
{
|
|
4179
|
+
"name": "--bythium-surface-raised"
|
|
4180
|
+
},
|
|
4181
|
+
{
|
|
4182
|
+
"name": "--bythium-text-secondary"
|
|
4183
|
+
},
|
|
4184
|
+
{
|
|
4185
|
+
"name": "--radius-sm"
|
|
4186
|
+
},
|
|
4187
|
+
{
|
|
4188
|
+
"name": "--radius-full"
|
|
4189
|
+
}
|
|
4190
|
+
]
|
|
4191
|
+
}
|
|
4192
|
+
],
|
|
4193
|
+
"exports": [
|
|
4194
|
+
{
|
|
4195
|
+
"kind": "custom-element-definition",
|
|
4196
|
+
"name": "bythium-badge",
|
|
4197
|
+
"declaration": {
|
|
4198
|
+
"name": "BythiumBadge"
|
|
4199
|
+
}
|
|
4200
|
+
}
|
|
4201
|
+
]
|
|
4202
|
+
},
|
|
4203
|
+
{
|
|
4204
|
+
"kind": "javascript-module",
|
|
4205
|
+
"path": "dist/card.js",
|
|
4206
|
+
"declarations": [
|
|
4207
|
+
{
|
|
4208
|
+
"kind": "class",
|
|
4209
|
+
"name": "BythiumCard",
|
|
4210
|
+
"tagName": "bythium-card",
|
|
4211
|
+
"customElement": true,
|
|
4212
|
+
"description": "Surface sur filet (à plat par défaut, relevée ou en dégradé) : en-tête (texte de label ou slot header), contenu et pied, chacun alimenté par un slot.",
|
|
4213
|
+
"attributes": [
|
|
4214
|
+
{
|
|
4215
|
+
"name": "label",
|
|
4216
|
+
"fieldName": "label",
|
|
4217
|
+
"type": {
|
|
4218
|
+
"text": "string"
|
|
4219
|
+
},
|
|
4220
|
+
"default": "\"\"",
|
|
4221
|
+
"description": "Texte de l’en-tête quand le slot header est vide (texte simple, pas un titre du plan). Vide par défaut."
|
|
4222
|
+
},
|
|
4223
|
+
{
|
|
4224
|
+
"name": "surface",
|
|
4225
|
+
"fieldName": "surface",
|
|
4226
|
+
"type": {
|
|
4227
|
+
"text": "'default' | 'raised' | 'gradient' | 'page'"
|
|
4228
|
+
},
|
|
4229
|
+
"default": "\"default\"",
|
|
4230
|
+
"description": "Fond de la carte : default (à plat, comme avant), raised (fond relevé), gradient (dégradé vertical avec ombre portée, clair et sombre) ou page (fond de la page, pour une fenêtre posée sur une carte)."
|
|
4231
|
+
},
|
|
4232
|
+
{
|
|
4233
|
+
"name": "padding",
|
|
4234
|
+
"fieldName": "padding",
|
|
4235
|
+
"type": {
|
|
4236
|
+
"text": "'md' | 'lg'"
|
|
4237
|
+
},
|
|
4238
|
+
"default": "\"md\"",
|
|
4239
|
+
"description": "Marge intérieure : md (défaut, 14 à 16 px) ou lg (36 px sur 32 px, rayon de 20 px, sans filet sous l’en-tête)."
|
|
4240
|
+
},
|
|
4241
|
+
{
|
|
4242
|
+
"name": "frame",
|
|
4243
|
+
"fieldName": "frame",
|
|
4244
|
+
"type": {
|
|
4245
|
+
"text": "'none' | 'window'"
|
|
4246
|
+
},
|
|
4247
|
+
"default": "\"none\"",
|
|
4248
|
+
"description": "Cadre : none (défaut, carte simple) ou window (fenêtre : barre de titre sur fond de surface avec trois points décoratifs et le titre en chasse fixe, rayon de 16 px, ombre portée, contenu à 16 px, pied masqué s’il est vide). Le titre vient du label ou du slot header."
|
|
4249
|
+
},
|
|
4250
|
+
{
|
|
4251
|
+
"name": "glow",
|
|
4252
|
+
"fieldName": "glow",
|
|
4253
|
+
"type": {
|
|
4254
|
+
"text": "boolean"
|
|
4255
|
+
},
|
|
4256
|
+
"default": "false",
|
|
4257
|
+
"description": "Halo violet sous la carte (ombre portée colorée des cartes de tête et des fenêtres). Retiré en couleurs forcées ; aucun mouvement."
|
|
4258
|
+
},
|
|
4259
|
+
{
|
|
4260
|
+
"name": "locale",
|
|
4261
|
+
"fieldName": "locale",
|
|
4262
|
+
"type": {
|
|
4263
|
+
"text": "string"
|
|
4264
|
+
},
|
|
4265
|
+
"default": "\"fr-CA\"",
|
|
4266
|
+
"description": "Langue des textes intégrés (BCP 47) : texte du contenu quand le slot par défaut est vide. Toute balise en vaut en, le reste vaut fr. Un label écrit par la page l’emporte."
|
|
4267
|
+
}
|
|
4268
|
+
],
|
|
4269
|
+
"members": [
|
|
4270
|
+
{
|
|
4271
|
+
"kind": "field",
|
|
4272
|
+
"name": "label",
|
|
4273
|
+
"attribute": "label",
|
|
4274
|
+
"reflects": true,
|
|
4275
|
+
"type": {
|
|
4276
|
+
"text": "string"
|
|
4277
|
+
}
|
|
4278
|
+
},
|
|
4279
|
+
{
|
|
4280
|
+
"kind": "field",
|
|
4281
|
+
"name": "surface",
|
|
4282
|
+
"attribute": "surface",
|
|
4283
|
+
"reflects": true,
|
|
4284
|
+
"type": {
|
|
4285
|
+
"text": "'default' | 'raised' | 'gradient' | 'page'"
|
|
4286
|
+
}
|
|
4287
|
+
},
|
|
4288
|
+
{
|
|
4289
|
+
"kind": "field",
|
|
4290
|
+
"name": "padding",
|
|
4291
|
+
"attribute": "padding",
|
|
4292
|
+
"reflects": true,
|
|
4293
|
+
"type": {
|
|
4294
|
+
"text": "'md' | 'lg'"
|
|
4295
|
+
}
|
|
4296
|
+
},
|
|
4297
|
+
{
|
|
4298
|
+
"kind": "field",
|
|
4299
|
+
"name": "frame",
|
|
4300
|
+
"attribute": "frame",
|
|
4301
|
+
"reflects": true,
|
|
4302
|
+
"type": {
|
|
4303
|
+
"text": "'none' | 'window'"
|
|
4304
|
+
}
|
|
4305
|
+
},
|
|
4306
|
+
{
|
|
4307
|
+
"kind": "field",
|
|
4308
|
+
"name": "glow",
|
|
4309
|
+
"attribute": "glow",
|
|
4310
|
+
"reflects": true,
|
|
4311
|
+
"type": {
|
|
4312
|
+
"text": "boolean"
|
|
4313
|
+
}
|
|
4314
|
+
},
|
|
4315
|
+
{
|
|
4316
|
+
"kind": "field",
|
|
4317
|
+
"name": "locale",
|
|
4318
|
+
"attribute": "locale",
|
|
4319
|
+
"reflects": true,
|
|
4320
|
+
"type": {
|
|
4321
|
+
"text": "string"
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
4324
|
+
],
|
|
4325
|
+
"events": [],
|
|
4326
|
+
"slots": [
|
|
4327
|
+
{
|
|
4328
|
+
"name": "header",
|
|
4329
|
+
"description": "En-tête ; remplace l’attribut label. Sans label ni contenu glissé, la zone d’en-tête disparaît."
|
|
4330
|
+
},
|
|
4331
|
+
{
|
|
4332
|
+
"name": "",
|
|
4333
|
+
"description": "Contenu de la carte ; à défaut « Contenu de la carte. »."
|
|
4334
|
+
},
|
|
4335
|
+
{
|
|
4336
|
+
"name": "footer",
|
|
4337
|
+
"description": "Pied : actions ou mention secondaire."
|
|
4338
|
+
}
|
|
4339
|
+
],
|
|
4340
|
+
"cssParts": [
|
|
4341
|
+
{
|
|
4342
|
+
"name": "base",
|
|
4343
|
+
"description": "Élément article."
|
|
4344
|
+
},
|
|
4345
|
+
{
|
|
4346
|
+
"name": "header",
|
|
4347
|
+
"description": "En-tête."
|
|
4348
|
+
},
|
|
4349
|
+
{
|
|
4350
|
+
"name": "content",
|
|
4351
|
+
"description": "Contenu."
|
|
4352
|
+
},
|
|
4353
|
+
{
|
|
4354
|
+
"name": "footer",
|
|
4355
|
+
"description": "Pied."
|
|
4356
|
+
},
|
|
4357
|
+
{
|
|
4358
|
+
"name": "dots",
|
|
4359
|
+
"description": "Trois points décoratifs de la barre de titre (frame=window seulement, masqués aux technologies d’assistance)."
|
|
4360
|
+
},
|
|
4361
|
+
{
|
|
4362
|
+
"name": "title",
|
|
4363
|
+
"description": "Titre de la barre de fenêtre, coupé par des points de suspension (frame=window seulement)."
|
|
4364
|
+
}
|
|
4365
|
+
],
|
|
4366
|
+
"cssProperties": [
|
|
4367
|
+
{
|
|
4368
|
+
"name": "--bythium-border-subtle"
|
|
4369
|
+
},
|
|
4370
|
+
{
|
|
4371
|
+
"name": "--bythium-surface-base"
|
|
4372
|
+
},
|
|
4373
|
+
{
|
|
4374
|
+
"name": "--bythium-text-primary"
|
|
4375
|
+
},
|
|
4376
|
+
{
|
|
4377
|
+
"name": "--bythium-text-secondary"
|
|
4378
|
+
},
|
|
4379
|
+
{
|
|
4380
|
+
"name": "--bythium-text-muted"
|
|
4381
|
+
},
|
|
4382
|
+
{
|
|
4383
|
+
"name": "--radius-card"
|
|
4384
|
+
},
|
|
4385
|
+
{
|
|
4386
|
+
"name": "--bythium-surface-card"
|
|
4387
|
+
},
|
|
4388
|
+
{
|
|
4389
|
+
"name": "--bythium-surface-raised"
|
|
4390
|
+
},
|
|
4391
|
+
{
|
|
4392
|
+
"name": "--bythium-surface-page"
|
|
4393
|
+
},
|
|
4394
|
+
{
|
|
4395
|
+
"name": "--font-mono"
|
|
4396
|
+
},
|
|
4397
|
+
{
|
|
4398
|
+
"name": "--shadow-window"
|
|
4399
|
+
},
|
|
4400
|
+
{
|
|
4401
|
+
"name": "--shadow-glow"
|
|
4402
|
+
}
|
|
4403
|
+
]
|
|
4404
|
+
}
|
|
4405
|
+
],
|
|
4406
|
+
"exports": [
|
|
4407
|
+
{
|
|
4408
|
+
"kind": "custom-element-definition",
|
|
4409
|
+
"name": "bythium-card",
|
|
4410
|
+
"declaration": {
|
|
4411
|
+
"name": "BythiumCard"
|
|
4412
|
+
}
|
|
4413
|
+
}
|
|
4414
|
+
]
|
|
4415
|
+
},
|
|
4416
|
+
{
|
|
4417
|
+
"kind": "javascript-module",
|
|
4418
|
+
"path": "dist/inline-alert.js",
|
|
4419
|
+
"declarations": [
|
|
4420
|
+
{
|
|
4421
|
+
"kind": "class",
|
|
4422
|
+
"name": "BythiumInlineAlert",
|
|
4423
|
+
"tagName": "bythium-inline-alert",
|
|
4424
|
+
"customElement": true,
|
|
4425
|
+
"description": "Bandeau d’alerte en ligne, annoncé poliment (role status), en ton info, succès, avertissement ou danger, refermable sur demande.",
|
|
4426
|
+
"attributes": [
|
|
4427
|
+
{
|
|
4428
|
+
"name": "tone",
|
|
4429
|
+
"fieldName": "tone",
|
|
4430
|
+
"type": {
|
|
4431
|
+
"text": "'info' | 'success' | 'warning' | 'danger'"
|
|
4432
|
+
},
|
|
4433
|
+
"default": "\"info\"",
|
|
4434
|
+
"description": "Ton du bandeau : couleur du cadre, du fond et de l’icône ; chaque ton a sa propre icône (info : i cerclé, success : coche cerclée, warning : triangle, danger : octogone). Une valeur inconnue vaut info."
|
|
4435
|
+
},
|
|
4436
|
+
{
|
|
4437
|
+
"name": "dismissible",
|
|
4438
|
+
"fieldName": "dismissible",
|
|
4439
|
+
"type": {
|
|
4440
|
+
"text": "boolean"
|
|
4441
|
+
},
|
|
4442
|
+
"default": "false",
|
|
4443
|
+
"description": "Ajoute un bouton Fermer qui masque le bandeau (attribut hidden) et émet bythium-dismiss."
|
|
4444
|
+
},
|
|
4445
|
+
{
|
|
4446
|
+
"name": "locale",
|
|
4447
|
+
"fieldName": "locale",
|
|
4448
|
+
"type": {
|
|
4449
|
+
"text": "string"
|
|
4450
|
+
},
|
|
4451
|
+
"default": "\"fr-CA\"",
|
|
4452
|
+
"description": "Langue du nom accessible du bouton Fermer (BCP 47) : « Fermer l’alerte » ou « Dismiss alert ». Toute balise en vaut en, le reste vaut fr."
|
|
4453
|
+
}
|
|
4454
|
+
],
|
|
4455
|
+
"members": [
|
|
4456
|
+
{
|
|
4457
|
+
"kind": "field",
|
|
4458
|
+
"name": "tone",
|
|
4459
|
+
"attribute": "tone",
|
|
4460
|
+
"reflects": true,
|
|
4461
|
+
"type": {
|
|
4462
|
+
"text": "'info' | 'success' | 'warning' | 'danger'"
|
|
4463
|
+
}
|
|
4464
|
+
},
|
|
4465
|
+
{
|
|
4466
|
+
"kind": "field",
|
|
4467
|
+
"name": "dismissible",
|
|
4468
|
+
"attribute": "dismissible",
|
|
4469
|
+
"reflects": true,
|
|
4470
|
+
"type": {
|
|
4471
|
+
"text": "boolean"
|
|
4472
|
+
}
|
|
4473
|
+
},
|
|
4474
|
+
{
|
|
4475
|
+
"kind": "field",
|
|
4476
|
+
"name": "locale",
|
|
4477
|
+
"attribute": "locale",
|
|
4478
|
+
"reflects": true,
|
|
4479
|
+
"type": {
|
|
4480
|
+
"text": "string"
|
|
4481
|
+
}
|
|
4482
|
+
}
|
|
4483
|
+
],
|
|
4484
|
+
"events": [
|
|
4485
|
+
{
|
|
4486
|
+
"name": "bythium-dismiss",
|
|
4487
|
+
"type": {
|
|
4488
|
+
"text": "CustomEvent<{ reason: string }>"
|
|
4489
|
+
},
|
|
4490
|
+
"description": "Émis quand l’utilisateur ferme le bandeau par son bouton, après la pose de l’attribut hidden."
|
|
4491
|
+
}
|
|
4492
|
+
],
|
|
4493
|
+
"slots": [
|
|
4494
|
+
{
|
|
4495
|
+
"name": "",
|
|
4496
|
+
"description": "Message de l’alerte, écrit par la page ; aucun message par défaut."
|
|
4497
|
+
}
|
|
4498
|
+
],
|
|
4499
|
+
"cssParts": [
|
|
4500
|
+
{
|
|
4501
|
+
"name": "base",
|
|
4502
|
+
"description": "Bandeau de rôle status."
|
|
4503
|
+
},
|
|
4504
|
+
{
|
|
4505
|
+
"name": "close",
|
|
4506
|
+
"description": "Bouton Fermer (avec dismissible)."
|
|
4507
|
+
},
|
|
4508
|
+
{
|
|
4509
|
+
"name": "icon",
|
|
4510
|
+
"description": "Icône décorative du ton, distincte pour chaque ton."
|
|
4511
|
+
},
|
|
4512
|
+
{
|
|
4513
|
+
"name": "message",
|
|
4514
|
+
"description": "Zone du message (slot par défaut)."
|
|
4515
|
+
}
|
|
4516
|
+
],
|
|
4517
|
+
"cssProperties": [
|
|
4518
|
+
{
|
|
4519
|
+
"name": "--bythium-status-info"
|
|
4520
|
+
},
|
|
4521
|
+
{
|
|
4522
|
+
"name": "--bythium-status-success"
|
|
4523
|
+
},
|
|
4524
|
+
{
|
|
4525
|
+
"name": "--bythium-status-warning"
|
|
4526
|
+
},
|
|
4527
|
+
{
|
|
4528
|
+
"name": "--bythium-status-danger"
|
|
4529
|
+
},
|
|
4530
|
+
{
|
|
4531
|
+
"name": "--bythium-border-subtle"
|
|
4532
|
+
},
|
|
4533
|
+
{
|
|
4534
|
+
"name": "--bythium-surface-base"
|
|
4535
|
+
},
|
|
4536
|
+
{
|
|
4537
|
+
"name": "--bythium-text-muted"
|
|
4538
|
+
},
|
|
4539
|
+
{
|
|
4540
|
+
"name": "--bythium-text-primary"
|
|
4541
|
+
},
|
|
4542
|
+
{
|
|
4543
|
+
"name": "--bythium-state-hover"
|
|
4544
|
+
},
|
|
4545
|
+
{
|
|
4546
|
+
"name": "--radius-control"
|
|
4547
|
+
},
|
|
4548
|
+
{
|
|
4549
|
+
"name": "--radius-sm"
|
|
4550
|
+
}
|
|
4551
|
+
]
|
|
4552
|
+
}
|
|
4553
|
+
],
|
|
4554
|
+
"exports": [
|
|
4555
|
+
{
|
|
4556
|
+
"kind": "custom-element-definition",
|
|
4557
|
+
"name": "bythium-inline-alert",
|
|
4558
|
+
"declaration": {
|
|
4559
|
+
"name": "BythiumInlineAlert"
|
|
4560
|
+
}
|
|
4561
|
+
}
|
|
4562
|
+
]
|
|
4563
|
+
},
|
|
4564
|
+
{
|
|
4565
|
+
"kind": "javascript-module",
|
|
4566
|
+
"path": "dist/tabs.js",
|
|
4567
|
+
"declarations": [
|
|
4568
|
+
{
|
|
4569
|
+
"kind": "class",
|
|
4570
|
+
"name": "BythiumTabs",
|
|
4571
|
+
"tagName": "bythium-tabs",
|
|
4572
|
+
"customElement": true,
|
|
4573
|
+
"description": "Onglets soulignés (motif APG) : liste nommée, focus itinérant aux flèches, activation automatique ou manuelle, défilement des onglets hors champ.",
|
|
4574
|
+
"attributes": [
|
|
4575
|
+
{
|
|
4576
|
+
"name": "label",
|
|
4577
|
+
"fieldName": "label",
|
|
4578
|
+
"type": {
|
|
4579
|
+
"text": "string"
|
|
4580
|
+
},
|
|
4581
|
+
"default": "\"Onglets\"",
|
|
4582
|
+
"description": "Nom accessible de la liste d’onglets. Valeur par défaut : « Onglets » (ou « Tabs » selon locale)."
|
|
4583
|
+
},
|
|
4584
|
+
{
|
|
4585
|
+
"name": "value",
|
|
4586
|
+
"fieldName": "value",
|
|
4587
|
+
"type": {
|
|
4588
|
+
"text": "string"
|
|
4589
|
+
},
|
|
4590
|
+
"default": "\"\"",
|
|
4591
|
+
"description": "Valeur de l’onglet choisi. Vide (défaut), inconnue ou désactivée : le premier onglet actif est choisi."
|
|
4592
|
+
},
|
|
4593
|
+
{
|
|
4594
|
+
"name": "activation",
|
|
4595
|
+
"fieldName": "activation",
|
|
4596
|
+
"type": {
|
|
4597
|
+
"text": "'automatic' | 'manual'"
|
|
4598
|
+
},
|
|
4599
|
+
"default": "\"automatic\"",
|
|
4600
|
+
"description": "automatic : la flèche choisit l’onglet ; manual : la flèche déplace le focus, Entrée ou Espace choisit."
|
|
4601
|
+
},
|
|
4602
|
+
{
|
|
4603
|
+
"name": "orientation",
|
|
4604
|
+
"fieldName": "orientation",
|
|
4605
|
+
"type": {
|
|
4606
|
+
"text": "'horizontal' | 'vertical'"
|
|
4607
|
+
},
|
|
4608
|
+
"default": "\"horizontal\"",
|
|
4609
|
+
"description": "Axe de la liste ; les flèches suivent l’axe (et le sens de lecture en horizontal)."
|
|
4610
|
+
},
|
|
4611
|
+
{
|
|
4612
|
+
"name": "locale",
|
|
4613
|
+
"fieldName": "locale",
|
|
4614
|
+
"type": {
|
|
4615
|
+
"text": "string"
|
|
4616
|
+
},
|
|
4617
|
+
"default": "\"fr-CA\"",
|
|
4618
|
+
"description": "Langue des textes intégrés (BCP 47) : nom de la liste et noms des boutons de défilement. Toute balise en vaut en, le reste vaut fr. Un texte que la page écrit, quand l’attribut existe, l’emporte."
|
|
4619
|
+
}
|
|
4620
|
+
],
|
|
4621
|
+
"members": [
|
|
4622
|
+
{
|
|
4623
|
+
"kind": "field",
|
|
4624
|
+
"name": "label",
|
|
4625
|
+
"attribute": "label",
|
|
4626
|
+
"reflects": true,
|
|
4627
|
+
"type": {
|
|
4628
|
+
"text": "string"
|
|
4629
|
+
}
|
|
4630
|
+
},
|
|
4631
|
+
{
|
|
4632
|
+
"kind": "field",
|
|
4633
|
+
"name": "value",
|
|
4634
|
+
"attribute": "value",
|
|
4635
|
+
"reflects": true,
|
|
4636
|
+
"type": {
|
|
4637
|
+
"text": "string"
|
|
4638
|
+
}
|
|
4639
|
+
},
|
|
4640
|
+
{
|
|
4641
|
+
"kind": "field",
|
|
4642
|
+
"name": "activation",
|
|
4643
|
+
"attribute": "activation",
|
|
4644
|
+
"reflects": true,
|
|
4645
|
+
"type": {
|
|
4646
|
+
"text": "'automatic' | 'manual'"
|
|
4647
|
+
}
|
|
4648
|
+
},
|
|
4649
|
+
{
|
|
4650
|
+
"kind": "field",
|
|
4651
|
+
"name": "orientation",
|
|
4652
|
+
"attribute": "orientation",
|
|
4653
|
+
"reflects": true,
|
|
4654
|
+
"type": {
|
|
4655
|
+
"text": "'horizontal' | 'vertical'"
|
|
4656
|
+
}
|
|
4657
|
+
},
|
|
4658
|
+
{
|
|
4659
|
+
"kind": "field",
|
|
4660
|
+
"name": "locale",
|
|
4661
|
+
"attribute": "locale",
|
|
4662
|
+
"reflects": true,
|
|
4663
|
+
"type": {
|
|
4664
|
+
"text": "string"
|
|
4665
|
+
}
|
|
4666
|
+
}
|
|
4667
|
+
],
|
|
4668
|
+
"events": [
|
|
4669
|
+
{
|
|
4670
|
+
"name": "bythium-tab-change",
|
|
4671
|
+
"type": {
|
|
4672
|
+
"text": "CustomEvent<{ value: string }>"
|
|
4673
|
+
},
|
|
4674
|
+
"description": "Émis quand l’utilisateur choisit un autre onglet. Une écriture de value par la page n’émet rien."
|
|
4675
|
+
}
|
|
4676
|
+
],
|
|
4677
|
+
"slots": [
|
|
4678
|
+
{
|
|
4679
|
+
"name": "tabs",
|
|
4680
|
+
"description": "Les onglets."
|
|
4681
|
+
},
|
|
4682
|
+
{
|
|
4683
|
+
"name": "",
|
|
4684
|
+
"description": "Les panneaux."
|
|
4685
|
+
}
|
|
4686
|
+
],
|
|
4687
|
+
"cssParts": [
|
|
4688
|
+
{
|
|
4689
|
+
"name": "base",
|
|
4690
|
+
"description": "Conteneur."
|
|
4691
|
+
},
|
|
4692
|
+
{
|
|
4693
|
+
"name": "scroll-previous",
|
|
4694
|
+
"description": "Bouton de défilement vers les onglets précédents, présent quand il en reste hors champ."
|
|
4695
|
+
},
|
|
4696
|
+
{
|
|
4697
|
+
"name": "viewport",
|
|
4698
|
+
"description": "Zone de défilement de la liste."
|
|
4699
|
+
},
|
|
4700
|
+
{
|
|
4701
|
+
"name": "tablist",
|
|
4702
|
+
"description": "Élément de rôle tablist."
|
|
4703
|
+
},
|
|
4704
|
+
{
|
|
4705
|
+
"name": "scroll-next",
|
|
4706
|
+
"description": "Bouton de défilement vers les onglets suivants."
|
|
4707
|
+
},
|
|
4708
|
+
{
|
|
4709
|
+
"name": "panels",
|
|
4710
|
+
"description": "Zone des panneaux."
|
|
4711
|
+
}
|
|
4712
|
+
],
|
|
4713
|
+
"cssProperties": [
|
|
4714
|
+
{
|
|
4715
|
+
"name": "--bythium-border-subtle"
|
|
4716
|
+
},
|
|
4717
|
+
{
|
|
4718
|
+
"name": "--bythium-tabs-indicator"
|
|
4719
|
+
},
|
|
4720
|
+
{
|
|
4721
|
+
"name": "--bythium-tabs-selected"
|
|
4722
|
+
}
|
|
4723
|
+
]
|
|
4724
|
+
}
|
|
4725
|
+
],
|
|
4726
|
+
"exports": [
|
|
4727
|
+
{
|
|
4728
|
+
"kind": "custom-element-definition",
|
|
4729
|
+
"name": "bythium-tabs",
|
|
4730
|
+
"declaration": {
|
|
4731
|
+
"name": "BythiumTabs"
|
|
4732
|
+
}
|
|
4733
|
+
}
|
|
4734
|
+
]
|
|
4735
|
+
},
|
|
4736
|
+
{
|
|
4737
|
+
"kind": "javascript-module",
|
|
4738
|
+
"path": "dist/tab.js",
|
|
4739
|
+
"declarations": [
|
|
4740
|
+
{
|
|
4741
|
+
"kind": "class",
|
|
4742
|
+
"name": "BythiumTab",
|
|
4743
|
+
"tagName": "bythium-tab",
|
|
4744
|
+
"customElement": true,
|
|
4745
|
+
"description": "Onglet d’une bythium-tabs : texte atténué, souligné quand il est choisi ; porte le rôle tab et le focus itinérant.",
|
|
4746
|
+
"attributes": [
|
|
4747
|
+
{
|
|
4748
|
+
"name": "value",
|
|
4749
|
+
"fieldName": "value",
|
|
4750
|
+
"type": {
|
|
4751
|
+
"text": "string"
|
|
4752
|
+
},
|
|
4753
|
+
"default": "\"\"",
|
|
4754
|
+
"description": "Identifiant de l’onglet ; le panneau de même value lui correspond."
|
|
4755
|
+
},
|
|
4756
|
+
{
|
|
4757
|
+
"name": "disabled",
|
|
4758
|
+
"fieldName": "disabled",
|
|
4759
|
+
"type": {
|
|
4760
|
+
"text": "boolean"
|
|
4761
|
+
},
|
|
4762
|
+
"default": "false",
|
|
4763
|
+
"description": "Onglet inactif : ignoré par le clavier et le clic, annoncé désactivé."
|
|
4764
|
+
},
|
|
4765
|
+
{
|
|
4766
|
+
"name": "selected",
|
|
4767
|
+
"fieldName": "selected",
|
|
4768
|
+
"type": {
|
|
4769
|
+
"text": "boolean"
|
|
4770
|
+
},
|
|
4771
|
+
"default": "false",
|
|
4772
|
+
"description": "Onglet choisi. Posé par bythium-tabs ; l’écrire à la main n’ouvre pas le panneau."
|
|
4773
|
+
},
|
|
4774
|
+
{
|
|
4775
|
+
"name": "locale",
|
|
4776
|
+
"fieldName": "locale",
|
|
4777
|
+
"type": {
|
|
4778
|
+
"text": "string"
|
|
4779
|
+
},
|
|
4780
|
+
"default": "\"fr-CA\"",
|
|
4781
|
+
"description": "Langue des textes intégrés (BCP 47) : texte par défaut quand le slot est vide. Toute balise en vaut en, le reste vaut fr. Un label écrit par la page l’emporte."
|
|
4782
|
+
}
|
|
4783
|
+
],
|
|
4784
|
+
"members": [
|
|
4785
|
+
{
|
|
4786
|
+
"kind": "field",
|
|
4787
|
+
"name": "value",
|
|
4788
|
+
"attribute": "value",
|
|
4789
|
+
"reflects": true,
|
|
4790
|
+
"type": {
|
|
4791
|
+
"text": "string"
|
|
4792
|
+
}
|
|
4793
|
+
},
|
|
4794
|
+
{
|
|
4795
|
+
"kind": "field",
|
|
4796
|
+
"name": "disabled",
|
|
4797
|
+
"attribute": "disabled",
|
|
4798
|
+
"reflects": true,
|
|
4799
|
+
"type": {
|
|
4800
|
+
"text": "boolean"
|
|
4801
|
+
}
|
|
4802
|
+
},
|
|
4803
|
+
{
|
|
4804
|
+
"kind": "field",
|
|
4805
|
+
"name": "selected",
|
|
4806
|
+
"attribute": "selected",
|
|
4807
|
+
"reflects": true,
|
|
4808
|
+
"type": {
|
|
4809
|
+
"text": "boolean"
|
|
4810
|
+
}
|
|
4811
|
+
},
|
|
4812
|
+
{
|
|
4813
|
+
"kind": "field",
|
|
4814
|
+
"name": "locale",
|
|
4815
|
+
"attribute": "locale",
|
|
4816
|
+
"reflects": true,
|
|
4817
|
+
"type": {
|
|
4818
|
+
"text": "string"
|
|
4819
|
+
}
|
|
4820
|
+
}
|
|
4821
|
+
],
|
|
4822
|
+
"events": [],
|
|
4823
|
+
"slots": [
|
|
4824
|
+
{
|
|
4825
|
+
"name": "",
|
|
4826
|
+
"description": "Libellé de l’onglet, qui le nomme."
|
|
4827
|
+
}
|
|
4828
|
+
],
|
|
4829
|
+
"cssParts": [
|
|
4830
|
+
{
|
|
4831
|
+
"name": "base",
|
|
4832
|
+
"description": "Élément de rôle tab qui reçoit le focus."
|
|
4833
|
+
}
|
|
4834
|
+
],
|
|
4835
|
+
"cssProperties": [
|
|
4836
|
+
{
|
|
4837
|
+
"name": "--bythium-tabs-indicator"
|
|
4838
|
+
},
|
|
4839
|
+
{
|
|
4840
|
+
"name": "--bythium-tabs-selected"
|
|
4841
|
+
},
|
|
4842
|
+
{
|
|
4843
|
+
"name": "--bythium-text-muted"
|
|
4844
|
+
},
|
|
4845
|
+
{
|
|
4846
|
+
"name": "--bythium-text-primary"
|
|
4847
|
+
}
|
|
4848
|
+
]
|
|
4849
|
+
}
|
|
4850
|
+
],
|
|
4851
|
+
"exports": [
|
|
4852
|
+
{
|
|
4853
|
+
"kind": "custom-element-definition",
|
|
4854
|
+
"name": "bythium-tab",
|
|
4855
|
+
"declaration": {
|
|
4856
|
+
"name": "BythiumTab"
|
|
4857
|
+
}
|
|
4858
|
+
}
|
|
4859
|
+
]
|
|
4860
|
+
},
|
|
4861
|
+
{
|
|
4862
|
+
"kind": "javascript-module",
|
|
4863
|
+
"path": "dist/tab-panel.js",
|
|
4864
|
+
"declarations": [
|
|
4865
|
+
{
|
|
4866
|
+
"kind": "class",
|
|
4867
|
+
"name": "BythiumTabPanel",
|
|
4868
|
+
"tagName": "bythium-tab-panel",
|
|
4869
|
+
"customElement": true,
|
|
4870
|
+
"description": "Panneau d’une bythium-tabs : rôle tabpanel, focalisable, affiché seulement quand l’onglet de même value est choisi.",
|
|
4871
|
+
"attributes": [
|
|
4872
|
+
{
|
|
4873
|
+
"name": "value",
|
|
4874
|
+
"fieldName": "value",
|
|
4875
|
+
"type": {
|
|
4876
|
+
"text": "string"
|
|
4877
|
+
},
|
|
4878
|
+
"default": "\"\"",
|
|
4879
|
+
"description": "Identifiant du panneau : celui de son onglet."
|
|
4880
|
+
},
|
|
4881
|
+
{
|
|
4882
|
+
"name": "label",
|
|
4883
|
+
"fieldName": "label",
|
|
4884
|
+
"type": {
|
|
4885
|
+
"text": "string"
|
|
4886
|
+
},
|
|
4887
|
+
"default": "\"Contenu de l’onglet\"",
|
|
4888
|
+
"description": "Nom accessible du panneau ; reprenez le libellé de son onglet. Valeur par défaut : « Contenu de l’onglet » (ou « Tab content » selon locale)."
|
|
4889
|
+
},
|
|
4890
|
+
{
|
|
4891
|
+
"name": "hidden",
|
|
4892
|
+
"fieldName": "hidden",
|
|
4893
|
+
"type": {
|
|
4894
|
+
"text": "boolean"
|
|
4895
|
+
},
|
|
4896
|
+
"default": "false",
|
|
4897
|
+
"description": "Panneau masqué. Posé par bythium-tabs selon l’onglet choisi."
|
|
4898
|
+
},
|
|
4899
|
+
{
|
|
4900
|
+
"name": "locale",
|
|
4901
|
+
"fieldName": "locale",
|
|
4902
|
+
"type": {
|
|
4903
|
+
"text": "string"
|
|
4904
|
+
},
|
|
4905
|
+
"default": "\"fr-CA\"",
|
|
4906
|
+
"description": "Langue des textes intégrés (BCP 47) : nom accessible et contenu par défaut du panneau. Toute balise en vaut en, le reste vaut fr. Un texte que la page écrit, quand l’attribut existe, l’emporte."
|
|
4907
|
+
}
|
|
4908
|
+
],
|
|
4909
|
+
"members": [
|
|
4910
|
+
{
|
|
4911
|
+
"kind": "field",
|
|
4912
|
+
"name": "value",
|
|
4913
|
+
"attribute": "value",
|
|
4914
|
+
"reflects": true,
|
|
4915
|
+
"type": {
|
|
4916
|
+
"text": "string"
|
|
4917
|
+
}
|
|
4918
|
+
},
|
|
4919
|
+
{
|
|
4920
|
+
"kind": "field",
|
|
4921
|
+
"name": "label",
|
|
4922
|
+
"attribute": "label",
|
|
4923
|
+
"reflects": true,
|
|
4924
|
+
"type": {
|
|
4925
|
+
"text": "string"
|
|
4926
|
+
}
|
|
4927
|
+
},
|
|
4928
|
+
{
|
|
4929
|
+
"kind": "field",
|
|
4930
|
+
"name": "hidden",
|
|
4931
|
+
"attribute": "hidden",
|
|
4932
|
+
"reflects": true,
|
|
4933
|
+
"type": {
|
|
4934
|
+
"text": "boolean"
|
|
4935
|
+
}
|
|
4936
|
+
},
|
|
4937
|
+
{
|
|
4938
|
+
"kind": "field",
|
|
4939
|
+
"name": "locale",
|
|
4940
|
+
"attribute": "locale",
|
|
4941
|
+
"reflects": true,
|
|
4942
|
+
"type": {
|
|
4943
|
+
"text": "string"
|
|
4944
|
+
}
|
|
4945
|
+
}
|
|
4946
|
+
],
|
|
4947
|
+
"events": [],
|
|
4948
|
+
"slots": [
|
|
4949
|
+
{
|
|
4950
|
+
"name": "",
|
|
4951
|
+
"description": "Contenu du panneau."
|
|
4952
|
+
}
|
|
4953
|
+
],
|
|
4954
|
+
"cssParts": [
|
|
4955
|
+
{
|
|
4956
|
+
"name": "base",
|
|
4957
|
+
"description": "Élément de rôle tabpanel, focalisable."
|
|
4958
|
+
}
|
|
4959
|
+
],
|
|
4960
|
+
"cssProperties": [
|
|
4961
|
+
{
|
|
4962
|
+
"name": "--bythium-border-focus"
|
|
4963
|
+
},
|
|
4964
|
+
{
|
|
4965
|
+
"name": "--radius-sm"
|
|
4966
|
+
}
|
|
4967
|
+
]
|
|
4968
|
+
}
|
|
4969
|
+
],
|
|
4970
|
+
"exports": [
|
|
4971
|
+
{
|
|
4972
|
+
"kind": "custom-element-definition",
|
|
4973
|
+
"name": "bythium-tab-panel",
|
|
4974
|
+
"declaration": {
|
|
4975
|
+
"name": "BythiumTabPanel"
|
|
4976
|
+
}
|
|
4977
|
+
}
|
|
4978
|
+
]
|
|
4979
|
+
},
|
|
4980
|
+
{
|
|
4981
|
+
"kind": "javascript-module",
|
|
4982
|
+
"path": "dist/toast.js",
|
|
4983
|
+
"declarations": [
|
|
4984
|
+
{
|
|
4985
|
+
"kind": "class",
|
|
4986
|
+
"name": "BythiumToast",
|
|
4987
|
+
"tagName": "bythium-toast",
|
|
4988
|
+
"customElement": true,
|
|
4989
|
+
"description": "Notification locale, annoncée par une région d'état et refermable ; expiration facultative, sans réseau.",
|
|
4990
|
+
"attributes": [
|
|
4991
|
+
{
|
|
4992
|
+
"name": "locale",
|
|
4993
|
+
"fieldName": "locale",
|
|
4994
|
+
"type": {
|
|
4995
|
+
"text": "string"
|
|
4996
|
+
},
|
|
4997
|
+
"default": "\"fr-CA\"",
|
|
4998
|
+
"description": "Langue du bouton de fermeture et du texte par défaut (BCP 47) : toute balise en vaut en, le reste vaut fr."
|
|
4999
|
+
},
|
|
5000
|
+
{
|
|
5001
|
+
"name": "open",
|
|
5002
|
+
"fieldName": "open",
|
|
5003
|
+
"type": {
|
|
5004
|
+
"text": "boolean"
|
|
5005
|
+
},
|
|
5006
|
+
"default": "false",
|
|
5007
|
+
"description": "Notification visible. Refermée par le bouton ou à l'expiration, l'attribut est retiré."
|
|
5008
|
+
},
|
|
5009
|
+
{
|
|
5010
|
+
"name": "duration",
|
|
5011
|
+
"fieldName": "duration",
|
|
5012
|
+
"type": {
|
|
5013
|
+
"text": "number"
|
|
5014
|
+
},
|
|
5015
|
+
"default": "0",
|
|
5016
|
+
"description": "Délai d'expiration en millisecondes, compté à chaque rendu ouvert ; 0 : pas d'expiration. Un délai positif vaut au moins 1000 ms."
|
|
5017
|
+
},
|
|
5018
|
+
{
|
|
5019
|
+
"name": "silent",
|
|
5020
|
+
"fieldName": "silent",
|
|
5021
|
+
"type": {
|
|
5022
|
+
"text": "boolean"
|
|
5023
|
+
},
|
|
5024
|
+
"default": "false",
|
|
5025
|
+
"description": "Sans rôle d'état : la page annonce elle-même le message par sa propre région d'état silencieuse (aucune annonce en double). Le message reste visible et refermable."
|
|
5026
|
+
}
|
|
5027
|
+
],
|
|
5028
|
+
"members": [
|
|
5029
|
+
{
|
|
5030
|
+
"kind": "field",
|
|
5031
|
+
"name": "locale",
|
|
5032
|
+
"attribute": "locale",
|
|
5033
|
+
"reflects": true,
|
|
5034
|
+
"type": {
|
|
5035
|
+
"text": "string"
|
|
5036
|
+
}
|
|
5037
|
+
},
|
|
5038
|
+
{
|
|
5039
|
+
"kind": "field",
|
|
5040
|
+
"name": "open",
|
|
5041
|
+
"attribute": "open",
|
|
5042
|
+
"reflects": true,
|
|
5043
|
+
"type": {
|
|
5044
|
+
"text": "boolean"
|
|
5045
|
+
}
|
|
5046
|
+
},
|
|
5047
|
+
{
|
|
5048
|
+
"kind": "field",
|
|
5049
|
+
"name": "duration",
|
|
5050
|
+
"attribute": "duration",
|
|
5051
|
+
"reflects": true,
|
|
5052
|
+
"type": {
|
|
5053
|
+
"text": "number"
|
|
5054
|
+
}
|
|
5055
|
+
},
|
|
5056
|
+
{
|
|
5057
|
+
"kind": "field",
|
|
5058
|
+
"name": "silent",
|
|
5059
|
+
"attribute": "silent",
|
|
5060
|
+
"reflects": true,
|
|
5061
|
+
"type": {
|
|
5062
|
+
"text": "boolean"
|
|
5063
|
+
}
|
|
5064
|
+
}
|
|
5065
|
+
],
|
|
5066
|
+
"events": [
|
|
5067
|
+
{
|
|
5068
|
+
"name": "bythium-close",
|
|
5069
|
+
"type": {
|
|
5070
|
+
"text": "CustomEvent<{ reason: \"fermeture\" }>"
|
|
5071
|
+
},
|
|
5072
|
+
"description": "Émis quand la notification se referme par son bouton ou à l'expiration (reason « fermeture »). Retirer open par programme n'émet rien."
|
|
5073
|
+
}
|
|
5074
|
+
],
|
|
5075
|
+
"slots": [
|
|
5076
|
+
{
|
|
5077
|
+
"name": "",
|
|
5078
|
+
"description": "Message de la notification. Vide : le texte générique « Notification. »."
|
|
5079
|
+
}
|
|
5080
|
+
],
|
|
5081
|
+
"cssParts": [
|
|
5082
|
+
{
|
|
5083
|
+
"name": "base",
|
|
5084
|
+
"description": "Région d'état (role=status) qui porte le message et le bouton."
|
|
5085
|
+
},
|
|
5086
|
+
{
|
|
5087
|
+
"name": "close",
|
|
5088
|
+
"description": "Bouton natif « Fermer la notification »."
|
|
5089
|
+
}
|
|
5090
|
+
],
|
|
5091
|
+
"cssProperties": [
|
|
5092
|
+
{
|
|
5093
|
+
"name": "--bythium-border-subtle"
|
|
5094
|
+
},
|
|
5095
|
+
{
|
|
5096
|
+
"name": "--radius-card"
|
|
5097
|
+
},
|
|
5098
|
+
{
|
|
5099
|
+
"name": "--radius-sm"
|
|
5100
|
+
},
|
|
5101
|
+
{
|
|
5102
|
+
"name": "--shadow-overlay"
|
|
5103
|
+
},
|
|
5104
|
+
{
|
|
5105
|
+
"name": "--bythium-surface-overlay"
|
|
5106
|
+
},
|
|
5107
|
+
{
|
|
5108
|
+
"name": "--bythium-text-primary"
|
|
5109
|
+
},
|
|
5110
|
+
{
|
|
5111
|
+
"name": "--bythium-text-muted"
|
|
5112
|
+
},
|
|
5113
|
+
{
|
|
5114
|
+
"name": "--bythium-state-hover"
|
|
5115
|
+
},
|
|
5116
|
+
{
|
|
5117
|
+
"name": "--target-touch-min"
|
|
5118
|
+
}
|
|
5119
|
+
]
|
|
5120
|
+
}
|
|
5121
|
+
],
|
|
5122
|
+
"exports": [
|
|
5123
|
+
{
|
|
5124
|
+
"kind": "custom-element-definition",
|
|
5125
|
+
"name": "bythium-toast",
|
|
5126
|
+
"declaration": {
|
|
5127
|
+
"name": "BythiumToast"
|
|
5128
|
+
}
|
|
5129
|
+
}
|
|
5130
|
+
]
|
|
5131
|
+
},
|
|
5132
|
+
{
|
|
5133
|
+
"kind": "javascript-module",
|
|
5134
|
+
"path": "dist/toaster.js",
|
|
5135
|
+
"declarations": [
|
|
5136
|
+
{
|
|
5137
|
+
"kind": "class",
|
|
5138
|
+
"name": "BythiumToaster",
|
|
5139
|
+
"tagName": "bythium-toaster",
|
|
5140
|
+
"customElement": true,
|
|
5141
|
+
"description": "Région de notifications (rôle log, annonces polies) qui reçoit les toasts de la page dans son slot et les annonce à leur arrivée.",
|
|
5142
|
+
"attributes": [
|
|
5143
|
+
{
|
|
5144
|
+
"name": "label",
|
|
5145
|
+
"fieldName": "label",
|
|
5146
|
+
"type": {
|
|
5147
|
+
"text": "string"
|
|
5148
|
+
},
|
|
5149
|
+
"default": "\"Notifications\"",
|
|
5150
|
+
"description": "Nom accessible de la région, lu par les lecteurs d’écran (aria-label)."
|
|
5151
|
+
},
|
|
5152
|
+
{
|
|
5153
|
+
"name": "locale",
|
|
5154
|
+
"fieldName": "locale",
|
|
5155
|
+
"type": {
|
|
5156
|
+
"text": "string"
|
|
5157
|
+
},
|
|
5158
|
+
"default": "\"fr-CA\"",
|
|
5159
|
+
"description": "Langue des textes intégrés (BCP 47) : texte d’attente de la région vide. Toute balise en vaut en, le reste vaut fr. Un label écrit par la page l’emporte."
|
|
5160
|
+
},
|
|
5161
|
+
{
|
|
5162
|
+
"name": "silent",
|
|
5163
|
+
"fieldName": "silent",
|
|
5164
|
+
"type": {
|
|
5165
|
+
"text": "boolean"
|
|
5166
|
+
},
|
|
5167
|
+
"default": "false",
|
|
5168
|
+
"description": "Sans rôle log ni aria-live : chaque notification est annoncée par la page elle-même (région d'état silencieuse), la région ne fait qu'afficher."
|
|
5169
|
+
}
|
|
5170
|
+
],
|
|
5171
|
+
"members": [
|
|
5172
|
+
{
|
|
5173
|
+
"kind": "field",
|
|
5174
|
+
"name": "label",
|
|
5175
|
+
"attribute": "label",
|
|
5176
|
+
"reflects": true,
|
|
5177
|
+
"type": {
|
|
5178
|
+
"text": "string"
|
|
5179
|
+
}
|
|
5180
|
+
},
|
|
5181
|
+
{
|
|
5182
|
+
"kind": "field",
|
|
5183
|
+
"name": "locale",
|
|
5184
|
+
"attribute": "locale",
|
|
5185
|
+
"reflects": true,
|
|
5186
|
+
"type": {
|
|
5187
|
+
"text": "string"
|
|
5188
|
+
}
|
|
5189
|
+
},
|
|
5190
|
+
{
|
|
5191
|
+
"kind": "field",
|
|
5192
|
+
"name": "silent",
|
|
5193
|
+
"attribute": "silent",
|
|
5194
|
+
"reflects": true,
|
|
5195
|
+
"type": {
|
|
5196
|
+
"text": "boolean"
|
|
5197
|
+
}
|
|
5198
|
+
}
|
|
5199
|
+
],
|
|
5200
|
+
"events": [],
|
|
5201
|
+
"slots": [
|
|
5202
|
+
{
|
|
5203
|
+
"name": "",
|
|
5204
|
+
"description": "Notifications de la page ; sans contenu, le texte « Aucune nouvelle notification. » s’affiche."
|
|
5205
|
+
}
|
|
5206
|
+
],
|
|
5207
|
+
"cssParts": [
|
|
5208
|
+
{
|
|
5209
|
+
"name": "base",
|
|
5210
|
+
"description": "Région section, rôle log, annonces polies des ajouts et du texte."
|
|
5211
|
+
}
|
|
5212
|
+
],
|
|
5213
|
+
"cssProperties": [
|
|
5214
|
+
{
|
|
5215
|
+
"name": "--bythium-text-muted"
|
|
5216
|
+
}
|
|
5217
|
+
]
|
|
5218
|
+
}
|
|
5219
|
+
],
|
|
5220
|
+
"exports": [
|
|
5221
|
+
{
|
|
5222
|
+
"kind": "custom-element-definition",
|
|
5223
|
+
"name": "bythium-toaster",
|
|
5224
|
+
"declaration": {
|
|
5225
|
+
"name": "BythiumToaster"
|
|
5226
|
+
}
|
|
5227
|
+
}
|
|
5228
|
+
]
|
|
5229
|
+
},
|
|
5230
|
+
{
|
|
5231
|
+
"kind": "javascript-module",
|
|
5232
|
+
"path": "dist/dialog.js",
|
|
5233
|
+
"declarations": [
|
|
5234
|
+
{
|
|
5235
|
+
"kind": "class",
|
|
5236
|
+
"name": "BythiumDialog",
|
|
5237
|
+
"tagName": "bythium-dialog",
|
|
5238
|
+
"customElement": true,
|
|
5239
|
+
"description": "Dialogue modal natif avec son bouton déclencheur : showModal(), page inerte et figée, Échap ferme, focus rendu au déclencheur.",
|
|
5240
|
+
"attributes": [
|
|
5241
|
+
{
|
|
5242
|
+
"name": "locale",
|
|
5243
|
+
"fieldName": "locale",
|
|
5244
|
+
"type": {
|
|
5245
|
+
"text": "string"
|
|
5246
|
+
},
|
|
5247
|
+
"default": "\"fr-CA\"",
|
|
5248
|
+
"description": "Langue du bouton Fermer (BCP 47) : toute balise en vaut en, le reste vaut fr."
|
|
5249
|
+
},
|
|
5250
|
+
{
|
|
5251
|
+
"name": "open",
|
|
5252
|
+
"fieldName": "open",
|
|
5253
|
+
"type": {
|
|
5254
|
+
"text": "boolean"
|
|
5255
|
+
},
|
|
5256
|
+
"default": "false",
|
|
5257
|
+
"description": "Dialogue ouvert. Le clic sur le déclencheur l’ouvre ; Échap ou le bouton de fermeture le ferme."
|
|
5258
|
+
},
|
|
5259
|
+
{
|
|
5260
|
+
"name": "label",
|
|
5261
|
+
"fieldName": "label",
|
|
5262
|
+
"type": {
|
|
5263
|
+
"text": "string"
|
|
5264
|
+
},
|
|
5265
|
+
"default": "\"Boîte de dialogue\"",
|
|
5266
|
+
"description": "Texte du déclencheur et titre du dialogue, qui le nomme. Libellé générique par défaut ; la page le fournit."
|
|
5267
|
+
},
|
|
5268
|
+
{
|
|
5269
|
+
"name": "side",
|
|
5270
|
+
"fieldName": "side",
|
|
5271
|
+
"type": {
|
|
5272
|
+
"text": "string"
|
|
5273
|
+
},
|
|
5274
|
+
"default": "\"right\"",
|
|
5275
|
+
"description": "Côté d’ancrage réservé aux variantes latérales ; sans effet visuel pour le dialogue centré (repris tel quel de l’ancien contrat)."
|
|
5276
|
+
},
|
|
5277
|
+
{
|
|
5278
|
+
"name": "heading-level",
|
|
5279
|
+
"fieldName": "headingLevel",
|
|
5280
|
+
"type": {
|
|
5281
|
+
"text": "number"
|
|
5282
|
+
},
|
|
5283
|
+
"default": "2",
|
|
5284
|
+
"description": "Niveau du titre du dialogue dans le plan de la page (WC-N03)."
|
|
5285
|
+
}
|
|
5286
|
+
],
|
|
5287
|
+
"members": [
|
|
5288
|
+
{
|
|
5289
|
+
"kind": "field",
|
|
5290
|
+
"name": "locale",
|
|
5291
|
+
"attribute": "locale",
|
|
5292
|
+
"reflects": true,
|
|
5293
|
+
"type": {
|
|
5294
|
+
"text": "string"
|
|
5295
|
+
}
|
|
5296
|
+
},
|
|
5297
|
+
{
|
|
5298
|
+
"kind": "field",
|
|
5299
|
+
"name": "open",
|
|
5300
|
+
"attribute": "open",
|
|
5301
|
+
"reflects": true,
|
|
5302
|
+
"type": {
|
|
5303
|
+
"text": "boolean"
|
|
5304
|
+
}
|
|
5305
|
+
},
|
|
5306
|
+
{
|
|
5307
|
+
"kind": "field",
|
|
5308
|
+
"name": "label",
|
|
5309
|
+
"attribute": "label",
|
|
5310
|
+
"reflects": true,
|
|
5311
|
+
"type": {
|
|
5312
|
+
"text": "string"
|
|
5313
|
+
}
|
|
5314
|
+
},
|
|
5315
|
+
{
|
|
5316
|
+
"kind": "field",
|
|
5317
|
+
"name": "side",
|
|
5318
|
+
"attribute": "side",
|
|
5319
|
+
"reflects": true,
|
|
5320
|
+
"type": {
|
|
5321
|
+
"text": "string"
|
|
5322
|
+
}
|
|
5323
|
+
},
|
|
5324
|
+
{
|
|
5325
|
+
"kind": "field",
|
|
5326
|
+
"name": "headingLevel",
|
|
5327
|
+
"attribute": "heading-level",
|
|
5328
|
+
"reflects": true,
|
|
5329
|
+
"type": {
|
|
5330
|
+
"text": "number"
|
|
5331
|
+
}
|
|
5332
|
+
}
|
|
5333
|
+
],
|
|
5334
|
+
"events": [
|
|
5335
|
+
{
|
|
5336
|
+
"name": "bythium-close",
|
|
5337
|
+
"type": {
|
|
5338
|
+
"text": "CustomEvent<{ reason: \"fermeture\" }>"
|
|
5339
|
+
},
|
|
5340
|
+
"description": "Émis à la fermeture par l’utilisateur : bouton de fermeture ou Échap."
|
|
5341
|
+
}
|
|
5342
|
+
],
|
|
5343
|
+
"slots": [
|
|
5344
|
+
{
|
|
5345
|
+
"name": "",
|
|
5346
|
+
"description": "Contenu du dialogue."
|
|
5347
|
+
}
|
|
5348
|
+
],
|
|
5349
|
+
"cssParts": [
|
|
5350
|
+
{
|
|
5351
|
+
"name": "base",
|
|
5352
|
+
"description": "Conteneur."
|
|
5353
|
+
},
|
|
5354
|
+
{
|
|
5355
|
+
"name": "trigger",
|
|
5356
|
+
"description": "Bouton qui ouvre le dialogue."
|
|
5357
|
+
},
|
|
5358
|
+
{
|
|
5359
|
+
"name": "panel",
|
|
5360
|
+
"description": "Élément dialog natif."
|
|
5361
|
+
},
|
|
5362
|
+
{
|
|
5363
|
+
"name": "title",
|
|
5364
|
+
"description": "Titre."
|
|
5365
|
+
},
|
|
5366
|
+
{
|
|
5367
|
+
"name": "close",
|
|
5368
|
+
"description": "Bouton de fermeture, nommé « Fermer »."
|
|
5369
|
+
},
|
|
5370
|
+
{
|
|
5371
|
+
"name": "content",
|
|
5372
|
+
"description": "Contenu."
|
|
5373
|
+
}
|
|
5374
|
+
],
|
|
5375
|
+
"cssProperties": [
|
|
5376
|
+
{
|
|
5377
|
+
"name": "--bythium-surface-card"
|
|
5378
|
+
},
|
|
5379
|
+
{
|
|
5380
|
+
"name": "--bythium-border-subtle"
|
|
5381
|
+
},
|
|
5382
|
+
{
|
|
5383
|
+
"name": "--shadow-overlay"
|
|
5384
|
+
},
|
|
5385
|
+
{
|
|
5386
|
+
"name": "--radius-lg"
|
|
5387
|
+
},
|
|
5388
|
+
{
|
|
5389
|
+
"name": "--bythium-brand-noir"
|
|
5390
|
+
}
|
|
5391
|
+
]
|
|
5392
|
+
}
|
|
5393
|
+
],
|
|
5394
|
+
"exports": [
|
|
5395
|
+
{
|
|
5396
|
+
"kind": "custom-element-definition",
|
|
5397
|
+
"name": "bythium-dialog",
|
|
5398
|
+
"declaration": {
|
|
5399
|
+
"name": "BythiumDialog"
|
|
5400
|
+
}
|
|
5401
|
+
}
|
|
5402
|
+
]
|
|
1478
5403
|
}
|
|
1479
5404
|
]
|
|
1480
5405
|
}
|