@buynomics-lib/bn-shared 1.17.25-feature-hc-2330.2 → 1.17.25-feature-hc-2330.3
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/build/helpers/format-number-to-indian-compact-in-crores.d.ts +2 -0
- package/build/helpers/format-number-to-indian-compact-in-crores.js +7 -1
- package/build/helpers/format-number-to-indian-compact-in-crores.js.map +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.js +2 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1,3 @@
|
|
|
1
|
+
import { ClientNumberFormattingSettingsGlobalFormat } from '../enums/client/client-number-formatting-settings';
|
|
1
2
|
export declare const formatNumberToIndianCompactInCrores: (value: number, settings: Intl.NumberFormatOptions) => string;
|
|
3
|
+
export declare const isCompactIndianFormatInDecimals: (globalFormat: ClientNumberFormattingSettingsGlobalFormat, settings: Intl.NumberFormatOptions) => boolean;
|
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.formatNumberToIndianCompactInCrores = void 0;
|
|
14
|
+
exports.isCompactIndianFormatInDecimals = exports.formatNumberToIndianCompactInCrores = void 0;
|
|
15
15
|
var client_number_formatting_settings_1 = require("../enums/client/client-number-formatting-settings");
|
|
16
16
|
var ONE_CRORE = 10000000;
|
|
17
17
|
var CRORE_COMPACT_NOTATION = 'Cr';
|
|
@@ -21,4 +21,10 @@ var formatNumberToIndianCompactInCrores = function (value, settings) {
|
|
|
21
21
|
return stringValueInCrores + CRORE_COMPACT_NOTATION;
|
|
22
22
|
};
|
|
23
23
|
exports.formatNumberToIndianCompactInCrores = formatNumberToIndianCompactInCrores;
|
|
24
|
+
var isCompactIndianFormatInDecimals = function (globalFormat, settings) {
|
|
25
|
+
return (globalFormat === client_number_formatting_settings_1.ClientNumberFormattingSettingsGlobalFormat.EnIn &&
|
|
26
|
+
settings.notation === client_number_formatting_settings_1.ClientNumberFormattingSettingsNotation.Compact &&
|
|
27
|
+
settings.style !== client_number_formatting_settings_1.ClientNumberFormattingSettingsStyle.Percent);
|
|
28
|
+
};
|
|
29
|
+
exports.isCompactIndianFormatInDecimals = isCompactIndianFormatInDecimals;
|
|
24
30
|
//# sourceMappingURL=format-number-to-indian-compact-in-crores.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format-number-to-indian-compact-in-crores.js","sourceRoot":"","sources":["../../src/helpers/format-number-to-indian-compact-in-crores.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"format-number-to-indian-compact-in-crores.js","sourceRoot":"","sources":["../../src/helpers/format-number-to-indian-compact-in-crores.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,uGAI0D;AAE1D,IAAM,SAAS,GAAG,QAAQ,CAAA;AAC1B,IAAM,sBAAsB,GAAG,IAAI,CAAA;AAE5B,IAAM,mCAAmC,GAAG,UACjD,KAAa,EACb,QAAkC;IAElC,IAAM,aAAa,GAAG,KAAK,GAAG,SAAS,CAAA;IAEvC,IAAM,mBAAmB,GAAG,IAAI,CAAC,YAAY,CAC3C,8EAA0C,CAAC,IAAI,wBAE1C,QAAQ,KACX,QAAQ,EAAE,0EAAsC,CAAC,QAAQ,IAE5D,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;IAEvB,OAAO,mBAAmB,GAAG,sBAAsB,CAAA;AACrD,CAAC,CAAA;AAfY,QAAA,mCAAmC,uCAe/C;AAEM,IAAM,+BAA+B,GAAG,UAC7C,YAAwD,EACxD,QAAkC;IAElC,OAAO,CACL,YAAY,KAAK,8EAA0C,CAAC,IAAI;QAChE,QAAQ,CAAC,QAAQ,KAAK,0EAAsC,CAAC,OAAO;QACpE,QAAQ,CAAC,KAAK,KAAK,uEAAmC,CAAC,OAAO,CAC/D,CAAA;AACH,CAAC,CAAA;AATY,QAAA,+BAA+B,mCAS3C"}
|
package/build/index.d.ts
CHANGED
|
@@ -49,5 +49,5 @@ import { IFileUpload } from './interfaces/file-upload';
|
|
|
49
49
|
import { ISimulationInputChangeEvents } from './interfaces/simulation/simulation-input-change-events';
|
|
50
50
|
import { ClientNumberFormattingSettings, ClientNumberFormattingSettingsCurrency, ClientNumberFormattingSettingsGlobalFormat, ClientNumberFormattingSettingsMetric, ClientNumberFormattingSettingsNotation, ClientNumberFormattingSettingsStyle, NumberFormat, NumberFormatSettings } from './enums/client/client-number-formatting-settings';
|
|
51
51
|
import { DefaultClientNumberFormattingSettings } from './helpers/default-client-number-formatting-settings';
|
|
52
|
-
import { formatNumberToIndianCompactInCrores } from './helpers/format-number-to-indian-compact-in-crores';
|
|
53
|
-
export { BnPermissions, ConfigurableProductFields, SortableProductFields, PriceLevelTypes, StaticLevelReferenceIds, DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes, CustomCostFormulaParams, ClientTerms, DefaultClientTermLabels, ClientCLVPeriods, ClientCLVPriceTypes, DefaultClientCLVPriceTypeLabels, ClientDecimalSettings, DefaultClientDecimalSettings, ClientTypes, IntermediaryGroupTypes, IntermediaryGroupRangeFormats, FittingStatuses, CentralSteeringVersion, Dimension, DimensionValue, BuynomicsAppVersion, ClientDuplicationParts, ClientNumberFormattingSettingsGlobalFormat, ClientNumberFormattingSettingsStyle, ClientNumberFormattingSettingsNotation, ClientNumberFormattingSettingsMetric, ClientNumberFormattingSettingsCurrency, ClientNumberFormattingSettings, NumberFormat, NumberFormatSettings, ClientProductPortfolioVersion, PriceChangeTypes, ChangePriceBases, ChangeProductPriceBases, ClientFeature, ClientFeatureState, ClientFeatures, ClientFeatureScope, ClientFeaturesSettings, ChangeCostBases, CostChangeTypes, AvailabilityChangeTypes, ClientStatus, ClientIndustry, ValueDriverType, KpiConstraintType, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, calculateRange, JSONFormulaToExpression, expressionToJSONFormula, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, formatNumberToIndianCompactInCrores, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, FormulaValidator, FormulaConverter, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, DefaultClientFeaturesSettings, DefaultClientFeatures, DefaultClientNumberFormattingSettings, };
|
|
52
|
+
import { formatNumberToIndianCompactInCrores, isCompactIndianFormatInDecimals } from './helpers/format-number-to-indian-compact-in-crores';
|
|
53
|
+
export { BnPermissions, ConfigurableProductFields, SortableProductFields, PriceLevelTypes, StaticLevelReferenceIds, DeeperionVersions, DeeperionAppSwitchValues, DeeperionRequestTypes, DeeperionModelTypes, CustomCostFormulaParams, ClientTerms, DefaultClientTermLabels, ClientCLVPeriods, ClientCLVPriceTypes, DefaultClientCLVPriceTypeLabels, ClientDecimalSettings, DefaultClientDecimalSettings, ClientTypes, IntermediaryGroupTypes, IntermediaryGroupRangeFormats, FittingStatuses, CentralSteeringVersion, Dimension, DimensionValue, BuynomicsAppVersion, ClientDuplicationParts, ClientNumberFormattingSettingsGlobalFormat, ClientNumberFormattingSettingsStyle, ClientNumberFormattingSettingsNotation, ClientNumberFormattingSettingsMetric, ClientNumberFormattingSettingsCurrency, ClientNumberFormattingSettings, NumberFormat, NumberFormatSettings, ClientProductPortfolioVersion, PriceChangeTypes, ChangePriceBases, ChangeProductPriceBases, ClientFeature, ClientFeatureState, ClientFeatures, ClientFeatureScope, ClientFeaturesSettings, ChangeCostBases, CostChangeTypes, AvailabilityChangeTypes, ClientStatus, ClientIndustry, ValueDriverType, KpiConstraintType, OptimizationStatus, OptimizationKpis, OptimizationSolutionBucket, ISimulationInputChangeEvents, IFitting, IFittingLog, IFileUpload, IPromotionPeriod, calculateRange, JSONFormulaToExpression, expressionToJSONFormula, getLatestDeeperionVersionValue, getCustomFormulaParamsLabel, formatNumberToIndianCompactInCrores, isCompactIndianFormatInDecimals, EnumHelper, getPropertyName, PriceDecisionNullificationHelper, FormulaValidator, FormulaConverter, getPromotionPeriods, ClientViewSettingsPages, IClientViewSettings, DefaultClientFeaturesSettings, DefaultClientFeatures, DefaultClientNumberFormattingSettings, };
|
package/build/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.getLatestDeeperionVersionValue = exports.expressionToJSONFormula = exports.JSONFormulaToExpression = exports.calculateRange = exports.OptimizationSolutionBucket = exports.OptimizationKpis = exports.OptimizationStatus = exports.KpiConstraintType = exports.ValueDriverType = exports.ClientIndustry = exports.ClientStatus = exports.AvailabilityChangeTypes = exports.CostChangeTypes = exports.ChangeCostBases = exports.ClientFeatureScope = exports.ClientFeatureState = exports.ClientFeature = exports.ChangeProductPriceBases = exports.ChangePriceBases = exports.PriceChangeTypes = exports.ClientProductPortfolioVersion = exports.ClientNumberFormattingSettingsCurrency = exports.ClientNumberFormattingSettingsMetric = exports.ClientNumberFormattingSettingsNotation = exports.ClientNumberFormattingSettingsStyle = exports.ClientNumberFormattingSettingsGlobalFormat = exports.ClientDuplicationParts = exports.BuynomicsAppVersion = exports.CentralSteeringVersion = exports.FittingStatuses = exports.IntermediaryGroupRangeFormats = exports.IntermediaryGroupTypes = exports.ClientTypes = exports.DefaultClientDecimalSettings = exports.ClientDecimalSettings = exports.DefaultClientCLVPriceTypeLabels = exports.ClientCLVPriceTypes = exports.ClientCLVPeriods = exports.DefaultClientTermLabels = exports.ClientTerms = exports.CustomCostFormulaParams = exports.DeeperionModelTypes = exports.DeeperionRequestTypes = exports.DeeperionAppSwitchValues = exports.DeeperionVersions = exports.StaticLevelReferenceIds = exports.PriceLevelTypes = exports.SortableProductFields = exports.ConfigurableProductFields = exports.BnPermissions = void 0;
|
|
7
|
-
exports.DefaultClientNumberFormattingSettings = exports.DefaultClientFeatures = exports.DefaultClientFeaturesSettings = exports.ClientViewSettingsPages = exports.getPromotionPeriods = exports.FormulaConverter = exports.FormulaValidator = exports.PriceDecisionNullificationHelper = exports.getPropertyName = exports.EnumHelper = exports.formatNumberToIndianCompactInCrores = exports.getCustomFormulaParamsLabel = void 0;
|
|
7
|
+
exports.DefaultClientNumberFormattingSettings = exports.DefaultClientFeatures = exports.DefaultClientFeaturesSettings = exports.ClientViewSettingsPages = exports.getPromotionPeriods = exports.FormulaConverter = exports.FormulaValidator = exports.PriceDecisionNullificationHelper = exports.getPropertyName = exports.EnumHelper = exports.isCompactIndianFormatInDecimals = exports.formatNumberToIndianCompactInCrores = exports.getCustomFormulaParamsLabel = void 0;
|
|
8
8
|
var fitting_statuses_1 = require("./domains/fitting/enums/fitting-statuses");
|
|
9
9
|
Object.defineProperty(exports, "FittingStatuses", { enumerable: true, get: function () { return fitting_statuses_1.FittingStatuses; } });
|
|
10
10
|
var intermediary_group_range_formats_1 = require("./domains/pricing/intermediaries/enums/intermediary-group-range-formats");
|
|
@@ -112,4 +112,5 @@ var default_client_number_formatting_settings_1 = require("./helpers/default-cli
|
|
|
112
112
|
Object.defineProperty(exports, "DefaultClientNumberFormattingSettings", { enumerable: true, get: function () { return default_client_number_formatting_settings_1.DefaultClientNumberFormattingSettings; } });
|
|
113
113
|
var format_number_to_indian_compact_in_crores_1 = require("./helpers/format-number-to-indian-compact-in-crores");
|
|
114
114
|
Object.defineProperty(exports, "formatNumberToIndianCompactInCrores", { enumerable: true, get: function () { return format_number_to_indian_compact_in_crores_1.formatNumberToIndianCompactInCrores; } });
|
|
115
|
+
Object.defineProperty(exports, "isCompactIndianFormatInDecimals", { enumerable: true, get: function () { return format_number_to_indian_compact_in_crores_1.isCompactIndianFormatInDecimals; } });
|
|
115
116
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"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