react-bootstrap-table-ng-example 4.19.0 → 4.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.ts +24 -5
- package/.storybook/preview.ts +1 -1
- package/README.md +1 -1
- package/package.json +15 -13
- package/src/stories/BasicTable.stories.tsx +1 -1
- package/src/stories/Bootstrap4.stories.tsx +1 -1
- package/src/stories/CellEditing.stories.tsx +1 -1
- package/src/stories/ColumnFilter.stories.tsx +1 -1
- package/src/stories/ColumnToggle.stories.tsx +1 -1
- package/src/stories/Data.stories.tsx +1 -1
- package/src/stories/ExportCSV.stories.tsx +1 -1
- package/src/stories/Footer.stories.tsx +1 -1
- package/src/stories/Pagination.stories.tsx +1 -1
- package/src/stories/Remote.stories.tsx +9 -1
- package/src/stories/Remote.tsx +464 -2
- package/src/stories/RowExpand.stories.tsx +1 -1
- package/src/stories/RowSelection.stories.tsx +1 -1
- package/src/stories/SortTable.stories.tsx +1 -1
- package/src/stories/TableOverlay.stories.tsx +1 -1
- package/src/stories/TableSearch.stories.tsx +1 -1
- package/src/stories/Welcome.stories.ts +1 -1
- package/src/stories/WorkOnColumns.stories.tsx +1 -1
- package/src/stories/WorkOnHeaderColumns.stories.tsx +1 -1
- package/src/stories/WorkOnRows.stories.tsx +1 -1
- package/sb_output.txt +0 -382
package/.storybook/main.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
// This file has been automatically migrated to valid ESM format by Storybook.
|
|
1
2
|
import type { StorybookConfig } from "@storybook/react-webpack5";
|
|
2
|
-
import path from "path";
|
|
3
|
+
import path, { dirname } from "path";
|
|
3
4
|
import { fileURLToPath } from "url";
|
|
4
5
|
import * as sass from "sass";
|
|
5
6
|
|
|
@@ -10,19 +11,30 @@ const config: StorybookConfig = {
|
|
|
10
11
|
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
|
11
12
|
|
|
12
13
|
addons: [
|
|
13
|
-
"@storybook/addon-links",
|
|
14
|
-
"@storybook/addon-onboarding",
|
|
15
|
-
"@storybook/addon-docs",
|
|
14
|
+
getAbsolutePath("@storybook/addon-links"),
|
|
15
|
+
//getAbsolutePath("@storybook/addon-onboarding"),
|
|
16
|
+
getAbsolutePath("@storybook/addon-docs"),
|
|
16
17
|
],
|
|
17
18
|
|
|
18
19
|
framework: {
|
|
19
|
-
name: "@storybook/react-webpack5",
|
|
20
|
+
name: getAbsolutePath("@storybook/react-webpack5"),
|
|
20
21
|
options: {},
|
|
21
22
|
},
|
|
22
23
|
|
|
23
24
|
staticDirs: ["../public"],
|
|
25
|
+
managerHead: (head) => `
|
|
26
|
+
${process.env.NODE_ENV === "production"
|
|
27
|
+
? `<base href="/react-bootstrap-table-ng/storybook/">`
|
|
28
|
+
: ""
|
|
29
|
+
}
|
|
30
|
+
${head}
|
|
31
|
+
`,
|
|
24
32
|
|
|
25
33
|
previewHead: (head) => `
|
|
34
|
+
${process.env.NODE_ENV === "production"
|
|
35
|
+
? `<base href="/react-bootstrap-table-ng/storybook/">`
|
|
36
|
+
: ""
|
|
37
|
+
}
|
|
26
38
|
${head}
|
|
27
39
|
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
|
|
28
40
|
<!-- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous"> -->
|
|
@@ -105,8 +117,15 @@ const config: StorybookConfig = {
|
|
|
105
117
|
...(config.resolve.modules || []),
|
|
106
118
|
];
|
|
107
119
|
}
|
|
120
|
+
if (config.output && process.env.NODE_ENV === "production") {
|
|
121
|
+
config.output.publicPath = "../storybook/";
|
|
122
|
+
}
|
|
108
123
|
return config;
|
|
109
124
|
},
|
|
110
125
|
};
|
|
111
126
|
|
|
112
127
|
export default config;
|
|
128
|
+
|
|
129
|
+
function getAbsolutePath(value: string): any {
|
|
130
|
+
return dirname(fileURLToPath(import.meta.resolve(`${value}/package.json`)));
|
|
131
|
+
}
|
package/.storybook/preview.ts
CHANGED
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
# react-bootstrap-table-ng-example
|
|
2
2
|
Next generation of [`react-bootstrap-table`](https://github.com/jeff-k-zhou/react-bootstrap-table-ng)
|
|
3
3
|
|
|
4
|
-
**[Live Demo](https://
|
|
4
|
+
**[Live Demo](https://jeff-k-zhou.github.io/react-bootstrap-table-ng/storybook/index.html)**
|
package/package.json
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-bootstrap-table-ng-example",
|
|
3
|
-
"version": "4.19.
|
|
3
|
+
"version": "4.19.1",
|
|
4
4
|
"description": "Storybook for react-bootstrap-table-ng",
|
|
5
|
+
"homepage": "http://jeff-k-zhou.github.io/react-bootstrap-table-ng",
|
|
5
6
|
"main": "index.js",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
9
|
"storybook": "storybook dev -p 6006",
|
|
9
10
|
"gh-pages:clean": "rimraf ./storybook-static",
|
|
10
|
-
"gh-pages:build": "storybook build"
|
|
11
|
+
"gh-pages:build": "storybook build -o ./storybook-static/storybook",
|
|
12
|
+
"gh-pages:deploy": "gh-pages -d storybook-static"
|
|
11
13
|
},
|
|
12
14
|
"eslintConfig": {
|
|
13
15
|
"extends": [
|
|
@@ -40,30 +42,30 @@
|
|
|
40
42
|
}
|
|
41
43
|
],
|
|
42
44
|
"peerDependencies": {
|
|
43
|
-
"prop-types": "
|
|
45
|
+
"prop-types": ">=15.8.1",
|
|
44
46
|
"react": "^18.0 || ^18.0.0 || ^19.0 || ^19.0.0",
|
|
45
47
|
"react-dom": "^18.0 || ^18.0.0 || ^19.0 || ^19.0.0"
|
|
46
48
|
},
|
|
47
49
|
"devDependencies": {
|
|
48
50
|
"@babel/plugin-transform-private-property-in-object": "^7.25.9",
|
|
49
|
-
"@storybook/addon-docs": "^10.2.
|
|
50
|
-
"@storybook/addon-links": "^10.2.
|
|
51
|
-
"@storybook/addon-onboarding": "^10.2.
|
|
52
|
-
"@storybook/preset-create-react-app": "^10.2.
|
|
53
|
-
"@storybook/react": "^10.2.
|
|
54
|
-
"@storybook/react-webpack5": "^10.2.1",
|
|
51
|
+
"@storybook/addon-docs": "^10.2.7",
|
|
52
|
+
"@storybook/addon-links": "^10.2.7",
|
|
53
|
+
"@storybook/addon-onboarding": "^10.2.7",
|
|
54
|
+
"@storybook/preset-create-react-app": "^10.2.7",
|
|
55
|
+
"@storybook/react-webpack5": "^10.2.7",
|
|
55
56
|
"@types/file-saver": "^2.0.7",
|
|
56
57
|
"babel-plugin-named-exports-order": "^0.0.2",
|
|
57
58
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
58
59
|
"babel-preset-env": "^1.7.0",
|
|
59
|
-
"eslint-plugin-storybook": "^10.2.
|
|
60
|
+
"eslint-plugin-storybook": "^10.2.7",
|
|
60
61
|
"file-saver": "^2.0.5",
|
|
62
|
+
"gh-pages": "^6.3.0",
|
|
61
63
|
"react-redux": "^9.2.0",
|
|
62
64
|
"redux": "^5.0.1",
|
|
63
65
|
"redux-thunk": "^3.1.0",
|
|
64
66
|
"rimraf": "^6.1.2",
|
|
65
67
|
"sass": "^1.97.3",
|
|
66
|
-
"storybook": "^10.2.
|
|
68
|
+
"storybook": "^10.2.7",
|
|
67
69
|
"typed.js": "^3.0.0",
|
|
68
70
|
"webpack": "^5.104.1"
|
|
69
71
|
},
|
|
@@ -77,11 +79,11 @@
|
|
|
77
79
|
"@types/react-dom": "^19.2.3",
|
|
78
80
|
"prop-types": "^15.8.1",
|
|
79
81
|
"react": "^19.2.4",
|
|
80
|
-
"react-bootstrap-table-ng": "^4.19.
|
|
82
|
+
"react-bootstrap-table-ng": "^4.19.1",
|
|
81
83
|
"react-dom": "^19.2.4",
|
|
82
84
|
"react-scripts": "^5.0.1",
|
|
83
85
|
"typescript": "^5.9.3",
|
|
84
86
|
"web-vitals": "^5.1.0"
|
|
85
87
|
},
|
|
86
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "24022dc8281117b928db32c4a90bcc9edc402edf"
|
|
87
89
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
4
4
|
|
|
5
5
|
// import bootstrap style by given version
|
|
6
6
|
import cellEditFactory, { Type } from '../../../react-bootstrap-table-ng-editor';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
|
|
3
3
|
// import bootstrap style by given version
|
|
4
4
|
import BootstrapTable from './Remote';
|
|
@@ -68,3 +68,11 @@ export const RemoteAll: Story = {
|
|
|
68
68
|
mode: "all",
|
|
69
69
|
}
|
|
70
70
|
};
|
|
71
|
+
|
|
72
|
+
export const RemoteAllCustom: Story = {
|
|
73
|
+
name: "Remote all + custom toolbars",
|
|
74
|
+
args: {
|
|
75
|
+
mode: "all-custom",
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
package/src/stories/Remote.tsx
CHANGED
|
@@ -8,9 +8,13 @@ import filterFactory, {
|
|
|
8
8
|
LIKE,
|
|
9
9
|
textFilter,
|
|
10
10
|
} from "../../../react-bootstrap-table-ng-filter";
|
|
11
|
-
import
|
|
11
|
+
import overlayFactory from "../../../react-bootstrap-table-ng-overlay";
|
|
12
|
+
import paginationFactory, {
|
|
13
|
+
PaginationProvider, PaginationListStandalone,
|
|
14
|
+
PaginationTotalStandalone, SizePerPageDropdownStandalone
|
|
15
|
+
} from "../../../react-bootstrap-table-ng-paginator";
|
|
12
16
|
import ToolkitProvider, {
|
|
13
|
-
Search,
|
|
17
|
+
Search, CSVExport
|
|
14
18
|
} from "../../../react-bootstrap-table-ng-toolkit";
|
|
15
19
|
import Code from "../components/common/code-block";
|
|
16
20
|
import { productsGenerator } from "../utils/common";
|
|
@@ -1132,6 +1136,462 @@ class RemoteAllComponent extends React.Component<{}, RemoteAllState> {
|
|
|
1132
1136
|
}
|
|
1133
1137
|
}
|
|
1134
1138
|
|
|
1139
|
+
|
|
1140
|
+
const remoteAllExportSourceCode = `\
|
|
1141
|
+
import BootstrapTable from 'react-bootstrap-table-ng';
|
|
1142
|
+
import cellEditFactory from 'react-bootstrap-table-ng-editor';
|
|
1143
|
+
import filterFactory, {
|
|
1144
|
+
LIKE,
|
|
1145
|
+
textFilter,
|
|
1146
|
+
} from 'react-bootstrap-table-ng-filter';
|
|
1147
|
+
import paginationFactory, {
|
|
1148
|
+
PaginationProvider, PaginationListStandalone, PaginationTotalStandalone, SizePerPageDropdownStandalone
|
|
1149
|
+
} from 'react-bootstrap-table-ng-paginator';
|
|
1150
|
+
import ToolkitProvider, {
|
|
1151
|
+
Search, CSVExport
|
|
1152
|
+
} from 'react-bootstrap-table-ng-toolkit';
|
|
1153
|
+
// import ...
|
|
1154
|
+
|
|
1155
|
+
const productColumns = [
|
|
1156
|
+
{
|
|
1157
|
+
dataField: "id",
|
|
1158
|
+
text: "Product ID",
|
|
1159
|
+
sort: true,
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
dataField: "name",
|
|
1163
|
+
text: "Product Name",
|
|
1164
|
+
filter: textFilter(),
|
|
1165
|
+
sort: true,
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
dataField: "price",
|
|
1169
|
+
text: "Product Price",
|
|
1170
|
+
filter: textFilter(),
|
|
1171
|
+
sort: true,
|
|
1172
|
+
hidden: true,
|
|
1173
|
+
},
|
|
1174
|
+
];
|
|
1175
|
+
|
|
1176
|
+
const { ExportCSVButton } = CSVExport;
|
|
1177
|
+
|
|
1178
|
+
//leslint-disable-next-line react/proprtypes
|
|
1179
|
+
const CustomToggleList = ({ columns, onColumnToggle, toggles }) => (
|
|
1180
|
+
<div className="btn-group btn-group-toggle" data-toggle="buttons" style={{ marginBottom: '10px' }}>
|
|
1181
|
+
{columns
|
|
1182
|
+
.filter(column => !(column.toggleHidden === true))
|
|
1183
|
+
.map(column => ({
|
|
1184
|
+
...column,
|
|
1185
|
+
toggle: toggles[column.dataField]
|
|
1186
|
+
}))
|
|
1187
|
+
.map(column => (
|
|
1188
|
+
<button
|
|
1189
|
+
type="button"
|
|
1190
|
+
key={column.dataField}
|
|
1191
|
+
className={\`btn \${column.toggle ? 'btn-primary' : 'btn-default'}\`}
|
|
1192
|
+
data-toggle="button"
|
|
1193
|
+
aria-pressed={column.toggle ? 'true' : 'false'}
|
|
1194
|
+
onClick={() => onColumnToggle(column.dataField)}
|
|
1195
|
+
>
|
|
1196
|
+
{column.text}
|
|
1197
|
+
</button>
|
|
1198
|
+
))}
|
|
1199
|
+
</div>
|
|
1200
|
+
);
|
|
1201
|
+
|
|
1202
|
+
const customPaginationTotal = (from: number, to: number, totalSize: number) => (
|
|
1203
|
+
<span className="react-bootstrap-table-pagination-total">
|
|
1204
|
+
{from} to {to} of {totalSize} rows
|
|
1205
|
+
</span>
|
|
1206
|
+
);
|
|
1207
|
+
|
|
1208
|
+
|
|
1209
|
+
const allExportProducts = productsGenerator(487);
|
|
1210
|
+
|
|
1211
|
+
class RemoteAllExportComponent extends React.Component {
|
|
1212
|
+
constructor(props: any) {
|
|
1213
|
+
super(props);
|
|
1214
|
+
this.state = {
|
|
1215
|
+
page: 1,
|
|
1216
|
+
data: allExportProducts.slice(0, 10),
|
|
1217
|
+
totalSize: allExportProducts.length,
|
|
1218
|
+
sizePerPage: 10,
|
|
1219
|
+
allData: allExportProducts,
|
|
1220
|
+
};
|
|
1221
|
+
this.handleTableChange = this.handleTableChange.bind(this);
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
handleTableChange = (
|
|
1225
|
+
type: any,
|
|
1226
|
+
{ page, sizePerPage, filters, sortField, sortOrder, cellEdit }: any
|
|
1227
|
+
) => {
|
|
1228
|
+
setTimeout(() => {
|
|
1229
|
+
// Handle cell editing
|
|
1230
|
+
if (type === "cellEdit") {
|
|
1231
|
+
const { rowId, dataField, newValue } = cellEdit;
|
|
1232
|
+
products = products.map((row: any) => {
|
|
1233
|
+
if (row.id === rowId) {
|
|
1234
|
+
const newRow = { ...row };
|
|
1235
|
+
newRow[dataField] = newValue;
|
|
1236
|
+
return newRow;
|
|
1237
|
+
}
|
|
1238
|
+
return row;
|
|
1239
|
+
});
|
|
1240
|
+
}
|
|
1241
|
+
let result = allExportProducts;
|
|
1242
|
+
// Handle column filters
|
|
1243
|
+
result = result.filter((row: any) => {
|
|
1244
|
+
let valid = true;
|
|
1245
|
+
for (const dataField in filters) {
|
|
1246
|
+
const { filterVal, filterType, comparator } = filters[dataField];
|
|
1247
|
+
|
|
1248
|
+
if (filterType === "TEXT") {
|
|
1249
|
+
if (comparator === LIKE) {
|
|
1250
|
+
valid = row[dataField].toString().indexOf(filterVal) > -1;
|
|
1251
|
+
} else {
|
|
1252
|
+
valid = row[dataField] === filterVal;
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
if (!valid) break;
|
|
1256
|
+
}
|
|
1257
|
+
return valid;
|
|
1258
|
+
});
|
|
1259
|
+
// Handle column sort
|
|
1260
|
+
if (sortOrder === "asc") {
|
|
1261
|
+
result = result.sort((a: any, b: any) => {
|
|
1262
|
+
if (a[sortField] > b[sortField]) {
|
|
1263
|
+
return 1;
|
|
1264
|
+
} else if (b[sortField] > a[sortField]) {
|
|
1265
|
+
return -1;
|
|
1266
|
+
}
|
|
1267
|
+
return 0;
|
|
1268
|
+
});
|
|
1269
|
+
} else {
|
|
1270
|
+
result = result.sort((a: any, b: any) => {
|
|
1271
|
+
if (a[sortField] > b[sortField]) {
|
|
1272
|
+
return -1;
|
|
1273
|
+
} else if (b[sortField] > a[sortField]) {
|
|
1274
|
+
return 1;
|
|
1275
|
+
}
|
|
1276
|
+
return 0;
|
|
1277
|
+
});
|
|
1278
|
+
}
|
|
1279
|
+
this.setState(() => ({
|
|
1280
|
+
page: page,
|
|
1281
|
+
data: result.slice((page - 1) * sizePerPage, page * sizePerPage),
|
|
1282
|
+
totalSize: result.length,
|
|
1283
|
+
sizePerPage: sizePerPage,
|
|
1284
|
+
allData: result,
|
|
1285
|
+
}));
|
|
1286
|
+
}, 2000);
|
|
1287
|
+
};
|
|
1288
|
+
|
|
1289
|
+
handleExport = onExport => e => {
|
|
1290
|
+
onExport(this.state.allData);
|
|
1291
|
+
};
|
|
1292
|
+
|
|
1293
|
+
render() {
|
|
1294
|
+
return (
|
|
1295
|
+
<ToolkitProvider
|
|
1296
|
+
keyField="id"
|
|
1297
|
+
data={this.state.data}
|
|
1298
|
+
columns={productColumns}
|
|
1299
|
+
search
|
|
1300
|
+
columnToggle
|
|
1301
|
+
exportCSV={{
|
|
1302
|
+
fileName: 'products-export.csv',
|
|
1303
|
+
noAutoBOM: false,
|
|
1304
|
+
blobType: 'text/csv;charset=ansi',
|
|
1305
|
+
data: this.state.allData
|
|
1306
|
+
}}
|
|
1307
|
+
>
|
|
1308
|
+
{props => (
|
|
1309
|
+
<PaginationProvider
|
|
1310
|
+
pagination={paginationFactory({
|
|
1311
|
+
custom: true,
|
|
1312
|
+
page: this.state.page,
|
|
1313
|
+
sizePerPage: this.state.sizePerPage,
|
|
1314
|
+
totalSize: this.state.totalSize,
|
|
1315
|
+
sizePerPageList: [10, 25, 50, 100],
|
|
1316
|
+
showSizePerPage: true,
|
|
1317
|
+
showTotal: true,
|
|
1318
|
+
paginationTotalRenderer: customPaginationTotal,
|
|
1319
|
+
})}
|
|
1320
|
+
>
|
|
1321
|
+
{({ paginationProps, paginationTableProps }) => (
|
|
1322
|
+
<div>
|
|
1323
|
+
<CustomToggleList {...props.columnToggleProps} />
|
|
1324
|
+
<div>
|
|
1325
|
+
<SizePerPageDropdownStandalone {...paginationProps} />
|
|
1326
|
+
<PaginationTotalStandalone {...paginationProps} />
|
|
1327
|
+
<ExportCSVButton {...props.csvProps}
|
|
1328
|
+
className="btn-warning"
|
|
1329
|
+
style={{ marginLeft: '20px' }}
|
|
1330
|
+
onClick={this.handleExport(props.csvProps.onExport)}
|
|
1331
|
+
>Export CSV</ExportCSVButton>
|
|
1332
|
+
<PaginationListStandalone {...paginationProps} />
|
|
1333
|
+
</div>
|
|
1334
|
+
<BootstrapTable
|
|
1335
|
+
remote
|
|
1336
|
+
striped
|
|
1337
|
+
hover
|
|
1338
|
+
condensed
|
|
1339
|
+
defaultSorted={[
|
|
1340
|
+
{
|
|
1341
|
+
dataField: "name",
|
|
1342
|
+
order: "desc",
|
|
1343
|
+
},
|
|
1344
|
+
]}
|
|
1345
|
+
{...props.baseProps}
|
|
1346
|
+
filter={filterFactory()}
|
|
1347
|
+
overlay={overlayFactory({ spinner: true })}
|
|
1348
|
+
onTableChange={this.handleTableChange}
|
|
1349
|
+
cellEdit={cellEditFactory({
|
|
1350
|
+
mode: "click",
|
|
1351
|
+
})}
|
|
1352
|
+
{...paginationTableProps}
|
|
1353
|
+
/>
|
|
1354
|
+
<div style={{ marginBottom: '20px' }}>
|
|
1355
|
+
<SizePerPageDropdownStandalone {...paginationProps} />
|
|
1356
|
+
<PaginationTotalStandalone {...paginationProps} />
|
|
1357
|
+
<ExportCSVButton {...props.csvProps}
|
|
1358
|
+
className="btn-warning"
|
|
1359
|
+
style={{ marginLeft: '20px' }}
|
|
1360
|
+
onClick={this.handleExport(props.csvProps.onExport)}
|
|
1361
|
+
>Export CSV</ExportCSVButton>
|
|
1362
|
+
<PaginationListStandalone {...paginationProps} />
|
|
1363
|
+
</div>
|
|
1364
|
+
<Code>{remoteAllExportSourceCode}</Code>
|
|
1365
|
+
</div>
|
|
1366
|
+
)}
|
|
1367
|
+
</PaginationProvider>
|
|
1368
|
+
)}
|
|
1369
|
+
</ToolkitProvider>
|
|
1370
|
+
);
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
`;
|
|
1374
|
+
|
|
1375
|
+
const productColumns = [
|
|
1376
|
+
{
|
|
1377
|
+
dataField: "id",
|
|
1378
|
+
text: "Product ID",
|
|
1379
|
+
filter: textFilter(),
|
|
1380
|
+
sort: true,
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
dataField: "name",
|
|
1384
|
+
text: "Product Name",
|
|
1385
|
+
filter: textFilter(),
|
|
1386
|
+
sort: true,
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
dataField: "price",
|
|
1390
|
+
text: "Product Price",
|
|
1391
|
+
filter: textFilter(),
|
|
1392
|
+
sort: true,
|
|
1393
|
+
hidden: true,
|
|
1394
|
+
},
|
|
1395
|
+
];
|
|
1396
|
+
|
|
1397
|
+
const { ExportCSVButton } = CSVExport;
|
|
1398
|
+
|
|
1399
|
+
//leslint-disable-next-line react/proprtypes
|
|
1400
|
+
const CustomToggleList = ({ columns, onColumnToggle, toggles }) => (
|
|
1401
|
+
<div className="btn-group btn-group-toggle" data-toggle="buttons" style={{ marginBottom: '10px' }}>
|
|
1402
|
+
{columns
|
|
1403
|
+
.filter(column => !(column.toggleHidden === true))
|
|
1404
|
+
.map(column => ({
|
|
1405
|
+
...column,
|
|
1406
|
+
toggle: toggles[column.dataField]
|
|
1407
|
+
}))
|
|
1408
|
+
.map(column => (
|
|
1409
|
+
<button
|
|
1410
|
+
type="button"
|
|
1411
|
+
key={column.dataField}
|
|
1412
|
+
className={`btn ${column.toggle ? 'btn-primary' : 'btn-default'}`}
|
|
1413
|
+
data-toggle="button"
|
|
1414
|
+
aria-pressed={column.toggle ? 'true' : 'false'}
|
|
1415
|
+
onClick={() => onColumnToggle(column.dataField)}
|
|
1416
|
+
>
|
|
1417
|
+
{column.text}
|
|
1418
|
+
</button>
|
|
1419
|
+
))}
|
|
1420
|
+
</div>
|
|
1421
|
+
);
|
|
1422
|
+
|
|
1423
|
+
const customPaginationTotal = (from: number, to: number, totalSize: number) => (
|
|
1424
|
+
<span className="react-bootstrap-table-pagination-total" style={{ marginLeft: '10px' }}>
|
|
1425
|
+
{from} to {to} of {totalSize} rows
|
|
1426
|
+
</span>
|
|
1427
|
+
);
|
|
1428
|
+
|
|
1429
|
+
|
|
1430
|
+
const allExportProducts = productsGenerator(487);
|
|
1431
|
+
|
|
1432
|
+
class RemoteAllCustomComponent extends React.Component {
|
|
1433
|
+
constructor(props: any) {
|
|
1434
|
+
super(props);
|
|
1435
|
+
this.state = {
|
|
1436
|
+
page: 1,
|
|
1437
|
+
data: allExportProducts.slice(0, 10),
|
|
1438
|
+
totalSize: allExportProducts.length,
|
|
1439
|
+
sizePerPage: 10,
|
|
1440
|
+
allData: allExportProducts,
|
|
1441
|
+
};
|
|
1442
|
+
this.handleTableChange = this.handleTableChange.bind(this);
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
handleTableChange = (
|
|
1446
|
+
type: any,
|
|
1447
|
+
{ page, sizePerPage, filters, sortField, sortOrder, cellEdit }: any
|
|
1448
|
+
) => {
|
|
1449
|
+
setTimeout(() => {
|
|
1450
|
+
// Handle cell editing
|
|
1451
|
+
if (type === "cellEdit") {
|
|
1452
|
+
const { rowId, dataField, newValue } = cellEdit;
|
|
1453
|
+
products = products.map((row: any) => {
|
|
1454
|
+
if (row.id === rowId) {
|
|
1455
|
+
const newRow = { ...row };
|
|
1456
|
+
newRow[dataField] = newValue;
|
|
1457
|
+
return newRow;
|
|
1458
|
+
}
|
|
1459
|
+
return row;
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1462
|
+
let result = allExportProducts;
|
|
1463
|
+
// Handle column filters
|
|
1464
|
+
result = result.filter((row: any) => {
|
|
1465
|
+
let valid = true;
|
|
1466
|
+
for (const dataField in filters) {
|
|
1467
|
+
const { filterVal, filterType, comparator } = filters[dataField];
|
|
1468
|
+
|
|
1469
|
+
if (filterType === "TEXT") {
|
|
1470
|
+
if (comparator === LIKE) {
|
|
1471
|
+
valid = row[dataField].toString().indexOf(filterVal) > -1;
|
|
1472
|
+
} else {
|
|
1473
|
+
valid = row[dataField] === filterVal;
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
if (!valid) break;
|
|
1477
|
+
}
|
|
1478
|
+
return valid;
|
|
1479
|
+
});
|
|
1480
|
+
// Handle column sort
|
|
1481
|
+
if (sortOrder === "asc") {
|
|
1482
|
+
result = result.sort((a: any, b: any) => {
|
|
1483
|
+
if (a[sortField] > b[sortField]) {
|
|
1484
|
+
return 1;
|
|
1485
|
+
} else if (b[sortField] > a[sortField]) {
|
|
1486
|
+
return -1;
|
|
1487
|
+
}
|
|
1488
|
+
return 0;
|
|
1489
|
+
});
|
|
1490
|
+
} else {
|
|
1491
|
+
result = result.sort((a: any, b: any) => {
|
|
1492
|
+
if (a[sortField] > b[sortField]) {
|
|
1493
|
+
return -1;
|
|
1494
|
+
} else if (b[sortField] > a[sortField]) {
|
|
1495
|
+
return 1;
|
|
1496
|
+
}
|
|
1497
|
+
return 0;
|
|
1498
|
+
});
|
|
1499
|
+
}
|
|
1500
|
+
this.setState(() => ({
|
|
1501
|
+
page: page * sizePerPage < result.length ? page : Math.ceil(result.length / sizePerPage),
|
|
1502
|
+
data: result.slice((page - 1) * sizePerPage, page * sizePerPage),
|
|
1503
|
+
totalSize: result.length,
|
|
1504
|
+
sizePerPage: sizePerPage,
|
|
1505
|
+
allData: result,
|
|
1506
|
+
}));
|
|
1507
|
+
}, 2000);
|
|
1508
|
+
};
|
|
1509
|
+
|
|
1510
|
+
handleExport = onExport => e => {
|
|
1511
|
+
onExport(this.state.allData);
|
|
1512
|
+
};
|
|
1513
|
+
|
|
1514
|
+
render() {
|
|
1515
|
+
return (
|
|
1516
|
+
<ToolkitProvider
|
|
1517
|
+
keyField="id"
|
|
1518
|
+
data={this.state.data}
|
|
1519
|
+
columns={productColumns}
|
|
1520
|
+
search
|
|
1521
|
+
columnToggle
|
|
1522
|
+
exportCSV={{
|
|
1523
|
+
fileName: 'products-export.csv',
|
|
1524
|
+
noAutoBOM: false,
|
|
1525
|
+
blobType: 'text/csv;charset=ansi',
|
|
1526
|
+
data: this.state.allData
|
|
1527
|
+
}}
|
|
1528
|
+
>
|
|
1529
|
+
{props => (
|
|
1530
|
+
<PaginationProvider
|
|
1531
|
+
pagination={paginationFactory({
|
|
1532
|
+
custom: true,
|
|
1533
|
+
page: this.state.page,
|
|
1534
|
+
sizePerPage: this.state.sizePerPage,
|
|
1535
|
+
totalSize: this.state.totalSize,
|
|
1536
|
+
sizePerPageList: [10, 25, 50, 100],
|
|
1537
|
+
showSizePerPage: true,
|
|
1538
|
+
showTotal: true,
|
|
1539
|
+
paginationTotalRenderer: customPaginationTotal,
|
|
1540
|
+
})}
|
|
1541
|
+
>
|
|
1542
|
+
{({ paginationProps, paginationTableProps }) => (
|
|
1543
|
+
<div>
|
|
1544
|
+
<CustomToggleList {...props.columnToggleProps} />
|
|
1545
|
+
<div>
|
|
1546
|
+
<SizePerPageDropdownStandalone {...paginationProps} />
|
|
1547
|
+
<PaginationTotalStandalone {...paginationProps} />
|
|
1548
|
+
<ExportCSVButton {...props.csvProps}
|
|
1549
|
+
className="btn-warning"
|
|
1550
|
+
style={{ marginLeft: '20px' }}
|
|
1551
|
+
onClick={this.handleExport(props.csvProps.onExport)}
|
|
1552
|
+
>Export CSV</ExportCSVButton>
|
|
1553
|
+
<PaginationListStandalone {...paginationProps} />
|
|
1554
|
+
</div>
|
|
1555
|
+
<BootstrapTable
|
|
1556
|
+
remote
|
|
1557
|
+
striped
|
|
1558
|
+
hover
|
|
1559
|
+
condensed
|
|
1560
|
+
defaultSorted={[
|
|
1561
|
+
{
|
|
1562
|
+
dataField: "name",
|
|
1563
|
+
order: "desc",
|
|
1564
|
+
},
|
|
1565
|
+
]}
|
|
1566
|
+
{...props.baseProps}
|
|
1567
|
+
filter={filterFactory()}
|
|
1568
|
+
overlay={overlayFactory({ spinner: true })}
|
|
1569
|
+
onTableChange={this.handleTableChange}
|
|
1570
|
+
cellEdit={cellEditFactory({
|
|
1571
|
+
mode: "click",
|
|
1572
|
+
})}
|
|
1573
|
+
{...paginationTableProps}
|
|
1574
|
+
/>
|
|
1575
|
+
<div style={{ marginBottom: '20px' }}>
|
|
1576
|
+
<SizePerPageDropdownStandalone {...paginationProps} />
|
|
1577
|
+
<PaginationTotalStandalone {...paginationProps} />
|
|
1578
|
+
<ExportCSVButton {...props.csvProps}
|
|
1579
|
+
className="btn-warning"
|
|
1580
|
+
style={{ marginLeft: '20px' }}
|
|
1581
|
+
onClick={this.handleExport(props.csvProps.onExport)}
|
|
1582
|
+
>Export CSV</ExportCSVButton>
|
|
1583
|
+
<PaginationListStandalone {...paginationProps} />
|
|
1584
|
+
</div>
|
|
1585
|
+
<Code>{remoteAllExportSourceCode}</Code>
|
|
1586
|
+
</div>
|
|
1587
|
+
)}
|
|
1588
|
+
</PaginationProvider>
|
|
1589
|
+
)}
|
|
1590
|
+
</ToolkitProvider>
|
|
1591
|
+
);
|
|
1592
|
+
}
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1135
1595
|
interface RemoteMainProps {
|
|
1136
1596
|
mode?: any;
|
|
1137
1597
|
}
|
|
@@ -1150,5 +1610,7 @@ export default ({ mode }: RemoteMainProps) => {
|
|
|
1150
1610
|
return <RemoteCellEditComponent />;
|
|
1151
1611
|
case "all":
|
|
1152
1612
|
return <RemoteAllComponent />;
|
|
1613
|
+
case "all-custom":
|
|
1614
|
+
return <RemoteAllCustomComponent />;
|
|
1153
1615
|
}
|
|
1154
1616
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
3
|
|
|
4
4
|
// import bootstrap style by given version
|
|
5
5
|
import cellEditFactory from '../../../react-bootstrap-table-ng-editor';
|
package/sb_output.txt
DELETED
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
yarn run v1.22.22
|
|
2
|
-
(node:5114) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
|
|
3
|
-
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
4
|
-
$ storybook dev -p 6006
|
|
5
|
-
@storybook/core v8.6.15
|
|
6
|
-
|
|
7
|
-
(node:5116) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
|
|
8
|
-
(Use `node --trace-deprecation ...` to show where the warning was created)
|
|
9
|
-
info Found existing addon "@storybook/addon-docs", skipping.
|
|
10
|
-
info Found existing addon "@storybook/addon-docs", skipping.
|
|
11
|
-
info => Serving static files from ././public at /
|
|
12
|
-
info => Starting manager..
|
|
13
|
-
info => Starting preview..
|
|
14
|
-
info => Loading Webpack configuration from `node_modules/react-scripts`
|
|
15
|
-
info => Removing existing JavaScript and TypeScript rules.
|
|
16
|
-
info => Modifying Create React App rules.
|
|
17
|
-
info Addon-docs: using MDX3
|
|
18
|
-
info => Using default Webpack5 setup
|
|
19
|
-
<i> [webpack-dev-middleware] wait until bundle finished
|
|
20
|
-
<s> [webpack.Progress] 3% setup watch run
|
|
21
|
-
<s> [webpack.Progress] 3% setup watch run VirtualModulesPlugin
|
|
22
|
-
<s> [webpack.Progress] 3% setup watch run ForkTsCheckerWebpackPlugin
|
|
23
|
-
<s> [webpack.Progress] 3% setup watch run ESLintWebpackPlugin_1
|
|
24
|
-
<s> [webpack.Progress] 3% setup watch run webpack-dev-middleware
|
|
25
|
-
<s> [webpack.Progress] 3% setup watch run
|
|
26
|
-
<s> [webpack.Progress] 4% setup normal module factory
|
|
27
|
-
<s> [webpack.Progress] 4% setup normal module factory CaseSensitivePathsPlugin
|
|
28
|
-
<s> [webpack.Progress] 4% setup normal module factory ModuleNotFoundPlugin
|
|
29
|
-
<s> [webpack.Progress] 4% setup normal module factory IgnorePlugin
|
|
30
|
-
<s> [webpack.Progress] 4% setup normal module factory
|
|
31
|
-
<s> [webpack.Progress] 5% setup context module factory
|
|
32
|
-
<s> [webpack.Progress] 5% setup context module factory IgnorePlugin
|
|
33
|
-
<s> [webpack.Progress] 5% setup context module factory
|
|
34
|
-
<s> [webpack.Progress] 6% setup before compile
|
|
35
|
-
<s> [webpack.Progress] 6% setup before compile ProgressPlugin
|
|
36
|
-
<s> [webpack.Progress] 6% setup before compile ProgressPlugin
|
|
37
|
-
<s> [webpack.Progress] 6% setup before compile
|
|
38
|
-
<s> [webpack.Progress] 7% setup compile
|
|
39
|
-
<s> [webpack.Progress] 7% setup compile ExternalsPlugin
|
|
40
|
-
<s> [webpack.Progress] 7% setup compile ExternalsPlugin
|
|
41
|
-
<s> [webpack.Progress] 7% setup compile
|
|
42
|
-
<s> [webpack.Progress] 8% setup compilation
|
|
43
|
-
<s> [webpack.Progress] 8% setup compilation HtmlWebpackPlugin
|
|
44
|
-
<s> [webpack.Progress] 8% setup compilation unplugin-csf
|
|
45
|
-
<s> [webpack.Progress] 8% setup compilation ArrayPushCallbackChunkFormatPlugin
|
|
46
|
-
<s> [webpack.Progress] 8% setup compilation JsonpChunkLoadingPlugin
|
|
47
|
-
<s> [webpack.Progress] 8% setup compilation StartupChunkDependenciesPlugin
|
|
48
|
-
<s> [webpack.Progress] 8% setup compilation ImportScriptsChunkLoadingPlugin
|
|
49
|
-
<s> [webpack.Progress] 8% setup compilation WorkerPlugin
|
|
50
|
-
<s> [webpack.Progress] 8% setup compilation SplitChunksPlugin
|
|
51
|
-
<s> [webpack.Progress] 8% setup compilation RuntimeChunkPlugin
|
|
52
|
-
<s> [webpack.Progress] 8% setup compilation ResolverCachePlugin
|
|
53
|
-
<s> [webpack.Progress] 8% setup compilation
|
|
54
|
-
<s> [webpack.Progress] 9% setup compilation
|
|
55
|
-
<s> [webpack.Progress] 9% setup compilation DefinePlugin
|
|
56
|
-
<s> [webpack.Progress] 9% setup compilation ProvidePlugin
|
|
57
|
-
<s> [webpack.Progress] 9% setup compilation HotModuleReplacementPlugin
|
|
58
|
-
<s> [webpack.Progress] 9% setup compilation ProgressPlugin
|
|
59
|
-
<s> [webpack.Progress] 9% setup compilation InterpolateHtmlPlugin
|
|
60
|
-
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
61
|
-
<s> [webpack.Progress] 9% setup compilation DefinePlugin
|
|
62
|
-
<s> [webpack.Progress] 9% setup compilation ProvidePlugin
|
|
63
|
-
<s> [webpack.Progress] 9% setup compilation ReactRefreshPlugin
|
|
64
|
-
<s> [webpack.Progress] 9% setup compilation ForkTsCheckerWebpackPlugin
|
|
65
|
-
<s> [webpack.Progress] 9% setup compilation ExternalsPlugin
|
|
66
|
-
<s> [webpack.Progress] 9% setup compilation ExternalsPlugin
|
|
67
|
-
<s> [webpack.Progress] 9% setup compilation ChunkPrefetchPreloadPlugin
|
|
68
|
-
<s> [webpack.Progress] 9% setup compilation ModuleInfoHeaderPlugin
|
|
69
|
-
<s> [webpack.Progress] 9% setup compilation SourceMapDevToolPlugin
|
|
70
|
-
<s> [webpack.Progress] 9% setup compilation JavascriptModulesPlugin
|
|
71
|
-
<s> [webpack.Progress] 9% setup compilation JsonModulesPlugin
|
|
72
|
-
<s> [webpack.Progress] 9% setup compilation AssetModulesPlugin
|
|
73
|
-
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
74
|
-
<s> [webpack.Progress] 9% setup compilation EntryPlugin
|
|
75
|
-
<s> [webpack.Progress] 9% setup compilation RuntimePlugin
|
|
76
|
-
<s> [webpack.Progress] 9% setup compilation InferAsyncModulesPlugin
|
|
77
|
-
<s> [webpack.Progress] 9% setup compilation DataUriPlugin
|
|
78
|
-
<s> [webpack.Progress] 9% setup compilation FileUriPlugin
|
|
79
|
-
<s> [webpack.Progress] 9% setup compilation CompatibilityPlugin
|
|
80
|
-
<s> [webpack.Progress] 9% setup compilation HarmonyModulesPlugin
|
|
81
|
-
<s> [webpack.Progress] 9% setup compilation AMDPlugin
|
|
82
|
-
<s> [webpack.Progress] 9% setup compilation RequireJsStuffPlugin
|
|
83
|
-
<s> [webpack.Progress] 9% setup compilation CommonJsPlugin
|
|
84
|
-
<s> [webpack.Progress] 9% setup compilation LoaderPlugin
|
|
85
|
-
<s> [webpack.Progress] 9% setup compilation LoaderPlugin
|
|
86
|
-
<s> [webpack.Progress] 9% setup compilation NodeStuffPlugin
|
|
87
|
-
<s> [webpack.Progress] 9% setup compilation APIPlugin
|
|
88
|
-
<s> [webpack.Progress] 9% setup compilation ExportsInfoApiPlugin
|
|
89
|
-
<s> [webpack.Progress] 9% setup compilation WebpackIsIncludedPlugin
|
|
90
|
-
<s> [webpack.Progress] 9% setup compilation ConstPlugin
|
|
91
|
-
<s> [webpack.Progress] 9% setup compilation UseStrictPlugin
|
|
92
|
-
<s> [webpack.Progress] 9% setup compilation RequireIncludePlugin
|
|
93
|
-
<s> [webpack.Progress] 9% setup compilation RequireEnsurePlugin
|
|
94
|
-
<s> [webpack.Progress] 9% setup compilation RequireContextPlugin
|
|
95
|
-
<s> [webpack.Progress] 9% setup compilation ImportPlugin
|
|
96
|
-
<s> [webpack.Progress] 9% setup compilation ImportMetaContextPlugin
|
|
97
|
-
<s> [webpack.Progress] 9% setup compilation SystemPlugin
|
|
98
|
-
<s> [webpack.Progress] 9% setup compilation ImportMetaPlugin
|
|
99
|
-
<s> [webpack.Progress] 9% setup compilation URLPlugin
|
|
100
|
-
<s> [webpack.Progress] 9% setup compilation DefaultStatsFactoryPlugin
|
|
101
|
-
<s> [webpack.Progress] 9% setup compilation DefaultStatsPresetPlugin
|
|
102
|
-
<s> [webpack.Progress] 9% setup compilation DefaultStatsPrinterPlugin
|
|
103
|
-
<s> [webpack.Progress] 9% setup compilation JavascriptMetaInfoPlugin
|
|
104
|
-
<s> [webpack.Progress] 9% setup compilation EnsureChunkConditionsPlugin
|
|
105
|
-
<s> [webpack.Progress] 9% setup compilation RemoveEmptyChunksPlugin
|
|
106
|
-
<s> [webpack.Progress] 9% setup compilation MergeDuplicateChunksPlugin
|
|
107
|
-
<s> [webpack.Progress] 9% setup compilation SideEffectsFlagPlugin
|
|
108
|
-
<s> [webpack.Progress] 9% setup compilation FlagDependencyExportsPlugin
|
|
109
|
-
<s> [webpack.Progress] 9% setup compilation NamedModuleIdsPlugin
|
|
110
|
-
<s> [webpack.Progress] 9% setup compilation NamedChunkIdsPlugin
|
|
111
|
-
<s> [webpack.Progress] 9% setup compilation DefinePlugin
|
|
112
|
-
<s> [webpack.Progress] 9% setup compilation TemplatedPathPlugin
|
|
113
|
-
<s> [webpack.Progress] 9% setup compilation RecordIdsPlugin
|
|
114
|
-
<s> [webpack.Progress] 9% setup compilation WarnCaseSensitiveModulesPlugin
|
|
115
|
-
<s> [webpack.Progress] 9% setup compilation IgnoreWarningsPlugin
|
|
116
|
-
<s> [webpack.Progress] 9% setup compilation ProgressPlugin
|
|
117
|
-
<s> [webpack.Progress] 9% setup compilation ESLintWebpackPlugin_1
|
|
118
|
-
<s> [webpack.Progress] 9% setup compilation
|
|
119
|
-
<s> [webpack.Progress] 10% building
|
|
120
|
-
<s> [webpack.Progress] 10% building 0/1 entries 0/0 dependencies 0/0 modules
|
|
121
|
-
<s> [webpack.Progress] 10% building import loader ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
|
|
122
|
-
<s> [webpack.Progress] 10% building import loader ./node_modules/@storybook/preset-react-webpack/dist/loaders/react-docgen-loader.js
|
|
123
|
-
<s> [webpack.Progress] 10% building 0/3 entries 3/7 dependencies 0/2 modules
|
|
124
|
-
info Using tsconfig paths for react-docgen
|
|
125
|
-
<s> [webpack.Progress] 10% building import loader ./node_modules/babel-loader/lib/index.js
|
|
126
|
-
<s> [webpack.Progress] 10% building import loader ./node_modules/source-map-loader/dist/cjs.js
|
|
127
|
-
<s> [webpack.Progress] 10% building 0/3 entries 45/70 dependencies 7/27 modules
|
|
128
|
-
<s> [webpack.Progress] 10% building import loader ./node_modules/@storybook/addon-docs/dist/mdx-loader.js
|
|
129
|
-
<s> [webpack.Progress] 10% building 0/3 entries 154/213 dependencies 32/73 modules
|
|
130
|
-
<s> [webpack.Progress] 28% building 1/3 entries 155/214 dependencies 35/73 modules
|
|
131
|
-
<s> [webpack.Progress] 28% building import loader ./node_modules/@storybook/csf-plugin/dist/webpack-loader.js
|
|
132
|
-
<s> [webpack.Progress] 28% building import loader ./node_modules/@storybook/builder-webpack5/dist/loaders/export-order-loader.js
|
|
133
|
-
<s> [webpack.Progress] 28% building 1/3 entries 205/233 dependencies 35/99 modules
|
|
134
|
-
<s> [webpack.Progress] 28% building import loader ./node_modules/@svgr/webpack/lib/index.js
|
|
135
|
-
<s> [webpack.Progress] 28% building import loader ./node_modules/file-loader/dist/cjs.js
|
|
136
|
-
<s> [webpack.Progress] 28% building 1/3 entries 269/303 dependencies 57/131 modules
|
|
137
|
-
<s> [webpack.Progress] 28% building 1/3 entries 473/600 dependencies 83/181 modules
|
|
138
|
-
<s> [webpack.Progress] 28% building import loader ./node_modules/style-loader/dist/cjs.js
|
|
139
|
-
<s> [webpack.Progress] 28% building import loader ./node_modules/css-loader/dist/cjs.js
|
|
140
|
-
<s> [webpack.Progress] 28% building import loader ./node_modules/postcss-loader/dist/cjs.js
|
|
141
|
-
<s> [webpack.Progress] 28% building 1/3 entries 794/845 dependencies 85/210 modules
|
|
142
|
-
<s> [webpack.Progress] 28% building import loader ./node_modules/resolve-url-loader/index.js
|
|
143
|
-
<s> [webpack.Progress] 28% building import loader ./node_modules/sass-loader/dist/cjs.js
|
|
144
|
-
<s> [webpack.Progress] 28% building 1/3 entries 794/845 dependencies 85/210 modules
|
|
145
|
-
<s> [webpack.Progress] 46% building 2/3 entries 1263/1301 dependencies 226/307 modules
|
|
146
|
-
<s> [webpack.Progress] 46% building 2/3 entries 2000/2053 dependencies 331/410 modules
|
|
147
|
-
<s> [webpack.Progress] 65% building 3/3 entries 2592/2592 dependencies 607/607 modules
|
|
148
|
-
<s> [webpack.Progress] 65% building
|
|
149
|
-
<s> [webpack.Progress] 69% building finish
|
|
150
|
-
<s> [webpack.Progress] 69% building finish ReactRefreshPlugin
|
|
151
|
-
<s> [webpack.Progress] 65% building 4/4 entries 2926/2926 dependencies 686/686 modules
|
|
152
|
-
<s> [webpack.Progress] 69% building finish
|
|
153
|
-
<s> [webpack.Progress] 70% sealing finish module graph
|
|
154
|
-
<s> [webpack.Progress] 70% sealing finish module graph ResolverCachePlugin
|
|
155
|
-
<s> [webpack.Progress] 70% sealing finish module graph InferAsyncModulesPlugin
|
|
156
|
-
<s> [webpack.Progress] 70% sealing finish module graph FlagDependencyExportsPlugin
|
|
157
|
-
<s> [webpack.Progress] 70% sealing finish module graph ESLintWebpackPlugin_1
|
|
158
|
-
<s> [webpack.Progress] 70% sealing finish module graph
|
|
159
|
-
<s> [webpack.Progress] 70% sealing plugins
|
|
160
|
-
<s> [webpack.Progress] 70% sealing plugins WarnCaseSensitiveModulesPlugin
|
|
161
|
-
<s> [webpack.Progress] 70% sealing plugins
|
|
162
|
-
<s> [webpack.Progress] 71% sealing dependencies optimization
|
|
163
|
-
<s> [webpack.Progress] 71% sealing dependencies optimization SideEffectsFlagPlugin
|
|
164
|
-
<s> [webpack.Progress] 71% sealing dependencies optimization
|
|
165
|
-
<s> [webpack.Progress] 71% sealing after dependencies optimization
|
|
166
|
-
<s> [webpack.Progress] 71% sealing after dependencies optimization
|
|
167
|
-
<s> [webpack.Progress] 72% sealing chunk graph
|
|
168
|
-
<s> [webpack.Progress] 72% sealing chunk graph
|
|
169
|
-
<s> [webpack.Progress] 73% sealing after chunk graph
|
|
170
|
-
<s> [webpack.Progress] 73% sealing after chunk graph
|
|
171
|
-
<s> [webpack.Progress] 73% sealing optimizing
|
|
172
|
-
<s> [webpack.Progress] 73% sealing optimizing
|
|
173
|
-
<s> [webpack.Progress] 74% sealing module optimization
|
|
174
|
-
<s> [webpack.Progress] 74% sealing module optimization
|
|
175
|
-
<s> [webpack.Progress] 75% sealing after module optimization
|
|
176
|
-
<s> [webpack.Progress] 75% sealing after module optimization
|
|
177
|
-
<s> [webpack.Progress] 75% sealing chunk optimization
|
|
178
|
-
<s> [webpack.Progress] 75% sealing chunk optimization EnsureChunkConditionsPlugin
|
|
179
|
-
<s> [webpack.Progress] 75% sealing chunk optimization RemoveEmptyChunksPlugin
|
|
180
|
-
<s> [webpack.Progress] 75% sealing chunk optimization MergeDuplicateChunksPlugin
|
|
181
|
-
<s> [webpack.Progress] 75% sealing chunk optimization SplitChunksPlugin
|
|
182
|
-
<s> [webpack.Progress] 75% sealing chunk optimization RemoveEmptyChunksPlugin
|
|
183
|
-
<s> [webpack.Progress] 75% sealing chunk optimization
|
|
184
|
-
<s> [webpack.Progress] 76% sealing after chunk optimization
|
|
185
|
-
<s> [webpack.Progress] 76% sealing after chunk optimization
|
|
186
|
-
<s> [webpack.Progress] 77% sealing module and chunk tree optimization
|
|
187
|
-
<s> [webpack.Progress] 77% sealing module and chunk tree optimization PersistentChildCompilerSingletonPlugin
|
|
188
|
-
<s> [webpack.Progress] 77% sealing module and chunk tree optimization
|
|
189
|
-
<s> [webpack.Progress] 77% sealing after module and chunk tree optimization
|
|
190
|
-
<s> [webpack.Progress] 77% sealing after module and chunk tree optimization
|
|
191
|
-
<s> [webpack.Progress] 78% sealing chunk modules optimization
|
|
192
|
-
<s> [webpack.Progress] 78% sealing chunk modules optimization
|
|
193
|
-
<s> [webpack.Progress] 78% sealing after chunk modules optimization
|
|
194
|
-
<s> [webpack.Progress] 78% sealing after chunk modules optimization
|
|
195
|
-
<s> [webpack.Progress] 79% sealing module reviving
|
|
196
|
-
<s> [webpack.Progress] 79% sealing module reviving RecordIdsPlugin
|
|
197
|
-
<s> [webpack.Progress] 79% sealing module reviving
|
|
198
|
-
<s> [webpack.Progress] 80% sealing before module ids
|
|
199
|
-
<s> [webpack.Progress] 80% sealing before module ids
|
|
200
|
-
<s> [webpack.Progress] 80% sealing module ids
|
|
201
|
-
<s> [webpack.Progress] 80% sealing module ids NamedModuleIdsPlugin
|
|
202
|
-
<s> [webpack.Progress] 80% sealing module ids
|
|
203
|
-
<s> [webpack.Progress] 81% sealing module id optimization
|
|
204
|
-
<s> [webpack.Progress] 81% sealing module id optimization
|
|
205
|
-
<s> [webpack.Progress] 82% sealing module id optimization
|
|
206
|
-
<s> [webpack.Progress] 82% sealing module id optimization
|
|
207
|
-
<s> [webpack.Progress] 82% sealing chunk reviving
|
|
208
|
-
<s> [webpack.Progress] 82% sealing chunk reviving RecordIdsPlugin
|
|
209
|
-
<s> [webpack.Progress] 82% sealing chunk reviving
|
|
210
|
-
<s> [webpack.Progress] 83% sealing before chunk ids
|
|
211
|
-
<s> [webpack.Progress] 83% sealing before chunk ids
|
|
212
|
-
<s> [webpack.Progress] 84% sealing chunk ids
|
|
213
|
-
<s> [webpack.Progress] 84% sealing chunk ids NamedChunkIdsPlugin
|
|
214
|
-
<s> [webpack.Progress] 84% sealing chunk ids
|
|
215
|
-
<s> [webpack.Progress] 84% sealing chunk id optimization
|
|
216
|
-
<s> [webpack.Progress] 84% sealing chunk id optimization
|
|
217
|
-
<s> [webpack.Progress] 85% sealing after chunk id optimization
|
|
218
|
-
<s> [webpack.Progress] 85% sealing after chunk id optimization
|
|
219
|
-
<s> [webpack.Progress] 86% sealing record modules
|
|
220
|
-
<s> [webpack.Progress] 86% sealing record modules RecordIdsPlugin
|
|
221
|
-
<s> [webpack.Progress] 86% sealing record modules
|
|
222
|
-
<s> [webpack.Progress] 86% sealing record chunks
|
|
223
|
-
<s> [webpack.Progress] 86% sealing record chunks RecordIdsPlugin
|
|
224
|
-
<s> [webpack.Progress] 86% sealing record chunks
|
|
225
|
-
<s> [webpack.Progress] 87% sealing module hashing
|
|
226
|
-
<s> [webpack.Progress] 87% sealing module hashing
|
|
227
|
-
<s> [webpack.Progress] 87% sealing code generation
|
|
228
|
-
<s> [webpack.Progress] 87% sealing code generation
|
|
229
|
-
<s> [webpack.Progress] 88% sealing runtime requirements
|
|
230
|
-
<s> [webpack.Progress] 88% sealing runtime requirements
|
|
231
|
-
<s> [webpack.Progress] 89% sealing hashing
|
|
232
|
-
<s> [webpack.Progress] 89% sealing hashing
|
|
233
|
-
<s> [webpack.Progress] 89% sealing after hashing
|
|
234
|
-
<s> [webpack.Progress] 89% sealing after hashing
|
|
235
|
-
<s> [webpack.Progress] 90% sealing record hash
|
|
236
|
-
<s> [webpack.Progress] 90% sealing record hash
|
|
237
|
-
<s> [webpack.Progress] 91% sealing module assets processing
|
|
238
|
-
<s> [webpack.Progress] 91% sealing module assets processing
|
|
239
|
-
<s> [webpack.Progress] 91% sealing chunk assets processing
|
|
240
|
-
<s> [webpack.Progress] 91% sealing chunk assets processing
|
|
241
|
-
<s> [webpack.Progress] 92% sealing asset processing
|
|
242
|
-
<s> [webpack.Progress] 92% sealing asset processing HotModuleReplacementPlugin
|
|
243
|
-
<s> [webpack.Progress] 92% sealing asset processing ESLintWebpackPlugin_1
|
|
244
|
-
<s> [webpack.Progress] 92% sealing asset processing PersistentChildCompilerSingletonPlugin
|
|
245
|
-
<s> [webpack.Progress] 92% sealing asset processing SourceMapDevToolPlugin
|
|
246
|
-
<s> [webpack.Progress] 92% sealing asset processing HtmlWebpackPlugin
|
|
247
|
-
<s> [webpack.Progress] 92% sealing asset processing
|
|
248
|
-
<s> [webpack.Progress] 93% sealing after asset optimization
|
|
249
|
-
<s> [webpack.Progress] 93% sealing after asset optimization
|
|
250
|
-
<s> [webpack.Progress] 93% sealing recording
|
|
251
|
-
<s> [webpack.Progress] 93% sealing recording HotModuleReplacementPlugin
|
|
252
|
-
<s> [webpack.Progress] 93% sealing recording
|
|
253
|
-
<s> [webpack.Progress] 94% sealing after seal
|
|
254
|
-
<s> [webpack.Progress] 94% sealing after seal
|
|
255
|
-
<s> [webpack.Progress] 95% emitting emit
|
|
256
|
-
<s> [webpack.Progress] 95% emitting emit DevMiddleware
|
|
257
|
-
<s> [webpack.Progress] 95% emitting emit
|
|
258
|
-
<s> [webpack.Progress] 98% emitting after emit
|
|
259
|
-
<s> [webpack.Progress] 98% emitting after emit SizeLimitsPlugin
|
|
260
|
-
<s> [webpack.Progress] 98% emitting after emit
|
|
261
|
-
<s> [webpack.Progress] 99% done plugins
|
|
262
|
-
<s> [webpack.Progress] 99% done plugins CaseSensitivePathsPlugin
|
|
263
|
-
<s> [webpack.Progress] 99% done plugins ForkTsCheckerWebpackPlugin
|
|
264
|
-
<s> [webpack.Progress] 99% done plugins webpack-dev-middleware
|
|
265
|
-
<s> [webpack.Progress] 99% done plugins webpack-hot-middleware
|
|
266
|
-
<s> [webpack.Progress] 99% done plugins ForkTsCheckerWebpackPlugin
|
|
267
|
-
<s> [webpack.Progress] 99% done plugins
|
|
268
|
-
<s> [webpack.Progress] 99%
|
|
269
|
-
|
|
270
|
-
<s> [webpack.Progress] 99% cache store build dependencies
|
|
271
|
-
<s> [webpack.Progress] 99% cache store build dependencies
|
|
272
|
-
<s> [webpack.Progress] 99% cache begin idle
|
|
273
|
-
<s> [webpack.Progress] 99% cache begin idle
|
|
274
|
-
<s> [webpack.Progress] 100%
|
|
275
|
-
|
|
276
|
-
ERROR in ./src/stories/stylesheet/storybook.scss (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[4].oneOf[7].use[3]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[4]!./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[10].use[2]!./src/stories/stylesheet/storybook.scss)
|
|
277
|
-
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
|
|
278
|
-
SassError: expected "{".
|
|
279
|
-
╷
|
|
280
|
-
2 │ import API from "!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js";
|
|
281
|
-
│ ^
|
|
282
|
-
╵
|
|
283
|
-
src/stories/stylesheet/storybook.scss 2:101 root stylesheet
|
|
284
|
-
@ ./src/stories/stylesheet/storybook.scss 8:6-570 22:17-24 26:7-21 52:25-39 53:36-47 53:50-64 58:54-65 58:68-82 64:42-53 64:56-70 66:21-28 78:22-29 78:33-47 78:50-64 77:0-540 77:0-540 57:6-67:7 55:4-68:5
|
|
285
|
-
@ ./src/stories/WorkOnHeaderColumns.tsx 13:0-37
|
|
286
|
-
@ ./src/stories/WorkOnHeaderColumns.stories.tsx 7:0-51 14:13-27
|
|
287
|
-
@ ./src/ lazy ^\.\/.*$ include: (?%21.*node_modules)(?:\/src(?:\/(?%21\.)(?:(?:(?%21(?:^%7C\/)\.).)*?)\/%7C\/%7C$)(?%21\.)(?=.)[^/]*?\.stories\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$ chunkName: [request] namespace object ./stories/WorkOnHeaderColumns.stories.tsx ./stories/WorkOnHeaderColumns.stories
|
|
288
|
-
@ ./storybook-stories.js 25:11-29:5
|
|
289
|
-
@ ./storybook-config-entry.js 9:0-50 30:31-39 37:2-40:4 39:31-39 37:58-40:3
|
|
290
|
-
|
|
291
|
-
ERROR in ../react-bootstrap-table-ng-filter/style/react-bootstrap-table-ng-filter.scss (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[4].oneOf[7].use[3]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[4]!./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[10].use[2]!../react-bootstrap-table-ng-filter/style/react-bootstrap-table-ng-filter.scss)
|
|
292
|
-
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
|
|
293
|
-
SassError: expected "{".
|
|
294
|
-
╷
|
|
295
|
-
2 │ import API from "!../../react-bootstrap-table-ng-example/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js";
|
|
296
|
-
│ ^
|
|
297
|
-
╵
|
|
298
|
-
../react-bootstrap-table-ng-filter/style/react-bootstrap-table-ng-filter.scss 2:131 root stylesheet
|
|
299
|
-
@ ../react-bootstrap-table-ng-filter/style/react-bootstrap-table-ng-filter.scss 8:6-802 22:17-24 26:7-21 52:25-39 53:36-47 53:50-64 58:54-65 58:68-82 64:42-53 64:56-70 66:21-28 78:22-29 78:33-47 78:50-64 77:0-772 77:0-772 57:6-67:7 55:4-68:5
|
|
300
|
-
@ ./src/stories/WorkOnHeaderColumns.tsx 9:0-93
|
|
301
|
-
@ ./src/stories/WorkOnHeaderColumns.stories.tsx 7:0-51 14:13-27
|
|
302
|
-
@ ./src/ lazy ^\.\/.*$ include: (?%21.*node_modules)(?:\/src(?:\/(?%21\.)(?:(?:(?%21(?:^%7C\/)\.).)*?)\/%7C\/%7C$)(?%21\.)(?=.)[^/]*?\.stories\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$ chunkName: [request] namespace object ./stories/WorkOnHeaderColumns.stories.tsx ./stories/WorkOnHeaderColumns.stories
|
|
303
|
-
@ ./storybook-stories.js 25:11-29:5
|
|
304
|
-
@ ./storybook-config-entry.js 9:0-50 30:31-39 37:2-40:4 39:31-39 37:58-40:3
|
|
305
|
-
|
|
306
|
-
ERROR in ../react-bootstrap-table-ng-paginator/style/react-bootstrap-table-ng-paginator.scss (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[4].oneOf[7].use[3]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[4]!./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[10].use[2]!../react-bootstrap-table-ng-paginator/style/react-bootstrap-table-ng-paginator.scss)
|
|
307
|
-
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
|
|
308
|
-
SassError: expected "{".
|
|
309
|
-
╷
|
|
310
|
-
2 │ import API from "!../../react-bootstrap-table-ng-example/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js";
|
|
311
|
-
│ ^
|
|
312
|
-
╵
|
|
313
|
-
../react-bootstrap-table-ng-paginator/style/react-bootstrap-table-ng-paginator.scss 2:131 root stylesheet
|
|
314
|
-
@ ../react-bootstrap-table-ng-paginator/style/react-bootstrap-table-ng-paginator.scss 8:6-805 22:17-24 26:7-21 52:25-39 53:36-47 53:50-64 58:54-65 58:68-82 64:42-53 64:56-70 66:21-28 78:22-29 78:33-47 78:50-64 77:0-775 77:0-775 57:6-67:7 55:4-68:5
|
|
315
|
-
@ ./src/stories/WorkOnHeaderColumns.tsx 10:0-99
|
|
316
|
-
@ ./src/stories/WorkOnHeaderColumns.stories.tsx 7:0-51 14:13-27
|
|
317
|
-
@ ./src/ lazy ^\.\/.*$ include: (?%21.*node_modules)(?:\/src(?:\/(?%21\.)(?:(?:(?%21(?:^%7C\/)\.).)*?)\/%7C\/%7C$)(?%21\.)(?=.)[^/]*?\.stories\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$ chunkName: [request] namespace object ./stories/WorkOnHeaderColumns.stories.tsx ./stories/WorkOnHeaderColumns.stories
|
|
318
|
-
@ ./storybook-stories.js 25:11-29:5
|
|
319
|
-
@ ./storybook-config-entry.js 9:0-50 30:31-39 37:2-40:4 39:31-39 37:58-40:3
|
|
320
|
-
|
|
321
|
-
ERROR in ../react-bootstrap-table-ng-toolkit/style/react-bootstrap-table-ng-toolkit.scss (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[4].oneOf[7].use[3]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[4]!./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[10].use[2]!../react-bootstrap-table-ng-toolkit/style/react-bootstrap-table-ng-toolkit.scss)
|
|
322
|
-
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
|
|
323
|
-
SassError: expected "{".
|
|
324
|
-
╷
|
|
325
|
-
2 │ import API from "!../../react-bootstrap-table-ng-example/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js";
|
|
326
|
-
│ ^
|
|
327
|
-
╵
|
|
328
|
-
../react-bootstrap-table-ng-toolkit/style/react-bootstrap-table-ng-toolkit.scss 2:131 root stylesheet
|
|
329
|
-
@ ../react-bootstrap-table-ng-toolkit/style/react-bootstrap-table-ng-toolkit.scss 8:6-803 22:17-24 26:7-21 52:25-39 53:36-47 53:50-64 58:54-65 58:68-82 64:42-53 64:56-70 66:21-28 78:22-29 78:33-47 78:50-64 77:0-773 77:0-773 57:6-67:7 55:4-68:5
|
|
330
|
-
@ ./src/stories/WorkOnHeaderColumns.tsx 11:0-95
|
|
331
|
-
@ ./src/stories/WorkOnHeaderColumns.stories.tsx 7:0-51 14:13-27
|
|
332
|
-
@ ./src/ lazy ^\.\/.*$ include: (?%21.*node_modules)(?:\/src(?:\/(?%21\.)(?:(?:(?%21(?:^%7C\/)\.).)*?)\/%7C\/%7C$)(?%21\.)(?=.)[^/]*?\.stories\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$ chunkName: [request] namespace object ./stories/WorkOnHeaderColumns.stories.tsx ./stories/WorkOnHeaderColumns.stories
|
|
333
|
-
@ ./storybook-stories.js 25:11-29:5
|
|
334
|
-
@ ./storybook-config-entry.js 9:0-50 30:31-39 37:2-40:4 39:31-39 37:58-40:3
|
|
335
|
-
|
|
336
|
-
ERROR in ../react-bootstrap-table-ng/style/react-bootstrap-table-ng.scss (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[4].oneOf[7].use[3]!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[4].oneOf[7].use[4]!./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[10].use[2]!../react-bootstrap-table-ng/style/react-bootstrap-table-ng.scss)
|
|
337
|
-
Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
|
|
338
|
-
SassError: expected "{".
|
|
339
|
-
╷
|
|
340
|
-
2 │ import API from "!../../react-bootstrap-table-ng-example/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js";
|
|
341
|
-
│ ^
|
|
342
|
-
╵
|
|
343
|
-
../react-bootstrap-table-ng/style/react-bootstrap-table-ng.scss 2:131 root stylesheet
|
|
344
|
-
@ ../react-bootstrap-table-ng/style/react-bootstrap-table-ng.scss 8:6-795 22:17-24 26:7-21 52:25-39 53:36-47 53:50-64 58:54-65 58:68-82 64:42-53 64:56-70 66:21-28 78:22-29 78:33-47 78:50-64 77:0-765 77:0-765 57:6-67:7 55:4-68:5
|
|
345
|
-
@ ./src/stories/WorkOnHeaderColumns.tsx 12:0-79
|
|
346
|
-
@ ./src/stories/WorkOnHeaderColumns.stories.tsx 7:0-51 14:13-27
|
|
347
|
-
@ ./src/ lazy ^\.\/.*$ include: (?%21.*node_modules)(?:\/src(?:\/(?%21\.)(?:(?:(?%21(?:^%7C\/)\.).)*?)\/%7C\/%7C$)(?%21\.)(?=.)[^/]*?\.stories\.(js%7Cjsx%7Cmjs%7Cts%7Ctsx))$ chunkName: [request] namespace object ./stories/WorkOnHeaderColumns.stories.tsx ./stories/WorkOnHeaderColumns.stories
|
|
348
|
-
@ ./storybook-stories.js 25:11-29:5
|
|
349
|
-
@ ./storybook-config-entry.js 9:0-50 30:31-39 37:2-40:4 39:31-39 37:58-40:3
|
|
350
|
-
|
|
351
|
-
preview compiled with 5 errors
|
|
352
|
-
[38;2;241;97;97m=> Failed to build the preview[39m
|
|
353
|
-
<s> [webpack.Progress] 99% end closing watch compilation
|
|
354
|
-
<s> [webpack.Progress] 99% end closing watch compilation ForkTsCheckerWebpackPlugin
|
|
355
|
-
<s> [webpack.Progress] 99% end closing watch compilation
|
|
356
|
-
WARN Force closed preview build
|
|
357
|
-
[38;2;241;97;97mSB_BUILDER-WEBPACK5_0003 (WebpackCompilationError): There were problems when compiling your code with Webpack.
|
|
358
|
-
Run Storybook with --debug-webpack for more information.[39m
|
|
359
|
-
at starter (./node_modules/@storybook/builder-webpack5/dist/index.js:1:24163)
|
|
360
|
-
at starter.next (<anonymous>)
|
|
361
|
-
at Module.start (./node_modules/@storybook/builder-webpack5/dist/index.js:1:26142)
|
|
362
|
-
at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
|
|
363
|
-
at async storybookDevServer (./node_modules/@storybook/core/dist/core-server/index.cjs:36423:79)
|
|
364
|
-
at async buildOrThrow (./node_modules/@storybook/core/dist/core-server/index.cjs:35049:12)
|
|
365
|
-
at async buildDevStandalone (./node_modules/@storybook/core/dist/core-server/index.cjs:37628:78)
|
|
366
|
-
at async withTelemetry (./node_modules/@storybook/core/dist/core-server/index.cjs:35788:12)
|
|
367
|
-
at async dev (./node_modules/@storybook/core/dist/cli/bin/index.cjs:5874:3)
|
|
368
|
-
at async s.<anonymous> (./node_modules/@storybook/core/dist/cli/bin/index.cjs:6052:74)
|
|
369
|
-
|
|
370
|
-
WARN Broken build, fix the error above.
|
|
371
|
-
WARN You may need to refresh the browser.
|
|
372
|
-
|
|
373
|
-
info Found existing addon "@storybook/addon-docs", skipping.
|
|
374
|
-
ERROR in ../react-bootstrap-table-ng-toolkit/src/csv/exporter.ts:2:23
|
|
375
|
-
TS2307: Cannot find module 'file-saver' or its corresponding type declarations.
|
|
376
|
-
1 | /* eslint no-unneeded-ternary: 0 */
|
|
377
|
-
> 2 | import FileSaver from "file-saver";
|
|
378
|
-
| ^^^^^^^^^^^^
|
|
379
|
-
3 |
|
|
380
|
-
4 | export const getMetaInfo = (columns: any) =>
|
|
381
|
-
5 | columns
|
|
382
|
-
|