@stemy/ngx-utils 12.2.4 → 12.2.6
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/stemy-ngx-utils.umd.js +51 -1
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/esm2015/ngx-utils/ngx-utils.module.js +7 -1
- package/esm2015/ngx-utils/pipes/pop.pipe.js +12 -0
- package/esm2015/ngx-utils/pipes/shift.pipe.js +12 -0
- package/esm2015/ngx-utils/pipes/split.pipe.js +12 -0
- package/esm2015/ngx-utils/services/formatter.service.js +3 -2
- package/esm2015/public_api.js +4 -1
- package/fesm2015/stemy-ngx-utils.js +39 -2
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/ngx-utils/pipes/pop.pipe.d.ts +4 -0
- package/ngx-utils/pipes/shift.pipe.d.ts +4 -0
- package/ngx-utils/pipes/split.pipe.d.ts +4 -0
- package/package.json +1 -1
- package/public_api.d.ts +3 -0
- package/stemy-ngx-utils.metadata.json +1 -1
|
@@ -3539,7 +3539,8 @@
|
|
|
3539
3539
|
var num = ObjectUtils.isNumber(value) ? value : parseFloat(value) || 0;
|
|
3540
3540
|
var str = (num / divider).toLocaleString(this.language.currentLanguage, {
|
|
3541
3541
|
minimumFractionDigits: precision,
|
|
3542
|
-
maximumFractionDigits: precision
|
|
3542
|
+
maximumFractionDigits: precision,
|
|
3543
|
+
useGrouping: false
|
|
3543
3544
|
});
|
|
3544
3545
|
return ObjectUtils.evaluate(format || this.defaultNumberFormat, { num: str });
|
|
3545
3546
|
};
|
|
@@ -4652,6 +4653,20 @@
|
|
|
4652
4653
|
},] }
|
|
4653
4654
|
];
|
|
4654
4655
|
|
|
4656
|
+
var PopPipe = /** @class */ (function () {
|
|
4657
|
+
function PopPipe() {
|
|
4658
|
+
}
|
|
4659
|
+
PopPipe.prototype.transform = function (value) {
|
|
4660
|
+
return !Array.isArray(value) ? null : Array.from(value).pop();
|
|
4661
|
+
};
|
|
4662
|
+
return PopPipe;
|
|
4663
|
+
}());
|
|
4664
|
+
PopPipe.decorators = [
|
|
4665
|
+
{ type: core.Pipe, args: [{
|
|
4666
|
+
name: "pop"
|
|
4667
|
+
},] }
|
|
4668
|
+
];
|
|
4669
|
+
|
|
4655
4670
|
function defaultReducer(result) {
|
|
4656
4671
|
return result;
|
|
4657
4672
|
}
|
|
@@ -4798,6 +4813,35 @@
|
|
|
4798
4813
|
{ type: platformBrowser.DomSanitizer }
|
|
4799
4814
|
]; };
|
|
4800
4815
|
|
|
4816
|
+
var ShiftPipe = /** @class */ (function () {
|
|
4817
|
+
function ShiftPipe() {
|
|
4818
|
+
}
|
|
4819
|
+
ShiftPipe.prototype.transform = function (value) {
|
|
4820
|
+
return !Array.isArray(value) ? null : Array.from(value).shift();
|
|
4821
|
+
};
|
|
4822
|
+
return ShiftPipe;
|
|
4823
|
+
}());
|
|
4824
|
+
ShiftPipe.decorators = [
|
|
4825
|
+
{ type: core.Pipe, args: [{
|
|
4826
|
+
name: "shift"
|
|
4827
|
+
},] }
|
|
4828
|
+
];
|
|
4829
|
+
|
|
4830
|
+
var SplitPipe = /** @class */ (function () {
|
|
4831
|
+
function SplitPipe() {
|
|
4832
|
+
}
|
|
4833
|
+
SplitPipe.prototype.transform = function (value, separator) {
|
|
4834
|
+
if (separator === void 0) { separator = "."; }
|
|
4835
|
+
return ("" + value).split(separator);
|
|
4836
|
+
};
|
|
4837
|
+
return SplitPipe;
|
|
4838
|
+
}());
|
|
4839
|
+
SplitPipe.decorators = [
|
|
4840
|
+
{ type: core.Pipe, args: [{
|
|
4841
|
+
name: "split"
|
|
4842
|
+
},] }
|
|
4843
|
+
];
|
|
4844
|
+
|
|
4801
4845
|
var TranslatePipe = /** @class */ (function () {
|
|
4802
4846
|
function TranslatePipe(cdr, language) {
|
|
4803
4847
|
this.cdr = cdr;
|
|
@@ -5937,12 +5981,15 @@
|
|
|
5937
5981
|
MapPipe,
|
|
5938
5982
|
MaxPipe,
|
|
5939
5983
|
MinPipe,
|
|
5984
|
+
PopPipe,
|
|
5940
5985
|
ReducePipe,
|
|
5941
5986
|
RemapPipe,
|
|
5942
5987
|
ReplacePipe,
|
|
5943
5988
|
ReversePipe,
|
|
5944
5989
|
RoundPipe,
|
|
5945
5990
|
SafeHtmlPipe,
|
|
5991
|
+
ShiftPipe,
|
|
5992
|
+
SplitPipe,
|
|
5946
5993
|
TranslatePipe,
|
|
5947
5994
|
ValuesPipe
|
|
5948
5995
|
];
|
|
@@ -6156,6 +6203,7 @@
|
|
|
6156
6203
|
exports.PaginationItemDirective = PaginationItemDirective;
|
|
6157
6204
|
exports.PaginationMenuComponent = PaginationMenuComponent;
|
|
6158
6205
|
exports.Point = Point;
|
|
6206
|
+
exports.PopPipe = PopPipe;
|
|
6159
6207
|
exports.PromiseService = PromiseService;
|
|
6160
6208
|
exports.ROOT_ELEMENT = ROOT_ELEMENT;
|
|
6161
6209
|
exports.Rect = Rect;
|
|
@@ -6172,6 +6220,8 @@
|
|
|
6172
6220
|
exports.SafeHtmlPipe = SafeHtmlPipe;
|
|
6173
6221
|
exports.ScrollEventPlugin = ScrollEventPlugin;
|
|
6174
6222
|
exports.SetUtils = SetUtils;
|
|
6223
|
+
exports.ShiftPipe = ShiftPipe;
|
|
6224
|
+
exports.SplitPipe = SplitPipe;
|
|
6175
6225
|
exports.StateService = StateService;
|
|
6176
6226
|
exports.StaticAuthService = StaticAuthService;
|
|
6177
6227
|
exports.StaticLanguageService = StaticLanguageService;
|