@genesislcap/pbc-auth-ui 1.0.5 → 1.0.6

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,4 +1,336 @@
1
1
  import { EntityManagement } from "@genesislcap/foundation-entity-management";
2
+ import { GenesisElement } from '@genesislcap/web-core';
3
+ declare const Profiles_base: (new (...args: any[]) => {
4
+ "__#1@#_container": import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
5
+ "__#1@#_latestTokenCode": string;
6
+ "__#1@#_hasFirstLoaded": boolean;
7
+ "__#1@#_cleanupTimeout": NodeJS.Timeout;
8
+ "__#1@#_shouldForceLifecycle": boolean;
9
+ cloneNode(deep?: boolean): Node;
10
+ deepClone(): Node;
11
+ readonly shouldRunDisconnect: boolean;
12
+ readonly shouldRunConnect: boolean;
13
+ "__#1@#_blockLifecycleDueToTokenChange"(lifecycleType: "connect" | "disconnect" | "reconnect"): boolean;
14
+ "__#1@#_tryFindContainingLayout"(e: Element): import("@genesislcap/foundation-utils").FoundationLayoutContainer | import("@genesislcap/foundation-utils").LayoutCacheContainer | import("@genesislcap/foundation-utils").DOMContainer;
15
+ connectedCallback(): void;
16
+ readonly $fastController: import("@microsoft/fast-element").Controller;
17
+ $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
18
+ disconnectedCallback(): void;
19
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
20
+ accessKey: string;
21
+ readonly accessKeyLabel: string;
22
+ autocapitalize: string;
23
+ dir: string;
24
+ draggable: boolean;
25
+ hidden: boolean;
26
+ inert: boolean;
27
+ innerText: string;
28
+ lang: string;
29
+ readonly offsetHeight: number;
30
+ readonly offsetLeft: number;
31
+ readonly offsetParent: Element;
32
+ readonly offsetTop: number;
33
+ readonly offsetWidth: number;
34
+ outerText: string;
35
+ spellcheck: boolean;
36
+ title: string;
37
+ translate: boolean;
38
+ attachInternals(): ElementInternals;
39
+ click(): void;
40
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
41
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
42
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
43
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
44
+ readonly attributes: NamedNodeMap;
45
+ readonly classList: DOMTokenList;
46
+ className: string;
47
+ readonly clientHeight: number;
48
+ readonly clientLeft: number;
49
+ readonly clientTop: number;
50
+ readonly clientWidth: number;
51
+ id: string;
52
+ readonly localName: string;
53
+ readonly namespaceURI: string;
54
+ onfullscreenchange: (this: Element, ev: Event) => any;
55
+ onfullscreenerror: (this: Element, ev: Event) => any;
56
+ outerHTML: string;
57
+ readonly ownerDocument: Document;
58
+ readonly part: DOMTokenList;
59
+ readonly prefix: string;
60
+ readonly scrollHeight: number;
61
+ scrollLeft: number;
62
+ scrollTop: number;
63
+ readonly scrollWidth: number;
64
+ readonly shadowRoot: ShadowRoot;
65
+ slot: string;
66
+ readonly tagName: string;
67
+ attachShadow(init: ShadowRootInit): ShadowRoot;
68
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
69
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
70
+ closest<E extends Element = Element>(selectors: string): E;
71
+ getAttribute(qualifiedName: string): string;
72
+ getAttributeNS(namespace: string, localName: string): string;
73
+ getAttributeNames(): string[];
74
+ getAttributeNode(qualifiedName: string): Attr;
75
+ getAttributeNodeNS(namespace: string, localName: string): Attr;
76
+ getBoundingClientRect(): DOMRect;
77
+ getClientRects(): DOMRectList;
78
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
79
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
80
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
81
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
82
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
83
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
84
+ getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
85
+ hasAttribute(qualifiedName: string): boolean;
86
+ hasAttributeNS(namespace: string, localName: string): boolean;
87
+ hasAttributes(): boolean;
88
+ hasPointerCapture(pointerId: number): boolean;
89
+ insertAdjacentElement(where: InsertPosition, element: Element): Element;
90
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
91
+ insertAdjacentText(where: InsertPosition, data: string): void;
92
+ matches(selectors: string): boolean;
93
+ releasePointerCapture(pointerId: number): void;
94
+ removeAttribute(qualifiedName: string): void;
95
+ removeAttributeNS(namespace: string, localName: string): void;
96
+ removeAttributeNode(attr: Attr): Attr;
97
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
98
+ requestPointerLock(): void;
99
+ scroll(options?: ScrollToOptions): void;
100
+ scroll(x: number, y: number): void;
101
+ scrollBy(options?: ScrollToOptions): void;
102
+ scrollBy(x: number, y: number): void;
103
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
104
+ scrollTo(options?: ScrollToOptions): void;
105
+ scrollTo(x: number, y: number): void;
106
+ setAttribute(qualifiedName: string, value: string): void;
107
+ setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
108
+ setAttributeNode(attr: Attr): Attr;
109
+ setAttributeNodeNS(attr: Attr): Attr;
110
+ setPointerCapture(pointerId: number): void;
111
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
112
+ webkitMatchesSelector(selectors: string): boolean;
113
+ readonly baseURI: string;
114
+ readonly childNodes: NodeListOf<ChildNode>;
115
+ readonly firstChild: ChildNode;
116
+ readonly isConnected: boolean;
117
+ readonly lastChild: ChildNode;
118
+ readonly nextSibling: ChildNode;
119
+ readonly nodeName: string;
120
+ readonly nodeType: number;
121
+ nodeValue: string;
122
+ readonly parentElement: HTMLElement;
123
+ readonly parentNode: ParentNode;
124
+ readonly previousSibling: ChildNode;
125
+ textContent: string;
126
+ appendChild<T_1 extends Node>(node: T_1): T_1;
127
+ compareDocumentPosition(other: Node): number;
128
+ contains(other: Node): boolean;
129
+ getRootNode(options?: GetRootNodeOptions): Node;
130
+ hasChildNodes(): boolean;
131
+ insertBefore<T_2 extends Node>(node: T_2, child: Node): T_2;
132
+ isDefaultNamespace(namespace: string): boolean;
133
+ isEqualNode(otherNode: Node): boolean;
134
+ isSameNode(otherNode: Node): boolean;
135
+ lookupNamespaceURI(prefix: string): string;
136
+ lookupPrefix(namespace: string): string;
137
+ normalize(): void;
138
+ removeChild<T_3 extends Node>(child: T_3): T_3;
139
+ replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
140
+ readonly ATTRIBUTE_NODE: number;
141
+ readonly CDATA_SECTION_NODE: number;
142
+ readonly COMMENT_NODE: number;
143
+ readonly DOCUMENT_FRAGMENT_NODE: number;
144
+ readonly DOCUMENT_NODE: number;
145
+ readonly DOCUMENT_POSITION_CONTAINED_BY: number;
146
+ readonly DOCUMENT_POSITION_CONTAINS: number;
147
+ readonly DOCUMENT_POSITION_DISCONNECTED: number;
148
+ readonly DOCUMENT_POSITION_FOLLOWING: number;
149
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
150
+ readonly DOCUMENT_POSITION_PRECEDING: number;
151
+ readonly DOCUMENT_TYPE_NODE: number;
152
+ readonly ELEMENT_NODE: number;
153
+ readonly ENTITY_NODE: number;
154
+ readonly ENTITY_REFERENCE_NODE: number;
155
+ readonly NOTATION_NODE: number;
156
+ readonly PROCESSING_INSTRUCTION_NODE: number;
157
+ readonly TEXT_NODE: number;
158
+ dispatchEvent(event: Event): boolean;
159
+ ariaAtomic: string;
160
+ ariaAutoComplete: string;
161
+ ariaBusy: string;
162
+ ariaChecked: string;
163
+ ariaColCount: string;
164
+ ariaColIndex: string;
165
+ ariaColIndexText: string;
166
+ ariaColSpan: string;
167
+ ariaCurrent: string;
168
+ ariaDisabled: string;
169
+ ariaExpanded: string;
170
+ ariaHasPopup: string;
171
+ ariaHidden: string;
172
+ ariaInvalid: string;
173
+ ariaKeyShortcuts: string;
174
+ ariaLabel: string;
175
+ ariaLevel: string;
176
+ ariaLive: string;
177
+ ariaModal: string;
178
+ ariaMultiLine: string;
179
+ ariaMultiSelectable: string;
180
+ ariaOrientation: string;
181
+ ariaPlaceholder: string;
182
+ ariaPosInSet: string;
183
+ ariaPressed: string;
184
+ ariaReadOnly: string;
185
+ ariaRequired: string;
186
+ ariaRoleDescription: string;
187
+ ariaRowCount: string;
188
+ ariaRowIndex: string;
189
+ ariaRowIndexText: string;
190
+ ariaRowSpan: string;
191
+ ariaSelected: string;
192
+ ariaSetSize: string;
193
+ ariaSort: string;
194
+ ariaValueMax: string;
195
+ ariaValueMin: string;
196
+ ariaValueNow: string;
197
+ ariaValueText: string;
198
+ role: string;
199
+ animate(keyframes: PropertyIndexedKeyframes | Keyframe[], options?: number | KeyframeAnimationOptions): Animation;
200
+ getAnimations(options?: GetAnimationsOptions): Animation[];
201
+ after(...nodes: (string | Node)[]): void;
202
+ before(...nodes: (string | Node)[]): void;
203
+ remove(): void;
204
+ replaceWith(...nodes: (string | Node)[]): void;
205
+ innerHTML: string;
206
+ readonly nextElementSibling: Element;
207
+ readonly previousElementSibling: Element;
208
+ readonly childElementCount: number;
209
+ readonly children: HTMLCollection;
210
+ readonly firstElementChild: Element;
211
+ readonly lastElementChild: Element;
212
+ append(...nodes: (string | Node)[]): void;
213
+ prepend(...nodes: (string | Node)[]): void;
214
+ querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
215
+ querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
216
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1;
217
+ querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
218
+ querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
219
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
220
+ replaceChildren(...nodes: (string | Node)[]): void;
221
+ readonly assignedSlot: HTMLSlotElement;
222
+ oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
223
+ oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
224
+ onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
225
+ readonly style: CSSStyleDeclaration;
226
+ contentEditable: string;
227
+ enterKeyHint: string;
228
+ inputMode: string;
229
+ readonly isContentEditable: boolean;
230
+ onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
231
+ onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
232
+ onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
233
+ onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
234
+ onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
235
+ onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
236
+ onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
237
+ onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
238
+ oncancel: (this: GlobalEventHandlers, ev: Event) => any;
239
+ oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
240
+ oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
241
+ onchange: (this: GlobalEventHandlers, ev: Event) => any;
242
+ onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
243
+ onclose: (this: GlobalEventHandlers, ev: Event) => any;
244
+ oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
245
+ oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
246
+ ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
247
+ ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
248
+ ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
249
+ ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
250
+ ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
251
+ ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
252
+ ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
253
+ ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
254
+ ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
255
+ onemptied: (this: GlobalEventHandlers, ev: Event) => any;
256
+ onended: (this: GlobalEventHandlers, ev: Event) => any;
257
+ onerror: OnErrorEventHandlerNonNull;
258
+ onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
259
+ onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
260
+ ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
261
+ oninput: (this: GlobalEventHandlers, ev: Event) => any;
262
+ oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
263
+ onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
264
+ onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
265
+ onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
266
+ onload: (this: GlobalEventHandlers, ev: Event) => any;
267
+ onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
268
+ onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
269
+ onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
270
+ onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
271
+ onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
272
+ onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
273
+ onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
274
+ onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
275
+ onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
276
+ onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
277
+ onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
278
+ onpause: (this: GlobalEventHandlers, ev: Event) => any;
279
+ onplay: (this: GlobalEventHandlers, ev: Event) => any;
280
+ onplaying: (this: GlobalEventHandlers, ev: Event) => any;
281
+ onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
282
+ onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
283
+ onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
284
+ onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
285
+ onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
286
+ onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
287
+ onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
288
+ onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
289
+ onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
290
+ onratechange: (this: GlobalEventHandlers, ev: Event) => any;
291
+ onreset: (this: GlobalEventHandlers, ev: Event) => any;
292
+ onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
293
+ onscroll: (this: GlobalEventHandlers, ev: Event) => any;
294
+ onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
295
+ onseeked: (this: GlobalEventHandlers, ev: Event) => any;
296
+ onseeking: (this: GlobalEventHandlers, ev: Event) => any;
297
+ onselect: (this: GlobalEventHandlers, ev: Event) => any;
298
+ onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
299
+ onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
300
+ onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
301
+ onstalled: (this: GlobalEventHandlers, ev: Event) => any;
302
+ onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
303
+ onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
304
+ ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
305
+ ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
306
+ ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
307
+ ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
308
+ ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
309
+ ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
310
+ ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
311
+ ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
312
+ ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
313
+ ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
314
+ onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
315
+ onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
316
+ onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
317
+ onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
318
+ onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
319
+ onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
320
+ onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
321
+ autofocus: boolean;
322
+ readonly dataset: DOMStringMap;
323
+ nonce?: string;
324
+ tabIndex: number;
325
+ blur(): void;
326
+ focus(options?: FocusOptions): void;
327
+ }) & (new () => HTMLElement & GenesisElement) & {
328
+ from<TBase extends {
329
+ new (): HTMLElement;
330
+ prototype: HTMLElement;
331
+ }>(BaseType: TBase): new () => InstanceType<TBase> & GenesisElement;
332
+ define<TType extends Function>(type: TType, nameOrDef?: string | import("@microsoft/fast-element").PartialFASTElementDefinition): TType;
333
+ };
2
334
  /**
3
335
  * Main class which defined the profile management functionality
4
336
  *
@@ -18,7 +350,7 @@ import { EntityManagement } from "@genesislcap/foundation-entity-management";
18
350
  * ```
19
351
  *
20
352
  */
21
- export declare class Profiles extends EntityManagement {
353
+ export declare class Profiles extends Profiles_base {
22
354
  /**
23
355
  * Auth provider which is used to confirm authorisation of the user for their user management permissions
24
356
  *
@@ -29,9 +361,11 @@ export declare class Profiles extends EntityManagement {
29
361
  * @internal
30
362
  */
31
363
  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
- */
364
+ private connect;
365
+ profileManager: EntityManagement;
366
+ createEvent: string;
367
+ deleteEvent: string;
368
+ updateEvent: string;
35
369
  constructor();
36
370
  readProfileData(profile: any): Promise<{
37
371
  RIGHT_CODES: any[];
@@ -40,4 +374,5 @@ export declare class Profiles extends EntityManagement {
40
374
  }>;
41
375
  confirmDelete(): Promise<void>;
42
376
  }
377
+ export {};
43
378
  //# sourceMappingURL=profiles.d.ts.map
@@ -1 +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
+ {"version":3,"file":"profiles.d.ts","sourceRoot":"","sources":["../../../src/profiles/profiles.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,gBAAgB,EAAC,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAAgB,cAAc,EAAa,MAAM,uBAAuB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIhF;;;;;;;;;;;;;;;;;;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;;IAgBnB,eAAe,CAAC,OAAO,KAAA;;;;;IAsB7B,aAAa;CAMrB"}
@@ -0,0 +1,3 @@
1
+ import { ViewTemplate } from "@genesislcap/web-core";
2
+ export declare const ProfileTemplate: ViewTemplate;
3
+ //# sourceMappingURL=profiles.template.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profiles.template.d.ts","sourceRoot":"","sources":["../../../src/profiles/profiles.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAI9D,eAAO,MAAM,eAAe,EAAE,YAgB7B,CAAC"}
@@ -1,8 +1,8 @@
1
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';
2
+ import { Auth, Connect } from '@genesislcap/foundation-comms';
3
+ import { customElement, GenesisElement, observable } from '@genesislcap/web-core';
4
+ import { LifecycleMixin } from "@genesislcap/foundation-utils";
5
+ import { ProfileTemplate as template } from "./profiles.template";
6
6
  /**
7
7
  * Main class which defined the profile management functionality
8
8
  *
@@ -22,10 +22,7 @@ import { editProfileFormSchema } from './editProfileSchema';
22
22
  * ```
23
23
  *
24
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
- */
25
+ let Profiles = class Profiles extends LifecycleMixin(GenesisElement) {
29
26
  constructor() {
30
27
  super();
31
28
  this.createEvent = this.auth.currentUser.hasPermission('INSERT_PROFILE')
@@ -37,13 +34,6 @@ let Profiles = class Profiles extends EntityManagement {
37
34
  this.updateEvent = this.auth.currentUser.hasPermission('AMEND_PROFILE')
38
35
  ? 'EVENT_AMEND_PROFILE'
39
36
  : '';
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
37
  }
48
38
  readProfileData(profile) {
49
39
  return __awaiter(this, void 0, void 0, function* () {
@@ -69,18 +59,31 @@ let Profiles = class Profiles extends EntityManagement {
69
59
  confirmDelete() {
70
60
  return __awaiter(this, void 0, void 0, function* () {
71
61
  const deleteReq = yield this.connect.commitEvent(this.deleteEvent, {
72
- DETAILS: { NAME: this.selectedEntity.PROFILE_NAME },
62
+ DETAILS: { NAME: this.profileManager.selectedEntity.PROFILE_NAME },
73
63
  });
74
- this.errorNotify(deleteReq);
64
+ this.profileManager.errorNotify(deleteReq);
75
65
  });
76
66
  }
77
67
  };
78
68
  __decorate([
79
69
  Auth
80
70
  ], Profiles.prototype, "auth", void 0);
71
+ __decorate([
72
+ Connect
73
+ ], Profiles.prototype, "connect", void 0);
74
+ __decorate([
75
+ observable
76
+ ], Profiles.prototype, "createEvent", void 0);
77
+ __decorate([
78
+ observable
79
+ ], Profiles.prototype, "deleteEvent", void 0);
80
+ __decorate([
81
+ observable
82
+ ], Profiles.prototype, "updateEvent", void 0);
81
83
  Profiles = __decorate([
82
84
  customElement({
83
- name: 'profile-management-pbc',
85
+ template,
86
+ name: 'profile-management-pbc'
84
87
  })
85
88
  ], Profiles);
86
89
  export { Profiles };
@@ -0,0 +1,19 @@
1
+ import { html, ref } from "@genesislcap/web-core";
2
+ import { editProfileFormSchema } from "./editProfileSchema";
3
+ export const ProfileTemplate = html `
4
+ <entity-management
5
+ ${ref('profileManager')}
6
+ title="Profile Management"
7
+ entityLabel="Profile"
8
+ resourceName="ALL_PROFILES"
9
+ createEvent="${(x) => x.createEvent}"
10
+ updateEvent="${(x) => x.updateEvent}"
11
+ deleteEvent="${(x) => x.deleteEvent}"
12
+ persist-column-state-key="entity_profiles_management"
13
+ :updateFormUiSchema=${() => editProfileFormSchema}
14
+ :createFormUiSchema=${() => editProfileFormSchema}
15
+ :readEventFn=${(x) => (profile) => x.readProfileData(profile)}
16
+ design-system-prefix="rapid"
17
+ :confirmDelete=${(x) => () => x.confirmDelete()}
18
+ ></entity-management>
19
+ `;
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.5",
4
+ "version": "1.0.6",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-auth.d.ts",