@lilydesignsystem/svelte-headless 0.6.1 → 0.6.2
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/CHANGELOG.md +6 -1
- package/LICENSE.md +8 -8
- package/README.md +453 -0
- package/dist/components/AccordionLink/AccordionLink.svelte +12 -2
- package/dist/components/AccordionLink/AccordionLink.svelte.d.ts +4 -0
- package/dist/components/ActionBar/ActionBar.svelte +2 -2
- package/dist/components/ActionGroup/ActionGroup.svelte +31 -7
- package/dist/components/ActionGroup/ActionGroup.svelte.d.ts +4 -4
- package/dist/components/AddressographBox/AddressographBox.svelte +5 -1
- package/dist/components/AiLabel/AiLabel.svelte +2 -2
- package/dist/components/Alert/Alert.svelte +1 -3
- package/dist/components/AlertDialog/AlertDialog.svelte +2 -3
- package/dist/components/Answer/Answer.svelte +5 -1
- package/dist/components/AreaChart/AreaChart.svelte +5 -1
- package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput.svelte +55 -0
- package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput/AsSaudiyahRaqmAlHuwiyahAlWataniyahInput.svelte.d.ts +10 -0
- package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahView/AsSaudiyahRaqmAlHuwiyahAlWataniyahView.svelte +40 -0
- package/dist/components/AsSaudiyahRaqmAlHuwiyahAlWataniyahView/AsSaudiyahRaqmAlHuwiyahAlWataniyahView.svelte.d.ts +8 -0
- package/dist/components/AustraliaTaxFileNumberInput/AustraliaTaxFileNumberInput.svelte +55 -0
- package/dist/components/AustraliaTaxFileNumberInput/AustraliaTaxFileNumberInput.svelte.d.ts +10 -0
- package/dist/components/AustraliaTaxFileNumberView/AustraliaTaxFileNumberView.svelte +40 -0
- package/dist/components/AustraliaTaxFileNumberView/AustraliaTaxFileNumberView.svelte.d.ts +8 -0
- package/dist/components/Autosuggest/Autosuggest.svelte +175 -8
- package/dist/components/Autosuggest/Autosuggest.svelte.d.ts +18 -4
- package/dist/components/AvatarGroup/AvatarGroup.svelte +5 -1
- package/dist/components/BarChart/BarChart.svelte +5 -1
- package/dist/components/BarcodeImage/BarcodeImage.svelte +7 -1
- package/dist/components/BreadcrumbLink/BreadcrumbLink.svelte +12 -2
- package/dist/components/BreadcrumbLink/BreadcrumbLink.svelte.d.ts +4 -0
- package/dist/components/Byline/Byline.svelte +4 -1
- package/dist/components/CandlestickChart/CandlestickChart.svelte +5 -1
- package/dist/components/Caption/Caption.svelte +1 -0
- package/dist/components/CareCard/CareCard.svelte +1 -0
- package/dist/components/Cascader/Cascader.svelte +7 -1
- package/dist/components/ChatComposer/ChatComposer.svelte +6 -3
- package/dist/components/ChatList/ChatList.svelte +6 -2
- package/dist/components/ChatListItem/ChatListItem.svelte +10 -2
- package/dist/components/ChatListItem/ChatListItem.svelte.d.ts +2 -0
- package/dist/components/ChatMessage/ChatMessage.svelte +6 -2
- package/dist/components/ChatNav/ChatNav.svelte +6 -2
- package/dist/components/CheckListItem/CheckListItem.svelte +4 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.svelte +1 -0
- package/dist/components/ChoroplethChart/ChoroplethChart.svelte +5 -1
- package/dist/components/Citation/Citation.svelte +6 -2
- package/dist/components/Coachmark/Coachmark.svelte +20 -10
- package/dist/components/Code/Code.svelte +6 -2
- package/dist/components/CodeBlock/CodeBlock.svelte +6 -2
- package/dist/components/CollectionListItem/CollectionListItem.svelte +1 -1
- package/dist/components/ColombiaCedulaDeCiudadaniaInput/ColombiaCedulaDeCiudadaniaInput.svelte +55 -0
- package/dist/components/ColombiaCedulaDeCiudadaniaInput/ColombiaCedulaDeCiudadaniaInput.svelte.d.ts +10 -0
- package/dist/components/ColombiaCedulaDeCiudadaniaView/ColombiaCedulaDeCiudadaniaView.svelte +40 -0
- package/dist/components/ColombiaCedulaDeCiudadaniaView/ColombiaCedulaDeCiudadaniaView.svelte.d.ts +8 -0
- package/dist/components/ColumnChart/ColumnChart.svelte +5 -1
- package/dist/components/Combobox/Combobox.svelte +11 -9
- package/dist/components/Comment/Comment.svelte +5 -1
- package/dist/components/ComposedChart/ComposedChart.svelte +5 -1
- package/dist/components/ContentsListItem/ContentsListItem.svelte +4 -1
- package/dist/components/ContentsNav/ContentsNav.svelte +56 -36
- package/dist/components/ContextMenu/ContextMenu.svelte +19 -17
- package/dist/components/ContextualHelp/ContextualHelp.svelte +55 -26
- package/dist/components/ContextualHelp/ContextualHelp.svelte.d.ts +4 -2
- package/dist/components/ConvertDiv/ConvertDiv.svelte +3 -1
- package/dist/components/ConvertFromDiv/ConvertFromDiv.svelte +0 -1
- package/dist/components/ConvertFromUnitDiv/ConvertFromUnitDiv.svelte +0 -1
- package/dist/components/ConvertFromValueDiv/ConvertFromValueDiv.svelte +0 -1
- package/dist/components/ConvertIntoDiv/ConvertIntoDiv.svelte +0 -1
- package/dist/components/ConvertIntoUnitDiv/ConvertIntoUnitDiv.svelte +0 -1
- package/dist/components/ConvertIntoValueDiv/ConvertIntoValueDiv.svelte +0 -1
- package/dist/components/CurrencyInput/CurrencyInput.svelte +61 -8
- package/dist/components/CurrencyInput/CurrencyInput.svelte.d.ts +9 -4
- package/dist/components/DateTimeNowInput/DateTimeNowInput.svelte +18 -16
- package/dist/components/DateTimeNowInput/DateTimeNowInput.svelte.d.ts +3 -3
- package/dist/components/DescriptionList/DescriptionList.svelte +0 -2
- package/dist/components/DescriptionListItem/DescriptionListItem.svelte +0 -2
- package/dist/components/DialGroup/DialGroup.svelte +5 -1
- package/dist/components/Dialog/Dialog.svelte +2 -2
- package/dist/components/Diff/Diff.svelte +5 -1
- package/dist/components/DigitalObjectIdentifierLink/DigitalObjectIdentifierLink.svelte +16 -7
- package/dist/components/DigitalObjectIdentifierLink/DigitalObjectIdentifierLink.svelte.d.ts +4 -2
- package/dist/components/DocumentList/DocumentList.svelte +0 -1
- package/dist/components/DocumentListItem/DocumentListItem.svelte +0 -2
- package/dist/components/Drawer/Drawer.svelte +35 -12
- package/dist/components/DropdownMenu/DropdownMenu.svelte +27 -16
- package/dist/components/EcuadorCedulaDeIdentidadInput/EcuadorCedulaDeIdentidadInput.svelte +55 -0
- package/dist/components/EcuadorCedulaDeIdentidadInput/EcuadorCedulaDeIdentidadInput.svelte.d.ts +10 -0
- package/dist/components/EcuadorCedulaDeIdentidadView/EcuadorCedulaDeIdentidadView.svelte +40 -0
- package/dist/components/EcuadorCedulaDeIdentidadView/EcuadorCedulaDeIdentidadView.svelte.d.ts +8 -0
- package/dist/components/EireIndividualHealthIdentifierView/EireIndividualHealthIdentifierView.svelte +2 -1
- package/dist/components/EspanaTarjetaSanitariaIndividualView/EspanaTarjetaSanitariaIndividualView.svelte +2 -1
- package/dist/components/Event/Event.svelte +6 -2
- package/dist/components/FeatureCard/FeatureCard.svelte +5 -1
- package/dist/components/FeaturePhoto/FeaturePhoto.svelte +4 -1
- package/dist/components/FileTree/FileTree.svelte +20 -5
- package/dist/components/FiveFaceRatingPicker/FiveFaceRatingPicker.svelte +3 -1
- package/dist/components/FiveFaceRatingPickerButton/FiveFaceRatingPickerButton.svelte +2 -2
- package/dist/components/FiveStarRatingPicker/FiveStarRatingPicker.svelte +3 -1
- package/dist/components/FiveStarRatingPickerButton/FiveStarRatingPickerButton.svelte +2 -2
- package/dist/components/FlexStack/FlexStack.svelte +3 -1
- package/dist/components/FloatingPanel/FloatingPanel.svelte +15 -13
- package/dist/components/FunnelChart/FunnelChart.svelte +5 -1
- package/dist/components/GaugeChart/GaugeChart.svelte +5 -1
- package/dist/components/GoToNextSection/GoToNextSection.svelte +2 -3
- package/dist/components/GoToPreviousSection/GoToPreviousSection.svelte +2 -3
- package/dist/components/GoToTop/GoToTop.svelte +0 -2
- package/dist/components/GrailLayoutBottomFooter/GrailLayoutBottomFooter.svelte +4 -1
- package/dist/components/GrailLayoutCenterMain/GrailLayoutCenterMain.svelte +4 -1
- package/dist/components/GrailLayoutLeftAside/GrailLayoutLeftAside.svelte +4 -1
- package/dist/components/GrailLayoutRightAside/GrailLayoutRightAside.svelte +4 -1
- package/dist/components/GrailLayoutTopHeader/GrailLayoutTopHeader.svelte +4 -1
- package/dist/components/GraphicBlock/GraphicBlock.svelte +1 -1
- package/dist/components/Grid/Grid.svelte +12 -3
- package/dist/components/Grid/Grid.svelte.d.ts +2 -0
- package/dist/components/Headline/Headline.svelte +4 -1
- package/dist/components/HeatmapChart/HeatmapChart.svelte +5 -1
- package/dist/components/HeatmapChartWithYearOfDays/HeatmapChartWithYearOfDays.svelte +5 -1
- package/dist/components/Hero/Hero.svelte +6 -2
- package/dist/components/HongKongIdentityCardInput/HongKongIdentityCardInput.svelte +55 -0
- package/dist/components/HongKongIdentityCardInput/HongKongIdentityCardInput.svelte.d.ts +10 -0
- package/dist/components/HongKongIdentityCardView/HongKongIdentityCardView.svelte +40 -0
- package/dist/components/HongKongIdentityCardView/HongKongIdentityCardView.svelte.d.ts +8 -0
- package/dist/components/HorizontalScroller/HorizontalScroller.svelte +1 -0
- package/dist/components/HoverCard/HoverCard.svelte +14 -13
- package/dist/components/IconListItem/IconListItem.svelte +4 -1
- package/dist/components/InputWithMask/InputWithMask.svelte +4 -1
- package/dist/components/IranKodEMelliInput/IranKodEMelliInput.svelte +55 -0
- package/dist/components/IranKodEMelliInput/IranKodEMelliInput.svelte.d.ts +10 -0
- package/dist/components/IranKodEMelliView/IranKodEMelliView.svelte +40 -0
- package/dist/components/IranKodEMelliView/IranKodEMelliView.svelte.d.ts +8 -0
- package/dist/components/Kbd/Kbd.svelte +5 -1
- package/dist/components/KbdShortcut/KbdShortcut.svelte +9 -2
- package/dist/components/LineChart/LineChart.svelte +5 -1
- package/dist/components/Listbox/Listbox.svelte +22 -117
- package/dist/components/Listbox/listbox-machine.d.ts +81 -0
- package/dist/components/Listbox/listbox-machine.js +116 -0
- package/dist/components/Listbox/search-text.d.ts +22 -0
- package/dist/components/Listbox/search-text.js +56 -0
- package/dist/components/Listbox/typeahead.d.ts +19 -0
- package/dist/components/Listbox/typeahead.js +39 -0
- package/dist/components/Loading/Loading.svelte +5 -1
- package/dist/components/MalaysiaKadPengenalanInput/MalaysiaKadPengenalanInput.svelte +55 -0
- package/dist/components/MalaysiaKadPengenalanInput/MalaysiaKadPengenalanInput.svelte.d.ts +10 -0
- package/dist/components/MalaysiaKadPengenalanView/MalaysiaKadPengenalanView.svelte +40 -0
- package/dist/components/MalaysiaKadPengenalanView/MalaysiaKadPengenalanView.svelte.d.ts +8 -0
- package/dist/components/Mark/Mark.svelte +0 -2
- package/dist/components/MentionsInput/MentionsInput.svelte +14 -2
- package/dist/components/Menu/Menu.svelte +1 -3
- package/dist/components/MenuBar/MenuBar.svelte +1 -3
- package/dist/components/MenuGroup/MenuGroup.svelte +6 -1
- package/dist/components/MiddleTruncation/MiddleTruncation.svelte +13 -3
- package/dist/components/MockupBrowser/MockupBrowser.svelte +5 -1
- package/dist/components/MockupLaptop/MockupLaptop.svelte +5 -1
- package/dist/components/MockupPhonePortrait/MockupPhonePortrait.svelte +5 -1
- package/dist/components/MockupShell/MockupShell.svelte +5 -1
- package/dist/components/MockupTabletLandscape/MockupTabletLandscape.svelte +5 -1
- package/dist/components/MockupTabletPortrait/MockupTabletPortrait.svelte +5 -1
- package/dist/components/MockupWatch/MockupWatch.svelte +5 -1
- package/dist/components/MockupWindow/MockupWindow.svelte +5 -1
- package/dist/components/MutuallyExclusive/MutuallyExclusive.svelte +0 -1
- package/dist/components/NavigationMenu/NavigationMenu.svelte +51 -3
- package/dist/components/NavigationMenu/NavigationMenu.svelte.d.ts +4 -0
- package/dist/components/NavigationMenu/overflow-navigation.d.ts +35 -0
- package/dist/components/NavigationMenu/overflow-navigation.js +133 -0
- package/dist/components/NetPromoterScorePicker/NetPromoterScorePicker.svelte +3 -1
- package/dist/components/NetPromoterScorePickerButton/NetPromoterScorePickerButton.svelte +2 -2
- package/dist/components/NigeriaNationalIdentificationNumberInput/NigeriaNationalIdentificationNumberInput.svelte +55 -0
- package/dist/components/NigeriaNationalIdentificationNumberInput/NigeriaNationalIdentificationNumberInput.svelte.d.ts +10 -0
- package/dist/components/NigeriaNationalIdentificationNumberView/NigeriaNationalIdentificationNumberView.svelte +40 -0
- package/dist/components/NigeriaNationalIdentificationNumberView/NigeriaNationalIdentificationNumberView.svelte.d.ts +8 -0
- package/dist/components/Organization/Organization.svelte +6 -2
- package/dist/components/PaginationLink/PaginationLink.svelte +12 -2
- package/dist/components/PaginationLink/PaginationLink.svelte.d.ts +4 -0
- package/dist/components/PakistanComputerizedNationalIdentityCardInput/PakistanComputerizedNationalIdentityCardInput.svelte +55 -0
- package/dist/components/PakistanComputerizedNationalIdentityCardInput/PakistanComputerizedNationalIdentityCardInput.svelte.d.ts +10 -0
- package/dist/components/PakistanComputerizedNationalIdentityCardView/PakistanComputerizedNationalIdentityCardView.svelte +40 -0
- package/dist/components/PakistanComputerizedNationalIdentityCardView/PakistanComputerizedNationalIdentityCardView.svelte.d.ts +8 -0
- package/dist/components/Person/Person.svelte +6 -2
- package/dist/components/PhaseBanner/PhaseBanner.svelte +0 -1
- package/dist/components/Pictogram/Pictogram.svelte +4 -1
- package/dist/components/Picture/Picture.svelte +27 -0
- package/dist/components/Picture/Picture.svelte.d.ts +9 -0
- package/dist/components/PieChart/PieChart.svelte +5 -1
- package/dist/components/Place/Place.svelte +6 -2
- package/dist/components/PopconfirmDialog/PopconfirmDialog.svelte +16 -3
- package/dist/components/Popover/Popover.svelte +39 -24
- package/dist/components/Popover/popover.d.ts +9 -0
- package/dist/components/Popover/popover.js +50 -0
- package/dist/components/Popup/Popup.svelte +40 -25
- package/dist/components/ProductCard/ProductCard.svelte +5 -1
- package/dist/components/ProgressBar/ProgressBar.svelte +0 -1
- package/dist/components/Question/Question.svelte +5 -1
- package/dist/components/RadarChart/RadarChart.svelte +5 -1
- package/dist/components/RedAmberGreenPickerButton/RedAmberGreenPickerButton.svelte +2 -2
- package/dist/components/RedOrangeYellowGreenBluePickerButton/RedOrangeYellowGreenBluePickerButton.svelte +2 -2
- package/dist/components/RelatedContent/RelatedContent.svelte +0 -1
- package/dist/components/Resizable/Resizable.svelte +1 -0
- package/dist/components/RingChart/RingChart.svelte +5 -1
- package/dist/components/SankeyChart/SankeyChart.svelte +5 -1
- package/dist/components/ScatterChart/ScatterChart.svelte +5 -1
- package/dist/components/ScreenReaderSpan/ScreenReaderSpan.svelte +6 -2
- package/dist/components/ScrollArea/ScrollArea.svelte +1 -0
- package/dist/components/ScrollBar/ScrollBar.svelte +78 -16
- package/dist/components/ScrollBar/ScrollBar.svelte.d.ts +13 -1
- package/dist/components/Scroller/Scroller.svelte +4 -1
- package/dist/components/ScrollerBase/ScrollerBase.svelte +1 -1
- package/dist/components/SectionLink/SectionLink.svelte +0 -2
- package/dist/components/SectionList/SectionList.svelte +0 -2
- package/dist/components/SectionListItem/SectionListItem.svelte +0 -2
- package/dist/components/SectionNav/SectionNav.svelte +0 -1
- package/dist/components/Separator/Separator.svelte +1 -0
- package/dist/components/Sheet/Sheet.svelte +32 -11
- package/dist/components/ShowMore/ShowMore.svelte +9 -2
- package/dist/components/SlideOutDrawer/SlideOutDrawer.svelte +33 -10
- package/dist/components/SliderButton/SliderButton.svelte +64 -6
- package/dist/components/SliderButton/SliderButton.svelte.d.ts +8 -2
- package/dist/components/SplitButton/SplitButton.svelte +29 -5
- package/dist/components/SplitButton/SplitButton.svelte.d.ts +3 -3
- package/dist/components/SplitView/SplitView.svelte +1 -0
- package/dist/components/Splitter/Splitter.svelte +1 -0
- package/dist/components/StatusLight/StatusLight.svelte +5 -8
- package/dist/components/StickyPromoBanner/StickyPromoBanner.svelte +1 -0
- package/dist/components/SunburstChart/SunburstChart.svelte +5 -1
- package/dist/components/SuperBanner/SuperBanner.svelte +5 -1
- package/dist/components/TabBar/TabBar.svelte +1 -3
- package/dist/components/Tag/Tag.svelte +10 -2
- package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoInput/TaiwanGuominShenfenzhengTongyiBianhaoInput.svelte +55 -0
- package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoInput/TaiwanGuominShenfenzhengTongyiBianhaoInput.svelte.d.ts +10 -0
- package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoView/TaiwanGuominShenfenzhengTongyiBianhaoView.svelte +40 -0
- package/dist/components/TaiwanGuominShenfenzhengTongyiBianhaoView/TaiwanGuominShenfenzhengTongyiBianhaoView.svelte.d.ts +8 -0
- package/dist/components/TaskBar/TaskBar.svelte +1 -3
- package/dist/components/TextAreaInput/TextAreaInput.svelte +1 -2
- package/dist/components/TextAreaInputWithCharacterCounter/TextAreaInputWithCharacterCounter.svelte +4 -3
- package/dist/components/ThemeProvider/ThemeProvider.svelte +3 -3
- package/dist/components/Tile/Tile.svelte +5 -1
- package/dist/components/TimerButton/TimerButton.svelte +55 -7
- package/dist/components/TimerButton/TimerButton.svelte.d.ts +9 -3
- package/dist/components/ToolBar/ToolBar.svelte +1 -3
- package/dist/components/ToolCallError/ToolCallError.svelte +0 -1
- package/dist/components/ToolCallName/ToolCallName.svelte +0 -2
- package/dist/components/Tooltip/Tooltip.svelte +14 -12
- package/dist/components/Tour/Tour.svelte +5 -4
- package/dist/components/TourList/TourList.svelte +10 -9
- package/dist/components/TourList/TourList.svelte.d.ts +2 -0
- package/dist/components/TransferList/TransferList.svelte +8 -2
- package/dist/components/TreeLink/TreeLink.svelte +12 -2
- package/dist/components/TreeLink/TreeLink.svelte.d.ts +4 -0
- package/dist/components/TreeList/TreeList.svelte +3 -3
- package/dist/components/TreeListItem/TreeListItem.svelte +9 -1
- package/dist/components/TreeMenu/TreeMenu.svelte +40 -1
- package/dist/components/TreeSelect/TreeSelect.svelte +10 -3
- package/dist/components/TuaisceartEireannHealthAndCareNumberView/TuaisceartEireannHealthAndCareNumberView.svelte +2 -1
- package/dist/components/UruguayCedulaDeIdentidadInput/UruguayCedulaDeIdentidadInput.svelte +55 -0
- package/dist/components/UruguayCedulaDeIdentidadInput/UruguayCedulaDeIdentidadInput.svelte.d.ts +10 -0
- package/dist/components/UruguayCedulaDeIdentidadView/UruguayCedulaDeIdentidadView.svelte +40 -0
- package/dist/components/UruguayCedulaDeIdentidadView/UruguayCedulaDeIdentidadView.svelte.d.ts +8 -0
- package/dist/components/VideoPlayer/VideoPlayer.svelte +6 -2
- package/dist/components/VietNamCanCuocCongDanInput/VietNamCanCuocCongDanInput.svelte +55 -0
- package/dist/components/VietNamCanCuocCongDanInput/VietNamCanCuocCongDanInput.svelte.d.ts +10 -0
- package/dist/components/VietNamCanCuocCongDanView/VietNamCanCuocCongDanView.svelte +40 -0
- package/dist/components/VietNamCanCuocCongDanView/VietNamCanCuocCongDanView.svelte.d.ts +8 -0
- package/dist/components/Visible/Visible.svelte +1 -1
- package/dist/components/WarningText/WarningText.svelte +48 -0
- package/dist/components/WarningText/WarningText.svelte.d.ts +13 -0
- package/dist/components/WheelPicker/WheelPicker.svelte +18 -4
- package/dist/components/WheelPicker/wheel-picker.js +18 -3
- package/dist/index.d.ts +26 -0
- package/dist/index.js +26 -0
- package/index.md +4 -4
- package/package.json +5 -5
|
@@ -39,6 +39,8 @@
|
|
|
39
39
|
|
|
40
40
|
import type { Snippet } from "svelte";
|
|
41
41
|
|
|
42
|
+
import { popoverState } from "../Popover/popover.js";
|
|
43
|
+
|
|
42
44
|
let {
|
|
43
45
|
class: className = "",
|
|
44
46
|
label,
|
|
@@ -87,7 +89,11 @@
|
|
|
87
89
|
>
|
|
88
90
|
{value ?? placeholder ?? ""}
|
|
89
91
|
</button>
|
|
90
|
-
<div
|
|
92
|
+
<div
|
|
93
|
+
class="cascader-panel"
|
|
94
|
+
popover="manual"
|
|
95
|
+
use:popoverState={expanded}
|
|
96
|
+
>
|
|
91
97
|
{#if children}{@render children?.()}{/if}
|
|
92
98
|
</div>
|
|
93
99
|
</div>
|
|
@@ -86,7 +86,11 @@
|
|
|
86
86
|
</script>
|
|
87
87
|
|
|
88
88
|
<!-- ChatComposer.svelte -->
|
|
89
|
-
<form
|
|
89
|
+
<form
|
|
90
|
+
class={`chat-composer ${className}`}
|
|
91
|
+
onsubmit={onSubmit}
|
|
92
|
+
{...restProps}
|
|
93
|
+
>
|
|
90
94
|
{@render children?.()}
|
|
91
95
|
<textarea
|
|
92
96
|
class="chat-composer-input"
|
|
@@ -96,8 +100,7 @@
|
|
|
96
100
|
{placeholder}
|
|
97
101
|
{name}
|
|
98
102
|
{disabled}
|
|
99
|
-
onkeydown={onKeydown}
|
|
100
|
-
></textarea>
|
|
103
|
+
onkeydown={onKeydown}></textarea>
|
|
101
104
|
<button
|
|
102
105
|
class="chat-composer-button"
|
|
103
106
|
type={busy ? "button" : "submit"}
|
|
@@ -3,16 +3,24 @@
|
|
|
3
3
|
let {
|
|
4
4
|
class: className = "",
|
|
5
5
|
label = undefined,
|
|
6
|
+
current = false,
|
|
6
7
|
children,
|
|
7
8
|
...restProps
|
|
8
9
|
}: {
|
|
9
10
|
label?: string;
|
|
11
|
+
/** Marks the currently selected conversation (aria-current="true"). */
|
|
12
|
+
current?: boolean;
|
|
10
13
|
children: Snippet;
|
|
11
14
|
[key: string]: unknown;
|
|
12
15
|
} = $props();
|
|
13
16
|
</script>
|
|
14
17
|
|
|
15
18
|
<!-- ChatListItem.svelte -->
|
|
16
|
-
<
|
|
19
|
+
<li
|
|
20
|
+
class={`chat-list-item ${className}`}
|
|
21
|
+
aria-label={label}
|
|
22
|
+
aria-current={current ? "true" : undefined}
|
|
23
|
+
{...restProps}
|
|
24
|
+
>
|
|
17
25
|
{@render children?.()}
|
|
18
|
-
</
|
|
26
|
+
</li>
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<!-- ChatMessage.svelte -->
|
|
16
|
-
<
|
|
16
|
+
<article
|
|
17
|
+
class={`chat-message ${className}`}
|
|
18
|
+
aria-label={label}
|
|
19
|
+
{...restProps}
|
|
20
|
+
>
|
|
17
21
|
{@render children?.()}
|
|
18
|
-
</
|
|
22
|
+
</article>
|
|
@@ -52,7 +52,11 @@
|
|
|
52
52
|
class={`choropleth-chart ${className}`}
|
|
53
53
|
{...restProps}
|
|
54
54
|
>
|
|
55
|
-
<div
|
|
55
|
+
<div
|
|
56
|
+
class="choropleth-chart-graphic"
|
|
57
|
+
role="img"
|
|
58
|
+
aria-label={label}
|
|
59
|
+
>
|
|
56
60
|
{@render children?.()}
|
|
57
61
|
</div>
|
|
58
62
|
{#if dataTable}
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<!-- Citation.svelte -->
|
|
16
|
-
<
|
|
16
|
+
<cite
|
|
17
|
+
class={`citation ${className}`}
|
|
18
|
+
aria-label={label}
|
|
19
|
+
{...restProps}
|
|
20
|
+
>
|
|
17
21
|
{@render children?.()}
|
|
18
|
-
</
|
|
22
|
+
</cite>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
// - role="dialog" with aria-modal="false" (non-modal popover dialog)
|
|
28
28
|
// - aria-labelledby points at the heading
|
|
29
29
|
// - aria-describedby points at the description (when provided)
|
|
30
|
-
// - hidden attribute
|
|
30
|
+
// - closed, it is display: none (popover="manual", or the hidden attribute where the Popover API is missing), so out of the AT tree
|
|
31
31
|
//
|
|
32
32
|
// Internationalization:
|
|
33
33
|
// - All user-facing strings via props
|
|
@@ -37,15 +37,14 @@
|
|
|
37
37
|
// - WAI-ARIA Dialog Pattern: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
|
|
38
38
|
|
|
39
39
|
function makeId(prefix: string): string {
|
|
40
|
-
if (
|
|
41
|
-
typeof crypto !== "undefined" &&
|
|
42
|
-
typeof crypto.randomUUID === "function"
|
|
43
|
-
) {
|
|
40
|
+
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
44
41
|
return `${prefix}-${crypto.randomUUID()}`;
|
|
45
42
|
}
|
|
46
43
|
return `${prefix}-${Math.random().toString(36).slice(2, 11)}`;
|
|
47
44
|
}
|
|
48
45
|
|
|
46
|
+
import { popoverState } from "../Popover/popover.js";
|
|
47
|
+
|
|
49
48
|
let {
|
|
50
49
|
class: className = "",
|
|
51
50
|
open = false,
|
|
@@ -80,17 +79,28 @@
|
|
|
80
79
|
aria-modal="false"
|
|
81
80
|
aria-labelledby={titleId}
|
|
82
81
|
aria-describedby={description ? descId : undefined}
|
|
83
|
-
|
|
82
|
+
popover="manual"
|
|
83
|
+
use:popoverState={open}
|
|
84
84
|
{...restProps}
|
|
85
85
|
>
|
|
86
|
-
<h2
|
|
86
|
+
<h2
|
|
87
|
+
class="coachmark-title"
|
|
88
|
+
id={titleId}
|
|
89
|
+
>
|
|
90
|
+
{title}
|
|
91
|
+
</h2>
|
|
87
92
|
{#if description}
|
|
88
|
-
<p
|
|
93
|
+
<p
|
|
94
|
+
class="coachmark-description"
|
|
95
|
+
id={descId}
|
|
96
|
+
>
|
|
97
|
+
{description}
|
|
98
|
+
</p>
|
|
89
99
|
{/if}
|
|
90
100
|
<button
|
|
91
101
|
class="coachmark-dismiss"
|
|
92
102
|
type="button"
|
|
93
103
|
aria-label={dismissLabel}
|
|
94
|
-
onclick={onDismiss}
|
|
95
|
-
|
|
104
|
+
onclick={onDismiss}>×</button
|
|
105
|
+
>
|
|
96
106
|
</div>
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
</script>
|
|
14
14
|
|
|
15
15
|
<!-- CodeBlock.svelte -->
|
|
16
|
-
<
|
|
16
|
+
<pre
|
|
17
|
+
class={`code-block ${className}`}
|
|
18
|
+
aria-label={label}
|
|
19
|
+
{...restProps}
|
|
20
|
+
>
|
|
17
21
|
{@render children?.()}
|
|
18
|
-
</
|
|
22
|
+
</pre>
|
package/dist/components/ColombiaCedulaDeCiudadaniaInput/ColombiaCedulaDeCiudadaniaInput.svelte
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
// ColombiaCedulaDeCiudadaniaInput component
|
|
3
|
+
//
|
|
4
|
+
// A headless input for entering Colombia's Cedula de Ciudadania Number.
|
|
5
|
+
// Format: Six to ten digits, usually written with dots as thousands separators (1.020.304.050). Newer cards carry the ten-digit Número Único de Identificación Personal (NUIP). There is no check digit.
|
|
6
|
+
//
|
|
7
|
+
// Props:
|
|
8
|
+
// className — string, optional. CSS class name.
|
|
9
|
+
// label — string, required. Accessible label for screen readers via aria-label.
|
|
10
|
+
// value — string, default "". Bindable input value; supports bind:value.
|
|
11
|
+
// required — boolean, default false. Whether the input is required for form submission.
|
|
12
|
+
// disabled — boolean, default false. Whether the input is disabled.
|
|
13
|
+
// ...restProps — additional HTML attributes spread onto the <input>.
|
|
14
|
+
//
|
|
15
|
+
// Syntax:
|
|
16
|
+
// <ColombiaCedulaDeCiudadaniaInput label="Cedula de Ciudadania Number" bind:value />
|
|
17
|
+
//
|
|
18
|
+
// Accessibility:
|
|
19
|
+
// - aria-label provides the accessible name for screen readers
|
|
20
|
+
// - autocomplete="off" protects sensitive identifiers
|
|
21
|
+
// - required and disabled states are conveyed to assistive technology
|
|
22
|
+
//
|
|
23
|
+
// Internationalization:
|
|
24
|
+
// - The label prop externalizes user-facing text for translation
|
|
25
|
+
//
|
|
26
|
+
// References:
|
|
27
|
+
// - https://en.wikipedia.org/wiki/Colombian_identity_card
|
|
28
|
+
|
|
29
|
+
let {
|
|
30
|
+
class: className = "",
|
|
31
|
+
label,
|
|
32
|
+
value = $bindable(""),
|
|
33
|
+
required = false,
|
|
34
|
+
disabled = false,
|
|
35
|
+
...restProps
|
|
36
|
+
}: {
|
|
37
|
+
label: string;
|
|
38
|
+
value?: string;
|
|
39
|
+
required?: boolean;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
[key: string]: unknown;
|
|
42
|
+
} = $props();
|
|
43
|
+
</script>
|
|
44
|
+
|
|
45
|
+
<!-- ColombiaCedulaDeCiudadaniaInput.svelte -->
|
|
46
|
+
<input
|
|
47
|
+
class={`colombia-cedula-de-ciudadania-input ${className}`}
|
|
48
|
+
type="text"
|
|
49
|
+
aria-label={label}
|
|
50
|
+
autocomplete="off"
|
|
51
|
+
bind:value
|
|
52
|
+
{required}
|
|
53
|
+
{disabled}
|
|
54
|
+
{...restProps}
|
|
55
|
+
/>
|
package/dist/components/ColombiaCedulaDeCiudadaniaInput/ColombiaCedulaDeCiudadaniaInput.svelte.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type $$ComponentProps = {
|
|
2
|
+
label: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
};
|
|
8
|
+
declare const ColombiaCedulaDeCiudadaniaInput: import("svelte").Component<$$ComponentProps, {}, "value">;
|
|
9
|
+
type ColombiaCedulaDeCiudadaniaInput = ReturnType<typeof ColombiaCedulaDeCiudadaniaInput>;
|
|
10
|
+
export default ColombiaCedulaDeCiudadaniaInput;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
// ColombiaCedulaDeCiudadaniaView component
|
|
3
|
+
//
|
|
4
|
+
// A headless display component for showing Colombia's
|
|
5
|
+
// Cedula de Ciudadania Number in a read-only format.
|
|
6
|
+
// Format: Six to ten digits, usually written with dots as thousands separators (1.020.304.050). Newer cards carry the ten-digit Número Único de Identificación Personal (NUIP). There is no check digit.
|
|
7
|
+
//
|
|
8
|
+
// Props:
|
|
9
|
+
// className — string, optional. CSS class name.
|
|
10
|
+
// label — string, required. Accessible label for screen readers via aria-label.
|
|
11
|
+
// value — string, default "". The identifier string to display.
|
|
12
|
+
// ...restProps — additional HTML attributes spread onto the <span>.
|
|
13
|
+
//
|
|
14
|
+
// Syntax:
|
|
15
|
+
// <ColombiaCedulaDeCiudadaniaView label="Cedula de Ciudadania Number" value={value} />
|
|
16
|
+
//
|
|
17
|
+
// Accessibility:
|
|
18
|
+
// - aria-label provides the accessible name so screen readers announce the purpose
|
|
19
|
+
//
|
|
20
|
+
// References:
|
|
21
|
+
// - https://en.wikipedia.org/wiki/Colombian_identity_card
|
|
22
|
+
|
|
23
|
+
let {
|
|
24
|
+
class: className = "",
|
|
25
|
+
label,
|
|
26
|
+
value = "",
|
|
27
|
+
...restProps
|
|
28
|
+
}: {
|
|
29
|
+
label: string;
|
|
30
|
+
value?: string;
|
|
31
|
+
[key: string]: unknown;
|
|
32
|
+
} = $props();
|
|
33
|
+
</script>
|
|
34
|
+
|
|
35
|
+
<!-- ColombiaCedulaDeCiudadaniaView.svelte -->
|
|
36
|
+
<span
|
|
37
|
+
class={`colombia-cedula-de-ciudadania-view ${className}`}
|
|
38
|
+
aria-label={label}
|
|
39
|
+
{...restProps}>{value}</span
|
|
40
|
+
>
|
package/dist/components/ColombiaCedulaDeCiudadaniaView/ColombiaCedulaDeCiudadaniaView.svelte.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type $$ComponentProps = {
|
|
2
|
+
label: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
[key: string]: unknown;
|
|
5
|
+
};
|
|
6
|
+
declare const ColombiaCedulaDeCiudadaniaView: import("svelte").Component<$$ComponentProps, {}, "">;
|
|
7
|
+
type ColombiaCedulaDeCiudadaniaView = ReturnType<typeof ColombiaCedulaDeCiudadaniaView>;
|
|
8
|
+
export default ColombiaCedulaDeCiudadaniaView;
|
|
@@ -52,7 +52,11 @@
|
|
|
52
52
|
class={`column-chart ${className}`}
|
|
53
53
|
{...restProps}
|
|
54
54
|
>
|
|
55
|
-
<div
|
|
55
|
+
<div
|
|
56
|
+
class="column-chart-graphic"
|
|
57
|
+
role="img"
|
|
58
|
+
aria-label={label}
|
|
59
|
+
>
|
|
56
60
|
{@render children?.()}
|
|
57
61
|
</div>
|
|
58
62
|
{#if dataTable}
|
|
@@ -57,6 +57,8 @@
|
|
|
57
57
|
const uid = $props.id();
|
|
58
58
|
const listboxId = `combobox-listbox-${uid}`;
|
|
59
59
|
|
|
60
|
+
import { popoverState } from "../Popover/popover.js";
|
|
61
|
+
|
|
60
62
|
let {
|
|
61
63
|
class: className = "",
|
|
62
64
|
label,
|
|
@@ -99,13 +101,13 @@
|
|
|
99
101
|
bind:value
|
|
100
102
|
{onkeydown}
|
|
101
103
|
/>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
<div
|
|
105
|
+
role="listbox"
|
|
106
|
+
popover="manual"
|
|
107
|
+
use:popoverState={open}
|
|
108
|
+
id={listboxId}
|
|
109
|
+
aria-label={label}
|
|
110
|
+
>
|
|
111
|
+
{@render children?.()}
|
|
112
|
+
</div>
|
|
111
113
|
</div>
|
|
@@ -52,7 +52,11 @@
|
|
|
52
52
|
class={`composed-chart ${className}`}
|
|
53
53
|
{...restProps}
|
|
54
54
|
>
|
|
55
|
-
<div
|
|
55
|
+
<div
|
|
56
|
+
class="composed-chart-graphic"
|
|
57
|
+
role="img"
|
|
58
|
+
aria-label={label}
|
|
59
|
+
>
|
|
56
60
|
{@render children?.()}
|
|
57
61
|
</div>
|
|
58
62
|
{#if dataTable}
|
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
<script
|
|
2
|
+
lang="ts"
|
|
3
|
+
module
|
|
4
|
+
>
|
|
5
|
+
/**
|
|
6
|
+
* Which section is current: the last whose top has passed the activation line
|
|
7
|
+
* (`tops` are each section's top relative to the scroller; `offset` is the line).
|
|
8
|
+
* At the bottom of the scroll range the last section wins (a short last section
|
|
9
|
+
* never reaches the line); before the first section, the first.
|
|
10
|
+
*/
|
|
11
|
+
export function activeSectionIndex(tops: number[], offset: number, atBottom: boolean): number {
|
|
12
|
+
if (tops.length === 0) return -1;
|
|
13
|
+
if (atBottom) return tops.length - 1;
|
|
14
|
+
let index = 0;
|
|
15
|
+
for (let i = 0; i < tops.length; i++) {
|
|
16
|
+
if (tops[i] <= offset + 1) index = i;
|
|
17
|
+
}
|
|
18
|
+
return index;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** The in-page `<a href="#id">` links inside `nav`. */
|
|
22
|
+
export function contentsLinks(nav: Element): HTMLAnchorElement[] {
|
|
23
|
+
return Array.from(nav.querySelectorAll<HTMLAnchorElement>('a[href^="#"]')).filter(
|
|
24
|
+
(a) => a.getAttribute("href")!.length > 1,
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export function contentsLinkId(link: Element): string {
|
|
29
|
+
return decodeURIComponent((link.getAttribute("href") ?? "").slice(1));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function contentsTarget(link: Element, doc: Document): HTMLElement | null {
|
|
33
|
+
return doc.getElementById(contentsLinkId(link));
|
|
34
|
+
}
|
|
35
|
+
</script>
|
|
36
|
+
|
|
1
37
|
<script lang="ts">
|
|
2
38
|
// ContentsNav component
|
|
3
39
|
//
|
|
@@ -131,7 +167,9 @@
|
|
|
131
167
|
if (locked) return;
|
|
132
168
|
if (hashPending) {
|
|
133
169
|
const id = decodeURIComponent(window.location.hash.slice(1));
|
|
134
|
-
const hashed = id
|
|
170
|
+
const hashed = id
|
|
171
|
+
? contentsLinks(nav!).find((a) => contentsLinkId(a) === id)
|
|
172
|
+
: undefined;
|
|
135
173
|
if (hashed) {
|
|
136
174
|
mark(hashed);
|
|
137
175
|
return;
|
|
@@ -174,7 +212,12 @@
|
|
|
174
212
|
|
|
175
213
|
function onClick(event: Event): void {
|
|
176
214
|
const link = (event.target as Element | null)?.closest?.("a");
|
|
177
|
-
if (
|
|
215
|
+
if (
|
|
216
|
+
!link ||
|
|
217
|
+
!nav!.contains(link) ||
|
|
218
|
+
!contentsTarget(link as HTMLAnchorElement, nav!.ownerDocument)
|
|
219
|
+
)
|
|
220
|
+
return;
|
|
178
221
|
// The link is current at once; observer-style updates wait until the scroll settles.
|
|
179
222
|
mark(link as HTMLAnchorElement);
|
|
180
223
|
locked = true;
|
|
@@ -194,13 +237,21 @@
|
|
|
194
237
|
window.addEventListener("hashchange", onHashChange);
|
|
195
238
|
nav.addEventListener("click", onClick);
|
|
196
239
|
// Links rendered or re-pointed after mount (a list built from data) are picked up too.
|
|
197
|
-
const mutations =
|
|
198
|
-
|
|
240
|
+
const mutations =
|
|
241
|
+
typeof MutationObserver === "undefined" ? null : new MutationObserver(schedule);
|
|
242
|
+
mutations?.observe(nav, {
|
|
243
|
+
childList: true,
|
|
244
|
+
subtree: true,
|
|
245
|
+
attributes: true,
|
|
246
|
+
attributeFilter: ["href"],
|
|
247
|
+
});
|
|
199
248
|
|
|
200
249
|
// The URL hash wins on load; otherwise the position decides.
|
|
201
250
|
const initial = decodeURIComponent(window.location.hash.slice(1));
|
|
202
251
|
hashPending = initial !== "";
|
|
203
|
-
const hashLink = initial
|
|
252
|
+
const hashLink = initial
|
|
253
|
+
? contentsLinks(nav).find((a) => contentsLinkId(a) === initial)
|
|
254
|
+
: undefined;
|
|
204
255
|
if (hashLink) mark(hashLink);
|
|
205
256
|
else update();
|
|
206
257
|
|
|
@@ -217,37 +268,6 @@
|
|
|
217
268
|
});
|
|
218
269
|
</script>
|
|
219
270
|
|
|
220
|
-
<script lang="ts" module>
|
|
221
|
-
/**
|
|
222
|
-
* Which section is current: the last whose top has passed the activation line
|
|
223
|
-
* (`tops` are each section's top relative to the scroller; `offset` is the line).
|
|
224
|
-
* At the bottom of the scroll range the last section wins (a short last section
|
|
225
|
-
* never reaches the line); before the first section, the first.
|
|
226
|
-
*/
|
|
227
|
-
export function activeSectionIndex(tops: number[], offset: number, atBottom: boolean): number {
|
|
228
|
-
if (tops.length === 0) return -1;
|
|
229
|
-
if (atBottom) return tops.length - 1;
|
|
230
|
-
let index = 0;
|
|
231
|
-
for (let i = 0; i < tops.length; i++) {
|
|
232
|
-
if (tops[i] <= offset + 1) index = i;
|
|
233
|
-
}
|
|
234
|
-
return index;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/** The in-page `<a href="#id">` links inside `nav`. */
|
|
238
|
-
export function contentsLinks(nav: Element): HTMLAnchorElement[] {
|
|
239
|
-
return Array.from(nav.querySelectorAll<HTMLAnchorElement>('a[href^="#"]')).filter((a) => a.getAttribute("href")!.length > 1);
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
export function contentsLinkId(link: Element): string {
|
|
243
|
-
return decodeURIComponent((link.getAttribute("href") ?? "").slice(1));
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
export function contentsTarget(link: Element, doc: Document): HTMLElement | null {
|
|
247
|
-
return doc.getElementById(contentsLinkId(link));
|
|
248
|
-
}
|
|
249
|
-
</script>
|
|
250
|
-
|
|
251
271
|
<!-- ContentsNav.svelte -->
|
|
252
272
|
<nav
|
|
253
273
|
bind:this={navEl}
|