@elmethis/core 1.0.0-alpha.18 → 1.0.0-alpha.181
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/dist/_virtual/_plugin-vue_export-helper.mjs +10 -0
- package/dist/components/{inline/ElmInlineCode.stories.d.ts → badge/ElmBadge.stories.d.ts} +2 -2
- package/dist/components/badge/ElmBadge.vue.d.ts +21 -0
- package/dist/components/badge/ElmBadge.vue.mjs +10 -0
- package/dist/components/badge/ElmBadge.vue2.mjs +33 -0
- package/dist/components/badge/ElmBadge.vue3.mjs +26 -0
- package/dist/components/badge/ElmTag.stories.d.ts +7 -0
- package/dist/components/badge/ElmTag.vue.d.ts +14 -0
- package/dist/components/badge/ElmTag.vue.mjs +10 -0
- package/dist/components/badge/ElmTag.vue2.mjs +39 -0
- package/dist/components/badge/ElmTag.vue3.mjs +26 -0
- package/dist/components/code/ElmCodeBlock.vue.d.ts +8 -1
- package/dist/components/code/ElmCodeBlock.vue.mjs +10 -0
- package/dist/components/code/ElmCodeBlock.vue2.mjs +105 -0
- package/dist/components/code/ElmCodeBlock.vue3.mjs +37 -0
- package/dist/components/code/ElmKatex.vue.d.ts +3 -1
- package/dist/components/code/ElmKatex.vue.mjs +10 -0
- package/dist/components/code/ElmKatex.vue2.mjs +67 -0
- package/dist/components/code/ElmKatex.vue3.mjs +20 -0
- package/dist/components/code/{ElmPrismHighlighter.stories.d.ts → ElmShikiHighlighter.stories.d.ts} +2 -3
- package/dist/components/code/ElmShikiHighlighter.vue.d.ts +22 -0
- package/dist/components/code/ElmShikiHighlighter.vue.mjs +23 -0
- package/dist/components/code/ElmShikiHighlighter.vue2.mjs +51 -0
- package/dist/components/code/ElmShikiHighlighter.vue3.mjs +20 -0
- package/dist/components/code/shikiInstance.d.ts +2 -0
- package/dist/components/code/shikiInstance.mjs +76 -0
- package/dist/components/containments/ElmColumn.vue.d.ts +3 -2
- package/dist/components/containments/ElmColumn.vue.mjs +10 -0
- package/dist/components/containments/ElmColumn.vue2.mjs +16 -0
- package/dist/components/containments/ElmColumn.vue3.mjs +20 -0
- package/dist/components/containments/ElmColumnList.vue.d.ts +3 -2
- package/dist/components/containments/ElmColumnList.vue.mjs +10 -0
- package/dist/components/containments/ElmColumnList.vue2.mjs +16 -0
- package/dist/components/containments/ElmColumnList.vue3.mjs +18 -0
- package/dist/components/containments/ElmDesktopWindow.vue.d.ts +3 -2
- package/dist/components/containments/ElmDesktopWindow.vue.mjs +10 -0
- package/dist/components/containments/ElmDesktopWindow.vue2.mjs +42 -0
- package/dist/components/containments/ElmDesktopWindow.vue3.mjs +26 -0
- package/dist/components/containments/ElmModal.stories.d.ts +6 -0
- package/dist/components/containments/ElmModal.vue.d.ts +35 -0
- package/dist/components/containments/ElmModal.vue.mjs +22 -0
- package/dist/components/containments/ElmModal.vue2.mjs +44 -0
- package/dist/components/containments/ElmModal.vue3.mjs +23 -0
- package/dist/components/containments/ElmParallax.vue.mjs +10 -0
- package/dist/components/containments/ElmParallax.vue2.mjs +35 -0
- package/dist/components/containments/ElmParallax.vue3.mjs +20 -0
- package/dist/components/containments/ElmSnackbar.stories.d.ts +6 -0
- package/dist/components/containments/ElmSnackbar.vue.d.ts +11 -0
- package/dist/components/containments/ElmSnackbar.vue.mjs +10 -0
- package/dist/components/containments/ElmSnackbar.vue2.mjs +39 -0
- package/dist/components/containments/ElmSnackbar.vue3.mjs +26 -0
- package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
- package/dist/components/containments/ElmSnackbarContainer.vue.mjs +22 -0
- package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
- package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +19 -0
- package/dist/components/containments/ElmToggle.stories.d.ts +1 -0
- package/dist/components/containments/ElmToggle.vue.d.ts +13 -6
- package/dist/components/containments/ElmToggle.vue.mjs +22 -0
- package/dist/components/containments/ElmToggle.vue2.mjs +71 -0
- package/dist/components/containments/ElmToggle.vue3.mjs +29 -0
- package/dist/components/containments/ElmTooltip.vue.d.ts +5 -2
- package/dist/components/containments/ElmTooltip.vue.mjs +22 -0
- package/dist/components/containments/ElmTooltip.vue2.mjs +49 -0
- package/dist/components/containments/ElmTooltip.vue3.mjs +20 -0
- package/dist/components/containments/useSnackbarState.d.ts +28 -0
- package/dist/components/data/ElmMultiProgress.stories.d.ts +6 -0
- package/dist/components/data/ElmMultiProgress.vue.d.ts +30 -0
- package/dist/components/data/ElmMultiProgress.vue.mjs +10 -0
- package/dist/components/data/ElmMultiProgress.vue2.mjs +45 -0
- package/dist/components/data/ElmMultiProgress.vue3.mjs +23 -0
- package/dist/components/data/ElmProgress.stories.d.ts +1 -0
- package/dist/components/data/ElmProgress.vue.d.ts +6 -1
- package/dist/components/data/ElmProgress.vue.mjs +10 -0
- package/dist/components/data/ElmProgress.vue2.mjs +53 -0
- package/dist/components/data/ElmProgress.vue3.mjs +32 -0
- package/dist/components/data/ElmStatusMessage.stories.d.ts +9 -0
- package/dist/components/data/ElmStatusMessage.vue.d.ts +6 -0
- package/dist/components/data/ElmStatusMessage.vue.mjs +22 -0
- package/dist/components/data/ElmStatusMessage.vue2.mjs +75 -0
- package/dist/components/data/ElmStatusMessage.vue3.mjs +23 -0
- package/dist/components/fallback/ElmBlockFallback.stories.d.ts +6 -0
- package/dist/components/fallback/ElmBlockFallback.vue.d.ts +4 -0
- package/dist/components/fallback/ElmBlockFallback.vue.mjs +10 -0
- package/dist/components/fallback/ElmBlockFallback.vue2.mjs +17 -0
- package/dist/components/fallback/ElmBlockFallback.vue3.mjs +18 -0
- package/dist/components/fallback/ElmRectangleWave.vue.d.ts +1 -1
- package/dist/components/fallback/ElmRectangleWave.vue.mjs +10 -0
- package/dist/components/fallback/ElmRectangleWave.vue2.mjs +15 -0
- package/dist/components/fallback/ElmRectangleWave.vue3.mjs +21 -0
- package/dist/components/fallback/ElmSpinner.stories.d.ts +6 -0
- package/dist/components/fallback/ElmSpinner.vue.d.ts +9 -0
- package/dist/components/fallback/ElmSpinner.vue.mjs +10 -0
- package/dist/components/fallback/ElmSpinner.vue2.mjs +30 -0
- package/dist/components/fallback/ElmSpinner.vue3.mjs +24 -0
- package/dist/components/form/ElmButton.stories.d.ts +11 -0
- package/dist/components/form/ElmButton.vue.d.ts +41 -0
- package/dist/components/form/ElmButton.vue.mjs +22 -0
- package/dist/components/form/ElmButton.vue2.mjs +57 -0
- package/dist/components/form/ElmButton.vue3.mjs +32 -0
- package/dist/components/form/ElmCheckbox.vue.d.ts +16 -6
- package/dist/components/form/ElmCheckbox.vue.mjs +10 -0
- package/dist/components/form/ElmCheckbox.vue2.mjs +177 -0
- package/dist/components/form/ElmCheckbox.vue3.mjs +34 -0
- package/dist/components/form/ElmSwitch.stories.d.ts +6 -0
- package/dist/components/form/ElmSwitch.vue.d.ts +32 -0
- package/dist/components/form/ElmSwitch.vue.mjs +10 -0
- package/dist/components/form/ElmSwitch.vue2.mjs +61 -0
- package/dist/components/form/ElmSwitch.vue3.mjs +28 -0
- package/dist/components/form/ElmTextField.stories.d.ts +6 -0
- package/dist/components/form/ElmTextField.vue.d.ts +30 -0
- package/dist/components/form/ElmTextField.vue.mjs +10 -0
- package/dist/components/form/ElmTextField.vue2.mjs +124 -0
- package/dist/components/form/ElmTextField.vue3.mjs +46 -0
- package/dist/components/form/ElmTotp.stories.d.ts +6 -0
- package/dist/components/form/ElmTotp.vue.d.ts +12 -0
- package/dist/components/form/ElmTotp.vue.mjs +10 -0
- package/dist/components/form/ElmTotp.vue2.mjs +102 -0
- package/dist/components/form/ElmTotp.vue3.mjs +34 -0
- package/dist/components/headings/ElmFragmentIdentifier.stories.d.ts +6 -0
- package/dist/components/headings/ElmFragmentIdentifier.vue.d.ts +8 -0
- package/dist/components/headings/ElmFragmentIdentifier.vue.mjs +10 -0
- package/dist/components/headings/ElmFragmentIdentifier.vue2.mjs +57 -0
- package/dist/components/headings/ElmFragmentIdentifier.vue3.mjs +23 -0
- package/dist/components/headings/ElmHeading1.vue.d.ts +9 -1
- package/dist/components/headings/ElmHeading1.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading1.vue2.mjs +43 -0
- package/dist/components/headings/ElmHeading1.vue3.mjs +20 -0
- package/dist/components/headings/ElmHeading2.vue.d.ts +9 -1
- package/dist/components/headings/ElmHeading2.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading2.vue2.mjs +49 -0
- package/dist/components/headings/ElmHeading2.vue3.mjs +23 -0
- package/dist/components/headings/ElmHeading3.vue.d.ts +9 -1
- package/dist/components/headings/ElmHeading3.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading3.vue2.mjs +39 -0
- package/dist/components/headings/ElmHeading3.vue3.mjs +20 -0
- package/dist/components/headings/ElmHeading4.vue.d.ts +6 -0
- package/dist/components/headings/ElmHeading4.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading4.vue2.mjs +31 -0
- package/dist/components/headings/ElmHeading4.vue3.mjs +20 -0
- package/dist/components/headings/ElmHeading5.vue.d.ts +6 -0
- package/dist/components/headings/ElmHeading5.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading5.vue2.mjs +31 -0
- package/dist/components/headings/ElmHeading5.vue3.mjs +20 -0
- package/dist/components/headings/ElmHeading6.vue.d.ts +6 -0
- package/dist/components/headings/ElmHeading6.vue.mjs +10 -0
- package/dist/components/headings/ElmHeading6.vue2.mjs +31 -0
- package/dist/components/headings/ElmHeading6.vue3.mjs +20 -0
- package/dist/components/icon/ElmArrowIcon.stories.d.ts +6 -0
- package/dist/components/icon/ElmArrowIcon.vue.d.ts +26 -0
- package/dist/components/icon/ElmArrowIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmArrowIcon.vue2.mjs +31 -0
- package/dist/components/icon/ElmArrowIcon.vue3.mjs +29 -0
- package/dist/components/icon/ElmBookmarkIcon.stories.d.ts +8 -0
- package/dist/components/icon/ElmBookmarkIcon.vue.d.ts +7 -0
- package/dist/components/icon/ElmBookmarkIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmBookmarkIcon.vue2.mjs +45 -0
- package/dist/components/icon/ElmBookmarkIcon.vue3.mjs +27 -0
- package/dist/components/icon/ElmCubeIcon.vue.d.ts +1 -1
- package/dist/components/icon/ElmCubeIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmCubeIcon.vue2.mjs +41 -0
- package/dist/components/icon/ElmCubeIcon.vue3.mjs +24 -0
- package/dist/components/icon/ElmDotLoadingIcon.vue.d.ts +2 -2
- package/dist/components/icon/ElmDotLoadingIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmDotLoadingIcon.vue2.mjs +28 -0
- package/dist/components/icon/ElmDotLoadingIcon.vue3.mjs +26 -0
- package/dist/components/icon/ElmLanguageIcon.vue.d.ts +1 -1
- package/dist/components/icon/ElmLanguageIcon.vue.mjs +22 -0
- package/dist/components/icon/ElmLanguageIcon.vue2.mjs +148 -0
- package/dist/components/icon/ElmLanguageIcon.vue3.mjs +23 -0
- package/dist/components/icon/ElmLoginIcon.stories.d.ts +6 -0
- package/dist/components/icon/ElmLoginIcon.vue.d.ts +18 -0
- package/dist/components/icon/ElmLoginIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmLoginIcon.vue2.mjs +37 -0
- package/dist/components/icon/ElmLoginIcon.vue3.mjs +20 -0
- package/dist/components/icon/ElmToggleTheme.vue.mjs +10 -0
- package/dist/components/icon/ElmToggleTheme.vue2.mjs +30 -0
- package/dist/components/icon/ElmToggleTheme.vue3.mjs +20 -0
- package/dist/components/icon/languages/Bash.vue.d.ts +1 -1
- package/dist/{Bash-mlA01V07.js → components/icon/languages/Bash.vue.mjs} +20 -15
- package/dist/components/icon/languages/Bash.vue2.mjs +20 -0
- package/dist/components/icon/languages/{JavaScript.vue.d.ts → Css.vue.d.ts} +1 -1
- package/dist/components/icon/languages/Css.vue.mjs +19 -0
- package/dist/components/icon/languages/Rust.vue.d.ts +1 -1
- package/dist/components/icon/languages/Rust.vue.mjs +17 -0
- package/dist/components/inline/ElmInlineIcon.stories.d.ts +6 -0
- package/dist/components/inline/ElmInlineIcon.vue.d.ts +6 -0
- package/dist/components/inline/ElmInlineIcon.vue.mjs +10 -0
- package/dist/components/inline/ElmInlineIcon.vue2.mjs +21 -0
- package/dist/components/inline/ElmInlineIcon.vue3.mjs +20 -0
- package/dist/components/inline/ElmInlineLink.vue.d.ts +3 -2
- package/dist/components/inline/ElmInlineLink.vue.mjs +10 -0
- package/dist/components/inline/ElmInlineLink.vue2.mjs +55 -0
- package/dist/components/inline/ElmInlineLink.vue3.mjs +23 -0
- package/dist/components/inline/ElmInlineRuby.vue.d.ts +1 -1
- package/dist/components/inline/ElmInlineRuby.vue.mjs +29 -0
- package/dist/components/inline/ElmInlineRuby.vue2.mjs +4 -0
- package/dist/components/inline/ElmInlineText.stories.d.ts +1 -0
- package/dist/components/inline/ElmInlineText.vue.d.ts +10 -1
- package/dist/components/inline/ElmInlineText.vue.mjs +10 -0
- package/dist/components/inline/ElmInlineText.vue2.mjs +57 -0
- package/dist/components/inline/ElmInlineText.vue3.mjs +23 -0
- package/dist/components/inline/ElmTypingAnimation.stories.d.ts +6 -0
- package/dist/components/inline/ElmTypingAnimation.vue.d.ts +21 -0
- package/dist/components/jsonschema/ElmChildContainer.stories.d.ts +6 -0
- package/dist/components/jsonschema/ElmChildContainer.vue.d.ts +21 -0
- package/dist/components/jsonschema/ElmFieldAttribute.stories.d.ts +6 -0
- package/dist/components/jsonschema/ElmFieldAttribute.vue.d.ts +7 -0
- package/dist/components/jsonschema/ElmFieldType.stories.d.ts +7 -0
- package/dist/components/jsonschema/ElmFieldType.vue.d.ts +8 -0
- package/dist/components/jsonschema/ElmJsonSchema.stories.d.ts +7 -0
- package/dist/components/jsonschema/ElmJsonSchema.vue.d.ts +7 -0
- package/dist/components/media/ElmBlockImage.stories.d.ts +9 -0
- package/dist/components/media/ElmBlockImage.vue.d.ts +10 -0
- package/dist/components/media/ElmBlockImage.vue.mjs +10 -0
- package/dist/components/media/ElmBlockImage.vue2.mjs +33 -0
- package/dist/components/media/ElmBlockImage.vue3.mjs +20 -0
- package/dist/components/media/ElmFile.vue.d.ts +6 -1
- package/dist/components/media/ElmFile.vue.mjs +10 -0
- package/dist/components/media/ElmFile.vue2.mjs +77 -0
- package/dist/components/media/ElmFile.vue3.mjs +26 -0
- package/dist/components/media/ElmImage.stories.d.ts +2 -0
- package/dist/components/media/ElmImage.vue.d.ts +5 -0
- package/dist/components/media/ElmImage.vue.mjs +22 -0
- package/dist/components/media/ElmImage.vue2.mjs +91 -0
- package/dist/components/media/ElmImage.vue3.mjs +30 -0
- package/dist/components/navigation/ElmBookmark.stories.d.ts +2 -0
- package/dist/components/navigation/ElmBookmark.vue.d.ts +13 -9
- package/dist/components/navigation/ElmBookmark.vue.mjs +10 -0
- package/dist/components/navigation/ElmBookmark.vue2.mjs +115 -0
- package/dist/components/navigation/ElmBookmark.vue3.mjs +44 -0
- package/dist/components/navigation/ElmBreadcrumb.vue.d.ts +3 -1
- package/dist/components/navigation/ElmBreadcrumb.vue.mjs +10 -0
- package/dist/components/navigation/ElmBreadcrumb.vue2.mjs +63 -0
- package/dist/components/navigation/ElmBreadcrumb.vue3.mjs +30 -0
- package/dist/components/navigation/ElmPagetop.vue.d.ts +1 -1
- package/dist/components/navigation/ElmPagetop.vue.mjs +10 -0
- package/dist/components/navigation/ElmPagetop.vue2.mjs +51 -0
- package/dist/components/navigation/ElmPagetop.vue3.mjs +30 -0
- package/dist/components/navigation/ElmTableOfContents.vue.d.ts +1 -1
- package/dist/components/navigation/ElmTableOfContents.vue.mjs +10 -0
- package/dist/components/navigation/ElmTableOfContents.vue2.mjs +43 -0
- package/dist/components/navigation/ElmTableOfContents.vue3.mjs +26 -0
- package/dist/components/others/ElmColorSample.stories.d.ts +6 -0
- package/dist/components/others/ElmColorSample.vue.d.ts +8 -0
- package/dist/components/others/ElmColorSample.vue.mjs +22 -0
- package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
- package/dist/components/others/ElmColorSample.vue3.mjs +21 -0
- package/dist/components/others/ElmColorTable.stories.d.ts +6 -0
- package/dist/components/others/ElmColorTable.vue.d.ts +11 -0
- package/dist/components/others/ElmColorTable.vue.mjs +10 -0
- package/dist/components/others/ElmColorTable.vue2.mjs +45 -0
- package/dist/components/others/ElmColorTable.vue3.mjs +22 -0
- package/dist/components/others/ElmTemplate.stories.d.ts +6 -0
- package/dist/components/others/ElmTyping.vue.d.ts +4 -0
- package/dist/components/renderer/ElmJsonRenderer.stories.d.ts +1 -0
- package/dist/components/renderer/ElmJsonRenderer.vue.d.ts +45 -8
- package/dist/components/renderer/ElmJsonRenderer.vue.mjs +150 -0
- package/dist/components/renderer/ElmJsonRenderer.vue2.mjs +4 -0
- package/dist/components/table/ElmTable.vue.d.ts +8 -2
- package/dist/components/table/ElmTable.vue.mjs +18 -0
- package/dist/components/table/ElmTable.vue2.mjs +22 -0
- package/dist/components/table/ElmTableBody.vue.d.ts +3 -2
- package/dist/components/table/ElmTableBody.vue.mjs +15 -0
- package/dist/components/table/ElmTableBody.vue3.mjs +17 -0
- package/dist/components/table/ElmTableCell.vue.d.ts +2 -1
- package/dist/components/table/ElmTableCell.vue.mjs +18 -0
- package/dist/components/table/ElmTableCell.vue2.mjs +22 -0
- package/dist/components/table/ElmTableHeader.vue.d.ts +3 -2
- package/dist/components/table/ElmTableHeader.vue.mjs +15 -0
- package/dist/components/table/ElmTableHeader.vue3.mjs +17 -0
- package/dist/components/table/ElmTableRow.vue.d.ts +3 -2
- package/dist/components/table/ElmTableRow.vue.mjs +14 -0
- package/dist/components/table/ElmTableRow.vue2.mjs +4 -0
- package/dist/components/template/ElmTemplate.vue.d.ts +1 -1
- package/dist/components/typography/ElmBlockQuote.vue.d.ts +5 -2
- package/dist/components/typography/ElmBlockQuote.vue.mjs +10 -0
- package/dist/components/typography/ElmBlockQuote.vue2.mjs +27 -0
- package/dist/components/typography/ElmBlockQuote.vue3.mjs +20 -0
- package/dist/components/typography/ElmBulletedList.vue.d.ts +5 -2
- package/dist/components/typography/ElmBulletedList.vue.mjs +27 -0
- package/dist/components/typography/ElmBulletedList.vue3.mjs +17 -0
- package/dist/components/typography/ElmCallout.vue.d.ts +5 -2
- package/dist/components/typography/ElmCallout.vue.mjs +10 -0
- package/dist/components/typography/ElmCallout.vue2.mjs +57 -0
- package/dist/components/typography/ElmCallout.vue3.mjs +26 -0
- package/dist/components/typography/ElmDivider.vue.d.ts +8 -1
- package/dist/components/typography/ElmDivider.vue.mjs +10 -0
- package/dist/components/typography/ElmDivider.vue2.mjs +29 -0
- package/dist/components/typography/ElmDivider.vue3.mjs +20 -0
- package/dist/components/typography/ElmListItem.vue.d.ts +3 -2
- package/dist/components/typography/ElmListItem.vue.mjs +10 -0
- package/dist/components/typography/ElmListItem.vue2.mjs +16 -0
- package/dist/components/typography/ElmListItem.vue3.mjs +20 -0
- package/dist/components/typography/ElmNumberedList.vue.d.ts +5 -2
- package/dist/components/typography/ElmNumberedList.vue.mjs +27 -0
- package/dist/components/typography/ElmNumberedList.vue3.mjs +17 -0
- package/dist/components/typography/ElmParagraph.vue.d.ts +5 -2
- package/dist/components/typography/ElmParagraph.vue.mjs +10 -0
- package/dist/components/typography/ElmParagraph.vue2.mjs +27 -0
- package/dist/components/typography/ElmParagraph.vue3.mjs +20 -0
- package/dist/hooks/useElmethisTheme.mjs +43 -0
- package/dist/hooks/useTyping.d.ts +17 -0
- package/dist/hooks/useTyping.mjs +37 -0
- package/dist/index.d.ts +128 -46
- package/dist/index.mjs +147 -0
- package/package.json +38 -29
- package/dist/JavaScript-stKTLCvS.js +0 -22
- package/dist/Rust-PU5XwTn1.js +0 -16
- package/dist/TypeScript-ViBgqhx7.js +0 -22
- package/dist/components/code/ElmPrismHighlighter.vue.d.ts +0 -14
- package/dist/components/icon/languages/TypeScript.vue.d.ts +0 -2
- package/dist/components/inline/ElmInlineCode.vue.d.ts +0 -15
- package/dist/elmethis.js +0 -48
- package/dist/elmethis.umd.cjs +0 -419
- package/dist/index-DvtsYpwQ.js +0 -16274
|
@@ -15,5 +15,5 @@ export interface ElmInlineRubyProps {
|
|
|
15
15
|
*/
|
|
16
16
|
ruby: string;
|
|
17
17
|
}
|
|
18
|
-
declare const _default: import('vue').DefineComponent<ElmInlineRubyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmInlineRubyProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
18
|
+
declare const _default: import('vue').DefineComponent<ElmInlineRubyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmInlineRubyProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
19
19
|
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, createVNode, createElementVNode } from "vue";
|
|
2
|
+
import ElmInlineText from "./ElmInlineText.vue.mjs";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmInlineRuby",
|
|
5
|
+
props: {
|
|
6
|
+
text: {},
|
|
7
|
+
color: {},
|
|
8
|
+
ruby: {}
|
|
9
|
+
},
|
|
10
|
+
setup(__props) {
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock("ruby", null, [
|
|
13
|
+
createVNode(ElmInlineText, {
|
|
14
|
+
text: _ctx.text,
|
|
15
|
+
color: _ctx.color
|
|
16
|
+
}, null, 8, ["text", "color"]),
|
|
17
|
+
createElementVNode("rt", null, [
|
|
18
|
+
createVNode(ElmInlineText, {
|
|
19
|
+
text: _ctx.ruby,
|
|
20
|
+
color: _ctx.color
|
|
21
|
+
}, null, 8, ["text", "color"])
|
|
22
|
+
])
|
|
23
|
+
]);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
_sfc_main as default
|
|
29
|
+
};
|
|
@@ -9,7 +9,7 @@ export interface ElmInlineTextProps {
|
|
|
9
9
|
*
|
|
10
10
|
* e.g.) `'red'`, `'#ff0000'`, `'rgba(255, 0, 0, 0.5)'`
|
|
11
11
|
*/
|
|
12
|
-
color?: Property.
|
|
12
|
+
color?: Property.Color;
|
|
13
13
|
/**
|
|
14
14
|
* Specifies the font size of the text.
|
|
15
15
|
*/
|
|
@@ -30,8 +30,17 @@ export interface ElmInlineTextProps {
|
|
|
30
30
|
* Specifies whether the text should be strikethrough.
|
|
31
31
|
*/
|
|
32
32
|
strikethrough?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Specifies whether the text should be displayed as code.
|
|
35
|
+
*/
|
|
36
|
+
code?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Specifies the background color of the text.
|
|
39
|
+
*/
|
|
40
|
+
backgroundColor?: Property.BackgroundColor;
|
|
33
41
|
}
|
|
34
42
|
declare const _default: import('vue').DefineComponent<ElmInlineTextProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmInlineTextProps> & Readonly<{}>, {
|
|
43
|
+
code: boolean;
|
|
35
44
|
bold: boolean;
|
|
36
45
|
italic: boolean;
|
|
37
46
|
underline: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmInlineText.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmInlineText.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmInlineText = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmInlineText as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineComponent, useCssModule, createBlock, openBlock, resolveDynamicComponent, h } from "vue";
|
|
2
|
+
import { getLuminance } from "polished";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmInlineText",
|
|
5
|
+
props: {
|
|
6
|
+
text: {},
|
|
7
|
+
color: {},
|
|
8
|
+
size: {},
|
|
9
|
+
bold: { type: Boolean, default: false },
|
|
10
|
+
italic: { type: Boolean, default: false },
|
|
11
|
+
underline: { type: Boolean, default: false },
|
|
12
|
+
strikethrough: { type: Boolean, default: false },
|
|
13
|
+
code: { type: Boolean, default: false },
|
|
14
|
+
backgroundColor: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const style = useCssModule();
|
|
19
|
+
const render = () => {
|
|
20
|
+
const backgroundColor = props.backgroundColor != null ? getLuminance(props.backgroundColor) < 0.5 ? "rgba(255, 255, 255, 0.7)" : "rgba(0, 0, 0, 0.7)" : void 0;
|
|
21
|
+
let vnode = h(
|
|
22
|
+
"span",
|
|
23
|
+
{
|
|
24
|
+
class: style.text,
|
|
25
|
+
style: {
|
|
26
|
+
"--color": props.color ?? backgroundColor,
|
|
27
|
+
"--font-size": props.size,
|
|
28
|
+
"--background-color": props.backgroundColor
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
props.text
|
|
32
|
+
);
|
|
33
|
+
if (props.strikethrough) {
|
|
34
|
+
vnode = h("del", {}, vnode);
|
|
35
|
+
}
|
|
36
|
+
if (props.italic) {
|
|
37
|
+
vnode = h("em", {}, vnode);
|
|
38
|
+
}
|
|
39
|
+
if (props.underline) {
|
|
40
|
+
vnode = h("ins", {}, vnode);
|
|
41
|
+
}
|
|
42
|
+
if (props.bold) {
|
|
43
|
+
vnode = h("strong", {}, vnode);
|
|
44
|
+
}
|
|
45
|
+
if (props.code) {
|
|
46
|
+
vnode = h("code", { class: style.code }, vnode);
|
|
47
|
+
}
|
|
48
|
+
return vnode;
|
|
49
|
+
};
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
return openBlock(), createBlock(resolveDynamicComponent(render()));
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
_sfc_main as default
|
|
57
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode('._text_8qsji_1{padding:0;margin:0;color:#000000b3;color:var(--color, rgba(0, 0, 0, .7));font-size:inherit;font-size:var(--font-size, inherit);line-height:1rem;line-height:var(--font-size, 1rem);background-color:var(--background-color)}._text_8qsji_1::-moz-selection{color:#ffffffb3;background-color:#000000b3;background-color:var(--color, rgba(0, 0, 0, .7))}._text_8qsji_1::selection{color:#ffffffb3;background-color:#000000b3;background-color:var(--color, rgba(0, 0, 0, .7))}[data-theme=dark] ._text_8qsji_1{color:#ffffffb3;color:var(--color, rgba(255, 255, 255, .7))}[data-theme=dark] ._text_8qsji_1::-moz-selection{color:#000000b3;background-color:#ffffffb3;background-color:var(--color, rgba(255, 255, 255, .7))}[data-theme=dark] ._text_8qsji_1::selection{color:#000000b3;background-color:#ffffffb3;background-color:var(--color, rgba(255, 255, 255, .7))}._code_8qsji_21{margin-inline:.25rem;padding:2px .5em;font-size:calc(1rem - 2px);border-radius:.125rem;background-color:#00000013;font-family:"Source Code Pro" monospace}'));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const text = "_text_8qsji_1";
|
|
14
|
+
const code = "_code_8qsji_21";
|
|
15
|
+
const style0 = {
|
|
16
|
+
text,
|
|
17
|
+
code
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
code,
|
|
21
|
+
style0 as default,
|
|
22
|
+
text
|
|
23
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmTypingAnimation } from './ElmTypingAnimation.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmTypingAnimation>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
export interface ElmTypingAnimationProps {
|
|
3
|
+
/**
|
|
4
|
+
* The texts to display.
|
|
5
|
+
*/
|
|
6
|
+
texts: string[];
|
|
7
|
+
/**
|
|
8
|
+
* The interval between each text.
|
|
9
|
+
*/
|
|
10
|
+
interval?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The font size of the text.
|
|
13
|
+
*/
|
|
14
|
+
fontSize: Property.FontSize<string | number>;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: import('vue').DefineComponent<ElmTypingAnimationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTypingAnimationProps> & Readonly<{}>, {
|
|
17
|
+
texts: string[];
|
|
18
|
+
interval: number;
|
|
19
|
+
fontSize: Property.FontSize<string | number>;
|
|
20
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmChildContainer } from './ElmChildContainer.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmChildContainer>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface ElmChildContainerProps {
|
|
2
|
+
icon: string;
|
|
3
|
+
text: string;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: HTMLDivElement;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmChildContainerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmChildContainerProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmFieldAttribute } from './ElmFieldAttribute.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmFieldAttribute>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface ElmFieldAttributeProps {
|
|
2
|
+
icon: string;
|
|
3
|
+
name: string;
|
|
4
|
+
content: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<ElmFieldAttributeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmFieldAttributeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmFieldType } from './ElmFieldType.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmFieldType>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Maybe: Story;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSONSchema7TypeName } from 'json-schema';
|
|
2
|
+
export interface ElmFieldTypeProps {
|
|
3
|
+
type: JSONSchema7TypeName;
|
|
4
|
+
name?: string;
|
|
5
|
+
nullable?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('vue').DefineComponent<ElmFieldTypeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmFieldTypeProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmJsonSchema } from './ElmJsonSchema.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmJsonSchema>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Union: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSONSchema7Definition } from 'json-schema';
|
|
2
|
+
export interface ElmJsonSchemaProps {
|
|
3
|
+
name?: string;
|
|
4
|
+
schema: JSONSchema7Definition;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: import('vue').DefineComponent<ElmJsonSchemaProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmJsonSchemaProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/vue3';
|
|
2
|
+
import { default as ElmBlockImage } from './ElmBlockImage.vue';
|
|
3
|
+
declare const meta: Meta<typeof ElmBlockImage>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Svg: Story;
|
|
8
|
+
export declare const Modal: Story;
|
|
9
|
+
export declare const Invalid: Story;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElmImageProps } from './ElmImage.vue';
|
|
2
|
+
export type ElmBlockImageProps = {
|
|
3
|
+
rounded?: boolean;
|
|
4
|
+
shadow?: boolean;
|
|
5
|
+
} & ElmImageProps;
|
|
6
|
+
declare const _default: import('vue').DefineComponent<ElmBlockImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmBlockImageProps> & Readonly<{}>, {
|
|
7
|
+
rounded: boolean;
|
|
8
|
+
shadow: boolean;
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmBlockImage.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmBlockImage.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmBlockImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmBlockImage as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, createElementVNode, normalizeStyle, createVNode, normalizeProps, guardReactiveProps } from "vue";
|
|
2
|
+
import ElmImage from "./ElmImage.vue.mjs";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmBlockImage",
|
|
5
|
+
props: {
|
|
6
|
+
rounded: { type: Boolean, default: true },
|
|
7
|
+
shadow: { type: Boolean, default: true },
|
|
8
|
+
src: {},
|
|
9
|
+
alt: {},
|
|
10
|
+
enableModal: { type: Boolean },
|
|
11
|
+
margin: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
return openBlock(), createElementBlock("div", {
|
|
17
|
+
class: normalizeClass(_ctx.$style.container)
|
|
18
|
+
}, [
|
|
19
|
+
createElementVNode("div", {
|
|
20
|
+
style: normalizeStyle({
|
|
21
|
+
boxShadow: _ctx.shadow ? "0 0 0.125rem #b3b3b3" : void 0,
|
|
22
|
+
..._ctx.rounded ? { borderRadius: "0.25rem", overflow: "hidden" } : {}
|
|
23
|
+
})
|
|
24
|
+
}, [
|
|
25
|
+
createVNode(ElmImage, normalizeProps(guardReactiveProps(props)), null, 16)
|
|
26
|
+
], 4)
|
|
27
|
+
], 2);
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
_sfc_main as default
|
|
33
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._container_ppumw_1{width:100%;display:flex;justify-content:center}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const container = "_container_ppumw_1";
|
|
14
|
+
const style0 = {
|
|
15
|
+
container
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
container,
|
|
19
|
+
style0 as default
|
|
20
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
1
2
|
export interface ElmFileProps {
|
|
2
3
|
/**
|
|
3
4
|
* The name of the file.
|
|
@@ -11,6 +12,10 @@ export interface ElmFileProps {
|
|
|
11
12
|
* The size of the file in bytes.
|
|
12
13
|
*/
|
|
13
14
|
filesize?: string;
|
|
15
|
+
/**
|
|
16
|
+
* The margin of the file.
|
|
17
|
+
*/
|
|
18
|
+
margin?: Property.MarginBlock;
|
|
14
19
|
}
|
|
15
|
-
declare const _default: import('vue').DefineComponent<ElmFileProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmFileProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
20
|
+
declare const _default: import('vue').DefineComponent<ElmFileProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmFileProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
16
21
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import _sfc_main from "./ElmFile.vue2.mjs";
|
|
2
|
+
import style0 from "./ElmFile.vue3.mjs";
|
|
3
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
+
const cssModules = {
|
|
5
|
+
"$style": style0
|
|
6
|
+
};
|
|
7
|
+
const ElmFile = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
8
|
+
export {
|
|
9
|
+
ElmFile as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeStyle, normalizeClass, createElementVNode, createVNode, unref, createBlock, createCommentVNode } from "vue";
|
|
2
|
+
import { Icon } from "@iconify/vue";
|
|
3
|
+
import ElmInlineText from "../inline/ElmInlineText.vue.mjs";
|
|
4
|
+
const _hoisted_1 = { style: { opacity: 0.6 } };
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "ElmFile",
|
|
7
|
+
props: {
|
|
8
|
+
name: {},
|
|
9
|
+
src: {},
|
|
10
|
+
filesize: {},
|
|
11
|
+
margin: {}
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
function getLastPathSegmentWithoutQueryOrHash(urlString) {
|
|
15
|
+
const cleanedUrl = urlString.split(/[?#]/)[0];
|
|
16
|
+
const pathSegments = cleanedUrl.split("/").filter(Boolean);
|
|
17
|
+
return pathSegments.length > 0 ? pathSegments[pathSegments.length - 1] : null;
|
|
18
|
+
}
|
|
19
|
+
async function downloadFile(url, filename) {
|
|
20
|
+
let link;
|
|
21
|
+
try {
|
|
22
|
+
const response = await fetch(url);
|
|
23
|
+
if (!response.ok) throw new Error("Failed to download file");
|
|
24
|
+
const blob = await response.blob();
|
|
25
|
+
link = document.createElement("a");
|
|
26
|
+
link.href = URL.createObjectURL(blob);
|
|
27
|
+
link.download = filename;
|
|
28
|
+
link.click();
|
|
29
|
+
} catch (error) {
|
|
30
|
+
console.error("ERROR:", error);
|
|
31
|
+
} finally {
|
|
32
|
+
if (link) URL.revokeObjectURL(link.href);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return openBlock(), createElementBlock("div", {
|
|
37
|
+
class: normalizeClass(_ctx.$style.file),
|
|
38
|
+
style: normalizeStyle({ "--margin-block": _ctx.margin })
|
|
39
|
+
}, [
|
|
40
|
+
createElementVNode("div", {
|
|
41
|
+
class: normalizeClass(_ctx.$style["left-container"])
|
|
42
|
+
}, [
|
|
43
|
+
createVNode(unref(Icon), {
|
|
44
|
+
icon: "mdi:file-outline",
|
|
45
|
+
class: normalizeClass(_ctx.$style.icon)
|
|
46
|
+
}, null, 8, ["class"]),
|
|
47
|
+
createVNode(ElmInlineText, {
|
|
48
|
+
text: _ctx.name ?? getLastPathSegmentWithoutQueryOrHash(_ctx.src) ?? "unknown file"
|
|
49
|
+
}, null, 8, ["text"])
|
|
50
|
+
], 2),
|
|
51
|
+
createElementVNode("div", {
|
|
52
|
+
class: normalizeClass(_ctx.$style["right-container"])
|
|
53
|
+
}, [
|
|
54
|
+
createElementVNode("span", _hoisted_1, [
|
|
55
|
+
_ctx.filesize ? (openBlock(), createBlock(ElmInlineText, {
|
|
56
|
+
key: 0,
|
|
57
|
+
text: _ctx.filesize
|
|
58
|
+
}, null, 8, ["text"])) : createCommentVNode("", true)
|
|
59
|
+
]),
|
|
60
|
+
createVNode(unref(Icon), {
|
|
61
|
+
icon: "mdi:download",
|
|
62
|
+
class: normalizeClass(_ctx.$style["download-icon"]),
|
|
63
|
+
onClick: _cache[0] || (_cache[0] = () => {
|
|
64
|
+
downloadFile(
|
|
65
|
+
_ctx.src,
|
|
66
|
+
_ctx.name ?? getLastPathSegmentWithoutQueryOrHash(_ctx.src) ?? "unknown file"
|
|
67
|
+
);
|
|
68
|
+
})
|
|
69
|
+
}, null, 8, ["class"])
|
|
70
|
+
], 2)
|
|
71
|
+
], 6);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
_sfc_main as default
|
|
77
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._file_ox390_1{margin-block:var(--margin-block);box-sizing:border-box;width:100%;padding:1rem;box-shadow:0 0 .25rem #0003;display:flex;justify-content:space-between;align-items:center;background-color:#fff3}[data-theme=dark] ._file_ox390_1{background-color:#0003}._file_ox390_1 ._left-container_ox390_15{display:flex;justify-content:flex-start;align-items:center;gap:.75rem}._file_ox390_1 ._left-container_ox390_15 ._icon_ox390_21{width:20px;height:20px;transition:color .2s;color:#000c}[data-theme=dark] ._file_ox390_1 ._left-container_ox390_15 ._icon_ox390_21{color:#fffc}._file_ox390_1 ._right-container_ox390_30{display:flex;justify-content:flex-end;align-items:center;gap:.75rem}._file_ox390_1 ._right-container_ox390_30 ._download-icon_ox390_36{padding:.125rem;width:20px;height:20px;cursor:pointer;transition:color .2s,background-color .2s;color:#000c}[data-theme=dark] ._file_ox390_1 ._right-container_ox390_30 ._download-icon_ox390_36{color:#fffc}._file_ox390_1 ._right-container_ox390_30 ._download-icon_ox390_36:hover{background-color:#0000001a}[data-theme=dark] ._file_ox390_1 ._right-container_ox390_30 ._download-icon_ox390_36:hover{background-color:#ffffff1a}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
const file = "_file_ox390_1";
|
|
14
|
+
const icon = "_icon_ox390_21";
|
|
15
|
+
const style0 = {
|
|
16
|
+
file,
|
|
17
|
+
"left-container": "_left-container_ox390_15",
|
|
18
|
+
icon,
|
|
19
|
+
"right-container": "_right-container_ox390_30",
|
|
20
|
+
"download-icon": "_download-icon_ox390_36"
|
|
21
|
+
};
|
|
22
|
+
export {
|
|
23
|
+
style0 as default,
|
|
24
|
+
file,
|
|
25
|
+
icon
|
|
26
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
1
2
|
export interface ElmImageProps {
|
|
2
3
|
/**
|
|
3
4
|
* Image source URL
|
|
@@ -11,6 +12,10 @@ export interface ElmImageProps {
|
|
|
11
12
|
* Enable modal on image click. Default: `false`
|
|
12
13
|
*/
|
|
13
14
|
enableModal?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The margin of the image.
|
|
17
|
+
*/
|
|
18
|
+
margin?: Property.MarginBlock;
|
|
14
19
|
}
|
|
15
20
|
declare const _default: import('vue').DefineComponent<ElmImageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmImageProps> & Readonly<{}>, {
|
|
16
21
|
enableModal: boolean;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(function() {
|
|
2
|
+
"use strict";
|
|
3
|
+
try {
|
|
4
|
+
if (typeof document != "undefined") {
|
|
5
|
+
var elementStyle = document.createElement("style");
|
|
6
|
+
elementStyle.appendChild(document.createTextNode(".v-enter-to[data-v-aae1a3f7],.v-leave-from[data-v-aae1a3f7]{opacity:1}.v-enter-active[data-v-aae1a3f7],.v-leave-active[data-v-aae1a3f7]{transition:opacity .3s}.v-enter-from[data-v-aae1a3f7],.v-leave-to[data-v-aae1a3f7]{opacity:0}"));
|
|
7
|
+
document.head.appendChild(elementStyle);
|
|
8
|
+
}
|
|
9
|
+
} catch (e) {
|
|
10
|
+
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
13
|
+
import _sfc_main from "./ElmImage.vue2.mjs";
|
|
14
|
+
import style0 from "./ElmImage.vue3.mjs";
|
|
15
|
+
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
16
|
+
const cssModules = {
|
|
17
|
+
"$style": style0
|
|
18
|
+
};
|
|
19
|
+
const ElmImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules], ["__scopeId", "data-v-aae1a3f7"]]);
|
|
20
|
+
export {
|
|
21
|
+
ElmImage as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineComponent, ref, createElementBlock, openBlock, Fragment, createVNode, Transition, withCtx, unref, normalizeClass, normalizeStyle, createElementVNode, createCommentVNode } from "vue";
|
|
2
|
+
import ElmRectangleWave from "../fallback/ElmRectangleWave.vue.mjs";
|
|
3
|
+
import ElmDotLoadingIcon from "../icon/ElmDotLoadingIcon.vue.mjs";
|
|
4
|
+
import { useImage, onKeyStroke } from "@vueuse/core";
|
|
5
|
+
import ElmInlineText from "../inline/ElmInlineText.vue.mjs";
|
|
6
|
+
const _hoisted_1 = ["src", "alt"];
|
|
7
|
+
const _hoisted_2 = ["src", "alt"];
|
|
8
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
__name: "ElmImage",
|
|
10
|
+
props: {
|
|
11
|
+
src: {},
|
|
12
|
+
alt: {},
|
|
13
|
+
enableModal: { type: Boolean, default: false },
|
|
14
|
+
margin: {}
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const { isLoading, error } = useImage({ src: props.src });
|
|
19
|
+
const isModalOpen = ref(false);
|
|
20
|
+
onKeyStroke("Escape", (e) => {
|
|
21
|
+
e.preventDefault();
|
|
22
|
+
isModalOpen.value = false;
|
|
23
|
+
});
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
26
|
+
createVNode(Transition, { mode: "out-in" }, {
|
|
27
|
+
default: withCtx(() => [
|
|
28
|
+
unref(error) ? (openBlock(), createElementBlock("div", {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: normalizeClass(_ctx.$style.error)
|
|
31
|
+
}, [
|
|
32
|
+
createVNode(ElmInlineText, {
|
|
33
|
+
text: "Error loading image",
|
|
34
|
+
color: "#c56565",
|
|
35
|
+
size: "1.5rem"
|
|
36
|
+
})
|
|
37
|
+
], 2)) : unref(isLoading) ? (openBlock(), createElementBlock("div", {
|
|
38
|
+
key: 1,
|
|
39
|
+
class: normalizeClass(_ctx.$style.fallback),
|
|
40
|
+
style: normalizeStyle({ "--margin-block": _ctx.margin })
|
|
41
|
+
}, [
|
|
42
|
+
createVNode(ElmRectangleWave),
|
|
43
|
+
createElementVNode("div", null, [
|
|
44
|
+
createVNode(ElmDotLoadingIcon)
|
|
45
|
+
])
|
|
46
|
+
], 6)) : (openBlock(), createElementBlock("img", {
|
|
47
|
+
key: 2,
|
|
48
|
+
class: normalizeClass(_ctx.$style.image),
|
|
49
|
+
src: _ctx.src,
|
|
50
|
+
alt: _ctx.alt,
|
|
51
|
+
onClick: _cache[0] || (_cache[0] = () => {
|
|
52
|
+
if (_ctx.enableModal) {
|
|
53
|
+
isModalOpen.value = true;
|
|
54
|
+
}
|
|
55
|
+
}),
|
|
56
|
+
style: normalizeStyle({
|
|
57
|
+
"--height": unref(isLoading) ? "0" : "auto",
|
|
58
|
+
"--opacity": unref(isLoading) ? 0 : 1,
|
|
59
|
+
"--cursor": _ctx.enableModal ? "zoom-in" : "inherit",
|
|
60
|
+
"--margin-block": _ctx.margin,
|
|
61
|
+
display: unref(isLoading) ? "none" : "block"
|
|
62
|
+
})
|
|
63
|
+
}, null, 14, _hoisted_1))
|
|
64
|
+
]),
|
|
65
|
+
_: 1
|
|
66
|
+
}),
|
|
67
|
+
createVNode(Transition, null, {
|
|
68
|
+
default: withCtx(() => [
|
|
69
|
+
isModalOpen.value ? (openBlock(), createElementBlock("div", {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: normalizeClass(_ctx.$style.modal)
|
|
72
|
+
}, [
|
|
73
|
+
createElementVNode("img", {
|
|
74
|
+
class: normalizeClass(_ctx.$style["modal-image"]),
|
|
75
|
+
src: _ctx.src,
|
|
76
|
+
alt: _ctx.alt,
|
|
77
|
+
onClick: _cache[1] || (_cache[1] = () => {
|
|
78
|
+
isModalOpen.value = false;
|
|
79
|
+
})
|
|
80
|
+
}, null, 10, _hoisted_2)
|
|
81
|
+
], 2)) : createCommentVNode("", true)
|
|
82
|
+
]),
|
|
83
|
+
_: 1
|
|
84
|
+
})
|
|
85
|
+
], 64);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
export {
|
|
90
|
+
_sfc_main as default
|
|
91
|
+
};
|