@m3e/react 2.3.2 → 2.4.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/all.js +50 -1
- package/dist/all.js.map +1 -1
- package/dist/all.min.js +1 -1
- package/dist/all.min.js.map +1 -1
- package/dist/src/all.d.ts +1 -0
- package/dist/src/all.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts +19 -0
- package/dist/src/tree/Tree.d.ts.map +1 -0
- package/dist/src/tree/TreeItem.d.ts +23 -0
- package/dist/src/tree/TreeItem.d.ts.map +1 -0
- package/dist/src/tree/index.d.ts +3 -0
- package/dist/src/tree/index.d.ts.map +1 -0
- package/dist/tree.js +59 -0
- package/dist/tree.js.map +1 -0
- package/dist/tree.min.js +7 -0
- package/dist/tree.min.js.map +1 -0
- package/package.json +6 -2
package/dist/src/all.d.ts
CHANGED
package/dist/src/all.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../src/all.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;A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AAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { M3eTreeElement } from "@m3e/web/tree";
|
|
2
|
+
export type { M3eTreeElement } from "@m3e/web/tree";
|
|
3
|
+
/**
|
|
4
|
+
* React binding for the `m3e-tree` Web Component from `@m3e/web/tree`.
|
|
5
|
+
*
|
|
6
|
+
* This component renders the underlying `<m3e-tree>` element and exposes its
|
|
7
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
8
|
+
*
|
|
9
|
+
* Props map directly to element properties, and event handlers receive the
|
|
10
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
11
|
+
* underlying `<m3e-tree>` instance for imperative access.
|
|
12
|
+
*
|
|
13
|
+
* See the `m3e-tree` documentation for full details on behavior, styling,
|
|
14
|
+
* accessibility, and supported events.
|
|
15
|
+
*/
|
|
16
|
+
export declare const M3eTree: import("@lit/react").ReactWebComponent<M3eTreeElement, {
|
|
17
|
+
onChange: string;
|
|
18
|
+
}>;
|
|
19
|
+
//# sourceMappingURL=Tree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../../../src/tree/Tree.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO;;EAOlB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { M3eTreeItemElement } from "@m3e/web/tree";
|
|
2
|
+
export type { M3eTreeItemElement } from "@m3e/web/tree";
|
|
3
|
+
/**
|
|
4
|
+
* React binding for the `m3e-tree-item` Web Component from `@m3e/web/tree`.
|
|
5
|
+
*
|
|
6
|
+
* This component renders the underlying `<m3e-tree-item>` element and exposes its
|
|
7
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
8
|
+
*
|
|
9
|
+
* Props map directly to element properties, and event handlers receive the
|
|
10
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
11
|
+
* underlying `<m3e-tree-item>` instance for imperative access.
|
|
12
|
+
*
|
|
13
|
+
* See the `m3e-tree-item` documentation for full details on behavior, styling,
|
|
14
|
+
* accessibility, and supported events.
|
|
15
|
+
*/
|
|
16
|
+
export declare const M3eTreeItem: import("@lit/react").ReactWebComponent<M3eTreeItemElement, {
|
|
17
|
+
onOpening: string;
|
|
18
|
+
onOpened: string;
|
|
19
|
+
onClosing: string;
|
|
20
|
+
onClosed: string;
|
|
21
|
+
onClick: string;
|
|
22
|
+
}>;
|
|
23
|
+
//# sourceMappingURL=TreeItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TreeItem.d.ts","sourceRoot":"","sources":["../../../src/tree/TreeItem.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,YAAY,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAExD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,WAAW;;;;;;EAWtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tree/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
|
package/dist/tree.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* Copyright (c) 2025–2026 matraic
|
|
4
|
+
* See LICENSE file in the project root for full license text.
|
|
5
|
+
*/
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { createComponent } from '@lit/react';
|
|
8
|
+
import { M3eTreeElement, M3eTreeItemElement } from '@m3e/web/tree';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* React binding for the `m3e-tree` Web Component from `@m3e/web/tree`.
|
|
12
|
+
*
|
|
13
|
+
* This component renders the underlying `<m3e-tree>` element and exposes its
|
|
14
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
15
|
+
*
|
|
16
|
+
* Props map directly to element properties, and event handlers receive the
|
|
17
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
18
|
+
* underlying `<m3e-tree>` instance for imperative access.
|
|
19
|
+
*
|
|
20
|
+
* See the `m3e-tree` documentation for full details on behavior, styling,
|
|
21
|
+
* accessibility, and supported events.
|
|
22
|
+
*/
|
|
23
|
+
const M3eTree = createComponent({
|
|
24
|
+
tagName: "m3e-tree",
|
|
25
|
+
elementClass: M3eTreeElement,
|
|
26
|
+
react: React,
|
|
27
|
+
events: {
|
|
28
|
+
onChange: "change"
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* React binding for the `m3e-tree-item` Web Component from `@m3e/web/tree`.
|
|
34
|
+
*
|
|
35
|
+
* This component renders the underlying `<m3e-tree-item>` element and exposes its
|
|
36
|
+
* properties, attributes, and events through an idiomatic React interface.
|
|
37
|
+
*
|
|
38
|
+
* Props map directly to element properties, and event handlers receive the
|
|
39
|
+
* native DOM events dispatched by the component. Refs are forwarded to the
|
|
40
|
+
* underlying `<m3e-tree-item>` instance for imperative access.
|
|
41
|
+
*
|
|
42
|
+
* See the `m3e-tree-item` documentation for full details on behavior, styling,
|
|
43
|
+
* accessibility, and supported events.
|
|
44
|
+
*/
|
|
45
|
+
const M3eTreeItem = createComponent({
|
|
46
|
+
tagName: "m3e-tree-item",
|
|
47
|
+
elementClass: M3eTreeItemElement,
|
|
48
|
+
react: React,
|
|
49
|
+
events: {
|
|
50
|
+
onOpening: "opening",
|
|
51
|
+
onOpened: "opened",
|
|
52
|
+
onClosing: "closing",
|
|
53
|
+
onClosed: "closed",
|
|
54
|
+
onClick: "click"
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export { M3eTree, M3eTreeItem };
|
|
59
|
+
//# sourceMappingURL=tree.js.map
|
package/dist/tree.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.js","sources":["../../src/tree/Tree.ts","../../src/tree/TreeItem.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eTreeElement } from \"@m3e/web/tree\";\r\nexport type { M3eTreeElement } from \"@m3e/web/tree\";\r\n\r\n/**\r\n * React binding for the `m3e-tree` Web Component from `@m3e/web/tree`.\r\n *\r\n * This component renders the underlying `<m3e-tree>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-tree>` instance for imperative access.\r\n *\r\n * See the `m3e-tree` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTree = createComponent({\r\n tagName: \"m3e-tree\",\r\n elementClass: M3eTreeElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eTreeItemElement } from \"@m3e/web/tree\";\r\nexport type { M3eTreeItemElement } from \"@m3e/web/tree\";\r\n\r\n/**\r\n * React binding for the `m3e-tree-item` Web Component from `@m3e/web/tree`.\r\n *\r\n * This component renders the underlying `<m3e-tree-item>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-tree-item>` instance for imperative access.\r\n *\r\n * See the `m3e-tree-item` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTreeItem = createComponent({\r\n tagName: \"m3e-tree-item\",\r\n elementClass: M3eTreeItemElement,\r\n react: React,\r\n events: {\r\n onOpening: \"opening\",\r\n onOpened: \"opened\",\r\n onClosing: \"closing\",\r\n onClosed: \"closed\",\r\n onClick: \"click\",\r\n },\r\n});\r\n"],"names":["M3eTree","createComponent","tagName","elementClass","M3eTreeElement","react","React","events","onChange","M3eTreeItem","M3eTreeItemElement","onOpening","onOpened","onClosing","onClosed","onClick"],"mappings":";;;;;;;;;AAMA;;;;;;;;;;;;AAYG;AACI,MAAMA,OAAO,GAAGC,eAAe,CAAC;AACrCC,EAAAA,OAAO,EAAE,UAAU;AACnBC,EAAAA,YAAY,EAAEC,cAAc;AAC5BC,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNC,IAAAA,QAAQ,EAAE;AACX;AACF,CAAA;;ACpBD;;;;;;;;;;;;AAYG;AACI,MAAMC,WAAW,GAAGR,eAAe,CAAC;AACzCC,EAAAA,OAAO,EAAE,eAAe;AACxBC,EAAAA,YAAY,EAAEO,kBAAkB;AAChCL,EAAAA,KAAK,EAAEC,KAAK;AACZC,EAAAA,MAAM,EAAE;AACNI,IAAAA,SAAS,EAAE,SAAS;AACpBC,IAAAA,QAAQ,EAAE,QAAQ;AAClBC,IAAAA,SAAS,EAAE,SAAS;AACpBC,IAAAA,QAAQ,EAAE,QAAQ;AAClBC,IAAAA,OAAO,EAAE;AACV;AACF,CAAA;;;;"}
|
package/dist/tree.min.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
* Copyright (c) 2025–2026 matraic
|
|
4
|
+
* See LICENSE file in the project root for full license text.
|
|
5
|
+
*/
|
|
6
|
+
import e from"react";import{createComponent as n}from"@lit/react";import{M3eTreeElement as o,M3eTreeItemElement as t}from"@m3e/web/tree";const m=n({tagName:"m3e-tree",elementClass:o,react:e,events:{onChange:"change"}}),r=n({tagName:"m3e-tree-item",elementClass:t,react:e,events:{onOpening:"opening",onOpened:"opened",onClosing:"closing",onClosed:"closed",onClick:"click"}});export{m as M3eTree,r as M3eTreeItem};
|
|
7
|
+
//# sourceMappingURL=tree.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tree.min.js","sources":["../../src/tree/Tree.ts","../../src/tree/TreeItem.ts"],"sourcesContent":["import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eTreeElement } from \"@m3e/web/tree\";\r\nexport type { M3eTreeElement } from \"@m3e/web/tree\";\r\n\r\n/**\r\n * React binding for the `m3e-tree` Web Component from `@m3e/web/tree`.\r\n *\r\n * This component renders the underlying `<m3e-tree>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-tree>` instance for imperative access.\r\n *\r\n * See the `m3e-tree` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTree = createComponent({\r\n tagName: \"m3e-tree\",\r\n elementClass: M3eTreeElement,\r\n react: React,\r\n events: {\r\n onChange: \"change\",\r\n },\r\n});\r\n","import React from \"react\";\r\nimport { createComponent } from \"@lit/react\";\r\n\r\nimport { M3eTreeItemElement } from \"@m3e/web/tree\";\r\nexport type { M3eTreeItemElement } from \"@m3e/web/tree\";\r\n\r\n/**\r\n * React binding for the `m3e-tree-item` Web Component from `@m3e/web/tree`.\r\n *\r\n * This component renders the underlying `<m3e-tree-item>` element and exposes its\r\n * properties, attributes, and events through an idiomatic React interface.\r\n *\r\n * Props map directly to element properties, and event handlers receive the\r\n * native DOM events dispatched by the component. Refs are forwarded to the\r\n * underlying `<m3e-tree-item>` instance for imperative access.\r\n *\r\n * See the `m3e-tree-item` documentation for full details on behavior, styling,\r\n * accessibility, and supported events.\r\n */\r\nexport const M3eTreeItem = createComponent({\r\n tagName: \"m3e-tree-item\",\r\n elementClass: M3eTreeItemElement,\r\n react: React,\r\n events: {\r\n onOpening: \"opening\",\r\n onOpened: \"opened\",\r\n onClosing: \"closing\",\r\n onClosed: \"closed\",\r\n onClick: \"click\",\r\n },\r\n});\r\n"],"names":["M3eTree","createComponent","tagName","elementClass","M3eTreeElement","react","React","events","onChange","M3eTreeItem","M3eTreeItemElement","onOpening","onOpened","onClosing","onClosed","onClick"],"mappings":";;;;;yIAmBO,MAAMA,EAAUC,EAAgB,CACrCC,QAAS,WACTC,aAAcC,EACdC,MAAOC,EACPC,OAAQ,CACNC,SAAU,YCLDC,EAAcR,EAAgB,CACzCC,QAAS,gBACTC,aAAcO,EACdL,MAAOC,EACPC,OAAQ,CACNI,UAAW,UACXC,SAAU,SACVC,UAAW,UACXC,SAAU,SACVC,QAAS"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m3e/react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "React bindings for M3E Web Components",
|
|
5
5
|
"author": "matraic <matraic@yahoo.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -219,6 +219,10 @@
|
|
|
219
219
|
"types": "./dist/src/tooltip/index.d.ts",
|
|
220
220
|
"default": "./dist/tooltip.js"
|
|
221
221
|
},
|
|
222
|
+
"./tree": {
|
|
223
|
+
"types": "./dist/src/tree/index.d.ts",
|
|
224
|
+
"default": "./dist/tree.js"
|
|
225
|
+
},
|
|
222
226
|
"./all": {
|
|
223
227
|
"types": "./dist/src/all.d.ts",
|
|
224
228
|
"default": "./dist/all.js"
|
|
@@ -232,7 +236,7 @@
|
|
|
232
236
|
},
|
|
233
237
|
"peerDependencies": {
|
|
234
238
|
"@lit/react": "^1.0.8",
|
|
235
|
-
"@m3e/web": "^2.
|
|
239
|
+
"@m3e/web": "^2.4.0",
|
|
236
240
|
"lit": "^3.3.0",
|
|
237
241
|
"react": ">=18"
|
|
238
242
|
}
|