@kms-ngx-ui/presentational 0.0.14 → 0.0.15
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/kms-ngx-ui-presentational.umd.js +36 -17
- package/bundles/kms-ngx-ui-presentational.umd.js.map +1 -1
- package/esm2015/kms-ngx-ui-presentational.js +12 -11
- package/esm2015/lib/pipes/custom-pipes.module.js +4 -1
- package/esm2015/lib/pipes/safe-resource-url.pipe.js +22 -0
- package/esm2015/lib/pipes/safe-url.pipe.js +3 -8
- package/fesm2015/kms-ngx-ui-presentational.js +25 -8
- package/fesm2015/kms-ngx-ui-presentational.js.map +1 -1
- package/kms-ngx-ui-presentational.d.ts +11 -10
- package/kms-ngx-ui-presentational.metadata.json +1 -1
- package/lib/pipes/safe-resource-url.pipe.d.ts +10 -0
- package/lib/pipes/safe-url.pipe.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1406,13 +1406,8 @@
|
|
|
1406
1406
|
function SafeUrlPipe(sanitizer) {
|
|
1407
1407
|
this.sanitizer = sanitizer;
|
|
1408
1408
|
}
|
|
1409
|
-
SafeUrlPipe.prototype.transform = function (url
|
|
1410
|
-
|
|
1411
|
-
case 'url':
|
|
1412
|
-
return this.sanitizer.bypassSecurityTrustUrl(url);
|
|
1413
|
-
case 'resourceUrl':
|
|
1414
|
-
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
|
|
1415
|
-
}
|
|
1409
|
+
SafeUrlPipe.prototype.transform = function (url) {
|
|
1410
|
+
return this.sanitizer.bypassSecurityTrustUrl(url);
|
|
1416
1411
|
};
|
|
1417
1412
|
return SafeUrlPipe;
|
|
1418
1413
|
}());
|
|
@@ -1425,6 +1420,27 @@
|
|
|
1425
1420
|
{ type: platformBrowser.DomSanitizer }
|
|
1426
1421
|
]; };
|
|
1427
1422
|
|
|
1423
|
+
/**
|
|
1424
|
+
* @copyright KMS GmbH
|
|
1425
|
+
*/
|
|
1426
|
+
var SafeResourceUrlPipe = /** @class */ (function () {
|
|
1427
|
+
function SafeResourceUrlPipe(sanitizer) {
|
|
1428
|
+
this.sanitizer = sanitizer;
|
|
1429
|
+
}
|
|
1430
|
+
SafeResourceUrlPipe.prototype.transform = function (url) {
|
|
1431
|
+
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
|
|
1432
|
+
};
|
|
1433
|
+
return SafeResourceUrlPipe;
|
|
1434
|
+
}());
|
|
1435
|
+
SafeResourceUrlPipe.decorators = [
|
|
1436
|
+
{ type: i0.Pipe, args: [{
|
|
1437
|
+
name: 'kmsSafeResourceSUrl',
|
|
1438
|
+
},] }
|
|
1439
|
+
];
|
|
1440
|
+
SafeResourceUrlPipe.ctorParameters = function () { return [
|
|
1441
|
+
{ type: platformBrowser.DomSanitizer }
|
|
1442
|
+
]; };
|
|
1443
|
+
|
|
1428
1444
|
var TypeofPipe = /** @class */ (function () {
|
|
1429
1445
|
function TypeofPipe() {
|
|
1430
1446
|
}
|
|
@@ -1492,6 +1508,7 @@
|
|
|
1492
1508
|
IntegerCurrency,
|
|
1493
1509
|
SafeHtmlPipe,
|
|
1494
1510
|
SafeStylePipe,
|
|
1511
|
+
SafeResourceUrlPipe,
|
|
1495
1512
|
SafeUrlPipe,
|
|
1496
1513
|
EncodeUriPipe,
|
|
1497
1514
|
DecodeUriPipe,
|
|
@@ -1504,6 +1521,7 @@
|
|
|
1504
1521
|
IntegerCurrency,
|
|
1505
1522
|
SafeHtmlPipe,
|
|
1506
1523
|
SafeStylePipe,
|
|
1524
|
+
SafeResourceUrlPipe,
|
|
1507
1525
|
SafeUrlPipe,
|
|
1508
1526
|
EncodeUriPipe,
|
|
1509
1527
|
DecodeUriPipe,
|
|
@@ -3197,16 +3215,17 @@
|
|
|
3197
3215
|
exports.ViewportService = ViewportService;
|
|
3198
3216
|
exports["ɵa"] = ActionsParentComponent;
|
|
3199
3217
|
exports["ɵb"] = BackToTopComponent;
|
|
3200
|
-
exports["ɵba"] =
|
|
3201
|
-
exports["ɵbb"] =
|
|
3202
|
-
exports["ɵbc"] =
|
|
3203
|
-
exports["ɵbd"] =
|
|
3204
|
-
exports["ɵbe"] =
|
|
3205
|
-
exports["ɵbf"] =
|
|
3206
|
-
exports["ɵbg"] =
|
|
3207
|
-
exports["ɵbh"] =
|
|
3208
|
-
exports["ɵbi"] =
|
|
3209
|
-
exports["ɵbj"] =
|
|
3218
|
+
exports["ɵba"] = SafeResourceUrlPipe;
|
|
3219
|
+
exports["ɵbb"] = SafeUrlPipe;
|
|
3220
|
+
exports["ɵbc"] = EncodeUriPipe;
|
|
3221
|
+
exports["ɵbd"] = DecodeUriPipe;
|
|
3222
|
+
exports["ɵbe"] = TypeofPipe;
|
|
3223
|
+
exports["ɵbf"] = TrimPipe;
|
|
3224
|
+
exports["ɵbg"] = ToNumberPipe;
|
|
3225
|
+
exports["ɵbh"] = SwipeDirective;
|
|
3226
|
+
exports["ɵbi"] = MouseWheelDirective;
|
|
3227
|
+
exports["ɵbj"] = GetMaxHeightDirective;
|
|
3228
|
+
exports["ɵbk"] = TooltipDirective;
|
|
3210
3229
|
exports["ɵc"] = ButtonWithConfirmDialogComponent;
|
|
3211
3230
|
exports["ɵd"] = CheckboxComponent;
|
|
3212
3231
|
exports["ɵe"] = ColorInputComponent;
|