diff --git a/src/main/webapp/resources/js/fims/framework/cmm/componentization.js b/src/main/webapp/resources/js/fims/framework/cmm/componentization.js index 0cd4a978..89a3d8e2 100644 --- a/src/main/webapp/resources/js/fims/framework/cmm/componentization.js +++ b/src/main/webapp/resources/js/fims/framework/cmm/componentization.js @@ -279,4 +279,45 @@ function fnMakeSingleImageViewer(imgEl, fileInputEl, dataAttributeForFilePath, d } }); +} + +/************************************************************************** +* 드래그 가능한 다이얼로그 +**************************************************************************/ +function fnMakeDraggableDialog(dialogEl) { + + var currentPosX = 0, currentPosY = 0, previousPosX = 0, previousPosY = 0; + + $(dialogEl).find(".modal-header")[0].onmousedown = fnDragMouseDown; + + function fnDragMouseDown(e) { + + e.preventDefault(); + + previousPosX = e.clientX; + previousPosY = e.clientY; + + document.onmouseup = fnCloseDragElement; + + document.onmousemove = fnElementDrag; + } + + function fnElementDrag(e) { + + e.preventDefault(); + + currentPosX = previousPosX - e.clientX; + currentPosY = previousPosY - e.clientY; + + previousPosX = e.clientX; + previousPosY = e.clientY; + + dialogEl.style.top = (dialogEl.offsetTop - currentPosY) + 'px'; + dialogEl.style.left = (dialogEl.offsetLeft - currentPosX) + 'px'; + } + + function fnCloseDragElement() { + document.onmouseup = null; + document.onmousemove = null; + } } \ No newline at end of file diff --git a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_444444_256x240.png b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_444444_256x240.png index 977e8444..89ad69c7 100644 Binary files a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_444444_256x240.png and b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_444444_256x240.png differ diff --git a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_555555_256x240.png b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_555555_256x240.png index 78d154b5..6c80715b 100644 Binary files a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_555555_256x240.png and b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_555555_256x240.png differ diff --git a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_777620_256x240.png b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_777620_256x240.png index 4bd06588..29c5c572 100644 Binary files a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_777620_256x240.png and b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_777620_256x240.png differ diff --git a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_777777_256x240.png b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_777777_256x240.png index 51089574..19e4ebfb 100644 Binary files a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_777777_256x240.png and b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_777777_256x240.png differ diff --git a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_cc0000_256x240.png b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_cc0000_256x240.png index 2a9a96f6..6015578f 100644 Binary files a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_cc0000_256x240.png and b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_cc0000_256x240.png differ diff --git a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_ffffff_256x240.png b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_ffffff_256x240.png index c691af06..53234a2a 100644 Binary files a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_ffffff_256x240.png and b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/images/ui-icons_ffffff_256x240.png differ diff --git a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.css b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.css index fcf82712..9f1c2f23 100644 --- a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.css +++ b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.css @@ -1,13 +1,9 @@ -/*! jQuery UI - v1.13.2 - 2024-01-26 +/*! jQuery UI - v1.13.2 - 2024-02-07 * http://jqueryui.com -* Includes: draggable.css, core.css, resizable.css, theme.css +* 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&iconColorHeader=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-draggable-handle { - -ms-touch-action: none; - touch-action: none; -} /* Layout helpers ----------------------------------*/ .ui-helper-hidden { diff --git a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.js b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.js index 99cb8fea..903ada87 100644 --- a/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.js +++ b/src/main/webapp/resources/lib/fims/framework/jquery-ui/1.13.2/jquery-ui.js @@ -1,6 +1,6 @@ -/*! jQuery UI - v1.13.2 - 2024-01-26 +/*! jQuery UI - v1.13.2 - 2024-02-07 * http://jqueryui.com -* Includes: widget.js, data.js, disable-selection.js, scroll-parent.js, widgets/draggable.js, widgets/resizable.js, widgets/mouse.js +* Includes: widget.js, disable-selection.js, widgets/resizable.js, widgets/mouse.js * Copyright jQuery Foundation and other contributors; Licensed MIT */ ( function( factory ) { @@ -765,35 +765,6 @@ $.each( { show: "fadeIn", hide: "fadeOut" }, function( method, defaultEffect ) { var widget = $.widget; -/*! - * jQuery UI :data 1.13.2 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ - -//>>label: :data Selector -//>>group: Core -//>>description: Selects elements which have data stored under the specified key. -//>>docs: http://api.jqueryui.com/data-selector/ - - -var data = $.extend( $.expr.pseudos, { - data: $.expr.createPseudo ? - $.expr.createPseudo( function( dataName ) { - return function( elem ) { - return !!$.data( elem, dataName ); - }; - } ) : - - // Support: jQuery <1.8 - function( elem, i, match ) { - return !!$.data( elem, match[ 3 ] ); - } -} ); - /*! * jQuery UI Disable Selection 1.13.2 * http://jqueryui.com @@ -829,40 +800,6 @@ var disableSelection = $.fn.extend( { } ); -/*! - * jQuery UI Scroll Parent 1.13.2 - * http://jqueryui.com - * - * Copyright jQuery Foundation and other contributors - * Released under the MIT license. - * http://jquery.org/license - */ - -//>>label: scrollParent -//>>group: Core -//>>description: Get the closest ancestor element that is scrollable. -//>>docs: http://api.jqueryui.com/scrollParent/ - - -var scrollParent = $.fn.scrollParent = function( includeHidden ) { - var position = this.css( "position" ), - excludeStaticParent = position === "absolute", - overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/, - scrollParent = this.parents().filter( function() { - var parent = $( this ); - if ( excludeStaticParent && parent.css( "position" ) === "static" ) { - return false; - } - return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) + - parent.css( "overflow-x" ) ); - } ).eq( 0 ); - - return position === "fixed" || !scrollParent.length ? - $( this[ 0 ].ownerDocument || document ) : - scrollParent; -}; - - // This file is deprecated var ie = $.ui.ie = !!/msie [\w.]+/.exec( navigator.userAgent.toLowerCase() ); @@ -1118,1282 +1055,6 @@ var plugin = $.ui.plugin = { }; - -var safeActiveElement = $.ui.safeActiveElement = function( document ) { - var activeElement; - - // Support: IE 9 only - // IE9 throws an "Unspecified error" accessing document.activeElement from an