From 2be419c87b91a8590ca6563d27f0c3c9f7570a0f Mon Sep 17 00:00:00 2001 From: zTreeAPI <hunter.z@263.net> Date: Wed, 29 Apr 2020 10:36:23 +0800 Subject: [PATCH] * update TypeScript type definition Thanks @bseddon --- README.md | 2 +- api/API_cn.html | 2 +- api/API_en.html | 2 +- index.d.ts | 9 +++++++++ js/jquery.ztree.all.js | 12 ++++++------ js/jquery.ztree.core.js | 4 ++-- js/jquery.ztree.excheck.js | 4 ++-- js/jquery.ztree.exedit.js | 4 ++-- js/jquery.ztree.exhide.js | 4 ++-- log v3.x.txt | 4 +++- package.json | 2 +- 11 files changed, 30 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 65e6299b4..ca9ff621e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ jQuery Tree Plugin ---- zTree ============ -last verson : 3.5.43 +last verson : 3.5.44 **Donate to zTree** : http://www.treejs.cn/v3/donate.php diff --git a/api/API_cn.html b/api/API_cn.html index a8b1acd71..948117053 100644 --- a/api/API_cn.html +++ b/api/API_cn.html @@ -35,7 +35,7 @@ <div class="ieSuggest">æµè§ˆæœ¬ç½‘站建议您使用 Chromeã€FireFoxã€Operaã€IE9 ç‰æµè§ˆå™¨ï¼ˆåªè¦ä¸æ˜¯ IE6 7 8 就行), 速度会更快,画é¢ä¼šæ›´ç‚«ï¼</div> <div class="google_plus"><g:plusone></g:plusone></div> <div class="header-text"> - <h1><em>zTree v3.5.43 API 文档</em></h1><p></p> + <h1><em>zTree v3.5.44 API 文档</em></h1><p></p> <p>all.js = core + excheck + exedit ( ä¸åŒ…括 exhide ); å‘现错误请åŠæ—¶é€šçŸ¥ï¼Œè°¢è°¢ã€‚</p> </div> <ul class="shortcuts language" style="top:0;"> diff --git a/api/API_en.html b/api/API_en.html index f672cbfc8..33cb582ba 100644 --- a/api/API_en.html +++ b/api/API_en.html @@ -34,7 +34,7 @@ <div class="ieSuggest">If you use the Chrome / FireFox / Opera / IE9 browser will be even more dazzling effect!</div> <div class="google_plus"><g:plusone></g:plusone></div> <div class="header-text"> - <h1><em>zTree v3.5.43 API Document</em></h1><p></p> + <h1><em>zTree v3.5.44 API Document</em></h1><p></p> <p>all.js = core + excheck + exedit ( without exhide ); if you found some mistakes please contact me.</p> </div> <ul class="shortcuts language" style="top:0;"> diff --git a/index.d.ts b/index.d.ts index 3d70c43fe..4826c0d7d 100644 --- a/index.d.ts +++ b/index.d.ts @@ -47,6 +47,14 @@ type ApplicationType = 'application/x-www-form-urlencoded' | 'application/json'; type AjaxType = 'get' | 'post'; type DataType = 'text' | 'json' | 'jsonp' | 'html' | 'xml' | 'script'; +/** + * Defines a class to be returned by the zTree view.nodeClasses function + */ +interface INodeClasses +{ + add: string[]; + remove: string[]; +} interface IAsync { autoParam?: string[]; @@ -167,6 +175,7 @@ interface IView { dblClickExpand?: boolean | dblClickExpandFn<boolean>; expandSpeed?: string | number; fontCss?: IJSON | dblClickExpandFn<IJSON>; + nodeClasses?: INodeClasses | dblClickExpandFn<INodeClasses>; nameIsHTML?: boolean; removeHoverDom?: dblClickExpandFn<void>; selectedMulti?: boolean; diff --git a/js/jquery.ztree.all.js b/js/jquery.ztree.all.js index 65202b9bf..2e2ea46ce 100644 --- a/js/jquery.ztree.all.js +++ b/js/jquery.ztree.all.js @@ -1,6 +1,6 @@ /* * JQuery zTree core - * v3.5.43 + * v3.5.44 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z @@ -8,7 +8,7 @@ * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * - * Date: 2020-04-04 + * Date: 2020-04-29 */ (function ($) { @@ -2006,7 +2006,7 @@ })(jQuery); /* * JQuery zTree excheck - * v3.5.43 + * v3.5.44 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z @@ -2014,7 +2014,7 @@ * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * - * Date: 2020-04-04 + * Date: 2020-04-29 */ (function ($) { @@ -2658,7 +2658,7 @@ })(jQuery); /* * JQuery zTree exedit - * v3.5.43 + * v3.5.44 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z @@ -2666,7 +2666,7 @@ * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * - * Date: 2020-04-04 + * Date: 2020-04-29 */ (function ($) { diff --git a/js/jquery.ztree.core.js b/js/jquery.ztree.core.js index d409f5e6a..bd561b700 100644 --- a/js/jquery.ztree.core.js +++ b/js/jquery.ztree.core.js @@ -1,6 +1,6 @@ /* * JQuery zTree core - * v3.5.43 + * v3.5.44 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z @@ -8,7 +8,7 @@ * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * - * Date: 2020-04-04 + * Date: 2020-04-29 */ (function ($) { diff --git a/js/jquery.ztree.excheck.js b/js/jquery.ztree.excheck.js index 71021f204..37de7563c 100644 --- a/js/jquery.ztree.excheck.js +++ b/js/jquery.ztree.excheck.js @@ -1,6 +1,6 @@ /* * JQuery zTree excheck - * v3.5.43 + * v3.5.44 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z @@ -8,7 +8,7 @@ * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * - * Date: 2020-04-04 + * Date: 2020-04-29 */ (function ($) { diff --git a/js/jquery.ztree.exedit.js b/js/jquery.ztree.exedit.js index 4dcc2ad71..4bc2109c8 100644 --- a/js/jquery.ztree.exedit.js +++ b/js/jquery.ztree.exedit.js @@ -1,6 +1,6 @@ /* * JQuery zTree exedit - * v3.5.43 + * v3.5.44 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z @@ -8,7 +8,7 @@ * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * - * Date: 2020-04-04 + * Date: 2020-04-29 */ (function ($) { diff --git a/js/jquery.ztree.exhide.js b/js/jquery.ztree.exhide.js index c3d711825..4c47f147b 100644 --- a/js/jquery.ztree.exhide.js +++ b/js/jquery.ztree.exhide.js @@ -1,6 +1,6 @@ /* * JQuery zTree exHideNodes - * v3.5.43 + * v3.5.44 * http://treejs.cn/ * * Copyright (c) 2010 Hunter.z @@ -8,7 +8,7 @@ * Licensed same as jquery - MIT License * http://www.opensource.org/licenses/mit-license.php * - * Date: 2020-04-04 + * Date: 2020-04-29 */ (function ($) { diff --git a/log v3.x.txt b/log v3.x.txt index 86f205f79..b95c4bad6 100644 --- a/log v3.x.txt +++ b/log v3.x.txt @@ -13,7 +13,9 @@ </font> - +*2020.04.29* v3.5.44 +* update TypeScript type definition Thanks @bseddon + *2020.04.04* v3.5.43 * fixed TypeScript type definition Thanks @UtillYou * Update demo 'super/keyboard_navigation.html' Thanks @bseddon diff --git a/package.json b/package.json index 344818f37..c7f2243ac 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@ztree/ztree_v3", "description": "zTree is a multi-functional 'tree plug-ins.' based on jQuery. The main advantages of zTree includes excellent performance, flexible configuration, and the combination of multiple functions.", - "version": "3.5.43", + "version": "3.5.44", "homepage": "http://www.treejs.cn/v3/main.php", "author": "zTree (https://github.com/zTree)", "licenses": [ -- GitLab