@genesislcap/blank-app-seed 3.28.2 → 3.28.4

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/blank-app-seed-config",
3
3
  "description": "Genesis Blank App Seed Configuration",
4
- "version": "3.28.2",
4
+ "version": "3.28.4",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "lint": "eslint .",
@@ -1,16 +1,16 @@
1
1
  <rapid-g2plot-chart
2
2
  type="{{ config.type }}"
3
- [config]="chartConfig"
4
- [ngStyle]="hasUserPermission('{{config.permissions.viewRight}}') ? { width: '100%', height: '100%' } : { display: 'none' }"
3
+ [config]="chartConfig"{{#if config.permissions.viewRight}}
4
+ [ngStyle]="hasUserPermission('{{config.permissions.viewRight}}') ? { width: '100%', height: '100%' } : { display: 'none' }"{{/if}}
5
5
  >
6
6
  <chart-datasource
7
7
  resourceName="{{ config.resourceName }}"
8
8
  server-fields="{{ config.xField }} {{ config.yField }}"
9
9
  ></chart-datasource>
10
- </rapid-g2plot-chart>
10
+ </rapid-g2plot-chart>{{#if config.permissions.viewRight}}
11
11
 
12
12
  <app-error-message
13
13
  [ngStyle]="!hasUserPermission('{{config.permissions.viewRight}}') ? { width: '100%', height: '100%', display: 'flex', 'justify-content': 'center', 'align-items': 'center' } : { display: 'none' }"
14
14
  elementType="h3"
15
15
  message="You do not have access to view this component.">
16
- </app-error-message>
16
+ </app-error-message>{{/if}}
@@ -1,6 +1,7 @@
1
1
  import { Component, Input, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { getUser } from '@genesislcap/foundation-user';
4
+ import { ErrorMessageComponent } from '../../../components/error-message/error-message.component';
4
5
  import { getViewUpdateRightComponent } from '../../../utils';
5
6
  {{#if tile.config.gridOptions}}
6
7
  import { GridOptionsConfig } from "@genesislcap/rapid-grid-pro";
@@ -27,6 +28,7 @@ import { gridOptions } from './{{kebabCase tile.title}}.gridOptions';
27
28
  styleUrl: './{{kebabCase tile.title}}.component.css',
28
29
  standalone: true,
29
30
  imports: [
31
+ ErrorMessageComponent,
30
32
  CommonModule,
31
33
  ],
32
34
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
@@ -1,5 +1,5 @@
1
1
  <section style="height: 100%; width: 100%;">
2
- <ng-container *ngIf="hasUserPermission('{{config.permissions.viewRight}}'); else notPermitted{{ config.index }}">
2
+ <ng-container {{#if config.permissions.viewRight}}*ngIf="hasUserPermission('{{config.permissions.viewRight}}'); else notPermitted{{ config.index }}"{{/if}}>
3
3
  <entity-management
4
4
  design-system-prefix="rapid"
5
5
  header-case-type="capitalCase"
@@ -46,7 +46,7 @@
46
46
  enable-search-bar
47
47
  {{/if}}
48
48
  ></entity-management>
49
- </ng-container>
49
+ </ng-container>{{#if config.permissions.viewRight}}
50
50
 
51
51
  <ng-template #notPermitted{{ config.index }}>
52
52
  <app-error-message
@@ -54,5 +54,5 @@
54
54
  elementType="h3"
55
55
  message="You do not have access to view this component.">
56
56
  </app-error-message>
57
- </ng-template>
57
+ </ng-template>{{/if}}
58
58
  </section>
@@ -1,5 +1,5 @@
1
1
  <section style="height: 100%; width: 100%;">
2
- <ng-container *ngIf="hasUserPermission('{{config.permissions.updateRight}}'); else notPermitted{{ config.index }}">
2
+ <ng-container {{#if config.permissions.updateRight}}*ngIf="hasUserPermission('{{config.permissions.updateRight}}'); else notPermitted{{ config.index }}"{{/if}}>
3
3
  <foundation-form
4
4
  design-system-prefix="rapid"
5
5
  resourceName="{{config.resourceName}}"
@@ -9,13 +9,13 @@
9
9
  >
10
10
  </foundation-form>
11
11
  </ng-container>
12
-
12
+ {{#if config.permissions.updateRight}}
13
13
  <ng-template #notPermitted{{ config.index }}>
14
14
  <app-error-message
15
15
  style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center;"
16
16
  elementType="h3"
17
17
  message="You do not have access to view this component.">
18
18
  </app-error-message>
19
- </ng-template>
19
+ </ng-template>{{/if}}
20
20
  </section>
21
21
 
@@ -1,9 +1,9 @@
1
1
  <rapid-grid-pro
2
- header-case-type="capitalCase"
3
- only-template-col-defs
2
+ header-case-type="capitalCase"{{#if config.useOnlyTemplateCols}}
3
+ only-template-col-defs{{/if}}
4
4
  enable-row-flashing
5
- enable-cell-flashing
6
- [ngStyle]="{ display: hasUserPermission('{{config.permissions.viewRight}}') ? 'block' : 'none' }"
5
+ enable-cell-flashing{{#if config.permissions.viewRight}}
6
+ [ngStyle]="{ display: hasUserPermission('{{config.permissions.viewRight}}') ? 'block' : 'none' }"{{/if}}
7
7
  >
8
8
  <grid-pro-genesis-datasource
9
9
  resource-name="{{config.resourceName}}"
@@ -20,7 +20,7 @@
20
20
  {{#if config.gridOptions}}
21
21
  <grid-pro-column *ngFor="let columnDef of gridOptions?.columnDefs" [definition]="columnDef"></grid-pro-column>
22
22
  {{/if}}
23
- </rapid-grid-pro>
23
+ </rapid-grid-pro>{{#if config.permissions.viewRight}}
24
24
  <section
25
25
  [ngStyle]="{
26
26
  height: '100%',
@@ -33,4 +33,4 @@
33
33
  elementType="h3"
34
34
  message="You do not have access to view this component.">
35
35
  </app-error-message>
36
- </section>
36
+ </section>{{/if}}
@@ -1,6 +1,5 @@
1
1
  import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2
2
  import { CommonModule } from '@angular/common';
3
- import { ErrorMessageComponent } from '../../components/error-message/error-message.component';
4
3
  {{#each route.tiles}}
5
4
  import { {{pascalCase this.componentName}} } from './{{kebabCase this.title}}-{{this.componentType}}';
6
5
  {{/each}}
@@ -11,7 +10,6 @@ import { environment } from '../../../environments/environment';
11
10
  selector: 'app-{{kebabCase route.name}}',
12
11
  standalone: true,
13
12
  imports: [
14
- ErrorMessageComponent,
15
13
  {{#each route.tiles}}
16
14
  {{pascalCase this.componentName}},
17
15
  {{/each}}
@@ -2,8 +2,8 @@ ${whenElse(
2
2
  (x) => getViewUpdateRightComponent(x.user, '{{config.permissions.viewRight}}'),
3
3
  html`
4
4
  <rapid-grid-pro
5
- header-case-type="capitalCase"
6
- only-template-col-defs
5
+ header-case-type="capitalCase"{{#if config.useOnlyTemplateCols}}
6
+ only-template-col-defs{{/if}}
7
7
  enable-row-flashing
8
8
  enable-cell-flashing
9
9
  >
@@ -37,6 +37,7 @@ const formatRouteData = (framework, route) => {
37
37
  ...config,
38
38
  index,
39
39
  gridOptions: gridOptionsSerializer(gridOptions),
40
+ useOnlyTemplateCols: !!gridOptions?.columnDefs,
40
41
  createFormUiSchema: formatJSONValue(createFormUiSchema),
41
42
  updateFormUiSchema: formatJSONValue(updateFormUiSchema),
42
43
  uischema: formatJSONValue(uischema),
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "UI": "14.199.1",
3
- "GSF": "8.1.5",
4
- "Auth": "8.1.1"
3
+ "GSF": "8.2.0",
4
+ "Auth": "8.2.0"
5
5
  }
@@ -1,3 +1,3 @@
1
1
  # for reference see https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-code-owners#example-of-a-codeowners-file
2
2
 
3
- * @cistov @derekdon @MrBrunoWolff @skawian @kievitsp @jacinpoz @khouari1 @rafaelnferreira @matteematt @SzymonZur @ArturKrasinski
3
+ * @cistov @derekdon @MrBrunoWolff @skawian @kievitsp @jacinpoz @khouari1 @rafaelnferreira @matteematt @SzymonZur @ArturKrasinski @jay-taylerson
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.28.4](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.28.3...v3.28.4) (2024-08-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * removing node versions from client build (PA-1349) (#306) 851800e
9
+
10
+ ## [3.28.3](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.28.2...v3.28.3) (2024-08-01)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * automated dependency version update [skip-ci] [PSD-9](https://github.com/genesiscommunitysuccess/blank-app-seed/issues/9) (#301) 51c6226
16
+
3
17
  ## [3.28.2](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.28.1...v3.28.2) (2024-08-01)
4
18
 
5
19
 
@@ -2,7 +2,7 @@ import com.github.gradle.node.npm.task.NpmTask
2
2
 
3
3
  plugins {
4
4
  base
5
- id("com.github.node-gradle.node") version "3.1.1"
5
+ id("com.github.node-gradle.node") version "7.0.1"
6
6
  distribution
7
7
  }
8
8
 
@@ -24,38 +24,13 @@ artifacts {
24
24
  }
25
25
  }
26
26
 
27
- allprojects {
28
- apply(plugin = "com.github.node-gradle.node")
29
- apply(plugin = "base")
30
-
31
- node {
32
- // Version of Node to use.
33
- version.set("20.8.1")
34
-
35
- // Version of NPM to use.
36
- npmVersion.set("10.1.0")
27
+ tasks {
37
28
 
38
- // If true, it will download node using above parameters.
39
- // If false, it will try to use globally installed node.
40
- download.set(false)
29
+ val npmClean = register("npmClean", NpmTask::class) {
30
+ args.set(listOf("run", "clean"))
31
+ delete(".bootstrapDone")
41
32
  }
42
33
 
43
- tasks {
44
- // Setup custom clean task to be run when "clean" task runs.
45
- val npmClean = register("npmClean", NpmTask::class) {
46
- args.set(listOf("run", "clean"))
47
- delete(".bootstrapDone")
48
- }
49
-
50
- clean {
51
- // Depend on the custom npmClean task, the default gradle one deletes the "build" folder by default
52
- // and the project build won't work without it.
53
- dependsOn(npmClean)
54
- }
55
- }
56
- }
57
-
58
- tasks {
59
34
  val npmBootstrap = register("npmBootstrap", NpmTask::class) {
60
35
  val workingDir = layout.projectDirectory.asFile
61
36
  args.set(listOf("run", "bootstrap"))
@@ -63,7 +38,7 @@ tasks {
63
38
  doLast { File(workingDir, ".bootstrapDone").createNewFile() }
64
39
  }
65
40
 
66
- val npmBuild = register("npmBuild", NpmTask::class) {
41
+ val npmAssemble = register("npmAssemble", NpmTask::class) {
67
42
  args.set(listOf("run", "build"))
68
43
  inputs.dir("src")
69
44
  outputs.dir("dist")
@@ -71,15 +46,13 @@ tasks {
71
46
  }
72
47
 
73
48
  val test = register("test", NpmTask::class) {
74
- dependsOn(build)
49
+ dependsOn(npmBootstrap)
50
+ dependsOn(assemble)
75
51
  args.set(listOf("run", "test"))
76
52
  inputs.files(fileTree("src"))
77
53
  inputs.file("package.json")
78
54
 
79
55
  val testsExecutedMarkerName: String = "${projectDir}/.tests.executed"
80
- // Below some potentially useful config snippets if we want to be efficient with test executions.
81
-
82
- // allows easy triggering re-tests
83
56
  doLast {
84
57
  File(testsExecutedMarkerName).appendText("delete this file to force re-execution JavaScript tests")
85
58
  }
@@ -87,14 +60,22 @@ tasks {
87
60
  }
88
61
 
89
62
  distZip {
90
- dependsOn(npmBuild)
63
+ dependsOn(npmAssemble)
91
64
  }
92
65
 
93
66
  distTar {
94
- dependsOn(npmBuild)
67
+ dependsOn(npmAssemble)
95
68
  }
96
69
 
97
70
  assemble {
98
- dependsOn(npmBuild)
71
+ dependsOn(npmAssemble)
72
+ }
73
+
74
+ clean {
75
+ dependsOn(npmClean)
76
+ }
77
+
78
+ build {
79
+ dependsOn(test)
99
80
  }
100
81
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/blank-app-seed",
3
3
  "description": "Genesis Blank App Seed",
4
- "version": "3.28.2",
4
+ "version": "3.28.4",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "release": "semantic-release"