@ng-doc/app 16.7.1 → 16.8.0

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 (159) hide show
  1. package/components/playground/base-playground.d.ts +12 -5
  2. package/components/playground/playground-demo/playground-demo.component.d.ts +2 -1
  3. package/components/playground/playground-form.d.ts +1 -2
  4. package/components/playground/playground-properties/playground-properties.component.d.ts +3 -1
  5. package/components/playground/playground-property/playground-property.component.d.ts +3 -2
  6. package/components/playground/playground.component.d.ts +11 -7
  7. package/esm2022/components/code/code.component.mjs +5 -7
  8. package/esm2022/components/page/page.component.mjs +5 -28
  9. package/esm2022/components/playground/base-playground.mjs +37 -5
  10. package/esm2022/components/playground/playground-demo/playground-demo.component.mjs +14 -12
  11. package/esm2022/components/playground/playground-form.mjs +1 -1
  12. package/esm2022/components/playground/playground-properties/playground-properties.component.mjs +12 -5
  13. package/esm2022/components/playground/playground-property/playground-property.component.mjs +12 -12
  14. package/esm2022/components/playground/playground.component.mjs +34 -14
  15. package/esm2022/interfaces/index.mjs +2 -1
  16. package/esm2022/interfaces/page-processor.mjs +2 -0
  17. package/esm2022/interfaces/processor-options.mjs +1 -1
  18. package/esm2022/interfaces/type-control.mjs +1 -1
  19. package/esm2022/modules/root/ng-doc.module.mjs +3 -1
  20. package/esm2022/processors/default-processors.mjs +18 -0
  21. package/esm2022/processors/index.mjs +4 -11
  22. package/esm2022/processors/{code-processor → page-processor}/index.mjs +2 -2
  23. package/esm2022/processors/{icon-processor/ng-doc-app-processors-icon-processor.mjs → page-processor/ng-doc-app-processors-page-processor.mjs} +1 -1
  24. package/esm2022/processors/page-processor/page-processor.directive.mjs +52 -0
  25. package/esm2022/processors/processors/blockquote.processor.mjs +12 -0
  26. package/esm2022/processors/processors/code.processor.mjs +15 -0
  27. package/esm2022/processors/processors/demo-pane.processor.mjs +12 -0
  28. package/esm2022/processors/processors/demo.processor.mjs +12 -0
  29. package/esm2022/processors/processors/icon.processor.mjs +12 -0
  30. package/esm2022/processors/processors/index.mjs +10 -0
  31. package/esm2022/processors/processors/link.processor.mjs +13 -0
  32. package/esm2022/processors/processors/ng-doc-app-processors-processors.mjs +5 -0
  33. package/esm2022/processors/processors/playground.processor.mjs +19 -0
  34. package/esm2022/processors/processors/tabs.processor.mjs +25 -0
  35. package/esm2022/processors/processors/tooltip.processor.mjs +58 -0
  36. package/esm2022/tokens/index.mjs +2 -1
  37. package/esm2022/tokens/page-processor.mjs +17 -0
  38. package/esm2022/type-controls/boolean-control/boolean-control.component.mjs +7 -1
  39. package/esm2022/type-controls/number-control/number-control.component.mjs +8 -10
  40. package/esm2022/type-controls/string-control/string-control.component.mjs +8 -10
  41. package/esm2022/type-controls/type-alias-control/type-alias-control.component.mjs +8 -10
  42. package/fesm2022/ng-doc-app-components-code.mjs +4 -6
  43. package/fesm2022/ng-doc-app-components-code.mjs.map +1 -1
  44. package/fesm2022/ng-doc-app-components-page.mjs +4 -27
  45. package/fesm2022/ng-doc-app-components-page.mjs.map +1 -1
  46. package/fesm2022/ng-doc-app-components-playground.mjs +121 -64
  47. package/fesm2022/ng-doc-app-components-playground.mjs.map +1 -1
  48. package/fesm2022/ng-doc-app-modules-root.mjs +2 -0
  49. package/fesm2022/ng-doc-app-modules-root.mjs.map +1 -1
  50. package/fesm2022/ng-doc-app-processors-page-processor.mjs +58 -0
  51. package/fesm2022/ng-doc-app-processors-page-processor.mjs.map +1 -0
  52. package/fesm2022/ng-doc-app-processors-processors.mjs +183 -0
  53. package/fesm2022/ng-doc-app-processors-processors.mjs.map +1 -0
  54. package/fesm2022/ng-doc-app-processors.mjs +22 -10
  55. package/fesm2022/ng-doc-app-processors.mjs.map +1 -1
  56. package/fesm2022/ng-doc-app-tokens.mjs +17 -1
  57. package/fesm2022/ng-doc-app-tokens.mjs.map +1 -1
  58. package/fesm2022/ng-doc-app-type-controls-boolean-control.mjs +6 -0
  59. package/fesm2022/ng-doc-app-type-controls-boolean-control.mjs.map +1 -1
  60. package/fesm2022/ng-doc-app-type-controls-number-control.mjs +7 -9
  61. package/fesm2022/ng-doc-app-type-controls-number-control.mjs.map +1 -1
  62. package/fesm2022/ng-doc-app-type-controls-string-control.mjs +7 -9
  63. package/fesm2022/ng-doc-app-type-controls-string-control.mjs.map +1 -1
  64. package/fesm2022/ng-doc-app-type-controls-type-alias-control.mjs +7 -9
  65. package/fesm2022/ng-doc-app-type-controls-type-alias-control.mjs.map +1 -1
  66. package/interfaces/index.d.ts +1 -0
  67. package/interfaces/page-processor.d.ts +28 -0
  68. package/interfaces/processor-options.d.ts +2 -3
  69. package/interfaces/type-control.d.ts +2 -2
  70. package/package.json +14 -62
  71. package/processors/default-processors.d.ts +2 -0
  72. package/processors/index.d.ts +3 -10
  73. package/processors/page-processor/index.d.ts +1 -0
  74. package/processors/page-processor/page-processor.directive.d.ts +19 -0
  75. package/processors/processors/blockquote.processor.d.ts +3 -0
  76. package/processors/processors/code.processor.d.ts +3 -0
  77. package/processors/processors/demo-pane.processor.d.ts +3 -0
  78. package/processors/processors/demo.processor.d.ts +3 -0
  79. package/processors/processors/icon.processor.d.ts +3 -0
  80. package/processors/processors/index.d.ts +9 -0
  81. package/processors/processors/link.processor.d.ts +3 -0
  82. package/processors/processors/playground.processor.d.ts +3 -0
  83. package/processors/processors/tabs.processor.d.ts +3 -0
  84. package/processors/{tooltip-processor/tooltip-wrapper.component.d.ts → processors/tooltip.processor.d.ts} +4 -1
  85. package/tokens/index.d.ts +1 -0
  86. package/tokens/page-processor.d.ts +11 -0
  87. package/type-controls/boolean-control/boolean-control.component.d.ts +4 -1
  88. package/type-controls/number-control/number-control.component.d.ts +3 -4
  89. package/type-controls/string-control/string-control.component.d.ts +2 -3
  90. package/type-controls/type-alias-control/type-alias-control.component.d.ts +3 -4
  91. package/esm2022/processors/blockquote-processor/blockquote-processor.directive.mjs +0 -30
  92. package/esm2022/processors/blockquote-processor/index.mjs +0 -2
  93. package/esm2022/processors/blockquote-processor/ng-doc-app-processors-blockquote-processor.mjs +0 -5
  94. package/esm2022/processors/code-processor/code-processor.directive.mjs +0 -35
  95. package/esm2022/processors/code-processor/ng-doc-app-processors-code-processor.mjs +0 -5
  96. package/esm2022/processors/demo-pane-processor/demo-pane-processor.directive.mjs +0 -38
  97. package/esm2022/processors/demo-pane-processor/index.mjs +0 -2
  98. package/esm2022/processors/demo-pane-processor/ng-doc-app-processors-demo-pane-processor.mjs +0 -5
  99. package/esm2022/processors/demo-processor/demo-processor.directive.mjs +0 -38
  100. package/esm2022/processors/demo-processor/index.mjs +0 -2
  101. package/esm2022/processors/demo-processor/ng-doc-app-processors-demo-processor.mjs +0 -5
  102. package/esm2022/processors/html-processor/html-processor.directive.mjs +0 -44
  103. package/esm2022/processors/html-processor/index.mjs +0 -2
  104. package/esm2022/processors/html-processor/ng-doc-app-processors-html-processor.mjs +0 -5
  105. package/esm2022/processors/icon-processor/icon-processor.directive.mjs +0 -30
  106. package/esm2022/processors/icon-processor/index.mjs +0 -2
  107. package/esm2022/processors/link-processor/index.mjs +0 -2
  108. package/esm2022/processors/link-processor/link-processor.directive.mjs +0 -31
  109. package/esm2022/processors/link-processor/ng-doc-app-processors-link-processor.mjs +0 -5
  110. package/esm2022/processors/playground-processor/index.mjs +0 -2
  111. package/esm2022/processors/playground-processor/ng-doc-app-processors-playground-processor.mjs +0 -5
  112. package/esm2022/processors/playground-processor/playground-processor.directive.mjs +0 -36
  113. package/esm2022/processors/tabs-processor/index.mjs +0 -2
  114. package/esm2022/processors/tabs-processor/ng-doc-app-processors-tabs-processor.mjs +0 -5
  115. package/esm2022/processors/tabs-processor/tabs-processor.directive.mjs +0 -44
  116. package/esm2022/processors/tooltip-processor/index.mjs +0 -3
  117. package/esm2022/processors/tooltip-processor/ng-doc-app-processors-tooltip-processor.mjs +0 -5
  118. package/esm2022/processors/tooltip-processor/tooltip-processor.directive.mjs +0 -30
  119. package/esm2022/processors/tooltip-processor/tooltip-wrapper.component.mjs +0 -49
  120. package/fesm2022/ng-doc-app-processors-blockquote-processor.mjs +0 -36
  121. package/fesm2022/ng-doc-app-processors-blockquote-processor.mjs.map +0 -1
  122. package/fesm2022/ng-doc-app-processors-code-processor.mjs +0 -41
  123. package/fesm2022/ng-doc-app-processors-code-processor.mjs.map +0 -1
  124. package/fesm2022/ng-doc-app-processors-demo-pane-processor.mjs +0 -44
  125. package/fesm2022/ng-doc-app-processors-demo-pane-processor.mjs.map +0 -1
  126. package/fesm2022/ng-doc-app-processors-demo-processor.mjs +0 -44
  127. package/fesm2022/ng-doc-app-processors-demo-processor.mjs.map +0 -1
  128. package/fesm2022/ng-doc-app-processors-html-processor.mjs +0 -50
  129. package/fesm2022/ng-doc-app-processors-html-processor.mjs.map +0 -1
  130. package/fesm2022/ng-doc-app-processors-icon-processor.mjs +0 -36
  131. package/fesm2022/ng-doc-app-processors-icon-processor.mjs.map +0 -1
  132. package/fesm2022/ng-doc-app-processors-link-processor.mjs +0 -37
  133. package/fesm2022/ng-doc-app-processors-link-processor.mjs.map +0 -1
  134. package/fesm2022/ng-doc-app-processors-playground-processor.mjs +0 -42
  135. package/fesm2022/ng-doc-app-processors-playground-processor.mjs.map +0 -1
  136. package/fesm2022/ng-doc-app-processors-tabs-processor.mjs +0 -50
  137. package/fesm2022/ng-doc-app-processors-tabs-processor.mjs.map +0 -1
  138. package/fesm2022/ng-doc-app-processors-tooltip-processor.mjs +0 -81
  139. package/fesm2022/ng-doc-app-processors-tooltip-processor.mjs.map +0 -1
  140. package/processors/blockquote-processor/blockquote-processor.directive.d.ts +0 -13
  141. package/processors/blockquote-processor/index.d.ts +0 -1
  142. package/processors/code-processor/code-processor.directive.d.ts +0 -14
  143. package/processors/code-processor/index.d.ts +0 -1
  144. package/processors/demo-pane-processor/demo-pane-processor.directive.d.ts +0 -14
  145. package/processors/demo-pane-processor/index.d.ts +0 -1
  146. package/processors/demo-processor/demo-processor.directive.d.ts +0 -14
  147. package/processors/demo-processor/index.d.ts +0 -1
  148. package/processors/html-processor/html-processor.directive.d.ts +0 -20
  149. package/processors/html-processor/index.d.ts +0 -1
  150. package/processors/icon-processor/icon-processor.directive.d.ts +0 -13
  151. package/processors/icon-processor/index.d.ts +0 -1
  152. package/processors/link-processor/index.d.ts +0 -1
  153. package/processors/link-processor/link-processor.directive.d.ts +0 -13
  154. package/processors/playground-processor/index.d.ts +0 -1
  155. package/processors/playground-processor/playground-processor.directive.d.ts +0 -13
  156. package/processors/tabs-processor/index.d.ts +0 -1
  157. package/processors/tabs-processor/tabs-processor.directive.d.ts +0 -15
  158. package/processors/tooltip-processor/index.d.ts +0 -2
  159. package/processors/tooltip-processor/tooltip-processor.directive.d.ts +0 -13
@@ -1,44 +0,0 @@
1
- import { Directive, ElementRef, ViewContainerRef } from '@angular/core';
2
- import { NgDocTabsComponent } from '@ng-doc/app/components/tabs';
3
- import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
4
- import * as i0 from "@angular/core";
5
- class NgDocTabsProcessorDirective extends NgDocHtmlProcessor {
6
- constructor(elementRef, viewContainerRef) {
7
- super(elementRef, viewContainerRef, `ng-doc-tab`, NgDocTabsComponent);
8
- this.elementRef = elementRef;
9
- this.viewContainerRef = viewContainerRef;
10
- }
11
- extractComponentOptions(element, root) {
12
- const group = element.getAttribute('group') ?? '';
13
- const tabs = Array.from(root.querySelectorAll(`ng-doc-tab[group="${group}"]`));
14
- const mappedTabs = tabs.map((tab) => this.mapTabs(tab));
15
- tabs.forEach((tab) => tab.remove());
16
- return {
17
- inputs: {
18
- tabs: mappedTabs,
19
- },
20
- };
21
- }
22
- replaceElement(element) {
23
- const anchor = document.createElement('div');
24
- return element.parentNode?.insertBefore(anchor, element) ?? element;
25
- }
26
- mapTabs(element) {
27
- return {
28
- title: element.getAttribute('name') ?? '',
29
- content: element,
30
- active: element.hasAttribute('active'),
31
- };
32
- }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTabsProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
34
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocTabsProcessorDirective, isStandalone: true, selector: "[ngDocTabsProcessor]", usesInheritance: true, ngImport: i0 }); }
35
- }
36
- export { NgDocTabsProcessorDirective };
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTabsProcessorDirective, decorators: [{
38
- type: Directive,
39
- args: [{
40
- selector: '[ngDocTabsProcessor]',
41
- standalone: true,
42
- }]
43
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
44
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy1wcm9jZXNzb3IuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hcHAvcHJvY2Vzc29ycy90YWJzLXByb2Nlc3Nvci90YWJzLXByb2Nlc3Nvci5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxVQUFVLEVBQUUsZ0JBQWdCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdEUsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sNkJBQTZCLENBQUM7QUFFL0QsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sdUNBQXVDLENBQUM7O0FBRXpFLE1BSWEsMkJBQTRCLFNBQVEsa0JBQXNDO0lBQ3RGLFlBQzZCLFVBQW1DLEVBQ25DLGdCQUFrQztRQUU5RCxLQUFLLENBQUMsVUFBVSxFQUFFLGdCQUFnQixFQUFFLFlBQVksRUFBRSxrQkFBa0IsQ0FBQyxDQUFDO1FBSDFDLGVBQVUsR0FBVixVQUFVLENBQXlCO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W5zZXJ0QmVmb3JlKGFuY2hvciwgZWxlbWVudCkgPz8gZWxlbWVudDtcblx0fVxuXG5cdHByaXZhdGUgbWFwVGFicyhlbGVtZW50OiBFbGVtZW50KTogTmdEb2NUYWIge1xuXHRcdHJldHVybiB7XG5cdFx0XHR0aXRsZTogZWxlbWVudC5nZXRBdHRyaWJ1dGUoJ25hbWUnKSA/PyAnJyxcblx0XHRcdGNvbnRlbnQ6IGVsZW1lbnQsXG5cdFx0XHRhY3RpdmU6IGVsZW1lbnQuaGFzQXR0cmlidXRlKCdhY3RpdmUnKSxcblx0XHR9O1xuXHR9XG59XG4iXX0=
@@ -1,3 +0,0 @@
1
- export * from './tooltip-processor.directive';
2
- export * from './tooltip-wrapper.component';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9saWJzL2FwcC9wcm9jZXNzb3JzL3Rvb2x0aXAtcHJvY2Vzc29yL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyw2QkFBNkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vdG9vbHRpcC1wcm9jZXNzb3IuZGlyZWN0aXZlJztcbmV4cG9ydCAqIGZyb20gJy4vdG9vbHRpcC13cmFwcGVyLmNvbXBvbmVudCc7XG4iXX0=
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctZG9jLWFwcC1wcm9jZXNzb3JzLXRvb2x0aXAtcHJvY2Vzc29yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hcHAvcHJvY2Vzc29ycy90b29sdGlwLXByb2Nlc3Nvci9uZy1kb2MtYXBwLXByb2Nlc3NvcnMtdG9vbHRpcC1wcm9jZXNzb3IudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
@@ -1,30 +0,0 @@
1
- import { Directive, ElementRef, ViewContainerRef } from '@angular/core';
2
- import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
3
- import { NgDocTooltipWrapperComponent } from './tooltip-wrapper.component';
4
- import * as i0 from "@angular/core";
5
- class NgDocTooltipProcessorDirective extends NgDocHtmlProcessor {
6
- constructor(elementRef, viewContainerRef) {
7
- super(elementRef, viewContainerRef, `[ngDocTooltip]`, NgDocTooltipWrapperComponent);
8
- this.elementRef = elementRef;
9
- this.viewContainerRef = viewContainerRef;
10
- }
11
- extractComponentOptions(element) {
12
- return {
13
- inputs: {
14
- content: element.getAttribute('ngDocTooltip') ?? '',
15
- },
16
- content: [[element.cloneNode(true)]],
17
- };
18
- }
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTooltipProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
20
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocTooltipProcessorDirective, isStandalone: true, selector: "[ngDocTooltipProcessor]", usesInheritance: true, ngImport: i0 }); }
21
- }
22
- export { NgDocTooltipProcessorDirective };
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTooltipProcessorDirective, decorators: [{
24
- type: Directive,
25
- args: [{
26
- selector: '[ngDocTooltipProcessor]',
27
- standalone: true,
28
- }]
29
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC1wcm9jZXNzb3IuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9hcHAvcHJvY2Vzc29ycy90b29sdGlwLXByb2Nlc3Nvci90b29sdGlwLXByb2Nlc3Nvci5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFNBQVMsRUFBRSxVQUFVLEVBQUUsZ0JBQWdCLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFFdEUsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sdUNBQXVDLENBQUM7QUFFekUsT0FBTyxFQUFDLDRCQUE0QixFQUFDLE1BQU0sNkJBQTZCLENBQUM7O0FBRXpFLE1BSWEsOEJBQStCLFNBQVEsa0JBQWdEO0lBQ25HLFlBQzZCLFVBQW1DLEVBQ25DLGdCQUFrQztRQUU5RCxLQUFLLENBQUMsVUFBVSxFQUFFLGdCQUFnQixFQUFFLGdCQUFnQixFQUFFLDRCQUE0QixDQUFDLENBQUM7UUFIeEQsZUFBVSxHQUFWLFVBQVUsQ0FBeUI7UUFDbkMscUJBQWdCLEdBQWhCLGdCQUFnQixDQUFrQjtJQUcvRCxDQUFDO0lBRWtCLHVCQUF1QixDQUFDLE9BQWdCO1FBQzFELE9BQU87WUFDTixNQUFNLEVBQUU7Z0JBQ1AsT0FBTyxFQUFFLE9BQU8sQ0FBQyxZQUFZLENBQUMsY0FBYyxDQUFDLElBQUksRUFBRTthQUNuRDtZQUNELE9BQU8sRUFBRSxDQU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yaWRlIHJlYWRvbmx5IHZpZXdDb250YWluZXJSZWY6IFZpZXdDb250YWluZXJSZWYsXG5cdCkge1xuXHRcdHN1cGVyKGVsZW1lbnRSZWYsIHZpZXdDb250YWluZXJSZWYsIGBbbmdEb2NUb29sdGlwXWAsIE5nRG9jVG9vbHRpcFdyYXBwZXJDb21wb25lbnQpO1xuXHR9XG5cblx0cHJvdGVjdGVkIG92ZXJyaWRlIGV4dHJhY3RDb21wb25lbnRPcHRpb25zKGVsZW1lbnQ6IEVsZW1lbnQpOiBOZ0RvY1Byb2Nlc3Nvck9wdGlvbnM8TmdEb2NUb29sdGlwV3JhcHBlckNvbXBvbmVudD4ge1xuXHRcdHJldHVybiB7XG5cdFx0XHRpbnB1dHM6IHtcblx0XHRcdFx0Y29udGVudDogZWxlbWVudC5nZXRBdHRyaWJ1dGUoJ25nRG9jVG9vbHRpcCcpID8/ICcnLFxuXHRcdFx0fSxcblx0XHRcdGNvbnRlbnQ6IFtbZWxlbWVudC5jbG9uZU5vZGUodHJ1ZSldXSxcblx0XHR9O1xuXHR9XG59XG4iXX0=
@@ -1,49 +0,0 @@
1
- import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Input, ViewChild, } from '@angular/core';
2
- import { NgDocTooltipDirective } from '@ng-doc/ui-kit';
3
- import * as i0 from "@angular/core";
4
- class NgDocTooltipWrapperComponent {
5
- constructor(changeDetectorRef) {
6
- this.changeDetectorRef = changeDetectorRef;
7
- this.tooltipElement = null;
8
- }
9
- ngAfterViewInit() {
10
- if (this.contentProjection) {
11
- const element = this.contentProjection.nativeElement.querySelector('[ngDocTooltip]');
12
- this.tooltipElement = element instanceof HTMLElement ? element : null;
13
- this.changeDetectorRef.detectChanges();
14
- }
15
- }
16
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTooltipWrapperComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
17
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.0", type: NgDocTooltipWrapperComponent, isStandalone: true, selector: "ng-doc-tooltip-wrapper", inputs: { content: "content" }, viewQueries: [{ propertyName: "contentProjection", first: true, predicate: ["contentProjection"], descendants: true, read: ElementRef, static: true }], ngImport: i0, template: `
18
- <div
19
- class="content-projection"
20
- [ngDocTooltip]="content ?? ''"
21
- [displayOrigin]="tooltipElement ?? contentProjection"
22
- [pointerOrigin]="tooltipElement ?? contentProjection"
23
- #contentProjection
24
- >
25
- <ng-content></ng-content>
26
- </div>
27
- `, isInline: true, styles: [".content-projection{display:unset}\n"], dependencies: [{ kind: "directive", type: NgDocTooltipDirective, selector: "[ngDocTooltip]", inputs: ["ngDocTooltip", "delay", "displayOrigin", "pointerOrigin", "positions", "canOpen", "panelClass", "minHeight", "maxHeight", "height", "minWidth", "maxWidth", "width"], outputs: ["beforeOpen", "afterOpen", "beforeClose", "afterClose"], exportAs: ["ngDocTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
28
- }
29
- export { NgDocTooltipWrapperComponent };
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTooltipWrapperComponent, decorators: [{
31
- type: Component,
32
- args: [{ selector: 'ng-doc-tooltip-wrapper', template: `
33
- <div
34
- class="content-projection"
35
- [ngDocTooltip]="content ?? ''"
36
- [displayOrigin]="tooltipElement ?? contentProjection"
37
- [pointerOrigin]="tooltipElement ?? contentProjection"
38
- #contentProjection
39
- >
40
- <ng-content></ng-content>
41
- </div>
42
- `, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgDocTooltipDirective], styles: [".content-projection{display:unset}\n"] }]
43
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { content: [{
44
- type: Input
45
- }], contentProjection: [{
46
- type: ViewChild,
47
- args: ['contentProjection', { read: ElementRef, static: true }]
48
- }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dGlwRWxlbWVudCA9IGVsZW1lbnQgaW5zdGFuY2VvZiBIVE1MRWxlbWVudCA/IGVsZW1lbnQgOiBudWxsO1xuXG5cdFx0XHR0aGlzLmNoYW5nZURldGVjdG9yUmVmLmRldGVjdENoYW5nZXMoKTtcblx0XHR9XG5cdH1cbn1cbiJdfQ==
@@ -1,36 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive } from '@angular/core';
3
- import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
4
- import { NgDocBlockquoteComponent } from '@ng-doc/ui-kit';
5
-
6
- class NgDocBlockquoteProcessorDirective extends NgDocHtmlProcessor {
7
- constructor(elementRef, viewContainerRef) {
8
- super(elementRef, viewContainerRef, `ng-doc-blockquote`, NgDocBlockquoteComponent);
9
- this.elementRef = elementRef;
10
- this.viewContainerRef = viewContainerRef;
11
- }
12
- extractComponentOptions(element) {
13
- return {
14
- content: [Array.from(element.childNodes)],
15
- inputs: {
16
- type: element.getAttribute('type') || 'default',
17
- },
18
- };
19
- }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBlockquoteProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocBlockquoteProcessorDirective, isStandalone: true, selector: "[ngDocBlockquoteProcessor]", usesInheritance: true, ngImport: i0 }); }
22
- }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocBlockquoteProcessorDirective, decorators: [{
24
- type: Directive,
25
- args: [{
26
- selector: '[ngDocBlockquoteProcessor]',
27
- standalone: true,
28
- }]
29
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
30
-
31
- /**
32
- * Generated bundle index. Do not edit.
33
- */
34
-
35
- export { NgDocBlockquoteProcessorDirective };
36
- //# sourceMappingURL=ng-doc-app-processors-blockquote-processor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-doc-app-processors-blockquote-processor.mjs","sources":["../../../../libs/app/processors/blockquote-processor/blockquote-processor.directive.ts","../../../../libs/app/processors/blockquote-processor/ng-doc-app-processors-blockquote-processor.ts"],"sourcesContent":["import {Directive, ElementRef, ViewContainerRef} from '@angular/core';\nimport {NgDocProcessorOptions} from '@ng-doc/app/interfaces';\nimport {NgDocHtmlProcessor} from '@ng-doc/app/processors/html-processor';\nimport {NgDocBlockquoteComponent, NgDocBlockquoteType} from '@ng-doc/ui-kit';\n\n@Directive({\n\tselector: '[ngDocBlockquoteProcessor]',\n\tstandalone: true,\n})\nexport class NgDocBlockquoteProcessorDirective extends NgDocHtmlProcessor<NgDocBlockquoteComponent> {\n\tconstructor(\n\t\tprotected override readonly elementRef: ElementRef<HTMLElement>,\n\t\tprotected override readonly viewContainerRef: ViewContainerRef,\n\t) {\n\t\tsuper(elementRef, viewContainerRef, `ng-doc-blockquote`, NgDocBlockquoteComponent);\n\t}\n\n\tprotected override extractComponentOptions(element: Element): NgDocProcessorOptions<NgDocBlockquoteComponent> {\n\t\treturn {\n\t\t\tcontent: [Array.from(element.childNodes)],\n\t\t\tinputs: {\n\t\t\t\ttype: (element.getAttribute('type') as NgDocBlockquoteType) || 'default',\n\t\t\t},\n\t\t};\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,MAIa,iCAAkC,SAAQ,kBAA4C,CAAA;IAClG,WAC6B,CAAA,UAAmC,EACnC,gBAAkC,EAAA;QAE9D,KAAK,CAAC,UAAU,EAAE,gBAAgB,EAAE,CAAmB,iBAAA,CAAA,EAAE,wBAAwB,CAAC,CAAC;QAHvD,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;KAG9D;AAEkB,IAAA,uBAAuB,CAAC,OAAgB,EAAA;QAC1D,OAAO;YACN,OAAO,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;AACzC,YAAA,MAAM,EAAE;gBACP,IAAI,EAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAyB,IAAI,SAAS;AACxE,aAAA;SACD,CAAC;KACF;8GAfW,iCAAiC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAjC,iCAAiC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAJ7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
@@ -1,41 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive } from '@angular/core';
3
- import { NgDocCodeComponent } from '@ng-doc/app/components/code';
4
- import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
5
-
6
- class NgDocCodeProcessorDirective extends NgDocHtmlProcessor {
7
- constructor(elementRef, viewContainerRef) {
8
- super(elementRef, viewContainerRef, `pre code`, NgDocCodeComponent);
9
- this.elementRef = elementRef;
10
- this.viewContainerRef = viewContainerRef;
11
- }
12
- replaceElement(element) {
13
- return element.closest('pre') ?? element;
14
- }
15
- extractComponentOptions(element) {
16
- return {
17
- inputs: {
18
- copyButton: element.getAttribute('copyButton') !== 'false',
19
- name: element.getAttribute('name') || undefined,
20
- lineNumbers: element.getAttribute('lineNumbers') !== 'false',
21
- },
22
- content: [[element.closest('pre') ?? element]],
23
- };
24
- }
25
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
26
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocCodeProcessorDirective, isStandalone: true, selector: "[ngDocCodeProcessor]", usesInheritance: true, ngImport: i0 }); }
27
- }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocCodeProcessorDirective, decorators: [{
29
- type: Directive,
30
- args: [{
31
- selector: '[ngDocCodeProcessor]',
32
- standalone: true,
33
- }]
34
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
35
-
36
- /**
37
- * Generated bundle index. Do not edit.
38
- */
39
-
40
- export { NgDocCodeProcessorDirective };
41
- //# sourceMappingURL=ng-doc-app-processors-code-processor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-doc-app-processors-code-processor.mjs","sources":["../../../../libs/app/processors/code-processor/code-processor.directive.ts","../../../../libs/app/processors/code-processor/ng-doc-app-processors-code-processor.ts"],"sourcesContent":["import {Directive, ElementRef, ViewContainerRef} from '@angular/core';\nimport {NgDocCodeComponent} from '@ng-doc/app/components/code';\nimport {NgDocProcessorOptions} from '@ng-doc/app/interfaces';\nimport {NgDocHtmlProcessor} from '@ng-doc/app/processors/html-processor';\n\n@Directive({\n\tselector: '[ngDocCodeProcessor]',\n\tstandalone: true,\n})\nexport class NgDocCodeProcessorDirective extends NgDocHtmlProcessor<NgDocCodeComponent> {\n\tconstructor(\n\t\tprotected override readonly elementRef: ElementRef<HTMLElement>,\n\t\tprotected override readonly viewContainerRef: ViewContainerRef,\n\t) {\n\t\tsuper(elementRef, viewContainerRef, `pre code`, NgDocCodeComponent);\n\t}\n\n\tprotected override replaceElement(element: Element): Element {\n\t\treturn element.closest('pre') ?? element;\n\t}\n\n\tprotected override extractComponentOptions(element: Element): NgDocProcessorOptions<NgDocCodeComponent> {\n\t\treturn {\n\t\t\tinputs: {\n\t\t\t\tcopyButton: element.getAttribute('copyButton') !== 'false',\n\t\t\t\tname: element.getAttribute('name') || undefined,\n\t\t\t\tlineNumbers: element.getAttribute('lineNumbers') !== 'false',\n\t\t\t},\n\t\t\tcontent: [[element.closest('pre') ?? element]],\n\t\t};\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,MAIa,2BAA4B,SAAQ,kBAAsC,CAAA;IACtF,WAC6B,CAAA,UAAmC,EACnC,gBAAkC,EAAA;QAE9D,KAAK,CAAC,UAAU,EAAE,gBAAgB,EAAE,CAAU,QAAA,CAAA,EAAE,kBAAkB,CAAC,CAAC;QAHxC,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;KAG9D;AAEkB,IAAA,cAAc,CAAC,OAAgB,EAAA;QACjD,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC;KACzC;AAEkB,IAAA,uBAAuB,CAAC,OAAgB,EAAA;QAC1D,OAAO;AACN,YAAA,MAAM,EAAE;gBACP,UAAU,EAAE,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,KAAK,OAAO;gBAC1D,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,SAAS;gBAC/C,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,KAAK,OAAO;AAC5D,aAAA;AACD,YAAA,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,CAAC;SAC9C,CAAC;KACF;8GArBW,2BAA2B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAJvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
@@ -1,44 +0,0 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import * as i0 from '@angular/core';
3
- import { ElementRef, ViewContainerRef, Directive } from '@angular/core';
4
- import { NgDocDemoPaneComponent } from '@ng-doc/app/components/demo-pane';
5
- import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
6
- import { UntilDestroy } from '@ngneat/until-destroy';
7
-
8
- /** Processor replaces html node with `NgDocDemoPaneComponent` to display demo */
9
- let NgDocDemoPaneProcessorDirective = class NgDocDemoPaneProcessorDirective extends NgDocHtmlProcessor {
10
- constructor(elementRef, viewContainerRef) {
11
- super(elementRef, viewContainerRef, `ng-doc-demo-pane`, NgDocDemoPaneComponent);
12
- this.elementRef = elementRef;
13
- this.viewContainerRef = viewContainerRef;
14
- }
15
- extractComponentOptions(element) {
16
- return {
17
- inputs: {
18
- componentName: element.getAttribute('componentName') || undefined,
19
- options: JSON.parse(element.querySelector('#options')?.textContent ?? '') || {},
20
- },
21
- };
22
- }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocDemoPaneProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
24
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocDemoPaneProcessorDirective, isStandalone: true, selector: "[ngDocDemoPaneProcessor]", usesInheritance: true, ngImport: i0 }); }
25
- };
26
- NgDocDemoPaneProcessorDirective = __decorate([
27
- UntilDestroy(),
28
- __metadata("design:paramtypes", [ElementRef,
29
- ViewContainerRef])
30
- ], NgDocDemoPaneProcessorDirective);
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocDemoPaneProcessorDirective, decorators: [{
32
- type: Directive,
33
- args: [{
34
- selector: '[ngDocDemoPaneProcessor]',
35
- standalone: true,
36
- }]
37
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
38
-
39
- /**
40
- * Generated bundle index. Do not edit.
41
- */
42
-
43
- export { NgDocDemoPaneProcessorDirective };
44
- //# sourceMappingURL=ng-doc-app-processors-demo-pane-processor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-doc-app-processors-demo-pane-processor.mjs","sources":["../../../../libs/app/processors/demo-pane-processor/demo-pane-processor.directive.ts","../../../../libs/app/processors/demo-pane-processor/ng-doc-app-processors-demo-pane-processor.ts"],"sourcesContent":["import {Directive, ElementRef, ViewContainerRef} from '@angular/core';\nimport {NgDocDemoPaneComponent} from '@ng-doc/app/components/demo-pane';\nimport {NgDocProcessorOptions} from '@ng-doc/app/interfaces';\nimport {NgDocHtmlProcessor} from '@ng-doc/app/processors/html-processor';\nimport {UntilDestroy} from '@ngneat/until-destroy';\n\n/** Processor replaces html node with `NgDocDemoPaneComponent` to display demo */\n@Directive({\n\tselector: '[ngDocDemoPaneProcessor]',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocDemoPaneProcessorDirective extends NgDocHtmlProcessor<NgDocDemoPaneComponent> {\n\tconstructor(\n\t\tprotected override readonly elementRef: ElementRef<HTMLElement>,\n\t\tprotected override readonly viewContainerRef: ViewContainerRef,\n\t) {\n\t\tsuper(elementRef, viewContainerRef, `ng-doc-demo-pane`, NgDocDemoPaneComponent);\n\t}\n\n\tprotected override extractComponentOptions(element: Element): NgDocProcessorOptions<NgDocDemoPaneComponent> {\n\t\treturn {\n\t\t\tinputs: {\n\t\t\t\tcomponentName: element.getAttribute('componentName') || undefined,\n\t\t\t\toptions: JSON.parse(element.querySelector('#options')?.textContent ?? '') || {},\n\t\t\t},\n\t\t};\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;AACA,IAKa,+BAA+B,GAL5C,MAKa,+BAAgC,SAAQ,kBAA0C,CAAA;IAC9F,WAC6B,CAAA,UAAmC,EACnC,gBAAkC,EAAA;QAE9D,KAAK,CAAC,UAAU,EAAE,gBAAgB,EAAE,CAAkB,gBAAA,CAAA,EAAE,sBAAsB,CAAC,CAAC;QAHpD,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;KAG9D;AAEkB,IAAA,uBAAuB,CAAC,OAAgB,EAAA;QAC1D,OAAO;AACN,YAAA,MAAM,EAAE;gBACP,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,IAAI,SAAS;AACjE,gBAAA,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,WAAW,IAAI,EAAE,CAAC,IAAI,EAAE;AAC/E,aAAA;SACD,CAAC;KACF;8GAfW,+BAA+B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA/B,+BAA+B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;AAA/B,+BAA+B,GAAA,UAAA,CAAA;AAD3C,IAAA,YAAY,EAAE;qCAG2B,UAAU;QACJ,gBAAgB,CAAA,CAAA;AAHnD,CAAA,EAAA,+BAA+B,CAgB3C,CAAA;2FAhBY,+BAA+B,EAAA,UAAA,EAAA,CAAA;kBAL3C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -1,44 +0,0 @@
1
- import { __decorate, __metadata } from 'tslib';
2
- import * as i0 from '@angular/core';
3
- import { ElementRef, ViewContainerRef, Directive } from '@angular/core';
4
- import { NgDocDemoComponent } from '@ng-doc/app/components/demo';
5
- import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
6
- import { UntilDestroy } from '@ngneat/until-destroy';
7
-
8
- /** Processor replaces html node with `NgDocDemoComponent` to display demo */
9
- let NgDocDemoProcessorDirective = class NgDocDemoProcessorDirective extends NgDocHtmlProcessor {
10
- constructor(elementRef, viewContainerRef) {
11
- super(elementRef, viewContainerRef, `ng-doc-demo`, NgDocDemoComponent);
12
- this.elementRef = elementRef;
13
- this.viewContainerRef = viewContainerRef;
14
- }
15
- extractComponentOptions(element) {
16
- return {
17
- inputs: {
18
- componentName: element.getAttribute('componentName') || undefined,
19
- options: JSON.parse(element.querySelector('#options')?.textContent ?? '') || {},
20
- },
21
- };
22
- }
23
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocDemoProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
24
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocDemoProcessorDirective, isStandalone: true, selector: "[ngDocDemoProcessor]", usesInheritance: true, ngImport: i0 }); }
25
- };
26
- NgDocDemoProcessorDirective = __decorate([
27
- UntilDestroy(),
28
- __metadata("design:paramtypes", [ElementRef,
29
- ViewContainerRef])
30
- ], NgDocDemoProcessorDirective);
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocDemoProcessorDirective, decorators: [{
32
- type: Directive,
33
- args: [{
34
- selector: '[ngDocDemoProcessor]',
35
- standalone: true,
36
- }]
37
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
38
-
39
- /**
40
- * Generated bundle index. Do not edit.
41
- */
42
-
43
- export { NgDocDemoProcessorDirective };
44
- //# sourceMappingURL=ng-doc-app-processors-demo-processor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-doc-app-processors-demo-processor.mjs","sources":["../../../../libs/app/processors/demo-processor/demo-processor.directive.ts","../../../../libs/app/processors/demo-processor/ng-doc-app-processors-demo-processor.ts"],"sourcesContent":["import {Directive, ElementRef, ViewContainerRef} from '@angular/core';\nimport {NgDocDemoComponent} from '@ng-doc/app/components/demo';\nimport {NgDocProcessorOptions} from '@ng-doc/app/interfaces';\nimport {NgDocHtmlProcessor} from '@ng-doc/app/processors/html-processor';\nimport {UntilDestroy} from '@ngneat/until-destroy';\n\n/** Processor replaces html node with `NgDocDemoComponent` to display demo */\n@Directive({\n\tselector: '[ngDocDemoProcessor]',\n\tstandalone: true,\n})\n@UntilDestroy()\nexport class NgDocDemoProcessorDirective extends NgDocHtmlProcessor<NgDocDemoComponent> {\n\tconstructor(\n\t\tprotected override readonly elementRef: ElementRef<HTMLElement>,\n\t\tprotected override readonly viewContainerRef: ViewContainerRef,\n\t) {\n\t\tsuper(elementRef, viewContainerRef, `ng-doc-demo`, NgDocDemoComponent);\n\t}\n\n\tprotected override extractComponentOptions(element: Element): NgDocProcessorOptions<NgDocDemoComponent> {\n\t\treturn {\n\t\t\tinputs: {\n\t\t\t\tcomponentName: element.getAttribute('componentName') || undefined,\n\t\t\t\toptions: JSON.parse(element.querySelector('#options')?.textContent ?? '') || {},\n\t\t\t},\n\t\t};\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAMA;AACA,IAKa,2BAA2B,GALxC,MAKa,2BAA4B,SAAQ,kBAAsC,CAAA;IACtF,WAC6B,CAAA,UAAmC,EACnC,gBAAkC,EAAA;QAE9D,KAAK,CAAC,UAAU,EAAE,gBAAgB,EAAE,CAAa,WAAA,CAAA,EAAE,kBAAkB,CAAC,CAAC;QAH3C,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;KAG9D;AAEkB,IAAA,uBAAuB,CAAC,OAAgB,EAAA;QAC1D,OAAO;AACN,YAAA,MAAM,EAAE;gBACP,aAAa,EAAE,OAAO,CAAC,YAAY,CAAC,eAAe,CAAC,IAAI,SAAS;AACjE,gBAAA,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,UAAU,CAAC,EAAE,WAAW,IAAI,EAAE,CAAC,IAAI,EAAE;AAC/E,aAAA;SACD,CAAC;KACF;8GAfW,2BAA2B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;AAA3B,2BAA2B,GAAA,UAAA,CAAA;AADvC,IAAA,YAAY,EAAE;qCAG2B,UAAU;QACJ,gBAAgB,CAAA,CAAA;AAHnD,CAAA,EAAA,2BAA2B,CAgBvC,CAAA;2FAhBY,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBALvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -1,50 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { inject, Injector, Directive } from '@angular/core';
3
-
4
- /**
5
- * Base processor class to create a processor directive that will be used to replace
6
- * html nodes with an Angular component.
7
- */
8
- class NgDocHtmlProcessor {
9
- constructor(elementRef, viewContainerRef, selector, component) {
10
- this.elementRef = elementRef;
11
- this.viewContainerRef = viewContainerRef;
12
- this.selector = selector;
13
- this.component = component;
14
- this.injector = inject(Injector);
15
- }
16
- ngOnInit() {
17
- this.elementRef.nativeElement.querySelectorAll(this.selector).forEach((elementNode) => {
18
- // check if element node has a parent node because it can be removed by another processor
19
- if (elementNode.parentNode) {
20
- const replaceElement = this.replaceElement(elementNode);
21
- const options = this.extractComponentOptions(elementNode, this.elementRef.nativeElement);
22
- // create component
23
- const componentRef = this.viewContainerRef.createComponent(this.component, {
24
- projectableNodes: options.content,
25
- injector: this.injector,
26
- });
27
- // set component options
28
- Object.assign(componentRef.instance, options.inputs);
29
- // replace element node with component node
30
- replaceElement.parentNode?.replaceChild(componentRef.location.nativeElement, replaceElement);
31
- componentRef.changeDetectorRef.markForCheck();
32
- }
33
- });
34
- }
35
- replaceElement(element) {
36
- return element;
37
- }
38
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocHtmlProcessor, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
39
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocHtmlProcessor, ngImport: i0 }); }
40
- }
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocHtmlProcessor, decorators: [{
42
- type: Directive
43
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: undefined }, { type: i0.Type }]; } });
44
-
45
- /**
46
- * Generated bundle index. Do not edit.
47
- */
48
-
49
- export { NgDocHtmlProcessor };
50
- //# sourceMappingURL=ng-doc-app-processors-html-processor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-doc-app-processors-html-processor.mjs","sources":["../../../../libs/app/processors/html-processor/html-processor.directive.ts","../../../../libs/app/processors/html-processor/ng-doc-app-processors-html-processor.ts"],"sourcesContent":["import {ComponentRef, Directive, ElementRef, inject, Injector, OnInit, Type, ViewContainerRef} from '@angular/core';\nimport {NgDocProcessorOptions} from '@ng-doc/app/interfaces';\n\n/**\n * Base processor class to create a processor directive that will be used to replace\n * html nodes with an Angular component.\n */\n@Directive()\nexport abstract class NgDocHtmlProcessor<T> implements OnInit {\n\tinjector: Injector = inject(Injector);\n\n\tprotected constructor(\n\t\tprotected readonly elementRef: ElementRef<HTMLElement>,\n\t\tprotected readonly viewContainerRef: ViewContainerRef,\n\t\tprotected readonly selector: string,\n\t\tprotected readonly component: Type<T>,\n\t) {}\n\n\tngOnInit(): void {\n\t\tthis.elementRef.nativeElement.querySelectorAll(this.selector).forEach((elementNode: Element) => {\n\t\t\t// check if element node has a parent node because it can be removed by another processor\n\t\t\tif (elementNode.parentNode) {\n\t\t\t\tconst replaceElement: Element = this.replaceElement(elementNode);\n\t\t\t\tconst options: NgDocProcessorOptions<T> = this.extractComponentOptions(elementNode, this.elementRef.nativeElement);\n\n\t\t\t\t// create component\n\t\t\t\tconst componentRef: ComponentRef<T> = this.viewContainerRef.createComponent(this.component, {\n\t\t\t\t\tprojectableNodes: options.content,\n\t\t\t\t\tinjector: this.injector,\n\t\t\t\t});\n\n\t\t\t\t// set component options\n\t\t\t\tObject.assign(componentRef.instance as object, options.inputs);\n\n\t\t\t\t// replace element node with component node\n\t\t\t\treplaceElement.parentNode?.replaceChild(componentRef.location.nativeElement, replaceElement);\n\n\t\t\t\tcomponentRef.changeDetectorRef.markForCheck();\n\t\t\t}\n\t\t});\n\t}\n\n\tprotected replaceElement(element: Element): Element {\n\t\treturn element;\n\t}\n\n\tprotected abstract extractComponentOptions(element: Element, root: HTMLElement): NgDocProcessorOptions<T>;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAGA;;;AAGG;AACH,MACsB,kBAAkB,CAAA;AAGvC,IAAA,WAAA,CACoB,UAAmC,EACnC,gBAAkC,EAClC,QAAgB,EAChB,SAAkB,EAAA;QAHlB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;QAClC,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAQ;QAChB,IAAS,CAAA,SAAA,GAAT,SAAS,CAAS;AANtC,QAAA,IAAA,CAAA,QAAQ,GAAa,MAAM,CAAC,QAAQ,CAAC,CAAC;KAOlC;IAEJ,QAAQ,GAAA;AACP,QAAA,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,WAAoB,KAAI;;YAE9F,IAAI,WAAW,CAAC,UAAU,EAAE;gBAC3B,MAAM,cAAc,GAAY,IAAI,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AACjE,gBAAA,MAAM,OAAO,GAA6B,IAAI,CAAC,uBAAuB,CAAC,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;;gBAGnH,MAAM,YAAY,GAAoB,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,EAAE;oBAC3F,gBAAgB,EAAE,OAAO,CAAC,OAAO;oBACjC,QAAQ,EAAE,IAAI,CAAC,QAAQ;AACvB,iBAAA,CAAC,CAAC;;gBAGH,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,QAAkB,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;;AAG/D,gBAAA,cAAc,CAAC,UAAU,EAAE,YAAY,CAAC,YAAY,CAAC,QAAQ,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC;AAE7F,gBAAA,YAAY,CAAC,iBAAiB,CAAC,YAAY,EAAE,CAAC;AAC9C,aAAA;AACF,SAAC,CAAC,CAAC;KACH;AAES,IAAA,cAAc,CAAC,OAAgB,EAAA;AACxC,QAAA,OAAO,OAAO,CAAC;KACf;8GApCoB,kBAAkB,EAAA,IAAA,EAAA,SAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAlB,kBAAkB,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBADvC,SAAS;;;ACPV;;AAEG;;;;"}
@@ -1,36 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive } from '@angular/core';
3
- import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
4
- import { NgDocIconComponent } from '@ng-doc/ui-kit';
5
-
6
- class NgDocIconProcessorDirective extends NgDocHtmlProcessor {
7
- constructor(elementRef, viewContainerRef) {
8
- super(elementRef, viewContainerRef, `ng-doc-icon`, NgDocIconComponent);
9
- this.elementRef = elementRef;
10
- this.viewContainerRef = viewContainerRef;
11
- }
12
- extractComponentOptions(element) {
13
- return {
14
- inputs: {
15
- icon: element.getAttribute('icon') ?? '',
16
- size: Number(element.getAttribute('size')) ?? 16,
17
- },
18
- };
19
- }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocIconProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
21
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocIconProcessorDirective, isStandalone: true, selector: "[ngDocIconProcessor]", usesInheritance: true, ngImport: i0 }); }
22
- }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocIconProcessorDirective, decorators: [{
24
- type: Directive,
25
- args: [{
26
- selector: '[ngDocIconProcessor]',
27
- standalone: true,
28
- }]
29
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
30
-
31
- /**
32
- * Generated bundle index. Do not edit.
33
- */
34
-
35
- export { NgDocIconProcessorDirective };
36
- //# sourceMappingURL=ng-doc-app-processors-icon-processor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-doc-app-processors-icon-processor.mjs","sources":["../../../../libs/app/processors/icon-processor/icon-processor.directive.ts","../../../../libs/app/processors/icon-processor/ng-doc-app-processors-icon-processor.ts"],"sourcesContent":["import {Directive, ElementRef, ViewContainerRef} from '@angular/core';\nimport {NgDocProcessorOptions} from '@ng-doc/app/interfaces';\nimport {NgDocHtmlProcessor} from '@ng-doc/app/processors/html-processor';\nimport {NgDocIconComponent, NgDocIconSize} from '@ng-doc/ui-kit';\n\n@Directive({\n\tselector: '[ngDocIconProcessor]',\n\tstandalone: true,\n})\nexport class NgDocIconProcessorDirective extends NgDocHtmlProcessor<NgDocIconComponent> {\n\tconstructor(\n\t\tprotected override readonly elementRef: ElementRef<HTMLElement>,\n\t\tprotected override readonly viewContainerRef: ViewContainerRef,\n\t) {\n\t\tsuper(elementRef, viewContainerRef, `ng-doc-icon`, NgDocIconComponent);\n\t}\n\n\tprotected override extractComponentOptions(element: Element): NgDocProcessorOptions<NgDocIconComponent> {\n\t\treturn {\n\t\t\tinputs: {\n\t\t\t\ticon: element.getAttribute('icon') ?? '',\n\t\t\t\tsize: (Number(element.getAttribute('size')) as NgDocIconSize) ?? 16,\n\t\t\t},\n\t\t};\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,MAIa,2BAA4B,SAAQ,kBAAsC,CAAA;IACtF,WAC6B,CAAA,UAAmC,EACnC,gBAAkC,EAAA;QAE9D,KAAK,CAAC,UAAU,EAAE,gBAAgB,EAAE,CAAa,WAAA,CAAA,EAAE,kBAAkB,CAAC,CAAC;QAH3C,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;KAG9D;AAEkB,IAAA,uBAAuB,CAAC,OAAgB,EAAA;QAC1D,OAAO;AACN,YAAA,MAAM,EAAE;gBACP,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE;gBACxC,IAAI,EAAG,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAmB,IAAI,EAAE;AACnE,aAAA;SACD,CAAC;KACF;8GAfW,2BAA2B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAJvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
@@ -1,37 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive } from '@angular/core';
3
- import { NgDocPageLinkComponent } from '@ng-doc/app/components/page-link';
4
- import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
5
-
6
- class NgDocLinkProcessorDirective extends NgDocHtmlProcessor {
7
- constructor(elementRef, viewContainerRef) {
8
- super(elementRef, viewContainerRef, `a`, NgDocPageLinkComponent);
9
- this.elementRef = elementRef;
10
- this.viewContainerRef = viewContainerRef;
11
- }
12
- extractComponentOptions(element) {
13
- return {
14
- inputs: {
15
- href: element.getAttribute('href') ?? '',
16
- classes: element.getAttribute('class') ?? '',
17
- },
18
- content: [Array.from(element.childNodes)],
19
- };
20
- }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocLinkProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
22
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocLinkProcessorDirective, isStandalone: true, selector: "[ngDocLinkProcessor]", usesInheritance: true, ngImport: i0 }); }
23
- }
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocLinkProcessorDirective, decorators: [{
25
- type: Directive,
26
- args: [{
27
- selector: '[ngDocLinkProcessor]',
28
- standalone: true,
29
- }]
30
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
31
-
32
- /**
33
- * Generated bundle index. Do not edit.
34
- */
35
-
36
- export { NgDocLinkProcessorDirective };
37
- //# sourceMappingURL=ng-doc-app-processors-link-processor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-doc-app-processors-link-processor.mjs","sources":["../../../../libs/app/processors/link-processor/link-processor.directive.ts","../../../../libs/app/processors/link-processor/ng-doc-app-processors-link-processor.ts"],"sourcesContent":["import {Directive, ElementRef, ViewContainerRef} from '@angular/core';\nimport {NgDocPageLinkComponent} from '@ng-doc/app/components/page-link';\nimport {NgDocProcessorOptions} from '@ng-doc/app/interfaces';\nimport {NgDocHtmlProcessor} from '@ng-doc/app/processors/html-processor';\n\n@Directive({\n\tselector: '[ngDocLinkProcessor]',\n\tstandalone: true,\n})\nexport class NgDocLinkProcessorDirective extends NgDocHtmlProcessor<NgDocPageLinkComponent> {\n\tconstructor(\n\t\tprotected override readonly elementRef: ElementRef<HTMLElement>,\n\t\tprotected override readonly viewContainerRef: ViewContainerRef,\n\t) {\n\t\tsuper(elementRef, viewContainerRef, `a`, NgDocPageLinkComponent);\n\t}\n\n\tprotected override extractComponentOptions(element: Element): NgDocProcessorOptions<NgDocPageLinkComponent> {\n\t\treturn {\n\t\t\tinputs: {\n\t\t\t\thref: element.getAttribute('href') ?? '',\n\t\t\t\tclasses: element.getAttribute('class') ?? '',\n\t\t\t},\n\t\t\tcontent: [Array.from(element.childNodes)],\n\t\t};\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,MAIa,2BAA4B,SAAQ,kBAA0C,CAAA;IAC1F,WAC6B,CAAA,UAAmC,EACnC,gBAAkC,EAAA;QAE9D,KAAK,CAAC,UAAU,EAAE,gBAAgB,EAAE,CAAG,CAAA,CAAA,EAAE,sBAAsB,CAAC,CAAC;QAHrC,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;KAG9D;AAEkB,IAAA,uBAAuB,CAAC,OAAgB,EAAA;QAC1D,OAAO;AACN,YAAA,MAAM,EAAE;gBACP,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,EAAE;gBACxC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE;AAC5C,aAAA;YACD,OAAO,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SACzC,CAAC;KACF;8GAhBW,2BAA2B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,sBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAJvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACRD;;AAEG;;;;"}
@@ -1,42 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive } from '@angular/core';
3
- import { NgDocPlaygroundComponent } from '@ng-doc/app/components/playground';
4
- import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
5
- import { isPresent } from '@ng-doc/core';
6
-
7
- class NgDocPlaygroundProcessorDirective extends NgDocHtmlProcessor {
8
- constructor(elementRef, viewContainerRef) {
9
- super(elementRef, viewContainerRef, `ng-doc-playground`, NgDocPlaygroundComponent);
10
- this.elementRef = elementRef;
11
- this.viewContainerRef = viewContainerRef;
12
- }
13
- extractComponentOptions(element) {
14
- return {
15
- inputs: {
16
- id: element.getAttribute('id') || undefined,
17
- properties: JSON.parse(element.querySelector('#data')?.textContent?.replace(/\n/g, '\\n') ?? '') || undefined,
18
- pipeName: element.querySelector('#pipeName')?.textContent || undefined,
19
- selectors: (element.querySelector('#selectors')?.textContent || '')
20
- .split(',')
21
- .map((selector) => selector.trim())
22
- .filter(isPresent),
23
- },
24
- };
25
- }
26
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
27
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocPlaygroundProcessorDirective, isStandalone: true, selector: "[ngDocPlaygroundProcessor]", usesInheritance: true, ngImport: i0 }); }
28
- }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocPlaygroundProcessorDirective, decorators: [{
30
- type: Directive,
31
- args: [{
32
- selector: '[ngDocPlaygroundProcessor]',
33
- standalone: true,
34
- }]
35
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
36
-
37
- /**
38
- * Generated bundle index. Do not edit.
39
- */
40
-
41
- export { NgDocPlaygroundProcessorDirective };
42
- //# sourceMappingURL=ng-doc-app-processors-playground-processor.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-doc-app-processors-playground-processor.mjs","sources":["../../../../libs/app/processors/playground-processor/playground-processor.directive.ts","../../../../libs/app/processors/playground-processor/ng-doc-app-processors-playground-processor.ts"],"sourcesContent":["import {Directive, ElementRef, ViewContainerRef} from '@angular/core';\nimport {NgDocPlaygroundComponent} from '@ng-doc/app/components/playground';\nimport {NgDocProcessorOptions} from '@ng-doc/app/interfaces';\nimport {NgDocHtmlProcessor} from '@ng-doc/app/processors/html-processor';\nimport {isPresent} from '@ng-doc/core';\n\n@Directive({\n\tselector: '[ngDocPlaygroundProcessor]',\n\tstandalone: true,\n})\nexport class NgDocPlaygroundProcessorDirective extends NgDocHtmlProcessor<NgDocPlaygroundComponent> {\n\tconstructor(\n\t\tprotected override readonly elementRef: ElementRef<HTMLElement>,\n\t\tprotected override readonly viewContainerRef: ViewContainerRef,\n\t) {\n\t\tsuper(elementRef, viewContainerRef, `ng-doc-playground`, NgDocPlaygroundComponent);\n\t}\n\n\tprotected override extractComponentOptions(element: Element): NgDocProcessorOptions<NgDocPlaygroundComponent> {\n\t\treturn {\n\t\t\tinputs: {\n\t\t\t\tid: element.getAttribute('id') || undefined,\n\t\t\t\tproperties: JSON.parse(element.querySelector('#data')?.textContent?.replace(/\\n/g, '\\\\n') ?? '') || undefined,\n\t\t\t\tpipeName: element.querySelector('#pipeName')?.textContent || undefined,\n\t\t\t\tselectors: (element.querySelector('#selectors')?.textContent || '')\n\t\t\t\t\t.split(',')\n\t\t\t\t\t.map((selector: string) => selector.trim())\n\t\t\t\t\t.filter(isPresent),\n\t\t\t},\n\t\t};\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAMA,MAIa,iCAAkC,SAAQ,kBAA4C,CAAA;IAClG,WAC6B,CAAA,UAAmC,EACnC,gBAAkC,EAAA;QAE9D,KAAK,CAAC,UAAU,EAAE,gBAAgB,EAAE,CAAmB,iBAAA,CAAA,EAAE,wBAAwB,CAAC,CAAC;QAHvD,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;KAG9D;AAEkB,IAAA,uBAAuB,CAAC,OAAgB,EAAA;QAC1D,OAAO;AACN,YAAA,MAAM,EAAE;gBACP,EAAE,EAAE,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,SAAS;gBAC3C,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,SAAS;gBAC7G,QAAQ,EAAE,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,WAAW,IAAI,SAAS;AACtE,gBAAA,SAAS,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,EAAE,WAAW,IAAI,EAAE;qBAChE,KAAK,CAAC,GAAG,CAAC;qBACV,GAAG,CAAC,CAAC,QAAgB,KAAK,QAAQ,CAAC,IAAI,EAAE,CAAC;qBAC1C,MAAM,CAAC,SAAS,CAAC;AACnB,aAAA;SACD,CAAC;KACF;8GApBW,iCAAiC,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAAjC,iCAAiC,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,4BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAjC,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAJ7C,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,4BAA4B;AACtC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
@@ -1,50 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Directive } from '@angular/core';
3
- import { NgDocTabsComponent } from '@ng-doc/app/components/tabs';
4
- import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
5
-
6
- class NgDocTabsProcessorDirective extends NgDocHtmlProcessor {
7
- constructor(elementRef, viewContainerRef) {
8
- super(elementRef, viewContainerRef, `ng-doc-tab`, NgDocTabsComponent);
9
- this.elementRef = elementRef;
10
- this.viewContainerRef = viewContainerRef;
11
- }
12
- extractComponentOptions(element, root) {
13
- const group = element.getAttribute('group') ?? '';
14
- const tabs = Array.from(root.querySelectorAll(`ng-doc-tab[group="${group}"]`));
15
- const mappedTabs = tabs.map((tab) => this.mapTabs(tab));
16
- tabs.forEach((tab) => tab.remove());
17
- return {
18
- inputs: {
19
- tabs: mappedTabs,
20
- },
21
- };
22
- }
23
- replaceElement(element) {
24
- const anchor = document.createElement('div');
25
- return element.parentNode?.insertBefore(anchor, element) ?? element;
26
- }
27
- mapTabs(element) {
28
- return {
29
- title: element.getAttribute('name') ?? '',
30
- content: element,
31
- active: element.hasAttribute('active'),
32
- };
33
- }
34
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTabsProcessorDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive }); }
35
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocTabsProcessorDirective, isStandalone: true, selector: "[ngDocTabsProcessor]", usesInheritance: true, ngImport: i0 }); }
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTabsProcessorDirective, decorators: [{
38
- type: Directive,
39
- args: [{
40
- selector: '[ngDocTabsProcessor]',
41
- standalone: true,
42
- }]
43
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
44
-
45
- /**
46
- * Generated bundle index. Do not edit.
47
- */
48
-
49
- export { NgDocTabsProcessorDirective };
50
- //# sourceMappingURL=ng-doc-app-processors-tabs-processor.mjs.map