@genesislcap/pbc-auth-ui 1.0.3 → 1.0.5
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/README.md +0 -2
- package/dist/dts/index.d.ts +1 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/profiles/editProfileSchema.d.ts +19 -0
- package/dist/dts/profiles/editProfileSchema.d.ts.map +1 -0
- package/dist/dts/profiles/profiles.d.ts +43 -0
- package/dist/dts/profiles/profiles.d.ts.map +1 -0
- package/dist/dts/user-admin/users.d.ts +11 -12
- package/dist/dts/user-admin/users.d.ts.map +1 -1
- package/dist/dts/user-admin/users.template.d.ts +1 -1
- package/dist/dts/user-admin/users.template.d.ts.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/profiles/editProfileSchema.js +40 -0
- package/dist/esm/profiles/profiles.js +86 -0
- package/dist/esm/types.js +1 -1
- package/dist/esm/user-admin/users.js +8 -8
- package/dist/esm/user-admin/users.template.js +2 -1
- package/index.html +1 -1
- package/package.json +11 -5
package/README.md
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
## Frontend stack
|
|
4
4
|
|
|
5
5
|
Genesis components are standards-based Web Components, making them compatible with almost any modern web framework.
|
|
6
|
-
Our state-of-the-art design system and component set is built on top of
|
|
7
|
-
[Microsoft FAST](https://www.fast.design/docs/introduction/).
|
|
8
6
|
|
|
9
7
|
# Development
|
|
10
8
|
|
package/dist/dts/index.d.ts
CHANGED
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const editProfileFormSchema: {
|
|
2
|
+
type: string;
|
|
3
|
+
elements: ({
|
|
4
|
+
type: string;
|
|
5
|
+
label: string;
|
|
6
|
+
scope: string;
|
|
7
|
+
options?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
type: string;
|
|
10
|
+
label: string;
|
|
11
|
+
scope: string;
|
|
12
|
+
options: {
|
|
13
|
+
allOptionsResourceName: string;
|
|
14
|
+
valueField: string;
|
|
15
|
+
labelField: string;
|
|
16
|
+
};
|
|
17
|
+
})[];
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=editProfileSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editProfileSchema.d.ts","sourceRoot":"","sources":["../../../src/profiles/editProfileSchema.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;CAuCjC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { EntityManagement } from "@genesislcap/foundation-entity-management";
|
|
2
|
+
/**
|
|
3
|
+
* Main class which defined the profile management functionality
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
*
|
|
7
|
+
* Under the hood the profile-management-pbc is the entity-management micro-frontend configured for use
|
|
8
|
+
* with the `ALL_PROFILES` resource.
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* You can use this class by forward declaring it in the template file where it is used, and then using
|
|
15
|
+
* it in a html template. It is recommended to wrap it in an error boundary.
|
|
16
|
+
* ```javascript
|
|
17
|
+
* <profile-management-pbc></profile-management-pbc>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
export declare class Profiles extends EntityManagement {
|
|
22
|
+
/**
|
|
23
|
+
* Auth provider which is used to confirm authorisation of the user for their user management permissions
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
*
|
|
27
|
+
* Requires {@link @genesislcap/foundation-comms#Auth | the auth class} to be registered with the
|
|
28
|
+
* DI container
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
private auth;
|
|
32
|
+
/**
|
|
33
|
+
* Constructor will set the {@link EntityManagement.createEvent} {@link EntityManagement.deleteEvent} {@link EntityManagement.updateEvent} to match the permissions set from the server
|
|
34
|
+
*/
|
|
35
|
+
constructor();
|
|
36
|
+
readProfileData(profile: any): Promise<{
|
|
37
|
+
RIGHT_CODES: any[];
|
|
38
|
+
USER_NAMES: any[];
|
|
39
|
+
NAME: any;
|
|
40
|
+
}>;
|
|
41
|
+
confirmDelete(): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=profiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../src/profiles/profiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAI7E;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAGa,QAAS,SAAQ,gBAAgB;IAC5C;;;;;;;;OAQG;IACG,OAAO,CAAC,IAAI,CAAO;IAEzB;;OAEG;;IAuBU,eAAe,CAAC,OAAO,KAAA;;;;;IAsBrB,aAAa;CAM7B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GridProRendererTypes } from '@genesislcap/foundation-zero-grid-pro';
|
|
2
|
-
import { FASTElement } from '@microsoft/fast-element';
|
|
3
1
|
import { DatasourceConfiguration } from '@genesislcap/foundation-entity-management';
|
|
2
|
+
import { GridProRendererTypes } from '@genesislcap/grid-pro';
|
|
3
|
+
import { GenesisElement } from '@genesislcap/web-core';
|
|
4
4
|
/**
|
|
5
5
|
* Defines the default columns which are present on the user management component
|
|
6
6
|
*
|
|
@@ -75,10 +75,6 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
75
75
|
readonly clientLeft: number;
|
|
76
76
|
readonly clientTop: number;
|
|
77
77
|
readonly clientWidth: number;
|
|
78
|
-
/**
|
|
79
|
-
* entityID used to control the definition of an optional entity column which is created with the {@link Users.entityColumn} function.
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
82
78
|
id: string;
|
|
83
79
|
readonly localName: string;
|
|
84
80
|
readonly namespaceURI: string;
|
|
@@ -88,7 +84,10 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
88
84
|
readonly ownerDocument: Document;
|
|
89
85
|
readonly part: DOMTokenList;
|
|
90
86
|
readonly prefix: string;
|
|
91
|
-
readonly scrollHeight: number;
|
|
87
|
+
readonly scrollHeight: number; /**
|
|
88
|
+
* entityID used to control the definition of an optional entity column which is created with the {@link Users.entityColumn} function.
|
|
89
|
+
* @internal
|
|
90
|
+
*/
|
|
92
91
|
scrollLeft: number;
|
|
93
92
|
scrollTop: number;
|
|
94
93
|
readonly scrollWidth: number;
|
|
@@ -355,11 +354,11 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
355
354
|
tabIndex: number;
|
|
356
355
|
blur(): void;
|
|
357
356
|
focus(options?: FocusOptions): void;
|
|
358
|
-
}) & (new () => HTMLElement &
|
|
357
|
+
}) & (new () => HTMLElement & GenesisElement) & {
|
|
359
358
|
from<TBase extends {
|
|
360
359
|
new (): HTMLElement;
|
|
361
360
|
prototype: HTMLElement;
|
|
362
|
-
}>(BaseType: TBase): new () => InstanceType<TBase> &
|
|
361
|
+
}>(BaseType: TBase): new () => InstanceType<TBase> & GenesisElement;
|
|
363
362
|
define<TType extends Function>(type: TType, nameOrDef?: string | import("@microsoft/fast-element").PartialFASTElementDefinition): TType;
|
|
364
363
|
};
|
|
365
364
|
/**
|
|
@@ -367,7 +366,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
367
366
|
*
|
|
368
367
|
* @remarks
|
|
369
368
|
*
|
|
370
|
-
* Under the hood the user-management is the entity-management micro-frontend configured for use
|
|
369
|
+
* Under the hood the user-management-pbc is the entity-management micro-frontend configured for use
|
|
371
370
|
* with the `ALL_USERS` resource.
|
|
372
371
|
*
|
|
373
372
|
* @public
|
|
@@ -377,7 +376,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
377
376
|
* With no customisation required the user management micro-frontend can simply be dropped into the
|
|
378
377
|
* template as shown. However, it is advised to wrap it in an error boundary component.
|
|
379
378
|
* ```javascript
|
|
380
|
-
* <user-management></user-management>
|
|
379
|
+
* <user-management-pbc></user-management-pbc>
|
|
381
380
|
* ```
|
|
382
381
|
* With this default example above the columns will be the {@link UsersColumnConfig} as well as the
|
|
383
382
|
* entity and status columns. The entity and status
|
|
@@ -396,7 +395,7 @@ declare const Users_base: (new (...args: any[]) => {
|
|
|
396
395
|
* ];
|
|
397
396
|
*
|
|
398
397
|
* // Definition inside of the html template
|
|
399
|
-
* <user-management :columns=${() => [...UsersColumnConfig, ...userColumns]}></user-management>
|
|
398
|
+
* <user-management-pbc :columns=${() => [...UsersColumnConfig, ...userColumns]}></user-management-pbc>
|
|
400
399
|
* ```
|
|
401
400
|
*/
|
|
402
401
|
export declare class Users extends Users_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/user-admin/users.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/user-admin/users.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AAGpF,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAA4B,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAW7F;;;;;;;GAOG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;IAoC7B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCA8KA;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/KL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,qBASa,KAAM,SAAQ,UAA8B;IACvD;;;;;;;;OAQG;IACM,OAAO,CAAC,OAAO,CAAU;IAElC;;;;;;;;OAQG;IACG,OAAO,CAAC,IAAI,CAAO;IAEzB;;;;;;;OAOG;IACS,gBAAgB,EAAE,uBAAuB,CAAC;IAEtD;;;OAGG;IACG,YAAY,SAAe;IAEjC;;;;;;;;;OASG;IAC8C,qBAAqB,EAAE,MAAM,CAClD;IAE5B;;;;;OAKG;IACI,YAAY;;;;;;;;;;;;IAYnB;;;;;OAKG;IACI,YAAY;;;;;;;;IAYnB;;OAEG;IACS,OAAO,EAAE,GAAG,CAAqB;IAEjC,sBAAsB,EAAE,GAAG,CAAM;IACjC,sBAAsB,EAAE,GAAG,CAAM;IAEjC,aAAa,EAAE,OAAO,CAAC;IACnC,OAAO,CAAC,aAAa,CAAS;IAE9B;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;OAEG;IACS,WAAW,EAAE,MAAM,CAAC;IAEhC;;;OAGG;IACG,QAAQ,EAAE,MAAM,CAAqB;IAE3C;;;OAGG;IACG,cAAc,EAAE,MAAM,CAAU;IAEtC;;;OAGG;IACG,WAAW,EAAE,MAAM,CAAkB;IAE3C;;;OAGG;IACG,yBAAyB,EAAE,MAAM,CAAuB;IAE9D;;OAEG;;IAaG,iBAAiB;IAcd,SAAS,IAAI,IAAI;IAc1B;;;OAGG;IACH,sBAAsB,CAAC,MAAM,KAAA;;;;;;;;IAW7B;;;;;;;;OAQG;IACG,YAAY,CAAC,MAAM,KAAA;IAoCzB;;OAEG;IACG,YAAY,CAAC,IAAI,KAAA;;;;;;;;;;;;;;;CAwBxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.template.d.ts","sourceRoot":"","sources":["../../../src/user-admin/users.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"users.template.d.ts","sourceRoot":"","sources":["../../../src/user-admin/users.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAqF3D,eAAO,MAAM,aAAa,EAAE,YAoC3B,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export const editProfileFormSchema = {
|
|
2
|
+
type: 'VerticalLayout',
|
|
3
|
+
elements: [
|
|
4
|
+
{
|
|
5
|
+
type: 'Control',
|
|
6
|
+
label: 'Name',
|
|
7
|
+
scope: '#/properties/NAME',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
type: 'Control',
|
|
11
|
+
label: 'Description',
|
|
12
|
+
scope: '#/properties/DESCRIPTION',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'Control',
|
|
16
|
+
label: 'Status',
|
|
17
|
+
scope: '#/properties/STATUS',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
type: 'Control',
|
|
21
|
+
label: 'Rights',
|
|
22
|
+
scope: '#/properties/RIGHT_CODES',
|
|
23
|
+
options: {
|
|
24
|
+
allOptionsResourceName: 'RIGHT',
|
|
25
|
+
valueField: 'CODE',
|
|
26
|
+
labelField: 'CODE',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
type: 'Control',
|
|
31
|
+
label: 'Users',
|
|
32
|
+
scope: '#/properties/USER_NAMES',
|
|
33
|
+
options: {
|
|
34
|
+
allOptionsResourceName: 'USER',
|
|
35
|
+
valueField: 'USER_NAME',
|
|
36
|
+
labelField: 'USER_NAME',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { __awaiter, __decorate } from "tslib";
|
|
2
|
+
import { Auth } from '@genesislcap/foundation-comms';
|
|
3
|
+
import { EntityManagement } from "@genesislcap/foundation-entity-management";
|
|
4
|
+
import { customElement } from '@genesislcap/web-core';
|
|
5
|
+
import { editProfileFormSchema } from './editProfileSchema';
|
|
6
|
+
/**
|
|
7
|
+
* Main class which defined the profile management functionality
|
|
8
|
+
*
|
|
9
|
+
* @remarks
|
|
10
|
+
*
|
|
11
|
+
* Under the hood the profile-management-pbc is the entity-management micro-frontend configured for use
|
|
12
|
+
* with the `ALL_PROFILES` resource.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
*
|
|
18
|
+
* You can use this class by forward declaring it in the template file where it is used, and then using
|
|
19
|
+
* it in a html template. It is recommended to wrap it in an error boundary.
|
|
20
|
+
* ```javascript
|
|
21
|
+
* <profile-management-pbc></profile-management-pbc>
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
let Profiles = class Profiles extends EntityManagement {
|
|
26
|
+
/**
|
|
27
|
+
* Constructor will set the {@link EntityManagement.createEvent} {@link EntityManagement.deleteEvent} {@link EntityManagement.updateEvent} to match the permissions set from the server
|
|
28
|
+
*/
|
|
29
|
+
constructor() {
|
|
30
|
+
super();
|
|
31
|
+
this.createEvent = this.auth.currentUser.hasPermission('INSERT_PROFILE')
|
|
32
|
+
? 'EVENT_INSERT_PROFILE'
|
|
33
|
+
: '';
|
|
34
|
+
this.deleteEvent = this.auth.currentUser.hasPermission('DELETE_PROFILE')
|
|
35
|
+
? 'EVENT_DELETE_PROFILE'
|
|
36
|
+
: '';
|
|
37
|
+
this.updateEvent = this.auth.currentUser.hasPermission('AMEND_PROFILE')
|
|
38
|
+
? 'EVENT_AMEND_PROFILE'
|
|
39
|
+
: '';
|
|
40
|
+
this.persistColumnStateKey = 'entity_profiles_management';
|
|
41
|
+
this.updateFormUiSchema = editProfileFormSchema;
|
|
42
|
+
this.createFormUiSchema = editProfileFormSchema;
|
|
43
|
+
this.readEventFn = this.readProfileData.bind(this);
|
|
44
|
+
this.resourceName = 'ALL_PROFILES';
|
|
45
|
+
this.title = 'Profile Management';
|
|
46
|
+
this.entityLabel = 'Profile';
|
|
47
|
+
}
|
|
48
|
+
readProfileData(profile) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const selectedRightsReq = yield this.connect.request('PROFILE_RIGHT', {
|
|
51
|
+
REQUEST: {
|
|
52
|
+
PROFILE_NAME: profile.PROFILE_NAME,
|
|
53
|
+
RIGHT_CODE: '*',
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
const selectedUsersReq = yield this.connect.request('PROFILE_USER', {
|
|
57
|
+
REQUEST: {
|
|
58
|
+
PROFILE_NAME: profile.PROFILE_NAME,
|
|
59
|
+
USER_NAME: '*',
|
|
60
|
+
},
|
|
61
|
+
});
|
|
62
|
+
return {
|
|
63
|
+
RIGHT_CODES: selectedRightsReq.REPLY.map((v) => v.RIGHT_CODE),
|
|
64
|
+
USER_NAMES: Array.from(new Set(selectedUsersReq.REPLY.map((v) => v.USER_NAME))),
|
|
65
|
+
NAME: profile.PROFILE_NAME,
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
confirmDelete() {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
const deleteReq = yield this.connect.commitEvent(this.deleteEvent, {
|
|
72
|
+
DETAILS: { NAME: this.selectedEntity.PROFILE_NAME },
|
|
73
|
+
});
|
|
74
|
+
this.errorNotify(deleteReq);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
__decorate([
|
|
79
|
+
Auth
|
|
80
|
+
], Profiles.prototype, "auth", void 0);
|
|
81
|
+
Profiles = __decorate([
|
|
82
|
+
customElement({
|
|
83
|
+
name: 'profile-management-pbc',
|
|
84
|
+
})
|
|
85
|
+
], Profiles);
|
|
86
|
+
export { Profiles };
|
package/dist/esm/types.js
CHANGED
|
@@ -2,8 +2,8 @@ import { __awaiter, __decorate } from "tslib";
|
|
|
2
2
|
import { Auth, Connect } from '@genesislcap/foundation-comms';
|
|
3
3
|
import { showNotification } from '@genesislcap/foundation-notifications';
|
|
4
4
|
import { LifecycleMixin } from '@genesislcap/foundation-utils';
|
|
5
|
-
import { GridProRendererTypes } from '@genesislcap/
|
|
6
|
-
import { attr, css, customElement,
|
|
5
|
+
import { GridProRendererTypes } from '@genesislcap/grid-pro';
|
|
6
|
+
import { attr, css, customElement, GenesisElement, observable } from '@genesislcap/web-core';
|
|
7
7
|
import { getErrorFormat, logger } from '../utils';
|
|
8
8
|
import { UsersTemplate } from './users.template';
|
|
9
9
|
const defaultColumnConfig = {
|
|
@@ -40,7 +40,7 @@ export const UsersColumnConfig = [
|
|
|
40
40
|
*
|
|
41
41
|
* @remarks
|
|
42
42
|
*
|
|
43
|
-
* Under the hood the user-management is the entity-management micro-frontend configured for use
|
|
43
|
+
* Under the hood the user-management-pbc is the entity-management micro-frontend configured for use
|
|
44
44
|
* with the `ALL_USERS` resource.
|
|
45
45
|
*
|
|
46
46
|
* @public
|
|
@@ -50,7 +50,7 @@ export const UsersColumnConfig = [
|
|
|
50
50
|
* With no customisation required the user management micro-frontend can simply be dropped into the
|
|
51
51
|
* template as shown. However, it is advised to wrap it in an error boundary component.
|
|
52
52
|
* ```javascript
|
|
53
|
-
* <user-management></user-management>
|
|
53
|
+
* <user-management-pbc></user-management-pbc>
|
|
54
54
|
* ```
|
|
55
55
|
* With this default example above the columns will be the {@link UsersColumnConfig} as well as the
|
|
56
56
|
* entity and status columns. The entity and status
|
|
@@ -69,10 +69,10 @@ export const UsersColumnConfig = [
|
|
|
69
69
|
* ];
|
|
70
70
|
*
|
|
71
71
|
* // Definition inside of the html template
|
|
72
|
-
* <user-management :columns=${() => [...UsersColumnConfig, ...userColumns]}></user-management>
|
|
72
|
+
* <user-management-pbc :columns=${() => [...UsersColumnConfig, ...userColumns]}></user-management-pbc>
|
|
73
73
|
* ```
|
|
74
74
|
*/
|
|
75
|
-
let Users = class Users extends LifecycleMixin(
|
|
75
|
+
let Users = class Users extends LifecycleMixin(GenesisElement) {
|
|
76
76
|
/**
|
|
77
77
|
* Returns a configuration for an optional status column
|
|
78
78
|
*
|
|
@@ -223,7 +223,7 @@ let Users = class Users extends LifecycleMixin(FASTElement) {
|
|
|
223
223
|
config: {
|
|
224
224
|
toast: { type: 'warning', autoClose: true, closeTimeout: notificationCloseTimeout },
|
|
225
225
|
},
|
|
226
|
-
}, '
|
|
226
|
+
}, 'rapid');
|
|
227
227
|
});
|
|
228
228
|
// bring back original value
|
|
229
229
|
params.setValue(previousValue);
|
|
@@ -301,7 +301,7 @@ __decorate([
|
|
|
301
301
|
], Users.prototype, "availableEntitiesEndpoint", void 0);
|
|
302
302
|
Users = __decorate([
|
|
303
303
|
customElement({
|
|
304
|
-
name: 'user-management',
|
|
304
|
+
name: 'user-management-pbc',
|
|
305
305
|
template: UsersTemplate,
|
|
306
306
|
styles: css `
|
|
307
307
|
:host {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html } from '@
|
|
1
|
+
import { html } from '@genesislcap/web-core';
|
|
2
2
|
const conditionalSchemaEntry = (predicate, entry) => {
|
|
3
3
|
return predicate ? [entry] : [];
|
|
4
4
|
};
|
|
@@ -72,6 +72,7 @@ const editUserSchema = (edit, allAccessType, entityID, entityLabel, entityLabelK
|
|
|
72
72
|
});
|
|
73
73
|
export const UsersTemplate = html `
|
|
74
74
|
<entity-management
|
|
75
|
+
design-system-prefix="rapid"
|
|
75
76
|
resourceName=${(x) => x.resourceName}
|
|
76
77
|
title="User Management"
|
|
77
78
|
entityLabel="User"
|
package/index.html
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/pbc-auth-ui",
|
|
3
3
|
"description": "Genesis PBC auth UI",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.5",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-auth.d.ts",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"build:webpack": "genx build",
|
|
36
36
|
"build:webpack:stats": "genx analyze",
|
|
37
37
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
38
|
+
"circular": "npx madge --extensions ts --circular ./src",
|
|
38
39
|
"dev": "genx dev -e API_HOST,ENABLE_SSO",
|
|
39
40
|
"dev:docker": "npm run dev -- --host 0.0.0.0",
|
|
40
41
|
"dev:intellij": "genx dev -e ENABLE_SSO",
|
|
@@ -53,6 +54,13 @@
|
|
|
53
54
|
"test:unit:watch": "genx test --watch",
|
|
54
55
|
"test:debug": "genx test --debug"
|
|
55
56
|
},
|
|
57
|
+
"madge": {
|
|
58
|
+
"detectiveOptions": {
|
|
59
|
+
"ts": {
|
|
60
|
+
"skipTypeImports": true
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
56
64
|
"devDependencies": {
|
|
57
65
|
"@genesislcap/foundation-testing": "~14",
|
|
58
66
|
"@genesislcap/genx": "~14",
|
|
@@ -67,10 +75,8 @@
|
|
|
67
75
|
"@genesislcap/foundation-logger": "~14",
|
|
68
76
|
"@genesislcap/foundation-notifications": "~14",
|
|
69
77
|
"@genesislcap/foundation-utils": "~14",
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@microsoft/fast-foundation": "^2.33.2",
|
|
73
|
-
"@microsoft/fast-router": "^0.4.2"
|
|
78
|
+
"@genesislcap/grid-pro": "~14",
|
|
79
|
+
"@genesislcap/web-core": "~14"
|
|
74
80
|
},
|
|
75
81
|
"publishConfig": {
|
|
76
82
|
"access": "public"
|