@kestra-io/ui-libs 0.0.19 → 0.0.20
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/package.json +1 -1
- package/src/utils/YamlUtils.js +1 -1
- package/src/utils/state.js +5 -5
package/package.json
CHANGED
package/src/utils/YamlUtils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import JsYaml from "js-yaml";
|
|
2
2
|
import yaml, {Document, YAMLMap, isSeq, isMap, Pair, Scalar, YAMLSeq, LineCounter} from "yaml";
|
|
3
|
-
import {cloneDeep} from "lodash
|
|
3
|
+
import {cloneDeep} from "lodash"
|
|
4
4
|
import {SECTIONS} from "./constants.js";
|
|
5
5
|
|
|
6
6
|
const TOSTRING_OPTIONS = {lineWidth: 0};
|
package/src/utils/state.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {mapValues} from "lodash";
|
|
2
2
|
import PauseCircle from "vue-material-design-icons/PauseCircle.vue";
|
|
3
3
|
import CheckCircle from "vue-material-design-icons/CheckCircle.vue";
|
|
4
4
|
import PlayCircle from "vue-material-design-icons/PlayCircle.vue";
|
|
@@ -138,7 +138,7 @@ export default class State {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
static allStates() {
|
|
141
|
-
return
|
|
141
|
+
return mapValues(STATE, state => {
|
|
142
142
|
return {
|
|
143
143
|
key: state.name,
|
|
144
144
|
icon: state.icon,
|
|
@@ -152,14 +152,14 @@ export default class State {
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
static colorClass() {
|
|
155
|
-
return
|
|
155
|
+
return mapValues(STATE, state => state.colorClass);
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
static color() {
|
|
159
|
-
return
|
|
159
|
+
return mapValues(STATE, state => 'cssVariable("--bs-" + state.colorClass)');
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
static icon() {
|
|
163
|
-
return
|
|
163
|
+
return mapValues(STATE, state => state.icon);
|
|
164
164
|
}
|
|
165
165
|
}
|