jsuites 4.16.2 → 4.16.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -885,6 +885,7 @@ div[data-before]:before {
885
885
  font-size: 15px;
886
886
  position: absolute;
887
887
  left: 9px;
888
+ line-height: 24px;
888
889
  }
889
890
 
890
891
  .jcontextmenu.symbols > div::before {
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = {};
19
19
 
20
- var Version = '4.16.2';
20
+ var Version = '4.16.4';
21
21
 
22
22
  var Events = function() {
23
23
 
@@ -3265,6 +3265,8 @@ jSuites.dropdown = (function(el, options) {
3265
3265
  }
3266
3266
  // Reset options
3267
3267
  obj.options.value = '';
3268
+ // Reset value
3269
+ el.value = '';
3268
3270
  }
3269
3271
 
3270
3272
  /**
@@ -7072,12 +7074,19 @@ jSuites.loading = (function() {
7072
7074
 
7073
7075
  var loading = null;
7074
7076
 
7075
- obj.show = function() {
7077
+ obj.show = function(timeout) {
7076
7078
  if (! loading) {
7077
7079
  loading = document.createElement('div');
7078
7080
  loading.className = 'jloading';
7079
7081
  }
7080
7082
  document.body.appendChild(loading);
7083
+
7084
+ // Max timeout in seconds
7085
+ if (timeout > 0) {
7086
+ setTimeout(function() {
7087
+ obj.hide();
7088
+ }, timeout * 1000)
7089
+ }
7081
7090
  }
7082
7091
 
7083
7092
  obj.hide = function() {
package/dist/jsuites.css CHANGED
@@ -885,6 +885,7 @@ div[data-before]:before {
885
885
  font-size: 15px;
886
886
  position: absolute;
887
887
  left: 9px;
888
+ line-height: 24px;
888
889
  }
889
890
 
890
891
  .jcontextmenu.symbols > div::before {
@@ -1712,6 +1713,8 @@ div[data-before]:before {
1712
1713
  box-sizing: border-box;
1713
1714
  z-index:9002;
1714
1715
  border-radius: 4px;
1716
+ display: flex;
1717
+ flex-direction: column;
1715
1718
  }
1716
1719
 
1717
1720
  .jmodal_title {
@@ -1742,9 +1745,8 @@ div[data-before]:before {
1742
1745
  .jmodal_content {
1743
1746
  padding: 20px;
1744
1747
  overflow-y: auto;
1745
- max-height: 100%;
1748
+ height: 100%;
1746
1749
  box-sizing: border-box;
1747
- height: calc(100% - 65px);
1748
1750
  scrollbar-width: thin;
1749
1751
  scrollbar-color: #333 transparent;
1750
1752
  }
@@ -1805,7 +1807,7 @@ div[data-before]:before {
1805
1807
  left: 0px;
1806
1808
  min-width: 100%;
1807
1809
  min-height: 100%;
1808
- background-color: rgba(0,0,0,0.5);
1810
+ background-color: rgba(0,0,0,0.2);
1809
1811
  border: 0px;
1810
1812
  padding: 0px;
1811
1813
  z-index: 8000;
@@ -2581,19 +2583,22 @@ div[data-before]:before {
2581
2583
  -ms-flex-pack: flex-start;
2582
2584
  -webkit-justify-content: space-between;
2583
2585
  justify-content: flex-start;
2584
- padding: 2px;
2586
+ padding: 1px;
2585
2587
  border: 1px solid #ccc;
2588
+ position: relative;
2586
2589
  }
2587
2590
 
2588
2591
  .jtags.jtags-empty:not(.jtags-focus)::before {
2589
2592
  position: absolute;
2590
- margin: 5px;
2593
+ margin: 3px;
2591
2594
  color: #ccc;
2592
- content:attr(data-placeholder);
2595
+ content: attr(data-placeholder);
2596
+ top: 0px;
2597
+ margin-left: 6px;
2593
2598
  }
2594
2599
 
2595
2600
  .jtags > div {
2596
- padding: 3px;
2601
+ padding: 1px;
2597
2602
  padding-left: 10px;
2598
2603
  padding-right: 22px;
2599
2604
  position: relative;
package/dist/jsuites.js CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = {};
19
19
 
20
- var Version = '4.16.2';
20
+ var Version = '4.16.4';
21
21
 
22
22
  var Events = function() {
23
23
 
@@ -3276,6 +3276,8 @@ jSuites.dropdown = (function(el, options) {
3276
3276
  }
3277
3277
  // Reset options
3278
3278
  obj.options.value = '';
3279
+ // Reset value
3280
+ el.value = '';
3279
3281
  }
3280
3282
 
3281
3283
  /**
@@ -7497,12 +7499,19 @@ jSuites.loading = (function() {
7497
7499
 
7498
7500
  var loading = null;
7499
7501
 
7500
- obj.show = function() {
7502
+ obj.show = function(timeout) {
7501
7503
  if (! loading) {
7502
7504
  loading = document.createElement('div');
7503
7505
  loading.className = 'jloading';
7504
7506
  }
7505
7507
  document.body.appendChild(loading);
7508
+
7509
+ // Max timeout in seconds
7510
+ if (timeout > 0) {
7511
+ setTimeout(function() {
7512
+ obj.hide();
7513
+ }, timeout * 1000)
7514
+ }
7506
7515
  }
7507
7516
 
7508
7517
  obj.hide = function() {
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "javascript plugins"
20
20
  ],
21
21
  "main": "dist/jsuites.js",
22
- "version": "4.16.2",
22
+ "version": "4.16.4",
23
23
  "bugs": "https://github.com/jsuites/jsuites/issues",
24
24
  "homepage": "https://github.com/jsuites/jsuites",
25
25
  "docs": "https://jsuites.net",