@oneflowui/ui 0.5.5 → 0.5.7
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/ContextMenu/index.vue.js +2 -2
- package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
- package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
- package/dist/components/Dashboard/index.vue.d.ts +2 -1
- package/dist/components/Dashboard/index.vue.js +2 -2
- package/dist/components/ai/AiSender.vue.js +2 -2
- package/dist/components/ai/AiSender.vue2.js +8 -7
- package/dist/components/auxiliary/ColorPanel.vue.js +2 -2
- package/dist/components/auxiliary/ColorPanel.vue2.js +25 -23
- package/dist/components/auxiliary/FileUpload.vue.js +2 -2
- package/dist/components/auxiliary/FileUpload.vue2.js +1 -0
- package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
- package/dist/components/auxiliary/PersonPanel.vue2.js +2 -1
- package/dist/components/base/Accordion.vue.js +1 -1
- package/dist/components/base/Avatar.vue.d.ts +3 -0
- package/dist/components/base/Avatar.vue.js +4 -4
- package/dist/components/base/Avatar.vue2.js +8 -8
- package/dist/components/base/Badge.vue.d.ts +2 -0
- package/dist/components/base/Badge.vue.js +2 -2
- package/dist/components/base/Badge.vue2.js +2 -2
- package/dist/components/base/ButtonGroup.vue.js +2 -2
- package/dist/components/base/ButtonGroup.vue2.js +2 -2
- package/dist/components/base/ChainItem.vue.d.ts +6 -0
- package/dist/components/base/ChainItem.vue.js +2 -2
- package/dist/components/base/ChainItem.vue2.js +17 -17
- package/dist/components/base/DropdownMenu.vue.js +2 -2
- package/dist/components/base/DropdownMenu.vue2.js +22 -20
- package/dist/components/base/EmptyState.vue.js +2 -2
- package/dist/components/base/EmptyState.vue2.js +2 -2
- package/dist/components/base/InfoCard.vue.d.ts +9 -0
- package/dist/components/base/InfoCard.vue.js +2 -2
- package/dist/components/base/InfoCard.vue2.js +65 -57
- package/dist/components/base/MonitorItem.vue.js +2 -2
- package/dist/components/base/MonitorItem.vue2.js +33 -25
- package/dist/components/base/PersonaCard.vue.d.ts +5 -0
- package/dist/components/base/PersonaCard.vue.js +3 -3
- package/dist/components/base/PersonaCard.vue2.js +56 -50
- package/dist/components/base/ProgressBar.vue.d.ts +1 -0
- package/dist/components/base/ProgressBar.vue.js +2 -2
- package/dist/components/base/ProgressBar.vue2.js +10 -10
- package/dist/components/base/RangeSlider.vue.d.ts +15 -0
- package/dist/components/base/RangeSlider.vue.js +1 -1
- package/dist/components/base/RangeSlider.vue2.js +22 -15
- package/dist/components/base/RefTag.vue.d.ts +4 -0
- package/dist/components/base/RefTag.vue.js +3 -3
- package/dist/components/base/RefTag.vue2.js +14 -14
- package/dist/components/base/SearchHighlight.vue.js +1 -1
- package/dist/components/base/SectionBlock.vue.js +2 -2
- package/dist/components/base/SectionBlock.vue2.js +54 -48
- package/dist/components/base/SelectBadge.vue.d.ts +5 -0
- package/dist/components/base/SelectBadge.vue.js +3 -3
- package/dist/components/base/SelectBadge.vue2.js +36 -28
- package/dist/components/base/StatisticCard.vue.js +1 -1
- package/dist/components/base/StatusIndicator.vue.js +2 -2
- package/dist/components/base/StatusIndicator.vue2.js +2 -2
- package/dist/components/base/StatusSummary.vue.js +2 -2
- 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 +2 -2
- package/dist/components/base/ViewModeGroup.vue.js +1 -1
- package/dist/components/base/ViewModeGroup.vue2.js +3 -3
- package/dist/components/base/ViewSwitcher.vue.js +1 -1
- package/dist/components/base/ViewSwitcher.vue2.js +3 -3
- package/dist/components/base/ViewTab.vue.js +1 -1
- package/dist/components/base/ViewTab.vue2.js +5 -6
- package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
- package/dist/components/breadcrumb/BreadcrumbItem.vue.js +2 -2
- package/dist/components/detail/PropPanel.vue.js +2 -2
- package/dist/components/detail/PropPanel.vue2.js +34 -30
- package/dist/components/detail/PropRow.vue.d.ts +6 -0
- package/dist/components/detail/PropRow.vue.js +2 -2
- package/dist/components/detail/PropRow.vue2.js +24 -24
- package/dist/components/editor/BlockQuote.vue.d.ts +2 -1
- package/dist/components/editor/BlockQuote.vue.js +1 -1
- package/dist/components/editor/BlockQuote.vue2.js +43 -29
- package/dist/components/editor/ContentBlock.vue.d.ts +4 -2
- package/dist/components/editor/ContentBlock.vue.js +2 -2
- package/dist/components/editor/ContentBlock.vue2.js +54 -33
- package/dist/components/editor/RichTextEditor.vue.js +2 -2
- package/dist/components/editor/RichTextEditor.vue2.js +10 -14
- package/dist/components/field/FieldAttachment.vue.js +2 -2
- package/dist/components/field/FieldAttachment.vue2.js +30 -32
- package/dist/components/field/FieldAutoNumber.vue.js +2 -2
- package/dist/components/field/FieldCheckbox.vue.js +2 -2
- package/dist/components/field/FieldCheckbox.vue2.js +13 -11
- package/dist/components/field/FieldCreator.vue.js +2 -2
- package/dist/components/field/FieldCurrency.vue.js +2 -2
- package/dist/components/field/FieldCurrency.vue2.js +15 -14
- package/dist/components/field/FieldDate.vue.js +1 -1
- package/dist/components/field/FieldDate.vue2.js +14 -16
- package/dist/components/field/FieldDatetime.vue.js +1 -1
- package/dist/components/field/FieldDatetime.vue2.js +12 -11
- package/dist/components/field/FieldEmail.vue.js +2 -2
- package/dist/components/field/FieldEmail.vue2.js +14 -13
- package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
- package/dist/components/field/FieldMultiSelect.vue.d.ts +2 -2
- package/dist/components/field/FieldMultiSelect.vue.js +2 -2
- package/dist/components/field/FieldMultiSelect.vue2.js +80 -75
- package/dist/components/field/FieldNumber.vue.js +3 -3
- package/dist/components/field/FieldNumber.vue2.js +19 -18
- package/dist/components/field/FieldPhone.vue.js +2 -2
- package/dist/components/field/FieldPhone.vue2.js +12 -11
- package/dist/components/field/FieldProgress.vue.js +1 -1
- package/dist/components/field/FieldProgress.vue2.js +18 -17
- package/dist/components/field/FieldRating.vue.js +2 -2
- package/dist/components/field/FieldRating.vue2.js +22 -16
- package/dist/components/field/FieldRelation.vue.js +1 -1
- package/dist/components/field/FieldRelation.vue2.js +25 -22
- package/dist/components/field/FieldRichText.vue.js +1 -1
- package/dist/components/field/FieldRichText.vue2.js +10 -7
- package/dist/components/field/FieldSelect.vue.js +2 -2
- package/dist/components/field/FieldSelect.vue2.js +81 -63
- package/dist/components/field/FieldText.vue.js +2 -2
- package/dist/components/field/FieldText.vue2.js +17 -16
- package/dist/components/field/FieldUrl.vue.js +2 -2
- package/dist/components/field/FieldUrl.vue2.js +17 -16
- package/dist/components/form/FormDesigner.vue.js +2 -2
- package/dist/components/form/FormDesigner.vue2.js +83 -78
- package/dist/components/gallery/GalleryCard.vue.d.ts +1 -1
- package/dist/components/gallery/GalleryCard.vue.js +2 -2
- package/dist/components/gallery/GalleryCard.vue2.js +2 -1
- package/dist/components/kanban/KanbanCard.vue.d.ts +3 -1
- package/dist/components/kanban/KanbanCard.vue.js +1 -1
- package/dist/components/kanban/KanbanCard.vue2.js +15 -14
- package/dist/components/kanban/KanbanColumn.vue.d.ts +2 -0
- package/dist/components/kanban/KanbanColumn.vue.js +2 -2
- package/dist/components/kanban/KanbanColumn.vue2.js +9 -9
- package/dist/components/kanban/QuickAddRow.vue.js +2 -2
- package/dist/components/kanban/QuickAddRow.vue2.js +15 -14
- package/dist/components/layout/Navbar.vue.js +3 -3
- package/dist/components/layout/Navbar.vue2.js +5 -4
- package/dist/components/layout/Sidebar.vue.js +2 -2
- package/dist/components/layout/Sidebar.vue2.js +1 -1
- package/dist/components/mermaid/MermaidChart.vue.js +2 -2
- package/dist/components/mermaid/MermaidChart.vue2.js +17 -17
- package/dist/components/overlay/Dialog.vue.d.ts +1 -0
- package/dist/components/overlay/Dialog.vue.js +1 -1
- package/dist/components/overlay/Dialog.vue2.js +9 -9
- package/dist/components/overlay/Drawer.vue.d.ts +1 -0
- package/dist/components/overlay/Drawer.vue.js +2 -2
- package/dist/components/overlay/Drawer.vue2.js +35 -29
- package/dist/components/overlay/Modal.vue.d.ts +1 -0
- package/dist/components/overlay/Modal.vue.js +1 -1
- package/dist/components/overlay/Modal.vue2.js +34 -28
- package/dist/components/overlay/SidePanel.vue.d.ts +1 -0
- package/dist/components/overlay/SidePanel.vue.js +1 -1
- package/dist/components/overlay/SidePanel.vue2.js +6 -6
- package/dist/components/split/SplitPane.vue.js +2 -2
- package/dist/components/split/SplitPane.vue2.js +11 -9
- package/dist/components/table/ColumnHeaderMenu.vue.d.ts +2 -0
- package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
- package/dist/components/table/ColumnHeaderMenu.vue2.js +42 -36
- package/dist/components/table/DataTable.vue.d.ts +12 -5
- package/dist/components/table/DataTable.vue.js +4 -4
- package/dist/components/table/DataTable.vue2.js +535 -477
- package/dist/components/table/DetailSheet.vue.js +2 -2
- package/dist/components/table/DetailSheet.vue2.js +45 -40
- package/dist/components/table/FieldCell.vue.d.ts +2 -1
- package/dist/components/table/FieldCell.vue.js +1 -1
- package/dist/components/table/FieldCell.vue2.js +57 -48
- package/dist/components/table/FieldTypePicker.vue.d.ts +1 -0
- package/dist/components/table/FieldTypePicker.vue.js +4 -4
- package/dist/components/table/FieldTypePicker.vue2.js +1 -1
- package/dist/components/table/MobileListView.vue.d.ts +26 -3
- package/dist/components/table/MobileListView.vue.js +2 -2
- package/dist/components/table/MobileListView.vue2.js +65 -49
- package/dist/components/table/TableColumnManager.vue.js +1 -1
- package/dist/components/table/TableColumnManager.vue2.js +29 -28
- package/dist/components/table/TableDataRow.vue.d.ts +2 -0
- package/dist/components/table/TableDataRow.vue.js +4 -4
- package/dist/components/table/TableDataRow.vue2.js +70 -58
- package/dist/components/table/TableFilterPanel.vue.js +2 -2
- package/dist/components/table/TableFilterPanel.vue2.js +3 -0
- package/dist/components/table/TableGroupRow.vue.d.ts +2 -0
- package/dist/components/table/TableGroupRow.vue.js +2 -2
- package/dist/components/table/TableGroupRow.vue2.js +35 -30
- package/dist/components/table/TableHeaderRow.vue.js +3 -3
- package/dist/components/table/TableHeaderRow.vue2.js +63 -46
- package/dist/components/table/TableToolbar.vue.js +1 -1
- package/dist/components/table/TableToolbar.vue2.js +2 -2
- package/dist/components/tabs/TabPanel.vue.js +4 -4
- package/dist/components/tabs/TabPanel.vue2.js +1 -1
- package/dist/components/tabs/Tabs.vue.js +2 -2
- package/dist/components/tabs/Tabs.vue2.js +2 -2
- package/dist/components/timeline/GanttRow.vue.d.ts +2 -0
- package/dist/components/timeline/GanttRow.vue.js +2 -2
- package/dist/components/timeline/GanttRow.vue2.js +68 -52
- package/dist/components/timeline/GanttTimeline.vue.d.ts +6 -0
- package/dist/components/timeline/GanttTimeline.vue.js +2 -2
- package/dist/components/timeline/GanttTimeline.vue2.js +24 -24
- package/dist/composables/useKeyboardNavigation.d.ts +1 -1
- package/dist/composables/useRowDrag.d.ts +6 -4
- package/dist/composables/useRowDrag.js +24 -24
- package/dist/composables/useSupabaseProvider.d.ts +8 -1
- package/dist/composables/useTableData.d.ts +5 -3
- package/dist/composables/useTableGroup.d.ts +2 -2
- package/dist/composables/useViewPersistence.d.ts +32 -3
- package/dist/composables/useVirtualList.js +60 -59
- package/dist/plugin.js +103 -102
- package/dist/style.css +1 -1
- package/dist/utils/echarts.d.ts +1 -0
- package/dist/utils/supabaseSchema.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as g, ref as m, openBlock as a, createElementBlock as o, Fragment as _, renderList as k, createElementVNode as i, toDisplayString as b, createCommentVNode as C } from "vue";
|
|
2
|
+
const A = {
|
|
3
|
+
class: "of-field-attachment",
|
|
4
|
+
role: "group",
|
|
5
|
+
"aria-label": "附件编辑器"
|
|
6
|
+
}, F = {
|
|
3
7
|
key: 0,
|
|
4
8
|
class: "of-field-attachment-list"
|
|
5
|
-
}, N = { class: "of-field-attachment-name" },
|
|
9
|
+
}, N = { class: "of-field-attachment-name" }, B = ["onClick"], E = /* @__PURE__ */ g({
|
|
6
10
|
__name: "FieldAttachment",
|
|
7
11
|
props: {
|
|
8
12
|
value: { type: [String, Number, Boolean, Array, null] },
|
|
@@ -10,44 +14,37 @@ const F = {
|
|
|
10
14
|
},
|
|
11
15
|
emits: ["commit", "cancel", "tabNext"],
|
|
12
16
|
setup(p, { emit: d }) {
|
|
13
|
-
const
|
|
14
|
-
Array.isArray(
|
|
17
|
+
const l = p, s = d, e = m(
|
|
18
|
+
Array.isArray(l.value) ? l.value.filter((t) => typeof t == "string") : typeof l.value == "string" && l.value ? [l.value] : []
|
|
15
19
|
), u = m(null);
|
|
16
20
|
function v() {
|
|
17
|
-
var
|
|
18
|
-
(
|
|
21
|
+
var t;
|
|
22
|
+
(t = u.value) == null || t.click();
|
|
19
23
|
}
|
|
20
|
-
function
|
|
21
|
-
var
|
|
22
|
-
const
|
|
23
|
-
if (!((
|
|
24
|
-
const
|
|
25
|
-
|
|
24
|
+
function h(t) {
|
|
25
|
+
var n;
|
|
26
|
+
const r = t.target;
|
|
27
|
+
if (!((n = r.files) != null && n.length)) return;
|
|
28
|
+
const c = Array.from(r.files).map((f) => f.name);
|
|
29
|
+
e.value = [...e.value, ...c], s("commit", e.value.length > 0 ? e.value : null);
|
|
26
30
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
31
|
+
function y(t) {
|
|
32
|
+
e.value.splice(t, 1), s("commit", e.value.length > 0 ? [...e.value] : null);
|
|
29
33
|
}
|
|
30
|
-
|
|
31
|
-
e.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class: "of-field-attachment",
|
|
35
|
-
tabindex: "0",
|
|
36
|
-
onKeydown: g
|
|
37
|
-
}, [
|
|
38
|
-
t.value.length > 0 ? (a(), o("div", F, [
|
|
39
|
-
(a(!0), o(k, null, b(t.value, (r, l) => (a(), o("div", {
|
|
40
|
-
key: l,
|
|
34
|
+
return (t, r) => (a(), o("div", A, [
|
|
35
|
+
e.value.length > 0 ? (a(), o("div", F, [
|
|
36
|
+
(a(!0), o(_, null, k(e.value, (c, n) => (a(), o("div", {
|
|
37
|
+
key: n,
|
|
41
38
|
class: "of-field-attachment-item"
|
|
42
39
|
}, [
|
|
43
|
-
i("span", N,
|
|
40
|
+
i("span", N, b(c), 1),
|
|
44
41
|
i("button", {
|
|
45
42
|
type: "button",
|
|
46
43
|
class: "of-field-attachment-remove",
|
|
47
|
-
onClick: (f) =>
|
|
48
|
-
}, "×", 8,
|
|
44
|
+
onClick: (f) => y(n)
|
|
45
|
+
}, " × ", 8, B)
|
|
49
46
|
]))), 128))
|
|
50
|
-
])) :
|
|
47
|
+
])) : C("", !0),
|
|
51
48
|
i("button", {
|
|
52
49
|
type: "button",
|
|
53
50
|
class: "of-field-attachment-add",
|
|
@@ -58,10 +55,11 @@ const F = {
|
|
|
58
55
|
ref: u,
|
|
59
56
|
type: "file",
|
|
60
57
|
multiple: "",
|
|
58
|
+
"aria-label": "选择附件",
|
|
61
59
|
style: { display: "none" },
|
|
62
|
-
onChange:
|
|
60
|
+
onChange: h
|
|
63
61
|
}, null, 544)
|
|
64
|
-
]
|
|
62
|
+
]));
|
|
65
63
|
}
|
|
66
64
|
});
|
|
67
65
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FieldAutoNumber.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-82b70c99"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FieldCheckbox.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9a1ca06f"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,27 +1,29 @@
|
|
|
1
|
-
import { defineComponent as s, computed as
|
|
2
|
-
const k = { class: "of-field-checkbox__icon" }, x = /* @__PURE__ */ s({
|
|
1
|
+
import { defineComponent as s, computed as r, openBlock as f, createElementBlock as d, withModifiers as p, createElementVNode as m, toDisplayString as u } from "vue";
|
|
2
|
+
const k = ["aria-checked"], _ = { class: "of-field-checkbox__icon" }, x = /* @__PURE__ */ s({
|
|
3
3
|
__name: "FieldCheckbox",
|
|
4
4
|
props: {
|
|
5
5
|
value: {},
|
|
6
6
|
field: {}
|
|
7
7
|
},
|
|
8
8
|
emits: ["commit", "cancel", "tabNext"],
|
|
9
|
-
setup(n, { emit:
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
t("commit", !
|
|
9
|
+
setup(n, { emit: a }) {
|
|
10
|
+
const i = n, t = a, c = r(() => !!i.value);
|
|
11
|
+
function o() {
|
|
12
|
+
t("commit", !c.value);
|
|
13
13
|
}
|
|
14
14
|
function l(e) {
|
|
15
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
15
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), o()), e.key === "Escape" && (e.preventDefault(), t("cancel")), e.key === "Tab" && (e.preventDefault(), t("tabNext"));
|
|
16
16
|
}
|
|
17
|
-
return (e,
|
|
17
|
+
return (e, h) => (f(), d("div", {
|
|
18
18
|
class: "of-field-checkbox",
|
|
19
|
+
role: "checkbox",
|
|
20
|
+
"aria-checked": c.value,
|
|
19
21
|
tabindex: "0",
|
|
20
|
-
onClick:
|
|
22
|
+
onClick: p(o, ["stop"]),
|
|
21
23
|
onKeydown: l
|
|
22
24
|
}, [
|
|
23
|
-
|
|
24
|
-
],
|
|
25
|
+
m("span", _, u(c.value ? "☑" : "☐"), 1)
|
|
26
|
+
], 40, k));
|
|
25
27
|
}
|
|
26
28
|
});
|
|
27
29
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FieldCreator.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e68ff06a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FieldCurrency.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-891caf93"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as p, ref as
|
|
2
|
-
const D = { class: "of-field-currency" }, g = { class: "of-field-currency-symbol" },
|
|
1
|
+
import { defineComponent as p, ref as a, onMounted as y, nextTick as v, openBlock as b, createElementBlock as N, createElementVNode as s, toDisplayString as k, unref as x, withDirectives as _, vModelText as C } from "vue";
|
|
2
|
+
const D = { class: "of-field-currency" }, g = { class: "of-field-currency-symbol" }, B = ["aria-label"], S = /* @__PURE__ */ p({
|
|
3
3
|
__name: "FieldCurrency",
|
|
4
4
|
props: {
|
|
5
5
|
value: { type: [String, Number, Boolean, Array, null] },
|
|
6
6
|
field: {}
|
|
7
7
|
},
|
|
8
8
|
emits: ["commit", "cancel", "tabNext"],
|
|
9
|
-
setup(
|
|
10
|
-
const n =
|
|
9
|
+
setup(i, { emit: f }) {
|
|
10
|
+
const n = i, l = f, u = a(null), o = a(n.value === null || n.value === void 0 ? "" : String(n.value)), d = n.field.type === "currency" && "currencyCode" in n.field && n.field.currencyCode === "CNY" ? "¥" : "$";
|
|
11
11
|
y(() => v(() => {
|
|
12
12
|
var e;
|
|
13
13
|
return (e = u.value) == null ? void 0 : e.focus();
|
|
@@ -17,26 +17,27 @@ const D = { class: "of-field-currency" }, g = { class: "of-field-currency-symbol
|
|
|
17
17
|
const e = o.value.replace(/[^0-9.-]/g, ""), t = Number(e);
|
|
18
18
|
return Number.isNaN(t) ? null : t;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function m(e) {
|
|
21
21
|
e.key === "Enter" && (e.preventDefault(), l("commit", r())), e.key === "Escape" && (e.preventDefault(), l("cancel")), e.key === "Tab" && (e.preventDefault(), l("commit", r()), l("tabNext"));
|
|
22
22
|
}
|
|
23
|
-
return (e, t) => (
|
|
24
|
-
|
|
25
|
-
_(
|
|
23
|
+
return (e, t) => (b(), N("div", D, [
|
|
24
|
+
s("span", g, k(x(d)), 1),
|
|
25
|
+
_(s("input", {
|
|
26
26
|
ref_key: "inputRef",
|
|
27
27
|
ref: u,
|
|
28
|
+
"onUpdate:modelValue": t[0] || (t[0] = (c) => o.value = c),
|
|
29
|
+
inputmode: "decimal",
|
|
28
30
|
class: "of-field-input",
|
|
29
31
|
type: "text",
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, null, 544), [
|
|
32
|
+
"aria-label": i.field.label,
|
|
33
|
+
onKeydown: m,
|
|
34
|
+
onBlur: t[1] || (t[1] = (c) => l("commit", r()))
|
|
35
|
+
}, null, 40, B), [
|
|
35
36
|
[C, o.value]
|
|
36
37
|
])
|
|
37
38
|
]));
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
41
|
export {
|
|
41
|
-
|
|
42
|
+
S as default
|
|
42
43
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FieldDate.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-29e2d8b1"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { defineComponent as m, ref as
|
|
2
|
-
|
|
3
|
-
const b = /* @__PURE__ */ m({
|
|
1
|
+
import { defineComponent as m, ref as u, onMounted as p, nextTick as s, withDirectives as v, openBlock as d, createElementBlock as y, vModelText as b } from "vue";
|
|
2
|
+
const k = ["aria-label"], D = /* @__PURE__ */ m({
|
|
4
3
|
__name: "FieldDate",
|
|
5
4
|
props: {
|
|
6
5
|
value: { type: [String, Number, Boolean, Array, null] },
|
|
@@ -8,29 +7,28 @@ const b = /* @__PURE__ */ m({
|
|
|
8
7
|
},
|
|
9
8
|
emits: ["commit", "cancel", "tabNext"],
|
|
10
9
|
setup(a, { emit: r }) {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const o = i(null), n = i(String(p.value ?? ""));
|
|
14
|
-
c(() => s(() => {
|
|
10
|
+
const f = a, t = r, o = u(null), l = u(String(f.value ?? ""));
|
|
11
|
+
p(() => s(() => {
|
|
15
12
|
var e;
|
|
16
13
|
return (e = o.value) == null ? void 0 : e.focus();
|
|
17
14
|
}));
|
|
18
|
-
function
|
|
19
|
-
e.key === "Enter" && (e.preventDefault(), t("commit",
|
|
15
|
+
function c(e) {
|
|
16
|
+
e.key === "Enter" && (e.preventDefault(), t("commit", l.value || null)), e.key === "Escape" && (e.preventDefault(), t("cancel")), e.key === "Tab" && (e.preventDefault(), t("commit", l.value || null), t("tabNext"));
|
|
20
17
|
}
|
|
21
|
-
return (e,
|
|
18
|
+
return (e, n) => v((d(), y("input", {
|
|
22
19
|
ref_key: "inputRef",
|
|
23
20
|
ref: o,
|
|
24
|
-
"onUpdate:modelValue":
|
|
21
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
|
|
25
22
|
class: "of-field-input",
|
|
26
23
|
type: "date",
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
"aria-label": a.field.label,
|
|
25
|
+
onKeydown: c,
|
|
26
|
+
onBlur: n[1] || (n[1] = (i) => t("commit", l.value || null))
|
|
27
|
+
}, null, 40, k)), [
|
|
28
|
+
[b, l.value]
|
|
31
29
|
]);
|
|
32
30
|
}
|
|
33
31
|
});
|
|
34
32
|
export {
|
|
35
|
-
|
|
33
|
+
D as default
|
|
36
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./FieldDatetime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-
|
|
4
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-61bebf31"]]);
|
|
5
5
|
export {
|
|
6
6
|
a as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const D = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as m, ref as u, onMounted as p, nextTick as s, withDirectives as v, openBlock as d, createElementBlock as y, vModelText as b } from "vue";
|
|
2
|
+
const k = ["aria-label"], D = /* @__PURE__ */ m({
|
|
3
3
|
__name: "FieldDatetime",
|
|
4
4
|
props: {
|
|
5
5
|
value: { type: [String, Number, Boolean, Array, null] },
|
|
@@ -7,24 +7,25 @@ const D = /* @__PURE__ */ f({
|
|
|
7
7
|
},
|
|
8
8
|
emits: ["commit", "cancel", "tabNext"],
|
|
9
9
|
setup(a, { emit: r }) {
|
|
10
|
-
const
|
|
10
|
+
const c = a, t = r, o = u(null), l = u(String(c.value ?? ""));
|
|
11
11
|
p(() => s(() => {
|
|
12
12
|
var e;
|
|
13
13
|
return (e = o.value) == null ? void 0 : e.focus();
|
|
14
14
|
}));
|
|
15
|
-
function
|
|
16
|
-
e.key === "Enter" && (e.preventDefault(), t("commit",
|
|
15
|
+
function f(e) {
|
|
16
|
+
e.key === "Enter" && (e.preventDefault(), t("commit", l.value || null)), e.key === "Escape" && (e.preventDefault(), t("cancel")), e.key === "Tab" && (e.preventDefault(), t("commit", l.value || null), t("tabNext"));
|
|
17
17
|
}
|
|
18
|
-
return (e,
|
|
18
|
+
return (e, n) => v((d(), y("input", {
|
|
19
19
|
ref_key: "inputRef",
|
|
20
20
|
ref: o,
|
|
21
|
-
"onUpdate:modelValue":
|
|
21
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
|
|
22
22
|
class: "of-field-input",
|
|
23
23
|
type: "datetime-local",
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
"aria-label": a.field.label,
|
|
25
|
+
onKeydown: f,
|
|
26
|
+
onBlur: n[1] || (n[1] = (i) => t("commit", l.value || null))
|
|
27
|
+
}, null, 40, k)), [
|
|
28
|
+
[b, l.value]
|
|
28
29
|
]);
|
|
29
30
|
}
|
|
30
31
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FieldEmail.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-bf58d650"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as c, ref as u, onMounted as p, nextTick as s, withDirectives as v, openBlock as d, createElementBlock as y, vModelText as b } from "vue";
|
|
2
|
+
const k = ["aria-label"], B = /* @__PURE__ */ c({
|
|
3
3
|
__name: "FieldEmail",
|
|
4
4
|
props: {
|
|
5
5
|
value: { type: [String, Number, Boolean, Array, null] },
|
|
@@ -7,27 +7,28 @@ const b = /* @__PURE__ */ p({
|
|
|
7
7
|
},
|
|
8
8
|
emits: ["commit", "cancel", "tabNext"],
|
|
9
9
|
setup(a, { emit: r }) {
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
const f = a, t = r, o = u(null), l = u(String(f.value ?? ""));
|
|
11
|
+
p(() => s(() => {
|
|
12
12
|
var e;
|
|
13
13
|
return (e = o.value) == null ? void 0 : e.focus();
|
|
14
14
|
}));
|
|
15
|
-
function
|
|
16
|
-
e.key === "Enter" && (e.preventDefault(), t("commit",
|
|
15
|
+
function m(e) {
|
|
16
|
+
e.key === "Enter" && (e.preventDefault(), t("commit", l.value)), e.key === "Escape" && (e.preventDefault(), t("cancel")), e.key === "Tab" && (e.preventDefault(), t("commit", l.value), t("tabNext"));
|
|
17
17
|
}
|
|
18
|
-
return (e,
|
|
18
|
+
return (e, n) => v((d(), y("input", {
|
|
19
19
|
ref_key: "inputRef",
|
|
20
20
|
ref: o,
|
|
21
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
|
|
21
22
|
class: "of-field-input",
|
|
22
23
|
type: "email",
|
|
23
|
-
"
|
|
24
|
-
onKeydown:
|
|
25
|
-
onBlur:
|
|
26
|
-
}, null,
|
|
27
|
-
[
|
|
24
|
+
"aria-label": a.field.label,
|
|
25
|
+
onKeydown: m,
|
|
26
|
+
onBlur: n[1] || (n[1] = (i) => t("commit", l.value))
|
|
27
|
+
}, null, 40, k)), [
|
|
28
|
+
[b, l.value]
|
|
28
29
|
]);
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
B as default
|
|
33
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FieldMarkdownPreview.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f0714bc5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -12,7 +12,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
12
12
|
onCommit?: ((value: CellValue) => any) | undefined;
|
|
13
13
|
onTabNext?: (() => any) | undefined;
|
|
14
14
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
|
-
triggerRef:
|
|
15
|
+
triggerRef: HTMLButtonElement;
|
|
16
16
|
dropdownRef: HTMLDivElement;
|
|
17
|
-
},
|
|
17
|
+
}, HTMLButtonElement>;
|
|
18
18
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./FieldMultiSelect.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-a4e34f12"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|