Lines Matching +defs:e +defs:ui
21 define(["jquery", "./jquery.fancytree.ui-deps"], factory);
24 require("./jquery.fancytree.ui-deps");
34 if ($.ui && $.ui.fancytree) {
35 $.ui.fancytree.warn("Fancytree: ignored duplicate include");
183 $.ui.fancytree.error(msg);
207 _assert($.ui, "Fancytree requires jQuery UI (http://jqueryui.com)");
217 } catch (e) {
248 verParts = $.map(_trim(dottedVersion).split("."), function (e) {
249 return parseInt(e, 10);
253 function (e) {
254 return parseInt(e, 10);
335 // $.ui.fancytree.debug("_makeVirtualFunction", methodName, tree, base, extension, extName);
377 // $.ui.fancytree.debug("_subclassObject", tree, base, extension, extName);
509 * @property {boolean} lazy True if this node is loaded on demand, i.e. on first expansion.
1169 // When fixing the parents, we trust the sibling status (i.e.
1253 /** Return the hierarchical child index (1-based, e.g. '3.2.4').
1272 /** Return the parent keys separated by options.keyPathSeparator, e.g. "/id_1/id_17/id_32".
1347 /** Return a string representing the hierachical node path, e.g. "a/b/c".
1407 /** Return true if node has children. Return undefined if not sure, i.e. the node is lazy and not yet loaded).
1466 /** Return true if node is vertically below `otherNode`, i.e. rendered in a subsequent row.
1514 /** Return true if node is a folder, i.e. has the node.folder attribute set.
1539 /** Return true if children are currently beeing loaded, i.e. a Ajax request is pending.
1572 /** Return true if node is selected, i.e. has a checkmark set (see also FancytreeNode#isActive).
1592 /** Return true if this a top level node, i.e. a direct child of the (invisible) system root node.
1617 // i.e. return false for nodes (but not parents) that are hidden
1900 * e.g. `$.ui.keyCode.LEFT` = 'left'.
1906 KC = $.ui.keyCode;
1929 } catch (e) {} // #272
2273 /**Select this node, i.e. check the checkbox.
2637 * @property {string} _id Automatically generated unique tree instance ID, e.g. "1".
2638 * @property {string} _ns Automatically generated unique tree namespace, e.g. ".fancytree-1".
2645 * @property {object} data Metadata, i.e. properties that may be passed to `source` in addition to a children array.
2651 * @property {FancytreeOptions} options Current options, i.e. default options + options passed to constructor.
2691 this._id = "" + (this.options.treeId || $.ui.fancytree._nextId++);
2727 class: "ui-fancytree fancytree-container fancytree-plain",
3068 var dd = $.ui.ddmanager.current;
3237 * e.g. `$.ui.keyCode.LEFT` = 'left'.
3244 KC = $.ui.keyCode;
3507 /** Return true if any node is currently beeing loaded, i.e. a Ajax request is pending.
3571 * @param {string | string[]} keyPathList one or more key paths (e.g. '/3/2_1/7')
3675 // Traverse and pop path segments (i.e. keys), until we hit a lazy, unloaded node
3788 /**Render tree (i.e. create DOM elements for all top-level nodes).
4448 } catch (e) {
4450 error: e,
4451 message: "" + e,
4769 * was changed (e.g. after moving this node or adding/removing children)
4774 * <span class='fancytree-node fancytree-expanded fancytree-has-children fancytree-lastsib fancytree-exp-el fancytree-ico-e'>
4794 * (i.e. node hierarchy) does not match the current markup.
4965 // #486: successorLi is set, if we re-rendered (i.e. discarded)
4973 /** Create HTML inside the node's outer `<span>` (i.e. expander, checkbox,
5021 // .. else (i.e. for root level) skip expander/connector alltogether
5290 (node.expanded ? "e" : "c") +
5297 (node.expanded ? "e" : "c") +
5584 .find(".ui-effects-placeholder")
5833 } catch (e) {}
6055 "ui-fancytree-source fancytree-helper-hidden"
6057 source = $.ui.fancytree.parseHtml($ul);
6181 * Note: `key` may reference a nested option, e.g. 'dnd5.scroll'.
6287 * var tree = $.ui.fancytree.getTree("#tree");
6301 "ui.fancytree",
6322 debugLevel: null, // 0..4 (null: use global setting $.ui.fancytree.debugLevel)
6405 extension = $.ui.fancytree._extensions[extName];
6728 * @deprecated Use `$.ui.fancytree.getTree()` instead (<a href="Fancytree_Widget.html">example above</a>).
6737 // $.ui.fancytree was created by the widget factory. Create a local shortcut:
6738 FT = $.ui.fancytree;
6741 * Static members in the `$.ui.fancytree` namespace.
6747 * var node = $.ui.fancytree.getNode(element);
6748 * alert($.ui.fancytree.version);
6753 $.ui.fancytree,
6765 // Used by $.ui.fancytree.debug() and as default for tree.options.debugLevel
6772 /** Expose class object as `$.ui.fancytree._FancytreeClass`.
6773 * Useful to extend `$.ui.fancytree._FancytreeClass.prototype`.
6777 /** Expose class object as $.ui.fancytree._FancytreeNodeClass
6778 * Useful to extend `$.ui.fancytree._FancytreeNodeClass.prototype`.
6785 positionMyOfs: isVersionAtLeast($.ui.version, 1, 9),
6800 * var tree = $.ui.fancytree.createTree("#tree", {
6839 if ($.ui.fancytree.debugLevel >= 4) {
6847 if ($.ui.fancytree.debugLevel >= 1) {
6861 /** Make jQuery.position() arguments backwards compatible, i.e. if
6879 if (!$.ui.fancytree.jquerySupports.positionMyOfs) {
6908 * @param {Event} event Mouse event, e.g. click, ...
6955 * @param {Event} event Mouse event, e.g. click, mousemove, ...
6987 * $.ui.fancytree.getTree(); // Get first Fancytree instance on page
6988 * $.ui.fancytree.getTree(1); // Get second Fancytree instance on page
6989 * $.ui.fancytree.getTree(event); // Get tree for this mouse- or keyboard event
6990 * $.ui.fancytree.getTree("foo"); // Get tree for this `opts.treeId`
6991 * $.ui.fancytree.getTree("#tree"); // Get tree for this matching element
7024 el = el.closest(":ui-fancytree");
7025 widget = el.data("ui-fancytree") || el.data("fancytree"); // the latter is required by jQuery <= 1.8
7040 * @param {object} nodeObject where to look for the local option property, e.g. `node` or `node.data`
7041 * @param {object} treeOption where to look for the tree option, e.g. `tree.options` or `tree.options.dnd5`
7047 * $.ui.fancytree.evalOption("foo", node, node, tree.options);
7049 * $.ui.fancytree.evalOption("bar", node, node.data, tree.options.qux);
7121 switch( $.ui.fancytree.eventToString(event) ) {
7174 if ($.ui.fancytree.debugLevel >= 3) {
7190 $.ui.fancytree.overrideMethod(ctx.options, "createNode", function(event, data) {
7320 d.children = $.ui.fancytree.parseHtml($ul);
7342 $.ui.fancytree._extensions[definition.name] = definition;
7355 var e = document.createElement("div");
7356 e.innerHTML = s;
7357 return e.childNodes.length === 0
7359 : e.childNodes[0].nodeValue;
7365 if ($.ui.fancytree.debugLevel >= 2) {
7373 return $.ui.fancytree;
7434 // var tree = $.ui.fancytree.getTree("#tree");
7437 $.ui.fancytree._FancytreeClass.prototype.countSelected = function (
7458 $.ui.fancytree._FancytreeNodeClass.prototype.updateCounters = function () {
7491 $.ui.fancytree.prototype.widgetMethod1 = function (arg1) {
7515 $.ui.fancytree.registerExtension({
7615 return $.ui.fancytree;
7652 var _assert = $.ui.fancytree.assert;
7770 path = $.map(node.getParentList(false, true), function (e) {
7771 return e.refKey || e.key;
7785 * [ext-clones] Return a list of clone-nodes (i.e. same refKey) or null.
7792 $.ui.fancytree._FancytreeNodeClass.prototype.getCloneList = function (
7826 $.ui.fancytree._FancytreeNodeClass.prototype.isClone = function () {
7841 $.ui.fancytree._FancytreeNodeClass.prototype.reRegister = function (
7873 refMap[prevRefKey] = $.map(refList, function (e) {
7874 return e === prevKey ? key : e;
7888 refMap[prevRefKey] = $.map(refList, function (e) {
7889 return e === prevKey ? null : e;
7914 $.ui.fancytree._FancytreeNodeClass.prototype.setRefKey = function (refKey) {
7926 $.ui.fancytree._FancytreeClass.prototype.getNodesByRef = function (
7959 $.ui.fancytree._FancytreeClass.prototype.changeRefKey = function (
7981 $.ui.fancytree.registerExtension({
8130 return $.ui.fancytree;
8153 "jquery-ui/ui/widgets/draggable",
8154 "jquery-ui/ui/widgets/droppable",
8185 //--- Extend ui.draggable event handling --------------------------------------
8194 $.ui.plugin.add("draggable", "connectToFancytree", {
8195 start: function (event, ui) {
8196 // 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10
8198 $(this).data("ui-draggable") ||
8200 sourceNode = ui.helper.data("ftSourceNode") || null;
8213 ui,
8218 drag: function (event, ui) {
8222 // 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10
8224 $(this).data("ui-draggable") ||
8226 sourceNode = ui.helper.data("ftSourceNode") || null,
8227 prevTargetNode = ui.helper.data("ftTargetNode") || null,
8228 targetNode = $.ui.fancytree.getNode(event.target),
8231 // logObject = sourceNode || prevTargetNode || $.ui.fancytree;
8245 sourceNode || prevTargetNode || $.ui.fancytree;
8250 ui.helper.data("ftTargetNode", targetNode);
8255 ui: ui,
8269 ui,
8283 ui,
8293 ui,
8301 ui,
8308 stop: function (event, ui) {
8310 // 'draggable' was renamed to 'ui-draggable' since jQueryUI 1.10:
8312 $(this).data("ui-draggable") ||
8314 sourceNode = ui.helper.data("ftSourceNode") || null,
8315 targetNode = ui.helper.data("ftTargetNode") || null,
8319 logObject = sourceNode || targetNode || $.ui.fancytree;
8329 ui,
8338 ui,
8348 ui,
8365 // Register 'connectToFancytree' option with ui.draggable
8369 // Attach ui.draggable to this Fancytree instance
8393 sourceNode = $.ui.fancytree.getNode(
8427 // Allow to modify the helper, e.g. to add multi-node-drag feedback
8436 ui: { helper: $helper },
8444 start: function (event, ui) {
8445 var sourceNode = ui.helper.data("ftSourceNode");
8453 // Attach ui.droppable to this Fancytree instance
8462 activate: function(event, ui) {
8463 tree.debug("droppable - activate", event, ui, this);
8465 create: function(event, ui) {
8466 tree.debug("droppable - create", event, ui);
8468 deactivate: function(event, ui) {
8469 tree.debug("droppable - deactivate", event, ui);
8471 drop: function(event, ui) {
8472 tree.debug("droppable - drop", event, ui);
8474 out: function(event, ui) {
8475 tree.debug("droppable - out", event, ui);
8477 over: function(event, ui) {
8478 tree.debug("droppable - over", event, ui);
8492 $.ui.fancytree.registerExtension({
8529 var node = $.ui.fancytree.getNode(event);
8613 .position($.ui.fancytree.fixPositionOptions(pos));
8645 * _onDragEvent("start", sourceNode, null, event, ui, draggable);
8647 * _onDragEvent("leave", prevTargetNode, sourceNode, event, ui, draggable);
8648 * _onDragEvent("over", targetNode, sourceNode, event, ui, draggable);
8649 * _onDragEvent("enter", targetNode, sourceNode, event, ui, draggable);
8651 * _onDragEvent("drop", targetNode, sourceNode, event, ui, draggable);
8652 * _onDragEvent("leave", targetNode, sourceNode, event, ui, draggable);
8653 * _onDragEvent("stop", sourceNode, null, event, ui, draggable);
8660 ui,
8679 ui: ui,
8702 ui.helper.trigger("mouseup").hide();
8731 event.which === $.ui.keyCode.ESCAPE
8768 ui.helper.data("enterResponse", res);
8773 enterResponse = ui.helper.data("enterResponse");
8851 ui.helper.data("hitMode", hitMode);
8876 ui.helper,
8883 hitMode = ui.helper.data("hitMode");
8893 ui.helper.data("enterResponse", null);
8894 ui.helper.data("hitMode", null);
8898 ui.helper,
8922 var dd = $.ui.ddmanager.current;
8929 return $.ui.fancytree;
8978 var FT = $.ui.fancytree,
9897 // Prevent browser's default drop handling, i.e. open as link, ...
9930 * $.ui.fancytree.getDragNodeList();
9936 $.ui.fancytree.getDragNodeList = function () {
9946 * $.ui.fancytree.getDragNode();
9952 $.ui.fancytree.getDragNode = function () {
9960 $.ui.fancytree.registerExtension({
9970 multiSource: false, // true: Drag multiple (i.e. selected) nodes. Also a callback() is allowed
10087 return $.ui.fancytree;
10125 escapeHtml = $.ui.fancytree.escapeHtml,
10126 trim = $.ui.fancytree.trim,
10127 unescapeHtml = $.ui.fancytree.unescapeHtml;
10135 $.ui.fancytree._FancytreeNodeClass.prototype.editStart = function () {
10164 $.ui.fancytree.assert(!local.currentNode, "recursive edit");
10209 case $.ui.keyCode.ESCAPE:
10212 case $.ui.keyCode.ENTER:
10231 $.ui.fancytree._FancytreeNodeClass.prototype.editEnd = function (
10325 $.ui.fancytree._FancytreeNodeClass.prototype.editCreateNode = function (
10339 $.ui.fancytree.assert($.isPlainObject(init));
10374 $.ui.fancytree._FancytreeClass.prototype.isEditing = function () {
10384 $.ui.fancytree._FancytreeNodeClass.prototype.isEditing = function () {
10393 $.ui.fancytree.registerExtension({
10433 var eventStr = $.ui.fancytree.eventToString(ctx.originalEvent),
10476 case $.ui.keyCode.ENTER:
10491 return $.ui.fancytree;
10529 escapeHtml = $.ui.fancytree.escapeHtml,
10584 $.ui.fancytree._FancytreeClass.prototype._applyFilterImpl = function (
10659 // #740: we must not apply the marks to escaped entity names, e.g. `"`
10796 $.ui.fancytree._FancytreeClass.prototype.filterNodes = function (
10818 $.ui.fancytree._FancytreeClass.prototype.filterBranches = function (
10833 $.ui.fancytree._FancytreeClass.prototype.updateFilter = function () {
10851 $.ui.fancytree._FancytreeClass.prototype.clearFilter = function () {
10915 $.ui.fancytree._FancytreeClass.prototype.isFilterActive = function () {
10927 $.ui.fancytree._FancytreeNodeClass.prototype.isMatched = function () {
10934 $.ui.fancytree.registerExtension({
10942 fuzzy: false, // Match single characters in order, e.g. 'fb' will match 'FooBar'
11021 // if node.span is null (i.e. not rendered)
11041 return $.ui.fancytree;
11078 var FT = $.ui.fancytree,
11224 // #871: propsed this, but I am not sure how robust this is, e.g.
11256 $.ui.fancytree.registerExtension({
11396 return $.ui.fancytree;
11439 var KC = $.ui.keyCode,
11526 $.ui.fancytree.registerExtension({
11545 node = $.ui.fancytree.getNode(event.target);
11615 return $.ui.fancytree;
11657 $.ui.fancytree.registerExtension({
11684 eventStr = $.ui.fancytree.eventToString(ctx.originalEvent);
11725 eventStr = $.ui.fancytree.eventToString(event);
11744 return $.ui.fancytree;
11786 _assert = $.ui.fancytree.assert,
11806 } catch (e) {
11807 $.ui.fancytree.warn("Could not access window.localStorage", e);
11823 } catch (e) {
11824 $.ui.fancytree.warn("Could not access window.sessionStorage", e);
11912 * $.ui.fancytree.getTree("#tree").clearCookies("active expanded focus selected");
11917 $.ui.fancytree._FancytreeClass.prototype.clearPersistData = function (
11938 $.ui.fancytree._FancytreeClass.prototype.clearCookies = function (types) {
11949 * $.ui.fancytree.getTree("#tree").getPersistData();
11954 $.ui.fancytree._FancytreeClass.prototype.getPersistData = function () {
11970 $.ui.fancytree.registerExtension({
12248 return $.ui.fancytree;
12284 var _assert = $.ui.fancytree.assert;
12339 $.ui.fancytree.registerExtension({
12508 // $.ui.fancytree.debug("*** nodeRender _enableUpdate: false");
12514 // $.ui.fancytree.debug("*** nodeRender " + node + ", isRoot=" + isRootNode, "tr=" + node.tr, "hcp=" + ctx.hasCollapsedParents, "parent.tr=" + (node.parent && node.parent.tr));
12541 // $.ui.fancytree.debug("*** nodeRender " + node + ": prev: " + prevNode.key);
12789 $.ui.fancytree.focusTree = ctx.tree;
12793 return $.ui.fancytree;
12831 $.ui.fancytree.registerExtension({
12836 activeClass: "ui-state-active", // Class added to active node
12837 // activeClass: "ui-state-highlight",
12838 addClass: "ui-corner-all", // Class added to all nodes
12839 focusClass: "ui-state-focus", // Class added to focused node
12840 hoverClass: "ui-state-hover", // Class added to hovered node
12841 selectedClass: "ui-state-highlight", // Class added to selected nodes
12842 // selectedClass: "ui-state-active"
12852 $el.addClass("ui-widget ui-corner-all");
12853 $el.find(">thead tr").addClass("ui-widget-header");
12854 $el.find(">tbody").addClass("ui-widget-conent");
12856 $el.addClass("ui-widget ui-widget-content ui-corner-all");
12863 var node = $.ui.fancytree.getNode(event.target),
12876 "ui-widget ui-widget-content ui-corner-all"
12887 .ui-state-highlight: Class to be applied to highlighted or selected elements. Applies "highlight" container styles to an element and its child text, links, and icons.
12888 .ui-state-error: Class to be applied to error messaging container elements. Applies "error" container styles to an element and its child text, links, and icons.
12889 .ui-state-error-text: An additional class that applies just the error text color without background. Can be used on form labels for instance. Also applies error icon color to child icons.
12891 .ui-state-default: Class to be applied to clickable button-like elements. Applies "clickable default" container styles to an element and its child text, links, and icons.
12892 .ui-state-hover: Class to be applied on mouseover to clickable button-like elements. Applies "clickable hover" container styles to an element and its child text, links, and icons.
12893 .ui-state-focus: Class to be applied on keyboard focus to clickable button-like elements. Applies "clickable hover" container styles to an element and its child text, links, and icons.
12894 .ui-state-active: Class to be applied on mousedown to clickable button-like elements. Applies "clickable active" container styles to an element and its child text, links, and icons.
12896 // Set ui-state-* class (handle the case that the same class is assigned
12914 // Additional classes (e.g. 'ui-corner-all')
12919 return $.ui.fancytree;
12956 // var _assert = $.ui.fancytree.assert;
12984 } catch (e) {
13019 " div.ui-effects-wrapper ul li span.fancytree-title, " +
13040 // $.ui.fancytree._FancytreeClass.prototype.wideUpdate = function(){
13061 $.ui.fancytree.registerExtension({
13177 return $.ui.fancytree;