mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-25 06:18:49 +00:00
chore: update frontend build for v1.1.83 [skip ci]
This commit is contained in:
2
web/admin-spa/node_modules/element-plus/lib/components/slot/index.d.ts
generated
vendored
Normal file
2
web/admin-spa/node_modules/element-plus/lib/components/slot/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { OnlyChild as ElOnlyChild } from './src/only-child';
|
||||
export * from './src/only-child';
|
||||
11
web/admin-spa/node_modules/element-plus/lib/components/slot/index.js
generated
vendored
Normal file
11
web/admin-spa/node_modules/element-plus/lib/components/slot/index.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var onlyChild = require('./src/only-child.js');
|
||||
|
||||
|
||||
|
||||
exports.ElOnlyChild = onlyChild.OnlyChild;
|
||||
exports.OnlyChild = onlyChild.OnlyChild;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
web/admin-spa/node_modules/element-plus/lib/components/slot/index.js.map
generated
vendored
Normal file
1
web/admin-spa/node_modules/element-plus/lib/components/slot/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
||||
7
web/admin-spa/node_modules/element-plus/lib/components/slot/src/only-child.d.ts
generated
vendored
Normal file
7
web/admin-spa/node_modules/element-plus/lib/components/slot/src/only-child.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { Ref, VNode } from 'vue';
|
||||
export declare const OnlyChild: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
||||
[key: string]: any;
|
||||
}> | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
||||
export type OnlyChildExpose = {
|
||||
forwardRef: Ref<HTMLElement>;
|
||||
};
|
||||
69
web/admin-spa/node_modules/element-plus/lib/components/slot/src/only-child.js
generated
vendored
Normal file
69
web/admin-spa/node_modules/element-plus/lib/components/slot/src/only-child.js
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var vue = require('vue');
|
||||
var index = require('../../../hooks/use-forward-ref/index.js');
|
||||
var shared = require('@vue/shared');
|
||||
var error = require('../../../utils/error.js');
|
||||
var index$1 = require('../../../hooks/use-namespace/index.js');
|
||||
|
||||
const NAME = "ElOnlyChild";
|
||||
const OnlyChild = vue.defineComponent({
|
||||
name: NAME,
|
||||
setup(_, {
|
||||
slots,
|
||||
attrs
|
||||
}) {
|
||||
var _a;
|
||||
const forwardRefInjection = vue.inject(index.FORWARD_REF_INJECTION_KEY);
|
||||
const forwardRefDirective = index.useForwardRefDirective((_a = forwardRefInjection == null ? void 0 : forwardRefInjection.setForwardRef) != null ? _a : shared.NOOP);
|
||||
return () => {
|
||||
var _a2;
|
||||
const defaultSlot = (_a2 = slots.default) == null ? void 0 : _a2.call(slots, attrs);
|
||||
if (!defaultSlot)
|
||||
return null;
|
||||
if (defaultSlot.length > 1) {
|
||||
error.debugWarn(NAME, "requires exact only one valid child.");
|
||||
return null;
|
||||
}
|
||||
const firstLegitNode = findFirstLegitChild(defaultSlot);
|
||||
if (!firstLegitNode) {
|
||||
error.debugWarn(NAME, "no valid child node found");
|
||||
return null;
|
||||
}
|
||||
return vue.withDirectives(vue.cloneVNode(firstLegitNode, attrs), [[forwardRefDirective]]);
|
||||
};
|
||||
}
|
||||
});
|
||||
function findFirstLegitChild(node) {
|
||||
if (!node)
|
||||
return null;
|
||||
const children = node;
|
||||
for (const child of children) {
|
||||
if (shared.isObject(child)) {
|
||||
switch (child.type) {
|
||||
case vue.Comment:
|
||||
continue;
|
||||
case vue.Text:
|
||||
case "svg":
|
||||
return wrapTextContent(child);
|
||||
case vue.Fragment:
|
||||
return findFirstLegitChild(child.children);
|
||||
default:
|
||||
return child;
|
||||
}
|
||||
}
|
||||
return wrapTextContent(child);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function wrapTextContent(s) {
|
||||
const ns = index$1.useNamespace("only-child");
|
||||
return vue.createVNode("span", {
|
||||
"class": ns.e("content")
|
||||
}, [s]);
|
||||
}
|
||||
|
||||
exports.OnlyChild = OnlyChild;
|
||||
//# sourceMappingURL=only-child.js.map
|
||||
1
web/admin-spa/node_modules/element-plus/lib/components/slot/src/only-child.js.map
generated
vendored
Normal file
1
web/admin-spa/node_modules/element-plus/lib/components/slot/src/only-child.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"only-child.js","sources":["../../../../../../packages/components/slot/src/only-child.tsx"],"sourcesContent":["import {\n Comment,\n Fragment,\n Text,\n cloneVNode,\n defineComponent,\n inject,\n withDirectives,\n} from 'vue'\nimport { NOOP, debugWarn, isObject } from '@element-plus/utils'\nimport {\n FORWARD_REF_INJECTION_KEY,\n useForwardRefDirective,\n useNamespace,\n} from '@element-plus/hooks'\n\nimport type { Ref, VNode } from 'vue'\n\nconst NAME = 'ElOnlyChild'\n\nexport const OnlyChild = defineComponent({\n name: NAME,\n setup(_, { slots, attrs }) {\n const forwardRefInjection = inject(FORWARD_REF_INJECTION_KEY)\n const forwardRefDirective = useForwardRefDirective(\n forwardRefInjection?.setForwardRef ?? NOOP\n )\n return () => {\n const defaultSlot = slots.default?.(attrs)\n if (!defaultSlot) return null\n\n if (defaultSlot.length > 1) {\n debugWarn(NAME, 'requires exact only one valid child.')\n return null\n }\n\n const firstLegitNode = findFirstLegitChild(defaultSlot)\n if (!firstLegitNode) {\n debugWarn(NAME, 'no valid child node found')\n return null\n }\n\n return withDirectives(cloneVNode(firstLegitNode!, attrs), [\n [forwardRefDirective],\n ])\n }\n },\n})\n\nfunction findFirstLegitChild(node: VNode[] | undefined): VNode | null {\n if (!node) return null\n const children = node as VNode[]\n for (const child of children) {\n /**\n * when user uses h(Fragment, [text]) to render plain string,\n * this switch case just cannot handle, when the value is primitives\n * we should just return the wrapped string\n */\n if (isObject(child)) {\n switch (child.type) {\n case Comment:\n continue\n case Text:\n case 'svg':\n return wrapTextContent(child)\n case Fragment:\n return findFirstLegitChild(child.children as VNode[])\n default:\n return child\n }\n }\n return wrapTextContent(child)\n }\n return null\n}\n\nfunction wrapTextContent(s: string | VNode) {\n const ns = useNamespace('only-child')\n return <span class={ns.e('content')}>{s}</span>\n}\n\nexport type OnlyChildExpose = {\n forwardRef: Ref<HTMLElement>\n}\n"],"names":["NAME","OnlyChild","defineComponent","name","slots","attrs","forwardRefInjection","inject","FORWARD_REF_INJECTION_KEY","forwardRefDirective","useForwardRefDirective","setForwardRef","NOOP","defaultSlot","debugWarn","firstLegitNode","findFirstLegitChild","withDirectives","cloneVNode","node","children","child","Text","Fragment","isObject","_createVNode"],"mappings":";;;;;;;;;;AAkBA,MAAMA,IAAI,GAAG,aAAb,CAAA;AAEaC,MAAAA,SAAS,GAAGC,mBAAe,CAAC;AACvCC,EAAAA,IAAI,EAAEH,IADiC;;IAElC,KAAA;IAAMI,KAAF;AAASC,GAAAA,EAAAA;AAAT,IAAkB,IAAA,EAAA,CAAA;AACzB,IAAA,MAAMC,mBAAmB,GAAGC,UAAM,CAACC,+BAAD,CAAlC,CAAA;IACA,MAAMC,mBAAmB,GAAGC,4BAAsB,CAChDJ,yBAAqBK,IAAAA,IAAAA,GAAiBC,KAAAA,CADU,GAAlD,mBAAA,CAAA,aAAA,KAAA,IAAA,GAAA,EAAA,GAAAA,WAAA,CAAA,CAAA;AAGA,IAAA,OAAO,MAAM;AACX,MAAA,IAAA;AACA,MAAA,MAAKC,WAAa,GAAA,CAAA,GAAA,GAAA,KAAA,CAAA,OAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,GAAA,C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