@oneflowui/ui 0.5.8 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +19 -0
- package/README.md +23 -0
- package/dist/components/ContextMenu/index.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue2.js +56 -23
- package/dist/components/Dashboard/charts/NumberCard.vue.js +2 -2
- package/dist/components/Dashboard/charts/NumberCard.vue2.js +14 -14
- package/dist/components/Dashboard/charts/PieChart.vue.js +1 -1
- package/dist/components/Dashboard/charts/PieChart.vue2.js +49 -23
- package/dist/components/Dashboard/charts/TableChart.vue.js +1 -1
- package/dist/components/Dashboard/index.vue.js +3 -3
- package/dist/components/ai/AiMessageBubble.vue.js +3 -3
- package/dist/components/ai/AiSender.vue.js +2 -2
- package/dist/components/ai/AiThinking.vue.js +1 -1
- package/dist/components/ai/UserMessageBubble.vue.js +3 -3
- package/dist/components/auxiliary/ColorPanel.vue.js +3 -3
- package/dist/components/auxiliary/ColorPanel.vue2.js +9 -9
- package/dist/components/auxiliary/FileUpload.vue.js +2 -2
- package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
- package/dist/components/auxiliary/PersonPanel.vue2.js +10 -10
- package/dist/components/base/Accordion.vue.js +1 -1
- package/dist/components/base/Avatar.vue.js +3 -3
- package/dist/components/base/Avatar.vue2.js +43 -43
- package/dist/components/base/Badge.vue.js +1 -1
- package/dist/components/base/Badge.vue2.js +35 -35
- package/dist/components/base/ButtonGroup.vue.js +2 -2
- package/dist/components/base/ChainItem.vue.js +2 -2
- package/dist/components/base/ChainItem.vue2.js +30 -30
- package/dist/components/base/DescBlock.vue.js +3 -3
- package/dist/components/base/DropdownMenu.vue.js +2 -2
- package/dist/components/base/EmptyState.vue.js +1 -1
- package/dist/components/base/InfoCard.vue.js +2 -2
- package/dist/components/base/InfoCard.vue2.js +66 -66
- package/dist/components/base/MonitorItem.vue.js +1 -1
- package/dist/components/base/MonitorItem.vue2.js +16 -16
- package/dist/components/base/PersonaCard.vue.js +1 -1
- package/dist/components/base/PersonaCard.vue2.js +81 -81
- package/dist/components/base/ProgressBar.vue.js +2 -2
- package/dist/components/base/ProgressBar.vue2.js +16 -16
- package/dist/components/base/RangeSlider.vue.js +1 -1
- package/dist/components/base/RefTag.vue.js +2 -2
- package/dist/components/base/RefTag.vue2.js +20 -20
- package/dist/components/base/SearchHighlight.vue.js +1 -1
- package/dist/components/base/SectionBlock.vue.js +1 -1
- package/dist/components/base/SectionBlock.vue2.js +44 -44
- package/dist/components/base/StatisticCard.vue.js +2 -2
- package/dist/components/base/StatisticCard.vue2.js +24 -24
- package/dist/components/base/StatusIndicator.vue.js +2 -2
- package/dist/components/base/StatusIndicator.vue2.js +30 -30
- package/dist/components/base/StatusSummary.vue.js +2 -2
- package/dist/components/base/StatusSummary.vue2.js +23 -23
- package/dist/components/base/Stepper.vue.js +2 -2
- package/dist/components/base/Switch.vue.js +2 -2
- package/dist/components/base/ToolbarBtn.vue.js +1 -1
- package/dist/components/base/ViewModeGroup.vue.js +3 -3
- package/dist/components/base/ViewSwitcher.vue.js +2 -2
- package/dist/components/base/ViewTab.vue.js +4 -4
- package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
- package/dist/components/breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/dist/components/database/DatabaseView.vue.js +4 -4
- package/dist/components/detail/CommentItem.vue.js +2 -2
- package/dist/components/detail/CommentItem.vue2.js +8 -8
- package/dist/components/detail/DetailLayout.vue.js +1 -1
- package/dist/components/editor/BlockQuote.vue.js +2 -2
- package/dist/components/editor/CodeBlock.vue.js +2 -2
- package/dist/components/editor/ContentBlock.vue.js +2 -2
- package/dist/components/editor/RefLink.vue.js +2 -2
- package/dist/components/editor/RichTextEditor.vue.js +1 -1
- package/dist/components/field/FieldAttachment.vue.js +1 -1
- package/dist/components/field/FieldCreator.vue.js +1 -1
- package/dist/components/field/FieldCurrency.vue.js +2 -2
- package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
- package/dist/components/field/FieldMultiSelect.vue.js +2 -2
- package/dist/components/field/FieldProgress.vue.js +2 -2
- package/dist/components/field/FieldRating.vue.js +2 -2
- package/dist/components/field/FieldRelation.vue.js +1 -1
- package/dist/components/field/FieldRichText.vue.js +1 -1
- package/dist/components/field/FieldSelect.vue.js +2 -2
- package/dist/components/gallery/GalleryCard.vue.js +2 -2
- package/dist/components/gallery/GalleryCard.vue2.js +34 -30
- package/dist/components/gallery/GalleryView.vue.js +2 -2
- package/dist/components/kanban/KanbanBoard.vue.js +4 -4
- package/dist/components/kanban/KanbanCard.vue.js +2 -2
- package/dist/components/kanban/KanbanColumn.vue.js +2 -2
- package/dist/components/kanban/KanbanColumn.vue2.js +16 -16
- package/dist/components/kanban/QuickAddRow.vue.js +1 -1
- package/dist/components/layout/AppLayout.vue.js +2 -2
- package/dist/components/layout/Navbar.vue.js +3 -3
- package/dist/components/layout/Sidebar.vue.js +2 -2
- package/dist/components/layout/StatusBar.vue.js +2 -2
- package/dist/components/mermaid/MermaidChart.vue.js +2 -2
- package/dist/components/overlay/Dialog.vue.js +2 -2
- package/dist/components/overlay/Drawer.vue.js +2 -2
- package/dist/components/overlay/Modal.vue.js +1 -1
- package/dist/components/overlay/SidePanel.vue.js +2 -2
- package/dist/components/split/SplitPane.vue.js +2 -2
- package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
- package/dist/components/table/DataTable.vue.js +4 -4
- package/dist/components/table/DetailSheet.vue.js +1 -1
- package/dist/components/table/FieldCell.vue.js +1 -1
- package/dist/components/table/FieldTypePicker.vue.js +4 -4
- package/dist/components/table/MobileListView.vue.js +2 -2
- package/dist/components/table/NewRowBtn.vue.js +2 -2
- package/dist/components/table/TableColumnManager.vue.js +2 -2
- package/dist/components/table/TableDataRow.vue.js +3 -3
- package/dist/components/table/TableFilterPanel.vue.js +2 -2
- package/dist/components/table/TableGroupRow.vue.js +2 -2
- package/dist/components/table/TableHeaderRow.vue.js +2 -2
- package/dist/components/table/TableToolbar.vue.js +2 -2
- package/dist/components/tabs/Tabs.vue.js +1 -1
- package/dist/components/timeline/ActivityTimeline.vue.js +1 -1
- package/dist/components/timeline/ActivityTimeline.vue2.js +27 -27
- package/dist/components/timeline/GanttRow.vue.js +2 -2
- package/dist/components/timeline/GanttRow.vue2.js +21 -18
- package/dist/components/timeline/GanttTimeline.vue.js +2 -2
- package/dist/components/toast/ToastItem.vue.js +2 -2
- package/dist/components/toast/ToastItem.vue2.js +39 -39
- package/dist/plugin.js +242 -171
- package/dist/style.css +1 -1
- package/dist/utils/icon.js +25 -68
- package/dist/utils/iconRegistry.d.ts +7 -0
- package/dist/utils/iconRegistry.js +60 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as y, computed as o, openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as y, computed as o, openBlock as c, createElementBlock as s, mergeProps as g, withKeys as r, withModifiers as m, toDisplayString as i, createCommentVNode as d, createElementVNode as t, normalizeStyle as u } from "vue";
|
|
2
|
+
const p = ["onKeydown"], C = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "of-monitor-item__subtitle"
|
|
5
|
-
}, w = { class: "of-monitor-item__label" }, M = { class: "of-monitor-item__progress" },
|
|
5
|
+
}, w = { class: "of-monitor-item__label" }, M = { class: "of-monitor-item__progress" }, x = { class: "of-monitor-item__percentage" }, S = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "of-monitor-item__count"
|
|
8
8
|
}, V = /* @__PURE__ */ y({
|
|
@@ -19,29 +19,29 @@ const g = ["onKeydown"], C = {
|
|
|
19
19
|
},
|
|
20
20
|
emits: ["click"],
|
|
21
21
|
setup(e, { emit: f }) {
|
|
22
|
-
const l = e, v = f,
|
|
23
|
-
() =>
|
|
22
|
+
const l = e, v = f, n = o(() => Math.min(100, Math.max(0, l.value))), _ = o(
|
|
23
|
+
() => n.value === 100 ? "var(--of-text-strong, var(--of-accent-strong))" : l.color ?? "var(--of-accent-default)"
|
|
24
24
|
), k = o(() => ({
|
|
25
|
-
backgroundColor: "var(--of-color-gray-100)"
|
|
25
|
+
backgroundColor: "var(--of-surface-muted, var(--of-color-gray-100))"
|
|
26
26
|
})), b = o(() => ({
|
|
27
|
-
width: `${
|
|
27
|
+
width: `${n.value}%`,
|
|
28
28
|
background: _.value
|
|
29
29
|
}));
|
|
30
|
-
function
|
|
30
|
+
function a() {
|
|
31
31
|
l.clickable && v("click");
|
|
32
32
|
}
|
|
33
|
-
return (h, B) => (
|
|
33
|
+
return (h, B) => (c(), s("div", g({
|
|
34
34
|
class: ["of-monitor-item", { "of-monitor-item--clickable": e.clickable }],
|
|
35
35
|
role: "button",
|
|
36
36
|
tabindex: "0"
|
|
37
37
|
}, h.$attrs, {
|
|
38
|
-
onClick:
|
|
38
|
+
onClick: a,
|
|
39
39
|
onKeydown: [
|
|
40
|
-
r(m(
|
|
41
|
-
r(m(
|
|
40
|
+
r(m(a, ["prevent"]), ["enter"]),
|
|
41
|
+
r(m(a, ["prevent"]), ["space"])
|
|
42
42
|
]
|
|
43
43
|
}), [
|
|
44
|
-
e.subtitle !== void 0 ? (
|
|
44
|
+
e.subtitle !== void 0 ? (c(), s("div", C, i(e.subtitle), 1)) : d("", !0),
|
|
45
45
|
t("div", w, i(e.label), 1),
|
|
46
46
|
t("div", M, [
|
|
47
47
|
t("div", {
|
|
@@ -54,9 +54,9 @@ const g = ["onKeydown"], C = {
|
|
|
54
54
|
}, null, 4)
|
|
55
55
|
], 4)
|
|
56
56
|
]),
|
|
57
|
-
t("div",
|
|
58
|
-
e.count !== void 0 ? (
|
|
59
|
-
], 16,
|
|
57
|
+
t("div", x, i(n.value) + "%", 1),
|
|
58
|
+
e.count !== void 0 ? (c(), s("div", S, i(e.count), 1)) : d("", !0)
|
|
59
|
+
], 16, p));
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./PersonaCard.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-260d05e8"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as w, computed as o, openBlock as r, createElementBlock as n, mergeProps as A, createElementVNode as s, normalizeStyle as u, createBlock as F, resolveDynamicComponent as D, Fragment as _, createTextVNode as N, toDisplayString as l, renderSlot as v, createCommentVNode as f, renderList as T } from "vue";
|
|
2
2
|
import { resolveIcon as V } from "../../utils/icon.js";
|
|
3
3
|
const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__name-row" }, K = {
|
|
4
4
|
key: 0,
|
|
@@ -12,7 +12,7 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
|
|
|
12
12
|
}, q = { class: "of-persona-card__chevron" }, G = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "of-persona-card__detail"
|
|
15
|
-
}, Q = /* @__PURE__ */
|
|
15
|
+
}, Q = /* @__PURE__ */ w({
|
|
16
16
|
name: "PersonaCard",
|
|
17
17
|
inheritAttrs: !1,
|
|
18
18
|
__name: "PersonaCard",
|
|
@@ -30,64 +30,64 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
|
|
|
30
30
|
size: { default: "md" }
|
|
31
31
|
},
|
|
32
32
|
emits: ["update:expanded", "click"],
|
|
33
|
-
setup(
|
|
34
|
-
const e =
|
|
33
|
+
setup(t, { emit: k }) {
|
|
34
|
+
const e = t, g = k, b = [
|
|
35
35
|
{
|
|
36
|
-
accent: "var(--of-
|
|
37
|
-
bg: "var(--of-
|
|
38
|
-
border: "var(--of-
|
|
39
|
-
tagBg: "var(--of-
|
|
36
|
+
accent: "var(--of-accent-default)",
|
|
37
|
+
bg: "var(--of-surface-muted)",
|
|
38
|
+
border: "var(--of-border-subtle)",
|
|
39
|
+
tagBg: "var(--of-surface-selected)"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
accent: "var(--of-
|
|
43
|
-
bg: "var(--of-
|
|
44
|
-
border: "var(--of-
|
|
45
|
-
tagBg: "var(--of-
|
|
42
|
+
accent: "var(--of-accent-strong)",
|
|
43
|
+
bg: "var(--of-surface-panel)",
|
|
44
|
+
border: "var(--of-border-strong)",
|
|
45
|
+
tagBg: "var(--of-surface-muted)"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
accent: "var(--of-
|
|
49
|
-
bg: "var(--of-
|
|
50
|
-
border: "var(--of-
|
|
51
|
-
tagBg: "var(--of-
|
|
48
|
+
accent: "var(--of-text-strong)",
|
|
49
|
+
bg: "var(--of-surface-selected)",
|
|
50
|
+
border: "var(--of-border-subtle)",
|
|
51
|
+
tagBg: "var(--of-surface-panel)"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
accent: "var(--of-
|
|
55
|
-
bg: "var(--of-
|
|
56
|
-
border: "var(--of-
|
|
57
|
-
tagBg: "var(--of-
|
|
54
|
+
accent: "var(--of-text-secondary)",
|
|
55
|
+
bg: "var(--of-surface-elevated)",
|
|
56
|
+
border: "var(--of-border-subtle)",
|
|
57
|
+
tagBg: "var(--of-surface-muted)"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
|
-
accent: "var(--of-
|
|
61
|
-
bg: "var(--of-
|
|
62
|
-
border: "var(--of-
|
|
63
|
-
tagBg: "var(--of-
|
|
60
|
+
accent: "var(--of-accent-default)",
|
|
61
|
+
bg: "var(--of-surface-muted)",
|
|
62
|
+
border: "var(--of-border-subtle)",
|
|
63
|
+
tagBg: "var(--of-surface-selected)"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
accent: "var(--of-
|
|
67
|
-
bg: "var(--of-
|
|
68
|
-
border: "var(--of-
|
|
69
|
-
tagBg: "var(--of-
|
|
66
|
+
accent: "var(--of-accent-strong)",
|
|
67
|
+
bg: "var(--of-surface-panel)",
|
|
68
|
+
border: "var(--of-border-subtle)",
|
|
69
|
+
tagBg: "var(--of-surface-selected)"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
|
-
accent: "var(--of-
|
|
73
|
-
bg: "var(--of-
|
|
74
|
-
border: "var(--of-
|
|
75
|
-
tagBg: "var(--of-
|
|
72
|
+
accent: "var(--of-text-strong)",
|
|
73
|
+
bg: "var(--of-surface-elevated)",
|
|
74
|
+
border: "var(--of-border-strong)",
|
|
75
|
+
tagBg: "var(--of-surface-muted)"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
accent: "var(--of-
|
|
79
|
-
bg: "var(--of-
|
|
80
|
-
border: "var(--of-
|
|
81
|
-
tagBg: "var(--of-
|
|
78
|
+
accent: "var(--of-text-secondary)",
|
|
79
|
+
bg: "var(--of-surface-selected)",
|
|
80
|
+
border: "var(--of-border-subtle)",
|
|
81
|
+
tagBg: "var(--of-surface-panel)"
|
|
82
82
|
}
|
|
83
83
|
];
|
|
84
84
|
function x(a) {
|
|
85
|
-
let
|
|
86
|
-
for (let
|
|
87
|
-
|
|
88
|
-
return Math.abs(
|
|
85
|
+
let c = 0;
|
|
86
|
+
for (let d = 0; d < a.length; d++)
|
|
87
|
+
c = (c << 5) - c + a.charCodeAt(d), c |= 0;
|
|
88
|
+
return Math.abs(c);
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const i = o(() => {
|
|
91
91
|
if (e.color) {
|
|
92
92
|
const a = e.color.replace("#", "");
|
|
93
93
|
return {
|
|
@@ -98,15 +98,15 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
|
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
100
|
return b[x(e.name) % b.length];
|
|
101
|
-
}), p =
|
|
101
|
+
}), p = o(() => e.size === "sm" ? 24 : 32), m = o(() => e.size === "sm" ? 12 : 16), B = o(() => e.size === "sm" ? 12 : 13), z = o(() => e.size === "sm" ? 11 : 12), y = o(() => {
|
|
102
102
|
if (e.icon)
|
|
103
103
|
return V(e.icon);
|
|
104
|
-
}), S =
|
|
104
|
+
}), S = o(() => {
|
|
105
105
|
if (e.icon && typeof e.icon == "string") return e.icon;
|
|
106
106
|
if (e.icon) return "";
|
|
107
107
|
const a = e.name.trim();
|
|
108
108
|
return a ? a.charAt(0) : "?";
|
|
109
|
-
}), $ =
|
|
109
|
+
}), $ = o(() => [
|
|
110
110
|
"of-persona-card",
|
|
111
111
|
`of-persona-card--${e.size}`,
|
|
112
112
|
{
|
|
@@ -115,74 +115,74 @@ const H = { class: "of-persona-card__body" }, I = { class: "of-persona-card__nam
|
|
|
115
115
|
"of-persona-card--disabled": e.disabled,
|
|
116
116
|
"of-persona-card--expanded": e.expanded
|
|
117
117
|
}
|
|
118
|
-
]), C =
|
|
119
|
-
"--pc-accent":
|
|
120
|
-
"--pc-accent-bg":
|
|
121
|
-
"--pc-accent-border":
|
|
122
|
-
"--pc-accent-tag-bg":
|
|
123
|
-
})),
|
|
118
|
+
]), C = o(() => ({
|
|
119
|
+
"--pc-accent": i.value.accent,
|
|
120
|
+
"--pc-accent-bg": i.value.bg,
|
|
121
|
+
"--pc-accent-border": i.value.border,
|
|
122
|
+
"--pc-accent-tag-bg": i.value.tagBg
|
|
123
|
+
})), E = o(() => ({
|
|
124
124
|
width: `${p.value}px`,
|
|
125
125
|
height: `${p.value}px`,
|
|
126
126
|
fontSize: `${m.value}px`
|
|
127
127
|
}));
|
|
128
|
-
function
|
|
129
|
-
e.disabled || (
|
|
128
|
+
function h() {
|
|
129
|
+
e.disabled || (g("update:expanded", !e.expanded), g("click"));
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
a.key !== "Enter" && a.key !== " " || (a.preventDefault(),
|
|
131
|
+
function P(a) {
|
|
132
|
+
a.key !== "Enter" && a.key !== " " || (a.preventDefault(), h());
|
|
133
133
|
}
|
|
134
|
-
return (a,
|
|
134
|
+
return (a, c) => (r(), n("div", A({
|
|
135
135
|
class: $.value,
|
|
136
136
|
style: C.value
|
|
137
137
|
}, a.$attrs), [
|
|
138
|
-
|
|
138
|
+
s("div", {
|
|
139
139
|
class: "of-persona-card__header",
|
|
140
140
|
role: "button",
|
|
141
141
|
tabindex: "0",
|
|
142
|
-
onClick:
|
|
143
|
-
onKeydown:
|
|
142
|
+
onClick: h,
|
|
143
|
+
onKeydown: P
|
|
144
144
|
}, [
|
|
145
|
-
|
|
145
|
+
s("span", {
|
|
146
146
|
class: "of-persona-card__avatar",
|
|
147
|
-
style:
|
|
147
|
+
style: u(E.value)
|
|
148
148
|
}, [
|
|
149
|
-
|
|
149
|
+
y.value ? (r(), F(D(y.value), {
|
|
150
150
|
key: 0,
|
|
151
151
|
size: m.value
|
|
152
|
-
}, null, 8, ["size"])) : (
|
|
152
|
+
}, null, 8, ["size"])) : (r(), n(_, { key: 1 }, [
|
|
153
153
|
N(l(S.value), 1)
|
|
154
154
|
], 64))
|
|
155
155
|
], 4),
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
s("div", H, [
|
|
157
|
+
s("div", I, [
|
|
158
|
+
s("span", {
|
|
159
159
|
class: "of-persona-card__name",
|
|
160
|
-
style:
|
|
161
|
-
}, l(
|
|
160
|
+
style: u({ fontSize: `${B.value}px` })
|
|
161
|
+
}, l(t.name), 5),
|
|
162
162
|
v(a.$slots, "badge", {}, void 0, !0),
|
|
163
|
-
|
|
163
|
+
t.title ? (r(), n("span", K, l(t.title), 1)) : f("", !0)
|
|
164
164
|
]),
|
|
165
|
-
|
|
165
|
+
t.subtitle ? (r(), n("span", {
|
|
166
166
|
key: 0,
|
|
167
167
|
class: "of-persona-card__subtitle",
|
|
168
|
-
style:
|
|
169
|
-
}, l(
|
|
170
|
-
|
|
171
|
-
(
|
|
172
|
-
key:
|
|
168
|
+
style: u({ fontSize: `${z.value}px` })
|
|
169
|
+
}, l(t.subtitle), 5)) : f("", !0),
|
|
170
|
+
t.tags && t.tags.length > 0 ? (r(), n("div", L, [
|
|
171
|
+
(r(!0), n(_, null, T(t.tags, (d) => (r(), n("span", {
|
|
172
|
+
key: d,
|
|
173
173
|
class: "of-persona-card__tag"
|
|
174
|
-
}, l(
|
|
175
|
-
])) :
|
|
174
|
+
}, l(d), 1))), 128))
|
|
175
|
+
])) : f("", !0)
|
|
176
176
|
]),
|
|
177
|
-
|
|
177
|
+
s("div", M, [
|
|
178
178
|
v(a.$slots, "actions", {}, void 0, !0),
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
t.done ? (r(), n("span", j, "✓")) : f("", !0),
|
|
180
|
+
s("span", q, l(t.expanded ? "▲" : "▼"), 1)
|
|
181
181
|
])
|
|
182
182
|
], 32),
|
|
183
|
-
|
|
183
|
+
t.expanded ? (r(), n("div", G, [
|
|
184
184
|
v(a.$slots, "default", {}, void 0, !0)
|
|
185
|
-
])) :
|
|
185
|
+
])) : f("", !0)
|
|
186
186
|
], 16));
|
|
187
187
|
}
|
|
188
188
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ProgressBar.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-ea5a43a9"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as f, computed as r, openBlock as l, createElementBlock as d, mergeProps as p, createElementVNode as a, normalizeStyle as c, normalizeClass as v, renderSlot as b, toDisplayString as g, createCommentVNode as m } from "vue";
|
|
2
|
+
const _ = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "of-progress-bar__label"
|
|
5
|
-
}, h = { class: "of-progress-bar__slot" }, y = { class: "of-progress-bar__value" }, $ = /* @__PURE__ */
|
|
5
|
+
}, h = { class: "of-progress-bar__slot" }, y = { class: "of-progress-bar__value" }, $ = /* @__PURE__ */ f({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "ProgressBar",
|
|
8
8
|
props: {
|
|
9
9
|
value: {},
|
|
10
10
|
height: { default: 4 },
|
|
11
11
|
color: { default: void 0 },
|
|
12
|
-
bgColor: { default: "var(--of-color-gray-100)" },
|
|
12
|
+
bgColor: { default: "var(--of-surface-muted, var(--of-color-gray-100))" },
|
|
13
13
|
showLabel: { type: Boolean, default: !1 },
|
|
14
14
|
borderRadius: { default: 2 }
|
|
15
15
|
},
|
|
16
16
|
setup(s) {
|
|
17
|
-
const e = s, o = r(() => Math.min(100, Math.max(0, e.value))),
|
|
18
|
-
() => o.value === 100 ? "var(--of-
|
|
19
|
-
),
|
|
17
|
+
const e = s, o = r(() => Math.min(100, Math.max(0, e.value))), n = r(
|
|
18
|
+
() => o.value === 100 ? "var(--of-text-strong, var(--of-accent-strong))" : e.color ?? "var(--of-accent-default)"
|
|
19
|
+
), u = r(() => ({
|
|
20
20
|
height: `${e.height}px`,
|
|
21
21
|
backgroundColor: e.bgColor,
|
|
22
22
|
borderRadius: `${e.borderRadius}px`
|
|
23
|
-
})),
|
|
23
|
+
})), i = r(() => ({
|
|
24
24
|
width: `${o.value}%`,
|
|
25
|
-
background:
|
|
25
|
+
background: n.value,
|
|
26
26
|
borderRadius: `${e.borderRadius}px`
|
|
27
27
|
}));
|
|
28
|
-
return (
|
|
28
|
+
return (t, k) => (l(), d("div", p({ class: "of-progress-bar" }, t.$attrs), [
|
|
29
29
|
a("div", {
|
|
30
30
|
class: "of-progress-bar__track pb",
|
|
31
|
-
style: c(
|
|
31
|
+
style: c(u.value)
|
|
32
32
|
}, [
|
|
33
33
|
a("div", {
|
|
34
34
|
class: v(["of-progress-bar__fill pf", { dn: o.value === 100 }]),
|
|
35
|
-
style: c(
|
|
35
|
+
style: c(i.value)
|
|
36
36
|
}, null, 6)
|
|
37
37
|
], 4),
|
|
38
|
-
s.showLabel ? (
|
|
38
|
+
s.showLabel ? (l(), d("div", _, [
|
|
39
39
|
a("div", h, [
|
|
40
|
-
b(
|
|
40
|
+
b(t.$slots, "default", {}, void 0, !0)
|
|
41
41
|
]),
|
|
42
|
-
a("span", y,
|
|
43
|
-
])) :
|
|
42
|
+
a("span", y, g(o.value) + "%", 1)
|
|
43
|
+
])) : m("", !0)
|
|
44
44
|
], 16));
|
|
45
45
|
}
|
|
46
46
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RangeSlider.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9de86f92"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./RefTag.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const m = /* @__PURE__ */
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9057023c"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as u, computed as a, openBlock as l, createBlock as s, resolveDynamicComponent as f, mergeProps as d, withCtx as v, createCommentVNode as g, createElementVNode as m, renderSlot as p } from "vue";
|
|
2
2
|
import { resolveIcon as h } from "../../utils/icon.js";
|
|
3
|
-
const b = { class: "one-ref-tag__text" },
|
|
3
|
+
const b = { class: "one-ref-tag__text" }, C = /* @__PURE__ */ u({
|
|
4
4
|
name: "RefTag",
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "RefTag",
|
|
@@ -12,35 +12,35 @@ const b = { class: "one-ref-tag__text" }, S = /* @__PURE__ */ d({
|
|
|
12
12
|
href: { default: void 0 }
|
|
13
13
|
},
|
|
14
14
|
setup(e) {
|
|
15
|
-
const o = e,
|
|
15
|
+
const o = e, n = {
|
|
16
16
|
spec: {
|
|
17
17
|
icon: "file-text",
|
|
18
|
-
color: "var(--of-
|
|
19
|
-
bg: "var(--of-
|
|
18
|
+
color: "var(--of-text-strong)",
|
|
19
|
+
bg: "var(--of-surface-selected)"
|
|
20
20
|
},
|
|
21
|
-
wiki: { icon: "book-open", color: "var(--of-
|
|
22
|
-
task: { icon: "link", color: "var(--of-
|
|
23
|
-
},
|
|
24
|
-
const
|
|
25
|
-
return h(
|
|
26
|
-
}), i =
|
|
27
|
-
"--one-ref-tag-color": o.color ??
|
|
28
|
-
"--one-ref-tag-bg": o.bg ??
|
|
21
|
+
wiki: { icon: "book-open", color: "var(--of-text-secondary)", bg: "var(--of-surface-muted)" },
|
|
22
|
+
task: { icon: "link", color: "var(--of-accent-strong)", bg: "var(--of-surface-panel)" }
|
|
23
|
+
}, r = a(() => n[o.type ?? ""] ?? n.spec), c = a(() => {
|
|
24
|
+
const t = o.icon ?? r.value.icon;
|
|
25
|
+
return h(t);
|
|
26
|
+
}), i = a(() => ({
|
|
27
|
+
"--one-ref-tag-color": o.color ?? r.value.color,
|
|
28
|
+
"--one-ref-tag-bg": o.bg ?? r.value.bg
|
|
29
29
|
}));
|
|
30
|
-
return (
|
|
30
|
+
return (t, k) => (l(), s(f(e.href ? "a" : "span"), d({
|
|
31
31
|
class: "one-ref-tag",
|
|
32
32
|
style: i.value,
|
|
33
33
|
href: e.href ?? void 0,
|
|
34
34
|
target: e.href ? "_blank" : void 0,
|
|
35
35
|
rel: e.href ? "noopener noreferrer" : void 0
|
|
36
|
-
},
|
|
37
|
-
default:
|
|
38
|
-
|
|
36
|
+
}, t.$attrs), {
|
|
37
|
+
default: v(() => [
|
|
38
|
+
c.value ? (l(), s(f(c.value), {
|
|
39
39
|
key: 0,
|
|
40
40
|
class: "one-ref-tag__icon"
|
|
41
|
-
})) :
|
|
41
|
+
})) : g("", !0),
|
|
42
42
|
m("span", b, [
|
|
43
|
-
p(
|
|
43
|
+
p(t.$slots, "default", {}, void 0, !0)
|
|
44
44
|
])
|
|
45
45
|
]),
|
|
46
46
|
_: 3
|
|
@@ -48,5 +48,5 @@ const b = { class: "one-ref-tag__text" }, S = /* @__PURE__ */ d({
|
|
|
48
48
|
}
|
|
49
49
|
});
|
|
50
50
|
export {
|
|
51
|
-
|
|
51
|
+
C as default
|
|
52
52
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SearchHighlight.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6504e048"]]);
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./SectionBlock.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-68f4a61c"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|