ngx-vector-components 4.136.0 → 4.138.0
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/CHANGELOG.md +12 -0
- package/esm2020/lib/models/view.enum.mjs +2 -1
- package/esm2020/lib/utils/string.util.mjs +23 -1
- package/fesm2015/ngx-vector-components.mjs +23 -0
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +23 -0
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- package/lib/models/view.enum.d.ts +2 -1
- package/lib/utils/string.util.d.ts +2 -0
- package/package.json +1 -1
|
@@ -514,6 +514,7 @@ var View;
|
|
|
514
514
|
View[View["ADMIN"] = 1] = "ADMIN";
|
|
515
515
|
View[View["DIGITAL_CARRIER"] = 2] = "DIGITAL_CARRIER";
|
|
516
516
|
View[View["RISK_MANAGER"] = 3] = "RISK_MANAGER";
|
|
517
|
+
View[View["VECTOR_CLUB"] = 4] = "VECTOR_CLUB";
|
|
517
518
|
})(View || (View = {}));
|
|
518
519
|
|
|
519
520
|
class BadgeComponent {
|
|
@@ -827,6 +828,28 @@ class StringUtil {
|
|
|
827
828
|
const secondsText = `${seconds}`.padStart(2, '0');
|
|
828
829
|
return `${minutesText}:${secondsText}`;
|
|
829
830
|
}
|
|
831
|
+
static convertObjectToQueryString(obj) {
|
|
832
|
+
const queryParams = [];
|
|
833
|
+
for (const key in obj) {
|
|
834
|
+
if (obj.hasOwnProperty(key) && obj[key]) {
|
|
835
|
+
queryParams.push(`${key}=${obj[key]}`);
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
return queryParams.join('&');
|
|
839
|
+
}
|
|
840
|
+
static convertToUppercaseWithoutSymbols(stringValue, withSpace) {
|
|
841
|
+
const convert = stringValue
|
|
842
|
+
.toUpperCase()
|
|
843
|
+
.normalize('NFD')
|
|
844
|
+
.replace(/[\u0300-\u036f]/g, '')
|
|
845
|
+
.replace(/[^\w\s]/g, '');
|
|
846
|
+
if (withSpace) {
|
|
847
|
+
return convert.replace(/\s+/g, ' ');
|
|
848
|
+
}
|
|
849
|
+
else {
|
|
850
|
+
return convert.replace(/\s+/g, '');
|
|
851
|
+
}
|
|
852
|
+
}
|
|
830
853
|
}
|
|
831
854
|
|
|
832
855
|
class ValidationUtil {
|