@jumoo/processing 17.4.2 → 17.4.3-prerelease.10

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.
Files changed (32) hide show
  1. package/dist/api/index.d.ts +1 -1
  2. package/dist/api/index.js +1 -1
  3. package/dist/api/sdk.gen.d.ts +4 -1
  4. package/dist/api/sdk.gen.js +25 -0
  5. package/dist/api/types.gen.d.ts +197 -1
  6. package/dist/api/types.gen.js +17 -0
  7. package/dist/lang/files/en.d.ts +26 -0
  8. package/dist/lang/files/en.js +26 -0
  9. package/dist/pipeline/components/background.element.js +24 -23
  10. package/dist/pipeline/components/pipeline-list.element.js +29 -28
  11. package/dist/pipeline/components/pipeline-table.element.js +23 -23
  12. package/dist/pipeline/components/process-error.element.js +39 -39
  13. package/dist/pipeline/components/progress.element.js +122 -122
  14. package/dist/pipeline/components/progress.step.element.js +5 -5
  15. package/dist/pipeline/index.d.ts +1 -0
  16. package/dist/pipeline/index.js +1 -0
  17. package/dist/pipeline/modal/errors/error-modal.element.js +87 -87
  18. package/dist/pipeline/modal/pipeline-modal.element.js +34 -34
  19. package/dist/pipeline/pipeline-conflict.d.ts +31 -0
  20. package/dist/pipeline/pipeline-conflict.js +42 -0
  21. package/dist/pipeline/pipeline.context.d.ts +6 -1
  22. package/dist/pipeline/pipeline.context.js +43 -8
  23. package/dist/pipeline/pipeline.element.d.ts +11 -0
  24. package/dist/pipeline/pipeline.element.js +157 -27
  25. package/dist/pipeline/pipeline.repository.d.ts +26 -0
  26. package/dist/pipeline/pipeline.repository.js +22 -0
  27. package/dist/pipeline/pipeline.source.d.ts +19 -1
  28. package/dist/pipeline/pipeline.source.js +23 -4
  29. package/dist/pipeline/workspace/views/default-pipeline-view.js +18 -18
  30. package/dist/queue/components/queue-list.element.js +17 -17
  31. package/dist/queue/components/queue-table.element.js +15 -15
  32. package/package.json +58 -51
@@ -60,7 +60,7 @@ let JumooPipelinesTableElement = class JumooPipelinesTableElement extends UmbLit
60
60
  },
61
61
  {
62
62
  columnAlias: 'background',
63
- value: html `<umb-icon
63
+ value: html `<umb-icon
64
64
  .name=${when((pipeline.state.backgroundState?.isBackgroundRequest ?? false) == true, () => 'icon-check', () => 'icon-close')}></umb-icon>`,
65
65
  },
66
66
  {
@@ -77,33 +77,33 @@ let JumooPipelinesTableElement = class JumooPipelinesTableElement extends UmbLit
77
77
  };
78
78
  })
79
79
  .filter((item) => item !== undefined);
80
- return html `
81
- <umb-table
82
- .config=${this._tableConfig}
83
- .columns=${this.tableColumns}
84
- .items=${items}
85
- .filter=${this.filter}></umb-table>
80
+ return html `
81
+ <umb-table
82
+ .config=${this._tableConfig}
83
+ .columns=${this.tableColumns}
84
+ .items=${items}
85
+ .filter=${this.filter}></umb-table>
86
86
  `;
87
87
  }
88
88
  renderActions(pipeline) {
89
- return html `<uui-button-group
90
- ><uui-button
91
- .id=${pipeline.id}
92
- label="View"
93
- color="positive"
94
- look="outline"
95
- @click=${__classPrivateFieldGet(this, _JumooPipelinesTableElement_instances, "m", _JumooPipelinesTableElement_onViewPipeline)}
96
- >View</uui-button
97
- >
89
+ return html `<uui-button-group
90
+ ><uui-button
91
+ .id=${pipeline.id}
92
+ label="View"
93
+ color="positive"
94
+ look="outline"
95
+ @click=${__classPrivateFieldGet(this, _JumooPipelinesTableElement_instances, "m", _JumooPipelinesTableElement_onViewPipeline)}
96
+ >View</uui-button
97
+ >
98
98
  ${this.hideDelete
99
99
  ? ''
100
- : html `<uui-button
101
- label="Delete"
102
- color="danger"
103
- look="outline"
104
- @click=${() => __classPrivateFieldGet(this, _JumooPipelinesTableElement_instances, "m", _JumooPipelinesTableElement_onDeletePipeline).call(this, pipeline.id)}
105
- >Delete</uui-button
106
- >`}</uui-button-group
100
+ : html `<uui-button
101
+ label="Delete"
102
+ color="danger"
103
+ look="outline"
104
+ @click=${() => __classPrivateFieldGet(this, _JumooPipelinesTableElement_instances, "m", _JumooPipelinesTableElement_onDeletePipeline).call(this, pipeline.id)}
105
+ >Delete</uui-button
106
+ >`}</uui-button-group
107
107
  >`;
108
108
  }
109
109
  };
@@ -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
  };
@@ -5,4 +5,5 @@ export * from './pipeline.element.js';
5
5
  export * from './pipeline.context.js';
6
6
  export * from './pipeline.repository.js';
7
7
  export * from './pipeline.source.js';
8
+ export * from './pipeline-conflict.js';
8
9
  export * from './pipelines.context.js';
@@ -5,4 +5,5 @@ export * from './pipeline.element.js';
5
5
  export * from './pipeline.context.js';
6
6
  export * from './pipeline.repository.js';
7
7
  export * from './pipeline.source.js';
8
+ export * from './pipeline-conflict.js';
8
9
  export * from './pipelines.context.js';
@@ -20,65 +20,65 @@ let JumooProcessingErrorModal = class JumooProcessingErrorModal extends UmbModal
20
20
  }
21
21
  render() {
22
22
  const headline = __classPrivateFieldGet(this, _JumooProcessingErrorModal_instances, "m", _JumooProcessingErrorModal_truncate).call(this, 'Error: ' + this.data?.error.message, 75);
23
- return html `<umb-body-layout .headline=${headline}>
24
- <uui-box .headline=${this.localize.term('jumooProcError_headline')}>
25
- <h2>${this.data?.error.message}</h2>
26
- <div class="more-box">
27
- <div class="more">
28
- <div class="label">
29
- <umb-localize key="jumooProcError_source"></umb-localize>
30
- </div>
31
- <div class="detail">
32
- ${this.data?.error.strategy} / ${this.data?.error.source}
33
- </div>
34
- </div>
35
- <div class="more">
36
- <div class="label">
37
- <umb-localize key="jumooProcError_action"></umb-localize>
38
- </div>
39
- <div class="detail">${this.data?.error.action}</div>
40
- </div>
41
- <div class="more">
42
- <div class="label"></div>
43
- <div class="detail">
44
- ${this.data?.error.step}
45
- ${when(this.data?.error.subStep, () => html `(${this.data?.error.subStep})`)}
46
- </div>
47
- </div>
48
- <div class="more">
49
- <div class="label">
50
- <umb-localize key="jumooProcError_page"></umb-localize>
51
- </div>
52
- <div class="detail">${this.data?.error.page}</div>
53
- </div>
54
- <div class="more">
55
- <div class="label">
56
- <umb-localize key="jumooProcError_class"></umb-localize>
57
- </div>
58
- <div class="detail">${this.data?.error.className}</div>
59
- </div>
60
- <div class="more">
61
- <div class="label">
62
- <umb-localize key="jumooProcError_method"></umb-localize>
63
- </div>
64
- <div class="detail">${this.data?.error.methodName}</div>
65
- </div>
66
- <div class="more">
67
- <div class="label">
68
- <umb-localize key="jumooProcError_stack"></umb-localize>
69
- </div>
70
- <div class="detail fixed">${this.data?.error.stackTrace}</div>
71
- </div>
72
- </div>
73
- </uui-box>
74
-
75
- <div slot="actions">
76
- <uui-button
77
- @click=${__classPrivateFieldGet(this, _JumooProcessingErrorModal_instances, "m", _JumooProcessingErrorModal_onClose)}
78
- color="default"
79
- look="default"
80
- .label=${this.localize.term('general_close')}></uui-button>
81
- </div>
23
+ return html `<umb-body-layout .headline=${headline}>
24
+ <uui-box .headline=${this.localize.term('jumooProcError_headline')}>
25
+ <h2>${this.data?.error.message}</h2>
26
+ <div class="more-box">
27
+ <div class="more">
28
+ <div class="label">
29
+ <umb-localize key="jumooProcError_source"></umb-localize>
30
+ </div>
31
+ <div class="detail">
32
+ ${this.data?.error.strategy} / ${this.data?.error.source}
33
+ </div>
34
+ </div>
35
+ <div class="more">
36
+ <div class="label">
37
+ <umb-localize key="jumooProcError_action"></umb-localize>
38
+ </div>
39
+ <div class="detail">${this.data?.error.action}</div>
40
+ </div>
41
+ <div class="more">
42
+ <div class="label"></div>
43
+ <div class="detail">
44
+ ${this.data?.error.step}
45
+ ${when(this.data?.error.subStep, () => html `(${this.data?.error.subStep})`)}
46
+ </div>
47
+ </div>
48
+ <div class="more">
49
+ <div class="label">
50
+ <umb-localize key="jumooProcError_page"></umb-localize>
51
+ </div>
52
+ <div class="detail">${this.data?.error.page}</div>
53
+ </div>
54
+ <div class="more">
55
+ <div class="label">
56
+ <umb-localize key="jumooProcError_class"></umb-localize>
57
+ </div>
58
+ <div class="detail">${this.data?.error.className}</div>
59
+ </div>
60
+ <div class="more">
61
+ <div class="label">
62
+ <umb-localize key="jumooProcError_method"></umb-localize>
63
+ </div>
64
+ <div class="detail">${this.data?.error.methodName}</div>
65
+ </div>
66
+ <div class="more">
67
+ <div class="label">
68
+ <umb-localize key="jumooProcError_stack"></umb-localize>
69
+ </div>
70
+ <div class="detail fixed">${this.data?.error.stackTrace}</div>
71
+ </div>
72
+ </div>
73
+ </uui-box>
74
+
75
+ <div slot="actions">
76
+ <uui-button
77
+ @click=${__classPrivateFieldGet(this, _JumooProcessingErrorModal_instances, "m", _JumooProcessingErrorModal_onClose)}
78
+ color="default"
79
+ look="default"
80
+ .label=${this.localize.term('general_close')}></uui-button>
81
+ </div>
82
82
  </umb-body-layout>`;
83
83
  }
84
84
  };
@@ -93,34 +93,34 @@ _JumooProcessingErrorModal_truncate = function _JumooProcessingErrorModal_trunca
93
93
  const charsToShow = length - separatorLength;
94
94
  return input.substring(0, charsToShow) + separator;
95
95
  };
96
- JumooProcessingErrorModal.styles = css `
97
- .more {
98
- display: flex;
99
- gap: var(--uui-size-space-4);
100
- margin-bottom: var(--uui-size-space-4);
101
- }
102
-
103
- h2 {
104
- overflow: auto;
105
- padding: var(--uui-size-space-2);
106
- background-color: var(--uui-color-danger);
107
- color: var(--uui-color-default-contrast);
108
- }
109
-
110
- .label {
111
- font-weight: bold;
112
- min-width: var(--uui-size-layout-5);
113
- text-align: right;
114
- }
115
-
116
- .label::after {
117
- content: ' :';
118
- }
119
-
120
- .more .fixed {
121
- overflow: overlay;
122
- font-family: monospace;
123
- }
96
+ JumooProcessingErrorModal.styles = css `
97
+ .more {
98
+ display: flex;
99
+ gap: var(--uui-size-space-4);
100
+ margin-bottom: var(--uui-size-space-4);
101
+ }
102
+
103
+ h2 {
104
+ overflow: auto;
105
+ padding: var(--uui-size-space-2);
106
+ background-color: var(--uui-color-danger);
107
+ color: var(--uui-color-default-contrast);
108
+ }
109
+
110
+ .label {
111
+ font-weight: bold;
112
+ min-width: var(--uui-size-layout-5);
113
+ text-align: right;
114
+ }
115
+
116
+ .label::after {
117
+ content: ' :';
118
+ }
119
+
120
+ .more .fixed {
121
+ overflow: overlay;
122
+ font-family: monospace;
123
+ }
124
124
  `;
125
125
  JumooProcessingErrorModal = __decorate([
126
126
  customElement(JUMOO_PROCESSING_ERROR_MODAL_ALIAS)