@uxland/primary-shell 1.0.3 → 1.0.5

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.
@@ -0,0 +1 @@
1
+ export declare const initializeShell: (element: HTMLElement) => void;
@@ -0,0 +1,12 @@
1
+ import { IRegion } from '@uxland/regions';
2
+
3
+ declare const PrimaryShell_base: any;
4
+ export declare class PrimaryShell extends PrimaryShell_base {
5
+ render(): import('../node_modules/lit').TemplateResult<1>;
6
+ static styles: import('../node_modules/lit').CSSResult;
7
+ headerRegion: IRegion | undefined;
8
+ actionsToolbarRegion: IRegion | undefined;
9
+ sidebarRegion: IRegion | undefined;
10
+ mainRegion: IRegion | undefined;
11
+ }
12
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const regions: {
2
+ header: string;
3
+ actionsToolbar: string;
4
+ main: string;
5
+ sidebar: string;
6
+ footer: string;
7
+ };
package/package.json CHANGED
@@ -1,16 +1,13 @@
1
1
  {
2
2
  "name": "@uxland/primary-shell",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Framework Integració modular",
5
5
  "author": "UXLand <dev@uxland.es>",
6
6
  "homepage": "https://github.com/uxland/fim-sandbox/tree/app#readme",
7
7
  "license": "UNLICENSED",
8
- "main": "index.ts",
9
- "types": "lib/index.d.ts",
8
+ "main": "src/index.ts",
9
+ "types": "dist/index.d.ts",
10
10
  "files": [
11
- "src",
12
- "lib",
13
- "es",
14
11
  "dist"
15
12
  ],
16
13
  "publishConfig": {
@@ -28,6 +25,7 @@
28
25
  "@uxland/fim-core": "^1.0.0",
29
26
  "@uxland/primary-ui-components": "^1.0.0",
30
27
  "@uxland/regions": "^1.0.0",
28
+ "@uxland/utilities": "^1.0.5",
31
29
  "tslib": "^2.3.0",
32
30
  "lit": "^3.1.0",
33
31
  "vite": "^5.2.8"
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './initializer';
2
+ export * from './regions';
package/index.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './src/primary-shell';
2
- export * from './src/initializer';
3
- export * from './src/regions';
@@ -1,5 +0,0 @@
1
- import { PrimaryShell } from "./primary-shell";
2
-
3
- export const initializeShell = (element : HTMLElement) => {
4
- element.appendChild(new PrimaryShell());
5
- }
@@ -1,78 +0,0 @@
1
- import {ShellLitRegionHost} from '@uxland/fim-core';
2
- import {IRegion, region} from '@uxland/regions';
3
- import {LitElement, css, html} from 'lit';
4
- import { customElement } from 'lit/decorators.js';
5
- import { regions} from './regions';
6
- import '@uxland/primary-ui-components';
7
-
8
- //@ts-ignore
9
- @customElement('primary-shell')
10
- //@ts-ignore
11
- export class PrimaryShell extends ShellLitRegionHost(LitElement) {
12
- override render() {
13
- return html` <div class="container">
14
- <div class="header">
15
- <div id="header-region-container"></div>
16
- <div id="actions-toolbar-region-container"></div>
17
- </div>
18
-
19
- <div class="main-container">
20
- <div id="sidebar-region-region-container"></div>
21
- <div id="main-region-region-container"></div>
22
- </div>
23
- </div>`;
24
- }
25
-
26
- static styles = css`
27
- :host {
28
- width: 100%;
29
- overflow: hidden;
30
- }
31
- .container {
32
- width: 100%;
33
- height: 100%;
34
- display: flex;
35
- flex-direction: column;
36
- background: aliceblue;
37
- }
38
- .header {
39
- display: flex;
40
- flex-direction: row;
41
- justify-content: space-between;
42
- background-color: blue;
43
- height: 60px;
44
- background-color: white;
45
- color: black;
46
- box-shadow: rgba(0, 0, 0, 0.12) 0px 4px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
47
- z-index: 1;
48
-
49
- #actions-toolbar-region-container{
50
- display: flex;
51
- flex-direction:row;
52
- }
53
- }
54
- .main-container {
55
- min-height: 1px;
56
- height: 100%;
57
- display: flex;
58
- flex-direction: row;
59
- #sidebar-region-region-container {
60
- background: white;
61
- width: 15vw;
62
- box-shadow: rgba(0, 0, 0, 0.12) 4px -1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
63
- }
64
- }
65
- `;
66
-
67
- @region({targetId: 'header-region-container', name: regions.header})
68
- headerRegion: IRegion | undefined;
69
-
70
- @region({targetId: 'actions-toolbar-region-container', name: regions.actionsToolbar})
71
- actionsToolbarRegion: IRegion | undefined;
72
-
73
- @region({targetId: 'sidebar-region-region-container', name: regions.sidebar})
74
- sidebarRegion: IRegion | undefined;
75
-
76
- @region({targetId: 'main-region-region-container', name: regions.main})
77
- mainRegion: IRegion | undefined;
78
- }
package/src/regions.ts DELETED
@@ -1,7 +0,0 @@
1
- export const regions = {
2
- header: 'header-region',
3
- actionsToolbar: 'actions-toolbar-region',
4
- main: 'main-region',
5
- sidebar: 'asidebar-region',
6
- footer: 'footer-region'
7
- };