@genesislcap/foundation-entity-management 14.58.0 → 14.60.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.
@@ -151,7 +151,7 @@
151
151
  {
152
152
  "kind": "variable",
153
153
  "name": "template",
154
- "default": "html<EntityManagement>`\n <div class=\"container\">\n <slot name=\"header\" part=\"header\">${defaultHeader}</slot>\n <entity-list\n title=${(x) => x.title}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit=${(x) => x.sizeColumnsToFit}\n enable-filter-bar=${(x) => x.enableFilterBar}\n resourceName=${(x) => x.resourceName}\n :deleteEvent=${(x) => x.deleteEvent}\n :updateEvent=${(x) => x.updateEvent}\n :gridOptions=${(x) => x.gridOptions}\n :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\n hide-edit=${(x) => x.hideEdit}\n hide-delete=${(x) => x.hideDelete}\n >\n <slot name=\"header\" slot=\"header\">${defaultHeader}</slot>\n </entity-list>\n <zero-modal\n ${ref('editEntityModal')}\n position=${(x) => x.modalPosition}\n :onCloseCallback=${(x) => x.closeModal.bind(x)}\n data-test-id=\"edit-entity-modal\"\n >\n <div slot=\"top\" data-test-id=\"dialog-title\">${(x) => x.editDialogTitle}</div>\n\n <slot name=\"edit\">\n ${when(\n (x) => x.editModalVisible,\n html<EntityManagement>`\n <foundation-form\n part=\"form\"\n resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\n @submit-failure=${(x, c) =>\n x.errorSnack((c.event as CustomEvent<{ errors: MessageError[] }>).detail.errors)}\n ></foundation-form>\n `\n )}\n </slot>\n </zero-modal>\n </div>\n`",
154
+ "default": "html<EntityManagement>`\n <div class=\"container\">\n <slot name=\"header\" part=\"header\">${defaultHeader}</slot>\n <entity-list\n title=${(x) => x.title}\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n size-columns-to-fit=${(x) => x.sizeColumnsToFit}\n enable-filter-bar=${(x) => x.enableFilterBar}\n resourceName=${(x) => x.resourceName}\n :deleteEvent=${(x) => x.deleteEvent}\n :updateEvent=${(x) => x.updateEvent}\n :gridOptions=${(x) => x.gridOptions}\n :columns=${(x) => x.columns}\n :datasourceConfig=${(x) => x.datasourceConfig}\n data-test-id=\"entity-list\"\n hide-edit=${(x) => x.hideEdit}\n hide-delete=${(x) => x.hideDelete}\n >\n <slot name=\"header\" slot=\"header\">${defaultHeader}</slot>\n </entity-list>\n <zero-modal\n ${ref('editEntityModal')}\n position=${(x) => x.modalPosition}\n :onCloseCallback=${(x) => x.closeModal.bind(x)}\n data-test-id=\"edit-entity-modal\"\n >\n <div slot=\"top\" data-test-id=\"dialog-title\">${(x) => x.editDialogTitle}</div>\n\n <slot name=\"edit\">\n ${when(\n (x) => x.editModalVisible,\n html<EntityManagement>`\n <foundation-form\n part=\"form\"\n resourceName=${(x) => x.formResourceName}\n :data=${(x) => x.editedEntity}\n :uischema=${(x) => x.formUiSchema}\n @submit-success=${(x, c) => x.submitEntityChanges(c.event as CustomEvent)}\n @submit-failure=${(x, c) =>\n x.errorSnack((c.event as CustomEvent<{ errors: MessageError[] }>).detail.errors)}\n ></foundation-form>\n `,\n )}\n </slot>\n </zero-modal>\n </div>\n`",
155
155
  "description": "Defines the html of the entity component as a ViewTemplate object"
156
156
  }
157
157
  ],
@@ -673,6 +673,55 @@
673
673
  }
674
674
  ]
675
675
  },
676
+ {
677
+ "kind": "javascript-module",
678
+ "path": "src/layouts/default.ts",
679
+ "declarations": [
680
+ {
681
+ "kind": "variable",
682
+ "name": "loginLayout",
683
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss,\n)"
684
+ },
685
+ {
686
+ "kind": "variable",
687
+ "name": "defaultLayout",
688
+ "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n css`\n ${baseLayoutCss}\n `,\n)"
689
+ }
690
+ ],
691
+ "exports": [
692
+ {
693
+ "kind": "js",
694
+ "name": "loginLayout",
695
+ "declaration": {
696
+ "name": "loginLayout",
697
+ "module": "src/layouts/default.ts"
698
+ }
699
+ },
700
+ {
701
+ "kind": "js",
702
+ "name": "defaultLayout",
703
+ "declaration": {
704
+ "name": "defaultLayout",
705
+ "module": "src/layouts/default.ts"
706
+ }
707
+ }
708
+ ]
709
+ },
710
+ {
711
+ "kind": "javascript-module",
712
+ "path": "src/layouts/index.ts",
713
+ "declarations": [],
714
+ "exports": [
715
+ {
716
+ "kind": "js",
717
+ "name": "*",
718
+ "declaration": {
719
+ "name": "*",
720
+ "package": "./default"
721
+ }
722
+ }
723
+ ]
724
+ },
676
725
  {
677
726
  "kind": "javascript-module",
678
727
  "path": "src/list/index.ts",
@@ -716,7 +765,7 @@
716
765
  {
717
766
  "kind": "variable",
718
767
  "name": "listTemplate",
719
- "default": "html<List>`\n <div class=\"container\">\n ${when(\n (x) => x.enableFilterBar,\n html<List>`\n <zero-filter-bar\n resource=${(x) => x.resourceName}\n only=${(x) => x.columns?.map((colDef) => colDef.field).filter((field) => !!field)}\n labels=${(x) => x.columns?.map((colDef) => colDef.headerName || '')}\n target=\"datasource\"\n ></zero-filter-bar>\n `\n )}\n <zero-grid-pro\n ${ref('grid')}\n auto-cell-renderer-by-type\n rowSelection=\"single\"\n rowHeight=\"36\"\n headerHeight=\"36\"\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n ?only-template-col-defs=${(x) => !!x.columns}\n suppressCellFocus=\"true\"\n suppressRowDeselection=\"true\"\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n :deferredGridOptions=${(x) => x.gridOptions}\n resource-name=${(x) => x.resourceName}\n criteria=${(x) => x.datasourceConfig?.criteria}\n fields=${(x) => x.datasourceConfig?.fields}\n is-snapshot=${(x) => x.datasourceConfig?.isSnapshot}\n max-rows=${(x) => x.datasourceConfig?.maxRows}\n max-view=${(x) => x.datasourceConfig?.maxView}\n order-by=${(x) => x.datasourceConfig?.orderBy}\n reverse=${(x) => x.datasourceConfig?.reverse}\n ></grid-pro-genesis-datasource>\n ${repeat(\n (x) => x.columns,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `\n )}\n ${repeat(\n (x) => x.actionButtonsConfig,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `\n )}\n </zero-grid-pro>\n </div>\n`"
768
+ "default": "html<List>`\n <div class=\"container\">\n ${when(\n (x) => x.enableFilterBar,\n html<List>`\n <zero-filter-bar\n resource=${(x) => x.resourceName}\n only=${(x) => x.columns?.map((colDef) => colDef.field).filter((field) => !!field)}\n labels=${(x) => x.columns?.map((colDef) => colDef.headerName || '')}\n target=\"datasource\"\n ></zero-filter-bar>\n `,\n )}\n <zero-grid-pro\n ${ref('grid')}\n auto-cell-renderer-by-type\n rowSelection=\"single\"\n rowHeight=\"36\"\n headerHeight=\"36\"\n persist-column-state-key=${(x) => x.persistColumnStateKey}\n ?only-template-col-defs=${(x) => !!x.columns}\n suppressCellFocus=\"true\"\n suppressRowDeselection=\"true\"\n enable-cell-flashing=${(x) => x.enableCellFlashing}\n >\n <grid-pro-genesis-datasource\n ${ref('datasource')}\n :deferredGridOptions=${(x) => x.gridOptions}\n resource-name=${(x) => x.resourceName}\n criteria=${(x) => x.datasourceConfig?.criteria}\n fields=${(x) => x.datasourceConfig?.fields}\n is-snapshot=${(x) => x.datasourceConfig?.isSnapshot}\n max-rows=${(x) => x.datasourceConfig?.maxRows}\n max-view=${(x) => x.datasourceConfig?.maxView}\n order-by=${(x) => x.datasourceConfig?.orderBy}\n reverse=${(x) => x.datasourceConfig?.reverse}\n ></grid-pro-genesis-datasource>\n ${repeat(\n (x) => x.columns,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n ${repeat(\n (x) => x.actionButtonsConfig,\n html`\n <grid-pro-column :definition=${(x) => x}></grid-pro-column>\n `,\n )}\n </zero-grid-pro>\n </div>\n`"
720
769
  }
721
770
  ],
722
771
  "exports": [
@@ -1145,76 +1194,6 @@
1145
1194
  }
1146
1195
  ]
1147
1196
  },
1148
- {
1149
- "kind": "javascript-module",
1150
- "path": "src/layouts/default.ts",
1151
- "declarations": [
1152
- {
1153
- "kind": "variable",
1154
- "name": "loginLayout",
1155
- "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n baseLayoutCss\n)"
1156
- },
1157
- {
1158
- "kind": "variable",
1159
- "name": "defaultLayout",
1160
- "default": "new FASTElementLayout(\n html`\n <div class=\"container\">\n <div class=\"content\">\n <slot></slot>\n </div>\n </div>\n `,\n css`\n ${baseLayoutCss}\n `\n)"
1161
- }
1162
- ],
1163
- "exports": [
1164
- {
1165
- "kind": "js",
1166
- "name": "loginLayout",
1167
- "declaration": {
1168
- "name": "loginLayout",
1169
- "module": "src/layouts/default.ts"
1170
- }
1171
- },
1172
- {
1173
- "kind": "js",
1174
- "name": "defaultLayout",
1175
- "declaration": {
1176
- "name": "defaultLayout",
1177
- "module": "src/layouts/default.ts"
1178
- }
1179
- }
1180
- ]
1181
- },
1182
- {
1183
- "kind": "javascript-module",
1184
- "path": "src/layouts/index.ts",
1185
- "declarations": [],
1186
- "exports": [
1187
- {
1188
- "kind": "js",
1189
- "name": "*",
1190
- "declaration": {
1191
- "name": "*",
1192
- "package": "./default"
1193
- }
1194
- }
1195
- ]
1196
- },
1197
- {
1198
- "kind": "javascript-module",
1199
- "path": "src/routes/config.ts",
1200
- "declarations": [],
1201
- "exports": []
1202
- },
1203
- {
1204
- "kind": "javascript-module",
1205
- "path": "src/routes/index.ts",
1206
- "declarations": [],
1207
- "exports": [
1208
- {
1209
- "kind": "js",
1210
- "name": "*",
1211
- "declaration": {
1212
- "name": "*",
1213
- "package": "./config"
1214
- }
1215
- }
1216
- ]
1217
- },
1218
1197
  {
1219
1198
  "kind": "javascript-module",
1220
1199
  "path": "src/profiles/editProfileSchema.ts",
@@ -1936,6 +1915,27 @@
1936
1915
  }
1937
1916
  ]
1938
1917
  },
1918
+ {
1919
+ "kind": "javascript-module",
1920
+ "path": "src/routes/config.ts",
1921
+ "declarations": [],
1922
+ "exports": []
1923
+ },
1924
+ {
1925
+ "kind": "javascript-module",
1926
+ "path": "src/routes/index.ts",
1927
+ "declarations": [],
1928
+ "exports": [
1929
+ {
1930
+ "kind": "js",
1931
+ "name": "*",
1932
+ "declaration": {
1933
+ "name": "*",
1934
+ "package": "./config"
1935
+ }
1936
+ }
1937
+ ]
1938
+ },
1939
1939
  {
1940
1940
  "kind": "javascript-module",
1941
1941
  "path": "src/users/users.template.ts",
@@ -1946,7 +1946,7 @@
1946
1946
  "type": {
1947
1947
  "text": "ViewTemplate"
1948
1948
  },
1949
- "default": "html<Users>`\n <entity-management\n resourceName=${(x) => x.resourceName}\n title=\"User Management\"\n entityLabel=\"User\"\n createEvent=\"${(x) => x.createEvent}\"\n :readEventFn=${(x) => (user) => x.readUserData(user)}\n updateEvent=\"${(x) => x.updateEvent}\"\n deleteEvent=\"${(x) => x.deleteEvent}\"\n entityLabel=\"User Details\"\n :updateFormUiSchema=${(x) =>\n editUserSchema(\n true,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalUpdateFields\n )}\n :createFormUiSchema=${(x) =>\n editUserSchema(\n false,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalCreateFields\n )}\n persist-column-state-key=\"entity_users_management\"\n size-columns-to-fit\n :columns=${(x) => [...x.columns, ...x.entityColumn(), x.statusColumn()]}\n :datasourceConfig=${(x) => x.datasourceConfig}\n ></entity-management>\n`"
1949
+ "default": "html<Users>`\n <entity-management\n resourceName=${(x) => x.resourceName}\n title=\"User Management\"\n entityLabel=\"User\"\n createEvent=\"${(x) => x.createEvent}\"\n :readEventFn=${(x) => (user) => x.readUserData(user)}\n updateEvent=\"${(x) => x.updateEvent}\"\n deleteEvent=\"${(x) => x.deleteEvent}\"\n entityLabel=\"User Details\"\n :updateFormUiSchema=${(x) =>\n editUserSchema(\n true,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalUpdateFields,\n )}\n :createFormUiSchema=${(x) =>\n editUserSchema(\n false,\n x.allAccessType,\n x.entityID,\n x.entityLabel,\n x.entityLabelKey,\n x.availableEntitiesEndpoint,\n x.additionalCreateFields,\n )}\n persist-column-state-key=\"entity_users_management\"\n size-columns-to-fit\n :columns=${(x) => [...x.columns, ...x.entityColumn(), x.statusColumn()]}\n :datasourceConfig=${(x) => x.datasourceConfig}\n ></entity-management>\n`"
1950
1950
  }
1951
1951
  ],
1952
1952
  "exports": [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-entity-management",
3
3
  "description": "Genesis Foundation Entity Management",
4
- "version": "14.58.0",
4
+ "version": "14.60.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -41,21 +41,21 @@
41
41
  },
42
42
  "devDependencies": {
43
43
  "@genesislcap/foundation-login": "^14.40.0",
44
- "@genesislcap/foundation-testing": "14.58.0",
45
- "@genesislcap/genx": "14.58.0",
44
+ "@genesislcap/foundation-testing": "14.60.0",
45
+ "@genesislcap/genx": "14.60.0",
46
46
  "rimraf": "^3.0.2"
47
47
  },
48
48
  "dependencies": {
49
49
  "@ag-grid-community/core": "29.2.0",
50
- "@genesislcap/foundation-comms": "14.58.0",
51
- "@genesislcap/foundation-errors": "14.58.0",
52
- "@genesislcap/foundation-forms": "14.58.0",
53
- "@genesislcap/foundation-login": "14.58.0",
54
- "@genesislcap/foundation-ui": "14.58.0",
55
- "@genesislcap/foundation-utils": "14.58.0",
56
- "@genesislcap/foundation-zero": "14.58.0",
57
- "@genesislcap/foundation-zero-grid-pro": "14.58.0",
58
- "@genesislcap/grid-pro": "14.58.0",
50
+ "@genesislcap/foundation-comms": "14.60.0",
51
+ "@genesislcap/foundation-errors": "14.60.0",
52
+ "@genesislcap/foundation-forms": "14.60.0",
53
+ "@genesislcap/foundation-login": "14.60.0",
54
+ "@genesislcap/foundation-ui": "14.60.0",
55
+ "@genesislcap/foundation-utils": "14.60.0",
56
+ "@genesislcap/foundation-zero": "14.60.0",
57
+ "@genesislcap/foundation-zero-grid-pro": "14.60.0",
58
+ "@genesislcap/grid-pro": "14.60.0",
59
59
  "@microsoft/fast-components": "^2.21.3",
60
60
  "@microsoft/fast-element": "^1.7.0",
61
61
  "@microsoft/fast-foundation": "^2.33.2",
@@ -71,5 +71,5 @@
71
71
  "access": "public"
72
72
  },
73
73
  "customElements": "dist/custom-elements.json",
74
- "gitHead": "b29a4535c866650d6dd120a2e7fe84768342246b"
74
+ "gitHead": "78e4c99a7097525e11e99ef7f058d5c464fa30ab"
75
75
  }
@@ -35,7 +35,7 @@ export class EntityManagementPage {
35
35
 
36
36
  async autofill(
37
37
  username: string = this.config.DEFAULT_USER,
38
- password: string = this.config.DEFAULT_PASSWORD
38
+ password: string = this.config.DEFAULT_PASSWORD,
39
39
  ) {
40
40
  await this.username.fill(username);
41
41
  await this.password.fill(password);