@posiwise/flows 0.0.7 → 0.0.9
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/fesm2022/posiwise-flows.mjs +344 -89
- package/fesm2022/posiwise-flows.mjs.map +1 -1
- package/package.json +1 -1
- package/types/posiwise-flows.d.ts +86 -22
|
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
|
|
|
2
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
|
-
import * as
|
|
5
|
+
import * as i4 from "@posiwise/core-guards";
|
|
6
6
|
import { PageAccessGuard, TrackDirtyFormDirective } from "@posiwise/core-guards";
|
|
7
7
|
import { AppBaseComponent } from "@posiwise/app-base-component";
|
|
8
8
|
import { EMPTY, Subject, combineLatest, defer, forkJoin, of, throwError, timer } from "rxjs";
|
|
@@ -11,11 +11,11 @@ import { faArrowAltCircleLeft, faBolt, faChevronDown, faChevronRight, faCircleCh
|
|
|
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";
|
|
14
|
-
import * as i4$
|
|
14
|
+
import * as i4$2 from "@posiwise/app-loader";
|
|
15
15
|
import { AppLoaderModule } from "@posiwise/app-loader";
|
|
16
16
|
import * as i5 from "primeng/table";
|
|
17
17
|
import * as i6$1 from "@posiwise/shared-components";
|
|
18
|
-
import { SharedComponentsModule } from "@posiwise/shared-components";
|
|
18
|
+
import { PwStickyActionsComponent, SharedComponentsModule } from "@posiwise/shared-components";
|
|
19
19
|
import * as i2$3 from "@fortawesome/angular-fontawesome";
|
|
20
20
|
import { FontAwesomeModule } from "@fortawesome/angular-fontawesome";
|
|
21
21
|
import * as i1$2 from "@angular/common";
|
|
@@ -23,11 +23,11 @@ import { CommonModule } from "@angular/common";
|
|
|
23
23
|
import * as i2$4 from "@jsverse/transloco";
|
|
24
24
|
import { TRANSLOCO_SCOPE } from "@jsverse/transloco";
|
|
25
25
|
import * as i1$1 from "primeng/tooltip";
|
|
26
|
-
import * as
|
|
26
|
+
import * as i14 from "@posiwise/pipes";
|
|
27
27
|
import { PipesModule } from "@posiwise/pipes";
|
|
28
|
-
import * as i3$
|
|
28
|
+
import * as i3$1 from "@angular/forms";
|
|
29
29
|
import { FormsModule, ReactiveFormsModule, UntypedFormBuilder, Validators } from "@angular/forms";
|
|
30
|
-
import * as i4 from "primeng/select";
|
|
30
|
+
import * as i4$1 from "primeng/select";
|
|
31
31
|
import * as i1 from "@posiwise/common-services";
|
|
32
32
|
import { PERMISSION_NAMES } from "@posiwise/common-utilities";
|
|
33
33
|
import { AreaExtensions, AreaPlugin } from "rete-area-plugin";
|
|
@@ -535,30 +535,101 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
535
535
|
nodeIds: [{ type: Input }]
|
|
536
536
|
}
|
|
537
537
|
});
|
|
538
|
+
const FLOWS_SERVICE = "products-api";
|
|
539
|
+
const PREFIX$1 = "Flows.Run.Source.";
|
|
540
|
+
const FLOWS_SYSTEMS = ["smtp_mailer"];
|
|
541
|
+
function flowErrorSourceText(source, product) {
|
|
542
|
+
if (!source?.service) return null;
|
|
543
|
+
if (source.service === "products-api") {
|
|
544
|
+
if (source.system && FLOWS_SYSTEMS.includes(source.system)) return {
|
|
545
|
+
key: PREFIX$1 + "ViaFlows." + source.system,
|
|
546
|
+
params: {}
|
|
547
|
+
};
|
|
548
|
+
return source.system ? {
|
|
549
|
+
key: PREFIX$1 + "SystemViaFlows",
|
|
550
|
+
params: { system: source.system }
|
|
551
|
+
} : {
|
|
552
|
+
key: PREFIX$1 + "Flows",
|
|
553
|
+
params: {}
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
if (source.system) return product ? {
|
|
557
|
+
key: PREFIX$1 + "SystemVia",
|
|
558
|
+
params: {
|
|
559
|
+
system: source.system,
|
|
560
|
+
product
|
|
561
|
+
}
|
|
562
|
+
} : {
|
|
563
|
+
key: PREFIX$1 + "System",
|
|
564
|
+
params: { system: source.system }
|
|
565
|
+
};
|
|
566
|
+
return product ? {
|
|
567
|
+
key: PREFIX$1 + "Product",
|
|
568
|
+
params: { product }
|
|
569
|
+
} : {
|
|
570
|
+
key: PREFIX$1 + "OtherService",
|
|
571
|
+
params: {}
|
|
572
|
+
};
|
|
573
|
+
}
|
|
538
574
|
const PREFIX = "Flows.Run.Errors.";
|
|
539
575
|
const BY_CODE = {
|
|
540
576
|
awaiting_timeout: "Timeout",
|
|
541
577
|
no_credentials: "NoCredentials",
|
|
542
578
|
no_crm: "NoCrm",
|
|
579
|
+
crm_sync_failed: "CrmSyncFailed",
|
|
543
580
|
output_too_large: "OutputTooLarge",
|
|
581
|
+
interrupted: "Interrupted",
|
|
544
582
|
unsupported_action: "CannotRunHere",
|
|
545
583
|
unsupported_connector: "CannotRunHere",
|
|
546
584
|
unsupported_request: "CannotRunHere",
|
|
547
585
|
unsupported_shard: "CannotRunHere",
|
|
548
586
|
task_request_failed: "NotSent",
|
|
549
587
|
task_received_no_items: "NoItems",
|
|
588
|
+
task_failed: "TaskFailed",
|
|
550
589
|
email_recipients_invalid: "EmailRecipients",
|
|
551
590
|
no_shard_for_email: "EmailNotSent",
|
|
552
|
-
delivery_failed: "
|
|
591
|
+
delivery_failed: "NotDelivered",
|
|
553
592
|
user_not_in_subscription: "UserNotInSubscription",
|
|
593
|
+
no_context_for_user_resolution: "NoContext",
|
|
554
594
|
split_out_requires_a_field: "FieldNotSet",
|
|
555
595
|
aggregate_requires_a_field: "FieldNotSet",
|
|
556
596
|
split_out_field_missing: "FieldMissing",
|
|
557
597
|
split_out_field_not_a_list: "FieldNotAList",
|
|
598
|
+
split_out_element_not_an_object: "FieldNotRecords",
|
|
558
599
|
template_path_missing: "PlaceholderMissing",
|
|
600
|
+
template_too_many_placeholders: "TooManyPlaceholders",
|
|
559
601
|
set_fields_requires_an_object: "SetFieldsInvalid",
|
|
560
602
|
set_fields_received_a_non_object_item: "SetFieldsInvalid",
|
|
561
|
-
evaluation_failed: "ConditionFailed"
|
|
603
|
+
evaluation_failed: "ConditionFailed",
|
|
604
|
+
unreachable_nodes: "UnreachableNodes",
|
|
605
|
+
unsupported_node_type: "NodeUnavailable",
|
|
606
|
+
unsupported_merge_mode: "MergeModeUnsupported"
|
|
607
|
+
};
|
|
608
|
+
const ITEM_LIMITS = {
|
|
609
|
+
task_too_many_items: "50",
|
|
610
|
+
email_too_many_items: "50",
|
|
611
|
+
split_out_too_many_items: "500",
|
|
612
|
+
aggregate_too_many_items: "500"
|
|
613
|
+
};
|
|
614
|
+
const SMTP_FIELDS = [
|
|
615
|
+
"address",
|
|
616
|
+
"user_name",
|
|
617
|
+
"password",
|
|
618
|
+
"port",
|
|
619
|
+
"from_email",
|
|
620
|
+
"no_reply_email"
|
|
621
|
+
];
|
|
622
|
+
const NAMED = {
|
|
623
|
+
SignInRefused: "system",
|
|
624
|
+
NotFound: "system",
|
|
625
|
+
RateLimited: "system",
|
|
626
|
+
ServiceError: "system",
|
|
627
|
+
CallFailed: "system",
|
|
628
|
+
OutputTooLarge: "system",
|
|
629
|
+
Timeout: "product",
|
|
630
|
+
NotSent: "product",
|
|
631
|
+
CannotRunHere: "product",
|
|
632
|
+
NoCredentials: "product"
|
|
562
633
|
};
|
|
563
634
|
function callFailure(detail) {
|
|
564
635
|
const status = Number(/\b([45]\d\d)\b/.exec(detail)?.[1]);
|
|
@@ -567,33 +638,78 @@ function callFailure(detail) {
|
|
|
567
638
|
if (status === 429) return "RateLimited";
|
|
568
639
|
return status >= 500 ? "ServiceError" : "CallFailed";
|
|
569
640
|
}
|
|
570
|
-
function
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
641
|
+
function smtpNotConfigured(detail) {
|
|
642
|
+
const missing = detail.split(",").map((field) => field.trim());
|
|
643
|
+
return {
|
|
644
|
+
key: PREFIX + "SmtpNotConfigured",
|
|
645
|
+
params: {},
|
|
646
|
+
list: SMTP_FIELDS.filter((field) => missing.includes(field)).map((field) => PREFIX + "SmtpField." + field)
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
function byCode(code, detail, error) {
|
|
575
650
|
if (code === "integration_call_failed") return {
|
|
576
651
|
key: PREFIX + callFailure(detail),
|
|
577
652
|
params: {}
|
|
578
653
|
};
|
|
654
|
+
if (code === "smtp_not_configured") return smtpNotConfigured(detail);
|
|
655
|
+
if (code === "email_delivery_failed") {
|
|
656
|
+
const refused = /authentication/i.test(detail);
|
|
657
|
+
return {
|
|
658
|
+
key: PREFIX + (refused ? "SmtpSignInRefused" : "SmtpFailed"),
|
|
659
|
+
params: {}
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
if (ITEM_LIMITS[code]) return {
|
|
663
|
+
key: PREFIX + "TooManyItems",
|
|
664
|
+
params: { limit: ITEM_LIMITS[code] }
|
|
665
|
+
};
|
|
579
666
|
const known = BY_CODE[code];
|
|
580
|
-
|
|
667
|
+
if (known) return {
|
|
581
668
|
key: PREFIX + known,
|
|
582
669
|
params: { detail }
|
|
670
|
+
};
|
|
671
|
+
return /^[a-z]+(_[a-z]+)+$/.test(code) ? {
|
|
672
|
+
key: PREFIX + "UnknownCode",
|
|
673
|
+
params: { detail: error }
|
|
583
674
|
} : {
|
|
584
675
|
key: PREFIX + "Unknown",
|
|
585
676
|
params: { detail: error }
|
|
586
677
|
};
|
|
587
678
|
}
|
|
679
|
+
function named(text, context) {
|
|
680
|
+
const name = text.key.slice(17);
|
|
681
|
+
const needs = NAMED[name];
|
|
682
|
+
const value = needs ? context?.[needs] : null;
|
|
683
|
+
return value ? {
|
|
684
|
+
...text,
|
|
685
|
+
key: text.key + "Named",
|
|
686
|
+
params: {
|
|
687
|
+
...text.params,
|
|
688
|
+
[needs]: value
|
|
689
|
+
}
|
|
690
|
+
} : text;
|
|
691
|
+
}
|
|
692
|
+
function flowStepErrorText(error, context) {
|
|
693
|
+
if (!error) return null;
|
|
694
|
+
const colon = error.indexOf(":");
|
|
695
|
+
return named(byCode((colon === -1 ? error : error.slice(0, colon)).trim(), colon === -1 ? "" : error.slice(colon + 1).trim(), error), context);
|
|
696
|
+
}
|
|
588
697
|
var FlowsStepErrorComponent = class FlowsStepErrorComponent {
|
|
589
698
|
constructor() {
|
|
590
699
|
this.error = null;
|
|
591
700
|
this.retrying = false;
|
|
701
|
+
this.source = null;
|
|
702
|
+
this.product = null;
|
|
592
703
|
this.icons = FLOWS_ICONS;
|
|
593
704
|
this.text = null;
|
|
705
|
+
this.sourceText = null;
|
|
594
706
|
}
|
|
595
707
|
ngOnChanges() {
|
|
596
|
-
this.text = flowStepErrorText(this.error
|
|
708
|
+
this.text = flowStepErrorText(this.error, {
|
|
709
|
+
system: this.source?.system,
|
|
710
|
+
product: this.product
|
|
711
|
+
});
|
|
712
|
+
this.sourceText = this.text ? flowErrorSourceText(this.source, this.product) : null;
|
|
597
713
|
}
|
|
598
714
|
static {
|
|
599
715
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -614,12 +730,14 @@ var FlowsStepErrorComponent = class FlowsStepErrorComponent {
|
|
|
614
730
|
selector: "pw-flows-step-error",
|
|
615
731
|
inputs: {
|
|
616
732
|
error: "error",
|
|
617
|
-
retrying: "retrying"
|
|
733
|
+
retrying: "retrying",
|
|
734
|
+
source: "source",
|
|
735
|
+
product: "product"
|
|
618
736
|
},
|
|
619
737
|
usesOnChanges: true,
|
|
620
738
|
ngImport: i0,
|
|
621
|
-
template: "@if (text) {\n@let reason = text.key | transloco: text.params;\n<span class=\"pw-step-error\"\n [class.is-retrying]=\"retrying\"\n [pTooltip]=\"error\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon [icon]=\"retrying ? icons.warning : icons.error\"\n aria-hidden=\"true\"></fa-icon>\n</span>\n<small class=\"pw-step-error__text\"\n [class.is-retrying]=\"retrying\"\n data-testid=\"flow-step-error-text\">\n {{ retrying ? ('Flows.Run.Errors.LastTry' | transloco: { reason }) : reason }}\n</small>\n}\n",
|
|
622
|
-
styles: [":host{display:contents}.pw-step-error{margin-left:6px;color:#c0392b;cursor:help}.pw-step-
|
|
739
|
+
template: "@if (text) {\n@let reason = text.key | transloco: text.params;\n<span class=\"pw-step-error\"\n [class.is-retrying]=\"retrying\"\n [pTooltip]=\"error\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon [icon]=\"retrying ? icons.warning : icons.error\"\n aria-hidden=\"true\"></fa-icon>\n</span>\n<span class=\"pw-step-error__body\">\n<small class=\"pw-step-error__text\"\n [class.is-retrying]=\"retrying\"\n data-testid=\"flow-step-error-text\">\n {{ retrying ? ('Flows.Run.Errors.LastTry' | transloco: { reason }) : reason }}\n</small>\n@if (text.list?.length) {\n<small class=\"pw-step-error__text\"\n data-testid=\"flow-step-error-missing\">\n {{ 'Flows.Run.Errors.Missing' | transloco }}\n @for (item of text.list; track item; let last = $last) { {{ item | transloco }}{{ last ? '' : ', ' }} }\n</small>\n}\n@if (sourceText) {\n<small class=\"pw-step-error__source\"\n data-testid=\"flow-step-error-source\">\n {{ sourceText.key | transloco: sourceText.params }}\n</small>\n}\n</span>\n}\n",
|
|
740
|
+
styles: [":host{display:contents}.pw-step-error{margin-left:6px;color:#c0392b;cursor:help}.pw-step-error__body{display:block;max-width:280px}.pw-step-error__text{display:block;margin-top:4px;color:#c0392b;white-space:normal;overflow-wrap:break-word}.pw-step-error__source{display:block;margin-top:2px;color:#6c757d;white-space:normal;overflow-wrap:break-word}.pw-step-error.is-retrying,.pw-step-error__text.is-retrying{color:#8a6d00}\n"],
|
|
623
741
|
dependencies: [
|
|
624
742
|
{
|
|
625
743
|
kind: "directive",
|
|
@@ -705,13 +823,124 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
705
823
|
args: [{
|
|
706
824
|
selector: "pw-flows-step-error",
|
|
707
825
|
standalone: false,
|
|
708
|
-
template: "@if (text) {\n@let reason = text.key | transloco: text.params;\n<span class=\"pw-step-error\"\n [class.is-retrying]=\"retrying\"\n [pTooltip]=\"error\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon [icon]=\"retrying ? icons.warning : icons.error\"\n aria-hidden=\"true\"></fa-icon>\n</span>\n<small class=\"pw-step-error__text\"\n [class.is-retrying]=\"retrying\"\n data-testid=\"flow-step-error-text\">\n {{ retrying ? ('Flows.Run.Errors.LastTry' | transloco: { reason }) : reason }}\n</small>\n}\n",
|
|
709
|
-
styles: [":host{display:contents}.pw-step-error{margin-left:6px;color:#c0392b;cursor:help}.pw-step-
|
|
826
|
+
template: "@if (text) {\n@let reason = text.key | transloco: text.params;\n<span class=\"pw-step-error\"\n [class.is-retrying]=\"retrying\"\n [pTooltip]=\"error\"\n tooltipPosition=\"top\"\n appendTo=\"body\">\n <fa-icon [icon]=\"retrying ? icons.warning : icons.error\"\n aria-hidden=\"true\"></fa-icon>\n</span>\n<span class=\"pw-step-error__body\">\n<small class=\"pw-step-error__text\"\n [class.is-retrying]=\"retrying\"\n data-testid=\"flow-step-error-text\">\n {{ retrying ? ('Flows.Run.Errors.LastTry' | transloco: { reason }) : reason }}\n</small>\n@if (text.list?.length) {\n<small class=\"pw-step-error__text\"\n data-testid=\"flow-step-error-missing\">\n {{ 'Flows.Run.Errors.Missing' | transloco }}\n @for (item of text.list; track item; let last = $last) { {{ item | transloco }}{{ last ? '' : ', ' }} }\n</small>\n}\n@if (sourceText) {\n<small class=\"pw-step-error__source\"\n data-testid=\"flow-step-error-source\">\n {{ sourceText.key | transloco: sourceText.params }}\n</small>\n}\n</span>\n}\n",
|
|
827
|
+
styles: [":host{display:contents}.pw-step-error{margin-left:6px;color:#c0392b;cursor:help}.pw-step-error__body{display:block;max-width:280px}.pw-step-error__text{display:block;margin-top:4px;color:#c0392b;white-space:normal;overflow-wrap:break-word}.pw-step-error__source{display:block;margin-top:2px;color:#6c757d;white-space:normal;overflow-wrap:break-word}.pw-step-error.is-retrying,.pw-step-error__text.is-retrying{color:#8a6d00}\n"]
|
|
710
828
|
}]
|
|
711
829
|
}],
|
|
712
830
|
propDecorators: {
|
|
713
831
|
error: [{ type: Input }],
|
|
714
|
-
retrying: [{ type: Input }]
|
|
832
|
+
retrying: [{ type: Input }],
|
|
833
|
+
source: [{ type: Input }],
|
|
834
|
+
product: [{ type: Input }]
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
var FlowsRunErrorComponent = class FlowsRunErrorComponent {
|
|
838
|
+
constructor() {
|
|
839
|
+
this.error = null;
|
|
840
|
+
this.steps = [];
|
|
841
|
+
this.nodeTypes = {};
|
|
842
|
+
this.definitions = {};
|
|
843
|
+
this.labelKey = flowNodeLabelKey;
|
|
844
|
+
this.text = null;
|
|
845
|
+
this.sourceText = null;
|
|
846
|
+
}
|
|
847
|
+
ngOnChanges() {
|
|
848
|
+
this.step = this.steps.find((step) => step.status === "failed" && step.error === this.error);
|
|
849
|
+
this.type = this.step ? this.nodeTypes[this.step.node_id] : void 0;
|
|
850
|
+
const source = this.source();
|
|
851
|
+
this.text = flowStepErrorText(this.error, {
|
|
852
|
+
system: source?.system,
|
|
853
|
+
product: this.product()
|
|
854
|
+
});
|
|
855
|
+
this.sourceText = this.text ? flowErrorSourceText(source, this.product()) : null;
|
|
856
|
+
}
|
|
857
|
+
source() {
|
|
858
|
+
return this.step ? this.step.error_source : { service: FLOWS_SERVICE };
|
|
859
|
+
}
|
|
860
|
+
product() {
|
|
861
|
+
return this.type ? this.definitions[this.type]?.product_key : null;
|
|
862
|
+
}
|
|
863
|
+
static {
|
|
864
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
865
|
+
minVersion: "12.0.0",
|
|
866
|
+
version: "22.2.3",
|
|
867
|
+
ngImport: i0,
|
|
868
|
+
type: FlowsRunErrorComponent,
|
|
869
|
+
deps: [],
|
|
870
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
static {
|
|
874
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
875
|
+
minVersion: "17.0.0",
|
|
876
|
+
version: "22.2.3",
|
|
877
|
+
type: FlowsRunErrorComponent,
|
|
878
|
+
isStandalone: false,
|
|
879
|
+
selector: "pw-flows-run-error",
|
|
880
|
+
inputs: {
|
|
881
|
+
error: "error",
|
|
882
|
+
steps: "steps",
|
|
883
|
+
nodeTypes: "nodeTypes",
|
|
884
|
+
definitions: "definitions"
|
|
885
|
+
},
|
|
886
|
+
usesOnChanges: true,
|
|
887
|
+
ngImport: i0,
|
|
888
|
+
template: "@if (text) {\n<div class=\"pw-run-error\"\n role=\"alert\"\n data-testid=\"flow-run-error\">\n <span class=\"pw-run-error__label\">{{ 'Flows.Run.Meta.Error' | transloco }}</span>\n <span class=\"pw-run-error__message\"\n [pTooltip]=\"error\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n data-testid=\"flow-run-error-text\">{{ text.key | transloco: text.params }}</span>\n @if (text.list?.length) {\n <small class=\"pw-run-error__detail\"\n data-testid=\"flow-run-error-missing\">{{ 'Flows.Run.Errors.Missing' | transloco }}\n @for (item of text.list; track item; let last = $last) { {{ item | transloco }}{{ last ? '' : ', ' }} }</small>\n }\n @if (step) {\n @let key = type ? labelKey(type) : '';\n @let translated = key ? (key | transloco) : '';\n @let name = type ? (translated === key ? (definitions[type]?.label ?? type) : translated) : step.node_id;\n <small class=\"pw-run-error__detail\"\n data-testid=\"flow-run-error-step\">{{ 'Flows.Run.Meta.FailedStep' | transloco: { step: name } }}</small>\n }\n @if (sourceText) {\n <small class=\"pw-run-error__detail\"\n data-testid=\"flow-run-error-source\">{{ sourceText.key | transloco: sourceText.params }}</small>\n }\n</div>\n}\n",
|
|
889
|
+
styles: [".pw-run-error{display:flex;flex-direction:column;gap:2px;background-color:#fbeae8;border:1px solid #f3d3cf;border-radius:6px;padding:10px 12px;margin-bottom:12px}.pw-run-error__label{font-size:11px;font-weight:600;letter-spacing:.01em;color:#c0392b}.pw-run-error__message{color:#1a1d21;overflow-wrap:anywhere;cursor:help}.pw-run-error__detail{color:#6c757d;overflow-wrap:anywhere}\n"],
|
|
890
|
+
dependencies: [{
|
|
891
|
+
kind: "directive",
|
|
892
|
+
type: i1$1.Tooltip,
|
|
893
|
+
selector: "[pTooltip]",
|
|
894
|
+
inputs: [
|
|
895
|
+
"tooltipPosition",
|
|
896
|
+
"tooltipEvent",
|
|
897
|
+
"positionStyle",
|
|
898
|
+
"tooltipStyleClass",
|
|
899
|
+
"tooltipZIndex",
|
|
900
|
+
"escape",
|
|
901
|
+
"showDelay",
|
|
902
|
+
"hideDelay",
|
|
903
|
+
"life",
|
|
904
|
+
"positionTop",
|
|
905
|
+
"positionLeft",
|
|
906
|
+
"autoHide",
|
|
907
|
+
"fitContent",
|
|
908
|
+
"hideOnEscape",
|
|
909
|
+
"showOnEllipsis",
|
|
910
|
+
"pTooltip",
|
|
911
|
+
"tooltipDisabled",
|
|
912
|
+
"tooltipOptions",
|
|
913
|
+
"appendTo",
|
|
914
|
+
"pTooltipPT",
|
|
915
|
+
"pTooltipUnstyled"
|
|
916
|
+
]
|
|
917
|
+
}, {
|
|
918
|
+
kind: "pipe",
|
|
919
|
+
type: i2$4.TranslocoPipe,
|
|
920
|
+
name: "transloco"
|
|
921
|
+
}]
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
};
|
|
925
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
926
|
+
minVersion: "12.0.0",
|
|
927
|
+
version: "22.2.3",
|
|
928
|
+
ngImport: i0,
|
|
929
|
+
type: FlowsRunErrorComponent,
|
|
930
|
+
decorators: [{
|
|
931
|
+
type: Component,
|
|
932
|
+
args: [{
|
|
933
|
+
selector: "pw-flows-run-error",
|
|
934
|
+
standalone: false,
|
|
935
|
+
template: "@if (text) {\n<div class=\"pw-run-error\"\n role=\"alert\"\n data-testid=\"flow-run-error\">\n <span class=\"pw-run-error__label\">{{ 'Flows.Run.Meta.Error' | transloco }}</span>\n <span class=\"pw-run-error__message\"\n [pTooltip]=\"error\"\n tooltipPosition=\"top\"\n appendTo=\"body\"\n data-testid=\"flow-run-error-text\">{{ text.key | transloco: text.params }}</span>\n @if (text.list?.length) {\n <small class=\"pw-run-error__detail\"\n data-testid=\"flow-run-error-missing\">{{ 'Flows.Run.Errors.Missing' | transloco }}\n @for (item of text.list; track item; let last = $last) { {{ item | transloco }}{{ last ? '' : ', ' }} }</small>\n }\n @if (step) {\n @let key = type ? labelKey(type) : '';\n @let translated = key ? (key | transloco) : '';\n @let name = type ? (translated === key ? (definitions[type]?.label ?? type) : translated) : step.node_id;\n <small class=\"pw-run-error__detail\"\n data-testid=\"flow-run-error-step\">{{ 'Flows.Run.Meta.FailedStep' | transloco: { step: name } }}</small>\n }\n @if (sourceText) {\n <small class=\"pw-run-error__detail\"\n data-testid=\"flow-run-error-source\">{{ sourceText.key | transloco: sourceText.params }}</small>\n }\n</div>\n}\n",
|
|
936
|
+
styles: [".pw-run-error{display:flex;flex-direction:column;gap:2px;background-color:#fbeae8;border:1px solid #f3d3cf;border-radius:6px;padding:10px 12px;margin-bottom:12px}.pw-run-error__label{font-size:11px;font-weight:600;letter-spacing:.01em;color:#c0392b}.pw-run-error__message{color:#1a1d21;overflow-wrap:anywhere;cursor:help}.pw-run-error__detail{color:#6c757d;overflow-wrap:anywhere}\n"]
|
|
937
|
+
}]
|
|
938
|
+
}],
|
|
939
|
+
propDecorators: {
|
|
940
|
+
error: [{ type: Input }],
|
|
941
|
+
steps: [{ type: Input }],
|
|
942
|
+
nodeTypes: [{ type: Input }],
|
|
943
|
+
definitions: [{ type: Input }]
|
|
715
944
|
}
|
|
716
945
|
});
|
|
717
946
|
var FlowsRunInspectorComponent = class FlowsRunInspectorComponent extends AppBaseComponent {
|
|
@@ -834,12 +1063,12 @@ var FlowsRunInspectorComponent = class FlowsRunInspectorComponent extends AppBas
|
|
|
834
1063
|
selector: "pw-flows-run-inspector",
|
|
835
1064
|
usesInheritance: true,
|
|
836
1065
|
ngImport: i0,
|
|
837
|
-
template: "<div class=\"row\">\n <div class=\"col-12 d-flex align-items-center\">\n <a href=\"javascript:void(0)\"\n class=\"previous\"\n [attr.aria-label]=\"'Flows.Run.Back' | transloco\"\n (click)=\"back()\"><fa-icon [icon]=\"icons.back\"\n aria-hidden=\"true\"></fa-icon></a>\n <h3 class=\"m-subheader__title m-subheader__title--separator\">\n <!-- 🔴 Id only from the resolved run: showing it from the URL confirms a foreign run exists. -->\n <span>{{\n run\n ? ('Flows.Run.Title' | transloco: { id: runId })\n : ('Flows.Run.TitleUnknown' | transloco)\n }}</span>\n </h3>\n </div>\n</div>\n\n<pw-loader [isVisible]=\"loading\"></pw-loader>\n\n@if (!loading) {\n@if (notFound || !run) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Run.NotFound' | transloco\"></pw-no-data>\n} @else {\n<div class=\"row mt-3\">\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Status' | transloco }}</span>\n <span class=\"pw-run-meta__value\">\n <span [class]=\"runBadgeClass(run.status)\">\n {{ 'Flows.Status.' + run.status | transloco }}\n </span>\n </span>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Workflow' | transloco }}</span>\n <a class=\"pw-run-meta__value\"\n [routerLink]=\"['../../workflows', run.flow_workflow_id, 'versions']\">{{ run.flow_workflow_name || '#' + run.flow_workflow_id }}</a>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Version' | transloco }}</span>\n <a class=\"pw-run-meta__value\"\n [routerLink]=\"['../../workflows', run.flow_workflow_id, 'versions']\"\n [queryParams]=\"{ version: run.flow_version_id }\">{{ 'Flows.Runs.VersionLabel' | transloco: { number: run.flow_version_number } }}</a>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Started' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ run.started_at ? (run.started_at | dateFormat: 'datetime') : '—' }}</span>\n </div>\n </div>\n\n @if (scheduledFor(run); as slot) {\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\"\n data-testid=\"flow-run-scheduled-for\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Run.ScheduledFor' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ slot | dateFormat: 'datetime' }}</span>\n </div>\n </div>\n }\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Finished' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ run.finished_at ? (run.finished_at | dateFormat: 'datetime') : '—' }}</span>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Duration' | transloco }}</span>\n <span class=\"pw-run-meta__value\">\n @if (elapsed(run.started_at, run.finished_at) !== null) {\n {{ elapsed(run.started_at, run.finished_at) / 1000 | number: '1.0-1'\n }}{{ 'Flows.Runs.SecondsSuffix' | transloco }}\n } @else {\n —\n }\n </span>\n </div>\n </div>\n\n @if (run.error) {\n <div class=\"col-12\">\n <
|
|
838
|
-
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-run-meta{display:flex;flex-direction:column;margin-bottom:16px}.pw-run-meta__label{height:18px;line-height:18px;margin-bottom:8px;font-size:11px;font-weight:600;letter-spacing:.01em;color:#5a6473}.pw-run-meta__value{line-height:18px;color:#1a1d21;overflow-wrap:anywhere}.pw-run-
|
|
1066
|
+
template: "<div class=\"row\">\n <div class=\"col-12 d-flex align-items-center\">\n <a href=\"javascript:void(0)\"\n class=\"previous\"\n [attr.aria-label]=\"'Flows.Run.Back' | transloco\"\n (click)=\"back()\"><fa-icon [icon]=\"icons.back\"\n aria-hidden=\"true\"></fa-icon></a>\n <h3 class=\"m-subheader__title m-subheader__title--separator\">\n <!-- 🔴 Id only from the resolved run: showing it from the URL confirms a foreign run exists. -->\n <span>{{\n run\n ? ('Flows.Run.Title' | transloco: { id: runId })\n : ('Flows.Run.TitleUnknown' | transloco)\n }}</span>\n </h3>\n </div>\n</div>\n\n<pw-loader [isVisible]=\"loading\"></pw-loader>\n\n@if (!loading) {\n@if (notFound || !run) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Run.NotFound' | transloco\"></pw-no-data>\n} @else {\n<div class=\"row mt-3\">\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Status' | transloco }}</span>\n <span class=\"pw-run-meta__value\">\n <span [class]=\"runBadgeClass(run.status)\">\n {{ 'Flows.Status.' + run.status | transloco }}\n </span>\n </span>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Workflow' | transloco }}</span>\n <a class=\"pw-run-meta__value\"\n [routerLink]=\"['../../workflows', run.flow_workflow_id, 'versions']\">{{ run.flow_workflow_name || '#' + run.flow_workflow_id }}</a>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Version' | transloco }}</span>\n <a class=\"pw-run-meta__value\"\n [routerLink]=\"['../../workflows', run.flow_workflow_id, 'versions']\"\n [queryParams]=\"{ version: run.flow_version_id }\">{{ 'Flows.Runs.VersionLabel' | transloco: { number: run.flow_version_number } }}</a>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Started' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ run.started_at ? (run.started_at | dateFormat: 'datetime') : '—' }}</span>\n </div>\n </div>\n\n @if (scheduledFor(run); as slot) {\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\"\n data-testid=\"flow-run-scheduled-for\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Run.ScheduledFor' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ slot | dateFormat: 'datetime' }}</span>\n </div>\n </div>\n }\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Finished' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ run.finished_at ? (run.finished_at | dateFormat: 'datetime') : '—' }}</span>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Duration' | transloco }}</span>\n <span class=\"pw-run-meta__value\">\n @if (elapsed(run.started_at, run.finished_at) !== null) {\n {{ elapsed(run.started_at, run.finished_at) / 1000 | number: '1.0-1'\n }}{{ 'Flows.Runs.SecondsSuffix' | transloco }}\n } @else {\n —\n }\n </span>\n </div>\n </div>\n\n @if (run.error) {\n <div class=\"col-12\">\n <pw-flows-run-error [error]=\"run.error\" [steps]=\"steps\" [nodeTypes]=\"nodeTypes\" [definitions]=\"definitions\"></pw-flows-run-error>\n </div>\n }\n\n <div class=\"col-12\">\n <details class=\"pw-run-payload\">\n <summary>{{ 'Flows.Run.Meta.TriggerPayload' | transloco }}</summary>\n <pre class=\"pw-run-payload__json\">{{ asJson(run.trigger_payload) }}</pre>\n </details>\n </div>\n</div>\n\n<div class=\"row mt-4\">\n <div class=\"col-12\">\n <pw-flows-run-progress [run]=\"run\" [steps]=\"steps\" [nodeIds]=\"nodeIds\"></pw-flows-run-progress>\n <h4>{{ 'Flows.Run.Steps.Title' | transloco }}</h4>\n </div>\n</div>\n\n@if (steps.length) {\n<div class=\"primeng-datatable-container table-responsive mt-2\">\n <p-table [value]=\"steps\"\n dataKey=\"id\"\n [rowTrackBy]=\"trackByStep\">\n <ng-template #header>\n <tr>\n <th scope=\"col\">{{ 'Flows.Run.Steps.Column.Node' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Runs.Column.Status' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Run.Steps.Column.Attempts' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Runs.Column.Started' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Runs.Column.Duration' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Run.Steps.Column.Items' | transloco }}</th>\n </tr>\n </ng-template>\n\n <ng-template #body\n let-step>\n <tr>\n <td data-head=\"Node\">\n @let type = nodeTypes[step.node_id];\n @if (type) {\n @let key = labelKey(type);\n @let translated = key | transloco;\n {{ translated === key ? (definitions[type]?.label ?? type) : translated }}\n <small class=\"text-muted ms-1\">{{ step.node_id }}</small>\n } @else {\n {{ step.node_id }}\n }\n </td>\n <td data-head=\"Status\">\n <span [class]=\"stepBadgeClass(step.status)\">\n {{ (step.retry_at ? 'Flows.Status.retrying' : 'Flows.Status.' + step.status) | transloco }}\n </span>\n <pw-flows-step-error [error]=\"step.error\" [retrying]=\"!!step.retry_at\" [source]=\"step.error_source\"\n [product]=\"definitions[nodeTypes[step.node_id]]?.product_key\"></pw-flows-step-error>\n @if (step.retry_at) {\n <small class=\"d-block mt-1 text-muted\"\n data-testid=\"flow-step-next-try\">\n {{ 'Flows.Run.Steps.NextTry' | transloco: { time: (step.retry_at | dateFormat: 'datetime') } }}\n </small>\n }\n </td>\n <td data-head=\"Attempts\">{{ step.attempts }}</td>\n <td data-head=\"Started\">{{ step.started_at ? (step.started_at | dateFormat) : '—' }}</td>\n <td data-head=\"Duration\">\n @if (elapsed(step.started_at, step.finished_at) !== null) {\n {{ elapsed(step.started_at, step.finished_at) / 1000 | number: '1.0-1'\n }}{{ 'Flows.Runs.SecondsSuffix' | transloco }}\n } @else {\n —\n }\n </td>\n <td data-head=\"Items\">\n <button type=\"button\"\n class=\"btn btn-link p-0 pw-step-toggle\"\n [attr.aria-expanded]=\"openSteps.has(step.id)\"\n [attr.aria-controls]=\"'flow-step-items-' + step.id\"\n (click)=\"toggleItems(step.id)\">\n <fa-icon [icon]=\"openSteps.has(step.id) ? icons.expanded : icons.collapsed\" aria-hidden=\"true\"></fa-icon>\n {{ 'Flows.Run.Steps.Column.Items' | transloco }}\n </button>\n </td>\n </tr>\n <!-- Its own full-width row, so opening a step never resizes the columns above. -->\n @if (openSteps.has(step.id)) {\n <tr class=\"pw-step-items-row\">\n <td colspan=\"6\"\n [id]=\"'flow-step-items-' + step.id\">\n <div class=\"pw-step-items\">\n <span class=\"pw-step-items__label\">{{ 'Flows.Run.Steps.Input' | transloco }}</span>\n <pre class=\"pw-step-items__json\">{{ asJson(step.input_items) }}</pre>\n <span class=\"pw-step-items__label\">{{ 'Flows.Run.Steps.Output' | transloco }}</span>\n <pre class=\"pw-step-items__json\">{{ asJson(step.output_items) }}</pre>\n </div>\n </td>\n </tr>\n }\n </ng-template>\n </p-table>\n</div>\n} @else {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Run.Steps.Empty' | transloco\"></pw-no-data>\n}\n}\n}\n",
|
|
1067
|
+
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-run-meta{display:flex;flex-direction:column;margin-bottom:16px}.pw-run-meta__label{height:18px;line-height:18px;margin-bottom:8px;font-size:11px;font-weight:600;letter-spacing:.01em;color:#5a6473}.pw-run-meta__value{line-height:18px;color:#1a1d21;overflow-wrap:anywhere}.pw-run-payload{margin-bottom:8px}.pw-run-payload__json{max-height:240px;overflow:auto;background-color:#f5f7fa;border:1px solid #e2e5ea;border-radius:6px;padding:8px 10px;margin:6px 0 0}.pw-step-items{display:flex;flex-direction:column;gap:2px}.pw-step-items__label{font-size:11px;font-weight:600;color:#5a6473;letter-spacing:.01em}.pw-step-items__json{max-height:320px;overflow:auto;background-color:#f5f7fa;border:1px solid #e2e5ea;border-radius:6px;padding:6px 8px;margin:0 0 6px}.pw-step-toggle{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none}.pw-step-items-row td{padding-top:0}.primeng-datatable-container table tbody tr:hover{background-color:#f5f7fa}\n"],
|
|
839
1068
|
dependencies: [
|
|
840
1069
|
{
|
|
841
1070
|
kind: "component",
|
|
842
|
-
type: i4$
|
|
1071
|
+
type: i4$2.AppLoaderComponent,
|
|
843
1072
|
selector: "pw-loader",
|
|
844
1073
|
inputs: [
|
|
845
1074
|
"isVisible",
|
|
@@ -1040,7 +1269,23 @@ var FlowsRunInspectorComponent = class FlowsRunInspectorComponent extends AppBas
|
|
|
1040
1269
|
kind: "component",
|
|
1041
1270
|
type: FlowsStepErrorComponent,
|
|
1042
1271
|
selector: "pw-flows-step-error",
|
|
1043
|
-
inputs: [
|
|
1272
|
+
inputs: [
|
|
1273
|
+
"error",
|
|
1274
|
+
"retrying",
|
|
1275
|
+
"source",
|
|
1276
|
+
"product"
|
|
1277
|
+
]
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
kind: "component",
|
|
1281
|
+
type: FlowsRunErrorComponent,
|
|
1282
|
+
selector: "pw-flows-run-error",
|
|
1283
|
+
inputs: [
|
|
1284
|
+
"error",
|
|
1285
|
+
"steps",
|
|
1286
|
+
"nodeTypes",
|
|
1287
|
+
"definitions"
|
|
1288
|
+
]
|
|
1044
1289
|
},
|
|
1045
1290
|
{
|
|
1046
1291
|
kind: "pipe",
|
|
@@ -1054,7 +1299,7 @@ var FlowsRunInspectorComponent = class FlowsRunInspectorComponent extends AppBas
|
|
|
1054
1299
|
},
|
|
1055
1300
|
{
|
|
1056
1301
|
kind: "pipe",
|
|
1057
|
-
type:
|
|
1302
|
+
type: i14.DateFormatPipe,
|
|
1058
1303
|
name: "dateFormat"
|
|
1059
1304
|
}
|
|
1060
1305
|
]
|
|
@@ -1071,8 +1316,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1071
1316
|
args: [{
|
|
1072
1317
|
selector: "pw-flows-run-inspector",
|
|
1073
1318
|
standalone: false,
|
|
1074
|
-
template: "<div class=\"row\">\n <div class=\"col-12 d-flex align-items-center\">\n <a href=\"javascript:void(0)\"\n class=\"previous\"\n [attr.aria-label]=\"'Flows.Run.Back' | transloco\"\n (click)=\"back()\"><fa-icon [icon]=\"icons.back\"\n aria-hidden=\"true\"></fa-icon></a>\n <h3 class=\"m-subheader__title m-subheader__title--separator\">\n <!-- 🔴 Id only from the resolved run: showing it from the URL confirms a foreign run exists. -->\n <span>{{\n run\n ? ('Flows.Run.Title' | transloco: { id: runId })\n : ('Flows.Run.TitleUnknown' | transloco)\n }}</span>\n </h3>\n </div>\n</div>\n\n<pw-loader [isVisible]=\"loading\"></pw-loader>\n\n@if (!loading) {\n@if (notFound || !run) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Run.NotFound' | transloco\"></pw-no-data>\n} @else {\n<div class=\"row mt-3\">\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Status' | transloco }}</span>\n <span class=\"pw-run-meta__value\">\n <span [class]=\"runBadgeClass(run.status)\">\n {{ 'Flows.Status.' + run.status | transloco }}\n </span>\n </span>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Workflow' | transloco }}</span>\n <a class=\"pw-run-meta__value\"\n [routerLink]=\"['../../workflows', run.flow_workflow_id, 'versions']\">{{ run.flow_workflow_name || '#' + run.flow_workflow_id }}</a>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Version' | transloco }}</span>\n <a class=\"pw-run-meta__value\"\n [routerLink]=\"['../../workflows', run.flow_workflow_id, 'versions']\"\n [queryParams]=\"{ version: run.flow_version_id }\">{{ 'Flows.Runs.VersionLabel' | transloco: { number: run.flow_version_number } }}</a>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Started' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ run.started_at ? (run.started_at | dateFormat: 'datetime') : '—' }}</span>\n </div>\n </div>\n\n @if (scheduledFor(run); as slot) {\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\"\n data-testid=\"flow-run-scheduled-for\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Run.ScheduledFor' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ slot | dateFormat: 'datetime' }}</span>\n </div>\n </div>\n }\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Finished' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ run.finished_at ? (run.finished_at | dateFormat: 'datetime') : '—' }}</span>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Duration' | transloco }}</span>\n <span class=\"pw-run-meta__value\">\n @if (elapsed(run.started_at, run.finished_at) !== null) {\n {{ elapsed(run.started_at, run.finished_at) / 1000 | number: '1.0-1'\n }}{{ 'Flows.Runs.SecondsSuffix' | transloco }}\n } @else {\n —\n }\n </span>\n </div>\n </div>\n\n @if (run.error) {\n <div class=\"col-12\">\n <
|
|
1075
|
-
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-run-meta{display:flex;flex-direction:column;margin-bottom:16px}.pw-run-meta__label{height:18px;line-height:18px;margin-bottom:8px;font-size:11px;font-weight:600;letter-spacing:.01em;color:#5a6473}.pw-run-meta__value{line-height:18px;color:#1a1d21;overflow-wrap:anywhere}.pw-run-
|
|
1319
|
+
template: "<div class=\"row\">\n <div class=\"col-12 d-flex align-items-center\">\n <a href=\"javascript:void(0)\"\n class=\"previous\"\n [attr.aria-label]=\"'Flows.Run.Back' | transloco\"\n (click)=\"back()\"><fa-icon [icon]=\"icons.back\"\n aria-hidden=\"true\"></fa-icon></a>\n <h3 class=\"m-subheader__title m-subheader__title--separator\">\n <!-- 🔴 Id only from the resolved run: showing it from the URL confirms a foreign run exists. -->\n <span>{{\n run\n ? ('Flows.Run.Title' | transloco: { id: runId })\n : ('Flows.Run.TitleUnknown' | transloco)\n }}</span>\n </h3>\n </div>\n</div>\n\n<pw-loader [isVisible]=\"loading\"></pw-loader>\n\n@if (!loading) {\n@if (notFound || !run) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Run.NotFound' | transloco\"></pw-no-data>\n} @else {\n<div class=\"row mt-3\">\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Status' | transloco }}</span>\n <span class=\"pw-run-meta__value\">\n <span [class]=\"runBadgeClass(run.status)\">\n {{ 'Flows.Status.' + run.status | transloco }}\n </span>\n </span>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Workflow' | transloco }}</span>\n <a class=\"pw-run-meta__value\"\n [routerLink]=\"['../../workflows', run.flow_workflow_id, 'versions']\">{{ run.flow_workflow_name || '#' + run.flow_workflow_id }}</a>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Version' | transloco }}</span>\n <a class=\"pw-run-meta__value\"\n [routerLink]=\"['../../workflows', run.flow_workflow_id, 'versions']\"\n [queryParams]=\"{ version: run.flow_version_id }\">{{ 'Flows.Runs.VersionLabel' | transloco: { number: run.flow_version_number } }}</a>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Started' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ run.started_at ? (run.started_at | dateFormat: 'datetime') : '—' }}</span>\n </div>\n </div>\n\n @if (scheduledFor(run); as slot) {\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\"\n data-testid=\"flow-run-scheduled-for\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Run.ScheduledFor' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ slot | dateFormat: 'datetime' }}</span>\n </div>\n </div>\n }\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Finished' | transloco }}</span>\n <span class=\"pw-run-meta__value\">{{ run.finished_at ? (run.finished_at | dateFormat: 'datetime') : '—' }}</span>\n </div>\n </div>\n\n <div class=\"col-12 col-md-4\">\n <div class=\"pw-run-meta\">\n <span class=\"pw-run-meta__label\">{{ 'Flows.Runs.Column.Duration' | transloco }}</span>\n <span class=\"pw-run-meta__value\">\n @if (elapsed(run.started_at, run.finished_at) !== null) {\n {{ elapsed(run.started_at, run.finished_at) / 1000 | number: '1.0-1'\n }}{{ 'Flows.Runs.SecondsSuffix' | transloco }}\n } @else {\n —\n }\n </span>\n </div>\n </div>\n\n @if (run.error) {\n <div class=\"col-12\">\n <pw-flows-run-error [error]=\"run.error\" [steps]=\"steps\" [nodeTypes]=\"nodeTypes\" [definitions]=\"definitions\"></pw-flows-run-error>\n </div>\n }\n\n <div class=\"col-12\">\n <details class=\"pw-run-payload\">\n <summary>{{ 'Flows.Run.Meta.TriggerPayload' | transloco }}</summary>\n <pre class=\"pw-run-payload__json\">{{ asJson(run.trigger_payload) }}</pre>\n </details>\n </div>\n</div>\n\n<div class=\"row mt-4\">\n <div class=\"col-12\">\n <pw-flows-run-progress [run]=\"run\" [steps]=\"steps\" [nodeIds]=\"nodeIds\"></pw-flows-run-progress>\n <h4>{{ 'Flows.Run.Steps.Title' | transloco }}</h4>\n </div>\n</div>\n\n@if (steps.length) {\n<div class=\"primeng-datatable-container table-responsive mt-2\">\n <p-table [value]=\"steps\"\n dataKey=\"id\"\n [rowTrackBy]=\"trackByStep\">\n <ng-template #header>\n <tr>\n <th scope=\"col\">{{ 'Flows.Run.Steps.Column.Node' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Runs.Column.Status' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Run.Steps.Column.Attempts' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Runs.Column.Started' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Runs.Column.Duration' | transloco }}</th>\n <th scope=\"col\">{{ 'Flows.Run.Steps.Column.Items' | transloco }}</th>\n </tr>\n </ng-template>\n\n <ng-template #body\n let-step>\n <tr>\n <td data-head=\"Node\">\n @let type = nodeTypes[step.node_id];\n @if (type) {\n @let key = labelKey(type);\n @let translated = key | transloco;\n {{ translated === key ? (definitions[type]?.label ?? type) : translated }}\n <small class=\"text-muted ms-1\">{{ step.node_id }}</small>\n } @else {\n {{ step.node_id }}\n }\n </td>\n <td data-head=\"Status\">\n <span [class]=\"stepBadgeClass(step.status)\">\n {{ (step.retry_at ? 'Flows.Status.retrying' : 'Flows.Status.' + step.status) | transloco }}\n </span>\n <pw-flows-step-error [error]=\"step.error\" [retrying]=\"!!step.retry_at\" [source]=\"step.error_source\"\n [product]=\"definitions[nodeTypes[step.node_id]]?.product_key\"></pw-flows-step-error>\n @if (step.retry_at) {\n <small class=\"d-block mt-1 text-muted\"\n data-testid=\"flow-step-next-try\">\n {{ 'Flows.Run.Steps.NextTry' | transloco: { time: (step.retry_at | dateFormat: 'datetime') } }}\n </small>\n }\n </td>\n <td data-head=\"Attempts\">{{ step.attempts }}</td>\n <td data-head=\"Started\">{{ step.started_at ? (step.started_at | dateFormat) : '—' }}</td>\n <td data-head=\"Duration\">\n @if (elapsed(step.started_at, step.finished_at) !== null) {\n {{ elapsed(step.started_at, step.finished_at) / 1000 | number: '1.0-1'\n }}{{ 'Flows.Runs.SecondsSuffix' | transloco }}\n } @else {\n —\n }\n </td>\n <td data-head=\"Items\">\n <button type=\"button\"\n class=\"btn btn-link p-0 pw-step-toggle\"\n [attr.aria-expanded]=\"openSteps.has(step.id)\"\n [attr.aria-controls]=\"'flow-step-items-' + step.id\"\n (click)=\"toggleItems(step.id)\">\n <fa-icon [icon]=\"openSteps.has(step.id) ? icons.expanded : icons.collapsed\" aria-hidden=\"true\"></fa-icon>\n {{ 'Flows.Run.Steps.Column.Items' | transloco }}\n </button>\n </td>\n </tr>\n <!-- Its own full-width row, so opening a step never resizes the columns above. -->\n @if (openSteps.has(step.id)) {\n <tr class=\"pw-step-items-row\">\n <td colspan=\"6\"\n [id]=\"'flow-step-items-' + step.id\">\n <div class=\"pw-step-items\">\n <span class=\"pw-step-items__label\">{{ 'Flows.Run.Steps.Input' | transloco }}</span>\n <pre class=\"pw-step-items__json\">{{ asJson(step.input_items) }}</pre>\n <span class=\"pw-step-items__label\">{{ 'Flows.Run.Steps.Output' | transloco }}</span>\n <pre class=\"pw-step-items__json\">{{ asJson(step.output_items) }}</pre>\n </div>\n </td>\n </tr>\n }\n </ng-template>\n </p-table>\n</div>\n} @else {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.Run.Steps.Empty' | transloco\"></pw-no-data>\n}\n}\n}\n",
|
|
1320
|
+
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-run-meta{display:flex;flex-direction:column;margin-bottom:16px}.pw-run-meta__label{height:18px;line-height:18px;margin-bottom:8px;font-size:11px;font-weight:600;letter-spacing:.01em;color:#5a6473}.pw-run-meta__value{line-height:18px;color:#1a1d21;overflow-wrap:anywhere}.pw-run-payload{margin-bottom:8px}.pw-run-payload__json{max-height:240px;overflow:auto;background-color:#f5f7fa;border:1px solid #e2e5ea;border-radius:6px;padding:8px 10px;margin:6px 0 0}.pw-step-items{display:flex;flex-direction:column;gap:2px}.pw-step-items__label{font-size:11px;font-weight:600;color:#5a6473;letter-spacing:.01em}.pw-step-items__json{max-height:320px;overflow:auto;background-color:#f5f7fa;border:1px solid #e2e5ea;border-radius:6px;padding:6px 8px;margin:0 0 6px}.pw-step-toggle{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none}.pw-step-items-row td{padding-top:0}.primeng-datatable-container table tbody tr:hover{background-color:#f5f7fa}\n"]
|
|
1076
1321
|
}]
|
|
1077
1322
|
}],
|
|
1078
1323
|
ctorParameters: () => [
|
|
@@ -1181,12 +1426,12 @@ var FlowsRunsFiltersComponent = class FlowsRunsFiltersComponent {
|
|
|
1181
1426
|
dependencies: [
|
|
1182
1427
|
{
|
|
1183
1428
|
kind: "directive",
|
|
1184
|
-
type: i3$
|
|
1429
|
+
type: i3$1.NgControlStatus,
|
|
1185
1430
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
1186
1431
|
},
|
|
1187
1432
|
{
|
|
1188
1433
|
kind: "directive",
|
|
1189
|
-
type: i3$
|
|
1434
|
+
type: i3$1.NgModel,
|
|
1190
1435
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
1191
1436
|
inputs: [
|
|
1192
1437
|
"name",
|
|
@@ -1199,7 +1444,7 @@ var FlowsRunsFiltersComponent = class FlowsRunsFiltersComponent {
|
|
|
1199
1444
|
},
|
|
1200
1445
|
{
|
|
1201
1446
|
kind: "component",
|
|
1202
|
-
type: i4.Select,
|
|
1447
|
+
type: i4$1.Select,
|
|
1203
1448
|
selector: "p-select",
|
|
1204
1449
|
inputs: [
|
|
1205
1450
|
"id",
|
|
@@ -1409,7 +1654,7 @@ var FlowsRunsComponent = class FlowsRunsComponent extends AppBaseComponent {
|
|
|
1409
1654
|
dependencies: [
|
|
1410
1655
|
{
|
|
1411
1656
|
kind: "component",
|
|
1412
|
-
type: i4$
|
|
1657
|
+
type: i4$2.SkeletonTableComponent,
|
|
1413
1658
|
selector: "pw-skeleton-table",
|
|
1414
1659
|
inputs: [
|
|
1415
1660
|
"rows",
|
|
@@ -1652,7 +1897,7 @@ var FlowsRunsComponent = class FlowsRunsComponent extends AppBaseComponent {
|
|
|
1652
1897
|
},
|
|
1653
1898
|
{
|
|
1654
1899
|
kind: "pipe",
|
|
1655
|
-
type:
|
|
1900
|
+
type: i14.DateFormatPipe,
|
|
1656
1901
|
name: "dateFormat"
|
|
1657
1902
|
}
|
|
1658
1903
|
]
|
|
@@ -1892,38 +2137,43 @@ var FlowsWorkflowFormComponent = class FlowsWorkflowFormComponent extends AppBas
|
|
|
1892
2137
|
selector: "pw-flows-workflow-form",
|
|
1893
2138
|
usesInheritance: true,
|
|
1894
2139
|
ngImport: i0,
|
|
1895
|
-
template: "<div class=\"row\">\n <div class=\"col-12 d-flex justify-content-between align-items-center\">\n <h2 class=\"card-title p-0\">\n {{ (isEdit ? 'Flows.WorkflowForm.EditTitle' : 'Flows.WorkflowForm.CreateTitle') | transloco }}\n </h2>\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\n<pw-loader [isVisible]=\"loading\"></pw-loader>\n\n@if (!loading) {\n@if (notFound) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.WorkflowForm.NotFound' | transloco\"></pw-no-data>\n} @else {\n<form [formGroup]=\"form\"\n (ngSubmit)=\"save()\"\n class=\"mt-3\">\n <h3>{{ 'Flows.WorkflowForm.Section.Details' | transloco }}</h3>\n <div class=\"row\">\n <!-- md-8/md-4 rather than the pattern default so the row fills the page. -->\n <pw-input-container class=\"col-12 col-md-8\"\n [label]=\"'Flows.WorkflowForm.Name' | transloco\"\n name=\"name\"\n controlId=\"flows-workflow-name\"\n [required]=\"true\"\n errorMsg=\"Flows.WorkflowForm.NameError\">\n <input type=\"text\"\n id=\"flows-workflow-name\"\n class=\"form-control\"\n maxlength=\"255\"\n [placeholder]=\"'Flows.WorkflowForm.NamePlaceholder' | transloco\"\n [attr.aria-label]=\"'Flows.WorkflowForm.Name' | transloco\"\n formControlName=\"name\" />\n </pw-input-container>\n\n <pw-input-container class=\"col-12 col-md-4\"\n [label]=\"'Flows.WorkflowForm.Status' | transloco\"\n name=\"status\"\n controlId=\"flows-workflow-status\"\n [required]=\"true\"\n [useAriaLabelledbyOnly]=\"true\"\n [showTooltip]=\"true\"\n [tooltipText]=\"'Flows.WorkflowForm.StatusHint' | transloco\"\n errorMsg=\"Flows.WorkflowForm.StatusError\">\n <!-- No [showClear]: Grape restricts status to STATUSES, so a blank 400s. -->\n <p-select inputId=\"flows-workflow-status\"\n styleClass=\"w-100\"\n [options]=\"statusOptions\"\n optionValue=\"value\"\n formControlName=\"status\"\n [attr.aria-labelledby]=\"'flows-workflow-status-label'\"\n appendTo=\"body\">\n </p-select>\n </pw-input-container>\n\n <pw-input-container class=\"col-12\"\n [label]=\"'Flows.WorkflowForm.Description' | transloco\"\n name=\"description\"\n controlId=\"flows-workflow-description\">\n <textarea id=\"flows-workflow-description\"\n class=\"form-control\"\n rows=\"3\"\n [placeholder]=\"'Flows.WorkflowForm.DescriptionPlaceholder' | transloco\"\n [attr.aria-label]=\"'Flows.WorkflowForm.Description' | transloco\"\n formControlName=\"description\"></textarea>\n </pw-input-container>\n </div>\n\n <
|
|
2140
|
+
template: "<div class=\"row\">\n <div class=\"col-12 d-flex justify-content-between align-items-center\">\n <h2 class=\"card-title p-0\">\n {{ (isEdit ? 'Flows.WorkflowForm.EditTitle' : 'Flows.WorkflowForm.CreateTitle') | transloco }}\n </h2>\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\n<pw-loader [isVisible]=\"loading\"></pw-loader>\n\n@if (!loading) {\n@if (notFound) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.WorkflowForm.NotFound' | transloco\"></pw-no-data>\n} @else {\n<form [formGroup]=\"form\"\n (ngSubmit)=\"save()\"\n class=\"mt-3\">\n <h3>{{ 'Flows.WorkflowForm.Section.Details' | transloco }}</h3>\n <div class=\"row\">\n <!-- md-8/md-4 rather than the pattern default so the row fills the page. -->\n <pw-input-container class=\"col-12 col-md-8\"\n [label]=\"'Flows.WorkflowForm.Name' | transloco\"\n name=\"name\"\n controlId=\"flows-workflow-name\"\n [required]=\"true\"\n errorMsg=\"Flows.WorkflowForm.NameError\">\n <input type=\"text\"\n id=\"flows-workflow-name\"\n class=\"form-control\"\n maxlength=\"255\"\n [placeholder]=\"'Flows.WorkflowForm.NamePlaceholder' | transloco\"\n [attr.aria-label]=\"'Flows.WorkflowForm.Name' | transloco\"\n formControlName=\"name\" />\n </pw-input-container>\n\n <pw-input-container class=\"col-12 col-md-4\"\n [label]=\"'Flows.WorkflowForm.Status' | transloco\"\n name=\"status\"\n controlId=\"flows-workflow-status\"\n [required]=\"true\"\n [useAriaLabelledbyOnly]=\"true\"\n [showTooltip]=\"true\"\n [tooltipText]=\"'Flows.WorkflowForm.StatusHint' | transloco\"\n errorMsg=\"Flows.WorkflowForm.StatusError\">\n <!-- No [showClear]: Grape restricts status to STATUSES, so a blank 400s. -->\n <p-select inputId=\"flows-workflow-status\"\n styleClass=\"w-100\"\n [options]=\"statusOptions\"\n optionValue=\"value\"\n formControlName=\"status\"\n [attr.aria-labelledby]=\"'flows-workflow-status-label'\"\n appendTo=\"body\">\n </p-select>\n </pw-input-container>\n\n <pw-input-container class=\"col-12\"\n [label]=\"'Flows.WorkflowForm.Description' | transloco\"\n name=\"description\"\n controlId=\"flows-workflow-description\">\n <textarea id=\"flows-workflow-description\"\n class=\"form-control\"\n rows=\"3\"\n [placeholder]=\"'Flows.WorkflowForm.DescriptionPlaceholder' | transloco\"\n [attr.aria-label]=\"'Flows.WorkflowForm.Description' | transloco\"\n formControlName=\"description\"></textarea>\n </pw-input-container>\n </div>\n\n <pw-sticky-actions>\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"back()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button name=\"submit\"\n type=\"submit\"\n class=\"btn btn-primary\"\n [disabled]=\"saving\">\n {{ 'Button.Submit' | transloco }}\n </button>\n </pw-sticky-actions>\n</form>\n}\n}\n",
|
|
1896
2141
|
styles: [":host ::ng-deep .info-circle{display:inline-block;margin-left:.35em;vertical-align:baseline}:host ::ng-deep .info-circle:after{position:static;font-size:inherit;line-height:inherit}:host form>h3{display:block;border-top:1px solid #e2e5ea;margin-top:2rem;padding-top:1.25rem}:host form>h3:first-child{border-top:0;margin-top:.5rem;padding-top:0}\n"],
|
|
1897
2142
|
dependencies: [
|
|
2143
|
+
{
|
|
2144
|
+
kind: "component",
|
|
2145
|
+
type: i6$1.PwStickyActionsComponent,
|
|
2146
|
+
selector: "pw-sticky-actions"
|
|
2147
|
+
},
|
|
1898
2148
|
{
|
|
1899
2149
|
kind: "directive",
|
|
1900
|
-
type: i3$
|
|
2150
|
+
type: i3$1.ɵNgNoValidate,
|
|
1901
2151
|
selector: "form:not([ngNoForm]):not([ngNativeValidate])"
|
|
1902
2152
|
},
|
|
1903
2153
|
{
|
|
1904
2154
|
kind: "directive",
|
|
1905
|
-
type: i3$
|
|
2155
|
+
type: i3$1.DefaultValueAccessor,
|
|
1906
2156
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
1907
2157
|
},
|
|
1908
2158
|
{
|
|
1909
2159
|
kind: "directive",
|
|
1910
|
-
type: i3$
|
|
2160
|
+
type: i3$1.NgControlStatus,
|
|
1911
2161
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
1912
2162
|
},
|
|
1913
2163
|
{
|
|
1914
2164
|
kind: "directive",
|
|
1915
|
-
type: i3$
|
|
2165
|
+
type: i3$1.NgControlStatusGroup,
|
|
1916
2166
|
selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]"
|
|
1917
2167
|
},
|
|
1918
2168
|
{
|
|
1919
2169
|
kind: "directive",
|
|
1920
|
-
type: i3$
|
|
2170
|
+
type: i3$1.MaxLengthValidator,
|
|
1921
2171
|
selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",
|
|
1922
2172
|
inputs: ["maxlength"]
|
|
1923
2173
|
},
|
|
1924
2174
|
{
|
|
1925
2175
|
kind: "directive",
|
|
1926
|
-
type: i3$
|
|
2176
|
+
type: i3$1.FormGroupDirective,
|
|
1927
2177
|
selector: "[formGroup]",
|
|
1928
2178
|
inputs: ["formGroup"],
|
|
1929
2179
|
outputs: ["ngSubmit"],
|
|
@@ -1931,7 +2181,7 @@ var FlowsWorkflowFormComponent = class FlowsWorkflowFormComponent extends AppBas
|
|
|
1931
2181
|
},
|
|
1932
2182
|
{
|
|
1933
2183
|
kind: "directive",
|
|
1934
|
-
type: i3$
|
|
2184
|
+
type: i3$1.FormControlName,
|
|
1935
2185
|
selector: "[formControlName]",
|
|
1936
2186
|
inputs: [
|
|
1937
2187
|
"formControlName",
|
|
@@ -1942,12 +2192,12 @@ var FlowsWorkflowFormComponent = class FlowsWorkflowFormComponent extends AppBas
|
|
|
1942
2192
|
},
|
|
1943
2193
|
{
|
|
1944
2194
|
kind: "directive",
|
|
1945
|
-
type:
|
|
2195
|
+
type: i4.TrackDirtyFormDirective,
|
|
1946
2196
|
selector: "[formGroup]:not([formGroupSkipDirty])"
|
|
1947
2197
|
},
|
|
1948
2198
|
{
|
|
1949
2199
|
kind: "component",
|
|
1950
|
-
type: i4$
|
|
2200
|
+
type: i4$2.AppLoaderComponent,
|
|
1951
2201
|
selector: "pw-loader",
|
|
1952
2202
|
inputs: [
|
|
1953
2203
|
"isVisible",
|
|
@@ -1957,7 +2207,7 @@ var FlowsWorkflowFormComponent = class FlowsWorkflowFormComponent extends AppBas
|
|
|
1957
2207
|
},
|
|
1958
2208
|
{
|
|
1959
2209
|
kind: "component",
|
|
1960
|
-
type: i4.Select,
|
|
2210
|
+
type: i4$1.Select,
|
|
1961
2211
|
selector: "p-select",
|
|
1962
2212
|
inputs: [
|
|
1963
2213
|
"id",
|
|
@@ -2114,7 +2364,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2114
2364
|
args: [{
|
|
2115
2365
|
selector: "pw-flows-workflow-form",
|
|
2116
2366
|
standalone: false,
|
|
2117
|
-
template: "<div class=\"row\">\n <div class=\"col-12 d-flex justify-content-between align-items-center\">\n <h2 class=\"card-title p-0\">\n {{ (isEdit ? 'Flows.WorkflowForm.EditTitle' : 'Flows.WorkflowForm.CreateTitle') | transloco }}\n </h2>\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\n<pw-loader [isVisible]=\"loading\"></pw-loader>\n\n@if (!loading) {\n@if (notFound) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.WorkflowForm.NotFound' | transloco\"></pw-no-data>\n} @else {\n<form [formGroup]=\"form\"\n (ngSubmit)=\"save()\"\n class=\"mt-3\">\n <h3>{{ 'Flows.WorkflowForm.Section.Details' | transloco }}</h3>\n <div class=\"row\">\n <!-- md-8/md-4 rather than the pattern default so the row fills the page. -->\n <pw-input-container class=\"col-12 col-md-8\"\n [label]=\"'Flows.WorkflowForm.Name' | transloco\"\n name=\"name\"\n controlId=\"flows-workflow-name\"\n [required]=\"true\"\n errorMsg=\"Flows.WorkflowForm.NameError\">\n <input type=\"text\"\n id=\"flows-workflow-name\"\n class=\"form-control\"\n maxlength=\"255\"\n [placeholder]=\"'Flows.WorkflowForm.NamePlaceholder' | transloco\"\n [attr.aria-label]=\"'Flows.WorkflowForm.Name' | transloco\"\n formControlName=\"name\" />\n </pw-input-container>\n\n <pw-input-container class=\"col-12 col-md-4\"\n [label]=\"'Flows.WorkflowForm.Status' | transloco\"\n name=\"status\"\n controlId=\"flows-workflow-status\"\n [required]=\"true\"\n [useAriaLabelledbyOnly]=\"true\"\n [showTooltip]=\"true\"\n [tooltipText]=\"'Flows.WorkflowForm.StatusHint' | transloco\"\n errorMsg=\"Flows.WorkflowForm.StatusError\">\n <!-- No [showClear]: Grape restricts status to STATUSES, so a blank 400s. -->\n <p-select inputId=\"flows-workflow-status\"\n styleClass=\"w-100\"\n [options]=\"statusOptions\"\n optionValue=\"value\"\n formControlName=\"status\"\n [attr.aria-labelledby]=\"'flows-workflow-status-label'\"\n appendTo=\"body\">\n </p-select>\n </pw-input-container>\n\n <pw-input-container class=\"col-12\"\n [label]=\"'Flows.WorkflowForm.Description' | transloco\"\n name=\"description\"\n controlId=\"flows-workflow-description\">\n <textarea id=\"flows-workflow-description\"\n class=\"form-control\"\n rows=\"3\"\n [placeholder]=\"'Flows.WorkflowForm.DescriptionPlaceholder' | transloco\"\n [attr.aria-label]=\"'Flows.WorkflowForm.Description' | transloco\"\n formControlName=\"description\"></textarea>\n </pw-input-container>\n </div>\n\n <
|
|
2367
|
+
template: "<div class=\"row\">\n <div class=\"col-12 d-flex justify-content-between align-items-center\">\n <h2 class=\"card-title p-0\">\n {{ (isEdit ? 'Flows.WorkflowForm.EditTitle' : 'Flows.WorkflowForm.CreateTitle') | transloco }}\n </h2>\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\n<pw-loader [isVisible]=\"loading\"></pw-loader>\n\n@if (!loading) {\n@if (notFound) {\n<pw-no-data [withImage]=\"true\" [message]=\"'Flows.WorkflowForm.NotFound' | transloco\"></pw-no-data>\n} @else {\n<form [formGroup]=\"form\"\n (ngSubmit)=\"save()\"\n class=\"mt-3\">\n <h3>{{ 'Flows.WorkflowForm.Section.Details' | transloco }}</h3>\n <div class=\"row\">\n <!-- md-8/md-4 rather than the pattern default so the row fills the page. -->\n <pw-input-container class=\"col-12 col-md-8\"\n [label]=\"'Flows.WorkflowForm.Name' | transloco\"\n name=\"name\"\n controlId=\"flows-workflow-name\"\n [required]=\"true\"\n errorMsg=\"Flows.WorkflowForm.NameError\">\n <input type=\"text\"\n id=\"flows-workflow-name\"\n class=\"form-control\"\n maxlength=\"255\"\n [placeholder]=\"'Flows.WorkflowForm.NamePlaceholder' | transloco\"\n [attr.aria-label]=\"'Flows.WorkflowForm.Name' | transloco\"\n formControlName=\"name\" />\n </pw-input-container>\n\n <pw-input-container class=\"col-12 col-md-4\"\n [label]=\"'Flows.WorkflowForm.Status' | transloco\"\n name=\"status\"\n controlId=\"flows-workflow-status\"\n [required]=\"true\"\n [useAriaLabelledbyOnly]=\"true\"\n [showTooltip]=\"true\"\n [tooltipText]=\"'Flows.WorkflowForm.StatusHint' | transloco\"\n errorMsg=\"Flows.WorkflowForm.StatusError\">\n <!-- No [showClear]: Grape restricts status to STATUSES, so a blank 400s. -->\n <p-select inputId=\"flows-workflow-status\"\n styleClass=\"w-100\"\n [options]=\"statusOptions\"\n optionValue=\"value\"\n formControlName=\"status\"\n [attr.aria-labelledby]=\"'flows-workflow-status-label'\"\n appendTo=\"body\">\n </p-select>\n </pw-input-container>\n\n <pw-input-container class=\"col-12\"\n [label]=\"'Flows.WorkflowForm.Description' | transloco\"\n name=\"description\"\n controlId=\"flows-workflow-description\">\n <textarea id=\"flows-workflow-description\"\n class=\"form-control\"\n rows=\"3\"\n [placeholder]=\"'Flows.WorkflowForm.DescriptionPlaceholder' | transloco\"\n [attr.aria-label]=\"'Flows.WorkflowForm.Description' | transloco\"\n formControlName=\"description\"></textarea>\n </pw-input-container>\n </div>\n\n <pw-sticky-actions>\n <button type=\"button\"\n class=\"btn btn-outline-default me-2\"\n (click)=\"back()\">\n {{ 'Button.Cancel' | transloco }}\n </button>\n <button name=\"submit\"\n type=\"submit\"\n class=\"btn btn-primary\"\n [disabled]=\"saving\">\n {{ 'Button.Submit' | transloco }}\n </button>\n </pw-sticky-actions>\n</form>\n}\n}\n",
|
|
2118
2368
|
styles: [":host ::ng-deep .info-circle{display:inline-block;margin-left:.35em;vertical-align:baseline}:host ::ng-deep .info-circle:after{position:static;font-size:inherit;line-height:inherit}:host form>h3{display:block;border-top:1px solid #e2e5ea;margin-top:2rem;padding-top:1.25rem}:host form>h3:first-child{border-top:0;margin-top:.5rem;padding-top:0}\n"]
|
|
2119
2369
|
}]
|
|
2120
2370
|
}],
|
|
@@ -3679,52 +3929,52 @@ var FlowsCronFieldComponent = class FlowsCronFieldComponent {
|
|
|
3679
3929
|
dependencies: [
|
|
3680
3930
|
{
|
|
3681
3931
|
kind: "directive",
|
|
3682
|
-
type: i3$
|
|
3932
|
+
type: i3$1.NgSelectOption,
|
|
3683
3933
|
selector: "option",
|
|
3684
3934
|
inputs: ["ngValue", "value"]
|
|
3685
3935
|
},
|
|
3686
3936
|
{
|
|
3687
3937
|
kind: "directive",
|
|
3688
|
-
type: i3$
|
|
3938
|
+
type: i3$1.ɵNgSelectMultipleOption,
|
|
3689
3939
|
selector: "option",
|
|
3690
3940
|
inputs: ["ngValue", "value"]
|
|
3691
3941
|
},
|
|
3692
3942
|
{
|
|
3693
3943
|
kind: "directive",
|
|
3694
|
-
type: i3$
|
|
3944
|
+
type: i3$1.DefaultValueAccessor,
|
|
3695
3945
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
3696
3946
|
},
|
|
3697
3947
|
{
|
|
3698
3948
|
kind: "directive",
|
|
3699
|
-
type: i3$
|
|
3949
|
+
type: i3$1.NumberValueAccessor,
|
|
3700
3950
|
selector: "input[type=number]:not([ngNoCva])[formControlName],input[type=number]:not([ngNoCva])[formControl],input[type=number]:not([ngNoCva])[ngModel]"
|
|
3701
3951
|
},
|
|
3702
3952
|
{
|
|
3703
3953
|
kind: "directive",
|
|
3704
|
-
type: i3$
|
|
3954
|
+
type: i3$1.SelectControlValueAccessor,
|
|
3705
3955
|
selector: "select:not([multiple]):not([ngNoCva])[formControlName],select:not([multiple]):not([ngNoCva])[formControl],select:not([multiple]):not([ngNoCva])[ngModel]",
|
|
3706
3956
|
inputs: ["compareWith"]
|
|
3707
3957
|
},
|
|
3708
3958
|
{
|
|
3709
3959
|
kind: "directive",
|
|
3710
|
-
type: i3$
|
|
3960
|
+
type: i3$1.NgControlStatus,
|
|
3711
3961
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
3712
3962
|
},
|
|
3713
3963
|
{
|
|
3714
3964
|
kind: "directive",
|
|
3715
|
-
type: i3$
|
|
3965
|
+
type: i3$1.MinValidator,
|
|
3716
3966
|
selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]",
|
|
3717
3967
|
inputs: ["min"]
|
|
3718
3968
|
},
|
|
3719
3969
|
{
|
|
3720
3970
|
kind: "directive",
|
|
3721
|
-
type: i3$
|
|
3971
|
+
type: i3$1.MaxValidator,
|
|
3722
3972
|
selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]",
|
|
3723
3973
|
inputs: ["max"]
|
|
3724
3974
|
},
|
|
3725
3975
|
{
|
|
3726
3976
|
kind: "directive",
|
|
3727
|
-
type: i3$
|
|
3977
|
+
type: i3$1.NgModel,
|
|
3728
3978
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
3729
3979
|
inputs: [
|
|
3730
3980
|
"name",
|
|
@@ -3819,12 +4069,12 @@ var FlowsTimezoneFieldComponent = class FlowsTimezoneFieldComponent {
|
|
|
3819
4069
|
dependencies: [
|
|
3820
4070
|
{
|
|
3821
4071
|
kind: "directive",
|
|
3822
|
-
type: i3$
|
|
4072
|
+
type: i3$1.NgControlStatus,
|
|
3823
4073
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
3824
4074
|
},
|
|
3825
4075
|
{
|
|
3826
4076
|
kind: "directive",
|
|
3827
|
-
type: i3$
|
|
4077
|
+
type: i3$1.NgModel,
|
|
3828
4078
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
3829
4079
|
inputs: [
|
|
3830
4080
|
"name",
|
|
@@ -3837,7 +4087,7 @@ var FlowsTimezoneFieldComponent = class FlowsTimezoneFieldComponent {
|
|
|
3837
4087
|
},
|
|
3838
4088
|
{
|
|
3839
4089
|
kind: "component",
|
|
3840
|
-
type: i4.Select,
|
|
4090
|
+
type: i4$1.Select,
|
|
3841
4091
|
selector: "p-select",
|
|
3842
4092
|
inputs: [
|
|
3843
4093
|
"id",
|
|
@@ -4024,17 +4274,17 @@ var FlowsJsonFieldComponent = class FlowsJsonFieldComponent {
|
|
|
4024
4274
|
dependencies: [
|
|
4025
4275
|
{
|
|
4026
4276
|
kind: "directive",
|
|
4027
|
-
type: i3$
|
|
4277
|
+
type: i3$1.DefaultValueAccessor,
|
|
4028
4278
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
4029
4279
|
},
|
|
4030
4280
|
{
|
|
4031
4281
|
kind: "directive",
|
|
4032
|
-
type: i3$
|
|
4282
|
+
type: i3$1.NgControlStatus,
|
|
4033
4283
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
4034
4284
|
},
|
|
4035
4285
|
{
|
|
4036
4286
|
kind: "directive",
|
|
4037
|
-
type: i3$
|
|
4287
|
+
type: i3$1.NgModel,
|
|
4038
4288
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
4039
4289
|
inputs: [
|
|
4040
4290
|
"name",
|
|
@@ -4341,29 +4591,29 @@ var FlowsConditionFieldComponent = class FlowsConditionFieldComponent {
|
|
|
4341
4591
|
dependencies: [
|
|
4342
4592
|
{
|
|
4343
4593
|
kind: "directive",
|
|
4344
|
-
type: i3$
|
|
4594
|
+
type: i3$1.NgSelectOption,
|
|
4345
4595
|
selector: "option",
|
|
4346
4596
|
inputs: ["ngValue", "value"]
|
|
4347
4597
|
},
|
|
4348
4598
|
{
|
|
4349
4599
|
kind: "directive",
|
|
4350
|
-
type: i3$
|
|
4600
|
+
type: i3$1.ɵNgSelectMultipleOption,
|
|
4351
4601
|
selector: "option",
|
|
4352
4602
|
inputs: ["ngValue", "value"]
|
|
4353
4603
|
},
|
|
4354
4604
|
{
|
|
4355
4605
|
kind: "directive",
|
|
4356
|
-
type: i3$
|
|
4606
|
+
type: i3$1.DefaultValueAccessor,
|
|
4357
4607
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
4358
4608
|
},
|
|
4359
4609
|
{
|
|
4360
4610
|
kind: "directive",
|
|
4361
|
-
type: i3$
|
|
4611
|
+
type: i3$1.NgControlStatus,
|
|
4362
4612
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
4363
4613
|
},
|
|
4364
4614
|
{
|
|
4365
4615
|
kind: "directive",
|
|
4366
|
-
type: i3$
|
|
4616
|
+
type: i3$1.NgModel,
|
|
4367
4617
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
4368
4618
|
inputs: [
|
|
4369
4619
|
"name",
|
|
@@ -4404,7 +4654,7 @@ var FlowsConditionFieldComponent = class FlowsConditionFieldComponent {
|
|
|
4404
4654
|
},
|
|
4405
4655
|
{
|
|
4406
4656
|
kind: "component",
|
|
4407
|
-
type: i4.Select,
|
|
4657
|
+
type: i4$1.Select,
|
|
4408
4658
|
selector: "p-select",
|
|
4409
4659
|
inputs: [
|
|
4410
4660
|
"id",
|
|
@@ -4622,17 +4872,17 @@ var FlowsPairsFieldComponent = class FlowsPairsFieldComponent {
|
|
|
4622
4872
|
dependencies: [
|
|
4623
4873
|
{
|
|
4624
4874
|
kind: "directive",
|
|
4625
|
-
type: i3$
|
|
4875
|
+
type: i3$1.DefaultValueAccessor,
|
|
4626
4876
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
4627
4877
|
},
|
|
4628
4878
|
{
|
|
4629
4879
|
kind: "directive",
|
|
4630
|
-
type: i3$
|
|
4880
|
+
type: i3$1.NgControlStatus,
|
|
4631
4881
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
4632
4882
|
},
|
|
4633
4883
|
{
|
|
4634
4884
|
kind: "directive",
|
|
4635
|
-
type: i3$
|
|
4885
|
+
type: i3$1.NgModel,
|
|
4636
4886
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
4637
4887
|
inputs: [
|
|
4638
4888
|
"name",
|
|
@@ -4865,12 +5115,12 @@ var FlowsMemberFieldComponent = class FlowsMemberFieldComponent {
|
|
|
4865
5115
|
dependencies: [
|
|
4866
5116
|
{
|
|
4867
5117
|
kind: "directive",
|
|
4868
|
-
type: i3$
|
|
5118
|
+
type: i3$1.NgControlStatus,
|
|
4869
5119
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
4870
5120
|
},
|
|
4871
5121
|
{
|
|
4872
5122
|
kind: "directive",
|
|
4873
|
-
type: i3$
|
|
5123
|
+
type: i3$1.NgModel,
|
|
4874
5124
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
4875
5125
|
inputs: [
|
|
4876
5126
|
"name",
|
|
@@ -5044,34 +5294,34 @@ var FlowsRetryFieldComponent = class FlowsRetryFieldComponent {
|
|
|
5044
5294
|
dependencies: [
|
|
5045
5295
|
{
|
|
5046
5296
|
kind: "directive",
|
|
5047
|
-
type: i3$
|
|
5297
|
+
type: i3$1.DefaultValueAccessor,
|
|
5048
5298
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
5049
5299
|
},
|
|
5050
5300
|
{
|
|
5051
5301
|
kind: "directive",
|
|
5052
|
-
type: i3$
|
|
5302
|
+
type: i3$1.NumberValueAccessor,
|
|
5053
5303
|
selector: "input[type=number]:not([ngNoCva])[formControlName],input[type=number]:not([ngNoCva])[formControl],input[type=number]:not([ngNoCva])[ngModel]"
|
|
5054
5304
|
},
|
|
5055
5305
|
{
|
|
5056
5306
|
kind: "directive",
|
|
5057
|
-
type: i3$
|
|
5307
|
+
type: i3$1.NgControlStatus,
|
|
5058
5308
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
5059
5309
|
},
|
|
5060
5310
|
{
|
|
5061
5311
|
kind: "directive",
|
|
5062
|
-
type: i3$
|
|
5312
|
+
type: i3$1.MinValidator,
|
|
5063
5313
|
selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]",
|
|
5064
5314
|
inputs: ["min"]
|
|
5065
5315
|
},
|
|
5066
5316
|
{
|
|
5067
5317
|
kind: "directive",
|
|
5068
|
-
type: i3$
|
|
5318
|
+
type: i3$1.MaxValidator,
|
|
5069
5319
|
selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]",
|
|
5070
5320
|
inputs: ["max"]
|
|
5071
5321
|
},
|
|
5072
5322
|
{
|
|
5073
5323
|
kind: "directive",
|
|
5074
|
-
type: i3$
|
|
5324
|
+
type: i3$1.NgModel,
|
|
5075
5325
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
5076
5326
|
inputs: [
|
|
5077
5327
|
"name",
|
|
@@ -5595,17 +5845,17 @@ var FlowsNodeInspectorComponent = class FlowsNodeInspectorComponent {
|
|
|
5595
5845
|
dependencies: [
|
|
5596
5846
|
{
|
|
5597
5847
|
kind: "directive",
|
|
5598
|
-
type: i3$
|
|
5848
|
+
type: i3$1.DefaultValueAccessor,
|
|
5599
5849
|
selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]"
|
|
5600
5850
|
},
|
|
5601
5851
|
{
|
|
5602
5852
|
kind: "directive",
|
|
5603
|
-
type: i3$
|
|
5853
|
+
type: i3$1.NgControlStatus,
|
|
5604
5854
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
5605
5855
|
},
|
|
5606
5856
|
{
|
|
5607
5857
|
kind: "directive",
|
|
5608
|
-
type: i3$
|
|
5858
|
+
type: i3$1.NgModel,
|
|
5609
5859
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
5610
5860
|
inputs: [
|
|
5611
5861
|
"name",
|
|
@@ -5646,7 +5896,7 @@ var FlowsNodeInspectorComponent = class FlowsNodeInspectorComponent {
|
|
|
5646
5896
|
},
|
|
5647
5897
|
{
|
|
5648
5898
|
kind: "component",
|
|
5649
|
-
type: i4.Select,
|
|
5899
|
+
type: i4$1.Select,
|
|
5650
5900
|
selector: "p-select",
|
|
5651
5901
|
inputs: [
|
|
5652
5902
|
"id",
|
|
@@ -6050,7 +6300,7 @@ var FlowsVersionEditorComponent = class FlowsVersionEditorComponent {
|
|
|
6050
6300
|
dependencies: [
|
|
6051
6301
|
{
|
|
6052
6302
|
kind: "component",
|
|
6053
|
-
type: i4$
|
|
6303
|
+
type: i4$2.AppLoaderComponent,
|
|
6054
6304
|
selector: "pw-loader",
|
|
6055
6305
|
inputs: [
|
|
6056
6306
|
"isVisible",
|
|
@@ -6382,7 +6632,7 @@ var FlowsWorkflowVersionsComponent = class FlowsWorkflowVersionsComponent extend
|
|
|
6382
6632
|
dependencies: [
|
|
6383
6633
|
{
|
|
6384
6634
|
kind: "component",
|
|
6385
|
-
type: i4$
|
|
6635
|
+
type: i4$2.SkeletonTableComponent,
|
|
6386
6636
|
selector: "pw-skeleton-table",
|
|
6387
6637
|
inputs: [
|
|
6388
6638
|
"rows",
|
|
@@ -6618,7 +6868,7 @@ var FlowsWorkflowVersionsComponent = class FlowsWorkflowVersionsComponent extend
|
|
|
6618
6868
|
},
|
|
6619
6869
|
{
|
|
6620
6870
|
kind: "pipe",
|
|
6621
|
-
type:
|
|
6871
|
+
type: i14.DateFormatPipe,
|
|
6622
6872
|
name: "dateFormat"
|
|
6623
6873
|
},
|
|
6624
6874
|
{
|
|
@@ -6790,12 +7040,12 @@ var FlowsWorkflowsComponent = class FlowsWorkflowsComponent extends AppBaseCompo
|
|
|
6790
7040
|
dependencies: [
|
|
6791
7041
|
{
|
|
6792
7042
|
kind: "directive",
|
|
6793
|
-
type: i3$
|
|
7043
|
+
type: i3$1.NgControlStatus,
|
|
6794
7044
|
selector: "[formControlName],[ngModel],[formControl]"
|
|
6795
7045
|
},
|
|
6796
7046
|
{
|
|
6797
7047
|
kind: "directive",
|
|
6798
|
-
type: i3$
|
|
7048
|
+
type: i3$1.NgModel,
|
|
6799
7049
|
selector: "[ngModel]:not([formControlName]):not([formControl])",
|
|
6800
7050
|
inputs: [
|
|
6801
7051
|
"name",
|
|
@@ -6808,7 +7058,7 @@ var FlowsWorkflowsComponent = class FlowsWorkflowsComponent extends AppBaseCompo
|
|
|
6808
7058
|
},
|
|
6809
7059
|
{
|
|
6810
7060
|
kind: "component",
|
|
6811
|
-
type: i4$
|
|
7061
|
+
type: i4$2.SkeletonTableComponent,
|
|
6812
7062
|
selector: "pw-skeleton-table",
|
|
6813
7063
|
inputs: [
|
|
6814
7064
|
"rows",
|
|
@@ -6962,7 +7212,7 @@ var FlowsWorkflowsComponent = class FlowsWorkflowsComponent extends AppBaseCompo
|
|
|
6962
7212
|
},
|
|
6963
7213
|
{
|
|
6964
7214
|
kind: "component",
|
|
6965
|
-
type: i4.Select,
|
|
7215
|
+
type: i4$1.Select,
|
|
6966
7216
|
selector: "p-select",
|
|
6967
7217
|
inputs: [
|
|
6968
7218
|
"id",
|
|
@@ -7135,7 +7385,7 @@ var FlowsWorkflowsComponent = class FlowsWorkflowsComponent extends AppBaseCompo
|
|
|
7135
7385
|
},
|
|
7136
7386
|
{
|
|
7137
7387
|
kind: "pipe",
|
|
7138
|
-
type:
|
|
7388
|
+
type: i14.DateFormatPipe,
|
|
7139
7389
|
name: "dateFormat"
|
|
7140
7390
|
}
|
|
7141
7391
|
]
|
|
@@ -7279,6 +7529,7 @@ var FlowsPrivateModule = class FlowsPrivateModule {
|
|
|
7279
7529
|
FlowsRunInspectorComponent,
|
|
7280
7530
|
FlowsRunProgressComponent,
|
|
7281
7531
|
FlowsStepErrorComponent,
|
|
7532
|
+
FlowsRunErrorComponent,
|
|
7282
7533
|
FlowsGraphCanvasComponent,
|
|
7283
7534
|
FlowsCanvasNodeComponent,
|
|
7284
7535
|
FlowsCanvasSocketComponent,
|
|
@@ -7296,6 +7547,7 @@ var FlowsPrivateModule = class FlowsPrivateModule {
|
|
|
7296
7547
|
FlowWorkflowBadgePipe
|
|
7297
7548
|
],
|
|
7298
7549
|
imports: [
|
|
7550
|
+
PwStickyActionsComponent,
|
|
7299
7551
|
CommonModule,
|
|
7300
7552
|
FormsModule,
|
|
7301
7553
|
ReactiveFormsModule,
|
|
@@ -7329,6 +7581,7 @@ var FlowsPrivateModule = class FlowsPrivateModule {
|
|
|
7329
7581
|
}
|
|
7330
7582
|
}],
|
|
7331
7583
|
imports: [
|
|
7584
|
+
PwStickyActionsComponent,
|
|
7332
7585
|
CommonModule,
|
|
7333
7586
|
FormsModule,
|
|
7334
7587
|
ReactiveFormsModule,
|
|
@@ -7357,6 +7610,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7357
7610
|
type: NgModule,
|
|
7358
7611
|
args: [{
|
|
7359
7612
|
imports: [
|
|
7613
|
+
PwStickyActionsComponent,
|
|
7360
7614
|
CommonModule,
|
|
7361
7615
|
FormsModule,
|
|
7362
7616
|
ReactiveFormsModule,
|
|
@@ -7395,6 +7649,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7395
7649
|
FlowsRunInspectorComponent,
|
|
7396
7650
|
FlowsRunProgressComponent,
|
|
7397
7651
|
FlowsStepErrorComponent,
|
|
7652
|
+
FlowsRunErrorComponent,
|
|
7398
7653
|
FlowsGraphCanvasComponent,
|
|
7399
7654
|
FlowsCanvasNodeComponent,
|
|
7400
7655
|
FlowsCanvasSocketComponent,
|