jsuites 4.12.2 → 4.12.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.
@@ -147,17 +147,19 @@ div[data-before]:before {
147
147
  position: fixed;
148
148
  top: 10px;
149
149
  left: 10px;
150
-
151
150
  z-index: 5;
151
+
152
152
  font-family: initial;
153
153
  font-size: 12px;
154
154
  color: #000;
155
155
  background-color: #fff;
156
156
  border: 1px solid black;
157
157
  padding: 8px;
158
+ margin: 10px;
158
159
 
159
160
  display: block;
160
- animation: fadeIn 0.5s
161
+ animation: fadeIn 0.5s;
162
+ pointer-events: none;
161
163
  }
162
164
 
163
165
  .jtooltip:empty {
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = function(options) {
19
19
  var obj = {}
20
- var version = '4.12.2';
20
+ var version = '4.12.5';
21
21
 
22
22
  var find = function(DOMElement, component) {
23
23
  if (DOMElement[component.type] && DOMElement[component.type] == component) {
@@ -7061,6 +7061,8 @@ jSuites.loading = (function() {
7061
7061
  jSuites.mask = (function() {
7062
7062
  // Currency
7063
7063
  var tokens = {
7064
+ // Text
7065
+ text: [ '@' ],
7064
7066
  // Currency tokens
7065
7067
  currency: [ '#(.{1})##0?(.{1}0+)?( ?;(.*)?)?', '#' ],
7066
7068
  // Percentage
@@ -7818,6 +7820,12 @@ jSuites.mask = (function() {
7818
7820
  },
7819
7821
  '.': function(v) {
7820
7822
  parser['[0-9a-zA-Z$]+'].call(this, v);
7823
+ },
7824
+ '@': function(v) {
7825
+ if (isBlank(this.values[this.index])) {
7826
+ this.values[this.index] = '';
7827
+ }
7828
+ this.values[this.index] += v;
7821
7829
  }
7822
7830
  }
7823
7831
 
@@ -7828,7 +7836,7 @@ jSuites.mask = (function() {
7828
7836
  if (this.type == 'general') {
7829
7837
  var t = [].concat(tokens.general);
7830
7838
  } else {
7831
- var t = [].concat(tokens.currency, tokens.datetime, tokens.percentage, tokens.numeric, tokens.general);
7839
+ var t = [].concat(tokens.currency, tokens.datetime, tokens.percentage, tokens.numeric, tokens.text, tokens.general);
7832
7840
  }
7833
7841
  // Expression to extract all tokens from the string
7834
7842
  var e = new RegExp(t.join('|'), 'gi');
@@ -7842,6 +7850,8 @@ jSuites.mask = (function() {
7842
7850
  var getMethod = function(str) {
7843
7851
  if (! this.type) {
7844
7852
  var types = Object.keys(tokens);
7853
+ } else if (this.type == 'text') {
7854
+ var types = [ 'text' ];
7845
7855
  } else if (this.type == 'general') {
7846
7856
  var types = [ 'general' ];
7847
7857
  } else if (this.type == 'datetime') {
@@ -8059,8 +8069,8 @@ jSuites.mask = (function() {
8059
8069
  if (! isFormula(o.value) && (o.mask || o.locale)) {
8060
8070
  // Compatibility ixes
8061
8071
  if (o.mask) {
8062
- // Legacy
8063
- o.mask = o.mask.replace('[-]', '');
8072
+ // Remove []
8073
+ o.mask = o.mask.replace(new RegExp(/\[.*?\]/),'');
8064
8074
  // Excel mask TODO: Improve
8065
8075
  if (o.mask.indexOf('##') !== -1) {
8066
8076
  var d = o.mask.split(';');
@@ -8070,7 +8080,6 @@ jSuites.mask = (function() {
8070
8080
  d[0] = d[0].replace('##0.###','##0.000');
8071
8081
  d[0] = d[0].replace('##0.##','##0.00');
8072
8082
  d[0] = d[0].replace('##0.#','##0.0');
8073
- d[0] = d[0].replace(new RegExp(/\[.*?\]/),'');
8074
8083
  }
8075
8084
  o.mask = d[0];
8076
8085
  }
@@ -8165,6 +8174,9 @@ jSuites.mask = (function() {
8165
8174
  }
8166
8175
  }
8167
8176
 
8177
+ // Get the type of the mask
8178
+ obj.getType = getType;
8179
+
8168
8180
  // Extract the tokens from a mask
8169
8181
  obj.prepare = function(str, o) {
8170
8182
  if (! o) {
@@ -8286,6 +8298,9 @@ jSuites.mask = (function() {
8286
8298
  options.mask = options.format;
8287
8299
  }
8288
8300
 
8301
+ // Remove []
8302
+ options.mask = options.mask.replace(new RegExp(/\[.*?\]/),'');
8303
+
8289
8304
  var type = null;
8290
8305
  if (options.type == 'percent' || options.options.style == 'percent') {
8291
8306
  type = 'percentage';
package/dist/jsuites.css CHANGED
@@ -147,17 +147,19 @@ div[data-before]:before {
147
147
  position: fixed;
148
148
  top: 10px;
149
149
  left: 10px;
150
-
151
150
  z-index: 5;
151
+
152
152
  font-family: initial;
153
153
  font-size: 12px;
154
154
  color: #000;
155
155
  background-color: #fff;
156
156
  border: 1px solid black;
157
157
  padding: 8px;
158
+ margin: 10px;
158
159
 
159
160
  display: block;
160
- animation: fadeIn 0.5s
161
+ animation: fadeIn 0.5s;
162
+ pointer-events: none;
161
163
  }
162
164
 
163
165
  .jtooltip:empty {
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.12.2';
20
+ var version = '4.12.5';
21
21
 
22
22
  var find = function(DOMElement, component) {
23
23
  if (DOMElement[component.type] && DOMElement[component.type] == component) {
@@ -7486,6 +7486,8 @@ jSuites.loading = (function() {
7486
7486
  jSuites.mask = (function() {
7487
7487
  // Currency
7488
7488
  var tokens = {
7489
+ // Text
7490
+ text: [ '@' ],
7489
7491
  // Currency tokens
7490
7492
  currency: [ '#(.{1})##0?(.{1}0+)?( ?;(.*)?)?', '#' ],
7491
7493
  // Percentage
@@ -8243,6 +8245,12 @@ jSuites.mask = (function() {
8243
8245
  },
8244
8246
  '.': function(v) {
8245
8247
  parser['[0-9a-zA-Z$]+'].call(this, v);
8248
+ },
8249
+ '@': function(v) {
8250
+ if (isBlank(this.values[this.index])) {
8251
+ this.values[this.index] = '';
8252
+ }
8253
+ this.values[this.index] += v;
8246
8254
  }
8247
8255
  }
8248
8256
 
@@ -8253,7 +8261,7 @@ jSuites.mask = (function() {
8253
8261
  if (this.type == 'general') {
8254
8262
  var t = [].concat(tokens.general);
8255
8263
  } else {
8256
- var t = [].concat(tokens.currency, tokens.datetime, tokens.percentage, tokens.numeric, tokens.general);
8264
+ var t = [].concat(tokens.currency, tokens.datetime, tokens.percentage, tokens.numeric, tokens.text, tokens.general);
8257
8265
  }
8258
8266
  // Expression to extract all tokens from the string
8259
8267
  var e = new RegExp(t.join('|'), 'gi');
@@ -8267,6 +8275,8 @@ jSuites.mask = (function() {
8267
8275
  var getMethod = function(str) {
8268
8276
  if (! this.type) {
8269
8277
  var types = Object.keys(tokens);
8278
+ } else if (this.type == 'text') {
8279
+ var types = [ 'text' ];
8270
8280
  } else if (this.type == 'general') {
8271
8281
  var types = [ 'general' ];
8272
8282
  } else if (this.type == 'datetime') {
@@ -8484,8 +8494,8 @@ jSuites.mask = (function() {
8484
8494
  if (! isFormula(o.value) && (o.mask || o.locale)) {
8485
8495
  // Compatibility ixes
8486
8496
  if (o.mask) {
8487
- // Legacy
8488
- o.mask = o.mask.replace('[-]', '');
8497
+ // Remove []
8498
+ o.mask = o.mask.replace(new RegExp(/\[.*?\]/),'');
8489
8499
  // Excel mask TODO: Improve
8490
8500
  if (o.mask.indexOf('##') !== -1) {
8491
8501
  var d = o.mask.split(';');
@@ -8495,7 +8505,6 @@ jSuites.mask = (function() {
8495
8505
  d[0] = d[0].replace('##0.###','##0.000');
8496
8506
  d[0] = d[0].replace('##0.##','##0.00');
8497
8507
  d[0] = d[0].replace('##0.#','##0.0');
8498
- d[0] = d[0].replace(new RegExp(/\[.*?\]/),'');
8499
8508
  }
8500
8509
  o.mask = d[0];
8501
8510
  }
@@ -8590,6 +8599,9 @@ jSuites.mask = (function() {
8590
8599
  }
8591
8600
  }
8592
8601
 
8602
+ // Get the type of the mask
8603
+ obj.getType = getType;
8604
+
8593
8605
  // Extract the tokens from a mask
8594
8606
  obj.prepare = function(str, o) {
8595
8607
  if (! o) {
@@ -8711,6 +8723,9 @@ jSuites.mask = (function() {
8711
8723
  options.mask = options.format;
8712
8724
  }
8713
8725
 
8726
+ // Remove []
8727
+ options.mask = options.mask.replace(new RegExp(/\[.*?\]/),'');
8728
+
8714
8729
  var type = null;
8715
8730
  if (options.type == 'percent' || options.options.style == 'percent') {
8716
8731
  type = 'percentage';
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "javascript plugins"
20
20
  ],
21
21
  "main": "dist/jsuites.js",
22
- "version": "4.12.2",
22
+ "version": "4.12.5",
23
23
  "bugs": "https://github.com/jsuites/jsuites/issues",
24
24
  "homepage": "https://github.com/jsuites/jsuites",
25
25
  "docs": "https://jsuites.net",
@@ -1,5 +0,0 @@
1
- FROM php:7.3-fpm
2
-
3
- WORKDIR /var/www/html
4
-
5
- ENTRYPOINT php /var/www/html/compile.php