glib-web 4.32.0 → 4.33.0
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/actions/logics/run.js +3 -0
- package/components/charts/series.js +16 -0
- package/components/panels/flow.vue +2 -2
- package/index.js +5 -0
- package/package.json +1 -1
package/actions/logics/run.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import jsonLogic from 'json-logic-js';
|
|
2
|
+
// Method "closest" return nothing, so use getAllFormData instead
|
|
3
|
+
// One page can consist of many forms
|
|
4
|
+
// so please use carefully
|
|
2
5
|
import { getAllFormData } from "../../components/composable/form";
|
|
3
6
|
|
|
4
7
|
export default class {
|
|
@@ -140,6 +140,22 @@ function useChart({ dataSeries, spec, multiple = true }) {
|
|
|
140
140
|
plugins: {}
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
+
if (spec.indexAxis) {
|
|
144
|
+
const allLabels = Object.keys(dataSeries?.[0]?.points || {});
|
|
145
|
+
|
|
146
|
+
options.indexAxis = 'y';
|
|
147
|
+
options.scales = {
|
|
148
|
+
y: {
|
|
149
|
+
type: 'category',
|
|
150
|
+
stacked: spec.horizontalStacked,
|
|
151
|
+
ticks: {
|
|
152
|
+
callback: function (_, index) {
|
|
153
|
+
return allLabels[index];
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
}
|
|
143
159
|
|
|
144
160
|
|
|
145
161
|
options.plugins = {};
|
|
@@ -38,9 +38,9 @@ export default {
|
|
|
38
38
|
'bottom': 'align-end'
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
const alignClass = configs[this.spec.align]
|
|
41
|
+
const alignClass = configs[this.spec.align];
|
|
42
42
|
|
|
43
|
-
classes.push(alignClass);
|
|
43
|
+
if (alignClass) classes.push(alignClass);
|
|
44
44
|
|
|
45
45
|
return classes;
|
|
46
46
|
},
|
package/index.js
CHANGED
|
@@ -169,6 +169,11 @@ function useGlibErrorReporter(endpointUrl = '/glib/errors') {
|
|
|
169
169
|
// See https://stackoverflow.com/questions/52071212/how-to-implement-global-error-handling-in-vue
|
|
170
170
|
Vue.config.errorHandler = (error, vm, info) => {
|
|
171
171
|
console.error("Vue error:", error);
|
|
172
|
+
|
|
173
|
+
if (error instanceof TypeError && error.message.startsWith('Failed to fetch dynamically imported module')) {
|
|
174
|
+
window.alert('New version detected, please refresh the browser.');
|
|
175
|
+
}
|
|
176
|
+
|
|
172
177
|
reportError(error);
|
|
173
178
|
};
|
|
174
179
|
|