Version zu Ende April 2023

This commit is contained in:
2023-05-03 09:06:13 +02:00
commit f967f4698f
425 changed files with 112793 additions and 0 deletions

Binary file not shown.

BIN
static/Toolbox Executable file

Binary file not shown.

99
static/css/cloud.css Normal file
View File

@@ -0,0 +1,99 @@
/* cloud style */
html,body {
height:100%;
overflow:hidden;
margin:0;
}
tr.dialog-line td{
color:#dddddd;
font-size:110%;
font-weight:500;
height:5px;
padding: 0px 0px 5px 10px;
margin: 5px 0px 10px 0px;
border-bottom: 1px solid #dddddd
}
.extitem-caption{
font-weight:bold;
padding-left:5px;
}
.extitem-unit,
.extitem-value{
margin:0;
padding: 2px 5px 2px 2px;
font-size:18px;
}
.extitem-value{
text-align:right;
width:1%;
font-size:18px;
}
.extitem-combo{
text-align:left;
/* width: 100%; */
width: 80px;
font-size:18px;
}
.extitem-number{
text-align:right;
width: 100%;
font-size:18px;
}
.extitem-text{
text-align:left;
width: 100%;
}
.mod-tb-btn{
min-width: 40px;
max-width: 4vW;
}
.mod-tb-btn-hide{
display: none;
}
.mod-tb-btn-show{
display: inline-block;
}
.mod-tb-btn-disable{
display: none;
}
.mod-tb-btn-enable{
display: inline-block;
}
.tree-file,
.tree-folder,
.tree-folder-open{
background-image: none;
}
.icon-package{
color: #404080;
}
.icon-dataverse{
color: #c55b28;
}
.icon-dataset{
color: #337ab7;
}
.icon-astro,
.icon-audio,
.icon-code,
.icon-document,
.icon-image,
.icon-file,
.icon-network,
.icon-other,
.icon-tabular,
.icon-unlock,
.icon-video
{
color: #444;
}
.icon-package
{
color: #000;
}
/* end pps-cloud style */

347
static/css/codemirror.css Normal file
View File

@@ -0,0 +1,347 @@
/* BASICS */
.CodeMirror {
/* Set height, width, borders, and global font properties here */
font-family: monospace;
height: 300px;
color: black;
}
/* PADDING */
.CodeMirror-lines {
padding: 4px 0; /* Vertical padding around content */
}
.CodeMirror pre {
padding: 0 4px; /* Horizontal padding of content */
}
.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
background-color: white; /* The little square between H and V scrollbars */
}
/* GUTTER */
.CodeMirror-gutters {
border-right: 1px solid #ddd;
background-color: #f7f7f7;
white-space: nowrap;
}
.CodeMirror-linenumbers {}
.CodeMirror-linenumber {
padding: 0 3px 0 5px;
min-width: 20px;
text-align: right;
color: #999;
white-space: nowrap;
}
.CodeMirror-guttermarker { color: black; }
.CodeMirror-guttermarker-subtle { color: #999; }
/* CURSOR */
.CodeMirror-cursor {
border-left: 1px solid black;
border-right: none;
width: 0;
}
/* Shown when moving in bi-directional text */
.CodeMirror div.CodeMirror-secondarycursor {
border-left: 1px solid silver;
}
.cm-fat-cursor .CodeMirror-cursor {
width: auto;
border: 0 !important;
background: #7e7;
}
.cm-fat-cursor div.CodeMirror-cursors {
z-index: 1;
}
.cm-animate-fat-cursor {
width: auto;
border: 0;
-webkit-animation: blink 1.06s steps(1) infinite;
-moz-animation: blink 1.06s steps(1) infinite;
animation: blink 1.06s steps(1) infinite;
background-color: #7e7;
}
@-moz-keyframes blink {
0% {}
50% { background-color: transparent; }
100% {}
}
@-webkit-keyframes blink {
0% {}
50% { background-color: transparent; }
100% {}
}
@keyframes blink {
0% {}
50% { background-color: transparent; }
100% {}
}
/* Can style cursor different in overwrite (non-insert) mode */
.CodeMirror-overwrite .CodeMirror-cursor {}
.cm-tab { display: inline-block; text-decoration: inherit; }
.CodeMirror-rulers {
position: absolute;
left: 0; right: 0; top: -50px; bottom: -20px;
overflow: hidden;
}
.CodeMirror-ruler {
border-left: 1px solid #ccc;
top: 0; bottom: 0;
position: absolute;
}
/* DEFAULT THEME */
.cm-s-default .cm-header {color: blue;}
.cm-s-default .cm-quote {color: #090;}
.cm-negative {color: #d44;}
.cm-positive {color: #292;}
.cm-header, .cm-strong {font-weight: bold;}
.cm-em {font-style: italic;}
.cm-link {text-decoration: underline;}
.cm-strikethrough {text-decoration: line-through;}
.cm-s-default .cm-keyword {color: #708;}
.cm-s-default .cm-atom {color: #219;}
.cm-s-default .cm-number {color: #164;}
.cm-s-default .cm-def {color: #00f;}
.cm-s-default .cm-variable,
.cm-s-default .cm-punctuation,
.cm-s-default .cm-property,
.cm-s-default .cm-operator {}
.cm-s-default .cm-variable-2 {color: #05a;}
.cm-s-default .cm-variable-3 {color: #085;}
.cm-s-default .cm-comment {color: #a50;}
.cm-s-default .cm-string {color: #a11;}
.cm-s-default .cm-string-2 {color: #f50;}
.cm-s-default .cm-meta {color: #555;}
.cm-s-default .cm-qualifier {color: #555;}
.cm-s-default .cm-builtin {color: #30a;}
.cm-s-default .cm-bracket {color: #997;}
.cm-s-default .cm-tag {color: #170;}
.cm-s-default .cm-attribute {color: #00c;}
.cm-s-default .cm-hr {color: #999;}
.cm-s-default .cm-link {color: #00c;}
.cm-s-default .cm-error {color: #f00;}
.cm-invalidchar {color: #f00;}
.CodeMirror-composing { border-bottom: 2px solid; }
/* Default styles for common addons */
div.CodeMirror span.CodeMirror-matchingbracket {color: #0f0;}
div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #f22;}
.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }
.CodeMirror-activeline-background {background: #e8f2ff;}
/* STOP */
/* The rest of this file contains styles related to the mechanics of
the editor. You probably shouldn't touch them. */
.CodeMirror {
position: relative;
overflow: hidden;
background: white;
}
.CodeMirror-scroll {
overflow: scroll !important; /* Things will break if this is overridden */
/* 30px is the magic margin used to hide the element's real scrollbars */
/* See overflow: hidden in .CodeMirror */
margin-bottom: -30px; margin-right: -30px;
padding-bottom: 30px;
height: 100%;
outline: none; /* Prevent dragging from highlighting the element */
position: relative;
}
.CodeMirror-sizer {
position: relative;
border-right: 30px solid transparent;
}
/* The fake, visible scrollbars. Used to force redraw during scrolling
before actual scrolling happens, thus preventing shaking and
flickering artifacts. */
.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {
position: absolute;
z-index: 6;
display: none;
}
.CodeMirror-vscrollbar {
right: 0; top: 0;
overflow-x: hidden;
overflow-y: scroll;
}
.CodeMirror-hscrollbar {
bottom: 0; left: 0;
overflow-y: hidden;
overflow-x: scroll;
}
.CodeMirror-scrollbar-filler {
right: 0; bottom: 0;
}
.CodeMirror-gutter-filler {
left: 0; bottom: 0;
}
.CodeMirror-gutters {
position: absolute; left: 0; top: 0;
min-height: 100%;
z-index: 3;
}
.CodeMirror-gutter {
white-space: normal;
height: 100%;
display: inline-block;
vertical-align: top;
margin-bottom: -30px;
/* Hack to make IE7 behave */
*zoom:1;
*display:inline;
}
.CodeMirror-gutter-wrapper {
position: absolute;
z-index: 4;
background: none !important;
border: none !important;
}
.CodeMirror-gutter-background {
position: absolute;
top: 0; bottom: 0;
z-index: 4;
}
.CodeMirror-gutter-elt {
position: absolute;
cursor: default;
z-index: 4;
}
.CodeMirror-gutter-wrapper {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.CodeMirror-lines {
cursor: text;
min-height: 1px; /* prevents collapsing before first draw */
}
.CodeMirror pre {
/* Reset some styles that the rest of the page might have set */
-moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;
border-width: 0;
background: transparent;
font-family: inherit;
font-size: inherit;
margin: 0;
white-space: pre;
word-wrap: normal;
line-height: inherit;
color: inherit;
z-index: 2;
position: relative;
overflow: visible;
-webkit-tap-highlight-color: transparent;
-webkit-font-variant-ligatures: none;
font-variant-ligatures: none;
}
.CodeMirror-wrap pre {
word-wrap: break-word;
white-space: pre-wrap;
word-break: normal;
}
.CodeMirror-linebackground {
position: absolute;
left: 0; right: 0; top: 0; bottom: 0;
z-index: 0;
}
.CodeMirror-linewidget {
position: relative;
z-index: 2;
overflow: auto;
}
.CodeMirror-widget {}
.CodeMirror-code {
outline: none;
}
/* Force content-box sizing for the elements where we expect it */
.CodeMirror-scroll,
.CodeMirror-sizer,
.CodeMirror-gutter,
.CodeMirror-gutters,
.CodeMirror-linenumber {
-moz-box-sizing: content-box;
box-sizing: content-box;
}
.CodeMirror-measure {
position: absolute;
width: 100%;
height: 0;
overflow: hidden;
visibility: hidden;
}
.CodeMirror-cursor {
position: absolute;
pointer-events: none;
}
.CodeMirror-measure pre { position: static; }
div.CodeMirror-cursors {
visibility: hidden;
position: relative;
z-index: 3;
}
div.CodeMirror-dragcursors {
visibility: visible;
}
.CodeMirror-focused div.CodeMirror-cursors {
visibility: visible;
}
.CodeMirror-selected { background: #d9d9d9; }
.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }
.CodeMirror-crosshair { cursor: crosshair; }
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }
.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }
.cm-searching {
background: #ffa;
background: rgba(255, 255, 0, .4);
}
/* IE7 hack to prevent it from returning funny offsetTops on the spans */
.CodeMirror span { *vertical-align: text-bottom; }
/* Used to force a border model for a node */
.cm-force-border { padding-right: .1px; }
@media print {
/* Hide the cursor when printing */
.CodeMirror div.CodeMirror-cursors {
visibility: hidden;
}
}
/* See issue #2901 */
.cm-tab-wrap-hack:after { content: ''; }
/* Help users use markselection to safely style text background */
span.CodeMirror-selectedtext { background: none; }

68
static/css/fontcustom.css Normal file
View File

@@ -0,0 +1,68 @@
/*
Icon Font: fontcustom
*/
@font-face {
font-family: "fontcustom";
src: url("/css/resources/fontcustom/fontcustom_47254e4da4fa5ad5e2bb7c085027ce43.eot");
src: url("/css/fontcustom/fontcustom_47254e4da4fa5ad5e2bb7c085027ce43.eot?#iefix") format("embedded-opentype"),
url("/css/resources/fontcustom/fontcustom_47254e4da4fa5ad5e2bb7c085027ce43.woff2") format("woff2"),
url("/css/resources/fontcustom/fontcustom_47254e4da4fa5ad5e2bb7c085027ce43.woff") format("woff"),
url("/css/resources/fontcustom/fontcustom_47254e4da4fa5ad5e2bb7c085027ce43.ttf") format("truetype"),
url("/css/resources/fontcustom/fontcustom_47254e4da4fa5ad5e2bb7c085027ce43.svg#fontcustom") format("svg");
font-weight: normal;
font-style: normal;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: "fontcustom";
src: url("/css/resources/fontcustom/fontcustom_47254e4da4fa5ad5e2bb7c085027ce43.svg#fontcustom") format("svg");
}
}
[data-icon]::before { content: attr(data-icon); }
[data-icon]::before,
.icon-astro::before,
.icon-audio::before,
.icon-code::before,
.icon-dataset::before,
.icon-dataverse::before,
.icon-document::before,
.icon-file::before,
.icon-geodata::before,
.icon-image::before,
.icon-network::before,
.icon-other::before,
.icon-package::before,
.icon-tabular::before,
.icon-unlock::before,
.icon-video::before {
display: inline-block;
font-family: "fontcustom";
font-style: normal;
font-weight: normal;
font-variant: normal;
line-height: 1;
text-decoration: inherit;
text-rendering: optimizeLegibility;
text-transform: none;
-webkit-font-smoothing: antialiased;
}
.icon-astro::before { content: "\f104"; }
.icon-audio::before { content: "\f105"; }
.icon-code::before { content: "\f10b"; }
.icon-dataset::before { content: "\f102"; }
.icon-dataverse::before { content: "\f100"; }
.icon-document::before { content: "\f106"; }
.icon-file::before { content: "\f10a"; }
.icon-geodata::before { content: "\f107"; }
.icon-image::before { content: "\f103"; }
.icon-network::before { content: "\f10c"; }
.icon-other::before { content: "\f10d"; }
.icon-package::before { content: "\f10f"; }
.icon-tabular::before { content: "\f108"; }
.icon-unlock::before { content: "\f10e"; }
.icon-video::before { content: "\f109"; }

3
static/css/metrics.css Normal file
View File

@@ -0,0 +1,3 @@
.element-hide{
display: none;
}

269
static/css/module.css Normal file
View File

@@ -0,0 +1,269 @@
body{
/* text-size-adjust:auto; */
-moz-text-size-adjust:auto;
-webkit-text-size-adjust:auto;
-ms-text-size-adjust:auto;
}
label.textbox-label-before{
vertical-align:middle;
font-size:90%;
}
tr.wrongcontent{
display:none;
}
td.wrongcontent{
visibility:hidden;
}
a.tooltip {
position:relative;
text-decoration:none;
}
a.tooltip:after {
content:attr(data-tooltip);
position:absolute;
bottom:130%;
left:20%;
background:#ffcb66;
padding:5px 15px;
color:black;
-webkit-border-radius:10px;
-moz-border-radius :10px;
border-radius :10px;
white-space:nowrap;
opacity:0;
/* At time of this creation, only Fx4 doing pseduo transitions */
-webkit-transition:all 0.4s ease;
-moz-transition :all 0.4s ease;
}
a.tooltip:before {
content:"";
position:absolute;
width:0;
height:0;
border-top:20px solid #ffcb66;
border-left:20px solid transparent;
border-right:20px solid transparent;
/* At time of this creation, only Fx4 doing pseduo transitions */
-webkit-transition:all 0.4s ease;
-moz-transition :all 0.4s ease;
opacity:0;
left:30%;
bottom:90%;
}
a.tooltip:hover:after {
bottom:100%;
}
a.tooltip:hover:before {
bottom:70%;
}
a.tooltip:hover:after, a:hover:before {
opacity:1;
}
.svgdelivery1, .svgstore1, .svgmale1, .svgfemale1{
fill:white;
}.svgdelivery1blur, .svgstore1blur, .svgmale1blur, .svgfemale1blur{
fill:black;
}
.svgsplit{
fill:#4040FF; !important;
stroke-width:0; !important
}
.footerstatus {
float:left;
/* font-family:Helvetica,Tahoma,Arial,sans-serif; */
font-size:130%;
margin-left:10px;
}
.footerstatuserror {
color:#FFFFFF;
background-color:#FF0000;
}
fieldset {
border:none;
/* float:left; */
height:auto;
width:auto;
}
.toollabel{
display:block;
margin:auto;
margin-left:-5px;
margin-top:-6px;
margin-bottom:-7px;
font-size:1.3vh;
display:none;
}
table caption{
background:rgba(222, 128, 51, 0.75);
color:#444;
border:1px solid #d4a375;
padding:0.25%;
padding-left:0.5%;
text-align:left;
font-size:0.8em;
}
#tablebox {
width:100%;
height:100%;
margin:0px;
clear:both;
border-collapse:collapse;
border-color:black;
table-layout:fixed;
/* font-family:Arial,Helvetica,Tahoma,sans-serif; */
text-shadow:1px 1px 10px #000, 1px 1px 5px #000;
white-space:nowrap;
border:1px solid transparent;
}
#table_shelflist {
/* width:100%; */
margin-top:5px;
table-layout:fixed;
white-space:nowrap;
border-collapse:collapse;
}
#table_boxlist {
/* width:100%; */
table-layout:fixed;
/* font-family:Arial,Helvetica,Tahoma,sans-serif; */
white-space:nowrap;
border-collapse:collapse;
}
#table_place{
table-layout:fixed;
width:100%;
height:100%;
margin:auto;
border:0px solid rgb(160,160,160);
white-space:nowrap;
/* font-family:Arial,Helvetica,Tahoma,sans-serif; */
}
tr.noborder{
font-size:110%;
}
td.noborder{
padding:0px;
}
td.shelfplace{
width:10vw;
height:9vh;
margin:1px;
background:transparent;
vertical-align:middle;
}
td.droppable{
/* border:1px solid #FFF; */
}
td.noshelfplace{
width:10vw;
height:9vh;
margin:1px;
/* border:4px solid transparent; */
}
div.contentpanel{
width:auto;
padding:0.3%;
margin:0.5%;
border:1px solid #d4a375;
}
div.contentscroll{
width:auto;
overflow:auto;
}
div.contentcaption{
width:auto;
height:20px;
background:rgba(222, 128, 51, 0.75);
color:#444;
border:1px solid #d4a375;
padding:0.25%;
font-size:1em;
overflow:auto;
}
div.content{
border:0px;
font-size:0.6em;
}
div.dragbox{
/* width:96%; */
height:100%;
border:4px solid transparent;
margin:auto;
}
/* Nur Firefox */
@-moz-document url-prefix() {
div.dragbox{
width:95%;
height:100%;
}
}
div.nodragbox{
width:96%;
height:100%;
/* border:2px solid #F0F0F0 */
border:2px solid inherit;
/* margin:auto; */
}
tspan.place{
text-align:left;
font-size:1.5vh;
position:relative;
left:5%;
width:25%;
float:left;
}
tspan.placeshelf{
width:95%;
text-align:center;
opacity:0.5;
}
tspan.number{
width:100%;
text-align:center;
font-size:2.5vh;
position:relative;
float:left;
}
tspan.weight{
text-align:right;
font-size:1.5vh;
position:relative;
left:8%;
width:90%;
float:left;
}
div.sl{
border:4px solid #f00;
}
table.legend{
width:100%;
height:auto;
border-spacing:0px;
}
td.legend{
width:10vw;
font-size:1.5vh;
text-align:center;
text-shadow:1px 1px 2px #444;
}
/************************************************/
.dontmove{
opacity: 0.6;
}
.deliverybox{
/* display:inline-block; */
text-decoration:none;
border:4px solid transparent;
}
.warehousebox{
/* display:inline-block; */
text-decoration:none;
/* padding-right:1em; */
}

139
static/css/prism.css Normal file
View File

@@ -0,0 +1,139 @@
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript+sql */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
code[class*="language-"],
pre[class*="language-"] {
color: black;
background: none;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
text-shadow: none;
background: #b3d4fc;
}
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection {
text-shadow: none;
background: #b3d4fc;
}
@media print {
code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #f5f2f0;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #a67f59;
background: hsla(0, 0%, 100%, .5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function {
color: #DD4A68;
}
.token.regex,
.token.important,
.token.variable {
color: #e90;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}

View File

@@ -0,0 +1,235 @@
html {BORDER-STYLE:_none; HEIGHT:100%;}
body {MARGIN: 5px; FONT-COLOR: black; FONT-FAMILY: Arial; HEIGHT:100%;}
@media print{
body {ZOOM: 87%; BACKGROUND-COLOR: #FFFFFF;}
#pagebreak {PAGE-BREAK-AFTER: always;}
/* popup-menu */
#menu {DISPLAY: none; FILTER:blendTrans(Duration=0.3);}
input {DISPLAY: none;}
#menucaption {DISPLAY: none;}
#menuitems {DISPLAY: none;}
}
@media screen{
body {ZOOM: 120%; BACKGROUND-COLOR: #ECE9D8;}
#pagebreak {DISPLAY: none;}
/* popup-menu */
#menu,
.submenu {BACKGROUND-COLOR: buttonface; POSITION: absolute; WIDTH: 180px; BORDER-STYLE: outset; BORDER-WIDTH: 2px; Z-INDEX: 200; VISIBILITY: hidden; FILTER:blendTrans(Duration=0.3); FONT-SIZE: 70%;}
input {CURSOR: hand;}
#menucaption {BACKGROUND-COLOR: blue; COLOR: white; TEXT-ALIGN:center;}
#menuitems {PADDING: 5px;}
#menuitemcaption {WIDTH: 79%;}
#menuitemsub {WIDTH: 6%; POSITION: relative; TOP:-3px; CURSOR: hand;}
}
#reporthead {WIDTH: 800px; HEIGHT: 35px; BACKGROUND-COLOR: white; BORDER-BOTTOM: 1px solid black; FONT-SIZE: 100%;}
#recipehead, #orderhead {WIDTH: 800px; BACKGROUND-COLOR: silver; FONT-SIZE: 70%;}
#headcaption {FONT-WEIGHT: bolder; TEXT-DECORATION: underline; CLEAR:both;}
#headline,
#recipeheadline,
#orderheadline,
#runprogsummaryline {LINE-HEIGHT: 90%;}
#headitem,
#recipeheaditem {FLOAT: left; WIDTH: 33%;}
#headitemcaption,
#recipeheaditemcaption {FLOAT: left; WIDTH: 40%;}
#headitemvalue,
#recipeheaditemvalue {FLOAT: left; WIDTH: 40%;}
#headitemunit,
#recipeheaditemunit {WIDTH: 20%;}
#steps {WIDTH: 800px; BORDER-TOP: 1px solid black; BORDER-BOTTOM: 1px solid black; BACKGROUND-COLOR:white;}
#step {CLEAR: both; BORDER-TOP: 1px solid silver; OVERFLOW:hidden;}
#stepno {FLOAT: left; WIDTH: 4%; PADDING-RIGHT: 2px; CLEAR: both; TEXT-ALIGN: right; FONT-WEIGHT:bold;}
#stepsubno {FLOAT: left; WIDTH: 2%; FONT-SIZE: 60%}
.stepjump {COLOR:yellow; BACKGROUND-COLOR:blue;}
#time {FLOAT: left; WIDTH: 10%; LETTER-SPACING: 0px; WORD-SPACING: 0px; FONT: 53%; OVERFLOW: visible;}
#limitsoll,
#timesoll {FLOAT: left; WIDTH: 49%; OVERFLOW: hidden; COLOR:blue;}
#limitist,
#timeist {FLOAT: left; WIDTH: 49%; OVERFLOW: hidden; COLOR:green; FONT: italic;}
#werte {WIDTH: 100%; FONT: 70%; OVERFLOW: hidden; LINE-HEIGHT:90%}
#value_caption {FLOAT: left; WIDTH: 30%; FONT-WEIGHT: _bolder; }
#value_recipe,
#value_default,
#value_setvalue,
#value_current {FLOAT: left; WIDTH: 10%; TEXT-ALIGN:right; MARGIN-RIGHT:1%;}
#unit_recipe,
#unit_default,
#unit_setvalue,
#unit_current {FLOAT: left; WIDTH: 5%; OVERFLOW:hidden;}
#value_recipe,
#unit_recipe {COLOR:blue;}
#value_default,
#unit_default {COLOR:gray;}
#value_setvalue,
#unit_setvalue {}
#value_current,
#unit_current {COLOR:green; FONT: italic;}
#steptype016w1i,#steptype017w1i,#steptype018w1i,
#steptype019w1i,#steptype020w1i,#steptype021w1i,#steptype022w1i,#steptype023w1i,
#steptype024w1i,#steptype027w1i,#steptype029w1i,#steptype030w1i,#steptype031w1i,
#steptype032w1i,#steptype033w1i,#steptype050w1i,#steptype051w1i,
#steptype016w2i,#steptype017w2i,#steptype018w2i,
#steptype019w2i,#steptype020w2i,#steptype021w2i,#steptype022w2i,#steptype023w2i,
#steptype024w2i,#steptype027w2i,#steptype029w2i,#steptype030w2i,#steptype031w2i,
#steptype032w2i,#steptype033w2i,#steptype050w2i,#steptype051w2i,
#steptype016w3i,#steptype017w3i,#steptype018w3i,
#steptype019w3i,#steptype020w3i,#steptype021w3i,#steptype022w3i,#steptype023w3i,
#steptype024w3i,#steptype027w3i,#steptype029w3i,#steptype030w3i,#steptype031w3i,
#steptype032w3i,#steptype033w3i,#steptype050w3i,#steptype051w3i,
#steptype016w4i,#steptype017w4i,#steptype018w4i,
#steptype019w4i,#steptype020w4i,#steptype021w4i,#steptype022w4i,#steptype023w4i,
#steptype024w4i,#steptype027w4i,#steptype029w4i,#steptype030w4i,#steptype031w4i,
#steptype032w4i,#steptype033w4i,#steptype050w4i,#steptype051w4i,
#steptype016w5i,#steptype017w5i,#steptype018w5i,
#steptype019w5i,#steptype020w5i,#steptype021w5i,#steptype022w5i,#steptype023w5i,
#steptype024w5i,#steptype027w5i,#steptype029w5i,#steptype030w5i,#steptype031w5i,
#steptype032w5i,#steptype033w5i,#steptype050w5i,#steptype051w5i,
#steptype016w6i,#steptype017w6i,#steptype018w6i,
#steptype019w6i,#steptype020w6i,#steptype021w6i,#steptype022w6i,#steptype023w6i,
#steptype024w6i,#steptype027w6i,#steptype029w6i,#steptype030w6i,#steptype031w6i,
#steptype032w6i,#steptype033w6i,#steptype050w6i,#steptype051w6i,
{DISPLAY:none; FLOAT: left; WIDTH: 21%; TEXT-ALIGN: right; FONT: italic 70%; COLOR: blue; OVERFLOW: hidden}
#steptype016w1s,#steptype017w1s,#steptype018w1s,
#steptype019w1s,#steptype020w1s,#steptype021w1s,#steptype022w1s,#steptype023w1s,
#steptype024w1s,#steptype027w1s,#steptype029w1s,#steptype030w1s,#steptype031w1s,
#steptype032w1s,#steptype033w1s,#steptype050w1s,#steptype051w1s,
#steptype016w2s,#steptype017w2s,#steptype018w2s,
#steptype019w2s,#steptype020w2s,#steptype021w2s,#steptype022w2s,#steptype023w2s,
#steptype024w2s,#steptype027w2s,#steptype029w2s,#steptype030w2s,#steptype031w2s,
#steptype032w2s,#steptype033w2s,#steptype050w2s,#steptype051w2s,
#steptype016w3s,#steptype017w3s,#steptype018w3s,
#steptype019w3s,#steptype020w3s,#steptype021w3s,#steptype022w3s,#steptype023w3s,
#steptype024w3s,#steptype027w3s,#steptype029w3s,#steptype030w3s,#steptype031w3s,
#steptype032w3s,#steptype033w3s,#steptype050w3s,#steptype051w3s,
#steptype016w4s,#steptype017w4s,#steptype018w4s,
#steptype019w4s,#steptype020w4s,#steptype021w4s,#steptype022w4s,#steptype023w4s,
#steptype024w4s,#steptype027w4s,#steptype029w4s,#steptype030w4s,#steptype031w4s,
#steptype032w4s,#steptype033w4s,#steptype050w4s,#steptype051w4s,
#steptype016w5s,#steptype017w5s,#steptype018w5s,
#steptype019w5s,#steptype020w5s,#steptype021w5s,#steptype022w5s,#steptype023w5s,
#steptype024w5s,#steptype027w5s,#steptype029w5s,#steptype030w5s,#steptype031w5s,
#steptype032w5s,#steptype033w5s,#steptype050w5s,#steptype051w5s,
#steptype016w6s,#steptype017w6s,#steptype018w6s,
#steptype019w6s,#steptype020w6s,#steptype021w6s,#steptype022w6s,#steptype023w6s,
#steptype024w6s,#steptype027w6s,#steptype029w6s,#steptype030w6s,#steptype031w6s,
#steptype032w6s,#steptype033w6s,#steptype050w6s,#steptype051w6s
{FLOAT: left; WIDTH: 31%; TEXT-ALIGN: right; FONT: 70%; OVERFLOW: hidden}
#steptype016w1m,#steptype017w1m,#steptype018w1m,
#steptype019w1m,#steptype020w1m,#steptype021w1m,#steptype022w1m,#steptype023w1m,
#steptype024w1m,#steptype027w1m,#steptype029w1m,#steptype030w1m,#steptype031w1m,
#steptype032w1m,#steptype033w1m,#steptype050w1m,#steptype051w1m,
#steptype016w2m,#steptype017w2m,#steptype018w2m,
#steptype019w2m,#steptype020w2m,#steptype021w2m,#steptype022w2m,#steptype023w2m,
#steptype024w2m,#steptype027w2m,#steptype029w2m,#steptype030w2m,#steptype031w2m,
#steptype032w2m,#steptype033w2m,#steptype050w2m,#steptype051w2m,
#steptype016w3m,#steptype017w3m,#steptype018w3m,
#steptype019w3m,#steptype020w3m,#steptype021w3m,#steptype022w3m,#steptype023w3m,
#steptype024w3m,#steptype027w3m,#steptype029w3m,#steptype030w3m,#steptype031w3m,
#steptype032w3m,#steptype033w3m,#steptype050w3m,#steptype051w3m,
#steptype016w4m,#steptype017w4m,#steptype018w4m,
#steptype019w4m,#steptype020w4m,#steptype021w4m,#steptype022w4m,#steptype023w4m,
#steptype024w4m,#steptype027w4m,#steptype029w4m,#steptype030w4m,#steptype031w4m,
#steptype032w4m,#steptype033w4m,#steptype050w4m,#steptype051w4m,
#steptype016w5m,#steptype017w5m,#steptype018w5m,
#steptype019w5m,#steptype020w5m,#steptype021w5m,#steptype022w5m,#steptype023w5m,
#steptype024w5m,#steptype027w5m,#steptype029w5m,#steptype030w5m,#steptype031w5m,
#steptype032w5m,#steptype033w5m,#steptype050w5m,#steptype051w5m,
#steptype016w6m,#steptype017w6m,#steptype018w6m,
#steptype019w6m,#steptype020w6m,#steptype021w6m,#steptype022w6m,#steptype023w6m,
#steptype024w6m,#steptype027w6m,#steptype029w6m,#steptype030w6m,#steptype031w6m,
#steptype032w6m,#steptype033w6m,#steptype050w6m,#steptype051w6m,
{WIDTH:90%; FONT: 70%; OVERFLOW: hidden}
#name
{FLOAT: left; WIDTH: 20%; OVERFLOW: hidden; FONT: bold;}
#runprog
{FLOAT: left; WIDTH: 5%; OVERFLOW: hidden; FONT: 90%; FONT: bold}
/* technologischer block */
#steptype027 {PADDING-BOTTOM: 0.3%; BACKGROUND-COLOR: #E0FFFF; CLEAR: both}
#text {FLOAT: left; WIDTH:50%; FONT-SIZE:17px; OVERFLOW:_hidden; HEIGHT:20px; TEXT-ALIGN:center; PADDING-TOP:3px;}
/* rezeptende */
#steptype050 {PADDING-BOTTOM: 0.3%; BACKGROUND-COLOR: #FFD0A0; CLEAR: both; HEIGHT: 20px;}
#steptype050stepno {DISPLAY: _none;}
#steptype050stepsubno {DISPLAY: none;}
#steptype050text {FLOAT: left; WIDTH: 25%; OVERFLOW: hidden; FONT: 90%;}
/* bewegungsprogramm im schritt */
#runprog {POSITION: relative; LEFT: 48%; WIDTH: 52%; BACKGROUND-COLOR: #E6E6F0; FONT: 70%; PADDING-LEFT: 1.5%; CLEAR: both}
#runcaption {WIDTH: 19%; FLOAT: left;}
#runvalue {WIDTH: 30%; FLOAT: left;}
/* farbe f<>r kommentar #FFE6E6 */
#steptext {FONT: 80%; CLEAR: both; LINE-HEIGHT: 90%;}
#name_pk {FLOAT: left; PADDING-RIGHT: 2%;}
#action_pk {FLOAT: left; PADDING-RIGHT: 2%;}
#metric_pk {}
/* schalter im schritt */
#flags {POSITION: relative; LEFT: 48%; WIDTH: 52%; BACKGROUND-COLOR: #F0E6B6; FONT: 70%; PADDING-LEFT: 0.5%; CLEAR: both}
/* kommentar */
#comment {WIDTH: 100%; BACKGROUND-COLOR: #D5BEDE; MARGIN-LEFT: 10%; CLEAR: both; TEXT-ALIGN:center; FONT-SIZE: 90%;}
/* chemikalien */
#component {WIDTH: 90%; POSITION: relative; LEFT: 10%; BACKGROUND-COLOR: #FFFFE4; LINE-HEIGHT: 90%; CLEAR: both;}
#componentname {WIDTH: 30%; FLOAT: left; PADDING-LEFT:15%; OVERFLOW: hidden; FONT: 90%; CLEAR: both;}
#componentphysicalclose {WIDTH: 10%; FLOAT: left; FONT-SIZE: 75%; COLOR:gray;}
#componentpercent {WIDTH: 8%; FLOAT: left; TEXT-ALIGN: right; FONT-SIZE: 90%; COLOR:blue;}
#componentunitpercent {WIDTH: 4%; FLOAT: left; FONT-SIZE: 90%; COLOR:blue;}
#componentdefault {WIDTH: 8%; FLOAT: left; TEXT-ALIGN: right; FONT-SIZE: 90%; COLOR:gray;}
#componentunitdefault {WIDTH: 4%; FLOAT: left; FONT-SIZE: 90%; COLOR:gray;}
#componentsetvalue {WIDTH: 8%; FLOAT: left; TEXT-ALIGN: right; FONT-SIZE: 90%;}
#componentunitsetvalue {WIDTH: 4%; FLOAT: left; FONT-SIZE: 90%;}
#componentcurrent {WIDTH: 8%; FLOAT: left; TEXT-ALIGN: right; FONT-SIZE: 90%; COLOR:green;}
#componentunitcurrent {WIDTH: 4%; FLOAT: left; FONT-SIZE: 90%; COLOR:green;}
#componentnumber {TEXT-ALIGN: right; FONT-SIZE: 90%; OVERFLOW: hidden}
.editable {CURSOR:hand; BACKGROUND-COLOR:black; COLOR:white !important; BORDER:1px solid white;}
#aep_ovrl {
background-color: black;
-moz-opacity: 0.7; opacity: 0.7;
top: 0; left: 0; position: fixed;
width: 100%; height:100%; z-index: 99;
}
#aep_ww { position: fixed; z-index: 100; top: 0; left: 0; width: 100%; height: 100%; text-align: center;}
#aep_win { margin: 20% auto 0 auto; width: 400px; text-align: left;}
#aep_w {background-color: white; padding: 3px; border: 1px solid black; background-color: #EEE;}
#aep_t {color: white; margin: 0 0 2px 3px; font-family: Arial, sans-serif; font-size: 10pt;}
#aep_text {width: 100%;}
#aep_w span {font-family: Arial, sans-serif; font-size: 10pt;}
#aep_w div {text-align: right; margin-top: 5px;}
#aep_ovrl {
position: absolute;
filter:alpha(opacity=70);
top: expression(eval(document.body.scrollTop));
width: expression(eval(document.body.clientWidth));
}
#aep_ww {
position: absolute;
top: expression(eval(document.body.scrollTop));
}

View File

View File

@@ -0,0 +1,168 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<!--
2017-8-29: Created with FontForge (http://fontforge.org)
-->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<metadata>
Created by FontForge 20141215 at Tue Aug 29 11:31:31 2017
By Michael Heppler
</metadata>
<defs>
<font id="fontcustom" horiz-adv-x="512" >
<font-face
font-family="fontcustom"
font-weight="400"
font-stretch="normal"
units-per-em="512"
panose-1="2 0 5 3 0 0 0 0 0 0"
ascent="448"
descent="-64"
bbox="38.2715 -64 475.929 448.001"
underline-thickness="25.6"
underline-position="-51.2"
unicode-range="U+0020-F10F"
/>
<missing-glyph />
<glyph glyph-name="space" unicode=" " horiz-adv-x="200"
/>
<glyph glyph-name="tabular" unicode="&#xf108;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002zM115.707 229.528l280.893 -0.000976562v-199.242h-280.893v199.243zM217.554 156.534l76.8027 -0.000976562v36.7969h-76.8027v-36.7959zM294.356 139.839l-76.8027 0.000976562v-40.5293h76.8027v40.5283z
M132.402 193.33v-36.7959h68.4561v36.7959h-68.4561zM132.402 139.84v-40.5293h68.4561v40.5293h-68.4561zM132.402 46.9814h68.4561v35.6348h-68.4561v-35.6348zM217.554 46.9814h76.8027v35.6348h-76.8027v-35.6348zM379.905 46.9814h-0.000976562v35.6348h-68.8535
v-35.6348h68.8545zM379.905 99.3105h-0.000976562v40.5283h-68.8535v-40.5283h68.8545zM311.051 156.533h68.8535v36.7969h-68.8535v-36.7969z" />
<glyph glyph-name="document" unicode="&#xf106;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002zM115.578 390.442v22.5859h169.49v-22.5859h-169.49zM115.578 344.247v22.5859h169.489v-22.5859h-169.489zM115.578 298.051v22.5859h169.49v-22.5859h-169.49zM115.578 251.854v22.5859h280.844v-22.5859h-280.844z
M115.578 204.896v22.5859h280.844v-22.5859h-280.844zM115.578 158.699v22.5859h280.844v-22.5859h-280.844zM115.578 112.504v22.5859h280.844v-22.5859h-280.844zM115.578 66.3076v22.5859h280.844v-22.5859h-280.844zM115.578 19.0879v22.5859h280.844v-22.5859h-280.844
zM115.578 -27.1084v22.5859h280.844v-22.5859h-280.844z" />
<glyph glyph-name="file" unicode="&#xf10a;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002zM115.707 229.528l280.893 -0.000976562v-199.242h-280.893v199.243zM217.554 156.534l76.8027 -0.000976562v36.7969h-76.8027v-36.7959zM294.356 139.839l-76.8027 0.000976562v-40.5293h76.8027v40.5283z
M132.402 193.33v-36.7959h68.4561v36.7959h-68.4561zM132.402 139.84v-40.5293h68.4561v40.5293h-68.4561zM132.402 46.9814h68.4561v35.6348h-68.4561v-35.6348zM217.554 46.9814h76.8027v35.6348h-76.8027v-35.6348zM379.905 46.9814h-0.000976562v35.6348h-68.8535
v-35.6348h68.8545zM379.905 99.3105h-0.000976562v40.5283h-68.8535v-40.5283h68.8545zM311.051 156.533h68.8535v36.7969h-68.8535v-36.7969z" />
<glyph glyph-name="package" unicode="&#xf10f;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002zM392.499 217.293v0v-178.433c0 -3.83984 -2.55957 -7.16797 -6.19531 -8.24316l-128.819 -37.2734c-0.0507812 0 -0.15332 -0.0507812 -0.204102 -0.0507812c-0.102539 0 -0.154297 -0.0517578 -0.255859 -0.0517578
c-0.154297 -0.0507812 -0.256836 -0.101562 -0.410156 -0.101562c-0.102539 0 -0.15332 -0.0517578 -0.255859 -0.0517578c-0.15332 0 -0.307617 -0.0507812 -0.460938 -0.0507812h-0.205078c-0.255859 -0.0517578 -0.459961 -0.0517578 -0.665039 -0.0517578
c-0.255859 0 -0.460938 0.0517578 -0.666016 0.0517578h-0.204102c-0.154297 0 -0.307617 0.0507812 -0.460938 0.0507812c-0.102539 0 -0.154297 0.0517578 -0.255859 0.0517578c-0.154297 0.0507812 -0.256836 0.0507812 -0.410156 0.101562
c-0.102539 0 -0.15332 0.0517578 -0.255859 0.0517578c-0.0507812 0 -0.15332 0.0507812 -0.205078 0.0507812l-128.973 37.2734c-3.68652 1.0752 -6.19531 4.45508 -6.19531 8.24316v178.433v0.0507812v0.0517578v0.102539
c0.0517578 0.15332 0.0517578 0.358398 0.0517578 0.511719v0.205078c0.0507812 0.204102 0.0507812 0.40918 0.102539 0.614258v0.102539c0 0.15332 0.0507812 0.358398 0.101562 0.511719c0 0.0507812 0.0517578 0.15332 0.0517578 0.205078
c0.0507812 0.15332 0.102539 0.306641 0.15332 0.459961c0 0.0517578 0.0517578 0.102539 0.0517578 0.154297c0.0507812 0.204102 0.101562 0.40918 0.204102 0.5625c0.0517578 0.0517578 0.0517578 0.102539 0.102539 0.154297
c0.0517578 0.15332 0.15332 0.255859 0.205078 0.40918c0.0507812 0.0517578 0.0507812 0.102539 0.102539 0.15332c0.102539 0.154297 0.204102 0.358398 0.306641 0.512695l0.0517578 0.0507812c0.102539 0.102539 0.204102 0.255859 0.306641 0.410156
c0.0517578 0.0507812 0.0517578 0.101562 0.102539 0.15332c0.102539 0.102539 0.205078 0.255859 0.307617 0.358398l0.102539 0.102539c0.101562 0.15332 0.255859 0.255859 0.40918 0.40918c0.0507812 0 0.102539 0.0517578 0.15332 0.102539
c0.154297 0.102539 0.255859 0.205078 0.358398 0.307617c0.0517578 0.0507812 0.102539 0.101562 0.154297 0.15332c0.0507812 0 0.0507812 0.0507812 0.101562 0.0507812c0.102539 0.0517578 0.205078 0.154297 0.307617 0.205078
c0.0507812 0 0.0507812 0.0507812 0.102539 0.0507812c0.15332 0.102539 0.358398 0.205078 0.511719 0.307617c0.102539 0.0507812 0.15332 0.0507812 0.205078 0.102539c0.15332 0.0507812 0.255859 0.15332 0.40918 0.205078
c0.0517578 0 0.102539 0.0507812 0.154297 0.0507812c0.204102 0.0507812 0.358398 0.15332 0.5625 0.205078c0.0517578 0 0.102539 0.0507812 0.154297 0.0507812c0.204102 0.0517578 0.358398 0.102539 0.511719 0.15332
c0.0507812 0.0517578 0.0507812 0.0517578 0.102539 0.0517578l132.557 35.123c1.48438 0.358398 3.02051 0.358398 4.50586 -0.0507812l125.439 -35.124h0.0517578c0.204102 -0.0507812 0.40918 -0.15332 0.614258 -0.204102h0.0507812
c0.15332 -0.0517578 0.358398 -0.102539 0.511719 -0.205078c0.0517578 -0.0507812 0.102539 -0.0507812 0.154297 -0.102539c0.15332 -0.0507812 0.255859 -0.15332 0.40918 -0.205078c0.0517578 0 0.102539 0 0.15332 -0.0507812
c0.205078 -0.102539 0.358398 -0.205078 0.512695 -0.307617c0.0507812 -0.0507812 0.102539 -0.0507812 0.15332 -0.101562c0.0507812 -0.0517578 0.15332 -0.102539 0.205078 -0.154297c0.0507812 0 0.102539 -0.0507812 0.15332 -0.102539
c0.0507812 -0.0507812 0.102539 -0.101562 0.15332 -0.15332c0.154297 -0.102539 0.255859 -0.255859 0.410156 -0.358398l0.0507812 -0.0507812c0.15332 -0.154297 0.255859 -0.307617 0.410156 -0.460938c0.0507812 0 0.0507812 -0.0517578 0.101562 -0.102539
c0.102539 -0.102539 0.205078 -0.255859 0.307617 -0.358398c0.0507812 0 0.0507812 -0.0507812 0.102539 -0.102539c0.15332 -0.15332 0.255859 -0.358398 0.358398 -0.511719c0 -0.0517578 0.0507812 -0.0517578 0.0507812 -0.102539
c0.102539 -0.15332 0.154297 -0.307617 0.255859 -0.460938c0.0517578 -0.0507812 0.0517578 -0.102539 0.102539 -0.15332c0.0517578 -0.15332 0.154297 -0.307617 0.205078 -0.460938c0 0 0.0507812 -0.0507812 0.0507812 -0.102539
c0.0517578 -0.205078 0.154297 -0.358398 0.205078 -0.563477c0 -0.101562 0.0517578 -0.15332 0.0517578 -0.204102c0 -0.102539 0.0507812 -0.255859 0.101562 -0.410156c0 -0.102539 0.0517578 -0.15332 0.0517578 -0.204102
c0 -0.154297 0.0507812 -0.358398 0.102539 -0.563477v-0.102539c0 -0.15332 0.0507812 -0.358398 0.0507812 -0.511719v-0.205078v-0.563477v-0.0507812zM246.374 12.9531v160.615l-111.872 32.3066v-160.563zM254.925 188.877l40.3965 11.6738l57.3447 16.5889
l-94.2598 26.3672l-100.403 -26.5723l63.8975 -18.4834zM375.398 45.3115v160.615l-111.872 -32.3584v-160.666z" />
<glyph glyph-name="image" unicode="&#xf103;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002zM155.146 219.049c0 24.5439 19.8975 44.4404 44.4414 44.4404s44.4414 -19.8965 44.4414 -44.4404c0 -24.5449 -19.8975 -44.4414 -44.4414 -44.4414s-44.4414 19.8965 -44.4414 44.4414zM337.292 229.049
l59.3076 -105.122v-119.061h-0.0273438v-6.91602h-280.865v98.5039l13.832 11.0566v-0.000976562l33.2598 27.4824l55.8594 -55.3271l59.0508 110.654zM203.555 58.1465l5.6709 11.9092l-47.0703 45.3682l-32.0762 -27.248l2.01953 -24.3584l13.6113 17.0137
l23.8184 -28.9229l24.3857 17.5801zM360.41 93.1396l14.1836 28.3125l-44.8008 80.5283l-45.4492 -30.8574l-24.8623 -49.3389l24.9473 11.2832l34.0186 -34.1289l27.2168 38.4795z" />
<glyph glyph-name="dataset" unicode="&#xf102;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002zM115.578 390.442v22.5859h169.49v-22.5859h-169.49zM115.578 344.247v22.5859h169.489v-22.5859h-169.489zM115.578 298.051v22.5859h169.49v-22.5859h-169.49zM115.578 251.854v22.5859h280.844v-22.5859h-280.844z
M115.578 204.896v22.5859h280.844v-22.5859h-280.844zM115.578 158.699v22.5859h280.844v-22.5859h-280.844zM115.578 112.504v22.5859h280.844v-22.5859h-280.844zM115.578 66.3076v22.5859h280.844v-22.5859h-280.844zM115.578 19.0879v22.5859h280.844v-22.5859h-280.844
zM115.578 -27.1084v22.5859h280.844v-22.5859h-280.844z" />
<glyph glyph-name="astro" unicode="&#xf104;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.369v350.35h-122.69v118.652h-206.679v-469.002zM391.215 262.411c11.5938 -11.5947 6.47559 -34.2588 -15.6455 -69.2871c-5.60742 -8.88086 -12.1367 -18.2422 -19.4346 -27.9131c4.13086 -11.2793 6.38379 -23.4639 6.38379 -36.1738
c0 -58.1104 -47.1074 -105.22 -105.218 -105.22c-12.666 0 -24.8096 2.23926 -36.0566 6.3418c-9.90332 -7.49902 -19.4893 -14.1963 -28.5703 -19.9307c-22.9121 -14.4688 -40.5381 -21.6641 -53.2314 -21.665c-6.71191 -0.000976562 -12.0449 2.01074 -16.0547 6.02051
c-4.83789 4.83984 -6.7627 11.7695 -5.71973 20.5986c0.783203 6.62402 3.31445 14.6055 7.52441 23.7236c6.91895 14.9814 18.4443 33.2529 33.5459 53.2275c-4.30176 11.4834 -6.65625 23.918 -6.65625 36.9033c0 58.1094 47.1084 105.218 105.22 105.218
c13.0293 0 25.5039 -2.36816 37.0195 -6.69824c20.1035 15.1475 38.4668 26.6494 53.4287 33.4414c8.91797 4.04785 16.7324 6.46094 23.2285 7.17285c8.65723 0.949219 15.4648 -0.989258 20.2363 -5.75977zM183.484 26.7207
c5.99414 3.81348 12.2236 8.07129 18.627 12.7158c-13.749 8.48438 -25.3965 20.0449 -33.9854 33.7217c-11.2783 -15.5518 -19.9834 -29.6807 -25.5049 -41.4551c-8.75781 -18.6748 -5.94531 -23.7559 -5.91113 -23.7949
c0.463867 -0.397461 3.97656 -1.33203 12.6104 1.42676c8.99023 2.87109 20.8037 8.88379 34.1641 17.3857zM346.835 184.338c4.45801 6.17285 8.55762 12.1826 12.2422 17.9717c8.50293 13.3594 14.5146 25.1738 17.3877 34.1641
c2.75684 8.63672 1.82324 12.1494 1.42285 12.6172c-0.0351562 0.0283203 -4.96387 2.77148 -23.04 -5.56641c-11.7383 -5.41406 -25.915 -14.0859 -41.5566 -25.3838c13.5928 -8.55762 25.0879 -20.1406 33.5439 -33.8027z" />
<glyph glyph-name="unlock" unicode="&#xf10e;"
d="M475.929 -25.8672c0 -21.0557 -16.9902 -38.125 -37.9463 -38.125h-361.764c-20.958 0 -37.9473 17.0693 -37.9473 38.125v242.271c0 21.0547 16.9893 38.125 37.9473 38.125h361.763c20.957 0 37.9473 -17.0703 37.9473 -38.125v-242.271v0zM365.643 397.034
l20.6064 -52.3926l-73.0195 -28.7412l-13.3633 33.9902c-4.25781 10.8203 -16.5273 16.1201 -27.4043 11.8389l-72.8105 -28.6602c-10.8779 -4.28125 -16.2432 -16.5225 -11.9844 -27.3418l62.624 -159.1l-74.207 -29.208l-69.8672 177.501
c-16.2607 41.3125 4.04688 87.9824 45.3584 104.243l109.825 43.2295c41.3105 16.2598 87.9814 -4.04688 104.242 -45.3594z" />
<glyph glyph-name="code" unicode="&#xf10b;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002zM206.965 90.2354c0 -2.6084 -0.105469 -4.65234 -0.316406 -6.13281c-0.211914 -1.48145 -0.546875 -2.53809 -1.00488 -3.17188c-0.458984 -0.634766 -1.02246 -0.916992 -1.69141 -0.845703
c-0.670898 0.0693359 -1.5332 0.351562 -2.59082 0.845703l-81.1055 40.3936c-0.988281 0.564453 -1.71094 1.74512 -2.16797 3.54297c-0.458984 1.79785 -0.6875 4.49414 -0.6875 8.08984c0 1.83203 0.0693359 3.43652 0.211914 4.81055
c0.139648 1.375 0.317383 2.50195 0.52832 3.38379c0.211914 0.880859 0.510742 1.58691 0.898438 2.11523c0.386719 0.52832 0.828125 0.932617 1.32227 1.21582l81 40.1826c2.04395 0.986328 3.48926 0.792969 4.33594 -0.582031
c0.845703 -1.375 1.26855 -4.17676 1.26855 -8.40723c0 -2.89062 -0.0527344 -5.18164 -0.158203 -6.87305c-0.106445 -1.69141 -0.300781 -3.03125 -0.582031 -4.01855c-0.282227 -0.987305 -0.670898 -1.69141 -1.16309 -2.11426
c-0.494141 -0.422852 -1.16211 -0.845703 -2.00879 -1.26953l-60.9082 -28.5508l59.7451 -27.7051c1.05664 -0.494141 1.91992 -0.988281 2.59082 -1.48047c0.668945 -0.494141 1.17969 -1.25293 1.5332 -2.27344c0.352539 -1.02246 0.597656 -2.39746 0.740234 -4.12402
c0.139648 -1.72656 0.209961 -4.07031 0.209961 -7.03125zM236.053 44.4492c-0.352539 -0.916016 -0.811523 -1.65625 -1.37402 -2.22168c-0.56543 -0.563477 -1.3584 -1.02051 -2.37988 -1.375c-1.02246 -0.351562 -2.29199 -0.616211 -3.80664 -0.792969
c-1.5166 -0.174805 -3.43652 -0.264648 -5.7627 -0.264648c-2.8916 0 -5.25195 0.142578 -7.08496 0.422852c-1.83398 0.283203 -3.22461 0.705078 -4.17676 1.26953c-0.952148 0.56543 -1.49902 1.28711 -1.63965 2.16797c-0.141602 0.881836 0 1.9209 0.423828 3.11914
l63.2344 177.544c0.28125 0.916016 0.703125 1.67383 1.26953 2.27344c0.5625 0.597656 1.33789 1.07422 2.32617 1.42773c0.986328 0.351562 2.27344 0.616211 3.85938 0.792969c1.58594 0.174805 3.50684 0.263672 5.76367 0.263672
c2.95996 0 5.33984 -0.141602 7.1377 -0.422852c1.79785 -0.282227 3.15332 -0.705078 4.07031 -1.26855c0.915039 -0.56543 1.44434 -1.28711 1.58594 -2.16797c0.140625 -0.882812 0.0351562 -1.9209 -0.317383 -3.11914zM394.254 132.64
c0 -1.83398 -0.0712891 -3.4209 -0.211914 -4.75879c-0.140625 -1.33984 -0.333984 -2.46875 -0.581055 -3.38379c-0.24707 -0.916992 -0.564453 -1.63867 -0.951172 -2.16699c-0.388672 -0.529297 -0.830078 -0.899414 -1.32227 -1.11035l-81.1055 -40.1826
c-0.988281 -0.494141 -1.83496 -0.705078 -2.53809 -0.634766c-0.705078 0.0703125 -1.28711 0.458008 -1.74512 1.16309c-0.458008 0.704102 -0.775391 1.74512 -0.951172 3.12012c-0.176758 1.37402 -0.263672 3.11914 -0.263672 5.23438
c0 2.88965 0.0527344 5.18066 0.158203 6.87305s0.298828 3.03027 0.582031 4.01855c0.28125 0.987305 0.669922 1.70801 1.16309 2.16797c0.491211 0.458008 1.16309 0.861328 2.00879 1.21582l60.9092 28.5508l-59.7461 27.7051
c-1.12793 0.492188 -2.02637 0.986328 -2.69629 1.48047c-0.670898 0.492188 -1.18164 1.25 -1.5332 2.27344c-0.353516 1.02051 -0.582031 2.39551 -0.6875 4.12402c-0.105469 1.72656 -0.158203 4.07031 -0.158203 7.03125c0 2.60742 0.0869141 4.65332 0.263672 6.13379
c0.175781 1.47949 0.493164 2.53711 0.951172 3.17188c0.458984 0.633789 1.04004 0.915039 1.74512 0.845703c0.703125 -0.0712891 1.5498 -0.353516 2.53809 -0.845703l81.2109 -40.5c0.915039 -0.423828 1.63965 -1.55176 2.16797 -3.38379
c0.52832 -1.83398 0.792969 -4.54785 0.792969 -8.14258z" />
<glyph glyph-name="video" unicode="&#xf109;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002zM393.035 155.245h0.000976562v-136.743l-80.1689 46.2861v-54.1758h-193.78v141.273h24.5869c-15.6006 8.04688 -26.2744 24.3066 -26.2744 43.0693c0 26.7549 21.6895 48.4443 48.4453 48.4443
c26.7549 0 48.4453 -21.6895 48.4453 -48.4443c0 -18.7627 -10.6748 -35.0225 -26.2754 -43.0693h56.9707c-15.6006 8.04688 -26.2734 24.3066 -26.2734 43.0693c0 26.7549 21.6885 48.4443 48.4443 48.4443c26.7549 0 48.4453 -21.6895 48.4453 -48.4443
c0 -18.7627 -10.6748 -35.0225 -26.2754 -43.0693h23.541v-42.9268z" />
<glyph glyph-name="dataverse" unicode="&#xf100;"
d="M266.787 -63.7441c-34.1826 0 -63.501 10.5283 -87.6299 36.1436c-24.1299 25.6182 -36.3027 53.2461 -36.2842 87.2793c-0.0175781 34.0371 13.877 65.0029 36.2842 87.2861c14.4639 14.4277 32.6104 25.2881 52.8447 31.1895l-22.0381 98.7832
c-0.977539 -0.0371094 -1.90625 -0.142578 -2.88477 -0.142578c-23.6602 -0.0136719 -45.1855 9.58691 -60.6836 25.0381c-15.5146 15.417 -25.1621 36.8779 -25.1387 60.4395c-0.0234375 23.5586 9.62402 45.0039 25.1387 60.4355
c15.4971 15.4355 37.0234 25.0361 60.6836 25.0361c23.6699 0 45.1748 -9.60059 60.6846 -25.0361c15.498 -15.4326 25.1416 -36.8896 25.1416 -60.4355c0 -23.5615 -9.6416 -45.0225 -25.1416 -60.4395c-6.86328 -6.84082 -14.9756 -12.4639 -23.8604 -16.6787
l22.7598 -102.048c0.0478516 0 0.0761719 0.0146484 0.124023 0.0146484c34.1836 0.0126953 65.2773 -13.8594 87.6484 -36.1553c22.3984 -22.2734 36.3086 -53.249 36.3086 -87.2861c0 -34.0332 -13.9102 -64.9814 -36.3086 -87.2803
c-22.373 -22.2979 -53.4658 -36.1436 -87.6484 -36.1436zM147.449 362.272c0 -16.4385 6.66211 -31.2129 17.4727 -41.9951c10.8281 -10.7734 25.6445 -17.3965 42.1572 -17.4082c16.5215 0.0107422 31.3281 6.63379 42.1582 17.3926
c10.8086 10.7979 17.4521 25.5596 17.4521 42.0107c0 16.4336 -6.64355 31.1895 -17.4521 41.9785c-10.8301 10.7754 -25.6357 17.3867 -42.1582 17.3975c-16.5127 -0.0117188 -31.3291 -6.62207 -42.1572 -17.3975c-10.8398 -10.7891 -17.4727 -25.5449 -17.4727 -41.9785z
M329.748 -3.00293c16.1152 16.0977 26.041 38.1455 26.0713 62.6836c-0.0302734 24.541 -9.95605 46.5889 -26.0713 62.6914c-16.1611 16.0684 -38.3037 25.9434 -62.9609 25.9551c-24.6387 -0.00878906 -46.752 -9.88574 -62.9141 -25.9551
c-16.1445 -16.1025 -26.0713 -38.1523 -26.0713 -62.6914c0 -24.5371 9.92676 -46.585 26.0713 -62.6836c16.1611 -16.0693 38.2754 -25.9424 62.9141 -25.957c24.6572 0.0126953 46.7988 9.88672 62.9609 25.957z" />
<glyph glyph-name="geodata" unicode="&#xf107;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002zM255.517 -10.7539c-36.6543 0 -71.1143 14.2744 -97.0322 40.1924c-25.9189 25.9199 -40.1934 60.3799 -40.1934 97.0332s14.2744 71.1133 40.1934 97.0332c25.918 25.9189 60.3779 40.1924 97.0322 40.1924
c36.6533 0 71.1143 -14.2734 97.0332 -40.1924c25.918 -25.9199 40.1924 -60.3799 40.1924 -97.0332s-14.2744 -71.1133 -40.1924 -97.0332c-25.9199 -25.918 -60.3799 -40.1924 -97.0332 -40.1924zM263.665 5.82031l0.548828 0.0390625
c28.9033 2.06348 56.167 14.5459 76.7676 35.1465s33.083 47.8643 35.1475 76.7686l0.0390625 0.547852h-22.708v16.2979h22.708l-0.0390625 0.547852c-2.06445 28.9043 -14.5469 56.167 -35.1475 76.7686c-20.6006 20.5996 -47.8633 33.083 -76.7676 35.1465
l-0.548828 0.0390625v-22.707h-16.2969v22.707l-0.548828 -0.0390625c-28.9043 -2.06445 -56.167 -14.5469 -76.7686 -35.1465c-20.6006 -20.6016 -33.083 -47.8643 -35.1465 -76.7686l-0.0390625 -0.547852h22.708v-16.2979h-22.708l0.0390625 -0.547852
c2.06445 -28.9043 14.5469 -56.168 35.1465 -76.7686c20.6016 -20.6006 47.8643 -33.083 76.7686 -35.1465l0.548828 -0.0390625v17.1553h16.2969v-17.1553zM255.517 263.185c-36.5176 0 -70.8486 -14.2207 -96.6709 -40.042
c-25.8213 -25.8232 -40.042 -60.1543 -40.042 -96.6719c0 -36.5166 14.2207 -70.8477 40.042 -96.6709c25.8223 -25.8213 60.1533 -40.042 96.6709 -40.042c36.5166 0 70.8486 14.2207 96.6709 40.042c25.8223 25.8232 40.042 60.1543 40.042 96.6709
c0 36.5176 -14.2197 70.8486 -40.042 96.6719c-25.8223 25.8213 -60.1543 40.042 -96.6709 40.042zM263.153 224.928v21.6455v1.09961l1.09668 -0.078125c29.0264 -2.07324 56.4062 -14.6084 77.0938 -35.2959s33.2227 -48.0674 35.2959 -77.0938l0.0791016 -1.09766
h-1.10059h-21.6455v-15.2725h21.6455h1.10059l-0.0791016 -1.09766c-2.07324 -29.0264 -14.6084 -56.4062 -35.2959 -77.0928c-20.6875 -20.6885 -48.0674 -33.2236 -77.0938 -35.2969l-1.09668 -0.078125v1.09961v16.0947h-15.2734v-16.0947v-1.09961l-1.09766 0.078125
c-29.0264 2.07324 -56.4053 14.6084 -77.0928 35.2969c-20.6885 20.6865 -33.2227 48.0664 -35.2959 77.0928l-0.078125 1.09766h1.09961h21.6465v15.2725h-21.6465h-1.09961l0.078125 1.09766c2.07324 29.0273 14.6074 56.4062 35.2959 77.0938
c20.6875 20.6875 48.0664 33.2227 77.0928 35.2959l1.09766 0.078125v-1.09961v-21.6455h15.2734zM255.517 264.208v0c36.79 0 71.3799 -14.3271 97.3945 -40.3418c26.0156 -26.0156 40.3428 -60.6045 40.3428 -97.3955c0 -36.79 -14.3271 -71.3789 -40.3428 -97.3945
c-26.0146 -26.0146 -60.6045 -40.3418 -97.3945 -40.3418c-36.791 0 -71.3789 14.3271 -97.3945 40.3418c-26.0156 26.0156 -40.3428 60.6045 -40.3428 97.3945c0 36.792 14.3271 71.3799 40.3428 97.3955c26.0146 26.0146 60.6035 40.3418 97.3945 40.3418z
M246.855 223.903v0v22.6699c-59.5088 -4.25 -107.191 -51.9316 -111.44 -111.441h22.6699v-17.3203h-22.6699c4.25 -59.5088 51.9316 -107.191 111.44 -111.441v17.1182h17.3213v-17.1182c59.5088 4.25 107.19 51.9316 111.441 111.441h-22.6699v17.3203h22.6699
c-4.25098 59.5098 -51.9326 107.191 -111.441 111.441v-22.6699h-17.3213zM223.457 158.531l113.237 49.1191l-49.1201 -113.237l-113.236 -49.1201zM201.481 72.4375l60.9619 26.4434l-34.5176 34.5176zM335.709 206.665l-111.862 -48.5234l-48.5234 -111.863
l111.862 48.5244zM200.496 71.4521l1.03125 2.37891l25.6289 59.0811l0.598633 1.38086l1.06445 -1.06445l33.4531 -33.4531l1.06445 -1.06445l-1.38086 -0.599609l-59.0811 -25.627zM337.681 208.636v0l-49.7168 -114.611l-114.612 -49.7168l49.7168 114.613z
M202.468 73.4238v0l59.0811 25.627l-33.4531 33.4531z" />
<glyph glyph-name="audio" unicode="&#xf105;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002zM371.032 265.229l0.0410156 -190.561h-0.0859375c-1.10156 -21.9277 -23.7656 -39.4336 -51.5654 -39.4336c-28.5068 0 -51.6133 18.4014 -51.6133 41.1035c0 22.6992 23.1064 41.1035 51.6133 41.1035
c10.0078 0 19.3486 -2.27246 27.2607 -6.19922v100.195l-110.433 -26.915v-147.39c0.197266 -1.46191 0.301758 -2.94629 0.301758 -4.4502c0 -22.7021 -23.1084 -41.1035 -51.6123 -41.1035s-51.6104 18.4014 -51.6104 41.1035c0 22.7012 23.1064 41.1035 51.6104 41.1035
c9.86523 0 19.083 -2.20508 26.9209 -6.0293l-0.106445 158.653z" />
<glyph glyph-name="other" unicode="&#xf10d;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002z" />
<glyph glyph-name="network" unicode="&#xf10c;"
d="M324.106 448l118.077 -115.579v-376.978c0 -10.7373 -8.70605 -19.4434 -19.4443 -19.4434h-333.479c-10.7393 0 -19.4434 8.70605 -19.4434 19.4434v473.113c0 10.7373 8.7041 19.4434 19.4434 19.4434h234.847zM319.493 422.432v-93.084h95.0947zM91.3154 -42.501
h329.368v350.35h-122.689v118.652h-206.679v-469.002zM113.53 197.376c0 28.6289 23.209 51.8379 51.8379 51.8379s51.8369 -23.209 51.8369 -51.8379s-23.208 -51.8379 -51.8369 -51.8379s-51.8379 23.209 -51.8379 51.8379zM155.128 41.6895
c0 28.6289 23.208 51.8369 51.8369 51.8369c28.6299 0 51.8379 -23.208 51.8379 -51.8369s-23.208 -51.8379 -51.8379 -51.8379c-28.6289 0 -51.8369 23.209 -51.8369 51.8379zM269.815 214.272c0 28.6289 23.209 51.8379 51.8379 51.8379s51.8369 -23.209 51.8369 -51.8379
s-23.208 -51.8369 -51.8369 -51.8369s-51.8379 23.208 -51.8379 51.8369zM295.542 78.2793c0 28.6289 23.209 51.8369 51.8379 51.8369s51.8369 -23.208 51.8369 -51.8369s-23.208 -51.8379 -51.8369 -51.8379s-51.8379 23.209 -51.8379 51.8379zM222.548 44.2441
c-0.575195 -0.795898 -1.20703 -1.39551 -1.89453 -1.79883c-0.69043 -0.400391 -1.57324 -0.641602 -2.65137 -0.723633c-1.07812 -0.0800781 -2.37305 -0.0126953 -3.88281 0.201172c-1.51172 0.216797 -3.3916 0.619141 -5.64062 1.21094
c-2.7959 0.735352 -5.04395 1.47363 -6.74414 2.21094c-1.70215 0.739258 -2.94043 1.50195 -3.7168 2.29004c-0.776367 0.789062 -1.12207 1.62598 -1.03418 2.51367c0.0878906 0.888672 0.489258 1.8584 1.20312 2.9082l106.321 155.616
c0.504883 0.814453 1.10547 1.44043 1.80566 1.87598c0.696289 0.435547 1.56738 0.699219 2.61328 0.789062c1.04395 0.0898438 2.35547 0.0185547 3.93457 -0.213867c1.57812 -0.234375 3.45801 -0.636719 5.64062 -1.21094
c2.86328 -0.75293 5.12891 -1.49609 6.79492 -2.22461c1.66699 -0.730469 2.87109 -1.48438 3.61426 -2.2627c0.741211 -0.779297 1.06934 -1.6123 0.982422 -2.5c-0.0888672 -0.888672 -0.454102 -1.86719 -1.10059 -2.93555zM153.63 194.42
c-0.941406 0.699219 -1.64746 1.42773 -2.11621 2.18359c-0.46582 0.758789 -0.735352 1.69141 -0.811523 2.79785c-0.0732422 1.10645 0.0351562 2.41211 0.324219 3.91406c0.291992 1.50391 0.814453 3.35449 1.57227 5.55371
c0.941406 2.7334 1.875 4.90918 2.79688 6.53027c0.922852 1.62109 1.86328 2.76855 2.8252 3.44434c0.962891 0.674805 1.97363 0.904297 3.03711 0.686523c1.06348 -0.21582 2.21777 -0.763672 3.46289 -1.64062l184.372 -130.411
c0.964844 -0.629883 1.70215 -1.33105 2.21094 -2.10449c0.504883 -0.770508 0.803711 -1.69238 0.889648 -2.76758c0.0849609 -1.07324 -0.0292969 -2.39453 -0.342773 -3.96387c-0.3125 -1.56836 -0.835938 -3.41992 -1.57129 -5.55371
c-0.963867 -2.7998 -1.9043 -4.99219 -2.81348 -6.58105c-0.912109 -1.58691 -1.8418 -2.7002 -2.79004 -3.34375c-0.951172 -0.639648 -1.95801 -0.853516 -3.01953 -0.636719c-1.06543 0.21875 -2.23145 0.730469 -3.49805 1.54102zM226.966 27.6621
c0.262695 -0.945312 0.336914 -1.8125 0.222656 -2.60254c-0.117188 -0.788086 -0.480469 -1.62988 -1.08789 -2.52246c-0.610352 -0.892578 -1.4707 -1.8623 -2.58105 -2.9082c-1.1123 -1.04688 -2.59961 -2.26465 -4.46582 -3.65332
c-2.31934 -1.72656 -4.29883 -3.02051 -5.93652 -3.88965c-1.63965 -0.868164 -3.00781 -1.36035 -4.10938 -1.47559c-1.10059 -0.114258 -1.96973 0.137695 -2.6084 0.760742c-0.639648 0.62207 -1.14648 1.54199 -1.52246 2.75488l-55.251 180.189
c-0.321289 0.902344 -0.435547 1.7627 -0.338867 2.58203c0.0947266 0.81543 0.431641 1.66016 1.01367 2.53418c0.582031 0.871094 1.45605 1.85156 2.62305 2.94043c1.16797 1.08691 2.65527 2.30469 4.46582 3.65137c2.375 1.76758 4.36914 3.07422 5.97949 3.92188
c1.61133 0.84668 2.95117 1.31641 4.02246 1.41211c1.07227 0.0927734 1.92773 -0.170898 2.56641 -0.792969c0.639648 -0.624023 1.17578 -1.51953 1.60742 -2.69238zM361.474 91.7939c0.163086 -0.733398 0.166016 -1.43848 0.00683594 -2.11621
c-0.163086 -0.676758 -0.548828 -1.44531 -1.15625 -2.30566c-0.609375 -0.860352 -1.44727 -1.83203 -2.51172 -2.91699c-1.06836 -1.08496 -2.48242 -2.38477 -4.24609 -3.90137c-2.19336 -1.88477 -4.05078 -3.34473 -5.57324 -4.38477
c-1.52441 -1.04004 -2.77832 -1.71582 -3.7666 -2.02539c-0.989258 -0.308594 -1.74414 -0.269531 -2.26758 0.12207c-0.523438 0.392578 -0.90625 1.05664 -1.15137 1.99023l-35.8848 138.773c-0.220703 0.685547 -0.257812 1.37793 -0.112305 2.07617
c0.144531 0.695312 0.507812 1.46191 1.09082 2.30078c0.582031 0.835938 1.43262 1.82031 2.55176 2.95215c1.12012 1.12988 2.53516 2.42969 4.24609 3.90137c2.24512 1.92969 4.11816 3.40234 5.61328 4.41992c1.49707 1.0166 2.72559 1.66797 3.68555 1.95605
c0.961914 0.286133 1.7041 0.234375 2.22656 -0.157227c0.523438 -0.393555 0.935547 -1.0332 1.23242 -1.9209z" />
</font>
</defs></svg>

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 B

BIN
static/images/blank.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

BIN
static/images/calendar_arrows.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

BIN
static/images/combo_arrow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 B

BIN
static/images/datagrid_icons.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

BIN
static/images/datebox_arrow.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

BIN
static/images/layout_arrows.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 B

BIN
static/images/linkbutton_bg.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
static/images/loading.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
static/images/menu_arrows.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

BIN
static/images/panel_tools.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 852 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 813 B

BIN
static/images/slider_handle.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 863 B

BIN
static/images/spinner_arrows.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 B

BIN
static/images/tabs_icons.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 B

BIN
static/images/tree_icons.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 921 B

692
static/jeasyui/changelog.txt Executable file
View File

@@ -0,0 +1,692 @@
Version 1.9.x
-------------
* Bug
* layout: The icon on the collapsed panel is overlaped by title. fixed.
* propertygrid: The css style of the row expander will affact that in the detailview. fixed.
* combogrid: The 'getValues' method returns incorrect values sometimes. fixed.
* Improvement
* datagrid: The 'sorter' function on the column accepts the entire row as the sorting parameters.
* datagrid: Add 'hformatter' and 'hstyler' properties for the colomns.
* datebox: Add 'getDate' and 'setDate' methods.
* pagination: Add 'onBeforeSelectPage' event.
* combo: Prevent from conflicting with svg.
* window: Add 'fixed' property.
* timepicker: Add 'hour24' property.
* layout: Add 'stopCollapsing' method.
Version 1.9.0
-------------
* Bug
* datagrid: Slow scrolling with mousewheel on frozen columns. fixed.
* datagrid: The 'rowStyler' function is called on empty row. fixed.
* linkbutton: Calling 'disable' method still can submit the form. fixed.
* combotree: The 'onBeforeSelect' event fires twice while selecting a node. fixed.
* combotreegrid: The 'onSelect' event fires twice while selecting a row. fixed.
* Improvement
* checkbox: Add 'readonly' property.
* radiobutton: Add 'readonly' property.
* Compatible with jQuery 3.x.
* New Plugins
* timepicker: Allow the user to choose time on a clock.
Version 1.8.0
-------------
* Bug
* treegrid: The 'pageNumber' can't be initialized with the specified value. fixed.
* checkbox: The disabled checkbox has no disabled label. fixed.
* Improvement
* switchbutton: Add the 'label','labelAlign','labelPosition','labelWidth' properties.
* switchbutton: Accept 'tabindex' attribute to get focus when the user press TAB key.
* form: The 'onChange' event is available for all the form component.
* calendar: The 'Date' property is available to support the hijri date.
* textbox: The floating label is available.
Version 1.7.0
-------------
* Bug
* sidemenu: The tooltip has a wrong position when the 'floatMenuPosition' is set to 'left'. fixed.
* datagrid: The horizontal scrollbar has a wrong state when the 'showHeader' is set to true. fixed.
* combo: The initialized value will trigger the form's 'onChange' event when the 'multiple' is set to true. fixed.
* panel: The horizontal panel doesn't work normally when 'noheader' property is set to true. fixed.
* pagination: The extended buttons may lose in IE when rebuild the component. fixed.
* Improvement
* tree: Add 'findBy' method to find a node by any fields.
* tree: The 'find' method is enhanced to find a node easily.
* combo: Add 'panelValign' property.
* datagrid: The sorting parameters will be ignored when the 'remoteSort' is set to false.
* timespinner: Add 'hour12' property to display in 12 hour format.
Version 1.6.0
-------------
* Bug
* maskedbox: The component does not accept numeric keypad. fixed.
* combogrid: When selecting multiple records, the datagrid will scroll to the last checked record. fixed.
* Improvement
* Compatible with jQuery 3.x.
* tabs: The 'toolPosition' property can accept 'top' and 'bottom' values.
* textbox: The textbox label has the animating feature when focus or blur on it.
* tooltip: Add 'valign' property.
* tree: The node class can be initialized by setting the 'nodeCls' in the data.
* New Plugins
* sidemenu: The sidemenu is created from accordion and tree plugins. It builds a collapsible menu with some categories.
* radiobutton: This plugin provides a round interface to select one option from a number of options.
* checkbox: This plugin allows a user to select a value from a small set of options.
Version 1.5.5
-------------
* Bug
* tabs: The selecting history has wrong order when the title contains complex elements. fixed.
* combo: The drop-down panel may not be hidden if a bigger 'delay' value is set. fixed.
* layout: The expanding panel does not collapse when move mouse quickly away from it. fixed.
* tagbox: The tagbox and the label don't stay in the same line. fixed.
* Improvement
* combo: The 'blur' event handler is attached to the 'inputEvents' property.
* numberbox: The 'cloneFrom' method is available.
* slider: The 'step' property can be set with a floating number.
* menu: The 'findItem' method allows the user to find menu item by any parameters.
* menubutton: Add 'showEvent' and 'hideEvent' properties.
* New Plugins
* maskedbox: The maskedbox enforces its structure as the user types.
Version 1.5.4
-------------
* Bug
* combotreegrid: The 'onChange' event does not fire when entering values on the inputing box. fixed.
* combobox: Clicking on the drop-down panel will jump to the bottom of body on win10 IE11. fixed.
* datebox: Clicking on the 'Today' button doesn't trigger the 'onSelect' event. fixed.
* propertygrid: The 'getChanges' method doesn't work after editing the only one row. fixed.
* Improvement
* combo: Add the 'panelEvents' property.
* combo: Attach the default 'mousedown' event handler.
* combobox: The 'setValues' method can be called to initialize the displaying text.
* combotreegrid: Press ENTER key to select the highlighted rows.
* panel: Improve the resizing performance.
* filebox: The 'files' method allows the user to get the selected file list.
* searchbox: Improvent the 'selectName' method.
Version 1.5.3
-------------
* Bug
* combobox: The 'iconCls' property can not be parsed from the <option> markup. fixed.
* combobox: Clicking scrollbar will cause the drop-down panel to be hidden in IE. fixed.
* pagination: The pagination height will shrink when the 'displayMsg' property is set to false. fixed.
* tabs: The tab panel takes a wrong 'data' parameter in the 'onLoad' event. fixed.
* Improvement
* draggable: Add 'onEndDrag' event.
* resizable: Retrieve more than one resizing directions with different edges.
* datagrid: Add 'resizeEdge' property.
* datagrid: Avoid the memory leaks.
* combo: The 'originalValue' property value is corrected in multiple mode.
* form: Add the tagbox to the form fields.
* tagbox: Add the 'reset' method.
* progress: Increase the response time to open and close the progress message window.
Version 1.5.2
-------------
* Bug
* form: The initialized value of the inputing box will disappear after calling the 'reset' method. fixed.
* textbox: Calling the 'destroy' method does not clean the field label. fixed.
* datagrid: Calling the 'selectRow' method on an unexisting row causes undesired record set. fixed.
* Improvement
* datagrid: The ctrl selection is supported on Mac keyboards.
* datagrid: The 'scrollOnSelect' property is available for the user to determine whether to scroll to the specified row when selecting it.
* combotree: Add the 'textField' property.
* combotreegrid: Add the 'textField' property.
* pagination: Add 'showPageInfo' property.
* panel: Add 'halign' and 'titleDirection' properties to allow the user to align the panel header to left or right side.
* accordion: Add 'halign' property to build the horizontal accordion.
* tagbox: The 'required' propery can be applied to validate whether the value is empty.
Version 1.5.1
-------------
* Bug
* datagrid: The selecting and checking flags will lose after calling 'updateRow' method. fixed.
* tabs: The trip tools have a wrong position when calling 'update' method. fixed.
* window: When the height is set to 'auto', it will disappear after moving the window. fixed.
* messager: When display the progress message window and then close it immediately, an exception occurs. fixed.
* form: The 'clear' method does not clear the selected drop-down items of the combobox. fixed.
* Improvement
* textbox: The 'cls' property is available to add a custom style to textbox.
* numberbox: Allow the user to format currency in Italian.
* combo: Add 'multivalue' property that allows the user to determine how to submit the multiple values.
* combobox: Add 'reversed' property.
* combobox: Add 'onClick' event.
* combogrid: Add 'reversed' property.
* treegrid: Enable multiple selection with the shift key.
* New Plugins
* tagbox: Allows the user to add tags to a form field.
Version 1.5
-------------
* Bug
* combobox: The 'onSelect' event does not fire when load data that contains the selected item. fixed.
* datagrid: The 'updateRow' method sometimes does not work properly when the field is set to a blank value. fixed.
* Improvement
* A label can be associated to any form fields.
* combobox: Enhance the 'select' and 'unselect' rules on the drop-down items.
* combobox: Add 'limitToList' property to limit the inputed values to the listed items.
* combogrid: Allow the user to clone the component quickly.
* form: Add the 'dirty' property that allows the user to submit the only changed fields.
* form: Add 'resetDirty' method.
* datagrid: Allow the user to display a message when there are no records to be shown.
* textbox: Add 'label','labelWidth','labelPosition' and 'labelAlign' properties.
* spinner: Add 'spinAlign' property.
* calendar: Allow the user to display week number of the year.
* window: Add 'constrain' property.
* New Plugins
* passwordbox: The plugin that allows the user to input passwords with nice feedback.
* combotreegrid: Combines combobox with drop-down treegrid component.
Version 1.4.5
-------------
* Bug
* datagrid: The 'getChanges' method does not return the updated rows after calling 'updateRow' method. fixed.
* treegrid: The 'onLoadSuccess' event fires when append or insert a row. fixed.
* tree: The 'onLoadSuccess' event fires when append or insert a node. fixed.
* Improvement
* window: The displaying style can be customized.
* window: The 'border' property allows the user to set different border style.
* navpanel: The 'href' property is enabled to load content from remote server.
* combotree: The 'setValue' and 'setValues' methods accept the paremter values in 'id' and 'text' pairs
* combobox: Add 'showItemIcon' property.
* combobox: Set 'groupPosition' property to 'sticky' to stick the item group to the top of drop-down panel.
* messager: Pressing ENTER key on input box will trigger click event of the first button.
* validatebox: Add 'editable',disabled' and 'readonly' properties.
* validatebox: Add 'enable','disable','readonly' methods.
* validatebox: Allow the user to determine how to display the error message.
* filebox: Add 'accept' and 'multiple' properties.
* form: Add 'iframe' property and 'onProgress' event.
* treegrid: Add cascade checkbox selection.
* treegrid: Add 'getCheckedNodes','checkNode' and 'uncheckNode' methods.
Version 1.4.4
-------------
* Bug
* filebox: The 'clear' and 'reset' methods do not work properly in IE9. fixed.
* messager: After calling $.messager.progress() with no arguments, the $.messager.progress('close') does not work properly. fixed.
* timespinner: The value does not display properly in IE8 while clicking the spin buttons. fixed.
* window: The window does not display when calling 'options' method in 'onMove' event. fixed.
* treegrid: The 'getLevel' method does not accept the parameter value of 0. fixed.
* Improvement
* layout: The 'collapsedContent','expandMode' and 'hideExpandTool' properties are supported in region panel.
* layout: The 'hideCollapsedContent' property can be set to display the vertical title bar on collapsed panel.
* layout: Add 'onCollapse','onExpand','onAdd','onRemove' events.
* datagrid: Display the 'up-down' icon on the sortable columns.
* datagrid: Add 'gotoPage' method.
* propertygrid: Add 'groups' method that allows to get all the data groups.
* messager: Auto scroll feature is supported when displaying long messages.
* tabs: The 'disabled' property is supported when defining a disabled tab panel.
* tabs: The percentange size is supported now.
Version 1.4.3
-------------
* Bug
* textbox: The 'setText' method does not accept value 0. fixed.
* timespinner: When running in IE11, the error occurs when clicking on the empty textbox. fixed.
* tabs: The 'update' method can not update only the panel body. fixed.
* Improvement
* combobox: Improve the performance of displaying the drop-down panel.
* combogrid: Remember the displaying text when the drop-down datagrid go to other pages.
* combogrid: The 'setValue' and 'setValues' methods accept a key-value object.
* window: The inline window's mask can auto-stretch its size to fill parent container.
* tabs: The 'showTool' and 'hideTool' methods are available for users to show or hide the tools.
* layout: Allow the user to override the 'cls','headerCls' and 'bodyCls' property values.
* New Plugins
* switchbutton: The switch button with two states:'on' and 'off'.
Version 1.4.2
-------------
* Bug
* treegrid: The column will restore its size to original size after recreating the treegrid. fixed.
* Improvement
* draggable: Add 'delay' property that allows the user to delay the drag operation.
* tree: Add 'filter' property and 'doFilter' method.
* tabs: The 'add' method allows the user to insert a tab panel at a specified index.
* tabs: The user can determine what tab panel can be selected.
* tabs: Add 'justified' and 'narrow' properties.
* layout: Add 'unsplit' and 'split' methods.
* messager: Keyboard navigation features are supported now.
* form: Add 'onChange' event.
* combobox: Add 'queryParams' property.
* slider: Add 'range' property.
* menu: Add 'itemHeight','inline','noline' properties.
* panel: The 'header' property allows the user to customize the panel header.
* menubutton: Add 'hasDownArrow' property.
* New Plugins
* datalist: The plugin to render items in a list.
* navpanel: The root component for the mobile page.
* mobile: The plugin to provide the mobile page stack management and navigation.
Version 1.4.1
-------------
* Bug
* combogrid: The combogrid has different height than other combo components. fixed.
* datagrid: The row element loses some class style value after calling 'updateRow' method. fixed.
* menubutton: Calling 'enable' method on a disabled button can not work well. fixed.
* form: The filebox components in the form do not work correctly after calling 'clear' method. fixed.
* Improvement
* tabs: The 'update' method accepts 'type' option that allows the user to update the header,body,or both.
* panel: Add 'openAnimation','openDuration','closeAnimation' and 'closeDuration' properties to set the animation for opening or closing a panel.
* panel: Add 'footer' property that allows the user to add a footer bar to the bottom of panel.
* datagrid: Calling 'endEdit' method will accept the editing value correctly.
* datagrid: Add 'onBeforeSelect','onBeforeCheck','onBeforeUnselect','onBeforeUncheck' events.
* propertygrid: The user can edit a row by calling 'beginEdit' method.
* datebox: Add 'cloneFrom' method to create the datebox component quickly.
* datetimebox: Add 'cloneFrom' method to create the datetimebox component quickly.
Version 1.4
-------------
* Bug
* menu: The menu should not has a correct height when removed a menu item. fixed.
* datagrid: The 'fitColumns' method does not work normally when the datarid width is too small. fixed.
* Improvement
* The fluid/percentange size is supported now for all easyui components.
* menu: Add 'showItem', 'hideItem' and 'resize' methods.
* menu: Auto resize the height upon the window size.
* menu: Add 'duration' property that allows the user to define duration time in milliseconds to hide menu.
* validatebox: Add 'onBeforeValidate' and 'onValidate' events.
* combo: Extended from textbox now.
* combo: Add 'panelMinWidth','panelMaxWidth','panelMinHeight' and 'panelMaxHeight' properties.
* searchbox: Extended from textbox now.
* tree: The 'getRoot' method will return the top parent node of a specified node if pass a 'nodeEl' parameter.
* tree: Add 'queryParams' property.
* datetimebox: Add 'spinnerWidth' property.
* panel: Add 'doLayout' method to cause the panel to lay out its components.
* panel: Add 'clear' method to clear the panel's content.
* datagrid: The user is allowed to assign percent width to columns.
* form: Add 'ajax','novalidate' and 'queryParams' properties.
* linkbutton: Add 'resize' method.
* New Plugins
* textbox: A enhanced input field that allows users build their form easily.
* datetimespinner: A date and time spinner that allows to pick a specific day.
* filebox: The filebox component represents a file field of the forms.
Version 1.3.6
-------------
* Bug
* treegrid: The 'getChecked' method can not return correct checked rows. fixed.
* tree: The checkbox does not display properly on async tree when 'onlyLeafCheck' property is true. fixed.
* Improvement
* treegrid: All the selecting and checking methods are extended from datagrid component.
* linkbutton: The icon alignment is fully supported, possible values are: 'top','bottom','left','right'.
* linkbutton: Add 'size' property, possible values are: 'small','large'.
* linkbutton: Add 'onClick' event.
* menubutton: Add 'menuAlign' property that allows the user set top level menu alignment.
* combo: Add 'panelAlign' property, possible values are: 'left','right'.
* calendar: The 'formatter','styler' and 'validator' options are available to custom the calendar dates.
* calendar: Add 'onChange' event.
* panel: Add 'method','queryParams' and 'loader' options.
* panel: Add 'onLoadError' event.
* datagrid: Add 'onBeginEdit' event that fires when a row goes into edit mode.
* datagrid: Add 'onEndEdit' event that fires when finishing editing but before destroying editors.
* datagrid: Add 'sort' method and 'onBeforeSortColumn' event.
* datagrid: The 'combogrid' editor has been integrated into datagrid.
* datagrid: Add 'ctrlSelect' property that only allows multi-selection when ctrl+click is used.
* slider: Add 'converter' option that allows users determine how to convert a value to the slider position or the slider position to the value.
* searchbox: Add 'disabled' property.
* searchbox: Add 'disable','enable','clear','reset' methods.
* spinner: Add 'readonly' property, 'readonly' method and 'onChange' event.
Version 1.3.5
-------------
* Bug
* searchbox: The 'searcher' function can not offer 'name' parameter value correctly. fixed.
* combo: The 'isValid' method can not return boolean value. fixed.
* combo: Clicking combo will trigger the 'onHidePanel' event of other combo components that have hidden drop-down panels. fixed.
* combogrid: Some methods can not inherit from combo. fixed.
* Improvement
* datagrid: Improve performance on checking rows.
* menu: Allows to append a menu separator.
* menu: Add 'hideOnUnhover' property to indicate if the menu should be hidden when mouse exits it.
* slider: Add 'clear' and 'reset' methods.
* tabs: Add 'unselect' method that will trigger 'onUnselect' event.
* tabs: Add 'selected' property to specify what tab panel will be opened.
* tabs: The 'collapsible' property of tab panel is supported to determine if the tab panel can be collapsed.
* tabs: Add 'showHeader' property, 'showHeader' and 'hideHeader' methods.
* combobox: The 'disabled' property can be used to disable some items.
* tree: Improve loading performance.
* pagination: The 'layout' property can be used to customize the pagination layout.
* accordion: Add 'unselect' method that will trigger 'onUnselect' event.
* accordion: Add 'selected' and 'multiple' properties.
* accordion: Add 'getSelections' method.
* datebox: Add 'sharedCalendar' property that allows multiple datebox components share one calendar component.
Version 1.3.4
-------------
* Bug
* combobox: The onLoadSuccess event fires when parsing empty local data. fixed.
* form: Calling 'reset' method can not reset datebox field. fixed.
* Improvement
* mobile: The context menu and double click features are supported on mobile devices.
* combobox: The 'groupField' and 'groupFormatter' options are available to display items in groups.
* tree: When append or insert nodes, the 'data' parameter accepts one or more nodes data.
* tree: The 'getChecked' method accepts a single 'state' or an array of 'state'.
* tree: Add 'scrollTo' method.
* datagrid: The 'multiSort' property is added to support multiple column sorting.
* datagrid: The 'rowStyler' and column 'styler' can return CSS class name or inline styles.
* treegrid: Add 'load' method to load data and navigate to the first page.
* tabs: Add 'tabWidth' and 'tabHeight' properties.
* validatebox: The 'novalidate' property is available to indicate whether to perform the validation.
* validatebox: Add 'enableValidation' and 'disableValidation' methods.
* form: Add 'enableValidation' and 'disableValidation' methods.
* slider: Add 'onComplete' event.
* pagination: The 'buttons' property accepts the existing element.
Version 1.3.3
-------------
* Bug
* datagrid: Some style features are not supported by column styler function. fixed.
* datagrid: IE 31 stylesheet limit. fixed.
* treegrid: Some style features are not supported by column styler function. fixed.
* menu: The auto width of menu item displays incorrect in ie6. fixed.
* combo: The 'onHidePanel' event can not fire when clicked outside the combo area. fixed.
* Improvement
* datagrid: Add 'scrollTo' and 'highlightRow' methods.
* treegrid: Enable treegrid to parse data from <tbody> element.
* combo: Add 'selectOnNavigation' and 'readonly' options.
* combobox: Add 'loadFilter' option to allow users to change data format before loading into combobox.
* tree: Add 'onBeforeDrop' callback event.
* validatebox: Dependent on tooltip plugin now, add 'deltaX' property.
* numberbox: The 'filter' options can be used to determine if the key pressed was accepted.
* linkbutton: The group button is available.
* layout: The 'minWidth','maxWidth','minHeight','maxHeight' and 'collapsible' properties are available for region panel.
* New Plugins
* tooltip: Display a popup message when moving mouse over an element.
Version 1.3.2
-------------
* Bug
* datagrid: The loading message window can not be centered when changing the width of datagrid. fixed.
* treegrid: The 'mergeCells' method can not work normally. fixed.
* propertygrid: Calling 'endEdit' method to stop editing a row will cause errors. fixed.
* tree: Can not load empty data when 'lines' property set to true. fixed.
* Improvement
* RTL feature is supported now.
* tabs: Add 'scrollBy' method to scroll the tab header by the specified amount of pixels
* tabs: Add 'toolPosition' property to set tab tools to left or right.
* tabs: Add 'tabPosition' property to define the tab position, possible values are: 'top','bottom','left','right'.
* datagrid: Add a column level property 'order' that allows users to define different default sort order per column.
* datagrid: Add a column level property 'halign' that allows users to define how to align the column header.
* datagrid: Add 'resizeHandle' property to define the resizing column position, by grabbing the left or right edge of the column.
* datagrid: Add 'freezeRow' method to freeze some rows that will always be displayed at the top when the datagrid is scrolled down.
* datagrid: Add 'clearChecked' method to clear all checked records.
* datagrid: Add 'data' property to initialize the datagrid data.
* linkbutton: Add 'iconAlgin' property to define the icon position, supported values are: 'left','right'.
* menu: Add 'minWidth' property.
* menu: The menu width can be automatically calculated.
* tree: New events are available including 'onBeforeDrag','onStartDrag','onDragEnter','onDragOver','onDragLeave',etc.
* combo: Add 'height' property to allow users to define the height of combo.
* combo: Add 'reset' method.
* numberbox: Add 'reset' method.
* spinner: Add 'reset' method.
* spinner: Add 'height' property to allow users to define the height of spinner.
* searchbox: Add 'height' property to allow users to define the height of searchbox.
* form: Add 'reset' method.
* validatebox: Add 'delay' property to delay validating from the last inputting value.
* validatebox: Add 'tipPosition' property to define the tip position, supported values are: 'left','right'.
* validatebox: Multiple validate rules on a field is supported now.
* slider: Add 'reversed' property to determine if the min value and max value will switch their positions.
* progressbar: Add 'height' property to allow users to define the height of progressbar.
Version 1.3.1
-------------
* Bug
* datagrid: Setting the 'pageNumber' property is not valid. fixed.
* datagrid: The id attribute of rows isn't adjusted properly while calling 'insertRow' or 'deleteRow' method.
* dialog: When load content from 'href', the script will run twice. fixed.
* propertygrid: The editors that extended from combo can not accept its changed value. fixed.
* Improvement
* droppable: Add 'disabled' property.
* droppable: Add 'options','enable' and 'disable' methods.
* tabs: The tab panel tools can be changed by calling 'update' method.
* messager: When show a message window, the user can define the window position by applying 'style' property.
* window: Prevent script on window body from running twice.
* window: Add 'hcenter','vcenter' and 'center' methods.
* tree: Add 'onBeforeCheck' callback event.
* tree: Extend the 'getChecked' method to allow users to get 'checked','unchecked' or 'indeterminate' nodes.
* treegrid: Add 'update' method to update a specified node.
* treegrid: Add 'insert' method to insert a new node.
* treegrid: Add 'pop' method to remove a node and get the removed node data.
Version 1.3
-----------
* Bug
* combogrid: When set to 'remote' query mode, the 'queryParams' parameters can't be sent to server. fixed.
* combotree: The tree nodes on drop-down panel can not be unchecked while calling 'clear' method. fixed.
* datetimebox: Setting 'showSeconds' property to false cannot hide seconds info. fixed.
* datagrid: Calling 'mergeCells' method can't auto resize the merged cell while header is hidden. fixed.
* dialog: Set cache to false and load data via ajax, the content cannot be refreshed. fixed.
* Improvement
* The HTML5 'data-options' attribute is available for components to declare all custom options, including properties and events.
* More detailed documentation is available.
* panel: Prevent script on panel body from running twice.
* accordion: Add 'getPanelIndex' method.
* accordion: The tools can be added on panel header.
* datetimebox: Add 'timeSeparator' option that allows users to define the time separator.
* pagination: Add 'refresh' and 'select' methods.
* datagrid: Auto resize the column width to fit the contents when the column width is not defined.
* datagrid: Double click on the right border of columns to auto resize the columns to the contents in the columns.
* datagrid: Add 'autoSizeColumn' method that allows users to adjust the column width to fit the contents.
* datagrid: Add 'getChecked' method to get all rows where the checkbox has been checked.
* datagrid: Add 'selectOnCheck' and 'checkOnSelect' properties and some checking methods to enhance the row selections.
* datagrid: Add 'pagePosition' property to allow users to display pager bar at either top,bottom or both places of the grid.
* datagrid: The buffer view and virtual scroll view are supported to display large amounts of records without pagination.
* tabs: Add 'disableTab' and 'enableTab' methods to allow users to disable or enable a tab panel.
Version 1.2.6
-------------
* Bug
* tabs: Call 'add' method with 'selected:false' option, the added tab panel is always selected. fixed.
* treegrid: The 'onSelect' and 'onUnselect' events can't be triggered. fixed.
* treegrid: Cannot display zero value field. fixed.
* Improvement
* propertygrid: Add 'expandGroup' and 'collapseGroup' methods.
* layout: Allow users to create collapsed layout panels by assigning 'collapsed' property to true.
* layout: Add 'add' and 'remove' methods that allow users to dynamically add or remove region panel.
* layout: Additional tool icons can be added on region panel header.
* calendar: Add 'firstDay' option that allow users to set first day of week. Sunday is 0, Monday is 1, ...
* tree: Add 'lines' option, true to display tree lines.
* tree: Add 'loadFilter' option that allow users to change data format before loading into the tree.
* tree: Add 'loader' option that allow users to define how to load data from remote server.
* treegrid: Add 'onClickCell' and 'onDblClickCell' callback function options.
* datagrid: Add 'autoRowHeight' property that allow users to determine if set the row height based on the contents of that row.
* datagrid: Improve performance to load large data set.
* datagrid: Add 'loader' option that allow users to define how to load data from remote server.
* treegrid: Add 'loader' option that allow users to define how to load data from remote server.
* combobox: Add 'onBeforeLoad' callback event function.
* combobox: Add 'loader' option that allow users to define how to load data from remote server.
* Add support for other loading mode such as dwr,xml,etc.
* New Plugins
* slider: Allows the user to choose a numeric value from a finite range.
Version 1.2.5
-------------
* Bug
* tabs: When add a new tab panel with href property, the content page is loaded twice. fixed.
* form: Failed to call 'load' method to load form input with complex name. fixed.
* draggable: End drag in ie9, the cursor cannot be restored. fixed.
* Improvement
* panel: The tools can be defined via html markup.
* tabs: Call 'close' method to close specified tab panel, users can pass tab title or index of tab panel. Other methods such 'select','getTab' and 'exists' are similar to 'close' method.
* tabs: Add 'getTabIndex' method.
* tabs: Users can define mini tools on tabs.
* tree: The mouse must move a specified distance to begin drag and drop operation.
* resizable: Add 'options','enable' and 'disable' methods.
* numberbox: Allow users to change number format.
* datagrid: The subgrid is supported now.
* searchbox: Add 'selectName' method to select searching type name.
Version 1.2.4
-------------
* Bug
* menu: The menu position is wrong when scroll bar appears. fixed.
* accordion: Cannot display the default selected panel in jQuery 1.6.2. fixed.
* tabs: Cannot display the default selected tab panel in jQuery 1.6.2. fixed.
* Improvement
* menu: Allow users to disable or enable menu item.
* combo: Add 'delay' property to set the delay time to do searching from the last key input event.
* treegrid: The 'getEditors' and 'getEditor' methods are supported now.
* treegrid: The 'loadFilter' option is supported now.
* messager: Add 'progress' method to display a message box with a progress bar.
* panel: Add 'extractor' option to allow users to extract panel content from ajax response.
* New Plugins
* searchbox: Allow users to type words into box and do searching operation.
* progressbar: To display the progress of a task.
Version 1.2.3
-------------
* Bug
* window: Cannot resize the window with iframe content. fixed.
* tree: The node will be removed when dragging to its child. fixed.
* combogrid: The onChange event fires multiple times. fixed.
* accordion: Cannot add batch new panels when animate property is set to true. fixed.
* Improvement
* treegrid: The footer row and row styler features are supported now.
* treegrid: Add 'getLevel','reloadFooter','getFooterRows' methods.
* treegrid: Support root nodes pagination and editable features.
* datagrid: Add 'getFooterRows','reloadFooter','insertRow' methods and improve editing performance.
* datagrid: Add 'loadFilter' option that allow users to change original source data to standard data format.
* draggable: Add 'onBeforeDrag' callback event function.
* validatebox: Add 'remote' validation type.
* combobox: Add 'method' option.
* New Plugins
* propertygrid: Allow users to edit property value in datagrid.
Version 1.2.2
-------------
* Bug
* datagrid: Apply fitColumns cannot work fine while set checkbox column. fixed.
* datagrid: The validateRow method cannot return boolean type value. fixed.
* numberbox: Cannot fix value in chrome when min or max property isn't defined. fixed.
* Improvement
* menu: Add some crud methods.
* combo: Add hasDownArrow property to determine whether to display the down arrow button.
* tree: Supports inline editing.
* calendar: Add some useful methods such as 'resize', 'moveTo' etc.
* timespinner: Add some useful methods.
* datebox: Refactoring based on combo and calendar plugin now.
* datagrid: Allow users to change row style in some conditions.
* datagrid: Users can use the footer row to display summary information.
* New Plugins
* datetimebox: Combines datebox with timespinner component.
Version 1.2.1
-------------
* Bug
* easyloader: Some dependencies cannot be loaded by their order. fixed.
* tree: The checkbox is setted incorrectly when removing a node. fixed.
* dialog: The dialog layout incorrectly when 'closed' property is setted to true. fixed.
* Improvement
* parser: Add onComplete callback function that can indicate whether the parse action is complete.
* menu: Add onClick callback function and some other methods.
* tree: Add some useful methods.
* tree: Drag and Drop feature is supported now.
* tree: Add onContextMenu callback function.
* tabs: Add onContextMenu callback function.
* tabs: Add 'tools' property that can create buttons on right bar.
* datagrid: Add onHeaderContextMenu and onRowContextMenu callback functions.
* datagrid: Custom view is supported.
* treegrid: Add onContextMenu callback function and append,remove methods.
Version 1.2
-------------
* Improvement
* tree: Add cascadeCheck,onlyLeafCheck properties and select event.
* combobox: Enable multiple selection.
* combotree: Enable multiple selection.
* tabs: Remember the trace of selection, when current tab panel is closed, the previous selected tab will be selected.
* datagrid: Extend from panel, so many properties defined in panel can be used for datagrid.
* New Plugins
* treegrid: Represent tabular data in hierarchical view, combines tree view and datagrid.
* combo: The basic component that allow user to extend their combo component such as combobox,combotree,etc.
* combogrid: Combines combobox with drop-down datagrid component.
* spinner: The basic plugin to create numberspinner,timespinner,etc.
* numberspinner: The numberbox that allow user to change value by clicking up and down spin buttons.
* timespinner: The time selector that allow user to quickly inc/dec a time.
Version 1.1.2
-------------
* Bug
* messager: When call show method in layout, the message window will be blocked. fixed.
* Improvement
* datagrid: Add validateRow method, remember the current editing row status when do editing action.
* datagrid: Add the ability to create merged cells.
* form: Add callback functions when loading data.
* panel,window,dialog: Add maximize,minimize,restore,collapse,expand methods.
* panel,tabs,accordion: The lazy loading feature is supported.
* tabs: Add getSelected,update,getTab methods.
* accordion: Add crud methods.
* linkbutton: Accept an id option to set the id attribute.
* tree: Enhance tree node operation.
Version 1.1.1
-------------
* Bug
* form: Cannot clear the value of combobox and combotree component. fixed.
* Improvement
* tree: Add some useful methods such as 'getRoot','getChildren','update',etc.
* datagrid: Add editable feature, improve performance while loading data.
* datebox: Add destroy method.
* combobox: Add destroy and clear method.
* combotree: Add destroy and clear method.
Version 1.1
-------------
* Bug
* messager: When call show method with timeout property setted, an error occurs while clicking the close button. fixed.
* combobox: The editable property of combobox plugin is invalid. fixed.
* window: The proxy box will not be removed when dragging or resizing exceed browser border in ie. fixed.
* Improvement
* menu: The menu item can use <a> markup to display a different page.
* tree: The tree node can use <a> markup to act as a tree menu.
* pagination: Add some event on refresh button and page list.
* datagrid: Add a 'param' parameter for reload method, with which users can pass query parameter when reload data.
* numberbox: Add required validation support, the usage is same as validatebox plugin.
* combobox: Add required validation support.
* combotree: Add required validation support.
* layout: Add some method that can get a region panel and attach event handlers.
* New Plugins
* droppable: A droppable plugin that supports drag drop operation.
* calendar: A calendar plugin that can either be embedded within a page or popup.
* datebox: Combines a textbox with a calendar that let users to select date.
* easyloader: A JavaScript loader that allows you to load plugin and their dependencies into your page.
Version 1.0.5
* Bug
* panel: The fit property of panel performs incorrectly. fixed.
* Improvement
* menu: Add a href attribute for menu item, with which user can display a different page in the current browser window.
* form: Add a validate method to do validation for validatebox component.
* dialog: The dialog can read collapsible,minimizable,maximizable and resizable attribute from markup.
* New Plugins
* validatebox: A validation plugin that checks to make sure the user's input value is valid.
Version 1.0.4
-------------
* Bug
* panel: When panel is invisible, it is abnormal when resized. fixed.
* panel: Memory leak in method 'destroy'. fixed.
* messager: Memory leak when messager box is closed. fixed.
* dialog: No onLoad event occurs when loading remote data. fixed.
* Improvement
* panel: Add method 'setTitle'.
* window: Add method 'setTitle'.
* dialog: Add method 'setTitle'.
* combotree: Add method 'getValue'.
* combobox: Add method 'getValue'.
* form: The 'load' method can load data and fill combobox and combotree field correctly.
Version 1.0.3
-------------
* Bug
* menu: When menu is show in a DIV container, it will be cropped. fixed.
* layout: If you collpase a region panel and then expand it immediately, the region panel will not show normally. fixed.
* accordion: If no panel selected then the first one will become selected and the first panel's body height will not set correctly. fixed.
* Improvement
* tree: Add some methods to support CRUD operation.
* datagrid: Toolbar can accept a new property named 'disabled' to disable the specified tool button.
* New Plugins
* combobox: Combines a textbox with a list of options that users are able to choose from.
* combotree: Combines combobox with drop-down tree component.
* numberbox: Make input element can only enter number char.
* dialog: rewrite the dialog plugin, dialog can contains toolbar and buttons.

View File

@@ -0,0 +1,404 @@
$.extend($.fn.datagrid.defaults, {
onBeforeFetch: function(page){},
onFetch: function(page, rows){}
});
var bufferview = $.extend({}, $.fn.datagrid.defaults.view, {
onAfterRender : function(target){
},
render: function(target, container, frozen){
var state = $.data(target, 'datagrid');
var opts = state.options;
var rows = this.rows || [];
if (!rows.length) {
return;
}
var fields = $(target).datagrid('getColumnFields', frozen);
if (frozen){
if (!(opts.rownumbers || (opts.frozenColumns && opts.frozenColumns.length))){
return;
}
}
var index = parseInt(opts.finder.getTr(target,'','last',(frozen?1:2)).attr('datagrid-row-index'))+1 || 0;
if(index >= state.data.total){
return;
}
var table = ['<table class="datagrid-btable" cellspacing="0" cellpadding="0" border="0"><tbody>'];
for(var i=0; i<rows.length; i++) {
// get the class and style attributes for this row
var css = opts.rowStyler ? opts.rowStyler.call(target, index, rows[i]) : '';
var classValue = '';
var styleValue = '';
if (typeof css == 'string'){
styleValue = css;
} else if (css){
classValue = css['class'] || '';
styleValue = css['style'] || '';
}
var cls = 'class="datagrid-row ' + (index % 2 && opts.striped ? 'datagrid-row-alt ' : ' ') + classValue + '"';
var style = styleValue ? 'style="' + styleValue + '"' : '';
var rowId = state.rowIdPrefix + '-' + (frozen?1:2) + '-' + index;
table.push('<tr id="' + rowId + '" datagrid-row-index="' + index + '" ' + cls + ' ' + style + '>');
table.push(this.renderRow.call(this, target, fields, frozen, index, rows[i]));
table.push('</tr>');
// render the detail row
if (opts.detailFormatter){
table.push('<tr style="display:none;">');
if (frozen){
table.push('<td colspan=' + (fields.length+2) + ' style="border-right:0">');
} else {
table.push('<td colspan=' + (fields.length) + '>');
}
table.push('<div class="datagrid-row-detail">');
if (frozen){
table.push('&nbsp;');
} else {
table.push(opts.detailFormatter.call(target, index, rows[i]));
}
table.push('</div>');
table.push('</td>');
table.push('</tr>');
}
index++;
}
table.push('</tbody></table>');
$(container).append(table.join(''));
},
renderRow : function(target, fields, frozen, rowIndex, rowData) { //method backup from the source
var opts = $.data(target, "datagrid").options,
cc = [],
rowSpanField = typeof opts.columns[0]['rowSpanField'] !== 'undefined' ? opts.columns[0]['rowSpanField'] : '',
rowSpan = rowSpanField !== '' && typeof rowData[rowSpanField]['numRows'] !== 'undefined' ? rowData[rowSpanField]['numRows'] : 1;
if (frozen && opts.rownumbers) {
var _726 = rowIndex + 1;
if (opts.pagination) {
_726 += (opts.pageNumber - 1) * opts.pageSize;
}
cc.push("<td class=\"datagrid-td-rownumber\"><div class=\"datagrid-cell-rownumber\">" + _726 + "</div></td>");
}
for (var i = 0; i < fields.length; i++) {
var _727 = fields[i];
var col = $(target).datagrid("getColumnOption", _727);
if (col) {
var _728 = rowData[_727];
var css = col.styler ? (col.styler(_728, rowData, rowIndex, col) || "") : "";
var _729 = "";
var _72a = "";
if (typeof css == "string") {
_72a = css;
} else {
if (css) {
_729 = css["class"] || "";
_72a = css["style"] || "";
}
}
var cls = _729 ? "class=\"" + _729 + ( frozen ? 'frozen-td' : '' ) + "\"" : ( frozen ? 'class="frozen-td"' : '' );
var _72b = col.hidden ? "style=\"display:none;" + _72a + "\"" : (_72a ? "style=\"" + _72a + "\"" : "");
cc.push("<td field=\"" + _727 + "\" " + cls + " " + _72b + ">");
var _72b = "";
if (!col.checkbox) {
if (col.align) {
_72b += "text-align:" + col.align + ";";
}else if (col.expander){
style = "text-align:center;height:16px;";
}
if (!opts.nowrap) {
_72b += "white-space:normal;height:auto;";
} else {
if (opts.autoRowHeight) {
_72b += "height:auto;";
}
}
}
cc.push("<div style=\"" + _72b + "\" ");
cc.push(col.checkbox ? "class=\"datagrid-cell-check\"" : "class=\"datagrid-cell " + col.cellClass + "\"");
cc.push(">");
if (col.checkbox) {
cc.push("<input type=\"checkbox\" " + (rowData.checked ? "checked=\"checked\"" : ""));
cc.push(" name=\"" + _727 + "\" value=\"" + (_728 != undefined ? _728 : "") + "\">");
}else if (col.expander) {
//cc.push('<div style="text-align:center;width:16px;height:16px;">');
cc.push('<span class="datagrid-row-expander datagrid-row-expand" style="display:inline-block;width:16px;height:16px;cursor:pointer;" />');
//cc.push('</div>');
} else if (col.formatter){
// console.log('bufferview.renderRow():', col);
cc.push(col.formatter(_728, rowData, rowIndex));
// cc.push(col.formatter(_728, rowData, rowIndex, col));
} else {
cc.push(_728);
}
cc.push("</div>");
cc.push("</td>");
}
}
return cc.join("");
},
bindEvents: function(target){
var state = $.data(target, 'datagrid');
var dc = state.dc;
var opts = state.options;
var body = dc.body1.add(dc.body2);
var clickHandler = ($.data(body[0],'events')||$._data(body[0],'events')).click[0].handler;
body.unbind('click').bind('click', function(e){
var tt = $(e.target);
var tr = tt.closest('tr.datagrid-row');
if (!tr.length){return}
if (tt.hasClass('datagrid-row-expander')){
var rowIndex = parseInt(tr.attr('datagrid-row-index'));
if (tt.hasClass('datagrid-row-expand')){
$(target).datagrid('expandRow', rowIndex);
} else {
$(target).datagrid('collapseRow', rowIndex);
}
$(target).datagrid('fixRowHeight');
} else {
clickHandler(e);
}
e.stopPropagation();
});
},
onBeforeRender: function(target){
var state = $.data(target, 'datagrid');
var opts = state.options;
var dc = state.dc;
var view = this;
this.renderedCount = 0;
this.rows = [];
dc.body1.add(dc.body2).empty();
init();
createHeaderExpander();
function init(){
// erase the onLoadSuccess event, make sure it can't be triggered
state.onLoadSuccess = opts.onLoadSuccess;
opts.onLoadSuccess = function(){};
setTimeout(function(){
dc.body2.unbind('.datagrid').bind('scroll.datagrid', function(e){
if (state.onLoadSuccess){
opts.onLoadSuccess = state.onLoadSuccess; // restore the onLoadSuccess event
state.onLoadSuccess = undefined;
}
if (view.scrollTimer){
clearTimeout(view.scrollTimer);
}
view.scrollTimer = setTimeout(function(){
scrolling.call(view);
}, 50);
});
dc.body2.triggerHandler('scroll.datagrid');
}, 0);
}
function scrolling(){
if (getDataHeight() < dc.body2.height() && view.renderedCount < state.data.total){
this.getRows.call(this, target, function(rows){
this.rows = rows;
this.populate.call(this, target);
dc.body2.triggerHandler('scroll.datagrid');
});
} else if (dc.body2.scrollTop() >= getDataHeight() - dc.body2.height()){
this.getRows.call(this, target, function(rows){
this.rows = rows;
this.populate.call(this, target);
});
}
}
function getDataHeight(){
var h = 0;
dc.body2.children('table.datagrid-btable').each(function(){
h += $(this).outerHeight();
});
if (!h){
h = view.renderedCount * 25;
}
return h;
}
function createHeaderExpander(){
if (!opts.detailFormatter){return}
var t = $(target);
var hasExpander = false;
var fields = t.datagrid('getColumnFields',true).concat(t.datagrid('getColumnFields'));
for(var i=0; i<fields.length; i++){
var col = t.datagrid('getColumnOption', fields[i]);
if (col.expander){
hasExpander = true;
break;
}
}
if (!hasExpander){
if (opts.frozenColumns && opts.frozenColumns.length){
opts.frozenColumns[0].splice(0,0,{field:'_expander',expander:true,width:24,resizable:false,fixed:true});
} else {
opts.frozenColumns = [[{field:'_expander',expander:true,width:24,resizable:false,fixed:true}]];
}
var t = dc.view1.children('div.datagrid-header').find('table');
var td = $('<td rowspan="'+opts.frozenColumns.length+'"><div class="datagrid-header-expander" style="width:24px;"></div></td>');
if ($('tr',t).length == 0){
td.wrap('<tr></tr>').parent().appendTo($('tbody',t));
} else if (opts.rownumbers){
td.insertAfter(t.find('td:has(div.datagrid-header-rownumber)'));
} else {
td.prependTo(t.find('tr:first'));
}
}
setTimeout(function(){
view.bindEvents(target);
},0);
}
},
getRows: function(target, callback){
var state = $.data(target, 'datagrid');
var opts = state.options;
var page = Math.floor(this.renderedCount/opts.pageSize) + 1;
if (this.renderedCount >= state.data.total){return;}
if (opts.onBeforeFetch.call(target, page) == false){return}
var index = (page-1)*opts.pageSize;
var rows = state.data.rows.slice(index, index+opts.pageSize);
if (rows.length){
opts.onFetch.call(target, page, rows);
callback.call(this, rows);
} else {
var param = $.extend({}, opts.queryParams, {
page: Math.floor(this.renderedCount/opts.pageSize)+1,
rows: opts.pageSize
});
if (opts.sortName){
$.extend(param, {
sort: opts.sortName,
order: opts.sortOrder
});
}
if (opts.onBeforeLoad.call(target, param) == false){return;}
$(target).datagrid('loading');
var result = opts.loader.call(target, param, function(data){
$(target).datagrid('loaded');
var data = opts.loadFilter.call(target, data);
opts.onFetch.call(target, page, data.rows);
if (data.rows && data.rows.length){
state.data.rows = state.data.rows.concat(data.rows);
callback.call(opts.view, data.rows);
} else {
opts.onLoadSuccess.call(target, data);
}
}, function(){
$(target).datagrid('loaded');
opts.onLoadError.apply(target, arguments);
});
if (result == false){
$(target).datagrid('loaded');
if (!state.data.rows.length){
opts.onFetch.call(target, page, state.data.rows);
opts.onLoadSuccess.call(target, state.data);
}
}
}
},
populate: function(target){
var state = $.data(target, 'datagrid');
var opts = state.options;
var dc = state.dc;
if (this.rows.length){
this.renderedCount += this.rows.length;
this.render.call(this, target, dc.body2, false);
this.render.call(this, target, dc.body1, true);
opts.onLoadSuccess.call(target, {
total: state.data.total,
rows: this.rows
});
}
}
});
$.extend($.fn.datagrid.methods, {
fixDetailRowHeight: function(jq, index){
return jq.each(function(){
var opts = $.data(this, 'datagrid').options;
var dc = $.data(this, 'datagrid').dc;
var tr1 = opts.finder.getTr(this, index, 'body', 1).next();
var tr2 = opts.finder.getTr(this, index, 'body', 2).next();
// fix the detail row height
if (tr2.is(':visible')){
tr1.css('height', '');
tr2.css('height', '');
var height = Math.max(tr1.height(), tr2.height());
tr1.css('height', height);
tr2.css('height', height);
}
dc.body2.triggerHandler('scroll');
});
},
getExpander: function(jq, index){ // get row expander object
var opts = $.data(jq[0], 'datagrid').options;
return opts.finder.getTr(jq[0], index).find('span.datagrid-row-expander');
},
// get row detail container
getRowDetail: function(jq, index){
var opts = $.data(jq[0], 'datagrid').options;
var tr = opts.finder.getTr(jq[0], index, 'body', 2);
return tr.next().find('div.datagrid-row-detail');
},
expandRow: function(jq, index){
return jq.each(function(){
var opts = $(this).datagrid('options');
var dc = $.data(this, 'datagrid').dc;
var expander = $(this).datagrid('getExpander', index);
if (expander.hasClass('datagrid-row-expand')){
expander.removeClass('datagrid-row-expand').addClass('datagrid-row-collapse');
var tr1 = opts.finder.getTr(this, index, 'body', 1).next();
var tr2 = opts.finder.getTr(this, index, 'body', 2).next();
tr1.show();
tr2.show();
$(this).datagrid('fixDetailRowHeight', index);
if (opts.onExpandRow){
var row = $(this).datagrid('getRows')[index];
opts.onExpandRow.call(this, index, row);
}
}
});
},
collapseRow: function(jq, index){
return jq.each(function(){
var opts = $(this).datagrid('options');
var dc = $.data(this, 'datagrid').dc;
var expander = $(this).datagrid('getExpander', index);
if (expander.hasClass('datagrid-row-collapse')){
expander.removeClass('datagrid-row-collapse').addClass('datagrid-row-expand');
var tr1 = opts.finder.getTr(this, index, 'body', 1).next();
var tr2 = opts.finder.getTr(this, index, 'body', 2).next();
tr1.hide();
tr2.hide();
dc.body2.triggerHandler('scroll');
if (opts.onCollapseRow){
var row = $(this).datagrid('getRows')[index];
opts.onCollapseRow.call(this, index, row);
}
}
});
}
});

194
static/jeasyui/easyloader.js Executable file
View File

@@ -0,0 +1,194 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function(){
var _1={draggable:{js:"jquery.draggable.js"},droppable:{js:"jquery.droppable.js"},resizable:{js:"jquery.resizable.js"},linkbutton:{js:"jquery.linkbutton.js",css:"linkbutton.css"},progressbar:{js:"jquery.progressbar.js",css:"progressbar.css"},tooltip:{js:"jquery.tooltip.js",css:"tooltip.css"},pagination:{js:"jquery.pagination.js",css:"pagination.css",dependencies:["linkbutton"]},datagrid:{js:"jquery.datagrid.js",css:"datagrid.css",dependencies:["panel","resizable","linkbutton","pagination"]},treegrid:{js:"jquery.treegrid.js",css:"tree.css",dependencies:["datagrid"]},propertygrid:{js:"jquery.propertygrid.js",css:"propertygrid.css",dependencies:["datagrid"]},datalist:{js:"jquery.datalist.js",css:"datalist.css",dependencies:["datagrid"]},panel:{js:"jquery.panel.js",css:"panel.css"},window:{js:"jquery.window.js",css:"window.css",dependencies:["resizable","draggable","panel"]},dialog:{js:"jquery.dialog.js",css:"dialog.css",dependencies:["linkbutton","window"]},messager:{js:"jquery.messager.js",css:"messager.css",dependencies:["linkbutton","dialog","progressbar"]},layout:{js:"jquery.layout.js",css:"layout.css",dependencies:["resizable","panel"]},form:{js:"jquery.form.js"},menu:{js:"jquery.menu.js",css:"menu.css"},tabs:{js:"jquery.tabs.js",css:"tabs.css",dependencies:["panel","linkbutton"]},menubutton:{js:"jquery.menubutton.js",css:"menubutton.css",dependencies:["linkbutton","menu"]},splitbutton:{js:"jquery.splitbutton.js",css:"splitbutton.css",dependencies:["menubutton"]},switchbutton:{js:"jquery.switchbutton.js",css:"switchbutton.css"},accordion:{js:"jquery.accordion.js",css:"accordion.css",dependencies:["panel"]},calendar:{js:"jquery.calendar.js",css:"calendar.css"},textbox:{js:"jquery.textbox.js",css:"textbox.css",dependencies:["validatebox","linkbutton"]},passwordbox:{js:"jquery.passwordbox.js",css:"passwordbox.css",dependencies:["textbox"]},filebox:{js:"jquery.filebox.js",css:"filebox.css",dependencies:["textbox"]},radiobutton:{js:"jquery.radiobutton.js",css:"radiobutton.css"},checkbox:{js:"jquery.checkbox.js",css:"checkbox.css"},sidemenu:{js:"jquery.sidemenu.js",css:"sidemenu.css",dependencies:["accordion","tree","tooltip"]},combo:{js:"jquery.combo.js",css:"combo.css",dependencies:["panel","textbox"]},combobox:{js:"jquery.combobox.js",css:"combobox.css",dependencies:["combo"]},combotree:{js:"jquery.combotree.js",dependencies:["combo","tree"]},combogrid:{js:"jquery.combogrid.js",dependencies:["combo","datagrid"]},combotreegrid:{js:"jquery.combotreegrid.js",dependencies:["combo","treegrid"]},tagbox:{js:"jquery.tagbox.js",dependencies:["combobox"]},validatebox:{js:"jquery.validatebox.js",css:"validatebox.css",dependencies:["tooltip"]},numberbox:{js:"jquery.numberbox.js",dependencies:["textbox"]},searchbox:{js:"jquery.searchbox.js",css:"searchbox.css",dependencies:["menubutton","textbox"]},spinner:{js:"jquery.spinner.js",css:"spinner.css",dependencies:["textbox"]},numberspinner:{js:"jquery.numberspinner.js",dependencies:["spinner","numberbox"]},timespinner:{js:"jquery.timespinner.js",dependencies:["spinner"]},timepicker:{js:"jquery.timepicker.js",css:"timepicker.css",dependencies:["combo"]},tree:{js:"jquery.tree.js",css:"tree.css",dependencies:["draggable","droppable"]},datebox:{js:"jquery.datebox.js",css:"datebox.css",dependencies:["calendar","combo"]},datetimebox:{js:"jquery.datetimebox.js",dependencies:["datebox","timespinner"]},slider:{js:"jquery.slider.js",dependencies:["draggable"]},parser:{js:"jquery.parser.js",css:"flex.css"},mobile:{js:"jquery.mobile.js"}};
var _2={"af":"easyui-lang-af.js","ar":"easyui-lang-ar.js","bg":"easyui-lang-bg.js","ca":"easyui-lang-ca.js","cs":"easyui-lang-cs.js","cz":"easyui-lang-cz.js","da":"easyui-lang-da.js","de":"easyui-lang-de.js","el":"easyui-lang-el.js","en":"easyui-lang-en.js","es":"easyui-lang-es.js","fr":"easyui-lang-fr.js","it":"easyui-lang-it.js","jp":"easyui-lang-jp.js","nl":"easyui-lang-nl.js","pl":"easyui-lang-pl.js","pt_BR":"easyui-lang-pt_BR.js","ru":"easyui-lang-ru.js","sv_SE":"easyui-lang-sv_SE.js","tr":"easyui-lang-tr.js","zh_CN":"easyui-lang-zh_CN.js","zh_TW":"easyui-lang-zh_TW.js"};
var _3={};
function _4(_5,_6){
var _7=false;
var _8=document.createElement("script");
_8.type="text/javascript";
_8.language="javascript";
_8.src=_5;
_8.onload=_8.onreadystatechange=function(){
if(!_7&&(!_8.readyState||_8.readyState=="loaded"||_8.readyState=="complete")){
_7=true;
_8.onload=_8.onreadystatechange=null;
if(_6){
_6.call(_8);
}
}
};
document.getElementsByTagName("head")[0].appendChild(_8);
};
function _9(_a,_b){
_4(_a,function(){
document.getElementsByTagName("head")[0].removeChild(this);
if(_b){
_b();
}
});
};
function _c(_d,_e){
var _f=document.createElement("link");
_f.rel="stylesheet";
_f.type="text/css";
_f.media="screen";
_f.href=_d;
document.getElementsByTagName("head")[0].appendChild(_f);
if(_e){
_e.call(_f);
}
};
function _10(_11,_12){
_3[_11]="loading";
var _13=_1[_11];
var _14="loading";
var _15=(easyloader.css&&_13["css"])?"loading":"loaded";
if(easyloader.css&&_13["css"]){
if(/^http/i.test(_13["css"])){
var url=_13["css"];
}else{
var url=easyloader.base+"themes/"+easyloader.theme+"/"+_13["css"];
}
_c(url,function(){
_15="loaded";
if(_14=="loaded"&&_15=="loaded"){
_16();
}
});
}
if(/^http/i.test(_13["js"])){
var url=_13["js"];
}else{
var url=easyloader.base+"plugins/"+_13["js"];
}
_4(url,function(){
_14="loaded";
if(_14=="loaded"&&_15=="loaded"){
_16();
}
});
function _16(){
_3[_11]="loaded";
easyloader.onProgress(_11);
if(_12){
_12();
}
};
};
function _17(_18,_19){
var mm=[];
var _1a=false;
if(typeof _18=="string"){
add(_18);
}else{
for(var i=0;i<_18.length;i++){
add(_18[i]);
}
}
mm.unshift("parser");
function add(_1b){
if(!_1[_1b]){
return;
}
var d=_1[_1b]["dependencies"];
if(d){
for(var i=0;i<d.length;i++){
add(d[i]);
}
}
mm.push(_1b);
};
function _1c(){
if(_19){
if(window.jQuery){
window.jQuery.parser.parseVars();
}
_19();
}
easyloader.onLoad(_18);
};
var _1d=0;
function _1e(){
if(mm.length){
var m=mm[0];
if(!_3[m]){
_1a=true;
_10(m,function(){
mm.shift();
_1e();
});
}else{
if(_3[m]=="loaded"){
mm.shift();
_1e();
}else{
if(_1d<easyloader.timeout){
_1d+=10;
setTimeout(arguments.callee,10);
}
}
}
}else{
if(easyloader.locale&&_1a==true&&_2[easyloader.locale]){
var url=easyloader.base+"locale/"+_2[easyloader.locale];
_9(url,function(){
_1c();
});
}else{
_1c();
}
}
};
_1e();
};
easyloader={modules:_1,locales:_2,base:".",theme:"default",css:true,locale:null,timeout:2000,load:function(_1f,_20){
if(/\.css$/i.test(_1f)){
if(/^http/i.test(_1f)){
_c(_1f,_20);
}else{
_c(easyloader.base+_1f,_20);
}
}else{
if(/\.js$/i.test(_1f)){
if(/^http/i.test(_1f)){
_4(_1f,_20);
}else{
_4(easyloader.base+_1f,_20);
}
}else{
_17(_1f,_20);
}
}
},onProgress:function(_21){
},onLoad:function(_22){
}};
var _23=document.getElementsByTagName("script");
for(var i=0;i<_23.length;i++){
var src=_23[i].src;
if(!src){
continue;
}
var m=src.match(/easyloader\.js(\W|$)/i);
if(m){
easyloader.base=src.substring(0,m.index);
}
}
window.using=easyloader.load;
if(window.jQuery){
jQuery(function(){
easyloader.load("parser",function(){
jQuery.parser.parse();
});
});
}
})();

View File

@@ -0,0 +1,620 @@
/*!
* jQuery blockUI plugin
* Version 2.70.0-2014.11.23
* Requires jQuery v1.7 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2013 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
*/
;(function() {
/*jshint eqeqeq:false curly:false latedef:false */
"use strict";
function setup($) {
$.fn._fadeIn = $.fn.fadeIn;
var noOp = $.noop || function() {};
// this bit is to ensure we don't call setExpression when we shouldn't (with extra muscle to handle
// confusing userAgent strings on Vista)
var msie = /MSIE/.test(navigator.userAgent);
var ie6 = /MSIE 6.0/.test(navigator.userAgent) && ! /MSIE 8.0/.test(navigator.userAgent);
var mode = document.documentMode || 0;
var setExpr = $.isFunction( document.createElement('div').style.setExpression );
// global $ methods for blocking/unblocking the entire page
$.blockUI = function(opts) { install(window, opts); };
$.unblockUI = function(opts) { remove(window, opts); };
// convenience method for quick growl-like notifications (http://www.google.com/search?q=growl)
$.growlUI = function(title, message, timeout, onClose) {
var $m = $('<div class="growlUI"></div>');
if (title) $m.append('<h1>'+title+'</h1>');
if (message) $m.append('<h2>'+message+'</h2>');
if (timeout === undefined) timeout = 3000;
// Added by konapun: Set timeout to 30 seconds if this growl is moused over, like normal toast notifications
var callBlock = function(opts) {
opts = opts || {};
$.blockUI({
message: $m,
fadeIn : typeof opts.fadeIn !== 'undefined' ? opts.fadeIn : 700,
fadeOut: typeof opts.fadeOut !== 'undefined' ? opts.fadeOut : 1000,
timeout: typeof opts.timeout !== 'undefined' ? opts.timeout : timeout,
centerY: false,
showOverlay: false,
onUnblock: onClose,
css: $.blockUI.defaults.growlCSS
});
};
callBlock();
var nonmousedOpacity = $m.css('opacity');
$m.mouseover(function() {
callBlock({
fadeIn: 0,
timeout: 30000
});
var displayBlock = $('.blockMsg');
displayBlock.stop(); // cancel fadeout if it has started
displayBlock.fadeTo(300, 1); // make it easier to read the message by removing transparency
}).mouseout(function() {
$('.blockMsg').fadeOut(1000);
});
// End konapun additions
};
// plugin method for blocking element content
$.fn.block = function(opts) {
if ( this[0] === window ) {
$.blockUI( opts );
return this;
}
var fullOpts = $.extend({}, $.blockUI.defaults, opts || {});
this.each(function() {
var $el = $(this);
if (fullOpts.ignoreIfBlocked && $el.data('blockUI.isBlocked'))
return;
$el.unblock({ fadeOut: 0 });
});
return this.each(function() {
if ($.css(this,'position') == 'static') {
this.style.position = 'relative';
$(this).data('blockUI.static', true);
}
this.style.zoom = 1; // force 'hasLayout' in ie
install(this, opts);
});
};
// plugin method for unblocking element content
$.fn.unblock = function(opts) {
if ( this[0] === window ) {
$.unblockUI( opts );
return this;
}
return this.each(function() {
remove(this, opts);
});
};
$.blockUI.version = 2.70; // 2nd generation blocking at no extra cost!
// override these in your code to change the default behavior and style
$.blockUI.defaults = {
// message displayed when blocking (use null for no message)
message: '<h1>Please wait...</h1>',
title: null, // title string; only used when theme == true
draggable: true, // only used when theme == true (requires jquery-ui.js to be loaded)
theme: false, // set to true to use with jQuery UI themes
// styles for the message when blocking; if you wish to disable
// these and use an external stylesheet then do this in your code:
// $.blockUI.defaults.css = {};
css: {
padding: 0,
margin: 0,
width: '30%',
top: '40%',
left: '35%',
textAlign: 'center',
color: '#000',
border: '3px solid #aaa',
backgroundColor:'#fff',
cursor: 'wait'
},
// minimal style set used when themes are used
themedCSS: {
width: '30%',
top: '40%',
left: '35%'
},
// styles for the overlay
overlayCSS: {
backgroundColor: '#000',
opacity: 0.6,
cursor: 'wait'
},
// style to replace wait cursor before unblocking to correct issue
// of lingering wait cursor
cursorReset: 'default',
// styles applied when using $.growlUI
growlCSS: {
width: '350px',
top: '10px',
left: '',
right: '10px',
border: 'none',
padding: '5px',
opacity: 0.6,
cursor: 'default',
color: '#fff',
backgroundColor: '#000',
'-webkit-border-radius':'10px',
'-moz-border-radius': '10px',
'border-radius': '10px'
},
// IE issues: 'about:blank' fails on HTTPS and javascript:false is s-l-o-w
// (hat tip to Jorge H. N. de Vasconcelos)
/*jshint scripturl:true */
iframeSrc: /^https/i.test(window.location.href || '') ? 'javascript:false' : 'about:blank',
// force usage of iframe in non-IE browsers (handy for blocking applets)
forceIframe: false,
// z-index for the blocking overlay
baseZ: 1000,
// set these to true to have the message automatically centered
centerX: true, // <-- only effects element blocking (page block controlled via css above)
centerY: true,
// allow body element to be stetched in ie6; this makes blocking look better
// on "short" pages. disable if you wish to prevent changes to the body height
allowBodyStretch: true,
// enable if you want key and mouse events to be disabled for content that is blocked
bindEvents: true,
// be default blockUI will supress tab navigation from leaving blocking content
// (if bindEvents is true)
constrainTabKey: true,
// fadeIn time in millis; set to 0 to disable fadeIn on block
fadeIn: 200,
// fadeOut time in millis; set to 0 to disable fadeOut on unblock
fadeOut: 400,
// time in millis to wait before auto-unblocking; set to 0 to disable auto-unblock
timeout: 0,
// disable if you don't want to show the overlay
showOverlay: true,
// if true, focus will be placed in the first available input field when
// page blocking
focusInput: true,
// elements that can receive focus
focusableElements: ':input:enabled:visible',
// suppresses the use of overlay styles on FF/Linux (due to performance issues with opacity)
// no longer needed in 2012
// applyPlatformOpacityRules: true,
// callback method invoked when fadeIn has completed and blocking message is visible
onBlock: null,
// callback method invoked when unblocking has completed; the callback is
// passed the element that has been unblocked (which is the window object for page
// blocks) and the options that were passed to the unblock call:
// onUnblock(element, options)
onUnblock: null,
// callback method invoked when the overlay area is clicked.
// setting this will turn the cursor to a pointer, otherwise cursor defined in overlayCss will be used.
onOverlayClick: null,
// don't ask; if you really must know: http://groups.google.com/group/jquery-en/browse_thread/thread/36640a8730503595/2f6a79a77a78e493#2f6a79a77a78e493
quirksmodeOffsetHack: 4,
// class name of the message block
blockMsgClass: 'blockMsg',
// if it is already blocked, then ignore it (don't unblock and reblock)
ignoreIfBlocked: false
};
// private data and functions follow...
var pageBlock = null;
var pageBlockEls = [];
function install(el, opts) {
var css, themedCSS;
var full = (el == window);
var msg = (opts && opts.message !== undefined ? opts.message : undefined);
opts = $.extend({}, $.blockUI.defaults, opts || {});
if (opts.ignoreIfBlocked && $(el).data('blockUI.isBlocked'))
return;
opts.overlayCSS = $.extend({}, $.blockUI.defaults.overlayCSS, opts.overlayCSS || {});
css = $.extend({}, $.blockUI.defaults.css, opts.css || {});
if (opts.onOverlayClick)
opts.overlayCSS.cursor = 'pointer';
themedCSS = $.extend({}, $.blockUI.defaults.themedCSS, opts.themedCSS || {});
msg = msg === undefined ? opts.message : msg;
// remove the current block (if there is one)
if (full && pageBlock)
remove(window, {fadeOut:0});
// if an existing element is being used as the blocking content then we capture
// its current place in the DOM (and current display style) so we can restore
// it when we unblock
if (msg && typeof msg != 'string' && (msg.parentNode || msg.jquery)) {
var node = msg.jquery ? msg[0] : msg;
var data = {};
$(el).data('blockUI.history', data);
data.el = node;
data.parent = node.parentNode;
data.display = node.style.display;
data.position = node.style.position;
if (data.parent)
data.parent.removeChild(node);
}
$(el).data('blockUI.onUnblock', opts.onUnblock);
var z = opts.baseZ;
// blockUI uses 3 layers for blocking, for simplicity they are all used on every platform;
// layer1 is the iframe layer which is used to supress bleed through of underlying content
// layer2 is the overlay layer which has opacity and a wait cursor (by default)
// layer3 is the message content that is displayed while blocking
var lyr1, lyr2, lyr3, s;
if (msie || opts.forceIframe)
lyr1 = $('<iframe class="blockUI" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+opts.iframeSrc+'"></iframe>');
else
lyr1 = $('<div class="blockUI" style="display:none"></div>');
if (opts.theme)
lyr2 = $('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+ (z++) +';display:none"></div>');
else
lyr2 = $('<div class="blockUI blockOverlay" style="z-index:'+ (z++) +';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>');
if (opts.theme && full) {
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:fixed">';
if ( opts.title ) {
s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || '&nbsp;')+'</div>';
}
s += '<div class="ui-widget-content ui-dialog-content"></div>';
s += '</div>';
}
else if (opts.theme) {
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(z+10)+';display:none;position:absolute">';
if ( opts.title ) {
s += '<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(opts.title || '&nbsp;')+'</div>';
}
s += '<div class="ui-widget-content ui-dialog-content"></div>';
s += '</div>';
}
else if (full) {
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockPage" style="z-index:'+(z+10)+';display:none;position:fixed"></div>';
}
else {
s = '<div class="blockUI ' + opts.blockMsgClass + ' blockElement" style="z-index:'+(z+10)+';display:none;position:absolute"></div>';
}
lyr3 = $(s);
// if we have a message, style it
if (msg) {
if (opts.theme) {
lyr3.css(themedCSS);
lyr3.addClass('ui-widget-content');
}
else
lyr3.css(css);
}
// style the overlay
if (!opts.theme /*&& (!opts.applyPlatformOpacityRules)*/)
lyr2.css(opts.overlayCSS);
lyr2.css('position', full ? 'fixed' : 'absolute');
// make iframe layer transparent in IE
if (msie || opts.forceIframe)
lyr1.css('opacity',0.0);
//$([lyr1[0],lyr2[0],lyr3[0]]).appendTo(full ? 'body' : el);
var layers = [lyr1,lyr2,lyr3], $par = full ? $('body') : $(el);
$.each(layers, function() {
this.appendTo($par);
});
if (opts.theme && opts.draggable && $.fn.draggable) {
lyr3.draggable({
handle: '.ui-dialog-titlebar',
cancel: 'li'
});
}
// ie7 must use absolute positioning in quirks mode and to account for activex issues (when scrolling)
var expr = setExpr && (!$.support.boxModel || $('object,embed', full ? null : el).length > 0);
if (ie6 || expr) {
// give body 100% height
if (full && opts.allowBodyStretch && $.support.boxModel)
$('html,body').css('height','100%');
// fix ie6 issue when blocked element has a border width
if ((ie6 || !$.support.boxModel) && !full) {
var t = sz(el,'borderTopWidth'), l = sz(el,'borderLeftWidth');
var fixT = t ? '(0 - '+t+')' : 0;
var fixL = l ? '(0 - '+l+')' : 0;
}
// simulate fixed position
$.each(layers, function(i,o) {
var s = o[0].style;
s.position = 'absolute';
if (i < 2) {
if (full)
s.setExpression('height','Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:'+opts.quirksmodeOffsetHack+') + "px"');
else
s.setExpression('height','this.parentNode.offsetHeight + "px"');
if (full)
s.setExpression('width','jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"');
else
s.setExpression('width','this.parentNode.offsetWidth + "px"');
if (fixL) s.setExpression('left', fixL);
if (fixT) s.setExpression('top', fixT);
}
else if (opts.centerY) {
if (full) s.setExpression('top','(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"');
s.marginTop = 0;
}
else if (!opts.centerY && full) {
var top = (opts.css && opts.css.top) ? parseInt(opts.css.top, 10) : 0;
var expression = '((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + '+top+') + "px"';
s.setExpression('top',expression);
}
});
}
// show the message
if (msg) {
if (opts.theme)
lyr3.find('.ui-widget-content').append(msg);
else
lyr3.append(msg);
if (msg.jquery || msg.nodeType)
$(msg).show();
}
if ((msie || opts.forceIframe) && opts.showOverlay)
lyr1.show(); // opacity is zero
if (opts.fadeIn) {
var cb = opts.onBlock ? opts.onBlock : noOp;
var cb1 = (opts.showOverlay && !msg) ? cb : noOp;
var cb2 = msg ? cb : noOp;
if (opts.showOverlay)
lyr2._fadeIn(opts.fadeIn, cb1);
if (msg)
lyr3._fadeIn(opts.fadeIn, cb2);
}
else {
if (opts.showOverlay)
lyr2.show();
if (msg)
lyr3.show();
if (opts.onBlock)
opts.onBlock.bind(lyr3)();
}
// bind key and mouse events
bind(1, el, opts);
if (full) {
pageBlock = lyr3[0];
pageBlockEls = $(opts.focusableElements,pageBlock);
if (opts.focusInput)
setTimeout(focus, 20);
}
else
center(lyr3[0], opts.centerX, opts.centerY);
if (opts.timeout) {
// auto-unblock
var to = setTimeout(function() {
if (full)
$.unblockUI(opts);
else
$(el).unblock(opts);
}, opts.timeout);
$(el).data('blockUI.timeout', to);
}
}
// remove the block
function remove(el, opts) {
var count;
var full = (el == window);
var $el = $(el);
var data = $el.data('blockUI.history');
var to = $el.data('blockUI.timeout');
if (to) {
clearTimeout(to);
$el.removeData('blockUI.timeout');
}
opts = $.extend({}, $.blockUI.defaults, opts || {});
bind(0, el, opts); // unbind events
if (opts.onUnblock === null) {
opts.onUnblock = $el.data('blockUI.onUnblock');
$el.removeData('blockUI.onUnblock');
}
var els;
if (full) // crazy selector to handle odd field errors in ie6/7
els = $('body').children().filter('.blockUI').add('body > .blockUI');
else
els = $el.find('>.blockUI');
// fix cursor issue
if ( opts.cursorReset ) {
if ( els.length > 1 )
els[1].style.cursor = opts.cursorReset;
if ( els.length > 2 )
els[2].style.cursor = opts.cursorReset;
}
if (full)
pageBlock = pageBlockEls = null;
if (opts.fadeOut) {
count = els.length;
els.stop().fadeOut(opts.fadeOut, function() {
if ( --count === 0)
reset(els,data,opts,el);
});
}
else
reset(els, data, opts, el);
}
// move blocking element back into the DOM where it started
function reset(els,data,opts,el) {
var $el = $(el);
if ( $el.data('blockUI.isBlocked') )
return;
els.each(function(i,o) {
// remove via DOM calls so we don't lose event handlers
if (this.parentNode)
this.parentNode.removeChild(this);
});
if (data && data.el) {
data.el.style.display = data.display;
data.el.style.position = data.position;
data.el.style.cursor = 'default'; // #59
if (data.parent)
data.parent.appendChild(data.el);
$el.removeData('blockUI.history');
}
if ($el.data('blockUI.static')) {
$el.css('position', 'static'); // #22
}
if (typeof opts.onUnblock == 'function')
opts.onUnblock(el,opts);
// fix issue in Safari 6 where block artifacts remain until reflow
var body = $(document.body), w = body.width(), cssW = body[0].style.width;
body.width(w-1).width(w);
body[0].style.width = cssW;
}
// bind/unbind the handler
function bind(b, el, opts) {
var full = el == window, $el = $(el);
// don't bother unbinding if there is nothing to unbind
if (!b && (full && !pageBlock || !full && !$el.data('blockUI.isBlocked')))
return;
$el.data('blockUI.isBlocked', b);
// don't bind events when overlay is not in use or if bindEvents is false
if (!full || !opts.bindEvents || (b && !opts.showOverlay))
return;
// bind anchors and inputs for mouse and key events
var events = 'mousedown mouseup keydown keypress keyup touchstart touchend touchmove';
if (b)
$(document).bind(events, opts, handler);
else
$(document).unbind(events, handler);
// former impl...
// var $e = $('a,:input');
// b ? $e.bind(events, opts, handler) : $e.unbind(events, handler);
}
// event handler to suppress keyboard/mouse events when blocking
function handler(e) {
// allow tab navigation (conditionally)
if (e.type === 'keydown' && e.keyCode && e.keyCode == 9) {
if (pageBlock && e.data.constrainTabKey) {
var els = pageBlockEls;
var fwd = !e.shiftKey && e.target === els[els.length-1];
var back = e.shiftKey && e.target === els[0];
if (fwd || back) {
setTimeout(function(){focus(back);},10);
return false;
}
}
}
var opts = e.data;
var target = $(e.target);
if (target.hasClass('blockOverlay') && opts.onOverlayClick)
opts.onOverlayClick(e);
// allow events within the message content
if (target.parents('div.' + opts.blockMsgClass).length > 0)
return true;
// allow events for content that is not being blocked
return target.parents().children().filter('div.blockUI').length === 0;
}
function focus(back) {
if (!pageBlockEls)
return;
var e = pageBlockEls[back===true ? pageBlockEls.length-1 : 0];
if (e)
e.focus();
}
function center(el, x, y) {
var p = el.parentNode, s = el.style;
var l = ((p.offsetWidth - el.offsetWidth)/2) - sz(p,'borderLeftWidth');
var t = ((p.offsetHeight - el.offsetHeight)/2) - sz(p,'borderTopWidth');
if (x) s.left = l > 0 ? (l+'px') : '0';
if (y) s.top = t > 0 ? (t+'px') : '0';
}
function sz(el, p) {
return parseInt($.css(el,p),10)||0;
}
}
/*global define:true */
if (typeof define === 'function' && define.amd && define.amd.jQuery) {
define(['jquery'], setup);
} else {
setup(jQuery);
}
})();

17707
static/jeasyui/jquery.easyui.min.js vendored Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,141 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
$.fn.navpanel=function(_1,_2){
if(typeof _1=="string"){
var _3=$.fn.navpanel.methods[_1];
return _3?_3(this,_2):this.panel(_1,_2);
}else{
_1=_1||{};
return this.each(function(){
var _4=$.data(this,"navpanel");
if(_4){
$.extend(_4.options,_1);
}else{
_4=$.data(this,"navpanel",{options:$.extend({},$.fn.navpanel.defaults,$.fn.navpanel.parseOptions(this),_1)});
}
$(this).panel(_4.options);
});
}
};
$.fn.navpanel.methods={options:function(jq){
return $.data(jq[0],"navpanel").options;
}};
$.fn.navpanel.parseOptions=function(_5){
return $.extend({},$.fn.panel.parseOptions(_5),$.parser.parseOptions(_5,[]));
};
$.fn.navpanel.defaults=$.extend({},$.fn.panel.defaults,{fit:true,border:false,cls:"navpanel"});
$.parser.plugins.push("navpanel");
})(jQuery);
(function($){
$(function(){
$.mobile.init();
});
$.mobile={defaults:{animation:"slide",direction:"left",reverseDirections:{up:"down",down:"up",left:"right",right:"left"}},panels:[],init:function(_6){
$.mobile.panels=[];
var _7=$(_6||"body").children(".navpanel:visible");
if(_7.length){
_7.not(":first").children(".panel-body").navpanel("close");
var p=_7.eq(0).children(".panel-body");
$.mobile.panels.push({panel:p,animation:$.mobile.defaults.animation,direction:$.mobile.defaults.direction});
}
$(document)._unbind(".mobile")._bind("click.mobile",function(e){
var a=$(e.target).closest("a");
if(a.length){
var _8=$.parser.parseOptions(a[0],["animation","direction",{back:"boolean"}]);
if(_8.back){
$.mobile.back();
e.preventDefault();
}else{
var _9=$.trim(a.attr("href"));
if(/^#/.test(_9)){
var to=$(_9);
if(to.length&&to.hasClass("panel-body")){
$.mobile.go(to,_8.animation,_8.direction);
e.preventDefault();
}
}
}
}
});
$(window)._unbind(".mobile")._bind("hashchange.mobile",function(){
var _a=$.mobile.panels.length;
if(_a>1){
var _b=location.hash;
var p=$.mobile.panels[_a-2];
if(!_b||_b=="#&"+p.panel.attr("id")){
$.mobile._back();
}
}
});
},nav:function(_c,to,_d,_e){
if(window.WebKitAnimationEvent){
_d=_d!=undefined?_d:$.mobile.defaults.animation;
_e=_e!=undefined?_e:$.mobile.defaults.direction;
var _f="m-"+_d+(_e?"-"+_e:"");
var p1=$(_c).panel("open").panel("resize").panel("panel");
var p2=$(to).panel("open").panel("resize").panel("panel");
p1.add(p2)._bind("webkitAnimationEnd",function(){
$(this)._unbind("webkitAnimationEnd");
var p=$(this).children(".panel-body");
if($(this).hasClass("m-in")){
p.panel("open").panel("resize");
}else{
p.panel("close");
}
$(this).removeClass(_f+" m-in m-out");
});
p2.addClass(_f+" m-in");
p1.addClass(_f+" m-out");
}else{
$(to).panel("open").panel("resize");
$(_c).panel("close");
}
},_go:function(_10,_11,_12){
_11=_11!=undefined?_11:$.mobile.defaults.animation;
_12=_12!=undefined?_12:$.mobile.defaults.direction;
var _13=$.mobile.panels[$.mobile.panels.length-1].panel;
var to=$(_10);
if(_13[0]!=to[0]){
$.mobile.nav(_13,to,_11,_12);
$.mobile.panels.push({panel:to,animation:_11,direction:_12});
}
},_back:function(){
if($.mobile.panels.length<2){
return;
}
var p1=$.mobile.panels.pop();
var p2=$.mobile.panels[$.mobile.panels.length-1];
var _14=p1.animation;
var _15=$.mobile.defaults.reverseDirections[p1.direction]||"";
$.mobile.nav(p1.panel,p2.panel,_14,_15);
},go:function(_16,_17,_18){
_17=_17!=undefined?_17:$.mobile.defaults.animation;
_18=_18!=undefined?_18:$.mobile.defaults.direction;
location.hash="#&"+$(_16).attr("id");
$.mobile._go(_16,_17,_18);
},back:function(){
history.go(-1);
}};
$.map(["validatebox","textbox","passwordbox","filebox","searchbox","combo","combobox","combogrid","combotree","combotreegrid","datebox","datetimebox","numberbox","spinner","numberspinner","timespinner","datetimespinner"],function(_19){
if($.fn[_19]){
$.extend($.fn[_19].defaults,{iconWidth:28,tipPosition:"bottom"});
}
});
$.map(["spinner","numberspinner","timespinner","datetimespinner"],function(_1a){
if($.fn[_1a]){
$.extend($.fn[_1a].defaults,{iconWidth:56,spinAlign:"horizontal"});
}
});
if($.fn.menu){
$.extend($.fn.menu.defaults,{itemHeight:30,noline:true});
}
})(jQuery);

2
static/jeasyui/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,44 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Bladsy';
$.fn.pagination.defaults.afterPageText = 'Van {pages}';
$.fn.pagination.defaults.displayMsg = 'Wys (from) tot (to) van (total) items';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Verwerking, wag asseblief ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Die styl';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Die veld is verpligtend.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = "Gee 'n geldige e-pos adres.";
$.fn.validatebox.defaults.rules.url.message = "Gee 'n geldige URL nie.";
$.fn.validatebox.defaults.rules.length.message = "Voer 'n waarde tussen {0} en {1}.";
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Vandag';
$.fn.datebox.defaults.closeText = 'Sluit';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,46 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Էջ';
$.fn.pagination.defaults.afterPageText = 'ից {pages}';
$.fn.pagination.defaults.displayMsg = 'Դիտել {from}-ից {to}-ը {total} գրառումից';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Մշակվում է, խնդրում ենք սպասել ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Այո';
$.messager.defaults.cancel = 'Փակել';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Այս դաշտը պարտադիր է.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Խնդրում ենք մուտքագրել գործող e-mail հասցե.';
$.fn.validatebox.defaults.rules.url.message = 'Խնդրում ենք մուտքագրել գործող URL.';
$.fn.validatebox.defaults.rules.length.message = 'Խնդրում ենք մուտքագրել արժեք {0} {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Խնդրում ենք ուղղել այս դաշտը.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.firstDay = 1;
$.fn.calendar.defaults.weeks = ['Կ.','Ե.','Ե.','Չ.','Հ.','Ու.','Շ.'];
$.fn.calendar.defaults.months = ['Հունվար', 'Փետրվար', 'Մարտ', 'Ապրիլ', 'Մայիս', 'Հունիս', 'Հուլիս', 'Օգոստոս', 'Սեպտեմբեր', 'Հոկտեմբեր', 'Նոյեմբեր', 'Դեկտեմբեր'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Այսօր';
$.fn.datebox.defaults.closeText = 'Փակել';
$.fn.datebox.defaults.okText = 'Այո';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,45 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'صفحة';
$.fn.pagination.defaults.afterPageText = 'من {pages}';
$.fn.pagination.defaults.displayMsg = 'عرض {from} إلى {to} من {total} عنصر';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'معالجة, الرجاء الإنتظار ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'موافق';
$.messager.defaults.cancel = 'إلغاء';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'هذا الحقل مطلوب.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'الرجاء إدخال بريد إلكتروني صحيح.';
$.fn.validatebox.defaults.rules.url.message = 'الرجاء إدخال رابط صحيح.';
$.fn.validatebox.defaults.rules.length.message = 'الرجاء إدخال قيمة بين {0} و {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'الرجاء التأكد من الحقل.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'اليوم';
$.fn.datebox.defaults.closeText = 'إغلاق';
$.fn.datebox.defaults.okText = 'موافق';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,44 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Страница';
$.fn.pagination.defaults.afterPageText = 'от {pages}';
$.fn.pagination.defaults.displayMsg = 'Показани {from} за {to} от {total} продукти';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Обработка, моля изчакайте ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Добре';
$.messager.defaults.cancel = 'Задрасквам';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Това поле е задължително.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Моля, въведете валиден имейл адрес.';
$.fn.validatebox.defaults.rules.url.message = 'Моля въведете валиден URL.';
$.fn.validatebox.defaults.rules.length.message = 'Моля, въведете стойност между {0} и {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Днес';
$.fn.datebox.defaults.closeText = 'Близо';
$.fn.datebox.defaults.okText = 'Добре';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,44 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Pàgina';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = "Veient {from} a {to} de {total} d'articles";
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Elaboració, si us plau esperi ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Cancel';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Aquest camp és obligatori.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Introduïu una adreça de correu electrònic vàlida.';
$.fn.validatebox.defaults.rules.url.message = 'Si us plau, introduïu un URL vàlida.';
$.fn.validatebox.defaults.rules.length.message = 'Si us plau, introduïu un valor entre {0} i {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Avui';
$.fn.datebox.defaults.closeText = 'Tancar';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,44 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Strana';
$.fn.pagination.defaults.afterPageText = 'z {pages}';
$.fn.pagination.defaults.displayMsg = 'Zobrazuji {from} do {to} z {total} položky';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Zpracování, čekejte prosím ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Zrušit';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Toto pole je vyžadováno.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Zadejte prosím platnou e-mailovou adresu.';
$.fn.validatebox.defaults.rules.url.message = 'Zadejte prosím platnou adresu URL.';
$.fn.validatebox.defaults.rules.length.message = 'Prosím, zadejte hodnotu mezi {0} a {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Dnes';
$.fn.datebox.defaults.closeText = 'Zavřít';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,44 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Strana';
$.fn.pagination.defaults.afterPageText = 'z {pages}';
$.fn.pagination.defaults.displayMsg = 'Zobrazuji záznam {from} až {to} z {total}.';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Pracuji, čekejte prosím…';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Zrušit';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Toto pole je vyžadováno.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Zadejte, prosím, platnou e-mailovou adresu.';
$.fn.validatebox.defaults.rules.url.message = 'Zadejte, prosím, platnou adresu URL.';
$.fn.validatebox.defaults.rules.length.message = 'Zadejte, prosím, hodnotu mezi {0} a {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['N','P','Ú','S','Č','P','S']; //neděle pondělí úterý středa čtvrtek pátek sobota
$.fn.calendar.defaults.months = ['led', 'únr', 'bře', 'dub', 'kvě', 'čvn', 'čvc', 'srp', 'zář', 'říj', 'lis', 'pro']; //leden únor březen duben květen červen červenec srpen září říjen listopad prosinec
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Dnes';
$.fn.datebox.defaults.closeText = 'Zavřít';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,44 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Page';
$.fn.pagination.defaults.afterPageText = 'af {pages}';
$.fn.pagination.defaults.displayMsg = 'Viser {from} til {to} af {total} poster';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Behandling, vent venligst ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Annuller';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Dette felt er påkrævet.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Angiv en gyldig e-mail-adresse.';
$.fn.validatebox.defaults.rules.url.message = 'Angiv en gyldig webadresse.';
$.fn.validatebox.defaults.rules.length.message = 'Angiv en værdi mellem {0} og {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'I dag';
$.fn.datebox.defaults.closeText = 'Luk';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,63 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Seite';
$.fn.pagination.defaults.afterPageText = 'von {pages}';
$.fn.pagination.defaults.displayMsg = '{from} bis {to} von {total} Datensätzen';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Verarbeitung läuft, bitte warten ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'OK';
$.messager.defaults.cancel = 'Abbruch';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Dieses Feld wird benötigt.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Bitte geben Sie eine gültige E-Mail-Adresse ein.';
$.fn.validatebox.defaults.rules.url.message = 'Bitte geben Sie eine gültige URL ein.';
$.fn.validatebox.defaults.rules.length.message = 'Bitte geben Sie einen Wert zwischen {0} und {1} ein.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.firstDay = 1;
$.fn.calendar.defaults.weeks = ['S','M','D','M','D','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Heute';
$.fn.datebox.defaults.closeText = 'Schließen';
$.fn.datebox.defaults.okText = 'OK';
$.fn.datebox.defaults.formatter = function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return (d<10?('0'+d):d)+'.'+(m<10?('0'+m):m)+'.'+y;
};
$.fn.datebox.defaults.parser = function(s){
if (!s) return new Date();
var ss = s.split('.');
var m = parseInt(ss[1],10);
var d = parseInt(ss[0],10);
var y = parseInt(ss[2],10);
if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
return new Date(y,m-1,d);
} else {
return new Date();
}
};
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,45 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Σελίδα';
$.fn.pagination.defaults.afterPageText = 'από {pages}';
$.fn.pagination.defaults.displayMsg = 'Εμφάνιση {from} εώς {to} από {total} αντικείμενα';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Γίνεται Επεξεργασία, Παρακαλώ Περιμένετε ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Εντάξει';
$.messager.defaults.cancel = 'Άκυρο';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Το πεδίο είναι υποχρεωτικό.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Παρακαλώ εισάγετε σωστή Ηλ.Διεύθυνση.';
$.fn.validatebox.defaults.rules.url.message = 'Παρακαλώ εισάγετε σωστό σύνδεσμο.';
$.fn.validatebox.defaults.rules.length.message = 'Παρακαλώ εισάγετε τιμή μεταξύ {0} και {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Παρακαλώ διορθώστε αυτό το πεδίο.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'];
$.fn.calendar.defaults.months = ['Ιαν', 'Φεβ', 'Μαρ', 'Απρ', 'Μαϊ', 'Ιου', 'Ιου', 'Αυγ', 'Σεπ', 'Οκτ', 'Νοε', 'Δεκ'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Σήμερα';
$.fn.datebox.defaults.closeText = 'Κλείσιμο';
$.fn.datebox.defaults.okText = 'Εντάξει';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,45 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Page';
$.fn.pagination.defaults.afterPageText = 'of {pages}';
$.fn.pagination.defaults.displayMsg = 'Displaying {from} to {to} of {total} items';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Processing, please wait ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Cancel';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'This field is required.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Please enter a valid email address.';
$.fn.validatebox.defaults.rules.url.message = 'Please enter a valid URL.';
$.fn.validatebox.defaults.rules.length.message = 'Please enter a value between {0} and {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Please fix this field.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Today';
$.fn.datebox.defaults.closeText = 'Close';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,45 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'P&aacute;gina';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} elementos';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Procesando, por favor espere ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Aceptar';
$.messager.defaults.cancel = 'Cancelar';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Este campo es obligatorio.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Por favor ingrese una direcci&oacute;n de correo v&aacute;lida.';
$.fn.validatebox.defaults.rules.url.message = 'Por favor ingrese una URL v&aacute;lida.';
$.fn.validatebox.defaults.rules.length.message = 'Por favor ingrese un valor entre {0} y {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Por favor corrija este campo.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['Do','Lu','Ma','Mi','Ju','Vi','S&aacute;'];
$.fn.calendar.defaults.months = ['Ene', 'Feb', 'Mar', 'Abr', 'May', 'Jun', 'Jul', 'Ago', 'Sep', 'Oct', 'Nov', 'Dic'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Hoy';
$.fn.datebox.defaults.closeText = 'Cerrar';
$.fn.datebox.defaults.okText = 'Aceptar';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,45 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'صفحه';
$.fn.pagination.defaults.afterPageText = 'از {pages}';
$.fn.pagination.defaults.displayMsg = 'نمایش {from} تا {to} از {total} مورد';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'درحال پردازش، لطفا صبر کنید...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'قبول';
$.messager.defaults.cancel = 'انصراف';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'این فیلد اجباری می باشد.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'لطفا آدرس ایمیل را صحیح وارد کنید.';
$.fn.validatebox.defaults.rules.url.message = 'لطفا آدرس سایت را صحیح وارد کنید.';
$.fn.validatebox.defaults.rules.length.message = 'لطفا مقداری بین {0} و {1} وارد کنید.';
$.fn.validatebox.defaults.rules.remote.message = 'لطفا مقدار این فیلد را تصحیح کنید.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'امروز';
$.fn.datebox.defaults.closeText = 'بستن';
$.fn.datebox.defaults.okText = 'قبول';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,62 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Page';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = 'Affichage de {from} et {to} au {total} des articles';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = "Traitement, s'il vous plaît patienter ...";
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Annuler';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Ce champ est obligatoire.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = "S'il vous plaît entrer une adresse email valide.";
$.fn.validatebox.defaults.rules.url.message = "S'il vous plaît entrer une URL valide.";
$.fn.validatebox.defaults.rules.length.message = "S'il vous plaît entrez une valeur comprise entre {0} et {1}.";
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ["Jan", "Fév", "Mar", "Avr", "Mai", "Juin", "Juil", "Aôu", "Sep", "Oct", "Nov", "Déc"];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = "Aujourd'hui";
$.fn.datebox.defaults.closeText = 'Fermer';
$.fn.datebox.defaults.okText = 'Ok';
$.fn.datebox.defaults.formatter = function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return (d<10?('0'+d):d)+'/'+(m<10?('0'+m):m)+'/'+y;
};
$.fn.datebox.defaults.parser = function(s){
if (!s) return new Date();
var ss = s.split('/');
var d = parseInt(ss[0],10);
var m = parseInt(ss[1],10);
var y = parseInt(ss[2],10);
if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
return new Date(y,m-1,d);
} else {
return new Date();
}
};
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,64 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Pagina';
$.fn.pagination.defaults.afterPageText = 'di {pages}';
$.fn.pagination.defaults.displayMsg = 'Visualizzazione {from} a {to} di {total} elementi';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'In lavorazione, attendere ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Annulla';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Questo campo è richiesto.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Inserisci un indirizzo email valido.';
$.fn.validatebox.defaults.rules.url.message = 'Inserisci un URL valido.';
$.fn.validatebox.defaults.rules.length.message = 'Inserisci un valore tra {0} e {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Correggere questo campo.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.firstDay = 1;
$.fn.calendar.defaults.weeks = ['D','L','M','M','G','V','S'];
$.fn.calendar.defaults.months = ['Gen', 'Feb', 'Mar', 'Apr', 'Mag', 'Giu', 'Lug', 'Ago', 'Set', 'Ott', 'Nov', 'Dic'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Oggi';
$.fn.datebox.defaults.closeText = 'Chiudi';
$.fn.datebox.defaults.okText = 'Ok';
$.fn.datebox.defaults.formatter = function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return (d<10?('0'+d):d)+'/'+(m<10?('0'+m):m)+'/'+y;
};
$.fn.datebox.defaults.parser = function(s){
if (!s) return new Date();
var ss = s.split('/');
var d = parseInt(ss[0],10);
var m = parseInt(ss[1],10);
var y = parseInt(ss[2],10);
if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
return new Date(y,m-1,d);
} else {
return new Date();
}
};
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,45 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'ページ';
$.fn.pagination.defaults.afterPageText = '{pages} 中';
$.fn.pagination.defaults.displayMsg = '全 {total} アイテム中 {from} から {to} を表示中';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '処理中です。少々お待ちください...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'OK';
$.messager.defaults.cancel = 'キャンセル';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = '入力は必須です。';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = '正しいメールアドレスを入力してください。';
$.fn.validatebox.defaults.rules.url.message = '正しいURLを入力してください。';
$.fn.validatebox.defaults.rules.length.message = '{0} から {1} の範囲の正しい値を入力してください。';
$.fn.validatebox.defaults.rules.remote.message = 'このフィールドを修正してください。';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['日','月','火','水','木','金','土'];
$.fn.calendar.defaults.months = ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = '今日';
$.fn.datebox.defaults.closeText = '閉じる';
$.fn.datebox.defaults.okText = 'OK';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,45 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = '페이지';
$.fn.pagination.defaults.afterPageText = '{pages} 중';
$.fn.pagination.defaults.displayMsg = '전체 {total} 항목 중 {from}부터 {to}번째';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '처리 중입니다. 잠시만 기다려 주세요...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = '확인';
$.messager.defaults.cancel = '취소';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = '필수 항목입니다.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = '올바른 메일 주소를 입력해 주세요.';
$.fn.validatebox.defaults.rules.url.message = '올바른 URL를 입력해 주세요.';
$.fn.validatebox.defaults.rules.length.message = '{0}에서 {1} 사이의 값을 입력해 주세요.';
$.fn.validatebox.defaults.rules.remote.message = '이 필드를 수정해 주세요.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['일','월','화','수','목','금','토'];
$.fn.calendar.defaults.months = ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = '오늘';
$.fn.datebox.defaults.closeText = '닫기';
$.fn.datebox.defaults.okText = '확인';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,44 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Pagina';
$.fn.pagination.defaults.afterPageText = 'van {pages}';
$.fn.pagination.defaults.displayMsg = 'Tonen van {from} tot {to} van de {total} items';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Verwerking, even geduld ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Annuleren';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Dit veld is verplicht.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Geef een geldig e-mailadres.';
$.fn.validatebox.defaults.rules.url.message = 'Vul een geldige URL.';
$.fn.validatebox.defaults.rules.length.message = 'Voer een waarde tussen {0} en {1}.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['S','M','T','W','T','F','S'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Vandaag';
$.fn.datebox.defaults.closeText = 'Dicht';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,45 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Strona';
$.fn.pagination.defaults.afterPageText = 'z {pages}';
$.fn.pagination.defaults.displayMsg = 'Wyświetlono elementy od {from} do {to} z {total}';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Przetwarzanie, proszę czekać ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Cancel';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'To pole jest wymagane.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Wprowadź poprawny adres email.';
$.fn.validatebox.defaults.rules.url.message = 'Wprowadź poprawny adres URL.';
$.fn.validatebox.defaults.rules.length.message = 'Wprowadź wartość z zakresu od {0} do {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Proszę poprawić to pole.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['N','P','W','Ś','C','P','S'];
$.fn.calendar.defaults.months = ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze', 'Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Dzisiaj';
$.fn.datebox.defaults.closeText = 'Zamknij';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,45 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Página';
$.fn.pagination.defaults.afterPageText = 'de {pages}';
$.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} itens';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Processando, aguarde ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Cancelar';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Esse campo é requerido.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Insira um endereço de email válido.';
$.fn.validatebox.defaults.rules.url.message = 'Insira uma URL válida.';
$.fn.validatebox.defaults.rules.length.message = 'Insira uma valor entre {0} e {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Corrija esse campo.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['D','S','T','Q','Q','S','S'];
$.fn.calendar.defaults.months = ['Jan', 'Fev', 'Mar', 'Abr', 'Mai', 'Jun', 'Jul', 'Ago', 'Set', 'Out', 'Nov', 'Dez'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Hoje';
$.fn.datebox.defaults.closeText = 'Fechar';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,46 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Страница';
$.fn.pagination.defaults.afterPageText = 'из {pages}';
$.fn.pagination.defaults.displayMsg = 'Просмотр {from} до {to} из {total} записей';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Обрабатывается, пожалуйста ждите ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ок';
$.messager.defaults.cancel = 'Закрыть';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Это поле необходимо.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Пожалуйста введите корректный e-mail адрес.';
$.fn.validatebox.defaults.rules.url.message = 'Пожалуйста введите корректный URL.';
$.fn.validatebox.defaults.rules.length.message = 'Пожалуйста введите зачение между {0} и {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Пожалуйста исправте это поле.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.firstDay = 1;
$.fn.calendar.defaults.weeks = ['В','П','В','С','Ч','П','С'];
$.fn.calendar.defaults.months = ['Янв', 'Фев', 'Мар', 'Апр', 'Май', 'Июн', 'Июл', 'Авг', 'Сен', 'Окт', 'Ноя', 'Дек'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Сегодня';
$.fn.datebox.defaults.closeText = 'Закрыть';
$.fn.datebox.defaults.okText = 'Ок';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,45 @@
if ($.fn.pagination) {
$.fn.pagination.defaults.beforePageText = 'Sida';
$.fn.pagination.defaults.afterPageText = 'av {pages}';
$.fn.pagination.defaults.displayMsg = 'Visar {from} till {to} av {total} poster';
}
if ($.fn.datagrid) {
$.fn.datagrid.defaults.loadMsg = 'Bearbetar, vänligen vänta ...';
}
if ($.fn.treegrid && $.fn.datagrid) {
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager) {
$.messager.defaults.ok = 'Ok';
$.messager.defaults.cancel = 'Avbryt';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Detta fält är obligatoriskt.';
}
});
if ($.fn.validatebox) {
$.fn.validatebox.defaults.rules.email.message = 'Vänligen ange en korrekt e-post adress.';
$.fn.validatebox.defaults.rules.url.message = 'Vänligen ange en korrekt URL.';
$.fn.validatebox.defaults.rules.length.message = 'Vänligen ange ett nummer mellan {0} och {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Vänligen åtgärda detta fält.';
}
if ($.fn.calendar) {
$.fn.calendar.defaults.weeks = ['Sön', 'Mån', 'Tis', 'Ons', 'Tors', 'Fre', 'Lör'];
$.fn.calendar.defaults.months = ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dec'];
}
if ($.fn.datebox) {
$.fn.datebox.defaults.currentText = 'I dag';
$.fn.datebox.defaults.closeText = 'Stäng';
$.fn.datebox.defaults.okText = 'Ok';
}
if ($.fn.datetimebox && $.fn.datebox) {
$.extend($.fn.datetimebox.defaults, {
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,59 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Sayfa';
$.fn.pagination.defaults.afterPageText = ' / {pages}';
$.fn.pagination.defaults.displayMsg = '{from} ile {to} arası gösteriliyor, toplam {total} kayıt';
}
if ($.fn.datagrid){
$.fn.panel.defaults.loadingMessage = "Yükleniyor...";
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadingMessage = "Yükleniyor...";
$.fn.datagrid.defaults.loadMsg = 'İşleminiz Yapılıyor, lütfen bekleyin ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Tamam';
$.messager.defaults.cancel = 'İptal';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Bu alan zorunludur.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Lütfen geçerli bir email adresi giriniz.';
$.fn.validatebox.defaults.rules.url.message = 'Lütfen geçerli bir URL giriniz.';
$.fn.validatebox.defaults.rules.length.message = 'Lütfen {0} ile {1} arasında bir değer giriniz.';
$.fn.validatebox.defaults.rules.remote.message = 'Lütfen bu alanı düzeltiniz.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'];
$.fn.calendar.defaults.months = ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Bugün';
$.fn.datebox.defaults.closeText = 'Kapat';
$.fn.datebox.defaults.okText = 'Tamam';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
$.fn.datebox.defaults.formatter=function(date){
var y=date.getFullYear();
var m=date.getMonth()+1;
var d=date.getDate();
if(m<10){m="0"+m;}
if(d<10){d="0"+d;}
return d+"."+m+"."+y;
};
}

View File

@@ -0,0 +1,46 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = 'Сторінка';
$.fn.pagination.defaults.afterPageText = 'з {pages}';
$.fn.pagination.defaults.displayMsg = 'Перегляд {from} до {to} з {total} записів';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = 'Обробляється, зачекайте будь даска ...';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = 'Ок';
$.messager.defaults.cancel = 'Закрити';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = 'Це поле необхідно.';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = 'Будь ласка, введіть коректну e-mail адресу.';
$.fn.validatebox.defaults.rules.url.message = 'Будь ласка, введіть коректний URL.';
$.fn.validatebox.defaults.rules.length.message = 'Будь ласка введіть значення між {0} і {1}.';
$.fn.validatebox.defaults.rules.remote.message = 'Будь ласка виправте це поле.';
}
if ($.fn.calendar){
$.fn.calendar.defaults.firstDay = 1;
$.fn.calendar.defaults.weeks = ['В','П','В','С','Ч','П','С'];
$.fn.calendar.defaults.months = ['Січ', 'Лют', 'Бер', 'Квіт', 'Трав', 'Черв', 'Лип', 'Серп', 'Вер', 'Жовт', 'Лист', 'Груд'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = 'Сьогодні';
$.fn.datebox.defaults.closeText = 'Закрити';
$.fn.datebox.defaults.okText = 'Ок';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}

View File

@@ -0,0 +1,66 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = '第';
$.fn.pagination.defaults.afterPageText = '共{pages}页';
$.fn.pagination.defaults.displayMsg = '显示{from}到{to},共{total}记录';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '正在处理,请稍待。。。';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = '确定';
$.messager.defaults.cancel = '取消';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = '该输入项为必输项';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = '请输入有效的电子邮件地址';
$.fn.validatebox.defaults.rules.url.message = '请输入有效的URL地址';
$.fn.validatebox.defaults.rules.length.message = '输入内容长度必须介于{0}和{1}之间';
$.fn.validatebox.defaults.rules.remote.message = '请修正该字段';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六'];
$.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = '今天';
$.fn.datebox.defaults.closeText = '关闭';
$.fn.datebox.defaults.okText = '确定';
$.fn.datebox.defaults.formatter = function(date){
var y = date.getFullYear();
var m = date.getMonth()+1;
var d = date.getDate();
return y+'-'+(m<10?('0'+m):m)+'-'+(d<10?('0'+d):d);
};
$.fn.datebox.defaults.parser = function(s){
if (!s) return new Date();
var ss = s.split('-');
var y = parseInt(ss[0],10);
var m = parseInt(ss[1],10);
var d = parseInt(ss[2],10);
if (!isNaN(y) && !isNaN(m) && !isNaN(d)){
return new Date(y,m-1,d);
} else {
return new Date();
}
};
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
if ($.fn.datetimespinner){
$.fn.datetimespinner.defaults.selections = [[0,4],[5,7],[8,10],[11,13],[14,16],[17,19]]
}

View File

@@ -0,0 +1,48 @@
if ($.fn.pagination){
$.fn.pagination.defaults.beforePageText = '第';
$.fn.pagination.defaults.afterPageText = '共{pages}頁';
$.fn.pagination.defaults.displayMsg = '顯示{from}到{to},共{total}記錄';
}
if ($.fn.datagrid){
$.fn.datagrid.defaults.loadMsg = '正在處理,請稍待。。。';
}
if ($.fn.treegrid && $.fn.datagrid){
$.fn.treegrid.defaults.loadMsg = $.fn.datagrid.defaults.loadMsg;
}
if ($.messager){
$.messager.defaults.ok = '確定';
$.messager.defaults.cancel = '取消';
}
$.map(['validatebox','textbox','passwordbox','filebox','searchbox',
'combo','combobox','combogrid','combotree',
'datebox','datetimebox','numberbox',
'spinner','numberspinner','timespinner','datetimespinner'], function(plugin){
if ($.fn[plugin]){
$.fn[plugin].defaults.missingMessage = '該輸入項為必輸項';
}
});
if ($.fn.validatebox){
$.fn.validatebox.defaults.rules.email.message = '請輸入有效的電子郵件地址';
$.fn.validatebox.defaults.rules.url.message = '請輸入有效的URL地址';
$.fn.validatebox.defaults.rules.length.message = '輸入內容長度必須介於{0}和{1}之間';
$.fn.validatebox.defaults.rules.remote.message = '請修正此欄位';
}
if ($.fn.calendar){
$.fn.calendar.defaults.weeks = ['日','一','二','三','四','五','六'];
$.fn.calendar.defaults.months = ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'];
}
if ($.fn.datebox){
$.fn.datebox.defaults.currentText = '今天';
$.fn.datebox.defaults.closeText = '關閉';
$.fn.datebox.defaults.okText = '確定';
}
if ($.fn.datetimebox && $.fn.datebox){
$.extend($.fn.datetimebox.defaults,{
currentText: $.fn.datebox.defaults.currentText,
closeText: $.fn.datebox.defaults.closeText,
okText: $.fn.datebox.defaults.okText
});
}
if ($.fn.datetimespinner){
$.fn.datetimespinner.defaults.selections = [[0,4],[5,7],[8,10],[11,13],[14,16],[17,19]]
}

View File

@@ -0,0 +1,350 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2,_3){
var _4=$.data(_2,"accordion");
var _5=_4.options;
var _6=_4.panels;
var cc=$(_2);
var _7=(_5.halign=="left"||_5.halign=="right");
cc.children(".panel-last").removeClass("panel-last");
cc.children(".panel:last").addClass("panel-last");
if(_3){
$.extend(_5,{width:_3.width,height:_3.height});
}
cc._size(_5);
var _8=0;
var _9="auto";
var _a=cc.find(">.panel>.accordion-header");
if(_a.length){
if(_7){
$(_a[0]).next().panel("resize",{width:cc.width(),height:cc.height()});
_8=$(_a[0])._outerWidth();
}else{
_8=$(_a[0]).css("height","")._outerHeight();
}
}
if(!isNaN(parseInt(_5.height))){
if(_7){
_9=cc.width()-_8*_a.length;
}else{
_9=cc.height()-_8*_a.length;
}
}
_b(true,_9-_b(false));
function _b(_c,_d){
var _e=0;
for(var i=0;i<_6.length;i++){
var p=_6[i];
if(_7){
var h=p.panel("header")._outerWidth(_8);
}else{
var h=p.panel("header")._outerHeight(_8);
}
if(p.panel("options").collapsible==_c){
var _f=isNaN(_d)?undefined:(_d+_8*h.length);
if(_7){
p.panel("resize",{height:cc.height(),width:(_c?_f:undefined)});
_e+=p.panel("panel")._outerWidth()-_8*h.length;
}else{
p.panel("resize",{width:cc.width(),height:(_c?_f:undefined)});
_e+=p.panel("panel").outerHeight()-_8*h.length;
}
}
}
return _e;
};
};
function _10(_11,_12,_13,all){
var _14=$.data(_11,"accordion").panels;
var pp=[];
for(var i=0;i<_14.length;i++){
var p=_14[i];
if(_12){
if(p.panel("options")[_12]==_13){
pp.push(p);
}
}else{
if(p[0]==$(_13)[0]){
return i;
}
}
}
if(_12){
return all?pp:(pp.length?pp[0]:null);
}else{
return -1;
}
};
function _15(_16){
return _10(_16,"collapsed",false,true);
};
function _17(_18){
var pp=_15(_18);
return pp.length?pp[0]:null;
};
function _19(_1a,_1b){
return _10(_1a,null,_1b);
};
function _1c(_1d,_1e){
var _1f=$.data(_1d,"accordion").panels;
if(typeof _1e=="number"){
if(_1e<0||_1e>=_1f.length){
return null;
}else{
return _1f[_1e];
}
}
return _10(_1d,"title",_1e);
};
function _20(_21){
var _22=$.data(_21,"accordion").options;
var cc=$(_21);
if(_22.border){
cc.removeClass("accordion-noborder");
}else{
cc.addClass("accordion-noborder");
}
};
function _23(_24){
var _25=$.data(_24,"accordion");
var cc=$(_24);
cc.addClass("accordion");
_25.panels=[];
cc.children("div").each(function(){
var _26=$.extend({},$.parser.parseOptions(this),{selected:($(this).attr("selected")?true:undefined)});
var pp=$(this);
_25.panels.push(pp);
_28(_24,pp,_26);
});
cc._bind("_resize",function(e,_27){
if($(this).hasClass("easyui-fluid")||_27){
_1(_24);
}
return false;
});
};
function _28(_29,pp,_2a){
var _2b=$.data(_29,"accordion").options;
pp.panel($.extend({},{collapsible:true,minimizable:false,maximizable:false,closable:false,doSize:false,collapsed:true,headerCls:"accordion-header",bodyCls:"accordion-body",halign:_2b.halign},_2a,{onBeforeExpand:function(){
if(_2a.onBeforeExpand){
if(_2a.onBeforeExpand.call(this)==false){
return false;
}
}
if(!_2b.multiple){
var all=$.grep(_15(_29),function(p){
return p.panel("options").collapsible;
});
for(var i=0;i<all.length;i++){
_34(_29,_19(_29,all[i]));
}
}
var _2c=$(this).panel("header");
_2c.addClass("accordion-header-selected");
_2c.find(".accordion-collapse").removeClass("accordion-expand");
},onExpand:function(){
$(_29).find(">.panel-last>.accordion-header").removeClass("accordion-header-border");
if(_2a.onExpand){
_2a.onExpand.call(this);
}
_2b.onSelect.call(_29,$(this).panel("options").title,_19(_29,this));
},onBeforeCollapse:function(){
if(_2a.onBeforeCollapse){
if(_2a.onBeforeCollapse.call(this)==false){
return false;
}
}
$(_29).find(">.panel-last>.accordion-header").addClass("accordion-header-border");
var _2d=$(this).panel("header");
_2d.removeClass("accordion-header-selected");
_2d.find(".accordion-collapse").addClass("accordion-expand");
},onCollapse:function(){
if(isNaN(parseInt(_2b.height))){
$(_29).find(">.panel-last>.accordion-header").removeClass("accordion-header-border");
}
if(_2a.onCollapse){
_2a.onCollapse.call(this);
}
_2b.onUnselect.call(_29,$(this).panel("options").title,_19(_29,this));
}}));
var _2e=pp.panel("header");
var _2f=_2e.children("div.panel-tool");
_2f.children("a.panel-tool-collapse").hide();
var t=$("<a href=\"javascript:;\"></a>").addClass("accordion-collapse accordion-expand").appendTo(_2f);
t._bind("click",function(){
_30(pp);
return false;
});
pp.panel("options").collapsible?t.show():t.hide();
if(_2b.halign=="left"||_2b.halign=="right"){
t.hide();
}
_2e._bind("click",function(){
_30(pp);
return false;
});
function _30(p){
var _31=p.panel("options");
if(_31.collapsible){
var _32=_19(_29,p);
if(_31.collapsed){
_33(_29,_32);
}else{
_34(_29,_32);
}
}
};
};
function _33(_35,_36){
var p=_1c(_35,_36);
if(!p){
return;
}
_37(_35);
var _38=$.data(_35,"accordion").options;
p.panel("expand",_38.animate);
};
function _34(_39,_3a){
var p=_1c(_39,_3a);
if(!p){
return;
}
_37(_39);
var _3b=$.data(_39,"accordion").options;
p.panel("collapse",_3b.animate);
};
function _3c(_3d){
var _3e=$.data(_3d,"accordion").options;
$(_3d).find(">.panel-last>.accordion-header").addClass("accordion-header-border");
var p=_10(_3d,"selected",true);
if(p){
_3f(_19(_3d,p));
}else{
_3f(_3e.selected);
}
function _3f(_40){
var _41=_3e.animate;
_3e.animate=false;
_33(_3d,_40);
_3e.animate=_41;
};
};
function _37(_42){
var _43=$.data(_42,"accordion").panels;
for(var i=0;i<_43.length;i++){
_43[i].stop(true,true);
}
};
function add(_44,_45){
var _46=$.data(_44,"accordion");
var _47=_46.options;
var _48=_46.panels;
if(_45.selected==undefined){
_45.selected=true;
}
_37(_44);
var pp=$("<div></div>").appendTo(_44);
_48.push(pp);
_28(_44,pp,_45);
_1(_44);
_47.onAdd.call(_44,_45.title,_48.length-1);
if(_45.selected){
_33(_44,_48.length-1);
}
};
function _49(_4a,_4b){
var _4c=$.data(_4a,"accordion");
var _4d=_4c.options;
var _4e=_4c.panels;
_37(_4a);
var _4f=_1c(_4a,_4b);
var _50=_4f.panel("options").title;
var _51=_19(_4a,_4f);
if(!_4f){
return;
}
if(_4d.onBeforeRemove.call(_4a,_50,_51)==false){
return;
}
_4e.splice(_51,1);
_4f.panel("destroy");
if(_4e.length){
_1(_4a);
var _52=_17(_4a);
if(!_52){
_33(_4a,0);
}
}
_4d.onRemove.call(_4a,_50,_51);
};
$.fn.accordion=function(_53,_54){
if(typeof _53=="string"){
return $.fn.accordion.methods[_53](this,_54);
}
_53=_53||{};
return this.each(function(){
var _55=$.data(this,"accordion");
if(_55){
$.extend(_55.options,_53);
}else{
$.data(this,"accordion",{options:$.extend({},$.fn.accordion.defaults,$.fn.accordion.parseOptions(this),_53),accordion:$(this).addClass("accordion"),panels:[]});
_23(this);
}
_20(this);
_1(this);
_3c(this);
});
};
$.fn.accordion.methods={options:function(jq){
return $.data(jq[0],"accordion").options;
},panels:function(jq){
return $.data(jq[0],"accordion").panels;
},resize:function(jq,_56){
return jq.each(function(){
_1(this,_56);
});
},getSelections:function(jq){
return _15(jq[0]);
},getSelected:function(jq){
return _17(jq[0]);
},getPanel:function(jq,_57){
return _1c(jq[0],_57);
},getPanelIndex:function(jq,_58){
return _19(jq[0],_58);
},select:function(jq,_59){
return jq.each(function(){
_33(this,_59);
});
},unselect:function(jq,_5a){
return jq.each(function(){
_34(this,_5a);
});
},add:function(jq,_5b){
return jq.each(function(){
add(this,_5b);
});
},remove:function(jq,_5c){
return jq.each(function(){
_49(this,_5c);
});
}};
$.fn.accordion.parseOptions=function(_5d){
var t=$(_5d);
return $.extend({},$.parser.parseOptions(_5d,["width","height","halign",{fit:"boolean",border:"boolean",animate:"boolean",multiple:"boolean",selected:"number"}]));
};
$.fn.accordion.defaults={width:"auto",height:"auto",fit:false,border:true,animate:true,multiple:false,selected:0,halign:"top",onSelect:function(_5e,_5f){
},onUnselect:function(_60,_61){
},onAdd:function(_62,_63){
},onBeforeRemove:function(_64,_65){
},onRemove:function(_66,_67){
}};
})(jQuery);

View File

@@ -0,0 +1,403 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2,_3){
var _4=$.data(_2,"calendar").options;
var t=$(_2);
if(_3){
$.extend(_4,{width:_3.width,height:_3.height});
}
t._size(_4,t.parent());
t.find(".calendar-body")._outerHeight(t.height()-t.find(".calendar-header")._outerHeight());
if(t.find(".calendar-menu").is(":visible")){
_5(_2);
}
};
function _6(_7){
$(_7).addClass("calendar").html("<div class=\"calendar-header\">"+"<div class=\"calendar-nav calendar-prevmonth\"></div>"+"<div class=\"calendar-nav calendar-nextmonth\"></div>"+"<div class=\"calendar-nav calendar-prevyear\"></div>"+"<div class=\"calendar-nav calendar-nextyear\"></div>"+"<div class=\"calendar-title\">"+"<span class=\"calendar-text\"></span>"+"</div>"+"</div>"+"<div class=\"calendar-body\">"+"<div class=\"calendar-menu\">"+"<div class=\"calendar-menu-year-inner\">"+"<span class=\"calendar-nav calendar-menu-prev\"></span>"+"<span><input class=\"calendar-menu-year\" type=\"text\"></span>"+"<span class=\"calendar-nav calendar-menu-next\"></span>"+"</div>"+"<div class=\"calendar-menu-month-inner\">"+"</div>"+"</div>"+"</div>");
$(_7)._bind("_resize",function(e,_8){
if($(this).hasClass("easyui-fluid")||_8){
_1(_7);
}
return false;
});
};
function _9(_a){
var _b=$.data(_a,"calendar").options;
var _c=$(_a).find(".calendar-menu");
_c.find(".calendar-menu-year")._unbind(".calendar")._bind("keypress.calendar",function(e){
if(e.keyCode==13){
_d(true);
}
});
$(_a)._unbind(".calendar")._bind("mouseover.calendar",function(e){
var t=_e(e.target);
if(t.hasClass("calendar-nav")||t.hasClass("calendar-text")||(t.hasClass("calendar-day")&&!t.hasClass("calendar-disabled"))){
t.addClass("calendar-nav-hover");
}
})._bind("mouseout.calendar",function(e){
var t=_e(e.target);
if(t.hasClass("calendar-nav")||t.hasClass("calendar-text")||(t.hasClass("calendar-day")&&!t.hasClass("calendar-disabled"))){
t.removeClass("calendar-nav-hover");
}
})._bind("click.calendar",function(e){
var t=_e(e.target);
if(t.hasClass("calendar-menu-next")||t.hasClass("calendar-nextyear")){
_f(1);
}else{
if(t.hasClass("calendar-menu-prev")||t.hasClass("calendar-prevyear")){
_f(-1);
}else{
if(t.hasClass("calendar-menu-month")){
_c.find(".calendar-selected").removeClass("calendar-selected");
t.addClass("calendar-selected");
_d(true);
}else{
if(t.hasClass("calendar-prevmonth")){
_10(-1);
}else{
if(t.hasClass("calendar-nextmonth")){
_10(1);
}else{
if(t.hasClass("calendar-text")){
if(_c.is(":visible")){
_c.hide();
}else{
_5(_a);
}
}else{
if(t.hasClass("calendar-day")){
if(t.hasClass("calendar-disabled")){
return;
}
var _11=_b.current;
t.closest("div.calendar-body").find(".calendar-selected").removeClass("calendar-selected");
t.addClass("calendar-selected");
var _12=t.attr("abbr").split(",");
var y=parseInt(_12[0]);
var m=parseInt(_12[1]);
var d=parseInt(_12[2]);
_b.current=new _b.Date(y,m-1,d);
_b.onSelect.call(_a,_b.current);
if(!_11||_11.getTime()!=_b.current.getTime()){
_b.onChange.call(_a,_b.current,_11);
}
if(_b.year!=y||_b.month!=m){
_b.year=y;
_b.month=m;
_19(_a);
}
}
}
}
}
}
}
}
});
function _e(t){
var day=$(t).closest(".calendar-day");
if(day.length){
return day;
}else{
return $(t);
}
};
function _d(_13){
var _14=$(_a).find(".calendar-menu");
var _15=_14.find(".calendar-menu-year").val();
var _16=_14.find(".calendar-selected").attr("abbr");
if(!isNaN(_15)){
_b.year=parseInt(_15);
_b.month=parseInt(_16);
_19(_a);
}
if(_13){
_14.hide();
}
};
function _f(_17){
_b.year+=_17;
_19(_a);
_c.find(".calendar-menu-year").val(_b.year);
};
function _10(_18){
_b.month+=_18;
if(_b.month>12){
_b.year++;
_b.month=1;
}else{
if(_b.month<1){
_b.year--;
_b.month=12;
}
}
_19(_a);
_c.find("td.calendar-selected").removeClass("calendar-selected");
_c.find("td:eq("+(_b.month-1)+")").addClass("calendar-selected");
};
};
function _5(_1a){
var _1b=$.data(_1a,"calendar").options;
$(_1a).find(".calendar-menu").show();
if($(_1a).find(".calendar-menu-month-inner").is(":empty")){
$(_1a).find(".calendar-menu-month-inner").empty();
var t=$("<table class=\"calendar-mtable\"></table>").appendTo($(_1a).find(".calendar-menu-month-inner"));
var idx=0;
for(var i=0;i<3;i++){
var tr=$("<tr></tr>").appendTo(t);
for(var j=0;j<4;j++){
$("<td class=\"calendar-nav calendar-menu-month\"></td>").html(_1b.months[idx++]).attr("abbr",idx).appendTo(tr);
}
}
}
var _1c=$(_1a).find(".calendar-body");
var _1d=$(_1a).find(".calendar-menu");
var _1e=_1d.find(".calendar-menu-year-inner");
var _1f=_1d.find(".calendar-menu-month-inner");
_1e.find("input").val(_1b.year).focus();
_1f.find("td.calendar-selected").removeClass("calendar-selected");
_1f.find("td:eq("+(_1b.month-1)+")").addClass("calendar-selected");
_1d._outerWidth(_1c._outerWidth());
_1d._outerHeight(_1c._outerHeight());
_1f._outerHeight(_1d.height()-_1e._outerHeight());
};
function _20(_21,_22,_23){
var _24=$.data(_21,"calendar").options;
var _25=[];
var _26=new _24.Date(_22,_23,0).getDate();
for(var i=1;i<=_26;i++){
_25.push([_22,_23,i]);
}
var _27=[],_28=[];
var _29=-1;
while(_25.length>0){
var _2a=_25.shift();
_28.push(_2a);
var day=new _24.Date(_2a[0],_2a[1]-1,_2a[2]).getDay();
if(_29==day){
day=0;
}else{
if(day==(_24.firstDay==0?7:_24.firstDay)-1){
_27.push(_28);
_28=[];
}
}
_29=day;
}
if(_28.length){
_27.push(_28);
}
var _2b=_27[0];
if(_2b.length<7){
while(_2b.length<7){
var _2c=_2b[0];
var _2a=new _24.Date(_2c[0],_2c[1]-1,_2c[2]-1);
_2b.unshift([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]);
}
}else{
var _2c=_2b[0];
var _28=[];
for(var i=1;i<=7;i++){
var _2a=new _24.Date(_2c[0],_2c[1]-1,_2c[2]-i);
_28.unshift([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]);
}
_27.unshift(_28);
}
var _2d=_27[_27.length-1];
while(_2d.length<7){
var _2e=_2d[_2d.length-1];
var _2a=new _24.Date(_2e[0],_2e[1]-1,_2e[2]+1);
_2d.push([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]);
}
if(_27.length<6){
var _2e=_2d[_2d.length-1];
var _28=[];
for(var i=1;i<=7;i++){
var _2a=new _24.Date(_2e[0],_2e[1]-1,_2e[2]+i);
_28.push([_2a.getFullYear(),_2a.getMonth()+1,_2a.getDate()]);
}
_27.push(_28);
}
return _27;
};
function _19(_2f){
var _30=$.data(_2f,"calendar").options;
if(_30.current&&!_30.validator.call(_2f,_30.current)){
_30.current=null;
}
var now=new _30.Date();
var _31=now.getFullYear()+","+(now.getMonth()+1)+","+now.getDate();
var _32=_30.current?(_30.current.getFullYear()+","+(_30.current.getMonth()+1)+","+_30.current.getDate()):"";
var _33=6-_30.firstDay;
var _34=_33+1;
if(_33>=7){
_33-=7;
}
if(_34>=7){
_34-=7;
}
$(_2f).find(".calendar-title span").html(_30.months[_30.month-1]+" "+_30.year);
var _35=$(_2f).find("div.calendar-body");
_35.children("table").remove();
var _36=["<table class=\"calendar-dtable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"];
_36.push("<thead><tr>");
if(_30.showWeek){
_36.push("<th class=\"calendar-week\">"+_30.weekNumberHeader+"</th>");
}
for(var i=_30.firstDay;i<_30.weeks.length;i++){
_36.push("<th>"+_30.weeks[i]+"</th>");
}
for(var i=0;i<_30.firstDay;i++){
_36.push("<th>"+_30.weeks[i]+"</th>");
}
_36.push("</tr></thead>");
_36.push("<tbody>");
var _37=_20(_2f,_30.year,_30.month);
for(var i=0;i<_37.length;i++){
var _38=_37[i];
var cls="";
if(i==0){
cls="calendar-first";
}else{
if(i==_37.length-1){
cls="calendar-last";
}
}
_36.push("<tr class=\""+cls+"\">");
if(_30.showWeek){
var _39=_30.getWeekNumber(new _30.Date(_38[0][0],parseInt(_38[0][1])-1,_38[0][2]));
_36.push("<td class=\"calendar-week\">"+_39+"</td>");
}
for(var j=0;j<_38.length;j++){
var day=_38[j];
var s=day[0]+","+day[1]+","+day[2];
var _3a=new _30.Date(day[0],parseInt(day[1])-1,day[2]);
var d=_30.formatter.call(_2f,_3a);
var css=_30.styler.call(_2f,_3a);
var _3b="";
var _3c="";
if(typeof css=="string"){
_3c=css;
}else{
if(css){
_3b=css["class"]||"";
_3c=css["style"]||"";
}
}
var cls="calendar-day";
if(!(_30.year==day[0]&&_30.month==day[1])){
cls+=" calendar-other-month";
}
if(s==_31){
cls+=" calendar-today";
}
if(s==_32){
cls+=" calendar-selected";
}
if(j==_33){
cls+=" calendar-saturday";
}else{
if(j==_34){
cls+=" calendar-sunday";
}
}
if(j==0){
cls+=" calendar-first";
}else{
if(j==_38.length-1){
cls+=" calendar-last";
}
}
cls+=" "+_3b;
if(!_30.validator.call(_2f,_3a)){
cls+=" calendar-disabled";
}
_36.push("<td class=\""+cls+"\" abbr=\""+s+"\" style=\""+_3c+"\">"+d+"</td>");
}
_36.push("</tr>");
}
_36.push("</tbody>");
_36.push("</table>");
_35.append(_36.join(""));
_35.children("table.calendar-dtable").prependTo(_35);
_30.onNavigate.call(_2f,_30.year,_30.month);
};
$.fn.calendar=function(_3d,_3e){
if(typeof _3d=="string"){
return $.fn.calendar.methods[_3d](this,_3e);
}
_3d=_3d||{};
return this.each(function(){
var _3f=$.data(this,"calendar");
if(_3f){
$.extend(_3f.options,_3d);
}else{
_3f=$.data(this,"calendar",{options:$.extend({},$.fn.calendar.defaults,$.fn.calendar.parseOptions(this),_3d)});
_6(this);
}
if(_3f.options.border==false){
$(this).addClass("calendar-noborder");
}
_1(this);
_9(this);
_19(this);
$(this).find("div.calendar-menu").hide();
});
};
$.fn.calendar.methods={options:function(jq){
return $.data(jq[0],"calendar").options;
},resize:function(jq,_40){
return jq.each(function(){
_1(this,_40);
});
},moveTo:function(jq,_41){
return jq.each(function(){
var _42=$(this).calendar("options");
if(!_41){
var now=new _42.Date();
$(this).calendar({year:now.getFullYear(),month:now.getMonth()+1,current:_41});
return;
}
if(_42.validator.call(this,_41)){
var _43=_42.current;
$(this).calendar({year:_41.getFullYear(),month:_41.getMonth()+1,current:_41});
if(!_43||_43.getTime()!=_41.getTime()){
_42.onChange.call(this,_42.current,_43);
}
}
});
}};
$.fn.calendar.parseOptions=function(_44){
var t=$(_44);
return $.extend({},$.parser.parseOptions(_44,["weekNumberHeader",{firstDay:"number",fit:"boolean",border:"boolean",showWeek:"boolean"}]));
};
$.fn.calendar.defaults={Date:Date,width:180,height:180,fit:false,border:true,showWeek:false,firstDay:0,weeks:["S","M","T","W","T","F","S"],months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],year:new Date().getFullYear(),month:new Date().getMonth()+1,current:(function(){
var d=new Date();
return new Date(d.getFullYear(),d.getMonth(),d.getDate());
})(),weekNumberHeader:"",getWeekNumber:function(_45){
var _46=new Date(_45.getTime());
_46.setDate(_46.getDate()+4-(_46.getDay()||7));
var _47=_46.getTime();
_46.setMonth(0);
_46.setDate(1);
return Math.floor(Math.round((_47-_46)/86400000)/7)+1;
},formatter:function(_48){
return _48.getDate();
},styler:function(_49){
return "";
},validator:function(_4a){
return true;
},onSelect:function(_4b){
},onChange:function(_4c,_4d){
},onNavigate:function(_4e,_4f){
}};
})(jQuery);

View File

@@ -0,0 +1,190 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
var _1=1;
function _2(_3){
var _4=$("<span class=\"checkbox inputbox\">"+"<span class=\"checkbox-inner\">"+"<svg xml:space=\"preserve\" focusable=\"false\" version=\"1.1\" viewBox=\"0 0 24 24\"><path d=\"M4.1,12.7 9,17.6 20.3,6.3\" fill=\"none\" stroke=\"white\"></path></svg>"+"</span>"+"<input type=\"checkbox\" class=\"checkbox-value\">"+"</span>").insertAfter(_3);
var t=$(_3);
t.addClass("checkbox-f").hide();
var _5=t.attr("name");
if(_5){
t.removeAttr("name").attr("checkboxName",_5);
_4.find(".checkbox-value").attr("name",_5);
}
return _4;
};
function _6(_7){
var _8=$.data(_7,"checkbox");
var _9=_8.options;
var _a=_8.checkbox;
var _b="_easyui_checkbox_"+(++_1);
var _c=_a.find(".checkbox-value").attr("id",_b);
_c._unbind(".checkbox")._bind("change.checkbox",function(e){
return false;
});
if(_9.label){
if(typeof _9.label=="object"){
_8.label=$(_9.label);
_8.label.attr("for",_b);
}else{
$(_8.label).remove();
_8.label=$("<label class=\"textbox-label\"></label>").html(_9.label);
_8.label.css("textAlign",_9.labelAlign).attr("for",_b);
if(_9.labelPosition=="after"){
_8.label.insertAfter(_a);
}else{
_8.label.insertBefore(_7);
}
_8.label.removeClass("textbox-label-left textbox-label-right textbox-label-top");
_8.label.addClass("textbox-label-"+_9.labelPosition);
}
}else{
$(_8.label).remove();
}
$(_7).checkbox("setValue",_9.value);
_d(_7,_9.checked);
_e(_7,_9.readonly);
_f(_7,_9.disabled);
};
function _10(_11){
var _12=$.data(_11,"checkbox");
var _13=_12.options;
var _14=_12.checkbox;
_14._unbind(".checkbox")._bind("click.checkbox",function(){
if(!_13.disabled&&!_13.readonly){
_d(_11,!_13.checked);
}
});
};
function _15(_16){
var _17=$.data(_16,"checkbox");
var _18=_17.options;
var _19=_17.checkbox;
_19._size(_18,_19.parent());
if(_18.label&&_18.labelPosition){
if(_18.labelPosition=="top"){
_17.label._size({width:_18.labelWidth},_19);
}else{
_17.label._size({width:_18.labelWidth,height:_19.outerHeight()},_19);
_17.label.css("lineHeight",_19.outerHeight()+"px");
}
}
};
function _d(_1a,_1b){
var _1c=$.data(_1a,"checkbox");
var _1d=_1c.options;
var _1e=_1c.checkbox;
_1e.find(".checkbox-value")._propAttr("checked",_1b);
var _1f=_1e.find(".checkbox-inner").css("display",_1b?"":"none");
if(_1b){
_1e.addClass("checkbox-checked");
$(_1c.label).addClass("textbox-label-checked");
}else{
_1e.removeClass("checkbox-checked");
$(_1c.label).removeClass("textbox-label-checked");
}
if(_1d.checked!=_1b){
_1d.checked=_1b;
_1d.onChange.call(_1a,_1b);
$(_1a).closest("form").trigger("_change",[_1a]);
}
};
function _e(_20,_21){
var _22=$.data(_20,"checkbox");
var _23=_22.options;
_23.readonly=_21==undefined?true:_21;
if(_23.readonly){
_22.checkbox.addClass("checkbox-readonly");
$(_22.label).addClass("textbox-label-readonly");
}else{
_22.checkbox.removeClass("checkbox-readonly");
$(_22.label).removeClass("textbox-label-readonly");
}
};
function _f(_24,_25){
var _26=$.data(_24,"checkbox");
var _27=_26.options;
var _28=_26.checkbox;
var rv=_28.find(".checkbox-value");
_27.disabled=_25;
if(_25){
$(_24).add(rv)._propAttr("disabled",true);
_28.addClass("checkbox-disabled");
$(_26.label).addClass("textbox-label-disabled");
}else{
$(_24).add(rv)._propAttr("disabled",false);
_28.removeClass("checkbox-disabled");
$(_26.label).removeClass("textbox-label-disabled");
}
};
$.fn.checkbox=function(_29,_2a){
if(typeof _29=="string"){
return $.fn.checkbox.methods[_29](this,_2a);
}
_29=_29||{};
return this.each(function(){
var _2b=$.data(this,"checkbox");
if(_2b){
$.extend(_2b.options,_29);
}else{
_2b=$.data(this,"checkbox",{options:$.extend({},$.fn.checkbox.defaults,$.fn.checkbox.parseOptions(this),_29),checkbox:_2(this)});
}
_2b.options.originalChecked=_2b.options.checked;
_6(this);
_10(this);
_15(this);
});
};
$.fn.checkbox.methods={options:function(jq){
var _2c=jq.data("checkbox");
return $.extend(_2c.options,{value:_2c.checkbox.find(".checkbox-value").val()});
},setValue:function(jq,_2d){
return jq.each(function(){
$(this).val(_2d);
$.data(this,"checkbox").checkbox.find(".checkbox-value").val(_2d);
});
},enable:function(jq){
return jq.each(function(){
_f(this,false);
});
},disable:function(jq){
return jq.each(function(){
_f(this,true);
});
},readonly:function(jq,_2e){
return jq.each(function(){
_e(this,_2e);
});
},check:function(jq){
return jq.each(function(){
_d(this,true);
});
},uncheck:function(jq){
return jq.each(function(){
_d(this,false);
});
},clear:function(jq){
return jq.each(function(){
_d(this,false);
});
},reset:function(jq){
return jq.each(function(){
var _2f=$(this).checkbox("options");
_d(this,_2f.originalChecked);
});
}};
$.fn.checkbox.parseOptions=function(_30){
var t=$(_30);
return $.extend({},$.parser.parseOptions(_30,["label","labelPosition","labelAlign",{labelWidth:"number"}]),{value:(t.val()||undefined),checked:(t.attr("checked")?true:undefined),disabled:(t.attr("disabled")?true:undefined),readonly:(t.attr("readonly")?true:undefined)});
};
$.fn.checkbox.defaults={width:20,height:20,value:null,disabled:false,readonly:false,checked:false,label:null,labelWidth:"auto",labelPosition:"before",labelAlign:"left",onChange:function(_31){
}};
})(jQuery);

View File

@@ -0,0 +1,414 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
$(function(){
$(document)._unbind(".combo")._bind("mousedown.combo mousewheel.combo",function(e){
var p=$(e.target).closest("span.combo,div.combo-p,div.menu");
if(p.length){
_1(p);
return;
}
$("body>div.combo-p>div.combo-panel:visible").panel("close");
});
});
function _2(_3){
var _4=$.data(_3,"combo");
var _5=_4.options;
if(!_4.panel){
_4.panel=$("<div class=\"combo-panel\"></div>").appendTo("html>body");
_4.panel.panel({minWidth:_5.panelMinWidth,maxWidth:_5.panelMaxWidth,minHeight:_5.panelMinHeight,maxHeight:_5.panelMaxHeight,doSize:false,closed:true,cls:"combo-p",style:{position:"absolute",zIndex:10},onOpen:function(){
var _6=$(this).panel("options").comboTarget;
var _7=$.data(_6,"combo");
if(_7){
_7.options.onShowPanel.call(_6);
}
},onBeforeClose:function(){
_1($(this).parent());
},onClose:function(){
var _8=$(this).panel("options").comboTarget;
var _9=$(_8).data("combo");
if(_9){
_9.options.onHidePanel.call(_8);
}
}});
}
var _a=$.extend(true,[],_5.icons);
if(_5.hasDownArrow){
_a.push({iconCls:"combo-arrow",handler:function(e){
_10(e.data.target);
}});
}
$(_3).addClass("combo-f").textbox($.extend({},_5,{icons:_a,onChange:function(){
}}));
$(_3).attr("comboName",$(_3).attr("textboxName"));
_4.combo=$(_3).next();
_4.combo.addClass("combo");
_4.panel._unbind(".combo");
for(var _b in _5.panelEvents){
_4.panel._bind(_b+".combo",{target:_3},_5.panelEvents[_b]);
}
};
function _c(_d){
var _e=$.data(_d,"combo");
var _f=_e.options;
var p=_e.panel;
if(p.is(":visible")){
p.panel("close");
}
if(!_f.cloned){
p.panel("destroy");
}
$(_d).textbox("destroy");
};
function _10(_11){
var _12=$.data(_11,"combo").panel;
if(_12.is(":visible")){
var _13=_12.combo("combo");
_14(_13);
if(_13!=_11){
$(_11).combo("showPanel");
}
}else{
var p=$(_11).closest("div.combo-p").children(".combo-panel");
$("div.combo-panel:visible").not(_12).not(p).panel("close");
$(_11).combo("showPanel");
}
$(_11).combo("textbox").focus();
};
function _1(_15){
$(_15).find(".combo-f").each(function(){
var p=$(this).combo("panel");
if(p.is(":visible")){
p.panel("close");
}
});
};
function _16(e){
var _17=e.data.target;
var _18=$.data(_17,"combo");
var _19=_18.options;
if(!_19.editable){
_10(_17);
}else{
var p=$(_17).closest("div.combo-p").children(".combo-panel");
$("div.combo-panel:visible").not(p).each(function(){
var _1a=$(this).combo("combo");
if(_1a!=_17){
_14(_1a);
}
});
}
};
function _1b(e){
var _1c=e.data.target;
var t=$(_1c);
var _1d=t.data("combo");
var _1e=t.combo("options");
_1d.panel.panel("options").comboTarget=_1c;
switch(e.keyCode){
case 38:
_1e.keyHandler.up.call(_1c,e);
break;
case 40:
_1e.keyHandler.down.call(_1c,e);
break;
case 37:
_1e.keyHandler.left.call(_1c,e);
break;
case 39:
_1e.keyHandler.right.call(_1c,e);
break;
case 13:
e.preventDefault();
_1e.keyHandler.enter.call(_1c,e);
return false;
case 9:
case 27:
_14(_1c);
break;
default:
if(_1e.editable){
if(_1d.timer){
clearTimeout(_1d.timer);
}
_1d.timer=setTimeout(function(){
var q=t.combo("getText");
if(_1d.previousText!=q){
_1d.previousText=q;
t.combo("showPanel");
_1e.keyHandler.query.call(_1c,q,e);
t.combo("validate");
}
},_1e.delay);
}
}
};
function _1f(e){
var _20=e.data.target;
var _21=$(_20).data("combo");
if(_21.timer){
clearTimeout(_21.timer);
}
};
function _22(_23){
var _24=$.data(_23,"combo");
var _25=_24.combo;
var _26=_24.panel;
var _27=$(_23).combo("options");
var _28=_26.panel("options");
_28.comboTarget=_23;
if(_28.closed){
_26.panel("panel").show().css({zIndex:($.fn.menu?$.fn.menu.defaults.zIndex++:($.fn.window?$.fn.window.defaults.zIndex++:99)),left:-999999});
_26.panel("resize",{width:(_27.panelWidth?_27.panelWidth:_25._outerWidth()),height:_27.panelHeight});
_26.panel("panel").hide();
_26.panel("open");
}
(function(){
if(_28.comboTarget==_23&&_26.is(":visible")){
_26.panel("move",{left:_29(),top:_2a()});
setTimeout(arguments.callee,200);
}
})();
function _29(){
var _2b=_25.offset().left;
if(_27.panelAlign=="right"){
_2b+=_25._outerWidth()-_26._outerWidth();
}
if(_2b+_26._outerWidth()>$(window)._outerWidth()+$(document).scrollLeft()){
_2b=$(window)._outerWidth()+$(document).scrollLeft()-_26._outerWidth();
}
if(_2b<0){
_2b=0;
}
return _2b;
};
function _2a(){
if(_27.panelValign=="top"){
var top=_25.offset().top-_26._outerHeight();
}else{
if(_27.panelValign=="bottom"){
var top=_25.offset().top+_25._outerHeight();
}else{
var top=_25.offset().top+_25._outerHeight();
if(top+_26._outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){
top=_25.offset().top-_26._outerHeight();
}
if(top<$(document).scrollTop()){
top=_25.offset().top+_25._outerHeight();
}
}
}
return top;
};
};
function _14(_2c){
var _2d=$.data(_2c,"combo").panel;
_2d.panel("close");
};
function _2e(_2f,_30){
var _31=$.data(_2f,"combo");
var _32=$(_2f).textbox("getText");
if(_32!=_30){
$(_2f).textbox("setText",_30);
}
_31.previousText=_30;
};
function _33(_34){
var _35=$.data(_34,"combo");
var _36=_35.options;
var _37=$(_34).next();
var _38=[];
_37.find(".textbox-value").each(function(){
_38.push($(this).val());
});
if(_36.multivalue){
return _38;
}else{
return _38.length?_38[0].split(_36.separator):_38;
}
};
function _39(_3a,_3b){
var _3c=$.data(_3a,"combo");
var _3d=_3c.combo;
var _3e=$(_3a).combo("options");
if(!$.isArray(_3b)){
_3b=_3b.split(_3e.separator);
}
var _3f=_33(_3a);
_3d.find(".textbox-value").remove();
if(_3b.length){
if(_3e.multivalue){
for(var i=0;i<_3b.length;i++){
_40(_3b[i]);
}
}else{
_40(_3b.join(_3e.separator));
}
}
function _40(_41){
var _42=$(_3a).attr("textboxName")||"";
var _43=$("<input type=\"hidden\" class=\"textbox-value\">").appendTo(_3d);
_43.attr("name",_42);
if(_3e.disabled){
_43.attr("disabled","disabled");
}
_43.val(_41);
};
var _44=(function(){
if(_3e.onChange==$.parser.emptyFn){
return false;
}
if(_3f.length!=_3b.length){
return true;
}
for(var i=0;i<_3b.length;i++){
if(_3b[i]!=_3f[i]){
return true;
}
}
return false;
})();
if(_44){
$(_3a).val(_3b.join(_3e.separator));
if(_3e.multiple){
_3e.onChange.call(_3a,_3b,_3f);
}else{
_3e.onChange.call(_3a,_3b[0],_3f[0]);
}
$(_3a).closest("form").trigger("_change",[_3a]);
}
};
function _45(_46){
var _47=_33(_46);
return _47[0];
};
function _48(_49,_4a){
_39(_49,[_4a]);
};
function _4b(_4c){
var _4d=$.data(_4c,"combo").options;
var _4e=_4d.onChange;
_4d.onChange=$.parser.emptyFn;
if(_4d.multiple){
_39(_4c,_4d.value?_4d.value:[]);
}else{
_48(_4c,_4d.value);
}
_4d.onChange=_4e;
};
$.fn.combo=function(_4f,_50){
if(typeof _4f=="string"){
var _51=$.fn.combo.methods[_4f];
if(_51){
return _51(this,_50);
}else{
return this.textbox(_4f,_50);
}
}
_4f=_4f||{};
return this.each(function(){
var _52=$.data(this,"combo");
if(_52){
$.extend(_52.options,_4f);
if(_4f.value!=undefined){
_52.options.originalValue=_4f.value;
}
}else{
_52=$.data(this,"combo",{options:$.extend({},$.fn.combo.defaults,$.fn.combo.parseOptions(this),_4f),previousText:""});
if(_52.options.multiple&&_52.options.value==""){
_52.options.originalValue=[];
}else{
_52.options.originalValue=_52.options.value;
}
}
_2(this);
_4b(this);
});
};
$.fn.combo.methods={options:function(jq){
var _53=jq.textbox("options");
return $.extend($.data(jq[0],"combo").options,{width:_53.width,height:_53.height,disabled:_53.disabled,readonly:_53.readonly});
},cloneFrom:function(jq,_54){
return jq.each(function(){
$(this).textbox("cloneFrom",_54);
$.data(this,"combo",{options:$.extend(true,{cloned:true},$(_54).combo("options")),combo:$(this).next(),panel:$(_54).combo("panel")});
$(this).addClass("combo-f").attr("comboName",$(this).attr("textboxName"));
});
},combo:function(jq){
return jq.closest(".combo-panel").panel("options").comboTarget;
},panel:function(jq){
return $.data(jq[0],"combo").panel;
},destroy:function(jq){
return jq.each(function(){
_c(this);
});
},showPanel:function(jq){
return jq.each(function(){
_22(this);
});
},hidePanel:function(jq){
return jq.each(function(){
_14(this);
});
},clear:function(jq){
return jq.each(function(){
$(this).textbox("setText","");
var _55=$.data(this,"combo").options;
if(_55.multiple){
$(this).combo("setValues",[]);
}else{
$(this).combo("setValue","");
}
});
},reset:function(jq){
return jq.each(function(){
var _56=$.data(this,"combo").options;
if(_56.multiple){
$(this).combo("setValues",_56.originalValue);
}else{
$(this).combo("setValue",_56.originalValue);
}
});
},setText:function(jq,_57){
return jq.each(function(){
_2e(this,_57);
});
},getValues:function(jq){
return _33(jq[0]);
},setValues:function(jq,_58){
return jq.each(function(){
_39(this,_58);
});
},getValue:function(jq){
return _45(jq[0]);
},setValue:function(jq,_59){
return jq.each(function(){
_48(this,_59);
});
}};
$.fn.combo.parseOptions=function(_5a){
var t=$(_5a);
return $.extend({},$.fn.textbox.parseOptions(_5a),$.parser.parseOptions(_5a,["separator","panelAlign",{panelWidth:"number",hasDownArrow:"boolean",delay:"number",reversed:"boolean",multivalue:"boolean",selectOnNavigation:"boolean"},{panelMinWidth:"number",panelMaxWidth:"number",panelMinHeight:"number",panelMaxHeight:"number"}]),{panelHeight:(t.attr("panelHeight")=="auto"?"auto":parseInt(t.attr("panelHeight"))||undefined),multiple:(t.attr("multiple")?true:undefined)});
};
$.fn.combo.defaults=$.extend({},$.fn.textbox.defaults,{inputEvents:{click:_16,keydown:_1b,paste:_1b,drop:_1b,blur:_1f},panelEvents:{mousedown:function(e){
e.preventDefault();
e.stopPropagation();
}},panelWidth:null,panelHeight:300,panelMinWidth:null,panelMaxWidth:null,panelMinHeight:null,panelMaxHeight:null,panelAlign:"left",panelValign:"auto",reversed:false,multiple:false,multivalue:true,selectOnNavigation:true,separator:",",hasDownArrow:true,delay:200,keyHandler:{up:function(e){
},down:function(e){
},left:function(e){
},right:function(e){
},enter:function(e){
},query:function(q,e){
}},onShowPanel:function(){
},onHidePanel:function(){
},onChange:function(_5b,_5c){
}});
})(jQuery);

View File

@@ -0,0 +1,612 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2,_3){
var _4=$.data(_2,"combobox");
return $.easyui.indexOfArray(_4.data,_4.options.valueField,_3);
};
function _5(_6,_7){
var _8=$.data(_6,"combobox").options;
var _9=$(_6).combo("panel");
var _a=_8.finder.getEl(_6,_7);
if(_a.length){
if(_a.position().top<=0){
var h=_9.scrollTop()+_a.position().top;
_9.scrollTop(h);
}else{
if(_a.position().top+_a.outerHeight()>_9.height()){
var h=_9.scrollTop()+_a.position().top+_a.outerHeight()-_9.height();
_9.scrollTop(h);
}
}
}
_9.triggerHandler("scroll");
};
function _b(_c,_d){
var _e=$.data(_c,"combobox").options;
var _f=$(_c).combobox("panel");
var _10=_f.children("div.combobox-item-hover");
if(!_10.length){
_10=_f.children("div.combobox-item-selected");
}
_10.removeClass("combobox-item-hover");
var _11="div.combobox-item:visible:not(.combobox-item-disabled):first";
var _12="div.combobox-item:visible:not(.combobox-item-disabled):last";
if(!_10.length){
_10=_f.children(_d=="next"?_11:_12);
}else{
if(_d=="next"){
_10=_10.nextAll(_11);
if(!_10.length){
_10=_f.children(_11);
}
}else{
_10=_10.prevAll(_11);
if(!_10.length){
_10=_f.children(_12);
}
}
}
if(_10.length){
_10.addClass("combobox-item-hover");
var row=_e.finder.getRow(_c,_10);
if(row){
$(_c).combobox("scrollTo",row[_e.valueField]);
if(_e.selectOnNavigation){
_13(_c,row[_e.valueField]);
}
}
}
};
function _13(_14,_15,_16){
var _17=$.data(_14,"combobox").options;
var _18=$(_14).combo("getValues");
if($.inArray(_15+"",_18)==-1){
if(_17.multiple){
_18.push(_15);
}else{
_18=[_15];
}
_19(_14,_18,_16);
}
};
function _1a(_1b,_1c){
var _1d=$.data(_1b,"combobox").options;
var _1e=$(_1b).combo("getValues");
var _1f=$.inArray(_1c+"",_1e);
if(_1f>=0){
_1e.splice(_1f,1);
_19(_1b,_1e);
}
};
function _19(_20,_21,_22){
var _23=$.data(_20,"combobox").options;
var _24=$(_20).combo("panel");
if(!$.isArray(_21)){
_21=_21.split(_23.separator);
}
if(!_23.multiple){
_21=_21.length?[_21[0]]:[""];
}
var _25=$(_20).combo("getValues");
if(_24.is(":visible")){
_24.find(".combobox-item-selected").each(function(){
var row=_23.finder.getRow(_20,$(this));
if(row){
if($.easyui.indexOfArray(_25,row[_23.valueField])==-1){
$(this).removeClass("combobox-item-selected");
}
}
});
}
$.map(_25,function(v){
if($.easyui.indexOfArray(_21,v)==-1){
var el=_23.finder.getEl(_20,v);
if(el.hasClass("combobox-item-selected")){
el.removeClass("combobox-item-selected");
_23.onUnselect.call(_20,_23.finder.getRow(_20,v));
}
}
});
var _26=null;
var vv=[],ss=[];
for(var i=0;i<_21.length;i++){
var v=_21[i];
var s=v;
var row=_23.finder.getRow(_20,v);
if(row){
s=row[_23.textField];
_26=row;
var el=_23.finder.getEl(_20,v);
if(!el.hasClass("combobox-item-selected")){
el.addClass("combobox-item-selected");
_23.onSelect.call(_20,row);
}
}else{
s=_27(v,_23.mappingRows)||v;
}
vv.push(v);
ss.push(s);
}
if(!_22){
$(_20).combo("setText",ss.join(_23.separator));
}
if(_23.showItemIcon){
var tb=$(_20).combobox("textbox");
tb.removeClass("textbox-bgicon "+_23.textboxIconCls);
if(_26&&_26.iconCls){
tb.addClass("textbox-bgicon "+_26.iconCls);
_23.textboxIconCls=_26.iconCls;
}
}
$(_20).combo("setValues",vv);
_24.triggerHandler("scroll");
function _27(_28,a){
var _29=$.easyui.getArrayItem(a,_23.valueField,_28);
return _29?_29[_23.textField]:undefined;
};
};
function _2a(_2b,_2c,_2d){
var _2e=$.data(_2b,"combobox");
var _2f=_2e.options;
_2e.data=_2f.loadFilter.call(_2b,_2c);
_2f.view.render.call(_2f.view,_2b,$(_2b).combo("panel"),_2e.data);
var vv=$(_2b).combobox("getValues");
$.easyui.forEach(_2e.data,false,function(row){
if(row["selected"]){
$.easyui.addArrayItem(vv,row[_2f.valueField]+"");
}
});
if(_2f.multiple){
_19(_2b,vv,_2d);
}else{
_19(_2b,vv.length?[vv[vv.length-1]]:[],_2d);
}
_2f.onLoadSuccess.call(_2b,_2c);
};
function _30(_31,url,_32,_33){
var _34=$.data(_31,"combobox").options;
if(url){
_34.url=url;
}
_32=$.extend({},_34.queryParams,_32||{});
if(_34.onBeforeLoad.call(_31,_32)==false){
return;
}
_34.loader.call(_31,_32,function(_35){
_2a(_31,_35,_33);
},function(){
_34.onLoadError.apply(this,arguments);
});
};
function _36(_37,q){
var _38=$.data(_37,"combobox");
var _39=_38.options;
var _3a=$();
var qq=_39.multiple?q.split(_39.separator):[q];
if(_39.mode=="remote"){
_3b(qq);
_30(_37,null,{q:q},true);
}else{
var _3c=$(_37).combo("panel");
_3c.find(".combobox-item-hover").removeClass("combobox-item-hover");
_3c.find(".combobox-item,.combobox-group").hide();
var _3d=_38.data;
var vv=[];
$.map(qq,function(q){
q=$.trim(q);
var _3e=q;
var _3f=undefined;
_3a=$();
for(var i=0;i<_3d.length;i++){
var row=_3d[i];
if(_39.filter.call(_37,q,row)){
var v=row[_39.valueField];
var s=row[_39.textField];
var g=row[_39.groupField];
var _40=_39.finder.getEl(_37,v).show();
if(s.toLowerCase()==q.toLowerCase()){
_3e=v;
if(_39.reversed){
_3a=_40;
}else{
_13(_37,v,true);
}
}
if(_39.groupField&&_3f!=g){
_39.finder.getGroupEl(_37,g).show();
_3f=g;
}
}
}
vv.push(_3e);
});
_3b(vv);
}
function _3b(vv){
if(_39.reversed){
_3a.addClass("combobox-item-hover");
}else{
_19(_37,_39.multiple?(q?vv:[]):vv,true);
}
};
};
function _41(_42){
var t=$(_42);
var _43=t.combobox("options");
var _44=t.combobox("panel");
var _45=_44.children("div.combobox-item-hover");
if(_45.length){
_45.removeClass("combobox-item-hover");
var row=_43.finder.getRow(_42,_45);
var _46=row[_43.valueField];
if(_43.multiple){
if(_45.hasClass("combobox-item-selected")){
t.combobox("unselect",_46);
}else{
t.combobox("select",_46);
}
}else{
t.combobox("select",_46);
}
}
var vv=[];
$.map(t.combobox("getValues"),function(v){
if(_1(_42,v)>=0){
vv.push(v);
}
});
t.combobox("setValues",vv);
if(!_43.multiple){
t.combobox("hidePanel");
}
};
function _47(_48){
var _49=$.data(_48,"combobox");
var _4a=_49.options;
$(_48).addClass("combobox-f");
$(_48).combo($.extend({},_4a,{onShowPanel:function(){
$(this).combo("panel").find("div.combobox-item:hidden,div.combobox-group:hidden").show();
_19(this,$(this).combobox("getValues"),true);
$(this).combobox("scrollTo",$(this).combobox("getValue"));
_4a.onShowPanel.call(this);
}}));
};
function _4b(e){
$(this).children("div.combobox-item-hover").removeClass("combobox-item-hover");
var _4c=$(e.target).closest("div.combobox-item");
if(!_4c.hasClass("combobox-item-disabled")){
_4c.addClass("combobox-item-hover");
}
e.stopPropagation();
};
function _4d(e){
$(e.target).closest("div.combobox-item").removeClass("combobox-item-hover");
e.stopPropagation();
};
function _4e(e){
var _4f=$(this).panel("options").comboTarget;
if(!_4f){
return;
}
var _50=$(_4f).combobox("options");
var _51=$(e.target).closest("div.combobox-item");
if(!_51.length||_51.hasClass("combobox-item-disabled")){
return;
}
var row=_50.finder.getRow(_4f,_51);
if(!row){
return;
}
if(_50.blurTimer){
clearTimeout(_50.blurTimer);
_50.blurTimer=null;
}
_50.onClick.call(_4f,row);
var _52=row[_50.valueField];
if(_50.multiple){
if(_51.hasClass("combobox-item-selected")){
_1a(_4f,_52);
}else{
_13(_4f,_52);
}
}else{
$(_4f).combobox("setValue",_52).combobox("hidePanel");
}
e.stopPropagation();
};
function _53(e){
var _54=$(this).panel("options").comboTarget;
if(!_54){
return;
}
var _55=$(_54).combobox("options");
if(_55.groupPosition=="sticky"){
var _56=$(this).children(".combobox-stick");
if(!_56.length){
_56=$("<div class=\"combobox-stick\"></div>").appendTo(this);
}
_56.hide();
var _57=$(_54).data("combobox");
$(this).children(".combobox-group:visible").each(function(){
var g=$(this);
var _58=_55.finder.getGroup(_54,g);
var _59=_57.data[_58.startIndex+_58.count-1];
var _5a=_55.finder.getEl(_54,_59[_55.valueField]);
if(g.position().top<0&&_5a.position().top>0){
_56.show().html(g.html());
return false;
}
});
}
};
$.fn.combobox=function(_5b,_5c){
if(typeof _5b=="string"){
var _5d=$.fn.combobox.methods[_5b];
if(_5d){
return _5d(this,_5c);
}else{
return this.combo(_5b,_5c);
}
}
_5b=_5b||{};
return this.each(function(){
var _5e=$.data(this,"combobox");
if(_5e){
$.extend(_5e.options,_5b);
}else{
_5e=$.data(this,"combobox",{options:$.extend({},$.fn.combobox.defaults,$.fn.combobox.parseOptions(this),_5b),data:[]});
}
_47(this);
if(_5e.options.data){
_2a(this,_5e.options.data);
}else{
var _5f=$.fn.combobox.parseData(this);
if(_5f.length){
_2a(this,_5f);
}
}
_30(this);
});
};
$.fn.combobox.methods={options:function(jq){
var _60=jq.combo("options");
return $.extend($.data(jq[0],"combobox").options,{width:_60.width,height:_60.height,originalValue:_60.originalValue,disabled:_60.disabled,readonly:_60.readonly});
},cloneFrom:function(jq,_61){
return jq.each(function(){
$(this).combo("cloneFrom",_61);
$.data(this,"combobox",$(_61).data("combobox"));
$(this).addClass("combobox-f").attr("comboboxName",$(this).attr("textboxName"));
});
},getData:function(jq){
return $.data(jq[0],"combobox").data;
},setValues:function(jq,_62){
return jq.each(function(){
var _63=$(this).combobox("options");
if($.isArray(_62)){
_62=$.map(_62,function(_64){
if(_64&&typeof _64=="object"){
$.easyui.addArrayItem(_63.mappingRows,_63.valueField,_64);
return _64[_63.valueField];
}else{
return _64;
}
});
}
_19(this,_62);
});
},setValue:function(jq,_65){
return jq.each(function(){
$(this).combobox("setValues",$.isArray(_65)?_65:[_65]);
});
},clear:function(jq){
return jq.each(function(){
_19(this,[]);
});
},reset:function(jq){
return jq.each(function(){
var _66=$(this).combobox("options");
if(_66.multiple){
$(this).combobox("setValues",_66.originalValue);
}else{
$(this).combobox("setValue",_66.originalValue);
}
});
},loadData:function(jq,_67){
return jq.each(function(){
_2a(this,_67);
});
},reload:function(jq,url){
return jq.each(function(){
if(typeof url=="string"){
_30(this,url);
}else{
if(url){
var _68=$(this).combobox("options");
_68.queryParams=url;
}
_30(this);
}
});
},select:function(jq,_69){
return jq.each(function(){
_13(this,_69);
});
},unselect:function(jq,_6a){
return jq.each(function(){
_1a(this,_6a);
});
},scrollTo:function(jq,_6b){
return jq.each(function(){
_5(this,_6b);
});
}};
$.fn.combobox.parseOptions=function(_6c){
var t=$(_6c);
return $.extend({},$.fn.combo.parseOptions(_6c),$.parser.parseOptions(_6c,["valueField","textField","groupField","groupPosition","mode","method","url",{showItemIcon:"boolean",limitToList:"boolean"}]));
};
$.fn.combobox.parseData=function(_6d){
var _6e=[];
var _6f=$(_6d).combobox("options");
$(_6d).children().each(function(){
if(this.tagName.toLowerCase()=="optgroup"){
var _70=$(this).attr("label");
$(this).children().each(function(){
_71(this,_70);
});
}else{
_71(this);
}
});
return _6e;
function _71(el,_72){
var t=$(el);
var row={};
row[_6f.valueField]=t.attr("value")!=undefined?t.attr("value"):t.text();
row[_6f.textField]=t.text();
row["iconCls"]=$.parser.parseOptions(el,["iconCls"]).iconCls;
row["selected"]=t.is(":selected");
row["disabled"]=t.is(":disabled");
if(_72){
_6f.groupField=_6f.groupField||"group";
row[_6f.groupField]=_72;
}
_6e.push(row);
};
};
var _73=0;
var _74={render:function(_75,_76,_77){
var _78=$.data(_75,"combobox");
var _79=_78.options;
var _7a=$(_75).attr("id")||"";
_73++;
_78.itemIdPrefix=_7a+"_easyui_combobox_i"+_73;
_78.groupIdPrefix=_7a+"_easyui_combobox_g"+_73;
_78.groups=[];
var dd=[];
var _7b=undefined;
for(var i=0;i<_77.length;i++){
var row=_77[i];
var v=row[_79.valueField]+"";
var s=row[_79.textField];
var g=row[_79.groupField];
if(g){
if(_7b!=g){
_7b=g;
_78.groups.push({value:g,startIndex:i,count:1});
dd.push("<div id=\""+(_78.groupIdPrefix+"_"+(_78.groups.length-1))+"\" class=\"combobox-group\">");
dd.push(_79.groupFormatter?_79.groupFormatter.call(_75,g):g);
dd.push("</div>");
}else{
_78.groups[_78.groups.length-1].count++;
}
}else{
_7b=undefined;
}
var cls="combobox-item"+(row.disabled?" combobox-item-disabled":"")+(g?" combobox-gitem":"");
dd.push("<div id=\""+(_78.itemIdPrefix+"_"+i)+"\" class=\""+cls+"\">");
if(_79.showItemIcon&&row.iconCls){
dd.push("<span class=\"combobox-icon "+row.iconCls+"\"></span>");
}
dd.push(_79.formatter?_79.formatter.call(_75,row):s);
dd.push("</div>");
}
$(_76).html(dd.join(""));
}};
$.fn.combobox.defaults=$.extend({},$.fn.combo.defaults,{valueField:"value",textField:"text",groupPosition:"static",groupField:null,groupFormatter:function(_7c){
return _7c;
},mode:"local",method:"post",url:null,data:null,queryParams:{},showItemIcon:false,limitToList:false,unselectedValues:[],mappingRows:[],view:_74,keyHandler:{up:function(e){
_b(this,"prev");
e.preventDefault();
},down:function(e){
_b(this,"next");
e.preventDefault();
},left:function(e){
},right:function(e){
},enter:function(e){
_41(this);
},query:function(q,e){
_36(this,q);
}},inputEvents:$.extend({},$.fn.combo.defaults.inputEvents,{blur:function(e){
$.fn.combo.defaults.inputEvents.blur(e);
var _7d=e.data.target;
var _7e=$(_7d).combobox("options");
if(_7e.reversed||_7e.limitToList){
if(_7e.blurTimer){
clearTimeout(_7e.blurTimer);
}
_7e.blurTimer=setTimeout(function(){
var _7f=$(_7d).parent().length;
if(_7f){
if(_7e.reversed){
$(_7d).combobox("setValues",$(_7d).combobox("getValues"));
}else{
if(_7e.limitToList){
var vv=[];
$.map($(_7d).combobox("getValues"),function(v){
var _80=$.easyui.indexOfArray($(_7d).combobox("getData"),_7e.valueField,v);
if(_80>=0){
vv.push(v);
}
});
$(_7d).combobox("setValues",vv);
}
}
_7e.blurTimer=null;
}
},50);
}
}}),panelEvents:{mouseover:_4b,mouseout:_4d,mousedown:function(e){
e.preventDefault();
e.stopPropagation();
},click:_4e,scroll:_53},filter:function(q,row){
var _81=$(this).combobox("options");
return row[_81.textField].toLowerCase().indexOf(q.toLowerCase())>=0;
},formatter:function(row){
var _82=$(this).combobox("options");
return row[_82.textField];
},loader:function(_83,_84,_85){
var _86=$(this).combobox("options");
if(!_86.url){
return false;
}
$.ajax({type:_86.method,url:_86.url,data:_83,dataType:"json",success:function(_87){
_84(_87);
},error:function(){
_85.apply(this,arguments);
}});
},loadFilter:function(_88){
return _88;
},finder:{getEl:function(_89,_8a){
var _8b=_1(_89,_8a);
var id=$.data(_89,"combobox").itemIdPrefix+"_"+_8b;
return $("#"+id);
},getGroupEl:function(_8c,_8d){
var _8e=$.data(_8c,"combobox");
var _8f=$.easyui.indexOfArray(_8e.groups,"value",_8d);
var id=_8e.groupIdPrefix+"_"+_8f;
return $("#"+id);
},getGroup:function(_90,p){
var _91=$.data(_90,"combobox");
var _92=p.attr("id").substr(_91.groupIdPrefix.length+1);
return _91.groups[parseInt(_92)];
},getRow:function(_93,p){
var _94=$.data(_93,"combobox");
var _95=(p instanceof $)?p.attr("id").substr(_94.itemIdPrefix.length+1):_1(_93,p);
return _94.data[parseInt(_95)];
}},onBeforeLoad:function(_96){
},onLoadSuccess:function(_97){
},onLoadError:function(){
},onSelect:function(_98){
},onUnselect:function(_99){
},onClick:function(_9a){
}});
})(jQuery);

View File

@@ -0,0 +1,353 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"combogrid");
var _4=_3.options;
var _5=_3.grid;
$(_2).addClass("combogrid-f").combo($.extend({},_4,{onShowPanel:function(){
_22(this,$(this).combogrid("getValues"),true);
var p=$(this).combogrid("panel");
var _6=p.outerHeight()-p.height();
var _7=p._size("minHeight");
var _8=p._size("maxHeight");
var dg=$(this).combogrid("grid");
dg.datagrid("resize",{width:"100%",height:(isNaN(parseInt(_4.panelHeight))?"auto":"100%"),minHeight:(_7?_7-_6:""),maxHeight:(_8?_8-_6:"")});
var _9=dg.datagrid("getSelected");
if(_9){
dg.datagrid("scrollTo",dg.datagrid("getRowIndex",_9));
}
_4.onShowPanel.call(this);
}}));
var _a=$(_2).combo("panel");
if(!_5){
_5=$("<table></table>").appendTo(_a);
_3.grid=_5;
}
_5.datagrid($.extend({},_4,{border:false,singleSelect:(!_4.multiple),onLoadSuccess:_b,onClickRow:_c,onSelect:_d("onSelect"),onUnselect:_d("onUnselect"),onSelectAll:_d("onSelectAll"),onUnselectAll:_d("onUnselectAll")}));
function _e(dg){
return $(dg).closest(".combo-panel").panel("options").comboTarget||_2;
};
function _b(_f){
var _10=_e(this);
var _11=$(_10).data("combogrid");
var _12=_11.options;
var _13=$(_10).combo("getValues");
_22(_10,_13,_11.remainText);
_12.onLoadSuccess.call(this,_f);
};
function _c(_14,row){
var _15=_e(this);
var _16=$(_15).data("combogrid");
var _17=_16.options;
_16.remainText=false;
_18.call(this);
if(!_17.multiple){
$(_15).combo("hidePanel");
}
_17.onClickRow.call(this,_14,row);
};
function _d(_19){
return function(_1a,row){
var _1b=_e(this);
var _1c=$(_1b).combogrid("options");
if(_19=="onUnselectAll"){
if(_1c.multiple){
_18.call(this);
}
}else{
_18.call(this);
}
_1c[_19].call(this,_1a,row);
};
};
function _18(){
var dg=$(this);
var _1d=_e(dg);
var _1e=$(_1d).data("combogrid");
var _1f=_1e.options;
var vv=$.map(dg.datagrid("getSelections"),function(row){
return row[_1f.idField];
});
vv=vv.concat(_1f.unselectedValues);
var _20=dg.data("datagrid").dc.body2;
var _21=_20.scrollTop();
_22(_1d,vv,_1e.remainText);
_20.scrollTop(_21);
};
};
function nav(_23,dir){
var _24=$.data(_23,"combogrid");
var _25=_24.options;
var _26=_24.grid;
var _27=_26.datagrid("getRows").length;
if(!_27){
return;
}
var tr=_25.finder.getTr(_26[0],null,"highlight");
if(!tr.length){
tr=_25.finder.getTr(_26[0],null,"selected");
}
var _28;
if(!tr.length){
_28=(dir=="next"?0:_27-1);
}else{
var _28=parseInt(tr.attr("datagrid-row-index"));
_28+=(dir=="next"?1:-1);
if(_28<0){
_28=_27-1;
}
if(_28>=_27){
_28=0;
}
}
_26.datagrid("highlightRow",_28);
if(_25.selectOnNavigation){
_24.remainText=false;
_26.datagrid("selectRow",_28);
}
};
function _22(_29,_2a,_2b){
var _2c=$.data(_29,"combogrid");
var _2d=_2c.options;
var _2e=_2c.grid;
var _2f=$(_29).combo("getValues");
var _30=$(_29).combo("options");
var _31=_30.onChange;
_30.onChange=function(){
};
var _32=_2e.datagrid("options");
var _33=_32.onSelect;
var _34=_32.onUnselectAll;
_32.onSelect=_32.onUnselectAll=function(){
};
if(!$.isArray(_2a)){
_2a=_2a.split(_2d.separator);
}
if(!_2d.multiple){
_2a=_2a.length?[_2a[0]]:[""];
}
var vv=$.map(_2a,function(_35){
return String(_35);
});
vv=$.grep(vv,function(v,_36){
return _36===$.inArray(v,vv);
});
var _37=$.grep(_2e.datagrid("getSelections"),function(row,_38){
return $.inArray(String(row[_2d.idField]),vv)>=0;
});
_2e.datagrid("clearSelections");
_2e.data("datagrid").selectedRows=_37;
var ss=[];
_2d.unselectedValues=[];
$.map(vv,function(v){
var _39=_2e.datagrid("getRowIndex",v);
if(_39>=0){
_2e.datagrid("selectRow",_39);
}else{
if($.easyui.indexOfArray(_37,_2d.idField,v)==-1){
_2d.unselectedValues.push(v);
}
}
ss.push(_3a(v,_2e.datagrid("getRows"))||_3a(v,_37)||_3a(v,_2d.mappingRows)||v);
});
$(_29).combo("setValues",_2f);
_30.onChange=_31;
_32.onSelect=_33;
_32.onUnselectAll=_34;
if(!_2b){
var s=ss.join(_2d.separator);
if($(_29).combo("getText")!=s){
$(_29).combo("setText",s);
}
}
$(_29).combo("setValues",_2a);
function _3a(_3b,a){
var _3c=$.easyui.getArrayItem(a,_2d.idField,_3b);
return _3c?_3c[_2d.textField]:undefined;
};
};
function _3d(_3e,q){
var _3f=$.data(_3e,"combogrid");
var _40=_3f.options;
var _41=_3f.grid;
_3f.remainText=true;
var qq=_40.multiple?q.split(_40.separator):[q];
qq=$.grep(qq,function(q){
return $.trim(q)!="";
});
if(_40.mode=="remote"){
_42(qq);
_41.datagrid("load",$.extend({},_40.queryParams,{q:q}));
}else{
_41.datagrid("highlightRow",-1);
var _43=_41.datagrid("getRows");
var vv=[];
$.map(qq,function(q){
q=$.trim(q);
var _44=q;
_45(_40.mappingRows,q);
_45(_41.datagrid("getSelections"),q);
var _46=_45(_43,q);
if(_46>=0){
if(_40.reversed){
_41.datagrid("highlightRow",_46);
}
}else{
$.map(_43,function(row,i){
if(_40.filter.call(_3e,q,row)){
_41.datagrid("highlightRow",i);
}
});
}
});
_42(vv);
}
function _45(_47,q){
for(var i=0;i<_47.length;i++){
var row=_47[i];
if((row[_40.textField]||"").toLowerCase()==q.toLowerCase()){
vv.push(row[_40.idField]);
return i;
}
}
return -1;
};
function _42(vv){
if(!_40.reversed){
_22(_3e,vv,true);
}
};
};
function _48(_49){
var _4a=$.data(_49,"combogrid");
var _4b=_4a.options;
var _4c=_4a.grid;
var tr=_4b.finder.getTr(_4c[0],null,"highlight");
_4a.remainText=false;
if(tr.length){
var _4d=parseInt(tr.attr("datagrid-row-index"));
if(_4b.multiple){
if(tr.hasClass("datagrid-row-selected")){
_4c.datagrid("unselectRow",_4d);
}else{
_4c.datagrid("selectRow",_4d);
}
}else{
_4c.datagrid("selectRow",_4d);
}
}
var vv=[];
$.map(_4c.datagrid("getSelections"),function(row){
vv.push(row[_4b.idField]);
});
$.map(_4b.unselectedValues,function(v){
if($.easyui.indexOfArray(_4b.mappingRows,_4b.idField,v)>=0){
$.easyui.addArrayItem(vv,v);
}
});
$(_49).combogrid("setValues",vv);
if(!_4b.multiple){
$(_49).combogrid("hidePanel");
}
};
$.fn.combogrid=function(_4e,_4f){
if(typeof _4e=="string"){
var _50=$.fn.combogrid.methods[_4e];
if(_50){
return _50(this,_4f);
}else{
return this.combo(_4e,_4f);
}
}
_4e=_4e||{};
return this.each(function(){
var _51=$.data(this,"combogrid");
if(_51){
$.extend(_51.options,_4e);
}else{
_51=$.data(this,"combogrid",{options:$.extend({},$.fn.combogrid.defaults,$.fn.combogrid.parseOptions(this),_4e)});
}
_1(this);
});
};
$.fn.combogrid.methods={options:function(jq){
var _52=jq.combo("options");
return $.extend($.data(jq[0],"combogrid").options,{width:_52.width,height:_52.height,originalValue:_52.originalValue,disabled:_52.disabled,readonly:_52.readonly});
},cloneFrom:function(jq,_53){
return jq.each(function(){
$(this).combo("cloneFrom",_53);
$.data(this,"combogrid",{options:$.extend(true,{cloned:true},$(_53).combogrid("options")),combo:$(this).next(),panel:$(_53).combo("panel"),grid:$(_53).combogrid("grid")});
});
},grid:function(jq){
return $.data(jq[0],"combogrid").grid;
},setValues:function(jq,_54){
return jq.each(function(){
var _55=$(this).combogrid("options");
if($.isArray(_54)){
_54=$.map(_54,function(_56){
if(_56&&typeof _56=="object"){
$.easyui.addArrayItem(_55.mappingRows,_55.idField,_56);
return _56[_55.idField];
}else{
return _56;
}
});
}
_22(this,_54);
});
},setValue:function(jq,_57){
return jq.each(function(){
$(this).combogrid("setValues",$.isArray(_57)?_57:[_57]);
});
},clear:function(jq){
return jq.each(function(){
$(this).combogrid("setValues",[]);
});
},reset:function(jq){
return jq.each(function(){
var _58=$(this).combogrid("options");
if(_58.multiple){
$(this).combogrid("setValues",_58.originalValue);
}else{
$(this).combogrid("setValue",_58.originalValue);
}
});
}};
$.fn.combogrid.parseOptions=function(_59){
var t=$(_59);
return $.extend({},$.fn.combo.parseOptions(_59),$.fn.datagrid.parseOptions(_59),$.parser.parseOptions(_59,["idField","textField","mode"]));
};
$.fn.combogrid.defaults=$.extend({},$.fn.combo.defaults,$.fn.datagrid.defaults,{loadMsg:null,idField:null,textField:null,unselectedValues:[],mappingRows:[],mode:"local",keyHandler:{up:function(e){
nav(this,"prev");
e.preventDefault();
},down:function(e){
nav(this,"next");
e.preventDefault();
},left:function(e){
},right:function(e){
},enter:function(e){
_48(this);
},query:function(q,e){
_3d(this,q);
}},inputEvents:$.extend({},$.fn.combo.defaults.inputEvents,{blur:function(e){
$.fn.combo.defaults.inputEvents.blur(e);
var _5a=e.data.target;
var _5b=$(_5a).combogrid("options");
if(_5b.reversed){
$(_5a).combogrid("setValues",$(_5a).combogrid("getValues"));
}
}}),panelEvents:{mousedown:function(e){
}},filter:function(q,row){
var _5c=$(this).combogrid("options");
return (row[_5c.textField]||"").toLowerCase().indexOf(q.toLowerCase())>=0;
}});
})(jQuery);

View File

@@ -0,0 +1,239 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"combotree");
var _4=_3.options;
var _5=_3.tree;
$(_2).addClass("combotree-f");
$(_2).combo($.extend({},_4,{onShowPanel:function(){
if(_4.editable){
_5.tree("doFilter","");
}
_4.onShowPanel.call(this);
}}));
var _6=$(_2).combo("panel");
if(!_5){
_5=$("<ul></ul>").appendTo(_6);
_3.tree=_5;
}
_5.tree($.extend({},_4,{checkbox:_4.multiple,onLoadSuccess:function(_7,_8){
var _9=$(_2).combotree("getValues");
if(_4.multiple){
$.map(_5.tree("getChecked"),function(_a){
$.easyui.addArrayItem(_9,_a.id);
});
}
_15(_2,_9,_3.remainText);
_4.onLoadSuccess.call(this,_7,_8);
},onClick:function(_b){
if(_4.multiple){
$(this).tree(_b.checked?"uncheck":"check",_b.target);
}else{
$(_2).combo("hidePanel");
}
_3.remainText=false;
_e(_2);
_4.onClick.call(this,_b);
},onCheck:function(_c,_d){
_3.remainText=false;
_e(_2);
_4.onCheck.call(this,_c,_d);
}}));
};
function _e(_f){
var _10=$.data(_f,"combotree");
var _11=_10.options;
var _12=_10.tree;
var vv=[];
if(_11.multiple){
vv=$.map(_12.tree("getChecked"),function(_13){
return _13.id;
});
}else{
var _14=_12.tree("getSelected");
if(_14){
vv.push(_14.id);
}
}
vv=vv.concat(_11.unselectedValues);
_15(_f,vv,_10.remainText);
};
function _15(_16,_17,_18){
var _19=$.data(_16,"combotree");
var _1a=_19.options;
var _1b=_19.tree;
var _1c=_1b.tree("options");
var _1d=_1c.onBeforeCheck;
var _1e=_1c.onCheck;
var _1f=_1c.onBeforeSelect;
var _20=_1c.onSelect;
_1c.onBeforeCheck=_1c.onCheck=_1c.onBeforeSelect=_1c.onSelect=function(){
};
if(!$.isArray(_17)){
_17=_17.split(_1a.separator);
}
if(!_1a.multiple){
_17=_17.length?[_17[0]]:[""];
}
var vv=$.map(_17,function(_21){
return String(_21);
});
_1b.find("div.tree-node-selected").removeClass("tree-node-selected");
$.map(_1b.tree("getChecked"),function(_22){
if($.inArray(String(_22.id),vv)==-1){
_1b.tree("uncheck",_22.target);
}
});
var ss=[];
_1a.unselectedValues=[];
$.map(vv,function(v){
var _23=_1b.tree("find",v);
if(_23){
_1b.tree("check",_23.target).tree("select",_23.target);
ss.push(_24(_23));
}else{
ss.push(_25(v,_1a.mappingRows)||v);
_1a.unselectedValues.push(v);
}
});
if(_1a.multiple){
$.map(_1b.tree("getChecked"),function(_26){
var id=String(_26.id);
if($.inArray(id,vv)==-1){
vv.push(id);
ss.push(_24(_26));
}
});
}
_1c.onBeforeCheck=_1d;
_1c.onCheck=_1e;
_1c.onBeforeSelect=_1f;
_1c.onSelect=_20;
if(!_18){
var s=ss.join(_1a.separator);
if($(_16).combo("getText")!=s){
$(_16).combo("setText",s);
}
}
$(_16).combo("setValues",vv);
function _25(_27,a){
var _28=$.easyui.getArrayItem(a,"id",_27);
return _28?_24(_28):undefined;
};
function _24(_29){
return _29[_1a.textField||""]||_29.text;
};
};
function _2a(_2b,q){
var _2c=$.data(_2b,"combotree");
var _2d=_2c.options;
var _2e=_2c.tree;
_2c.remainText=true;
_2e.tree("doFilter",_2d.multiple?q.split(_2d.separator):q);
};
function _2f(_30){
var _31=$.data(_30,"combotree");
_31.remainText=false;
$(_30).combotree("setValues",$(_30).combotree("getValues"));
$(_30).combotree("hidePanel");
};
$.fn.combotree=function(_32,_33){
if(typeof _32=="string"){
var _34=$.fn.combotree.methods[_32];
if(_34){
return _34(this,_33);
}else{
return this.combo(_32,_33);
}
}
_32=_32||{};
return this.each(function(){
var _35=$.data(this,"combotree");
if(_35){
$.extend(_35.options,_32);
}else{
$.data(this,"combotree",{options:$.extend({},$.fn.combotree.defaults,$.fn.combotree.parseOptions(this),_32)});
}
_1(this);
});
};
$.fn.combotree.methods={options:function(jq){
var _36=jq.combo("options");
return $.extend($.data(jq[0],"combotree").options,{width:_36.width,height:_36.height,originalValue:_36.originalValue,disabled:_36.disabled,readonly:_36.readonly});
},clone:function(jq,_37){
var t=jq.combo("clone",_37);
t.data("combotree",{options:$.extend(true,{},jq.combotree("options")),tree:jq.combotree("tree")});
return t;
},tree:function(jq){
return $.data(jq[0],"combotree").tree;
},loadData:function(jq,_38){
return jq.each(function(){
var _39=$.data(this,"combotree").options;
_39.data=_38;
var _3a=$.data(this,"combotree").tree;
_3a.tree("loadData",_38);
});
},reload:function(jq,url){
return jq.each(function(){
var _3b=$.data(this,"combotree").options;
var _3c=$.data(this,"combotree").tree;
if(url){
_3b.url=url;
}
_3c.tree({url:_3b.url});
});
},setValues:function(jq,_3d){
return jq.each(function(){
var _3e=$(this).combotree("options");
if($.isArray(_3d)){
_3d=$.map(_3d,function(_3f){
if(_3f&&typeof _3f=="object"){
$.easyui.addArrayItem(_3e.mappingRows,"id",_3f);
return _3f.id;
}else{
return _3f;
}
});
}
_15(this,_3d);
});
},setValue:function(jq,_40){
return jq.each(function(){
$(this).combotree("setValues",$.isArray(_40)?_40:[_40]);
});
},clear:function(jq){
return jq.each(function(){
$(this).combotree("setValues",[]);
});
},reset:function(jq){
return jq.each(function(){
var _41=$(this).combotree("options");
if(_41.multiple){
$(this).combotree("setValues",_41.originalValue);
}else{
$(this).combotree("setValue",_41.originalValue);
}
});
}};
$.fn.combotree.parseOptions=function(_42){
return $.extend({},$.fn.combo.parseOptions(_42),$.fn.tree.parseOptions(_42));
};
$.fn.combotree.defaults=$.extend({},$.fn.combo.defaults,$.fn.tree.defaults,{editable:false,textField:null,unselectedValues:[],mappingRows:[],keyHandler:{up:function(e){
},down:function(e){
},left:function(e){
},right:function(e){
},enter:function(e){
_2f(this);
},query:function(q,e){
_2a(this,q);
}}});
})(jQuery);

View File

@@ -0,0 +1,328 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"combotreegrid");
var _4=_3.options;
$(_2).addClass("combotreegrid-f").combo($.extend({},_4,{onShowPanel:function(){
var p=$(this).combotreegrid("panel");
var _5=p.outerHeight()-p.height();
var _6=p._size("minHeight");
var _7=p._size("maxHeight");
var dg=$(this).combotreegrid("grid");
dg.treegrid("resize",{width:"100%",height:(isNaN(parseInt(_4.panelHeight))?"auto":"100%"),minHeight:(_6?_6-_5:""),maxHeight:(_7?_7-_5:"")});
var _8=dg.treegrid("getSelected");
if(_8){
dg.treegrid("scrollTo",_8[_4.idField]);
}
_4.onShowPanel.call(this);
}}));
if(!_3.grid){
var _9=$(_2).combo("panel");
_3.grid=$("<table></table>").appendTo(_9);
}
_3.grid.treegrid($.extend({},_4,{border:false,checkbox:_4.multiple,onLoadSuccess:function(_a,_b){
var _c=$(_2).combotreegrid("getValues");
if(_4.multiple){
$.map($(this).treegrid("getCheckedNodes"),function(_d){
$.easyui.addArrayItem(_c,_d[_4.idField]);
});
}
_16(_2,_c);
_4.onLoadSuccess.call(this,_a,_b);
_3.remainText=false;
},onClickRow:function(_e){
if(_4.multiple){
$(this).treegrid(_e.checked?"uncheckNode":"checkNode",_e[_4.idField]);
$(this).treegrid("unselect",_e[_4.idField]);
}else{
$(_2).combo("hidePanel");
}
_11(_2);
_4.onClickRow.call(this,_e);
},onCheckNode:function(_f,_10){
_11(_2);
_4.onCheckNode.call(this,_f,_10);
}}));
};
function _11(_12){
var _13=$.data(_12,"combotreegrid");
var _14=_13.options;
var _15=_13.grid;
var vv=[];
if(_14.multiple){
vv=$.map(_15.treegrid("getCheckedNodes"),function(row){
return row[_14.idField];
});
}else{
var row=_15.treegrid("getSelected");
if(row){
vv.push(row[_14.idField]);
}
}
vv=vv.concat(_14.unselectedValues);
_16(_12,vv);
};
function _16(_17,_18){
var _19=$.data(_17,"combotreegrid");
var _1a=_19.options;
var _1b=_19.grid;
var _1c=_1b.datagrid("options");
var _1d=_1c.onBeforeCheck;
var _1e=_1c.onCheck;
var _1f=_1c.onBeforeSelect;
var _20=_1c.onSelect;
_1c.onBeforeCheck=_1c.onCheck=_1c.onBeforeSelect=_1c.onSelect=function(){
};
if(!$.isArray(_18)){
_18=_18.split(_1a.separator);
}
if(!_1a.multiple){
_18=_18.length?[_18[0]]:[""];
}
var vv=$.map(_18,function(_21){
return String(_21);
});
vv=$.grep(vv,function(v,_22){
return _22===$.inArray(v,vv);
});
var _23=_1b.treegrid("getSelected");
if(_23){
_1b.treegrid("unselect",_23[_1a.idField]);
}
$.map(_1b.treegrid("getCheckedNodes"),function(row){
if($.inArray(String(row[_1a.idField]),vv)==-1){
_1b.treegrid("uncheckNode",row[_1a.idField]);
}
});
var ss=[];
_1a.unselectedValues=[];
$.map(vv,function(v){
var row=_1b.treegrid("find",v);
if(row){
if(_1a.multiple){
_1b.treegrid("checkNode",v);
}else{
_1b.treegrid("select",v);
}
ss.push(_24(row));
}else{
ss.push(_25(v,_1a.mappingRows)||v);
_1a.unselectedValues.push(v);
}
});
if(_1a.multiple){
$.map(_1b.treegrid("getCheckedNodes"),function(row){
var id=String(row[_1a.idField]);
if($.inArray(id,vv)==-1){
vv.push(id);
ss.push(_24(row));
}
});
}
_1c.onBeforeCheck=_1d;
_1c.onCheck=_1e;
_1c.onBeforeSelect=_1f;
_1c.onSelect=_20;
if(!_19.remainText){
var s=ss.join(_1a.separator);
if($(_17).combo("getText")!=s){
$(_17).combo("setText",s);
}
}
$(_17).combo("setValues",vv);
function _25(_26,a){
var _27=$.easyui.getArrayItem(a,_1a.idField,_26);
return _27?_24(_27):undefined;
};
function _24(row){
return row[_1a.textField||""]||row[_1a.treeField];
};
};
function _28(_29,q){
var _2a=$.data(_29,"combotreegrid");
var _2b=_2a.options;
var _2c=_2a.grid;
_2a.remainText=true;
var qq=_2b.multiple?q.split(_2b.separator):[q];
qq=$.grep(qq,function(q){
return $.trim(q)!="";
});
_2c.treegrid("clearSelections").treegrid("clearChecked").treegrid("highlightRow",-1);
if(_2b.mode=="remote"){
_2d(qq);
_2c.treegrid("load",$.extend({},_2b.queryParams,{q:q}));
}else{
if(q){
var _2e=_2c.treegrid("getData");
var vv=[];
$.map(qq,function(q){
q=$.trim(q);
if(q){
var v=undefined;
$.easyui.forEach(_2e,true,function(row){
if(q.toLowerCase()==String(row[_2b.treeField]).toLowerCase()){
v=row[_2b.idField];
return false;
}else{
if(_2b.filter.call(_29,q,row)){
_2c.treegrid("expandTo",row[_2b.idField]);
_2c.treegrid("highlightRow",row[_2b.idField]);
return false;
}
}
});
if(v==undefined){
$.easyui.forEach(_2b.mappingRows,false,function(row){
if(q.toLowerCase()==String(row[_2b.treeField])){
v=row[_2b.idField];
return false;
}
});
}
if(v!=undefined){
vv.push(v);
}else{
vv.push(q);
}
}
});
_2d(vv);
_2a.remainText=false;
}
}
function _2d(vv){
if(!_2b.reversed){
$(_29).combotreegrid("setValues",vv);
}
};
};
function _2f(_30){
var _31=$.data(_30,"combotreegrid");
var _32=_31.options;
var _33=_31.grid;
var tr=_32.finder.getTr(_33[0],null,"highlight");
_31.remainText=false;
if(tr.length){
var id=tr.attr("node-id");
if(_32.multiple){
if(tr.hasClass("datagrid-row-selected")){
_33.treegrid("uncheckNode",id);
}else{
_33.treegrid("checkNode",id);
}
}else{
_33.treegrid("selectRow",id);
}
}
var vv=[];
if(_32.multiple){
$.map(_33.treegrid("getCheckedNodes"),function(row){
vv.push(row[_32.idField]);
});
}else{
var row=_33.treegrid("getSelected");
if(row){
vv.push(row[_32.idField]);
}
}
$.map(_32.unselectedValues,function(v){
if($.easyui.indexOfArray(_32.mappingRows,_32.idField,v)>=0){
$.easyui.addArrayItem(vv,v);
}
});
$(_30).combotreegrid("setValues",vv);
if(!_32.multiple){
$(_30).combotreegrid("hidePanel");
}
};
$.fn.combotreegrid=function(_34,_35){
if(typeof _34=="string"){
var _36=$.fn.combotreegrid.methods[_34];
if(_36){
return _36(this,_35);
}else{
return this.combo(_34,_35);
}
}
_34=_34||{};
return this.each(function(){
var _37=$.data(this,"combotreegrid");
if(_37){
$.extend(_37.options,_34);
}else{
_37=$.data(this,"combotreegrid",{options:$.extend({},$.fn.combotreegrid.defaults,$.fn.combotreegrid.parseOptions(this),_34)});
}
_1(this);
});
};
$.fn.combotreegrid.methods={options:function(jq){
var _38=jq.combo("options");
return $.extend($.data(jq[0],"combotreegrid").options,{width:_38.width,height:_38.height,originalValue:_38.originalValue,disabled:_38.disabled,readonly:_38.readonly});
},grid:function(jq){
return $.data(jq[0],"combotreegrid").grid;
},setValues:function(jq,_39){
return jq.each(function(){
var _3a=$(this).combotreegrid("options");
if($.isArray(_39)){
_39=$.map(_39,function(_3b){
if(_3b&&typeof _3b=="object"){
$.easyui.addArrayItem(_3a.mappingRows,_3a.idField,_3b);
return _3b[_3a.idField];
}else{
return _3b;
}
});
}
_16(this,_39);
});
},setValue:function(jq,_3c){
return jq.each(function(){
$(this).combotreegrid("setValues",$.isArray(_3c)?_3c:[_3c]);
});
},clear:function(jq){
return jq.each(function(){
$(this).combotreegrid("setValues",[]);
});
},reset:function(jq){
return jq.each(function(){
var _3d=$(this).combotreegrid("options");
if(_3d.multiple){
$(this).combotreegrid("setValues",_3d.originalValue);
}else{
$(this).combotreegrid("setValue",_3d.originalValue);
}
});
}};
$.fn.combotreegrid.parseOptions=function(_3e){
var t=$(_3e);
return $.extend({},$.fn.combo.parseOptions(_3e),$.fn.treegrid.parseOptions(_3e),$.parser.parseOptions(_3e,["mode",{limitToGrid:"boolean"}]));
};
$.fn.combotreegrid.defaults=$.extend({},$.fn.combo.defaults,$.fn.treegrid.defaults,{editable:false,singleSelect:true,limitToGrid:false,unselectedValues:[],mappingRows:[],mode:"local",textField:null,keyHandler:{up:function(e){
},down:function(e){
},left:function(e){
},right:function(e){
},enter:function(e){
_2f(this);
},query:function(q,e){
_28(this,q);
}},inputEvents:$.extend({},$.fn.combo.defaults.inputEvents,{blur:function(e){
$.fn.combo.defaults.inputEvents.blur(e);
var _3f=e.data.target;
var _40=$(_3f).combotreegrid("options");
if(_40.limitToGrid){
_2f(_3f);
}
}}),filter:function(q,row){
var _41=$(this).combotreegrid("options");
return (row[_41.treeField]||"").toLowerCase().indexOf(q.toLowerCase())>=0;
}});
})(jQuery);

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,136 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"datalist").options;
$(_2).datagrid($.extend({},_3,{cls:"datalist"+(_3.lines?" datalist-lines":""),frozenColumns:(_3.frozenColumns&&_3.frozenColumns.length)?_3.frozenColumns:(_3.checkbox?[[{field:"_ck",checkbox:true}]]:undefined),columns:(_3.columns&&_3.columns.length)?_3.columns:[[{field:_3.textField,width:"100%",formatter:function(_4,_5,_6){
return _3.textFormatter?_3.textFormatter(_4,_5,_6):_4;
}}]]}));
};
var _7=$.extend({},$.fn.datagrid.defaults.view,{render:function(_8,_9,_a){
var _b=$.data(_8,"datagrid");
var _c=_b.options;
if(_c.groupField){
var g=this.groupRows(_8,_b.data.rows);
this.groups=g.groups;
_b.data.rows=g.rows;
var _d=[];
for(var i=0;i<g.groups.length;i++){
_d.push(this.renderGroup.call(this,_8,i,g.groups[i],_a));
}
$(_9).html(_d.join(""));
}else{
$(_9).html(this.renderTable(_8,0,_b.data.rows,_a));
}
},renderGroup:function(_e,_f,_10,_11){
var _12=$.data(_e,"datagrid");
var _13=_12.options;
var _14=$(_e).datagrid("getColumnFields",_11);
var _15=[];
_15.push("<div class=\"datagrid-group\" group-index="+_f+">");
if(!_11){
_15.push("<span class=\"datagrid-group-title\">");
_15.push(_13.groupFormatter.call(_e,_10.value,_10.rows));
_15.push("</span>");
}
_15.push("</div>");
_15.push(this.renderTable(_e,_10.startIndex,_10.rows,_11));
return _15.join("");
},groupRows:function(_16,_17){
var _18=$.data(_16,"datagrid");
var _19=_18.options;
var _1a=[];
for(var i=0;i<_17.length;i++){
var row=_17[i];
var _1b=_1c(row[_19.groupField]);
if(!_1b){
_1b={value:row[_19.groupField],rows:[row]};
_1a.push(_1b);
}else{
_1b.rows.push(row);
}
}
var _1d=0;
var _17=[];
for(var i=0;i<_1a.length;i++){
var _1b=_1a[i];
_1b.startIndex=_1d;
_1d+=_1b.rows.length;
_17=_17.concat(_1b.rows);
}
return {groups:_1a,rows:_17};
function _1c(_1e){
for(var i=0;i<_1a.length;i++){
var _1f=_1a[i];
if(_1f.value==_1e){
return _1f;
}
}
return null;
};
}});
$.fn.datalist=function(_20,_21){
if(typeof _20=="string"){
var _22=$.fn.datalist.methods[_20];
if(_22){
return _22(this,_21);
}else{
return this.datagrid(_20,_21);
}
}
_20=_20||{};
return this.each(function(){
var _23=$.data(this,"datalist");
if(_23){
$.extend(_23.options,_20);
}else{
var _24=$.extend({},$.fn.datalist.defaults,$.fn.datalist.parseOptions(this),_20);
_24.columns=$.extend(true,[],_24.columns);
_23=$.data(this,"datalist",{options:_24});
}
_1(this);
if(!_23.options.data){
var _25=$.fn.datalist.parseData(this);
if(_25.total){
$(this).datalist("loadData",_25);
}
}
});
};
$.fn.datalist.methods={options:function(jq){
return $.data(jq[0],"datalist").options;
}};
$.fn.datalist.parseOptions=function(_26){
return $.extend({},$.fn.datagrid.parseOptions(_26),$.parser.parseOptions(_26,["valueField","textField","groupField",{checkbox:"boolean",lines:"boolean"}]));
};
$.fn.datalist.parseData=function(_27){
var _28=$.data(_27,"datalist").options;
var _29={total:0,rows:[]};
$(_27).children().each(function(){
var _2a=$.parser.parseOptions(this,["value","group"]);
var row={};
var _2b=$(this).html();
row[_28.valueField]=_2a.value!=undefined?_2a.value:_2b;
row[_28.textField]=_2b;
if(_28.groupField){
row[_28.groupField]=_2a.group;
}
_29.total++;
_29.rows.push(row);
});
return _29;
};
$.fn.datalist.defaults=$.extend({},$.fn.datagrid.defaults,{fitColumns:true,singleSelect:true,showHeader:false,checkbox:false,lines:false,valueField:"value",textField:"text",groupField:"",view:_7,textFormatter:function(_2c,row){
return _2c;
},groupFormatter:function(_2d,_2e){
return _2d;
}});
})(jQuery);

View File

@@ -0,0 +1,233 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"datebox");
var _4=_3.options;
$(_2).addClass("datebox-f").combo($.extend({},_4,{onShowPanel:function(){
_5(this);
_6(this);
_7(this);
_18(this,$(this).datebox("getText"),true);
_4.onShowPanel.call(this);
}}));
if(!_3.calendar){
var _8=$(_2).combo("panel").css("overflow","hidden");
_8.panel("options").onBeforeDestroy=function(){
var c=$(this).find(".calendar-shared");
if(c.length){
c.insertBefore(c[0].pholder);
}
};
var cc=$("<div class=\"datebox-calendar-inner\"></div>").prependTo(_8);
if(_4.sharedCalendar){
var c=$(_4.sharedCalendar);
if(!c[0].pholder){
c[0].pholder=$("<div class=\"calendar-pholder\" style=\"display:none\"></div>").insertAfter(c);
}
c.addClass("calendar-shared").appendTo(cc);
if(!c.hasClass("calendar")){
c.calendar();
}
_3.calendar=c;
}else{
_3.calendar=$("<div></div>").appendTo(cc).calendar();
}
$.extend(_3.calendar.calendar("options"),{fit:true,border:false,onSelect:function(_9){
var _a=this.target;
var _b=$(_a).datebox("options");
_b.onSelect.call(_a,_9);
_18(_a,_b.formatter.call(_a,_9));
$(_a).combo("hidePanel");
}});
}
$(_2).combo("textbox").parent().addClass("datebox");
$(_2).datebox("initValue",_4.value);
function _5(_c){
var _d=$(_c).datebox("options");
var _e=$(_c).combo("panel");
_e._unbind(".datebox")._bind("click.datebox",function(e){
if($(e.target).hasClass("datebox-button-a")){
var _f=parseInt($(e.target).attr("datebox-button-index"));
_d.buttons[_f].handler.call(e.target,_c);
}
});
};
function _6(_10){
var _11=$(_10).combo("panel");
if(_11.children("div.datebox-button").length){
return;
}
var _12=$("<div class=\"datebox-button\"><table cellspacing=\"0\" cellpadding=\"0\" style=\"width:100%\"><tr></tr></table></div>").appendTo(_11);
var tr=_12.find("tr");
for(var i=0;i<_4.buttons.length;i++){
var td=$("<td></td>").appendTo(tr);
var btn=_4.buttons[i];
var t=$("<a class=\"datebox-button-a\" href=\"javascript:;\"></a>").html($.isFunction(btn.text)?btn.text(_10):btn.text).appendTo(td);
t.attr("datebox-button-index",i);
}
tr.find("td").css("width",(100/_4.buttons.length)+"%");
};
function _7(_13){
var _14=$(_13).combo("panel");
var cc=_14.children("div.datebox-calendar-inner");
_14.children()._outerWidth(_14.width());
_3.calendar.appendTo(cc);
_3.calendar[0].target=_13;
if(_4.panelHeight!="auto"){
var _15=_14.height();
_14.children().not(cc).each(function(){
_15-=$(this).outerHeight();
});
cc._outerHeight(_15);
}
_3.calendar.calendar("resize");
};
};
function _16(_17,q){
_18(_17,q,true);
};
function _19(_1a){
var _1b=$.data(_1a,"datebox");
var _1c=_1b.options;
var _1d=_1b.calendar.calendar("options").current;
if(_1d){
_18(_1a,_1c.formatter.call(_1a,_1d));
$(_1a).combo("hidePanel");
}
};
function _18(_1e,_1f,_20){
var _21=$.data(_1e,"datebox");
var _22=_21.options;
var _23=_21.calendar;
_23.calendar("moveTo",_22.parser.call(_1e,_1f));
if(_20){
$(_1e).combo("setValue",_1f);
}else{
if(_1f){
_1f=_22.formatter.call(_1e,_23.calendar("options").current);
}
$(_1e).combo("setText",_1f).combo("setValue",_1f);
}
};
$.fn.datebox=function(_24,_25){
if(typeof _24=="string"){
var _26=$.fn.datebox.methods[_24];
if(_26){
return _26(this,_25);
}else{
return this.combo(_24,_25);
}
}
_24=_24||{};
return this.each(function(){
var _27=$.data(this,"datebox");
if(_27){
$.extend(_27.options,_24);
}else{
$.data(this,"datebox",{options:$.extend({},$.fn.datebox.defaults,$.fn.datebox.parseOptions(this),_24)});
}
_1(this);
});
};
$.fn.datebox.methods={options:function(jq){
var _28=jq.combo("options");
return $.extend($.data(jq[0],"datebox").options,{width:_28.width,height:_28.height,originalValue:_28.originalValue,disabled:_28.disabled,readonly:_28.readonly});
},cloneFrom:function(jq,_29){
return jq.each(function(){
$(this).combo("cloneFrom",_29);
$.data(this,"datebox",{options:$.extend(true,{},$(_29).datebox("options")),calendar:$(_29).datebox("calendar")});
$(this).addClass("datebox-f");
});
},calendar:function(jq){
return $.data(jq[0],"datebox").calendar;
},initValue:function(jq,_2a){
return jq.each(function(){
var _2b=$(this).datebox("options");
var _2c=_2b.value;
if(_2c){
var _2d=_2b.parser.call(this,_2c);
_2c=_2b.formatter.call(this,_2d);
$(this).datebox("calendar").calendar("moveTo",_2d);
}
$(this).combo("initValue",_2c).combo("setText",_2c);
});
},setValue:function(jq,_2e){
return jq.each(function(){
_18(this,_2e);
});
},reset:function(jq){
return jq.each(function(){
var _2f=$(this).datebox("options");
$(this).datebox("setValue",_2f.originalValue);
});
},setDate:function(jq,_30){
return jq.each(function(){
var _31=$(this).datebox("options");
$(this).datebox("calendar").calendar("moveTo",_30);
_18(this,_30?_31.formatter.call(this,_30):"");
});
},getDate:function(jq){
if(jq.datebox("getValue")){
return jq.datebox("calendar").calendar("options").current;
}else{
return null;
}
}};
$.fn.datebox.parseOptions=function(_32){
return $.extend({},$.fn.combo.parseOptions(_32),$.parser.parseOptions(_32,["sharedCalendar"]));
};
$.fn.datebox.defaults=$.extend({},$.fn.combo.defaults,{panelWidth:250,panelHeight:"auto",sharedCalendar:null,keyHandler:{up:function(e){
},down:function(e){
},left:function(e){
},right:function(e){
},enter:function(e){
_19(this);
},query:function(q,e){
_16(this,q);
}},currentText:"Today",closeText:"Close",okText:"Ok",buttons:[{text:function(_33){
return $(_33).datebox("options").currentText;
},handler:function(_34){
var _35=$(_34).datebox("options");
var now=new Date();
var _36=new Date(now.getFullYear(),now.getMonth(),now.getDate());
$(_34).datebox("calendar").calendar({year:_36.getFullYear(),month:_36.getMonth()+1,current:_36});
_35.onSelect.call(_34,_36);
_19(_34);
}},{text:function(_37){
return $(_37).datebox("options").closeText;
},handler:function(_38){
$(this).closest("div.combo-panel").panel("close");
}}],formatter:function(_39){
var y=_39.getFullYear();
var m=_39.getMonth()+1;
var d=_39.getDate();
return (m<10?("0"+m):m)+"/"+(d<10?("0"+d):d)+"/"+y;
},parser:function(s){
var _3a=$.fn.calendar.defaults.Date;
if($(this).data("datebox")){
_3a=$(this).datebox("calendar").calendar("options").Date;
}
if(!s){
return new _3a();
}
var ss=s.split("/");
var m=parseInt(ss[0],10);
var d=parseInt(ss[1],10);
var y=parseInt(ss[2],10);
if(!isNaN(y)&&!isNaN(m)&&!isNaN(d)){
return new _3a(y,m-1,d);
}else{
return new _3a();
}
},onSelect:function(_3b){
}});
})(jQuery);

View File

@@ -0,0 +1,182 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"datetimebox");
var _4=_3.options;
$(_2).datebox($.extend({},_4,{onShowPanel:function(){
var _5=$(this).datetimebox("getValue");
_d(this,_5,true);
_4.onShowPanel.call(this);
},formatter:$.fn.datebox.defaults.formatter,parser:$.fn.datebox.defaults.parser}));
$(_2).removeClass("datebox-f").addClass("datetimebox-f");
$(_2).datebox("calendar").calendar({onSelect:function(_6){
_4.onSelect.call(this.target,_6);
}});
if(!_3.spinner){
var _7=$(_2).datebox("panel");
var p=$("<div style=\"padding:2px\"><input></div>").insertAfter(_7.children("div.datebox-calendar-inner"));
_3.spinner=p.children("input");
}
_3.spinner.timespinner({width:_4.spinnerWidth,showSeconds:_4.showSeconds,separator:_4.timeSeparator,hour12:_4.hour12});
$(_2).datetimebox("initValue",_4.value);
};
function _8(_9){
var c=$(_9).datetimebox("calendar");
var t=$(_9).datetimebox("spinner");
var _a=c.calendar("options").current;
return new Date(_a.getFullYear(),_a.getMonth(),_a.getDate(),t.timespinner("getHours"),t.timespinner("getMinutes"),t.timespinner("getSeconds"));
};
function _b(_c,q){
_d(_c,q,true);
};
function _e(_f){
var _10=$.data(_f,"datetimebox").options;
var _11=_8(_f);
_d(_f,_10.formatter.call(_f,_11));
$(_f).combo("hidePanel");
};
function _d(_12,_13,_14){
var _15=$.data(_12,"datetimebox").options;
$(_12).combo("setValue",_13);
if(!_14){
if(_13){
var _16=_15.parser.call(_12,_13);
$(_12).combo("setText",_15.formatter.call(_12,_16));
$(_12).combo("setValue",_15.formatter.call(_12,_16));
}else{
$(_12).combo("setText",_13);
}
}
var _16=_15.parser.call(_12,_13);
$(_12).datetimebox("calendar").calendar("moveTo",_16);
$(_12).datetimebox("spinner").timespinner("setValue",_17(_16));
function _17(_18){
function _19(_1a){
return (_1a<10?"0":"")+_1a;
};
var tt=[_19(_18.getHours()),_19(_18.getMinutes())];
if(_15.showSeconds){
tt.push(_19(_18.getSeconds()));
}
return tt.join($(_12).datetimebox("spinner").timespinner("options").separator);
};
};
$.fn.datetimebox=function(_1b,_1c){
if(typeof _1b=="string"){
var _1d=$.fn.datetimebox.methods[_1b];
if(_1d){
return _1d(this,_1c);
}else{
return this.datebox(_1b,_1c);
}
}
_1b=_1b||{};
return this.each(function(){
var _1e=$.data(this,"datetimebox");
if(_1e){
$.extend(_1e.options,_1b);
}else{
$.data(this,"datetimebox",{options:$.extend({},$.fn.datetimebox.defaults,$.fn.datetimebox.parseOptions(this),_1b)});
}
_1(this);
});
};
$.fn.datetimebox.methods={options:function(jq){
var _1f=jq.datebox("options");
return $.extend($.data(jq[0],"datetimebox").options,{originalValue:_1f.originalValue,disabled:_1f.disabled,readonly:_1f.readonly});
},cloneFrom:function(jq,_20){
return jq.each(function(){
$(this).datebox("cloneFrom",_20);
$.data(this,"datetimebox",{options:$.extend(true,{},$(_20).datetimebox("options")),spinner:$(_20).datetimebox("spinner")});
$(this).removeClass("datebox-f").addClass("datetimebox-f");
});
},spinner:function(jq){
return $.data(jq[0],"datetimebox").spinner;
},initValue:function(jq,_21){
return jq.each(function(){
var _22=$(this).datetimebox("options");
var _23=_22.value;
if(_23){
var _24=_22.parser.call(this,_23);
_23=_22.formatter.call(this,_24);
$(this).datetimebox("calendar").calendar("moveTo",_24);
}
$(this).combo("initValue",_23).combo("setText",_23);
});
},setValue:function(jq,_25){
return jq.each(function(){
_d(this,_25);
});
},reset:function(jq){
return jq.each(function(){
var _26=$(this).datetimebox("options");
$(this).datetimebox("setValue",_26.originalValue);
});
},setDate:function(jq,_27){
return jq.each(function(){
var _28=$(this).datetimebox("options");
$(this).datetimebox("calendar").calendar("moveTo",_27);
_d(this,_27?_28.formatter.call(this,_27):"");
});
},getDate:function(jq){
if(jq.datetimebox("getValue")){
return jq.datetimebox("calendar").calendar("options").current;
}else{
return null;
}
}};
$.fn.datetimebox.parseOptions=function(_29){
var t=$(_29);
return $.extend({},$.fn.datebox.parseOptions(_29),$.parser.parseOptions(_29,["timeSeparator","spinnerWidth",{showSeconds:"boolean"}]));
};
$.fn.datetimebox.defaults=$.extend({},$.fn.datebox.defaults,{spinnerWidth:"100%",showSeconds:true,timeSeparator:":",hour12:false,panelEvents:{mousedown:function(e){
}},keyHandler:{up:function(e){
},down:function(e){
},left:function(e){
},right:function(e){
},enter:function(e){
_e(this);
},query:function(q,e){
_b(this,q);
}},buttons:[{text:function(_2a){
return $(_2a).datetimebox("options").currentText;
},handler:function(_2b){
var _2c=$(_2b).datetimebox("options");
_d(_2b,_2c.formatter.call(_2b,new Date()));
$(_2b).datetimebox("hidePanel");
}},{text:function(_2d){
return $(_2d).datetimebox("options").okText;
},handler:function(_2e){
_e(_2e);
}},{text:function(_2f){
return $(_2f).datetimebox("options").closeText;
},handler:function(_30){
$(_30).datetimebox("hidePanel");
}}],formatter:function(_31){
if(!_31){
return "";
}
return $.fn.datebox.defaults.formatter.call(this,_31)+" "+$.fn.timespinner.defaults.formatter.call($(this).datetimebox("spinner")[0],_31);
},parser:function(s){
s=$.trim(s);
if(!s){
return new Date();
}
var dt=s.split(" ");
var _32=$.fn.datebox.defaults.parser.call(this,dt[0]);
if(dt.length<2){
return _32;
}
var _33=$.fn.timespinner.defaults.parser.call($(this).datetimebox("spinner")[0],dt[1]+(dt[2]?" "+dt[2]:""));
return new Date(_32.getFullYear(),_32.getMonth(),_32.getDate(),_33.getHours(),_33.getMinutes(),_33.getSeconds());
}});
})(jQuery);

View File

@@ -0,0 +1,61 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"datetimespinner").options;
$(_2).addClass("datetimespinner-f").timespinner(_3);
};
$.fn.datetimespinner=function(_4,_5){
if(typeof _4=="string"){
var _6=$.fn.datetimespinner.methods[_4];
if(_6){
return _6(this,_5);
}else{
return this.timespinner(_4,_5);
}
}
_4=_4||{};
return this.each(function(){
var _7=$.data(this,"datetimespinner");
if(_7){
$.extend(_7.options,_4);
}else{
$.data(this,"datetimespinner",{options:$.extend({},$.fn.datetimespinner.defaults,$.fn.datetimespinner.parseOptions(this),_4)});
}
_1(this);
});
};
$.fn.datetimespinner.methods={options:function(jq){
var _8=jq.timespinner("options");
return $.extend($.data(jq[0],"datetimespinner").options,{width:_8.width,value:_8.value,originalValue:_8.originalValue,disabled:_8.disabled,readonly:_8.readonly});
}};
$.fn.datetimespinner.parseOptions=function(_9){
return $.extend({},$.fn.timespinner.parseOptions(_9),$.parser.parseOptions(_9,[]));
};
$.fn.datetimespinner.defaults=$.extend({},$.fn.timespinner.defaults,{formatter:function(_a){
if(!_a){
return "";
}
return $.fn.datebox.defaults.formatter.call(this,_a)+" "+$.fn.timespinner.defaults.formatter.call(this,_a);
},parser:function(s){
s=$.trim(s);
if(!s){
return null;
}
var dt=s.split(" ");
var _b=$.fn.datebox.defaults.parser.call(this,dt[0]);
if(dt.length<2){
return _b;
}
var _c=$.fn.timespinner.defaults.parser.call(this,dt[1]+(dt[2]?" "+dt[2]:""));
return new Date(_b.getFullYear(),_b.getMonth(),_b.getDate(),_c.getHours(),_c.getMinutes(),_c.getSeconds());
},selections:[[0,2],[3,5],[6,10],[11,13],[14,16],[17,19],[20,22]]});
})(jQuery);

View File

@@ -0,0 +1,136 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"dialog").options;
_3.inited=false;
$(_2).window($.extend({},_3,{onResize:function(w,h){
if(_3.inited){
_b(this);
_3.onResize.call(this,w,h);
}
}}));
var _4=$(_2).window("window");
if(_3.toolbar){
if($.isArray(_3.toolbar)){
$(_2).siblings("div.dialog-toolbar").remove();
var _5=$("<div class=\"dialog-toolbar\"><table cellspacing=\"0\" cellpadding=\"0\"><tr></tr></table></div>").appendTo(_4);
var tr=_5.find("tr");
for(var i=0;i<_3.toolbar.length;i++){
var _6=_3.toolbar[i];
if(_6=="-"){
$("<td><div class=\"dialog-tool-separator\"></div></td>").appendTo(tr);
}else{
var td=$("<td></td>").appendTo(tr);
var _7=$("<a href=\"javascript:;\"></a>").appendTo(td);
_7[0].onclick=eval(_6.handler||function(){
});
_7.linkbutton($.extend({},_6,{plain:true}));
}
}
}else{
$(_3.toolbar).addClass("dialog-toolbar").appendTo(_4);
$(_3.toolbar).show();
}
}else{
$(_2).siblings("div.dialog-toolbar").remove();
}
if(_3.buttons){
if($.isArray(_3.buttons)){
$(_2).siblings("div.dialog-button").remove();
var _8=$("<div class=\"dialog-button\"></div>").appendTo(_4);
for(var i=0;i<_3.buttons.length;i++){
var p=_3.buttons[i];
var _9=$("<a href=\"javascript:;\"></a>").appendTo(_8);
if(p.handler){
_9[0].onclick=p.handler;
}
_9.linkbutton(p);
}
}else{
$(_3.buttons).addClass("dialog-button").appendTo(_4);
$(_3.buttons).show();
}
}else{
$(_2).siblings("div.dialog-button").remove();
}
_3.inited=true;
var _a=_3.closed;
_4.show();
$(_2).window("resize",{});
if(_a){
_4.hide();
}
};
function _b(_c,_d){
var t=$(_c);
var _e=t.dialog("options");
var _f=_e.noheader;
var tb=t.siblings(".dialog-toolbar");
var bb=t.siblings(".dialog-button");
tb.insertBefore(_c).css({borderTopWidth:(_f?1:0),top:(_f?tb.length:0)});
bb.insertAfter(_c);
tb.add(bb)._outerWidth(t._outerWidth()).find(".easyui-fluid:visible").each(function(){
$(this).triggerHandler("_resize");
});
var _10=tb._outerHeight()+bb._outerHeight();
if(!isNaN(parseInt(_e.height))){
t._outerHeight(t._outerHeight()-_10);
}else{
var _11=t._size("min-height");
if(_11){
t._size("min-height",_11-_10);
}
var _12=t._size("max-height");
if(_12){
t._size("max-height",_12-_10);
}
}
var _13=$.data(_c,"window").shadow;
if(_13){
var cc=t.panel("panel");
_13.css({width:cc._outerWidth(),height:cc._outerHeight()});
}
};
$.fn.dialog=function(_14,_15){
if(typeof _14=="string"){
var _16=$.fn.dialog.methods[_14];
if(_16){
return _16(this,_15);
}else{
return this.window(_14,_15);
}
}
_14=_14||{};
return this.each(function(){
var _17=$.data(this,"dialog");
if(_17){
$.extend(_17.options,_14);
}else{
$.data(this,"dialog",{options:$.extend({},$.fn.dialog.defaults,$.fn.dialog.parseOptions(this),_14)});
}
_1(this);
});
};
$.fn.dialog.methods={options:function(jq){
var _18=$.data(jq[0],"dialog").options;
var _19=jq.panel("options");
$.extend(_18,{width:_19.width,height:_19.height,left:_19.left,top:_19.top,closed:_19.closed,collapsed:_19.collapsed,minimized:_19.minimized,maximized:_19.maximized});
return _18;
},dialog:function(jq){
return jq.window("window");
}};
$.fn.dialog.parseOptions=function(_1a){
var t=$(_1a);
return $.extend({},$.fn.window.parseOptions(_1a),$.parser.parseOptions(_1a,["toolbar","buttons"]),{toolbar:(t.children(".dialog-toolbar").length?t.children(".dialog-toolbar").removeClass("dialog-toolbar"):undefined),buttons:(t.children(".dialog-button").length?t.children(".dialog-button").removeClass("dialog-button"):undefined)});
};
$.fn.dialog.defaults=$.extend({},$.fn.window.defaults,{title:"New Dialog",collapsible:false,minimizable:false,maximizable:false,resizable:false,toolbar:null,buttons:null});
})(jQuery);

View File

@@ -0,0 +1,306 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(e){
var _2=$.data(e.data.target,"draggable");
var _3=_2.options;
var _4=_2.proxy;
var _5=e.data;
var _6=_5.startLeft+e.pageX-_5.startX;
var _7=_5.startTop+e.pageY-_5.startY;
if(_4){
if(_4.parent()[0]==document.body){
if(_3.deltaX!=null&&_3.deltaX!=undefined){
_6=e.pageX+_3.deltaX;
}else{
_6=e.pageX-e.data.offsetWidth;
}
if(_3.deltaY!=null&&_3.deltaY!=undefined){
_7=e.pageY+_3.deltaY;
}else{
_7=e.pageY-e.data.offsetHeight;
}
}else{
if(_3.deltaX!=null&&_3.deltaX!=undefined){
_6+=e.data.offsetWidth+_3.deltaX;
}
if(_3.deltaY!=null&&_3.deltaY!=undefined){
_7+=e.data.offsetHeight+_3.deltaY;
}
}
}
if(e.data.parent!=document.body){
_6+=$(e.data.parent).scrollLeft();
_7+=$(e.data.parent).scrollTop();
}
if(_3.axis=="h"){
_5.left=_6;
}else{
if(_3.axis=="v"){
_5.top=_7;
}else{
_5.left=_6;
_5.top=_7;
}
}
};
function _8(e){
var _9=$.data(e.data.target,"draggable");
var _a=_9.options;
var _b=_9.proxy;
if(!_b){
_b=$(e.data.target);
}
_b.css({left:e.data.left,top:e.data.top});
$("body").css("cursor",_a.cursor);
};
function _c(e){
if(!$.fn.draggable.isDragging){
return false;
}
var _d=$.data(e.data.target,"draggable");
var _e=_d.options;
var _f=$(".droppable:visible").filter(function(){
return e.data.target!=this;
}).filter(function(){
var _10=$.data(this,"droppable").options.accept;
if(_10){
return $(_10).filter(function(){
return this==e.data.target;
}).length>0;
}else{
return true;
}
});
_d.droppables=_f;
var _11=_d.proxy;
if(!_11){
if(_e.proxy){
if(_e.proxy=="clone"){
_11=$(e.data.target).clone().insertAfter(e.data.target);
}else{
_11=_e.proxy.call(e.data.target,e.data.target);
}
_d.proxy=_11;
}else{
_11=$(e.data.target);
}
}
_11.css("position","absolute");
_1(e);
_8(e);
_e.onStartDrag.call(e.data.target,e);
return false;
};
function _12(e){
if(!$.fn.draggable.isDragging){
return false;
}
var _13=$.data(e.data.target,"draggable");
_1(e);
if(_13.options.onDrag.call(e.data.target,e)!=false){
_8(e);
}
var _14=e.data.target;
_13.droppables.each(function(){
var _15=$(this);
if(_15.droppable("options").disabled){
return;
}
var p2=_15.offset();
if(e.pageX>p2.left&&e.pageX<p2.left+_15.outerWidth()&&e.pageY>p2.top&&e.pageY<p2.top+_15.outerHeight()){
if(!this.entered){
$(this).trigger("_dragenter",[_14]);
this.entered=true;
}
$(this).trigger("_dragover",[_14]);
}else{
if(this.entered){
$(this).trigger("_dragleave",[_14]);
this.entered=false;
}
}
});
return false;
};
function _16(e){
if(!$.fn.draggable.isDragging){
_17();
return false;
}
_12(e);
var _18=$.data(e.data.target,"draggable");
var _19=_18.proxy;
var _1a=_18.options;
_1a.onEndDrag.call(e.data.target,e);
if(_1a.revert){
if(_1b()==true){
$(e.data.target).css({position:e.data.startPosition,left:e.data.startLeft,top:e.data.startTop});
}else{
if(_19){
var _1c,top;
if(_19.parent()[0]==document.body){
_1c=e.data.startX-e.data.offsetWidth;
top=e.data.startY-e.data.offsetHeight;
}else{
_1c=e.data.startLeft;
top=e.data.startTop;
}
_19.animate({left:_1c,top:top},function(){
_1d();
});
}else{
$(e.data.target).animate({left:e.data.startLeft,top:e.data.startTop},function(){
$(e.data.target).css("position",e.data.startPosition);
});
}
}
}else{
$(e.data.target).css({position:"absolute",left:e.data.left,top:e.data.top});
_1b();
}
_1a.onStopDrag.call(e.data.target,e);
_17();
function _1d(){
if(_19){
_19.remove();
}
_18.proxy=null;
};
function _1b(){
var _1e=false;
_18.droppables.each(function(){
var _1f=$(this);
if(_1f.droppable("options").disabled){
return;
}
var p2=_1f.offset();
if(e.pageX>p2.left&&e.pageX<p2.left+_1f.outerWidth()&&e.pageY>p2.top&&e.pageY<p2.top+_1f.outerHeight()){
if(_1a.revert){
$(e.data.target).css({position:e.data.startPosition,left:e.data.startLeft,top:e.data.startTop});
}
$(this).triggerHandler("_drop",[e.data.target]);
_1d();
_1e=true;
this.entered=false;
return false;
}
});
if(!_1e&&!_1a.revert){
_1d();
}
return _1e;
};
return false;
};
function _17(){
if($.fn.draggable.timer){
clearTimeout($.fn.draggable.timer);
$.fn.draggable.timer=undefined;
}
$(document)._unbind(".draggable");
$.fn.draggable.isDragging=false;
setTimeout(function(){
$("body").css("cursor","");
},100);
};
$.fn.draggable=function(_20,_21){
if(typeof _20=="string"){
return $.fn.draggable.methods[_20](this,_21);
}
return this.each(function(){
var _22;
var _23=$.data(this,"draggable");
if(_23){
_23.handle._unbind(".draggable");
_22=$.extend(_23.options,_20);
}else{
_22=$.extend({},$.fn.draggable.defaults,$.fn.draggable.parseOptions(this),_20||{});
}
var _24=_22.handle?(typeof _22.handle=="string"?$(_22.handle,this):_22.handle):$(this);
$.data(this,"draggable",{options:_22,handle:_24});
if(_22.disabled){
$(this).css("cursor","");
return;
}
_24._unbind(".draggable")._bind("mousemove.draggable",{target:this},function(e){
if($.fn.draggable.isDragging){
return;
}
var _25=$.data(e.data.target,"draggable").options;
if(_26(e)){
$(this).css("cursor",_25.cursor);
}else{
$(this).css("cursor","");
}
})._bind("mouseleave.draggable",{target:this},function(e){
$(this).css("cursor","");
})._bind("mousedown.draggable",{target:this},function(e){
if(_26(e)==false){
return;
}
$(this).css("cursor","");
var _27=$(e.data.target).position();
var _28=$(e.data.target).offset();
var _29={startPosition:$(e.data.target).css("position"),startLeft:_27.left,startTop:_27.top,left:_27.left,top:_27.top,startX:e.pageX,startY:e.pageY,width:$(e.data.target).outerWidth(),height:$(e.data.target).outerHeight(),offsetWidth:(e.pageX-_28.left),offsetHeight:(e.pageY-_28.top),target:e.data.target,parent:$(e.data.target).parent()[0]};
$.extend(e.data,_29);
var _2a=$.data(e.data.target,"draggable").options;
if(_2a.onBeforeDrag.call(e.data.target,e)==false){
return;
}
$(document)._bind("mousedown.draggable",e.data,_c);
$(document)._bind("mousemove.draggable",e.data,_12);
$(document)._bind("mouseup.draggable",e.data,_16);
$.fn.draggable.timer=setTimeout(function(){
$.fn.draggable.isDragging=true;
_c(e);
},_2a.delay);
return false;
});
function _26(e){
var _2b=$.data(e.data.target,"draggable");
var _2c=_2b.handle;
var _2d=$(_2c).offset();
var _2e=$(_2c).outerWidth();
var _2f=$(_2c).outerHeight();
var t=e.pageY-_2d.top;
var r=_2d.left+_2e-e.pageX;
var b=_2d.top+_2f-e.pageY;
var l=e.pageX-_2d.left;
return Math.min(t,r,b,l)>_2b.options.edge;
};
});
};
$.fn.draggable.methods={options:function(jq){
return $.data(jq[0],"draggable").options;
},proxy:function(jq){
return $.data(jq[0],"draggable").proxy;
},enable:function(jq){
return jq.each(function(){
$(this).draggable({disabled:false});
});
},disable:function(jq){
return jq.each(function(){
$(this).draggable({disabled:true});
});
}};
$.fn.draggable.parseOptions=function(_30){
var t=$(_30);
return $.extend({},$.parser.parseOptions(_30,["cursor","handle","axis",{"revert":"boolean","deltaX":"number","deltaY":"number","edge":"number","delay":"number"}]),{disabled:(t.attr("disabled")?true:undefined)});
};
$.fn.draggable.defaults={proxy:null,revert:false,cursor:"move",deltaX:null,deltaY:null,handle:null,disabled:false,edge:0,axis:null,delay:100,onBeforeDrag:function(e){
},onStartDrag:function(e){
},onDrag:function(e){
},onEndDrag:function(e){
},onStopDrag:function(e){
}};
$.fn.draggable.isDragging=false;
})(jQuery);

View File

@@ -0,0 +1,62 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
$(_2).addClass("droppable");
$(_2)._bind("_dragenter",function(e,_3){
$.data(_2,"droppable").options.onDragEnter.apply(_2,[e,_3]);
});
$(_2)._bind("_dragleave",function(e,_4){
$.data(_2,"droppable").options.onDragLeave.apply(_2,[e,_4]);
});
$(_2)._bind("_dragover",function(e,_5){
$.data(_2,"droppable").options.onDragOver.apply(_2,[e,_5]);
});
$(_2)._bind("_drop",function(e,_6){
$.data(_2,"droppable").options.onDrop.apply(_2,[e,_6]);
});
};
$.fn.droppable=function(_7,_8){
if(typeof _7=="string"){
return $.fn.droppable.methods[_7](this,_8);
}
_7=_7||{};
return this.each(function(){
var _9=$.data(this,"droppable");
if(_9){
$.extend(_9.options,_7);
}else{
_1(this);
$.data(this,"droppable",{options:$.extend({},$.fn.droppable.defaults,$.fn.droppable.parseOptions(this),_7)});
}
});
};
$.fn.droppable.methods={options:function(jq){
return $.data(jq[0],"droppable").options;
},enable:function(jq){
return jq.each(function(){
$(this).droppable({disabled:false});
});
},disable:function(jq){
return jq.each(function(){
$(this).droppable({disabled:true});
});
}};
$.fn.droppable.parseOptions=function(_a){
var t=$(_a);
return $.extend({},$.parser.parseOptions(_a,["accept"]),{disabled:(t.attr("disabled")?true:undefined)});
};
$.fn.droppable.defaults={accept:null,disabled:false,onDragEnter:function(e,_b){
},onDragOver:function(e,_c){
},onDragLeave:function(e,_d){
},onDrop:function(e,_e){
}};
})(jQuery);

View File

@@ -0,0 +1,100 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
var _1=0;
function _2(_3){
var _4=$.data(_3,"filebox");
var _5=_4.options;
_5.fileboxId="filebox_file_id_"+(++_1);
$(_3).addClass("filebox-f").textbox(_5);
$(_3).textbox("textbox").attr("readonly","readonly");
_4.filebox=$(_3).next().addClass("filebox");
var _6=_7(_3);
var _8=$(_3).filebox("button");
if(_8.length){
$("<label class=\"filebox-label\" for=\""+_5.fileboxId+"\"></label>").appendTo(_8);
if(_8.linkbutton("options").disabled){
_6._propAttr("disabled",true);
}else{
_6._propAttr("disabled",false);
}
}
};
function _7(_9){
var _a=$.data(_9,"filebox");
var _b=_a.options;
_a.filebox.find(".textbox-value").remove();
_b.oldValue="";
var _c=$("<input type=\"file\" class=\"textbox-value\">").appendTo(_a.filebox);
_c.attr("id",_b.fileboxId).attr("name",$(_9).attr("textboxName")||"");
_c.attr("accept",_b.accept);
_c.attr("capture",_b.capture);
if(_b.multiple){
_c.attr("multiple","multiple");
}
_c.change(function(){
var _d=this.value;
if(this.files){
_d=$.map(this.files,function(_e){
return _e.name;
}).join(_b.separator);
}
$(_9).filebox("setText",_d);
_b.onChange.call(_9,_d,_b.oldValue);
_b.oldValue=_d;
});
return _c;
};
$.fn.filebox=function(_f,_10){
if(typeof _f=="string"){
var _11=$.fn.filebox.methods[_f];
if(_11){
return _11(this,_10);
}else{
return this.textbox(_f,_10);
}
}
_f=_f||{};
return this.each(function(){
var _12=$.data(this,"filebox");
if(_12){
$.extend(_12.options,_f);
}else{
$.data(this,"filebox",{options:$.extend({},$.fn.filebox.defaults,$.fn.filebox.parseOptions(this),_f)});
}
_2(this);
});
};
$.fn.filebox.methods={options:function(jq){
var _13=jq.textbox("options");
return $.extend($.data(jq[0],"filebox").options,{width:_13.width,value:_13.value,originalValue:_13.originalValue,disabled:_13.disabled,readonly:_13.readonly});
},clear:function(jq){
return jq.each(function(){
$(this).textbox("clear");
_7(this);
});
},reset:function(jq){
return jq.each(function(){
$(this).filebox("clear");
});
},setValue:function(jq){
return jq;
},setValues:function(jq){
return jq;
},files:function(jq){
return jq.next().find(".textbox-value")[0].files;
}};
$.fn.filebox.parseOptions=function(_14){
var t=$(_14);
return $.extend({},$.fn.textbox.parseOptions(_14),$.parser.parseOptions(_14,["accept","capture","separator"]),{multiple:(t.attr("multiple")?true:undefined)});
};
$.fn.filebox.defaults=$.extend({},$.fn.textbox.defaults,{buttonIcon:null,buttonText:"Choose File",buttonAlign:"right",inputEvents:{},accept:"",capture:"",separator:",",multiple:false});
})(jQuery);

View File

@@ -0,0 +1,414 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2,_3){
var _4=$.data(_2,"form").options;
$.extend(_4,_3||{});
var _5=$.extend({},_4.queryParams);
if(_4.onSubmit.call(_2,_5)==false){
return;
}
var _6=$(_2).find(".textbox-text:focus");
_6.triggerHandler("blur");
_6.focus();
var _7=null;
if(_4.dirty){
var ff=[];
$.map(_4.dirtyFields,function(f){
if($(f).hasClass("textbox-f")){
$(f).next().find(".textbox-value").each(function(){
ff.push(this);
});
}else{
ff.push(f);
}
});
_7=$(_2).find("input[name]:enabled,textarea[name]:enabled,select[name]:enabled").filter(function(){
return $.inArray(this,ff)==-1;
});
_7._propAttr("disabled",true);
}
if(_4.ajax){
if(_4.iframe){
_8(_2,_5);
}else{
if(window.FormData!==undefined){
_9(_2,_5);
}else{
_8(_2,_5);
}
}
}else{
$(_2).submit();
}
if(_4.dirty){
_7._propAttr("disabled",false);
}
};
function _8(_a,_b){
var _c=$.data(_a,"form").options;
var _d="easyui_frame_"+(new Date().getTime());
var _e=$("<iframe id="+_d+" name="+_d+"></iframe>").appendTo("body");
_e.attr("src",window.ActiveXObject?"javascript:false":"about:blank");
_e.css({position:"absolute",top:-1000,left:-1000});
_e.bind("load",cb);
_f(_b);
function _f(_10){
var _11=$(_a);
if(_c.url){
_11.attr("action",_c.url);
}
var t=_11.attr("target"),a=_11.attr("action");
_11.attr("target",_d);
var _12=$();
try{
for(var n in _10){
var _13=$("<input type=\"hidden\" name=\""+n+"\">").val(_10[n]).appendTo(_11);
_12=_12.add(_13);
}
_14();
_11[0].submit();
}
finally{
_11.attr("action",a);
t?_11.attr("target",t):_11.removeAttr("target");
_12.remove();
}
};
function _14(){
var f=$("#"+_d);
if(!f.length){
return;
}
try{
var s=f.contents()[0].readyState;
if(s&&s.toLowerCase()=="uninitialized"){
setTimeout(_14,100);
}
}
catch(e){
cb();
}
};
var _15=10;
function cb(){
var f=$("#"+_d);
if(!f.length){
return;
}
f.unbind();
var _16="";
try{
var _17=f.contents().find("body");
_16=_17.html();
if(_16==""){
if(--_15){
setTimeout(cb,100);
return;
}
}
var ta=_17.find(">textarea");
if(ta.length){
_16=ta.val();
}else{
var pre=_17.find(">pre");
if(pre.length){
_16=pre.html();
}
}
}
catch(e){
}
_c.success.call(_a,_16);
setTimeout(function(){
f.unbind();
f.remove();
},100);
};
};
function _9(_18,_19){
var _1a=$.data(_18,"form").options;
var _1b=new FormData($(_18)[0]);
for(var _1c in _19){
_1b.append(_1c,_19[_1c]);
}
$.ajax({url:_1a.url,type:"post",xhr:function(){
var xhr=$.ajaxSettings.xhr();
if(xhr.upload){
xhr.upload.addEventListener("progress",function(e){
if(e.lengthComputable){
var _1d=e.total;
var _1e=e.loaded||e.position;
var _1f=Math.ceil(_1e*100/_1d);
_1a.onProgress.call(_18,_1f);
}
},false);
}
return xhr;
},data:_1b,dataType:"html",cache:false,contentType:false,processData:false,complete:function(res){
_1a.success.call(_18,res.responseText);
}});
};
function _20(_21,_22){
var _23=$.data(_21,"form").options;
if(typeof _22=="string"){
var _24={};
if(_23.onBeforeLoad.call(_21,_24)==false){
return;
}
$.ajax({url:_22,data:_24,dataType:"json",success:function(_25){
_26(_25);
},error:function(){
_23.onLoadError.apply(_21,arguments);
}});
}else{
_26(_22);
}
function _26(_27){
var _28=$(_21);
for(var _29 in _27){
var val=_27[_29];
if(!_2a(_29,val)){
if(!_2b(_29,val)){
_28.find("input[name=\""+_29+"\"]").val(val);
_28.find("textarea[name=\""+_29+"\"]").val(val);
_28.find("select[name=\""+_29+"\"]").val(val);
}
}
}
_23.onLoadSuccess.call(_21,_27);
_28.form("validate");
};
function _2a(_2c,val){
var _2d=["switchbutton","radiobutton","checkbox"];
for(var i=0;i<_2d.length;i++){
var _2e=_2d[i];
var cc=$(_21).find("["+_2e+"Name=\""+_2c+"\"]");
if(cc.length){
cc[_2e]("uncheck");
cc.each(function(){
if(_2f($(this)[_2e]("options").value,val)){
$(this)[_2e]("check");
}
});
return true;
}
}
var cc=$(_21).find("input[name=\""+_2c+"\"][type=radio], input[name=\""+_2c+"\"][type=checkbox]");
if(cc.length){
cc._propAttr("checked",false);
cc.each(function(){
if(_2f($(this).val(),val)){
$(this)._propAttr("checked",true);
}
});
return true;
}
return false;
};
function _2f(v,val){
if(v==String(val)||$.inArray(v,$.isArray(val)?val:[val])>=0){
return true;
}else{
return false;
}
};
function _2b(_30,val){
var _31=$(_21).find("[textboxName=\""+_30+"\"],[sliderName=\""+_30+"\"]");
if(_31.length){
for(var i=0;i<_23.fieldTypes.length;i++){
var _32=_23.fieldTypes[i];
var _33=_31.data(_32);
if(_33){
if(_33.options.multiple||_33.options.range){
_31[_32]("setValues",val);
}else{
_31[_32]("setValue",val);
}
return true;
}
}
}
return false;
};
};
function _34(_35){
$("input,select,textarea",_35).each(function(){
if($(this).hasClass("textbox-value")){
return;
}
var t=this.type,tag=this.tagName.toLowerCase();
if(t=="text"||t=="hidden"||t=="password"||tag=="textarea"){
this.value="";
}else{
if(t=="file"){
var _36=$(this);
if(!_36.hasClass("textbox-value")){
var _37=_36.clone().val("");
_37.insertAfter(_36);
if(_36.data("validatebox")){
_36.validatebox("destroy");
_37.validatebox();
}else{
_36.remove();
}
}
}else{
if(t=="checkbox"||t=="radio"){
this.checked=false;
}else{
if(tag=="select"){
this.selectedIndex=-1;
}
}
}
}
});
var tmp=$();
var _38=$(_35);
var _39=$.data(_35,"form").options;
for(var i=0;i<_39.fieldTypes.length;i++){
var _3a=_39.fieldTypes[i];
var _3b=_38.find("."+_3a+"-f").not(tmp);
if(_3b.length&&_3b[_3a]){
_3b[_3a]("clear");
tmp=tmp.add(_3b);
}
}
_38.form("validate");
};
function _3c(_3d){
_3d.reset();
var _3e=$(_3d);
var _3f=$.data(_3d,"form").options;
for(var i=_3f.fieldTypes.length-1;i>=0;i--){
var _40=_3f.fieldTypes[i];
var _41=_3e.find("."+_40+"-f");
if(_41.length&&_41[_40]){
_41[_40]("reset");
}
}
_3e.form("validate");
};
function _42(_43){
var _44=$.data(_43,"form").options;
$(_43).unbind(".form");
if(_44.ajax){
$(_43).bind("submit.form",function(){
setTimeout(function(){
_1(_43,_44);
},0);
return false;
});
}
$(_43).bind("_change.form",function(e,t){
if($.inArray(t,_44.dirtyFields)==-1){
_44.dirtyFields.push(t);
}
_44.onChange.call(this,t);
}).bind("change.form",function(e){
var t=e.target;
if(!$(t).hasClass("textbox-text")){
if($.inArray(t,_44.dirtyFields)==-1){
_44.dirtyFields.push(t);
}
_44.onChange.call(this,t);
}
});
_45(_43,_44.novalidate);
};
function _46(_47,_48){
_48=_48||{};
var _49=$.data(_47,"form");
if(_49){
$.extend(_49.options,_48);
}else{
$.data(_47,"form",{options:$.extend({},$.fn.form.defaults,$.fn.form.parseOptions(_47),_48)});
}
};
function _4a(_4b){
if($.fn.validatebox){
var t=$(_4b);
t.find(".validatebox-text:not(:disabled)").validatebox("validate");
var _4c=t.find(".validatebox-invalid");
_4c.filter(":not(:disabled):first").focus();
return _4c.length==0;
}
return true;
};
function _45(_4d,_4e){
var _4f=$.data(_4d,"form").options;
_4f.novalidate=_4e;
$(_4d).find(".validatebox-text:not(:disabled)").validatebox(_4e?"disableValidation":"enableValidation");
};
$.fn.form=function(_50,_51){
if(typeof _50=="string"){
this.each(function(){
_46(this);
});
return $.fn.form.methods[_50](this,_51);
}
return this.each(function(){
_46(this,_50);
_42(this);
});
};
$.fn.form.methods={options:function(jq){
return $.data(jq[0],"form").options;
},submit:function(jq,_52){
return jq.each(function(){
_1(this,_52);
});
},load:function(jq,_53){
return jq.each(function(){
_20(this,_53);
});
},clear:function(jq){
return jq.each(function(){
_34(this);
});
},reset:function(jq){
return jq.each(function(){
_3c(this);
});
},validate:function(jq){
return _4a(jq[0]);
},disableValidation:function(jq){
return jq.each(function(){
_45(this,true);
});
},enableValidation:function(jq){
return jq.each(function(){
_45(this,false);
});
},resetValidation:function(jq){
return jq.each(function(){
$(this).find(".validatebox-text:not(:disabled)").validatebox("resetValidation");
});
},resetDirty:function(jq){
return jq.each(function(){
$(this).form("options").dirtyFields=[];
});
}};
$.fn.form.parseOptions=function(_54){
var t=$(_54);
return $.extend({},$.parser.parseOptions(_54,[{ajax:"boolean",dirty:"boolean"}]),{url:(t.attr("action")?t.attr("action"):undefined)});
};
$.fn.form.defaults={fieldTypes:["tagbox","combobox","combotree","combogrid","combotreegrid","datetimebox","datebox","timepicker","combo","datetimespinner","timespinner","numberspinner","spinner","slider","searchbox","numberbox","passwordbox","filebox","textbox","switchbutton","radiobutton","checkbox"],novalidate:false,ajax:true,iframe:true,dirty:false,dirtyFields:[],url:null,queryParams:{},onSubmit:function(_55){
return $(this).form("validate");
},onProgress:function(_56){
},success:function(_57){
},onBeforeLoad:function(_58){
},onLoadSuccess:function(_59){
},onLoadError:function(){
},onChange:function(_5a){
}};
})(jQuery);

View File

@@ -0,0 +1,530 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
var _1=false;
function _2(_3,_4){
var _5=$.data(_3,"layout");
var _6=_5.options;
var _7=_5.panels;
var cc=$(_3);
if(_4){
$.extend(_6,{width:_4.width,height:_4.height});
}
if(_3.tagName.toLowerCase()=="body"){
cc._size("fit");
}else{
cc._size(_6);
}
var _8={top:0,left:0,width:cc.width(),height:cc.height()};
_9(_a(_7.expandNorth)?_7.expandNorth:_7.north,"n");
_9(_a(_7.expandSouth)?_7.expandSouth:_7.south,"s");
_b(_a(_7.expandEast)?_7.expandEast:_7.east,"e");
_b(_a(_7.expandWest)?_7.expandWest:_7.west,"w");
_7.center.panel("resize",_8);
function _9(pp,_c){
if(!pp.length||!_a(pp)){
return;
}
var _d=pp.panel("options");
pp.panel("resize",{width:cc.width(),height:_d.height});
var _e=pp.panel("panel").outerHeight();
pp.panel("move",{left:0,top:(_c=="n"?0:cc.height()-_e)});
_8.height-=_e;
if(_c=="n"){
_8.top+=_e;
if(!_d.split&&_d.border){
_8.top--;
}
}
if(!_d.split&&_d.border){
_8.height++;
}
};
function _b(pp,_f){
if(!pp.length||!_a(pp)){
return;
}
var _10=pp.panel("options");
pp.panel("resize",{width:_10.width,height:_8.height});
var _11=pp.panel("panel").outerWidth();
pp.panel("move",{left:(_f=="e"?cc.width()-_11:0),top:_8.top});
_8.width-=_11;
if(_f=="w"){
_8.left+=_11;
if(!_10.split&&_10.border){
_8.left--;
}
}
if(!_10.split&&_10.border){
_8.width++;
}
};
};
function _12(_13){
var cc=$(_13);
cc.addClass("layout");
function _14(el){
var _15=$.fn.layout.parsePanelOptions(el);
if("north,south,east,west,center".indexOf(_15.region)>=0){
_19(_13,_15,el);
}
};
var _16=cc.layout("options");
var _17=_16.onAdd;
_16.onAdd=function(){
};
cc.find(">div,>form>div").each(function(){
_14(this);
});
_16.onAdd=_17;
cc.append("<div class=\"layout-split-proxy-h\"></div><div class=\"layout-split-proxy-v\"></div>");
cc._bind("_resize",function(e,_18){
if($(this).hasClass("easyui-fluid")||_18){
_2(_13);
}
return false;
});
};
function _19(_1a,_1b,el){
_1b.region=_1b.region||"center";
var _1c=$.data(_1a,"layout").panels;
var cc=$(_1a);
var dir=_1b.region;
if(_1c[dir].length){
return;
}
var pp=$(el);
if(!pp.length){
pp=$("<div></div>").appendTo(cc);
}
var _1d=$.extend({},$.fn.layout.paneldefaults,{width:(pp.length?parseInt(pp[0].style.width)||pp.outerWidth():"auto"),height:(pp.length?parseInt(pp[0].style.height)||pp.outerHeight():"auto"),doSize:false,collapsible:true,onOpen:function(){
var _1e=$(this).panel("header").children("div.panel-tool");
_1e.children("a.panel-tool-collapse").hide();
var _1f={north:"up",south:"down",east:"right",west:"left"};
if(!_1f[dir]){
return;
}
var _20="layout-button-"+_1f[dir];
var t=_1e.children("a."+_20);
if(!t.length){
t=$("<a href=\"javascript:;\"></a>").addClass(_20).appendTo(_1e);
t._bind("click",{dir:dir},function(e){
_39(_1a,e.data.dir);
return false;
});
}
$(this).panel("options").collapsible?t.show():t.hide();
}},_1b,{cls:((_1b.cls||"")+" layout-panel layout-panel-"+dir),bodyCls:((_1b.bodyCls||"")+" layout-body")});
pp.panel(_1d);
_1c[dir]=pp;
var _21={north:"s",south:"n",east:"w",west:"e"};
var _22=pp.panel("panel");
if(pp.panel("options").split){
_22.addClass("layout-split-"+dir);
}
_22.resizable($.extend({},{handles:(_21[dir]||""),disabled:(!pp.panel("options").split),onStartResize:function(e){
_1=true;
if(dir=="north"||dir=="south"){
var _23=$(">div.layout-split-proxy-v",_1a);
}else{
var _23=$(">div.layout-split-proxy-h",_1a);
}
var top=0,_24=0,_25=0,_26=0;
var pos={display:"block"};
if(dir=="north"){
pos.top=parseInt(_22.css("top"))+_22.outerHeight()-_23.height();
pos.left=parseInt(_22.css("left"));
pos.width=_22.outerWidth();
pos.height=_23.height();
}else{
if(dir=="south"){
pos.top=parseInt(_22.css("top"));
pos.left=parseInt(_22.css("left"));
pos.width=_22.outerWidth();
pos.height=_23.height();
}else{
if(dir=="east"){
pos.top=parseInt(_22.css("top"))||0;
pos.left=parseInt(_22.css("left"))||0;
pos.width=_23.width();
pos.height=_22.outerHeight();
}else{
if(dir=="west"){
pos.top=parseInt(_22.css("top"))||0;
pos.left=_22.outerWidth()-_23.width();
pos.width=_23.width();
pos.height=_22.outerHeight();
}
}
}
}
_23.css(pos);
$("<div class=\"layout-mask\"></div>").css({left:0,top:0,width:cc.width(),height:cc.height()}).appendTo(cc);
},onResize:function(e){
if(dir=="north"||dir=="south"){
var _27=_28(this);
$(this).resizable("options").maxHeight=_27;
var _29=$(">div.layout-split-proxy-v",_1a);
var top=dir=="north"?e.data.height-_29.height():$(_1a).height()-e.data.height;
_29.css("top",top);
}else{
var _2a=_28(this);
$(this).resizable("options").maxWidth=_2a;
var _29=$(">div.layout-split-proxy-h",_1a);
var _2b=dir=="west"?e.data.width-_29.width():$(_1a).width()-e.data.width;
_29.css("left",_2b);
}
return false;
},onStopResize:function(e){
cc.children("div.layout-split-proxy-v,div.layout-split-proxy-h").hide();
pp.panel("resize",e.data);
_2(_1a);
_1=false;
cc.find(">div.layout-mask").remove();
}},_1b));
cc.layout("options").onAdd.call(_1a,dir);
function _28(p){
var _2c="expand"+dir.substring(0,1).toUpperCase()+dir.substring(1);
var _2d=_1c["center"];
var _2e=(dir=="north"||dir=="south")?"minHeight":"minWidth";
var _2f=(dir=="north"||dir=="south")?"maxHeight":"maxWidth";
var _30=(dir=="north"||dir=="south")?"_outerHeight":"_outerWidth";
var _31=$.parser.parseValue(_2f,_1c[dir].panel("options")[_2f],$(_1a));
var _32=$.parser.parseValue(_2e,_2d.panel("options")[_2e],$(_1a));
var _33=_2d.panel("panel")[_30]()-_32;
if(_a(_1c[_2c])){
_33+=_1c[_2c][_30]()-1;
}else{
_33+=$(p)[_30]();
}
if(_33>_31){
_33=_31;
}
return _33;
};
};
function _34(_35,_36){
var _37=$.data(_35,"layout").panels;
if(_37[_36].length){
_37[_36].panel("destroy");
_37[_36]=$();
var _38="expand"+_36.substring(0,1).toUpperCase()+_36.substring(1);
if(_37[_38]){
_37[_38].panel("destroy");
_37[_38]=undefined;
}
$(_35).layout("options").onRemove.call(_35,_36);
}
};
function _39(_3a,_3b,_3c){
if(_3c==undefined){
_3c="normal";
}
var _3d=$.data(_3a,"layout");
var _3e=_3d.panels;
var p=_3e[_3b];
var _3f=p.panel("options");
if(_3f.onBeforeCollapse.call(p)==false){
return;
}
var _40="expand"+_3b.substring(0,1).toUpperCase()+_3b.substring(1);
if(!_3e[_40]){
_3e[_40]=_41(_3b);
var ep=_3e[_40].panel("panel");
if(!_3f.expandMode){
ep.css("cursor","default");
}else{
ep._bind("click",function(){
if(_3f.expandMode=="dock"){
_53(_3a,_3b);
}else{
p.panel("expand",false).panel("open");
var _42=_43();
p.panel("resize",_42.collapse);
p.panel("panel")._unbind(".layout")._bind("mouseleave.layout",{region:_3b},function(e){
var _44=this;
_3d.collapseTimer=setTimeout(function(){
$(_44).stop(true,true);
if(_1==true){
return;
}
if($("body>div.combo-p>div.combo-panel:visible").length){
return;
}
_39(_3a,e.data.region);
},_3d.options.collapseDelay);
});
p.panel("panel").animate(_42.expand,function(){
$(_3a).layout("options").onExpand.call(_3a,_3b);
});
}
return false;
});
}
}
var _45=_43();
if(!_a(_3e[_40])){
_3e.center.panel("resize",_45.resizeC);
}
p.panel("panel").animate(_45.collapse,_3c,function(){
p.panel("collapse",false).panel("close");
_3e[_40].panel("open").panel("resize",_45.expandP);
$(this)._unbind(".layout");
$(_3a).layout("options").onCollapse.call(_3a,_3b);
});
function _41(dir){
var _46={"east":"left","west":"right","north":"down","south":"up"};
var _47=(_3f.region=="north"||_3f.region=="south");
var _48="layout-button-"+_46[dir];
var p=$("<div></div>").appendTo(_3a);
p.panel($.extend({},$.fn.layout.paneldefaults,{cls:("layout-expand layout-expand-"+dir),title:"&nbsp;",titleDirection:_3f.titleDirection,iconCls:(_3f.hideCollapsedContent?null:_3f.iconCls),closed:true,minWidth:0,minHeight:0,doSize:false,region:_3f.region,collapsedSize:_3f.collapsedSize,noheader:(!_47&&_3f.hideExpandTool),tools:((_47&&_3f.hideExpandTool)?null:[{iconCls:_48,handler:function(){
_53(_3a,_3b);
return false;
}}]),onResize:function(){
var _49=$(this).children(".layout-expand-title");
if(_49.length){
var _4a=$(this).children(".panel-icon");
var _4b=_4a.length>0?(_4a._outerHeight()+2):0;
_49._outerWidth($(this).height()-_4b);
var _4c=($(this).width()-Math.min(_49._outerWidth(),_49._outerHeight()))/2;
var top=Math.max(_49._outerWidth(),_49._outerHeight());
if(_49.hasClass("layout-expand-title-down")){
_4c+=Math.min(_49._outerWidth(),_49._outerHeight());
top=0;
}
top+=_4b;
_49.css({left:(_4c+"px"),top:(top+"px")});
}
}}));
if(!_3f.hideCollapsedContent){
var _4d=typeof _3f.collapsedContent=="function"?_3f.collapsedContent.call(p[0],_3f.title):_3f.collapsedContent;
_47?p.panel("setTitle",_4d):p.html(_4d);
}
p.panel("panel").hover(function(){
$(this).addClass("layout-expand-over");
},function(){
$(this).removeClass("layout-expand-over");
});
return p;
};
function _43(){
var cc=$(_3a);
var _4e=_3e.center.panel("options");
var _4f=_3f.collapsedSize;
if(_3b=="east"){
var _50=p.panel("panel")._outerWidth();
var _51=_4e.width+_50-_4f;
if(_3f.split||!_3f.border){
_51++;
}
return {resizeC:{width:_51},expand:{left:cc.width()-_50},expandP:{top:_4e.top,left:cc.width()-_4f,width:_4f,height:_4e.height},collapse:{left:cc.width(),top:_4e.top,height:_4e.height}};
}else{
if(_3b=="west"){
var _50=p.panel("panel")._outerWidth();
var _51=_4e.width+_50-_4f;
if(_3f.split||!_3f.border){
_51++;
}
return {resizeC:{width:_51,left:_4f-1},expand:{left:0},expandP:{left:0,top:_4e.top,width:_4f,height:_4e.height},collapse:{left:-_50,top:_4e.top,height:_4e.height}};
}else{
if(_3b=="north"){
var _52=p.panel("panel")._outerHeight();
var hh=_4e.height;
if(!_a(_3e.expandNorth)){
hh+=_52-_4f+((_3f.split||!_3f.border)?1:0);
}
_3e.east.add(_3e.west).add(_3e.expandEast).add(_3e.expandWest).panel("resize",{top:_4f-1,height:hh});
return {resizeC:{top:_4f-1,height:hh},expand:{top:0},expandP:{top:0,left:0,width:cc.width(),height:_4f},collapse:{top:-_52,width:cc.width()}};
}else{
if(_3b=="south"){
var _52=p.panel("panel")._outerHeight();
var hh=_4e.height;
if(!_a(_3e.expandSouth)){
hh+=_52-_4f+((_3f.split||!_3f.border)?1:0);
}
_3e.east.add(_3e.west).add(_3e.expandEast).add(_3e.expandWest).panel("resize",{height:hh});
return {resizeC:{height:hh},expand:{top:cc.height()-_52},expandP:{top:cc.height()-_4f,left:0,width:cc.width(),height:_4f},collapse:{top:cc.height(),width:cc.width()}};
}
}
}
}
};
};
function _53(_54,_55){
var _56=$.data(_54,"layout").panels;
var p=_56[_55];
var _57=p.panel("options");
if(_57.onBeforeExpand.call(p)==false){
return;
}
var _58="expand"+_55.substring(0,1).toUpperCase()+_55.substring(1);
if(_56[_58]){
_56[_58].panel("close");
p.panel("panel").stop(true,true);
p.panel("expand",false).panel("open");
var _59=_5a();
p.panel("resize",_59.collapse);
p.panel("panel").animate(_59.expand,function(){
_2(_54);
$(_54).layout("options").onExpand.call(_54,_55);
});
}
function _5a(){
var cc=$(_54);
var _5b=_56.center.panel("options");
if(_55=="east"&&_56.expandEast){
return {collapse:{left:cc.width(),top:_5b.top,height:_5b.height},expand:{left:cc.width()-p.panel("panel")._outerWidth()}};
}else{
if(_55=="west"&&_56.expandWest){
return {collapse:{left:-p.panel("panel")._outerWidth(),top:_5b.top,height:_5b.height},expand:{left:0}};
}else{
if(_55=="north"&&_56.expandNorth){
return {collapse:{top:-p.panel("panel")._outerHeight(),width:cc.width()},expand:{top:0}};
}else{
if(_55=="south"&&_56.expandSouth){
return {collapse:{top:cc.height(),width:cc.width()},expand:{top:cc.height()-p.panel("panel")._outerHeight()}};
}
}
}
}
};
};
function _a(pp){
if(!pp){
return false;
}
if(pp.length){
return pp.panel("panel").is(":visible");
}else{
return false;
}
};
function _5c(_5d){
var _5e=$.data(_5d,"layout");
var _5f=_5e.options;
var _60=_5e.panels;
var _61=_5f.onCollapse;
_5f.onCollapse=function(){
};
_62("east");
_62("west");
_62("north");
_62("south");
_5f.onCollapse=_61;
function _62(_63){
var p=_60[_63];
if(p.length&&p.panel("options").collapsed){
_39(_5d,_63,0);
}
};
};
function _64(_65,_66,_67){
var p=$(_65).layout("panel",_66);
p.panel("options").split=_67;
var cls="layout-split-"+_66;
var _68=p.panel("panel").removeClass(cls);
if(_67){
_68.addClass(cls);
}
_68.resizable({disabled:(!_67)});
_2(_65);
};
$.fn.layout=function(_69,_6a){
if(typeof _69=="string"){
return $.fn.layout.methods[_69](this,_6a);
}
_69=_69||{};
return this.each(function(){
var _6b=$.data(this,"layout");
if(_6b){
$.extend(_6b.options,_69);
}else{
var _6c=$.extend({},$.fn.layout.defaults,$.fn.layout.parseOptions(this),_69);
$.data(this,"layout",{options:_6c,panels:{center:$(),north:$(),south:$(),east:$(),west:$()}});
_12(this);
}
_2(this);
_5c(this);
});
};
$.fn.layout.methods={options:function(jq){
return $.data(jq[0],"layout").options;
},resize:function(jq,_6d){
return jq.each(function(){
_2(this,_6d);
});
},panel:function(jq,_6e){
return $.data(jq[0],"layout").panels[_6e];
},collapse:function(jq,_6f){
return jq.each(function(){
_39(this,_6f);
});
},expand:function(jq,_70){
return jq.each(function(){
_53(this,_70);
});
},add:function(jq,_71){
return jq.each(function(){
_19(this,_71);
_2(this);
if($(this).layout("panel",_71.region).panel("options").collapsed){
_39(this,_71.region,0);
}
});
},remove:function(jq,_72){
return jq.each(function(){
_34(this,_72);
_2(this);
});
},split:function(jq,_73){
return jq.each(function(){
_64(this,_73,true);
});
},unsplit:function(jq,_74){
return jq.each(function(){
_64(this,_74,false);
});
},stopCollapsing:function(jq){
return jq.each(function(){
clearTimeout($(this).data("layout").collapseTimer);
});
}};
$.fn.layout.parseOptions=function(_75){
return $.extend({},$.parser.parseOptions(_75,[{fit:"boolean"}]));
};
$.fn.layout.defaults={fit:false,onExpand:function(_76){
},onCollapse:function(_77){
},onAdd:function(_78){
},onRemove:function(_79){
}};
$.fn.layout.parsePanelOptions=function(_7a){
var t=$(_7a);
return $.extend({},$.fn.panel.parseOptions(_7a),$.parser.parseOptions(_7a,["region",{split:"boolean",collpasedSize:"number",minWidth:"number",minHeight:"number",maxWidth:"number",maxHeight:"number"}]));
};
$.fn.layout.paneldefaults=$.extend({},$.fn.panel.defaults,{region:null,split:false,collapseDelay:100,collapsedSize:32,expandMode:"float",hideExpandTool:false,hideCollapsedContent:true,collapsedContent:function(_7b){
var p=$(this);
var _7c=p.panel("options");
if(_7c.region=="north"||_7c.region=="south"){
return _7b;
}
var cc=[];
if(_7c.iconCls){
cc.push("<div class=\"panel-icon "+_7c.iconCls+"\"></div>");
}
cc.push("<div class=\"panel-title layout-expand-title");
cc.push(" layout-expand-title-"+_7c.titleDirection);
cc.push(_7c.iconCls?" layout-expand-with-icon":"");
cc.push("\">");
cc.push(_7b);
cc.push("</div>");
return cc.join("");
},minWidth:10,minHeight:10,maxWidth:10000,maxHeight:10000});
})(jQuery);

View File

@@ -0,0 +1,185 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2,_3){
var _4=$.data(_2,"linkbutton").options;
if(_3){
$.extend(_4,_3);
}
if(_4.width||_4.height||_4.fit){
var _5=$(_2);
var _6=_5.parent();
var _7=_5.is(":visible");
if(!_7){
var _8=$("<div style=\"display:none\"></div>").insertBefore(_2);
var _9={position:_5.css("position"),display:_5.css("display"),left:_5.css("left")};
_5.appendTo("body");
_5.css({position:"absolute",display:"inline-block",left:-20000});
}
_5._size(_4,_6);
var _a=_5.find(".l-btn-left");
_a.css("margin-top",0);
_a.css("margin-top",parseInt((_5.height()-_a.height())/2)+"px");
if(!_7){
_5.insertAfter(_8);
_5.css(_9);
_8.remove();
}
}
};
function _b(_c){
var _d=$.data(_c,"linkbutton").options;
var t=$(_c).empty();
t.addClass("l-btn").removeClass("l-btn-plain l-btn-selected l-btn-plain-selected l-btn-outline");
t.removeClass("l-btn-small l-btn-medium l-btn-large").addClass("l-btn-"+_d.size);
if(_d.plain){
t.addClass("l-btn-plain");
}
if(_d.outline){
t.addClass("l-btn-outline");
}
if(_d.selected){
t.addClass(_d.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected");
}
t.attr("group",_d.group||"");
t.attr("id",_d.id||"");
var _e=$("<span class=\"l-btn-left\"></span>").appendTo(t);
if(_d.text){
$("<span class=\"l-btn-text\"></span>").html(_d.text).appendTo(_e);
}else{
$("<span class=\"l-btn-text l-btn-empty\">&nbsp;</span>").appendTo(_e);
}
if(_d.iconCls){
$("<span class=\"l-btn-icon\">&nbsp;</span>").addClass(_d.iconCls).appendTo(_e);
_e.addClass("l-btn-icon-"+_d.iconAlign);
}
t._unbind(".linkbutton")._bind("focus.linkbutton",function(){
if(!_d.disabled){
$(this).addClass("l-btn-focus");
}
})._bind("blur.linkbutton",function(){
$(this).removeClass("l-btn-focus");
})._bind("click.linkbutton",function(){
if(!_d.disabled){
if(_d.toggle){
if(_d.selected){
$(this).linkbutton("unselect");
}else{
$(this).linkbutton("select");
}
}
_d.onClick.call(this);
}
});
_f(_c,_d.selected);
_10(_c,_d.disabled);
};
function _f(_11,_12){
var _13=$.data(_11,"linkbutton").options;
if(_12){
if(_13.group){
$("a.l-btn[group=\""+_13.group+"\"]").each(function(){
var o=$(this).linkbutton("options");
if(o.toggle){
$(this).removeClass("l-btn-selected l-btn-plain-selected");
o.selected=false;
}
});
}
$(_11).addClass(_13.plain?"l-btn-selected l-btn-plain-selected":"l-btn-selected");
_13.selected=true;
}else{
if(!_13.group){
$(_11).removeClass("l-btn-selected l-btn-plain-selected");
_13.selected=false;
}
}
};
function _10(_14,_15){
var _16=$.data(_14,"linkbutton");
var _17=_16.options;
$(_14).removeClass("l-btn-disabled l-btn-plain-disabled");
if(_15){
_17.disabled=true;
var _18=$(_14).attr("href");
if(_18){
_16.href=_18;
$(_14).attr("href","javascript:;");
}
if(_14.onclick){
_16.onclick=_14.onclick;
_14.onclick=null;
}
_17.plain?$(_14).addClass("l-btn-disabled l-btn-plain-disabled"):$(_14).addClass("l-btn-disabled");
}else{
_17.disabled=false;
if(_16.href){
$(_14).attr("href",_16.href);
}
if(_16.onclick){
_14.onclick=_16.onclick;
}
}
$(_14)._propAttr("disabled",_15);
};
$.fn.linkbutton=function(_19,_1a){
if(typeof _19=="string"){
return $.fn.linkbutton.methods[_19](this,_1a);
}
_19=_19||{};
return this.each(function(){
var _1b=$.data(this,"linkbutton");
if(_1b){
$.extend(_1b.options,_19);
}else{
$.data(this,"linkbutton",{options:$.extend({},$.fn.linkbutton.defaults,$.fn.linkbutton.parseOptions(this),_19)});
$(this)._propAttr("disabled",false);
$(this)._bind("_resize",function(e,_1c){
if($(this).hasClass("easyui-fluid")||_1c){
_1(this);
}
return false;
});
}
_b(this);
_1(this);
});
};
$.fn.linkbutton.methods={options:function(jq){
return $.data(jq[0],"linkbutton").options;
},resize:function(jq,_1d){
return jq.each(function(){
_1(this,_1d);
});
},enable:function(jq){
return jq.each(function(){
_10(this,false);
});
},disable:function(jq){
return jq.each(function(){
_10(this,true);
});
},select:function(jq){
return jq.each(function(){
_f(this,true);
});
},unselect:function(jq){
return jq.each(function(){
_f(this,false);
});
}};
$.fn.linkbutton.parseOptions=function(_1e){
var t=$(_1e);
return $.extend({},$.parser.parseOptions(_1e,["id","iconCls","iconAlign","group","size","text",{plain:"boolean",toggle:"boolean",selected:"boolean",outline:"boolean"}]),{disabled:(t.attr("disabled")?true:undefined),text:($.trim(t.html())||undefined),iconCls:(t.attr("icon")||t.attr("iconCls"))});
};
$.fn.linkbutton.defaults={id:null,disabled:false,toggle:false,selected:false,outline:false,group:null,plain:false,text:"",iconCls:null,iconAlign:"left",size:"small",onClick:function(){
}};
})(jQuery);

View File

@@ -0,0 +1,221 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$(_2).data("maskedbox");
var _4=_3.options;
$(_2).textbox(_4);
$(_2).maskedbox("initValue",_4.value);
};
function _5(_6,_7){
var _8=$(_6).maskedbox("options");
var tt=(_7||$(_6).maskedbox("getText")||"").split("");
var vv=[];
for(var i=0;i<_8.mask.length;i++){
if(_8.masks[_8.mask[i]]){
var t=tt[i];
vv.push(t!=_8.promptChar?t:" ");
}
}
return vv.join("");
};
function _9(_a,_b){
var _c=$(_a).maskedbox("options");
var cc=_b.split("");
var tt=[];
for(var i=0;i<_c.mask.length;i++){
var m=_c.mask[i];
var r=_c.masks[m];
if(r){
var c=cc.shift();
if(c!=undefined){
var d=new RegExp(r,"i");
if(d.test(c)){
tt.push(c);
continue;
}
}
tt.push(_c.promptChar);
}else{
tt.push(m);
}
}
return tt.join("");
};
function _d(_e,c){
var _f=$(_e).maskedbox("options");
var _10=$(_e).maskedbox("getSelectionRange");
var _11=_12(_e,_10.start);
var end=_12(_e,_10.end);
if(_11!=-1){
var r=new RegExp(_f.masks[_f.mask[_11]],"i");
if(r.test(c)){
var vv=_5(_e).split("");
var _13=_11-_14(_e,_11);
var _15=end-_14(_e,end);
vv.splice(_13,_15-_13,c);
$(_e).maskedbox("setValue",_9(_e,vv.join("")));
_11=_12(_e,++_11);
$(_e).maskedbox("setSelectionRange",{start:_11,end:_11});
}
}
};
function _16(_17,_18){
var _19=$(_17).maskedbox("options");
var vv=_5(_17).split("");
var _1a=$(_17).maskedbox("getSelectionRange");
if(_1a.start==_1a.end){
if(_18){
var _1b=_1c(_17,_1a.start);
}else{
var _1b=_12(_17,_1a.start);
}
var _1d=_1b-_14(_17,_1b);
if(_1d>=0){
vv.splice(_1d,1);
}
}else{
var _1b=_12(_17,_1a.start);
var end=_1c(_17,_1a.end);
var _1d=_1b-_14(_17,_1b);
var _1e=end-_14(_17,end);
vv.splice(_1d,_1e-_1d+1);
}
$(_17).maskedbox("setValue",_9(_17,vv.join("")));
$(_17).maskedbox("setSelectionRange",{start:_1b,end:_1b});
};
function _14(_1f,pos){
var _20=$(_1f).maskedbox("options");
var _21=0;
if(pos>=_20.mask.length){
pos--;
}
for(var i=pos;i>=0;i--){
if(_20.masks[_20.mask[i]]==undefined){
_21++;
}
}
return _21;
};
function _12(_22,pos){
var _23=$(_22).maskedbox("options");
var m=_23.mask[pos];
var r=_23.masks[m];
while(pos<_23.mask.length&&!r){
pos++;
m=_23.mask[pos];
r=_23.masks[m];
}
return pos;
};
function _1c(_24,pos){
var _25=$(_24).maskedbox("options");
var m=_25.mask[--pos];
var r=_25.masks[m];
while(pos>=0&&!r){
pos--;
m=_25.mask[pos];
r=_25.masks[m];
}
return pos<0?0:pos;
};
function _26(e){
if(e.metaKey||e.ctrlKey){
return;
}
var _27=e.data.target;
var _28=$(_27).maskedbox("options");
var _29=[9,13,35,36,37,39];
if($.inArray(e.keyCode,_29)!=-1){
return true;
}
if(e.keyCode>=96&&e.keyCode<=105){
e.keyCode-=48;
}
var c=String.fromCharCode(e.keyCode);
if(e.keyCode>=65&&e.keyCode<=90&&!e.shiftKey){
c=c.toLowerCase();
}else{
if(e.keyCode==189){
c="-";
}else{
if(e.keyCode==187){
c="+";
}else{
if(e.keyCode==190){
c=".";
}
}
}
}
if(e.keyCode==8){
_16(_27,true);
}else{
if(e.keyCode==46){
_16(_27,false);
}else{
_d(_27,c);
}
}
return false;
};
$.extend($.fn.textbox.methods,{inputMask:function(jq,_2a){
return jq.each(function(){
var _2b=this;
var _2c=$.extend({},$.fn.maskedbox.defaults,_2a);
$.data(_2b,"maskedbox",{options:_2c});
var _2d=$(_2b).textbox("textbox");
_2d._unbind(".maskedbox");
for(var _2e in _2c.inputEvents){
_2d._bind(_2e+".maskedbox",{target:_2b},_2c.inputEvents[_2e]);
}
});
}});
$.fn.maskedbox=function(_2f,_30){
if(typeof _2f=="string"){
var _31=$.fn.maskedbox.methods[_2f];
if(_31){
return _31(this,_30);
}else{
return this.textbox(_2f,_30);
}
}
_2f=_2f||{};
return this.each(function(){
var _32=$.data(this,"maskedbox");
if(_32){
$.extend(_32.options,_2f);
}else{
$.data(this,"maskedbox",{options:$.extend({},$.fn.maskedbox.defaults,$.fn.maskedbox.parseOptions(this),_2f)});
}
_1(this);
});
};
$.fn.maskedbox.methods={options:function(jq){
var _33=jq.textbox("options");
return $.extend($.data(jq[0],"maskedbox").options,{width:_33.width,value:_33.value,originalValue:_33.originalValue,disabled:_33.disabled,readonly:_33.readonly});
},initValue:function(jq,_34){
return jq.each(function(){
_34=_9(this,_5(this,_34));
$(this).textbox("initValue",_34);
});
},setValue:function(jq,_35){
return jq.each(function(){
_35=_9(this,_5(this,_35));
$(this).textbox("setValue",_35);
});
}};
$.fn.maskedbox.parseOptions=function(_36){
var t=$(_36);
return $.extend({},$.fn.textbox.parseOptions(_36),$.parser.parseOptions(_36,["mask","promptChar"]),{});
};
$.fn.maskedbox.defaults=$.extend({},$.fn.textbox.defaults,{mask:"",promptChar:"_",masks:{"9":"[0-9]","a":"[a-zA-Z]","*":"[0-9a-zA-Z]"},inputEvents:{keydown:_26}});
})(jQuery);

View File

@@ -0,0 +1,502 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
$(function(){
$(document)._unbind(".menu")._bind("mousedown.menu",function(e){
var m=$(e.target).closest("div.menu,div.combo-p");
if(m.length){
return;
}
$("body>div.menu-top:visible").not(".menu-inline").menu("hide");
_1($("body>div.menu:visible").not(".menu-inline"));
});
});
function _2(_3){
var _4=$.data(_3,"menu").options;
$(_3).addClass("menu-top");
_4.inline?$(_3).addClass("menu-inline"):$(_3).appendTo("body");
$(_3)._bind("_resize",function(e,_5){
if($(this).hasClass("easyui-fluid")||_5){
$(_3).menu("resize",_3);
}
return false;
});
var _6=_7($(_3));
for(var i=0;i<_6.length;i++){
_b(_3,_6[i]);
}
function _7(_8){
var _9=[];
_8.addClass("menu");
_9.push(_8);
if(!_8.hasClass("menu-content")){
_8.children("div").each(function(){
var _a=$(this).children("div");
if(_a.length){
_a.appendTo("body");
this.submenu=_a;
var mm=_7(_a);
_9=_9.concat(mm);
}
});
}
return _9;
};
};
function _b(_c,_d){
var _e=$(_d).addClass("menu");
if(!_e.data("menu")){
_e.data("menu",{options:$.parser.parseOptions(_e[0],["width","height"])});
}
if(!_e.hasClass("menu-content")){
_e.children("div").each(function(){
_f(_c,this);
});
$("<div class=\"menu-line\"></div>").prependTo(_e);
}
_10(_c,_e);
if(!_e.hasClass("menu-inline")){
_e.hide();
}
_11(_c,_e);
};
function _f(_12,div,_13){
var _14=$(div);
var _15=$.extend({},$.parser.parseOptions(_14[0],["id","name","iconCls","href",{separator:"boolean"}]),{disabled:(_14.attr("disabled")?true:undefined),text:$.trim(_14.html()),onclick:_14[0].onclick},_13||{});
_15.onclick=_15.onclick||_15.handler||null;
_14.data("menuitem",{options:_15});
if(_15.separator){
_14.addClass("menu-sep");
}
if(!_14.hasClass("menu-sep")){
_14.addClass("menu-item");
_14.empty().append($("<div class=\"menu-text\"></div>").html(_15.text));
if(_15.iconCls){
$("<div class=\"menu-icon\"></div>").addClass(_15.iconCls).appendTo(_14);
}
if(_15.id){
_14.attr("id",_15.id);
}
if(_15.onclick){
if(typeof _15.onclick=="string"){
_14.attr("onclick",_15.onclick);
}else{
_14[0].onclick=eval(_15.onclick);
}
}
if(_15.disabled){
_16(_12,_14[0],true);
}
if(_14[0].submenu){
$("<div class=\"menu-rightarrow\"></div>").appendTo(_14);
}
}
};
function _10(_17,_18){
var _19=$.data(_17,"menu").options;
var _1a=_18.attr("style")||"";
var _1b=_18.is(":visible");
_18.css({display:"block",left:-10000,height:"auto",overflow:"hidden"});
_18.find(".menu-item").each(function(){
$(this)._outerHeight(_19.itemHeight);
$(this).find(".menu-text").css({height:(_19.itemHeight-2)+"px",lineHeight:(_19.itemHeight-2)+"px"});
});
_18.removeClass("menu-noline").addClass(_19.noline?"menu-noline":"");
var _1c=_18.data("menu").options;
var _1d=_1c.width;
var _1e=_1c.height;
if(isNaN(parseInt(_1d))){
_1d=0;
_18.find("div.menu-text").each(function(){
if(_1d<$(this).outerWidth()){
_1d=$(this).outerWidth();
}
});
_1d=_1d?_1d+40:"";
}
var _1f=_18.outerHeight();
if(isNaN(parseInt(_1e))){
_1e=_1f;
if(_18.hasClass("menu-top")&&_19.alignTo){
var at=$(_19.alignTo);
var h1=at.offset().top-$(document).scrollTop();
var h2=$(window)._outerHeight()+$(document).scrollTop()-at.offset().top-at._outerHeight();
_1e=Math.min(_1e,Math.max(h1,h2));
}else{
if(_1e>$(window)._outerHeight()){
_1e=$(window).height();
}
}
}
_18.attr("style",_1a);
_18.show();
_18._size($.extend({},_1c,{width:_1d,height:_1e,minWidth:_1c.minWidth||_19.minWidth,maxWidth:_1c.maxWidth||_19.maxWidth}));
_18.find(".easyui-fluid").triggerHandler("_resize",[true]);
_18.css("overflow",_18.outerHeight()<_1f?"auto":"hidden");
_18.children("div.menu-line")._outerHeight(_1f-2);
if(!_1b){
_18.hide();
}
};
function _11(_20,_21){
var _22=$.data(_20,"menu");
var _23=_22.options;
_21._unbind(".menu");
for(var _24 in _23.events){
_21._bind(_24+".menu",{target:_20},_23.events[_24]);
}
};
function _25(e){
var _26=e.data.target;
var _27=$.data(_26,"menu");
if(_27.timer){
clearTimeout(_27.timer);
_27.timer=null;
}
};
function _28(e){
var _29=e.data.target;
var _2a=$.data(_29,"menu");
if(_2a.options.hideOnUnhover){
_2a.timer=setTimeout(function(){
_2b(_29,$(_29).hasClass("menu-inline"));
},_2a.options.duration);
}
};
function _2c(e){
var _2d=e.data.target;
var _2e=$(e.target).closest(".menu-item");
if(_2e.length){
_2e.siblings().each(function(){
if(this.submenu){
_1(this.submenu);
}
$(this).removeClass("menu-active");
});
_2e.addClass("menu-active");
if(_2e.hasClass("menu-item-disabled")){
_2e.addClass("menu-active-disabled");
return;
}
var _2f=_2e[0].submenu;
if(_2f){
$(_2d).menu("show",{menu:_2f,parent:_2e});
}
}
};
function _30(e){
var _31=$(e.target).closest(".menu-item");
if(_31.length){
_31.removeClass("menu-active menu-active-disabled");
var _32=_31[0].submenu;
if(_32){
if(e.pageX>=parseInt(_32.css("left"))){
_31.addClass("menu-active");
}else{
_1(_32);
}
}else{
_31.removeClass("menu-active");
}
}
};
function _33(e){
var _34=e.data.target;
var _35=$(e.target).closest(".menu-item");
if(_35.length){
var _36=$(_34).data("menu").options;
var _37=_35.data("menuitem").options;
if(_37.disabled){
return;
}
if(!_35[0].submenu){
_2b(_34,_36.inline);
if(_37.href){
location.href=_37.href;
}
}
_35.trigger("mouseenter");
_36.onClick.call(_34,$(_34).menu("getItem",_35[0]));
}
};
function _2b(_38,_39){
var _3a=$.data(_38,"menu");
if(_3a){
if($(_38).is(":visible")){
_1($(_38));
if(_39){
$(_38).show();
}else{
_3a.options.onHide.call(_38);
}
}
}
return false;
};
function _3b(_3c,_3d){
_3d=_3d||{};
var _3e,top;
var _3f=$.data(_3c,"menu").options;
var _40=$(_3d.menu||_3c);
$(_3c).menu("resize",_40[0]);
if(_40.hasClass("menu-top")){
$.extend(_3f,_3d);
_3e=_3f.left;
top=_3f.top;
if(_3f.alignTo){
var at=$(_3f.alignTo);
_3e=at.offset().left;
top=at.offset().top+at._outerHeight();
if(_3f.align=="right"){
_3e+=at.outerWidth()-_40.outerWidth();
}
}
if(_3e+_40.outerWidth()>$(window)._outerWidth()+$(document)._scrollLeft()){
_3e=$(window)._outerWidth()+$(document).scrollLeft()-_40.outerWidth()-5;
}
if(_3e<0){
_3e=0;
}
top=_41(top,_3f.alignTo);
}else{
var _42=_3d.parent;
_3e=_42.offset().left+_42.outerWidth()-2;
if(_3e+_40.outerWidth()+5>$(window)._outerWidth()+$(document).scrollLeft()){
_3e=_42.offset().left-_40.outerWidth()+2;
}
top=_41(_42.offset().top-3);
}
function _41(top,_43){
if(top+_40.outerHeight()>$(window)._outerHeight()+$(document).scrollTop()){
if(_43){
top=$(_43).offset().top-_40._outerHeight();
}else{
top=$(window)._outerHeight()+$(document).scrollTop()-_40.outerHeight();
}
}
if(top<0){
top=0;
}
return top;
};
_40.css(_3f.position.call(_3c,_40[0],_3e,top));
_40.show(0,function(){
if(!_40[0].shadow){
_40[0].shadow=$("<div class=\"menu-shadow\"></div>").insertAfter(_40);
}
_40[0].shadow.css({display:(_40.hasClass("menu-inline")?"none":"block"),zIndex:$.fn.menu.defaults.zIndex++,left:_40.css("left"),top:_40.css("top"),width:_40.outerWidth(),height:_40.outerHeight()});
_40.css("z-index",$.fn.menu.defaults.zIndex++);
if(_40.hasClass("menu-top")){
_3f.onShow.call(_3c);
}
});
};
function _1(_44){
if(_44&&_44.length){
_45(_44);
_44.find("div.menu-item").each(function(){
if(this.submenu){
_1(this.submenu);
}
$(this).removeClass("menu-active");
});
}
function _45(m){
m.stop(true,true);
if(m[0].shadow){
m[0].shadow.hide();
}
m.hide();
};
};
function _46(_47,_48){
var _49=null;
var fn=$.isFunction(_48)?_48:function(_4a){
for(var p in _48){
if(_4a[p]!=_48[p]){
return false;
}
}
return true;
};
function _4b(_4c){
_4c.children("div.menu-item").each(function(){
var _4d=$(this).data("menuitem").options;
if(fn.call(_47,_4d)==true){
_49=$(_47).menu("getItem",this);
}else{
if(this.submenu&&!_49){
_4b(this.submenu);
}
}
});
};
_4b($(_47));
return _49;
};
function _16(_4e,_4f,_50){
var t=$(_4f);
if(t.hasClass("menu-item")){
var _51=t.data("menuitem").options;
_51.disabled=_50;
if(_50){
t.addClass("menu-item-disabled");
t[0].onclick=null;
}else{
t.removeClass("menu-item-disabled");
t[0].onclick=_51.onclick;
}
}
};
function _52(_53,_54){
var _55=$.data(_53,"menu").options;
var _56=$(_53);
if(_54.parent){
if(!_54.parent.submenu){
var _57=$("<div></div>").appendTo("body");
_54.parent.submenu=_57;
$("<div class=\"menu-rightarrow\"></div>").appendTo(_54.parent);
_b(_53,_57);
}
_56=_54.parent.submenu;
}
var div=$("<div></div>").appendTo(_56);
_f(_53,div,_54);
};
function _58(_59,_5a){
function _5b(el){
if(el.submenu){
el.submenu.children("div.menu-item").each(function(){
_5b(this);
});
var _5c=el.submenu[0].shadow;
if(_5c){
_5c.remove();
}
el.submenu.remove();
}
$(el).remove();
};
_5b(_5a);
};
function _5d(_5e,_5f,_60){
var _61=$(_5f).parent();
if(_60){
$(_5f).show();
}else{
$(_5f).hide();
}
_10(_5e,_61);
};
function _62(_63){
$(_63).children("div.menu-item").each(function(){
_58(_63,this);
});
if(_63.shadow){
_63.shadow.remove();
}
$(_63).remove();
};
$.fn.menu=function(_64,_65){
if(typeof _64=="string"){
return $.fn.menu.methods[_64](this,_65);
}
_64=_64||{};
return this.each(function(){
var _66=$.data(this,"menu");
if(_66){
$.extend(_66.options,_64);
}else{
_66=$.data(this,"menu",{options:$.extend({},$.fn.menu.defaults,$.fn.menu.parseOptions(this),_64)});
_2(this);
}
$(this).css({left:_66.options.left,top:_66.options.top});
});
};
$.fn.menu.methods={options:function(jq){
return $.data(jq[0],"menu").options;
},show:function(jq,pos){
return jq.each(function(){
_3b(this,pos);
});
},hide:function(jq){
return jq.each(function(){
_2b(this);
});
},destroy:function(jq){
return jq.each(function(){
_62(this);
});
},setText:function(jq,_67){
return jq.each(function(){
var _68=$(_67.target).data("menuitem").options;
_68.text=_67.text;
$(_67.target).children("div.menu-text").html(_67.text);
});
},setIcon:function(jq,_69){
return jq.each(function(){
var _6a=$(_69.target).data("menuitem").options;
_6a.iconCls=_69.iconCls;
$(_69.target).children("div.menu-icon").remove();
if(_69.iconCls){
$("<div class=\"menu-icon\"></div>").addClass(_69.iconCls).appendTo(_69.target);
}
});
},getItem:function(jq,_6b){
var _6c=$(_6b).data("menuitem").options;
return $.extend({},_6c,{target:$(_6b)[0]});
},findItem:function(jq,_6d){
if(typeof _6d=="string"){
return _46(jq[0],function(_6e){
return $("<div>"+_6e.text+"</div>").text()==_6d;
});
}else{
return _46(jq[0],_6d);
}
},appendItem:function(jq,_6f){
return jq.each(function(){
_52(this,_6f);
});
},removeItem:function(jq,_70){
return jq.each(function(){
_58(this,_70);
});
},enableItem:function(jq,_71){
return jq.each(function(){
_16(this,_71,false);
});
},disableItem:function(jq,_72){
return jq.each(function(){
_16(this,_72,true);
});
},showItem:function(jq,_73){
return jq.each(function(){
_5d(this,_73,true);
});
},hideItem:function(jq,_74){
return jq.each(function(){
_5d(this,_74,false);
});
},resize:function(jq,_75){
return jq.each(function(){
_10(this,_75?$(_75):$(this));
});
}};
$.fn.menu.parseOptions=function(_76){
return $.extend({},$.parser.parseOptions(_76,[{minWidth:"number",itemHeight:"number",duration:"number",hideOnUnhover:"boolean"},{fit:"boolean",inline:"boolean",noline:"boolean"}]));
};
$.fn.menu.defaults={zIndex:110000,left:0,top:0,alignTo:null,align:"left",minWidth:150,itemHeight:32,duration:100,hideOnUnhover:true,inline:false,fit:false,noline:false,events:{mouseenter:_25,mouseleave:_28,mouseover:_2c,mouseout:_30,click:_33},position:function(_77,_78,top){
return {left:_78,top:top};
},onShow:function(){
},onHide:function(){
},onClick:function(_79){
}};
})(jQuery);

View File

@@ -0,0 +1,123 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"menubutton").options;
var _4=$(_2);
_4.linkbutton(_3);
if(_3.hasDownArrow){
_4.removeClass(_3.cls.btn1+" "+_3.cls.btn2).addClass("m-btn");
_4.removeClass("m-btn-small m-btn-medium m-btn-large").addClass("m-btn-"+_3.size);
var _5=_4.find(".l-btn-left");
$("<span></span>").addClass(_3.cls.arrow).appendTo(_5);
$("<span></span>").addClass("m-btn-line").appendTo(_5);
}
$(_2).menubutton("resize");
if(_3.menu){
$(_3.menu).menu({duration:_3.duration});
var _6=$(_3.menu).menu("options");
var _7=_6.onShow;
var _8=_6.onHide;
$.extend(_6,{onShow:function(){
var _9=$(this).menu("options");
var _a=$(_9.alignTo);
var _b=_a.menubutton("options");
_a.addClass((_b.plain==true)?_b.cls.btn2:_b.cls.btn1);
_7.call(this);
},onHide:function(){
var _c=$(this).menu("options");
var _d=$(_c.alignTo);
var _e=_d.menubutton("options");
_d.removeClass((_e.plain==true)?_e.cls.btn2:_e.cls.btn1);
_8.call(this);
}});
}
};
function _f(_10){
var _11=$.data(_10,"menubutton").options;
var btn=$(_10);
var t=btn.find("."+_11.cls.trigger);
if(!t.length){
t=btn;
}
t._unbind(".menubutton");
var _12=null;
t._bind(_11.showEvent+".menubutton",function(){
if(!_13()){
_12=setTimeout(function(){
_14(_10);
},_11.duration);
return false;
}
})._bind(_11.hideEvent+".menubutton",function(){
if(_12){
clearTimeout(_12);
}
$(_11.menu).triggerHandler("mouseleave");
});
function _13(){
return $(_10).linkbutton("options").disabled;
};
};
function _14(_15){
var _16=$(_15).menubutton("options");
if(_16.disabled||!_16.menu){
return;
}
$("body>div.menu-top").menu("hide");
var btn=$(_15);
var mm=$(_16.menu);
if(mm.length){
mm.menu("options").alignTo=btn;
mm.menu("show",{alignTo:btn,align:_16.menuAlign});
}
btn.blur();
};
$.fn.menubutton=function(_17,_18){
if(typeof _17=="string"){
var _19=$.fn.menubutton.methods[_17];
if(_19){
return _19(this,_18);
}else{
return this.linkbutton(_17,_18);
}
}
_17=_17||{};
return this.each(function(){
var _1a=$.data(this,"menubutton");
if(_1a){
$.extend(_1a.options,_17);
}else{
$.data(this,"menubutton",{options:$.extend({},$.fn.menubutton.defaults,$.fn.menubutton.parseOptions(this),_17)});
$(this)._propAttr("disabled",false);
}
_1(this);
_f(this);
});
};
$.fn.menubutton.methods={options:function(jq){
var _1b=jq.linkbutton("options");
return $.extend($.data(jq[0],"menubutton").options,{toggle:_1b.toggle,selected:_1b.selected,disabled:_1b.disabled});
},destroy:function(jq){
return jq.each(function(){
var _1c=$(this).menubutton("options");
if(_1c.menu){
$(_1c.menu).menu("destroy");
}
$(this).remove();
});
}};
$.fn.menubutton.parseOptions=function(_1d){
var t=$(_1d);
return $.extend({},$.fn.linkbutton.parseOptions(_1d),$.parser.parseOptions(_1d,["menu",{plain:"boolean",hasDownArrow:"boolean",duration:"number"}]));
};
$.fn.menubutton.defaults=$.extend({},$.fn.linkbutton.defaults,{plain:true,hasDownArrow:true,menu:null,menuAlign:"left",duration:100,showEvent:"mouseenter",hideEvent:"mouseleave",cls:{btn1:"m-btn-active",btn2:"m-btn-plain-active",arrow:"m-btn-downarrow",trigger:"m-btn"}});
})(jQuery);

View File

@@ -0,0 +1,186 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(){
$(document)._unbind(".messager")._bind("keydown.messager",function(e){
if(e.keyCode==27){
$("body").children("div.messager-window").children("div.messager-body").each(function(){
$(this).dialog("close");
});
}else{
if(e.keyCode==9){
var _2=$("body").children("div.messager-window");
if(!_2.length){
return;
}
var _3=_2.find(".messager-input,.messager-button .l-btn");
for(var i=0;i<_3.length;i++){
if($(_3[i]).is(":focus")){
$(_3[i>=_3.length-1?0:i+1]).focus();
return false;
}
}
}else{
if(e.keyCode==13){
var _4=$(e.target).closest("input.messager-input");
if(_4.length){
var _5=_4.closest(".messager-body");
_6(_5,_4.val());
}
}
}
}
});
};
function _7(){
$(document)._unbind(".messager");
};
function _8(_9){
var _a=$.extend({},$.messager.defaults,{modal:false,shadow:false,draggable:false,resizable:false,closed:true,style:{left:"",top:"",right:0,zIndex:$.fn.window.defaults.zIndex++,bottom:-document.body.scrollTop-document.documentElement.scrollTop},title:"",width:300,height:150,minHeight:0,showType:"slide",showSpeed:600,content:_9.msg,timeout:4000},_9);
var _b=$("<div class=\"messager-body\"></div>").appendTo("body");
_b.dialog($.extend({},_a,{noheader:(_a.title?false:true),openAnimation:(_a.showType),closeAnimation:(_a.showType=="show"?"hide":_a.showType),openDuration:_a.showSpeed,closeDuration:_a.showSpeed,onOpen:function(){
_b.dialog("dialog").hover(function(){
if(_a.timer){
clearTimeout(_a.timer);
}
},function(){
_c();
});
_c();
function _c(){
if(_a.timeout>0){
_a.timer=setTimeout(function(){
if(_b.length&&_b.data("dialog")){
_b.dialog("close");
}
},_a.timeout);
}
};
if(_9.onOpen){
_9.onOpen.call(this);
}else{
_a.onOpen.call(this);
}
},onClose:function(){
if(_a.timer){
clearTimeout(_a.timer);
}
if(_9.onClose){
_9.onClose.call(this);
}else{
_a.onClose.call(this);
}
_b.dialog("destroy");
}}));
_b.dialog("dialog").css(_a.style);
_b.dialog("open");
return _b;
};
function _d(_e){
_1();
var _f=$("<div class=\"messager-body\"></div>").appendTo("body");
_f.dialog($.extend({},_e,{noheader:(_e.title?false:true),onClose:function(){
_7();
if(_e.onClose){
_e.onClose.call(this);
}
_f.dialog("destroy");
}}));
var win=_f.dialog("dialog").addClass("messager-window");
win.find(".dialog-button").addClass("messager-button").find("a:first").focus();
return _f;
};
function _6(dlg,_10){
var _11=dlg.dialog("options");
dlg.dialog("close");
_11.fn(_10);
};
$.messager={show:function(_12){
return _8(_12);
},alert:function(_13,msg,_14,fn){
var _15=typeof _13=="object"?_13:{title:_13,msg:msg,icon:_14,fn:fn};
var cls=_15.icon?"messager-icon messager-"+_15.icon:"";
_15=$.extend({},$.messager.defaults,{content:"<div class=\""+cls+"\"></div>"+"<div>"+_15.msg+"</div>"+"<div style=\"clear:both;\"></div>"},_15);
if(!_15.buttons){
_15.buttons=[{text:_15.ok,onClick:function(){
_6(dlg);
}}];
}
var dlg=_d(_15);
return dlg;
},confirm:function(_16,msg,fn){
var _17=typeof _16=="object"?_16:{title:_16,msg:msg,fn:fn};
_17=$.extend({},$.messager.defaults,{content:"<div class=\"messager-icon messager-question\"></div>"+"<div>"+_17.msg+"</div>"+"<div style=\"clear:both;\"></div>"},_17);
if(!_17.buttons){
_17.buttons=[{text:_17.ok,onClick:function(){
_6(dlg,true);
}},{text:_17.cancel,onClick:function(){
_6(dlg,false);
}}];
}
var dlg=_d(_17);
return dlg;
},prompt:function(_18,msg,fn){
var _19=typeof _18=="object"?_18:{title:_18,msg:msg,fn:fn};
_19=$.extend({},$.messager.defaults,{content:"<div class=\"messager-icon messager-question\"></div>"+"<div>"+_19.msg+"</div>"+"<br>"+"<div style=\"clear:both;\"></div>"+"<div><input class=\"messager-input\" type=\"text\"></div>"},_19);
if(!_19.buttons){
_19.buttons=[{text:_19.ok,onClick:function(){
_6(dlg,dlg.find(".messager-input").val());
}},{text:_19.cancel,onClick:function(){
_6(dlg);
}}];
}
var dlg=_d(_19);
dlg.find(".messager-input").focus();
return dlg;
},progress:function(_1a){
var _1b={bar:function(){
return $("body>div.messager-window").find("div.messager-p-bar");
},close:function(){
var dlg=$("body>div.messager-window>div.messager-body:has(div.messager-progress)");
if(dlg.length){
dlg.dialog("close");
}
}};
if(typeof _1a=="string"){
var _1c=_1b[_1a];
return _1c();
}
_1a=_1a||{};
var _1d=$.extend({},{title:"",minHeight:0,content:undefined,msg:"",text:undefined,interval:300},_1a);
var dlg=_d($.extend({},$.messager.defaults,{content:"<div class=\"messager-progress\"><div class=\"messager-p-msg\">"+_1d.msg+"</div><div class=\"messager-p-bar\"></div></div>",closable:false,doSize:false},_1d,{onClose:function(){
if(this.timer){
clearInterval(this.timer);
}
if(_1a.onClose){
_1a.onClose.call(this);
}else{
$.messager.defaults.onClose.call(this);
}
}}));
var bar=dlg.find("div.messager-p-bar");
bar.progressbar({text:_1d.text});
dlg.dialog("resize");
if(_1d.interval){
dlg[0].timer=setInterval(function(){
var v=bar.progressbar("getValue");
v+=10;
if(v>100){
v=0;
}
bar.progressbar("setValue",v);
},_1d.interval);
}
return dlg;
}};
$.messager.defaults=$.extend({},$.fn.dialog.defaults,{ok:"Ok",cancel:"Cancel",width:300,height:"auto",minHeight:150,modal:true,collapsible:false,minimizable:false,maximizable:false,resizable:false,fn:function(){
}});
})(jQuery);

View File

@@ -0,0 +1,141 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
$.fn.navpanel=function(_1,_2){
if(typeof _1=="string"){
var _3=$.fn.navpanel.methods[_1];
return _3?_3(this,_2):this.panel(_1,_2);
}else{
_1=_1||{};
return this.each(function(){
var _4=$.data(this,"navpanel");
if(_4){
$.extend(_4.options,_1);
}else{
_4=$.data(this,"navpanel",{options:$.extend({},$.fn.navpanel.defaults,$.fn.navpanel.parseOptions(this),_1)});
}
$(this).panel(_4.options);
});
}
};
$.fn.navpanel.methods={options:function(jq){
return $.data(jq[0],"navpanel").options;
}};
$.fn.navpanel.parseOptions=function(_5){
return $.extend({},$.fn.panel.parseOptions(_5),$.parser.parseOptions(_5,[]));
};
$.fn.navpanel.defaults=$.extend({},$.fn.panel.defaults,{fit:true,border:false,cls:"navpanel"});
$.parser.plugins.push("navpanel");
})(jQuery);
(function($){
$(function(){
$.mobile.init();
});
$.mobile={defaults:{animation:"slide",direction:"left",reverseDirections:{up:"down",down:"up",left:"right",right:"left"}},panels:[],init:function(_6){
$.mobile.panels=[];
var _7=$(_6||"body").children(".navpanel:visible");
if(_7.length){
_7.not(":first").children(".panel-body").navpanel("close");
var p=_7.eq(0).children(".panel-body");
$.mobile.panels.push({panel:p,animation:$.mobile.defaults.animation,direction:$.mobile.defaults.direction});
}
$(document)._unbind(".mobile")._bind("click.mobile",function(e){
var a=$(e.target).closest("a");
if(a.length){
var _8=$.parser.parseOptions(a[0],["animation","direction",{back:"boolean"}]);
if(_8.back){
$.mobile.back();
e.preventDefault();
}else{
var _9=$.trim(a.attr("href"));
if(/^#/.test(_9)){
var to=$(_9);
if(to.length&&to.hasClass("panel-body")){
$.mobile.go(to,_8.animation,_8.direction);
e.preventDefault();
}
}
}
}
});
$(window)._unbind(".mobile")._bind("hashchange.mobile",function(){
var _a=$.mobile.panels.length;
if(_a>1){
var _b=location.hash;
var p=$.mobile.panels[_a-2];
if(!_b||_b=="#&"+p.panel.attr("id")){
$.mobile._back();
}
}
});
},nav:function(_c,to,_d,_e){
if(window.WebKitAnimationEvent){
_d=_d!=undefined?_d:$.mobile.defaults.animation;
_e=_e!=undefined?_e:$.mobile.defaults.direction;
var _f="m-"+_d+(_e?"-"+_e:"");
var p1=$(_c).panel("open").panel("resize").panel("panel");
var p2=$(to).panel("open").panel("resize").panel("panel");
p1.add(p2)._bind("webkitAnimationEnd",function(){
$(this)._unbind("webkitAnimationEnd");
var p=$(this).children(".panel-body");
if($(this).hasClass("m-in")){
p.panel("open").panel("resize");
}else{
p.panel("close");
}
$(this).removeClass(_f+" m-in m-out");
});
p2.addClass(_f+" m-in");
p1.addClass(_f+" m-out");
}else{
$(to).panel("open").panel("resize");
$(_c).panel("close");
}
},_go:function(_10,_11,_12){
_11=_11!=undefined?_11:$.mobile.defaults.animation;
_12=_12!=undefined?_12:$.mobile.defaults.direction;
var _13=$.mobile.panels[$.mobile.panels.length-1].panel;
var to=$(_10);
if(_13[0]!=to[0]){
$.mobile.nav(_13,to,_11,_12);
$.mobile.panels.push({panel:to,animation:_11,direction:_12});
}
},_back:function(){
if($.mobile.panels.length<2){
return;
}
var p1=$.mobile.panels.pop();
var p2=$.mobile.panels[$.mobile.panels.length-1];
var _14=p1.animation;
var _15=$.mobile.defaults.reverseDirections[p1.direction]||"";
$.mobile.nav(p1.panel,p2.panel,_14,_15);
},go:function(_16,_17,_18){
_17=_17!=undefined?_17:$.mobile.defaults.animation;
_18=_18!=undefined?_18:$.mobile.defaults.direction;
location.hash="#&"+$(_16).attr("id");
$.mobile._go(_16,_17,_18);
},back:function(){
history.go(-1);
}};
$.map(["validatebox","textbox","passwordbox","filebox","searchbox","combo","combobox","combogrid","combotree","combotreegrid","datebox","datetimebox","numberbox","spinner","numberspinner","timespinner","datetimespinner"],function(_19){
if($.fn[_19]){
$.extend($.fn[_19].defaults,{iconWidth:28,tipPosition:"bottom"});
}
});
$.map(["spinner","numberspinner","timespinner","datetimespinner"],function(_1a){
if($.fn[_1a]){
$.extend($.fn[_1a].defaults,{iconWidth:56,spinAlign:"horizontal"});
}
});
if($.fn.menu){
$.extend($.fn.menu.defaults,{itemHeight:30,noline:true});
}
})(jQuery);

View File

@@ -0,0 +1,187 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"numberbox");
var _4=_3.options;
$(_2).addClass("numberbox-f").textbox(_4);
$(_2).textbox("textbox").css({imeMode:"disabled"});
$(_2).attr("numberboxName",$(_2).attr("textboxName"));
_3.numberbox=$(_2).next();
_3.numberbox.addClass("numberbox");
var _5=_4.parser.call(_2,_4.value);
var _6=_4.formatter.call(_2,_5);
$(_2).numberbox("initValue",_5).numberbox("setText",_6);
};
function _7(_8,_9){
var _a=$.data(_8,"numberbox");
var _b=_a.options;
_b.value=parseFloat(_9);
var _9=_b.parser.call(_8,_9);
var _c=_b.formatter.call(_8,_9);
_b.value=_9;
$(_8).textbox("setText",_c).textbox("setValue",_9);
_c=_b.formatter.call(_8,$(_8).textbox("getValue"));
$(_8).textbox("setText",_c);
};
$.fn.numberbox=function(_d,_e){
if(typeof _d=="string"){
var _f=$.fn.numberbox.methods[_d];
if(_f){
return _f(this,_e);
}else{
return this.textbox(_d,_e);
}
}
_d=_d||{};
return this.each(function(){
var _10=$.data(this,"numberbox");
if(_10){
$.extend(_10.options,_d);
}else{
_10=$.data(this,"numberbox",{options:$.extend({},$.fn.numberbox.defaults,$.fn.numberbox.parseOptions(this),_d)});
}
_1(this);
});
};
$.fn.numberbox.methods={options:function(jq){
var _11=jq.data("textbox")?jq.textbox("options"):{};
return $.extend($.data(jq[0],"numberbox").options,{width:_11.width,originalValue:_11.originalValue,disabled:_11.disabled,readonly:_11.readonly});
},cloneFrom:function(jq,_12){
return jq.each(function(){
$(this).textbox("cloneFrom",_12);
$.data(this,"numberbox",{options:$.extend(true,{},$(_12).numberbox("options"))});
$(this).addClass("numberbox-f");
});
},fix:function(jq){
return jq.each(function(){
var _13=$(this).numberbox("options");
_13.value=null;
var _14=_13.parser.call(this,$(this).numberbox("getText"));
$(this).numberbox("setValue",_14);
});
},setValue:function(jq,_15){
return jq.each(function(){
_7(this,_15);
});
},clear:function(jq){
return jq.each(function(){
$(this).textbox("clear");
$(this).numberbox("options").value="";
});
},reset:function(jq){
return jq.each(function(){
$(this).textbox("reset");
$(this).numberbox("setValue",$(this).numberbox("getValue"));
});
}};
$.fn.numberbox.parseOptions=function(_16){
var t=$(_16);
return $.extend({},$.fn.textbox.parseOptions(_16),$.parser.parseOptions(_16,["decimalSeparator","groupSeparator","suffix",{min:"number",max:"number",precision:"number"}]),{prefix:(t.attr("prefix")?t.attr("prefix"):undefined)});
};
$.fn.numberbox.defaults=$.extend({},$.fn.textbox.defaults,{inputEvents:{keypress:function(e){
var _17=e.data.target;
var _18=$(_17).numberbox("options");
return _18.filter.call(_17,e);
},blur:function(e){
$(e.data.target).numberbox("fix");
},keydown:function(e){
if(e.keyCode==13){
$(e.data.target).numberbox("fix");
}
}},min:null,max:null,precision:0,decimalSeparator:".",groupSeparator:"",prefix:"",suffix:"",filter:function(e){
var _19=$(this).numberbox("options");
var s=$(this).numberbox("getText");
if(e.metaKey||e.ctrlKey){
return true;
}
if($.inArray(String(e.which),["46","8","13","0"])>=0){
return true;
}
var tmp=$("<span></span>");
tmp.html(String.fromCharCode(e.which));
var c=tmp.text();
tmp.remove();
if(!c){
return true;
}
if(c=="-"&&_19.min!=null&&_19.min>=0){
return false;
}
if(c=="-"||c==_19.decimalSeparator){
return (s.indexOf(c)==-1)?true:false;
}else{
if(c==_19.groupSeparator){
return true;
}else{
if("0123456789".indexOf(c)>=0){
return true;
}else{
return false;
}
}
}
},formatter:function(_1a){
if(!_1a){
return _1a;
}
_1a=_1a+"";
var _1b=$(this).numberbox("options");
var s1=_1a,s2="";
var _1c=_1a.indexOf(".");
if(_1c>=0){
s1=_1a.substring(0,_1c);
s2=_1a.substring(_1c+1,_1a.length);
}
if(_1b.groupSeparator){
var p=/(\d+)(\d{3})/;
while(p.test(s1)){
s1=s1.replace(p,"$1"+_1b.groupSeparator+"$2");
}
}
if(s2){
return _1b.prefix+s1+_1b.decimalSeparator+s2+_1b.suffix;
}else{
return _1b.prefix+s1+_1b.suffix;
}
},parser:function(s){
s=s+"";
var _1d=$(this).numberbox("options");
if(_1d.prefix){
s=$.trim(s.replace(new RegExp("\\"+$.trim(_1d.prefix),"g"),""));
}
if(_1d.suffix){
s=$.trim(s.replace(new RegExp("\\"+$.trim(_1d.suffix),"g"),""));
}
if(parseFloat(s)!=_1d.value){
if(_1d.groupSeparator){
s=$.trim(s.replace(new RegExp("\\"+_1d.groupSeparator,"g"),""));
}
if(_1d.decimalSeparator){
s=$.trim(s.replace(new RegExp("\\"+_1d.decimalSeparator,"g"),"."));
}
s=s.replace(/\s/g,"");
}
var val=parseFloat(s).toFixed(_1d.precision);
if(isNaN(val)){
val="";
}else{
if(typeof (_1d.min)=="number"&&val<_1d.min){
val=_1d.min.toFixed(_1d.precision);
}else{
if(typeof (_1d.max)=="number"&&val>_1d.max){
val=_1d.max.toFixed(_1d.precision);
}
}
}
return val;
}});
})(jQuery);

View File

@@ -0,0 +1,58 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
$(_2).addClass("numberspinner-f");
var _3=$.data(_2,"numberspinner").options;
$(_2).numberbox($.extend({},_3,{doSize:false})).spinner(_3);
$(_2).numberbox("setValue",_3.value);
};
function _4(_5,_6){
var _7=$.data(_5,"numberspinner").options;
var v=parseFloat($(_5).numberbox("getValue")||_7.value)||0;
if(_6){
v-=_7.increment;
}else{
v+=_7.increment;
}
$(_5).numberbox("setValue",v);
};
$.fn.numberspinner=function(_8,_9){
if(typeof _8=="string"){
var _a=$.fn.numberspinner.methods[_8];
if(_a){
return _a(this,_9);
}else{
return this.numberbox(_8,_9);
}
}
_8=_8||{};
return this.each(function(){
var _b=$.data(this,"numberspinner");
if(_b){
$.extend(_b.options,_8);
}else{
$.data(this,"numberspinner",{options:$.extend({},$.fn.numberspinner.defaults,$.fn.numberspinner.parseOptions(this),_8)});
}
_1(this);
});
};
$.fn.numberspinner.methods={options:function(jq){
var _c=jq.numberbox("options");
return $.extend($.data(jq[0],"numberspinner").options,{width:_c.width,value:_c.value,originalValue:_c.originalValue,disabled:_c.disabled,readonly:_c.readonly});
}};
$.fn.numberspinner.parseOptions=function(_d){
return $.extend({},$.fn.spinner.parseOptions(_d),$.fn.numberbox.parseOptions(_d),{});
};
$.fn.numberspinner.defaults=$.extend({},$.fn.spinner.defaults,$.fn.numberbox.defaults,{spin:function(_e){
_4(this,_e);
}});
})(jQuery);

View File

@@ -0,0 +1,304 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
function _1(_2){
var _3=$.data(_2,"pagination");
var _4=_3.options;
var bb=_3.bb={};
if(_4.buttons&&!$.isArray(_4.buttons)){
$(_4.buttons).insertAfter(_2);
}
var _5=$(_2).addClass("pagination").html("<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\"><tr></tr></table>");
var tr=_5.find("tr");
var aa=$.extend([],_4.layout);
if(!_4.showPageList){
_6(aa,"list");
}
if(!_4.showPageInfo){
_6(aa,"info");
}
if(!_4.showRefresh){
_6(aa,"refresh");
}
if(aa[0]=="sep"){
aa.shift();
}
if(aa[aa.length-1]=="sep"){
aa.pop();
}
for(var _7=0;_7<aa.length;_7++){
var _8=aa[_7];
if(_8=="list"){
var ps=$("<select class=\"pagination-page-list\"></select>");
ps._bind("change",function(){
_4.pageSize=parseInt($(this).val());
_4.onChangePageSize.call(_2,_4.pageSize);
_10(_2,_4.pageNumber);
});
for(var i=0;i<_4.pageList.length;i++){
$("<option></option>").text(_4.pageList[i]).appendTo(ps);
}
$("<td></td>").append(ps).appendTo(tr);
}else{
if(_8=="sep"){
$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
}else{
if(_8=="first"){
bb.first=_9("first");
}else{
if(_8=="prev"){
bb.prev=_9("prev");
}else{
if(_8=="next"){
bb.next=_9("next");
}else{
if(_8=="last"){
bb.last=_9("last");
}else{
if(_8=="manual"){
$("<span style=\"padding-left:6px;\"></span>").html(_4.beforePageText).appendTo(tr).wrap("<td></td>");
bb.num=$("<input class=\"pagination-num\" type=\"text\" value=\"1\" size=\"2\">").appendTo(tr).wrap("<td></td>");
bb.num._unbind(".pagination")._bind("keydown.pagination",function(e){
if(e.keyCode==13){
var _a=parseInt($(this).val())||1;
_10(_2,_a);
return false;
}
});
bb.after=$("<span style=\"padding-right:6px;\"></span>").appendTo(tr).wrap("<td></td>");
}else{
if(_8=="refresh"){
bb.refresh=_9("refresh");
}else{
if(_8=="links"){
$("<td class=\"pagination-links\"></td>").appendTo(tr);
}else{
if(_8=="info"){
if(_7==aa.length-1){
$("<div class=\"pagination-info\"></div>").appendTo(_5);
}else{
$("<td><div class=\"pagination-info\"></div></td>").appendTo(tr);
}
}
}
}
}
}
}
}
}
}
}
}
if(_4.buttons){
$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
if($.isArray(_4.buttons)){
for(var i=0;i<_4.buttons.length;i++){
var _b=_4.buttons[i];
if(_b=="-"){
$("<td><div class=\"pagination-btn-separator\"></div></td>").appendTo(tr);
}else{
var td=$("<td></td>").appendTo(tr);
var a=$("<a href=\"javascript:;\"></a>").appendTo(td);
a[0].onclick=eval(_b.handler||function(){
});
a.linkbutton($.extend({},_b,{plain:true}));
}
}
}else{
var td=$("<td></td>").appendTo(tr);
$(_4.buttons).appendTo(td).show();
}
}
$("<div style=\"clear:both;\"></div>").appendTo(_5);
function _9(_c){
var _d=_4.nav[_c];
var a=$("<a href=\"javascript:;\"></a>").appendTo(tr);
a.wrap("<td></td>");
a.linkbutton({iconCls:_d.iconCls,plain:true})._unbind(".pagination")._bind("click.pagination",function(){
_d.handler.call(_2);
});
return a;
};
function _6(aa,_e){
var _f=$.inArray(_e,aa);
if(_f>=0){
aa.splice(_f,1);
}
return aa;
};
};
function _10(_11,_12){
var _13=$.data(_11,"pagination").options;
if(_13.onBeforeSelectPage.call(_11,_12,_13.pageSize)==false){
_14(_11);
return;
}
_14(_11,{pageNumber:_12});
_13.onSelectPage.call(_11,_13.pageNumber,_13.pageSize);
};
function _14(_15,_16){
var _17=$.data(_15,"pagination");
var _18=_17.options;
var bb=_17.bb;
$.extend(_18,_16||{});
var ps=$(_15).find("select.pagination-page-list");
if(ps.length){
ps.val(_18.pageSize+"");
_18.pageSize=parseInt(ps.val());
}
var _19=Math.ceil(_18.total/_18.pageSize)||1;
if(_18.pageNumber<1){
_18.pageNumber=1;
}
if(_18.pageNumber>_19){
_18.pageNumber=_19;
}
if(_18.total==0){
_18.pageNumber=0;
_19=0;
}
if(bb.num){
bb.num.val(_18.pageNumber);
}
if(bb.after){
bb.after.html(_18.afterPageText.replace(/{pages}/,_19));
}
var td=$(_15).find("td.pagination-links");
if(td.length){
td.empty();
var _1a=_18.pageNumber-Math.floor(_18.links/2);
if(_1a<1){
_1a=1;
}
var _1b=_1a+_18.links-1;
if(_1b>_19){
_1b=_19;
}
_1a=_1b-_18.links+1;
if(_1a<1){
_1a=1;
}
for(var i=_1a;i<=_1b;i++){
var a=$("<a class=\"pagination-link\" href=\"javascript:;\"></a>").appendTo(td);
a.linkbutton({plain:true,text:i});
if(i==_18.pageNumber){
a.linkbutton("select");
}else{
a._unbind(".pagination")._bind("click.pagination",{pageNumber:i},function(e){
_10(_15,e.data.pageNumber);
});
}
}
}
var _1c=_18.displayMsg;
_1c=_1c.replace(/{from}/,_18.total==0?0:_18.pageSize*(_18.pageNumber-1)+1);
_1c=_1c.replace(/{to}/,Math.min(_18.pageSize*(_18.pageNumber),_18.total));
_1c=_1c.replace(/{total}/,_18.total);
$(_15).find("div.pagination-info").html(_1c);
if(bb.first){
bb.first.linkbutton({disabled:((!_18.total)||_18.pageNumber==1)});
}
if(bb.prev){
bb.prev.linkbutton({disabled:((!_18.total)||_18.pageNumber==1)});
}
if(bb.next){
bb.next.linkbutton({disabled:(_18.pageNumber==_19)});
}
if(bb.last){
bb.last.linkbutton({disabled:(_18.pageNumber==_19)});
}
_1d(_15,_18.loading);
};
function _1d(_1e,_1f){
var _20=$.data(_1e,"pagination");
var _21=_20.options;
_21.loading=_1f;
if(_21.showRefresh&&_20.bb.refresh){
_20.bb.refresh.linkbutton({iconCls:(_21.loading?"pagination-loading":"pagination-load")});
}
};
$.fn.pagination=function(_22,_23){
if(typeof _22=="string"){
return $.fn.pagination.methods[_22](this,_23);
}
_22=_22||{};
return this.each(function(){
var _24;
var _25=$.data(this,"pagination");
if(_25){
_24=$.extend(_25.options,_22);
}else{
_24=$.extend({},$.fn.pagination.defaults,$.fn.pagination.parseOptions(this),_22);
$.data(this,"pagination",{options:_24});
}
_1(this);
_14(this);
});
};
$.fn.pagination.methods={options:function(jq){
return $.data(jq[0],"pagination").options;
},loading:function(jq){
return jq.each(function(){
_1d(this,true);
});
},loaded:function(jq){
return jq.each(function(){
_1d(this,false);
});
},refresh:function(jq,_26){
return jq.each(function(){
_14(this,_26);
});
},select:function(jq,_27){
return jq.each(function(){
_10(this,_27);
});
}};
$.fn.pagination.parseOptions=function(_28){
var t=$(_28);
return $.extend({},$.parser.parseOptions(_28,[{total:"number",pageSize:"number",pageNumber:"number",links:"number"},{loading:"boolean",showPageList:"boolean",showPageInfo:"boolean",showRefresh:"boolean"}]),{pageList:(t.attr("pageList")?eval(t.attr("pageList")):undefined)});
};
$.fn.pagination.defaults={total:1,pageSize:10,pageNumber:1,pageList:[10,20,30,50],loading:false,buttons:null,showPageList:true,showPageInfo:true,showRefresh:true,links:10,layout:["list","sep","first","prev","sep","manual","sep","next","last","sep","refresh","info"],onBeforeSelectPage:function(_29,_2a){
},onSelectPage:function(_2b,_2c){
},onBeforeRefresh:function(_2d,_2e){
},onRefresh:function(_2f,_30){
},onChangePageSize:function(_31){
},beforePageText:"Page",afterPageText:"of {pages}",displayMsg:"Displaying {from} to {to} of {total} items",nav:{first:{iconCls:"pagination-first",handler:function(){
var _32=$(this).pagination("options");
if(_32.pageNumber>1){
$(this).pagination("select",1);
}
}},prev:{iconCls:"pagination-prev",handler:function(){
var _33=$(this).pagination("options");
if(_33.pageNumber>1){
$(this).pagination("select",_33.pageNumber-1);
}
}},next:{iconCls:"pagination-next",handler:function(){
var _34=$(this).pagination("options");
var _35=Math.ceil(_34.total/_34.pageSize);
if(_34.pageNumber<_35){
$(this).pagination("select",_34.pageNumber+1);
}
}},last:{iconCls:"pagination-last",handler:function(){
var _36=$(this).pagination("options");
var _37=Math.ceil(_36.total/_36.pageSize);
if(_36.pageNumber<_37){
$(this).pagination("select",_37);
}
}},refresh:{iconCls:"pagination-refresh",handler:function(){
var _38=$(this).pagination("options");
if(_38.onBeforeRefresh.call(this,_38.pageNumber,_38.pageSize)!=false){
$(this).pagination("select",_38.pageNumber);
_38.onRefresh.call(this,_38.pageNumber,_38.pageSize);
}
}}}};
})(jQuery);

View File

@@ -0,0 +1,694 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
$.fn._remove=function(){
return this.each(function(){
$(this).remove();
try{
this.outerHTML="";
}
catch(err){
}
});
};
function _1(_2){
_2._remove();
};
function _3(_4,_5){
var _6=$.data(_4,"panel");
var _7=_6.options;
var _8=_6.panel;
var _9=_8.children(".panel-header");
var _a=_8.children(".panel-body");
var _b=_8.children(".panel-footer");
var _c=(_7.halign=="left"||_7.halign=="right");
if(_5){
$.extend(_7,{width:_5.width,height:_5.height,minWidth:_5.minWidth,maxWidth:_5.maxWidth,minHeight:_5.minHeight,maxHeight:_5.maxHeight,left:_5.left,top:_5.top});
_7.hasResized=false;
}
var _d=_8.outerWidth();
var _e=_8.outerHeight();
_8._size(_7);
var _f=_8.outerWidth();
var _10=_8.outerHeight();
if(_7.hasResized&&(_d==_f&&_e==_10)){
return;
}
_7.hasResized=true;
if(!_c){
_9._outerWidth(_8.width());
}
_a._outerWidth(_8.width());
if(!isNaN(parseInt(_7.height))){
if(_c){
if(_7.header){
var _11=$(_7.header)._outerWidth();
}else{
_9.css("width","");
var _11=_9._outerWidth();
}
var _12=_9.find(".panel-title");
_11+=Math.min(_12._outerWidth(),_12._outerHeight());
var _13=_8.height();
_9._outerWidth(_11)._outerHeight(_13);
_12._outerWidth(_9.height());
_a._outerWidth(_8.width()-_11-_b._outerWidth())._outerHeight(_13);
_b._outerHeight(_13);
_a.css({left:"",right:""});
if(_9.length){
_a.css(_7.halign,(_9.position()[_7.halign]+_11)+"px");
}
_7.panelCssWidth=_8.css("width");
if(_7.collapsed){
_8._outerWidth(_11+_b._outerWidth());
}
}else{
_a._outerHeight(_8.height()-_9._outerHeight()-_b._outerHeight());
}
}else{
_a.css("height","");
var min=$.parser.parseValue("minHeight",_7.minHeight,_8.parent());
var max=$.parser.parseValue("maxHeight",_7.maxHeight,_8.parent());
var _14=_9._outerHeight()+_b._outerHeight()+_8._outerHeight()-_8.height();
_a._size("minHeight",min?(min-_14):"");
_a._size("maxHeight",max?(max-_14):"");
}
_8.css({height:(_c?undefined:""),minHeight:"",maxHeight:"",left:_7.left,top:_7.top});
_7.onResize.apply(_4,[_7.width,_7.height]);
$(_4).panel("doLayout");
};
function _15(_16,_17){
var _18=$.data(_16,"panel");
var _19=_18.options;
var _1a=_18.panel;
if(_17){
if(_17.left!=null){
_19.left=_17.left;
}
if(_17.top!=null){
_19.top=_17.top;
}
}
_1a.css({left:_19.left,top:_19.top});
_1a.find(".tooltip-f").each(function(){
$(this).tooltip("reposition");
});
_19.onMove.apply(_16,[_19.left,_19.top]);
};
function _1b(_1c){
$(_1c).addClass("panel-body")._size("clear");
var _1d=$("<div class=\"panel\"></div>").insertBefore(_1c);
_1d[0].appendChild(_1c);
_1d._bind("_resize",function(e,_1e){
if($(this).hasClass("easyui-fluid")||_1e){
_3(_1c,{});
}
return false;
});
return _1d;
};
function _1f(_20){
var _21=$.data(_20,"panel");
var _22=_21.options;
var _23=_21.panel;
_23.css(_22.style);
_23.addClass(_22.cls);
_23.removeClass("panel-hleft panel-hright").addClass("panel-h"+_22.halign);
_24();
_25();
var _26=$(_20).panel("header");
var _27=$(_20).panel("body");
var _28=$(_20).siblings(".panel-footer");
if(_22.border){
_26.removeClass("panel-header-noborder");
_27.removeClass("panel-body-noborder");
_28.removeClass("panel-footer-noborder");
}else{
_26.addClass("panel-header-noborder");
_27.addClass("panel-body-noborder");
_28.addClass("panel-footer-noborder");
}
_26.addClass(_22.headerCls);
_27.addClass(_22.bodyCls);
$(_20).attr("id",_22.id||"");
if(_22.content){
$(_20).panel("clear");
$(_20).html(_22.content);
$.parser.parse($(_20));
}
function _24(){
if(_22.noheader||(!_22.title&&!_22.header)){
_1(_23.children(".panel-header"));
_23.children(".panel-body").addClass("panel-body-noheader");
}else{
if(_22.header){
$(_22.header).addClass("panel-header").prependTo(_23);
}else{
var _29=_23.children(".panel-header");
if(!_29.length){
_29=$("<div class=\"panel-header\"></div>").prependTo(_23);
}
if(!$.isArray(_22.tools)){
_29.find("div.panel-tool .panel-tool-a").appendTo(_22.tools);
}
_29.empty();
var _2a=$("<div class=\"panel-title\"></div>").html(_22.title).appendTo(_29);
if(_22.iconCls){
_2a.addClass("panel-with-icon");
$("<div class=\"panel-icon\"></div>").addClass(_22.iconCls).appendTo(_29);
}
if(_22.halign=="left"||_22.halign=="right"){
_2a.addClass("panel-title-"+_22.titleDirection);
}
var _2b=$("<div class=\"panel-tool\"></div>").appendTo(_29);
_2b._bind("click",function(e){
e.stopPropagation();
});
if(_22.tools){
if($.isArray(_22.tools)){
$.map(_22.tools,function(t){
_2c(_2b,t.iconCls,eval(t.handler));
});
}else{
$(_22.tools).children().each(function(){
$(this).addClass($(this).attr("iconCls")).addClass("panel-tool-a").appendTo(_2b);
});
}
}
if(_22.collapsible){
_2c(_2b,"panel-tool-collapse",function(){
if(_22.collapsed==true){
_57(_20,true);
}else{
_43(_20,true);
}
});
}
if(_22.minimizable){
_2c(_2b,"panel-tool-min",function(){
_62(_20);
});
}
if(_22.maximizable){
_2c(_2b,"panel-tool-max",function(){
if(_22.maximized==true){
_66(_20);
}else{
_42(_20);
}
});
}
if(_22.closable){
_2c(_2b,"panel-tool-close",function(){
_44(_20);
});
}
}
_23.children("div.panel-body").removeClass("panel-body-noheader");
}
};
function _2c(c,_2d,_2e){
var a=$("<a href=\"javascript:;\"></a>").addClass(_2d).appendTo(c);
a._bind("click",_2e);
};
function _25(){
if(_22.footer){
$(_22.footer).addClass("panel-footer").appendTo(_23);
$(_20).addClass("panel-body-nobottom");
}else{
_23.children(".panel-footer").remove();
$(_20).removeClass("panel-body-nobottom");
}
};
};
function _2f(_30,_31){
var _32=$.data(_30,"panel");
var _33=_32.options;
if(_34){
_33.queryParams=_31;
}
if(!_33.href){
return;
}
if(!_32.isLoaded||!_33.cache){
var _34=$.extend({},_33.queryParams);
if(_33.onBeforeLoad.call(_30,_34)==false){
return;
}
_32.isLoaded=false;
if(_33.loadingMessage){
$(_30).panel("clear");
$(_30).html($("<div class=\"panel-loading\"></div>").html(_33.loadingMessage));
}
_33.loader.call(_30,_34,function(_35){
var _36=_33.extractor.call(_30,_35);
$(_30).panel("clear");
$(_30).html(_36);
$.parser.parse($(_30));
_33.onLoad.apply(_30,arguments);
_32.isLoaded=true;
},function(){
_33.onLoadError.apply(_30,arguments);
});
}
};
function _37(_38){
var t=$(_38);
t.find(".combo-f").each(function(){
$(this).combo("destroy");
});
t.find(".m-btn").each(function(){
$(this).menubutton("destroy");
});
t.find(".s-btn").each(function(){
$(this).splitbutton("destroy");
});
t.find(".tooltip-f").each(function(){
$(this).tooltip("destroy");
});
t.children("div").each(function(){
$(this)._size("unfit");
});
t.empty();
};
function _39(_3a){
$(_3a).panel("doLayout",true);
};
function _3b(_3c,_3d){
var _3e=$.data(_3c,"panel");
var _3f=_3e.options;
var _40=_3e.panel;
if(_3d!=true){
if(_3f.onBeforeOpen.call(_3c)==false){
return;
}
}
_40.stop(true,true);
if($.isFunction(_3f.openAnimation)){
_3f.openAnimation.call(_3c,cb);
}else{
switch(_3f.openAnimation){
case "slide":
_40.slideDown(_3f.openDuration,cb);
break;
case "fade":
_40.fadeIn(_3f.openDuration,cb);
break;
case "show":
_40.show(_3f.openDuration,cb);
break;
default:
_40.show();
cb();
}
}
function cb(){
_3f.closed=false;
_3f.minimized=false;
var _41=_40.children(".panel-header").find("a.panel-tool-restore");
if(_41.length){
_3f.maximized=true;
}
_3f.onOpen.call(_3c);
if(_3f.maximized==true){
_3f.maximized=false;
_42(_3c);
}
if(_3f.collapsed==true){
_3f.collapsed=false;
_43(_3c);
}
if(!_3f.collapsed){
if(_3f.href&&(!_3e.isLoaded||!_3f.cache)){
_2f(_3c);
_39(_3c);
_3f.doneLayout=true;
}
}
if(!_3f.doneLayout){
_3f.doneLayout=true;
_39(_3c);
}
};
};
function _44(_45,_46){
var _47=$.data(_45,"panel");
var _48=_47.options;
var _49=_47.panel;
if(_46!=true){
if(_48.onBeforeClose.call(_45)==false){
return;
}
}
_49.find(".tooltip-f").each(function(){
$(this).tooltip("hide");
});
_49.stop(true,true);
_49._size("unfit");
if($.isFunction(_48.closeAnimation)){
_48.closeAnimation.call(_45,cb);
}else{
switch(_48.closeAnimation){
case "slide":
_49.slideUp(_48.closeDuration,cb);
break;
case "fade":
_49.fadeOut(_48.closeDuration,cb);
break;
case "hide":
_49.hide(_48.closeDuration,cb);
break;
default:
_49.hide();
cb();
}
}
function cb(){
_48.closed=true;
_48.onClose.call(_45);
};
};
function _4a(_4b,_4c){
var _4d=$.data(_4b,"panel");
var _4e=_4d.options;
var _4f=_4d.panel;
if(_4c!=true){
if(_4e.onBeforeDestroy.call(_4b)==false){
return;
}
}
$(_4b).panel("clear").panel("clear","footer");
_1(_4f);
_4e.onDestroy.call(_4b);
};
function _43(_50,_51){
var _52=$.data(_50,"panel").options;
var _53=$.data(_50,"panel").panel;
var _54=_53.children(".panel-body");
var _55=_53.children(".panel-header");
var _56=_55.find("a.panel-tool-collapse");
if(_52.collapsed==true){
return;
}
_54.stop(true,true);
if(_52.onBeforeCollapse.call(_50)==false){
return;
}
_56.addClass("panel-tool-expand");
if(_51==true){
if(_52.halign=="left"||_52.halign=="right"){
_53.animate({width:_55._outerWidth()+_53.children(".panel-footer")._outerWidth()},function(){
cb();
});
}else{
_54.slideUp("normal",function(){
cb();
});
}
}else{
if(_52.halign=="left"||_52.halign=="right"){
_53._outerWidth(_55._outerWidth()+_53.children(".panel-footer")._outerWidth());
}
cb();
}
function cb(){
_54.hide();
_52.collapsed=true;
_52.onCollapse.call(_50);
};
};
function _57(_58,_59){
var _5a=$.data(_58,"panel").options;
var _5b=$.data(_58,"panel").panel;
var _5c=_5b.children(".panel-body");
var _5d=_5b.children(".panel-header").find("a.panel-tool-collapse");
if(_5a.collapsed==false){
return;
}
_5c.stop(true,true);
if(_5a.onBeforeExpand.call(_58)==false){
return;
}
_5d.removeClass("panel-tool-expand");
if(_59==true){
if(_5a.halign=="left"||_5a.halign=="right"){
_5c.show();
_5b.animate({width:_5a.panelCssWidth},function(){
cb();
});
}else{
_5c.slideDown("normal",function(){
cb();
});
}
}else{
if(_5a.halign=="left"||_5a.halign=="right"){
_5b.css("width",_5a.panelCssWidth);
}
cb();
}
function cb(){
_5c.show();
_5a.collapsed=false;
_5a.onExpand.call(_58);
_2f(_58);
_39(_58);
};
};
function _42(_5e){
var _5f=$.data(_5e,"panel").options;
var _60=$.data(_5e,"panel").panel;
var _61=_60.children(".panel-header").find("a.panel-tool-max");
if(_5f.maximized==true){
return;
}
_61.addClass("panel-tool-restore");
if(!$.data(_5e,"panel").original){
$.data(_5e,"panel").original={width:_5f.width,height:_5f.height,left:_5f.left,top:_5f.top,fit:_5f.fit};
}
_5f.left=0;
_5f.top=0;
_5f.fit=true;
_3(_5e);
_5f.minimized=false;
_5f.maximized=true;
_5f.onMaximize.call(_5e);
};
function _62(_63){
var _64=$.data(_63,"panel").options;
var _65=$.data(_63,"panel").panel;
_65._size("unfit");
_65.hide();
_64.minimized=true;
_64.maximized=false;
_64.onMinimize.call(_63);
};
function _66(_67){
var _68=$.data(_67,"panel").options;
var _69=$.data(_67,"panel").panel;
var _6a=_69.children(".panel-header").find("a.panel-tool-max");
if(_68.maximized==false){
return;
}
_69.show();
_6a.removeClass("panel-tool-restore");
$.extend(_68,$.data(_67,"panel").original);
_3(_67);
_68.minimized=false;
_68.maximized=false;
$.data(_67,"panel").original=null;
_68.onRestore.call(_67);
};
function _6b(_6c,_6d){
$.data(_6c,"panel").options.title=_6d;
$(_6c).panel("header").find("div.panel-title").html(_6d);
};
var _6e=null;
$(window)._unbind(".panel")._bind("resize.panel",function(){
if(_6e){
clearTimeout(_6e);
}
_6e=setTimeout(function(){
var _6f=$("body.layout");
if(_6f.length){
_6f.layout("resize");
$("body").children(".easyui-fluid:visible").each(function(){
$(this).triggerHandler("_resize");
});
}else{
$("body").panel("doLayout");
}
_6e=null;
},100);
});
$.fn.panel=function(_70,_71){
if(typeof _70=="string"){
return $.fn.panel.methods[_70](this,_71);
}
_70=_70||{};
return this.each(function(){
var _72=$.data(this,"panel");
var _73;
if(_72){
_73=$.extend(_72.options,_70);
_72.isLoaded=false;
}else{
_73=$.extend({},$.fn.panel.defaults,$.fn.panel.parseOptions(this),_70);
$(this).attr("title","");
_72=$.data(this,"panel",{options:_73,panel:_1b(this),isLoaded:false});
}
_1f(this);
$(this).show();
if(_73.doSize==true){
_72.panel.css("display","block");
_3(this);
}
if(_73.closed==true||_73.minimized==true){
_72.panel.hide();
}else{
_3b(this);
}
});
};
$.fn.panel.methods={options:function(jq){
return $.data(jq[0],"panel").options;
},panel:function(jq){
return $.data(jq[0],"panel").panel;
},header:function(jq){
return $.data(jq[0],"panel").panel.children(".panel-header");
},footer:function(jq){
return jq.panel("panel").children(".panel-footer");
},body:function(jq){
return $.data(jq[0],"panel").panel.children(".panel-body");
},setTitle:function(jq,_74){
return jq.each(function(){
_6b(this,_74);
});
},open:function(jq,_75){
return jq.each(function(){
_3b(this,_75);
});
},close:function(jq,_76){
return jq.each(function(){
_44(this,_76);
});
},destroy:function(jq,_77){
return jq.each(function(){
_4a(this,_77);
});
},clear:function(jq,_78){
return jq.each(function(){
_37(_78=="footer"?$(this).panel("footer"):this);
});
},refresh:function(jq,_79){
return jq.each(function(){
var _7a=$.data(this,"panel");
_7a.isLoaded=false;
if(_79){
if(typeof _79=="string"){
_7a.options.href=_79;
}else{
_7a.options.queryParams=_79;
}
}
_2f(this);
});
},resize:function(jq,_7b){
return jq.each(function(){
_3(this,_7b||{});
});
},doLayout:function(jq,all){
return jq.each(function(){
_7c(this,"body");
_7c($(this).siblings(".panel-footer")[0],"footer");
function _7c(_7d,_7e){
if(!_7d){
return;
}
var _7f=_7d==$("body")[0];
var s=$(_7d).find("div.panel:visible,div.accordion:visible,div.tabs-container:visible,div.layout:visible,.easyui-fluid:visible").filter(function(_80,el){
var p=$(el).parents(".panel-"+_7e+":first");
return _7f?p.length==0:p[0]==_7d;
});
s.each(function(){
$(this).triggerHandler("_resize",[all||false]);
});
};
});
},move:function(jq,_81){
return jq.each(function(){
_15(this,_81);
});
},maximize:function(jq){
return jq.each(function(){
_42(this);
});
},minimize:function(jq){
return jq.each(function(){
_62(this);
});
},restore:function(jq){
return jq.each(function(){
_66(this);
});
},collapse:function(jq,_82){
return jq.each(function(){
_43(this,_82);
});
},expand:function(jq,_83){
return jq.each(function(){
_57(this,_83);
});
}};
$.fn.panel.parseOptions=function(_84){
var t=$(_84);
var hh=t.children(".panel-header,header");
var ff=t.children(".panel-footer,footer");
return $.extend({},$.parser.parseOptions(_84,["id","width","height","left","top","title","iconCls","cls","headerCls","bodyCls","tools","href","method","header","footer","halign","titleDirection",{cache:"boolean",fit:"boolean",border:"boolean",noheader:"boolean"},{collapsible:"boolean",minimizable:"boolean",maximizable:"boolean"},{closable:"boolean",collapsed:"boolean",minimized:"boolean",maximized:"boolean",closed:"boolean"},"openAnimation","closeAnimation",{openDuration:"number",closeDuration:"number"},]),{loadingMessage:(t.attr("loadingMessage")!=undefined?t.attr("loadingMessage"):undefined),header:(hh.length?hh.removeClass("panel-header"):undefined),footer:(ff.length?ff.removeClass("panel-footer"):undefined)});
};
$.fn.panel.defaults={id:null,title:null,iconCls:null,width:"auto",height:"auto",left:null,top:null,cls:null,headerCls:null,bodyCls:null,style:{},href:null,cache:true,fit:false,border:true,doSize:true,noheader:false,content:null,halign:"top",titleDirection:"down",collapsible:false,minimizable:false,maximizable:false,closable:false,collapsed:false,minimized:false,maximized:false,closed:false,openAnimation:false,openDuration:400,closeAnimation:false,closeDuration:400,tools:null,footer:null,header:null,queryParams:{},method:"get",href:null,loadingMessage:"Loading...",loader:function(_85,_86,_87){
var _88=$(this).panel("options");
if(!_88.href){
return false;
}
$.ajax({type:_88.method,url:_88.href,cache:false,data:_85,dataType:"html",success:function(_89){
_86(_89);
},error:function(){
_87.apply(this,arguments);
}});
},extractor:function(_8a){
var _8b=/<body[^>]*>((.|[\n\r])*)<\/body>/im;
var _8c=_8b.exec(_8a);
if(_8c){
return _8c[1];
}else{
return _8a;
}
},onBeforeLoad:function(_8d){
},onLoad:function(){
},onLoadError:function(){
},onBeforeOpen:function(){
},onOpen:function(){
},onBeforeClose:function(){
},onClose:function(){
},onBeforeDestroy:function(){
},onDestroy:function(){
},onResize:function(_8e,_8f){
},onMove:function(_90,top){
},onMaximize:function(){
},onRestore:function(){
},onMinimize:function(){
},onBeforeCollapse:function(){
},onBeforeExpand:function(){
},onCollapse:function(){
},onExpand:function(){
}};
})(jQuery);

View File

@@ -0,0 +1,393 @@
/**
* EasyUI for jQuery 1.9.14
*
* Copyright (c) 2009-2021 www.jeasyui.com. All rights reserved.
*
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
* To use it on other terms please contact us: info@jeasyui.com
*
*/
(function($){
$.easyui={indexOfArray:function(a,o,id){
for(var i=0,_1=a.length;i<_1;i++){
if(id==undefined){
if(a[i]==o){
return i;
}
}else{
if(a[i][o]==id){
return i;
}
}
}
return -1;
},removeArrayItem:function(a,o,id){
if(typeof o=="string"){
for(var i=0,_2=a.length;i<_2;i++){
if(a[i][o]==id){
a.splice(i,1);
return;
}
}
}else{
var _3=this.indexOfArray(a,o);
if(_3!=-1){
a.splice(_3,1);
}
}
},addArrayItem:function(a,o,r){
var _4=this.indexOfArray(a,o,r?r[o]:undefined);
if(_4==-1){
a.push(r?r:o);
}else{
a[_4]=r?r:o;
}
},getArrayItem:function(a,o,id){
var _5=this.indexOfArray(a,o,id);
return _5==-1?null:a[_5];
},forEach:function(_6,_7,_8){
var _9=[];
for(var i=0;i<_6.length;i++){
_9.push(_6[i]);
}
while(_9.length){
var _a=_9.shift();
if(_8(_a)==false){
return;
}
if(_7&&_a.children){
for(var i=_a.children.length-1;i>=0;i--){
_9.unshift(_a.children[i]);
}
}
}
}};
$.parser={auto:true,emptyFn:function(){
},onComplete:function(_b){
},plugins:["draggable","droppable","resizable","pagination","tooltip","linkbutton","menu","sidemenu","menubutton","splitbutton","switchbutton","progressbar","radiobutton","checkbox","tree","textbox","passwordbox","maskedbox","filebox","combo","combobox","combotree","combogrid","combotreegrid","tagbox","numberbox","validatebox","searchbox","spinner","numberspinner","timespinner","datetimespinner","calendar","datebox","datetimebox","timepicker","slider","layout","panel","datagrid","propertygrid","treegrid","datalist","tabs","accordion","window","dialog","form"],parse:function(_c){
var aa=[];
for(var i=0;i<$.parser.plugins.length;i++){
var _d=$.parser.plugins[i];
var r=$(".easyui-"+_d,_c);
if(r.length){
if(r[_d]){
r.each(function(){
$(this)[_d]($.data(this,"options")||{});
});
}else{
aa.push({name:_d,jq:r});
}
}
}
if(aa.length&&window.easyloader){
var _e=[];
for(var i=0;i<aa.length;i++){
_e.push(aa[i].name);
}
easyloader.load(_e,function(){
for(var i=0;i<aa.length;i++){
var _f=aa[i].name;
var jq=aa[i].jq;
jq.each(function(){
$(this)[_f]($.data(this,"options")||{});
});
}
$.parser.onComplete.call($.parser,_c);
});
}else{
$.parser.onComplete.call($.parser,_c);
}
},parseValue:function(_10,_11,_12,_13){
_13=_13||0;
var v=$.trim(String(_11||""));
var _14=v.substr(v.length-1,1);
if(_14=="%"){
v=parseFloat(v.substr(0,v.length-1));
if(_10.toLowerCase().indexOf("width")>=0){
_13+=_12[0].offsetWidth-_12[0].clientWidth;
v=Math.floor((_12.width()-_13)*v/100);
}else{
_13+=_12[0].offsetHeight-_12[0].clientHeight;
v=Math.floor((_12.height()-_13)*v/100);
}
}else{
v=parseInt(v)||undefined;
}
return v;
},parseOptions:function(_15,_16){
var t=$(_15);
var _17={};
var s=$.trim(t.attr("data-options"));
if(s){
if(s.substring(0,1)!="{"){
s="{"+s+"}";
}
_17=(new Function("return "+s))();
}
$.map(["width","height","left","top","minWidth","maxWidth","minHeight","maxHeight"],function(p){
var pv=$.trim(_15.style[p]||"");
if(pv){
if(pv.indexOf("%")==-1){
pv=parseInt(pv);
if(isNaN(pv)){
pv=undefined;
}
}
_17[p]=pv;
}
});
if(_16){
var _18={};
for(var i=0;i<_16.length;i++){
var pp=_16[i];
if(typeof pp=="string"){
_18[pp]=t.attr(pp);
}else{
for(var _19 in pp){
var _1a=pp[_19];
if(_1a=="boolean"){
_18[_19]=t.attr(_19)?(t.attr(_19)=="true"):undefined;
}else{
if(_1a=="number"){
_18[_19]=t.attr(_19)=="0"?0:parseFloat(t.attr(_19))||undefined;
}
}
}
}
}
$.extend(_17,_18);
}
return _17;
},parseVars:function(){
var d=$("<div style=\"position:absolute;top:-1000px;width:100px;height:100px;padding:5px\"></div>").appendTo("body");
$._boxModel=d.outerWidth()!=100;
d.remove();
d=$("<div style=\"position:fixed\"></div>").appendTo("body");
$._positionFixed=(d.css("position")=="fixed");
d.remove();
}};
$(function(){
$.parser.parseVars();
if(!window.easyloader&&$.parser.auto){
$.parser.parse();
}
});
$.fn._outerWidth=function(_1b){
if(_1b==undefined){
if(this[0]==window){
return this.width()||document.body.clientWidth;
}
return this.outerWidth()||0;
}
return this._size("width",_1b);
};
$.fn._outerHeight=function(_1c){
if(_1c==undefined){
if(this[0]==window){
return this.height()||document.body.clientHeight;
}
return this.outerHeight()||0;
}
return this._size("height",_1c);
};
$.fn._scrollLeft=function(_1d){
if(_1d==undefined){
return this.scrollLeft();
}else{
return this.each(function(){
$(this).scrollLeft(_1d);
});
}
};
$.fn._propAttr=$.fn.prop||$.fn.attr;
$.fn._bind=$.fn.on;
$.fn._unbind=$.fn.off;
$.fn._size=function(_1e,_1f){
if(typeof _1e=="string"){
if(_1e=="clear"){
return this.each(function(){
$(this).css({width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:""});
});
}else{
if(_1e=="fit"){
return this.each(function(){
_20(this,this.tagName=="BODY"?$("body"):$(this).parent(),true);
});
}else{
if(_1e=="unfit"){
return this.each(function(){
_20(this,$(this).parent(),false);
});
}else{
if(_1f==undefined){
return _21(this[0],_1e);
}else{
return this.each(function(){
_21(this,_1e,_1f);
});
}
}
}
}
}else{
return this.each(function(){
_1f=_1f||$(this).parent();
$.extend(_1e,_20(this,_1f,_1e.fit)||{});
var r1=_22(this,"width",_1f,_1e);
var r2=_22(this,"height",_1f,_1e);
if(r1||r2){
$(this).addClass("easyui-fluid");
}else{
$(this).removeClass("easyui-fluid");
}
});
}
function _20(_23,_24,fit){
if(!_24.length){
return false;
}
var t=$(_23)[0];
var p=_24[0];
var _25=p.fcount||0;
if(fit){
if(!t.fitted){
t.fitted=true;
p.fcount=_25+1;
$(p).addClass("panel-noscroll");
if(p.tagName=="BODY"){
$("html").addClass("panel-fit");
}
}
return {width:($(p).width()||1),height:($(p).height()||1)};
}else{
if(t.fitted){
t.fitted=false;
p.fcount=_25-1;
if(p.fcount==0){
$(p).removeClass("panel-noscroll");
if(p.tagName=="BODY"){
$("html").removeClass("panel-fit");
}
}
}
return false;
}
};
function _22(_26,_27,_28,_29){
var t=$(_26);
var p=_27;
var p1=p.substr(0,1).toUpperCase()+p.substr(1);
var min=$.parser.parseValue("min"+p1,_29["min"+p1],_28);
var max=$.parser.parseValue("max"+p1,_29["max"+p1],_28);
var val=$.parser.parseValue(p,_29[p],_28);
var _2a=(String(_29[p]||"").indexOf("%")>=0?true:false);
if(!isNaN(val)){
var v=Math.min(Math.max(val,min||0),max||99999);
if(!_2a){
_29[p]=v;
}
t._size("min"+p1,"");
t._size("max"+p1,"");
t._size(p,v);
}else{
t._size(p,"");
t._size("min"+p1,min);
t._size("max"+p1,max);
}
return _2a||_29.fit;
};
function _21(_2b,_2c,_2d){
var t=$(_2b);
if(_2d==undefined){
_2d=parseInt(_2b.style[_2c]);
if(isNaN(_2d)){
return undefined;
}
if($._boxModel){
_2d+=_2e();
}
return _2d;
}else{
if(_2d===""){
t.css(_2c,"");
}else{
if($._boxModel){
_2d-=_2e();
if(_2d<0){
_2d=0;
}
}
t.css(_2c,_2d+"px");
}
}
function _2e(){
if(_2c.toLowerCase().indexOf("width")>=0){
return t.outerWidth()-t.width();
}else{
return t.outerHeight()-t.height();
}
};
};
};
})(jQuery);
(function($){
var _2f=null;
var _30=null;
var _31=false;
function _32(e){
if(e.touches.length!=1){
return;
}
if(!_31){
_31=true;
dblClickTimer=setTimeout(function(){
_31=false;
},500);
}else{
clearTimeout(dblClickTimer);
_31=false;
_33(e,"dblclick");
}
_2f=setTimeout(function(){
_33(e,"contextmenu",3);
},1000);
_33(e,"mousedown");
if($.fn.draggable.isDragging||$.fn.resizable.isResizing){
e.preventDefault();
}
};
function _34(e){
if(e.touches.length!=1){
return;
}
if(_2f){
clearTimeout(_2f);
}
_33(e,"mousemove");
if($.fn.draggable.isDragging||$.fn.resizable.isResizing){
e.preventDefault();
}
};
function _35(e){
if(_2f){
clearTimeout(_2f);
}
_33(e,"mouseup");
if($.fn.draggable.isDragging||$.fn.resizable.isResizing){
e.preventDefault();
}
};
function _33(e,_36,_37){
var _38=new $.Event(_36);
_38.pageX=e.changedTouches[0].pageX;
_38.pageY=e.changedTouches[0].pageY;
_38.which=_37||1;
$(e.target).trigger(_38);
};
if(document.addEventListener){
document.addEventListener("touchstart",_32,true);
document.addEventListener("touchmove",_34,true);
document.addEventListener("touchend",_35,true);
}
})(jQuery);

Some files were not shown because too many files have changed in this diff Show More