测试
This commit is contained in:
14
frontend/node_modules/element-plus/es/components/checkbox/index.d.ts
generated
vendored
Normal file
14
frontend/node_modules/element-plus/es/components/checkbox/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import Checkbox from './src/checkbox.vue';
|
||||
import CheckboxButton from './src/checkbox-button.vue';
|
||||
import CheckboxGroup from './src/checkbox-group.vue';
|
||||
import type { SFCWithInstall } from 'element-plus/es/utils';
|
||||
export declare const ElCheckbox: SFCWithInstall<typeof Checkbox> & {
|
||||
CheckboxButton: typeof CheckboxButton;
|
||||
CheckboxGroup: typeof CheckboxGroup;
|
||||
};
|
||||
export default ElCheckbox;
|
||||
export declare const ElCheckboxButton: SFCWithInstall<typeof CheckboxButton>;
|
||||
export declare const ElCheckboxGroup: SFCWithInstall<typeof CheckboxGroup>;
|
||||
export * from './src/checkbox-group';
|
||||
export * from './src/checkbox';
|
||||
export * from './src/constants';
|
||||
17
frontend/node_modules/element-plus/es/components/checkbox/index.mjs
generated
vendored
Normal file
17
frontend/node_modules/element-plus/es/components/checkbox/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import Checkbox from './src/checkbox2.mjs';
|
||||
import CheckboxButton from './src/checkbox-button.mjs';
|
||||
import CheckboxGroup from './src/checkbox-group2.mjs';
|
||||
export { checkboxDefaultProps, checkboxGroupEmits, checkboxGroupProps } from './src/checkbox-group.mjs';
|
||||
export { checkboxEmits, checkboxProps } from './src/checkbox.mjs';
|
||||
export { checkboxGroupContextKey } from './src/constants.mjs';
|
||||
import { withInstall, withNoopInstall } from '../../utils/vue/install.mjs';
|
||||
|
||||
const ElCheckbox = withInstall(Checkbox, {
|
||||
CheckboxButton,
|
||||
CheckboxGroup
|
||||
});
|
||||
const ElCheckboxButton = withNoopInstall(CheckboxButton);
|
||||
const ElCheckboxGroup = withNoopInstall(CheckboxGroup);
|
||||
|
||||
export { ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElCheckbox as default };
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/index.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/index.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/checkbox/index.ts"],"sourcesContent":["import { withInstall, withNoopInstall } from '@element-plus/utils'\nimport Checkbox from './src/checkbox.vue'\nimport CheckboxButton from './src/checkbox-button.vue'\nimport CheckboxGroup from './src/checkbox-group.vue'\n\nimport type { SFCWithInstall } from '@element-plus/utils'\n\nexport const ElCheckbox: SFCWithInstall<typeof Checkbox> & {\n CheckboxButton: typeof CheckboxButton\n CheckboxGroup: typeof CheckboxGroup\n} = withInstall(Checkbox, {\n CheckboxButton,\n CheckboxGroup,\n})\nexport default ElCheckbox\n\nexport const ElCheckboxButton: SFCWithInstall<typeof CheckboxButton> =\n withNoopInstall(CheckboxButton)\nexport const ElCheckboxGroup: SFCWithInstall<typeof CheckboxGroup> =\n withNoopInstall(CheckboxGroup)\n\nexport * from './src/checkbox-group'\nexport * from './src/checkbox'\nexport * from './src/constants'\n"],"names":[],"mappings":";;;;;;;;AAIY,MAAC,UAAU,GAAG,WAAW,CAAC,QAAQ,EAAE;AAChD,EAAE,cAAc;AAChB,EAAE,aAAa;AACf,CAAC,EAAE;AAES,MAAC,gBAAgB,GAAG,eAAe,CAAC,cAAc,EAAE;AACpD,MAAC,eAAe,GAAG,eAAe,CAAC,aAAa;;;;"}
|
||||
96
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-button.mjs
generated
vendored
Normal file
96
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-button.mjs
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
import { defineComponent, useSlots, computed, inject, openBlock, createElementBlock, normalizeClass, unref, withDirectives, createElementVNode, mergeProps, isRef, withModifiers, vModelCheckbox, normalizeStyle, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
||||
import { checkboxGroupContextKey } from './constants.mjs';
|
||||
import { checkboxProps, checkboxEmits } from './checkbox.mjs';
|
||||
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
||||
import { useCheckbox } from './composables/use-checkbox.mjs';
|
||||
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
||||
|
||||
const __default__ = defineComponent({
|
||||
name: "ElCheckboxButton"
|
||||
});
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
...__default__,
|
||||
props: checkboxProps,
|
||||
emits: checkboxEmits,
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
const slots = useSlots();
|
||||
const {
|
||||
isFocused,
|
||||
isChecked,
|
||||
isDisabled,
|
||||
checkboxButtonSize,
|
||||
model,
|
||||
actualValue,
|
||||
handleChange
|
||||
} = useCheckbox(props, slots);
|
||||
const inputBindings = computed(() => {
|
||||
var _a, _b, _c, _d;
|
||||
if (props.trueValue || props.falseValue || props.trueLabel || props.falseLabel) {
|
||||
return {
|
||||
"true-value": (_b = (_a = props.trueValue) != null ? _a : props.trueLabel) != null ? _b : true,
|
||||
"false-value": (_d = (_c = props.falseValue) != null ? _c : props.falseLabel) != null ? _d : false
|
||||
};
|
||||
}
|
||||
return {
|
||||
value: actualValue.value
|
||||
};
|
||||
});
|
||||
const checkboxGroup = inject(checkboxGroupContextKey, void 0);
|
||||
const ns = useNamespace("checkbox");
|
||||
const activeStyle = computed(() => {
|
||||
var _a, _b, _c, _d;
|
||||
const fillValue = (_b = (_a = checkboxGroup == null ? void 0 : checkboxGroup.fill) == null ? void 0 : _a.value) != null ? _b : "";
|
||||
return {
|
||||
backgroundColor: fillValue,
|
||||
borderColor: fillValue,
|
||||
color: (_d = (_c = checkboxGroup == null ? void 0 : checkboxGroup.textColor) == null ? void 0 : _c.value) != null ? _d : "",
|
||||
boxShadow: fillValue ? `-1px 0 0 0 ${fillValue}` : void 0
|
||||
};
|
||||
});
|
||||
const labelKls = computed(() => {
|
||||
return [
|
||||
ns.b("button"),
|
||||
ns.bm("button", checkboxButtonSize.value),
|
||||
ns.is("disabled", isDisabled.value),
|
||||
ns.is("checked", isChecked.value),
|
||||
ns.is("focus", isFocused.value)
|
||||
];
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createElementBlock("label", {
|
||||
class: normalizeClass(unref(labelKls))
|
||||
}, [
|
||||
withDirectives(createElementVNode("input", mergeProps({
|
||||
"onUpdate:modelValue": ($event) => isRef(model) ? model.value = $event : null,
|
||||
class: unref(ns).be("button", "original"),
|
||||
type: "checkbox",
|
||||
name: _ctx.name,
|
||||
tabindex: _ctx.tabindex,
|
||||
disabled: unref(isDisabled)
|
||||
}, unref(inputBindings), {
|
||||
onChange: unref(handleChange),
|
||||
onFocus: ($event) => isFocused.value = true,
|
||||
onBlur: ($event) => isFocused.value = false,
|
||||
onClick: withModifiers(() => {
|
||||
}, ["stop"])
|
||||
}), null, 16, ["onUpdate:modelValue", "name", "tabindex", "disabled", "onChange", "onFocus", "onBlur", "onClick"]), [
|
||||
[vModelCheckbox, unref(model)]
|
||||
]),
|
||||
_ctx.$slots.default || _ctx.label ? (openBlock(), createElementBlock("span", {
|
||||
key: 0,
|
||||
class: normalizeClass(unref(ns).be("button", "inner")),
|
||||
style: normalizeStyle(unref(isChecked) ? unref(activeStyle) : void 0)
|
||||
}, [
|
||||
renderSlot(_ctx.$slots, "default", {}, () => [
|
||||
createTextVNode(toDisplayString(_ctx.label), 1)
|
||||
])
|
||||
], 6)) : createCommentVNode("v-if", true)
|
||||
], 2);
|
||||
};
|
||||
}
|
||||
});
|
||||
var CheckboxButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "checkbox-button.vue"]]);
|
||||
|
||||
export { CheckboxButton as default };
|
||||
//# sourceMappingURL=checkbox-button.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-button.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-button.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"checkbox-button.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox-button.vue"],"sourcesContent":["<template>\n <label :class=\"labelKls\">\n <input\n v-model=\"model\"\n :class=\"ns.be('button', 'original')\"\n type=\"checkbox\"\n :name=\"name\"\n :tabindex=\"tabindex\"\n :disabled=\"isDisabled\"\n v-bind=\"inputBindings\"\n @change=\"handleChange\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n @click.stop\n />\n\n <span\n v-if=\"$slots.default || label\"\n :class=\"ns.be('button', 'inner')\"\n :style=\"isChecked ? activeStyle : undefined\"\n >\n <slot>{{ label }}</slot>\n </span>\n </label>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, inject, useSlots } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { checkboxGroupContextKey } from './constants'\nimport { useCheckbox } from './composables'\nimport { checkboxEmits, checkboxProps } from './checkbox'\n\nimport type { CSSProperties } from 'vue'\n\ndefineOptions({\n name: 'ElCheckboxButton',\n})\n\nconst props = defineProps(checkboxProps)\ndefineEmits(checkboxEmits)\nconst slots = useSlots()\n\nconst {\n isFocused,\n isChecked,\n isDisabled,\n checkboxButtonSize,\n model,\n actualValue,\n handleChange,\n} = useCheckbox(props, slots)\n\nconst inputBindings = computed(() => {\n if (\n props.trueValue ||\n props.falseValue ||\n props.trueLabel ||\n props.falseLabel\n ) {\n return {\n 'true-value': props.trueValue ?? props.trueLabel ?? true,\n 'false-value': props.falseValue ?? props.falseLabel ?? false,\n }\n }\n return {\n value: actualValue.value,\n }\n})\n\nconst checkboxGroup = inject(checkboxGroupContextKey, undefined)\nconst ns = useNamespace('checkbox')\n\nconst activeStyle = computed<CSSProperties>(() => {\n const fillValue = checkboxGroup?.fill?.value ?? ''\n return {\n backgroundColor: fillValue,\n borderColor: fillValue,\n color: checkboxGroup?.textColor?.value ?? '',\n boxShadow: fillValue ? `-1px 0 0 0 ${fillValue}` : undefined,\n }\n})\n\nconst labelKls = computed(() => {\n return [\n ns.b('button'),\n ns.bm('button', checkboxButtonSize.value),\n ns.is('disabled', isDisabled.value),\n ns.is('checked', isChecked.value),\n ns.is('focus', isFocused.value),\n ]\n})\n</script>\n"],"names":[],"mappings":";;;;;;;mCAmCc,CAAA;AAAA,EACZ,IAAM,EAAA,kBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA;AAAA,MACJ,SAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,kBAAA;AAAA,MACA,KAAA;AAAA,MACA,WAAA;AAAA,MACA,YAAA;AAAA,KACF,GAAI,WAAY,CAAA,KAAA,EAAO,KAAK,CAAA,CAAA;AAE5B,IAAM,MAAA,aAAA,GAAgB,SAAS,MAAM;AACnC,MAAA,IACE,MAAM,EACN,EAAA,EAAA,EAAA,CAAA;AAIA,MAAO,IAAA,KAAA,CAAA,SAAA,IAAA,KAAA,CAAA,UAAA,IAAA,KAAA,CAAA,SAAA,IAAA,KAAA,CAAA,UAAA,EAAA;AAAA,QAAA,OACS;AAAsC,UACpD,YAAe,EAAA,CAAA,EAAA,GAAA,CAAM,EAAc,GAAA,KAAA,CAAA,SAAM,KAAc,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,SAAA,KAAA,IAAA,GAAA,EAAA,GAAA,IAAA;AAAA,UACzD,aAAA,EAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,UAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,UAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA;AAAA,SACF,CAAA;AACA,OAAO;AAAA,MAAA;AACc,QACrB,KAAA,EAAA,WAAA,CAAA,KAAA;AAAA,OACD,CAAA;AAED,KAAM,CAAA,CAAA;AACN,IAAM,MAAA,sBAA4B,CAAA,uBAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAElC,IAAM,MAAA,EAAA,GAAA,uBAA4C,CAAA,CAAA;AAChD,IAAM,MAAA,WAAA,GAAY,QAAe,CAAA,MAAA;AACjC,MAAO,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,EAAA,CAAA;AAAA,MAAA,MACY,SAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,aAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,aAAA,CAAA,IAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,KAAA,KAAA,IAAA,GAAA,EAAA,GAAA,EAAA,CAAA;AAAA,MAAA,OACJ;AAAA,QACb,eAAsB,EAAA,SAAA;AAAoB,QAC1C,WAAW,EAAA,SAAA;AAAwC,QACrD,KAAA,EAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,aAAA,IAAA,IAAA,GAAA,KAAA,CAAA,GAAA,aAAA,CAAA,SAAA,KAAA,IAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,KAAA,KAAA,IAAA,GAAA,EAAA,GAAA,EAAA;AAAA,QACD,SAAA,EAAA,SAAA,GAAA,CAAA,WAAA,EAAA,SAAA,CAAA,CAAA,GAAA,KAAA,CAAA;AAED,OAAM,CAAA;AACJ,KAAO,CAAA,CAAA;AAAA,IACL,MAAA,QAAa,GAAA,QAAA,CAAA,MAAA;AAAA,MAAA,OACV;AAAqC,QACxC,EAAG,CAAA,CAAA,CAAA,QAAe,CAAA;AAAgB,QAClC,EAAG,CAAA,EAAA,CAAG,QAAW,EAAA,kBAAe,CAAA,KAAA,CAAA;AAAA,QAChC,EAAG,CAAA,EAAA,CAAG,UAAS,EAAA,UAAe,CAAA,KAAA,CAAA;AAAA,QAChC,EAAA,CAAA,EAAA,CAAA,SAAA,EAAA,SAAA,CAAA,KAAA,CAAA;AAAA,QACD,EAAA,CAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,KAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
||||
138
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-button.vue.d.ts
generated
vendored
Normal file
138
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-button.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,138 @@
|
||||
declare function __VLS_template(): {
|
||||
default?(_: {}): any;
|
||||
};
|
||||
declare const __VLS_component: import("vue").DefineComponent<{
|
||||
ariaControls: StringConstructor;
|
||||
modelValue: {
|
||||
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
label: {
|
||||
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
value: {
|
||||
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
indeterminate: BooleanConstructor;
|
||||
disabled: BooleanConstructor;
|
||||
checked: BooleanConstructor;
|
||||
name: {
|
||||
type: StringConstructor;
|
||||
default: undefined;
|
||||
};
|
||||
trueValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
falseValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
trueLabel: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
falseLabel: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
id: {
|
||||
type: StringConstructor;
|
||||
default: undefined;
|
||||
};
|
||||
border: BooleanConstructor;
|
||||
size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
tabindex: (NumberConstructor | StringConstructor)[];
|
||||
validateEvent: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
||||
"update:modelValue": (val: import("./checkbox").CheckboxValueType) => void;
|
||||
change: (val: import("./checkbox").CheckboxValueType) => void;
|
||||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
ariaControls: StringConstructor;
|
||||
modelValue: {
|
||||
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
label: {
|
||||
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
value: {
|
||||
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
indeterminate: BooleanConstructor;
|
||||
disabled: BooleanConstructor;
|
||||
checked: BooleanConstructor;
|
||||
name: {
|
||||
type: StringConstructor;
|
||||
default: undefined;
|
||||
};
|
||||
trueValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
falseValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
trueLabel: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
falseLabel: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
id: {
|
||||
type: StringConstructor;
|
||||
default: undefined;
|
||||
};
|
||||
border: BooleanConstructor;
|
||||
size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
tabindex: (NumberConstructor | StringConstructor)[];
|
||||
validateEvent: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>> & {
|
||||
"onUpdate:modelValue"?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
|
||||
onChange?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
|
||||
}, {
|
||||
label: string | number | boolean | Record<string, any>;
|
||||
disabled: boolean;
|
||||
border: boolean;
|
||||
value: string | number | boolean | Record<string, any>;
|
||||
id: string;
|
||||
name: string;
|
||||
modelValue: string | number | boolean;
|
||||
validateEvent: boolean;
|
||||
indeterminate: boolean;
|
||||
checked: boolean;
|
||||
trueValue: string | number;
|
||||
falseValue: string | number;
|
||||
trueLabel: string | number;
|
||||
falseLabel: string | number;
|
||||
}>;
|
||||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
||||
export default _default;
|
||||
type __VLS_WithTemplateSlots<T, S> = T & {
|
||||
new (): {
|
||||
$slots: S;
|
||||
};
|
||||
};
|
||||
45
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group.d.ts
generated
vendored
Normal file
45
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group.d.ts
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
|
||||
import type checkboxGroup from './checkbox-group.vue';
|
||||
import type { CheckboxPropsPublic, CheckboxValueType } from './checkbox';
|
||||
export type CheckboxGroupValueType = Exclude<CheckboxValueType, boolean>[];
|
||||
export declare const checkboxGroupProps: {
|
||||
readonly ariaLabel: StringConstructor;
|
||||
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => CheckboxGroupValueType) | (() => CheckboxGroupValueType) | ((new (...args: any[]) => CheckboxGroupValueType) | (() => CheckboxGroupValueType))[], unknown, unknown, () => never[], boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly min: NumberConstructor;
|
||||
readonly max: NumberConstructor;
|
||||
readonly size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly fill: StringConstructor;
|
||||
readonly textColor: StringConstructor;
|
||||
readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
|
||||
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly options: {
|
||||
readonly type: import("vue").PropType<CheckboxOption[]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly props: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => CheckboxOptionProps) | (() => CheckboxOptionProps) | ((new (...args: any[]) => CheckboxOptionProps) | (() => CheckboxOptionProps))[], unknown, unknown, () => Required<CheckboxOptionProps>, boolean>;
|
||||
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "checkbox", unknown, "checkbox", boolean>;
|
||||
};
|
||||
export declare const checkboxGroupEmits: {
|
||||
"update:modelValue": (val: CheckboxGroupValueType) => boolean;
|
||||
change: (val: CheckboxValueType[]) => boolean;
|
||||
};
|
||||
export type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>;
|
||||
export type CheckboxGroupPropsPublic = __ExtractPublicPropTypes<typeof checkboxGroupProps>;
|
||||
export type CheckboxGroupEmits = typeof checkboxGroupEmits;
|
||||
export type CheckboxGroupInstance = InstanceType<typeof checkboxGroup> & unknown;
|
||||
export type CheckboxOption = CheckboxPropsPublic & Record<string, any>;
|
||||
type CheckboxOptionProps = {
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
};
|
||||
export declare const checkboxDefaultProps: Required<CheckboxOptionProps>;
|
||||
export {};
|
||||
51
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group.mjs
generated
vendored
Normal file
51
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group.mjs
generated
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
import { buildProps, definePropType } from '../../../utils/vue/props/runtime.mjs';
|
||||
import { useSizeProp } from '../../../hooks/use-size/index.mjs';
|
||||
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|
||||
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
||||
import { isArray } from '@vue/shared';
|
||||
|
||||
const checkboxGroupProps = buildProps({
|
||||
modelValue: {
|
||||
type: definePropType(Array),
|
||||
default: () => []
|
||||
},
|
||||
disabled: Boolean,
|
||||
min: Number,
|
||||
max: Number,
|
||||
size: useSizeProp,
|
||||
fill: String,
|
||||
textColor: String,
|
||||
tag: {
|
||||
type: String,
|
||||
default: "div"
|
||||
},
|
||||
validateEvent: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
options: {
|
||||
type: definePropType(Array)
|
||||
},
|
||||
props: {
|
||||
type: definePropType(Object),
|
||||
default: () => checkboxDefaultProps
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
values: ["checkbox", "button"],
|
||||
default: "checkbox"
|
||||
},
|
||||
...useAriaProps(["ariaLabel"])
|
||||
});
|
||||
const checkboxGroupEmits = {
|
||||
[UPDATE_MODEL_EVENT]: (val) => isArray(val),
|
||||
change: (val) => isArray(val)
|
||||
};
|
||||
const checkboxDefaultProps = {
|
||||
label: "label",
|
||||
value: "value",
|
||||
disabled: "disabled"
|
||||
};
|
||||
|
||||
export { checkboxDefaultProps, checkboxGroupEmits, checkboxGroupProps };
|
||||
//# sourceMappingURL=checkbox-group.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"checkbox-group.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox-group.ts"],"sourcesContent":["import { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { buildProps, definePropType, isArray } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type checkboxGroup from './checkbox-group.vue'\nimport type { CheckboxPropsPublic, CheckboxValueType } from './checkbox'\n\nexport type CheckboxGroupValueType = Exclude<CheckboxValueType, boolean>[]\n\nexport const checkboxGroupProps = buildProps({\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<CheckboxGroupValueType>(Array),\n default: () => [],\n },\n /**\n * @description whether the nesting checkboxes are disabled\n */\n disabled: Boolean,\n /**\n * @description minimum number of checkbox checked\n */\n min: Number,\n /**\n * @description maximum number of checkbox checked\n */\n max: Number,\n /**\n * @description size of checkbox\n */\n size: useSizeProp,\n /**\n * @description border and background color when button is active\n */\n fill: String,\n /**\n * @description font color when button is active\n */\n textColor: String,\n /**\n * @description element tag of the checkbox group\n */\n tag: {\n type: String,\n default: 'div',\n },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n options: {\n type: definePropType<CheckboxOption[]>(Array),\n },\n props: {\n type: definePropType<CheckboxOptionProps>(Object),\n default: () => checkboxDefaultProps,\n },\n type: {\n type: String,\n values: ['checkbox', 'button'] as const,\n default: 'checkbox',\n },\n ...useAriaProps(['ariaLabel']),\n} as const)\n\nexport const checkboxGroupEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxGroupValueType) => isArray(val),\n change: (val: CheckboxValueType[]) => isArray(val),\n}\n\nexport type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>\nexport type CheckboxGroupPropsPublic = __ExtractPublicPropTypes<\n typeof checkboxGroupProps\n>\nexport type CheckboxGroupEmits = typeof checkboxGroupEmits\nexport type CheckboxGroupInstance = InstanceType<typeof checkboxGroup> & unknown\n\nexport type CheckboxOption = CheckboxPropsPublic & Record<string, any>\n\ntype CheckboxOptionProps = {\n value?: string\n label?: string\n disabled?: string\n}\nexport const checkboxDefaultProps: Required<CheckboxOptionProps> = {\n label: 'label',\n value: 'value',\n disabled: 'disabled',\n}\n"],"names":[],"mappings":";;;;;;AAGY,MAAC,kBAAkB,GAAG,UAAU,CAAC;AAC7C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,GAAG,EAAE,MAAM;AACb,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,SAAS,EAAE,MAAM;AACnB,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,cAAc,CAAC,KAAK,CAAC;AAC/B,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,IAAI,OAAO,EAAE,MAAM,oBAAoB;AACvC,GAAG;AACH,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;AAClC,IAAI,OAAO,EAAE,UAAU;AACvB,GAAG;AACH,EAAE,GAAG,YAAY,CAAC,CAAC,WAAW,CAAC,CAAC;AAChC,CAAC,EAAE;AACS,MAAC,kBAAkB,GAAG;AAClC,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;AAC7C,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;AAC/B,EAAE;AACU,MAAC,oBAAoB,GAAG;AACpC,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,KAAK,EAAE,OAAO;AAChB,EAAE,QAAQ,EAAE,UAAU;AACtB;;;;"}
|
||||
117
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group.vue.d.ts
generated
vendored
Normal file
117
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,117 @@
|
||||
import type { CheckboxGroupValueType } from './checkbox-group';
|
||||
declare function __VLS_template(): {
|
||||
default?(_: {}): any;
|
||||
};
|
||||
declare const __VLS_component: import("vue").DefineComponent<{
|
||||
readonly ariaLabel: StringConstructor;
|
||||
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => CheckboxGroupValueType) | (() => CheckboxGroupValueType) | ((new (...args: any[]) => CheckboxGroupValueType) | (() => CheckboxGroupValueType))[], unknown, unknown, () => never[], boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly min: NumberConstructor;
|
||||
readonly max: NumberConstructor;
|
||||
readonly size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly fill: StringConstructor;
|
||||
readonly textColor: StringConstructor;
|
||||
readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
|
||||
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly options: {
|
||||
readonly type: import("vue").PropType<import("./checkbox-group").CheckboxOption[]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly props: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
}) | (() => {
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
}) | ((new (...args: any[]) => {
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
}) | (() => {
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
}))[], unknown, unknown, () => Required<{
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
}>, boolean>;
|
||||
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "checkbox", unknown, "checkbox", boolean>;
|
||||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
||||
"update:modelValue": (val: CheckboxGroupValueType) => void;
|
||||
change: (val: import("element-plus").CheckboxValueType[]) => void;
|
||||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
readonly ariaLabel: StringConstructor;
|
||||
readonly modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => CheckboxGroupValueType) | (() => CheckboxGroupValueType) | ((new (...args: any[]) => CheckboxGroupValueType) | (() => CheckboxGroupValueType))[], unknown, unknown, () => never[], boolean>;
|
||||
readonly disabled: BooleanConstructor;
|
||||
readonly min: NumberConstructor;
|
||||
readonly max: NumberConstructor;
|
||||
readonly size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly fill: StringConstructor;
|
||||
readonly textColor: StringConstructor;
|
||||
readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
|
||||
readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
||||
readonly options: {
|
||||
readonly type: import("vue").PropType<import("./checkbox-group").CheckboxOption[]>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
readonly props: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => {
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
}) | (() => {
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
}) | ((new (...args: any[]) => {
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
}) | (() => {
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
}))[], unknown, unknown, () => Required<{
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
}>, boolean>;
|
||||
readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "checkbox", unknown, "checkbox", boolean>;
|
||||
}>> & {
|
||||
"onUpdate:modelValue"?: ((val: CheckboxGroupValueType) => any) | undefined;
|
||||
onChange?: ((val: import("element-plus").CheckboxValueType[]) => any) | undefined;
|
||||
}, {
|
||||
readonly disabled: boolean;
|
||||
readonly type: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "button" | "checkbox", unknown>;
|
||||
readonly props: {
|
||||
value?: string;
|
||||
label?: string;
|
||||
disabled?: string;
|
||||
};
|
||||
readonly modelValue: CheckboxGroupValueType;
|
||||
readonly validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
||||
readonly tag: string;
|
||||
}>;
|
||||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
||||
export default _default;
|
||||
type __VLS_WithTemplateSlots<T, S> = T & {
|
||||
new (): {
|
||||
$slots: S;
|
||||
};
|
||||
};
|
||||
96
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group2.mjs
generated
vendored
Normal file
96
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group2.mjs
generated
vendored
Normal file
@@ -0,0 +1,96 @@
|
||||
import { defineComponent, computed, provide, toRefs, watch, openBlock, createBlock, resolveDynamicComponent, unref, normalizeClass, withCtx, renderSlot, createElementBlock, Fragment, renderList, mergeProps, nextTick } from 'vue';
|
||||
import { pick, isEqual, omit } from 'lodash-unified';
|
||||
import { checkboxGroupProps, checkboxGroupEmits, checkboxDefaultProps } from './checkbox-group.mjs';
|
||||
import { checkboxGroupContextKey } from './constants.mjs';
|
||||
import Checkbox from './checkbox2.mjs';
|
||||
import CheckboxButton from './checkbox-button.mjs';
|
||||
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
||||
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
||||
import { useFormItem, useFormItemInputId } from '../../form/src/hooks/use-form-item.mjs';
|
||||
import { debugWarn } from '../../../utils/error.mjs';
|
||||
import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
|
||||
|
||||
const __default__ = defineComponent({
|
||||
name: "ElCheckboxGroup"
|
||||
});
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
...__default__,
|
||||
props: checkboxGroupProps,
|
||||
emits: checkboxGroupEmits,
|
||||
setup(__props, { emit }) {
|
||||
const props = __props;
|
||||
const ns = useNamespace("checkbox");
|
||||
const { formItem } = useFormItem();
|
||||
const { inputId: groupId, isLabeledByFormItem } = useFormItemInputId(props, {
|
||||
formItemContext: formItem
|
||||
});
|
||||
const changeEvent = async (value) => {
|
||||
emit(UPDATE_MODEL_EVENT, value);
|
||||
await nextTick();
|
||||
emit(CHANGE_EVENT, value);
|
||||
};
|
||||
const modelValue = computed({
|
||||
get() {
|
||||
return props.modelValue;
|
||||
},
|
||||
set(val) {
|
||||
changeEvent(val);
|
||||
}
|
||||
});
|
||||
const aliasProps = computed(() => ({
|
||||
...checkboxDefaultProps,
|
||||
...props.props
|
||||
}));
|
||||
const getOptionProps = (option) => {
|
||||
const { label, value, disabled } = aliasProps.value;
|
||||
const base = {
|
||||
label: option[label],
|
||||
value: option[value],
|
||||
disabled: option[disabled]
|
||||
};
|
||||
return { ...omit(option, [label, value, disabled]), ...base };
|
||||
};
|
||||
const optionComponent = computed(() => props.type === "button" ? CheckboxButton : Checkbox);
|
||||
provide(checkboxGroupContextKey, {
|
||||
...pick(toRefs(props), [
|
||||
"size",
|
||||
"min",
|
||||
"max",
|
||||
"disabled",
|
||||
"validateEvent",
|
||||
"fill",
|
||||
"textColor"
|
||||
]),
|
||||
modelValue,
|
||||
changeEvent
|
||||
});
|
||||
watch(() => props.modelValue, (newVal, oldValue) => {
|
||||
if (props.validateEvent && !isEqual(newVal, oldValue)) {
|
||||
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
||||
}
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
var _a;
|
||||
return openBlock(), createBlock(resolveDynamicComponent(_ctx.tag), {
|
||||
id: unref(groupId),
|
||||
class: normalizeClass(unref(ns).b("group")),
|
||||
role: "group",
|
||||
"aria-label": !unref(isLabeledByFormItem) ? _ctx.ariaLabel || "checkbox-group" : void 0,
|
||||
"aria-labelledby": unref(isLabeledByFormItem) ? (_a = unref(formItem)) == null ? void 0 : _a.labelId : void 0
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
renderSlot(_ctx.$slots, "default", {}, () => [
|
||||
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, (item, index) => {
|
||||
return openBlock(), createBlock(resolveDynamicComponent(unref(optionComponent)), mergeProps({ key: index }, getOptionProps(item)), null, 16);
|
||||
}), 128))
|
||||
])
|
||||
]),
|
||||
_: 3
|
||||
}, 8, ["id", "class", "aria-label", "aria-labelledby"]);
|
||||
};
|
||||
}
|
||||
});
|
||||
var CheckboxGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "checkbox-group.vue"]]);
|
||||
|
||||
export { CheckboxGroup as default };
|
||||
//# sourceMappingURL=checkbox-group2.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group2.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox-group2.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
115
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox.d.ts
generated
vendored
Normal file
115
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox.d.ts
generated
vendored
Normal file
@@ -0,0 +1,115 @@
|
||||
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
|
||||
import type Checkbox from './checkbox.vue';
|
||||
export type CheckboxValueType = string | number | boolean;
|
||||
export declare const checkboxProps: {
|
||||
ariaControls: StringConstructor;
|
||||
/**
|
||||
* @description binding value
|
||||
*/
|
||||
modelValue: {
|
||||
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
/**
|
||||
* @description label of the Checkbox when used inside a `checkbox-group`
|
||||
*/
|
||||
label: {
|
||||
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
/**
|
||||
* @description value of the Checkbox when used inside a `checkbox-group`
|
||||
*/
|
||||
value: {
|
||||
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
/**
|
||||
* @description Set indeterminate state, only responsible for style control
|
||||
*/
|
||||
indeterminate: BooleanConstructor;
|
||||
/**
|
||||
* @description whether the Checkbox is disabled
|
||||
*/
|
||||
disabled: BooleanConstructor;
|
||||
/**
|
||||
* @description if the Checkbox is checked
|
||||
*/
|
||||
checked: BooleanConstructor;
|
||||
/**
|
||||
* @description native 'name' attribute
|
||||
*/
|
||||
name: {
|
||||
type: StringConstructor;
|
||||
default: undefined;
|
||||
};
|
||||
/**
|
||||
* @description value of the Checkbox if it's checked
|
||||
*/
|
||||
trueValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
/**
|
||||
* @description value of the Checkbox if it's not checked
|
||||
*/
|
||||
falseValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
/**
|
||||
* @deprecated use `trueValue` instead
|
||||
* @description value of the Checkbox if it's checked
|
||||
*/
|
||||
trueLabel: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
/**
|
||||
* @deprecated use `falseValue` instead
|
||||
* @description value of the Checkbox if it's not checked
|
||||
*/
|
||||
falseLabel: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
/**
|
||||
* @description input id
|
||||
*/
|
||||
id: {
|
||||
type: StringConstructor;
|
||||
default: undefined;
|
||||
};
|
||||
/**
|
||||
* @description whether to add a border around Checkbox
|
||||
*/
|
||||
border: BooleanConstructor;
|
||||
/**
|
||||
* @description size of the Checkbox
|
||||
*/
|
||||
size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
/**
|
||||
* @description input tabindex
|
||||
*/
|
||||
tabindex: (NumberConstructor | StringConstructor)[];
|
||||
/**
|
||||
* @description whether to trigger form validation
|
||||
*/
|
||||
validateEvent: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
};
|
||||
export declare const checkboxEmits: {
|
||||
"update:modelValue": (val: CheckboxValueType) => val is string | number | boolean;
|
||||
change: (val: CheckboxValueType) => val is string | number | boolean;
|
||||
};
|
||||
export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
|
||||
export type CheckboxPropsPublic = __ExtractPublicPropTypes<typeof checkboxProps>;
|
||||
export type CheckboxEmits = typeof checkboxEmits;
|
||||
export type CheckboxInstance = InstanceType<typeof Checkbox> & unknown;
|
||||
62
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox.mjs
generated
vendored
Normal file
62
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox.mjs
generated
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
import { useSizeProp } from '../../../hooks/use-size/index.mjs';
|
||||
import { useAriaProps } from '../../../hooks/use-aria/index.mjs';
|
||||
import { UPDATE_MODEL_EVENT } from '../../../constants/event.mjs';
|
||||
import { isString } from '@vue/shared';
|
||||
import { isNumber, isBoolean } from '../../../utils/types.mjs';
|
||||
|
||||
const checkboxProps = {
|
||||
modelValue: {
|
||||
type: [Number, String, Boolean],
|
||||
default: void 0
|
||||
},
|
||||
label: {
|
||||
type: [String, Boolean, Number, Object],
|
||||
default: void 0
|
||||
},
|
||||
value: {
|
||||
type: [String, Boolean, Number, Object],
|
||||
default: void 0
|
||||
},
|
||||
indeterminate: Boolean,
|
||||
disabled: Boolean,
|
||||
checked: Boolean,
|
||||
name: {
|
||||
type: String,
|
||||
default: void 0
|
||||
},
|
||||
trueValue: {
|
||||
type: [String, Number],
|
||||
default: void 0
|
||||
},
|
||||
falseValue: {
|
||||
type: [String, Number],
|
||||
default: void 0
|
||||
},
|
||||
trueLabel: {
|
||||
type: [String, Number],
|
||||
default: void 0
|
||||
},
|
||||
falseLabel: {
|
||||
type: [String, Number],
|
||||
default: void 0
|
||||
},
|
||||
id: {
|
||||
type: String,
|
||||
default: void 0
|
||||
},
|
||||
border: Boolean,
|
||||
size: useSizeProp,
|
||||
tabindex: [String, Number],
|
||||
validateEvent: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
...useAriaProps(["ariaControls"])
|
||||
};
|
||||
const checkboxEmits = {
|
||||
[UPDATE_MODEL_EVENT]: (val) => isString(val) || isNumber(val) || isBoolean(val),
|
||||
change: (val) => isString(val) || isNumber(val) || isBoolean(val)
|
||||
};
|
||||
|
||||
export { checkboxEmits, checkboxProps };
|
||||
//# sourceMappingURL=checkbox.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"checkbox.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox.ts"],"sourcesContent":["import { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { useAriaProps, useSizeProp } from '@element-plus/hooks'\nimport { isBoolean, isNumber, isString } from '@element-plus/utils'\n\nimport type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'\nimport type Checkbox from './checkbox.vue'\n\nexport type CheckboxValueType = string | number | boolean\n\nexport const checkboxProps = {\n /**\n * @description binding value\n */\n modelValue: {\n type: [Number, String, Boolean],\n default: undefined,\n },\n /**\n * @description label of the Checkbox when used inside a `checkbox-group`\n */\n label: {\n type: [String, Boolean, Number, Object],\n default: undefined,\n },\n /**\n * @description value of the Checkbox when used inside a `checkbox-group`\n */\n value: {\n type: [String, Boolean, Number, Object],\n default: undefined,\n },\n /**\n * @description Set indeterminate state, only responsible for style control\n */\n indeterminate: Boolean,\n /**\n * @description whether the Checkbox is disabled\n */\n disabled: Boolean,\n /**\n * @description if the Checkbox is checked\n */\n checked: Boolean,\n /**\n * @description native 'name' attribute\n */\n name: {\n type: String,\n default: undefined,\n },\n /**\n * @description value of the Checkbox if it's checked\n */\n trueValue: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description value of the Checkbox if it's not checked\n */\n falseValue: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @deprecated use `trueValue` instead\n * @description value of the Checkbox if it's checked\n */\n trueLabel: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @deprecated use `falseValue` instead\n * @description value of the Checkbox if it's not checked\n */\n falseLabel: {\n type: [String, Number],\n default: undefined,\n },\n /**\n * @description input id\n */\n id: {\n type: String,\n default: undefined,\n },\n /**\n * @description whether to add a border around Checkbox\n */\n border: Boolean,\n /**\n * @description size of the Checkbox\n */\n size: useSizeProp,\n /**\n * @description input tabindex\n */\n tabindex: [String, Number],\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n ...useAriaProps(['ariaControls']),\n}\n\nexport const checkboxEmits = {\n [UPDATE_MODEL_EVENT]: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n change: (val: CheckboxValueType) =>\n isString(val) || isNumber(val) || isBoolean(val),\n}\n\nexport type CheckboxProps = ExtractPropTypes<typeof checkboxProps>\nexport type CheckboxPropsPublic = __ExtractPublicPropTypes<typeof checkboxProps>\nexport type CheckboxEmits = typeof checkboxEmits\nexport type CheckboxInstance = InstanceType<typeof Checkbox> & unknown\n"],"names":[],"mappings":";;;;;;AAGY,MAAC,aAAa,GAAG;AAC7B,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC;AACnC,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC;AAC3C,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,aAAa,EAAE,OAAO;AACxB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,OAAO,EAAE,OAAO;AAClB,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,EAAE,EAAE;AACN,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,KAAK,CAAC;AACnB,GAAG;AACH,EAAE,MAAM,EAAE,OAAO;AACjB,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;AAC5B,EAAE,aAAa,EAAE;AACjB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,GAAG,YAAY,CAAC,CAAC,cAAc,CAAC,CAAC;AACnC,EAAE;AACU,MAAC,aAAa,GAAG;AAC7B,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC;AACjF,EAAE,MAAM,EAAE,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC;AACnE;;;;"}
|
||||
138
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox.vue.d.ts
generated
vendored
Normal file
138
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox.vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,138 @@
|
||||
declare function __VLS_template(): {
|
||||
default?(_: {}): any;
|
||||
};
|
||||
declare const __VLS_component: import("vue").DefineComponent<{
|
||||
ariaControls: StringConstructor;
|
||||
modelValue: {
|
||||
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
label: {
|
||||
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
value: {
|
||||
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
indeterminate: BooleanConstructor;
|
||||
disabled: BooleanConstructor;
|
||||
checked: BooleanConstructor;
|
||||
name: {
|
||||
type: StringConstructor;
|
||||
default: undefined;
|
||||
};
|
||||
trueValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
falseValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
trueLabel: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
falseLabel: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
id: {
|
||||
type: StringConstructor;
|
||||
default: undefined;
|
||||
};
|
||||
border: BooleanConstructor;
|
||||
size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
tabindex: (NumberConstructor | StringConstructor)[];
|
||||
validateEvent: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
||||
"update:modelValue": (val: import("./checkbox").CheckboxValueType) => void;
|
||||
change: (val: import("./checkbox").CheckboxValueType) => void;
|
||||
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
||||
ariaControls: StringConstructor;
|
||||
modelValue: {
|
||||
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
label: {
|
||||
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
value: {
|
||||
type: (ObjectConstructor | BooleanConstructor | NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
indeterminate: BooleanConstructor;
|
||||
disabled: BooleanConstructor;
|
||||
checked: BooleanConstructor;
|
||||
name: {
|
||||
type: StringConstructor;
|
||||
default: undefined;
|
||||
};
|
||||
trueValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
falseValue: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
trueLabel: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
falseLabel: {
|
||||
type: (NumberConstructor | StringConstructor)[];
|
||||
default: undefined;
|
||||
};
|
||||
id: {
|
||||
type: StringConstructor;
|
||||
default: undefined;
|
||||
};
|
||||
border: BooleanConstructor;
|
||||
size: {
|
||||
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
||||
readonly required: false;
|
||||
readonly validator: ((val: unknown) => boolean) | undefined;
|
||||
__epPropKey: true;
|
||||
};
|
||||
tabindex: (NumberConstructor | StringConstructor)[];
|
||||
validateEvent: {
|
||||
type: BooleanConstructor;
|
||||
default: boolean;
|
||||
};
|
||||
}>> & {
|
||||
"onUpdate:modelValue"?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
|
||||
onChange?: ((val: import("./checkbox").CheckboxValueType) => any) | undefined;
|
||||
}, {
|
||||
label: string | number | boolean | Record<string, any>;
|
||||
disabled: boolean;
|
||||
border: boolean;
|
||||
value: string | number | boolean | Record<string, any>;
|
||||
id: string;
|
||||
name: string;
|
||||
modelValue: string | number | boolean;
|
||||
validateEvent: boolean;
|
||||
indeterminate: boolean;
|
||||
checked: boolean;
|
||||
trueValue: string | number;
|
||||
falseValue: string | number;
|
||||
trueLabel: string | number;
|
||||
falseLabel: string | number;
|
||||
}>;
|
||||
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
||||
export default _default;
|
||||
type __VLS_WithTemplateSlots<T, S> = T & {
|
||||
new (): {
|
||||
$slots: S;
|
||||
};
|
||||
};
|
||||
111
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox2.mjs
generated
vendored
Normal file
111
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox2.mjs
generated
vendored
Normal file
@@ -0,0 +1,111 @@
|
||||
import { defineComponent, useSlots, computed, openBlock, createBlock, resolveDynamicComponent, unref, normalizeClass, withCtx, createElementVNode, withDirectives, mergeProps, isRef, withModifiers, vModelCheckbox, createElementBlock, renderSlot, Fragment, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
||||
import { checkboxProps, checkboxEmits } from './checkbox.mjs';
|
||||
import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
|
||||
import { useCheckbox } from './composables/use-checkbox.mjs';
|
||||
import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
|
||||
|
||||
const __default__ = defineComponent({
|
||||
name: "ElCheckbox"
|
||||
});
|
||||
const _sfc_main = /* @__PURE__ */ defineComponent({
|
||||
...__default__,
|
||||
props: checkboxProps,
|
||||
emits: checkboxEmits,
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
const slots = useSlots();
|
||||
const {
|
||||
inputId,
|
||||
isLabeledByFormItem,
|
||||
isChecked,
|
||||
isDisabled,
|
||||
isFocused,
|
||||
checkboxSize,
|
||||
hasOwnLabel,
|
||||
model,
|
||||
actualValue,
|
||||
handleChange,
|
||||
onClickRoot
|
||||
} = useCheckbox(props, slots);
|
||||
const inputBindings = computed(() => {
|
||||
var _a, _b, _c, _d;
|
||||
if (props.trueValue || props.falseValue || props.trueLabel || props.falseLabel) {
|
||||
return {
|
||||
"true-value": (_b = (_a = props.trueValue) != null ? _a : props.trueLabel) != null ? _b : true,
|
||||
"false-value": (_d = (_c = props.falseValue) != null ? _c : props.falseLabel) != null ? _d : false
|
||||
};
|
||||
}
|
||||
return {
|
||||
value: actualValue.value
|
||||
};
|
||||
});
|
||||
const ns = useNamespace("checkbox");
|
||||
const compKls = computed(() => {
|
||||
return [
|
||||
ns.b(),
|
||||
ns.m(checkboxSize.value),
|
||||
ns.is("disabled", isDisabled.value),
|
||||
ns.is("bordered", props.border),
|
||||
ns.is("checked", isChecked.value)
|
||||
];
|
||||
});
|
||||
const spanKls = computed(() => {
|
||||
return [
|
||||
ns.e("input"),
|
||||
ns.is("disabled", isDisabled.value),
|
||||
ns.is("checked", isChecked.value),
|
||||
ns.is("indeterminate", props.indeterminate),
|
||||
ns.is("focus", isFocused.value)
|
||||
];
|
||||
});
|
||||
return (_ctx, _cache) => {
|
||||
return openBlock(), createBlock(resolveDynamicComponent(!unref(hasOwnLabel) && unref(isLabeledByFormItem) ? "span" : "label"), {
|
||||
class: normalizeClass(unref(compKls)),
|
||||
"aria-controls": _ctx.indeterminate ? _ctx.ariaControls : null,
|
||||
onClick: unref(onClickRoot)
|
||||
}, {
|
||||
default: withCtx(() => [
|
||||
createElementVNode("span", {
|
||||
class: normalizeClass(unref(spanKls))
|
||||
}, [
|
||||
withDirectives(createElementVNode("input", mergeProps({
|
||||
id: unref(inputId),
|
||||
"onUpdate:modelValue": ($event) => isRef(model) ? model.value = $event : null,
|
||||
class: unref(ns).e("original"),
|
||||
type: "checkbox",
|
||||
indeterminate: _ctx.indeterminate,
|
||||
name: _ctx.name,
|
||||
tabindex: _ctx.tabindex,
|
||||
disabled: unref(isDisabled)
|
||||
}, unref(inputBindings), {
|
||||
onChange: unref(handleChange),
|
||||
onFocus: ($event) => isFocused.value = true,
|
||||
onBlur: ($event) => isFocused.value = false,
|
||||
onClick: withModifiers(() => {
|
||||
}, ["stop"])
|
||||
}), null, 16, ["id", "onUpdate:modelValue", "indeterminate", "name", "tabindex", "disabled", "onChange", "onFocus", "onBlur", "onClick"]), [
|
||||
[vModelCheckbox, unref(model)]
|
||||
]),
|
||||
createElementVNode("span", {
|
||||
class: normalizeClass(unref(ns).e("inner"))
|
||||
}, null, 2)
|
||||
], 2),
|
||||
unref(hasOwnLabel) ? (openBlock(), createElementBlock("span", {
|
||||
key: 0,
|
||||
class: normalizeClass(unref(ns).e("label"))
|
||||
}, [
|
||||
renderSlot(_ctx.$slots, "default"),
|
||||
!_ctx.$slots.default ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
||||
createTextVNode(toDisplayString(_ctx.label), 1)
|
||||
], 64)) : createCommentVNode("v-if", true)
|
||||
], 2)) : createCommentVNode("v-if", true)
|
||||
]),
|
||||
_: 3
|
||||
}, 8, ["class", "aria-controls", "onClick"]);
|
||||
};
|
||||
}
|
||||
});
|
||||
var Checkbox = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "checkbox.vue"]]);
|
||||
|
||||
export { Checkbox as default };
|
||||
//# sourceMappingURL=checkbox2.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox2.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/checkbox2.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"checkbox2.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox.vue"],"sourcesContent":["<template>\n <component\n :is=\"!hasOwnLabel && isLabeledByFormItem ? 'span' : 'label'\"\n :class=\"compKls\"\n :aria-controls=\"indeterminate ? ariaControls : null\"\n @click=\"onClickRoot\"\n >\n <span :class=\"spanKls\">\n <input\n :id=\"inputId\"\n v-model=\"model\"\n :class=\"ns.e('original')\"\n type=\"checkbox\"\n :indeterminate=\"indeterminate\"\n :name=\"name\"\n :tabindex=\"tabindex\"\n :disabled=\"isDisabled\"\n v-bind=\"inputBindings\"\n @change=\"handleChange\"\n @focus=\"isFocused = true\"\n @blur=\"isFocused = false\"\n @click.stop\n />\n <span :class=\"ns.e('inner')\" />\n </span>\n <span v-if=\"hasOwnLabel\" :class=\"ns.e('label')\">\n <slot />\n <template v-if=\"!$slots.default\">{{ label }}</template>\n </span>\n </component>\n</template>\n\n<script lang=\"ts\" setup>\nimport { computed, useSlots } from 'vue'\nimport { useNamespace } from '@element-plus/hooks'\nimport { checkboxEmits, checkboxProps } from './checkbox'\nimport { useCheckbox } from './composables'\n\ndefineOptions({\n name: 'ElCheckbox',\n})\n\nconst props = defineProps(checkboxProps)\ndefineEmits(checkboxEmits)\nconst slots = useSlots()\n\nconst {\n inputId,\n isLabeledByFormItem,\n isChecked,\n isDisabled,\n isFocused,\n checkboxSize,\n hasOwnLabel,\n model,\n actualValue,\n handleChange,\n onClickRoot,\n} = useCheckbox(props, slots)\n\nconst inputBindings = computed(() => {\n if (\n props.trueValue ||\n props.falseValue ||\n props.trueLabel ||\n props.falseLabel\n ) {\n return {\n 'true-value': props.trueValue ?? props.trueLabel ?? true,\n 'false-value': props.falseValue ?? props.falseLabel ?? false,\n }\n }\n return {\n value: actualValue.value,\n }\n})\n\nconst ns = useNamespace('checkbox')\n\nconst compKls = computed(() => {\n return [\n ns.b(),\n ns.m(checkboxSize.value),\n ns.is('disabled', isDisabled.value),\n ns.is('bordered', props.border),\n ns.is('checked', isChecked.value),\n ]\n})\n\nconst spanKls = computed(() => {\n return [\n ns.e('input'),\n ns.is('disabled', isDisabled.value),\n ns.is('checked', isChecked.value),\n ns.is('indeterminate', props.indeterminate),\n ns.is('focus', isFocused.value),\n ]\n})\n</script>\n"],"names":[],"mappings":";;;;;;mCAsCc,CAAA;AAAA,EACZ,IAAM,EAAA,YAAA;AACR,CAAA,CAAA,CAAA;;;;;;;AAIA,IAAA,MAAM,QAAQ,QAAS,EAAA,CAAA;AAEvB,IAAM,MAAA;AAAA,MACJ,OAAA;AAAA,MACA,mBAAA;AAAA,MACA,SAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAA;AAAA,MACA,KAAA;AAAA,MACA,WAAA;AAAA,MACA,YAAA;AAAA,MACA,WAAA;AAAA,KACF,GAAI,WAAY,CAAA,KAAA,EAAO,KAAK,CAAA,CAAA;AAE5B,IAAM,MAAA,aAAA,GAAgB,SAAS,MAAM;AACnC,MAAA,IACE,MAAM,EACN,EAAA,EAAA,EAAA,CAAA;AAIA,MAAO,IAAA,KAAA,CAAA,SAAA,IAAA,KAAA,CAAA,UAAA,IAAA,KAAA,CAAA,SAAA,IAAA,KAAA,CAAA,UAAA,EAAA;AAAA,QAAA,OACS;AAAsC,UACpD,YAAe,EAAA,CAAA,EAAA,GAAA,CAAM,EAAc,GAAA,KAAA,CAAA,SAAM,KAAc,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,SAAA,KAAA,IAAA,GAAA,EAAA,GAAA,IAAA;AAAA,UACzD,aAAA,EAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,KAAA,CAAA,UAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA,CAAA,UAAA,KAAA,IAAA,GAAA,EAAA,GAAA,KAAA;AAAA,SACF,CAAA;AACA,OAAO;AAAA,MAAA;AACc,QACrB,KAAA,EAAA,WAAA,CAAA,KAAA;AAAA,OACD,CAAA;AAED,KAAM,CAAA,CAAA;AAEN,IAAM,MAAA,EAAA,GAAA,uBAAyB,CAAA,CAAA;AAC7B,IAAO,MAAA,OAAA,GAAA,QAAA,CAAA,MAAA;AAAA,MAAA,OACA;AAAA,QACL,EAAA,CAAG,CAAE,EAAA;AAAkB,QACvB,EAAG,CAAA,CAAA,CAAA,YAAe,CAAA,KAAA,CAAA;AAAgB,QAClC,EAAG,CAAA,EAAA,CAAG,UAAY,EAAA,UAAY,CAAA,KAAA,CAAA;AAAA,QAC9B,EAAG,CAAA,EAAA,CAAG,UAAW,EAAA,KAAA,CAAA,MAAe,CAAA;AAAA,QAClC,EAAA,CAAA,EAAA,CAAA,SAAA,EAAA,SAAA,CAAA,KAAA,CAAA;AAAA,OACD,CAAA;AAED,KAAM,CAAA,CAAA;AACJ,IAAO,MAAA,OAAA,GAAA,QAAA,CAAA,MAAA;AAAA,MACL,OAAK;AAAO,QACZ,EAAG,CAAA,CAAA,CAAA,OAAe,CAAA;AAAgB,QAClC,EAAG,CAAA,EAAA,CAAG,UAAW,EAAA,UAAe,CAAA,KAAA,CAAA;AAAA,QAChC,EAAG,CAAA,EAAA,CAAG,SAAiB,EAAA,SAAA,CAAA,KAAmB,CAAA;AAAA,QAC1C,EAAG,CAAA,EAAA,CAAG,eAAS,EAAA,KAAe,CAAA,aAAA,CAAA;AAAA,QAChC,EAAA,CAAA,EAAA,CAAA,OAAA,EAAA,SAAA,CAAA,KAAA,CAAA;AAAA,OACD,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
||||
5
frontend/node_modules/element-plus/es/components/checkbox/src/composables/index.d.ts
generated
vendored
Normal file
5
frontend/node_modules/element-plus/es/components/checkbox/src/composables/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
export * from './use-checkbox-disabled';
|
||||
export * from './use-checkbox-event';
|
||||
export * from './use-checkbox-model';
|
||||
export * from './use-checkbox-status';
|
||||
export * from './use-checkbox';
|
||||
6
frontend/node_modules/element-plus/es/components/checkbox/src/composables/index.mjs
generated
vendored
Normal file
6
frontend/node_modules/element-plus/es/components/checkbox/src/composables/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
export { useCheckboxDisabled } from './use-checkbox-disabled.mjs';
|
||||
export { useCheckboxEvent } from './use-checkbox-event.mjs';
|
||||
export { useCheckboxModel } from './use-checkbox-model.mjs';
|
||||
export { useCheckboxStatus } from './use-checkbox-status.mjs';
|
||||
export { useCheckbox } from './use-checkbox.mjs';
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/index.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/index.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
||||
6
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-disabled.d.ts
generated
vendored
Normal file
6
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-disabled.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { CheckboxModel, CheckboxStatus } from '../composables';
|
||||
export declare const useCheckboxDisabled: ({ model, isChecked, }: Pick<CheckboxModel, "model"> & Pick<CheckboxStatus, "isChecked">) => {
|
||||
isDisabled: import("vue").ComputedRef<boolean>;
|
||||
isLimitDisabled: import("vue").ComputedRef<boolean>;
|
||||
};
|
||||
export type CheckboxDisabled = ReturnType<typeof useCheckboxDisabled>;
|
||||
25
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-disabled.mjs
generated
vendored
Normal file
25
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-disabled.mjs
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { inject, computed } from 'vue';
|
||||
import { checkboxGroupContextKey } from '../constants.mjs';
|
||||
import { isUndefined } from '../../../../utils/types.mjs';
|
||||
import { useFormDisabled } from '../../../form/src/hooks/use-form-common-props.mjs';
|
||||
|
||||
const useCheckboxDisabled = ({
|
||||
model,
|
||||
isChecked
|
||||
}) => {
|
||||
const checkboxGroup = inject(checkboxGroupContextKey, void 0);
|
||||
const isLimitDisabled = computed(() => {
|
||||
var _a, _b;
|
||||
const max = (_a = checkboxGroup == null ? void 0 : checkboxGroup.max) == null ? void 0 : _a.value;
|
||||
const min = (_b = checkboxGroup == null ? void 0 : checkboxGroup.min) == null ? void 0 : _b.value;
|
||||
return !isUndefined(max) && model.value.length >= max && !isChecked.value || !isUndefined(min) && model.value.length <= min && isChecked.value;
|
||||
});
|
||||
const isDisabled = useFormDisabled(computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.disabled.value) || isLimitDisabled.value));
|
||||
return {
|
||||
isDisabled,
|
||||
isLimitDisabled
|
||||
};
|
||||
};
|
||||
|
||||
export { useCheckboxDisabled };
|
||||
//# sourceMappingURL=use-checkbox-disabled.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-disabled.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-disabled.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-checkbox-disabled.mjs","sources":["../../../../../../../packages/components/checkbox/src/composables/use-checkbox-disabled.ts"],"sourcesContent":["import { computed, inject } from 'vue'\nimport { useFormDisabled } from '@element-plus/components/form'\nimport { isUndefined } from '@element-plus/utils'\nimport { checkboxGroupContextKey } from '../constants'\n\nimport type { CheckboxModel, CheckboxStatus } from '../composables'\n\nexport const useCheckboxDisabled = ({\n model,\n isChecked,\n}: Pick<CheckboxModel, 'model'> & Pick<CheckboxStatus, 'isChecked'>) => {\n const checkboxGroup = inject(checkboxGroupContextKey, undefined)\n\n const isLimitDisabled = computed(() => {\n const max = checkboxGroup?.max?.value\n const min = checkboxGroup?.min?.value\n return (\n (!isUndefined(max) && model.value.length >= max && !isChecked.value) ||\n (!isUndefined(min) && model.value.length <= min && isChecked.value)\n )\n })\n\n const isDisabled = useFormDisabled(\n computed(() => checkboxGroup?.disabled.value || isLimitDisabled.value)\n )\n\n return {\n isDisabled,\n isLimitDisabled,\n }\n}\n\nexport type CheckboxDisabled = ReturnType<typeof useCheckboxDisabled>\n"],"names":[],"mappings":";;;;;AAIY,MAAC,mBAAmB,GAAG,CAAC;AACpC,EAAE,KAAK;AACP,EAAE,SAAS;AACX,CAAC,KAAK;AACN,EAAE,MAAM,aAAa,GAAG,MAAM,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC,CAAC;AAChE,EAAE,MAAM,eAAe,GAAG,QAAQ,CAAC,MAAM;AACzC,IAAI,IAAI,EAAE,EAAE,EAAE,CAAC;AACf,IAAI,MAAM,GAAG,GAAG,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,GAAG,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;AACtG,IAAI,MAAM,GAAG,GAAG,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,GAAG,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;AACtG,IAAI,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,MAAM,IAAI,GAAG,IAAI,SAAS,CAAC,KAAK,CAAC;AACnJ,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,UAAU,GAAG,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,QAAQ,CAAC,KAAK,KAAK,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;AAC/I,EAAE,OAAO;AACT,IAAI,UAAU;AACd,IAAI,eAAe;AACnB,GAAG,CAAC;AACJ;;;;"}
|
||||
7
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-event.d.ts
generated
vendored
Normal file
7
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-event.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { useFormItemInputId } from 'element-plus/es/components/form';
|
||||
import type { CheckboxProps } from '../checkbox';
|
||||
import type { CheckboxDisabled, CheckboxModel, CheckboxStatus } from '../composables';
|
||||
export declare const useCheckboxEvent: (props: CheckboxProps, { model, isLimitExceeded, hasOwnLabel, isDisabled, isLabeledByFormItem, }: Pick<CheckboxModel, "model" | "isLimitExceeded"> & Pick<CheckboxStatus, "hasOwnLabel"> & Pick<CheckboxDisabled, "isDisabled"> & Pick<ReturnType<typeof useFormItemInputId>, "isLabeledByFormItem">) => {
|
||||
handleChange: (e: Event) => void;
|
||||
onClickRoot: (e: MouseEvent) => Promise<void>;
|
||||
};
|
||||
56
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-event.mjs
generated
vendored
Normal file
56
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-event.mjs
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
import { inject, getCurrentInstance, computed, watch, nextTick } from 'vue';
|
||||
import { checkboxGroupContextKey } from '../constants.mjs';
|
||||
import { useFormItem } from '../../../form/src/hooks/use-form-item.mjs';
|
||||
import { debugWarn } from '../../../../utils/error.mjs';
|
||||
import { CHANGE_EVENT } from '../../../../constants/event.mjs';
|
||||
|
||||
const useCheckboxEvent = (props, {
|
||||
model,
|
||||
isLimitExceeded,
|
||||
hasOwnLabel,
|
||||
isDisabled,
|
||||
isLabeledByFormItem
|
||||
}) => {
|
||||
const checkboxGroup = inject(checkboxGroupContextKey, void 0);
|
||||
const { formItem } = useFormItem();
|
||||
const { emit } = getCurrentInstance();
|
||||
function getLabeledValue(value) {
|
||||
var _a, _b, _c, _d;
|
||||
return [true, props.trueValue, props.trueLabel].includes(value) ? (_b = (_a = props.trueValue) != null ? _a : props.trueLabel) != null ? _b : true : (_d = (_c = props.falseValue) != null ? _c : props.falseLabel) != null ? _d : false;
|
||||
}
|
||||
function emitChangeEvent(checked, e) {
|
||||
emit(CHANGE_EVENT, getLabeledValue(checked), e);
|
||||
}
|
||||
function handleChange(e) {
|
||||
if (isLimitExceeded.value)
|
||||
return;
|
||||
const target = e.target;
|
||||
emit(CHANGE_EVENT, getLabeledValue(target.checked), e);
|
||||
}
|
||||
async function onClickRoot(e) {
|
||||
if (isLimitExceeded.value)
|
||||
return;
|
||||
if (!hasOwnLabel.value && !isDisabled.value && isLabeledByFormItem.value) {
|
||||
const eventTargets = e.composedPath();
|
||||
const hasLabel = eventTargets.some((item) => item.tagName === "LABEL");
|
||||
if (!hasLabel) {
|
||||
model.value = getLabeledValue([false, props.falseValue, props.falseLabel].includes(model.value));
|
||||
await nextTick();
|
||||
emitChangeEvent(model.value, e);
|
||||
}
|
||||
}
|
||||
}
|
||||
const validateEvent = computed(() => (checkboxGroup == null ? void 0 : checkboxGroup.validateEvent) || props.validateEvent);
|
||||
watch(() => props.modelValue, () => {
|
||||
if (validateEvent.value) {
|
||||
formItem == null ? void 0 : formItem.validate("change").catch((err) => debugWarn());
|
||||
}
|
||||
});
|
||||
return {
|
||||
handleChange,
|
||||
onClickRoot
|
||||
};
|
||||
};
|
||||
|
||||
export { useCheckboxEvent };
|
||||
//# sourceMappingURL=use-checkbox-event.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-event.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-event.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
7
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-model.d.ts
generated
vendored
Normal file
7
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-model.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { CheckboxProps } from '../checkbox';
|
||||
export declare const useCheckboxModel: (props: CheckboxProps) => {
|
||||
model: import("vue").WritableComputedRef<any>;
|
||||
isGroup: import("vue").ComputedRef<boolean>;
|
||||
isLimitExceeded: import("vue").Ref<boolean>;
|
||||
};
|
||||
export type CheckboxModel = ReturnType<typeof useCheckboxModel>;
|
||||
37
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-model.mjs
generated
vendored
Normal file
37
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-model.mjs
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import { ref, getCurrentInstance, inject, computed } from 'vue';
|
||||
import { checkboxGroupContextKey } from '../constants.mjs';
|
||||
import { isUndefined } from '../../../../utils/types.mjs';
|
||||
import { isArray } from '@vue/shared';
|
||||
import { UPDATE_MODEL_EVENT } from '../../../../constants/event.mjs';
|
||||
|
||||
const useCheckboxModel = (props) => {
|
||||
const selfModel = ref(false);
|
||||
const { emit } = getCurrentInstance();
|
||||
const checkboxGroup = inject(checkboxGroupContextKey, void 0);
|
||||
const isGroup = computed(() => isUndefined(checkboxGroup) === false);
|
||||
const isLimitExceeded = ref(false);
|
||||
const model = computed({
|
||||
get() {
|
||||
var _a, _b;
|
||||
return isGroup.value ? (_a = checkboxGroup == null ? void 0 : checkboxGroup.modelValue) == null ? void 0 : _a.value : (_b = props.modelValue) != null ? _b : selfModel.value;
|
||||
},
|
||||
set(val) {
|
||||
var _a, _b;
|
||||
if (isGroup.value && isArray(val)) {
|
||||
isLimitExceeded.value = ((_a = checkboxGroup == null ? void 0 : checkboxGroup.max) == null ? void 0 : _a.value) !== void 0 && val.length > (checkboxGroup == null ? void 0 : checkboxGroup.max.value) && val.length > model.value.length;
|
||||
isLimitExceeded.value === false && ((_b = checkboxGroup == null ? void 0 : checkboxGroup.changeEvent) == null ? void 0 : _b.call(checkboxGroup, val));
|
||||
} else {
|
||||
emit(UPDATE_MODEL_EVENT, val);
|
||||
selfModel.value = val;
|
||||
}
|
||||
}
|
||||
});
|
||||
return {
|
||||
model,
|
||||
isGroup,
|
||||
isLimitExceeded
|
||||
};
|
||||
};
|
||||
|
||||
export { useCheckboxModel };
|
||||
//# sourceMappingURL=use-checkbox-model.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-model.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-model.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-checkbox-model.mjs","sources":["../../../../../../../packages/components/checkbox/src/composables/use-checkbox-model.ts"],"sourcesContent":["import { computed, getCurrentInstance, inject, ref } from 'vue'\nimport { isArray, isUndefined } from '@element-plus/utils'\nimport { UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { checkboxGroupContextKey } from '../constants'\n\nimport type { CheckboxProps } from '../checkbox'\n\nexport const useCheckboxModel = (props: CheckboxProps) => {\n const selfModel = ref<unknown>(false)\n const { emit } = getCurrentInstance()!\n const checkboxGroup = inject(checkboxGroupContextKey, undefined)\n const isGroup = computed(() => isUndefined(checkboxGroup) === false)\n const isLimitExceeded = ref(false)\n const model = computed({\n get() {\n return isGroup.value\n ? checkboxGroup?.modelValue?.value\n : (props.modelValue ?? selfModel.value)\n },\n\n set(val: unknown) {\n if (isGroup.value && isArray(val)) {\n isLimitExceeded.value =\n checkboxGroup?.max?.value !== undefined &&\n val.length > checkboxGroup?.max.value &&\n val.length > model.value.length\n isLimitExceeded.value === false && checkboxGroup?.changeEvent?.(val)\n } else {\n emit(UPDATE_MODEL_EVENT, val)\n selfModel.value = val\n }\n },\n })\n\n return {\n model,\n isGroup,\n isLimitExceeded,\n }\n}\n\nexport type CheckboxModel = ReturnType<typeof useCheckboxModel>\n"],"names":[],"mappings":";;;;;;AAIY,MAAC,gBAAgB,GAAG,CAAC,KAAK,KAAK;AAC3C,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AAC/B,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,kBAAkB,EAAE,CAAC;AACxC,EAAE,MAAM,aAAa,GAAG,MAAM,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC,CAAC;AAChE,EAAE,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,WAAW,CAAC,aAAa,CAAC,KAAK,KAAK,CAAC,CAAC;AACvE,EAAE,MAAM,eAAe,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AACrC,EAAE,MAAM,KAAK,GAAG,QAAQ,CAAC;AACzB,IAAI,GAAG,GAAG;AACV,MAAM,IAAI,EAAE,EAAE,EAAE,CAAC;AACjB,MAAM,OAAO,OAAO,CAAC,KAAK,GAAG,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,UAAU,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,UAAU,KAAK,IAAI,GAAG,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC;AACnL,KAAK;AACL,IAAI,GAAG,CAAC,GAAG,EAAE;AACb,MAAM,IAAI,EAAE,EAAE,EAAE,CAAC;AACjB,MAAM,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE;AACzC,QAAQ,eAAe,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,GAAG,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,KAAK,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC;AACjP,QAAQ,eAAe,CAAC,KAAK,KAAK,KAAK,KAAK,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,WAAW,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC;AAC9J,OAAO,MAAM;AACb,QAAQ,IAAI,CAAC,kBAAkB,EAAE,GAAG,CAAC,CAAC;AACtC,QAAQ,SAAS,CAAC,KAAK,GAAG,GAAG,CAAC;AAC9B,OAAO;AACP,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,KAAK;AACT,IAAI,OAAO;AACX,IAAI,eAAe;AACnB,GAAG,CAAC;AACJ;;;;"}
|
||||
12
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-status.d.ts
generated
vendored
Normal file
12
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-status.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import type { ComponentInternalInstance } from 'vue';
|
||||
import type { CheckboxProps } from '../checkbox';
|
||||
import type { CheckboxModel } from '../composables';
|
||||
export declare const useCheckboxStatus: (props: CheckboxProps, slots: ComponentInternalInstance["slots"], { model }: Pick<CheckboxModel, "model">) => {
|
||||
checkboxButtonSize: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
||||
isChecked: import("vue").ComputedRef<boolean>;
|
||||
isFocused: import("vue").Ref<boolean>;
|
||||
checkboxSize: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
||||
hasOwnLabel: import("vue").ComputedRef<boolean>;
|
||||
actualValue: import("vue").ComputedRef<string | number | boolean | Record<string, any> | undefined>;
|
||||
};
|
||||
export type CheckboxStatus = ReturnType<typeof useCheckboxStatus>;
|
||||
57
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-status.mjs
generated
vendored
Normal file
57
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-status.mjs
generated
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
import { inject, ref, computed, toRaw } from 'vue';
|
||||
import { isEqual } from 'lodash-unified';
|
||||
import { checkboxGroupContextKey } from '../constants.mjs';
|
||||
import { isPropAbsent, isBoolean } from '../../../../utils/types.mjs';
|
||||
import { isArray, isObject } from '@vue/shared';
|
||||
import { useFormSize } from '../../../form/src/hooks/use-form-common-props.mjs';
|
||||
|
||||
const useCheckboxStatus = (props, slots, { model }) => {
|
||||
const checkboxGroup = inject(checkboxGroupContextKey, void 0);
|
||||
const isFocused = ref(false);
|
||||
const actualValue = computed(() => {
|
||||
if (!isPropAbsent(props.value)) {
|
||||
return props.value;
|
||||
}
|
||||
return props.label;
|
||||
});
|
||||
const isChecked = computed(() => {
|
||||
const value = model.value;
|
||||
if (isBoolean(value)) {
|
||||
return value;
|
||||
} else if (isArray(value)) {
|
||||
if (isObject(actualValue.value)) {
|
||||
return value.map(toRaw).some((o) => isEqual(o, actualValue.value));
|
||||
} else {
|
||||
return value.map(toRaw).includes(actualValue.value);
|
||||
}
|
||||
} else if (value !== null && value !== void 0) {
|
||||
return value === props.trueValue || value === props.trueLabel;
|
||||
} else {
|
||||
return !!value;
|
||||
}
|
||||
});
|
||||
const checkboxButtonSize = useFormSize(computed(() => {
|
||||
var _a;
|
||||
return (_a = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a.value;
|
||||
}), {
|
||||
prop: true
|
||||
});
|
||||
const checkboxSize = useFormSize(computed(() => {
|
||||
var _a;
|
||||
return (_a = checkboxGroup == null ? void 0 : checkboxGroup.size) == null ? void 0 : _a.value;
|
||||
}));
|
||||
const hasOwnLabel = computed(() => {
|
||||
return !!slots.default || !isPropAbsent(actualValue.value);
|
||||
});
|
||||
return {
|
||||
checkboxButtonSize,
|
||||
isChecked,
|
||||
isFocused,
|
||||
checkboxSize,
|
||||
hasOwnLabel,
|
||||
actualValue
|
||||
};
|
||||
};
|
||||
|
||||
export { useCheckboxStatus };
|
||||
//# sourceMappingURL=use-checkbox-status.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-status.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox-status.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"use-checkbox-status.mjs","sources":["../../../../../../../packages/components/checkbox/src/composables/use-checkbox-status.ts"],"sourcesContent":["import { computed, inject, ref, toRaw } from 'vue'\nimport { isEqual } from 'lodash-unified'\nimport { useFormSize } from '@element-plus/components/form'\nimport { isArray, isBoolean, isObject, isPropAbsent } from '@element-plus/utils'\nimport { checkboxGroupContextKey } from '../constants'\n\nimport type { ComponentInternalInstance } from 'vue'\nimport type { CheckboxProps } from '../checkbox'\nimport type { CheckboxModel } from '../composables'\n\nexport const useCheckboxStatus = (\n props: CheckboxProps,\n slots: ComponentInternalInstance['slots'],\n { model }: Pick<CheckboxModel, 'model'>\n) => {\n const checkboxGroup = inject(checkboxGroupContextKey, undefined)\n const isFocused = ref(false)\n const actualValue = computed(() => {\n // In version 2.x, if there's no props.value, props.label will act as props.value\n // In version 3.x, remove this computed value, use props.value instead.\n if (!isPropAbsent(props.value)) {\n return props.value\n }\n return props.label\n })\n const isChecked = computed<boolean>(() => {\n const value = model.value\n if (isBoolean(value)) {\n return value\n } else if (isArray(value)) {\n if (isObject(actualValue.value)) {\n return value.map(toRaw).some((o) => isEqual(o, actualValue.value))\n } else {\n return value.map(toRaw).includes(actualValue.value)\n }\n } else if (value !== null && value !== undefined) {\n return value === props.trueValue || value === props.trueLabel\n } else {\n return !!value\n }\n })\n\n const checkboxButtonSize = useFormSize(\n computed(() => checkboxGroup?.size?.value),\n {\n prop: true,\n }\n )\n const checkboxSize = useFormSize(computed(() => checkboxGroup?.size?.value))\n\n const hasOwnLabel = computed<boolean>(() => {\n return !!slots.default || !isPropAbsent(actualValue.value)\n })\n\n return {\n checkboxButtonSize,\n isChecked,\n isFocused,\n checkboxSize,\n hasOwnLabel,\n actualValue,\n }\n}\n\nexport type CheckboxStatus = ReturnType<typeof useCheckboxStatus>\n"],"names":[],"mappings":";;;;;;;AAKY,MAAC,iBAAiB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK;AAC9D,EAAE,MAAM,aAAa,GAAG,MAAM,CAAC,uBAAuB,EAAE,KAAK,CAAC,CAAC,CAAC;AAChE,EAAE,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC;AAC/B,EAAE,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM;AACrC,IAAI,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;AACpC,MAAM,OAAO,KAAK,CAAC,KAAK,CAAC;AACzB,KAAK;AACL,IAAI,OAAO,KAAK,CAAC,KAAK,CAAC;AACvB,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM;AACnC,IAAI,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;AAC9B,IAAI,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE;AAC1B,MAAM,OAAO,KAAK,CAAC;AACnB,KAAK,MAAM,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;AAC/B,MAAM,IAAI,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE;AACvC,QAAQ,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AAC3E,OAAO,MAAM;AACb,QAAQ,OAAO,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5D,OAAO;AACP,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,EAAE;AACnD,MAAM,OAAO,KAAK,KAAK,KAAK,CAAC,SAAS,IAAI,KAAK,KAAK,KAAK,CAAC,SAAS,CAAC;AACpE,KAAK,MAAM;AACX,MAAM,OAAO,CAAC,CAAC,KAAK,CAAC;AACrB,KAAK;AACL,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,kBAAkB,GAAG,WAAW,CAAC,QAAQ,CAAC,MAAM;AACxD,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,OAAO,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,IAAI,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;AAClG,GAAG,CAAC,EAAE;AACN,IAAI,IAAI,EAAE,IAAI;AACd,GAAG,CAAC,CAAC;AACL,EAAE,MAAM,YAAY,GAAG,WAAW,CAAC,QAAQ,CAAC,MAAM;AAClD,IAAI,IAAI,EAAE,CAAC;AACX,IAAI,OAAO,CAAC,EAAE,GAAG,aAAa,IAAI,IAAI,GAAG,KAAK,CAAC,GAAG,aAAa,CAAC,IAAI,KAAK,IAAI,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;AAClG,GAAG,CAAC,CAAC,CAAC;AACN,EAAE,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM;AACrC,IAAI,OAAO,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC/D,GAAG,CAAC,CAAC;AACL,EAAE,OAAO;AACT,IAAI,kBAAkB;AACtB,IAAI,SAAS;AACb,IAAI,SAAS;AACb,IAAI,YAAY;AAChB,IAAI,WAAW;AACf,IAAI,WAAW;AACf,GAAG,CAAC;AACJ;;;;"}
|
||||
16
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox.d.ts
generated
vendored
Normal file
16
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox.d.ts
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
import type { ComponentInternalInstance } from 'vue';
|
||||
import type { CheckboxProps } from '../checkbox';
|
||||
export declare const useCheckbox: (props: CheckboxProps, slots: ComponentInternalInstance["slots"]) => {
|
||||
inputId: import("vue").Ref<string | undefined>;
|
||||
isLabeledByFormItem: import("vue").ComputedRef<boolean>;
|
||||
isChecked: import("vue").ComputedRef<boolean>;
|
||||
isDisabled: import("vue").ComputedRef<boolean>;
|
||||
isFocused: import("vue").Ref<boolean>;
|
||||
checkboxButtonSize: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
||||
checkboxSize: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
||||
hasOwnLabel: import("vue").ComputedRef<boolean>;
|
||||
model: import("vue").WritableComputedRef<any>;
|
||||
actualValue: import("vue").ComputedRef<string | number | boolean | Record<string, any> | undefined>;
|
||||
handleChange: (e: Event) => void;
|
||||
onClickRoot: (e: MouseEvent) => Promise<void>;
|
||||
};
|
||||
85
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox.mjs
generated
vendored
Normal file
85
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox.mjs
generated
vendored
Normal file
@@ -0,0 +1,85 @@
|
||||
import { computed } from 'vue';
|
||||
import { useCheckboxDisabled } from './use-checkbox-disabled.mjs';
|
||||
import { useCheckboxEvent } from './use-checkbox-event.mjs';
|
||||
import { useCheckboxModel } from './use-checkbox-model.mjs';
|
||||
import { useCheckboxStatus } from './use-checkbox-status.mjs';
|
||||
import { useFormItem, useFormItemInputId } from '../../../form/src/hooks/use-form-item.mjs';
|
||||
import { useDeprecated } from '../../../../hooks/use-deprecated/index.mjs';
|
||||
import { isPropAbsent } from '../../../../utils/types.mjs';
|
||||
import { isArray } from '@vue/shared';
|
||||
|
||||
const useCheckbox = (props, slots) => {
|
||||
const { formItem: elFormItem } = useFormItem();
|
||||
const { model, isGroup, isLimitExceeded } = useCheckboxModel(props);
|
||||
const {
|
||||
isFocused,
|
||||
isChecked,
|
||||
checkboxButtonSize,
|
||||
checkboxSize,
|
||||
hasOwnLabel,
|
||||
actualValue
|
||||
} = useCheckboxStatus(props, slots, { model });
|
||||
const { isDisabled } = useCheckboxDisabled({ model, isChecked });
|
||||
const { inputId, isLabeledByFormItem } = useFormItemInputId(props, {
|
||||
formItemContext: elFormItem,
|
||||
disableIdGeneration: hasOwnLabel,
|
||||
disableIdManagement: isGroup
|
||||
});
|
||||
const { handleChange, onClickRoot } = useCheckboxEvent(props, {
|
||||
model,
|
||||
isLimitExceeded,
|
||||
hasOwnLabel,
|
||||
isDisabled,
|
||||
isLabeledByFormItem
|
||||
});
|
||||
const setStoreValue = () => {
|
||||
function addToStore() {
|
||||
var _a, _b;
|
||||
if (isArray(model.value) && !model.value.includes(actualValue.value)) {
|
||||
model.value.push(actualValue.value);
|
||||
} else {
|
||||
model.value = (_b = (_a = props.trueValue) != null ? _a : props.trueLabel) != null ? _b : true;
|
||||
}
|
||||
}
|
||||
props.checked && addToStore();
|
||||
};
|
||||
setStoreValue();
|
||||
useDeprecated({
|
||||
from: "label act as value",
|
||||
replacement: "value",
|
||||
version: "3.0.0",
|
||||
scope: "el-checkbox",
|
||||
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
||||
}, computed(() => isGroup.value && isPropAbsent(props.value)));
|
||||
useDeprecated({
|
||||
from: "true-label",
|
||||
replacement: "true-value",
|
||||
version: "3.0.0",
|
||||
scope: "el-checkbox",
|
||||
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
||||
}, computed(() => !!props.trueLabel));
|
||||
useDeprecated({
|
||||
from: "false-label",
|
||||
replacement: "false-value",
|
||||
version: "3.0.0",
|
||||
scope: "el-checkbox",
|
||||
ref: "https://element-plus.org/en-US/component/checkbox.html"
|
||||
}, computed(() => !!props.falseLabel));
|
||||
return {
|
||||
inputId,
|
||||
isLabeledByFormItem,
|
||||
isChecked,
|
||||
isDisabled,
|
||||
isFocused,
|
||||
checkboxButtonSize,
|
||||
checkboxSize,
|
||||
hasOwnLabel,
|
||||
model,
|
||||
actualValue,
|
||||
handleChange,
|
||||
onClickRoot
|
||||
};
|
||||
};
|
||||
|
||||
export { useCheckbox };
|
||||
//# sourceMappingURL=use-checkbox.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/composables/use-checkbox.mjs.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
8
frontend/node_modules/element-plus/es/components/checkbox/src/constants.d.ts
generated
vendored
Normal file
8
frontend/node_modules/element-plus/es/components/checkbox/src/constants.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { InjectionKey, ToRefs, WritableComputedRef } from 'vue';
|
||||
import type { CheckboxGroupProps } from './checkbox-group';
|
||||
type CheckboxGroupContext = {
|
||||
modelValue?: WritableComputedRef<any>;
|
||||
changeEvent?: (...args: any) => any;
|
||||
} & ToRefs<Pick<CheckboxGroupProps, 'size' | 'min' | 'max' | 'disabled' | 'validateEvent' | 'fill' | 'textColor'>>;
|
||||
export declare const checkboxGroupContextKey: InjectionKey<CheckboxGroupContext>;
|
||||
export {};
|
||||
4
frontend/node_modules/element-plus/es/components/checkbox/src/constants.mjs
generated
vendored
Normal file
4
frontend/node_modules/element-plus/es/components/checkbox/src/constants.mjs
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
const checkboxGroupContextKey = Symbol("checkboxGroupContextKey");
|
||||
|
||||
export { checkboxGroupContextKey };
|
||||
//# sourceMappingURL=constants.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/src/constants.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/src/constants.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"constants.mjs","sources":["../../../../../../packages/components/checkbox/src/constants.ts"],"sourcesContent":["import type { InjectionKey, ToRefs, WritableComputedRef } from 'vue'\nimport type { CheckboxGroupProps } from './checkbox-group'\n\ntype CheckboxGroupContext = {\n modelValue?: WritableComputedRef<any>\n changeEvent?: (...args: any) => any\n} & ToRefs<\n Pick<\n CheckboxGroupProps,\n 'size' | 'min' | 'max' | 'disabled' | 'validateEvent' | 'fill' | 'textColor'\n >\n>\n\nexport const checkboxGroupContextKey: InjectionKey<CheckboxGroupContext> =\n Symbol('checkboxGroupContextKey')\n"],"names":[],"mappings":"AAAY,MAAC,uBAAuB,GAAG,MAAM,CAAC,yBAAyB;;;;"}
|
||||
2
frontend/node_modules/element-plus/es/components/checkbox/style/css.d.ts
generated
vendored
Normal file
2
frontend/node_modules/element-plus/es/components/checkbox/style/css.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import 'element-plus/es/components/base/style/css';
|
||||
import 'element-plus/theme-chalk/el-checkbox.css';
|
||||
3
frontend/node_modules/element-plus/es/components/checkbox/style/css.mjs
generated
vendored
Normal file
3
frontend/node_modules/element-plus/es/components/checkbox/style/css.mjs
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import '../../base/style/css.mjs';
|
||||
import 'element-plus/theme-chalk/el-checkbox.css';
|
||||
//# sourceMappingURL=css.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/style/css.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/style/css.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"css.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
||||
2
frontend/node_modules/element-plus/es/components/checkbox/style/index.d.ts
generated
vendored
Normal file
2
frontend/node_modules/element-plus/es/components/checkbox/style/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
import 'element-plus/es/components/base/style';
|
||||
import 'element-plus/theme-chalk/src/checkbox.scss';
|
||||
3
frontend/node_modules/element-plus/es/components/checkbox/style/index.mjs
generated
vendored
Normal file
3
frontend/node_modules/element-plus/es/components/checkbox/style/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import '../../base/style/index.mjs';
|
||||
import 'element-plus/theme-chalk/src/checkbox.scss';
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
1
frontend/node_modules/element-plus/es/components/checkbox/style/index.mjs.map
generated
vendored
Normal file
1
frontend/node_modules/element-plus/es/components/checkbox/style/index.mjs.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
||||
Reference in New Issue
Block a user