@ng-doc/app 15.11.3 → 15.13.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/README.md +1 -1
- package/components/navbar/navbar.component.d.ts +9 -1
- package/components/playground/index.d.ts +1 -0
- package/components/playground/playground-properties/playground-properties.component.d.ts +12 -3
- package/components/playground/playground-property/playground-property.component.d.ts +6 -7
- package/components/playground/playground-property-control.d.ts +7 -0
- package/components/playground/playground.module.d.ts +1 -1
- package/components/root/root.component.d.ts +26 -2
- package/components/root/root.module.d.ts +3 -2
- package/esm2020/components/breadcrumb/breadcrumb.component.mjs +2 -2
- package/esm2020/components/navbar/navbar.component.mjs +20 -4
- package/esm2020/components/page/page.component.mjs +2 -2
- package/esm2020/components/playground/index.mjs +2 -1
- package/esm2020/components/playground/playground-properties/playground-properties.component.mjs +76 -7
- package/esm2020/components/playground/playground-property/playground-property.component.mjs +21 -48
- package/esm2020/components/playground/playground-property-control.mjs +2 -0
- package/esm2020/components/playground/playground.module.mjs +10 -4
- package/esm2020/components/root/root.component.mjs +49 -6
- package/esm2020/components/root/root.module.mjs +6 -5
- package/esm2020/components/search/search.component.mjs +3 -3
- package/esm2020/components/theme-toggle/theme-toggle.component.mjs +3 -3
- package/esm2020/constants/store-keys.mjs +2 -2
- package/esm2020/helpers/index.mjs +2 -1
- package/esm2020/helpers/is-dark-os-theme.mjs +7 -0
- package/esm2020/interfaces/application-config.mjs +1 -1
- package/esm2020/interfaces/type-control-provider-options.mjs +1 -1
- package/esm2020/modules/root/ng-doc.module.mjs +6 -2
- package/esm2020/services/sidebar/sidebar.service.mjs +28 -24
- package/esm2020/services/theme/theme.service.mjs +61 -13
- package/esm2020/type-controls/boolean-control/boolean-control.module.mjs +2 -2
- package/esm2020/type-controls/number-control/number-control.module.mjs +2 -2
- package/esm2020/type-controls/string-control/string-control.module.mjs +2 -2
- package/esm2020/type-controls/type-alias-control/type-alias-control.module.mjs +2 -2
- package/fesm2015/ng-doc-app-components-breadcrumb.mjs +2 -2
- package/fesm2015/ng-doc-app-components-breadcrumb.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-navbar.mjs +19 -3
- package/fesm2015/ng-doc-app-components-navbar.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-page.mjs +2 -2
- package/fesm2015/ng-doc-app-components-page.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-playground.mjs +111 -60
- package/fesm2015/ng-doc-app-components-playground.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-root.mjs +52 -9
- package/fesm2015/ng-doc-app-components-root.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-search.mjs +2 -2
- package/fesm2015/ng-doc-app-components-search.mjs.map +1 -1
- package/fesm2015/ng-doc-app-components-theme-toggle.mjs +2 -2
- package/fesm2015/ng-doc-app-components-theme-toggle.mjs.map +1 -1
- package/fesm2015/ng-doc-app-constants.mjs +1 -1
- package/fesm2015/ng-doc-app-constants.mjs.map +1 -1
- package/fesm2015/ng-doc-app-helpers.mjs +8 -1
- package/fesm2015/ng-doc-app-helpers.mjs.map +1 -1
- package/fesm2015/ng-doc-app-modules-root.mjs +5 -1
- package/fesm2015/ng-doc-app-modules-root.mjs.map +1 -1
- package/fesm2015/ng-doc-app-services-sidebar.mjs +27 -23
- package/fesm2015/ng-doc-app-services-sidebar.mjs.map +1 -1
- package/fesm2015/ng-doc-app-services-theme.mjs +60 -12
- package/fesm2015/ng-doc-app-services-theme.mjs.map +1 -1
- package/fesm2015/ng-doc-app-type-controls-boolean-control.mjs +1 -1
- package/fesm2015/ng-doc-app-type-controls-boolean-control.mjs.map +1 -1
- package/fesm2015/ng-doc-app-type-controls-number-control.mjs +1 -1
- package/fesm2015/ng-doc-app-type-controls-number-control.mjs.map +1 -1
- package/fesm2015/ng-doc-app-type-controls-string-control.mjs +1 -1
- package/fesm2015/ng-doc-app-type-controls-string-control.mjs.map +1 -1
- package/fesm2015/ng-doc-app-type-controls-type-alias-control.mjs +1 -1
- package/fesm2015/ng-doc-app-type-controls-type-alias-control.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-breadcrumb.mjs +2 -2
- package/fesm2020/ng-doc-app-components-breadcrumb.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-navbar.mjs +19 -3
- package/fesm2020/ng-doc-app-components-navbar.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-page.mjs +2 -2
- package/fesm2020/ng-doc-app-components-page.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-playground.mjs +109 -60
- package/fesm2020/ng-doc-app-components-playground.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-root.mjs +52 -9
- package/fesm2020/ng-doc-app-components-root.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-search.mjs +2 -2
- package/fesm2020/ng-doc-app-components-search.mjs.map +1 -1
- package/fesm2020/ng-doc-app-components-theme-toggle.mjs +2 -2
- package/fesm2020/ng-doc-app-components-theme-toggle.mjs.map +1 -1
- package/fesm2020/ng-doc-app-constants.mjs +1 -1
- package/fesm2020/ng-doc-app-constants.mjs.map +1 -1
- package/fesm2020/ng-doc-app-helpers.mjs +8 -1
- package/fesm2020/ng-doc-app-helpers.mjs.map +1 -1
- package/fesm2020/ng-doc-app-modules-root.mjs +5 -1
- package/fesm2020/ng-doc-app-modules-root.mjs.map +1 -1
- package/fesm2020/ng-doc-app-services-sidebar.mjs +27 -23
- package/fesm2020/ng-doc-app-services-sidebar.mjs.map +1 -1
- package/fesm2020/ng-doc-app-services-theme.mjs +60 -12
- package/fesm2020/ng-doc-app-services-theme.mjs.map +1 -1
- package/fesm2020/ng-doc-app-type-controls-boolean-control.mjs +1 -1
- package/fesm2020/ng-doc-app-type-controls-boolean-control.mjs.map +1 -1
- package/fesm2020/ng-doc-app-type-controls-number-control.mjs +1 -1
- package/fesm2020/ng-doc-app-type-controls-number-control.mjs.map +1 -1
- package/fesm2020/ng-doc-app-type-controls-string-control.mjs +1 -1
- package/fesm2020/ng-doc-app-type-controls-string-control.mjs.map +1 -1
- package/fesm2020/ng-doc-app-type-controls-type-alias-control.mjs +1 -1
- package/fesm2020/ng-doc-app-type-controls-type-alias-control.mjs.map +1 -1
- package/helpers/index.d.ts +1 -0
- package/helpers/is-dark-os-theme.d.ts +4 -0
- package/interfaces/application-config.d.ts +11 -1
- package/interfaces/type-control-provider-options.d.ts +5 -0
- package/package.json +3 -3
- package/services/sidebar/sidebar.service.d.ts +3 -10
- package/services/theme/theme.service.d.ts +23 -3
- package/styles/global.css +11 -2
- package/styles/main.css +6 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-modules-root.mjs","sources":["../../../../libs/app/modules/root/ng-doc.module.ts","../../../../libs/app/modules/root/ng-doc-app-modules-root.ts"],"sourcesContent":["import {OverlayModule} from '@angular/cdk/overlay';\nimport {HttpClientModule} from '@angular/common/http';\nimport {APP_INITIALIZER, ModuleWithProviders, NgModule, Optional} from '@angular/core';\nimport {NgDocRootModule} from '@ng-doc/app/components/root';\nimport {NG_DOC_DARK_PURPLE_THEME, NG_DOC_NIGHT_THEME, NG_DOC_STORE_THEME_KEY} from '@ng-doc/app/constants';\nimport {NgDocApplicationConfig, NgDocTheme} from '@ng-doc/app/interfaces';\nimport {NgDocStoreService} from '@ng-doc/app/services/store';\nimport {NgDocThemeService} from '@ng-doc/app/services/theme';\nimport {NG_DOC_DEFAULT_THEME_ID, NG_DOC_THEME} from '@ng-doc/app/tokens';\nimport {asArray} from '@ng-doc/core/helpers/as-array';\nimport {NgDocUiKitRootModule} from '@ng-doc/ui-kit/modules/root';\n\n@NgModule({\n\timports: [HttpClientModule, OverlayModule, NgDocUiKitRootModule.forRoot()],\n\texports: [NgDocRootModule, NgDocUiKitRootModule],\n})\nexport class NgDocModule {\n\tstatic forRoot(config?: NgDocApplicationConfig): ModuleWithProviders<NgDocModule> {\n\t\treturn {\n\t\t\tngModule: NgDocModule,\n\t\t\tproviders: [\n\t\t\t\t{provide: NG_DOC_THEME, useValue: NG_DOC_NIGHT_THEME, multi: true},\n\t\t\t\t{provide: NG_DOC_THEME, useValue: NG_DOC_DARK_PURPLE_THEME, multi: true},\n\t\t\t\t...asArray(config?.themes).map((theme: NgDocTheme) => ({\n\t\t\t\t\tprovide: NG_DOC_THEME,\n\t\t\t\t\tuseValue: theme,\n\t\t\t\t\tmulti: true,\n\t\t\t\t})),\n\t\t\t\t...asArray(config?.defaultThemeId).map((themeId: string) => ({\n\t\t\t\t\tprovide: NG_DOC_DEFAULT_THEME_ID,\n\t\t\t\t\tuseValue: themeId,\n\t\t\t\t})),\n\t\t\t\t{\n\t\t\t\t\tprovide: APP_INITIALIZER,\n\t\t\t\t\tuseFactory: (themeService: NgDocThemeService, store: NgDocStoreService, defaultThemeId: string) => {\n\t\t\t\t\t\treturn () => {\n\t\t\t\t\t\t\tconst themeId: string | null = store.get(NG_DOC_STORE_THEME_KEY);\n\n\t\t\t\t\t\t\treturn themeService.set(themeId ?? defaultThemeId);\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\tmulti: true,\n\t\t\t\t\tdeps: [NgDocThemeService, NgDocStoreService, [new Optional(), NG_DOC_DEFAULT_THEME_ID]],\n\t\t\t\t},\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":"
|
|
1
|
+
{"version":3,"file":"ng-doc-app-modules-root.mjs","sources":["../../../../libs/app/modules/root/ng-doc.module.ts","../../../../libs/app/modules/root/ng-doc-app-modules-root.ts"],"sourcesContent":["import {OverlayModule} from '@angular/cdk/overlay';\nimport {HttpClientModule} from '@angular/common/http';\nimport {APP_INITIALIZER, ModuleWithProviders, NgModule, Optional} from '@angular/core';\nimport {NgDocRootModule} from '@ng-doc/app/components/root';\nimport {NG_DOC_DARK_PURPLE_THEME, NG_DOC_NIGHT_THEME, NG_DOC_STORE_THEME_KEY} from '@ng-doc/app/constants';\nimport {isDarkOsTheme} from '@ng-doc/app/helpers';\nimport {NgDocApplicationConfig, NgDocTheme} from '@ng-doc/app/interfaces';\nimport {NgDocStoreService} from '@ng-doc/app/services/store';\nimport {NgDocThemeService} from '@ng-doc/app/services/theme';\nimport {NG_DOC_DEFAULT_THEME_ID, NG_DOC_THEME} from '@ng-doc/app/tokens';\nimport {asArray} from '@ng-doc/core/helpers/as-array';\nimport {NgDocUiKitRootModule} from '@ng-doc/ui-kit/modules/root';\n\n@NgModule({\n\timports: [HttpClientModule, OverlayModule, NgDocUiKitRootModule.forRoot()],\n\texports: [NgDocRootModule, NgDocUiKitRootModule],\n})\nexport class NgDocModule {\n\tstatic forRoot(config?: NgDocApplicationConfig): ModuleWithProviders<NgDocModule> {\n\t\treturn {\n\t\t\tngModule: NgDocModule,\n\t\t\tproviders: [\n\t\t\t\t{provide: NG_DOC_THEME, useValue: NG_DOC_NIGHT_THEME, multi: true},\n\t\t\t\t{provide: NG_DOC_THEME, useValue: NG_DOC_DARK_PURPLE_THEME, multi: true},\n\t\t\t\t...asArray(config?.themes).map((theme: NgDocTheme) => ({\n\t\t\t\t\tprovide: NG_DOC_THEME,\n\t\t\t\t\tuseValue: theme,\n\t\t\t\t\tmulti: true,\n\t\t\t\t})),\n\t\t\t\t...asArray(config?.defaultThemeId).map((themeId: string) => ({\n\t\t\t\t\tprovide: NG_DOC_DEFAULT_THEME_ID,\n\t\t\t\t\tuseValue: themeId,\n\t\t\t\t})),\n\t\t\t\t{\n\t\t\t\t\tprovide: APP_INITIALIZER,\n\t\t\t\t\tuseFactory: (themeService: NgDocThemeService, store: NgDocStoreService, defaultThemeId: string | 'auto') => {\n\t\t\t\t\t\treturn () => {\n\t\t\t\t\t\t\tconst themeId: string | null = store.get(NG_DOC_STORE_THEME_KEY);\n\n\t\t\t\t\t\t\tif (defaultThemeId === 'auto' && !themeId) {\n\t\t\t\t\t\t\t\treturn themeService.set(isDarkOsTheme() ? NG_DOC_NIGHT_THEME.id : undefined, false);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn themeService.set(themeId ?? defaultThemeId, false);\n\t\t\t\t\t\t};\n\t\t\t\t\t},\n\t\t\t\t\tmulti: true,\n\t\t\t\t\tdeps: [NgDocThemeService, NgDocStoreService, [new Optional(), NG_DOC_DEFAULT_THEME_ID]],\n\t\t\t\t},\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":";;;;;;;;;;;;;;MAiBa,WAAW,CAAA;IACvB,OAAO,OAAO,CAAC,MAA+B,EAAA;QAC7C,OAAO;AACN,YAAA,QAAQ,EAAE,WAAW;AACrB,YAAA,SAAS,EAAE;gBACV,EAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,kBAAkB,EAAE,KAAK,EAAE,IAAI,EAAC;gBAClE,EAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,wBAAwB,EAAE,KAAK,EAAE,IAAI,EAAC;AACxE,gBAAA,GAAG,OAAO,CAAC,MAAM,aAAN,MAAM,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAN,MAAM,CAAE,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,KAAiB,MAAM;AACtD,oBAAA,OAAO,EAAE,YAAY;AACrB,oBAAA,QAAQ,EAAE,KAAK;AACf,oBAAA,KAAK,EAAE,IAAI;AACX,iBAAA,CAAC,CAAC;AACH,gBAAA,GAAG,OAAO,CAAC,MAAM,aAAN,MAAM,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAN,MAAM,CAAE,cAAc,CAAC,CAAC,GAAG,CAAC,CAAC,OAAe,MAAM;AAC5D,oBAAA,OAAO,EAAE,uBAAuB;AAChC,oBAAA,QAAQ,EAAE,OAAO;AACjB,iBAAA,CAAC,CAAC;AACH,gBAAA;AACC,oBAAA,OAAO,EAAE,eAAe;oBACxB,UAAU,EAAE,CAAC,YAA+B,EAAE,KAAwB,EAAE,cAA+B,KAAI;AAC1G,wBAAA,OAAO,M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C/D,eAAe,EAAE,oBAAoB,CAAA,EAAA,CAAA,CAAA;2FAEnC,WAAW,EAAA,UAAA,EAAA,CAAA;kBAJvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,OAAO,EAAE,CAAC,gBAAgB,EAAE,aAAa,EAAE,oBAAoB,CAAC,OAAO,EAAE,CAAC;AAC1E,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,oBAAoB,CAAC;iBAChD,CAAA;;;AChBD;;AAEG;;;;"}
|
|
@@ -9,8 +9,8 @@ import { NavigationEnd, Router } from '@angular/router';
|
|
|
9
9
|
import * as i3 from '@ng-doc/ui-kit/services/scroll';
|
|
10
10
|
import { NgDocScrollService } from '@ng-doc/ui-kit/services/scroll';
|
|
11
11
|
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
12
|
-
import { BehaviorSubject,
|
|
13
|
-
import { pluck,
|
|
12
|
+
import { BehaviorSubject, combineLatest } from 'rxjs';
|
|
13
|
+
import { pluck, distinctUntilChanged, filter, debounceTime } from 'rxjs/operators';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Service for sidebar, it can be used to hide/show sidebar or to check if sidebar is collapsable.
|
|
@@ -22,39 +22,43 @@ let NgDocSidebarService = class NgDocSidebarService {
|
|
|
22
22
|
this.router = router;
|
|
23
23
|
this.scroll = scroll;
|
|
24
24
|
this.breakpoints = [Breakpoints.XSmall, Breakpoints.Small];
|
|
25
|
-
this.
|
|
26
|
-
this.observer = this.breakpointObserver
|
|
27
|
-
|
|
28
|
-
.pipe(
|
|
25
|
+
this.expanded = new BehaviorSubject(true);
|
|
26
|
+
this.observer = this.breakpointObserver
|
|
27
|
+
.observe(this.breakpoints)
|
|
28
|
+
.pipe(pluck('matches'), distinctUntilChanged(), untilDestroyed(this));
|
|
29
|
+
combineLatest([this.router.events, this.isMobileMode()])
|
|
30
|
+
.pipe(filter(([event, isMobileMode]) => event instanceof NavigationEnd && this.expanded.value && isMobileMode), debounceTime(10))
|
|
29
31
|
.subscribe(() => this.hide());
|
|
32
|
+
this.isMobileMode()
|
|
33
|
+
.pipe(untilDestroyed(this))
|
|
34
|
+
.subscribe((isMobileMode) => {
|
|
35
|
+
if (isMobileMode) {
|
|
36
|
+
this.hide();
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
this.show();
|
|
40
|
+
this.scroll.unblock();
|
|
41
|
+
}
|
|
42
|
+
});
|
|
30
43
|
}
|
|
31
44
|
/**
|
|
32
|
-
* Indicates if sidebar
|
|
33
|
-
* You can use it to start showing a button in the navbar to show/hide sidebar.
|
|
34
|
-
* This method uses media queries to check if sidebar is collapsable based on the current screen size.
|
|
45
|
+
* Indicates if sidebar is collapsable, based on the screen size.
|
|
35
46
|
*/
|
|
36
|
-
|
|
47
|
+
isMobileMode() {
|
|
37
48
|
return this.observer;
|
|
38
49
|
}
|
|
39
50
|
/**
|
|
40
51
|
* Indicates if sidebar is visible, based on the show/hide methods.
|
|
41
52
|
*/
|
|
42
|
-
visibilityChanges() {
|
|
43
|
-
return this.visible.asObservable();
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Indicates if sidebar is expanded, based on the show/hide methods and if sidebar is collapsable.
|
|
47
|
-
* This method can be used to display backdrop when sidebar is expanded.
|
|
48
|
-
*/
|
|
49
53
|
isExpanded() {
|
|
50
|
-
return this.
|
|
54
|
+
return this.expanded.asObservable();
|
|
51
55
|
}
|
|
52
56
|
/**
|
|
53
57
|
* Show sidebar, and block scrolling.
|
|
54
58
|
*/
|
|
55
59
|
show() {
|
|
56
|
-
if (!this.
|
|
57
|
-
this.
|
|
60
|
+
if (!this.expanded.value) {
|
|
61
|
+
this.expanded.next(true);
|
|
58
62
|
this.scroll.block();
|
|
59
63
|
}
|
|
60
64
|
}
|
|
@@ -62,8 +66,8 @@ let NgDocSidebarService = class NgDocSidebarService {
|
|
|
62
66
|
* Hide sidebar, and unblock scrolling.
|
|
63
67
|
*/
|
|
64
68
|
hide() {
|
|
65
|
-
if (this.
|
|
66
|
-
this.
|
|
69
|
+
if (this.expanded.value) {
|
|
70
|
+
this.expanded.next(false);
|
|
67
71
|
this.scroll.unblock();
|
|
68
72
|
}
|
|
69
73
|
}
|
|
@@ -71,7 +75,7 @@ let NgDocSidebarService = class NgDocSidebarService {
|
|
|
71
75
|
* Toggle sidebar visibility.
|
|
72
76
|
*/
|
|
73
77
|
toggle() {
|
|
74
|
-
this.
|
|
78
|
+
this.expanded.value ? this.hide() : this.show();
|
|
75
79
|
}
|
|
76
80
|
};
|
|
77
81
|
NgDocSidebarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocSidebarService, deps: [{ token: DOCUMENT }, { token: i1.BreakpointObserver }, { token: i2.Router }, { token: i3.NgDocScrollService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-services-sidebar.mjs","sources":["../../../../libs/app/services/sidebar/sidebar.service.ts","../../../../libs/app/services/sidebar/ng-doc-app-services-sidebar.ts"],"sourcesContent":["import {BreakpointObserver, Breakpoints} from '@angular/cdk/layout';\nimport {DOCUMENT} from '@angular/common';\nimport {Inject, Injectable} from '@angular/core';\nimport {Event, NavigationEnd, Router} from '@angular/router';\nimport {NgDocScrollService} from '@ng-doc/ui-kit/services/scroll';\nimport {UntilDestroy, untilDestroyed} from '@ngneat/until-destroy';\nimport {BehaviorSubject, Observable, of} from 'rxjs';\nimport {filter, pluck, startWith, switchMap} from 'rxjs/operators';\n\n/**\n * Service for sidebar, it can be used to hide/show sidebar or to check if sidebar is collapsable.\n */\n@Injectable({\n\tprovidedIn: 'root',\n})\n@UntilDestroy()\nexport class NgDocSidebarService {\n\treadonly breakpoints: string[] = [Breakpoints.XSmall, Breakpoints.Small];\n\tprotected readonly observer: Observable<boolean>;\n\tprotected readonly
|
|
1
|
+
{"version":3,"file":"ng-doc-app-services-sidebar.mjs","sources":["../../../../libs/app/services/sidebar/sidebar.service.ts","../../../../libs/app/services/sidebar/ng-doc-app-services-sidebar.ts"],"sourcesContent":["import {BreakpointObserver, Breakpoints} from '@angular/cdk/layout';\nimport {DOCUMENT} from '@angular/common';\nimport {Inject, Injectable} from '@angular/core';\nimport {Event, NavigationEnd, Router} from '@angular/router';\nimport {NgDocScrollService} from '@ng-doc/ui-kit/services/scroll';\nimport {UntilDestroy, untilDestroyed} from '@ngneat/until-destroy';\nimport {BehaviorSubject, combineLatest, Observable, of} from 'rxjs';\nimport {debounceTime, distinctUntilChanged, filter, pluck, share, startWith, switchMap, tap} from 'rxjs/operators';\n\n/**\n * Service for sidebar, it can be used to hide/show sidebar or to check if sidebar is collapsable.\n */\n@Injectable({\n\tprovidedIn: 'root',\n})\n@UntilDestroy()\nexport class NgDocSidebarService {\n\treadonly breakpoints: string[] = [Breakpoints.XSmall, Breakpoints.Small];\n\tprotected readonly observer: Observable<boolean>;\n\tprotected readonly expanded: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(true);\n\n\tconstructor(\n\t\t@Inject(DOCUMENT)\n\t\tprotected readonly document: Document,\n\t\tprotected readonly breakpointObserver: BreakpointObserver,\n\t\tprotected readonly router: Router,\n\t\tprotected readonly scroll: NgDocScrollService,\n\t) {\n\t\tthis.observer = this.breakpointObserver\n\t\t\t.observe(this.breakpoints)\n\t\t\t.pipe(pluck('matches'), distinctUntilChanged(), untilDestroyed(this));\n\n\t\tcombineLatest([this.router.events, this.isMobileMode()])\n\t\t\t.pipe(\n\t\t\t\tfilter(\n\t\t\t\t\t([event, isMobileMode]: [Event, boolean]) =>\n\t\t\t\t\t\tevent instanceof NavigationEnd && this.expanded.value && isMobileMode,\n\t\t\t\t),\n\t\t\t\tdebounceTime(10),\n\t\t\t)\n\t\t\t.subscribe(() => this.hide());\n\n\t\tthis.isMobileMode()\n\t\t\t.pipe(untilDestroyed(this))\n\t\t\t.subscribe((isMobileMode: boolean) => {\n\t\t\t\tif (isMobileMode) {\n\t\t\t\t\tthis.hide();\n\t\t\t\t} else {\n\t\t\t\t\tthis.show();\n\t\t\t\t\tthis.scroll.unblock();\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\t/**\n\t * Indicates if sidebar is collapsable, based on the screen size.\n\t */\n\tisMobileMode(): Observable<boolean> {\n\t\treturn this.observer;\n\t}\n\n\t/**\n\t * Indicates if sidebar is visible, based on the show/hide methods.\n\t */\n\tisExpanded(): Observable<boolean> {\n\t\treturn this.expanded.asObservable();\n\t}\n\n\t/**\n\t * Show sidebar, and block scrolling.\n\t */\n\tshow(): void {\n\t\tif (!this.expanded.value) {\n\t\t\tthis.expanded.next(true);\n\t\t\tthis.scroll.block();\n\t\t}\n\t}\n\n\t/**\n\t * Hide sidebar, and unblock scrolling.\n\t */\n\thide(): void {\n\t\tif (this.expanded.value) {\n\t\t\tthis.expanded.next(false);\n\t\t\tthis.scroll.unblock();\n\t\t}\n\t}\n\n\t/**\n\t * Toggle sidebar visibility.\n\t */\n\ttoggle(): void {\n\t\tthis.expanded.value ? this.hide() : this.show();\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AASA;;AAEG;AAKU,IAAA,mBAAmB,GAAzB,MAAM,mBAAmB,CAAA;AAK/B,IAAA,WAAA,CAEoB,QAAkB,EAClB,kBAAsC,EACtC,MAAc,EACd,MAA0B,EAAA;AAH1B,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;AAClB,QAAA,IAAkB,CAAA,kBAAA,GAAlB,kBAAkB,CAAoB;AACtC,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;AACd,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAoB;AATrC,QAAA,IAAW,CAAA,WAAA,GAAa,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;QAEtD,IAAA,CAAA,QAAQ,GAA6B,IAAI,eAAe,C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BAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACX,oBAAA,UAAU,EAAE,MAAM;iBAClB,CAAA;;;8BAQE,MAAM;+BAAC,QAAQ,CAAA;;;;ACtBlB;;AAEG;;;;"}
|
|
@@ -1,22 +1,51 @@
|
|
|
1
|
+
import { __decorate, __metadata } from 'tslib';
|
|
1
2
|
import { DOCUMENT } from '@angular/common';
|
|
2
3
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable, Inject } from '@angular/core';
|
|
4
|
-
import { NG_DOC_STORE_THEME_KEY } from '@ng-doc/app/constants';
|
|
5
|
-
import { NG_DOC_THEME } from '@ng-doc/app/tokens';
|
|
4
|
+
import { Injectable, Inject, Optional } from '@angular/core';
|
|
5
|
+
import { NG_DOC_NIGHT_THEME, NG_DOC_STORE_THEME_KEY } from '@ng-doc/app/constants';
|
|
6
6
|
import * as i1 from '@ng-doc/app/services/store';
|
|
7
|
+
import { NgDocStoreService } from '@ng-doc/app/services/store';
|
|
8
|
+
import { NG_DOC_THEME, NG_DOC_DEFAULT_THEME_ID } from '@ng-doc/app/tokens';
|
|
9
|
+
import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
|
|
10
|
+
import { Subject, fromEvent } from 'rxjs';
|
|
11
|
+
import { takeUntil } from 'rxjs/operators';
|
|
7
12
|
|
|
8
|
-
|
|
9
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Service for managing themes.
|
|
15
|
+
*/
|
|
16
|
+
let NgDocThemeService = class NgDocThemeService {
|
|
17
|
+
constructor(document, themes, store, defaultThemeId) {
|
|
10
18
|
this.document = document;
|
|
11
19
|
this.themes = themes;
|
|
12
20
|
this.store = store;
|
|
21
|
+
this.defaultThemeId = defaultThemeId;
|
|
13
22
|
this.theme = undefined;
|
|
23
|
+
this.theme$ = new Subject();
|
|
24
|
+
this.disableAutoTheme$ = new Subject();
|
|
25
|
+
if (defaultThemeId === 'auto') {
|
|
26
|
+
fromEvent(window.matchMedia('(prefers-color-scheme: dark)'), 'change')
|
|
27
|
+
.pipe(takeUntil(this.disableAutoTheme$), untilDestroyed(this))
|
|
28
|
+
.subscribe((event) => this.set(event.matches ? NG_DOC_NIGHT_THEME.id : undefined, false));
|
|
29
|
+
}
|
|
14
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Returns the current theme.
|
|
33
|
+
*/
|
|
15
34
|
get currentTheme() {
|
|
16
35
|
return this.theme;
|
|
17
36
|
}
|
|
18
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Sets the theme by id.
|
|
39
|
+
*
|
|
40
|
+
* @param id Theme id.
|
|
41
|
+
* @param save Whether to save the theme in the store to restore it when the page is reloaded. (`true` by default)
|
|
42
|
+
*/
|
|
43
|
+
set(id, save = true) {
|
|
19
44
|
this.removeLink();
|
|
45
|
+
if (id === 'auto') {
|
|
46
|
+
return Promise.resolve();
|
|
47
|
+
}
|
|
48
|
+
save && this.disableAutoTheme$.next();
|
|
20
49
|
if (id !== 'day' && id) {
|
|
21
50
|
const theme = this.themes.find((theme) => theme.id === id);
|
|
22
51
|
if (!theme) {
|
|
@@ -26,19 +55,29 @@ class NgDocThemeService {
|
|
|
26
55
|
this.createLinkIfNoExists();
|
|
27
56
|
if (this.linkElement) {
|
|
28
57
|
this.linkElement.href = theme.path;
|
|
29
|
-
this.store.set(NG_DOC_STORE_THEME_KEY, theme.id);
|
|
58
|
+
save && this.store.set(NG_DOC_STORE_THEME_KEY, theme.id);
|
|
30
59
|
this.theme = theme;
|
|
31
60
|
return new Promise((resolve, reject) => {
|
|
32
61
|
if (this.linkElement) {
|
|
33
|
-
this.linkElement.onload =
|
|
62
|
+
this.linkElement.onload = () => {
|
|
63
|
+
this.theme$.next(theme);
|
|
64
|
+
resolve();
|
|
65
|
+
};
|
|
34
66
|
this.linkElement.onerror = reject;
|
|
35
67
|
}
|
|
36
68
|
});
|
|
37
69
|
}
|
|
38
70
|
}
|
|
39
|
-
this.store.set(NG_DOC_STORE_THEME_KEY, 'day');
|
|
71
|
+
save && this.store.set(NG_DOC_STORE_THEME_KEY, 'day');
|
|
72
|
+
this.theme$.next(undefined);
|
|
40
73
|
return Promise.resolve();
|
|
41
74
|
}
|
|
75
|
+
/**
|
|
76
|
+
* Returns an observable that emits when the theme changes.
|
|
77
|
+
*/
|
|
78
|
+
themeChanges() {
|
|
79
|
+
return this.theme$.asObservable();
|
|
80
|
+
}
|
|
42
81
|
removeLink() {
|
|
43
82
|
var _a;
|
|
44
83
|
this.theme = undefined;
|
|
@@ -53,9 +92,13 @@ class NgDocThemeService {
|
|
|
53
92
|
this.document.getElementsByTagName('head')[0].appendChild(this.linkElement);
|
|
54
93
|
}
|
|
55
94
|
}
|
|
56
|
-
}
|
|
57
|
-
NgDocThemeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocThemeService, deps: [{ token: DOCUMENT }, { token: NG_DOC_THEME }, { token: i1.NgDocStoreService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
95
|
+
};
|
|
96
|
+
NgDocThemeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocThemeService, deps: [{ token: DOCUMENT }, { token: NG_DOC_THEME }, { token: i1.NgDocStoreService }, { token: NG_DOC_DEFAULT_THEME_ID, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
58
97
|
NgDocThemeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocThemeService, providedIn: 'root' });
|
|
98
|
+
NgDocThemeService = __decorate([
|
|
99
|
+
UntilDestroy(),
|
|
100
|
+
__metadata("design:paramtypes", [Document, Array, NgDocStoreService, String])
|
|
101
|
+
], NgDocThemeService);
|
|
59
102
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocThemeService, decorators: [{
|
|
60
103
|
type: Injectable,
|
|
61
104
|
args: [{
|
|
@@ -68,7 +111,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImpor
|
|
|
68
111
|
}] }, { type: undefined, decorators: [{
|
|
69
112
|
type: Inject,
|
|
70
113
|
args: [NG_DOC_THEME]
|
|
71
|
-
}] }, { type: i1.NgDocStoreService }
|
|
114
|
+
}] }, { type: i1.NgDocStoreService }, { type: undefined, decorators: [{
|
|
115
|
+
type: Inject,
|
|
116
|
+
args: [NG_DOC_DEFAULT_THEME_ID]
|
|
117
|
+
}, {
|
|
118
|
+
type: Optional
|
|
119
|
+
}] }];
|
|
72
120
|
} });
|
|
73
121
|
|
|
74
122
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-services-theme.mjs","sources":["../../../../libs/app/services/theme/theme.service.ts","../../../../libs/app/services/theme/ng-doc-app-services-theme.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Inject, Injectable} from '@angular/core';\nimport {NG_DOC_STORE_THEME_KEY} from '@ng-doc/app/constants';\nimport {NgDocTheme} from '@ng-doc/app/interfaces';\nimport {NgDocStoreService} from '@ng-doc/app/services/store';\nimport {NG_DOC_THEME} from '@ng-doc/app/tokens';\n\n@Injectable({\n\tprovidedIn: 'root',\n})\nexport class NgDocThemeService {\n\tprivate linkElement?: HTMLLinkElement;\n\tprivate theme: NgDocTheme | undefined = undefined;\n\n\tconstructor(\n\t\t@Inject(DOCUMENT)\n\t\tprivate readonly document: Document,\n\t\t@Inject(NG_DOC_THEME)\n\t\tprivate readonly themes: NgDocTheme[],\n\t\tprivate readonly store: NgDocStoreService,\n\t) {}\n\n\tget currentTheme(): NgDocTheme | undefined {\n\t\treturn this.theme;\n\t}\n\n\tset(id?: string): Promise<void> {\n\t\tthis.removeLink();\n\n\t\tif (id !== 'day' && id) {\n\t\t\tconst theme: NgDocTheme | undefined = this.themes.find((theme: NgDocTheme) => theme.id === id);\n\n\t\t\tif (!theme) {\n\t\t\t\tconsole.warn(\n\t\t\t\t\t`Theme with id \"${id}\" is not registered. Make sure that you registered it in the root of your application.`,\n\t\t\t\t);\n\n\t\t\t\treturn Promise.resolve();\n\t\t\t}\n\n\t\t\tthis.createLinkIfNoExists();\n\n\t\t\tif (this.linkElement) {\n\t\t\t\tthis.linkElement.href = theme.path;\n\t\t\t\
|
|
1
|
+
{"version":3,"file":"ng-doc-app-services-theme.mjs","sources":["../../../../libs/app/services/theme/theme.service.ts","../../../../libs/app/services/theme/ng-doc-app-services-theme.ts"],"sourcesContent":["import {DOCUMENT} from '@angular/common';\nimport {Inject, Injectable, Optional} from '@angular/core';\nimport {NG_DOC_NIGHT_THEME, NG_DOC_STORE_THEME_KEY} from '@ng-doc/app/constants';\nimport {NgDocTheme} from '@ng-doc/app/interfaces';\nimport {NgDocStoreService} from '@ng-doc/app/services/store';\nimport {NG_DOC_DEFAULT_THEME_ID, NG_DOC_THEME} from '@ng-doc/app/tokens';\nimport {UntilDestroy, untilDestroyed} from '@ngneat/until-destroy';\nimport {from, fromEvent, Observable, Subject} from 'rxjs';\nimport {takeUntil} from 'rxjs/operators';\n\n/**\n * Service for managing themes.\n */\n@Injectable({\n\tprovidedIn: 'root',\n})\n@UntilDestroy()\nexport class NgDocThemeService {\n\tprivate linkElement?: HTMLLinkElement;\n\tprivate theme: NgDocTheme | undefined = undefined;\n\tprivate readonly theme$: Subject<NgDocTheme | undefined> = new Subject<NgDocTheme | undefined>();\n\tprivate readonly disableAutoTheme$: Subject<void> = new Subject<void>();\n\n\tconstructor(\n\t\t@Inject(DOCUMENT)\n\t\tprivate readonly document: Document,\n\t\t@Inject(NG_DOC_THEME)\n\t\tprivate readonly themes: NgDocTheme[],\n\t\tprivate readonly store: NgDocStoreService,\n\t\t@Inject(NG_DOC_DEFAULT_THEME_ID)\n\t\t@Optional()\n\t\tprivate readonly defaultThemeId?: string | 'auto',\n\t) {\n\t\tif (defaultThemeId === 'auto') {\n\t\t\tfromEvent<MediaQueryList>(window.matchMedia('(prefers-color-scheme: dark)'), 'change')\n\t\t\t\t.pipe(takeUntil(this.disableAutoTheme$), untilDestroyed(this))\n\t\t\t\t.subscribe((event: MediaQueryList) => this.set(event.matches ? NG_DOC_NIGHT_THEME.id : undefined, false))\n\t\t}\n\t}\n\n\t/**\n\t * Returns the current theme.\n\t */\n\tget currentTheme(): NgDocTheme | undefined {\n\t\treturn this.theme;\n\t}\n\n\t/**\n\t * Sets the theme by id.\n\t *\n\t * @param id Theme id.\n\t * @param save Whether to save the theme in the store to restore it when the page is reloaded. (`true` by default)\n\t */\n\tset(id?: string | 'auto', save: boolean = true): Promise<void> {\n\t\tthis.removeLink();\n\n\t\tif (id === 'auto') {\n\t\t\treturn Promise.resolve();\n\t\t}\n\n\t\tsave && this.disableAutoTheme$.next();\n\n\t\tif (id !== 'day' && id) {\n\t\t\tconst theme: NgDocTheme | undefined = this.themes.find((theme: NgDocTheme) => theme.id === id);\n\n\t\t\tif (!theme) {\n\t\t\t\tconsole.warn(\n\t\t\t\t\t`Theme with id \"${id}\" is not registered. Make sure that you registered it in the root of your application.`,\n\t\t\t\t);\n\n\t\t\t\treturn Promise.resolve();\n\t\t\t}\n\n\t\t\tthis.createLinkIfNoExists();\n\n\t\t\tif (this.linkElement) {\n\t\t\t\tthis.linkElement.href = theme.path;\n\t\t\t\tsave && this.store.set(NG_DOC_STORE_THEME_KEY, theme.id);\n\t\t\t\tthis.theme = theme;\n\n\t\t\t\treturn new Promise<void>((resolve: () => void, reject: (err: Event | string) => void) => {\n\t\t\t\t\tif (this.linkElement) {\n\t\t\t\t\t\tthis.linkElement.onload = () => {\n\t\t\t\t\t\t\tthis.theme$.next(theme);\n\t\t\t\t\t\t\tresolve();\n\t\t\t\t\t\t};\n\t\t\t\t\t\tthis.linkElement.onerror = reject;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tsave && this.store.set(NG_DOC_STORE_THEME_KEY, 'day');\n\n\t\tthis.theme$.next(undefined);\n\n\t\treturn Promise.resolve();\n\t}\n\n\t/**\n\t * Returns an observable that emits when the theme changes.\n\t */\n\tthemeChanges(): Observable<NgDocTheme | undefined> {\n\t\treturn this.theme$.asObservable();\n\t}\n\n\tprivate removeLink(): void {\n\t\tthis.theme = undefined;\n\t\tthis.linkElement?.remove();\n\t\tthis.linkElement = undefined;\n\t}\n\tprivate createLinkIfNoExists(): void {\n\t\tif (!this.linkElement) {\n\t\t\tthis.linkElement = this.document.createElement('link');\n\t\t\tthis.linkElement.setAttribute('rel', 'stylesheet');\n\t\t\tthis.linkElement.setAttribute('type', 'text/css');\n\t\t\tthis.document.getElementsByTagName('head')[0].appendChild(this.linkElement);\n\t\t}\n\t}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAUA;;AAEG;AAKU,IAAA,iBAAiB,GAAvB,MAAM,iBAAiB,CAAA;AAM7B,IAAA,WAAA,CAEkB,QAAkB,EAElB,MAAoB,EACpB,KAAwB,EAGxB,cAAgC,EAAA;AANhC,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;AAElB,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAc;AACpB,QAAA,IAAK,CAAA,KAAA,GAAL,KAAK,CAAmB;AAGxB,QAAA,IAAc,CAAA,cAAA,GAAd,cAAc,CAAkB;AAZ1C,QAAA,IAAK,CAAA,KAAA,GAA2B,SAAS,CAAC;AACjC,QAAA,IAAA,CAAA,MAAM,GAAoC,IAAI,OAAO,EAA0B,CAAC;AAChF,QAAA,IAAA,CAAA,iBAAiB,GAAkB,IAAI,OAAO,EAAQ,CAAC;QAYvE,IAAI,cAAc,KAAK,MAAM,EAAE;YAC9B,SAAS,CAAiB,MAAM,CAAC,UAAU,CAAC,8BAA8B,CAAC,EAAE,QAAQ,CAAC;AACpF,iBAAA,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,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assMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImpor
|
|
|
21
21
|
args: [{ selector: 'ng-doc-boolean-control', providers: [provideControlHost(NgDocBooleanControlComponent)], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-doc-checkbox [ngDocTooltip]=\"description\" [canOpen]=\"!!description\">{{ name }}</ng-doc-checkbox>\n", styles: [":host{display:inline-flex;width:100%}\n"] }]
|
|
22
22
|
}], ctorParameters: function () { return []; } });
|
|
23
23
|
|
|
24
|
-
const provider = provideTypeControl('boolean', NgDocBooleanControlComponent, { hideLabel: true });
|
|
24
|
+
const provider = provideTypeControl('boolean', NgDocBooleanControlComponent, { hideLabel: true, order: 40 });
|
|
25
25
|
class NgDocBooleanControlModule {
|
|
26
26
|
}
|
|
27
27
|
NgDocBooleanControlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocBooleanControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-type-controls-boolean-control.mjs","sources":["../../../../libs/app/type-controls/boolean-control/boolean-control.component.ts","../../../../libs/app/type-controls/boolean-control/boolean-control.component.html","../../../../libs/app/type-controls/boolean-control/boolean-control.module.ts","../../../../libs/app/type-controls/boolean-control/ng-doc-app-type-controls-boolean-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {FlControlHost, provideControlHost} from 'flex-controls';\n\n@Component({\n\tselector: 'ng-doc-boolean-control',\n\ttemplateUrl: './boolean-control.component.html',\n\tstyleUrls: ['./boolean-control.component.scss'],\n\tproviders: [provideControlHost(NgDocBooleanControlComponent)],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocBooleanControlComponent extends FlControlHost<string | undefined> implements NgDocTypeControl {\n\tname: string = '';\n\tdescription: string = '';\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.controlChange.subscribe(() => this.onTouched());\n\t}\n}\n","<ng-doc-checkbox [ngDocTooltip]=\"description\" [canOpen]=\"!!description\">{{ name }}</ng-doc-checkbox>\n","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {NgDocCheckboxModule, NgDocTooltipModule} from '@ng-doc/ui-kit';\n\nimport {NgDocBooleanControlComponent} from './boolean-control.component';\n\nconst provider: Provider = provideTypeControl('boolean', NgDocBooleanControlComponent, {hideLabel: true});\n\n@NgModule({\n\tdeclarations: [NgDocBooleanControlComponent],\n\timports: [CommonModule, NgDocCheckboxModule, NgDocTooltipModule],\n\tproviders: [provider],\n\texports: [NgDocBooleanControlComponent],\n})\nexport class NgDocBooleanControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAWM,MAAO,4BAA6B,SAAQ,aAAiC,CAAA;AAIlF,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;AAJT,QAAA,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;AAClB,QAAA,IAAW,CAAA,WAAA,GAAW,EAAE,CAAC;AAKxB,QAAA,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;KACrD;;yHARW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;6GAA5B,4BAA4B,EAAA,QAAA,EAAA,wBAAA,EAAA,SAAA,EAH7B,CAAC,kBAAkB,CAAC,4BAA4B,CAAC,CAAC,iDCR9D,4GACA,EAAA,MAAA,EAAA,CAAA,yCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,sBAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,qBAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,cAAA,EAAA,OAAA,EAAA,eAAA,EAAA,eAAA,EAAA,WAAA,EAAA,SAAA,EAAA,YAAA,EAAA,WAAA,EAAA,WAAA,EAAA,QAAA,EAAA,UAAA,EAAA,UAAA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,CAAA,YAAA,EAAA,WAAA,EAAA,aAAA,EAAA,YAAA,CAAA,EAAA,QAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;2FDUa,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAPxC,SAAS;+BACC,wBAAwB,EAAA,SAAA,EAGvB,CAAC,kBAAkB,CAAA,4BAAA,CAA8B,CAAC,EAC5C,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,4GAAA,EAAA,MAAA,EAAA,CAAA,yCAAA,CAAA,EAAA,CAAA;;;AEFhD,MAAM,QAAQ,GAAa,kBAAkB,CAAC,SAAS,EAAE,4BAA4B,EAAE,EAAC,SAAS,EAAE,IAAI,EAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"ng-doc-app-type-controls-boolean-control.mjs","sources":["../../../../libs/app/type-controls/boolean-control/boolean-control.component.ts","../../../../libs/app/type-controls/boolean-control/boolean-control.component.html","../../../../libs/app/type-controls/boolean-control/boolean-control.module.ts","../../../../libs/app/type-controls/boolean-control/ng-doc-app-type-controls-boolean-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {FlControlHost, provideControlHost} from 'flex-controls';\n\n@Component({\n\tselector: 'ng-doc-boolean-control',\n\ttemplateUrl: './boolean-control.component.html',\n\tstyleUrls: ['./boolean-control.component.scss'],\n\tproviders: [provideControlHost(NgDocBooleanControlComponent)],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocBooleanControlComponent extends FlControlHost<string | undefined> implements NgDocTypeControl {\n\tname: string = '';\n\tdescription: string = '';\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.controlChange.subscribe(() => this.onTouched());\n\t}\n}\n","<ng-doc-checkbox [ngDocTooltip]=\"description\" [canOpen]=\"!!description\">{{ name }}</ng-doc-checkbox>\n","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {NgDocCheckboxModule, NgDocTooltipModule} from '@ng-doc/ui-kit';\n\nimport {NgDocBooleanControlComponent} from './boolean-control.component';\n\nconst provider: Provider = provideTypeControl('boolean', NgDocBooleanControlComponent, {hideLabel: true, order: 40});\n\n@NgModule({\n\tdeclarations: [NgDocBooleanControlComponent],\n\timports: [CommonModule, NgDocCheckboxModule, NgDocTooltipModule],\n\tproviders: [provider],\n\texports: [NgDocBooleanControlComponent],\n})\nexport class NgDocBooleanControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAWM,MAAO,4BAA6B,SAAQ,aAAiC,CAAA;AAIlF,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;AAJT,QAAA,IAAI,CAAA,IAAA,GAAW,EAAE,CAAC;AAClB,QAAA,IAAW,CAAA,WAAA,GAAW,EAAE,CAAC;AAKxB,QAAA,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;KACrD;;yHARW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;6GAA5B,4BA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A,CAAA,QAAA,EAAA,CAAA,CAAA;uHAAzB,yBAAyB,EAAA,YAAA,EAAA,CALtB,4BAA4B,CACjC,EAAA,OAAA,EAAA,CAAA,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,CAAA,EAAA,OAAA,EAAA,CAErD,4BAA4B,CAAA,EAAA,CAAA,CAAA;uHAE1B,yBAAyB,EAAA,SAAA,EAH1B,CAAC,QAAQ,CAAC,YADX,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,CAAA,EAAA,CAAA,CAAA;2FAInD,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBANrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,4BAA4B,CAAC;AAC5C,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,CAAC;oBAChE,SAAS,EAAE,CAAC,QAAQ,CAAC;oBACrB,OAAO,EAAE,CAAC,4BAA4B,CAAC;iBACvC,CAAA;;;ACdD;;AAEG;;;;"}
|
|
@@ -29,7 +29,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImpor
|
|
|
29
29
|
args: [{ selector: 'ng-doc-number-control', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-doc-input-wrapper flControlSilencer [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(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\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"] }]
|
|
30
30
|
}], ctorParameters: function () { return []; } });
|
|
31
31
|
|
|
32
|
-
const provider = provideTypeControl('number', NgDocNumberControlComponent);
|
|
32
|
+
const provider = provideTypeControl('number', NgDocNumberControlComponent, { order: 30 });
|
|
33
33
|
class NgDocNumberControlModule {
|
|
34
34
|
}
|
|
35
35
|
NgDocNumberControlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocNumberControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -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/number-control.module.ts","../../../../libs/app/type-controls/number-control/ng-doc-app-type-controls-number-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {FlControl} from 'flex-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})\nexport class NgDocNumberControlComponent extends FlControl<number> implements NgDocTypeControl {\n\tdefault: string | undefined;\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget defaultValue(): number | null {\n\t\treturn this.default ? (extractValue(this.default) as number) : null;\n\t}\n\n\tchangeModel(value: number | null): void {\n\t\tthis.updateModel(value === null && this.default ? this.defaultValue : value);\n\t}\n}\n","<ng-doc-input-wrapper flControlSilencer [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(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\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","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {\n\tNgDocButtonIconModule,\n\tNgDocClearControlModule,\n\tNgDocFocusableModule,\n\tNgDocIconModule,\n\tNgDocInputNumberModule,\n\tNgDocInputWrapperModule,\n} from '@ng-doc/ui-kit';\nimport {FlControlSilencerModule} from 'flex-controls';\n\nimport {NgDocNumberControlComponent} from './number-control.component';\n\nconst provider: Provider = provideTypeControl('number', NgDocNumberControlComponent);\n\n@NgModule({\n\tdeclarations: [NgDocNumberControlComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocInputWrapperModule,\n\t\tNgDocInputNumberModule,\n\t\tNgDocClearControlModule,\n\t\tFormsModule,\n\t\tFlControlSilencerModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocFocusableModule,\n\t\tNgDocIconModule,\n\t],\n\tproviders: [provider],\n\texports: [NgDocNumberControlComponent],\n})\nexport class NgDocNumberControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAWM,MAAO,2BAA4B,SAAQ,SAAiB,CAAA;AAGjE,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;KACR;AAED,IAAA,IAAI,YAAY,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,OAAO,GAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAY,GAAG,IAAI,CAAC;KACp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AAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,qDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,SAAA,EAAA,gBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,wBAAA,EAAA,QAAA,EAAA,mDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,uBAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;2FDNa,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBANvC,SAAS;+BACC,uBAAuB,EAAA,eAAA,EAGhB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2lBAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,CAAA;;;AEOhD,MAAM,QAAQ,GAAa,kBAAkB,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;
|
|
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/number-control.module.ts","../../../../libs/app/type-controls/number-control/ng-doc-app-type-controls-number-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {FlControl} from 'flex-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})\nexport class NgDocNumberControlComponent extends FlControl<number> implements NgDocTypeControl {\n\tdefault: string | undefined;\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget defaultValue(): number | null {\n\t\treturn this.default ? (extractValue(this.default) as number) : null;\n\t}\n\n\tchangeModel(value: number | null): void {\n\t\tthis.updateModel(value === null && this.default ? this.defaultValue : value);\n\t}\n}\n","<ng-doc-input-wrapper flControlSilencer [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(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\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","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {\n\tNgDocButtonIconModule,\n\tNgDocClearControlModule,\n\tNgDocFocusableModule,\n\tNgDocIconModule,\n\tNgDocInputNumberModule,\n\tNgDocInputWrapperModule,\n} from '@ng-doc/ui-kit';\nimport {FlControlSilencerModule} from 'flex-controls';\n\nimport {NgDocNumberControlComponent} from './number-control.component';\n\nconst provider: Provider = provideTypeControl('number', NgDocNumberControlComponent, {order: 30});\n\n@NgModule({\n\tdeclarations: [NgDocNumberControlComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocInputWrapperModule,\n\t\tNgDocInputNumberModule,\n\t\tNgDocClearControlModule,\n\t\tFormsModule,\n\t\tFlControlSilencerModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocFocusableModule,\n\t\tNgDocIconModule,\n\t],\n\tproviders: [provider],\n\texports: [NgDocNumberControlComponent],\n})\nexport class NgDocNumberControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAWM,MAAO,2BAA4B,SAAQ,SAAiB,CAAA;AAGjE,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;KACR;AAED,IAAA,IAAI,YAAY,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,OAAO,GAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAY,GAAG,IAAI,CAAC;KACpE;AAED,IAAA,WAAW,CAAC,KAAoB,EAAA;QAC/B,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;KAC7E;;wHAbW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA3B,2BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,2BAA2B,oFCXxC,2lBAiBA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,YAAA,EAAA,CAA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AC,YAVpB,YAAY;QACZ,uBAAuB;QACvB,sBAAsB;QACtB,uBAAuB;QACvB,WAAW;QACX,uBAAuB;QACvB,qBAAqB;QACrB,oBAAoB;QACpB,eAAe,CAAA,EAAA,CAAA,CAAA;2FAKJ,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAhBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,2BAA2B,CAAC;AAC3C,oBAAA,OAAO,EAAE;wBACR,YAAY;wBACZ,uBAAuB;wBACvB,sBAAsB;wBACtB,uBAAuB;wBACvB,WAAW;wBACX,uBAAuB;wBACvB,qBAAqB;wBACrB,oBAAoB;wBACpB,eAAe;AACf,qBAAA;oBACD,SAAS,EAAE,CAAC,QAAQ,CAAC;oBACrB,OAAO,EAAE,CAAC,2BAA2B,CAAC;iBACtC,CAAA;;;ACjCD;;AAEG;;;;"}
|
|
@@ -30,7 +30,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImpor
|
|
|
30
30
|
args: [{ selector: 'ng-doc-string-control', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-doc-input-wrapper [rightContent]=\"rightContent\" flControlSilencer>\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(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\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"] }]
|
|
31
31
|
}], ctorParameters: function () { return []; } });
|
|
32
32
|
|
|
33
|
-
const provider = provideTypeControl('string', NgDocStringControlComponent);
|
|
33
|
+
const provider = provideTypeControl('string', NgDocStringControlComponent, { order: 20 });
|
|
34
34
|
class NgDocStringControlModule {
|
|
35
35
|
}
|
|
36
36
|
NgDocStringControlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocStringControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -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/string-control.module.ts","../../../../libs/app/type-controls/string-control/ng-doc-app-type-controls-string-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {FlControl} from 'flex-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})\nexport class NgDocStringControlComponent extends FlControl<string> implements NgDocTypeControl {\n\tdefault?: string;\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget defaultValue(): string | null {\n\t\treturn this.default ? (extractValue(this.default) as string) : null;\n\t}\n\n\tchangeModel(value: string | null): void {\n\t\tthis.updateModel(value === null && this.default ? this.defaultValue : value);\n\t}\n}\n","<ng-doc-input-wrapper [rightContent]=\"rightContent\" flControlSilencer>\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(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\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","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {NgDocExtractValueModule} from '@ng-doc/app/pipes/extract-value';\nimport {\n\tNgDocButtonIconModule,\n\tNgDocClearControlModule,\n\tNgDocFocusableModule,\n\tNgDocIconModule,\n\tNgDocInputStringModule,\n\tNgDocInputWrapperModule,\n} from '@ng-doc/ui-kit';\nimport {FlControlSilencerModule} from 'flex-controls';\n\nimport {NgDocStringControlComponent} from './string-control.component';\n\nconst provider: Provider = provideTypeControl('string', NgDocStringControlComponent);\n\n@NgModule({\n\tdeclarations: [NgDocStringControlComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocInputWrapperModule,\n\t\tNgDocInputStringModule,\n\t\tNgDocClearControlModule,\n\t\tFormsModule,\n\t\tFlControlSilencerModule,\n\t\tNgDocExtractValueModule,\n\t\tNgDocIconModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocFocusableModule,\n\t],\n\tproviders: [provider],\n\texports: [NgDocStringControlComponent],\n})\nexport class NgDocStringControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAWM,MAAO,2BAA4B,SAAQ,SAAiB,CAAA;AAGjE,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;KACR;AAED,IAAA,IAAI,YAAY,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,OAAO,GAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAY,GAAG,IAAI,CAAC;KACpE;AAED,IAAA,WAAW,CAAC,KAAoB,EAAA;QAC/B,IAA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AA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,0BAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,QAAA,EAAA,aAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,MAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,wBAAA,EAAA,QAAA,EAAA,mDAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,uBAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;2FDNa,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBANvC,SAAS;+BACC,uBAAuB,EAAA,eAAA,EAGhB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,2kBAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,CAAA;;;AEQhD,MAAM,QAAQ,GAAa,kBAAkB,CAAC,QAAQ,EAAE,2BAA2B,CAAC,CAAC;
|
|
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/string-control.module.ts","../../../../libs/app/type-controls/string-control/ng-doc-app-type-controls-string-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {FlControl} from 'flex-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})\nexport class NgDocStringControlComponent extends FlControl<string> implements NgDocTypeControl {\n\tdefault?: string;\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget defaultValue(): string | null {\n\t\treturn this.default ? (extractValue(this.default) as string) : null;\n\t}\n\n\tchangeModel(value: string | null): void {\n\t\tthis.updateModel(value === null && this.default ? this.defaultValue : value);\n\t}\n}\n","<ng-doc-input-wrapper [rightContent]=\"rightContent\" flControlSilencer>\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(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\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","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {NgDocExtractValueModule} from '@ng-doc/app/pipes/extract-value';\nimport {\n\tNgDocButtonIconModule,\n\tNgDocClearControlModule,\n\tNgDocFocusableModule,\n\tNgDocIconModule,\n\tNgDocInputStringModule,\n\tNgDocInputWrapperModule,\n} from '@ng-doc/ui-kit';\nimport {FlControlSilencerModule} from 'flex-controls';\n\nimport {NgDocStringControlComponent} from './string-control.component';\n\nconst provider: Provider = provideTypeControl('string', NgDocStringControlComponent, {order: 20});\n\n@NgModule({\n\tdeclarations: [NgDocStringControlComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocInputWrapperModule,\n\t\tNgDocInputStringModule,\n\t\tNgDocClearControlModule,\n\t\tFormsModule,\n\t\tFlControlSilencerModule,\n\t\tNgDocExtractValueModule,\n\t\tNgDocIconModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocFocusableModule,\n\t],\n\tproviders: [provider],\n\texports: [NgDocStringControlComponent],\n})\nexport class NgDocStringControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAWM,MAAO,2BAA4B,SAAQ,SAAiB,CAAA;AAGjE,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;KACR;AAED,IAAA,IAAI,YAAY,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,OAAO,GAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAY,GAAG,IAAI,CAAC;KACpE;AAED,IAAA,WAAW,CAAC,KAAoB,EAAA;QAC/B,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,IAAI,IAAI,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;KAC7E;;wHAbW,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA3B,2BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,2BAA2B,oFCXxC,2kBAiBA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA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AA,EAAA,CAAA;kBAjBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,2BAA2B,CAAC;AAC3C,oBAAA,OAAO,EAAE;wBACR,YAAY;wBACZ,uBAAuB;wBACvB,sBAAsB;wBACtB,uBAAuB;wBACvB,WAAW;wBACX,uBAAuB;wBACvB,uBAAuB;wBACvB,eAAe;wBACf,qBAAqB;wBACrB,oBAAoB;AACpB,qBAAA;oBACD,SAAS,EAAE,CAAC,QAAQ,CAAC;oBACrB,OAAO,EAAE,CAAC,2BAA2B,CAAC;iBACtC,CAAA;;;ACnCD;;AAEG;;;;"}
|
|
@@ -35,7 +35,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImpor
|
|
|
35
35
|
args: [{ selector: 'ng-doc-type-alias-control', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-doc-combobox [ngModel]=\"model\"\n\t\t\t\t [readonly]=\"true\"\n\t\t\t\t [valueContent]=\"valueTemplate\"\n\t\t\t\t [clearButton]=\"false\"\n\t\t\t\t [rightContent]=\"rightContent\"\n\t\t\t\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 *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 [kind]=\"typeOf(value)\"\n\t\t\t\t\t\t\t [type]=\"'type'\"\n\t\t\t\t\t\t\t [ngDocTooltip]=\"typeOf(value)\"\n\t\t\t\t\t\t\t positions=\"left-center\"\n\t\t\t\t\t\t\t ngDocTextLeft>\n\t\t\t</ng-doc-kind-icon>\n\t\t\t<div>{{value}}</div>\n\t\t\t<span ng-doc-text\n\t\t\t\t color=\"muted\"\n\t\t\t\t size=\"small\"\n\t\t\t\t *ngIf=\"value === defaultValue\" ngDocTextRight>[default]</span>\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(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\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"] }]
|
|
36
36
|
}], ctorParameters: function () { return []; } });
|
|
37
37
|
|
|
38
|
-
const provider = provideTypeControl('NgDocTypeAlias', NgDocTypeAliasControlComponent);
|
|
38
|
+
const provider = provideTypeControl('NgDocTypeAlias', NgDocTypeAliasControlComponent, { order: 10 });
|
|
39
39
|
class NgDocTypeAliasControlModule {
|
|
40
40
|
}
|
|
41
41
|
NgDocTypeAliasControlModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocTypeAliasControlModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -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/type-alias-control.module.ts","../../../../libs/app/type-controls/type-alias-control/ng-doc-app-type-controls-type-alias-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {FlControl} from 'flex-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})\nexport class NgDocTypeAliasControlComponent<T> extends FlControl<T> implements NgDocTypeControl {\n\tdefault?: string;\n\toptions?: string[];\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget defaultValue(): T | null {\n\t\treturn this.default ? (extractValue(this.default) as unknown as T) : null;\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.defaultValue : value);\n\t}\n}\n","<ng-doc-combobox [ngModel]=\"model\"\n\t\t\t\t [readonly]=\"true\"\n\t\t\t\t [valueContent]=\"valueTemplate\"\n\t\t\t\t [clearButton]=\"false\"\n\t\t\t\t [rightContent]=\"rightContent\"\n\t\t\t\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 *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 [kind]=\"typeOf(value)\"\n\t\t\t\t\t\t\t [type]=\"'type'\"\n\t\t\t\t\t\t\t [ngDocTooltip]=\"typeOf(value)\"\n\t\t\t\t\t\t\t positions=\"left-center\"\n\t\t\t\t\t\t\t ngDocTextLeft>\n\t\t\t</ng-doc-kind-icon>\n\t\t\t<div>{{value}}</div>\n\t\t\t<span ng-doc-text\n\t\t\t\t color=\"muted\"\n\t\t\t\t size=\"small\"\n\t\t\t\t *ngIf=\"value === defaultValue\" ngDocTextRight>[default]</span>\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(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\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","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {NgDocKindIconModule} from '@ng-doc/app/components/kind-icon';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {NgDocExtractValueModule} from '@ng-doc/app/pipes/extract-value';\nimport {\n\tNgDocButtonIconModule,\n\tNgDocComboboxModule,\n\tNgDocDataModule,\n\tNgDocFocusableModule,\n\tNgDocIconModule,\n\tNgDocListModule,\n\tNgDocOptionModule,\n\tNgDocTextModule,\n\tNgDocTooltipModule,\n} from '@ng-doc/ui-kit';\n\nimport {NgDocTypeAliasControlComponent} from './type-alias-control.component';\n\nconst provider: Provider = provideTypeControl('NgDocTypeAlias', NgDocTypeAliasControlComponent);\n\n@NgModule({\n\tdeclarations: [NgDocTypeAliasControlComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocComboboxModule,\n\t\tNgDocDataModule,\n\t\tFormsModule,\n\t\tNgDocOptionModule,\n\t\tNgDocListModule,\n\t\tNgDocExtractValueModule,\n\t\tNgDocTextModule,\n\t\tNgDocKindIconModule,\n\t\tNgDocTooltipModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocFocusableModule,\n\t\tNgDocIconModule,\n\t],\n\tproviders: [provider],\n\texports: [NgDocTypeAliasControlComponent],\n})\nexport class NgDocTypeAliasControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAWM,MAAO,8BAAkC,SAAQ,SAAY,CAAA;AAIlE,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;KACR;AAED,IAAA,IAAI,YAAY,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,OAAO,GAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAkB,GAAG,IAAI,CAAC;KAC1E;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,YAAY,GAAG,KAAK,CAAC,CAAC;KAC7E;;2HAlBW,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA9B,8BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,8BAA8B,wFCX3C,shDA6CA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA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eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;2FDlCa,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBAN1C,SAAS;+BACC,2BAA2B,EAAA,eAAA,EAGpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,shDAAA,EAAA,MAAA,EAAA,CAAA,mCAAA,CAAA,EAAA,CAAA;;;AEWhD,MAAM,QAAQ,GAAa,kBAAkB,CAAC,gBAAgB,EAAE,8BAA8B,CAAC,CAAC;
|
|
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/type-alias-control.module.ts","../../../../libs/app/type-controls/type-alias-control/ng-doc-app-type-controls-type-alias-control.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {NgDocTypeControl} from '@ng-doc/app/interfaces';\nimport {extractValue} from '@ng-doc/core/helpers/extract-value';\nimport {FlControl} from 'flex-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})\nexport class NgDocTypeAliasControlComponent<T> extends FlControl<T> implements NgDocTypeControl {\n\tdefault?: string;\n\toptions?: string[];\n\n\tconstructor() {\n\t\tsuper();\n\t}\n\n\tget defaultValue(): T | null {\n\t\treturn this.default ? (extractValue(this.default) as unknown as T) : null;\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.defaultValue : value);\n\t}\n}\n","<ng-doc-combobox [ngModel]=\"model\"\n\t\t\t\t [readonly]=\"true\"\n\t\t\t\t [valueContent]=\"valueTemplate\"\n\t\t\t\t [clearButton]=\"false\"\n\t\t\t\t [rightContent]=\"rightContent\"\n\t\t\t\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 *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 [kind]=\"typeOf(value)\"\n\t\t\t\t\t\t\t [type]=\"'type'\"\n\t\t\t\t\t\t\t [ngDocTooltip]=\"typeOf(value)\"\n\t\t\t\t\t\t\t positions=\"left-center\"\n\t\t\t\t\t\t\t ngDocTextLeft>\n\t\t\t</ng-doc-kind-icon>\n\t\t\t<div>{{value}}</div>\n\t\t\t<span ng-doc-text\n\t\t\t\t color=\"muted\"\n\t\t\t\t size=\"small\"\n\t\t\t\t *ngIf=\"value === defaultValue\" ngDocTextRight>[default]</span>\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(defaultValue)\"\n\t\t\t(focusout)=\"onTouched()\"\n\t\t\t*ngIf=\"model && model !== defaultValue\"\n\t\t>\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","import {CommonModule} from '@angular/common';\nimport {NgModule, Provider} from '@angular/core';\nimport {FormsModule} from '@angular/forms';\nimport {NgDocKindIconModule} from '@ng-doc/app/components/kind-icon';\nimport {provideTypeControl} from '@ng-doc/app/helpers';\nimport {NgDocExtractValueModule} from '@ng-doc/app/pipes/extract-value';\nimport {\n\tNgDocButtonIconModule,\n\tNgDocComboboxModule,\n\tNgDocDataModule,\n\tNgDocFocusableModule,\n\tNgDocIconModule,\n\tNgDocListModule,\n\tNgDocOptionModule,\n\tNgDocTextModule,\n\tNgDocTooltipModule,\n} from '@ng-doc/ui-kit';\n\nimport {NgDocTypeAliasControlComponent} from './type-alias-control.component';\n\nconst provider: Provider = provideTypeControl('NgDocTypeAlias', NgDocTypeAliasControlComponent, {order: 10});\n\n@NgModule({\n\tdeclarations: [NgDocTypeAliasControlComponent],\n\timports: [\n\t\tCommonModule,\n\t\tNgDocComboboxModule,\n\t\tNgDocDataModule,\n\t\tFormsModule,\n\t\tNgDocOptionModule,\n\t\tNgDocListModule,\n\t\tNgDocExtractValueModule,\n\t\tNgDocTextModule,\n\t\tNgDocKindIconModule,\n\t\tNgDocTooltipModule,\n\t\tNgDocButtonIconModule,\n\t\tNgDocFocusableModule,\n\t\tNgDocIconModule,\n\t],\n\tproviders: [provider],\n\texports: [NgDocTypeAliasControlComponent],\n})\nexport class NgDocTypeAliasControlModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAWM,MAAO,8BAAkC,SAAQ,SAAY,CAAA;AAIlE,IAAA,WAAA,GAAA;AACC,QAAA,KAAK,EAAE,CAAC;KACR;AAED,IAAA,IAAI,YAAY,GAAA;AACf,QAAA,OAAO,IAAI,CAAC,OAAO,GAAI,YAAY,CAAC,IAAI,CAAC,OAAO,CAAkB,GAAG,IAAI,CAAC;KAC1E;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,YAAY,GAAG,KAAK,CAAC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B,eAAe;QACf,WAAW;QACX,iBAAiB;QACjB,eAAe;QACf,uBAAuB;QACvB,eAAe;QACf,mBAAmB;QACnB,kBAAkB;QAClB,qBAAqB;QACrB,oBAAoB;QACpB,eAAe,aAGN,8BAA8B,CAAA,EAAA,CAAA,CAAA;AAE5B,2BAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,EAH5B,SAAA,EAAA,CAAC,QAAQ,CAAC,YAdpB,YAAY;QACZ,mBAAmB;QACnB,eAAe;QACf,WAAW;QACX,iBAAiB;QACjB,eAAe;QACf,uBAAuB;QACvB,eAAe;QACf,mBAAmB;QACnB,kBAAkB;QAClB,qBAAqB;QACrB,oBAAoB;QACpB,eAAe,CAAA,EAAA,CAAA,CAAA;2FAKJ,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBApBvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACT,YAAY,EAAE,CAAC,8BAA8B,CAAC;AAC9C,oBAAA,OAAO,EAAE;wBACR,YAAY;wBACZ,mBAAmB;wBACnB,eAAe;wBACf,WAAW;wBACX,iBAAiB;wBACjB,eAAe;wBACf,uBAAuB;wBACvB,eAAe;wBACf,mBAAmB;wBACnB,kBAAkB;wBAClB,qBAAqB;wBACrB,oBAAoB;wBACpB,eAAe;AACf,qBAAA;oBACD,SAAS,EAAE,CAAC,QAAQ,CAAC;oBACrB,OAAO,EAAE,CAAC,8BAA8B,CAAC;iBACzC,CAAA;;;ACzCD;;AAEG;;;;"}
|
|
@@ -22,10 +22,10 @@ class NgDocBreadcrumbComponent {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
NgDocBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocBreadcrumbComponent, deps: [{ token: i1.NgDocRootPage }, { token: i2.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
-
NgDocBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.4", type: NgDocBreadcrumbComponent, selector: "ng-doc-breadcrumb", ngImport: i0, template: "<a class=\"ng-doc-breadcrumb\" [routerLink]=\"[home]\" ng-doc-button-icon>\n\t<ng-doc-icon icon=\"home\"></ng-doc-icon>\n</a>\n<span class=\"ng-doc-breadcrumb\" *ngFor=\"let item of breadcrumbs\">\n\t<span ng-doc-text>\n\t\t<ng-doc-icon icon=\"chevron-right\"></ng-doc-icon>\n\t\t{{item}}\n\t</span>\n</span>\n", styles: [":host{display:flex;align-items:center;margin-bottom:calc(var(--ng-doc-base-gutter) * 2);opacity:.9}:host .ng-doc-breadcrumb:not(:first-child){margin-right:var(--ng-doc-base-gutter)}:host .ng-doc-breadcrumb:not(:first-child):not(:last-child){opacity:.6}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i4.NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i4.NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon]", inputs: ["size", "rounded"] }, { kind: "component", type: i4.NgDocTextComponent, selector: "[ng-doc-text]", inputs: ["size", "color", "align", "absoluteContent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
25
|
+
NgDocBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.4", type: NgDocBreadcrumbComponent, selector: "ng-doc-breadcrumb", ngImport: i0, template: "<a class=\"ng-doc-breadcrumb\" [routerLink]=\"[home]\" ng-doc-button-icon>\n\t<ng-doc-icon icon=\"home\"></ng-doc-icon>\n</a>\n<span class=\"ng-doc-breadcrumb\" *ngFor=\"let item of breadcrumbs\">\n\t<span ng-doc-text>\n\t\t<ng-doc-icon icon=\"chevron-right\"></ng-doc-icon>\n\t\t{{item}}\n\t</span>\n</span>\n", styles: [":host{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:calc(var(--ng-doc-base-gutter) * 2);opacity:.9}:host .ng-doc-breadcrumb:not(:first-child){margin-right:var(--ng-doc-base-gutter)}:host .ng-doc-breadcrumb:not(:first-child):not(:last-child){opacity:.6}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i4.NgDocIconComponent, selector: "ng-doc-icon", inputs: ["icon", "size"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i4.NgDocButtonIconComponent, selector: "button[ng-doc-button-icon], a[ng-doc-button-icon]", inputs: ["size", "rounded"] }, { kind: "component", type: i4.NgDocTextComponent, selector: "[ng-doc-text]", inputs: ["size", "color", "align", "absoluteContent"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26
26
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: NgDocBreadcrumbComponent, decorators: [{
|
|
27
27
|
type: Component,
|
|
28
|
-
args: [{ selector: 'ng-doc-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "<a class=\"ng-doc-breadcrumb\" [routerLink]=\"[home]\" ng-doc-button-icon>\n\t<ng-doc-icon icon=\"home\"></ng-doc-icon>\n</a>\n<span class=\"ng-doc-breadcrumb\" *ngFor=\"let item of breadcrumbs\">\n\t<span ng-doc-text>\n\t\t<ng-doc-icon icon=\"chevron-right\"></ng-doc-icon>\n\t\t{{item}}\n\t</span>\n</span>\n", styles: [":host{display:flex;align-items:center;margin-bottom:calc(var(--ng-doc-base-gutter) * 2);opacity:.9}:host .ng-doc-breadcrumb:not(:first-child){margin-right:var(--ng-doc-base-gutter)}:host .ng-doc-breadcrumb:not(:first-child):not(:last-child){opacity:.6}\n"] }]
|
|
28
|
+
args: [{ selector: 'ng-doc-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "<a class=\"ng-doc-breadcrumb\" [routerLink]=\"[home]\" ng-doc-button-icon>\n\t<ng-doc-icon icon=\"home\"></ng-doc-icon>\n</a>\n<span class=\"ng-doc-breadcrumb\" *ngFor=\"let item of breadcrumbs\">\n\t<span ng-doc-text>\n\t\t<ng-doc-icon icon=\"chevron-right\"></ng-doc-icon>\n\t\t{{item}}\n\t</span>\n</span>\n", styles: [":host{display:flex;align-items:center;flex-wrap:wrap;margin-bottom:calc(var(--ng-doc-base-gutter) * 2);opacity:.9}:host .ng-doc-breadcrumb:not(:first-child){margin-right:var(--ng-doc-base-gutter)}:host .ng-doc-breadcrumb:not(:first-child):not(:last-child){opacity:.6}\n"] }]
|
|
29
29
|
}], ctorParameters: function () { return [{ type: i1.NgDocRootPage }, { type: i2.ActivatedRoute }]; } });
|
|
30
30
|
|
|
31
31
|
class NgDocBreadcrumbModule {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-doc-app-components-breadcrumb.mjs","sources":["../../../../libs/app/components/breadcrumb/breadcrumb.component.ts","../../../../libs/app/components/breadcrumb/breadcrumb.component.html","../../../../libs/app/components/breadcrumb/breadcrumb.module.ts","../../../../libs/app/components/breadcrumb/ng-doc-app-components-breadcrumb.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {ActivatedRoute} from '@angular/router';\nimport {NgDocRootPage} from '@ng-doc/app/classes';\nimport {isPresent} from '@ng-doc/core/helpers/is-present';\n\n@Component({\n\tselector: 'ng-doc-breadcrumb',\n\ttemplateUrl: './breadcrumb.component.html',\n\tstyleUrls: ['./breadcrumb.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocBreadcrumbComponent {\n\tbreadcrumbs: string[] = [];\n\thome: string;\n\tconstructor(private readonly rootPage: NgDocRootPage, private readonly route: ActivatedRoute) {\n\t\tthis.home = this.rootPage.routePrefix || '/';\n\t\tthis.breadcrumbs = this.route.pathFromRoot\n\t\t\t.filter((route: ActivatedRoute) => !route.snapshot.url.length)\n\t\t\t.map((route: ActivatedRoute) => route.snapshot.title)\n\t\t\t.filter(isPresent);\n\t}\n}\n","<a class=\"ng-doc-breadcrumb\" [routerLink]=\"[home]\" ng-doc-button-icon>\n\t<ng-doc-icon icon=\"home\"></ng-doc-icon>\n</a>\n<span class=\"ng-doc-breadcrumb\" *ngFor=\"let item of breadcrumbs\">\n\t<span ng-doc-text>\n\t\t<ng-doc-icon icon=\"chevron-right\"></ng-doc-icon>\n\t\t{{item}}\n\t</span>\n</span>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {RouterLink} from '@angular/router';\nimport {NgDocButtonIconModule, NgDocIconModule, NgDocTextModule} from '@ng-doc/ui-kit';\n\nimport {NgDocBreadcrumbComponent} from './breadcrumb.component';\n\n@NgModule({\n\tdeclarations: [NgDocBreadcrumbComponent],\n\timports: [CommonModule, NgDocIconModule, RouterLink, NgDocButtonIconModule, NgDocTextModule],\n\texports: [NgDocBreadcrumbComponent],\n})\nexport class NgDocBreadcrumbModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAWa,wBAAwB,CAAA;IAGpC,WAA6B,CAAA,QAAuB,EAAmB,KAAqB,EAAA;QAA/D,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAe;QAAmB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;QAF5F,IAAW,CAAA,WAAA,GAAa,EAAE,CAAC;QAG1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,GAAG,CAAC;AAC7C,QAAA,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY;AACxC,aAAA,MAAM,CAAC,CAAC,KAAqB,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC;aAC7D,GAAG,CAAC,CAAC,KAAqB,KAAK,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC;aACpD,MAAM,CAAC,SAAS,CAAC,CAAC;KACpB;;qHATW,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,aAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,cAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAxB,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,wBAAwB,yDCXrC,wTASA,EAAA,MAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"ng-doc-app-components-breadcrumb.mjs","sources":["../../../../libs/app/components/breadcrumb/breadcrumb.component.ts","../../../../libs/app/components/breadcrumb/breadcrumb.component.html","../../../../libs/app/components/breadcrumb/breadcrumb.module.ts","../../../../libs/app/components/breadcrumb/ng-doc-app-components-breadcrumb.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component} from '@angular/core';\nimport {ActivatedRoute} from '@angular/router';\nimport {NgDocRootPage} from '@ng-doc/app/classes';\nimport {isPresent} from '@ng-doc/core/helpers/is-present';\n\n@Component({\n\tselector: 'ng-doc-breadcrumb',\n\ttemplateUrl: './breadcrumb.component.html',\n\tstyleUrls: ['./breadcrumb.component.scss'],\n\tchangeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class NgDocBreadcrumbComponent {\n\tbreadcrumbs: string[] = [];\n\thome: string;\n\tconstructor(private readonly rootPage: NgDocRootPage, private readonly route: ActivatedRoute) {\n\t\tthis.home = this.rootPage.routePrefix || '/';\n\t\tthis.breadcrumbs = this.route.pathFromRoot\n\t\t\t.filter((route: ActivatedRoute) => !route.snapshot.url.length)\n\t\t\t.map((route: ActivatedRoute) => route.snapshot.title)\n\t\t\t.filter(isPresent);\n\t}\n}\n","<a class=\"ng-doc-breadcrumb\" [routerLink]=\"[home]\" ng-doc-button-icon>\n\t<ng-doc-icon icon=\"home\"></ng-doc-icon>\n</a>\n<span class=\"ng-doc-breadcrumb\" *ngFor=\"let item of breadcrumbs\">\n\t<span ng-doc-text>\n\t\t<ng-doc-icon icon=\"chevron-right\"></ng-doc-icon>\n\t\t{{item}}\n\t</span>\n</span>\n","import {CommonModule} from '@angular/common';\nimport {NgModule} from '@angular/core';\nimport {RouterLink} from '@angular/router';\nimport {NgDocButtonIconModule, NgDocIconModule, NgDocTextModule} from '@ng-doc/ui-kit';\n\nimport {NgDocBreadcrumbComponent} from './breadcrumb.component';\n\n@NgModule({\n\tdeclarations: [NgDocBreadcrumbComponent],\n\timports: [CommonModule, NgDocIconModule, RouterLink, NgDocButtonIconModule, NgDocTextModule],\n\texports: [NgDocBreadcrumbComponent],\n})\nexport class NgDocBreadcrumbModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAWa,wBAAwB,CAAA;IAGpC,WAA6B,CAAA,QAAuB,EAAmB,KAAqB,EAAA;QAA/D,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAe;QAAmB,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;QAF5F,IAAW,CAAA,WAAA,GAAa,EAAE,CAAC;QAG1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,WAAW,IAAI,GAAG,CAAC;AAC7C,QAAA,I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