jsuites 4.14.1 → 4.14.5
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.basic.css +2 -1
- package/dist/jsuites.basic.js +33 -9
- package/dist/jsuites.css +2 -19
- package/dist/jsuites.js +33 -9
- package/package.json +1 -1
- package/compile.php +0 -86
- package/docker-compose.yml +0 -9
package/dist/jsuites.basic.css
CHANGED
|
@@ -854,6 +854,8 @@ div[data-before]:before {
|
|
|
854
854
|
font-size: 11px;
|
|
855
855
|
font-family:sans-serif;
|
|
856
856
|
text-align: left;
|
|
857
|
+
-webkit-box-align: center;
|
|
858
|
+
align-items: center;
|
|
857
859
|
}
|
|
858
860
|
|
|
859
861
|
.jcontextmenu > div::before {
|
|
@@ -862,7 +864,6 @@ div[data-before]:before {
|
|
|
862
864
|
font-size: 15px;
|
|
863
865
|
position: absolute;
|
|
864
866
|
left: 9px;
|
|
865
|
-
top: 5px;
|
|
866
867
|
}
|
|
867
868
|
|
|
868
869
|
.jcontextmenu.symbols > div::before {
|
package/dist/jsuites.basic.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
var jSuites = {};
|
|
19
19
|
|
|
20
|
-
var Version = '4.14.
|
|
20
|
+
var Version = '4.14.5';
|
|
21
21
|
|
|
22
22
|
var Events = function() {
|
|
23
23
|
|
|
@@ -455,7 +455,7 @@ jSuites.setDictionary = function(d) {
|
|
|
455
455
|
|
|
456
456
|
// Translate
|
|
457
457
|
jSuites.translate = function(t) {
|
|
458
|
-
if (document.dictionary) {
|
|
458
|
+
if (typeof(document) !== "undefined" && document.dictionary) {
|
|
459
459
|
return document.dictionary[t] || t;
|
|
460
460
|
} else {
|
|
461
461
|
return t;
|
|
@@ -2903,11 +2903,17 @@ jSuites.color = (function(el, options) {
|
|
|
2903
2903
|
var hex = function(x) {
|
|
2904
2904
|
return ("0" + parseInt(x).toString(16)).slice(-2);
|
|
2905
2905
|
}
|
|
2906
|
-
if (
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2906
|
+
if (rgb) {
|
|
2907
|
+
if (/^#[0-9A-F]{6}$/i.test(rgb)) {
|
|
2908
|
+
return rgb;
|
|
2909
|
+
} else {
|
|
2910
|
+
rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
2911
|
+
if (rgb && rgb.length) {
|
|
2912
|
+
return "#" + hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]);
|
|
2913
|
+
} else {
|
|
2914
|
+
return "";
|
|
2915
|
+
}
|
|
2916
|
+
}
|
|
2911
2917
|
}
|
|
2912
2918
|
}
|
|
2913
2919
|
|
|
@@ -7177,10 +7183,28 @@ jSuites.mask = (function() {
|
|
|
7177
7183
|
|
|
7178
7184
|
// New value
|
|
7179
7185
|
v = (''+v).split(decimal);
|
|
7180
|
-
|
|
7186
|
+
|
|
7187
|
+
// Signal
|
|
7188
|
+
var signal = v[0].match(/[-]+/g);
|
|
7189
|
+
if (signal && signal.length) {
|
|
7190
|
+
signal = true;
|
|
7191
|
+
} else {
|
|
7192
|
+
signal = false;
|
|
7193
|
+
}
|
|
7194
|
+
|
|
7195
|
+
v[0] = v[0].match(/[0-9]+/g);
|
|
7196
|
+
|
|
7181
7197
|
if (v[0]) {
|
|
7198
|
+
if (signal) {
|
|
7199
|
+
v[0].unshift('-');
|
|
7200
|
+
}
|
|
7182
7201
|
v[0] = v[0].join('');
|
|
7202
|
+
} else {
|
|
7203
|
+
if (signal) {
|
|
7204
|
+
v[0] = '-';
|
|
7205
|
+
}
|
|
7183
7206
|
}
|
|
7207
|
+
|
|
7184
7208
|
if (v[0] || v[1]) {
|
|
7185
7209
|
if (v[1] !== undefined) {
|
|
7186
7210
|
v[1] = v[1].match(/[0-9]+/g);
|
|
@@ -8371,7 +8395,7 @@ jSuites.mask = (function() {
|
|
|
8371
8395
|
// Number of decimal places
|
|
8372
8396
|
if (typeof(value) === 'number') {
|
|
8373
8397
|
var t = null;
|
|
8374
|
-
if (options.mask && fullMask) {
|
|
8398
|
+
if (options.mask && fullMask && ((''+value).indexOf('e') === -1)) {
|
|
8375
8399
|
var d = getDecimal.call(options, options.mask);
|
|
8376
8400
|
if (options.mask.indexOf(d) !== -1) {
|
|
8377
8401
|
d = options.mask.split(d);
|
package/dist/jsuites.css
CHANGED
|
@@ -854,6 +854,8 @@ div[data-before]:before {
|
|
|
854
854
|
font-size: 11px;
|
|
855
855
|
font-family:sans-serif;
|
|
856
856
|
text-align: left;
|
|
857
|
+
-webkit-box-align: center;
|
|
858
|
+
align-items: center;
|
|
857
859
|
}
|
|
858
860
|
|
|
859
861
|
.jcontextmenu > div::before {
|
|
@@ -862,7 +864,6 @@ div[data-before]:before {
|
|
|
862
864
|
font-size: 15px;
|
|
863
865
|
position: absolute;
|
|
864
866
|
left: 9px;
|
|
865
|
-
top: 5px;
|
|
866
867
|
}
|
|
867
868
|
|
|
868
869
|
.jcontextmenu.symbols > div::before {
|
|
@@ -2417,24 +2418,6 @@ div[data-before]:before {
|
|
|
2417
2418
|
}
|
|
2418
2419
|
|
|
2419
2420
|
|
|
2420
|
-
.jtabs {
|
|
2421
|
-
max-width: 100vw;
|
|
2422
|
-
position: relative;
|
|
2423
|
-
}
|
|
2424
|
-
|
|
2425
|
-
.jtabs .jtabs-headers-container {
|
|
2426
|
-
display: flex;
|
|
2427
|
-
align-items: center;
|
|
2428
|
-
}
|
|
2429
|
-
|
|
2430
|
-
.jtabs .jtabs-headers {
|
|
2431
|
-
display: flex;
|
|
2432
|
-
align-items: center;
|
|
2433
|
-
overflow: hidden;
|
|
2434
|
-
position: relative;
|
|
2435
|
-
}
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
2421
|
.jtabs {
|
|
2439
2422
|
max-width: 100vw;
|
|
2440
2423
|
position: relative;
|
package/dist/jsuites.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
var jSuites = {};
|
|
19
19
|
|
|
20
|
-
var Version = '4.14.
|
|
20
|
+
var Version = '4.14.5';
|
|
21
21
|
|
|
22
22
|
var Events = function() {
|
|
23
23
|
|
|
@@ -455,7 +455,7 @@ jSuites.setDictionary = function(d) {
|
|
|
455
455
|
|
|
456
456
|
// Translate
|
|
457
457
|
jSuites.translate = function(t) {
|
|
458
|
-
if (document.dictionary) {
|
|
458
|
+
if (typeof(document) !== "undefined" && document.dictionary) {
|
|
459
459
|
return document.dictionary[t] || t;
|
|
460
460
|
} else {
|
|
461
461
|
return t;
|
|
@@ -2914,11 +2914,17 @@ jSuites.color = (function(el, options) {
|
|
|
2914
2914
|
var hex = function(x) {
|
|
2915
2915
|
return ("0" + parseInt(x).toString(16)).slice(-2);
|
|
2916
2916
|
}
|
|
2917
|
-
if (
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2917
|
+
if (rgb) {
|
|
2918
|
+
if (/^#[0-9A-F]{6}$/i.test(rgb)) {
|
|
2919
|
+
return rgb;
|
|
2920
|
+
} else {
|
|
2921
|
+
rgb = rgb.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
|
|
2922
|
+
if (rgb && rgb.length) {
|
|
2923
|
+
return "#" + hex(rgb[1]) + hex(rgb[2]) + hex(rgb[3]);
|
|
2924
|
+
} else {
|
|
2925
|
+
return "";
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2922
2928
|
}
|
|
2923
2929
|
}
|
|
2924
2930
|
|
|
@@ -7602,10 +7608,28 @@ jSuites.mask = (function() {
|
|
|
7602
7608
|
|
|
7603
7609
|
// New value
|
|
7604
7610
|
v = (''+v).split(decimal);
|
|
7605
|
-
|
|
7611
|
+
|
|
7612
|
+
// Signal
|
|
7613
|
+
var signal = v[0].match(/[-]+/g);
|
|
7614
|
+
if (signal && signal.length) {
|
|
7615
|
+
signal = true;
|
|
7616
|
+
} else {
|
|
7617
|
+
signal = false;
|
|
7618
|
+
}
|
|
7619
|
+
|
|
7620
|
+
v[0] = v[0].match(/[0-9]+/g);
|
|
7621
|
+
|
|
7606
7622
|
if (v[0]) {
|
|
7623
|
+
if (signal) {
|
|
7624
|
+
v[0].unshift('-');
|
|
7625
|
+
}
|
|
7607
7626
|
v[0] = v[0].join('');
|
|
7627
|
+
} else {
|
|
7628
|
+
if (signal) {
|
|
7629
|
+
v[0] = '-';
|
|
7630
|
+
}
|
|
7608
7631
|
}
|
|
7632
|
+
|
|
7609
7633
|
if (v[0] || v[1]) {
|
|
7610
7634
|
if (v[1] !== undefined) {
|
|
7611
7635
|
v[1] = v[1].match(/[0-9]+/g);
|
|
@@ -8796,7 +8820,7 @@ jSuites.mask = (function() {
|
|
|
8796
8820
|
// Number of decimal places
|
|
8797
8821
|
if (typeof(value) === 'number') {
|
|
8798
8822
|
var t = null;
|
|
8799
|
-
if (options.mask && fullMask) {
|
|
8823
|
+
if (options.mask && fullMask && ((''+value).indexOf('e') === -1)) {
|
|
8800
8824
|
var d = getDecimal.call(options, options.mask);
|
|
8801
8825
|
if (options.mask.indexOf(d) !== -1) {
|
|
8802
8826
|
d = options.mask.split(d);
|
package/package.json
CHANGED
package/compile.php
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
function g($type = '', $modules = null, $excluded = null) {
|
|
4
|
-
if ($handle = opendir('src')) {
|
|
5
|
-
$js = '';
|
|
6
|
-
$wc = '';
|
|
7
|
-
$css = '';
|
|
8
|
-
while (false !== ($entry = readdir($handle))) {
|
|
9
|
-
if ($entry != "." && $entry != ".." && (! isset($modules) || in_array(substr($entry, 0, strpos($entry, '.')), $modules)) && (! isset($excluded) || ! in_array(substr($entry, 0, strpos($entry, '.')), $excluded))) {
|
|
10
|
-
echo $entry . "\n";
|
|
11
|
-
if (substr($entry, -3) == 'css') {
|
|
12
|
-
$css .= file_get_contents('src/'.$entry) . "\r\n\r\n";
|
|
13
|
-
} else if (substr($entry, -15) == 'webcomponent.js') {
|
|
14
|
-
$wc .= file_get_contents('src/'.$entry) . "\r\n\r\n";
|
|
15
|
-
} else {
|
|
16
|
-
$js .= file_get_contents('src/'.$entry) . "\r\n\r\n";
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
closedir($handle);
|
|
21
|
-
|
|
22
|
-
$js = "/**
|
|
23
|
-
* (c) jSuites Javascript Web Components
|
|
24
|
-
*
|
|
25
|
-
* Website: https://jsuites.net
|
|
26
|
-
* Description: Create amazing web based applications.
|
|
27
|
-
*
|
|
28
|
-
* MIT License
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
;(function (global, factory) {
|
|
32
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
33
|
-
typeof define === 'function' && define.amd ? define(factory) :
|
|
34
|
-
global.jSuites = factory();
|
|
35
|
-
}(this, (function () {
|
|
36
|
-
|
|
37
|
-
'use strict';
|
|
38
|
-
|
|
39
|
-
$js
|
|
40
|
-
|
|
41
|
-
return jSuites;
|
|
42
|
-
|
|
43
|
-
})));";
|
|
44
|
-
|
|
45
|
-
$wc = "
|
|
46
|
-
/**
|
|
47
|
-
* (c) jSuites Javascript Web Components
|
|
48
|
-
*
|
|
49
|
-
* Website: https://jsuites.net
|
|
50
|
-
* Description: Create amazing web based applications.
|
|
51
|
-
*
|
|
52
|
-
* MIT License
|
|
53
|
-
*
|
|
54
|
-
*/
|
|
55
|
-
|
|
56
|
-
$wc
|
|
57
|
-
";
|
|
58
|
-
|
|
59
|
-
$css = "
|
|
60
|
-
/**
|
|
61
|
-
* (c) jSuites Javascript Web Components
|
|
62
|
-
*
|
|
63
|
-
* Website: https://jsuites.net
|
|
64
|
-
* Description: Create amazing web based applications.
|
|
65
|
-
*
|
|
66
|
-
* MIT License
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
|
|
70
|
-
$css
|
|
71
|
-
";
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
file_put_contents("dist/jsuites{$type}.js", $js);
|
|
75
|
-
file_put_contents("dist/jsuites{$type}.css", $css);
|
|
76
|
-
if (! $type) {
|
|
77
|
-
file_put_contents('dist/jsuites.webcomponents.js', $wc);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
g('.basic', [ 'a', 'ajax', 'animation', 'calendar', 'color', 'contextmenu', 'dropdown', 'editor', 'image', 'helpers', 'lazyloading', 'loading', 'mask', 'notification', 'rating', 'tabs', 'toolbar', 'sorting', 'picker', 'palette' ]);
|
|
83
|
-
g('.layout', [ 'layout', 'template', 'login', 'buttons', 'organogram', 'timeline', 'chat', 'menu', 'crop', 'signature', 'heatmap', 'player', 'floating' ]);
|
|
84
|
-
g('', null, [ 'app', 'dialog', 'refresh', 'layout', 'template', 'login', 'buttons', 'organogram', 'timeline', 'chat', 'menu', 'crop', 'signature', 'heatmap', 'player', 'floating', 'progress' ]);
|
|
85
|
-
|
|
86
|
-
echo "Done!\n";
|