@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.
@@ -1406,13 +1406,8 @@
1406
1406
  function SafeUrlPipe(sanitizer) {
1407
1407
  this.sanitizer = sanitizer;
1408
1408
  }
1409
- SafeUrlPipe.prototype.transform = function (url, type) {
1410
- switch (type) {
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"] = SafeUrlPipe;
3201
- exports["ɵbb"] = EncodeUriPipe;
3202
- exports["ɵbc"] = DecodeUriPipe;
3203
- exports["ɵbd"] = TypeofPipe;
3204
- exports["ɵbe"] = TrimPipe;
3205
- exports["ɵbf"] = ToNumberPipe;
3206
- exports["ɵbg"] = SwipeDirective;
3207
- exports["ɵbh"] = MouseWheelDirective;
3208
- exports["ɵbi"] = GetMaxHeightDirective;
3209
- exports["ɵbj"] = TooltipDirective;
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;