@genesislcap/foundation-ui 14.167.2 → 14.167.3-alpha-b40d1e5.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.
Files changed (31) hide show
  1. package/dist/custom-elements.json +1949 -1376
  2. package/dist/dts/base-components.d.ts +8 -7
  3. package/dist/dts/base-components.d.ts.map +1 -1
  4. package/dist/dts/error-boundary/error-boundary.d.ts +3 -0
  5. package/dist/dts/error-boundary/error-boundary.d.ts.map +1 -1
  6. package/dist/dts/index.d.ts +1 -0
  7. package/dist/dts/index.d.ts.map +1 -1
  8. package/dist/dts/notification-listener/notification-listener.d.ts +3 -0
  9. package/dist/dts/notification-listener/notification-listener.d.ts.map +1 -1
  10. package/dist/dts/overlays/index.d.ts +2 -0
  11. package/dist/dts/overlays/index.d.ts.map +1 -0
  12. package/dist/dts/overlays/system-health/index.d.ts +2 -0
  13. package/dist/dts/overlays/system-health/index.d.ts.map +1 -0
  14. package/dist/dts/overlays/system-health/system-health-overlay.d.ts +131 -0
  15. package/dist/dts/overlays/system-health/system-health-overlay.d.ts.map +1 -0
  16. package/dist/dts/overlays/system-health/types.d.ts +22 -0
  17. package/dist/dts/overlays/system-health/types.d.ts.map +1 -0
  18. package/dist/dts/utils/base-datasource.d.ts.map +1 -1
  19. package/dist/dts/utils/logger.d.ts +2 -0
  20. package/dist/dts/utils/logger.d.ts.map +1 -1
  21. package/dist/esm/base-components.js +7 -5
  22. package/dist/esm/error-boundary/error-boundary.js +18 -2
  23. package/dist/esm/index.js +1 -0
  24. package/dist/esm/notification-listener/notification-listener.js +18 -2
  25. package/dist/esm/overlays/index.js +1 -0
  26. package/dist/esm/overlays/system-health/index.js +1 -0
  27. package/dist/esm/overlays/system-health/system-health-overlay.js +756 -0
  28. package/dist/esm/overlays/system-health/types.js +8 -0
  29. package/dist/esm/utils/base-datasource.js +10 -0
  30. package/dist/esm/utils/logger.js +2 -1
  31. package/package.json +15 -15
@@ -116,14 +116,14 @@ export declare const baseComponents: {
116
116
  }, typeof import("./file-upload").FileUpload>;
117
117
  foundationFilter: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
118
118
  baseName: string;
119
- template: import("@microsoft/fast-element").ViewTemplate<import("./filter/filter").Filter, any>;
119
+ template: import("@microsoft/fast-element").ViewTemplate<import("./filter").Filter, any>;
120
120
  styles: import("@microsoft/fast-element").ElementStyles;
121
121
  }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
122
122
  baseName: string;
123
- template: import("@microsoft/fast-element").ViewTemplate<import("./filter/filter").Filter, any>;
123
+ template: import("@microsoft/fast-element").ViewTemplate<import("./filter").Filter, any>;
124
124
  styles: import("@microsoft/fast-element").ElementStyles;
125
- }, typeof import("./filter/filter").Filter>;
126
- foundationFilterBar: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./filter-bar/filter-bar").FilterBar>;
125
+ }, typeof import("./filter").Filter>;
126
+ foundationFilterBar: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./filter-bar").FilterBar>;
127
127
  foundationFlexLayout: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
128
128
  baseName: string;
129
129
  styles: import("@microsoft/fast-element").ElementStyles;
@@ -139,14 +139,14 @@ export declare const baseComponents: {
139
139
  foundationFlyout: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
140
140
  baseName: string;
141
141
  styles: import("@microsoft/fast-element").ElementStyles;
142
- template: import("@microsoft/fast-element").ViewTemplate<import("./flyout/flyout").Flyout, any>;
142
+ template: import("@microsoft/fast-element").ViewTemplate<import("./flyout").Flyout, any>;
143
143
  shadowOptions: ShadowRootInit;
144
144
  }>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
145
145
  baseName: string;
146
146
  styles: import("@microsoft/fast-element").ElementStyles;
147
- template: import("@microsoft/fast-element").ViewTemplate<import("./flyout/flyout").Flyout, any>;
147
+ template: import("@microsoft/fast-element").ViewTemplate<import("./flyout").Flyout, any>;
148
148
  shadowOptions: ShadowRootInit;
149
- }, typeof import("./flyout/flyout").Flyout>;
149
+ }, typeof import("./flyout").Flyout>;
150
150
  foundationGridLayout: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
151
151
  baseName: string;
152
152
  styles: import("@microsoft/fast-element").ElementStyles;
@@ -261,6 +261,7 @@ export declare const baseComponents: {
261
261
  }, typeof import("./stepper-tab-panel").StepperTabPanel>;
262
262
  foundationStackingIcons: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./stacking-icons").StackingIcons>;
263
263
  foundationSwitch: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").SwitchOptions>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").SwitchOptions, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
264
+ foundationSystemHealthOverlay: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./overlays").SystemHealthOverlay>;
264
265
  foundationTab: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./tab").Tab>;
265
266
  foundationTabPanel: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./tab-panel").TabPanel>;
266
267
  foundationTabs: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<import("@microsoft/fast-foundation").FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<import("@microsoft/fast-foundation").FoundationElementDefinition, typeof import("./tabs").Tabs>;
@@ -1 +1 @@
1
- {"version":3,"file":"base-components.d.ts","sourceRoot":"","sources":["../../src/base-components.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AA8E5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA6EJ,SAAS,WAAW,GAAG,EAAE;CAe/C,CAAC"}
1
+ {"version":3,"file":"base-components.d.ts","sourceRoot":"","sources":["../../src/base-components.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AA+E5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA8EJ,SAAS,WAAW,GAAG,EAAE;CAe/C,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import { FoundationElement } from '@microsoft/fast-foundation';
2
+ import { Subscription } from 'rxjs';
2
3
  export declare const foundationErrorBoundaryShadowOptions: ShadowRootInit;
3
4
  /**
4
5
  * @deprecated
@@ -18,8 +19,10 @@ export declare class ErrorBoundary extends FoundationElement {
18
19
  * @public
19
20
  */
20
21
  closeTimeout: number;
22
+ protected dataSub: Subscription;
21
23
  private datasource;
22
24
  connectedCallback(): Promise<void>;
25
+ disconnectedCallback(): void;
23
26
  }
24
27
  /**
25
28
  * The Foundation Error Boundary
@@ -1 +1 @@
1
- {"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../../src/error-boundary/error-boundary.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,eAAO,MAAM,oCAAoC,EAAE,cAGlD,CAAC;AAEF;;;GAGG;AACH,qBAAa,aAAc,SAAQ,iBAAiB;IAClD,OAAO,CAAC,MAAM,CAAkC;IACpC,aAAa,EAAG,WAAW,CAAC;IAExC;;;;OAIG;IACmC,YAAY,MAAC;IACnD;;;OAGG;IACuE,YAAY,SAAK;IAE/E,OAAO,CAAC,UAAU,CAAa;IACrC,iBAAiB;CA+CxB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;wBAIlC,CAAC"}
1
+ {"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../../src/error-boundary/error-boundary.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIpC,eAAO,MAAM,oCAAoC,EAAE,cAGlD,CAAC;AAEF;;;GAGG;AACH,qBAAa,aAAc,SAAQ,iBAAiB;IAClD,OAAO,CAAC,MAAM,CAAkC;IACpC,aAAa,EAAG,WAAW,CAAC;IAExC;;;;OAIG;IACmC,YAAY,MAAC;IACnD;;;OAGG;IACuE,YAAY,SAAK;IAE3F,SAAS,CAAC,OAAO,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,UAAU,CAAa;IACrC,iBAAiB;IAqDvB,oBAAoB;CAUrB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;wBAIlC,CAAC"}
@@ -53,6 +53,7 @@ export * from './multiselect';
53
53
  export * from './notification-listener';
54
54
  export * from './number-field';
55
55
  export * from './options-datasource';
56
+ export * from './overlays';
56
57
  export * from './patterns';
57
58
  export * from './popper';
58
59
  export * from './progress';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEvF,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,CAAC;AAExE,eAAO,MAAM,8BAA8B,yDAAuD,CAAC;AAEnG,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AA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AC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,SAAS,IAAI,qBAAqB,EAAE,MAAM,aAAa,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { ToastButton } from '@genesislcap/foundation-notifications';
2
2
  import { FoundationElement } from '@microsoft/fast-foundation';
3
+ import { Subscription } from 'rxjs';
3
4
  export declare const foundationNotificationListenerShadowOptions: ShadowRootInit;
4
5
  /**
5
6
  * @tagname %%prefix%%-notification-listener
@@ -22,8 +23,10 @@ export declare class NotificationListener extends FoundationElement {
22
23
  * @public
23
24
  */
24
25
  toastButtons: ToastButton[];
26
+ protected dataSub: Subscription;
25
27
  private datasource;
26
28
  connectedCallback(): Promise<void>;
29
+ disconnectedCallback(): void;
27
30
  private handleStreamUpdate;
28
31
  }
29
32
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"notification-listener.d.ts","sourceRoot":"","sources":["../../../src/notification-listener/notification-listener.ts"],"names":[],"mappings":"AAOA,OAAO,EAKL,WAAW,EAEZ,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D,eAAO,MAAM,2CAA2C,EAAE,cAGzD,CAAC;AAEF;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,iBAAiB;IAC7C,oBAAoB,EAAG,WAAW,CAAC;IAE/C;;;;OAIG;IACmC,YAAY,MAAC;IACnD;;;OAGG;IACuE,YAAY,SAAK;IAC3F;;;OAGG;IACS,YAAY,EAAE,WAAW,EAAE,CAAM;IAEjC,OAAO,CAAC,UAAU,CAAa;IACrC,iBAAiB;IAyBvB,OAAO,CAAC,kBAAkB;CAiC3B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;+BAIzC,CAAC"}
1
+ {"version":3,"file":"notification-listener.d.ts","sourceRoot":"","sources":["../../../src/notification-listener/notification-listener.ts"],"names":[],"mappings":"AAOA,OAAO,EAKL,WAAW,EAEZ,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAIpC,eAAO,MAAM,2CAA2C,EAAE,cAGzD,CAAC;AAEF;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,iBAAiB;IAC7C,oBAAoB,EAAG,WAAW,CAAC;IAE/C;;;;OAIG;IACmC,YAAY,MAAC;IACnD;;;OAGG;IACuE,YAAY,SAAK;IAC3F;;;OAGG;IACS,YAAY,EAAE,WAAW,EAAE,CAAM;IAE7C,SAAS,CAAC,OAAO,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,UAAU,CAAa;IACrC,iBAAiB;IA8BvB,oBAAoB;IAWpB,OAAO,CAAC,kBAAkB;CAiC3B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;+BAIzC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './system-health';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/overlays/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './system-health-overlay';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/overlays/system-health/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,131 @@
1
+ import { NetworkMonitor, NetworkMonitorConfig, ResourceHealth, SystemHealthChangedEvent, SystemHealthStatus } from '@genesislcap/foundation-comms';
2
+ import { ElementStyles } from '@microsoft/fast-element';
3
+ import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
4
+ import { FoundationElement } from '@microsoft/fast-foundation';
5
+ import { SystemHealthOverlayMode, TimeTillNextUpdate } from './types';
6
+ /**
7
+ * SystemHealthOverlay
8
+ * @public
9
+ */
10
+ export declare class SystemHealthOverlay extends FoundationElement {
11
+ /**
12
+ * High-level configuration.
13
+ * @internal
14
+ */
15
+ protected config: NetworkMonitorConfig;
16
+ /**
17
+ * @privateRemarks
18
+ * Including a reference allows this overlay component to manage the NetworkMonitor's create/destroy lifecycle,
19
+ * so that users only need to include this overlay in their markup. ie. if you're adding the overlay, you expect the
20
+ * NetworkMonitor to be created to power it. Users may also inject the NetworkMonitor in their main class to create it,
21
+ * as multiple calls to create will be ignored.
22
+ * @internal
23
+ */
24
+ protected networkMonitor: NetworkMonitor;
25
+ resourceList: ResourceHealth[];
26
+ isOpen: boolean;
27
+ isOpenChanged(): void;
28
+ isDismissed: boolean;
29
+ isDismissedChanged(): void;
30
+ templateClassNames: string;
31
+ containerClassNames: string;
32
+ isOnlineClassNames: string;
33
+ isHealthyClassNames: string;
34
+ isSocketHealthyClassNames: string;
35
+ resourcesAllConnectedClassNames: string;
36
+ timeTillNextUpdate: TimeTillNextUpdate;
37
+ protected timeTillNextUpdateInterval: ReturnType<typeof setInterval>;
38
+ /**
39
+ * @example
40
+ * App authors can set this property on the component to indicate they have a save data callback.
41
+ * ```html
42
+ * <foundation-system-health-overlay :saveDataCallback=${(x) => x.onSaveAppData}>
43
+ * ```
44
+ */
45
+ saveDataCallback: () => void;
46
+ /**
47
+ * Controls the overlay mode, either app or component level.
48
+ * @remarks
49
+ * HTML attribute: mode
50
+ */
51
+ mode: SystemHealthOverlayMode;
52
+ protected modeChanged(): void;
53
+ /**
54
+ * Allows users to control the logging level of the network monitor via the component.
55
+ * @remarks
56
+ * HTML attribute: log-level
57
+ * @privateRemarks
58
+ * Might be nicer to have users set these as 'error', 'debug' etc. and map them.
59
+ */
60
+ logLevel: number;
61
+ protected logLevelChanged(): void;
62
+ /**
63
+ * Last known system health status.
64
+ * @privateRemarks
65
+ * This will be updated momentarily when NetworkMonitor.create is called.
66
+ * We may want to delay opening slightly to avoid any overlay flashing during initial resource loading. Noticed at
67
+ * times we may get a temporary health issue on a resource with a NACK stating 'Dataserver subscription does not exist'
68
+ * or similar, which will cause the re-datalogon to occur to try and recover the resource. This might indicate clean
69
+ * up issues elsewhere that need to be addressed.
70
+ */
71
+ status: SystemHealthStatus;
72
+ protected statusChanged(prev: SystemHealthStatus, next: SystemHealthStatus): void;
73
+ protected updateClassNames(): void;
74
+ protected updateTemplateClassNames(): void;
75
+ protected startTimeTillNextUpdateCountdown(): void;
76
+ connectedCallback(): void;
77
+ disconnectedCallback(): void;
78
+ onSystemHealthChanged: (event: SystemHealthChangedEvent) => void;
79
+ onOpen: () => void;
80
+ onClose: () => void;
81
+ onDismiss: () => void;
82
+ onUpdateStatus: () => void;
83
+ onReportStatus: () => void;
84
+ onReloadWindow: () => void;
85
+ onDocumentKeydown: (e: KeyboardEvent) => void;
86
+ get isSocketHealthy(): boolean;
87
+ get validResourceList(): boolean;
88
+ /**
89
+ * @internal
90
+ */
91
+ protected eventBridge(): HTMLElement | Document;
92
+ /**
93
+ * @internal
94
+ */
95
+ protected addEventListeners(): void;
96
+ /**
97
+ * @internal
98
+ */
99
+ protected removeEventListeners(): void;
100
+ static getCheckmarkTemplate(isGood: boolean): import("@microsoft/fast-element").ViewTemplate<any, any>;
101
+ }
102
+ /**
103
+ * Foundation system health overlay template
104
+ *
105
+ * @public
106
+ */
107
+ export declare const foundationSystemHealthOverlayTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => import("@microsoft/fast-element").ViewTemplate<SystemHealthOverlay, any>;
108
+ /**
109
+ * Foundation system health overlay styles
110
+ * @public
111
+ */
112
+ export declare const foundationSystemHealthOverlayStyles: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementStyles;
113
+ /**
114
+ * Foundation system health overlay styles
115
+ * @public
116
+ */
117
+ export declare const foundationSystemHealthOverlayShadowOptions: ShadowRootInit;
118
+ /**
119
+ * Foundation system health overlay styles
120
+ * @public
121
+ */
122
+ export declare const defaultSystemHealthOverlayConfig: {};
123
+ /**
124
+ * Foundation system health overlay
125
+ *
126
+ * @public
127
+ * @remarks
128
+ * HTML Element: \<foundation-system-health-overlay\>
129
+ */
130
+ export declare const foundationSystemHealthOverlay: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition>) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, typeof SystemHealthOverlay>;
131
+ //# sourceMappingURL=system-health-overlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-health-overlay.d.ts","sourceRoot":"","sources":["../../../../src/overlays/system-health/system-health-overlay.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,cAAc,EACd,oBAAoB,EACpB,cAAc,EAEd,wBAAwB,EACxB,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAGL,aAAa,EAMd,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AACpC,O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AGL;IAEF,SAAS,aASP;IAEF,cAAc,aAEZ;IAEF,cAAc,aAEZ;IAEF,cAAc,aAEZ;IAEF,iBAAiB,MAAO,aAAa,UAuBnC;IAEF,IAAI,eAAe,YAMlB;IAED,IAAI,iBAAiB,YAEpB;IAED;;OAEG;IACH,SAAS,CAAC,WAAW;IAIrB;;OAEG;IACH,SAAS,CAAC,iBAAiB;IAK3B;;OAEG;IACH,SAAS,CAAC,oBAAoB;IAK9B,MAAM,CAAC,oBAAoB,CAAC,MAAM,EAAE,OAAO;CAU5C;AAED;;;;GAIG;AACH,eAAO,MAAM,qCAAqC,YACvC,wBAAwB,cACrB,2BAA2B,6EAwMxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mCAAmC,YACrC,wBAAwB,cACrB,2BAA2B,KACtC,aAmRF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0CAA0C,EAAE,cAA0B,CAAC;AAEpF;;;GAGG;AACH,eAAO,MAAM,gCAAgC,IAAK,CAAC;AAEnD;;;;;;GAMG;AACH,eAAO,MAAM,6BAA6B,yPAMxC,CAAC"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Mode for {@link SystemHealthOverlay}
3
+ * @public
4
+ */
5
+ export declare const SystemHealthOverlayMode: {
6
+ readonly app: "app";
7
+ readonly component: "component";
8
+ };
9
+ /**
10
+ * Type for the {@link SystemHealthOverlay} Mode
11
+ * @public
12
+ */
13
+ export type SystemHealthOverlayMode = (typeof SystemHealthOverlayMode)[keyof typeof SystemHealthOverlayMode];
14
+ /**
15
+ * @public
16
+ */
17
+ export interface TimeTillNextUpdate {
18
+ totalMs: number;
19
+ remainMs: number;
20
+ remainPercent: number;
21
+ }
22
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/overlays/system-health/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;CAG1B,CAAC;A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EAAE,GAAG,IAAI;IAEtD,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,GAAG,EAAE,GAAG,IAAI;IAEzC,gBAAgB,CAAC,YAAY,UAAO;IA8CpC,cAAc;IAI3B,OAAO,CAAC,iBAAiB;IAczB,OAAO,CAAC,kBAAkB;IAYnB,sBAAsB,CAAC,mBAAmB,EAAE,mBAAmB;IAiC/D,mBAAmB,CAAC,gBAAgB,EAAE,wBAAwB;IAwBrE,OAAO,CAAC,aAAa;IAKd,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAK9C,YAAY,CAAC,SAAS,EAAE,MAAM;CAItC"}
@@ -1,2 +1,4 @@
1
+ import { LogLevel } from '@genesislcap/foundation-logger';
2
+ export { LogLevel };
1
3
  export declare const logger: import("@genesislcap/foundation-logger").Logger;
2
4
  //# sourceMappingURL=logger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,iDAAgC,CAAC"}
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/utils/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAExE,OAAO,EAAE,QAAQ,EAAE,CAAC;AAEpB,eAAO,MAAM,MAAM,iDAAgC,CAAC"}
@@ -29,11 +29,11 @@ import { foundationErrorBanner } from './error-banner';
29
29
  import { foundationErrorBoundary } from './error-boundary';
30
30
  import { foundationErrorDialog } from './error-dialog';
31
31
  import { foundationFileUpload } from './file-upload';
32
- import { foundationFilter } from './filter/';
33
- import { foundationFilterBar } from './filter-bar/';
32
+ import { foundationFilter } from './filter';
33
+ import { foundationFilterBar } from './filter-bar';
34
34
  import { foundationFlexLayout } from './flex-layout';
35
- import { foundationFlipper } from './flipper/';
36
- import { foundationFlyout } from './flyout/';
35
+ import { foundationFlipper } from './flipper';
36
+ import { foundationFlyout } from './flyout';
37
37
  import { foundationGridLayout } from './grid-layout';
38
38
  import { foundationGridLayoutItem } from './grid-layout-item';
39
39
  import { foundationHorizontalScroll } from './horizontal-scroll';
@@ -45,6 +45,7 @@ import { foundationMenuItem } from './menu-item';
45
45
  import { foundationModal } from './modal';
46
46
  import { foundationMultiselect } from './multiselect';
47
47
  import { foundationNumberField } from './number-field';
48
+ import { foundationSystemHealthOverlay } from './overlays';
48
49
  import { foundationPopper } from './popper';
49
50
  import { foundationProgress } from './progress';
50
51
  import { foundationProgressRing } from './progress-ring';
@@ -54,7 +55,7 @@ import { foundationSearchBar } from './search-bar';
54
55
  import { foundationSearchBarCombobox } from './search-bar';
55
56
  import { foundationSegmentedControl } from './segmented-control';
56
57
  import { foundationSegmentedItem } from './segmented-item';
57
- import { foundationSelect } from './select/index';
58
+ import { foundationSelect } from './select';
58
59
  import { foundationSkeleton } from './skeleton';
59
60
  import { foundationSlider } from './slider';
60
61
  import { foundationSliderLabel } from './slider-label';
@@ -141,6 +142,7 @@ export const baseComponents = {
141
142
  foundationStepperTabPanel,
142
143
  foundationStackingIcons,
143
144
  foundationSwitch,
145
+ foundationSystemHealthOverlay,
144
146
  foundationTab,
145
147
  foundationTabPanel,
146
148
  foundationTabs,
@@ -4,6 +4,7 @@ import { ErrorBoundaryEvent, getErrorBuilder, getNotificationBuilder, showError,
4
4
  import { createLogger } from '@genesislcap/foundation-logger';
5
5
  import { attr, nullableNumberConverter, observable } from '@microsoft/fast-element';
6
6
  import { FoundationElement } from '@microsoft/fast-foundation';
7
+ import { logger } from '../utils';
7
8
  import { foundationErrorBoundaryTemplate as template } from './error-boundary.template';
8
9
  export const foundationErrorBoundaryShadowOptions = {
9
10
  mode: 'open',
@@ -35,10 +36,14 @@ export class ErrorBoundary extends FoundationElement {
35
36
  showError(e.detail, this.tagName, this.errorBoundary);
36
37
  });
37
38
  if (this.resourceName) {
38
- yield this.datasource.init({
39
+ const initOK = yield this.datasource.init({
39
40
  resourceName: this.resourceName,
40
41
  }, true);
41
- (_a = this.datasource.stream) === null || _a === void 0 ? void 0 : _a.subscribe((result) => {
42
+ if (!initOK) {
43
+ logger.debug(`Genesis Datasource init failed for ${this.resourceName}`);
44
+ return;
45
+ }
46
+ this.dataSub = (_a = this.datasource.stream) === null || _a === void 0 ? void 0 : _a.subscribe((result) => {
42
47
  if (!result.ROW) {
43
48
  return;
44
49
  }
@@ -61,6 +66,17 @@ export class ErrorBoundary extends FoundationElement {
61
66
  }
62
67
  });
63
68
  }
69
+ disconnectedCallback() {
70
+ var _a, _b;
71
+ super.disconnectedCallback();
72
+ /**
73
+ * Attempt to clean up after ourselves.
74
+ */
75
+ (_a = this.dataSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
76
+ delete this.dataSub;
77
+ (_b = this.datasource) === null || _b === void 0 ? void 0 : _b.destroy();
78
+ delete this.datasource;
79
+ }
64
80
  }
65
81
  __decorate([
66
82
  observable
package/dist/esm/index.js CHANGED
@@ -53,6 +53,7 @@ export * from './multiselect';
53
53
  export * from './notification-listener';
54
54
  export * from './number-field';
55
55
  export * from './options-datasource';
56
+ export * from './overlays';
56
57
  export * from './patterns';
57
58
  export * from './popper';
58
59
  export * from './progress';
@@ -4,6 +4,7 @@ import { showNotificationToast } from '@genesislcap/foundation-notifications';
4
4
  import { NotificationEvent, showNotification, } from '@genesislcap/foundation-notifications';
5
5
  import { attr, nullableNumberConverter, observable } from '@microsoft/fast-element';
6
6
  import { FoundationElement } from '@microsoft/fast-foundation';
7
+ import { logger } from '../utils';
7
8
  import { foundationNotificationListenerTemplate as template } from './notification-listener.template';
8
9
  export const foundationNotificationListenerShadowOptions = {
9
10
  mode: 'open',
@@ -38,10 +39,14 @@ export class NotificationListener extends FoundationElement {
38
39
  showNotification(e.detail, this.tagName, this.notificationListener);
39
40
  });
40
41
  if (this.resourceName) {
41
- yield this.datasource.init({
42
+ const initOK = yield this.datasource.init({
42
43
  resourceName: this.resourceName,
43
44
  }, true);
44
- (_a = this.datasource.stream) === null || _a === void 0 ? void 0 : _a.subscribe((result) => {
45
+ if (!initOK) {
46
+ logger.debug(`Genesis Datasource init failed for ${this.resourceName}`);
47
+ return;
48
+ }
49
+ this.dataSub = (_a = this.datasource.stream) === null || _a === void 0 ? void 0 : _a.subscribe((result) => {
45
50
  if (result.ROW && result.SEQUENCE_ID > 1) {
46
51
  this.handleStreamUpdate(dataServerResultFilter(result));
47
52
  }
@@ -49,6 +54,17 @@ export class NotificationListener extends FoundationElement {
49
54
  }
50
55
  });
51
56
  }
57
+ disconnectedCallback() {
58
+ var _a, _b;
59
+ super.disconnectedCallback();
60
+ /**
61
+ * Attempt to clean up after ourselves.
62
+ */
63
+ (_a = this.dataSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
64
+ delete this.dataSub;
65
+ (_b = this.datasource) === null || _b === void 0 ? void 0 : _b.destroy();
66
+ delete this.datasource;
67
+ }
52
68
  handleStreamUpdate(dataServerResult) {
53
69
  const rows = dataServerResult.inserts;
54
70
  if (rows.length > 0) {
@@ -0,0 +1 @@
1
+ export * from './system-health';
@@ -0,0 +1 @@
1
+ export * from './system-health-overlay';