Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@opentiny/vue-checkbox

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-checkbox - npm Package Compare versions

Comparing version 2.10.0 to 2.11.0-alpha.0

95

lib/index.js

@@ -15,3 +15,3 @@ function _extends() {

}
import { defineComponent, $prefix, $props, $setup } from "@opentiny/vue-common";
import { defineComponent, $prefix, $setup, $props } from "@opentiny/vue-common";
import PcTemplate from "./pc.js";

@@ -38,45 +38,54 @@ import MobileTemplate from "./mobile.js";

};
var checkboxProps = _extends({}, $props, {
_constants: {
type: Object,
default: function _default() {
return $constants;
}
},
modelValue: {
type: [String, Number, Boolean]
},
label: {
type: [String, Number, Boolean],
default: ""
},
indeterminate: Boolean,
disabled: Boolean,
checked: Boolean,
name: String,
trueLabel: [String, Number],
falseLabel: [String, Number],
/*
* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系
*/
id: String,
/*
* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系
*/
controls: {
type: String,
default: ""
},
border: Boolean,
size: String,
text: String,
validateEvent: {
type: Boolean,
default: true
},
events: {
type: Object,
default: function _default2() {
return {};
}
},
displayOnly: {
type: Boolean,
default: false
}
});
var Checkbox = defineComponent({
name: $prefix + "Checkbox",
props: _extends({}, $props, {
_constants: {
type: Object,
default: function _default() {
return $constants;
}
},
modelValue: {},
label: {},
indeterminate: Boolean,
disabled: Boolean,
checked: Boolean,
name: String,
trueLabel: [String, Number],
falseLabel: [String, Number],
/*
* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系
*/
id: String,
/*
* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系
*/
controls: String,
border: Boolean,
size: String,
text: String,
validateEvent: {
type: Boolean,
default: true
},
events: {
type: Object,
default: function _default2() {
return {};
}
},
displayOnly: {
type: Boolean,
default: false
}
}),
props: checkboxProps,
setup: function setup(props, context) {

@@ -90,3 +99,3 @@ return $setup({

});
var version = "2.10.0";
var version = "2.11.0-alpha.0";
Checkbox.model = {

@@ -93,0 +102,0 @@ prop: "modelValue",

@@ -106,3 +106,3 @@ import { renderless, api } from "@opentiny/vue-renderless/checkbox/vue";

attrs: {
"role": _vm.indeterminate ? "checkbox" : false,
"role": _vm.indeterminate ? "checkbox" : void 0,
"aria-checked": _vm.indeterminate ? "mixed" : false

@@ -109,0 +109,0 @@ }

{
"name": "@opentiny/vue-checkbox",
"version": "2.10.0",
"version": "2.11.0-alpha.0",
"description": "",

@@ -10,4 +10,4 @@ "main": "./lib/index.js",

"dependencies": {
"@opentiny/vue-common": "~2.10.0",
"@opentiny/vue-renderless": "~3.10.0"
"@opentiny/vue-common": "~2.11.0",
"@opentiny/vue-renderless": "~3.11.0"
},

@@ -14,0 +14,0 @@ "license": "MIT",

@@ -1,2 +0,8 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<() => import("vue").VNode> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
export declare const $constants: {
FORM_ITEM: string;
FORM_CHANGE: string;
CHECKBOX: string;
CHECKBOX_GROUP: string;
};
export declare const checkboxProps: {
_constants: {

@@ -11,4 +17,9 @@ type: ObjectConstructor;

};
modelValue: {};
label: {};
modelValue: {
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
};
label: {
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
default: string;
};
indeterminate: BooleanConstructor;

@@ -21,3 +32,6 @@ disabled: BooleanConstructor;

id: StringConstructor;
controls: StringConstructor;
controls: {
type: StringConstructor;
default: string;
};
border: BooleanConstructor;

@@ -44,83 +58,4 @@ size: StringConstructor;

tiny_chart_theme: ObjectConstructor;
}, {
disabled: boolean;
tiny_mode_root: boolean;
_constants: Record<string, any>;
border: boolean;
validateEvent: boolean;
displayOnly: boolean;
events: Record<string, any>;
checked: boolean;
indeterminate: boolean;
} & {
label?: unknown;
name?: string | undefined;
text?: string | undefined;
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
modelValue?: unknown;
id?: string | undefined;
size?: string | undefined;
controls?: string | undefined;
trueLabel?: string | number | undefined;
falseLabel?: string | number | undefined;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
disabled: boolean;
tiny_mode_root: boolean;
_constants: Record<string, any>;
border: boolean;
validateEvent: boolean;
displayOnly: boolean;
events: Record<string, any>;
checked: boolean;
indeterminate: boolean;
} & {
label?: unknown;
name?: string | undefined;
text?: string | undefined;
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
modelValue?: unknown;
id?: string | undefined;
size?: string | undefined;
controls?: string | undefined;
trueLabel?: string | number | undefined;
falseLabel?: string | number | undefined;
}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
disabled: boolean;
tiny_mode_root: boolean;
_constants: Record<string, any>;
border: boolean;
validateEvent: boolean;
displayOnly: boolean;
events: Record<string, any>;
checked: boolean;
indeterminate: boolean;
} & {
label?: unknown;
name?: string | undefined;
text?: string | undefined;
tiny_mode?: string | undefined;
tiny_template?: unknown;
tiny_renderless?: Function | undefined;
tiny_theme?: string | undefined;
tiny_chart_theme?: Record<string, any> | undefined;
modelValue?: unknown;
id?: string | undefined;
size?: string | undefined;
controls?: string | undefined;
trueLabel?: string | number | undefined;
falseLabel?: string | number | undefined;
}, {
_constants: Record<string, any>;
validateEvent: boolean;
displayOnly: boolean;
events: Record<string, any>;
}, true>);
};
declare const _default: any;
export default _default;

@@ -1,12 +0,2 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<any> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, Readonly<{
[x: string]: any;
}>, {
[x: string]: any;
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
[x: string]: any;
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<any>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
[x: string]: any;
} & {}, {
[x: string]: any;
}, true>);
declare const _default: any;
export default _default;

@@ -1,30 +0,2 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, Readonly<{
[x: string]: any;
}>, {
[x: string]: any;
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
[x: string]: any;
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
[x: string]: any;
} & {}, {
[x: string]: any;
}, true>);
declare const _default: any;
export default _default;

@@ -1,30 +0,2 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}> & import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, Readonly<{
[x: string]: any;
}>, {
[x: string]: any;
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api/dist/vue-composition-api.js").ComponentRenderProxy<{
[x: string]: any;
} & {}, import("@vue/composition-api/dist/vue-composition-api.js").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}>, import("@vue/composition-api/dist/vue-composition-api.js").Data, {}, {}, {
[x: string]: any;
} & {}, {
[x: string]: any;
}, true>);
declare const _default: any;
export default _default;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc