@stemy/ngx-utils 12.2.5 → 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 +49 -0
- 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/public_api.js +4 -1
- package/fesm2015/stemy-ngx-utils.js +37 -1
- 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
|
@@ -4653,6 +4653,20 @@
|
|
|
4653
4653
|
},] }
|
|
4654
4654
|
];
|
|
4655
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
|
+
|
|
4656
4670
|
function defaultReducer(result) {
|
|
4657
4671
|
return result;
|
|
4658
4672
|
}
|
|
@@ -4799,6 +4813,35 @@
|
|
|
4799
4813
|
{ type: platformBrowser.DomSanitizer }
|
|
4800
4814
|
]; };
|
|
4801
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
|
+
|
|
4802
4845
|
var TranslatePipe = /** @class */ (function () {
|
|
4803
4846
|
function TranslatePipe(cdr, language) {
|
|
4804
4847
|
this.cdr = cdr;
|
|
@@ -5938,12 +5981,15 @@
|
|
|
5938
5981
|
MapPipe,
|
|
5939
5982
|
MaxPipe,
|
|
5940
5983
|
MinPipe,
|
|
5984
|
+
PopPipe,
|
|
5941
5985
|
ReducePipe,
|
|
5942
5986
|
RemapPipe,
|
|
5943
5987
|
ReplacePipe,
|
|
5944
5988
|
ReversePipe,
|
|
5945
5989
|
RoundPipe,
|
|
5946
5990
|
SafeHtmlPipe,
|
|
5991
|
+
ShiftPipe,
|
|
5992
|
+
SplitPipe,
|
|
5947
5993
|
TranslatePipe,
|
|
5948
5994
|
ValuesPipe
|
|
5949
5995
|
];
|
|
@@ -6157,6 +6203,7 @@
|
|
|
6157
6203
|
exports.PaginationItemDirective = PaginationItemDirective;
|
|
6158
6204
|
exports.PaginationMenuComponent = PaginationMenuComponent;
|
|
6159
6205
|
exports.Point = Point;
|
|
6206
|
+
exports.PopPipe = PopPipe;
|
|
6160
6207
|
exports.PromiseService = PromiseService;
|
|
6161
6208
|
exports.ROOT_ELEMENT = ROOT_ELEMENT;
|
|
6162
6209
|
exports.Rect = Rect;
|
|
@@ -6173,6 +6220,8 @@
|
|
|
6173
6220
|
exports.SafeHtmlPipe = SafeHtmlPipe;
|
|
6174
6221
|
exports.ScrollEventPlugin = ScrollEventPlugin;
|
|
6175
6222
|
exports.SetUtils = SetUtils;
|
|
6223
|
+
exports.ShiftPipe = ShiftPipe;
|
|
6224
|
+
exports.SplitPipe = SplitPipe;
|
|
6176
6225
|
exports.StateService = StateService;
|
|
6177
6226
|
exports.StaticAuthService = StaticAuthService;
|
|
6178
6227
|
exports.StaticLanguageService = StaticLanguageService;
|