@elmethis/core 1.0.0-alpha.163 → 1.0.0-alpha.165
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/components/inline/ElmInlineLink.vue.d.ts +1 -1
- package/dist/components/inline/ElmInlineLink.vue2.mjs +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/index.mjs +24 -26
- package/package.json +1 -1
- package/dist/components/renderer/ElmJsonRendererAsync.vue.d.ts +0 -3
- package/dist/components/renderer/ElmJsonRendererAsync.vue.mjs +0 -24
- package/dist/components/renderer/ElmJsonRendererAsync.vue2.mjs +0 -4
|
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
props.onClick();
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
const src = ref(`https://logo.clearbit.com/${props.href}`);
|
|
23
|
+
const src = ref(`https://logo.clearbit.com/${new URL(props.href).hostname}`);
|
|
24
24
|
const handleError = () => {
|
|
25
25
|
src.value = `data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="gray" d="M17.9 17.39c-.26-.8-1.01-1.39-1.9-1.39h-1v-3a1 1 0 0 0-1-1H8v-2h2a1 1 0 0 0 1-1V7h2a2 2 0 0 0 2-2v-.41a7.984 7.984 0 0 1 2.9 12.8M11 19.93c-3.95-.49-7-3.85-7-7.93c0-.62.08-1.22.21-1.79L9 15v1a2 2 0 0 0 2 2m1-16A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2"/></svg>`;
|
|
26
26
|
};
|
|
@@ -39,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
39
|
onError: handleError,
|
|
40
40
|
class: normalizeClass(_ctx.$style.icon)
|
|
41
41
|
}, null, 42, _hoisted_2),
|
|
42
|
-
createTextVNode(" " + toDisplayString(_ctx.text) + " ", 1),
|
|
42
|
+
createTextVNode(" " + toDisplayString(_ctx.text ?? _ctx.href) + " ", 1),
|
|
43
43
|
createVNode(unref(Icon), {
|
|
44
44
|
icon: _ctx.iconType != null ? _ctx.iconType === "internal" ? "mdi:chevron-right" : "mdi:external-link" : _ctx.openInNewTab ? "mdi:external-link" : "mdi:chevron-right",
|
|
45
45
|
class: normalizeClass(_ctx.$style.icon)
|
package/dist/index.d.ts
CHANGED
|
@@ -98,7 +98,6 @@ export type { ElmColorTableProps } from './components/others/ElmColorTable.vue';
|
|
|
98
98
|
export { default as ElmColorTable } from './components/others/ElmColorTable.vue';
|
|
99
99
|
export type { ElmJsonRendererProps } from './components/renderer/ElmJsonRenderer.vue';
|
|
100
100
|
export { default as ElmJsonRenderer } from './components/renderer/ElmJsonRenderer.vue';
|
|
101
|
-
export { default as ElmJsonRendererAsync } from './components/renderer/ElmJsonRendererAsync.vue';
|
|
102
101
|
export type { ElmTableProps } from './components/table/ElmTable.vue';
|
|
103
102
|
export { default as ElmTable } from './components/table/ElmTable.vue';
|
|
104
103
|
export type { ElmTableHeaderProps } from './components/table/ElmTableHeader.vue';
|
package/dist/index.mjs
CHANGED
|
@@ -60,34 +60,33 @@ import { default as default48 } from "./components/navigation/ElmTableOfContents
|
|
|
60
60
|
import { default as default49 } from "./components/others/ElmColorSample.vue.mjs";
|
|
61
61
|
import { default as default50 } from "./components/others/ElmColorTable.vue.mjs";
|
|
62
62
|
import { default as default51 } from "./components/renderer/ElmJsonRenderer.vue.mjs";
|
|
63
|
-
import { default as default52 } from "./components/
|
|
64
|
-
import { default as default53 } from "./components/table/
|
|
65
|
-
import { default as default54 } from "./components/table/ElmTableHeader.vue.mjs";
|
|
63
|
+
import { default as default52 } from "./components/table/ElmTable.vue.mjs";
|
|
64
|
+
import { default as default53 } from "./components/table/ElmTableHeader.vue.mjs";
|
|
66
65
|
|
|
67
|
-
import { default as
|
|
66
|
+
import { default as default54 } from "./components/table/ElmTableBody.vue.mjs";
|
|
68
67
|
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
68
|
+
import { default as default55 } from "./components/table/ElmTableRow.vue.mjs";
|
|
69
|
+
import { default as default56 } from "./components/table/ElmTableCell.vue.mjs";
|
|
70
|
+
import { default as default57 } from "./components/typography/ElmBlockQuote.vue.mjs";
|
|
71
|
+
import { default as default58 } from "./components/typography/ElmBulletedList.vue.mjs";
|
|
73
72
|
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
73
|
+
import { default as default59 } from "./components/typography/ElmCallout.vue.mjs";
|
|
74
|
+
import { default as default60 } from "./components/typography/ElmDivider.vue.mjs";
|
|
75
|
+
import { default as default61 } from "./components/typography/ElmNumberedList.vue.mjs";
|
|
77
76
|
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
77
|
+
import { default as default62 } from "./components/typography/ElmParagraph.vue.mjs";
|
|
78
|
+
import { default as default63 } from "./components/typography/ElmListItem.vue.mjs";
|
|
80
79
|
export {
|
|
81
80
|
default33 as ElmArrowIcon,
|
|
82
81
|
default2 as ElmBadge,
|
|
83
82
|
default19 as ElmBlockFallback,
|
|
84
|
-
|
|
83
|
+
default57 as ElmBlockQuote,
|
|
85
84
|
default45 as ElmBookmark,
|
|
86
85
|
default34 as ElmBookmarkIcon,
|
|
87
86
|
default46 as ElmBreadcrumb,
|
|
88
|
-
|
|
87
|
+
default58 as ElmBulletedList,
|
|
89
88
|
default21 as ElmButton,
|
|
90
|
-
|
|
89
|
+
default59 as ElmCallout,
|
|
91
90
|
default22 as ElmCheckbox,
|
|
92
91
|
default4 as ElmCodeBlock,
|
|
93
92
|
default49 as ElmColorSample,
|
|
@@ -96,7 +95,7 @@ export {
|
|
|
96
95
|
default7 as ElmColumnList,
|
|
97
96
|
default35 as ElmCubeIcon,
|
|
98
97
|
default8 as ElmDesktopWindow,
|
|
99
|
-
|
|
98
|
+
default60 as ElmDivider,
|
|
100
99
|
default36 as ElmDotLoadingIcon,
|
|
101
100
|
default43 as ElmFile,
|
|
102
101
|
default32 as ElmFragmentIdentifier,
|
|
@@ -111,16 +110,15 @@ export {
|
|
|
111
110
|
default41 as ElmInlineRuby,
|
|
112
111
|
default42 as ElmInlineText,
|
|
113
112
|
default51 as ElmJsonRenderer,
|
|
114
|
-
default52 as ElmJsonRendererAsync,
|
|
115
113
|
default5 as ElmKatex,
|
|
116
114
|
default37 as ElmLanguageIcon,
|
|
117
|
-
|
|
115
|
+
default63 as ElmListItem,
|
|
118
116
|
default38 as ElmLoginIcon,
|
|
119
117
|
default9 as ElmModal,
|
|
120
118
|
default16 as ElmMultiProgress,
|
|
121
|
-
|
|
119
|
+
default61 as ElmNumberedList,
|
|
122
120
|
default47 as ElmPagetop,
|
|
123
|
-
|
|
121
|
+
default62 as ElmParagraph,
|
|
124
122
|
default10 as ElmParallax,
|
|
125
123
|
default15 as ElmProgress,
|
|
126
124
|
default18 as ElmRectangleWave,
|
|
@@ -129,12 +127,12 @@ export {
|
|
|
129
127
|
default20 as ElmSpinner,
|
|
130
128
|
default17 as ElmStatusMessage,
|
|
131
129
|
default23 as ElmSwitch,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
130
|
+
default52 as ElmTable,
|
|
131
|
+
default54 as ElmTableBody,
|
|
132
|
+
default56 as ElmTableCell,
|
|
133
|
+
default53 as ElmTableHeader,
|
|
136
134
|
default48 as ElmTableOfContents,
|
|
137
|
-
|
|
135
|
+
default55 as ElmTableRow,
|
|
138
136
|
default3 as ElmTag,
|
|
139
137
|
default24 as ElmTextField,
|
|
140
138
|
default13 as ElmToggle,
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
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;
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
};
|