jsuites 4.15.1 → 4.15.3

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.
@@ -228,6 +228,26 @@ div[data-before]:before {
228
228
  animation: slide-bottom-out 0.1s forwards;
229
229
  }
230
230
 
231
+ .slide-left-in > div {
232
+ -webkit-transform: translateZ(0px);
233
+ -webkit-transform: translate3d(0,0,0);
234
+ }
235
+
236
+ .slide-left-out > div {
237
+ -webkit-transform: translateZ(0px);
238
+ -webkit-transform: translate3d(0,0,0);
239
+ }
240
+
241
+ .slide-right-in > div {
242
+ -webkit-transform: translateZ(0px);
243
+ -webkit-transform: translate3d(0,0,0);
244
+ }
245
+
246
+ .slide-right-out > div {
247
+ -webkit-transform: translateZ(0px);
248
+ -webkit-transform: translate3d(0,0,0);
249
+ }
250
+
231
251
  .spin {
232
252
  animation: spin 2s infinite linear;
233
253
  }
@@ -1013,15 +1033,14 @@ div[data-before]:before {
1013
1033
  background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='gray' width='24px' height='24px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z'/%3E%3C/svg%3E");
1014
1034
  }
1015
1035
 
1016
- .jdropdown-container-header
1017
- {
1036
+ .jdropdown-container-header {
1018
1037
  padding:0px;
1019
1038
  margin:0px;
1020
1039
  position:relative;
1040
+ box-sizing: border-box;
1021
1041
  }
1022
1042
 
1023
- .jdropdown-header
1024
- {
1043
+ .jdropdown-header {
1025
1044
  width:100%;
1026
1045
  appearance: none;
1027
1046
  background-repeat: no-repeat;
@@ -1035,8 +1054,7 @@ div[data-before]:before {
1035
1054
  padding-right:30px !important;
1036
1055
  }
1037
1056
 
1038
- .jdropdown-insert-button
1039
- {
1057
+ .jdropdown-insert-button {
1040
1058
  font-size: 1.4em;
1041
1059
  text-transform: uppercase;
1042
1060
  position:absolute;
@@ -1045,16 +1063,14 @@ div[data-before]:before {
1045
1063
  display:none;
1046
1064
  }
1047
1065
 
1048
- .jdropdown-container
1049
- {
1066
+ .jdropdown-container {
1050
1067
  min-width: inherit;
1051
1068
  transform: translate3d(-10000px,0,0);
1052
1069
  position:absolute;
1053
1070
  z-index:9001;
1054
1071
  }
1055
1072
 
1056
- .jdropdown-close
1057
- {
1073
+ .jdropdown-close {
1058
1074
  display:none;
1059
1075
  font-size:1em;
1060
1076
  color: var(--active-color);
@@ -1064,19 +1080,16 @@ div[data-before]:before {
1064
1080
  font-weight:bold;
1065
1081
  }
1066
1082
 
1067
- .jdropdown-content
1068
- {
1083
+ .jdropdown-content {
1069
1084
  min-width:inherit;
1070
1085
  margin:0px;
1071
1086
  box-sizing:border-box;
1072
1087
  }
1073
1088
 
1074
- .jdropdown-content:empty
1075
- {
1089
+ .jdropdown-content:empty {
1076
1090
  }
1077
1091
 
1078
- .jdropdown-item
1079
- {
1092
+ .jdropdown-item {
1080
1093
  white-space: nowrap;
1081
1094
  text-align: left;
1082
1095
  text-overflow: ellipsis;
@@ -1086,42 +1099,36 @@ div[data-before]:before {
1086
1099
  align-items: center;
1087
1100
  }
1088
1101
 
1089
- .jdropdown-description
1090
- {
1102
+ .jdropdown-description {
1091
1103
  text-overflow: ellipsis;
1092
1104
  overflow: hidden;
1093
1105
  line-height: 1.5em;
1094
1106
  }
1095
1107
 
1096
- .jdropdown-image
1097
- {
1108
+ .jdropdown-image {
1098
1109
  margin-right:10px;
1099
1110
  width: 32px;
1100
1111
  height: 32px;
1101
1112
  border-radius:20px;
1102
1113
  }
1103
1114
 
1104
- .jdropdown-image-small
1105
- {
1115
+ .jdropdown-image-small {
1106
1116
  width:24px;
1107
1117
  height:24px;
1108
1118
  }
1109
1119
 
1110
- .jdropdown-icon
1111
- {
1120
+ .jdropdown-icon {
1112
1121
  margin-right:10px;
1113
1122
  font-size: 30px;
1114
1123
  margin-left: -5px;
1115
1124
  }
1116
1125
 
1117
- .jdropdown-icon-small
1118
- {
1126
+ .jdropdown-icon-small {
1119
1127
  font-size: 24px;
1120
1128
  margin-left: 0px;
1121
1129
  }
1122
1130
 
1123
- .jdropdown-title
1124
- {
1131
+ .jdropdown-title {
1125
1132
  font-size: 0.7em;
1126
1133
  text-overflow: ellipsis;
1127
1134
  overflow-x: hidden;
@@ -1130,16 +1137,14 @@ div[data-before]:before {
1130
1137
 
1131
1138
  /** Default visual **/
1132
1139
 
1133
- .jdropdown-default .jdropdown-header
1134
- {
1140
+ .jdropdown-default .jdropdown-header {
1135
1141
  border:1px solid #ccc;
1136
1142
  padding:5px;
1137
1143
  padding-left:10px;
1138
1144
  padding-right:16px;
1139
1145
  }
1140
1146
 
1141
- .jdropdown-default .jdropdown-container
1142
- {
1147
+ .jdropdown-default .jdropdown-container {
1143
1148
  background-color:#fff;
1144
1149
  }
1145
1150
 
@@ -1327,7 +1332,6 @@ div[data-before]:before {
1327
1332
  padding:10px;
1328
1333
  background-color:#fff;
1329
1334
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
1330
- max-height: 24px;
1331
1335
  width: 100%;
1332
1336
  }
1333
1337
 
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = {};
19
19
 
20
- var Version = '4.15.1';
20
+ var Version = '4.16.0';
21
21
 
22
22
  var Events = function() {
23
23
 
@@ -325,10 +325,12 @@ var Events = function() {
325
325
 
326
326
  if (document.jsuitesComponents && document.jsuitesComponents.length) {
327
327
  if (item = document.jsuitesComponents[document.jsuitesComponents.length - 1]) {
328
- if (e.key == "Escape" && typeof(item.close) == 'function') {
329
- item.close();
330
- e.preventDefault();
331
- e.stopImmediatePropagation();
328
+ if (e.key == "Escape" && typeof(item.isOpened) == 'function' && typeof(item.close) == 'function') {
329
+ if (item.isOpened()) {
330
+ item.close();
331
+ e.preventDefault();
332
+ e.stopImmediatePropagation();
333
+ }
332
334
  }
333
335
  }
334
336
  }
package/dist/jsuites.css CHANGED
@@ -228,6 +228,26 @@ div[data-before]:before {
228
228
  animation: slide-bottom-out 0.1s forwards;
229
229
  }
230
230
 
231
+ .slide-left-in > div {
232
+ -webkit-transform: translateZ(0px);
233
+ -webkit-transform: translate3d(0,0,0);
234
+ }
235
+
236
+ .slide-left-out > div {
237
+ -webkit-transform: translateZ(0px);
238
+ -webkit-transform: translate3d(0,0,0);
239
+ }
240
+
241
+ .slide-right-in > div {
242
+ -webkit-transform: translateZ(0px);
243
+ -webkit-transform: translate3d(0,0,0);
244
+ }
245
+
246
+ .slide-right-out > div {
247
+ -webkit-transform: translateZ(0px);
248
+ -webkit-transform: translate3d(0,0,0);
249
+ }
250
+
231
251
  .spin {
232
252
  animation: spin 2s infinite linear;
233
253
  }
@@ -1013,15 +1033,14 @@ div[data-before]:before {
1013
1033
  background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='gray' width='24px' height='24px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z'/%3E%3C/svg%3E");
1014
1034
  }
1015
1035
 
1016
- .jdropdown-container-header
1017
- {
1036
+ .jdropdown-container-header {
1018
1037
  padding:0px;
1019
1038
  margin:0px;
1020
1039
  position:relative;
1040
+ box-sizing: border-box;
1021
1041
  }
1022
1042
 
1023
- .jdropdown-header
1024
- {
1043
+ .jdropdown-header {
1025
1044
  width:100%;
1026
1045
  appearance: none;
1027
1046
  background-repeat: no-repeat;
@@ -1035,8 +1054,7 @@ div[data-before]:before {
1035
1054
  padding-right:30px !important;
1036
1055
  }
1037
1056
 
1038
- .jdropdown-insert-button
1039
- {
1057
+ .jdropdown-insert-button {
1040
1058
  font-size: 1.4em;
1041
1059
  text-transform: uppercase;
1042
1060
  position:absolute;
@@ -1045,16 +1063,14 @@ div[data-before]:before {
1045
1063
  display:none;
1046
1064
  }
1047
1065
 
1048
- .jdropdown-container
1049
- {
1066
+ .jdropdown-container {
1050
1067
  min-width: inherit;
1051
1068
  transform: translate3d(-10000px,0,0);
1052
1069
  position:absolute;
1053
1070
  z-index:9001;
1054
1071
  }
1055
1072
 
1056
- .jdropdown-close
1057
- {
1073
+ .jdropdown-close {
1058
1074
  display:none;
1059
1075
  font-size:1em;
1060
1076
  color: var(--active-color);
@@ -1064,19 +1080,16 @@ div[data-before]:before {
1064
1080
  font-weight:bold;
1065
1081
  }
1066
1082
 
1067
- .jdropdown-content
1068
- {
1083
+ .jdropdown-content {
1069
1084
  min-width:inherit;
1070
1085
  margin:0px;
1071
1086
  box-sizing:border-box;
1072
1087
  }
1073
1088
 
1074
- .jdropdown-content:empty
1075
- {
1089
+ .jdropdown-content:empty {
1076
1090
  }
1077
1091
 
1078
- .jdropdown-item
1079
- {
1092
+ .jdropdown-item {
1080
1093
  white-space: nowrap;
1081
1094
  text-align: left;
1082
1095
  text-overflow: ellipsis;
@@ -1086,42 +1099,36 @@ div[data-before]:before {
1086
1099
  align-items: center;
1087
1100
  }
1088
1101
 
1089
- .jdropdown-description
1090
- {
1102
+ .jdropdown-description {
1091
1103
  text-overflow: ellipsis;
1092
1104
  overflow: hidden;
1093
1105
  line-height: 1.5em;
1094
1106
  }
1095
1107
 
1096
- .jdropdown-image
1097
- {
1108
+ .jdropdown-image {
1098
1109
  margin-right:10px;
1099
1110
  width: 32px;
1100
1111
  height: 32px;
1101
1112
  border-radius:20px;
1102
1113
  }
1103
1114
 
1104
- .jdropdown-image-small
1105
- {
1115
+ .jdropdown-image-small {
1106
1116
  width:24px;
1107
1117
  height:24px;
1108
1118
  }
1109
1119
 
1110
- .jdropdown-icon
1111
- {
1120
+ .jdropdown-icon {
1112
1121
  margin-right:10px;
1113
1122
  font-size: 30px;
1114
1123
  margin-left: -5px;
1115
1124
  }
1116
1125
 
1117
- .jdropdown-icon-small
1118
- {
1126
+ .jdropdown-icon-small {
1119
1127
  font-size: 24px;
1120
1128
  margin-left: 0px;
1121
1129
  }
1122
1130
 
1123
- .jdropdown-title
1124
- {
1131
+ .jdropdown-title {
1125
1132
  font-size: 0.7em;
1126
1133
  text-overflow: ellipsis;
1127
1134
  overflow-x: hidden;
@@ -1130,16 +1137,14 @@ div[data-before]:before {
1130
1137
 
1131
1138
  /** Default visual **/
1132
1139
 
1133
- .jdropdown-default .jdropdown-header
1134
- {
1140
+ .jdropdown-default .jdropdown-header {
1135
1141
  border:1px solid #ccc;
1136
1142
  padding:5px;
1137
1143
  padding-left:10px;
1138
1144
  padding-right:16px;
1139
1145
  }
1140
1146
 
1141
- .jdropdown-default .jdropdown-container
1142
- {
1147
+ .jdropdown-default .jdropdown-container {
1143
1148
  background-color:#fff;
1144
1149
  }
1145
1150
 
@@ -1327,7 +1332,6 @@ div[data-before]:before {
1327
1332
  padding:10px;
1328
1333
  background-color:#fff;
1329
1334
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
1330
- max-height: 24px;
1331
1335
  width: 100%;
1332
1336
  }
1333
1337
 
@@ -1710,8 +1714,8 @@ div[data-before]:before {
1710
1714
  }
1711
1715
 
1712
1716
  .jmodal_title {
1713
- padding: 25px;
1714
- padding-bottom: 0px;
1717
+ padding: 20px;
1718
+ height: 70px;
1715
1719
  box-sizing: border-box;
1716
1720
  font-size: 1.4em;
1717
1721
  background-color: #fff;
@@ -1721,23 +1725,25 @@ div[data-before]:before {
1721
1725
  -webkit-align-items: center;
1722
1726
  -webkit-box-align: center;
1723
1727
  align-items: center;
1728
+ border-bottom: 1px solid #eee;
1724
1729
  }
1725
1730
 
1726
1731
  .jmodal_title[data-icon]:before {
1727
1732
  content: attr(data-icon);
1728
1733
  font-family: 'Material Icons' !important;
1729
- width: 48px;
1730
- height: 48px;
1731
- font-size: 48px;
1732
- padding-right: 10px;
1734
+ width: 24px;
1735
+ height: 24px;
1736
+ font-size: 24px;
1737
+ margin-right: 10px;
1738
+ line-height: 24px;
1733
1739
  }
1734
1740
 
1735
1741
  .jmodal_content {
1736
- padding: 22px;
1742
+ padding: 20px;
1737
1743
  overflow-y: auto;
1738
1744
  max-height: 100%;
1739
1745
  box-sizing: border-box;
1740
- height: calc(100% - 55px);
1746
+ height: calc(100% - 65px);
1741
1747
  scrollbar-width: thin;
1742
1748
  scrollbar-color: #333 transparent;
1743
1749
  }
package/dist/jsuites.js CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = {};
19
19
 
20
- var Version = '4.15.1';
20
+ var Version = '4.16.0';
21
21
 
22
22
  var Events = function() {
23
23
 
@@ -325,10 +325,12 @@ var Events = function() {
325
325
 
326
326
  if (document.jsuitesComponents && document.jsuitesComponents.length) {
327
327
  if (item = document.jsuitesComponents[document.jsuitesComponents.length - 1]) {
328
- if (e.key == "Escape" && typeof(item.close) == 'function') {
329
- item.close();
330
- e.preventDefault();
331
- e.stopImmediatePropagation();
328
+ if (e.key == "Escape" && typeof(item.isOpened) == 'function' && typeof(item.close) == 'function') {
329
+ if (item.isOpened()) {
330
+ item.close();
331
+ e.preventDefault();
332
+ e.stopImmediatePropagation();
333
+ }
332
334
  }
333
335
  }
334
336
  }
@@ -8960,6 +8962,7 @@ jSuites.modal = (function(el, options) {
8960
8962
  url: null,
8961
8963
  onopen: null,
8962
8964
  onclose: null,
8965
+ onload: null,
8963
8966
  closed: false,
8964
8967
  width: null,
8965
8968
  height: null,
@@ -9190,12 +9193,20 @@ jSuites.modal = (function(el, options) {
9190
9193
  if (! obj.options.closed) {
9191
9194
  obj.open();
9192
9195
  }
9196
+
9197
+ if (typeof(obj.options.onload) === 'function') {
9198
+ obj.options.onload(obj);
9199
+ }
9193
9200
  }
9194
9201
  });
9195
9202
  } else {
9196
9203
  if (! obj.options.closed) {
9197
9204
  obj.open();
9198
9205
  }
9206
+
9207
+ if (typeof(obj.options.onload) === 'function') {
9208
+ obj.options.onload(obj);
9209
+ }
9199
9210
  }
9200
9211
 
9201
9212
  // Keep object available from the node
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "javascript plugins"
20
20
  ],
21
21
  "main": "dist/jsuites.js",
22
- "version": "4.15.1",
22
+ "version": "4.15.3",
23
23
  "bugs": "https://github.com/jsuites/jsuites/issues",
24
24
  "homepage": "https://github.com/jsuites/jsuites",
25
25
  "docs": "https://jsuites.net",