@smartsoft001-mobilems/public-collections-shell-angular 2.88.0 → 2.90.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/fesm2022/smartsoft001-mobilems-public-collections-shell-angular.mjs +37 -35
- package/fesm2022/smartsoft001-mobilems-public-collections-shell-angular.mjs.map +1 -1
- package/generators/museum-module.cjs +30 -0
- package/generators/schema.json +20 -0
- package/generators.json +9 -0
- package/package.json +3 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, inject, contentChild, Component, NgModule, Directive, effect } from '@angular/core';
|
|
2
|
+
import { Injectable, inject, contentChild, ChangeDetectionStrategy, Component, NgModule, Directive, effect } from '@angular/core';
|
|
3
3
|
import { FILE_SERVICE_CONFIG } from '@smartsoft001/angular';
|
|
4
4
|
import { CrudFacade, initialState as initialState$1, getReducer as getReducer$1, CrudService, CrudConfig, CrudFullConfig, CrudFullModule, CrudModule, CrudListPageBaseComponent, CrudItemPageBaseComponent } from '@smartsoft001/crud-shell-angular';
|
|
5
5
|
import { CrudBaseService, FiltersBaseComponent, SharedConfig, SharedModule, SeoService, TranslationService } from '@smartsoft001-mobilems/angular';
|
|
@@ -15,10 +15,10 @@ class PublicCollectionsService extends CrudBaseService {
|
|
|
15
15
|
getUrlNameForList() {
|
|
16
16
|
return 'public-collections';
|
|
17
17
|
}
|
|
18
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
19
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
18
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
19
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsService }); }
|
|
20
20
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsService, decorators: [{
|
|
22
22
|
type: Injectable
|
|
23
23
|
}] });
|
|
24
24
|
|
|
@@ -27,10 +27,10 @@ class PublicCollectionsFacade extends CrudFacade {
|
|
|
27
27
|
super(...arguments);
|
|
28
28
|
this.service = inject(PublicCollectionsService);
|
|
29
29
|
}
|
|
30
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
31
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
30
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsFacade, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
31
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsFacade }); }
|
|
32
32
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsFacade, decorators: [{
|
|
34
34
|
type: Injectable
|
|
35
35
|
}] });
|
|
36
36
|
|
|
@@ -59,33 +59,35 @@ class ListComponent {
|
|
|
59
59
|
this.facade = inject(PublicCollectionsFacade);
|
|
60
60
|
this.list = this.facade.list;
|
|
61
61
|
this.loading = this.facade.loading;
|
|
62
|
-
this.itemTpl = contentChild('itemTpl',
|
|
63
|
-
|
|
62
|
+
this.itemTpl = contentChild('itemTpl', /* @ts-ignore */
|
|
63
|
+
...(ngDevMode ? [{ debugName: "itemTpl" }] : /* istanbul ignore next */ []));
|
|
64
|
+
this.loadingTpl = contentChild('loadingTpl', /* @ts-ignore */
|
|
65
|
+
...(ngDevMode ? [{ debugName: "loadingTpl" }] : /* istanbul ignore next */ []));
|
|
64
66
|
}
|
|
65
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
66
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
67
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
68
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.3", type: ListComponent, isStandalone: true, selector: "smart-mobilems-public-collections-list", queries: [{ propertyName: "itemTpl", first: true, predicate: ["itemTpl"], descendants: true, isSignal: true }, { propertyName: "loadingTpl", first: true, predicate: ["loadingTpl"], descendants: true, isSignal: true }], ngImport: i0, template: "@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", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
67
69
|
}
|
|
68
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ListComponent, decorators: [{
|
|
69
71
|
type: Component,
|
|
70
|
-
args: [{ selector: 'smart-mobilems-public-collections-list', imports: [NgTemplateOutlet], template: "@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" }]
|
|
72
|
+
args: [{ selector: 'smart-mobilems-public-collections-list', changeDetection: ChangeDetectionStrategy.Eager, imports: [NgTemplateOutlet], template: "@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" }]
|
|
71
73
|
}], propDecorators: { itemTpl: [{ type: i0.ContentChild, args: ['itemTpl', { isSignal: true }] }], loadingTpl: [{ type: i0.ContentChild, args: ['loadingTpl', { isSignal: true }] }] } });
|
|
72
74
|
|
|
73
75
|
class FiltersComponent extends FiltersBaseComponent {
|
|
74
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
75
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
76
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FiltersComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
77
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.1.3", type: FiltersComponent, isStandalone: true, selector: "smart-mobilems-public-collections-filters", usesInheritance: true, ngImport: i0, template: "<ng-container\n *ngTemplateOutlet=\"contentTpl(); context: { $implicit: context }\"\n></ng-container>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
76
78
|
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: FiltersComponent, decorators: [{
|
|
78
80
|
type: Component,
|
|
79
|
-
args: [{ selector: 'smart-mobilems-public-collections-filters', imports: [NgTemplateOutlet], template: "<ng-container\n *ngTemplateOutlet=\"contentTpl(); context: { $implicit: context }\"\n></ng-container>\n" }]
|
|
81
|
+
args: [{ selector: 'smart-mobilems-public-collections-filters', changeDetection: ChangeDetectionStrategy.Eager, imports: [NgTemplateOutlet], template: "<ng-container\n *ngTemplateOutlet=\"contentTpl(); context: { $implicit: context }\"\n></ng-container>\n" }]
|
|
80
82
|
}] });
|
|
81
83
|
|
|
82
84
|
const COMPONENTS = [FiltersComponent, ListComponent];
|
|
83
85
|
class ComponentsModule {
|
|
84
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
85
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
86
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
86
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
87
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: ComponentsModule, imports: [CommonModule, FiltersComponent, ListComponent], exports: [FiltersComponent, ListComponent] }); }
|
|
88
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ComponentsModule, imports: [CommonModule] }); }
|
|
87
89
|
}
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ComponentsModule, decorators: [{
|
|
89
91
|
type: NgModule,
|
|
90
92
|
args: [{
|
|
91
93
|
imports: [CommonModule, COMPONENTS],
|
|
@@ -121,11 +123,11 @@ class PublicCollectionsModule {
|
|
|
121
123
|
],
|
|
122
124
|
};
|
|
123
125
|
}
|
|
124
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
125
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
126
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
126
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
127
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsModule, imports: [SharedModule, ComponentsModule, CrudFullModule], exports: [ComponentsModule] }); }
|
|
128
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsModule, providers: [...SERVICES, PublicCollectionsFacade], imports: [SharedModule, ComponentsModule, CrudFullModule, ComponentsModule] }); }
|
|
127
129
|
}
|
|
128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsModule, decorators: [{
|
|
129
131
|
type: NgModule,
|
|
130
132
|
args: [{
|
|
131
133
|
declarations: [],
|
|
@@ -155,11 +157,11 @@ class PublicCollectionsSharedModule {
|
|
|
155
157
|
],
|
|
156
158
|
};
|
|
157
159
|
}
|
|
158
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
159
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
160
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
160
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
161
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsSharedModule, imports: [SharedModule, ComponentsModule, CrudModule], exports: [ComponentsModule] }); }
|
|
162
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsSharedModule, providers: [...SERVICES, PublicCollectionsFacade], imports: [SharedModule, ComponentsModule, CrudModule, ComponentsModule] }); }
|
|
161
163
|
}
|
|
162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsSharedModule, decorators: [{
|
|
163
165
|
type: NgModule,
|
|
164
166
|
args: [{
|
|
165
167
|
declarations: [],
|
|
@@ -177,10 +179,10 @@ class PublicCollectionsListComponent extends CrudListPageBaseComponent {
|
|
|
177
179
|
this.loading = this.facade.loading;
|
|
178
180
|
this.filter = this.facade.filter;
|
|
179
181
|
}
|
|
180
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
181
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
182
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsListComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
183
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: PublicCollectionsListComponent, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
182
184
|
}
|
|
183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsListComponent, decorators: [{
|
|
184
186
|
type: Directive
|
|
185
187
|
}] });
|
|
186
188
|
|
|
@@ -202,10 +204,10 @@ class PublicCollectionsItemComponent extends CrudItemPageBaseComponent {
|
|
|
202
204
|
}
|
|
203
205
|
});
|
|
204
206
|
}
|
|
205
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
206
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
207
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
208
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: PublicCollectionsItemComponent, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
|
|
207
209
|
}
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: PublicCollectionsItemComponent, decorators: [{
|
|
209
211
|
type: Directive
|
|
210
212
|
}], ctorParameters: () => [] });
|
|
211
213
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartsoft001-mobilems-public-collections-shell-angular.mjs","sources":["../../../../../../packages/public-collections/shell/angular/src/lib/services/public-collections/public-collections.service.ts","../../../../../../packages/public-collections/shell/angular/src/lib/+state/public-collections.facade.ts","../../../../../../packages/public-collections/shell/angular/src/lib/+state/public-collections.reducer.ts","../../../../../../packages/public-collections/shell/angular/src/lib/components/list/list.component.ts","../../../../../../packages/public-collections/shell/angular/src/lib/components/list/list.component.html","../../../../../../packages/public-collections/shell/angular/src/lib/components/filters/filters.component.ts","../../../../../../packages/public-collections/shell/angular/src/lib/components/filters/filters.component.html","../../../../../../packages/public-collections/shell/angular/src/lib/components/components.module.ts","../../../../../../packages/public-collections/shell/angular/src/lib/services/index.ts","../../../../../../packages/public-collections/shell/angular/src/lib/public-collections.module.ts","../../../../../../packages/public-collections/shell/angular/src/lib/public-collections-shared.module.ts","../../../../../../packages/public-collections/shell/angular/src/lib/pages/list/list.component.ts","../../../../../../packages/public-collections/shell/angular/src/lib/pages/item/item.component.ts","../../../../../../packages/public-collections/shell/angular/src/lib/+state/public-collections.selectors.ts","../../../../../../packages/public-collections/shell/angular/src/smartsoft001-mobilems-public-collections-shell-angular.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { CrudBaseService } from '@smartsoft001-mobilems/angular';\nimport { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\n@Injectable()\nexport class PublicCollectionsService extends CrudBaseService<PublicCollection> {\n getUrlNameForDetails(): string {\n return 'public-collections';\n }\n\n getUrlNameForList(): string {\n return 'public-collections';\n }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { CrudFacade } from '@smartsoft001/crud-shell-angular';\n\nimport { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\nimport { PublicCollectionsService } from '../services/public-collections/public-collections.service';\n\n@Injectable()\nexport class PublicCollectionsFacade extends CrudFacade<PublicCollection> {\n protected service = inject(PublicCollectionsService);\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 { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\n// import {public-collectionsFacade} from \"./public-collections.facade\";\n\nexport type State = SmartState<PublicCollection>;\n\nexport const initialState = {\n ...smartInitialState,\n};\n\nconst publicCollectionsReducer = (state = initialState, action: any) => {\n switch (action.type) {\n //case public-collectionsFacade.name + ' test':\n // return {\n // ...state,\n // loaded: false,\n // }\n\n default:\n return smartGetReducer('publicCollections')(state, action);\n }\n};\n\nexport function getReducer() {\n return (state: any, action: Action) => {\n return publicCollectionsReducer(state, action);\n };\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { Component, TemplateRef, contentChild, inject } from '@angular/core';\n\nimport { PublicCollectionsFacade } from '../../+state/public-collections.facade';\n\n@Component({\n selector: 'smart-mobilems-public-collections-list',\n templateUrl: './list.component.html',\n imports: [NgTemplateOutlet],\n})\nexport class ListComponent {\n private facade = inject(PublicCollectionsFacade);\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 { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\n@Component({\n selector: 'smart-mobilems-public-collections-filters',\n templateUrl: './filters.component.html',\n imports: [NgTemplateOutlet],\n})\nexport class FiltersComponent extends FiltersBaseComponent<PublicCollection> {}\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 { PublicCollectionsService } from './public-collections/public-collections.service';\n\nexport * from './public-collections/public-collections.service';\n\nexport const SERVICES = [\n PublicCollectionsService,\n {\n provide: CrudService,\n useClass: PublicCollectionsService,\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 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 { PublicCollectionsFacade } from './+state/public-collections.facade';\nimport { getReducer } from './+state/public-collections.reducer';\nimport { ComponentsModule } from './components';\nimport { SERVICES } from './services';\n\n@NgModule({\n declarations: [],\n providers: [...SERVICES, PublicCollectionsFacade],\n imports: [SharedModule, ComponentsModule, CrudFullModule],\n exports: [ComponentsModule],\n})\nexport class PublicCollectionsModule {\n static forFeature<T extends IEntity<string>>(\n options: ICrudModuleOptionsWithoutRoutng<T>,\n ): ModuleWithProviders<PublicCollectionsModule> {\n if (!options.config.reducerFactory)\n options.config.reducerFactory = getReducer;\n return {\n ngModule: PublicCollectionsModule,\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 { PublicCollectionsFacade } from './+state/public-collections.facade';\nimport { getReducer } from './+state/public-collections.reducer';\nimport { ComponentsModule } from './components';\nimport { SERVICES } from './services';\n\n@NgModule({\n declarations: [],\n providers: [...SERVICES, PublicCollectionsFacade],\n imports: [SharedModule, ComponentsModule, CrudModule],\n exports: [ComponentsModule],\n})\nexport class PublicCollectionsSharedModule {\n static forFeature<T extends IEntity<string>>(\n options: ICrudModuleOptionsWithoutRoutng<T>,\n ): ModuleWithProviders<PublicCollectionsSharedModule> {\n if (!options.config.reducerFactory)\n options.config.reducerFactory = getReducer;\n return {\n ngModule: PublicCollectionsSharedModule,\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 { Directive, inject, Signal } from '@angular/core';\nimport { CrudListPageBaseComponent } from '@smartsoft001/crud-shell-angular';\n\nimport { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\nimport { PublicCollectionsFacade } from '../../+state/public-collections.facade';\n\n@Directive()\nexport abstract class PublicCollectionsListComponent extends CrudListPageBaseComponent<PublicCollection> {\n protected readonly facade = inject(PublicCollectionsFacade);\n\n list = this.facade.list as Signal<PublicCollection[]>;\n loading = this.facade.loading;\n filter = this.facade.filter;\n}\n","import { Directive, inject, effect, signal } 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 { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\nimport { PublicCollectionsFacade } from '../../+state/public-collections.facade';\n\n@Directive()\nexport abstract class PublicCollectionsItemComponent extends CrudItemPageBaseComponent<PublicCollection> {\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(PublicCollectionsFacade);\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 {\n createFeatureSelector,\n //createSelector\n} from '@ngrx/store';\n\nimport { State } from './public-collections.reducer';\n\nexport const getPublicCollectionsState =\n createFeatureSelector<State>('publicCollections');\n\n//export const getpublic-collectionsTest = createSelector(\n// getpublic-collectionsState,\n// (state) => state.test\n//);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["smartInitialState","smartGetReducer"],"mappings":";;;;;;;;;;AAMM,MAAO,wBAAyB,SAAQ,eAAiC,CAAA;IAC7E,oBAAoB,GAAA;AAClB,QAAA,OAAO,oBAAoB;IAC7B;IAEA,iBAAiB,GAAA;AACf,QAAA,OAAO,oBAAoB;IAC7B;iIAPW,wBAAwB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;qIAAxB,wBAAwB,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC;;;ACGK,MAAO,uBAAwB,SAAQ,UAA4B,CAAA;AADzE,IAAA,WAAA,GAAA;;AAEY,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,wBAAwB,CAAC;AACrD,IAAA;iIAFY,uBAAuB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;qIAAvB,uBAAuB,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC;;;ACMM,MAAM,YAAY,GAAG;AAC1B,IAAA,GAAGA,cAAiB;;AAGtB,MAAM,wBAAwB,GAAG,CAAC,KAAK,GAAG,YAAY,EAAE,MAAW,KAAI;AACrE,IAAA,QAAQ,MAAM,CAAC,IAAI;;;;;;AAOjB,QAAA;YACE,OAAOC,YAAe,CAAC,mBAAmB,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC;;AAEhE,CAAC;SAEe,UAAU,GAAA;AACxB,IAAA,OAAO,CAAC,KAAU,EAAE,MAAc,KAAI;AACpC,QAAA,OAAO,wBAAwB,CAAC,KAAK,EAAE,MAAM,CAAC;AAChD,IAAA,CAAC;AACH;;MCxBa,aAAa,CAAA;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AAI,CAAC,MAAM,CAAC,QAAQ;QAKlC,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE;AAE5B,YAAA,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC;YACvB,IAAI,EAAE,EAAE;AACN,gBAAA,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;YACxB;AACF,QAAA,CAAC,CAAC;IACJ;iIAtBoB,8BAA8B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;qHAA9B,8BAA8B,EAAA,YAAA,EAAA,IAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA9B,8BAA8B,EAAA,UAAA,EAAA,CAAA;kBADnD;;;MCHY,yBAAyB,GACpC,qBAAqB,CAAQ,mBAAmB;AAElD;AACA;AACA;AACA;;ACbA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"smartsoft001-mobilems-public-collections-shell-angular.mjs","sources":["../../../../../../packages/public-collections/shell/angular/src/lib/services/public-collections/public-collections.service.ts","../../../../../../packages/public-collections/shell/angular/src/lib/+state/public-collections.facade.ts","../../../../../../packages/public-collections/shell/angular/src/lib/+state/public-collections.reducer.ts","../../../../../../packages/public-collections/shell/angular/src/lib/components/list/list.component.ts","../../../../../../packages/public-collections/shell/angular/src/lib/components/list/list.component.html","../../../../../../packages/public-collections/shell/angular/src/lib/components/filters/filters.component.ts","../../../../../../packages/public-collections/shell/angular/src/lib/components/filters/filters.component.html","../../../../../../packages/public-collections/shell/angular/src/lib/components/components.module.ts","../../../../../../packages/public-collections/shell/angular/src/lib/services/index.ts","../../../../../../packages/public-collections/shell/angular/src/lib/public-collections.module.ts","../../../../../../packages/public-collections/shell/angular/src/lib/public-collections-shared.module.ts","../../../../../../packages/public-collections/shell/angular/src/lib/pages/list/list.component.ts","../../../../../../packages/public-collections/shell/angular/src/lib/pages/item/item.component.ts","../../../../../../packages/public-collections/shell/angular/src/lib/+state/public-collections.selectors.ts","../../../../../../packages/public-collections/shell/angular/src/smartsoft001-mobilems-public-collections-shell-angular.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\nimport { CrudBaseService } from '@smartsoft001-mobilems/angular';\nimport { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\n@Injectable()\nexport class PublicCollectionsService extends CrudBaseService<PublicCollection> {\n getUrlNameForDetails(): string {\n return 'public-collections';\n }\n\n getUrlNameForList(): string {\n return 'public-collections';\n }\n}\n","import { Injectable, inject } from '@angular/core';\nimport { CrudFacade } from '@smartsoft001/crud-shell-angular';\n\nimport { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\nimport { PublicCollectionsService } from '../services/public-collections/public-collections.service';\n\n@Injectable()\nexport class PublicCollectionsFacade extends CrudFacade<PublicCollection> {\n protected service = inject(PublicCollectionsService);\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 { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\n// import {public-collectionsFacade} from \"./public-collections.facade\";\n\nexport type State = SmartState<PublicCollection>;\n\nexport const initialState = {\n ...smartInitialState,\n};\n\nconst publicCollectionsReducer = (state = initialState, action: any) => {\n switch (action.type) {\n //case public-collectionsFacade.name + ' test':\n // return {\n // ...state,\n // loaded: false,\n // }\n\n default:\n return smartGetReducer('publicCollections')(state, action);\n }\n};\n\nexport function getReducer() {\n return (state: any, action: Action) => {\n return publicCollectionsReducer(state, action);\n };\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n TemplateRef,\n contentChild,\n inject,\n ChangeDetectionStrategy,\n} from '@angular/core';\n\nimport { PublicCollectionsFacade } from '../../+state/public-collections.facade';\n\n@Component({\n selector: 'smart-mobilems-public-collections-list',\n templateUrl: './list.component.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [NgTemplateOutlet],\n})\nexport class ListComponent {\n private facade = inject(PublicCollectionsFacade);\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, ChangeDetectionStrategy } from '@angular/core';\n\nimport { FiltersBaseComponent } from '@smartsoft001-mobilems/angular';\nimport { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\n@Component({\n selector: 'smart-mobilems-public-collections-filters',\n templateUrl: './filters.component.html',\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [NgTemplateOutlet],\n})\nexport class FiltersComponent extends FiltersBaseComponent<PublicCollection> {}\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 { PublicCollectionsService } from './public-collections/public-collections.service';\n\nexport * from './public-collections/public-collections.service';\n\nexport const SERVICES = [\n PublicCollectionsService,\n {\n provide: CrudService,\n useClass: PublicCollectionsService,\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 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 { PublicCollectionsFacade } from './+state/public-collections.facade';\nimport { getReducer } from './+state/public-collections.reducer';\nimport { ComponentsModule } from './components';\nimport { SERVICES } from './services';\n\n@NgModule({\n declarations: [],\n providers: [...SERVICES, PublicCollectionsFacade],\n imports: [SharedModule, ComponentsModule, CrudFullModule],\n exports: [ComponentsModule],\n})\nexport class PublicCollectionsModule {\n static forFeature<T extends IEntity<string>>(\n options: ICrudModuleOptionsWithoutRoutng<T>,\n ): ModuleWithProviders<PublicCollectionsModule> {\n if (!options.config.reducerFactory)\n options.config.reducerFactory = getReducer;\n return {\n ngModule: PublicCollectionsModule,\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 { PublicCollectionsFacade } from './+state/public-collections.facade';\nimport { getReducer } from './+state/public-collections.reducer';\nimport { ComponentsModule } from './components';\nimport { SERVICES } from './services';\n\n@NgModule({\n declarations: [],\n providers: [...SERVICES, PublicCollectionsFacade],\n imports: [SharedModule, ComponentsModule, CrudModule],\n exports: [ComponentsModule],\n})\nexport class PublicCollectionsSharedModule {\n static forFeature<T extends IEntity<string>>(\n options: ICrudModuleOptionsWithoutRoutng<T>,\n ): ModuleWithProviders<PublicCollectionsSharedModule> {\n if (!options.config.reducerFactory)\n options.config.reducerFactory = getReducer;\n return {\n ngModule: PublicCollectionsSharedModule,\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 { Directive, inject, Signal } from '@angular/core';\nimport { CrudListPageBaseComponent } from '@smartsoft001/crud-shell-angular';\n\nimport { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\nimport { PublicCollectionsFacade } from '../../+state/public-collections.facade';\n\n@Directive()\nexport abstract class PublicCollectionsListComponent extends CrudListPageBaseComponent<PublicCollection> {\n protected readonly facade = inject(PublicCollectionsFacade);\n\n list = this.facade.list as Signal<PublicCollection[]>;\n loading = this.facade.loading;\n filter = this.facade.filter;\n}\n","import { Directive, inject, effect, signal } 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 { PublicCollection } from '@smartsoft001-mobilems/public-collections-domain';\n\nimport { PublicCollectionsFacade } from '../../+state/public-collections.facade';\n\n@Directive()\nexport abstract class PublicCollectionsItemComponent extends CrudItemPageBaseComponent<PublicCollection> {\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(PublicCollectionsFacade);\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 {\n createFeatureSelector,\n //createSelector\n} from '@ngrx/store';\n\nimport { State } from './public-collections.reducer';\n\nexport const getPublicCollectionsState =\n createFeatureSelector<State>('publicCollections');\n\n//export const getpublic-collectionsTest = createSelector(\n// getpublic-collectionsState,\n// (state) => state.test\n//);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["smartInitialState","smartGetReducer"],"mappings":";;;;;;;;;;AAMM,MAAO,wBAAyB,SAAQ,eAAiC,CAAA;IAC7E,oBAAoB,GAAA;AAClB,QAAA,OAAO,oBAAoB;IAC7B;IAEA,iBAAiB,GAAA;AACf,QAAA,OAAO,oBAAoB;IAC7B;iIAPW,wBAAwB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;qIAAxB,wBAAwB,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC;;;ACGK,MAAO,uBAAwB,SAAQ,UAA4B,CAAA;AADzE,IAAA,WAAA,GAAA;;AAEY,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,wBAAwB,CAAC;AACrD,IAAA;iIAFY,uBAAuB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;qIAAvB,uBAAuB,EAAA,CAAA,CAAA;;2FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC;;;ACMM,MAAM,YAAY,GAAG;AAC1B,IAAA,GAAGA,cAAiB;;AAGtB,MAAM,wBAAwB,GAAG,CAAC,KAAK,GAAG,YAAY,EAAE,MAAW,KAAI;AACrE,IAAA,QA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libs/museum-collections in a
|
|
3
|
+
* museum workspace from a reference project. The engine ships with
|
|
4
|
+
* @smartsoft001-mobilems/angular (resolved by file path to bypass the
|
|
5
|
+
* package's exports map, which only lists Angular entry points).
|
|
6
|
+
*/
|
|
7
|
+
const path = require('path');
|
|
8
|
+
const { createRequire } = require('module');
|
|
9
|
+
|
|
10
|
+
// Resolve the shared engine from the TARGET workspace (nx g runs at its
|
|
11
|
+
// root) so the generator also works when this package is loaded by path;
|
|
12
|
+
// fall back to normal resolution for a plain npm install.
|
|
13
|
+
function resolveSharedPkg() {
|
|
14
|
+
try {
|
|
15
|
+
return createRequire(path.join(process.cwd(), 'noop.js')).resolve(
|
|
16
|
+
'@smartsoft001-mobilems/angular/package.json',
|
|
17
|
+
);
|
|
18
|
+
} catch {
|
|
19
|
+
return require.resolve('@smartsoft001-mobilems/angular/package.json');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const engine = require(
|
|
24
|
+
path.join(path.dirname(resolveSharedPkg()), 'generators/museum-module-engine.cjs'),
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
module.exports = engine({
|
|
28
|
+
lib: 'museum-collections',
|
|
29
|
+
transGroups: ['COLLECTIONS'],
|
|
30
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "MuseumModule",
|
|
4
|
+
"title": "Scaffold this package's museum feature module from a reference project",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"referenceRoot": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Absolute path to the reference museum workspace (e.g. ~/Projects/mobilems-muzeum-lowicz)"
|
|
10
|
+
},
|
|
11
|
+
"prefix": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "TS path prefix of the target workspace (tsconfig paths use @<prefix>/...)",
|
|
14
|
+
"default": "template"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"required": [
|
|
18
|
+
"referenceRoot"
|
|
19
|
+
]
|
|
20
|
+
}
|
package/generators.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"generators": {
|
|
3
|
+
"museum-module": {
|
|
4
|
+
"factory": "./generators/museum-module.cjs",
|
|
5
|
+
"schema": "./generators/schema.json",
|
|
6
|
+
"description": "Scaffold libs/museum-collections in a museum workspace from a reference project (copy + prefix threading + tsconfig paths + translations pl/en)."
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smartsoft001-mobilems/public-collections-shell-angular",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.90.0",
|
|
4
4
|
"description": "This library was generated with [Nx](https://nx.dev).",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"url": "https://github.com/emiljuchnikowski/smartsoft/issues"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://github.com/emiljuchnikowski/smartsoft#readme",
|
|
15
|
+
"generators": "./generators.json",
|
|
15
16
|
"module": "fesm2022/smartsoft001-mobilems-public-collections-shell-angular.mjs",
|
|
16
17
|
"typings": "types/smartsoft001-mobilems-public-collections-shell-angular.d.ts",
|
|
17
18
|
"exports": {
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
}
|
|
25
26
|
},
|
|
26
27
|
"sideEffects": false,
|
|
28
|
+
"type": "module",
|
|
27
29
|
"dependencies": {
|
|
28
30
|
"tslib": "^2.3.0"
|
|
29
31
|
}
|