intelicoreact 1.0.82 → 1.0.83

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.
@@ -144,7 +144,6 @@
144
144
 
145
145
  &__arrow {
146
146
  box-sizing: border-box;
147
- width: auto;
148
147
  height: 100%;
149
148
 
150
149
  cursor: pointer;
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.formatToReplaceAllWhiteSpace = formatToReplaceAllWhiteSpace;
7
- exports.filterNumeric = exports.filterFloat = exports.formatToHex = exports.formatToLimitLength = exports.formatNumberValueToMask = exports.formatToCutOffDotAtTheEnd = exports.formatToOnlyASCIICodeText = exports.formatToLetters = exports.formatToPriceWithUSD = exports.formatToTwoDigitAfterDot = exports.formatToDollarSign = exports.formatToAddBitDepthPoints = exports.formatToRemoveComa = exports.formatOnlyNumbers = exports.intlNumbersFormatter = exports.getSafelyValue = void 0;
7
+ exports.formatToHideValuePartially = exports.filterNumeric = exports.filterFloat = exports.formatToHex = exports.formatToLimitLength = exports.formatNumberValueToMask = exports.formatToCutOffDotAtTheEnd = exports.formatToOnlyASCIICodeText = exports.formatToLetters = exports.formatToPriceWithUSD = exports.formatToTwoDigitAfterDot = exports.formatToDollarSign = exports.formatToAddBitDepthPoints = exports.formatToRemoveComa = exports.formatOnlyNumbers = exports.intlNumbersFormatter = exports.getSafelyValue = void 0;
8
8
 
9
9
  // The first word "format" in the function name means a
10
10
  //logic in which the function transforms the incoming value in any case.
@@ -285,4 +285,30 @@ var filterNumeric = function filterNumeric(value, settings) {
285
285
  return executor(getSafelyValue(value), decimalPlaces);
286
286
  };
287
287
 
288
- exports.filterNumeric = filterNumeric;
288
+ exports.filterNumeric = filterNumeric;
289
+
290
+ var formatToHideValuePartially = function formatToHideValuePartially(value, settings) {
291
+ var _ref5 = settings || {},
292
+ _ref5$showSymbolsCoun = _ref5.showSymbolsCount,
293
+ showSymbolsCount = _ref5$showSymbolsCoun === void 0 ? 4 : _ref5$showSymbolsCoun,
294
+ _ref5$isVisibleFromFr = _ref5.isVisibleFromFront,
295
+ isVisibleFromFront = _ref5$isVisibleFromFr === void 0 ? false : _ref5$isVisibleFromFr,
296
+ _ref5$isCutOutWhiteSp = _ref5.isCutOutWhiteSpaces,
297
+ isCutOutWhiteSpaces = _ref5$isCutOutWhiteSp === void 0 ? true : _ref5$isCutOutWhiteSp;
298
+
299
+ var safelyValue = getSafelyValue(value);
300
+ var newValue = isCutOutWhiteSpaces ? safelyValue.replace(/\s/g, '') : safelyValue;
301
+ if (newValue.length <= showSymbolsCount) return newValue;
302
+
303
+ var hide = function hide(val) {
304
+ return val.split('').map(function () {
305
+ return '*';
306
+ }).join('');
307
+ };
308
+
309
+ var visiblePart = isVisibleFromFront ? newValue.slice(0, showSymbolsCount) : newValue.slice(-1 * showSymbolsCount);
310
+ var hiddenPart = isVisibleFromFront ? newValue.slice(showSymbolsCount) : newValue.slice(0, -1 * showSymbolsCount);
311
+ return isVisibleFromFront ? "".concat(visiblePart).concat(hide(hiddenPart)) : "".concat(hide(hiddenPart)).concat(visiblePart);
312
+ };
313
+
314
+ exports.formatToHideValuePartially = formatToHideValuePartially;
@@ -1,6 +1,6 @@
1
1
  @import "./fonts";
2
2
  @import "~anme/scss/anme-vars";
3
- @import "anme/scss/styles.scss";
3
+ @import "~anme/scss/styles.scss";
4
4
 
5
5
  body {
6
6
  margin: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.0.82",
3
+ "version": "1.0.83",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [