ps-toolkit-ui 1.9.99 → 1.10.1
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/bundles/ps-toolkit-ui.umd.js +11 -13
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/classes/form.class.js +2 -10
- package/esm2015/lib/classes/helper.class.js +10 -1
- package/esm2015/lib/components/table/row/table.row.component.js +2 -5
- package/fesm2015/ps-toolkit-ui.js +11 -13
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/lib/classes/helper.class.d.ts +1 -0
- package/package.json +1 -1
- package/ps-toolkit-ui.metadata.json +1 -1
- package/src/assets/styles/base.css +2 -2
|
@@ -1286,6 +1286,15 @@
|
|
|
1286
1286
|
HelperClass.getRandomInt = function (min, max) {
|
|
1287
1287
|
return Math.floor(Math.random() * (max - min)) + min;
|
|
1288
1288
|
};
|
|
1289
|
+
HelperClass.ToReadablePlaque = function (p) {
|
|
1290
|
+
var tn = p.split('_');
|
|
1291
|
+
if (tn.length === 4) {
|
|
1292
|
+
tn[1] += '‎';
|
|
1293
|
+
tn[2] += ' |';
|
|
1294
|
+
return tn.join(' ');
|
|
1295
|
+
}
|
|
1296
|
+
return tn.join(' ');
|
|
1297
|
+
};
|
|
1289
1298
|
return HelperClass;
|
|
1290
1299
|
}());
|
|
1291
1300
|
|
|
@@ -2060,15 +2069,7 @@
|
|
|
2060
2069
|
var o = new OptionClass(x.Name, x.Id.toString());
|
|
2061
2070
|
if (_this.type === exports.InputType.SelectAutoCompletePlaque || _this.type === exports.InputType.SelectAutoCompletePlaqueM ||
|
|
2062
2071
|
_this.type === exports.InputType.SelectAutoCompletePlaqueF || _this.type === exports.InputType.SelectAutoCompletePlaqueG || _this.name === 'CarId') {
|
|
2063
|
-
|
|
2064
|
-
if (tn.length === 4) {
|
|
2065
|
-
tn[1] += '‎';
|
|
2066
|
-
tn[2] += ' |';
|
|
2067
|
-
o.name = tn.join(' ');
|
|
2068
|
-
}
|
|
2069
|
-
else if (tn.length === 2) {
|
|
2070
|
-
o.name = tn.join(' ');
|
|
2071
|
-
}
|
|
2072
|
+
o.name = HelperClass.ToReadablePlaque(o.name);
|
|
2072
2073
|
}
|
|
2073
2074
|
o.search = x.Search;
|
|
2074
2075
|
o.option = x;
|
|
@@ -3068,10 +3069,7 @@
|
|
|
3068
3069
|
}
|
|
3069
3070
|
}
|
|
3070
3071
|
else if (col.type === exports.TableCollType.PlaqueText) {
|
|
3071
|
-
|
|
3072
|
-
if (parts.length === 4) {
|
|
3073
|
-
return "<div class=\"ltr\">" + parts[0] + " " + parts[1] + "‎ " + parts[2] + " " + parts[3] + "</div>";
|
|
3074
|
-
}
|
|
3072
|
+
return "<div class=\"ltr\">" + HelperClass.ToReadablePlaque(cv) + "</div>";
|
|
3075
3073
|
}
|
|
3076
3074
|
return this.table.l(cv);
|
|
3077
3075
|
};
|