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

@opentiny/vue-tree

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-tree - npm Package Compare versions

Comparing version 2.6.7 to 2.7.0

7

lib/index.js

@@ -19,6 +19,3 @@ function _extends() {

var template = function template2(mode) {
if ("mobile" === (process.env.TINY_MODE || mode))
return MobileTemplate;
else
return PcTemplate;
return PcTemplate;
};

@@ -123,3 +120,3 @@ var $constants = {

});
var version = "3.7.0";
var version = "2.7.0";
Tree.install = function(Vue) {

@@ -126,0 +123,0 @@ Vue.component(Tree.name, Tree);

@@ -63,3 +63,3 @@ import { renderless as renderless$1, api as api$1 } from "@opentiny/vue-renderless/tree/vue";

var __vue2_script$1 = {
var _sfc_main$1 = {
name: "TreeNode",

@@ -165,7 +165,5 @@ componentName: "TreeNode",

};
var render$1 = function render$12() {
var _sfc_render$1 = function render3() {
var _class;
var _vm = this;
var _h = _vm.$createElement;
var _c = _vm._self._c || _h;
var _vm = this, _c = _vm._self._c;
return _c("div", [_c("div", {

@@ -319,2 +317,3 @@ directives: [{

}],
ref: "menuContext",
staticClass: "tiny-tree-node__menu",

@@ -336,14 +335,6 @@ style: _vm.state.menuposition,

};
var staticRenderFns$1 = [];
var __cssModules$1 = {};
var __component__$1 = /* @__PURE__ */ normalizeComponent(__vue2_script$1, render$1, staticRenderFns$1, false, __vue2_injectStyles$1, null, null, null);
function __vue2_injectStyles$1(context) {
for (var o in __cssModules$1) {
this[o] = __cssModules$1[o];
}
}
var TreeNode = /* @__PURE__ */ function() {
return __component__$1.exports;
}();
var __vue2_script = defineComponent({
var _sfc_staticRenderFns$1 = [];
var __component__$1 = /* @__PURE__ */ normalizeComponent(_sfc_main$1, _sfc_render$1, _sfc_staticRenderFns$1, false, null, null, null, null);
var TreeNode = __component__$1.exports;
var _sfc_main = defineComponent({
props: [].concat(props, ["data", "dataset", "parentKey", "expandIcon", "shrinkIcon", "emptyText", "renderAfterExpand", "nodeKey", "checkStrictly", "defaultExpandAll", "expandOnClickNode", "checkOnClickNode", "checkDescendants", "autoExpandParent", "defaultCheckedKeys", "defaultExpandedKeys", "defaultExpandedKeysHighlight", "currentNodeKey", "renderContent", "showCheckbox", "draggable", "allowDrag", "allowDrop", "props", "lazy", "highlightCurrent", "load", "filterNodeMethod", "accordion", "indent", "icon", "iconTriggerClickNode", "showRadio", "showContextmenu"]),

@@ -369,6 +360,5 @@ components: {

});
var render3 = function render4() {
var _vm = this;
var _h = _vm.$createElement;
var _c = _vm._self._c || _h;
var _sfc_render = function render4() {
var _vm = this, _c = _vm._self._c;
_vm._self._setupProxy;
return _c("div", {

@@ -423,15 +413,7 @@ staticClass: "tiny-tree",

};
var staticRenderFns = [];
var __cssModules = {};
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render3, staticRenderFns, false, __vue2_injectStyles, null, null, null);
function __vue2_injectStyles(context) {
for (var o in __cssModules) {
this[o] = __cssModules[o];
}
}
var pc = /* @__PURE__ */ function() {
return __component__.exports;
}();
var _sfc_staticRenderFns = [];
var __component__ = /* @__PURE__ */ normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
var pc = __component__.exports;
export {
pc as default
};
{
"name": "@opentiny/vue-tree",
"version": "2.6.7",
"version": "2.7.0",
"description": "",
"main": "./lib/index.js",
"module": "./lib/index.js",
"sideEffects": false,
"dependencies": {
"@opentiny/vue-renderless": "~3.6.6",
"@opentiny/vue-common": "~2.6.7"
"@opentiny/vue-renderless": "~3.9.0",
"@opentiny/vue-common": "~2.7.0"
},

@@ -10,0 +12,0 @@ "license": "MIT",

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

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode> & import("@vue/composition-api").Data, {}, {}, {
declare const _default: import("@opentiny/vue-common").DefineComponent<{
_constants: {

@@ -21,3 +21,3 @@ type: ObjectConstructor;

checkStrictly: BooleanConstructor;
currentNodeKey: (StringConstructor | NumberConstructor)[];
currentNodeKey: (NumberConstructor | StringConstructor)[];
data: {

@@ -30,3 +30,3 @@ type: ArrayConstructor;

defaultExpandedKeys: ArrayConstructor;
defaultExpandedKeysHighlight: (StringConstructor | NumberConstructor)[];
defaultExpandedKeysHighlight: (NumberConstructor | StringConstructor)[];
draggable: {

@@ -85,44 +85,97 @@ type: BooleanConstructor;

shrinkIcon: ObjectConstructor;
}, {
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}, () => import("vue").VNode, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("@opentiny/vue-common").ExtractPropTypes<{
_constants: {
type: ObjectConstructor;
default: () => {
EMPTY_TEXT_LOCAL: string;
};
};
accordion: BooleanConstructor;
allowDrag: FunctionConstructor;
allowDrop: FunctionConstructor;
autoExpandParent: {
type: BooleanConstructor;
default: boolean;
};
checkDescendants: {
type: BooleanConstructor;
default: boolean;
};
checkOnClickNode: BooleanConstructor;
checkStrictly: BooleanConstructor;
currentNodeKey: (NumberConstructor | StringConstructor)[];
data: {
type: ArrayConstructor;
};
dataset: ObjectConstructor;
defaultCheckedKeys: ArrayConstructor;
defaultExpandAll: BooleanConstructor;
defaultExpandedKeys: ArrayConstructor;
defaultExpandedKeysHighlight: (NumberConstructor | StringConstructor)[];
draggable: {
type: BooleanConstructor;
default: boolean;
};
emptyText: StringConstructor;
expandIcon: ObjectConstructor;
expandOnClickNode: {
type: BooleanConstructor;
default: boolean;
};
filterNodeMethod: FunctionConstructor;
highlightCurrent: BooleanConstructor;
icon: ObjectConstructor;
iconTriggerClickNode: {
type: BooleanConstructor;
default: boolean;
};
indent: {
type: NumberConstructor;
default: number;
};
lazy: {
type: BooleanConstructor;
default: boolean;
};
load: FunctionConstructor;
nodeKey: StringConstructor;
parentKey: StringConstructor;
props: {
children: string;
label: string;
disabled: string;
default(): {
children: string;
label: string;
disabled: string;
};
};
_constants: Record<string, any>;
accordion: boolean;
draggable: boolean;
lazy: boolean;
defaultExpandAll: boolean;
showCheckbox: boolean;
expandOnClickNode: boolean;
checkOnClickNode: boolean;
checkStrictly: boolean;
highlightCurrent: boolean;
autoExpandParent: boolean;
checkDescendants: boolean;
iconTriggerClickNode: boolean;
indent: number;
renderAfterExpand: boolean;
showContextmenu: boolean;
showRadio: boolean;
} & {
data?: unknown[] | undefined;
icon?: Record<string, any> | undefined;
dataset?: Record<string, any> | undefined;
renderContent?: Function | undefined;
parentKey?: string | undefined;
defaultCheckedKeys?: unknown[] | undefined;
allowDrag?: Function | undefined;
allowDrop?: Function | undefined;
defaultExpandedKeys?: unknown[] | undefined;
emptyText?: string | undefined;
expandIcon?: Record<string, any> | undefined;
filterNodeMethod?: Function | undefined;
load?: Function | undefined;
nodeKey?: string | undefined;
shrinkIcon?: Record<string, any> | undefined;
currentNodeKey?: string | number | undefined;
defaultExpandedKeysHighlight?: string | number | undefined;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
renderAfterExpand: {
type: BooleanConstructor;
default: boolean;
};
renderContent: FunctionConstructor;
showCheckbox: {
type: BooleanConstructor;
default: boolean;
};
showContextmenu: {
type: BooleanConstructor;
default: boolean;
};
showRadio: {
type: BooleanConstructor;
default: boolean;
};
shrinkIcon: ObjectConstructor;
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}>>, {
props: {

@@ -133,49 +186,9 @@ children: string;

};
tiny_mode_root: boolean;
_constants: Record<string, any>;
accordion: boolean;
draggable: boolean;
lazy: boolean;
defaultExpandAll: boolean;
showCheckbox: boolean;
expandOnClickNode: boolean;
checkOnClickNode: boolean;
checkStrictly: boolean;
highlightCurrent: boolean;
autoExpandParent: boolean;
checkDescendants: boolean;
iconTriggerClickNode: boolean;
indent: number;
renderAfterExpand: boolean;
showContextmenu: boolean;
showRadio: boolean;
} & {
data?: unknown[] | undefined;
icon?: Record<string, any> | undefined;
dataset?: Record<string, any> | undefined;
renderContent?: Function | undefined;
parentKey?: string | undefined;
defaultCheckedKeys?: unknown[] | undefined;
allowDrag?: Function | undefined;
allowDrop?: Function | undefined;
defaultExpandedKeys?: unknown[] | undefined;
emptyText?: string | undefined;
expandIcon?: Record<string, any> | undefined;
filterNodeMethod?: Function | undefined;
load?: Function | undefined;
nodeKey?: string | undefined;
shrinkIcon?: Record<string, any> | undefined;
currentNodeKey?: string | number | undefined;
defaultExpandedKeysHighlight?: string | number | undefined;
}, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api").Data, {}, {}, {
props: {
children: string;
label: string;
disabled: string;
};
_constants: Record<string, any>;
accordion: boolean;
draggable: boolean;
lazy: boolean;
defaultExpandAll: boolean;
showCheckbox: boolean;
expandOnClickNode: boolean;

@@ -192,39 +205,3 @@ checkOnClickNode: boolean;

showRadio: boolean;
} & {
data?: unknown[] | undefined;
icon?: Record<string, any> | undefined;
dataset?: Record<string, any> | undefined;
renderContent?: Function | undefined;
parentKey?: string | undefined;
defaultCheckedKeys?: unknown[] | undefined;
allowDrag?: Function | undefined;
allowDrop?: Function | undefined;
defaultExpandedKeys?: unknown[] | undefined;
emptyText?: string | undefined;
expandIcon?: Record<string, any> | undefined;
filterNodeMethod?: Function | undefined;
load?: Function | undefined;
nodeKey?: string | undefined;
shrinkIcon?: Record<string, any> | undefined;
currentNodeKey?: string | number | undefined;
defaultExpandedKeysHighlight?: string | number | undefined;
}, {
props: {
children: string;
label: string;
disabled: string;
};
_constants: Record<string, any>;
draggable: boolean;
lazy: boolean;
showCheckbox: boolean;
expandOnClickNode: boolean;
autoExpandParent: boolean;
checkDescendants: boolean;
iconTriggerClickNode: boolean;
indent: number;
renderAfterExpand: boolean;
showContextmenu: boolean;
showRadio: boolean;
}, true>);
}>;
export default _default;

@@ -1,12 +0,8 @@

declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {}, {}, Readonly<{
declare const _sfc_main: import("@opentiny/vue-common").DefineComponent<Readonly<{
[x: string]: any;
}>, {
}>, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("check" | "node-drag-start" | "node-drag-enter" | "node-drag-over" | "node-drag-end" | "node-drop" | "node-expand" | "node-click" | "check-change" | "current-change" | "node-drag-leave")[], string, Readonly<import("@opentiny/vue-common").ExtractPropTypes<Readonly<{
[x: string]: any;
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
}>>>, {
[x: string]: any;
} & {}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, import("@vue/composition-api").Data, {}, {}, {
[x: string]: any;
} & {}, {
[x: string]: any;
}, true>);
}>;
export default _sfc_main;

@@ -37,202 +37,3 @@ declare const _sfc_main: {

};
components: {
CollapseTransition: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
on: {
beforeEnter(elem: any): void;
enter(elem: any): void;
afterEnter(elem: any): void;
beforeLeave(elem: any): void;
leave(elem: any): void;
afterLeave(elem: any): void;
};
}> & import("@vue/composition-api").Data, {}, {}, unknown, {
[x: string]: any;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
[x: string]: any;
}, import("@vue/composition-api").ShallowUnwrapRef<{
on: {
beforeEnter(elem: any): void;
enter(elem: any): void;
afterEnter(elem: any): void;
beforeLeave(elem: any): void;
leave(elem: any): void;
afterLeave(elem: any): void;
};
}>, import("@vue/composition-api").Data, {}, {}, {
[x: string]: any;
}, {}, true>);
Checkbox: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode> & import("@vue/composition-api").Data, {}, {}, {
_constants: {
type: ObjectConstructor;
default: () => {
FORM_ITEM: string;
FORM_CHANGE: string;
CHECKBOX: string;
CHECKBOX_GROUP: string;
};
};
modelValue: {};
label: {};
indeterminate: BooleanConstructor;
disabled: BooleanConstructor;
checked: BooleanConstructor;
name: StringConstructor;
trueLabel: (StringConstructor | NumberConstructor)[];
falseLabel: (StringConstructor | NumberConstructor)[];
id: StringConstructor;
controls: StringConstructor;
border: BooleanConstructor;
size: StringConstructor;
text: StringConstructor;
validateEvent: {
type: BooleanConstructor;
default: boolean;
};
events: {
type: ObjectConstructor;
default: () => {};
};
}, {
disabled: boolean;
_constants: Record<string, any>;
validateEvent: boolean;
events: Record<string, any>;
indeterminate: boolean;
checked: boolean;
border: boolean;
} & {
name?: string | undefined;
size?: string | undefined;
text?: string | undefined;
modelValue?: unknown;
label?: unknown;
id?: 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").ComponentRenderProxy<{
disabled: boolean;
_constants: Record<string, any>;
validateEvent: boolean;
events: Record<string, any>;
indeterminate: boolean;
checked: boolean;
border: boolean;
} & {
name?: string | undefined;
size?: string | undefined;
text?: string | undefined;
modelValue?: unknown;
label?: unknown;
id?: string | undefined;
controls?: string | undefined;
trueLabel?: string | number | undefined;
falseLabel?: string | number | undefined;
}, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api").Data, {}, {}, {
disabled: boolean;
_constants: Record<string, any>;
validateEvent: boolean;
events: Record<string, any>;
indeterminate: boolean;
checked: boolean;
border: boolean;
} & {
name?: string | undefined;
size?: string | undefined;
text?: string | undefined;
modelValue?: unknown;
label?: unknown;
id?: string | undefined;
controls?: string | undefined;
trueLabel?: string | number | undefined;
falseLabel?: string | number | undefined;
}, {
_constants: Record<string, any>;
validateEvent: boolean;
events: Record<string, any>;
}, true>);
TinyRadio: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode> & import("@vue/composition-api").Data, {}, {}, {
_constants: {
type: ObjectConstructor;
default: () => {
RADIO_GROUP: string;
};
};
modelValue: {};
label: {};
disabled: BooleanConstructor;
name: StringConstructor;
border: BooleanConstructor;
size: StringConstructor;
text: StringConstructor;
events: {
type: ObjectConstructor;
default: () => {};
};
tabindex: {
type: StringConstructor;
default: string;
};
}, {
disabled: boolean;
tabindex: string;
_constants: Record<string, any>;
events: Record<string, any>;
border: boolean;
} & {
name?: string | undefined;
size?: string | undefined;
text?: string | undefined;
modelValue?: unknown;
label?: unknown;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
disabled: boolean;
tabindex: string;
_constants: Record<string, any>;
events: Record<string, any>;
border: boolean;
} & {
name?: string | undefined;
size?: string | undefined;
text?: string | undefined;
modelValue?: unknown;
label?: unknown;
}, import("@vue/composition-api").ShallowUnwrapRef<() => import("vue").VNode>, import("@vue/composition-api").Data, {}, {}, {
disabled: boolean;
tabindex: string;
_constants: Record<string, any>;
events: Record<string, any>;
border: boolean;
} & {
name?: string | undefined;
size?: string | undefined;
text?: string | undefined;
modelValue?: unknown;
label?: unknown;
}, {
tabindex: string;
_constants: Record<string, any>;
events: Record<string, any>;
}, true>);
IconChevronRight: any;
IconLoading: any;
MenuContext: {
props: {
node: {
required: boolean;
};
};
render(): any;
};
NodeContent: {
props: {
node: {
required: boolean;
};
renderContent: FunctionConstructor;
};
inject: string[];
render(): any;
};
};
components: undefined;
setup(props: any, context: any): {

@@ -245,4 +46,6 @@ t: (this: any, path: any, options?: any) => any;

dp: (props: any) => void;
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
};
};
export default _sfc_main;
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