@smartsoft001-mobilems/articles-shell-angular 2.37.0 → 2.38.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.
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, inject, contentChild, Component, NgModule,
|
|
3
|
-
import {
|
|
4
|
-
import * as i2 from '@smartsoft001/crud-shell-angular';
|
|
2
|
+
import { Injectable, inject, contentChild, Component, NgModule, Directive, effect, InjectionToken } from '@angular/core';
|
|
3
|
+
import { FILE_SERVICE_CONFIG } from '@smartsoft001/angular';
|
|
5
4
|
import { CrudFacade, initialState as initialState$1, getReducer as getReducer$1, CrudService, CrudConfig, CrudFullConfig, CrudFullModule, CrudModule, CrudListPageBaseComponent, CrudItemPageBaseComponent } from '@smartsoft001/crud-shell-angular';
|
|
6
|
-
import { CrudBaseService, FiltersBaseComponent, SharedConfig, SharedModule } from '@smartsoft001-mobilems/angular';
|
|
7
|
-
import * as i1 from '@ngrx/store';
|
|
5
|
+
import { CrudBaseService, FiltersBaseComponent, SharedConfig, SharedModule, SeoService, TranslationService } from '@smartsoft001-mobilems/angular';
|
|
8
6
|
import { NgTemplateOutlet, AsyncPipe, CommonModule } from '@angular/common';
|
|
7
|
+
import { createFeatureSelector } from '@ngrx/store';
|
|
8
|
+
import { toSignal } from '@angular/core/rxjs-interop';
|
|
9
|
+
import { ActivatedRoute } from '@angular/router';
|
|
9
10
|
|
|
10
11
|
class ArticlesService extends CrudBaseService {
|
|
11
12
|
getUrlNameForDetails() {
|
|
@@ -22,19 +23,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImpor
|
|
|
22
23
|
}] });
|
|
23
24
|
|
|
24
25
|
class ArticlesFacade extends CrudFacade {
|
|
25
|
-
constructor(
|
|
26
|
-
super(
|
|
27
|
-
this.service =
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
this.service = inject(ArticlesService);
|
|
28
29
|
}
|
|
29
30
|
async downloadPdf(item) {
|
|
30
31
|
await this.service.downloadPdf(item.title, item.id);
|
|
31
32
|
}
|
|
32
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ArticlesFacade, deps:
|
|
33
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ArticlesFacade, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
33
34
|
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ArticlesFacade }); }
|
|
34
35
|
}
|
|
35
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ArticlesFacade, decorators: [{
|
|
36
37
|
type: Injectable
|
|
37
|
-
}]
|
|
38
|
+
}] });
|
|
38
39
|
|
|
39
40
|
const initialState = {
|
|
40
41
|
...initialState$1,
|
|
@@ -107,9 +108,6 @@ class ArticlesModule {
|
|
|
107
108
|
static forFeature(options) {
|
|
108
109
|
if (!options.config.reducerFactory)
|
|
109
110
|
options.config.reducerFactory = getReducer;
|
|
110
|
-
options.config.list = {
|
|
111
|
-
paginationMode: PaginationMode.singlePage,
|
|
112
|
-
};
|
|
113
111
|
return {
|
|
114
112
|
ngModule: ArticlesModule,
|
|
115
113
|
providers: [
|
|
@@ -174,11 +172,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImpor
|
|
|
174
172
|
}]
|
|
175
173
|
}] });
|
|
176
174
|
|
|
175
|
+
const getArticlesState = createFeatureSelector('articles');
|
|
176
|
+
//export const getArticlesTest = createSelector(
|
|
177
|
+
// getArticlesState,
|
|
178
|
+
// (state) => state.test
|
|
179
|
+
//);
|
|
180
|
+
|
|
177
181
|
class ArticlesListComponent extends CrudListPageBaseComponent {
|
|
178
182
|
constructor() {
|
|
179
183
|
super(...arguments);
|
|
180
|
-
this.
|
|
181
|
-
this.
|
|
184
|
+
this.facade = inject(ArticlesFacade);
|
|
185
|
+
this.list = this.facade.list;
|
|
186
|
+
this.loading = this.facade.loading;
|
|
187
|
+
this.filter = this.facade.filter;
|
|
182
188
|
}
|
|
183
189
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ArticlesListComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
184
190
|
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.0", type: ArticlesListComponent, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
@@ -189,20 +195,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImpor
|
|
|
189
195
|
|
|
190
196
|
class ArticlesItemComponent extends CrudItemPageBaseComponent {
|
|
191
197
|
constructor() {
|
|
192
|
-
super(
|
|
193
|
-
this.
|
|
198
|
+
super();
|
|
199
|
+
this.route = inject(ActivatedRoute);
|
|
200
|
+
this.seoService = inject(SeoService);
|
|
201
|
+
this.translationService = inject(TranslationService);
|
|
202
|
+
this.params = toSignal(this.route.params);
|
|
194
203
|
this.facade = inject(ArticlesFacade);
|
|
204
|
+
this.loading = this.facade.loading;
|
|
205
|
+
this.item = this.facade.selected;
|
|
206
|
+
effect(() => {
|
|
207
|
+
const params = this.params();
|
|
208
|
+
const id = params['id'];
|
|
209
|
+
if (id) {
|
|
210
|
+
this.facade.select(id);
|
|
211
|
+
}
|
|
212
|
+
});
|
|
195
213
|
}
|
|
196
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ArticlesItemComponent, deps:
|
|
214
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ArticlesItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
197
215
|
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.0", type: ArticlesItemComponent, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
198
216
|
}
|
|
199
217
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.0", ngImport: i0, type: ArticlesItemComponent, decorators: [{
|
|
200
218
|
type: Directive
|
|
201
|
-
}] });
|
|
219
|
+
}], ctorParameters: () => [] });
|
|
220
|
+
|
|
221
|
+
const ARTICLES_WIDGET_COMPONENTS_TOKEN = new InjectionToken('ARTICLES_WIDGET_COMPONENTS_TOKEN');
|
|
202
222
|
|
|
203
223
|
/**
|
|
204
224
|
* Generated bundle index. Do not edit.
|
|
205
225
|
*/
|
|
206
226
|
|
|
207
|
-
export { ArticlesItemComponent, ArticlesListComponent, ArticlesModule, ArticlesSharedModule, ComponentsModule, FiltersComponent, ListComponent };
|
|
227
|
+
export { ARTICLES_WIDGET_COMPONENTS_TOKEN, ArticlesFacade, ArticlesItemComponent, ArticlesListComponent, ArticlesModule, ArticlesService, ArticlesSharedModule, ComponentsModule, FiltersComponent, ListComponent, SERVICES, getArticlesState, getReducer, initialState };
|
|
208
228
|
//# sourceMappingURL=smartsoft001-mobilems-articles-shell-angular.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartsoft001-mobilems-articles-shell-angular.mjs","sources":["../../../../../../packages/articles/shell/angular/src/lib/services/articles/articles.service.ts","../../../../../../packages/articles/shell/angular/src/lib/+state/articles.facade.ts","../../../../../../packages/articles/shell/angular/src/lib/+state/articles.reducer.ts","../../../../../../packages/articles/shell/angular/src/lib/components/list/list.component.ts","../../../../../../packages/articles/shell/angular/src/lib/components/list/list.component.html","../../../../../../packages/articles/shell/angular/src/lib/components/filters/filters.component.ts","../../../../../../packages/articles/shell/angular/src/lib/components/filters/filters.component.html","../../../../../../packages/articles/shell/angular/src/lib/components/components.module.ts","../../../../../../packages/articles/shell/angular/src/lib/services/index.ts","../../../../../../packages/articles/shell/angular/src/lib/articles.module.ts","../../../../../../packages/articles/shell/angular/src/lib/articles-shared.module.ts","../../../../../../packages/articles/shell/angular/src/lib/pages/list/list.component.ts","../../../../../../packages/articles/shell/angular/src/lib/pages/item/item.component.ts","../../../../../../packages/articles/shell/angular/src/smartsoft001-mobilems-articles-shell-angular.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { CrudBaseService } from '@smartsoft001-mobilems/angular';\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\n@Injectable()\nexport class ArticlesService extends CrudBaseService<Article> {\n getUrlNameForDetails(): string {\n return 'article';\n }\n\n getUrlNameForList(): string {\n return 'Article';\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { CrudConfig, CrudFacade } from '@smartsoft001/crud-shell-angular';\n\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\nimport { ArticlesService } from '../services/articles/articles.service';\n\n@Injectable()\nexport class ArticlesFacade extends CrudFacade<Article> {\n constructor(\n store: Store,\n config: CrudConfig<Article>,\n private service: ArticlesService,\n ) {\n super(store as any, config);\n }\n\n async downloadPdf(item: { title: string; id: string }): Promise<void> {\n await this.service.downloadPdf(item.title, item.id);\n }\n}\n","import { Action } from '@ngrx/store';\nimport {\n State as SmartState,\n initialState as smartInitialState,\n getReducer as smartGetReducer,\n} from '@smartsoft001/crud-shell-angular';\n\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\n// import {ArticlesFacade} from \"./articles.facade\";\n\nexport type State = SmartState<Article>;\n\nexport const initialState = {\n ...smartInitialState,\n};\n\nconst articlesReducer = (state = initialState, action: any) => {\n switch (action.type) {\n //case ArticlesFacade.name + ' test':\n // return {\n // ...state,\n // loaded: false,\n // }\n\n default:\n return smartGetReducer('articles')(state, action);\n }\n};\n\nexport function getReducer() {\n return (state: any, action: Action) => {\n return articlesReducer(state, action);\n };\n}\n","import { NgTemplateOutlet, AsyncPipe } from '@angular/common';\nimport { Component, TemplateRef, contentChild, inject } from '@angular/core';\n\nimport { ArticlesFacade } from '../../+state/articles.facade';\n\n@Component({\n selector: 'smart-mobilems-articles-list',\n templateUrl: './list.component.html',\n imports: [NgTemplateOutlet, AsyncPipe],\n})\nexport class ListComponent {\n private facade = inject(ArticlesFacade);\n\n list = this.facade.list;\n loading = this.facade.loading;\n\n itemTpl = contentChild<TemplateRef<any>>('itemTpl');\n loadingTpl = contentChild<TemplateRef<any>>('loadingTpl');\n}\n","@if (list(); as listData) {\n @if (listData && itemTpl()) {\n @for (item of listData; track item) {\n <ng-container\n *ngTemplateOutlet=\"itemTpl(); context: { $implicit: item }\"\n ></ng-container>\n }\n }\n}\n\n@if (loading()) {\n @if (loadingTpl()) {\n <ng-container *ngTemplateOutlet=\"loadingTpl()\"></ng-container>\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component } from '@angular/core';\n\nimport { FiltersBaseComponent } from '@smartsoft001-mobilems/angular';\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\n@Component({\n selector: 'smart-mobilems-articles-filters',\n templateUrl: './filters.component.html',\n imports: [NgTemplateOutlet],\n})\nexport class FiltersComponent extends FiltersBaseComponent<Article> {}\n","<ng-container\n *ngTemplateOutlet=\"contentTpl(); context: { $implicit: context }\"\n></ng-container>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { FiltersComponent } from './filters/filters.component';\nimport { ListComponent } from './list/list.component';\n\nconst COMPONENTS = [FiltersComponent, ListComponent];\n\n@NgModule({\n imports: [CommonModule, COMPONENTS],\n exports: [...COMPONENTS],\n})\nexport class ComponentsModule {}\n","import { CrudService } from '@smartsoft001/crud-shell-angular';\n\nimport { ArticlesService } from './articles/articles.service';\n\nexport const SERVICES = [\n ArticlesService,\n {\n provide: CrudService,\n useClass: ArticlesService,\n },\n];\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport {\n FILE_SERVICE_CONFIG,\n IFileServiceConfig,\n PaginationMode,\n} from '@smartsoft001/angular';\nimport {\n CrudConfig,\n CrudFullConfig,\n CrudFullModule,\n CrudService,\n ICrudModuleOptionsWithRoutng,\n} from '@smartsoft001/crud-shell-angular';\nimport { IEntity } from '@smartsoft001/domain-core';\n\nimport { SharedConfig } from '@smartsoft001-mobilems/angular';\nimport { SharedModule } from '@smartsoft001-mobilems/angular';\n\nimport { ArticlesFacade } from './+state/articles.facade';\nimport { getReducer } from './+state/articles.reducer';\nimport { ComponentsModule } from './components';\nimport { SERVICES } from './services';\n\n@NgModule({\n declarations: [],\n providers: [...SERVICES, ArticlesFacade],\n imports: [SharedModule, ComponentsModule, CrudFullModule],\n exports: [ComponentsModule],\n})\nexport class ArticlesModule {\n static forFeature<T extends IEntity<string>>(\n options: ICrudModuleOptionsWithRoutng<T>,\n ): ModuleWithProviders<ArticlesModule> {\n if (!options.config.reducerFactory)\n options.config.reducerFactory = getReducer;\n options.config.list = {\n paginationMode: PaginationMode.singlePage,\n };\n return {\n ngModule: ArticlesModule,\n providers: [\n {\n provide: SharedConfig,\n useValue: { apiUrl: options.config.apiUrl } as SharedConfig,\n },\n { provide: CrudConfig, useValue: options.config },\n { provide: CrudFullConfig, useValue: options.config },\n {\n provide: FILE_SERVICE_CONFIG,\n useValue: { apiUrl: options.config.apiUrl } as IFileServiceConfig,\n },\n ],\n };\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { FILE_SERVICE_CONFIG, IFileServiceConfig } from '@smartsoft001/angular';\nimport {\n CrudConfig,\n CrudFullConfig,\n CrudModule,\n CrudService,\n ICrudModuleOptionsWithoutRoutng,\n} from '@smartsoft001/crud-shell-angular';\nimport { IEntity } from '@smartsoft001/domain-core';\n\nimport { SharedConfig } from '@smartsoft001-mobilems/angular';\nimport { SharedModule } from '@smartsoft001-mobilems/angular';\n\nimport { ArticlesFacade } from './+state/articles.facade';\nimport { getReducer } from './+state/articles.reducer';\nimport { ComponentsModule } from './components';\nimport { SERVICES } from './services';\n\n@NgModule({\n declarations: [],\n providers: [...SERVICES, ArticlesFacade],\n imports: [SharedModule, ComponentsModule, CrudModule],\n exports: [ComponentsModule],\n})\nexport class ArticlesSharedModule {\n static forFeature<T extends IEntity<string>>(\n options: ICrudModuleOptionsWithoutRoutng<T>,\n ): ModuleWithProviders<ArticlesSharedModule> {\n if (!options.config.reducerFactory)\n options.config.reducerFactory = getReducer;\n return {\n ngModule: ArticlesSharedModule,\n providers: [\n {\n provide: SharedConfig,\n useValue: { apiUrl: options.config.apiUrl } as SharedConfig,\n },\n { provide: CrudConfig, useValue: options.config },\n { provide: CrudFullConfig, useValue: options.config },\n {\n provide: FILE_SERVICE_CONFIG,\n useValue: { apiUrl: options.config.apiUrl } as IFileServiceConfig,\n },\n ],\n };\n }\n}\n","import { computed, Directive, Signal } from '@angular/core';\nimport { CrudListPageBaseComponent } from '@smartsoft001/crud-shell-angular';\n\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\n@Directive()\nexport abstract class ArticlesListComponent extends CrudListPageBaseComponent<Article> {\n list = computed(() => this.listOptions()?.provider?.list ?? []);\n loading = computed(() => this.listOptions()?.provider?.loading ?? false);\n}\n","import { Directive, inject } from '@angular/core';\nimport {\n CrudFullConfig,\n CrudItemPageBaseComponent,\n} from '@smartsoft001/crud-shell-angular';\n\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\nimport { ArticlesFacade } from '../../+state/articles.facade';\n\n@Directive()\nexport abstract class ArticlesItemComponent extends CrudItemPageBaseComponent<Article> {\n config = inject(CrudFullConfig<Article>);\n facade = inject(ArticlesFacade);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3.ArticlesService","smartInitialState","smartGetReducer"],"mappings":";;;;;;;;;AAMM,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;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"smartsoft001-mobilems-articles-shell-angular.mjs","sources":["../../../../../../packages/articles/shell/angular/src/lib/services/articles/articles.service.ts","../../../../../../packages/articles/shell/angular/src/lib/+state/articles.facade.ts","../../../../../../packages/articles/shell/angular/src/lib/+state/articles.reducer.ts","../../../../../../packages/articles/shell/angular/src/lib/components/list/list.component.ts","../../../../../../packages/articles/shell/angular/src/lib/components/list/list.component.html","../../../../../../packages/articles/shell/angular/src/lib/components/filters/filters.component.ts","../../../../../../packages/articles/shell/angular/src/lib/components/filters/filters.component.html","../../../../../../packages/articles/shell/angular/src/lib/components/components.module.ts","../../../../../../packages/articles/shell/angular/src/lib/services/index.ts","../../../../../../packages/articles/shell/angular/src/lib/articles.module.ts","../../../../../../packages/articles/shell/angular/src/lib/articles-shared.module.ts","../../../../../../packages/articles/shell/angular/src/lib/+state/articles.selectors.ts","../../../../../../packages/articles/shell/angular/src/lib/pages/list/list.component.ts","../../../../../../packages/articles/shell/angular/src/lib/pages/item/item.component.ts","../../../../../../packages/articles/shell/angular/src/lib/tokens.ts","../../../../../../packages/articles/shell/angular/src/smartsoft001-mobilems-articles-shell-angular.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { CrudBaseService } from '@smartsoft001-mobilems/angular';\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\n@Injectable()\nexport class ArticlesService extends CrudBaseService<Article> {\n getUrlNameForDetails(): string {\n return 'article';\n }\n\n getUrlNameForList(): string {\n return 'Article';\n }\n}\n","import { inject, Injectable } from '@angular/core';\nimport { CrudFacade } from '@smartsoft001/crud-shell-angular';\n\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\nimport { ArticlesService } from '../services/articles/articles.service';\n\n@Injectable()\nexport class ArticlesFacade extends CrudFacade<Article> {\n protected service = inject(ArticlesService);\n\n async downloadPdf(item: { title: string; id: string }): Promise<void> {\n await this.service.downloadPdf(item.title, item.id);\n }\n}\n","import { Action } from '@ngrx/store';\nimport {\n State as SmartState,\n initialState as smartInitialState,\n getReducer as smartGetReducer,\n} from '@smartsoft001/crud-shell-angular';\n\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\n// import {ArticlesFacade} from \"./articles.facade\";\n\nexport type State = SmartState<Article>;\n\nexport const initialState = {\n ...smartInitialState,\n};\n\nconst articlesReducer = (state = initialState, action: any) => {\n switch (action.type) {\n //case ArticlesFacade.name + ' test':\n // return {\n // ...state,\n // loaded: false,\n // }\n\n default:\n return smartGetReducer('articles')(state, action);\n }\n};\n\nexport function getReducer() {\n return (state: any, action: Action) => {\n return articlesReducer(state, action);\n };\n}\n","import { NgTemplateOutlet, AsyncPipe } from '@angular/common';\nimport { Component, TemplateRef, contentChild, inject } from '@angular/core';\n\nimport { ArticlesFacade } from '../../+state/articles.facade';\n\n@Component({\n selector: 'smart-mobilems-articles-list',\n templateUrl: './list.component.html',\n imports: [NgTemplateOutlet, AsyncPipe],\n})\nexport class ListComponent {\n private facade = inject(ArticlesFacade);\n\n list = this.facade.list;\n loading = this.facade.loading;\n\n itemTpl = contentChild<TemplateRef<any>>('itemTpl');\n loadingTpl = contentChild<TemplateRef<any>>('loadingTpl');\n}\n","@if (list(); as listData) {\n @if (listData && itemTpl()) {\n @for (item of listData; track item) {\n <ng-container\n *ngTemplateOutlet=\"itemTpl(); context: { $implicit: item }\"\n ></ng-container>\n }\n }\n}\n\n@if (loading()) {\n @if (loadingTpl()) {\n <ng-container *ngTemplateOutlet=\"loadingTpl()\"></ng-container>\n }\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component } from '@angular/core';\n\nimport { FiltersBaseComponent } from '@smartsoft001-mobilems/angular';\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\n@Component({\n selector: 'smart-mobilems-articles-filters',\n templateUrl: './filters.component.html',\n imports: [NgTemplateOutlet],\n})\nexport class FiltersComponent extends FiltersBaseComponent<Article> {}\n","<ng-container\n *ngTemplateOutlet=\"contentTpl(); context: { $implicit: context }\"\n></ng-container>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { FiltersComponent } from './filters/filters.component';\nimport { ListComponent } from './list/list.component';\n\nconst COMPONENTS = [FiltersComponent, ListComponent];\n\n@NgModule({\n imports: [CommonModule, COMPONENTS],\n exports: [...COMPONENTS],\n})\nexport class ComponentsModule {}\n","import { CrudService } from '@smartsoft001/crud-shell-angular';\n\nimport { ArticlesService } from './articles/articles.service';\n\nexport * from './articles/articles.service';\n\nexport const SERVICES = [\n ArticlesService,\n {\n provide: CrudService,\n useClass: ArticlesService,\n },\n];\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { FILE_SERVICE_CONFIG, IFileServiceConfig } from '@smartsoft001/angular';\nimport {\n CrudConfig,\n CrudFullConfig,\n CrudFullModule,\n ICrudModuleOptionsWithoutRoutng,\n} from '@smartsoft001/crud-shell-angular';\nimport { IEntity } from '@smartsoft001/domain-core';\n\nimport { SharedConfig } from '@smartsoft001-mobilems/angular';\nimport { SharedModule } from '@smartsoft001-mobilems/angular';\n\nimport { ArticlesFacade } from './+state/articles.facade';\nimport { getReducer } from './+state/articles.reducer';\nimport { ComponentsModule } from './components';\nimport { SERVICES } from './services';\n\n@NgModule({\n declarations: [],\n providers: [...SERVICES, ArticlesFacade],\n imports: [SharedModule, ComponentsModule, CrudFullModule],\n exports: [ComponentsModule],\n})\nexport class ArticlesModule {\n static forFeature<T extends IEntity<string>>(\n options: ICrudModuleOptionsWithoutRoutng<T>,\n ): ModuleWithProviders<ArticlesModule> {\n if (!options.config.reducerFactory)\n options.config.reducerFactory = getReducer;\n return {\n ngModule: ArticlesModule,\n providers: [\n {\n provide: SharedConfig,\n useValue: { apiUrl: options.config.apiUrl } as SharedConfig,\n },\n { provide: CrudConfig, useValue: options.config },\n { provide: CrudFullConfig, useValue: options.config },\n {\n provide: FILE_SERVICE_CONFIG,\n useValue: { apiUrl: options.config.apiUrl } as IFileServiceConfig,\n },\n ],\n };\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { FILE_SERVICE_CONFIG, IFileServiceConfig } from '@smartsoft001/angular';\nimport {\n CrudConfig,\n CrudFullConfig,\n CrudModule,\n ICrudModuleOptionsWithoutRoutng,\n} from '@smartsoft001/crud-shell-angular';\nimport { IEntity } from '@smartsoft001/domain-core';\n\nimport { SharedConfig } from '@smartsoft001-mobilems/angular';\nimport { SharedModule } from '@smartsoft001-mobilems/angular';\n\nimport { ArticlesFacade } from './+state/articles.facade';\nimport { getReducer } from './+state/articles.reducer';\nimport { ComponentsModule } from './components';\nimport { SERVICES } from './services';\n\n@NgModule({\n declarations: [],\n providers: [...SERVICES, ArticlesFacade],\n imports: [SharedModule, ComponentsModule, CrudModule],\n exports: [ComponentsModule],\n})\nexport class ArticlesSharedModule {\n static forFeature<T extends IEntity<string>>(\n options: ICrudModuleOptionsWithoutRoutng<T>,\n ): ModuleWithProviders<ArticlesSharedModule> {\n if (!options.config.reducerFactory)\n options.config.reducerFactory = getReducer;\n return {\n ngModule: ArticlesSharedModule,\n providers: [\n {\n provide: SharedConfig,\n useValue: { apiUrl: options.config.apiUrl } as SharedConfig,\n },\n { provide: CrudConfig, useValue: options.config },\n { provide: CrudFullConfig, useValue: options.config },\n {\n provide: FILE_SERVICE_CONFIG,\n useValue: { apiUrl: options.config.apiUrl } as IFileServiceConfig,\n },\n ],\n };\n }\n}\n","import {\n createFeatureSelector,\n //createSelector\n} from '@ngrx/store';\n\nimport { State } from './articles.reducer';\n\nexport const getArticlesState = createFeatureSelector<State>('articles');\n\n//export const getArticlesTest = createSelector(\n// getArticlesState,\n// (state) => state.test\n//);\n","import { inject, Directive, Signal } from '@angular/core';\nimport { CrudListPageBaseComponent } from '@smartsoft001/crud-shell-angular';\n\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\nimport { ArticlesFacade } from '../../+state';\n\n@Directive()\nexport abstract class ArticlesListComponent extends CrudListPageBaseComponent<Article> {\n protected readonly facade = inject(ArticlesFacade);\n\n list = this.facade.list as Signal<Article[]>;\n loading = this.facade.loading;\n filter = this.facade.filter;\n}\n","import { Directive, effect, inject } from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute } from '@angular/router';\nimport { CrudItemPageBaseComponent } from '@smartsoft001/crud-shell-angular';\n\nimport { SeoService, TranslationService } from '@smartsoft001-mobilems/angular';\nimport { Article } from '@smartsoft001-mobilems/articles-domain';\n\nimport { ArticlesFacade } from '../../+state';\n\n@Directive()\nexport abstract class ArticlesItemComponent extends CrudItemPageBaseComponent<Article> {\n protected readonly route = inject(ActivatedRoute);\n protected readonly seoService = inject(SeoService);\n protected readonly translationService = inject(TranslationService);\n protected readonly params = toSignal(this.route.params);\n\n override facade = inject(ArticlesFacade);\n\n readonly loading = this.facade.loading;\n readonly item = this.facade.selected;\n\n protected constructor() {\n super();\n\n effect(() => {\n const params = this.params();\n\n const id = params['id'];\n if (id) {\n this.facade.select(id);\n }\n });\n }\n}\n","import { InjectionToken } from '@angular/core';\n\nimport { ArticleWidgetType } from '@smartsoft001-mobilems/models';\n\nexport type ArticlesWidgetComponentsToken = {\n [key in ArticleWidgetType]: any;\n};\n\nexport const ARTICLES_WIDGET_COMPONENTS_TOKEN =\n new InjectionToken<ArticlesWidgetComponentsToken>(\n 'ARTICLES_WIDGET_COMPONENTS_TOKEN',\n );\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["smartInitialState","smartGetReducer"],"mappings":";;;;;;;;;;AAMM,MAAO,eAAgB,SAAQ,eAAwB,CAAA;IAC3D,oBAAoB,GAAA;AAClB,QAAA,OAAO,SAAS;IAClB;IAEA,iBAAiB,GAAA;AACf,QAAA,OAAO,SAAS;IAClB;iIAPW,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;qIAAf,eAAe,EAAA,CAAA,CAAA;;2FAAf,eAAe,EAAA,U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AA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAD1C;;;MCFY,gCAAgC,GAC3C,IAAI,cAAc,CAChB,kCAAkC;;ACVtC;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { TemplateRef, ModuleWithProviders, Signal } from '@angular/core';
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
2
|
+
import { TemplateRef, ModuleWithProviders, Signal, InjectionToken } from '@angular/core';
|
|
3
|
+
import * as _smartsoft001_crud_shell_angular from '@smartsoft001/crud-shell-angular';
|
|
4
|
+
import { ICrudModuleOptionsWithoutRoutng, CrudFacade, State as State$1, CrudListPageBaseComponent, CrudItemPageBaseComponent, CrudService } from '@smartsoft001/crud-shell-angular';
|
|
5
5
|
import { IEntity } from '@smartsoft001/domain-core';
|
|
6
6
|
import * as i1$1 from '@smartsoft001-mobilems/angular';
|
|
7
|
-
import { FiltersBaseComponent, CrudBaseService } from '@smartsoft001-mobilems/angular';
|
|
7
|
+
import { FiltersBaseComponent, CrudBaseService, SeoService, TranslationService } from '@smartsoft001-mobilems/angular';
|
|
8
8
|
import * as i1 from '@angular/common';
|
|
9
9
|
import { Article } from '@smartsoft001-mobilems/articles-domain';
|
|
10
10
|
import * as dist_packages_articles_domain_src from 'dist/packages/articles/domain/src';
|
|
11
|
-
import
|
|
11
|
+
import * as _angular_router from '@angular/router';
|
|
12
|
+
import { ActivatedRoute } from '@angular/router';
|
|
13
|
+
import * as _ngrx_store from '@ngrx/store';
|
|
14
|
+
import { Action } from '@ngrx/store';
|
|
15
|
+
import { ArticleWidgetType } from '@smartsoft001-mobilems/models';
|
|
12
16
|
|
|
13
17
|
declare class FiltersComponent extends FiltersBaseComponent<Article> {
|
|
14
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<FiltersComponent, never>;
|
|
@@ -32,26 +36,19 @@ declare class ComponentsModule {
|
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
declare class ArticlesModule {
|
|
35
|
-
static forFeature<T extends IEntity<string>>(options:
|
|
39
|
+
static forFeature<T extends IEntity<string>>(options: ICrudModuleOptionsWithoutRoutng<T>): ModuleWithProviders<ArticlesModule>;
|
|
36
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArticlesModule, never>;
|
|
37
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArticlesModule, never, [typeof i1$1.SharedModule, typeof ComponentsModule, typeof
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArticlesModule, never, [typeof i1$1.SharedModule, typeof ComponentsModule, typeof _smartsoft001_crud_shell_angular.CrudFullModule], [typeof ComponentsModule]>;
|
|
38
42
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArticlesModule>;
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
declare class ArticlesSharedModule {
|
|
42
46
|
static forFeature<T extends IEntity<string>>(options: ICrudModuleOptionsWithoutRoutng<T>): ModuleWithProviders<ArticlesSharedModule>;
|
|
43
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArticlesSharedModule, never>;
|
|
44
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArticlesSharedModule, never, [typeof i1$1.SharedModule, typeof ComponentsModule, typeof
|
|
48
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArticlesSharedModule, never, [typeof i1$1.SharedModule, typeof ComponentsModule, typeof _smartsoft001_crud_shell_angular.CrudModule], [typeof ComponentsModule]>;
|
|
45
49
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArticlesSharedModule>;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
|
-
declare abstract class ArticlesListComponent extends CrudListPageBaseComponent<Article> {
|
|
49
|
-
list: Signal<any[] | Signal<Article[]>>;
|
|
50
|
-
loading: Signal<false | Signal<boolean>>;
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ArticlesListComponent, never>;
|
|
52
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ArticlesListComponent, never, never, {}, {}, never, never, true, never>;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
52
|
declare class ArticlesService extends CrudBaseService<Article> {
|
|
56
53
|
getUrlNameForDetails(): string;
|
|
57
54
|
getUrlNameForList(): string;
|
|
@@ -60,8 +57,7 @@ declare class ArticlesService extends CrudBaseService<Article> {
|
|
|
60
57
|
}
|
|
61
58
|
|
|
62
59
|
declare class ArticlesFacade extends CrudFacade<Article> {
|
|
63
|
-
|
|
64
|
-
constructor(store: Store, config: CrudConfig<Article>, service: ArticlesService);
|
|
60
|
+
protected service: ArticlesService;
|
|
65
61
|
downloadPdf(item: {
|
|
66
62
|
title: string;
|
|
67
63
|
id: string;
|
|
@@ -70,11 +66,79 @@ declare class ArticlesFacade extends CrudFacade<Article> {
|
|
|
70
66
|
static ɵprov: i0.ɵɵInjectableDeclaration<ArticlesFacade>;
|
|
71
67
|
}
|
|
72
68
|
|
|
69
|
+
type State = State$1<Article>;
|
|
70
|
+
declare const initialState: {
|
|
71
|
+
selected?: any;
|
|
72
|
+
multiSelected?: any[];
|
|
73
|
+
list?: any[];
|
|
74
|
+
totalCount?: number;
|
|
75
|
+
filter?: _smartsoft001_crud_shell_angular.ICrudFilter;
|
|
76
|
+
links?: any;
|
|
77
|
+
loaded: boolean;
|
|
78
|
+
error?: string | null;
|
|
79
|
+
};
|
|
80
|
+
declare function getReducer(): (state: any, action: Action) => State$1<any> | {
|
|
81
|
+
loaded: boolean;
|
|
82
|
+
error: any;
|
|
83
|
+
selected?: any;
|
|
84
|
+
multiSelected?: any[] | undefined;
|
|
85
|
+
list?: any[] | undefined;
|
|
86
|
+
totalCount?: number;
|
|
87
|
+
filter?: _smartsoft001_crud_shell_angular.ICrudFilter;
|
|
88
|
+
links?: any;
|
|
89
|
+
} | {
|
|
90
|
+
loaded: boolean;
|
|
91
|
+
filter: any;
|
|
92
|
+
error: null;
|
|
93
|
+
totalCount: null;
|
|
94
|
+
links: null;
|
|
95
|
+
selected?: any;
|
|
96
|
+
multiSelected?: any[] | undefined;
|
|
97
|
+
list?: any[] | undefined;
|
|
98
|
+
} | {
|
|
99
|
+
loaded: boolean;
|
|
100
|
+
list: any[];
|
|
101
|
+
totalCount: any;
|
|
102
|
+
links: any;
|
|
103
|
+
error: null;
|
|
104
|
+
selected?: any;
|
|
105
|
+
multiSelected?: any[] | undefined;
|
|
106
|
+
filter?: _smartsoft001_crud_shell_angular.ICrudFilter;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
declare const getArticlesState: _ngrx_store.MemoizedSelector<object, State, _ngrx_store.DefaultProjectorFn<State>>;
|
|
110
|
+
|
|
111
|
+
declare abstract class ArticlesListComponent extends CrudListPageBaseComponent<Article> {
|
|
112
|
+
protected readonly facade: ArticlesFacade;
|
|
113
|
+
list: Signal<Article[]>;
|
|
114
|
+
loading: Signal<boolean>;
|
|
115
|
+
filter: Signal<_smartsoft001_crud_shell_angular.ICrudFilter>;
|
|
116
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArticlesListComponent, never>;
|
|
117
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArticlesListComponent, never, never, {}, {}, never, never, true, never>;
|
|
118
|
+
}
|
|
119
|
+
|
|
73
120
|
declare abstract class ArticlesItemComponent extends CrudItemPageBaseComponent<Article> {
|
|
74
|
-
|
|
121
|
+
protected readonly route: ActivatedRoute;
|
|
122
|
+
protected readonly seoService: SeoService;
|
|
123
|
+
protected readonly translationService: TranslationService;
|
|
124
|
+
protected readonly params: i0.Signal<_angular_router.Params>;
|
|
75
125
|
facade: ArticlesFacade;
|
|
126
|
+
readonly loading: i0.Signal<boolean>;
|
|
127
|
+
readonly item: i0.Signal<Article>;
|
|
128
|
+
protected constructor();
|
|
76
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArticlesItemComponent, never>;
|
|
77
130
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ArticlesItemComponent, never, never, {}, {}, never, never, true, never>;
|
|
78
131
|
}
|
|
79
132
|
|
|
80
|
-
|
|
133
|
+
declare const SERVICES: (typeof ArticlesService | {
|
|
134
|
+
provide: typeof CrudService;
|
|
135
|
+
useClass: typeof ArticlesService;
|
|
136
|
+
})[];
|
|
137
|
+
|
|
138
|
+
type ArticlesWidgetComponentsToken = {
|
|
139
|
+
[key in ArticleWidgetType]: any;
|
|
140
|
+
};
|
|
141
|
+
declare const ARTICLES_WIDGET_COMPONENTS_TOKEN: InjectionToken<ArticlesWidgetComponentsToken>;
|
|
142
|
+
|
|
143
|
+
export { ARTICLES_WIDGET_COMPONENTS_TOKEN, ArticlesFacade, ArticlesItemComponent, ArticlesListComponent, ArticlesModule, ArticlesService, ArticlesSharedModule, ComponentsModule, FiltersComponent, ListComponent, SERVICES, getArticlesState, getReducer, initialState };
|
|
144
|
+
export type { ArticlesWidgetComponentsToken, State };
|