@wirecore/wirelayer-vue 0.5.0 → 0.7.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.
Files changed (160) hide show
  1. package/dist/{Button-DZ_ZGl7X.js → Button-BpMOPs8b.js} +7 -8
  2. package/dist/{Checkbox-D9f77jtl.js → Checkbox-D175nhKK.js} +26 -22
  3. package/dist/ContextMenu-BEOEyUa6.js +2235 -0
  4. package/dist/{Field-BdIPugFP.js → Field-B1EsNF84.js} +20 -17
  5. package/dist/{Highlight-DvGcm2QR.js → Highlight-uwptdaUw.js} +35 -32
  6. package/dist/{Input-C59NJK4m.js → Input-Cn5q0yVE.js} +50 -36
  7. package/dist/{InputStatus-CUyF9-GR.js → InputStatus-D7kBGlew.js} +4 -1
  8. package/dist/{Select-BlEjQWBP.js → Select-Bd2Vpr7G.js} +175 -164
  9. package/dist/Slider-Cpv7Vj3B.js +143 -0
  10. package/dist/{Tree-B39xwNbU.js → Tree-fd9LXqgZ.js} +184 -181
  11. package/dist/chart/Chart.vue.d.ts +10 -4
  12. package/dist/chart/Chart.vue.d.ts.map +1 -1
  13. package/dist/chart/index.d.ts +2 -0
  14. package/dist/chart/index.d.ts.map +1 -1
  15. package/dist/chart.js +30 -24
  16. package/dist/code.js +1 -1
  17. package/dist/components/AngleSlider/AngleSlider.vue.d.ts +2 -0
  18. package/dist/components/AngleSlider/AngleSlider.vue.d.ts.map +1 -1
  19. package/dist/components/Autocomplete/Autocomplete.vue.d.ts +2 -0
  20. package/dist/components/Autocomplete/Autocomplete.vue.d.ts.map +1 -1
  21. package/dist/components/Badge/Badge.vue.d.ts +2 -0
  22. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  23. package/dist/components/Button/Button.vue.d.ts +5 -0
  24. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  25. package/dist/components/Carousel/Carousel.vue.d.ts +2 -0
  26. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  27. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +2 -0
  28. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  29. package/dist/components/Checkbox/Checkbox.vue.d.ts +2 -0
  30. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  31. package/dist/components/ChipGroup/ChipGroup.vue.d.ts +1 -1
  32. package/dist/components/ChipGroup/ChipGroup.vue.d.ts.map +1 -1
  33. package/dist/components/ColorInput/ColorInput.vue.d.ts.map +1 -1
  34. package/dist/components/ColorPicker/ColorPicker.vue.d.ts +2 -0
  35. package/dist/components/ColorPicker/ColorPicker.vue.d.ts.map +1 -1
  36. package/dist/components/Combobox/Combobox.vue.d.ts +8 -1
  37. package/dist/components/Combobox/Combobox.vue.d.ts.map +1 -1
  38. package/dist/components/Confirm/ConfirmDialog.vue.d.ts +5 -0
  39. package/dist/components/Confirm/ConfirmDialog.vue.d.ts.map +1 -1
  40. package/dist/components/Confirm/confirm.d.ts +7 -0
  41. package/dist/components/Confirm/confirm.d.ts.map +1 -1
  42. package/dist/components/DatePicker/DatePicker.vue.d.ts +4 -0
  43. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  44. package/dist/components/DatePicker/DatePickerBase.vue.d.ts +4 -0
  45. package/dist/components/DatePicker/DatePickerBase.vue.d.ts.map +1 -1
  46. package/dist/components/DateRangePicker/DateRangePicker.vue.d.ts +4 -0
  47. package/dist/components/DateRangePicker/DateRangePicker.vue.d.ts.map +1 -1
  48. package/dist/components/Dialog/DialogContent.vue.d.ts +12 -6
  49. package/dist/components/Dialog/DialogContent.vue.d.ts.map +1 -1
  50. package/dist/components/Drawer/DrawerContent.vue.d.ts +7 -5
  51. package/dist/components/Drawer/DrawerContent.vue.d.ts.map +1 -1
  52. package/dist/components/DurationInput/DurationInput.vue.d.ts +2 -0
  53. package/dist/components/DurationInput/DurationInput.vue.d.ts.map +1 -1
  54. package/dist/components/EmptyState/EmptyState.vue.d.ts +5 -5
  55. package/dist/components/EmptyState/EmptyState.vue.d.ts.map +1 -1
  56. package/dist/components/Field/Field.vue.d.ts +12 -2
  57. package/dist/components/Field/Field.vue.d.ts.map +1 -1
  58. package/dist/components/Field/context.d.ts +3 -1
  59. package/dist/components/Field/context.d.ts.map +1 -1
  60. package/dist/components/FileUpload/FileUpload.vue.d.ts +11 -0
  61. package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
  62. package/dist/components/IconButton/IconButton.vue.d.ts +4 -0
  63. package/dist/components/IconButton/IconButton.vue.d.ts.map +1 -1
  64. package/dist/components/Knob/Knob.vue.d.ts +2 -0
  65. package/dist/components/Knob/Knob.vue.d.ts.map +1 -1
  66. package/dist/components/Listbox/Listbox.vue.d.ts +2 -0
  67. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  68. package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts +1 -0
  69. package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts.map +1 -1
  70. package/dist/components/MonthPicker/MonthPicker.vue.d.ts +4 -0
  71. package/dist/components/MonthPicker/MonthPicker.vue.d.ts.map +1 -1
  72. package/dist/components/MultiSelect/MultiSelect.vue.d.ts +8 -1
  73. package/dist/components/MultiSelect/MultiSelect.vue.d.ts.map +1 -1
  74. package/dist/components/NumberInput/NumberInput.vue.d.ts +2 -0
  75. package/dist/components/NumberInput/NumberInput.vue.d.ts.map +1 -1
  76. package/dist/components/PasswordInput/PasswordInput.vue.d.ts +2 -0
  77. package/dist/components/PasswordInput/PasswordInput.vue.d.ts.map +1 -1
  78. package/dist/components/PinInput/PinInput.vue.d.ts +2 -0
  79. package/dist/components/PinInput/PinInput.vue.d.ts.map +1 -1
  80. package/dist/components/RadioGroup/RadioGroup.vue.d.ts +1 -1
  81. package/dist/components/RadioGroup/RadioGroup.vue.d.ts.map +1 -1
  82. package/dist/components/Rating/Rating.vue.d.ts +2 -0
  83. package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
  84. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +2 -2
  85. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
  86. package/dist/components/Select/Select.vue.d.ts +8 -1
  87. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  88. package/dist/components/Select/types.d.ts +2 -0
  89. package/dist/components/Select/types.d.ts.map +1 -1
  90. package/dist/components/SelectionCard/CheckboxCard.vue.d.ts +2 -0
  91. package/dist/components/SelectionCard/CheckboxCard.vue.d.ts.map +1 -1
  92. package/dist/components/Slider/Slider.vue.d.ts +2 -0
  93. package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
  94. package/dist/components/Switch/Switch.vue.d.ts +2 -0
  95. package/dist/components/Switch/Switch.vue.d.ts.map +1 -1
  96. package/dist/components/TagsInput/TagsInput.vue.d.ts +2 -0
  97. package/dist/components/TagsInput/TagsInput.vue.d.ts.map +1 -1
  98. package/dist/components/TimePicker/TimePicker.vue.d.ts +2 -0
  99. package/dist/components/TimePicker/TimePicker.vue.d.ts.map +1 -1
  100. package/dist/components/TimeRangePicker/TimeRangePicker.vue.d.ts +2 -0
  101. package/dist/components/TimeRangePicker/TimeRangePicker.vue.d.ts.map +1 -1
  102. package/dist/components/Toast/Toaster.vue.d.ts +12 -2
  103. package/dist/components/Toast/Toaster.vue.d.ts.map +1 -1
  104. package/dist/components/ToggleButton/ToggleButton.vue.d.ts +9 -2
  105. package/dist/components/ToggleButton/ToggleButton.vue.d.ts.map +1 -1
  106. package/dist/components/Tooltip/Tooltip.vue.d.ts +3 -0
  107. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  108. package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -0
  109. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  110. package/dist/components/YearPicker/YearPicker.vue.d.ts +4 -0
  111. package/dist/components/YearPicker/YearPicker.vue.d.ts.map +1 -1
  112. package/dist/data-table/DataTable.vue.d.ts +36 -2
  113. package/dist/data-table/DataTable.vue.d.ts.map +1 -1
  114. package/dist/data-table/FilterMenu.vue.d.ts +10 -0
  115. package/dist/data-table/FilterMenu.vue.d.ts.map +1 -1
  116. package/dist/data-table/ValueInput.vue.d.ts +19 -1
  117. package/dist/data-table/ValueInput.vue.d.ts.map +1 -1
  118. package/dist/data-table/index.d.ts +1 -1
  119. package/dist/data-table/index.d.ts.map +1 -1
  120. package/dist/data-table/types.d.ts +23 -1
  121. package/dist/data-table/types.d.ts.map +1 -1
  122. package/dist/data-table.js +1475 -1341
  123. package/dist/editor.js +2 -2
  124. package/dist/form/FormField.vue.d.ts +13 -5
  125. package/dist/form/FormField.vue.d.ts.map +1 -1
  126. package/dist/form.js +128 -109
  127. package/dist/index.d.ts +1 -1
  128. package/dist/index.d.ts.map +1 -1
  129. package/dist/index.js +6470 -6251
  130. package/dist/label-for-eQvYjsM5.js +8 -0
  131. package/dist/pdf.js +4 -4
  132. package/dist/sources/ActionBar.css +1 -0
  133. package/dist/sources/AppShell.css +1 -0
  134. package/dist/sources/ChatPrompt.css +1 -0
  135. package/dist/sources/Gallery.css +1 -0
  136. package/dist/sources/IconButton.css +1 -0
  137. package/dist/sources/Image.css +1 -0
  138. package/dist/sources/ImageCropper.css +1 -0
  139. package/dist/sources/InlineEdit.css +1 -0
  140. package/dist/sources/Marquee.css +1 -0
  141. package/dist/sources/MegaMenu.css +1 -0
  142. package/dist/sources/Menubar.css +1 -0
  143. package/dist/sources/OrderList.css +1 -0
  144. package/dist/sources/PickList.css +1 -0
  145. package/dist/sources/ScrollTop.css +1 -0
  146. package/dist/{useTree-Dt7NO7cp.js → useTree-UhG1TMeM.js} +2 -2
  147. package/dist/utils/label-for.d.ts +3 -0
  148. package/dist/utils/label-for.d.ts.map +1 -0
  149. package/dist/utils/list.d.ts +5 -0
  150. package/dist/utils/list.d.ts.map +1 -1
  151. package/dist/virtual/VirtualSelect.vue.d.ts +2 -0
  152. package/dist/virtual/VirtualSelect.vue.d.ts.map +1 -1
  153. package/dist/virtual.js +207 -197
  154. package/fonts.css +2 -0
  155. package/llms-full.txt +699 -373
  156. package/llms.txt +4 -1
  157. package/package.json +7 -3
  158. package/theme.css +14 -0
  159. package/dist/ContextMenu-R23YbbaS.js +0 -2188
  160. package/dist/Slider-CyoZc5A8.js +0 -135
@@ -1,5 +1,5 @@
1
1
  import { a as e, n as t } from "./recipes-BlM9aKyt.js";
2
- import { n } from "./InputStatus-CUyF9-GR.js";
2
+ import { n } from "./InputStatus-D7kBGlew.js";
3
3
  import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, onBeforeUnmount as p, openBlock as m, provide as h, ref as g, renderSlot as _, resolveDynamicComponent as v, toDisplayString as y, unref as b, useAttrs as x, useSlots as S, useTemplateRef as C, watch as w, withCtx as T } from "vue";
4
4
  import { CircleCheck as E, Info as D } from "@lucide/vue";
5
5
  import { field as O, toggletip as k } from "@wirecore/wirelayer-recipes";
@@ -70,23 +70,26 @@ var j = ["aria-label", "aria-expanded"], M = { role: "status" }, N = /* @__PURE_
70
70
  classes: {}
71
71
  },
72
72
  setup(s) {
73
- let u = s, p = S(), g = t("field", O, () => u.classes), v = e(), C = x(), w = g(), D = r(() => u.invalid || !!u.error), k = r(() => !!u.success && !D.value);
74
- return h(n, r(() => ({ success: k.value }))), (e, t) => (m(), i(b(A).Root, d({
73
+ let u = s, p = S(), g = t("field", O, () => u.classes), v = e(), C = x(), w = g(), D = () => !!u.label || !!p.label, k = () => !!u.error || !!p.error, j = r(() => u.invalid || k()), M = r(() => (!!u.success || !!p.success) && !j.value);
74
+ return h(n, r(() => ({
75
+ success: M.value,
76
+ labelled: D()
77
+ }))), (e, t) => (m(), i(b(A).Root, d({
75
78
  ...b(C),
76
79
  class: b(w).base({ class: f(b(C).class) })
77
80
  }, {
78
- invalid: D.value,
81
+ invalid: j.value,
79
82
  required: s.required,
80
83
  disabled: s.disabled,
81
84
  "read-only": s.readOnly
82
85
  }), {
83
86
  default: T(() => [
84
- s.label && (s.labelHelp || p["label-help"]) ? (m(), o("div", {
87
+ D() && (s.labelHelp || p["label-help"]) ? (m(), o("div", {
85
88
  key: 0,
86
89
  class: f(b(w).labelRow())
87
90
  }, [l(b(A).Label, { class: f(b(w).label()) }, {
88
91
  default: T(() => [
89
- c(y(s.label), 1),
92
+ _(e.$slots, "label", {}, () => [c(y(s.label), 1)]),
90
93
  s.required ? (m(), i(b(A).RequiredIndicator, {
91
94
  key: 0,
92
95
  class: f(b(w).requiredIndicator())
@@ -96,16 +99,16 @@ var j = ["aria-label", "aria-expanded"], M = { role: "status" }, N = /* @__PURE_
96
99
  class: f(b(w).optionalIndicator())
97
100
  }, y(` (${s.optionalText ?? b(v).field.optional})`), 3)) : a("", !0)
98
101
  ]),
99
- _: 1
102
+ _: 3
100
103
  }, 8, ["class"]), l(N, { label: s.label }, {
101
104
  default: T(() => [_(e.$slots, "label-help", {}, () => [c(y(s.labelHelp), 1)])]),
102
105
  _: 3
103
- }, 8, ["label"])], 2)) : s.label ? (m(), i(b(A).Label, {
106
+ }, 8, ["label"])], 2)) : D() ? (m(), i(b(A).Label, {
104
107
  key: 1,
105
108
  class: f(b(w).label())
106
109
  }, {
107
110
  default: T(() => [
108
- c(y(s.label), 1),
111
+ _(e.$slots, "label", {}, () => [c(y(s.label), 1)]),
109
112
  s.required ? (m(), i(b(A).RequiredIndicator, {
110
113
  key: 0,
111
114
  class: f(b(w).requiredIndicator())
@@ -115,28 +118,28 @@ var j = ["aria-label", "aria-expanded"], M = { role: "status" }, N = /* @__PURE_
115
118
  class: f(b(w).optionalIndicator())
116
119
  }, y(` (${s.optionalText ?? b(v).field.optional})`), 3)) : a("", !0)
117
120
  ]),
118
- _: 1
121
+ _: 3
119
122
  }, 8, ["class"])) : a("", !0),
120
123
  _(e.$slots, "default"),
121
- s.helperText || k.value ? (m(), i(b(A).HelperText, {
124
+ s.helperText || p["helper-text"] || M.value ? (m(), i(b(A).HelperText, {
122
125
  key: 2,
123
126
  class: f(b(w).helperText())
124
127
  }, {
125
- default: T(() => [c(y(s.helperText), 1), k.value ? (m(), o("span", {
128
+ default: T(() => [_(e.$slots, "helper-text", {}, () => [c(y(s.helperText), 1)]), M.value ? (m(), o("span", {
126
129
  key: 0,
127
130
  class: f(b(w).successText())
128
131
  }, [l(b(E), {
129
132
  class: f(b(w).successIcon()),
130
133
  "aria-hidden": "true"
131
- }, null, 8, ["class"]), c(y(s.success), 1)], 2)) : a("", !0)]),
132
- _: 1
134
+ }, null, 8, ["class"]), _(e.$slots, "success", {}, () => [c(y(s.success), 1)])], 2)) : a("", !0)]),
135
+ _: 3
133
136
  }, 8, ["class"])) : a("", !0),
134
- s.error ? (m(), i(b(A).ErrorText, {
137
+ k() ? (m(), i(b(A).ErrorText, {
135
138
  key: 3,
136
139
  class: f(b(w).errorText())
137
140
  }, {
138
- default: T(() => [c(y(s.error), 1)]),
139
- _: 1
141
+ default: T(() => [_(e.$slots, "error", {}, () => [c(y(s.error), 1)])]),
142
+ _: 3
140
143
  }, 8, ["class"])) : a("", !0)
141
144
  ]),
142
145
  _: 3
@@ -1,10 +1,10 @@
1
1
  import { i as e, n as t } from "./recipes-BlM9aKyt.js";
2
- import { Fragment as n, computed as r, createBlock as i, createElementBlock as a, createTextVNode as o, defineComponent as s, normalizeClass as c, onBeforeUnmount as l, openBlock as u, ref as d, renderList as f, shallowRef as p, toDisplayString as m, unref as h, watch as g } from "vue";
3
- import { DataKeyResolver as _, createDataList as v, dataListAnnouncement as y, filterListOptions as b, groupListOptions as x, highlight as S, highlightChunks as C, indexListOptions as w, listOptionsForValues as T, listValues as E, toListOptions as D } from "@wirecore/wirelayer-recipes";
4
- import { useFilter as O } from "@ark-ui/vue/locale";
5
- import { Highlight as k } from "@ark-ui/vue/highlight";
2
+ import { Fragment as n, computed as r, createBlock as i, createElementBlock as a, createTextVNode as o, defineComponent as s, normalizeClass as c, onBeforeUnmount as l, onMounted as u, openBlock as d, ref as f, renderList as p, shallowRef as m, toDisplayString as h, unref as g, watch as _ } from "vue";
3
+ import { DataKeyResolver as v, checkListValues as y, createDataList as b, dataListAnnouncement as x, filterListOptions as S, groupListOptions as C, highlight as w, highlightChunks as T, indexListOptions as E, listOptionsForValues as D, listValues as O, toListOptions as k } from "@wirecore/wirelayer-recipes";
4
+ import { useFilter as A } from "@ark-ui/vue/locale";
5
+ import { Highlight as j } from "@ark-ui/vue/highlight";
6
6
  //#region src/utils/data-source.ts
7
- var A = {
7
+ var M = {
8
8
  status: "idle",
9
9
  items: [],
10
10
  loadingMore: !1,
@@ -12,8 +12,8 @@ var A = {
12
12
  search: "",
13
13
  tooShort: !1
14
14
  };
15
- function j(t) {
16
- let n = e(), i = p(A), a = p([]), o, s, c = () => ({
15
+ function N(t) {
16
+ let n = e(), i = m(M), a = m([]), o, s, c = () => ({
17
17
  pageSize: t.pageSize?.(),
18
18
  minSearchLength: t.minSearchLength?.(),
19
19
  debounce: t.debounce?.(),
@@ -21,16 +21,16 @@ function j(t) {
21
21
  });
22
22
  function u() {
23
23
  let e = t.source();
24
- if (e) return o ??= v({
24
+ if (e) return o ??= b({
25
25
  source: e,
26
26
  ...c(),
27
27
  onChange: (e) => i.value = e
28
- }), s ??= new _({
28
+ }), s ??= new v({
29
29
  source: e,
30
30
  onChange: (e) => a.value = e
31
31
  }), o;
32
32
  }
33
- return g(() => [
33
+ return _(() => [
34
34
  t.source(),
35
35
  t.pageSize?.(),
36
36
  t.minSearchLength?.(),
@@ -55,15 +55,15 @@ function j(t) {
55
55
  resolveKeys: (e) => {
56
56
  u() && e.length && s.resolve(e).catch(() => void 0);
57
57
  },
58
- announcement: r(() => t.source() ? y(i.value, n.value.translations, n.value.locale, t.minSearchLength?.() ?? 0) : "")
58
+ announcement: r(() => t.source() ? x(i.value, n.value.translations, n.value.locale, t.minSearchLength?.() ?? 0) : "")
59
59
  };
60
60
  }
61
- function M(t) {
62
- let n = e(), i = j({
61
+ function P(t) {
62
+ let n = e(), i = N({
63
63
  source: t.source,
64
64
  pageSize: t.pageSize,
65
65
  minSearchLength: t.minSearchLength
66
- }), a = r(() => i.active.value ? i.state.value.items : t.items()), o = r(() => D(i.resolved.value, t.accessors()));
66
+ }), a = r(() => i.active.value ? i.state.value.items : t.items()), o = r(() => k(i.resolved.value, t.accessors()));
67
67
  return {
68
68
  ...i,
69
69
  items: a,
@@ -84,11 +84,11 @@ function M(t) {
84
84
  }
85
85
  //#endregion
86
86
  //#region src/utils/list.ts
87
- function N(e, t, n = () => "") {
88
- let i = O({
87
+ function F(e, t, n = () => "") {
88
+ let i = A({
89
89
  sensitivity: "base",
90
90
  usage: "sort"
91
- }), a = r(() => D(e(), t())), o = r(() => b(a.value, n(), i.value.contains)), s = r(() => x(o.value));
91
+ }), a = r(() => k(e(), t())), o = r(() => S(a.value, n(), i.value.contains)), s = r(() => C(o.value));
92
92
  return {
93
93
  options: a,
94
94
  visible: o,
@@ -96,27 +96,30 @@ function N(e, t, n = () => "") {
96
96
  ordered: r(() => s.value.flatMap((e) => e.options))
97
97
  };
98
98
  }
99
- function P(e) {
100
- let t = d(e.defaultValue ?? (e.multiple ? [] : null)), n = d([]), i = r(() => e.model() === void 0 ? t.value : e.model()), a = r(() => T(e.multiple ? i.value ?? [] : E(i.value), w(e.items.value, n.value), e.accessors())), o = r(() => a.value.map((e) => e.key));
101
- function s(r) {
99
+ function I(e) {
100
+ let t = f(e.defaultValue ?? (e.multiple ? [] : null)), n = f([]), i = r(() => e.model() === void 0 ? t.value : e.model()), a = r(() => D(e.multiple ? i.value ?? [] : O(i.value, e.items.value), E(e.items.value, n.value), e.accessors())), o = r(() => a.value.map((e) => e.key)), s = e.check;
101
+ s && u(() => _([a, s.ready], ([e, t]) => {
102
+ t && y(s.component, e);
103
+ }, { immediate: !0 }));
104
+ function c(r) {
102
105
  n.value = r;
103
106
  let i = r.map((e) => e.value), a = e.multiple ? i : i[0] ?? null;
104
107
  t.value = a, e.emit(a);
105
108
  }
106
- function c(t, n = []) {
107
- let r = w(e.items.value, n, a.value);
108
- s(t.map((e) => r.get(e)).filter((e) => e !== void 0));
109
+ function l(t, n = []) {
110
+ let r = E(e.items.value, n, a.value);
111
+ c(t.map((e) => r.get(e)).filter((e) => e !== void 0));
109
112
  }
110
113
  return {
111
114
  selected: a,
112
115
  keys: o,
113
- commit: s,
114
- commitKeys: c
116
+ commit: c,
117
+ commitKeys: l
115
118
  };
116
119
  }
117
120
  //#endregion
118
121
  //#region src/components/Highlight/Highlight.vue
119
- var F = /* @__PURE__ */ s({
122
+ var L = /* @__PURE__ */ s({
120
123
  __name: "Highlight",
121
124
  props: {
122
125
  text: {},
@@ -135,22 +138,22 @@ var F = /* @__PURE__ */ s({
135
138
  classes: {}
136
139
  },
137
140
  setup(e) {
138
- let s = e, l = t("highlight", S, () => s.classes), d = r(() => s.wholeWord || s.ignoreAccents || !!s.colors?.length), p = r(() => d.value ? C(s.text, s.query, {
141
+ let s = e, l = t("highlight", w, () => s.classes), u = r(() => s.wholeWord || s.ignoreAccents || !!s.colors?.length), f = r(() => u.value ? T(s.text, s.query, {
139
142
  ignoreCase: s.ignoreCase,
140
143
  matchAll: s.matchAll,
141
144
  wholeWord: s.wholeWord,
142
145
  ignoreAccents: s.ignoreAccents
143
146
  }) : []);
144
- return (t, r) => d.value ? (u(!0), a(n, { key: 1 }, f(p.value, (t, r) => (u(), a(n, { key: r }, [t.match ? (u(), a("mark", {
147
+ return (t, r) => u.value ? (d(!0), a(n, { key: 1 }, p(f.value, (t, r) => (d(), a(n, { key: r }, [t.match ? (d(), a("mark", {
145
148
  key: 0,
146
- class: c(h(l)({ color: e.colors?.[t.term ?? 0] }))
147
- }, m(t.text), 3)) : (u(), a(n, { key: 1 }, [o(m(t.text), 1)], 64))], 64))), 128)) : (u(), i(h(k), {
149
+ class: c(g(l)({ color: e.colors?.[t.term ?? 0] }))
150
+ }, h(t.text), 3)) : (d(), a(n, { key: 1 }, [o(h(t.text), 1)], 64))], 64))), 128)) : (d(), i(g(j), {
148
151
  key: 0,
149
152
  text: e.text,
150
153
  query: e.query,
151
154
  "ignore-case": e.ignoreCase,
152
155
  "match-all": e.matchAll,
153
- class: c(h(l)())
156
+ class: c(g(l)())
154
157
  }, null, 8, [
155
158
  "text",
156
159
  "query",
@@ -161,4 +164,4 @@ var F = /* @__PURE__ */ s({
161
164
  }
162
165
  });
163
166
  //#endregion
164
- export { M as a, j as i, N as n, P as r, F as t };
167
+ export { P as a, N as i, F as n, I as r, L as t };
@@ -1,26 +1,28 @@
1
1
  import { a as e, n as t } from "./recipes-BlM9aKyt.js";
2
2
  import { t as n } from "./attrs-KNjeRUCf.js";
3
- import { r, t as i } from "./InputStatus-CUyF9-GR.js";
3
+ import { r, t as i } from "./InputStatus-D7kBGlew.js";
4
4
  import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createVNode as l, defineComponent as u, mergeModels as d, mergeProps as f, normalizeClass as p, normalizeStyle as m, openBlock as h, ref as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, useAttrs as b, useId as x, useModel as S, useTemplateRef as C } from "vue";
5
- import { CircleAlert as w } from "@lucide/vue";
6
- import { buttonColorKey as T, formatCount as E, iconButton as D, input as O, setTextControlValue as k } from "@wirecore/wirelayer-recipes";
7
- import { Field as A, useFieldContext as j } from "@ark-ui/vue/field";
5
+ import { CircleAlert as w, LoaderCircle as T } from "@lucide/vue";
6
+ import { buttonColorKey as E, formatCount as D, iconButton as O, input as k, setTextControlValue as A, spinner as j } from "@wirecore/wirelayer-recipes";
7
+ import { Field as M, useFieldContext as N } from "@ark-ui/vue/field";
8
8
  //#region src/components/IconButton/IconButton.vue?vue&type=script&setup=true&lang.ts
9
- var M = [
9
+ var P = [
10
10
  "type",
11
11
  "disabled",
12
12
  "aria-label"
13
- ], N = /* @__PURE__ */ u({
13
+ ], F = /* @__PURE__ */ u({
14
14
  inheritAttrs: !1,
15
15
  __name: "IconButton",
16
16
  props: {
17
17
  icon: {},
18
+ iconProps: {},
18
19
  label: {},
19
20
  variant: {},
20
21
  color: {},
21
22
  size: {},
22
23
  shape: {},
23
24
  disabled: { type: Boolean },
25
+ loading: { type: Boolean },
24
26
  type: { default: "button" },
25
27
  badge: { type: [Number, Boolean] },
26
28
  badgeLabel: {
@@ -30,33 +32,45 @@ var M = [
30
32
  classes: {}
31
33
  },
32
34
  setup(e) {
33
- let n = e, r = t("iconButton", D, () => n.classes), i = b(), l = a(() => r({
35
+ let n = e, r = t("iconButton", O, () => n.classes), i = t("spinner", j), l = b(), u = a(() => r({
34
36
  variant: n.variant,
35
- color: T(n.color),
37
+ color: E(n.color),
36
38
  size: n.size,
37
39
  shape: n.shape
38
- })), u = a(() => typeof n.badge == "number" && n.badge > 0 ? n.badge : 0), d = a(() => u.value ? `${n.label}, ${n.badgeLabel(E(u.value))}` : n.badge === !0 ? `${n.label}, ${n.badgeLabel(null)}` : n.label);
40
+ })), d = a(() => typeof n.badge == "number" && n.badge > 0 ? n.badge : 0), m = a(() => d.value ? `${n.label}, ${n.badgeLabel(D(d.value))}` : n.badge === !0 ? `${n.label}, ${n.badgeLabel(null)}` : n.label), g = a(() => n.loading ? {
41
+ "aria-disabled": !0,
42
+ "aria-busy": !0
43
+ } : {});
44
+ function x(e) {
45
+ n.loading ? e.preventDefault() : [l.onClick].flat().forEach((t) => t?.(e));
46
+ }
39
47
  return (t, n) => (h(), c("button", f({
40
- ...y(i),
41
- class: l.value.base({ class: p(y(i).class) })
48
+ ...y(l),
49
+ class: u.value.base({ class: p(y(l).class) }),
50
+ onClick: x,
51
+ ...g.value
42
52
  }, {
43
53
  type: e.type,
44
54
  disabled: e.disabled,
45
- "aria-label": d.value
46
- }), [(h(), o(_(e.icon), {
47
- class: p(l.value.icon()),
48
- "aria-hidden": "true"
49
- }, null, 8, ["class"])), u.value ? (h(), c("span", {
55
+ "aria-label": m.value
56
+ }), [e.loading ? (h(), o(y(T), {
50
57
  key: 0,
51
- class: p(l.value.badge()),
58
+ class: p(y(i)().icon({ class: u.value.icon() })),
59
+ "aria-hidden": "true"
60
+ }, null, 8, ["class"])) : (h(), o(_(e.icon), f({ key: 1 }, e.iconProps, {
61
+ class: u.value.icon(),
62
+ "aria-hidden": "true"
63
+ }), null, 16, ["class"])), d.value ? (h(), c("span", {
64
+ key: 2,
65
+ class: p(u.value.badge()),
52
66
  "aria-hidden": "true"
53
- }, v(y(E)(u.value)), 3)) : e.badge === !0 ? (h(), c("span", {
54
- key: 1,
55
- class: p(l.value.dot()),
67
+ }, v(y(D)(d.value)), 3)) : e.badge === !0 ? (h(), c("span", {
68
+ key: 3,
69
+ class: p(u.value.dot()),
56
70
  "aria-hidden": "true"
57
- }, null, 2)) : s("", !0)], 16, M));
71
+ }, null, 2)) : s("", !0)], 16, P));
58
72
  }
59
- }), P = ["data-invalid", "data-disabled"], F = ["id"], I = ["id"], L = /* @__PURE__ */ u({
73
+ }), I = ["data-invalid", "data-disabled"], L = ["id"], R = ["id"], z = /* @__PURE__ */ u({
60
74
  inheritAttrs: !1,
61
75
  __name: "Input",
62
76
  props: /*@__PURE__*/ d({
@@ -77,40 +91,40 @@ var M = [
77
91
  }),
78
92
  emits: ["update:modelValue"],
79
93
  setup(u) {
80
- let d = u, T = t("input", O, () => d.classes), E = e(), D = S(u, "modelValue"), M = b(), N = j(), L = r(), R = a(() => d.invalid || !!N?.value.invalid), z = a(() => !R.value && (d.success || L.value.success)), B = a(() => d.disabled || !!N?.value.disabled), V = a(() => !!M.readonly || M.readonly === "" || !!N?.value.readOnly), H = a(() => T({
94
+ let d = u, T = t("input", k, () => d.classes), E = e(), D = S(u, "modelValue"), O = b(), j = N(), P = r(), F = a(() => d.invalid || !!j?.value.invalid), z = a(() => !F.value && (d.success || P.value.success)), B = a(() => d.disabled || !!j?.value.disabled), V = a(() => !!O.readonly || O.readonly === "" || !!j?.value.readOnly), H = a(() => T({
81
95
  size: d.size,
82
- invalid: R.value,
96
+ invalid: F.value,
83
97
  success: z.value,
84
98
  disabled: B.value,
85
99
  hasIcon: !!d.leadingIcon,
86
- hasStatusIcon: R.value || z.value || d.loading || d.clearable
87
- })), U = a(() => n(M)), W = g(String(M.defaultValue ?? "")), G = a(() => d.clearable && !!(D.value ?? W.value) && !B.value && !V.value), K = x(), q = x(), J = a(() => [
88
- N?.value.ariaDescribedby,
100
+ hasStatusIcon: F.value || z.value || d.loading || d.clearable
101
+ })), U = a(() => n(O)), W = g(String(O.defaultValue ?? "")), G = a(() => d.clearable && !!(D.value ?? W.value) && !B.value && !V.value), K = x(), q = x(), J = a(() => [
102
+ j?.value.ariaDescribedby,
89
103
  d.prefix && K,
90
104
  d.suffix && q,
91
105
  U.value.rest["aria-describedby"]
92
106
  ].filter(Boolean).join(" ") || void 0), Y = C("control");
93
107
  function X() {
94
108
  let e = Y.value?.$el;
95
- e && (k(e), e.focus());
109
+ e && (A(e), e.focus());
96
110
  }
97
111
  return (e, t) => (h(), c("div", {
98
112
  class: p(H.value.base({ class: U.value.className })),
99
113
  style: m(U.value.style),
100
- "data-invalid": R.value || void 0,
114
+ "data-invalid": F.value || void 0,
101
115
  "data-disabled": B.value || void 0
102
116
  }, [
103
117
  u.prefix ? (h(), c("span", {
104
118
  key: 0,
105
119
  id: y(K),
106
120
  class: p(H.value.prefix())
107
- }, v(u.prefix), 11, F)) : s("", !0),
121
+ }, v(u.prefix), 11, L)) : s("", !0),
108
122
  u.leadingIcon ? (h(), o(_(u.leadingIcon), {
109
123
  key: 1,
110
124
  class: p(H.value.icon()),
111
125
  "aria-hidden": "true"
112
126
  }, null, 8, ["class"])) : s("", !0),
113
- l(y(A).Input, f({
127
+ l(y(M).Input, f({
114
128
  ref_key: "control",
115
129
  ref: Y,
116
130
  modelValue: D.value,
@@ -118,7 +132,7 @@ var M = [
118
132
  }, U.value.rest, {
119
133
  class: H.value.control(),
120
134
  disabled: B.value || void 0,
121
- "aria-invalid": R.value || void 0,
135
+ "aria-invalid": F.value || void 0,
122
136
  "aria-describedby": J.value,
123
137
  "aria-busy": u.loading || void 0,
124
138
  onInput: t[1] ||= (e) => W.value = e.target.value
@@ -150,7 +164,7 @@ var M = [
150
164
  "success",
151
165
  "classes"
152
166
  ])) : s("", !0),
153
- R.value ? (h(), o(y(w), {
167
+ F.value ? (h(), o(y(w), {
154
168
  key: 3,
155
169
  class: p(H.value.statusIcon()),
156
170
  "aria-hidden": "true"
@@ -159,9 +173,9 @@ var M = [
159
173
  key: 4,
160
174
  id: y(q),
161
175
  class: p(H.value.suffix())
162
- }, v(u.suffix), 11, I)) : s("", !0)
163
- ], 14, P));
176
+ }, v(u.suffix), 11, R)) : s("", !0)
177
+ ], 14, I));
164
178
  }
165
179
  });
166
180
  //#endregion
167
- export { N as n, L as t };
181
+ export { F as n, z as t };
@@ -4,7 +4,10 @@ import { CircleAlert as d, CircleCheck as f, LoaderCircle as p, X as m } from "@
4
4
  var h = Symbol("FieldStatus");
5
5
  function g() {
6
6
  let e = s(h, null);
7
- return t(() => e?.value ?? { success: !1 });
7
+ return t(() => e?.value ?? {
8
+ success: !1,
9
+ labelled: !1
10
+ });
8
11
  }
9
12
  //#endregion
10
13
  //#region src/components/Input/InputStatus.vue?vue&type=script&setup=true&lang.ts