@posiwise/flows 0.0.5 → 0.0.6

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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, HostListener, Injectable, Input, NgModule, Output, ViewChild, afterEveryRender } from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, EventEmitter, HostBinding, HostListener, Injectable, Input, NgModule, Output, Pipe, ViewChild, afterEveryRender } from "@angular/core";
3
3
  import * as i8 from "@angular/router";
4
4
  import { RouterModule } from "@angular/router";
5
5
  import * as i3$1 from "@posiwise/core-guards";
@@ -7,7 +7,7 @@ import { PageAccessGuard, TrackDirtyFormDirective } from "@posiwise/core-guards"
7
7
  import { AppBaseComponent } from "@posiwise/app-base-component";
8
8
  import { Subject, combineLatest, forkJoin, of, throwError, timer } from "rxjs";
9
9
  import { catchError, distinctUntilChanged, exhaustMap, finalize, map, shareReplay, switchMap, takeUntil, takeWhile, tap } from "rxjs/operators";
10
- import { faArrowAltCircleLeft, faBolt, faChevronDown, faChevronRight, faCircleCheck, faCircleExclamation, faCode, faCodeBranch, faCopy, faDiagramProject, faExpand, faEye, faLayerGroup, faMagnifyingGlass, faPaperPlane, faPenToSquare, faPlusCircle, faTableList, faTrash, faTriangleExclamation } from "@fortawesome/free-solid-svg-icons";
10
+ import { faArrowAltCircleLeft, faBolt, faChevronDown, faChevronRight, faCircleCheck, faCircleExclamation, faCode, faCodeBranch, faCopy, faDiagramProject, faExpand, faEye, faLayerGroup, faMagnifyingGlass, faPaperPlane, faPause, faPenToSquare, faPlay, faPlusCircle, faTableList, faTrash, faTriangleExclamation } from "@fortawesome/free-solid-svg-icons";
11
11
  import { FLOWS_NODES_PATH, FLOWS_RUNS_PATH, FLOWS_RUN_POLL_INTERVAL_MS, FLOWS_VERSIONS_PATH, FLOWS_WORKFLOWS_PATH } from "@posiwise/flows-shared";
12
12
  import * as i1$3 from "@posiwise/shared-product-services";
13
13
  import { HelperService } from "@posiwise/helper-service";
@@ -65,7 +65,9 @@ const FLOWS_ICONS = {
65
65
  json: faCode,
66
66
  warning: faTriangleExclamation,
67
67
  collapsed: faChevronRight,
68
- expanded: faChevronDown
68
+ expanded: faChevronDown,
69
+ turnOn: faPlay,
70
+ turnOff: faPause
69
71
  };
70
72
  const FLOW_CATEGORY_ICONS = {
71
73
  trigger: faBolt,
@@ -186,7 +188,7 @@ var FlowsNodeService = class FlowsNodeService {
186
188
  static {
187
189
  this.ɵfac = i0.ɵɵngDeclareFactory({
188
190
  minVersion: "12.0.0",
189
- version: "22.2.0",
191
+ version: "22.2.3",
190
192
  ngImport: i0,
191
193
  type: FlowsNodeService,
192
194
  deps: [{ token: i1$3.ProductsHttpService }],
@@ -196,7 +198,7 @@ var FlowsNodeService = class FlowsNodeService {
196
198
  static {
197
199
  this.ɵprov = i0.ɵɵngDeclareInjectable({
198
200
  minVersion: "12.0.0",
199
- version: "22.2.0",
201
+ version: "22.2.3",
200
202
  ngImport: i0,
201
203
  type: FlowsNodeService,
202
204
  providedIn: "root"
@@ -205,7 +207,7 @@ var FlowsNodeService = class FlowsNodeService {
205
207
  };
206
208
  i0.ɵɵngDeclareClassMetadata({
207
209
  minVersion: "12.0.0",
208
- version: "22.2.0",
210
+ version: "22.2.3",
209
211
  ngImport: i0,
210
212
  type: FlowsNodeService,
211
213
  decorators: [{
@@ -274,7 +276,7 @@ var FlowsRunService = class FlowsRunService {
274
276
  static {
275
277
  this.ɵfac = i0.ɵɵngDeclareFactory({
276
278
  minVersion: "12.0.0",
277
- version: "22.2.0",
279
+ version: "22.2.3",
278
280
  ngImport: i0,
279
281
  type: FlowsRunService,
280
282
  deps: [{ token: i1$3.ProductsHttpService }],
@@ -284,7 +286,7 @@ var FlowsRunService = class FlowsRunService {
284
286
  static {
285
287
  this.ɵprov = i0.ɵɵngDeclareInjectable({
286
288
  minVersion: "12.0.0",
287
- version: "22.2.0",
289
+ version: "22.2.3",
288
290
  ngImport: i0,
289
291
  type: FlowsRunService,
290
292
  providedIn: "root"
@@ -293,7 +295,7 @@ var FlowsRunService = class FlowsRunService {
293
295
  };
294
296
  i0.ɵɵngDeclareClassMetadata({
295
297
  minVersion: "12.0.0",
296
- version: "22.2.0",
298
+ version: "22.2.3",
297
299
  ngImport: i0,
298
300
  type: FlowsRunService,
299
301
  decorators: [{
@@ -367,7 +369,7 @@ var FlowsWorkflowService = class FlowsWorkflowService {
367
369
  static {
368
370
  this.ɵfac = i0.ɵɵngDeclareFactory({
369
371
  minVersion: "12.0.0",
370
- version: "22.2.0",
372
+ version: "22.2.3",
371
373
  ngImport: i0,
372
374
  type: FlowsWorkflowService,
373
375
  deps: [{ token: i1$3.ProductsHttpService }],
@@ -377,7 +379,7 @@ var FlowsWorkflowService = class FlowsWorkflowService {
377
379
  static {
378
380
  this.ɵprov = i0.ɵɵngDeclareInjectable({
379
381
  minVersion: "12.0.0",
380
- version: "22.2.0",
382
+ version: "22.2.3",
381
383
  ngImport: i0,
382
384
  type: FlowsWorkflowService,
383
385
  providedIn: "root"
@@ -386,7 +388,7 @@ var FlowsWorkflowService = class FlowsWorkflowService {
386
388
  };
387
389
  i0.ɵɵngDeclareClassMetadata({
388
390
  minVersion: "12.0.0",
389
- version: "22.2.0",
391
+ version: "22.2.3",
390
392
  ngImport: i0,
391
393
  type: FlowsWorkflowService,
392
394
  decorators: [{
@@ -447,7 +449,7 @@ var FlowsRunProgressComponent = class FlowsRunProgressComponent {
447
449
  static {
448
450
  this.ɵfac = i0.ɵɵngDeclareFactory({
449
451
  minVersion: "12.0.0",
450
- version: "22.2.0",
452
+ version: "22.2.3",
451
453
  ngImport: i0,
452
454
  type: FlowsRunProgressComponent,
453
455
  deps: [{ token: i0.ChangeDetectorRef }],
@@ -457,7 +459,7 @@ var FlowsRunProgressComponent = class FlowsRunProgressComponent {
457
459
  static {
458
460
  this.ɵcmp = i0.ɵɵngDeclareComponent({
459
461
  minVersion: "17.0.0",
460
- version: "22.2.0",
462
+ version: "22.2.3",
461
463
  type: FlowsRunProgressComponent,
462
464
  isStandalone: false,
463
465
  selector: "pw-flows-run-progress",
@@ -484,7 +486,7 @@ var FlowsRunProgressComponent = class FlowsRunProgressComponent {
484
486
  };
485
487
  i0.ɵɵngDeclareClassMetadata({
486
488
  minVersion: "12.0.0",
487
- version: "22.2.0",
489
+ version: "22.2.3",
488
490
  ngImport: i0,
489
491
  type: FlowsRunProgressComponent,
490
492
  decorators: [{
@@ -569,7 +571,7 @@ var FlowsStepErrorComponent = class FlowsStepErrorComponent {
569
571
  static {
570
572
  this.ɵfac = i0.ɵɵngDeclareFactory({
571
573
  minVersion: "12.0.0",
572
- version: "22.2.0",
574
+ version: "22.2.3",
573
575
  ngImport: i0,
574
576
  type: FlowsStepErrorComponent,
575
577
  deps: [],
@@ -579,7 +581,7 @@ var FlowsStepErrorComponent = class FlowsStepErrorComponent {
579
581
  static {
580
582
  this.ɵcmp = i0.ɵɵngDeclareComponent({
581
583
  minVersion: "17.0.0",
582
- version: "22.2.0",
584
+ version: "22.2.3",
583
585
  type: FlowsStepErrorComponent,
584
586
  isStandalone: false,
585
587
  selector: "pw-flows-step-error",
@@ -668,7 +670,7 @@ var FlowsStepErrorComponent = class FlowsStepErrorComponent {
668
670
  };
669
671
  i0.ɵɵngDeclareClassMetadata({
670
672
  minVersion: "12.0.0",
671
- version: "22.2.0",
673
+ version: "22.2.3",
672
674
  ngImport: i0,
673
675
  type: FlowsStepErrorComponent,
674
676
  decorators: [{
@@ -783,7 +785,7 @@ var FlowsRunInspectorComponent = class FlowsRunInspectorComponent extends AppBas
783
785
  static {
784
786
  this.ɵfac = i0.ɵɵngDeclareFactory({
785
787
  minVersion: "12.0.0",
786
- version: "22.2.0",
788
+ version: "22.2.3",
787
789
  ngImport: i0,
788
790
  type: FlowsRunInspectorComponent,
789
791
  deps: [
@@ -799,7 +801,7 @@ var FlowsRunInspectorComponent = class FlowsRunInspectorComponent extends AppBas
799
801
  static {
800
802
  this.ɵcmp = i0.ɵɵngDeclareComponent({
801
803
  minVersion: "17.0.0",
802
- version: "22.2.0",
804
+ version: "22.2.3",
803
805
  type: FlowsRunInspectorComponent,
804
806
  isStandalone: false,
805
807
  selector: "pw-flows-run-inspector",
@@ -1034,7 +1036,7 @@ var FlowsRunInspectorComponent = class FlowsRunInspectorComponent extends AppBas
1034
1036
  };
1035
1037
  i0.ɵɵngDeclareClassMetadata({
1036
1038
  minVersion: "12.0.0",
1037
- version: "22.2.0",
1039
+ version: "22.2.3",
1038
1040
  ngImport: i0,
1039
1041
  type: FlowsRunInspectorComponent,
1040
1042
  decorators: [{
@@ -1127,7 +1129,7 @@ var FlowsRunsFiltersComponent = class FlowsRunsFiltersComponent {
1127
1129
  static {
1128
1130
  this.ɵfac = i0.ɵɵngDeclareFactory({
1129
1131
  minVersion: "12.0.0",
1130
- version: "22.2.0",
1132
+ version: "22.2.3",
1131
1133
  ngImport: i0,
1132
1134
  type: FlowsRunsFiltersComponent,
1133
1135
  deps: [
@@ -1141,7 +1143,7 @@ var FlowsRunsFiltersComponent = class FlowsRunsFiltersComponent {
1141
1143
  static {
1142
1144
  this.ɵcmp = i0.ɵɵngDeclareComponent({
1143
1145
  minVersion: "14.0.0",
1144
- version: "22.2.0",
1146
+ version: "22.2.3",
1145
1147
  type: FlowsRunsFiltersComponent,
1146
1148
  isStandalone: false,
1147
1149
  selector: "pw-flows-runs-filters",
@@ -1249,7 +1251,7 @@ var FlowsRunsFiltersComponent = class FlowsRunsFiltersComponent {
1249
1251
  };
1250
1252
  i0.ɵɵngDeclareClassMetadata({
1251
1253
  minVersion: "12.0.0",
1252
- version: "22.2.0",
1254
+ version: "22.2.3",
1253
1255
  ngImport: i0,
1254
1256
  type: FlowsRunsFiltersComponent,
1255
1257
  decorators: [{
@@ -1359,7 +1361,7 @@ var FlowsRunsComponent = class FlowsRunsComponent extends AppBaseComponent {
1359
1361
  static {
1360
1362
  this.ɵfac = i0.ɵɵngDeclareFactory({
1361
1363
  minVersion: "12.0.0",
1362
- version: "22.2.0",
1364
+ version: "22.2.3",
1363
1365
  ngImport: i0,
1364
1366
  type: FlowsRunsComponent,
1365
1367
  deps: [
@@ -1373,7 +1375,7 @@ var FlowsRunsComponent = class FlowsRunsComponent extends AppBaseComponent {
1373
1375
  static {
1374
1376
  this.ɵcmp = i0.ɵɵngDeclareComponent({
1375
1377
  minVersion: "17.0.0",
1376
- version: "22.2.0",
1378
+ version: "22.2.3",
1377
1379
  type: FlowsRunsComponent,
1378
1380
  isStandalone: false,
1379
1381
  selector: "pw-flows-runs",
@@ -1636,7 +1638,7 @@ var FlowsRunsComponent = class FlowsRunsComponent extends AppBaseComponent {
1636
1638
  };
1637
1639
  i0.ɵɵngDeclareClassMetadata({
1638
1640
  minVersion: "12.0.0",
1639
- version: "22.2.0",
1641
+ version: "22.2.3",
1640
1642
  ngImport: i0,
1641
1643
  type: FlowsRunsComponent,
1642
1644
  decorators: [{
@@ -1671,7 +1673,7 @@ var FlowsTabsComponent = class FlowsTabsComponent {
1671
1673
  static {
1672
1674
  this.ɵfac = i0.ɵɵngDeclareFactory({
1673
1675
  minVersion: "12.0.0",
1674
- version: "22.2.0",
1676
+ version: "22.2.3",
1675
1677
  ngImport: i0,
1676
1678
  type: FlowsTabsComponent,
1677
1679
  deps: [],
@@ -1681,7 +1683,7 @@ var FlowsTabsComponent = class FlowsTabsComponent {
1681
1683
  static {
1682
1684
  this.ɵcmp = i0.ɵɵngDeclareComponent({
1683
1685
  minVersion: "14.0.0",
1684
- version: "22.2.0",
1686
+ version: "22.2.3",
1685
1687
  type: FlowsTabsComponent,
1686
1688
  isStandalone: false,
1687
1689
  selector: "pw-flows-tabs",
@@ -1699,7 +1701,7 @@ var FlowsTabsComponent = class FlowsTabsComponent {
1699
1701
  };
1700
1702
  i0.ɵɵngDeclareClassMetadata({
1701
1703
  minVersion: "12.0.0",
1702
- version: "22.2.0",
1704
+ version: "22.2.3",
1703
1705
  ngImport: i0,
1704
1706
  type: FlowsTabsComponent,
1705
1707
  decorators: [{
@@ -1847,7 +1849,7 @@ var FlowsWorkflowFormComponent = class FlowsWorkflowFormComponent extends AppBas
1847
1849
  static {
1848
1850
  this.ɵfac = i0.ɵɵngDeclareFactory({
1849
1851
  minVersion: "12.0.0",
1850
- version: "22.2.0",
1852
+ version: "22.2.3",
1851
1853
  ngImport: i0,
1852
1854
  type: FlowsWorkflowFormComponent,
1853
1855
  deps: [
@@ -1861,7 +1863,7 @@ var FlowsWorkflowFormComponent = class FlowsWorkflowFormComponent extends AppBas
1861
1863
  static {
1862
1864
  this.ɵcmp = i0.ɵɵngDeclareComponent({
1863
1865
  minVersion: "17.0.0",
1864
- version: "22.2.0",
1866
+ version: "22.2.3",
1865
1867
  type: FlowsWorkflowFormComponent,
1866
1868
  isStandalone: false,
1867
1869
  selector: "pw-flows-workflow-form",
@@ -2081,7 +2083,7 @@ var FlowsWorkflowFormComponent = class FlowsWorkflowFormComponent extends AppBas
2081
2083
  };
2082
2084
  i0.ɵɵngDeclareClassMetadata({
2083
2085
  minVersion: "12.0.0",
2084
- version: "22.2.0",
2086
+ version: "22.2.3",
2085
2087
  ngImport: i0,
2086
2088
  type: FlowsWorkflowFormComponent,
2087
2089
  decorators: [{
@@ -2130,7 +2132,7 @@ var FlowsWorkflowStatusComponent = class FlowsWorkflowStatusComponent {
2130
2132
  this.cdr = cdr;
2131
2133
  this.hasPublished = false;
2132
2134
  this.workflowChange = new EventEmitter();
2133
- this.badgeClass = flowWorkflowBadgeClass;
2135
+ this.icons = FLOWS_ICONS;
2134
2136
  this.saving = false;
2135
2137
  }
2136
2138
  get isOn() {
@@ -2167,7 +2169,7 @@ var FlowsWorkflowStatusComponent = class FlowsWorkflowStatusComponent {
2167
2169
  static {
2168
2170
  this.ɵfac = i0.ɵɵngDeclareFactory({
2169
2171
  minVersion: "12.0.0",
2170
- version: "22.2.0",
2172
+ version: "22.2.3",
2171
2173
  ngImport: i0,
2172
2174
  type: FlowsWorkflowStatusComponent,
2173
2175
  deps: [
@@ -2181,7 +2183,7 @@ var FlowsWorkflowStatusComponent = class FlowsWorkflowStatusComponent {
2181
2183
  static {
2182
2184
  this.ɵcmp = i0.ɵɵngDeclareComponent({
2183
2185
  minVersion: "14.0.0",
2184
- version: "22.2.0",
2186
+ version: "22.2.3",
2185
2187
  type: FlowsWorkflowStatusComponent,
2186
2188
  isStandalone: false,
2187
2189
  selector: "pw-flows-workflow-status",
@@ -2192,46 +2194,86 @@ var FlowsWorkflowStatusComponent = class FlowsWorkflowStatusComponent {
2192
2194
  },
2193
2195
  outputs: { workflowChange: "workflowChange" },
2194
2196
  ngImport: i0,
2195
- template: "<div class=\"pw-workflow-status\"\n data-testid=\"flow-workflow-status\">\n <span [class]=\"badgeClass(workflow.status)\">\n {{ 'Flows.WorkflowStatus.' + workflow.status | transloco }}\n </span>\n @let blocked = !isOn && !hasPublished;\n <!-- The wrapper carries the tooltip: a disabled button fires no hover events. -->\n <span [pTooltip]=\"blocked ? ('Flows.Switch.PublishFirst' | transloco) : ''\"\n tooltipPosition=\"bottom\"\n appendTo=\"body\">\n <button type=\"button\"\n class=\"btn btn-sm text-nowrap\"\n data-testid=\"flow-workflow-toggle\"\n [class.btn-outline-secondary]=\"isOn\"\n [class.btn-outline-primary]=\"!isOn\"\n [disabled]=\"saving || blocked\"\n (click)=\"toggle()\">\n {{ (isOn ? 'Flows.Switch.TurnOff' : 'Flows.Switch.TurnOn') | transloco }}\n </button>\n </span>\n</div>\n",
2196
- styles: [".pw-flow-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;padding:2px 8px;border-radius:4px;letter-spacing:.01em;white-space:nowrap}.pw-flow-badge:before{content:\"\";width:6px;height:6px;border-radius:50%;background-color:currentColor;flex:0 0 auto}.pw-flow-badge--success{background-color:#e6f4ec;color:#0f6b3a}.pw-flow-badge--danger{background-color:#fbeae8;color:#c0392b}.pw-flow-badge--warning{background-color:#fbf1e3;color:#8a5a00}.pw-flow-badge--info{background-color:#e6f3f6;color:#1f6378}.pw-flow-badge--muted{background-color:#eef0f3;color:#5a6473}td[data-head=Run],td[data-head=Workflow],td[data-head=Version],td[data-head=Attempts],td[data-head=Duration]{color:#5a6473;font-variant-numeric:tabular-nums;white-space:nowrap}td[data-head=Node]{min-width:180px;font-weight:600;color:#1a1d21;overflow-wrap:anywhere}.pw-workflow-status{display:inline-flex;align-items:center;gap:8px}\n"],
2197
- dependencies: [{
2198
- kind: "directive",
2199
- type: i1$1.Tooltip,
2200
- selector: "[pTooltip]",
2201
- inputs: [
2202
- "tooltipPosition",
2203
- "tooltipEvent",
2204
- "positionStyle",
2205
- "tooltipStyleClass",
2206
- "tooltipZIndex",
2207
- "escape",
2208
- "showDelay",
2209
- "hideDelay",
2210
- "life",
2211
- "positionTop",
2212
- "positionLeft",
2213
- "autoHide",
2214
- "fitContent",
2215
- "hideOnEscape",
2216
- "showOnEllipsis",
2217
- "pTooltip",
2218
- "tooltipDisabled",
2219
- "tooltipOptions",
2220
- "appendTo",
2221
- "pTooltipPT",
2222
- "pTooltipUnstyled"
2223
- ]
2224
- }, {
2225
- kind: "pipe",
2226
- type: i2$4.TranslocoPipe,
2227
- name: "transloco"
2228
- }]
2197
+ template: "@let blocked = !isOn && !hasPublished;\n<!-- The wrapper carries the tooltip: a disabled button fires no hover events. -->\n<span [pTooltip]=\"blocked ? ('Flows.Switch.PublishFirst' | transloco) : ''\"\n tooltipPosition=\"bottom\"\n appendTo=\"body\">\n <button type=\"button\"\n class=\"btn btn-sm text-nowrap\"\n data-testid=\"flow-workflow-toggle\"\n [class.btn-outline-secondary]=\"isOn\"\n [class.btn-outline-primary]=\"!isOn\"\n [disabled]=\"saving || blocked\"\n (click)=\"toggle()\">\n <fa-icon [icon]=\"isOn ? icons.turnOff : icons.turnOn\"\n aria-hidden=\"true\"></fa-icon>\n {{ (isOn ? 'Flows.Switch.TurnOff' : 'Flows.Switch.TurnOn') | transloco }}\n </button>\n</span>\n",
2198
+ styles: [":host{display:inline-flex}\n"],
2199
+ dependencies: [
2200
+ {
2201
+ kind: "directive",
2202
+ type: i1$1.Tooltip,
2203
+ selector: "[pTooltip]",
2204
+ inputs: [
2205
+ "tooltipPosition",
2206
+ "tooltipEvent",
2207
+ "positionStyle",
2208
+ "tooltipStyleClass",
2209
+ "tooltipZIndex",
2210
+ "escape",
2211
+ "showDelay",
2212
+ "hideDelay",
2213
+ "life",
2214
+ "positionTop",
2215
+ "positionLeft",
2216
+ "autoHide",
2217
+ "fitContent",
2218
+ "hideOnEscape",
2219
+ "showOnEllipsis",
2220
+ "pTooltip",
2221
+ "tooltipDisabled",
2222
+ "tooltipOptions",
2223
+ "appendTo",
2224
+ "pTooltipPT",
2225
+ "pTooltipUnstyled"
2226
+ ]
2227
+ },
2228
+ {
2229
+ kind: "component",
2230
+ type: i2$3.FaIconComponent,
2231
+ selector: "fa-icon",
2232
+ inputs: [
2233
+ "icon",
2234
+ "title",
2235
+ "animation",
2236
+ "mask",
2237
+ "flip",
2238
+ "size",
2239
+ "pull",
2240
+ "border",
2241
+ "inverse",
2242
+ "symbol",
2243
+ "rotate",
2244
+ "fixedWidth",
2245
+ "transform",
2246
+ "a11yRole"
2247
+ ],
2248
+ outputs: [
2249
+ "iconChange",
2250
+ "titleChange",
2251
+ "animationChange",
2252
+ "maskChange",
2253
+ "flipChange",
2254
+ "sizeChange",
2255
+ "pullChange",
2256
+ "borderChange",
2257
+ "inverseChange",
2258
+ "symbolChange",
2259
+ "rotateChange",
2260
+ "fixedWidthChange",
2261
+ "transformChange",
2262
+ "a11yRoleChange"
2263
+ ]
2264
+ },
2265
+ {
2266
+ kind: "pipe",
2267
+ type: i2$4.TranslocoPipe,
2268
+ name: "transloco"
2269
+ }
2270
+ ]
2229
2271
  });
2230
2272
  }
2231
2273
  };
2232
2274
  i0.ɵɵngDeclareClassMetadata({
2233
2275
  minVersion: "12.0.0",
2234
- version: "22.2.0",
2276
+ version: "22.2.3",
2235
2277
  ngImport: i0,
2236
2278
  type: FlowsWorkflowStatusComponent,
2237
2279
  decorators: [{
@@ -2239,8 +2281,8 @@ i0.ɵɵngDeclareClassMetadata({
2239
2281
  args: [{
2240
2282
  selector: "pw-flows-workflow-status",
2241
2283
  standalone: false,
2242
- template: "<div class=\"pw-workflow-status\"\n data-testid=\"flow-workflow-status\">\n <span [class]=\"badgeClass(workflow.status)\">\n {{ 'Flows.WorkflowStatus.' + workflow.status | transloco }}\n </span>\n @let blocked = !isOn && !hasPublished;\n <!-- The wrapper carries the tooltip: a disabled button fires no hover events. -->\n <span [pTooltip]=\"blocked ? ('Flows.Switch.PublishFirst' | transloco) : ''\"\n tooltipPosition=\"bottom\"\n appendTo=\"body\">\n <button type=\"button\"\n class=\"btn btn-sm text-nowrap\"\n data-testid=\"flow-workflow-toggle\"\n [class.btn-outline-secondary]=\"isOn\"\n [class.btn-outline-primary]=\"!isOn\"\n [disabled]=\"saving || blocked\"\n (click)=\"toggle()\">\n {{ (isOn ? 'Flows.Switch.TurnOff' : 'Flows.Switch.TurnOn') | transloco }}\n </button>\n </span>\n</div>\n",
2243
- styles: [".pw-flow-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;padding:2px 8px;border-radius:4px;letter-spacing:.01em;white-space:nowrap}.pw-flow-badge:before{content:\"\";width:6px;height:6px;border-radius:50%;background-color:currentColor;flex:0 0 auto}.pw-flow-badge--success{background-color:#e6f4ec;color:#0f6b3a}.pw-flow-badge--danger{background-color:#fbeae8;color:#c0392b}.pw-flow-badge--warning{background-color:#fbf1e3;color:#8a5a00}.pw-flow-badge--info{background-color:#e6f3f6;color:#1f6378}.pw-flow-badge--muted{background-color:#eef0f3;color:#5a6473}td[data-head=Run],td[data-head=Workflow],td[data-head=Version],td[data-head=Attempts],td[data-head=Duration]{color:#5a6473;font-variant-numeric:tabular-nums;white-space:nowrap}td[data-head=Node]{min-width:180px;font-weight:600;color:#1a1d21;overflow-wrap:anywhere}.pw-workflow-status{display:inline-flex;align-items:center;gap:8px}\n"]
2284
+ template: "@let blocked = !isOn && !hasPublished;\n<!-- The wrapper carries the tooltip: a disabled button fires no hover events. -->\n<span [pTooltip]=\"blocked ? ('Flows.Switch.PublishFirst' | transloco) : ''\"\n tooltipPosition=\"bottom\"\n appendTo=\"body\">\n <button type=\"button\"\n class=\"btn btn-sm text-nowrap\"\n data-testid=\"flow-workflow-toggle\"\n [class.btn-outline-secondary]=\"isOn\"\n [class.btn-outline-primary]=\"!isOn\"\n [disabled]=\"saving || blocked\"\n (click)=\"toggle()\">\n <fa-icon [icon]=\"isOn ? icons.turnOff : icons.turnOn\"\n aria-hidden=\"true\"></fa-icon>\n {{ (isOn ? 'Flows.Switch.TurnOff' : 'Flows.Switch.TurnOn') | transloco }}\n </button>\n</span>\n",
2285
+ styles: [":host{display:inline-flex}\n"]
2244
2286
  }]
2245
2287
  }],
2246
2288
  ctorParameters: () => [
@@ -2557,7 +2599,7 @@ var FlowsCanvasConnectionComponent = class FlowsCanvasConnectionComponent {
2557
2599
  static {
2558
2600
  this.ɵfac = i0.ɵɵngDeclareFactory({
2559
2601
  minVersion: "12.0.0",
2560
- version: "22.2.0",
2602
+ version: "22.2.3",
2561
2603
  ngImport: i0,
2562
2604
  type: FlowsCanvasConnectionComponent,
2563
2605
  deps: [],
@@ -2567,7 +2609,7 @@ var FlowsCanvasConnectionComponent = class FlowsCanvasConnectionComponent {
2567
2609
  static {
2568
2610
  this.ɵcmp = i0.ɵɵngDeclareComponent({
2569
2611
  minVersion: "14.0.0",
2570
- version: "22.2.0",
2612
+ version: "22.2.3",
2571
2613
  type: FlowsCanvasConnectionComponent,
2572
2614
  isStandalone: false,
2573
2615
  selector: "pw-flows-canvas-connection",
@@ -2587,7 +2629,7 @@ var FlowsCanvasConnectionComponent = class FlowsCanvasConnectionComponent {
2587
2629
  };
2588
2630
  i0.ɵɵngDeclareClassMetadata({
2589
2631
  minVersion: "12.0.0",
2590
- version: "22.2.0",
2632
+ version: "22.2.3",
2591
2633
  ngImport: i0,
2592
2634
  type: FlowsCanvasConnectionComponent,
2593
2635
  decorators: [{
@@ -2648,7 +2690,7 @@ var FlowsCanvasNodeComponent = class FlowsCanvasNodeComponent {
2648
2690
  static {
2649
2691
  this.ɵfac = i0.ɵɵngDeclareFactory({
2650
2692
  minVersion: "12.0.0",
2651
- version: "22.2.0",
2693
+ version: "22.2.3",
2652
2694
  ngImport: i0,
2653
2695
  type: FlowsCanvasNodeComponent,
2654
2696
  deps: [{ token: i0.ChangeDetectorRef }],
@@ -2658,7 +2700,7 @@ var FlowsCanvasNodeComponent = class FlowsCanvasNodeComponent {
2658
2700
  static {
2659
2701
  this.ɵcmp = i0.ɵɵngDeclareComponent({
2660
2702
  minVersion: "17.0.0",
2661
- version: "22.2.0",
2703
+ version: "22.2.3",
2662
2704
  type: FlowsCanvasNodeComponent,
2663
2705
  isStandalone: false,
2664
2706
  selector: "pw-flows-canvas-node",
@@ -2733,7 +2775,7 @@ var FlowsCanvasNodeComponent = class FlowsCanvasNodeComponent {
2733
2775
  };
2734
2776
  i0.ɵɵngDeclareClassMetadata({
2735
2777
  minVersion: "12.0.0",
2736
- version: "22.2.0",
2778
+ version: "22.2.3",
2737
2779
  ngImport: i0,
2738
2780
  type: FlowsCanvasNodeComponent,
2739
2781
  decorators: [{
@@ -2786,7 +2828,7 @@ var FlowsCanvasSocketComponent = class FlowsCanvasSocketComponent {
2786
2828
  static {
2787
2829
  this.ɵfac = i0.ɵɵngDeclareFactory({
2788
2830
  minVersion: "12.0.0",
2789
- version: "22.2.0",
2831
+ version: "22.2.3",
2790
2832
  ngImport: i0,
2791
2833
  type: FlowsCanvasSocketComponent,
2792
2834
  deps: [],
@@ -2796,7 +2838,7 @@ var FlowsCanvasSocketComponent = class FlowsCanvasSocketComponent {
2796
2838
  static {
2797
2839
  this.ɵcmp = i0.ɵɵngDeclareComponent({
2798
2840
  minVersion: "14.0.0",
2799
- version: "22.2.0",
2841
+ version: "22.2.3",
2800
2842
  type: FlowsCanvasSocketComponent,
2801
2843
  isStandalone: false,
2802
2844
  selector: "pw-flows-canvas-socket",
@@ -2814,7 +2856,7 @@ var FlowsCanvasSocketComponent = class FlowsCanvasSocketComponent {
2814
2856
  };
2815
2857
  i0.ɵɵngDeclareClassMetadata({
2816
2858
  minVersion: "12.0.0",
2817
- version: "22.2.0",
2859
+ version: "22.2.3",
2818
2860
  ngImport: i0,
2819
2861
  type: FlowsCanvasSocketComponent,
2820
2862
  decorators: [{
@@ -3045,7 +3087,7 @@ var FlowsGraphCanvasComponent = class FlowsGraphCanvasComponent {
3045
3087
  static {
3046
3088
  this.ɵfac = i0.ɵɵngDeclareFactory({
3047
3089
  minVersion: "12.0.0",
3048
- version: "22.2.0",
3090
+ version: "22.2.3",
3049
3091
  ngImport: i0,
3050
3092
  type: FlowsGraphCanvasComponent,
3051
3093
  deps: [{ token: i0.Injector }, { token: i0.ChangeDetectorRef }],
@@ -3055,7 +3097,7 @@ var FlowsGraphCanvasComponent = class FlowsGraphCanvasComponent {
3055
3097
  static {
3056
3098
  this.ɵcmp = i0.ɵɵngDeclareComponent({
3057
3099
  minVersion: "17.0.0",
3058
- version: "22.2.0",
3100
+ version: "22.2.3",
3059
3101
  type: FlowsGraphCanvasComponent,
3060
3102
  isStandalone: false,
3061
3103
  selector: "pw-flows-graph-canvas",
@@ -3100,7 +3142,7 @@ var FlowsGraphCanvasComponent = class FlowsGraphCanvasComponent {
3100
3142
  };
3101
3143
  i0.ɵɵngDeclareClassMetadata({
3102
3144
  minVersion: "12.0.0",
3103
- version: "22.2.0",
3145
+ version: "22.2.3",
3104
3146
  ngImport: i0,
3105
3147
  type: FlowsGraphCanvasComponent,
3106
3148
  decorators: [{
@@ -3229,7 +3271,7 @@ var FlowsGraphCheckComponent = class FlowsGraphCheckComponent {
3229
3271
  static {
3230
3272
  this.ɵfac = i0.ɵɵngDeclareFactory({
3231
3273
  minVersion: "12.0.0",
3232
- version: "22.2.0",
3274
+ version: "22.2.3",
3233
3275
  ngImport: i0,
3234
3276
  type: FlowsGraphCheckComponent,
3235
3277
  deps: [{ token: i2$4.TranslocoService }],
@@ -3239,7 +3281,7 @@ var FlowsGraphCheckComponent = class FlowsGraphCheckComponent {
3239
3281
  static {
3240
3282
  this.ɵcmp = i0.ɵɵngDeclareComponent({
3241
3283
  minVersion: "17.0.0",
3242
- version: "22.2.0",
3284
+ version: "22.2.3",
3243
3285
  type: FlowsGraphCheckComponent,
3244
3286
  isStandalone: false,
3245
3287
  selector: "pw-flows-graph-check",
@@ -3299,7 +3341,7 @@ var FlowsGraphCheckComponent = class FlowsGraphCheckComponent {
3299
3341
  };
3300
3342
  i0.ɵɵngDeclareClassMetadata({
3301
3343
  minVersion: "12.0.0",
3302
- version: "22.2.0",
3344
+ version: "22.2.3",
3303
3345
  ngImport: i0,
3304
3346
  type: FlowsGraphCheckComponent,
3305
3347
  decorators: [{
@@ -3339,7 +3381,7 @@ var FlowsNodePaletteComponent = class FlowsNodePaletteComponent {
3339
3381
  static {
3340
3382
  this.ɵfac = i0.ɵɵngDeclareFactory({
3341
3383
  minVersion: "12.0.0",
3342
- version: "22.2.0",
3384
+ version: "22.2.3",
3343
3385
  ngImport: i0,
3344
3386
  type: FlowsNodePaletteComponent,
3345
3387
  deps: [],
@@ -3349,7 +3391,7 @@ var FlowsNodePaletteComponent = class FlowsNodePaletteComponent {
3349
3391
  static {
3350
3392
  this.ɵcmp = i0.ɵɵngDeclareComponent({
3351
3393
  minVersion: "17.0.0",
3352
- version: "22.2.0",
3394
+ version: "22.2.3",
3353
3395
  type: FlowsNodePaletteComponent,
3354
3396
  isStandalone: false,
3355
3397
  selector: "pw-flows-node-palette",
@@ -3405,7 +3447,7 @@ var FlowsNodePaletteComponent = class FlowsNodePaletteComponent {
3405
3447
  };
3406
3448
  i0.ɵɵngDeclareClassMetadata({
3407
3449
  minVersion: "12.0.0",
3408
- version: "22.2.0",
3450
+ version: "22.2.3",
3409
3451
  ngImport: i0,
3410
3452
  type: FlowsNodePaletteComponent,
3411
3453
  decorators: [{
@@ -3588,7 +3630,7 @@ var FlowsCronFieldComponent = class FlowsCronFieldComponent {
3588
3630
  static {
3589
3631
  this.ɵfac = i0.ɵɵngDeclareFactory({
3590
3632
  minVersion: "12.0.0",
3591
- version: "22.2.0",
3633
+ version: "22.2.3",
3592
3634
  ngImport: i0,
3593
3635
  type: FlowsCronFieldComponent,
3594
3636
  deps: [{ token: i2$4.TranslocoService }],
@@ -3598,7 +3640,7 @@ var FlowsCronFieldComponent = class FlowsCronFieldComponent {
3598
3640
  static {
3599
3641
  this.ɵcmp = i0.ɵɵngDeclareComponent({
3600
3642
  minVersion: "17.0.0",
3601
- version: "22.2.0",
3643
+ version: "22.2.3",
3602
3644
  type: FlowsCronFieldComponent,
3603
3645
  isStandalone: false,
3604
3646
  selector: "pw-flows-cron-field",
@@ -3681,7 +3723,7 @@ var FlowsCronFieldComponent = class FlowsCronFieldComponent {
3681
3723
  };
3682
3724
  i0.ɵɵngDeclareClassMetadata({
3683
3725
  minVersion: "12.0.0",
3684
- version: "22.2.0",
3726
+ version: "22.2.3",
3685
3727
  ngImport: i0,
3686
3728
  type: FlowsCronFieldComponent,
3687
3729
  decorators: [{
@@ -3713,7 +3755,7 @@ var FlowsTimezoneFieldComponent = class FlowsTimezoneFieldComponent {
3713
3755
  static {
3714
3756
  this.ɵfac = i0.ɵɵngDeclareFactory({
3715
3757
  minVersion: "12.0.0",
3716
- version: "22.2.0",
3758
+ version: "22.2.3",
3717
3759
  ngImport: i0,
3718
3760
  type: FlowsTimezoneFieldComponent,
3719
3761
  deps: [],
@@ -3723,7 +3765,7 @@ var FlowsTimezoneFieldComponent = class FlowsTimezoneFieldComponent {
3723
3765
  static {
3724
3766
  this.ɵcmp = i0.ɵɵngDeclareComponent({
3725
3767
  minVersion: "14.0.0",
3726
- version: "22.2.0",
3768
+ version: "22.2.3",
3727
3769
  type: FlowsTimezoneFieldComponent,
3728
3770
  isStandalone: false,
3729
3771
  selector: "pw-flows-timezone-field",
@@ -3851,7 +3893,7 @@ var FlowsTimezoneFieldComponent = class FlowsTimezoneFieldComponent {
3851
3893
  };
3852
3894
  i0.ɵɵngDeclareClassMetadata({
3853
3895
  minVersion: "12.0.0",
3854
- version: "22.2.0",
3896
+ version: "22.2.3",
3855
3897
  ngImport: i0,
3856
3898
  type: FlowsTimezoneFieldComponent,
3857
3899
  decorators: [{
@@ -3913,7 +3955,7 @@ var FlowsJsonFieldComponent = class FlowsJsonFieldComponent {
3913
3955
  static {
3914
3956
  this.ɵfac = i0.ɵɵngDeclareFactory({
3915
3957
  minVersion: "12.0.0",
3916
- version: "22.2.0",
3958
+ version: "22.2.3",
3917
3959
  ngImport: i0,
3918
3960
  type: FlowsJsonFieldComponent,
3919
3961
  deps: [],
@@ -3923,7 +3965,7 @@ var FlowsJsonFieldComponent = class FlowsJsonFieldComponent {
3923
3965
  static {
3924
3966
  this.ɵcmp = i0.ɵɵngDeclareComponent({
3925
3967
  minVersion: "17.0.0",
3926
- version: "22.2.0",
3968
+ version: "22.2.3",
3927
3969
  type: FlowsJsonFieldComponent,
3928
3970
  isStandalone: false,
3929
3971
  selector: "pw-flows-json-field",
@@ -3997,7 +4039,7 @@ var FlowsJsonFieldComponent = class FlowsJsonFieldComponent {
3997
4039
  };
3998
4040
  i0.ɵɵngDeclareClassMetadata({
3999
4041
  minVersion: "12.0.0",
4000
- version: "22.2.0",
4042
+ version: "22.2.3",
4001
4043
  ngImport: i0,
4002
4044
  type: FlowsJsonFieldComponent,
4003
4045
  decorators: [{
@@ -4244,7 +4286,7 @@ var FlowsConditionFieldComponent = class FlowsConditionFieldComponent {
4244
4286
  static {
4245
4287
  this.ɵfac = i0.ɵɵngDeclareFactory({
4246
4288
  minVersion: "12.0.0",
4247
- version: "22.2.0",
4289
+ version: "22.2.3",
4248
4290
  ngImport: i0,
4249
4291
  type: FlowsConditionFieldComponent,
4250
4292
  deps: [
@@ -4258,7 +4300,7 @@ var FlowsConditionFieldComponent = class FlowsConditionFieldComponent {
4258
4300
  static {
4259
4301
  this.ɵcmp = i0.ɵɵngDeclareComponent({
4260
4302
  minVersion: "17.0.0",
4261
- version: "22.2.0",
4303
+ version: "22.2.3",
4262
4304
  type: FlowsConditionFieldComponent,
4263
4305
  isStandalone: false,
4264
4306
  selector: "pw-flows-condition-field",
@@ -4466,7 +4508,7 @@ var FlowsConditionFieldComponent = class FlowsConditionFieldComponent {
4466
4508
  };
4467
4509
  i0.ɵɵngDeclareClassMetadata({
4468
4510
  minVersion: "12.0.0",
4469
- version: "22.2.0",
4511
+ version: "22.2.3",
4470
4512
  ngImport: i0,
4471
4513
  type: FlowsConditionFieldComponent,
4472
4514
  decorators: [{
@@ -4530,7 +4572,7 @@ var FlowsPairsFieldComponent = class FlowsPairsFieldComponent {
4530
4572
  static {
4531
4573
  this.ɵfac = i0.ɵɵngDeclareFactory({
4532
4574
  minVersion: "12.0.0",
4533
- version: "22.2.0",
4575
+ version: "22.2.3",
4534
4576
  ngImport: i0,
4535
4577
  type: FlowsPairsFieldComponent,
4536
4578
  deps: [],
@@ -4540,7 +4582,7 @@ var FlowsPairsFieldComponent = class FlowsPairsFieldComponent {
4540
4582
  static {
4541
4583
  this.ɵcmp = i0.ɵɵngDeclareComponent({
4542
4584
  minVersion: "17.0.0",
4543
- version: "22.2.0",
4585
+ version: "22.2.3",
4544
4586
  type: FlowsPairsFieldComponent,
4545
4587
  isStandalone: false,
4546
4588
  selector: "pw-flows-pairs-field",
@@ -4654,7 +4696,7 @@ var FlowsPairsFieldComponent = class FlowsPairsFieldComponent {
4654
4696
  };
4655
4697
  i0.ɵɵngDeclareClassMetadata({
4656
4698
  minVersion: "12.0.0",
4657
- version: "22.2.0",
4699
+ version: "22.2.3",
4658
4700
  ngImport: i0,
4659
4701
  type: FlowsPairsFieldComponent,
4660
4702
  decorators: [{
@@ -4692,7 +4734,7 @@ var FlowsMemberService = class FlowsMemberService {
4692
4734
  static {
4693
4735
  this.ɵfac = i0.ɵɵngDeclareFactory({
4694
4736
  minVersion: "12.0.0",
4695
- version: "22.2.0",
4737
+ version: "22.2.3",
4696
4738
  ngImport: i0,
4697
4739
  type: FlowsMemberService,
4698
4740
  deps: [{ token: i1.SubscriptionService }],
@@ -4702,7 +4744,7 @@ var FlowsMemberService = class FlowsMemberService {
4702
4744
  static {
4703
4745
  this.ɵprov = i0.ɵɵngDeclareInjectable({
4704
4746
  minVersion: "12.0.0",
4705
- version: "22.2.0",
4747
+ version: "22.2.3",
4706
4748
  ngImport: i0,
4707
4749
  type: FlowsMemberService,
4708
4750
  providedIn: "root"
@@ -4711,7 +4753,7 @@ var FlowsMemberService = class FlowsMemberService {
4711
4753
  };
4712
4754
  i0.ɵɵngDeclareClassMetadata({
4713
4755
  minVersion: "12.0.0",
4714
- version: "22.2.0",
4756
+ version: "22.2.3",
4715
4757
  ngImport: i0,
4716
4758
  type: FlowsMemberService,
4717
4759
  decorators: [{
@@ -4772,7 +4814,7 @@ var FlowsMemberFieldComponent = class FlowsMemberFieldComponent {
4772
4814
  static {
4773
4815
  this.ɵfac = i0.ɵɵngDeclareFactory({
4774
4816
  minVersion: "12.0.0",
4775
- version: "22.2.0",
4817
+ version: "22.2.3",
4776
4818
  ngImport: i0,
4777
4819
  type: FlowsMemberFieldComponent,
4778
4820
  deps: [{ token: FlowsMemberService }, { token: i0.ChangeDetectorRef }],
@@ -4782,7 +4824,7 @@ var FlowsMemberFieldComponent = class FlowsMemberFieldComponent {
4782
4824
  static {
4783
4825
  this.ɵcmp = i0.ɵɵngDeclareComponent({
4784
4826
  minVersion: "17.0.0",
4785
- version: "22.2.0",
4827
+ version: "22.2.3",
4786
4828
  type: FlowsMemberFieldComponent,
4787
4829
  isStandalone: false,
4788
4830
  selector: "pw-flows-member-field",
@@ -4912,7 +4954,7 @@ var FlowsMemberFieldComponent = class FlowsMemberFieldComponent {
4912
4954
  };
4913
4955
  i0.ɵɵngDeclareClassMetadata({
4914
4956
  minVersion: "12.0.0",
4915
- version: "22.2.0",
4957
+ version: "22.2.3",
4916
4958
  ngImport: i0,
4917
4959
  type: FlowsMemberFieldComponent,
4918
4960
  decorators: [{
@@ -4954,7 +4996,7 @@ var FlowsRetryFieldComponent = class FlowsRetryFieldComponent {
4954
4996
  static {
4955
4997
  this.ɵfac = i0.ɵɵngDeclareFactory({
4956
4998
  minVersion: "12.0.0",
4957
- version: "22.2.0",
4999
+ version: "22.2.3",
4958
5000
  ngImport: i0,
4959
5001
  type: FlowsRetryFieldComponent,
4960
5002
  deps: [],
@@ -4964,7 +5006,7 @@ var FlowsRetryFieldComponent = class FlowsRetryFieldComponent {
4964
5006
  static {
4965
5007
  this.ɵcmp = i0.ɵɵngDeclareComponent({
4966
5008
  minVersion: "17.0.0",
4967
- version: "22.2.0",
5009
+ version: "22.2.3",
4968
5010
  type: FlowsRetryFieldComponent,
4969
5011
  isStandalone: false,
4970
5012
  selector: "pw-flows-retry-field",
@@ -5079,7 +5121,7 @@ var FlowsRetryFieldComponent = class FlowsRetryFieldComponent {
5079
5121
  };
5080
5122
  i0.ɵɵngDeclareClassMetadata({
5081
5123
  minVersion: "12.0.0",
5082
- version: "22.2.0",
5124
+ version: "22.2.3",
5083
5125
  ngImport: i0,
5084
5126
  type: FlowsRetryFieldComponent,
5085
5127
  decorators: [{
@@ -5175,7 +5217,7 @@ var FlowsAvailableFieldsComponent = class FlowsAvailableFieldsComponent {
5175
5217
  static {
5176
5218
  this.ɵfac = i0.ɵɵngDeclareFactory({
5177
5219
  minVersion: "12.0.0",
5178
- version: "22.2.0",
5220
+ version: "22.2.3",
5179
5221
  ngImport: i0,
5180
5222
  type: FlowsAvailableFieldsComponent,
5181
5223
  deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }],
@@ -5185,7 +5227,7 @@ var FlowsAvailableFieldsComponent = class FlowsAvailableFieldsComponent {
5185
5227
  static {
5186
5228
  this.ɵcmp = i0.ɵɵngDeclareComponent({
5187
5229
  minVersion: "17.0.0",
5188
- version: "22.2.0",
5230
+ version: "22.2.3",
5189
5231
  type: FlowsAvailableFieldsComponent,
5190
5232
  isStandalone: false,
5191
5233
  selector: "pw-flows-available-fields",
@@ -5268,7 +5310,7 @@ var FlowsAvailableFieldsComponent = class FlowsAvailableFieldsComponent {
5268
5310
  };
5269
5311
  i0.ɵɵngDeclareClassMetadata({
5270
5312
  minVersion: "12.0.0",
5271
- version: "22.2.0",
5313
+ version: "22.2.3",
5272
5314
  ngImport: i0,
5273
5315
  type: FlowsAvailableFieldsComponent,
5274
5316
  decorators: [{
@@ -5317,7 +5359,7 @@ var FlowsUnknownFieldsComponent = class FlowsUnknownFieldsComponent {
5317
5359
  static {
5318
5360
  this.ɵfac = i0.ɵɵngDeclareFactory({
5319
5361
  minVersion: "12.0.0",
5320
- version: "22.2.0",
5362
+ version: "22.2.3",
5321
5363
  ngImport: i0,
5322
5364
  type: FlowsUnknownFieldsComponent,
5323
5365
  deps: [],
@@ -5327,7 +5369,7 @@ var FlowsUnknownFieldsComponent = class FlowsUnknownFieldsComponent {
5327
5369
  static {
5328
5370
  this.ɵcmp = i0.ɵɵngDeclareComponent({
5329
5371
  minVersion: "17.0.0",
5330
- version: "22.2.0",
5372
+ version: "22.2.3",
5331
5373
  type: FlowsUnknownFieldsComponent,
5332
5374
  isStandalone: false,
5333
5375
  selector: "pw-flows-unknown-fields",
@@ -5385,7 +5427,7 @@ var FlowsUnknownFieldsComponent = class FlowsUnknownFieldsComponent {
5385
5427
  };
5386
5428
  i0.ɵɵngDeclareClassMetadata({
5387
5429
  minVersion: "12.0.0",
5388
- version: "22.2.0",
5430
+ version: "22.2.3",
5389
5431
  ngImport: i0,
5390
5432
  type: FlowsUnknownFieldsComponent,
5391
5433
  decorators: [{
@@ -5490,7 +5532,7 @@ var FlowsNodeInspectorComponent = class FlowsNodeInspectorComponent {
5490
5532
  static {
5491
5533
  this.ɵfac = i0.ɵɵngDeclareFactory({
5492
5534
  minVersion: "12.0.0",
5493
- version: "22.2.0",
5535
+ version: "22.2.3",
5494
5536
  ngImport: i0,
5495
5537
  type: FlowsNodeInspectorComponent,
5496
5538
  deps: [
@@ -5505,7 +5547,7 @@ var FlowsNodeInspectorComponent = class FlowsNodeInspectorComponent {
5505
5547
  static {
5506
5548
  this.ɵcmp = i0.ɵɵngDeclareComponent({
5507
5549
  minVersion: "17.0.0",
5508
- version: "22.2.0",
5550
+ version: "22.2.3",
5509
5551
  type: FlowsNodeInspectorComponent,
5510
5552
  isStandalone: false,
5511
5553
  selector: "pw-flows-node-inspector",
@@ -5824,7 +5866,7 @@ var FlowsNodeInspectorComponent = class FlowsNodeInspectorComponent {
5824
5866
  };
5825
5867
  i0.ɵɵngDeclareClassMetadata({
5826
5868
  minVersion: "12.0.0",
5827
- version: "22.2.0",
5869
+ version: "22.2.3",
5828
5870
  ngImport: i0,
5829
5871
  type: FlowsNodeInspectorComponent,
5830
5872
  decorators: [{
@@ -5942,7 +5984,7 @@ var FlowsVersionEditorComponent = class FlowsVersionEditorComponent {
5942
5984
  static {
5943
5985
  this.ɵfac = i0.ɵɵngDeclareFactory({
5944
5986
  minVersion: "12.0.0",
5945
- version: "22.2.0",
5987
+ version: "22.2.3",
5946
5988
  ngImport: i0,
5947
5989
  type: FlowsVersionEditorComponent,
5948
5990
  deps: [
@@ -5957,7 +5999,7 @@ var FlowsVersionEditorComponent = class FlowsVersionEditorComponent {
5957
5999
  static {
5958
6000
  this.ɵcmp = i0.ɵɵngDeclareComponent({
5959
6001
  minVersion: "17.0.0",
5960
- version: "22.2.0",
6002
+ version: "22.2.3",
5961
6003
  type: FlowsVersionEditorComponent,
5962
6004
  isStandalone: false,
5963
6005
  selector: "pw-flows-version-editor",
@@ -6108,7 +6150,7 @@ var FlowsVersionEditorComponent = class FlowsVersionEditorComponent {
6108
6150
  };
6109
6151
  i0.ɵɵngDeclareClassMetadata({
6110
6152
  minVersion: "12.0.0",
6111
- version: "22.2.0",
6153
+ version: "22.2.3",
6112
6154
  ngImport: i0,
6113
6155
  type: FlowsVersionEditorComponent,
6114
6156
  decorators: [{
@@ -6140,6 +6182,44 @@ i0.ɵɵngDeclareClassMetadata({
6140
6182
  }]
6141
6183
  }
6142
6184
  });
6185
+ var FlowWorkflowBadgePipe = class FlowWorkflowBadgePipe {
6186
+ transform(status) {
6187
+ return flowWorkflowBadgeClass(status);
6188
+ }
6189
+ static {
6190
+ this.ɵfac = i0.ɵɵngDeclareFactory({
6191
+ minVersion: "12.0.0",
6192
+ version: "22.2.3",
6193
+ ngImport: i0,
6194
+ type: FlowWorkflowBadgePipe,
6195
+ deps: [],
6196
+ target: i0.ɵɵFactoryTarget.Pipe
6197
+ });
6198
+ }
6199
+ static {
6200
+ this.ɵpipe = i0.ɵɵngDeclarePipe({
6201
+ minVersion: "14.0.0",
6202
+ version: "22.2.3",
6203
+ ngImport: i0,
6204
+ type: FlowWorkflowBadgePipe,
6205
+ isStandalone: false,
6206
+ name: "flowWorkflowBadge"
6207
+ });
6208
+ }
6209
+ };
6210
+ i0.ɵɵngDeclareClassMetadata({
6211
+ minVersion: "12.0.0",
6212
+ version: "22.2.3",
6213
+ ngImport: i0,
6214
+ type: FlowWorkflowBadgePipe,
6215
+ decorators: [{
6216
+ type: Pipe,
6217
+ args: [{
6218
+ name: "flowWorkflowBadge",
6219
+ standalone: false
6220
+ }]
6221
+ }]
6222
+ });
6143
6223
  var FlowsWorkflowVersionsComponent = class FlowsWorkflowVersionsComponent extends AppBaseComponent {
6144
6224
  constructor(injector, workflowService, permissions, cdr) {
6145
6225
  super(injector);
@@ -6247,7 +6327,7 @@ var FlowsWorkflowVersionsComponent = class FlowsWorkflowVersionsComponent extend
6247
6327
  static {
6248
6328
  this.ɵfac = i0.ɵɵngDeclareFactory({
6249
6329
  minVersion: "12.0.0",
6250
- version: "22.2.0",
6330
+ version: "22.2.3",
6251
6331
  ngImport: i0,
6252
6332
  type: FlowsWorkflowVersionsComponent,
6253
6333
  deps: [
@@ -6262,7 +6342,7 @@ var FlowsWorkflowVersionsComponent = class FlowsWorkflowVersionsComponent extend
6262
6342
  static {
6263
6343
  this.ɵcmp = i0.ɵɵngDeclareComponent({
6264
6344
  minVersion: "17.0.0",
6265
- version: "22.2.0",
6345
+ version: "22.2.3",
6266
6346
  type: FlowsWorkflowVersionsComponent,
6267
6347
  isStandalone: false,
6268
6348
  selector: "pw-flows-workflow-versions",
@@ -6274,7 +6354,7 @@ var FlowsWorkflowVersionsComponent = class FlowsWorkflowVersionsComponent extend
6274
6354
  }],
6275
6355
  usesInheritance: true,
6276
6356
  ngImport: i0,
6277
- template: "<div class=\"row\">\n <div class=\"col-12 d-flex flex-wrap justify-content-between align-items-center gap-2\">\n <div class=\"d-flex flex-wrap align-items-center gap-3\">\n <h2 class=\"card-title p-0\">\n {{ 'Flows.Versions.Title' | transloco }}\n @if (workflow) {\n <span class=\"pw-versions-subject\">{{ workflow.name }}</span>\n }\n </h2>\n @if (workflow) {\n <pw-flows-workflow-status [workflow]=\"workflow\"\n [subscriptionId]=\"subscriptionId\"\n [hasPublished]=\"versions.some(isPublished)\"\n (workflowChange)=\"workflow = $event\"></pw-flows-workflow-status>\n }\n </div>\n <div>\n <!-- A published version is read-only, so leaving it loses nothing. -->\n @let draftOpen = editor.open && !(editor.version && isPublished(editor.version));\n <span [pTooltip]=\"draftOpen ? ('Flows.Versions.CloseFirst' | transloco) : ''\"\n tooltipPosition=\"bottom\"\n appendTo=\"body\">\n <button type=\"button\"\n class=\"btn btn-sm btn-outline-primary me-2\"\n data-testid=\"flow-version-create\"\n [disabled]=\"draftOpen\"\n (click)=\"openEditor()\">\n <fa-icon [icon]=\"icons.create\"\n aria-hidden=\"true\"></fa-icon>\n {{ 'Flows.Versions.Create' | transloco }}\n </button>\n </span>\n <button type=\"button\"\n class=\"btn btn-sm btn-outline-secondary\"\n (click)=\"back()\">\n <fa-icon [icon]=\"icons.back\"\n aria-hidden=\"true\"></fa-icon>\n {{ 'Flows.Workflows.Back' | transloco }}\n </button>\n </div>\n </div>\n</div>\n\n@if (loading) {\n<pw-skeleton-table [rows]=\"8\" [columns]=\"5\" [showCaption]=\"false\" />\n}\n\n@if (!loading) {\n@if (notFound) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Versions.NotFound' | transloco\"></pw-no-data>\n} @else {\n@if (versions.length > 0) {\n<div class=\"primeng-datatable-container table-responsive mt-3\">\n <p-table [value]=\"versions\">\n <ng-template #header>\n <tr>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Version' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.State' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Published' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Created' | transloco }}</th>\n <th scope=\"col\"\n class=\"actions-list-three\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n\n <ng-template #body\n let-version>\n <tr>\n <td data-head=\"Version\">{{ version.version }}</td>\n <td data-head=\"State\">\n <span [class]=\"badgeClass(version)\">\n {{ (isPublished(version) ? 'Flows.Versions.State.Published' : 'Flows.Versions.State.Draft') | transloco }}\n </span>\n </td>\n <td data-head=\"Published\">\n {{ version.published_at ? (version.published_at | dateFormat) : '—' }}\n </td>\n <td data-head=\"Created\">{{ version.created_at | dateFormat }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline\">\n <li [pTooltip]=\"(isPublished(version) ? 'Flows.Versions.Action.View' : 'Flows.Versions.Action.Edit') | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon [class]=\"isPublished(version) ? 'cta1-icon' : 'edit-icon'\"\n [icon]=\"isPublished(version) ? icons.inspect : icons.edit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"(isPublished(version) ? 'Flows.Versions.Action.View' : 'Flows.Versions.Action.Edit') | transloco\"\n (click)=\"openEditor(version)\"\n (keydown.enter)=\"openEditor(version)\"></fa-icon>\n </li>\n <li [pTooltip]=\"'Flows.Versions.Action.Duplicate' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon class=\"cta1-icon\"\n [icon]=\"icons.duplicate\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"'Flows.Versions.Action.Duplicate' | transloco\"\n (click)=\"duplicate(version)\"\n (keydown.enter)=\"duplicate(version)\"></fa-icon>\n </li>\n <!-- Hiding this is courtesy; protect_endpoint! is the control. -->\n @if (!isPublished(version) && canPublish) {\n <li [pTooltip]=\"'Flows.Versions.Action.Publish' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon class=\"cta1-icon\"\n [icon]=\"icons.publish\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"'Flows.Versions.Action.Publish' | transloco\"\n (click)=\"publish(version)\"\n (keydown.enter)=\"publish(version)\"></fa-icon>\n </li>\n }\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n\n <pw-records-summary [showing]=\"versions.length\"\n [total]=\"totalRecords\" />\n</div>\n} @else {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Versions.Empty' | transloco\" [description]=\"'Flows.Versions.EmptyDescription' | transloco\"></pw-no-data>\n}\n\n@if (editor.open) {\n<pw-flows-version-editor [version]=\"editor.version\"\n [duplicateOf]=\"editor.duplicateOf\"\n [workflowId]=\"workflowId\"\n [subscriptionId]=\"subscriptionId\"\n [check]=\"editor.check\"\n (saved)=\"onVersionSaved()\"\n (cancelled)=\"editor.close()\">\n</pw-flows-version-editor>\n}\n}\n}\n",
6357
+ template: "<div class=\"row\">\n <div class=\"col-12 d-flex flex-wrap justify-content-between align-items-center gap-2\">\n <div class=\"d-flex flex-wrap align-items-center gap-3\">\n <h2 class=\"card-title p-0 mb-0\">\n {{ 'Flows.Versions.Title' | transloco }}\n @if (workflow) {\n <span class=\"pw-versions-subject\">{{ workflow.name }}</span>\n }\n </h2>\n @if (workflow) {\n <span [class]=\"workflow.status | flowWorkflowBadge\"\n data-testid=\"flow-workflow-status\">\n {{ 'Flows.WorkflowStatus.' + workflow.status | transloco }}\n </span>\n }\n </div>\n <div class=\"d-flex flex-wrap align-items-center gap-2\"\n data-testid=\"flow-versions-actions\">\n @if (workflow) {\n <pw-flows-workflow-status [workflow]=\"workflow\"\n [subscriptionId]=\"subscriptionId\"\n [hasPublished]=\"versions.some(isPublished)\"\n (workflowChange)=\"workflow = $event\"></pw-flows-workflow-status>\n }\n <!-- A published version is read-only, so leaving it loses nothing. -->\n @let draftOpen = editor.open && !(editor.version && isPublished(editor.version));\n <span [pTooltip]=\"draftOpen ? ('Flows.Versions.CloseFirst' | transloco) : ''\"\n tooltipPosition=\"bottom\"\n appendTo=\"body\">\n <button type=\"button\"\n class=\"btn btn-sm btn-outline-primary\"\n data-testid=\"flow-version-create\"\n [disabled]=\"draftOpen\"\n (click)=\"openEditor()\">\n <fa-icon [icon]=\"icons.create\"\n aria-hidden=\"true\"></fa-icon>\n {{ 'Flows.Versions.Create' | transloco }}\n </button>\n </span>\n <button type=\"button\"\n class=\"btn btn-sm btn-outline-secondary\"\n (click)=\"back()\">\n <fa-icon [icon]=\"icons.back\"\n aria-hidden=\"true\"></fa-icon>\n {{ 'Flows.Workflows.Back' | transloco }}\n </button>\n </div>\n </div>\n</div>\n\n@if (loading) {\n<pw-skeleton-table [rows]=\"8\" [columns]=\"5\" [showCaption]=\"false\" />\n}\n\n@if (!loading) {\n@if (notFound) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Versions.NotFound' | transloco\"></pw-no-data>\n} @else {\n@if (versions.length > 0) {\n<div class=\"primeng-datatable-container table-responsive mt-3\">\n <p-table [value]=\"versions\">\n <ng-template #header>\n <tr>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Version' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.State' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Published' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Created' | transloco }}</th>\n <th scope=\"col\"\n class=\"actions-list-three\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n\n <ng-template #body\n let-version>\n <tr>\n <td data-head=\"Version\">{{ version.version }}</td>\n <td data-head=\"State\">\n <span [class]=\"badgeClass(version)\">\n {{ (isPublished(version) ? 'Flows.Versions.State.Published' : 'Flows.Versions.State.Draft') | transloco }}\n </span>\n </td>\n <td data-head=\"Published\">\n {{ version.published_at ? (version.published_at | dateFormat) : '—' }}\n </td>\n <td data-head=\"Created\">{{ version.created_at | dateFormat }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline\">\n <li [pTooltip]=\"(isPublished(version) ? 'Flows.Versions.Action.View' : 'Flows.Versions.Action.Edit') | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon [class]=\"isPublished(version) ? 'cta1-icon' : 'edit-icon'\"\n [icon]=\"isPublished(version) ? icons.inspect : icons.edit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"(isPublished(version) ? 'Flows.Versions.Action.View' : 'Flows.Versions.Action.Edit') | transloco\"\n (click)=\"openEditor(version)\"\n (keydown.enter)=\"openEditor(version)\"></fa-icon>\n </li>\n <li [pTooltip]=\"'Flows.Versions.Action.Duplicate' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon class=\"cta1-icon\"\n [icon]=\"icons.duplicate\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"'Flows.Versions.Action.Duplicate' | transloco\"\n (click)=\"duplicate(version)\"\n (keydown.enter)=\"duplicate(version)\"></fa-icon>\n </li>\n <!-- Hiding this is courtesy; protect_endpoint! is the control. -->\n @if (!isPublished(version) && canPublish) {\n <li [pTooltip]=\"'Flows.Versions.Action.Publish' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon class=\"cta1-icon\"\n [icon]=\"icons.publish\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"'Flows.Versions.Action.Publish' | transloco\"\n (click)=\"publish(version)\"\n (keydown.enter)=\"publish(version)\"></fa-icon>\n </li>\n }\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n\n <pw-records-summary [showing]=\"versions.length\"\n [total]=\"totalRecords\" />\n</div>\n} @else {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Versions.Empty' | transloco\" [description]=\"'Flows.Versions.EmptyDescription' | transloco\"></pw-no-data>\n}\n\n@if (editor.open) {\n<pw-flows-version-editor [version]=\"editor.version\"\n [duplicateOf]=\"editor.duplicateOf\"\n [workflowId]=\"workflowId\"\n [subscriptionId]=\"subscriptionId\"\n [check]=\"editor.check\"\n (saved)=\"onVersionSaved()\"\n (cancelled)=\"editor.close()\">\n</pw-flows-version-editor>\n}\n}\n}\n",
6278
6358
  styles: [".pw-flow-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;padding:2px 8px;border-radius:4px;letter-spacing:.01em;white-space:nowrap}.pw-flow-badge:before{content:\"\";width:6px;height:6px;border-radius:50%;background-color:currentColor;flex:0 0 auto}.pw-flow-badge--success{background-color:#e6f4ec;color:#0f6b3a}.pw-flow-badge--danger{background-color:#fbeae8;color:#c0392b}.pw-flow-badge--warning{background-color:#fbf1e3;color:#8a5a00}.pw-flow-badge--info{background-color:#e6f3f6;color:#1f6378}.pw-flow-badge--muted{background-color:#eef0f3;color:#5a6473}td[data-head=Run],td[data-head=Workflow],td[data-head=Version],td[data-head=Attempts],td[data-head=Duration]{color:#5a6473;font-variant-numeric:tabular-nums;white-space:nowrap}td[data-head=Node]{min-width:180px;font-weight:600;color:#1a1d21;overflow-wrap:anywhere}.pw-versions-subject{margin-left:.5rem;color:#5a6473;font-weight:400}.primeng-datatable-container table tbody tr:hover{background-color:#f5f7fa}\n"],
6279
6359
  dependencies: [
6280
6360
  {
@@ -6517,6 +6597,11 @@ var FlowsWorkflowVersionsComponent = class FlowsWorkflowVersionsComponent extend
6517
6597
  kind: "pipe",
6518
6598
  type: i13.DateFormatPipe,
6519
6599
  name: "dateFormat"
6600
+ },
6601
+ {
6602
+ kind: "pipe",
6603
+ type: FlowWorkflowBadgePipe,
6604
+ name: "flowWorkflowBadge"
6520
6605
  }
6521
6606
  ]
6522
6607
  });
@@ -6524,7 +6609,7 @@ var FlowsWorkflowVersionsComponent = class FlowsWorkflowVersionsComponent extend
6524
6609
  };
6525
6610
  i0.ɵɵngDeclareClassMetadata({
6526
6611
  minVersion: "12.0.0",
6527
- version: "22.2.0",
6612
+ version: "22.2.3",
6528
6613
  ngImport: i0,
6529
6614
  type: FlowsWorkflowVersionsComponent,
6530
6615
  decorators: [{
@@ -6532,7 +6617,7 @@ i0.ɵɵngDeclareClassMetadata({
6532
6617
  args: [{
6533
6618
  selector: "pw-flows-workflow-versions",
6534
6619
  standalone: false,
6535
- template: "<div class=\"row\">\n <div class=\"col-12 d-flex flex-wrap justify-content-between align-items-center gap-2\">\n <div class=\"d-flex flex-wrap align-items-center gap-3\">\n <h2 class=\"card-title p-0\">\n {{ 'Flows.Versions.Title' | transloco }}\n @if (workflow) {\n <span class=\"pw-versions-subject\">{{ workflow.name }}</span>\n }\n </h2>\n @if (workflow) {\n <pw-flows-workflow-status [workflow]=\"workflow\"\n [subscriptionId]=\"subscriptionId\"\n [hasPublished]=\"versions.some(isPublished)\"\n (workflowChange)=\"workflow = $event\"></pw-flows-workflow-status>\n }\n </div>\n <div>\n <!-- A published version is read-only, so leaving it loses nothing. -->\n @let draftOpen = editor.open && !(editor.version && isPublished(editor.version));\n <span [pTooltip]=\"draftOpen ? ('Flows.Versions.CloseFirst' | transloco) : ''\"\n tooltipPosition=\"bottom\"\n appendTo=\"body\">\n <button type=\"button\"\n class=\"btn btn-sm btn-outline-primary me-2\"\n data-testid=\"flow-version-create\"\n [disabled]=\"draftOpen\"\n (click)=\"openEditor()\">\n <fa-icon [icon]=\"icons.create\"\n aria-hidden=\"true\"></fa-icon>\n {{ 'Flows.Versions.Create' | transloco }}\n </button>\n </span>\n <button type=\"button\"\n class=\"btn btn-sm btn-outline-secondary\"\n (click)=\"back()\">\n <fa-icon [icon]=\"icons.back\"\n aria-hidden=\"true\"></fa-icon>\n {{ 'Flows.Workflows.Back' | transloco }}\n </button>\n </div>\n </div>\n</div>\n\n@if (loading) {\n<pw-skeleton-table [rows]=\"8\" [columns]=\"5\" [showCaption]=\"false\" />\n}\n\n@if (!loading) {\n@if (notFound) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Versions.NotFound' | transloco\"></pw-no-data>\n} @else {\n@if (versions.length > 0) {\n<div class=\"primeng-datatable-container table-responsive mt-3\">\n <p-table [value]=\"versions\">\n <ng-template #header>\n <tr>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Version' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.State' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Published' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Created' | transloco }}</th>\n <th scope=\"col\"\n class=\"actions-list-three\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n\n <ng-template #body\n let-version>\n <tr>\n <td data-head=\"Version\">{{ version.version }}</td>\n <td data-head=\"State\">\n <span [class]=\"badgeClass(version)\">\n {{ (isPublished(version) ? 'Flows.Versions.State.Published' : 'Flows.Versions.State.Draft') | transloco }}\n </span>\n </td>\n <td data-head=\"Published\">\n {{ version.published_at ? (version.published_at | dateFormat) : '—' }}\n </td>\n <td data-head=\"Created\">{{ version.created_at | dateFormat }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline\">\n <li [pTooltip]=\"(isPublished(version) ? 'Flows.Versions.Action.View' : 'Flows.Versions.Action.Edit') | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon [class]=\"isPublished(version) ? 'cta1-icon' : 'edit-icon'\"\n [icon]=\"isPublished(version) ? icons.inspect : icons.edit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"(isPublished(version) ? 'Flows.Versions.Action.View' : 'Flows.Versions.Action.Edit') | transloco\"\n (click)=\"openEditor(version)\"\n (keydown.enter)=\"openEditor(version)\"></fa-icon>\n </li>\n <li [pTooltip]=\"'Flows.Versions.Action.Duplicate' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon class=\"cta1-icon\"\n [icon]=\"icons.duplicate\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"'Flows.Versions.Action.Duplicate' | transloco\"\n (click)=\"duplicate(version)\"\n (keydown.enter)=\"duplicate(version)\"></fa-icon>\n </li>\n <!-- Hiding this is courtesy; protect_endpoint! is the control. -->\n @if (!isPublished(version) && canPublish) {\n <li [pTooltip]=\"'Flows.Versions.Action.Publish' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon class=\"cta1-icon\"\n [icon]=\"icons.publish\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"'Flows.Versions.Action.Publish' | transloco\"\n (click)=\"publish(version)\"\n (keydown.enter)=\"publish(version)\"></fa-icon>\n </li>\n }\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n\n <pw-records-summary [showing]=\"versions.length\"\n [total]=\"totalRecords\" />\n</div>\n} @else {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Versions.Empty' | transloco\" [description]=\"'Flows.Versions.EmptyDescription' | transloco\"></pw-no-data>\n}\n\n@if (editor.open) {\n<pw-flows-version-editor [version]=\"editor.version\"\n [duplicateOf]=\"editor.duplicateOf\"\n [workflowId]=\"workflowId\"\n [subscriptionId]=\"subscriptionId\"\n [check]=\"editor.check\"\n (saved)=\"onVersionSaved()\"\n (cancelled)=\"editor.close()\">\n</pw-flows-version-editor>\n}\n}\n}\n",
6620
+ template: "<div class=\"row\">\n <div class=\"col-12 d-flex flex-wrap justify-content-between align-items-center gap-2\">\n <div class=\"d-flex flex-wrap align-items-center gap-3\">\n <h2 class=\"card-title p-0 mb-0\">\n {{ 'Flows.Versions.Title' | transloco }}\n @if (workflow) {\n <span class=\"pw-versions-subject\">{{ workflow.name }}</span>\n }\n </h2>\n @if (workflow) {\n <span [class]=\"workflow.status | flowWorkflowBadge\"\n data-testid=\"flow-workflow-status\">\n {{ 'Flows.WorkflowStatus.' + workflow.status | transloco }}\n </span>\n }\n </div>\n <div class=\"d-flex flex-wrap align-items-center gap-2\"\n data-testid=\"flow-versions-actions\">\n @if (workflow) {\n <pw-flows-workflow-status [workflow]=\"workflow\"\n [subscriptionId]=\"subscriptionId\"\n [hasPublished]=\"versions.some(isPublished)\"\n (workflowChange)=\"workflow = $event\"></pw-flows-workflow-status>\n }\n <!-- A published version is read-only, so leaving it loses nothing. -->\n @let draftOpen = editor.open && !(editor.version && isPublished(editor.version));\n <span [pTooltip]=\"draftOpen ? ('Flows.Versions.CloseFirst' | transloco) : ''\"\n tooltipPosition=\"bottom\"\n appendTo=\"body\">\n <button type=\"button\"\n class=\"btn btn-sm btn-outline-primary\"\n data-testid=\"flow-version-create\"\n [disabled]=\"draftOpen\"\n (click)=\"openEditor()\">\n <fa-icon [icon]=\"icons.create\"\n aria-hidden=\"true\"></fa-icon>\n {{ 'Flows.Versions.Create' | transloco }}\n </button>\n </span>\n <button type=\"button\"\n class=\"btn btn-sm btn-outline-secondary\"\n (click)=\"back()\">\n <fa-icon [icon]=\"icons.back\"\n aria-hidden=\"true\"></fa-icon>\n {{ 'Flows.Workflows.Back' | transloco }}\n </button>\n </div>\n </div>\n</div>\n\n@if (loading) {\n<pw-skeleton-table [rows]=\"8\" [columns]=\"5\" [showCaption]=\"false\" />\n}\n\n@if (!loading) {\n@if (notFound) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Versions.NotFound' | transloco\"></pw-no-data>\n} @else {\n@if (versions.length > 0) {\n<div class=\"primeng-datatable-container table-responsive mt-3\">\n <p-table [value]=\"versions\">\n <ng-template #header>\n <tr>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Version' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.State' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Published' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Versions.Column.Created' | transloco }}</th>\n <th scope=\"col\"\n class=\"actions-list-three\">{{ 'Label.Actions' | transloco }}</th>\n </tr>\n </ng-template>\n\n <ng-template #body\n let-version>\n <tr>\n <td data-head=\"Version\">{{ version.version }}</td>\n <td data-head=\"State\">\n <span [class]=\"badgeClass(version)\">\n {{ (isPublished(version) ? 'Flows.Versions.State.Published' : 'Flows.Versions.State.Draft') | transloco }}\n </span>\n </td>\n <td data-head=\"Published\">\n {{ version.published_at ? (version.published_at | dateFormat) : '—' }}\n </td>\n <td data-head=\"Created\">{{ version.created_at | dateFormat }}</td>\n <td data-head=\"Action\">\n <ul class=\"list-unstyled list-inline\">\n <li [pTooltip]=\"(isPublished(version) ? 'Flows.Versions.Action.View' : 'Flows.Versions.Action.Edit') | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon [class]=\"isPublished(version) ? 'cta1-icon' : 'edit-icon'\"\n [icon]=\"isPublished(version) ? icons.inspect : icons.edit\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"(isPublished(version) ? 'Flows.Versions.Action.View' : 'Flows.Versions.Action.Edit') | transloco\"\n (click)=\"openEditor(version)\"\n (keydown.enter)=\"openEditor(version)\"></fa-icon>\n </li>\n <li [pTooltip]=\"'Flows.Versions.Action.Duplicate' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon class=\"cta1-icon\"\n [icon]=\"icons.duplicate\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"'Flows.Versions.Action.Duplicate' | transloco\"\n (click)=\"duplicate(version)\"\n (keydown.enter)=\"duplicate(version)\"></fa-icon>\n </li>\n <!-- Hiding this is courtesy; protect_endpoint! is the control. -->\n @if (!isPublished(version) && canPublish) {\n <li [pTooltip]=\"'Flows.Versions.Action.Publish' | transloco\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon class=\"cta1-icon\"\n [icon]=\"icons.publish\"\n role=\"button\"\n tabindex=\"0\"\n [attr.aria-label]=\"'Flows.Versions.Action.Publish' | transloco\"\n (click)=\"publish(version)\"\n (keydown.enter)=\"publish(version)\"></fa-icon>\n </li>\n }\n </ul>\n </td>\n </tr>\n </ng-template>\n </p-table>\n\n <pw-records-summary [showing]=\"versions.length\"\n [total]=\"totalRecords\" />\n</div>\n} @else {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Versions.Empty' | transloco\" [description]=\"'Flows.Versions.EmptyDescription' | transloco\"></pw-no-data>\n}\n\n@if (editor.open) {\n<pw-flows-version-editor [version]=\"editor.version\"\n [duplicateOf]=\"editor.duplicateOf\"\n [workflowId]=\"workflowId\"\n [subscriptionId]=\"subscriptionId\"\n [check]=\"editor.check\"\n (saved)=\"onVersionSaved()\"\n (cancelled)=\"editor.close()\">\n</pw-flows-version-editor>\n}\n}\n}\n",
6536
6621
  styles: [".pw-flow-badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:600;padding:2px 8px;border-radius:4px;letter-spacing:.01em;white-space:nowrap}.pw-flow-badge:before{content:\"\";width:6px;height:6px;border-radius:50%;background-color:currentColor;flex:0 0 auto}.pw-flow-badge--success{background-color:#e6f4ec;color:#0f6b3a}.pw-flow-badge--danger{background-color:#fbeae8;color:#c0392b}.pw-flow-badge--warning{background-color:#fbf1e3;color:#8a5a00}.pw-flow-badge--info{background-color:#e6f3f6;color:#1f6378}.pw-flow-badge--muted{background-color:#eef0f3;color:#5a6473}td[data-head=Run],td[data-head=Workflow],td[data-head=Version],td[data-head=Attempts],td[data-head=Duration]{color:#5a6473;font-variant-numeric:tabular-nums;white-space:nowrap}td[data-head=Node]{min-width:180px;font-weight:600;color:#1a1d21;overflow-wrap:anywhere}.pw-versions-subject{margin-left:.5rem;color:#5a6473;font-weight:400}.primeng-datatable-container table tbody tr:hover{background-color:#f5f7fa}\n"]
6537
6622
  }]
6538
6623
  }],
@@ -6656,7 +6741,7 @@ var FlowsWorkflowsComponent = class FlowsWorkflowsComponent extends AppBaseCompo
6656
6741
  static {
6657
6742
  this.ɵfac = i0.ɵɵngDeclareFactory({
6658
6743
  minVersion: "12.0.0",
6659
- version: "22.2.0",
6744
+ version: "22.2.3",
6660
6745
  ngImport: i0,
6661
6746
  type: FlowsWorkflowsComponent,
6662
6747
  deps: [
@@ -6671,7 +6756,7 @@ var FlowsWorkflowsComponent = class FlowsWorkflowsComponent extends AppBaseCompo
6671
6756
  static {
6672
6757
  this.ɵcmp = i0.ɵɵngDeclareComponent({
6673
6758
  minVersion: "17.0.0",
6674
- version: "22.2.0",
6759
+ version: "22.2.3",
6675
6760
  type: FlowsWorkflowsComponent,
6676
6761
  isStandalone: false,
6677
6762
  selector: "pw-flows-workflows",
@@ -7036,7 +7121,7 @@ var FlowsWorkflowsComponent = class FlowsWorkflowsComponent extends AppBaseCompo
7036
7121
  };
7037
7122
  i0.ɵɵngDeclareClassMetadata({
7038
7123
  minVersion: "12.0.0",
7039
- version: "22.2.0",
7124
+ version: "22.2.3",
7040
7125
  ngImport: i0,
7041
7126
  type: FlowsWorkflowsComponent,
7042
7127
  decorators: [{
@@ -7100,7 +7185,7 @@ var FlowsPrivateRoutingModule = class FlowsPrivateRoutingModule {
7100
7185
  static {
7101
7186
  this.ɵfac = i0.ɵɵngDeclareFactory({
7102
7187
  minVersion: "12.0.0",
7103
- version: "22.2.0",
7188
+ version: "22.2.3",
7104
7189
  ngImport: i0,
7105
7190
  type: FlowsPrivateRoutingModule,
7106
7191
  deps: [],
@@ -7110,7 +7195,7 @@ var FlowsPrivateRoutingModule = class FlowsPrivateRoutingModule {
7110
7195
  static {
7111
7196
  this.ɵmod = i0.ɵɵngDeclareNgModule({
7112
7197
  minVersion: "14.0.0",
7113
- version: "22.2.0",
7198
+ version: "22.2.3",
7114
7199
  ngImport: i0,
7115
7200
  type: FlowsPrivateRoutingModule,
7116
7201
  imports: [i8.RouterModule],
@@ -7120,7 +7205,7 @@ var FlowsPrivateRoutingModule = class FlowsPrivateRoutingModule {
7120
7205
  static {
7121
7206
  this.ɵinj = i0.ɵɵngDeclareInjector({
7122
7207
  minVersion: "12.0.0",
7123
- version: "22.2.0",
7208
+ version: "22.2.3",
7124
7209
  ngImport: i0,
7125
7210
  type: FlowsPrivateRoutingModule,
7126
7211
  imports: [RouterModule.forChild(routes), RouterModule]
@@ -7129,7 +7214,7 @@ var FlowsPrivateRoutingModule = class FlowsPrivateRoutingModule {
7129
7214
  };
7130
7215
  i0.ɵɵngDeclareClassMetadata({
7131
7216
  minVersion: "12.0.0",
7132
- version: "22.2.0",
7217
+ version: "22.2.3",
7133
7218
  ngImport: i0,
7134
7219
  type: FlowsPrivateRoutingModule,
7135
7220
  decorators: [{
@@ -7144,7 +7229,7 @@ var FlowsPrivateModule = class FlowsPrivateModule {
7144
7229
  static {
7145
7230
  this.ɵfac = i0.ɵɵngDeclareFactory({
7146
7231
  minVersion: "12.0.0",
7147
- version: "22.2.0",
7232
+ version: "22.2.3",
7148
7233
  ngImport: i0,
7149
7234
  type: FlowsPrivateModule,
7150
7235
  deps: [],
@@ -7154,7 +7239,7 @@ var FlowsPrivateModule = class FlowsPrivateModule {
7154
7239
  static {
7155
7240
  this.ɵmod = i0.ɵɵngDeclareNgModule({
7156
7241
  minVersion: "14.0.0",
7157
- version: "22.2.0",
7242
+ version: "22.2.3",
7158
7243
  ngImport: i0,
7159
7244
  type: FlowsPrivateModule,
7160
7245
  declarations: [
@@ -7184,7 +7269,8 @@ var FlowsPrivateModule = class FlowsPrivateModule {
7184
7269
  FlowsRetryFieldComponent,
7185
7270
  FlowsAvailableFieldsComponent,
7186
7271
  FlowsUnknownFieldsComponent,
7187
- FlowsWorkflowStatusComponent
7272
+ FlowsWorkflowStatusComponent,
7273
+ FlowWorkflowBadgePipe
7188
7274
  ],
7189
7275
  imports: [
7190
7276
  CommonModule,
@@ -7209,7 +7295,7 @@ var FlowsPrivateModule = class FlowsPrivateModule {
7209
7295
  static {
7210
7296
  this.ɵinj = i0.ɵɵngDeclareInjector({
7211
7297
  minVersion: "12.0.0",
7212
- version: "22.2.0",
7298
+ version: "22.2.3",
7213
7299
  ngImport: i0,
7214
7300
  type: FlowsPrivateModule,
7215
7301
  providers: [{
@@ -7241,7 +7327,7 @@ var FlowsPrivateModule = class FlowsPrivateModule {
7241
7327
  };
7242
7328
  i0.ɵɵngDeclareClassMetadata({
7243
7329
  minVersion: "12.0.0",
7244
- version: "22.2.0",
7330
+ version: "22.2.3",
7245
7331
  ngImport: i0,
7246
7332
  type: FlowsPrivateModule,
7247
7333
  decorators: [{
@@ -7299,7 +7385,8 @@ i0.ɵɵngDeclareClassMetadata({
7299
7385
  FlowsRetryFieldComponent,
7300
7386
  FlowsAvailableFieldsComponent,
7301
7387
  FlowsUnknownFieldsComponent,
7302
- FlowsWorkflowStatusComponent
7388
+ FlowsWorkflowStatusComponent,
7389
+ FlowWorkflowBadgePipe
7303
7390
  ]
7304
7391
  }]
7305
7392
  }]