@genesislcap/blank-app-seed 3.23.0 → 3.24.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,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/blank-app-seed-config",
3
3
  "description": "Genesis Blank App Seed Configuration",
4
- "version": "3.23.0",
4
+ "version": "3.24.0",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "lint": "eslint .",
@@ -2,6 +2,7 @@
2
2
  <ng-container *ngIf="hasUserPermission('{{config.permissions.viewRight}}'); else notPermitted{{ config.index }}">
3
3
  <entity-management
4
4
  design-system-prefix="rapid"
5
+ header-case-type="capitalCase"
5
6
  enable-row-flashing
6
7
  enable-cell-flashing
7
8
  {{#if config.title}}
@@ -1,6 +1,8 @@
1
1
  <section style="height: 100%; width: 100%;">
2
2
  <ng-container *ngIf="hasUserPermission('{{config.permissions.viewRight}}'); else notPermitted{{ config.index }}">
3
3
  <rapid-grid-pro
4
+ header-case-type="capitalCase"
5
+ only-template-col-defs
4
6
  enable-row-flashing
5
7
  enable-cell-flashing
6
8
  >
@@ -13,10 +15,12 @@
13
15
  [datasourceConfig]="tile{{ config.index }}.reqrep"
14
16
  {{/if}}
15
17
  {{#if config.gridOptions}}
16
- [deferredGridOptions]="tile{{ config.index }}.gridOptions"
18
+ [deferredGridOptions]="{ onRowClicked: tile{{ config.index }}.gridOptions.onRowClicked }"
17
19
  {{/if}}
18
- >
19
- </grid-pro-genesis-datasource>
20
+ ></grid-pro-genesis-datasource>
21
+ {{#if config.gridOptions}}
22
+ <grid-pro-column *ngFor="let columnDef of tile{{ config.index }}.gridOptions?.columnDefs" [definition]="columnDef"></grid-pro-column>
23
+ {{/if}}
20
24
  </rapid-grid-pro>
21
25
  </ng-container>
22
26
 
@@ -1,6 +1,7 @@
1
1
  import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import { User, getUser } from '@genesislcap/foundation-user';
4
+ import { GridOptionsConfig } from "@genesislcap/rapid-grid-pro";
4
5
  import { getDateFormatter, getNumberFormatter, getViewUpdateRightComponent } from '../../utils';
5
6
  import { ErrorMessageComponent } from '../../components/error-message/error-message.component';
6
7
 
@@ -23,7 +24,7 @@ export class {{pascalCase route.name}}Component {
23
24
  "createFormUiSchema": {{{ this.config.createFormUiSchema }}},{{/if}}{{#if this.config.updateFormUiSchema}}
24
25
  "updateFormUiSchema": {{{ this.config.updateFormUiSchema }}},{{/if}}{{#if this.config.uischema}}
25
26
  "uischema": {{{ this.config.uischema }}},{{/if}}{{#if this.config.gridOptions}}
26
- "gridOptions": {{{ this.config.gridOptions }}},{{/if}}{{#if this.config.reqrep}}
27
+ "gridOptions": {{{ this.config.gridOptions }}} as GridOptionsConfig,{{/if}}{{#if this.config.reqrep}}
27
28
  "reqrep": {{{ this.config.reqrep }}},{{/if}}{{#if this.config.columns}}
28
29
  "columns": {{{ this.config.columns }}},{{/if}}{{#if this.config.type}}
29
30
  "chartConfig": { {{#ifEquals this.config.type 'pie'}}
@@ -1,4 +1,4 @@
1
- import { html, whenElse } from '@genesislcap/web-core';
1
+ import { html, whenElse, repeat } from '@genesislcap/web-core';
2
2
  import { getViewUpdateRightComponent } from '../../../utils';
3
3
  import type { {{pascalCase tile.componentName}} } from './{{kebabCase tile.title}}';
4
4
  {{#if tile.config.createFormUiSchema}}
@@ -3,6 +3,7 @@ ${whenElse(
3
3
  html`
4
4
  <entity-management
5
5
  design-system-prefix="rapid"
6
+ header-case-type="capitalCase"
6
7
  enable-row-flashing
7
8
  enable-cell-flashing
8
9
  {{#if config.title}}
@@ -2,6 +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
7
  enable-row-flashing
6
8
  enable-cell-flashing
7
9
  >
@@ -14,10 +16,17 @@ ${whenElse(
14
16
  :datasourceConfig=${() => ({pollingInterval: 5000 })}
15
17
  {{/if}}
16
18
  {{#if config.gridOptions}}
17
- :deferredGridOptions=${() => gridOptions}
19
+ :deferredGridOptions=${() => ({ onRowClicked: gridOptions?.onRowClicked })}
18
20
  {{/if}}
19
- >
20
- </grid-pro-genesis-datasource>
21
+ ></grid-pro-genesis-datasource>
22
+ {{#if config.gridOptions}}
23
+ ${repeat(
24
+ (x) => gridOptions?.columnDefs,
25
+ html`
26
+ <grid-pro-column :definition=${(x) => x}></grid-pro-column>
27
+ `,
28
+ )}
29
+ {{/if}}
21
30
  </rapid-grid-pro>
22
31
  `,
23
32
  html`
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.24.0](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.23.0...v3.24.0) (2024-07-16)
4
+
5
+
6
+ ### Features
7
+
8
+ * add auto headerCaseType to grid/entity-manager GENC-654 (#280) 47b0520
9
+
3
10
  ## [3.23.0](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.22.0...v3.23.0) (2024-07-15)
4
11
 
5
12
 
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.23.0",
4
+ "version": "3.24.0",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "release": "semantic-release"