From e02cfb1940c721efa29d7766763e5d5beaf46189 Mon Sep 17 00:00:00 2001 From: Lizi Date: Thu, 18 Jan 2018 09:24:19 +0000 Subject: Remove the redundancy packages Change-Id: I1c04ad98a1fc0351b69c125c7afc8b6ee8ad64af Issue-ID: AAI-591 Signed-off-by: Lizi --- .../daterangepicker-bs3.css | 319 - .../bootstrap-daterangepicker/daterangepicker.js | 1257 - .../thirdparty/bootstrap-daterangepicker/moment.js | 2808 - .../bootstrap-daterangepicker/moment.min.js | 6 - .../src/main/webapp/thirdparty/css/magic-check.css | 246 +- .../webapp/thirdparty/data-tables/DT_bootstrap.css | 240 - .../webapp/thirdparty/data-tables/DT_bootstrap.js | 363 - .../webapp/thirdparty/data-tables/DataTableICT.js | 1459 - .../thirdparty/data-tables/DataTableSmartClient.js | 1215 - .../data-tables/DataTableSmartClientApp.js | 1312 - .../data-tables/app-test-i18n-datatable-zh-CN.json | 51 - .../app-universal-i18n-datatable-en-US.json | 89 - .../app-universal-i18n-datatable-zh-CN.json | 90 - .../webapp/thirdparty/data-tables/dataTable.html | 155 - .../data-tables/dataTables.bootstrap.css | 331 - .../data-tables/images/loading-spinner-grey.gif | Bin 5203 -> 0 bytes .../thirdparty/data-tables/images/sort_asc.png | Bin 1118 -> 0 bytes .../thirdparty/data-tables/images/sort_both.png | Bin 1136 -> 0 bytes .../thirdparty/data-tables/images/sort_desc.png | Bin 1127 -> 0 bytes .../data-tables/jquery.dataTables-1.9.4.js | 12101 ---- .../data-tables/jquery.dataTables-1.9.4.min.js | 155 - .../thirdparty/data-tables/jquery.dataTables.js | 15268 ------ .../data-tables/jquery.dataTables.min.css | 1 - .../data-tables/jquery.dataTables.min.js | 166 - .../thirdparty/data-tables/style-datatable.css | 154 - .../main/webapp/thirdparty/echarts/echarts-all.js | 50 - .../src/main/webapp/thirdparty/echarts/echarts.js | 54502 ------------------- .../webapp/thirdparty/fonts/BebasNeue-webfont.eot | Bin 10031 -> 0 bytes .../webapp/thirdparty/fonts/BebasNeue-webfont.svg | 146 - .../webapp/thirdparty/fonts/BebasNeue-webfont.ttf | Bin 21736 -> 0 bytes .../webapp/thirdparty/fonts/BebasNeue-webfont.woff | Bin 11632 -> 0 bytes .../thirdparty/fonts/fontawesome-webfont.eot | Bin 56006 -> 0 bytes .../thirdparty/fonts/fontawesome-webfont.svg | 520 - .../thirdparty/fonts/fontawesome-webfont.ttf | Bin 112160 -> 0 bytes .../thirdparty/fonts/fontawesome-webfont.woff | Bin 65452 -> 0 bytes .../webapp/thirdparty/fonts/fontomas-webfont.eot | Bin 3336 -> 0 bytes .../webapp/thirdparty/fonts/fontomas-webfont.svg | 31 - .../webapp/thirdparty/fonts/fontomas-webfont.ttf | Bin 3128 -> 0 bytes .../webapp/thirdparty/fonts/fontomas-webfont.woff | Bin 2280 -> 0 bytes .../thirdparty/fonts/franchise-bold-webfont.eot | Bin 29144 -> 0 bytes .../thirdparty/fonts/franchise-bold-webfont.svg | 175 - .../thirdparty/fonts/franchise-bold-webfont.ttf | Bin 28788 -> 0 bytes .../thirdparty/fonts/franchise-bold-webfont.woff | Bin 14972 -> 0 bytes .../fonts/glyphicons-halflings-regular.eot | Bin 20127 -> 0 bytes .../fonts/glyphicons-halflings-regular.svg | 288 - .../fonts/glyphicons-halflings-regular.ttf | Bin 45404 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff | Bin 23424 -> 0 bytes .../fonts/glyphicons-halflings-regular.woff2 | Bin 18028 -> 0 bytes .../src/main/webapp/thirdparty/icheck/bower.json | 42 - .../webapp/thirdparty/icheck/demo/css/Thumbs.db | Bin 5120 -> 0 bytes .../webapp/thirdparty/icheck/demo/css/banner.jpg | Bin 32768 -> 0 bytes .../webapp/thirdparty/icheck/demo/css/custom.css | 261 - .../webapp/thirdparty/icheck/demo/css/custom.styl | 1191 - .../webapp/thirdparty/icheck/demo/css/icheck.png | Bin 2382 -> 0 bytes .../thirdparty/icheck/demo/css/ie/arrow-bottom.png | Bin 184 -> 0 bytes .../thirdparty/icheck/demo/css/ie/arrow-top.png | Bin 175 -> 0 bytes .../thirdparty/icheck/demo/css/ie/header-line.png | Bin 611 -> 0 bytes .../thirdparty/icheck/demo/css/ie/icon-fork.png | Bin 213 -> 0 bytes .../thirdparty/icheck/demo/css/ie/icon-github.png | Bin 634 -> 0 bytes .../thirdparty/icheck/demo/css/ie/icon-lab.png | Bin 683 -> 0 bytes .../thirdparty/icheck/demo/css/ie/icon-options.png | Bin 666 -> 0 bytes .../thirdparty/icheck/demo/css/ie/icon-star.png | Bin 348 -> 0 bytes .../thirdparty/icheck/demo/css/montserrat-bold.eot | Bin 13099 -> 0 bytes .../thirdparty/icheck/demo/css/montserrat-bold.svg | 1490 - .../thirdparty/icheck/demo/css/montserrat-bold.ttf | Bin 32768 -> 0 bytes .../icheck/demo/css/montserrat-bold.woff | Bin 15736 -> 0 bytes .../icheck/demo/css/montserrat-regular.eot | Bin 13114 -> 0 bytes .../icheck/demo/css/montserrat-regular.svg | 1365 - .../icheck/demo/css/montserrat-regular.ttf | Bin 32768 -> 0 bytes .../icheck/demo/css/montserrat-regular.woff | Bin 15692 -> 0 bytes .../thirdparty/icheck/demo/css/normalize.css | 527 - .../main/webapp/thirdparty/icheck/demo/index.html | 1544 - .../webapp/thirdparty/icheck/demo/js/custom.js | 109 - .../webapp/thirdparty/icheck/demo/js/custom.min.js | 5 - .../webapp/thirdparty/icheck/demo/js/jquery.js | 4 - .../main/webapp/thirdparty/icheck/demo/js/zepto.js | 41 - .../webapp/thirdparty/icheck/icheck.jquery.json | 48 - common/src/main/webapp/thirdparty/icheck/icheck.js | 509 - .../main/webapp/thirdparty/icheck/icheck.min.js | 11 - .../main/webapp/thirdparty/icheck/skins/all.css | 61 - .../webapp/thirdparty/icheck/skins/flat/_all.css | 530 - .../webapp/thirdparty/icheck/skins/flat/aero.css | 53 - .../webapp/thirdparty/icheck/skins/flat/aero.png | Bin 1520 -> 0 bytes .../thirdparty/icheck/skins/flat/aero@2x.png | Bin 3218 -> 0 bytes .../webapp/thirdparty/icheck/skins/flat/blue.css | 53 - .../webapp/thirdparty/icheck/skins/flat/blue.png | Bin 1518 -> 0 bytes .../thirdparty/icheck/skins/flat/blue@2x.png | Bin 3217 -> 0 bytes .../webapp/thirdparty/icheck/skins/flat/flat.css | 53 - .../webapp/thirdparty/icheck/skins/flat/flat.png | Bin 1515 -> 0 bytes .../thirdparty/icheck/skins/flat/flat@2x.png | Bin 3217 -> 0 bytes .../webapp/thirdparty/icheck/skins/flat/green.css | 53 - .../webapp/thirdparty/icheck/skins/flat/green.png | Bin 1444 -> 0 bytes .../thirdparty/icheck/skins/flat/green@2x.png | Bin 3117 -> 0 bytes .../webapp/thirdparty/icheck/skins/flat/grey.css | 53 - .../webapp/thirdparty/icheck/skins/flat/grey.png | Bin 1516 -> 0 bytes .../thirdparty/icheck/skins/flat/grey@2x.png | Bin 3217 -> 0 bytes .../webapp/thirdparty/icheck/skins/flat/orange.css | 53 - .../webapp/thirdparty/icheck/skins/flat/orange.png | Bin 1518 -> 0 bytes .../thirdparty/icheck/skins/flat/orange@2x.png | Bin 3275 -> 0 bytes .../webapp/thirdparty/icheck/skins/flat/pink.css | 53 - .../webapp/thirdparty/icheck/skins/flat/pink.png | Bin 1522 -> 0 bytes .../thirdparty/icheck/skins/flat/pink@2x.png | Bin 3218 -> 0 bytes .../webapp/thirdparty/icheck/skins/flat/purple.css | 53 - .../webapp/thirdparty/icheck/skins/flat/purple.png | Bin 1519 -> 0 bytes .../thirdparty/icheck/skins/flat/purple@2x.png | Bin 3218 -> 0 bytes .../webapp/thirdparty/icheck/skins/flat/red.css | 53 - .../webapp/thirdparty/icheck/skins/flat/red.png | Bin 1516 -> 0 bytes .../webapp/thirdparty/icheck/skins/flat/red@2x.png | Bin 3276 -> 0 bytes .../webapp/thirdparty/icheck/skins/flat/yellow.css | 53 - .../webapp/thirdparty/icheck/skins/flat/yellow.png | Bin 1516 -> 0 bytes .../thirdparty/icheck/skins/flat/yellow@2x.png | Bin 3216 -> 0 bytes .../thirdparty/icheck/skins/futurico/futurico.css | 53 - .../thirdparty/icheck/skins/futurico/futurico.png | Bin 1734 -> 0 bytes .../icheck/skins/futurico/futurico@2x.png | Bin 3446 -> 0 bytes .../webapp/thirdparty/icheck/skins/line/Thumbs.db | Bin 4608 -> 0 bytes .../webapp/thirdparty/icheck/skins/line/_all.css | 710 - .../webapp/thirdparty/icheck/skins/line/aero.css | 71 - .../webapp/thirdparty/icheck/skins/line/blue.css | 71 - .../webapp/thirdparty/icheck/skins/line/green.css | 71 - .../webapp/thirdparty/icheck/skins/line/grey.css | 71 - .../webapp/thirdparty/icheck/skins/line/line.css | 71 - .../webapp/thirdparty/icheck/skins/line/line.png | Bin 588 -> 0 bytes .../thirdparty/icheck/skins/line/line@2x.png | Bin 1073 -> 0 bytes .../webapp/thirdparty/icheck/skins/line/orange.css | 71 - .../webapp/thirdparty/icheck/skins/line/pink.css | 71 - .../webapp/thirdparty/icheck/skins/line/purple.css | 71 - .../webapp/thirdparty/icheck/skins/line/red.css | 71 - .../webapp/thirdparty/icheck/skins/line/yellow.css | 71 - .../thirdparty/icheck/skins/minimal/_all.css | 590 - .../thirdparty/icheck/skins/minimal/aero.css | 59 - .../thirdparty/icheck/skins/minimal/aero.png | Bin 1151 -> 0 bytes .../thirdparty/icheck/skins/minimal/aero@2x.png | Bin 1409 -> 0 bytes .../thirdparty/icheck/skins/minimal/blue.css | 59 - .../thirdparty/icheck/skins/minimal/blue.png | Bin 1132 -> 0 bytes .../thirdparty/icheck/skins/minimal/blue@2x.png | Bin 1410 -> 0 bytes .../thirdparty/icheck/skins/minimal/green.css | 59 - .../thirdparty/icheck/skins/minimal/green.png | Bin 1143 -> 0 bytes .../thirdparty/icheck/skins/minimal/green@2x.png | Bin 1408 -> 0 bytes .../thirdparty/icheck/skins/minimal/grey.css | 59 - .../thirdparty/icheck/skins/minimal/grey.png | Bin 1142 -> 0 bytes .../thirdparty/icheck/skins/minimal/grey@2x.png | Bin 1407 -> 0 bytes .../thirdparty/icheck/skins/minimal/minimal.css | 59 - .../thirdparty/icheck/skins/minimal/minimal.png | Bin 1114 -> 0 bytes .../thirdparty/icheck/skins/minimal/minimal@2x.png | Bin 1410 -> 0 bytes .../thirdparty/icheck/skins/minimal/orange.css | 59 - .../thirdparty/icheck/skins/minimal/orange.png | Bin 1139 -> 0 bytes .../thirdparty/icheck/skins/minimal/orange@2x.png | Bin 1407 -> 0 bytes .../thirdparty/icheck/skins/minimal/pink.css | 59 - .../thirdparty/icheck/skins/minimal/pink.png | Bin 1150 -> 0 bytes .../thirdparty/icheck/skins/minimal/pink@2x.png | Bin 1409 -> 0 bytes .../thirdparty/icheck/skins/minimal/purple.css | 59 - .../thirdparty/icheck/skins/minimal/purple.png | Bin 1132 -> 0 bytes .../thirdparty/icheck/skins/minimal/purple@2x.png | Bin 1409 -> 0 bytes .../webapp/thirdparty/icheck/skins/minimal/red.css | 59 - .../webapp/thirdparty/icheck/skins/minimal/red.png | Bin 1130 -> 0 bytes .../thirdparty/icheck/skins/minimal/red@2x.png | Bin 1410 -> 0 bytes .../thirdparty/icheck/skins/minimal/yellow.css | 59 - .../thirdparty/icheck/skins/minimal/yellow.png | Bin 1135 -> 0 bytes .../thirdparty/icheck/skins/minimal/yellow@2x.png | Bin 1406 -> 0 bytes .../thirdparty/icheck/skins/polaris/polaris.css | 59 - .../thirdparty/icheck/skins/polaris/polaris.png | Bin 6401 -> 0 bytes .../thirdparty/icheck/skins/polaris/polaris@2x.png | Bin 32768 -> 0 bytes .../thirdparty/icheck/skins/square/Thumbs.db | Bin 32768 -> 0 bytes .../webapp/thirdparty/icheck/skins/square/_all.css | 590 - .../webapp/thirdparty/icheck/skins/square/aero.css | 59 - .../webapp/thirdparty/icheck/skins/square/aero.png | Bin 4436 -> 0 bytes .../thirdparty/icheck/skins/square/aero@2x.png | Bin 4455 -> 0 bytes .../webapp/thirdparty/icheck/skins/square/blue.css | 59 - .../webapp/thirdparty/icheck/skins/square/blue.png | Bin 2185 -> 0 bytes .../thirdparty/icheck/skins/square/blue@2x.png | Bin 4485 -> 0 bytes .../thirdparty/icheck/skins/square/green.css | 59 - .../thirdparty/icheck/skins/square/green.png | Bin 2193 -> 0 bytes .../thirdparty/icheck/skins/square/green@2x.png | Bin 4498 -> 0 bytes .../webapp/thirdparty/icheck/skins/square/grey.css | 59 - .../webapp/thirdparty/icheck/skins/square/grey.png | Bin 2186 -> 0 bytes .../thirdparty/icheck/skins/square/grey@2x.png | Bin 4483 -> 0 bytes .../thirdparty/icheck/skins/square/orange.css | 59 - .../thirdparty/icheck/skins/square/orange.png | Bin 2181 -> 0 bytes .../thirdparty/icheck/skins/square/orange@2x.png | Bin 4474 -> 0 bytes .../webapp/thirdparty/icheck/skins/square/pink.css | 59 - .../webapp/thirdparty/icheck/skins/square/pink.png | Bin 2189 -> 0 bytes .../thirdparty/icheck/skins/square/pink@2x.png | Bin 4479 -> 0 bytes .../thirdparty/icheck/skins/square/purple.css | 59 - .../thirdparty/icheck/skins/square/purple.png | Bin 2188 -> 0 bytes .../thirdparty/icheck/skins/square/purple@2x.png | Bin 4501 -> 0 bytes .../webapp/thirdparty/icheck/skins/square/red.css | 59 - .../webapp/thirdparty/icheck/skins/square/red.png | Bin 2190 -> 0 bytes .../thirdparty/icheck/skins/square/red@2x.png | Bin 4490 -> 0 bytes .../thirdparty/icheck/skins/square/square.css | 59 - .../thirdparty/icheck/skins/square/square.png | Bin 2175 -> 0 bytes .../thirdparty/icheck/skins/square/square@2x.png | Bin 4478 -> 0 bytes .../thirdparty/icheck/skins/square/yellow.css | 59 - .../thirdparty/icheck/skins/square/yellow.png | Bin 2131 -> 0 bytes .../thirdparty/icheck/skins/square/yellow@2x.png | Bin 4385 -> 0 bytes .../jQuery-File-Upload/css/jquery.fileupload.css | 37 - .../thirdparty/jQuery-File-Upload/img/loading.gif | Bin 3897 -> 0 bytes .../jQuery-File-Upload/img/progressbar.gif | Bin 3323 -> 0 bytes .../jQuery-File-Upload/js/jquery.fileupload.js | 1477 - .../js/jquery.iframe-transport.js | 217 - .../js/vendor/jquery.ui.widget.js | 572 - .../thirdparty/jquery-cokie/jquery.cokie.min.js | 9 - .../main/webapp/thirdparty/zTree/api/API_cn.html | 103 - .../main/webapp/thirdparty/zTree/api/API_en.html | 102 - .../main/webapp/thirdparty/zTree/api/apiCss/api.js | 592 - .../webapp/thirdparty/zTree/api/apiCss/common.css | 219 - .../thirdparty/zTree/api/apiCss/common_ie6.css | 23 - .../thirdparty/zTree/api/apiCss/img/apiMenu.gif | Bin 1736 -> 0 bytes .../thirdparty/zTree/api/apiCss/img/apiMenu.png | Bin 3954 -> 0 bytes .../thirdparty/zTree/api/apiCss/img/background.jpg | Bin 36520 -> 0 bytes .../thirdparty/zTree/api/apiCss/img/chinese.png | Bin 1556 -> 0 bytes .../thirdparty/zTree/api/apiCss/img/close.png | Bin 1908 -> 0 bytes .../thirdparty/zTree/api/apiCss/img/contact-bg.png | Bin 177 -> 0 bytes .../thirdparty/zTree/api/apiCss/img/english.png | Bin 1356 -> 0 bytes .../thirdparty/zTree/api/apiCss/img/header-bg.png | Bin 148 -> 0 bytes .../thirdparty/zTree/api/apiCss/img/lightbulb.png | Bin 27355 -> 0 bytes .../zTree/api/apiCss/img/overlay_arrow.gif | Bin 625 -> 0 bytes .../zTree/api/apiCss/img/overlay_arrow.png | Bin 830 -> 0 bytes .../thirdparty/zTree/api/apiCss/img/overlay_bg.png | Bin 109 -> 0 bytes .../zTree/api/apiCss/img/overlay_close_IE6.gif | Bin 441 -> 0 bytes .../zTree/api/apiCss/img/zTreeStandard.gif | Bin 6851 -> 0 bytes .../zTree/api/apiCss/img/zTreeStandard.png | Bin 12573 -> 0 bytes .../zTree/api/apiCss/jquery-1.6.2.min.js | 18 - .../zTree/api/apiCss/jquery.ztree.core-3.5.js | 69 - .../zTree/api/apiCss/zTreeStyleForApi.css | 49 - .../thirdparty/zTree/api/cn/fn.zTree._z.html | 13 - .../thirdparty/zTree/api/cn/fn.zTree.destroy.html | 28 - .../zTree/api/cn/fn.zTree.getZTreeObj.html | 24 - .../thirdparty/zTree/api/cn/fn.zTree.init.html | 74 - .../zTree/api/cn/setting.async.autoParam.html | 39 - .../zTree/api/cn/setting.async.contentType.html | 29 - .../zTree/api/cn/setting.async.dataFilter.html | 45 - .../zTree/api/cn/setting.async.dataType.html | 29 - .../zTree/api/cn/setting.async.enable.html | 30 - .../zTree/api/cn/setting.async.otherParam.html | 40 - .../zTree/api/cn/setting.async.type.html | 30 - .../thirdparty/zTree/api/cn/setting.async.url.html | 50 - .../zTree/api/cn/setting.callback.beforeAsync.html | 35 - .../zTree/api/cn/setting.callback.beforeCheck.html | 34 - .../zTree/api/cn/setting.callback.beforeClick.html | 49 - .../api/cn/setting.callback.beforeCollapse.html | 34 - .../api/cn/setting.callback.beforeDblClick.html | 36 - .../zTree/api/cn/setting.callback.beforeDrag.html | 39 - .../api/cn/setting.callback.beforeDragOpen.html | 37 - .../zTree/api/cn/setting.callback.beforeDrop.html | 48 - .../api/cn/setting.callback.beforeEditName.html | 38 - .../api/cn/setting.callback.beforeExpand.html | 34 - .../api/cn/setting.callback.beforeMouseDown.html | 35 - .../api/cn/setting.callback.beforeMouseUp.html | 35 - .../api/cn/setting.callback.beforeRemove.html | 37 - .../api/cn/setting.callback.beforeRename.html | 46 - .../api/cn/setting.callback.beforeRightClick.html | 35 - .../api/cn/setting.callback.onAsyncError.html | 42 - .../api/cn/setting.callback.onAsyncSuccess.html | 38 - .../zTree/api/cn/setting.callback.onCheck.html | 34 - .../zTree/api/cn/setting.callback.onClick.html | 49 - .../zTree/api/cn/setting.callback.onCollapse.html | 34 - .../zTree/api/cn/setting.callback.onDblClick.html | 35 - .../zTree/api/cn/setting.callback.onDrag.html | 34 - .../zTree/api/cn/setting.callback.onDragMove.html | 34 - .../zTree/api/cn/setting.callback.onDrop.html | 46 - .../zTree/api/cn/setting.callback.onExpand.html | 34 - .../zTree/api/cn/setting.callback.onMouseDown.html | 35 - .../zTree/api/cn/setting.callback.onMouseUp.html | 35 - .../api/cn/setting.callback.onNodeCreated.html | 35 - .../zTree/api/cn/setting.callback.onRemove.html | 34 - .../zTree/api/cn/setting.callback.onRename.html | 40 - .../api/cn/setting.callback.onRightClick.html | 36 - .../api/cn/setting.check.autoCheckTrigger.html | 28 - .../api/cn/setting.check.chkDisabledInherit.html | 28 - .../zTree/api/cn/setting.check.chkStyle.html | 48 - .../zTree/api/cn/setting.check.chkboxType.html | 31 - .../zTree/api/cn/setting.check.enable.html | 25 - .../zTree/api/cn/setting.check.nocheckInherit.html | 28 - .../zTree/api/cn/setting.check.radioType.html | 29 - .../zTree/api/cn/setting.data.keep.leaf.html | 28 - .../zTree/api/cn/setting.data.keep.parent.html | 28 - .../zTree/api/cn/setting.data.key.checked.html | 24 - .../zTree/api/cn/setting.data.key.children.html | 23 - .../zTree/api/cn/setting.data.key.name.html | 23 - .../zTree/api/cn/setting.data.key.title.html | 24 - .../zTree/api/cn/setting.data.key.url.html | 24 - .../api/cn/setting.data.simpleData.enable.html | 38 - .../api/cn/setting.data.simpleData.idKey.html | 32 - .../api/cn/setting.data.simpleData.pIdKey.html | 32 - .../api/cn/setting.data.simpleData.rootPId.html | 32 - .../cn/setting.edit.drag.autoExpandTrigger.html | 28 - .../api/cn/setting.edit.drag.autoOpenTime.html | 25 - .../zTree/api/cn/setting.edit.drag.borderMax.html | 25 - .../zTree/api/cn/setting.edit.drag.borderMin.html | 25 - .../zTree/api/cn/setting.edit.drag.inner.html | 59 - .../zTree/api/cn/setting.edit.drag.isCopy.html | 32 - .../zTree/api/cn/setting.edit.drag.isMove.html | 32 - .../api/cn/setting.edit.drag.maxShowNodeNum.html | 25 - .../api/cn/setting.edit.drag.minMoveSize.html | 25 - .../zTree/api/cn/setting.edit.drag.next.html | 58 - .../zTree/api/cn/setting.edit.drag.prev.html | 58 - .../api/cn/setting.edit.editNameSelectAll.html | 27 - .../zTree/api/cn/setting.edit.enable.html | 38 - .../zTree/api/cn/setting.edit.removeTitle.html | 48 - .../zTree/api/cn/setting.edit.renameTitle.html | 48 - .../zTree/api/cn/setting.edit.showRemoveBtn.html | 49 - .../zTree/api/cn/setting.edit.showRenameBtn.html | 51 - .../thirdparty/zTree/api/cn/setting.treeId.html | 14 - .../thirdparty/zTree/api/cn/setting.treeObj.html | 14 - .../zTree/api/cn/setting.view.addDiyDom.html | 40 - .../zTree/api/cn/setting.view.addHoverDom.html | 45 - .../api/cn/setting.view.autoCancelSelected.html | 26 - .../zTree/api/cn/setting.view.dblClickExpand.html | 44 - .../zTree/api/cn/setting.view.expandSpeed.html | 31 - .../zTree/api/cn/setting.view.fontCss.html | 42 - .../zTree/api/cn/setting.view.nameIsHTML.html | 27 - .../zTree/api/cn/setting.view.removeHoverDom.html | 45 - .../zTree/api/cn/setting.view.selectedMulti.html | 27 - .../zTree/api/cn/setting.view.showIcon.html | 44 - .../zTree/api/cn/setting.view.showLine.html | 25 - .../zTree/api/cn/setting.view.showTitle.html | 46 - .../api/cn/setting.view.txtSelectedEnable.html | 25 - .../zTree/api/cn/treeNode.check_Child_State.html | 43 - .../zTree/api/cn/treeNode.check_Focus.html | 19 - .../thirdparty/zTree/api/cn/treeNode.checked.html | 32 - .../zTree/api/cn/treeNode.checkedOld.html | 25 - .../thirdparty/zTree/api/cn/treeNode.children.html | 35 - .../zTree/api/cn/treeNode.chkDisabled.html | 28 - .../thirdparty/zTree/api/cn/treeNode.click.html | 24 - .../thirdparty/zTree/api/cn/treeNode.diy.html | 15 - .../zTree/api/cn/treeNode.editNameFlag.html | 19 - .../zTree/api/cn/treeNode.getCheckStatus.html | 63 - .../zTree/api/cn/treeNode.getNextNode.html | 27 - .../zTree/api/cn/treeNode.getParentNode.html | 27 - .../zTree/api/cn/treeNode.getPreNode.html | 27 - .../zTree/api/cn/treeNode.halfCheck.html | 29 - .../thirdparty/zTree/api/cn/treeNode.icon.html | 33 - .../zTree/api/cn/treeNode.iconClose.html | 33 - .../thirdparty/zTree/api/cn/treeNode.iconOpen.html | 33 - .../thirdparty/zTree/api/cn/treeNode.iconSkin.html | 43 - .../zTree/api/cn/treeNode.isAjaxing.html | 26 - .../zTree/api/cn/treeNode.isFirstNode.html | 28 - .../thirdparty/zTree/api/cn/treeNode.isHidden.html | 27 - .../thirdparty/zTree/api/cn/treeNode.isHover.html | 19 - .../zTree/api/cn/treeNode.isLastNode.html | 28 - .../thirdparty/zTree/api/cn/treeNode.isParent.html | 28 - .../thirdparty/zTree/api/cn/treeNode.level.html | 25 - .../thirdparty/zTree/api/cn/treeNode.name.html | 25 - .../thirdparty/zTree/api/cn/treeNode.nocheck.html | 26 - .../thirdparty/zTree/api/cn/treeNode.open.html | 30 - .../zTree/api/cn/treeNode.parentTId.html | 27 - .../thirdparty/zTree/api/cn/treeNode.tId.html | 25 - .../thirdparty/zTree/api/cn/treeNode.target.html | 24 - .../thirdparty/zTree/api/cn/treeNode.url.html | 25 - .../thirdparty/zTree/api/cn/treeNode.zAsync.html | 28 - .../thirdparty/zTree/api/cn/zTreeObj.addNodes.html | 42 - .../zTree/api/cn/zTreeObj.cancelEditName.html | 30 - .../zTree/api/cn/zTreeObj.cancelSelectedNode.html | 35 - .../zTree/api/cn/zTreeObj.checkAllNodes.html | 29 - .../zTree/api/cn/zTreeObj.checkNode.html | 44 - .../thirdparty/zTree/api/cn/zTreeObj.copyNode.html | 44 - .../thirdparty/zTree/api/cn/zTreeObj.destroy.html | 25 - .../thirdparty/zTree/api/cn/zTreeObj.editName.html | 29 - .../zTree/api/cn/zTreeObj.expandAll.html | 30 - .../zTree/api/cn/zTreeObj.expandNode.html | 50 - .../api/cn/zTreeObj.getChangeCheckedNodes.html | 24 - .../zTree/api/cn/zTreeObj.getCheckedNodes.html | 28 - .../zTree/api/cn/zTreeObj.getNodeByParam.html | 32 - .../zTree/api/cn/zTreeObj.getNodeByTId.html | 27 - .../zTree/api/cn/zTreeObj.getNodeIndex.html | 30 - .../thirdparty/zTree/api/cn/zTreeObj.getNodes.html | 26 - .../zTree/api/cn/zTreeObj.getNodesByFilter.html | 43 - .../zTree/api/cn/zTreeObj.getNodesByParam.html | 31 - .../api/cn/zTreeObj.getNodesByParamFuzzy.html | 32 - .../zTree/api/cn/zTreeObj.getSelectedNodes.html | 23 - .../thirdparty/zTree/api/cn/zTreeObj.hideNode.html | 29 - .../zTree/api/cn/zTreeObj.hideNodes.html | 29 - .../thirdparty/zTree/api/cn/zTreeObj.moveNode.html | 46 - .../zTree/api/cn/zTreeObj.reAsyncChildNodes.html | 42 - .../thirdparty/zTree/api/cn/zTreeObj.refresh.html | 24 - .../zTree/api/cn/zTreeObj.removeChildNodes.html | 32 - .../zTree/api/cn/zTreeObj.removeNode.html | 34 - .../zTree/api/cn/zTreeObj.selectNode.html | 34 - .../zTree/api/cn/zTreeObj.setChkDisabled.html | 44 - .../zTree/api/cn/zTreeObj.setEditable.html | 27 - .../thirdparty/zTree/api/cn/zTreeObj.setting.html | 13 - .../thirdparty/zTree/api/cn/zTreeObj.showNode.html | 31 - .../zTree/api/cn/zTreeObj.showNodes.html | 29 - .../zTree/api/cn/zTreeObj.transformToArray.html | 25 - .../api/cn/zTreeObj.transformTozTreeNodes.html | 43 - .../zTree/api/cn/zTreeObj.updateNode.html | 37 - .../thirdparty/zTree/api/en/fn.zTree._z.html | 13 - .../thirdparty/zTree/api/en/fn.zTree.destroy.html | 28 - .../zTree/api/en/fn.zTree.getZTreeObj.html | 25 - .../thirdparty/zTree/api/en/fn.zTree.init.html | 75 - .../zTree/api/en/setting.async.autoParam.html | 39 - .../zTree/api/en/setting.async.contentType.html | 29 - .../zTree/api/en/setting.async.dataFilter.html | 45 - .../zTree/api/en/setting.async.dataType.html | 29 - .../zTree/api/en/setting.async.enable.html | 30 - .../zTree/api/en/setting.async.otherParam.html | 40 - .../zTree/api/en/setting.async.type.html | 30 - .../thirdparty/zTree/api/en/setting.async.url.html | 50 - .../zTree/api/en/setting.callback.beforeAsync.html | 35 - .../zTree/api/en/setting.callback.beforeCheck.html | 34 - .../zTree/api/en/setting.callback.beforeClick.html | 49 - .../api/en/setting.callback.beforeCollapse.html | 34 - .../api/en/setting.callback.beforeDblClick.html | 36 - .../zTree/api/en/setting.callback.beforeDrag.html | 39 - .../api/en/setting.callback.beforeDragOpen.html | 37 - .../zTree/api/en/setting.callback.beforeDrop.html | 50 - .../api/en/setting.callback.beforeEditName.html | 38 - .../api/en/setting.callback.beforeExpand.html | 34 - .../api/en/setting.callback.beforeMouseDown.html | 35 - .../api/en/setting.callback.beforeMouseUp.html | 35 - .../api/en/setting.callback.beforeRemove.html | 37 - .../api/en/setting.callback.beforeRename.html | 46 - .../api/en/setting.callback.beforeRightClick.html | 35 - .../api/en/setting.callback.onAsyncError.html | 42 - .../api/en/setting.callback.onAsyncSuccess.html | 38 - .../zTree/api/en/setting.callback.onCheck.html | 34 - .../zTree/api/en/setting.callback.onClick.html | 49 - .../zTree/api/en/setting.callback.onCollapse.html | 34 - .../zTree/api/en/setting.callback.onDblClick.html | 35 - .../zTree/api/en/setting.callback.onDrag.html | 34 - .../zTree/api/en/setting.callback.onDragMove.html | 34 - .../zTree/api/en/setting.callback.onDrop.html | 48 - .../zTree/api/en/setting.callback.onExpand.html | 34 - .../zTree/api/en/setting.callback.onMouseDown.html | 35 - .../zTree/api/en/setting.callback.onMouseUp.html | 35 - .../api/en/setting.callback.onNodeCreated.html | 35 - .../zTree/api/en/setting.callback.onRemove.html | 34 - .../zTree/api/en/setting.callback.onRename.html | 40 - .../api/en/setting.callback.onRightClick.html | 36 - .../api/en/setting.check.autoCheckTrigger.html | 29 - .../api/en/setting.check.chkDisabledInherit.html | 28 - .../zTree/api/en/setting.check.chkStyle.html | 48 - .../zTree/api/en/setting.check.chkboxType.html | 31 - .../zTree/api/en/setting.check.enable.html | 26 - .../zTree/api/en/setting.check.nocheckInherit.html | 28 - .../zTree/api/en/setting.check.radioType.html | 29 - .../zTree/api/en/setting.data.keep.leaf.html | 28 - .../zTree/api/en/setting.data.keep.parent.html | 28 - .../zTree/api/en/setting.data.key.checked.html | 24 - .../zTree/api/en/setting.data.key.children.html | 23 - .../zTree/api/en/setting.data.key.name.html | 23 - .../zTree/api/en/setting.data.key.title.html | 24 - .../zTree/api/en/setting.data.key.url.html | 24 - .../api/en/setting.data.simpleData.enable.html | 39 - .../api/en/setting.data.simpleData.idKey.html | 32 - .../api/en/setting.data.simpleData.pIdKey.html | 32 - .../api/en/setting.data.simpleData.rootPId.html | 32 - .../en/setting.edit.drag.autoExpandTrigger.html | 29 - .../api/en/setting.edit.drag.autoOpenTime.html | 25 - .../zTree/api/en/setting.edit.drag.borderMax.html | 25 - .../zTree/api/en/setting.edit.drag.borderMin.html | 25 - .../zTree/api/en/setting.edit.drag.inner.html | 60 - .../zTree/api/en/setting.edit.drag.isCopy.html | 32 - .../zTree/api/en/setting.edit.drag.isMove.html | 32 - .../api/en/setting.edit.drag.maxShowNodeNum.html | 25 - .../api/en/setting.edit.drag.minMoveSize.html | 25 - .../zTree/api/en/setting.edit.drag.next.html | 59 - .../zTree/api/en/setting.edit.drag.prev.html | 59 - .../api/en/setting.edit.editNameSelectAll.html | 27 - .../zTree/api/en/setting.edit.enable.html | 39 - .../zTree/api/en/setting.edit.removeTitle.html | 48 - .../zTree/api/en/setting.edit.renameTitle.html | 48 - .../zTree/api/en/setting.edit.showRemoveBtn.html | 50 - .../zTree/api/en/setting.edit.showRenameBtn.html | 52 - .../thirdparty/zTree/api/en/setting.treeId.html | 14 - .../thirdparty/zTree/api/en/setting.treeObj.html | 14 - .../zTree/api/en/setting.view.addDiyDom.html | 40 - .../zTree/api/en/setting.view.addHoverDom.html | 45 - .../api/en/setting.view.autoCancelSelected.html | 27 - .../zTree/api/en/setting.view.dblClickExpand.html | 45 - .../zTree/api/en/setting.view.expandSpeed.html | 31 - .../zTree/api/en/setting.view.fontCss.html | 42 - .../zTree/api/en/setting.view.nameIsHTML.html | 28 - .../zTree/api/en/setting.view.removeHoverDom.html | 45 - .../zTree/api/en/setting.view.selectedMulti.html | 28 - .../zTree/api/en/setting.view.showIcon.html | 45 - .../zTree/api/en/setting.view.showLine.html | 26 - .../zTree/api/en/setting.view.showTitle.html | 47 - .../api/en/setting.view.txtSelectedEnable.html | 26 - .../zTree/api/en/treeNode.check_Child_State.html | 43 - .../zTree/api/en/treeNode.check_Focus.html | 19 - .../thirdparty/zTree/api/en/treeNode.checked.html | 32 - .../zTree/api/en/treeNode.checkedOld.html | 25 - .../thirdparty/zTree/api/en/treeNode.children.html | 35 - .../zTree/api/en/treeNode.chkDisabled.html | 28 - .../thirdparty/zTree/api/en/treeNode.click.html | 24 - .../thirdparty/zTree/api/en/treeNode.diy.html | 15 - .../zTree/api/en/treeNode.editNameFlag.html | 19 - .../zTree/api/en/treeNode.getCheckStatus.html | 63 - .../zTree/api/en/treeNode.getNextNode.html | 27 - .../zTree/api/en/treeNode.getParentNode.html | 27 - .../zTree/api/en/treeNode.getPreNode.html | 27 - .../zTree/api/en/treeNode.halfCheck.html | 29 - .../thirdparty/zTree/api/en/treeNode.icon.html | 33 - .../zTree/api/en/treeNode.iconClose.html | 33 - .../thirdparty/zTree/api/en/treeNode.iconOpen.html | 33 - .../thirdparty/zTree/api/en/treeNode.iconSkin.html | 43 - .../zTree/api/en/treeNode.isAjaxing.html | 26 - .../zTree/api/en/treeNode.isFirstNode.html | 28 - .../thirdparty/zTree/api/en/treeNode.isHidden.html | 28 - .../thirdparty/zTree/api/en/treeNode.isHover.html | 19 - .../zTree/api/en/treeNode.isLastNode.html | 28 - .../thirdparty/zTree/api/en/treeNode.isParent.html | 28 - .../thirdparty/zTree/api/en/treeNode.level.html | 25 - .../thirdparty/zTree/api/en/treeNode.name.html | 25 - .../thirdparty/zTree/api/en/treeNode.nocheck.html | 26 - .../thirdparty/zTree/api/en/treeNode.open.html | 30 - .../zTree/api/en/treeNode.parentTId.html | 27 - .../thirdparty/zTree/api/en/treeNode.tId.html | 25 - .../thirdparty/zTree/api/en/treeNode.target.html | 24 - .../thirdparty/zTree/api/en/treeNode.url.html | 25 - .../thirdparty/zTree/api/en/treeNode.zAsync.html | 28 - .../thirdparty/zTree/api/en/zTreeObj.addNodes.html | 42 - .../zTree/api/en/zTreeObj.cancelEditName.html | 30 - .../zTree/api/en/zTreeObj.cancelSelectedNode.html | 35 - .../zTree/api/en/zTreeObj.checkAllNodes.html | 29 - .../zTree/api/en/zTreeObj.checkNode.html | 44 - .../thirdparty/zTree/api/en/zTreeObj.copyNode.html | 47 - .../thirdparty/zTree/api/en/zTreeObj.destroy.html | 25 - .../thirdparty/zTree/api/en/zTreeObj.editName.html | 29 - .../zTree/api/en/zTreeObj.expandAll.html | 30 - .../zTree/api/en/zTreeObj.expandNode.html | 50 - .../api/en/zTreeObj.getChangeCheckedNodes.html | 24 - .../zTree/api/en/zTreeObj.getCheckedNodes.html | 28 - .../zTree/api/en/zTreeObj.getNodeByParam.html | 32 - .../zTree/api/en/zTreeObj.getNodeByTId.html | 27 - .../zTree/api/en/zTreeObj.getNodeIndex.html | 30 - .../thirdparty/zTree/api/en/zTreeObj.getNodes.html | 26 - .../zTree/api/en/zTreeObj.getNodesByFilter.html | 43 - .../zTree/api/en/zTreeObj.getNodesByParam.html | 31 - .../api/en/zTreeObj.getNodesByParamFuzzy.html | 32 - .../zTree/api/en/zTreeObj.getSelectedNodes.html | 23 - .../thirdparty/zTree/api/en/zTreeObj.hideNode.html | 29 - .../zTree/api/en/zTreeObj.hideNodes.html | 29 - .../thirdparty/zTree/api/en/zTreeObj.moveNode.html | 49 - .../zTree/api/en/zTreeObj.reAsyncChildNodes.html | 42 - .../thirdparty/zTree/api/en/zTreeObj.refresh.html | 24 - .../zTree/api/en/zTreeObj.removeChildNodes.html | 32 - .../zTree/api/en/zTreeObj.removeNode.html | 34 - .../zTree/api/en/zTreeObj.selectNode.html | 34 - .../zTree/api/en/zTreeObj.setChkDisabled.html | 44 - .../zTree/api/en/zTreeObj.setEditable.html | 27 - .../thirdparty/zTree/api/en/zTreeObj.setting.html | 14 - .../thirdparty/zTree/api/en/zTreeObj.showNode.html | 31 - .../zTree/api/en/zTreeObj.showNodes.html | 29 - .../zTree/api/en/zTreeObj.transformToArray.html | 27 - .../api/en/zTreeObj.transformTozTreeNodes.html | 44 - .../zTree/api/en/zTreeObj.updateNode.html | 37 - .../src/main/webapp/thirdparty/zTree/css/demo.css | 33 - .../thirdparty/zTree/css/zTreeStyle/ReadMe.txt | 1 - .../thirdparty/zTree/css/zTreeStyle/img/Thumbs.db | Bin 23552 -> 0 bytes .../zTree/css/zTreeStyle/img/diy/1_close.png | Bin 601 -> 0 bytes .../zTree/css/zTreeStyle/img/diy/1_open.png | Bin 580 -> 0 bytes .../thirdparty/zTree/css/zTreeStyle/img/diy/2.png | Bin 570 -> 0 bytes .../thirdparty/zTree/css/zTreeStyle/img/diy/3.png | Bin 762 -> 0 bytes .../thirdparty/zTree/css/zTreeStyle/img/diy/4.png | Bin 399 -> 0 bytes .../thirdparty/zTree/css/zTreeStyle/img/diy/5.png | Bin 710 -> 0 bytes .../thirdparty/zTree/css/zTreeStyle/img/diy/6.png | Bin 432 -> 0 bytes .../thirdparty/zTree/css/zTreeStyle/img/diy/7.png | Bin 534 -> 0 bytes .../thirdparty/zTree/css/zTreeStyle/img/diy/8.png | Bin 529 -> 0 bytes .../thirdparty/zTree/css/zTreeStyle/img/diy/9.png | Bin 467 -> 0 bytes .../zTree/css/zTreeStyle/img/diy/Thumbs.db | Bin 19968 -> 0 bytes .../zTree/css/zTreeStyle/img/line_conn.gif | Bin 45 -> 0 bytes .../zTree/css/zTreeStyle/img/loading.gif | Bin 381 -> 0 bytes .../zTree/css/zTreeStyle/img/zTreeStandard.gif | Bin 5564 -> 0 bytes .../zTree/css/zTreeStyle/img/zTreeStandard.gifbak | Bin 5564 -> 0 bytes .../zTree/css/zTreeStyle/img/zTreeStandard.png | Bin 11206 -> 0 bytes .../zTree/css/zTreeStyle/img/zTreeStandard.pngbak | Bin 11173 -> 0 bytes .../zTree/css/zTreeStyle/img/zTreeStandard.psd | Bin 93494 -> 0 bytes .../thirdparty/zTree/css/zTreeStyle/zTreeStyle.css | 107 - .../webapp/thirdparty/zTree/js/jquery.ztree.all.js | 3506 -- .../thirdparty/zTree/js/jquery.ztree.all.min.js | 160 - .../thirdparty/zTree/js/jquery.ztree.core.js | 1684 - .../thirdparty/zTree/js/jquery.ztree.core.min.js | 69 - .../thirdparty/zTree/js/jquery.ztree.excheck.js | 629 - .../zTree/js/jquery.ztree.excheck.min.js | 34 - .../thirdparty/zTree/js/jquery.ztree.exedit.js | 1191 - .../thirdparty/zTree/js/jquery.ztree.exedit.min.js | 53 - .../thirdparty/zTree/js/jquery.ztree.exhide.js | 363 - .../thirdparty/zTree/js/jquery.ztree.exhide.min.js | 22 - .../webapp/thirdparty/zTree/zTree.v3.jquery.json | 35 - 581 files changed, 123 insertions(+), 127724 deletions(-) delete mode 100644 common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker-bs3.css delete mode 100644 common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker.js delete mode 100644 common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.js delete mode 100644 common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.min.js delete mode 100644 common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.css delete mode 100644 common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.js delete mode 100644 common/src/main/webapp/thirdparty/data-tables/DataTableICT.js delete mode 100644 common/src/main/webapp/thirdparty/data-tables/DataTableSmartClient.js delete mode 100644 common/src/main/webapp/thirdparty/data-tables/DataTableSmartClientApp.js delete mode 100644 common/src/main/webapp/thirdparty/data-tables/app-test-i18n-datatable-zh-CN.json delete mode 100644 common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-en-US.json delete mode 100644 common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-zh-CN.json delete mode 100644 common/src/main/webapp/thirdparty/data-tables/dataTable.html delete mode 100644 common/src/main/webapp/thirdparty/data-tables/dataTables.bootstrap.css delete mode 100644 common/src/main/webapp/thirdparty/data-tables/images/loading-spinner-grey.gif delete mode 100644 common/src/main/webapp/thirdparty/data-tables/images/sort_asc.png delete mode 100644 common/src/main/webapp/thirdparty/data-tables/images/sort_both.png delete mode 100644 common/src/main/webapp/thirdparty/data-tables/images/sort_desc.png delete mode 100644 common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.js delete mode 100644 common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.min.js delete mode 100644 common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.js delete mode 100644 common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.min.css delete mode 100644 common/src/main/webapp/thirdparty/data-tables/jquery.dataTables.min.js delete mode 100644 common/src/main/webapp/thirdparty/data-tables/style-datatable.css delete mode 100644 common/src/main/webapp/thirdparty/echarts/echarts-all.js delete mode 100644 common/src/main/webapp/thirdparty/echarts/echarts.js delete mode 100644 common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.eot delete mode 100644 common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.svg delete mode 100644 common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.ttf delete mode 100644 common/src/main/webapp/thirdparty/fonts/BebasNeue-webfont.woff delete mode 100644 common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.eot delete mode 100644 common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.svg delete mode 100644 common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.ttf delete mode 100644 common/src/main/webapp/thirdparty/fonts/fontawesome-webfont.woff delete mode 100644 common/src/main/webapp/thirdparty/fonts/fontomas-webfont.eot delete mode 100644 common/src/main/webapp/thirdparty/fonts/fontomas-webfont.svg delete mode 100644 common/src/main/webapp/thirdparty/fonts/fontomas-webfont.ttf delete mode 100644 common/src/main/webapp/thirdparty/fonts/fontomas-webfont.woff delete mode 100644 common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.eot delete mode 100644 common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.svg delete mode 100644 common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.ttf delete mode 100644 common/src/main/webapp/thirdparty/fonts/franchise-bold-webfont.woff delete mode 100644 common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.eot delete mode 100644 common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.svg delete mode 100644 common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.ttf delete mode 100644 common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.woff delete mode 100644 common/src/main/webapp/thirdparty/fonts/glyphicons-halflings-regular.woff2 delete mode 100644 common/src/main/webapp/thirdparty/icheck/bower.json delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/Thumbs.db delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/banner.jpg delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/custom.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/custom.styl delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/icheck.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/ie/arrow-bottom.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/ie/arrow-top.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/ie/header-line.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-fork.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-github.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-lab.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-options.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/ie/icon-star.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.eot delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.svg delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.ttf delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-bold.woff delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.eot delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.svg delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.ttf delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/montserrat-regular.woff delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/css/normalize.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/index.html delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/js/custom.js delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/js/custom.min.js delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/js/jquery.js delete mode 100644 common/src/main/webapp/thirdparty/icheck/demo/js/zepto.js delete mode 100644 common/src/main/webapp/thirdparty/icheck/icheck.jquery.json delete mode 100644 common/src/main/webapp/thirdparty/icheck/icheck.js delete mode 100644 common/src/main/webapp/thirdparty/icheck/icheck.min.js delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/all.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/_all.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/aero.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/aero.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/aero@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/blue.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/blue.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/blue@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/flat.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/flat.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/flat@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/green.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/green.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/green@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/grey.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/grey.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/grey@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/orange.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/orange.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/orange@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/pink.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/pink.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/pink@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/purple.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/purple.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/purple@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/red.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/red.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/red@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/yellow.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/yellow.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/flat/yellow@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/futurico/futurico@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/Thumbs.db delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/_all.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/aero.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/blue.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/green.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/grey.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/line.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/line.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/line@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/orange.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/pink.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/purple.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/red.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/line/yellow.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/_all.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/aero.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/aero.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/aero@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/blue.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/blue.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/blue@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/green.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/green.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/green@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/grey.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/grey.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/grey@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/minimal@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/orange.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/orange.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/orange@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/pink.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/pink.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/pink@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/purple.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/purple.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/purple@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/red.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/red.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/red@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/minimal/yellow@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/polaris/polaris@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/Thumbs.db delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/_all.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/aero.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/aero.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/aero@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/blue.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/blue.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/blue@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/green.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/green.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/green@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/grey.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/grey.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/grey@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/orange.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/orange.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/orange@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/pink.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/pink.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/pink@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/purple.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/purple.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/purple@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/red.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/red.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/red@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/square.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/square.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/square@2x.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/yellow.css delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/yellow.png delete mode 100644 common/src/main/webapp/thirdparty/icheck/skins/square/yellow@2x.png delete mode 100644 common/src/main/webapp/thirdparty/jQuery-File-Upload/css/jquery.fileupload.css delete mode 100644 common/src/main/webapp/thirdparty/jQuery-File-Upload/img/loading.gif delete mode 100644 common/src/main/webapp/thirdparty/jQuery-File-Upload/img/progressbar.gif delete mode 100644 common/src/main/webapp/thirdparty/jQuery-File-Upload/js/jquery.fileupload.js delete mode 100644 common/src/main/webapp/thirdparty/jQuery-File-Upload/js/jquery.iframe-transport.js delete mode 100644 common/src/main/webapp/thirdparty/jQuery-File-Upload/js/vendor/jquery.ui.widget.js delete mode 100644 common/src/main/webapp/thirdparty/jquery-cokie/jquery.cokie.min.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/API_cn.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/API_en.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/api.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/common.css delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/common_ie6.css delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/apiMenu.gif delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/apiMenu.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/background.jpg delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/chinese.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/close.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/contact-bg.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/english.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/header-bg.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/lightbulb.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_arrow.gif delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_arrow.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_bg.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/overlay_close_IE6.gif delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/zTreeStandard.gif delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/img/zTreeStandard.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/jquery-1.6.2.min.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/jquery.ztree.core-3.5.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/apiCss/zTreeStyleForApi.css delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree._z.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.destroy.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.getZTreeObj.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/fn.zTree.init.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.autoParam.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.contentType.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataFilter.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.dataType.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.enable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.otherParam.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.type.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.async.url.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeAsync.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCheck.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeCollapse.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDblClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrag.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDragOpen.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeDrop.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeEditName.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeExpand.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseDown.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeMouseUp.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRemove.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRename.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.beforeRightClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncError.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onAsyncSuccess.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCheck.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onCollapse.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDblClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrag.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDragMove.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onDrop.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onExpand.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseDown.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onMouseUp.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onNodeCreated.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRemove.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRename.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.callback.onRightClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.autoCheckTrigger.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkDisabledInherit.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkStyle.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.chkboxType.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.enable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.nocheckInherit.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.check.radioType.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.leaf.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.keep.parent.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.checked.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.children.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.name.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.title.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.key.url.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.enable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.idKey.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.pIdKey.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.data.simpleData.rootPId.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoExpandTrigger.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.autoOpenTime.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMax.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.borderMin.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.inner.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isCopy.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.isMove.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.maxShowNodeNum.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.minMoveSize.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.next.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.drag.prev.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.editNameSelectAll.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.enable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.removeTitle.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.renameTitle.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRemoveBtn.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.edit.showRenameBtn.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeId.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.treeObj.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addDiyDom.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.addHoverDom.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.autoCancelSelected.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.dblClickExpand.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.expandSpeed.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.fontCss.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.nameIsHTML.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.removeHoverDom.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.selectedMulti.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showIcon.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showLine.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.showTitle.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/setting.view.txtSelectedEnable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Child_State.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.check_Focus.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checked.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.checkedOld.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.children.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.chkDisabled.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.click.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.diy.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.editNameFlag.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getCheckStatus.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getNextNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getParentNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.getPreNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.halfCheck.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.icon.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconClose.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconOpen.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.iconSkin.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isAjaxing.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isFirstNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHidden.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isHover.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isLastNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.isParent.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.level.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.name.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.nocheck.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.open.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.parentTId.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.tId.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.target.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.url.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.zAsync.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.addNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelEditName.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.cancelSelectedNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkAllNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.checkNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.copyNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.destroy.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.editName.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandAll.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.expandNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getChangeCheckedNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getCheckedNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByParam.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeByTId.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodeIndex.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByFilter.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParam.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getNodesByParamFuzzy.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.getSelectedNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.hideNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.moveNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.reAsyncChildNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.refresh.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeChildNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.removeNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.selectNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setChkDisabled.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setEditable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.setting.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.showNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformToArray.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.transformTozTreeNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/cn/zTreeObj.updateNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree._z.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.destroy.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.getZTreeObj.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/fn.zTree.init.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.autoParam.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.contentType.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataFilter.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.dataType.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.enable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.otherParam.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.type.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.async.url.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeAsync.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCheck.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeCollapse.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDblClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrag.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDragOpen.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeDrop.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeEditName.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeExpand.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseDown.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeMouseUp.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRemove.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRename.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.beforeRightClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncError.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onAsyncSuccess.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCheck.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onCollapse.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDblClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrag.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDragMove.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onDrop.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onExpand.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseDown.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onMouseUp.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onNodeCreated.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRemove.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRename.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.callback.onRightClick.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.autoCheckTrigger.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkDisabledInherit.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkStyle.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.chkboxType.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.enable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.nocheckInherit.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.check.radioType.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.leaf.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.keep.parent.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.checked.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.children.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.name.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.title.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.key.url.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.enable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.idKey.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.pIdKey.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.data.simpleData.rootPId.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoExpandTrigger.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.autoOpenTime.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMax.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.borderMin.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.inner.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isCopy.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.isMove.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.maxShowNodeNum.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.minMoveSize.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.next.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.drag.prev.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.editNameSelectAll.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.enable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.removeTitle.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.renameTitle.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRemoveBtn.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.edit.showRenameBtn.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.treeId.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.treeObj.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addDiyDom.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.addHoverDom.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.autoCancelSelected.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.dblClickExpand.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.expandSpeed.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.fontCss.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.nameIsHTML.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.removeHoverDom.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.selectedMulti.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showIcon.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showLine.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.showTitle.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/setting.view.txtSelectedEnable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Child_State.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.check_Focus.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checked.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.checkedOld.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.children.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.chkDisabled.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.click.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.diy.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.editNameFlag.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getCheckStatus.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getNextNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getParentNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.getPreNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.halfCheck.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.icon.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconClose.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconOpen.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.iconSkin.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isAjaxing.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isFirstNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHidden.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isHover.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isLastNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.isParent.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.level.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.name.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.nocheck.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.open.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.parentTId.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.tId.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.target.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.url.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/treeNode.zAsync.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.addNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelEditName.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.cancelSelectedNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkAllNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.checkNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.copyNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.destroy.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.editName.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandAll.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.expandNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getChangeCheckedNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getCheckedNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByParam.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeByTId.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodeIndex.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByFilter.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParam.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getNodesByParamFuzzy.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.getSelectedNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.hideNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.moveNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.reAsyncChildNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.refresh.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeChildNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.removeNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.selectNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setChkDisabled.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setEditable.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.setting.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.showNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformToArray.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.transformTozTreeNodes.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/api/en/zTreeObj.updateNode.html delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/demo.css delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/ReadMe.txt delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/Thumbs.db delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/1_close.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/1_open.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/2.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/3.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/4.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/5.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/6.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/7.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/8.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/9.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/diy/Thumbs.db delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/line_conn.gif delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/loading.gif delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.gif delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.gifbak delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.png delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.pngbak delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/img/zTreeStandard.psd delete mode 100644 common/src/main/webapp/thirdparty/zTree/css/zTreeStyle/zTreeStyle.css delete mode 100644 common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.all.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.all.min.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.core.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.core.min.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.excheck.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.excheck.min.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exedit.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exedit.min.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exhide.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/js/jquery.ztree.exhide.min.js delete mode 100644 common/src/main/webapp/thirdparty/zTree/zTree.v3.jquery.json (limited to 'common/src/main/webapp') diff --git a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker-bs3.css b/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker-bs3.css deleted file mode 100644 index 71111cf..0000000 --- a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker-bs3.css +++ /dev/null @@ -1,319 +0,0 @@ -/*! - * Stylesheet for the Date Range Picker, for use with Bootstrap 3.x - * - * Copyright 2013-2015 Dan Grossman ( http://www.dangrossman.info ) - * Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php - * - * Built for http://www.improvely.com - */ - - .daterangepicker.dropdown-menu { - max-width: none; - z-index: 3000; -} - -.daterangepicker.opensleft .ranges, .daterangepicker.opensleft .calendar { - float: left; - margin: 4px; -} - -.daterangepicker.opensright .ranges, .daterangepicker.opensright .calendar, -.daterangepicker.openscenter .ranges, .daterangepicker.openscenter .calendar { - float: right; - margin: 4px; -} - -.daterangepicker.single .ranges, .daterangepicker.single .calendar { - float: none; -} - -.daterangepicker .ranges { - width: 165px; - text-align: left; -} - -.daterangepicker .ranges .range_inputs>div { - float: left; -} - -.daterangepicker .ranges .range_inputs>div:nth-child(2) { - padding-left: 11px; -} - -.daterangepicker .calendar { - display: none; - max-width: 270px; -} - -.daterangepicker.show-calendar .calendar { - display: block; -} - -.daterangepicker .calendar.single .calendar-date { - border: none; -} - -.daterangepicker .calendar th, .daterangepicker .calendar td { - font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; - white-space: nowrap; - text-align: center; - min-width: 32px; -} - -.daterangepicker .daterangepicker_start_input label, -.daterangepicker .daterangepicker_end_input label { - color: #333; - display: block; - font-size: 11px; - font-weight: normal; - height: 20px; - line-height: 20px; - margin-bottom: 2px; - text-shadow: #fff 1px 1px 0px; - text-transform: uppercase; - width: 74px; -} - -.daterangepicker .ranges input { - font-size: 11px; -} - -.daterangepicker .ranges .input-mini { - border: 1px solid #ccc; - border-radius: 4px; - color: #555; - display: block; - font-size: 11px; - height: 30px; - line-height: 30px; - vertical-align: middle; - margin: 0 0 10px 0; - padding: 0 6px; - width: 77px; -} - -.daterangepicker .ranges ul { - list-style: none; - margin: 0; - padding: 0; -} - -.daterangepicker .ranges li { - font-size: 13px; - background: #f5f5f5; - border: 1px solid #f5f5f5; - color: #08c; - padding: 3px 12px; - margin-bottom: 8px; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - border-radius: 5px; - cursor: pointer; -} - -.daterangepicker .ranges li.active, .daterangepicker .ranges li:hover { - background: #08c; - border: 1px solid #08c; - color: #fff; -} - -.daterangepicker .calendar-date { - border: 1px solid #ddd; - padding: 4px; - border-radius: 4px; - background: #fff; -} - -.daterangepicker .calendar-time { - text-align: center; - margin: 8px auto 0 auto; - line-height: 30px; -} - -.daterangepicker { - position: absolute; - background: #fff; - top: 100px; - left: 20px; - padding: 4px; - margin-top: 1px; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -.daterangepicker.opensleft:before { - position: absolute; - top: -7px; - right: 9px; - display: inline-block; - border-right: 7px solid transparent; - border-bottom: 7px solid #ccc; - border-left: 7px solid transparent; - border-bottom-color: rgba(0, 0, 0, 0.2); - content: ''; -} - -.daterangepicker.opensleft:after { - position: absolute; - top: -6px; - right: 10px; - display: inline-block; - border-right: 6px solid transparent; - border-bottom: 6px solid #fff; - border-left: 6px solid transparent; - content: ''; -} - -.daterangepicker.openscenter:before { - position: absolute; - top: -7px; - left: 0; - right: 0; - width: 0; - margin-left: auto; - margin-right: auto; - display: inline-block; - border-right: 7px solid transparent; - border-bottom: 7px solid #ccc; - border-left: 7px solid transparent; - border-bottom-color: rgba(0, 0, 0, 0.2); - content: ''; -} - -.daterangepicker.openscenter:after { - position: absolute; - top: -6px; - left: 0; - right: 0; - width: 0; - margin-left: auto; - margin-right: auto; - display: inline-block; - border-right: 6px solid transparent; - border-bottom: 6px solid #fff; - border-left: 6px solid transparent; - content: ''; -} - -.daterangepicker.opensright:before { - position: absolute; - top: -7px; - left: 9px; - display: inline-block; - border-right: 7px solid transparent; - border-bottom: 7px solid #ccc; - border-left: 7px solid transparent; - border-bottom-color: rgba(0, 0, 0, 0.2); - content: ''; -} - -.daterangepicker.opensright:after { - position: absolute; - top: -6px; - left: 10px; - display: inline-block; - border-right: 6px solid transparent; - border-bottom: 6px solid #fff; - border-left: 6px solid transparent; - content: ''; -} - -.daterangepicker table { - width: 100%; - margin: 0; -} - -.daterangepicker td, .daterangepicker th { - text-align: center; - width: 20px; - height: 20px; - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; - cursor: pointer; - white-space: nowrap; -} - -.daterangepicker td.off { - color: #999; -} - -.daterangepicker td.disabled, .daterangepicker option.disabled { - color: #999; -} - -.daterangepicker td.available:hover, .daterangepicker th.available:hover { - background: #eee; -} - -.daterangepicker td.in-range { - background: #ebf4f8; - -webkit-border-radius: 0; - -moz-border-radius: 0; - border-radius: 0; -} - -.daterangepicker td.start-date { - -webkit-border-radius: 4px 0 0 4px; - -moz-border-radius: 4px 0 0 4px; - border-radius: 4px 0 0 4px; -} - -.daterangepicker td.end-date { - -webkit-border-radius: 0 4px 4px 0; - -moz-border-radius: 0 4px 4px 0; - border-radius: 0 4px 4px 0; -} - -.daterangepicker td.start-date.end-date { - -webkit-border-radius: 4px; - -moz-border-radius: 4px; - border-radius: 4px; -} - -.daterangepicker td.active, .daterangepicker td.active:hover { - background-color: #357ebd; - border-color: #3071a9; - color: #fff; -} - -.daterangepicker td.week, .daterangepicker th.week { - font-size: 80%; - color: #ccc; -} - -.daterangepicker select.monthselect, .daterangepicker select.yearselect { - font-size: 12px; - padding: 1px; - height: auto; - margin: 0; - cursor: default; -} - -.daterangepicker select.monthselect { - margin-right: 2%; - width: 56%; -} - -.daterangepicker select.yearselect { - width: 40%; -} - -.daterangepicker select.hourselect, .daterangepicker select.minuteselect, .daterangepicker select.secondselect, .daterangepicker select.ampmselect { - width: 50px; - margin-bottom: 0; -} - -.daterangepicker_start_input { - float: left; -} - -.daterangepicker_end_input { - float: left; - padding-left: 11px -} - -.daterangepicker th.month { - width: auto; -} diff --git a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker.js b/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker.js deleted file mode 100644 index c24c0ad..0000000 --- a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/daterangepicker.js +++ /dev/null @@ -1,1257 +0,0 @@ -/** -* @version: 1.3.17 -* @author: Dan Grossman http://www.dangrossman.info/ -* @date: 2014-11-25 -* @copyright: Copyright (c) 2012-2014 Dan Grossman. All rights reserved. -* @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php -* @website: http://www.improvely.com/ -*/ - -(function(root, factory) { - - if (typeof define === 'function' && define.amd) { - define(['moment', 'jquery', 'exports'], function(momentjs, $, exports) { - root.daterangepicker = factory(root, exports, momentjs, $); - }); - - } else if (typeof exports !== 'undefined') { - var momentjs = require('moment'); - var jQuery; - try { - jQuery = require('jquery'); - } catch (err) { - jQuery = window.jQuery; - if (!jQuery) throw new Error('jQuery dependency not found'); - } - - factory(root, exports, momentjs, jQuery); - - // Finally, as a browser global. - } else { - root.daterangepicker = factory(root, {}, root.moment, (root.jQuery || root.Zepto || root.ender || root.$)); - } - -}(this, function(root, daterangepicker, moment, $) { - - var DateRangePicker = function (element, options, cb) { - - // by default, the daterangepicker element is placed at the bottom of HTML body - this.parentEl = 'body'; - - //element that triggered the date range picker - this.element = $(element); - - //tracks visible state - this.isShowing = false; - - //create the picker HTML object - var DRPTemplate = ''; - - //custom options - if (typeof options !== 'object' || options === null) - options = {}; - - this.parentEl = (typeof options === 'object' && options.parentEl && $(options.parentEl).length) ? $(options.parentEl) : $(this.parentEl); - this.container = $(DRPTemplate).appendTo(this.parentEl); - - this.setOptions(options, cb); - - //apply CSS classes and labels to buttons - var c = this.container; - $.each(this.buttonClasses, function (idx, val) { - c.find('button').addClass(val); - }); - this.container.find('.daterangepicker_start_input label').html(this.locale.fromLabel); - this.container.find('.daterangepicker_end_input label').html(this.locale.toLabel); - if (this.applyClass.length) - this.container.find('.applyBtn').addClass(this.applyClass); - if (this.cancelClass.length) - this.container.find('.cancelBtn').addClass(this.cancelClass); - this.container.find('.applyBtn').html(this.locale.applyLabel); - this.container.find('.cancelBtn').html(this.locale.cancelLabel); - - //event listeners - - this.container.find('.calendar') - .on('click.daterangepicker', '.prev', $.proxy(this.clickPrev, this)) - .on('click.daterangepicker', '.next', $.proxy(this.clickNext, this)) - .on('click.daterangepicker', 'td.available', $.proxy(this.clickDate, this)) - .on('mouseenter.daterangepicker', 'td.available', $.proxy(this.hoverDate, this)) - .on('mouseleave.daterangepicker', 'td.available', $.proxy(this.updateFormInputs, this)) - .on('change.daterangepicker', 'select.yearselect', $.proxy(this.updateMonthYear, this)) - .on('change.daterangepicker', 'select.monthselect', $.proxy(this.updateMonthYear, this)) - .on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', $.proxy(this.updateTime, this)); - - this.container.find('.ranges') - .on('click.daterangepicker', 'button.applyBtn', $.proxy(this.clickApply, this)) - .on('click.daterangepicker', 'button.cancelBtn', $.proxy(this.clickCancel, this)) - .on('click.daterangepicker', '.daterangepicker_start_input,.daterangepicker_end_input', $.proxy(this.showCalendars, this)) - .on('change.daterangepicker', '.daterangepicker_start_input,.daterangepicker_end_input', $.proxy(this.inputsChanged, this)) - .on('keydown.daterangepicker', '.daterangepicker_start_input,.daterangepicker_end_input', $.proxy(this.inputsKeydown, this)) - .on('click.daterangepicker', 'li', $.proxy(this.clickRange, this)) - .on('mouseenter.daterangepicker', 'li', $.proxy(this.enterRange, this)) - .on('mouseleave.daterangepicker', 'li', $.proxy(this.updateFormInputs, this)); - - if (this.element.is('input')) { - this.element.on({ - 'click.daterangepicker': $.proxy(this.show, this), - 'focus.daterangepicker': $.proxy(this.show, this), - 'keyup.daterangepicker': $.proxy(this.updateFromControl, this) - }); - } else { - this.element.on('click.daterangepicker', $.proxy(this.toggle, this)); - } - - }; - - DateRangePicker.prototype = { - - constructor: DateRangePicker, - - setOptions: function(options, callback) { - - this.startDate = moment().startOf('day'); - this.endDate = moment().endOf('day'); - this.timeZone = moment().zone(); - this.minDate = false; - this.maxDate = false; - this.dateLimit = false; - - this.showDropdowns = false; - this.showWeekNumbers = false; - this.timePicker = false; - this.timePickerSeconds = false; - this.timePickerIncrement = 30; - this.timePicker12Hour = true; - this.singleDatePicker = false; - this.ranges = {}; - - this.opens = 'right'; - if (this.element.hasClass('pull-right')) - this.opens = 'left'; - - this.buttonClasses = ['btn', 'btn-small btn-sm']; - this.applyClass = 'btn-success'; - this.cancelClass = 'btn-default'; - - this.format = 'MM/DD/YYYY'; - this.separator = ' - '; - - this.locale = { - applyLabel: 'Apply', - cancelLabel: 'Cancel', - fromLabel: 'From', - toLabel: 'To', - weekLabel: 'W', - customRangeLabel: 'Custom Range', - daysOfWeek: moment.weekdaysMin(), - monthNames: moment.monthsShort(), - firstDay: moment.localeData()._week.dow - }; - - this.cb = function () { }; - - if (typeof options.format === 'string') - this.format = options.format; - - if (typeof options.separator === 'string') - this.separator = options.separator; - - if (typeof options.startDate === 'string') - this.startDate = moment(options.startDate, this.format); - - if (typeof options.endDate === 'string') - this.endDate = moment(options.endDate, this.format); - - if (typeof options.minDate === 'string') - this.minDate = moment(options.minDate, this.format); - - if (typeof options.maxDate === 'string') - this.maxDate = moment(options.maxDate, this.format); - - if (typeof options.startDate === 'object') - this.startDate = moment(options.startDate); - - if (typeof options.endDate === 'object') - this.endDate = moment(options.endDate); - - if (typeof options.minDate === 'object') - this.minDate = moment(options.minDate); - - if (typeof options.maxDate === 'object') - this.maxDate = moment(options.maxDate); - - if (typeof options.applyClass === 'string') - this.applyClass = options.applyClass; - - if (typeof options.cancelClass === 'string') - this.cancelClass = options.cancelClass; - - if (typeof options.dateLimit === 'object') - this.dateLimit = options.dateLimit; - - if (typeof options.locale === 'object') { - - if (typeof options.locale.daysOfWeek === 'object') { - // Create a copy of daysOfWeek to avoid modification of original - // options object for reusability in multiple daterangepicker instances - this.locale.daysOfWeek = options.locale.daysOfWeek.slice(); - } - - if (typeof options.locale.monthNames === 'object') { - this.locale.monthNames = options.locale.monthNames.slice(); - } - - if (typeof options.locale.firstDay === 'number') { - this.locale.firstDay = options.locale.firstDay; - } - - if (typeof options.locale.applyLabel === 'string') { - this.locale.applyLabel = options.locale.applyLabel; - } - - if (typeof options.locale.cancelLabel === 'string') { - this.locale.cancelLabel = options.locale.cancelLabel; - } - - if (typeof options.locale.fromLabel === 'string') { - this.locale.fromLabel = options.locale.fromLabel; - } - - if (typeof options.locale.toLabel === 'string') { - this.locale.toLabel = options.locale.toLabel; - } - - if (typeof options.locale.weekLabel === 'string') { - this.locale.weekLabel = options.locale.weekLabel; - } - - if (typeof options.locale.customRangeLabel === 'string') { - this.locale.customRangeLabel = options.locale.customRangeLabel; - } - } - - if (typeof options.opens === 'string') - this.opens = options.opens; - - if (typeof options.showWeekNumbers === 'boolean') { - this.showWeekNumbers = options.showWeekNumbers; - } - - if (typeof options.buttonClasses === 'string') { - this.buttonClasses = [options.buttonClasses]; - } - - if (typeof options.buttonClasses === 'object') { - this.buttonClasses = options.buttonClasses; - } - - if (typeof options.showDropdowns === 'boolean') { - this.showDropdowns = options.showDropdowns; - } - - if (typeof options.singleDatePicker === 'boolean') { - this.singleDatePicker = options.singleDatePicker; - if (this.singleDatePicker) { - this.endDate = this.startDate.clone(); - } - } - - if (typeof options.timePicker === 'boolean') { - this.timePicker = options.timePicker; - } - - if (typeof options.timePickerSeconds === 'boolean') { - this.timePickerSeconds = options.timePickerSeconds; - } - - if (typeof options.timePickerIncrement === 'number') { - this.timePickerIncrement = options.timePickerIncrement; - } - - if (typeof options.timePicker12Hour === 'boolean') { - this.timePicker12Hour = options.timePicker12Hour; - } - - // update day names order to firstDay - if (this.locale.firstDay != 0) { - var iterator = this.locale.firstDay; - while (iterator > 0) { - this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()); - iterator--; - } - } - - var start, end, range; - - //if no start/end dates set, check if an input element contains initial values - if (typeof options.startDate === 'undefined' && typeof options.endDate === 'undefined') { - if ($(this.element).is('input[type=text]')) { - var val = $(this.element).val(), - split = val.split(this.separator); - - start = end = null; - - if (split.length == 2) { - start = moment(split[0], this.format); - end = moment(split[1], this.format); - } else if (this.singleDatePicker && val !== "") { - start = moment(val, this.format); - end = moment(val, this.format); - } - if (start !== null && end !== null) { - this.startDate = start; - this.endDate = end; - } - } - } - - // bind the time zone used to build the calendar to either the timeZone passed in through the options or the zone of the startDate (which will be the local time zone by default) - if (typeof options.timeZone === 'string' || typeof options.timeZone === 'number') { - this.timeZone = options.timeZone; - this.startDate.zone(this.timeZone); - this.endDate.zone(this.timeZone); - } else { - this.timeZone = moment(this.startDate).zone(); - } - - if (typeof options.ranges === 'object') { - for (range in options.ranges) { - - if (typeof options.ranges[range][0] === 'string') - start = moment(options.ranges[range][0], this.format); - else - start = moment(options.ranges[range][0]); - - if (typeof options.ranges[range][1] === 'string') - end = moment(options.ranges[range][1], this.format); - else - end = moment(options.ranges[range][1]); - - // If we have a min/max date set, bound this range - // to it, but only if it would otherwise fall - // outside of the min/max. - if (this.minDate && start.isBefore(this.minDate)) - start = moment(this.minDate); - - if (this.maxDate && end.isAfter(this.maxDate)) - end = moment(this.maxDate); - - // If the end of the range is before the minimum (if min is set) OR - // the start of the range is after the max (also if set) don't display this - // range option. - if ((this.minDate && end.isBefore(this.minDate)) || (this.maxDate && start.isAfter(this.maxDate))) { - continue; - } - - this.ranges[range] = [start, end]; - } - - var list = ''; - this.container.find('.ranges ul').remove(); - this.container.find('.ranges').prepend(list); - } - - if (typeof callback === 'function') { - this.cb = callback; - } - - if (!this.timePicker) { - this.startDate = this.startDate.startOf('day'); - this.endDate = this.endDate.endOf('day'); - } - - if (this.singleDatePicker) { - this.opens = 'right'; - this.container.addClass('single'); - this.container.find('.calendar.right').show(); - this.container.find('.calendar.left').hide(); - if (!this.timePicker) { - this.container.find('.ranges').hide(); - } else { - this.container.find('.ranges .daterangepicker_start_input, .ranges .daterangepicker_end_input').hide(); - } - if (!this.container.find('.calendar.right').hasClass('single')) - this.container.find('.calendar.right').addClass('single'); - } else { - this.container.removeClass('single'); - this.container.find('.calendar.right').removeClass('single'); - this.container.find('.ranges').show(); - } - - this.oldStartDate = this.startDate.clone(); - this.oldEndDate = this.endDate.clone(); - this.oldChosenLabel = this.chosenLabel; - - this.leftCalendar = { - month: moment([this.startDate.year(), this.startDate.month(), 1, this.startDate.hour(), this.startDate.minute(), this.startDate.second()]), - calendar: [] - }; - - this.rightCalendar = { - month: moment([this.endDate.year(), this.endDate.month(), 1, this.endDate.hour(), this.endDate.minute(), this.endDate.second()]), - calendar: [] - }; - - if (this.opens == 'right' || this.opens == 'center') { - //swap calendar positions - var first = this.container.find('.calendar.first'); - var second = this.container.find('.calendar.second'); - - if (second.hasClass('single')) { - second.removeClass('single'); - first.addClass('single'); - } - - first.removeClass('left').addClass('right'); - second.removeClass('right').addClass('left'); - - if (this.singleDatePicker) { - first.show(); - second.hide(); - } - } - - if (typeof options.ranges === 'undefined' && !this.singleDatePicker) { - this.container.addClass('show-calendar'); - } - - this.container.addClass('opens' + this.opens); - - this.updateView(); - this.updateCalendars(); - - }, - - setStartDate: function(startDate) { - if (typeof startDate === 'string') - this.startDate = moment(startDate, this.format).zone(this.timeZone); - - if (typeof startDate === 'object') - this.startDate = moment(startDate); - - if (!this.timePicker) - this.startDate = this.startDate.startOf('day'); - - this.oldStartDate = this.startDate.clone(); - - this.updateView(); - this.updateCalendars(); - this.updateInputText(); - }, - - setEndDate: function(endDate) { - if (typeof endDate === 'string') - this.endDate = moment(endDate, this.format).zone(this.timeZone); - - if (typeof endDate === 'object') - this.endDate = moment(endDate); - - if (!this.timePicker) - this.endDate = this.endDate.endOf('day'); - - this.oldEndDate = this.endDate.clone(); - - this.updateView(); - this.updateCalendars(); - this.updateInputText(); - }, - - updateView: function () { - this.leftCalendar.month.month(this.startDate.month()).year(this.startDate.year()).hour(this.startDate.hour()).minute(this.startDate.minute()); - this.rightCalendar.month.month(this.endDate.month()).year(this.endDate.year()).hour(this.endDate.hour()).minute(this.endDate.minute()); - this.updateFormInputs(); - }, - - updateFormInputs: function () { - this.container.find('input[name=daterangepicker_start]').val(this.startDate.format(this.format)); - this.container.find('input[name=daterangepicker_end]').val(this.endDate.format(this.format)); - - if (this.startDate.isSame(this.endDate) || this.startDate.isBefore(this.endDate)) { - this.container.find('button.applyBtn').removeAttr('disabled'); - } else { - this.container.find('button.applyBtn').attr('disabled', 'disabled'); - } - }, - - updateFromControl: function () { - if (!this.element.is('input')) return; - if (!this.element.val().length) return; - - var dateString = this.element.val().split(this.separator), - start = null, - end = null; - - if(dateString.length === 2) { - start = moment(dateString[0], this.format).zone(this.timeZone); - end = moment(dateString[1], this.format).zone(this.timeZone); - } - - if (this.singleDatePicker || start === null || end === null) { - start = moment(this.element.val(), this.format).zone(this.timeZone); - end = start; - } - - if (end.isBefore(start)) return; - - this.oldStartDate = this.startDate.clone(); - this.oldEndDate = this.endDate.clone(); - - this.startDate = start; - this.endDate = end; - - if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate)) - this.notify(); - - this.updateCalendars(); - }, - - notify: function () { - this.updateView(); - this.cb(this.startDate, this.endDate, this.chosenLabel); - }, - - move: function () { - var parentOffset = { top: 0, left: 0 }; - var parentRightEdge = $(window).width(); - if (!this.parentEl.is('body')) { - parentOffset = { - top: this.parentEl.offset().top - this.parentEl.scrollTop(), - left: this.parentEl.offset().left - this.parentEl.scrollLeft() - }; - parentRightEdge = this.parentEl[0].clientWidth + this.parentEl.offset().left; - } - - if (this.opens == 'left') { - this.container.css({ - top: this.element.offset().top + this.element.outerHeight() - parentOffset.top, - right: parentRightEdge - this.element.offset().left - this.element.outerWidth(), - left: 'auto' - }); - if (this.container.offset().left < 0) { - this.container.css({ - right: 'auto', - left: 9 - }); - } - } else if (this.opens == 'center') { - this.container.css({ - top: this.element.offset().top + this.element.outerHeight() - parentOffset.top, - left: this.element.offset().left - parentOffset.left + this.element.outerWidth() / 2 - - this.container.outerWidth() / 2, - right: 'auto' - }); - if (this.container.offset().left < 0) { - this.container.css({ - right: 'auto', - left: 9 - }); - } - } else { - this.container.css({ - top: this.element.offset().top + this.element.outerHeight() - parentOffset.top, - left: this.element.offset().left - parentOffset.left, - right: 'auto' - }); - if (this.container.offset().left + this.container.outerWidth() > $(window).width()) { - this.container.css({ - left: 'auto', - right: 0 - }); - } - } - }, - - toggle: function (e) { - if (this.element.hasClass('active')) { - this.hide(); - } else { - this.show(); - } - }, - - show: function (e) { - if (this.isShowing) return; - - this.element.addClass('active'); - this.container.show(); - this.move(); - - // Create a click proxy that is private to this instance of datepicker, for unbinding - this._outsideClickProxy = $.proxy(function (e) { this.outsideClick(e); }, this); - // Bind global datepicker mousedown for hiding and - $(document) - .on('mousedown.daterangepicker', this._outsideClickProxy) - // also support mobile devices - .on('touchend.daterangepicker', this._outsideClickProxy) - // also explicitly play nice with Bootstrap dropdowns, which stopPropagation when clicking them - .on('click.daterangepicker', '[data-toggle=dropdown]', this._outsideClickProxy) - // and also close when focus changes to outside the picker (eg. tabbing between controls) - .on('focusin.daterangepicker', this._outsideClickProxy); - - this.isShowing = true; - this.element.trigger('show.daterangepicker', this); - }, - - outsideClick: function (e) { - var target = $(e.target); - // if the page is clicked anywhere except within the daterangerpicker/button - // itself then call this.hide() - if ( - // ie modal dialog fix - e.type == "focusin" || - target.closest(this.element).length || - target.closest(this.container).length || - target.closest('.calendar-date').length - ) return; - this.hide(); - }, - - hide: function (e) { - if (!this.isShowing) return; - - $(document) - .off('.daterangepicker'); - - this.element.removeClass('active'); - this.container.hide(); - - if (!this.startDate.isSame(this.oldStartDate) || !this.endDate.isSame(this.oldEndDate)) - this.notify(); - - this.oldStartDate = this.startDate.clone(); - this.oldEndDate = this.endDate.clone(); - - this.isShowing = false; - this.element.trigger('hide.daterangepicker', this); - }, - - enterRange: function (e) { - // mouse pointer has entered a range label - var label = e.target.innerHTML; - if (label == this.locale.customRangeLabel) { - this.updateView(); - } else { - var dates = this.ranges[label]; - this.container.find('input[name=daterangepicker_start]').val(dates[0].format(this.format)); - this.container.find('input[name=daterangepicker_end]').val(dates[1].format(this.format)); - } - }, - - showCalendars: function() { - this.container.addClass('show-calendar'); - this.move(); - this.element.trigger('showCalendar.daterangepicker', this); - }, - - hideCalendars: function() { - this.container.removeClass('show-calendar'); - this.element.trigger('hideCalendar.daterangepicker', this); - }, - - // when a date is typed into the start to end date textboxes - inputsChanged: function (e) { - var el = $(e.target); - var date = moment(el.val(), this.format); - if (!date.isValid()) return; - - var startDate, endDate; - if (el.attr('name') === 'daterangepicker_start') { - startDate = date; - endDate = this.endDate; - } else { - startDate = this.startDate; - endDate = date; - } - this.setCustomDates(startDate, endDate); - }, - - inputsKeydown: function(e) { - if (e.keyCode === 13) { - this.inputsChanged(e); - this.notify(); - } - }, - - updateInputText: function() { - if (this.element.is('input') && !this.singleDatePicker) { - this.element.val(this.startDate.format(this.format) + this.separator + this.endDate.format(this.format)); - } else if (this.element.is('input')) { - this.element.val(this.endDate.format(this.format)); - } - }, - - clickRange: function (e) { - var label = e.target.innerHTML; - this.chosenLabel = label; - if (label == this.locale.customRangeLabel) { - this.showCalendars(); - } else { - var dates = this.ranges[label]; - - this.startDate = dates[0]; - this.endDate = dates[1]; - - if (!this.timePicker) { - this.startDate.startOf('day'); - this.endDate.endOf('day'); - } - - this.leftCalendar.month.month(this.startDate.month()).year(this.startDate.year()).hour(this.startDate.hour()).minute(this.startDate.minute()); - this.rightCalendar.month.month(this.endDate.month()).year(this.endDate.year()).hour(this.endDate.hour()).minute(this.endDate.minute()); - this.updateCalendars(); - - this.updateInputText(); - - this.hideCalendars(); - this.hide(); - this.element.trigger('apply.daterangepicker', this); - } - }, - - clickPrev: function (e) { - var cal = $(e.target).parents('.calendar'); - if (cal.hasClass('left')) { - this.leftCalendar.month.subtract(1, 'month'); - } else { - this.rightCalendar.month.subtract(1, 'month'); - } - this.updateCalendars(); - }, - - clickNext: function (e) { - var cal = $(e.target).parents('.calendar'); - if (cal.hasClass('left')) { - this.leftCalendar.month.add(1, 'month'); - } else { - this.rightCalendar.month.add(1, 'month'); - } - this.updateCalendars(); - }, - - hoverDate: function (e) { - var title = $(e.target).attr('data-title'); - var row = title.substr(1, 1); - var col = title.substr(3, 1); - var cal = $(e.target).parents('.calendar'); - - if (cal.hasClass('left')) { - this.container.find('input[name=daterangepicker_start]').val(this.leftCalendar.calendar[row][col].format(this.format)); - } else { - this.container.find('input[name=daterangepicker_end]').val(this.rightCalendar.calendar[row][col].format(this.format)); - } - }, - - setCustomDates: function(startDate, endDate) { - this.chosenLabel = this.locale.customRangeLabel; - if (startDate.isAfter(endDate)) { - var difference = this.endDate.diff(this.startDate); - endDate = moment(startDate).add(difference, 'ms'); - if (this.maxDate && endDate.isAfter(this.maxDate)) { - endDate = this.maxDate; - } - } - this.startDate = startDate; - this.endDate = endDate; - - this.updateView(); - this.updateCalendars(); - }, - - clickDate: function (e) { - var title = $(e.target).attr('data-title'); - var row = title.substr(1, 1); - var col = title.substr(3, 1); - var cal = $(e.target).parents('.calendar'); - - var startDate, endDate; - if (cal.hasClass('left')) { - startDate = this.leftCalendar.calendar[row][col]; - endDate = this.endDate; - if (typeof this.dateLimit === 'object') { - var maxDate = moment(startDate).add(this.dateLimit).startOf('day'); - if (endDate.isAfter(maxDate)) { - endDate = maxDate; - } - } - } else { - startDate = this.startDate; - endDate = this.rightCalendar.calendar[row][col]; - if (typeof this.dateLimit === 'object') { - var minDate = moment(endDate).subtract(this.dateLimit).startOf('day'); - if (startDate.isBefore(minDate)) { - startDate = minDate; - } - } - } - - if (this.singleDatePicker && cal.hasClass('left')) { - endDate = startDate.clone(); - } else if (this.singleDatePicker && cal.hasClass('right')) { - startDate = endDate.clone(); - } - - cal.find('td').removeClass('active'); - - $(e.target).addClass('active'); - - this.setCustomDates(startDate, endDate); - - if (!this.timePicker) - endDate.endOf('day'); - - if (this.singleDatePicker && !this.timePicker) - this.clickApply(); - }, - - clickApply: function (e) { - this.updateInputText(); - this.hide(); - this.element.trigger('apply.daterangepicker', this); - }, - - clickCancel: function (e) { - this.startDate = this.oldStartDate; - this.endDate = this.oldEndDate; - this.chosenLabel = this.oldChosenLabel; - this.updateView(); - this.updateCalendars(); - this.hide(); - this.element.trigger('cancel.daterangepicker', this); - }, - - updateMonthYear: function (e) { - var isLeft = $(e.target).closest('.calendar').hasClass('left'), - leftOrRight = isLeft ? 'left' : 'right', - cal = this.container.find('.calendar.'+leftOrRight); - - // Month must be Number for new moment versions - var month = parseInt(cal.find('.monthselect').val(), 10); - var year = cal.find('.yearselect').val(); - - this[leftOrRight+'Calendar'].month.month(month).year(year); - this.updateCalendars(); - }, - - updateTime: function(e) { - - var cal = $(e.target).closest('.calendar'), - isLeft = cal.hasClass('left'); - - var hour = parseInt(cal.find('.hourselect').val(), 10); - var minute = parseInt(cal.find('.minuteselect').val(), 10); - var second = 0; - - if (this.timePickerSeconds) { - second = parseInt(cal.find('.secondselect').val(), 10); - } - - if (this.timePicker12Hour) { - var ampm = cal.find('.ampmselect').val(); - if (ampm === 'PM' && hour < 12) - hour += 12; - if (ampm === 'AM' && hour === 12) - hour = 0; - } - - if (isLeft) { - var start = this.startDate.clone(); - start.hour(hour); - start.minute(minute); - start.second(second); - this.startDate = start; - this.leftCalendar.month.hour(hour).minute(minute).second(second); - if (this.singleDatePicker) - this.endDate = start.clone(); - } else { - var end = this.endDate.clone(); - end.hour(hour); - end.minute(minute); - end.second(second); - this.endDate = end; - if (this.singleDatePicker) - this.startDate = end.clone(); - this.rightCalendar.month.hour(hour).minute(minute).second(second); - } - - this.updateView(); - this.updateCalendars(); - }, - - updateCalendars: function () { - this.leftCalendar.calendar = this.buildCalendar(this.leftCalendar.month.month(), this.leftCalendar.month.year(), this.leftCalendar.month.hour(), this.leftCalendar.month.minute(), this.leftCalendar.month.second(), 'left'); - this.rightCalendar.calendar = this.buildCalendar(this.rightCalendar.month.month(), this.rightCalendar.month.year(), this.rightCalendar.month.hour(), this.rightCalendar.month.minute(), this.rightCalendar.month.second(), 'right'); - this.container.find('.calendar.left').empty().html(this.renderCalendar(this.leftCalendar.calendar, this.startDate, this.minDate, this.maxDate, 'left')); - this.container.find('.calendar.right').empty().html(this.renderCalendar(this.rightCalendar.calendar, this.endDate, this.singleDatePicker ? this.minDate : this.startDate, this.maxDate, 'right')); - - this.container.find('.ranges li').removeClass('active'); - var customRange = true; - var i = 0; - for (var range in this.ranges) { - if (this.timePicker) { - if (this.startDate.isSame(this.ranges[range][0]) && this.endDate.isSame(this.ranges[range][1])) { - customRange = false; - this.chosenLabel = this.container.find('.ranges li:eq(' + i + ')') - .addClass('active').html(); - } - } else { - //ignore times when comparing dates if time picker is not enabled - if (this.startDate.format('YYYY-MM-DD') == this.ranges[range][0].format('YYYY-MM-DD') && this.endDate.format('YYYY-MM-DD') == this.ranges[range][1].format('YYYY-MM-DD')) { - customRange = false; - this.chosenLabel = this.container.find('.ranges li:eq(' + i + ')') - .addClass('active').html(); - } - } - i++; - } - if (customRange) { - this.chosenLabel = this.container.find('.ranges li:last').addClass('active').html(); - this.showCalendars(); - } - }, - - buildCalendar: function (month, year, hour, minute, second, side) { - var daysInMonth = moment([year, month]).daysInMonth(); - var firstDay = moment([year, month, 1]); - var lastDay = moment([year, month, daysInMonth]); - var lastMonth = moment(firstDay).subtract(1, 'month').month(); - var lastYear = moment(firstDay).subtract(1, 'month').year(); - - var daysInLastMonth = moment([lastYear, lastMonth]).daysInMonth(); - - var dayOfWeek = firstDay.day(); - - var i; - - //initialize a 6 rows x 7 columns array for the calendar - var calendar = []; - calendar.firstDay = firstDay; - calendar.lastDay = lastDay; - - for (i = 0; i < 6; i++) { - calendar[i] = []; - } - - //populate the calendar with date objects - var startDay = daysInLastMonth - dayOfWeek + this.locale.firstDay + 1; - if (startDay > daysInLastMonth) - startDay -= 7; - - if (dayOfWeek == this.locale.firstDay) - startDay = daysInLastMonth - 6; - - var curDate = moment([lastYear, lastMonth, startDay, 12, minute, second]).zone(this.timeZone); - - var col, row; - for (i = 0, col = 0, row = 0; i < 42; i++, col++, curDate = moment(curDate).add(24, 'hour')) { - if (i > 0 && col % 7 === 0) { - col = 0; - row++; - } - calendar[row][col] = curDate.clone().hour(hour); - curDate.hour(12); - - if (this.minDate && calendar[row][col].format('YYYY-MM-DD') == this.minDate.format('YYYY-MM-DD') && calendar[row][col].isBefore(this.minDate) && side == 'left') { - calendar[row][col] = this.minDate.clone(); - } - - if (this.maxDate && calendar[row][col].format('YYYY-MM-DD') == this.maxDate.format('YYYY-MM-DD') && calendar[row][col].isAfter(this.maxDate) && side == 'right') { - calendar[row][col] = this.maxDate.clone(); - } - - } - - return calendar; - }, - - renderDropdowns: function (selected, minDate, maxDate) { - var currentMonth = selected.month(); - var currentYear = selected.year(); - var maxYear = (maxDate && maxDate.year()) || (currentYear + 5); - var minYear = (minDate && minDate.year()) || (currentYear - 50); - - var monthHtml = '"; - - var yearHtml = ''; - - return monthHtml + yearHtml; - }, - - renderCalendar: function (calendar, selected, minDate, maxDate, side) { - - var html = '
'; - html += ''; - html += ''; - html += ''; - - // add empty cell for week number - if (this.showWeekNumbers) - html += ''; - - if (!minDate || minDate.isBefore(calendar.firstDay)) { - html += ''; - } else { - html += ''; - } - - var dateHtml = this.locale.monthNames[calendar[1][1].month()] + calendar[1][1].format(" YYYY"); - - if (this.showDropdowns) { - dateHtml = this.renderDropdowns(calendar[1][1], minDate, maxDate); - } - - html += ''; - if (!maxDate || maxDate.isAfter(calendar.lastDay)) { - html += ''; - } else { - html += ''; - } - - html += ''; - html += ''; - - // add week number label - if (this.showWeekNumbers) - html += ''; - - $.each(this.locale.daysOfWeek, function (index, dayOfWeek) { - html += ''; - }); - - html += ''; - html += ''; - html += ''; - - for (var row = 0; row < 6; row++) { - html += ''; - - // add week number - if (this.showWeekNumbers) - html += ''; - - for (var col = 0; col < 7; col++) { - var cname = 'available '; - cname += (calendar[row][col].month() == calendar[1][1].month()) ? '' : 'off'; - - if ((minDate && calendar[row][col].isBefore(minDate, 'day')) || (maxDate && calendar[row][col].isAfter(maxDate, 'day'))) { - cname = ' off disabled '; - } else if (calendar[row][col].format('YYYY-MM-DD') == selected.format('YYYY-MM-DD')) { - cname += ' active '; - if (calendar[row][col].format('YYYY-MM-DD') == this.startDate.format('YYYY-MM-DD')) { - cname += ' start-date '; - } - if (calendar[row][col].format('YYYY-MM-DD') == this.endDate.format('YYYY-MM-DD')) { - cname += ' end-date '; - } - } else if (calendar[row][col] >= this.startDate && calendar[row][col] <= this.endDate) { - cname += ' in-range '; - if (calendar[row][col].isSame(this.startDate)) { cname += ' start-date '; } - if (calendar[row][col].isSame(this.endDate)) { cname += ' end-date '; } - } - - var title = 'r' + row + 'c' + col; - html += ''; - } - html += ''; - } - - html += ''; - html += '
' + dateHtml + '
' + this.locale.weekLabel + '' + dayOfWeek + '
' + calendar[row][0].week() + '' + calendar[row][col].date() + '
'; - html += '
'; - - var i; - if (this.timePicker) { - - html += '
'; - html += ' : '; - - html += ' '; - - if (this.timePickerSeconds) { - html += ': '; - } - - if (this.timePicker12Hour) { - html += ''; - } - - html += '
'; - - } - - return html; - - }, - - remove: function() { - - this.container.remove(); - this.element.off('.daterangepicker'); - this.element.removeData('daterangepicker'); - - } - - }; - - $.fn.daterangepicker = function (options, cb) { - this.each(function () { - var el = $(this); - if (el.data('daterangepicker')) - el.data('daterangepicker').remove(); - el.data('daterangepicker', new DateRangePicker(el, options, cb)); - }); - return this; - }; - -})); diff --git a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.js b/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.js deleted file mode 100644 index 1800b5d..0000000 --- a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.js +++ /dev/null @@ -1,2808 +0,0 @@ -//! moment.js -//! version : 2.8.1 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com - -(function (undefined) { - /************************************ - Constants - ************************************/ - - var moment, - VERSION = '2.8.1', - // the global-scope this is NOT the global object in Node.js - globalScope = typeof global !== 'undefined' ? global : this, - oldGlobalMoment, - round = Math.round, - i, - - YEAR = 0, - MONTH = 1, - DATE = 2, - HOUR = 3, - MINUTE = 4, - SECOND = 5, - MILLISECOND = 6, - - // internal storage for locale config files - locales = {}, - - // extra moment internal properties (plugins register props here) - momentProperties = [], - - // check for nodeJS - hasModule = (typeof module !== 'undefined' && module.exports), - - // ASP.NET json date format regex - aspNetJsonRegex = /^\/?Date\((\-?\d+)/i, - aspNetTimeSpanJsonRegex = /(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/, - - // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html - // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere - isoDurationRegex = /^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/, - - // format tokens - formattingTokens = /(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g, - localFormattingTokens = /(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g, - - // parsing token regexes - parseTokenOneOrTwoDigits = /\d\d?/, // 0 - 99 - parseTokenOneToThreeDigits = /\d{1,3}/, // 0 - 999 - parseTokenOneToFourDigits = /\d{1,4}/, // 0 - 9999 - parseTokenOneToSixDigits = /[+\-]?\d{1,6}/, // -999,999 - 999,999 - parseTokenDigits = /\d+/, // nonzero number of digits - parseTokenWord = /[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i, // any word (or two) characters or numbers including two/three word month in arabic. - parseTokenTimezone = /Z|[\+\-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z - parseTokenT = /T/i, // T (ISO separator) - parseTokenTimestampMs = /[\+\-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 - parseTokenOrdinal = /\d{1,2}/, - - //strict parsing regexes - parseTokenOneDigit = /\d/, // 0 - 9 - parseTokenTwoDigits = /\d\d/, // 00 - 99 - parseTokenThreeDigits = /\d{3}/, // 000 - 999 - parseTokenFourDigits = /\d{4}/, // 0000 - 9999 - parseTokenSixDigits = /[+-]?\d{6}/, // -999,999 - 999,999 - parseTokenSignedNumber = /[+-]?\d+/, // -inf - inf - - // iso 8601 regex - // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) - isoRegex = /^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/, - - isoFormat = 'YYYY-MM-DDTHH:mm:ssZ', - - isoDates = [ - ['YYYYYY-MM-DD', /[+-]\d{6}-\d{2}-\d{2}/], - ['YYYY-MM-DD', /\d{4}-\d{2}-\d{2}/], - ['GGGG-[W]WW-E', /\d{4}-W\d{2}-\d/], - ['GGGG-[W]WW', /\d{4}-W\d{2}/], - ['YYYY-DDD', /\d{4}-\d{3}/] - ], - - // iso time formats and regexes - isoTimes = [ - ['HH:mm:ss.SSSS', /(T| )\d\d:\d\d:\d\d\.\d+/], - ['HH:mm:ss', /(T| )\d\d:\d\d:\d\d/], - ['HH:mm', /(T| )\d\d:\d\d/], - ['HH', /(T| )\d\d/] - ], - - // timezone chunker "+10:00" > ["10", "00"] or "-1530" > ["-15", "30"] - parseTimezoneChunker = /([\+\-]|\d\d)/gi, - - // getter and setter names - proxyGettersAndSetters = 'Date|Hours|Minutes|Seconds|Milliseconds'.split('|'), - unitMillisecondFactors = { - 'Milliseconds' : 1, - 'Seconds' : 1e3, - 'Minutes' : 6e4, - 'Hours' : 36e5, - 'Days' : 864e5, - 'Months' : 2592e6, - 'Years' : 31536e6 - }, - - unitAliases = { - ms : 'millisecond', - s : 'second', - m : 'minute', - h : 'hour', - d : 'day', - D : 'date', - w : 'week', - W : 'isoWeek', - M : 'month', - Q : 'quarter', - y : 'year', - DDD : 'dayOfYear', - e : 'weekday', - E : 'isoWeekday', - gg: 'weekYear', - GG: 'isoWeekYear' - }, - - camelFunctions = { - dayofyear : 'dayOfYear', - isoweekday : 'isoWeekday', - isoweek : 'isoWeek', - weekyear : 'weekYear', - isoweekyear : 'isoWeekYear' - }, - - // format function strings - formatFunctions = {}, - - // default relative time thresholds - relativeTimeThresholds = { - s: 45, // seconds to minute - m: 45, // minutes to hour - h: 22, // hours to day - d: 26, // days to month - M: 11 // months to year - }, - - // tokens to ordinalize and pad - ordinalizeTokens = 'DDD w W M D d'.split(' '), - paddedTokens = 'M D H h m s w W'.split(' '), - - formatTokenFunctions = { - M : function () { - return this.month() + 1; - }, - MMM : function (format) { - return this.localeData().monthsShort(this, format); - }, - MMMM : function (format) { - return this.localeData().months(this, format); - }, - D : function () { - return this.date(); - }, - DDD : function () { - return this.dayOfYear(); - }, - d : function () { - return this.day(); - }, - dd : function (format) { - return this.localeData().weekdaysMin(this, format); - }, - ddd : function (format) { - return this.localeData().weekdaysShort(this, format); - }, - dddd : function (format) { - return this.localeData().weekdays(this, format); - }, - w : function () { - return this.week(); - }, - W : function () { - return this.isoWeek(); - }, - YY : function () { - return leftZeroFill(this.year() % 100, 2); - }, - YYYY : function () { - return leftZeroFill(this.year(), 4); - }, - YYYYY : function () { - return leftZeroFill(this.year(), 5); - }, - YYYYYY : function () { - var y = this.year(), sign = y >= 0 ? '+' : '-'; - return sign + leftZeroFill(Math.abs(y), 6); - }, - gg : function () { - return leftZeroFill(this.weekYear() % 100, 2); - }, - gggg : function () { - return leftZeroFill(this.weekYear(), 4); - }, - ggggg : function () { - return leftZeroFill(this.weekYear(), 5); - }, - GG : function () { - return leftZeroFill(this.isoWeekYear() % 100, 2); - }, - GGGG : function () { - return leftZeroFill(this.isoWeekYear(), 4); - }, - GGGGG : function () { - return leftZeroFill(this.isoWeekYear(), 5); - }, - e : function () { - return this.weekday(); - }, - E : function () { - return this.isoWeekday(); - }, - a : function () { - return this.localeData().meridiem(this.hours(), this.minutes(), true); - }, - A : function () { - return this.localeData().meridiem(this.hours(), this.minutes(), false); - }, - H : function () { - return this.hours(); - }, - h : function () { - return this.hours() % 12 || 12; - }, - m : function () { - return this.minutes(); - }, - s : function () { - return this.seconds(); - }, - S : function () { - return toInt(this.milliseconds() / 100); - }, - SS : function () { - return leftZeroFill(toInt(this.milliseconds() / 10), 2); - }, - SSS : function () { - return leftZeroFill(this.milliseconds(), 3); - }, - SSSS : function () { - return leftZeroFill(this.milliseconds(), 3); - }, - Z : function () { - var a = -this.zone(), - b = '+'; - if (a < 0) { - a = -a; - b = '-'; - } - return b + leftZeroFill(toInt(a / 60), 2) + ':' + leftZeroFill(toInt(a) % 60, 2); - }, - ZZ : function () { - var a = -this.zone(), - b = '+'; - if (a < 0) { - a = -a; - b = '-'; - } - return b + leftZeroFill(toInt(a / 60), 2) + leftZeroFill(toInt(a) % 60, 2); - }, - z : function () { - return this.zoneAbbr(); - }, - zz : function () { - return this.zoneName(); - }, - X : function () { - return this.unix(); - }, - Q : function () { - return this.quarter(); - } - }, - - deprecations = {}, - - lists = ['months', 'monthsShort', 'weekdays', 'weekdaysShort', 'weekdaysMin']; - - // Pick the first defined of two or three arguments. dfl comes from - // default. - function dfl(a, b, c) { - switch (arguments.length) { - case 2: return a != null ? a : b; - case 3: return a != null ? a : b != null ? b : c; - default: throw new Error('Implement me'); - } - } - - function defaultParsingFlags() { - // We need to deep clone this object, and es5 standard is not very - // helpful. - return { - empty : false, - unusedTokens : [], - unusedInput : [], - overflow : -2, - charsLeftOver : 0, - nullInput : false, - invalidMonth : null, - invalidFormat : false, - userInvalidated : false, - iso: false - }; - } - - function printMsg(msg) { - if (moment.suppressDeprecationWarnings === false && - typeof console !== 'undefined' && console.warn) { - console.warn("Deprecation warning: " + msg); - } - } - - function deprecate(msg, fn) { - var firstTime = true; - return extend(function () { - if (firstTime) { - printMsg(msg); - firstTime = false; - } - return fn.apply(this, arguments); - }, fn); - } - - function deprecateSimple(name, msg) { - if (!deprecations[name]) { - printMsg(msg); - deprecations[name] = true; - } - } - - function padToken(func, count) { - return function (a) { - return leftZeroFill(func.call(this, a), count); - }; - } - function ordinalizeToken(func, period) { - return function (a) { - return this.localeData().ordinal(func.call(this, a), period); - }; - } - - while (ordinalizeTokens.length) { - i = ordinalizeTokens.pop(); - formatTokenFunctions[i + 'o'] = ordinalizeToken(formatTokenFunctions[i], i); - } - while (paddedTokens.length) { - i = paddedTokens.pop(); - formatTokenFunctions[i + i] = padToken(formatTokenFunctions[i], 2); - } - formatTokenFunctions.DDDD = padToken(formatTokenFunctions.DDD, 3); - - - /************************************ - Constructors - ************************************/ - - function Locale() { - } - - // Moment prototype object - function Moment(config, skipOverflow) { - if (skipOverflow !== false) { - checkOverflow(config); - } - copyConfig(this, config); - this._d = new Date(+config._d); - } - - // Duration Constructor - function Duration(duration) { - var normalizedInput = normalizeObjectUnits(duration), - years = normalizedInput.year || 0, - quarters = normalizedInput.quarter || 0, - months = normalizedInput.month || 0, - weeks = normalizedInput.week || 0, - days = normalizedInput.day || 0, - hours = normalizedInput.hour || 0, - minutes = normalizedInput.minute || 0, - seconds = normalizedInput.second || 0, - milliseconds = normalizedInput.millisecond || 0; - - // representation for dateAddRemove - this._milliseconds = +milliseconds + - seconds * 1e3 + // 1000 - minutes * 6e4 + // 1000 * 60 - hours * 36e5; // 1000 * 60 * 60 - // Because of dateAddRemove treats 24 hours as different from a - // day when working around DST, we need to store them separately - this._days = +days + - weeks * 7; - // It is impossible translate months into days without knowing - // which months you are are talking about, so we have to store - // it separately. - this._months = +months + - quarters * 3 + - years * 12; - - this._data = {}; - - this._locale = moment.localeData(); - - this._bubble(); - } - - /************************************ - Helpers - ************************************/ - - - function extend(a, b) { - for (var i in b) { - if (b.hasOwnProperty(i)) { - a[i] = b[i]; - } - } - - if (b.hasOwnProperty('toString')) { - a.toString = b.toString; - } - - if (b.hasOwnProperty('valueOf')) { - a.valueOf = b.valueOf; - } - - return a; - } - - function copyConfig(to, from) { - var i, prop, val; - - if (typeof from._isAMomentObject !== 'undefined') { - to._isAMomentObject = from._isAMomentObject; - } - if (typeof from._i !== 'undefined') { - to._i = from._i; - } - if (typeof from._f !== 'undefined') { - to._f = from._f; - } - if (typeof from._l !== 'undefined') { - to._l = from._l; - } - if (typeof from._strict !== 'undefined') { - to._strict = from._strict; - } - if (typeof from._tzm !== 'undefined') { - to._tzm = from._tzm; - } - if (typeof from._isUTC !== 'undefined') { - to._isUTC = from._isUTC; - } - if (typeof from._offset !== 'undefined') { - to._offset = from._offset; - } - if (typeof from._pf !== 'undefined') { - to._pf = from._pf; - } - if (typeof from._locale !== 'undefined') { - to._locale = from._locale; - } - - if (momentProperties.length > 0) { - for (i in momentProperties) { - prop = momentProperties[i]; - val = from[prop]; - if (typeof val !== 'undefined') { - to[prop] = val; - } - } - } - - return to; - } - - function absRound(number) { - if (number < 0) { - return Math.ceil(number); - } else { - return Math.floor(number); - } - } - - // left zero fill a number - // see http://jsperf.com/left-zero-filling for performance comparison - function leftZeroFill(number, targetLength, forceSign) { - var output = '' + Math.abs(number), - sign = number >= 0; - - while (output.length < targetLength) { - output = '0' + output; - } - return (sign ? (forceSign ? '+' : '') : '-') + output; - } - - function positiveMomentsDifference(base, other) { - var res = {milliseconds: 0, months: 0}; - - res.months = other.month() - base.month() + - (other.year() - base.year()) * 12; - if (base.clone().add(res.months, 'M').isAfter(other)) { - --res.months; - } - - res.milliseconds = +other - +(base.clone().add(res.months, 'M')); - - return res; - } - - function momentsDifference(base, other) { - var res; - other = makeAs(other, base); - if (base.isBefore(other)) { - res = positiveMomentsDifference(base, other); - } else { - res = positiveMomentsDifference(other, base); - res.milliseconds = -res.milliseconds; - res.months = -res.months; - } - - return res; - } - - // TODO: remove 'name' arg after deprecation is removed - function createAdder(direction, name) { - return function (val, period) { - var dur, tmp; - //invert the arguments, but complain about it - if (period !== null && !isNaN(+period)) { - deprecateSimple(name, "moment()." + name + "(period, number) is deprecated. Please use moment()." + name + "(number, period)."); - tmp = val; val = period; period = tmp; - } - - val = typeof val === 'string' ? +val : val; - dur = moment.duration(val, period); - addOrSubtractDurationFromMoment(this, dur, direction); - return this; - }; - } - - function addOrSubtractDurationFromMoment(mom, duration, isAdding, updateOffset) { - var milliseconds = duration._milliseconds, - days = duration._days, - months = duration._months; - updateOffset = updateOffset == null ? true : updateOffset; - - if (milliseconds) { - mom._d.setTime(+mom._d + milliseconds * isAdding); - } - if (days) { - rawSetter(mom, 'Date', rawGetter(mom, 'Date') + days * isAdding); - } - if (months) { - rawMonthSetter(mom, rawGetter(mom, 'Month') + months * isAdding); - } - if (updateOffset) { - moment.updateOffset(mom, days || months); - } - } - - // check if is an array - function isArray(input) { - return Object.prototype.toString.call(input) === '[object Array]'; - } - - function isDate(input) { - return Object.prototype.toString.call(input) === '[object Date]' || - input instanceof Date; - } - - // compare two arrays, return the number of differences - function compareArrays(array1, array2, dontConvert) { - var len = Math.min(array1.length, array2.length), - lengthDiff = Math.abs(array1.length - array2.length), - diffs = 0, - i; - for (i = 0; i < len; i++) { - if ((dontConvert && array1[i] !== array2[i]) || - (!dontConvert && toInt(array1[i]) !== toInt(array2[i]))) { - diffs++; - } - } - return diffs + lengthDiff; - } - - function normalizeUnits(units) { - if (units) { - var lowered = units.toLowerCase().replace(/(.)s$/, '$1'); - units = unitAliases[units] || camelFunctions[lowered] || lowered; - } - return units; - } - - function normalizeObjectUnits(inputObject) { - var normalizedInput = {}, - normalizedProp, - prop; - - for (prop in inputObject) { - if (inputObject.hasOwnProperty(prop)) { - normalizedProp = normalizeUnits(prop); - if (normalizedProp) { - normalizedInput[normalizedProp] = inputObject[prop]; - } - } - } - - return normalizedInput; - } - - function makeList(field) { - var count, setter; - - if (field.indexOf('week') === 0) { - count = 7; - setter = 'day'; - } - else if (field.indexOf('month') === 0) { - count = 12; - setter = 'month'; - } - else { - return; - } - - moment[field] = function (format, index) { - var i, getter, - method = moment._locale[field], - results = []; - - if (typeof format === 'number') { - index = format; - format = undefined; - } - - getter = function (i) { - var m = moment().utc().set(setter, i); - return method.call(moment._locale, m, format || ''); - }; - - if (index != null) { - return getter(index); - } - else { - for (i = 0; i < count; i++) { - results.push(getter(i)); - } - return results; - } - }; - } - - function toInt(argumentForCoercion) { - var coercedNumber = +argumentForCoercion, - value = 0; - - if (coercedNumber !== 0 && isFinite(coercedNumber)) { - if (coercedNumber >= 0) { - value = Math.floor(coercedNumber); - } else { - value = Math.ceil(coercedNumber); - } - } - - return value; - } - - function daysInMonth(year, month) { - return new Date(Date.UTC(year, month + 1, 0)).getUTCDate(); - } - - function weeksInYear(year, dow, doy) { - return weekOfYear(moment([year, 11, 31 + dow - doy]), dow, doy).week; - } - - function daysInYear(year) { - return isLeapYear(year) ? 366 : 365; - } - - function isLeapYear(year) { - return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; - } - - function checkOverflow(m) { - var overflow; - if (m._a && m._pf.overflow === -2) { - overflow = - m._a[MONTH] < 0 || m._a[MONTH] > 11 ? MONTH : - m._a[DATE] < 1 || m._a[DATE] > daysInMonth(m._a[YEAR], m._a[MONTH]) ? DATE : - m._a[HOUR] < 0 || m._a[HOUR] > 23 ? HOUR : - m._a[MINUTE] < 0 || m._a[MINUTE] > 59 ? MINUTE : - m._a[SECOND] < 0 || m._a[SECOND] > 59 ? SECOND : - m._a[MILLISECOND] < 0 || m._a[MILLISECOND] > 999 ? MILLISECOND : - -1; - - if (m._pf._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { - overflow = DATE; - } - - m._pf.overflow = overflow; - } - } - - function isValid(m) { - if (m._isValid == null) { - m._isValid = !isNaN(m._d.getTime()) && - m._pf.overflow < 0 && - !m._pf.empty && - !m._pf.invalidMonth && - !m._pf.nullInput && - !m._pf.invalidFormat && - !m._pf.userInvalidated; - - if (m._strict) { - m._isValid = m._isValid && - m._pf.charsLeftOver === 0 && - m._pf.unusedTokens.length === 0; - } - } - return m._isValid; - } - - function normalizeLocale(key) { - return key ? key.toLowerCase().replace('_', '-') : key; - } - - // pick the locale from the array - // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each - // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root - function chooseLocale(names) { - var i = 0, j, next, locale, split; - - while (i < names.length) { - split = normalizeLocale(names[i]).split('-'); - j = split.length; - next = normalizeLocale(names[i + 1]); - next = next ? next.split('-') : null; - while (j > 0) { - locale = loadLocale(split.slice(0, j).join('-')); - if (locale) { - return locale; - } - if (next && next.length >= j && compareArrays(split, next, true) >= j - 1) { - //the next array item is better than a shallower substring of this one - break; - } - j--; - } - i++; - } - return null; - } - - function loadLocale(name) { - var oldLocale = null; - if (!locales[name] && hasModule) { - try { - oldLocale = moment.locale(); - require('./locale/' + name); - // because defineLocale currently also sets the global locale, we want to undo that for lazy loaded locales - moment.locale(oldLocale); - } catch (e) { } - } - return locales[name]; - } - - // Return a moment from input, that is local/utc/zone equivalent to model. - function makeAs(input, model) { - return model._isUTC ? moment(input).zone(model._offset || 0) : - moment(input).local(); - } - - /************************************ - Locale - ************************************/ - - - extend(Locale.prototype, { - - set : function (config) { - var prop, i; - for (i in config) { - prop = config[i]; - if (typeof prop === 'function') { - this[i] = prop; - } else { - this['_' + i] = prop; - } - } - }, - - _months : '1_2_3_4_May_June_July_August_September_October_November_December'.split('_'), - months : function (m) { - return this._months[m.month()]; - }, - - _monthsShort : '1_2_3_4_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'), - monthsShort : function (m) { - return this._monthsShort[m.month()]; - }, - - monthsParse : function (monthName) { - var i, mom, regex; - - if (!this._monthsParse) { - this._monthsParse = []; - } - - for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - if (!this._monthsParse[i]) { - mom = moment.utc([2000, i]); - regex = '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); - this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if (this._monthsParse[i].test(monthName)) { - return i; - } - } - }, - - _weekdays : 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'), - weekdays : function (m) { - return this._weekdays[m.day()]; - }, - - _weekdaysShort : 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - weekdaysShort : function (m) { - return this._weekdaysShort[m.day()]; - }, - - _weekdaysMin : 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - weekdaysMin : function (m) { - return this._weekdaysMin[m.day()]; - }, - - weekdaysParse : function (weekdayName) { - var i, mom, regex; - - if (!this._weekdaysParse) { - this._weekdaysParse = []; - } - - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already - if (!this._weekdaysParse[i]) { - mom = moment([2000, 1]).day(i); - regex = '^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); - this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if (this._weekdaysParse[i].test(weekdayName)) { - return i; - } - } - }, - - _longDateFormat : { - LT : 'h:mm A', - L : 'MM/DD/YYYY', - LL : 'MMMM D, YYYY', - LLL : 'MMMM D, YYYY LT', - LLLL : 'dddd, MMMM D, YYYY LT' - }, - longDateFormat : function (key) { - var output = this._longDateFormat[key]; - if (!output && this._longDateFormat[key.toUpperCase()]) { - output = this._longDateFormat[key.toUpperCase()].replace(/MMMM|MM|DD|dddd/g, function (val) { - return val.slice(1); - }); - this._longDateFormat[key] = output; - } - return output; - }, - - isPM : function (input) { - // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays - // Using charAt should be more compatible. - return ((input + '').toLowerCase().charAt(0) === 'p'); - }, - - _meridiemParse : /[ap]\.?m?\.?/i, - meridiem : function (hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'pm' : 'PM'; - } else { - return isLower ? 'am' : 'AM'; - } - }, - - _calendar : { - sameDay : '[Today at] LT', - nextDay : '[Tomorrow at] LT', - nextWeek : 'dddd [at] LT', - lastDay : '[Yesterday at] LT', - lastWeek : '[Last] dddd [at] LT', - sameElse : 'L' - }, - calendar : function (key, mom) { - var output = this._calendar[key]; - return typeof output === 'function' ? output.apply(mom) : output; - }, - - _relativeTime : { - future : 'in %s', - past : '%s ago', - s : 'a few seconds', - m : 'a minute', - mm : '%d minutes', - h : 'an hour', - hh : '%d hours', - d : 'a day', - dd : '%d days', - M : 'a month', - MM : '%d months', - y : 'a year', - yy : '%d years' - }, - - relativeTime : function (number, withoutSuffix, string, isFuture) { - var output = this._relativeTime[string]; - return (typeof output === 'function') ? - output(number, withoutSuffix, string, isFuture) : - output.replace(/%d/i, number); - }, - - pastFuture : function (diff, output) { - var format = this._relativeTime[diff > 0 ? 'future' : 'past']; - return typeof format === 'function' ? format(output) : format.replace(/%s/i, output); - }, - - ordinal : function (number) { - return this._ordinal.replace('%d', number); - }, - _ordinal : '%d', - - preparse : function (string) { - return string; - }, - - postformat : function (string) { - return string; - }, - - week : function (mom) { - return weekOfYear(mom, this._week.dow, this._week.doy).week; - }, - - _week : { - dow : 0, // Sunday is the first day of the week. - doy : 6 // The week that contains Jan 1st is the first week of the year. - }, - - _invalidDate: 'Invalid date', - invalidDate: function () { - return this._invalidDate; - } - }); - - /************************************ - Formatting - ************************************/ - - - function removeFormattingTokens(input) { - if (input.match(/\[[\s\S]/)) { - return input.replace(/^\[|\]$/g, ''); - } - return input.replace(/\\/g, ''); - } - - function makeFormatFunction(format) { - var array = format.match(formattingTokens), i, length; - - for (i = 0, length = array.length; i < length; i++) { - if (formatTokenFunctions[array[i]]) { - array[i] = formatTokenFunctions[array[i]]; - } else { - array[i] = removeFormattingTokens(array[i]); - } - } - - return function (mom) { - var output = ''; - for (i = 0; i < length; i++) { - output += array[i] instanceof Function ? array[i].call(mom, format) : array[i]; - } - return output; - }; - } - - // format date using native date object - function formatMoment(m, format) { - if (!m.isValid()) { - return m.localeData().invalidDate(); - } - - format = expandFormat(format, m.localeData()); - - if (!formatFunctions[format]) { - formatFunctions[format] = makeFormatFunction(format); - } - - return formatFunctions[format](m); - } - - function expandFormat(format, locale) { - var i = 5; - - function replaceLongDateFormatTokens(input) { - return locale.longDateFormat(input) || input; - } - - localFormattingTokens.lastIndex = 0; - while (i >= 0 && localFormattingTokens.test(format)) { - format = format.replace(localFormattingTokens, replaceLongDateFormatTokens); - localFormattingTokens.lastIndex = 0; - i -= 1; - } - - return format; - } - - - /************************************ - Parsing - ************************************/ - - - // get the regex to find the next token - function getParseRegexForToken(token, config) { - var a, strict = config._strict; - switch (token) { - case 'Q': - return parseTokenOneDigit; - case 'DDDD': - return parseTokenThreeDigits; - case 'YYYY': - case 'GGGG': - case 'gggg': - return strict ? parseTokenFourDigits : parseTokenOneToFourDigits; - case 'Y': - case 'G': - case 'g': - return parseTokenSignedNumber; - case 'YYYYYY': - case 'YYYYY': - case 'GGGGG': - case 'ggggg': - return strict ? parseTokenSixDigits : parseTokenOneToSixDigits; - case 'S': - if (strict) { - return parseTokenOneDigit; - } - /* falls through */ - case 'SS': - if (strict) { - return parseTokenTwoDigits; - } - /* falls through */ - case 'SSS': - if (strict) { - return parseTokenThreeDigits; - } - /* falls through */ - case 'DDD': - return parseTokenOneToThreeDigits; - case 'MMM': - case 'MMMM': - case 'dd': - case 'ddd': - case 'dddd': - return parseTokenWord; - case 'a': - case 'A': - return config._locale._meridiemParse; - case 'X': - return parseTokenTimestampMs; - case 'Z': - case 'ZZ': - return parseTokenTimezone; - case 'T': - return parseTokenT; - case 'SSSS': - return parseTokenDigits; - case 'MM': - case 'DD': - case 'YY': - case 'GG': - case 'gg': - case 'HH': - case 'hh': - case 'mm': - case 'ss': - case 'ww': - case 'WW': - return strict ? parseTokenTwoDigits : parseTokenOneOrTwoDigits; - case 'M': - case 'D': - case 'd': - case 'H': - case 'h': - case 'm': - case 's': - case 'w': - case 'W': - case 'e': - case 'E': - return parseTokenOneOrTwoDigits; - case 'Do': - return parseTokenOrdinal; - default : - a = new RegExp(regexpEscape(unescapeFormat(token.replace('\\', '')), 'i')); - return a; - } - } - - function timezoneMinutesFromString(string) { - string = string || ''; - var possibleTzMatches = (string.match(parseTokenTimezone) || []), - tzChunk = possibleTzMatches[possibleTzMatches.length - 1] || [], - parts = (tzChunk + '').match(parseTimezoneChunker) || ['-', 0, 0], - minutes = +(parts[1] * 60) + toInt(parts[2]); - - return parts[0] === '+' ? -minutes : minutes; - } - - // function to convert string input to date - function addTimeToArrayFromToken(token, input, config) { - var a, datePartArray = config._a; - - switch (token) { - // QUARTER - case 'Q': - if (input != null) { - datePartArray[MONTH] = (toInt(input) - 1) * 3; - } - break; - // MONTH - case 'M' : // fall through to MM - case 'MM' : - if (input != null) { - datePartArray[MONTH] = toInt(input) - 1; - } - break; - case 'MMM' : // fall through to MMMM - case 'MMMM' : - a = config._locale.monthsParse(input); - // if we didn't find a month name, mark the date as invalid. - if (a != null) { - datePartArray[MONTH] = a; - } else { - config._pf.invalidMonth = input; - } - break; - // DAY OF MONTH - case 'D' : // fall through to DD - case 'DD' : - if (input != null) { - datePartArray[DATE] = toInt(input); - } - break; - case 'Do' : - if (input != null) { - datePartArray[DATE] = toInt(parseInt(input, 10)); - } - break; - // DAY OF YEAR - case 'DDD' : // fall through to DDDD - case 'DDDD' : - if (input != null) { - config._dayOfYear = toInt(input); - } - - break; - // YEAR - case 'YY' : - datePartArray[YEAR] = moment.parseTwoDigitYear(input); - break; - case 'YYYY' : - case 'YYYYY' : - case 'YYYYYY' : - datePartArray[YEAR] = toInt(input); - break; - // AM / PM - case 'a' : // fall through to A - case 'A' : - config._isPm = config._locale.isPM(input); - break; - // 24 HOUR - case 'H' : // fall through to hh - case 'HH' : // fall through to hh - case 'h' : // fall through to hh - case 'hh' : - datePartArray[HOUR] = toInt(input); - break; - // MINUTE - case 'm' : // fall through to mm - case 'mm' : - datePartArray[MINUTE] = toInt(input); - break; - // SECOND - case 's' : // fall through to ss - case 'ss' : - datePartArray[SECOND] = toInt(input); - break; - // MILLISECOND - case 'S' : - case 'SS' : - case 'SSS' : - case 'SSSS' : - datePartArray[MILLISECOND] = toInt(('0.' + input) * 1000); - break; - // UNIX TIMESTAMP WITH MS - case 'X': - config._d = new Date(parseFloat(input) * 1000); - break; - // TIMEZONE - case 'Z' : // fall through to ZZ - case 'ZZ' : - config._useUTC = true; - config._tzm = timezoneMinutesFromString(input); - break; - // WEEKDAY - human - case 'dd': - case 'ddd': - case 'dddd': - a = config._locale.weekdaysParse(input); - // if we didn't get a weekday name, mark the date as invalid - if (a != null) { - config._w = config._w || {}; - config._w['d'] = a; - } else { - config._pf.invalidWeekday = input; - } - break; - // WEEK, WEEK DAY - numeric - case 'w': - case 'ww': - case 'W': - case 'WW': - case 'd': - case 'e': - case 'E': - token = token.substr(0, 1); - /* falls through */ - case 'gggg': - case 'GGGG': - case 'GGGGG': - token = token.substr(0, 2); - if (input) { - config._w = config._w || {}; - config._w[token] = toInt(input); - } - break; - case 'gg': - case 'GG': - config._w = config._w || {}; - config._w[token] = moment.parseTwoDigitYear(input); - } - } - - function dayOfYearFromWeekInfo(config) { - var w, weekYear, week, weekday, dow, doy, temp; - - w = config._w; - if (w.GG != null || w.W != null || w.E != null) { - dow = 1; - doy = 4; - - // TODO: We need to take the current isoWeekYear, but that depends on - // how we interpret now (local, utc, fixed offset). So create - // a now version of current config (take local/utc/offset flags, and - // create now). - weekYear = dfl(w.GG, config._a[YEAR], weekOfYear(moment(), 1, 4).year); - week = dfl(w.W, 1); - weekday = dfl(w.E, 1); - } else { - dow = config._locale._week.dow; - doy = config._locale._week.doy; - - weekYear = dfl(w.gg, config._a[YEAR], weekOfYear(moment(), dow, doy).year); - week = dfl(w.w, 1); - - if (w.d != null) { - // weekday -- low day numbers are considered next week - weekday = w.d; - if (weekday < dow) { - ++week; - } - } else if (w.e != null) { - // local weekday -- counting starts from begining of week - weekday = w.e + dow; - } else { - // default to begining of week - weekday = dow; - } - } - temp = dayOfYearFromWeeks(weekYear, week, weekday, doy, dow); - - config._a[YEAR] = temp.year; - config._dayOfYear = temp.dayOfYear; - } - - // convert an array to a date. - // the array should mirror the parameters below - // note: all values past the year are optional and will default to the lowest possible value. - // [year, month, day , hour, minute, second, millisecond] - function dateFromConfig(config) { - var i, date, input = [], currentDate, yearToUse; - - if (config._d) { - return; - } - - currentDate = currentDateArray(config); - - //compute day of the year from weeks and weekdays - if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { - dayOfYearFromWeekInfo(config); - } - - //if the day of the year is set, figure out what it is - if (config._dayOfYear) { - yearToUse = dfl(config._a[YEAR], currentDate[YEAR]); - - if (config._dayOfYear > daysInYear(yearToUse)) { - config._pf._overflowDayOfYear = true; - } - - date = makeUTCDate(yearToUse, 0, config._dayOfYear); - config._a[MONTH] = date.getUTCMonth(); - config._a[DATE] = date.getUTCDate(); - } - - // Default to current date. - // * if no year, month, day of month are given, default to today - // * if day of month is given, default month and year - // * if month is given, default only year - // * if year is given, don't default anything - for (i = 0; i < 3 && config._a[i] == null; ++i) { - config._a[i] = input[i] = currentDate[i]; - } - - // Zero out whatever was not defaulted, including time - for (; i < 7; i++) { - config._a[i] = input[i] = (config._a[i] == null) ? (i === 2 ? 1 : 0) : config._a[i]; - } - - config._d = (config._useUTC ? makeUTCDate : makeDate).apply(null, input); - // Apply timezone offset from input. The actual zone can be changed - // with parseZone. - if (config._tzm != null) { - config._d.setUTCMinutes(config._d.getUTCMinutes() + config._tzm); - } - } - - function dateFromObject(config) { - var normalizedInput; - - if (config._d) { - return; - } - - normalizedInput = normalizeObjectUnits(config._i); - config._a = [ - normalizedInput.year, - normalizedInput.month, - normalizedInput.day, - normalizedInput.hour, - normalizedInput.minute, - normalizedInput.second, - normalizedInput.millisecond - ]; - - dateFromConfig(config); - } - - function currentDateArray(config) { - var now = new Date(); - if (config._useUTC) { - return [ - now.getUTCFullYear(), - now.getUTCMonth(), - now.getUTCDate() - ]; - } else { - return [now.getFullYear(), now.getMonth(), now.getDate()]; - } - } - - // date from string and format string - function makeDateFromStringAndFormat(config) { - if (config._f === moment.ISO_8601) { - parseISO(config); - return; - } - - config._a = []; - config._pf.empty = true; - - // This array is used to make a Date, either with `new Date` or `Date.UTC` - var string = '' + config._i, - i, parsedInput, tokens, token, skipped, - stringLength = string.length, - totalParsedInputLength = 0; - - tokens = expandFormat(config._f, config._locale).match(formattingTokens) || []; - - for (i = 0; i < tokens.length; i++) { - token = tokens[i]; - parsedInput = (string.match(getParseRegexForToken(token, config)) || [])[0]; - if (parsedInput) { - skipped = string.substr(0, string.indexOf(parsedInput)); - if (skipped.length > 0) { - config._pf.unusedInput.push(skipped); - } - string = string.slice(string.indexOf(parsedInput) + parsedInput.length); - totalParsedInputLength += parsedInput.length; - } - // don't parse if it's not a known token - if (formatTokenFunctions[token]) { - if (parsedInput) { - config._pf.empty = false; - } - else { - config._pf.unusedTokens.push(token); - } - addTimeToArrayFromToken(token, parsedInput, config); - } - else if (config._strict && !parsedInput) { - config._pf.unusedTokens.push(token); - } - } - - // add remaining unparsed input length to the string - config._pf.charsLeftOver = stringLength - totalParsedInputLength; - if (string.length > 0) { - config._pf.unusedInput.push(string); - } - - // handle am pm - if (config._isPm && config._a[HOUR] < 12) { - config._a[HOUR] += 12; - } - // if is 12 am, change hours to 0 - if (config._isPm === false && config._a[HOUR] === 12) { - config._a[HOUR] = 0; - } - - dateFromConfig(config); - checkOverflow(config); - } - - function unescapeFormat(s) { - return s.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4) { - return p1 || p2 || p3 || p4; - }); - } - - // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript - function regexpEscape(s) { - return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); - } - - // date from string and array of format strings - function makeDateFromStringAndArray(config) { - var tempConfig, - bestMoment, - - scoreToBeat, - i, - currentScore; - - if (config._f.length === 0) { - config._pf.invalidFormat = true; - config._d = new Date(NaN); - return; - } - - for (i = 0; i < config._f.length; i++) { - currentScore = 0; - tempConfig = copyConfig({}, config); - tempConfig._pf = defaultParsingFlags(); - tempConfig._f = config._f[i]; - makeDateFromStringAndFormat(tempConfig); - - if (!isValid(tempConfig)) { - continue; - } - - // if there is any input that was not parsed add a penalty for that format - currentScore += tempConfig._pf.charsLeftOver; - - //or tokens - currentScore += tempConfig._pf.unusedTokens.length * 10; - - tempConfig._pf.score = currentScore; - - if (scoreToBeat == null || currentScore < scoreToBeat) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - } - } - - extend(config, bestMoment || tempConfig); - } - - // date from iso format - function parseISO(config) { - var i, l, - string = config._i, - match = isoRegex.exec(string); - - if (match) { - config._pf.iso = true; - for (i = 0, l = isoDates.length; i < l; i++) { - if (isoDates[i][1].exec(string)) { - // match[5] should be "T" or undefined - config._f = isoDates[i][0] + (match[6] || ' '); - break; - } - } - for (i = 0, l = isoTimes.length; i < l; i++) { - if (isoTimes[i][1].exec(string)) { - config._f += isoTimes[i][0]; - break; - } - } - if (string.match(parseTokenTimezone)) { - config._f += 'Z'; - } - makeDateFromStringAndFormat(config); - } else { - config._isValid = false; - } - } - - // date from iso format or fallback - function makeDateFromString(config) { - parseISO(config); - if (config._isValid === false) { - delete config._isValid; - moment.createFromInputFallback(config); - } - } - - function makeDateFromInput(config) { - var input = config._i, matched; - if (input === undefined) { - config._d = new Date(); - } else if (isDate(input)) { - config._d = new Date(+input); - } else if ((matched = aspNetJsonRegex.exec(input)) !== null) { - config._d = new Date(+matched[1]); - } else if (typeof input === 'string') { - makeDateFromString(config); - } else if (isArray(input)) { - config._a = input.slice(0); - dateFromConfig(config); - } else if (typeof(input) === 'object') { - dateFromObject(config); - } else if (typeof(input) === 'number') { - // from milliseconds - config._d = new Date(input); - } else { - moment.createFromInputFallback(config); - } - } - - function makeDate(y, m, d, h, M, s, ms) { - //can't just apply() to create a date: - //http://stackoverflow.com/questions/181348/instantiating-a-javascript-object-by-calling-prototype-constructor-apply - var date = new Date(y, m, d, h, M, s, ms); - - //the date constructor doesn't accept years < 1970 - if (y < 1970) { - date.setFullYear(y); - } - return date; - } - - function makeUTCDate(y) { - var date = new Date(Date.UTC.apply(null, arguments)); - if (y < 1970) { - date.setUTCFullYear(y); - } - return date; - } - - function parseWeekday(input, locale) { - if (typeof input === 'string') { - if (!isNaN(input)) { - input = parseInt(input, 10); - } - else { - input = locale.weekdaysParse(input); - if (typeof input !== 'number') { - return null; - } - } - } - return input; - } - - /************************************ - Relative Time - ************************************/ - - - // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize - function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { - return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); - } - - function relativeTime(posNegDuration, withoutSuffix, locale) { - var duration = moment.duration(posNegDuration).abs(), - seconds = round(duration.as('s')), - minutes = round(duration.as('m')), - hours = round(duration.as('h')), - days = round(duration.as('d')), - months = round(duration.as('M')), - years = round(duration.as('y')), - - args = seconds < relativeTimeThresholds.s && ['s', seconds] || - minutes === 1 && ['m'] || - minutes < relativeTimeThresholds.m && ['mm', minutes] || - hours === 1 && ['h'] || - hours < relativeTimeThresholds.h && ['hh', hours] || - days === 1 && ['d'] || - days < relativeTimeThresholds.d && ['dd', days] || - months === 1 && ['M'] || - months < relativeTimeThresholds.M && ['MM', months] || - years === 1 && ['y'] || ['yy', years]; - - args[2] = withoutSuffix; - args[3] = +posNegDuration > 0; - args[4] = locale; - return substituteTimeAgo.apply({}, args); - } - - - /************************************ - Week of Year - ************************************/ - - - // firstDayOfWeek 0 = sun, 6 = sat - // the day of the week that starts the week - // (usually sunday or monday) - // firstDayOfWeekOfYear 0 = sun, 6 = sat - // the first week is the week that contains the first - // of this day of the week - // (eg. ISO weeks use thursday (4)) - function weekOfYear(mom, firstDayOfWeek, firstDayOfWeekOfYear) { - var end = firstDayOfWeekOfYear - firstDayOfWeek, - daysToDayOfWeek = firstDayOfWeekOfYear - mom.day(), - adjustedMoment; - - - if (daysToDayOfWeek > end) { - daysToDayOfWeek -= 7; - } - - if (daysToDayOfWeek < end - 7) { - daysToDayOfWeek += 7; - } - - adjustedMoment = moment(mom).add(daysToDayOfWeek, 'd'); - return { - week: Math.ceil(adjustedMoment.dayOfYear() / 7), - year: adjustedMoment.year() - }; - } - - //http://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday - function dayOfYearFromWeeks(year, week, weekday, firstDayOfWeekOfYear, firstDayOfWeek) { - var d = makeUTCDate(year, 0, 1).getUTCDay(), daysToAdd, dayOfYear; - - d = d === 0 ? 7 : d; - weekday = weekday != null ? weekday : firstDayOfWeek; - daysToAdd = firstDayOfWeek - d + (d > firstDayOfWeekOfYear ? 7 : 0) - (d < firstDayOfWeek ? 7 : 0); - dayOfYear = 7 * (week - 1) + (weekday - firstDayOfWeek) + daysToAdd + 1; - - return { - year: dayOfYear > 0 ? year : year - 1, - dayOfYear: dayOfYear > 0 ? dayOfYear : daysInYear(year - 1) + dayOfYear - }; - } - - /************************************ - Top Level Functions - ************************************/ - - function makeMoment(config) { - var input = config._i, - format = config._f; - - config._locale = config._locale || moment.localeData(config._l); - - if (input === null || (format === undefined && input === '')) { - return moment.invalid({nullInput: true}); - } - - if (typeof input === 'string') { - config._i = input = config._locale.preparse(input); - } - - if (moment.isMoment(input)) { - return new Moment(input, true); - } else if (format) { - if (isArray(format)) { - makeDateFromStringAndArray(config); - } else { - makeDateFromStringAndFormat(config); - } - } else { - makeDateFromInput(config); - } - - return new Moment(config); - } - - moment = function (input, format, locale, strict) { - var c; - - if (typeof(locale) === "boolean") { - strict = locale; - locale = undefined; - } - // object construction must be done this way. - // https://github.com/moment/moment/issues/1423 - c = {}; - c._isAMomentObject = true; - c._i = input; - c._f = format; - c._l = locale; - c._strict = strict; - c._isUTC = false; - c._pf = defaultParsingFlags(); - - return makeMoment(c); - }; - - moment.suppressDeprecationWarnings = false; - - moment.createFromInputFallback = deprecate( - 'moment construction falls back to js Date. This is ' + - 'discouraged and will be removed in upcoming major ' + - 'release. Please refer to ' + - 'https://github.com/moment/moment/issues/1407 for more info.', - function (config) { - config._d = new Date(config._i); - } - ); - - // Pick a moment m from moments so that m[fn](other) is true for all - // other. This relies on the function fn to be transitive. - // - // moments should either be an array of moment objects or an array, whose - // first element is an array of moment objects. - function pickBy(fn, moments) { - var res, i; - if (moments.length === 1 && isArray(moments[0])) { - moments = moments[0]; - } - if (!moments.length) { - return moment(); - } - res = moments[0]; - for (i = 1; i < moments.length; ++i) { - if (moments[i][fn](res)) { - res = moments[i]; - } - } - return res; - } - - moment.min = function () { - var args = [].slice.call(arguments, 0); - - return pickBy('isBefore', args); - }; - - moment.max = function () { - var args = [].slice.call(arguments, 0); - - return pickBy('isAfter', args); - }; - - // creating with utc - moment.utc = function (input, format, locale, strict) { - var c; - - if (typeof(locale) === "boolean") { - strict = locale; - locale = undefined; - } - // object construction must be done this way. - // https://github.com/moment/moment/issues/1423 - c = {}; - c._isAMomentObject = true; - c._useUTC = true; - c._isUTC = true; - c._l = locale; - c._i = input; - c._f = format; - c._strict = strict; - c._pf = defaultParsingFlags(); - - return makeMoment(c).utc(); - }; - - // creating with unix timestamp (in seconds) - moment.unix = function (input) { - return moment(input * 1000); - }; - - // duration - moment.duration = function (input, key) { - var duration = input, - // matching against regexp is expensive, do it on demand - match = null, - sign, - ret, - parseIso, - diffRes; - - if (moment.isDuration(input)) { - duration = { - ms: input._milliseconds, - d: input._days, - M: input._months - }; - } else if (typeof input === 'number') { - duration = {}; - if (key) { - duration[key] = input; - } else { - duration.milliseconds = input; - } - } else if (!!(match = aspNetTimeSpanJsonRegex.exec(input))) { - sign = (match[1] === '-') ? -1 : 1; - duration = { - y: 0, - d: toInt(match[DATE]) * sign, - h: toInt(match[HOUR]) * sign, - m: toInt(match[MINUTE]) * sign, - s: toInt(match[SECOND]) * sign, - ms: toInt(match[MILLISECOND]) * sign - }; - } else if (!!(match = isoDurationRegex.exec(input))) { - sign = (match[1] === '-') ? -1 : 1; - parseIso = function (inp) { - // We'd normally use ~~inp for this, but unfortunately it also - // converts floats to ints. - // inp may be undefined, so careful calling replace on it. - var res = inp && parseFloat(inp.replace(',', '.')); - // apply sign while we're at it - return (isNaN(res) ? 0 : res) * sign; - }; - duration = { - y: parseIso(match[2]), - M: parseIso(match[3]), - d: parseIso(match[4]), - h: parseIso(match[5]), - m: parseIso(match[6]), - s: parseIso(match[7]), - w: parseIso(match[8]) - }; - } else if (typeof duration === 'object' && - ('from' in duration || 'to' in duration)) { - diffRes = momentsDifference(moment(duration.from), moment(duration.to)); - - duration = {}; - duration.ms = diffRes.milliseconds; - duration.M = diffRes.months; - } - - ret = new Duration(duration); - - if (moment.isDuration(input) && input.hasOwnProperty('_locale')) { - ret._locale = input._locale; - } - - return ret; - }; - - // version number - moment.version = VERSION; - - // default format - moment.defaultFormat = isoFormat; - - // constant that refers to the ISO standard - moment.ISO_8601 = function () {}; - - // Plugins that add properties should also add the key here (null value), - // so we can properly clone ourselves. - moment.momentProperties = momentProperties; - - // This function will be called whenever a moment is mutated. - // It is intended to keep the offset in sync with the timezone. - moment.updateOffset = function () {}; - - // This function allows you to set a threshold for relative time strings - moment.relativeTimeThreshold = function (threshold, limit) { - if (relativeTimeThresholds[threshold] === undefined) { - return false; - } - if (limit === undefined) { - return relativeTimeThresholds[threshold]; - } - relativeTimeThresholds[threshold] = limit; - return true; - }; - - moment.lang = deprecate( - "moment.lang is deprecated. Use moment.locale instead.", - function (key, value) { - return moment.locale(key, value); - } - ); - - // This function will load locale and then set the global locale. If - // no arguments are passed in, it will simply return the current global - // locale key. - moment.locale = function (key, values) { - var data; - if (key) { - if (typeof(values) !== "undefined") { - data = moment.defineLocale(key, values); - } - else { - data = moment.localeData(key); - } - - if (data) { - moment.duration._locale = moment._locale = data; - } - } - - return moment._locale._abbr; - }; - - moment.defineLocale = function (name, values) { - if (values !== null) { - values.abbr = name; - if (!locales[name]) { - locales[name] = new Locale(); - } - locales[name].set(values); - - // backwards compat for now: also set the locale - moment.locale(name); - - return locales[name]; - } else { - // useful for testing - delete locales[name]; - return null; - } - }; - - moment.langData = deprecate( - "moment.langData is deprecated. Use moment.localeData instead.", - function (key) { - return moment.localeData(key); - } - ); - - // returns locale data - moment.localeData = function (key) { - var locale; - - if (key && key._locale && key._locale._abbr) { - key = key._locale._abbr; - } - - if (!key) { - return moment._locale; - } - - if (!isArray(key)) { - //short-circuit everything else - locale = loadLocale(key); - if (locale) { - return locale; - } - key = [key]; - } - - return chooseLocale(key); - }; - - // compare moment object - moment.isMoment = function (obj) { - return obj instanceof Moment || - (obj != null && obj.hasOwnProperty('_isAMomentObject')); - }; - - // for typechecking Duration objects - moment.isDuration = function (obj) { - return obj instanceof Duration; - }; - - for (i = lists.length - 1; i >= 0; --i) { - makeList(lists[i]); - } - - moment.normalizeUnits = function (units) { - return normalizeUnits(units); - }; - - moment.invalid = function (flags) { - var m = moment.utc(NaN); - if (flags != null) { - extend(m._pf, flags); - } - else { - m._pf.userInvalidated = true; - } - - return m; - }; - - moment.parseZone = function () { - return moment.apply(null, arguments).parseZone(); - }; - - moment.parseTwoDigitYear = function (input) { - return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); - }; - - /************************************ - Moment Prototype - ************************************/ - - - extend(moment.fn = Moment.prototype, { - - clone : function () { - return moment(this); - }, - - valueOf : function () { - return +this._d + ((this._offset || 0) * 60000); - }, - - unix : function () { - return Math.floor(+this / 1000); - }, - - toString : function () { - return this.clone().locale('en').format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ"); - }, - - toDate : function () { - return this._offset ? new Date(+this) : this._d; - }, - - toISOString : function () { - var m = moment(this).utc(); - if (0 < m.year() && m.year() <= 9999) { - return formatMoment(m, 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); - } else { - return formatMoment(m, 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'); - } - }, - - toArray : function () { - var m = this; - return [ - m.year(), - m.month(), - m.date(), - m.hours(), - m.minutes(), - m.seconds(), - m.milliseconds() - ]; - }, - - isValid : function () { - return isValid(this); - }, - - isDSTShifted : function () { - if (this._a) { - return this.isValid() && compareArrays(this._a, (this._isUTC ? moment.utc(this._a) : moment(this._a)).toArray()) > 0; - } - - return false; - }, - - parsingFlags : function () { - return extend({}, this._pf); - }, - - invalidAt: function () { - return this._pf.overflow; - }, - - utc : function (keepLocalTime) { - return this.zone(0, keepLocalTime); - }, - - local : function (keepLocalTime) { - if (this._isUTC) { - this.zone(0, keepLocalTime); - this._isUTC = false; - - if (keepLocalTime) { - this.add(this._d.getTimezoneOffset(), 'm'); - } - } - return this; - }, - - format : function (inputString) { - var output = formatMoment(this, inputString || moment.defaultFormat); - return this.localeData().postformat(output); - }, - - add : createAdder(1, 'add'), - - subtract : createAdder(-1, 'subtract'), - - diff : function (input, units, asFloat) { - var that = makeAs(input, this), - zoneDiff = (this.zone() - that.zone()) * 6e4, - diff, output; - - units = normalizeUnits(units); - - if (units === 'year' || units === 'month') { - // average number of days in the months in the given dates - diff = (this.daysInMonth() + that.daysInMonth()) * 432e5; // 24 * 60 * 60 * 1000 / 2 - // difference in months - output = ((this.year() - that.year()) * 12) + (this.month() - that.month()); - // adjust by taking difference in days, average number of days - // and dst in the given months. - output += ((this - moment(this).startOf('month')) - - (that - moment(that).startOf('month'))) / diff; - // same as above but with zones, to negate all dst - output -= ((this.zone() - moment(this).startOf('month').zone()) - - (that.zone() - moment(that).startOf('month').zone())) * 6e4 / diff; - if (units === 'year') { - output = output / 12; - } - } else { - diff = (this - that); - output = units === 'second' ? diff / 1e3 : // 1000 - units === 'minute' ? diff / 6e4 : // 1000 * 60 - units === 'hour' ? diff / 36e5 : // 1000 * 60 * 60 - units === 'day' ? (diff - zoneDiff) / 864e5 : // 1000 * 60 * 60 * 24, negate dst - units === 'week' ? (diff - zoneDiff) / 6048e5 : // 1000 * 60 * 60 * 24 * 7, negate dst - diff; - } - return asFloat ? output : absRound(output); - }, - - from : function (time, withoutSuffix) { - return moment.duration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); - }, - - fromNow : function (withoutSuffix) { - return this.from(moment(), withoutSuffix); - }, - - calendar : function (time) { - // We want to compare the start of today, vs this. - // Getting start-of-today depends on whether we're zone'd or not. - var now = time || moment(), - sod = makeAs(now, this).startOf('day'), - diff = this.diff(sod, 'days', true), - format = diff < -6 ? 'sameElse' : - diff < -1 ? 'lastWeek' : - diff < 0 ? 'lastDay' : - diff < 1 ? 'sameDay' : - diff < 2 ? 'nextDay' : - diff < 7 ? 'nextWeek' : 'sameElse'; - return this.format(this.localeData().calendar(format, this)); - }, - - isLeapYear : function () { - return isLeapYear(this.year()); - }, - - isDST : function () { - return (this.zone() < this.clone().month(0).zone() || - this.zone() < this.clone().month(5).zone()); - }, - - day : function (input) { - var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); - if (input != null) { - input = parseWeekday(input, this.localeData()); - return this.add(input - day, 'd'); - } else { - return day; - } - }, - - month : makeAccessor('Month', true), - - startOf : function (units) { - units = normalizeUnits(units); - // the following switch intentionally omits break keywords - // to utilize falling through the cases. - switch (units) { - case 'year': - this.month(0); - /* falls through */ - case 'quarter': - case 'month': - this.date(1); - /* falls through */ - case 'week': - case 'isoWeek': - case 'day': - this.hours(0); - /* falls through */ - case 'hour': - this.minutes(0); - /* falls through */ - case 'minute': - this.seconds(0); - /* falls through */ - case 'second': - this.milliseconds(0); - /* falls through */ - } - - // weeks are a special case - if (units === 'week') { - this.weekday(0); - } else if (units === 'isoWeek') { - this.isoWeekday(1); - } - - // quarters are also special - if (units === 'quarter') { - this.month(Math.floor(this.month() / 3) * 3); - } - - return this; - }, - - endOf: function (units) { - units = normalizeUnits(units); - return this.startOf(units).add(1, (units === 'isoWeek' ? 'week' : units)).subtract(1, 'ms'); - }, - - isAfter: function (input, units) { - units = typeof units !== 'undefined' ? units : 'millisecond'; - return +this.clone().startOf(units) > +moment(input).startOf(units); - }, - - isBefore: function (input, units) { - units = typeof units !== 'undefined' ? units : 'millisecond'; - return +this.clone().startOf(units) < +moment(input).startOf(units); - }, - - isSame: function (input, units) { - units = units || 'ms'; - return +this.clone().startOf(units) === +makeAs(input, this).startOf(units); - }, - - min: deprecate( - 'moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548', - function (other) { - other = moment.apply(null, arguments); - return other < this ? this : other; - } - ), - - max: deprecate( - 'moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548', - function (other) { - other = moment.apply(null, arguments); - return other > this ? this : other; - } - ), - - // keepLocalTime = true means only change the timezone, without - // affecting the local hour. So 5:31:26 +0300 --[zone(2, true)]--> - // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist int zone - // +0200, so we adjust the time as needed, to be valid. - // - // Keeping the time actually adds/subtracts (one hour) - // from the actual represented time. That is why we call updateOffset - // a second time. In case it wants us to change the offset again - // _changeInProgress == true case, then we have to adjust, because - // there is no such time in the given timezone. - zone : function (input, keepLocalTime) { - var offset = this._offset || 0, - localAdjust; - if (input != null) { - if (typeof input === 'string') { - input = timezoneMinutesFromString(input); - } - if (Math.abs(input) < 16) { - input = input * 60; - } - if (!this._isUTC && keepLocalTime) { - localAdjust = this._d.getTimezoneOffset(); - } - this._offset = input; - this._isUTC = true; - if (localAdjust != null) { - this.subtract(localAdjust, 'm'); - } - if (offset !== input) { - if (!keepLocalTime || this._changeInProgress) { - addOrSubtractDurationFromMoment(this, - moment.duration(offset - input, 'm'), 1, false); - } else if (!this._changeInProgress) { - this._changeInProgress = true; - moment.updateOffset(this, true); - this._changeInProgress = null; - } - } - } else { - return this._isUTC ? offset : this._d.getTimezoneOffset(); - } - return this; - }, - - zoneAbbr : function () { - return this._isUTC ? 'UTC' : ''; - }, - - zoneName : function () { - return this._isUTC ? 'Coordinated Universal Time' : ''; - }, - - parseZone : function () { - if (this._tzm) { - this.zone(this._tzm); - } else if (typeof this._i === 'string') { - this.zone(this._i); - } - return this; - }, - - hasAlignedHourOffset : function (input) { - if (!input) { - input = 0; - } - else { - input = moment(input).zone(); - } - - return (this.zone() - input) % 60 === 0; - }, - - daysInMonth : function () { - return daysInMonth(this.year(), this.month()); - }, - - dayOfYear : function (input) { - var dayOfYear = round((moment(this).startOf('day') - moment(this).startOf('year')) / 864e5) + 1; - return input == null ? dayOfYear : this.add((input - dayOfYear), 'd'); - }, - - quarter : function (input) { - return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); - }, - - weekYear : function (input) { - var year = weekOfYear(this, this.localeData()._week.dow, this.localeData()._week.doy).year; - return input == null ? year : this.add((input - year), 'y'); - }, - - isoWeekYear : function (input) { - var year = weekOfYear(this, 1, 4).year; - return input == null ? year : this.add((input - year), 'y'); - }, - - week : function (input) { - var week = this.localeData().week(this); - return input == null ? week : this.add((input - week) * 7, 'd'); - }, - - isoWeek : function (input) { - var week = weekOfYear(this, 1, 4).week; - return input == null ? week : this.add((input - week) * 7, 'd'); - }, - - weekday : function (input) { - var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; - return input == null ? weekday : this.add(input - weekday, 'd'); - }, - - isoWeekday : function (input) { - // behaves the same as moment#day except - // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) - // as a setter, sunday should belong to the previous week. - return input == null ? this.day() || 7 : this.day(this.day() % 7 ? input : input - 7); - }, - - isoWeeksInYear : function () { - return weeksInYear(this.year(), 1, 4); - }, - - weeksInYear : function () { - var weekInfo = this.localeData()._week; - return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); - }, - - get : function (units) { - units = normalizeUnits(units); - return this[units](); - }, - - set : function (units, value) { - units = normalizeUnits(units); - if (typeof this[units] === 'function') { - this[units](value); - } - return this; - }, - - // If passed a locale key, it will set the locale for this - // instance. Otherwise, it will return the locale configuration - // variables for this instance. - locale : function (key) { - if (key === undefined) { - return this._locale._abbr; - } else { - this._locale = moment.localeData(key); - return this; - } - }, - - lang : deprecate( - "moment().lang() is deprecated. Use moment().localeData() instead.", - function (key) { - if (key === undefined) { - return this.localeData(); - } else { - this._locale = moment.localeData(key); - return this; - } - } - ), - - localeData : function () { - return this._locale; - } - }); - - function rawMonthSetter(mom, value) { - var dayOfMonth; - - // TODO: Move this out of here! - if (typeof value === 'string') { - value = mom.localeData().monthsParse(value); - // TODO: Another silent failure? - if (typeof value !== 'number') { - return mom; - } - } - - dayOfMonth = Math.min(mom.date(), - daysInMonth(mom.year(), value)); - mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); - return mom; - } - - function rawGetter(mom, unit) { - return mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit](); - } - - function rawSetter(mom, unit, value) { - if (unit === 'Month') { - return rawMonthSetter(mom, value); - } else { - return mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); - } - } - - function makeAccessor(unit, keepTime) { - return function (value) { - if (value != null) { - rawSetter(this, unit, value); - moment.updateOffset(this, keepTime); - return this; - } else { - return rawGetter(this, unit); - } - }; - } - - moment.fn.millisecond = moment.fn.milliseconds = makeAccessor('Milliseconds', false); - moment.fn.second = moment.fn.seconds = makeAccessor('Seconds', false); - moment.fn.minute = moment.fn.minutes = makeAccessor('Minutes', false); - // Setting the hour should keep the time, because the user explicitly - // specified which hour he wants. So trying to maintain the same hour (in - // a new timezone) makes sense. Adding/subtracting hours does not follow - // this rule. - moment.fn.hour = moment.fn.hours = makeAccessor('Hours', true); - // moment.fn.month is defined separately - moment.fn.date = makeAccessor('Date', true); - moment.fn.dates = deprecate('dates accessor is deprecated. Use date instead.', makeAccessor('Date', true)); - moment.fn.year = makeAccessor('FullYear', true); - moment.fn.years = deprecate('years accessor is deprecated. Use year instead.', makeAccessor('FullYear', true)); - - // add plural methods - moment.fn.days = moment.fn.day; - moment.fn.months = moment.fn.month; - moment.fn.weeks = moment.fn.week; - moment.fn.isoWeeks = moment.fn.isoWeek; - moment.fn.quarters = moment.fn.quarter; - - // add aliased format methods - moment.fn.toJSON = moment.fn.toISOString; - - /************************************ - Duration Prototype - ************************************/ - - - function daysToYears (days) { - // 400 years have 146097 days (taking into account leap year rules) - return days * 400 / 146097; - } - - function yearsToDays (years) { - // years * 365 + absRound(years / 4) - - // absRound(years / 100) + absRound(years / 400); - return years * 146097 / 400; - } - - extend(moment.duration.fn = Duration.prototype, { - - _bubble : function () { - var milliseconds = this._milliseconds, - days = this._days, - months = this._months, - data = this._data, - seconds, minutes, hours, years = 0; - - // The following code bubbles up values, see the tests for - // examples of what that means. - data.milliseconds = milliseconds % 1000; - - seconds = absRound(milliseconds / 1000); - data.seconds = seconds % 60; - - minutes = absRound(seconds / 60); - data.minutes = minutes % 60; - - hours = absRound(minutes / 60); - data.hours = hours % 24; - - days += absRound(hours / 24); - - // Accurately convert days to years, assume start from year 0. - years = absRound(daysToYears(days)); - days -= absRound(yearsToDays(years)); - - // 30 days to a month - // TODO (iskren): Use anchor date (like 1st Jan) to compute this. - months += absRound(days / 30); - days %= 30; - - // 12 months -> 1 year - years += absRound(months / 12); - months %= 12; - - data.days = days; - data.months = months; - data.years = years; - }, - - abs : function () { - this._milliseconds = Math.abs(this._milliseconds); - this._days = Math.abs(this._days); - this._months = Math.abs(this._months); - - this._data.milliseconds = Math.abs(this._data.milliseconds); - this._data.seconds = Math.abs(this._data.seconds); - this._data.minutes = Math.abs(this._data.minutes); - this._data.hours = Math.abs(this._data.hours); - this._data.months = Math.abs(this._data.months); - this._data.years = Math.abs(this._data.years); - - return this; - }, - - weeks : function () { - return absRound(this.days() / 7); - }, - - valueOf : function () { - return this._milliseconds + - this._days * 864e5 + - (this._months % 12) * 2592e6 + - toInt(this._months / 12) * 31536e6; - }, - - humanize : function (withSuffix) { - var output = relativeTime(this, !withSuffix, this.localeData()); - - if (withSuffix) { - output = this.localeData().pastFuture(+this, output); - } - - return this.localeData().postformat(output); - }, - - add : function (input, val) { - // supports only 2.0-style add(1, 's') or add(moment) - var dur = moment.duration(input, val); - - this._milliseconds += dur._milliseconds; - this._days += dur._days; - this._months += dur._months; - - this._bubble(); - - return this; - }, - - subtract : function (input, val) { - var dur = moment.duration(input, val); - - this._milliseconds -= dur._milliseconds; - this._days -= dur._days; - this._months -= dur._months; - - this._bubble(); - - return this; - }, - - get : function (units) { - units = normalizeUnits(units); - return this[units.toLowerCase() + 's'](); - }, - - as : function (units) { - var days, months; - units = normalizeUnits(units); - - days = this._days + this._milliseconds / 864e5; - if (units === 'month' || units === 'year') { - months = this._months + daysToYears(days) * 12; - return units === 'month' ? months : months / 12; - } else { - days += yearsToDays(this._months / 12); - switch (units) { - case 'week': return days / 7; - case 'day': return days; - case 'hour': return days * 24; - case 'minute': return days * 24 * 60; - case 'second': return days * 24 * 60 * 60; - case 'millisecond': return days * 24 * 60 * 60 * 1000; - default: throw new Error('Unknown unit ' + units); - } - } - }, - - lang : moment.fn.lang, - locale : moment.fn.locale, - - toIsoString : deprecate( - "toIsoString() is deprecated. Please use toISOString() instead " + - "(notice the capitals)", - function () { - return this.toISOString(); - } - ), - - toISOString : function () { - // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js - var years = Math.abs(this.years()), - months = Math.abs(this.months()), - days = Math.abs(this.days()), - hours = Math.abs(this.hours()), - minutes = Math.abs(this.minutes()), - seconds = Math.abs(this.seconds() + this.milliseconds() / 1000); - - if (!this.asSeconds()) { - // this is the same as C#'s (Noda) and python (isodate)... - // but not other JS (goog.date) - return 'P0D'; - } - - return (this.asSeconds() < 0 ? '-' : '') + - 'P' + - (years ? years + 'Y' : '') + - (months ? months + 'M' : '') + - (days ? days + 'D' : '') + - ((hours || minutes || seconds) ? 'T' : '') + - (hours ? hours + 'H' : '') + - (minutes ? minutes + 'M' : '') + - (seconds ? seconds + 'S' : ''); - }, - - localeData : function () { - return this._locale; - } - }); - - function makeDurationGetter(name) { - moment.duration.fn[name] = function () { - return this._data[name]; - }; - } - - for (i in unitMillisecondFactors) { - if (unitMillisecondFactors.hasOwnProperty(i)) { - makeDurationGetter(i.toLowerCase()); - } - } - - moment.duration.fn.asMilliseconds = function () { - return this.as('ms'); - }; - moment.duration.fn.asSeconds = function () { - return this.as('s'); - }; - moment.duration.fn.asMinutes = function () { - return this.as('m'); - }; - moment.duration.fn.asHours = function () { - return this.as('h'); - }; - moment.duration.fn.asDays = function () { - return this.as('d'); - }; - moment.duration.fn.asWeeks = function () { - return this.as('weeks'); - }; - moment.duration.fn.asMonths = function () { - return this.as('M'); - }; - moment.duration.fn.asYears = function () { - return this.as('y'); - }; - - /************************************ - Default Locale - ************************************/ - - - // Set default locale, other locale will inherit from English. - moment.locale('en', { - ordinal : function (number) { - var b = number % 10, - output = (toInt(number % 100 / 10) === 1) ? 'th' : - (b === 1) ? 'st' : - (b === 2) ? 'nd' : - (b === 3) ? 'rd' : 'th'; - return number + output; - } - }); - - /* EMBED_LOCALES */ - - /************************************ - Exposing Moment - ************************************/ - - function makeGlobal(shouldDeprecate) { - /*global ender:false */ - if (typeof ender !== 'undefined') { - return; - } - oldGlobalMoment = globalScope.moment; - if (shouldDeprecate) { - globalScope.moment = deprecate( - 'Accessing Moment through the global scope is ' + - 'deprecated, and will be removed in an upcoming ' + - 'release.', - moment); - } else { - globalScope.moment = moment; - } - } - - // CommonJS module is defined - if (hasModule) { - module.exports = moment; - } else if (typeof define === 'function' && define.amd) { - define('moment', function (require, exports, module) { - if (module.config && module.config() && module.config().noGlobal === true) { - // release the global variable - globalScope.moment = oldGlobalMoment; - } - - return moment; - }); - makeGlobal(true); - } else { - makeGlobal(); - } -}).call(this); \ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.min.js b/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.min.js deleted file mode 100644 index c30bbff..0000000 --- a/common/src/main/webapp/thirdparty/bootstrap-daterangepicker/moment.min.js +++ /dev/null @@ -1,6 +0,0 @@ -//! moment.js -//! version : 2.8.1 -//! authors : Tim Wood, Iskren Chernev, Moment.js contributors -//! license : MIT -//! momentjs.com -(function(a){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error("Implement me")}}function c(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function d(a){rb.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}function e(a,b){var c=!0;return l(function(){return c&&(d(a),c=!1),b.apply(this,arguments)},b)}function f(a,b){nc[a]||(d(b),nc[a]=!0)}function g(a,b){return function(c){return o(a.call(this,c),b)}}function h(a,b){return function(c){return this.localeData().ordinal(a.call(this,c),b)}}function i(){}function j(a,b){b!==!1&&E(a),m(this,a),this._d=new Date(+a._d)}function k(a){var b=x(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=rb.localeData(),this._bubble()}function l(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return b.hasOwnProperty("toString")&&(a.toString=b.toString),b.hasOwnProperty("valueOf")&&(a.valueOf=b.valueOf),a}function m(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=b._pf),"undefined"!=typeof b._locale&&(a._locale=b._locale),Fb.length>0)for(c in Fb)d=Fb[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function n(a){return 0>a?Math.ceil(a):Math.floor(a)}function o(a,b,c){for(var d=""+Math.abs(a),e=a>=0;d.lengthd;d++)(c&&a[d]!==b[d]||!c&&z(a[d])!==z(b[d]))&&g++;return g+f}function w(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=gc[a]||hc[b]||b}return a}function x(a){var b,c,d={};for(c in a)a.hasOwnProperty(c)&&(b=w(c),b&&(d[b]=a[c]));return d}function y(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}rb[b]=function(e,f){var g,h,i=rb._locale[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=rb().utc().set(d,a);return i.call(rb._locale,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function z(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function A(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function B(a,b,c){return fb(rb([a,11,31+b-c]),b,c).week}function C(a){return D(a)?366:365}function D(a){return a%4===0&&a%100!==0||a%400===0}function E(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[yb]<0||a._a[yb]>11?yb:a._a[zb]<1||a._a[zb]>A(a._a[xb],a._a[yb])?zb:a._a[Ab]<0||a._a[Ab]>23?Ab:a._a[Bb]<0||a._a[Bb]>59?Bb:a._a[Cb]<0||a._a[Cb]>59?Cb:a._a[Db]<0||a._a[Db]>999?Db:-1,a._pf._overflowDayOfYear&&(xb>b||b>zb)&&(b=zb),a._pf.overflow=b)}function F(a){return null==a._isValid&&(a._isValid=!isNaN(a._d.getTime())&&a._pf.overflow<0&&!a._pf.empty&&!a._pf.invalidMonth&&!a._pf.nullInput&&!a._pf.invalidFormat&&!a._pf.userInvalidated,a._strict&&(a._isValid=a._isValid&&0===a._pf.charsLeftOver&&0===a._pf.unusedTokens.length)),a._isValid}function G(a){return a?a.toLowerCase().replace("_","-"):a}function H(a){for(var b,c,d,e,f=0;f0;){if(d=I(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&v(e,c,!0)>=b-1)break;b--}f++}return null}function I(a){var b=null;if(!Eb[a]&&Gb)try{b=rb.locale(),require("./locale/"+a),rb.locale(b)}catch(c){}return Eb[a]}function J(a,b){return b._isUTC?rb(a).zone(b._offset||0):rb(a).local()}function K(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function L(a){var b,c,d=a.match(Kb);for(b=0,c=d.length;c>b;b++)d[b]=mc[d[b]]?mc[d[b]]:K(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function M(a,b){return a.isValid()?(b=N(b,a.localeData()),ic[b]||(ic[b]=L(b)),ic[b](a)):a.localeData().invalidDate()}function N(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Lb.lastIndex=0;d>=0&&Lb.test(a);)a=a.replace(Lb,c),Lb.lastIndex=0,d-=1;return a}function O(a,b){var c,d=b._strict;switch(a){case"Q":return Wb;case"DDDD":return Yb;case"YYYY":case"GGGG":case"gggg":return d?Zb:Ob;case"Y":case"G":case"g":return _b;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?$b:Pb;case"S":if(d)return Wb;case"SS":if(d)return Xb;case"SSS":if(d)return Yb;case"DDD":return Nb;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Rb;case"a":case"A":return b._locale._meridiemParse;case"X":return Ub;case"Z":case"ZZ":return Sb;case"T":return Tb;case"SSSS":return Qb;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?Xb:Mb;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Mb;case"Do":return Vb;default:return c=new RegExp(X(W(a.replace("\\","")),"i"))}}function P(a){a=a||"";var b=a.match(Sb)||[],c=b[b.length-1]||[],d=(c+"").match(ec)||["-",0,0],e=+(60*d[1])+z(d[2]);return"+"===d[0]?-e:e}function Q(a,b,c){var d,e=c._a;switch(a){case"Q":null!=b&&(e[yb]=3*(z(b)-1));break;case"M":case"MM":null!=b&&(e[yb]=z(b)-1);break;case"MMM":case"MMMM":d=c._locale.monthsParse(b),null!=d?e[yb]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[zb]=z(b));break;case"Do":null!=b&&(e[zb]=z(parseInt(b,10)));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=z(b));break;case"YY":e[xb]=rb.parseTwoDigitYear(b);break;case"YYYY":case"YYYYY":case"YYYYYY":e[xb]=z(b);break;case"a":case"A":c._isPm=c._locale.isPM(b);break;case"H":case"HH":case"h":case"hh":e[Ab]=z(b);break;case"m":case"mm":e[Bb]=z(b);break;case"s":case"ss":e[Cb]=z(b);break;case"S":case"SS":case"SSS":case"SSSS":e[Db]=z(1e3*("0."+b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=P(b);break;case"dd":case"ddd":case"dddd":d=c._locale.weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=z(b));break;case"gg":case"GG":c._w=c._w||{},c._w[a]=rb.parseTwoDigitYear(b)}}function R(a){var c,d,e,f,g,h,i;c=a._w,null!=c.GG||null!=c.W||null!=c.E?(g=1,h=4,d=b(c.GG,a._a[xb],fb(rb(),1,4).year),e=b(c.W,1),f=b(c.E,1)):(g=a._locale._week.dow,h=a._locale._week.doy,d=b(c.gg,a._a[xb],fb(rb(),g,h).year),e=b(c.w,1),null!=c.d?(f=c.d,g>f&&++e):f=null!=c.e?c.e+g:g),i=gb(d,e,f,h,g),a._a[xb]=i.year,a._dayOfYear=i.dayOfYear}function S(a){var c,d,e,f,g=[];if(!a._d){for(e=U(a),a._w&&null==a._a[zb]&&null==a._a[yb]&&R(a),a._dayOfYear&&(f=b(a._a[xb],e[xb]),a._dayOfYear>C(f)&&(a._pf._overflowDayOfYear=!0),d=bb(f,0,a._dayOfYear),a._a[yb]=d.getUTCMonth(),a._a[zb]=d.getUTCDate()),c=0;3>c&&null==a._a[c];++c)a._a[c]=g[c]=e[c];for(;7>c;c++)a._a[c]=g[c]=null==a._a[c]?2===c?1:0:a._a[c];a._d=(a._useUTC?bb:ab).apply(null,g),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()+a._tzm)}}function T(a){var b;a._d||(b=x(a._i),a._a=[b.year,b.month,b.day,b.hour,b.minute,b.second,b.millisecond],S(a))}function U(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function V(a){if(a._f===rb.ISO_8601)return void Z(a);a._a=[],a._pf.empty=!0;var b,c,d,e,f,g=""+a._i,h=g.length,i=0;for(d=N(a._f,a._locale).match(Kb)||[],b=0;b0&&a._pf.unusedInput.push(f),g=g.slice(g.indexOf(c)+c.length),i+=c.length),mc[e]?(c?a._pf.empty=!1:a._pf.unusedTokens.push(e),Q(e,c,a)):a._strict&&!c&&a._pf.unusedTokens.push(e);a._pf.charsLeftOver=h-i,g.length>0&&a._pf.unusedInput.push(g),a._isPm&&a._a[Ab]<12&&(a._a[Ab]+=12),a._isPm===!1&&12===a._a[Ab]&&(a._a[Ab]=0),S(a),E(a)}function W(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function X(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Y(a){var b,d,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(0/0));for(f=0;fg)&&(e=g,d=b));l(a,d||b)}function Z(a){var b,c,d=a._i,e=ac.exec(d);if(e){for(a._pf.iso=!0,b=0,c=cc.length;c>b;b++)if(cc[b][1].exec(d)){a._f=cc[b][0]+(e[6]||" ");break}for(b=0,c=dc.length;c>b;b++)if(dc[b][1].exec(d)){a._f+=dc[b][0];break}d.match(Sb)&&(a._f+="Z"),V(a)}else a._isValid=!1}function $(a){Z(a),a._isValid===!1&&(delete a._isValid,rb.createFromInputFallback(a))}function _(b){var c,d=b._i;d===a?b._d=new Date:u(d)?b._d=new Date(+d):null!==(c=Hb.exec(d))?b._d=new Date(+c[1]):"string"==typeof d?$(b):t(d)?(b._a=d.slice(0),S(b)):"object"==typeof d?T(b):"number"==typeof d?b._d=new Date(d):rb.createFromInputFallback(b)}function ab(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function bb(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function cb(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function db(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function eb(a,b,c){var d=rb.duration(a).abs(),e=wb(d.as("s")),f=wb(d.as("m")),g=wb(d.as("h")),h=wb(d.as("d")),i=wb(d.as("M")),j=wb(d.as("y")),k=e0,k[4]=c,db.apply({},k)}function fb(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=rb(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function gb(a,b,c,d,e){var f,g,h=bb(a,0,1).getUTCDay();return h=0===h?7:h,c=null!=c?c:e,f=e-h+(h>d?7:0)-(e>h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:C(a-1)+g}}function hb(b){var c=b._i,d=b._f;return b._locale=b._locale||rb.localeData(b._l),null===c||d===a&&""===c?rb.invalid({nullInput:!0}):("string"==typeof c&&(b._i=c=b._locale.preparse(c)),rb.isMoment(c)?new j(c,!0):(d?t(d)?Y(b):V(b):_(b),new j(b)))}function ib(a,b){var c,d;if(1===b.length&&t(b[0])&&(b=b[0]),!b.length)return rb();for(c=b[0],d=1;d=0?"+":"-";return b+o(Math.abs(a),6)},gg:function(){return o(this.weekYear()%100,2)},gggg:function(){return o(this.weekYear(),4)},ggggg:function(){return o(this.weekYear(),5)},GG:function(){return o(this.isoWeekYear()%100,2)},GGGG:function(){return o(this.isoWeekYear(),4)},GGGGG:function(){return o(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return z(this.milliseconds()/100)},SS:function(){return o(z(this.milliseconds()/10),2)},SSS:function(){return o(this.milliseconds(),3)},SSSS:function(){return o(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+o(z(a/60),2)+":"+o(z(a)%60,2)},ZZ:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+o(z(a/60),2)+o(z(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},nc={},oc=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];kc.length;)tb=kc.pop(),mc[tb+"o"]=h(mc[tb],tb);for(;lc.length;)tb=lc.pop(),mc[tb+tb]=g(mc[tb],2);mc.DDDD=g(mc.DDD,3),l(i.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a){var b,c,d;for(this._monthsParse||(this._monthsParse=[]),b=0;12>b;b++)if(this._monthsParse[b]||(c=rb.utc([2e3,b]),d="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[b]=new RegExp(d.replace(".",""),"i")),this._monthsParse[b].test(a))return b},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=rb([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b){var c=this._calendar[a];return"function"==typeof c?c.apply(b):c},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",preparse:function(a){return a},postformat:function(a){return a},week:function(a){return fb(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),rb=function(b,d,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._i=b,g._f=d,g._l=e,g._strict=f,g._isUTC=!1,g._pf=c(),hb(g)},rb.suppressDeprecationWarnings=!1,rb.createFromInputFallback=e("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i)}),rb.min=function(){var a=[].slice.call(arguments,0);return ib("isBefore",a)},rb.max=function(){var a=[].slice.call(arguments,0);return ib("isAfter",a)},rb.utc=function(b,d,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=b,g._f=d,g._strict=f,g._pf=c(),hb(g).utc()},rb.unix=function(a){return rb(1e3*a)},rb.duration=function(a,b){var c,d,e,f,g=a,h=null;return rb.isDuration(a)?g={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(g={},b?g[b]=a:g.milliseconds=a):(h=Ib.exec(a))?(c="-"===h[1]?-1:1,g={y:0,d:z(h[zb])*c,h:z(h[Ab])*c,m:z(h[Bb])*c,s:z(h[Cb])*c,ms:z(h[Db])*c}):(h=Jb.exec(a))?(c="-"===h[1]?-1:1,e=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*c},g={y:e(h[2]),M:e(h[3]),d:e(h[4]),h:e(h[5]),m:e(h[6]),s:e(h[7]),w:e(h[8])}):"object"==typeof g&&("from"in g||"to"in g)&&(f=q(rb(g.from),rb(g.to)),g={},g.ms=f.milliseconds,g.M=f.months),d=new k(g),rb.isDuration(a)&&a.hasOwnProperty("_locale")&&(d._locale=a._locale),d},rb.version=ub,rb.defaultFormat=bc,rb.ISO_8601=function(){},rb.momentProperties=Fb,rb.updateOffset=function(){},rb.relativeTimeThreshold=function(b,c){return jc[b]===a?!1:c===a?jc[b]:(jc[b]=c,!0)},rb.lang=e("moment.lang is deprecated. Use moment.locale instead.",function(a,b){return rb.locale(a,b)}),rb.locale=function(a,b){var c;return a&&(c="undefined"!=typeof b?rb.defineLocale(a,b):rb.localeData(a),c&&(rb.duration._locale=rb._locale=c)),rb._locale._abbr},rb.defineLocale=function(a,b){return null!==b?(b.abbr=a,Eb[a]||(Eb[a]=new i),Eb[a].set(b),rb.locale(a),Eb[a]):(delete Eb[a],null)},rb.langData=e("moment.langData is deprecated. Use moment.localeData instead.",function(a){return rb.localeData(a)}),rb.localeData=function(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return rb._locale;if(!t(a)){if(b=I(a))return b;a=[a]}return H(a)},rb.isMoment=function(a){return a instanceof j||null!=a&&a.hasOwnProperty("_isAMomentObject")},rb.isDuration=function(a){return a instanceof k};for(tb=oc.length-1;tb>=0;--tb)y(oc[tb]);rb.normalizeUnits=function(a){return w(a)},rb.invalid=function(a){var b=rb.utc(0/0);return null!=a?l(b._pf,a):b._pf.userInvalidated=!0,b},rb.parseZone=function(){return rb.apply(null,arguments).parseZone()},rb.parseTwoDigitYear=function(a){return z(a)+(z(a)>68?1900:2e3)},l(rb.fn=j.prototype,{clone:function(){return rb(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=rb(this).utc();return 00:!1},parsingFlags:function(){return l({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(a){return this.zone(0,a)},local:function(a){return this._isUTC&&(this.zone(0,a),this._isUTC=!1,a&&this.add(this._d.getTimezoneOffset(),"m")),this},format:function(a){var b=M(this,a||rb.defaultFormat);return this.localeData().postformat(b)},add:r(1,"add"),subtract:r(-1,"subtract"),diff:function(a,b,c){var d,e,f=J(a,this),g=6e4*(this.zone()-f.zone());return b=w(b),"year"===b||"month"===b?(d=432e5*(this.daysInMonth()+f.daysInMonth()),e=12*(this.year()-f.year())+(this.month()-f.month()),e+=(this-rb(this).startOf("month")-(f-rb(f).startOf("month")))/d,e-=6e4*(this.zone()-rb(this).startOf("month").zone()-(f.zone()-rb(f).startOf("month").zone()))/d,"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:n(e)},from:function(a,b){return rb.duration({to:this,from:a}).locale(this.locale()).humanize(!b)},fromNow:function(a){return this.from(rb(),a)},calendar:function(a){var b=a||rb(),c=J(b,this).startOf("day"),d=this.diff(c,"days",!0),e=-6>d?"sameElse":-1>d?"lastWeek":0>d?"lastDay":1>d?"sameDay":2>d?"nextDay":7>d?"nextWeek":"sameElse";return this.format(this.localeData().calendar(e,this))},isLeapYear:function(){return D(this.year())},isDST:function(){return this.zone()+rb(a).startOf(b)},isBefore:function(a,b){return b="undefined"!=typeof b?b:"millisecond",+this.clone().startOf(b)<+rb(a).startOf(b)},isSame:function(a,b){return b=b||"ms",+this.clone().startOf(b)===+J(a,this).startOf(b)},min:e("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){return a=rb.apply(null,arguments),this>a?this:a}),max:e("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(a){return a=rb.apply(null,arguments),a>this?this:a}),zone:function(a,b){var c,d=this._offset||0;return null==a?this._isUTC?d:this._d.getTimezoneOffset():("string"==typeof a&&(a=P(a)),Math.abs(a)<16&&(a=60*a),!this._isUTC&&b&&(c=this._d.getTimezoneOffset()),this._offset=a,this._isUTC=!0,null!=c&&this.subtract(c,"m"),d!==a&&(!b||this._changeInProgress?s(this,rb.duration(d-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,rb.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(a){return a=a?rb(a).zone():0,(this.zone()-a)%60===0},daysInMonth:function(){return A(this.year(),this.month())},dayOfYear:function(a){var b=wb((rb(this).startOf("day")-rb(this).startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=fb(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")},isoWeekYear:function(a){var b=fb(this,1,4).year;return null==a?b:this.add(a-b,"y")},week:function(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")},isoWeek:function(a){var b=fb(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")},weekday:function(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return B(this.year(),1,4)},weeksInYear:function(){var a=this.localeData()._week;return B(this.year(),a.dow,a.doy)},get:function(a){return a=w(a),this[a]()},set:function(a,b){return a=w(a),"function"==typeof this[a]&&this[a](b),this},locale:function(b){return b===a?this._locale._abbr:(this._locale=rb.localeData(b),this)},lang:e("moment().lang() is deprecated. Use moment().localeData() instead.",function(b){return b===a?this.localeData():(this._locale=rb.localeData(b),this)}),localeData:function(){return this._locale}}),rb.fn.millisecond=rb.fn.milliseconds=mb("Milliseconds",!1),rb.fn.second=rb.fn.seconds=mb("Seconds",!1),rb.fn.minute=rb.fn.minutes=mb("Minutes",!1),rb.fn.hour=rb.fn.hours=mb("Hours",!0),rb.fn.date=mb("Date",!0),rb.fn.dates=e("dates accessor is deprecated. Use date instead.",mb("Date",!0)),rb.fn.year=mb("FullYear",!0),rb.fn.years=e("years accessor is deprecated. Use year instead.",mb("FullYear",!0)),rb.fn.days=rb.fn.day,rb.fn.months=rb.fn.month,rb.fn.weeks=rb.fn.week,rb.fn.isoWeeks=rb.fn.isoWeek,rb.fn.quarters=rb.fn.quarter,rb.fn.toJSON=rb.fn.toISOString,l(rb.duration.fn=k.prototype,{_bubble:function(){var a,b,c,d=this._milliseconds,e=this._days,f=this._months,g=this._data,h=0;g.milliseconds=d%1e3,a=n(d/1e3),g.seconds=a%60,b=n(a/60),g.minutes=b%60,c=n(b/60),g.hours=c%24,e+=n(c/24),h=n(nb(e)),e-=n(ob(h)),f+=n(e/30),e%=30,h+=n(f/12),f%=12,g.days=e,g.months=f,g.years=h},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return n(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*z(this._months/12)},humanize:function(a){var b=eb(this,!a,this.localeData());return a&&(b=this.localeData().pastFuture(+this,b)),this.localeData().postformat(b)},add:function(a,b){var c=rb.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=rb.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=w(a),this[a.toLowerCase()+"s"]()},as:function(a){var b,c;if(a=w(a),b=this._days+this._milliseconds/864e5,"month"===a||"year"===a)return c=this._months+12*nb(b),"month"===a?c:c/12;switch(b+=ob(this._months/12),a){case"week":return b/7;case"day":return b;case"hour":return 24*b;case"minute":return 24*b*60;case"second":return 24*b*60*60;case"millisecond":return 24*b*60*60*1e3;default:throw new Error("Unknown unit "+a)}},lang:rb.fn.lang,locale:rb.fn.locale,toIsoString:e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"},localeData:function(){return this._locale}});for(tb in fc)fc.hasOwnProperty(tb)&&pb(tb.toLowerCase());rb.duration.fn.asMilliseconds=function(){return this.as("ms")},rb.duration.fn.asSeconds=function(){return this.as("s")},rb.duration.fn.asMinutes=function(){return this.as("m")},rb.duration.fn.asHours=function(){return this.as("h")},rb.duration.fn.asDays=function(){return this.as("d")},rb.duration.fn.asWeeks=function(){return this.as("weeks")},rb.duration.fn.asMonths=function(){return this.as("M")},rb.duration.fn.asYears=function(){return this.as("y")},rb.locale("en",{ordinal:function(a){var b=a%10,c=1===z(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),Gb?module.exports=rb:"function"==typeof define&&define.amd?(define("moment",function(a,b,c){return c.config&&c.config()&&c.config().noGlobal===!0&&(vb.moment=sb),rb}),qb(!0)):qb()}).call(this); \ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/css/magic-check.css b/common/src/main/webapp/thirdparty/css/magic-check.css index 10178af..4a4ccf7 100644 --- a/common/src/main/webapp/thirdparty/css/magic-check.css +++ b/common/src/main/webapp/thirdparty/css/magic-check.css @@ -1,123 +1,123 @@ -@keyframes hover-color { - from { - border-color: #c0c0c0; } - to { - border-color: #3e97eb; } } - -.magic-radio, -.magic-checkbox { - position: absolute; - display: none; } - -.magic-radio[disabled], -.magic-checkbox[disabled] { - cursor: not-allowed; } - -.magic-radio + label, -.magic-checkbox + label { - position: relative; - display: block; - padding-left: 30px; - cursor: pointer; - vertical-align: middle; - font-weight:normal; - text-align: left;} -.magic-radio + label:hover:before, -.magic-checkbox + label:hover:before { - animation-duration: 0.4s; - animation-fill-mode: both; - animation-name: hover-color; } -.magic-radio + label:before, -.magic-checkbox + label:before { - position: absolute; - top: 0; - left: 0; - display: inline-block; - width: 20px; - height: 20px; - content: ''; - border: 1px solid #4ac9ff; } -.magic-radio + label:after, -.magic-checkbox + label:after { - position: absolute; - display: none; - content: ''; } - -.magic-radio[disabled] + label, -.magic-checkbox[disabled] + label { - cursor: not-allowed; - color: #e4e4e4; } -.magic-radio[disabled] + label:hover, .magic-radio[disabled] + label:before, .magic-radio[disabled] + label:after, -.magic-checkbox[disabled] + label:hover, -.magic-checkbox[disabled] + label:before, -.magic-checkbox[disabled] + label:after { - cursor: not-allowed; } -.magic-radio[disabled] + label:hover:before, -.magic-checkbox[disabled] + label:hover:before { - border: 1px solid #e4e4e4; - animation-name: none; } -.magic-radio[disabled] + label:before, -.magic-checkbox[disabled] + label:before { - border-color: #e4e4e4; } - -.magic-radio:checked + label:before, -.magic-checkbox:checked + label:before { - animation-name: none; } - -.magic-radio:checked + label:after, -.magic-checkbox:checked + label:after { - display: block; } - -.magic-radio + label:before { - border-radius: 50%; } - -.magic-radio + label:after { - top: 6px; - left: 6px; - width: 8px; - height: 8px; - border-radius: 50%; - background: #3e97eb; } - -.magic-radio:checked + label:before { - border: 1px solid #3e97eb; } - -.magic-radio:checked[disabled] + label:before { - border: 1px solid #c9e2f9; } - -.magic-radio:checked[disabled] + label:after { - background: #c9e2f9; } - -.magic-checkbox + label:before { - border-radius: 3px; } - -.magic-checkbox + label:after { - top: 2px; - left: 7px; - box-sizing: border-box; - width: 6px; - height: 12px; - transform: rotate(45deg); - border-width: 2px; - border-style: solid; - border-color: #fff; - border-top: 0; - border-left: 0; } - -.magic-checkbox:checked + label:before { - border: #3e97eb; - background: #3e97eb; } - -.magic-checkbox:checked[disabled] + label:before { - border: #c9e2f9; - background: #c9e2f9; } - -.radio-toolbar label { - background:Red; - border:1px solid green; - padding:2px 10px; -} - -.magic-radio:checked + label { - font-weight: bold; -} +@keyframes hover-color { + from { + border-color: #c0c0c0; } + to { + border-color: #3e97eb; } } + +.magic-radio, +.magic-checkbox { + position: absolute; + display: none; } + +.magic-radio[disabled], +.magic-checkbox[disabled] { + cursor: not-allowed; } + +.magic-radio + label, +.magic-checkbox + label { + position: relative; + display: block; + padding-left: 30px; + cursor: pointer; + vertical-align: middle; + font-weight:normal; + text-align: left;} +.magic-radio + label:hover:before, +.magic-checkbox + label:hover:before { + animation-duration: 0.4s; + animation-fill-mode: both; + animation-name: hover-color; } +.magic-radio + label:before, +.magic-checkbox + label:before { + position: absolute; + top: 0; + left: 0; + display: inline-block; + width: 20px; + height: 20px; + content: ''; + border: 1px solid #4ac9ff; } +.magic-radio + label:after, +.magic-checkbox + label:after { + position: absolute; + display: none; + content: ''; } + +.magic-radio[disabled] + label, +.magic-checkbox[disabled] + label { + cursor: not-allowed; + color: #e4e4e4; } +.magic-radio[disabled] + label:hover, .magic-radio[disabled] + label:before, .magic-radio[disabled] + label:after, +.magic-checkbox[disabled] + label:hover, +.magic-checkbox[disabled] + label:before, +.magic-checkbox[disabled] + label:after { + cursor: not-allowed; } +.magic-radio[disabled] + label:hover:before, +.magic-checkbox[disabled] + label:hover:before { + border: 1px solid #e4e4e4; + animation-name: none; } +.magic-radio[disabled] + label:before, +.magic-checkbox[disabled] + label:before { + border-color: #e4e4e4; } + +.magic-radio:checked + label:before, +.magic-checkbox:checked + label:before { + animation-name: none; } + +.magic-radio:checked + label:after, +.magic-checkbox:checked + label:after { + display: block; } + +.magic-radio + label:before { + border-radius: 50%; } + +.magic-radio + label:after { + top: 6px; + left: 6px; + width: 8px; + height: 8px; + border-radius: 50%; + background: #3e97eb; } + +.magic-radio:checked + label:before { + border: 1px solid #3e97eb; } + +.magic-radio:checked[disabled] + label:before { + border: 1px solid #c9e2f9; } + +.magic-radio:checked[disabled] + label:after { + background: #c9e2f9; } + +.magic-checkbox + label:before { + border-radius: 3px; } + +.magic-checkbox + label:after { + top: 2px; + left: 7px; + box-sizing: border-box; + width: 6px; + height: 12px; + transform: rotate(45deg); + border-width: 2px; + border-style: solid; + border-color: #fff; + border-top: 0; + border-left: 0; } + +.magic-checkbox:checked + label:before { + border: #3e97eb; + background: #3e97eb; } + +.magic-checkbox:checked[disabled] + label:before { + border: #c9e2f9; + background: #c9e2f9; } + +.radio-toolbar label { + background:Red; + border:1px solid green; + padding:2px 10px; +} + +.magic-radio:checked + label { + font-weight: bold; +} diff --git a/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.css b/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.css deleted file mode 100644 index 599fb0d..0000000 --- a/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.css +++ /dev/null @@ -1,240 +0,0 @@ -div.dataTables_length label { - float: left; - text-align: left; -} - -div.dataTables_length label .form-control { - display: inline-block; - width: auto; - vertical-align: middle; -} - -div.dataTables_length select { - width: 75px; -} - -div.dataTables_filter label { - float: right; -} - -div.dataTables_info { - position: relative; - top:15px; -} - -div.dataTables_paginate { - float: right; - margin: 0; -} - -table.table { - clear: both; - margin-bottom: 6px !important; - max-width: none !important; -} - -table.table thead .sorting, -table.table thead .sorting_asc, -table.table thead .sorting_desc, -table.table thead .sorting_asc_disabled, -table.table thead .sorting_desc_disabled { - cursor: pointer; - *cursor: hand; -} - -table.table thead .sorting { background: url('images/sort_both.png') no-repeat center right; } -table.table thead .sorting_asc { background: url('images/sort_asc.png') no-repeat center right; } -table.table thead .sorting_desc { background: url('images/sort_desc.png') no-repeat center right; } - -table.table thead .sorting_asc_disabled { background: url('images/sort_asc_disabled.png') no-repeat center right; } -table.table thead .sorting_desc_disabled { background: url('images/sort_desc_disabled.png') no-repeat center right; } - -table.dataTable th:active { - outline: none; -} - -table.dataTable tbody { - font-size:13px; -} - -/* Scrolling */ -div.dataTables_scroll { - margin-bottom: 5px; - margin-top: 5px; -} -div.dataTables_scrollHead table { - margin-bottom: 0 !important; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -div.dataTables_scrollHead table thead tr:last-child th:first-child, -div.dataTables_scrollHead table thead tr:last-child td:first-child { - border-bottom-left-radius: 0 !important; - border-bottom-right-radius: 0 !important; -} - -div.dataTables_scrollBody table { - border-top: none; - margin-bottom: 0 !important; -} - -div.dataTables_scrollBody tbody tr:first-child th, -div.dataTables_scrollBody tbody tr:first-child td { - border-top: none; -} - -/* -div.dataTables_scrollBody tbody tr td { - padding-left: 10px !important; - padding-right: 10px !important; -} -div.dataTables_scrollHeadInner table thead tr th, -div.dataTables_scrollBody table thead tr th{ - padding-left: 10px !important; - padding-right: 18px !important; - text-align: center !important; -}*/ - -div.dataTables_scrollFoot table { - border-top: none; -} - -/* - * TableTools styles - */ - -table.DTTT_selectable tbody tr { - cursor: pointer; - *cursor: hand; -} - -div.DTTT .btn { - color: #333 !important; - font-size: 12px; -} - -div.DTTT .btn:hover { - text-decoration: none !important; -} - - -ul.DTTT_dropdown.dropdown-menu a { - color: #333 !important; /* needed only when demo_page.css is included */ -} - -ul.DTTT_dropdown.dropdown-menu li:hover a { - background-color: #0088cc; - color: white !important; -} - -/* TableTools information display */ -div.DTTT_print_info.modal { - height: 150px; - margin-top: -75px; - text-align: center; -} - -div.DTTT_print_info h6 { - font-weight: normal; - font-size: 28px; - line-height: 28px; - margin: 1em; -} - -div.DTTT_print_info p { - font-size: 14px; - line-height: 20px; -} - - - -/* - * FixedColumns styles - */ -div.DTFC_LeftHeadWrapper table, -div.DTFC_LeftFootWrapper table, -table.DTFC_Cloned tr.even { - background-color: white; -} - -div.DTFC_LeftHeadWrapper table { - margin-bottom: 0 !important; - border-top-right-radius: 0 !important; - border-bottom-left-radius: 0 !important; - border-bottom-right-radius: 0 !important; -} - -div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child, -div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child { - border-bottom-left-radius: 0 !important; - border-bottom-right-radius: 0 !important; -} - -div.DTFC_LeftBodyWrapper table { - border-top: none; - margin-bottom: 0 !important; -} - -div.DTFC_LeftBodyWrapper tbody tr:first-child th, -div.DTFC_LeftBodyWrapper tbody tr:first-child td { - border-top: none; -} - -div.DTFC_LeftFootWrapper table { - border-top: none; -} - -/*浮动的确认åç¡®è®¤æ ·å¼ */ -td.buttonRounded { - background-color: #e5e5e5; - color: #333333; - border: 0px solid #b15a59; - -webkit-border-radius: 0px; - -moz-border-radius: 0px; - -ms-border-radius: 0px; - -o-border-radius: 0px; - border-radius: 0px; - font-family: Arial, Verdana, sans-serif; - font-size: 12px; - /*padding: 0 3px;*/ - padding-left:5px !important; - padding-right:5px !important; - height:30px !important; -} - -td.buttonRoundedDisabled { - opacity: .65; - height:30px !important; -} - -div.buttonConfirm{ - position: absolute; left: 0px; top: 0px; width: 120px; height: 30px; z-index: 201224; overflow: visible; - font-size: 13px; -} -div.buttonUnConfirm{ - position: absolute; left: 120px; top: 0px; width: 100px; height: 30px; z-index: 201242; overflow: visible; - font-size: 13px; -} -div.buttonDelete{ - position: absolute; left: 250px; top: 0px; width: 60px; height: 30px; z-index: 201260; overflow: visible; - font-size: 13px; -} - -button.btn-confirm { - width:90px; -} - -/*** -Extended pagination -***/ -.paging_bootstrap_extended { - margin: 0 !important; - padding: 0 !important; - float: none !important; - font-size: 13px; -} - -.modal-body { - font-size: 13px; -} \ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.js b/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.js deleted file mode 100644 index 5b95e4a..0000000 --- a/common/src/main/webapp/thirdparty/data-tables/DT_bootstrap.js +++ /dev/null @@ -1,363 +0,0 @@ -/* Set the defaults for DataTables initialisation */ - -$.extend( true, $.fn.dataTable.defaults, { - "sDom": "<'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12'f>r><'table-scrollable't><'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12'p>>", // horizobtal scrollable datatable - //"sDom": "<'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12'f>r>t<'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12'p>>", // defaukt datatable without horizobtal scroll - "sPaginationType": "bootstrap", - "oLanguage": { - "sLengthMenu": " _MENU_ records ", - } -} ); - - -/* Default class modification */ - -$.extend( $.fn.dataTableExt.oStdClasses, { - "sWrapper": "dataTables_wrapper" -} ); - - -/* API method to get paging information */ - -$.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings ) -{ - return { - "iStart": oSettings._iDisplayStart, - "iEnd": oSettings.fnDisplayEnd(), - "iLength": oSettings._iDisplayLength, - "iTotal": oSettings.fnRecordsTotal(), - "iFilteredTotal": oSettings.fnRecordsDisplay(), - "iPage": Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ), - "iTotalPages": Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength ) - }; -}; - - -/* Bootstrap style pagination control */ -$.extend( $.fn.dataTableExt.oPagination, { - "bootstrap": { - "fnInit": function( oSettings, nPaging, fnDraw ) { - var oLang = oSettings.oLanguage.oPaginate; - var fnClickHandler = function ( e ) { - e.preventDefault(); - if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) { - fnDraw( oSettings ); - } - }; - - // pagination with prev, next link icons - $(nPaging).append( - '
    '+ - ''+ - ''+ - '
' - ); - - var els = $('a', nPaging); - $(els[0]).bind( 'click.DT', { action: "previous" }, fnClickHandler ); - $(els[1]).bind( 'click.DT', { action: "next" }, fnClickHandler ); - }, - - "fnUpdate": function ( oSettings, fnDraw ) { - var iListLength = 5; - var oPaging = oSettings.oInstance.fnPagingInfo(); - var an = oSettings.aanFeatures.p; - var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2); - - if ( oPaging.iTotalPages < iListLength) { - iStart = 1; - iEnd = oPaging.iTotalPages; - } - else if ( oPaging.iPage <= iHalf ) { - iStart = 1; - iEnd = iListLength; - } else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) { - iStart = oPaging.iTotalPages - iListLength + 1; - iEnd = oPaging.iTotalPages; - } else { - iStart = oPaging.iPage - iHalf + 1; - iEnd = iStart + iListLength - 1; - } - - for ( i=0, iLen=an.length ; i'+j+'') - .insertBefore( $('li:last', an[i])[0] ) - .bind('click', function (e) { - e.preventDefault(); - oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength; - fnDraw( oSettings ); - } ); - } - - // Add / remove disabled classes from the static elements - if ( oPaging.iPage === 0 ) { - $('li:first', an[i]).addClass('disabled'); - } else { - $('li:first', an[i]).removeClass('disabled'); - } - - if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) { - $('li:last', an[i]).addClass('disabled'); - } else { - $('li:last', an[i]).removeClass('disabled'); - } - } - } - } -} ); - -/* Bootstrap style full number pagination control */ -$.extend( $.fn.dataTableExt.oPagination, { - "bootstrap_full_number": { - "fnInit": function( oSettings, nPaging, fnDraw ) { - var oLang = oSettings.oLanguage.oPaginate; - var fnClickHandler = function ( e ) { - e.preventDefault(); - if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) { - fnDraw( oSettings ); - } - }; - - $(nPaging).append( - '
    ' + - '' + - ''+ - '' + - '' + - '
' - ); - var els = $('a', nPaging); - $(els[0]).bind('click.DT', { action: "first" }, fnClickHandler); - $(els[1]).bind( 'click.DT', { action: "previous" }, fnClickHandler ); - $(els[2]).bind('click.DT', { action: "next" }, fnClickHandler); - $(els[3]).bind('click.DT', { action: "last" }, fnClickHandler); - }, - - "fnUpdate": function ( oSettings, fnDraw ) { - var iListLength = 5; - var oPaging = oSettings.oInstance.fnPagingInfo(); - var an = oSettings.aanFeatures.p; - var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2); - - if ( oPaging.iTotalPages < iListLength) { - iStart = 1; - iEnd = oPaging.iTotalPages; - } - else if ( oPaging.iPage <= iHalf ) { - iStart = 1; - iEnd = iListLength; - } else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) { - iStart = oPaging.iTotalPages - iListLength + 1; - iEnd = oPaging.iTotalPages; - } else { - iStart = oPaging.iPage - iHalf + 1; - iEnd = iStart + iListLength - 1; - } - - - - for ( i=0, iLen=an.length ; i'+j+'') - .insertBefore( $('li.next:first', an[i])[0] ) - .bind('click', function (e) { - e.preventDefault(); - oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength; - fnDraw( oSettings ); - } ); - } - - // Add / remove disabled classes from the static elements - if ( oPaging.iPage === 0 ) { - $('li.prev', an[i]).addClass('disabled'); - } else { - $('li.prev', an[i]).removeClass('disabled'); - } - - if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) { - $('li.next', an[i]).addClass('disabled'); - } else { - $('li.next', an[i]).removeClass('disabled'); - } - } - } - } -} ); - -/* Bootstrap style full number pagination control */ -$.extend( $.fn.dataTableExt.oPagination, { - "bootstrap_extended": { - "fnInit": function( oSettings, nPaging, fnDraw ) { - var oLang = oSettings.oLanguage.oPaginate; - var oPaging = oSettings.oInstance.fnPagingInfo(); - - var fnClickHandler = function ( e ) { - e.preventDefault(); - if ( oSettings.oApi._fnPageChange(oSettings, e.data.action) ) { - fnDraw( oSettings ); - } - }; - - $(nPaging).append( - '
' + oLang.sPage + ' ' + - '' + - '' + - ' ' + - oLang.sPageOf + ' ' + - '
' - ); - - var els = $('a', nPaging); - - $(els[0]).bind('click.DT', { action: "previous" }, fnClickHandler ); - $(els[1]).bind('click.DT', { action: "next" }, fnClickHandler); - - $('.pagination-panel-input', nPaging).bind('change.DT', function(e) { - var oPaging = oSettings.oInstance.fnPagingInfo(); - e.preventDefault(); - var page = parseInt($(this).val()); - if (page > 0 && page < oPaging.iTotalPages) { - if ( oSettings.oApi._fnPageChange(oSettings, page-1) ) { - fnDraw( oSettings ); - } - } else { - $(this).val(oPaging.iPage + 1); - } - }); - - $('.pagination-panel-input', nPaging).bind('keypress.DT', function(e) { - var oPaging = oSettings.oInstance.fnPagingInfo(); - if (e.which == 13) { - var page = parseInt($(this).val()); - if (page > 0 && page < oSettings.oInstance.fnPagingInfo().iTotalPages) { - if ( oSettings.oApi._fnPageChange(oSettings, page-1) ) { - fnDraw( oSettings ); - } - } else { - $(this).val(oPaging.iPage + 1); - } - e.preventDefault(); - } - }); - }, - - "fnUpdate": function ( oSettings, fnDraw ) { - var iListLength = 5; - var oPaging = oSettings.oInstance.fnPagingInfo(); - var an = oSettings.aanFeatures.p; - var i, j, sClass, iStart, iEnd, iHalf=Math.floor(iListLength/2); - - if ( oPaging.iTotalPages < iListLength) { - iStart = 1; - iEnd = oPaging.iTotalPages; - } - else if ( oPaging.iPage <= iHalf ) { - iStart = 1; - iEnd = iListLength; - } else if ( oPaging.iPage >= (oPaging.iTotalPages-iHalf) ) { - iStart = oPaging.iTotalPages - iListLength + 1; - iEnd = oPaging.iTotalPages; - } else { - iStart = oPaging.iPage - iHalf + 1; - iEnd = iStart + iListLength - 1; - } - - - for ( i=0, iLen=an.length ; i'+j+'') - .insertBefore( $('li.next:first', an[i])[0] ) - .bind('click', function (e) { - e.preventDefault(); - oSettings._iDisplayStart = (parseInt($('a', this).text(),10)-1) * oPaging.iLength; - fnDraw( oSettings ); - } ); - } - - // Add / remove disabled classes from the static elements - if ( oPaging.iPage === 0 ) { - $('a.prev', an[i]).addClass('disabled'); - } else { - $('a.prev', an[i]).removeClass('disabled'); - } - - if ( oPaging.iPage === oPaging.iTotalPages-1 || oPaging.iTotalPages === 0 ) { - $('a.next', an[i]).addClass('disabled'); - } else { - $('a.next', an[i]).removeClass('disabled'); - } - } - } - } -} ); - -/* - * TableTools Bootstrap compatibility - * Required TableTools 2.1+ - */ -if ( $.fn.DataTable.TableTools ) { - // Set the classes that TableTools uses to something suitable for Bootstrap - $.extend( true, $.fn.DataTable.TableTools.classes, { - "container": "btn-group", - "buttons": { - "normal": "btn default", - "disabled": "btn disabled" - }, - "collection": { - "container": "DTTT_dropdown dropdown-menu", - "buttons": { - "normal": "", - "disabled": "disabled" - } - } - } ); - - // Have the collection use a bootstrap compatible dropdown - $.extend( true, $.fn.DataTable.TableTools.DEFAULTS.oTags, { - "collection": { - "container": "ul", - "button": "li", - "liner": "a" - } - } ); -} \ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/data-tables/DataTableICT.js b/common/src/main/webapp/thirdparty/data-tables/DataTableICT.js deleted file mode 100644 index 6ee0d27..0000000 --- a/common/src/main/webapp/thirdparty/data-tables/DataTableICT.js +++ /dev/null @@ -1,1459 +0,0 @@ -/*** - Wrapper/Helper Class for datagrid based on jQuery Datatable Plugin - ***/ -var DatatableICT = function () { - - var contextData; - var tableOptions; // main options - var dataTable; // datatable object - var table; // actual table jquery object - var tableContainer; // actual table container object - var tableWrapper; // actual table wrapper jquery object - var tableInitialized = false; - var ajaxParams = []; // set filter mode - var columns; - var xsHiddenColumns; - var smHiddenColumns; - var columnMaxLength = 30; - var columnsTooLong; - var hidden_xs_maxWidth = 768; - var hidden_sm_maxWidth = 991; - - var openRowFlag = false; - var rowOverFlag = false; - var rowCheckable = false; - - var aTargetsAll; - var sTotalRecordsSource; - var totalRecords; - var tableHeight; - - var requestType="GET"; - var callbackList = []; - var checkedRowDatas = []; - var currentPageData; - - var includedInXsHiddenColumns = function(columnId){ - for(var i=0;i tr > td:nth-child(1) input[type="checkbox"]:checked', table).size(); - var text = tableOptions.dataTable.oLanguage.sGroupActions; - if (selected > 0) { - $('.table-group-actions > span', tableWrapper).text(text.replace("_TOTAL_", selected)); - } else { - $('.table-group-actions > span', tableWrapper).text(""); - } - } - - var jsonObjectToArray = function(json, columns, iDraw){ - var jsonToDatatable = {aaData:[], sEcho:iDraw, iTotalRecords:0, iTotalDisplayRecords:0 }; - //获å–æ•°æ®çš„属性 - var dataField; - //性能的情况 - if(json.data){ - dataField = json.data; - } - //告警的情况 - if(json.response && json.response.data){ - dataField = json.response.data; - } - for(var i=0; i"); - } - if(openRowFlag){ - jsonToDatatable.aaData[i].push(""); - } - for(var j=0; j= hidden_xs_maxWidth && $(window).width() < hidden_sm_maxWidth && includedInSmHiddenColumns(columns[j].columnId )){ - /*éšè—pad尺寸需è¦éšè—的列*/ - }else if($(window).width() < hidden_xs_maxWidth && includedInXsHiddenColumns(columns[j].columnId )){ - /*éšè—手机尺寸需è¦éšè—的列*/ - }else{ - var currentColumnId = columns[j].columnId; - if(jQuery.inArray(currentColumnId, columnsTooLong) > -1){ - var rawText = ""; - for(var k=0;k columnMaxLength){ - jsonToDatatable.aaData[i].push(rawText.slice(0, columnMaxLength) + '...'); - }else{ - jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]); - } - } else { - jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]); - } - - } - } - } - jsonToDatatable.sEcho++; - //å–得总行数 - var totalRow = 0; - if(requestType == "POST"){ //性能的情况å•ç‹¬å‘请求获得总行数 - totalRow = totalRecords; - }else{ - var totalRecordsSource = eval('json.' + sTotalRecordsSource); - if(totalRecordsSource && totalRecordsSource.length >0){ - totalRow = parseInt(totalRecordsSource); - } - } - if(isNaN(totalRow)){ - alert('All rows counting number got fail!'); - }else{ - jsonToDatatable.iTotalRecords = totalRow; - jsonToDatatable.iTotalDisplayRecords = totalRow; - } - return jsonToDatatable; - } - - var singleAlarmDel = function(divOverlay){ - - //æ ¹æ®æµ®åŠ¨æ¡†çš„当å‰id获å–需è¦åˆ é™¤çš„è¡Œ - var trId = divOverlay.attr('id_tr'); - tr=$('tr#' + trId); - var tds = $(tr).children(); - var tdAlarmId = ""; - if(rowCheckable){ - tdAlarmId = $(tds.eq(2)).text(); - }else{ - tdAlarmId = $(tds.eq(1)).text(); - } - - var data= { - "alarmId":[parseInt(tdAlarmId)] - }; - - var sSource = "/web/rest/web/fm/curalarms?data=" + JSON.stringify(data) + "&_operationType=remove&_dataSource=isc_PageRestDataSource_0&isc_metaDataPrefix=_&isc_dataFormat=json"; - - $.ajax( { - "dataType": 'json', - "type": "DELETE", - "url": sSource, - "data" : null, - "contentType" : 'application/json; charset=utf-8', - "success": function(json) { - if(json.response.status == 0){ - var resRowObject = json.response.data[0]; - //alert('删除æˆåŠŸ'); - } - if(json.response.status == -1){ - //alert('删除失败'); - } - }, - "error": function() { - alert('Communication Error!'); - } - } ); - } - - var singleAlarmAckUnAck = function(divOverlay, ackType){ - - //æ ¹æ®æµ®åŠ¨æ¡†çš„当å‰id获å–需è¦ç¡®è®¤çš„è¡Œ - var trId = divOverlay.attr('id_tr'); - var tr = $('tr#' + trId); - - //å–å¾—éšè—的头部表格的相应行 - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', contextData.wrapperDivContext); - //var trHead = $('tbody > tr:nth-child(' + trId + ')', $tableHead); - var trHead = $('tr#' + trId.replace('body', 'head'), $tableHead); - var tdDivs = $('td > div', trHead); - - var tds = $(tr).children(); - var tdAlarmId = ""; - if(rowCheckable){ - tdAlarmId = $(tds.eq(2)).text(); - }else{ - tdAlarmId = $(tds.eq(1)).text(); - } - - var aoData = - { - "dataSource":"isc_PageRestDataSource_0", - "operationType":"update", - "componentId":"isc_com_zte_ums_aos_fm_view_eventview_table_AlarmTable_0", - "data":{ - "viewType":1, - "state":ackType, - "alarmId":[ - parseInt(tdAlarmId) - ] - }, - "oldValues":null - }; - - var sSource = "/web/rest/web/fm/curalarms?isc_dataFormat=json"; - - $.ajax( { - "dataType": 'json', - "type": "PUT", - "url": sSource, - "contentType": 'application/json; charset=utf-8', - "data": JSON.stringify(aoData), - "success": function(json) { - if(callbackList[1]){ - json = callbackList[1](json); - } - if(json.response.status == 0){ - var resRowObject = json.response.data[0]; - var columnsCopy = $.extend(true, [], columns); - //éšè—列的情况下需è¦ç‰¹æ®Šå¤„ç† - if($(window).width()>=hidden_xs_maxWidth && $(window).width() -1) { - var rawText = ""; - for(var k=0;k columnMaxLength){ - $(tds.eq(i)).html(rawText.slice(0, columnMaxLength) + '...'); - $(tdDivs.eq(i)).html(rawText.slice(0, columnMaxLength) + '...'); - }else{ - $(tds.eq(i)).html(resRowObject[currentColumnId]); - $(tdDivs.eq(i)).html(resRowObject[currentColumnId]); - } - } else { - $(tds.eq(i)).html(resRowObject[currentColumnId]); - $(tdDivs.eq(i)).html(resRowObject[currentColumnId]); - } - } - //更新缓存中的当å‰è¡Œæ•°æ® - for (var t = 0; t < dataTable.datas.length; t++) { - var temp = dataTable.datas[t]; - if (temp.alarmId == resRowObject['alarmId']) { - dataTable.datas[t] = resRowObject; - break; - } - } - } - if(json.response.status == -1){ - $('div#myModalConfirm' + contextData.curentDatableId).modal({ - keyboard: false, - backdrop: 'static' - }); - $('span#alarm_number' + contextData.curentDatableId).html(tdAlarmId); - //å›½é™…åŒ–ä¿¡æ¯ - if(ackType==1){ - $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_ok').replace(/\"/g,"").replace(";", "")); - }else{ - $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_un').replace(/\"/g,"").replace(";", "")); - } - } - }, - "error": function() { - alert('Communication Error!'); - } - } ); - } - - var addRowOverlap = function(){ - var $tableData = $('table#datatable_ajax' + contextData.curentDatableId); - //å–å¾—éšè—的头部表格的相应行 - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', contextData.wrapperDivContext); - var trHeads = $tableHead.find('tr').get(); - $.each( trHeads, function( index, trHead ){ - $(trHead).attr('id', 'headTableTR' + index); - }); - //å–得浮动div - var $divOverlay = $('div#divOverlay' + contextData.curentDatableId); - var divScrollHead = $('div.dataTables_scrollHead', contextData.wrapperDivContext); - var divRightPadding = $('div#divRightPadding' + contextData.curentDatableId); - //å–表头下边沿ä½ç½® - var tableHeadBottomHeight = $(divScrollHead).position().top + $(divScrollHead).height(); - var tableBottom = $tableData.position().top + $tableData.height() + 3; - //å–表格å³è¾¹æ²¿ä½ç½® - var tableRightEdgePosition = $(divRightPadding).position().left; - var trs = $tableData.find('tr').get(); - $.each( trs, function( index, tr ){ - var tdEmpty = $('td.dataTables_empty',tr); - if(!tdEmpty || tdEmpty.length ==0 ){ - $(tr).attr('id', 'bodyTableTR' + index + contextData.curentDatableId); - //$divOverlay.attr('id_tr', 'bodyTableTR' + index); - $(tr).one('hover', function(){ - var rowPos = $(tr).position(); - var currentTrTop = rowPos.top; - //var bottomLeft = rowPos.left; - $divOverlay.attr('id_tr', 'bodyTableTR' + index + contextData.curentDatableId); - $divOverlay.css({ - display: 'block', - position: 'absolute', - 'background-color': '#e5e5e5', - //opacity: 0.7, - border: 'solid 0px', - top: currentTrTop + 6, - left: tableRightEdgePosition - 308, - width: 300, - height: 30 - }); - //防止浮动框跳出表格内容区域 - if( $divOverlay.position().top < tableHeadBottomHeight || $divOverlay.position().top + $divOverlay.height() > tableBottom){ - $divOverlay.css('display', 'none'); - } - var buttonConfirm = $('div#buttonConfirm', $divOverlay); - var buttonUnConfirm = $('div#buttonUnConfirm', $divOverlay); - $(buttonConfirm).one('click', function(){ - var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRounded'); - var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRoundedDisabled'); - if(buttonRoundedTDsConfirm && buttonRoundedTDsConfirm.length > 0){ - $.each(buttonRoundedTDsConfirm, function(index, td){ - $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled'); - }); - $.each(buttonRoundedTDsUnConfirm, function(index, td){ - $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded'); - }); - $divOverlay.css('display', 'none'); - singleAlarmAckUnAck($divOverlay, 1); - } - }); - $(buttonUnConfirm).one('click', function(){ - var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRounded'); - var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRoundedDisabled'); - if(buttonRoundedTDsUnConfirm && buttonRoundedTDsUnConfirm.length > 0){ - $.each(buttonRoundedTDsUnConfirm, function(index, td){ - $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled'); - }); - $.each(buttonRoundedTDsConfirm, function(index, td){ - $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded'); - }); - $divOverlay.css('display', 'none'); - singleAlarmAckUnAck($divOverlay, 2); - } - }); - var buttonDelete = $('div#buttonDelete', $divOverlay); - $(buttonDelete).die().live('click', function(){ - //弹出删除确认对è¯æ¡† - $('div#myModal' + contextData.curentDatableId).modal({ - keyboard: false, - backdrop: 'static' - }); - $('#delConfirm' + contextData.curentDatableId).die().live('click', function(){ - $divOverlay.css('display', 'none'); - dataTable.fnClose(tr); - $(tr).remove(); - //删除表头表格的相应行 - $('tr#' + $(tr).attr('id').replace('body', 'head'), $tableHead).remove(); - //删除åŽç«¯æ•°æ® - singleAlarmDel($divOverlay); - //刷新表格 - dataTable.fnAdjustColumnSizing(); - }); - }); - //展开行的情况éšè— - $('td.details > table.detailTable').on('hover', function(){ - $divOverlay.css('display', 'none'); - }); - }); - } - }); - } - - return { - - //main function to initiate the module - init: function (options, columnsDefined, xsHiddenColumnsDefined, smHiddenColumnsDefined) { - - if (!$().dataTable) { - return; - } - - var the = this; - - //记录需è¦ç¦æŽ‰é»˜è®¤æŽ’åºçš„列 - var aTargets = []; - var targetsLength = columnsDefined.length; - if(rowCheckable)targetsLength++; - if(openRowFlag)targetsLength++; - for(var i=0;i<'col-md-4 col-sm-12'<'table-group-actions pull-right'>>r><'table-scrollable't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>", // datatable layout - - "aoColumnDefs" : [{ // define columns sorting options(by default all columns are sortable extept the first checkbox column) - 'bSortable' : false, - 'aTargets' : aTargets - }], - - "bAutoWidth": false, // disable fixed width and enable fluid table - //"bSortCellsTop": true, // make sortable only the first row in thead - "sPaginationType": "bootstrap_extended", // pagination type(bootstrap, bootstrap_full_number or bootstrap_extended) - "bProcessing": true, // enable/disable display message box on record load - "bServerSide": true, // enable/disable server side ajax loading - "sAjaxSource": "", // define ajax source URL - //"sServerMethod": "GET", - - // handle ajax request - "fnServerData": function ( sSource, aoData, fnCallback, oSettings ) { - //for ICT Paging - //var startIndex = aoData[3].value;//"iDisplayStart" - //var pageLength = aoData[4].value;//"iDisplayLength" - var oPaging = oSettings.oInstance.fnPagingInfo(); - //var startIndex = oPaging.iStart; - var pageLength = oPaging.iLength; - var curPageNo = oPaging.iPage + 1; - - for(var k=aoData.length-1;k>=0;k--){ - var flag = -1; - if(aoData[k].name=='pageSize'){ - aoData[k].value=pageLength; - flag++; - } - if(aoData[k].name=='pageNo'){ - aoData[k].value=curPageNo; - flag++ - } - if(flag == 1)break; - } - - if(requestType == "POST"){ - - var postData; - for(var k=aoData.length-1;k>=0;k--){ - if(aoData[k].name=='data'){ - postData = aoData[k].value; - postData.pageSize = pageLength; - postData.pageNo = curPageNo; - break; - } - } - - oSettings.jqXHR = $.ajax( { - "dataType": 'json', - "type": "POST", - "url": sSource, - "data": JSON.stringify(postData), - "contentType": 'application/json; charset=utf-8', - "success": function(res, textStatus, jqXHR) { - if (res.sMessage) { - onapFrameWork.alert({type: (res.sStatus == 'OK' ? 'success' : 'danger'), icon: (res.sStatus == 'OK' ? 'check' : 'warning'), message: res.sMessage, container: tableWrapper, place: 'prepend'}); - } - if ($('.group-checkable', tableContainer).size() === 1) { - $('.group-checkable', tableContainer).attr("checked", false); - $.uniform.update($('.group-checkable', tableContainer)); - } - if (tableOptions.onSuccess) { - tableOptions.onSuccess.call(the); - } - - if(callbackList[1]){ - res = callbackList[1](res); - } - - //转æ¢è¿”回数æ®ç»™datatable - res = jsonObjectToArray(res, columns, oSettings.iDraw); - - //é‡ç»˜è¡¨æ ¼ - fnCallback(res, textStatus, jqXHR); - }, - "error": function() { - if (tableOptions.onError) { - tableOptions.onError.call(the); - } - onapFrameWork.alert({type: 'danger', icon: 'warning', message: tableOptions.dataTable.oLanguage.sAjaxRequestGeneralError, container: tableWrapper, place: 'prepend'}); - $('.dataTables_processing', tableWrapper).remove(); - } - } ); - - } else { - - oSettings.jqXHR = $.ajax( { - "dataType": 'json', - "type": "GET", - "url": sSource, - "data": aoData, - "success": function(res, textStatus, jqXHR) { - if (res.sMessage) { - onapFrameWork.alert({type: (res.sStatus == 'OK' ? 'success' : 'danger'), icon: (res.sStatus == 'OK' ? 'check' : 'warning'), message: res.sMessage, container: tableWrapper, place: 'prepend'}); - } - if ($('.group-checkable', tableContainer).size() === 1) { - $('.group-checkable', tableContainer).attr("checked", false); - $.uniform.update($('.group-checkable', tableContainer)); - } - if (tableOptions.onSuccess) { - tableOptions.onSuccess.call(the); - } - //ä¿å­˜æ•°æ®åœ¨dataTable对象中给行详细信æ¯é¢æ¿ç”¨ - if(res.response){ //告警的情况,返回数æ®åœ¨response属性里 - dataTable.datas = res.response.data; - if(res.response.status < 0){ - alert(res.response.data); - return; - } - } - - //ä¿å­˜å½“å‰é¡µåŽŸå§‹æ•°æ®çš„备份 - currentPageData = $.extend(true, {}, res.response.data);; - - if(callbackList[1]){ - res = callbackList[1](res); - } - - //转æ¢è¿”回数æ®ç»™datatable - res = jsonObjectToArray(res, columns, oSettings.iDraw); - - //é‡ç»˜è¡¨æ ¼ - fnCallback(res, textStatus, jqXHR); - }, - "error": function() { - if (tableOptions.onError) { - tableOptions.onError.call(the); - } - onapFrameWork.alert({type: 'danger', icon: 'warning', message: tableOptions.dataTable.oLanguage.sAjaxRequestGeneralError, container: tableWrapper, place: 'prepend'}); - $('.dataTables_processing', tableWrapper).remove(); - } - } ); - } - - }, - - // pass additional parameter - "fnServerParams": function ( aoData ) { - //here can be added an external ajax request parameters. - //for(var i in ajaxParams) { - for(var i=0; i table.dataTable', tableWrapper); - var tbodyHead = $('tbody', $tableHead); - if(tbodyHead && tbodyHead.length >0){ - $(tbodyHead).remove(); - } - - var $tableBody = $('table#datatable_ajax' + contextData.curentDatableId, tableWrapper); - var trIn = $('thead > tr:nth-child(1)', $tableHead); - var trBodyHead = $('thead > tr:nth-child(1)', $tableBody); - var tds = $(trIn).children(); - var ths = $(trBodyHead).children(); - for(var k=0;k' + tds.eq(k).html() + ''); - } - var bodyRows = $('tbody > tr', $tableBody); - for(var i=0;i' + tds.eq(j).html() + ''); - $(tds.eq(j)).height('0px'); - $(tds.eq(j)).css('padding-top','0px'); - $(tds.eq(j)).css('padding-bottom','0px'); - $(tds.eq(j)).css('border-top-width','0px'); - $(tds.eq(j)).css('border-bottom-width','0px'); - } - $(rowClone).height('0px'); - $tableHead.append($(rowClone).prop("outerHTML")); - } - - $('div.dataTables_scrollBody', tableWrapper).css('width','100%'); - $('div.dataTables_scrollHead', tableWrapper).css('width','98.5%'); - $('div.dataTables_scrollHeadInner', tableWrapper).css('padding-right', 0); - - //添加浮动确认å确认按钮 - if(rowOverFlag){ - addRowOverlap(); - } - - //设置表格本体高度 - $('div.dataTables_scrollBody', tableWrapper).css('height', tableHeight); - } - } - }, options); - - tableOptions = options; - - columns = columnsDefined; - xsHiddenColumns = xsHiddenColumnsDefined; - smHiddenColumns = smHiddenColumnsDefined; - // create table's jquery object - table = $(options.src); - tableContainer = table.parents("div#table-container" + contextData.curentDatableId); - // apply the special class that used to restyle the default datatable - - $.fn.dataTableExt.oStdClasses.sWrapper = $.fn.dataTableExt.oStdClasses.sWrapper + " dataTables_extended_wrapper"; - - // initialize a datatable - dataTable = table.dataTable(options.dataTable); - - tableWrapper = table.parents('div.dataTables_wrapper', tableContainer); - - // modify table per page dropdown input by appliying some classes - $('.dataTables_length select', tableWrapper).addClass("form-control input-xsmall input-sm"); - - // handle group checkboxes check/uncheck - $('.group-checkable', tableContainer).change(function () { - var set = $('tbody > tr > td:nth-child(1) input[type="checkbox"]', table); - var checked = $(this).is(":checked"); - $(set).each(function () { - $(this).attr("checked", checked); - }); - $.uniform.update(set); - countSelectedRecords(); - }); - - // handle row's checkbox click - table.on('change', 'tbody > tr > td:nth-child(1) input[type="checkbox"]', function(){ - countSelectedRecords(); - }); - - //if ($.browser.safari) { - // $('.table-container').css('width','100%'); - //} - //填充表头å³è¾¹ç•Œ - $('div.dataTables_scrollHead', tableContainer).css('display','inline-block'); - //var dataTables_scrollHead_height = $('.dataTables_scrollHead').css( "height" ); - $("div.dataTables_scrollHead", tableContainer).after("
"); - if($.browser.mozilla){ - $('div#divRightPadding', tableContainer).css('height', '40'); - } - - //éšè—掉æŸäº›åˆ— - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper); - var $tableBody = $('table#datatable_ajax' + contextData.curentDatableId, tableWrapper); - - for(var i=0;i tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-xs'); - $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-xs'); - break; - } - } - } - - for(var i=0;i tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-sm'); - $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-sm'); - break; - } - } - } - },//end init------------------------------------------------------------------------------------ - - getSelectedRowsCount: function() { - return $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).size(); - }, - - getSelectedRows: function() { - var rows = []; - $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).each(function(){ - rows.push({rowDataNo: $(this).attr("rowDataNo"), name: $(this).attr("name"), value: $(this).val()}); - }); - - return rows; - }, - - addAjaxParam: function(name, value) { - ajaxParams.push({"name": name, "value": value}); - }, - - clearAjaxParams: function(name, value) { - ajaxParams = []; - }, - - getDataTable: function() { - return dataTable; - }, - - getTableWrapper: function() { - return tableWrapper; - }, - - gettableContainer: function() { - return tableContainer; - }, - - getTable: function() { - return table; - }, - - setOpenRowFlag: function(openRowFlagInput) { - openRowFlag = openRowFlagInput; - }, - - setRowOverFlag: function(rowOverFlagInput) { - rowOverFlag = rowOverFlagInput; - }, - - setRowCheckable: function(rowCheckableInput) { - rowCheckable = rowCheckableInput; - }, - - setColumnsTooLong: function(columnsTooLongInput) { - columnsTooLong = columnsTooLongInput; - }, - - setSTotalRecordsSource: function(sTotalRecordsSourceInput){ - sTotalRecordsSource = sTotalRecordsSourceInput; - }, - - setTotalRecords: function(totalRecordsInput){ - totalRecords = totalRecordsInput; - }, - - setTableHeight: function(tableHeightInput){ - tableHeight = tableHeightInput; - }, - - setCallbackList: function(list){ - if($.isArray(list)){ - callbackList = list; - } - }, - - getCheckedRowDatas:function(){ - checkedRowDatas = []; - $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).each(function(){ - var rowNoId = $(this).attr("rowDataNo"); - var rowNoIndex = rowNoId.slice(rowNoId.indexOf("_") + 1); - checkedRowDatas.push(currentPageData[parseInt(rowNoIndex)]); - }); - return checkedRowDatas; - }, - - setRequestType: function(requestTypeInput){ - requestType = requestTypeInput; - }, - - setContextData: function(newContextData){ - contextData = newContextData; - }, - - setTotalPage: function(newTotalPage){ - $("#datatable_ajax" + contextData.curentDatableId + "_info").html(tableOptions.dataTable.oLanguage.sInfo.replace("_TOTAL_", newTotalPage + "")); - } - - }; - -}; - -var TableAjaxICT = function () { - - var contextData; - - var initPickers = function () { - //init date pickers - $('.date-picker').datepicker({ - //rtl: App.isRTL(), - autoclose: true - }); - } - - //判断a数组是å¦åŒ…å«b数组 - function isContained(largeArray, smallArray){ - if(!(largeArray instanceof Array) || !(smallArray instanceof Array)) - return false; - if(largeArray.length < smallArray.length) - return false; - for(var i = 0; i < smallArray.length; i++){ - var flag = false; - for(j=0;j' + alarmId + ''; - sOut += '' + columns[4].columnTitle + '' + perceivedSeverity + ''; - sOut += '' + columns[9].columnTitle + '' + alarmType + ''; - sOut += '' + columns[3].columnTitle + '' + alarmRaisedTime + ''; - - sOut += '' + columns[5].columnTitle + '' + probableCauseDesc + ''; - sOut += '' + columns[15].columnTitle + '' + alarmChangedTime + ''; - sOut += '' + columns[11].columnTitle + '' + ackState + ''; - - sOut += '' + columns[12].columnTitle + '' + ackTime + ''; - sOut += '' + columns[13].columnTitle + '' + ackUserId + ''; - sOut += '' + columns[14].columnTitle + '' + ackSystemId + ''; - sOut += '' + columns[7].columnTitle + '' + neip + ''; - - sOut += '' + columns[2].columnTitle + '' + moc + ''; - sOut += '' + columns[1].columnTitle + '' + resDisplayName + ''; - - sOut += '' + columns[8].columnTitle + '' + componentname + ''; - sOut += '' + columns[16].columnTitle + '' + position1 + ''; - - sOut += '' + columns[10].columnTitle + '' + specificproblem + ''; - - sOut += '' + columns[6].columnTitle + '' + additionalText + ''; - - sOut += '' + $.i18n.prop('aos_fm_SuggestionSetting_view_DefaultSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + '' + ''; - - sOut += '' + $.i18n.prop('aos_fm_SuggestionSetting_view_SettingSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + ''; - - sOut += ''; - - /* - var systemType = 0; - var code = 0; - for (var i = 0; i < oTable.datas.length; i++) { - var temp = oTable.datas[i]; - if (temp.alarmId == oTr['alarmId'].value) { - systemType = temp.systemType; - code = temp.probableCauseCode; - } - }*/ - var data = { - "systemType" : systemType, - "code" : code - }; - var sendData = JSON.stringify(data); - $.ajax({ - "dataType" : 'json', - "type" : "GET", - "url" : "/web/rest/web/fm/Maintenance" + "?" + "data=" + sendData, - "contentType" : 'application/json; charset=utf-8', - "data" : null, - "success" : function (json) { - $('tr').find('td#defaulInfo' + id).text(json.defaulInfo); - $('tr').find('td#customInfo' + id).text(json.customInfo); - var modify = $('#customInfoModify' + id); - modify.on('click', function () { - var span = $('#modifyBtnSpan' + id); - var customInfo = $('tr').find('td#customInfo' + id); - var cancel = $('#cancelDiv' + id); - if (span['0'].className === 'fa fa-pencil-square-o') { - var value = customInfo['0'].textContent; - customInfo['0'].textContent = ''; - customInfo['0'].innerHTML = ''; - span['0'].className = 'fa fa-floppy-o'; - cancel['0'].innerHTML = ''; - $('#cancelBtn' + id).on('click', function () { - customInfo['0'].innerHTML = ''; - customInfo['0'].textContent = value; - cancel['0'].innerHTML = ''; - span['0'].className = 'fa fa-pencil-square-o'; - }); - } else { - var inputValue = $('#customInfoInput' + id)['0'].value; - customInfo['0'].innerHTML = ''; - customInfo['0'].textContent = inputValue; - span['0'].className = 'fa fa-pencil-square-o'; - cancel['0'].innerHTML = ''; - var modifyData = { - "systemType" : systemType, - "code" : code, - "defaulInfo" : json.defaulInfo, - "customInfo" : inputValue - }; - $.ajax({ - "dataType" : 'json', - "type" : "PUT", - "url" : "/web/rest/web/fm/Maintenance", - "contentType" : 'application/json; charset=utf-8', - "data" : JSON.stringify(modifyData), - "error" : function () { - alert('Modify Error!'); - } - }); - } - }); - }, - "error" : function () { - alert('Communication Error!'); - } - }); - - return sOut; - } - - var generateColumns = function(columns, openRowFlag, rowCheckable){ - var $tableData = $('table#datatable_ajax' + contextData.curentDatableId); - var theadTR = $('thead > tr', $tableData); - if(rowCheckable){ - theadTR.append(''); - } - if(openRowFlag){ - theadTR.append('  '); - } - for(var i=0;i' + columns[i].columnTitle + ''); - } - } - - var sortHandling = function(oTable, openRowFlag, rowCheckable){ - var indexSkip = -1; - if(openRowFlag&&rowCheckable){ - indexSkip = 1; - }else if(openRowFlag&&!rowCheckable||!openRowFlag&&rowCheckable){ - indexSkip = 0; - } - var $sortOrder = 0; //排åºç±»åž‹ 1表示å‡åºï¼Œ0表示é™åº - var tableWrapper = $('div.dataTables_wrapper', contextData.wrapperDivContext); - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper); - var $tableData = $('table#datatable_ajax' + contextData.curentDatableId); - var clearSort = function(currentTh){ - var ths = $tableHead.find('th').get(); - var tableDataHeadTHs = $tableData.find('th').get(); - $.each( ths, function( index, th ){ - if(index > indexSkip){ - if($(th).text() != currentTh.text()){ - if($(th).is('.sorting_disabled')){ - //do nothing; - }else if($(th).is('.sorting_asc')){ - $(th).removeClass('sorting_asc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled'); - }else if($(th).is('.sorting_desc')){ - $(th).removeClass('sorting_desc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled'); - } - } - } - }); - } - - $('th', $tableHead).each(function( column ) - { - if(column>indexSkip){ - //处ç†ä¸‰ç§æœ‰å¯èƒ½å­˜åœ¨çš„排åºå­—段,比较方法 - var findSortKey; - if( $(this).is('.sort-title') || $(this).is('.sorting_disabled') ) - { - findSortKey = function( $cell ) - { - var cellText = $cell.text(); - if(isNaN(cellText)){ - return $cell.text().toUpperCase(); - }else{ - return parseFloat(cellText); - } - //return $cell.text().toUpperCase(); - } - } - else if( $(this).is('.sort-date') ) - { - findSortKey = function( $cell ) - { - return Date.parse('1' + $cell.text()); - } - } - else if( $(this).is('.sort-price') ) - { - findSortKey = function( $cell ) - { - var key = parseFloat($cell.text().replace(/^[^\d.]*/, '')) - return isNaN(key) ? 0 : key; - } - } - - //æŽ’åº - if( findSortKey ) - { - $(this).click(function() - { - $sortOrder = $sortOrder == 0 ? 1 : 0; - var tableDataHeadTHs = $tableData.find('th').get(); - - if($sortOrder == 1){ - if($(this).is('.sorting_disabled')){ - $(this).removeClass('sorting_disabled').addClass('sorting_asc'); - $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_asc'); - }else if($(this).is('.sorting_asc')){ - $(this).removeClass('sorting_asc').addClass('sorting_desc'); - $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc'); - }else if($(this).is('.sorting_desc')){ - $(this).removeClass('sorting_desc').addClass('sorting_asc'); - $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc'); - } - }else{ - if($(this).is('.sorting_disabled')){ - $(this).removeClass('sorting_disabled').addClass('sorting_desc'); - $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_desc'); - }else if($(this).is('.sorting_asc')){ - $(this).removeClass('sorting_asc').addClass('sorting_desc'); - $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc'); - }else if($(this).is('.sorting_desc')){ - $(this).removeClass('sorting_desc').addClass('sorting_asc'); - $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc'); - } - } - clearSort($(this)); - - var rows = $tableData.find('tbody > tr').get(); - - $.each( rows, function( index, row ) - { - //先关掉所有行 - if ( oTable.fnIsOpen(row) ) - { - $(row).find('.row-details').click(); - } - }); - - //é‡æ–°å–得所有行,å¦åˆ™æŽ’åºåŽè¡¨æ ¼æ˜¾ç¤ºå¼‚常 - rows = $tableData.find('tbody > tr').get(); - - $.each( rows, function( index, row ) - { - row.sortKey = findSortKey($(row).children('td').eq(column)); - }); - //排åºæ–¹æ³• - rows.sort(function( a, b ) - { - if( $sortOrder == 1 ) - { - //å‡åº - if(a.sortKey < b.sortKey) return -1; - if(a.sortKey > b.sortKey) return 1; - return 0; - } - else - { - //é™åº - if(a.sortKey < b.sortKey) return 1; - if(a.sortKey > b.sortKey) return -1; - return 0; - } - }); - //排åºåŽçš„对象添加给$table - $.each( rows, function( index, row ) - { - $tableData.children('tbody').append(row); - row.sortKey = null; - }); - }); - } - } - }); - } - - var handleRecords = function(requestDatas, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource, callbackList, totalRecords, requestType) { - - /* - jQuery.getJSON('/web/newict/framework/thirdparty/data-tables/app-universal-i18n-datatable-' + lang + '.json', - function(data) { - oLanguage = data; - }); - */ - grid = DatatableICT(); - grid.setCallbackList(callbackList); - grid.setContextData(contextData); - grid.setOpenRowFlag(openRowFlag); - grid.setRowCheckable(rowCheckable); - grid.setRowOverFlag(rowOverFlag); - grid.setColumnsTooLong(columnsTooLong); - grid.setSTotalRecordsSource(sTotalRecordsSource); - grid.setTotalRecords(totalRecords); - grid.setTableHeight(tableHeight); - grid.setRequestType(requestType); - //å–得查询æ¡ä»¶ -// if(!requestStr || requestStr.length == 0){ -// requestStr = JSON.stringify(requestAllData); -// } - grid.clearAjaxParams(); - if(requestType == "GET"){ - grid.addAjaxParam('data', JSON.stringify(requestDatas)); - }else{ - grid.addAjaxParam('data', requestDatas); - } - //å–得其他å‚æ•° - for(var i=0;i table.dataTable', tableWrapper); - var ths = $tableHead.find('th').get(); - var $tableData = $('table#datatable_ajax' + contextData.curentDatableId); - var tableDataHeadTHs = $tableData.find('th').get(); - $.each( ths, function( index, th ){ - //clear all sort direction - if($(th).is('.sorting_disabled')){ - //do nothing; - }else if($(th).is('.sorting_asc')){ - $(th).removeClass('sorting_asc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled'); - }else if($(th).is('.sorting_desc')){ - $(th).removeClass('sorting_desc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled'); - } - }); - - }, - onError: function(grid) { - // execute some code on network or other general error - }, - dataTable: { - "sDom" : "tr<'row'<'col-md-6 col-sm-12'><'col-md-6 col-sm-12'pli>>", // datatable layout - "oLanguage": oLanguage, - //"bAutoWidth": true, - "sScrollY": tableHeight, - "bScrollCollapse": true, - "sScrollX": "100%", - //"sScrollXInner": "110%", - "aLengthMenu": [ - [20, 50, 100], - [20, 50, 100] // change per page values here - ], - "iDisplayLength": 100, // default record count per page - "bServerSide": true, // server side processing - "sAjaxSource": requestURL // ajax source - } - }, columns, xsHiddenColumns, smHiddenColumns, openRowFlag, rowCheckable); - } - - /* - * Insert a 'details' column to the table - */ - var insertDetails = function (oTable, columns, rowCheckable) { - - var $tableData = $('table#datatable_ajax' + contextData.curentDatableId); - - $tableData.on('click', ' tbody td .row-details', function () { - var nTr = $(this).parents('tr')[0]; - if (oTable.fnIsOpen(nTr)) { - /* This row is already open - close it */ - $(this).addClass("row-details-close").removeClass("row-details-open"); - oTable.fnClose(nTr); - } else { - /* Open this row */ - $(this).addClass("row-details-open").removeClass("row-details-close"); - oTable.fnOpen(nTr, fnFormatDetails(oTable, nTr, columns, rowCheckable), 'details'); - } - }); - } - - return { - - //main function to initiate the module - init: function (requestDatas, lang, configPathPrefix, callbackList, newColumns, totalPage) { - - var oLanguage; - var columns; - var xsHiddenColumns; - var smHiddenColumns; - var columnsAll; - - var openRowFlag = false; - var rowOverFlag = false; - var rowCheckable = false; - var requestURL=""; - var requestAllData; - var requestParameters; - - var tableHeight; - var tableWidth; - - var columnsTooLong; - var sTotalRecordsSource=""; - var totalRecords = 0; - - var requestType = "GET"; - - //å–得当å‰é…ç½®åŠå›½é™…åŒ–ä¿¡æ¯ - $.ajax({ - dataType: 'json', - url: configPathPrefix + '-' + lang + '.json', - async: false, - contentType:'application/json; charset=utf-8', - "success": function(data) { - oLanguage = data.language; - columns = data.columns; - if(newColumns){ - columns = newColumns; - } - xsHiddenColumns = data.xsHiddenColumns; - smHiddenColumns = data.smHiddenColumns; - columnsAll = data.columnsAll; - if(newColumns){ - columnsAll = newColumns; - } - openRowFlag = data.openRowFlag == 'true'? true: false; - rowOverFlag = data.rowOverFlag == 'true'? true: false; - rowCheckable = data.rowCheckable == 'true'? true: false; - requestURL = data.requestURL; - //requestAllData = data.requestAllData; - requestParameters = data.requestParameters; - tableHeight = data.tableHeight; - tableWidth = data.tableWidth; - columnsTooLong = data.columnsTooLong; - sTotalRecordsSource = data.sTotalRecordsSource; - if(data.sTotalRecords){ //性能的情况直接指定总行数 - totalRecords = parseInt(data.sTotalRecords); - } - if(totalPage){ //å¯ä»¥ä»Žå‚数指定总行数,适用于å•ç‹¬å‘请求获得总行数的场景 - totalRecords = totalPage; - } - if(data.requestType){ - requestType = data.requestType; - } - }, - "error" : function (xhr, info) { - alert('Communication Error! Error reason:' + info); - } - }); - - $('div#dataTableWrapperDiv' + contextData.curentDatableId).css('width', tableWidth); - - if(!isContained(xsHiddenColumns, smHiddenColumns) || !isContained(columns, xsHiddenColumns) || !isContained(columnsAll, columns)){ - alert('Columns claim error: (smHiddenColumns <= xsHiddenColumns <= columns <= columnsAll) Please!'); - return; - } - - generateColumns(columns, openRowFlag, rowCheckable); - //initPickers(); - handleRecords(requestDatas, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource, callbackList, totalRecords, requestType); - //获得åˆå§‹åŒ–完毕的DataTable对象 - var oTable = grid.getDataTable(); - if(openRowFlag){ - insertDetails(oTable, columnsAll, rowCheckable); - } - sortHandling(oTable, openRowFlag, rowCheckable); - //oTable.fnAdjustColumnSizing(true); - return oTable; - }, - - getDataGrid: function(){ - return grid; - }, - - setContextData: function(newContextData){ - contextData = newContextData; - } - - }; - -}(); - -var addTableElementsId = function(){ - - var outterDivs = $('div.dataTableWrapperDiv'); - var currentId; - - if(outterDivs && outterDivs.length > 0) { - var maxId = -1; - var divIdNo; - $.each(outterDivs, function (index, div) { - var divId = $(div).attr("id"); - divIdNo = divId.substring(20); - if (divIdNo || divIdNo.length > 0){ - if (parseInt(divIdNo) > maxId) { - maxId = parseInt(divIdNo); - } - } - }); - currentId = maxId + 1; - } - - var curentDatableId = "_" + currentId; - - var dataTableWrapperDiv = $('div#dataTableWrapperDiv');//新添加的outterDiv - $(dataTableWrapperDiv).attr("id", "dataTableWrapperDiv" + curentDatableId); - var dataTableWrapperDivContext = dataTableWrapperDiv; - $('div.table-container', dataTableWrapperDiv).attr("id", "table-container" + curentDatableId); - $('table#datatable_ajax', dataTableWrapperDiv).attr("id", "datatable_ajax" + curentDatableId); - $('div#divOverlay', dataTableWrapperDiv).attr("id", "divOverlay" + curentDatableId); - //$('div#buttonConfirm', dataTableWrapperDiv).attr("id", "buttonConfirm" + curentDatableId); - //$('div#buttonUnConfirm', dataTableWrapperDiv).attr("id", "buttonUnConfirm" + curentDatableId); - $('div#myModal', dataTableWrapperDiv).attr("id", "myModal" + curentDatableId); - $('div#myModalConfirm', dataTableWrapperDiv).attr("id", "myModalConfirm" + curentDatableId); - $('span#alarm_number', dataTableWrapperDiv).attr("id", "alarm_number" + curentDatableId); - - return { - "curentDatableId": curentDatableId, - "wrapperDivContext":dataTableWrapperDivContext - } -} - -var DataTableICT = function(requestDatas, tableDivId, tableDivPath, configPathPrefix, callbackList, newColumns, totalPage){ - - /* var requestStr = ""; - if(datas){ - requestStr = JSON.stringify(datas); - } */ - - var lang = getLanguage(); - //lang = 'en-US'; - - /**å–得表格组件所需html片段 **/ - /*jQuery('div#' + tableDivId).load(tableDivPath, function() { - var contextData = addTableElementsId(); - TableAjaxICT.setContextData(contextData); - - var lang = getLanguage(); - //lang = 'en-US'; - var oTable = TableAjaxICT.init(requestStr, lang, configPathPrefix); - - //é‡æ–°è°ƒèŠ‚列宽以适应window resize - $(window).bind('resize', function () { - //oTable.DataTable.models.oSettings.bAjaxDataGet = false; - oTable.fnAdjustColumnSizing(); - } ); - });*/ - - /**åŒæ­¥å–得表格组件所需html片段 **/ - $.ajax({ - async : false, - "dataType" : "html", - "type" : "GET", - "url" : tableDivPath, - "data" : null, - "success" : function (html, textStatus, jqXHR) { - $('div#' + tableDivId).html(html); - }, - "error" : function () { - alert("Communication error!"); - } - }); - - var contextData = addTableElementsId(); - TableAjaxICT.setContextData(contextData); - - var oTable = TableAjaxICT.init(requestDatas, lang, configPathPrefix, callbackList, newColumns, totalPage); - - //é‡æ–°è°ƒèŠ‚列宽以适应window resize - $(window).bind('resize', function () { - //oTable.DataTable.models.oSettings.bAjaxDataGet = false; - oTable.fnAdjustColumnSizing(); - } ); - - return TableAjaxICT.getDataGrid(); -} diff --git a/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClient.js b/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClient.js deleted file mode 100644 index 5fa69e5..0000000 --- a/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClient.js +++ /dev/null @@ -1,1215 +0,0 @@ -/*** - Wrapper/Helper Class for datagrid based on jQuery Datatable Plugin - ***/ -var DatatableICT = function () { - - var tableOptions; // main options - var dataTable; // datatable object - var table; // actual table jquery object - var tableContainer; // actual table container object - var tableWrapper; // actual table wrapper jquery object - var tableInitialized = false; - var ajaxParams = []; // set filter mode - var columns; - var xsHiddenColumns; - var smHiddenColumns; - var columnMaxLength = 30; - var columnsTooLong; - var hidden_xs_maxWidth = 768; - var hidden_sm_maxWidth = 991; - - var openRowFlag = false; - var rowOverFlag = false; - var rowCheckable = false; - - var aTargetsAll; - var sTotalRecordsSource; - var tableHeight; - - var includedInXsHiddenColumns = function(columnId){ - for(var i=0;i tr > td:nth-child(1) input[type="checkbox"]:checked', table).size(); - var text = tableOptions.dataTable.oLanguage.sGroupActions; - if (selected > 0) { - $('.table-group-actions > span', tableWrapper).text(text.replace("_TOTAL_", selected)); - } else { - $('.table-group-actions > span', tableWrapper).text(""); - } - } - - var jsonObjectToArray = function(json, columns, iDraw){ - var jsonToDatatable = {aaData:[], sEcho:iDraw, iTotalRecords:0, iTotalDisplayRecords:0 }; - for(var i=0; i"); - } - if(openRowFlag){ - jsonToDatatable.aaData[i].push(""); - } - for(var j=0; j= hidden_xs_maxWidth && $(window).width() < hidden_sm_maxWidth && includedInSmHiddenColumns(columns[j].columnId )){ - /*éšè—pad尺寸需è¦éšè—的列*/ - }else if($(window).width() < hidden_xs_maxWidth && includedInXsHiddenColumns(columns[j].columnId )){ - /*éšè—手机尺寸需è¦éšè—的列*/ - }else{ - var currentColumnId = columns[j].columnId; - if(jQuery.inArray(currentColumnId, columnsTooLong) > -1){ - var rawText = ""; - for(var k=0;k columnMaxLength){ - jsonToDatatable.aaData[i].push(rawText.slice(0, columnMaxLength) + '...'); - }else{ - jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]); - } - } else { - jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]); - } - - } - } - } - jsonToDatatable.sEcho++; - var totalRow = 0; - var totalRecordsSource = eval('json.' + sTotalRecordsSource); - if(totalRecordsSource && totalRecordsSource.length >0){ - totalRow = parseInt(totalRecordsSource); - } - if(isNaN(totalRow)){ - alert('All rows counting number got fail!'); - }else{ - jsonToDatatable.iTotalRecords = totalRow; - jsonToDatatable.iTotalDisplayRecords = totalRow; - } - return jsonToDatatable; - } - - var singleAlarmDel = function(divOverlay){ - - //æ ¹æ®æµ®åŠ¨æ¡†çš„当å‰id获å–需è¦åˆ é™¤çš„è¡Œ - var trId = divOverlay.attr('id_tr'); - tr=$('tr#' + trId); - var tds = $(tr).children(); - var tdAlarmId = $(tds.eq(2)).text(); - - var data= { - "alarmId":[parseInt(tdAlarmId)] - }; - - var sSource = "/web/rest/web/fm/curalarms?data=" + JSON.stringify(data) + "&_operationType=remove&_dataSource=isc_PageRestDataSource_0&isc_metaDataPrefix=_&isc_dataFormat=json"; - - $.ajax( { - "dataType": 'json', - "type": "DELETE", - "url": sSource, - "data" : null, - "contentType" : 'application/json; charset=utf-8', - "success": function(json) { - if(json.response.status == 0){ - var resRowObject = json.response.data[0]; - //alert('删除æˆåŠŸ'); - } - if(json.response.status == -1){ - //alert('删除失败'); - } - }, - "error": function() { - alert('Communication Error!'); - } - } ); - } - - var singleAlarmAckUnAck = function(divOverlay, ackType){ - - //æ ¹æ®æµ®åŠ¨æ¡†çš„当å‰id获å–需è¦ç¡®è®¤çš„è¡Œ - var trId = divOverlay.attr('id_tr'); - var tr = $('tr#' + trId); - - //å–å¾—éšè—的头部表格的相应行 - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable'); - //var trHead = $('tbody > tr:nth-child(' + trId + ')', $tableHead); - var trHead = $('tr#' + trId.replace('body', 'head'), $tableHead); - var tdDivs = $('td > div', trHead); - - var tds = $(tr).children(); - var tdAlarmId = ""; - if(rowCheckable){ - tdAlarmId = $(tds.eq(2)).text(); - }else{ - tdAlarmId = $(tds.eq(1)).text(); - } - - var aoData = - { - "dataSource":"isc_PageRestDataSource_0", - "operationType":"update", - "componentId":"isc_com_zte_ums_aos_fm_view_eventview_table_AlarmTable_0", - "data":{ - "viewType":1, - "state":ackType, - "alarmId":[ - parseInt(tdAlarmId) - ] - }, - "oldValues":null - }; - - var sSource = "/web/rest/web/fm/curalarms?isc_dataFormat=json"; - - $.ajax( { - "dataType": 'json', - "type": "PUT", - "url": sSource, - "contentType": 'application/json; charset=utf-8', - "data": JSON.stringify(aoData), - "success": function(json) { - json = AlarmLabels.transformFieldNames(json); - if(json.response.status == 0){ - var resRowObject = json.response.data[0]; - var columnsCopy = $.extend(true, [], columns); - //éšè—列的情况下需è¦ç‰¹æ®Šå¤„ç† - if($(window).width()>=hidden_xs_maxWidth && $(window).width() -1) { - var rawText = ""; - for(var k=0;k columnMaxLength){ - $(tds.eq(i)).html(rawText.slice(0, columnMaxLength) + '...'); - $(tdDivs.eq(i)).html(rawText.slice(0, columnMaxLength) + '...'); - }else{ - $(tds.eq(i)).html(resRowObject[currentColumnId]); - $(tdDivs.eq(i)).html(resRowObject[currentColumnId]); - } - } else { - $(tds.eq(i)).html(resRowObject[currentColumnId]); - $(tdDivs.eq(i)).html(resRowObject[currentColumnId]); - } - } - //更新缓存中的当å‰è¡Œæ•°æ® - for (var t = 0; t < dataTable.datas.length; t++) { - var temp = dataTable.datas[t]; - if (temp.alarmId == resRowObject['alarmId']) { - dataTable.datas[t] = resRowObject; - break; - } - } - } - if(json.response.status == -1){ - $('div#myModalConfirm').modal({ - keyboard: false, - backdrop: 'static' - }); - $('span#alarm_number').html(tdAlarmId); - //å›½é™…åŒ–ä¿¡æ¯ - if(ackType==1){ - $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_ok')); - }else{ - $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_un')); - } - } - }, - "error": function() { - alert('Communication Error!'); - } - } ); - } - - var addRowOverlap = function(){ - var $tableData = $('table#datatable_ajax'); - //å–å¾—éšè—的头部表格的相应行 - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable'); - var trHeads = $tableHead.find('tr').get(); - $.each( trHeads, function( index, trHead ){ - $(trHead).attr('id', 'headTableTR' + index); - }); - //å–得浮动div - var $divOverlay = $('div#divOverlay'); - var divScrollHead = $('div.dataTables_scrollHead'); - var divRightPadding = $('div#divRightPadding'); - //å–表头下边沿ä½ç½® - var tableHeadBottomHeight = $(divScrollHead).position().top + $(divScrollHead).height(); - var tableBottom = $tableData.position().top + $tableData.height(); - //å–表格å³è¾¹æ²¿ä½ç½® - var tableRightEdgePosition = $(divRightPadding).position().left; - var trs = $tableData.find('tr').get(); - $.each( trs, function( index, tr ){ - var tdEmpty = $('td.dataTables_empty',tr); - if(!tdEmpty || tdEmpty.length ==0 ){ - $(tr).attr('id', 'bodyTableTR' + index); - //$divOverlay.attr('id_tr', 'bodyTableTR' + index); - $(tr).one('hover', function(){ - var rowPos = $(tr).position(); - var currentTrTop = rowPos.top; - //var bottomLeft = rowPos.left; - $divOverlay.attr('id_tr', 'bodyTableTR' + index); - $divOverlay.css({ - display: 'block', - position: 'absolute', - 'background-color': '#e5e5e5', - //opacity: 0.7, - border: 'solid 0px', - top: currentTrTop + 6, - left: tableRightEdgePosition - 308, - width: 300, - height: 30 - }); - //防止浮动框跳出表格内容区域 - if( $divOverlay.position().top < tableHeadBottomHeight || $divOverlay.position().top + $divOverlay.height() > tableBottom){ - $divOverlay.css('display', 'none'); - } - var buttonConfirm = $('div#buttonConfirm', $divOverlay); - var buttonUnConfirm = $('div#buttonUnConfirm', $divOverlay); - $(buttonConfirm).one('click', function(){ - var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRounded'); - var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRoundedDisabled'); - if(buttonRoundedTDsConfirm && buttonRoundedTDsConfirm.length > 0){ - $.each(buttonRoundedTDsConfirm, function(index, td){ - $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled'); - }); - $.each(buttonRoundedTDsUnConfirm, function(index, td){ - $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded'); - }); - $divOverlay.css('display', 'none'); - singleAlarmAckUnAck($divOverlay, 1); - } - }); - $(buttonUnConfirm).one('click', function(){ - var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRounded'); - var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRoundedDisabled'); - if(buttonRoundedTDsUnConfirm && buttonRoundedTDsUnConfirm.length > 0){ - $.each(buttonRoundedTDsUnConfirm, function(index, td){ - $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled'); - }); - $.each(buttonRoundedTDsConfirm, function(index, td){ - $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded'); - }); - $divOverlay.css('display', 'none'); - singleAlarmAckUnAck($divOverlay, 2); - } - }); - var buttonDelete = $('div#buttonDelete', $divOverlay); - $(buttonDelete).die().live('click', function(){ - //弹出删除确认对è¯æ¡† - $('div#myModal').modal({ - keyboard: false, - backdrop: 'static' - }); - $('#delConfirm').die().live('click', function(){ - $divOverlay.css('display', 'none'); - dataTable.fnClose(tr); - $(tr).remove(); - //删除表头表格的相应行 - $('tr#' + $(tr).attr('id').replace('body', 'head'), $tableHead).remove(); - //删除åŽç«¯æ•°æ® - singleAlarmDel($divOverlay); - //刷新表格 - dataTable.fnAdjustColumnSizing(); - }); - }); - //展开行的情况éšè— - $('td.details > table.detailTable').on('hover', function(){ - $divOverlay.css('display', 'none'); - }); - }); - } - }); - } - - return { - - //main function to initiate the module - init: function (options, columnsDefined, xsHiddenColumnsDefined, smHiddenColumnsDefined) { - - if (!$().dataTable) { - return; - } - - var the = this; - - //记录需è¦ç¦æŽ‰é»˜è®¤æŽ’åºçš„列 - var aTargets = []; - var targetsLength = columnsDefined.length; - if(rowCheckable)targetsLength++; - if(openRowFlag)targetsLength++; - for(var i=0;i<'col-md-4 col-sm-12'<'table-group-actions pull-right'>>r><'table-scrollable't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>", // datatable layout - - "aoColumnDefs" : [{ // define columns sorting options(by default all columns are sortable extept the first checkbox column) - 'bSortable' : false, - 'aTargets' : aTargets - }], - - "bAutoWidth": false, // disable fixed width and enable fluid table - //"bSortCellsTop": true, // make sortable only the first row in thead - "sPaginationType": "bootstrap_extended", // pagination type(bootstrap, bootstrap_full_number or bootstrap_extended) - "bProcessing": true, // enable/disable display message box on record load - "bServerSide": true, // enable/disable server side ajax loading - "sAjaxSource": "", // define ajax source URL - //"sServerMethod": "GET", - - // handle ajax request - "fnServerData": function ( sSource, aoData, fnCallback, oSettings ) { - //for ICT Paging - //var startIndex = aoData[3].value;//"iDisplayStart" - //var pageLength = aoData[4].value;//"iDisplayLength" - var oPaging = oSettings.oInstance.fnPagingInfo(); - //var startIndex = oPaging.iStart; - var pageLength = oPaging.iLength; - var curPageNo = oPaging.iPage + 1; - - for(var k=aoData.length-1;k>=0;k--){ - var flag = -1; - if(aoData[k].name=='pageSize'){ - aoData[k].value=pageLength; - flag++; - } - if(aoData[k].name=='pageNo'){ - aoData[k].value=curPageNo; - flag++ - } - if(flag == 1)break; - } - - oSettings.jqXHR = $.ajax( { - "dataType": 'json', - "type": "GET", - "url": sSource, - "data": aoData, - "success": function(res, textStatus, jqXHR) { - if (res.sMessage) { - onapFrameWork.alert({type: (res.sStatus == 'OK' ? 'success' : 'danger'), icon: (res.sStatus == 'OK' ? 'check' : 'warning'), message: res.sMessage, container: tableWrapper, place: 'prepend'}); - } - if ($('.group-checkable', tableContainer).size() === 1) { - $('.group-checkable', tableContainer).attr("checked", false); - $.uniform.update($('.group-checkable', tableContainer)); - } - if (tableOptions.onSuccess) { - tableOptions.onSuccess.call(the); - } - //ä¿å­˜æ•°æ®åœ¨dataTable对象中给行详细信æ¯é¢æ¿ç”¨ - dataTable.datas = res.response.data; - if(res.response.status < 0){ - alert(res.response.data); - return; - } - - //å‘Šè­¦å­—æ®µå€¼è½¬æ¢ - res = AlarmLabels.transformFieldNames(res); - - res = jsonObjectToArray(res, columns, oSettings.iDraw); - - //é‡ç»˜è¡¨æ ¼ - fnCallback(res, textStatus, jqXHR); - }, - "error": function() { - if (tableOptions.onError) { - tableOptions.onError.call(the); - } - onapFrameWork.alert({type: 'danger', icon: 'warning', message: tableOptions.dataTable.oLanguage.sAjaxRequestGeneralError, container: tableWrapper, place: 'prepend'}); - $('.dataTables_processing', tableWrapper).remove(); - } - } ); - - }, - - // pass additional parameter - "fnServerParams": function ( aoData ) { - //here can be added an external ajax request parameters. - //for(var i in ajaxParams) { - for(var i=0; i table.dataTable', tableWrapper); - var tbodyHead = $('tbody', $tableHead); - if(tbodyHead && tbodyHead.length >0){ - $(tbodyHead).remove(); - } - - var $tableBody = $('table#datatable_ajax', tableWrapper); - var trIn = $('thead > tr:nth-child(1)', $tableHead); - var trBodyHead = $('thead > tr:nth-child(1)', $tableBody); - var tds = $(trIn).children(); - var ths = $(trBodyHead).children(); - for(var k=0;k' + tds.eq(k).html() + ''); - } - var bodyRows = $('tbody > tr', $tableBody); - for(var i=0;i' + tds.eq(j).html() + ''); - $(tds.eq(j)).height('0px'); - $(tds.eq(j)).css('padding-top','0px'); - $(tds.eq(j)).css('padding-bottom','0px'); - $(tds.eq(j)).css('border-top-width','0px'); - $(tds.eq(j)).css('border-bottom-width','0px'); - } - $(rowClone).height('0px'); - $tableHead.append($(rowClone).prop("outerHTML")); - } - - $('.dataTables_scrollBody').css('width','100%'); - $('.dataTables_scrollHead').css('width','98.5%'); - $('.dataTables_scrollHeadInner').css('padding-right', 0); - - //添加浮动确认å确认按钮 - if(rowOverFlag){ - addRowOverlap(); - } - - //设置表格本体高度 - $('div.dataTables_scrollBody').css('height', tableHeight); - } - } - }, options); - - tableOptions = options; - - columns = columnsDefined; - xsHiddenColumns = xsHiddenColumnsDefined; - smHiddenColumns = smHiddenColumnsDefined; - // create table's jquery object - table = $(options.src); - tableContainer = table.parents(".table-container"); - // apply the special class that used to restyle the default datatable - - $.fn.dataTableExt.oStdClasses.sWrapper = $.fn.dataTableExt.oStdClasses.sWrapper + " dataTables_extended_wrapper"; - - // initialize a datatable - dataTable = table.dataTable(options.dataTable); - - tableWrapper = table.parents('.dataTables_wrapper'); - - // modify table per page dropdown input by appliying some classes - $('.dataTables_length select', tableWrapper).addClass("form-control input-xsmall input-sm"); - - // handle group checkboxes check/uncheck - $('.group-checkable', tableContainer).change(function () { - var set = $('tbody > tr > td:nth-child(1) input[type="checkbox"]', table); - var checked = $(this).is(":checked"); - $(set).each(function () { - $(this).attr("checked", checked); - }); - $.uniform.update(set); - countSelectedRecords(); - }); - - // handle row's checkbox click - table.on('change', 'tbody > tr > td:nth-child(1) input[type="checkbox"]', function(){ - countSelectedRecords(); - }); - - //填充表头å³è¾¹ç•Œ - $('.dataTables_scrollHead').css('display','inline-block'); - //var dataTables_scrollHead_height = $('.dataTables_scrollHead').css( "height" ); - $(".dataTables_scrollHead").after("
"); - if($.browser.mozilla){ - $('#divRightPadding').css('height', '40'); - } - - //éšè—掉æŸäº›åˆ— - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper); - var $tableBody = $('table#datatable_ajax', tableWrapper); - - for(var i=0;i tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-xs'); - $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-xs'); - break; - } - } - } - - for(var i=0;i tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-sm'); - $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-sm'); - break; - } - } - } - },//end init------------------------------------------------------------------------------------ - - getSelectedRowsCount: function() { - return $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).size(); - }, - - getSelectedRows: function() { - var rows = []; - $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).each(function(){ - rows.push({name: $(this).attr("name"), value: $(this).val()}); - }); - - return rows; - }, - - addAjaxParam: function(name, value) { - ajaxParams.push({"name": name, "value": value}); - }, - - clearAjaxParams: function(name, value) { - ajaxParams = []; - }, - - getDataTable: function() { - return dataTable; - }, - - getTableWrapper: function() { - return tableWrapper; - }, - - gettableContainer: function() { - return tableContainer; - }, - - getTable: function() { - return table; - }, - - setOpenRowFlag: function(openRowFlagInput) { - openRowFlag = openRowFlagInput; - }, - - setRowOverFlag: function(rowOverFlagInput) { - rowOverFlag = rowOverFlagInput; - }, - - setRowCheckable: function(rowCheckableInput) { - rowCheckable = rowCheckableInput; - }, - - setColumnsTooLong: function(columnsTooLongInput) { - columnsTooLong = columnsTooLongInput; - }, - - setSTotalRecordsSource: function(sTotalRecordsSourceInput){ - sTotalRecordsSource = sTotalRecordsSourceInput; - }, - - setTableHeight: function(tableHeightInput){ - tableHeight = tableHeightInput; - } - - }; - -}; - -var TableAjaxICT = function () { - - var initPickers = function () { - //init date pickers - $('.date-picker').datepicker({ - //rtl: App.isRTL(), - autoclose: true - }); - } - - //判断a数组是å¦åŒ…å«b数组 - function isContained(largeArray, smallArray){ - if(!(largeArray instanceof Array) || !(smallArray instanceof Array)) - return false; - if(largeArray.length < smallArray.length) - return false; - for(var i = 0; i < smallArray.length; i++){ - var flag = false; - for(j=0;j' + alarmId + ''; - sOut += '' + columns[4].columnTitle + '' + perceivedSeverity + ''; - sOut += '' + columns[9].columnTitle + '' + alarmType + ''; - sOut += '' + columns[3].columnTitle + '' + alarmRaisedTime + ''; - - sOut += '' + columns[5].columnTitle + '' + probableCauseDesc + ''; - sOut += '' + columns[15].columnTitle + '' + alarmChangedTime + ''; - sOut += '' + columns[11].columnTitle + '' + ackState + ''; - - sOut += '' + columns[12].columnTitle + '' + ackTime + ''; - sOut += '' + columns[13].columnTitle + '' + ackUserId + ''; - sOut += '' + columns[14].columnTitle + '' + ackSystemId + ''; - sOut += '' + columns[7].columnTitle + '' + neip + ''; - - sOut += '' + columns[2].columnTitle + '' + moc + ''; - sOut += '' + columns[1].columnTitle + '' + resDisplayName + ''; - - sOut += '' + columns[8].columnTitle + '' + componentname + ''; - sOut += '' + columns[16].columnTitle + '' + position1 + ''; - - sOut += '' + columns[10].columnTitle + '' + specificproblem + ''; - - sOut += '' + columns[6].columnTitle + '' + additionalText + ''; - - sOut += '' + $.i18n.prop('aos_fm_SuggestionSetting_view_DefaultSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + '' + ''; - - sOut += '' + $.i18n.prop('aos_fm_SuggestionSetting_view_SettingSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + ''; - - sOut += ''; - - /* - var systemType = 0; - var code = 0; - for (var i = 0; i < oTable.datas.length; i++) { - var temp = oTable.datas[i]; - if (temp.alarmId == oTr['alarmId'].value) { - systemType = temp.systemType; - code = temp.probableCauseCode; - } - }*/ - var data = { - "systemType" : systemType, - "code" : code - }; - var sendData = JSON.stringify(data); - $.ajax({ - "dataType" : 'json', - "type" : "GET", - "url" : "/web/rest/web/fm/Maintenance" + "?" + "data=" + sendData, - "contentType" : 'application/json; charset=utf-8', - "data" : null, - "success" : function (json) { - $('tr').find('td#defaulInfo' + id).text(json.defaulInfo); - $('tr').find('td#customInfo' + id).text(json.customInfo); - var modify = $('#customInfoModify' + id); - modify.on('click', function () { - var span = $('#modifyBtnSpan' + id); - var customInfo = $('tr').find('td#customInfo' + id); - var cancel = $('#cancelDiv' + id); - if (span['0'].className === 'fa fa-pencil-square-o') { - var value = customInfo['0'].textContent; - customInfo['0'].textContent = ''; - customInfo['0'].innerHTML = ''; - span['0'].className = 'fa fa-floppy-o'; - cancel['0'].innerHTML = ''; - $('#cancelBtn' + id).on('click', function () { - customInfo['0'].innerHTML = ''; - customInfo['0'].textContent = value; - cancel['0'].innerHTML = ''; - span['0'].className = 'fa fa-pencil-square-o'; - }); - } else { - var inputValue = $('#customInfoInput' + id)['0'].value; - customInfo['0'].innerHTML = ''; - customInfo['0'].textContent = inputValue; - span['0'].className = 'fa fa-pencil-square-o'; - cancel['0'].innerHTML = ''; - var modifyData = { - "systemType" : systemType, - "code" : code, - "defaulInfo" : json.defaulInfo, - "customInfo" : inputValue - }; - $.ajax({ - "dataType" : 'json', - "type" : "PUT", - "url" : "/web/rest/web/fm/Maintenance", - "contentType" : 'application/json; charset=utf-8', - "data" : JSON.stringify(modifyData), - "error" : function () { - alert('Modify Error!'); - } - }); - } - }); - }, - "error" : function () { - alert('Communication Error!'); - } - }); - - return sOut; - } - - var generateColumns = function(columns, openRowFlag, rowCheckable){ - var $tableData = $('table#datatable_ajax'); - var theadTR = $('thead > tr', $tableData); - if(rowCheckable){ - theadTR.append(''); - } - if(openRowFlag){ - theadTR.append('  '); - } - for(var i=0;i' + columns[i].columnTitle + ''); - } - } - - var sortHandling = function(oTable, openRowFlag, rowCheckable){ - var indexSkip = -1; - if(openRowFlag&&rowCheckable){ - indexSkip = 1; - }else if(openRowFlag&&!rowCheckable||!openRowFlag&&rowCheckable){ - indexSkip = 0; - } - var $sortOrder = 0; //排åºç±»åž‹ 1表示å‡åºï¼Œ0表示é™åº - var tableWrapper = $('div#datatable_ajax_wrapper'); - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper); - var $tableData = $('table#datatable_ajax'); - var clearSort = function(currentTh){ - var ths = $tableHead.find('th').get(); - var tableDataHeadTHs = $tableData.find('th').get(); - $.each( ths, function( index, th ){ - if(index > indexSkip){ - if($(th).text() != currentTh.text()){ - if($(th).is('.sorting_disabled')){ - //do nothing; - }else if($(th).is('.sorting_asc')){ - $(th).removeClass('sorting_asc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled'); - }else if($(th).is('.sorting_desc')){ - $(th).removeClass('sorting_desc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled'); - } - } - } - }); - } - - $('th', $tableHead).each(function( column ) - { - if(column>indexSkip){ - //处ç†ä¸‰ç§æœ‰å¯èƒ½å­˜åœ¨çš„排åºå­—段,比较方法 - var findSortKey; - if( $(this).is('.sort-title') || $(this).is('.sorting_disabled') ) - { - findSortKey = function( $cell ) - { - var cellText = $cell.text(); - if(isNaN(cellText)){ - return $cell.text().toUpperCase(); - }else{ - return parseFloat(cellText); - } - //return $cell.text().toUpperCase(); - } - } - else if( $(this).is('.sort-date') ) - { - findSortKey = function( $cell ) - { - return Date.parse('1' + $cell.text()); - } - } - else if( $(this).is('.sort-price') ) - { - findSortKey = function( $cell ) - { - var key = parseFloat($cell.text().replace(/^[^\d.]*/, '')) - return isNaN(key) ? 0 : key; - } - } - - //æŽ’åº - if( findSortKey ) - { - $(this).click(function() - { - $sortOrder = $sortOrder == 0 ? 1 : 0; - var tableDataHeadTHs = $tableData.find('th').get(); - - if($sortOrder == 1){ - if($(this).is('.sorting_disabled')){ - $(this).removeClass('sorting_disabled').addClass('sorting_asc'); - $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_asc'); - }else if($(this).is('.sorting_asc')){ - $(this).removeClass('sorting_asc').addClass('sorting_desc'); - $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc'); - }else if($(this).is('.sorting_desc')){ - $(this).removeClass('sorting_desc').addClass('sorting_asc'); - $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc'); - } - }else{ - if($(this).is('.sorting_disabled')){ - $(this).removeClass('sorting_disabled').addClass('sorting_desc'); - $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_desc'); - }else if($(this).is('.sorting_asc')){ - $(this).removeClass('sorting_asc').addClass('sorting_desc'); - $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc'); - }else if($(this).is('.sorting_desc')){ - $(this).removeClass('sorting_desc').addClass('sorting_asc'); - $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc'); - } - } - clearSort($(this)); - - var rows = $tableData.find('tbody > tr').get(); - - $.each( rows, function( index, row ) - { - //先关掉所有行 - if ( oTable.fnIsOpen(row) ) - { - $(row).find('.row-details').click(); - } - }); - - //é‡æ–°å–得所有行,å¦åˆ™æŽ’åºåŽè¡¨æ ¼æ˜¾ç¤ºå¼‚常 - rows = $tableData.find('tbody > tr').get(); - - $.each( rows, function( index, row ) - { - row.sortKey = findSortKey($(row).children('td').eq(column)); - }); - //排åºæ–¹æ³• - rows.sort(function( a, b ) - { - if( $sortOrder == 1 ) - { - //å‡åº - if(a.sortKey < b.sortKey) return -1; - if(a.sortKey > b.sortKey) return 1; - return 0; - } - else - { - //é™åº - if(a.sortKey < b.sortKey) return 1; - if(a.sortKey > b.sortKey) return -1; - return 0; - } - }); - //排åºåŽçš„对象添加给$table - $.each( rows, function( index, row ) - { - $tableData.children('tbody').append(row); - row.sortKey = null; - }); - }); - } - } - }); - } - - var handleRecords = function(requestStr, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource) { - - /* - jQuery.getJSON('/web/newict/framework/thirdparty/data-tables/app-universal-i18n-datatable-' + lang + '.json', - function(data) { - oLanguage = data; - }); - */ - grid.setOpenRowFlag(openRowFlag); - grid.setRowCheckable(rowCheckable); - grid.setRowOverFlag(rowOverFlag); - grid.setColumnsTooLong(columnsTooLong); - grid.setSTotalRecordsSource(sTotalRecordsSource); - grid.setTableHeight(tableHeight); - //å–得查询æ¡ä»¶ -// if(!requestStr || requestStr.length == 0){ -// requestStr = JSON.stringify(requestAllData); -// } - grid.clearAjaxParams(); - grid.addAjaxParam('data', requestStr); - //å–得其他å‚æ•° - for(var i=0;i table.dataTable', tableWrapper); - var ths = $tableHead.find('th').get(); - var $tableData = $('table#datatable_ajax'); - var tableDataHeadTHs = $tableData.find('th').get(); - $.each( ths, function( index, th ){ - //clear all sort direction - if($(th).is('.sorting_disabled')){ - //do nothing; - }else if($(th).is('.sorting_asc')){ - $(th).removeClass('sorting_asc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled'); - }else if($(th).is('.sorting_desc')){ - $(th).removeClass('sorting_desc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled'); - } - }); - - }, - onError: function(grid) { - // execute some code on network or other general error - }, - dataTable: { - "sDom" : "tr<'row'<'col-md-6 col-sm-12'><'col-md-6 col-sm-12'pli>>", // datatable layout - "oLanguage": oLanguage, - //"bAutoWidth": true, - "sScrollY": tableHeight, - "bScrollCollapse": true, - "sScrollX": "100%", - //"sScrollXInner": "110%", - "aLengthMenu": [ - [20, 50, 100], - [20, 50, 100] // change per page values here - ], - "iDisplayLength": 20, // default record count per page - "bServerSide": true, // server side processing - "sAjaxSource": requestURL // ajax source - } - }, columns, xsHiddenColumns, smHiddenColumns, openRowFlag, rowCheckable); - } - - /* - * Insert a 'details' column to the table - */ - var insertDetails = function (oTable, columns, rowCheckable) { - - var $tableData = $('table#datatable_ajax'); - - $tableData.on('click', ' tbody td .row-details', function () { - var nTr = $(this).parents('tr')[0]; - if (oTable.fnIsOpen(nTr)) { - /* This row is already open - close it */ - $(this).addClass("row-details-close").removeClass("row-details-open"); - oTable.fnClose(nTr); - } else { - /* Open this row */ - $(this).addClass("row-details-open").removeClass("row-details-close"); - oTable.fnOpen(nTr, fnFormatDetails(oTable, nTr, columns, rowCheckable), 'details'); - } - }); - } - - return { - - //main function to initiate the module - init: function (requestStr, lang, configPathPrefix) { - - var oLanguage; - var columns; - var xsHiddenColumns; - var smHiddenColumns; - var columnsAll; - - var openRowFlag = false; - var rowOverFlag = false; - var rowCheckable = false; - var requestURL=""; - var requestAllData; - var requestParameters; - - var tableHeight; - var tableWidth; - - var columnsTooLong; - var sTotalRecordsSource=""; - - //å–得当å‰é…ç½®åŠå›½é™…åŒ–ä¿¡æ¯ - $.ajax({ - dataType: 'json', - url: configPathPrefix + '-' + lang + '.json', - async: false, - contentType:'application/json; charset=utf-8', - "success": function(data) { - oLanguage = data.language; - columns = data.columns; - xsHiddenColumns = data.xsHiddenColumns; - smHiddenColumns = data.smHiddenColumns; - columnsAll = data.columnsAll; - openRowFlag = data.openRowFlag == 'true'? true: false; - rowOverFlag = data.rowOverFlag == 'true'? true: false; - rowCheckable = data.rowCheckable == 'true'? true: false; - requestURL = data.requestURL; - //requestAllData = data.requestAllData; - requestParameters = data.requestParameters; - tableHeight = data.tableHeight; - tableWidth = data.tableWidth; - columnsTooLong = data.columnsTooLong; - sTotalRecordsSource = data.sTotalRecordsSource; - }, - "error" : function (xhr, info) { - alert('Communication Error! Error reason:' + info); - } - }); - - $('#dataTableWrapperDiv').css('width', tableWidth); - - if(!isContained(xsHiddenColumns, smHiddenColumns) || !isContained(columns, xsHiddenColumns) || !isContained(columnsAll, columns)){ - alert('Columns claim error: (smHiddenColumns <= xsHiddenColumns <= columns <= columnsAll) Please!'); - return; - } - - generateColumns(columns, openRowFlag, rowCheckable); - //initPickers(); - handleRecords(requestStr, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource); - //获得åˆå§‹åŒ–完毕的DataTable对象 - var oTable = grid.getDataTable(); - if(openRowFlag){ - insertDetails(oTable, columnsAll, rowCheckable); - } - sortHandling(oTable, openRowFlag, rowCheckable); - //oTable.fnAdjustColumnSizing(true); - return oTable; - } - - }; - -}(); - -var DataTableSmartClient = function(datas, configPathPrefix){ - - var requestStr = ""; - if(datas){ - requestStr = JSON.stringify(datas); - } - - var lang = getLanguage(); - //lang = 'en-US'; - loadi18n_FM(lang); - //requestStr = ""; - var oTable = TableAjaxICT.init(requestStr, lang, configPathPrefix); - - //é‡æ–°è°ƒèŠ‚列宽以适应window resize - $(window).one('resize', function () { - //oTable.DataTable.models.oSettings.bAjaxDataGet = false; - oTable.fnAdjustColumnSizing(false); - } ); -} diff --git a/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClientApp.js b/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClientApp.js deleted file mode 100644 index 7440d91..0000000 --- a/common/src/main/webapp/thirdparty/data-tables/DataTableSmartClientApp.js +++ /dev/null @@ -1,1312 +0,0 @@ -/*** - Wrapper/Helper Class for datagrid based on jQuery Datatable Plugin - ***/ -var DatatableICT = function () { - - var tableOptions; // main options - var dataTable; // datatable object - var table; // actual table jquery object - var tableContainer; // actual table container object - var tableWrapper; // actual table wrapper jquery object - var tableInitialized = false; - var ajaxParams = []; // set filter mode - var columns; - var xsHiddenColumns; - var smHiddenColumns; - var columnMaxLength = 30; - var columnsTooLong; - var hidden_xs_maxWidth = 768; - var hidden_sm_maxWidth = 991; - - var openRowFlag = false; - var rowOverFlag = false; - var rowCheckable = false; - - var aTargetsAll; - var sTotalRecordsSource; - var tableHeight; - - var callbackList = []; - - var includedInXsHiddenColumns = function(columnId){ - for(var i=0;i tr > td:nth-child(1) input[type="checkbox"]:checked', table).size(); - var text = tableOptions.dataTable.oLanguage.sGroupActions; - if (selected > 0) { - $('.table-group-actions > span', tableWrapper).text(text.replace("_TOTAL_", selected)); - } else { - $('.table-group-actions > span', tableWrapper).text(""); - } - } - - var jsonObjectToArray = function(json, columns, iDraw){ - var jsonToDatatable = {aaData:[], sEcho:iDraw, iTotalRecords:0, iTotalDisplayRecords:0 }; - for(var i=0; i"); - } - if(openRowFlag){ - jsonToDatatable.aaData[i].push(""); - } - for(var j=0; j= hidden_xs_maxWidth && $(window).width() < hidden_sm_maxWidth && includedInSmHiddenColumns(columns[j].columnId )){ - /*éšè—pad尺寸需è¦éšè—的列*/ - }else if($(window).width() < hidden_xs_maxWidth && includedInXsHiddenColumns(columns[j].columnId )){ - /*éšè—手机尺寸需è¦éšè—的列*/ - }else{ - var currentColumnId = columns[j].columnId; - if(jQuery.inArray(currentColumnId, columnsTooLong) > -1){ - var rawText = ""; - for(var k=0;k columnMaxLength){ - jsonToDatatable.aaData[i].push(rawText.slice(0, columnMaxLength) + '...'); - }else{ - jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]); - } - } else { - jsonToDatatable.aaData[i].push(resRowObject[currentColumnId]); - } - - } - } - } - jsonToDatatable.sEcho++; - var totalRow = 0; - var totalRecordsSource = eval('json.' + sTotalRecordsSource); - if(totalRecordsSource && totalRecordsSource.length >0){ - totalRow = parseInt(totalRecordsSource); - } - if(isNaN(totalRow)){ - alert('All rows counting number got fail!'); - }else{ - jsonToDatatable.iTotalRecords = totalRow; - jsonToDatatable.iTotalDisplayRecords = totalRow; - } - return jsonToDatatable; - } - - var singleAlarmDel = function(divOverlay){ - - //æ ¹æ®æµ®åŠ¨æ¡†çš„当å‰id获å–需è¦åˆ é™¤çš„è¡Œ - var trId = divOverlay.attr('id_tr'); - tr=$('tr#' + trId); - var tds = $(tr).children(); - var tdAlarmId = ""; - if(rowCheckable){ - tdAlarmId = $(tds.eq(2)).text(); - }else{ - tdAlarmId = $(tds.eq(1)).text(); - } - - var data= { - "alarmId":[parseInt(tdAlarmId)] - }; - - var sSource = "/web/rest/web/fm/curalarms?data=" + JSON.stringify(data) + "&_operationType=remove&_dataSource=isc_PageRestDataSource_0&isc_metaDataPrefix=_&isc_dataFormat=json"; - - $.ajax( { - "dataType": 'json', - "type": "DELETE", - "url": sSource, - "data" : null, - "contentType" : 'application/json; charset=utf-8', - "success": function(json) { - if(json.response.status == 0){ - var resRowObject = json.response.data[0]; - //alert('删除æˆåŠŸ'); - } - if(json.response.status == -1){ - //alert('删除失败'); - } - }, - "error": function() { - alert('Communication Error!'); - } - } ); - } - - var singleAlarmAckUnAck = function(divOverlay, ackType){ - - //æ ¹æ®æµ®åŠ¨æ¡†çš„当å‰id获å–需è¦ç¡®è®¤çš„è¡Œ - var trId = divOverlay.attr('id_tr'); - var tr = $('tr#' + trId); - - //å–å¾—éšè—的头部表格的相应行 - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable'); - //var trHead = $('tbody > tr:nth-child(' + trId + ')', $tableHead); - var trHead = $('tr#' + trId.replace('body', 'head'), $tableHead); - var tdDivs = $('td > div', trHead); - - var tds = $(tr).children(); - var tdAlarmId = ""; - if(rowCheckable){ - tdAlarmId = $(tds.eq(2)).text(); - }else{ - tdAlarmId = $(tds.eq(1)).text(); - } - - var aoData = - { - "dataSource":"isc_PageRestDataSource_0", - "operationType":"update", - "componentId":"isc_com_zte_ums_aos_fm_view_eventview_table_AlarmTable_0", - "data":{ - "viewType":1, - "state":ackType, - "alarmId":[ - parseInt(tdAlarmId) - ] - }, - "oldValues":null - }; - - var sSource = "/web/rest/web/fm/curalarms?isc_dataFormat=json"; - - $.ajax( { - "dataType": 'json', - "type": "PUT", - "url": sSource, - "contentType": 'application/json; charset=utf-8', - "data": JSON.stringify(aoData), - "success": function(json) { - /*for(var i=0;i0){ - json = callbackList[i](json); - break; - } - }*/ - //json = AlarmLabels.transformFieldNames(json); - if(callbackList[1]){ - json = callbackList[1](json); - } - if(json.response.status == 0){ - var resRowObject = json.response.data[0]; - var columnsCopy = $.extend(true, [], columns); - //éšè—列的情况下需è¦ç‰¹æ®Šå¤„ç† - if($(window).width()>=hidden_xs_maxWidth && $(window).width() -1) { - var rawText = ""; - for(var k=0;k columnMaxLength){ - $(tds.eq(i)).html(rawText.slice(0, columnMaxLength) + '...'); - $(tdDivs.eq(i)).html(rawText.slice(0, columnMaxLength) + '...'); - }else{ - $(tds.eq(i)).html(resRowObject[currentColumnId]); - $(tdDivs.eq(i)).html(resRowObject[currentColumnId]); - } - } else { - $(tds.eq(i)).html(resRowObject[currentColumnId]); - $(tdDivs.eq(i)).html(resRowObject[currentColumnId]); - } - } - //更新缓存中的当å‰è¡Œæ•°æ® - for (var t = 0; t < dataTable.datas.length; t++) { - var temp = dataTable.datas[t]; - if (temp.alarmId == resRowObject['alarmId']) { - dataTable.datas[t] = resRowObject; - break; - } - } - } - if(json.response.status == -1){ - $('div#myModalConfirm').modal({ - keyboard: false, - backdrop: 'static' - }); - $('span#alarm_number').html(tdAlarmId); - //å›½é™…åŒ–ä¿¡æ¯ - if(ackType==1){ - $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_ok')); - }else{ - $('span#aos_fm_alarm_opeater_ack_already').html($.i18n.prop('aos_fm_alarm_opeater_ack_already_un')); - } - } - //å¡«å……å•å…ƒæ ¼é¢œè‰² - var divColor = $("div.cellBackgroundColor", tr); - $(divColor).parent().css("background", $(divColor).css("background-color")); - }, - "error": function() { - alert('Communication Error!'); - } - } ); - } - - var addRowOverlap = function(){ - var $tableData = $('table#datatable_ajax'); - //å–å¾—éšè—的头部表格的相应行 - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable'); - var trHeads = $tableHead.find('tr').get(); - $.each( trHeads, function( index, trHead ){ - $(trHead).attr('id', 'headTableTR' + index); - }); - //å–得浮动div - var $divOverlay = $('div#divOverlay'); - var divScrollHead = $('div.dataTables_scrollHead'); - var divRightPadding = $('div#divRightPadding'); - //å–表头下边沿ä½ç½® - var tableHeadBottomHeight = $(divScrollHead).position().top + $(divScrollHead).height(); - var tableBottom = $tableData.position().top + $tableData.height() + 3; - //å–表格å³è¾¹æ²¿ä½ç½® - var tableRightEdgePosition = $(divRightPadding).position().left; - var trs = $tableData.find('tr').get(); - $.each( trs, function( index, tr ){ - var tdEmpty = $('td.dataTables_empty',tr); - if(!tdEmpty || tdEmpty.length ==0 ){ - $(tr).attr('id', 'bodyTableTR' + index); - //$divOverlay.attr('id_tr', 'bodyTableTR' + index); - $(tr).one('hover', function(){ - var rowPos = $(tr).position(); - var currentTrTop = rowPos.top; - //var bottomLeft = rowPos.left; - $divOverlay.attr('id_tr', 'bodyTableTR' + index); - $divOverlay.css({ - display: 'block', - position: 'absolute', - 'background-color': '#e5e5e5', - //opacity: 0.7, - border: 'solid 0px', - top: currentTrTop + 6, - left: tableRightEdgePosition - 308, - width: 300, - height: 30 - }); - //防止浮动框跳出表格内容区域 - if( $divOverlay.position().top < tableHeadBottomHeight || $divOverlay.position().top + $divOverlay.height() > tableBottom){ - $divOverlay.css('display', 'none'); - } - var buttonConfirm = $('div#buttonConfirm', $divOverlay); - var buttonUnConfirm = $('div#buttonUnConfirm', $divOverlay); - //åˆå§‹åŒ–悬浮按钮当å‰è¡Œçš„确认åç¡®è®¤çŠ¶æ€ - if($(tr).find('span.alarmAck') && $(tr).find('span.alarmAck').length >0){ - var spanAck = $(tr).find('span.alarmAck'); - var ackState = $(spanAck).attr('ack_id'); - var buttonTDsConfirm = $(buttonConfirm).find('td'); - var buttonTDsUnConfirm = $(buttonUnConfirm).find('td'); - if(ackState=="2"){ - if(buttonTDsConfirm && buttonTDsConfirm.length > 0 && buttonTDsUnConfirm && buttonTDsUnConfirm.length > 0){ - $.each(buttonTDsConfirm, function(index, td){ - $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded'); - }); - $.each(buttonTDsUnConfirm, function(index, td){ - $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled'); - }); - } - }else{ - if(buttonTDsConfirm && buttonTDsConfirm.length > 0 && buttonTDsUnConfirm && buttonTDsUnConfirm.length > 0){ - $.each(buttonTDsConfirm, function(index, td){ - $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled'); - }); - $.each(buttonTDsUnConfirm, function(index, td){ - $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded'); - }); - } - } - } - //添加确认å确认点击事件 - $(buttonConfirm).one('click', function(){ - var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRounded'); - var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRoundedDisabled'); - if(buttonRoundedTDsConfirm && buttonRoundedTDsConfirm.length > 0){ - $.each(buttonRoundedTDsConfirm, function(index, td){ - $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled'); - }); - $.each(buttonRoundedTDsUnConfirm, function(index, td){ - $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded'); - }); - $divOverlay.css('display', 'none'); - singleAlarmAckUnAck($divOverlay, 1); - } - }); - $(buttonUnConfirm).one('click', function(){ - var buttonRoundedTDsUnConfirm = $(buttonUnConfirm).find('td.buttonRounded'); - var buttonRoundedTDsConfirm = $(buttonConfirm).find('td.buttonRoundedDisabled'); - if(buttonRoundedTDsUnConfirm && buttonRoundedTDsUnConfirm.length > 0){ - $.each(buttonRoundedTDsUnConfirm, function(index, td){ - $(td).removeClass('buttonRounded').addClass('buttonRoundedDisabled'); - }); - $.each(buttonRoundedTDsConfirm, function(index, td){ - $(td).removeClass('buttonRoundedDisabled').addClass('buttonRounded'); - }); - $divOverlay.css('display', 'none'); - singleAlarmAckUnAck($divOverlay, 2); - } - }); - var buttonDelete = $('div#buttonDelete', $divOverlay); - $(buttonDelete).die().live('click', function(){ - $divOverlay.css('display', 'none'); - var trIdToDelete = $divOverlay.attr('id_tr'); - var toDeleteTr=$('tr#' + trIdToDelete); - $("td", toDeleteTr).addClass('dataTableTdSelected'); - //弹出删除确认对è¯æ¡† - $('div#myModal').modal({ - keyboard: false, - backdrop: 'static' - }); - $('#delConfirm').die().live('click', function(){ - //$divOverlay.css('display', 'none'); - dataTable.fnClose(tr); - //删除åŽç«¯æ•°æ® - singleAlarmDel($divOverlay); - //删除当å‰è¡Œ - $(tr).remove(); - //删除表头表格的相应行 - $('tr#' + $(tr).attr('id').replace('body', 'head'), $tableHead).remove(); - //刷新表格 - //dataTable.fnAdjustColumnSizing(); - }); - $('#myModal').on('hidden.bs.modal', function (e) { - $("td", toDeleteTr).removeClass('dataTableTdSelected'); - }) - }); - //展开行的情况éšè— - $('td.details > table.detailTable').on('hover', function(){ - $divOverlay.css('display', 'none'); - }); - $('div#myModal').on('hover', function(){ - $divOverlay.css('display', 'none'); - }); - }); - } - }); - } - - return { - - //main function to initiate the module - init: function (options, columnsDefined, xsHiddenColumnsDefined, smHiddenColumnsDefined) { - - if (!$().dataTable) { - return; - } - - var the = this; - - //记录需è¦ç¦æŽ‰é»˜è®¤æŽ’åºçš„列 - var aTargets = []; - var targetsLength = columnsDefined.length; - if(rowCheckable)targetsLength++; - if(openRowFlag)targetsLength++; - for(var i=0;i<'col-md-4 col-sm-12'<'table-group-actions pull-right'>>r><'table-scrollable't><'row'<'col-md-8 col-sm-12'pli><'col-md-4 col-sm-12'>r>>", // datatable layout - - "aoColumnDefs" : [{ // define columns sorting options(by default all columns are sortable extept the first checkbox column) - 'bSortable' : false, - 'aTargets' : aTargets - }], - - "bAutoWidth": false, // disable fixed width and enable fluid table - //"bSortCellsTop": true, // make sortable only the first row in thead - "sPaginationType": "bootstrap_extended", // pagination type(bootstrap, bootstrap_full_number or bootstrap_extended) - "bProcessing": true, // enable/disable display message box on record load - "bServerSide": true, // enable/disable server side ajax loading - "sAjaxSource": "", // define ajax source URL - //"sServerMethod": "GET", - - // handle ajax request - "fnServerData": function ( sSource, aoData, fnCallback, oSettings ) { - //for ICT Paging - //var startIndex = aoData[3].value;//"iDisplayStart" - //var pageLength = aoData[4].value;//"iDisplayLength" - var oPaging = oSettings.oInstance.fnPagingInfo(); - //var startIndex = oPaging.iStart; - var pageLength = oPaging.iLength; - var curPageNo = oPaging.iPage + 1; - - for(var k=aoData.length-1;k>=0;k--){ - var flag = -1; - if(aoData[k].name=='pageSize'){ - aoData[k].value=pageLength; - flag++; - } - if(aoData[k].name=='pageNo'){ - aoData[k].value=curPageNo; - flag++ - } - if(flag == 1)break; - } - - oSettings.jqXHR = $.ajax( { - "dataType": 'json', - "type": "GET", - "url": sSource, - "data": aoData, - "success": function(res, textStatus, jqXHR) { - if (res.sMessage) { - onapFrameWork.alert({type: (res.sStatus == 'OK' ? 'success' : 'danger'), icon: (res.sStatus == 'OK' ? 'check' : 'warning'), message: res.sMessage, container: tableWrapper, place: 'prepend'}); - } - if ($('.group-checkable', tableContainer).size() === 1) { - $('.group-checkable', tableContainer).attr("checked", false); - $.uniform.update($('.group-checkable', tableContainer)); - } - if (tableOptions.onSuccess) { - tableOptions.onSuccess.call(the); - } - //ä¿å­˜æ•°æ®åœ¨dataTable对象中给行详细信æ¯é¢æ¿ç”¨ - dataTable.datas = res.response.data; - if(res.response.status < 0){ - alert(res.response.data); - return; - } - - //å‘Šè­¦å­—æ®µå€¼è½¬æ¢ - //res = AlarmLabels.transformFieldNames(res); - /*for(var i=0;i0){ - res = callbackList[i](res); - break; - } - }*/ - if(callbackList[1]){ - res = callbackList[1](res); - } - - res = jsonObjectToArray(res, columns, oSettings.iDraw); - - //é‡ç»˜è¡¨æ ¼ - fnCallback(res, textStatus, jqXHR); - }, - "error": function() { - if (tableOptions.onError) { - tableOptions.onError.call(the); - } - onapFrameWork.alert({type: 'danger', icon: 'warning', message: tableOptions.dataTable.oLanguage.sAjaxRequestGeneralError, container: tableWrapper, place: 'prepend'}); - $('.dataTables_processing', tableWrapper).remove(); - } - } ); - - }, - - // pass additional parameter - "fnServerParams": function ( aoData ) { - //here can be added an external ajax request parameters. - //for(var i in ajaxParams) { - for(var i=0; i table.dataTable', tableWrapper); - var tbodyHead = $('tbody', $tableHead); - if(tbodyHead && tbodyHead.length >0){ - $(tbodyHead).remove(); - } - - var $tableBody = $('table#datatable_ajax', tableWrapper); - var trIn = $('thead > tr:nth-child(1)', $tableHead); - var trBodyHead = $('thead > tr:nth-child(1)', $tableBody); - var tds = $(trIn).children(); - var ths = $(trBodyHead).children(); - for(var k=0;k' + tds.eq(k).html() + ''); - } - var bodyRows = $('tbody > tr', $tableBody); - for(var i=0;i' + tds.eq(j).html() + ''); - $(tds.eq(j)).height('0px'); - $(tds.eq(j)).css('padding-top','0px'); - $(tds.eq(j)).css('padding-bottom','0px'); - $(tds.eq(j)).css('border-top-width','0px'); - $(tds.eq(j)).css('border-bottom-width','0px'); - } - $(rowClone).height('0px'); - $tableHead.append($(rowClone).prop("outerHTML")); - } - - $('.dataTables_scrollBody').css('width','100%'); - $('.dataTables_scrollHead').css('width','98.5%'); - $('.dataTables_scrollHeadInner').css('padding-right', 0); - - //添加浮动确认å确认按钮 - if(rowOverFlag){ - addRowOverlap(); - } - - //å¡«å……å•å…ƒæ ¼é¢œè‰² - var divColors = $("div.cellBackgroundColor", $tableBody); - $.each( divColors, function( index, divColor ){ - $(divColor).parent().css("background", $(divColor).css("background-color")); - }); - - //设置表格本体高度 - $('div.dataTables_scrollBody').css('height', tableHeight); - } - } - }, options); - - tableOptions = options; - - columns = columnsDefined; - xsHiddenColumns = xsHiddenColumnsDefined; - smHiddenColumns = smHiddenColumnsDefined; - // create table's jquery object - table = $(options.src); - tableContainer = table.parents(".table-container"); - // apply the special class that used to restyle the default datatable - - $.fn.dataTableExt.oStdClasses.sWrapper = $.fn.dataTableExt.oStdClasses.sWrapper + " dataTables_extended_wrapper"; - - // initialize a datatable - dataTable = table.dataTable(options.dataTable); - - tableWrapper = table.parents('.dataTables_wrapper'); - - // modify table per page dropdown input by appliying some classes - $('.dataTables_length select', tableWrapper).addClass("form-control input-xsmall input-sm"); - - // handle group checkboxes check/uncheck - $('.group-checkable', tableContainer).change(function () { - var set = $('tbody > tr > td:nth-child(1) input[type="checkbox"]', table); - var checked = $(this).is(":checked"); - $(set).each(function () { - $(this).attr("checked", checked); - }); - $.uniform.update(set); - countSelectedRecords(); - }); - - // handle row's checkbox click - table.on('change', 'tbody > tr > td:nth-child(1) input[type="checkbox"]', function(){ - countSelectedRecords(); - }); - - //填充表头å³è¾¹ç•Œ - $('.dataTables_scrollHead').css('display','inline-block'); - //var dataTables_scrollHead_height = $('.dataTables_scrollHead').css( "height" ); - $(".dataTables_scrollHead").after("
"); - if($.browser.mozilla){ - $('#divRightPadding').css('height', '40'); - } - - //éšè—掉æŸäº›åˆ— - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper); - var $tableBody = $('table#datatable_ajax', tableWrapper); - - for(var i=0;i tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-xs'); - $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-xs'); - break; - } - } - } - - for(var i=0;i tr > th#' + columns[j].columnId, $tableHead).addClass('hidden-sm'); - $('thead > tr > th#' + columns[j].columnId, $tableBody).addClass('hidden-sm'); - break; - } - } - } - },//end init------------------------------------------------------------------------------------ - - getSelectedRowsCount: function() { - return $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).size(); - }, - - getSelectedRows: function() { - var rows = []; - $('tbody > tr > td:nth-child(1) input[type="checkbox"]:checked', table).each(function(){ - rows.push({name: $(this).attr("name"), value: $(this).val()}); - }); - - return rows; - }, - - addAjaxParam: function(name, value) { - ajaxParams.push({"name": name, "value": value}); - }, - - clearAjaxParams: function(name, value) { - ajaxParams = []; - }, - - getDataTable: function() { - return dataTable; - }, - - getTableWrapper: function() { - return tableWrapper; - }, - - gettableContainer: function() { - return tableContainer; - }, - - getTable: function() { - return table; - }, - - setOpenRowFlag: function(openRowFlagInput) { - openRowFlag = openRowFlagInput; - }, - - setRowOverFlag: function(rowOverFlagInput) { - rowOverFlag = rowOverFlagInput; - }, - - setRowCheckable: function(rowCheckableInput) { - rowCheckable = rowCheckableInput; - }, - - setColumnsTooLong: function(columnsTooLongInput) { - columnsTooLong = columnsTooLongInput; - }, - - setSTotalRecordsSource: function(sTotalRecordsSourceInput){ - sTotalRecordsSource = sTotalRecordsSourceInput; - }, - - setTableHeight: function(tableHeightInput){ - tableHeight = tableHeightInput; - }, - - setCallbackList: function(list){ - if($.isArray(list)){ - callbackList = list; - } - } - - }; - -}; - -var TableAjaxICT = function () { - - var initPickers = function () { - //init date pickers - $('.date-picker').datepicker({ - //rtl: App.isRTL(), - autoclose: true - }); - } - - //判断a数组是å¦åŒ…å«b数组 - function isContained(largeArray, smallArray){ - if(!(largeArray instanceof Array) || !(smallArray instanceof Array)) - return false; - if(largeArray.length < smallArray.length) - return false; - for(var i = 0; i < smallArray.length; i++){ - var flag = false; - for(j=0;j 0){ - detailTableId = "alarmDetailInfo" + detailTables.length; - } - var sOut = ''; - sOut += ''; - sOut += ''; - sOut += ''; - sOut += ''; - - sOut += ''; - sOut += ''; - sOut += ''; - - sOut += ''; - sOut += ''; - sOut += ''; - sOut += ''; - - sOut += ''; - sOut += ''; - - sOut += ''; - sOut += ''; - - sOut += ''; - - sOut += ''; - - sOut += ''; - - sOut += ''; - - sOut += '
' + columns[0].columnTitle + '' + alarmId + '' + columns[4].columnTitle + '' + perceivedSeverity + '' + columns[9].columnTitle + '' + alarmType + '' + columns[3].columnTitle + '' + alarmRaisedTime + '
' + columns[5].columnTitle + '' + probableCauseDesc + '' + columns[15].columnTitle + '' + alarmChangedTime + '' + columns[11].columnTitle + '' + ackState + '
' + columns[12].columnTitle + '' + ackTime + '' + columns[13].columnTitle + '' + ackUserId + '' + columns[14].columnTitle + '' + ackSystemId + '' + columns[7].columnTitle + '' + neip + '
' + columns[2].columnTitle + '' + moc + '' + columns[1].columnTitle + '' + resDisplayName + '
' + columns[8].columnTitle + '' + componentname + '' + columns[16].columnTitle + '' + position1 + '
' + columns[10].columnTitle + '' + specificproblem + '
' + columns[6].columnTitle + '' + additionalText + '
' + $.i18n.prop('aos_fm_SuggestionSetting_view_DefaultSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + '' + '
' + $.i18n.prop('aos_fm_SuggestionSetting_view_SettingSuggestionGroupTitle').replace(';', '').replace(/\"/g,'') + '
'; - - /* - var systemType = 0; - var code = 0; - for (var i = 0; i < oTable.datas.length; i++) { - var temp = oTable.datas[i]; - if (temp.alarmId == oTr['alarmId'].value) { - systemType = temp.systemType; - code = temp.probableCauseCode; - } - }*/ - var data = { - "systemType" : systemType, - "code" : code - }; - var sendData = JSON.stringify(data); - $.ajax({ - "dataType" : 'json', - "type" : "GET", - "url" : "/web/rest/web/fm/Maintenance" + "?" + "data=" + sendData, - "contentType" : 'application/json; charset=utf-8', - "data" : null, - "success" : function (json) { - $('tr').find('td#defaulInfo' + id).text(json.defaulInfo); - $('tr').find('td#customInfo' + id).text(json.customInfo); - var modify = $('#customInfoModify' + id); - modify.on('click', function () { - var span = $('#modifyBtnSpan' + id); - var customInfo = $('tr').find('td#customInfo' + id); - var cancel = $('#cancelDiv' + id); - if (span['0'].className === 'fa fa-pencil-square-o') { - var value = customInfo['0'].textContent; - customInfo['0'].textContent = ''; - customInfo['0'].innerHTML = ''; - span['0'].className = 'fa fa-floppy-o'; - cancel['0'].innerHTML = ''; - $('#cancelBtn' + id).on('click', function () { - customInfo['0'].innerHTML = ''; - customInfo['0'].textContent = value; - cancel['0'].innerHTML = ''; - span['0'].className = 'fa fa-pencil-square-o'; - }); - } else { - var inputValue = $('#customInfoInput' + id)['0'].value; - customInfo['0'].innerHTML = ''; - customInfo['0'].textContent = inputValue; - span['0'].className = 'fa fa-pencil-square-o'; - cancel['0'].innerHTML = ''; - var modifyData = { - "systemType" : systemType, - "code" : code, - "defaulInfo" : json.defaulInfo, - "customInfo" : inputValue - }; - $.ajax({ - "dataType" : 'json', - "type" : "PUT", - "url" : "/web/rest/web/fm/Maintenance", - "contentType" : 'application/json; charset=utf-8', - "data" : JSON.stringify(modifyData), - "error" : function () { - alert('Modify Error!'); - } - }); - } - }); - }, - "error" : function () { - alert('Communication Error!'); - } - }); - - return sOut; - } - - var generateColumns = function(columns, openRowFlag, rowCheckable){ - var $tableData = $('table#datatable_ajax'); - var theadTR = $('thead > tr', $tableData); - if(rowCheckable){ - theadTR.append(''); - } - if(openRowFlag){ - theadTR.append('  '); - } - for(var i=0;i' + columns[i].columnTitle + ''); - } - } - - var sortHandling = function(oTable, openRowFlag, rowCheckable){ - var indexSkip = -1; - if(openRowFlag&&rowCheckable){ - indexSkip = 1; - }else if(openRowFlag&&!rowCheckable||!openRowFlag&&rowCheckable){ - indexSkip = 0; - } - var $sortOrder = 0; //排åºç±»åž‹ 1表示å‡åºï¼Œ0表示é™åº - var tableWrapper = $('div#datatable_ajax_wrapper'); - var $tableHead = $('div.dataTables_scrollHeadInner > table.dataTable', tableWrapper); - var $tableData = $('table#datatable_ajax'); - var clearSort = function(currentTh){ - var ths = $tableHead.find('th').get(); - var tableDataHeadTHs = $tableData.find('th').get(); - $.each( ths, function( index, th ){ - if(index > indexSkip){ - if($(th).text() != currentTh.text()){ - if($(th).is('.sorting_disabled')){ - //do nothing; - }else if($(th).is('.sorting_asc')){ - $(th).removeClass('sorting_asc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled'); - }else if($(th).is('.sorting_desc')){ - $(th).removeClass('sorting_desc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled'); - } - } - } - }); - } - - $('th', $tableHead).each(function( column ) - { - if(column>indexSkip){ - //处ç†ä¸‰ç§æœ‰å¯èƒ½å­˜åœ¨çš„排åºå­—段,比较方法 - var findSortKey; - if( $(this).is('.sort-title') || $(this).is('.sorting_disabled') ) - { - findSortKey = function( $cell ) - { - var cellText = $cell.text(); - if(isNaN(cellText)){ - return $cell.text().toUpperCase(); - }else{ - return parseFloat(cellText); - } - //return $cell.text().toUpperCase(); - } - } - else if( $(this).is('.sort-date') ) - { - findSortKey = function( $cell ) - { - return Date.parse('1' + $cell.text()); - } - } - else if( $(this).is('.sort-price') ) - { - findSortKey = function( $cell ) - { - var key = parseFloat($cell.text().replace(/^[^\d.]*/, '')) - return isNaN(key) ? 0 : key; - } - } - - //æŽ’åº - if( findSortKey ) - { - $(this).click(function() - { - $sortOrder = $sortOrder == 0 ? 1 : 0; - var tableDataHeadTHs = $tableData.find('th').get(); - - if($sortOrder == 1){ - if($(this).is('.sorting_disabled')){ - $(this).removeClass('sorting_disabled').addClass('sorting_asc'); - $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_asc'); - }else if($(this).is('.sorting_asc')){ - $(this).removeClass('sorting_asc').addClass('sorting_desc'); - $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc'); - }else if($(this).is('.sorting_desc')){ - $(this).removeClass('sorting_desc').addClass('sorting_asc'); - $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc'); - } - }else{ - if($(this).is('.sorting_disabled')){ - $(this).removeClass('sorting_disabled').addClass('sorting_desc'); - $(tableDataHeadTHs[column]).removeClass('sorting_disabled').addClass('sorting_desc'); - }else if($(this).is('.sorting_asc')){ - $(this).removeClass('sorting_asc').addClass('sorting_desc'); - $(tableDataHeadTHs[column]).removeClass('sorting_asc').addClass('sorting_desc'); - }else if($(this).is('.sorting_desc')){ - $(this).removeClass('sorting_desc').addClass('sorting_asc'); - $(tableDataHeadTHs[column]).removeClass('sorting_desc').addClass('sorting_asc'); - } - } - clearSort($(this)); - - var rows = $tableData.find('tbody > tr').get(); - - $.each( rows, function( index, row ) - { - //先关掉所有行 - if ( oTable.fnIsOpen(row) ) - { - $(row).find('.row-details').click(); - } - }); - - //é‡æ–°å–得所有行,å¦åˆ™æŽ’åºåŽè¡¨æ ¼æ˜¾ç¤ºå¼‚常 - rows = $tableData.find('tbody > tr').get(); - - $.each( rows, function( index, row ) - { - row.sortKey = findSortKey($(row).children('td').eq(column)); - }); - //排åºæ–¹æ³• - rows.sort(function( a, b ) - { - if( $sortOrder == 1 ) - { - //å‡åº - if(a.sortKey < b.sortKey) return -1; - if(a.sortKey > b.sortKey) return 1; - return 0; - } - else - { - //é™åº - if(a.sortKey < b.sortKey) return 1; - if(a.sortKey > b.sortKey) return -1; - return 0; - } - }); - //排åºåŽçš„对象添加给$table - $.each( rows, function( index, row ) - { - $tableData.children('tbody').append(row); - row.sortKey = null; - }); - }); - } - } - }); - } - - var handleRecords = function(requestStr, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource, callbackList) { - - /* - jQuery.getJSON('/web/newict/framework/thirdparty/data-tables/app-universal-i18n-datatable-' + lang + '.json', - function(data) { - oLanguage = data; - }); - */ - grid.setCallbackList(callbackList); - grid.setOpenRowFlag(openRowFlag); - grid.setRowCheckable(rowCheckable); - grid.setRowOverFlag(rowOverFlag); - grid.setColumnsTooLong(columnsTooLong); - grid.setSTotalRecordsSource(sTotalRecordsSource); - grid.setTableHeight(tableHeight); - //å–得查询æ¡ä»¶ -// if(!requestStr || requestStr.length == 0){ -// requestStr = JSON.stringify(requestAllData); -// } - grid.clearAjaxParams(); - grid.addAjaxParam('data', requestStr); - //å–得其他å‚æ•° - for(var i=0;i table.dataTable', tableWrapper); - var ths = $tableHead.find('th').get(); - var $tableData = $('table#datatable_ajax'); - var tableDataHeadTHs = $tableData.find('th').get(); - $.each( ths, function( index, th ){ - //clear all sort direction - if($(th).is('.sorting_disabled')){ - //do nothing; - }else if($(th).is('.sorting_asc')){ - $(th).removeClass('sorting_asc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_asc').addClass('sorting_disabled'); - }else if($(th).is('.sorting_desc')){ - $(th).removeClass('sorting_desc').addClass('sorting_disabled'); - $(tableDataHeadTHs[index]).removeClass('sorting_desc').addClass('sorting_disabled'); - } - }); - - }, - onError: function(grid) { - // execute some code on network or other general error - }, - dataTable: { - "sDom" : "tr<'row'<'col-md-6 col-sm-12'><'col-md-6 col-sm-12'pli>>", // datatable layout - "oLanguage": oLanguage, - //"bAutoWidth": true, - "sScrollY": tableHeight, - "bScrollCollapse": true, - "sScrollX": "100%", - //"sScrollXInner": "110%", - "aLengthMenu": [ - [20, 50, 100], - [20, 50, 100] // change per page values here - ], - "iDisplayLength": 20, // default record count per page - "bServerSide": true, // server side processing - "sAjaxSource": requestURL // ajax source - } - }, columns, xsHiddenColumns, smHiddenColumns, openRowFlag, rowCheckable); - } - - /* - * Insert a 'details' column to the table - */ - var insertDetails = function (oTable, columns, rowCheckable) { - - var $tableData = $('table#datatable_ajax'); - - $tableData.on('click', ' tbody td .row-details', function () { - var nTr = $(this).parents('tr')[0]; - if (oTable.fnIsOpen(nTr)) { - /* This row is already open - close it */ - $(this).addClass("row-details-close").removeClass("row-details-open"); - oTable.fnClose(nTr); - } else { - /* Open this row */ - $(this).addClass("row-details-open").removeClass("row-details-close"); - oTable.fnOpen(nTr, fnFormatDetails(oTable, nTr, columns, rowCheckable), 'details'); - //å¡«å……å•å…ƒæ ¼é¢œè‰² - var divColor = $("div.cellBackgroundColor", $("table#" + detailTableId)); - $(divColor).parent().css("background", $(divColor).css("background-color")); - } - }); - } - - return { - - //main function to initiate the module - init: function (requestStr, lang, configPathPrefix, callbackList) { - - var oLanguage; - var columns; - var xsHiddenColumns; - var smHiddenColumns; - var columnsAll; - - var openRowFlag = false; - var rowOverFlag = false; - var rowCheckable = false; - var requestURL=""; - var requestAllData; - var requestParameters; - - var tableHeight; - var tableWidth; - - var columnsTooLong; - var sTotalRecordsSource=""; - - //å–得当å‰é…ç½®åŠå›½é™…åŒ–ä¿¡æ¯ - $.ajax({ - dataType: 'json', - url: configPathPrefix + '-' + lang + '.json', - async: false, - contentType:'application/json; charset=utf-8', - "success": function(data) { - oLanguage = data.language; - columns = data.columns; - xsHiddenColumns = data.xsHiddenColumns; - smHiddenColumns = data.smHiddenColumns; - columnsAll = data.columnsAll; - openRowFlag = data.openRowFlag == 'true'? true: false; - rowOverFlag = data.rowOverFlag == 'true'? true: false; - rowCheckable = data.rowCheckable == 'true'? true: false; - requestURL = data.requestURL; - //requestAllData = data.requestAllData; - requestParameters = data.requestParameters; - tableHeight = data.tableHeight; - tableWidth = data.tableWidth; - columnsTooLong = data.columnsTooLong; - sTotalRecordsSource = data.sTotalRecordsSource; - }, - "error" : function (xhr, info) { - alert('Communication Error! Error reason:' + info); - } - }); - - $('#dataTableWrapperDiv').css('width', tableWidth); - - if(!isContained(xsHiddenColumns, smHiddenColumns) || !isContained(columns, xsHiddenColumns) || !isContained(columnsAll, columns)){ - alert('Columns claim error: (smHiddenColumns <= xsHiddenColumns <= columns <= columnsAll) Please!'); - return; - } - - generateColumns(columns, openRowFlag, rowCheckable); - //initPickers(); - handleRecords(requestStr, columns, xsHiddenColumns, smHiddenColumns, oLanguage, openRowFlag, rowCheckable, rowOverFlag, requestURL, requestParameters, tableHeight, columnsTooLong, sTotalRecordsSource, callbackList); - //获得åˆå§‹åŒ–完毕的DataTable对象 - var oTable = grid.getDataTable(); - if(openRowFlag){ - insertDetails(oTable, columnsAll, rowCheckable); - } - sortHandling(oTable, openRowFlag, rowCheckable); - //oTable.fnAdjustColumnSizing(true); - return oTable; - } - - }; - -}(); - -var DataTableSmartClientApp = function(datas, configPathPrefix, callbackList){ - - var requestStr = ""; - if(datas){ - requestStr = JSON.stringify(datas); - } - - var lang = getLanguage(); - //lang = 'en-US'; - /*for(var i=0;i0){ - callbackList[i](lang); - break; - } - }*/ - if(callbackList && callbackList[0]){ - callbackList[0](lang); - } - //requestStr = ""; - var oTable = TableAjaxICT.init(requestStr, lang, configPathPrefix, callbackList); - - //é‡æ–°è°ƒèŠ‚列宽以适应window resize - $(window).one('resize', function () { - //oTable.DataTable.models.oSettings.bAjaxDataGet = false; - oTable.fnAdjustColumnSizing(false); - } ); -} diff --git a/common/src/main/webapp/thirdparty/data-tables/app-test-i18n-datatable-zh-CN.json b/common/src/main/webapp/thirdparty/data-tables/app-test-i18n-datatable-zh-CN.json deleted file mode 100644 index fa20902..0000000 --- a/common/src/main/webapp/thirdparty/data-tables/app-test-i18n-datatable-zh-CN.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "language":{ - "sProcessing": "  å¤„ç†ä¸­...", - "sLengthMenu": "|æ¯é¡µ _MENU_ æ¡ç»“æžœ", - "sZeroRecords": "没有匹é…结果", - "sInfo": "|总共找到 _TOTAL_ æ¡ç»“æžœ", - "sInfoEmpty": "å…± 0 项", - "sGroupActions": "_TOTAL_ æ¡ç»“果被选择: ", - "sAjaxRequestGeneralError": "ä¸èƒ½å®Œæˆè¯·æ±‚,请检查您的网络连接情况。", - "sEmptyTable": "表中数æ®ä¸ºç©º", - "oPaginate": { - "sPrevious": "å‰é¡µ", - "sNext": "下页", - "sPage": "第", - "sPageOf": "页,总页数:" - } - }, - "columnsAll":[ - {"columnId":"0", "columnTitle":"开始时间"}, - {"columnId":"1", "columnTitle":"结æŸæ—¶é—´"}, - {"columnId":"2", "columnTitle":"查询粒度"}, - {"columnId":"3", "columnTitle":"网元ä½ç½®"}, - {"columnId":"4", "columnTitle":"CPU使用率(百分比)"} - ], - "columns":[ - {"columnId":"0", "columnTitle":"开始时间"}, - {"columnId":"1", "columnTitle":"结æŸæ—¶é—´"}, - {"columnId":"2", "columnTitle":"查询粒度"}, - {"columnId":"3", "columnTitle":"网元ä½ç½®"}, - {"columnId":"4", "columnTitle":"CPU使用率(百分比)"} - ], - "xsHiddenColumns":[ - ], - "smHiddenColumns":[ - ], - "columnsTooLong":["3"], - - "rowCheckable": "true", - "openRowFlag" : "false", - "rowOverFlag" : "false", - - "tableHeight":"250px", - "tableWidth":"100%", - - "requestType": "POST", - "requestURL": "/web/rest/web-pm/queryPmPageData", - "requestParameters":[ - ], - "sTotalRecordsSource":"response.extData", - "sTotalRecords":"108" -} \ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-en-US.json b/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-en-US.json deleted file mode 100644 index 809daa3..0000000 --- a/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-en-US.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "language":{ - "sProcessing": "  Loading...", - "sLengthMenu": "|View _MENU_ records", - "sInfo": "|Found total _TOTAL_ records", - "sInfoEmpty": "No records found to show", - "sGroupActions": "_TOTAL_ records selected: ", - "sAjaxRequestGeneralError": "Could not complete request. Please check your internet connection", - "sEmptyTable": "No data available in table", - "sZeroRecords": "No matching records found", - "oPaginate": { - "sPrevious": "Prev", - "sNext": "Next", - "sPage": "Page", - "sPageOf": "of" - } - }, - "columnsAll":[ - {"columnId":"alarmId", "columnTitle":"Alarm Id"}, - {"columnId":"resDisplayName", "columnTitle":"NE"}, - {"columnId":"moc", "columnTitle":"NE Type"}, - {"columnId":"alarmRaisedTime", "columnTitle":"Raised Time"}, - {"columnId":"perceivedSeverity", "columnTitle":"Severity"}, - {"columnId":"probableCauseDesc", "columnTitle":"Alarm Code"}, - {"columnId":"additionalText", "columnTitle":"Appendix Text"}, - {"columnId":"neip", "columnTitle":"NE IP"}, - {"columnId":"componentname", "columnTitle":"Location"}, - {"columnId":"alarmType", "columnTitle":"Alarm Type"}, - {"columnId":"specificproblem", "columnTitle":"Specific Problem"}, - {"columnId":"ackState", "columnTitle":"Acknowledged State"}, - {"columnId":"ackTime", "columnTitle":"Acknowledge Time"}, - {"columnId":"ackUserId", "columnTitle":"Acknowledge User"}, - {"columnId":"ackSystemId", "columnTitle":"Acknowledge System"}, - {"columnId":"alarmChangedTime", "columnTitle":"Changed Time"}, - {"columnId":"position1", "columnTitle":"Resource ID"} - ], - "columns":[ - {"columnId":"alarmId", "columnTitle":"Alarm Id"}, - {"columnId":"resDisplayName", "columnTitle":"NE"}, - {"columnId":"moc", "columnTitle":"NE Type"}, - {"columnId":"alarmRaisedTime", "columnTitle":"Raised Time"}, - {"columnId":"perceivedSeverity", "columnTitle":"Severity"}, - {"columnId":"probableCauseDesc", "columnTitle":"Alarm Code"}, - {"columnId":"additionalText", "columnTitle":"Appendix Text"}, - {"columnId":"neip", "columnTitle":"NE IP"}, - {"columnId":"componentname", "columnTitle":"Location"}, - {"columnId":"alarmType", "columnTitle":"Alarm Type"}, - {"columnId":"specificproblem", "columnTitle":"Specific Problem"}, - {"columnId":"ackState", "columnTitle":"Acknowledged State"}, - {"columnId":"ackTime", "columnTitle":"Acknowledge Time"}, - {"columnId":"ackUserId", "columnTitle":"Acknowledge User"}, - {"columnId":"ackSystemId", "columnTitle":"Acknowledge System"}, - {"columnId":"alarmChangedTime", "columnTitle":"Changed Time"}, - {"columnId":"position1", "columnTitle":"Resource ID"} - ], - "xsHiddenColumns":[ - {"columnId":"additionalText", "columnTitle":"Appendix Text"}, - {"columnId":"neip", "columnTitle":"NE IP"}, - {"columnId":"componentname", "columnTitle":"Location"}, - {"columnId":"position1", "columnTitle":"Resource ID"} - ], - "smHiddenColumns":[ - {"columnId":"position1", "columnTitle":"Resource ID"} - ], - "columnsTooLong":["additionalText", "moc", "componentname", "specificproblem", "position1"], - "sTotalRecordsSource":"response.extData", - - "rowCheckable": "true", - "openRowFlag" : "true", - "rowOverFlag" : "true", - - "tableHeight":"520px", - "tableWidth":"100%", - - "requestURL": "/web/rest/web/fm/curalarms", - "requestParameters":[ - {"paraId":"pageSize", "paraValue":"20"}, - {"paraId":"pageNo", "paraValue":"1"}, - {"paraId":"_operationType", "paraValue":"fetch"}, - {"paraId":"_startRow", "paraValue":"0"}, - {"paraId":"_endRow", "paraValue":"75"}, - {"paraId":"_textMatchStyle", "paraValue":"exact"}, - {"paraId":"_componentId", "paraValue":"isc_com_zte_ums_aos_fm_view_eventview_table_AlarmTable_0"}, - {"paraId":"_dataSource", "paraValue":"isc_PageRestDataSource_0"}, - {"paraId":"isc_metaDataPrefix", "paraValue":"_"}, - {"paraId":"isc_dataFormat", "paraValue":"json"} - ], - "sTotalRecordsSource":"response.extData" -} \ No newline at end of file diff --git a/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-zh-CN.json b/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-zh-CN.json deleted file mode 100644 index 8a270a4..0000000 --- a/common/src/main/webapp/thirdparty/data-tables/app-universal-i18n-datatable-zh-CN.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "language":{ - "sProcessing": "  å¤„ç†ä¸­...", - "sLengthMenu": "|æ¯é¡µ _MENU_ æ¡ç»“æžœ", - "sZeroRecords": "没有匹é…结果", - "sInfo": "|总共找到 _TOTAL_ æ¡ç»“æžœ", - "sInfoEmpty": "å…± 0 项", - "sGroupActions": "_TOTAL_ æ¡ç»“果被选择: ", - "sAjaxRequestGeneralError": "ä¸èƒ½å®Œæˆè¯·æ±‚,请检查您的网络连接情况。", - "sEmptyTable": "表中数æ®ä¸ºç©º", - "oPaginate": { - "sPrevious": "å‰é¡µ", - "sNext": "下页", - "sPage": "第", - "sPageOf": "页,总页数:" - } - }, - "columnsAll":[ - {"columnId":"alarmId", "columnTitle":"告警编å·"}, - {"columnId":"resDisplayName", "columnTitle":"网元"}, - {"columnId":"moc", "columnTitle":"网元类型"}, - {"columnId":"alarmRaisedTime", "columnTitle":"å‘生时间"}, - {"columnId":"perceivedSeverity", "columnTitle":"级别"}, - {"columnId":"probableCauseDesc", "columnTitle":"å‘Šè­¦ç "}, - {"columnId":"additionalText", "columnTitle":"附加文本"}, - {"columnId":"neip", "columnTitle":"网元IP"}, - {"columnId":"componentname", "columnTitle":"网元内定ä½"}, - {"columnId":"alarmType", "columnTitle":"告警类型"}, - {"columnId":"specificproblem", "columnTitle":"告警原因"}, - {"columnId":"ackState", "columnTitle":"确认状æ€"}, - {"columnId":"ackTime", "columnTitle":"确认时间"}, - {"columnId":"ackUserId", "columnTitle":"确认用户"}, - {"columnId":"ackSystemId", "columnTitle":"确认系统"}, - {"columnId":"alarmChangedTime", "columnTitle":"修改时间"}, - {"columnId":"position1", "columnTitle":"资æºID"} - ], - "columns":[ - {"columnId":"alarmId", "columnTitle":"告警编å·"}, - {"columnId":"resDisplayName", "columnTitle":"网元"}, - {"columnId":"moc", "columnTitle":"网元类型"}, - {"columnId":"alarmRaisedTime", "columnTitle":"å‘生时间"}, - {"columnId":"perceivedSeverity", "columnTitle":"级别"}, - {"columnId":"probableCauseDesc", "columnTitle":"å‘Šè­¦ç "}, - {"columnId":"additionalText", "columnTitle":"附加文本"}, - {"columnId":"neip", "columnTitle":"网元IP"}, - {"columnId":"componentname", "columnTitle":"网元内定ä½"}, - {"columnId":"alarmType", "columnTitle":"告警类型"}, - {"columnId":"specificproblem", "columnTitle":"告警原因"}, - {"columnId":"ackState", "columnTitle":"确认状æ€"}, - {"columnId":"ackTime", "columnTitle":"确认时间"}, - {"columnId":"ackUserId", "columnTitle":"确认用户"}, - {"columnId":"ackSystemId", "columnTitle":"确认系统"}, - {"columnId":"alarmChangedTime", "columnTitle":"修改时间"}, - {"columnId":"position1", "columnTitle":"资æºID"} - ], - "xsHiddenColumns":[ - {"columnId":"additionalText", "columnTitle":"附加文本"}, - {"columnId":"neip", "columnTitle":"网元IP"}, - {"columnId":"componentname", "columnTitle":"网元内定ä½"}, - {"columnId":"position1", "columnTitle":"资æºID"} - ], - "smHiddenColumns":[ - {"columnId":"position1", "columnTitle":"资æºID"} - ], - "columnsTooLong":["additionalText", "moc", "componentname", "specificproblem", "position1"], - - "rowCheckable": "true", - "openRowFlag" : "true", - "rowOverFlag" : "true", - - "tableHeight":"520px", - "tableWidth":"100%", - - "requestURL": "/web/rest/web/fm/curalarms", - "requestAllData": {"rule":{"ruleId":-1,"name":"当å‰å‘Šè­¦","creator":"admin","createTime":1397439767310,"modifier":"","modifyTime":0,"description":"","state":true,"ruleType":1,"ruleSort":1,"owner":"","attrs":"","ruleData":""}}, - "requestParameters":[ - {"paraId":"pageSize", "paraValue":"20"}, - {"paraId":"pageNo", "paraValue":"1"}, - {"paraId":"_operationType", "paraValue":"fetch"}, - {"paraId":"_startRow", "paraValue":"0"}, - {"paraId":"_endRow", "paraValue":"75"}, - {"paraId":"_textMatchStyle", "paraValue":"exact"}, - {"paraId":"_componentId", "paraValue":"isc_com_zte_ums_aos_fm_view_eventview_table_AlarmTable_0"}, - {"paraId":"_dataSource", "paraValue":"isc_PageRestDataSource_0"}, - {"paraId":"isc_metaDataPrefix", "paraValue":"_"}, - {"paraId":"isc_dataFormat", "paraValue":"json"} - ], - "sTotalRecordsSource":"response.extData" -} - diff --git a/common/src/main/webapp/thirdparty/data-tables/dataTable.html b/common/src/main/webapp/thirdparty/data-tables/dataTable.html deleted file mode 100644 index 979c456..0000000 --- a/common/src/main/webapp/thirdparty/data-tables/dataTable.html +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - - - -
-
-
-
-
- - - - - - -
- - - - - -
-
-
- -
-
- - - - - - - - - - diff --git a/common/src/main/webapp/thirdparty/data-tables/dataTables.bootstrap.css b/common/src/main/webapp/thirdparty/data-tables/dataTables.bootstrap.css deleted file mode 100644 index ada85f7..0000000 --- a/common/src/main/webapp/thirdparty/data-tables/dataTables.bootstrap.css +++ /dev/null @@ -1,331 +0,0 @@ -div.dataTables_length label { - font-weight: normal; - text-align: left; - white-space: nowrap; -} - -div.dataTables_length select { - height: 28px; - display: inline-block; -} - -div.dataTables_filter { - text-align: right; -} - -div.dataTables_filter label { - font-weight: normal; - white-space: nowrap; - text-align: left; -} - -div.dataTables_filter input { - margin-left: 0.5em; - display: inline-block; -} - -div.dataTables_info { - padding-top: 8px; - white-space: nowrap; -} - -div.dataTables_paginate { - margin: 0; - white-space: nowrap; - text-align: right; -} - -div.dataTables_paginate ul.pagination { - margin: 2px 0; - white-space: nowrap; -} - -@media screen and (max-width: 767px) { - div.dataTables_length, - div.dataTables_filter, - div.dataTables_info, - div.dataTables_paginate { - text-align: center; - } -} - - -table.dataTable td, -table.dataTable th { - -webkit-box-sizing: content-box; - -moz-box-sizing: content-box; - box-sizing: content-box; -} - - -table.dataTable { - clear: both; - margin-top: 6px !important; - margin-bottom: 6px !important; - max-width: none !important; -} - -table.dataTable thead .sorting, -table.dataTable thead .sorting_asc, -table.dataTable thead .sorting_desc, -table.dataTable thead .sorting_asc_disabled, -table.dataTable thead .sorting_desc_disabled { - cursor: pointer; -} - -table.dataTable thead .sorting { background: url('../images/sort_both.png') no-repeat center right; } -table.dataTable thead .sorting_asc { background: url('../images/sort_asc.png') no-repeat center right; } -table.dataTable thead .sorting_desc { background: url('../images/sort_desc.png') no-repeat center right; } - -table.dataTable thead .sorting_asc_disabled { background: url('../images/sort_asc_disabled.png') no-repeat center right; } -table.dataTable thead .sorting_desc_disabled { background: url('../images/sort_desc_disabled.png') no-repeat center right; } - -table.dataTable thead > tr > th { - padding-left: 18px; - padding-right: 18px; -} - -table.dataTable th:active { - outline: none; -} - -/* Scrolling */ -div.dataTables_scrollHead table { - margin-bottom: 0 !important; - border-bottom-left-radius: 0; - border-bottom-right-radius: 0; -} - -div.dataTables_scrollHead table thead tr:last-child th:first-child, -div.dataTables_scrollHead table thead tr:last-child td:first-child { - border-bottom-left-radius: 0 !important; - border-bottom-right-radius: 0 !important; -} - -div.dataTables_scrollBody table { - border-top: none; - margin-top: 0 !important; - margin-bottom: 0 !important; -} - -div.dataTables_scrollBody tbody tr:first-child th, -div.dataTables_scrollBody tbody tr:first-child td { - border-top: none; -} - -div.dataTables_scrollFoot table { - margin-top: 0 !important; - border-top: none; -} - -/* Frustratingly the border-collapse:collapse used by Bootstrap makes the column - width calculations when using scrolling impossible to align columns. We have - to use separate - */ -table.table-bordered.dataTable { - border-collapse: separate !important; -} -table.table-bordered thead th, -table.table-bordered thead td { - border-left-width: 0; - border-top-width: 0; -} -table.table-bordered tbody th, -table.table-bordered tbody td { - border-left-width: 0; - border-bottom-width: 0; -} -table.table-bordered th:last-child, -table.table-bordered td:last-child { - border-right-width: 0; -} -div.dataTables_scrollHead table.table-bordered { - border-bottom-width: 0; -} - - - - -/* - * TableTools styles - */ -.table.dataTable tbody tr.active td, -.table.dataTable tbody tr.active th { - background-color: #08C; - color: white; -} - -.table.dataTable tbody tr.active:hover td, -.table.dataTable tbody tr.active:hover th { - background-color: #0075b0 !important; -} - -.table.dataTable tbody tr.active th > a, -.table.dataTable tbody tr.active td > a { - color: white; -} - -.table-striped.dataTable tbody tr.active:nth-child(odd) td, -.table-striped.dataTable tbody tr.active:nth-child(odd) th { - background-color: #017ebc; -} - -table.DTTT_selectable tbody tr { - cursor: pointer; -} - -div.DTTT .btn:hover { - text-decoration: none !important; -} - -ul.DTTT_dropdown.dropdown-menu { - z-index: 2003; -} - -ul.DTTT_dropdown.dropdown-menu a { - color: #333 !important; /* needed only when demo_page.css is included */ -} - -ul.DTTT_dropdown.dropdown-menu li { - position: relative; -} - -ul.DTTT_dropdown.dropdown-menu li:hover a { - background-color: #0088cc; - color: white !important; -} - -div.DTTT_collection_background { - z-index: 2002; -} - -/* TableTools information display */ -div.DTTT_print_info { - position: fixed; - top: 50%; - left: 50%; - width: 400px; - height: 150px; - margin-left: -200px; - margin-top: -75px; - text-align: center; - color: #333; - padding: 10px 30px; - opacity: 0.95; - - background-color: white; - border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 6px; - - -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.5); - box-shadow: 0 3px 7px rgba(0, 0, 0, 0.5); -} - -div.DTTT_print_info h6 { - font-weight: normal; - font-size: 28px; - line-height: 28px; - margin: 1em; -} - -div.DTTT_print_info p { - font-size: 14px; - line-height: 20px; -} - -div.dataTables_processing { - position: absolute; - top: 50%; - left: 50%; - width: 100%; - height: 60px; - margin-left: -50%; - margin-top: -25px; - padding-top: 20px; - padding-bottom: 20px; - text-align: center; - font-size: 1.2em; - background-color: white; - background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0))); - background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%); - background: -moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%); - background: -ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%); - background: -o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%); - background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%); -} - - - -/* - * FixedColumns styles - */ -div.DTFC_LeftHeadWrapper table, -div.DTFC_LeftFootWrapper table, -div.DTFC_RightHeadWrapper table, -div.DTFC_RightFootWrapper table, -table.DTFC_Cloned tr.even { - background-color: white; - margin-bottom: 0; -} - -div.DTFC_RightHeadWrapper table , -div.DTFC_LeftHeadWrapper table { - border-bottom: none !important; - margin-bottom: 0 !important; - border-top-right-radius: 0 !important; - border-bottom-left-radius: 0 !important; - border-bottom-right-radius: 0 !important; -} - -div.DTFC_RightHeadWrapper table thead tr:last-child th:first-child, -div.DTFC_RightHeadWrapper table thead tr:last-child td:first-child, -div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child, -div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child { - border-bottom-left-radius: 0 !important; - border-bottom-right-radius: 0 !important; -} - -div.DTFC_RightBodyWrapper table, -div.DTFC_LeftBodyWrapper table { - border-top: none; - margin: 0 !important; -} - -div.DTFC_RightBodyWrapper tbody tr:first-child th, -div.DTFC_RightBodyWrapper tbody tr:first-child td, -div.DTFC_LeftBodyWrapper tbody tr:first-child th, -div.DTFC_LeftBodyWrapper tbody tr:first-child td { - border-top: none; -} - -div.DTFC_RightFootWrapper table, -div.DTFC_LeftFootWrapper table { - border-top: none; - margin-top: 0 !important; -} - - -/* - * FixedHeader styles - */ -div.FixedHeader_Cloned table { - margin: 0 !important -} - - - - -div.dataTables_length, div.dataTables_info { - display: inline; -} - -div.dataTables_paginate { - display: inline; - float: right !important; -} - -input.pagination-panel-input { - width: 50px; -} - - diff --git a/common/src/main/webapp/thirdparty/data-tables/images/loading-spinner-grey.gif b/common/src/main/webapp/thirdparty/data-tables/images/loading-spinner-grey.gif deleted file mode 100644 index 6d614d3..0000000 Binary files a/common/src/main/webapp/thirdparty/data-tables/images/loading-spinner-grey.gif and /dev/null differ diff --git a/common/src/main/webapp/thirdparty/data-tables/images/sort_asc.png b/common/src/main/webapp/thirdparty/data-tables/images/sort_asc.png deleted file mode 100644 index a88d797..0000000 Binary files a/common/src/main/webapp/thirdparty/data-tables/images/sort_asc.png and /dev/null differ diff --git a/common/src/main/webapp/thirdparty/data-tables/images/sort_both.png b/common/src/main/webapp/thirdparty/data-tables/images/sort_both.png deleted file mode 100644 index 1867040..0000000 Binary files a/common/src/main/webapp/thirdparty/data-tables/images/sort_both.png and /dev/null differ diff --git a/common/src/main/webapp/thirdparty/data-tables/images/sort_desc.png b/common/src/main/webapp/thirdparty/data-tables/images/sort_desc.png deleted file mode 100644 index def071e..0000000 Binary files a/common/src/main/webapp/thirdparty/data-tables/images/sort_desc.png and /dev/null differ diff --git a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.js b/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.js deleted file mode 100644 index 367680d..0000000 --- a/common/src/main/webapp/thirdparty/data-tables/jquery.dataTables-1.9.4.js +++ /dev/null @@ -1,12101 +0,0 @@ -/** - * @summary DataTables - * @description Paginate, search and sort HTML tables - * @version 1.9.4 - * @file jquery.dataTables.js - * @author Allan Jardine (www.sprymedia.co.uk) - * @contact www.sprymedia.co.uk/contact - * - * @copyright Copyright 2008-2012 Allan Jardine, all rights reserved. - * - * This source file is free software, under either the GPL v2 license or a - * BSD style license, available at: - * http://datatables.net/license_gpl2 - * http://datatables.net/license_bsd - * - * This source file is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the license files for details. - * - * For details please refer to: http://www.datatables.net - */ - -/*jslint evil: true, undef: true, browser: true */ -/*globals $, jQuery,define,_fnExternApiFunc,_fnInitialise,_fnInitComplete,_fnLanguageCompat,_fnAddColumn,_fnColumnOptions,_fnAddData,_fnCreateTr,_fnGatherData,_fnBuildHead,_fnDrawHead,_fnDraw,_fnReDraw,_fnAjaxUpdate,_fnAjaxParameters,_fnAjaxUpdateDraw,_fnServerParams,_fnAddOptionsHtml,_fnFeatureHtmlTable,_fnScrollDraw,_fnAdjustColumnSizing,_fnFeatureHtmlFilter,_fnFilterComplete,_fnFilterCustom,_fnFilterColumn,_fnFilter,_fnBuildSearchArray,_fnBuildSearchRow,_fnFilterCreateSearch,_fnDataToSearch,_fnSort,_fnSortAttachListener,_fnSortingClasses,_fnFeatureHtmlPaginate,_fnPageChange,_fnFeatureHtmlInfo,_fnUpdateInfo,_fnFeatureHtmlLength,_fnFeatureHtmlProcessing,_fnProcessingDisplay,_fnVisibleToColumnIndex,_fnColumnIndexToVisible,_fnNodeToDataIndex,_fnVisbleColumns,_fnCalculateEnd,_fnConvertToWidth,_fnCalculateColumnWidths,_fnScrollingWidthAdjust,_fnGetWidestNode,_fnGetMaxLenString,_fnStringToCss,_fnDetectType,_fnSettingsFromNode,_fnGetDataMaster,_fnGetTrNodes,_fnGetTdNodes,_fnEscapeRegex,_fnDeleteIndex,_fnReOrderIndex,_fnColumnOrdering,_fnLog,_fnClearTable,_fnSaveState,_fnLoadState,_fnCreateCookie,_fnReadCookie,_fnDetectHeader,_fnGetUniqueThs,_fnScrollBarWidth,_fnApplyToChildren,_fnMap,_fnGetRowData,_fnGetCellData,_fnSetCellData,_fnGetObjectDataFn,_fnSetObjectDataFn,_fnApplyColumnDefs,_fnBindAction,_fnCallbackReg,_fnCallbackFire,_fnJsonString,_fnRender,_fnNodeToColumnIndex,_fnInfoMacros,_fnBrowserDetect,_fnGetColumns*/ - -(/** @lends */function( window, document, undefined ) { - -(function( factory ) { - "use strict"; - - // Define as an AMD module if possible - if ( typeof define === 'function' && define.amd ) - { - define( ['jquery'], factory ); - } - /* Define using browser globals otherwise - * Prevent multiple instantiations if the script is loaded twice - */ - else if ( jQuery && !jQuery.fn.dataTable ) - { - factory( jQuery ); - } -} -(/** @lends */function( $ ) { - "use strict"; - /** - * DataTables is a plug-in for the jQuery Javascript library. It is a - * highly flexible tool, based upon the foundations of progressive - * enhancement, which will add advanced interaction controls to any - * HTML table. For a full list of features please refer to - * DataTables.net. - * - * Note that the DataTable object is not a global variable but is - * aliased to jQuery.fn.DataTable and jQuery.fn.dataTable through which - * it may be accessed. - * - * @class - * @param {object} [oInit={}] Configuration object for DataTables. Options - * are defined by {@link DataTable.defaults} - * @requires jQuery 1.3+ - * - * @example - * // Basic initialisation - * $(document).ready( function { - * $('#example').dataTable(); - * } ); - * - * @example - * // Initialisation with configuration options - in this case, disable - * // pagination and sorting. - * $(document).ready( function { - * $('#example').dataTable( { - * "bPaginate": false, - * "bSort": false - * } ); - * } ); - */ - var DataTable = function( oInit ) - { - - - /** - * Add a column to the list used for the table with default values - * @param {object} oSettings dataTables settings object - * @param {node} nTh The th element for this column - * @memberof DataTable#oApi - */ - function _fnAddColumn( oSettings, nTh ) - { - var oDefaults = DataTable.defaults.columns; - var iCol = oSettings.aoColumns.length; - var oCol = $.extend( {}, DataTable.models.oColumn, oDefaults, { - "sSortingClass": oSettings.oClasses.sSortable, - "sSortingClassJUI": oSettings.oClasses.sSortJUI, - "nTh": nTh ? nTh : document.createElement('th'), - "sTitle": oDefaults.sTitle ? oDefaults.sTitle : nTh ? nTh.innerHTML : '', - "aDataSort": oDefaults.aDataSort ? oDefaults.aDataSort : [iCol], - "mData": oDefaults.mData ? oDefaults.oDefaults : iCol - } ); - oSettings.aoColumns.push( oCol ); - - /* Add a column specific filter */ - if ( oSettings.aoPreSearchCols[ iCol ] === undefined || oSettings.aoPreSearchCols[ iCol ] === null ) - { - oSettings.aoPreSearchCols[ iCol ] = $.extend( {}, DataTable.models.oSearch ); - } - else - { - var oPre = oSettings.aoPreSearchCols[ iCol ]; - - /* Don't require that the user must specify bRegex, bSmart or bCaseInsensitive */ - if ( oPre.bRegex === undefined ) - { - oPre.bRegex = true; - } - - if ( oPre.bSmart === undefined ) - { - oPre.bSmart = true; - } - - if ( oPre.bCaseInsensitive === undefined ) - { - oPre.bCaseInsensitive = true; - } - } - - /* Use the column options function to initialise classes etc */ - _fnColumnOptions( oSettings, iCol, null ); - } - - - /** - * Apply options for a column - * @param {object} oSettings dataTables settings object - * @param {int} iCol column index to consider - * @param {object} oOptions object with sType, bVisible and bSearchable etc - * @memberof DataTable#oApi - */ - function _fnColumnOptions( oSettings, iCol, oOptions ) - { - var oCol = oSettings.aoColumns[ iCol ]; - - /* User specified column options */ - if ( oOptions !== undefined && oOptions !== null ) - { - /* Backwards compatibility for mDataProp */ - if ( oOptions.mDataProp && !oOptions.mData ) - { - oOptions.mData = oOptions.mDataProp; - } - - if ( oOptions.sType !== undefined ) - { - oCol.sType = oOptions.sType; - oCol._bAutoType = false; - } - - $.extend( oCol, oOptions ); - _fnMap( oCol, oOptions, "sWidth", "sWidthOrig" ); - - /* iDataSort to be applied (backwards compatibility), but aDataSort will take - * priority if defined - */ - if ( oOptions.iDataSort !== undefined ) - { - oCol.aDataSort = [ oOptions.iDataSort ]; - } - _fnMap( oCol, oOptions, "aDataSort" ); - } - - /* Cache the data get and set functions for speed */ - var mRender = oCol.mRender ? _fnGetObjectDataFn( oCol.mRender ) : null; - var mData = _fnGetObjectDataFn( oCol.mData ); - - oCol.fnGetData = function (oData, sSpecific) { - var innerData = mData( oData, sSpecific ); - - if ( oCol.mRender && (sSpecific && sSpecific !== '') ) - { - return mRender( innerData, sSpecific, oData ); - } - return innerData; - }; - oCol.fnSetData = _fnSetObjectDataFn( oCol.mData ); - - /* Feature sorting overrides column specific when off */ - if ( !oSettings.oFeatures.bSort ) - { - oCol.bSortable = false; - } - - /* Check that the class assignment is correct for sorting */ - if ( !oCol.bSortable || - ($.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1) ) - { - oCol.sSortingClass = oSettings.oClasses.sSortableNone; - oCol.sSortingClassJUI = ""; - } - else if ( $.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) == -1 ) - { - oCol.sSortingClass = oSettings.oClasses.sSortable; - oCol.sSortingClassJUI = oSettings.oClasses.sSortJUI; - } - else if ( $.inArray('asc', oCol.asSorting) != -1 && $.inArray('desc', oCol.asSorting) == -1 ) - { - oCol.sSortingClass = oSettings.oClasses.sSortableAsc; - oCol.sSortingClassJUI = oSettings.oClasses.sSortJUIAscAllowed; - } - else if ( $.inArray('asc', oCol.asSorting) == -1 && $.inArray('desc', oCol.asSorting) != -1 ) - { - oCol.sSortingClass = oSettings.oClasses.sSortableDesc; - oCol.sSortingClassJUI = oSettings.oClasses.sSortJUIDescAllowed; - } - } - - - /** - * Adjust the table column widths for new data. Note: you would probably want to - * do a redraw after calling this function! - * @param {object} oSettings dataTables settings object - * @memberof DataTable#oApi - */ - function _fnAdjustColumnSizing ( oSettings ) - { - /* Not interested in doing column width calculation if auto-width is disabled */ - if ( oSettings.oFeatures.bAutoWidth === false ) - { - return false; - } - - _fnCalculateColumnWidths( oSettings ); - for ( var i=0 , iLen=oSettings.aoColumns.length ; i