@genesislcap/blank-app-seed 5.7.0-prerelease.3 → 5.7.0-prerelease.30
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/.genx/configure.js +114 -0
- package/.genx/package.json +5 -2
- package/.genx/prompts/api.js +25 -0
- package/.genx/prompts/ui.js +12 -0
- package/.genx/prompts.js +8 -2
- package/.genx/static.js +1 -0
- package/.genx/templates/angular/component/component.hbs +31 -3
- package/.genx/templates/angular/entityManager.hbs +17 -6
- package/.genx/templates/angular/grid.hbs +5 -2
- package/.genx/templates/angular/slices/eventing.slice.hbs +41 -0
- package/.genx/templates/angular/store.hbs +16 -0
- package/.genx/templates/angular/tabsLayout.hbs +1 -1
- package/.genx/templates/react/component/component.hbs +84 -15
- package/.genx/templates/react/entityManager.hbs +11 -17
- package/.genx/templates/react/grid.hbs +5 -9
- package/.genx/templates/react/gridLayout.hbs +4 -4
- package/.genx/templates/react/horizontalLayout.hbs +1 -1
- package/.genx/templates/react/route.hbs +12 -1
- package/.genx/templates/react/slices/eventing.slice.hbs +39 -0
- package/.genx/templates/react/store.hbs +24 -0
- package/.genx/templates/react/tabsLayout.hbs +2 -2
- package/.genx/templates/web-components/component/component.hbs +26 -0
- package/.genx/templates/web-components/entityManager.hbs +17 -9
- package/.genx/templates/web-components/grid.hbs +13 -5
- package/.genx/templates/web-components/slices/eventing.slice.hbs +44 -0
- package/.genx/templates/web-components/store.hbs +18 -0
- package/.genx/utils/fontUtils.js +75 -0
- package/.genx/utils/formatRouteData.js +5 -0
- package/.genx/utils/generateRoute.js +1 -1
- package/.genx/utils/generateStore.js +98 -0
- package/.genx/utils/index.js +4 -0
- package/.genx/versions.json +3 -3
- package/.github/CODEOWNERS +1 -1
- package/.github/pull_request_template.md +6 -0
- package/.github/workflows/upgrade.yml +0 -1
- package/CHANGELOG.md +229 -0
- package/client-tmp/angular/package.json +5 -0
- package/client-tmp/angular/src/app/app.component.ts +2 -31
- package/client-tmp/angular/src/app/app.module.ts +3 -0
- package/client-tmp/angular/src/app/layouts/default/default.layout.css +8 -0
- package/client-tmp/angular/src/app/layouts/default/default.layout.html +3 -0
- package/client-tmp/angular/src/app/share/genesis-components.ts +12 -1
- package/client-tmp/angular/src/styles/design-tokens.json +1 -1
- package/client-tmp/angular/src/styles/styles.css +15 -1
- package/client-tmp/react/index.html +0 -1
- package/client-tmp/react/package.json +16 -28
- package/client-tmp/react/public/index.html +3 -1
- package/client-tmp/react/src/App.tsx +12 -29
- package/client-tmp/react/src/components/routes/AppRoutes.tsx +4 -4
- package/client-tmp/react/src/config.ts +1 -1
- package/client-tmp/react/src/layouts/blank/BlankLayout.tsx +1 -1
- package/client-tmp/react/src/layouts/default/DefaultLayout.module.css +8 -0
- package/client-tmp/react/src/layouts/default/DefaultLayout.tsx +7 -4
- package/client-tmp/react/src/main.tsx +1 -1
- package/client-tmp/react/src/pages/AuthPage/AuthPage.tsx +1 -1
- package/client-tmp/react/src/pages/NotFoundPage/NotFoundPage.tsx +1 -1
- package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.test.tsx +1 -1
- package/client-tmp/react/src/pages/NotPermittedPage/NotPermittedPage.tsx +1 -1
- package/client-tmp/react/src/pbc/container.tsx +1 -1
- package/client-tmp/react/src/share/foundation-login.ts +2 -2
- package/client-tmp/react/src/share/genesis-components.ts +12 -1
- package/client-tmp/react/src/store/RoutesContext.tsx +6 -6
- package/client-tmp/react/src/styles/design-tokens.json +1 -1
- package/client-tmp/react/src/styles/styles.css +15 -1
- package/client-tmp/react/src/utils/getLayoutNameByRoute.ts +1 -1
- package/client-tmp/react/src/utils/goldenLayout.helper.ts +59 -0
- package/client-tmp/react/test/e2e/fixture.ts +1 -1
- package/client-tmp/web-components/package.json +4 -0
- package/client-tmp/web-components/src/components/components.ts +18 -9
- package/client-tmp/web-components/src/layouts/default.ts +12 -2
- package/client-tmp/web-components/src/main/main.css +12 -0
- package/client-tmp/web-components/src/main/main.template.ts +0 -1
- package/client-tmp/web-components/src/main/main.ts +1 -34
- package/client-tmp/web-components/src/styles/design-tokens.json +1 -1
- package/client-tmp/web-components/src/styles/typography.ts +6 -4
- package/package.json +1 -1
- package/client-tmp/angular/src/app/store/store.ts +0 -34
- package/client-tmp/react/lint-css.ts +0 -19
- package/client-tmp/react/src/services/store.service.ts +0 -48
- package/client-tmp/react/vite.config.ts +0 -70
- package/client-tmp/web-components/src/store/store.ts +0 -29
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { fileURLToPath } from 'node:url';
|
|
2
|
-
import { resolve, dirname } from 'path';
|
|
3
|
-
import { defineConfig, UserConfig } from 'vite';
|
|
4
|
-
import react from '@vitejs/plugin-react';
|
|
5
|
-
import visualizer from 'rollup-plugin-visualizer';
|
|
6
|
-
import tsconfigPaths from 'vite-plugin-tsconfig-paths';
|
|
7
|
-
|
|
8
|
-
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
9
|
-
|
|
10
|
-
export default defineConfig(({ mode }: { mode: string }): UserConfig => {
|
|
11
|
-
const https: boolean = process.env.HTTPS === 'true';
|
|
12
|
-
const open: boolean = !(process.env.NO_OPEN === 'true');
|
|
13
|
-
const environmentFile = mode === 'production'
|
|
14
|
-
? 'environment.prod.ts'
|
|
15
|
-
: 'environment.ts';
|
|
16
|
-
const environmentPath = resolve(__dirname, 'src/environments', environmentFile);
|
|
17
|
-
|
|
18
|
-
const config: UserConfig = {
|
|
19
|
-
define: {
|
|
20
|
-
BUILDER: JSON.stringify('vite'),
|
|
21
|
-
},
|
|
22
|
-
server: {
|
|
23
|
-
https,
|
|
24
|
-
open,
|
|
25
|
-
fs: {
|
|
26
|
-
strict: false,
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
plugins: [
|
|
30
|
-
react(),
|
|
31
|
-
tsconfigPaths(),
|
|
32
|
-
],
|
|
33
|
-
build: {
|
|
34
|
-
rollupOptions: {
|
|
35
|
-
plugins: [],
|
|
36
|
-
treeshake: false,
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
resolve: {
|
|
40
|
-
alias: {
|
|
41
|
-
'foundationZero/ZeroDesignSystem': resolve(__dirname, 'node_modules/@genesislcap/foundation-zero'),
|
|
42
|
-
'@': resolve(__dirname, 'src'),
|
|
43
|
-
'@environment': environmentPath,
|
|
44
|
-
'pbc': resolve(__dirname, 'src/pbc'),
|
|
45
|
-
},
|
|
46
|
-
preserveSymlinks: true,
|
|
47
|
-
},
|
|
48
|
-
esbuild: {
|
|
49
|
-
tsconfigRaw: {
|
|
50
|
-
compilerOptions: {
|
|
51
|
-
experimentalDecorators: true,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
if (mode === 'stats') {
|
|
58
|
-
config.build.rollupOptions.plugins.push(
|
|
59
|
-
visualizer({
|
|
60
|
-
template: 'raw-data',
|
|
61
|
-
filename: 'stats.json',
|
|
62
|
-
open: true,
|
|
63
|
-
gzipSize: true,
|
|
64
|
-
brotliSize: true,
|
|
65
|
-
})
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
return config;
|
|
70
|
-
});
|
|
@@ -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');
|