@momo-framework/ui 0.0.0-stage → 0.17.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/LICENSE +661 -0
- package/README.hy.md +256 -0
- package/README.md +246 -2
- package/README.ru.md +250 -0
- package/bin/momo-ui-skills.mjs +25 -0
- package/dist/components/Accordion.d.ts +2 -0
- package/dist/components/Accordion.js +6 -0
- package/dist/components/Accordion.js.map +1 -0
- package/dist/components/Accordion.vue.d.ts +45 -0
- package/dist/components/Accordion.vue_vue_type_part.js +91 -0
- package/dist/components/Accordion.vue_vue_type_part.js.map +1 -0
- package/dist/components/Alert.d.ts +2 -0
- package/dist/components/Alert.js +6 -0
- package/dist/components/Alert.js.map +1 -0
- package/dist/components/Alert.vue.d.ts +29 -0
- package/dist/components/Alert.vue_vue_type_part.js +53 -0
- package/dist/components/Alert.vue_vue_type_part.js.map +1 -0
- package/dist/components/AppShell.d.ts +2 -0
- package/dist/components/AppShell.js +6 -0
- package/dist/components/AppShell.js.map +1 -0
- package/dist/components/AppShell.vue.d.ts +72 -0
- package/dist/components/AppShell.vue_vue_type_part.js +370 -0
- package/dist/components/AppShell.vue_vue_type_part.js.map +1 -0
- package/dist/components/AspectRatio.d.ts +2 -0
- package/dist/components/AspectRatio.js +6 -0
- package/dist/components/AspectRatio.js.map +1 -0
- package/dist/components/AspectRatio.vue.d.ts +22 -0
- package/dist/components/AspectRatio.vue_vue_type_part.js +24 -0
- package/dist/components/AspectRatio.vue_vue_type_part.js.map +1 -0
- package/dist/components/Avatar.d.ts +2 -0
- package/dist/components/Avatar.js +6 -0
- package/dist/components/Avatar.js.map +1 -0
- package/dist/components/Avatar.vue.d.ts +14 -0
- package/dist/components/Avatar.vue_vue_type_part.js +37 -0
- package/dist/components/Avatar.vue_vue_type_part.js.map +1 -0
- package/dist/components/Badge.d.ts +2 -0
- package/dist/components/Badge.js +6 -0
- package/dist/components/Badge.js.map +1 -0
- package/dist/components/Badge.vue.d.ts +27 -0
- package/dist/components/Badge.vue_vue_type_part.js +25 -0
- package/dist/components/Badge.vue_vue_type_part.js.map +1 -0
- package/dist/components/Breadcrumbs.d.ts +2 -0
- package/dist/components/Breadcrumbs.js +6 -0
- package/dist/components/Breadcrumbs.js.map +1 -0
- package/dist/components/Breadcrumbs.vue.d.ts +14 -0
- package/dist/components/Breadcrumbs.vue_vue_type_part.js +54 -0
- package/dist/components/Breadcrumbs.vue_vue_type_part.js.map +1 -0
- package/dist/components/Button.d.ts +2 -0
- package/dist/components/Button.js +6 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/Button.vue.d.ts +36 -0
- package/dist/components/Button.vue_vue_type_part.js +78 -0
- package/dist/components/Button.vue_vue_type_part.js.map +1 -0
- package/dist/components/ButtonGroup.d.ts +2 -0
- package/dist/components/ButtonGroup.js +6 -0
- package/dist/components/ButtonGroup.js.map +1 -0
- package/dist/components/ButtonGroup.vue.d.ts +29 -0
- package/dist/components/ButtonGroup.vue_vue_type_part.js +46 -0
- package/dist/components/ButtonGroup.vue_vue_type_part.js.map +1 -0
- package/dist/components/Calendar.d.ts +2 -0
- package/dist/components/Calendar.js +6 -0
- package/dist/components/Calendar.js.map +1 -0
- package/dist/components/Calendar.vue.d.ts +35 -0
- package/dist/components/Calendar.vue_vue_type_part.js +334 -0
- package/dist/components/Calendar.vue_vue_type_part.js.map +1 -0
- package/dist/components/Card.d.ts +2 -0
- package/dist/components/Card.js +6 -0
- package/dist/components/Card.js.map +1 -0
- package/dist/components/Card.vue.d.ts +36 -0
- package/dist/components/Card.vue_vue_type_part.js +54 -0
- package/dist/components/Card.vue_vue_type_part.js.map +1 -0
- package/dist/components/Carousel.d.ts +2 -0
- package/dist/components/Carousel.js +6 -0
- package/dist/components/Carousel.js.map +1 -0
- package/dist/components/Carousel.vue.d.ts +37 -0
- package/dist/components/Carousel.vue_vue_type_part.js +146 -0
- package/dist/components/Carousel.vue_vue_type_part.js.map +1 -0
- package/dist/components/Checkbox.d.ts +2 -0
- package/dist/components/Checkbox.js +6 -0
- package/dist/components/Checkbox.js.map +1 -0
- package/dist/components/Checkbox.vue.d.ts +43 -0
- package/dist/components/Checkbox.vue_vue_type_part.js +99 -0
- package/dist/components/Checkbox.vue_vue_type_part.js.map +1 -0
- package/dist/components/Clock.d.ts +2 -0
- package/dist/components/Clock.js +6 -0
- package/dist/components/Clock.js.map +1 -0
- package/dist/components/Clock.vue.d.ts +36 -0
- package/dist/components/Clock.vue_vue_type_part.js +330 -0
- package/dist/components/Clock.vue_vue_type_part.js.map +1 -0
- package/dist/components/Collapsible.d.ts +2 -0
- package/dist/components/Collapsible.js +6 -0
- package/dist/components/Collapsible.js.map +1 -0
- package/dist/components/Collapsible.vue.d.ts +34 -0
- package/dist/components/Collapsible.vue_vue_type_part.js +69 -0
- package/dist/components/Collapsible.vue_vue_type_part.js.map +1 -0
- package/dist/components/ColorPicker.d.ts +2 -0
- package/dist/components/ColorPicker.js +6 -0
- package/dist/components/ColorPicker.js.map +1 -0
- package/dist/components/ColorPicker.vue.d.ts +33 -0
- package/dist/components/ColorPicker.vue_vue_type_part.js +130 -0
- package/dist/components/ColorPicker.vue_vue_type_part.js.map +1 -0
- package/dist/components/Combobox.d.ts +2 -0
- package/dist/components/Combobox.js +6 -0
- package/dist/components/Combobox.js.map +1 -0
- package/dist/components/Combobox.vue.d.ts +56 -0
- package/dist/components/Combobox.vue_vue_type_part.js +290 -0
- package/dist/components/Combobox.vue_vue_type_part.js.map +1 -0
- package/dist/components/CommandPalette.d.ts +2 -0
- package/dist/components/CommandPalette.js +6 -0
- package/dist/components/CommandPalette.js.map +1 -0
- package/dist/components/CommandPalette.vue.d.ts +32 -0
- package/dist/components/CommandPalette.vue_vue_type_part.js +193 -0
- package/dist/components/CommandPalette.vue_vue_type_part.js.map +1 -0
- package/dist/components/ConfirmDialog.d.ts +2 -0
- package/dist/components/ConfirmDialog.js +6 -0
- package/dist/components/ConfirmDialog.js.map +1 -0
- package/dist/components/ConfirmDialog.vue.d.ts +6 -0
- package/dist/components/ConfirmDialog.vue_vue_type_part.js +65 -0
- package/dist/components/ConfirmDialog.vue_vue_type_part.js.map +1 -0
- package/dist/components/Container.d.ts +2 -0
- package/dist/components/Container.js +6 -0
- package/dist/components/Container.js.map +1 -0
- package/dist/components/Container.vue.d.ts +27 -0
- package/dist/components/Container.vue_vue_type_part.js +41 -0
- package/dist/components/Container.vue_vue_type_part.js.map +1 -0
- package/dist/components/ContextMenu.d.ts +2 -0
- package/dist/components/ContextMenu.js +6 -0
- package/dist/components/ContextMenu.js.map +1 -0
- package/dist/components/ContextMenu.vue.d.ts +25 -0
- package/dist/components/ContextMenu.vue_vue_type_part.js +82 -0
- package/dist/components/ContextMenu.vue_vue_type_part.js.map +1 -0
- package/dist/components/ConversationItem.d.ts +2 -0
- package/dist/components/ConversationItem.js +6 -0
- package/dist/components/ConversationItem.js.map +1 -0
- package/dist/components/ConversationItem.vue.d.ts +40 -0
- package/dist/components/ConversationItem.vue_vue_type_part.js +71 -0
- package/dist/components/ConversationItem.vue_vue_type_part.js.map +1 -0
- package/dist/components/DataTable.d.ts +2 -0
- package/dist/components/DataTable.js +6 -0
- package/dist/components/DataTable.js.map +1 -0
- package/dist/components/DataTable.vue.d.ts +68 -0
- package/dist/components/DataTable.vue_vue_type_part.js +452 -0
- package/dist/components/DataTable.vue_vue_type_part.js.map +1 -0
- package/dist/components/DateDivider.d.ts +2 -0
- package/dist/components/DateDivider.js +6 -0
- package/dist/components/DateDivider.js.map +1 -0
- package/dist/components/DateDivider.vue.d.ts +14 -0
- package/dist/components/DateDivider.vue_vue_type_part.js +27 -0
- package/dist/components/DateDivider.vue_vue_type_part.js.map +1 -0
- package/dist/components/DatePicker.d.ts +2 -0
- package/dist/components/DatePicker.js +6 -0
- package/dist/components/DatePicker.js.map +1 -0
- package/dist/components/DatePicker.vue.d.ts +40 -0
- package/dist/components/DatePicker.vue_vue_type_part.js +166 -0
- package/dist/components/DatePicker.vue_vue_type_part.js.map +1 -0
- package/dist/components/DateRangePicker.d.ts +2 -0
- package/dist/components/DateRangePicker.js +6 -0
- package/dist/components/DateRangePicker.js.map +1 -0
- package/dist/components/DateRangePicker.vue.d.ts +50 -0
- package/dist/components/DateRangePicker.vue_vue_type_part.js +206 -0
- package/dist/components/DateRangePicker.vue_vue_type_part.js.map +1 -0
- package/dist/components/Defaults.d.ts +2 -0
- package/dist/components/Defaults.js +6 -0
- package/dist/components/Defaults.js.map +1 -0
- package/dist/components/Defaults.vue.d.ts +16 -0
- package/dist/components/Defaults.vue_vue_type_part.js +17 -0
- package/dist/components/Defaults.vue_vue_type_part.js.map +1 -0
- package/dist/components/DescriptionList.d.ts +2 -0
- package/dist/components/DescriptionList.js +6 -0
- package/dist/components/DescriptionList.js.map +1 -0
- package/dist/components/DescriptionList.vue.d.ts +32 -0
- package/dist/components/DescriptionList.vue_vue_type_part.js +33 -0
- package/dist/components/DescriptionList.vue_vue_type_part.js.map +1 -0
- package/dist/components/Dialog.d.ts +2 -0
- package/dist/components/Dialog.js +6 -0
- package/dist/components/Dialog.js.map +1 -0
- package/dist/components/Dialog.vue.d.ts +45 -0
- package/dist/components/Dialog.vue_vue_type_part.js +136 -0
- package/dist/components/Dialog.vue_vue_type_part.js.map +1 -0
- package/dist/components/Divider.d.ts +2 -0
- package/dist/components/Divider.js +6 -0
- package/dist/components/Divider.js.map +1 -0
- package/dist/components/Divider.vue.d.ts +22 -0
- package/dist/components/Divider.vue_vue_type_part.js +29 -0
- package/dist/components/Divider.vue_vue_type_part.js.map +1 -0
- package/dist/components/EmptyState.d.ts +2 -0
- package/dist/components/EmptyState.js +6 -0
- package/dist/components/EmptyState.js.map +1 -0
- package/dist/components/EmptyState.vue.d.ts +20 -0
- package/dist/components/EmptyState.vue_vue_type_part.js +31 -0
- package/dist/components/EmptyState.vue_vue_type_part.js.map +1 -0
- package/dist/components/Field.d.ts +2 -0
- package/dist/components/Field.js +6 -0
- package/dist/components/Field.js.map +1 -0
- package/dist/components/Field.vue.d.ts +38 -0
- package/dist/components/Field.vue_vue_type_part.js +98 -0
- package/dist/components/Field.vue_vue_type_part.js.map +1 -0
- package/dist/components/FileUpload.d.ts +2 -0
- package/dist/components/FileUpload.js +6 -0
- package/dist/components/FileUpload.js.map +1 -0
- package/dist/components/FileUpload.vue.d.ts +39 -0
- package/dist/components/FileUpload.vue_vue_type_part.js +154 -0
- package/dist/components/FileUpload.vue_vue_type_part.js.map +1 -0
- package/dist/components/Form.d.ts +2 -0
- package/dist/components/Form.js +6 -0
- package/dist/components/Form.js.map +1 -0
- package/dist/components/Form.vue.d.ts +40 -0
- package/dist/components/Form.vue_vue_type_part.js +85 -0
- package/dist/components/Form.vue_vue_type_part.js.map +1 -0
- package/dist/components/FullscreenButton.d.ts +2 -0
- package/dist/components/FullscreenButton.js +6 -0
- package/dist/components/FullscreenButton.js.map +1 -0
- package/dist/components/FullscreenButton.vue.d.ts +13 -0
- package/dist/components/FullscreenButton.vue_vue_type_part.js +48 -0
- package/dist/components/FullscreenButton.vue_vue_type_part.js.map +1 -0
- package/dist/components/Glyph.d.ts +2 -0
- package/dist/components/Glyph.js +6 -0
- package/dist/components/Glyph.js.map +1 -0
- package/dist/components/Glyph.vue.d.ts +7 -0
- package/dist/components/Glyph.vue_vue_type_part.js +29 -0
- package/dist/components/Glyph.vue_vue_type_part.js.map +1 -0
- package/dist/components/Grid.d.ts +2 -0
- package/dist/components/Grid.js +6 -0
- package/dist/components/Grid.js.map +1 -0
- package/dist/components/Grid.vue.d.ts +33 -0
- package/dist/components/Grid.vue_vue_type_part.js +54 -0
- package/dist/components/Grid.vue_vue_type_part.js.map +1 -0
- package/dist/components/Heading.d.ts +2 -0
- package/dist/components/Heading.js +6 -0
- package/dist/components/Heading.js.map +1 -0
- package/dist/components/Heading.vue.d.ts +24 -0
- package/dist/components/Heading.vue_vue_type_part.js +38 -0
- package/dist/components/Heading.vue_vue_type_part.js.map +1 -0
- package/dist/components/HoverCard.d.ts +2 -0
- package/dist/components/HoverCard.js +6 -0
- package/dist/components/HoverCard.js.map +1 -0
- package/dist/components/HoverCard.vue.d.ts +37 -0
- package/dist/components/HoverCard.vue_vue_type_part.js +110 -0
- package/dist/components/HoverCard.vue_vue_type_part.js.map +1 -0
- package/dist/components/Icon.d.ts +2 -0
- package/dist/components/Icon.js +6 -0
- package/dist/components/Icon.js.map +1 -0
- package/dist/components/Icon.vue.d.ts +9 -0
- package/dist/components/Icon.vue_vue_type_part.js +72 -0
- package/dist/components/Icon.vue_vue_type_part.js.map +1 -0
- package/dist/components/Input.d.ts +2 -0
- package/dist/components/Input.js +6 -0
- package/dist/components/Input.js.map +1 -0
- package/dist/components/Input.vue.d.ts +43 -0
- package/dist/components/Input.vue_vue_type_part.js +96 -0
- package/dist/components/Input.vue_vue_type_part.js.map +1 -0
- package/dist/components/Kbd.d.ts +2 -0
- package/dist/components/Kbd.js +6 -0
- package/dist/components/Kbd.js.map +1 -0
- package/dist/components/Kbd.vue.d.ts +18 -0
- package/dist/components/Kbd.vue_vue_type_part.js +22 -0
- package/dist/components/Kbd.vue_vue_type_part.js.map +1 -0
- package/dist/components/Link.d.ts +2 -0
- package/dist/components/Link.js +6 -0
- package/dist/components/Link.js.map +1 -0
- package/dist/components/Link.vue.d.ts +27 -0
- package/dist/components/Link.vue_vue_type_part.js +67 -0
- package/dist/components/Link.vue_vue_type_part.js.map +1 -0
- package/dist/components/List.d.ts +2 -0
- package/dist/components/List.js +6 -0
- package/dist/components/List.js.map +1 -0
- package/dist/components/List.vue.d.ts +41 -0
- package/dist/components/List.vue_vue_type_part.js +40 -0
- package/dist/components/List.vue_vue_type_part.js.map +1 -0
- package/dist/components/LocaleSwitcher.d.ts +2 -0
- package/dist/components/LocaleSwitcher.js +6 -0
- package/dist/components/LocaleSwitcher.js.map +1 -0
- package/dist/components/LocaleSwitcher.vue.d.ts +20 -0
- package/dist/components/LocaleSwitcher.vue_vue_type_part.js +94 -0
- package/dist/components/LocaleSwitcher.vue_vue_type_part.js.map +1 -0
- package/dist/components/Menu.d.ts +2 -0
- package/dist/components/Menu.js +6 -0
- package/dist/components/Menu.js.map +1 -0
- package/dist/components/Menu.vue.d.ts +56 -0
- package/dist/components/Menu.vue_vue_type_part.js +318 -0
- package/dist/components/Menu.vue_vue_type_part.js.map +1 -0
- package/dist/components/Message.d.ts +2 -0
- package/dist/components/Message.js +6 -0
- package/dist/components/Message.js.map +1 -0
- package/dist/components/Message.vue.d.ts +23 -0
- package/dist/components/Message.vue_vue_type_part.js +28 -0
- package/dist/components/Message.vue_vue_type_part.js.map +1 -0
- package/dist/components/MessageGroup.d.ts +2 -0
- package/dist/components/MessageGroup.js +6 -0
- package/dist/components/MessageGroup.js.map +1 -0
- package/dist/components/MessageGroup.vue.d.ts +28 -0
- package/dist/components/MessageGroup.vue_vue_type_part.js +25 -0
- package/dist/components/MessageGroup.vue_vue_type_part.js.map +1 -0
- package/dist/components/NavList.d.ts +2 -0
- package/dist/components/NavList.js +6 -0
- package/dist/components/NavList.js.map +1 -0
- package/dist/components/NavList.vue.d.ts +46 -0
- package/dist/components/NavList.vue_vue_type_part.js +381 -0
- package/dist/components/NavList.vue_vue_type_part.js.map +1 -0
- package/dist/components/NavigationSwitcher.d.ts +2 -0
- package/dist/components/NavigationSwitcher.js +6 -0
- package/dist/components/NavigationSwitcher.js.map +1 -0
- package/dist/components/NavigationSwitcher.vue.d.ts +26 -0
- package/dist/components/NavigationSwitcher.vue_vue_type_part.js +108 -0
- package/dist/components/NavigationSwitcher.vue_vue_type_part.js.map +1 -0
- package/dist/components/NumberInput.d.ts +2 -0
- package/dist/components/NumberInput.js +6 -0
- package/dist/components/NumberInput.js.map +1 -0
- package/dist/components/NumberInput.vue.d.ts +39 -0
- package/dist/components/NumberInput.vue_vue_type_part.js +184 -0
- package/dist/components/NumberInput.vue_vue_type_part.js.map +1 -0
- package/dist/components/OverlayTransition.d.ts +2 -0
- package/dist/components/OverlayTransition.js +6 -0
- package/dist/components/OverlayTransition.js.map +1 -0
- package/dist/components/OverlayTransition.vue.d.ts +19 -0
- package/dist/components/OverlayTransition.vue_vue_type_part.js +43 -0
- package/dist/components/OverlayTransition.vue_vue_type_part.js.map +1 -0
- package/dist/components/Pagination.d.ts +2 -0
- package/dist/components/Pagination.js +6 -0
- package/dist/components/Pagination.js.map +1 -0
- package/dist/components/Pagination.vue.d.ts +23 -0
- package/dist/components/Pagination.vue_vue_type_part.js +87 -0
- package/dist/components/Pagination.vue_vue_type_part.js.map +1 -0
- package/dist/components/Panel.d.ts +2 -0
- package/dist/components/Panel.js +6 -0
- package/dist/components/Panel.js.map +1 -0
- package/dist/components/Panel.vue.d.ts +29 -0
- package/dist/components/Panel.vue_vue_type_part.js +36 -0
- package/dist/components/Panel.vue_vue_type_part.js.map +1 -0
- package/dist/components/PasswordInput.d.ts +2 -0
- package/dist/components/PasswordInput.js +6 -0
- package/dist/components/PasswordInput.js.map +1 -0
- package/dist/components/PasswordInput.vue.d.ts +49 -0
- package/dist/components/PasswordInput.vue_vue_type_part.js +206 -0
- package/dist/components/PasswordInput.vue_vue_type_part.js.map +1 -0
- package/dist/components/PinInput.d.ts +2 -0
- package/dist/components/PinInput.js +6 -0
- package/dist/components/PinInput.js.map +1 -0
- package/dist/components/PinInput.vue.d.ts +34 -0
- package/dist/components/PinInput.vue_vue_type_part.js +145 -0
- package/dist/components/PinInput.vue_vue_type_part.js.map +1 -0
- package/dist/components/Popover.d.ts +2 -0
- package/dist/components/Popover.js +6 -0
- package/dist/components/Popover.js.map +1 -0
- package/dist/components/Popover.vue.d.ts +38 -0
- package/dist/components/Popover.vue_vue_type_part.js +94 -0
- package/dist/components/Popover.vue_vue_type_part.js.map +1 -0
- package/dist/components/Progress.d.ts +2 -0
- package/dist/components/Progress.js +6 -0
- package/dist/components/Progress.js.map +1 -0
- package/dist/components/Progress.vue.d.ts +20 -0
- package/dist/components/Progress.vue_vue_type_part.js +46 -0
- package/dist/components/Progress.vue_vue_type_part.js.map +1 -0
- package/dist/components/QrCode.d.ts +2 -0
- package/dist/components/QrCode.js +6 -0
- package/dist/components/QrCode.js.map +1 -0
- package/dist/components/QrCode.vue.d.ts +15 -0
- package/dist/components/QrCode.vue_vue_type_part.js +57 -0
- package/dist/components/QrCode.vue_vue_type_part.js.map +1 -0
- package/dist/components/RadioGroup.d.ts +2 -0
- package/dist/components/RadioGroup.js +6 -0
- package/dist/components/RadioGroup.js.map +1 -0
- package/dist/components/RadioGroup.vue.d.ts +47 -0
- package/dist/components/RadioGroup.vue_vue_type_part.js +99 -0
- package/dist/components/RadioGroup.vue_vue_type_part.js.map +1 -0
- package/dist/components/Rating.d.ts +2 -0
- package/dist/components/Rating.js +6 -0
- package/dist/components/Rating.js.map +1 -0
- package/dist/components/Rating.vue.d.ts +33 -0
- package/dist/components/Rating.vue_vue_type_part.js +110 -0
- package/dist/components/Rating.vue_vue_type_part.js.map +1 -0
- package/dist/components/ScrollArea.d.ts +2 -0
- package/dist/components/ScrollArea.js +6 -0
- package/dist/components/ScrollArea.js.map +1 -0
- package/dist/components/ScrollArea.vue.d.ts +26 -0
- package/dist/components/ScrollArea.vue_vue_type_part.js +71 -0
- package/dist/components/ScrollArea.vue_vue_type_part.js.map +1 -0
- package/dist/components/SegmentedControl.d.ts +2 -0
- package/dist/components/SegmentedControl.js +6 -0
- package/dist/components/SegmentedControl.js.map +1 -0
- package/dist/components/SegmentedControl.vue.d.ts +41 -0
- package/dist/components/SegmentedControl.vue_vue_type_part.js +107 -0
- package/dist/components/SegmentedControl.vue_vue_type_part.js.map +1 -0
- package/dist/components/Select.d.ts +2 -0
- package/dist/components/Select.js +6 -0
- package/dist/components/Select.js.map +1 -0
- package/dist/components/Select.vue.d.ts +65 -0
- package/dist/components/Select.vue_vue_type_part.js +413 -0
- package/dist/components/Select.vue_vue_type_part.js.map +1 -0
- package/dist/components/SelectionBar.d.ts +2 -0
- package/dist/components/SelectionBar.js +6 -0
- package/dist/components/SelectionBar.js.map +1 -0
- package/dist/components/SelectionBar.vue.d.ts +27 -0
- package/dist/components/SelectionBar.vue_vue_type_part.js +59 -0
- package/dist/components/SelectionBar.vue_vue_type_part.js.map +1 -0
- package/dist/components/Skeleton.d.ts +2 -0
- package/dist/components/Skeleton.js +6 -0
- package/dist/components/Skeleton.js.map +1 -0
- package/dist/components/Skeleton.vue.d.ts +14 -0
- package/dist/components/Skeleton.vue_vue_type_part.js +31 -0
- package/dist/components/Skeleton.vue_vue_type_part.js.map +1 -0
- package/dist/components/Slider.d.ts +2 -0
- package/dist/components/Slider.js +6 -0
- package/dist/components/Slider.js.map +1 -0
- package/dist/components/Slider.vue.d.ts +37 -0
- package/dist/components/Slider.vue_vue_type_part.js +109 -0
- package/dist/components/Slider.vue_vue_type_part.js.map +1 -0
- package/dist/components/Spacer.d.ts +2 -0
- package/dist/components/Spacer.js +6 -0
- package/dist/components/Spacer.js.map +1 -0
- package/dist/components/Spacer.vue.d.ts +8 -0
- package/dist/components/Spacer.vue_vue_type_part.js +19 -0
- package/dist/components/Spacer.vue_vue_type_part.js.map +1 -0
- package/dist/components/Spinner.d.ts +2 -0
- package/dist/components/Spinner.js +6 -0
- package/dist/components/Spinner.js.map +1 -0
- package/dist/components/Spinner.vue.d.ts +11 -0
- package/dist/components/Spinner.vue_vue_type_part.js +43 -0
- package/dist/components/Spinner.vue_vue_type_part.js.map +1 -0
- package/dist/components/Split.d.ts +2 -0
- package/dist/components/Split.js +6 -0
- package/dist/components/Split.js.map +1 -0
- package/dist/components/Split.vue.d.ts +36 -0
- package/dist/components/Split.vue_vue_type_part.js +60 -0
- package/dist/components/Split.vue_vue_type_part.js.map +1 -0
- package/dist/components/Stack.d.ts +2 -0
- package/dist/components/Stack.js +6 -0
- package/dist/components/Stack.js.map +1 -0
- package/dist/components/Stack.vue.d.ts +35 -0
- package/dist/components/Stack.vue_vue_type_part.js +59 -0
- package/dist/components/Stack.vue_vue_type_part.js.map +1 -0
- package/dist/components/Stat.d.ts +2 -0
- package/dist/components/Stat.js +6 -0
- package/dist/components/Stat.js.map +1 -0
- package/dist/components/Stat.vue.d.ts +25 -0
- package/dist/components/Stat.vue_vue_type_part.js +68 -0
- package/dist/components/Stat.vue_vue_type_part.js.map +1 -0
- package/dist/components/Stepper.d.ts +2 -0
- package/dist/components/Stepper.js +6 -0
- package/dist/components/Stepper.js.map +1 -0
- package/dist/components/Stepper.vue.d.ts +30 -0
- package/dist/components/Stepper.vue_vue_type_part.js +82 -0
- package/dist/components/Stepper.vue_vue_type_part.js.map +1 -0
- package/dist/components/Switch.d.ts +2 -0
- package/dist/components/Switch.js +6 -0
- package/dist/components/Switch.js.map +1 -0
- package/dist/components/Switch.vue.d.ts +41 -0
- package/dist/components/Switch.vue_vue_type_part.js +69 -0
- package/dist/components/Switch.vue_vue_type_part.js.map +1 -0
- package/dist/components/Tabs.d.ts +2 -0
- package/dist/components/Tabs.js +6 -0
- package/dist/components/Tabs.js.map +1 -0
- package/dist/components/Tabs.vue.d.ts +38 -0
- package/dist/components/Tabs.vue_vue_type_part.js +92 -0
- package/dist/components/Tabs.vue_vue_type_part.js.map +1 -0
- package/dist/components/Tag.d.ts +2 -0
- package/dist/components/Tag.js +6 -0
- package/dist/components/Tag.js.map +1 -0
- package/dist/components/Tag.vue.d.ts +32 -0
- package/dist/components/Tag.vue_vue_type_part.js +60 -0
- package/dist/components/Tag.vue_vue_type_part.js.map +1 -0
- package/dist/components/TagsInput.d.ts +2 -0
- package/dist/components/TagsInput.js +6 -0
- package/dist/components/TagsInput.js.map +1 -0
- package/dist/components/TagsInput.vue.d.ts +38 -0
- package/dist/components/TagsInput.vue_vue_type_part.js +130 -0
- package/dist/components/TagsInput.vue_vue_type_part.js.map +1 -0
- package/dist/components/Text.d.ts +2 -0
- package/dist/components/Text.js +6 -0
- package/dist/components/Text.js.map +1 -0
- package/dist/components/Text.vue.d.ts +29 -0
- package/dist/components/Text.vue_vue_type_part.js +37 -0
- package/dist/components/Text.vue_vue_type_part.js.map +1 -0
- package/dist/components/Textarea.d.ts +2 -0
- package/dist/components/Textarea.js +6 -0
- package/dist/components/Textarea.js.map +1 -0
- package/dist/components/Textarea.vue.d.ts +35 -0
- package/dist/components/Textarea.vue_vue_type_part.js +101 -0
- package/dist/components/Textarea.vue_vue_type_part.js.map +1 -0
- package/dist/components/ThemeScope.d.ts +2 -0
- package/dist/components/ThemeScope.js +6 -0
- package/dist/components/ThemeScope.js.map +1 -0
- package/dist/components/ThemeScope.vue.d.ts +27 -0
- package/dist/components/ThemeScope.vue_vue_type_part.js +62 -0
- package/dist/components/ThemeScope.vue_vue_type_part.js.map +1 -0
- package/dist/components/ThemeSwitcher.d.ts +2 -0
- package/dist/components/ThemeSwitcher.js +6 -0
- package/dist/components/ThemeSwitcher.js.map +1 -0
- package/dist/components/ThemeSwitcher.vue.d.ts +22 -0
- package/dist/components/ThemeSwitcher.vue_vue_type_part.js +135 -0
- package/dist/components/ThemeSwitcher.vue_vue_type_part.js.map +1 -0
- package/dist/components/TimePicker.d.ts +2 -0
- package/dist/components/TimePicker.js +6 -0
- package/dist/components/TimePicker.js.map +1 -0
- package/dist/components/TimePicker.vue.d.ts +40 -0
- package/dist/components/TimePicker.vue_vue_type_part.js +154 -0
- package/dist/components/TimePicker.vue_vue_type_part.js.map +1 -0
- package/dist/components/TimeRangePicker.d.ts +2 -0
- package/dist/components/TimeRangePicker.js +6 -0
- package/dist/components/TimeRangePicker.js.map +1 -0
- package/dist/components/TimeRangePicker.vue.d.ts +53 -0
- package/dist/components/TimeRangePicker.vue_vue_type_part.js +257 -0
- package/dist/components/TimeRangePicker.vue_vue_type_part.js.map +1 -0
- package/dist/components/Timeline.d.ts +2 -0
- package/dist/components/Timeline.js +6 -0
- package/dist/components/Timeline.js.map +1 -0
- package/dist/components/Timeline.vue.d.ts +32 -0
- package/dist/components/Timeline.vue_vue_type_part.js +32 -0
- package/dist/components/Timeline.vue_vue_type_part.js.map +1 -0
- package/dist/components/ToastViewport.d.ts +2 -0
- package/dist/components/ToastViewport.js +6 -0
- package/dist/components/ToastViewport.js.map +1 -0
- package/dist/components/ToastViewport.vue.d.ts +11 -0
- package/dist/components/ToastViewport.vue_vue_type_part.js +91 -0
- package/dist/components/ToastViewport.vue_vue_type_part.js.map +1 -0
- package/dist/components/ToggleButton.d.ts +2 -0
- package/dist/components/ToggleButton.js +6 -0
- package/dist/components/ToggleButton.js.map +1 -0
- package/dist/components/ToggleButton.vue.d.ts +37 -0
- package/dist/components/ToggleButton.vue_vue_type_part.js +68 -0
- package/dist/components/ToggleButton.vue_vue_type_part.js.map +1 -0
- package/dist/components/Toolbar.d.ts +2 -0
- package/dist/components/Toolbar.js +6 -0
- package/dist/components/Toolbar.js.map +1 -0
- package/dist/components/Toolbar.vue.d.ts +21 -0
- package/dist/components/Toolbar.vue_vue_type_part.js +70 -0
- package/dist/components/Toolbar.vue_vue_type_part.js.map +1 -0
- package/dist/components/Tooltip.d.ts +2 -0
- package/dist/components/Tooltip.js +6 -0
- package/dist/components/Tooltip.js.map +1 -0
- package/dist/components/Tooltip.vue.d.ts +28 -0
- package/dist/components/Tooltip.vue_vue_type_part.js +101 -0
- package/dist/components/Tooltip.vue_vue_type_part.js.map +1 -0
- package/dist/components/Tree.d.ts +2 -0
- package/dist/components/Tree.js +6 -0
- package/dist/components/Tree.js.map +1 -0
- package/dist/components/Tree.vue.d.ts +48 -0
- package/dist/components/Tree.vue_vue_type_part.js +193 -0
- package/dist/components/Tree.vue_vue_type_part.js.map +1 -0
- package/dist/components/VisuallyHidden.d.ts +2 -0
- package/dist/components/VisuallyHidden.js +6 -0
- package/dist/components/VisuallyHidden.js.map +1 -0
- package/dist/components/VisuallyHidden.vue.d.ts +21 -0
- package/dist/components/VisuallyHidden.vue_vue_type_part.js +26 -0
- package/dist/components/VisuallyHidden.vue_vue_type_part.js.map +1 -0
- package/dist/composables/confirm.d.ts +17 -0
- package/dist/composables/confirm.js +36 -0
- package/dist/composables/confirm.js.map +1 -0
- package/dist/composables/dates.d.ts +14 -0
- package/dist/composables/dates.js +83 -0
- package/dist/composables/dates.js.map +1 -0
- package/dist/composables/defaults.d.ts +7 -0
- package/dist/composables/defaults.js +39 -0
- package/dist/composables/defaults.js.map +1 -0
- package/dist/composables/direction.d.ts +2 -0
- package/dist/composables/direction.js +12 -0
- package/dist/composables/direction.js.map +1 -0
- package/dist/composables/dismiss.d.ts +4 -0
- package/dist/composables/dismiss.js +39 -0
- package/dist/composables/dismiss.js.map +1 -0
- package/dist/composables/dispose.d.ts +1 -0
- package/dist/composables/dispose.js +10 -0
- package/dist/composables/dispose.js.map +1 -0
- package/dist/composables/field.d.ts +28 -0
- package/dist/composables/field.js +25 -0
- package/dist/composables/field.js.map +1 -0
- package/dist/composables/floating.d.ts +14 -0
- package/dist/composables/floating.js +129 -0
- package/dist/composables/floating.js.map +1 -0
- package/dist/composables/focus.d.ts +3 -0
- package/dist/composables/focus.js +89 -0
- package/dist/composables/focus.js.map +1 -0
- package/dist/composables/form.d.ts +22 -0
- package/dist/composables/form.js +33 -0
- package/dist/composables/form.js.map +1 -0
- package/dist/composables/fullscreen.d.ts +8 -0
- package/dist/composables/fullscreen.js +50 -0
- package/dist/composables/fullscreen.js.map +1 -0
- package/dist/composables/inert.d.ts +2 -0
- package/dist/composables/inert.js +47 -0
- package/dist/composables/inert.js.map +1 -0
- package/dist/composables/layers.d.ts +7 -0
- package/dist/composables/layers.js +38 -0
- package/dist/composables/layers.js.map +1 -0
- package/dist/composables/locale.d.ts +13 -0
- package/dist/composables/locale.js +32 -0
- package/dist/composables/locale.js.map +1 -0
- package/dist/composables/mounted.d.ts +2 -0
- package/dist/composables/mounted.js +12 -0
- package/dist/composables/mounted.js.map +1 -0
- package/dist/composables/scroll-lock.d.ts +2 -0
- package/dist/composables/scroll-lock.js +45 -0
- package/dist/composables/scroll-lock.js.map +1 -0
- package/dist/composables/shell.d.ts +24 -0
- package/dist/composables/shell.js +12 -0
- package/dist/composables/shell.js.map +1 -0
- package/dist/composables/theme.d.ts +13 -0
- package/dist/composables/theme.js +58 -0
- package/dist/composables/theme.js.map +1 -0
- package/dist/composables/times.d.ts +30 -0
- package/dist/composables/times.js +130 -0
- package/dist/composables/times.js.map +1 -0
- package/dist/composables/toast.d.ts +26 -0
- package/dist/composables/toast.js +76 -0
- package/dist/composables/toast.js.map +1 -0
- package/dist/composables/top-layer.d.ts +1 -0
- package/dist/composables/top-layer.js +16 -0
- package/dist/composables/top-layer.js.map +1 -0
- package/dist/composables/use-theme.d.ts +11 -0
- package/dist/composables/use-theme.js +30 -0
- package/dist/composables/use-theme.js.map +1 -0
- package/dist/composables/view-transition.d.ts +2 -0
- package/dist/composables/view-transition.js +15 -0
- package/dist/composables/view-transition.js.map +1 -0
- package/dist/composables/virtual.d.ts +19 -0
- package/dist/composables/virtual.js +90 -0
- package/dist/composables/virtual.js.map +1 -0
- package/dist/composables/visible.d.ts +1 -0
- package/dist/composables/visible.js +16 -0
- package/dist/composables/visible.js.map +1 -0
- package/dist/composables/warn-once.d.ts +1 -0
- package/dist/composables/warn-once.js +12 -0
- package/dist/composables/warn-once.js.map +1 -0
- package/dist/config.d.ts +65 -0
- package/dist/config.js +109 -0
- package/dist/config.js.map +1 -0
- package/dist/directives/ripple.d.ts +2 -0
- package/dist/directives/ripple.js +65 -0
- package/dist/directives/ripple.js.map +1 -0
- package/dist/i18n.d.ts +32 -0
- package/dist/i18n.js +81 -0
- package/dist/i18n.js.map +1 -0
- package/dist/icons/index.d.ts +5 -0
- package/dist/icons/lucide.d.ts +157 -0
- package/dist/icons/lucide.js +198 -0
- package/dist/icons/lucide.js.map +1 -0
- package/dist/icons/registry.d.ts +8 -0
- package/dist/icons/registry.js +84 -0
- package/dist/icons/registry.js.map +1 -0
- package/dist/icons/resolve.d.ts +6 -0
- package/dist/icons/resolve.js +34 -0
- package/dist/icons/resolve.js.map +1 -0
- package/dist/icons/types.d.ts +28 -0
- package/dist/index.d.ts +4467 -0
- package/dist/index.js +215 -0
- package/dist/index.js.map +1 -0
- package/dist/locales/en.json.js +118 -0
- package/dist/locales/en.json.js.map +1 -0
- package/dist/locales/hy.json.js +118 -0
- package/dist/locales/hy.json.js.map +1 -0
- package/dist/locales/ru.json.js +118 -0
- package/dist/locales/ru.json.js.map +1 -0
- package/dist/motion/enter.d.ts +9 -0
- package/dist/motion/enter.js +25 -0
- package/dist/motion/enter.js.map +1 -0
- package/dist/motion/install.d.ts +7 -0
- package/dist/motion/install.js +15 -0
- package/dist/motion/install.js.map +1 -0
- package/dist/motion/overlays.d.ts +11 -0
- package/dist/motion/overlays.js +98 -0
- package/dist/motion/overlays.js.map +1 -0
- package/dist/pt.d.ts +16 -0
- package/dist/pt.js +48 -0
- package/dist/pt.js.map +1 -0
- package/dist/scale.d.ts +8 -0
- package/dist/scale.js +29 -0
- package/dist/scale.js.map +1 -0
- package/dist/skills/momo-ui/SKILL.md +241 -0
- package/dist/skills/momo-ui/api/firstDayOf.md +17 -0
- package/dist/skills/momo-ui/api/parseDate.md +17 -0
- package/dist/skills/momo-ui/api/registerIconCollection.md +17 -0
- package/dist/skills/momo-ui/api/toIso.md +18 -0
- package/dist/skills/momo-ui/api/tokens.md +17 -0
- package/dist/skills/momo-ui/api/useColorMode.md +19 -0
- package/dist/skills/momo-ui/api/useConfig.md +15 -0
- package/dist/skills/momo-ui/api/useConfirm.md +26 -0
- package/dist/skills/momo-ui/api/useDefaults.md +17 -0
- package/dist/skills/momo-ui/api/useDismiss.md +16 -0
- package/dist/skills/momo-ui/api/useField.md +22 -0
- package/dist/skills/momo-ui/api/useFloating.md +16 -0
- package/dist/skills/momo-ui/api/useFocusTrap.md +17 -0
- package/dist/skills/momo-ui/api/useFullscreen.md +20 -0
- package/dist/skills/momo-ui/api/useLocale.md +20 -0
- package/dist/skills/momo-ui/api/usePart.md +22 -0
- package/dist/skills/momo-ui/api/useScrollLock.md +16 -0
- package/dist/skills/momo-ui/api/useShell.md +20 -0
- package/dist/skills/momo-ui/api/useT.md +16 -0
- package/dist/skills/momo-ui/api/useTheme.md +23 -0
- package/dist/skills/momo-ui/api/useToast.md +23 -0
- package/dist/skills/momo-ui/api/vRipple.md +17 -0
- package/dist/skills/momo-ui/api/withViewTransition.md +16 -0
- package/dist/skills/momo-ui/components/Accordion.md +46 -0
- package/dist/skills/momo-ui/components/Alert.md +34 -0
- package/dist/skills/momo-ui/components/AppShell.md +54 -0
- package/dist/skills/momo-ui/components/AspectRatio.md +25 -0
- package/dist/skills/momo-ui/components/Avatar.md +22 -0
- package/dist/skills/momo-ui/components/Badge.md +27 -0
- package/dist/skills/momo-ui/components/Breadcrumbs.md +30 -0
- package/dist/skills/momo-ui/components/Button.md +55 -0
- package/dist/skills/momo-ui/components/ButtonGroup.md +30 -0
- package/dist/skills/momo-ui/components/Calendar.md +36 -0
- package/dist/skills/momo-ui/components/Card.md +36 -0
- package/dist/skills/momo-ui/components/Carousel.md +33 -0
- package/dist/skills/momo-ui/components/Checkbox.md +37 -0
- package/dist/skills/momo-ui/components/Clock.md +44 -0
- package/dist/skills/momo-ui/components/Collapsible.md +33 -0
- package/dist/skills/momo-ui/components/ColorPicker.md +33 -0
- package/dist/skills/momo-ui/components/Combobox.md +51 -0
- package/dist/skills/momo-ui/components/CommandPalette.md +41 -0
- package/dist/skills/momo-ui/components/ConfirmDialog.md +16 -0
- package/dist/skills/momo-ui/components/Container.md +28 -0
- package/dist/skills/momo-ui/components/ContextMenu.md +32 -0
- package/dist/skills/momo-ui/components/ConversationItem.md +36 -0
- package/dist/skills/momo-ui/components/DataTable.md +76 -0
- package/dist/skills/momo-ui/components/DateDivider.md +23 -0
- package/dist/skills/momo-ui/components/DatePicker.md +38 -0
- package/dist/skills/momo-ui/components/DateRangePicker.md +41 -0
- package/dist/skills/momo-ui/components/Defaults.md +19 -0
- package/dist/skills/momo-ui/components/DescriptionList.md +35 -0
- package/dist/skills/momo-ui/components/Dialog.md +41 -0
- package/dist/skills/momo-ui/components/Divider.md +26 -0
- package/dist/skills/momo-ui/components/EmptyState.md +28 -0
- package/dist/skills/momo-ui/components/Field.md +41 -0
- package/dist/skills/momo-ui/components/FileUpload.md +37 -0
- package/dist/skills/momo-ui/components/Form.md +48 -0
- package/dist/skills/momo-ui/components/FullscreenButton.md +19 -0
- package/dist/skills/momo-ui/components/Grid.md +32 -0
- package/dist/skills/momo-ui/components/Heading.md +33 -0
- package/dist/skills/momo-ui/components/HoverCard.md +36 -0
- package/dist/skills/momo-ui/components/Icon.md +20 -0
- package/dist/skills/momo-ui/components/Input.md +42 -0
- package/dist/skills/momo-ui/components/Kbd.md +24 -0
- package/dist/skills/momo-ui/components/Link.md +30 -0
- package/dist/skills/momo-ui/components/List.md +39 -0
- package/dist/skills/momo-ui/components/LocaleSwitcher.md +27 -0
- package/dist/skills/momo-ui/components/Menu.md +59 -0
- package/dist/skills/momo-ui/components/Message.md +29 -0
- package/dist/skills/momo-ui/components/MessageGroup.md +31 -0
- package/dist/skills/momo-ui/components/NavList.md +55 -0
- package/dist/skills/momo-ui/components/NavigationSwitcher.md +26 -0
- package/dist/skills/momo-ui/components/NumberInput.md +38 -0
- package/dist/skills/momo-ui/components/Pagination.md +27 -0
- package/dist/skills/momo-ui/components/Panel.md +35 -0
- package/dist/skills/momo-ui/components/PasswordInput.md +50 -0
- package/dist/skills/momo-ui/components/PinInput.md +33 -0
- package/dist/skills/momo-ui/components/Popover.md +33 -0
- package/dist/skills/momo-ui/components/Progress.md +25 -0
- package/dist/skills/momo-ui/components/QrCode.md +23 -0
- package/dist/skills/momo-ui/components/RadioGroup.md +49 -0
- package/dist/skills/momo-ui/components/Rating.md +33 -0
- package/dist/skills/momo-ui/components/ScrollArea.md +28 -0
- package/dist/skills/momo-ui/components/SegmentedControl.md +43 -0
- package/dist/skills/momo-ui/components/Select.md +66 -0
- package/dist/skills/momo-ui/components/SelectionBar.md +29 -0
- package/dist/skills/momo-ui/components/Skeleton.md +23 -0
- package/dist/skills/momo-ui/components/Slider.md +36 -0
- package/dist/skills/momo-ui/components/Spacer.md +17 -0
- package/dist/skills/momo-ui/components/Spinner.md +21 -0
- package/dist/skills/momo-ui/components/Split.md +33 -0
- package/dist/skills/momo-ui/components/Stack.md +32 -0
- package/dist/skills/momo-ui/components/Stat.md +33 -0
- package/dist/skills/momo-ui/components/Stepper.md +39 -0
- package/dist/skills/momo-ui/components/Switch.md +35 -0
- package/dist/skills/momo-ui/components/Tabs.md +42 -0
- package/dist/skills/momo-ui/components/Tag.md +34 -0
- package/dist/skills/momo-ui/components/TagsInput.md +35 -0
- package/dist/skills/momo-ui/components/Text.md +31 -0
- package/dist/skills/momo-ui/components/Textarea.md +37 -0
- package/dist/skills/momo-ui/components/ThemeScope.md +27 -0
- package/dist/skills/momo-ui/components/ThemeSwitcher.md +27 -0
- package/dist/skills/momo-ui/components/TimePicker.md +39 -0
- package/dist/skills/momo-ui/components/TimeRangePicker.md +44 -0
- package/dist/skills/momo-ui/components/Timeline.md +38 -0
- package/dist/skills/momo-ui/components/ToastViewport.md +20 -0
- package/dist/skills/momo-ui/components/ToggleButton.md +34 -0
- package/dist/skills/momo-ui/components/Toolbar.md +26 -0
- package/dist/skills/momo-ui/components/Tooltip.md +28 -0
- package/dist/skills/momo-ui/components/Tree.md +49 -0
- package/dist/skills/momo-ui/components/VisuallyHidden.md +25 -0
- package/dist/styles.css +1 -0
- package/dist/tokens.d.ts +2 -0
- package/dist/tokens.js +18 -0
- package/dist/tokens.js.map +1 -0
- package/package.json +107 -4
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, onBeforeUnmount, openBlock, ref, renderList, toDisplayString, unref, useModel, watch } from "vue";
|
|
2
|
+
import { useLang } from "../composables/locale.js";
|
|
3
|
+
import { useT } from "../config.js";
|
|
4
|
+
import { DAY, blockedBy, formatTime, hourCycleOf, periodsOf, snapStep, walk } from "../composables/times.js";
|
|
5
|
+
import { usePart } from "../pt.js";
|
|
6
|
+
// src/components/Clock.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = ["aria-label"];
|
|
8
|
+
var _hoisted_2 = ["aria-label", "aria-pressed"];
|
|
9
|
+
var _hoisted_3 = ["aria-label", "aria-pressed"];
|
|
10
|
+
var _hoisted_4 = ["aria-label"];
|
|
11
|
+
var _hoisted_5 = ["aria-pressed", "onClick"];
|
|
12
|
+
var _hoisted_6 = [
|
|
13
|
+
"autofocus",
|
|
14
|
+
"aria-label",
|
|
15
|
+
"aria-valuemax",
|
|
16
|
+
"aria-valuenow",
|
|
17
|
+
"aria-valuetext"
|
|
18
|
+
];
|
|
19
|
+
var _hoisted_7 = ["viewBox"];
|
|
20
|
+
var _hoisted_8 = ["r"];
|
|
21
|
+
var _hoisted_9 = ["y2"];
|
|
22
|
+
var _hoisted_10 = ["cy"];
|
|
23
|
+
var _hoisted_11 = ["cy"];
|
|
24
|
+
var _hoisted_12 = ["x", "y"];
|
|
25
|
+
var SIZE = 256;
|
|
26
|
+
var OUTER = 100;
|
|
27
|
+
var INNER = 64;
|
|
28
|
+
var TYPING_PAUSE = 1e3;
|
|
29
|
+
var Clock_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
30
|
+
__name: "Clock",
|
|
31
|
+
props: /*@__PURE__*/ mergeModels({
|
|
32
|
+
min: {},
|
|
33
|
+
max: {},
|
|
34
|
+
step: { default: 5 },
|
|
35
|
+
hourCycle: { default: void 0 },
|
|
36
|
+
locale: {},
|
|
37
|
+
unavailable: {},
|
|
38
|
+
label: {},
|
|
39
|
+
autofocus: { type: Boolean },
|
|
40
|
+
pt: {},
|
|
41
|
+
unstyled: { type: Boolean }
|
|
42
|
+
}, {
|
|
43
|
+
"modelValue": { default: null },
|
|
44
|
+
"modelModifiers": {},
|
|
45
|
+
"view": { default: "hours" },
|
|
46
|
+
"viewModifiers": {}
|
|
47
|
+
}),
|
|
48
|
+
emits: /*@__PURE__*/ mergeModels(["pick"], ["update:modelValue", "update:view"]),
|
|
49
|
+
setup(__props, { emit: __emit }) {
|
|
50
|
+
const CENTER = SIZE / 2;
|
|
51
|
+
const props = __props;
|
|
52
|
+
const model = useModel(__props, "modelValue");
|
|
53
|
+
const view = useModel(__props, "view");
|
|
54
|
+
const emit = __emit;
|
|
55
|
+
const part = usePart("clock", props);
|
|
56
|
+
const t = useT();
|
|
57
|
+
const lang = useLang(props);
|
|
58
|
+
const cycle = computed(() => props.hourCycle ?? hourCycleOf(lang.value));
|
|
59
|
+
const periods = computed(() => periodsOf(lang.value));
|
|
60
|
+
const limits = computed(() => ({
|
|
61
|
+
min: props.min,
|
|
62
|
+
max: props.max,
|
|
63
|
+
unavailable: props.unavailable
|
|
64
|
+
}));
|
|
65
|
+
const dayValue = computed(() => model.value === null ? null : model.value % DAY);
|
|
66
|
+
const hour = computed(() => dayValue.value === null ? null : Math.floor(dayValue.value / 60));
|
|
67
|
+
const minute = computed(() => dayValue.value === null ? null : dayValue.value % 60);
|
|
68
|
+
const pm = ref((hour.value ?? 0) >= 12);
|
|
69
|
+
const dragging = ref(false);
|
|
70
|
+
const dial = ref();
|
|
71
|
+
watch(hour, (value) => {
|
|
72
|
+
if (value !== null) pm.value = value >= 12;
|
|
73
|
+
});
|
|
74
|
+
const blocked = (value) => blockedBy(limits.value, value);
|
|
75
|
+
const hourBlocked = (value) => Array.from({ length: Math.ceil(60 / props.step) }, (_, i) => value * 60 + i * props.step).every(blocked);
|
|
76
|
+
const pad = (n) => String(n).padStart(2, "0");
|
|
77
|
+
const shownHour = computed(() => hour.value === null ? "--" : cycle.value === 12 ? String(hour.value % 12 || 12) : pad(hour.value));
|
|
78
|
+
const shownMinute = computed(() => minute.value === null ? "--" : pad(minute.value));
|
|
79
|
+
const spoken = computed(() => model.value === null ? void 0 : formatTime(model.value, cycle.value, lang.value));
|
|
80
|
+
const point = (index, radius) => {
|
|
81
|
+
const angle = index * Math.PI / 6;
|
|
82
|
+
return {
|
|
83
|
+
x: CENTER + radius * Math.sin(angle),
|
|
84
|
+
y: CENTER - radius * Math.cos(angle)
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
function hourOf(index, inner) {
|
|
88
|
+
if (cycle.value === 12) return index + (pm.value ? 12 : 0);
|
|
89
|
+
return inner ? index === 0 ? 0 : index + 12 : index || 12;
|
|
90
|
+
}
|
|
91
|
+
const marks = computed(() => {
|
|
92
|
+
if (view.value === "minutes") return Array.from({ length: 12 }, (_, index) => {
|
|
93
|
+
const value = index * 5;
|
|
94
|
+
return {
|
|
95
|
+
value,
|
|
96
|
+
label: pad(value),
|
|
97
|
+
...point(index, OUTER),
|
|
98
|
+
inner: false,
|
|
99
|
+
selected: minute.value === value,
|
|
100
|
+
unavailable: hour.value !== null && blocked(hour.value * 60 + value)
|
|
101
|
+
};
|
|
102
|
+
});
|
|
103
|
+
return (cycle.value === 24 ? [false, true] : [false]).flatMap((inner) => Array.from({ length: 12 }, (_, index) => {
|
|
104
|
+
const value = hourOf(index, inner);
|
|
105
|
+
return {
|
|
106
|
+
value,
|
|
107
|
+
label: inner ? pad(value) : String(cycle.value === 12 ? index || 12 : value),
|
|
108
|
+
...point(index, inner ? INNER : OUTER),
|
|
109
|
+
inner,
|
|
110
|
+
selected: hour.value === value,
|
|
111
|
+
unavailable: hourBlocked(value)
|
|
112
|
+
};
|
|
113
|
+
}));
|
|
114
|
+
});
|
|
115
|
+
const reach = computed(() => view.value === "hours" && cycle.value === 24 && hour.value !== null && (hour.value === 0 || hour.value > 12) ? INNER : OUTER);
|
|
116
|
+
const target = computed(() => {
|
|
117
|
+
if (dayValue.value === null) return null;
|
|
118
|
+
return view.value === "hours" ? hour.value % 12 * 30 : minute.value * 6;
|
|
119
|
+
});
|
|
120
|
+
const turn = ref(target.value ?? 0);
|
|
121
|
+
watch(target, (next) => {
|
|
122
|
+
if (next !== null) turn.value += ((next - turn.value) % 360 + 540) % 360 - 180;
|
|
123
|
+
});
|
|
124
|
+
const between = computed(() => view.value === "minutes" && minute.value !== null && minute.value % 5 !== 0);
|
|
125
|
+
let latest = model.value;
|
|
126
|
+
watch(model, (value) => latest = value);
|
|
127
|
+
function choose(value) {
|
|
128
|
+
if (blocked(value)) return false;
|
|
129
|
+
latest = value;
|
|
130
|
+
model.value = value;
|
|
131
|
+
return true;
|
|
132
|
+
}
|
|
133
|
+
function chooseHour(value) {
|
|
134
|
+
const keep = minute.value ?? 0;
|
|
135
|
+
if (!choose(value * 60 + keep)) {
|
|
136
|
+
const first = walk(limits.value, value * 60, props.step, value * 60 + 59);
|
|
137
|
+
if (first !== null) choose(first);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
function chooseMinute(value) {
|
|
141
|
+
choose((hour.value ?? (cycle.value === 12 && pm.value ? 12 : 0)) * 60 + value);
|
|
142
|
+
}
|
|
143
|
+
function locate(event) {
|
|
144
|
+
const box = event.currentTarget.getBoundingClientRect();
|
|
145
|
+
const x = (event.clientX - box.left) / (box.width || SIZE) * SIZE - CENTER;
|
|
146
|
+
const y = (event.clientY - box.top) / (box.height || SIZE) * SIZE - CENTER;
|
|
147
|
+
return {
|
|
148
|
+
angle: (Math.atan2(x, -y) * 180 / Math.PI + 360) % 360,
|
|
149
|
+
inner: Math.hypot(x, y) < 82
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function track(event) {
|
|
153
|
+
const { angle, inner } = locate(event);
|
|
154
|
+
if (view.value === "hours") chooseHour(hourOf(Math.round(angle / 30) % 12, inner));
|
|
155
|
+
else chooseMinute(Math.round(angle / (6 * props.step)) * props.step % 60);
|
|
156
|
+
}
|
|
157
|
+
function press(event) {
|
|
158
|
+
if (event.button !== 0) return;
|
|
159
|
+
event.preventDefault();
|
|
160
|
+
dragging.value = true;
|
|
161
|
+
dial.value?.focus();
|
|
162
|
+
event.currentTarget.setPointerCapture?.(event.pointerId);
|
|
163
|
+
track(event);
|
|
164
|
+
}
|
|
165
|
+
function move(event) {
|
|
166
|
+
if (dragging.value) track(event);
|
|
167
|
+
}
|
|
168
|
+
function release() {
|
|
169
|
+
if (!dragging.value) return;
|
|
170
|
+
dragging.value = false;
|
|
171
|
+
finish();
|
|
172
|
+
}
|
|
173
|
+
function finish() {
|
|
174
|
+
if (view.value === "hours") view.value = "minutes";
|
|
175
|
+
else if (latest !== null) emit("pick", latest);
|
|
176
|
+
}
|
|
177
|
+
function setPeriod(next) {
|
|
178
|
+
pm.value = next;
|
|
179
|
+
if (hour.value !== null && hour.value >= 12 !== next) choose(model.value + (next ? 720 : -720));
|
|
180
|
+
}
|
|
181
|
+
let typed = "";
|
|
182
|
+
let pause;
|
|
183
|
+
function type(digit) {
|
|
184
|
+
clearTimeout(pause);
|
|
185
|
+
pause = setTimeout(() => typed = "", TYPING_PAUSE);
|
|
186
|
+
const limit = view.value === "hours" ? cycle.value === 12 ? 12 : 23 : 59;
|
|
187
|
+
typed = Number(typed + digit) > limit ? digit : typed + digit;
|
|
188
|
+
const value = Number(typed);
|
|
189
|
+
const done = typed.length === 2 || value * 10 > limit;
|
|
190
|
+
if (view.value === "hours") chooseHour(cycle.value === 12 ? value % 12 + (pm.value ? 12 : 0) : value);
|
|
191
|
+
else chooseMinute(value);
|
|
192
|
+
if (done) {
|
|
193
|
+
typed = "";
|
|
194
|
+
finish();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
function keydown(event) {
|
|
198
|
+
const unit = view.value === "hours" ? 60 : props.step;
|
|
199
|
+
const direction = {
|
|
200
|
+
ArrowUp: 1,
|
|
201
|
+
ArrowRight: 1,
|
|
202
|
+
ArrowDown: -1,
|
|
203
|
+
ArrowLeft: -1
|
|
204
|
+
}[event.key];
|
|
205
|
+
const period = {
|
|
206
|
+
a: false,
|
|
207
|
+
p: true
|
|
208
|
+
}[event.key.toLowerCase()];
|
|
209
|
+
if (direction) {
|
|
210
|
+
const moved = view.value === "hours" ? dayValue.value + direction * unit : snapStep(dayValue.value, unit, direction);
|
|
211
|
+
const start = model.value === null ? direction > 0 ? props.min ?? 0 : Math.min(props.max ?? 1439, DAY - 1) : moved;
|
|
212
|
+
const next = walk(limits.value, (start + DAY) % DAY, direction * unit);
|
|
213
|
+
if (next !== null) choose(next);
|
|
214
|
+
} else if (event.key === "Home" || event.key === "End") {
|
|
215
|
+
const edge = event.key === "Home" ? walk(limits.value, 0, props.step) : walk(limits.value, DAY - 1 - (DAY - 1) % props.step, -props.step);
|
|
216
|
+
if (edge !== null) choose(edge);
|
|
217
|
+
} else if (/^\d$/.test(event.key)) type(event.key);
|
|
218
|
+
else if (event.key === "Enter" || event.key === " ") finish();
|
|
219
|
+
else if (event.key === ":") view.value = "minutes";
|
|
220
|
+
else if (cycle.value === 12 && period !== void 0) setPeriod(period);
|
|
221
|
+
else return;
|
|
222
|
+
event.preventDefault();
|
|
223
|
+
}
|
|
224
|
+
onBeforeUnmount(() => clearTimeout(pause));
|
|
225
|
+
return (_ctx, _cache) => {
|
|
226
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(part)("root", {
|
|
227
|
+
view: view.value,
|
|
228
|
+
cycle: cycle.value,
|
|
229
|
+
dragging: dragging.value
|
|
230
|
+
}), {
|
|
231
|
+
role: "group",
|
|
232
|
+
"aria-label": __props.label ?? unref(t)("choose_time")
|
|
233
|
+
}), [createElementVNode("div", normalizeProps(guardReactiveProps(unref(part)("header"))), [
|
|
234
|
+
createElementVNode("button", mergeProps(unref(part)("segment", {
|
|
235
|
+
active: view.value === "hours",
|
|
236
|
+
kind: "hours"
|
|
237
|
+
}), {
|
|
238
|
+
type: "button",
|
|
239
|
+
"aria-label": `${shownHour.value} ${unref(t)("hours")}`,
|
|
240
|
+
"aria-pressed": view.value === "hours",
|
|
241
|
+
onClick: _cache[0] || (_cache[0] = ($event) => view.value = "hours")
|
|
242
|
+
}), toDisplayString(shownHour.value), 17, _hoisted_2),
|
|
243
|
+
createElementVNode("span", mergeProps(unref(part)("separator"), { "aria-hidden": "true" }), ":", 16),
|
|
244
|
+
createElementVNode("button", mergeProps(unref(part)("segment", {
|
|
245
|
+
active: view.value === "minutes",
|
|
246
|
+
kind: "minutes"
|
|
247
|
+
}), {
|
|
248
|
+
type: "button",
|
|
249
|
+
"aria-label": `${shownMinute.value} ${unref(t)("minutes")}`,
|
|
250
|
+
"aria-pressed": view.value === "minutes",
|
|
251
|
+
onClick: _cache[1] || (_cache[1] = ($event) => view.value = "minutes")
|
|
252
|
+
}), toDisplayString(shownMinute.value), 17, _hoisted_3),
|
|
253
|
+
cycle.value === 12 ? (openBlock(), createElementBlock("div", mergeProps({ key: 0 }, unref(part)("periods"), {
|
|
254
|
+
role: "group",
|
|
255
|
+
"aria-label": unref(t)("period")
|
|
256
|
+
}), [(openBlock(true), createElementBlock(Fragment, null, renderList(periods.value, (name, index) => {
|
|
257
|
+
return openBlock(), createElementBlock("button", mergeProps({ key: name }, { ref_for: true }, unref(part)("period", { active: pm.value === (index === 1) }), {
|
|
258
|
+
type: "button",
|
|
259
|
+
"aria-pressed": pm.value === (index === 1),
|
|
260
|
+
onClick: ($event) => setPeriod(index === 1)
|
|
261
|
+
}), toDisplayString(name), 17, _hoisted_5);
|
|
262
|
+
}), 128))], 16, _hoisted_4)) : createCommentVNode("", true)
|
|
263
|
+
], 16), createElementVNode("div", mergeProps({
|
|
264
|
+
ref_key: "dial",
|
|
265
|
+
ref: dial
|
|
266
|
+
}, unref(part)("dial"), {
|
|
267
|
+
role: "slider",
|
|
268
|
+
tabindex: "0",
|
|
269
|
+
autofocus: __props.autofocus ? true : void 0,
|
|
270
|
+
"aria-label": unref(t)(view.value),
|
|
271
|
+
"aria-valuemin": 0,
|
|
272
|
+
"aria-valuemax": view.value === "hours" ? 23 : 59,
|
|
273
|
+
"aria-valuenow": (view.value === "hours" ? hour.value : minute.value) ?? void 0,
|
|
274
|
+
"aria-valuetext": spoken.value,
|
|
275
|
+
onPointerdown: press,
|
|
276
|
+
onPointermove: move,
|
|
277
|
+
onPointerup: release,
|
|
278
|
+
onPointercancel: release,
|
|
279
|
+
onKeydown: keydown
|
|
280
|
+
}), [(openBlock(), createElementBlock("svg", mergeProps(unref(part)("face"), {
|
|
281
|
+
viewBox: `0 0 ${SIZE} ${SIZE}`,
|
|
282
|
+
"aria-hidden": "true"
|
|
283
|
+
}), [
|
|
284
|
+
createElementVNode("circle", mergeProps(unref(part)("plate"), {
|
|
285
|
+
cx: CENTER,
|
|
286
|
+
cy: CENTER,
|
|
287
|
+
r: 124
|
|
288
|
+
}), null, 16, _hoisted_8),
|
|
289
|
+
target.value !== null ? (openBlock(), createElementBlock("g", mergeProps({ key: 0 }, unref(part)("hand", { between: between.value }), { style: { transform: `rotate(${turn.value}deg)` } }), [
|
|
290
|
+
createElementVNode("line", {
|
|
291
|
+
x1: CENTER,
|
|
292
|
+
y1: CENTER,
|
|
293
|
+
x2: CENTER,
|
|
294
|
+
y2: CENTER - reach.value
|
|
295
|
+
}, null, 8, _hoisted_9),
|
|
296
|
+
createElementVNode("circle", {
|
|
297
|
+
cx: CENTER,
|
|
298
|
+
cy: CENTER,
|
|
299
|
+
r: "4"
|
|
300
|
+
}),
|
|
301
|
+
createElementVNode("circle", mergeProps(unref(part)("knob"), {
|
|
302
|
+
cx: CENTER,
|
|
303
|
+
cy: CENTER - reach.value,
|
|
304
|
+
r: "18"
|
|
305
|
+
}), null, 16, _hoisted_10),
|
|
306
|
+
between.value ? (openBlock(), createElementBlock("circle", mergeProps({ key: 0 }, unref(part)("pin"), {
|
|
307
|
+
cx: CENTER,
|
|
308
|
+
cy: CENTER - reach.value,
|
|
309
|
+
r: "3"
|
|
310
|
+
}), null, 16, _hoisted_11)) : createCommentVNode("", true)
|
|
311
|
+
], 16)) : createCommentVNode("", true),
|
|
312
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(marks.value, (mark) => {
|
|
313
|
+
return openBlock(), createElementBlock("text", mergeProps({ key: `${view.value}-${mark.inner}-${mark.value}` }, { ref_for: true }, unref(part)("number", {
|
|
314
|
+
selected: mark.selected && !between.value,
|
|
315
|
+
inner: mark.inner,
|
|
316
|
+
unavailable: mark.unavailable
|
|
317
|
+
}), {
|
|
318
|
+
x: mark.x,
|
|
319
|
+
y: mark.y,
|
|
320
|
+
"text-anchor": "middle",
|
|
321
|
+
"dominant-baseline": "central"
|
|
322
|
+
}), toDisplayString(mark.label), 17, _hoisted_12);
|
|
323
|
+
}), 128))
|
|
324
|
+
], 16, _hoisted_7))], 16, _hoisted_6)], 16, _hoisted_1);
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
export { Clock_vue_vue_type_script_setup_true_lang_default as default };
|
|
329
|
+
|
|
330
|
+
//# sourceMappingURL=Clock.vue_vue_type_part.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Clock.vue_vue_type_part.js","names":["_useModel","_openBlock","_createElementBlock","_mergeProps","_unref","_createElementVNode","_normalizeProps","_guardReactiveProps","_toDisplayString","_Fragment","_renderList"],"sources":["../../src/components/Clock.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, ref, watch } from 'vue'\nimport { useLang } from '../composables/locale.ts'\nimport { useT } from '../config.ts'\nimport { blockedBy, DAY, formatTime, hourCycleOf, periodsOf, snapStep, walk } from '../composables/times.ts'\nimport type { DayMinute, HourCycle } from '../composables/times.ts'\nimport { usePart } from '../pt.ts'\nimport type { PassThrough } from '../pt.ts'\n\nexport type ClockView = 'hours' | 'minutes'\n\nconst SIZE = 256\nconst CENTER = SIZE / 2\nconst OUTER = 100\nconst INNER = 64\nconst TYPING_PAUSE = 1000\n\nconst props = withDefaults(defineProps<{\n min?: DayMinute\n max?: DayMinute\n step?: number\n hourCycle?: HourCycle\n locale?: string\n unavailable?: (minute: DayMinute) => boolean\n label?: string\n autofocus?: boolean\n pt?: PassThrough<'root' | 'header' | 'segment' | 'separator' | 'periods' | 'period' | 'dial' | 'face' | 'plate' | 'hand' | 'knob' | 'pin' | 'number'>\n unstyled?: boolean\n}>(), { step: 5, hourCycle: undefined })\n\nconst model = defineModel<DayMinute | null>({ default: null })\nconst view = defineModel<ClockView>('view', { default: 'hours' })\n\nconst emit = defineEmits<{ pick: [minute: DayMinute] }>()\n\nconst part = usePart('clock', props)\nconst t = useT()\nconst lang = useLang(props)\nconst cycle = computed<HourCycle>(() => props.hourCycle ?? hourCycleOf(lang.value))\nconst periods = computed(() => periodsOf(lang.value))\nconst limits = computed(() => ({ min: props.min, max: props.max, unavailable: props.unavailable }))\nconst dayValue = computed(() => (model.value === null ? null : model.value % DAY))\nconst hour = computed(() => (dayValue.value === null ? null : Math.floor(dayValue.value / 60)))\nconst minute = computed(() => (dayValue.value === null ? null : dayValue.value % 60))\nconst pm = ref((hour.value ?? 0) >= 12)\nconst dragging = ref(false)\nconst dial = ref<HTMLElement>()\n\nwatch(hour, (value) => {\n if (value !== null) {\n pm.value = value >= 12\n }\n})\n\nconst blocked = (value: DayMinute) => blockedBy(limits.value, value)\nconst hourBlocked = (value: number) => Array.from({ length: Math.ceil(60 / props.step) }, (_, i) => value * 60 + i * props.step).every(blocked)\n\nconst pad = (n: number) => String(n).padStart(2, '0')\nconst shownHour = computed(() => (hour.value === null ? '--' : cycle.value === 12 ? String(hour.value % 12 || 12) : pad(hour.value)))\nconst shownMinute = computed(() => (minute.value === null ? '--' : pad(minute.value)))\nconst spoken = computed(() => (model.value === null ? undefined : formatTime(model.value, cycle.value, lang.value)))\n\ninterface Mark { value: number, label: string, x: number, y: number, inner: boolean, selected: boolean, unavailable: boolean }\n\nconst point = (index: number, radius: number) => {\n const angle = (index * Math.PI) / 6\n return { x: CENTER + radius * Math.sin(angle), y: CENTER - radius * Math.cos(angle) }\n}\n\nfunction hourOf(index: number, inner: boolean): number {\n if (cycle.value === 12) {\n return index + (pm.value ? 12 : 0)\n }\n return inner ? (index === 0 ? 0 : index + 12) : index || 12\n}\n\nconst marks = computed<Mark[]>(() => {\n if (view.value === 'minutes') {\n return Array.from({ length: 12 }, (_, index) => {\n const value = index * 5\n return { value, label: pad(value), ...point(index, OUTER), inner: false, selected: minute.value === value, unavailable: hour.value !== null && blocked(hour.value * 60 + value) }\n })\n }\n const rings = cycle.value === 24 ? [false, true] : [false]\n return rings.flatMap(inner => Array.from({ length: 12 }, (_, index) => {\n const value = hourOf(index, inner)\n return { value, label: inner ? pad(value) : String(cycle.value === 12 ? index || 12 : value), ...point(index, inner ? INNER : OUTER), inner, selected: hour.value === value, unavailable: hourBlocked(value) }\n }))\n})\n\nconst reach = computed(() => (view.value === 'hours' && cycle.value === 24 && hour.value !== null && (hour.value === 0 || hour.value > 12) ? INNER : OUTER))\nconst target = computed(() => {\n if (dayValue.value === null) {\n return null\n }\n return view.value === 'hours' ? ((hour.value as number) % 12) * 30 : (minute.value as number) * 6\n})\nconst turn = ref(target.value ?? 0)\nwatch(target, (next) => {\n if (next !== null) {\n turn.value += ((next - turn.value) % 360 + 540) % 360 - 180\n }\n})\nconst between = computed(() => view.value === 'minutes' && minute.value !== null && minute.value % 5 !== 0)\n\nlet latest = model.value\nwatch(model, value => (latest = value))\n\nfunction choose(value: DayMinute): boolean {\n if (blocked(value)) {\n return false\n }\n latest = value\n model.value = value\n return true\n}\n\nfunction chooseHour(value: number): void {\n const keep = minute.value ?? 0\n if (!choose(value * 60 + keep)) {\n const first = walk(limits.value, value * 60, props.step, value * 60 + 59)\n if (first !== null) {\n choose(first)\n }\n }\n}\n\nfunction chooseMinute(value: number): void {\n choose((hour.value ?? (cycle.value === 12 && pm.value ? 12 : 0)) * 60 + value)\n}\n\nfunction locate(event: PointerEvent): { angle: number, inner: boolean } {\n const box = (event.currentTarget as HTMLElement).getBoundingClientRect()\n const x = ((event.clientX - box.left) / (box.width || SIZE)) * SIZE - CENTER\n const y = ((event.clientY - box.top) / (box.height || SIZE)) * SIZE - CENTER\n return { angle: ((Math.atan2(x, -y) * 180) / Math.PI + 360) % 360, inner: Math.hypot(x, y) < (OUTER + INNER) / 2 }\n}\n\nfunction track(event: PointerEvent): void {\n const { angle, inner } = locate(event)\n if (view.value === 'hours') {\n chooseHour(hourOf(Math.round(angle / 30) % 12, inner))\n }\n else {\n chooseMinute((Math.round(angle / (6 * props.step)) * props.step) % 60)\n }\n}\n\nfunction press(event: PointerEvent): void {\n if (event.button !== 0) {\n return\n }\n event.preventDefault()\n dragging.value = true\n dial.value?.focus()\n ;(event.currentTarget as HTMLElement).setPointerCapture?.(event.pointerId)\n track(event)\n}\n\nfunction move(event: PointerEvent): void {\n if (dragging.value) {\n track(event)\n }\n}\n\nfunction release(): void {\n if (!dragging.value) {\n return\n }\n dragging.value = false\n finish()\n}\n\nfunction finish(): void {\n if (view.value === 'hours') {\n view.value = 'minutes'\n }\n else if (latest !== null) {\n emit('pick', latest)\n }\n}\n\nfunction setPeriod(next: boolean): void {\n pm.value = next\n if (hour.value !== null && (hour.value >= 12) !== next) {\n choose(model.value as number + (next ? 720 : -720))\n }\n}\n\nlet typed = ''\nlet pause: ReturnType<typeof setTimeout> | undefined\n\nfunction type(digit: string): void {\n clearTimeout(pause)\n pause = setTimeout(() => (typed = ''), TYPING_PAUSE)\n const limit = view.value === 'hours' ? (cycle.value === 12 ? 12 : 23) : 59\n typed = Number(typed + digit) > limit ? digit : typed + digit\n const value = Number(typed)\n const done = typed.length === 2 || value * 10 > limit\n if (view.value === 'hours') {\n chooseHour(cycle.value === 12 ? (value % 12) + (pm.value ? 12 : 0) : value)\n }\n else {\n chooseMinute(value)\n }\n if (done) {\n typed = ''\n finish()\n }\n}\n\nfunction keydown(event: KeyboardEvent): void {\n const unit = view.value === 'hours' ? 60 : props.step\n const direction = ({ ArrowUp: 1, ArrowRight: 1, ArrowDown: -1, ArrowLeft: -1 } as Record<string, number>)[event.key]\n const period = ({ a: false, p: true } as Record<string, boolean>)[event.key.toLowerCase()]\n if (direction) {\n const moved = view.value === 'hours' ? (dayValue.value as number) + direction * unit : snapStep(dayValue.value as number, unit, direction)\n const start = model.value === null ? (direction > 0 ? props.min ?? 0 : Math.min(props.max ?? DAY - 1, DAY - 1)) : moved\n const next = walk(limits.value, (start + DAY) % DAY, direction * unit)\n if (next !== null) {\n choose(next)\n }\n }\n else if (event.key === 'Home' || event.key === 'End') {\n const edge = event.key === 'Home' ? walk(limits.value, 0, props.step) : walk(limits.value, DAY - 1 - ((DAY - 1) % props.step), -props.step)\n if (edge !== null) {\n choose(edge)\n }\n }\n else if (/^\\d$/.test(event.key)) {\n type(event.key)\n }\n else if (event.key === 'Enter' || event.key === ' ') {\n finish()\n }\n else if (event.key === ':') {\n view.value = 'minutes'\n }\n else if (cycle.value === 12 && period !== undefined) {\n setPeriod(period)\n }\n else {\n return\n }\n event.preventDefault()\n}\n\nonBeforeUnmount(() => clearTimeout(pause))\n</script>\n\n<template>\n <div v-bind=\"part('root', { view, cycle, dragging })\" role=\"group\" :aria-label=\"label ?? t('choose_time')\">\n <div v-bind=\"part('header')\">\n <button v-bind=\"part('segment', { active: view === 'hours', kind: 'hours' })\" type=\"button\" :aria-label=\"`${shownHour} ${t('hours')}`\" :aria-pressed=\"view === 'hours'\" @click=\"view = 'hours'\">{{ shownHour }}</button>\n <span v-bind=\"part('separator')\" aria-hidden=\"true\">:</span>\n <button v-bind=\"part('segment', { active: view === 'minutes', kind: 'minutes' })\" type=\"button\" :aria-label=\"`${shownMinute} ${t('minutes')}`\" :aria-pressed=\"view === 'minutes'\" @click=\"view = 'minutes'\">{{ shownMinute }}</button>\n <div v-if=\"cycle === 12\" v-bind=\"part('periods')\" role=\"group\" :aria-label=\"t('period')\">\n <button v-for=\"(name, index) in periods\" :key=\"name\" v-bind=\"part('period', { active: pm === (index === 1) })\" type=\"button\" :aria-pressed=\"pm === (index === 1)\" @click=\"setPeriod(index === 1)\">{{ name }}</button>\n </div>\n </div>\n <div\n ref=\"dial\"\n v-bind=\"part('dial')\"\n role=\"slider\"\n tabindex=\"0\"\n :autofocus=\"autofocus ? true : undefined\"\n :aria-label=\"t(view)\"\n :aria-valuemin=\"0\"\n :aria-valuemax=\"view === 'hours' ? 23 : 59\"\n :aria-valuenow=\"(view === 'hours' ? hour : minute) ?? undefined\"\n :aria-valuetext=\"spoken\"\n @pointerdown=\"press\"\n @pointermove=\"move\"\n @pointerup=\"release\"\n @pointercancel=\"release\"\n @keydown=\"keydown\"\n >\n <svg v-bind=\"part('face')\" :viewBox=\"`0 0 ${SIZE} ${SIZE}`\" aria-hidden=\"true\">\n <circle v-bind=\"part('plate')\" :cx=\"CENTER\" :cy=\"CENTER\" :r=\"CENTER - 4\" />\n <g v-if=\"target !== null\" v-bind=\"part('hand', { between })\" :style=\"{ transform: `rotate(${turn}deg)` }\">\n <line :x1=\"CENTER\" :y1=\"CENTER\" :x2=\"CENTER\" :y2=\"CENTER - reach\" />\n <circle :cx=\"CENTER\" :cy=\"CENTER\" r=\"4\" />\n <circle v-bind=\"part('knob')\" :cx=\"CENTER\" :cy=\"CENTER - reach\" r=\"18\" />\n <circle v-if=\"between\" v-bind=\"part('pin')\" :cx=\"CENTER\" :cy=\"CENTER - reach\" r=\"3\" />\n </g>\n <text\n v-for=\"mark in marks\"\n :key=\"`${view}-${mark.inner}-${mark.value}`\"\n v-bind=\"part('number', { selected: mark.selected && !between, inner: mark.inner, unavailable: mark.unavailable })\"\n :x=\"mark.x\"\n :y=\"mark.y\"\n text-anchor=\"middle\"\n dominant-baseline=\"central\"\n >{{ mark.label }}</text>\n </svg>\n </div>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAWA,IAAM,OAAO;AAEb,IAAM,QAAQ;AACd,IAAM,QAAQ;AACd,IAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;EAHrB,MAAM,SAAS,OAAO;EAKtB,MAAM,QAAQ;EAad,MAAM,QAAQA,SAA6B,SAAA,YAAkB;EAC7D,MAAM,OAAOA,SAAsB,SAAC,MAA4B;EAEhE,MAAM,OAAO;EAEb,MAAM,OAAO,QAAQ,SAAS,KAAK;EACnC,MAAM,IAAI,KAAK;EACf,MAAM,OAAO,QAAQ,KAAK;EAC1B,MAAM,QAAQ,eAA0B,MAAM,aAAa,YAAY,KAAK,KAAK,CAAC;EAClF,MAAM,UAAU,eAAe,UAAU,KAAK,KAAK,CAAC;EACpD,MAAM,SAAS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EF,WAAgBC,MAAyD,IAAA,CAArD,CAAA,MAAA,GAAA;MAAW,IAAI;MAAS,IAAI,SAAS,MAAA;MAAO,GAAE;;KACpD,QAAA,SAAdH,UAAA,GAAAC,mBAAsF,UAAtFC,WAAsF,EAAA,KAAA,EAAA,GAAvDC,MAAA,IAAA,CAAI,CAAA,KAAA,GAAA;MAAU,IAAI;MAAS,IAAI,SAAS,MAAA;MAAO,GAAE;;;KAElFH,UAAA,IAAA,GAAAC,mBAQwBO,UAAA,MAAAC,WAPP,MAAA,QAAR,SAAI;KADb,OAAAT,UAAA,GAAAC,mBAQwB,QARxBC,WAQwB,EANrB,KAAG,GAAK,KAAA,MAAI,GAAI,KAAK,MAAK,GAAI,KAAK,QAC5B,GAAA,EAAA,SAAA,KAAA,GAAAC,MAAA,IAAA,CAAI,CAAA,UAAA;MAAA,UAAuB,KAAK,YAAQ,CAAK,QAAA;MAAO,OAAS,KAAK;MAAK,aAAe,KAAK;KAAW,CAAA,GAAA;MAC7G,GAAG,KAAK;MACR,GAAG,KAAK;MACT,eAAY;MACZ,qBAAkB;KAChB,CAAA,GAAAI,gBAAA,KAAK,KAAK,GAAA,IAAA,WAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import Collapsible_vue_vue_type_script_setup_true_lang_default from "./Collapsible.vue_vue_type_part.js";
|
|
2
|
+
// src/components/Collapsible.vue
|
|
3
|
+
var Collapsible_default = Collapsible_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { Collapsible_default as default };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=Collapsible.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Collapsible.js","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { PassThrough } from '../pt.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
level?: 2 | 3 | 4 | 5 | 6;
|
|
6
|
+
region?: boolean;
|
|
7
|
+
pt?: PassThrough<'root' | 'heading' | 'trigger' | 'title' | 'indicator' | 'content' | 'inner'>;
|
|
8
|
+
unstyled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_Slots = {
|
|
11
|
+
default?: () => unknown;
|
|
12
|
+
title?: () => unknown;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_ModelProps = {
|
|
15
|
+
'open'?: boolean;
|
|
16
|
+
};
|
|
17
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
18
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
+
"update:open": (value: boolean) => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
region: boolean;
|
|
24
|
+
level: 2 | 6 | 3 | 4 | 5;
|
|
25
|
+
open: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, mergeProps, normalizeProps, openBlock, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useModel, withCtx } from "vue";
|
|
2
|
+
import { usePart } from "../pt.js";
|
|
3
|
+
import { ICON } from "../icons/lucide.js";
|
|
4
|
+
import Icon_default from "./Icon.js";
|
|
5
|
+
// src/components/Collapsible.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var _hoisted_1 = [
|
|
7
|
+
"id",
|
|
8
|
+
"aria-expanded",
|
|
9
|
+
"aria-controls",
|
|
10
|
+
"disabled"
|
|
11
|
+
];
|
|
12
|
+
var _hoisted_2 = [
|
|
13
|
+
"id",
|
|
14
|
+
"role",
|
|
15
|
+
"aria-labelledby",
|
|
16
|
+
"inert"
|
|
17
|
+
];
|
|
18
|
+
var Collapsible_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
19
|
+
__name: "Collapsible",
|
|
20
|
+
props: /*@__PURE__*/ mergeModels({
|
|
21
|
+
title: {},
|
|
22
|
+
disabled: { type: Boolean },
|
|
23
|
+
level: { default: 3 },
|
|
24
|
+
region: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true
|
|
27
|
+
},
|
|
28
|
+
pt: {},
|
|
29
|
+
unstyled: { type: Boolean }
|
|
30
|
+
}, {
|
|
31
|
+
"open": {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
34
|
+
},
|
|
35
|
+
"openModifiers": {}
|
|
36
|
+
}),
|
|
37
|
+
emits: ["update:open"],
|
|
38
|
+
setup(__props) {
|
|
39
|
+
const props = __props;
|
|
40
|
+
const open = useModel(__props, "open");
|
|
41
|
+
const part = usePart("collapsible", props);
|
|
42
|
+
const id = useId();
|
|
43
|
+
function toggle() {
|
|
44
|
+
open.value = !open.value;
|
|
45
|
+
}
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return openBlock(), createElementBlock("div", normalizeProps(guardReactiveProps(unref(part)("root", {
|
|
48
|
+
open: open.value,
|
|
49
|
+
disabled: __props.disabled
|
|
50
|
+
}))), [(openBlock(), createBlock(resolveDynamicComponent(`h${__props.level}`), normalizeProps(guardReactiveProps(unref(part)("heading"))), {
|
|
51
|
+
default: withCtx(() => [createElementVNode("button", mergeProps({ id: `${unref(id)}-trigger` }, unref(part)("trigger", { open: open.value }), {
|
|
52
|
+
type: "button",
|
|
53
|
+
"aria-expanded": open.value ? "true" : "false",
|
|
54
|
+
"aria-controls": `${unref(id)}-content`,
|
|
55
|
+
disabled: __props.disabled,
|
|
56
|
+
onClick: toggle
|
|
57
|
+
}), [createElementVNode("span", normalizeProps(guardReactiveProps(unref(part)("title"))), [renderSlot(_ctx.$slots, "title", {}, () => [createTextVNode(toDisplayString(__props.title), 1)])], 16), createVNode(Icon_default, mergeProps(unref(part)("indicator"), { name: unref(ICON).chevronDown }), null, 16, ["name"])], 16, _hoisted_1)]),
|
|
58
|
+
_: 3
|
|
59
|
+
}, 16)), createElementVNode("div", mergeProps({ id: `${unref(id)}-content` }, unref(part)("content", { open: open.value }), {
|
|
60
|
+
role: __props.region ? "region" : void 0,
|
|
61
|
+
"aria-labelledby": __props.region ? `${unref(id)}-trigger` : void 0,
|
|
62
|
+
inert: !open.value
|
|
63
|
+
}), [createElementVNode("div", normalizeProps(guardReactiveProps(unref(part)("inner"))), [renderSlot(_ctx.$slots, "default")], 16)], 16, _hoisted_2)], 16);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
export { Collapsible_vue_vue_type_script_setup_true_lang_default as default };
|
|
68
|
+
|
|
69
|
+
//# sourceMappingURL=Collapsible.vue_vue_type_part.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Collapsible.vue_vue_type_part.js","names":["_useModel","_openBlock","_createElementBlock","_normalizeProps","_guardReactiveProps","_unref","_createBlock","_resolveDynamicComponent","_withCtx","_createElementVNode","_mergeProps","_renderSlot","_createTextVNode","_toDisplayString","_createVNode","Icon"],"sources":["../../src/components/Collapsible.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useId } from 'vue'\nimport { usePart } from '../pt.ts'\nimport type { PassThrough } from '../pt.ts'\nimport { ICON } from '../icons/lucide.ts'\nimport Icon from './Icon.vue'\n\nconst props = withDefaults(defineProps<{\n title?: string\n disabled?: boolean\n level?: 2 | 3 | 4 | 5 | 6\n region?: boolean\n pt?: PassThrough<'root' | 'heading' | 'trigger' | 'title' | 'indicator' | 'content' | 'inner'>\n unstyled?: boolean\n}>(), { level: 3, region: true })\n\nconst open = defineModel<boolean>('open', { default: false })\n\ndefineSlots<{\n default?: () => unknown\n title?: () => unknown\n}>()\n\nconst part = usePart('collapsible', props)\nconst id = useId()\n\nfunction toggle() {\n open.value = !open.value\n}\n</script>\n\n<template>\n <div v-bind=\"part('root', { open, disabled })\">\n <component :is=\"`h${level}`\" v-bind=\"part('heading')\">\n <button\n :id=\"`${id}-trigger`\"\n v-bind=\"part('trigger', { open })\"\n type=\"button\"\n :aria-expanded=\"open ? 'true' : 'false'\"\n :aria-controls=\"`${id}-content`\"\n :disabled=\"disabled\"\n @click=\"toggle\"\n >\n <span v-bind=\"part('title')\"><slot name=\"title\">{{ title }}</slot></span>\n <Icon v-bind=\"part('indicator')\" :name=\"ICON.chevronDown\" />\n </button>\n </component>\n <div\n :id=\"`${id}-content`\"\n v-bind=\"part('content', { open })\"\n :role=\"region ? 'region' : undefined\"\n :aria-labelledby=\"region ? `${id}-trigger` : undefined\"\n :inert=\"!open\"\n >\n <div v-bind=\"part('inner')\"><slot /></div>\n </div>\n </div>\n</template>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOA,MAAM,QAAQ;EASd,MAAM,OAAOA,SAAoB,SAAC,MAA0B;EAO5D,MAAM,OAAO,QAAQ,eAAe,KAAK;EACzC,MAAM,KAAK,MAAM;EAEjB,SAAS,SAAS;GAChB,KAAK,QAAQ,CAAC,KAAK;EACrB;;GAIE,OAAAC,UAAA,GAAAC,mBAwBM,OAAAC,eAAAC,mBAxBOC,MAAA,IAAA,CAAI,CAAA,QAAA;IAAA,MAAW,KAAA;IAAI,UAAE,QAAA;GAAQ,CAAA,CAAA,CAAA,GAAA,EACxCJ,UAAA,GAAAK,YAaYC,wBAAA,IAbQ,QAAA,OAAK,GAAAJ,eAAAC,mBAAYC,MAAA,IAAA,CAAI,CAAA,SAAA,CAAA,CAAA,GAAA;IACvC,SAAAG,cAWS,CAXTC,mBAWS,UAXTC,WAWS,EAVN,IAAE,GAAKL,MAAA,EAAA,EAAE,UACF,GAAAA,MAAA,IAAA,CAAI,CAAA,WAAA,EAAA,MAAc,KAAA,MAAI,CAAA,GAAA;KAC9B,MAAK;KACJ,iBAAe,KAAA,QAAI,SAAA;KACnB,iBAAa,GAAKA,MAAA,EAAA,EAAE;KACpB,UAAU,QAAA;KACV,SAAO;I,KAERI,mBAAyE,QAAAN,eAAAC,mBAA3DC,MAAA,IAAA,CAAI,CAAA,OAAA,CAAA,CAAA,GAAA,CAAWM,WAAqC,KAAA,QAAA,SAAA,CAAA,SAAA,CAAfC,gBAAAC,gBAAA,QAAA,KAAK,GAAA,CAAA,C,UACxDC,YAA4DC,cAA5DL,WAAcL,MAA8C,IAAA,CAA1C,CAAA,WAAA,GAAA,EAAgB,MAAMA,MAAA,IAAA,CAAI,CAAC,Y;;G,SAGjDI,mBAQM,OARNC,WAQM,EAPH,IAAE,GAAKL,MAAA,EAAA,EAAE,UACF,GAAAA,MAAA,IAAA,CAAI,CAAA,WAAA,EAAA,MAAc,KAAA,MAAI,CAAA,GAAA;IAC7B,MAAM,QAAA,SAAM,WAAc,KAAA;IAC1B,mBAAiB,QAAA,SAAM,GAAMA,MAAA,EAAA,EAAE,YAAa,KAAA;IAC5C,OAAK,CAAG,KAAA;G,KAETI,mBAA0C,OAAAN,eAAAC,mBAA7BC,MAAA,IAAA,CAAI,CAAA,OAAA,CAAA,CAAA,GAAA,CAAWM,WAAQ,KAAA,QAAA,SAAA,C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import ColorPicker_vue_vue_type_script_setup_true_lang_default from "./ColorPicker.vue_vue_type_part.js";
|
|
2
|
+
// src/components/ColorPicker.vue
|
|
3
|
+
var ColorPicker_default = ColorPicker_vue_vue_type_script_setup_true_lang_default;
|
|
4
|
+
export { ColorPicker_default as default };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=ColorPicker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorPicker.js","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ControlSize } from '../scale.js';
|
|
2
|
+
import type { PassThrough } from '../pt.js';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
swatches?: string[];
|
|
5
|
+
hex?: boolean;
|
|
6
|
+
label?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
size?: ControlSize;
|
|
9
|
+
invalid?: boolean;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
pt?: PassThrough<'root' | 'native' | 'hex' | 'swatches' | 'swatch'>;
|
|
13
|
+
unstyled?: boolean;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_ModelProps = {
|
|
16
|
+
modelValue?: string;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
19
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: string) => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
size: "sm" | "md" | "lg";
|
|
25
|
+
required: boolean;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
invalid: boolean;
|
|
28
|
+
modelValue: string;
|
|
29
|
+
hex: boolean;
|
|
30
|
+
swatches: string[];
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|