@genesislcap/foundation-utils 14.461.1 → 14.461.2-GENC-1346.1
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 +76 -76
- package/dist/dts/react.d.ts +67 -0
- package/dist/react.cjs +32 -0
- package/dist/react.mjs +24 -0
- package/package.json +11 -11
|
@@ -250,59 +250,6 @@
|
|
|
250
250
|
}
|
|
251
251
|
]
|
|
252
252
|
},
|
|
253
|
-
{
|
|
254
|
-
"kind": "javascript-module",
|
|
255
|
-
"path": "src/decorators/index.ts",
|
|
256
|
-
"declarations": [],
|
|
257
|
-
"exports": [
|
|
258
|
-
{
|
|
259
|
-
"kind": "js",
|
|
260
|
-
"name": "*",
|
|
261
|
-
"declaration": {
|
|
262
|
-
"name": "*",
|
|
263
|
-
"package": "./renderOnChange"
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
"kind": "javascript-module",
|
|
270
|
-
"path": "src/decorators/renderOnChange.ts",
|
|
271
|
-
"declarations": [
|
|
272
|
-
{
|
|
273
|
-
"kind": "function",
|
|
274
|
-
"name": "renderOnChange",
|
|
275
|
-
"parameters": [
|
|
276
|
-
{
|
|
277
|
-
"name": "target",
|
|
278
|
-
"type": {
|
|
279
|
-
"text": "FASTElement & { render(): void }"
|
|
280
|
-
},
|
|
281
|
-
"description": "The target to define the property change handler on."
|
|
282
|
-
},
|
|
283
|
-
{
|
|
284
|
-
"name": "name",
|
|
285
|
-
"type": {
|
|
286
|
-
"text": "string"
|
|
287
|
-
},
|
|
288
|
-
"description": "The property name."
|
|
289
|
-
}
|
|
290
|
-
],
|
|
291
|
-
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
292
|
-
"privacy": "public"
|
|
293
|
-
}
|
|
294
|
-
],
|
|
295
|
-
"exports": [
|
|
296
|
-
{
|
|
297
|
-
"kind": "js",
|
|
298
|
-
"name": "renderOnChange",
|
|
299
|
-
"declaration": {
|
|
300
|
-
"name": "renderOnChange",
|
|
301
|
-
"module": "src/decorators/renderOnChange.ts"
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
]
|
|
305
|
-
},
|
|
306
253
|
{
|
|
307
254
|
"kind": "javascript-module",
|
|
308
255
|
"path": "src/data/inMemoryDatabase.ts",
|
|
@@ -501,6 +448,29 @@
|
|
|
501
448
|
}
|
|
502
449
|
]
|
|
503
450
|
},
|
|
451
|
+
{
|
|
452
|
+
"kind": "javascript-module",
|
|
453
|
+
"path": "src/directives/index.ts",
|
|
454
|
+
"declarations": [],
|
|
455
|
+
"exports": [
|
|
456
|
+
{
|
|
457
|
+
"kind": "js",
|
|
458
|
+
"name": "*",
|
|
459
|
+
"declaration": {
|
|
460
|
+
"name": "*",
|
|
461
|
+
"package": "./sync"
|
|
462
|
+
}
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"kind": "js",
|
|
466
|
+
"name": "*",
|
|
467
|
+
"declaration": {
|
|
468
|
+
"name": "*",
|
|
469
|
+
"package": "./when-else"
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
]
|
|
473
|
+
},
|
|
504
474
|
{
|
|
505
475
|
"kind": "javascript-module",
|
|
506
476
|
"path": "src/design-system/design-system.ts",
|
|
@@ -703,29 +673,6 @@
|
|
|
703
673
|
}
|
|
704
674
|
]
|
|
705
675
|
},
|
|
706
|
-
{
|
|
707
|
-
"kind": "javascript-module",
|
|
708
|
-
"path": "src/directives/index.ts",
|
|
709
|
-
"declarations": [],
|
|
710
|
-
"exports": [
|
|
711
|
-
{
|
|
712
|
-
"kind": "js",
|
|
713
|
-
"name": "*",
|
|
714
|
-
"declaration": {
|
|
715
|
-
"name": "*",
|
|
716
|
-
"package": "./sync"
|
|
717
|
-
}
|
|
718
|
-
},
|
|
719
|
-
{
|
|
720
|
-
"kind": "js",
|
|
721
|
-
"name": "*",
|
|
722
|
-
"declaration": {
|
|
723
|
-
"name": "*",
|
|
724
|
-
"package": "./when-else"
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
]
|
|
728
|
-
},
|
|
729
676
|
{
|
|
730
677
|
"kind": "javascript-module",
|
|
731
678
|
"path": "src/encoding/index.ts",
|
|
@@ -1216,6 +1163,59 @@
|
|
|
1216
1163
|
}
|
|
1217
1164
|
]
|
|
1218
1165
|
},
|
|
1166
|
+
{
|
|
1167
|
+
"kind": "javascript-module",
|
|
1168
|
+
"path": "src/decorators/index.ts",
|
|
1169
|
+
"declarations": [],
|
|
1170
|
+
"exports": [
|
|
1171
|
+
{
|
|
1172
|
+
"kind": "js",
|
|
1173
|
+
"name": "*",
|
|
1174
|
+
"declaration": {
|
|
1175
|
+
"name": "*",
|
|
1176
|
+
"package": "./renderOnChange"
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
]
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"kind": "javascript-module",
|
|
1183
|
+
"path": "src/decorators/renderOnChange.ts",
|
|
1184
|
+
"declarations": [
|
|
1185
|
+
{
|
|
1186
|
+
"kind": "function",
|
|
1187
|
+
"name": "renderOnChange",
|
|
1188
|
+
"parameters": [
|
|
1189
|
+
{
|
|
1190
|
+
"name": "target",
|
|
1191
|
+
"type": {
|
|
1192
|
+
"text": "FASTElement & { render(): void }"
|
|
1193
|
+
},
|
|
1194
|
+
"description": "The target to define the property change handler on."
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"name": "name",
|
|
1198
|
+
"type": {
|
|
1199
|
+
"text": "string"
|
|
1200
|
+
},
|
|
1201
|
+
"description": "The property name."
|
|
1202
|
+
}
|
|
1203
|
+
],
|
|
1204
|
+
"description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
|
|
1205
|
+
"privacy": "public"
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
"exports": [
|
|
1209
|
+
{
|
|
1210
|
+
"kind": "js",
|
|
1211
|
+
"name": "renderOnChange",
|
|
1212
|
+
"declaration": {
|
|
1213
|
+
"name": "renderOnChange",
|
|
1214
|
+
"module": "src/decorators/renderOnChange.ts"
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
]
|
|
1218
|
+
},
|
|
1219
1219
|
{
|
|
1220
1220
|
"kind": "javascript-module",
|
|
1221
1221
|
"path": "src/error/errorMap.ts",
|
|
@@ -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 { InactivityDialog as InactivityDialogWC } from './inactivity/inactivity-dialog';
|
|
8
|
+
import type { FoundationShortcutListener as FoundationShortcutListenerWC } from './shortcut-manager/shortcut-listener';
|
|
9
|
+
import type { SlottedStyles as SlottedStylesWC } from './styles/slotted-styles';
|
|
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 InactivityDialog: React.ForwardRefExoticComponent<
|
|
41
|
+
React.PropsWithChildren<
|
|
42
|
+
Omit<PublicOf<InactivityDialogWC>, 'children' | 'style'> &
|
|
43
|
+
HTMLWCProps & {
|
|
44
|
+
}
|
|
45
|
+
> & React.RefAttributes<InactivityDialogWC>
|
|
46
|
+
>;
|
|
47
|
+
export type InactivityDialogRef = InactivityDialogWC;
|
|
48
|
+
|
|
49
|
+
export declare const FoundationShortcutListener: React.ForwardRefExoticComponent<
|
|
50
|
+
React.PropsWithChildren<
|
|
51
|
+
Omit<PublicOf<FoundationShortcutListenerWC>, 'children' | 'style'> &
|
|
52
|
+
HTMLWCProps & {
|
|
53
|
+
}
|
|
54
|
+
> & React.RefAttributes<FoundationShortcutListenerWC>
|
|
55
|
+
>;
|
|
56
|
+
export type FoundationShortcutListenerRef = FoundationShortcutListenerWC;
|
|
57
|
+
|
|
58
|
+
export declare const SlottedStyles: React.ForwardRefExoticComponent<
|
|
59
|
+
React.PropsWithChildren<
|
|
60
|
+
Omit<PublicOf<SlottedStylesWC>, 'children' | 'style'> &
|
|
61
|
+
HTMLWCProps & {
|
|
62
|
+
}
|
|
63
|
+
> & React.RefAttributes<SlottedStylesWC>
|
|
64
|
+
>;
|
|
65
|
+
export type SlottedStylesRef = SlottedStylesWC;
|
|
66
|
+
|
|
67
|
+
export {};
|
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 { InactivityDialog: InactivityDialogWC } = require('./esm/inactivity/inactivity-dialog.js');
|
|
10
|
+
const { FoundationShortcutListener: FoundationShortcutListenerWC } = require('./esm/shortcut-manager/shortcut-listener.js');
|
|
11
|
+
const { SlottedStyles: SlottedStylesWC } = require('./esm/styles/slotted-styles.js');
|
|
12
|
+
|
|
13
|
+
const InactivityDialog = React.forwardRef(function InactivityDialog(props, ref) {
|
|
14
|
+
const { children, ...rest } = props;
|
|
15
|
+
return React.createElement(customElements.getName(InactivityDialogWC) ?? 'inactivity-dialog', { ...rest, ref }, children);
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
const FoundationShortcutListener = React.forwardRef(function FoundationShortcutListener(props, ref) {
|
|
19
|
+
const { children, ...rest } = props;
|
|
20
|
+
return React.createElement(customElements.getName(FoundationShortcutListenerWC) ?? 'foundation-shortcut-listener', { ...rest, ref }, children);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
const SlottedStyles = React.forwardRef(function SlottedStyles(props, ref) {
|
|
24
|
+
const { children, ...rest } = props;
|
|
25
|
+
return React.createElement(customElements.getName(SlottedStylesWC) ?? 'slotted-styles', { ...rest, ref }, children);
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
module.exports = {
|
|
29
|
+
InactivityDialog,
|
|
30
|
+
FoundationShortcutListener,
|
|
31
|
+
SlottedStyles,
|
|
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 { InactivityDialog as InactivityDialogWC } from './esm/inactivity/inactivity-dialog.js';
|
|
8
|
+
import { FoundationShortcutListener as FoundationShortcutListenerWC } from './esm/shortcut-manager/shortcut-listener.js';
|
|
9
|
+
import { SlottedStyles as SlottedStylesWC } from './esm/styles/slotted-styles.js';
|
|
10
|
+
|
|
11
|
+
export const InactivityDialog = React.forwardRef(function InactivityDialog(props, ref) {
|
|
12
|
+
const { children, ...rest } = props;
|
|
13
|
+
return React.createElement(customElements.getName(InactivityDialogWC) ?? 'inactivity-dialog', { ...rest, ref }, children);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
export const FoundationShortcutListener = React.forwardRef(function FoundationShortcutListener(props, ref) {
|
|
17
|
+
const { children, ...rest } = props;
|
|
18
|
+
return React.createElement(customElements.getName(FoundationShortcutListenerWC) ?? 'foundation-shortcut-listener', { ...rest, ref }, children);
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export const SlottedStyles = React.forwardRef(function SlottedStyles(props, ref) {
|
|
22
|
+
const { children, ...rest } = props;
|
|
23
|
+
return React.createElement(customElements.getName(SlottedStylesWC) ?? 'slotted-styles', { ...rest, ref }, children);
|
|
24
|
+
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-utils",
|
|
3
3
|
"description": "Genesis Foundation Utils",
|
|
4
|
-
"version": "14.461.1",
|
|
4
|
+
"version": "14.461.2-GENC-1346.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@genesislcap/foundation-testing": "14.461.1",
|
|
33
|
-
"@genesislcap/genx": "14.461.1",
|
|
34
|
-
"@genesislcap/rollup-builder": "14.461.1",
|
|
35
|
-
"@genesislcap/ts-builder": "14.461.1",
|
|
36
|
-
"@genesislcap/uvu-playwright-builder": "14.461.1",
|
|
37
|
-
"@genesislcap/vite-builder": "14.461.1",
|
|
38
|
-
"@genesislcap/webpack-builder": "14.461.1",
|
|
32
|
+
"@genesislcap/foundation-testing": "14.461.2-GENC-1346.1",
|
|
33
|
+
"@genesislcap/genx": "14.461.2-GENC-1346.1",
|
|
34
|
+
"@genesislcap/rollup-builder": "14.461.2-GENC-1346.1",
|
|
35
|
+
"@genesislcap/ts-builder": "14.461.2-GENC-1346.1",
|
|
36
|
+
"@genesislcap/uvu-playwright-builder": "14.461.2-GENC-1346.1",
|
|
37
|
+
"@genesislcap/vite-builder": "14.461.2-GENC-1346.1",
|
|
38
|
+
"@genesislcap/webpack-builder": "14.461.2-GENC-1346.1",
|
|
39
39
|
"@types/json-schema": "^7.0.11"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@genesislcap/expression-builder": "14.461.1",
|
|
43
|
-
"@genesislcap/foundation-logger": "14.461.1",
|
|
42
|
+
"@genesislcap/expression-builder": "14.461.2-GENC-1346.1",
|
|
43
|
+
"@genesislcap/foundation-logger": "14.461.2-GENC-1346.1",
|
|
44
44
|
"@microsoft/fast-components": "2.30.6",
|
|
45
45
|
"@microsoft/fast-element": "1.14.0",
|
|
46
46
|
"@microsoft/fast-foundation": "2.50.0",
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"customElements": "dist/custom-elements.json",
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "0729266a735c8d8d74192119552f0774c6038436"
|
|
62
62
|
}
|