@bexis2/bexis2-core-ui 0.4.97 → 0.4.98
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/README.md
CHANGED
|
@@ -98,20 +98,21 @@ const table = createTable(data, {
|
|
|
98
98
|
export: addDataExport({ format: "json" })
|
|
99
99
|
});
|
|
100
100
|
const allCols = {};
|
|
101
|
+
$data.forEach((item) => {
|
|
102
|
+
Object.keys(item).forEach((key) => {
|
|
103
|
+
if (!allCols[key]) {
|
|
104
|
+
allCols[key] = {};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
});
|
|
101
108
|
if (columns && Object.keys(columns).length > 0) {
|
|
102
109
|
Object.keys(columns).forEach((key) => {
|
|
103
110
|
if (optionsComponent !== void 0 && key === "optionsColumn") {
|
|
104
111
|
return;
|
|
105
112
|
}
|
|
106
|
-
allCols[key]
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
$data.forEach((item) => {
|
|
110
|
-
Object.keys(item).forEach((key) => {
|
|
111
|
-
if (!allCols[key]) {
|
|
112
|
-
allCols[key] = {};
|
|
113
|
-
}
|
|
114
|
-
});
|
|
113
|
+
if (!allCols[key]) {
|
|
114
|
+
allCols[key] = {};
|
|
115
|
+
}
|
|
115
116
|
});
|
|
116
117
|
}
|
|
117
118
|
Object.keys(allCols).forEach((key) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bexis2/bexis2-core-ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.98",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).",
|
|
6
6
|
"keywords": [
|
|
@@ -111,22 +111,24 @@
|
|
|
111
111
|
export: addDataExport({ format: 'json' })
|
|
112
112
|
});
|
|
113
113
|
|
|
114
|
-
// Build column keys
|
|
114
|
+
// Build column keys from the incoming data model and merge explicit config as extras.
|
|
115
115
|
const allCols: { [key: string]: any } = {};
|
|
116
|
+
$data.forEach((item) => {
|
|
117
|
+
Object.keys(item).forEach((key) => {
|
|
118
|
+
if (!allCols[key]) {
|
|
119
|
+
allCols[key] = {};
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
|
|
116
124
|
if (columns && Object.keys(columns).length > 0) {
|
|
117
125
|
Object.keys(columns).forEach((key) => {
|
|
118
126
|
if (optionsComponent !== undefined && key === 'optionsColumn') {
|
|
119
127
|
return;
|
|
120
128
|
}
|
|
121
|
-
allCols[key]
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
$data.forEach((item) => {
|
|
125
|
-
Object.keys(item).forEach((key) => {
|
|
126
|
-
if (!allCols[key]) {
|
|
127
|
-
allCols[key] = {};
|
|
128
|
-
}
|
|
129
|
-
});
|
|
129
|
+
if (!allCols[key]) {
|
|
130
|
+
allCols[key] = {};
|
|
131
|
+
}
|
|
130
132
|
});
|
|
131
133
|
}
|
|
132
134
|
|