@sprawlify/vue 0.0.70 → 0.0.73
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/boolean-CpMsIRK4.js +7 -0
- package/dist/components/accordion/index.d.ts +20 -20
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/angle-slider/index.d.ts +19 -19
- package/dist/components/avatar/index.d.ts +3 -3
- package/dist/components/bottom-sheet/index.d.ts +22 -22
- package/dist/components/carousel/index.d.ts +25 -25
- package/dist/components/checkbox/index.d.ts +28 -28
- package/dist/components/checkbox/index.js +1 -6
- package/dist/components/client-only/index.d.ts +2 -2
- package/dist/components/clipboard/index.d.ts +17 -17
- package/dist/components/collapsible/index.d.ts +17 -17
- package/dist/components/collapsible/index.js +1 -1
- package/dist/components/collection/index.d.ts +1 -1
- package/dist/components/collection/index.js +1 -1
- package/dist/components/color-picker/index.d.ts +58 -58
- package/dist/components/combobox/index.d.ts +38 -38
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/date-picker/index.d.ts +51 -51
- package/dist/components/dialog/index.d.ts +33 -33
- package/dist/components/download-trigger/index.d.ts +4 -4
- package/dist/components/editable/index.d.ts +29 -29
- package/dist/components/field/index.d.ts +26 -26
- package/dist/components/fieldset/index.d.ts +13 -13
- package/dist/components/file-upload/index.d.ts +25 -25
- package/dist/components/floating-panel/index.d.ts +24 -25
- package/dist/components/focus-trap/index.d.ts +5 -5
- package/dist/components/format/index.d.ts +4 -4
- package/dist/components/frame/index.d.ts +6 -6
- package/dist/components/highlight/index.d.ts +5 -5
- package/dist/components/hover-card/index.d.ts +27 -27
- package/dist/components/image-cropper/index.d.ts +16 -16
- package/dist/components/json-tree-view/index.d.ts +12 -12
- package/dist/components/json-tree-view/index.js +3 -3
- package/dist/components/listbox/index.d.ts +26 -26
- package/dist/components/listbox/index.js +1 -1
- package/dist/components/marquee/index.d.ts +23 -23
- package/dist/components/menu/index.d.ts +53 -54
- package/dist/components/navigation-menu/index.d.ts +20 -20
- package/dist/components/number-input/index.d.ts +22 -22
- package/dist/components/pagination/index.d.ts +17 -17
- package/dist/components/password-input/index.d.ts +25 -25
- package/dist/components/pin-input/index.d.ts +21 -21
- package/dist/components/popover/index.d.ts +34 -34
- package/dist/components/presence/index.d.ts +2 -2
- package/dist/components/progress/index.d.ts +231 -0
- package/dist/components/progress/index.js +372 -0
- package/dist/components/qr-code/index.d.ts +159 -0
- package/dist/components/qr-code/index.js +263 -0
- package/dist/components/radio-group/index.d.ts +231 -0
- package/dist/components/radio-group/index.js +378 -0
- package/dist/components/rating-group/index.d.ts +201 -0
- package/dist/components/rating-group/index.js +330 -0
- package/dist/components/scroll-area/index.d.ts +171 -0
- package/dist/components/scroll-area/index.js +264 -0
- package/dist/components/segment-group/index.d.ts +231 -0
- package/dist/components/segment-group/index.js +422 -0
- package/dist/components/select/index.d.ts +39 -39
- package/dist/components/select/index.js +1 -1
- package/dist/components/signature-pad/index.d.ts +202 -0
- package/dist/components/signature-pad/index.js +345 -0
- package/dist/components/slider/index.d.ts +300 -0
- package/dist/components/slider/index.js +511 -0
- package/dist/components/splitter/index.d.ts +162 -0
- package/dist/components/splitter/index.js +280 -0
- package/dist/components/steps/index.d.ts +290 -0
- package/dist/components/steps/index.js +469 -0
- package/dist/components/switch/index.d.ts +179 -0
- package/dist/components/switch/index.js +290 -0
- package/dist/components/tabs/index.d.ts +181 -0
- package/dist/components/tabs/index.js +335 -0
- package/dist/components/tags-input/index.d.ts +339 -0
- package/dist/components/tags-input/index.js +569 -0
- package/dist/components/timer/index.d.ts +177 -0
- package/dist/components/timer/index.js +295 -0
- package/dist/components/toast/index.d.ts +154 -0
- package/dist/components/toast/index.js +265 -0
- package/dist/components/toggle/index.d.ts +101 -0
- package/dist/components/toggle/index.js +131 -0
- package/dist/components/toggle-group/index.d.ts +127 -0
- package/dist/components/toggle-group/index.js +207 -0
- package/dist/components/tooltip/index.d.ts +201 -0
- package/dist/components/tooltip/index.js +349 -0
- package/dist/components/tour/index.d.ts +308 -0
- package/dist/components/tour/index.js +505 -0
- package/dist/components/tree-view/index.d.ts +5 -5
- package/dist/components/tree-view/index.js +3 -3
- package/dist/{index-Cjk1WhUx.d.ts → index-8bjPAUl0.d.ts} +10 -10
- package/dist/{index-D0_ID5xv.d.ts → index-BnYwp0nl.d.ts} +7 -7
- package/dist/{index-ByYmM8LZ.d.ts → index-CmCVWB7e.d.ts} +33 -33
- package/dist/index.d.ts +3 -3
- package/dist/{tree-view-CzfDgztL.js → tree-view-N6ShNmpe.js} +1 -1
- package/package.json +78 -2
- /package/dist/{collapsible-D1Mx4C0H.js → collapsible-SXAS3iFc.js} +0 -0
- /package/dist/{collection-DiwGNCAy.js → collection-C_ZHBDQD.js} +0 -0
- /package/dist/{factory-Dg6Whljf.d.ts → factory-B5zr8_kk.d.ts} +0 -0
- /package/dist/{index-DI09ccnU.d.ts → index-CCRVRFFQ.d.ts} +0 -0
- /package/dist/{index-ECeveDvH.d.ts → index-DhFoJHfp.d.ts} +0 -0
- /package/dist/{presence-types-BaQ7PILD.d.ts → presence-types-BJRr8tqd.d.ts} +0 -0
- /package/dist/{types-BkS9kMJ5.d.ts → types-DIEO6uP3.d.ts} +0 -0
- /package/dist/{use-render-strategy-bdLKqL57.d.ts → use-render-strategy-U5NxU252.d.ts} +0 -0
|
@@ -0,0 +1,505 @@
|
|
|
1
|
+
import { t as __exportAll } from "../../chunk-BN_g-Awi.js";
|
|
2
|
+
import { n as useMachine, r as normalizeProps$1, t as mergeProps$1 } from "../../core-DNndr38p.js";
|
|
3
|
+
import { a as useLocaleContext, c as useEnvironmentContext, i as DEFAULT_LOCALE, s as DEFAULT_ENVIRONMENT } from "../../providers-DNBWT-O_.js";
|
|
4
|
+
import { t as createContext } from "../../create-context-Ds1GbsVc.js";
|
|
5
|
+
import { t as useForwardExpose } from "../../use-forward-expose-CCAmHTUB.js";
|
|
6
|
+
import { t as sprawlify } from "../../factory-Co08Aw8u.js";
|
|
7
|
+
import { t as cleanProps } from "../../clean-props-ChPEW0vT.js";
|
|
8
|
+
import { n as useRenderStrategyProps, t as RenderStrategyPropsProvider } from "../../use-render-strategy-DMa_QmB6.js";
|
|
9
|
+
import { i as usePresence, n as PresenceProvider, r as usePresenceContext } from "../../presence-BK6rPXK7.js";
|
|
10
|
+
import { computed, createBlock, createCommentVNode, createTextVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, renderSlot, toDisplayString, toValue, unref, useId, useSlots, withCtx } from "vue";
|
|
11
|
+
import * as tour from "@sprawlify/primitives/machines/tour";
|
|
12
|
+
import { anatomy, waitForElement, waitForElementValue, waitForPromise } from "@sprawlify/primitives/machines/tour";
|
|
13
|
+
|
|
14
|
+
//#region src/components/tour/wait-for-event.ts
|
|
15
|
+
function waitForEvent(target, event, options) {
|
|
16
|
+
let cleanup;
|
|
17
|
+
const { predicate, ...listenerOptions } = options ?? {};
|
|
18
|
+
return [new Promise((resolve) => {
|
|
19
|
+
const element = target?.();
|
|
20
|
+
if (!element) return;
|
|
21
|
+
const handler = (e) => {
|
|
22
|
+
if (!predicate || predicate(element)) {
|
|
23
|
+
resolve(e);
|
|
24
|
+
cleanup?.();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
element.addEventListener(event, handler, listenerOptions);
|
|
28
|
+
cleanup = () => element.removeEventListener(event, handler, listenerOptions);
|
|
29
|
+
}), () => cleanup?.()];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/components/tour/use-tour-context.ts
|
|
34
|
+
const [TourProvider, useTourContext] = createContext("TourContext");
|
|
35
|
+
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/components/tour/tour-action-trigger.vue?vue&type=script&setup=true&lang.ts
|
|
38
|
+
var tour_action_trigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
39
|
+
__name: "tour-action-trigger",
|
|
40
|
+
props: {
|
|
41
|
+
action: {
|
|
42
|
+
type: Object,
|
|
43
|
+
required: true
|
|
44
|
+
},
|
|
45
|
+
asChild: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
required: false
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
setup(__props) {
|
|
51
|
+
const props = __props;
|
|
52
|
+
const tour = useTourContext();
|
|
53
|
+
const slots = useSlots();
|
|
54
|
+
useForwardExpose();
|
|
55
|
+
return (_ctx, _cache) => {
|
|
56
|
+
return openBlock(), createBlock(unref(sprawlify).button, mergeProps(unref(tour).getActionTriggerProps(props), { "as-child": __props.asChild }), {
|
|
57
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(slots.default?.() || props.action.label), 1)])]),
|
|
58
|
+
_: 3
|
|
59
|
+
}, 16, ["as-child"]);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region src/components/tour/tour-action-trigger.vue
|
|
66
|
+
var tour_action_trigger_default = tour_action_trigger_vue_vue_type_script_setup_true_lang_default;
|
|
67
|
+
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/components/tour/tour-actions.vue?vue&type=script&setup=true&lang.ts
|
|
70
|
+
var tour_actions_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
71
|
+
__name: "tour-actions",
|
|
72
|
+
setup(__props) {
|
|
73
|
+
const tour = useTourContext();
|
|
74
|
+
return (_ctx, _cache) => {
|
|
75
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(tour).step?.actions ?? [])));
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region src/components/tour/tour-actions.vue
|
|
82
|
+
var tour_actions_default = tour_actions_vue_vue_type_script_setup_true_lang_default;
|
|
83
|
+
|
|
84
|
+
//#endregion
|
|
85
|
+
//#region src/components/tour/tour-arrow-tip.vue?vue&type=script&setup=true&lang.ts
|
|
86
|
+
var tour_arrow_tip_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
87
|
+
__name: "tour-arrow-tip",
|
|
88
|
+
props: { asChild: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
required: false
|
|
91
|
+
} },
|
|
92
|
+
setup(__props) {
|
|
93
|
+
const tour = useTourContext();
|
|
94
|
+
useForwardExpose();
|
|
95
|
+
return (_ctx, _cache) => {
|
|
96
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(tour).getArrowTipProps(), { "as-child": __props.asChild }), {
|
|
97
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
98
|
+
_: 3
|
|
99
|
+
}, 16, ["as-child"]);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
//#endregion
|
|
105
|
+
//#region src/components/tour/tour-arrow-tip.vue
|
|
106
|
+
var tour_arrow_tip_default = tour_arrow_tip_vue_vue_type_script_setup_true_lang_default;
|
|
107
|
+
|
|
108
|
+
//#endregion
|
|
109
|
+
//#region src/components/tour/tour-arrow.vue?vue&type=script&setup=true&lang.ts
|
|
110
|
+
var tour_arrow_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
111
|
+
__name: "tour-arrow",
|
|
112
|
+
props: { asChild: {
|
|
113
|
+
type: Boolean,
|
|
114
|
+
required: false
|
|
115
|
+
} },
|
|
116
|
+
setup(__props) {
|
|
117
|
+
const tour = useTourContext();
|
|
118
|
+
useForwardExpose();
|
|
119
|
+
return (_ctx, _cache) => {
|
|
120
|
+
return unref(tour).step?.arrow ? (openBlock(), createBlock(unref(sprawlify).div, mergeProps({ key: 0 }, unref(tour).getArrowProps(), { "as-child": __props.asChild }), {
|
|
121
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
122
|
+
_: 3
|
|
123
|
+
}, 16, ["as-child"])) : createCommentVNode("v-if", true);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
//#endregion
|
|
129
|
+
//#region src/components/tour/tour-arrow.vue
|
|
130
|
+
var tour_arrow_default = tour_arrow_vue_vue_type_script_setup_true_lang_default;
|
|
131
|
+
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/components/tour/tour-backdrop.vue?vue&type=script&setup=true&lang.ts
|
|
134
|
+
var tour_backdrop_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
135
|
+
__name: "tour-backdrop",
|
|
136
|
+
props: { asChild: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
required: false
|
|
139
|
+
} },
|
|
140
|
+
setup(__props) {
|
|
141
|
+
const tour = useTourContext();
|
|
142
|
+
const renderStrategy = useRenderStrategyProps();
|
|
143
|
+
const presence = usePresence(computed(() => ({
|
|
144
|
+
...renderStrategy.value,
|
|
145
|
+
present: tour.value.open
|
|
146
|
+
})));
|
|
147
|
+
const mergedProps = computed(() => mergeProps$1(tour.value.getBackdropProps(), presence.value.presenceProps));
|
|
148
|
+
useForwardExpose();
|
|
149
|
+
return (_ctx, _cache) => {
|
|
150
|
+
return unref(tour).step?.backdrop && !unref(presence).unmounted ? (openBlock(), createBlock(unref(sprawlify).div, mergeProps({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
151
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
152
|
+
_: 3
|
|
153
|
+
}, 16, ["as-child"])) : createCommentVNode("v-if", true);
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
//#endregion
|
|
159
|
+
//#region src/components/tour/tour-backdrop.vue
|
|
160
|
+
var tour_backdrop_default = tour_backdrop_vue_vue_type_script_setup_true_lang_default;
|
|
161
|
+
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region src/components/tour/tour-close-trigger.vue?vue&type=script&setup=true&lang.ts
|
|
164
|
+
var tour_close_trigger_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
165
|
+
__name: "tour-close-trigger",
|
|
166
|
+
props: { asChild: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
required: false
|
|
169
|
+
} },
|
|
170
|
+
setup(__props) {
|
|
171
|
+
const tour = useTourContext();
|
|
172
|
+
useForwardExpose();
|
|
173
|
+
return (_ctx, _cache) => {
|
|
174
|
+
return openBlock(), createBlock(unref(sprawlify).button, mergeProps(unref(tour).getCloseTriggerProps(), { "as-child": __props.asChild }), {
|
|
175
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
176
|
+
_: 3
|
|
177
|
+
}, 16, ["as-child"]);
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
//#endregion
|
|
183
|
+
//#region src/components/tour/tour-close-trigger.vue
|
|
184
|
+
var tour_close_trigger_default = tour_close_trigger_vue_vue_type_script_setup_true_lang_default;
|
|
185
|
+
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region src/components/tour/tour-content.vue?vue&type=script&setup=true&lang.ts
|
|
188
|
+
var tour_content_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
189
|
+
__name: "tour-content",
|
|
190
|
+
props: { asChild: {
|
|
191
|
+
type: Boolean,
|
|
192
|
+
required: false
|
|
193
|
+
} },
|
|
194
|
+
setup(__props) {
|
|
195
|
+
const tour = useTourContext();
|
|
196
|
+
const presence = usePresenceContext();
|
|
197
|
+
const mergedProps = computed(() => mergeProps$1(tour.value.getContentProps(), presence.value.presenceProps));
|
|
198
|
+
useForwardExpose();
|
|
199
|
+
return (_ctx, _cache) => {
|
|
200
|
+
return !unref(presence).unmounted ? (openBlock(), createBlock(unref(sprawlify).div, mergeProps({ key: 0 }, mergedProps.value, { "as-child": __props.asChild }), {
|
|
201
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
202
|
+
_: 3
|
|
203
|
+
}, 16, ["as-child"])) : createCommentVNode("v-if", true);
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
});
|
|
207
|
+
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/components/tour/tour-content.vue
|
|
210
|
+
var tour_content_default = tour_content_vue_vue_type_script_setup_true_lang_default;
|
|
211
|
+
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region src/components/tour/tour-context.vue?vue&type=script&setup=true&lang.ts
|
|
214
|
+
var tour_context_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
215
|
+
__name: "tour-context",
|
|
216
|
+
setup(__props) {
|
|
217
|
+
const tour = useTourContext();
|
|
218
|
+
return (_ctx, _cache) => {
|
|
219
|
+
return renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(unref(tour))));
|
|
220
|
+
};
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region src/components/tour/tour-context.vue
|
|
226
|
+
var tour_context_default = tour_context_vue_vue_type_script_setup_true_lang_default;
|
|
227
|
+
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region src/components/tour/tour-anatomy.ts
|
|
230
|
+
const tourAnatomy = anatomy.extendWith("control");
|
|
231
|
+
|
|
232
|
+
//#endregion
|
|
233
|
+
//#region src/components/tour/tour-control.vue?vue&type=script&setup=true&lang.ts
|
|
234
|
+
var tour_control_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
235
|
+
__name: "tour-control",
|
|
236
|
+
props: { asChild: {
|
|
237
|
+
type: Boolean,
|
|
238
|
+
required: false
|
|
239
|
+
} },
|
|
240
|
+
setup(__props) {
|
|
241
|
+
useForwardExpose();
|
|
242
|
+
return (_ctx, _cache) => {
|
|
243
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps({ ...unref(tourAnatomy).build().control.attrs }, { "as-child": __props.asChild }), {
|
|
244
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
245
|
+
_: 3
|
|
246
|
+
}, 16, ["as-child"]);
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
|
|
251
|
+
//#endregion
|
|
252
|
+
//#region src/components/tour/tour-control.vue
|
|
253
|
+
var tour_control_default = tour_control_vue_vue_type_script_setup_true_lang_default;
|
|
254
|
+
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region src/components/tour/tour-description.vue?vue&type=script&setup=true&lang.ts
|
|
257
|
+
var tour_description_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
258
|
+
__name: "tour-description",
|
|
259
|
+
props: { asChild: {
|
|
260
|
+
type: Boolean,
|
|
261
|
+
required: false
|
|
262
|
+
} },
|
|
263
|
+
setup(__props) {
|
|
264
|
+
const tour = useTourContext();
|
|
265
|
+
const slots = useSlots();
|
|
266
|
+
useForwardExpose();
|
|
267
|
+
return (_ctx, _cache) => {
|
|
268
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(tour).getDescriptionProps(), { "as-child": __props.asChild }), {
|
|
269
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(slots.default?.() || unref(tour).step?.title), 1)])]),
|
|
270
|
+
_: 3
|
|
271
|
+
}, 16, ["as-child"]);
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
//#endregion
|
|
277
|
+
//#region src/components/tour/tour-description.vue
|
|
278
|
+
var tour_description_default = tour_description_vue_vue_type_script_setup_true_lang_default;
|
|
279
|
+
|
|
280
|
+
//#endregion
|
|
281
|
+
//#region src/components/tour/tour-positioner.vue?vue&type=script&setup=true&lang.ts
|
|
282
|
+
var tour_positioner_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
283
|
+
__name: "tour-positioner",
|
|
284
|
+
props: { asChild: {
|
|
285
|
+
type: Boolean,
|
|
286
|
+
required: false
|
|
287
|
+
} },
|
|
288
|
+
setup(__props) {
|
|
289
|
+
const tour = useTourContext();
|
|
290
|
+
const presence = usePresenceContext();
|
|
291
|
+
useForwardExpose();
|
|
292
|
+
return (_ctx, _cache) => {
|
|
293
|
+
return !unref(presence).unmounted ? (openBlock(), createBlock(unref(sprawlify).div, mergeProps({ key: 0 }, unref(tour).getPositionerProps(), { "as-child": __props.asChild }), {
|
|
294
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
295
|
+
_: 3
|
|
296
|
+
}, 16, ["as-child"])) : createCommentVNode("v-if", true);
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
//#endregion
|
|
302
|
+
//#region src/components/tour/tour-positioner.vue
|
|
303
|
+
var tour_positioner_default = tour_positioner_vue_vue_type_script_setup_true_lang_default;
|
|
304
|
+
|
|
305
|
+
//#endregion
|
|
306
|
+
//#region src/components/tour/tour-progress-text.vue?vue&type=script&setup=true&lang.ts
|
|
307
|
+
var tour_progress_text_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
308
|
+
__name: "tour-progress-text",
|
|
309
|
+
props: { asChild: {
|
|
310
|
+
type: Boolean,
|
|
311
|
+
required: false
|
|
312
|
+
} },
|
|
313
|
+
setup(__props) {
|
|
314
|
+
const tour = useTourContext();
|
|
315
|
+
const slots = useSlots();
|
|
316
|
+
useForwardExpose();
|
|
317
|
+
return (_ctx, _cache) => {
|
|
318
|
+
return openBlock(), createBlock(unref(sprawlify).div, mergeProps(unref(tour).getProgressTextProps(), { "as-child": __props.asChild }), {
|
|
319
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(slots.default?.() || unref(tour).getProgressText()), 1)])]),
|
|
320
|
+
_: 3
|
|
321
|
+
}, 16, ["as-child"]);
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
});
|
|
325
|
+
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region src/components/tour/tour-progress-text.vue
|
|
328
|
+
var tour_progress_text_default = tour_progress_text_vue_vue_type_script_setup_true_lang_default;
|
|
329
|
+
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region src/components/tour/tour-root.vue?vue&type=script&setup=true&lang.ts
|
|
332
|
+
var tour_root_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
333
|
+
__name: "tour-root",
|
|
334
|
+
props: {
|
|
335
|
+
tour: {
|
|
336
|
+
type: null,
|
|
337
|
+
required: true
|
|
338
|
+
},
|
|
339
|
+
lazyMount: {
|
|
340
|
+
type: Boolean,
|
|
341
|
+
required: false
|
|
342
|
+
},
|
|
343
|
+
unmountOnExit: {
|
|
344
|
+
type: Boolean,
|
|
345
|
+
required: false
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
emits: [
|
|
349
|
+
"exitComplete",
|
|
350
|
+
"focusOutside",
|
|
351
|
+
"interactOutside",
|
|
352
|
+
"pointerDownOutside",
|
|
353
|
+
"statusChange",
|
|
354
|
+
"stepChange",
|
|
355
|
+
"stepsChange"
|
|
356
|
+
],
|
|
357
|
+
setup(__props, { emit: __emit }) {
|
|
358
|
+
const props = __props;
|
|
359
|
+
const emits = __emit;
|
|
360
|
+
const tour = computed(() => props.tour);
|
|
361
|
+
const presence = usePresence(computed(() => ({
|
|
362
|
+
present: tour.value.open,
|
|
363
|
+
lazyMount: props.lazyMount,
|
|
364
|
+
unmountOnExit: props.unmountOnExit
|
|
365
|
+
})), emits);
|
|
366
|
+
TourProvider(tour);
|
|
367
|
+
PresenceProvider(presence);
|
|
368
|
+
RenderStrategyPropsProvider(computed(() => ({
|
|
369
|
+
lazyMount: props.lazyMount,
|
|
370
|
+
unmountOnExit: props.unmountOnExit
|
|
371
|
+
})));
|
|
372
|
+
useForwardExpose();
|
|
373
|
+
return (_ctx, _cache) => {
|
|
374
|
+
return renderSlot(_ctx.$slots, "default");
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
//#endregion
|
|
380
|
+
//#region src/components/tour/tour-root.vue
|
|
381
|
+
var tour_root_default = tour_root_vue_vue_type_script_setup_true_lang_default;
|
|
382
|
+
|
|
383
|
+
//#endregion
|
|
384
|
+
//#region src/components/tour/tour-spotlight.vue?vue&type=script&setup=true&lang.ts
|
|
385
|
+
var tour_spotlight_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
386
|
+
__name: "tour-spotlight",
|
|
387
|
+
props: { asChild: {
|
|
388
|
+
type: Boolean,
|
|
389
|
+
required: false
|
|
390
|
+
} },
|
|
391
|
+
setup(__props) {
|
|
392
|
+
const tour = useTourContext();
|
|
393
|
+
const renderStrategy = useRenderStrategyProps();
|
|
394
|
+
const presence = usePresence(computed(() => ({
|
|
395
|
+
...renderStrategy.value,
|
|
396
|
+
present: tour.value.open
|
|
397
|
+
})));
|
|
398
|
+
PresenceProvider(presence);
|
|
399
|
+
useForwardExpose();
|
|
400
|
+
return (_ctx, _cache) => {
|
|
401
|
+
return !unref(presence).unmounted ? (openBlock(), createBlock(unref(sprawlify).div, mergeProps({ key: 0 }, unref(tour).getSpotlightProps(), {
|
|
402
|
+
hidden: !unref(tour).open || !unref(tour).step?.target?.(),
|
|
403
|
+
"as-child": __props.asChild
|
|
404
|
+
}), {
|
|
405
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
406
|
+
_: 3
|
|
407
|
+
}, 16, ["hidden", "as-child"])) : createCommentVNode("v-if", true);
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
|
|
412
|
+
//#endregion
|
|
413
|
+
//#region src/components/tour/tour-spotlight.vue
|
|
414
|
+
var tour_spotlight_default = tour_spotlight_vue_vue_type_script_setup_true_lang_default;
|
|
415
|
+
|
|
416
|
+
//#endregion
|
|
417
|
+
//#region src/components/tour/tour-title.vue?vue&type=script&setup=true&lang.ts
|
|
418
|
+
var tour_title_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
419
|
+
__name: "tour-title",
|
|
420
|
+
props: { asChild: {
|
|
421
|
+
type: Boolean,
|
|
422
|
+
required: false
|
|
423
|
+
} },
|
|
424
|
+
setup(__props) {
|
|
425
|
+
const tour = useTourContext();
|
|
426
|
+
const slots = useSlots();
|
|
427
|
+
useForwardExpose();
|
|
428
|
+
return (_ctx, _cache) => {
|
|
429
|
+
return openBlock(), createBlock(unref(sprawlify).h2, mergeProps(unref(tour).getTitleProps(), { "as-child": __props.asChild }), {
|
|
430
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(slots.default?.() || unref(tour).step?.title), 1)])]),
|
|
431
|
+
_: 3
|
|
432
|
+
}, 16, ["as-child"]);
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
|
|
437
|
+
//#endregion
|
|
438
|
+
//#region src/components/tour/tour-title.vue
|
|
439
|
+
var tour_title_default = tour_title_vue_vue_type_script_setup_true_lang_default;
|
|
440
|
+
|
|
441
|
+
//#endregion
|
|
442
|
+
//#region src/components/tour/use-tour.ts
|
|
443
|
+
const useTour = (props = {}, emit) => {
|
|
444
|
+
const id = useId();
|
|
445
|
+
const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
|
|
446
|
+
const locale = useLocaleContext(DEFAULT_LOCALE);
|
|
447
|
+
const context = computed(() => {
|
|
448
|
+
const localProps = toValue(props);
|
|
449
|
+
return {
|
|
450
|
+
id,
|
|
451
|
+
dir: locale.value.dir,
|
|
452
|
+
getRootNode: env?.value.getRootNode,
|
|
453
|
+
...cleanProps(localProps),
|
|
454
|
+
onFocusOutside: (details) => {
|
|
455
|
+
emit?.("focusOutside", details);
|
|
456
|
+
localProps.onFocusOutside?.(details);
|
|
457
|
+
},
|
|
458
|
+
onInteractOutside: (details) => {
|
|
459
|
+
emit?.("interactOutside", details);
|
|
460
|
+
localProps.onInteractOutside?.(details);
|
|
461
|
+
},
|
|
462
|
+
onPointerDownOutside: (details) => {
|
|
463
|
+
emit?.("pointerDownOutside", details);
|
|
464
|
+
localProps.onPointerDownOutside?.(details);
|
|
465
|
+
},
|
|
466
|
+
onStatusChange: (details) => {
|
|
467
|
+
emit?.("statusChange", details);
|
|
468
|
+
localProps.onStatusChange?.(details);
|
|
469
|
+
},
|
|
470
|
+
onStepChange: (details) => {
|
|
471
|
+
emit?.("stepChange", details);
|
|
472
|
+
localProps.onStepChange?.(details);
|
|
473
|
+
},
|
|
474
|
+
onStepsChange(details) {
|
|
475
|
+
emit?.("stepsChange", details);
|
|
476
|
+
localProps.onStepsChange?.(details);
|
|
477
|
+
}
|
|
478
|
+
};
|
|
479
|
+
});
|
|
480
|
+
const service = useMachine(tour.machine, context);
|
|
481
|
+
return computed(() => tour.connect(service, normalizeProps$1));
|
|
482
|
+
};
|
|
483
|
+
|
|
484
|
+
//#endregion
|
|
485
|
+
//#region src/components/tour/tour.ts
|
|
486
|
+
var tour_exports = /* @__PURE__ */ __exportAll({
|
|
487
|
+
ActionTrigger: () => tour_action_trigger_default,
|
|
488
|
+
Actions: () => tour_actions_default,
|
|
489
|
+
Arrow: () => tour_arrow_default,
|
|
490
|
+
ArrowTip: () => tour_arrow_tip_default,
|
|
491
|
+
Backdrop: () => tour_backdrop_default,
|
|
492
|
+
CloseTrigger: () => tour_close_trigger_default,
|
|
493
|
+
Content: () => tour_content_default,
|
|
494
|
+
Context: () => tour_context_default,
|
|
495
|
+
Control: () => tour_control_default,
|
|
496
|
+
Description: () => tour_description_default,
|
|
497
|
+
Positioner: () => tour_positioner_default,
|
|
498
|
+
ProgressText: () => tour_progress_text_default,
|
|
499
|
+
Root: () => tour_root_default,
|
|
500
|
+
Spotlight: () => tour_spotlight_default,
|
|
501
|
+
Title: () => tour_title_default
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
//#endregion
|
|
505
|
+
export { tour_exports as Tour, tour_action_trigger_default as TourActionTrigger, tour_actions_default as TourActions, tour_arrow_default as TourArrow, tour_arrow_tip_default as TourArrowTip, tour_backdrop_default as TourBackdrop, tour_close_trigger_default as TourCloseTrigger, tour_content_default as TourContent, tour_context_default as TourContext, tour_control_default as TourControl, tour_description_default as TourDescription, tour_positioner_default as TourPositioner, tour_progress_text_default as TourProgressText, tour_root_default as TourRoot, tour_spotlight_default as TourSpotlight, tour_title_default as TourTitle, tourAnatomy, useTour, useTourContext, waitForElement, waitForElementValue, waitForEvent, waitForPromise };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../factory-
|
|
2
|
-
import "../../index-
|
|
3
|
-
import "../../use-render-strategy-
|
|
4
|
-
import { f as TreeCollection, g as createTreeCollection, h as createFileTreeCollection, m as TreeNode } from "../../index-
|
|
5
|
-
import { $ as _default$9, A as _default$14, B as TreeViewNodeCheckboxProps, C as TreeViewRootProviderComponent, Ct as TreeViewBranchControlProps, D as TreeViewNodeProviderProps, Dt as _default$1, E as TreeViewNodeProviderBaseProps, Et as TreeViewBranchContentProps, F as _default$16, G as TreeViewItemBaseProps, H as TreeViewLabelBaseProps, I as TreeViewNodeCheckboxIndicatorBaseProps, J as TreeViewItemTextBaseProps, K as TreeViewItemProps, L as TreeViewNodeCheckboxIndicatorProps, M as useTreeViewNodeContext, N as TreeViewNodeRenameInputBaseProps, O as _default$15, P as TreeViewNodeRenameInputProps, Q as TreeViewItemIndicatorProps, R as _default$13, S as TreeViewRootProviderBaseProps, St as TreeViewBranchControlBaseProps, T as _default$18, Tt as TreeViewBranchContentBaseProps, U as TreeViewLabelProps, V as _default$12, W as _default$11, X as _default$10, Y as TreeViewItemTextProps, Z as TreeViewItemIndicatorBaseProps, _ as TreeViewRootBaseProps, _t as TreeViewBranchIndicatorProps, a as TreeViewLoadChildrenDetails, at as UseTreeViewReturn, b as TreeViewRootProps, bt as TreeViewBranchIndentGuideProps, c as TreeViewNodeState, ct as TreeViewBranchProps, d as TreeViewSelectionChangeDetails, dt as TreeViewBranchTriggerProps, et as TreeViewContextProps, f as tree_view_d_exports, ft as _default$6, g as _default$19, gt as TreeViewBranchIndicatorBaseProps, h as TreeViewTreeProps, ht as _default$5, i as TreeViewLoadChildrenCompleteDetails, it as UseTreeViewProps, j as UseTreeViewNodeContext, k as TreeViewNodeContextProps, l as TreeViewRenameCompleteDetails, lt as _default, m as TreeViewTreeBaseProps, mt as TreeViewBranchTextProps, n as TreeViewExpandedChangeDetails, nt as UseTreeViewContext, o as TreeViewLoadChildrenErrorDetails, ot as useTreeView, p as treeViewAnatomy, pt as TreeViewBranchTextBaseProps, q as _default$8, r as TreeViewFocusChangeDetails, rt as useTreeViewContext, s as TreeViewNodeProps, st as TreeViewBranchBaseProps, t as TreeViewCheckedChangeDetails, tt as _default$7, u as TreeViewRenameStartDetails, ut as TreeViewBranchTriggerBaseProps, v as TreeViewRootComponent, vt as _default$4, w as TreeViewRootProviderProps, wt as _default$2, x as _default$17, xt as _default$3, y as TreeViewRootComponentProps, yt as TreeViewBranchIndentGuideBaseProps, z as TreeViewNodeCheckboxBaseProps } from "../../index-
|
|
1
|
+
import "../../factory-B5zr8_kk.js";
|
|
2
|
+
import "../../index-CCRVRFFQ.js";
|
|
3
|
+
import "../../use-render-strategy-U5NxU252.js";
|
|
4
|
+
import { f as TreeCollection, g as createTreeCollection, h as createFileTreeCollection, m as TreeNode } from "../../index-DhFoJHfp.js";
|
|
5
|
+
import { $ as _default$9, A as _default$14, B as TreeViewNodeCheckboxProps, C as TreeViewRootProviderComponent, Ct as TreeViewBranchControlProps, D as TreeViewNodeProviderProps, Dt as _default$1, E as TreeViewNodeProviderBaseProps, Et as TreeViewBranchContentProps, F as _default$16, G as TreeViewItemBaseProps, H as TreeViewLabelBaseProps, I as TreeViewNodeCheckboxIndicatorBaseProps, J as TreeViewItemTextBaseProps, K as TreeViewItemProps, L as TreeViewNodeCheckboxIndicatorProps, M as useTreeViewNodeContext, N as TreeViewNodeRenameInputBaseProps, O as _default$15, P as TreeViewNodeRenameInputProps, Q as TreeViewItemIndicatorProps, R as _default$13, S as TreeViewRootProviderBaseProps, St as TreeViewBranchControlBaseProps, T as _default$18, Tt as TreeViewBranchContentBaseProps, U as TreeViewLabelProps, V as _default$12, W as _default$11, X as _default$10, Y as TreeViewItemTextProps, Z as TreeViewItemIndicatorBaseProps, _ as TreeViewRootBaseProps, _t as TreeViewBranchIndicatorProps, a as TreeViewLoadChildrenDetails, at as UseTreeViewReturn, b as TreeViewRootProps, bt as TreeViewBranchIndentGuideProps, c as TreeViewNodeState, ct as TreeViewBranchProps, d as TreeViewSelectionChangeDetails, dt as TreeViewBranchTriggerProps, et as TreeViewContextProps, f as tree_view_d_exports, ft as _default$6, g as _default$19, gt as TreeViewBranchIndicatorBaseProps, h as TreeViewTreeProps, ht as _default$5, i as TreeViewLoadChildrenCompleteDetails, it as UseTreeViewProps, j as UseTreeViewNodeContext, k as TreeViewNodeContextProps, l as TreeViewRenameCompleteDetails, lt as _default, m as TreeViewTreeBaseProps, mt as TreeViewBranchTextProps, n as TreeViewExpandedChangeDetails, nt as UseTreeViewContext, o as TreeViewLoadChildrenErrorDetails, ot as useTreeView, p as treeViewAnatomy, pt as TreeViewBranchTextBaseProps, q as _default$8, r as TreeViewFocusChangeDetails, rt as useTreeViewContext, s as TreeViewNodeProps, st as TreeViewBranchBaseProps, t as TreeViewCheckedChangeDetails, tt as _default$7, u as TreeViewRenameStartDetails, ut as TreeViewBranchTriggerBaseProps, v as TreeViewRootComponent, vt as _default$4, w as TreeViewRootProviderProps, wt as _default$2, x as _default$17, xt as _default$3, y as TreeViewRootComponentProps, yt as TreeViewBranchIndentGuideBaseProps, z as TreeViewNodeCheckboxBaseProps } from "../../index-CmCVWB7e.js";
|
|
6
6
|
export { TreeCollection, TreeNode, tree_view_d_exports as TreeView, _default as TreeViewBranch, TreeViewBranchBaseProps, _default$1 as TreeViewBranchContent, TreeViewBranchContentBaseProps, TreeViewBranchContentProps, _default$2 as TreeViewBranchControl, TreeViewBranchControlBaseProps, TreeViewBranchControlProps, _default$3 as TreeViewBranchIndentGuide, TreeViewBranchIndentGuideBaseProps, TreeViewBranchIndentGuideProps, _default$4 as TreeViewBranchIndicator, TreeViewBranchIndicatorBaseProps, TreeViewBranchIndicatorProps, TreeViewBranchProps, _default$5 as TreeViewBranchText, TreeViewBranchTextBaseProps, TreeViewBranchTextProps, _default$6 as TreeViewBranchTrigger, TreeViewBranchTriggerBaseProps, TreeViewBranchTriggerProps, TreeViewCheckedChangeDetails, _default$7 as TreeViewContext, TreeViewContextProps, TreeViewExpandedChangeDetails, TreeViewFocusChangeDetails, _default$8 as TreeViewItem, TreeViewItemBaseProps, _default$9 as TreeViewItemIndicator, TreeViewItemIndicatorBaseProps, TreeViewItemIndicatorProps, TreeViewItemProps, _default$10 as TreeViewItemText, TreeViewItemTextBaseProps, TreeViewItemTextProps, _default$11 as TreeViewLabel, TreeViewLabelBaseProps, TreeViewLabelProps, TreeViewLoadChildrenCompleteDetails, TreeViewLoadChildrenDetails, TreeViewLoadChildrenErrorDetails, _default$12 as TreeViewNodeCheckbox, TreeViewNodeCheckboxBaseProps, _default$13 as TreeViewNodeCheckboxIndicator, TreeViewNodeCheckboxIndicatorBaseProps, TreeViewNodeCheckboxIndicatorProps, TreeViewNodeCheckboxProps, _default$14 as TreeViewNodeContext, TreeViewNodeContextProps, TreeViewNodeProps, _default$15 as TreeViewNodeProvider, TreeViewNodeProviderBaseProps, TreeViewNodeProviderProps, _default$16 as TreeViewNodeRenameInput, TreeViewNodeRenameInputBaseProps, TreeViewNodeRenameInputProps, TreeViewNodeState, TreeViewRenameCompleteDetails, TreeViewRenameStartDetails, _default$17 as TreeViewRoot, TreeViewRootBaseProps, TreeViewRootComponent, TreeViewRootComponentProps, TreeViewRootProps, _default$18 as TreeViewRootProvider, TreeViewRootProviderBaseProps, TreeViewRootProviderComponent, TreeViewRootProviderProps, TreeViewSelectionChangeDetails, _default$19 as TreeViewTree, TreeViewTreeBaseProps, TreeViewTreeProps, UseTreeViewContext, UseTreeViewNodeContext, UseTreeViewProps, UseTreeViewReturn, createFileTreeCollection, createTreeCollection, treeViewAnatomy, useTreeView, useTreeViewContext, useTreeViewNodeContext };
|
|
@@ -4,8 +4,8 @@ import "../../create-context-Ds1GbsVc.js";
|
|
|
4
4
|
import "../../use-forward-expose-CCAmHTUB.js";
|
|
5
5
|
import "../../factory-Co08Aw8u.js";
|
|
6
6
|
import "../../use-render-strategy-DMa_QmB6.js";
|
|
7
|
-
import "../../collapsible-
|
|
8
|
-
import { a as createTreeCollection, i as createFileTreeCollection } from "../../collection-
|
|
9
|
-
import { C as tree_view_branch_control_default, S as tree_view_branch_indent_guide_default, T as useTreeViewContext, _ as tree_view_branch_default, a as useTreeView, b as tree_view_branch_text_default, c as tree_view_node_context_default, d as tree_view_node_checkbox_default, f as tree_view_label_default, g as tree_view_context_default, h as tree_view_item_indicator_default, i as tree_view_root_default, l as tree_view_node_rename_input_default, m as tree_view_item_text_default, n as treeViewAnatomy, o as tree_view_root_provider_default, p as tree_view_item_default, r as tree_view_tree_default, s as tree_view_node_provider_default, t as tree_view_exports, u as tree_view_node_checkbox_indicator_default, v as useTreeViewNodeContext, w as tree_view_branch_content_default, x as tree_view_branch_indicator_default, y as tree_view_branch_trigger_default } from "../../tree-view-
|
|
7
|
+
import "../../collapsible-SXAS3iFc.js";
|
|
8
|
+
import { a as createTreeCollection, i as createFileTreeCollection } from "../../collection-C_ZHBDQD.js";
|
|
9
|
+
import { C as tree_view_branch_control_default, S as tree_view_branch_indent_guide_default, T as useTreeViewContext, _ as tree_view_branch_default, a as useTreeView, b as tree_view_branch_text_default, c as tree_view_node_context_default, d as tree_view_node_checkbox_default, f as tree_view_label_default, g as tree_view_context_default, h as tree_view_item_indicator_default, i as tree_view_root_default, l as tree_view_node_rename_input_default, m as tree_view_item_text_default, n as treeViewAnatomy, o as tree_view_root_provider_default, p as tree_view_item_default, r as tree_view_tree_default, s as tree_view_node_provider_default, t as tree_view_exports, u as tree_view_node_checkbox_indicator_default, v as useTreeViewNodeContext, w as tree_view_branch_content_default, x as tree_view_branch_indicator_default, y as tree_view_branch_trigger_default } from "../../tree-view-N6ShNmpe.js";
|
|
10
10
|
|
|
11
11
|
export { tree_view_exports as TreeView, tree_view_branch_default as TreeViewBranch, tree_view_branch_content_default as TreeViewBranchContent, tree_view_branch_control_default as TreeViewBranchControl, tree_view_branch_indent_guide_default as TreeViewBranchIndentGuide, tree_view_branch_indicator_default as TreeViewBranchIndicator, tree_view_branch_text_default as TreeViewBranchText, tree_view_branch_trigger_default as TreeViewBranchTrigger, tree_view_context_default as TreeViewContext, tree_view_item_default as TreeViewItem, tree_view_item_indicator_default as TreeViewItemIndicator, tree_view_item_text_default as TreeViewItemText, tree_view_label_default as TreeViewLabel, tree_view_node_checkbox_default as TreeViewNodeCheckbox, tree_view_node_checkbox_indicator_default as TreeViewNodeCheckboxIndicator, tree_view_node_context_default as TreeViewNodeContext, tree_view_node_provider_default as TreeViewNodeProvider, tree_view_node_rename_input_default as TreeViewNodeRenameInput, tree_view_root_default as TreeViewRoot, tree_view_root_provider_default as TreeViewRootProvider, tree_view_tree_default as TreeViewTree, createFileTreeCollection, createTreeCollection, treeViewAnatomy, useTreeView, useTreeViewContext, useTreeViewNodeContext };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as PolymorphicProps } from "./factory-
|
|
2
|
-
import { n as RootProps, t as RootEmits } from "./presence-types-
|
|
3
|
-
import { a as Optional, r as EmitFn$1 } from "./types-
|
|
4
|
-
import * as
|
|
1
|
+
import { t as PolymorphicProps } from "./factory-B5zr8_kk.js";
|
|
2
|
+
import { n as RootProps, t as RootEmits } from "./presence-types-BJRr8tqd.js";
|
|
3
|
+
import { a as Optional, r as EmitFn$1 } from "./types-DIEO6uP3.js";
|
|
4
|
+
import * as vue376 from "vue";
|
|
5
5
|
import { HTMLAttributes, MaybeRef } from "vue";
|
|
6
6
|
import * as presence from "@sprawlify/primitives/machines/presence";
|
|
7
7
|
|
|
@@ -14,17 +14,17 @@ interface PresenceProps extends PresenceBaseProps,
|
|
|
14
14
|
HTMLAttributes {}
|
|
15
15
|
interface PresenceEmits extends RootEmits {}
|
|
16
16
|
declare const _default: typeof __VLS_export;
|
|
17
|
-
declare const __VLS_export: __VLS_WithSlots<
|
|
17
|
+
declare const __VLS_export: __VLS_WithSlots<vue376.DefineComponent<PresenceProps, {}, {}, {}, {}, vue376.ComponentOptionsMixin, vue376.ComponentOptionsMixin, {
|
|
18
18
|
exitComplete: () => any;
|
|
19
|
-
}, string,
|
|
19
|
+
}, string, vue376.PublicProps, Readonly<PresenceProps> & Readonly<{
|
|
20
20
|
onExitComplete?: (() => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
lazyMount: boolean;
|
|
23
23
|
unmountOnExit: boolean;
|
|
24
|
-
present: boolean;
|
|
25
24
|
immediate: boolean;
|
|
25
|
+
present: boolean;
|
|
26
26
|
skipAnimationOnMount: boolean;
|
|
27
|
-
}, {}, {}, {}, string,
|
|
27
|
+
}, {}, {}, {}, string, vue376.ComponentProvideOptions, false, {}, any>, {
|
|
28
28
|
default?: (props: {}) => any;
|
|
29
29
|
}>;
|
|
30
30
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -40,11 +40,11 @@ interface UsePresenceProps extends Optional<presence.Props, 'present'> {
|
|
|
40
40
|
skipAnimationOnMount?: boolean;
|
|
41
41
|
}
|
|
42
42
|
type UsePresenceReturn = ReturnType<typeof usePresence>;
|
|
43
|
-
declare const usePresence: (props: MaybeRef<UsePresenceProps>, emit?: EmitFn$1<RootEmits>) =>
|
|
43
|
+
declare const usePresence: (props: MaybeRef<UsePresenceProps>, emit?: EmitFn$1<RootEmits>) => vue376.ComputedRef<{
|
|
44
44
|
present: boolean;
|
|
45
45
|
unmounted: boolean | undefined;
|
|
46
46
|
presenceProps: {
|
|
47
|
-
ref:
|
|
47
|
+
ref: vue376.Ref<any, any>;
|
|
48
48
|
hidden: boolean;
|
|
49
49
|
'data-state': string | undefined;
|
|
50
50
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue2356 from "vue";
|
|
2
2
|
import { ComponentPublicInstance, ComputedRef, MaybeRef, MaybeRefOrGetter, UnwrapRef } from "vue";
|
|
3
3
|
import { FilterOptions, FilterReturn, Locale } from "@sprawlify/primitives/i18n-utils";
|
|
4
4
|
|
|
@@ -29,7 +29,7 @@ declare var __VLS_1: {};
|
|
|
29
29
|
type __VLS_Slots = {} & {
|
|
30
30
|
default?: (props: typeof __VLS_1) => any;
|
|
31
31
|
};
|
|
32
|
-
declare const __VLS_base:
|
|
32
|
+
declare const __VLS_base: vue2356.DefineComponent<EnvironmentProviderProps, {}, {}, {}, {}, vue2356.ComponentOptionsMixin, vue2356.ComponentOptionsMixin, {}, string, vue2356.PublicProps, Readonly<EnvironmentProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue2356.ComponentProvideOptions, false, {}, any>;
|
|
33
33
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base, __VLS_Slots>;
|
|
34
34
|
declare const _default$1: typeof __VLS_export$1;
|
|
35
35
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
@@ -43,7 +43,7 @@ interface LocaleProviderProps {
|
|
|
43
43
|
locale: string;
|
|
44
44
|
}
|
|
45
45
|
declare const _default: typeof __VLS_export;
|
|
46
|
-
declare const __VLS_export: __VLS_WithSlots<
|
|
46
|
+
declare const __VLS_export: __VLS_WithSlots<vue2356.DefineComponent<LocaleProviderProps, {}, {}, {}, {}, vue2356.ComponentOptionsMixin, vue2356.ComponentOptionsMixin, {}, string, vue2356.PublicProps, Readonly<LocaleProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, vue2356.ComponentProvideOptions, false, {}, any>, {
|
|
47
47
|
default?: (props: {}) => any;
|
|
48
48
|
}>;
|
|
49
49
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -78,14 +78,14 @@ declare function useEmitAsProps<Name extends string>(emit: (name: Name, ...args:
|
|
|
78
78
|
//#region src/utils/use-forward-expose.d.ts
|
|
79
79
|
declare function useForwardExpose(): {
|
|
80
80
|
forwardRef: (ref: Element | ComponentPublicInstance | null) => void;
|
|
81
|
-
currentRef:
|
|
82
|
-
currentElement:
|
|
81
|
+
currentRef: vue2356.Ref<Element | ComponentPublicInstance | null | undefined, Element | ComponentPublicInstance | null | undefined>;
|
|
82
|
+
currentElement: vue2356.ComputedRef<HTMLElement>;
|
|
83
83
|
};
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region src/utils/use-forward-props.d.ts
|
|
86
|
-
declare function useForwardProps<T extends MaybeRefOrGetter<Record<string, any>>, U extends UnwrapRef<T>>(props: T):
|
|
86
|
+
declare function useForwardProps<T extends MaybeRefOrGetter<Record<string, any>>, U extends UnwrapRef<T>>(props: T): vue2356.ComputedRef<U>;
|
|
87
87
|
//#endregion
|
|
88
88
|
//#region src/utils/use-forward-props-emits.d.ts
|
|
89
|
-
declare function useForwardPropsEmits<T extends Parameters<typeof useForwardProps>[0], Name extends string>(props: T, emit?: (name: Name, ...args: any[]) => void):
|
|
89
|
+
declare function useForwardPropsEmits<T extends Parameters<typeof useForwardProps>[0], Name extends string>(props: T, emit?: (name: Name, ...args: any[]) => void): vue2356.ComputedRef<any>;
|
|
90
90
|
//#endregion
|
|
91
91
|
export { useEnvironmentContext as S, EnvironmentProviderProps as _, createContext as a, RootNode as b, useLocaleContext as c, useFilter as d, UseCollatorProps as f, _default as g, LocaleProviderProps as h, useEmitAsProps as i, UseFilterProps as l, useCollator as m, useForwardProps as n, DEFAULT_LOCALE as o, UseCollatorReturn as p, useForwardExpose as r, LocaleContext as s, useForwardPropsEmits as t, UseFilterReturn as u, _default$1 as v, UseEnvironmentContext as x, DEFAULT_ENVIRONMENT as y };
|