@rxap/pipes 21.0.1 → 22.0.0-dev.1

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.
Files changed (101) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/compodoc/architecture.html +222 -0
  3. package/compodoc/changelog.html +61 -5
  4. package/compodoc/dependencies.html +92 -19
  5. package/compodoc/index.html +46 -5
  6. package/compodoc/js/architecture-graph.js +288 -0
  7. package/compodoc/js/libs/bootstrap-native.js +4 -2
  8. package/compodoc/js/libs/jszip.min.js +13 -0
  9. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  10. package/compodoc/js/libs/tablesort.min.js +3 -3
  11. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  12. package/compodoc/js/libs/vis-network.min.js +78 -0
  13. package/compodoc/js/menu-wc.js +26 -13
  14. package/compodoc/js/menu.js +10 -11
  15. package/compodoc/js/routes/routes_index.js +1 -0
  16. package/compodoc/js/routes.js +142 -34
  17. package/compodoc/js/search/search-lunr.js +6 -8
  18. package/compodoc/js/search/search.js +118 -66
  19. package/compodoc/js/search/search_index.js +2 -2
  20. package/compodoc/js/tabs.js +98 -15
  21. package/compodoc/js/tree.js +44 -7
  22. package/compodoc/license.html +48 -6
  23. package/compodoc/llms.txt +108 -0
  24. package/compodoc/miscellaneous/functions.html +48 -6
  25. package/compodoc/miscellaneous/variables.html +51 -4
  26. package/compodoc/modules.html +44 -3
  27. package/compodoc/overview.html +55 -4
  28. package/compodoc/pipes/DeleteIdentifierPipe.html +89 -12
  29. package/compodoc/pipes/EscapeQuotationMarkPipe.html +89 -11
  30. package/compodoc/pipes/GetFromObjectPipe.html +86 -10
  31. package/compodoc/pipes/JoinPipe.html +86 -10
  32. package/compodoc/pipes/LimitPipe.html +88 -11
  33. package/compodoc/pipes/ReplacePipe.html +87 -10
  34. package/compodoc/pipes/RxapCurrencyPipe.html +87 -10
  35. package/compodoc/pipes/SlicePipe.html +88 -11
  36. package/compodoc/pipes/ToDisplayPipe.html +87 -10
  37. package/compodoc/pipes/TruncatePipe.html +86 -10
  38. package/compodoc/properties.html +45 -4
  39. package/compodoc/routes.html +227 -0
  40. package/compodoc/styles/compodoc.css +365 -44
  41. package/compodoc/styles/dark.css +16 -0
  42. package/compodoc/template-playground/default-templates.json +192 -0
  43. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  44. package/compodoc/template-playground/main.ts +9 -0
  45. package/compodoc/template-playground/template-editor.service.ts +173 -0
  46. package/compodoc/template-playground/template-playground.component.ts +614 -0
  47. package/compodoc/template-playground/template-playground.module.ts +29 -0
  48. package/compodoc/template-playground/zip-export.service.ts +86 -0
  49. package/compodoc/template-playground-app/app.js +1389 -0
  50. package/compodoc/template-playground-app/index.html +462 -0
  51. package/compodoc/todo.html +45 -136
  52. package/docs/documentation.json +196 -120
  53. package/docs/html/assets/highlight.css +1 -1
  54. package/docs/html/assets/icons.js +1 -1
  55. package/docs/html/assets/icons.svg +1 -1
  56. package/docs/html/assets/main.js +5 -5
  57. package/docs/html/assets/search.js +1 -1
  58. package/docs/html/assets/style.css +265 -228
  59. package/docs/html/classes/DeleteIdentifierPipe.html +87 -3
  60. package/docs/html/classes/EscapeQuotationMarkPipe.html +84 -3
  61. package/docs/html/classes/GetFromObjectPipe.html +84 -3
  62. package/docs/html/classes/JoinPipe.html +84 -3
  63. package/docs/html/classes/LimitPipe.html +88 -3
  64. package/docs/html/classes/ReplacePipe.html +85 -3
  65. package/docs/html/classes/RxapCurrencyPipe.html +97 -8
  66. package/docs/html/classes/SlicePipe.html +89 -3
  67. package/docs/html/classes/ToDisplayPipe.html +84 -3
  68. package/docs/html/classes/TruncatePipe.html +85 -3
  69. package/docs/html/hierarchy.html +29 -0
  70. package/docs/html/index.html +40 -4
  71. package/docs/html/modules.html +36 -1
  72. package/docs/markdown/README.md +1 -1
  73. package/docs/markdown/classes/DeleteIdentifierPipe.md +12 -10
  74. package/docs/markdown/classes/EscapeQuotationMarkPipe.md +8 -8
  75. package/docs/markdown/classes/GetFromObjectPipe.md +6 -6
  76. package/docs/markdown/classes/JoinPipe.md +7 -7
  77. package/docs/markdown/classes/LimitPipe.md +9 -7
  78. package/docs/markdown/classes/ReplacePipe.md +6 -6
  79. package/docs/markdown/classes/RxapCurrencyPipe.md +10 -10
  80. package/docs/markdown/classes/SlicePipe.md +10 -8
  81. package/docs/markdown/classes/ToDisplayPipe.md +8 -8
  82. package/docs/markdown/classes/TruncatePipe.md +8 -8
  83. package/docs/markdown/globals.md +2 -2
  84. package/docs/wiki/Class.DeleteIdentifierPipe.md +11 -9
  85. package/docs/wiki/Class.EscapeQuotationMarkPipe.md +7 -7
  86. package/docs/wiki/Class.GetFromObjectPipe.md +5 -5
  87. package/docs/wiki/Class.JoinPipe.md +6 -6
  88. package/docs/wiki/Class.LimitPipe.md +8 -6
  89. package/docs/wiki/Class.ReplacePipe.md +5 -5
  90. package/docs/wiki/Class.RxapCurrencyPipe.md +9 -9
  91. package/docs/wiki/Class.SlicePipe.md +9 -7
  92. package/docs/wiki/Class.ToDisplayPipe.md +7 -7
  93. package/docs/wiki/Class.TruncatePipe.md +7 -7
  94. package/docs/wiki/globals.md +1 -1
  95. package/fesm2022/rxap-pipes-santization.mjs +91 -63
  96. package/fesm2022/rxap-pipes-santization.mjs.map +1 -1
  97. package/fesm2022/rxap-pipes.mjs +399 -223
  98. package/fesm2022/rxap-pipes.mjs.map +1 -1
  99. package/package.json +12 -12
  100. package/types/rxap-pipes-santization.d.ts +17 -18
  101. package/types/rxap-pipes.d.ts +82 -91
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: SlicePipe
4
4
 
5
- Defined in: [slice.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/pipes/src/lib/slice.pipe.ts#L10)
5
+ Defined in: [slice.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/slice.pipe.ts#L10)
6
6
 
7
7
  ## Implements
8
8
 
@@ -10,25 +10,27 @@ Defined in: [slice.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/61502283d
10
10
 
11
11
  ## Constructors
12
12
 
13
- ### new SlicePipe()
13
+ ### Constructor
14
14
 
15
- > **new SlicePipe**(): [`SlicePipe`](../wiki/Class.SlicePipe)
15
+ > **new SlicePipe**(): `SlicePipe`
16
16
 
17
17
  #### Returns
18
18
 
19
- [`SlicePipe`](../wiki/Class.SlicePipe)
19
+ `SlicePipe`
20
20
 
21
21
  ## Methods
22
22
 
23
23
  ### transform()
24
24
 
25
- > **transform**\<`T`\>(`value`, `start`, `end`?): `T`[]
25
+ > **transform**\<`T`\>(`value`, `start`, `end?`): `T`[]
26
26
 
27
- Defined in: [slice.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/pipes/src/lib/slice.pipe.ts#L12)
27
+ Defined in: [slice.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/slice.pipe.ts#L12)
28
28
 
29
29
  #### Type Parameters
30
30
 
31
- • **T**
31
+ ##### T
32
+
33
+ `T`
32
34
 
33
35
  #### Parameters
34
36
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: ToDisplayPipe
4
4
 
5
- Defined in: [to-display.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/pipes/src/lib/to-display.pipe.ts#L12)
5
+ Defined in: [to-display.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/to-display.pipe.ts#L12)
6
6
 
7
7
  ## Implements
8
8
 
@@ -10,21 +10,21 @@ Defined in: [to-display.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/6150
10
10
 
11
11
  ## Constructors
12
12
 
13
- ### new ToDisplayPipe()
13
+ ### Constructor
14
14
 
15
- > **new ToDisplayPipe**(): [`ToDisplayPipe`](../wiki/Class.ToDisplayPipe)
15
+ > **new ToDisplayPipe**(): `ToDisplayPipe`
16
16
 
17
17
  #### Returns
18
18
 
19
- [`ToDisplayPipe`](../wiki/Class.ToDisplayPipe)
19
+ `ToDisplayPipe`
20
20
 
21
21
  ## Methods
22
22
 
23
23
  ### transform()
24
24
 
25
- > **transform**(`value`, `toDisplay`): `string`
25
+ > **transform**(`value`, `toDisplay?`): `string`
26
26
 
27
- Defined in: [to-display.pipe.ts:16](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/pipes/src/lib/to-display.pipe.ts#L16)
27
+ Defined in: [to-display.pipe.ts:16](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/to-display.pipe.ts#L16)
28
28
 
29
29
  #### Parameters
30
30
 
@@ -32,7 +32,7 @@ Defined in: [to-display.pipe.ts:16](https://gitlab.com/rxap/packages/-/blob/6150
32
32
 
33
33
  `any`
34
34
 
35
- ##### toDisplay
35
+ ##### toDisplay?
36
36
 
37
37
  `ToDisplayFunction` = `...`
38
38
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: TruncatePipe
4
4
 
5
- Defined in: [truncate.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/pipes/src/lib/truncate.pipe.ts#L10)
5
+ Defined in: [truncate.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/truncate.pipe.ts#L10)
6
6
 
7
7
  ## Implements
8
8
 
@@ -10,27 +10,27 @@ Defined in: [truncate.pipe.ts:10](https://gitlab.com/rxap/packages/-/blob/615022
10
10
 
11
11
  ## Constructors
12
12
 
13
- ### new TruncatePipe()
13
+ ### Constructor
14
14
 
15
- > **new TruncatePipe**(): [`TruncatePipe`](../wiki/Class.TruncatePipe)
15
+ > **new TruncatePipe**(): `TruncatePipe`
16
16
 
17
17
  #### Returns
18
18
 
19
- [`TruncatePipe`](../wiki/Class.TruncatePipe)
19
+ `TruncatePipe`
20
20
 
21
21
  ## Methods
22
22
 
23
23
  ### transform()
24
24
 
25
- > **transform**(`value`?, `length`?, `ellipsis`?): `string`
25
+ > **transform**(`value?`, `length?`, `ellipsis?`): `string`
26
26
 
27
- Defined in: [truncate.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/61502283d3119c1cda051f50c92b1b3e3860adb4/packages/angular/pipes/src/lib/truncate.pipe.ts#L12)
27
+ Defined in: [truncate.pipe.ts:12](https://gitlab.com/rxap/packages/-/blob/947fa470d880611063dad4f2b0b1c759b5b07f1b/packages/angular/pipes/src/lib/truncate.pipe.ts#L12)
28
28
 
29
29
  #### Parameters
30
30
 
31
31
  ##### value?
32
32
 
33
- `null` | `string`
33
+ `string` \| `null`
34
34
 
35
35
  ##### length?
36
36
 
@@ -1,4 +1,4 @@
1
- # @rxap/pipes v21.0.1
1
+ # @rxap/pipes v22.0.0-dev.1
2
2
 
3
3
  ## Classes
4
4
 
@@ -1,64 +1,92 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, SecurityContext, Injectable, Pipe } from '@angular/core';
3
- import { DomSanitizer } from '@angular/platform-browser';
4
-
5
- // TODO : move to @rxap/services
6
- class SantizationService {
7
- constructor() {
8
- this._sanitizer = inject(DomSanitizer);
9
- }
10
- transform(value, type = 'url') {
11
- if (value === null) {
12
- return this._sanitizer.sanitize(SecurityContext.NONE, value);
13
- }
14
- switch (type) {
15
- case 'html':
16
- return this._sanitizer.bypassSecurityTrustHtml(value);
17
- case 'style':
18
- return this._sanitizer.bypassSecurityTrustStyle(value);
19
- case 'script':
20
- return this._sanitizer.bypassSecurityTrustScript(value);
21
- case 'url':
22
- return this._sanitizer.bypassSecurityTrustUrl(value);
23
- case 'resourceUrl':
24
- return this._sanitizer.bypassSecurityTrustResourceUrl(value);
25
- }
26
- throw new Error('type is not set');
27
- }
28
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SantizationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
29
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SantizationService, providedIn: 'root' }); }
30
- }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SantizationService, decorators: [{
32
- type: Injectable,
33
- args: [{
34
- providedIn: 'root',
35
- }]
36
- }] });
37
-
38
- class SantizationPipe {
39
- constructor() {
40
- this.santizationService = inject(SantizationService);
41
- }
42
- transform(value, type = 'url') {
43
- return this.santizationService.transform(value, type);
44
- }
45
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SantizationPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
46
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: SantizationPipe, isStandalone: true, name: "santization" }); }
47
- }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: SantizationPipe, decorators: [{
49
- type: Pipe,
50
- args: [{
51
- name: 'santization',
52
- standalone: true,
53
- }]
54
- }] });
55
-
56
- // region
57
- // endregion
58
-
59
- /**
60
- * Generated bundle index. Do not edit.
61
- */
62
-
1
+ import * as i0 from "@angular/core";
2
+ import { Injectable, Pipe, SecurityContext, inject } from "@angular/core";
3
+ import { DomSanitizer } from "@angular/platform-browser";
4
+ var SantizationService = class SantizationService {
5
+ constructor() {
6
+ this._sanitizer = inject(DomSanitizer);
7
+ }
8
+ transform(value, type = "url") {
9
+ if (value === null) return this._sanitizer.sanitize(SecurityContext.NONE, value);
10
+ switch (type) {
11
+ case "html": return this._sanitizer.bypassSecurityTrustHtml(value);
12
+ case "style": return this._sanitizer.bypassSecurityTrustStyle(value);
13
+ case "script": return this._sanitizer.bypassSecurityTrustScript(value);
14
+ case "url": return this._sanitizer.bypassSecurityTrustUrl(value);
15
+ case "resourceUrl": return this._sanitizer.bypassSecurityTrustResourceUrl(value);
16
+ }
17
+ throw new Error("type is not set");
18
+ }
19
+ static {
20
+ this.ɵfac = i0.ɵɵngDeclareFactory({
21
+ minVersion: "12.0.0",
22
+ version: "22.3.0",
23
+ ngImport: i0,
24
+ type: SantizationService,
25
+ deps: [],
26
+ target: i0.ɵɵFactoryTarget.Injectable
27
+ });
28
+ }
29
+ static {
30
+ this.ɵprov = i0.ɵɵngDeclareInjectable({
31
+ minVersion: "12.0.0",
32
+ version: "22.3.0",
33
+ ngImport: i0,
34
+ type: SantizationService,
35
+ providedIn: "root"
36
+ });
37
+ }
38
+ };
39
+ i0.ɵɵngDeclareClassMetadata({
40
+ minVersion: "12.0.0",
41
+ version: "22.3.0",
42
+ ngImport: i0,
43
+ type: SantizationService,
44
+ decorators: [{
45
+ type: Injectable,
46
+ args: [{ providedIn: "root" }]
47
+ }]
48
+ });
49
+ var SantizationPipe = class SantizationPipe {
50
+ constructor() {
51
+ this.santizationService = inject(SantizationService);
52
+ }
53
+ transform(value, type = "url") {
54
+ return this.santizationService.transform(value, type);
55
+ }
56
+ static {
57
+ this.ɵfac = i0.ɵɵngDeclareFactory({
58
+ minVersion: "12.0.0",
59
+ version: "22.3.0",
60
+ ngImport: i0,
61
+ type: SantizationPipe,
62
+ deps: [],
63
+ target: i0.ɵɵFactoryTarget.Pipe
64
+ });
65
+ }
66
+ static {
67
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
68
+ minVersion: "14.0.0",
69
+ version: "22.3.0",
70
+ ngImport: i0,
71
+ type: SantizationPipe,
72
+ isStandalone: true,
73
+ name: "santization"
74
+ });
75
+ }
76
+ };
77
+ i0.ɵɵngDeclareClassMetadata({
78
+ minVersion: "12.0.0",
79
+ version: "22.3.0",
80
+ ngImport: i0,
81
+ type: SantizationPipe,
82
+ decorators: [{
83
+ type: Pipe,
84
+ args: [{
85
+ name: "santization",
86
+ standalone: true
87
+ }]
88
+ }]
89
+ });
63
90
  export { SantizationPipe, SantizationService };
64
- //# sourceMappingURL=rxap-pipes-santization.mjs.map
91
+
92
+ //# sourceMappingURL=rxap-pipes-santization.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-pipes-santization.mjs","sources":["../../../../../packages/angular/pipes/santization/src/lib/santization.service.ts","../../../../../packages/angular/pipes/santization/src/lib/santization.pipe.ts","../../../../../packages/angular/pipes/santization/src/index.ts","../../../../../packages/angular/pipes/santization/src/rxap-pipes-santization.ts"],"sourcesContent":["import { Injectable, SecurityContext, inject } from '@angular/core';\nimport {\n DomSanitizer,\n SafeValue,\n} from '@angular/platform-browser';\n\n// TODO : move to @rxap/services\n@Injectable({\n providedIn: 'root',\n})\nexport class SantizationService {\n private _sanitizer = inject<DomSanitizer>(DomSanitizer);\n\n\n transform(\n value: string | null,\n type: 'html' | 'style' | 'script' | 'url' | 'resourceUrl' = 'url',\n ): SafeValue | null {\n if (value === null) {\n return this._sanitizer.sanitize(SecurityContext.NONE, value);\n }\n switch (type) {\n case 'html':\n return this._sanitizer.bypassSecurityTrustHtml(value);\n\n case 'style':\n return this._sanitizer.bypassSecurityTrustStyle(value);\n\n case 'script':\n return this._sanitizer.bypassSecurityTrustScript(value);\n\n case 'url':\n return this._sanitizer.bypassSecurityTrustUrl(value);\n\n case 'resourceUrl':\n return this._sanitizer.bypassSecurityTrustResourceUrl(value);\n }\n\n throw new Error('type is not set');\n }\n}\n","import { Pipe, PipeTransform, inject } from '@angular/core';\nimport { SafeValue } from '@angular/platform-browser';\nimport { SantizationService } from './santization.service';\n\n@Pipe({\n name: 'santization',\n standalone: true,\n})\nexport class SantizationPipe implements PipeTransform {\n private readonly santizationService = inject(SantizationService);\n\n\n transform(\n value: string | null,\n type: 'html' | 'style' | 'script' | 'url' | 'resourceUrl' = 'url',\n ): SafeValue | null {\n return this.santizationService.transform(value, type);\n }\n}\n","// region \nexport * from './lib/santization.pipe';\nexport * from './lib/santization.service';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAMA;MAIa,kBAAkB,CAAA;AAH/B,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAe,YAAY,CAAC;AA6BxD,IAAA;AA1BC,IAAA,SAAS,CACP,KAAoB,EACpB,IAAA,GAA4D,KAAK,EAAA;AAEjE,QAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAClB,YAAA,OAAO,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC;QAC9D;QACA,QAAQ,IAAI;AACV,YAAA,KAAK,MAAM;gBACT,OAAO,IAAI,CAAC,UAAU,CAAC,uBAAuB,CAAC,KAAK,CAAC;AAEvD,YAAA,KAAK,OAAO;gBACV,OAAO,IAAI,CAAC,UAAU,CAAC,wBAAwB,CAAC,KAAK,CAAC;AAExD,YAAA,KAAK,QAAQ;gBACX,OAAO,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC,KAAK,CAAC;AAEzD,YAAA,KAAK,KAAK;gBACR,OAAO,IAAI,CAAC,UAAU,CAAC,sBAAsB,CAAC,KAAK,CAAC;AAEtD,YAAA,KAAK,aAAa;gBAChB,OAAO,IAAI,CAAC,UAAU,CAAC,8BAA8B,CAAC,KAAK,CAAC;;AAGhE,QAAA,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC;IACpC;8GA7BW,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,cAFjB,MAAM,EAAA,CAAA,CAAA;;2FAEP,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA;;;MCDY,eAAe,CAAA;AAJ5B,IAAA,WAAA,GAAA;AAKmB,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;AASjE,IAAA;AANC,IAAA,SAAS,CACP,KAAoB,EACpB,IAAA,GAA4D,KAAK,EAAA;QAEjE,OAAO,IAAI,CAAC,kBAAkB,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC;IACvD;8GATW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;4GAAf,eAAe,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,CAAA;;2FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,aAAa;AACnB,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA;;;ACPD;AAGA;;ACHA;;AAEG;;;;"}
1
+ {"version":3,"file":"rxap-pipes-santization.mjs","names":[],"sources":["../../../../../packages/angular/pipes/santization/src/lib/santization.service.ts","../../../../../packages/angular/pipes/santization/src/lib/santization.pipe.ts"],"sourcesContent":["import { Injectable, SecurityContext, inject } from '@angular/core';\nimport {\n DomSanitizer,\n SafeValue,\n} from '@angular/platform-browser';\n\n// TODO : move to @rxap/services\n@Injectable({\n providedIn: 'root',\n})\nexport class SantizationService {\n private _sanitizer = inject<DomSanitizer>(DomSanitizer);\n\n\n transform(\n value: string | null,\n type: 'html' | 'style' | 'script' | 'url' | 'resourceUrl' = 'url',\n ): SafeValue | null {\n if (value === null) {\n return this._sanitizer.sanitize(SecurityContext.NONE, value);\n }\n switch (type) {\n case 'html':\n return this._sanitizer.bypassSecurityTrustHtml(value);\n\n case 'style':\n return this._sanitizer.bypassSecurityTrustStyle(value);\n\n case 'script':\n return this._sanitizer.bypassSecurityTrustScript(value);\n\n case 'url':\n return this._sanitizer.bypassSecurityTrustUrl(value);\n\n case 'resourceUrl':\n return this._sanitizer.bypassSecurityTrustResourceUrl(value);\n }\n\n throw new Error('type is not set');\n }\n}\n","import { Pipe, PipeTransform, inject } from '@angular/core';\nimport { SafeValue } from '@angular/platform-browser';\nimport { SantizationService } from './santization.service';\n\n@Pipe({\n name: 'santization',\n standalone: true,\n})\nexport class SantizationPipe implements PipeTransform {\n private readonly santizationService = inject(SantizationService);\n\n\n transform(\n value: string | null,\n type: 'html' | 'style' | 'script' | 'url' | 'resourceUrl' = 'url',\n ): SafeValue | null {\n return this.santizationService.transform(value, type);\n }\n}\n"],"mappings":";;;AAUA,IAAa,qBAAb,MAAa,mBAAkB;CAH/B,cAAA;EAIU,KAAA,aAAa,OAAqB,YAAY;CA6BvD;CA1BC,UACE,OACA,OAA4D,OAAK;EAEjE,IAAI,UAAU,MACZ,OAAO,KAAK,WAAW,SAAS,gBAAgB,MAAM,KAAK;EAE7D,QAAQ,MAAR;GACE,KAAK,QACH,OAAO,KAAK,WAAW,wBAAwB,KAAK;GAEtD,KAAK,SACH,OAAO,KAAK,WAAW,yBAAyB,KAAK;GAEvD,KAAK,UACH,OAAO,KAAK,WAAW,0BAA0B,KAAK;GAExD,KAAK,OACH,OAAO,KAAK,WAAW,uBAAuB,KAAK;GAErD,KAAK,eACH,OAAO,KAAK,WAAW,+BAA+B,KAAK;EAC/D;EAEA,MAAM,IAAI,MAAM,iBAAiB;CACnC;CA7BW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAkB,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAlB;EAAA,KAAA,QAAA,GAAA,sBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAkB,YAFjB;EAAM,CAAA;CAAA;;AAEP,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAkB,YAAA,CAAA;EAH9B,MAAA;EAAW,MAAA,CAAA,EACV,YAAY,OACb,CAAA;;;ACDD,IAAa,kBAAb,MAAa,gBAAe;CAJ5B,cAAA;EAKmB,KAAA,qBAAqB,OAAO,kBAAkB;CAShE;CANC,UACE,OACA,OAA4D,OAAK;EAEjE,OAAO,KAAK,mBAAmB,UAAU,OAAO,IAAI;CACtD;CATW;EAAA,KAAA,OAAA,GAAA,mBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAe,MAAA,CAAA;GAAA,QAAA,GAAA,gBAAA;EAAA,CAAA;CAAA;CAAf;EAAA,KAAA,QAAA,GAAA,gBAAA;GAAA,YAAA;GAAA,SAAA;GAAA,UAAA;GAAA,MAAA;GAAe,cAAA;GAAA,MAAA;EAAA,CAAA;CAAA;;AAAf,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAe,YAAA,CAAA;EAJ3B,MAAA;EAAK,MAAA,CAAA;GACJ,MAAM;GACN,YAAY;EACb,CAAA"}