@kms-ngx-ui/presentational 0.0.13 → 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 +37 -13
- 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-html.pipe.js +2 -2
- package/esm2015/lib/pipes/safe-resource-url.pipe.js +22 -0
- package/esm2015/lib/pipes/safe-url.pipe.js +3 -3
- package/fesm2015/kms-ngx-ui-presentational.js +26 -4
- 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 +1 -1
- package/package.json +1 -1
|
@@ -1365,7 +1365,7 @@
|
|
|
1365
1365
|
this.sanitizer = sanitizer;
|
|
1366
1366
|
}
|
|
1367
1367
|
SafeHtmlPipe.prototype.transform = function (html) {
|
|
1368
|
-
return this.sanitizer.
|
|
1368
|
+
return this.sanitizer.bypassSecurityTrustHtml(html);
|
|
1369
1369
|
};
|
|
1370
1370
|
return SafeHtmlPipe;
|
|
1371
1371
|
}());
|
|
@@ -1406,8 +1406,8 @@
|
|
|
1406
1406
|
function SafeUrlPipe(sanitizer) {
|
|
1407
1407
|
this.sanitizer = sanitizer;
|
|
1408
1408
|
}
|
|
1409
|
-
SafeUrlPipe.prototype.transform = function (
|
|
1410
|
-
return this.sanitizer.bypassSecurityTrustUrl(
|
|
1409
|
+
SafeUrlPipe.prototype.transform = function (url) {
|
|
1410
|
+
return this.sanitizer.bypassSecurityTrustUrl(url);
|
|
1411
1411
|
};
|
|
1412
1412
|
return SafeUrlPipe;
|
|
1413
1413
|
}());
|
|
@@ -1420,6 +1420,27 @@
|
|
|
1420
1420
|
{ type: platformBrowser.DomSanitizer }
|
|
1421
1421
|
]; };
|
|
1422
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
|
+
|
|
1423
1444
|
var TypeofPipe = /** @class */ (function () {
|
|
1424
1445
|
function TypeofPipe() {
|
|
1425
1446
|
}
|
|
@@ -1487,6 +1508,7 @@
|
|
|
1487
1508
|
IntegerCurrency,
|
|
1488
1509
|
SafeHtmlPipe,
|
|
1489
1510
|
SafeStylePipe,
|
|
1511
|
+
SafeResourceUrlPipe,
|
|
1490
1512
|
SafeUrlPipe,
|
|
1491
1513
|
EncodeUriPipe,
|
|
1492
1514
|
DecodeUriPipe,
|
|
@@ -1499,6 +1521,7 @@
|
|
|
1499
1521
|
IntegerCurrency,
|
|
1500
1522
|
SafeHtmlPipe,
|
|
1501
1523
|
SafeStylePipe,
|
|
1524
|
+
SafeResourceUrlPipe,
|
|
1502
1525
|
SafeUrlPipe,
|
|
1503
1526
|
EncodeUriPipe,
|
|
1504
1527
|
DecodeUriPipe,
|
|
@@ -3192,16 +3215,17 @@
|
|
|
3192
3215
|
exports.ViewportService = ViewportService;
|
|
3193
3216
|
exports["ɵa"] = ActionsParentComponent;
|
|
3194
3217
|
exports["ɵb"] = BackToTopComponent;
|
|
3195
|
-
exports["ɵba"] =
|
|
3196
|
-
exports["ɵbb"] =
|
|
3197
|
-
exports["ɵbc"] =
|
|
3198
|
-
exports["ɵbd"] =
|
|
3199
|
-
exports["ɵbe"] =
|
|
3200
|
-
exports["ɵbf"] =
|
|
3201
|
-
exports["ɵbg"] =
|
|
3202
|
-
exports["ɵbh"] =
|
|
3203
|
-
exports["ɵbi"] =
|
|
3204
|
-
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;
|
|
3205
3229
|
exports["ɵc"] = ButtonWithConfirmDialogComponent;
|
|
3206
3230
|
exports["ɵd"] = CheckboxComponent;
|
|
3207
3231
|
exports["ɵe"] = ColorInputComponent;
|