@genesislcap/foundation-header 14.418.2 → 14.419.0
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/dist/custom-elements.json +6 -6
- package/dist/dts/react.d.ts +89 -0
- package/dist/react.cjs +55 -0
- package/dist/react.mjs +46 -0
- package/package.json +32 -24
|
@@ -3991,6 +3991,12 @@
|
|
|
3991
3991
|
}
|
|
3992
3992
|
]
|
|
3993
3993
|
},
|
|
3994
|
+
{
|
|
3995
|
+
"kind": "javascript-module",
|
|
3996
|
+
"path": "src/templates/rapid.template.ts",
|
|
3997
|
+
"declarations": [],
|
|
3998
|
+
"exports": []
|
|
3999
|
+
},
|
|
3994
4000
|
{
|
|
3995
4001
|
"kind": "javascript-module",
|
|
3996
4002
|
"path": "src/tags/index.ts",
|
|
@@ -4012,12 +4018,6 @@
|
|
|
4012
4018
|
"declarations": [],
|
|
4013
4019
|
"exports": []
|
|
4014
4020
|
},
|
|
4015
|
-
{
|
|
4016
|
-
"kind": "javascript-module",
|
|
4017
|
-
"path": "src/templates/rapid.template.ts",
|
|
4018
|
-
"declarations": [],
|
|
4019
|
-
"exports": []
|
|
4020
|
-
},
|
|
4021
4021
|
{
|
|
4022
4022
|
"kind": "javascript-module",
|
|
4023
4023
|
"path": "src/utils/index.ts",
|
|
@@ -0,0 +1,89 @@
|
|
|
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 { ControlPanel as ControlPanelWC } from './components/control-panel';
|
|
8
|
+
import type { Navigation as NavigationWC, RapidHeader as RapidHeaderWC, ZeroHeader as ZeroHeaderWC } from './main/main';
|
|
9
|
+
|
|
10
|
+
/** @internal Maps a web component class to its public props only.
|
|
11
|
+
* keyof T skips private/protected members, so this avoids the TS error
|
|
12
|
+
* "property may not be private or protected" on exported anonymous types. */
|
|
13
|
+
type PublicOf<T> = { [K in keyof T]?: T[K] };
|
|
14
|
+
|
|
15
|
+
/** @internal Safe React HTML attributes for web component wrappers.
|
|
16
|
+
* onChange/onInput use method signatures for bivariant parameter checking so both
|
|
17
|
+
* native Event and CustomEvent callbacks are accepted. */
|
|
18
|
+
interface HTMLWCProps extends React.AriaAttributes {
|
|
19
|
+
className?: string; style?: React.CSSProperties; id?: string; slot?: string;
|
|
20
|
+
tabIndex?: number; dir?: string; lang?: string; title?: string;
|
|
21
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
22
|
+
onDoubleClick?: React.MouseEventHandler<HTMLElement>;
|
|
23
|
+
onContextMenu?: React.MouseEventHandler<HTMLElement>;
|
|
24
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
|
25
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
|
26
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
27
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement>;
|
|
28
|
+
onMouseMove?: React.MouseEventHandler<HTMLElement>;
|
|
29
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
30
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
|
|
31
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
32
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
33
|
+
onScroll?: React.UIEventHandler<HTMLElement>;
|
|
34
|
+
onWheel?: React.WheelEventHandler<HTMLElement>;
|
|
35
|
+
onChange?(e: Event): void;
|
|
36
|
+
onInput?(e: Event): void;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export declare const ControlPanel: React.ForwardRefExoticComponent<
|
|
40
|
+
React.PropsWithChildren<
|
|
41
|
+
Omit<PublicOf<ControlPanelWC>, 'children' | 'style'> &
|
|
42
|
+
HTMLWCProps & {
|
|
43
|
+
}
|
|
44
|
+
> & React.RefAttributes<ControlPanelWC>
|
|
45
|
+
>;
|
|
46
|
+
|
|
47
|
+
export declare const Navigation: React.ForwardRefExoticComponent<
|
|
48
|
+
React.PropsWithChildren<
|
|
49
|
+
Omit<PublicOf<NavigationWC>, 'children' | 'style'> &
|
|
50
|
+
HTMLWCProps & {
|
|
51
|
+
onLuminanceIconClicked?: (event: CustomEvent<unknown>) => void;
|
|
52
|
+
onMiscIconClicked?: (event: CustomEvent<unknown>) => void;
|
|
53
|
+
onNotificationIconClicked?: (event: CustomEvent<unknown>) => void;
|
|
54
|
+
onLanguageChanged?: (event: CustomEvent<unknown>) => void;
|
|
55
|
+
onLogoutClicked?: (event: CustomEvent<unknown>) => void;
|
|
56
|
+
onNavButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
57
|
+
}
|
|
58
|
+
> & React.RefAttributes<NavigationWC>
|
|
59
|
+
>;
|
|
60
|
+
|
|
61
|
+
export declare const ZeroHeader: React.ForwardRefExoticComponent<
|
|
62
|
+
React.PropsWithChildren<
|
|
63
|
+
Omit<PublicOf<ZeroHeaderWC>, 'children' | 'style'> &
|
|
64
|
+
HTMLWCProps & {
|
|
65
|
+
onLuminanceIconClicked?: (event: CustomEvent<unknown>) => void;
|
|
66
|
+
onMiscIconClicked?: (event: CustomEvent<unknown>) => void;
|
|
67
|
+
onNotificationIconClicked?: (event: CustomEvent<unknown>) => void;
|
|
68
|
+
onLanguageChanged?: (event: CustomEvent<unknown>) => void;
|
|
69
|
+
onLogoutClicked?: (event: CustomEvent<unknown>) => void;
|
|
70
|
+
onNavButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
71
|
+
}
|
|
72
|
+
> & React.RefAttributes<ZeroHeaderWC>
|
|
73
|
+
>;
|
|
74
|
+
|
|
75
|
+
export declare const RapidHeader: React.ForwardRefExoticComponent<
|
|
76
|
+
React.PropsWithChildren<
|
|
77
|
+
Omit<PublicOf<RapidHeaderWC>, 'children' | 'style'> &
|
|
78
|
+
HTMLWCProps & {
|
|
79
|
+
onLuminanceIconClicked?: (event: CustomEvent<unknown>) => void;
|
|
80
|
+
onMiscIconClicked?: (event: CustomEvent<unknown>) => void;
|
|
81
|
+
onNotificationIconClicked?: (event: CustomEvent<unknown>) => void;
|
|
82
|
+
onLanguageChanged?: (event: CustomEvent<unknown>) => void;
|
|
83
|
+
onLogoutClicked?: (event: CustomEvent<unknown>) => void;
|
|
84
|
+
onNavButtonClicked?: (event: CustomEvent<unknown>) => void;
|
|
85
|
+
}
|
|
86
|
+
> & React.RefAttributes<RapidHeaderWC>
|
|
87
|
+
>;
|
|
88
|
+
|
|
89
|
+
export {};
|
package/dist/react.cjs
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT.
|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
const { provideReactWrapper } = require('@microsoft/fast-react-wrapper');
|
|
9
|
+
const React = require('react');
|
|
10
|
+
const { ControlPanel: ControlPanelWC } = require('./esm/components/control-panel.js');
|
|
11
|
+
const { Navigation: NavigationWC, RapidHeader: RapidHeaderWC, ZeroHeader: ZeroHeaderWC } = require('./esm/main/main.js');
|
|
12
|
+
|
|
13
|
+
const { wrap } = provideReactWrapper(React);
|
|
14
|
+
|
|
15
|
+
const ControlPanel = wrap(ControlPanelWC);
|
|
16
|
+
|
|
17
|
+
const Navigation = wrap(NavigationWC, {
|
|
18
|
+
events: {
|
|
19
|
+
onLuminanceIconClicked: 'luminance-icon-clicked',
|
|
20
|
+
onMiscIconClicked: 'misc-icon-clicked',
|
|
21
|
+
onNotificationIconClicked: 'notification-icon-clicked',
|
|
22
|
+
onLanguageChanged: 'language-changed',
|
|
23
|
+
onLogoutClicked: 'logout-clicked',
|
|
24
|
+
onNavButtonClicked: 'nav-button-clicked',
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const ZeroHeader = wrap(ZeroHeaderWC, {
|
|
29
|
+
events: {
|
|
30
|
+
onLuminanceIconClicked: 'luminance-icon-clicked',
|
|
31
|
+
onMiscIconClicked: 'misc-icon-clicked',
|
|
32
|
+
onNotificationIconClicked: 'notification-icon-clicked',
|
|
33
|
+
onLanguageChanged: 'language-changed',
|
|
34
|
+
onLogoutClicked: 'logout-clicked',
|
|
35
|
+
onNavButtonClicked: 'nav-button-clicked',
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const RapidHeader = wrap(RapidHeaderWC, {
|
|
40
|
+
events: {
|
|
41
|
+
onLuminanceIconClicked: 'luminance-icon-clicked',
|
|
42
|
+
onMiscIconClicked: 'misc-icon-clicked',
|
|
43
|
+
onNotificationIconClicked: 'notification-icon-clicked',
|
|
44
|
+
onLanguageChanged: 'language-changed',
|
|
45
|
+
onLogoutClicked: 'logout-clicked',
|
|
46
|
+
onNavButtonClicked: 'nav-button-clicked',
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
module.exports = {
|
|
51
|
+
ControlPanel,
|
|
52
|
+
Navigation,
|
|
53
|
+
ZeroHeader,
|
|
54
|
+
RapidHeader,
|
|
55
|
+
};
|
package/dist/react.mjs
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTO-GENERATED FILE - DO NOT EDIT.
|
|
3
|
+
* Generated from custom-elements manifest.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { provideReactWrapper } from '@microsoft/fast-react-wrapper';
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { ControlPanel as ControlPanelWC } from './esm/components/control-panel.js';
|
|
9
|
+
import { Navigation as NavigationWC, RapidHeader as RapidHeaderWC, ZeroHeader as ZeroHeaderWC } from './esm/main/main.js';
|
|
10
|
+
|
|
11
|
+
const { wrap } = provideReactWrapper(React);
|
|
12
|
+
|
|
13
|
+
export const ControlPanel = wrap(ControlPanelWC);
|
|
14
|
+
|
|
15
|
+
export const Navigation = wrap(NavigationWC, {
|
|
16
|
+
events: {
|
|
17
|
+
onLuminanceIconClicked: 'luminance-icon-clicked',
|
|
18
|
+
onMiscIconClicked: 'misc-icon-clicked',
|
|
19
|
+
onNotificationIconClicked: 'notification-icon-clicked',
|
|
20
|
+
onLanguageChanged: 'language-changed',
|
|
21
|
+
onLogoutClicked: 'logout-clicked',
|
|
22
|
+
onNavButtonClicked: 'nav-button-clicked',
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export const ZeroHeader = wrap(ZeroHeaderWC, {
|
|
27
|
+
events: {
|
|
28
|
+
onLuminanceIconClicked: 'luminance-icon-clicked',
|
|
29
|
+
onMiscIconClicked: 'misc-icon-clicked',
|
|
30
|
+
onNotificationIconClicked: 'notification-icon-clicked',
|
|
31
|
+
onLanguageChanged: 'language-changed',
|
|
32
|
+
onLogoutClicked: 'logout-clicked',
|
|
33
|
+
onNavButtonClicked: 'nav-button-clicked',
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export const RapidHeader = wrap(RapidHeaderWC, {
|
|
38
|
+
events: {
|
|
39
|
+
onLuminanceIconClicked: 'luminance-icon-clicked',
|
|
40
|
+
onMiscIconClicked: 'misc-icon-clicked',
|
|
41
|
+
onNotificationIconClicked: 'notification-icon-clicked',
|
|
42
|
+
onLanguageChanged: 'language-changed',
|
|
43
|
+
onLogoutClicked: 'logout-clicked',
|
|
44
|
+
onNavButtonClicked: 'nav-button-clicked',
|
|
45
|
+
},
|
|
46
|
+
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-header",
|
|
3
3
|
"description": "Genesis Foundation Header",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.419.0",
|
|
5
5
|
"license": "SEE LICENSE IN license.txt",
|
|
6
6
|
"main": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/foundation-header.d.ts",
|
|
@@ -34,7 +34,12 @@
|
|
|
34
34
|
"./e2e": {
|
|
35
35
|
"default": "./test/e2e/index.ts"
|
|
36
36
|
},
|
|
37
|
-
"./package.json": "./package.json"
|
|
37
|
+
"./package.json": "./package.json",
|
|
38
|
+
"./react": {
|
|
39
|
+
"types": "./dist/dts/react.d.ts",
|
|
40
|
+
"import": "./dist/react.mjs",
|
|
41
|
+
"require": "./dist/react.cjs"
|
|
42
|
+
}
|
|
38
43
|
},
|
|
39
44
|
"typesVersions": {
|
|
40
45
|
"*": {
|
|
@@ -79,29 +84,29 @@
|
|
|
79
84
|
}
|
|
80
85
|
},
|
|
81
86
|
"devDependencies": {
|
|
82
|
-
"@genesislcap/foundation-testing": "14.
|
|
83
|
-
"@genesislcap/genx": "14.
|
|
84
|
-
"@genesislcap/rollup-builder": "14.
|
|
85
|
-
"@genesislcap/ts-builder": "14.
|
|
86
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
87
|
-
"@genesislcap/vite-builder": "14.
|
|
88
|
-
"@genesislcap/webpack-builder": "14.
|
|
87
|
+
"@genesislcap/foundation-testing": "14.419.0",
|
|
88
|
+
"@genesislcap/genx": "14.419.0",
|
|
89
|
+
"@genesislcap/rollup-builder": "14.419.0",
|
|
90
|
+
"@genesislcap/ts-builder": "14.419.0",
|
|
91
|
+
"@genesislcap/uvu-playwright-builder": "14.419.0",
|
|
92
|
+
"@genesislcap/vite-builder": "14.419.0",
|
|
93
|
+
"@genesislcap/webpack-builder": "14.419.0"
|
|
89
94
|
},
|
|
90
95
|
"dependencies": {
|
|
91
|
-
"@genesislcap/foundation-ai": "14.
|
|
92
|
-
"@genesislcap/foundation-auth": "14.
|
|
93
|
-
"@genesislcap/foundation-comms": "14.
|
|
94
|
-
"@genesislcap/foundation-events": "14.
|
|
95
|
-
"@genesislcap/foundation-i18n": "14.
|
|
96
|
-
"@genesislcap/foundation-logger": "14.
|
|
97
|
-
"@genesislcap/foundation-login": "14.
|
|
98
|
-
"@genesislcap/foundation-shell": "14.
|
|
99
|
-
"@genesislcap/foundation-ui": "14.
|
|
100
|
-
"@genesislcap/foundation-user": "14.
|
|
101
|
-
"@genesislcap/foundation-utils": "14.
|
|
102
|
-
"@genesislcap/foundation-zero": "14.
|
|
103
|
-
"@genesislcap/rapid-design-system": "14.
|
|
104
|
-
"@genesislcap/web-core": "14.
|
|
96
|
+
"@genesislcap/foundation-ai": "14.419.0",
|
|
97
|
+
"@genesislcap/foundation-auth": "14.419.0",
|
|
98
|
+
"@genesislcap/foundation-comms": "14.419.0",
|
|
99
|
+
"@genesislcap/foundation-events": "14.419.0",
|
|
100
|
+
"@genesislcap/foundation-i18n": "14.419.0",
|
|
101
|
+
"@genesislcap/foundation-logger": "14.419.0",
|
|
102
|
+
"@genesislcap/foundation-login": "14.419.0",
|
|
103
|
+
"@genesislcap/foundation-shell": "14.419.0",
|
|
104
|
+
"@genesislcap/foundation-ui": "14.419.0",
|
|
105
|
+
"@genesislcap/foundation-user": "14.419.0",
|
|
106
|
+
"@genesislcap/foundation-utils": "14.419.0",
|
|
107
|
+
"@genesislcap/foundation-zero": "14.419.0",
|
|
108
|
+
"@genesislcap/rapid-design-system": "14.419.0",
|
|
109
|
+
"@genesislcap/web-core": "14.419.0"
|
|
105
110
|
},
|
|
106
111
|
"repository": {
|
|
107
112
|
"type": "git",
|
|
@@ -112,5 +117,8 @@
|
|
|
112
117
|
"access": "public"
|
|
113
118
|
},
|
|
114
119
|
"customElements": "dist/custom-elements.json",
|
|
115
|
-
"
|
|
120
|
+
"peerDependencies": {
|
|
121
|
+
"@microsoft/fast-react-wrapper": ">=0.3.0"
|
|
122
|
+
},
|
|
123
|
+
"gitHead": "e7590ac8bedb4e7d8cbbcee4100d1b0476591870"
|
|
116
124
|
}
|