@elmethis/core 1.0.0-alpha.16 → 1.0.0-alpha.161
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/badge/ElmBadge.css +11 -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 +14 -0
- package/dist/components/badge/ElmTag.css +29 -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 +14 -0
- package/dist/components/code/ElmCodeBlock.css +58 -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 +86 -0
- package/dist/components/code/ElmCodeBlock.vue3.mjs +18 -0
- package/dist/components/code/ElmKatex.css +28 -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 +62 -0
- package/dist/components/code/ElmKatex.vue3.mjs +8 -0
- package/dist/components/code/ElmShikiHighlighter.css +4 -0
- package/dist/components/code/{ElmPrismHighlighter.stories.d.ts → ElmShikiHighlighter.stories.d.ts} +2 -3
- package/dist/components/code/{ElmPrismHighlighter.vue.d.ts → ElmShikiHighlighter.vue.d.ts} +3 -3
- package/dist/components/code/ElmShikiHighlighter.vue.mjs +11 -0
- package/dist/components/code/ElmShikiHighlighter.vue2.mjs +47 -0
- package/dist/components/code/ElmShikiHighlighter.vue3.mjs +8 -0
- package/dist/components/code/ElmShikiHighlighter2.css +23 -0
- package/dist/components/code/shikiInstance.d.ts +2 -0
- package/dist/components/code/shikiInstance.mjs +76 -0
- package/dist/components/containments/ElmColumn.css +3 -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 +8 -0
- package/dist/components/containments/ElmColumnList.css +5 -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 +6 -0
- package/dist/components/containments/ElmDesktopWindow.css +27 -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 +14 -0
- package/dist/components/containments/ElmModal.css +12 -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 +10 -0
- package/dist/components/containments/ElmModal.vue2.mjs +44 -0
- package/dist/components/containments/ElmModal.vue3.mjs +11 -0
- package/dist/components/containments/ElmModal2.css +33 -0
- package/dist/components/containments/ElmParallax.css +14 -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 +8 -0
- package/dist/components/containments/ElmSnackbar.css +56 -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 +14 -0
- package/dist/components/containments/ElmSnackbarContainer.css +9 -0
- package/dist/components/containments/ElmSnackbarContainer.vue.d.ts +10 -0
- package/dist/components/containments/ElmSnackbarContainer.vue.mjs +10 -0
- package/dist/components/containments/ElmSnackbarContainer.vue2.mjs +33 -0
- package/dist/components/containments/ElmSnackbarContainer.vue3.mjs +7 -0
- package/dist/components/containments/ElmSnackbarContainer2.css +20 -0
- package/dist/components/containments/ElmToggle.css +13 -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 +10 -0
- package/dist/components/containments/ElmToggle.vue2.mjs +71 -0
- package/dist/components/containments/ElmToggle.vue3.mjs +17 -0
- package/dist/components/containments/ElmToggle2.css +43 -0
- package/dist/components/containments/ElmTooltip.css +14 -0
- package/dist/components/containments/ElmTooltip.vue.d.ts +5 -2
- package/dist/components/containments/ElmTooltip.vue.mjs +10 -0
- package/dist/components/containments/ElmTooltip.vue2.mjs +49 -0
- package/dist/components/containments/ElmTooltip.vue3.mjs +8 -0
- package/dist/components/containments/ElmTooltip2.css +15 -0
- package/dist/components/containments/useSnackbarState.d.ts +28 -0
- package/dist/components/data/ElmMultiProgress.css +23 -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 +11 -0
- package/dist/components/data/ElmProgress.css +84 -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 +20 -0
- package/dist/components/data/ElmStatusMessage.css +12 -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 +10 -0
- package/dist/components/data/ElmStatusMessage.vue2.mjs +75 -0
- package/dist/components/data/ElmStatusMessage.vue3.mjs +11 -0
- package/dist/components/data/ElmStatusMessage2.css +9 -0
- package/dist/components/fallback/ElmBlockFallback.css +7 -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 +6 -0
- package/dist/components/fallback/ElmRectangleWave.css +33 -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 +9 -0
- package/dist/components/fallback/ElmSpinner.css +25 -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 +12 -0
- package/dist/components/form/ElmButton.css +12 -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 +10 -0
- package/dist/components/form/ElmButton.vue2.mjs +57 -0
- package/dist/components/form/ElmButton.vue3.mjs +20 -0
- package/dist/components/form/ElmButton2.css +65 -0
- package/dist/components/form/ElmCheckbox.css +67 -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 +22 -0
- package/dist/components/form/ElmSwitch.css +42 -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 +16 -0
- package/dist/components/form/ElmTextField.css +163 -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 +34 -0
- package/dist/components/form/ElmTotp.css +60 -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 +22 -0
- package/dist/components/headings/ElmFragmentIdentifier.css +20 -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 +54 -0
- package/dist/components/headings/ElmFragmentIdentifier.vue3.mjs +11 -0
- package/dist/components/headings/ElmHeading1.css +56 -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 +8 -0
- package/dist/components/headings/ElmHeading2.css +72 -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 +11 -0
- package/dist/components/headings/ElmHeading3.css +42 -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 +8 -0
- package/dist/components/headings/ElmHeading4.css +25 -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 +8 -0
- package/dist/components/headings/ElmHeading5.css +25 -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 +8 -0
- package/dist/components/headings/ElmHeading6.css +25 -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 +8 -0
- package/dist/components/icon/ElmArrowIcon.css +44 -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 +17 -0
- package/dist/components/icon/ElmBookmarkIcon.css +40 -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 +15 -0
- package/dist/components/icon/ElmCubeIcon.css +38 -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 +12 -0
- package/dist/components/icon/ElmDotLoadingIcon.css +41 -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 +14 -0
- package/dist/components/icon/ElmLanguageIcon.css +12 -0
- package/dist/components/icon/ElmLanguageIcon.vue.d.ts +1 -1
- package/dist/components/icon/ElmLanguageIcon.vue.mjs +10 -0
- package/dist/components/icon/ElmLanguageIcon.vue2.mjs +148 -0
- package/dist/components/icon/ElmLanguageIcon.vue3.mjs +11 -0
- package/dist/components/icon/ElmLanguageIcon2.css +9 -0
- package/dist/components/icon/ElmLoginIcon.css +16 -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 +8 -0
- package/dist/components/icon/ElmToggleTheme.css +18 -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 +8 -0
- package/dist/components/icon/languages/Bash.css +6 -0
- package/dist/components/icon/languages/Bash.vue.d.ts +1 -1
- package/dist/{Bash-KV1blS97.js → components/icon/languages/Bash.vue.mjs} +20 -15
- package/dist/components/icon/languages/Bash.vue2.mjs +8 -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.css +32 -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 +8 -0
- package/dist/components/inline/ElmInlineLink.css +36 -0
- package/dist/components/inline/ElmInlineLink.vue.d.ts +1 -1
- package/dist/components/inline/ElmInlineLink.vue.mjs +10 -0
- package/dist/components/inline/ElmInlineLink.vue2.mjs +53 -0
- package/dist/components/inline/ElmInlineLink.vue3.mjs +11 -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.css +41 -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 +11 -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/ElmFile.css +52 -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 +14 -0
- package/dist/components/media/ElmImage.css +12 -0
- package/dist/components/media/ElmImage.stories.d.ts +1 -0
- package/dist/components/media/ElmImage.vue.d.ts +5 -0
- package/dist/components/media/ElmImage.vue.mjs +10 -0
- package/dist/components/media/ElmImage.vue2.mjs +91 -0
- package/dist/components/media/ElmImage.vue3.mjs +18 -0
- package/dist/components/media/ElmImage2.css +51 -0
- package/dist/components/navigation/ElmBookmark.css +104 -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 +32 -0
- package/dist/components/navigation/ElmBreadcrumb.css +46 -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 +18 -0
- package/dist/components/navigation/ElmPagetop.css +105 -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 +18 -0
- package/dist/components/navigation/ElmTableOfContents.css +33 -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 +14 -0
- package/dist/components/others/ElmColorSample.css +12 -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 +10 -0
- package/dist/components/others/ElmColorSample.vue2.mjs +72 -0
- package/dist/components/others/ElmColorSample.vue3.mjs +9 -0
- package/dist/components/others/ElmColorSample2.css +34 -0
- package/dist/components/others/ElmColorTable.css +26 -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 +10 -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 +39 -8
- package/dist/components/renderer/ElmJsonRenderer.vue.mjs +98 -0
- package/dist/components/renderer/ElmJsonRenderer.vue2.mjs +4 -0
- package/dist/components/renderer/ElmJsonRendererAsync.vue.d.ts +3 -0
- package/dist/components/renderer/ElmJsonRendererAsync.vue.mjs +24 -0
- package/dist/components/renderer/ElmJsonRendererAsync.vue2.mjs +4 -0
- package/dist/components/table/ElmTable.css +6 -0
- package/dist/components/table/ElmTable.vue.d.ts +8 -2
- package/dist/components/table/ElmTable.vue.mjs +6 -0
- package/dist/components/table/ElmTable.vue2.mjs +22 -0
- package/dist/components/table/ElmTableBody.css +48 -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 +5 -0
- package/dist/components/table/ElmTableCell.css +16 -0
- package/dist/components/table/ElmTableCell.vue.d.ts +2 -1
- package/dist/components/table/ElmTableCell.vue.mjs +6 -0
- package/dist/components/table/ElmTableCell.vue2.mjs +22 -0
- package/dist/components/table/ElmTableHeader.css +40 -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 +5 -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.css +12 -0
- 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 +8 -0
- package/dist/components/typography/ElmBulletedList.css +21 -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 +5 -0
- package/dist/components/typography/ElmCallout.css +33 -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 +14 -0
- package/dist/components/typography/ElmDivider.css +40 -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 +8 -0
- package/dist/components/typography/ElmListItem.css +3 -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 +8 -0
- package/dist/components/typography/ElmNumberedList.css +26 -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 +5 -0
- package/dist/components/typography/ElmParagraph.css +25 -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 +8 -0
- package/dist/hooks/useElmethisTheme.d.ts +4 -0
- package/dist/hooks/useElmethisTheme.mjs +43 -0
- package/dist/hooks/useTyping.d.ts +17 -0
- package/dist/index.d.ts +125 -45
- package/dist/index.mjs +132 -0
- package/dist/node_modules/.pnpm/katex@0.16.21/node_modules/katex/dist/katex.min.css +1 -0
- package/package.json +38 -30
- package/dist/JavaScript-u46IG0c4.js +0 -22
- package/dist/Rust-Dg96oGSm.js +0 -16
- package/dist/TypeScript-SVZmAXrW.js +0 -22
- 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 -47
- package/dist/elmethis.umd.cjs +0 -419
- package/dist/index-KH8UFSIm.js +0 -16258
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElmInlineTextProps } from '../inline/ElmInlineText.vue';
|
|
2
|
-
import { ElmInlineCodeProps } from '../inline/ElmInlineCode.vue';
|
|
3
2
|
import { ElmInlineLinkProps } from '../inline/ElmInlineLink.vue';
|
|
3
|
+
import { ElmInlineIconProps } from '../inline/ElmInlineIcon.vue';
|
|
4
4
|
import { ElmCalloutProps } from '../typography/ElmCallout.vue';
|
|
5
5
|
import { ElmBulletedListProps } from '../typography/ElmBulletedList.vue';
|
|
6
6
|
import { ElmNumberedListProps } from '../typography/ElmNumberedList.vue';
|
|
@@ -28,134 +28,165 @@ import { ElmCheckboxProps } from '../form/ElmCheckbox.vue';
|
|
|
28
28
|
import { ElmFileProps } from '../media/ElmFile.vue';
|
|
29
29
|
import { ElmColumnProps } from '../containments/ElmColumn.vue';
|
|
30
30
|
import { ElmColumnListProps } from '../containments/ElmColumnList.vue';
|
|
31
|
-
type ComponentType = 'ElmInlineText' | '
|
|
32
|
-
type ComponentProps = ElmInlineTextProps |
|
|
31
|
+
type ComponentType = 'ElmInlineText' | 'ElmInlineLink' | 'ElmInlineIcon' | 'ElmCallout' | 'ElmBulletedList' | 'ElmNumberedList' | 'ElmListItem' | 'ElmBlockQuote' | 'ElmDivider' | 'ElmHeading1' | 'ElmHeading2' | 'ElmHeading3' | 'ElmHeading4' | 'ElmHeading5' | 'ElmHeading6' | 'ElmCodeBlock' | 'ElmParagraph' | 'ElmTable' | 'ElmTableHeader' | 'ElmTableBody' | 'ElmTableRow' | 'ElmTableCell' | 'ElmKatex' | 'ElmImage' | 'ElmBookmark' | 'ElmToggle' | 'ElmCheckbox' | 'ElmFile' | 'ElmColumn' | 'ElmColumnList';
|
|
32
|
+
type ComponentProps = ElmInlineTextProps | ElmInlineLinkProps | ElmInlineIconProps | ElmCalloutProps | ElmBulletedListProps | ElmNumberedListProps | ElmListItemProps | ElmBlockQuoteProps | ElmDividerProps | ElmHeading1Props | ElmHeading2Props | ElmHeading3Props | ElmHeading4Props | ElmHeading5Props | ElmHeading6Props | ElmCodeBlockProps | ElmParagraphProps | ElmTableProps | ElmTableHeaderProps | ElmTableBodyProps | ElmTableRowProps | ElmTableCellProps | ElmKatexProps | ElmImageProps | ElmBookmarkProps | ElmToggleProps | ElmCheckboxProps | ElmFileProps | ElmColumnProps | ElmColumnListProps;
|
|
33
33
|
interface JsonComponentBase {
|
|
34
34
|
type: ComponentType;
|
|
35
|
+
id?: string;
|
|
35
36
|
props?: ComponentProps;
|
|
36
37
|
children?: JsonComponent[];
|
|
37
38
|
}
|
|
38
39
|
interface ElmInlineTextJsonComponent extends JsonComponentBase {
|
|
39
40
|
type: 'ElmInlineText';
|
|
41
|
+
id?: string;
|
|
40
42
|
props?: ElmInlineTextProps;
|
|
41
43
|
}
|
|
42
|
-
interface ElmInlineCodeJsonComponent extends JsonComponentBase {
|
|
43
|
-
type: 'ElmInlineCode';
|
|
44
|
-
props?: ElmInlineCodeProps;
|
|
45
|
-
}
|
|
46
44
|
interface ElmInlineLinkJsonComponent extends JsonComponentBase {
|
|
47
45
|
type: 'ElmInlineLink';
|
|
46
|
+
id?: string;
|
|
48
47
|
props?: ElmInlineLinkProps;
|
|
49
48
|
}
|
|
49
|
+
interface ElmInlineIconJsonComponent extends JsonComponentBase {
|
|
50
|
+
type: 'ElmInlineIcon';
|
|
51
|
+
id?: string;
|
|
52
|
+
props?: ElmInlineIconProps;
|
|
53
|
+
}
|
|
50
54
|
interface ElmCalloutJsonComponent extends JsonComponentBase {
|
|
51
55
|
type: 'ElmCallout';
|
|
56
|
+
id?: string;
|
|
52
57
|
props?: ElmCalloutProps;
|
|
53
58
|
}
|
|
54
59
|
interface ElmBulletedListJsonComponent extends JsonComponentBase {
|
|
55
60
|
type: 'ElmBulletedList';
|
|
61
|
+
id?: string;
|
|
56
62
|
props?: ElmBulletedListProps;
|
|
57
63
|
}
|
|
58
64
|
interface ElmNumberedListJsonComponent extends JsonComponentBase {
|
|
59
65
|
type: 'ElmNumberedList';
|
|
66
|
+
id?: string;
|
|
60
67
|
props?: ElmNumberedListProps;
|
|
61
68
|
}
|
|
62
69
|
interface ElmListItemJsonComponent extends JsonComponentBase {
|
|
63
70
|
type: 'ElmListItem';
|
|
71
|
+
id?: string;
|
|
64
72
|
props?: ElmListItemProps;
|
|
65
73
|
}
|
|
66
74
|
interface ElmBlockQuoteJsonComponent extends JsonComponentBase {
|
|
67
75
|
type: 'ElmBlockQuote';
|
|
76
|
+
id?: string;
|
|
68
77
|
props?: ElmBlockQuoteProps;
|
|
69
78
|
}
|
|
70
79
|
interface ElmDividerJsonComponent extends JsonComponentBase {
|
|
71
80
|
type: 'ElmDivider';
|
|
81
|
+
id?: string;
|
|
72
82
|
props?: ElmDividerProps;
|
|
73
83
|
}
|
|
74
84
|
interface ElmHeading1JsonComponent extends JsonComponentBase {
|
|
75
85
|
type: 'ElmHeading1';
|
|
86
|
+
id?: string;
|
|
76
87
|
props?: ElmHeading1Props;
|
|
77
88
|
}
|
|
78
89
|
interface ElmHeading2JsonComponent extends JsonComponentBase {
|
|
79
90
|
type: 'ElmHeading2';
|
|
91
|
+
id?: string;
|
|
80
92
|
props?: ElmHeading2Props;
|
|
81
93
|
}
|
|
82
94
|
interface ElmHeading3JsonComponent extends JsonComponentBase {
|
|
83
95
|
type: 'ElmHeading3';
|
|
96
|
+
id?: string;
|
|
84
97
|
props?: ElmHeading3Props;
|
|
85
98
|
}
|
|
86
99
|
interface ElmHeading4JsonComponent extends JsonComponentBase {
|
|
87
100
|
type: 'ElmHeading4';
|
|
101
|
+
id?: string;
|
|
88
102
|
props?: ElmHeading4Props;
|
|
89
103
|
}
|
|
90
104
|
interface ElmHeading5JsonComponent extends JsonComponentBase {
|
|
91
105
|
type: 'ElmHeading5';
|
|
106
|
+
id?: string;
|
|
92
107
|
props?: ElmHeading5Props;
|
|
93
108
|
}
|
|
94
109
|
interface ElmHeading6JsonComponent extends JsonComponentBase {
|
|
95
110
|
type: 'ElmHeading6';
|
|
111
|
+
id?: string;
|
|
96
112
|
props?: ElmHeading6Props;
|
|
97
113
|
}
|
|
98
114
|
interface ElmCodeBlockJsonComponent extends JsonComponentBase {
|
|
99
115
|
type: 'ElmCodeBlock';
|
|
116
|
+
id?: string;
|
|
100
117
|
props?: ElmCodeBlockProps;
|
|
101
118
|
}
|
|
102
119
|
interface ElmParagraphJsonComponent extends JsonComponentBase {
|
|
103
120
|
type: 'ElmParagraph';
|
|
121
|
+
id?: string;
|
|
104
122
|
props?: ElmParagraphProps;
|
|
105
123
|
}
|
|
106
124
|
interface ElmTableJsonComponent extends JsonComponentBase {
|
|
107
125
|
type: 'ElmTable';
|
|
126
|
+
id?: string;
|
|
108
127
|
props?: ElmTableProps;
|
|
109
128
|
}
|
|
110
129
|
interface ElmTableHeaderJsonComponent extends JsonComponentBase {
|
|
111
130
|
type: 'ElmTableHeader';
|
|
131
|
+
id?: string;
|
|
112
132
|
props?: ElmTableHeaderProps;
|
|
113
133
|
}
|
|
114
134
|
interface ElmTableBodyJsonComponent extends JsonComponentBase {
|
|
115
135
|
type: 'ElmTableBody';
|
|
136
|
+
id?: string;
|
|
116
137
|
props?: ElmTableBodyProps;
|
|
117
138
|
}
|
|
118
139
|
interface ElmTableRowJsonComponent extends JsonComponentBase {
|
|
119
140
|
type: 'ElmTableRow';
|
|
141
|
+
id?: string;
|
|
120
142
|
props?: ElmTableRowProps;
|
|
121
143
|
}
|
|
122
144
|
interface ElmTableCellJsonComponent extends JsonComponentBase {
|
|
123
145
|
type: 'ElmTableCell';
|
|
146
|
+
id?: string;
|
|
124
147
|
props?: ElmTableCellProps;
|
|
125
148
|
}
|
|
126
149
|
interface ElmKatexJsonComponent extends JsonComponentBase {
|
|
127
150
|
type: 'ElmKatex';
|
|
151
|
+
id?: string;
|
|
128
152
|
props?: ElmKatexProps;
|
|
129
153
|
}
|
|
130
154
|
interface ElmImageJsonComponent extends JsonComponentBase {
|
|
131
155
|
type: 'ElmImage';
|
|
156
|
+
id?: string;
|
|
132
157
|
props?: ElmImageProps;
|
|
133
158
|
}
|
|
134
159
|
interface ElmBookmarkJsonComponent extends JsonComponentBase {
|
|
135
160
|
type: 'ElmBookmark';
|
|
161
|
+
id?: string;
|
|
136
162
|
props?: ElmBookmarkProps;
|
|
137
163
|
}
|
|
138
164
|
interface ElmToggleJsonComponent extends JsonComponentBase {
|
|
139
165
|
type: 'ElmToggle';
|
|
166
|
+
id?: string;
|
|
140
167
|
props?: ElmToggleProps;
|
|
141
168
|
}
|
|
142
169
|
interface ElmCheckboxJsonComponent extends JsonComponentBase {
|
|
143
170
|
type: 'ElmCheckbox';
|
|
171
|
+
id?: string;
|
|
144
172
|
props?: ElmCheckboxProps;
|
|
145
173
|
}
|
|
146
174
|
interface ElmFileJsonComponent extends JsonComponentBase {
|
|
147
175
|
type: 'ElmFile';
|
|
176
|
+
id?: string;
|
|
148
177
|
props?: ElmFileProps;
|
|
149
178
|
}
|
|
150
179
|
interface ElmColumnJsonComponent extends JsonComponentBase {
|
|
151
180
|
type: 'ElmColumn';
|
|
181
|
+
id?: string;
|
|
152
182
|
props?: ElmColumnProps;
|
|
153
183
|
}
|
|
154
184
|
interface ElmColumnListJsonComponent extends JsonComponentBase {
|
|
155
185
|
type: 'ElmColumnList';
|
|
186
|
+
id?: string;
|
|
156
187
|
props?: ElmColumnListProps;
|
|
157
188
|
}
|
|
158
|
-
type JsonComponent = ElmInlineTextJsonComponent |
|
|
189
|
+
type JsonComponent = ElmInlineTextJsonComponent | ElmInlineLinkJsonComponent | ElmInlineIconJsonComponent | ElmCalloutJsonComponent | ElmBulletedListJsonComponent | ElmNumberedListJsonComponent | ElmListItemJsonComponent | ElmBlockQuoteJsonComponent | ElmDividerJsonComponent | ElmHeading1JsonComponent | ElmHeading2JsonComponent | ElmHeading3JsonComponent | ElmHeading4JsonComponent | ElmHeading5JsonComponent | ElmHeading6JsonComponent | ElmCodeBlockJsonComponent | ElmParagraphJsonComponent | ElmTableJsonComponent | ElmTableHeaderJsonComponent | ElmTableBodyJsonComponent | ElmTableRowJsonComponent | ElmTableCellJsonComponent | ElmKatexJsonComponent | ElmImageJsonComponent | ElmBookmarkJsonComponent | ElmToggleJsonComponent | ElmCheckboxJsonComponent | ElmFileJsonComponent | ElmColumnJsonComponent | ElmColumnListJsonComponent;
|
|
159
190
|
export interface ElmJsonRendererProps {
|
|
160
191
|
json: JsonComponent[];
|
|
161
192
|
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { defineComponent, markRaw, createBlock, openBlock, resolveDynamicComponent, h } from "vue";
|
|
2
|
+
import ElmInlineText from "../inline/ElmInlineText.vue.mjs";
|
|
3
|
+
import ElmInlineLink from "../inline/ElmInlineLink.vue.mjs";
|
|
4
|
+
import ElmInlineIcon from "../inline/ElmInlineIcon.vue.mjs";
|
|
5
|
+
import ElmCallout from "../typography/ElmCallout.vue.mjs";
|
|
6
|
+
import _sfc_main$5 from "../typography/ElmBulletedList.vue.mjs";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import _sfc_main$4 from "../typography/ElmNumberedList.vue.mjs";
|
|
9
|
+
/* empty css */
|
|
10
|
+
import ElmListItem from "../typography/ElmListItem.vue.mjs";
|
|
11
|
+
import ElmBlockQuote from "../typography/ElmBlockQuote.vue.mjs";
|
|
12
|
+
import ElmDivider from "../typography/ElmDivider.vue.mjs";
|
|
13
|
+
import ElmHeading1 from "../headings/ElmHeading1.vue.mjs";
|
|
14
|
+
import ElmHeading2 from "../headings/ElmHeading2.vue.mjs";
|
|
15
|
+
import ElmHeading3 from "../headings/ElmHeading3.vue.mjs";
|
|
16
|
+
import ElmHeading4 from "../headings/ElmHeading4.vue.mjs";
|
|
17
|
+
import ElmHeading5 from "../headings/ElmHeading5.vue.mjs";
|
|
18
|
+
import ElmHeading6 from "../headings/ElmHeading6.vue.mjs";
|
|
19
|
+
import ElmCodeBlock from "../code/ElmCodeBlock.vue.mjs";
|
|
20
|
+
import ElmParagraph from "../typography/ElmParagraph.vue.mjs";
|
|
21
|
+
import ElmTable from "../table/ElmTable.vue.mjs";
|
|
22
|
+
import _sfc_main$3 from "../table/ElmTableHeader.vue.mjs";
|
|
23
|
+
/* empty css */
|
|
24
|
+
import _sfc_main$2 from "../table/ElmTableBody.vue.mjs";
|
|
25
|
+
/* empty css */
|
|
26
|
+
import _sfc_main$1 from "../table/ElmTableRow.vue.mjs";
|
|
27
|
+
import ElmTableCell from "../table/ElmTableCell.vue.mjs";
|
|
28
|
+
import ElmKatex from "../code/ElmKatex.vue.mjs";
|
|
29
|
+
import ElmImage from "../media/ElmImage.vue.mjs";
|
|
30
|
+
import ElmBookmark from "../navigation/ElmBookmark.vue.mjs";
|
|
31
|
+
import ElmToggle from "../containments/ElmToggle.vue.mjs";
|
|
32
|
+
import ElmCheckbox from "../form/ElmCheckbox.vue.mjs";
|
|
33
|
+
import ElmFile from "../media/ElmFile.vue.mjs";
|
|
34
|
+
import ElmColumn from "../containments/ElmColumn.vue.mjs";
|
|
35
|
+
import ElmColumnList from "../containments/ElmColumnList.vue.mjs";
|
|
36
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
37
|
+
__name: "ElmJsonRenderer",
|
|
38
|
+
props: {
|
|
39
|
+
json: {}
|
|
40
|
+
},
|
|
41
|
+
setup(__props) {
|
|
42
|
+
const componentMap = {
|
|
43
|
+
ElmInlineText: markRaw(ElmInlineText),
|
|
44
|
+
ElmInlineLink: markRaw(ElmInlineLink),
|
|
45
|
+
ElmInlineIcon: markRaw(ElmInlineIcon),
|
|
46
|
+
ElmCallout: markRaw(ElmCallout),
|
|
47
|
+
ElmBulletedList: markRaw(_sfc_main$5),
|
|
48
|
+
ElmNumberedList: markRaw(_sfc_main$4),
|
|
49
|
+
ElmListItem: markRaw(ElmListItem),
|
|
50
|
+
ElmBlockQuote: markRaw(ElmBlockQuote),
|
|
51
|
+
ElmDivider: markRaw(ElmDivider),
|
|
52
|
+
ElmHeading1: markRaw(ElmHeading1),
|
|
53
|
+
ElmHeading2: markRaw(ElmHeading2),
|
|
54
|
+
ElmHeading3: markRaw(ElmHeading3),
|
|
55
|
+
ElmHeading4: markRaw(ElmHeading4),
|
|
56
|
+
ElmHeading5: markRaw(ElmHeading5),
|
|
57
|
+
ElmHeading6: markRaw(ElmHeading6),
|
|
58
|
+
ElmCodeBlock: markRaw(ElmCodeBlock),
|
|
59
|
+
ElmParagraph: markRaw(ElmParagraph),
|
|
60
|
+
ElmTable: markRaw(ElmTable),
|
|
61
|
+
ElmTableHeader: markRaw(_sfc_main$3),
|
|
62
|
+
ElmTableBody: markRaw(_sfc_main$2),
|
|
63
|
+
ElmTableRow: markRaw(_sfc_main$1),
|
|
64
|
+
ElmTableCell: markRaw(ElmTableCell),
|
|
65
|
+
ElmKatex: markRaw(ElmKatex),
|
|
66
|
+
ElmImage: markRaw(ElmImage),
|
|
67
|
+
ElmBookmark: markRaw(ElmBookmark),
|
|
68
|
+
ElmToggle: markRaw(ElmToggle),
|
|
69
|
+
ElmCheckbox: markRaw(ElmCheckbox),
|
|
70
|
+
ElmFile: markRaw(ElmFile),
|
|
71
|
+
ElmColumn: markRaw(ElmColumn),
|
|
72
|
+
ElmColumnList: markRaw(ElmColumnList)
|
|
73
|
+
};
|
|
74
|
+
const render = (json) => {
|
|
75
|
+
const vnodes = [];
|
|
76
|
+
for (const component of json) {
|
|
77
|
+
vnodes.push(
|
|
78
|
+
h(
|
|
79
|
+
componentMap[component.type],
|
|
80
|
+
{ ...component.props, key: component.id },
|
|
81
|
+
() => {
|
|
82
|
+
if (component.children != null) {
|
|
83
|
+
return render(component.children);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
return vnodes;
|
|
90
|
+
};
|
|
91
|
+
return (_ctx, _cache) => {
|
|
92
|
+
return openBlock(), createBlock(resolveDynamicComponent(() => render(_ctx.json)));
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
export {
|
|
97
|
+
_sfc_main as default
|
|
98
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ElmJsonRendererProps } from './ElmJsonRenderer.vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ElmJsonRendererProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmJsonRendererProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, nextTick, h, createBlock, openBlock, resolveDynamicComponent } from "vue";
|
|
2
|
+
import _sfc_main$1 from "./ElmJsonRenderer.vue.mjs";
|
|
3
|
+
import ElmBlockFallback from "../fallback/ElmBlockFallback.vue.mjs";
|
|
4
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
5
|
+
__name: "ElmJsonRendererAsync",
|
|
6
|
+
props: {
|
|
7
|
+
json: {}
|
|
8
|
+
},
|
|
9
|
+
setup(__props) {
|
|
10
|
+
const props = __props;
|
|
11
|
+
const vnode = ref(null);
|
|
12
|
+
onMounted(() => {
|
|
13
|
+
nextTick(() => {
|
|
14
|
+
vnode.value = h(_sfc_main$1, { json: props.json });
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
return (_ctx, _cache) => {
|
|
18
|
+
return vnode.value != null ? (openBlock(), createBlock(resolveDynamicComponent(() => vnode.value), { key: 0 })) : (openBlock(), createBlock(ElmBlockFallback, { key: 1 }));
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
export {
|
|
23
|
+
_sfc_main as default
|
|
24
|
+
};
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
1
2
|
export interface ElmTableProps {
|
|
3
|
+
/**
|
|
4
|
+
* The margin of the table.
|
|
5
|
+
*/
|
|
6
|
+
margin?: Property.MarginBlock;
|
|
2
7
|
}
|
|
3
8
|
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
4
10
|
slots: {
|
|
5
11
|
default?(_: {}): any;
|
|
6
12
|
};
|
|
7
13
|
refs: {};
|
|
8
|
-
|
|
14
|
+
rootEl: HTMLTableElement;
|
|
9
15
|
};
|
|
10
16
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<ElmTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
17
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmTableProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableElement>;
|
|
12
18
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
19
|
export default _default;
|
|
14
20
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeStyle, renderSlot } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "ElmTable",
|
|
4
|
+
props: {
|
|
5
|
+
margin: {}
|
|
6
|
+
},
|
|
7
|
+
setup(__props) {
|
|
8
|
+
return (_ctx, _cache) => {
|
|
9
|
+
return openBlock(), createElementBlock("table", {
|
|
10
|
+
class: "table",
|
|
11
|
+
style: normalizeStyle({
|
|
12
|
+
"--margin-block": _ctx.margin
|
|
13
|
+
})
|
|
14
|
+
}, [
|
|
15
|
+
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
|
16
|
+
], 4);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
_sfc_main as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
.elmethis-table-header-body tr {
|
|
2
|
+
transition: background-color 200ms;
|
|
3
|
+
}
|
|
4
|
+
.elmethis-table-header-body tr:nth-child(odd) {
|
|
5
|
+
background-color: transparent;
|
|
6
|
+
}
|
|
7
|
+
.elmethis-table-header-body tr:nth-child(even) {
|
|
8
|
+
background-color: rgba(0, 0, 0, 0.025);
|
|
9
|
+
}
|
|
10
|
+
[data-theme=dark] .elmethis-table-header-body tr:nth-child(even) {
|
|
11
|
+
background-color: rgba(255, 255, 255, 0.025);
|
|
12
|
+
}
|
|
13
|
+
.elmethis-table-header-body tr:hover {
|
|
14
|
+
background-color: rgba(105, 135, 184, 0.15);
|
|
15
|
+
}
|
|
16
|
+
[data-theme=dark] .elmethis-table-header-body tr:hover {
|
|
17
|
+
background-color: rgba(105, 135, 184, 0.15);
|
|
18
|
+
}
|
|
19
|
+
.elmethis-table-header-body tr td,
|
|
20
|
+
.elmethis-table-header-body tr th {
|
|
21
|
+
color: rgba(0, 0, 0, 0.7);
|
|
22
|
+
}
|
|
23
|
+
[data-theme=dark] .elmethis-table-header-body tr td,
|
|
24
|
+
[data-theme=dark] .elmethis-table-header-body tr th {
|
|
25
|
+
color: rgba(255, 255, 255, 0.7);
|
|
26
|
+
}
|
|
27
|
+
.elmethis-table-header-body tr td::-moz-selection, .elmethis-table-header-body tr th::-moz-selection {
|
|
28
|
+
color: rgba(255, 255, 255, 0.7);
|
|
29
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
30
|
+
background-color: var(--color, rgba(0, 0, 0, 0.7));
|
|
31
|
+
}
|
|
32
|
+
.elmethis-table-header-body tr td::selection,
|
|
33
|
+
.elmethis-table-header-body tr th::selection {
|
|
34
|
+
color: rgba(255, 255, 255, 0.7);
|
|
35
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
36
|
+
background-color: var(--color, rgba(0, 0, 0, 0.7));
|
|
37
|
+
}
|
|
38
|
+
[data-theme=dark] .elmethis-table-header-body tr td::-moz-selection, [data-theme=dark] .elmethis-table-header-body tr th::-moz-selection {
|
|
39
|
+
color: rgba(0, 0, 0, 0.7);
|
|
40
|
+
background-color: rgba(255, 255, 255, 0.7);
|
|
41
|
+
background-color: var(--color, rgba(255, 255, 255, 0.7));
|
|
42
|
+
}
|
|
43
|
+
[data-theme=dark] .elmethis-table-header-body tr td::selection,
|
|
44
|
+
[data-theme=dark] .elmethis-table-header-body tr th::selection {
|
|
45
|
+
color: rgba(0, 0, 0, 0.7);
|
|
46
|
+
background-color: rgba(255, 255, 255, 0.7);
|
|
47
|
+
background-color: var(--color, rgba(255, 255, 255, 0.7));
|
|
48
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export interface ElmTableBodyProps {
|
|
2
2
|
}
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
4
5
|
slots: {
|
|
5
6
|
default?(_: {}): any;
|
|
6
7
|
};
|
|
7
8
|
refs: {};
|
|
8
|
-
|
|
9
|
+
rootEl: HTMLTableSectionElement;
|
|
9
10
|
};
|
|
10
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<ElmTableBodyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableBodyProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmTableBodyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableBodyProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableSectionElement>;
|
|
12
13
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
14
|
export default _default;
|
|
14
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, renderSlot } from "vue";
|
|
2
|
+
const _hoisted_1 = { class: "elmethis-table-header-body" };
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmTableBody",
|
|
5
|
+
setup(__props) {
|
|
6
|
+
return (_ctx, _cache) => {
|
|
7
|
+
return openBlock(), createElementBlock("tbody", _hoisted_1, [
|
|
8
|
+
renderSlot(_ctx.$slots, "default")
|
|
9
|
+
]);
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
_sfc_main as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
td.cell[data-v-7bedd3ac] {
|
|
2
|
+
padding: 0.75rem 1rem;
|
|
3
|
+
border-bottom: solid 1px rgba(0, 0, 0, 0.15);
|
|
4
|
+
border-right: dotted 1px rgba(0, 0, 0, 0.1);
|
|
5
|
+
}
|
|
6
|
+
[data-theme=dark] td.cell[data-v-7bedd3ac] {
|
|
7
|
+
border-bottom-color: rgba(255, 255, 255, 0.15);
|
|
8
|
+
border-right-color: rgba(255, 255, 255, 0.1);
|
|
9
|
+
}
|
|
10
|
+
th.cell[data-v-7bedd3ac] {
|
|
11
|
+
padding: 0.75rem 1rem;
|
|
12
|
+
border-right: dotted 1px rgba(255, 255, 255, 0.25);
|
|
13
|
+
}
|
|
14
|
+
[data-theme=dark] th.cell[data-v-7bedd3ac] {
|
|
15
|
+
border-right: dotted 1px rgba(0, 0, 0, 0.25);
|
|
16
|
+
}
|
|
@@ -10,11 +10,12 @@ export interface ElmTableCellProps {
|
|
|
10
10
|
text?: string;
|
|
11
11
|
}
|
|
12
12
|
declare function __VLS_template(): {
|
|
13
|
+
attrs: Partial<{}>;
|
|
13
14
|
slots: {
|
|
14
15
|
default?(_: {}): any;
|
|
15
16
|
};
|
|
16
17
|
refs: {};
|
|
17
|
-
|
|
18
|
+
rootEl: any;
|
|
18
19
|
};
|
|
19
20
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
21
|
declare const __VLS_component: import('vue').DefineComponent<ElmTableCellProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableCellProps> & Readonly<{}>, {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { defineComponent, createBlock, openBlock, resolveDynamicComponent, withCtx, renderSlot, createCommentVNode, createTextVNode, toDisplayString } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "ElmTableCell",
|
|
4
|
+
props: {
|
|
5
|
+
hasHeader: { type: Boolean, default: false },
|
|
6
|
+
text: {}
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return openBlock(), createBlock(resolveDynamicComponent(_ctx.hasHeader ? "th" : "td"), { class: "cell" }, {
|
|
11
|
+
default: withCtx(() => [
|
|
12
|
+
_ctx.text == null ? renderSlot(_ctx.$slots, "default", { key: 0 }, void 0, true) : createCommentVNode("", true),
|
|
13
|
+
createTextVNode(" " + toDisplayString(_ctx.text), 1)
|
|
14
|
+
]),
|
|
15
|
+
_: 3
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
_sfc_main as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.elmethis-table-header-thead {
|
|
2
|
+
text-align: left;
|
|
3
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
4
|
+
color: rgba(255, 255, 255, 0.8);
|
|
5
|
+
transition: background-color 400ms, color 400ms;
|
|
6
|
+
}
|
|
7
|
+
[data-theme=dark] .elmethis-table-header-thead {
|
|
8
|
+
background-color: rgba(255, 255, 255, 0.8);
|
|
9
|
+
color: rgba(0, 0, 0, 0.8);
|
|
10
|
+
}
|
|
11
|
+
.elmethis-table-header-thead tr td,
|
|
12
|
+
.elmethis-table-header-thead tr th {
|
|
13
|
+
color: rgba(255, 255, 255, 0.7);
|
|
14
|
+
}
|
|
15
|
+
[data-theme=dark] .elmethis-table-header-thead tr td,
|
|
16
|
+
[data-theme=dark] .elmethis-table-header-thead tr th {
|
|
17
|
+
color: rgba(0, 0, 0, 0.7);
|
|
18
|
+
}
|
|
19
|
+
.elmethis-table-header-thead tr td::-moz-selection, .elmethis-table-header-thead tr th::-moz-selection {
|
|
20
|
+
color: rgba(0, 0, 0, 0.7);
|
|
21
|
+
background-color: rgba(255, 255, 255, 0.7);
|
|
22
|
+
background-color: var(--color, rgba(255, 255, 255, 0.7));
|
|
23
|
+
}
|
|
24
|
+
.elmethis-table-header-thead tr td::selection,
|
|
25
|
+
.elmethis-table-header-thead tr th::selection {
|
|
26
|
+
color: rgba(0, 0, 0, 0.7);
|
|
27
|
+
background-color: rgba(255, 255, 255, 0.7);
|
|
28
|
+
background-color: var(--color, rgba(255, 255, 255, 0.7));
|
|
29
|
+
}
|
|
30
|
+
[data-theme=dark] .elmethis-table-header-thead tr td::-moz-selection, [data-theme=dark] .elmethis-table-header-thead tr th::-moz-selection {
|
|
31
|
+
color: rgba(255, 255, 255, 0.7);
|
|
32
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
33
|
+
background-color: var(--color, rgba(0, 0, 0, 0.7));
|
|
34
|
+
}
|
|
35
|
+
[data-theme=dark] .elmethis-table-header-thead tr td::selection,
|
|
36
|
+
[data-theme=dark] .elmethis-table-header-thead tr th::selection {
|
|
37
|
+
color: rgba(255, 255, 255, 0.7);
|
|
38
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
39
|
+
background-color: var(--color, rgba(0, 0, 0, 0.7));
|
|
40
|
+
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export interface ElmTableHeaderProps {
|
|
2
2
|
}
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
4
5
|
slots: {
|
|
5
6
|
default?(_: {}): any;
|
|
6
7
|
};
|
|
7
8
|
refs: {};
|
|
8
|
-
|
|
9
|
+
rootEl: HTMLTableSectionElement;
|
|
9
10
|
};
|
|
10
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<ElmTableHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmTableHeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableHeaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableSectionElement>;
|
|
12
13
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
14
|
export default _default;
|
|
14
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, renderSlot } from "vue";
|
|
2
|
+
const _hoisted_1 = { class: "elmethis-table-header-thead" };
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "ElmTableHeader",
|
|
5
|
+
setup(__props) {
|
|
6
|
+
return (_ctx, _cache) => {
|
|
7
|
+
return openBlock(), createElementBlock("thead", _hoisted_1, [
|
|
8
|
+
renderSlot(_ctx.$slots, "default")
|
|
9
|
+
]);
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
export {
|
|
14
|
+
_sfc_main as default
|
|
15
|
+
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export interface ElmTableRowProps {
|
|
2
2
|
}
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
4
5
|
slots: {
|
|
5
6
|
default?(_: {}): any;
|
|
6
7
|
};
|
|
7
8
|
refs: {};
|
|
8
|
-
|
|
9
|
+
rootEl: HTMLTableRowElement;
|
|
9
10
|
};
|
|
10
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
-
declare const __VLS_component: import('vue').DefineComponent<ElmTableRowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableRowProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {},
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<ElmTableRowProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ElmTableRowProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLTableRowElement>;
|
|
12
13
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
13
14
|
export default _default;
|
|
14
15
|
type __VLS_WithTemplateSlots<T, S> = T & {
|