@kestra-io/ui-libs 0.0.18 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kestra-io/ui-libs",
3
- "version": "v0.0.18",
3
+ "version": "v0.0.20",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src",
@@ -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/cloneDeep"
3
+ import {cloneDeep} from "lodash"
4
4
  import {SECTIONS} from "./constants.js";
5
5
 
6
6
  const TOSTRING_OPTIONS = {lineWidth: 0};
@@ -15,9 +15,9 @@ String.prototype.hashCode = function () {
15
15
  return hash + "";
16
16
  }
17
17
 
18
+ export const cssVariable = (name) => {
18
19
  const root = document.querySelector(":root");
19
20
  const rootStyle = getComputedStyle(root);
20
21
 
21
- export const cssVariable = (name) => {
22
- return rootStyle.getPropertyValue(name);
23
- }
22
+ return rootStyle.getPropertyValue(name);
23
+ }
@@ -1,4 +1,4 @@
1
- import _mapValues from "lodash/mapValues";
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 _mapValues(STATE, state => {
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 _mapValues(STATE, state => state.colorClass);
155
+ return mapValues(STATE, state => state.colorClass);
156
156
  }
157
157
 
158
158
  static color() {
159
- return _mapValues(STATE, state => 'cssVariable("--bs-" + state.colorClass)');
159
+ return mapValues(STATE, state => 'cssVariable("--bs-" + state.colorClass)');
160
160
  }
161
161
 
162
162
  static icon() {
163
- return _mapValues(STATE, state => state.icon);
163
+ return mapValues(STATE, state => state.icon);
164
164
  }
165
165
  }