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