@ng-doc/app 16.17.0 → 16.18.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.
- package/classes/default-search-engine/default-search-engine.d.ts +0 -1
- package/components/toc/toc.component.d.ts +0 -1
- package/esm2022/classes/default-search-engine/default-search-engine.mjs +1 -2
- package/esm2022/components/api-list/api-list.component.mjs +6 -6
- package/esm2022/components/breadcrumb/breadcrumb.component.mjs +5 -6
- package/esm2022/components/code/code.component.mjs +6 -7
- package/esm2022/components/demo/demo.component.mjs +6 -7
- package/esm2022/components/demo-displayer/demo-displayer.component.mjs +6 -7
- package/esm2022/components/demo-pane/demo-pane.component.mjs +6 -7
- package/esm2022/components/fullscreen-button/fullscreen-button.component.mjs +5 -6
- package/esm2022/components/kind-icon/kind-icon.component.mjs +5 -6
- package/esm2022/components/link/link.component.mjs +5 -6
- package/esm2022/components/navbar/navbar.component.mjs +6 -6
- package/esm2022/components/page/page.component.mjs +4 -4
- package/esm2022/components/page-link/page-link.component.mjs +6 -7
- package/esm2022/components/page-navigation/page-navigation.component.mjs +5 -6
- package/esm2022/components/playground/base-playground.mjs +6 -7
- package/esm2022/components/playground/playground-demo/playground-demo.component.mjs +6 -6
- package/esm2022/components/playground/playground-properties/playground-properties.component.mjs +6 -7
- package/esm2022/components/playground/playground-property/playground-property.component.mjs +5 -6
- package/esm2022/components/playground/playground.component.mjs +6 -7
- package/esm2022/components/root/root.component.mjs +13 -15
- package/esm2022/components/search/search.component.mjs +9 -10
- package/esm2022/components/search-result/search-result.component.mjs +5 -6
- package/esm2022/components/sidebar/sidebar-category/sidebar-category.component.mjs +5 -5
- package/esm2022/components/sidebar/sidebar-item/sidebar-item.component.mjs +5 -6
- package/esm2022/components/sidebar/sidebar.component.mjs +7 -8
- package/esm2022/components/tabs/tabs.component.mjs +5 -6
- package/esm2022/components/theme-toggle/theme-toggle.component.mjs +6 -7
- package/esm2022/components/toc/toc-element/toc-element.component.mjs +6 -7
- package/esm2022/components/toc/toc.component.mjs +4 -5
- package/esm2022/directives/code-highlighter/code-highlighter.directive.mjs +6 -7
- package/esm2022/directives/route-active/route-active.directive.mjs +5 -5
- package/esm2022/helpers/generate-toc.mjs +1 -2
- package/esm2022/interfaces/page-processor.mjs +1 -1
- package/esm2022/pipes/extract-value/extract-value.pipe.mjs +5 -6
- package/esm2022/pipes/filter-by-text/filter-by-text.pipe.mjs +5 -6
- package/esm2022/pipes/sanitize-html/sanitize-html.pipe.mjs +6 -7
- package/esm2022/processors/page-processor/page-processor.directive.mjs +6 -7
- package/esm2022/processors/processors/tooltip.processor.mjs +5 -5
- package/esm2022/providers/ng-doc-app/provide-ng-doc-app.mjs +1 -2
- package/esm2022/providers/page-skeleton/provide-page-skeleton.mjs +1 -2
- package/esm2022/providers/playground-demo/provide-playground-demo.mjs +1 -2
- package/esm2022/providers/search-engine/provide-search-engine.mjs +1 -2
- package/esm2022/providers/type-control/provide-type-control.mjs +1 -2
- package/esm2022/services/sidebar/sidebar.service.mjs +6 -6
- package/esm2022/services/store/store.service.mjs +5 -6
- package/esm2022/services/theme/theme.service.mjs +8 -9
- package/esm2022/tokens/page-processor.mjs +1 -3
- package/esm2022/type-controls/boolean-control/boolean-control.component.mjs +8 -10
- package/esm2022/type-controls/number-control/number-control.component.mjs +10 -12
- package/esm2022/type-controls/string-control/string-control.component.mjs +9 -11
- package/esm2022/type-controls/type-alias-control/type-alias-control.component.mjs +8 -9
- package/fesm2022/ng-doc-app-classes-default-search-engine.mjs +1 -2
- package/fesm2022/ng-doc-app-classes-default-search-engine.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-api-list.mjs +6 -6
- package/fesm2022/ng-doc-app-components-api-list.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-breadcrumb.mjs +3 -3
- package/fesm2022/ng-doc-app-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-code.mjs +4 -4
- package/fesm2022/ng-doc-app-components-code.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-demo-displayer.mjs +4 -4
- package/fesm2022/ng-doc-app-components-demo-displayer.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-demo-pane.mjs +4 -4
- package/fesm2022/ng-doc-app-components-demo-pane.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-demo.mjs +4 -4
- package/fesm2022/ng-doc-app-components-demo.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-fullscreen-button.mjs +3 -3
- package/fesm2022/ng-doc-app-components-fullscreen-button.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-kind-icon.mjs +3 -3
- package/fesm2022/ng-doc-app-components-kind-icon.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-link.mjs +3 -3
- package/fesm2022/ng-doc-app-components-link.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-navbar.mjs +7 -7
- package/fesm2022/ng-doc-app-components-navbar.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-page-link.mjs +4 -4
- package/fesm2022/ng-doc-app-components-page-link.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-page-navigation.mjs +3 -3
- package/fesm2022/ng-doc-app-components-page-navigation.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-page.mjs +3 -3
- package/fesm2022/ng-doc-app-components-page.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-playground.mjs +22 -22
- package/fesm2022/ng-doc-app-components-playground.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-root.mjs +13 -13
- package/fesm2022/ng-doc-app-components-root.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-search-result.mjs +3 -3
- package/fesm2022/ng-doc-app-components-search-result.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-search.mjs +9 -10
- package/fesm2022/ng-doc-app-components-search.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-sidebar.mjs +13 -13
- package/fesm2022/ng-doc-app-components-sidebar.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-tabs.mjs +3 -3
- package/fesm2022/ng-doc-app-components-tabs.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-theme-toggle.mjs +5 -5
- package/fesm2022/ng-doc-app-components-theme-toggle.mjs.map +1 -1
- package/fesm2022/ng-doc-app-components-toc.mjs +7 -8
- package/fesm2022/ng-doc-app-components-toc.mjs.map +1 -1
- package/fesm2022/ng-doc-app-directives-code-highlighter.mjs +4 -4
- package/fesm2022/ng-doc-app-directives-code-highlighter.mjs.map +1 -1
- package/fesm2022/ng-doc-app-directives-route-active.mjs +5 -5
- package/fesm2022/ng-doc-app-directives-route-active.mjs.map +1 -1
- package/fesm2022/ng-doc-app-helpers.mjs +0 -1
- package/fesm2022/ng-doc-app-helpers.mjs.map +1 -1
- package/fesm2022/ng-doc-app-pipes-extract-value.mjs +3 -3
- package/fesm2022/ng-doc-app-pipes-extract-value.mjs.map +1 -1
- package/fesm2022/ng-doc-app-pipes-filter-by-text.mjs +3 -3
- package/fesm2022/ng-doc-app-pipes-filter-by-text.mjs.map +1 -1
- package/fesm2022/ng-doc-app-pipes-sanitize-html.mjs +4 -4
- package/fesm2022/ng-doc-app-pipes-sanitize-html.mjs.map +1 -1
- package/fesm2022/ng-doc-app-processors-page-processor.mjs +4 -4
- package/fesm2022/ng-doc-app-processors-page-processor.mjs.map +1 -1
- package/fesm2022/ng-doc-app-processors-processors.mjs +4 -4
- package/fesm2022/ng-doc-app-processors-processors.mjs.map +1 -1
- package/fesm2022/ng-doc-app-providers-ng-doc-app.mjs +0 -1
- package/fesm2022/ng-doc-app-providers-ng-doc-app.mjs.map +1 -1
- package/fesm2022/ng-doc-app-providers-page-skeleton.mjs +0 -1
- package/fesm2022/ng-doc-app-providers-page-skeleton.mjs.map +1 -1
- package/fesm2022/ng-doc-app-providers-playground-demo.mjs +0 -1
- package/fesm2022/ng-doc-app-providers-playground-demo.mjs.map +1 -1
- package/fesm2022/ng-doc-app-providers-search-engine.mjs +0 -1
- package/fesm2022/ng-doc-app-providers-search-engine.mjs.map +1 -1
- package/fesm2022/ng-doc-app-providers-type-control.mjs +0 -1
- package/fesm2022/ng-doc-app-providers-type-control.mjs.map +1 -1
- package/fesm2022/ng-doc-app-services-sidebar.mjs +6 -6
- package/fesm2022/ng-doc-app-services-sidebar.mjs.map +1 -1
- package/fesm2022/ng-doc-app-services-store.mjs +3 -3
- package/fesm2022/ng-doc-app-services-store.mjs.map +1 -1
- package/fesm2022/ng-doc-app-services-theme.mjs +8 -9
- package/fesm2022/ng-doc-app-services-theme.mjs.map +1 -1
- package/fesm2022/ng-doc-app-tokens.mjs +0 -2
- package/fesm2022/ng-doc-app-tokens.mjs.map +1 -1
- package/fesm2022/ng-doc-app-type-controls-boolean-control.mjs +7 -8
- package/fesm2022/ng-doc-app-type-controls-boolean-control.mjs.map +1 -1
- package/fesm2022/ng-doc-app-type-controls-number-control.mjs +9 -10
- package/fesm2022/ng-doc-app-type-controls-number-control.mjs.map +1 -1
- package/fesm2022/ng-doc-app-type-controls-string-control.mjs +8 -9
- package/fesm2022/ng-doc-app-type-controls-string-control.mjs.map +1 -1
- package/fesm2022/ng-doc-app-type-controls-type-alias-control.mjs +7 -7
- package/fesm2022/ng-doc-app-type-controls-type-alias-control.mjs.map +1 -1
- package/helpers/generate-toc.d.ts +0 -1
- package/interfaces/page-processor.d.ts +0 -2
- package/package.json +39 -39
- package/providers/ng-doc-app/provide-ng-doc-app.d.ts +0 -1
- package/providers/page-skeleton/provide-page-skeleton.d.ts +0 -1
- package/providers/playground-demo/provide-playground-demo.d.ts +0 -1
- package/providers/search-engine/provide-search-engine.d.ts +0 -1
- package/providers/type-control/provide-type-control.d.ts +0 -1
- package/services/theme/theme.service.d.ts +0 -2
- package/styles/global.css +1 -1
- package/styles/main.css +1 -1
- package/tokens/page-processor.d.ts +0 -2
- package/type-controls/boolean-control/boolean-control.component.d.ts +2 -2
- package/type-controls/number-control/number-control.component.d.ts +2 -2
- package/type-controls/string-control/string-control.component.d.ts +2 -2
- package/type-controls/type-alias-control/type-alias-control.component.d.ts +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-type-controls-number-control.mjs","sources":["../../../../libs/app/type-controls/number-control/number-control.component.ts","../../../../libs/app/type-controls/number-control/number-control.component.html","../../../../libs/app/type-controls/number-control/ng-doc-app-type-controls-number-control.ts"],"sourcesContent":["import { NgIf } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { NgDocTypeControl } from '@ng-doc/app/interfaces';\nimport {\n\tNgDocButtonIconComponent,\n\tNgDocFocusableDirective,\n\tNgDocIconComponent,\n\tNgDocInputNumberDirective,\n\tNgDocInputWrapperComponent,\n} from '@ng-doc/ui-kit';\nimport {
|
|
1
|
+
{"version":3,"file":"ng-doc-app-type-controls-number-control.mjs","sources":["../../../../libs/app/type-controls/number-control/number-control.component.ts","../../../../libs/app/type-controls/number-control/number-control.component.html","../../../../libs/app/type-controls/number-control/ng-doc-app-type-controls-number-control.ts"],"sourcesContent":["import { NgIf } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { NgDocTypeControl } from '@ng-doc/app/interfaces';\nimport {\n\tNgDocButtonIconComponent,\n\tNgDocFocusableDirective,\n\tNgDocIconComponent,\n\tNgDocInputNumberDirective,\n\tNgDocInputWrapperComponent,\n} from '@ng-doc/ui-kit';\nimport { DIControl, DIControlSilencerDirective } from 'di-controls';\n\n@Component({\n\tselector: 'ng-doc-number-control',\n\ttemplateUrl: './number-control.component.html',\n\tstyleUrls: ['./number-control.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n\timports: [\n\t\tNgDocInputWrapperComponent,\n\t\tDIControlSilencerDirective,\n\t\tNgDocInputNumberDirective,\n\t\tFormsModule,\n\t\tNgIf,\n\t\tNgDocButtonIconComponent,\n\t\tNgDocFocusableDirective,\n\t\tNgDocIconComponent,\n\t],\n})\nexport class NgDocNumberControlComponent\n\textends DIControl<number>\n\timplements NgDocTypeControl<number>\n{\n\t@Input()\n\tdefault?: number;\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tchangeModel(value: number | null): void {\n\t\tthis.updateModel(value === null && this.default ? this.default : value);\n\t}\n}\n","<ng-doc-input-wrapper diControlSilencer [rightContent]=\"rightContent\">\n\t<input ngDocInputNumber type=\"number\" [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\" />\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(default ?? null)\"\n\t\t\t(focusout)=\"touch()\"\n\t\t\t*ngIf=\"model() && model() !== default\">\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA8BM,MAAO,2BACZ,SAAQ,SAAiB,CAAA;AAMzB,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;KACR;AAED,IAAA,WAAW,CAAC,KAAoB,EAAA;QAC/B,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;KACxE;8GAbW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,2BAA2B,wIC9BxC,qlBAgBA,EAAA,MAAA,E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ClB,qBAAA,EAAA,QAAA,EAAA,qlBAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,CAAA;wDAOD,OAAO,EAAA,CAAA;sBADN,KAAK;;;AElCP;;AAEG;;;;"}
|
|
@@ -4,10 +4,9 @@ import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
|
|
|
4
4
|
import * as i1 from '@angular/forms';
|
|
5
5
|
import { FormsModule } from '@angular/forms';
|
|
6
6
|
import { NgDocInputWrapperComponent, NgDocInputStringDirective, NgDocButtonIconComponent, NgDocFocusableDirective, NgDocIconComponent } from '@ng-doc/ui-kit';
|
|
7
|
-
import
|
|
8
|
-
import { FlControl, FlControlSilencerModule } from 'flex-controls';
|
|
7
|
+
import { DIControl, DIControlSilencerDirective } from 'di-controls';
|
|
9
8
|
|
|
10
|
-
class NgDocStringControlComponent extends
|
|
9
|
+
class NgDocStringControlComponent extends DIControl {
|
|
11
10
|
constructor() {
|
|
12
11
|
super();
|
|
13
12
|
}
|
|
@@ -17,22 +16,22 @@ class NgDocStringControlComponent extends FlControl {
|
|
|
17
16
|
writeValue(value) {
|
|
18
17
|
super.writeValue(value);
|
|
19
18
|
}
|
|
20
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocStringControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.2", type: NgDocStringControlComponent, isStandalone: true, selector: "ng-doc-string-control", inputs: { default: "default" }, usesInheritance: true, ngImport: i0, template: "<ng-doc-input-wrapper [rightContent]=\"rightContent\" diControlSilencer>\n\t<input ngDocInputString [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\" />\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(default ?? null)\"\n\t\t\t(focusout)=\"touch()\"\n\t\t\t*ngIf=\"model() && model() !== default\">\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: NgDocInputWrapperComponent, selector: "ng-doc-input-wrapper", inputs: ["blurContent", "blurContext", "leftContent", "rightContent", "align"] }, { kind: "directive", type: NgDocInputStringDirective, selector: "input[ngDocInputString]" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon]", inputs: ["size", "rounded"] }, { kind: "directive", type: NgDocFocusableDirective, selector: "[ngDocFocusable]", inputs: ["ngDocFocusable"], exportAs: ["ngDocFocusable"] }, { kind: "component", type: NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "customIcon", "size"] }, { kind: "directive", type: DIControlSilencerDirective, selector: "[diControlSilencer]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
22
21
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocStringControlComponent, decorators: [{
|
|
24
23
|
type: Component,
|
|
25
24
|
args: [{ selector: 'ng-doc-string-control', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
26
25
|
FormsModule,
|
|
27
26
|
NgDocInputWrapperComponent,
|
|
28
|
-
FlControlSilencerModule,
|
|
29
27
|
NgDocInputStringDirective,
|
|
30
28
|
NgIf,
|
|
31
29
|
NgDocButtonIconComponent,
|
|
32
30
|
NgDocFocusableDirective,
|
|
33
31
|
NgDocIconComponent,
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
DIControlSilencerDirective,
|
|
33
|
+
], template: "<ng-doc-input-wrapper [rightContent]=\"rightContent\" diControlSilencer>\n\t<input ngDocInputString [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\" />\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(default ?? null)\"\n\t\t\t(focusout)=\"touch()\"\n\t\t\t*ngIf=\"model() && model() !== default\">\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n", styles: [":host{display:block;width:100%}\n"] }]
|
|
34
|
+
}], ctorParameters: () => [], propDecorators: { default: [{
|
|
36
35
|
type: Input
|
|
37
36
|
}] } });
|
|
38
37
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-type-controls-string-control.mjs","sources":["../../../../libs/app/type-controls/string-control/string-control.component.ts","../../../../libs/app/type-controls/string-control/string-control.component.html","../../../../libs/app/type-controls/string-control/ng-doc-app-type-controls-string-control.ts"],"sourcesContent":["import { NgIf } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { NgDocTypeControl } from '@ng-doc/app/interfaces';\nimport {\n\tNgDocButtonIconComponent,\n\tNgDocFocusableDirective,\n\tNgDocIconComponent,\n\tNgDocInputStringDirective,\n\tNgDocInputWrapperComponent,\n} from '@ng-doc/ui-kit';\nimport {
|
|
1
|
+
{"version":3,"file":"ng-doc-app-type-controls-string-control.mjs","sources":["../../../../libs/app/type-controls/string-control/string-control.component.ts","../../../../libs/app/type-controls/string-control/string-control.component.html","../../../../libs/app/type-controls/string-control/ng-doc-app-type-controls-string-control.ts"],"sourcesContent":["import { NgIf } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { NgDocTypeControl } from '@ng-doc/app/interfaces';\nimport {\n\tNgDocButtonIconComponent,\n\tNgDocFocusableDirective,\n\tNgDocIconComponent,\n\tNgDocInputStringDirective,\n\tNgDocInputWrapperComponent,\n} from '@ng-doc/ui-kit';\nimport { DIControl, DIControlSilencerDirective } from 'di-controls';\n\n@Component({\n\tselector: 'ng-doc-string-control',\n\ttemplateUrl: './string-control.component.html',\n\tstyleUrls: ['./string-control.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n\timports: [\n\t\tFormsModule,\n\t\tNgDocInputWrapperComponent,\n\t\tNgDocInputStringDirective,\n\t\tNgIf,\n\t\tNgDocButtonIconComponent,\n\t\tNgDocFocusableDirective,\n\t\tNgDocIconComponent,\n\t\tDIControlSilencerDirective,\n\t],\n})\nexport class NgDocStringControlComponent\n\textends DIControl<string>\n\timplements NgDocTypeControl<string>\n{\n\t@Input()\n\tdefault?: string;\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tchangeModel(value: string | null): void {\n\t\tthis.updateModel(value === null && this.default ? this.default : value);\n\t}\n\n\toverride writeValue(value: string | null) {\n\t\tsuper.writeValue(value);\n\t}\n}\n","<ng-doc-input-wrapper [rightContent]=\"rightContent\" diControlSilencer>\n\t<input ngDocInputString [ngModel]=\"model\" (ngModelChange)=\"changeModel($event)\" />\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(default ?? null)\"\n\t\t\t(focusout)=\"touch()\"\n\t\t\t*ngIf=\"model() && model() !== default\">\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-input-wrapper>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AA8BM,MAAO,2BACZ,SAAQ,SAAiB,CAAA;AAMzB,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;KACR;AAED,IAAA,WAAW,CAAC,KAAoB,EAAA;QAC/B,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;KACxE;AAEQ,IAAA,UAAU,CAAC,KAAoB,EAAA;AACvC,QAAA,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;KACxB;8GAjBW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA3B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,2BAA2B,wIC9BxC,qkBAgBA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,YAAA,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AA,EAAA,CAAA,CAAA,EAAA;;2FAGf,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAjBvC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,mBAGhB,uBAAuB,CAAC,MAAM,EAAA,UAAA,EACnC,IAAI,EACP,OAAA,EAAA;wBACR,WAAW;wBACX,0BAA0B;wBAC1B,yBAAyB;wBACzB,IAAI;wBACJ,wBAAwB;wBACxB,uBAAuB;wBACvB,kBAAkB;wBAClB,0BAA0B;AAC1B,qBAAA,EAAA,QAAA,EAAA,qkBAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,CAAA;wDAOD,OAAO,EAAA,CAAA;sBADN,KAAK;;;AElCP;;AAEG;;;;"}
|
|
@@ -6,9 +6,9 @@ import { FormsModule } from '@angular/forms';
|
|
|
6
6
|
import { NgDocKindIconComponent } from '@ng-doc/app/components/kind-icon';
|
|
7
7
|
import { NgDocExtractValuePipe } from '@ng-doc/app/pipes/extract-value';
|
|
8
8
|
import { NgDocComboboxComponent, NgDocDataDirective, NgDocListComponent, NgDocOptionComponent, NgDocTextComponent, NgDocTextLeftDirective, NgDocTooltipDirective, NgDocTextRightDirective, NgDocButtonIconComponent, NgDocFocusableDirective, NgDocIconComponent } from '@ng-doc/ui-kit';
|
|
9
|
-
import {
|
|
9
|
+
import { DIControl } from 'di-controls';
|
|
10
10
|
|
|
11
|
-
class NgDocTypeAliasControlComponent extends
|
|
11
|
+
class NgDocTypeAliasControlComponent extends DIControl {
|
|
12
12
|
constructor() {
|
|
13
13
|
super();
|
|
14
14
|
}
|
|
@@ -18,10 +18,10 @@ class NgDocTypeAliasControlComponent extends FlControl {
|
|
|
18
18
|
changeModel(value) {
|
|
19
19
|
this.updateModel(value === null && this.default ? this.default : value);
|
|
20
20
|
}
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocTypeAliasControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.2", type: NgDocTypeAliasControlComponent, isStandalone: true, selector: "ng-doc-type-alias-control", inputs: { default: "default" }, usesInheritance: true, ngImport: i0, template: "<ng-doc-combobox\n\t[ngModel]=\"model()\"\n\t[readonly]=\"true\"\n\t[valueContent]=\"valueTemplate\"\n\t[clearButton]=\"false\"\n\t[rightContent]=\"rightContent\"\n\t(ngModelChange)=\"changeModel($event)\">\n\t<ng-doc-list *ngDocData>\n\t\t<ng-container *ngFor=\"let option of options\">\n\t\t\t<ng-container *ngIf=\"option | ngDocExtractValue as value\">\n\t\t\t\t<ng-doc-option [value]=\"value\">\n\t\t\t\t\t<ng-container\n\t\t\t\t\t\t*ngTemplateOutlet=\"valueTemplate; context: { $implicit: value }\"></ng-container>\n\t\t\t\t</ng-doc-option>\n\t\t\t</ng-container>\n\t\t</ng-container>\n\t</ng-doc-list>\n\t<ng-template let-value #valueTemplate>\n\t\t<div ng-doc-text>\n\t\t\t<ng-doc-kind-icon\n\t\t\t\t[kind]=\"typeOf(value)\"\n\t\t\t\t[type]=\"'type'\"\n\t\t\t\t[ngDocTooltip]=\"typeOf(value)\"\n\t\t\t\tpositions=\"left-center\"\n\t\t\t\tngDocTextLeft>\n\t\t\t</ng-doc-kind-icon>\n\t\t\t<div>{{ value }}</div>\n\t\t\t<span ng-doc-text color=\"muted\" size=\"small\" *ngIf=\"value === default\" ngDocTextRight\n\t\t\t\t>[default]</span\n\t\t\t>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(default ?? null)\"\n\t\t\t(focusout)=\"touch()\"\n\t\t\t*ngIf=\"model() && model() !== default\">\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-combobox>\n", styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "component", type: NgDocComboboxComponent, selector: "ng-doc-combobox", inputs: ["readonly", "placeholder", "clearButton", "rightContent", "valueContent"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: NgDocDataDirective, selector: "[ngDocData]" }, { kind: "component", type: NgDocListComponent, selector: "ng-doc-list" }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: NgDocOptionComponent, selector: "ng-doc-option" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: NgDocTextComponent, selector: "[ng-doc-text]", inputs: ["size", "color", "align", "absoluteContent"] }, { kind: "component", type: NgDocKindIconComponent, selector: "ng-doc-kind-icon", inputs: ["kind", "type"] }, { kind: "directive", type: NgDocTextLeftDirective, selector: "[ngDocTextLeft]" }, { 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"] }, { kind: "directive", type: NgDocTextRightDirective, selector: "[ngDocTextRight]" }, { kind: "component", type: NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon]", inputs: ["size", "rounded"] }, { kind: "directive", type: NgDocFocusableDirective, selector: "[ngDocFocusable]", inputs: ["ngDocFocusable"], exportAs: ["ngDocFocusable"] }, { kind: "component", type: NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "customIcon", "size"] }, { kind: "pipe", type: NgDocExtractValuePipe, name: "ngDocExtractValue" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
23
23
|
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.2", ngImport: i0, type: NgDocTypeAliasControlComponent, decorators: [{
|
|
25
25
|
type: Component,
|
|
26
26
|
args: [{ selector: 'ng-doc-type-alias-control', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
27
27
|
NgDocComboboxComponent,
|
|
@@ -41,8 +41,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImpor
|
|
|
41
41
|
NgDocFocusableDirective,
|
|
42
42
|
NgDocIconComponent,
|
|
43
43
|
NgDocExtractValuePipe,
|
|
44
|
-
], template: "<ng-doc-combobox\n\t[ngModel]=\"model\"\n\t[readonly]=\"true\"\n\t[valueContent]=\"valueTemplate\"\n\t[clearButton]=\"false\"\n\t[rightContent]=\"rightContent\"\n\t(ngModelChange)=\"changeModel($event)\">\n\t<ng-doc-list *ngDocData>\n\t\t<ng-container *ngFor=\"let option of options\">\n\t\t\t<ng-container *ngIf=\"option | ngDocExtractValue as value\">\n\t\t\t\t<ng-doc-option [value]=\"value\">\n\t\t\t\t\t<ng-container\n\t\t\t\t\t\t*ngTemplateOutlet=\"valueTemplate; context: { $implicit: value }\"></ng-container>\n\t\t\t\t</ng-doc-option>\n\t\t\t</ng-container>\n\t\t</ng-container>\n\t</ng-doc-list>\n\t<ng-template let-value #valueTemplate>\n\t\t<div ng-doc-text>\n\t\t\t<ng-doc-kind-icon\n\t\t\t\t[kind]=\"typeOf(value)\"\n\t\t\t\t[type]=\"'type'\"\n\t\t\t\t[ngDocTooltip]=\"typeOf(value)\"\n\t\t\t\tpositions=\"left-center\"\n\t\t\t\tngDocTextLeft>\n\t\t\t</ng-doc-kind-icon>\n\t\t\t<div>{{ value }}</div>\n\t\t\t<span ng-doc-text color=\"muted\" size=\"small\" *ngIf=\"value === default\" ngDocTextRight\n\t\t\t\t>[default]</span\n\t\t\t>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(default ?? null)\"\n\t\t\t(focusout)=\"
|
|
45
|
-
}], ctorParameters:
|
|
44
|
+
], template: "<ng-doc-combobox\n\t[ngModel]=\"model()\"\n\t[readonly]=\"true\"\n\t[valueContent]=\"valueTemplate\"\n\t[clearButton]=\"false\"\n\t[rightContent]=\"rightContent\"\n\t(ngModelChange)=\"changeModel($event)\">\n\t<ng-doc-list *ngDocData>\n\t\t<ng-container *ngFor=\"let option of options\">\n\t\t\t<ng-container *ngIf=\"option | ngDocExtractValue as value\">\n\t\t\t\t<ng-doc-option [value]=\"value\">\n\t\t\t\t\t<ng-container\n\t\t\t\t\t\t*ngTemplateOutlet=\"valueTemplate; context: { $implicit: value }\"></ng-container>\n\t\t\t\t</ng-doc-option>\n\t\t\t</ng-container>\n\t\t</ng-container>\n\t</ng-doc-list>\n\t<ng-template let-value #valueTemplate>\n\t\t<div ng-doc-text>\n\t\t\t<ng-doc-kind-icon\n\t\t\t\t[kind]=\"typeOf(value)\"\n\t\t\t\t[type]=\"'type'\"\n\t\t\t\t[ngDocTooltip]=\"typeOf(value)\"\n\t\t\t\tpositions=\"left-center\"\n\t\t\t\tngDocTextLeft>\n\t\t\t</ng-doc-kind-icon>\n\t\t\t<div>{{ value }}</div>\n\t\t\t<span ng-doc-text color=\"muted\" size=\"small\" *ngIf=\"value === default\" ngDocTextRight\n\t\t\t\t>[default]</span\n\t\t\t>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(default ?? null)\"\n\t\t\t(focusout)=\"touch()\"\n\t\t\t*ngIf=\"model() && model() !== default\">\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-combobox>\n", styles: [":host{display:block;width:100%}\n"] }]
|
|
45
|
+
}], ctorParameters: () => [], propDecorators: { default: [{
|
|
46
46
|
type: Input
|
|
47
47
|
}] } });
|
|
48
48
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-type-controls-type-alias-control.mjs","sources":["../../../../libs/app/type-controls/type-alias-control/type-alias-control.component.ts","../../../../libs/app/type-controls/type-alias-control/type-alias-control.component.html","../../../../libs/app/type-controls/type-alias-control/ng-doc-app-type-controls-type-alias-control.ts"],"sourcesContent":["import { NgFor, NgIf, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { NgDocKindIconComponent } from '@ng-doc/app/components/kind-icon';\nimport { NgDocTypeControl } from '@ng-doc/app/interfaces';\nimport { NgDocExtractValuePipe } from '@ng-doc/app/pipes/extract-value';\nimport {\n\tNgDocButtonIconComponent,\n\tNgDocComboboxComponent,\n\tNgDocDataDirective,\n\tNgDocFocusableDirective,\n\tNgDocIconComponent,\n\tNgDocListComponent,\n\tNgDocOptionComponent,\n\tNgDocTextComponent,\n\tNgDocTextLeftDirective,\n\tNgDocTextRightDirective,\n\tNgDocTooltipDirective,\n} from '@ng-doc/ui-kit';\nimport {
|
|
1
|
+
{"version":3,"file":"ng-doc-app-type-controls-type-alias-control.mjs","sources":["../../../../libs/app/type-controls/type-alias-control/type-alias-control.component.ts","../../../../libs/app/type-controls/type-alias-control/type-alias-control.component.html","../../../../libs/app/type-controls/type-alias-control/ng-doc-app-type-controls-type-alias-control.ts"],"sourcesContent":["import { NgFor, NgIf, NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { NgDocKindIconComponent } from '@ng-doc/app/components/kind-icon';\nimport { NgDocTypeControl } from '@ng-doc/app/interfaces';\nimport { NgDocExtractValuePipe } from '@ng-doc/app/pipes/extract-value';\nimport {\n\tNgDocButtonIconComponent,\n\tNgDocComboboxComponent,\n\tNgDocDataDirective,\n\tNgDocFocusableDirective,\n\tNgDocIconComponent,\n\tNgDocListComponent,\n\tNgDocOptionComponent,\n\tNgDocTextComponent,\n\tNgDocTextLeftDirective,\n\tNgDocTextRightDirective,\n\tNgDocTooltipDirective,\n} from '@ng-doc/ui-kit';\nimport { DIControl } from 'di-controls';\n\n@Component({\n\tselector: 'ng-doc-type-alias-control',\n\ttemplateUrl: './type-alias-control.component.html',\n\tstyleUrls: ['./type-alias-control.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n\tstandalone: true,\n\timports: [\n\t\tNgDocComboboxComponent,\n\t\tFormsModule,\n\t\tNgDocDataDirective,\n\t\tNgDocListComponent,\n\t\tNgFor,\n\t\tNgIf,\n\t\tNgDocOptionComponent,\n\t\tNgTemplateOutlet,\n\t\tNgDocTextComponent,\n\t\tNgDocKindIconComponent,\n\t\tNgDocTextLeftDirective,\n\t\tNgDocTooltipDirective,\n\t\tNgDocTextRightDirective,\n\t\tNgDocButtonIconComponent,\n\t\tNgDocFocusableDirective,\n\t\tNgDocIconComponent,\n\t\tNgDocExtractValuePipe,\n\t],\n})\nexport class NgDocTypeAliasControlComponent<T> extends DIControl<T> implements NgDocTypeControl<T> {\n\t@Input()\n\tdefault?: T;\n\n\toptions?: string[];\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\ttypeOf(value: unknown): string {\n\t\treturn typeof value;\n\t}\n\n\tchangeModel(value: T | null): void {\n\t\tthis.updateModel(value === null && this.default ? this.default : value);\n\t}\n}\n","<ng-doc-combobox\n\t[ngModel]=\"model()\"\n\t[readonly]=\"true\"\n\t[valueContent]=\"valueTemplate\"\n\t[clearButton]=\"false\"\n\t[rightContent]=\"rightContent\"\n\t(ngModelChange)=\"changeModel($event)\">\n\t<ng-doc-list *ngDocData>\n\t\t<ng-container *ngFor=\"let option of options\">\n\t\t\t<ng-container *ngIf=\"option | ngDocExtractValue as value\">\n\t\t\t\t<ng-doc-option [value]=\"value\">\n\t\t\t\t\t<ng-container\n\t\t\t\t\t\t*ngTemplateOutlet=\"valueTemplate; context: { $implicit: value }\"></ng-container>\n\t\t\t\t</ng-doc-option>\n\t\t\t</ng-container>\n\t\t</ng-container>\n\t</ng-doc-list>\n\t<ng-template let-value #valueTemplate>\n\t\t<div ng-doc-text>\n\t\t\t<ng-doc-kind-icon\n\t\t\t\t[kind]=\"typeOf(value)\"\n\t\t\t\t[type]=\"'type'\"\n\t\t\t\t[ngDocTooltip]=\"typeOf(value)\"\n\t\t\t\tpositions=\"left-center\"\n\t\t\t\tngDocTextLeft>\n\t\t\t</ng-doc-kind-icon>\n\t\t\t<div>{{ value }}</div>\n\t\t\t<span ng-doc-text color=\"muted\" size=\"small\" *ngIf=\"value === default\" ngDocTextRight\n\t\t\t\t>[default]</span\n\t\t\t>\n\t\t</div>\n\t</ng-template>\n\t<ng-template #rightContent>\n\t\t<button\n\t\t\tng-doc-button-icon\n\t\t\tsize=\"large\"\n\t\t\t[ngDocFocusable]=\"false\"\n\t\t\t[disabled]=\"disabled\"\n\t\t\t[rounded]=\"false\"\n\t\t\t(click)=\"updateModel(default ?? null)\"\n\t\t\t(focusout)=\"touch()\"\n\t\t\t*ngIf=\"model() && model() !== default\">\n\t\t\t<ng-doc-icon icon=\"x\"></ng-doc-icon>\n\t\t</button>\n\t</ng-template>\n</ng-doc-combobox>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AA+CM,MAAO,8BAAkC,SAAQ,SAAY,CAAA;AAMlE,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;KACR;AAED,IAAA,MAAM,CAAC,KAAc,EAAA;QACpB,OAAO,OAAO,KAAK,CAAC;KACpB;AAED,IAAA,WAAW,CAAC,KAAe,EAAA;QAC1B,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;KACxE;8GAhBW,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAA9B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,8BAA8B,EC/C3C,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,2BAAA,EAAA,MAAA,EAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,s9CA8CA,EDlBE,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,sBAAsB,+IACtB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B,gBAAgB;wBAChB,kBAAkB;wBAClB,sBAAsB;wBACtB,sBAAsB;wBACtB,qBAAqB;wBACrB,uBAAuB;wBACvB,wBAAwB;wBACxB,uBAAuB;wBACvB,kBAAkB;wBAClB,qBAAqB;AACrB,qBAAA,EAAA,QAAA,EAAA,s9CAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,CAAA;wDAID,OAAO,EAAA,CAAA;sBADN,KAAK;;;AEhDP;;AAEG;;;;"}
|
|
@@ -14,14 +14,12 @@ export interface NgDocPageProcessor<T = unknown> {
|
|
|
14
14
|
selector: string;
|
|
15
15
|
/**
|
|
16
16
|
* Extract options for Angular component from html node.
|
|
17
|
-
*
|
|
18
17
|
* @param element - Html node to extract options from.
|
|
19
18
|
* @param root - Root html node.
|
|
20
19
|
*/
|
|
21
20
|
extractOptions: (element: Element, root: HTMLElement) => NgDocProcessorOptions<T>;
|
|
22
21
|
/**
|
|
23
22
|
* Can be used to find a node to replace instead of the node that was found by selector.
|
|
24
|
-
*
|
|
25
23
|
* @param element - Html node to replace.
|
|
26
24
|
*/
|
|
27
25
|
nodeToReplace?: (element: Element) => Element;
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ng-doc/app",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.18.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": ">=
|
|
6
|
-
"@angular/core": ">=
|
|
7
|
-
"@angular/cdk": ">=
|
|
8
|
-
"@angular/router": ">=
|
|
5
|
+
"@angular/common": ">=17.0.0",
|
|
6
|
+
"@angular/core": ">=17.0.0",
|
|
7
|
+
"@angular/cdk": ">=17.0.0",
|
|
8
|
+
"@angular/router": ">=17.0.0",
|
|
9
9
|
"@ng-web-apis/common": "2.0.1",
|
|
10
10
|
"rxjs": "^7.0.0",
|
|
11
|
-
"
|
|
11
|
+
"di-controls": "2.1.0"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"tslib": "^2.
|
|
15
|
-
"@ng-doc/core": "16.
|
|
16
|
-
"@ng-doc/ui-kit": "16.
|
|
14
|
+
"tslib": "^2.6.2",
|
|
15
|
+
"@ng-doc/core": "16.18.0",
|
|
16
|
+
"@ng-doc/ui-kit": "16.18.0",
|
|
17
17
|
"@orama/plugin-match-highlight": "1.0.2",
|
|
18
18
|
"@orama/stemmers": "1.0.2",
|
|
19
19
|
"highlight.js": "11.5.1"
|
|
@@ -51,6 +51,12 @@
|
|
|
51
51
|
"esm": "./esm2022/constants/ng-doc-app-constants.mjs",
|
|
52
52
|
"default": "./fesm2022/ng-doc-app-constants.mjs"
|
|
53
53
|
},
|
|
54
|
+
"./defaults": {
|
|
55
|
+
"types": "./defaults/index.d.ts",
|
|
56
|
+
"esm2022": "./esm2022/defaults/ng-doc-app-defaults.mjs",
|
|
57
|
+
"esm": "./esm2022/defaults/ng-doc-app-defaults.mjs",
|
|
58
|
+
"default": "./fesm2022/ng-doc-app-defaults.mjs"
|
|
59
|
+
},
|
|
54
60
|
"./directives": {
|
|
55
61
|
"types": "./directives/index.d.ts",
|
|
56
62
|
"esm2022": "./esm2022/directives/ng-doc-app-directives.mjs",
|
|
@@ -63,12 +69,6 @@
|
|
|
63
69
|
"esm": "./esm2022/helpers/ng-doc-app-helpers.mjs",
|
|
64
70
|
"default": "./fesm2022/ng-doc-app-helpers.mjs"
|
|
65
71
|
},
|
|
66
|
-
"./defaults": {
|
|
67
|
-
"types": "./defaults/index.d.ts",
|
|
68
|
-
"esm2022": "./esm2022/defaults/ng-doc-app-defaults.mjs",
|
|
69
|
-
"esm": "./esm2022/defaults/ng-doc-app-defaults.mjs",
|
|
70
|
-
"default": "./fesm2022/ng-doc-app-defaults.mjs"
|
|
71
|
-
},
|
|
72
72
|
"./interfaces": {
|
|
73
73
|
"types": "./interfaces/index.d.ts",
|
|
74
74
|
"esm2022": "./esm2022/interfaces/ng-doc-app-interfaces.mjs",
|
|
@@ -105,18 +105,18 @@
|
|
|
105
105
|
"esm": "./esm2022/tokens/ng-doc-app-tokens.mjs",
|
|
106
106
|
"default": "./fesm2022/ng-doc-app-tokens.mjs"
|
|
107
107
|
},
|
|
108
|
-
"./types": {
|
|
109
|
-
"types": "./types/index.d.ts",
|
|
110
|
-
"esm2022": "./esm2022/types/ng-doc-app-types.mjs",
|
|
111
|
-
"esm": "./esm2022/types/ng-doc-app-types.mjs",
|
|
112
|
-
"default": "./fesm2022/ng-doc-app-types.mjs"
|
|
113
|
-
},
|
|
114
108
|
"./type-controls": {
|
|
115
109
|
"types": "./type-controls/index.d.ts",
|
|
116
110
|
"esm2022": "./esm2022/type-controls/ng-doc-app-type-controls.mjs",
|
|
117
111
|
"esm": "./esm2022/type-controls/ng-doc-app-type-controls.mjs",
|
|
118
112
|
"default": "./fesm2022/ng-doc-app-type-controls.mjs"
|
|
119
113
|
},
|
|
114
|
+
"./types": {
|
|
115
|
+
"types": "./types/index.d.ts",
|
|
116
|
+
"esm2022": "./esm2022/types/ng-doc-app-types.mjs",
|
|
117
|
+
"esm": "./esm2022/types/ng-doc-app-types.mjs",
|
|
118
|
+
"default": "./fesm2022/ng-doc-app-types.mjs"
|
|
119
|
+
},
|
|
120
120
|
"./classes/default-search-engine": {
|
|
121
121
|
"types": "./classes/default-search-engine/index.d.ts",
|
|
122
122
|
"esm2022": "./esm2022/classes/default-search-engine/ng-doc-app-classes-default-search-engine.mjs",
|
|
@@ -261,18 +261,6 @@
|
|
|
261
261
|
"esm": "./esm2022/components/toc/ng-doc-app-components-toc.mjs",
|
|
262
262
|
"default": "./fesm2022/ng-doc-app-components-toc.mjs"
|
|
263
263
|
},
|
|
264
|
-
"./directives/code-highlighter": {
|
|
265
|
-
"types": "./directives/code-highlighter/index.d.ts",
|
|
266
|
-
"esm2022": "./esm2022/directives/code-highlighter/ng-doc-app-directives-code-highlighter.mjs",
|
|
267
|
-
"esm": "./esm2022/directives/code-highlighter/ng-doc-app-directives-code-highlighter.mjs",
|
|
268
|
-
"default": "./fesm2022/ng-doc-app-directives-code-highlighter.mjs"
|
|
269
|
-
},
|
|
270
|
-
"./directives/route-active": {
|
|
271
|
-
"types": "./directives/route-active/index.d.ts",
|
|
272
|
-
"esm2022": "./esm2022/directives/route-active/ng-doc-app-directives-route-active.mjs",
|
|
273
|
-
"esm": "./esm2022/directives/route-active/ng-doc-app-directives-route-active.mjs",
|
|
274
|
-
"default": "./fesm2022/ng-doc-app-directives-route-active.mjs"
|
|
275
|
-
},
|
|
276
264
|
"./defaults/default-processors": {
|
|
277
265
|
"types": "./defaults/default-processors/index.d.ts",
|
|
278
266
|
"esm2022": "./esm2022/defaults/default-processors/ng-doc-app-defaults-default-processors.mjs",
|
|
@@ -285,24 +273,36 @@
|
|
|
285
273
|
"esm": "./esm2022/defaults/default-skeleton/ng-doc-app-defaults-default-skeleton.mjs",
|
|
286
274
|
"default": "./fesm2022/ng-doc-app-defaults-default-skeleton.mjs"
|
|
287
275
|
},
|
|
276
|
+
"./directives/code-highlighter": {
|
|
277
|
+
"types": "./directives/code-highlighter/index.d.ts",
|
|
278
|
+
"esm2022": "./esm2022/directives/code-highlighter/ng-doc-app-directives-code-highlighter.mjs",
|
|
279
|
+
"esm": "./esm2022/directives/code-highlighter/ng-doc-app-directives-code-highlighter.mjs",
|
|
280
|
+
"default": "./fesm2022/ng-doc-app-directives-code-highlighter.mjs"
|
|
281
|
+
},
|
|
282
|
+
"./directives/route-active": {
|
|
283
|
+
"types": "./directives/route-active/index.d.ts",
|
|
284
|
+
"esm2022": "./esm2022/directives/route-active/ng-doc-app-directives-route-active.mjs",
|
|
285
|
+
"esm": "./esm2022/directives/route-active/ng-doc-app-directives-route-active.mjs",
|
|
286
|
+
"default": "./fesm2022/ng-doc-app-directives-route-active.mjs"
|
|
287
|
+
},
|
|
288
288
|
"./pipes/extract-value": {
|
|
289
289
|
"types": "./pipes/extract-value/index.d.ts",
|
|
290
290
|
"esm2022": "./esm2022/pipes/extract-value/ng-doc-app-pipes-extract-value.mjs",
|
|
291
291
|
"esm": "./esm2022/pipes/extract-value/ng-doc-app-pipes-extract-value.mjs",
|
|
292
292
|
"default": "./fesm2022/ng-doc-app-pipes-extract-value.mjs"
|
|
293
293
|
},
|
|
294
|
-
"./pipes/sanitize-html": {
|
|
295
|
-
"types": "./pipes/sanitize-html/index.d.ts",
|
|
296
|
-
"esm2022": "./esm2022/pipes/sanitize-html/ng-doc-app-pipes-sanitize-html.mjs",
|
|
297
|
-
"esm": "./esm2022/pipes/sanitize-html/ng-doc-app-pipes-sanitize-html.mjs",
|
|
298
|
-
"default": "./fesm2022/ng-doc-app-pipes-sanitize-html.mjs"
|
|
299
|
-
},
|
|
300
294
|
"./pipes/filter-by-text": {
|
|
301
295
|
"types": "./pipes/filter-by-text/index.d.ts",
|
|
302
296
|
"esm2022": "./esm2022/pipes/filter-by-text/ng-doc-app-pipes-filter-by-text.mjs",
|
|
303
297
|
"esm": "./esm2022/pipes/filter-by-text/ng-doc-app-pipes-filter-by-text.mjs",
|
|
304
298
|
"default": "./fesm2022/ng-doc-app-pipes-filter-by-text.mjs"
|
|
305
299
|
},
|
|
300
|
+
"./pipes/sanitize-html": {
|
|
301
|
+
"types": "./pipes/sanitize-html/index.d.ts",
|
|
302
|
+
"esm2022": "./esm2022/pipes/sanitize-html/ng-doc-app-pipes-sanitize-html.mjs",
|
|
303
|
+
"esm": "./esm2022/pipes/sanitize-html/ng-doc-app-pipes-sanitize-html.mjs",
|
|
304
|
+
"default": "./fesm2022/ng-doc-app-pipes-sanitize-html.mjs"
|
|
305
|
+
},
|
|
306
306
|
"./processors/page-processor": {
|
|
307
307
|
"types": "./processors/page-processor/index.d.ts",
|
|
308
308
|
"esm2022": "./esm2022/processors/page-processor/ng-doc-app-processors-page-processor.mjs",
|
|
@@ -21,7 +21,6 @@ export interface NgDocApplicationConfig {
|
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* Provides the NgDoc application configuration.
|
|
24
|
-
*
|
|
25
24
|
* @param config - The optional application configuration.
|
|
26
25
|
*/
|
|
27
26
|
export declare function provideNgDocApp(config?: NgDocApplicationConfig): Provider[];
|
|
@@ -12,7 +12,6 @@ import { Constructor } from '@ng-doc/core';
|
|
|
12
12
|
export declare function providePlaygroundDemo(playgroundId: string, component: Constructor<unknown>): Provider;
|
|
13
13
|
/**
|
|
14
14
|
* Returns the token for the given playground id.
|
|
15
|
-
*
|
|
16
15
|
* @param playgroundId
|
|
17
16
|
*/
|
|
18
17
|
export declare function getPlaygroundDemoToken<T>(playgroundId: string): InjectionToken<T[]> | undefined;
|
|
@@ -5,7 +5,6 @@ import { Constructor } from '@ng-doc/core';
|
|
|
5
5
|
* Provides the `NgDocSearchEngine` to enable search in the documentation.
|
|
6
6
|
*
|
|
7
7
|
* You can create and provide your own `NgDocSearchEngine` if you want to handle the search yourself.
|
|
8
|
-
*
|
|
9
8
|
* @param engine - The search engine class.
|
|
10
9
|
* @param args - The arguments for the search engine class.
|
|
11
10
|
* @returns The provider for the search engine.
|
|
@@ -10,7 +10,6 @@ import { Constructor } from '@ng-doc/core';
|
|
|
10
10
|
export declare function provideTypeControl(type: string, control: Constructor<NgDocTypeControl>, options?: NgDocTypeControlProviderOptions): Provider;
|
|
11
11
|
/**
|
|
12
12
|
* Returns token for type control based on provided type
|
|
13
|
-
*
|
|
14
13
|
* @param type - type for searched control (e.g. `string`)
|
|
15
14
|
*/
|
|
16
15
|
export declare function getTokenForType(type: string): InjectionToken<NgDocProvidedTypeControl> | undefined;
|
|
@@ -26,7 +26,6 @@ export declare class NgDocThemeService {
|
|
|
26
26
|
get isAutoThemeEnabled(): boolean;
|
|
27
27
|
/**
|
|
28
28
|
* Enables automatic theme switching based on the user's operating system settings.
|
|
29
|
-
*
|
|
30
29
|
* @param light - Theme for light mode.
|
|
31
30
|
* @param dark - Theme for dark mode.
|
|
32
31
|
*/
|
|
@@ -37,7 +36,6 @@ export declare class NgDocThemeService {
|
|
|
37
36
|
disableAutoTheme(): Promise<void>;
|
|
38
37
|
/**
|
|
39
38
|
* Sets the theme by id.
|
|
40
|
-
*
|
|
41
39
|
* @param id - Theme id.
|
|
42
40
|
* @param save - Whether to save the theme in the store to restore it when the page is reloaded. (`true` by default)
|
|
43
41
|
*/
|
package/styles/global.css
CHANGED
package/styles/main.css
CHANGED
|
@@ -5,13 +5,11 @@ export declare const NG_DOC_PAGE_CUSTOM_PROCESSOR: InjectionToken<NgDocPageProce
|
|
|
5
5
|
/**
|
|
6
6
|
* Provide a main processor to replace html nodes with an Angular component.
|
|
7
7
|
* Main processors are run before custom processors.
|
|
8
|
-
*
|
|
9
8
|
* @param processors - The processor to provide.
|
|
10
9
|
*/
|
|
11
10
|
export declare function provideMainPageProcessor<T>(processors: NgDocPageProcessor<T> | Array<NgDocPageProcessor<T>>): Provider[];
|
|
12
11
|
/**
|
|
13
12
|
* Provide a processor to replace html nodes with an Angular component.
|
|
14
|
-
*
|
|
15
13
|
* @param processors - The processor to provide.
|
|
16
14
|
*/
|
|
17
15
|
export declare function providePageProcessor<T>(processors: NgDocPageProcessor<T> | Array<NgDocPageProcessor<T>>): Provider[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NgDocTypeControl } from '@ng-doc/app/interfaces';
|
|
2
|
-
import {
|
|
2
|
+
import { DIControl } from 'di-controls';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgDocBooleanControlComponent extends
|
|
4
|
+
export declare class NgDocBooleanControlComponent extends DIControl<boolean | undefined> implements NgDocTypeControl<boolean | undefined> {
|
|
5
5
|
default?: boolean;
|
|
6
6
|
name: string;
|
|
7
7
|
description: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NgDocTypeControl } from '@ng-doc/app/interfaces';
|
|
2
|
-
import {
|
|
2
|
+
import { DIControl } from 'di-controls';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgDocNumberControlComponent extends
|
|
4
|
+
export declare class NgDocNumberControlComponent extends DIControl<number> implements NgDocTypeControl<number> {
|
|
5
5
|
default?: number;
|
|
6
6
|
constructor();
|
|
7
7
|
changeModel(value: number | null): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NgDocTypeControl } from '@ng-doc/app/interfaces';
|
|
2
|
-
import {
|
|
2
|
+
import { DIControl } from 'di-controls';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgDocStringControlComponent extends
|
|
4
|
+
export declare class NgDocStringControlComponent extends DIControl<string> implements NgDocTypeControl<string> {
|
|
5
5
|
default?: string;
|
|
6
6
|
constructor();
|
|
7
7
|
changeModel(value: string | null): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NgDocTypeControl } from '@ng-doc/app/interfaces';
|
|
2
|
-
import {
|
|
2
|
+
import { DIControl } from 'di-controls';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NgDocTypeAliasControlComponent<T> extends
|
|
4
|
+
export declare class NgDocTypeAliasControlComponent<T> extends DIControl<T> implements NgDocTypeControl<T> {
|
|
5
5
|
default?: T;
|
|
6
6
|
options?: string[];
|
|
7
7
|
constructor();
|