@kestra-io/ui-libs 0.0.9 → 0.0.11

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": "0.0.9",
3
+ "version": "v0.0.11",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "src",
@@ -96,6 +96,7 @@
96
96
  <style scoped>
97
97
  .content {
98
98
  display: flex;
99
+ color: var(--bs-gray-700);
99
100
 
100
101
  *:not(:first-child)::before {
101
102
  content: "";
@@ -118,4 +119,4 @@
118
119
  cursor: default;
119
120
  font-size: 0.70rem;
120
121
  }
121
- </style>
122
+ </style>
@@ -1,23 +1,23 @@
1
1
  <template>
2
2
  <div
3
- :class="[`border-${borderColor}`]"
3
+ :class="classes"
4
4
  class="node-wrapper rounded-3 border"
5
5
  @mouseover="mouseover"
6
6
  @mouseleave="mouseleave"
7
7
  >
8
- <div v-if="state" class="status-div" :class="[`bg-${stateColor}`]"/>
8
+ <div v-if="state" class="status-div" :class="[`bg-${stateColor}`]" />
9
9
  <div>
10
- <TaskIcon :icon="data.icon" :cls="cls" :class="taskIconBg"/>
10
+ <TaskIcon :icon="data.icon" :cls="cls" :class="taskIconBg" />
11
11
  </div>
12
12
  <div class="node-content">
13
- <div class="d-flex justify-content-around">
13
+ <div class="d-flex node-title">
14
14
  <div
15
15
  class="text-truncate task-title"
16
16
  data-bs-toggle="tooltip"
17
17
  data-bs-placement="top"
18
18
  :title="id"
19
19
  >
20
- <span> {{ id }} </span>
20
+ <span>{{ id }}</span>
21
21
  </div>
22
22
  <span
23
23
  class="d-flex"
@@ -28,14 +28,14 @@
28
28
  >
29
29
  <InformationOutline
30
30
  @click="$emit(EVENTS.SHOW_DESCRIPTION, {id: id, description:description})"
31
- class="description-button mx-2"
31
+ class="description-button ms-2"
32
32
  />
33
33
  </span>
34
34
  </div>
35
- <slot name="content"/>
35
+ <slot name="content" />
36
36
  </div>
37
37
  <div class="position-absolute top-0 text-white d-flex top-button-div">
38
- <slot name="badge-button-before"/>
38
+ <slot name="badge-button-before" />
39
39
  <span
40
40
  v-if="link"
41
41
  class="rounded-button"
@@ -45,7 +45,7 @@
45
45
  data-bs-placement="top"
46
46
  :title="$t('open')"
47
47
  >
48
- <OpenInNew class="button-icon" alt="Open in new tab"/>
48
+ <OpenInNew class="button-icon" alt="Open in new tab" />
49
49
  </span>
50
50
  <span
51
51
  v-if="expandable"
@@ -56,9 +56,9 @@
56
56
  data-bs-placement="top"
57
57
  :title="$t('expand')"
58
58
  >
59
- <ArrowExpand class="button-icon" alt="Expand task"/>
59
+ <ArrowExpand class="button-icon" alt="Expand task" />
60
60
  </span>
61
- <slot name="badge-button-after"/>
61
+ <slot name="badge-button-after" />
62
62
  </div>
63
63
  </div>
64
64
  </template>
@@ -189,6 +189,13 @@
189
189
  return null;
190
190
  }
191
191
  },
192
+ classes() {
193
+ return {
194
+ [`border-${this.borderColor}`]: this.borderColor,
195
+ "disabled": this.data.node.task?.disabled,
196
+ [this.$attrs.class]: true
197
+ }
198
+ },
192
199
  linkData() {
193
200
  if(this.data.node.task) {
194
201
  return {link: VueFlowUtils.linkDatas(this.data.node.task, this.execution)}
@@ -207,7 +214,7 @@
207
214
  background-color: var(--bs-white);
208
215
 
209
216
  html.dark & {
210
- background-color: var(--card-bg);
217
+ background-color: var(--bs-gray-300);
211
218
  }
212
219
 
213
220
  width: 184px;
@@ -218,6 +225,23 @@
218
225
  z-index: 150000;
219
226
  align-items: center;
220
227
  box-shadow: 0 12px 12px 0 rgba(130, 103, 158, 0.10);
228
+
229
+ &.execution-no-taskrun {
230
+ opacity: 0.6;
231
+ }
232
+
233
+ &.disabled {
234
+ .task-title {
235
+ color: var(--bs-gray-500);
236
+ text-decoration: line-through;
237
+
238
+ html.dark & {
239
+ color: var(--bs-gray-600);
240
+ }
241
+ }
242
+
243
+ opacity: 0.4;
244
+ }
221
245
  }
222
246
 
223
247
  .node-content {
@@ -225,12 +249,15 @@
225
249
  flex-direction: column;
226
250
  justify-content: center;
227
251
  margin-left: 0.7rem;
252
+
253
+ > .node-title {
254
+ width: 125px;
255
+ }
228
256
  }
229
257
 
230
258
  .description-button {
231
259
  color: var(--bs-gray-700);
232
260
  cursor: pointer;
233
- width: 25px;
234
261
  }
235
262
 
236
263
  .material-design-icon.icon-rounded {
@@ -255,16 +282,18 @@
255
282
  .task-title {
256
283
  font-size: 0.75rem;
257
284
  font-weight: 700;
258
- line-height: 1.5rem;
259
285
  color: var(--bs-black);
260
286
 
261
287
  html.dark & {
262
288
  color: var(--bs-white);
263
289
  }
264
-
265
- width: 6rem;
266
290
  }
267
291
 
292
+ .top-button-div {
293
+ width: 100%;
294
+ justify-content: end;
295
+ transform: translate(-5%, -50%) !important;
296
+ }
268
297
 
269
298
  .status-div {
270
299
  width: 8px;
@@ -159,4 +159,11 @@
159
159
  }
160
160
  }
161
161
 
162
+ .top-button-div {
163
+ width: 100%;
164
+ justify-content: end;
165
+ transform: translate(-5%, -50%) !important;
166
+ }
167
+
168
+
162
169
  </style>
@@ -4,6 +4,7 @@
4
4
  :id="id"
5
5
  :data="data"
6
6
  :state="state"
7
+ :class="classes"
7
8
  @show-description="forwardEvent(EVENTS.SHOW_DESCRIPTION, $event)"
8
9
  @expand="forwardEvent(EVENTS.EXPAND, id)"
9
10
  @open-link="forwardEvent(EVENTS.OPEN_LINK, $event)"
@@ -152,6 +153,11 @@
152
153
  .map((j) => j[1])
153
154
  return result[0];
154
155
  },
156
+ classes() {
157
+ return {
158
+ "execution-no-taskrun": this.execution && this.taskRuns && this.taskRuns.length === 0,
159
+ }
160
+ },
155
161
  },
156
162
  emits: [
157
163
  EVENTS.EXPAND,
@@ -16,18 +16,17 @@ $green: #03DABA !default;
16
16
  $teal: #03D87F !default;
17
17
  $cyan: #60C5FE !default;
18
18
 
19
-
20
19
  // gray
21
20
  $white: #FFF !default;
22
21
  $gray-100: #F5F5FF !default;
23
- $gray-200: #F0F0FF !default;
22
+ $gray-200: #f1f5fa !default;
24
23
  $gray-300: #E5E4F7 !default;
25
- $gray-400: #D1CFE9 !default;
26
- $gray-500: #B8B6D9 !default;
27
- $gray-600: #A6A4CA !default;
28
- $gray-700: #9A8EB4 !default;
29
- $gray-800: #7E719F !default;
30
- $gray-900: #564A75 !default;
24
+ $gray-400: #b6c2e4 !default;
25
+ $gray-500: #8997bd !default;
26
+ $gray-600: #7081b9 !default;
27
+ $gray-700: #303e67 !default;
28
+ $gray-800: #2c3652 !default;
29
+ $gray-900: #1d2c48 !default;
31
30
  $black: #26282D !default;
32
31
 
33
32
  $light: $gray-200 !default;
@@ -35,21 +34,10 @@ $dark: $gray-900 !default;
35
34
 
36
35
  // fonts
37
36
  $font-size-base: 1rem !default;
38
- $font-size-xs: $font-size-base * .75;
39
- $font-size-sm: $font-size-base * .875;
40
- $font-size-lg: $font-size-base * 1.25;
41
- $font-size-xl: $font-size-base * 1.375;
42
37
  $font-family-sans-serif: "Public Sans", sans-serif;
43
38
  $font-family-monospace: "Source Code Pro", monospace;
44
39
  $font-size-xs: $font-size-base * 0.75 !default;
45
40
 
46
- $h1-font-size: $font-size-base * 3.375;
47
- $h2-font-size: $font-size-base * 2.5;
48
- $h3-font-size: $font-size-base * 2;
49
- $h4-font-size: $font-size-base * 1.375;
50
- $h5-font-size: $font-size-base * 1.25;
51
- $h6-font-size: $font-size-base * 1.125;
52
-
53
41
  // border radius
54
42
  $border-radius: 0.25rem !default;
55
43
  $border-radius-lg: 0.5rem !default;
@@ -81,45 +69,6 @@ $box-shadow-sm: 0 .125rem .25rem rgba($black, .075);
81
69
  $box-shadow: 0 .5rem 1rem rgba($black, .15);
82
70
  $box-shadow-lg: 0 1rem 3rem rgba($black, .175);
83
71
 
84
- // button
85
- $btn-font-size-lg: 18px;
86
-
87
- // grid
88
- $grid-gutter-width: 1.75rem;
89
-
90
- // nav
91
- $nav-pills-border-radius: 50rem;
92
-
93
- // accordion
94
- $accordion-icon-color: $white;
95
- $accordion-icon-active-color: $white;
96
-
97
- // purples
98
- $purple-1: #382369;
99
- $purple-2: #FBC7F4;
100
- $purple-3: #9580EE;
101
- $purple-4: linear-gradient(160.34deg, rgba(130, 0, 255, 0.12) 5.3%, rgba(130, 0, 255, 0) 75.43%), #201838;
102
- $purple-5: #362762;
103
- $purple-6: #6113BC;
104
- $purple-7: #1A1223;
105
- $purple-8: #EEEDFF;
106
- $purple-9: 0px 12.972px 39.7269px rgba(90, 0, 176, 0.1);
107
- $purple-10: #150E1C;
108
- $purple-11: #332C3B;
109
- $purple-12: #432A71;
110
- $purple-16: #281A35;
111
- $purple-19: conic-gradient(from 90deg at 50% 50%, #BE79FF 0deg, #7136F6 360deg);
112
- $purple-20: #291E39;
113
- $purple-21: #A42DCD;
114
- $purple-22: #FCF7FE;
115
- $purple-23: #EDE8F3;
116
- $purple-24: #15023F;
117
- $purple-26: #DCCDEB;
118
- $purple-27: #8200FF;
119
- $purple-28: #2D313E;
120
- $purple-29: #F1F5FF;
121
- $purple-30: rgba(255, 255, 255, 0.1);
122
-
123
72
  // boostrap flags
124
73
  $enable-reduced-motion: false;
125
74
 
package/src/scss/app.scss CHANGED
@@ -23,14 +23,7 @@ marker[id*='id=marker-danger&type=arrowclosed'] polyline {
23
23
  }
24
24
 
25
25
  .vue-flow__edge-path {
26
- stroke: $gray-700;
27
- }
28
-
29
-
30
- .top-button-div {
31
- width: 100%;
32
- justify-content: end;
33
- transform: translate(-5%, -50%) !important;
26
+ stroke: #9A8EB4;
34
27
  }
35
28
 
36
29
  .rounded-button {