@acorex/platform-generator 18.0.2 → 18.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
- # generator
2
-
3
- This library was generated with [Nx](https://nx.dev).
4
-
5
- ## Building
6
-
7
- Run `nx build generator` to build the library.
8
-
9
- ## Running unit tests
10
-
11
- Run `nx test generator` to execute the unit tests via [Jest](https://jestjs.io).
1
+ # generator
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build generator` to build the library.
8
+
9
+ ## Running unit tests
10
+
11
+ Run `nx test generator` to execute the unit tests via [Jest](https://jestjs.io).
package/generators.json CHANGED
@@ -1,9 +1,9 @@
1
- {
2
- "generators": {
3
- "app-module": {
4
- "factory": "./src/generators/app-module/generator",
5
- "schema": "./src/generators/app-module/schema.json",
6
- "description": "app-module generator"
7
- }
8
- }
9
- }
1
+ {
2
+ "generators": {
3
+ "app-module": {
4
+ "factory": "./src/generators/app-module/generator",
5
+ "schema": "./src/generators/app-module/schema.json",
6
+ "description": "app-module generator"
7
+ }
8
+ }
9
+ }
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@acorex/platform-generator",
3
- "version": "18.0.2",
3
+ "version": "18.0.6",
4
4
  "dependencies": {
5
5
  "@nx/devkit": "19.2.2",
6
6
  "tslib": "^2.3.0"
7
7
  },
8
8
  "peerDependencies": {
9
- "@acorex/platform": "latest",
10
- "@acorex/modules": "latest",
11
- "@acorex/styles": "latest",
12
- "@acorex/core": "latest",
13
- "@acorex/components": "latest"
9
+ "@acorex/platform": ">=18.0.0",
10
+ "@acorex/modules": ">=18.0.0",
11
+ "@acorex/styles": ">=18.0.0",
12
+ "@acorex/core": ">=18.0.0",
13
+ "@acorex/components": ">=18.0.0"
14
14
  },
15
15
  "type": "commonjs",
16
16
  "main": "./src/index.js",
@@ -25,7 +25,7 @@ import { AXPTranslationRootModule } from './modules/common/translation-root.modu
25
25
  import { AXPLayoutRootModule } from './modules/layout/layout-root.module';
26
26
 
27
27
  import { AXLoadingDialogModule } from '@acorex/components/loading-dialog';
28
- import { AXP_ROOT_CONFIG_TOKEN } from '@acorex/platform/core';
28
+ import { AXP_ROOT_CONFIG_TOKEN } from '@acorex/platform/common';
29
29
  import { environment } from '../environments/environment';
30
30
 
31
31
  export function initApp() {
@@ -1,5 +1,5 @@
1
1
  import { AXPPermission, AXPPermissionLoader, AXPSessionContext } from '@acorex/platform/auth';
2
- import { AXP_ROOT_CONFIG_TOKEN } from '@acorex/platform/core';
2
+ import { AXP_ROOT_CONFIG_TOKEN } from '@acorex/platform/common';
3
3
  import { Injectable, inject } from '@angular/core';
4
4
  import { Observable, map, of } from 'rxjs';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { AXPTenant, AXPTenantLoader, AXPSessionContext } from '@acorex/platform/auth';
2
- import { AXP_ROOT_CONFIG_TOKEN } from '@acorex/platform/core';
2
+ import { AXP_ROOT_CONFIG_TOKEN } from '@acorex/platform/common';
3
3
  import { Injectable, inject } from '@angular/core';
4
4
  import { Observable, delay, of } from 'rxjs';
5
5
 
@@ -1,4 +1,4 @@
1
- import { AXPEntityConfig, AXPEntityLoader } from '@acorex/platform/layouts';
1
+ import { AXPEntityConfig, AXPEntityLoader } from '@acorex/platform/common';
2
2
  import { Injectable, Injector, inject } from '@angular/core';
3
3
 
4
4
  @Injectable()
@@ -11,7 +11,7 @@ import { AXPRootMenuLoader } from './menu.loader';
11
11
  import { AXPRootEntityLoader } from './entity.loader';
12
12
  import { AXPCommonModule, AXPMenuItem, AXPNavigateAction, AXP_MENU_LOADER, AXP_PLATFORM_CONFIG_TOKEN } from '@acorex/platform/common';
13
13
  import pkg from '../../../../../../package.json';
14
- import { AXPComponentSlotModule } from '@acorex/platform/layout';
14
+ import { AXPComponentSlotModule } from '@acorex/platform/layout/builder';
15
15
 
16
16
 
17
17
  @NgModule({
@@ -10,7 +10,7 @@ import {
10
10
  import { Injector } from '@angular/core';
11
11
  import { assign } from 'lodash-es';
12
12
 
13
- const properties: AXPEntityProperty[] = [
13
+ const properties: AXPEntityPropertyConfig[] = [
14
14
  {
15
15
  name: 'firstname',
16
16
  title: 'First Name',
@@ -99,7 +99,7 @@ const columns: AXPEntityListDisplayColumnConfig[] = convertPropertiesToColumns(.
99
99
  export async function entityFactory(injector: Injector): Promise<AXPEntityConfig> {
100
100
 
101
101
  const entity: AXPEntityConfig = {
102
- module: '<% name %>',
102
+ module: '<%= name %>',
103
103
  name: entityName,
104
104
  title: 'Sample Entity',
105
105
  properties: properties,
@@ -4,7 +4,6 @@ export const environment = {
4
4
  //?
5
5
  oidcConfig: {
6
6
  authority: 'https://192.168.25.91:44320',
7
- end_session_endpoint: 'https://192.168.25.91:44320/api/auth/logout',
8
7
  userinfo_endpoint: 'https://192.168.25.91:44320/api/userinfo',
9
8
  scope: 'openid profile email offline_access api1',
10
9
  client_id: 'acorex',
@@ -4,7 +4,6 @@ export const environment = {
4
4
  //?
5
5
  oidcConfig: {
6
6
  authority: 'https://localhost:44320',
7
- end_session_endpoint: 'https://localhost:44320/api/auth/logout',
8
7
  userinfo_endpoint: 'https://localhost:44320/api/userinfo',
9
8
  scope: 'openid profile email offline_access api1',
10
9
  client_id: 'acorex',
@@ -4,7 +4,6 @@ export const environment = {
4
4
  //?
5
5
  oidcConfig: {
6
6
  authority: 'https://asc.acorexui.com:44320',
7
- end_session_endpoint: 'https://asc.acorexui.com:44320/api/auth/logout',
8
7
  userinfo_endpoint: 'https://asc.acorexui.com:44320/api/userinfo',
9
8
  scope: 'openid profile email offline_access api1',
10
9
  client_id: 'acorex',
@@ -4,7 +4,6 @@ export const environment = {
4
4
  //?
5
5
  oidcConfig: {
6
6
  authority: 'https://asctest.acorexui.com:44320',
7
- end_session_endpoint: 'https://asctest.acorexui.com:44320/api/auth/logout',
8
7
  userinfo_endpoint: 'https://asctest.acorexui.com:44320/api/userinfo',
9
8
  scope: 'openid profile email offline_access api1',
10
9
  client_id: 'acorex',
@@ -4,7 +4,6 @@ export const environment = {
4
4
  //?
5
5
  oidcConfig: {
6
6
  authority: 'https://asctest.acorexui.com:44320',
7
- end_session_endpoint: 'https://asctest.acorexui.com:44320/api/auth/logout',
8
7
  userinfo_endpoint: 'https://asctest.acorexui.com:44320/api/userinfo',
9
8
  scope: 'openid profile email offline_access api1',
10
9
  client_id: 'acorex',
@@ -4,7 +4,6 @@ export const environment = {
4
4
  //?
5
5
  oidcConfig: {
6
6
  authority: 'https://localhost:44320',
7
- end_session_endpoint: 'https://localhost:44320/api/auth/logout',
8
7
  userinfo_endpoint: 'https://localhost:44320/api/userinfo',
9
8
  scope: 'openid profile email offline_access api1',
10
9
  client_id: 'acorex',
@@ -1,4 +1,4 @@
1
- export interface AppModuleGeneratorSchema {
2
- name: string;
3
- title: string;
4
- }
1
+ export interface AppModuleGeneratorSchema {
2
+ name: string;
3
+ title: string;
4
+ }
@@ -1,27 +1,27 @@
1
- {
2
- "$schema": "https://json-schema.org/schema",
3
- "$id": "AppModule",
4
- "title": "",
5
- "type": "object",
6
- "properties": {
7
- "name": {
8
- "type": "string",
9
- "description": "",
10
- "$default": {
11
- "$source": "argv",
12
- "index": 0
13
- },
14
- "x-prompt": "What name would you like to use?"
15
- },
16
- "title": {
17
- "type": "string",
18
- "description": "",
19
- "$default": {
20
- "$source": "argv",
21
- "index": 1
22
- },
23
- "x-prompt": "What title would you like to use?"
24
- }
25
- },
26
- "required": ["name", "title"]
27
- }
1
+ {
2
+ "$schema": "https://json-schema.org/schema",
3
+ "$id": "AppModule",
4
+ "title": "",
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "description": "",
10
+ "$default": {
11
+ "$source": "argv",
12
+ "index": 0
13
+ },
14
+ "x-prompt": "What name would you like to use?"
15
+ },
16
+ "title": {
17
+ "type": "string",
18
+ "description": "",
19
+ "$default": {
20
+ "$source": "argv",
21
+ "index": 1
22
+ },
23
+ "x-prompt": "What title would you like to use?"
24
+ }
25
+ },
26
+ "required": ["name", "title"]
27
+ }