@oneflowui/ui 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue2.js +11 -8
- package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/PieChart.vue2.js +8 -5
- package/dist/components/Dashboard/index.vue.js +1 -1
- package/dist/components/Dashboard/index.vue2.js +20 -25
- package/dist/components/editor/RichTextEditor.vue2.js +1 -1
- package/dist/components/table/DataTable.vue.js +1 -1
- package/dist/components/table/DataTable.vue2.js +134 -135
- package/dist/components/table/FieldCell.vue.js +2 -2
- package/dist/components/table/FieldCell.vue2.js +16 -15
- package/dist/composables/useMarkdown.js +23 -23
- package/dist/index.d.ts +1 -5
- package/dist/index.js +250 -350
- package/dist/plugin.d.ts +5 -0
- package/dist/plugin.js +197 -0
- package/dist/style.css +1 -1
- package/dist/utils/echarts.d.ts +2 -0
- package/dist/utils/icon.d.ts +0 -5
- package/dist/utils/icon.js +72 -11
- package/package.json +2 -3
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/core.js +0 -5
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/bash.js +0 -377
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/css.js +0 -923
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/go.js +0 -151
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/java.js +0 -240
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/javascript.js +0 -658
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/json.js +0 -38
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/markdown.js +0 -216
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/plaintext.js +0 -13
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/python.js +0 -399
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/rust.js +0 -305
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/sql.js +0 -615
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/typescript.js +0 -753
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/xml.js +0 -219
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/es/languages/yaml.js +0 -183
- package/dist/node_modules/.pnpm/highlight.js@11.11.1/node_modules/highlight.js/lib/core.js +0 -1063
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { marked as o } from "marked";
|
|
2
|
-
import e from "
|
|
3
|
-
import l from "
|
|
4
|
-
import p from "
|
|
5
|
-
import u from "
|
|
6
|
-
import n from "
|
|
7
|
-
import j from "
|
|
8
|
-
import w from "
|
|
9
|
-
import c from "
|
|
10
|
-
import k from "
|
|
11
|
-
import f from "
|
|
12
|
-
import L from "
|
|
13
|
-
import $ from "
|
|
14
|
-
import q from "
|
|
15
|
-
import B from "
|
|
16
|
-
import
|
|
17
|
-
e.registerLanguage("plaintext",
|
|
18
|
-
e.registerLanguage("text",
|
|
19
|
-
e.registerLanguage("txt",
|
|
2
|
+
import e from "highlight.js/lib/core";
|
|
3
|
+
import l from "highlight.js/lib/languages/javascript";
|
|
4
|
+
import p from "highlight.js/lib/languages/typescript";
|
|
5
|
+
import u from "highlight.js/lib/languages/python";
|
|
6
|
+
import n from "highlight.js/lib/languages/bash";
|
|
7
|
+
import j from "highlight.js/lib/languages/json";
|
|
8
|
+
import w from "highlight.js/lib/languages/sql";
|
|
9
|
+
import c from "highlight.js/lib/languages/xml";
|
|
10
|
+
import k from "highlight.js/lib/languages/css";
|
|
11
|
+
import f from "highlight.js/lib/languages/markdown";
|
|
12
|
+
import L from "highlight.js/lib/languages/yaml";
|
|
13
|
+
import $ from "highlight.js/lib/languages/java";
|
|
14
|
+
import q from "highlight.js/lib/languages/go";
|
|
15
|
+
import B from "highlight.js/lib/languages/rust";
|
|
16
|
+
import s from "highlight.js/lib/languages/plaintext";
|
|
17
|
+
e.registerLanguage("plaintext", s);
|
|
18
|
+
e.registerLanguage("text", s);
|
|
19
|
+
e.registerLanguage("txt", s);
|
|
20
20
|
e.registerLanguage("javascript", l);
|
|
21
21
|
e.registerLanguage("js", l);
|
|
22
22
|
e.registerLanguage("typescript", p);
|
|
@@ -38,9 +38,9 @@ e.registerLanguage("yml", L);
|
|
|
38
38
|
e.registerLanguage("java", $);
|
|
39
39
|
e.registerLanguage("go", q);
|
|
40
40
|
e.registerLanguage("rust", B);
|
|
41
|
-
function Q(
|
|
42
|
-
const { showCopyButton:
|
|
43
|
-
|
|
41
|
+
function Q(d = {}) {
|
|
42
|
+
const { showCopyButton: h = !1, t: y = (r) => r } = d, i = new o.Renderer();
|
|
43
|
+
i.code = function(r, x) {
|
|
44
44
|
const m = typeof r == "object" ? r.text || "" : r, t = typeof r == "object" ? r.lang || "" : x || "", a = t && e.getLanguage(t) ? t : "plaintext";
|
|
45
45
|
let g = "";
|
|
46
46
|
try {
|
|
@@ -48,7 +48,7 @@ function Q(h = {}) {
|
|
|
48
48
|
} catch {
|
|
49
49
|
g = e.highlight(m, { language: "plaintext" }).value;
|
|
50
50
|
}
|
|
51
|
-
const v =
|
|
51
|
+
const v = h ? `<button onclick="navigator.clipboard.writeText(this.parentElement.nextElementSibling.innerText)" class="of-markdown-copy-btn">${y("common.copy")}</button>` : "";
|
|
52
52
|
return `<div class="of-code-block-wrapper">
|
|
53
53
|
<div class="of-code-block-header">
|
|
54
54
|
<span class="of-code-block-lang">${a}</span>
|
|
@@ -56,7 +56,7 @@ function Q(h = {}) {
|
|
|
56
56
|
</div>
|
|
57
57
|
<pre class="of-code-block-pre"><code class="hljs language-${a}">${g}</code></pre>
|
|
58
58
|
</div>`;
|
|
59
|
-
}, o.use({ renderer:
|
|
59
|
+
}, o.use({ renderer: i });
|
|
60
60
|
function b(r) {
|
|
61
61
|
return o.parse(r);
|
|
62
62
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
2
1
|
export { ViewTab, ToolbarBtn, AddViewBtn, Badge, RangeSlider, ProgressBar, ButtonGroup, EmptyState, StatisticCard, DropdownMenu, StatusIndicator, Switch, Stepper, Accordion, Avatar, RefTag, DescBlock, ViewModeGroup, ViewSwitcher, SelectBadge, ChainItem, SectionBlock, MonitorItem, StatusSummary, InfoCard, PersonaCard, SearchHighlight, } from './components/base';
|
|
3
2
|
export type { ButtonOption, EmptyStateAction, MenuItem, StepItem, StepperProps, StepStatus, AvatarProps, RefTagProps, ViewModeOption, ViewModeGroupProps, ViewSwitcherTab, ViewSwitcherProps, SelectBadgeProps, ChainItemProps, SectionBlockProps, MonitorItemProps, StatusSummaryProps, StatusSummaryItem, InfoCardProps, PersonaCardProps, } from './components/base';
|
|
4
3
|
export { AppLayout, Navbar, Sidebar, StatusBar } from './components/layout';
|
|
@@ -72,7 +71,4 @@ export { useDatabaseView } from './composables/useDatabaseView';
|
|
|
72
71
|
export type { DatabaseViewMode, DatabaseViewFetchParams, DatabaseViewFetchResult, DatabaseViewProvider, DatabaseSchemaEvent, DatabaseViewActions, UseDatabaseViewOptions, UseDatabaseViewResult, } from './composables/useDatabaseView';
|
|
73
72
|
export { useSearch } from './composables/useSearch';
|
|
74
73
|
export type { UseSearchOptions, SearchHighlight as SearchHighlightSegment, } from './composables/useSearch';
|
|
75
|
-
export
|
|
76
|
-
install(app: App): void;
|
|
77
|
-
};
|
|
78
|
-
export default OneflowUI;
|
|
74
|
+
export { OneflowUI, default } from './plugin';
|