@wirecore/wirelayer-vue 0.6.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 (120) hide show
  1. package/dist/{Checkbox-D9f77jtl.js → Checkbox-D175nhKK.js} +26 -22
  2. package/dist/ContextMenu-BEOEyUa6.js +2235 -0
  3. package/dist/{Highlight-Cg8DvCfq.js → Highlight-uwptdaUw.js} +35 -32
  4. package/dist/{Input-BhnYMKjE.js → Input-Cn5q0yVE.js} +48 -35
  5. package/dist/{Select-DAuYpE1c.js → Select-Bd2Vpr7G.js} +173 -164
  6. package/dist/Slider-Cpv7Vj3B.js +143 -0
  7. package/dist/{Tree-DWxqSrO6.js → Tree-fd9LXqgZ.js} +183 -180
  8. package/dist/chart.js +1 -1
  9. package/dist/components/AngleSlider/AngleSlider.vue.d.ts +2 -0
  10. package/dist/components/AngleSlider/AngleSlider.vue.d.ts.map +1 -1
  11. package/dist/components/Autocomplete/Autocomplete.vue.d.ts +2 -0
  12. package/dist/components/Autocomplete/Autocomplete.vue.d.ts.map +1 -1
  13. package/dist/components/Carousel/Carousel.vue.d.ts +2 -0
  14. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  15. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +2 -0
  16. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  17. package/dist/components/Checkbox/Checkbox.vue.d.ts +2 -0
  18. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  19. package/dist/components/ColorInput/ColorInput.vue.d.ts.map +1 -1
  20. package/dist/components/ColorPicker/ColorPicker.vue.d.ts +2 -0
  21. package/dist/components/ColorPicker/ColorPicker.vue.d.ts.map +1 -1
  22. package/dist/components/Combobox/Combobox.vue.d.ts +2 -0
  23. package/dist/components/Combobox/Combobox.vue.d.ts.map +1 -1
  24. package/dist/components/Confirm/ConfirmDialog.vue.d.ts +5 -0
  25. package/dist/components/Confirm/ConfirmDialog.vue.d.ts.map +1 -1
  26. package/dist/components/Confirm/confirm.d.ts +7 -0
  27. package/dist/components/Confirm/confirm.d.ts.map +1 -1
  28. package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
  29. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  30. package/dist/components/DatePicker/DatePickerBase.vue.d.ts +2 -0
  31. package/dist/components/DatePicker/DatePickerBase.vue.d.ts.map +1 -1
  32. package/dist/components/DateRangePicker/DateRangePicker.vue.d.ts +2 -0
  33. package/dist/components/DateRangePicker/DateRangePicker.vue.d.ts.map +1 -1
  34. package/dist/components/Dialog/DialogContent.vue.d.ts +2 -0
  35. package/dist/components/Dialog/DialogContent.vue.d.ts.map +1 -1
  36. package/dist/components/Drawer/DrawerContent.vue.d.ts +2 -0
  37. package/dist/components/Drawer/DrawerContent.vue.d.ts.map +1 -1
  38. package/dist/components/DurationInput/DurationInput.vue.d.ts +2 -0
  39. package/dist/components/DurationInput/DurationInput.vue.d.ts.map +1 -1
  40. package/dist/components/IconButton/IconButton.vue.d.ts +2 -0
  41. package/dist/components/IconButton/IconButton.vue.d.ts.map +1 -1
  42. package/dist/components/Knob/Knob.vue.d.ts +2 -0
  43. package/dist/components/Knob/Knob.vue.d.ts.map +1 -1
  44. package/dist/components/Listbox/Listbox.vue.d.ts +2 -0
  45. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  46. package/dist/components/MonthPicker/MonthPicker.vue.d.ts +2 -0
  47. package/dist/components/MonthPicker/MonthPicker.vue.d.ts.map +1 -1
  48. package/dist/components/MultiSelect/MultiSelect.vue.d.ts +2 -0
  49. package/dist/components/MultiSelect/MultiSelect.vue.d.ts.map +1 -1
  50. package/dist/components/NumberInput/NumberInput.vue.d.ts +2 -0
  51. package/dist/components/NumberInput/NumberInput.vue.d.ts.map +1 -1
  52. package/dist/components/PasswordInput/PasswordInput.vue.d.ts +2 -0
  53. package/dist/components/PasswordInput/PasswordInput.vue.d.ts.map +1 -1
  54. package/dist/components/PinInput/PinInput.vue.d.ts +2 -0
  55. package/dist/components/PinInput/PinInput.vue.d.ts.map +1 -1
  56. package/dist/components/RadioGroup/RadioGroup.vue.d.ts.map +1 -1
  57. package/dist/components/Rating/Rating.vue.d.ts +2 -0
  58. package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
  59. package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
  60. package/dist/components/Select/Select.vue.d.ts +2 -0
  61. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  62. package/dist/components/SelectionCard/CheckboxCard.vue.d.ts +2 -0
  63. package/dist/components/SelectionCard/CheckboxCard.vue.d.ts.map +1 -1
  64. package/dist/components/Slider/Slider.vue.d.ts +2 -0
  65. package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
  66. package/dist/components/Switch/Switch.vue.d.ts +2 -0
  67. package/dist/components/Switch/Switch.vue.d.ts.map +1 -1
  68. package/dist/components/TagsInput/TagsInput.vue.d.ts +2 -0
  69. package/dist/components/TagsInput/TagsInput.vue.d.ts.map +1 -1
  70. package/dist/components/TimePicker/TimePicker.vue.d.ts +2 -0
  71. package/dist/components/TimePicker/TimePicker.vue.d.ts.map +1 -1
  72. package/dist/components/TimeRangePicker/TimeRangePicker.vue.d.ts +2 -0
  73. package/dist/components/TimeRangePicker/TimeRangePicker.vue.d.ts.map +1 -1
  74. package/dist/components/Tooltip/Tooltip.vue.d.ts +3 -0
  75. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  76. package/dist/components/TreeSelect/TreeSelect.vue.d.ts +2 -0
  77. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  78. package/dist/components/YearPicker/YearPicker.vue.d.ts +2 -0
  79. package/dist/components/YearPicker/YearPicker.vue.d.ts.map +1 -1
  80. package/dist/data-table/DataTable.vue.d.ts +9 -1
  81. package/dist/data-table/DataTable.vue.d.ts.map +1 -1
  82. package/dist/data-table.js +1007 -994
  83. package/dist/editor.js +1 -1
  84. package/dist/form/FormField.vue.d.ts +3 -0
  85. package/dist/form/FormField.vue.d.ts.map +1 -1
  86. package/dist/form.js +7 -4
  87. package/dist/index.d.ts +1 -1
  88. package/dist/index.d.ts.map +1 -1
  89. package/dist/index.js +5674 -5521
  90. package/dist/label-for-eQvYjsM5.js +8 -0
  91. package/dist/pdf.js +2 -2
  92. package/dist/sources/ActionBar.css +1 -0
  93. package/dist/sources/AppShell.css +1 -0
  94. package/dist/sources/ChatPrompt.css +1 -0
  95. package/dist/sources/Gallery.css +1 -0
  96. package/dist/sources/IconButton.css +1 -0
  97. package/dist/sources/Image.css +1 -0
  98. package/dist/sources/ImageCropper.css +1 -0
  99. package/dist/sources/InlineEdit.css +1 -0
  100. package/dist/sources/Marquee.css +1 -0
  101. package/dist/sources/MegaMenu.css +1 -0
  102. package/dist/sources/Menubar.css +1 -0
  103. package/dist/sources/OrderList.css +1 -0
  104. package/dist/sources/PickList.css +1 -0
  105. package/dist/sources/ScrollTop.css +1 -0
  106. package/dist/{useTree-H8XsFHMk.js → useTree-UhG1TMeM.js} +1 -1
  107. package/dist/utils/label-for.d.ts +3 -0
  108. package/dist/utils/label-for.d.ts.map +1 -0
  109. package/dist/utils/list.d.ts +5 -0
  110. package/dist/utils/list.d.ts.map +1 -1
  111. package/dist/virtual/VirtualSelect.vue.d.ts +2 -0
  112. package/dist/virtual/VirtualSelect.vue.d.ts.map +1 -1
  113. package/dist/virtual.js +207 -197
  114. package/fonts.css +2 -0
  115. package/llms-full.txt +188 -3
  116. package/llms.txt +4 -1
  117. package/package.json +7 -3
  118. package/theme.css +14 -0
  119. package/dist/ContextMenu-C5JKyNlX.js +0 -2209
  120. package/dist/Slider-CyoZc5A8.js +0 -135
@@ -0,0 +1,143 @@
1
+ import { a as e, n as t } from "./recipes-BlM9aKyt.js";
2
+ import { t as n } from "./label-for-eQvYjsM5.js";
3
+ import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, openBlock as m, ref as h, renderList as g, toDisplayString as _, unref as v, useAttrs as y, useId as b, withCtx as x } from "vue";
4
+ import { slider as S, snapToMarks as C } from "@wirecore/wirelayer-recipes";
5
+ import { Slider as w } from "@ark-ui/vue/slider";
6
+ //#region src/components/Slider/Slider.vue?vue&type=script&setup=true&lang.ts
7
+ var T = ["id"], E = ["data-orientation"], D = /* @__PURE__ */ d({
8
+ inheritAttrs: !1,
9
+ __name: "Slider",
10
+ props: {
11
+ modelValue: { default: void 0 },
12
+ defaultValue: { default: () => [0] },
13
+ min: { default: 0 },
14
+ max: { default: 100 },
15
+ step: { default: 1 },
16
+ label: {},
17
+ thumbLabels: {},
18
+ showValue: {
19
+ type: Boolean,
20
+ default: !0
21
+ },
22
+ hideLabel: { type: Boolean },
23
+ formatValue: {
24
+ type: Function,
25
+ default: String
26
+ },
27
+ disabled: {
28
+ type: Boolean,
29
+ default: void 0
30
+ },
31
+ name: {},
32
+ orientation: { default: void 0 },
33
+ marks: { default: void 0 },
34
+ restrictToMarks: { type: Boolean },
35
+ minRange: { default: void 0 },
36
+ classes: {}
37
+ },
38
+ emits: ["update:modelValue", "valueChangeEnd"],
39
+ setup(d, { emit: D }) {
40
+ let O = e(), k = d, A = t("slider", S, () => k.classes), j = D, M = y();
41
+ n("Slider", () => M.id);
42
+ let N = i(() => A({
43
+ withMarks: !!k.marks?.length,
44
+ hideLabel: k.hideLabel,
45
+ hideHeader: k.hideLabel && !k.showValue
46
+ })), P = i(() => (k.marks ?? []).map((e) => typeof e == "number" ? { value: e } : e)), F = h(k.defaultValue), I = i(() => k.restrictToMarks && P.value.length > 0), L = i(() => I.value ? k.modelValue ?? F.value : k.modelValue);
47
+ function R(e) {
48
+ if (!I.value) return j("update:modelValue", e);
49
+ let t = C(e, L.value ?? k.defaultValue, P.value.map((e) => e.value));
50
+ F.value = t, j("update:modelValue", t);
51
+ }
52
+ let z = b(), B = `${z}label`, V = i(() => (k.modelValue ?? k.defaultValue).length);
53
+ return (e, t) => (m(), a(v(w).Root, f({
54
+ ...v(M),
55
+ class: N.value.base({ class: p(v(M).class) })
56
+ }, {
57
+ ids: { label: B },
58
+ "model-value": L.value,
59
+ "default-value": d.defaultValue,
60
+ min: d.min,
61
+ max: d.max,
62
+ step: d.step,
63
+ disabled: d.disabled,
64
+ name: d.name,
65
+ orientation: d.orientation,
66
+ "min-steps-between-thumbs": d.minRange ? Math.ceil(d.minRange / d.step) : void 0,
67
+ "get-aria-value-text": (e) => d.formatValue(e.value),
68
+ onValueChange: t[0] ||= (e) => R(e.value),
69
+ onValueChangeEnd: t[1] ||= (e) => j("valueChangeEnd", e.value)
70
+ }), {
71
+ default: x(() => [c("div", { class: p(N.value.header()) }, [u(v(w).Label, {
72
+ id: B,
73
+ class: p(N.value.label())
74
+ }, {
75
+ default: x(() => [l(_(d.label), 1)]),
76
+ _: 1
77
+ }, 8, ["class"]), d.showValue ? (m(), a(v(w).Context, { key: 0 }, {
78
+ default: x((e) => [c("span", {
79
+ class: p(N.value.value()),
80
+ "aria-hidden": "true"
81
+ }, _(e.value.map(d.formatValue).join(" – ")), 3)]),
82
+ _: 1
83
+ })) : o("", !0)], 2), u(v(w).Control, { class: p(N.value.control()) }, {
84
+ default: x(() => [
85
+ u(v(w).Track, { class: p(N.value.track()) }, {
86
+ default: x(() => [u(v(w).Range, { class: p(N.value.range()) }, null, 8, ["class"])]),
87
+ _: 1
88
+ }, 8, ["class"]),
89
+ (m(!0), s(r, null, g(V.value, (e) => (m(), a(v(w).Thumb, {
90
+ key: e,
91
+ index: e - 1,
92
+ class: p(N.value.thumb()),
93
+ "aria-labelledby": V.value > 1 ? `${B} ${v(z)}thumb${e - 1}` : B
94
+ }, {
95
+ default: x(() => [V.value > 1 ? (m(), s("span", {
96
+ key: 0,
97
+ id: `${v(z)}thumb${e - 1}`,
98
+ class: p(N.value.thumbLabel())
99
+ }, _((d.thumbLabels ?? v(O).slider.thumbs)[e - 1]), 11, T)) : o("", !0), u(v(w).HiddenInput)]),
100
+ _: 2
101
+ }, 1032, [
102
+ "index",
103
+ "class",
104
+ "aria-labelledby"
105
+ ]))), 128)),
106
+ P.value.length ? (m(), a(v(w).MarkerGroup, {
107
+ key: 0,
108
+ class: p(N.value.markerGroup())
109
+ }, {
110
+ default: x(() => [(m(!0), s(r, null, g(P.value, (e) => (m(), a(v(w).Marker, {
111
+ key: e.value,
112
+ value: e.value,
113
+ class: p(N.value.marker())
114
+ }, {
115
+ default: x(() => [c("span", {
116
+ class: p(N.value.markerTick()),
117
+ "data-orientation": d.orientation ?? "horizontal"
118
+ }, null, 10, E), l(_(e.label), 1)]),
119
+ _: 2
120
+ }, 1032, ["value", "class"]))), 128))]),
121
+ _: 1
122
+ }, 8, ["class"])) : o("", !0)
123
+ ]),
124
+ _: 1
125
+ }, 8, ["class"])]),
126
+ _: 1
127
+ }, 16, [
128
+ "ids",
129
+ "model-value",
130
+ "default-value",
131
+ "min",
132
+ "max",
133
+ "step",
134
+ "disabled",
135
+ "name",
136
+ "orientation",
137
+ "min-steps-between-thumbs",
138
+ "get-aria-value-text"
139
+ ]));
140
+ }
141
+ });
142
+ //#endregion
143
+ export { D as t };