@genesislcap/foundation-workspace 14.461.0 → 14.461.2
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/custom-elements-manifest.config.js +14 -0
- package/dist/custom-elements.json +2240 -0
- package/dist/dts/react.d.ts +67 -0
- package/dist/dts/workspace/grid-register/grid-register.d.ts.map +1 -1
- package/dist/dts/workspace/layout-wrapper/layout-wrapper.d.ts.map +1 -1
- package/dist/esm/workspace/grid-register/grid-register.js +1 -2
- package/dist/esm/workspace/layout-wrapper/layout-wrapper.js +1 -2
- package/dist/react.cjs +32 -0
- package/dist/react.mjs +24 -0
- package/package.json +27 -16
- package/src/workspace/grid-register/grid-register.ts +1 -3
- package/src/workspace/layout-wrapper/layout-wrapper.ts +1 -3
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT.
|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type React from 'react';
|
|
7
|
+
import type { WorkspaceManager as WorkspaceManagerWC } from './workspace-manager/workspace-manager';
|
|
8
|
+
import type { GridRegister as GridRegisterWC } from './workspace/grid-register/grid-register';
|
|
9
|
+
import type { LayoutWrapper as LayoutWrapperWC } from './workspace/layout-wrapper/layout-wrapper';
|
|
10
|
+
|
|
11
|
+
/** @internal Maps a web component class to its public props only.
|
|
12
|
+
* keyof T skips private/protected members, so this avoids the TS error
|
|
13
|
+
* "property may not be private or protected" on exported anonymous types. */
|
|
14
|
+
type PublicOf<T> = { [K in keyof T]?: T[K] };
|
|
15
|
+
|
|
16
|
+
/** @internal Safe React HTML attributes for web component wrappers.
|
|
17
|
+
* onChange/onInput use method signatures for bivariant parameter checking so both
|
|
18
|
+
* native Event and CustomEvent callbacks are accepted. */
|
|
19
|
+
interface HTMLWCProps extends React.AriaAttributes {
|
|
20
|
+
className?: string; style?: React.CSSProperties; id?: string; slot?: string;
|
|
21
|
+
tabIndex?: number; dir?: string; lang?: string; title?: string;
|
|
22
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
23
|
+
onDoubleClick?: React.MouseEventHandler<HTMLElement>;
|
|
24
|
+
onContextMenu?: React.MouseEventHandler<HTMLElement>;
|
|
25
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
|
26
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
|
27
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
28
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement>;
|
|
29
|
+
onMouseMove?: React.MouseEventHandler<HTMLElement>;
|
|
30
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
31
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
|
|
32
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
33
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
34
|
+
onScroll?: React.UIEventHandler<HTMLElement>;
|
|
35
|
+
onWheel?: React.WheelEventHandler<HTMLElement>;
|
|
36
|
+
onChange?(e: Event): void;
|
|
37
|
+
onInput?(e: Event): void;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export declare const WorkspaceManager: React.ForwardRefExoticComponent<
|
|
41
|
+
React.PropsWithChildren<
|
|
42
|
+
Omit<PublicOf<WorkspaceManagerWC>, 'children' | 'style'> &
|
|
43
|
+
HTMLWCProps & {
|
|
44
|
+
}
|
|
45
|
+
> & React.RefAttributes<WorkspaceManagerWC>
|
|
46
|
+
>;
|
|
47
|
+
export type WorkspaceManagerRef = WorkspaceManagerWC;
|
|
48
|
+
|
|
49
|
+
export declare const GridRegister: React.ForwardRefExoticComponent<
|
|
50
|
+
React.PropsWithChildren<
|
|
51
|
+
Omit<PublicOf<GridRegisterWC>, 'children' | 'style'> &
|
|
52
|
+
HTMLWCProps & {
|
|
53
|
+
}
|
|
54
|
+
> & React.RefAttributes<GridRegisterWC>
|
|
55
|
+
>;
|
|
56
|
+
export type GridRegisterRef = GridRegisterWC;
|
|
57
|
+
|
|
58
|
+
export declare const LayoutWrapper: React.ForwardRefExoticComponent<
|
|
59
|
+
React.PropsWithChildren<
|
|
60
|
+
Omit<PublicOf<LayoutWrapperWC>, 'children' | 'style'> &
|
|
61
|
+
HTMLWCProps & {
|
|
62
|
+
}
|
|
63
|
+
> & React.RefAttributes<LayoutWrapperWC>
|
|
64
|
+
>;
|
|
65
|
+
export type LayoutWrapperRef = LayoutWrapperWC;
|
|
66
|
+
|
|
67
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-register.d.ts","sourceRoot":"","sources":["../../../../src/workspace/grid-register/grid-register.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-register.d.ts","sourceRoot":"","sources":["../../../../src/workspace/grid-register/grid-register.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD;;;GAGG;AACH,qBAIa,YAAa,SAAQ,iBAAiB;IAChB,OAAO,EAAE,MAAM,CAAC;IACJ,kBAAkB,EAAE,MAAM,CAAW;IAEpE,YAAY,EAAE,YAAY,CAAC;IACzB,cAAc,EAAE,cAAc,CAAC;IAE/C,OAAO,CAAC,WAAW,CAAwB;IAC3C,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,SAAS,CAA0B;IAE3C,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAS5B,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAE9B;IAEF,OAAO,CAAC,gBAAgB;IA4BxB,OAAO,CAAC,kBAAkB;YAUZ,qBAAqB;YAmCrB,wBAAwB;CAGvC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/workspace/layout-wrapper/layout-wrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"layout-wrapper.d.ts","sourceRoot":"","sources":["../../../../src/workspace/layout-wrapper/layout-wrapper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAuB,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD;;;GAGG;AACH,qBAIa,aAAc,SAAQ,iBAAiB;IACf,SAAS,EAAE,MAAM,CAAC;IACR,kBAAkB,EAAE,MAAM,CAAW;IAElE,cAAc,EAAE,cAAc,CAAC;IAE/C,OAAO,CAAC,aAAa,CAAiC;IAEtD,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAY5B,OAAO,CAAC,qBAAqB;CA8B9B"}
|
|
@@ -3,7 +3,6 @@ import { FoundationElement, attr, customElement } from '@genesislcap/web-core';
|
|
|
3
3
|
import { GridRegistry } from '../grid-registry';
|
|
4
4
|
import { WorkspaceState } from '../workspace-state';
|
|
5
5
|
import { GridRegisterTemplate as template } from './grid-register.template';
|
|
6
|
-
const name = 'grid-register';
|
|
7
6
|
/**
|
|
8
7
|
* Registers an AG Grid instance so workspace state can apply/load it.
|
|
9
8
|
* @alpha
|
|
@@ -133,7 +132,7 @@ __decorate([
|
|
|
133
132
|
], GridRegister.prototype, "workspaceState", void 0);
|
|
134
133
|
GridRegister = __decorate([
|
|
135
134
|
customElement({
|
|
136
|
-
name,
|
|
135
|
+
name: 'grid-register',
|
|
137
136
|
template,
|
|
138
137
|
})
|
|
139
138
|
], GridRegister);
|
|
@@ -2,7 +2,6 @@ import { __decorate } from "tslib";
|
|
|
2
2
|
import { FoundationElement, attr, customElement } from '@genesislcap/web-core';
|
|
3
3
|
import { LayoutRegistry } from '../layout-registry';
|
|
4
4
|
import { LayoutWrapperTemplate as template } from './layout-wrapper.template';
|
|
5
|
-
const name = 'layout-register';
|
|
6
5
|
/**
|
|
7
6
|
* Registers a layout instance so workspace state can apply/load it.
|
|
8
7
|
* @alpha
|
|
@@ -64,7 +63,7 @@ __decorate([
|
|
|
64
63
|
], LayoutWrapper.prototype, "layoutRegistry", void 0);
|
|
65
64
|
LayoutWrapper = __decorate([
|
|
66
65
|
customElement({
|
|
67
|
-
name,
|
|
66
|
+
name: 'layout-register',
|
|
68
67
|
template,
|
|
69
68
|
})
|
|
70
69
|
], LayoutWrapper);
|
package/dist/react.cjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT.
|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
const React = require('react');
|
|
9
|
+
const { WorkspaceManager: WorkspaceManagerWC } = require('./esm/workspace-manager/workspace-manager.js');
|
|
10
|
+
const { GridRegister: GridRegisterWC } = require('./esm/workspace/grid-register/grid-register.js');
|
|
11
|
+
const { LayoutWrapper: LayoutWrapperWC } = require('./esm/workspace/layout-wrapper/layout-wrapper.js');
|
|
12
|
+
|
|
13
|
+
const WorkspaceManager = React.forwardRef(function WorkspaceManager(props, ref) {
|
|
14
|
+
const { children, ...rest } = props;
|
|
15
|
+
return React.createElement(customElements.getName(WorkspaceManagerWC) ?? 'workspace-manager', { ...rest, ref }, children);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const GridRegister = React.forwardRef(function GridRegister(props, ref) {
|
|
19
|
+
const { children, ...rest } = props;
|
|
20
|
+
return React.createElement(customElements.getName(GridRegisterWC) ?? 'grid-register', { ...rest, ref }, children);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const LayoutWrapper = React.forwardRef(function LayoutWrapper(props, ref) {
|
|
24
|
+
const { children, ...rest } = props;
|
|
25
|
+
return React.createElement(customElements.getName(LayoutWrapperWC) ?? 'layout-register', { ...rest, ref }, children);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
module.exports = {
|
|
29
|
+
WorkspaceManager,
|
|
30
|
+
GridRegister,
|
|
31
|
+
LayoutWrapper,
|
|
32
|
+
};
|
package/dist/react.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT.
|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { WorkspaceManager as WorkspaceManagerWC } from './esm/workspace-manager/workspace-manager.js';
|
|
8
|
+
import { GridRegister as GridRegisterWC } from './esm/workspace/grid-register/grid-register.js';
|
|
9
|
+
import { LayoutWrapper as LayoutWrapperWC } from './esm/workspace/layout-wrapper/layout-wrapper.js';
|
|
10
|
+
|
|
11
|
+
export const WorkspaceManager = React.forwardRef(function WorkspaceManager(props, ref) {
|
|
12
|
+
const { children, ...rest } = props;
|
|
13
|
+
return React.createElement(customElements.getName(WorkspaceManagerWC) ?? 'workspace-manager', { ...rest, ref }, children);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export const GridRegister = React.forwardRef(function GridRegister(props, ref) {
|
|
17
|
+
const { children, ...rest } = props;
|
|
18
|
+
return React.createElement(customElements.getName(GridRegisterWC) ?? 'grid-register', { ...rest, ref }, children);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const LayoutWrapper = React.forwardRef(function LayoutWrapper(props, ref) {
|
|
22
|
+
const { children, ...rest } = props;
|
|
23
|
+
return React.createElement(customElements.getName(LayoutWrapperWC) ?? 'layout-register', { ...rest, ref }, children);
|
|
24
|
+
});
|
package/package.json
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-workspace",
|
|
3
3
|
"description": "Genesis Foundation Workspace Components and State",
|
|
4
|
-
"version": "14.461.
|
|
4
|
+
"version": "14.461.2",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
8
8
|
"types": "dist/dts/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/dts/index.d.ts",
|
|
12
|
+
"default": "./dist/esm/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./react": {
|
|
15
|
+
"types": "./dist/dts/react.d.ts",
|
|
16
|
+
"import": "./dist/react.mjs",
|
|
17
|
+
"require": "./dist/react.cjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
9
20
|
"engines": {
|
|
10
21
|
"node": ">=22.0.0"
|
|
11
22
|
},
|
|
@@ -37,23 +48,23 @@
|
|
|
37
48
|
}
|
|
38
49
|
},
|
|
39
50
|
"devDependencies": {
|
|
40
|
-
"@genesislcap/foundation-testing": "14.461.
|
|
41
|
-
"@genesislcap/genx": "14.461.
|
|
42
|
-
"@genesislcap/rollup-builder": "14.461.
|
|
43
|
-
"@genesislcap/ts-builder": "14.461.
|
|
44
|
-
"@genesislcap/uvu-playwright-builder": "14.461.
|
|
45
|
-
"@genesislcap/vite-builder": "14.461.
|
|
46
|
-
"@genesislcap/webpack-builder": "14.461.
|
|
51
|
+
"@genesislcap/foundation-testing": "14.461.2",
|
|
52
|
+
"@genesislcap/genx": "14.461.2",
|
|
53
|
+
"@genesislcap/rollup-builder": "14.461.2",
|
|
54
|
+
"@genesislcap/ts-builder": "14.461.2",
|
|
55
|
+
"@genesislcap/uvu-playwright-builder": "14.461.2",
|
|
56
|
+
"@genesislcap/vite-builder": "14.461.2",
|
|
57
|
+
"@genesislcap/webpack-builder": "14.461.2"
|
|
47
58
|
},
|
|
48
59
|
"dependencies": {
|
|
49
60
|
"@ag-grid-community/core": "29.2.0",
|
|
50
|
-
"@genesislcap/foundation-comms": "14.461.
|
|
51
|
-
"@genesislcap/foundation-layout": "14.461.
|
|
52
|
-
"@genesislcap/foundation-notifications": "14.461.
|
|
53
|
-
"@genesislcap/foundation-ui": "14.461.
|
|
54
|
-
"@genesislcap/foundation-utils": "14.461.
|
|
55
|
-
"@genesislcap/grid-pro": "14.461.
|
|
56
|
-
"@genesislcap/web-core": "14.461.
|
|
61
|
+
"@genesislcap/foundation-comms": "14.461.2",
|
|
62
|
+
"@genesislcap/foundation-layout": "14.461.2",
|
|
63
|
+
"@genesislcap/foundation-notifications": "14.461.2",
|
|
64
|
+
"@genesislcap/foundation-ui": "14.461.2",
|
|
65
|
+
"@genesislcap/foundation-utils": "14.461.2",
|
|
66
|
+
"@genesislcap/grid-pro": "14.461.2",
|
|
67
|
+
"@genesislcap/web-core": "14.461.2"
|
|
57
68
|
},
|
|
58
69
|
"repository": {
|
|
59
70
|
"type": "git",
|
|
@@ -64,5 +75,5 @@
|
|
|
64
75
|
"access": "public"
|
|
65
76
|
},
|
|
66
77
|
"customElements": "dist/custom-elements.json",
|
|
67
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "7999f5af9df17157002c463d10fe75a14ac43521"
|
|
68
79
|
}
|
|
@@ -5,14 +5,12 @@ import { GridRegistry } from '../grid-registry';
|
|
|
5
5
|
import { WorkspaceState } from '../workspace-state';
|
|
6
6
|
import { GridRegisterTemplate as template } from './grid-register.template';
|
|
7
7
|
|
|
8
|
-
const name = 'grid-register';
|
|
9
|
-
|
|
10
8
|
/**
|
|
11
9
|
* Registers an AG Grid instance so workspace state can apply/load it.
|
|
12
10
|
* @alpha
|
|
13
11
|
*/
|
|
14
12
|
@customElement({
|
|
15
|
-
name,
|
|
13
|
+
name: 'grid-register',
|
|
16
14
|
template,
|
|
17
15
|
})
|
|
18
16
|
export class GridRegister extends FoundationElement {
|
|
@@ -3,14 +3,12 @@ import { FoundationElement, attr, customElement } from '@genesislcap/web-core';
|
|
|
3
3
|
import { LayoutRegistry } from '../layout-registry';
|
|
4
4
|
import { LayoutWrapperTemplate as template } from './layout-wrapper.template';
|
|
5
5
|
|
|
6
|
-
const name = 'layout-register';
|
|
7
|
-
|
|
8
6
|
/**
|
|
9
7
|
* Registers a layout instance so workspace state can apply/load it.
|
|
10
8
|
* @alpha
|
|
11
9
|
*/
|
|
12
10
|
@customElement({
|
|
13
|
-
name,
|
|
11
|
+
name: 'layout-register',
|
|
14
12
|
template,
|
|
15
13
|
})
|
|
16
14
|
export class LayoutWrapper extends FoundationElement {
|