@oneflowui/ui 0.5.6 → 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.
Files changed (203) hide show
  1. package/dist/components/ContextMenu/index.vue.js +2 -2
  2. package/dist/components/Dashboard/charts/BarChart.vue.js +2 -2
  3. package/dist/components/Dashboard/charts/PieChart.vue.js +2 -2
  4. package/dist/components/Dashboard/index.vue.d.ts +2 -1
  5. package/dist/components/Dashboard/index.vue.js +2 -2
  6. package/dist/components/ai/AiSender.vue.js +2 -2
  7. package/dist/components/ai/AiSender.vue2.js +8 -7
  8. package/dist/components/auxiliary/ColorPanel.vue.js +2 -2
  9. package/dist/components/auxiliary/ColorPanel.vue2.js +25 -23
  10. package/dist/components/auxiliary/FileUpload.vue.js +2 -2
  11. package/dist/components/auxiliary/FileUpload.vue2.js +1 -0
  12. package/dist/components/auxiliary/PersonPanel.vue.js +1 -1
  13. package/dist/components/auxiliary/PersonPanel.vue2.js +2 -1
  14. package/dist/components/base/Accordion.vue.js +1 -1
  15. package/dist/components/base/Avatar.vue.d.ts +3 -0
  16. package/dist/components/base/Avatar.vue.js +4 -4
  17. package/dist/components/base/Avatar.vue2.js +8 -8
  18. package/dist/components/base/Badge.vue.d.ts +2 -0
  19. package/dist/components/base/Badge.vue.js +2 -2
  20. package/dist/components/base/Badge.vue2.js +2 -2
  21. package/dist/components/base/ButtonGroup.vue.js +2 -2
  22. package/dist/components/base/ButtonGroup.vue2.js +2 -2
  23. package/dist/components/base/ChainItem.vue.d.ts +6 -0
  24. package/dist/components/base/ChainItem.vue.js +2 -2
  25. package/dist/components/base/ChainItem.vue2.js +17 -17
  26. package/dist/components/base/DropdownMenu.vue.js +2 -2
  27. package/dist/components/base/DropdownMenu.vue2.js +22 -20
  28. package/dist/components/base/EmptyState.vue.js +2 -2
  29. package/dist/components/base/EmptyState.vue2.js +2 -2
  30. package/dist/components/base/InfoCard.vue.d.ts +9 -0
  31. package/dist/components/base/InfoCard.vue.js +2 -2
  32. package/dist/components/base/InfoCard.vue2.js +65 -57
  33. package/dist/components/base/MonitorItem.vue.js +2 -2
  34. package/dist/components/base/MonitorItem.vue2.js +33 -25
  35. package/dist/components/base/PersonaCard.vue.d.ts +5 -0
  36. package/dist/components/base/PersonaCard.vue.js +3 -3
  37. package/dist/components/base/PersonaCard.vue2.js +56 -50
  38. package/dist/components/base/ProgressBar.vue.d.ts +1 -0
  39. package/dist/components/base/ProgressBar.vue.js +2 -2
  40. package/dist/components/base/ProgressBar.vue2.js +10 -10
  41. package/dist/components/base/RangeSlider.vue.d.ts +15 -0
  42. package/dist/components/base/RangeSlider.vue.js +1 -1
  43. package/dist/components/base/RangeSlider.vue2.js +22 -15
  44. package/dist/components/base/RefTag.vue.d.ts +4 -0
  45. package/dist/components/base/RefTag.vue.js +3 -3
  46. package/dist/components/base/RefTag.vue2.js +14 -14
  47. package/dist/components/base/SearchHighlight.vue.js +1 -1
  48. package/dist/components/base/SectionBlock.vue.js +2 -2
  49. package/dist/components/base/SectionBlock.vue2.js +54 -48
  50. package/dist/components/base/SelectBadge.vue.d.ts +5 -0
  51. package/dist/components/base/SelectBadge.vue.js +3 -3
  52. package/dist/components/base/SelectBadge.vue2.js +36 -28
  53. package/dist/components/base/StatisticCard.vue.js +1 -1
  54. package/dist/components/base/StatusIndicator.vue.js +2 -2
  55. package/dist/components/base/StatusIndicator.vue2.js +2 -2
  56. package/dist/components/base/StatusSummary.vue.js +2 -2
  57. package/dist/components/base/Stepper.vue.js +2 -2
  58. package/dist/components/base/Switch.vue.js +2 -2
  59. package/dist/components/base/ToolbarBtn.vue.js +2 -2
  60. package/dist/components/base/ViewModeGroup.vue.js +1 -1
  61. package/dist/components/base/ViewModeGroup.vue2.js +3 -3
  62. package/dist/components/base/ViewSwitcher.vue.js +1 -1
  63. package/dist/components/base/ViewSwitcher.vue2.js +3 -3
  64. package/dist/components/base/ViewTab.vue.js +1 -1
  65. package/dist/components/base/ViewTab.vue2.js +5 -6
  66. package/dist/components/breadcrumb/Breadcrumb.vue.js +2 -2
  67. package/dist/components/breadcrumb/BreadcrumbItem.vue.js +2 -2
  68. package/dist/components/detail/PropPanel.vue.js +2 -2
  69. package/dist/components/detail/PropPanel.vue2.js +34 -30
  70. package/dist/components/detail/PropRow.vue.d.ts +6 -0
  71. package/dist/components/detail/PropRow.vue.js +2 -2
  72. package/dist/components/detail/PropRow.vue2.js +24 -24
  73. package/dist/components/editor/BlockQuote.vue.d.ts +2 -1
  74. package/dist/components/editor/BlockQuote.vue.js +1 -1
  75. package/dist/components/editor/BlockQuote.vue2.js +43 -29
  76. package/dist/components/editor/ContentBlock.vue.d.ts +4 -2
  77. package/dist/components/editor/ContentBlock.vue.js +2 -2
  78. package/dist/components/editor/ContentBlock.vue2.js +54 -33
  79. package/dist/components/editor/RichTextEditor.vue.js +2 -2
  80. package/dist/components/editor/RichTextEditor.vue2.js +10 -14
  81. package/dist/components/field/FieldAttachment.vue.js +2 -2
  82. package/dist/components/field/FieldAttachment.vue2.js +30 -32
  83. package/dist/components/field/FieldAutoNumber.vue.js +2 -2
  84. package/dist/components/field/FieldCheckbox.vue.js +2 -2
  85. package/dist/components/field/FieldCheckbox.vue2.js +13 -11
  86. package/dist/components/field/FieldCreator.vue.js +2 -2
  87. package/dist/components/field/FieldCurrency.vue.js +2 -2
  88. package/dist/components/field/FieldCurrency.vue2.js +15 -14
  89. package/dist/components/field/FieldDate.vue.js +1 -1
  90. package/dist/components/field/FieldDate.vue2.js +14 -16
  91. package/dist/components/field/FieldDatetime.vue.js +1 -1
  92. package/dist/components/field/FieldDatetime.vue2.js +12 -11
  93. package/dist/components/field/FieldEmail.vue.js +2 -2
  94. package/dist/components/field/FieldEmail.vue2.js +14 -13
  95. package/dist/components/field/FieldMarkdownPreview.vue.js +2 -2
  96. package/dist/components/field/FieldMultiSelect.vue.d.ts +2 -2
  97. package/dist/components/field/FieldMultiSelect.vue.js +2 -2
  98. package/dist/components/field/FieldMultiSelect.vue2.js +80 -75
  99. package/dist/components/field/FieldNumber.vue.js +3 -3
  100. package/dist/components/field/FieldNumber.vue2.js +19 -18
  101. package/dist/components/field/FieldPhone.vue.js +2 -2
  102. package/dist/components/field/FieldPhone.vue2.js +12 -11
  103. package/dist/components/field/FieldProgress.vue.js +1 -1
  104. package/dist/components/field/FieldProgress.vue2.js +18 -17
  105. package/dist/components/field/FieldRating.vue.js +2 -2
  106. package/dist/components/field/FieldRating.vue2.js +22 -16
  107. package/dist/components/field/FieldRelation.vue.js +1 -1
  108. package/dist/components/field/FieldRelation.vue2.js +25 -22
  109. package/dist/components/field/FieldRichText.vue.js +1 -1
  110. package/dist/components/field/FieldRichText.vue2.js +10 -7
  111. package/dist/components/field/FieldSelect.vue.js +2 -2
  112. package/dist/components/field/FieldSelect.vue2.js +81 -63
  113. package/dist/components/field/FieldText.vue.js +2 -2
  114. package/dist/components/field/FieldText.vue2.js +17 -16
  115. package/dist/components/field/FieldUrl.vue.js +2 -2
  116. package/dist/components/field/FieldUrl.vue2.js +17 -16
  117. package/dist/components/form/FormDesigner.vue.js +2 -2
  118. package/dist/components/form/FormDesigner.vue2.js +83 -78
  119. package/dist/components/gallery/GalleryCard.vue.d.ts +1 -1
  120. package/dist/components/gallery/GalleryCard.vue.js +2 -2
  121. package/dist/components/gallery/GalleryCard.vue2.js +2 -1
  122. package/dist/components/kanban/KanbanCard.vue.d.ts +3 -1
  123. package/dist/components/kanban/KanbanCard.vue.js +1 -1
  124. package/dist/components/kanban/KanbanCard.vue2.js +15 -14
  125. package/dist/components/kanban/KanbanColumn.vue.d.ts +2 -0
  126. package/dist/components/kanban/KanbanColumn.vue.js +2 -2
  127. package/dist/components/kanban/KanbanColumn.vue2.js +9 -9
  128. package/dist/components/kanban/QuickAddRow.vue.js +2 -2
  129. package/dist/components/kanban/QuickAddRow.vue2.js +15 -14
  130. package/dist/components/layout/Navbar.vue.js +3 -3
  131. package/dist/components/layout/Navbar.vue2.js +5 -4
  132. package/dist/components/layout/Sidebar.vue.js +2 -2
  133. package/dist/components/layout/Sidebar.vue2.js +1 -1
  134. package/dist/components/mermaid/MermaidChart.vue.js +2 -2
  135. package/dist/components/mermaid/MermaidChart.vue2.js +17 -17
  136. package/dist/components/overlay/Dialog.vue.d.ts +1 -0
  137. package/dist/components/overlay/Dialog.vue.js +1 -1
  138. package/dist/components/overlay/Dialog.vue2.js +9 -9
  139. package/dist/components/overlay/Drawer.vue.d.ts +1 -0
  140. package/dist/components/overlay/Drawer.vue.js +2 -2
  141. package/dist/components/overlay/Drawer.vue2.js +35 -29
  142. package/dist/components/overlay/Modal.vue.d.ts +1 -0
  143. package/dist/components/overlay/Modal.vue.js +1 -1
  144. package/dist/components/overlay/Modal.vue2.js +34 -28
  145. package/dist/components/overlay/SidePanel.vue.d.ts +1 -0
  146. package/dist/components/overlay/SidePanel.vue.js +1 -1
  147. package/dist/components/overlay/SidePanel.vue2.js +6 -6
  148. package/dist/components/split/SplitPane.vue.js +2 -2
  149. package/dist/components/split/SplitPane.vue2.js +11 -9
  150. package/dist/components/table/ColumnHeaderMenu.vue.d.ts +2 -0
  151. package/dist/components/table/ColumnHeaderMenu.vue.js +1 -1
  152. package/dist/components/table/ColumnHeaderMenu.vue2.js +42 -36
  153. package/dist/components/table/DataTable.vue.d.ts +6 -5
  154. package/dist/components/table/DataTable.vue.js +2 -2
  155. package/dist/components/table/DataTable.vue2.js +527 -477
  156. package/dist/components/table/DetailSheet.vue.js +2 -2
  157. package/dist/components/table/DetailSheet.vue2.js +45 -40
  158. package/dist/components/table/FieldCell.vue.d.ts +2 -1
  159. package/dist/components/table/FieldCell.vue.js +1 -1
  160. package/dist/components/table/FieldCell.vue2.js +57 -48
  161. package/dist/components/table/FieldTypePicker.vue.d.ts +1 -0
  162. package/dist/components/table/FieldTypePicker.vue.js +4 -4
  163. package/dist/components/table/FieldTypePicker.vue2.js +1 -1
  164. package/dist/components/table/MobileListView.vue.d.ts +3 -2
  165. package/dist/components/table/MobileListView.vue.js +2 -2
  166. package/dist/components/table/MobileListView.vue2.js +57 -50
  167. package/dist/components/table/TableColumnManager.vue.js +1 -1
  168. package/dist/components/table/TableColumnManager.vue2.js +29 -28
  169. package/dist/components/table/TableDataRow.vue.d.ts +2 -0
  170. package/dist/components/table/TableDataRow.vue.js +4 -4
  171. package/dist/components/table/TableDataRow.vue2.js +70 -58
  172. package/dist/components/table/TableFilterPanel.vue.js +2 -2
  173. package/dist/components/table/TableFilterPanel.vue2.js +3 -0
  174. package/dist/components/table/TableGroupRow.vue.d.ts +2 -0
  175. package/dist/components/table/TableGroupRow.vue.js +2 -2
  176. package/dist/components/table/TableGroupRow.vue2.js +35 -30
  177. package/dist/components/table/TableHeaderRow.vue.js +3 -3
  178. package/dist/components/table/TableHeaderRow.vue2.js +63 -46
  179. package/dist/components/table/TableToolbar.vue.js +1 -1
  180. package/dist/components/table/TableToolbar.vue2.js +2 -2
  181. package/dist/components/tabs/TabPanel.vue.js +4 -4
  182. package/dist/components/tabs/TabPanel.vue2.js +1 -1
  183. package/dist/components/tabs/Tabs.vue.js +2 -2
  184. package/dist/components/tabs/Tabs.vue2.js +2 -2
  185. package/dist/components/timeline/GanttRow.vue.d.ts +2 -0
  186. package/dist/components/timeline/GanttRow.vue.js +2 -2
  187. package/dist/components/timeline/GanttRow.vue2.js +68 -52
  188. package/dist/components/timeline/GanttTimeline.vue.d.ts +6 -0
  189. package/dist/components/timeline/GanttTimeline.vue.js +2 -2
  190. package/dist/components/timeline/GanttTimeline.vue2.js +24 -24
  191. package/dist/composables/useKeyboardNavigation.d.ts +1 -1
  192. package/dist/composables/useRowDrag.d.ts +6 -4
  193. package/dist/composables/useRowDrag.js +24 -24
  194. package/dist/composables/useSupabaseProvider.d.ts +8 -1
  195. package/dist/composables/useTableData.d.ts +5 -3
  196. package/dist/composables/useTableGroup.d.ts +2 -2
  197. package/dist/composables/useViewPersistence.d.ts +32 -3
  198. package/dist/composables/useVirtualList.js +60 -59
  199. package/dist/plugin.js +103 -102
  200. package/dist/style.css +1 -1
  201. package/dist/utils/echarts.d.ts +1 -0
  202. package/dist/utils/supabaseSchema.d.ts +12 -0
  203. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, ref as d, onMounted as b, nextTick as x, openBlock as y, createElementBlock as M, createElementVNode as n, withModifiers as r } from "vue";
1
+ import { defineComponent as p, ref as a, onMounted as b, nextTick as x, openBlock as y, createElementBlock as M, createElementVNode as n, withModifiers as u } from "vue";
2
2
  const k = { class: "of-field-richtext" }, w = { class: "of-field-richtext-toolbar" }, T = /* @__PURE__ */ p({
3
3
  __name: "FieldRichText",
4
4
  props: {
@@ -6,8 +6,8 @@ const k = { class: "of-field-richtext" }, w = { class: "of-field-richtext-toolba
6
6
  field: {}
7
7
  },
8
8
  emits: ["commit", "cancel", "tabNext"],
9
- setup(a, { emit: c }) {
10
- const s = a, l = c, o = d(null), i = d(typeof s.value == "string" ? s.value : "");
9
+ setup(d, { emit: c }) {
10
+ const s = d, l = c, o = a(null), i = a(typeof s.value == "string" ? s.value : "");
11
11
  b(
12
12
  () => x(() => {
13
13
  o.value && (o.value.innerHTML = i.value, o.value.focus());
@@ -21,7 +21,7 @@ const k = { class: "of-field-richtext" }, w = { class: "of-field-richtext-toolba
21
21
  var t;
22
22
  l("commit", ((t = o.value) == null ? void 0 : t.innerHTML) ?? i.value);
23
23
  }
24
- function u(t) {
24
+ function r(t) {
25
25
  var e;
26
26
  document.execCommand(t, !1), (e = o.value) == null || e.focus();
27
27
  }
@@ -30,21 +30,21 @@ const k = { class: "of-field-richtext" }, w = { class: "of-field-richtext-toolba
30
30
  n("button", {
31
31
  type: "button",
32
32
  class: "of-field-richtext-btn",
33
- onMousedown: e[0] || (e[0] = r((f) => u("bold"), ["prevent"]))
33
+ onMousedown: e[0] || (e[0] = u((f) => r("bold"), ["prevent"]))
34
34
  }, [...e[3] || (e[3] = [
35
35
  n("strong", null, "B", -1)
36
36
  ])], 32),
37
37
  n("button", {
38
38
  type: "button",
39
39
  class: "of-field-richtext-btn",
40
- onMousedown: e[1] || (e[1] = r((f) => u("italic"), ["prevent"]))
40
+ onMousedown: e[1] || (e[1] = u((f) => r("italic"), ["prevent"]))
41
41
  }, [...e[4] || (e[4] = [
42
42
  n("em", null, "I", -1)
43
43
  ])], 32),
44
44
  n("button", {
45
45
  type: "button",
46
46
  class: "of-field-richtext-btn",
47
- onMousedown: e[2] || (e[2] = r((f) => u("underline"), ["prevent"]))
47
+ onMousedown: e[2] || (e[2] = u((f) => r("underline"), ["prevent"]))
48
48
  }, [...e[5] || (e[5] = [
49
49
  n("u", null, "U", -1)
50
50
  ])], 32)
@@ -54,6 +54,9 @@ const k = { class: "of-field-richtext" }, w = { class: "of-field-richtext-toolba
54
54
  ref: o,
55
55
  class: "of-field-richtext-editor",
56
56
  contenteditable: "true",
57
+ role: "textbox",
58
+ "aria-multiline": "true",
59
+ tabindex: "0",
57
60
  onKeydown: m,
58
61
  onBlur: v
59
62
  }, null, 544)
@@ -1,7 +1,7 @@
1
1
  import o from "./FieldSelect.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-602f7b18"]]);
4
+ const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-31d8cba6"]]);
5
5
  export {
6
- m as default
6
+ c as default
7
7
  };
@@ -1,43 +1,43 @@
1
- import { defineComponent as V, ref as f, computed as b, onMounted as z, nextTick as A, onBeforeUnmount as I, watch as T, openBlock as l, createElementBlock as a, normalizeStyle as x, toDisplayString as _, createBlock as F, Teleport as O, unref as B, normalizeClass as h, createElementVNode as P, withModifiers as L, Fragment as U, renderList as K, createCommentVNode as W } from "vue";
2
- import { useBreakpoint as j } from "../../composables/useBreakpoint.js";
3
- const q = {
1
+ import { defineComponent as S, ref as m, computed as E, onMounted as V, nextTick as z, onBeforeUnmount as A, watch as I, openBlock as o, createElementBlock as u, normalizeStyle as h, toDisplayString as b, createBlock as T, Teleport as O, unref as K, normalizeClass as D, createElementVNode as P, withKeys as g, withModifiers as v, Fragment as U, renderList as W, createCommentVNode as j } from "vue";
2
+ import { useBreakpoint as q } from "../../composables/useBreakpoint.js";
3
+ const G = ["aria-label"], H = {
4
4
  key: 1,
5
5
  class: "of-field-select__display"
6
- }, G = ["onMouseenter", "onClick"], H = { key: 1 }, X = /* @__PURE__ */ V({
6
+ }, J = ["aria-selected"], Q = ["aria-selected", "onMouseenter", "onClick", "onFocusin", "onKeydown"], X = { key: 1 }, ee = /* @__PURE__ */ S({
7
7
  __name: "FieldSelect",
8
8
  props: {
9
9
  value: { type: [String, Number, Boolean, Array, null] },
10
10
  field: {}
11
11
  },
12
12
  emits: ["commit", "cancel", "tabNext"],
13
- setup($, { emit: N }) {
14
- const { isMobile: E } = j(), i = $, y = N, s = f(null), D = f(null), C = f({ top: "0px", left: "0px", width: "0px" }), p = f(!0), r = b(() => i.field.options ?? []), c = b(() => {
15
- const e = typeof i.value == "string" ? i.value : null;
16
- return r.value.findIndex((t) => t.value === e);
17
- }), n = f(0);
18
- function d() {
19
- if (!s.value) return;
20
- const e = s.value.getBoundingClientRect();
21
- C.value = {
13
+ setup(C, { emit: N }) {
14
+ const c = C, x = N, { isMobile: M } = q(), d = m(null), B = m(null), L = m({ top: "0px", left: "0px", width: "0px" }), y = m(!0), i = E(() => c.field.options ?? []), s = E(() => {
15
+ const e = typeof c.value == "string" ? c.value : null;
16
+ return i.value.findIndex((t) => t.value === e);
17
+ }), n = m(0);
18
+ function f() {
19
+ if (!d.value) return;
20
+ const e = d.value.getBoundingClientRect();
21
+ L.value = {
22
22
  top: `${e.bottom}px`,
23
23
  left: `${e.left}px`,
24
24
  width: `${Math.max(e.width, 160)}px`
25
25
  };
26
26
  }
27
- function m(e) {
28
- p.value = !1, y("commit", e);
27
+ function a(e) {
28
+ y.value = !1, x("commit", e);
29
29
  }
30
- function k() {
31
- p.value && (p.value = !1, y("cancel"));
30
+ function $() {
31
+ y.value && (y.value = !1, x("cancel"));
32
32
  }
33
33
  function R(e) {
34
- var t, o;
35
- if (!r.value.length) {
36
- e.key === "Escape" && (e.preventDefault(), k());
34
+ var t, r;
35
+ if (!i.value.length) {
36
+ e.key === "Escape" && (e.preventDefault(), $());
37
37
  return;
38
38
  }
39
39
  if (e.key === "ArrowDown") {
40
- e.preventDefault(), n.value = Math.min(n.value + 1, r.value.length - 1);
40
+ e.preventDefault(), n.value = Math.min(n.value + 1, i.value.length - 1);
41
41
  return;
42
42
  }
43
43
  if (e.key === "ArrowUp") {
@@ -45,78 +45,96 @@ const q = {
45
45
  return;
46
46
  }
47
47
  if (e.key === "Enter") {
48
- e.preventDefault(), m(((t = r.value[n.value]) == null ? void 0 : t.value) ?? null);
48
+ e.preventDefault(), a(((t = i.value[n.value]) == null ? void 0 : t.value) ?? null);
49
49
  return;
50
50
  }
51
51
  if (e.key === "Escape") {
52
- e.preventDefault(), k();
52
+ e.preventDefault(), $();
53
53
  return;
54
54
  }
55
- e.key === "Tab" && (e.preventDefault(), m(((o = r.value[n.value]) == null ? void 0 : o.value) ?? null), y("tabNext"));
55
+ e.key === "Tab" && (e.preventDefault(), a(((r = i.value[n.value]) == null ? void 0 : r.value) ?? null), x("tabNext"));
56
56
  }
57
- function M(e) {
58
- var o, v;
57
+ function F(e) {
58
+ var r, p;
59
59
  const t = e.target;
60
- t && ((o = s.value) != null && o.contains(t) || (v = D.value) != null && v.contains(t) || k());
60
+ t && ((r = d.value) != null && r.contains(t) || (p = B.value) != null && p.contains(t) || $());
61
61
  }
62
- z(() => {
63
- n.value = c.value >= 0 ? c.value : 0, A(() => {
62
+ V(() => {
63
+ n.value = s.value >= 0 ? s.value : 0, z(() => {
64
64
  var e;
65
- d(), (e = s.value) == null || e.focus();
66
- }), window.addEventListener("resize", d), window.addEventListener("scroll", d, !0), window.addEventListener("mousedown", M, !0);
67
- }), I(() => {
68
- window.removeEventListener("resize", d), window.removeEventListener("scroll", d, !0), window.removeEventListener("mousedown", M, !0);
69
- }), T(c, (e) => {
65
+ f(), (e = d.value) == null || e.focus();
66
+ }), window.addEventListener("resize", f), window.addEventListener("scroll", f, !0), window.addEventListener("mousedown", F, !0);
67
+ }), A(() => {
68
+ window.removeEventListener("resize", f), window.removeEventListener("scroll", f, !0), window.removeEventListener("mousedown", F, !0);
69
+ }), I(s, (e) => {
70
70
  e >= 0 && (n.value = e);
71
71
  });
72
- const w = b(() => {
73
- const e = typeof i.value == "string" ? i.value : null;
74
- return r.value.find((t) => t.value === e);
72
+ const k = E(() => {
73
+ const e = typeof c.value == "string" ? c.value : null;
74
+ return i.value.find((t) => t.value === e);
75
75
  });
76
76
  return (e, t) => {
77
- var o, v;
78
- return l(), a("div", {
77
+ var r, p;
78
+ return o(), u("div", {
79
79
  ref_key: "triggerRef",
80
- ref: s,
80
+ ref: d,
81
81
  class: "of-field-select",
82
82
  tabindex: "0",
83
+ role: "listbox",
84
+ "aria-label": C.field.label,
83
85
  onKeydown: R
84
86
  }, [
85
- (o = w.value) != null && o.color ? (l(), a("span", {
87
+ (r = k.value) != null && r.color ? (o(), u("span", {
86
88
  key: 0,
87
89
  class: "of-field-select__badge",
88
- style: x({ background: w.value.color })
89
- }, _(w.value.label), 5)) : (l(), a("span", q, _(((v = w.value) == null ? void 0 : v.label) ?? "—"), 1)),
90
- (l(), F(O, { to: "body" }, [
91
- p.value ? (l(), a("div", {
90
+ style: h({ background: k.value.color })
91
+ }, b(k.value.label), 5)) : (o(), u("span", H, b(((p = k.value) == null ? void 0 : p.label) ?? "—"), 1)),
92
+ (o(), T(O, { to: "body" }, [
93
+ y.value ? (o(), u("div", {
92
94
  key: 0,
93
95
  ref_key: "dropdownRef",
94
- ref: D,
95
- class: h(["of-field-select__dropdown", { "of-field-select__dropdown--sheet": B(E) }]),
96
- style: x(B(E) ? {} : C.value)
96
+ ref: B,
97
+ class: D(["of-field-select__dropdown", { "of-field-select__dropdown--sheet": K(M) }]),
98
+ style: h(K(M) ? {} : L.value)
97
99
  }, [
98
100
  P("div", {
99
- class: h(["of-field-select__option of-field-select__option--clear", { active: n.value === -1, selected: c.value === -1 }]),
100
- onClick: t[0] || (t[0] = L((u) => m(null), ["stop"]))
101
- }, "", 2),
102
- (l(!0), a(U, null, K(r.value, (u, g) => (l(), a("div", {
103
- key: u.value,
104
- class: h(["of-field-select__option", { active: g === n.value, selected: g === c.value }]),
105
- onMouseenter: (S) => n.value = g,
106
- onClick: L((S) => m(u.value), ["stop"])
101
+ class: D(["of-field-select__option of-field-select__option--clear", { active: n.value === -1, selected: s.value === -1 }]),
102
+ role: "option",
103
+ tabindex: "0",
104
+ "aria-selected": s.value === -1,
105
+ onClick: t[0] || (t[0] = v((l) => a(null), ["stop"])),
106
+ onFocusin: t[1] || (t[1] = (l) => n.value = -1),
107
+ onKeydown: [
108
+ t[2] || (t[2] = g(v((l) => a(null), ["prevent"]), ["enter"])),
109
+ t[3] || (t[3] = g(v((l) => a(null), ["prevent"]), ["space"]))
110
+ ]
111
+ }, " — ", 42, J),
112
+ (o(!0), u(U, null, W(i.value, (l, w) => (o(), u("div", {
113
+ key: l.value,
114
+ class: D(["of-field-select__option", { active: w === n.value, selected: w === s.value }]),
115
+ role: "option",
116
+ tabindex: "0",
117
+ "aria-selected": w === s.value,
118
+ onMouseenter: (_) => n.value = w,
119
+ onClick: v((_) => a(l.value), ["stop"]),
120
+ onFocusin: (_) => n.value = w,
121
+ onKeydown: [
122
+ g(v((_) => a(l.value), ["prevent"]), ["enter"]),
123
+ g(v((_) => a(l.value), ["prevent"]), ["space"])
124
+ ]
107
125
  }, [
108
- u.color ? (l(), a("span", {
126
+ l.color ? (o(), u("span", {
109
127
  key: 0,
110
128
  class: "of-field-select__badge",
111
- style: x({ background: u.color })
112
- }, _(u.label), 5)) : (l(), a("span", H, _(u.label), 1))
113
- ], 42, G))), 128))
114
- ], 6)) : W("", !0)
129
+ style: h({ background: l.color })
130
+ }, b(l.label), 5)) : (o(), u("span", X, b(l.label), 1))
131
+ ], 42, Q))), 128))
132
+ ], 6)) : j("", !0)
115
133
  ]))
116
- ], 544);
134
+ ], 40, G);
117
135
  };
118
136
  }
119
137
  });
120
138
  export {
121
- X as default
139
+ ee as default
122
140
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./FieldText.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-836136e5"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a9d8988d"]]);
5
5
  export {
6
- p as default
6
+ e as default
7
7
  };
@@ -1,33 +1,34 @@
1
- import { defineComponent as c, ref as i, onMounted as m, nextTick as s, withDirectives as v, openBlock as d, createElementBlock as x, vModelText as y } from "vue";
2
- const b = /* @__PURE__ */ c({
1
+ import { defineComponent as m, ref as u, onMounted as p, nextTick as s, withDirectives as v, openBlock as d, createElementBlock as x, vModelText as y } from "vue";
2
+ const b = ["aria-label"], B = /* @__PURE__ */ m({
3
3
  __name: "FieldText",
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(a, { emit: r }) {
10
- const f = a, t = r, o = i(null), n = i(String(f.value ?? ""));
11
- m(() => s(() => {
9
+ setup(o, { emit: r }) {
10
+ const f = o, t = r, a = u(null), l = u(String(f.value ?? ""));
11
+ p(() => s(() => {
12
12
  var e;
13
- return (e = o.value) == null ? void 0 : e.focus();
13
+ return (e = a.value) == null ? void 0 : e.focus();
14
14
  }));
15
- function p(e) {
16
- e.key === "Enter" && (e.preventDefault(), t("commit", n.value)), e.key === "Escape" && (e.preventDefault(), t("cancel")), e.key === "Tab" && (e.preventDefault(), t("commit", n.value), t("tabNext"));
15
+ function c(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, l) => v((d(), x("input", {
18
+ return (e, n) => v((d(), x("input", {
19
19
  ref_key: "inputRef",
20
- ref: o,
20
+ ref: a,
21
+ "onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
21
22
  class: "of-field-input",
22
23
  type: "text",
23
- "onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u),
24
- onKeydown: p,
25
- onBlur: l[1] || (l[1] = (u) => t("commit", n.value))
26
- }, null, 544)), [
27
- [y, n.value]
24
+ "aria-label": o.field.label,
25
+ onKeydown: c,
26
+ onBlur: n[1] || (n[1] = (i) => t("commit", l.value))
27
+ }, null, 40, b)), [
28
+ [y, l.value]
28
29
  ]);
29
30
  }
30
31
  });
31
32
  export {
32
- b as default
33
+ B as default
33
34
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./FieldUrl.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-8d4527db"]]);
4
+ const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-e2908cdc"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,33 +1,34 @@
1
- import { defineComponent as c, ref as i, onMounted as m, nextTick as s, withDirectives as v, openBlock as d, createElementBlock as y, vModelText as k } from "vue";
2
- const b = /* @__PURE__ */ c({
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"], B = /* @__PURE__ */ m({
3
3
  __name: "FieldUrl",
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(r, { emit: a }) {
10
- const f = r, t = a, o = i(null), n = i(String(f.value ?? ""));
11
- m(() => s(() => {
9
+ setup(o, { emit: r }) {
10
+ const f = o, t = r, a = u(null), l = u(String(f.value ?? ""));
11
+ p(() => s(() => {
12
12
  var e;
13
- return (e = o.value) == null ? void 0 : e.focus();
13
+ return (e = a.value) == null ? void 0 : e.focus();
14
14
  }));
15
- function p(e) {
16
- e.key === "Enter" && (e.preventDefault(), t("commit", n.value)), e.key === "Escape" && (e.preventDefault(), t("cancel")), e.key === "Tab" && (e.preventDefault(), t("commit", n.value), t("tabNext"));
15
+ function c(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, l) => v((d(), y("input", {
18
+ return (e, n) => v((d(), y("input", {
19
19
  ref_key: "inputRef",
20
- ref: o,
20
+ ref: a,
21
+ "onUpdate:modelValue": n[0] || (n[0] = (i) => l.value = i),
21
22
  class: "of-field-input",
22
23
  type: "url",
23
- "onUpdate:modelValue": l[0] || (l[0] = (u) => n.value = u),
24
- onKeydown: p,
25
- onBlur: l[1] || (l[1] = (u) => t("commit", n.value))
26
- }, null, 544)), [
27
- [k, n.value]
24
+ "aria-label": o.field.label,
25
+ onKeydown: c,
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
- b as default
33
+ B as default
33
34
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./FormDesigner.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-85067929"]]);
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-27f61d04"]]);
5
5
  export {
6
- p as default
6
+ f as default
7
7
  };