@genesislcap/pbc-auth-ui 14.364.1 → 14.365.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.
@@ -407,6 +407,7 @@ export declare class Profiles extends Profiles_base {
407
407
  createEvent: string;
408
408
  deleteEvent: string;
409
409
  updateEvent: string;
410
+ designSystemPrefix: string;
410
411
  constructor();
411
412
  readProfileData(profile: any): Promise<{
412
413
  RIGHT_CODES: any[];
@@ -1 +1 @@
1
- {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../src/profiles/profiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAEzF,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;;;;;;;kBA2FkI,CAAC;;;;;;;;8BAAknD,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAw9B,CAAC;4IAAqK,CAAC;wFAAwI,CAAC;+IAA+L,CAAC;2FAAwI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAA4mC,CAAC;;;;;;;;;;;;;;;;;;;;;;;mBAA8hE,CAAC;;;;;;;;;;;;;6BAA4xB,CAAC;8BAAuE,CAAC;kBAA4D,CAAC;;oBAA8F,CAAC;;sBAAkG,CAAC;oBAAkE,CAAC;;;;;;;;gDAAme,CAAC;;;;;;;;;;;;;;;;;;uBAA8yB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAAiiH,CAAC;yBAA8E,CAAC;UAAoD,GAAG;WAAgD,GAAG;;gBAA6E,GAAG;;;;;;;WAA4V,GAAG;YAAiD,GAAG;;;;;;;;;;;oBAAupC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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G;;;;;;;WAA4V,GAAG;YAAiD,GAAG;;;;;;;;;;;oBAAupC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAiiO,CAAC;cAA6F,CAAC;eAA8F,CAAC;gBAA+F,CAAC;;;;;;;;;;;;;;SAAulC,CAAC;;;iBAA+E,CAAC;;;;;;;;AA1FzttB;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAIa,QAAS,SAAQ,aAA8B;IAC1D;;;;;;;;OAQG;IACG,OAAO,CAAC,IAAI,CAAO;IAEhB,OAAO,CAAC,OAAO,CAAU;IAElC,cAAc,EAAE,gBAAgB,CAAC;IAErB,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IAEpB,WAAW,EAAE,MAAM,CAAC;IAEa,kBAAkB,SAAW;;IAgB7D,eAAe,CAAC,OAAO,KAAA;;;;;IAsB9B,aAAa;CAMpB"}
@@ -554,6 +554,7 @@ export declare class Users extends Users_base {
554
554
  * @internal
555
555
  */
556
556
  availableEntitiesEndpoint: string;
557
+ designSystemPrefix: string;
557
558
  /**
558
559
  * Constructor will set the {@link Users.createEvent} {@link Users.deleteEvent} {@link Users.updateEvent} to match the permissions set from the server
559
560
  */
@@ -1 +1 @@
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;;;;;;;kBAyCgB,CAAC;;;;;;;;8BAqDhB,CAAC,cAAc,CAAC;;;;;;;;;;;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AW,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;IAEjB,kBAAkB,SAAW;IAE1E;;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"}
@@ -2,7 +2,7 @@ import { __awaiter, __decorate } from "tslib";
2
2
  import { Auth, Connect } from '@genesislcap/foundation-comms';
3
3
  import { CrudAction } from '@genesislcap/foundation-entity-management';
4
4
  import { LifecycleMixin } from '@genesislcap/foundation-utils';
5
- import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
5
+ import { attr, customElement, GenesisElement, observable } from '@genesislcap/web-core';
6
6
  import { ProfileTemplate as template } from './profiles.template';
7
7
  /**
8
8
  * Main class which defined the profile management functionality
@@ -26,6 +26,7 @@ import { ProfileTemplate as template } from './profiles.template';
26
26
  let Profiles = class Profiles extends LifecycleMixin(GenesisElement) {
27
27
  constructor() {
28
28
  super();
29
+ this.designSystemPrefix = 'rapid';
29
30
  this.createEvent = this.auth.currentUser.hasPermission('INSERT_PROFILE')
30
31
  ? 'EVENT_INSERT_PROFILE'
31
32
  : '';
@@ -81,6 +82,9 @@ __decorate([
81
82
  __decorate([
82
83
  observable
83
84
  ], Profiles.prototype, "updateEvent", void 0);
85
+ __decorate([
86
+ attr({ attribute: 'design-system-prefix' })
87
+ ], Profiles.prototype, "designSystemPrefix", void 0);
84
88
  Profiles = __decorate([
85
89
  customElement({
86
90
  template,
@@ -13,7 +13,7 @@ export const ProfileTemplate = html `
13
13
  :updateFormUiSchema=${() => editProfileFormSchema}
14
14
  :createFormUiSchema=${() => editProfileFormSchema}
15
15
  :readEventFn=${(x) => (profile) => x.readProfileData(profile)}
16
- design-system-prefix="rapid"
16
+ design-system-prefix="${(x) => x.designSystemPrefix}"
17
17
  :confirmDelete=${(x) => () => x.confirmDelete()}
18
18
  ></entity-management>
19
19
  `;
@@ -142,6 +142,7 @@ let Users = class Users extends LifecycleMixin(GenesisElement) {
142
142
  * @internal
143
143
  */
144
144
  this.availableEntitiesEndpoint = 'ALL_COUNTERPARTYS';
145
+ this.designSystemPrefix = 'rapid';
145
146
  this.createEvent = this.auth.currentUser.hasPermission('INSERT_USER')
146
147
  ? 'EVENT_INSERT_USER'
147
148
  : '';
@@ -299,6 +300,9 @@ __decorate([
299
300
  __decorate([
300
301
  attr
301
302
  ], Users.prototype, "availableEntitiesEndpoint", void 0);
303
+ __decorate([
304
+ attr({ attribute: 'design-system-prefix' })
305
+ ], Users.prototype, "designSystemPrefix", void 0);
302
306
  Users = __decorate([
303
307
  customElement({
304
308
  name: 'user-management-pbc',
@@ -89,7 +89,7 @@ const editUserSchema = (edit, allAccessType, entityID, entityLabel, entityLabelK
89
89
  });
90
90
  export const UsersTemplate = html `
91
91
  <entity-management
92
- design-system-prefix="rapid"
92
+ design-system-prefix="${(x) => x.designSystemPrefix}"
93
93
  resourceName=${(x) => x.resourceName}
94
94
  title="User Management"
95
95
  entityLabel="User"
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": "14.364.1",
4
+ "version": "14.365.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/dts/index.d.ts",
@@ -62,8 +62,8 @@
62
62
  }
63
63
  },
64
64
  "devDependencies": {
65
- "@genesislcap/foundation-testing": "14.364.1",
66
- "@genesislcap/genx": "14.364.1",
65
+ "@genesislcap/foundation-testing": "14.365.0",
66
+ "@genesislcap/genx": "14.365.0",
67
67
  "playwright-lighthouse": "^4.0.0",
68
68
  "rimraf": "^3.0.2",
69
69
  "tslib": "^2.3.1"
@@ -72,17 +72,17 @@
72
72
  "@ag-grid-community/core": "29.2.0"
73
73
  },
74
74
  "dependencies": {
75
- "@genesislcap/foundation-comms": "14.364.1",
76
- "@genesislcap/foundation-entity-management": "14.364.1",
77
- "@genesislcap/foundation-logger": "14.364.1",
78
- "@genesislcap/foundation-notifications": "14.364.1",
79
- "@genesislcap/foundation-utils": "14.364.1",
80
- "@genesislcap/grid-pro": "14.364.1",
81
- "@genesislcap/web-core": "14.364.1"
75
+ "@genesislcap/foundation-comms": "14.365.0",
76
+ "@genesislcap/foundation-entity-management": "14.365.0",
77
+ "@genesislcap/foundation-logger": "14.365.0",
78
+ "@genesislcap/foundation-notifications": "14.365.0",
79
+ "@genesislcap/foundation-utils": "14.365.0",
80
+ "@genesislcap/grid-pro": "14.365.0",
81
+ "@genesislcap/web-core": "14.365.0"
82
82
  },
83
83
  "publishConfig": {
84
84
  "access": "public"
85
85
  },
86
86
  "customElements": "dist/custom-elements.json",
87
- "gitHead": "ba3ee9d6731c239b34cd51756e6eded6d4d96a89"
87
+ "gitHead": "4983a90904ef7e119a59b97753de21cc0df62e86"
88
88
  }
@@ -15,7 +15,7 @@ export const ProfileTemplate: ViewTemplate = html<Profiles>`
15
15
  :updateFormUiSchema=${() => editProfileFormSchema}
16
16
  :createFormUiSchema=${() => editProfileFormSchema}
17
17
  :readEventFn=${(x) => (profile) => x.readProfileData(profile)}
18
- design-system-prefix="rapid"
18
+ design-system-prefix="${(x) => x.designSystemPrefix}"
19
19
  :confirmDelete=${(x) => () => x.confirmDelete()}
20
20
  ></entity-management>
21
21
  `;
@@ -1,7 +1,7 @@
1
1
  import { Auth, Connect } from '@genesislcap/foundation-comms';
2
2
  import { CrudAction, EntityManagement } from '@genesislcap/foundation-entity-management';
3
3
  import { LifecycleMixin } from '@genesislcap/foundation-utils';
4
- import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
4
+ import { attr, customElement, GenesisElement, observable } from '@genesislcap/web-core';
5
5
  import { ProfileTemplate as template } from './profiles.template';
6
6
 
7
7
  /**
@@ -49,6 +49,8 @@ export class Profiles extends LifecycleMixin(GenesisElement) {
49
49
 
50
50
  @observable updateEvent: string;
51
51
 
52
+ @attr({ attribute: 'design-system-prefix' }) designSystemPrefix = 'rapid';
53
+
52
54
  constructor() {
53
55
  super();
54
56
 
@@ -104,7 +104,7 @@ const editUserSchema = (
104
104
  });
105
105
  export const UsersTemplate: ViewTemplate = html<Users>`
106
106
  <entity-management
107
- design-system-prefix="rapid"
107
+ design-system-prefix="${(x) => x.designSystemPrefix}"
108
108
  resourceName=${(x) => x.resourceName}
109
109
  title="User Management"
110
110
  entityLabel="User"
@@ -244,6 +244,8 @@ export class Users extends LifecycleMixin(GenesisElement) {
244
244
  */
245
245
  @attr availableEntitiesEndpoint: string = 'ALL_COUNTERPARTYS';
246
246
 
247
+ @attr({ attribute: 'design-system-prefix' }) designSystemPrefix = 'rapid';
248
+
247
249
  /**
248
250
  * Constructor will set the {@link Users.createEvent} {@link Users.deleteEvent} {@link Users.updateEvent} to match the permissions set from the server
249
251
  */