@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
@@ -1,135 +0,0 @@
1
- import { Auth, Session } from '@genesislcap/foundation-comms';
2
- import {
3
- defaultLoginConfig,
4
- LoginConfig,
5
- Settings as LoginSettings,
6
- } from '@genesislcap/foundation-login';
7
- import { FoundationRouterConfiguration } from '@genesislcap/foundation-ui';
8
- import { optional } from '@microsoft/fast-foundation';
9
- import { Route } from '@microsoft/fast-router';
10
- import { defaultLayout, loginLayout } from '../layouts';
11
- import { NotFound } from './not-found/not-found';
12
- import { Home } from './home/home';
13
-
14
- // eslint-disable-next-line
15
- declare var ENABLE_SSO: string;
16
-
17
- const ssoSettings =
18
- typeof ENABLE_SSO !== 'undefined' && ENABLE_SSO === 'true'
19
- ? {
20
- autoAuth: true,
21
- sso: {
22
- toggled: true,
23
- identityProvidersPath: 'sso/list',
24
- },
25
- }
26
- : {};
27
-
28
- export class MainRouterConfig extends FoundationRouterConfiguration<LoginSettings> {
29
- constructor(
30
- @Auth private auth: Auth,
31
- @Session private session: Session,
32
- @optional(LoginConfig)
33
- private loginConfig: LoginConfig = { ...defaultLoginConfig, autoAuth: true, autoConnect: true },
34
- ) {
35
- super();
36
- }
37
-
38
- async configure() {
39
- this.configureAnalytics();
40
- this.title = 'Blank App Demo';
41
- this.defaultLayout = defaultLayout;
42
-
43
- const authPath = 'login';
44
-
45
- this.routes.map(
46
- { path: '', redirect: authPath },
47
- {
48
- path: authPath,
49
- name: 'login',
50
- title: 'Login',
51
- element: async () => {
52
- const { configure, define } = await import(
53
- /* webpackChunkName: "foundation-login" */
54
- '@genesislcap/foundation-login'
55
- );
56
- configure(this.container, {
57
- autoConnect: true,
58
- defaultRedirectUrl: 'home',
59
- ...ssoSettings,
60
- });
61
- return define({
62
- name: `reconciliation-root-login`,
63
- /**
64
- * You can augment the template and styles here when needed.
65
- */
66
- });
67
- },
68
- layout: loginLayout,
69
- settings: { public: true },
70
- childRouters: true,
71
- },
72
- { path: 'not-found', element: NotFound, title: 'Not Found', name: 'not-found' },
73
- {
74
- path: 'home',
75
- element: Home,
76
- title: 'Home',
77
- name: 'home',
78
- navItems: [
79
- {
80
- title: 'Home',
81
- icon: {
82
- name: 'cog',
83
- variant: 'solid',
84
- },
85
- },
86
- ],
87
- },
88
- );
89
-
90
- /**
91
- * Example of a FallbackRouteDefinition
92
- */
93
- this.routes.fallback(() =>
94
- this.auth.isLoggedIn ? { redirect: 'not-found' } : { redirect: authPath },
95
- );
96
-
97
- /**
98
- * Example of a NavigationContributor
99
- */
100
- this.contributors.push({
101
- navigate: async (phase) => {
102
- const settings = phase.route.settings;
103
-
104
- /**
105
- * If public route don't block
106
- */
107
- if (settings && settings.public) {
108
- return;
109
- }
110
-
111
- /**
112
- * If logged in don't block
113
- */
114
- if (this.auth.isLoggedIn) {
115
- return;
116
- }
117
-
118
- /**
119
- * If allowAutoAuth and session is valid try to connect+auto-login
120
- */
121
- if (this.loginConfig.autoAuth && (await this.auth.reAuthFromSession())) {
122
- return;
123
- }
124
-
125
- /**
126
- * Otherwise route them somewhere, like to a login
127
- */
128
- phase.cancel(() => {
129
- this.session.captureReturnUrl();
130
- Route.name.replace(phase.router, authPath);
131
- });
132
- },
133
- });
134
- }
135
- }
@@ -1,7 +0,0 @@
1
- import { css } from '@microsoft/fast-element';
2
-
3
- export const HomeStyles = css`
4
- :host {
5
- /* insert css styles here */
6
- }
7
- `;
@@ -1,7 +0,0 @@
1
- import { html } from '@microsoft/fast-element';
2
- import type { Home } from './home';
3
-
4
- export const HomeTemplate = html<Home>`
5
- <!-- insert template code here -->
6
- Welcome to Home
7
- `;
@@ -1,14 +0,0 @@
1
- import { customElement, FASTElement } from '@microsoft/fast-element';
2
- import { HomeStyles as styles } from './home.styles';
3
- import { HomeTemplate as template } from './home.template';
4
-
5
- @customElement({
6
- name: 'home-route',
7
- template,
8
- styles,
9
- })
10
- export class Home extends FASTElement {
11
- constructor() {
12
- super();
13
- }
14
- }
@@ -1 +0,0 @@
1
- export * from './config';
@@ -1,11 +0,0 @@
1
- import { css } from '@microsoft/fast-element';
2
- import { mixinScreen } from '../../styles';
3
-
4
- export const NotFoundStyles = css`
5
- :host {
6
- ${mixinScreen('flex')}
7
-
8
- align-items: center;
9
- justify-content: center;
10
- }
11
- `;
@@ -1,6 +0,0 @@
1
- import { html } from '@microsoft/fast-element';
2
- import type { NotFound } from './not-found';
3
-
4
- export const NotFoundTemplate = html<NotFound>`
5
- <h1>Not found! 404</h1>
6
- `;
@@ -1,16 +0,0 @@
1
- import { customElement, FASTElement } from '@microsoft/fast-element';
2
- import { logger } from '../../utils';
3
- import { NotFoundStyles as styles } from './not-found.styles';
4
- import { NotFoundTemplate as template } from './not-found.template';
5
-
6
- @customElement({
7
- name: 'not-found-route',
8
- template,
9
- styles,
10
- })
11
- export class NotFound extends FASTElement {
12
- public connectedCallback() {
13
- super.connectedCallback();
14
- logger.debug(`${name} is now connected to the DOM`);
15
- }
16
- }
@@ -1 +0,0 @@
1
- export * from './store';
@@ -1,29 +0,0 @@
1
- import { CustomEventMap } from '@genesislcap/foundation-events';
2
- import { getApp } from '@genesislcap/foundation-shell/app';
3
- import {
4
- AbstractStoreRoot,
5
- registerStore,
6
- StoreRoot,
7
- StoreRootEventDetailMap,
8
- } from '@genesislcap/foundation-store';
9
-
10
- export interface Store extends StoreRoot {}
11
-
12
- export type StoreEventDetailMap = StoreRootEventDetailMap & {};
13
-
14
- declare global {
15
- interface HTMLElementEventMap extends CustomEventMap<StoreEventDetailMap> {}
16
- }
17
-
18
- class DefaultStore extends AbstractStoreRoot<Store, StoreEventDetailMap> implements Store {
19
- constructor() {
20
- super();
21
-
22
- /**
23
- * Register the store root
24
- */
25
- getApp().registerStoreRoot(this);
26
- }
27
- }
28
-
29
- export const Store = registerStore(DefaultStore, 'Store');
@@ -1,56 +0,0 @@
1
- {
2
- "design_tokens": {
3
- "color": {
4
- "accent": {
5
- "$value": "#0EAFE2",
6
- "$type": "color"
7
- },
8
- "neutral": {
9
- "$value": "#7C909B",
10
- "$type": "color"
11
- }
12
- },
13
- "fontFamily": {
14
- "bodyFont": {
15
- "$value": "Roboto, \"Segoe UI\", Arial, Helvetica, sans-serif",
16
- "$type": "fontFamily"
17
- }
18
- },
19
- "typography": {
20
- "baseFontSize": {
21
- "$value": "14px",
22
- "$type": "dimension"
23
- },
24
- "baseLineHeight": {
25
- "$value": "20px",
26
- "$type": "dimension"
27
- }
28
- },
29
- "mode": {
30
- "luminance": {
31
- "$value": 0.23,
32
- "$type": "number"
33
- }
34
- },
35
- "style": {
36
- "density": {
37
- "$value": 0,
38
- "$type": "number"
39
- },
40
- "borderRadius": {
41
- "$value": 4,
42
- "$type": "number"
43
- },
44
- "strokeWidth": {
45
- "$value": 1,
46
- "$type": "number"
47
- }
48
- },
49
- "space": {
50
- "designUnit": {
51
- "$value": 4,
52
- "$type": "number"
53
- }
54
- }
55
- }
56
- }
@@ -1,2 +0,0 @@
1
- export * from './styles';
2
- export * from './typography';
@@ -1,30 +0,0 @@
1
- import { css } from '@microsoft/fast-element';
2
- import { mixinCardTitle } from './typography';
3
-
4
- export const stylesCardHeading = css`
5
- header h1 {
6
- ${mixinCardTitle}
7
- }
8
- `;
9
-
10
- export const mixinScreen = (display: string = 'block') => `
11
- contain: content;
12
- display: ${display};
13
- height: 100%;
14
- width: 100%;
15
- overflow-y: auto;
16
- `;
17
-
18
- export const mixinCardStyles = `
19
- padding: calc(var(--design-unit) * 2px);
20
- `;
21
-
22
- /**
23
- * Temp as these parts are being removed from foundation-ui
24
- */
25
- export const hideZeroButtonParts = `
26
- zero-button::part(info1),
27
- zero-button::part(info2) {
28
- display: none;
29
- }
30
- `;
@@ -1,25 +0,0 @@
1
- const mixinSegoeUI = (style = 'normal', weight = 'normal') => `
2
- font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
3
- font-style: ${style};
4
- font-weight: ${weight};
5
- `;
6
-
7
- export const stylesFontFaces = `
8
- @font-face {
9
- font-family: Segoe UI;
10
- font-weight: 300;
11
- src: local("Segoe UI Semilight"), local("Segoe UI");
12
- }
13
-
14
- * {
15
- ${mixinSegoeUI()}
16
- }
17
- `;
18
-
19
- export const mixinCardTitle = mixinSegoeUI('normal', 'bold');
20
-
21
- export const stylesHeaders = `
22
- h1, h2, h3, h4, h5, h6 {
23
- margin: 0;
24
- }
25
- `;
package/src/types.ts DELETED
@@ -1,5 +0,0 @@
1
- import { DI } from '@microsoft/fast-foundation';
2
-
3
- export const HostENV = DI.createInterface<string>();
4
-
5
- export const HostURL = DI.createInterface<string>();
@@ -1,14 +0,0 @@
1
- import { createLogicSuite } from '@genesislcap/foundation-testing';
2
-
3
- const isHelloWorld = (arg) => arg === 'Hello world';
4
-
5
- const Suite = createLogicSuite('isHelloWorld');
6
- Suite('isHelloWorld should provide expected results', ({ runCases }) => {
7
- runCases(isHelloWorld, [
8
- [['1'], false],
9
- [[123], false],
10
- [['Hello world'], true],
11
- ]);
12
- });
13
-
14
- Suite.run();