@antdv-next/x 1.2.1-beta.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attachments/index.js +1 -2
- package/dist/code-highlighter/style/index.d.ts +51 -19
- package/dist/code-highlighter/style/index.js +44 -31
- package/dist/index.umd.js +133 -52
- package/dist/package.js +1 -1
- package/dist/sender/hooks/use-speech.js +1 -2
- package/dist/suggestion/Suggestion.js +37 -6
- package/dist/suggestion/useActive.d.ts +1 -1
- package/dist/suggestion/useActive.js +44 -2
- package/dist/theme/util/alias.js +5 -5
- package/dist/think/Think.js +2 -3
- package/dist/thought-chain/Node.js +2 -3
- package/dist/x-provider/index.js +2 -3
- package/es/{_basePickBy-CrbncDqR.js → _basePickBy-BL4DHvHb.js} +1 -1
- package/es/{_baseUniq-B-qU_Imh.js → _baseUniq-CyFYmJd-.js} +7 -7
- package/es/antdv-next-x.esm.js +374 -335
- package/es/architecture-PBZL5I3N-M9p1teRv.js +3 -0
- package/es/{architectureDiagram-2XIMDMQ5-OvuktNfv.js → architectureDiagram-2XIMDMQ5-zW5aGalx.js} +99 -89
- package/es/{blockDiagram-WCTKOSBZ-CS-kh74L.js → blockDiagram-WCTKOSBZ-0QujSG-h.js} +36 -33
- package/es/{c4Diagram-IC4MRINW-BZGIF4Dk.js → c4Diagram-IC4MRINW-B7y07WFn.js} +24 -16
- package/es/{channel-DrSSYyxp.js → channel-CxLj88Pg.js} +1 -1
- package/es/{chunk-4BX2VUAB-Rm8-te6i.js → chunk-4BX2VUAB-CprgMM4u.js} +1 -1
- package/es/{chunk-55IACEB6-Tre45n-8.js → chunk-55IACEB6-BpkEkHy8.js} +1 -1
- package/es/{chunk-7R4GIKGN-scch4dXY.js → chunk-7R4GIKGN-mKY502R8.js} +6 -4
- package/es/{chunk-FMBD7UC4-JmekSPZP.js → chunk-FMBD7UC4-B88neS61.js} +1 -1
- package/es/{chunk-GEFDOKGD-BEzc6NZw.js → chunk-GEFDOKGD-oBEpn5hN.js} +67 -27
- package/es/chunk-GLR3WWYH-B2D9kjtF.js +41 -0
- package/es/chunk-HHEYEP7N-DcZkCke2.js +9 -0
- package/es/{chunk-JSJVCQXG-_l_UVbaa.js → chunk-JSJVCQXG-BbVOaXjl.js} +3 -3
- package/es/{chunk-KX2RTZJC-BUWM8pJz.js → chunk-KX2RTZJC-Dw3D7Wrw.js} +2 -2
- package/es/{chunk-KYZI473N-BSgb_E0Q.js → chunk-KYZI473N-33-uii7Y.js} +10 -10
- package/es/{chunk-MX3YWQON-D602L8pU.js → chunk-MX3YWQON-D4cz36rq.js} +1 -1
- package/es/{chunk-NQ4KR5QH-BPQV0i93.js → chunk-NQ4KR5QH-CprADZhD.js} +44 -40
- package/es/{chunk-O4XLMI2P-BMqc3iYa.js → chunk-O4XLMI2P-DBAvycZ-.js} +13 -14
- package/es/{chunk-PQ6SQG4A-DcYrzB1X.js → chunk-PQ6SQG4A-BITIwHAS.js} +2 -2
- package/es/{chunk-PU5JKC2W-TuGY6X1n.js → chunk-PU5JKC2W-DIl8TkGX.js} +22 -26
- package/es/{chunk-QZHKN3VN-CKbD02cl.js → chunk-QZHKN3VN-Cg0ROtzE.js} +1 -1
- package/es/{chunk-WL4C6EOR-B31ErTFp.js → chunk-WL4C6EOR-Bhp_3T_o.js} +15 -15
- package/es/chunk-XPW4576I-255j2Rgd.js +1146 -0
- package/es/{chunk-XZSTWKYB-DYKLwCEy.js → chunk-XZSTWKYB-kjAdbx6i.js} +266 -321
- package/es/{chunk-YBOYWFTD-CRiKEIiS.js → chunk-YBOYWFTD-C2IdGsg8.js} +5 -5
- package/es/classDiagram-VBA2DB6C-BQonl2jX.js +29 -0
- package/es/classDiagram-v2-RAHNMMFH-C9U3lqTc.js +29 -0
- package/es/{clone-yzFtXY5G.js → clone-DIGEZsKS.js} +1 -1
- package/es/{cose-bilkent-S5V4N54A-BM90wTBk.js → cose-bilkent-S5V4N54A-Cyxewg9z.js} +36 -31
- package/es/{cytoscape.esm-B_-hKv4-.js → cytoscape.esm-DBPri10E.js} +197 -155
- package/es/{dagre-DCYVBij1.js → dagre-BHOjJWBG.js} +26 -24
- package/es/{dagre-KLK3FWXG-Ced70SgJ.js → dagre-KLK3FWXG-CnJPDj7X.js} +17 -18
- package/es/{defaultLocale-yzzuPw6P.js → defaultLocale-aSMWOJHq.js} +4 -1
- package/es/{diagram-E7M64L7V-xZCloH_i.js → diagram-E7M64L7V-CBOCgbMd.js} +22 -24
- package/es/{diagram-IFDJBPK2-BTmFZhvz.js → diagram-IFDJBPK2-BtubJp0H.js} +11 -11
- package/es/{diagram-P4PSJMXO-DX_3B0LB.js → diagram-P4PSJMXO-CI30BBYG.js} +10 -10
- package/es/{dist-h4ggShny.js → dist-BpM0Gz7z.js} +1 -1
- package/es/{erDiagram-INFDFZHY-MJ_HVY-7.js → erDiagram-INFDFZHY-C8hYuPxm.js} +21 -21
- package/es/{flowDiagram-PKNHOUZH-CQIRy1sx.js → flowDiagram-PKNHOUZH-D5vrDkks.js} +40 -33
- package/es/{ganttDiagram-A5KZAMGK-Dw9bjWjx.js → ganttDiagram-A5KZAMGK-BmIEQBGq.js} +33 -21
- package/es/gitGraph-HDMCJU4V-x8fnR2OX.js +3 -0
- package/es/{gitGraphDiagram-K3NZZRJ6-Gk6FiGbZ.js → gitGraphDiagram-K3NZZRJ6-PO0pMJD3.js} +7 -7
- package/es/{graphlib-BMvIh7N7.js → graphlib-DqWOhV4K.js} +2 -2
- package/es/info-3K5VOQVL-CRBCVSej.js +3 -0
- package/es/{infoDiagram-LFFYTUFH-CS64-uil.js → infoDiagram-LFFYTUFH-DOcKfbXf.js} +4 -4
- package/es/{init-sjaVZO3f.js → init-Co4dhKfe.js} +3 -1
- package/es/isEmpty-BJdINx-6.js +35 -0
- package/es/{ishikawaDiagram-PHBUUO56-C_Hw5UnV.js → ishikawaDiagram-PHBUUO56-DM1elxPS.js} +12 -12
- package/es/{journeyDiagram-4ABVD52K-CFFyM4Ar.js → journeyDiagram-4ABVD52K-BnYWOH1P.js} +11 -11
- package/es/{kanban-definition-K7BYSVSG-B_R-mA10.js → kanban-definition-K7BYSVSG-Ys7nAs7y.js} +27 -26
- package/es/{katex-C-qdUNlg.js → katex-olkKUfKs.js} +52 -62
- package/es/{line-D05MESIS.js → line-Cm2n2y9Z.js} +1 -1
- package/es/{linear-B8tPH2Pw.js → linear-D-yDc6KG.js} +6 -4
- package/es/{mermaid-parser.core-C_69nk7j.js → mermaid-parser.core-DFgQn74w.js} +8 -8
- package/es/mermaid.core-BzgA0NbC.js +680 -0
- package/es/{mindmap-definition-YRQLILUH-qgGUYYe3.js → mindmap-definition-YRQLILUH-Ca8psfLi.js} +26 -24
- package/es/{ordinal-CNQzPcrr.js → ordinal-95c16pGC.js} +1 -1
- package/es/packet-RMMSAZCW-CyE-elPF.js +3 -0
- package/es/pie-UPGHQEXC-EfdQ-_OF.js +3 -0
- package/es/{pieDiagram-SKSYHLDU-B8-AVOmP.js → pieDiagram-SKSYHLDU-DhQSMJCw.js} +11 -11
- package/es/{quadrantDiagram-337W2JSQ-C2Z0CN4Z.js → quadrantDiagram-337W2JSQ-jOtIC8r0.js} +9 -9
- package/es/radar-KQ55EAFF-B68vkNB4.js +3 -0
- package/es/{requirementDiagram-Z7DCOOCP-Cdj7PwWC.js → requirementDiagram-Z7DCOOCP-CNngzPE4.js} +18 -18
- package/es/{rolldown-runtime-CEY2VRuR.js → rolldown-runtime-Dv1pqm0U.js} +2 -2
- package/es/{sankeyDiagram-WA2Y5GQK-BNmU-dM1.js → sankeyDiagram-WA2Y5GQK-BgsyVNdD.js} +9 -9
- package/es/{sequenceDiagram-2WXFIKYE-pj0uPf22.js → sequenceDiagram-2WXFIKYE-BAc5PP9P.js} +46 -34
- package/es/{shiki-runtime-7QG17np_.js → shiki-runtime-BlKUZiZP.js} +41 -44
- package/es/{src-Dynw_Lub.js → src-3T61hYex.js} +1 -1
- package/es/{stateDiagram-RAJIS63D-BgCfMnGb.js → stateDiagram-RAJIS63D-153LjStx.js} +18 -18
- package/es/stateDiagram-v2-FVOUBMTO-BXEvy1YD.js +27 -0
- package/es/{timeline-definition-YZTLITO2-Bj5QKnBI.js → timeline-definition-YZTLITO2-BLhlkb_X.js} +8 -8
- package/es/treemap-KZPCXAKY-Dg_ShzRB.js +3 -0
- package/es/{vennDiagram-LZ73GAT5-lpWcIvN6.js → vennDiagram-LZ73GAT5-BTYWphmf.js} +13 -13
- package/es/{xychartDiagram-JWTSCODW-De1M-7Yz.js → xychartDiagram-JWTSCODW-B9Nlu6S_.js} +29 -25
- package/package.json +1 -1
- package/es/architecture-PBZL5I3N-BRGGaMu3.js +0 -3
- package/es/classDiagram-VBA2DB6C-BDqwxUdU.js +0 -29
- package/es/classDiagram-v2-RAHNMMFH-DdmOjeUb.js +0 -29
- package/es/gitGraph-HDMCJU4V-oForq_Vw.js +0 -3
- package/es/info-3K5VOQVL-0F-ZLEMx.js +0 -3
- package/es/mermaid.core-BVGVwWcu.js +0 -1914
- package/es/packet-RMMSAZCW-CeqtQQ_e.js +0 -3
- package/es/pie-UPGHQEXC-BI60FhK4.js +0 -3
- package/es/radar-KQ55EAFF-CRwOOFw0.js +0 -3
- package/es/stateDiagram-v2-FVOUBMTO-ByMhP6Xo.js +0 -27
- package/es/treemap-KZPCXAKY-BlOAFUbR.js +0 -3
|
@@ -85,10 +85,18 @@ var XSuggestion = /* @__PURE__ */ defineComponent({
|
|
|
85
85
|
const innerOpen = ref(false);
|
|
86
86
|
const mergedOpen = computed(() => props.open ?? innerOpen.value);
|
|
87
87
|
const itemList = ref([]);
|
|
88
|
+
/**
|
|
89
|
+
* What the last `onTrigger` asked for. A function `items` is usually an inline arrow,
|
|
90
|
+
* so it gets a new identity on every parent render — without this the watcher below
|
|
91
|
+
* would re-evaluate it with no info and drop the triggered list.
|
|
92
|
+
*/
|
|
93
|
+
const triggerInfo = ref();
|
|
94
|
+
const resolveItems = (source, info) => {
|
|
95
|
+
if (typeof source === "function") return source(info);
|
|
96
|
+
return Array.isArray(source) ? source : [];
|
|
97
|
+
};
|
|
88
98
|
watch(() => props.items, (nextItems) => {
|
|
89
|
-
|
|
90
|
-
else if (typeof nextItems === "function") itemList.value = nextItems();
|
|
91
|
-
else itemList.value = [];
|
|
99
|
+
itemList.value = resolveItems(nextItems, triggerInfo.value);
|
|
92
100
|
}, { immediate: true });
|
|
93
101
|
const triggerOpen = (nextOpen) => {
|
|
94
102
|
if (props.open === void 0) innerOpen.value = nextOpen;
|
|
@@ -103,7 +111,8 @@ var XSuggestion = /* @__PURE__ */ defineComponent({
|
|
|
103
111
|
triggerOpen(false);
|
|
104
112
|
return;
|
|
105
113
|
}
|
|
106
|
-
|
|
114
|
+
triggerInfo.value = nextInfo;
|
|
115
|
+
if (typeof props.items === "function") itemList.value = resolveItems(props.items, nextInfo);
|
|
107
116
|
triggerOpen(true);
|
|
108
117
|
};
|
|
109
118
|
const onInternalChange = (valuePath, selectedOptions) => {
|
|
@@ -113,10 +122,31 @@ var XSuggestion = /* @__PURE__ */ defineComponent({
|
|
|
113
122
|
if (lastValue !== void 0) emit("select", String(lastValue), selected);
|
|
114
123
|
triggerOpen(false);
|
|
115
124
|
};
|
|
116
|
-
const [activePath, onKeyDown] = useActive(itemList, mergedOpen, isRtl, onClose);
|
|
125
|
+
const [activePath, onKeyDown, shouldSelectOnEnter] = useActive(itemList, mergedOpen, isRtl, onClose);
|
|
117
126
|
const onInternalOpenChange = (nextOpen) => {
|
|
118
127
|
if (!nextOpen) onClose();
|
|
119
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* Cascader renders our children as its raw input element, so every keydown from the
|
|
131
|
+
* children bubbles into BaseSelect's keyboard model. That model is built for a
|
|
132
|
+
* non-editable trigger and breaks typing inside an editable one such as Sender:
|
|
133
|
+
*
|
|
134
|
+
* - Space is always `preventDefault()`ed, so no space can be typed;
|
|
135
|
+
* - Enter is always `preventDefault()`ed, even when there is nothing to select;
|
|
136
|
+
* - Backspace makes the option list step back a level or close the popup.
|
|
137
|
+
*
|
|
138
|
+
* Keep exactly those inside the content wrapper. Every other key — Escape, arrows,
|
|
139
|
+
* application shortcuts — must keep bubbling, otherwise the app around us stops
|
|
140
|
+
* receiving keyboard events while the trigger has focus.
|
|
141
|
+
*/
|
|
142
|
+
const onContentKeyDown = (event) => {
|
|
143
|
+
const { key } = event;
|
|
144
|
+
if (key === "Enter") {
|
|
145
|
+
if (!shouldSelectOnEnter(event)) event.stopPropagation();
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (key === " " || key === "Backspace" && mergedOpen.value) event.stopPropagation();
|
|
149
|
+
};
|
|
120
150
|
const domAttrs = computed(() => {
|
|
121
151
|
const { class: _class, style: _style, ...rest } = attrs;
|
|
122
152
|
return rest;
|
|
@@ -190,7 +220,8 @@ var XSuggestion = /* @__PURE__ */ defineComponent({
|
|
|
190
220
|
contextConfig.value.classes?.content,
|
|
191
221
|
mergedClasses.value.content
|
|
192
222
|
],
|
|
193
|
-
"style": [contextConfig.value.styles?.content, mergedStyles.value.content]
|
|
223
|
+
"style": [contextConfig.value.styles?.content, mergedStyles.value.content],
|
|
224
|
+
"onKeydown": onContentKeyDown
|
|
194
225
|
}, [childNode])])] });
|
|
195
226
|
};
|
|
196
227
|
}
|
|
@@ -6,5 +6,5 @@ interface ActiveItem {
|
|
|
6
6
|
/**
|
|
7
7
|
* Cascader does not expose active item control, so we use `value` to mirror focus path.
|
|
8
8
|
*/
|
|
9
|
-
export default function useActive(items: Ref<ActiveItem[]>, open: Ref<boolean>, rtl: Ref<boolean>, onCancel: () => void): readonly [Ref<string[], string[]>, (event: KeyboardEvent) => false | undefined];
|
|
9
|
+
export default function useActive(items: Ref<ActiveItem[]>, open: Ref<boolean>, rtl: Ref<boolean>, onCancel: () => void): readonly [Ref<string[], string[]>, (event: KeyboardEvent) => false | undefined, (event: KeyboardEvent) => boolean];
|
|
10
10
|
export {};
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { ref, watch } from "vue";
|
|
2
2
|
//#region components/suggestion/useActive.ts
|
|
3
3
|
/**
|
|
4
|
+
* An Enter pressed with a modifier or while an IME is composing belongs to the trigger
|
|
5
|
+
* (submit, newline, candidate confirmation), never to the suggestion list.
|
|
6
|
+
*/
|
|
7
|
+
function isPlainEnter(event) {
|
|
8
|
+
return !event.isComposing && !event.shiftKey && !event.ctrlKey && !event.altKey && !event.metaKey;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
4
11
|
* Cascader does not expose active item control, so we use `value` to mirror focus path.
|
|
5
12
|
*/
|
|
6
13
|
function useActive(items, open, rtl, onCancel) {
|
|
@@ -31,6 +38,26 @@ function useActive(items, open, rtl, onCancel) {
|
|
|
31
38
|
const firstItem = getItems(activePaths.value.length + 1)[0];
|
|
32
39
|
if (firstItem) activePaths.value = [...activePaths.value, firstItem.value];
|
|
33
40
|
};
|
|
41
|
+
const getActiveItem = () => {
|
|
42
|
+
let currentItems = items.value;
|
|
43
|
+
let activeItem;
|
|
44
|
+
for (const activePath of activePaths.value) {
|
|
45
|
+
activeItem = currentItems.find((item) => item.value === activePath);
|
|
46
|
+
if (!activeItem) return void 0;
|
|
47
|
+
currentItems = activeItem.children || [];
|
|
48
|
+
}
|
|
49
|
+
return activeItem;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Whether this Enter belongs to the popup: it needs an open popup, a plain Enter and a
|
|
53
|
+
* leaf item to select. Anything else stays with the trigger, so the input can still
|
|
54
|
+
* submit, insert a newline or confirm an IME candidate.
|
|
55
|
+
*/
|
|
56
|
+
const shouldSelectOnEnter = (event) => {
|
|
57
|
+
if (!open.value || !isPlainEnter(event)) return false;
|
|
58
|
+
const activeItem = getActiveItem();
|
|
59
|
+
return !!activeItem && !activeItem.children?.length;
|
|
60
|
+
};
|
|
34
61
|
const onKeyDown = (event) => {
|
|
35
62
|
if (!open.value) return;
|
|
36
63
|
switch (event.key) {
|
|
@@ -56,18 +83,33 @@ function useActive(items, open, rtl, onCancel) {
|
|
|
56
83
|
event.preventDefault();
|
|
57
84
|
event.stopPropagation();
|
|
58
85
|
break;
|
|
59
|
-
case "Enter":
|
|
86
|
+
case "Enter": {
|
|
87
|
+
if (!isPlainEnter(event)) break;
|
|
88
|
+
const activeItem = getActiveItem();
|
|
89
|
+
if (!activeItem) break;
|
|
60
90
|
event.preventDefault();
|
|
91
|
+
if (activeItem.children?.length) {
|
|
92
|
+
offsetNext();
|
|
93
|
+
event.stopPropagation();
|
|
94
|
+
}
|
|
61
95
|
return false;
|
|
96
|
+
}
|
|
62
97
|
case "Escape":
|
|
63
98
|
onCancel();
|
|
64
99
|
event.preventDefault();
|
|
100
|
+
event.stopPropagation();
|
|
101
|
+
break;
|
|
102
|
+
default: break;
|
|
65
103
|
}
|
|
66
104
|
};
|
|
67
105
|
watch([open, items], ([nextOpen, nextItems]) => {
|
|
68
106
|
if (nextOpen && Array.isArray(nextItems) && nextItems.length > 0) activePaths.value = [nextItems[0].value];
|
|
69
107
|
}, { immediate: true });
|
|
70
|
-
return [
|
|
108
|
+
return [
|
|
109
|
+
activePaths,
|
|
110
|
+
onKeyDown,
|
|
111
|
+
shouldSelectOnEnter
|
|
112
|
+
];
|
|
71
113
|
}
|
|
72
114
|
//#endregion
|
|
73
115
|
export { useActive as default };
|
package/dist/theme/util/alias.js
CHANGED
|
@@ -111,19 +111,19 @@ function formatToken(derivativeToken) {
|
|
|
111
111
|
`,
|
|
112
112
|
screenXS,
|
|
113
113
|
screenXSMin: screenXS,
|
|
114
|
-
screenXSMax:
|
|
114
|
+
screenXSMax: screenSM - 1,
|
|
115
115
|
screenSM,
|
|
116
116
|
screenSMMin: screenSM,
|
|
117
|
-
screenSMMax:
|
|
117
|
+
screenSMMax: screenMD - 1,
|
|
118
118
|
screenMD,
|
|
119
119
|
screenMDMin: screenMD,
|
|
120
|
-
screenMDMax:
|
|
120
|
+
screenMDMax: screenLG - 1,
|
|
121
121
|
screenLG,
|
|
122
122
|
screenLGMin: screenLG,
|
|
123
|
-
screenLGMax:
|
|
123
|
+
screenLGMax: screenXL - 1,
|
|
124
124
|
screenXL,
|
|
125
125
|
screenXLMin: screenXL,
|
|
126
|
-
screenXLMax:
|
|
126
|
+
screenXLMax: screenXXL - 1,
|
|
127
127
|
screenXXL,
|
|
128
128
|
screenXXLMin: screenXXL,
|
|
129
129
|
boxShadowPopoverArrow: "2px 2px 5px rgba(0, 0, 0, 0.05)",
|
package/dist/think/Think.js
CHANGED
|
@@ -142,15 +142,14 @@ var XThink = /* @__PURE__ */ defineComponent({
|
|
|
142
142
|
});
|
|
143
143
|
const prefixCls = computed(() => props.prefixCls);
|
|
144
144
|
function renderContent() {
|
|
145
|
-
|
|
145
|
+
return withDirectives(createVNode("div", { "ref": contentRef }, [createVNode("div", {
|
|
146
146
|
"class": [
|
|
147
147
|
`${prefixCls.value}-content`,
|
|
148
148
|
contextConfig.value.classes?.content,
|
|
149
149
|
props.classes?.content
|
|
150
150
|
],
|
|
151
151
|
"style": [contextConfig.value.styles?.content, props.styles?.content]
|
|
152
|
-
}, [slots.default?.()])]);
|
|
153
|
-
return withDirectives(node, [[vShow, mergedExpanded.value]]);
|
|
152
|
+
}, [slots.default?.()])]), [[vShow, mergedExpanded.value]]);
|
|
154
153
|
}
|
|
155
154
|
expose({ get nativeElement() {
|
|
156
155
|
return rootRef.value;
|
|
@@ -166,11 +166,10 @@ var Node_default = /* @__PURE__ */ defineComponent({
|
|
|
166
166
|
const showContent = hasContent && (!collapsible || props.expanded);
|
|
167
167
|
const destroyOnHidden = item.destroyOnHidden ?? true;
|
|
168
168
|
const renderContent = () => {
|
|
169
|
-
|
|
169
|
+
return withDirectives(createVNode("div", null, [createVNode("div", {
|
|
170
170
|
"class": [`${cls}-content`, props.classes?.itemContent],
|
|
171
171
|
"style": props.styles?.itemContent
|
|
172
|
-
}, [createVNode("div", { "class": `${cls}-content-box` }, [contentNode])])]);
|
|
173
|
-
return withDirectives(node, [[vShow, showContent]]);
|
|
172
|
+
}, [createVNode("div", { "class": `${cls}-content-box` }, [contentNode])])]), [[vShow, showContent]]);
|
|
174
173
|
};
|
|
175
174
|
return createVNode("div", {
|
|
176
175
|
"class": [`${cls}`, props.classes?.item],
|
package/dist/x-provider/index.js
CHANGED
|
@@ -78,7 +78,7 @@ var XProvider = /* @__PURE__ */ defineComponent({
|
|
|
78
78
|
},
|
|
79
79
|
setup(props, { slots }) {
|
|
80
80
|
const attrs = useAttrs();
|
|
81
|
-
|
|
81
|
+
provide(XProviderContextKey, computed(() => {
|
|
82
82
|
return {
|
|
83
83
|
attachments: props.attachments,
|
|
84
84
|
actions: props.actions,
|
|
@@ -95,8 +95,7 @@ var XProvider = /* @__PURE__ */ defineComponent({
|
|
|
95
95
|
thoughtChain: props.thoughtChain,
|
|
96
96
|
welcome: props.welcome
|
|
97
97
|
};
|
|
98
|
-
});
|
|
99
|
-
provide(XProviderContextKey, xProviderConfig);
|
|
98
|
+
}));
|
|
100
99
|
return () => createVNode(ConfigProvider, mergeProps(attrs, {
|
|
101
100
|
"theme": props.theme,
|
|
102
101
|
"locale": props.locale,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, B as t, C as n, E as r, H as i, M as a, U as o, V as s, k as c, p as l, w as u, z as d } from "./isArrayLikeObject-Dqk_yOP-.js";
|
|
2
|
-
import { A as f, C as p, D as m, M as h, N as g, S as _, T as v, f as y, h as b, u as x, w as S } from "./_baseUniq-
|
|
2
|
+
import { A as f, C as p, D as m, M as h, N as g, S as _, T as v, f as y, h as b, u as x, w as S } from "./_baseUniq-CyFYmJd-.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_trimmedEndIndex.js
|
|
4
4
|
var C = /\s/;
|
|
5
5
|
function w(e) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, B as t, F as n, H as r, M as i, O as a, T as o, U as s, V as c, W as l, _ as u, a as d, b as f, c as p, d as m, g as h, h as g, i as _, k as v, l as y, n as ee, o as b, p as x, r as te, s as ne, u as re, v as ie, w as S, y as C, z as w } from "./isArrayLikeObject-Dqk_yOP-.js";
|
|
2
|
-
import {
|
|
2
|
+
import { i as ae, n as T, r as E } from "./isEmpty-BJdINx-6.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js
|
|
4
4
|
var oe = "[object Symbol]";
|
|
5
5
|
function D(e) {
|
|
@@ -267,13 +267,13 @@ function ut(e, t, n) {
|
|
|
267
267
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js
|
|
268
268
|
var dt = "[object Map]";
|
|
269
269
|
function ft(e) {
|
|
270
|
-
return r(e) &&
|
|
270
|
+
return r(e) && T(e) == dt;
|
|
271
271
|
}
|
|
272
272
|
//#endregion
|
|
273
273
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isMap.js
|
|
274
274
|
var pt = u && u.isMap, mt = pt ? ie(pt) : ft, ht = "[object Set]";
|
|
275
275
|
function gt(e) {
|
|
276
|
-
return r(e) &&
|
|
276
|
+
return r(e) && T(e) == ht;
|
|
277
277
|
}
|
|
278
278
|
//#endregion
|
|
279
279
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isSet.js
|
|
@@ -287,7 +287,7 @@ function W(e, r, i, a, o, s) {
|
|
|
287
287
|
if (m) {
|
|
288
288
|
if (l = Re(e), !u) return n(e, l);
|
|
289
289
|
} else {
|
|
290
|
-
var h =
|
|
290
|
+
var h = T(e), g = h == Dt || h == Ot;
|
|
291
291
|
if (C(e)) return ne(e, u);
|
|
292
292
|
if (h == jt || h == St || g && !o) {
|
|
293
293
|
if (l = d || g ? {} : te(e), !u) return d ? Pe(e, Ae(l, e)) : Me(e, ke(l, e));
|
|
@@ -447,7 +447,7 @@ function bn(e, t, n, r, i, a) {
|
|
|
447
447
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqualDeep.js
|
|
448
448
|
var xn = 1, Sn = "[object Arguments]", Cn = "[object Array]", Y = "[object Object]", wn = Object.prototype.hasOwnProperty;
|
|
449
449
|
function Tn(e, t, n, r, i, a) {
|
|
450
|
-
var o = c(e), s = c(t), l = o ? Cn :
|
|
450
|
+
var o = c(e), s = c(t), l = o ? Cn : T(e), u = s ? Cn : T(t);
|
|
451
451
|
l = l == Sn ? Y : l, u = u == Sn ? Y : u;
|
|
452
452
|
var d = l == Y, f = u == Y, m = l == u;
|
|
453
453
|
if (m && C(e)) {
|
|
@@ -658,8 +658,8 @@ function Qn(e, t, n) {
|
|
|
658
658
|
}
|
|
659
659
|
//#endregion
|
|
660
660
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/_createSet.js
|
|
661
|
-
var $n =
|
|
662
|
-
return new
|
|
661
|
+
var $n = E && 1 / q(new E([, -0]))[1] == Infinity ? function(e) {
|
|
662
|
+
return new E(e);
|
|
663
663
|
} : de, er = 200;
|
|
664
664
|
function tr(e, t, n) {
|
|
665
665
|
var r = -1, i = _e, a = e.length, o = !0, s = [], c = s;
|