ATLAS-1142 Lineage UI Improvement (kevalbhatt via shwethags)

Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/7bb2709d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/7bb2709d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/7bb2709d

Branch: refs/heads/master
Commit: 7bb2709d16694fb7957e2018532121474a810f14
Parents: dd0b051
Author: Shwetha GS <sshivalingamur...@hortonworks.com>
Authored: Mon Sep 19 10:52:53 2016 +0530
Committer: Shwetha GS <sshivalingamur...@hortonworks.com>
Committed: Mon Sep 19 10:52:53 2016 +0530

----------------------------------------------------------------------
 3party-licenses/jQuery-ui-LICENSE               |   43 +
 LICENSE                                         |    3 +
 dashboardv2/public/index.html                   |    1 +
 .../js/external_lib/jquery-ui/jquery-ui.min.css |    7 +
 .../js/external_lib/jquery-ui/jquery-ui.min.js  |    6 +
 .../require-handlebars-plugin/js/handlebars.js  | 3103 ++++++++++++++++++
 .../require-handlebars-plugin/js/hbs.js         |  490 +++
 .../js/i18nprecompile.js                        |   57 +
 .../require-handlebars-plugin/js/json2.js       |  351 ++
 dashboardv2/public/js/main.js                   |   14 +-
 .../require-handlebars-plugin/js/handlebars.js  | 3103 ------------------
 .../js/require-handlebars-plugin/js/hbs.js      |  490 ---
 .../js/i18nprecompile.js                        |   57 -
 .../js/require-handlebars-plugin/js/json2.js    |  351 --
 .../templates/graph/LineageLayoutView_tmpl.html |    2 +-
 .../views/detail_page/DetailPageLayoutView.js   |    6 +-
 .../public/js/views/graph/LineageLayoutView.js  |   29 +-
 release-log.txt                                 |    1 +
 18 files changed, 4103 insertions(+), 4011 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/7bb2709d/3party-licenses/jQuery-ui-LICENSE
----------------------------------------------------------------------
diff --git a/3party-licenses/jQuery-ui-LICENSE 
b/3party-licenses/jQuery-ui-LICENSE
new file mode 100644
index 0000000..4819e54
--- /dev/null
+++ b/3party-licenses/jQuery-ui-LICENSE
@@ -0,0 +1,43 @@
+Copyright jQuery Foundation and other contributors, https://jquery.org/
+
+This software consists of voluntary contributions made by many
+individuals. For exact contribution history, see the revision history
+available at https://github.com/jquery/jquery-ui
+
+The following license applies to all parts of this software except as
+documented below:
+
+====
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+====
+
+Copyright and related rights for sample code are waived via CC0. Sample
+code is defined as all source code contained within the demos directory.
+
+CC0: http://creativecommons.org/publicdomain/zero/1.0/
+
+====
+
+All files located in the node_modules and external directories are
+externally maintained libraries used by this software which have their
+own licenses; we recommend you read them, as their terms may differ from
+the terms above.

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/7bb2709d/LICENSE
----------------------------------------------------------------------
diff --git a/LICENSE b/LICENSE
index 032284e..0110fa9 100755
--- a/LICENSE
+++ b/LICENSE
@@ -232,4 +232,7 @@ WTFPL License.  For details, see 
3party-licenses/require-handlebars-plugin-LICEN
 
 This product bundles json2.js (https://github.com/douglascrockford/JSON-js -
 Public Domain license) by Douglas Crockford
+
+This product bundles jQuery-ui.js, which is available under
+MIT License. For details, see 3party-licenses/jQuery-ui-LICENSE
 =======================================================================
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/7bb2709d/dashboardv2/public/index.html
----------------------------------------------------------------------
diff --git a/dashboardv2/public/index.html b/dashboardv2/public/index.html
index c43ca9a..a8f191a 100644
--- a/dashboardv2/public/index.html
+++ b/dashboardv2/public/index.html
@@ -41,6 +41,7 @@
     <link rel="stylesheet" href="js/libs/bootstrap/css/bootstrap.min.css">
     <link rel="stylesheet" 
href="js/libs/jquery-asBreadcrumbs/css/asBreadcrumbs.css">
     <link 
href='https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400italic,600,600italic,700,700italic'
 rel='stylesheet' type='text/css'>
+    <link rel="stylesheet" type="text/css" 
href="js/external_lib/jquery-ui/jquery-ui.min.css">
     <link href="css/bootstrap-sidebar.css" rel="stylesheet">
     <link href="js/libs/font-awesome/css/font-awesome.min.css" 
rel="stylesheet">
     <link href="css/style.css" rel="stylesheet">

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/7bb2709d/dashboardv2/public/js/external_lib/jquery-ui/jquery-ui.min.css
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/external_lib/jquery-ui/jquery-ui.min.css 
b/dashboardv2/public/js/external_lib/jquery-ui/jquery-ui.min.css
new file mode 100644
index 0000000..76845f2
--- /dev/null
+++ b/dashboardv2/public/js/external_lib/jquery-ui/jquery-ui.min.css
@@ -0,0 +1,7 @@
+/*! jQuery UI - v1.12.0 - 2016-08-25
+* http://jqueryui.com
+* Includes: core.css, resizable.css, theme.css
+* To view and modify this theme, visit 
http://jqueryui.com/themeroller/?scope=&folderName=base&cornerRadiusShadow=8px&offsetLeftShadow=0px&offsetTopShadow=0px&thicknessShadow=5px&opacityShadow=30&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=666666&opacityOverlay=30&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=aaaaaa&iconColorError=cc0000&fcError=5f3f3f&borderColorError=f1a899&bgTextureError=flat&bgColorError=fddfdf&iconColorHighlight=777620&fcHighlight=777620&borderColorHighlight=dad55e&bgTextureHighlight=flat&bgColorHighlight=fffa90&iconColorActive=ffffff&fcActive=ffffff&borderColorActive=003eff&bgTextureActive=flat&bgColorActive=007fff&iconColorHover=555555&fcHover=2b2b2b&borderColorHover=cccccc&bgTextureHover=flat&bgColorHover=ededed&iconColorDefault=777777&fcDefault=454545&borderColorDefault=c5c5c5&bgTextureDefault=flat&bgColorDefault=f6f6f6&iconColorContent=444444&fcContent=333333&borderColorContent=dddddd&bgTextureContent=flat&bgColorContent=ffffff&ico
 
nColorHeader=444444&fcHeader=333333&borderColorHeader=dddddd&bgTextureHeader=flat&bgColorHeader=e9e9e9&cornerRadius=3px&fwDefault=normal&fsDefault=1em&ffDefault=Arial%2CHelvetica%2Csans-serif
+* Copyright jQuery Foundation and other contributors; Licensed MIT */
+
+.ui-helper-hidden{display:none}.ui-helper-hidden-accessible{border:0;clip:rect(0
 0 0 
0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.ui-helper-reset{margin:0;padding:0;border:0;outline:0;line-height:1.3;text-decoration:none;font-size:100%;list-style:none}.ui-helper-clearfix:before,.ui-helper-clearfix:after{content:"";display:table;border-collapse:collapse}.ui-helper-clearfix:after{clear:both}.ui-helper-zfix{width:100%;height:100%;top:0;left:0;position:absolute;opacity:0;filter:Alpha(Opacity=0)}.ui-front{z-index:100}.ui-state-disabled{cursor:default!important;pointer-events:none}.ui-icon{display:inline-block;vertical-align:middle;margin-top:-.25em;position:relative;text-indent:-99999px;overflow:hidden;background-repeat:no-repeat}.ui-widget-icon-block{left:50%;margin-left:-8px;display:block}.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}.ui-resizable{position:relative}.ui-resizable-handle{position:absolute;font-size:0.1px;display
 :block;-ms-touch-action:none;touch-action:none}.ui-resizable-disabled 
.ui-resizable-handle,.ui-resizable-autohide 
.ui-resizable-handle{display:none}.ui-resizable-n{cursor:n-resize;height:7px;width:100%;top:-5px;left:0}.ui-resizable-s{cursor:s-resize;height:7px;width:100%;bottom:-5px;left:0}.ui-resizable-e{cursor:e-resize;width:7px;right:-5px;top:0;height:100%}.ui-resizable-w{cursor:w-resize;width:7px;left:-5px;top:0;height:100%}.ui-resizable-se{cursor:se-resize;width:12px;height:12px;right:1px;bottom:1px}.ui-resizable-sw{cursor:sw-resize;width:9px;height:9px;left:-5px;bottom:-5px}.ui-resizable-nw{cursor:nw-resize;width:9px;height:9px;left:-5px;top:-5px}.ui-resizable-ne{cursor:ne-resize;width:9px;height:9px;right:-5px;top:-5px}.ui-widget{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget
 .ui-widget{font-size:1em}.ui-widget input,.ui-widget select,.ui-widget 
textarea,.ui-widget 
button{font-family:Arial,Helvetica,sans-serif;font-size:1em}.ui-widget.ui-widget-content{border
 :1px solid #c5c5c5}.ui-widget-content{border:1px solid 
#ddd;background:#fff;color:#333}.ui-widget-content 
a{color:#333}.ui-widget-header{border:1px solid 
#ddd;background:#e9e9e9;color:#333;font-weight:bold}.ui-widget-header 
a{color:#333}.ui-state-default,.ui-widget-content 
.ui-state-default,.ui-widget-header .ui-state-default,.ui-button,html 
.ui-button.ui-state-disabled:hover,html 
.ui-button.ui-state-disabled:active{border:1px solid 
#c5c5c5;background:#f6f6f6;font-weight:normal;color:#454545}.ui-state-default 
a,.ui-state-default a:link,.ui-state-default 
a:visited,a.ui-button,a:link.ui-button,a:visited.ui-button,.ui-button{color:#454545;text-decoration:none}.ui-state-hover,.ui-widget-content
 .ui-state-hover,.ui-widget-header 
.ui-state-hover,.ui-state-focus,.ui-widget-content 
.ui-state-focus,.ui-widget-header 
.ui-state-focus,.ui-button:hover,.ui-button:focus{border:1px solid 
#ccc;background:#ededed;font-weight:normal;color:#2b2b2b}.ui-state-hover 
a,.ui-state-hover a:hover,.ui-state-ho
 ver a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus 
a:hover,.ui-state-focus a:link,.ui-state-focus 
a:visited,a.ui-button:hover,a.ui-button:focus{color:#2b2b2b;text-decoration:none}.ui-visual-focus{box-shadow:0
 0 3px 1px rgb(94,158,214)}.ui-state-active,.ui-widget-content 
.ui-state-active,.ui-widget-header 
.ui-state-active,a.ui-button:active,.ui-button:active,.ui-button.ui-state-active:hover{border:1px
 solid 
#003eff;background:#007fff;font-weight:normal;color:#fff}.ui-icon-background,.ui-state-active
 .ui-icon-background{border:#003eff;background-color:#fff}.ui-state-active 
a,.ui-state-active a:link,.ui-state-active 
a:visited{color:#fff;text-decoration:none}.ui-state-highlight,.ui-widget-content
 .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:1px solid 
#dad55e;background:#fffa90;color:#777620}.ui-state-checked{border:1px solid 
#dad55e;background:#fffa90}.ui-state-highlight a,.ui-widget-content 
.ui-state-highlight a,.ui-widget-header .ui-state-highli
 ght a{color:#777620}.ui-state-error,.ui-widget-content 
.ui-state-error,.ui-widget-header .ui-state-error{border:1px solid 
#f1a899;background:#fddfdf;color:#5f3f3f}.ui-state-error a,.ui-widget-content 
.ui-state-error a,.ui-widget-header .ui-state-error 
a{color:#5f3f3f}.ui-state-error-text,.ui-widget-content 
.ui-state-error-text,.ui-widget-header 
.ui-state-error-text{color:#5f3f3f}.ui-priority-primary,.ui-widget-content 
.ui-priority-primary,.ui-widget-header 
.ui-priority-primary{font-weight:bold}.ui-priority-secondary,.ui-widget-content 
.ui-priority-secondary,.ui-widget-header 
.ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:normal}.ui-state-disabled,.ui-widget-content
 .ui-state-disabled,.ui-widget-header 
.ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}.ui-state-disabled
 
.ui-icon{filter:Alpha(Opacity=35)}.ui-icon{width:16px;height:16px}.ui-icon,.ui-widget-content
 .ui-icon{background-image:url("images/ui-icons_444444_256x240.png")}.ui
 -widget-header 
.ui-icon{background-image:url("images/ui-icons_444444_256x240.png")}.ui-button 
.ui-icon{background-image:url("images/ui-icons_777777_256x240.png")}.ui-state-hover
 .ui-icon,.ui-state-focus .ui-icon,.ui-button:hover .ui-icon,.ui-button:focus 
.ui-icon,.ui-state-default 
.ui-icon{background-image:url("images/ui-icons_555555_256x240.png")}.ui-state-active
 .ui-icon,.ui-button:active 
.ui-icon{background-image:url("images/ui-icons_ffffff_256x240.png")}.ui-state-highlight
 .ui-icon,.ui-button 
.ui-state-highlight.ui-icon{background-image:url("images/ui-icons_777620_256x240.png")}.ui-state-error
 .ui-icon,.ui-state-error-text 
.ui-icon{background-image:url("images/ui-icons_cc0000_256x240.png")}.ui-icon-blank{background-position:16px
 16px}.ui-icon-caret-1-n{background-position:0 
0}.ui-icon-caret-1-ne{background-position:-16px 
0}.ui-icon-caret-1-e{background-position:-32px 
0}.ui-icon-caret-1-se{background-position:-48px 
0}.ui-icon-caret-1-s{background-position:-65px 0}.ui-icon-caret-1
 -sw{background-position:-80px 0}.ui-icon-caret-1-w{background-position:-96px 
0}.ui-icon-caret-1-nw{background-position:-112px 
0}.ui-icon-caret-2-n-s{background-position:-128px 
0}.ui-icon-caret-2-e-w{background-position:-144px 
0}.ui-icon-triangle-1-n{background-position:0 
-16px}.ui-icon-triangle-1-ne{background-position:-16px 
-16px}.ui-icon-triangle-1-e{background-position:-32px 
-16px}.ui-icon-triangle-1-se{background-position:-48px 
-16px}.ui-icon-triangle-1-s{background-position:-65px 
-16px}.ui-icon-triangle-1-sw{background-position:-80px 
-16px}.ui-icon-triangle-1-w{background-position:-96px 
-16px}.ui-icon-triangle-1-nw{background-position:-112px 
-16px}.ui-icon-triangle-2-n-s{background-position:-128px 
-16px}.ui-icon-triangle-2-e-w{background-position:-144px 
-16px}.ui-icon-arrow-1-n{background-position:0 
-32px}.ui-icon-arrow-1-ne{background-position:-16px 
-32px}.ui-icon-arrow-1-e{background-position:-32px 
-32px}.ui-icon-arrow-1-se{background-position:-48px -32px}.ui-icon-arrow-1-s{b
 ackground-position:-65px -32px}.ui-icon-arrow-1-sw{background-position:-80px 
-32px}.ui-icon-arrow-1-w{background-position:-96px 
-32px}.ui-icon-arrow-1-nw{background-position:-112px 
-32px}.ui-icon-arrow-2-n-s{background-position:-128px 
-32px}.ui-icon-arrow-2-ne-sw{background-position:-144px 
-32px}.ui-icon-arrow-2-e-w{background-position:-160px 
-32px}.ui-icon-arrow-2-se-nw{background-position:-176px 
-32px}.ui-icon-arrowstop-1-n{background-position:-192px 
-32px}.ui-icon-arrowstop-1-e{background-position:-208px 
-32px}.ui-icon-arrowstop-1-s{background-position:-224px 
-32px}.ui-icon-arrowstop-1-w{background-position:-240px 
-32px}.ui-icon-arrowthick-1-n{background-position:1px 
-48px}.ui-icon-arrowthick-1-ne{background-position:-16px 
-48px}.ui-icon-arrowthick-1-e{background-position:-32px 
-48px}.ui-icon-arrowthick-1-se{background-position:-48px 
-48px}.ui-icon-arrowthick-1-s{background-position:-64px 
-48px}.ui-icon-arrowthick-1-sw{background-position:-80px 
-48px}.ui-icon-arrowthick-1-w{backg
 round-position:-96px -48px}.ui-icon-arrowthick-1-nw{background-position:-112px 
-48px}.ui-icon-arrowthick-2-n-s{background-position:-128px 
-48px}.ui-icon-arrowthick-2-ne-sw{background-position:-144px 
-48px}.ui-icon-arrowthick-2-e-w{background-position:-160px 
-48px}.ui-icon-arrowthick-2-se-nw{background-position:-176px 
-48px}.ui-icon-arrowthickstop-1-n{background-position:-192px 
-48px}.ui-icon-arrowthickstop-1-e{background-position:-208px 
-48px}.ui-icon-arrowthickstop-1-s{background-position:-224px 
-48px}.ui-icon-arrowthickstop-1-w{background-position:-240px 
-48px}.ui-icon-arrowreturnthick-1-w{background-position:0 
-64px}.ui-icon-arrowreturnthick-1-n{background-position:-16px 
-64px}.ui-icon-arrowreturnthick-1-e{background-position:-32px 
-64px}.ui-icon-arrowreturnthick-1-s{background-position:-48px 
-64px}.ui-icon-arrowreturn-1-w{background-position:-64px 
-64px}.ui-icon-arrowreturn-1-n{background-position:-80px 
-64px}.ui-icon-arrowreturn-1-e{background-position:-96px -64px}.ui-icon-arro
 wreturn-1-s{background-position:-112px 
-64px}.ui-icon-arrowrefresh-1-w{background-position:-128px 
-64px}.ui-icon-arrowrefresh-1-n{background-position:-144px 
-64px}.ui-icon-arrowrefresh-1-e{background-position:-160px 
-64px}.ui-icon-arrowrefresh-1-s{background-position:-176px 
-64px}.ui-icon-arrow-4{background-position:0 
-80px}.ui-icon-arrow-4-diag{background-position:-16px 
-80px}.ui-icon-extlink{background-position:-32px 
-80px}.ui-icon-newwin{background-position:-48px 
-80px}.ui-icon-refresh{background-position:-64px 
-80px}.ui-icon-shuffle{background-position:-80px 
-80px}.ui-icon-transfer-e-w{background-position:-96px 
-80px}.ui-icon-transferthick-e-w{background-position:-112px 
-80px}.ui-icon-folder-collapsed{background-position:0 
-96px}.ui-icon-folder-open{background-position:-16px 
-96px}.ui-icon-document{background-position:-32px 
-96px}.ui-icon-document-b{background-position:-48px 
-96px}.ui-icon-note{background-position:-64px 
-96px}.ui-icon-mail-closed{background-position:-80px -96px}
 .ui-icon-mail-open{background-position:-96px 
-96px}.ui-icon-suitcase{background-position:-112px 
-96px}.ui-icon-comment{background-position:-128px 
-96px}.ui-icon-person{background-position:-144px 
-96px}.ui-icon-print{background-position:-160px 
-96px}.ui-icon-trash{background-position:-176px 
-96px}.ui-icon-locked{background-position:-192px 
-96px}.ui-icon-unlocked{background-position:-208px 
-96px}.ui-icon-bookmark{background-position:-224px 
-96px}.ui-icon-tag{background-position:-240px 
-96px}.ui-icon-home{background-position:0 
-112px}.ui-icon-flag{background-position:-16px 
-112px}.ui-icon-calendar{background-position:-32px 
-112px}.ui-icon-cart{background-position:-48px 
-112px}.ui-icon-pencil{background-position:-64px 
-112px}.ui-icon-clock{background-position:-80px 
-112px}.ui-icon-disk{background-position:-96px 
-112px}.ui-icon-calculator{background-position:-112px 
-112px}.ui-icon-zoomin{background-position:-128px 
-112px}.ui-icon-zoomout{background-position:-144px -112px}.ui-icon-search{
 background-position:-160px -112px}.ui-icon-wrench{background-position:-176px 
-112px}.ui-icon-gear{background-position:-192px 
-112px}.ui-icon-heart{background-position:-208px 
-112px}.ui-icon-star{background-position:-224px 
-112px}.ui-icon-link{background-position:-240px 
-112px}.ui-icon-cancel{background-position:0 
-128px}.ui-icon-plus{background-position:-16px 
-128px}.ui-icon-plusthick{background-position:-32px 
-128px}.ui-icon-minus{background-position:-48px 
-128px}.ui-icon-minusthick{background-position:-64px 
-128px}.ui-icon-close{background-position:-80px 
-128px}.ui-icon-closethick{background-position:-96px 
-128px}.ui-icon-key{background-position:-112px 
-128px}.ui-icon-lightbulb{background-position:-128px 
-128px}.ui-icon-scissors{background-position:-144px 
-128px}.ui-icon-clipboard{background-position:-160px 
-128px}.ui-icon-copy{background-position:-176px 
-128px}.ui-icon-contact{background-position:-192px 
-128px}.ui-icon-image{background-position:-208px -128px}.ui-icon-video{backgr
 ound-position:-224px -128px}.ui-icon-script{background-position:-240px 
-128px}.ui-icon-alert{background-position:0 
-144px}.ui-icon-info{background-position:-16px 
-144px}.ui-icon-notice{background-position:-32px 
-144px}.ui-icon-help{background-position:-48px 
-144px}.ui-icon-check{background-position:-64px 
-144px}.ui-icon-bullet{background-position:-80px 
-144px}.ui-icon-radio-on{background-position:-96px 
-144px}.ui-icon-radio-off{background-position:-112px 
-144px}.ui-icon-pin-w{background-position:-128px 
-144px}.ui-icon-pin-s{background-position:-144px 
-144px}.ui-icon-play{background-position:0 
-160px}.ui-icon-pause{background-position:-16px 
-160px}.ui-icon-seek-next{background-position:-32px 
-160px}.ui-icon-seek-prev{background-position:-48px 
-160px}.ui-icon-seek-end{background-position:-64px 
-160px}.ui-icon-seek-start{background-position:-80px 
-160px}.ui-icon-seek-first{background-position:-80px 
-160px}.ui-icon-stop{background-position:-96px 
-160px}.ui-icon-eject{background-position
 :-112px -160px}.ui-icon-volume-off{background-position:-128px 
-160px}.ui-icon-volume-on{background-position:-144px 
-160px}.ui-icon-power{background-position:0 
-176px}.ui-icon-signal-diag{background-position:-16px 
-176px}.ui-icon-signal{background-position:-32px 
-176px}.ui-icon-battery-0{background-position:-48px 
-176px}.ui-icon-battery-1{background-position:-64px 
-176px}.ui-icon-battery-2{background-position:-80px 
-176px}.ui-icon-battery-3{background-position:-96px 
-176px}.ui-icon-circle-plus{background-position:0 
-192px}.ui-icon-circle-minus{background-position:-16px 
-192px}.ui-icon-circle-close{background-position:-32px 
-192px}.ui-icon-circle-triangle-e{background-position:-48px 
-192px}.ui-icon-circle-triangle-s{background-position:-64px 
-192px}.ui-icon-circle-triangle-w{background-position:-80px 
-192px}.ui-icon-circle-triangle-n{background-position:-96px 
-192px}.ui-icon-circle-arrow-e{background-position:-112px 
-192px}.ui-icon-circle-arrow-s{background-position:-128px -192px}.ui-
 icon-circle-arrow-w{background-position:-144px 
-192px}.ui-icon-circle-arrow-n{background-position:-160px 
-192px}.ui-icon-circle-zoomin{background-position:-176px 
-192px}.ui-icon-circle-zoomout{background-position:-192px 
-192px}.ui-icon-circle-check{background-position:-208px 
-192px}.ui-icon-circlesmall-plus{background-position:0 
-208px}.ui-icon-circlesmall-minus{background-position:-16px 
-208px}.ui-icon-circlesmall-close{background-position:-32px 
-208px}.ui-icon-squaresmall-plus{background-position:-48px 
-208px}.ui-icon-squaresmall-minus{background-position:-64px 
-208px}.ui-icon-squaresmall-close{background-position:-80px 
-208px}.ui-icon-grip-dotted-vertical{background-position:0 
-224px}.ui-icon-grip-dotted-horizontal{background-position:-16px 
-224px}.ui-icon-grip-solid-vertical{background-position:-32px 
-224px}.ui-icon-grip-solid-horizontal{background-position:-48px 
-224px}.ui-icon-gripsmall-diagonal-se{background-position:-64px 
-224px}.ui-icon-grip-diagonal-se{background-position:
 -80px 
-224px}.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:3px}.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:3px}.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:3px}.ui-widget-overlay{background:#aaa;opacity:.3;filter:Alpha(Opacity=30)}.ui-widget-shadow{-webkit-box-shadow:0
 0 5px #666;box-shadow:0 0 5px #666}
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/7bb2709d/dashboardv2/public/js/external_lib/jquery-ui/jquery-ui.min.js
----------------------------------------------------------------------
diff --git a/dashboardv2/public/js/external_lib/jquery-ui/jquery-ui.min.js 
b/dashboardv2/public/js/external_lib/jquery-ui/jquery-ui.min.js
new file mode 100644
index 0000000..8951532
--- /dev/null
+++ b/dashboardv2/public/js/external_lib/jquery-ui/jquery-ui.min.js
@@ -0,0 +1,6 @@
+/*! jQuery UI - v1.12.0 - 2016-08-25
+* http://jqueryui.com
+* Includes: widget.js, disable-selection.js, widgets/resizable.js, 
widgets/mouse.js
+* Copyright jQuery Foundation and other contributors; Licensed MIT */
+
+(function(t){"function"==typeof 
define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){t.ui=t.ui||{},t.ui.version="1.12.0";var
 e=0,i=Array.prototype.slice;t.cleanData=function(e){return function(i){var 
s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var
 n,o,a,r={},l=e.split(".")[0];e=e.split(".")[1];var h=l+"-"+e;return 
s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){return
 this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new 
o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new
 i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return 
t.isFunction(s)?(r[e]=function(){function t(){return 
i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].ap
 ply(this,t)}return function(){var e,i=this._super,o=this._superApply;return 
this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void
 0):(r[e]=s,void 
0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:h}),n?(t.each(n._childConstructors,function(e,i){var
 s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete 
n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var
 s,n,o=i.call(arguments,1),a=0,r=o.length;r>a;a++)for(s in 
o[a])n=o[a][s],o[a].hasOwnProperty(s)&&void 
0!==n&&(e[s]=t.isPlainObject(n)?t.isPlainObject(e[s])?t.widget.extend({},e[s],n):t.widget.extend({},n):n);return
 e},t.widget.bridge=function(e,s){var 
n=s.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof 
o,r=i.call(arguments,1),l=this;return a?this.each(function(){var 
i,s=t.data(this,n);return"instance
 
"===o?(l=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,r),i!==s&&void
 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0):t.error("no such 
method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on 
"+e+" prior to initialization; "+"attempted to call method 
'"+o+"'")}):(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var
 e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new 
s(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&
 
&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var
 
e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return
 this.element},option:function(e,i){var 
s,n,o,a=e;if(0===arguments.length)return 
t.widget.extend({},this.options);if("string"==typeof 
e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t
 
.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return
 void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 
0===this.options[e]?null:this.options[e];a[e]=i}return 
this._setOptions(a),this},_setOptions:function(t){var e;for(e in 
t)this._setOption(e,t[e]);return 
this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var
 i,s,n;for(i in 
e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return
 this._setOptions({disab
 led:!1})},disable:function(){return 
this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var 
a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var
 s=[],n=this;return 
e=t.extend({element:this.element,classes:this.options.classes||{}},e),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join("
 ")},_removeClass:function(t,e,i){return 
this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return 
this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof 
s?s:i;var n="string"==typeof 
t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return 
o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var 
n,o=this;"boolean"!=typeof 
e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=thi
 s.widget()),t.each(s,function(s,a){function r(){return 
e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof
 a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof 
a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var 
l=s.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?n.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split("
 ").join(this.eventNamespace+" 
")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function
 i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return 
setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e
 
),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var
 
n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n
 in o)n in i||(i[n]=o[n]);return 
this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof
 n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof 
n?i:n.effect||i:e;n=n||{},"number"==typeof 
n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,t.fn.extend({disableSelection:func
 tion(){var t="onselectstart"in 
document.createElement("div")?"selectstart":"mousedown";return 
function(){return 
this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return
 this.off(".ui-disableSelection")}}),t.ui.ie=!!/msie 
[\w.]+/.exec(navigator.userAgent.toLowerCase());var 
s=!1;t(document).on("mouseup",function(){s=!1}),t.widget("ui.mouse",{version:"1.12.0",options:{cancel:"input,
 textarea, button, select, 
option",distance:1,delay:0},_mouseInit:function(){var 
e=this;this.element.on("mousedown."+this.widgetName,function(t){return 
e._mouseDown(t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void
 
0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this
 
.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!s){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var
 i=this,n=1===e.which,o="string"==typeof 
this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return
 
n&&!o&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return
 i._mouseMove(t)},this._mouseUpDelegate=function(t){return 
i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),s=!0,!0)):!0}}
 
,_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return
 
this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else
 if(!this.ignoreMissingWhich)return 
this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mou
 seDelayTimer),delete 
this._mouseDelayTimer),this.ignoreMissingWhich=!1,s=!1,e.preventDefault()},_mouseDistanceMet:function(t){return
 
Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return
 
this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,s){var
 n,o=t.ui[e].prototype;for(n in 
s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(t,e,i,s){var
 
n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},t.widget("ui.resizable",t.ui.mouse,{version:"1.12.0",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon
 ui-icon-gripsmall-diagonal-se"},cont
 
ainment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return
 
parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var
 s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return 
e[s]>0?!0:(e[s]=1,n=e[s]>0,e[s]=0,n)},_create:function(){var 
e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div
 class='ui-wrapper' style='overflow: 
hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),lef
 
t:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestro
 y();var 
e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return
 
this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;default:}},_setupHandles:function(){var
 
e,i,s,n,o,a=this.options,r=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,s
 
w,ne,nw"),s=this.handles.split(","),this.handles={},i=0;s.length>i;i++)e=t.trim(s[i]),n="ui-resizable-"+e,o=t("<div>"),this._addClass(o,"ui-resizable-handle
 
"+n),o.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=function(e){var
 i,s,n,o;e=e||this.element;for(i in 
this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this.
 
_handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=o&&o[1]?o[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var
 i,s,n=!1;for(i in 
this.handles)s=t(this.handles[i])[0],(s===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var
 i,s,n,o=this.options,a=this.element;return 
this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height
 
()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof
 
o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var
 
i,s,n=this.originalMousePosition,o=this.axis,a=e.pageX-n.left||0,r=e.pageY-n.top||0,l=this._change[o];return
 
this._updatePrevProperties(),l?(i=l.apply(this,[e,a,r]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proporti
 
onallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(e){this.resizing=!1;var
 i,s,n,o,a,r,l,h=this.options,c=this;return 
this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=s?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-n},r=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,l=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,h.animate||this.element.css(t.extend(a,{top:l,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!h.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(
 
){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var
 t={};return 
this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var
 
e,i,s,n,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,s=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),s>o.minHeight&&(o.minHeight=s),o.maxWidth>i&&(o.maxWidt
 
h=i),o.maxHeight>n&&(o.maxHeight=n)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var
 e=this.position,i=this.size,s=this.axis;return 
this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var
 
e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalS
 
ize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return
 
o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&h&&(t.left=r-e.minWidth),s&&h&&(t.left=r-e.maxWidth),a&&c&&(t.top=l-e.minHeight),n&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var
 
e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var
 
t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDi
 
mensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var
 
e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div
 
style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var
 
i=this.originalSize,s=this.originalPosition;return{left:s.left+e,width:i.width-e}},n:function(t,e,i){var
 
s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:functio
 n(e,i,s){return 
t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return
 
t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return
 
t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return
 
t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var
 
i=t(this).resizable("instance"),s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=o?0:i.
 
sizeDiff.width,l={width:i.size.width-r,height:i.size.height-a},h=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&h?{top:c,left:h}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var
 
s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&t(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var
 
e,i,s,n,o,a,r,l=t(this).resizable("instance"),h=l.options,c=l.element,u=h.containment,d=u
 instanceof 
t?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(l.containerElement=t(d),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(documen
 
t),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){i[t]=l._num(e.css("padding"+s))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=l.containerOffset,n=l.containerSize.height,o=l.containerSize.width,a=l._hasScroll(d,"left")?d.scrollWidth:o,r=l._hasScroll(d)?d.scrollHeight:n,l.parentData={element:d,left:s.left,top:s.top,width:a,height:r}))},resize:function(e){var
 
i,s,n,o,a=t(this).resizable("instance"),r=a.options,l=a.containerOffset,h=a.position,c=a._aspectRatio||e.shiftKey,u={top:0,left:0},d=a.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=l),h.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=r.helper?l.left:0),h.
 
top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?l.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-u.left:a.offset.left-l.left)),s=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-u.top:a.offset.top-l.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),s+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-s,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.widt
 h,a.size.height=a.prevSize.height)},stop:function(){var 
e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.containerPosition,o=e.containerElement,a=t(e.helper),r=a.offset(),l=a.outerWidth()-e.sizeDiff.width,h=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:l,height:h}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:l,height:h})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var
 
e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var 
e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var
 
s=t(this).resizable("instance"),n=s.options,o=s.originalSize,a=s.originalPosition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-
 a.top||0,left:s.position.left-a.left||0};t(n.alsoResize).each(function(){var 
e=t(this),s=t(this).data("ui-resizable-alsoresize"),n={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var
 
i=(s[e]||0)+(r[e]||0);i&&i>=0&&(n[e]=i||null)}),e.css(n)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var
 
e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),t.uiBackCompat!==!1&&"string"==typeof
 
e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var
 
e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var
 e=t(this).resizable("instance");e.ghost&&e.helper&
 
&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var
 
e,i=t(this).resizable("instance"),s=i.options,n=i.size,o=i.originalSize,a=i.originalPosition,r=i.axis,l="number"==typeof
 
s.grid?[s.grid,s.grid]:s.grid,h=l[0]||1,c=l[1]||1,u=Math.round((n.width-o.width)/h)*h,d=Math.round((n.height-o.height)/c)*c,p=o.width+u,f=o.height+d,g=s.maxWidth&&p>s.maxWidth,m=s.maxHeight&&f>s.maxHeight,_=s.minWidth&&s.minWidth>p,v=s.minHeight&&s.minHeight>f;s.grid=l,_&&(p+=h),v&&(f+=c),g&&(p-=h),m&&(f-=c),/^(se|s|e)$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.top=a.top-d):/^(sw)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.left=a.left-u):((0>=f-c||0>=p-h)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-d):(f=c-e.height,i.size.height=f,i.position.top=a.top+o.height-f),p-h>0?(i.size.width=p,i.position.left=a.left-u):(p=h-e.width,i.size.width=p,i.positio
 n.left=a.left+o.width-p))}}),t.ui.resizable});
\ No newline at end of file

Reply via email to