@xihan-ui/vue 4.0.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/components/code-view/code-view.d.ts +1 -1
- package/dist/components/image-viewer/image-viewer.js +4 -4
- package/dist/components/image-viewer/image-viewer.js.map +1 -1
- package/dist/components/json-viewer/json-viewer.d.ts +60 -1
- package/dist/components/json-viewer/json-viewer.d.ts.map +1 -1
- package/dist/components/json-viewer/json-viewer.js +66 -4
- package/dist/components/json-viewer/json-viewer.js.map +1 -1
- package/dist/components/json-viewer/use-json-viewer.d.ts +4 -2
- package/dist/components/json-viewer/use-json-viewer.d.ts.map +1 -1
- package/dist/components/json-viewer/use-json-viewer.js +3 -2
- package/dist/components/json-viewer/use-json-viewer.js.map +1 -1
- package/dist/components/marquee/marquee.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
- package/dist/components/reasoning/reasoning.d.ts +1 -1
- package/dist/components/sortable/sortable.d.ts +1 -1
- package/dist/components/tour/tour.d.ts +1 -1
- package/dist/components/tree/tree.d.ts +1 -1
- package/dist/components/tree-select/tree-select.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/package.js +1 -1
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# @xihan-ui/vue
|
|
2
2
|
|
|
3
|
+
## 4.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 240a143: JsonViewer 原文档按类别着色,与树档同一套颜色:原文切成新部件 `token`(`data-kind` 为 `key` / `string` / `number` / `boolean` / `null` / `punctuation`),键名、四种标量与标点取树档同一组覆盖槽(`--xh-json-viewer-key-fg`、`-string-fg`、`-number-fg`、`-boolean-fg`、`-null-fg`、`-punctuation-fg`)与语法令牌,键名同字重;相邻标点并成一段,空白按纯文本铺。原文解析不了(不是 JSON,如一段 User-Agent)时整段不着色,不按半截猜出来的类别上色。headless API 新增 `textSegments`(只在原文档切分,树档为空)与 `getTokenProps()`,并导出切段函数 `tokenizeJsonText`;Web Components 元素原文没变时不重铺,框选着的文字不会被无关的重绘冲掉。皮肤涨在六条着色规则上。
|
|
8
|
+
- 603001b: JsonViewer 新增内建工具条,按需打开:`tools` 不给即没有工具条(行为与此前一致);`true` 铺出全部工具;数组只铺列出的几项(`expand` / `wrap` / `copy` / `view`),数组里有未知的工具名直接抛错。工具条是根的第一个孩子(新部件 `toolbar`,`role=group` 带名字),钮按组件定的次序排在条的末端:展开 / 收起全部是一颗切换钮(`expand-trigger`),只在树档出现,还有收着的分支时按下展开全部、已经全部展开时按下收回顶层,名字与字形随这一下要做的事变(`data-state` 为 `open` 即已全部展开),只有根一层分支时禁用;自动换行开关(`wrap-trigger`,`aria-pressed`)只在原文档出现;复制钮(`copy-trigger`)与树 / 原文切换钮(`view-trigger`,名字与字形取要切去的那一档、带 `data-view`)钉在末端、切形态时不挪位置;两颗切换钮名字随动作走,不报 `aria-pressed`。钮是 Action Control icon 档 ghost 面,比视图低一档、最低 sm,换行开关开着时取品牌淡底选中面。复制写入的是原文档那一份,成功后钮换成对钩、前景取成功色并停 3 秒,播报区(新部件 `status`,视觉隐藏的 polite 实时区)念出回执;写入失败回到常态并通知 `onCopyError`。打印时工具条收起。
|
|
9
|
+
|
|
10
|
+
新增 `source`(值的原文,如后端下发的 JSON 文本):提供时原文档与复制钮改用它,能解析成 JSON 就只按两格缩进重排、数字与字符串等字面量一字不改,超出安全整数的 ID 不再因解析失真;headless 另导出重排函数 `formatJsonSource`。
|
|
11
|
+
|
|
12
|
+
`view` 改为受控 / 非受控一对:新增 `defaultView` 与 `onViewChange`(Vue `view-change` 与 `v-model:view`,Web Components `view-change` 事件与 `default-view` 属性),只给 `view` 的写法照旧生效。新增原文档自动换行 `wrap` / `defaultWrap` / `onWrapChange`(开启后原文部件投影 `data-wrap`,长行折到下一行)。headless API 新增 `tools`、`wrap`、`copyStatus`、`copied`、`announcement`、`allExpanded`、`setView()`、`setWrap()`、`expandAll()`、`collapseAll()`、`copy()` 与六个部件的 getter,并导出 `JSON_VIEWER_TOOLS` / `resolveJsonViewerTools`;剪贴板写入与停留时长的工具函数挪到共享模块,`writeToClipboard` / `resolveClipboardTimeout` / `CLIPBOARD_TIMEOUT` 的导出名不变。语言包的 json-viewer 桶新增 `toolbar`、`expandAll`、`collapseAll`、`wrap`、`copy`、`copied`、`showText`、`showTree` 八条文案。Vue 的 `useJsonViewer` 新增可选的第三个参数接工具条的三路通知。
|
|
13
|
+
|
|
14
|
+
图标集新增 `list-tree`(`ListTreeIcon`,一条根线带两条缩进的子线)。新增字形令牌 `--xh-glyph-mark-copy`、`--xh-glyph-mark-expand-all`、`--xh-glyph-mark-collapse-all`、`--xh-glyph-mark-wrap`、`--xh-glyph-mark-source`、`--xh-glyph-mark-tree`;新增公开槽 `--xh-json-viewer-toolbar-gap` / `-toolbar-mb`、`--xh-json-viewer-tool-icon-size`、`--xh-json-viewer-tool-fg`、`--xh-json-viewer-tool-fg-copied`。
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- Updated dependencies [5fcfdbe]
|
|
19
|
+
- Updated dependencies [2a0c591]
|
|
20
|
+
- Updated dependencies [240a143]
|
|
21
|
+
- Updated dependencies [603001b]
|
|
22
|
+
- Updated dependencies [eb7a29b]
|
|
23
|
+
- Updated dependencies [111b99c]
|
|
24
|
+
- @xihan-ui/viz@4.2.0
|
|
25
|
+
- @xihan-ui/headless@4.2.0
|
|
26
|
+
- @xihan-ui/core@4.2.0
|
|
27
|
+
- @xihan-ui/motion@4.2.0
|
|
28
|
+
- @xihan-ui/position@4.2.0
|
|
29
|
+
- @xihan-ui/pointer@4.2.0
|
|
30
|
+
|
|
31
|
+
## 4.1.0
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- e3bdc1f: 看片工具条的复原钮不写内容时改由皮肤画图标,与其余六颗变换钮一致:此前 Vue / React 在钮里塞「1:1」文字,工具条上只有它是字。图标集新增 `undo`(U 形回转箭头,与旋转的整圈箭头区分开),令牌新增 `--xh-glyph-mark-undo`;可及名仍取语言包里的「复原」,高对比档与其余工具钮同一条系统色补救。Web Components 由作者写空的 `reset-trigger` 按钮即可。
|
|
36
|
+
- @xihan-ui/core@4.1.0
|
|
37
|
+
- @xihan-ui/motion@4.1.0
|
|
38
|
+
- @xihan-ui/headless@4.1.0
|
|
39
|
+
- @xihan-ui/position@4.1.0
|
|
40
|
+
- @xihan-ui/pointer@4.1.0
|
|
41
|
+
- @xihan-ui/viz@4.1.0
|
|
42
|
+
|
|
3
43
|
## 4.0.1
|
|
4
44
|
|
|
5
45
|
### Patch Changes
|
|
@@ -71,8 +71,8 @@ declare const XhBreadcrumbLink: import("vue").DefineComponent<import("vue").Extr
|
|
|
71
71
|
/** 借用作者的子节点(如路由链接)作为链接,不再渲染自己的 `<a>`;子节点须恰好一个。 */
|
|
72
72
|
asChild: BooleanConstructor;
|
|
73
73
|
}>> & Readonly<{}>, {
|
|
74
|
-
asChild: boolean;
|
|
75
74
|
current: boolean;
|
|
75
|
+
asChild: boolean;
|
|
76
76
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
77
77
|
/** 链接中的图标位,与文字并排;纯装饰 */
|
|
78
78
|
declare const XhBreadcrumbLinkIcon: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -131,11 +131,11 @@ declare const XhCodeViewRoot: import("vue").DefineComponent<import("vue").Extrac
|
|
|
131
131
|
"onUpdate:folded"?: ((_folded: number[]) => any) | undefined;
|
|
132
132
|
}>, {
|
|
133
133
|
code: string;
|
|
134
|
-
complete: boolean;
|
|
135
134
|
clamped: boolean;
|
|
136
135
|
wrap: boolean;
|
|
137
136
|
lineNumbers: boolean;
|
|
138
137
|
blockFolding: boolean;
|
|
138
|
+
complete: boolean;
|
|
139
139
|
highlightWhileStreaming: boolean;
|
|
140
140
|
}, SlotsType<{
|
|
141
141
|
default?: (props: CodeViewRootSlotProps) => VNode[];
|
|
@@ -149,13 +149,13 @@ const XhImageViewerToolbar = defineComponent({
|
|
|
149
149
|
return () => h("div", ctx.api.value.getToolbarProps(), slots.default?.());
|
|
150
150
|
}
|
|
151
151
|
});
|
|
152
|
-
/** 工具条按钮共用的组件工厂:未写插槽内容时留空,皮肤据 :empty
|
|
153
|
-
function toolTrigger(name, getProps
|
|
152
|
+
/** 工具条按钮共用的组件工厂:未写插槽内容时留空,皮肤据 :empty 绘制兜底图标。 */
|
|
153
|
+
function toolTrigger(name, getProps) {
|
|
154
154
|
return defineComponent({
|
|
155
155
|
name,
|
|
156
156
|
setup(_, { slots }) {
|
|
157
157
|
const ctx = useImageViewerContext();
|
|
158
|
-
return () => h("button", getProps(ctx.api.value), slots.default
|
|
158
|
+
return () => h("button", getProps(ctx.api.value), slots.default?.());
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
}
|
|
@@ -165,7 +165,7 @@ const XhImageViewerRotateLeftTrigger = toolTrigger("XhImageViewerRotateLeftTrigg
|
|
|
165
165
|
const XhImageViewerRotateRightTrigger = toolTrigger("XhImageViewerRotateRightTrigger", (api) => api.getRotateRightTriggerProps());
|
|
166
166
|
const XhImageViewerFlipHorizontalTrigger = toolTrigger("XhImageViewerFlipHorizontalTrigger", (api) => api.getFlipHorizontalTriggerProps());
|
|
167
167
|
const XhImageViewerFlipVerticalTrigger = toolTrigger("XhImageViewerFlipVerticalTrigger", (api) => api.getFlipVerticalTriggerProps());
|
|
168
|
-
const XhImageViewerResetTrigger = toolTrigger("XhImageViewerResetTrigger", (api) => api.getResetTriggerProps()
|
|
168
|
+
const XhImageViewerResetTrigger = toolTrigger("XhImageViewerResetTrigger", (api) => api.getResetTriggerProps());
|
|
169
169
|
const XhImageViewerPrevTrigger = toolTrigger("XhImageViewerPrevTrigger", (api) => api.getPrevTriggerProps());
|
|
170
170
|
const XhImageViewerNextTrigger = toolTrigger("XhImageViewerNextTrigger", (api) => api.getNextTriggerProps());
|
|
171
171
|
const XhImageViewerCloseTrigger = toolTrigger("XhImageViewerCloseTrigger", (api) => api.getCloseTriggerProps());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image-viewer.js","names":[],"sources":["../../../src/components/image-viewer/image-viewer.ts"],"sourcesContent":["/*\n * Copyright (c) 2021-Present XiHanFun and contributors.\n * Licensed under the MIT License. See LICENSE in the project root for license information.\n */\n\n// 提供 image viewer 相关实现。\n\nimport type { OverlayBackdropVariant, Size } from '@xihan-ui/core'\nimport type { imageViewerCounterText as counterTextFn, ImageViewerApi, ImageViewerItem, ImageViewerSchema } from '@xihan-ui/headless'\nimport type { PropType, SlotsType, VNode } from 'vue'\nimport type { PayloadOf } from '../../runtime/payload'\nimport { imageViewerCounterText } from '@xihan-ui/headless'\nimport { defineComponent, h, mergeProps } from 'vue'\nimport { withXhConfig } from '../../config/config'\nimport { mergeIntoChild } from '../../runtime/as-child'\nimport { mergePartProps } from '../../runtime/merge-props'\nimport { XhPortal } from '../../runtime/portal'\nimport { provideImageViewer, useImageViewerContext } from './context'\nimport { useImageViewer } from './use-image-viewer'\n\ntype ImageViewerProps = ImageViewerSchema['props']\n\n/** 默认插槽的载荷:当前图与下标、变换与可翻页状态,以及翻页、缩放、旋转、翻转、归零等命令。 */\nexport type ImageViewerRootSlotProps = Pick<\n ImageViewerApi,\n | 'open'\n | 'index'\n | 'count'\n | 'currentItem'\n | 'transform'\n | 'imageStatus'\n | 'canPrev'\n | 'canNext'\n | 'setOpen'\n | 'setIndex'\n | 'next'\n | 'prev'\n | 'zoomIn'\n | 'zoomOut'\n | 'setScale'\n | 'rotateLeft'\n | 'rotateRight'\n | 'flipHorizontal'\n | 'flipVertical'\n | 'reset'\n>\n\nexport const XhImageViewerRoot = defineComponent({\n name: 'XhImageViewerRoot',\n // 缺省值由 connect 与机器给出;普通类型省略 default,Boolean 显式保留 undefined\n props: {\n collection: { type: Array as PropType<ImageViewerItem[]> },\n open: { type: Boolean, default: undefined },\n defaultOpen: Boolean,\n index: { type: Number },\n defaultIndex: { type: Number },\n loop: { type: Boolean, default: undefined },\n zoomStep: { type: Number },\n minScale: { type: Number },\n maxScale: { type: Number },\n closeOnEscape: { type: Boolean, default: undefined },\n closeOnInteractOutside: { type: Boolean, default: undefined },\n restoreFocus: { type: Boolean, default: undefined },\n variant: { type: String as PropType<OverlayBackdropVariant> },\n size: { type: String as PropType<Size> },\n translations: { type: Object as PropType<ImageViewerProps['translations']> },\n },\n // *-change 携带 details 对象,update:* 携带裸值,支持 v-model:open 与 v-model:index\n emits: {\n 'open-change': (_details: PayloadOf<ImageViewerProps, 'onOpenChange'>) => true,\n 'update:open': (_open: PayloadOf<ImageViewerProps, 'onOpenChange'>['open']) => true,\n 'index-change': (_details: PayloadOf<ImageViewerProps, 'onIndexChange'>) => true,\n 'update:index': (_index: PayloadOf<ImageViewerProps, 'onIndexChange'>['index']) => true,\n },\n slots: Object as SlotsType<{\n default?: (props: ImageViewerRootSlotProps) => VNode[]\n }>,\n setup(props, { slots, emit }) {\n const ctx = useImageViewer(withXhConfig('image-viewer', props) as ImageViewerProps, {\n onOpenChange: (details) => {\n emit('open-change', details)\n emit('update:open', details.open)\n },\n onIndexChange: (details) => {\n emit('index-change', details)\n emit('update:index', details.index)\n },\n })\n provideImageViewer(ctx)\n // 经插槽暴露状态与命令,供浮层外的按钮(如缩略图)使用\n return () => slots.default?.({\n open: ctx.api.value.open,\n index: ctx.api.value.index,\n count: ctx.api.value.count,\n currentItem: ctx.api.value.currentItem,\n transform: ctx.api.value.transform,\n imageStatus: ctx.api.value.imageStatus,\n canPrev: ctx.api.value.canPrev,\n canNext: ctx.api.value.canNext,\n setOpen: ctx.api.value.setOpen,\n setIndex: ctx.api.value.setIndex,\n next: ctx.api.value.next,\n prev: ctx.api.value.prev,\n zoomIn: ctx.api.value.zoomIn,\n zoomOut: ctx.api.value.zoomOut,\n setScale: ctx.api.value.setScale,\n rotateLeft: ctx.api.value.rotateLeft,\n rotateRight: ctx.api.value.rotateRight,\n flipHorizontal: ctx.api.value.flipHorizontal,\n flipVertical: ctx.api.value.flipVertical,\n reset: ctx.api.value.reset,\n })\n },\n})\n\nexport const XhImageViewerTrigger = defineComponent({\n name: 'XhImageViewerTrigger',\n // 直通属性自己合:Vue 默认把作者的处理器排在部件的后面,这里改成作者先跑\n inheritAttrs: false,\n props: {\n /** 借用作者的子节点作为触发器,不再渲染自己的包裹元素;子节点须恰好一个。 */\n asChild: Boolean,\n },\n setup(props, { slots, attrs }) {\n const ctx = useImageViewerContext()\n return () => {\n const part = mergePartProps(ctx.api.value.getTriggerProps() as Record<string, unknown>, attrs)\n const children = slots.default?.()\n // asChild:把触发器属性合到作者的节点上,不再自己渲染包裹元素\n if (props.asChild) {\n const merged = mergeIntoChild(children, part, 'image-viewer')\n if (merged)\n return merged\n }\n return h('button', part, children)\n }\n },\n})\n\nexport const XhImageViewerContent = defineComponent({\n name: 'XhImageViewerContent',\n props: {\n /** 本实例的 Portal 容器;优先于应用级配置。 */\n container: { type: Object as PropType<Element> },\n },\n // 根是 Teleport,Vue 不会把直通属性合上去,作者写的 class 与 style 得自己接住落到 content 上\n inheritAttrs: false,\n setup(props, { slots, attrs }) {\n const ctx = useImageViewerContext()\n return () => {\n if (!ctx.rendered.value)\n return null\n const api = ctx.api.value\n return h(XhPortal, { to: props.container ?? ctx.portalTarget.value }, () => [\n h('div', {\n ...api.getBackdropProps() as Record<string, unknown>,\n ref: (el: unknown) => {\n ctx.backdropRef.value = el as HTMLElement\n },\n }),\n h('div', api.getPositionerProps() as Record<string, unknown>, [\n h('div', {\n ...mergeProps(api.getContentProps() as Record<string, unknown>, attrs),\n ref: (el: unknown) => {\n ctx.contentRef.value = el as HTMLElement\n },\n }, slots.default?.()),\n ]),\n ])\n }\n },\n})\n\nexport const XhImageViewerViewport = defineComponent({\n name: 'XhImageViewerViewport',\n setup(_, { slots }) {\n const ctx = useImageViewerContext()\n return () => h('div', ctx.api.value.getViewportProps() as Record<string, unknown>, slots.default?.())\n },\n})\n\nexport const XhImageViewerImage = defineComponent({\n name: 'XhImageViewerImage',\n setup() {\n const ctx = useImageViewerContext()\n return () => h('img', ctx.api.value.getImageProps() as Record<string, unknown>)\n },\n})\n\nexport const XhImageViewerToolbar = defineComponent({\n name: 'XhImageViewerToolbar',\n setup(_, { slots }) {\n const ctx = useImageViewerContext()\n return () => h('div', ctx.api.value.getToolbarProps() as Record<string, unknown>, slots.default?.())\n },\n})\n\n/** 工具条按钮共用的组件工厂:未写插槽内容时留空,皮肤据 :empty 绘制兜底图标;提供文字的(1:1)填入文字。 */\nfunction toolTrigger(name: string, getProps: (api: ReturnType<typeof useImageViewerContext>['api']['value']) => Record<string, unknown>, fallback?: string): ReturnType<typeof defineComponent> {\n return defineComponent({\n name,\n setup(_, { slots }) {\n const ctx = useImageViewerContext()\n return () => h('button', getProps(ctx.api.value) as Record<string, unknown>, slots.default ? slots.default() : fallback)\n },\n })\n}\n\nexport const XhImageViewerZoomInTrigger = toolTrigger('XhImageViewerZoomInTrigger', api => api.getZoomInTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerZoomOutTrigger = toolTrigger('XhImageViewerZoomOutTrigger', api => api.getZoomOutTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerRotateLeftTrigger = toolTrigger('XhImageViewerRotateLeftTrigger', api => api.getRotateLeftTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerRotateRightTrigger = toolTrigger('XhImageViewerRotateRightTrigger', api => api.getRotateRightTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerFlipHorizontalTrigger = toolTrigger('XhImageViewerFlipHorizontalTrigger', api => api.getFlipHorizontalTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerFlipVerticalTrigger = toolTrigger('XhImageViewerFlipVerticalTrigger', api => api.getFlipVerticalTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerResetTrigger = toolTrigger('XhImageViewerResetTrigger', api => api.getResetTriggerProps() as Record<string, unknown>, '1:1')\nexport const XhImageViewerPrevTrigger = toolTrigger('XhImageViewerPrevTrigger', api => api.getPrevTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerNextTrigger = toolTrigger('XhImageViewerNextTrigger', api => api.getNextTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerCloseTrigger = toolTrigger('XhImageViewerCloseTrigger', api => api.getCloseTriggerProps() as Record<string, unknown>)\n\nexport const XhImageViewerCounter = defineComponent({\n name: 'XhImageViewerCounter',\n setup(_, { slots }) {\n const ctx = useImageViewerContext()\n return () => {\n const api = ctx.api.value\n // 无插槽内容时用「第 n / 共 m」的缺省文本兜底\n const fallback: ReturnType<typeof counterTextFn> = imageViewerCounterText(\n ctx.service.prop('translations'),\n api.index,\n api.count,\n )\n return h('div', api.getCounterProps() as Record<string, unknown>, slots.default ? slots.default() : fallback)\n }\n },\n})\n"],"mappings":";;;;;;;;;AA+CA,MAAa,oBAAoB,gBAAgB;CAC/C,MAAM;CAEN,OAAO;EACL,YAAY,EAAE,MAAM,MAAqC;EACzD,MAAM;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;EAC1C,aAAa;EACb,OAAO,EAAE,MAAM,OAAO;EACtB,cAAc,EAAE,MAAM,OAAO;EAC7B,MAAM;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;EAC1C,UAAU,EAAE,MAAM,OAAO;EACzB,UAAU,EAAE,MAAM,OAAO;EACzB,UAAU,EAAE,MAAM,OAAO;EACzB,eAAe;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;EACnD,wBAAwB;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;EAC5D,cAAc;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;EAClD,SAAS,EAAE,MAAM,OAA2C;EAC5D,MAAM,EAAE,MAAM,OAAyB;EACvC,cAAc,EAAE,MAAM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AA6C,uBACjD,IAAI,QAAQ,KAAK,cAAc,GAC/B,IAAI,OACJ,IAAI,KACN;GACA,OAAO,EAAE,OAAO,IAAI,gBAAgB,GAA8B,MAAM,UAAU,MAAM,QAAQ,IAAI,QAAQ;EAC9G;CACF;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"image-viewer.js","names":[],"sources":["../../../src/components/image-viewer/image-viewer.ts"],"sourcesContent":["/*\n * Copyright (c) 2021-Present XiHanFun and contributors.\n * Licensed under the MIT License. See LICENSE in the project root for license information.\n */\n\n// 提供 image viewer 相关实现。\n\nimport type { OverlayBackdropVariant, Size } from '@xihan-ui/core'\nimport type { imageViewerCounterText as counterTextFn, ImageViewerApi, ImageViewerItem, ImageViewerSchema } from '@xihan-ui/headless'\nimport type { PropType, SlotsType, VNode } from 'vue'\nimport type { PayloadOf } from '../../runtime/payload'\nimport { imageViewerCounterText } from '@xihan-ui/headless'\nimport { defineComponent, h, mergeProps } from 'vue'\nimport { withXhConfig } from '../../config/config'\nimport { mergeIntoChild } from '../../runtime/as-child'\nimport { mergePartProps } from '../../runtime/merge-props'\nimport { XhPortal } from '../../runtime/portal'\nimport { provideImageViewer, useImageViewerContext } from './context'\nimport { useImageViewer } from './use-image-viewer'\n\ntype ImageViewerProps = ImageViewerSchema['props']\n\n/** 默认插槽的载荷:当前图与下标、变换与可翻页状态,以及翻页、缩放、旋转、翻转、归零等命令。 */\nexport type ImageViewerRootSlotProps = Pick<\n ImageViewerApi,\n | 'open'\n | 'index'\n | 'count'\n | 'currentItem'\n | 'transform'\n | 'imageStatus'\n | 'canPrev'\n | 'canNext'\n | 'setOpen'\n | 'setIndex'\n | 'next'\n | 'prev'\n | 'zoomIn'\n | 'zoomOut'\n | 'setScale'\n | 'rotateLeft'\n | 'rotateRight'\n | 'flipHorizontal'\n | 'flipVertical'\n | 'reset'\n>\n\nexport const XhImageViewerRoot = defineComponent({\n name: 'XhImageViewerRoot',\n // 缺省值由 connect 与机器给出;普通类型省略 default,Boolean 显式保留 undefined\n props: {\n collection: { type: Array as PropType<ImageViewerItem[]> },\n open: { type: Boolean, default: undefined },\n defaultOpen: Boolean,\n index: { type: Number },\n defaultIndex: { type: Number },\n loop: { type: Boolean, default: undefined },\n zoomStep: { type: Number },\n minScale: { type: Number },\n maxScale: { type: Number },\n closeOnEscape: { type: Boolean, default: undefined },\n closeOnInteractOutside: { type: Boolean, default: undefined },\n restoreFocus: { type: Boolean, default: undefined },\n variant: { type: String as PropType<OverlayBackdropVariant> },\n size: { type: String as PropType<Size> },\n translations: { type: Object as PropType<ImageViewerProps['translations']> },\n },\n // *-change 携带 details 对象,update:* 携带裸值,支持 v-model:open 与 v-model:index\n emits: {\n 'open-change': (_details: PayloadOf<ImageViewerProps, 'onOpenChange'>) => true,\n 'update:open': (_open: PayloadOf<ImageViewerProps, 'onOpenChange'>['open']) => true,\n 'index-change': (_details: PayloadOf<ImageViewerProps, 'onIndexChange'>) => true,\n 'update:index': (_index: PayloadOf<ImageViewerProps, 'onIndexChange'>['index']) => true,\n },\n slots: Object as SlotsType<{\n default?: (props: ImageViewerRootSlotProps) => VNode[]\n }>,\n setup(props, { slots, emit }) {\n const ctx = useImageViewer(withXhConfig('image-viewer', props) as ImageViewerProps, {\n onOpenChange: (details) => {\n emit('open-change', details)\n emit('update:open', details.open)\n },\n onIndexChange: (details) => {\n emit('index-change', details)\n emit('update:index', details.index)\n },\n })\n provideImageViewer(ctx)\n // 经插槽暴露状态与命令,供浮层外的按钮(如缩略图)使用\n return () => slots.default?.({\n open: ctx.api.value.open,\n index: ctx.api.value.index,\n count: ctx.api.value.count,\n currentItem: ctx.api.value.currentItem,\n transform: ctx.api.value.transform,\n imageStatus: ctx.api.value.imageStatus,\n canPrev: ctx.api.value.canPrev,\n canNext: ctx.api.value.canNext,\n setOpen: ctx.api.value.setOpen,\n setIndex: ctx.api.value.setIndex,\n next: ctx.api.value.next,\n prev: ctx.api.value.prev,\n zoomIn: ctx.api.value.zoomIn,\n zoomOut: ctx.api.value.zoomOut,\n setScale: ctx.api.value.setScale,\n rotateLeft: ctx.api.value.rotateLeft,\n rotateRight: ctx.api.value.rotateRight,\n flipHorizontal: ctx.api.value.flipHorizontal,\n flipVertical: ctx.api.value.flipVertical,\n reset: ctx.api.value.reset,\n })\n },\n})\n\nexport const XhImageViewerTrigger = defineComponent({\n name: 'XhImageViewerTrigger',\n // 直通属性自己合:Vue 默认把作者的处理器排在部件的后面,这里改成作者先跑\n inheritAttrs: false,\n props: {\n /** 借用作者的子节点作为触发器,不再渲染自己的包裹元素;子节点须恰好一个。 */\n asChild: Boolean,\n },\n setup(props, { slots, attrs }) {\n const ctx = useImageViewerContext()\n return () => {\n const part = mergePartProps(ctx.api.value.getTriggerProps() as Record<string, unknown>, attrs)\n const children = slots.default?.()\n // asChild:把触发器属性合到作者的节点上,不再自己渲染包裹元素\n if (props.asChild) {\n const merged = mergeIntoChild(children, part, 'image-viewer')\n if (merged)\n return merged\n }\n return h('button', part, children)\n }\n },\n})\n\nexport const XhImageViewerContent = defineComponent({\n name: 'XhImageViewerContent',\n props: {\n /** 本实例的 Portal 容器;优先于应用级配置。 */\n container: { type: Object as PropType<Element> },\n },\n // 根是 Teleport,Vue 不会把直通属性合上去,作者写的 class 与 style 得自己接住落到 content 上\n inheritAttrs: false,\n setup(props, { slots, attrs }) {\n const ctx = useImageViewerContext()\n return () => {\n if (!ctx.rendered.value)\n return null\n const api = ctx.api.value\n return h(XhPortal, { to: props.container ?? ctx.portalTarget.value }, () => [\n h('div', {\n ...api.getBackdropProps() as Record<string, unknown>,\n ref: (el: unknown) => {\n ctx.backdropRef.value = el as HTMLElement\n },\n }),\n h('div', api.getPositionerProps() as Record<string, unknown>, [\n h('div', {\n ...mergeProps(api.getContentProps() as Record<string, unknown>, attrs),\n ref: (el: unknown) => {\n ctx.contentRef.value = el as HTMLElement\n },\n }, slots.default?.()),\n ]),\n ])\n }\n },\n})\n\nexport const XhImageViewerViewport = defineComponent({\n name: 'XhImageViewerViewport',\n setup(_, { slots }) {\n const ctx = useImageViewerContext()\n return () => h('div', ctx.api.value.getViewportProps() as Record<string, unknown>, slots.default?.())\n },\n})\n\nexport const XhImageViewerImage = defineComponent({\n name: 'XhImageViewerImage',\n setup() {\n const ctx = useImageViewerContext()\n return () => h('img', ctx.api.value.getImageProps() as Record<string, unknown>)\n },\n})\n\nexport const XhImageViewerToolbar = defineComponent({\n name: 'XhImageViewerToolbar',\n setup(_, { slots }) {\n const ctx = useImageViewerContext()\n return () => h('div', ctx.api.value.getToolbarProps() as Record<string, unknown>, slots.default?.())\n },\n})\n\n/** 工具条按钮共用的组件工厂:未写插槽内容时留空,皮肤据 :empty 绘制兜底图标。 */\nfunction toolTrigger(name: string, getProps: (api: ReturnType<typeof useImageViewerContext>['api']['value']) => Record<string, unknown>): ReturnType<typeof defineComponent> {\n return defineComponent({\n name,\n setup(_, { slots }) {\n const ctx = useImageViewerContext()\n return () => h('button', getProps(ctx.api.value) as Record<string, unknown>, slots.default?.())\n },\n })\n}\n\nexport const XhImageViewerZoomInTrigger = toolTrigger('XhImageViewerZoomInTrigger', api => api.getZoomInTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerZoomOutTrigger = toolTrigger('XhImageViewerZoomOutTrigger', api => api.getZoomOutTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerRotateLeftTrigger = toolTrigger('XhImageViewerRotateLeftTrigger', api => api.getRotateLeftTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerRotateRightTrigger = toolTrigger('XhImageViewerRotateRightTrigger', api => api.getRotateRightTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerFlipHorizontalTrigger = toolTrigger('XhImageViewerFlipHorizontalTrigger', api => api.getFlipHorizontalTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerFlipVerticalTrigger = toolTrigger('XhImageViewerFlipVerticalTrigger', api => api.getFlipVerticalTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerResetTrigger = toolTrigger('XhImageViewerResetTrigger', api => api.getResetTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerPrevTrigger = toolTrigger('XhImageViewerPrevTrigger', api => api.getPrevTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerNextTrigger = toolTrigger('XhImageViewerNextTrigger', api => api.getNextTriggerProps() as Record<string, unknown>)\nexport const XhImageViewerCloseTrigger = toolTrigger('XhImageViewerCloseTrigger', api => api.getCloseTriggerProps() as Record<string, unknown>)\n\nexport const XhImageViewerCounter = defineComponent({\n name: 'XhImageViewerCounter',\n setup(_, { slots }) {\n const ctx = useImageViewerContext()\n return () => {\n const api = ctx.api.value\n // 无插槽内容时用「第 n / 共 m」的缺省文本兜底\n const fallback: ReturnType<typeof counterTextFn> = imageViewerCounterText(\n ctx.service.prop('translations'),\n api.index,\n api.count,\n )\n return h('div', api.getCounterProps() as Record<string, unknown>, slots.default ? slots.default() : fallback)\n }\n },\n})\n"],"mappings":";;;;;;;;;AA+CA,MAAa,oBAAoB,gBAAgB;CAC/C,MAAM;CAEN,OAAO;EACL,YAAY,EAAE,MAAM,MAAqC;EACzD,MAAM;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;EAC1C,aAAa;EACb,OAAO,EAAE,MAAM,OAAO;EACtB,cAAc,EAAE,MAAM,OAAO;EAC7B,MAAM;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;EAC1C,UAAU,EAAE,MAAM,OAAO;EACzB,UAAU,EAAE,MAAM,OAAO;EACzB,UAAU,EAAE,MAAM,OAAO;EACzB,eAAe;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;EACnD,wBAAwB;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;EAC5D,cAAc;GAAE,MAAM;GAAS,SAAS,KAAA;EAAU;EAClD,SAAS,EAAE,MAAM,OAA2C;EAC5D,MAAM,EAAE,MAAM,OAAyB;EACvC,cAAc,EAAE,MAAM,OAAqD;CAC7E;CAEA,OAAO;EACL,gBAAgB,aAA0D;EAC1E,gBAAgB,UAA+D;EAC/E,iBAAiB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UAAU,MAAM,QAAQ,IAAI,QAAQ;EAC9G;CACF;AACF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PayloadOf } from "../../runtime/payload.js";
|
|
2
2
|
import { PropType, SlotsType, VNode } from "vue";
|
|
3
3
|
import { ControlVariant, Direction, Size } from "@xihan-ui/core";
|
|
4
|
-
import { JsonViewerApi, JsonViewerSchema, JsonViewerTranslations, JsonViewerView } from "@xihan-ui/headless";
|
|
4
|
+
import { JsonViewerApi, JsonViewerSchema, JsonViewerTool, JsonViewerTranslations, JsonViewerView } from "@xihan-ui/headless";
|
|
5
5
|
//#region src/components/json-viewer/json-viewer.d.ts
|
|
6
6
|
type JsonViewerProps = JsonViewerSchema['props'];
|
|
7
7
|
/**
|
|
@@ -17,6 +17,29 @@ declare const XhJsonViewerRoot: import("vue").DefineComponent<import("vue").Extr
|
|
|
17
17
|
view: {
|
|
18
18
|
type: PropType<JsonViewerView>;
|
|
19
19
|
};
|
|
20
|
+
/** 非受控的初始形态,默认 tree。 */
|
|
21
|
+
defaultView: {
|
|
22
|
+
type: PropType<JsonViewerView>;
|
|
23
|
+
};
|
|
24
|
+
/** 值的原文:提供时原文档与复制钮取它,只重排缩进、字面量一字不改。 */
|
|
25
|
+
source: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
/** 原文档是否自动换行;提供即受控。 */
|
|
29
|
+
wrap: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
/** 非受控的初始换行,默认 false。 */
|
|
34
|
+
defaultWrap: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
/** 内建工具条:不提供即没有;true 铺出全部工具;数组只铺列出的几项(expand / wrap / copy / view)。 */
|
|
39
|
+
tools: {
|
|
40
|
+
type: PropType<boolean | JsonViewerTool[]>;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
20
43
|
/** 外框形态:outline 带描边与底色(默认),subtle 淡底无描边,ghost 去掉描边与底色只保留内容。 */
|
|
21
44
|
variant: {
|
|
22
45
|
type: PropType<ControlVariant>;
|
|
@@ -62,6 +85,11 @@ declare const XhJsonViewerRoot: import("vue").DefineComponent<import("vue").Extr
|
|
|
62
85
|
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
63
86
|
'expanded-value-change': (_details: PayloadOf<JsonViewerProps, "onExpandedValueChange">) => true;
|
|
64
87
|
'update:expandedValue': (_value: PayloadOf<JsonViewerProps, "onExpandedValueChange">["value"]) => true;
|
|
88
|
+
'view-change': (_details: PayloadOf<JsonViewerProps, "onViewChange">) => true;
|
|
89
|
+
'update:view': (_view: PayloadOf<JsonViewerProps, "onViewChange">["view"]) => true;
|
|
90
|
+
'wrap-change': (_details: PayloadOf<JsonViewerProps, "onWrapChange">) => true;
|
|
91
|
+
'update:wrap': (_wrap: PayloadOf<JsonViewerProps, "onWrapChange">["wrap"]) => true;
|
|
92
|
+
'copy-error': (_details: PayloadOf<JsonViewerProps, "onCopyError">) => true;
|
|
65
93
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
94
|
value: {
|
|
67
95
|
type: PropType<unknown>;
|
|
@@ -70,6 +98,29 @@ declare const XhJsonViewerRoot: import("vue").DefineComponent<import("vue").Extr
|
|
|
70
98
|
view: {
|
|
71
99
|
type: PropType<JsonViewerView>;
|
|
72
100
|
};
|
|
101
|
+
/** 非受控的初始形态,默认 tree。 */
|
|
102
|
+
defaultView: {
|
|
103
|
+
type: PropType<JsonViewerView>;
|
|
104
|
+
};
|
|
105
|
+
/** 值的原文:提供时原文档与复制钮取它,只重排缩进、字面量一字不改。 */
|
|
106
|
+
source: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
};
|
|
109
|
+
/** 原文档是否自动换行;提供即受控。 */
|
|
110
|
+
wrap: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
114
|
+
/** 非受控的初始换行,默认 false。 */
|
|
115
|
+
defaultWrap: {
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
default: undefined;
|
|
118
|
+
};
|
|
119
|
+
/** 内建工具条:不提供即没有;true 铺出全部工具;数组只铺列出的几项(expand / wrap / copy / view)。 */
|
|
120
|
+
tools: {
|
|
121
|
+
type: PropType<boolean | JsonViewerTool[]>;
|
|
122
|
+
default: undefined;
|
|
123
|
+
};
|
|
73
124
|
/** 外框形态:outline 带描边与底色(默认),subtle 淡底无描边,ghost 去掉描边与底色只保留内容。 */
|
|
74
125
|
variant: {
|
|
75
126
|
type: PropType<ControlVariant>;
|
|
@@ -111,11 +162,19 @@ declare const XhJsonViewerRoot: import("vue").DefineComponent<import("vue").Extr
|
|
|
111
162
|
type: PropType<Partial<JsonViewerTranslations>>;
|
|
112
163
|
};
|
|
113
164
|
}>> & Readonly<{
|
|
165
|
+
"onCopy-error"?: ((_details: import("@xihan-ui/headless").JsonViewerCopyErrorDetails) => any) | undefined;
|
|
114
166
|
"onExpanded-value-change"?: ((_details: import("@xihan-ui/headless").JsonViewerExpandedValueChangeDetails) => any) | undefined;
|
|
115
167
|
"onUpdate:expandedValue"?: ((_value: string[]) => any) | undefined;
|
|
168
|
+
"onView-change"?: ((_details: import("@xihan-ui/headless").JsonViewerViewChangeDetails) => any) | undefined;
|
|
169
|
+
"onUpdate:view"?: ((_view: JsonViewerView) => any) | undefined;
|
|
170
|
+
"onWrap-change"?: ((_details: import("@xihan-ui/headless").JsonViewerWrapChangeDetails) => any) | undefined;
|
|
171
|
+
"onUpdate:wrap"?: ((_wrap: boolean) => any) | undefined;
|
|
116
172
|
}>, {
|
|
117
173
|
value: unknown;
|
|
118
174
|
loop: boolean;
|
|
175
|
+
wrap: boolean;
|
|
176
|
+
defaultWrap: boolean;
|
|
177
|
+
tools: boolean | JsonViewerTool[];
|
|
119
178
|
sortKeys: boolean;
|
|
120
179
|
}, SlotsType<{
|
|
121
180
|
empty?: () => VNode[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-viewer.d.ts","names":[],"sources":["../../../src/components/json-viewer/json-viewer.ts"],"mappings":";;;;;KAgBK,kBAAkB;;;;;KAMX,6BAA6B,KAAK;
|
|
1
|
+
{"version":3,"file":"json-viewer.d.ts","names":[],"sources":["../../../src/components/json-viewer/json-viewer.ts"],"mappings":";;;;;KAgBK,kBAAkB;;;;;KAMX,6BAA6B,KAAK;cAqFjC,gCAAgB,8BAAA;;IAKS,MAAA;IAAyC;;;IACnD,MAAA,SAAS;;;;IAEF,MAAA,SAAS;;;;;;;;;;;;;;;;;;IAQL,MAAA,mBAAmB;;;;;IAE3B,MAAA,SAAS;;;IACJ,MAAA;;;IACO,MAAA;;;;;;;;;;;;;;;;;;;;IAMhB,MAAA,SAAS;;;IACR,MAAA,SAAS;;;;;;;IAGD,MAAA,SAAS,QAAQ;;;;;EAYb,0BAAA,UAAA,UAAU;EACb,yBAAA,QAAA,UAAU;EACjB,gBAAA,UAAA,UAAU;EACb,gBAAA,OAAA,UAAU;EACP,gBAAA,UAAA,UAAU;EACb,gBAAA,OAAA,UAAU;EACR,eAAA,UAAA,UAAU;;;IA3CD,MAAA;IAAyC;;;IACnD,MAAA,SAAS;;;;IAEF,MAAA,SAAS;;;;;;;;;;;;;;;;;;IAQL,MAAA,mBAAmB;;;;;IAE3B,MAAA,SAAS;;;IACJ,MAAA;;;IACO,MAAA;;;;;;;;;;;;;;;;;;;;IAMhB,MAAA,SAAS;;;IACR,MAAA,SAAS;;;;;;;IAGD,MAAA,SAAS,QAAQ;;;;;;;;;;;;;;;;;;EAIzC,cAAM;;EAEJ,WAAC,OAAO,+BAA+B;kCAoEnD"}
|
|
@@ -7,6 +7,26 @@ import { groupJsonViewerNodesByParent } from "@xihan-ui/headless";
|
|
|
7
7
|
function renderSegments(api, segments) {
|
|
8
8
|
return segments.map((segment) => segment.matched ? h("mark", api.getMarkProps(), segment.text) : segment.text);
|
|
9
9
|
}
|
|
10
|
+
/** 原文按段铺:有类别的段包进 token 部件着色,空白与解析不了的原文是纯文本。 */
|
|
11
|
+
function renderTextSegments(api) {
|
|
12
|
+
return api.textSegments.map((segment) => segment.kind ? h("span", api.getTokenProps({ kind: segment.kind }), segment.text) : segment.text);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* 内建工具条:根的第一个孩子。钮里不写内容,字形由皮肤按部件画;
|
|
16
|
+
* 播报区跟着复制钮常驻,成功那一刻才有文字,读屏才念得出回执。
|
|
17
|
+
*/
|
|
18
|
+
function renderToolbar(api) {
|
|
19
|
+
if (!api.tools.length) return null;
|
|
20
|
+
const buttons = [];
|
|
21
|
+
if (api.tools.includes("expand")) buttons.push(h("button", api.getExpandTriggerProps()));
|
|
22
|
+
if (api.tools.includes("wrap")) buttons.push(h("button", api.getWrapTriggerProps()));
|
|
23
|
+
if (api.tools.includes("copy")) {
|
|
24
|
+
buttons.push(h("button", api.getCopyTriggerProps()));
|
|
25
|
+
buttons.push(h("span", api.getStatusProps(), api.announcement));
|
|
26
|
+
}
|
|
27
|
+
if (api.tools.includes("view")) buttons.push(h("button", api.getViewTriggerProps()));
|
|
28
|
+
return h("div", api.getToolbarProps(), buttons);
|
|
29
|
+
}
|
|
10
30
|
function renderRows(api, children, parent) {
|
|
11
31
|
return (children.get(parent) ?? []).map((node) => renderRow(api, children, node));
|
|
12
32
|
}
|
|
@@ -43,6 +63,25 @@ const XhJsonViewerRoot = defineComponent({
|
|
|
43
63
|
default: void 0
|
|
44
64
|
},
|
|
45
65
|
view: { type: String },
|
|
66
|
+
/** 非受控的初始形态,默认 tree。 */
|
|
67
|
+
defaultView: { type: String },
|
|
68
|
+
/** 值的原文:提供时原文档与复制钮取它,只重排缩进、字面量一字不改。 */
|
|
69
|
+
source: { type: String },
|
|
70
|
+
/** 原文档是否自动换行;提供即受控。 */
|
|
71
|
+
wrap: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: void 0
|
|
74
|
+
},
|
|
75
|
+
/** 非受控的初始换行,默认 false。 */
|
|
76
|
+
defaultWrap: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: void 0
|
|
79
|
+
},
|
|
80
|
+
/** 内建工具条:不提供即没有;true 铺出全部工具;数组只铺列出的几项(expand / wrap / copy / view)。 */
|
|
81
|
+
tools: {
|
|
82
|
+
type: [Boolean, Array],
|
|
83
|
+
default: void 0
|
|
84
|
+
},
|
|
46
85
|
/** 外框形态:outline 带描边与底色(默认),subtle 淡底无描边,ghost 去掉描边与底色只保留内容。 */
|
|
47
86
|
variant: { type: String },
|
|
48
87
|
expandedValue: { type: Array },
|
|
@@ -68,20 +107,43 @@ const XhJsonViewerRoot = defineComponent({
|
|
|
68
107
|
inheritAttrs: false,
|
|
69
108
|
emits: {
|
|
70
109
|
"expanded-value-change": (_details) => true,
|
|
71
|
-
"update:expandedValue": (_value) => true
|
|
110
|
+
"update:expandedValue": (_value) => true,
|
|
111
|
+
"view-change": (_details) => true,
|
|
112
|
+
"update:view": (_view) => true,
|
|
113
|
+
"wrap-change": (_details) => true,
|
|
114
|
+
"update:wrap": (_wrap) => true,
|
|
115
|
+
"copy-error": (_details) => true
|
|
72
116
|
},
|
|
73
117
|
setup(props, { emit, slots, attrs }) {
|
|
74
118
|
const notify = (details) => {
|
|
75
119
|
emit("expanded-value-change", details);
|
|
76
120
|
emit("update:expandedValue", details.value);
|
|
77
121
|
};
|
|
78
|
-
const ctx = useJsonViewer(withXhConfig("json-viewer", props), notify
|
|
122
|
+
const ctx = useJsonViewer(withXhConfig("json-viewer", props), notify, {
|
|
123
|
+
onViewChange: (details) => {
|
|
124
|
+
emit("view-change", details);
|
|
125
|
+
emit("update:view", details.view);
|
|
126
|
+
},
|
|
127
|
+
onWrapChange: (details) => {
|
|
128
|
+
emit("wrap-change", details);
|
|
129
|
+
emit("update:wrap", details.wrap);
|
|
130
|
+
},
|
|
131
|
+
onCopyError: (details) => emit("copy-error", details)
|
|
132
|
+
});
|
|
79
133
|
const renderEmpty = (api) => h("div", api.getEmptyProps(), slots.empty?.() ?? api.emptyText);
|
|
80
134
|
const renderRoot = (api) => {
|
|
81
135
|
const rootProps = mergeProps(api.getRootProps(), attrs);
|
|
82
|
-
if (api.view === "text") return h("div", rootProps, [
|
|
136
|
+
if (api.view === "text") return h("div", rootProps, [
|
|
137
|
+
renderToolbar(api),
|
|
138
|
+
h("pre", api.getTextProps(), renderTextSegments(api)),
|
|
139
|
+
renderEmpty(api)
|
|
140
|
+
]);
|
|
83
141
|
const children = groupJsonViewerNodesByParent(api.visibleNodes);
|
|
84
|
-
return h("div", rootProps, [
|
|
142
|
+
return h("div", rootProps, [
|
|
143
|
+
renderToolbar(api),
|
|
144
|
+
h("div", api.getTreeProps(), renderRows(api, children, null)),
|
|
145
|
+
renderEmpty(api)
|
|
146
|
+
]);
|
|
85
147
|
};
|
|
86
148
|
return () => {
|
|
87
149
|
const api = ctx.api.value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-viewer.js","names":[],"sources":["../../../src/components/json-viewer/json-viewer.ts"],"sourcesContent":["/*\n * Copyright (c) 2021-Present XiHanFun and contributors.\n * Licensed under the MIT License. See LICENSE in the project root for license information.\n */\n\n// 提供 json viewer 相关实现。\n\nimport type { ControlVariant, Direction, Size } from '@xihan-ui/core'\nimport type { HighlightSegment, JsonViewerApi, JsonViewerNode, JsonViewerSchema, JsonViewerTranslations, JsonViewerView } from '@xihan-ui/headless'\nimport type { PropType, SlotsType, VNode } from 'vue'\nimport type { PayloadOf } from '../../runtime/payload'\nimport { groupJsonViewerNodesByParent } from '@xihan-ui/headless'\nimport { defineComponent, Fragment, h, mergeProps } from 'vue'\nimport { withXhConfig } from '../../config/config'\nimport { useJsonViewer } from './use-json-viewer'\n\ntype JsonViewerProps = JsonViewerSchema['props']\n\n/**\n * 工具条插槽的载荷:搜索命中与在命中之间逐个走的两个动作。\n * 搜索框、上一条 / 下一条与计数由作者摆在这里,搜索词经 search 交给根。\n */\nexport type JsonViewerToolbarSlotProps = Pick<JsonViewerApi, 'searchMatches' | 'activeMatch' | 'nextMatch' | 'prevMatch'>\n\n/** 按片段铺文字:命中搜索词的那一段包进 mark 部件,其余原样是文本。 */\nfunction renderSegments(api: JsonViewerApi, segments: readonly HighlightSegment[]): Array<VNode | string> {\n return segments.map(segment => (segment.matched\n ? h('mark', api.getMarkProps() as Record<string, unknown>, segment.text)\n : segment.text))\n}\n\nfunction renderRows(\n api: JsonViewerApi,\n children: Map<string | null, JsonViewerNode[]>,\n parent: string | null,\n): VNode[] {\n return (children.get(parent) ?? []).map(node => renderRow(api, children, node))\n}\n\n/**\n * 一行:标量是 item(键名 + 值),对象与数组是 branch(控制行 + 子层)。\n * 没有键名的行(根行、截断占位)不渲染键名部件,避免多出一个空盒子。\n */\nfunction renderRow(\n api: JsonViewerApi,\n children: Map<string | null, JsonViewerNode[]>,\n node: JsonViewerNode,\n): VNode {\n const ref = { value: node.value }\n\n if (!node.branch) {\n const parts: VNode[] = []\n if (node.key != null)\n parts.push(h('span', api.getItemKeyProps(ref) as Record<string, unknown>, renderSegments(api, api.keySegments(node))))\n parts.push(h('span', api.getItemValueProps(ref) as Record<string, unknown>, renderSegments(api, api.valueSegments(node))))\n return h('div', { ...api.getItemProps(ref) as Record<string, unknown>, key: node.value }, parts)\n }\n\n const control: VNode[] = [\n h('span', api.getBranchTriggerProps(ref) as Record<string, unknown>, [\n h('span', api.getBranchIndicatorProps(ref) as Record<string, unknown>),\n ]),\n ]\n if (node.key != null)\n control.push(h('span', api.getBranchTextProps(ref) as Record<string, unknown>, renderSegments(api, api.keySegments(node))))\n control.push(h('span', api.getPreviewProps(ref) as Record<string, unknown>, api.previewText(node)))\n\n const parts: VNode[] = [h('div', api.getBranchControlProps(ref) as Record<string, unknown>, control)]\n // 收起的子层不渲染:一份大 JSON 全铺出来会把页面压住,展开集合本来也是逐层放开的\n if (api.isExpanded(node.value)) {\n parts.push(h(\n 'div',\n api.getBranchContentProps(ref) as Record<string, unknown>,\n renderRows(api, children, node.value),\n ))\n }\n return h('div', { ...api.getBranchProps(ref) as Record<string, unknown>, key: node.value }, parts)\n}\n\nexport const XhJsonViewerRoot = defineComponent({\n name: 'XhJsonViewerRoot',\n // 有 connect 兜底的 prop:普通类型省略 default,Boolean 显式保留 undefined\n props: {\n // 任意形状都收,类型检查交给使用方\n value: { type: null as unknown as PropType<unknown>, default: undefined as unknown },\n view: { type: String as PropType<JsonViewerView> },\n /** 外框形态:outline 带描边与底色(默认),subtle 淡底无描边,ghost 去掉描边与底色只保留内容。 */\n variant: { type: String as PropType<ControlVariant> },\n expandedValue: { type: Array as PropType<string[]> },\n defaultExpandedValue: { type: Array as PropType<string[]> },\n defaultExpandedDepth: { type: Number },\n maxStringLength: { type: Number },\n maxItems: { type: Number },\n sortKeys: { type: Boolean, default: undefined },\n loop: { type: Boolean, default: undefined },\n dir: { type: String as PropType<Direction> },\n size: { type: String as PropType<Size> },\n /** 搜索词:键名与值里含有它的行即命中,命中行的祖先自动展开,命中片段铺成 mark。 */\n search: { type: String },\n translations: { type: Object as PropType<Partial<JsonViewerTranslations>> },\n },\n // 空态那一格的内容:不写即铺 translations 里的兜底文案\n slots: Object as SlotsType<{\n empty?: () => VNode[]\n /** 树之前的一条:放搜索框与上一条 / 下一条,渲染为根的前一个兄弟。 */\n toolbar?: (props: JsonViewerToolbarSlotProps) => VNode[]\n }>,\n // 写了工具条时根是片段,接不住自动透传:作者写在 XhJsonViewerRoot 上的 class / aria-* 自己合到根上\n inheritAttrs: false,\n // expanded-change 携带 { value },update:expandedValue 携带裸集合\n emits: {\n 'expanded-value-change': (_details: PayloadOf<JsonViewerProps, 'onExpandedValueChange'>) => true,\n 'update:expandedValue': (_value: PayloadOf<JsonViewerProps, 'onExpandedValueChange'>['value']) => true,\n },\n setup(props, { emit, slots, attrs }) {\n const notify: JsonViewerProps['onExpandedValueChange'] = (details) => {\n emit('expanded-value-change', details)\n emit('update:expandedValue', details.value)\n }\n const ctx = useJsonViewer(withXhConfig('json-viewer', props) as JsonViewerProps, notify)\n // 两档容器是页内结构容器(与 Tree 同类):滚动条走 reset 层的原生细条,不接自绘条\n // 行是按数据摊出来的,作者写不出也不必写:整棵树由组件自己铺\n // 空态与滚动层同级:一行也摊不出来时由它说话,有行可摊时 connect 给它打 hidden\n const renderEmpty = (api: JsonViewerApi): VNode => h(\n 'div',\n api.getEmptyProps() as Record<string, unknown>,\n slots.empty?.() ?? api.emptyText,\n )\n const renderRoot = (api: JsonViewerApi): VNode => {\n const rootProps = mergeProps(api.getRootProps() as Record<string, unknown>, attrs)\n // 原文档不铺行:整块文本交给 pre,框选与复制才拿得到与后端一字不差的那份\n if (api.view === 'text') {\n return h('div', rootProps, [\n h('pre', api.getTextProps() as Record<string, unknown>, api.text),\n renderEmpty(api),\n ])\n }\n\n const children = groupJsonViewerNodesByParent(api.visibleNodes)\n return h('div', rootProps, [\n h('div', api.getTreeProps() as Record<string, unknown>, renderRows(api, children, null)),\n renderEmpty(api),\n ])\n }\n return () => {\n const api = ctx.api.value\n const toolbar = slots.toolbar?.({\n searchMatches: api.searchMatches,\n activeMatch: api.activeMatch,\n nextMatch: api.nextMatch,\n prevMatch: api.prevMatch,\n })\n const root = renderRoot(api)\n return toolbar ? h(Fragment, [...toolbar, root]) : root\n }\n },\n})\n"],"mappings":";;;;;;AAyBA,SAAS,eAAe,KAAoB,UAA8D;CACxG,OAAO,SAAS,KAAI,YAAY,QAAQ,UACpC,EAAE,QAAQ,IAAI,aAAa,GAA8B,QAAQ,IAAI,IACrE,QAAQ,IAAK;AACnB;AAEA,SAAS,WACP,KACA,UACA,QACS;CACT,QAAQ,SAAS,IAAI,MAAM,KAAK,CAAC,EAAA,CAAG,KAAI,SAAQ,UAAU,KAAK,UAAU,IAAI,CAAC;AAChF;;;;;AAMA,SAAS,UACP,KACA,UACA,MACO;CACP,MAAM,MAAM,EAAE,OAAO,KAAK,MAAM;C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IACjB,WAAW,IAAI;IACf,WAAW,IAAI;GACjB,CAAC;GACD,MAAM,OAAO,WAAW,GAAG;GAC3B,OAAO,UAAU,EAAE,UAAU,CAAC,GAAG,SAAS,IAAI,CAAC,IAAI;EACrD;CACF;AACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"json-viewer.js","names":[],"sources":["../../../src/components/json-viewer/json-viewer.ts"],"sourcesContent":["/*\n * Copyright (c) 2021-Present XiHanFun and contributors.\n * Licensed under the MIT License. See LICENSE in the project root for license information.\n */\n\n// 提供 json viewer 相关实现。\n\nimport type { ControlVariant, Direction, Size } from '@xihan-ui/core'\nimport type { HighlightSegment, JsonViewerApi, JsonViewerNode, JsonViewerSchema, JsonViewerTool, JsonViewerTranslations, JsonViewerView } from '@xihan-ui/headless'\nimport type { PropType, SlotsType, VNode } from 'vue'\nimport type { PayloadOf } from '../../runtime/payload'\nimport { groupJsonViewerNodesByParent } from '@xihan-ui/headless'\nimport { defineComponent, Fragment, h, mergeProps } from 'vue'\nimport { withXhConfig } from '../../config/config'\nimport { useJsonViewer } from './use-json-viewer'\n\ntype JsonViewerProps = JsonViewerSchema['props']\n\n/**\n * 工具条插槽的载荷:搜索命中与在命中之间逐个走的两个动作。\n * 搜索框、上一条 / 下一条与计数由作者摆在这里,搜索词经 search 交给根。\n */\nexport type JsonViewerToolbarSlotProps = Pick<JsonViewerApi, 'searchMatches' | 'activeMatch' | 'nextMatch' | 'prevMatch'>\n\n/** 按片段铺文字:命中搜索词的那一段包进 mark 部件,其余原样是文本。 */\nfunction renderSegments(api: JsonViewerApi, segments: readonly HighlightSegment[]): Array<VNode | string> {\n return segments.map(segment => (segment.matched\n ? h('mark', api.getMarkProps() as Record<string, unknown>, segment.text)\n : segment.text))\n}\n\n/** 原文按段铺:有类别的段包进 token 部件着色,空白与解析不了的原文是纯文本。 */\nfunction renderTextSegments(api: JsonViewerApi): Array<VNode | string> {\n return api.textSegments.map(segment => (segment.kind\n ? h('span', api.getTokenProps({ kind: segment.kind }) as Record<string, unknown>, segment.text)\n : segment.text))\n}\n\n/**\n * 内建工具条:根的第一个孩子。钮里不写内容,字形由皮肤按部件画;\n * 播报区跟着复制钮常驻,成功那一刻才有文字,读屏才念得出回执。\n */\nfunction renderToolbar(api: JsonViewerApi): VNode | null {\n if (!api.tools.length)\n return null\n const buttons: VNode[] = []\n if (api.tools.includes('expand'))\n buttons.push(h('button', api.getExpandTriggerProps() as Record<string, unknown>))\n if (api.tools.includes('wrap'))\n buttons.push(h('button', api.getWrapTriggerProps() as Record<string, unknown>))\n if (api.tools.includes('copy')) {\n buttons.push(h('button', api.getCopyTriggerProps() as Record<string, unknown>))\n buttons.push(h('span', api.getStatusProps() as Record<string, unknown>, api.announcement))\n }\n if (api.tools.includes('view'))\n buttons.push(h('button', api.getViewTriggerProps() as Record<string, unknown>))\n return h('div', api.getToolbarProps() as Record<string, unknown>, buttons)\n}\n\nfunction renderRows(\n api: JsonViewerApi,\n children: Map<string | null, JsonViewerNode[]>,\n parent: string | null,\n): VNode[] {\n return (children.get(parent) ?? []).map(node => renderRow(api, children, node))\n}\n\n/**\n * 一行:标量是 item(键名 + 值),对象与数组是 branch(控制行 + 子层)。\n * 没有键名的行(根行、截断占位)不渲染键名部件,避免多出一个空盒子。\n */\nfunction renderRow(\n api: JsonViewerApi,\n children: Map<string | null, JsonViewerNode[]>,\n node: JsonViewerNode,\n): VNode {\n const ref = { value: node.value }\n\n if (!node.branch) {\n const parts: VNode[] = []\n if (node.key != null)\n parts.push(h('span', api.getItemKeyProps(ref) as Record<string, unknown>, renderSegments(api, api.keySegments(node))))\n parts.push(h('span', api.getItemValueProps(ref) as Record<string, unknown>, renderSegments(api, api.valueSegments(node))))\n return h('div', { ...api.getItemProps(ref) as Record<string, unknown>, key: node.value }, parts)\n }\n\n const control: VNode[] = [\n h('span', api.getBranchTriggerProps(ref) as Record<string, unknown>, [\n h('span', api.getBranchIndicatorProps(ref) as Record<string, unknown>),\n ]),\n ]\n if (node.key != null)\n control.push(h('span', api.getBranchTextProps(ref) as Record<string, unknown>, renderSegments(api, api.keySegments(node))))\n control.push(h('span', api.getPreviewProps(ref) as Record<string, unknown>, api.previewText(node)))\n\n const parts: VNode[] = [h('div', api.getBranchControlProps(ref) as Record<string, unknown>, control)]\n // 收起的子层不渲染:一份大 JSON 全铺出来会把页面压住,展开集合本来也是逐层放开的\n if (api.isExpanded(node.value)) {\n parts.push(h(\n 'div',\n api.getBranchContentProps(ref) as Record<string, unknown>,\n renderRows(api, children, node.value),\n ))\n }\n return h('div', { ...api.getBranchProps(ref) as Record<string, unknown>, key: node.value }, parts)\n}\n\nexport const XhJsonViewerRoot = defineComponent({\n name: 'XhJsonViewerRoot',\n // 有 connect 兜底的 prop:普通类型省略 default,Boolean 显式保留 undefined\n props: {\n // 任意形状都收,类型检查交给使用方\n value: { type: null as unknown as PropType<unknown>, default: undefined as unknown },\n view: { type: String as PropType<JsonViewerView> },\n /** 非受控的初始形态,默认 tree。 */\n defaultView: { type: String as PropType<JsonViewerView> },\n /** 值的原文:提供时原文档与复制钮取它,只重排缩进、字面量一字不改。 */\n source: { type: String },\n /** 原文档是否自动换行;提供即受控。 */\n wrap: { type: Boolean, default: undefined },\n /** 非受控的初始换行,默认 false。 */\n defaultWrap: { type: Boolean, default: undefined },\n /** 内建工具条:不提供即没有;true 铺出全部工具;数组只铺列出的几项(expand / wrap / copy / view)。 */\n tools: { type: [Boolean, Array] as PropType<boolean | JsonViewerTool[]>, default: undefined },\n /** 外框形态:outline 带描边与底色(默认),subtle 淡底无描边,ghost 去掉描边与底色只保留内容。 */\n variant: { type: String as PropType<ControlVariant> },\n expandedValue: { type: Array as PropType<string[]> },\n defaultExpandedValue: { type: Array as PropType<string[]> },\n defaultExpandedDepth: { type: Number },\n maxStringLength: { type: Number },\n maxItems: { type: Number },\n sortKeys: { type: Boolean, default: undefined },\n loop: { type: Boolean, default: undefined },\n dir: { type: String as PropType<Direction> },\n size: { type: String as PropType<Size> },\n /** 搜索词:键名与值里含有它的行即命中,命中行的祖先自动展开,命中片段铺成 mark。 */\n search: { type: String },\n translations: { type: Object as PropType<Partial<JsonViewerTranslations>> },\n },\n // 空态那一格的内容:不写即铺 translations 里的兜底文案\n slots: Object as SlotsType<{\n empty?: () => VNode[]\n /** 树之前的一条:放搜索框与上一条 / 下一条,渲染为根的前一个兄弟。 */\n toolbar?: (props: JsonViewerToolbarSlotProps) => VNode[]\n }>,\n // 写了工具条时根是片段,接不住自动透传:作者写在 XhJsonViewerRoot 上的 class / aria-* 自己合到根上\n inheritAttrs: false,\n // *-change 携带 details 对象,update:* 携带裸值(v-model)\n emits: {\n 'expanded-value-change': (_details: PayloadOf<JsonViewerProps, 'onExpandedValueChange'>) => true,\n 'update:expandedValue': (_value: PayloadOf<JsonViewerProps, 'onExpandedValueChange'>['value']) => true,\n 'view-change': (_details: PayloadOf<JsonViewerProps, 'onViewChange'>) => true,\n 'update:view': (_view: PayloadOf<JsonViewerProps, 'onViewChange'>['view']) => true,\n 'wrap-change': (_details: PayloadOf<JsonViewerProps, 'onWrapChange'>) => true,\n 'update:wrap': (_wrap: PayloadOf<JsonViewerProps, 'onWrapChange'>['wrap']) => true,\n 'copy-error': (_details: PayloadOf<JsonViewerProps, 'onCopyError'>) => true,\n },\n setup(props, { emit, slots, attrs }) {\n const notify: JsonViewerProps['onExpandedValueChange'] = (details) => {\n emit('expanded-value-change', details)\n emit('update:expandedValue', details.value)\n }\n const ctx = useJsonViewer(withXhConfig('json-viewer', props) as JsonViewerProps, notify, {\n onViewChange: (details) => {\n emit('view-change', details)\n emit('update:view', details.view)\n },\n onWrapChange: (details) => {\n emit('wrap-change', details)\n emit('update:wrap', details.wrap)\n },\n onCopyError: details => emit('copy-error', details),\n })\n // 两档容器是页内结构容器(与 Tree 同类):滚动条走 reset 层的原生细条,不接自绘条\n // 行是按数据摊出来的,作者写不出也不必写:整棵树由组件自己铺\n // 空态与滚动层同级:一行也摊不出来时由它说话,有行可摊时 connect 给它打 hidden\n const renderEmpty = (api: JsonViewerApi): VNode => h(\n 'div',\n api.getEmptyProps() as Record<string, unknown>,\n slots.empty?.() ?? api.emptyText,\n )\n const renderRoot = (api: JsonViewerApi): VNode => {\n const rootProps = mergeProps(api.getRootProps() as Record<string, unknown>, attrs)\n // 原文档不铺行:整块文本交给 pre,框选与复制才拿得到与后端一字不差的那份\n if (api.view === 'text') {\n return h('div', rootProps, [\n renderToolbar(api),\n h('pre', api.getTextProps() as Record<string, unknown>, renderTextSegments(api)),\n renderEmpty(api),\n ])\n }\n\n const children = groupJsonViewerNodesByParent(api.visibleNodes)\n return h('div', rootProps, [\n renderToolbar(api),\n h('div', api.getTreeProps() as Record<string, unknown>, renderRows(api, children, null)),\n renderEmpty(api),\n ])\n }\n return () => {\n const api = ctx.api.value\n const toolbar = slots.toolbar?.({\n searchMatches: api.searchMatches,\n activeMatch: api.activeMatch,\n nextMatch: api.nextMatch,\n prevMatch: api.prevMatch,\n })\n const root = renderRoot(api)\n return toolbar ? h(Fragment, [...toolbar, root]) : root\n }\n },\n})\n"],"mappings":";;;;;;AAyBA,SAAS,eAAe,KAAoB,UAA8D;CACxG,OAAO,SAAS,KAAI,YAAY,QAAQ,UACpC,EAAE,QAAQ,IAAI,aAAa,GAA8B,QAAQ,IAAI,IACrE,QAAQ,IAAK;AACnB;;AAGA,SAAS,mBAAmB,KAA2C;CACrE,OAAO,IAAI,aAAa,KAAI,YAAY,QAAQ,OAC5C,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,QAAQ,KAAK,CAAC,GAA8B,QAAQ,IAAI,IAC5F,QAAQ,IAAK;AACnB;;;;;AAMA,SAAS,cAAc,KAAkC;CACvD,IAAI,CAAC,IAAI,MAAM,QACb,OAAO;CACT,MAAM,UAAmB,CAAC;CAC1B,IAAI,IAAI,MAAM,SAAS,QAAQ,GAC7B,QAAQ,KAAK,EAAE,UAAU,IAAI,sBAAsB,CAA4B,CAAC;CAClF,IAAI,IAAI,MAAM,SAAS,MAAM,GAC3B,QAAQ,KA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C;GACD,MAAM,OAAO,WAAW,GAAG;GAC3B,OAAO,UAAU,EAAE,UAAU,CAAC,GAAG,SAAS,IAAI,CAAC,IAAI;EACrD;CACF;AACF,CAAC"}
|
|
@@ -7,7 +7,9 @@ interface JsonViewerContext {
|
|
|
7
7
|
/** 状态机实例,供调用方直接发送事件(如从外部展开某一条路径)。 */
|
|
8
8
|
service: Service<JsonViewerSchema>;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
/** 工具条的三路通知:Vue 的 props 里不带回调,由组件把各自的 emit 接进来。 */
|
|
11
|
+
type JsonViewerToolEvents = Pick<JsonViewerSchema['props'], 'onViewChange' | 'onWrapChange' | 'onCopyError'>;
|
|
12
|
+
declare function useJsonViewer(props: JsonViewerSchema['props'], onExpandedValueChange?: JsonViewerSchema['props']['onExpandedValueChange'], events?: JsonViewerToolEvents): JsonViewerContext;
|
|
11
13
|
//#endregion
|
|
12
|
-
export { JsonViewerContext, useJsonViewer };
|
|
14
|
+
export { JsonViewerContext, JsonViewerToolEvents, useJsonViewer };
|
|
13
15
|
//# sourceMappingURL=use-json-viewer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-json-viewer.d.ts","names":[],"sources":["../../../src/components/json-viewer/use-json-viewer.ts"],"mappings":";;;;UAeiB;EACf,KAAK,YAAY;;EAEjB,SAAS,QAAQ
|
|
1
|
+
{"version":3,"file":"use-json-viewer.d.ts","names":[],"sources":["../../../src/components/json-viewer/use-json-viewer.ts"],"mappings":";;;;UAeiB;EACf,KAAK,YAAY;;EAEjB,SAAS,QAAQ;;;KAIP,uBAAuB,KAAK;iBAGxB,cACd,OAAO,2BACP,wBAAwB,oDACxB,SAAQ,uBACP"}
|
|
@@ -3,10 +3,11 @@ import { useMachine } from "../../runtime/use-machine.js";
|
|
|
3
3
|
import { computed } from "vue";
|
|
4
4
|
import { connectJsonViewer, jsonViewerMachine } from "@xihan-ui/headless";
|
|
5
5
|
//#region src/components/json-viewer/use-json-viewer.ts
|
|
6
|
-
function useJsonViewer(props, onExpandedValueChange) {
|
|
6
|
+
function useJsonViewer(props, onExpandedValueChange, events = {}) {
|
|
7
7
|
const service = useMachine(jsonViewerMachine, () => ({
|
|
8
8
|
...props,
|
|
9
|
-
onExpandedValueChange
|
|
9
|
+
onExpandedValueChange,
|
|
10
|
+
...events
|
|
10
11
|
}));
|
|
11
12
|
return {
|
|
12
13
|
api: computed(() => connectJsonViewer(service, vueNormalize)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-json-viewer.js","names":[],"sources":["../../../src/components/json-viewer/use-json-viewer.ts"],"sourcesContent":["/*\n * Copyright (c) 2021-Present XiHanFun and contributors.\n * Licensed under the MIT License. See LICENSE in the project root for license information.\n */\n\n// 提供 use json viewer 相关实现。\n\nimport type { Service } from '@xihan-ui/core'\nimport type { JsonViewerApi, JsonViewerSchema } from '@xihan-ui/headless'\nimport type { ComputedRef } from 'vue'\nimport { connectJsonViewer, jsonViewerMachine } from '@xihan-ui/headless'\nimport { computed } from 'vue'\nimport { vueNormalize } from '../../runtime/normalize-props'\nimport { useMachine } from '../../runtime/use-machine'\n\nexport interface JsonViewerContext {\n api: ComputedRef<JsonViewerApi>\n /** 状态机实例,供调用方直接发送事件(如从外部展开某一条路径)。 */\n service: Service<JsonViewerSchema>\n}\n\n// 不建 scope:connect 不派生任何 id\nexport function useJsonViewer(\n props: JsonViewerSchema['props'],\n onExpandedValueChange?: JsonViewerSchema['props']['onExpandedValueChange'],\n): JsonViewerContext {\n const service = useMachine(jsonViewerMachine, () => ({ ...props, onExpandedValueChange }))\n const api = computed(() => connectJsonViewer(service, vueNormalize))\n return { api, service }\n}\n"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"use-json-viewer.js","names":[],"sources":["../../../src/components/json-viewer/use-json-viewer.ts"],"sourcesContent":["/*\n * Copyright (c) 2021-Present XiHanFun and contributors.\n * Licensed under the MIT License. See LICENSE in the project root for license information.\n */\n\n// 提供 use json viewer 相关实现。\n\nimport type { Service } from '@xihan-ui/core'\nimport type { JsonViewerApi, JsonViewerSchema } from '@xihan-ui/headless'\nimport type { ComputedRef } from 'vue'\nimport { connectJsonViewer, jsonViewerMachine } from '@xihan-ui/headless'\nimport { computed } from 'vue'\nimport { vueNormalize } from '../../runtime/normalize-props'\nimport { useMachine } from '../../runtime/use-machine'\n\nexport interface JsonViewerContext {\n api: ComputedRef<JsonViewerApi>\n /** 状态机实例,供调用方直接发送事件(如从外部展开某一条路径)。 */\n service: Service<JsonViewerSchema>\n}\n\n/** 工具条的三路通知:Vue 的 props 里不带回调,由组件把各自的 emit 接进来。 */\nexport type JsonViewerToolEvents = Pick<JsonViewerSchema['props'], 'onViewChange' | 'onWrapChange' | 'onCopyError'>\n\n// 不建 scope:connect 不派生任何 id\nexport function useJsonViewer(\n props: JsonViewerSchema['props'],\n onExpandedValueChange?: JsonViewerSchema['props']['onExpandedValueChange'],\n events: JsonViewerToolEvents = {},\n): JsonViewerContext {\n const service = useMachine(jsonViewerMachine, () => ({ ...props, onExpandedValueChange, ...events }))\n const api = computed(() => connectJsonViewer(service, vueNormalize))\n return { api, service }\n}\n"],"mappings":";;;;;AAyBA,SAAgB,cACd,OACA,uBACA,SAA+B,CAAC,GACb;CACnB,MAAM,UAAU,WAAW,0BAA0B;EAAE,GAAG;EAAO;EAAuB,GAAG;CAAO,EAAE;CAEpG,OAAO;EAAE,KADG,eAAe,kBAAkB,SAAS,YAAY,CACvD;EAAG;CAAQ;AACxB"}
|
|
@@ -72,8 +72,8 @@ declare const XhMarqueeRoot: import("vue").DefineComponent<import("vue").Extract
|
|
|
72
72
|
"onPaused-change"?: ((_details: import("@xihan-ui/headless").MarqueePausedChangeDetails) => any) | undefined;
|
|
73
73
|
"onUpdate:paused"?: ((_paused: boolean) => any) | undefined;
|
|
74
74
|
}>, {
|
|
75
|
-
paused: boolean;
|
|
76
75
|
fade: boolean;
|
|
76
|
+
paused: boolean;
|
|
77
77
|
pauseOnHover: boolean;
|
|
78
78
|
defaultPaused: boolean;
|
|
79
79
|
autoFill: boolean;
|
|
@@ -226,8 +226,8 @@ declare const XhNavigationMenuLink: import("vue").DefineComponent<import("vue").
|
|
|
226
226
|
/** 借用作者的子节点(如路由链接)作为链接,不再渲染自己的 `<a>`;子节点须恰好一个。 */
|
|
227
227
|
asChild: BooleanConstructor;
|
|
228
228
|
}>> & Readonly<{}>, {
|
|
229
|
-
asChild: boolean;
|
|
230
229
|
current: boolean;
|
|
230
|
+
asChild: boolean;
|
|
231
231
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
232
232
|
/** 指示条容器,位置由状态机计算后写入内联样式;渲染为 li 以 list 为定位参照系 */
|
|
233
233
|
declare const XhNavigationMenuIndicator: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
@@ -84,8 +84,8 @@ declare const XhReasoningRoot: import("vue").DefineComponent<import("vue").Extra
|
|
|
84
84
|
disabled: boolean;
|
|
85
85
|
open: boolean;
|
|
86
86
|
defaultOpen: boolean;
|
|
87
|
-
streaming: boolean;
|
|
88
87
|
autoDisclosure: boolean;
|
|
88
|
+
streaming: boolean;
|
|
89
89
|
}, SlotsType<{
|
|
90
90
|
default?: (props: ReasoningRootSlotProps) => VNode[];
|
|
91
91
|
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -95,8 +95,8 @@ declare const XhSortableRoot: import("vue").DefineComponent<import("vue").Extrac
|
|
|
95
95
|
"onUpdate:ids"?: ((_ids: string[]) => any) | undefined;
|
|
96
96
|
}>, {
|
|
97
97
|
disabled: boolean;
|
|
98
|
-
ids: string[];
|
|
99
98
|
autoScroll: boolean;
|
|
99
|
+
ids: string[];
|
|
100
100
|
}, SlotsType<{
|
|
101
101
|
default?: (props: SortableRootSlotProps) => VNode[];
|
|
102
102
|
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -143,8 +143,8 @@ declare const XhTourRoot: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
143
143
|
defaultOpen: boolean;
|
|
144
144
|
closeOnEscape: boolean;
|
|
145
145
|
closeOnInteractOutside: boolean;
|
|
146
|
-
autoScroll: boolean;
|
|
147
146
|
showBackdrop: boolean;
|
|
147
|
+
autoScroll: boolean;
|
|
148
148
|
}, SlotsType<{
|
|
149
149
|
default?: (props: TourRootSlotProps) => VNode[];
|
|
150
150
|
}>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -173,9 +173,9 @@ declare const XhTreeRoot: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
173
173
|
loop: boolean;
|
|
174
174
|
disabled: boolean;
|
|
175
175
|
loading: boolean;
|
|
176
|
-
typeahead: boolean;
|
|
177
176
|
cascade: boolean;
|
|
178
177
|
lines: boolean;
|
|
178
|
+
typeahead: boolean;
|
|
179
179
|
nodeDraggable: boolean;
|
|
180
180
|
expandOnClick: boolean;
|
|
181
181
|
}, SlotsType<{
|
|
@@ -217,11 +217,11 @@ declare const XhTreeSelectRoot: import("vue").DefineComponent<import("vue").Extr
|
|
|
217
217
|
onClear?: (() => any) | undefined;
|
|
218
218
|
"onOpen-change"?: ((_details: import("@xihan-ui/headless").TreeSelectOpenChangeDetails) => any) | undefined;
|
|
219
219
|
"onUpdate:open"?: ((_open: boolean) => any) | undefined;
|
|
220
|
-
"onExpanded-value-change"?: ((_details: import("@xihan-ui/headless").TreeSelectExpandedValueChangeDetails) => any) | undefined;
|
|
221
|
-
"onUpdate:expandedValue"?: ((_value: string[]) => any) | undefined;
|
|
222
220
|
"onBranch-load-start"?: ((_details: import("@xihan-ui/headless").TreeSelectBranchLoadStartDetails) => any) | undefined;
|
|
223
221
|
"onBranch-load"?: ((_details: import("@xihan-ui/headless").TreeSelectBranchLoadDetails) => any) | undefined;
|
|
224
222
|
"onBranch-load-error"?: ((_details: import("@xihan-ui/headless").TreeSelectBranchLoadErrorDetails) => any) | undefined;
|
|
223
|
+
"onExpanded-value-change"?: ((_details: import("@xihan-ui/headless").TreeSelectExpandedValueChangeDetails) => any) | undefined;
|
|
224
|
+
"onUpdate:expandedValue"?: ((_value: string[]) => any) | undefined;
|
|
225
225
|
}>, {
|
|
226
226
|
invalid: boolean;
|
|
227
227
|
multiple: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -142,7 +142,7 @@ import { InfiniteScrollRootSlotProps, XhInfiniteScrollLoadMoreTrigger, XhInfinit
|
|
|
142
142
|
import { InputGroupContext, provideInputGroup, useInputGroupContext } from "./components/input-group/context.js";
|
|
143
143
|
import { XhInputGroupItem, XhInputGroupRoot } from "./components/input-group/input-group.js";
|
|
144
144
|
import { JsonViewerToolbarSlotProps, XhJsonViewerRoot } from "./components/json-viewer/json-viewer.js";
|
|
145
|
-
import { JsonViewerContext, useJsonViewer } from "./components/json-viewer/use-json-viewer.js";
|
|
145
|
+
import { JsonViewerContext, JsonViewerToolEvents, useJsonViewer } from "./components/json-viewer/use-json-viewer.js";
|
|
146
146
|
import { XhKbd } from "./components/kbd/kbd.js";
|
|
147
147
|
import { LayoutContext, useLayout } from "./components/layout/use-layout.js";
|
|
148
148
|
import { provideLayout, useLayoutContext } from "./components/layout/context.js";
|
|
@@ -315,4 +315,4 @@ import { AlertOptions, ConfirmOptions, DialogActionError, DialogBody, DialogServ
|
|
|
315
315
|
import { LoadingBarService, LoadingBarServiceOptions, createLoadingBarService } from "./services/loading-bar-service.js";
|
|
316
316
|
import { NotificationCreateOptions, NotificationMessageOptions, NotificationPromiseOptions, NotificationService, NotificationServiceOptions, createNotificationService } from "./services/notification-service.js";
|
|
317
317
|
import { ColumnRow, ColumnSource, ColumnStore, ColumnStoreOptions, ColumnValue, FileUploadFile, FileUploadRemoteFile, FileUploadRequest, FileUploadResult, FileUploadSnapshot, FileUploadStatus, FileUploadValidateContext, SideNavNode, createColumnStore } from "@xihan-ui/headless";
|
|
318
|
-
export { type AccordionContext, type AffixContext, type AffixRootSlotProps, type AlertOptions, type AnchorContext, type ApprovalCallbacks, type ApprovalContext, type ApprovalRootSlotProps, type ApprovalScopeSlotProps, type AvatarContext, type AvatarGroupContext, type BackTopContext, type BackTopRootSlotProps, type BreadcrumbContext, type CalendarPickerContext, type CalendarPickerRootSlotProps, type CalendarRangePickerContext, type CalendarRangePickerRootSlotProps, type CardContext, type CarouselContext, type CarouselRootSlotProps, type CartesianChartContext, type CartesianChartNotifiers, type CartesianChartRootSlotProps, type CartesianChartTooltipSlotProps, type CascaderContext, type CascaderRootSlotProps, type CascaderSearchListItemSlotProps, type CheckboxContext, type CheckboxGroupContext, type CheckboxGroupRootSlotProps, type CitationContext, type ClipboardContext, type ClipboardRootSlotProps, type CodeViewContext, type CodeViewLineSlotProps, type CodeViewRootSlotProps, type CollapsibleContext, type ColorFieldContext, type ColorFieldRootSlotProps, type ColorPickerContext, type ColorPickerRootSlotProps, type ColorSliderContext, type ColorSliderRootSlotProps, type ColorSwatchPickerContext, type ColorSwatchPickerRootSlotProps, type ColumnRow, type ColumnSource, type ColumnStore, type ColumnStoreOptions, type ColumnValue, type ComboboxContext, type ComboboxRootSlotProps, type CommandContext, type CommandRootSlotProps, type ConfirmOptions, type ContextMenuContext, type ContextMenuRootSlotProps, type ContextMenuSubHandle, type ContextMenuSubSlotProps, type DateFieldContext, type DateFieldRootSlotProps, type DateFieldSegmentSlotProps, type DatePickerContext, type DatePickerPresetsSlotProps, type DatePickerRootSlotProps, type DatePickerSegmentSlotProps, type DateRangePickerContext, type DateRangePickerPresetsSlotProps, type DateRangePickerRootSlotProps, type DateRangePickerSegmentSlotProps, type DescriptionsContext, type DialogActionError, type DialogBody, type DialogContext, type DialogRootSlotProps, type DialogService, type DialogServiceOptions, type DiffViewContext, type DiffViewRootSlotProps, type DownloadTriggerContext, type DownloadTriggerSlotProps, type DrawerContext, type DrawerRootSlotProps, type EditableCallbacks, type EditableContext, type EditableRootSlotProps, type FieldArrayContext, type FieldArrayItemContext, type FieldArrayRootSlotProps, type FieldContext, type FieldControlSlotProps, type FieldsetContext, type FileUploadContext, type FileUploadFile, type FileUploadRemoteFile, type FileUploadRequest, type FileUploadResult, type FileUploadRootSlotProps, type FileUploadSnapshot, type FileUploadStatus, type FileUploadValidateContext, type FlexContext, type FloatButtonContext, type FloatButtonRootSlotProps, type FloatingPanelContext, type FloatingPanelRootSlotProps, type FormCallbacks, type FormContext, type FormErrorSummaryItemSlotProps, type FormErrorSummarySlotProps, type FormFieldGroupSlotProps, type FormRootSlotProps, type FunnelChartContext, type FunnelChartNotifiers, type FunnelChartRootSlotProps, type FunnelChartTooltipSlotProps, type GraphChartContext, type GraphChartNotifiers, type GraphChartRootSlotProps, type GraphChartTooltipSlotProps, type GridContext, type GridListContext, type HeatmapCellSlotProps, type HeatmapContext, type HeatmapRootSlotProps, type HierarchyChartContext, type HierarchyChartNotifiers, type HierarchyChartRootSlotProps, type HierarchyChartTooltipSlotProps, type HoverCardContext, type HoverCardRootSlotProps, type IconContext, type ImageContext, type ImageCropperContext, type ImageCropperRootSlotProps, type ImageRootSlotProps, type ImageViewerContext, type ImageViewerRootSlotProps, type InfiniteScrollContext, type InfiniteScrollRootSlotProps, type InputGroupContext, type JsonViewerContext, type JsonViewerToolbarSlotProps, type LayoutContext, type ListContext, type ListboxContext, type ListboxRootSlotProps, type LoadingBarContext, type LoadingBarRootSlotProps, type LoadingBarService, type LoadingBarServiceOptions, type LogContext, type LogRootSlotProps, type MarkdownStreamBlockSlotProps, type MarkdownStreamCitationSlotProps, type MarkdownStreamContext, type MarkdownStreamMathSlotProps, type MarkdownStreamRootSlotProps, type MarqueeContext, type MatrixCodeContext, type MentionContext, type MentionItemContext, type MentionRootSlotProps, type MenuContext, type MenuGroupContext, type MenuRootSlotProps, type MenuSubHandle, type MenuSubSlotProps, type MenubarContext, type MenubarPartRegistry, type MenubarRootSlotProps, type MenubarSubHandle, type MenubarSubSlotProps, type MessageFeedContext, type MessageFeedItemContext, type MessageFeedRootSlotProps, type NavigationMenuContext, type NotificationContext, type NotificationCreateOptions, type NotificationGroupSlotProps, type NotificationItemContext, type NotificationItemSlotProps, type NotificationMessageOptions, type NotificationPromiseOptions, type NotificationRootSlotProps, type NotificationService, type NotificationServiceOptions, type NumberAnimationSlotProps, type NumberFieldContext, type NumberFieldRootSlotProps, type PageHeaderContext, type PaginationContext, type PaginationRootSlotProps, type PasswordInputContext, type PasswordInputRootSlotProps, type PayloadOf, type PieChartCenterSlotProps, type PieChartContext, type PieChartNotifiers, type PieChartRootSlotProps, type PieChartTooltipSlotProps, type PinInputContext, type PinInputRootSlotProps, type PopconfirmContext, type PopconfirmRootSlotProps, type PopoverContext, type PopoverRootSlotProps, type PromptInputCallbacks, type PromptInputContext, type PromptInputRootSlotProps, type PromptOptions, type QuestionFlowCallbacks, type QuestionFlowContext, type QuestionFlowOptionSlotProps, type QuestionFlowRootSlotProps, type RadarChartContext, type RadarChartNotifiers, type RadarChartRootSlotProps, type RadarChartTooltipSlotProps, type RadioGroupContext, type RatingContext, type RatingItemSlotProps, type RatingRootSlotProps, type ReasoningContext, type ReasoningRootSlotProps, type ResizableContext, type ResizableRootSlotProps, type SankeyChartContext, type SankeyChartNotifiers, type SankeyChartRootSlotProps, type SankeyChartTooltipSlotProps, type ScrollAreaContext, type ScrollAreaRootSlotProps, type ScrollbarContext, type ScrollbarRootSlotProps, type ScrollbarSource, type ScrollbarTarget, type SelectContext, type SelectRootSlotProps, type SideNavContext, type SideNavNode, type SideNavRootSlotProps, type SignaturePadContext, type SignaturePadRootSlotProps, type SliderContext, type SliderRootSlotProps, type SliderTickGroupTickSlotProps, type SortableContext, type SortableItemSlotProps, type SortableRootSlotProps, type SparklineContext, type SplitterContext, type SplitterRootSlotProps, type StatisticContext, type StepsContext, type StepsRootSlotProps, type SwitchContext, type TableContext, type TableRootSlotProps, type TableToolbarSlotProps, type TabsContext, type TagContext, type TagGroupContext, type TagGroupItemContext, type TagGroupRootSlotProps, type TagsInputContext, type TagsInputCountSlotProps, type TagsInputRootSlotProps, type TextFieldContext, type TextFieldCountSlotProps, type TextFieldRootSlotProps, type TimeFieldContext, type TimeFieldRootSlotProps, type TimePickerColumnSlotProps, type TimePickerContext, type TimePickerPresetsSlotProps, type TimePickerRootSlotProps, type TimeRangePickerColumnGroupSlotProps, type TimeRangePickerColumnSlotProps, type TimeRangePickerContext, type TimeRangePickerPresetsSlotProps, type TimeRangePickerRootSlotProps, type TimelineContext, type TimerContext, type TimerRootSlotProps, type ToggleContext, type ToggleGroupContext, type ToolCallContext, type ToolCallRootSlotProps, type ToolbarContext, type ToolbarRootSlotProps, type TooltipContext, type TooltipRootSlotProps, type TourContext, type TourRootSlotProps, type TransferContext, type TransferPanelSlotProps, type TransferRootSlotProps, type TreeContext, type TreeRootSlotProps, type TreeSelectContext, type TreeSelectRootSlotProps, type TruncateContext, type TruncateSlotProps, type TruncateTriggerSlotProps, type TypographyContext, type VirtualizerContext, type VirtualizerRootSlotProps, type WatermarkContext, XhAccordionContent, XhAccordionHeader, XhAccordionIndicator, XhAccordionItem, XhAccordionItemSeparator, XhAccordionRoot, XhAccordionTrigger, XhAffixContent, XhAffixRoot, XhAlertAction, XhAlertCloseTrigger, XhAlertContent, XhAlertDescription, XhAlertIndicator, XhAlertRoot, XhAlertTitle, XhAnchorIndicator, XhAnchorItem, XhAnchorLink, XhAnchorLinkText, XhAnchorList, XhAnchorRoot, XhApprovalApproveTrigger, XhApprovalDenyTrigger, XhApprovalDescription, XhApprovalFooter, XhApprovalGroup, XhApprovalItem, XhApprovalItemIndicator, XhApprovalItemText, XhApprovalLiveRegion, XhApprovalNote, XhApprovalPendingIndicator, XhApprovalResult, XhApprovalRoot, XhApprovalTimer, XhApprovalTitle, XhAvatarFallback, XhAvatarGroupOverflowItem, XhAvatarGroupRoot, XhAvatarImage, XhAvatarRoot, XhBackTopRoot, XhBackTopTrigger, XhBadge, XhBadgeIndicator, XhBadgeRoot, XhBarCode, XhBreadcrumbEllipsis, XhBreadcrumbEllipsisTrigger, XhBreadcrumbItem, XhBreadcrumbLink, XhBreadcrumbLinkIcon, XhBreadcrumbList, XhBreadcrumbRoot, XhBreadcrumbSeparator, XhButton, XhButtonGroup, XhButtonIndicator, XhButtonLabel, XhButtonPrefix, XhButtonSuffix, XhCalendarPickerCell, XhCalendarPickerCellTrigger, XhCalendarPickerGrid, XhCalendarPickerGridBody, XhCalendarPickerGridHead, XhCalendarPickerHeader, XhCalendarPickerHeading, XhCalendarPickerHeadingMonthTrigger, XhCalendarPickerHeadingYearTrigger, XhCalendarPickerNextTrigger, XhCalendarPickerNextYearTrigger, XhCalendarPickerPrevTrigger, XhCalendarPickerPrevYearTrigger, XhCalendarPickerRoot, XhCalendarPickerWeekDay, XhCalendarPickerWeekNumber, XhCalendarPickerWeekRow, XhCalendarRangePickerCell, XhCalendarRangePickerCellTrigger, XhCalendarRangePickerGrid, XhCalendarRangePickerGridBody, XhCalendarRangePickerGridHead, XhCalendarRangePickerHeader, XhCalendarRangePickerHeading, XhCalendarRangePickerHeadingMonthTrigger, XhCalendarRangePickerHeadingYearTrigger, XhCalendarRangePickerNextTrigger, XhCalendarRangePickerNextYearTrigger, XhCalendarRangePickerPrevTrigger, XhCalendarRangePickerPrevYearTrigger, XhCalendarRangePickerRoot, XhCalendarRangePickerWeekDay, XhCalendarRangePickerWeekNumber, XhCalendarRangePickerWeekRow, XhCardContent, XhCardDescription, XhCardFooter, XhCardHeader, XhCardRoot, XhCardTitle, XhCardTrigger, XhCarouselAutoplayTrigger, XhCarouselIndicator, XhCarouselIndicatorGroup, XhCarouselItem, XhCarouselList, XhCarouselNextTrigger, XhCarouselPrevTrigger, XhCarouselRoot, XhCarouselViewport, XhCartesianChartCaption, XhCartesianChartEmpty, XhCartesianChartLegend, XhCartesianChartPlot, XhCartesianChartRoot, XhCartesianChartTooltip, XhCartesianChartViewport, XhCartesianChartZoomSlider, XhCascaderClearTrigger, XhCascaderColumn, XhCascaderContent, XhCascaderControl, XhCascaderFooter, XhCascaderGroup, XhCascaderGroupLabel, XhCascaderIndicator, XhCascaderInput, XhCascaderItem, XhCascaderItemDeleteTrigger, XhCascaderItemDescription, XhCascaderItemIndicator, XhCascaderItemSuffix, XhCascaderItemText, XhCascaderLabel, XhCascaderLoading, XhCascaderOverflowTag, XhCascaderPositioner, XhCascaderRoot, XhCascaderSearchList, XhCascaderTag, XhCascaderTagLabel, XhCascaderTagList, XhCascaderTrigger, XhCascaderValueText, XhCheckbox, XhCheckboxGroupIndicator, XhCheckboxGroupItem, XhCheckboxGroupItemDescription, XhCheckboxGroupItemText, XhCheckboxGroupLabel, XhCheckboxGroupRoot, XhCheckboxGroupSelectAllTrigger, XhCitationList, XhCitationPositioner, XhCitationPreview, XhCitationRoot, XhCitationSource, XhCitationSourceIndex, XhCitationSourceLink, XhCitationSourceMeta, XhCitationSourceTitle, XhCitationText, XhCitationTrigger, XhClipboardControl, XhClipboardCopyTrigger, XhClipboardIndicator, XhClipboardInput, XhClipboardLabel, XhClipboardRoot, XhClipboardStatus, XhCodeViewCode, XhCodeViewFilename, XhCodeViewFoldTrigger, XhCodeViewHeader, XhCodeViewLangLabel, XhCodeViewPre, XhCodeViewRoot, XhCollapsibleContent, XhCollapsibleHeader, XhCollapsibleIndicator, XhCollapsibleRoot, XhCollapsibleTrigger, XhColorFieldClearTrigger, XhColorFieldControl, XhColorFieldHiddenInput, XhColorFieldInput, XhColorFieldLabel, XhColorFieldRoot, XhColorFieldSwatch, XhColorPickerAlphaSlider, XhColorPickerAreaThumb, XhColorPickerChannelInput, XhColorPickerConfirmTrigger, XhColorPickerContent, XhColorPickerControl, XhColorPickerEyeDropperTrigger, XhColorPickerHiddenInput, XhColorPickerHueSlider, XhColorPickerItemDeleteTrigger, XhColorPickerLabel, XhColorPickerOverflowTag, XhColorPickerPositioner, XhColorPickerRecentSwatchPicker, XhColorPickerRoot, XhColorPickerSaturationArea, XhColorPickerSwatch, XhColorPickerSwatchPicker, XhColorPickerTag, XhColorPickerTagLabel, XhColorPickerTagList, XhColorPickerTrigger, XhColorPickerValueText, XhColorSliderControl, XhColorSliderHiddenInput, XhColorSliderLabel, XhColorSliderRoot, XhColorSliderThumb, XhColorSliderTrack, XhColorSliderValueText, XhColorSwatch, XhColorSwatchPickerItem, XhColorSwatchPickerLabel, XhColorSwatchPickerRoot, XhComboboxClearTrigger, XhComboboxContent, XhComboboxControl, XhComboboxEmpty, XhComboboxGroup, XhComboboxGroupLabel, XhComboboxHiddenInput, XhComboboxInput, XhComboboxItem, XhComboboxItemDeleteTrigger, XhComboboxItemDescription, XhComboboxItemIndicator, XhComboboxItemPrefix, XhComboboxItemSuffix, XhComboboxItemText, XhComboboxLabel, XhComboboxLoading, XhComboboxOverflowTag, XhComboboxPositioner, XhComboboxRoot, XhComboboxTag, XhComboboxTagLabel, XhComboboxTagList, XhComboboxTrigger, XhCommandContent, XhCommandEmpty, XhCommandFooter, XhCommandGroup, XhCommandGroupLabel, XhCommandInput, XhCommandItem, XhCommandItemDescription, XhCommandItemPrefix, XhCommandItemShortcut, XhCommandItemSuffix, XhCommandItemText, XhCommandList, XhCommandLoading, XhCommandRoot, XhCommandTrigger, type XhConfig, XhContextMenuArrow, XhContextMenuCheckboxItem, XhContextMenuContent, XhContextMenuGroup, XhContextMenuGroupLabel, XhContextMenuItem, XhContextMenuItemDescription, XhContextMenuItemIndicator, XhContextMenuItemShortcut, XhContextMenuItemSuffix, XhContextMenuItemText, XhContextMenuPositioner, XhContextMenuRadioGroup, XhContextMenuRadioItem, XhContextMenuRoot, XhContextMenuSeparator, XhContextMenuSub, XhContextMenuSubTrigger, XhContextMenuTrigger, XhDateFieldClearTrigger, XhDateFieldControl, XhDateFieldHiddenInput, XhDateFieldLabel, XhDateFieldRoot, XhDateFieldSegment, XhDateFieldSegmentGroup, XhDatePickerCalendar, XhDatePickerCell, XhDatePickerCellTrigger, XhDatePickerClearTrigger, XhDatePickerConfirmTrigger, XhDatePickerContent, XhDatePickerControl, XhDatePickerFooter, XhDatePickerGrid, XhDatePickerGridBody, XhDatePickerGridHead, XhDatePickerHeader, XhDatePickerHeading, XhDatePickerHeadingMonthTrigger, XhDatePickerHeadingYearTrigger, XhDatePickerHiddenInput, XhDatePickerItemDeleteTrigger, XhDatePickerLabel, XhDatePickerNextTrigger, XhDatePickerNextYearTrigger, XhDatePickerOverflowTag, XhDatePickerPositioner, XhDatePickerPreset, XhDatePickerPresetGroup, XhDatePickerPrevTrigger, XhDatePickerPrevYearTrigger, XhDatePickerRoot, XhDatePickerSegment, XhDatePickerSegmentGroup, XhDatePickerTag, XhDatePickerTagLabel, XhDatePickerTagList, XhDatePickerTimePanel, XhDatePickerTrigger, XhDatePickerWeekDay, XhDatePickerWeekNumber, XhDatePickerWeekRow, XhDateRangePickerCalendar, XhDateRangePickerCell, XhDateRangePickerCellTrigger, XhDateRangePickerClearTrigger, XhDateRangePickerConfirmTrigger, XhDateRangePickerContent, XhDateRangePickerControl, XhDateRangePickerFooter, XhDateRangePickerGrid, XhDateRangePickerGridBody, XhDateRangePickerGridHead, XhDateRangePickerHeader, XhDateRangePickerHeading, XhDateRangePickerHeadingMonthTrigger, XhDateRangePickerHeadingYearTrigger, XhDateRangePickerHiddenInput, XhDateRangePickerLabel, XhDateRangePickerNextTrigger, XhDateRangePickerNextYearTrigger, XhDateRangePickerPositioner, XhDateRangePickerPreset, XhDateRangePickerPresetGroup, XhDateRangePickerPrevTrigger, XhDateRangePickerPrevYearTrigger, XhDateRangePickerRangeSeparator, XhDateRangePickerRoot, XhDateRangePickerSegment, XhDateRangePickerSegmentGroup, XhDateRangePickerTimePanel, XhDateRangePickerTrigger, XhDateRangePickerWeekDay, XhDateRangePickerWeekNumber, XhDateRangePickerWeekRow, XhDescriptionsExtra, XhDescriptionsHeader, XhDescriptionsItem, XhDescriptionsLabel, XhDescriptionsRoot, XhDescriptionsTitle, XhDescriptionsValue, XhDialogBody, XhDialogCloseTrigger, XhDialogContent, XhDialogDescription, XhDialogDragTrigger, XhDialogFooter, XhDialogHeader, XhDialogIndicator, XhDialogRoot, XhDialogTitle, XhDialogTrigger, XhDiffViewBody, XhDiffViewEmpty, XhDiffViewHeader, XhDiffViewRoot, XhDiffViewSummary, XhDiffViewTruncation, XhDiffViewViewport, XhDownloadTrigger, XhDrawerBody, XhDrawerCloseTrigger, XhDrawerContent, XhDrawerDescription, XhDrawerFooter, XhDrawerHeader, XhDrawerResizeTrigger, XhDrawerRoot, XhDrawerTitle, XhDrawerTrigger, XhEditableCancelTrigger, XhEditableControl, XhEditableEditTrigger, XhEditableInput, XhEditableLabel, XhEditablePreview, XhEditableRoot, XhEditableSubmitTrigger, XhEmptyStateAction, XhEmptyStateDescription, XhEmptyStateIndicator, XhEmptyStateMedia, XhEmptyStateRoot, XhEmptyStateTitle, XhFieldArrayAddTrigger, XhFieldArrayItem, XhFieldArrayItemAction, XhFieldArrayItemContent, XhFieldArrayItemDeleteTrigger, XhFieldArrayItemLabel, XhFieldArrayMoveDownTrigger, XhFieldArrayMoveUpTrigger, XhFieldArrayRoot, XhFieldBoundary, XhFieldControl, XhFieldDescription, XhFieldErrorText, XhFieldLabel, XhFieldRoot, XhFieldsetActions, XhFieldsetDescription, XhFieldsetErrorText, XhFieldsetFieldGroup, XhFieldsetLegend, XhFieldsetRoot, XhFileUploadClearTrigger, XhFileUploadDropzone, XhFileUploadHiddenInput, XhFileUploadItem, XhFileUploadItemDeleteTrigger, XhFileUploadItemName, XhFileUploadItemPreview, XhFileUploadItemProgress, XhFileUploadItemSizeText, XhFileUploadLabel, XhFileUploadList, XhFileUploadRoot, XhFileUploadTrigger, XhFlex, XhFlexSplit, XhFloatButtonList, XhFloatButtonRoot, XhFloatButtonTrigger, XhFloatingPanelBody, XhFloatingPanelCloseTrigger, XhFloatingPanelContent, XhFloatingPanelDragTrigger, XhFloatingPanelHeader, XhFloatingPanelPositioner, XhFloatingPanelResizeTrigger, XhFloatingPanelRoot, XhFloatingPanelTitle, XhFloatingPanelTrigger, XhFloatingPanelWindowStateTrigger, XhFormErrorSummary, XhFormErrorSummaryItem, XhFormFieldGroup, XhFormResetTrigger, XhFormRoot, XhFormSubmitTrigger, XhFunnelChartCaption, XhFunnelChartEmpty, XhFunnelChartPlot, XhFunnelChartRoot, XhFunnelChartTooltip, XhFunnelChartViewport, XhGraphChartCaption, XhGraphChartEmpty, XhGraphChartLegend, XhGraphChartPlot, XhGraphChartRoot, XhGraphChartTooltip, XhGraphChartViewport, XhGridItem, XhGridListEmpty, XhGridListLabel, XhGridListLoading, XhGridListRoot, XhGridListRow, XhGridListRowAction, XhGridListRowActions, XhGridListRowContent, XhGridListRowDescription, XhGridListRowSelectionIndicator, XhGridListRowText, XhGridRoot, XhHeatmapCell, XhHeatmapColumnLabel, XhHeatmapGrid, XhHeatmapLegend, XhHeatmapLegendItem, XhHeatmapLegendLabel, XhHeatmapMonthBlock, XhHeatmapMonthLabel, XhHeatmapRoot, XhHeatmapRow, XhHeatmapRowLabel, XhHeatmapTooltip, XhHeatmapWeekDay, XhHierarchyChartCaption, XhHierarchyChartEmpty, XhHierarchyChartLegend, XhHierarchyChartPath, XhHierarchyChartPlot, XhHierarchyChartRoot, XhHierarchyChartTooltip, XhHierarchyChartViewport, XhHighlight, XhHoverCardArrow, XhHoverCardContent, XhHoverCardDescription, XhHoverCardPositioner, XhHoverCardRoot, XhHoverCardTitle, XhHoverCardTrigger, XhIcon, XhImageCropperCropArea, XhImageCropperCropHandle, XhImageCropperFlipTrigger, XhImageCropperGrid, XhImageCropperHiddenInput, XhImageCropperImage, XhImageCropperRoot, XhImageCropperRotateSlider, XhImageCropperViewport, XhImageCropperZoomSlider, XhImageFallback, XhImageImage, XhImagePlaceholder, XhImageRoot, XhImageViewerCloseTrigger, XhImageViewerContent, XhImageViewerCounter, XhImageViewerFlipHorizontalTrigger, XhImageViewerFlipVerticalTrigger, XhImageViewerImage, XhImageViewerNextTrigger, XhImageViewerPrevTrigger, XhImageViewerResetTrigger, XhImageViewerRoot, XhImageViewerRotateLeftTrigger, XhImageViewerRotateRightTrigger, XhImageViewerToolbar, XhImageViewerTrigger, XhImageViewerViewport, XhImageViewerZoomInTrigger, XhImageViewerZoomOutTrigger, XhInfiniteScrollLoadMoreTrigger, XhInfiniteScrollRoot, XhInfiniteScrollSentinel, XhInputGroupItem, XhInputGroupRoot, XhJsonViewerRoot, XhKbd, XhLayoutContent, XhLayoutFooter, XhLayoutHeader, XhLayoutRoot, XhLayoutSider, XhLayoutSiderBackdrop, XhLayoutSiderTrigger, XhListItem, XhListItemAction, XhListItemContent, XhListItemDescription, XhListItemMedia, XhListItemTitle, XhListRoot, XhListboxContent, XhListboxEmpty, XhListboxGroup, XhListboxGroupLabel, XhListboxItem, XhListboxItemDescription, XhListboxItemIndicator, XhListboxItemPrefix, XhListboxItemSuffix, XhListboxItemText, XhListboxLabel, XhListboxLoadMoreTrigger, XhListboxLoading, XhListboxRoot, XhLoadingBarPeg, XhLoadingBarRange, XhLoadingBarRoot, XhLoadingBarTrack, XhLogContent, XhLogLine, XhLogLiveRegion, XhLogRoot, XhLogScrollToEndTrigger, XhLogSegment, XhLogViewport, XhMarkdownStreamContent, XhMarkdownStreamLiveRegion, XhMarkdownStreamRoot, XhMarqueeAutoplayTrigger, XhMarqueeContent, XhMarqueeRoot, XhMasonry, XhMatrixCode, XhMatrixCodeLogo, XhMentionContent, XhMentionEmpty, XhMentionInput, XhMentionItem, XhMentionItemDescription, XhMentionItemPrefix, XhMentionItemSuffix, XhMentionItemText, XhMentionLabel, XhMentionLoading, XhMentionPositioner, XhMentionRoot, XhMenuArrow, XhMenuCheckboxItem, XhMenuContent, XhMenuGroup, XhMenuGroupLabel, XhMenuItem, XhMenuItemDescription, XhMenuItemIndicator, XhMenuItemShortcut, XhMenuItemSuffix, XhMenuItemText, XhMenuPositioner, XhMenuRadioGroup, XhMenuRadioItem, XhMenuRoot, XhMenuSeparator, XhMenuSub, XhMenuSubTrigger, XhMenuTrigger, XhMenubarArrow, XhMenubarCheckboxItem, XhMenubarContent, XhMenubarGroup, XhMenubarGroupLabel, XhMenubarItem, XhMenubarItemDescription, XhMenubarItemIndicator, XhMenubarItemShortcut, XhMenubarItemSuffix, XhMenubarItemText, XhMenubarPositioner, XhMenubarRadioGroup, XhMenubarRadioItem, XhMenubarRoot, XhMenubarSeparator, XhMenubarSub, XhMenubarSubTrigger, XhMenubarTrigger, XhMessageFeedItem, XhMessageFeedItemLabel, XhMessageFeedList, XhMessageFeedLiveRegion, XhMessageFeedPendingIndicator, XhMessageFeedRoot, XhMessageFeedScrollToEndTrigger, XhMessageFeedSeparator, XhMessageFeedUnreadCount, XhMessageFeedViewport, XhNavigationMenuBranchContent, XhNavigationMenuBranchIndicator, XhNavigationMenuBranchTrigger, XhNavigationMenuContent, XhNavigationMenuIndicator, XhNavigationMenuItem, XhNavigationMenuLink, XhNavigationMenuList, XhNavigationMenuRoot, XhNavigationMenuTrigger, XhNavigationMenuTriggerIndicator, XhNavigationMenuViewport, XhNotificationGroup, XhNotificationItem, XhNotificationItemActionTrigger, XhNotificationItemCloseTrigger, XhNotificationItemContent, XhNotificationItemDescription, XhNotificationItemIndicator, XhNotificationItemProgress, XhNotificationItemTitle, XhNotificationRoot, XhNumberAnimation, XhNumberFieldControl, XhNumberFieldDecrementTrigger, XhNumberFieldIncrementTrigger, XhNumberFieldInput, XhNumberFieldLabel, XhNumberFieldPrefix, XhNumberFieldRoot, XhNumberFieldSuffix, XhPageHeaderBackTrigger, XhPageHeaderBreadcrumb, XhPageHeaderDescription, XhPageHeaderExtra, XhPageHeaderFooter, XhPageHeaderMedia, XhPageHeaderRoot, XhPageHeaderTitle, XhPaginationContent, XhPaginationEllipsisTrigger, XhPaginationFirstTrigger, XhPaginationItem, XhPaginationJumper, XhPaginationLastTrigger, XhPaginationNextTrigger, XhPaginationPageSizeSelect, XhPaginationPositioner, XhPaginationPrevTrigger, XhPaginationRoot, XhPaginationSummary, XhPasswordInputCapsLockIndicator, XhPasswordInputControl, XhPasswordInputInput, XhPasswordInputLabel, XhPasswordInputRoot, XhPasswordInputStrengthMeter, XhPasswordInputVisibilityTrigger, XhPieChartCaption, XhPieChartCenter, XhPieChartEmpty, XhPieChartLegend, XhPieChartPlot, XhPieChartRoot, XhPieChartTooltip, XhPieChartViewport, XhPinInputGroup, XhPinInputHiddenInput, XhPinInputInput, XhPinInputLabel, XhPinInputRoot, XhPinInputSeparator, XhPopconfirmArrow, XhPopconfirmCancelTrigger, XhPopconfirmConfirmTrigger, XhPopconfirmContent, XhPopconfirmDescription, XhPopconfirmPositioner, XhPopconfirmRoot, XhPopconfirmTitle, XhPopconfirmTrigger, XhPopoverArrow, XhPopoverCloseTrigger, XhPopoverContent, XhPopoverDescription, XhPopoverPositioner, XhPopoverRoot, XhPopoverTitle, XhPopoverTrigger, XhProgress, XhPromptInputControl, XhPromptInputInput, XhPromptInputRoot, XhPromptInputSubmitTrigger, XhQuestionFlowCounter, XhQuestionFlowDescription, XhQuestionFlowFooter, XhQuestionFlowGroup, XhQuestionFlowItem, XhQuestionFlowItemDescription, XhQuestionFlowItemIndicator, XhQuestionFlowItemText, XhQuestionFlowLiveRegion, XhQuestionFlowNextTrigger, XhQuestionFlowNote, XhQuestionFlowPrevTrigger, XhQuestionFlowPrompt, XhQuestionFlowQuestion, XhQuestionFlowResult, XhQuestionFlowRoot, XhQuestionFlowSkipTrigger, XhQuestionFlowSubmitTrigger, XhQuestionFlowTrack, XhQuestionFlowViewport, XhRadarChartCaption, XhRadarChartEmpty, XhRadarChartLegend, XhRadarChartPlot, XhRadarChartRoot, XhRadarChartTooltip, XhRadarChartViewport, XhRadioGroupItem, XhRadioGroupItemDescription, XhRadioGroupItemIcon, XhRadioGroupItemText, XhRadioGroupLabel, XhRadioGroupRoot, XhRadioGroupThumb, XhRatingControl, XhRatingHiddenInput, XhRatingItem, XhRatingLabel, XhRatingRoot, XhRatingValueText, XhReasoningContent, XhReasoningDuration, XhReasoningIcon, XhReasoningIndicator, XhReasoningLabel, XhReasoningRoot, XhReasoningTrigger, XhResizableHandle, XhResizableRoot, XhSankeyChartCaption, XhSankeyChartEmpty, XhSankeyChartLegend, XhSankeyChartPlot, XhSankeyChartRoot, XhSankeyChartTooltip, XhSankeyChartViewport, XhScrollAreaContent, XhScrollAreaCorner, XhScrollAreaRoot, XhScrollAreaScrollbar, XhScrollAreaThumb, XhScrollAreaTrack, XhScrollAreaViewport, XhScrollbarCorner, XhScrollbarRoot, XhScrollbarThumb, XhScrollbarTrack, XhSelectClearTrigger, XhSelectContent, XhSelectControl, XhSelectEmpty, XhSelectFooter, XhSelectGroup, XhSelectGroupLabel, XhSelectIndicator, XhSelectItem, XhSelectItemDeleteTrigger, XhSelectItemDescription, XhSelectItemIndicator, XhSelectItemPrefix, XhSelectItemSuffix, XhSelectItemText, XhSelectLabel, XhSelectList, XhSelectLoading, XhSelectOverflowTag, XhSelectPositioner, XhSelectRoot, XhSelectTag, XhSelectTagLabel, XhSelectTagList, XhSelectTrigger, XhSelectValueText, XhSeparator, XhSeparatorContent, XhSeparatorLine, XhSeparatorRoot, XhSideNavBranch, XhSideNavBranchContent, XhSideNavBranchIndicator, XhSideNavBranchText, XhSideNavBranchTrigger, XhSideNavEmpty, XhSideNavGroup, XhSideNavGroupLabel, XhSideNavGroupList, XhSideNavInput, XhSideNavItem, XhSideNavLink, XhSideNavLinkText, XhSideNavList, XhSideNavRoot, XhSideNavTooltip, XhSignaturePadClearTrigger, XhSignaturePadControl, XhSignaturePadGuide, XhSignaturePadHiddenInput, XhSignaturePadLabel, XhSignaturePadPath, XhSignaturePadRedoTrigger, XhSignaturePadRoot, XhSignaturePadStatus, XhSignaturePadUndoTrigger, XhSkeletonItem, XhSkeletonRoot, XhSliderControl, XhSliderHiddenInput, XhSliderLabel, XhSliderRange, XhSliderRoot, XhSliderThumb, XhSliderTickGroup, XhSliderTrack, XhSliderValueText, XhSortableDropIndicator, XhSortableItem, XhSortableItemDragTrigger, XhSortableLiveRegion, XhSortableRoot, XhSparkline, XhSpinner, XhSpinnerLabel, XhSplitterPanel, XhSplitterResizeTrigger, XhSplitterRoot, XhStatisticLabel, XhStatisticPrefix, XhStatisticRoot, XhStatisticSuffix, XhStatisticTrend, XhStatisticValue, XhStepsContent, XhStepsDescription, XhStepsIndicator, XhStepsItem, XhStepsList, XhStepsRoot, XhStepsSeparator, XhStepsTitle, XhStepsTrigger, XhSwitch, XhTableBody, XhTableCaption, XhTableCell, XhTableColumnDragTrigger, XhTableColumnHeader, XhTableColumnLabel, XhTableColumnList, XhTableColumnResizeTrigger, XhTableColumnVisibilityTrigger, XhTableEmpty, XhTableExpandTrigger, XhTableExpandedRow, XhTableFooter, XhTableHeader, XhTableLoadMoreTrigger, XhTableLoading, XhTableRoot, XhTableRow, XhTableRowDragTrigger, XhTableRowSelectTrigger, XhTableSelectAllTrigger, XhTableSortTrigger, XhTableToolbar, XhTabsCloseTrigger, XhTabsContent, XhTabsIndicator, XhTabsList, XhTabsLiveRegion, XhTabsNextTrigger, XhTabsOverflowTrigger, XhTabsPrevTrigger, XhTabsRoot, XhTabsSeparator, XhTabsTabDragTrigger, XhTabsTrigger, XhTagCloseTrigger, XhTagGroupCell, XhTagGroupItem, XhTagGroupItemDeleteTrigger, XhTagGroupItemIndicator, XhTagGroupItemText, XhTagGroupLabel, XhTagGroupList, XhTagGroupRoot, XhTagLabel, XhTagRoot, XhTagsInputClearTrigger, XhTagsInputControl, XhTagsInputCount, XhTagsInputHiddenInput, XhTagsInputInput, XhTagsInputItem, XhTagsInputItemDeleteTrigger, XhTagsInputItemInput, XhTagsInputItemPreview, XhTagsInputItemText, XhTagsInputLabel, XhTagsInputRoot, XhTextFieldClearTrigger, XhTextFieldControl, XhTextFieldCount, XhTextFieldInput, XhTextFieldLabel, XhTextFieldPrefix, XhTextFieldRoot, XhTextFieldSuffix, XhTimeFieldClearTrigger, XhTimeFieldControl, XhTimeFieldHiddenInput, XhTimeFieldLabel, XhTimeFieldRoot, XhTimeFieldSegment, XhTimeFieldSegmentGroup, XhTimePickerClearTrigger, XhTimePickerColumn, XhTimePickerConfirmTrigger, XhTimePickerContent, XhTimePickerControl, XhTimePickerFooter, XhTimePickerHiddenInput, XhTimePickerItem, XhTimePickerItemDeleteTrigger, XhTimePickerLabel, XhTimePickerOverflowTag, XhTimePickerPositioner, XhTimePickerPreset, XhTimePickerPresetGroup, XhTimePickerRoot, XhTimePickerSegment, XhTimePickerSegmentGroup, XhTimePickerTag, XhTimePickerTagLabel, XhTimePickerTagList, XhTimePickerTrigger, XhTimeRangePickerClearTrigger, XhTimeRangePickerColumn, XhTimeRangePickerColumnGroup, XhTimeRangePickerColumnGroupLabel, XhTimeRangePickerContent, XhTimeRangePickerControl, XhTimeRangePickerHiddenInput, XhTimeRangePickerItem, XhTimeRangePickerLabel, XhTimeRangePickerPositioner, XhTimeRangePickerPreset, XhTimeRangePickerPresetGroup, XhTimeRangePickerRangeSeparator, XhTimeRangePickerRoot, XhTimeRangePickerSegment, XhTimeRangePickerSegmentGroup, XhTimeRangePickerTrigger, XhTimelineConnector, XhTimelineContent, XhTimelineDescription, XhTimelineIndicator, XhTimelineItem, XhTimelineLabel, XhTimelineRoot, XhTimelineTime, XhTimelineTitle, XhTimerControl, XhTimerDisplay, XhTimerItem, XhTimerRoot, XhTimerSeparator, XhTimestamp, XhToggle, XhToggleGroupHiddenInput, XhToggleGroupItem, XhToggleGroupRoot, XhToolCallApproval, XhToolCallContent, XhToolCallDuration, XhToolCallError, XhToolCallIndicator, XhToolCallInput, XhToolCallLabel, XhToolCallOutput, XhToolCallRoot, XhToolCallStatus, XhToolCallSummary, XhToolCallTrigger, XhToolbarGroup, XhToolbarItem, XhToolbarOverflowTrigger, XhToolbarRoot, XhToolbarSeparator, XhTooltipArrow, XhTooltipContent, XhTooltipPositioner, XhTooltipProvider, XhTooltipRoot, XhTooltipTrigger, XhTourArrow, XhTourBackdrop, XhTourCloseTrigger, XhTourContent, XhTourDescription, XhTourNextTrigger, XhTourPositioner, XhTourPrevTrigger, XhTourProgressDot, XhTourProgressIndicator, XhTourProgressText, XhTourRoot, XhTourSkipTrigger, XhTourSpotlight, XhTourTitle, XhTransferEmpty, XhTransferGroup, XhTransferGroupLabel, XhTransferItem, XhTransferItemCheckbox, XhTransferItemDescription, XhTransferItemSuffix, XhTransferItemText, XhTransferList, XhTransferLoading, XhTransferPanelCount, XhTransferPanelHeader, XhTransferPanelTitle, XhTransferRoot, XhTransferSearch, XhTransferSelectAllTrigger, XhTransferSourcePanel, XhTransferTargetPanel, XhTransferToSourceTrigger, XhTransferToTargetTrigger, type XhTranslationOverrides, XhTreeBranch, XhTreeBranchContent, XhTreeBranchControl, XhTreeBranchIndicator, XhTreeBranchText, XhTreeBranchTrigger, XhTreeEmpty, XhTreeItem, XhTreeItemDescription, XhTreeItemIndicator, XhTreeItemSuffix, XhTreeItemText, XhTreeLabel, XhTreeLiveRegion, XhTreeLoading, XhTreeNodeDragTrigger, XhTreeRoot, XhTreeSelectBranch, XhTreeSelectBranchContent, XhTreeSelectBranchControl, XhTreeSelectBranchEmpty, XhTreeSelectBranchError, XhTreeSelectBranchIndicator, XhTreeSelectBranchLoading, XhTreeSelectBranchRetryTrigger, XhTreeSelectBranchText, XhTreeSelectBranchTrigger, XhTreeSelectClearTrigger, XhTreeSelectContent, XhTreeSelectControl, XhTreeSelectEmpty, XhTreeSelectFooter, XhTreeSelectHiddenInput, XhTreeSelectIndicator, XhTreeSelectInput, XhTreeSelectItem, XhTreeSelectItemDeleteTrigger, XhTreeSelectItemDescription, XhTreeSelectItemIndicator, XhTreeSelectItemSuffix, XhTreeSelectItemText, XhTreeSelectLabel, XhTreeSelectLoading, XhTreeSelectOverflowTag, XhTreeSelectPositioner, XhTreeSelectRoot, XhTreeSelectTag, XhTreeSelectTagLabel, XhTreeSelectTagList, XhTreeSelectTree, XhTreeSelectTrigger, XhTreeSelectValueText, XhTreeTree, XhTruncate, XhTypographyHeading, XhTypographyLink, XhTypographyParagraph, XhTypographyProse, XhTypographyRoot, XhTypographyText, XhVirtualizerContent, XhVirtualizerItem, XhVirtualizerRoot, XhVirtualizerViewport, type XhVisualEnvironmentConfig, XhWatermarkContent, XhWatermarkRoot, clearFieldContext, createColumnStore, createDialogService, createLoadingBarService, createNotificationService, createVueIdGenerator, createVueRuntime, mergeXhConfig, provideAffix, provideApproval, provideAvatarGroup, provideBackTop, provideCitation, provideCitationSource, provideColorField, provideColorSlider, provideColorSwatchPicker, provideContextMenuSub, provideDescriptions, provideDiffView, provideField, provideFieldArray, provideFieldArrayItem, provideFlex, provideFloatButton, provideGrid, provideImageViewer, provideInfiniteScroll, provideInputGroup, provideLayout, provideList, provideLog, provideMarkdownStream, provideMarquee, provideMatrixCode, provideMention, provideMentionItem, provideMenu, provideMenuGroup, provideMenuSub, provideMenubarSub, provideMessageFeed, provideMessageFeedItem, provideNotification, provideNotificationItem, providePageHeader, providePopconfirm, providePromptInput, provideQuestionFlow, provideReasoning, provideResizable, provideScrollbar, provideSideNav, provideSideNavNode, provideSortable, provideStatistic, provideTimeline, provideTimelineItem, provideToolCall, provideTypography, provideWatermark, provideXhConfig, useAccordion, useAffix, useAffixContext, useAnchor, useApproval, useApprovalContext, useAvatar, useAvatarGroupContext, useBackTop, useBackTopContext, useBreadcrumb, useCalendarPicker, useCalendarRangePicker, useCarousel, useCartesianChart, useCascader, useCheckbox, useCheckboxGroup, useCitation, useCitationContext, useCitationSource, useClipboard, useCodeView, useCollapsible, useColorField, useColorFieldContext, useColorPicker, useColorSlider, useColorSliderContext, useColorSwatchPicker, useColorSwatchPickerContext, useCombobox, useCommand, useContextMenu, useContextMenuSubContext, useDateField, useDatePicker, useDateRangePicker, useDescriptionsContext, useDialog, useDiffView, useDiffViewContext, useDownloadTrigger, useDrawer, useEditable, useField, useFieldArray, useFieldArrayContext, useFieldArrayItemContext, useFieldContext, useFieldControl, useFieldGroupWiring, useFieldLabelWiring, useFieldStateWiring, useFieldset, useFieldsetContext, useFileUpload, useFlexContext, useFloatButton, useFloatButtonContext, useFloatingPanel, useFloatingPanelContext, useForm, useFunnelChart, useGraphChart, useGridContext, useGridList, useGridListContext, useGridListRow, useHeatmap, useHeatmapContext, useHierarchyChart, useHoverCard, useIcon, useImage, useImageCropper, useImageCropperContext, useImageViewer, useImageViewerContext, useInfiniteScroll, useInfiniteScrollContext, useInputGroupContext, useJsonViewer, useLayout, useLayoutContext, useListContext, useListbox, useLoadingBar, useLog, useLogContext, useMachine, useMarkdownStream, useMarkdownStreamContext, useMarqueeContext, useMatrixCodeContext, useMention, useMentionContext, useMentionItemContext, useMenu, useMenuContext, useMenuGroupContext, useMenuSubContext, useMenubar, useMenubarSubContext, useMessageFeed, useMessageFeedContext, useMessageFeedItemContext, useNavigationMenu, useNotification, useNotificationContext, useNotificationContextOptional, useNotificationItem, useNotificationItemContext, useNumberField, useOptionalFieldContext, usePageHeaderContext, usePagination, usePasswordInput, usePasswordInputContext, usePieChart, usePinInput, usePopconfirm, usePopconfirmContext, usePopover, usePromptInput, usePromptInputContext, useQuestionFlow, useQuestionFlowContext, useRadarChart, useRadioGroup, useRating, useReasoning, useReasoningContext, useResizable, useResizableContext, useSankeyChart, useScrollArea, useScrollbar, useScrollbarContext, useSelect, useSideNav, useSideNavContext, useSideNavNodeContext, useSignaturePad, useSignaturePadContext, useSlider, useSortable, useSortableContext, useSparkline, useSplitter, useStatisticContext, useSteps, useSwitch, useTable, useTabs, useTag, useTagContext, useTagGroup, useTagGroupContext, useTagGroupItemContext, useTagsInput, useTextField, useTimeField, useTimePicker, useTimeRangePicker, useTimelineContext, useTimelineItem, useTimer, useTimerContext, useToggle, useToggleGroup, useToolCall, useToolCallContext, useToolbar, useTooltip, useTour, useTransfer, useTree, useTreeSelect, useTruncate, useTypographyContext, useVirtualizer, useWatermarkContext, useXhConfig, vueNormalize, withXhConfig };
|
|
318
|
+
export { type AccordionContext, type AffixContext, type AffixRootSlotProps, type AlertOptions, type AnchorContext, type ApprovalCallbacks, type ApprovalContext, type ApprovalRootSlotProps, type ApprovalScopeSlotProps, type AvatarContext, type AvatarGroupContext, type BackTopContext, type BackTopRootSlotProps, type BreadcrumbContext, type CalendarPickerContext, type CalendarPickerRootSlotProps, type CalendarRangePickerContext, type CalendarRangePickerRootSlotProps, type CardContext, type CarouselContext, type CarouselRootSlotProps, type CartesianChartContext, type CartesianChartNotifiers, type CartesianChartRootSlotProps, type CartesianChartTooltipSlotProps, type CascaderContext, type CascaderRootSlotProps, type CascaderSearchListItemSlotProps, type CheckboxContext, type CheckboxGroupContext, type CheckboxGroupRootSlotProps, type CitationContext, type ClipboardContext, type ClipboardRootSlotProps, type CodeViewContext, type CodeViewLineSlotProps, type CodeViewRootSlotProps, type CollapsibleContext, type ColorFieldContext, type ColorFieldRootSlotProps, type ColorPickerContext, type ColorPickerRootSlotProps, type ColorSliderContext, type ColorSliderRootSlotProps, type ColorSwatchPickerContext, type ColorSwatchPickerRootSlotProps, type ColumnRow, type ColumnSource, type ColumnStore, type ColumnStoreOptions, type ColumnValue, type ComboboxContext, type ComboboxRootSlotProps, type CommandContext, type CommandRootSlotProps, type ConfirmOptions, type ContextMenuContext, type ContextMenuRootSlotProps, type ContextMenuSubHandle, type ContextMenuSubSlotProps, type DateFieldContext, type DateFieldRootSlotProps, type DateFieldSegmentSlotProps, type DatePickerContext, type DatePickerPresetsSlotProps, type DatePickerRootSlotProps, type DatePickerSegmentSlotProps, type DateRangePickerContext, type DateRangePickerPresetsSlotProps, type DateRangePickerRootSlotProps, type DateRangePickerSegmentSlotProps, type DescriptionsContext, type DialogActionError, type DialogBody, type DialogContext, type DialogRootSlotProps, type DialogService, type DialogServiceOptions, type DiffViewContext, type DiffViewRootSlotProps, type DownloadTriggerContext, type DownloadTriggerSlotProps, type DrawerContext, type DrawerRootSlotProps, type EditableCallbacks, type EditableContext, type EditableRootSlotProps, type FieldArrayContext, type FieldArrayItemContext, type FieldArrayRootSlotProps, type FieldContext, type FieldControlSlotProps, type FieldsetContext, type FileUploadContext, type FileUploadFile, type FileUploadRemoteFile, type FileUploadRequest, type FileUploadResult, type FileUploadRootSlotProps, type FileUploadSnapshot, type FileUploadStatus, type FileUploadValidateContext, type FlexContext, type FloatButtonContext, type FloatButtonRootSlotProps, type FloatingPanelContext, type FloatingPanelRootSlotProps, type FormCallbacks, type FormContext, type FormErrorSummaryItemSlotProps, type FormErrorSummarySlotProps, type FormFieldGroupSlotProps, type FormRootSlotProps, type FunnelChartContext, type FunnelChartNotifiers, type FunnelChartRootSlotProps, type FunnelChartTooltipSlotProps, type GraphChartContext, type GraphChartNotifiers, type GraphChartRootSlotProps, type GraphChartTooltipSlotProps, type GridContext, type GridListContext, type HeatmapCellSlotProps, type HeatmapContext, type HeatmapRootSlotProps, type HierarchyChartContext, type HierarchyChartNotifiers, type HierarchyChartRootSlotProps, type HierarchyChartTooltipSlotProps, type HoverCardContext, type HoverCardRootSlotProps, type IconContext, type ImageContext, type ImageCropperContext, type ImageCropperRootSlotProps, type ImageRootSlotProps, type ImageViewerContext, type ImageViewerRootSlotProps, type InfiniteScrollContext, type InfiniteScrollRootSlotProps, type InputGroupContext, type JsonViewerContext, type JsonViewerToolEvents, type JsonViewerToolbarSlotProps, type LayoutContext, type ListContext, type ListboxContext, type ListboxRootSlotProps, type LoadingBarContext, type LoadingBarRootSlotProps, type LoadingBarService, type LoadingBarServiceOptions, type LogContext, type LogRootSlotProps, type MarkdownStreamBlockSlotProps, type MarkdownStreamCitationSlotProps, type MarkdownStreamContext, type MarkdownStreamMathSlotProps, type MarkdownStreamRootSlotProps, type MarqueeContext, type MatrixCodeContext, type MentionContext, type MentionItemContext, type MentionRootSlotProps, type MenuContext, type MenuGroupContext, type MenuRootSlotProps, type MenuSubHandle, type MenuSubSlotProps, type MenubarContext, type MenubarPartRegistry, type MenubarRootSlotProps, type MenubarSubHandle, type MenubarSubSlotProps, type MessageFeedContext, type MessageFeedItemContext, type MessageFeedRootSlotProps, type NavigationMenuContext, type NotificationContext, type NotificationCreateOptions, type NotificationGroupSlotProps, type NotificationItemContext, type NotificationItemSlotProps, type NotificationMessageOptions, type NotificationPromiseOptions, type NotificationRootSlotProps, type NotificationService, type NotificationServiceOptions, type NumberAnimationSlotProps, type NumberFieldContext, type NumberFieldRootSlotProps, type PageHeaderContext, type PaginationContext, type PaginationRootSlotProps, type PasswordInputContext, type PasswordInputRootSlotProps, type PayloadOf, type PieChartCenterSlotProps, type PieChartContext, type PieChartNotifiers, type PieChartRootSlotProps, type PieChartTooltipSlotProps, type PinInputContext, type PinInputRootSlotProps, type PopconfirmContext, type PopconfirmRootSlotProps, type PopoverContext, type PopoverRootSlotProps, type PromptInputCallbacks, type PromptInputContext, type PromptInputRootSlotProps, type PromptOptions, type QuestionFlowCallbacks, type QuestionFlowContext, type QuestionFlowOptionSlotProps, type QuestionFlowRootSlotProps, type RadarChartContext, type RadarChartNotifiers, type RadarChartRootSlotProps, type RadarChartTooltipSlotProps, type RadioGroupContext, type RatingContext, type RatingItemSlotProps, type RatingRootSlotProps, type ReasoningContext, type ReasoningRootSlotProps, type ResizableContext, type ResizableRootSlotProps, type SankeyChartContext, type SankeyChartNotifiers, type SankeyChartRootSlotProps, type SankeyChartTooltipSlotProps, type ScrollAreaContext, type ScrollAreaRootSlotProps, type ScrollbarContext, type ScrollbarRootSlotProps, type ScrollbarSource, type ScrollbarTarget, type SelectContext, type SelectRootSlotProps, type SideNavContext, type SideNavNode, type SideNavRootSlotProps, type SignaturePadContext, type SignaturePadRootSlotProps, type SliderContext, type SliderRootSlotProps, type SliderTickGroupTickSlotProps, type SortableContext, type SortableItemSlotProps, type SortableRootSlotProps, type SparklineContext, type SplitterContext, type SplitterRootSlotProps, type StatisticContext, type StepsContext, type StepsRootSlotProps, type SwitchContext, type TableContext, type TableRootSlotProps, type TableToolbarSlotProps, type TabsContext, type TagContext, type TagGroupContext, type TagGroupItemContext, type TagGroupRootSlotProps, type TagsInputContext, type TagsInputCountSlotProps, type TagsInputRootSlotProps, type TextFieldContext, type TextFieldCountSlotProps, type TextFieldRootSlotProps, type TimeFieldContext, type TimeFieldRootSlotProps, type TimePickerColumnSlotProps, type TimePickerContext, type TimePickerPresetsSlotProps, type TimePickerRootSlotProps, type TimeRangePickerColumnGroupSlotProps, type TimeRangePickerColumnSlotProps, type TimeRangePickerContext, type TimeRangePickerPresetsSlotProps, type TimeRangePickerRootSlotProps, type TimelineContext, type TimerContext, type TimerRootSlotProps, type ToggleContext, type ToggleGroupContext, type ToolCallContext, type ToolCallRootSlotProps, type ToolbarContext, type ToolbarRootSlotProps, type TooltipContext, type TooltipRootSlotProps, type TourContext, type TourRootSlotProps, type TransferContext, type TransferPanelSlotProps, type TransferRootSlotProps, type TreeContext, type TreeRootSlotProps, type TreeSelectContext, type TreeSelectRootSlotProps, type TruncateContext, type TruncateSlotProps, type TruncateTriggerSlotProps, type TypographyContext, type VirtualizerContext, type VirtualizerRootSlotProps, type WatermarkContext, XhAccordionContent, XhAccordionHeader, XhAccordionIndicator, XhAccordionItem, XhAccordionItemSeparator, XhAccordionRoot, XhAccordionTrigger, XhAffixContent, XhAffixRoot, XhAlertAction, XhAlertCloseTrigger, XhAlertContent, XhAlertDescription, XhAlertIndicator, XhAlertRoot, XhAlertTitle, XhAnchorIndicator, XhAnchorItem, XhAnchorLink, XhAnchorLinkText, XhAnchorList, XhAnchorRoot, XhApprovalApproveTrigger, XhApprovalDenyTrigger, XhApprovalDescription, XhApprovalFooter, XhApprovalGroup, XhApprovalItem, XhApprovalItemIndicator, XhApprovalItemText, XhApprovalLiveRegion, XhApprovalNote, XhApprovalPendingIndicator, XhApprovalResult, XhApprovalRoot, XhApprovalTimer, XhApprovalTitle, XhAvatarFallback, XhAvatarGroupOverflowItem, XhAvatarGroupRoot, XhAvatarImage, XhAvatarRoot, XhBackTopRoot, XhBackTopTrigger, XhBadge, XhBadgeIndicator, XhBadgeRoot, XhBarCode, XhBreadcrumbEllipsis, XhBreadcrumbEllipsisTrigger, XhBreadcrumbItem, XhBreadcrumbLink, XhBreadcrumbLinkIcon, XhBreadcrumbList, XhBreadcrumbRoot, XhBreadcrumbSeparator, XhButton, XhButtonGroup, XhButtonIndicator, XhButtonLabel, XhButtonPrefix, XhButtonSuffix, XhCalendarPickerCell, XhCalendarPickerCellTrigger, XhCalendarPickerGrid, XhCalendarPickerGridBody, XhCalendarPickerGridHead, XhCalendarPickerHeader, XhCalendarPickerHeading, XhCalendarPickerHeadingMonthTrigger, XhCalendarPickerHeadingYearTrigger, XhCalendarPickerNextTrigger, XhCalendarPickerNextYearTrigger, XhCalendarPickerPrevTrigger, XhCalendarPickerPrevYearTrigger, XhCalendarPickerRoot, XhCalendarPickerWeekDay, XhCalendarPickerWeekNumber, XhCalendarPickerWeekRow, XhCalendarRangePickerCell, XhCalendarRangePickerCellTrigger, XhCalendarRangePickerGrid, XhCalendarRangePickerGridBody, XhCalendarRangePickerGridHead, XhCalendarRangePickerHeader, XhCalendarRangePickerHeading, XhCalendarRangePickerHeadingMonthTrigger, XhCalendarRangePickerHeadingYearTrigger, XhCalendarRangePickerNextTrigger, XhCalendarRangePickerNextYearTrigger, XhCalendarRangePickerPrevTrigger, XhCalendarRangePickerPrevYearTrigger, XhCalendarRangePickerRoot, XhCalendarRangePickerWeekDay, XhCalendarRangePickerWeekNumber, XhCalendarRangePickerWeekRow, XhCardContent, XhCardDescription, XhCardFooter, XhCardHeader, XhCardRoot, XhCardTitle, XhCardTrigger, XhCarouselAutoplayTrigger, XhCarouselIndicator, XhCarouselIndicatorGroup, XhCarouselItem, XhCarouselList, XhCarouselNextTrigger, XhCarouselPrevTrigger, XhCarouselRoot, XhCarouselViewport, XhCartesianChartCaption, XhCartesianChartEmpty, XhCartesianChartLegend, XhCartesianChartPlot, XhCartesianChartRoot, XhCartesianChartTooltip, XhCartesianChartViewport, XhCartesianChartZoomSlider, XhCascaderClearTrigger, XhCascaderColumn, XhCascaderContent, XhCascaderControl, XhCascaderFooter, XhCascaderGroup, XhCascaderGroupLabel, XhCascaderIndicator, XhCascaderInput, XhCascaderItem, XhCascaderItemDeleteTrigger, XhCascaderItemDescription, XhCascaderItemIndicator, XhCascaderItemSuffix, XhCascaderItemText, XhCascaderLabel, XhCascaderLoading, XhCascaderOverflowTag, XhCascaderPositioner, XhCascaderRoot, XhCascaderSearchList, XhCascaderTag, XhCascaderTagLabel, XhCascaderTagList, XhCascaderTrigger, XhCascaderValueText, XhCheckbox, XhCheckboxGroupIndicator, XhCheckboxGroupItem, XhCheckboxGroupItemDescription, XhCheckboxGroupItemText, XhCheckboxGroupLabel, XhCheckboxGroupRoot, XhCheckboxGroupSelectAllTrigger, XhCitationList, XhCitationPositioner, XhCitationPreview, XhCitationRoot, XhCitationSource, XhCitationSourceIndex, XhCitationSourceLink, XhCitationSourceMeta, XhCitationSourceTitle, XhCitationText, XhCitationTrigger, XhClipboardControl, XhClipboardCopyTrigger, XhClipboardIndicator, XhClipboardInput, XhClipboardLabel, XhClipboardRoot, XhClipboardStatus, XhCodeViewCode, XhCodeViewFilename, XhCodeViewFoldTrigger, XhCodeViewHeader, XhCodeViewLangLabel, XhCodeViewPre, XhCodeViewRoot, XhCollapsibleContent, XhCollapsibleHeader, XhCollapsibleIndicator, XhCollapsibleRoot, XhCollapsibleTrigger, XhColorFieldClearTrigger, XhColorFieldControl, XhColorFieldHiddenInput, XhColorFieldInput, XhColorFieldLabel, XhColorFieldRoot, XhColorFieldSwatch, XhColorPickerAlphaSlider, XhColorPickerAreaThumb, XhColorPickerChannelInput, XhColorPickerConfirmTrigger, XhColorPickerContent, XhColorPickerControl, XhColorPickerEyeDropperTrigger, XhColorPickerHiddenInput, XhColorPickerHueSlider, XhColorPickerItemDeleteTrigger, XhColorPickerLabel, XhColorPickerOverflowTag, XhColorPickerPositioner, XhColorPickerRecentSwatchPicker, XhColorPickerRoot, XhColorPickerSaturationArea, XhColorPickerSwatch, XhColorPickerSwatchPicker, XhColorPickerTag, XhColorPickerTagLabel, XhColorPickerTagList, XhColorPickerTrigger, XhColorPickerValueText, XhColorSliderControl, XhColorSliderHiddenInput, XhColorSliderLabel, XhColorSliderRoot, XhColorSliderThumb, XhColorSliderTrack, XhColorSliderValueText, XhColorSwatch, XhColorSwatchPickerItem, XhColorSwatchPickerLabel, XhColorSwatchPickerRoot, XhComboboxClearTrigger, XhComboboxContent, XhComboboxControl, XhComboboxEmpty, XhComboboxGroup, XhComboboxGroupLabel, XhComboboxHiddenInput, XhComboboxInput, XhComboboxItem, XhComboboxItemDeleteTrigger, XhComboboxItemDescription, XhComboboxItemIndicator, XhComboboxItemPrefix, XhComboboxItemSuffix, XhComboboxItemText, XhComboboxLabel, XhComboboxLoading, XhComboboxOverflowTag, XhComboboxPositioner, XhComboboxRoot, XhComboboxTag, XhComboboxTagLabel, XhComboboxTagList, XhComboboxTrigger, XhCommandContent, XhCommandEmpty, XhCommandFooter, XhCommandGroup, XhCommandGroupLabel, XhCommandInput, XhCommandItem, XhCommandItemDescription, XhCommandItemPrefix, XhCommandItemShortcut, XhCommandItemSuffix, XhCommandItemText, XhCommandList, XhCommandLoading, XhCommandRoot, XhCommandTrigger, type XhConfig, XhContextMenuArrow, XhContextMenuCheckboxItem, XhContextMenuContent, XhContextMenuGroup, XhContextMenuGroupLabel, XhContextMenuItem, XhContextMenuItemDescription, XhContextMenuItemIndicator, XhContextMenuItemShortcut, XhContextMenuItemSuffix, XhContextMenuItemText, XhContextMenuPositioner, XhContextMenuRadioGroup, XhContextMenuRadioItem, XhContextMenuRoot, XhContextMenuSeparator, XhContextMenuSub, XhContextMenuSubTrigger, XhContextMenuTrigger, XhDateFieldClearTrigger, XhDateFieldControl, XhDateFieldHiddenInput, XhDateFieldLabel, XhDateFieldRoot, XhDateFieldSegment, XhDateFieldSegmentGroup, XhDatePickerCalendar, XhDatePickerCell, XhDatePickerCellTrigger, XhDatePickerClearTrigger, XhDatePickerConfirmTrigger, XhDatePickerContent, XhDatePickerControl, XhDatePickerFooter, XhDatePickerGrid, XhDatePickerGridBody, XhDatePickerGridHead, XhDatePickerHeader, XhDatePickerHeading, XhDatePickerHeadingMonthTrigger, XhDatePickerHeadingYearTrigger, XhDatePickerHiddenInput, XhDatePickerItemDeleteTrigger, XhDatePickerLabel, XhDatePickerNextTrigger, XhDatePickerNextYearTrigger, XhDatePickerOverflowTag, XhDatePickerPositioner, XhDatePickerPreset, XhDatePickerPresetGroup, XhDatePickerPrevTrigger, XhDatePickerPrevYearTrigger, XhDatePickerRoot, XhDatePickerSegment, XhDatePickerSegmentGroup, XhDatePickerTag, XhDatePickerTagLabel, XhDatePickerTagList, XhDatePickerTimePanel, XhDatePickerTrigger, XhDatePickerWeekDay, XhDatePickerWeekNumber, XhDatePickerWeekRow, XhDateRangePickerCalendar, XhDateRangePickerCell, XhDateRangePickerCellTrigger, XhDateRangePickerClearTrigger, XhDateRangePickerConfirmTrigger, XhDateRangePickerContent, XhDateRangePickerControl, XhDateRangePickerFooter, XhDateRangePickerGrid, XhDateRangePickerGridBody, XhDateRangePickerGridHead, XhDateRangePickerHeader, XhDateRangePickerHeading, XhDateRangePickerHeadingMonthTrigger, XhDateRangePickerHeadingYearTrigger, XhDateRangePickerHiddenInput, XhDateRangePickerLabel, XhDateRangePickerNextTrigger, XhDateRangePickerNextYearTrigger, XhDateRangePickerPositioner, XhDateRangePickerPreset, XhDateRangePickerPresetGroup, XhDateRangePickerPrevTrigger, XhDateRangePickerPrevYearTrigger, XhDateRangePickerRangeSeparator, XhDateRangePickerRoot, XhDateRangePickerSegment, XhDateRangePickerSegmentGroup, XhDateRangePickerTimePanel, XhDateRangePickerTrigger, XhDateRangePickerWeekDay, XhDateRangePickerWeekNumber, XhDateRangePickerWeekRow, XhDescriptionsExtra, XhDescriptionsHeader, XhDescriptionsItem, XhDescriptionsLabel, XhDescriptionsRoot, XhDescriptionsTitle, XhDescriptionsValue, XhDialogBody, XhDialogCloseTrigger, XhDialogContent, XhDialogDescription, XhDialogDragTrigger, XhDialogFooter, XhDialogHeader, XhDialogIndicator, XhDialogRoot, XhDialogTitle, XhDialogTrigger, XhDiffViewBody, XhDiffViewEmpty, XhDiffViewHeader, XhDiffViewRoot, XhDiffViewSummary, XhDiffViewTruncation, XhDiffViewViewport, XhDownloadTrigger, XhDrawerBody, XhDrawerCloseTrigger, XhDrawerContent, XhDrawerDescription, XhDrawerFooter, XhDrawerHeader, XhDrawerResizeTrigger, XhDrawerRoot, XhDrawerTitle, XhDrawerTrigger, XhEditableCancelTrigger, XhEditableControl, XhEditableEditTrigger, XhEditableInput, XhEditableLabel, XhEditablePreview, XhEditableRoot, XhEditableSubmitTrigger, XhEmptyStateAction, XhEmptyStateDescription, XhEmptyStateIndicator, XhEmptyStateMedia, XhEmptyStateRoot, XhEmptyStateTitle, XhFieldArrayAddTrigger, XhFieldArrayItem, XhFieldArrayItemAction, XhFieldArrayItemContent, XhFieldArrayItemDeleteTrigger, XhFieldArrayItemLabel, XhFieldArrayMoveDownTrigger, XhFieldArrayMoveUpTrigger, XhFieldArrayRoot, XhFieldBoundary, XhFieldControl, XhFieldDescription, XhFieldErrorText, XhFieldLabel, XhFieldRoot, XhFieldsetActions, XhFieldsetDescription, XhFieldsetErrorText, XhFieldsetFieldGroup, XhFieldsetLegend, XhFieldsetRoot, XhFileUploadClearTrigger, XhFileUploadDropzone, XhFileUploadHiddenInput, XhFileUploadItem, XhFileUploadItemDeleteTrigger, XhFileUploadItemName, XhFileUploadItemPreview, XhFileUploadItemProgress, XhFileUploadItemSizeText, XhFileUploadLabel, XhFileUploadList, XhFileUploadRoot, XhFileUploadTrigger, XhFlex, XhFlexSplit, XhFloatButtonList, XhFloatButtonRoot, XhFloatButtonTrigger, XhFloatingPanelBody, XhFloatingPanelCloseTrigger, XhFloatingPanelContent, XhFloatingPanelDragTrigger, XhFloatingPanelHeader, XhFloatingPanelPositioner, XhFloatingPanelResizeTrigger, XhFloatingPanelRoot, XhFloatingPanelTitle, XhFloatingPanelTrigger, XhFloatingPanelWindowStateTrigger, XhFormErrorSummary, XhFormErrorSummaryItem, XhFormFieldGroup, XhFormResetTrigger, XhFormRoot, XhFormSubmitTrigger, XhFunnelChartCaption, XhFunnelChartEmpty, XhFunnelChartPlot, XhFunnelChartRoot, XhFunnelChartTooltip, XhFunnelChartViewport, XhGraphChartCaption, XhGraphChartEmpty, XhGraphChartLegend, XhGraphChartPlot, XhGraphChartRoot, XhGraphChartTooltip, XhGraphChartViewport, XhGridItem, XhGridListEmpty, XhGridListLabel, XhGridListLoading, XhGridListRoot, XhGridListRow, XhGridListRowAction, XhGridListRowActions, XhGridListRowContent, XhGridListRowDescription, XhGridListRowSelectionIndicator, XhGridListRowText, XhGridRoot, XhHeatmapCell, XhHeatmapColumnLabel, XhHeatmapGrid, XhHeatmapLegend, XhHeatmapLegendItem, XhHeatmapLegendLabel, XhHeatmapMonthBlock, XhHeatmapMonthLabel, XhHeatmapRoot, XhHeatmapRow, XhHeatmapRowLabel, XhHeatmapTooltip, XhHeatmapWeekDay, XhHierarchyChartCaption, XhHierarchyChartEmpty, XhHierarchyChartLegend, XhHierarchyChartPath, XhHierarchyChartPlot, XhHierarchyChartRoot, XhHierarchyChartTooltip, XhHierarchyChartViewport, XhHighlight, XhHoverCardArrow, XhHoverCardContent, XhHoverCardDescription, XhHoverCardPositioner, XhHoverCardRoot, XhHoverCardTitle, XhHoverCardTrigger, XhIcon, XhImageCropperCropArea, XhImageCropperCropHandle, XhImageCropperFlipTrigger, XhImageCropperGrid, XhImageCropperHiddenInput, XhImageCropperImage, XhImageCropperRoot, XhImageCropperRotateSlider, XhImageCropperViewport, XhImageCropperZoomSlider, XhImageFallback, XhImageImage, XhImagePlaceholder, XhImageRoot, XhImageViewerCloseTrigger, XhImageViewerContent, XhImageViewerCounter, XhImageViewerFlipHorizontalTrigger, XhImageViewerFlipVerticalTrigger, XhImageViewerImage, XhImageViewerNextTrigger, XhImageViewerPrevTrigger, XhImageViewerResetTrigger, XhImageViewerRoot, XhImageViewerRotateLeftTrigger, XhImageViewerRotateRightTrigger, XhImageViewerToolbar, XhImageViewerTrigger, XhImageViewerViewport, XhImageViewerZoomInTrigger, XhImageViewerZoomOutTrigger, XhInfiniteScrollLoadMoreTrigger, XhInfiniteScrollRoot, XhInfiniteScrollSentinel, XhInputGroupItem, XhInputGroupRoot, XhJsonViewerRoot, XhKbd, XhLayoutContent, XhLayoutFooter, XhLayoutHeader, XhLayoutRoot, XhLayoutSider, XhLayoutSiderBackdrop, XhLayoutSiderTrigger, XhListItem, XhListItemAction, XhListItemContent, XhListItemDescription, XhListItemMedia, XhListItemTitle, XhListRoot, XhListboxContent, XhListboxEmpty, XhListboxGroup, XhListboxGroupLabel, XhListboxItem, XhListboxItemDescription, XhListboxItemIndicator, XhListboxItemPrefix, XhListboxItemSuffix, XhListboxItemText, XhListboxLabel, XhListboxLoadMoreTrigger, XhListboxLoading, XhListboxRoot, XhLoadingBarPeg, XhLoadingBarRange, XhLoadingBarRoot, XhLoadingBarTrack, XhLogContent, XhLogLine, XhLogLiveRegion, XhLogRoot, XhLogScrollToEndTrigger, XhLogSegment, XhLogViewport, XhMarkdownStreamContent, XhMarkdownStreamLiveRegion, XhMarkdownStreamRoot, XhMarqueeAutoplayTrigger, XhMarqueeContent, XhMarqueeRoot, XhMasonry, XhMatrixCode, XhMatrixCodeLogo, XhMentionContent, XhMentionEmpty, XhMentionInput, XhMentionItem, XhMentionItemDescription, XhMentionItemPrefix, XhMentionItemSuffix, XhMentionItemText, XhMentionLabel, XhMentionLoading, XhMentionPositioner, XhMentionRoot, XhMenuArrow, XhMenuCheckboxItem, XhMenuContent, XhMenuGroup, XhMenuGroupLabel, XhMenuItem, XhMenuItemDescription, XhMenuItemIndicator, XhMenuItemShortcut, XhMenuItemSuffix, XhMenuItemText, XhMenuPositioner, XhMenuRadioGroup, XhMenuRadioItem, XhMenuRoot, XhMenuSeparator, XhMenuSub, XhMenuSubTrigger, XhMenuTrigger, XhMenubarArrow, XhMenubarCheckboxItem, XhMenubarContent, XhMenubarGroup, XhMenubarGroupLabel, XhMenubarItem, XhMenubarItemDescription, XhMenubarItemIndicator, XhMenubarItemShortcut, XhMenubarItemSuffix, XhMenubarItemText, XhMenubarPositioner, XhMenubarRadioGroup, XhMenubarRadioItem, XhMenubarRoot, XhMenubarSeparator, XhMenubarSub, XhMenubarSubTrigger, XhMenubarTrigger, XhMessageFeedItem, XhMessageFeedItemLabel, XhMessageFeedList, XhMessageFeedLiveRegion, XhMessageFeedPendingIndicator, XhMessageFeedRoot, XhMessageFeedScrollToEndTrigger, XhMessageFeedSeparator, XhMessageFeedUnreadCount, XhMessageFeedViewport, XhNavigationMenuBranchContent, XhNavigationMenuBranchIndicator, XhNavigationMenuBranchTrigger, XhNavigationMenuContent, XhNavigationMenuIndicator, XhNavigationMenuItem, XhNavigationMenuLink, XhNavigationMenuList, XhNavigationMenuRoot, XhNavigationMenuTrigger, XhNavigationMenuTriggerIndicator, XhNavigationMenuViewport, XhNotificationGroup, XhNotificationItem, XhNotificationItemActionTrigger, XhNotificationItemCloseTrigger, XhNotificationItemContent, XhNotificationItemDescription, XhNotificationItemIndicator, XhNotificationItemProgress, XhNotificationItemTitle, XhNotificationRoot, XhNumberAnimation, XhNumberFieldControl, XhNumberFieldDecrementTrigger, XhNumberFieldIncrementTrigger, XhNumberFieldInput, XhNumberFieldLabel, XhNumberFieldPrefix, XhNumberFieldRoot, XhNumberFieldSuffix, XhPageHeaderBackTrigger, XhPageHeaderBreadcrumb, XhPageHeaderDescription, XhPageHeaderExtra, XhPageHeaderFooter, XhPageHeaderMedia, XhPageHeaderRoot, XhPageHeaderTitle, XhPaginationContent, XhPaginationEllipsisTrigger, XhPaginationFirstTrigger, XhPaginationItem, XhPaginationJumper, XhPaginationLastTrigger, XhPaginationNextTrigger, XhPaginationPageSizeSelect, XhPaginationPositioner, XhPaginationPrevTrigger, XhPaginationRoot, XhPaginationSummary, XhPasswordInputCapsLockIndicator, XhPasswordInputControl, XhPasswordInputInput, XhPasswordInputLabel, XhPasswordInputRoot, XhPasswordInputStrengthMeter, XhPasswordInputVisibilityTrigger, XhPieChartCaption, XhPieChartCenter, XhPieChartEmpty, XhPieChartLegend, XhPieChartPlot, XhPieChartRoot, XhPieChartTooltip, XhPieChartViewport, XhPinInputGroup, XhPinInputHiddenInput, XhPinInputInput, XhPinInputLabel, XhPinInputRoot, XhPinInputSeparator, XhPopconfirmArrow, XhPopconfirmCancelTrigger, XhPopconfirmConfirmTrigger, XhPopconfirmContent, XhPopconfirmDescription, XhPopconfirmPositioner, XhPopconfirmRoot, XhPopconfirmTitle, XhPopconfirmTrigger, XhPopoverArrow, XhPopoverCloseTrigger, XhPopoverContent, XhPopoverDescription, XhPopoverPositioner, XhPopoverRoot, XhPopoverTitle, XhPopoverTrigger, XhProgress, XhPromptInputControl, XhPromptInputInput, XhPromptInputRoot, XhPromptInputSubmitTrigger, XhQuestionFlowCounter, XhQuestionFlowDescription, XhQuestionFlowFooter, XhQuestionFlowGroup, XhQuestionFlowItem, XhQuestionFlowItemDescription, XhQuestionFlowItemIndicator, XhQuestionFlowItemText, XhQuestionFlowLiveRegion, XhQuestionFlowNextTrigger, XhQuestionFlowNote, XhQuestionFlowPrevTrigger, XhQuestionFlowPrompt, XhQuestionFlowQuestion, XhQuestionFlowResult, XhQuestionFlowRoot, XhQuestionFlowSkipTrigger, XhQuestionFlowSubmitTrigger, XhQuestionFlowTrack, XhQuestionFlowViewport, XhRadarChartCaption, XhRadarChartEmpty, XhRadarChartLegend, XhRadarChartPlot, XhRadarChartRoot, XhRadarChartTooltip, XhRadarChartViewport, XhRadioGroupItem, XhRadioGroupItemDescription, XhRadioGroupItemIcon, XhRadioGroupItemText, XhRadioGroupLabel, XhRadioGroupRoot, XhRadioGroupThumb, XhRatingControl, XhRatingHiddenInput, XhRatingItem, XhRatingLabel, XhRatingRoot, XhRatingValueText, XhReasoningContent, XhReasoningDuration, XhReasoningIcon, XhReasoningIndicator, XhReasoningLabel, XhReasoningRoot, XhReasoningTrigger, XhResizableHandle, XhResizableRoot, XhSankeyChartCaption, XhSankeyChartEmpty, XhSankeyChartLegend, XhSankeyChartPlot, XhSankeyChartRoot, XhSankeyChartTooltip, XhSankeyChartViewport, XhScrollAreaContent, XhScrollAreaCorner, XhScrollAreaRoot, XhScrollAreaScrollbar, XhScrollAreaThumb, XhScrollAreaTrack, XhScrollAreaViewport, XhScrollbarCorner, XhScrollbarRoot, XhScrollbarThumb, XhScrollbarTrack, XhSelectClearTrigger, XhSelectContent, XhSelectControl, XhSelectEmpty, XhSelectFooter, XhSelectGroup, XhSelectGroupLabel, XhSelectIndicator, XhSelectItem, XhSelectItemDeleteTrigger, XhSelectItemDescription, XhSelectItemIndicator, XhSelectItemPrefix, XhSelectItemSuffix, XhSelectItemText, XhSelectLabel, XhSelectList, XhSelectLoading, XhSelectOverflowTag, XhSelectPositioner, XhSelectRoot, XhSelectTag, XhSelectTagLabel, XhSelectTagList, XhSelectTrigger, XhSelectValueText, XhSeparator, XhSeparatorContent, XhSeparatorLine, XhSeparatorRoot, XhSideNavBranch, XhSideNavBranchContent, XhSideNavBranchIndicator, XhSideNavBranchText, XhSideNavBranchTrigger, XhSideNavEmpty, XhSideNavGroup, XhSideNavGroupLabel, XhSideNavGroupList, XhSideNavInput, XhSideNavItem, XhSideNavLink, XhSideNavLinkText, XhSideNavList, XhSideNavRoot, XhSideNavTooltip, XhSignaturePadClearTrigger, XhSignaturePadControl, XhSignaturePadGuide, XhSignaturePadHiddenInput, XhSignaturePadLabel, XhSignaturePadPath, XhSignaturePadRedoTrigger, XhSignaturePadRoot, XhSignaturePadStatus, XhSignaturePadUndoTrigger, XhSkeletonItem, XhSkeletonRoot, XhSliderControl, XhSliderHiddenInput, XhSliderLabel, XhSliderRange, XhSliderRoot, XhSliderThumb, XhSliderTickGroup, XhSliderTrack, XhSliderValueText, XhSortableDropIndicator, XhSortableItem, XhSortableItemDragTrigger, XhSortableLiveRegion, XhSortableRoot, XhSparkline, XhSpinner, XhSpinnerLabel, XhSplitterPanel, XhSplitterResizeTrigger, XhSplitterRoot, XhStatisticLabel, XhStatisticPrefix, XhStatisticRoot, XhStatisticSuffix, XhStatisticTrend, XhStatisticValue, XhStepsContent, XhStepsDescription, XhStepsIndicator, XhStepsItem, XhStepsList, XhStepsRoot, XhStepsSeparator, XhStepsTitle, XhStepsTrigger, XhSwitch, XhTableBody, XhTableCaption, XhTableCell, XhTableColumnDragTrigger, XhTableColumnHeader, XhTableColumnLabel, XhTableColumnList, XhTableColumnResizeTrigger, XhTableColumnVisibilityTrigger, XhTableEmpty, XhTableExpandTrigger, XhTableExpandedRow, XhTableFooter, XhTableHeader, XhTableLoadMoreTrigger, XhTableLoading, XhTableRoot, XhTableRow, XhTableRowDragTrigger, XhTableRowSelectTrigger, XhTableSelectAllTrigger, XhTableSortTrigger, XhTableToolbar, XhTabsCloseTrigger, XhTabsContent, XhTabsIndicator, XhTabsList, XhTabsLiveRegion, XhTabsNextTrigger, XhTabsOverflowTrigger, XhTabsPrevTrigger, XhTabsRoot, XhTabsSeparator, XhTabsTabDragTrigger, XhTabsTrigger, XhTagCloseTrigger, XhTagGroupCell, XhTagGroupItem, XhTagGroupItemDeleteTrigger, XhTagGroupItemIndicator, XhTagGroupItemText, XhTagGroupLabel, XhTagGroupList, XhTagGroupRoot, XhTagLabel, XhTagRoot, XhTagsInputClearTrigger, XhTagsInputControl, XhTagsInputCount, XhTagsInputHiddenInput, XhTagsInputInput, XhTagsInputItem, XhTagsInputItemDeleteTrigger, XhTagsInputItemInput, XhTagsInputItemPreview, XhTagsInputItemText, XhTagsInputLabel, XhTagsInputRoot, XhTextFieldClearTrigger, XhTextFieldControl, XhTextFieldCount, XhTextFieldInput, XhTextFieldLabel, XhTextFieldPrefix, XhTextFieldRoot, XhTextFieldSuffix, XhTimeFieldClearTrigger, XhTimeFieldControl, XhTimeFieldHiddenInput, XhTimeFieldLabel, XhTimeFieldRoot, XhTimeFieldSegment, XhTimeFieldSegmentGroup, XhTimePickerClearTrigger, XhTimePickerColumn, XhTimePickerConfirmTrigger, XhTimePickerContent, XhTimePickerControl, XhTimePickerFooter, XhTimePickerHiddenInput, XhTimePickerItem, XhTimePickerItemDeleteTrigger, XhTimePickerLabel, XhTimePickerOverflowTag, XhTimePickerPositioner, XhTimePickerPreset, XhTimePickerPresetGroup, XhTimePickerRoot, XhTimePickerSegment, XhTimePickerSegmentGroup, XhTimePickerTag, XhTimePickerTagLabel, XhTimePickerTagList, XhTimePickerTrigger, XhTimeRangePickerClearTrigger, XhTimeRangePickerColumn, XhTimeRangePickerColumnGroup, XhTimeRangePickerColumnGroupLabel, XhTimeRangePickerContent, XhTimeRangePickerControl, XhTimeRangePickerHiddenInput, XhTimeRangePickerItem, XhTimeRangePickerLabel, XhTimeRangePickerPositioner, XhTimeRangePickerPreset, XhTimeRangePickerPresetGroup, XhTimeRangePickerRangeSeparator, XhTimeRangePickerRoot, XhTimeRangePickerSegment, XhTimeRangePickerSegmentGroup, XhTimeRangePickerTrigger, XhTimelineConnector, XhTimelineContent, XhTimelineDescription, XhTimelineIndicator, XhTimelineItem, XhTimelineLabel, XhTimelineRoot, XhTimelineTime, XhTimelineTitle, XhTimerControl, XhTimerDisplay, XhTimerItem, XhTimerRoot, XhTimerSeparator, XhTimestamp, XhToggle, XhToggleGroupHiddenInput, XhToggleGroupItem, XhToggleGroupRoot, XhToolCallApproval, XhToolCallContent, XhToolCallDuration, XhToolCallError, XhToolCallIndicator, XhToolCallInput, XhToolCallLabel, XhToolCallOutput, XhToolCallRoot, XhToolCallStatus, XhToolCallSummary, XhToolCallTrigger, XhToolbarGroup, XhToolbarItem, XhToolbarOverflowTrigger, XhToolbarRoot, XhToolbarSeparator, XhTooltipArrow, XhTooltipContent, XhTooltipPositioner, XhTooltipProvider, XhTooltipRoot, XhTooltipTrigger, XhTourArrow, XhTourBackdrop, XhTourCloseTrigger, XhTourContent, XhTourDescription, XhTourNextTrigger, XhTourPositioner, XhTourPrevTrigger, XhTourProgressDot, XhTourProgressIndicator, XhTourProgressText, XhTourRoot, XhTourSkipTrigger, XhTourSpotlight, XhTourTitle, XhTransferEmpty, XhTransferGroup, XhTransferGroupLabel, XhTransferItem, XhTransferItemCheckbox, XhTransferItemDescription, XhTransferItemSuffix, XhTransferItemText, XhTransferList, XhTransferLoading, XhTransferPanelCount, XhTransferPanelHeader, XhTransferPanelTitle, XhTransferRoot, XhTransferSearch, XhTransferSelectAllTrigger, XhTransferSourcePanel, XhTransferTargetPanel, XhTransferToSourceTrigger, XhTransferToTargetTrigger, type XhTranslationOverrides, XhTreeBranch, XhTreeBranchContent, XhTreeBranchControl, XhTreeBranchIndicator, XhTreeBranchText, XhTreeBranchTrigger, XhTreeEmpty, XhTreeItem, XhTreeItemDescription, XhTreeItemIndicator, XhTreeItemSuffix, XhTreeItemText, XhTreeLabel, XhTreeLiveRegion, XhTreeLoading, XhTreeNodeDragTrigger, XhTreeRoot, XhTreeSelectBranch, XhTreeSelectBranchContent, XhTreeSelectBranchControl, XhTreeSelectBranchEmpty, XhTreeSelectBranchError, XhTreeSelectBranchIndicator, XhTreeSelectBranchLoading, XhTreeSelectBranchRetryTrigger, XhTreeSelectBranchText, XhTreeSelectBranchTrigger, XhTreeSelectClearTrigger, XhTreeSelectContent, XhTreeSelectControl, XhTreeSelectEmpty, XhTreeSelectFooter, XhTreeSelectHiddenInput, XhTreeSelectIndicator, XhTreeSelectInput, XhTreeSelectItem, XhTreeSelectItemDeleteTrigger, XhTreeSelectItemDescription, XhTreeSelectItemIndicator, XhTreeSelectItemSuffix, XhTreeSelectItemText, XhTreeSelectLabel, XhTreeSelectLoading, XhTreeSelectOverflowTag, XhTreeSelectPositioner, XhTreeSelectRoot, XhTreeSelectTag, XhTreeSelectTagLabel, XhTreeSelectTagList, XhTreeSelectTree, XhTreeSelectTrigger, XhTreeSelectValueText, XhTreeTree, XhTruncate, XhTypographyHeading, XhTypographyLink, XhTypographyParagraph, XhTypographyProse, XhTypographyRoot, XhTypographyText, XhVirtualizerContent, XhVirtualizerItem, XhVirtualizerRoot, XhVirtualizerViewport, type XhVisualEnvironmentConfig, XhWatermarkContent, XhWatermarkRoot, clearFieldContext, createColumnStore, createDialogService, createLoadingBarService, createNotificationService, createVueIdGenerator, createVueRuntime, mergeXhConfig, provideAffix, provideApproval, provideAvatarGroup, provideBackTop, provideCitation, provideCitationSource, provideColorField, provideColorSlider, provideColorSwatchPicker, provideContextMenuSub, provideDescriptions, provideDiffView, provideField, provideFieldArray, provideFieldArrayItem, provideFlex, provideFloatButton, provideGrid, provideImageViewer, provideInfiniteScroll, provideInputGroup, provideLayout, provideList, provideLog, provideMarkdownStream, provideMarquee, provideMatrixCode, provideMention, provideMentionItem, provideMenu, provideMenuGroup, provideMenuSub, provideMenubarSub, provideMessageFeed, provideMessageFeedItem, provideNotification, provideNotificationItem, providePageHeader, providePopconfirm, providePromptInput, provideQuestionFlow, provideReasoning, provideResizable, provideScrollbar, provideSideNav, provideSideNavNode, provideSortable, provideStatistic, provideTimeline, provideTimelineItem, provideToolCall, provideTypography, provideWatermark, provideXhConfig, useAccordion, useAffix, useAffixContext, useAnchor, useApproval, useApprovalContext, useAvatar, useAvatarGroupContext, useBackTop, useBackTopContext, useBreadcrumb, useCalendarPicker, useCalendarRangePicker, useCarousel, useCartesianChart, useCascader, useCheckbox, useCheckboxGroup, useCitation, useCitationContext, useCitationSource, useClipboard, useCodeView, useCollapsible, useColorField, useColorFieldContext, useColorPicker, useColorSlider, useColorSliderContext, useColorSwatchPicker, useColorSwatchPickerContext, useCombobox, useCommand, useContextMenu, useContextMenuSubContext, useDateField, useDatePicker, useDateRangePicker, useDescriptionsContext, useDialog, useDiffView, useDiffViewContext, useDownloadTrigger, useDrawer, useEditable, useField, useFieldArray, useFieldArrayContext, useFieldArrayItemContext, useFieldContext, useFieldControl, useFieldGroupWiring, useFieldLabelWiring, useFieldStateWiring, useFieldset, useFieldsetContext, useFileUpload, useFlexContext, useFloatButton, useFloatButtonContext, useFloatingPanel, useFloatingPanelContext, useForm, useFunnelChart, useGraphChart, useGridContext, useGridList, useGridListContext, useGridListRow, useHeatmap, useHeatmapContext, useHierarchyChart, useHoverCard, useIcon, useImage, useImageCropper, useImageCropperContext, useImageViewer, useImageViewerContext, useInfiniteScroll, useInfiniteScrollContext, useInputGroupContext, useJsonViewer, useLayout, useLayoutContext, useListContext, useListbox, useLoadingBar, useLog, useLogContext, useMachine, useMarkdownStream, useMarkdownStreamContext, useMarqueeContext, useMatrixCodeContext, useMention, useMentionContext, useMentionItemContext, useMenu, useMenuContext, useMenuGroupContext, useMenuSubContext, useMenubar, useMenubarSubContext, useMessageFeed, useMessageFeedContext, useMessageFeedItemContext, useNavigationMenu, useNotification, useNotificationContext, useNotificationContextOptional, useNotificationItem, useNotificationItemContext, useNumberField, useOptionalFieldContext, usePageHeaderContext, usePagination, usePasswordInput, usePasswordInputContext, usePieChart, usePinInput, usePopconfirm, usePopconfirmContext, usePopover, usePromptInput, usePromptInputContext, useQuestionFlow, useQuestionFlowContext, useRadarChart, useRadioGroup, useRating, useReasoning, useReasoningContext, useResizable, useResizableContext, useSankeyChart, useScrollArea, useScrollbar, useScrollbarContext, useSelect, useSideNav, useSideNavContext, useSideNavNodeContext, useSignaturePad, useSignaturePadContext, useSlider, useSortable, useSortableContext, useSparkline, useSplitter, useStatisticContext, useSteps, useSwitch, useTable, useTabs, useTag, useTagContext, useTagGroup, useTagGroupContext, useTagGroupItemContext, useTagsInput, useTextField, useTimeField, useTimePicker, useTimeRangePicker, useTimelineContext, useTimelineItem, useTimer, useTimerContext, useToggle, useToggleGroup, useToolCall, useToolCallContext, useToolbar, useTooltip, useTour, useTransfer, useTree, useTreeSelect, useTruncate, useTypographyContext, useVirtualizer, useWatermarkContext, useXhConfig, vueNormalize, withXhConfig };
|
package/dist/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xihan-ui/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0
|
|
4
|
+
"version": "4.2.0",
|
|
5
5
|
"description": "XiHan.UI Vue adapter — components, composables, machine runtime.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "XiHanFun",
|
|
@@ -63,9 +63,9 @@
|
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"vue": "^3.5.0",
|
|
66
|
-
"@xihan-ui/backgrounds": "^4.0
|
|
67
|
-
"@xihan-ui/code-highlight": "^4.0
|
|
68
|
-
"@xihan-ui/sound": "^4.0
|
|
66
|
+
"@xihan-ui/backgrounds": "^4.2.0",
|
|
67
|
+
"@xihan-ui/code-highlight": "^4.2.0",
|
|
68
|
+
"@xihan-ui/sound": "^4.2.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependenciesMeta": {
|
|
71
71
|
"@xihan-ui/backgrounds": {
|
|
@@ -79,28 +79,28 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@xihan-ui/core": "^4.0
|
|
83
|
-
"@xihan-ui/headless": "^4.0
|
|
84
|
-
"@xihan-ui/motion": "^4.0
|
|
85
|
-
"@xihan-ui/pointer": "^4.0
|
|
86
|
-
"@xihan-ui/position": "^4.0
|
|
87
|
-
"@xihan-ui/viz": "^4.0
|
|
82
|
+
"@xihan-ui/core": "^4.2.0",
|
|
83
|
+
"@xihan-ui/headless": "^4.2.0",
|
|
84
|
+
"@xihan-ui/motion": "^4.2.0",
|
|
85
|
+
"@xihan-ui/pointer": "^4.2.0",
|
|
86
|
+
"@xihan-ui/position": "^4.2.0",
|
|
87
|
+
"@xihan-ui/viz": "^4.2.0"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@vitest/browser": "^4.1.11",
|
|
91
91
|
"@vitest/browser-playwright": "^4.1.11",
|
|
92
|
-
"@vue/test-utils": "^2.
|
|
92
|
+
"@vue/test-utils": "^2.5.1",
|
|
93
93
|
"jsdom": "^27.0.0",
|
|
94
94
|
"playwright": "^1.62.0",
|
|
95
95
|
"vitest": "^4.1.11",
|
|
96
|
-
"vue": "^3.5.
|
|
97
|
-
"@xihan-ui/backgrounds": "4.0
|
|
96
|
+
"vue": "^3.5.44",
|
|
97
|
+
"@xihan-ui/backgrounds": "4.2.0",
|
|
98
98
|
"@xihan-ui/build": "0.0.0",
|
|
99
|
-
"@xihan-ui/code-highlight": "4.0
|
|
100
|
-
"@xihan-ui/sound": "4.0
|
|
101
|
-
"@xihan-ui/styles": "4.0
|
|
99
|
+
"@xihan-ui/code-highlight": "4.2.0",
|
|
100
|
+
"@xihan-ui/sound": "4.2.0",
|
|
101
|
+
"@xihan-ui/styles": "4.2.0",
|
|
102
102
|
"@xihan-ui/testing": "0.0.0",
|
|
103
|
-
"@xihan-ui/tokens": "4.0
|
|
103
|
+
"@xihan-ui/tokens": "4.2.0",
|
|
104
104
|
"@xihan-ui/tsconfig": "0.0.0"
|
|
105
105
|
},
|
|
106
106
|
"scripts": {
|