@vaadin/react-components-pro 24.5.0-rc2 → 24.6.0-alpha2
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/Crud.js +1 -1
- package/Crud.js.map +1 -1
- package/Dashboard.d.ts +22 -0
- package/Dashboard.d.ts.map +1 -0
- package/Dashboard.js +12 -0
- package/Dashboard.js.map +7 -0
- package/DashboardLayout.d.ts +2 -0
- package/DashboardLayout.d.ts.map +1 -0
- package/DashboardLayout.js +2 -0
- package/DashboardLayout.js.map +7 -0
- package/DashboardSection.d.ts +2 -0
- package/DashboardSection.d.ts.map +1 -0
- package/DashboardSection.js +2 -0
- package/DashboardSection.js.map +7 -0
- package/DashboardWidget.d.ts +2 -0
- package/DashboardWidget.d.ts.map +1 -0
- package/DashboardWidget.js +2 -0
- package/DashboardWidget.js.map +7 -0
- package/GridPro.js.map +1 -1
- package/GridProEditColumn.js.map +1 -1
- package/generated/Dashboard.d.ts +17 -0
- package/generated/Dashboard.d.ts.map +1 -0
- package/generated/DashboardLayout.d.ts +9 -0
- package/generated/DashboardLayout.d.ts.map +1 -0
- package/generated/DashboardSection.d.ts +9 -0
- package/generated/DashboardSection.d.ts.map +1 -0
- package/generated/DashboardWidget.d.ts +9 -0
- package/generated/DashboardWidget.d.ts.map +1 -0
- package/index.d.ts +4 -0
- package/index.js +4 -0
- package/package.json +30 -9
package/Crud.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export*from"@vaadin/crud/vaadin-crud.js";import{Crud as
|
|
1
|
+
export*from"@vaadin/crud/vaadin-crud.js";import{Crud as t}from"@vaadin/crud/vaadin-crud.js";import*as n from"react";import{createComponent as a}from"./utils/createComponent.js";var d={onCancel:"cancel",onDelete:"delete",onEdit:"edit",onNew:"new",onSave:"save",onItemsChanged:"items-changed",onEditedItemChanged:"edited-item-changed",onEditorOpenedChanged:"editor-opened-changed",onSizeChanged:"size-changed"},p=a({elementClass:t,events:d,react:n,tagName:"vaadin-crud"});function C(e){return{path:e}}export{p as Crud,t as CrudElement,C as crudPath};
|
|
2
2
|
/**
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
package/Crud.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["src/Crud.ts", "src/generated/Crud.ts"],
|
|
4
|
-
"sourcesContent": ["export * from \"@vaadin/crud/vaadin-crud.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 */\nexport * from './generated/Crud.js';\n\n/**\n * A helper function that allows declaring the value path (or key) on\n * the fields in a custom form of a `<Crud />` component.\n *\n * ### Usage\n *\n * ```tsx\n * <Crud>\n * <FormLayout slot=\"form\">\n * <TextField label=\"Name\" {...crudPath('name')} />\n * </FormLayout>\n * </Crud>\n * ```\n *\n * @param path The path of the particular field's value in the CRUD\n * item objects.\n *\n * @returns object with HTML attribute values recognized on a CRUD form field.\n */\nexport function crudPath(path: string): Record<string, string> {\n return { path } as Record<string, string>;\n}\n", "import type { EventName } from \"@lit/react\";\nimport { Crud as CrudElement, type CrudEventMap as _CrudEventMap, } from \"@vaadin/crud/vaadin-crud.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { CrudElement, };\nexport type CrudEventMap<T1> = Readonly<{\n onCancel: EventName<_CrudEventMap<T1>[\"cancel\"]>;\n onDelete: EventName<_CrudEventMap<T1>[\"delete\"]>;\n onEdit: EventName<_CrudEventMap<T1>[\"edit\"]>;\n onNew: EventName<_CrudEventMap<T1>[\"new\"]>;\n onSave: EventName<_CrudEventMap<T1>[\"save\"]>;\n onItemsChanged: EventName<_CrudEventMap<T1>[\"items-changed\"]>;\n onEditedItemChanged: EventName<_CrudEventMap<T1>[\"edited-item-changed\"]>;\n onEditorOpenedChanged: EventName<_CrudEventMap<T1>[\"editor-opened-changed\"]>;\n onSizeChanged: EventName<_CrudEventMap<T1>[\"size-changed\"]>;\n}>;\nconst events = { onCancel: \"cancel\", onDelete: \"delete\", onEdit: \"edit\", onNew: \"new\", onSave: \"save\", onItemsChanged: \"items-changed\", onEditedItemChanged: \"edited-item-changed\", onEditorOpenedChanged: \"editor-opened-changed\", onSizeChanged: \"size-changed\" } as CrudEventMap<
|
|
4
|
+
"sourcesContent": ["export * from \"@vaadin/crud/vaadin-crud.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 */\nexport * from './generated/Crud.js';\n\n/**\n * A helper function that allows declaring the value path (or key) on\n * the fields in a custom form of a `<Crud />` component.\n *\n * ### Usage\n *\n * ```tsx\n * <Crud>\n * <FormLayout slot=\"form\">\n * <TextField label=\"Name\" {...crudPath('name')} />\n * </FormLayout>\n * </Crud>\n * ```\n *\n * @param path The path of the particular field's value in the CRUD\n * item objects.\n *\n * @returns object with HTML attribute values recognized on a CRUD form field.\n */\nexport function crudPath(path: string): Record<string, string> {\n return { path } as Record<string, string>;\n}\n", "import type { EventName } from \"@lit/react\";\nimport { Crud as CrudElement, type CrudEventMap as _CrudEventMap, } from \"@vaadin/crud/vaadin-crud.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { CrudElement, };\nexport type CrudEventMap<T1> = Readonly<{\n onCancel: EventName<_CrudEventMap<T1>[\"cancel\"]>;\n onDelete: EventName<_CrudEventMap<T1>[\"delete\"]>;\n onEdit: EventName<_CrudEventMap<T1>[\"edit\"]>;\n onNew: EventName<_CrudEventMap<T1>[\"new\"]>;\n onSave: EventName<_CrudEventMap<T1>[\"save\"]>;\n onItemsChanged: EventName<_CrudEventMap<T1>[\"items-changed\"]>;\n onEditedItemChanged: EventName<_CrudEventMap<T1>[\"edited-item-changed\"]>;\n onEditorOpenedChanged: EventName<_CrudEventMap<T1>[\"editor-opened-changed\"]>;\n onSizeChanged: EventName<_CrudEventMap<T1>[\"size-changed\"]>;\n}>;\nconst events = { onCancel: \"cancel\", onDelete: \"delete\", onEdit: \"edit\", onNew: \"new\", onSave: \"save\", onItemsChanged: \"items-changed\", onEditedItemChanged: \"edited-item-changed\", onEditorOpenedChanged: \"editor-opened-changed\", onSizeChanged: \"size-changed\" } as CrudEventMap<any>;\nexport type CrudProps<T1> = WebComponentProps<CrudElement<T1>, CrudEventMap<T1>>;\nexport const Crud = createComponent({\n elementClass: CrudElement, events, react: React, tagName: \"vaadin-crud\"\n}) as <T1>(props: CrudProps<T1> & React.RefAttributes<CrudElement<T1>>) => React.ReactElement | null;\n"],
|
|
5
5
|
"mappings": "AAAA,WAAc,8BCCd,OAAS,QAAQA,MAAwD,8BACzE,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAaxD,IAAMC,EAAS,CAAE,SAAU,SAAU,SAAU,SAAU,OAAQ,OAAQ,MAAO,MAAO,OAAQ,OAAQ,eAAgB,gBAAiB,oBAAqB,sBAAuB,sBAAuB,wBAAyB,cAAe,cAAe,EAErPC,EAAOC,EAAgB,CAChC,aAAcC,EAAa,OAAAH,EAAQ,MAAOI,EAAO,QAAS,aAC9D,CAAC,EDYM,SAASC,EAASC,EAAsC,CAC7D,MAAO,CAAE,KAAAA,CAAK,CAChB",
|
|
6
6
|
"names": ["CrudElement", "React", "createComponent", "events", "Crud", "createComponent", "CrudElement", "React", "crudPath", "path"]
|
|
7
7
|
}
|
package/Dashboard.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
4
|
+
*
|
|
5
|
+
* This program is available under Vaadin Commercial License and Service Terms.
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
9
|
+
* license.
|
|
10
|
+
*/
|
|
11
|
+
import { type ComponentType, type ReactElement, type RefAttributes } from 'react';
|
|
12
|
+
import { type DashboardItem, type DashboardElement, type DashboardProps as _DashboardProps, type DashboardItemModel } from './generated/Dashboard.js';
|
|
13
|
+
import { type ReactModelRendererProps } from '@vaadin/react-components/renderers/useModelRenderer.js';
|
|
14
|
+
export * from './generated/Dashboard.js';
|
|
15
|
+
export type DashboardReactRendererProps<TItem extends DashboardItem> = ReactModelRendererProps<TItem, DashboardItemModel<TItem>, DashboardElement<TItem>>;
|
|
16
|
+
export type DashboardProps<TItem extends DashboardItem> = Partial<Omit<_DashboardProps<TItem>, 'children' | 'renderer'>> & Readonly<{
|
|
17
|
+
children?: ComponentType<DashboardReactRendererProps<TItem>> | null;
|
|
18
|
+
renderer?: ComponentType<DashboardReactRendererProps<TItem>> | null;
|
|
19
|
+
}>;
|
|
20
|
+
declare const ForwardedDashboard: <TItem extends DashboardItem = DashboardItem>(props: DashboardProps<TItem> & RefAttributes<DashboardElement<TItem>>) => ReactElement | null;
|
|
21
|
+
export { ForwardedDashboard as Dashboard };
|
|
22
|
+
//# sourceMappingURL=Dashboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["src/Dashboard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAE,KAAK,aAAa,EAAiC,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AACjH,OAAO,EAEL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,kBAAkB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,KAAK,uBAAuB,EAAoB,MAAM,wDAAwD,CAAC;AAExH,cAAc,0BAA0B,CAAC;AAEzC,MAAM,MAAM,2BAA2B,CAAC,KAAK,SAAS,aAAa,IAAI,uBAAuB,CAC5F,KAAK,EACL,kBAAkB,CAAC,KAAK,CAAC,EACzB,gBAAgB,CAAC,KAAK,CAAC,CACxB,CAAC;AAEF,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,aAAa,IAAI,OAAO,CAC/D,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,UAAU,CAAC,CACtD,GACC,QAAQ,CAAC;IACP,QAAQ,CAAC,EAAE,aAAa,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC;IACpE,QAAQ,CAAC,EAAE,aAAa,CAAC,2BAA2B,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC;CACrE,CAAC,CAAC;AAeL,QAAA,MAAM,kBAAkB,EAA4B,CAAC,KAA2C,SAA7B,aAAa,GAAG,aAAa,EAC9F,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,GAAG,aAAa,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,KAClE,YAAY,GAAG,IAAI,CAAC;AAEzB,OAAO,EAAE,kBAAkB,IAAI,SAAS,EAAE,CAAC"}
|
package/Dashboard.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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};
|
|
2
|
+
/**
|
|
3
|
+
* @license
|
|
4
|
+
* Copyright (c) 2000 - 2024 Vaadin Ltd.
|
|
5
|
+
*
|
|
6
|
+
* This program is available under Vaadin Commercial License and Service Terms.
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* See https://vaadin.com/commercial-license-and-service-terms for the full
|
|
10
|
+
* license.
|
|
11
|
+
*/
|
|
12
|
+
//# sourceMappingURL=Dashboard.js.map
|
package/Dashboard.js.map
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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,6BAUxD,IAAMC,EAAS,CAAE,+BAAgC,mCAAoC,qBAAsB,uBAAwB,uBAAwB,yBAA0B,iCAAkC,qCAAsC,uBAAwB,yBAA0B,+BAAgC,iCAAkC,EAEpWC,EAAYC,EAAgB,CACrC,aAAcC,EAAkB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,kBACnE,CAAC,EDED,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
|
+
"names": ["forwardRef", "DashboardElement", "React", "createComponent", "events", "Dashboard", "createComponent", "DashboardElement", "React", "useModelRenderer", "jsx", "Dashboard", "props", "ref", "portals", "renderer", "ForwardedDashboard", "forwardRef"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardLayout.d.ts","sourceRoot":"","sources":["src/DashboardLayout.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export*from"@vaadin/dashboard/vaadin-dashboard-layout.js";import{DashboardLayout as o}from"@vaadin/dashboard/vaadin-dashboard-layout.js";import*as a from"react";import{createComponent as t}from"./utils/createComponent.js";var e={},s=t({elementClass:o,events:e,react:a,tagName:"vaadin-dashboard-layout"});export{s as DashboardLayout,o as DashboardLayoutElement};
|
|
2
|
+
//# sourceMappingURL=DashboardLayout.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/DashboardLayout.ts", "src/generated/DashboardLayout.ts"],
|
|
4
|
+
"sourcesContent": ["export * from \"@vaadin/dashboard/vaadin-dashboard-layout.js\";\nexport * from './generated/DashboardLayout.js';\n", "import type {} from \"@lit/react\";\nimport { DashboardLayout as DashboardLayoutElement, } from \"@vaadin/dashboard/vaadin-dashboard-layout.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { DashboardLayoutElement, };\nexport type DashboardLayoutEventMap = Readonly<{}>;\nconst events = {} as DashboardLayoutEventMap;\nexport type DashboardLayoutProps = WebComponentProps<DashboardLayoutElement, DashboardLayoutEventMap>;\nexport const DashboardLayout = createComponent({\n elementClass: DashboardLayoutElement, events, react: React, tagName: \"vaadin-dashboard-layout\"\n});\n"],
|
|
5
|
+
"mappings": "AAAA,WAAc,+CCCd,OAAS,mBAAmBA,MAA+B,+CAC3D,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAGxD,IAAMC,EAAS,CAAC,EAEHC,EAAkBC,EAAgB,CAC3C,aAAcC,EAAwB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,yBACzE,CAAC",
|
|
6
|
+
"names": ["DashboardLayoutElement", "React", "createComponent", "events", "DashboardLayout", "createComponent", "DashboardLayoutElement", "React"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardSection.d.ts","sourceRoot":"","sources":["src/DashboardSection.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export*from"@vaadin/dashboard/vaadin-dashboard-section.js";import{DashboardSection as o}from"@vaadin/dashboard/vaadin-dashboard-section.js";import*as e from"react";import{createComponent as t}from"./utils/createComponent.js";var a={},p=t({elementClass:o,events:a,react:e,tagName:"vaadin-dashboard-section"});export{p as DashboardSection,o as DashboardSectionElement};
|
|
2
|
+
//# sourceMappingURL=DashboardSection.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/DashboardSection.ts", "src/generated/DashboardSection.ts"],
|
|
4
|
+
"sourcesContent": ["export * from \"@vaadin/dashboard/vaadin-dashboard-section.js\";\nexport * from './generated/DashboardSection.js';\n", "import type {} from \"@lit/react\";\nimport { DashboardSection as DashboardSectionElement, } from \"@vaadin/dashboard/vaadin-dashboard-section.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { DashboardSectionElement, };\nexport type DashboardSectionEventMap = Readonly<{}>;\nconst events = {} as DashboardSectionEventMap;\nexport type DashboardSectionProps = WebComponentProps<DashboardSectionElement, DashboardSectionEventMap>;\nexport const DashboardSection = createComponent({\n elementClass: DashboardSectionElement, events, react: React, tagName: \"vaadin-dashboard-section\"\n});\n"],
|
|
5
|
+
"mappings": "AAAA,WAAc,gDCCd,OAAS,oBAAoBA,MAAgC,gDAC7D,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAGxD,IAAMC,EAAS,CAAC,EAEHC,EAAmBC,EAAgB,CAC5C,aAAcC,EAAyB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,0BAC1E,CAAC",
|
|
6
|
+
"names": ["DashboardSectionElement", "React", "createComponent", "events", "DashboardSection", "createComponent", "DashboardSectionElement", "React"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardWidget.d.ts","sourceRoot":"","sources":["src/DashboardWidget.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export*from"@vaadin/dashboard/vaadin-dashboard-widget.js";import{DashboardWidget as e}from"@vaadin/dashboard/vaadin-dashboard-widget.js";import*as t from"react";import{createComponent as o}from"./utils/createComponent.js";var a={},d=o({elementClass:e,events:a,react:t,tagName:"vaadin-dashboard-widget"});export{d as DashboardWidget,e as DashboardWidgetElement};
|
|
2
|
+
//# sourceMappingURL=DashboardWidget.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["src/DashboardWidget.ts", "src/generated/DashboardWidget.ts"],
|
|
4
|
+
"sourcesContent": ["export * from \"@vaadin/dashboard/vaadin-dashboard-widget.js\";\nexport * from './generated/DashboardWidget.js';\n", "import type {} from \"@lit/react\";\nimport { DashboardWidget as DashboardWidgetElement, } from \"@vaadin/dashboard/vaadin-dashboard-widget.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { DashboardWidgetElement, };\nexport type DashboardWidgetEventMap = Readonly<{}>;\nconst events = {} as DashboardWidgetEventMap;\nexport type DashboardWidgetProps = WebComponentProps<DashboardWidgetElement, DashboardWidgetEventMap>;\nexport const DashboardWidget = createComponent({\n elementClass: DashboardWidgetElement, events, react: React, tagName: \"vaadin-dashboard-widget\"\n});\n"],
|
|
5
|
+
"mappings": "AAAA,WAAc,+CCCd,OAAS,mBAAmBA,MAA+B,+CAC3D,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAGxD,IAAMC,EAAS,CAAC,EAEHC,EAAkBC,EAAgB,CAC3C,aAAcC,EAAwB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,yBACzE,CAAC",
|
|
6
|
+
"names": ["DashboardWidgetElement", "React", "createComponent", "events", "DashboardWidget", "createComponent", "DashboardWidgetElement", "React"]
|
|
7
|
+
}
|
package/GridPro.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["src/GridPro.tsx", "src/generated/GridPro.ts"],
|
|
4
|
-
"sourcesContent": ["export * from \"@vaadin/grid-pro/vaadin-grid-pro.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 ForwardedRef, forwardRef, type ReactElement, type RefAttributes } from 'react';\nimport type { GridDefaultItem, GridProps } from '@vaadin/react-components/Grid.js';\nimport { GridPro as _GridPro, type GridProElement, type GridProProps as _GridProProps } from './generated/GridPro.js';\nimport { useModelRenderer } from '@vaadin/react-components/renderers/useModelRenderer.js';\n\nexport * from './generated/GridPro.js';\n\nexport type GridProProps<TItem> = Partial<Omit<_GridProProps<TItem>, 'rowDetailsRenderer'>> &\n Readonly<{\n rowDetailsRenderer?: GridProps<TItem>['rowDetailsRenderer'];\n }>;\n\nfunction GridPro<TItem = GridDefaultItem>(\n props: GridProProps<TItem>,\n ref: ForwardedRef<GridProElement<TItem>>,\n): ReactElement | null {\n const [portals, rowDetailsRenderer] = useModelRenderer(props.rowDetailsRenderer);\n\n return (\n <_GridPro<TItem> {...props} ref={ref} rowDetailsRenderer={rowDetailsRenderer}>\n {props.children}\n {portals}\n </_GridPro>\n );\n}\n\nconst ForwardedGridPro = forwardRef(GridPro) as <TItem = GridDefaultItem>(\n props: GridProProps<TItem> & RefAttributes<GridProElement<TItem>>,\n) => ReactElement | null;\n\nexport { ForwardedGridPro as GridPro };\n", "import type { EventName } from \"@lit/react\";\nimport { GridPro as GridProElement, type GridProEventMap as _GridProEventMap, } from \"@vaadin/grid-pro/vaadin-grid-pro.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { GridProElement, };\nexport type GridProEventMap<T1> = Readonly<{\n onActiveItemChanged: EventName<_GridProEventMap<T1>[\"active-item-changed\"]>;\n onCellActivate: EventName<_GridProEventMap<T1>[\"cell-activate\"]>;\n onColumnResize: EventName<_GridProEventMap<T1>[\"column-resize\"]>;\n onExpandedItemsChanged: EventName<_GridProEventMap<T1>[\"expanded-items-changed\"]>;\n onLoadingChanged: EventName<_GridProEventMap<T1>[\"loading-changed\"]>;\n onSelectedItemsChanged: EventName<_GridProEventMap<T1>[\"selected-items-changed\"]>;\n onCellFocus: EventName<_GridProEventMap<T1>[\"cell-focus\"]>;\n onColumnReorder: EventName<_GridProEventMap<T1>[\"column-reorder\"]>;\n onGridDragend: EventName<_GridProEventMap<T1>[\"grid-dragend\"]>;\n onGridDragstart: EventName<_GridProEventMap<T1>[\"grid-dragstart\"]>;\n onGridDrop: EventName<_GridProEventMap<T1>[\"grid-drop\"]>;\n onCellEditStarted: EventName<_GridProEventMap<T1>[\"cell-edit-started\"]>;\n onItemPropertyChanged: EventName<_GridProEventMap<T1>[\"item-property-changed\"]>;\n onSizeChanged: EventName<CustomEvent<unknown>>;\n onDataProviderChanged: EventName<CustomEvent<unknown>>;\n onEnterNextRowChanged: EventName<CustomEvent<unknown>>;\n onSingleCellEditChanged: EventName<CustomEvent<unknown>>;\n}>;\nconst events = { onActiveItemChanged: \"active-item-changed\", onCellActivate: \"cell-activate\", onColumnResize: \"column-resize\", onExpandedItemsChanged: \"expanded-items-changed\", onLoadingChanged: \"loading-changed\", onSelectedItemsChanged: \"selected-items-changed\", onCellFocus: \"cell-focus\", onColumnReorder: \"column-reorder\", onGridDragend: \"grid-dragend\", onGridDragstart: \"grid-dragstart\", onGridDrop: \"grid-drop\", onCellEditStarted: \"cell-edit-started\", onItemPropertyChanged: \"item-property-changed\", onSizeChanged: \"size-changed\", onDataProviderChanged: \"data-provider-changed\", onEnterNextRowChanged: \"enter-next-row-changed\", onSingleCellEditChanged: \"single-cell-edit-changed\" } as GridProEventMap<
|
|
4
|
+
"sourcesContent": ["export * from \"@vaadin/grid-pro/vaadin-grid-pro.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 ForwardedRef, forwardRef, type ReactElement, type RefAttributes } from 'react';\nimport type { GridDefaultItem, GridProps } from '@vaadin/react-components/Grid.js';\nimport { GridPro as _GridPro, type GridProElement, type GridProProps as _GridProProps } from './generated/GridPro.js';\nimport { useModelRenderer } from '@vaadin/react-components/renderers/useModelRenderer.js';\n\nexport * from './generated/GridPro.js';\n\nexport type GridProProps<TItem> = Partial<Omit<_GridProProps<TItem>, 'rowDetailsRenderer'>> &\n Readonly<{\n rowDetailsRenderer?: GridProps<TItem>['rowDetailsRenderer'];\n }>;\n\nfunction GridPro<TItem = GridDefaultItem>(\n props: GridProProps<TItem>,\n ref: ForwardedRef<GridProElement<TItem>>,\n): ReactElement | null {\n const [portals, rowDetailsRenderer] = useModelRenderer(props.rowDetailsRenderer);\n\n return (\n <_GridPro<TItem> {...props} ref={ref} rowDetailsRenderer={rowDetailsRenderer}>\n {props.children}\n {portals}\n </_GridPro>\n );\n}\n\nconst ForwardedGridPro = forwardRef(GridPro) as <TItem = GridDefaultItem>(\n props: GridProProps<TItem> & RefAttributes<GridProElement<TItem>>,\n) => ReactElement | null;\n\nexport { ForwardedGridPro as GridPro };\n", "import type { EventName } from \"@lit/react\";\nimport { GridPro as GridProElement, type GridProEventMap as _GridProEventMap, } from \"@vaadin/grid-pro/vaadin-grid-pro.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { GridProElement, };\nexport type GridProEventMap<T1> = Readonly<{\n onActiveItemChanged: EventName<_GridProEventMap<T1>[\"active-item-changed\"]>;\n onCellActivate: EventName<_GridProEventMap<T1>[\"cell-activate\"]>;\n onColumnResize: EventName<_GridProEventMap<T1>[\"column-resize\"]>;\n onExpandedItemsChanged: EventName<_GridProEventMap<T1>[\"expanded-items-changed\"]>;\n onLoadingChanged: EventName<_GridProEventMap<T1>[\"loading-changed\"]>;\n onSelectedItemsChanged: EventName<_GridProEventMap<T1>[\"selected-items-changed\"]>;\n onCellFocus: EventName<_GridProEventMap<T1>[\"cell-focus\"]>;\n onColumnReorder: EventName<_GridProEventMap<T1>[\"column-reorder\"]>;\n onGridDragend: EventName<_GridProEventMap<T1>[\"grid-dragend\"]>;\n onGridDragstart: EventName<_GridProEventMap<T1>[\"grid-dragstart\"]>;\n onGridDrop: EventName<_GridProEventMap<T1>[\"grid-drop\"]>;\n onCellEditStarted: EventName<_GridProEventMap<T1>[\"cell-edit-started\"]>;\n onItemPropertyChanged: EventName<_GridProEventMap<T1>[\"item-property-changed\"]>;\n onSizeChanged: EventName<CustomEvent<unknown>>;\n onDataProviderChanged: EventName<CustomEvent<unknown>>;\n onEnterNextRowChanged: EventName<CustomEvent<unknown>>;\n onSingleCellEditChanged: EventName<CustomEvent<unknown>>;\n}>;\nconst events = { onActiveItemChanged: \"active-item-changed\", onCellActivate: \"cell-activate\", onColumnResize: \"column-resize\", onExpandedItemsChanged: \"expanded-items-changed\", onLoadingChanged: \"loading-changed\", onSelectedItemsChanged: \"selected-items-changed\", onCellFocus: \"cell-focus\", onColumnReorder: \"column-reorder\", onGridDragend: \"grid-dragend\", onGridDragstart: \"grid-dragstart\", onGridDrop: \"grid-drop\", onCellEditStarted: \"cell-edit-started\", onItemPropertyChanged: \"item-property-changed\", onSizeChanged: \"size-changed\", onDataProviderChanged: \"data-provider-changed\", onEnterNextRowChanged: \"enter-next-row-changed\", onSingleCellEditChanged: \"single-cell-edit-changed\" } as GridProEventMap<any>;\nexport type GridProProps<T1> = WebComponentProps<GridProElement<T1>, GridProEventMap<T1>>;\nexport const GridPro = createComponent({\n elementClass: GridProElement, events, react: React, tagName: \"vaadin-grid-pro\"\n}) as <T1>(props: GridProProps<T1> & React.RefAttributes<GridProElement<T1>>) => React.ReactElement | null;\n"],
|
|
5
5
|
"mappings": "AAAA,WAAc,sCAWd,OAA4B,cAAAA,MAAyD,QCVrF,OAAS,WAAWC,MAAiE,sCACrF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAqBxD,IAAMC,EAAS,CAAE,oBAAqB,sBAAuB,eAAgB,gBAAiB,eAAgB,gBAAiB,uBAAwB,yBAA0B,iBAAkB,kBAAmB,uBAAwB,yBAA0B,YAAa,aAAc,gBAAiB,iBAAkB,cAAe,eAAgB,gBAAiB,iBAAkB,WAAY,YAAa,kBAAmB,oBAAqB,sBAAuB,wBAAyB,cAAe,eAAgB,sBAAuB,wBAAyB,sBAAuB,yBAA0B,wBAAyB,0BAA2B,EAEhqBC,EAAUC,EAAgB,CACnC,aAAcC,EAAgB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,iBACjE,CAAC,EDdD,OAAS,oBAAAC,MAAwB,yDAgB7B,eAAAC,MAAA,oBAPJ,SAASC,EACPC,EACAC,EACqB,CACrB,GAAM,CAACC,EAASC,CAAkB,EAAIN,EAAiBG,EAAM,kBAAkB,EAE/E,OACEF,EAACC,EAAA,CAAiB,GAAGC,EAAO,IAAKC,EAAK,mBAAoBE,EACvD,UAAAH,EAAM,SACNE,GACH,CAEJ,CAEA,IAAME,EAAmBC,EAAWN,CAAO",
|
|
6
6
|
"names": ["forwardRef", "GridProElement", "React", "createComponent", "events", "GridPro", "createComponent", "GridProElement", "React", "useModelRenderer", "jsxs", "GridPro", "props", "ref", "portals", "rowDetailsRenderer", "ForwardedGridPro", "forwardRef"]
|
|
7
7
|
}
|
package/GridProEditColumn.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["src/GridProEditColumn.tsx", "src/generated/GridProEditColumn.ts"],
|
|
4
|
-
"sourcesContent": ["export * from \"@vaadin/grid-pro/vaadin-grid-pro-edit-column.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 React from 'react';\nimport {\n type ForwardedRef,\n forwardRef,\n type ReactElement,\n type ReactNode,\n type RefAttributes,\n createElement,\n} from 'react';\nimport type { GridBodyRenderer, GridDefaultItem } from '@vaadin/react-components/Grid.js';\nimport type { GridColumnElement, GridColumnProps } from '@vaadin/react-components/GridColumn.js';\nimport {\n GridProEditColumn as _GridProEditColumn,\n type GridProEditColumnElement,\n type GridProEditColumnProps as _GridProEditColumnProps,\n} from './generated/GridProEditColumn.js';\nimport { useModelRenderer } from '@vaadin/react-components/renderers/useModelRenderer.js';\nimport { useSimpleOrChildrenRenderer } from '@vaadin/react-components/renderers/useSimpleOrChildrenRenderer.js';\nimport type { OmittedGridColumnHTMLAttributes } from '@vaadin/react-components/GridColumn.js';\n\nexport * from './generated/GridProEditColumn.js';\n\ntype GridColumnRenderer<TItem> = GridColumnProps<TItem>['renderer'];\ntype GridColumnHeaderFooterRenderer<TItem> = GridColumnProps<TItem>['footerRenderer'];\n\nexport type GridProEditColumnProps<TItem> = Partial<\n Omit<\n _GridProEditColumnProps<TItem>,\n | 'children'\n | 'editModeRenderer'\n | 'footerRenderer'\n | 'header'\n | 'headerRenderer'\n | 'renderer'\n | keyof OmittedGridColumnHTMLAttributes<TItem>\n >\n> &\n Readonly<{\n children?: GridColumnRenderer<TItem>;\n editModeRenderer?: GridColumnRenderer<TItem>;\n footer?: ReactNode;\n /**\n * @deprecated Use `footer` instead.\n */\n footerRenderer?: GridColumnHeaderFooterRenderer<TItem>;\n header?: ReactNode;\n /**\n * @deprecated Use `header` instead.\n */\n headerRenderer?: GridColumnHeaderFooterRenderer<TItem>;\n renderer?: GridColumnRenderer<TItem>;\n }>;\n\ntype ReactBodyRenderer<TItem> = GridColumnRenderer<TItem> & {\n __wrapperRenderer?: ReactBodyRenderer<TItem>;\n};\n\ntype EditColumnRendererRoot = HTMLElement & { __editColumnRenderer?: GridBodyRenderer };\n\ntype ClearFunction = (arg0: HTMLElement & { _content: EditColumnRendererRoot }) => void;\n\n/**\n * Wraps a React renderer function to render empty when requested\n *\n * @returns\n */\nfunction editColumnReactRenderer<TItem>(reactBodyRenderer?: ReactBodyRenderer<TItem> | null) {\n if (!reactBodyRenderer) {\n return undefined;\n }\n\n reactBodyRenderer.__wrapperRenderer ||= function GridProEditColumnRenderer(props) {\n // If the model has __renderEmpty set, return null, otherwise call the original renderer\n return '__renderEmpty' in props.model ? null : createElement(reactBodyRenderer, props);\n };\n\n return reactBodyRenderer.__wrapperRenderer;\n}\n\n/**\n * Wraps a Grid body renderer function to make it request empty render before\n * the GridPro edit column clears cell content.\n */\nfunction editColumnRenderer(bodyRenderer?: (GridBodyRenderer & { __wrapperRenderer?: GridBodyRenderer }) | null) {\n if (!bodyRenderer) {\n return undefined;\n }\n\n bodyRenderer.__wrapperRenderer ||= (\n root: EditColumnRendererRoot,\n column: GridColumnElement & {\n __originalClearCellContent?: ClearFunction;\n _clearCellContent?: ClearFunction;\n },\n model,\n ) => {\n // Patch the column's _clearCellContent function which is called internally by grid-pro\n // when switching from edit mode to view mode and vice versa\n if (!column.__originalClearCellContent) {\n column.__originalClearCellContent = column._clearCellContent;\n\n column._clearCellContent = (cell) => {\n const cellRoot = cell._content;\n // Call the original renderer with __renderEmpty set to true to clear the content it manages\n cellRoot.__editColumnRenderer?.(cellRoot, column, Object.assign({}, model, { __renderEmpty: true }));\n // Call the original clearCellContent function to manually clear the cell content\n column.__originalClearCellContent?.(cell);\n };\n }\n\n // Update the cell content's renderer reference so that the correct one is used\n // to render empty when the cell is cleared\n root.__editColumnRenderer = bodyRenderer;\n\n // Call the original renderer\n bodyRenderer(root, column, model);\n };\n\n return bodyRenderer.__wrapperRenderer;\n}\n\nfunction GridProEditColumn<TItem = GridDefaultItem>(\n { children, footer, header, ...props }: GridProEditColumnProps<TItem>,\n ref: ForwardedRef<GridProEditColumnElement<TItem>>,\n): ReactElement | null {\n const [editModePortals, editModeRenderer] = useModelRenderer(editColumnReactRenderer(props.editModeRenderer), {\n renderSync: true,\n });\n const [headerPortals, headerRenderer] = useSimpleOrChildrenRenderer(props.headerRenderer, header, {\n renderSync: true,\n });\n const [footerPortals, footerRenderer] = useSimpleOrChildrenRenderer(props.footerRenderer, footer, {\n renderSync: true,\n });\n const [bodyPortals, bodyRenderer] = useModelRenderer(editColumnReactRenderer(props.renderer ?? children), {\n renderSync: true,\n });\n\n return (\n <_GridProEditColumn<TItem>\n {...props}\n editModeRenderer={editColumnRenderer(editModeRenderer)}\n footerRenderer={footerRenderer}\n headerRenderer={headerRenderer}\n ref={ref}\n renderer={editColumnRenderer(bodyRenderer)}\n >\n {editModePortals}\n {headerPortals}\n {footerPortals}\n {bodyPortals}\n </_GridProEditColumn>\n );\n}\n\nconst ForwardedGridProEditColumn = forwardRef(GridProEditColumn) as <TItem = GridDefaultItem>(\n props: GridProEditColumnProps<TItem> & RefAttributes<GridProEditColumnElement<TItem>>,\n) => ReactElement | null;\n\nexport { ForwardedGridProEditColumn as GridProEditColumn };\n", "import type { EventName } from \"@lit/react\";\nimport { GridProEditColumn as GridProEditColumnElement, } from \"@vaadin/grid-pro/vaadin-grid-pro-edit-column.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { GridProEditColumnElement, };\nexport type GridProEditColumnEventMap<T1> = Readonly<{\n onEditorTypeChanged: EventName<CustomEvent<unknown>>;\n}>;\nconst events = { onEditorTypeChanged: \"editor-type-changed\" } as GridProEditColumnEventMap<
|
|
4
|
+
"sourcesContent": ["export * from \"@vaadin/grid-pro/vaadin-grid-pro-edit-column.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 React from 'react';\nimport {\n type ForwardedRef,\n forwardRef,\n type ReactElement,\n type ReactNode,\n type RefAttributes,\n createElement,\n} from 'react';\nimport type { GridBodyRenderer, GridDefaultItem } from '@vaadin/react-components/Grid.js';\nimport type { GridColumnElement, GridColumnProps } from '@vaadin/react-components/GridColumn.js';\nimport {\n GridProEditColumn as _GridProEditColumn,\n type GridProEditColumnElement,\n type GridProEditColumnProps as _GridProEditColumnProps,\n} from './generated/GridProEditColumn.js';\nimport { useModelRenderer } from '@vaadin/react-components/renderers/useModelRenderer.js';\nimport { useSimpleOrChildrenRenderer } from '@vaadin/react-components/renderers/useSimpleOrChildrenRenderer.js';\nimport type { OmittedGridColumnHTMLAttributes } from '@vaadin/react-components/GridColumn.js';\n\nexport * from './generated/GridProEditColumn.js';\n\ntype GridColumnRenderer<TItem> = GridColumnProps<TItem>['renderer'];\ntype GridColumnHeaderFooterRenderer<TItem> = GridColumnProps<TItem>['footerRenderer'];\n\nexport type GridProEditColumnProps<TItem> = Partial<\n Omit<\n _GridProEditColumnProps<TItem>,\n | 'children'\n | 'editModeRenderer'\n | 'footerRenderer'\n | 'header'\n | 'headerRenderer'\n | 'renderer'\n | keyof OmittedGridColumnHTMLAttributes<TItem>\n >\n> &\n Readonly<{\n children?: GridColumnRenderer<TItem>;\n editModeRenderer?: GridColumnRenderer<TItem>;\n footer?: ReactNode;\n /**\n * @deprecated Use `footer` instead.\n */\n footerRenderer?: GridColumnHeaderFooterRenderer<TItem>;\n header?: ReactNode;\n /**\n * @deprecated Use `header` instead.\n */\n headerRenderer?: GridColumnHeaderFooterRenderer<TItem>;\n renderer?: GridColumnRenderer<TItem>;\n }>;\n\ntype ReactBodyRenderer<TItem> = GridColumnRenderer<TItem> & {\n __wrapperRenderer?: ReactBodyRenderer<TItem>;\n};\n\ntype EditColumnRendererRoot = HTMLElement & { __editColumnRenderer?: GridBodyRenderer };\n\ntype ClearFunction = (arg0: HTMLElement & { _content: EditColumnRendererRoot }) => void;\n\n/**\n * Wraps a React renderer function to render empty when requested\n *\n * @returns\n */\nfunction editColumnReactRenderer<TItem>(reactBodyRenderer?: ReactBodyRenderer<TItem> | null) {\n if (!reactBodyRenderer) {\n return undefined;\n }\n\n reactBodyRenderer.__wrapperRenderer ||= function GridProEditColumnRenderer(props) {\n // If the model has __renderEmpty set, return null, otherwise call the original renderer\n return '__renderEmpty' in props.model ? null : createElement(reactBodyRenderer, props);\n };\n\n return reactBodyRenderer.__wrapperRenderer;\n}\n\n/**\n * Wraps a Grid body renderer function to make it request empty render before\n * the GridPro edit column clears cell content.\n */\nfunction editColumnRenderer(bodyRenderer?: (GridBodyRenderer & { __wrapperRenderer?: GridBodyRenderer }) | null) {\n if (!bodyRenderer) {\n return undefined;\n }\n\n bodyRenderer.__wrapperRenderer ||= (\n root: EditColumnRendererRoot,\n column: GridColumnElement & {\n __originalClearCellContent?: ClearFunction;\n _clearCellContent?: ClearFunction;\n },\n model,\n ) => {\n // Patch the column's _clearCellContent function which is called internally by grid-pro\n // when switching from edit mode to view mode and vice versa\n if (!column.__originalClearCellContent) {\n column.__originalClearCellContent = column._clearCellContent;\n\n column._clearCellContent = (cell) => {\n const cellRoot = cell._content;\n // Call the original renderer with __renderEmpty set to true to clear the content it manages\n cellRoot.__editColumnRenderer?.(cellRoot, column, Object.assign({}, model, { __renderEmpty: true }));\n // Call the original clearCellContent function to manually clear the cell content\n column.__originalClearCellContent?.(cell);\n };\n }\n\n // Update the cell content's renderer reference so that the correct one is used\n // to render empty when the cell is cleared\n root.__editColumnRenderer = bodyRenderer;\n\n // Call the original renderer\n bodyRenderer(root, column, model);\n };\n\n return bodyRenderer.__wrapperRenderer;\n}\n\nfunction GridProEditColumn<TItem = GridDefaultItem>(\n { children, footer, header, ...props }: GridProEditColumnProps<TItem>,\n ref: ForwardedRef<GridProEditColumnElement<TItem>>,\n): ReactElement | null {\n const [editModePortals, editModeRenderer] = useModelRenderer(editColumnReactRenderer(props.editModeRenderer), {\n renderSync: true,\n });\n const [headerPortals, headerRenderer] = useSimpleOrChildrenRenderer(props.headerRenderer, header, {\n renderSync: true,\n });\n const [footerPortals, footerRenderer] = useSimpleOrChildrenRenderer(props.footerRenderer, footer, {\n renderSync: true,\n });\n const [bodyPortals, bodyRenderer] = useModelRenderer(editColumnReactRenderer(props.renderer ?? children), {\n renderSync: true,\n });\n\n return (\n <_GridProEditColumn<TItem>\n {...props}\n editModeRenderer={editColumnRenderer(editModeRenderer)}\n footerRenderer={footerRenderer}\n headerRenderer={headerRenderer}\n ref={ref}\n renderer={editColumnRenderer(bodyRenderer)}\n >\n {editModePortals}\n {headerPortals}\n {footerPortals}\n {bodyPortals}\n </_GridProEditColumn>\n );\n}\n\nconst ForwardedGridProEditColumn = forwardRef(GridProEditColumn) as <TItem = GridDefaultItem>(\n props: GridProEditColumnProps<TItem> & RefAttributes<GridProEditColumnElement<TItem>>,\n) => ReactElement | null;\n\nexport { ForwardedGridProEditColumn as GridProEditColumn };\n", "import type { EventName } from \"@lit/react\";\nimport { GridProEditColumn as GridProEditColumnElement, } from \"@vaadin/grid-pro/vaadin-grid-pro-edit-column.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { GridProEditColumnElement, };\nexport type GridProEditColumnEventMap<T1> = Readonly<{\n onEditorTypeChanged: EventName<CustomEvent<unknown>>;\n}>;\nconst events = { onEditorTypeChanged: \"editor-type-changed\" } as GridProEditColumnEventMap<any>;\nexport type GridProEditColumnProps<T1> = WebComponentProps<GridProEditColumnElement<T1>, GridProEditColumnEventMap<T1>>;\nexport const GridProEditColumn = createComponent({\n elementClass: GridProEditColumnElement, events, react: React, tagName: \"vaadin-grid-pro-edit-column\"\n}) as <T1>(props: GridProEditColumnProps<T1> & React.RefAttributes<GridProEditColumnElement<T1>>) => React.ReactElement | null;\n"],
|
|
5
5
|
"mappings": "AAAA,WAAc,kDAWd,MAAkB,QAClB,OAEE,cAAAA,EAIA,iBAAAC,MACK,QClBP,OAAS,qBAAqBC,MAAiC,kDAC/D,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,oBAAqB,qBAAsB,EAE/CC,EAAoBC,EAAgB,CAC7C,aAAcC,EAA0B,OAAAH,EAAQ,MAAOI,EAAO,QAAS,6BAC3E,CAAC,EDeD,OAAS,oBAAAC,MAAwB,yDACjC,OAAS,+BAAAC,MAAmC,oEA0HxC,eAAAC,MAAA,oBAzEJ,SAASC,EAA+BC,EAAqD,CAC3F,GAAKA,EAIL,OAAAA,EAAkB,oBAAsB,SAAmCC,EAAO,CAEhF,MAAO,kBAAmBA,EAAM,MAAQ,KAAOC,EAAcF,EAAmBC,CAAK,CACvF,EAEOD,EAAkB,iBAC3B,CAMA,SAASG,EAAmBC,EAAqF,CAC/G,GAAKA,EAIL,OAAAA,EAAa,oBAAsB,CACjCC,EACAC,EAIAC,IACG,CAGED,EAAO,6BACVA,EAAO,2BAA6BA,EAAO,kBAE3CA,EAAO,kBAAqBE,GAAS,CACnC,IAAMC,EAAWD,EAAK,SAEtBC,EAAS,uBAAuBA,EAAUH,EAAQ,OAAO,OAAO,CAAC,EAAGC,EAAO,CAAE,cAAe,EAAK,CAAC,CAAC,EAEnGD,EAAO,6BAA6BE,CAAI,CAC1C,GAKFH,EAAK,qBAAuBD,EAG5BA,EAAaC,EAAMC,EAAQC,CAAK,CAClC,EAEOH,EAAa,iBACtB,CAEA,SAASM,EACP,CAAE,SAAAC,EAAU,OAAAC,EAAQ,OAAAC,EAAQ,GAAGZ,CAAM,EACrCa,EACqB,CACrB,GAAM,CAACC,EAAiBC,CAAgB,EAAIpB,EAAiBG,EAAwBE,EAAM,gBAAgB,EAAG,CAC5G,WAAY,EACd,CAAC,EACK,CAACgB,EAAeC,CAAc,EAAIrB,EAA4BI,EAAM,eAAgBY,EAAQ,CAChG,WAAY,EACd,CAAC,EACK,CAACM,EAAeC,CAAc,EAAIvB,EAA4BI,EAAM,eAAgBW,EAAQ,CAChG,WAAY,EACd,CAAC,EACK,CAACS,EAAajB,CAAY,EAAIR,EAAiBG,EAAwBE,EAAM,UAAYU,CAAQ,EAAG,CACxG,WAAY,EACd,CAAC,EAED,OACEb,EAACY,EAAA,CACE,GAAGT,EACJ,iBAAkBE,EAAmBa,CAAgB,EACrD,eAAgBI,EAChB,eAAgBF,EAChB,IAAKJ,EACL,SAAUX,EAAmBC,CAAY,EAExC,UAAAW,EACAE,EACAE,EACAE,GACH,CAEJ,CAEA,IAAMC,EAA6BC,EAAWb,CAAiB",
|
|
6
6
|
"names": ["forwardRef", "createElement", "GridProEditColumnElement", "React", "createComponent", "events", "GridProEditColumn", "createComponent", "GridProEditColumnElement", "React", "useModelRenderer", "useSimpleOrChildrenRenderer", "jsxs", "editColumnReactRenderer", "reactBodyRenderer", "props", "createElement", "editColumnRenderer", "bodyRenderer", "root", "column", "model", "cell", "cellRoot", "GridProEditColumn", "children", "footer", "header", "ref", "editModePortals", "editModeRenderer", "headerPortals", "headerRenderer", "footerPortals", "footerRenderer", "bodyPortals", "ForwardedGridProEditColumn", "forwardRef"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { EventName } from "@lit/react";
|
|
2
|
+
import { Dashboard as DashboardElement, type DashboardEventMap as _DashboardEventMap, type DashboardItem } from "@vaadin/dashboard/vaadin-dashboard.js";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { type WebComponentProps } from "../utils/createComponent.js";
|
|
5
|
+
export * from "@vaadin/dashboard/vaadin-dashboard.js";
|
|
6
|
+
export { DashboardElement, };
|
|
7
|
+
export type DashboardEventMap<T1 extends DashboardItem = DashboardItem> = Readonly<{
|
|
8
|
+
onDashboardItemMoveModeChanged: EventName<_DashboardEventMap<T1>["dashboard-item-move-mode-changed"]>;
|
|
9
|
+
onDashboardItemMoved: EventName<_DashboardEventMap<T1>["dashboard-item-moved"]>;
|
|
10
|
+
onDashboardItemRemoved: EventName<_DashboardEventMap<T1>["dashboard-item-removed"]>;
|
|
11
|
+
onDashboardItemResizeModeChanged: EventName<_DashboardEventMap<T1>["dashboard-item-resize-mode-changed"]>;
|
|
12
|
+
onDashboardItemResized: EventName<_DashboardEventMap<T1>["dashboard-item-resized"]>;
|
|
13
|
+
onDashboardItemSelectedChanged: EventName<_DashboardEventMap<T1>["dashboard-item-selected-changed"]>;
|
|
14
|
+
}>;
|
|
15
|
+
export type DashboardProps<T1 extends DashboardItem = DashboardItem> = WebComponentProps<DashboardElement<T1>, DashboardEventMap<T1>>;
|
|
16
|
+
export declare const Dashboard: <T1 extends DashboardItem = DashboardItem>(props: DashboardProps<T1> & React.RefAttributes<DashboardElement<T1>>) => React.ReactElement | null;
|
|
17
|
+
//# sourceMappingURL=Dashboard.d.ts.map
|
|
@@ -0,0 +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,CAAC,gBAAgB,CAAC,EAAE,CAAC,EAAE,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;AACtI,eAAO,MAAM,SAAS,EAEhB,CAAC,EAAwC,SAA7B,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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DashboardLayout as DashboardLayoutElement } from "@vaadin/dashboard/vaadin-dashboard-layout.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { type WebComponentProps } from "../utils/createComponent.js";
|
|
4
|
+
export * from "@vaadin/dashboard/vaadin-dashboard-layout.js";
|
|
5
|
+
export { DashboardLayoutElement, };
|
|
6
|
+
export type DashboardLayoutEventMap = Readonly<{}>;
|
|
7
|
+
export type DashboardLayoutProps = WebComponentProps<DashboardLayoutElement, DashboardLayoutEventMap>;
|
|
8
|
+
export declare const DashboardLayout: (props: Partial<import("@vaadin/react-components/utils/createComponent.d.ts").ThemedWebComponentProps<DashboardLayoutElement, Readonly<{}>>> & React.RefAttributes<DashboardLayoutElement>) => React.ReactElement | null;
|
|
9
|
+
//# sourceMappingURL=DashboardLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardLayout.d.ts","sourceRoot":"","sources":["../src/generated/DashboardLayout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAG,MAAM,8CAA8C,CAAC;AAC1G,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,8CAA8C,CAAC;AAC7D,OAAO,EAAE,sBAAsB,GAAG,CAAC;AACnC,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,sBAAsB,EAAE,uBAAuB,CAAC,CAAC;AACtG,eAAO,MAAM,eAAe,0NAE1B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DashboardSection as DashboardSectionElement } from "@vaadin/dashboard/vaadin-dashboard-section.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { type WebComponentProps } from "../utils/createComponent.js";
|
|
4
|
+
export * from "@vaadin/dashboard/vaadin-dashboard-section.js";
|
|
5
|
+
export { DashboardSectionElement, };
|
|
6
|
+
export type DashboardSectionEventMap = Readonly<{}>;
|
|
7
|
+
export type DashboardSectionProps = WebComponentProps<DashboardSectionElement, DashboardSectionEventMap>;
|
|
8
|
+
export declare const DashboardSection: (props: Partial<import("@vaadin/react-components/utils/createComponent.d.ts").ThemedWebComponentProps<DashboardSectionElement, Readonly<{}>>> & React.RefAttributes<DashboardSectionElement>) => React.ReactElement | null;
|
|
9
|
+
//# sourceMappingURL=DashboardSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardSection.d.ts","sourceRoot":"","sources":["../src/generated/DashboardSection.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,IAAI,uBAAuB,EAAG,MAAM,+CAA+C,CAAC;AAC7G,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,+CAA+C,CAAC;AAC9D,OAAO,EAAE,uBAAuB,GAAG,CAAC;AACpC,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAEpD,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,CAAC,uBAAuB,EAAE,wBAAwB,CAAC,CAAC;AACzG,eAAO,MAAM,gBAAgB,4NAE3B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DashboardWidget as DashboardWidgetElement } from "@vaadin/dashboard/vaadin-dashboard-widget.js";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { type WebComponentProps } from "../utils/createComponent.js";
|
|
4
|
+
export * from "@vaadin/dashboard/vaadin-dashboard-widget.js";
|
|
5
|
+
export { DashboardWidgetElement, };
|
|
6
|
+
export type DashboardWidgetEventMap = Readonly<{}>;
|
|
7
|
+
export type DashboardWidgetProps = WebComponentProps<DashboardWidgetElement, DashboardWidgetEventMap>;
|
|
8
|
+
export declare const DashboardWidget: (props: Partial<import("@vaadin/react-components/utils/createComponent.d.ts").ThemedWebComponentProps<DashboardWidgetElement, Readonly<{}>>> & React.RefAttributes<DashboardWidgetElement>) => React.ReactElement | null;
|
|
9
|
+
//# sourceMappingURL=DashboardWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardWidget.d.ts","sourceRoot":"","sources":["../src/generated/DashboardWidget.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAG,MAAM,8CAA8C,CAAC;AAC1G,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACtF,cAAc,8CAA8C,CAAC;AAC7D,OAAO,EAAE,sBAAsB,GAAG,CAAC;AACnC,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,sBAAsB,EAAE,uBAAuB,CAAC,CAAC;AACtG,eAAO,MAAM,eAAe,0NAE1B,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -6,6 +6,10 @@ export * from "./CookieConsent.js";
|
|
|
6
6
|
export * from "./CrudEdit.js";
|
|
7
7
|
export * from "./CrudEditColumn.js";
|
|
8
8
|
export * from "./Crud.js";
|
|
9
|
+
export * from "./DashboardLayout.js";
|
|
10
|
+
export * from "./DashboardSection.js";
|
|
11
|
+
export * from "./DashboardWidget.js";
|
|
12
|
+
export * from "./Dashboard.js";
|
|
9
13
|
export * from "./GridProEditColumn.js";
|
|
10
14
|
export * from "./GridPro.js";
|
|
11
15
|
export * from "./Map.js";
|
package/index.js
CHANGED
|
@@ -6,6 +6,10 @@ export * from "./CookieConsent.js";
|
|
|
6
6
|
export * from "./CrudEdit.js";
|
|
7
7
|
export * from "./CrudEditColumn.js";
|
|
8
8
|
export * from "./Crud.js";
|
|
9
|
+
export * from "./DashboardLayout.js";
|
|
10
|
+
export * from "./DashboardSection.js";
|
|
11
|
+
export * from "./DashboardWidget.js";
|
|
12
|
+
export * from "./Dashboard.js";
|
|
9
13
|
export * from "./GridProEditColumn.js";
|
|
10
14
|
export * from "./GridPro.js";
|
|
11
15
|
export * from "./Map.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/react-components-pro",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.6.0-alpha2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,14 +26,15 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@lit/react": "^1.0.5",
|
|
29
|
-
"@vaadin/board": "24.
|
|
30
|
-
"@vaadin/charts": "24.
|
|
31
|
-
"@vaadin/cookie-consent": "24.
|
|
32
|
-
"@vaadin/crud": "24.
|
|
33
|
-
"@vaadin/
|
|
34
|
-
"@vaadin/
|
|
35
|
-
"@vaadin/
|
|
36
|
-
"@vaadin/
|
|
29
|
+
"@vaadin/board": "24.6.0-alpha2",
|
|
30
|
+
"@vaadin/charts": "24.6.0-alpha2",
|
|
31
|
+
"@vaadin/cookie-consent": "24.6.0-alpha2",
|
|
32
|
+
"@vaadin/crud": "24.6.0-alpha2",
|
|
33
|
+
"@vaadin/dashboard": "24.6.0-alpha2",
|
|
34
|
+
"@vaadin/grid-pro": "24.6.0-alpha2",
|
|
35
|
+
"@vaadin/map": "24.6.0-alpha2",
|
|
36
|
+
"@vaadin/react-components": "24.6.0-alpha2",
|
|
37
|
+
"@vaadin/rich-text-editor": "24.6.0-alpha2"
|
|
37
38
|
},
|
|
38
39
|
"author": "Vaadin Ltd.",
|
|
39
40
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -99,6 +100,22 @@
|
|
|
99
100
|
"types": "./CrudEditColumn.d.ts",
|
|
100
101
|
"default": "./CrudEditColumn.js"
|
|
101
102
|
},
|
|
103
|
+
"./Dashboard.js": {
|
|
104
|
+
"types": "./Dashboard.d.ts",
|
|
105
|
+
"default": "./Dashboard.js"
|
|
106
|
+
},
|
|
107
|
+
"./DashboardLayout.js": {
|
|
108
|
+
"types": "./DashboardLayout.d.ts",
|
|
109
|
+
"default": "./DashboardLayout.js"
|
|
110
|
+
},
|
|
111
|
+
"./DashboardSection.js": {
|
|
112
|
+
"types": "./DashboardSection.d.ts",
|
|
113
|
+
"default": "./DashboardSection.js"
|
|
114
|
+
},
|
|
115
|
+
"./DashboardWidget.js": {
|
|
116
|
+
"types": "./DashboardWidget.d.ts",
|
|
117
|
+
"default": "./DashboardWidget.js"
|
|
118
|
+
},
|
|
102
119
|
"./GridPro.js": {
|
|
103
120
|
"types": "./GridPro.d.ts",
|
|
104
121
|
"default": "./GridPro.js"
|
|
@@ -123,6 +140,10 @@
|
|
|
123
140
|
"./Crud": "./Crud.js",
|
|
124
141
|
"./CrudEdit": "./CrudEdit.js",
|
|
125
142
|
"./CrudEditColumn": "./CrudEditColumn.js",
|
|
143
|
+
"./Dashboard": "./Dashboard.js",
|
|
144
|
+
"./DashboardLayout": "./DashboardLayout.js",
|
|
145
|
+
"./DashboardSection": "./DashboardSection.js",
|
|
146
|
+
"./DashboardWidget": "./DashboardWidget.js",
|
|
126
147
|
"./GridPro": "./GridPro.js",
|
|
127
148
|
"./GridProEditColumn": "./GridProEditColumn.js",
|
|
128
149
|
"./Map": "./Map.js",
|