@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.
- package/.gradle/8.3/executionHistory/executionHistory.bin +0 -0
- package/.gradle/8.3/executionHistory/executionHistory.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/.gradle/file-system.probe +0 -0
- package/build/distributions/web-distribution.tar +0 -0
- package/build/distributions/web-distribution.zip +0 -0
- package/dist/dts/components/components.d.ts +3 -1
- package/dist/dts/components/components.d.ts.map +1 -1
- package/dist/dts/components/configurations-panel/configurations-panel.d.ts +5 -0
- package/dist/dts/components/configurations-panel/configurations-panel.d.ts.map +1 -0
- package/dist/dts/components/configurations-panel/configurations-panel.styles.d.ts +2 -0
- package/dist/dts/components/configurations-panel/configurations-panel.styles.d.ts.map +1 -0
- package/dist/dts/components/configurations-panel/configurations-panel.template.d.ts +3 -0
- package/dist/dts/components/configurations-panel/configurations-panel.template.d.ts.map +1 -0
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.d.ts +4 -0
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.d.ts.map +1 -0
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.styles.d.ts +2 -0
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.styles.d.ts.map +1 -0
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.template.d.ts +3 -0
- package/dist/dts/components/reconciliations-panel/reconciliations-panel.template.d.ts.map +1 -0
- package/dist/dts/index.d.ts +1 -1
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/main/index.d.ts +1 -0
- package/dist/dts/main/index.d.ts.map +1 -1
- package/dist/dts/main/main.d.ts +2 -338
- package/dist/dts/main/main.d.ts.map +1 -1
- package/dist/dts/main/main.styles.d.ts +1 -2
- package/dist/dts/main/main.styles.d.ts.map +1 -1
- package/dist/dts/main/main.template.d.ts +2 -5
- package/dist/dts/main/main.template.d.ts.map +1 -1
- package/dist/esm/components/components.js +26 -29
- package/dist/esm/components/components.js.map +1 -1
- package/dist/esm/components/configurations-panel/configurations-panel.js +17 -0
- package/dist/esm/components/configurations-panel/configurations-panel.js.map +1 -0
- package/dist/esm/components/configurations-panel/configurations-panel.styles.js +63 -0
- package/dist/esm/components/configurations-panel/configurations-panel.styles.js.map +1 -0
- package/dist/esm/components/configurations-panel/configurations-panel.template.js +33 -0
- package/dist/esm/components/configurations-panel/configurations-panel.template.js.map +1 -0
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.js +15 -0
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.js.map +1 -0
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.styles.js +4 -0
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.styles.js.map +1 -0
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.template.js +6 -0
- package/dist/esm/components/reconciliations-panel/reconciliations-panel.template.js.map +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/main/index.js +1 -0
- package/dist/esm/main/index.js.map +1 -1
- package/dist/esm/main/main.js +13 -91
- package/dist/esm/main/main.js.map +1 -1
- package/dist/esm/main/main.styles.js +5 -18
- package/dist/esm/main/main.styles.js.map +1 -1
- package/dist/esm/main/main.template.js +16 -18
- package/dist/esm/main/main.template.js.map +1 -1
- package/package.json +1 -1
- package/src/components/components.ts +40 -63
- package/src/components/configurations-panel/configurations-panel.styles.ts +65 -0
- package/src/components/configurations-panel/configurations-panel.template.ts +34 -0
- package/src/components/configurations-panel/configurations-panel.ts +14 -0
- package/src/components/reconciliations-panel/reconciliations-panel.styles.ts +4 -0
- package/src/components/reconciliations-panel/reconciliations-panel.template.ts +7 -0
- package/src/components/reconciliations-panel/reconciliations-panel.ts +11 -0
- package/src/index.ts +1 -1
- package/src/main/index.ts +1 -0
- package/src/main/main.styles.ts +8 -18
- package/src/main/main.template.ts +19 -21
- package/src/main/main.ts +15 -124
- package/src/typings.d.ts +0 -4
- package/test/unit/configurations-panel.test.ts +15 -0
- package/test/unit/main.test.ts +20 -0
- package/test/unit/reconciliations-panel.test.ts +15 -0
- package/dist/dts/components/index.d.ts +0 -2
- package/dist/dts/components/index.d.ts.map +0 -1
- package/dist/dts/layouts/default.d.ts +0 -4
- package/dist/dts/layouts/default.d.ts.map +0 -1
- package/dist/dts/layouts/index.d.ts +0 -2
- package/dist/dts/layouts/index.d.ts.map +0 -1
- package/dist/dts/routes/config.d.ts +0 -11
- package/dist/dts/routes/config.d.ts.map +0 -1
- package/dist/dts/routes/home/home.d.ts +0 -5
- package/dist/dts/routes/home/home.d.ts.map +0 -1
- package/dist/dts/routes/home/home.styles.d.ts +0 -2
- package/dist/dts/routes/home/home.styles.d.ts.map +0 -1
- package/dist/dts/routes/home/home.template.d.ts +0 -3
- package/dist/dts/routes/home/home.template.d.ts.map +0 -1
- package/dist/dts/routes/index.d.ts +0 -2
- package/dist/dts/routes/index.d.ts.map +0 -1
- package/dist/dts/routes/not-found/not-found.d.ts +0 -5
- package/dist/dts/routes/not-found/not-found.d.ts.map +0 -1
- package/dist/dts/routes/not-found/not-found.styles.d.ts +0 -2
- package/dist/dts/routes/not-found/not-found.styles.d.ts.map +0 -1
- package/dist/dts/routes/not-found/not-found.template.d.ts +0 -3
- package/dist/dts/routes/not-found/not-found.template.d.ts.map +0 -1
- package/dist/dts/store/index.d.ts +0 -2
- package/dist/dts/store/index.d.ts.map +0 -1
- package/dist/dts/store/store.d.ts +0 -11
- package/dist/dts/store/store.d.ts.map +0 -1
- package/dist/dts/styles/index.d.ts +0 -3
- package/dist/dts/styles/index.d.ts.map +0 -1
- package/dist/dts/styles/styles.d.ts +0 -5
- package/dist/dts/styles/styles.d.ts.map +0 -1
- package/dist/dts/styles/typography.d.ts +0 -4
- package/dist/dts/styles/typography.d.ts.map +0 -1
- package/dist/dts/types.d.ts +0 -3
- package/dist/dts/types.d.ts.map +0 -1
- package/dist/esm/components/index.js +0 -2
- package/dist/esm/components/index.js.map +0 -1
- package/dist/esm/layouts/default.js +0 -139
- package/dist/esm/layouts/default.js.map +0 -1
- package/dist/esm/layouts/index.js +0 -2
- package/dist/esm/layouts/index.js.map +0 -1
- package/dist/esm/main/main.css +0 -17
- package/dist/esm/routes/config.js +0 -89
- package/dist/esm/routes/config.js.map +0 -1
- package/dist/esm/routes/home/home.js +0 -18
- package/dist/esm/routes/home/home.js.map +0 -1
- package/dist/esm/routes/home/home.styles.js +0 -7
- package/dist/esm/routes/home/home.styles.js.map +0 -1
- package/dist/esm/routes/home/home.template.js +0 -6
- package/dist/esm/routes/home/home.template.js.map +0 -1
- package/dist/esm/routes/index.js +0 -2
- package/dist/esm/routes/index.js.map +0 -1
- package/dist/esm/routes/not-found/not-found.js +0 -20
- package/dist/esm/routes/not-found/not-found.js.map +0 -1
- package/dist/esm/routes/not-found/not-found.styles.js +0 -11
- package/dist/esm/routes/not-found/not-found.styles.js.map +0 -1
- package/dist/esm/routes/not-found/not-found.template.js +0 -5
- package/dist/esm/routes/not-found/not-found.template.js.map +0 -1
- package/dist/esm/store/index.js +0 -2
- package/dist/esm/store/index.js.map +0 -1
- package/dist/esm/store/store.js +0 -10
- package/dist/esm/store/store.js.map +0 -1
- package/dist/esm/styles/design-tokens.json +0 -56
- package/dist/esm/styles/index.js +0 -3
- package/dist/esm/styles/index.js.map +0 -1
- package/dist/esm/styles/styles.js +0 -24
- package/dist/esm/styles/styles.js.map +0 -1
- package/dist/esm/styles/typography.js +0 -23
- package/dist/esm/styles/typography.js.map +0 -1
- package/dist/esm/types.js +0 -4
- package/dist/esm/types.js.map +0 -1
- package/src/components/index.ts +0 -1
- package/src/layouts/default.ts +0 -152
- package/src/layouts/index.ts +0 -1
- package/src/main/main.css +0 -17
- package/src/pbc/README.md +0 -8
- package/src/routes/config.ts +0 -135
- package/src/routes/home/home.styles.ts +0 -7
- package/src/routes/home/home.template.ts +0 -7
- package/src/routes/home/home.ts +0 -14
- package/src/routes/index.ts +0 -1
- package/src/routes/not-found/not-found.styles.ts +0 -11
- package/src/routes/not-found/not-found.template.ts +0 -6
- package/src/routes/not-found/not-found.ts +0 -16
- package/src/store/index.ts +0 -1
- package/src/store/store.ts +0 -29
- package/src/styles/design-tokens.json +0 -56
- package/src/styles/index.ts +0 -2
- package/src/styles/styles.ts +0 -30
- package/src/styles/typography.ts +0 -25
- package/src/types.ts +0 -5
- 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 @@
|
|
|
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 @@
|
|
|
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
|
|
1
|
+
export * from './main';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
package/dist/esm/main/index.js
CHANGED
|
@@ -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"}
|
package/dist/esm/main/main.js
CHANGED
|
@@ -1,116 +1,38 @@
|
|
|
1
1
|
import { __awaiter, __decorate } from "tslib";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
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
|
|
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
|
-
],
|
|
108
|
-
|
|
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
|
-
],
|
|
115
|
-
export {
|
|
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,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,gCAAgC,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,8BAA8B,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAUhD,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,WAAW;IAAlD;;QACO,UAAK,GAAY,KAAK,CAAC;IAgBrC,CAAC;IAdO,iBAAiB;;;;;YACrB,OAAM,iBAAiB,YAAG;YAC1B,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;QAC3B,CAAC;KAAA;IAOK,WAAW;;YACf,MAAM,gBAAgB,GAAG,MAAM,WAAW,EAAE,CAAC;YAC7C,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QACpB,CAAC;KAAA;CACF,CAAA;AAhBa;IAAX,UAAU;uDAAwB;AADxB,wBAAwB;IALpC,aAAa,CAAC;QACb,IAAI,EAAE,2BAA2B;QACjC,QAAQ,EAAE,gCAAgC;QAC1C,MAAM,EAAE,8BAA8B;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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
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,
|
|
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 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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,
|
|
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,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
|
-
|
|
18
|
-
|
|
19
|
-
FoundationRouter;
|
|
20
|
-
Navigation;
|
|
21
|
-
EntityManagement;
|
|
22
|
-
Form;
|
|
8
|
+
// Components
|
|
9
|
+
ConfigurationsPanel;
|
|
10
|
+
ReconciliationsPanel;
|
|
23
11
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
|
|
35
|
-
/* webpackChunkName: "foundation-zero" */
|
|
36
|
-
'foundationZero/ZeroDesignSystem'
|
|
37
|
-
);
|
|
38
|
-
return assureDesignSystem(module);
|
|
29
|
+
return await import('foundationZero/ZeroDesignSystem');
|
|
39
30
|
} catch (e) {
|
|
40
|
-
|
|
41
|
-
|
|
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
|
|
34
|
+
logger.debug(`Using '${type}' version of foundationZero/ZeroDesignSystem`);
|
|
51
35
|
}
|
|
52
36
|
}
|
|
53
37
|
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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
|
+
}
|