@rxap/pipes 22.0.0-dev.0 → 22.0.0-dev.2

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 (107) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +5 -3
  3. package/compodoc/architecture.html +222 -0
  4. package/compodoc/changelog.html +74 -5
  5. package/compodoc/dependencies.html +92 -19
  6. package/compodoc/index.html +50 -8
  7. package/compodoc/js/architecture-graph.js +288 -0
  8. package/compodoc/js/libs/bootstrap-native.js +4 -2
  9. package/compodoc/js/libs/jszip.min.js +13 -0
  10. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  11. package/compodoc/js/libs/tablesort.min.js +3 -3
  12. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  13. package/compodoc/js/libs/vis-network.min.js +78 -0
  14. package/compodoc/js/menu-wc.js +26 -13
  15. package/compodoc/js/menu.js +10 -11
  16. package/compodoc/js/routes/routes_index.js +1 -0
  17. package/compodoc/js/routes.js +142 -34
  18. package/compodoc/js/search/search-lunr.js +6 -8
  19. package/compodoc/js/search/search.js +118 -66
  20. package/compodoc/js/search/search_index.js +2 -2
  21. package/compodoc/js/tabs.js +98 -15
  22. package/compodoc/js/tree.js +44 -7
  23. package/compodoc/license.html +48 -6
  24. package/compodoc/llms.txt +110 -0
  25. package/compodoc/miscellaneous/functions.html +129 -6
  26. package/compodoc/miscellaneous/variables.html +51 -4
  27. package/compodoc/modules.html +44 -3
  28. package/compodoc/overview.html +55 -4
  29. package/compodoc/pipes/DeleteIdentifierPipe.html +89 -12
  30. package/compodoc/pipes/EscapeQuotationMarkPipe.html +89 -11
  31. package/compodoc/pipes/GetFromObjectPipe.html +86 -10
  32. package/compodoc/pipes/JoinPipe.html +86 -10
  33. package/compodoc/pipes/LimitPipe.html +88 -11
  34. package/compodoc/pipes/ReplacePipe.html +87 -10
  35. package/compodoc/pipes/RxapCurrencyPipe.html +87 -10
  36. package/compodoc/pipes/SlicePipe.html +88 -11
  37. package/compodoc/pipes/ToDisplayPipe.html +87 -10
  38. package/compodoc/pipes/TruncatePipe.html +86 -10
  39. package/compodoc/properties.html +45 -4
  40. package/compodoc/routes.html +227 -0
  41. package/compodoc/styles/compodoc.css +365 -44
  42. package/compodoc/styles/dark.css +16 -0
  43. package/compodoc/template-playground/default-templates.json +192 -0
  44. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  45. package/compodoc/template-playground/main.ts +9 -0
  46. package/compodoc/template-playground/template-editor.service.ts +173 -0
  47. package/compodoc/template-playground/template-playground.component.ts +614 -0
  48. package/compodoc/template-playground/template-playground.module.ts +29 -0
  49. package/compodoc/template-playground/zip-export.service.ts +86 -0
  50. package/compodoc/template-playground-app/app.js +1389 -0
  51. package/compodoc/template-playground-app/index.html +462 -0
  52. package/compodoc/todo.html +45 -136
  53. package/docs/documentation.json +224 -124
  54. package/docs/html/assets/highlight.css +1 -1
  55. package/docs/html/assets/icons.js +1 -1
  56. package/docs/html/assets/icons.svg +1 -1
  57. package/docs/html/assets/main.js +5 -5
  58. package/docs/html/assets/search.js +1 -1
  59. package/docs/html/assets/style.css +265 -228
  60. package/docs/html/classes/DeleteIdentifierPipe.html +87 -3
  61. package/docs/html/classes/EscapeQuotationMarkPipe.html +84 -3
  62. package/docs/html/classes/GetFromObjectPipe.html +84 -3
  63. package/docs/html/classes/JoinPipe.html +84 -3
  64. package/docs/html/classes/LimitPipe.html +88 -3
  65. package/docs/html/classes/ReplacePipe.html +85 -3
  66. package/docs/html/classes/RxapCurrencyPipe.html +97 -8
  67. package/docs/html/classes/SlicePipe.html +89 -3
  68. package/docs/html/classes/ToDisplayPipe.html +84 -3
  69. package/docs/html/classes/TruncatePipe.html +85 -3
  70. package/docs/html/hierarchy.html +29 -0
  71. package/docs/html/index.html +44 -7
  72. package/docs/html/modules.html +36 -1
  73. package/docs/markdown/README.md +6 -4
  74. package/docs/markdown/classes/DeleteIdentifierPipe.md +12 -10
  75. package/docs/markdown/classes/EscapeQuotationMarkPipe.md +8 -8
  76. package/docs/markdown/classes/GetFromObjectPipe.md +6 -6
  77. package/docs/markdown/classes/JoinPipe.md +7 -7
  78. package/docs/markdown/classes/LimitPipe.md +9 -7
  79. package/docs/markdown/classes/ReplacePipe.md +6 -6
  80. package/docs/markdown/classes/RxapCurrencyPipe.md +10 -10
  81. package/docs/markdown/classes/SlicePipe.md +10 -8
  82. package/docs/markdown/classes/ToDisplayPipe.md +8 -8
  83. package/docs/markdown/classes/TruncatePipe.md +8 -8
  84. package/docs/markdown/globals.md +2 -2
  85. package/docs/wiki/Class.DeleteIdentifierPipe.md +11 -9
  86. package/docs/wiki/Class.EscapeQuotationMarkPipe.md +7 -7
  87. package/docs/wiki/Class.GetFromObjectPipe.md +5 -5
  88. package/docs/wiki/Class.JoinPipe.md +6 -6
  89. package/docs/wiki/Class.LimitPipe.md +8 -6
  90. package/docs/wiki/Class.ReplacePipe.md +5 -5
  91. package/docs/wiki/Class.RxapCurrencyPipe.md +9 -9
  92. package/docs/wiki/Class.SlicePipe.md +9 -7
  93. package/docs/wiki/Class.ToDisplayPipe.md +7 -7
  94. package/docs/wiki/Class.TruncatePipe.md +7 -7
  95. package/docs/wiki/Home.md +5 -3
  96. package/docs/wiki/globals.md +1 -1
  97. package/generators.json +16 -0
  98. package/package.json +10 -12
  99. package/src/generators/init/generator.js +120 -0
  100. package/src/generators/init/index.js +6 -0
  101. package/src/generators/init/schema.json +8 -0
  102. package/src/generators/package.json +3 -0
  103. package/compodoc/js/libs/vis.min.js +0 -47
  104. package/compodoc/js/menu-wc_es5.js +0 -40
  105. package/compodoc/modules/CurrencyPipeModule/dependencies.svg +0 -66
  106. package/compodoc/modules/CurrencyPipeModule.html +0 -390
  107. package/theme.css +0 -1
@@ -1,21 +1,104 @@
1
1
  document.addEventListener('DOMContentLoaded', function() {
2
- var tabs = document.getElementsByClassName('nav-tabs'),
3
- updateAddress = function(e) {
4
- if(history.pushState && e.target.dataset.link) {
5
- history.pushState(null, null, '#' + e.target.dataset.link);
2
+ var tabContainers = document.getElementsByClassName('nav-tabs');
3
+ var tabLinks = [];
4
+ var tabAliasMap = {
5
+ 'template': 'templateData',
6
+ 'dom-tree': 'tree'
7
+ };
8
+
9
+ function updateAddress(e) {
10
+ if (history.pushState && e.target.dataset.link) {
11
+ history.pushState(null, null, '#' + e.target.dataset.link);
12
+ }
13
+ }
14
+
15
+ function findTabLinkByDataLink(dataLink) {
16
+ for (var i = 0; i < tabLinks.length; i++) {
17
+ if (tabLinks[i].dataset.link === dataLink) {
18
+ return tabLinks[i];
19
+ }
20
+ }
21
+ return null;
22
+ }
23
+
24
+ function getClosestTabPane(element) {
25
+ if (!element) {
26
+ return null;
27
+ }
28
+ if (element.closest) {
29
+ return element.closest('.tab-pane');
30
+ }
31
+ var node = element;
32
+ while (node) {
33
+ if (node.classList && node.classList.contains('tab-pane')) {
34
+ return node;
6
35
  }
7
- };
8
- if (tabs.length > 0) {
9
- tabs = tabs[0].querySelectorAll('li');
10
- for (var i = 0; i < tabs.length; i++) {
11
- tabs[i].addEventListener('click', updateAddress);
12
- var linkTag = tabs[i].querySelector('a');
13
- if (location.hash !== '') {
14
- var currentHash = location.hash.substr(1);
15
- if (currentHash === linkTag.dataset.link) {
16
- linkTag.click();
17
- }
36
+ node = node.parentElement;
37
+ }
38
+ return null;
39
+ }
40
+
41
+ function findAnchorTarget(hashValue) {
42
+ if (!hashValue) {
43
+ return null;
44
+ }
45
+
46
+ var targetById = document.getElementById(hashValue);
47
+ if (targetById) {
48
+ return targetById;
49
+ }
50
+
51
+ var targetsByName = document.getElementsByName(hashValue);
52
+ if (targetsByName && targetsByName.length > 0) {
53
+ return targetsByName[0];
54
+ }
55
+
56
+ return null;
57
+ }
58
+
59
+ function activateTabFromHash() {
60
+ if (location.hash === '') {
61
+ return;
62
+ }
63
+
64
+ var currentHash = decodeURIComponent(location.hash.substr(1));
65
+ if (!currentHash) {
66
+ return;
67
+ }
68
+
69
+ var resolvedHash = tabAliasMap[currentHash] || currentHash;
70
+ var directMatch = findTabLinkByDataLink(resolvedHash);
71
+ if (directMatch) {
72
+ directMatch.click();
73
+ return;
74
+ }
75
+
76
+ if (currentHash.indexOf('source.') === 0) {
77
+ var sourceTabLink = findTabLinkByDataLink('source');
78
+ if (sourceTabLink) {
79
+ sourceTabLink.click();
80
+ return;
18
81
  }
19
82
  }
83
+
84
+ var targetAnchor = findAnchorTarget(currentHash);
85
+ var tabPane = getClosestTabPane(targetAnchor);
86
+ if (!tabPane || !tabPane.id) {
87
+ return;
88
+ }
89
+
90
+ var tabLink = findTabLinkByDataLink(tabPane.id);
91
+ if (tabLink) {
92
+ tabLink.click();
93
+ }
94
+ }
95
+
96
+ if (tabContainers.length > 0) {
97
+ tabLinks = tabContainers[0].querySelectorAll('a[data-link]');
98
+ for (var i = 0; i < tabLinks.length; i++) {
99
+ tabLinks[i].addEventListener('click', updateAddress);
100
+ }
101
+ activateTabFromHash();
102
+ window.addEventListener('hashchange', activateTabFromHash, false);
20
103
  }
21
104
  });
@@ -58,10 +58,18 @@ document.addEventListener('DOMContentLoaded', function() {
58
58
  type
59
59
  } of it) {
60
60
  if (type === 'NonIterableObject' && typeof key !== 'undefined' && value.type === 'tag') {
61
+ var parentId = parentNode && parentNode._parent ? parentNode._parent._id : null,
62
+ parentLevel = parentNode && parentNode._parent && typeof parentNode._parent._level === 'number'
63
+ ? parentNode._parent._level
64
+ : 0,
65
+ nodeLevel = parentLevel + 1;
66
+ value._level = nodeLevel;
67
+
61
68
  var newNode = {
62
69
  id: value._id,
63
70
  label: value.name,
64
- type: value.type
71
+ type: value.type,
72
+ level: nodeLevel
65
73
  };
66
74
  for(var i = 0; i < COMPONENTS.length; i++) {
67
75
  if (COMPONENTS[i].selector === value.name) {
@@ -88,17 +96,29 @@ document.addEventListener('DOMContentLoaded', function() {
88
96
  }
89
97
  }
90
98
  newNodes.push(newNode);
91
- newEdges.push({
92
- from: parentNode._parent._id,
93
- to: value._id,
94
- arrows: 'to'
95
- });
99
+ if (parentId !== null && typeof parentId !== 'undefined') {
100
+ newEdges.push({
101
+ from: parentId,
102
+ to: value._id
103
+ });
104
+ }
96
105
  }
97
106
  }
98
107
 
99
108
  newNodes.shift();
100
109
 
110
+ var stripHtml = function(value) {
111
+ return String(value || '').replace(/<[^>]*>/g, '');
112
+ },
113
+ longestLabelLength = newNodes.reduce(function(max, node) {
114
+ var labelLength = stripHtml(node.label).length;
115
+ return Math.max(max, labelLength);
116
+ }, 0),
117
+ uniformNodeWidth = Math.max(40, Math.ceil(longestLabelLength * 8 + 28));
118
+
101
119
  var container = document.getElementById('tree-container'),
120
+ isDarkMode = document.body && document.body.classList.contains('dark'),
121
+ treeFontColor = isDarkMode ? '#f0f0f0' : '#2d2d2d',
102
122
  data = {
103
123
  nodes: newNodes,
104
124
  edges: newEdges
@@ -107,12 +127,29 @@ document.addEventListener('DOMContentLoaded', function() {
107
127
  layout: {
108
128
  hierarchical: {
109
129
  sortMethod: 'directed',
130
+ shakeTowards: 'roots',
131
+ levelSeparation: 130,
110
132
  enabled: true
111
133
  }
112
134
  },
135
+ edges: {
136
+ smooth: {
137
+ enabled: true,
138
+ type: 'cubicBezier',
139
+ forceDirection: 'vertical',
140
+ roundness: 0.45
141
+ }
142
+ },
113
143
  nodes: {
114
144
  shape: 'ellipse',
115
- fixed: true
145
+ fixed: true,
146
+ font: {
147
+ color: treeFontColor
148
+ },
149
+ widthConstraint: {
150
+ minimum: uniformNodeWidth,
151
+ maximum: uniformNodeWidth
152
+ }
116
153
  }
117
154
  },
118
155
 
@@ -61,6 +61,20 @@
61
61
  }
62
62
  toggleDarkMode(darkModeState);
63
63
  </script>
64
+ <script>
65
+ // --- Iframe navigation tracking for Template Playground ---
66
+ function sendCurrentUrlToParent() {
67
+ if (window.parent && window.parent !== window) {
68
+ window.parent.postMessage({
69
+ type: 'compodoc-iframe-navigate',
70
+ url: window.location.pathname + window.location.hash
71
+ }, '*');
72
+ }
73
+ }
74
+ window.addEventListener('hashchange', sendCurrentUrlToParent, false);
75
+ window.addEventListener('popstate', sendCurrentUrlToParent, false);
76
+ window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
77
+ </script>
64
78
 
65
79
  <div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
66
80
  <div class="d-flex">
@@ -70,7 +84,14 @@
70
84
  </div>
71
85
 
72
86
  <div class="xs-menu menu" id="mobile-menu">
73
- <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
87
+ <div id="book-search-input" role="search">
88
+ <input type="text" placeholder="Type to search">
89
+ <button type="button"
90
+ class="search-input-clear"
91
+ aria-label="Clear search"
92
+ data-search-input-clear>&times;</button>
93
+ </div>
94
+ <compodoc-menu></compodoc-menu>
74
95
  </div>
75
96
 
76
97
  <div class="container-fluid main">
@@ -79,9 +100,13 @@
79
100
  <compodoc-menu mode="normal"></compodoc-menu>
80
101
  </div>
81
102
  <!-- START CONTENT -->
82
- <div class="content getting-started">
103
+ <div class="content license">
83
104
  <div class="content-data">
84
105
 
106
+
107
+
108
+
109
+
85
110
  <b>Example :</b><div><pre class="line-numbers"><code class="language-none"> GNU GENERAL PUBLIC LICENSE
86
111
  Version 3, 29 June 2007</code></pre></div><p> Copyright (C) 2007 Free Software Foundation, Inc. <a href="https://fsf.org/">https://fsf.org/</a>
87
112
  Everyone is permitted to copy and distribute verbatim copies
@@ -636,7 +661,8 @@ reviewing courts shall apply local law that most closely approximates
636
661
  an absolute waiver of all civil liability in connection with the
637
662
  Program, unless a warranty or assumption of liability accompanies a
638
663
  copy of the Program in return for a fee.</p>
639
- <b>Example :</b><div><pre class="line-numbers"><code class="language-none"> END OF TERMS AND CONDITIONS</code></pre></div>
664
+ <b>Example :</b><div><pre class="line-numbers"><code class="language-none"> END OF TERMS AND CONDITIONS
665
+ </code></pre></div>
640
666
 
641
667
 
642
668
 
@@ -682,13 +708,31 @@ copy of the Program in return for a fee.</p>
682
708
 
683
709
  <script>
684
710
  var COMPODOC_CURRENT_PAGE_DEPTH = 0;
685
- var COMPODOC_CURRENT_PAGE_CONTEXT = 'getting-started';
711
+ var COMPODOC_CURRENT_PAGE_CONTEXT = 'license';
686
712
  var COMPODOC_CURRENT_PAGE_URL = 'license.html';
687
713
  var MAX_SEARCH_RESULTS = 15;
688
714
  </script>
689
715
 
690
716
  <script>
691
717
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
718
+ var updateDarkModeSwitchOffset = function () {
719
+ var content = document.querySelector('.content');
720
+ var scrollbarWidth = 0;
721
+
722
+ if (content) {
723
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
724
+ }
725
+
726
+ document.documentElement.style.setProperty(
727
+ '--content-scrollbar-width',
728
+ scrollbarWidth + 'px'
729
+ );
730
+ };
731
+
732
+ updateDarkModeSwitchOffset();
733
+ requestAnimationFrame(updateDarkModeSwitchOffset);
734
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
735
+
692
736
  checkToggle(darkModeState);
693
737
  if ($darkModeToggleSwitchers.length > 0) {
694
738
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -704,14 +748,12 @@ copy of the Program in return for a fee.</p>
704
748
  <script src="./js/libs/lit-html.js"></script>
705
749
 
706
750
  <script src="./js/menu-wc.js" defer></script>
707
- <script nomodule src="./js/menu-wc_es5.js" defer></script>
708
751
 
709
752
  <script src="./js/libs/bootstrap-native.js"></script>
710
753
 
711
754
  <script src="./js/libs/es6-shim.min.js"></script>
712
755
  <script src="./js/libs/EventDispatcher.js"></script>
713
756
  <script src="./js/libs/promise.min.js"></script>
714
- <script src="./js/libs/zepto.min.js"></script>
715
757
 
716
758
  <script src="./js/compodoc.js"></script>
717
759
 
@@ -0,0 +1,110 @@
1
+ # angular-pipes
2
+
3
+ > Provides a set of Angular pipes for common data transformations, including currency formatting, string manipulation, and object property access. These pipes offer standalone functionality for easy integration into Angular templates. The package includes pipes for escaping quotation marks, joining arrays, limiting array length, replacing substrings, slicing arrays, truncating strings, and deleting identifier properties from objects.
4
+
5
+ > Generated by compodoc 2.0.0 at 2026-11-26T16:48:40.354Z, llm-md export.
6
+
7
+ ## Pipes
8
+
9
+ ### DeleteIdentifierPipe
10
+
11
+ File: `src/lib/delete-identifier.pipe.ts`
12
+ Pipe name: `deleteIdentifier`
13
+ Standalone: yes
14
+
15
+ Methods:
16
+ - `transform(value: unknown | null): T | null`
17
+
18
+ ### EscapeQuotationMarkPipe
19
+
20
+ File: `src/lib/escape-quotation-mark.pipe.ts`
21
+ Pipe name: `escapeQuotationMark`
22
+ Standalone: yes
23
+
24
+ Methods:
25
+ - `transform(value: string, reverse: unknown = false): string`
26
+
27
+ ### GetFromObjectPipe
28
+
29
+ File: `src/lib/get-from-object.pipe.ts`
30
+ Pipe name: `getFromObject`
31
+ Standalone: yes
32
+
33
+ Methods:
34
+ - `transform(value: any, path: string): any`
35
+
36
+ ### JoinPipe
37
+
38
+ File: `src/lib/join.pipe.ts`
39
+ Pipe name: `join`
40
+ Standalone: yes
41
+ Pure: `true`
42
+
43
+ Methods:
44
+ - `transform(list: any[], separator?: string): string`
45
+
46
+ ### LimitPipe
47
+
48
+ File: `src/lib/limit.pipe.ts`
49
+ Pipe name: `limit`
50
+ Standalone: yes
51
+
52
+ Methods:
53
+ - `transform(value: {}, limit: number): T[]`
54
+
55
+ ### ReplacePipe
56
+
57
+ File: `src/lib/replace.pipe.ts`
58
+ Pipe name: `replace`
59
+ Standalone: yes
60
+
61
+ Methods:
62
+ - `transform(value: string, replace: RegExp, replaceValue: string): string`
63
+
64
+ ### RxapCurrencyPipe
65
+
66
+ File: `src/lib/currency.pipe.ts`
67
+ Pipe name: `currency`
68
+ Standalone: yes
69
+
70
+ Methods:
71
+ - `transform(value: number, currencyCode?: string, display?: "code" | "symbol" | "symbol-narrow" | string | boolean, digitsInfo?: string, locale?: string): string | null` — such as USD for the US dollar and EUR for the euro. The default currency code can be configured using the DEFAULT\_CURRENCY\_CODE injection token. code : Show the code (such as USD ). symbol (default): Show the symbol (such as $ ). symbol-narrow : Use the narrow symbol for locales that have two symbols for their currency. For example, the Canadian dollar CAD has the symbol CA$ and the symbol-narrow $ . If the locale has no narrow symbol, uses the standard symbol for the locale. String: Use the given string value instead of a code or a symbol. For example, an empty string will suppress the currency & symbol. Boolean (marked deprecated in v5): true for symbol and false for code . in the following format: {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits} . minIntegerDigits : The minimum number of integer digits before the decimal point. Default is 1 . minFractionDigits : The minimum number of digits after the decimal point. Default is 2 . maxFractionDigits : The maximum number of digits after the decimal point. Default is 2 . If not provided, the number will be formatted with the proper amount of digits, depending on what the ISO 4217 specifies. For example, the Canadian dollar has 2 digits, whereas the Chilean peso has none. When not supplied, uses the value of LOCALE\_ID , which is en-US by default. See Setting your app locale .
72
+
73
+ ### SlicePipe
74
+
75
+ File: `src/lib/slice.pipe.ts`
76
+ Pipe name: `slice`
77
+ Standalone: yes
78
+
79
+ Methods:
80
+ - `transform(value: {}, start: number, end?: number): T[]`
81
+
82
+ ### ToDisplayPipe
83
+
84
+ File: `src/lib/to-display.pipe.ts`
85
+ Pipe name: `toDisplay`
86
+ Standalone: yes
87
+
88
+ Methods:
89
+ - `transform(value: any, toDisplay: ToDisplayFunction = this.jsonPipe.transform): string`
90
+
91
+ ### TruncatePipe
92
+
93
+ File: `src/lib/truncate.pipe.ts`
94
+ Pipe name: `truncate`
95
+ Standalone: yes
96
+
97
+ Methods:
98
+ - `transform(value?: string | null, length: number = 64, ellipsis: string = '...'): string`
99
+
100
+ ## Public functions
101
+
102
+ - `initGenerator(tree: Tree, options: InitGeneratorSchema)`
103
+ Defined in `src/generators/init/generator.ts`
104
+ - `resolvePackageDir(root: string, packageName: string): string` — Resolves the directory of a package installed in the workspace. The lookup starts at the workspace root, not at this package: with an isolated node\_modules layout (pnpm) or Yarn PnP the peer is not resolvable from here. The plain node\_modules path is the fallback for packages whose exports map hides their package.json.
105
+ Defined in `src/generators/init/generator.ts`
106
+
107
+ ## Public variables
108
+
109
+ - `schematic: unknown = convertNxGenerator(generator)`
110
+ Defined in `src/generators/init/index.ts`
@@ -61,6 +61,20 @@
61
61
  }
62
62
  toggleDarkMode(darkModeState);
63
63
  </script>
64
+ <script>
65
+ // --- Iframe navigation tracking for Template Playground ---
66
+ function sendCurrentUrlToParent() {
67
+ if (window.parent && window.parent !== window) {
68
+ window.parent.postMessage({
69
+ type: 'compodoc-iframe-navigate',
70
+ url: window.location.pathname + window.location.hash
71
+ }, '*');
72
+ }
73
+ }
74
+ window.addEventListener('hashchange', sendCurrentUrlToParent, false);
75
+ window.addEventListener('popstate', sendCurrentUrlToParent, false);
76
+ window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
77
+ </script>
64
78
 
65
79
  <div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
66
80
  <div class="d-flex">
@@ -70,7 +84,14 @@
70
84
  </div>
71
85
 
72
86
  <div class="xs-menu menu" id="mobile-menu">
73
- <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
87
+ <div id="book-search-input" role="search">
88
+ <input type="text" placeholder="Type to search">
89
+ <button type="button"
90
+ class="search-input-clear"
91
+ aria-label="Clear search"
92
+ data-search-input-clear>&times;</button>
93
+ </div>
94
+ <compodoc-menu></compodoc-menu>
74
95
  </div>
75
96
 
76
97
  <div class="container-fluid main">
@@ -97,6 +118,10 @@
97
118
 
98
119
 
99
120
 
121
+
122
+
123
+
124
+
100
125
 
101
126
 
102
127
  <ol class="breadcrumb">
@@ -112,7 +137,10 @@
112
137
  <td class="col-md-4">
113
138
  <ul class="index-list">
114
139
  <li>
115
- <a href="#initGenerator" title="src/generators/init/generator.ts" ><b>initGenerator</b>&nbsp;&nbsp;&nbsp;(src/.../generator.ts)</a>
140
+ <a href="#initGenerator" title="src/generators/init/generator.ts" class="reference-link "><span class="reference-badge reference-badge--function" aria-hidden="true">F</span><span class="reference-link-label"><b>initGenerator</b>&nbsp;&nbsp;&nbsp;(src/.../generator.ts)</span></a>
141
+ </li>
142
+ <li>
143
+ <a href="#resolvePackageDir" title="src/generators/init/generator.ts" class="reference-link "><span class="reference-badge reference-badge--function" aria-hidden="true">F</span><span class="reference-link-label"><b>resolvePackageDir</b>&nbsp;&nbsp;&nbsp;(src/.../generator.ts)</span></a>
116
144
  </li>
117
145
  </ul>
118
146
  </td>
@@ -136,7 +164,7 @@
136
164
  </tr>
137
165
  <tr>
138
166
  <td class="col-md-4">
139
- <code>initGenerator(tree: Tree, options: InitGeneratorSchema)</code>
167
+ <code>initGenerator(tree: <a href="https://angular.dev/api/aria/tree/Tree" target="_blank">Tree</a>, options: InitGeneratorSchema)</code>
140
168
  </td>
141
169
  </tr>
142
170
 
@@ -161,7 +189,7 @@
161
189
  <tr>
162
190
  <td>tree</td>
163
191
  <td>
164
- <code>Tree</code>
192
+ <code><a href="https://angular.dev/api/aria/tree/Tree" target="_blank" >Tree</a></code>
165
193
  </td>
166
194
 
167
195
  <td>
@@ -189,9 +217,88 @@
189
217
  </tr>
190
218
  </tbody>
191
219
  </table>
220
+ <table class="table table-sm table-bordered">
221
+ <tbody>
222
+ <tr>
223
+ <td class="col-md-4">
224
+ <a name="resolvePackageDir"></a>
225
+ <span class="name">
226
+ <span ><b>resolvePackageDir</b></span>
227
+ <a href="#resolvePackageDir"><span class="icon ion-ios-link"></span></a>
228
+ </span>
229
+ </td>
230
+ </tr>
231
+ <tr>
232
+ <td class="col-md-4">
233
+ <code>resolvePackageDir(root: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>, packageName: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank">string</a>)</code>
234
+ </td>
235
+ </tr>
236
+
237
+
238
+
239
+
240
+ <tr>
241
+ <td class="col-md-4">
242
+ <div class="io-description"><p>Resolves the directory of a package installed in the workspace. The lookup starts at the
243
+ workspace root, not at this package: with an isolated node_modules layout (pnpm) or Yarn PnP
244
+ the peer is not resolvable from here. The plain node_modules path is the fallback for packages
245
+ whose <code>exports</code> map hides their package.json.</p>
246
+ </div>
247
+
248
+ <div class="io-description">
249
+ <b>Parameters :</b>
250
+
251
+ <table class="params">
252
+ <thead>
253
+ <tr>
254
+ <td>Name</td>
255
+ <td>Type</td>
256
+ <td>Optional</td>
257
+ </tr>
258
+ </thead>
259
+ <tbody>
260
+ <tr>
261
+ <td>root</td>
262
+ <td>
263
+ <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
264
+ </td>
265
+
266
+ <td>
267
+ No
268
+ </td>
269
+
270
+
271
+ </tr>
272
+ <tr>
273
+ <td>packageName</td>
274
+ <td>
275
+ <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
276
+ </td>
277
+
278
+ <td>
279
+ No
280
+ </td>
281
+
282
+
283
+ </tr>
284
+ </tbody>
285
+ </table>
286
+ </div>
287
+ <div class="io-description">
288
+ <b>Returns : </b> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
289
+
290
+ </div>
291
+ <div class="io-description">
292
+
293
+ </div>
294
+ </td>
295
+ </tr>
296
+ </tbody>
297
+ </table>
192
298
  </section>
193
299
 
194
300
 
301
+
195
302
  </div><div class="search-results">
196
303
  <div class="has-results">
197
304
  <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
@@ -224,6 +331,24 @@
224
331
 
225
332
  <script>
226
333
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
334
+ var updateDarkModeSwitchOffset = function () {
335
+ var content = document.querySelector('.content');
336
+ var scrollbarWidth = 0;
337
+
338
+ if (content) {
339
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
340
+ }
341
+
342
+ document.documentElement.style.setProperty(
343
+ '--content-scrollbar-width',
344
+ scrollbarWidth + 'px'
345
+ );
346
+ };
347
+
348
+ updateDarkModeSwitchOffset();
349
+ requestAnimationFrame(updateDarkModeSwitchOffset);
350
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
351
+
227
352
  checkToggle(darkModeState);
228
353
  if ($darkModeToggleSwitchers.length > 0) {
229
354
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -239,14 +364,12 @@
239
364
  <script src="../js/libs/lit-html.js"></script>
240
365
 
241
366
  <script src="../js/menu-wc.js" defer></script>
242
- <script nomodule src="../js/menu-wc_es5.js" defer></script>
243
367
 
244
368
  <script src="../js/libs/bootstrap-native.js"></script>
245
369
 
246
370
  <script src="../js/libs/es6-shim.min.js"></script>
247
371
  <script src="../js/libs/EventDispatcher.js"></script>
248
372
  <script src="../js/libs/promise.min.js"></script>
249
- <script src="../js/libs/zepto.min.js"></script>
250
373
 
251
374
  <script src="../js/compodoc.js"></script>
252
375