@jumoo/processing 17.4.2 → 18.2.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/dist/api/client/client.gen.js +104 -123
- package/dist/api/client/index.d.ts +2 -0
- package/dist/api/client/types.gen.d.ts +6 -3
- package/dist/api/client/utils.gen.d.ts +8 -4
- package/dist/api/client/utils.gen.js +3 -3
- package/dist/api/client.gen.d.ts +2 -2
- package/dist/api/client.gen.js +1 -2
- package/dist/api/core/auth.gen.d.ts +7 -0
- package/dist/api/core/params.gen.d.ts +2 -2
- package/dist/api/core/params.gen.js +23 -14
- package/dist/api/core/queryKeySerializer.gen.d.ts +1 -1
- package/dist/api/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/api/core/serverSentEvents.gen.js +3 -4
- package/dist/api/core/types.gen.d.ts +5 -0
- package/dist/api/index.d.ts +2 -3
- package/dist/api/index.js +1 -2
- package/dist/api/sdk.gen.d.ts +23 -27
- package/dist/api/sdk.gen.js +82 -114
- package/dist/api/types.gen.d.ts +113 -124
- package/dist/index.js +9 -1
- package/dist/pipeline/components/background.element.js +23 -23
- package/dist/pipeline/components/pipeline-list.element.js +28 -28
- package/dist/pipeline/components/pipeline-table.element.d.ts +2 -1
- package/dist/pipeline/components/pipeline-table.element.js +3 -1
- package/dist/pipeline/components/process-error.element.js +39 -39
- package/dist/pipeline/components/progress.element.js +122 -122
- package/dist/pipeline/components/progress.step.element.js +5 -5
- package/dist/pipeline/modal/errors/error-modal.element.js +87 -87
- package/dist/pipeline/modal/pipeline-modal.element.js +34 -34
- package/dist/pipeline/pipeline.context.d.ts +2 -2
- package/dist/pipeline/pipeline.context.js +1 -1
- package/dist/pipeline/pipeline.element.js +30 -30
- package/dist/pipeline/pipeline.repository.d.ts +8 -8
- package/dist/pipeline/pipeline.source.d.ts +72 -27
- package/dist/pipeline/pipeline.source.js +10 -10
- package/dist/pipeline/pipelines.context.d.ts +1 -1
- package/dist/pipeline/workspace/views/default-pipeline-view.js +18 -18
- package/dist/queue/components/queue-list.element.js +17 -17
- package/dist/queue/components/queue-table.element.js +15 -15
- package/dist/queue/queue.context.d.ts +1 -1
- package/dist/queue/queue.repository.d.ts +3 -3
- package/dist/queue/queue.repository.js +5 -5
- package/package.json +11 -10
|
@@ -90,18 +90,18 @@ let JumooProcessingPipelineList = class JumooProcessingPipelineList extends UmbL
|
|
|
90
90
|
await this.getPipelines();
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
|
-
return html `<uui-box style="--uui-box-default-padding: 0;" .headline=${this.headline}>
|
|
94
|
-
<div slot="header-actions">
|
|
95
|
-
Status: ${this.renderDropdown()} ${this.renderRefresh()}
|
|
96
|
-
</div>
|
|
97
|
-
${when(this.loading, () => html `<uui-loader-bar
|
|
98
|
-
animationDuration="1.5"
|
|
99
|
-
style="color: black"></uui-loader-bar>`, () => this.renderListPipelines())}
|
|
93
|
+
return html `<uui-box style="--uui-box-default-padding: 0;" .headline=${this.headline}>
|
|
94
|
+
<div slot="header-actions">
|
|
95
|
+
Status: ${this.renderDropdown()} ${this.renderRefresh()}
|
|
96
|
+
</div>
|
|
97
|
+
${when(this.loading, () => html `<uui-loader-bar
|
|
98
|
+
animationDuration="1.5"
|
|
99
|
+
style="color: black"></uui-loader-bar>`, () => this.renderListPipelines())}
|
|
100
100
|
</uui-box>`;
|
|
101
101
|
}
|
|
102
102
|
renderRefresh() {
|
|
103
|
-
return html `<uui-button @click=${this.getPipelines} label="refresh" compact
|
|
104
|
-
><uui-icon name="icon-refresh"></uui-icon
|
|
103
|
+
return html `<uui-button @click=${this.getPipelines} label="refresh" compact
|
|
104
|
+
><uui-icon name="icon-refresh"></uui-icon
|
|
105
105
|
></uui-button>`;
|
|
106
106
|
}
|
|
107
107
|
renderDropdown() {
|
|
@@ -114,38 +114,38 @@ let JumooProcessingPipelineList = class JumooProcessingPipelineList extends UmbL
|
|
|
114
114
|
});
|
|
115
115
|
return options.length <= 1
|
|
116
116
|
? html `${this.status}`
|
|
117
|
-
: html `
|
|
118
|
-
<uui-select
|
|
119
|
-
.options=${options}
|
|
120
|
-
@change=${this.onStatusChange}
|
|
121
|
-
label="status"></uui-select>
|
|
117
|
+
: html `
|
|
118
|
+
<uui-select
|
|
119
|
+
.options=${options}
|
|
120
|
+
@change=${this.onStatusChange}
|
|
121
|
+
label="status"></uui-select>
|
|
122
122
|
`;
|
|
123
123
|
}
|
|
124
124
|
renderListPipelines() {
|
|
125
125
|
return !this.pipelines || this.pipelines.length === 0
|
|
126
126
|
? html `<div class="emtpy">Nothing with status ${this.status}</div>`
|
|
127
|
-
: html `<jumoo-pipelines-table
|
|
128
|
-
.pipelines=${this.pipelines}
|
|
129
|
-
.hideDelete=${this.hideDelete}
|
|
130
|
-
@view-pipeline=${this.onViewPipeline}
|
|
127
|
+
: html `<jumoo-pipelines-table
|
|
128
|
+
.pipelines=${this.pipelines}
|
|
129
|
+
.hideDelete=${this.hideDelete}
|
|
130
|
+
@view-pipeline=${this.onViewPipeline}
|
|
131
131
|
@delete-pipeline=${this.onDeletePipeline}></jumoo-pipelines-table>`;
|
|
132
132
|
}
|
|
133
133
|
renderPipeline(pipeline) {
|
|
134
|
-
return html `
|
|
135
|
-
<div>${pipeline.alias}</div>
|
|
136
|
-
<div>${pipeline.state.status}</div>
|
|
137
|
-
<div>${pipeline.state.currentRequest?.action?.alias}</div>
|
|
134
|
+
return html `
|
|
135
|
+
<div>${pipeline.alias}</div>
|
|
136
|
+
<div>${pipeline.state.status}</div>
|
|
137
|
+
<div>${pipeline.state.currentRequest?.action?.alias}</div>
|
|
138
138
|
`;
|
|
139
139
|
}
|
|
140
140
|
};
|
|
141
141
|
_JumooProcessingPipelineList_pipelinesContext = new WeakMap();
|
|
142
142
|
_JumooProcessingPipelineList_modalController = new WeakMap();
|
|
143
|
-
JumooProcessingPipelineList.styles = css `
|
|
144
|
-
.emtpy {
|
|
145
|
-
display: flex;
|
|
146
|
-
justify-content: center;
|
|
147
|
-
padding: var(--uui-size-space-5);
|
|
148
|
-
}
|
|
143
|
+
JumooProcessingPipelineList.styles = css `
|
|
144
|
+
.emtpy {
|
|
145
|
+
display: flex;
|
|
146
|
+
justify-content: center;
|
|
147
|
+
padding: var(--uui-size-space-5);
|
|
148
|
+
}
|
|
149
149
|
`;
|
|
150
150
|
__decorate([
|
|
151
151
|
property({ type: String })
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Pipeline } from '@jumoo/processing';
|
|
2
2
|
import { UmbTableColumn, UmbTableConfig } from '@umbraco-cms/backoffice/components';
|
|
3
|
+
import { nothing } from '@umbraco-cms/backoffice/external/lit';
|
|
3
4
|
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
4
5
|
export declare class JumooPipelinesTableElement extends UmbLitElement {
|
|
5
6
|
#private;
|
|
@@ -9,7 +10,7 @@ export declare class JumooPipelinesTableElement extends UmbLitElement {
|
|
|
9
10
|
tableColumns: UmbTableColumn[];
|
|
10
11
|
filter: any;
|
|
11
12
|
render(): import("lit-html").TemplateResult<1>;
|
|
12
|
-
renderActions(pipeline: Pipeline): import("lit-html").TemplateResult<1>;
|
|
13
|
+
renderActions(pipeline: Pipeline): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
13
14
|
}
|
|
14
15
|
export default JumooPipelinesTableElement;
|
|
15
16
|
declare global {
|
|
@@ -11,7 +11,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
11
11
|
};
|
|
12
12
|
var _JumooPipelinesTableElement_instances, _JumooPipelinesTableElement_onViewPipeline, _JumooPipelinesTableElement_onDeletePipeline;
|
|
13
13
|
import { ProcessingTimeOptions } from '@jumoo/processing';
|
|
14
|
-
import { customElement, html, property, state, when, } from '@umbraco-cms/backoffice/external/lit';
|
|
14
|
+
import { customElement, html, nothing, property, state, when, } from '@umbraco-cms/backoffice/external/lit';
|
|
15
15
|
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
|
|
16
16
|
let JumooPipelinesTableElement = class JumooPipelinesTableElement extends UmbLitElement {
|
|
17
17
|
constructor() {
|
|
@@ -86,6 +86,8 @@ let JumooPipelinesTableElement = class JumooPipelinesTableElement extends UmbLit
|
|
|
86
86
|
`;
|
|
87
87
|
}
|
|
88
88
|
renderActions(pipeline) {
|
|
89
|
+
if (!pipeline.id)
|
|
90
|
+
return nothing;
|
|
89
91
|
return html `<uui-button-group
|
|
90
92
|
><uui-button
|
|
91
93
|
.id=${pipeline.id}
|
|
@@ -23,16 +23,16 @@ let JumooProcessingErrorElement = class JumooProcessingErrorElement extends UmbL
|
|
|
23
23
|
return !this.error ? nothing : this.renderError(this.error);
|
|
24
24
|
}
|
|
25
25
|
renderError(error) {
|
|
26
|
-
return html `<div class="error">
|
|
27
|
-
<div class="header">
|
|
28
|
-
<uui-icon name="icon-wrong"></uui-icon>
|
|
29
|
-
<h3>${error.message}</h3>
|
|
30
|
-
</div>
|
|
31
|
-
<div class="more">
|
|
32
|
-
<uui-button @click=${__classPrivateFieldGet(this, _JumooProcessingErrorElement_instances, "m", _JumooProcessingErrorElement_openErrorModal)} look="primary" color="danger"
|
|
33
|
-
><umb-localize key="jumooProcError_details"></umb-localize
|
|
34
|
-
></uui-button>
|
|
35
|
-
</div>
|
|
26
|
+
return html `<div class="error">
|
|
27
|
+
<div class="header">
|
|
28
|
+
<uui-icon name="icon-wrong"></uui-icon>
|
|
29
|
+
<h3>${error.message}</h3>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="more">
|
|
32
|
+
<uui-button @click=${__classPrivateFieldGet(this, _JumooProcessingErrorElement_instances, "m", _JumooProcessingErrorElement_openErrorModal)} look="primary" color="danger"
|
|
33
|
+
><umb-localize key="jumooProcError_details"></umb-localize
|
|
34
|
+
></uui-button>
|
|
35
|
+
</div>
|
|
36
36
|
</div>`;
|
|
37
37
|
}
|
|
38
38
|
};
|
|
@@ -53,35 +53,35 @@ _JumooProcessingErrorElement_openErrorModal = async function _JumooProcessingErr
|
|
|
53
53
|
});
|
|
54
54
|
return result;
|
|
55
55
|
};
|
|
56
|
-
JumooProcessingErrorElement.styles = css `
|
|
57
|
-
.error {
|
|
58
|
-
padding: 0;
|
|
59
|
-
background-color: var(--uui-color-danger);
|
|
60
|
-
color: var(--uui-color-default-contrast);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.error .header {
|
|
64
|
-
display: flex;
|
|
65
|
-
gap: var(--uui-size-space-2);
|
|
66
|
-
align-items: center;
|
|
67
|
-
padding: var(--uui-size-space-2);
|
|
68
|
-
border-bottom: 1px solid var(--uui-color-default-contrast);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
h3 {
|
|
72
|
-
padding: 0;
|
|
73
|
-
margin: 0;
|
|
74
|
-
overflow: auto;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
uui-icon {
|
|
78
|
-
font-size: var(--uui-type-h3-size);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.error .more {
|
|
82
|
-
padding: var(--uui-size-space-3);
|
|
83
|
-
text-align: right;
|
|
84
|
-
}
|
|
56
|
+
JumooProcessingErrorElement.styles = css `
|
|
57
|
+
.error {
|
|
58
|
+
padding: 0;
|
|
59
|
+
background-color: var(--uui-color-danger);
|
|
60
|
+
color: var(--uui-color-default-contrast);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.error .header {
|
|
64
|
+
display: flex;
|
|
65
|
+
gap: var(--uui-size-space-2);
|
|
66
|
+
align-items: center;
|
|
67
|
+
padding: var(--uui-size-space-2);
|
|
68
|
+
border-bottom: 1px solid var(--uui-color-default-contrast);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
h3 {
|
|
72
|
+
padding: 0;
|
|
73
|
+
margin: 0;
|
|
74
|
+
overflow: auto;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
uui-icon {
|
|
78
|
+
font-size: var(--uui-type-h3-size);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.error .more {
|
|
82
|
+
padding: var(--uui-size-space-3);
|
|
83
|
+
text-align: right;
|
|
84
|
+
}
|
|
85
85
|
`;
|
|
86
86
|
__decorate([
|
|
87
87
|
property({ type: Object })
|
|
@@ -23,16 +23,16 @@ let JumooPipelineProgressElement = class JumooPipelineProgressElement extends Um
|
|
|
23
23
|
? 'running'
|
|
24
24
|
: 'pending';
|
|
25
25
|
const icon = step.icon ?? 'icon-checkmark';
|
|
26
|
-
return html `
|
|
27
|
-
<div class="step ${className}">
|
|
28
|
-
<uui-icon .name=${icon}></uui-icon>
|
|
29
|
-
<div class="step-name">${step.name}</div>
|
|
30
|
-
</div>
|
|
26
|
+
return html `
|
|
27
|
+
<div class="step ${className}">
|
|
28
|
+
<uui-icon .name=${icon}></uui-icon>
|
|
29
|
+
<div class="step-name">${step.name}</div>
|
|
30
|
+
</div>
|
|
31
31
|
`;
|
|
32
32
|
});
|
|
33
|
-
return html `<div class="step-progress">
|
|
34
|
-
<div class="steps">${steps}</div>
|
|
35
|
-
${this.renderMessages()}
|
|
33
|
+
return html `<div class="step-progress">
|
|
34
|
+
<div class="steps">${steps}</div>
|
|
35
|
+
${this.renderMessages()}
|
|
36
36
|
</div>`;
|
|
37
37
|
}
|
|
38
38
|
getLastKnownProgress() {
|
|
@@ -43,123 +43,123 @@ let JumooPipelineProgressElement = class JumooPipelineProgressElement extends Um
|
|
|
43
43
|
renderMessages() {
|
|
44
44
|
this._lastKnownProgress = this.getLastKnownProgress();
|
|
45
45
|
console.debug('Current progress:', this._lastKnownProgress, this.message?.progress);
|
|
46
|
-
return html `<div class="message">
|
|
47
|
-
<div class="content">
|
|
48
|
-
<div>
|
|
49
|
-
<h3>${this.message?.title}</h3>
|
|
50
|
-
</div>
|
|
51
|
-
<div>
|
|
52
|
-
<small>${this.message?.message}</small>
|
|
53
|
-
</div>
|
|
54
|
-
</div>
|
|
55
|
-
<div class="progress">
|
|
56
|
-
<uui-progress-bar .progress=${this._lastKnownProgress}></uui-progress-bar>
|
|
57
|
-
${when(this.showPercentage, () => html `<div>${this._lastKnownProgress.toFixed(2)}%</div>`)}
|
|
58
|
-
</div>
|
|
46
|
+
return html `<div class="message">
|
|
47
|
+
<div class="content">
|
|
48
|
+
<div>
|
|
49
|
+
<h3>${this.message?.title}</h3>
|
|
50
|
+
</div>
|
|
51
|
+
<div>
|
|
52
|
+
<small>${this.message?.message}</small>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div class="progress">
|
|
56
|
+
<uui-progress-bar .progress=${this._lastKnownProgress}></uui-progress-bar>
|
|
57
|
+
${when(this.showPercentage, () => html `<div>${this._lastKnownProgress.toFixed(2)}%</div>`)}
|
|
58
|
+
</div>
|
|
59
59
|
</div>`;
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
JumooPipelineProgressElement.styles = css `
|
|
63
|
-
:host {
|
|
64
|
-
display: flex;
|
|
65
|
-
justify-content: center;
|
|
66
|
-
align-items: center;
|
|
67
|
-
flex-direction: column;
|
|
68
|
-
height: 100%;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.message {
|
|
72
|
-
display: grid;
|
|
73
|
-
grid-template-rows: 1fr 1fr;
|
|
74
|
-
align-items: center;
|
|
75
|
-
height: 8rem;
|
|
76
|
-
width: 100%;
|
|
77
|
-
margin: var(--uui-size-space-3) 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.content {
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
align-items: center;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.content h3 {
|
|
87
|
-
margin: 0;
|
|
88
|
-
padding-bottom: var(--uui-size-space-2);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.progress {
|
|
92
|
-
width: 100%;
|
|
93
|
-
display: flex;
|
|
94
|
-
flex-direction: column;
|
|
95
|
-
align-items: center;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.percentage {
|
|
99
|
-
font-size: small;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
uui-progress-bar {
|
|
103
|
-
height: var(--uui-size-space-4);
|
|
104
|
-
margin: 0;
|
|
105
|
-
padding: 0;
|
|
106
|
-
border-radius: var(--uui-border-radius);
|
|
107
|
-
background-color: var(--uui-color-border);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.step-progress {
|
|
111
|
-
width: 100%;
|
|
112
|
-
display: flex;
|
|
113
|
-
flex-direction: column;
|
|
114
|
-
align-items: center;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.steps {
|
|
118
|
-
display: flex;
|
|
119
|
-
flex-direction: row;
|
|
120
|
-
flex-flow: row wrap;
|
|
121
|
-
justify-content: center;
|
|
122
|
-
width: 100%;
|
|
123
|
-
margin-bottom: var(--uui-size-space-3);
|
|
124
|
-
gap: var(--uui-size-space-2);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.step {
|
|
128
|
-
display: flex;
|
|
129
|
-
flex-grow: 1;
|
|
130
|
-
margin: 0 var(--uui-size-space-5);
|
|
131
|
-
padding: var(--uui-size-space-2);
|
|
132
|
-
max-width: var(--uui-size-layout-5);
|
|
133
|
-
flex-direction: column;
|
|
134
|
-
align-items: center;
|
|
135
|
-
align-content: center;
|
|
136
|
-
transition: background-color 0.3s ease;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.step uui-icon {
|
|
140
|
-
font-size: 30pt;
|
|
141
|
-
margin: var(--uui-size-space-2) 0;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.step-name {
|
|
145
|
-
text-align: center;
|
|
146
|
-
font-weight: 900;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.step.complete uui-icon {
|
|
150
|
-
color: green;
|
|
151
|
-
}
|
|
152
|
-
.step.running uui-icon {
|
|
153
|
-
color: blue;
|
|
154
|
-
}
|
|
155
|
-
.step.pending uui-icon {
|
|
156
|
-
color: gray;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.step.running {
|
|
160
|
-
border-radius: var(--uui-size-4);
|
|
161
|
-
background-color: var(--uui-color-disabled-standalone);
|
|
162
|
-
}
|
|
62
|
+
JumooPipelineProgressElement.styles = css `
|
|
63
|
+
:host {
|
|
64
|
+
display: flex;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
align-items: center;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
height: 100%;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.message {
|
|
72
|
+
display: grid;
|
|
73
|
+
grid-template-rows: 1fr 1fr;
|
|
74
|
+
align-items: center;
|
|
75
|
+
height: 8rem;
|
|
76
|
+
width: 100%;
|
|
77
|
+
margin: var(--uui-size-space-3) 0;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.content {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
align-items: center;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.content h3 {
|
|
87
|
+
margin: 0;
|
|
88
|
+
padding-bottom: var(--uui-size-space-2);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.progress {
|
|
92
|
+
width: 100%;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
align-items: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.percentage {
|
|
99
|
+
font-size: small;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
uui-progress-bar {
|
|
103
|
+
height: var(--uui-size-space-4);
|
|
104
|
+
margin: 0;
|
|
105
|
+
padding: 0;
|
|
106
|
+
border-radius: var(--uui-border-radius);
|
|
107
|
+
background-color: var(--uui-color-border);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.step-progress {
|
|
111
|
+
width: 100%;
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
align-items: center;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.steps {
|
|
118
|
+
display: flex;
|
|
119
|
+
flex-direction: row;
|
|
120
|
+
flex-flow: row wrap;
|
|
121
|
+
justify-content: center;
|
|
122
|
+
width: 100%;
|
|
123
|
+
margin-bottom: var(--uui-size-space-3);
|
|
124
|
+
gap: var(--uui-size-space-2);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.step {
|
|
128
|
+
display: flex;
|
|
129
|
+
flex-grow: 1;
|
|
130
|
+
margin: 0 var(--uui-size-space-5);
|
|
131
|
+
padding: var(--uui-size-space-2);
|
|
132
|
+
max-width: var(--uui-size-layout-5);
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
align-items: center;
|
|
135
|
+
align-content: center;
|
|
136
|
+
transition: background-color 0.3s ease;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.step uui-icon {
|
|
140
|
+
font-size: 30pt;
|
|
141
|
+
margin: var(--uui-size-space-2) 0;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.step-name {
|
|
145
|
+
text-align: center;
|
|
146
|
+
font-weight: 900;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.step.complete uui-icon {
|
|
150
|
+
color: green;
|
|
151
|
+
}
|
|
152
|
+
.step.running uui-icon {
|
|
153
|
+
color: blue;
|
|
154
|
+
}
|
|
155
|
+
.step.pending uui-icon {
|
|
156
|
+
color: gray;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.step.running {
|
|
160
|
+
border-radius: var(--uui-size-4);
|
|
161
|
+
background-color: var(--uui-color-disabled-standalone);
|
|
162
|
+
}
|
|
163
163
|
`;
|
|
164
164
|
__decorate([
|
|
165
165
|
property({ type: Object })
|
|
@@ -16,16 +16,16 @@ let JumooProcessStepElement = class JumooProcessStepElement extends UmbElementMi
|
|
|
16
16
|
: this.renderStepElement();
|
|
17
17
|
}
|
|
18
18
|
renderStepElement() {
|
|
19
|
-
return html `
|
|
20
|
-
<umb-extension-slot
|
|
21
|
-
type="jumoo-process-step"
|
|
22
|
-
.filter=${(ext) => ext.elementName === this.state?.elementName}
|
|
19
|
+
return html `
|
|
20
|
+
<umb-extension-slot
|
|
21
|
+
type="jumoo-process-step"
|
|
22
|
+
.filter=${(ext) => ext.elementName === this.state?.elementName}
|
|
23
23
|
.props=${{
|
|
24
24
|
pipelineId: this.pipelineId,
|
|
25
25
|
state: this.state,
|
|
26
26
|
options: this.options,
|
|
27
27
|
resutls: this.resutls,
|
|
28
|
-
}}></umb-extension-slot>
|
|
28
|
+
}}></umb-extension-slot>
|
|
29
29
|
`;
|
|
30
30
|
}
|
|
31
31
|
};
|