@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.
- package/.genx/package.json +1 -1
- package/.genx/templates/angular/entityManager.hbs +1 -0
- package/.genx/templates/angular/grid.hbs +7 -3
- package/.genx/templates/angular/route.hbs +2 -1
- package/.genx/templates/web-components/component/component.template.hbs +1 -1
- package/.genx/templates/web-components/entityManager.hbs +1 -0
- package/.genx/templates/web-components/grid.hbs +12 -3
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
package/.genx/package.json
CHANGED
|
@@ -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
|
-
|
|
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}}
|
|
@@ -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
|
-
|
|
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
|
|