blixify-ui-web-mcp 0.1.3 → 0.1.19
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/lib/components/action/button/README.md +12 -11
- package/lib/components/action/button/button.stories.tsx +38 -27
- package/lib/components/action/buttonGroup/buttonGroup.stories.tsx +82 -16
- package/lib/components/action/iconButton/README.md +1 -0
- package/lib/components/action/iconButton/iconButton.stories.tsx +6 -12
- package/lib/components/action/radioList/radioList.stories.tsx +10 -16
- package/lib/components/action/slider/slider.stories.tsx +9 -15
- package/lib/components/action/textButton/textButton.stories.tsx +6 -12
- package/lib/components/action/toggle/toggle.stories.tsx +6 -12
- package/lib/components/advanced/collapse/collapse.stories.tsx +240 -24
- package/lib/components/advanced/infoWindow/infoWindow.stories.tsx +10 -16
- package/lib/components/advanced/popUp/README.md +33 -7
- package/lib/components/advanced/popUp/popUp.stories.tsx +9 -15
- package/lib/components/auth/bareSignIn/bareSignIn.stories.tsx +36 -16
- package/lib/components/auth/bareSignUp/bareSignUp.stories.tsx +7 -13
- package/lib/components/auth/signIn/signIn.stories.tsx +4 -10
- package/lib/components/auth/signUp/signUp.stories.tsx +4 -10
- package/lib/components/chart/areaChart/areaChart.stories.tsx +12 -18
- package/lib/components/chart/barChart/barChart.stories.tsx +12 -18
- package/lib/components/chart/boxPlotChart/boxPlotChart.stories.tsx +11 -17
- package/lib/components/chart/bubbleChart/bubbleChart.stories.tsx +11 -17
- package/lib/components/chart/card/card.stories.tsx +172 -38
- package/lib/components/chart/ganttChart/ganttChart.stories.tsx +10 -16
- package/lib/components/chart/heatmapChart/heatmapChart.stories.tsx +11 -17
- package/lib/components/chart/lineChart/lineChart.stories.tsx +8 -14
- package/lib/components/chart/pieChart/pieChart.stories.tsx +11 -17
- package/lib/components/chart/polarAreaChart/polarAreaChart.stories.tsx +11 -17
- package/lib/components/chart/radarChart/radarChart.stories.tsx +6 -12
- package/lib/components/chart/radialBar/radialChart.stories.tsx +4 -10
- package/lib/components/chart/rangeBarChart/rangeBarChart.stories.tsx +8 -14
- package/lib/components/chart/statsCard/statsCard.stories.tsx +12 -18
- package/lib/components/chart/treemapChart/treemapChart.stories.tsx +11 -17
- package/lib/components/chat/chatAnchor/README.md +7 -0
- package/lib/components/chat/chatAnchor/chatAnchor.stories.tsx +15 -21
- package/lib/components/chat/chatBase/README.md +103 -22
- package/lib/components/chat/chatBase/chatBase.stories.tsx +657 -57
- package/lib/components/chat/chatDashboard/README.md +17 -15
- package/lib/components/chat/chatDashboard/chatDashboard.stories.tsx +358 -46
- package/lib/components/data/dataGraph/dataGraph.stories.tsx +8 -14
- package/lib/components/data/dataReference/dataReference.stories.tsx +9 -15
- package/lib/components/data/dataTemplate/README.md +443 -129
- package/lib/components/data/dataTemplate/dataModule.stories.tsx +10 -15
- package/lib/components/data/dataTemplate/dataTemplate.stories.tsx +20 -34
- package/lib/components/data/dataWrapper/README.md +207 -84
- package/lib/components/data/dataWrapper/dataWrapper.consumer.stories.tsx +2125 -0
- package/lib/components/data/dataWrapper/dataWrapper.edit.stories.tsx +607 -0
- package/lib/components/data/dataWrapper/dataWrapper.utils.stories.tsx +576 -0
- package/lib/components/data/dataWrapper/dataWrapper.view.stories.tsx +1273 -0
- package/lib/components/data/flexFilter/flexFilter.stories.tsx +171 -0
- package/lib/components/data/queryForm/queryForm.stories.tsx +6 -12
- package/lib/components/data/readQuery/readQuery.stories.tsx +6 -11
- package/lib/components/data/readQueryHoc/readQueryHoc.stories.tsx +6 -12
- package/lib/components/data/writeQuery/README.md +21 -10
- package/lib/components/data/writeQuery/writeQuery.stories.tsx +6 -10
- package/lib/components/design/actionSection/actionSection.stories.tsx +10 -14
- package/lib/components/design/banner/banner.stories.tsx +6 -12
- package/lib/components/design/bannerAction/bannerAction.stories.tsx +100 -21
- package/lib/components/design/blogSection/blogSection.stories.tsx +6 -12
- package/lib/components/design/carouselSection/carouselSection.stories.tsx +6 -12
- package/lib/components/design/designList/designList.stories.tsx +6 -12
- package/lib/components/design/faq/faq.stories.tsx +53 -31
- package/lib/components/design/fileGrid/fileGrid.stories.tsx +10 -16
- package/lib/components/design/fileViewer/fileViewer.stories.tsx +6 -12
- package/lib/components/design/footerSection/footerSection.stories.tsx +6 -12
- package/lib/components/design/googleReview/googleReview.stories.tsx +6 -12
- package/lib/components/design/heroSection/heroSection.stories.tsx +10 -16
- package/lib/components/design/iconList/iconList.stories.tsx +6 -12
- package/lib/components/design/imageGallery/imageGallery.stories.tsx +6 -12
- package/lib/components/design/imageZoom/imageZoom.stories.tsx +6 -12
- package/lib/components/design/leftContent/leftContent.stories.tsx +6 -12
- package/lib/components/design/logoCloud/logoCloud.stories.tsx +6 -12
- package/lib/components/design/onboarding/onboarding.stories.tsx +8 -14
- package/lib/components/design/pricing/pricing.stories.tsx +6 -12
- package/lib/components/design/rightContent/rightContent.stories.tsx +6 -12
- package/lib/components/design/sectionList/sectionList.stories.tsx +6 -12
- package/lib/components/design/teams/teams.stories.tsx +6 -12
- package/lib/components/display/alert/alert.stories.tsx +8 -14
- package/lib/components/display/calendar/README.md +49 -0
- package/lib/components/display/calendar/calendar.stories.tsx +78 -35
- package/lib/components/display/clipboard/clipboard.stories.tsx +6 -12
- package/lib/components/display/detailList/detailList.stories.tsx +172 -48
- package/lib/components/display/drawer/README.md +44 -11
- package/lib/components/display/drawer/drawer.stories.tsx +71 -16
- package/lib/components/display/emptyState/emptyState.stories.tsx +47 -15
- package/lib/components/display/feeds/feeds.stories.tsx +6 -12
- package/lib/components/display/flexTable/README.md +11 -7
- package/lib/components/display/flexTable/flexTable.stories.tsx +318 -20
- package/lib/components/display/grid/README.md +29 -30
- package/lib/components/display/grid/grid.stories.tsx +16 -23
- package/lib/components/display/kanban/kanban.stories.tsx +17 -23
- package/lib/components/display/list/README.md +30 -29
- package/lib/components/display/list/list.stories.tsx +11 -17
- package/lib/components/display/loading/loading.stories.tsx +7 -12
- package/lib/components/display/mapView/mapView.stories.tsx +9 -15
- package/lib/components/display/modal/modal.stories.tsx +6 -13
- package/lib/components/display/newCalendar/README.md +163 -0
- package/lib/components/display/newCalendar/newCalendar.stories.tsx +292 -0
- package/lib/components/display/newFeeds/README.md +53 -0
- package/lib/components/display/newFeeds/newFeeds.stories.tsx +104 -0
- package/lib/components/display/newKanban/README.md +25 -0
- package/lib/components/display/newKanban/newKanban.stories.tsx +131 -0
- package/lib/components/display/newList/README.md +30 -0
- package/lib/components/display/newList/newList.stories.tsx +231 -0
- package/lib/components/display/newPagination/README.md +15 -0
- package/lib/components/display/newTable/README.md +121 -0
- package/lib/components/display/newTable/newTable.stories.tsx +551 -0
- package/lib/components/display/notification/notification.stories.tsx +6 -12
- package/lib/components/display/progress/progress.stories.tsx +7 -12
- package/lib/components/display/stepper/README.md +4 -0
- package/lib/components/display/stepper/stepper.stories.tsx +70 -23
- package/lib/components/display/table/README.md +38 -37
- package/lib/components/display/table/table.stories.tsx +34 -36
- package/lib/components/display/tag/tag.stories.tsx +34 -40
- package/lib/components/input/address/address.stories.tsx +12 -18
- package/lib/components/input/canvas/canvas.stories.tsx +12 -18
- package/lib/components/input/checkbox/checkbox.stories.tsx +7 -13
- package/lib/components/input/datePicker/datePicker.stories.tsx +41 -11
- package/lib/components/input/form/form.stories.tsx +11 -17
- package/lib/components/input/markdown/README.md +80 -2
- package/lib/components/input/markdown/markdown.stories.tsx +83 -32
- package/lib/components/input/monthYearPicker/monthYearPicker.stories.tsx +52 -24
- package/lib/components/input/netPromoterScore/netPromoterScore.stories.tsx +6 -12
- package/lib/components/input/rating/rating.stories.tsx +6 -12
- package/lib/components/input/select/README.md +31 -29
- package/lib/components/input/select/select.stories.tsx +33 -39
- package/lib/components/input/signature/signature.stories.tsx +12 -18
- package/lib/components/input/textArea/textArea.stories.tsx +6 -12
- package/lib/components/input/textInput/textinput.stories.tsx +14 -20
- package/lib/components/input/uploadInput/uploadInput.stories.tsx +143 -19
- package/lib/components/navigation/bars/README.md +27 -0
- package/lib/components/navigation/bars/bars.stories.tsx +56 -19
- package/lib/components/navigation/bottomTab/bottomTab.stories.tsx +7 -12
- package/lib/components/navigation/breadcrumb/breadcrumb.stories.tsx +8 -14
- package/lib/components/navigation/header/header.stories.tsx +33 -21
- package/lib/components/navigation/leftNav/leftNav.stories.tsx +10 -16
- package/lib/components/navigation/tabs/tabs.stories.tsx +10 -16
- package/lib/components/structure/column/column.stories.tsx +10 -15
- package/lib/components/structure/container/container.stories.tsx +8 -13
- package/lib/components/structure/link/link.stories.tsx +11 -17
- package/lib/components/structure/text/text.stories.tsx +12 -17
- package/lib/components/template/authPage/authPage.stories.tsx +6 -5
- package/lib/components/template/calendarView/calendarView.stories.tsx +726 -0
- package/lib/components/template/chatDashboard/chatDashboard.stories.tsx +497 -0
- package/lib/components/template/landingPage/landingPage.stories.tsx +10 -7
- package/lib/components/template/mapLayout/mapLayout.stories.tsx +519 -0
- package/lib/components/template/productListing/productListing.stories.tsx +7 -13
- package/lib/components/template/productOverview/productOverview.stories.tsx +5 -11
- package/lib/components/template/shoppingCart/shoppingCart.stories.tsx +6 -12
- package/lib/components/template/userHomePage/userHomePage.stories.tsx +384 -524
- package/lib/components/template/userRankingDashboard/userRankingDashboard.stories.tsx +145 -75
- package/lib/mcp/tools/componentsRoot.d.ts +2 -0
- package/lib/mcp/tools/componentsRoot.d.ts.map +1 -0
- package/lib/mcp/tools/componentsRoot.js +59 -0
- package/lib/mcp/tools/componentsRoot.js.map +1 -0
- package/lib/mcp/tools/getBackendComponent.d.ts.map +1 -1
- package/lib/mcp/tools/getBackendComponent.js +2 -5
- package/lib/mcp/tools/getBackendComponent.js.map +1 -1
- package/lib/mcp/tools/getComponent.d.ts.map +1 -1
- package/lib/mcp/tools/getComponent.js +2 -5
- package/lib/mcp/tools/getComponent.js.map +1 -1
- package/lib/mcp/tools/listComponents.d.ts.map +1 -1
- package/lib/mcp/tools/listComponents.js +15 -10
- package/lib/mcp/tools/listComponents.js.map +1 -1
- package/lib/mcp/tools/suggestTemplate.d.ts.map +1 -1
- package/lib/mcp/tools/suggestTemplate.js +107 -21
- package/lib/mcp/tools/suggestTemplate.js.map +1 -1
- package/package.json +1 -1
- package/lib/components/data/dataWrapper/dataWrapper.stories.tsx +0 -831
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Menu, Transition } from "@headlessui/react";
|
|
2
|
-
import { storiesOf } from "@storybook/react";
|
|
3
2
|
import axios from "axios";
|
|
4
3
|
import Papa from "papaparse";
|
|
5
4
|
import React, { useEffect, useState } from "react";
|
|
@@ -11,23 +10,18 @@ import { blixifyDevCollection, blixifyDevWorkspace } from "../testData";
|
|
|
11
10
|
import { parseSpaceToDataStructure, parseWorkspaceSettings } from "../utils";
|
|
12
11
|
import { DataTemplateProps } from "./dataStateModel";
|
|
13
12
|
import { DataStructure } from "./model";
|
|
14
|
-
import README from "./README.md";
|
|
15
13
|
import SampleModule from "./SampleModule";
|
|
16
14
|
import { AdditionalQuery, ExtendedTabs, Space } from "./spaceModel";
|
|
17
15
|
import { Workspace } from "./workspaceModel";
|
|
18
16
|
|
|
19
|
-
const
|
|
17
|
+
const meta = { title: "Data/Data Module" };
|
|
18
|
+
export default meta;
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
readme: {
|
|
23
|
-
content: README,
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
stories.add("Data Module", () => {
|
|
20
|
+
export const DataModule = () => {
|
|
28
21
|
const [selectedSpace, setSelectedSpace] = useState<Space | null>(null);
|
|
29
|
-
const [selectedWorkspace, setSelectedWorkspace] =
|
|
30
|
-
|
|
22
|
+
const [selectedWorkspace, setSelectedWorkspace] = useState<Workspace | null>(
|
|
23
|
+
null,
|
|
24
|
+
);
|
|
31
25
|
const [mount, setMount] = useState<boolean>(false);
|
|
32
26
|
const [sort, setSort] = useState<Sort | undefined>({
|
|
33
27
|
sortId: "baseUpdatedAt",
|
|
@@ -43,7 +37,7 @@ stories.add("Data Module", () => {
|
|
|
43
37
|
const [viewParam, setViewParam] = useState("general");
|
|
44
38
|
const [typeParam, setTypeParam] = useState("list");
|
|
45
39
|
const [dataParam, setDataParam] = useState(
|
|
46
|
-
"0f95e0b6-fcf7-4046-8395-06f2f271f56a"
|
|
40
|
+
"0f95e0b6-fcf7-4046-8395-06f2f271f56a",
|
|
47
41
|
);
|
|
48
42
|
|
|
49
43
|
const getLocalUrl = "/dashboard/spaceD";
|
|
@@ -83,7 +77,7 @@ stories.add("Data Module", () => {
|
|
|
83
77
|
const handleNavigate = (
|
|
84
78
|
type: string,
|
|
85
79
|
selectedId?: string,
|
|
86
|
-
viewId?: string
|
|
80
|
+
viewId?: string,
|
|
87
81
|
) => {
|
|
88
82
|
setTypeParam(type);
|
|
89
83
|
if (selectedId) setDataParam(selectedId);
|
|
@@ -143,6 +137,7 @@ stories.add("Data Module", () => {
|
|
|
143
137
|
allEditable: true,
|
|
144
138
|
deleteBtn: false,
|
|
145
139
|
listEditable: true,
|
|
140
|
+
enableUpdateDraft: true,
|
|
146
141
|
},
|
|
147
142
|
organise: {
|
|
148
143
|
sort: sort?.sortId ? sort : undefined,
|
|
@@ -193,4 +188,4 @@ stories.add("Data Module", () => {
|
|
|
193
188
|
)}
|
|
194
189
|
</Container>
|
|
195
190
|
);
|
|
196
|
-
}
|
|
191
|
+
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Menu, Transition } from "@headlessui/react";
|
|
2
2
|
import { TagIcon } from "@heroicons/react/24/outline";
|
|
3
|
-
import { storiesOf } from "@storybook/react";
|
|
4
3
|
import axios from "axios";
|
|
5
4
|
import Papa from "papaparse";
|
|
6
5
|
import React, { useEffect, useRef, useState } from "react";
|
|
7
|
-
import { DataTemplate } from ".";
|
|
6
|
+
import { DataTemplate as DataTemplateImpl } from ".";
|
|
8
7
|
import { Button } from "../../action/button";
|
|
9
8
|
import { Loading } from "../../display/loading";
|
|
10
9
|
import { StorySection } from "../../storyUtils";
|
|
@@ -24,23 +23,18 @@ import {
|
|
|
24
23
|
import { blixifyDevCollection, blixifyDevWorkspace } from "../testData";
|
|
25
24
|
import { parseSpaceToDataStructure, parseWorkspaceSettings } from "../utils";
|
|
26
25
|
import { DataStructure } from "./model";
|
|
27
|
-
import README from "./README.md";
|
|
28
26
|
import { AdditionalQuery, ExtendedTabs, Space } from "./spaceModel";
|
|
29
27
|
import { Workspace } from "./workspaceModel";
|
|
30
28
|
|
|
31
|
-
const
|
|
29
|
+
const meta = { title: "Data/Data Template" };
|
|
30
|
+
export default meta;
|
|
32
31
|
|
|
33
|
-
|
|
34
|
-
readme: {
|
|
35
|
-
content: README,
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
stories.add("Data Template", () => {
|
|
32
|
+
export const DataTemplate = () => {
|
|
40
33
|
const [selectedSpace, setSelectedSpace] = useState<Space | null>(null);
|
|
41
34
|
const [allWorkspaceSpace, setAllWorkspaceSpace] = useState<Space[]>([]);
|
|
42
|
-
const [selectedWorkspace, setSelectedWorkspace] =
|
|
43
|
-
|
|
35
|
+
const [selectedWorkspace, setSelectedWorkspace] = useState<Workspace | null>(
|
|
36
|
+
null,
|
|
37
|
+
);
|
|
44
38
|
const [mount, setMount] = useState<boolean>(false);
|
|
45
39
|
const [sort, setSort] = useState<Sort | undefined>({
|
|
46
40
|
sortId: "baseUpdatedAt",
|
|
@@ -101,17 +95,13 @@ stories.add("Data Template", () => {
|
|
|
101
95
|
setSort(sortValue.sortId !== "" ? sortValue : undefined);
|
|
102
96
|
};
|
|
103
97
|
|
|
104
|
-
const handleQueries = (queries: AdditionalQuery[]) => {
|
|
105
|
-
setQueries(queries);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
98
|
const handleAddColumn = (structure: DataStructure[]) => {
|
|
109
99
|
const clonedSpace = JSON.parse(JSON.stringify(selectedSpace));
|
|
110
100
|
if (clonedSpace) {
|
|
111
101
|
clonedSpace["structure"] = JSON.parse(
|
|
112
102
|
JSON.stringify(
|
|
113
|
-
structure.filter((eachStructure) => eachStructure.id !== "id")
|
|
114
|
-
)
|
|
103
|
+
structure.filter((eachStructure) => eachStructure.id !== "id"),
|
|
104
|
+
),
|
|
115
105
|
);
|
|
116
106
|
}
|
|
117
107
|
setSelectedSpace(clonedSpace);
|
|
@@ -120,7 +110,7 @@ stories.add("Data Template", () => {
|
|
|
120
110
|
|
|
121
111
|
const handleDrag = (dragId: string, dropId: string) => {
|
|
122
112
|
const selectedDS: DataStructure[] = JSON.parse(
|
|
123
|
-
JSON.stringify(selectedSpace?.structure ?? [])
|
|
113
|
+
JSON.stringify(selectedSpace?.structure ?? []),
|
|
124
114
|
);
|
|
125
115
|
const selectedIndex = selectedDS.findIndex((item) => item.id === dragId);
|
|
126
116
|
const [selectedItem] = selectedDS.splice(selectedIndex, 1);
|
|
@@ -135,7 +125,7 @@ stories.add("Data Template", () => {
|
|
|
135
125
|
const clonedSpace: Space = JSON.parse(JSON.stringify(selectedSpace));
|
|
136
126
|
clonedSpace.structure?.map((eachStructure) => {
|
|
137
127
|
const selectedList = valueList.filter(
|
|
138
|
-
(eachValue) => eachValue.id === eachStructure.id
|
|
128
|
+
(eachValue) => eachValue.id === eachStructure.id,
|
|
139
129
|
);
|
|
140
130
|
if (selectedList.length > 0) {
|
|
141
131
|
eachStructure.hide = selectedList[0].hide ? true : false;
|
|
@@ -159,7 +149,7 @@ stories.add("Data Template", () => {
|
|
|
159
149
|
imageEndpoint: defaultImageEndpoint,
|
|
160
150
|
uploadEndpoint: defaultUploadEndpoint,
|
|
161
151
|
},
|
|
162
|
-
selectedWorkspace
|
|
152
|
+
selectedWorkspace,
|
|
163
153
|
);
|
|
164
154
|
|
|
165
155
|
return (
|
|
@@ -171,7 +161,7 @@ stories.add("Data Template", () => {
|
|
|
171
161
|
*/}
|
|
172
162
|
<StorySection
|
|
173
163
|
title="Data Template"
|
|
174
|
-
description="Use
|
|
164
|
+
description="Use DataTemplateImpl when you have a Space object from the Blixify backend — it drives the schema, sort, tabs, and queries from the database. Pass the Space via the space prop and derive the model using parseSpaceToDataStructure. For custom integrations without a Space object, use DataTemplateWrapper instead."
|
|
175
165
|
>
|
|
176
166
|
<div className="flex flex-wrap gap-3 mb-4">
|
|
177
167
|
<Button
|
|
@@ -179,7 +169,7 @@ stories.add("Data Template", () => {
|
|
|
179
169
|
type="light"
|
|
180
170
|
onClick={() =>
|
|
181
171
|
setTypeParam((t) =>
|
|
182
|
-
t === "update" || t === "read" ? "list" : "update"
|
|
172
|
+
t === "update" || t === "read" ? "list" : "update",
|
|
183
173
|
)
|
|
184
174
|
}
|
|
185
175
|
/>
|
|
@@ -199,7 +189,7 @@ stories.add("Data Template", () => {
|
|
|
199
189
|
setCollectionParams((c) =>
|
|
200
190
|
c === "e40bcbbf-191f-4bac-83d0-322cb4cbabde"
|
|
201
191
|
? "602c90dd-ee39-4bf0-b44d-3d2c57f887cd"
|
|
202
|
-
: "e40bcbbf-191f-4bac-83d0-322cb4cbabde"
|
|
192
|
+
: "e40bcbbf-191f-4bac-83d0-322cb4cbabde",
|
|
203
193
|
);
|
|
204
194
|
}}
|
|
205
195
|
/>
|
|
@@ -207,7 +197,7 @@ stories.add("Data Template", () => {
|
|
|
207
197
|
|
|
208
198
|
{selectedSpace && selectedWorkspace && (
|
|
209
199
|
<div className="w-full">
|
|
210
|
-
<
|
|
200
|
+
<DataTemplateImpl
|
|
211
201
|
ref={dataTemplateRef}
|
|
212
202
|
title={title}
|
|
213
203
|
description={description}
|
|
@@ -255,11 +245,7 @@ stories.add("Data Template", () => {
|
|
|
255
245
|
},
|
|
256
246
|
filterComponentNewRow: true,
|
|
257
247
|
addColumnEnabled: true,
|
|
258
|
-
advSortEnabled: true,
|
|
259
|
-
advFilterEnabled: true,
|
|
260
|
-
advDragEnabled: true,
|
|
261
248
|
onChangeSort: handleSortData,
|
|
262
|
-
onChangeFilter: handleQueries,
|
|
263
249
|
onChangeTabs: handleTab,
|
|
264
250
|
onChangeDrag: handleDrag,
|
|
265
251
|
onAddColumns: handleAddColumn,
|
|
@@ -271,11 +257,11 @@ stories.add("Data Template", () => {
|
|
|
271
257
|
},
|
|
272
258
|
renderReferenceLabelOptions: storyRenderReferenceLabelOptions(
|
|
273
259
|
allWorkspaceSpace,
|
|
274
|
-
selectedSpace
|
|
260
|
+
selectedSpace,
|
|
275
261
|
),
|
|
276
262
|
renderReferenceSpaceOptions: storyRenderReferenceSpaceOptions(
|
|
277
263
|
allWorkspaceSpace,
|
|
278
|
-
dataParam
|
|
264
|
+
dataParam,
|
|
279
265
|
),
|
|
280
266
|
}}
|
|
281
267
|
lib={{
|
|
@@ -305,7 +291,7 @@ stories.add("Data Template", () => {
|
|
|
305
291
|
text: "Custom Bulk Action",
|
|
306
292
|
onClick: (ids: string[]) =>
|
|
307
293
|
window.alert(
|
|
308
|
-
`Bulk action on ${ids.length} selected item(s)
|
|
294
|
+
`Bulk action on ${ids.length} selected item(s)`,
|
|
309
295
|
),
|
|
310
296
|
},
|
|
311
297
|
],
|
|
@@ -334,4 +320,4 @@ stories.add("Data Template", () => {
|
|
|
334
320
|
</StorySection>
|
|
335
321
|
</>
|
|
336
322
|
);
|
|
337
|
-
}
|
|
323
|
+
};
|