@genesislcap/pbc-reconciliation-ui 0.0.2 → 0.0.3

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 (163) hide show
  1. package/.gradle/8.3/executionHistory/executionHistory.bin +0 -0
  2. package/.gradle/8.3/executionHistory/executionHistory.lock +0 -0
  3. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  4. package/.gradle/buildOutputCleanup/cache.properties +1 -1
  5. package/.gradle/file-system.probe +0 -0
  6. package/build/distributions/web-distribution.tar +0 -0
  7. package/build/distributions/web-distribution.zip +0 -0
  8. package/dist/dts/components/components.d.ts +3 -1
  9. package/dist/dts/components/components.d.ts.map +1 -1
  10. package/dist/dts/components/configurations-panel/configurations-panel.d.ts +5 -0
  11. package/dist/dts/components/configurations-panel/configurations-panel.d.ts.map +1 -0
  12. package/dist/dts/components/configurations-panel/configurations-panel.styles.d.ts +2 -0
  13. package/dist/dts/components/configurations-panel/configurations-panel.styles.d.ts.map +1 -0
  14. package/dist/dts/components/configurations-panel/configurations-panel.template.d.ts +3 -0
  15. package/dist/dts/components/configurations-panel/configurations-panel.template.d.ts.map +1 -0
  16. package/dist/dts/components/reconciliations-panel/reconciliations-panel.d.ts +4 -0
  17. package/dist/dts/components/reconciliations-panel/reconciliations-panel.d.ts.map +1 -0
  18. package/dist/dts/components/reconciliations-panel/reconciliations-panel.styles.d.ts +2 -0
  19. package/dist/dts/components/reconciliations-panel/reconciliations-panel.styles.d.ts.map +1 -0
  20. package/dist/dts/components/reconciliations-panel/reconciliations-panel.template.d.ts +3 -0
  21. package/dist/dts/components/reconciliations-panel/reconciliations-panel.template.d.ts.map +1 -0
  22. package/dist/dts/index.d.ts +1 -1
  23. package/dist/dts/index.d.ts.map +1 -1
  24. package/dist/dts/main/index.d.ts +1 -0
  25. package/dist/dts/main/index.d.ts.map +1 -1
  26. package/dist/dts/main/main.d.ts +2 -338
  27. package/dist/dts/main/main.d.ts.map +1 -1
  28. package/dist/dts/main/main.styles.d.ts +1 -2
  29. package/dist/dts/main/main.styles.d.ts.map +1 -1
  30. package/dist/dts/main/main.template.d.ts +2 -5
  31. package/dist/dts/main/main.template.d.ts.map +1 -1
  32. package/dist/esm/components/components.js +26 -29
  33. package/dist/esm/components/components.js.map +1 -1
  34. package/dist/esm/components/configurations-panel/configurations-panel.js +17 -0
  35. package/dist/esm/components/configurations-panel/configurations-panel.js.map +1 -0
  36. package/dist/esm/components/configurations-panel/configurations-panel.styles.js +63 -0
  37. package/dist/esm/components/configurations-panel/configurations-panel.styles.js.map +1 -0
  38. package/dist/esm/components/configurations-panel/configurations-panel.template.js +33 -0
  39. package/dist/esm/components/configurations-panel/configurations-panel.template.js.map +1 -0
  40. package/dist/esm/components/reconciliations-panel/reconciliations-panel.js +15 -0
  41. package/dist/esm/components/reconciliations-panel/reconciliations-panel.js.map +1 -0
  42. package/dist/esm/components/reconciliations-panel/reconciliations-panel.styles.js +4 -0
  43. package/dist/esm/components/reconciliations-panel/reconciliations-panel.styles.js.map +1 -0
  44. package/dist/esm/components/reconciliations-panel/reconciliations-panel.template.js +6 -0
  45. package/dist/esm/components/reconciliations-panel/reconciliations-panel.template.js.map +1 -0
  46. package/dist/esm/index.js +1 -1
  47. package/dist/esm/index.js.map +1 -1
  48. package/dist/esm/main/index.js +1 -0
  49. package/dist/esm/main/index.js.map +1 -1
  50. package/dist/esm/main/main.js +13 -91
  51. package/dist/esm/main/main.js.map +1 -1
  52. package/dist/esm/main/main.styles.js +5 -18
  53. package/dist/esm/main/main.styles.js.map +1 -1
  54. package/dist/esm/main/main.template.js +16 -18
  55. package/dist/esm/main/main.template.js.map +1 -1
  56. package/package.json +1 -1
  57. package/src/components/components.ts +40 -63
  58. package/src/components/configurations-panel/configurations-panel.styles.ts +65 -0
  59. package/src/components/configurations-panel/configurations-panel.template.ts +34 -0
  60. package/src/components/configurations-panel/configurations-panel.ts +14 -0
  61. package/src/components/reconciliations-panel/reconciliations-panel.styles.ts +4 -0
  62. package/src/components/reconciliations-panel/reconciliations-panel.template.ts +7 -0
  63. package/src/components/reconciliations-panel/reconciliations-panel.ts +11 -0
  64. package/src/index.ts +1 -1
  65. package/src/main/index.ts +1 -0
  66. package/src/main/main.styles.ts +8 -18
  67. package/src/main/main.template.ts +19 -21
  68. package/src/main/main.ts +15 -124
  69. package/src/typings.d.ts +0 -4
  70. package/test/unit/configurations-panel.test.ts +15 -0
  71. package/test/unit/main.test.ts +20 -0
  72. package/test/unit/reconciliations-panel.test.ts +15 -0
  73. package/dist/dts/components/index.d.ts +0 -2
  74. package/dist/dts/components/index.d.ts.map +0 -1
  75. package/dist/dts/layouts/default.d.ts +0 -4
  76. package/dist/dts/layouts/default.d.ts.map +0 -1
  77. package/dist/dts/layouts/index.d.ts +0 -2
  78. package/dist/dts/layouts/index.d.ts.map +0 -1
  79. package/dist/dts/routes/config.d.ts +0 -11
  80. package/dist/dts/routes/config.d.ts.map +0 -1
  81. package/dist/dts/routes/home/home.d.ts +0 -5
  82. package/dist/dts/routes/home/home.d.ts.map +0 -1
  83. package/dist/dts/routes/home/home.styles.d.ts +0 -2
  84. package/dist/dts/routes/home/home.styles.d.ts.map +0 -1
  85. package/dist/dts/routes/home/home.template.d.ts +0 -3
  86. package/dist/dts/routes/home/home.template.d.ts.map +0 -1
  87. package/dist/dts/routes/index.d.ts +0 -2
  88. package/dist/dts/routes/index.d.ts.map +0 -1
  89. package/dist/dts/routes/not-found/not-found.d.ts +0 -5
  90. package/dist/dts/routes/not-found/not-found.d.ts.map +0 -1
  91. package/dist/dts/routes/not-found/not-found.styles.d.ts +0 -2
  92. package/dist/dts/routes/not-found/not-found.styles.d.ts.map +0 -1
  93. package/dist/dts/routes/not-found/not-found.template.d.ts +0 -3
  94. package/dist/dts/routes/not-found/not-found.template.d.ts.map +0 -1
  95. package/dist/dts/store/index.d.ts +0 -2
  96. package/dist/dts/store/index.d.ts.map +0 -1
  97. package/dist/dts/store/store.d.ts +0 -11
  98. package/dist/dts/store/store.d.ts.map +0 -1
  99. package/dist/dts/styles/index.d.ts +0 -3
  100. package/dist/dts/styles/index.d.ts.map +0 -1
  101. package/dist/dts/styles/styles.d.ts +0 -5
  102. package/dist/dts/styles/styles.d.ts.map +0 -1
  103. package/dist/dts/styles/typography.d.ts +0 -4
  104. package/dist/dts/styles/typography.d.ts.map +0 -1
  105. package/dist/dts/types.d.ts +0 -3
  106. package/dist/dts/types.d.ts.map +0 -1
  107. package/dist/esm/components/index.js +0 -2
  108. package/dist/esm/components/index.js.map +0 -1
  109. package/dist/esm/layouts/default.js +0 -139
  110. package/dist/esm/layouts/default.js.map +0 -1
  111. package/dist/esm/layouts/index.js +0 -2
  112. package/dist/esm/layouts/index.js.map +0 -1
  113. package/dist/esm/main/main.css +0 -17
  114. package/dist/esm/routes/config.js +0 -89
  115. package/dist/esm/routes/config.js.map +0 -1
  116. package/dist/esm/routes/home/home.js +0 -18
  117. package/dist/esm/routes/home/home.js.map +0 -1
  118. package/dist/esm/routes/home/home.styles.js +0 -7
  119. package/dist/esm/routes/home/home.styles.js.map +0 -1
  120. package/dist/esm/routes/home/home.template.js +0 -6
  121. package/dist/esm/routes/home/home.template.js.map +0 -1
  122. package/dist/esm/routes/index.js +0 -2
  123. package/dist/esm/routes/index.js.map +0 -1
  124. package/dist/esm/routes/not-found/not-found.js +0 -20
  125. package/dist/esm/routes/not-found/not-found.js.map +0 -1
  126. package/dist/esm/routes/not-found/not-found.styles.js +0 -11
  127. package/dist/esm/routes/not-found/not-found.styles.js.map +0 -1
  128. package/dist/esm/routes/not-found/not-found.template.js +0 -5
  129. package/dist/esm/routes/not-found/not-found.template.js.map +0 -1
  130. package/dist/esm/store/index.js +0 -2
  131. package/dist/esm/store/index.js.map +0 -1
  132. package/dist/esm/store/store.js +0 -10
  133. package/dist/esm/store/store.js.map +0 -1
  134. package/dist/esm/styles/design-tokens.json +0 -56
  135. package/dist/esm/styles/index.js +0 -3
  136. package/dist/esm/styles/index.js.map +0 -1
  137. package/dist/esm/styles/styles.js +0 -24
  138. package/dist/esm/styles/styles.js.map +0 -1
  139. package/dist/esm/styles/typography.js +0 -23
  140. package/dist/esm/styles/typography.js.map +0 -1
  141. package/dist/esm/types.js +0 -4
  142. package/dist/esm/types.js.map +0 -1
  143. package/src/components/index.ts +0 -1
  144. package/src/layouts/default.ts +0 -152
  145. package/src/layouts/index.ts +0 -1
  146. package/src/main/main.css +0 -17
  147. package/src/pbc/README.md +0 -8
  148. package/src/routes/config.ts +0 -135
  149. package/src/routes/home/home.styles.ts +0 -7
  150. package/src/routes/home/home.template.ts +0 -7
  151. package/src/routes/home/home.ts +0 -14
  152. package/src/routes/index.ts +0 -1
  153. package/src/routes/not-found/not-found.styles.ts +0 -11
  154. package/src/routes/not-found/not-found.template.ts +0 -6
  155. package/src/routes/not-found/not-found.ts +0 -16
  156. package/src/store/index.ts +0 -1
  157. package/src/store/store.ts +0 -29
  158. package/src/styles/design-tokens.json +0 -56
  159. package/src/styles/index.ts +0 -2
  160. package/src/styles/styles.ts +0 -30
  161. package/src/styles/typography.ts +0 -25
  162. package/src/types.ts +0 -5
  163. package/test/unit/sample.test.ts +0 -14
@@ -0,0 +1,63 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ const allConfigurations = css `
3
+ .all-configurations {
4
+ border-right: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
5
+ display: flex;
6
+ flex-direction: column;
7
+ }
8
+
9
+ .title {
10
+ width: max-content;
11
+ }
12
+ `;
13
+ const configuration = css `
14
+ .configuration {
15
+ display: flex;
16
+ flex-direction: column;
17
+ width: 100%;
18
+ }
19
+
20
+ .configuration-content {
21
+ display: flex;
22
+ height: 100%;
23
+ }
24
+
25
+ .configuration-name-and-data-sources {
26
+ display: flex;
27
+ flex-direction: column;
28
+ border-right: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
29
+ }
30
+
31
+ .reconciliation-rules {
32
+ display: flex;
33
+ width: 100%;
34
+ }
35
+
36
+ .configuration-footer {
37
+ display: flex;
38
+ flex-direction: row-reverse;
39
+ border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
40
+ padding: calc(var(--design-unit) * 2px);
41
+ }
42
+ `;
43
+ export const ConfigurationsPanelStyles = css `
44
+ :host {
45
+ display: flex;
46
+ height: 100%;
47
+ width: 100%;
48
+ }
49
+
50
+ .configurations-panel {
51
+ display: flex;
52
+ flex-direction: row;
53
+ width: 100%;
54
+ }
55
+
56
+ ${allConfigurations}
57
+ ${configuration}
58
+
59
+ zero-button {
60
+ margin: 0;
61
+ }
62
+ `;
63
+ //# sourceMappingURL=configurations-panel.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurations-panel.styles.js","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAE9C,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;;;;;;;CAU5B,CAAC;AAEF,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BxB,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAA;;;;;;;;;;;;;IAaxC,iBAAiB;IACjB,aAAa;;;;;CAKhB,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { html } from '@microsoft/fast-element';
2
+ export const ConfigurationsPanelTemplate = html `
3
+ <div class="configurations-panel">
4
+ <div class="all-configurations">
5
+ <div class="title">
6
+ All Configurations
7
+ </div>
8
+ </div>
9
+
10
+ <div class="configuration">
11
+ <div class="configuration-content">
12
+ <div class="configuration-name-and-data-sources">
13
+ <div class="configuration-name">
14
+ Configuration Name
15
+ </div>
16
+
17
+ <div class="data-sources">
18
+ Data Sources
19
+ </div>
20
+ </div>
21
+
22
+ <div class="reconciliation-rules">
23
+ Reconciliation Rules
24
+ </div>
25
+ </div>
26
+
27
+ <div class="configuration-footer">
28
+ <zero-button appearance="accent" @click=${(x) => x.submit()}>Submit</zero-button>
29
+ </div>
30
+ </div>
31
+ </div>
32
+ `;
33
+ //# sourceMappingURL=configurations-panel.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configurations-panel.template.js","sourceRoot":"","sources":["../../../../src/components/configurations-panel/configurations-panel.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;kDA0BlB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE;;;;CAIlE,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { __decorate } from "tslib";
2
+ import { FASTElement, customElement } from '@microsoft/fast-element';
3
+ import { ReconciliationsPanelTemplate } from './reconciliations-panel.template';
4
+ import { ReconciliationsPanelStyles } from './reconciliations-panel.styles';
5
+ let ReconciliationsPanel = class ReconciliationsPanel extends FASTElement {
6
+ };
7
+ ReconciliationsPanel = __decorate([
8
+ customElement({
9
+ name: 'reconciliations-panel',
10
+ template: ReconciliationsPanelTemplate,
11
+ styles: ReconciliationsPanelStyles,
12
+ })
13
+ ], ReconciliationsPanel);
14
+ export { ReconciliationsPanel };
15
+ //# sourceMappingURL=reconciliations-panel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reconciliations-panel.js","sourceRoot":"","sources":["../../../../src/components/reconciliations-panel/reconciliations-panel.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,4BAA4B,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAOrE,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,WAAW;CACpD,CAAA;AADY,oBAAoB;IALhC,aAAa,CAAC;QACb,IAAI,EAAE,uBAAuB;QAC7B,QAAQ,EAAE,4BAA4B;QACtC,MAAM,EAAE,0BAA0B;KACnC,CAAC;GACW,oBAAoB,CAChC;SADY,oBAAoB"}
@@ -0,0 +1,4 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ export const ReconciliationsPanelStyles = css `
3
+ `;
4
+ //# sourceMappingURL=reconciliations-panel.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reconciliations-panel.styles.js","sourceRoot":"","sources":["../../../../src/components/reconciliations-panel/reconciliations-panel.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAE9C,MAAM,CAAC,MAAM,0BAA0B,GAAG,GAAG,CAAA;CAC5C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { html } from '@microsoft/fast-element';
2
+ export const ReconciliationsPanelTemplate = html `
3
+ <div class="reconciliations-panel">
4
+ </div>
5
+ `;
6
+ //# sourceMappingURL=reconciliations-panel.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reconciliations-panel.template.js","sourceRoot":"","sources":["../../../../src/components/reconciliations-panel/reconciliations-panel.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAG/C,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAsB;;;CAGrE,CAAC"}
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from './main/index';
1
+ export * from './main';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export * from './main.template';
2
+ export * from './main.styles';
2
3
  export * from './main';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/main/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/main/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
@@ -1,116 +1,38 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
- import { Connect, ConnectConfig, defaultConnectConfig } from '@genesislcap/foundation-comms';
3
- import { EventEmitter } from '@genesislcap/foundation-events';
4
- import { App } from '@genesislcap/foundation-shell/app';
5
- import { importPBCAssets } from '@genesislcap/foundation-shell/pbc';
6
- import { configureDesignSystem } from '@genesislcap/foundation-ui';
7
- import { baseLayerLuminance, StandardLuminance } from '@microsoft/fast-components';
8
- import { FASTElement, customElement, observable, DOM } from '@microsoft/fast-element';
9
- import { Container, inject, Registration } from '@microsoft/fast-foundation';
10
- import { DefaultRouteRecognizer } from '@microsoft/fast-router';
11
- import * as Components from '../components';
12
- import { MainRouterConfig } from '../routes';
13
- import { Store } from '../store';
14
- import designTokens from '../styles/design-tokens.json';
15
- import { MainStyles as styles } from './main.styles';
16
- import { DynamicTemplate as template, LoadingTemplate, MainTemplate } from './main.template';
17
- const name = 'reconciliation-root';
18
- let MainApplication = class MainApplication extends EventEmitter(FASTElement) {
2
+ import { FASTElement, customElement, observable } from '@microsoft/fast-element';
3
+ import { FoundationReconciliationTemplate } from './main.template';
4
+ import { FoundationReconciliationStyles } from './main.styles';
5
+ import { loadRemotes } from '../components/components';
6
+ let FoundationReconciliation = class FoundationReconciliation extends FASTElement {
19
7
  constructor() {
20
8
  super(...arguments);
21
9
  this.ready = false;
22
- this.data = null;
23
10
  }
24
11
  connectedCallback() {
25
12
  const _super = Object.create(null, {
26
13
  connectedCallback: { get: () => super.connectedCallback }
27
14
  });
28
15
  return __awaiter(this, void 0, void 0, function* () {
29
- this.registerDIDependencies();
30
16
  _super.connectedCallback.call(this);
31
- this.addEventListeners();
32
- this.readyStore();
33
- yield this.loadPBCs();
34
17
  yield this.loadRemotes();
35
- DOM.queueUpdate(() => {
36
- configureDesignSystem(this.provider, designTokens);
37
- });
38
- });
39
- }
40
- disconnectedCallback() {
41
- super.disconnectedCallback();
42
- this.removeEventListeners();
43
- this.disconnectStore();
44
- }
45
- onDarkModeToggle() {
46
- baseLayerLuminance.setValueFor(this.provider, baseLayerLuminance.getValueFor(this.provider) === StandardLuminance.DarkMode
47
- ? StandardLuminance.LightMode
48
- : StandardLuminance.DarkMode);
49
- }
50
- loadPBCs() {
51
- return __awaiter(this, void 0, void 0, function* () {
52
- const pbcAssets = yield importPBCAssets();
53
- this.app.registerAssets(pbcAssets);
54
- this.app.registerRouteCollection(this.config.routes);
55
18
  });
56
19
  }
57
20
  loadRemotes() {
58
21
  return __awaiter(this, void 0, void 0, function* () {
59
- const { registerComponents } = Components;
60
- yield registerComponents();
22
+ const remoteComponents = yield loadRemotes();
61
23
  this.ready = true;
62
24
  });
63
25
  }
64
- selectTemplate() {
65
- return this.ready ? MainTemplate : LoadingTemplate;
66
- }
67
- registerDIDependencies() {
68
- this.container.register(Registration.transient(DefaultRouteRecognizer, DefaultRouteRecognizer), Registration.instance(ConnectConfig, Object.assign(Object.assign({}, defaultConnectConfig), { connect: Object.assign(Object.assign({}, defaultConnectConfig.connect), { heartbeatInterval: 15000 }) })));
69
- }
70
- addEventListeners() {
71
- this.addEventListener('store-connected', this.store.onConnected);
72
- }
73
- removeEventListeners() {
74
- this.removeEventListener('store-connected', this.store.onConnected);
75
- }
76
- readyStore() {
77
- this.$emit('store-connected', this);
78
- this.$emit('store-ready', true);
79
- }
80
- disconnectStore() {
81
- this.$emit('store-disconnected');
82
- }
83
26
  };
84
- __decorate([
85
- App
86
- ], MainApplication.prototype, "app", void 0);
87
- __decorate([
88
- Connect
89
- ], MainApplication.prototype, "connect", void 0);
90
- __decorate([
91
- Container
92
- ], MainApplication.prototype, "container", void 0);
93
- __decorate([
94
- Store
95
- ], MainApplication.prototype, "store", void 0);
96
- __decorate([
97
- inject(MainRouterConfig)
98
- ], MainApplication.prototype, "config", void 0);
99
- __decorate([
100
- observable
101
- ], MainApplication.prototype, "provider", void 0);
102
- __decorate([
103
- observable
104
- ], MainApplication.prototype, "ready", void 0);
105
27
  __decorate([
106
28
  observable
107
- ], MainApplication.prototype, "data", void 0);
108
- MainApplication = __decorate([
29
+ ], FoundationReconciliation.prototype, "ready", void 0);
30
+ FoundationReconciliation = __decorate([
109
31
  customElement({
110
- name,
111
- template,
112
- styles,
32
+ name: 'foundation-reconciliation',
33
+ template: FoundationReconciliationTemplate,
34
+ styles: FoundationReconciliationStyles,
113
35
  })
114
- ], MainApplication);
115
- export { MainApplication };
36
+ ], FoundationReconciliation);
37
+ export { FoundationReconciliation };
116
38
  //# sourceMappingURL=main.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,MAAM,mCAAmC,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,sBA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B;KACvC,CAAC;GACW,wBAAwB,CAiBpC;SAjBY,wBAAwB"}
@@ -1,22 +1,9 @@
1
- import { getApp } from '@genesislcap/foundation-shell/app';
2
1
  import { css } from '@microsoft/fast-element';
3
- import { stylesFontFaces } from '../styles';
4
- import './main.css';
5
- export const MainStyles = css `
6
- ${stylesFontFaces}
7
- :host {
8
- contain: content;
9
-
10
- --nav-height: 60px;
11
- }
12
-
13
- :host,
14
- zero-design-system-provider,
15
- .dynamic-template,
16
- foundation-router {
17
- display: flex;
18
- width: 100%;
2
+ export const FoundationReconciliationStyles = css `
3
+ .reconciliation,
4
+ zero-tabs,
5
+ zero-tab-panel {
19
6
  height: 100%;
20
7
  }
21
- `.withBehaviors(getApp().registerStylesTarget('main'));
8
+ `;
22
9
  //# sourceMappingURL=main.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.styles.js","sourceRoot":"","sources":["../../../src/main/main.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;IACzB,eAAe;;;;;;;;;;;;;;;CAelB,CAAC,aAAa,CAAC,MAAM,EAAE,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"main.styles.js","sourceRoot":"","sources":["../../../src/main/main.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAK9C,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAG,CAAA;;;;;;CAMhD,CAAC"}
@@ -1,20 +1,18 @@
1
- import { LAYOUT_POPOUT_CONTAINER_CLASS } from '@genesislcap/foundation-layout';
2
- import { html, ref } from '@microsoft/fast-element';
3
- export const DynamicTemplate = html `
4
- <template>
5
- <zero-design-system-provider ${ref('provider')} class="${LAYOUT_POPOUT_CONTAINER_CLASS}">
6
- <div class="dynamic-template">${(x) => x.selectTemplate()}</div>
7
- </zero-design-system-provider>
8
- </template>
9
- `;
10
- export const LoadingTemplate = html `
11
- <zero-progress-ring></zero-progress-ring>
12
- `;
13
- export const MainTemplate = html `
14
- <foundation-router
15
- @luminance-icon-clicked=${(x) => x.onDarkModeToggle()}
16
- :config=${(x) => x.config}
17
- :store=${(x) => x.store}
18
- ></foundation-router>
1
+ import { html } from '@microsoft/fast-element';
2
+ export const FoundationReconciliationTemplate = html `
3
+ <div class="reconciliation">
4
+ <zero-tabs appearance="secondary" class="tabs">
5
+ <zero-tab appearance="secondary" slot="configurations-tab">Configurations</zero-tab>
6
+ <zero-tab appearance="secondary" slot="reconciliations-tab">Reconciliations</zero-tab>
7
+
8
+ <zero-tab-panel slot="configurations-tab" id="configurations-tab-panel">
9
+ <configurations-panel></configurations-panel>
10
+ </zero-tab-panel>
11
+
12
+ <zero-tab-panel slot="reconciliations-tab" id="reconciliations-tab-panel">
13
+ <reconciliations-panel></reconciliations-panel>
14
+ </zero-tab-panel>
15
+ </zero-tabs>
16
+ </div>
19
17
  `;
20
18
  //# sourceMappingURL=main.template.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.template.js","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAIpD,MAAM,CAAC,MAAM,eAAe,GAAkC,IAAI,CAAA;;mCAE/B,GAAG,CAAC,UAAU,CAAC,WAAW,6BAA6B;sCACpD,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE;;;CAG9D,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAkC,IAAI,CAAA;;CAEjE,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAkC,IAAI,CAAA;;8BAEjC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,gBAAgB,EAAE;cAC3C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM;aAChB,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK;;CAE1B,CAAC"}
1
+ {"version":3,"file":"main.template.js","sourceRoot":"","sources":["../../../src/main/main.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAM/C,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,CAA0B;;;;;;;;;;;;;;;CAe7E,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/pbc-reconciliation-ui",
3
3
  "description": "Genesis PBC reconciliation UI",
4
- "version": "0.0.2",
4
+ "version": "0.0.3",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/reconciliation.d.ts",
@@ -1,75 +1,52 @@
1
- import { EntityManagement } from '@genesislcap/foundation-entity-management';
2
- import { Form } from '@genesislcap/foundation-forms';
3
- import { Navigation } from '@genesislcap/foundation-header';
4
1
  import { foundationLayoutComponents } from '@genesislcap/foundation-layout';
5
- import { getApp } from '@genesislcap/foundation-shell/app';
6
- import { FoundationRouter } from '@genesislcap/foundation-ui';
7
- import {
8
- assureDesignSystem,
9
- DesignSystemModule,
10
- ResourceType,
11
- } from '@genesislcap/foundation-utils';
12
- import { zeroGridComponents } from '@genesislcap/foundation-zero-grid-pro';
13
- import { g2plotChartsComponents } from '@genesislcap/g2plot-chart';
14
2
  import { logger } from '../utils';
3
+ import { ConfigurationsPanel } from './configurations-panel/configurations-panel';
4
+ import { ReconciliationsPanel } from './reconciliations-panel/reconciliations-panel';
5
+ import { allComponents, provideFASTDesignSystem } from '@microsoft/fast-components';
6
+ import { zeroDesignSystemProvider } from '@genesislcap/foundation-zero';
15
7
 
16
- /**
17
- * Ensure tree shaking doesn't remove these.
18
- */
19
- FoundationRouter;
20
- Navigation;
21
- EntityManagement;
22
- Form;
8
+ // Components
9
+ ConfigurationsPanel;
10
+ ReconciliationsPanel;
23
11
 
24
- /**
25
- * zeroDesignSystemImport.
26
- * @remarks
27
- * Attempts to use a module federation version of zero before falling back to the version that was bundled with the app.
28
- * @internal
29
- */
30
- async function zeroDesignSystemImport(): Promise<DesignSystemModule> {
31
- let module: DesignSystemModule;
32
- let type: ResourceType = ResourceType.remote;
12
+ enum ResourceType {
13
+ LOCAL = 'LOCAL',
14
+ REMOTE = 'REMOTE',
15
+ }
16
+
17
+ // TODO: Think about sharing import functions across micro frontends.
18
+ function loadZeroFallback() {
19
+ return import(
20
+ /* webpackMode: "lazy" */
21
+ '@genesislcap/foundation-zero'
22
+ );
23
+ }
24
+
25
+ // Granular
26
+ async function loadZeroDesignSystem() {
27
+ let type = ResourceType.REMOTE;
33
28
  try {
34
- module = await import(
35
- /* webpackChunkName: "foundation-zero" */
36
- 'foundationZero/ZeroDesignSystem'
37
- );
38
- return assureDesignSystem(module);
29
+ return await import('foundationZero/ZeroDesignSystem');
39
30
  } catch (e) {
40
- logger.info(
41
- `Please note remoteEntry.js load errors are expected if module federated dependencies are offline. Falling back to locally bundled versions.`,
42
- );
43
- type = ResourceType.local;
44
- module = await import(
45
- /* webpackChunkName: "foundation-zero" */
46
- '@genesislcap/foundation-zero'
47
- );
48
- return assureDesignSystem(module);
31
+ type = ResourceType.LOCAL;
32
+ return await loadZeroFallback();
49
33
  } finally {
50
- logger.debug(`Using '${type}' version of foundation-zero`);
34
+ logger.debug(`Using '${type}' version of foundationZero/ZeroDesignSystem`);
51
35
  }
52
36
  }
53
37
 
54
- /**
55
- * registerComponents.
56
- * @public
57
- */
58
- export async function registerComponents() {
59
- const designSystem = await zeroDesignSystemImport();
60
- const { provideDesignSystem, baseComponents } = designSystem;
61
-
62
- /**
63
- * Register any PBC components with the design system
64
- */
65
- getApp().registerComponents({
66
- designSystem,
67
- });
38
+ export async function loadRemotes() {
39
+ const { registerZeroDesignSystem, provideDesignSystem } = await loadZeroDesignSystem();
68
40
 
69
- provideDesignSystem().register(
70
- baseComponents,
71
- zeroGridComponents,
72
- g2plotChartsComponents,
73
- foundationLayoutComponents,
74
- );
41
+ return {
42
+ ZeroDesignSystem: {
43
+ ...registerZeroDesignSystem(),
44
+ ...provideDesignSystem().register(foundationLayoutComponents),
45
+ },
46
+ };
75
47
  }
48
+
49
+ provideFASTDesignSystem().register(
50
+ allComponents,
51
+ zeroDesignSystemProvider()
52
+ );
@@ -0,0 +1,65 @@
1
+ import { css } from '@microsoft/fast-element';
2
+
3
+ const allConfigurations = css`
4
+ .all-configurations {
5
+ border-right: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
6
+ display: flex;
7
+ flex-direction: column;
8
+ }
9
+
10
+ .title {
11
+ width: max-content;
12
+ }
13
+ `;
14
+
15
+ const configuration = css`
16
+ .configuration {
17
+ display: flex;
18
+ flex-direction: column;
19
+ width: 100%;
20
+ }
21
+
22
+ .configuration-content {
23
+ display: flex;
24
+ height: 100%;
25
+ }
26
+
27
+ .configuration-name-and-data-sources {
28
+ display: flex;
29
+ flex-direction: column;
30
+ border-right: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
31
+ }
32
+
33
+ .reconciliation-rules {
34
+ display: flex;
35
+ width: 100%;
36
+ }
37
+
38
+ .configuration-footer {
39
+ display: flex;
40
+ flex-direction: row-reverse;
41
+ border-top: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-divider-rest);
42
+ padding: calc(var(--design-unit) * 2px);
43
+ }
44
+ `;
45
+
46
+ export const ConfigurationsPanelStyles = css`
47
+ :host {
48
+ display: flex;
49
+ height: 100%;
50
+ width: 100%;
51
+ }
52
+
53
+ .configurations-panel {
54
+ display: flex;
55
+ flex-direction: row;
56
+ width: 100%;
57
+ }
58
+
59
+ ${allConfigurations}
60
+ ${configuration}
61
+
62
+ zero-button {
63
+ margin: 0;
64
+ }
65
+ `;
@@ -0,0 +1,34 @@
1
+ import { html } from '@microsoft/fast-element';
2
+ import { ConfigurationsPanel } from './configurations-panel';
3
+
4
+ export const ConfigurationsPanelTemplate = html<ConfigurationsPanel>`
5
+ <div class="configurations-panel">
6
+ <div class="all-configurations">
7
+ <div class="title">
8
+ All Configurations
9
+ </div>
10
+ </div>
11
+
12
+ <div class="configuration">
13
+ <div class="configuration-content">
14
+ <div class="configuration-name-and-data-sources">
15
+ <div class="configuration-name">
16
+ Configuration Name
17
+ </div>
18
+
19
+ <div class="data-sources">
20
+ Data Sources
21
+ </div>
22
+ </div>
23
+
24
+ <div class="reconciliation-rules">
25
+ Reconciliation Rules
26
+ </div>
27
+ </div>
28
+
29
+ <div class="configuration-footer">
30
+ <zero-button appearance="accent" @click=${(x) => x.submit()}>Submit</zero-button>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ `;
@@ -0,0 +1,14 @@
1
+ import { FASTElement, customElement } from '@microsoft/fast-element';
2
+ import { ConfigurationsPanelTemplate } from './configurations-panel.template';
3
+ import { ConfigurationsPanelStyles } from './configurations-panel.styles';
4
+
5
+ @customElement({
6
+ name: 'configurations-panel',
7
+ template: ConfigurationsPanelTemplate,
8
+ styles: ConfigurationsPanelStyles,
9
+ })
10
+ export class ConfigurationsPanel extends FASTElement {
11
+
12
+ submit() {
13
+ }
14
+ }
@@ -0,0 +1,4 @@
1
+ import { css } from '@microsoft/fast-element';
2
+
3
+ export const ReconciliationsPanelStyles = css`
4
+ `;
@@ -0,0 +1,7 @@
1
+ import { html } from '@microsoft/fast-element';
2
+ import { ReconciliationsPanel } from './reconciliations-panel';
3
+
4
+ export const ReconciliationsPanelTemplate = html<ReconciliationsPanel>`
5
+ <div class="reconciliations-panel">
6
+ </div>
7
+ `;