@wirekyt/vue 0.0.1 → 0.0.2
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/accordion.cjs +273 -0
- package/dist/accordion.d.cts +195 -0
- package/dist/accordion.d.ts +195 -0
- package/dist/accordion.js +250 -0
- package/dist/angle-slider.cjs +268 -0
- package/dist/angle-slider.d.cts +228 -0
- package/dist/angle-slider.d.ts +228 -0
- package/dist/angle-slider.js +244 -0
- package/dist/avatar.cjs +145 -0
- package/dist/avatar.d.cts +114 -0
- package/dist/avatar.d.ts +114 -0
- package/dist/avatar.js +126 -0
- package/dist/boolean-BCaEpMxQ.js +6 -0
- package/dist/boolean-Dyu9-5Wp.cjs +11 -0
- package/dist/carousel.cjs +342 -0
- package/dist/carousel.d.cts +303 -0
- package/dist/carousel.d.ts +303 -0
- package/dist/carousel.js +320 -0
- package/dist/checkbox.cjs +345 -0
- package/dist/checkbox.d.cts +272 -0
- package/dist/checkbox.d.ts +272 -0
- package/dist/checkbox.js +324 -0
- package/dist/clean-props--1kqQE0Y.js +8 -0
- package/dist/clean-props-MyKqus13.cjs +13 -0
- package/dist/client-only.cjs +17 -0
- package/dist/client-only.d.cts +18 -0
- package/dist/client-only.d.ts +18 -0
- package/dist/client-only.js +16 -0
- package/dist/clipboard.cjs +229 -0
- package/dist/clipboard.d.cts +203 -0
- package/dist/clipboard.d.ts +203 -0
- package/dist/clipboard.js +206 -0
- package/dist/collapsible-CEjnJlpm.js +179 -0
- package/dist/collapsible-aSz4kYqo.cjs +232 -0
- package/dist/collapsible.cjs +23 -0
- package/dist/collapsible.d.cts +161 -0
- package/dist/collapsible.d.ts +161 -0
- package/dist/collapsible.js +2 -0
- package/dist/collection-1IjtyI-g.cjs +254 -0
- package/dist/collection-Ea6ZCZKK.js +211 -0
- package/dist/collection.cjs +9 -0
- package/dist/collection.d.cts +2 -0
- package/dist/collection.d.ts +2 -0
- package/dist/collection.js +2 -0
- package/dist/color-picker.cjs +804 -0
- package/dist/color-picker.d.cts +605 -0
- package/dist/color-picker.d.ts +605 -0
- package/dist/color-picker.js +759 -0
- package/dist/combobox.cjs +552 -0
- package/dist/combobox.d.cts +442 -0
- package/dist/combobox.d.ts +442 -0
- package/dist/combobox.js +521 -0
- package/dist/create-split-props-BBxrD7TV.js +10 -0
- package/dist/create-split-props-Jx-IEwdk.cjs +15 -0
- package/dist/date-input.cjs +293 -0
- package/dist/date-input.d.cts +212 -0
- package/dist/date-input.d.ts +212 -0
- package/dist/date-input.js +270 -0
- package/dist/date-picker.cjs +821 -0
- package/dist/date-picker.d.cts +637 -0
- package/dist/date-picker.d.ts +637 -0
- package/dist/date-picker.js +776 -0
- package/dist/dialog.cjs +333 -0
- package/dist/dialog.d.cts +272 -0
- package/dist/dialog.d.ts +272 -0
- package/dist/dialog.js +308 -0
- package/dist/download-trigger.cjs +65 -0
- package/dist/download-trigger.d.cts +34 -0
- package/dist/download-trigger.d.ts +34 -0
- package/dist/download-trigger.js +63 -0
- package/dist/drawer.cjs +448 -0
- package/dist/drawer.d.cts +346 -0
- package/dist/drawer.d.ts +346 -0
- package/dist/drawer.js +415 -0
- package/dist/editable.cjs +331 -0
- package/dist/editable.d.cts +285 -0
- package/dist/editable.d.ts +285 -0
- package/dist/editable.js +306 -0
- package/dist/factory-8Ao0DEy3.js +34 -0
- package/dist/factory-BNwuanv4.d.cts +21 -0
- package/dist/factory-BNwuanv4.d.ts +21 -0
- package/dist/factory-JL7MPjkk.cjs +45 -0
- package/dist/field-C3pLqz1S.js +435 -0
- package/dist/field-DRz-v4rB.cjs +524 -0
- package/dist/field.cjs +22 -0
- package/dist/field.d.cts +344 -0
- package/dist/field.d.ts +344 -0
- package/dist/field.js +2 -0
- package/dist/fieldset-ByP_r1Uq.js +216 -0
- package/dist/fieldset-C5aj6Ims.cjs +275 -0
- package/dist/fieldset.cjs +17 -0
- package/dist/fieldset.d.cts +159 -0
- package/dist/fieldset.d.ts +159 -0
- package/dist/fieldset.js +2 -0
- package/dist/file-upload.cjs +421 -0
- package/dist/file-upload.d.cts +327 -0
- package/dist/file-upload.d.ts +327 -0
- package/dist/file-upload.js +392 -0
- package/dist/floating-panel.cjs +412 -0
- package/dist/floating-panel.d.cts +337 -0
- package/dist/floating-panel.d.ts +337 -0
- package/dist/floating-panel.js +383 -0
- package/dist/focus-trap.cjs +79 -0
- package/dist/focus-trap.d.cts +46 -0
- package/dist/focus-trap.d.ts +46 -0
- package/dist/focus-trap.js +78 -0
- package/dist/format.cjs +116 -0
- package/dist/format.d.cts +46 -0
- package/dist/format.d.ts +46 -0
- package/dist/format.js +106 -0
- package/dist/frame.cjs +93 -0
- package/dist/frame.d.cts +37 -0
- package/dist/frame.d.ts +37 -0
- package/dist/frame.js +92 -0
- package/dist/highlight.cjs +44 -0
- package/dist/highlight.d.cts +32 -0
- package/dist/highlight.d.ts +32 -0
- package/dist/highlight.js +42 -0
- package/dist/hover-card.cjs +269 -0
- package/dist/hover-card.d.cts +202 -0
- package/dist/hover-card.d.ts +202 -0
- package/dist/hover-card.js +246 -0
- package/dist/image-cropper.cjs +252 -0
- package/dist/image-cropper.d.cts +207 -0
- package/dist/image-cropper.d.ts +207 -0
- package/dist/image-cropper.js +235 -0
- package/dist/index-B-o8jLyV.d.cts +31 -0
- package/dist/index-BSoF1D-v.d.ts +31 -0
- package/dist/index-BTNfeIXf.d.ts +104 -0
- package/dist/index-C6Q2DqG6.d.ts +37 -0
- package/dist/index-CG9mpPgL.d.cts +444 -0
- package/dist/index-Cc4qS0rQ.d.cts +38 -0
- package/dist/index-Cc4qS0rQ.d.ts +38 -0
- package/dist/index-DB2uALlJ.d.cts +74 -0
- package/dist/index-DXb0W_NP.d.cts +37 -0
- package/dist/index-Zc9P69Ka.d.cts +104 -0
- package/dist/index-aMWdJRGL.d.ts +444 -0
- package/dist/index-uLE-tXSk.d.ts +74 -0
- package/dist/index.cjs +43 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +7 -0
- package/dist/json-tree-view.cjs +346 -0
- package/dist/json-tree-view.d.cts +86 -0
- package/dist/json-tree-view.d.ts +86 -0
- package/dist/json-tree-view.js +336 -0
- package/dist/listbox.cjs +386 -0
- package/dist/listbox.d.cts +323 -0
- package/dist/listbox.d.ts +323 -0
- package/dist/listbox.js +361 -0
- package/dist/marquee.cjs +256 -0
- package/dist/marquee.d.cts +208 -0
- package/dist/marquee.d.ts +208 -0
- package/dist/marquee.js +235 -0
- package/dist/menu.cjs +650 -0
- package/dist/menu.d.cts +501 -0
- package/dist/menu.d.ts +501 -0
- package/dist/menu.js +613 -0
- package/dist/navigation-menu.cjs +408 -0
- package/dist/navigation-menu.d.cts +271 -0
- package/dist/navigation-menu.d.ts +271 -0
- package/dist/navigation-menu.js +380 -0
- package/dist/number-input.cjs +298 -0
- package/dist/number-input.d.cts +253 -0
- package/dist/number-input.d.ts +253 -0
- package/dist/number-input.js +274 -0
- package/dist/pagination.cjs +249 -0
- package/dist/pagination.d.cts +209 -0
- package/dist/pagination.d.ts +209 -0
- package/dist/pagination.js +226 -0
- package/dist/password-input.cjs +232 -0
- package/dist/password-input.d.cts +208 -0
- package/dist/password-input.d.ts +208 -0
- package/dist/password-input.js +210 -0
- package/dist/pin-input.cjs +245 -0
- package/dist/pin-input.d.cts +199 -0
- package/dist/pin-input.d.ts +199 -0
- package/dist/pin-input.js +224 -0
- package/dist/popover.cjs +377 -0
- package/dist/popover.d.cts +324 -0
- package/dist/popover.d.ts +324 -0
- package/dist/popover.js +349 -0
- package/dist/presence-DD3l4Tgb.cjs +60 -0
- package/dist/presence-jaHZaD_O.js +43 -0
- package/dist/presence.cjs +7 -0
- package/dist/presence.d.cts +3 -0
- package/dist/presence.d.ts +3 -0
- package/dist/presence.js +3 -0
- package/dist/progress.cjs +270 -0
- package/dist/progress.d.cts +229 -0
- package/dist/progress.d.ts +229 -0
- package/dist/progress.js +245 -0
- package/dist/providers-5QhcwgSd.cjs +190 -0
- package/dist/providers-C3XQH-uu.js +119 -0
- package/dist/qr-code.cjs +195 -0
- package/dist/qr-code.d.cts +157 -0
- package/dist/qr-code.d.ts +157 -0
- package/dist/qr-code.js +174 -0
- package/dist/radio-group.cjs +274 -0
- package/dist/radio-group.d.cts +230 -0
- package/dist/radio-group.d.ts +230 -0
- package/dist/radio-group.js +249 -0
- package/dist/rating-group.cjs +243 -0
- package/dist/rating-group.d.cts +200 -0
- package/dist/rating-group.d.ts +200 -0
- package/dist/rating-group.js +220 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
- package/dist/scroll-area.cjs +206 -0
- package/dist/scroll-area.d.cts +169 -0
- package/dist/scroll-area.d.ts +169 -0
- package/dist/scroll-area.js +184 -0
- package/dist/segment-group.cjs +318 -0
- package/dist/segment-group.d.cts +229 -0
- package/dist/segment-group.d.ts +229 -0
- package/dist/segment-group.js +298 -0
- package/dist/select.cjs +560 -0
- package/dist/select.d.cts +430 -0
- package/dist/select.d.ts +430 -0
- package/dist/select.js +523 -0
- package/dist/signature-pad.cjs +260 -0
- package/dist/signature-pad.d.cts +200 -0
- package/dist/signature-pad.d.ts +200 -0
- package/dist/signature-pad.js +237 -0
- package/dist/slider.cjs +350 -0
- package/dist/slider.d.cts +299 -0
- package/dist/slider.d.ts +299 -0
- package/dist/slider.js +323 -0
- package/dist/splitter.cjs +225 -0
- package/dist/splitter.d.cts +166 -0
- package/dist/splitter.d.ts +166 -0
- package/dist/splitter.js +198 -0
- package/dist/steps.cjs +348 -0
- package/dist/steps.d.cts +289 -0
- package/dist/steps.d.ts +289 -0
- package/dist/steps.js +319 -0
- package/dist/swap.cjs +154 -0
- package/dist/swap.d.cts +98 -0
- package/dist/swap.d.ts +98 -0
- package/dist/swap.js +141 -0
- package/dist/switch.cjs +213 -0
- package/dist/switch.d.cts +177 -0
- package/dist/switch.d.ts +177 -0
- package/dist/switch.js +192 -0
- package/dist/tabs.cjs +240 -0
- package/dist/tabs.d.cts +179 -0
- package/dist/tabs.d.ts +179 -0
- package/dist/tabs.js +218 -0
- package/dist/tags-input.cjs +405 -0
- package/dist/tags-input.d.cts +340 -0
- package/dist/tags-input.d.ts +340 -0
- package/dist/tags-input.js +376 -0
- package/dist/timer.cjs +221 -0
- package/dist/timer.d.cts +176 -0
- package/dist/timer.d.ts +176 -0
- package/dist/timer.js +199 -0
- package/dist/toast.cjs +211 -0
- package/dist/toast.d.cts +157 -0
- package/dist/toast.d.ts +157 -0
- package/dist/toast.js +189 -0
- package/dist/toggle-group.cjs +150 -0
- package/dist/toggle-group.d.cts +122 -0
- package/dist/toggle-group.d.ts +122 -0
- package/dist/toggle-group.js +132 -0
- package/dist/toggle.cjs +107 -0
- package/dist/toggle.d.cts +98 -0
- package/dist/toggle.d.ts +98 -0
- package/dist/toggle.js +94 -0
- package/dist/tooltip.cjs +265 -0
- package/dist/tooltip.d.cts +204 -0
- package/dist/tooltip.d.ts +204 -0
- package/dist/tooltip.js +242 -0
- package/dist/tour.cjs +418 -0
- package/dist/tour.d.cts +304 -0
- package/dist/tour.d.ts +304 -0
- package/dist/tour.js +374 -0
- package/dist/tree-view-CWH9tv7s.cjs +651 -0
- package/dist/tree-view-CZcXMwi6.js +508 -0
- package/dist/tree-view.cjs +41 -0
- package/dist/tree-view.d.cts +3 -0
- package/dist/tree-view.d.ts +3 -0
- package/dist/tree-view.js +3 -0
- package/dist/types-rSRkzyd6.d.cts +13 -0
- package/dist/types-rSRkzyd6.d.ts +13 -0
- package/dist/use-presence-BSp_dR-C.d.cts +22 -0
- package/dist/use-presence-CtEY6ZT8.cjs +49 -0
- package/dist/use-presence-DkGU_j9h.d.ts +22 -0
- package/dist/use-presence-oNdFU2c2.js +42 -0
- package/dist/utils-D95V66v9.js +548 -0
- package/dist/utils-XrBZd2Yk.cjs +625 -0
- package/package.json +278 -6
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_utils = require("./utils-XrBZd2Yk.cjs");
|
|
3
|
+
const require_providers = require("./providers-5QhcwgSd.cjs");
|
|
4
|
+
const require_clean_props = require("./clean-props-MyKqus13.cjs");
|
|
5
|
+
const require_boolean = require("./boolean-Dyu9-5Wp.cjs");
|
|
6
|
+
const require_create_split_props = require("./create-split-props-Jx-IEwdk.cjs");
|
|
7
|
+
const require_factory = require("./factory-JL7MPjkk.cjs");
|
|
8
|
+
let _wirekyt_dom = require("@wirekyt/dom");
|
|
9
|
+
exports.DEFAULT_ENVIRONMENT = require_providers.DEFAULT_ENVIRONMENT;
|
|
10
|
+
exports.DEFAULT_LOCALE = require_providers.DEFAULT_LOCALE;
|
|
11
|
+
exports.Dynamic = require_utils.Dynamic;
|
|
12
|
+
exports.EnvironmentProvider = require_providers._sfc_main$1;
|
|
13
|
+
exports.LocaleProvider = require_providers._sfc_main;
|
|
14
|
+
exports.RenderStrategyPropsProvider = require_utils.RenderStrategyPropsProvider;
|
|
15
|
+
exports.cleanProps = require_clean_props.cleanProps;
|
|
16
|
+
exports.createContext = require_utils.createContext;
|
|
17
|
+
exports.createSplitProps = require_create_split_props.createSplitProps;
|
|
18
|
+
exports.jsxFactory = require_factory.jsxFactory;
|
|
19
|
+
Object.defineProperty(exports, "mergeProps", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function() {
|
|
22
|
+
return _wirekyt_dom.mergeProps;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
exports.normalizeProps = require_utils.normalizeProps;
|
|
26
|
+
exports.runIfFn = require_providers.runIfFn;
|
|
27
|
+
exports.toBooleanValue = require_boolean.toBooleanValue;
|
|
28
|
+
exports.useCollator = require_providers.useCollator;
|
|
29
|
+
exports.useDateFormatter = require_providers.useDateFormatter;
|
|
30
|
+
exports.useEmitAsProps = require_utils.useEmitAsProps;
|
|
31
|
+
exports.useEnvironmentContext = require_providers.useEnvironmentContext;
|
|
32
|
+
exports.useFilter = require_providers.useFilter;
|
|
33
|
+
exports.useFocusVisible = require_providers.useFocusVisible;
|
|
34
|
+
exports.useForwardExpose = require_utils.useForwardExpose;
|
|
35
|
+
exports.useForwardProps = require_utils.useForwardProps;
|
|
36
|
+
exports.useForwardPropsEmits = require_utils.useForwardPropsEmits;
|
|
37
|
+
exports.useInteractionModality = require_providers.useInteractionModality;
|
|
38
|
+
exports.useLocaleContext = require_providers.useLocaleContext;
|
|
39
|
+
exports.useMachine = require_utils.useMachine;
|
|
40
|
+
exports.useRenderStrategyProps = require_utils.useRenderStrategyProps;
|
|
41
|
+
exports.useSyncExternalStore = require_utils.useSyncExternalStore;
|
|
42
|
+
exports.useVModel = require_utils.useVModel;
|
|
43
|
+
exports.wire = require_factory.wire;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { a as PolymorphicProps, i as HTMLWireProps, n as HTMLPolymorphicComponents, o as jsxFactory, r as HTMLPolymorphicProps, s as wire, t as AsChildComponent } from "./factory-BNwuanv4.cjs";
|
|
2
|
+
import { a as MaybePromise, c as useMachine, i as EmitFn, l as PropTypes, n as Assign, o as Optional, r as BooleanDefaults, s as useSyncExternalStore, t as mergeProps, u as normalizeProps } from "./index-B-o8jLyV.cjs";
|
|
3
|
+
import { A as createContext, C as UseEnvironmentContext, D as cleanProps, E as toBooleanValue, O as runIfFn, S as RootNode, T as createSplitProps, _ as UseFocusVisibleProps, a as UseFilterReturn, b as _default, c as UseDateFormatterReturn, d as UseCollatorReturn, f as useCollator, g as useInteractionModality, h as Modality, i as UseFilterProps, k as useEmitAsProps, l as useDateFormatter, m as _default$1, n as LocaleContext, o as useFilter, p as LocaleProviderProps, r as useLocaleContext, s as UseDateFormatterProps, t as DEFAULT_LOCALE, u as UseCollatorProps, v as useFocusVisible, w as useEnvironmentContext, x as DEFAULT_ENVIRONMENT, y as EnvironmentProviderProps } from "./index-Zc9P69Ka.cjs";
|
|
4
|
+
import { a as Dynamic, c as useForwardExpose, i as useRenderStrategyProps, n as RenderStrategyProps, o as useForwardPropsEmits, r as RenderStrategyPropsProvider, s as useForwardProps, t as useVModel } from "./index-Cc4qS0rQ.cjs";
|
|
5
|
+
export { AsChildComponent, Assign, BooleanDefaults, DEFAULT_ENVIRONMENT, DEFAULT_LOCALE, Dynamic, EmitFn, _default as EnvironmentProvider, type EnvironmentProviderProps, HTMLPolymorphicComponents, HTMLPolymorphicProps, HTMLWireProps, type LocaleContext, _default$1 as LocaleProvider, type LocaleProviderProps, MaybePromise, type Modality, Optional, PolymorphicProps, PropTypes, type RenderStrategyProps, RenderStrategyPropsProvider, type RootNode, type UseCollatorProps, type UseCollatorReturn, type UseDateFormatterProps, type UseDateFormatterReturn, type UseEnvironmentContext, type UseFilterProps, type UseFilterReturn, type UseFocusVisibleProps, cleanProps, createContext, createSplitProps, jsxFactory, mergeProps, normalizeProps, runIfFn, toBooleanValue, useCollator, useDateFormatter, useEmitAsProps, useEnvironmentContext, useFilter, useFocusVisible, useForwardExpose, useForwardProps, useForwardPropsEmits, useInteractionModality, useLocaleContext, useMachine, useRenderStrategyProps, useSyncExternalStore, useVModel, wire };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { a as PolymorphicProps, i as HTMLWireProps, n as HTMLPolymorphicComponents, o as jsxFactory, r as HTMLPolymorphicProps, s as wire, t as AsChildComponent } from "./factory-BNwuanv4.js";
|
|
2
|
+
import { a as MaybePromise, c as useMachine, i as EmitFn, l as PropTypes, n as Assign, o as Optional, r as BooleanDefaults, s as useSyncExternalStore, t as mergeProps, u as normalizeProps } from "./index-BSoF1D-v.js";
|
|
3
|
+
import { A as createContext, C as UseEnvironmentContext, D as cleanProps, E as toBooleanValue, O as runIfFn, S as RootNode, T as createSplitProps, _ as UseFocusVisibleProps, a as UseFilterReturn, b as _default, c as UseDateFormatterReturn, d as UseCollatorReturn, f as useCollator, g as useInteractionModality, h as Modality, i as UseFilterProps, k as useEmitAsProps, l as useDateFormatter, m as _default$1, n as LocaleContext, o as useFilter, p as LocaleProviderProps, r as useLocaleContext, s as UseDateFormatterProps, t as DEFAULT_LOCALE, u as UseCollatorProps, v as useFocusVisible, w as useEnvironmentContext, x as DEFAULT_ENVIRONMENT, y as EnvironmentProviderProps } from "./index-BTNfeIXf.js";
|
|
4
|
+
import { a as Dynamic, c as useForwardExpose, i as useRenderStrategyProps, n as RenderStrategyProps, o as useForwardPropsEmits, r as RenderStrategyPropsProvider, s as useForwardProps, t as useVModel } from "./index-Cc4qS0rQ.js";
|
|
5
|
+
export { AsChildComponent, Assign, BooleanDefaults, DEFAULT_ENVIRONMENT, DEFAULT_LOCALE, Dynamic, EmitFn, _default as EnvironmentProvider, type EnvironmentProviderProps, HTMLPolymorphicComponents, HTMLPolymorphicProps, HTMLWireProps, type LocaleContext, _default$1 as LocaleProvider, type LocaleProviderProps, MaybePromise, type Modality, Optional, PolymorphicProps, PropTypes, type RenderStrategyProps, RenderStrategyPropsProvider, type RootNode, type UseCollatorProps, type UseCollatorReturn, type UseDateFormatterProps, type UseDateFormatterReturn, type UseEnvironmentContext, type UseFilterProps, type UseFilterReturn, type UseFocusVisibleProps, cleanProps, createContext, createSplitProps, jsxFactory, mergeProps, normalizeProps, runIfFn, toBooleanValue, useCollator, useDateFormatter, useEmitAsProps, useEnvironmentContext, useFilter, useFocusVisible, useForwardExpose, useForwardProps, useForwardPropsEmits, useInteractionModality, useLocaleContext, useMachine, useRenderStrategyProps, useSyncExternalStore, useVModel, wire };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a as mergeProps, c as normalizeProps, d as useForwardExpose, i as Dynamic, l as useForwardPropsEmits, m as createContext, n as RenderStrategyPropsProvider, o as useSyncExternalStore, p as useEmitAsProps, r as useRenderStrategyProps, s as useMachine, t as useVModel, u as useForwardProps } from "./utils-D95V66v9.js";
|
|
2
|
+
import { a as DEFAULT_LOCALE, c as useFocusVisible, d as useEnvironmentContext, f as runIfFn, i as _sfc_main$1, l as _sfc_main, n as useDateFormatter, o as useLocaleContext, r as useCollator, s as useInteractionModality, t as useFilter, u as DEFAULT_ENVIRONMENT } from "./providers-C3XQH-uu.js";
|
|
3
|
+
import { t as cleanProps } from "./clean-props--1kqQE0Y.js";
|
|
4
|
+
import { t as toBooleanValue } from "./boolean-BCaEpMxQ.js";
|
|
5
|
+
import { t as createSplitProps } from "./create-split-props-BBxrD7TV.js";
|
|
6
|
+
import { n as wire, t as jsxFactory } from "./factory-8Ao0DEy3.js";
|
|
7
|
+
export { DEFAULT_ENVIRONMENT, DEFAULT_LOCALE, Dynamic, _sfc_main as EnvironmentProvider, _sfc_main$1 as LocaleProvider, RenderStrategyPropsProvider, cleanProps, createContext, createSplitProps, jsxFactory, mergeProps, normalizeProps, runIfFn, toBooleanValue, useCollator, useDateFormatter, useEmitAsProps, useEnvironmentContext, useFilter, useFocusVisible, useForwardExpose, useForwardProps, useForwardPropsEmits, useInteractionModality, useLocaleContext, useMachine, useRenderStrategyProps, useSyncExternalStore, useVModel, wire };
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
|
|
3
|
+
const require_utils = require("./utils-XrBZd2Yk.cjs");
|
|
4
|
+
const require_create_split_props = require("./create-split-props-Jx-IEwdk.cjs");
|
|
5
|
+
const require_collection = require("./collection-1IjtyI-g.cjs");
|
|
6
|
+
const require_tree_view = require("./tree-view-CWH9tv7s.cjs");
|
|
7
|
+
let vue = require("vue");
|
|
8
|
+
let _wirekyt_dom_json_tree_utils = require("@wirekyt/dom/json-tree-utils");
|
|
9
|
+
//#region src/components/json-tree-view/get-branch-value.ts
|
|
10
|
+
function getBranchValues(tree, depth) {
|
|
11
|
+
let values = [];
|
|
12
|
+
tree.visit({ onEnter: (node, indexPath) => {
|
|
13
|
+
if (indexPath.length === 0) return;
|
|
14
|
+
if (tree.isBranchNode(node) && indexPath.length <= depth) values.push(tree.getNodeValue(node));
|
|
15
|
+
} });
|
|
16
|
+
return values;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/components/json-tree-view/props-context.ts
|
|
20
|
+
const [JsonTreeViewPropsProvider, useJsonTreeViewPropsContext] = require_utils.createContext("JsonTreeViewPropsContext");
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/json-tree-view/root.vue
|
|
23
|
+
const _sfc_main = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
24
|
+
__name: "root",
|
|
25
|
+
props: /*@__PURE__*/ (0, vue.mergeDefaults)({
|
|
26
|
+
data: {},
|
|
27
|
+
defaultExpandedDepth: {},
|
|
28
|
+
quotesOnKeys: { type: Boolean },
|
|
29
|
+
maxPreviewItems: {},
|
|
30
|
+
collapseStringsAfterLength: {},
|
|
31
|
+
groupArraysAfterLength: {},
|
|
32
|
+
showNonenumerable: { type: Boolean },
|
|
33
|
+
defaultExpandedValue: {},
|
|
34
|
+
defaultSelectedValue: {},
|
|
35
|
+
defaultCheckedValue: {},
|
|
36
|
+
defaultFocusedValue: {},
|
|
37
|
+
checkedValue: {},
|
|
38
|
+
expandOnClick: { type: Boolean },
|
|
39
|
+
expandedValue: {},
|
|
40
|
+
focusedValue: {},
|
|
41
|
+
id: {},
|
|
42
|
+
ids: {},
|
|
43
|
+
selectedValue: {},
|
|
44
|
+
selectionMode: {},
|
|
45
|
+
translations: {},
|
|
46
|
+
typeahead: { type: Boolean },
|
|
47
|
+
loadChildren: { type: Function },
|
|
48
|
+
canRename: { type: Function },
|
|
49
|
+
lazyMount: { type: Boolean },
|
|
50
|
+
unmountOnExit: { type: Boolean },
|
|
51
|
+
asChild: { type: Boolean }
|
|
52
|
+
}, {
|
|
53
|
+
expandOnClick: void 0,
|
|
54
|
+
typeahead: void 0,
|
|
55
|
+
lazyMount: void 0,
|
|
56
|
+
unmountOnExit: void 0,
|
|
57
|
+
asChild: void 0,
|
|
58
|
+
showNonenumerable: void 0,
|
|
59
|
+
quotesOnKeys: void 0
|
|
60
|
+
}),
|
|
61
|
+
setup(__props) {
|
|
62
|
+
const props = __props;
|
|
63
|
+
const [jsonTreeProps, localProps] = require_create_split_props.createSplitProps()(props, [
|
|
64
|
+
"maxPreviewItems",
|
|
65
|
+
"collapseStringsAfterLength",
|
|
66
|
+
"quotesOnKeys",
|
|
67
|
+
"groupArraysAfterLength",
|
|
68
|
+
"showNonenumerable"
|
|
69
|
+
]);
|
|
70
|
+
const { data, defaultExpandedDepth, ...restProps } = localProps;
|
|
71
|
+
const collection = (0, vue.computed)(() => {
|
|
72
|
+
return require_collection.createTreeCollection({
|
|
73
|
+
nodeToValue: _wirekyt_dom_json_tree_utils.nodeToValue,
|
|
74
|
+
nodeToString: _wirekyt_dom_json_tree_utils.nodeToString,
|
|
75
|
+
rootNode: (0, _wirekyt_dom_json_tree_utils.getRootNode)(data)
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
const defaultExpandedValue = (0, vue.computed)(() => {
|
|
79
|
+
const expandedValue = defaultExpandedDepth != null ? getBranchValues(collection.value, defaultExpandedDepth) : void 0;
|
|
80
|
+
return props.defaultExpandedValue || expandedValue;
|
|
81
|
+
});
|
|
82
|
+
JsonTreeViewPropsProvider((0, vue.computed)(() => jsonTreeProps));
|
|
83
|
+
return (_ctx, _cache) => {
|
|
84
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_tree_view.tree_view_exports).Root, (0, vue.mergeProps)({ "data-scope": "json-tree-view" }, restProps, {
|
|
85
|
+
collection: collection.value,
|
|
86
|
+
defaultExpandedValue: defaultExpandedValue.value,
|
|
87
|
+
typeahead: false
|
|
88
|
+
}), {
|
|
89
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
90
|
+
_: 3
|
|
91
|
+
}, 16, ["collection", "defaultExpandedValue"]);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/components/json-tree-view/root-provider.vue
|
|
97
|
+
const _sfc_main$1 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
98
|
+
__name: "root-provider",
|
|
99
|
+
props: {
|
|
100
|
+
value: {},
|
|
101
|
+
lazyMount: { type: Boolean },
|
|
102
|
+
unmountOnExit: { type: Boolean },
|
|
103
|
+
asChild: { type: Boolean }
|
|
104
|
+
},
|
|
105
|
+
setup(__props) {
|
|
106
|
+
const jsonTreeView = __props.value;
|
|
107
|
+
const treeView = (0, vue.computed)(() => {
|
|
108
|
+
const { options: _, ...rest } = jsonTreeView.value;
|
|
109
|
+
return rest;
|
|
110
|
+
});
|
|
111
|
+
JsonTreeViewPropsProvider((0, vue.computed)(() => jsonTreeView.value.options));
|
|
112
|
+
return (_ctx, _cache) => {
|
|
113
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_tree_view._sfc_main$2), {
|
|
114
|
+
"data-scope": "json-tree-view",
|
|
115
|
+
value: treeView.value
|
|
116
|
+
}, {
|
|
117
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "default")]),
|
|
118
|
+
_: 3
|
|
119
|
+
}, 8, ["value"]);
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/components/json-tree-view/key-node.vue
|
|
125
|
+
const _hoisted_1 = ["data-non-enumerable"];
|
|
126
|
+
const _sfc_main$5 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
127
|
+
__name: "key-node",
|
|
128
|
+
props: {
|
|
129
|
+
node: {},
|
|
130
|
+
showQuotes: { type: Boolean }
|
|
131
|
+
},
|
|
132
|
+
setup(__props) {
|
|
133
|
+
const props = __props;
|
|
134
|
+
const key = (0, vue.computed)(() => (0, _wirekyt_dom_json_tree_utils.keyPathToKey)(props.node.keyPath));
|
|
135
|
+
return (_ctx, _cache) => {
|
|
136
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, null, [(0, vue.createElementVNode)("span", {
|
|
137
|
+
"data-kind": "key",
|
|
138
|
+
"data-non-enumerable": __props.node.isNonEnumerable ? "" : void 0
|
|
139
|
+
}, (0, vue.toDisplayString)(__props.showQuotes ? `"${key.value}"` : key.value), 9, _hoisted_1), _cache[0] || (_cache[0] = (0, vue.createElementVNode)("span", { "data-kind": "colon" }, ":", -1))], 64);
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
//#endregion
|
|
144
|
+
//#region src/components/json-tree-view/value-node.vue
|
|
145
|
+
const _sfc_main$4 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
146
|
+
__name: "value-node",
|
|
147
|
+
props: { node: {} },
|
|
148
|
+
setup(__props) {
|
|
149
|
+
return (_ctx, _cache) => {
|
|
150
|
+
const _component_JsonTreeViewValueNode = (0, vue.resolveComponent)("JsonTreeViewValueNode");
|
|
151
|
+
return __props.node.type === "text" ? ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, [_ctx.$slots.renderValue ? (0, vue.renderSlot)(_ctx.$slots, "renderValue", { node: __props.node }, () => [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.node.value), 1)], void 0, 0) : ((0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 1 }, [(0, vue.createTextVNode)((0, vue.toDisplayString)(__props.node.value), 1)], 64))], 64)) : ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)(__props.node.tagName), {
|
|
152
|
+
key: 1,
|
|
153
|
+
"data-root": __props.node.properties.root ? "" : void 0,
|
|
154
|
+
"data-type": __props.node.properties.nodeType,
|
|
155
|
+
"data-kind": __props.node.properties.kind
|
|
156
|
+
}, {
|
|
157
|
+
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.node.children, (child, index) => {
|
|
158
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(_component_JsonTreeViewValueNode, {
|
|
159
|
+
key: index,
|
|
160
|
+
node: child
|
|
161
|
+
}, {
|
|
162
|
+
renderValue: (0, vue.withCtx)(({ node: childNode }) => [(0, vue.renderSlot)(_ctx.$slots, "renderValue", { node: childNode })]),
|
|
163
|
+
_: 3
|
|
164
|
+
}, 8, ["node"]);
|
|
165
|
+
}), 128))]),
|
|
166
|
+
_: 3
|
|
167
|
+
}, 8, [
|
|
168
|
+
"data-root",
|
|
169
|
+
"data-type",
|
|
170
|
+
"data-kind"
|
|
171
|
+
]));
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/components/json-tree-view/node.vue
|
|
177
|
+
const _sfc_main$3 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
178
|
+
__name: "node",
|
|
179
|
+
props: {
|
|
180
|
+
node: {},
|
|
181
|
+
indexPath: {},
|
|
182
|
+
indentGuide: { type: Boolean }
|
|
183
|
+
},
|
|
184
|
+
setup(__props) {
|
|
185
|
+
const props = __props;
|
|
186
|
+
const tree = require_tree_view.useTreeViewContext();
|
|
187
|
+
const nodeState = (0, vue.computed)(() => tree.value.getNodeState({
|
|
188
|
+
node: props.node,
|
|
189
|
+
indexPath: props.indexPath
|
|
190
|
+
}));
|
|
191
|
+
const options = useJsonTreeViewPropsContext();
|
|
192
|
+
const key = (0, vue.computed)(() => (0, _wirekyt_dom_json_tree_utils.keyPathToKey)(props.node.keyPath, { excludeRoot: true }));
|
|
193
|
+
const valueNode = (0, vue.computed)(() => (0, _wirekyt_dom_json_tree_utils.jsonNodeToElement)(props.node, (0, vue.toValue)(options)));
|
|
194
|
+
const nodeProps = (0, vue.computed)(() => {
|
|
195
|
+
const desc = (0, _wirekyt_dom_json_tree_utils.getAccessibleDescription)(props.node);
|
|
196
|
+
const line = props.indexPath.reduce((acc, curr) => acc + curr, 1);
|
|
197
|
+
const lineLength = props.indexPath.length - 1;
|
|
198
|
+
return {
|
|
199
|
+
"aria-label": desc,
|
|
200
|
+
"data-line": line,
|
|
201
|
+
style: { ["--line-length"]: lineLength }
|
|
202
|
+
};
|
|
203
|
+
});
|
|
204
|
+
return (_ctx, _cache) => {
|
|
205
|
+
const _component_JsonTreeViewNode = (0, vue.resolveComponent)("JsonTreeViewNode");
|
|
206
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_tree_view._sfc_main$3), {
|
|
207
|
+
node: __props.node,
|
|
208
|
+
"index-path": __props.indexPath
|
|
209
|
+
}, {
|
|
210
|
+
default: (0, vue.withCtx)(() => [nodeState.value.isBranch ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_tree_view._sfc_main$13), {
|
|
211
|
+
key: 0,
|
|
212
|
+
"data-scope": "json-tree-view"
|
|
213
|
+
}, {
|
|
214
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(require_tree_view._sfc_main$18), (0, vue.mergeProps)(nodeProps.value, { "data-scope": "json-tree-view" }), {
|
|
215
|
+
default: (0, vue.withCtx)(() => [_ctx.$slots.arrow ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_tree_view._sfc_main$16), {
|
|
216
|
+
key: 0,
|
|
217
|
+
"data-scope": "json-tree-view"
|
|
218
|
+
}, {
|
|
219
|
+
default: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "arrow")]),
|
|
220
|
+
_: 3
|
|
221
|
+
})) : (0, vue.createCommentVNode)("v-if", true), (0, vue.createVNode)((0, vue.unref)(require_tree_view._sfc_main$15), { "data-scope": "json-tree-view" }, {
|
|
222
|
+
default: (0, vue.withCtx)(() => [key.value ? ((0, vue.openBlock)(), (0, vue.createBlock)(_sfc_main$5, {
|
|
223
|
+
key: 0,
|
|
224
|
+
node: __props.node,
|
|
225
|
+
"show-quotes": (0, vue.unref)(options).quotesOnKeys
|
|
226
|
+
}, null, 8, ["node", "show-quotes"])) : (0, vue.createCommentVNode)("v-if", true), (0, vue.createVNode)(_sfc_main$4, { node: valueNode.value }, {
|
|
227
|
+
renderValue: (0, vue.withCtx)(({ node: childNode }) => [(0, vue.renderSlot)(_ctx.$slots, "renderValue", { node: childNode })]),
|
|
228
|
+
_: 3
|
|
229
|
+
}, 8, ["node"])]),
|
|
230
|
+
_: 3
|
|
231
|
+
})]),
|
|
232
|
+
_: 3
|
|
233
|
+
}, 16), (0, vue.createVNode)((0, vue.unref)(require_tree_view._sfc_main$19), { "data-scope": "json-tree-view" }, {
|
|
234
|
+
default: (0, vue.withCtx)(() => [_ctx.$slots.indentGuide ? (0, vue.renderSlot)(_ctx.$slots, "indentGuide", {}, void 0, void 0, 0) : __props.indentGuide ? ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_tree_view._sfc_main$17), { key: 1 })) : (0, vue.createCommentVNode)("v-if", true), ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.node.children, (child, index) => {
|
|
235
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(_component_JsonTreeViewNode, (0, vue.mergeProps)({ key: index }, { ref_for: true }, _ctx.$props, {
|
|
236
|
+
node: child,
|
|
237
|
+
"index-path": [...__props.indexPath, index]
|
|
238
|
+
}), {
|
|
239
|
+
arrow: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "arrow")]),
|
|
240
|
+
indentGuide: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "indentGuide")]),
|
|
241
|
+
renderValue: (0, vue.withCtx)(({ node: childNode }) => [(0, vue.renderSlot)(_ctx.$slots, "renderValue", { node: childNode })]),
|
|
242
|
+
_: 3
|
|
243
|
+
}, 16, ["node", "index-path"]);
|
|
244
|
+
}), 128))]),
|
|
245
|
+
_: 3
|
|
246
|
+
})]),
|
|
247
|
+
_: 3
|
|
248
|
+
})) : ((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_tree_view._sfc_main$9), (0, vue.mergeProps)({ key: 1 }, nodeProps.value, { "data-scope": "json-tree-view" }), {
|
|
249
|
+
default: (0, vue.withCtx)(() => [(0, vue.createVNode)((0, vue.unref)(require_tree_view._sfc_main$10), { "data-scope": "json-tree-view" }, {
|
|
250
|
+
default: (0, vue.withCtx)(() => [key.value ? ((0, vue.openBlock)(), (0, vue.createBlock)(_sfc_main$5, {
|
|
251
|
+
key: 0,
|
|
252
|
+
node: __props.node,
|
|
253
|
+
"show-quotes": (0, vue.unref)(options).quotesOnKeys
|
|
254
|
+
}, null, 8, ["node", "show-quotes"])) : (0, vue.createCommentVNode)("v-if", true), (0, vue.createVNode)(_sfc_main$4, { node: valueNode.value }, {
|
|
255
|
+
renderValue: (0, vue.withCtx)(({ node: childNode }) => [(0, vue.renderSlot)(_ctx.$slots, "renderValue", { node: childNode })]),
|
|
256
|
+
_: 3
|
|
257
|
+
}, 8, ["node"])]),
|
|
258
|
+
_: 3
|
|
259
|
+
})]),
|
|
260
|
+
_: 3
|
|
261
|
+
}, 16))]),
|
|
262
|
+
_: 3
|
|
263
|
+
}, 8, ["node", "index-path"]);
|
|
264
|
+
};
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
//#endregion
|
|
268
|
+
//#region src/components/json-tree-view/tree.vue
|
|
269
|
+
const _sfc_main$2 = /*@__PURE__*/ (0, vue.defineComponent)({
|
|
270
|
+
__name: "tree",
|
|
271
|
+
props: {
|
|
272
|
+
asChild: { type: Boolean },
|
|
273
|
+
indentGuide: { type: Boolean }
|
|
274
|
+
},
|
|
275
|
+
setup(__props) {
|
|
276
|
+
const props = __props;
|
|
277
|
+
const [nodeProps, treeProps] = require_create_split_props.createSplitProps()(props, ["indentGuide"]);
|
|
278
|
+
const tree = require_tree_view.useTreeViewContext();
|
|
279
|
+
const children = (0, vue.computed)(() => tree.value.collection.getNodeChildren(tree.value.collection.rootNode));
|
|
280
|
+
return (_ctx, _cache) => {
|
|
281
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)((0, vue.unref)(require_tree_view._sfc_main), (0, vue.mergeProps)({ "data-scope": "json-tree-view" }, (0, vue.unref)(treeProps)), {
|
|
282
|
+
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(children.value, (child, index) => {
|
|
283
|
+
return (0, vue.openBlock)(), (0, vue.createBlock)(_sfc_main$3, (0, vue.mergeProps)({
|
|
284
|
+
key: index,
|
|
285
|
+
node: child,
|
|
286
|
+
"index-path": [index]
|
|
287
|
+
}, { ref_for: true }, (0, vue.unref)(nodeProps)), {
|
|
288
|
+
arrow: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "arrow")]),
|
|
289
|
+
indentGuide: (0, vue.withCtx)(() => [(0, vue.renderSlot)(_ctx.$slots, "indentGuide")]),
|
|
290
|
+
renderValue: (0, vue.withCtx)(({ node: childNode }) => [(0, vue.renderSlot)(_ctx.$slots, "renderValue", { node: childNode })]),
|
|
291
|
+
_: 3
|
|
292
|
+
}, 16, ["node", "index-path"]);
|
|
293
|
+
}), 128))]),
|
|
294
|
+
_: 3
|
|
295
|
+
}, 16);
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
//#endregion
|
|
300
|
+
//#region src/components/json-tree-view/use-json-tree-view.ts
|
|
301
|
+
const splitJsonTreeViewProps = require_create_split_props.createSplitProps();
|
|
302
|
+
const useJsonTreeView = (props) => {
|
|
303
|
+
const [jsonTreeProps, localProps] = splitJsonTreeViewProps((0, vue.toValue)(props), [
|
|
304
|
+
"maxPreviewItems",
|
|
305
|
+
"collapseStringsAfterLength",
|
|
306
|
+
"quotesOnKeys",
|
|
307
|
+
"groupArraysAfterLength",
|
|
308
|
+
"showNonenumerable"
|
|
309
|
+
]);
|
|
310
|
+
const treeView = require_tree_view.useTreeView((0, vue.computed)(() => {
|
|
311
|
+
const { data, defaultExpandedDepth, ...restProps } = localProps;
|
|
312
|
+
const collection = require_collection.createTreeCollection({
|
|
313
|
+
nodeToValue: _wirekyt_dom_json_tree_utils.nodeToValue,
|
|
314
|
+
nodeToString: _wirekyt_dom_json_tree_utils.nodeToString,
|
|
315
|
+
rootNode: (0, _wirekyt_dom_json_tree_utils.getRootNode)(data)
|
|
316
|
+
});
|
|
317
|
+
return {
|
|
318
|
+
defaultExpandedValue: defaultExpandedDepth != null ? getBranchValues(collection, defaultExpandedDepth) : void 0,
|
|
319
|
+
...restProps,
|
|
320
|
+
collection,
|
|
321
|
+
typeahead: false
|
|
322
|
+
};
|
|
323
|
+
}));
|
|
324
|
+
return (0, vue.computed)(() => ({
|
|
325
|
+
...treeView.value,
|
|
326
|
+
options: jsonTreeProps
|
|
327
|
+
}));
|
|
328
|
+
};
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region src/components/json-tree-view/json-tree-view.ts
|
|
331
|
+
var json_tree_view_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
|
|
332
|
+
Root: () => _sfc_main,
|
|
333
|
+
RootProvider: () => _sfc_main$1,
|
|
334
|
+
Tree: () => _sfc_main$2
|
|
335
|
+
});
|
|
336
|
+
//#endregion
|
|
337
|
+
Object.defineProperty(exports, "JsonTreeView", {
|
|
338
|
+
enumerable: true,
|
|
339
|
+
get: function() {
|
|
340
|
+
return json_tree_view_exports;
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
exports.JsonTreeViewRoot = _sfc_main;
|
|
344
|
+
exports.JsonTreeViewRootProvider = _sfc_main$1;
|
|
345
|
+
exports.JsonTreeViewTree = _sfc_main$2;
|
|
346
|
+
exports.useJsonTreeView = useJsonTreeView;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { l as PropTypes } from "./index-B-o8jLyV.cjs";
|
|
2
|
+
import { _ as TreeViewRootBaseProps, h as TreeViewTreeProps, it as UseTreeViewProps, w as TreeViewRootProviderProps } from "./index-CG9mpPgL.cjs";
|
|
3
|
+
import { ComputedRef, HTMLAttributes, MaybeRef } from "vue";
|
|
4
|
+
import { JsonNode, JsonNodeHastElement, JsonNodePreviewOptions } from "@wirekyt/dom/json-tree-utils";
|
|
5
|
+
import * as treeView from "@wirekyt/dom/machines/tree-view";
|
|
6
|
+
//#region src/components/json-tree-view/props-context.d.ts
|
|
7
|
+
interface JsonTreeViewOptions extends Partial<JsonNodePreviewOptions> {
|
|
8
|
+
quotesOnKeys?: boolean;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/json-tree-view/root.vue.d.ts
|
|
12
|
+
interface JsonTreeViewRootBaseProps extends JsonTreeViewOptions, Omit<TreeViewRootBaseProps<JsonNode>, "collection"> {
|
|
13
|
+
data: object;
|
|
14
|
+
defaultExpandedDepth?: number;
|
|
15
|
+
}
|
|
16
|
+
interface JsonTreeViewRootProps extends JsonTreeViewRootBaseProps,
|
|
17
|
+
/**
|
|
18
|
+
* @vue-ignore
|
|
19
|
+
*/
|
|
20
|
+
HTMLAttributes {}
|
|
21
|
+
declare const _default: typeof __VLS_export$2;
|
|
22
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<JsonTreeViewRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<JsonTreeViewRootProps> & Readonly<{}>, {
|
|
23
|
+
asChild: boolean;
|
|
24
|
+
lazyMount: boolean;
|
|
25
|
+
unmountOnExit: boolean;
|
|
26
|
+
showNonenumerable: boolean;
|
|
27
|
+
expandOnClick: boolean;
|
|
28
|
+
typeahead: boolean;
|
|
29
|
+
quotesOnKeys: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
31
|
+
default?: (props: {}) => any;
|
|
32
|
+
}>;
|
|
33
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/json-tree-view/root-provider.vue.d.ts
|
|
40
|
+
interface JsonTreeViewRootProviderProps extends TreeViewRootProviderProps<JsonNode> {}
|
|
41
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
42
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<JsonTreeViewRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<JsonTreeViewRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
43
|
+
default?: (props: {}) => any;
|
|
44
|
+
}>;
|
|
45
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/json-tree-view/node.vue.d.ts
|
|
52
|
+
interface JsonTreeViewNodeBaseProps {
|
|
53
|
+
indentGuide?: boolean;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/json-tree-view/tree.vue.d.ts
|
|
57
|
+
interface JsonTreeViewTreeBaseProps extends JsonTreeViewNodeBaseProps {}
|
|
58
|
+
interface JsonTreeViewTreeProps extends TreeViewTreeProps, JsonTreeViewTreeBaseProps {}
|
|
59
|
+
declare const _default$2: typeof __VLS_export;
|
|
60
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<JsonTreeViewTreeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<JsonTreeViewTreeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
61
|
+
arrow(): unknown;
|
|
62
|
+
indentGuide(): unknown;
|
|
63
|
+
renderValue(props: {
|
|
64
|
+
node: JsonNodeHastElement;
|
|
65
|
+
}): unknown;
|
|
66
|
+
}>;
|
|
67
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/components/json-tree-view/use-json-tree-view.d.ts
|
|
74
|
+
interface UseJsonTreeViewProps extends Omit<UseTreeViewProps<JsonNode>, "collection">, JsonTreeViewOptions {
|
|
75
|
+
data: unknown;
|
|
76
|
+
defaultExpandedDepth?: number;
|
|
77
|
+
}
|
|
78
|
+
interface UseJsonTreeViewReturn extends ComputedRef<treeView.Api<PropTypes, JsonNode> & {
|
|
79
|
+
options: JsonTreeViewOptions;
|
|
80
|
+
}> {}
|
|
81
|
+
declare const useJsonTreeView: (props: MaybeRef<UseJsonTreeViewProps>) => UseJsonTreeViewReturn;
|
|
82
|
+
declare namespace json_tree_view_d_exports {
|
|
83
|
+
export { _default as Root, JsonTreeViewRootBaseProps as RootBaseProps, JsonTreeViewRootProps as RootProps, _default$1 as RootProvider, JsonTreeViewRootProviderProps as RootProviderProps, _default$2 as Tree, JsonTreeViewTreeBaseProps as TreeBaseProps, JsonTreeViewTreeProps as TreeProps };
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
export { json_tree_view_d_exports as JsonTreeView, _default as JsonTreeViewRoot, type JsonTreeViewRootProps, _default$1 as JsonTreeViewRootProvider, type JsonTreeViewRootProviderProps, _default$2 as JsonTreeViewTree, type JsonTreeViewTreeProps, type UseJsonTreeViewProps, type UseJsonTreeViewReturn, useJsonTreeView };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { l as PropTypes } from "./index-BSoF1D-v.js";
|
|
2
|
+
import { _ as TreeViewRootBaseProps, h as TreeViewTreeProps, it as UseTreeViewProps, w as TreeViewRootProviderProps } from "./index-aMWdJRGL.js";
|
|
3
|
+
import { ComputedRef, HTMLAttributes, MaybeRef } from "vue";
|
|
4
|
+
import { JsonNode, JsonNodeHastElement, JsonNodePreviewOptions } from "@wirekyt/dom/json-tree-utils";
|
|
5
|
+
import * as treeView from "@wirekyt/dom/machines/tree-view";
|
|
6
|
+
//#region src/components/json-tree-view/props-context.d.ts
|
|
7
|
+
interface JsonTreeViewOptions extends Partial<JsonNodePreviewOptions> {
|
|
8
|
+
quotesOnKeys?: boolean;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/json-tree-view/root.vue.d.ts
|
|
12
|
+
interface JsonTreeViewRootBaseProps extends JsonTreeViewOptions, Omit<TreeViewRootBaseProps<JsonNode>, "collection"> {
|
|
13
|
+
data: object;
|
|
14
|
+
defaultExpandedDepth?: number;
|
|
15
|
+
}
|
|
16
|
+
interface JsonTreeViewRootProps extends JsonTreeViewRootBaseProps,
|
|
17
|
+
/**
|
|
18
|
+
* @vue-ignore
|
|
19
|
+
*/
|
|
20
|
+
HTMLAttributes {}
|
|
21
|
+
declare const _default: typeof __VLS_export$2;
|
|
22
|
+
declare const __VLS_export$2: __VLS_WithSlots$2<import("vue").DefineComponent<JsonTreeViewRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<JsonTreeViewRootProps> & Readonly<{}>, {
|
|
23
|
+
asChild: boolean;
|
|
24
|
+
lazyMount: boolean;
|
|
25
|
+
unmountOnExit: boolean;
|
|
26
|
+
showNonenumerable: boolean;
|
|
27
|
+
expandOnClick: boolean;
|
|
28
|
+
typeahead: boolean;
|
|
29
|
+
quotesOnKeys: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
31
|
+
default?: (props: {}) => any;
|
|
32
|
+
}>;
|
|
33
|
+
type __VLS_WithSlots$2<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/components/json-tree-view/root-provider.vue.d.ts
|
|
40
|
+
interface JsonTreeViewRootProviderProps extends TreeViewRootProviderProps<JsonNode> {}
|
|
41
|
+
declare const _default$1: typeof __VLS_export$1;
|
|
42
|
+
declare const __VLS_export$1: __VLS_WithSlots$1<import("vue").DefineComponent<JsonTreeViewRootProviderProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<JsonTreeViewRootProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
43
|
+
default?: (props: {}) => any;
|
|
44
|
+
}>;
|
|
45
|
+
type __VLS_WithSlots$1<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/components/json-tree-view/node.vue.d.ts
|
|
52
|
+
interface JsonTreeViewNodeBaseProps {
|
|
53
|
+
indentGuide?: boolean;
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region src/components/json-tree-view/tree.vue.d.ts
|
|
57
|
+
interface JsonTreeViewTreeBaseProps extends JsonTreeViewNodeBaseProps {}
|
|
58
|
+
interface JsonTreeViewTreeProps extends TreeViewTreeProps, JsonTreeViewTreeBaseProps {}
|
|
59
|
+
declare const _default$2: typeof __VLS_export;
|
|
60
|
+
declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<JsonTreeViewTreeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<JsonTreeViewTreeProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
61
|
+
arrow(): unknown;
|
|
62
|
+
indentGuide(): unknown;
|
|
63
|
+
renderValue(props: {
|
|
64
|
+
node: JsonNodeHastElement;
|
|
65
|
+
}): unknown;
|
|
66
|
+
}>;
|
|
67
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
//#region src/components/json-tree-view/use-json-tree-view.d.ts
|
|
74
|
+
interface UseJsonTreeViewProps extends Omit<UseTreeViewProps<JsonNode>, "collection">, JsonTreeViewOptions {
|
|
75
|
+
data: unknown;
|
|
76
|
+
defaultExpandedDepth?: number;
|
|
77
|
+
}
|
|
78
|
+
interface UseJsonTreeViewReturn extends ComputedRef<treeView.Api<PropTypes, JsonNode> & {
|
|
79
|
+
options: JsonTreeViewOptions;
|
|
80
|
+
}> {}
|
|
81
|
+
declare const useJsonTreeView: (props: MaybeRef<UseJsonTreeViewProps>) => UseJsonTreeViewReturn;
|
|
82
|
+
declare namespace json_tree_view_d_exports {
|
|
83
|
+
export { _default as Root, JsonTreeViewRootBaseProps as RootBaseProps, JsonTreeViewRootProps as RootProps, _default$1 as RootProvider, JsonTreeViewRootProviderProps as RootProviderProps, _default$2 as Tree, JsonTreeViewTreeBaseProps as TreeBaseProps, JsonTreeViewTreeProps as TreeProps };
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
export { json_tree_view_d_exports as JsonTreeView, _default as JsonTreeViewRoot, type JsonTreeViewRootProps, _default$1 as JsonTreeViewRootProvider, type JsonTreeViewRootProviderProps, _default$2 as JsonTreeViewTree, type JsonTreeViewTreeProps, type UseJsonTreeViewProps, type UseJsonTreeViewReturn, useJsonTreeView };
|