jsuites 4.9.21 → 4.9.25

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.
package/dist/jsuites.js CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = function(options) {
19
19
  var obj = {}
20
- var version = '4.9.21';
20
+ var version = '4.9.25';
21
21
 
22
22
  var find = function(DOMElement, component) {
23
23
  if (DOMElement[component.type] && DOMElement[component.type] == component) {
@@ -231,7 +231,7 @@ jSuites.ajax = (function(options, complete) {
231
231
 
232
232
  if (options.data) {
233
233
  // Parse object to variables format
234
- var parseData = function(value, key) {
234
+ var parseData = function (value, key) {
235
235
  var vars = [];
236
236
  var keys = Object.keys(value);
237
237
  if (keys.length) {
@@ -242,7 +242,9 @@ jSuites.ajax = (function(options, complete) {
242
242
  var k = keys[i];
243
243
  }
244
244
 
245
- if (typeof(value[keys[i]]) == 'object') {
245
+ if (value[k] instanceof FileList) {
246
+ vars[k] = value[keys[i]];
247
+ } else if (typeof (value[keys[i]]) == 'object') {
246
248
  var r = parseData(value[keys[i]], k);
247
249
  var o = Object.keys(r);
248
250
  for (var j = 0; j < o.length; j++) {
@@ -257,18 +259,21 @@ jSuites.ajax = (function(options, complete) {
257
259
  return vars;
258
260
  }
259
261
 
260
- var data = [];
261
262
  var d = parseData(options.data);
262
263
  var k = Object.keys(d);
263
- for (var i = 0; i < k.length; i++) {
264
- data.push(k[i] + '=' + encodeURIComponent(d[k[i]]));
265
- }
266
264
 
267
- if (options.method == 'GET' && data.length > 0) {
268
- if (options.url.indexOf('?') < 0) {
269
- options.url += '?';
265
+ // Data form
266
+ var data = new FormData();
267
+ for (var i = 0; i < k.length; i++) {
268
+ if (d[k[i]] instanceof FileList) {
269
+ if (d[k[i]].length) {
270
+ for (var j = 0; j < d[k[i]].length; j++) {
271
+ data.append(k[i], d[k[i]][j], d[k[i]][j].name);
272
+ }
273
+ }
274
+ } else {
275
+ data.append(k[i], d[k[i]]);
270
276
  }
271
- options.url += data.join('&');
272
277
  }
273
278
  }
274
279
 
@@ -276,16 +281,25 @@ jSuites.ajax = (function(options, complete) {
276
281
  httpRequest.open(options.method, options.url, true);
277
282
  httpRequest.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
278
283
 
284
+ // Content type
285
+ if (options.contentType) {
286
+ httpRequest.setRequestHeader('Content-Type', options.contentType);
287
+ }
288
+
289
+ // Headers
279
290
  if (options.method == 'POST') {
280
291
  httpRequest.setRequestHeader('Accept', 'application/json');
281
- httpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
282
292
  } else {
283
- if (options.dataType == 'json') {
284
- httpRequest.setRequestHeader('Content-Type', 'text/json');
285
- } else if (options.dataType == 'blob') {
293
+ if (options.dataType == 'blob') {
286
294
  httpRequest.responseType = "blob";
287
- } else if (options.dataType == 'html') {
288
- httpRequest.setRequestHeader('Content-Type', 'text/html');
295
+ } else {
296
+ if (! options.contentType) {
297
+ if (options.dataType == 'json') {
298
+ httpRequest.setRequestHeader('Content-Type', 'text/json');
299
+ } else if (options.dataType == 'html') {
300
+ httpRequest.setRequestHeader('Content-Type', 'text/html');
301
+ }
302
+ }
289
303
  }
290
304
  }
291
305
 
@@ -396,7 +410,11 @@ jSuites.ajax = (function(options, complete) {
396
410
 
397
411
  jSuites.ajax.send = function(httpRequest) {
398
412
  if (httpRequest.data) {
399
- httpRequest.send(httpRequest.data.join('&'));
413
+ if (Array.isArray(httpRequest.data)) {
414
+ httpRequest.send(httpRequest.data.join('&'));
415
+ } else {
416
+ httpRequest.send(httpRequest.data);
417
+ }
400
418
  } else {
401
419
  httpRequest.send();
402
420
  }
@@ -2728,9 +2746,9 @@ jSuites.contextmenu = (function(el, options) {
2728
2746
  itemContainer.addEventListener("mousedown", function(e) {
2729
2747
  e.preventDefault();
2730
2748
  });
2731
- itemContainer.addEventListener("mouseup", function() {
2749
+ itemContainer.addEventListener("mouseup", function(e) {
2732
2750
  // Execute method
2733
- this.method(this);
2751
+ this.method(this, e);
2734
2752
  });
2735
2753
  }
2736
2754
  itemContainer.appendChild(itemText);
@@ -5913,7 +5931,7 @@ jSuites.form = (function(el, options) {
5913
5931
  var data = obj.options.onbeforesave(el, data);
5914
5932
 
5915
5933
  if (data === false) {
5916
- return;
5934
+ return;
5917
5935
  }
5918
5936
  }
5919
5937
 
@@ -6151,6 +6169,8 @@ jSuites.form.getValue = function(element) {
6151
6169
  if (element.checked == true) {
6152
6170
  value = element.value;
6153
6171
  }
6172
+ } else if (element.type == 'file') {
6173
+ value = element.files;
6154
6174
  } else if (element.tagName == 'select' && element.multiple == true) {
6155
6175
  value = [];
6156
6176
  var options = element.querySelectorAll("options[selected]");
@@ -6208,6 +6228,8 @@ jSuites.form.setElements = function(el, data) {
6208
6228
  if (value !== null) {
6209
6229
  if (type == 'checkbox' || type == 'radio') {
6210
6230
  elements[i].checked = value ? true : false;
6231
+ } else if (type == 'file') {
6232
+ // Do nothing
6211
6233
  } else {
6212
6234
  if (typeof (elements[i].val) == 'function') {
6213
6235
  elements[i].val(value);
@@ -7110,10 +7132,10 @@ jSuites.mask = (function() {
7110
7132
  } else {
7111
7133
  // Did not find any decimal last resort the default
7112
7134
  var e = new RegExp('#,##', 'ig');
7113
- if ((v && v.match(e)) || '1.1'.toLocaleString().substring(1,2) == '.') {
7114
- this.options.decimal = '.';
7115
- } else {
7135
+ if ((v && v.match(e)) || '1.1'.toLocaleString().substring(1,2) == ',') {
7116
7136
  this.options.decimal = ',';
7137
+ } else {
7138
+ this.options.decimal = '.';
7117
7139
  }
7118
7140
  }
7119
7141
  }
@@ -7166,10 +7188,7 @@ jSuites.mask = (function() {
7166
7188
  // Get decimal
7167
7189
  var d = getDecimal.call(this);
7168
7190
  // Convert value
7169
- var o = Object.create(this.options || {});
7170
- if (! o.minimumFractionDigits) {
7171
- o.minimumFractionDigits = 1;
7172
- }
7191
+ var o = this.options;
7173
7192
  // Parse value
7174
7193
  v = ParseValue.call(this, v);
7175
7194
  if (v == '') {
@@ -7186,10 +7205,13 @@ jSuites.mask = (function() {
7186
7205
  }
7187
7206
  var n = new Intl.NumberFormat(this.locale, o).format(t);
7188
7207
  n = n.split(d);
7189
- var s = n[1].replace(/[0-9]*/g, '');
7190
- if (s) {
7191
- n[2] = s;
7208
+ if (typeof(n[1]) !== 'undefined') {
7209
+ var s = n[1].replace(/[0-9]*/g, '');
7210
+ if (s) {
7211
+ n[2] = s;
7212
+ }
7192
7213
  }
7214
+
7193
7215
  if (v[1] !== undefined) {
7194
7216
  n[1] = d + v[1];
7195
7217
  } else {
@@ -8262,18 +8284,31 @@ jSuites.mask = (function() {
8262
8284
  d = d[0].length - 2;
8263
8285
  t = value.toFixed(d);
8264
8286
  } else {
8265
- t = (''+value);
8287
+ t = value.toFixed(0);
8266
8288
  }
8267
8289
  } else if (options.locale && fullMask) {
8290
+ // Append zeros
8268
8291
  var d = (''+value).split('.');
8269
- if (! d[1]) {
8270
- d[1] = '00';
8271
- } else {
8272
- if (d[1].length == 1) {
8273
- d[1] += '0';
8292
+ if (options.options) {
8293
+ if (typeof(d[1]) === 'undefined') {
8294
+ d[1] = '';
8295
+ }
8296
+ var len = d[1].length;
8297
+ if (options.options.minimumFractionDigits > len) {
8298
+ for (var i = 0; i < options.options.minimumFractionDigits - len; i++) {
8299
+ d[1] += '0';
8300
+ }
8274
8301
  }
8275
8302
  }
8276
- t = d.join('.');
8303
+ if (! d[1].length) {
8304
+ t = d[0]
8305
+ } else {
8306
+ t = d.join('.');
8307
+ }
8308
+ var len = d[1].length;
8309
+ if (options.options && options.options.maximumFractionDigits < len) {
8310
+ t = parseFloat(t).toFixed(options.options.maximumFractionDigits);
8311
+ }
8277
8312
  } else {
8278
8313
  t = toPlainString(value);
8279
8314
  }
@@ -8345,6 +8380,7 @@ jSuites.modal = (function(el, options) {
8345
8380
  height: null,
8346
8381
  title: null,
8347
8382
  padding: null,
8383
+ backdrop: true,
8348
8384
  };
8349
8385
 
8350
8386
  // Loop through our object
@@ -8397,12 +8433,14 @@ jSuites.modal = (function(el, options) {
8397
8433
  el.appendChild(obj.container);
8398
8434
 
8399
8435
  // Backdrop
8400
- var backdrop = document.createElement('div');
8401
- backdrop.className = 'jmodal_backdrop';
8402
- backdrop.onclick = function() {
8403
- obj.close();
8436
+ if (obj.options.backdrop) {
8437
+ var backdrop = document.createElement('div');
8438
+ backdrop.className = 'jmodal_backdrop';
8439
+ backdrop.onclick = function () {
8440
+ obj.close();
8441
+ }
8442
+ el.appendChild(backdrop);
8404
8443
  }
8405
- el.appendChild(backdrop);
8406
8444
 
8407
8445
  obj.open = function() {
8408
8446
  el.style.display = 'block';
@@ -8414,10 +8452,10 @@ jSuites.modal = (function(el, options) {
8414
8452
  obj.container.classList.add('jmodal_fullscreen');
8415
8453
  jSuites.animation.slideBottom(obj.container, 1);
8416
8454
  } else {
8417
- backdrop.style.display = 'block';
8455
+ if (obj.options.backdrop) {
8456
+ backdrop.style.display = 'block';
8457
+ }
8418
8458
  }
8419
- // Current
8420
- jSuites.modal.current = obj;
8421
8459
  // Event
8422
8460
  if (typeof(obj.options.onopen) == 'function') {
8423
8461
  obj.options.onopen(el, obj);
@@ -8435,10 +8473,10 @@ jSuites.modal = (function(el, options) {
8435
8473
 
8436
8474
  obj.close = function() {
8437
8475
  el.style.display = 'none';
8438
- // Backdrop
8439
- backdrop.style.display = '';
8440
- // Current
8441
- jSuites.modal.current = null;
8476
+ if (obj.options.backdrop) {
8477
+ // Backdrop
8478
+ backdrop.style.display = '';
8479
+ }
8442
8480
  // Remove fullscreen class
8443
8481
  obj.container.classList.remove('jmodal_fullscreen');
8444
8482
  // Event
@@ -8448,17 +8486,83 @@ jSuites.modal = (function(el, options) {
8448
8486
  }
8449
8487
 
8450
8488
  if (! jSuites.modal.hasEvents) {
8451
- jSuites.modal.current = obj;
8489
+ // Position
8490
+ var tracker = null;
8452
8491
 
8453
- if ('ontouchstart' in document.documentElement === true) {
8454
- document.addEventListener("touchstart", jSuites.modal.mouseDownControls);
8455
- } else {
8456
- document.addEventListener('mousedown', jSuites.modal.mouseDownControls);
8457
- document.addEventListener('mousemove', jSuites.modal.mouseMoveControls);
8458
- document.addEventListener('mouseup', jSuites.modal.mouseUpControls);
8459
- }
8492
+ document.addEventListener('keydown', function(e) {
8493
+ if (e.which == 27) {
8494
+ var modals = document.querySelectorAll('.jmodal');
8495
+ for (var i = 0; i < modals.length; i++) {
8496
+ modals[i].parentNode.modal.close();
8497
+ }
8498
+ }
8499
+ });
8460
8500
 
8461
- document.addEventListener('keydown', jSuites.modal.keyDownControls);
8501
+ document.addEventListener('mouseup', function(e) {
8502
+ if (tracker) {
8503
+ tracker.element.style.cursor = 'auto';
8504
+ tracker = null;
8505
+ }
8506
+ });
8507
+
8508
+ document.addEventListener('mousedown', function(e) {
8509
+ var item = jSuites.findElement(e.target, 'jmodal');
8510
+ if (item) {
8511
+ // Get target info
8512
+ var rect = item.getBoundingClientRect();
8513
+
8514
+ if (e.changedTouches && e.changedTouches[0]) {
8515
+ var x = e.changedTouches[0].clientX;
8516
+ var y = e.changedTouches[0].clientY;
8517
+ } else {
8518
+ var x = e.clientX;
8519
+ var y = e.clientY;
8520
+ }
8521
+
8522
+ if (rect.width - (x - rect.left) < 50 && (y - rect.top) < 50) {
8523
+ item.parentNode.modal.close();
8524
+ } else {
8525
+ if (e.target.getAttribute('title') && (y - rect.top) < 50) {
8526
+ if (document.selection) {
8527
+ document.selection.empty();
8528
+ } else if ( window.getSelection ) {
8529
+ window.getSelection().removeAllRanges();
8530
+ }
8531
+
8532
+ tracker = {
8533
+ left: rect.left,
8534
+ top: rect.top,
8535
+ x: e.clientX,
8536
+ y: e.clientY,
8537
+ width: rect.width,
8538
+ height: rect.height,
8539
+ element: item,
8540
+ }
8541
+ }
8542
+ }
8543
+ }
8544
+ });
8545
+
8546
+ document.addEventListener('mousemove', function(e) {
8547
+ if (tracker) {
8548
+ e = e || window.event;
8549
+ if (e.buttons) {
8550
+ var mouseButton = e.buttons;
8551
+ } else if (e.button) {
8552
+ var mouseButton = e.button;
8553
+ } else {
8554
+ var mouseButton = e.which;
8555
+ }
8556
+
8557
+ if (mouseButton) {
8558
+ tracker.element.style.top = (tracker.top + (e.clientY - tracker.y) + (tracker.height / 2)) + 'px';
8559
+ tracker.element.style.left = (tracker.left + (e.clientX - tracker.x) + (tracker.width / 2)) + 'px';
8560
+ tracker.element.style.cursor = 'move';
8561
+ } else {
8562
+ tracker.element.style.cursor = 'auto';
8563
+ }
8564
+ }
8565
+ });
8462
8566
 
8463
8567
  jSuites.modal.hasEvents = true;
8464
8568
  }
@@ -8488,79 +8592,6 @@ jSuites.modal = (function(el, options) {
8488
8592
  return obj;
8489
8593
  });
8490
8594
 
8491
- jSuites.modal.current = null;
8492
- jSuites.modal.position = null;
8493
-
8494
- jSuites.modal.keyDownControls = function(e) {
8495
- if (e.which == 27) {
8496
- if (jSuites.modal.current) {
8497
- jSuites.modal.current.close();
8498
- }
8499
- }
8500
- }
8501
-
8502
- jSuites.modal.mouseUpControls = function(e) {
8503
- if (jSuites.modal.current) {
8504
- jSuites.modal.current.container.style.cursor = 'auto';
8505
- }
8506
- jSuites.modal.position = null;
8507
- }
8508
-
8509
- jSuites.modal.mouseMoveControls = function(e) {
8510
- if (jSuites.modal.current && jSuites.modal.position) {
8511
- if (e.which == 1 || e.which == 3) {
8512
- var position = jSuites.modal.position;
8513
- jSuites.modal.current.container.style.top = (position[1] + (e.clientY - position[3]) + (position[5] / 2)) + 'px';
8514
- jSuites.modal.current.container.style.left = (position[0] + (e.clientX - position[2]) + (position[4] / 2)) + 'px';
8515
- jSuites.modal.current.container.style.cursor = 'move';
8516
- } else {
8517
- jSuites.modal.current.container.style.cursor = 'auto';
8518
- }
8519
- }
8520
- }
8521
-
8522
- jSuites.modal.mouseDownControls = function(e) {
8523
- jSuites.modal.position = [];
8524
-
8525
- if (e.target.classList.contains('jmodal')) {
8526
- setTimeout(function() {
8527
- // Get target info
8528
- var rect = e.target.getBoundingClientRect();
8529
-
8530
- if (e.changedTouches && e.changedTouches[0]) {
8531
- var x = e.changedTouches[0].clientX;
8532
- var y = e.changedTouches[0].clientY;
8533
- } else {
8534
- var x = e.clientX;
8535
- var y = e.clientY;
8536
- }
8537
-
8538
- if (rect.width - (x - rect.left) < 50 && (y - rect.top) < 50) {
8539
- setTimeout(function() {
8540
- jSuites.modal.current.close();
8541
- }, 100);
8542
- } else {
8543
- if (e.target.getAttribute('title') && (y - rect.top) < 50) {
8544
- if (document.selection) {
8545
- document.selection.empty();
8546
- } else if ( window.getSelection ) {
8547
- window.getSelection().removeAllRanges();
8548
- }
8549
-
8550
- jSuites.modal.position = [
8551
- rect.left,
8552
- rect.top,
8553
- e.clientX,
8554
- e.clientY,
8555
- rect.width,
8556
- rect.height,
8557
- ];
8558
- }
8559
- }
8560
- }, 100);
8561
- }
8562
- }
8563
-
8564
8595
 
8565
8596
  jSuites.notification = (function(options) {
8566
8597
  var obj = {};
@@ -8703,40 +8734,45 @@ jSuites.notification.isVisible = function() {
8703
8734
  }
8704
8735
 
8705
8736
  // More palettes https://coolors.co/ or https://gka.github.io/palettes/#/10|s|003790,005647,ffffe0|ffffe0,ff005e,93003a|1|1
8706
-
8707
- jSuites.palette = function(o) {
8708
- // Material
8709
- var palette = {};
8710
-
8711
- palette.material = [
8712
- [ "#ffebee", "#fce4ec", "#f3e5f5", "#e8eaf6", "#e3f2fd", "#e0f7fa", "#e0f2f1", "#e8f5e9", "#f1f8e9", "#f9fbe7", "#fffde7", "#fff8e1", "#fff3e0", "#fbe9e7", "#efebe9", "#fafafa", "#eceff1" ],
8713
- [ "#ffcdd2", "#f8bbd0", "#e1bee7", "#c5cae9", "#bbdefb", "#b2ebf2", "#b2dfdb", "#c8e6c9", "#dcedc8", "#f0f4c3", "#fff9c4", "#ffecb3", "#ffe0b2", "#ffccbc", "#d7ccc8", "#f5f5f5", "#cfd8dc" ],
8714
- [ "#ef9a9a", "#f48fb1", "#ce93d8", "#9fa8da", "#90caf9", "#80deea", "#80cbc4", "#a5d6a7", "#c5e1a5", "#e6ee9c", "#fff59d", "#ffe082", "#ffcc80", "#ffab91", "#bcaaa4", "#eeeeee", "#b0bec5" ],
8715
- [ "#e57373", "#f06292", "#ba68c8", "#7986cb", "#64b5f6", "#4dd0e1", "#4db6ac", "#81c784", "#aed581", "#dce775", "#fff176", "#ffd54f", "#ffb74d", "#ff8a65", "#a1887f", "#e0e0e0", "#90a4ae" ],
8716
- [ "#ef5350", "#ec407a", "#ab47bc", "#5c6bc0", "#42a5f5", "#26c6da", "#26a69a", "#66bb6a", "#9ccc65", "#d4e157", "#ffee58", "#ffca28", "#ffa726", "#ff7043", "#8d6e63", "#bdbdbd", "#78909c" ],
8717
- [ "#f44336", "#e91e63", "#9c27b0", "#3f51b5", "#2196f3", "#00bcd4", "#009688", "#4caf50", "#8bc34a", "#cddc39", "#ffeb3b", "#ffc107", "#ff9800", "#ff5722", "#795548", "#9e9e9e", "#607d8b" ],
8718
- [ "#e53935", "#d81b60", "#8e24aa", "#3949ab", "#1e88e5", "#00acc1", "#00897b", "#43a047", "#7cb342", "#c0ca33", "#fdd835", "#ffb300", "#fb8c00", "#f4511e", "#6d4c41", "#757575", "#546e7a" ],
8719
- [ "#d32f2f", "#c2185b", "#7b1fa2", "#303f9f", "#1976d2", "#0097a7", "#00796b", "#388e3c", "#689f38", "#afb42b", "#fbc02d", "#ffa000", "#f57c00", "#e64a19", "#5d4037", "#616161", "#455a64" ],
8720
- [ "#c62828", "#ad1457", "#6a1b9a", "#283593", "#1565c0", "#00838f", "#00695c", "#2e7d32", "#558b2f", "#9e9d24", "#f9a825", "#ff8f00", "#ef6c00", "#d84315", "#4e342e", "#424242", "#37474f" ],
8721
- [ "#b71c1c", "#880e4f", "#4a148c", "#1a237e", "#0d47a1", "#006064", "#004d40", "#1b5e20", "#33691e", "#827717", "#f57f17", "#ff6f00", "#e65100", "#bf360c", "#3e2723", "#212121", "#263238" ],
8722
- ];
8723
-
8724
- palette.fire = [
8725
- ["0b1a6d","840f38","b60718","de030b","ff0c0c","fd491c","fc7521","faa331","fbb535","ffc73a"],
8726
- ["071147","5f0b28","930513","be0309","ef0000","fa3403","fb670b","f9991b","faad1e","ffc123"],
8727
- ["03071e","370617","6a040f","9d0208","d00000","dc2f02","e85d04","f48c06","faa307","ffba08"],
8728
- ["020619","320615","61040d","8c0207","bc0000","c82a02","d05203","db7f06","e19405","efab00"],
8729
- ["020515","2d0513","58040c","7f0206","aa0000","b62602","b94903","c57205","ca8504","d89b00"],
8730
- ]
8731
-
8732
- palette.baby = [
8733
- ["eddcd2","fff1e6","fde2e4","fad2e1","c5dedd","dbe7e4","f0efeb","d6e2e9","bcd4e6","99c1de"],
8734
- ["e1c4b3","ffd5b5","fab6ba","f5a8c4","aacecd","bfd5cf","dbd9d0","baceda","9dc0db","7eb1d5"],
8735
- ["daa990","ffb787","f88e95","f282a9","8fc4c3","a3c8be","cec9b3","9dbcce","82acd2","649dcb"],
8736
- ["d69070","ff9c5e","f66770","f05f8f","74bbb9","87bfae","c5b993","83aac3","699bca","4d89c2"],
8737
- ["c97d5d","f58443","eb4d57","e54a7b","66a9a7","78ae9c","b5a67e","7599b1","5c88b7","4978aa"],
8738
- ]
8739
-
8737
+ jSuites.palette = function(o, v) {
8738
+ var palette = {
8739
+ material: [
8740
+ [ "#ffebee", "#fce4ec", "#f3e5f5", "#e8eaf6", "#e3f2fd", "#e0f7fa", "#e0f2f1", "#e8f5e9", "#f1f8e9", "#f9fbe7", "#fffde7", "#fff8e1", "#fff3e0", "#fbe9e7", "#efebe9", "#fafafa", "#eceff1" ],
8741
+ [ "#ffcdd2", "#f8bbd0", "#e1bee7", "#c5cae9", "#bbdefb", "#b2ebf2", "#b2dfdb", "#c8e6c9", "#dcedc8", "#f0f4c3", "#fff9c4", "#ffecb3", "#ffe0b2", "#ffccbc", "#d7ccc8", "#f5f5f5", "#cfd8dc" ],
8742
+ [ "#ef9a9a", "#f48fb1", "#ce93d8", "#9fa8da", "#90caf9", "#80deea", "#80cbc4", "#a5d6a7", "#c5e1a5", "#e6ee9c", "#fff59d", "#ffe082", "#ffcc80", "#ffab91", "#bcaaa4", "#eeeeee", "#b0bec5" ],
8743
+ [ "#e57373", "#f06292", "#ba68c8", "#7986cb", "#64b5f6", "#4dd0e1", "#4db6ac", "#81c784", "#aed581", "#dce775", "#fff176", "#ffd54f", "#ffb74d", "#ff8a65", "#a1887f", "#e0e0e0", "#90a4ae" ],
8744
+ [ "#ef5350", "#ec407a", "#ab47bc", "#5c6bc0", "#42a5f5", "#26c6da", "#26a69a", "#66bb6a", "#9ccc65", "#d4e157", "#ffee58", "#ffca28", "#ffa726", "#ff7043", "#8d6e63", "#bdbdbd", "#78909c" ],
8745
+ [ "#f44336", "#e91e63", "#9c27b0", "#3f51b5", "#2196f3", "#00bcd4", "#009688", "#4caf50", "#8bc34a", "#cddc39", "#ffeb3b", "#ffc107", "#ff9800", "#ff5722", "#795548", "#9e9e9e", "#607d8b" ],
8746
+ [ "#e53935", "#d81b60", "#8e24aa", "#3949ab", "#1e88e5", "#00acc1", "#00897b", "#43a047", "#7cb342", "#c0ca33", "#fdd835", "#ffb300", "#fb8c00", "#f4511e", "#6d4c41", "#757575", "#546e7a" ],
8747
+ [ "#d32f2f", "#c2185b", "#7b1fa2", "#303f9f", "#1976d2", "#0097a7", "#00796b", "#388e3c", "#689f38", "#afb42b", "#fbc02d", "#ffa000", "#f57c00", "#e64a19", "#5d4037", "#616161", "#455a64" ],
8748
+ [ "#c62828", "#ad1457", "#6a1b9a", "#283593", "#1565c0", "#00838f", "#00695c", "#2e7d32", "#558b2f", "#9e9d24", "#f9a825", "#ff8f00", "#ef6c00", "#d84315", "#4e342e", "#424242", "#37474f" ],
8749
+ [ "#b71c1c", "#880e4f", "#4a148c", "#1a237e", "#0d47a1", "#006064", "#004d40", "#1b5e20", "#33691e", "#827717", "#f57f17", "#ff6f00", "#e65100", "#bf360c", "#3e2723", "#212121", "#263238" ],
8750
+ ],
8751
+ fire: [
8752
+ ["0b1a6d","840f38","b60718","de030b","ff0c0c","fd491c","fc7521","faa331","fbb535","ffc73a"],
8753
+ ["071147","5f0b28","930513","be0309","ef0000","fa3403","fb670b","f9991b","faad1e","ffc123"],
8754
+ ["03071e","370617","6a040f","9d0208","d00000","dc2f02","e85d04","f48c06","faa307","ffba08"],
8755
+ ["020619","320615","61040d","8c0207","bc0000","c82a02","d05203","db7f06","e19405","efab00"],
8756
+ ["020515","2d0513","58040c","7f0206","aa0000","b62602","b94903","c57205","ca8504","d89b00"],
8757
+ ],
8758
+ baby: [
8759
+ ["eddcd2","fff1e6","fde2e4","fad2e1","c5dedd","dbe7e4","f0efeb","d6e2e9","bcd4e6","99c1de"],
8760
+ ["e1c4b3","ffd5b5","fab6ba","f5a8c4","aacecd","bfd5cf","dbd9d0","baceda","9dc0db","7eb1d5"],
8761
+ ["daa990","ffb787","f88e95","f282a9","8fc4c3","a3c8be","cec9b3","9dbcce","82acd2","649dcb"],
8762
+ ["d69070","ff9c5e","f66770","f05f8f","74bbb9","87bfae","c5b993","83aac3","699bca","4d89c2"],
8763
+ ["c97d5d","f58443","eb4d57","e54a7b","66a9a7","78ae9c","b5a67e","7599b1","5c88b7","4978aa"],
8764
+ ],
8765
+ chart: [
8766
+ ['#C1D37F','#4C5454','#FFD275','#66586F','#D05D5B','#C96480','#95BF8F','#6EA240','#0F0F0E','#EB8258','#95A3B3','#995D81'],
8767
+ ],
8768
+ }
8769
+
8770
+ // Is defined, set new palette value
8771
+ if (typeof(v) !== 'undefined') {
8772
+ palette[o] = v;
8773
+ }
8774
+
8775
+ // Otherwise get palette value
8740
8776
  if (palette[o]) {
8741
8777
  return palette[o];
8742
8778
  } else {
@@ -8744,6 +8780,7 @@ jSuites.palette = function(o) {
8744
8780
  }
8745
8781
  }
8746
8782
 
8783
+
8747
8784
  jSuites.picker = (function(el, options) {
8748
8785
  // Already created, update options
8749
8786
  if (el.picker) {
@@ -40,6 +40,11 @@
40
40
  background-color:#1a73e8;
41
41
  }
42
42
 
43
+ .jbutton.dark a {
44
+ color: #fff;
45
+ text-decoration: none;
46
+ }
47
+
43
48
  .jbutton.mobile {
44
49
  padding:4px;
45
50
  padding-left:25px;
@@ -1164,7 +1164,7 @@ jSuites.login = (function(el, options) {
1164
1164
 
1165
1165
  // Login
1166
1166
  var labelLogin = document.createElement('label');
1167
- labelLogin.innerHTML = jSuites.translate('Login');
1167
+ labelLogin.innerHTML = jSuites.translate('Username');
1168
1168
  var inputLogin = document.createElement('input');
1169
1169
  inputLogin.type = 'text';
1170
1170
  inputLogin.name = 'login';
@@ -0,0 +1,9 @@
1
+ version: "3.7"
2
+ services:
3
+ php:
4
+ build: ./resources
5
+ ports:
6
+ - 9000
7
+ volumes:
8
+ - .:/var/www/html
9
+
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "javascript plugins"
20
20
  ],
21
21
  "main": "dist/jsuites.js",
22
- "version": "4.9.21",
22
+ "version": "4.9.25",
23
23
  "bugs": "https://github.com/jsuites/jsuites/issues",
24
24
  "homepage": "https://github.com/jsuites/jsuites",
25
25
  "docs": "https://jsuites.net",
@@ -0,0 +1,5 @@
1
+ FROM php:7.3-fpm
2
+
3
+ WORKDIR /var/www/html
4
+
5
+ ENTRYPOINT php /var/www/html/compile.php