mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-24 09:41:17 +00:00
chore: update frontend build for v1.1.81 [skip ci]
This commit is contained in:
16
web/admin-spa/node_modules/element-plus/lib/hooks/use-empty-values/index.d.ts
generated
vendored
Normal file
16
web/admin-spa/node_modules/element-plus/lib/hooks/use-empty-values/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { ExtractPropTypes, InjectionKey, Ref } from 'vue';
|
||||
type EmptyValuesContext = ExtractPropTypes<typeof useEmptyValuesProps>;
|
||||
export declare const emptyValuesContextKey: InjectionKey<Ref<EmptyValuesContext>>;
|
||||
export declare const SCOPE = "use-empty-values";
|
||||
export declare const DEFAULT_EMPTY_VALUES: (string | null | undefined)[];
|
||||
export declare const DEFAULT_VALUE_ON_CLEAR: undefined;
|
||||
export declare const useEmptyValuesProps: {
|
||||
readonly emptyValues: ArrayConstructor;
|
||||
readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
|
||||
};
|
||||
export declare const useEmptyValues: (props: EmptyValuesContext, defaultValue?: null | undefined) => {
|
||||
emptyValues: import("vue").ComputedRef<unknown[]>;
|
||||
valueOnClear: import("vue").ComputedRef<any>;
|
||||
isEmptyValue: (value: any) => boolean;
|
||||
};
|
||||
export {};
|
||||
56
web/admin-spa/node_modules/element-plus/lib/hooks/use-empty-values/index.js
generated
vendored
Normal file
56
web/admin-spa/node_modules/element-plus/lib/hooks/use-empty-values/index.js
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var vue = require('vue');
|
||||
var runtime = require('../../utils/vue/props/runtime.js');
|
||||
var shared = require('@vue/shared');
|
||||
var error = require('../../utils/error.js');
|
||||
|
||||
const emptyValuesContextKey = Symbol("emptyValuesContextKey");
|
||||
const SCOPE = "use-empty-values";
|
||||
const DEFAULT_EMPTY_VALUES = ["", void 0, null];
|
||||
const DEFAULT_VALUE_ON_CLEAR = void 0;
|
||||
const useEmptyValuesProps = runtime.buildProps({
|
||||
emptyValues: Array,
|
||||
valueOnClear: {
|
||||
type: [String, Number, Boolean, Function],
|
||||
default: void 0,
|
||||
validator: (val) => shared.isFunction(val) ? !val() : !val
|
||||
}
|
||||
});
|
||||
const useEmptyValues = (props, defaultValue) => {
|
||||
const config = vue.getCurrentInstance() ? vue.inject(emptyValuesContextKey, vue.ref({})) : vue.ref({});
|
||||
const emptyValues = vue.computed(() => props.emptyValues || config.value.emptyValues || DEFAULT_EMPTY_VALUES);
|
||||
const valueOnClear = vue.computed(() => {
|
||||
if (shared.isFunction(props.valueOnClear)) {
|
||||
return props.valueOnClear();
|
||||
} else if (props.valueOnClear !== void 0) {
|
||||
return props.valueOnClear;
|
||||
} else if (shared.isFunction(config.value.valueOnClear)) {
|
||||
return config.value.valueOnClear();
|
||||
} else if (config.value.valueOnClear !== void 0) {
|
||||
return config.value.valueOnClear;
|
||||
}
|
||||
return defaultValue !== void 0 ? defaultValue : DEFAULT_VALUE_ON_CLEAR;
|
||||
});
|
||||
const isEmptyValue = (value) => {
|
||||
return emptyValues.value.includes(value);
|
||||
};
|
||||
if (!emptyValues.value.includes(valueOnClear.value)) {
|
||||
error.debugWarn(SCOPE, "value-on-clear should be a value of empty-values");
|
||||
}
|
||||
return {
|
||||
emptyValues,
|
||||
valueOnClear,
|
||||
isEmptyValue
|
||||
};
|
||||
};
|
||||
|
||||
exports.DEFAULT_EMPTY_VALUES = DEFAULT_EMPTY_VALUES;
|
||||
exports.DEFAULT_VALUE_ON_CLEAR = DEFAULT_VALUE_ON_CLEAR;
|
||||
exports.SCOPE = SCOPE;
|
||||
exports.emptyValuesContextKey = emptyValuesContextKey;
|
||||
exports.useEmptyValues = useEmptyValues;
|
||||
exports.useEmptyValuesProps = useEmptyValuesProps;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
web/admin-spa/node_modules/element-plus/lib/hooks/use-empty-values/index.js.map
generated
vendored
Normal file
1
web/admin-spa/node_modules/element-plus/lib/hooks/use-empty-values/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sources":["../../../../../packages/hooks/use-empty-values/index.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, ref } from 'vue'\nimport { buildProps, debugWarn, isFunction } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, InjectionKey, Ref } from 'vue'\n\ntype EmptyValuesContext = ExtractPropTypes<typeof useEmptyValuesProps>\n\nexport const emptyValuesContextKey: InjectionKey<Ref<EmptyValuesContext>> =\n Symbol('emptyValuesContextKey')\nexport const SCOPE = 'use-empty-values'\nexport const DEFAULT_EMPTY_VALUES = ['', undefined, null]\nexport const DEFAULT_VALUE_ON_CLEAR = undefined\n\nexport const useEmptyValuesProps = buildProps({\n /**\n * @description empty values supported by the component\n */\n emptyValues: Array,\n /**\n * @description return value when cleared, if you want to set `undefined`, use `() => undefined`\n */\n valueOnClear: {\n type: [String, Number, Boolean, Function],\n default: undefined,\n validator: (val: any) => (isFunction(val) ? !val() : !val),\n },\n} as const)\n\nexport const useEmptyValues = (\n props: EmptyValuesContext,\n defaultValue?: null | undefined\n) => {\n const config = getCurrentInstance()\n ? inject(emptyValuesContextKey, ref<EmptyValuesContext>({}))\n : ref<EmptyValuesContext>({})\n\n const emptyValues = computed(\n () => props.emptyValues || config.value.emptyValues || DEFAULT_EMPTY_VALUES\n )\n\n const valueOnClear = computed(() => {\n // function is used for undefined cause undefined can't be a value of prop\n if (isFunction(props.valueOnClear)) {\n return props.valueOnClear()\n } else if (props.valueOnClear !== undefined) {\n return props.valueOnClear\n } else if (isFunction(config.value.valueOnClear)) {\n return config.value.valueOnClear()\n } else if (config.value.valueOnClear !== undefined) {\n return config.value.valueOnClear\n }\n return defaultValue !== undefined ? defaultValue : DEFAULT_VALUE_ON_CLEAR\n })\n\n const isEmptyValue = (value: any) => {\n return emptyValues.value.includes(value)\n }\n\n if (!emptyValues.value.includes(valueOnClear.value)) {\n debugWarn(SCOPE, 'value-on-clear should be a value of empty-values')\n }\n\n return {\n emptyValues,\n valueOnClear,\n isEmptyValue,\n }\n}\n"],"names":["buildProps","isFunction","getCurrentInstance","inject","ref","computed","debugWarn"],"mappings":";;;;;;;;;AAEY,MAAC,qBAAqB,GAAG,MAAM,CAAC,uBAAuB,EAAE;AACzD,MAAC,KAAK,GAAG,mBAAmB;AAC5B,MAAC,oBAAoB,GAAG,CAAC,EAAE,EAAE,KAAK,CAAC,EAAE,IAAI,EAAE;AAC3C,MAAC,sBAAsB,GAAG,KAAK,EAAE;AACjC,MAAC,mBAAmB,GAAGA,kBAAU,CAAC;AAC9C,EAAE,WAAW,EAAE,KAAK;AACpB,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC;AAC7C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,IAAI,SAAS,EAAE,CAAC,GAAG,KAAKC,iBAAU,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG;AACvD,GAAG;AACH,CAAC,EAAE;AACS,MAAC,cAAc,GAAG,CAAC,KAAK,EAAE,YAAY,KAAK;AACvD,EAAE,MAAM,MAAM,GAAGC,sBAAkB,EAAE,GAAGC,UAAM,CAAC,qBAAqB,EAAEC,OAAG,CAAC,EAAE,CAAC,CAAC,GAAGA,OAAG,CAAC,EAAE,CAAC,CAAC;AACzF,EAAE,MAAM,WAAW,GAAGC,YAAQ,CAAC,MAAM,KAAK,CAAC,WAAW,IAAI,MAAM,CAAC,KAAK,CAAC,WAAW,IAAI,oBAAoB,CAAC,CAAC;AAC5G,EAAE,MAAM,YAAY,GAAGA,YAAQ,CAAC,MAAM;AACtC,IAAI,IAAIJ,iBAAU,CAAC,KAAK,CAAC,YAAY,CAAC,EAAE;AACxC,MA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