@vaadin/react-components-pro 25.0.1 → 25.1.0-alpha1
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/Dashboard.js +1 -1
- package/Dashboard.js.map +2 -2
- package/generated/Dashboard.d.ts +1 -0
- package/generated/Dashboard.d.ts.map +1 -1
- package/package.json +9 -9
package/Dashboard.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export*from"@vaadin/dashboard/vaadin-dashboard.js";import{forwardRef as h}from"react";import{Dashboard as d}from"@vaadin/dashboard/vaadin-dashboard.js";import*as s from"react";import{createComponent as m}from"./utils/createComponent.js";var n={onDashboardItemMoveModeChanged:"dashboard-item-move-mode-changed",onDashboardItemMoved:"dashboard-item-moved",onDashboardItemRemoved:"dashboard-item-removed",onDashboardItemResizeModeChanged:"dashboard-item-resize-mode-changed",onDashboardItemResized:"dashboard-item-resized",onDashboardItemSelectedChanged:"dashboard-item-selected-changed"},a=m({elementClass:d,events:n,react:s,tagName:"vaadin-dashboard"});import{useModelRenderer as b}from"@vaadin/react-components/renderers/useModelRenderer.js";import{jsx as D}from"react/jsx-runtime";function p(e,o){let[r,t]=b(e.renderer??e.children);return D(a,{...e,ref:o,renderer:t,children:r})}var T=h(p);export{T as Dashboard,d as DashboardElement};
|
|
1
|
+
export*from"@vaadin/dashboard/vaadin-dashboard.js";import{forwardRef as h}from"react";import{Dashboard as d}from"@vaadin/dashboard/vaadin-dashboard.js";import*as s from"react";import{createComponent as m}from"./utils/createComponent.js";var n={onDashboardItemBeforeRemove:"dashboard-item-before-remove",onDashboardItemMoveModeChanged:"dashboard-item-move-mode-changed",onDashboardItemMoved:"dashboard-item-moved",onDashboardItemRemoved:"dashboard-item-removed",onDashboardItemResizeModeChanged:"dashboard-item-resize-mode-changed",onDashboardItemResized:"dashboard-item-resized",onDashboardItemSelectedChanged:"dashboard-item-selected-changed"},a=m({elementClass:d,events:n,react:s,tagName:"vaadin-dashboard"});import{useModelRenderer as b}from"@vaadin/react-components/renderers/useModelRenderer.js";import{jsx as D}from"react/jsx-runtime";function p(e,o){let[r,t]=b(e.renderer??e.children);return D(a,{...e,ref:o,renderer:t,children:r})}var T=h(p);export{T as Dashboard,d as DashboardElement};
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
package/Dashboard.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["src/Dashboard.tsx", "src/generated/Dashboard.ts"],
|
|
4
|
-
"sourcesContent": ["export * from \"@vaadin/dashboard/vaadin-dashboard.js\";\n/**\n * @license\n * Copyright (c) 2000 - 2024 Vaadin Ltd.\n *\n * This program is available under Vaadin Commercial License and Service Terms.\n *\n *\n * See https://vaadin.com/commercial-license-and-service-terms for the full\n * license.\n */\nimport { type ComponentType, type ForwardedRef, forwardRef, type ReactElement, type RefAttributes } from 'react';\nimport {\n Dashboard as _Dashboard,\n type DashboardItem,\n type DashboardElement,\n type DashboardProps as _DashboardProps,\n type DashboardItemModel,\n} from './generated/Dashboard.js';\nimport { type ReactModelRendererProps, useModelRenderer } from '@vaadin/react-components/renderers/useModelRenderer.js';\n\nexport * from './generated/Dashboard.js';\n\nexport type DashboardReactRendererProps<TItem extends DashboardItem> = ReactModelRendererProps<\n TItem,\n DashboardItemModel<TItem>,\n DashboardElement<TItem>\n>;\n\nexport type DashboardProps<TItem extends DashboardItem> = Partial<\n Omit<_DashboardProps<TItem>, 'children' | 'renderer'>\n> &\n Readonly<{\n children?: ComponentType<DashboardReactRendererProps<TItem>> | null;\n renderer?: ComponentType<DashboardReactRendererProps<TItem>> | null;\n }>;\n\nfunction Dashboard<TItem extends DashboardItem = DashboardItem>(\n props: DashboardProps<TItem>,\n ref: ForwardedRef<DashboardElement<TItem>>,\n): ReactElement | null {\n const [portals, renderer] = useModelRenderer(props.renderer ?? props.children);\n\n return (\n <_Dashboard<TItem> {...props} ref={ref} renderer={renderer as any}>\n {portals}\n </_Dashboard>\n );\n}\n\nconst ForwardedDashboard = forwardRef(Dashboard) as <TItem extends DashboardItem = DashboardItem>(\n props: DashboardProps<TItem> & RefAttributes<DashboardElement<TItem>>,\n) => ReactElement | null;\n\nexport { ForwardedDashboard as Dashboard };\n", "import type { EventName } from \"@lit/react\";\nimport { Dashboard as DashboardElement, type DashboardEventMap as _DashboardEventMap, type DashboardItem } from \"@vaadin/dashboard/vaadin-dashboard.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { DashboardElement, };\nexport type DashboardEventMap<T1 extends DashboardItem = DashboardItem> = Readonly<{\n onDashboardItemMoveModeChanged: EventName<_DashboardEventMap<T1>[\"dashboard-item-move-mode-changed\"]>;\n onDashboardItemMoved: EventName<_DashboardEventMap<T1>[\"dashboard-item-moved\"]>;\n onDashboardItemRemoved: EventName<_DashboardEventMap<T1>[\"dashboard-item-removed\"]>;\n onDashboardItemResizeModeChanged: EventName<_DashboardEventMap<T1>[\"dashboard-item-resize-mode-changed\"]>;\n onDashboardItemResized: EventName<_DashboardEventMap<T1>[\"dashboard-item-resized\"]>;\n onDashboardItemSelectedChanged: EventName<_DashboardEventMap<T1>[\"dashboard-item-selected-changed\"]>;\n}>;\nconst events = { onDashboardItemMoveModeChanged: \"dashboard-item-move-mode-changed\", onDashboardItemMoved: \"dashboard-item-moved\", onDashboardItemRemoved: \"dashboard-item-removed\", onDashboardItemResizeModeChanged: \"dashboard-item-resize-mode-changed\", onDashboardItemResized: \"dashboard-item-resized\", onDashboardItemSelectedChanged: \"dashboard-item-selected-changed\" } as DashboardEventMap<any>;\nexport type DashboardProps<T1 extends DashboardItem = DashboardItem> = WebComponentProps<DashboardElement<T1>, DashboardEventMap<T1>>;\nexport const Dashboard = createComponent({\n elementClass: DashboardElement, events, react: React, tagName: \"vaadin-dashboard\"\n}) as <T1 extends DashboardItem = DashboardItem>(props: DashboardProps<T1> & React.RefAttributes<DashboardElement<T1>>) => React.ReactElement | null;\n"],
|
|
5
|
-
"mappings": "AAAA,WAAc,wCAWd,OAAgD,cAAAA,MAAyD,QCVzG,OAAS,aAAaC,MAA0F,wCAChH,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,
|
|
4
|
+
"sourcesContent": ["export * from \"@vaadin/dashboard/vaadin-dashboard.js\";\n/**\n * @license\n * Copyright (c) 2000 - 2024 Vaadin Ltd.\n *\n * This program is available under Vaadin Commercial License and Service Terms.\n *\n *\n * See https://vaadin.com/commercial-license-and-service-terms for the full\n * license.\n */\nimport { type ComponentType, type ForwardedRef, forwardRef, type ReactElement, type RefAttributes } from 'react';\nimport {\n Dashboard as _Dashboard,\n type DashboardItem,\n type DashboardElement,\n type DashboardProps as _DashboardProps,\n type DashboardItemModel,\n} from './generated/Dashboard.js';\nimport { type ReactModelRendererProps, useModelRenderer } from '@vaadin/react-components/renderers/useModelRenderer.js';\n\nexport * from './generated/Dashboard.js';\n\nexport type DashboardReactRendererProps<TItem extends DashboardItem> = ReactModelRendererProps<\n TItem,\n DashboardItemModel<TItem>,\n DashboardElement<TItem>\n>;\n\nexport type DashboardProps<TItem extends DashboardItem> = Partial<\n Omit<_DashboardProps<TItem>, 'children' | 'renderer'>\n> &\n Readonly<{\n children?: ComponentType<DashboardReactRendererProps<TItem>> | null;\n renderer?: ComponentType<DashboardReactRendererProps<TItem>> | null;\n }>;\n\nfunction Dashboard<TItem extends DashboardItem = DashboardItem>(\n props: DashboardProps<TItem>,\n ref: ForwardedRef<DashboardElement<TItem>>,\n): ReactElement | null {\n const [portals, renderer] = useModelRenderer(props.renderer ?? props.children);\n\n return (\n <_Dashboard<TItem> {...props} ref={ref} renderer={renderer as any}>\n {portals}\n </_Dashboard>\n );\n}\n\nconst ForwardedDashboard = forwardRef(Dashboard) as <TItem extends DashboardItem = DashboardItem>(\n props: DashboardProps<TItem> & RefAttributes<DashboardElement<TItem>>,\n) => ReactElement | null;\n\nexport { ForwardedDashboard as Dashboard };\n", "import type { EventName } from \"@lit/react\";\nimport { Dashboard as DashboardElement, type DashboardEventMap as _DashboardEventMap, type DashboardItem } from \"@vaadin/dashboard/vaadin-dashboard.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { DashboardElement, };\nexport type DashboardEventMap<T1 extends DashboardItem = DashboardItem> = Readonly<{\n onDashboardItemBeforeRemove: EventName<_DashboardEventMap<T1>[\"dashboard-item-before-remove\"]>;\n onDashboardItemMoveModeChanged: EventName<_DashboardEventMap<T1>[\"dashboard-item-move-mode-changed\"]>;\n onDashboardItemMoved: EventName<_DashboardEventMap<T1>[\"dashboard-item-moved\"]>;\n onDashboardItemRemoved: EventName<_DashboardEventMap<T1>[\"dashboard-item-removed\"]>;\n onDashboardItemResizeModeChanged: EventName<_DashboardEventMap<T1>[\"dashboard-item-resize-mode-changed\"]>;\n onDashboardItemResized: EventName<_DashboardEventMap<T1>[\"dashboard-item-resized\"]>;\n onDashboardItemSelectedChanged: EventName<_DashboardEventMap<T1>[\"dashboard-item-selected-changed\"]>;\n}>;\nconst events = { onDashboardItemBeforeRemove: \"dashboard-item-before-remove\", onDashboardItemMoveModeChanged: \"dashboard-item-move-mode-changed\", onDashboardItemMoved: \"dashboard-item-moved\", onDashboardItemRemoved: \"dashboard-item-removed\", onDashboardItemResizeModeChanged: \"dashboard-item-resize-mode-changed\", onDashboardItemResized: \"dashboard-item-resized\", onDashboardItemSelectedChanged: \"dashboard-item-selected-changed\" } as DashboardEventMap<any>;\nexport type DashboardProps<T1 extends DashboardItem = DashboardItem> = WebComponentProps<DashboardElement<T1>, DashboardEventMap<T1>>;\nexport const Dashboard = createComponent({\n elementClass: DashboardElement, events, react: React, tagName: \"vaadin-dashboard\"\n}) as <T1 extends DashboardItem = DashboardItem>(props: DashboardProps<T1> & React.RefAttributes<DashboardElement<T1>>) => React.ReactElement | null;\n"],
|
|
5
|
+
"mappings": "AAAA,WAAc,wCAWd,OAAgD,cAAAA,MAAyD,QCVzG,OAAS,aAAaC,MAA0F,wCAChH,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAWxD,IAAMC,EAAS,CAAE,4BAA6B,+BAAgC,+BAAgC,mCAAoC,qBAAsB,uBAAwB,uBAAwB,yBAA0B,iCAAkC,qCAAsC,uBAAwB,yBAA0B,+BAAgC,iCAAkC,EAEjaC,EAAYC,EAAgB,CACrC,aAAcC,EAAkB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,kBACnE,CAAC,EDCD,OAAuC,oBAAAC,MAAwB,yDAyB3D,cAAAC,MAAA,oBAPJ,SAASC,EACPC,EACAC,EACqB,CACrB,GAAM,CAACC,EAASC,CAAQ,EAAIN,EAAiBG,EAAM,UAAYA,EAAM,QAAQ,EAE7E,OACEF,EAACC,EAAA,CAAmB,GAAGC,EAAO,IAAKC,EAAK,SAAUE,EAC/C,SAAAD,EACH,CAEJ,CAEA,IAAME,EAAqBC,EAAWN,CAAS",
|
|
6
6
|
"names": ["forwardRef", "DashboardElement", "React", "createComponent", "events", "Dashboard", "createComponent", "DashboardElement", "React", "useModelRenderer", "jsx", "Dashboard", "props", "ref", "portals", "renderer", "ForwardedDashboard", "forwardRef"]
|
|
7
7
|
}
|
package/generated/Dashboard.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { type WebComponentProps } from "../utils/createComponent.js";
|
|
|
5
5
|
export * from "@vaadin/dashboard/vaadin-dashboard.js";
|
|
6
6
|
export { DashboardElement, };
|
|
7
7
|
export type DashboardEventMap<T1 extends DashboardItem = DashboardItem> = Readonly<{
|
|
8
|
+
onDashboardItemBeforeRemove: EventName<_DashboardEventMap<T1>["dashboard-item-before-remove"]>;
|
|
8
9
|
onDashboardItemMoveModeChanged: EventName<_DashboardEventMap<T1>["dashboard-item-move-mode-changed"]>;
|
|
9
10
|
onDashboardItemMoved: EventName<_DashboardEventMap<T1>["dashboard-item-moved"]>;
|
|
10
11
|
onDashboardItemRemoved: EventName<_DashboardEventMap<T1>["dashboard-item-removed"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../src/generated/Dashboard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,KAAK,iBAAiB,IAAI,kBAAkB,EAAE,KAAK,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACxJ,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,uCAAuC,CAAC;AACtD,OAAO,EAAE,gBAAgB,GAAG,CAAC;AAC7B,MAAM,MAAM,iBAAiB,CAAC,EAAE,SAAS,aAAa,GAAG,aAAa,IAAI,QAAQ,CAAC;IAC/E,8BAA8B,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,kCAAkC,CAAC,CAAC,CAAC;IACtG,oBAAoB,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC;IAChF,sBAAsB,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACpF,gCAAgC,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC;IAC1G,sBAAsB,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACpF,8BAA8B,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC;CACxG,CAAC,CAAC;AAEH,MAAM,MAAM,cAAc,CAAC,EAAE,SAAS,aAAa,GAAG,aAAa,IAAI,iBAAiB,CA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AC,oCAAoC,CAAC,CAAC,CAAC;IAC1G,sBAAsB,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACpF,8BAA8B,EAAE,SAAS,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC,iCAAiC,CAAC,CAAC,CAAC;CACxG,CAAC,CAAC;AAEH,MAAM,MAAM,cAAc,CAAC,EAAE,SAAS,aAAa,GAAG,aAAa,IAAI,iBAAiB,CAAC,gBAAgB,CAAC,EAAE,CAAC,EAAE,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;AACtI,eAAO,MAAM,SAAS,EAEhB,CAAC,EAAE,SAAS,aAAa,GAAG,aAAa,EAAE,KAAK,EAAE,cAAc,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/react-components-pro",
|
|
3
|
-
"version": "25.0
|
|
3
|
+
"version": "25.1.0-alpha1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@lit/react": "^1.0.7",
|
|
29
|
-
"@vaadin/board": "25.0
|
|
30
|
-
"@vaadin/charts": "25.0
|
|
31
|
-
"@vaadin/crud": "25.0
|
|
32
|
-
"@vaadin/dashboard": "25.0
|
|
33
|
-
"@vaadin/grid-pro": "25.0
|
|
34
|
-
"@vaadin/map": "25.0
|
|
35
|
-
"@vaadin/react-components": "25.0
|
|
36
|
-
"@vaadin/rich-text-editor": "25.0
|
|
29
|
+
"@vaadin/board": "25.1.0-alpha1",
|
|
30
|
+
"@vaadin/charts": "25.1.0-alpha1",
|
|
31
|
+
"@vaadin/crud": "25.1.0-alpha1",
|
|
32
|
+
"@vaadin/dashboard": "25.1.0-alpha1",
|
|
33
|
+
"@vaadin/grid-pro": "25.1.0-alpha1",
|
|
34
|
+
"@vaadin/map": "25.1.0-alpha1",
|
|
35
|
+
"@vaadin/react-components": "25.1.0-alpha1",
|
|
36
|
+
"@vaadin/rich-text-editor": "25.1.0-alpha1"
|
|
37
37
|
},
|
|
38
38
|
"author": "Vaadin Ltd.",
|
|
39
39
|
"license": "SEE LICENSE IN LICENSE",
|