151 lines
3.2 KiB
JavaScript
151 lines
3.2 KiB
JavaScript
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
require("../../../_virtual/_rolldown/runtime.js");
|
|
const require_event = require("../../../constants/event.js");
|
|
const require_types = require("../../../utils/types.js");
|
|
const require_index = require("../../../hooks/use-size/index.js");
|
|
const require_index$1 = require("../../../hooks/use-aria/index.js");
|
|
let _vue_shared = require("@vue/shared");
|
|
//#region ../../packages/components/checkbox/src/checkbox.ts
|
|
/**
|
|
* @deprecated Removed after 3.0.0, Use `CheckboxProps` instead.
|
|
*/
|
|
const checkboxProps = {
|
|
/**
|
|
* @description binding value
|
|
*/
|
|
modelValue: {
|
|
type: [
|
|
Number,
|
|
String,
|
|
Boolean
|
|
],
|
|
default: void 0
|
|
},
|
|
/**
|
|
* @description label of the Checkbox when used inside a `checkbox-group`
|
|
*/
|
|
label: {
|
|
type: [
|
|
String,
|
|
Boolean,
|
|
Number,
|
|
Object
|
|
],
|
|
default: void 0
|
|
},
|
|
/**
|
|
* @description value of the Checkbox when used inside a `checkbox-group`
|
|
*/
|
|
value: {
|
|
type: [
|
|
String,
|
|
Boolean,
|
|
Number,
|
|
Object
|
|
],
|
|
default: void 0
|
|
},
|
|
/**
|
|
* @description Set indeterminate state, only responsible for style control
|
|
*/
|
|
indeterminate: Boolean,
|
|
/**
|
|
* @description whether the Checkbox is disabled
|
|
*/
|
|
disabled: {
|
|
type: Boolean,
|
|
default: void 0
|
|
},
|
|
/**
|
|
* @description if the Checkbox is checked
|
|
*/
|
|
checked: Boolean,
|
|
/**
|
|
* @description native 'name' attribute
|
|
*/
|
|
name: {
|
|
type: String,
|
|
default: void 0
|
|
},
|
|
/**
|
|
* @description value of the Checkbox if it's checked
|
|
*/
|
|
trueValue: {
|
|
type: [String, Number],
|
|
default: void 0
|
|
},
|
|
/**
|
|
* @description value of the Checkbox if it's not checked
|
|
*/
|
|
falseValue: {
|
|
type: [String, Number],
|
|
default: void 0
|
|
},
|
|
/**
|
|
* @deprecated use `trueValue` instead
|
|
* @description value of the Checkbox if it's checked
|
|
*/
|
|
trueLabel: {
|
|
type: [String, Number],
|
|
default: void 0
|
|
},
|
|
/**
|
|
* @deprecated use `falseValue` instead
|
|
* @description value of the Checkbox if it's not checked
|
|
*/
|
|
falseLabel: {
|
|
type: [String, Number],
|
|
default: void 0
|
|
},
|
|
/**
|
|
* @description input id
|
|
*/
|
|
id: {
|
|
type: String,
|
|
default: void 0
|
|
},
|
|
/**
|
|
* @description whether to add a border around Checkbox
|
|
*/
|
|
border: Boolean,
|
|
/**
|
|
* @description size of the Checkbox
|
|
*/
|
|
size: require_index.useSizeProp,
|
|
/**
|
|
* @description input tabindex
|
|
*/
|
|
tabindex: [String, Number],
|
|
/**
|
|
* @description whether to trigger form validation
|
|
*/
|
|
validateEvent: {
|
|
type: Boolean,
|
|
default: true
|
|
},
|
|
ariaLabel: String,
|
|
...require_index$1.useAriaProps(["ariaControls"])
|
|
};
|
|
const checkboxEmits = {
|
|
[require_event.UPDATE_MODEL_EVENT]: (val) => (0, _vue_shared.isString)(val) || require_types.isNumber(val) || require_types.isBoolean(val),
|
|
change: (val) => (0, _vue_shared.isString)(val) || require_types.isNumber(val) || require_types.isBoolean(val)
|
|
};
|
|
const checkboxPropsDefaults = {
|
|
modelValue: void 0,
|
|
label: void 0,
|
|
value: void 0,
|
|
disabled: void 0,
|
|
name: void 0,
|
|
trueValue: void 0,
|
|
falseValue: void 0,
|
|
trueLabel: void 0,
|
|
falseLabel: void 0,
|
|
id: void 0,
|
|
validateEvent: true
|
|
};
|
|
//#endregion
|
|
exports.checkboxEmits = checkboxEmits;
|
|
exports.checkboxProps = checkboxProps;
|
|
exports.checkboxPropsDefaults = checkboxPropsDefaults;
|
|
|
|
//# sourceMappingURL=checkbox.js.map
|