@genesislcap/blank-app-seed 3.30.0-prerelease.63 → 3.30.0-prerelease.65

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.30.0-prerelease.63",
4
+ "version": "3.30.0-prerelease.65",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "lint": "eslint .",
@@ -3,6 +3,11 @@ import { CommonModule } from '@angular/common';
3
3
  import { getUser } from '@genesislcap/foundation-user';
4
4
  import { ErrorMessageComponent } from '../../../components/error-message/error-message.component';
5
5
  import { getViewUpdateRightComponent } from '../../../utils';
6
+ {{#if tile.config.customEvents}}
7
+ import { getConnect } from '@genesislcap/foundation-comms';
8
+ import type { ActionRendererParams } from '@genesislcap/rapid-grid-pro';
9
+ import { RapidAgActionRenderer } from '@genesislcap/rapid-grid-pro';
10
+ {{/if}}
6
11
  {{#if tile.config.gridOptions}}
7
12
  import { GridOptionsConfig } from "@genesislcap/rapid-grid-pro";
8
13
  {{/if}}
@@ -46,10 +51,39 @@ export class {{pascalCase tile.componentName}} {
46
51
  hasUserPermission = (permissionCode: string) => getViewUpdateRightComponent(getUser(), permissionCode);{{#if tile.config.createFormUiSchema}}
47
52
  createFormSchema = createFormSchema;{{/if}}{{#if tile.config.uischema}}
48
53
  uischema = createFormSchema;{{/if}}{{#if tile.config.updateFormUiSchema}}
49
- updateFormSchema = updateFormSchema;{{/if}}{{#if tile.config.columns}}
50
- columnDefs = columnDefs;{{/if}}{{#if tile.config.gridOptions}}
54
+ updateFormSchema = updateFormSchema;{{/if}}{{#if tile.config.gridOptions}}
51
55
  gridOptions = gridOptions as GridOptionsConfig;{{/if}}{{#if tile.config.reqrep}}
52
- reqrep = { pollingInterval: 5000 };{{/if}}{{#if tile.config.type}}
56
+ reqrep = { pollingInterval: 5000 };{{/if}}{{#if tile.config.columns}}
57
+ columnDefs = [
58
+ ...columnDefs,
59
+ {{#if tile.config.customEvents}}
60
+ /**
61
+ * TODO: Update the action button's icon under `contentTemplate` below.
62
+ * More information about rapid-icon can be found at: https://docs.genesis.global/docs/develop/client-capabilities/presentation/client-presentation-icon/
63
+ **/
64
+ {{#each tile.config.customEvents}}
65
+ {
66
+ field: '',
67
+ headerName: '',
68
+ minWidth: 50,
69
+ maxWidth: 50,
70
+ pinned: 'right',
71
+ cellRenderer: RapidAgActionRenderer,
72
+ cellRendererParams: <ActionRendererParams>{
73
+ actionClick: async (rowData) => {
74
+ const { ROW_REF, ...DETAILS } = rowData;
75
+ const response = await getConnect().commitEvent("EVENT_{{this}}", {
76
+ DETAILS,
77
+ });
78
+ },
79
+ contentTemplate: `
80
+ <rapid-icon name="cog"></rapid-icon>
81
+ `,
82
+ },
83
+ },
84
+ {{/each}}
85
+ {{/if}}
86
+ ];{{/if}}{{#if tile.config.type}}
53
87
  chartConfig = { {{#ifEquals tile.config.type 'pie'}}
54
88
  "radius": 0.75,
55
89
  "angleField": "value",
@@ -7,6 +7,11 @@ import { getUser } from '@genesislcap/foundation-user';
7
7
  import { getViewUpdateRightComponent } from '../../../utils';
8
8
  import ErrorMessage from '../../../components/ErrorMessage/ErrorMessage';
9
9
  {{/if}}
10
+ {{#if tile.config.customEvents}}
11
+ import { getConnect } from '@genesislcap/foundation-comms';
12
+ import type { ActionRendererParams } from '@genesislcap/rapid-grid-pro';
13
+ import { RapidAgActionRenderer } from '@genesislcap/rapid-grid-pro';
14
+ {{/if}}
10
15
  {{#if tile.config.createFormUiSchema~}}
11
16
  import { createFormSchema as createFormSchemaTile } from './{{pascalCase tile.title}}CreateFormSchema';
12
17
  {{/if}}
@@ -50,7 +55,36 @@ export const {{pascalCase tile.componentName}}: React.FC = () => {
50
55
  const updateFormSchema: typeof updateFormSchemaTile = updateFormSchemaTile;
51
56
  {{/if}}
52
57
  {{#if tile.config.columns~}}
53
- const columnDefs: typeof columnDefsTile = columnDefsTile;
58
+ const columnDefs: typeof columnDefsTile = [
59
+ ...columnDefsTile,
60
+ {{#if tile.config.customEvents}}
61
+ /**
62
+ * TODO: Update the action button's icon under `contentTemplate` below.
63
+ * More information about rapid-icon can be found at: https://docs.genesis.global/docs/develop/client-capabilities/presentation/client-presentation-icon/
64
+ **/
65
+ {{#each tile.config.customEvents}}
66
+ {
67
+ field: '',
68
+ headerName: '',
69
+ minWidth: 50,
70
+ maxWidth: 50,
71
+ pinned: 'right',
72
+ cellRenderer: RapidAgActionRenderer,
73
+ cellRendererParams: {
74
+ actionClick: async (rowData) => {
75
+ const { ROW_REF, ...DETAILS } = rowData;
76
+ const response = await getConnect().commitEvent("EVENT_{{this}}", {
77
+ DETAILS,
78
+ });
79
+ },
80
+ contentTemplate: `
81
+ <rapid-icon name="cog"></rapid-icon>
82
+ `,
83
+ } as ActionRendererParams,
84
+ },
85
+ {{/each}}
86
+ {{/if}}
87
+ ];
54
88
  {{/if}}
55
89
  {{#if tile.config.gridOptions~}}
56
90
  const deferredGridOptions: { onRowClicked: GridOptionsConfig.onRowClicked } = { onRowClicked: gridOptionsTile?.onRowClicked }
@@ -1,7 +1,16 @@
1
+ import { Connect } from '@genesislcap/foundation-comms';
1
2
  import { User } from '@genesislcap/foundation-user';
2
- import { customElement, GenesisElement } from '@genesislcap/web-core';
3
+ import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
3
4
  import { {{pascalCase tile.title}}Styles as styles } from './{{kebabCase tile.title}}.styles';
4
5
  import { {{pascalCase tile.title}}Template as template } from './{{kebabCase tile.title}}.template';
6
+ {{#if tile.config.columns}}
7
+ import { columnDefs } from './{{kebabCase tile.title}}.column.defs';
8
+ import { ColDef } from '@ag-grid-community/core';
9
+ {{/if}}
10
+ {{#if tile.config.customEvents}}
11
+ import type { ActionRendererParams } from '@genesislcap/rapid-grid-pro';
12
+ import { RapidAgActionRenderer } from '@genesislcap/rapid-grid-pro';
13
+ {{/if}}
5
14
 
6
15
  {{#ifAny tile.metadata.comment tile.metadata.todo}}
7
16
  /**
@@ -19,4 +28,38 @@ import { {{pascalCase tile.title}}Template as template } from './{{kebabCase til
19
28
  })
20
29
  export class {{pascalCase tile.componentName}} extends GenesisElement {
21
30
  @User user: User;
22
- }
31
+ @Connect connect!: Connect;
32
+
33
+ {{#if tile.config.columns}}
34
+ @observable columns: ColDef[] = [
35
+ ...columnDefs,
36
+ {{#if tile.config.customEvents}}
37
+ /**
38
+ * TODO: Update the action button's icon under `contentTemplate` below.
39
+ * More information about rapid-icon can be found at: https://docs.genesis.global/docs/develop/client-capabilities/presentation/client-presentation-icon/
40
+ **/
41
+ {{#each tile.config.customEvents}}
42
+ {
43
+ field: '',
44
+ headerName: '',
45
+ minWidth: 50,
46
+ maxWidth: 50,
47
+ pinned: 'right',
48
+ cellRenderer: RapidAgActionRenderer,
49
+ cellRendererParams: <ActionRendererParams>{
50
+ actionClick: async (rowData) => {
51
+ const { ROW_REF, ...DETAILS } = rowData;
52
+ const response = await this.connect.commitEvent("EVENT_{{this}}", {
53
+ DETAILS,
54
+ });
55
+ },
56
+ contentTemplate: `
57
+ <rapid-icon name="cog" tooltip="{{capitalCase this}}"></rapid-icon>
58
+ `,
59
+ },
60
+ },
61
+ {{/each}}
62
+ {{/if}}
63
+ ];
64
+ {{/if}}
65
+ }
@@ -10,9 +10,6 @@ import { createFormSchema } from './{{kebabCase tile.title}}.create.form.schema'
10
10
  {{#if tile.config.updateFormUiSchema}}
11
11
  import { updateFormSchema } from './{{kebabCase tile.title}}.update.form.schema';
12
12
  {{/if}}
13
- {{#if tile.config.columns}}
14
- import { columnDefs } from './{{kebabCase tile.title}}.column.defs';
15
- {{/if}}
16
13
  {{#if tile.config.gridOptions}}
17
14
  import { gridOptions } from './{{kebabCase tile.title}}.gridOptions';
18
15
  {{/if}}
@@ -38,7 +38,7 @@ ${whenElse(
38
38
  entityLabel="{{ config.entityName }}"
39
39
  {{/if}}
40
40
  {{#if config.columns}}
41
- :columns=${() => columnDefs }
41
+ :columns=${(x) => x.columns}
42
42
  {{/if}}
43
43
  {{#if config.modalPosition}}
44
44
  modal-position="{{ config.modalPosition }}"
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.30.0-prerelease.65](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.30.0-prerelease.64...v3.30.0-prerelease.65) (2025-01-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * add tooltip to customEvent GENC-956 (#416) 8f302ec
9
+
10
+ ## [3.30.0-prerelease.64](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.30.0-prerelease.63...v3.30.0-prerelease.64) (2025-01-06)
11
+
12
+
13
+ ### Features
14
+
15
+ * ability to add custom events in entity-manager GENC-956 (#415) bb88d5c
16
+
3
17
  ## [3.30.0-prerelease.63](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v3.30.0-prerelease.62...v3.30.0-prerelease.63) (2025-01-03)
4
18
 
5
19
 
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.30.0-prerelease.63",
4
+ "version": "3.30.0-prerelease.65",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "release": "semantic-release"