@ng-doc/app 16.7.2 → 16.8.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.
- package/components/playground/base-playground.d.ts +4 -2
- package/components/playground/playground-demo/playground-demo.component.d.ts +2 -1
- package/components/playground/playground-properties/playground-properties.component.d.ts +2 -1
- package/components/playground/playground.component.d.ts +8 -6
- package/esm2022/components/code/code.component.mjs +5 -7
- package/esm2022/components/page/page.component.mjs +5 -28
- package/esm2022/components/playground/base-playground.mjs +7 -4
- package/esm2022/components/playground/playground-demo/playground-demo.component.mjs +10 -4
- package/esm2022/components/playground/playground-properties/playground-properties.component.mjs +6 -3
- package/esm2022/components/playground/playground.component.mjs +24 -10
- package/esm2022/interfaces/index.mjs +2 -1
- package/esm2022/interfaces/page-processor.mjs +2 -0
- package/esm2022/interfaces/processor-options.mjs +1 -1
- package/esm2022/modules/root/ng-doc.module.mjs +3 -1
- package/esm2022/processors/default-processors.mjs +18 -0
- package/esm2022/processors/index.mjs +4 -11
- package/esm2022/processors/{code-processor → page-processor}/index.mjs +2 -2
- package/esm2022/processors/{icon-processor/ng-doc-app-processors-icon-processor.mjs → page-processor/ng-doc-app-processors-page-processor.mjs} +1 -1
- package/esm2022/processors/page-processor/page-processor.directive.mjs +52 -0
- package/esm2022/processors/processors/blockquote.processor.mjs +12 -0
- package/esm2022/processors/processors/code.processor.mjs +15 -0
- package/esm2022/processors/processors/demo-pane.processor.mjs +12 -0
- package/esm2022/processors/processors/demo.processor.mjs +12 -0
- package/esm2022/processors/processors/icon.processor.mjs +12 -0
- package/esm2022/processors/processors/index.mjs +10 -0
- package/esm2022/processors/processors/link.processor.mjs +13 -0
- package/esm2022/processors/processors/ng-doc-app-processors-processors.mjs +5 -0
- package/esm2022/processors/processors/playground.processor.mjs +19 -0
- package/esm2022/processors/processors/tabs.processor.mjs +25 -0
- package/esm2022/processors/processors/tooltip.processor.mjs +58 -0
- package/esm2022/tokens/index.mjs +2 -1
- package/esm2022/tokens/page-processor.mjs +17 -0
- package/fesm2022/ng-doc-app-components-code.mjs +4 -6
- package/fesm2022/ng-doc-app-components-code.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-page.mjs +4 -27
- package/fesm2022/ng-doc-app-components-page.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-playground.mjs +42 -18
- package/fesm2022/ng-doc-app-components-playground.mjs.map +1 -1
- package/fesm2022/ng-doc-app-modules-root.mjs +2 -0
- package/fesm2022/ng-doc-app-modules-root.mjs.map +1 -1
- package/fesm2022/ng-doc-app-processors-page-processor.mjs +58 -0
- package/fesm2022/ng-doc-app-processors-page-processor.mjs.map +1 -0
- package/fesm2022/ng-doc-app-processors-processors.mjs +183 -0
- package/fesm2022/ng-doc-app-processors-processors.mjs.map +1 -0
- package/fesm2022/ng-doc-app-processors.mjs +22 -10
- package/fesm2022/ng-doc-app-processors.mjs.map +1 -1
- package/fesm2022/ng-doc-app-tokens.mjs +17 -1
- package/fesm2022/ng-doc-app-tokens.mjs.map +1 -1
- package/interfaces/index.d.ts +1 -0
- package/interfaces/page-processor.d.ts +28 -0
- package/interfaces/processor-options.d.ts +2 -3
- package/package.json +14 -62
- package/processors/default-processors.d.ts +2 -0
- package/processors/index.d.ts +3 -10
- package/processors/page-processor/index.d.ts +1 -0
- package/processors/page-processor/page-processor.directive.d.ts +19 -0
- package/processors/processors/blockquote.processor.d.ts +3 -0
- package/processors/processors/code.processor.d.ts +3 -0
- package/processors/processors/demo-pane.processor.d.ts +3 -0
- package/processors/processors/demo.processor.d.ts +3 -0
- package/processors/processors/icon.processor.d.ts +3 -0
- package/processors/processors/index.d.ts +9 -0
- package/processors/processors/link.processor.d.ts +3 -0
- package/processors/processors/playground.processor.d.ts +3 -0
- package/processors/processors/tabs.processor.d.ts +3 -0
- package/processors/{tooltip-processor/tooltip-wrapper.component.d.ts → processors/tooltip.processor.d.ts} +4 -1
- package/tokens/index.d.ts +1 -0
- package/tokens/page-processor.d.ts +11 -0
- package/esm2022/processors/blockquote-processor/blockquote-processor.directive.mjs +0 -30
- package/esm2022/processors/blockquote-processor/index.mjs +0 -2
- package/esm2022/processors/blockquote-processor/ng-doc-app-processors-blockquote-processor.mjs +0 -5
- package/esm2022/processors/code-processor/code-processor.directive.mjs +0 -35
- package/esm2022/processors/code-processor/ng-doc-app-processors-code-processor.mjs +0 -5
- package/esm2022/processors/demo-pane-processor/demo-pane-processor.directive.mjs +0 -38
- package/esm2022/processors/demo-pane-processor/index.mjs +0 -2
- package/esm2022/processors/demo-pane-processor/ng-doc-app-processors-demo-pane-processor.mjs +0 -5
- package/esm2022/processors/demo-processor/demo-processor.directive.mjs +0 -38
- package/esm2022/processors/demo-processor/index.mjs +0 -2
- package/esm2022/processors/demo-processor/ng-doc-app-processors-demo-processor.mjs +0 -5
- package/esm2022/processors/html-processor/html-processor.directive.mjs +0 -44
- package/esm2022/processors/html-processor/index.mjs +0 -2
- package/esm2022/processors/html-processor/ng-doc-app-processors-html-processor.mjs +0 -5
- package/esm2022/processors/icon-processor/icon-processor.directive.mjs +0 -30
- package/esm2022/processors/icon-processor/index.mjs +0 -2
- package/esm2022/processors/link-processor/index.mjs +0 -2
- package/esm2022/processors/link-processor/link-processor.directive.mjs +0 -31
- package/esm2022/processors/link-processor/ng-doc-app-processors-link-processor.mjs +0 -5
- package/esm2022/processors/playground-processor/index.mjs +0 -2
- package/esm2022/processors/playground-processor/ng-doc-app-processors-playground-processor.mjs +0 -5
- package/esm2022/processors/playground-processor/playground-processor.directive.mjs +0 -36
- package/esm2022/processors/tabs-processor/index.mjs +0 -2
- package/esm2022/processors/tabs-processor/ng-doc-app-processors-tabs-processor.mjs +0 -5
- package/esm2022/processors/tabs-processor/tabs-processor.directive.mjs +0 -44
- package/esm2022/processors/tooltip-processor/index.mjs +0 -3
- package/esm2022/processors/tooltip-processor/ng-doc-app-processors-tooltip-processor.mjs +0 -5
- package/esm2022/processors/tooltip-processor/tooltip-processor.directive.mjs +0 -30
- package/esm2022/processors/tooltip-processor/tooltip-wrapper.component.mjs +0 -49
- package/fesm2022/ng-doc-app-processors-blockquote-processor.mjs +0 -36
- package/fesm2022/ng-doc-app-processors-blockquote-processor.mjs.map +0 -1
- package/fesm2022/ng-doc-app-processors-code-processor.mjs +0 -41
- package/fesm2022/ng-doc-app-processors-code-processor.mjs.map +0 -1
- package/fesm2022/ng-doc-app-processors-demo-pane-processor.mjs +0 -44
- package/fesm2022/ng-doc-app-processors-demo-pane-processor.mjs.map +0 -1
- package/fesm2022/ng-doc-app-processors-demo-processor.mjs +0 -44
- package/fesm2022/ng-doc-app-processors-demo-processor.mjs.map +0 -1
- package/fesm2022/ng-doc-app-processors-html-processor.mjs +0 -50
- package/fesm2022/ng-doc-app-processors-html-processor.mjs.map +0 -1
- package/fesm2022/ng-doc-app-processors-icon-processor.mjs +0 -36
- package/fesm2022/ng-doc-app-processors-icon-processor.mjs.map +0 -1
- package/fesm2022/ng-doc-app-processors-link-processor.mjs +0 -37
- package/fesm2022/ng-doc-app-processors-link-processor.mjs.map +0 -1
- package/fesm2022/ng-doc-app-processors-playground-processor.mjs +0 -42
- package/fesm2022/ng-doc-app-processors-playground-processor.mjs.map +0 -1
- package/fesm2022/ng-doc-app-processors-tabs-processor.mjs +0 -50
- package/fesm2022/ng-doc-app-processors-tabs-processor.mjs.map +0 -1
- package/fesm2022/ng-doc-app-processors-tooltip-processor.mjs +0 -81
- package/fesm2022/ng-doc-app-processors-tooltip-processor.mjs.map +0 -1
- package/processors/blockquote-processor/blockquote-processor.directive.d.ts +0 -13
- package/processors/blockquote-processor/index.d.ts +0 -1
- package/processors/code-processor/code-processor.directive.d.ts +0 -14
- package/processors/code-processor/index.d.ts +0 -1
- package/processors/demo-pane-processor/demo-pane-processor.directive.d.ts +0 -14
- package/processors/demo-pane-processor/index.d.ts +0 -1
- package/processors/demo-processor/demo-processor.directive.d.ts +0 -14
- package/processors/demo-processor/index.d.ts +0 -1
- package/processors/html-processor/html-processor.directive.d.ts +0 -20
- package/processors/html-processor/index.d.ts +0 -1
- package/processors/icon-processor/icon-processor.directive.d.ts +0 -13
- package/processors/icon-processor/index.d.ts +0 -1
- package/processors/link-processor/index.d.ts +0 -1
- package/processors/link-processor/link-processor.directive.d.ts +0 -13
- package/processors/playground-processor/index.d.ts +0 -1
- package/processors/playground-processor/playground-processor.directive.d.ts +0 -13
- package/processors/tabs-processor/index.d.ts +0 -1
- package/processors/tabs-processor/tabs-processor.directive.d.ts +0 -15
- package/processors/tooltip-processor/index.d.ts +0 -2
- package/processors/tooltip-processor/tooltip-processor.directive.d.ts +0 -13
|
@@ -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.clos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AAA,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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,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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-processors-tabs-processor.mjs","sources":["../../../../libs/app/processors/tabs-processor/tabs-processor.directive.ts","../../../../libs/app/processors/tabs-processor/ng-doc-app-processors-tabs-processor.ts"],"sourcesContent":["import {Directive, ElementRef, ViewContainerRef} from '@angular/core';\nimport {NgDocTabsComponent} from '@ng-doc/app/components/tabs';\nimport {NgDocProcessorOptions, NgDocTab} from '@ng-doc/app/interfaces';\nimport {NgDocHtmlProcessor} from '@ng-doc/app/processors/html-processor';\n\n@Directive({\n\tselector: '[ngDocTabsProcessor]',\n\tstandalone: true,\n})\nexport class NgDocTabsProcessorDirective extends NgDocHtmlProcessor<NgDocTabsComponent> {\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-tab`, NgDocTabsComponent);\n\t}\n\n\tprotected override extractComponentOptions(element: Element, root: HTMLElement): NgDocProcessorOptions<NgDocTabsComponent> {\n\t\tconst group: string | null = element.getAttribute('group') ?? '';\n\t\tconst tabs: Element[] = Array.from(root.querySelectorAll(`ng-doc-tab[group=\"${group}\"]`));\n\t\tconst mappedTabs: NgDocTab[] = tabs.map((tab: Element) => this.mapTabs(tab));\n\n\n\n\t\ttabs.forEach((tab: Element) => tab.remove());\n\n\t\treturn {\n\t\t\tinputs: {\n\t\t\t\ttabs: mappedTabs,\n\t\t\t},\n\t\t};\n\t}\n\n\tprotected override replaceElement(element: Element): Element {\n\t\tconst anchor: Element = document.createElement('div');\n\n\t\treturn element.parentNode?.insertBefore(anchor, element) ?? element;\n\t}\n\n\tprivate mapTabs(element: Element): NgDocTab {\n\t\treturn {\n\t\t\ttitle: element.getAttribute('name') ?? '',\n\t\t\tcontent: element,\n\t\t\tactive: element.hasAttribute('active'),\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,CAAY,UAAA,CAAA,EAAE,kBAAkB,CAAC,CAAC;QAH1C,IAAU,CAAA,UAAA,GAAV,UAAU,CAAyB;QACnC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB,CAAkB;KAG9D;IAEkB,uBAAuB,CAAC,OAAgB,EAAE,IAAiB,EAAA;QA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AAA,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,81 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { ElementRef, Component, ChangeDetectionStrategy, Input, ViewChild, Directive } from '@angular/core';
|
|
3
|
-
import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
|
|
4
|
-
import { NgDocTooltipDirective } from '@ng-doc/ui-kit';
|
|
5
|
-
|
|
6
|
-
class NgDocTooltipWrapperComponent {
|
|
7
|
-
constructor(changeDetectorRef) {
|
|
8
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
9
|
-
this.tooltipElement = null;
|
|
10
|
-
}
|
|
11
|
-
ngAfterViewInit() {
|
|
12
|
-
if (this.contentProjection) {
|
|
13
|
-
const element = this.contentProjection.nativeElement.querySelector('[ngDocTooltip]');
|
|
14
|
-
this.tooltipElement = element instanceof HTMLElement ? element : null;
|
|
15
|
-
this.changeDetectorRef.detectChanges();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
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 }); }
|
|
19
|
-
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: `
|
|
20
|
-
<div
|
|
21
|
-
class="content-projection"
|
|
22
|
-
[ngDocTooltip]="content ?? ''"
|
|
23
|
-
[displayOrigin]="tooltipElement ?? contentProjection"
|
|
24
|
-
[pointerOrigin]="tooltipElement ?? contentProjection"
|
|
25
|
-
#contentProjection
|
|
26
|
-
>
|
|
27
|
-
<ng-content></ng-content>
|
|
28
|
-
</div>
|
|
29
|
-
`, 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 }); }
|
|
30
|
-
}
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTooltipWrapperComponent, decorators: [{
|
|
32
|
-
type: Component,
|
|
33
|
-
args: [{ selector: 'ng-doc-tooltip-wrapper', template: `
|
|
34
|
-
<div
|
|
35
|
-
class="content-projection"
|
|
36
|
-
[ngDocTooltip]="content ?? ''"
|
|
37
|
-
[displayOrigin]="tooltipElement ?? contentProjection"
|
|
38
|
-
[pointerOrigin]="tooltipElement ?? contentProjection"
|
|
39
|
-
#contentProjection
|
|
40
|
-
>
|
|
41
|
-
<ng-content></ng-content>
|
|
42
|
-
</div>
|
|
43
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgDocTooltipDirective], styles: [".content-projection{display:unset}\n"] }]
|
|
44
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { content: [{
|
|
45
|
-
type: Input
|
|
46
|
-
}], contentProjection: [{
|
|
47
|
-
type: ViewChild,
|
|
48
|
-
args: ['contentProjection', { read: ElementRef, static: true }]
|
|
49
|
-
}] } });
|
|
50
|
-
|
|
51
|
-
class NgDocTooltipProcessorDirective extends NgDocHtmlProcessor {
|
|
52
|
-
constructor(elementRef, viewContainerRef) {
|
|
53
|
-
super(elementRef, viewContainerRef, `[ngDocTooltip]`, NgDocTooltipWrapperComponent);
|
|
54
|
-
this.elementRef = elementRef;
|
|
55
|
-
this.viewContainerRef = viewContainerRef;
|
|
56
|
-
}
|
|
57
|
-
extractComponentOptions(element) {
|
|
58
|
-
return {
|
|
59
|
-
inputs: {
|
|
60
|
-
content: element.getAttribute('ngDocTooltip') ?? '',
|
|
61
|
-
},
|
|
62
|
-
content: [[element.cloneNode(true)]],
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
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 }); }
|
|
66
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.0", type: NgDocTooltipProcessorDirective, isStandalone: true, selector: "[ngDocTooltipProcessor]", usesInheritance: true, ngImport: i0 }); }
|
|
67
|
-
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: NgDocTooltipProcessorDirective, decorators: [{
|
|
69
|
-
type: Directive,
|
|
70
|
-
args: [{
|
|
71
|
-
selector: '[ngDocTooltipProcessor]',
|
|
72
|
-
standalone: true,
|
|
73
|
-
}]
|
|
74
|
-
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }]; } });
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Generated bundle index. Do not edit.
|
|
78
|
-
*/
|
|
79
|
-
|
|
80
|
-
export { NgDocTooltipProcessorDirective, NgDocTooltipWrapperComponent };
|
|
81
|
-
//# sourceMappingURL=ng-doc-app-processors-tooltip-processor.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-processors-tooltip-processor.mjs","sources":["../../../../libs/app/processors/tooltip-processor/tooltip-wrapper.component.ts","../../../../libs/app/processors/tooltip-processor/tooltip-processor.directive.ts","../../../../libs/app/processors/tooltip-processor/ng-doc-app-processors-tooltip-processor.ts"],"sourcesContent":["import {\n\tAfterViewInit,\n\tChangeDetectionStrategy,\n\tChangeDetectorRef,\n\tComponent,\n\tElementRef,\n\tInput,\n\tViewChild,\n} from '@angular/core';\nimport {NgDocTooltipDirective} from '@ng-doc/ui-kit';\n\n@Component({\n\tselector: 'ng-doc-tooltip-wrapper',\n\ttemplate: `\n\t\t<div\n\t\t\tclass=\"content-projection\"\n\t\t\t[ngDocTooltip]=\"content ?? ''\"\n\t\t\t[displayOrigin]=\"tooltipElement ?? contentProjection\"\n\t\t\t[pointerOrigin]=\"tooltipElement ?? contentProjection\"\n\t\t\t#contentProjection\n\t\t>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\t`,\n\tstyles: [\n\t\t`\n\t\t\t.content-projection {\n\t\t\t\tdisplay: unset;\n\t\t\t}\n\t\t`,\n\t],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n\timports: [NgDocTooltipDirective],\n})\nexport class NgDocTooltipWrapperComponent implements AfterViewInit {\n\t@Input()\n\tcontent?: string;\n\n\tprotected tooltipElement: HTMLElement | null = null;\n\n\t@ViewChild('contentProjection', {read: ElementRef, static: true})\n\tprivate contentProjection?: ElementRef<HTMLElement>;\n\n\tconstructor(private readonly changeDetectorRef: ChangeDetectorRef) {}\n\n\tngAfterViewInit(): void {\n\t\tif (this.contentProjection) {\n\t\t\tconst element: Element | null = this.contentProjection.nativeElement.querySelector('[ngDocTooltip]');\n\n\t\t\tthis.tooltipElement = element instanceof HTMLElement ? element : null;\n\n\t\t\tthis.changeDetectorRef.detectChanges();\n\t\t}\n\t}\n}\n","import {Directive, ElementRef, ViewContainerRef} from '@angular/core';\nimport {NgDocProcessorOptions} from '@ng-doc/app/interfaces';\nimport {NgDocHtmlProcessor} from '@ng-doc/app/processors/html-processor';\n\nimport {NgDocTooltipWrapperComponent} from './tooltip-wrapper.component';\n\n@Directive({\n\tselector: '[ngDocTooltipProcessor]',\n\tstandalone: true,\n})\nexport class NgDocTooltipProcessorDirective extends NgDocHtmlProcessor<NgDocTooltipWrapperComponent> {\n\tconstructor(\n\t\tprotected override readonly elementRef: ElementRef<HTMLElement>,\n\t\tprotected override readonly viewContainerRef: ViewContainerRef,\n\t) {\n\t\tsuper(elementRef, viewContainerRef, `[ngDocTooltip]`, NgDocTooltipWrapperComponent);\n\t}\n\n\tprotected override extractComponentOptions(element: Element): NgDocProcessorOptions<NgDocTooltipWrapperComponent> {\n\t\treturn {\n\t\t\tinputs: {\n\t\t\t\tcontent: element.getAttribute('ngDocTooltip') ?? '',\n\t\t\t},\n\t\t\tcontent: [[element.cloneNode(true)]],\n\t\t};\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAWA,MAwBa,4BAA4B,CAAA;AASxC,IAAA,WAAA,CAA6B,iBAAoC,EAAA;QAApC,IAAiB,CAAA,iBAAA,GAAjB,iBAAiB,CAAmB;QALvD,IAAc,CAAA,cAAA,GAAuB,IAAI,CAAC;KAKiB;IAErE,eAAe,GAAA;QACd,IAAI,IAAI,CAAC,iBAAiB,EAAE;AAC3B,YAAA,MAAM,OAAO,GAAmB,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;AAErG,YAAA,IAAI,CAAC,cAAc,GAAG,OAAO,YAAY,WAAW,GAAG,OAAO,GAAG,IAAI,CAAC;AAEtE,YAAA,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC;AACvC,SAAA;KACD;8GAnBW,4BAA4B,EAAA,IAAA,EAA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,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,UAAU,EAAE,IAAI;AAChB,iBAAA,CAAA;;;ACTD;;AAEG;;;;"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ElementRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { NgDocProcessorOptions } from '@ng-doc/app/interfaces';
|
|
3
|
-
import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
|
|
4
|
-
import { NgDocBlockquoteComponent } from '@ng-doc/ui-kit';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NgDocBlockquoteProcessorDirective extends NgDocHtmlProcessor<NgDocBlockquoteComponent> {
|
|
7
|
-
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
8
|
-
protected readonly viewContainerRef: ViewContainerRef;
|
|
9
|
-
constructor(elementRef: ElementRef<HTMLElement>, viewContainerRef: ViewContainerRef);
|
|
10
|
-
protected extractComponentOptions(element: Element): NgDocProcessorOptions<NgDocBlockquoteComponent>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocBlockquoteProcessorDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocBlockquoteProcessorDirective, "[ngDocBlockquoteProcessor]", never, {}, {}, never, never, true, never>;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './blockquote-processor.directive';
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ElementRef, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { NgDocCodeComponent } from '@ng-doc/app/components/code';
|
|
3
|
-
import { NgDocProcessorOptions } from '@ng-doc/app/interfaces';
|
|
4
|
-
import { NgDocHtmlProcessor } from '@ng-doc/app/processors/html-processor';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class NgDocCodeProcessorDirective extends NgDocHtmlProcessor<NgDocCodeComponent> {
|
|
7
|
-
protected readonly elementRef: ElementRef<HTMLElement>;
|
|
8
|
-
protected readonly viewContainerRef: ViewContainerRef;
|
|
9
|
-
constructor(elementRef: ElementRef<HTMLElement>, viewContainerRef: ViewContainerRef);
|
|
10
|
-
protected replaceElement(element: Element): Element;
|
|
11
|
-
protected extractComponentOptions(element: Element): NgDocProcessorOptions<NgDocCodeComponent>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgDocCodeProcessorDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgDocCodeProcessorDirective, "[ngDocCodeProcessor]", never, {}, {}, never, never, true, never>;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './code-processor.directive';
|