@thescaffold/ngx-apps-blog 0.2.21 → 0.2.31
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/fesm2022/thescaffold-ngx-apps-blog-article.module-Dw4mmJ0O.mjs +128 -0
- package/fesm2022/thescaffold-ngx-apps-blog-article.module-Dw4mmJ0O.mjs.map +1 -0
- package/fesm2022/thescaffold-ngx-apps-blog-docs.module-DKKKNEI-.mjs +484 -0
- package/fesm2022/thescaffold-ngx-apps-blog-docs.module-DKKKNEI-.mjs.map +1 -0
- package/fesm2022/{thescaffold-ngx-apps-blog-error.module-BzAoFNog.mjs → thescaffold-ngx-apps-blog-error.module-Ck2ZPspy.mjs} +9 -9
- package/fesm2022/thescaffold-ngx-apps-blog-error.module-Ck2ZPspy.mjs.map +1 -0
- package/fesm2022/thescaffold-ngx-apps-blog-home.module-LXerbHw9.mjs +1028 -0
- package/fesm2022/thescaffold-ngx-apps-blog-home.module-LXerbHw9.mjs.map +1 -0
- package/fesm2022/thescaffold-ngx-apps-blog.mjs +22 -22
- package/fesm2022/thescaffold-ngx-apps-blog.mjs.map +1 -1
- package/package.json +77 -27
- package/types/thescaffold-ngx-apps-blog.d.ts +33 -0
- package/esm2022/lib/app.module.mjs +0 -17
- package/esm2022/lib/index.mjs +0 -6
- package/esm2022/lib/pages/article/article.component.mjs +0 -82
- package/esm2022/lib/pages/article/article.module.mjs +0 -35
- package/esm2022/lib/pages/docs/docs.component.mjs +0 -386
- package/esm2022/lib/pages/docs/docs.module.mjs +0 -47
- package/esm2022/lib/pages/error/error.component.mjs +0 -75
- package/esm2022/lib/pages/error/error.module.mjs +0 -26
- package/esm2022/lib/pages/home/home.component.mjs +0 -49
- package/esm2022/lib/pages/home/home.module.mjs +0 -36
- package/esm2022/lib/pages/pages.component.mjs +0 -60
- package/esm2022/lib/pages/pages.module.mjs +0 -95
- package/esm2022/lib/pkg/cards/card/card.component.mjs +0 -763
- package/esm2022/lib/pkg/cards/card/index.mjs +0 -3
- package/esm2022/lib/pkg/cards/cards.component.mjs +0 -27
- package/esm2022/lib/pkg/cards/cards.module.mjs +0 -21
- package/esm2022/lib/pkg/cards/cards.utils.mjs +0 -2
- package/esm2022/lib/pkg/cards/index.mjs +0 -4
- package/esm2022/lib/pkg/index.mjs +0 -2
- package/esm2022/public-api.mjs +0 -5
- package/esm2022/thescaffold-ngx-apps-blog.mjs +0 -5
- package/fesm2022/thescaffold-ngx-apps-blog-article.module-BnLR8e24.mjs +0 -114
- package/fesm2022/thescaffold-ngx-apps-blog-article.module-BnLR8e24.mjs.map +0 -1
- package/fesm2022/thescaffold-ngx-apps-blog-docs.module-DRQ-g0-1.mjs +0 -430
- package/fesm2022/thescaffold-ngx-apps-blog-docs.module-DRQ-g0-1.mjs.map +0 -1
- package/fesm2022/thescaffold-ngx-apps-blog-error.module-BzAoFNog.mjs.map +0 -1
- package/fesm2022/thescaffold-ngx-apps-blog-home.module-CG11DLKD.mjs +0 -876
- package/fesm2022/thescaffold-ngx-apps-blog-home.module-CG11DLKD.mjs.map +0 -1
- package/index.d.ts +0 -5
- package/lib/app.module.d.ts +0 -8
- package/lib/index.d.ts +0 -5
- package/lib/pages/article/article.component.d.ts +0 -11
- package/lib/pages/article/article.module.d.ts +0 -10
- package/lib/pages/docs/docs.component.d.ts +0 -17
- package/lib/pages/docs/docs.module.d.ts +0 -10
- package/lib/pages/error/error.component.d.ts +0 -11
- package/lib/pages/error/error.module.d.ts +0 -10
- package/lib/pages/home/home.component.d.ts +0 -7
- package/lib/pages/home/home.module.d.ts +0 -11
- package/lib/pages/pages.component.d.ts +0 -9
- package/lib/pages/pages.module.d.ts +0 -11
- package/lib/pkg/cards/card/card.component.d.ts +0 -9
- package/lib/pkg/cards/card/index.d.ts +0 -2
- package/lib/pkg/cards/cards.component.d.ts +0 -7
- package/lib/pkg/cards/cards.module.d.ts +0 -10
- package/lib/pkg/cards/cards.utils.d.ts +0 -29
- package/lib/pkg/cards/index.d.ts +0 -3
- package/lib/pkg/index.d.ts +0 -1
- package/public-api.d.ts +0 -1
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export * from '../cards.utils';
|
|
2
|
-
export * from './card.component';
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9ibG9nL3NyYy9saWIvcGtnL2NhcmRzL2NhcmQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxnQkFBZ0IsQ0FBQztBQUMvQixjQUFjLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi4vY2FyZHMudXRpbHMnO1xuZXhwb3J0ICogZnJvbSAnLi9jYXJkLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "./card/card.component";
|
|
5
|
-
export class CardsComponent {
|
|
6
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CardsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.5", type: CardsComponent, selector: "x-cards", inputs: { data: "data" }, ngImport: i0, template: `
|
|
8
|
-
<ng-container *ngIf="data?.length">
|
|
9
|
-
<ng-container *ngFor="let card of data">
|
|
10
|
-
<x-card [data]="card"></x-card>
|
|
11
|
-
</ng-container>
|
|
12
|
-
</ng-container>
|
|
13
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.CardComponent, selector: "x-card", inputs: ["data"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14
|
-
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CardsComponent, decorators: [{
|
|
16
|
-
type: Component,
|
|
17
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, selector: 'x-cards', template: `
|
|
18
|
-
<ng-container *ngIf="data?.length">
|
|
19
|
-
<ng-container *ngFor="let card of data">
|
|
20
|
-
<x-card [data]="card"></x-card>
|
|
21
|
-
</ng-container>
|
|
22
|
-
</ng-container>
|
|
23
|
-
` }]
|
|
24
|
-
}], propDecorators: { data: [{
|
|
25
|
-
type: Input
|
|
26
|
-
}] } });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZHMuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmxvZy9zcmMvbGliL3BrZy9jYXJkcy9jYXJkcy5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7Ozs7QUFlMUUsTUFBTSxPQUFPLGNBQWM7OEdBQWQsY0FBYztrR0FBZCxjQUFjLHlFQVRmOzs7Ozs7R0FNVDs7MkZBR1UsY0FBYztrQkFaMUIsU0FBUztzQ0FDUyx1QkFBdUIsQ0FBQyxNQUFNLFlBQ3JDLFNBQVMsWUFDVDs7Ozs7O0dBTVQ7OEJBSVEsSUFBSTtzQkFBWixLQUFLIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksIENvbXBvbmVudCwgSW5wdXQgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENhcmRDb250cmFjdCB9IGZyb20gJy4vY2FyZCc7XG5cbkBDb21wb25lbnQoe1xuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbiAgc2VsZWN0b3I6ICd4LWNhcmRzJyxcbiAgdGVtcGxhdGU6IGBcbiAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiZGF0YT8ubGVuZ3RoXCI+XG4gICAgICA8bmctY29udGFpbmVyICpuZ0Zvcj1cImxldCBjYXJkIG9mIGRhdGFcIj5cbiAgICAgICAgPHgtY2FyZCBbZGF0YV09XCJjYXJkXCI+PC94LWNhcmQ+XG4gICAgICA8L25nLWNvbnRhaW5lcj5cbiAgICA8L25nLWNvbnRhaW5lcj5cbiAgYCxcbiAgc3R5bGVzOiBbXSxcbn0pXG5leHBvcnQgY2xhc3MgQ2FyZHNDb21wb25lbnQge1xuICBASW5wdXQoKSBkYXRhPzogQ2FyZENvbnRyYWN0W107XG59XG4iXX0=
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { SharedModule } from '@thescaffold/ngx-core';
|
|
3
|
-
import { ElementsModule, FormModule } from '@thescaffold/ngx-ui';
|
|
4
|
-
import { CardComponent } from './card';
|
|
5
|
-
import { CardsComponent } from './cards.component';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@thescaffold/ngx-ui";
|
|
8
|
-
export class CardsModule {
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CardsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
10
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.5", ngImport: i0, type: CardsModule, declarations: [CardsComponent, CardComponent], imports: [SharedModule, i1.FormModule, ElementsModule], exports: [CardsComponent, CardComponent] }); }
|
|
11
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CardsModule, imports: [SharedModule, FormModule.forChild(), ElementsModule] }); }
|
|
12
|
-
}
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: CardsModule, decorators: [{
|
|
14
|
-
type: NgModule,
|
|
15
|
-
args: [{
|
|
16
|
-
declarations: [CardsComponent, CardComponent],
|
|
17
|
-
exports: [CardsComponent, CardComponent],
|
|
18
|
-
imports: [SharedModule, FormModule.forChild(), ElementsModule],
|
|
19
|
-
}]
|
|
20
|
-
}] });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZHMubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYmxvZy9zcmMvbGliL3BrZy9jYXJkcy9jYXJkcy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDckQsT0FBTyxFQUFFLGNBQWMsRUFBRSxVQUFVLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUNqRSxPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sUUFBUSxDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQzs7O0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kcz86IEl0ZW1bXTtcbiAgaXRlbXM/OiBJdGVtW107XG4gIGxpbmVzPzogSXRlbVtdO1xuICBtZWRpYT86IEl0ZW1bXTtcblxuICB0aXRsZUNsYXNzPzogc3RyaW5nO1xufVxuIl19
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * from './card';
|
|
2
|
-
export * from './cards.component';
|
|
3
|
-
export * from './cards.module';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9ibG9nL3NyYy9saWIvcGtnL2NhcmRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsUUFBUSxDQUFDO0FBQ3ZCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vY2FyZCc7XG5leHBvcnQgKiBmcm9tICcuL2NhcmRzLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2NhcmRzLm1vZHVsZSc7XG4iXX0=
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export * from './cards';
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9ibG9nL3NyYy9saWIvcGtnL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9jYXJkcyc7XG4iXX0=
|
package/esm2022/public-api.mjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of blog
|
|
3
|
-
*/
|
|
4
|
-
export * from './lib/index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2Jsb2cvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGFBQWEsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgYmxvZ1xuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL2luZGV4JztcbiJdfQ==
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhlc2NhZmZvbGQtbmd4LWFwcHMtYmxvZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2Jsb2cvc3JjL3RoZXNjYWZmb2xkLW5neC1hcHBzLWJsb2cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Component, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1$1 from '@angular/router';
|
|
4
|
-
import { ActivatedRoute, RouterModule } from '@angular/router';
|
|
5
|
-
import * as i4 from '@thescaffold/ngx-core';
|
|
6
|
-
import { MediaService, SharedModule } from '@thescaffold/ngx-core';
|
|
7
|
-
import * as i2 from '@thescaffold/ngx-ui';
|
|
8
|
-
import { LayoutsModule, ElementsModule } from '@thescaffold/ngx-ui';
|
|
9
|
-
import { switchMap } from 'rxjs';
|
|
10
|
-
import * as i1 from '@angular/common';
|
|
11
|
-
|
|
12
|
-
class ArticleComponent {
|
|
13
|
-
constructor() {
|
|
14
|
-
this.route = inject(ActivatedRoute);
|
|
15
|
-
this.mediaService = inject(MediaService);
|
|
16
|
-
this.article$ = this.route.params.pipe(switchMap((params) => {
|
|
17
|
-
this.category = params['category'];
|
|
18
|
-
this.title = params['article'];
|
|
19
|
-
const name = this.category
|
|
20
|
-
? `${this.category}/${this.title}`
|
|
21
|
-
: `${this.title}`;
|
|
22
|
-
return this.mediaService.context('blog').article(name);
|
|
23
|
-
}));
|
|
24
|
-
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: ArticleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.5", type: ArticleComponent, selector: "x-article", ngImport: i0, template: `
|
|
27
|
-
<div *ngIf="article$ | async as article; else empty" class="">
|
|
28
|
-
<div class="">
|
|
29
|
-
<nav>
|
|
30
|
-
<ol *ngIf="title" class="breadcrumb">
|
|
31
|
-
<li class="breadcrumb-item">
|
|
32
|
-
<a [routerLink]="'blog.root' | xRoute">{{
|
|
33
|
-
'apps.blog.component.article.home.title' | xTranslate
|
|
34
|
-
}}</a>
|
|
35
|
-
</li>
|
|
36
|
-
<li *ngIf="category" class="breadcrumb-item">{{ category }}</li>
|
|
37
|
-
<li *ngIf="title" class="breadcrumb-item">{{ title }}</li>
|
|
38
|
-
</ol>
|
|
39
|
-
</nav>
|
|
40
|
-
</div>
|
|
41
|
-
<div [innerHTML]="article" class="w-75"></div>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<!-- misc -->
|
|
45
|
-
<ng-template #loader>
|
|
46
|
-
<x-element-loader></x-element-loader>
|
|
47
|
-
</ng-template>
|
|
48
|
-
|
|
49
|
-
<ng-template #empty>
|
|
50
|
-
<x-element-blank></x-element-blank>
|
|
51
|
-
</ng-template>
|
|
52
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i2.BlankComponent, selector: "x-element-blank", inputs: ["image", "icon", "type"] }, { kind: "component", type: i2.LoaderComponent, selector: "x-element-loader", inputs: ["data"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.RoutePipe, name: "xRoute" }, { kind: "pipe", type: i4.TranslatePipe, name: "xTranslate" }] }); }
|
|
53
|
-
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: ArticleComponent, decorators: [{
|
|
55
|
-
type: Component,
|
|
56
|
-
args: [{ selector: 'x-article', template: `
|
|
57
|
-
<div *ngIf="article$ | async as article; else empty" class="">
|
|
58
|
-
<div class="">
|
|
59
|
-
<nav>
|
|
60
|
-
<ol *ngIf="title" class="breadcrumb">
|
|
61
|
-
<li class="breadcrumb-item">
|
|
62
|
-
<a [routerLink]="'blog.root' | xRoute">{{
|
|
63
|
-
'apps.blog.component.article.home.title' | xTranslate
|
|
64
|
-
}}</a>
|
|
65
|
-
</li>
|
|
66
|
-
<li *ngIf="category" class="breadcrumb-item">{{ category }}</li>
|
|
67
|
-
<li *ngIf="title" class="breadcrumb-item">{{ title }}</li>
|
|
68
|
-
</ol>
|
|
69
|
-
</nav>
|
|
70
|
-
</div>
|
|
71
|
-
<div [innerHTML]="article" class="w-75"></div>
|
|
72
|
-
</div>
|
|
73
|
-
|
|
74
|
-
<!-- misc -->
|
|
75
|
-
<ng-template #loader>
|
|
76
|
-
<x-element-loader></x-element-loader>
|
|
77
|
-
</ng-template>
|
|
78
|
-
|
|
79
|
-
<ng-template #empty>
|
|
80
|
-
<x-element-blank></x-element-blank>
|
|
81
|
-
</ng-template>
|
|
82
|
-
` }]
|
|
83
|
-
}] });
|
|
84
|
-
|
|
85
|
-
class ArticleModule {
|
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: ArticleModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
87
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.5", ngImport: i0, type: ArticleModule, declarations: [ArticleComponent], imports: [SharedModule, i1$1.RouterModule, LayoutsModule,
|
|
88
|
-
ElementsModule] }); }
|
|
89
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: ArticleModule, imports: [SharedModule,
|
|
90
|
-
RouterModule.forChild([
|
|
91
|
-
{ path: ':category/:article', component: ArticleComponent },
|
|
92
|
-
{ path: ':article', component: ArticleComponent },
|
|
93
|
-
]),
|
|
94
|
-
LayoutsModule,
|
|
95
|
-
ElementsModule] }); }
|
|
96
|
-
}
|
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: ArticleModule, decorators: [{
|
|
98
|
-
type: NgModule,
|
|
99
|
-
args: [{
|
|
100
|
-
declarations: [ArticleComponent],
|
|
101
|
-
imports: [
|
|
102
|
-
SharedModule,
|
|
103
|
-
RouterModule.forChild([
|
|
104
|
-
{ path: ':category/:article', component: ArticleComponent },
|
|
105
|
-
{ path: ':article', component: ArticleComponent },
|
|
106
|
-
]),
|
|
107
|
-
LayoutsModule,
|
|
108
|
-
ElementsModule,
|
|
109
|
-
],
|
|
110
|
-
}]
|
|
111
|
-
}] });
|
|
112
|
-
|
|
113
|
-
export { ArticleModule };
|
|
114
|
-
//# sourceMappingURL=thescaffold-ngx-apps-blog-article.module-BnLR8e24.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thescaffold-ngx-apps-blog-article.module-BnLR8e24.mjs","sources":["../../../projects/blog/src/lib/pages/article/article.component.ts","../../../projects/blog/src/lib/pages/article/article.module.ts"],"sourcesContent":["import { Component, inject } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { MediaService } from '@thescaffold/ngx-core';\nimport { Observable, switchMap } from 'rxjs';\n\n@Component({\n selector: 'x-article',\n template: `\n <div *ngIf=\"article$ | async as article; else empty\" class=\"\">\n <div class=\"\">\n <nav>\n <ol *ngIf=\"title\" class=\"breadcrumb\">\n <li class=\"breadcrumb-item\">\n <a [routerLink]=\"'blog.root' | xRoute\">{{\n 'apps.blog.component.article.home.title' | xTranslate\n }}</a>\n </li>\n <li *ngIf=\"category\" class=\"breadcrumb-item\">{{ category }}</li>\n <li *ngIf=\"title\" class=\"breadcrumb-item\">{{ title }}</li>\n </ol>\n </nav>\n </div>\n <div [innerHTML]=\"article\" class=\"w-75\"></div>\n </div>\n\n <!-- misc -->\n <ng-template #loader>\n <x-element-loader></x-element-loader>\n </ng-template>\n\n <ng-template #empty>\n <x-element-blank></x-element-blank>\n </ng-template>\n `,\n styles: [],\n})\nexport class ArticleComponent {\n private readonly route = inject(ActivatedRoute);\n private readonly mediaService = inject(MediaService);\n\n category?: string;\n title?: string;\n article$: Observable<any> = this.route.params.pipe(\n switchMap((params) => {\n this.category = params['category'];\n this.title = params['article'];\n const name = this.category\n ? `${this.category}/${this.title}`\n : `${this.title}`;\n return this.mediaService.context('blog').article(name);\n }),\n );\n}\n","import { NgModule } from '@angular/core';\nimport { RouterModule } from '@angular/router';\nimport { SharedModule } from '@thescaffold/ngx-core';\nimport { ElementsModule, LayoutsModule } from '@thescaffold/ngx-ui';\nimport { ArticleComponent } from './article.component';\n\n@NgModule({\n declarations: [ArticleComponent],\n imports: [\n SharedModule,\n RouterModule.forChild([\n { path: ':category/:article', component: ArticleComponent },\n { path: ':article', component: ArticleComponent },\n ]),\n LayoutsModule,\n ElementsModule,\n ],\n})\nexport class ArticleModule {}\n"],"names":["i2","i3"],"mappings":";;;;;;;;;;;MAoCa,gBAAgB,CAAA;AA/B7B,IAAA,WAAA,GAAA;AAgCmB,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC;AAC/B,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;AAIrD,QAAA,IAAA,CAAA,QAAQ,GAAoB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAChD,SAAS,CAAC,CAAC,MAAM,KAAI;AACnB,YAAA,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;AACnC,YAAA,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAC/B,YAAA,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ;kBACtB,GAAG,IAAI,CAAC,QAAQ,CAAI,CAAA,EAAA,IAAI,CAAC,KAAK,CAAE,CAAA;AAClC,kBAAE,CAAG,EAAA,IAAI,CAAC,KAAK,EAAE,CAAC;AACpB,YAAA,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SACxD,CAAC,CACH,CAAC;AACH,KAAA;8GAhBY,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAA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C,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,EAAE,IAAI,EAAE,oBAAoB,EAAE,SAAS,EAAE,gBAAgB,EAAE;AAC3D,4BAAA,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,gBAAgB,EAAE;yBAClD,CAAC;wBACF,aAAa;wBACb,cAAc;AACf,qBAAA;AACF,iBAAA,CAAA;;;;;"}
|
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Component, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1$1 from '@angular/router';
|
|
4
|
-
import { ActivatedRoute, RouterModule } from '@angular/router';
|
|
5
|
-
import * as i4 from '@thescaffold/ngx-core';
|
|
6
|
-
import { BaseDirective, MediaService, titleCase, SharedModule, PipesModule } from '@thescaffold/ngx-core';
|
|
7
|
-
import * as i2$1 from '@thescaffold/ngx-ui';
|
|
8
|
-
import { LayoutsModule, ElementsModule, ToolbarModule } from '@thescaffold/ngx-ui';
|
|
9
|
-
import { map, switchMap } from 'rxjs';
|
|
10
|
-
import * as i1 from '@angular/common';
|
|
11
|
-
import * as i2 from '@angular/forms';
|
|
12
|
-
|
|
13
|
-
class DocsComponent extends BaseDirective {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.mediaService = inject(MediaService);
|
|
17
|
-
this.route = inject(ActivatedRoute);
|
|
18
|
-
this.navList = [];
|
|
19
|
-
this.showHeaders = true;
|
|
20
|
-
this.nav$ = this.mediaService
|
|
21
|
-
.context('blog')
|
|
22
|
-
.index()
|
|
23
|
-
.pipe(map((content) => {
|
|
24
|
-
return (this.navList = content?.nav);
|
|
25
|
-
}));
|
|
26
|
-
this.breadcrumbs$ = this.route.url.pipe(map((segments) => {
|
|
27
|
-
const breads = [
|
|
28
|
-
{
|
|
29
|
-
title: this.translate('apps.blog.component.docs.home.title'),
|
|
30
|
-
url: '/blog',
|
|
31
|
-
},
|
|
32
|
-
...(segments.length > 1
|
|
33
|
-
? [
|
|
34
|
-
{
|
|
35
|
-
title: titleCase(segments[0].path.replace(/-/g, ' ')),
|
|
36
|
-
url: `/${segments[0]}`,
|
|
37
|
-
},
|
|
38
|
-
]
|
|
39
|
-
: []),
|
|
40
|
-
...(segments.length > 2
|
|
41
|
-
? [
|
|
42
|
-
{
|
|
43
|
-
title: titleCase(segments[1].path.replace(/-/g, ' ')),
|
|
44
|
-
url: `/${segments[1]}`,
|
|
45
|
-
},
|
|
46
|
-
]
|
|
47
|
-
: []),
|
|
48
|
-
...(segments.length > 3
|
|
49
|
-
? [
|
|
50
|
-
{
|
|
51
|
-
title: titleCase(segments[2].path.replace(/-/g, ' ')),
|
|
52
|
-
url: `/${segments[2]}`,
|
|
53
|
-
},
|
|
54
|
-
]
|
|
55
|
-
: []),
|
|
56
|
-
{
|
|
57
|
-
title: titleCase(segments[segments.length - 1].path.replace(/-/g, ' ')),
|
|
58
|
-
url: null,
|
|
59
|
-
},
|
|
60
|
-
];
|
|
61
|
-
return breads;
|
|
62
|
-
}));
|
|
63
|
-
this.docs$ = this.route.params.pipe(switchMap((params) => {
|
|
64
|
-
let name = '';
|
|
65
|
-
const sub1 = (this.currentNav = params['sub1']);
|
|
66
|
-
if (sub1) {
|
|
67
|
-
this.showHeaders = sub1.toLowerCase() != 'index';
|
|
68
|
-
name += sub1;
|
|
69
|
-
}
|
|
70
|
-
const sub2 = params['sub2'];
|
|
71
|
-
if (sub2) {
|
|
72
|
-
this.showHeaders = sub2.toLowerCase() != 'index';
|
|
73
|
-
name += `/${sub2}`;
|
|
74
|
-
}
|
|
75
|
-
const sub3 = params['sub3'];
|
|
76
|
-
if (sub3) {
|
|
77
|
-
this.showHeaders = sub3.toLowerCase() != 'index';
|
|
78
|
-
name += `/${sub3}`;
|
|
79
|
-
}
|
|
80
|
-
const sub4 = params['sub4'];
|
|
81
|
-
if (sub4) {
|
|
82
|
-
this.showHeaders = sub4.toLowerCase() != 'index';
|
|
83
|
-
name += `/${sub4}`;
|
|
84
|
-
}
|
|
85
|
-
const sub5 = params['sub5'];
|
|
86
|
-
if (sub5) {
|
|
87
|
-
this.showHeaders = sub5.toLowerCase() != 'index';
|
|
88
|
-
name += `/${sub5}`;
|
|
89
|
-
}
|
|
90
|
-
return this.mediaService.context('blog').article(name, true);
|
|
91
|
-
}));
|
|
92
|
-
}
|
|
93
|
-
onSelectChange(event) {
|
|
94
|
-
const selectedUrl = event.target.value;
|
|
95
|
-
if (selectedUrl) {
|
|
96
|
-
this.router.navigate([selectedUrl]);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
getLowestLevelHeaders(headers) {
|
|
100
|
-
if (headers.length === 0)
|
|
101
|
-
return [];
|
|
102
|
-
// Find the lowest level in the array
|
|
103
|
-
const minLevel = Math.min(...headers.map((header) => header.level));
|
|
104
|
-
// Filter headers by the lowest level
|
|
105
|
-
return headers.filter((header) => header.level == minLevel);
|
|
106
|
-
}
|
|
107
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: DocsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
108
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.5", type: DocsComponent, selector: "x-docs", usesInheritance: true, ngImport: i0, template: `
|
|
109
|
-
<div class="row m-0 p-0">
|
|
110
|
-
<div
|
|
111
|
-
class="col-12 col-lg-3 p-0 mb-3 sticky-top d-block d-lg-none"
|
|
112
|
-
style="max-height: 75vh; overflow-y: scroll;"
|
|
113
|
-
*ngIf="nav$ | async as nav; else loader"
|
|
114
|
-
>
|
|
115
|
-
<ng-container *ngIf="nav?.length">
|
|
116
|
-
<select (change)="onSelectChange($event)" class="form-select">
|
|
117
|
-
<option value="" disabled selected>Menu</option>
|
|
118
|
-
<ng-container *ngFor="let a of nav">
|
|
119
|
-
<optgroup [label]="a.title">
|
|
120
|
-
<option *ngIf="!a?.links?.length" [value]="a.url">
|
|
121
|
-
{{ a.title }}
|
|
122
|
-
</option>
|
|
123
|
-
<ng-container *ngIf="a?.links?.length">
|
|
124
|
-
<option *ngFor="let b of a.links" [value]="b.url">
|
|
125
|
-
-- {{ b.title }}
|
|
126
|
-
</option>
|
|
127
|
-
<ng-container *ngFor="let b of a.links">
|
|
128
|
-
<option *ngFor="let c of b.links" [value]="c.url">
|
|
129
|
-
---- {{ c.title }}
|
|
130
|
-
</option>
|
|
131
|
-
</ng-container>
|
|
132
|
-
</ng-container>
|
|
133
|
-
</optgroup>
|
|
134
|
-
</ng-container>
|
|
135
|
-
</select>
|
|
136
|
-
</ng-container>
|
|
137
|
-
</div>
|
|
138
|
-
<div
|
|
139
|
-
class="col-12 col-lg-3 sticky-top d-none d-lg-block p-0 m-0"
|
|
140
|
-
style="max-height: 75vh; overflow-y: scroll;"
|
|
141
|
-
*ngIf="nav$ | async as nav; else loader"
|
|
142
|
-
>
|
|
143
|
-
<ul class="nav flex-column">
|
|
144
|
-
<ng-container *ngIf="nav?.length">
|
|
145
|
-
<li *ngFor="let a of nav" class="nav-item mb-5">
|
|
146
|
-
<p class="fw-bold fs-4 text-body" [innerHTML]="a.title"></p>
|
|
147
|
-
<ul *ngIf="a?.links?.length" class="nav flex-column">
|
|
148
|
-
<li *ngFor="let b of a?.links" class="nav-item">
|
|
149
|
-
<a
|
|
150
|
-
class="x-docs-parent-nav nav-link fs-6 ps-0 ms-0 pt-0 mt-0"
|
|
151
|
-
[routerLink]="b.url"
|
|
152
|
-
[routerLinkActive]="'active'"
|
|
153
|
-
[innerHTML]="b.title"
|
|
154
|
-
></a>
|
|
155
|
-
<ng-container *ngIf="b?.links?.length">
|
|
156
|
-
<ul
|
|
157
|
-
*ngFor="let c of b.links"
|
|
158
|
-
class="nav flex-column border-start"
|
|
159
|
-
>
|
|
160
|
-
<li class="nav-item">
|
|
161
|
-
<a
|
|
162
|
-
class="x-docs-child-nav nav-link text-tiny"
|
|
163
|
-
[routerLink]="c.url"
|
|
164
|
-
[routerLinkActive]="'active'"
|
|
165
|
-
[innerHTML]="c.title"
|
|
166
|
-
></a>
|
|
167
|
-
</li>
|
|
168
|
-
</ul>
|
|
169
|
-
</ng-container>
|
|
170
|
-
</li>
|
|
171
|
-
</ul>
|
|
172
|
-
</li>
|
|
173
|
-
</ng-container>
|
|
174
|
-
</ul>
|
|
175
|
-
</div>
|
|
176
|
-
<div class="col-12 col-lg-9 p-3 p-lg-5 bg-body-tertiary">
|
|
177
|
-
<div class="row" *ngIf="docs$ | async as docs; else loader">
|
|
178
|
-
<div class="col-12 col-lg-9 px-3">
|
|
179
|
-
<div *ngIf="breadcrumbs$ | async as breadcrumbs" class="">
|
|
180
|
-
<nav id="x-docs-nav">
|
|
181
|
-
<ol class="breadcrumb">
|
|
182
|
-
<li
|
|
183
|
-
*ngFor="let breadcrumb of breadcrumbs"
|
|
184
|
-
class="breadcrumb-item"
|
|
185
|
-
>
|
|
186
|
-
<a *ngIf="breadcrumb?.url" [routerLink]="breadcrumb.url">{{
|
|
187
|
-
breadcrumb.title
|
|
188
|
-
}}</a>
|
|
189
|
-
<span
|
|
190
|
-
*ngIf="!breadcrumb?.url"
|
|
191
|
-
[routerLink]="breadcrumb.url"
|
|
192
|
-
>{{ breadcrumb.title }}</span
|
|
193
|
-
>
|
|
194
|
-
</li>
|
|
195
|
-
</ol>
|
|
196
|
-
</nav>
|
|
197
|
-
</div>
|
|
198
|
-
|
|
199
|
-
<div
|
|
200
|
-
*ngIf="docs?.html; else empty"
|
|
201
|
-
data-bs-spy="scroll"
|
|
202
|
-
data-bs-target="#x-docs-nav"
|
|
203
|
-
data-bs-root-margin="0px 0px -40%"
|
|
204
|
-
data-bs-smooth-scroll="true"
|
|
205
|
-
class="scrollspy-example"
|
|
206
|
-
tabindex="0"
|
|
207
|
-
>
|
|
208
|
-
<div [innerHTML]="docs.html | xSafeHtml"></div>
|
|
209
|
-
</div>
|
|
210
|
-
</div>
|
|
211
|
-
<div
|
|
212
|
-
*ngIf="showHeaders && docs?.headers?.length"
|
|
213
|
-
class="col-lg-3 sticky-top d-none d-lg-block"
|
|
214
|
-
style="max-height: 75vh; overflow-y: scroll;"
|
|
215
|
-
>
|
|
216
|
-
<ul class="nav flex-column">
|
|
217
|
-
<li
|
|
218
|
-
*ngFor="let h of getLowestLevelHeaders(docs.headers)"
|
|
219
|
-
class="nav-item"
|
|
220
|
-
>
|
|
221
|
-
<a
|
|
222
|
-
class="x-docs-header-nav nav-link text-tiny"
|
|
223
|
-
[routerLink]="['./']"
|
|
224
|
-
[routerLinkActive]="'active'"
|
|
225
|
-
[fragment]="h.id"
|
|
226
|
-
[innerHTML]="h.text"
|
|
227
|
-
></a>
|
|
228
|
-
</li>
|
|
229
|
-
</ul>
|
|
230
|
-
</div>
|
|
231
|
-
</div>
|
|
232
|
-
</div>
|
|
233
|
-
</div>
|
|
234
|
-
|
|
235
|
-
<div class="py-3"></div>
|
|
236
|
-
|
|
237
|
-
<!-- misc -->
|
|
238
|
-
<ng-template #loader>
|
|
239
|
-
<x-element-loader></x-element-loader>
|
|
240
|
-
</ng-template>
|
|
241
|
-
|
|
242
|
-
<ng-template #empty>
|
|
243
|
-
<x-element-blank></x-element-blank>
|
|
244
|
-
</ng-template>
|
|
245
|
-
`, isInline: true, styles: [".text-tiny{font-size:.9em}.x-docs-parent-nav.nav-link.active,.x-docs-parent-nav.nav-link:hover{font-weight:700}.x-docs-child-nav.nav-link.active,.x-docs-child-nav.nav-link:hover{border-left:5px solid;font-weight:700}.x-docs-header-nav.nav-link.active,.x-docs-header-nav.nav-link:hover{font-weight:700}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1$1.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }, { kind: "component", type: i2$1.BlankComponent, selector: "x-element-blank", inputs: ["image", "icon", "type"] }, { kind: "component", type: i2$1.LoaderComponent, selector: "x-element-loader", inputs: ["data"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.SafeHtmlPipe, name: "xSafeHtml" }] }); }
|
|
246
|
-
}
|
|
247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: DocsComponent, decorators: [{
|
|
248
|
-
type: Component,
|
|
249
|
-
args: [{ selector: 'x-docs', template: `
|
|
250
|
-
<div class="row m-0 p-0">
|
|
251
|
-
<div
|
|
252
|
-
class="col-12 col-lg-3 p-0 mb-3 sticky-top d-block d-lg-none"
|
|
253
|
-
style="max-height: 75vh; overflow-y: scroll;"
|
|
254
|
-
*ngIf="nav$ | async as nav; else loader"
|
|
255
|
-
>
|
|
256
|
-
<ng-container *ngIf="nav?.length">
|
|
257
|
-
<select (change)="onSelectChange($event)" class="form-select">
|
|
258
|
-
<option value="" disabled selected>Menu</option>
|
|
259
|
-
<ng-container *ngFor="let a of nav">
|
|
260
|
-
<optgroup [label]="a.title">
|
|
261
|
-
<option *ngIf="!a?.links?.length" [value]="a.url">
|
|
262
|
-
{{ a.title }}
|
|
263
|
-
</option>
|
|
264
|
-
<ng-container *ngIf="a?.links?.length">
|
|
265
|
-
<option *ngFor="let b of a.links" [value]="b.url">
|
|
266
|
-
-- {{ b.title }}
|
|
267
|
-
</option>
|
|
268
|
-
<ng-container *ngFor="let b of a.links">
|
|
269
|
-
<option *ngFor="let c of b.links" [value]="c.url">
|
|
270
|
-
---- {{ c.title }}
|
|
271
|
-
</option>
|
|
272
|
-
</ng-container>
|
|
273
|
-
</ng-container>
|
|
274
|
-
</optgroup>
|
|
275
|
-
</ng-container>
|
|
276
|
-
</select>
|
|
277
|
-
</ng-container>
|
|
278
|
-
</div>
|
|
279
|
-
<div
|
|
280
|
-
class="col-12 col-lg-3 sticky-top d-none d-lg-block p-0 m-0"
|
|
281
|
-
style="max-height: 75vh; overflow-y: scroll;"
|
|
282
|
-
*ngIf="nav$ | async as nav; else loader"
|
|
283
|
-
>
|
|
284
|
-
<ul class="nav flex-column">
|
|
285
|
-
<ng-container *ngIf="nav?.length">
|
|
286
|
-
<li *ngFor="let a of nav" class="nav-item mb-5">
|
|
287
|
-
<p class="fw-bold fs-4 text-body" [innerHTML]="a.title"></p>
|
|
288
|
-
<ul *ngIf="a?.links?.length" class="nav flex-column">
|
|
289
|
-
<li *ngFor="let b of a?.links" class="nav-item">
|
|
290
|
-
<a
|
|
291
|
-
class="x-docs-parent-nav nav-link fs-6 ps-0 ms-0 pt-0 mt-0"
|
|
292
|
-
[routerLink]="b.url"
|
|
293
|
-
[routerLinkActive]="'active'"
|
|
294
|
-
[innerHTML]="b.title"
|
|
295
|
-
></a>
|
|
296
|
-
<ng-container *ngIf="b?.links?.length">
|
|
297
|
-
<ul
|
|
298
|
-
*ngFor="let c of b.links"
|
|
299
|
-
class="nav flex-column border-start"
|
|
300
|
-
>
|
|
301
|
-
<li class="nav-item">
|
|
302
|
-
<a
|
|
303
|
-
class="x-docs-child-nav nav-link text-tiny"
|
|
304
|
-
[routerLink]="c.url"
|
|
305
|
-
[routerLinkActive]="'active'"
|
|
306
|
-
[innerHTML]="c.title"
|
|
307
|
-
></a>
|
|
308
|
-
</li>
|
|
309
|
-
</ul>
|
|
310
|
-
</ng-container>
|
|
311
|
-
</li>
|
|
312
|
-
</ul>
|
|
313
|
-
</li>
|
|
314
|
-
</ng-container>
|
|
315
|
-
</ul>
|
|
316
|
-
</div>
|
|
317
|
-
<div class="col-12 col-lg-9 p-3 p-lg-5 bg-body-tertiary">
|
|
318
|
-
<div class="row" *ngIf="docs$ | async as docs; else loader">
|
|
319
|
-
<div class="col-12 col-lg-9 px-3">
|
|
320
|
-
<div *ngIf="breadcrumbs$ | async as breadcrumbs" class="">
|
|
321
|
-
<nav id="x-docs-nav">
|
|
322
|
-
<ol class="breadcrumb">
|
|
323
|
-
<li
|
|
324
|
-
*ngFor="let breadcrumb of breadcrumbs"
|
|
325
|
-
class="breadcrumb-item"
|
|
326
|
-
>
|
|
327
|
-
<a *ngIf="breadcrumb?.url" [routerLink]="breadcrumb.url">{{
|
|
328
|
-
breadcrumb.title
|
|
329
|
-
}}</a>
|
|
330
|
-
<span
|
|
331
|
-
*ngIf="!breadcrumb?.url"
|
|
332
|
-
[routerLink]="breadcrumb.url"
|
|
333
|
-
>{{ breadcrumb.title }}</span
|
|
334
|
-
>
|
|
335
|
-
</li>
|
|
336
|
-
</ol>
|
|
337
|
-
</nav>
|
|
338
|
-
</div>
|
|
339
|
-
|
|
340
|
-
<div
|
|
341
|
-
*ngIf="docs?.html; else empty"
|
|
342
|
-
data-bs-spy="scroll"
|
|
343
|
-
data-bs-target="#x-docs-nav"
|
|
344
|
-
data-bs-root-margin="0px 0px -40%"
|
|
345
|
-
data-bs-smooth-scroll="true"
|
|
346
|
-
class="scrollspy-example"
|
|
347
|
-
tabindex="0"
|
|
348
|
-
>
|
|
349
|
-
<div [innerHTML]="docs.html | xSafeHtml"></div>
|
|
350
|
-
</div>
|
|
351
|
-
</div>
|
|
352
|
-
<div
|
|
353
|
-
*ngIf="showHeaders && docs?.headers?.length"
|
|
354
|
-
class="col-lg-3 sticky-top d-none d-lg-block"
|
|
355
|
-
style="max-height: 75vh; overflow-y: scroll;"
|
|
356
|
-
>
|
|
357
|
-
<ul class="nav flex-column">
|
|
358
|
-
<li
|
|
359
|
-
*ngFor="let h of getLowestLevelHeaders(docs.headers)"
|
|
360
|
-
class="nav-item"
|
|
361
|
-
>
|
|
362
|
-
<a
|
|
363
|
-
class="x-docs-header-nav nav-link text-tiny"
|
|
364
|
-
[routerLink]="['./']"
|
|
365
|
-
[routerLinkActive]="'active'"
|
|
366
|
-
[fragment]="h.id"
|
|
367
|
-
[innerHTML]="h.text"
|
|
368
|
-
></a>
|
|
369
|
-
</li>
|
|
370
|
-
</ul>
|
|
371
|
-
</div>
|
|
372
|
-
</div>
|
|
373
|
-
</div>
|
|
374
|
-
</div>
|
|
375
|
-
|
|
376
|
-
<div class="py-3"></div>
|
|
377
|
-
|
|
378
|
-
<!-- misc -->
|
|
379
|
-
<ng-template #loader>
|
|
380
|
-
<x-element-loader></x-element-loader>
|
|
381
|
-
</ng-template>
|
|
382
|
-
|
|
383
|
-
<ng-template #empty>
|
|
384
|
-
<x-element-blank></x-element-blank>
|
|
385
|
-
</ng-template>
|
|
386
|
-
`, styles: [".text-tiny{font-size:.9em}.x-docs-parent-nav.nav-link.active,.x-docs-parent-nav.nav-link:hover{font-weight:700}.x-docs-child-nav.nav-link.active,.x-docs-child-nav.nav-link:hover{border-left:5px solid;font-weight:700}.x-docs-header-nav.nav-link.active,.x-docs-header-nav.nav-link:hover{font-weight:700}\n"] }]
|
|
387
|
-
}] });
|
|
388
|
-
|
|
389
|
-
class DocsModule {
|
|
390
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: DocsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
391
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.5", ngImport: i0, type: DocsModule, declarations: [DocsComponent], imports: [SharedModule, i1$1.RouterModule, LayoutsModule,
|
|
392
|
-
ElementsModule,
|
|
393
|
-
ToolbarModule,
|
|
394
|
-
PipesModule] }); }
|
|
395
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: DocsModule, imports: [SharedModule,
|
|
396
|
-
RouterModule.forChild([
|
|
397
|
-
{ path: ':sub1/:sub2/:sub3/:sub4/:sub5', component: DocsComponent },
|
|
398
|
-
{ path: ':sub1/:sub2/:sub3/:sub4', component: DocsComponent },
|
|
399
|
-
{ path: ':sub1/:sub2/:sub3', component: DocsComponent },
|
|
400
|
-
{ path: ':sub1/:sub2', component: DocsComponent },
|
|
401
|
-
{ path: ':sub1', component: DocsComponent },
|
|
402
|
-
]),
|
|
403
|
-
LayoutsModule,
|
|
404
|
-
ElementsModule,
|
|
405
|
-
ToolbarModule,
|
|
406
|
-
PipesModule] }); }
|
|
407
|
-
}
|
|
408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: DocsModule, decorators: [{
|
|
409
|
-
type: NgModule,
|
|
410
|
-
args: [{
|
|
411
|
-
declarations: [DocsComponent],
|
|
412
|
-
imports: [
|
|
413
|
-
SharedModule,
|
|
414
|
-
RouterModule.forChild([
|
|
415
|
-
{ path: ':sub1/:sub2/:sub3/:sub4/:sub5', component: DocsComponent },
|
|
416
|
-
{ path: ':sub1/:sub2/:sub3/:sub4', component: DocsComponent },
|
|
417
|
-
{ path: ':sub1/:sub2/:sub3', component: DocsComponent },
|
|
418
|
-
{ path: ':sub1/:sub2', component: DocsComponent },
|
|
419
|
-
{ path: ':sub1', component: DocsComponent },
|
|
420
|
-
]),
|
|
421
|
-
LayoutsModule,
|
|
422
|
-
ElementsModule,
|
|
423
|
-
ToolbarModule,
|
|
424
|
-
PipesModule,
|
|
425
|
-
],
|
|
426
|
-
}]
|
|
427
|
-
}] });
|
|
428
|
-
|
|
429
|
-
export { DocsModule };
|
|
430
|
-
//# sourceMappingURL=thescaffold-ngx-apps-blog-docs.module-DRQ-g0-1.mjs.map
|