@genesislcap/foundation-comms 14.187.1 → 14.188.0-FUI-2012-tabulator.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. package/dist/dts/connect/connect.d.ts +11 -6
  2. package/dist/dts/connect/connect.d.ts.map +1 -1
  3. package/dist/dts/connect/http.connect.d.ts +2 -2
  4. package/dist/dts/connect/http.connect.d.ts.map +1 -1
  5. package/dist/dts/connect/message.d.ts +11 -0
  6. package/dist/dts/connect/message.d.ts.map +1 -1
  7. package/dist/dts/connect/socket.d.ts +6 -2
  8. package/dist/dts/connect/socket.d.ts.map +1 -1
  9. package/dist/dts/datasource/datasource.config.d.ts +44 -0
  10. package/dist/dts/datasource/datasource.config.d.ts.map +1 -0
  11. package/dist/dts/datasource/datasource.d.ts +49 -19
  12. package/dist/dts/datasource/datasource.d.ts.map +1 -1
  13. package/dist/dts/datasource/datasource.mixins.d.ts +367 -0
  14. package/dist/dts/datasource/datasource.mixins.d.ts.map +1 -0
  15. package/dist/dts/datasource/datasource.types.d.ts +14 -22
  16. package/dist/dts/datasource/datasource.types.d.ts.map +1 -1
  17. package/dist/dts/datasource/entityDatasource.d.ts +5 -8
  18. package/dist/dts/datasource/entityDatasource.d.ts.map +1 -1
  19. package/dist/dts/datasource/index.d.ts +2 -0
  20. package/dist/dts/datasource/index.d.ts.map +1 -1
  21. package/dist/dts/index.d.ts +1 -0
  22. package/dist/dts/index.d.ts.map +1 -1
  23. package/dist/dts/resources/genesis/config.d.ts +81 -0
  24. package/dist/dts/resources/genesis/config.d.ts.map +1 -0
  25. package/dist/dts/resources/genesis/genesis.d.ts +69 -0
  26. package/dist/dts/resources/genesis/genesis.d.ts.map +1 -0
  27. package/dist/dts/resources/genesis/index.d.ts +4 -0
  28. package/dist/dts/resources/genesis/index.d.ts.map +1 -0
  29. package/dist/dts/resources/genesis/types.d.ts +19 -0
  30. package/dist/dts/resources/genesis/types.d.ts.map +1 -0
  31. package/dist/dts/resources/index.d.ts +2 -0
  32. package/dist/dts/resources/index.d.ts.map +1 -0
  33. package/dist/dts/testing/mocks/auth/auth.d.ts +3 -0
  34. package/dist/dts/testing/mocks/auth/auth.d.ts.map +1 -1
  35. package/dist/dts/testing/mocks/connect/connect.d.ts +3 -2
  36. package/dist/dts/testing/mocks/connect/connect.d.ts.map +1 -1
  37. package/dist/dts/testing/mocks/connect/socket.d.ts +1 -0
  38. package/dist/dts/testing/mocks/connect/socket.d.ts.map +1 -1
  39. package/dist/dts/testing/mocks/datasource/datasource.d.ts +22 -4
  40. package/dist/dts/testing/mocks/datasource/datasource.d.ts.map +1 -1
  41. package/dist/dts/testing/mocks/index.d.ts +1 -0
  42. package/dist/dts/testing/mocks/index.d.ts.map +1 -1
  43. package/dist/dts/testing/mocks/resources/genesis/genesis.d.ts +16 -0
  44. package/dist/dts/testing/mocks/resources/genesis/genesis.d.ts.map +1 -0
  45. package/dist/dts/testing/mocks/resources/genesis/index.d.ts +2 -0
  46. package/dist/dts/testing/mocks/resources/genesis/index.d.ts.map +1 -0
  47. package/dist/dts/testing/mocks/resources/index.d.ts +2 -0
  48. package/dist/dts/testing/mocks/resources/index.d.ts.map +1 -0
  49. package/dist/esm/connect/connect.js +12 -15
  50. package/dist/esm/connect/http.connect.js +5 -3
  51. package/dist/esm/connect/message.js +2 -0
  52. package/dist/esm/connect/socket.js +19 -6
  53. package/dist/esm/datasource/datasource.config.js +41 -0
  54. package/dist/esm/datasource/datasource.js +133 -58
  55. package/dist/esm/datasource/datasource.mixins.js +86 -0
  56. package/dist/esm/datasource/datasource.types.js +2 -18
  57. package/dist/esm/datasource/entityDatasource.js +6 -0
  58. package/dist/esm/datasource/index.js +2 -0
  59. package/dist/esm/index.js +1 -0
  60. package/dist/esm/resources/genesis/config.js +51 -0
  61. package/dist/esm/resources/genesis/genesis.js +114 -0
  62. package/dist/esm/resources/genesis/index.js +3 -0
  63. package/dist/esm/resources/genesis/types.js +4 -0
  64. package/dist/esm/resources/index.js +1 -0
  65. package/dist/esm/testing/mocks/auth/auth.js +10 -0
  66. package/dist/esm/testing/mocks/connect/connect.js +9 -2
  67. package/dist/esm/testing/mocks/connect/socket.js +2 -0
  68. package/dist/esm/testing/mocks/datasource/datasource.js +59 -0
  69. package/dist/esm/testing/mocks/index.js +1 -0
  70. package/dist/esm/testing/mocks/resources/genesis/genesis.js +25 -0
  71. package/dist/esm/testing/mocks/resources/genesis/index.js +1 -0
  72. package/dist/esm/testing/mocks/resources/index.js +1 -0
  73. package/dist/foundation-comms.api.json +11047 -6292
  74. package/dist/foundation-comms.d.ts +696 -37
  75. package/docs/api/foundation-comms.connect.connect.md +2 -2
  76. package/docs/api/foundation-comms.connect.getavailableresources.md +2 -2
  77. package/docs/api/foundation-comms.connect.host.md +11 -0
  78. package/docs/api/foundation-comms.connect.md +1 -0
  79. package/docs/api/foundation-comms.datasource.init.md +2 -2
  80. package/docs/api/foundation-comms.datasource.md +3 -2
  81. package/docs/api/{foundation-comms.datasource.fieldmetadata.md → foundation-comms.datasource.status.md} +3 -4
  82. package/docs/api/foundation-comms.datasourceconfig.eventemitter.md +18 -0
  83. package/docs/api/foundation-comms.datasourceconfig.md +2 -1
  84. package/docs/api/foundation-comms.datasourceeventhandler.md +353 -0
  85. package/docs/api/foundation-comms.datasourcemetadata.availableindexes.md +11 -0
  86. package/docs/api/foundation-comms.datasourcemetadata.fetchmetadatarequired.md +11 -0
  87. package/docs/api/foundation-comms.datasourcemetadata.fieldmetadata.md +11 -0
  88. package/docs/api/foundation-comms.datasourcemetadata.md +24 -0
  89. package/docs/api/foundation-comms.datasourcemetadata.originalfielddef.md +11 -0
  90. package/docs/api/foundation-comms.datasourcemetadata.requestfields.md +11 -0
  91. package/docs/api/foundation-comms.datasourcestatus.md +21 -0
  92. package/docs/api/foundation-comms.datasourcestatuschanged.md +13 -0
  93. package/docs/api/foundation-comms.datasourcestatuschangedevent.md +15 -0
  94. package/docs/api/foundation-comms.defaultconnect.connect.md +2 -2
  95. package/docs/api/foundation-comms.defaultconnect.getavailableresources.md +2 -2
  96. package/docs/api/foundation-comms.defaultconnect.host.md +11 -0
  97. package/docs/api/foundation-comms.defaultconnect.md +1 -0
  98. package/docs/api/foundation-comms.defaultdatasource._constructor_.md +3 -2
  99. package/docs/api/foundation-comms.defaultdatasource.availableindexes.md +2 -1
  100. package/docs/api/foundation-comms.defaultdatasource.fetchandapplymetadata.md +22 -0
  101. package/docs/api/{foundation-comms.defaultdatasource._stream.md → foundation-comms.defaultdatasource.fetchmetadatarequired.md} +4 -3
  102. package/docs/api/foundation-comms.defaultdatasource.fieldmetadata.md +1 -0
  103. package/docs/api/foundation-comms.defaultdatasource.initialized.md +3 -1
  104. package/docs/api/foundation-comms.defaultdatasource.md +10 -7
  105. package/docs/api/foundation-comms.defaultdatasource.originalfielddef.md +2 -1
  106. package/docs/api/foundation-comms.defaultdatasource.requestfields.md +2 -1
  107. package/docs/api/foundation-comms.defaultdatasource.resources.md +11 -0
  108. package/docs/api/foundation-comms.defaultdatasource.status.md +12 -0
  109. package/docs/api/foundation-comms.defaultdatasource.stream.md +1 -1
  110. package/docs/api/foundation-comms.defaultdatasource.validresourcename.md +5 -0
  111. package/docs/api/foundation-comms.defaultdatasourceconfig.md +1 -1
  112. package/docs/api/foundation-comms.defaultgenesisresources._constructor_.md +21 -0
  113. package/docs/api/foundation-comms.defaultgenesisresources.config.md +11 -0
  114. package/docs/api/foundation-comms.defaultgenesisresources.connect.md +11 -0
  115. package/docs/api/foundation-comms.defaultgenesisresources.destroy.md +17 -0
  116. package/docs/api/foundation-comms.defaultgenesisresources.getresources.md +15 -0
  117. package/docs/api/foundation-comms.defaultgenesisresources.getresourcetypefor.md +24 -0
  118. package/docs/api/foundation-comms.defaultgenesisresources.isvalidresource.md +24 -0
  119. package/docs/api/foundation-comms.defaultgenesisresources.md +40 -0
  120. package/docs/api/foundation-comms.defaultgenesisresources.postloadedmessage.md +15 -0
  121. package/docs/api/foundation-comms.defaultgenesisresources.resources.md +11 -0
  122. package/docs/api/foundation-comms.defaultgenesisresources.resourcespromise.md +11 -0
  123. package/docs/api/foundation-comms.defaultgenesisresourcesconfig.md +13 -0
  124. package/docs/api/foundation-comms.defaulthttpconnect.getavailableresources.md +2 -2
  125. package/docs/api/foundation-comms.defaultsocket._constructor_.md +2 -1
  126. package/docs/api/foundation-comms.defaultsocket.config.md +11 -0
  127. package/docs/api/foundation-comms.defaultsocket.connect.md +2 -2
  128. package/docs/api/foundation-comms.defaultsocket.host.md +11 -0
  129. package/docs/api/foundation-comms.defaultsocket.md +3 -1
  130. package/docs/api/foundation-comms.eventmessagetype.md +2 -0
  131. package/docs/api/foundation-comms.genesisresources.destroy.md +13 -0
  132. package/docs/api/foundation-comms.genesisresources.getresourcetypefor.md +13 -0
  133. package/docs/api/foundation-comms.genesisresources.isvalidresource.md +13 -0
  134. package/docs/api/foundation-comms.genesisresources.md +26 -0
  135. package/docs/api/foundation-comms.genesisresourceschannel.md +33 -0
  136. package/docs/api/foundation-comms.genesisresourceschannelid.md +12 -0
  137. package/docs/api/foundation-comms.genesisresourcesconfig.md +21 -0
  138. package/docs/api/foundation-comms.genesisresourcesconfig.throwwhenunavailable.md +13 -0
  139. package/docs/api/foundation-comms.genesisresourcesconfig.throwwhenunknown.md +13 -0
  140. package/docs/api/foundation-comms.genesisresourcesevents.md +17 -0
  141. package/docs/api/foundation-comms.genesisresourcesmock.destroy.md +15 -0
  142. package/docs/api/foundation-comms.genesisresourcesmock.getresourcetypefor.md +24 -0
  143. package/docs/api/foundation-comms.genesisresourcesmock.isvalidresource.md +24 -0
  144. package/docs/api/foundation-comms.genesisresourcesmock.md +30 -0
  145. package/docs/api/foundation-comms.genesisresourcesmock.nextisvalidresourceresponse.md +11 -0
  146. package/docs/api/foundation-comms.genesisresourcesmock.nextresourcetypeforresponse.md +11 -0
  147. package/docs/api/foundation-comms.genesisresourcesmock.resources.md +11 -0
  148. package/docs/api/foundation-comms.getgenesisresources.md +30 -0
  149. package/docs/api/foundation-comms.getgenesisresourceschannel.md +39 -0
  150. package/docs/api/foundation-comms.md +19 -2
  151. package/docs/api/foundation-comms.resourceitem.md +15 -0
  152. package/docs/api/foundation-comms.resourcesmessage.md +18 -0
  153. package/docs/api/foundation-comms.socket.host.md +11 -0
  154. package/docs/api/foundation-comms.socket.md +6 -0
  155. package/docs/api-report.md +550 -25
  156. package/package.json +13 -12
@@ -0,0 +1,367 @@
1
+ import type { FASTElement } from '@microsoft/fast-element';
2
+ import { DatasourceStatus, DatasourceStatusChangedEvent } from './datasource.types';
3
+ /**
4
+ * Datasource event handler mixin for target classes that use or are interested in datasource status changes.
5
+ *
6
+ * @remarks
7
+ * Classes that use the mixin are not required to own the datasource itself, there may be several interested parties.
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { DatasourceEventHandler, DatasourceStatus } from '@genesislcap/foundation-comms';
12
+ * ...
13
+ * class MyComponent extends DatasourceEventHandler(FASTElement) {
14
+ * resourceName: string = 'some-resource';
15
+ * ...
16
+ * datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus) {
17
+ * // Respond to changes in the target datasource.
18
+ * }
19
+ * }
20
+ * ```
21
+ *
22
+ * @privateRemarks
23
+ * Unfortunately our datasource ui components do not share a common baseclass. Given datasource ui components contain a
24
+ * Datasource and currently await their `init`, usage is more for example at this point, ie. how could we allow interested
25
+ * parties to monitor and respond to changes, given they will exist at different levels of DOM hierarchy etc. Datasource
26
+ * itself is also transient DI injectable, so each interested party would not have access to the same instance, nor would
27
+ * we necessarily want to expose that via the event to prevent them operating on it to cause unwanted side effects.
28
+ *
29
+ * @param Target - The class to mix the event handler with.
30
+ *
31
+ * @public
32
+ */
33
+ export declare const DatasourceEventHandler: (Target: new () => HTMLElement & FASTElement) => {
34
+ new (): {
35
+ datasourceStatus: DatasourceStatus;
36
+ /**
37
+ * Classes should provide.
38
+ */
39
+ resourceName: string;
40
+ /**
41
+ * The component-level handler for datasource status changes.
42
+ *
43
+ * @remarks
44
+ * If implementing custom logic in the target class, please check the `event.detail.name` matches your resourceName.
45
+ */
46
+ onDatasourceStatusChanged: (event: DatasourceStatusChangedEvent) => void;
47
+ /**
48
+ * @remarks
49
+ * Override this method to respond to changes in the target datasource.
50
+ */
51
+ datasourceStatusChanged(prev: DatasourceStatus, next: DatasourceStatus): void;
52
+ connectedCallback(): void;
53
+ disconnectedCallback(): void;
54
+ accessKey: string;
55
+ readonly accessKeyLabel: string;
56
+ autocapitalize: string;
57
+ dir: string;
58
+ draggable: boolean;
59
+ hidden: boolean;
60
+ inert: boolean;
61
+ innerText: string;
62
+ lang: string;
63
+ readonly offsetHeight: number;
64
+ readonly offsetLeft: number;
65
+ readonly offsetParent: Element;
66
+ readonly offsetTop: number;
67
+ readonly offsetWidth: number;
68
+ outerText: string;
69
+ spellcheck: boolean;
70
+ title: string;
71
+ translate: boolean;
72
+ attachInternals(): ElementInternals;
73
+ click(): void;
74
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
75
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
76
+ removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
77
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
78
+ readonly attributes: NamedNodeMap;
79
+ readonly classList: DOMTokenList;
80
+ className: string;
81
+ readonly clientHeight: number;
82
+ readonly clientLeft: number;
83
+ readonly clientTop: number;
84
+ readonly clientWidth: number;
85
+ id: string;
86
+ readonly localName: string;
87
+ readonly namespaceURI: string;
88
+ onfullscreenchange: (this: Element, ev: Event) => any;
89
+ onfullscreenerror: (this: Element, ev: Event) => any;
90
+ outerHTML: string;
91
+ readonly ownerDocument: Document;
92
+ readonly part: DOMTokenList;
93
+ readonly prefix: string;
94
+ readonly scrollHeight: number;
95
+ scrollLeft: number;
96
+ scrollTop: number;
97
+ readonly scrollWidth: number;
98
+ readonly shadowRoot: ShadowRoot;
99
+ slot: string;
100
+ readonly tagName: string;
101
+ attachShadow(init: ShadowRootInit): ShadowRoot;
102
+ closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
103
+ closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
104
+ closest<E extends Element = Element>(selectors: string): E;
105
+ getAttribute(qualifiedName: string): string;
106
+ getAttributeNS(namespace: string, localName: string): string;
107
+ getAttributeNames(): string[];
108
+ getAttributeNode(qualifiedName: string): Attr;
109
+ getAttributeNodeNS(namespace: string, localName: string): Attr;
110
+ getBoundingClientRect(): DOMRect;
111
+ getClientRects(): DOMRectList;
112
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
113
+ getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
114
+ getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
115
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
116
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
117
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
118
+ getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
119
+ hasAttribute(qualifiedName: string): boolean;
120
+ hasAttributeNS(namespace: string, localName: string): boolean;
121
+ hasAttributes(): boolean;
122
+ hasPointerCapture(pointerId: number): boolean;
123
+ insertAdjacentElement(where: InsertPosition, element: Element): Element;
124
+ insertAdjacentHTML(position: InsertPosition, text: string): void;
125
+ insertAdjacentText(where: InsertPosition, data: string): void;
126
+ matches(selectors: string): boolean;
127
+ releasePointerCapture(pointerId: number): void;
128
+ removeAttribute(qualifiedName: string): void;
129
+ removeAttributeNS(namespace: string, localName: string): void;
130
+ removeAttributeNode(attr: Attr): Attr;
131
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
132
+ requestPointerLock(): void;
133
+ scroll(options?: ScrollToOptions): void;
134
+ scroll(x: number, y: number): void;
135
+ scrollBy(options?: ScrollToOptions): void;
136
+ scrollBy(x: number, y: number): void;
137
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
138
+ scrollTo(options?: ScrollToOptions): void;
139
+ scrollTo(x: number, y: number): void;
140
+ setAttribute(qualifiedName: string, value: string): void;
141
+ setAttributeNS(namespace: string, qualifiedName: string, value: string): void;
142
+ setAttributeNode(attr: Attr): Attr;
143
+ setAttributeNodeNS(attr: Attr): Attr;
144
+ setPointerCapture(pointerId: number): void;
145
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
146
+ webkitMatchesSelector(selectors: string): boolean;
147
+ readonly baseURI: string;
148
+ readonly childNodes: NodeListOf<ChildNode>;
149
+ readonly firstChild: ChildNode;
150
+ readonly isConnected: boolean;
151
+ readonly lastChild: ChildNode;
152
+ readonly nextSibling: ChildNode;
153
+ readonly nodeName: string;
154
+ readonly nodeType: number;
155
+ nodeValue: string;
156
+ readonly parentElement: HTMLElement;
157
+ readonly parentNode: ParentNode;
158
+ readonly previousSibling: ChildNode;
159
+ textContent: string;
160
+ appendChild<T extends Node>(node: T): T;
161
+ cloneNode(deep?: boolean): Node;
162
+ compareDocumentPosition(other: Node): number;
163
+ contains(other: Node): boolean;
164
+ getRootNode(options?: GetRootNodeOptions): Node;
165
+ hasChildNodes(): boolean;
166
+ insertBefore<T_1 extends Node>(node: T_1, child: Node): T_1;
167
+ isDefaultNamespace(namespace: string): boolean;
168
+ isEqualNode(otherNode: Node): boolean;
169
+ isSameNode(otherNode: Node): boolean;
170
+ lookupNamespaceURI(prefix: string): string;
171
+ lookupPrefix(namespace: string): string;
172
+ normalize(): void;
173
+ removeChild<T_2 extends Node>(child: T_2): T_2;
174
+ replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
175
+ readonly ATTRIBUTE_NODE: number;
176
+ readonly CDATA_SECTION_NODE: number;
177
+ readonly COMMENT_NODE: number;
178
+ readonly DOCUMENT_FRAGMENT_NODE: number;
179
+ readonly DOCUMENT_NODE: number;
180
+ readonly DOCUMENT_POSITION_CONTAINED_BY: number;
181
+ readonly DOCUMENT_POSITION_CONTAINS: number;
182
+ readonly DOCUMENT_POSITION_DISCONNECTED: number;
183
+ readonly DOCUMENT_POSITION_FOLLOWING: number;
184
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
185
+ readonly DOCUMENT_POSITION_PRECEDING: number;
186
+ readonly DOCUMENT_TYPE_NODE: number;
187
+ readonly ELEMENT_NODE: number;
188
+ readonly ENTITY_NODE: number;
189
+ readonly ENTITY_REFERENCE_NODE: number;
190
+ readonly NOTATION_NODE: number;
191
+ readonly PROCESSING_INSTRUCTION_NODE: number;
192
+ readonly TEXT_NODE: number;
193
+ dispatchEvent(event: Event): boolean;
194
+ ariaAtomic: string;
195
+ ariaAutoComplete: string;
196
+ ariaBusy: string;
197
+ ariaChecked: string;
198
+ ariaColCount: string;
199
+ ariaColIndex: string;
200
+ ariaColIndexText: string;
201
+ ariaColSpan: string;
202
+ ariaCurrent: string;
203
+ ariaDisabled: string;
204
+ ariaExpanded: string;
205
+ ariaHasPopup: string;
206
+ ariaHidden: string;
207
+ ariaInvalid: string;
208
+ ariaKeyShortcuts: string;
209
+ ariaLabel: string;
210
+ ariaLevel: string;
211
+ ariaLive: string;
212
+ ariaModal: string;
213
+ ariaMultiLine: string;
214
+ ariaMultiSelectable: string;
215
+ ariaOrientation: string;
216
+ ariaPlaceholder: string;
217
+ ariaPosInSet: string;
218
+ ariaPressed: string;
219
+ ariaReadOnly: string;
220
+ ariaRequired: string;
221
+ ariaRoleDescription: string;
222
+ ariaRowCount: string;
223
+ ariaRowIndex: string;
224
+ ariaRowIndexText: string;
225
+ ariaRowSpan: string;
226
+ ariaSelected: string;
227
+ ariaSetSize: string;
228
+ ariaSort: string;
229
+ ariaValueMax: string;
230
+ ariaValueMin: string;
231
+ ariaValueNow: string;
232
+ ariaValueText: string;
233
+ role: string;
234
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes, options?: number | KeyframeAnimationOptions): Animation;
235
+ getAnimations(options?: GetAnimationsOptions): Animation[];
236
+ after(...nodes: (string | Node)[]): void;
237
+ before(...nodes: (string | Node)[]): void;
238
+ remove(): void;
239
+ replaceWith(...nodes: (string | Node)[]): void;
240
+ innerHTML: string;
241
+ readonly nextElementSibling: Element;
242
+ readonly previousElementSibling: Element;
243
+ readonly childElementCount: number;
244
+ readonly children: HTMLCollection;
245
+ readonly firstElementChild: Element;
246
+ readonly lastElementChild: Element;
247
+ append(...nodes: (string | Node)[]): void;
248
+ prepend(...nodes: (string | Node)[]): void;
249
+ querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
250
+ querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
251
+ querySelector<E_1 extends Element = Element>(selectors: string): E_1;
252
+ querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
253
+ querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
254
+ querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
255
+ replaceChildren(...nodes: (string | Node)[]): void;
256
+ readonly assignedSlot: HTMLSlotElement;
257
+ oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
258
+ oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
259
+ onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
260
+ readonly style: CSSStyleDeclaration;
261
+ contentEditable: string;
262
+ enterKeyHint: string;
263
+ inputMode: string;
264
+ readonly isContentEditable: boolean;
265
+ onabort: (this: GlobalEventHandlers, ev: UIEvent) => any;
266
+ onanimationcancel: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
267
+ onanimationend: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
268
+ onanimationiteration: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
269
+ onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
270
+ onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
271
+ onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
272
+ onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
273
+ oncancel: (this: GlobalEventHandlers, ev: Event) => any;
274
+ oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
275
+ oncanplaythrough: (this: GlobalEventHandlers, ev: Event) => any;
276
+ onchange: (this: GlobalEventHandlers, ev: Event) => any;
277
+ onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
278
+ onclose: (this: GlobalEventHandlers, ev: Event) => any;
279
+ oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
280
+ oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
281
+ ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
282
+ ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
283
+ ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
284
+ ondragenter: (this: GlobalEventHandlers, ev: DragEvent) => any;
285
+ ondragleave: (this: GlobalEventHandlers, ev: DragEvent) => any;
286
+ ondragover: (this: GlobalEventHandlers, ev: DragEvent) => any;
287
+ ondragstart: (this: GlobalEventHandlers, ev: DragEvent) => any;
288
+ ondrop: (this: GlobalEventHandlers, ev: DragEvent) => any;
289
+ ondurationchange: (this: GlobalEventHandlers, ev: Event) => any;
290
+ onemptied: (this: GlobalEventHandlers, ev: Event) => any;
291
+ onended: (this: GlobalEventHandlers, ev: Event) => any;
292
+ onerror: OnErrorEventHandlerNonNull;
293
+ onfocus: (this: GlobalEventHandlers, ev: FocusEvent) => any;
294
+ onformdata: (this: GlobalEventHandlers, ev: FormDataEvent) => any;
295
+ ongotpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
296
+ oninput: (this: GlobalEventHandlers, ev: Event) => any;
297
+ oninvalid: (this: GlobalEventHandlers, ev: Event) => any;
298
+ onkeydown: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
299
+ onkeypress: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
300
+ onkeyup: (this: GlobalEventHandlers, ev: KeyboardEvent) => any;
301
+ onload: (this: GlobalEventHandlers, ev: Event) => any;
302
+ onloadeddata: (this: GlobalEventHandlers, ev: Event) => any;
303
+ onloadedmetadata: (this: GlobalEventHandlers, ev: Event) => any;
304
+ onloadstart: (this: GlobalEventHandlers, ev: Event) => any;
305
+ onlostpointercapture: (this: GlobalEventHandlers, ev: PointerEvent) => any;
306
+ onmousedown: (this: GlobalEventHandlers, ev: MouseEvent) => any;
307
+ onmouseenter: (this: GlobalEventHandlers, ev: MouseEvent) => any;
308
+ onmouseleave: (this: GlobalEventHandlers, ev: MouseEvent) => any;
309
+ onmousemove: (this: GlobalEventHandlers, ev: MouseEvent) => any;
310
+ onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
311
+ onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
312
+ onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
313
+ onpause: (this: GlobalEventHandlers, ev: Event) => any;
314
+ onplay: (this: GlobalEventHandlers, ev: Event) => any;
315
+ onplaying: (this: GlobalEventHandlers, ev: Event) => any;
316
+ onpointercancel: (this: GlobalEventHandlers, ev: PointerEvent) => any;
317
+ onpointerdown: (this: GlobalEventHandlers, ev: PointerEvent) => any;
318
+ onpointerenter: (this: GlobalEventHandlers, ev: PointerEvent) => any;
319
+ onpointerleave: (this: GlobalEventHandlers, ev: PointerEvent) => any;
320
+ onpointermove: (this: GlobalEventHandlers, ev: PointerEvent) => any;
321
+ onpointerout: (this: GlobalEventHandlers, ev: PointerEvent) => any;
322
+ onpointerover: (this: GlobalEventHandlers, ev: PointerEvent) => any;
323
+ onpointerup: (this: GlobalEventHandlers, ev: PointerEvent) => any;
324
+ onprogress: (this: GlobalEventHandlers, ev: ProgressEvent<EventTarget>) => any;
325
+ onratechange: (this: GlobalEventHandlers, ev: Event) => any;
326
+ onreset: (this: GlobalEventHandlers, ev: Event) => any;
327
+ onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
328
+ onscroll: (this: GlobalEventHandlers, ev: Event) => any;
329
+ onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
330
+ onseeked: (this: GlobalEventHandlers, ev: Event) => any;
331
+ onseeking: (this: GlobalEventHandlers, ev: Event) => any;
332
+ onselect: (this: GlobalEventHandlers, ev: Event) => any;
333
+ onselectionchange: (this: GlobalEventHandlers, ev: Event) => any;
334
+ onselectstart: (this: GlobalEventHandlers, ev: Event) => any;
335
+ onslotchange: (this: GlobalEventHandlers, ev: Event) => any;
336
+ onstalled: (this: GlobalEventHandlers, ev: Event) => any;
337
+ onsubmit: (this: GlobalEventHandlers, ev: SubmitEvent) => any;
338
+ onsuspend: (this: GlobalEventHandlers, ev: Event) => any;
339
+ ontimeupdate: (this: GlobalEventHandlers, ev: Event) => any;
340
+ ontoggle: (this: GlobalEventHandlers, ev: Event) => any;
341
+ ontouchcancel?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
342
+ ontouchend?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
343
+ ontouchmove?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
344
+ ontouchstart?: (this: GlobalEventHandlers, ev: TouchEvent) => any;
345
+ ontransitioncancel: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
346
+ ontransitionend: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
347
+ ontransitionrun: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
348
+ ontransitionstart: (this: GlobalEventHandlers, ev: TransitionEvent) => any;
349
+ onvolumechange: (this: GlobalEventHandlers, ev: Event) => any;
350
+ onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
351
+ onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
352
+ onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
353
+ onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
354
+ onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
355
+ onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
356
+ autofocus: boolean;
357
+ readonly dataset: DOMStringMap;
358
+ nonce?: string;
359
+ tabIndex: number;
360
+ blur(): void;
361
+ focus(options?: FocusOptions): void;
362
+ readonly $fastController: import("@microsoft/fast-element").Controller;
363
+ $emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
364
+ attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
365
+ };
366
+ };
367
+ //# sourceMappingURL=datasource.mixins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"datasource.mixins.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.mixins.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,EACL,gBAAgB,EAEhB,4BAA4B,EAC7B,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,sBAAsB,WAAY,UAAU,WAAW,GAAG,WAAW;;0BAGhD,gBAAgB;QAC9C;;WAEG;sBACW,MAAM;QACpB;;;;;WAKG;2CACgC,4BAA4B,KAAK,IAAI;QA4BxE;;;WAGG;sCAC2B,gBAAgB,QAAQ,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBzE,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { FieldMetadata, FilteredDataServerResult, RawDataServerResult } from '../metadata/metadata.types';
1
+ import type { FieldMetadata } from '../metadata/metadata.types';
2
2
  /**
3
3
  * Types of Genesis resources.
4
4
  * @public
@@ -97,32 +97,24 @@ export interface DatasourceOptions {
97
97
  reverse?: boolean;
98
98
  }
99
99
  /**
100
- * Default values for a DatasourceConfig
100
+ * DatasourceStatus.
101
101
  * @public
102
102
  */
103
- export declare class DatasourceDefaults {
104
- static readonly MAX_ROWS_250 = 250;
105
- static readonly MAX_VIEW_1000 = 1000;
106
- static readonly REQ_REP_POLLING_INTERVAL_MS = 10000;
107
- static readonly DATASERVER_ROW_ID = "ROW_REF";
108
- static readonly REQUEST_SERVER_ROW_ID = "RECORD_ID";
109
- }
103
+ export type DatasourceStatus = {
104
+ name: string;
105
+ type: `${ResourceType}`;
106
+ isInitialized: boolean;
107
+ metadataRequired: boolean;
108
+ hasMetadata: boolean;
109
+ };
110
110
  /**
111
- * The configuration object for a Datasource
111
+ * DatasourceStatusChanged.
112
112
  * @public
113
113
  */
114
- export interface DatasourceConfig {
115
- options: DatasourceOptions;
116
- criteriaToFields(filters: string): Record<string, string>;
117
- dataServerResultFilter(result: RawDataServerResult, rowId?: string): FilteredDataServerResult;
118
- }
114
+ export declare const DatasourceStatusChanged = "datasource-status-changed";
119
115
  /**
120
- * The DI token for the DatasourceConfig interface.
121
- *
122
- * @privateRemarks
123
- * Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
124
- *
125
- * @internal
116
+ * DatasourceStatusChangedEvent.
117
+ * @public
126
118
  */
127
- export declare const DatasourceConfig: import("@microsoft/fast-foundation").InterfaceSymbol<DatasourceConfig>;
119
+ export type DatasourceStatusChangedEvent = CustomEvent<DatasourceStatus>;
128
120
  //# sourceMappingURL=datasource.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACxB,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAEpC;;;GAGG;AACH,oBAAY,YAAY;IACtB,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C;;OAEG;IACH,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IAC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AAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG,WAAW,CAAC,gBAAgB,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { DTOMapper } from '@genesislcap/foundation-utils';
2
2
  import type { SocketSubscription } from '../connect/socket';
3
3
  import type { FilteredDataServerResult, RowData } from '../metadata/metadata.types';
4
- import { DefaultDatasource } from './datasource';
4
+ import { Datasource, DefaultDatasource } from './datasource';
5
5
  import type { DatasourceOptions } from './datasource.types';
6
6
  /**
7
7
  * This is a wip. We need to see if and where this fits into our strategic shared datasource solution.
@@ -82,12 +82,7 @@ export interface EntityDatasourceInit<TDTO, TEntity> {
82
82
  *
83
83
  * @alpha
84
84
  */
85
- export interface EntityDatasource<TDTO, TEntity> {
86
- /**
87
- * @remarks
88
- * Datasource initialized.
89
- */
90
- readonly initialized: boolean;
85
+ export interface EntityDatasource<TDTO, TEntity> extends Datasource {
91
86
  /**
92
87
  * @remarks
93
88
  * Initialize datasource.
@@ -126,7 +121,9 @@ export declare class DefaultEntityDatasource<TDTO, TEntity> extends DefaultDatas
126
121
  protected entityMap: Map<string, TEntity>;
127
122
  protected rowId: string;
128
123
  /** {@inheritDoc EntityDatasource.initialized} */
129
- initialized: boolean;
124
+ protected _initialized: boolean;
125
+ get initialized(): boolean;
126
+ set initialized(value: boolean);
130
127
  /** {@inheritDoc EntityDatasource.initialize} */
131
128
  initialize: (init: EntityDatasourceInit<TDTO, TEntity>) => Promise<boolean>;
132
129
  /** {@inheritDoc EntityDatasource.cache} */
@@ -1 +1 @@
1
- {"version":3,"file":"entityDatasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/entityDatasource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC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,KAAK,EAAE,OAAO,EAE7B;IAED,gDAAgD;IAChD,UAAU,SAAgB,qBAAqB,IAAI,EAAE,OAAO,CAAC,KAAG,QAAQ,OAAO,CAAC,CAqB9E;IAEF,2CAA2C;IAC3C,IAAI,KAAK,IAAI,OAAO,EAAE,CAKrB;IAED,6CAA6C;IAC7C,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,gDAAgD;IAChD,UAAU,QAAO,IAAI,CAGnB;IAEF,SAAS,CAAC,WAAW,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI;IAoB7D,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,SAAS,GAAE,OAAe,GAAG,IAAI;CAarF;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,kFAE5B,CAAC"}
@@ -1,5 +1,7 @@
1
1
  export * from './criteriaFiltersToFields';
2
2
  export * from './dataServerResultFilter';
3
+ export * from './datasource.config';
4
+ export * from './datasource.mixins';
3
5
  export * from './datasource';
4
6
  export * from './datasource.types';
5
7
  export * from './entityDatasource';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/datasource/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/datasource/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
@@ -5,6 +5,7 @@ export * from './credentialManager';
5
5
  export * from './datasource';
6
6
  export * from './metadata';
7
7
  export * from './networkMonitor';
8
+ export * from './resources';
8
9
  export * from './session';
9
10
  export * from './storage';
10
11
  export * from './testing';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,81 @@
1
+ import { TypedBroadcastChannel } from '@genesislcap/foundation-broadcast-channel';
2
+ import { GenesisResourcesEvents } from './types';
3
+ /**
4
+ * GenesisResourcesConfig DI interface.
5
+ * @public
6
+ */
7
+ export interface GenesisResourcesConfig {
8
+ /**
9
+ * Treat unavailable/empty genesis resource sets as fatal errors.
10
+ */
11
+ throwWhenUnavailable?: boolean;
12
+ /**
13
+ * Treat unknown resources as fatal errors.
14
+ */
15
+ throwWhenUnknown?: boolean;
16
+ }
17
+ /**
18
+ * Default GenesisResourcesConfig implementation.
19
+ * @public
20
+ */
21
+ export declare const defaultGenesisResourcesConfig: GenesisResourcesConfig;
22
+ /**
23
+ * GenesisResourcesConfig DI key.
24
+ * @internal
25
+ * @privateRemarks
26
+ * Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
27
+ */
28
+ export declare const GenesisResourcesConfig: import("@microsoft/fast-foundation").InterfaceSymbol<GenesisResourcesConfig>;
29
+ /**
30
+ * GenesisResourcesChannel DI interface.
31
+ * @example
32
+ * ```ts
33
+ * import { GenesisResourcesChannel } from '@genesislcap/foundation-comms';
34
+ * ...
35
+ * @GenesisResourcesChannel protected channel: GenesisResourcesChannel;
36
+ * ...
37
+ * this.channel.onmessage = (e) => {
38
+ * if (this.channel.isMessageType('resources-loaded', e)) {
39
+ * logger.debug('resources-loaded', e.data.detail);
40
+ * return;
41
+ * }
42
+ * }
43
+ * ...
44
+ * this.channel.close();
45
+ * ```
46
+ * @public
47
+ */
48
+ export interface GenesisResourcesChannel extends TypedBroadcastChannel<GenesisResourcesEvents> {
49
+ }
50
+ /**
51
+ * GenesisResourcesChannel DI key.
52
+ * @internal
53
+ * @privateRemarks
54
+ * Marked as internal to stop api-extractor becoming confused cross-linking tokens with the same name.
55
+ */
56
+ export declare const GenesisResourcesChannel: import("@microsoft/fast-foundation").InterfaceSymbol<TypedBroadcastChannel<GenesisResourcesEvents>>;
57
+ /**
58
+ * Gets GenesisResourcesChannel from the DI container.
59
+ *
60
+ * @remarks
61
+ * A utility method for host applications that are not using decorators or the DI container.
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * import { getGenesisResourcesChannel } from '@genesislcap/foundation-comms';
66
+ * ...
67
+ * const channel = getGenesisResourcesChannel();
68
+ * ...
69
+ * channel.onmessage = (e) => {
70
+ * if (channel.isMessageType('resources-loaded', e)) {
71
+ * logger.debug('resources-loaded', e.data.detail);
72
+ * return;
73
+ * }
74
+ * }
75
+ * ...
76
+ * channel.close();
77
+ * ```
78
+ * @public
79
+ */
80
+ export declare function getGenesisResourcesChannel(): GenesisResourcesChannel;
81
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/resources/genesis/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,EACtB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EAA6B,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAE5E;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;GAGG;AACH,eAAO,MAAM,6BAA6B,EAAE,sBAG3C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,8EAElC,CAAC;AAEF;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,WAAW,uBAAwB,SAAQ,qBAAqB,CAAC,sBAAsB,CAAC;CAAG;AAEjG;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,qGAC8C,CAAC;AAEnF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,0BAA0B,IAAI,uBAAuB,CAEpE"}