@posiwise/flows 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/flows",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.0",
6
6
  "@angular/core": "^22.2.0",
@@ -3,9 +3,9 @@ import { AfterViewChecked, AfterViewInit, ChangeDetectorRef, DestroyRef, Element
3
3
  import * as i1 from "@angular/router";
4
4
  import { LazyLoadEvent, MenuItem } from "primeng/api";
5
5
  import { AppBaseComponent } from "@posiwise/app-base-component";
6
- import * as i31 from "@posiwise/shared-components";
6
+ import * as i33 from "@posiwise/shared-components";
7
7
  import { ConfirmDialogService } from "@posiwise/shared-components";
8
- import * as i27 from "@angular/forms";
8
+ import * as i29 from "@angular/forms";
9
9
  import { UntypedFormGroup } from "@angular/forms";
10
10
  import { Paging } from "@posiwise/common-utilities";
11
11
  import { ProductsHttpService } from "@posiwise/shared-product-services";
@@ -14,17 +14,18 @@ import { PermissionService, SubscriptionService } from "@posiwise/common-service
14
14
  import { TranslocoService } from "@jsverse/transloco";
15
15
  import { ClassicPreset, GetSchemes } from "rete";
16
16
  import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
17
- import * as i26 from "@angular/common";
18
- import * as i28 from "@posiwise/core-guards";
19
- import * as i29 from "@posiwise/core-transloco";
20
- import * as i30 from "@posiwise/app-loader";
21
- import * as i32 from "@posiwise/pipes";
22
- import * as i33 from "@fortawesome/angular-fontawesome";
23
- import * as i34 from "primeng/iconfield";
24
- import * as i35 from "primeng/inputicon";
25
- import * as i36 from "primeng/autocomplete";
26
- import * as i37 from "primeng/inputtext";
27
- import * as i38 from "rete-angular-plugin/22";
17
+ import * as i28 from "@angular/common";
18
+ import * as i30 from "@posiwise/core-guards";
19
+ import * as i31 from "@posiwise/core-transloco";
20
+ import * as i32 from "@posiwise/app-loader";
21
+ import * as i34 from "@posiwise/directives";
22
+ import * as i35 from "@posiwise/pipes";
23
+ import * as i36 from "@fortawesome/angular-fontawesome";
24
+ import * as i37 from "primeng/iconfield";
25
+ import * as i38 from "primeng/inputicon";
26
+ import * as i39 from "primeng/autocomplete";
27
+ import * as i40 from "primeng/inputtext";
28
+ import * as i41 from "rete-angular-plugin/22";
28
29
  declare namespace flows_private_routing_module_d_exports {
29
30
  export { FlowsPrivateRoutingModule };
30
31
  }
@@ -227,6 +228,7 @@ declare class FlowsWorkflowFormComponent extends AppBaseComponent implements OnI
227
228
  save(): void;
228
229
  /** Relative to the parent, since create and edit sit at different depths. */
229
230
  back(): void;
231
+ private leave;
230
232
  private loadStatusOptions;
231
233
  private loadWorkflow;
232
234
  private settle;
@@ -254,12 +256,13 @@ declare class FlowsWorkflowVersionsComponent extends AppBaseComponent implements
254
256
  private readonly workflowService;
255
257
  private readonly cdr;
256
258
  private readonly destroy$;
259
+ private readonly status?;
257
260
  subscriptionId: number;
258
261
  workflowId: number;
259
262
  loading: boolean;
260
263
  publishing: boolean;
261
264
  notFound: boolean;
262
- workflowName: string;
265
+ workflow: FlowWorkflow | null;
263
266
  versions: FlowVersion[];
264
267
  /** Shown against versions.length so the 500-row cap stays visible. */
265
268
  totalRecords: number;
@@ -293,7 +296,6 @@ declare class FlowsWorkflowVersionsComponent extends AppBaseComponent implements
293
296
  openEditor(version?: FlowVersion | null, duplicateOf?: FlowVersion | null): void;
294
297
  /** Opens an unsaved new version holding a copy of this one's graph. */
295
298
  duplicate(version: FlowVersion): void;
296
- closeEditor(): void;
297
299
  onVersionSaved(): void;
298
300
  /** Checked first: a version that would be refused opens with its problems listed instead. */
299
301
  publish(version: FlowVersion): void;
@@ -1668,8 +1670,88 @@ declare class FlowsAvailableFieldsComponent {
1668
1670
  };
1669
1671
  }, {}, never, never, false, never>;
1670
1672
  }
1673
+ declare namespace flows_unknown_fields_component_d_exports {
1674
+ export { FlowsUnknownFieldsComponent };
1675
+ }
1676
+ /** A warning, never a block: a field can come from a step whose output is not known yet. */
1677
+ declare class FlowsUnknownFieldsComponent implements OnChanges {
1678
+ value: unknown;
1679
+ /** The fields known to reach the node. */
1680
+ known: string[];
1681
+ readonly icons: {
1682
+ readonly inspect: import("@fortawesome/fontawesome-common-types").IconDefinition;
1683
+ readonly back: import("@fortawesome/fontawesome-common-types").IconDefinition;
1684
+ readonly error: import("@fortawesome/fontawesome-common-types").IconDefinition;
1685
+ readonly create: import("@fortawesome/fontawesome-common-types").IconDefinition;
1686
+ readonly edit: import("@fortawesome/fontawesome-common-types").IconDefinition;
1687
+ readonly delete: import("@fortawesome/fontawesome-common-types").IconDefinition;
1688
+ readonly versions: import("@fortawesome/fontawesome-common-types").IconDefinition;
1689
+ readonly search: import("@fortawesome/fontawesome-common-types").IconDefinition;
1690
+ readonly publish: import("@fortawesome/fontawesome-common-types").IconDefinition;
1691
+ readonly duplicate: import("@fortawesome/fontawesome-common-types").IconDefinition;
1692
+ readonly fit: import("@fortawesome/fontawesome-common-types").IconDefinition;
1693
+ readonly diagram: import("@fortawesome/fontawesome-common-types").IconDefinition;
1694
+ readonly json: import("@fortawesome/fontawesome-common-types").IconDefinition;
1695
+ readonly warning: import("@fortawesome/fontawesome-common-types").IconDefinition;
1696
+ readonly collapsed: import("@fortawesome/fontawesome-common-types").IconDefinition;
1697
+ readonly expanded: import("@fortawesome/fontawesome-common-types").IconDefinition;
1698
+ };
1699
+ unknown: string;
1700
+ ngOnChanges(): void;
1701
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowsUnknownFieldsComponent, never>;
1702
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlowsUnknownFieldsComponent, "pw-flows-unknown-fields", never, {
1703
+ "value": {
1704
+ "alias": "value";
1705
+ "required": false;
1706
+ };
1707
+ "known": {
1708
+ "alias": "known";
1709
+ "required": false;
1710
+ };
1711
+ }, {}, never, never, false, never>;
1712
+ }
1713
+ declare namespace flows_workflow_status_component_d_exports {
1714
+ export { FlowsWorkflowStatusComponent };
1715
+ }
1716
+ /** Whether the workflow runs. Only an active workflow starts runs from its trigger. */
1717
+ declare class FlowsWorkflowStatusComponent {
1718
+ private readonly workflowService;
1719
+ private readonly confirmDialog;
1720
+ private readonly cdr;
1721
+ workflow: FlowWorkflow;
1722
+ subscriptionId: number;
1723
+ /** With nothing published, an active workflow would have nothing to run. */
1724
+ hasPublished: boolean;
1725
+ readonly workflowChange: EventEmitter<FlowWorkflow>;
1726
+ readonly badgeClass: typeof flowWorkflowBadgeClass;
1727
+ saving: boolean;
1728
+ constructor(workflowService: FlowsWorkflowService, confirmDialog: ConfirmDialogService, cdr: ChangeDetectorRef);
1729
+ get isOn(): boolean;
1730
+ toggle(): void;
1731
+ /** Asked right after a publish, so a new workflow goes live in one more click. */
1732
+ offerTurnOn(versionNumber: number): void;
1733
+ private confirm;
1734
+ private save;
1735
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlowsWorkflowStatusComponent, never>;
1736
+ static ɵcmp: i0.ɵɵComponentDeclaration<FlowsWorkflowStatusComponent, "pw-flows-workflow-status", never, {
1737
+ "workflow": {
1738
+ "alias": "workflow";
1739
+ "required": false;
1740
+ };
1741
+ "subscriptionId": {
1742
+ "alias": "subscriptionId";
1743
+ "required": false;
1744
+ };
1745
+ "hasPublished": {
1746
+ "alias": "hasPublished";
1747
+ "required": false;
1748
+ };
1749
+ }, {
1750
+ "workflowChange": "workflowChange";
1751
+ }, never, never, false, never>;
1752
+ }
1671
1753
  export declare class FlowsPrivateModule {
1672
1754
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowsPrivateModule, never>;
1673
- static ɵmod: i0.ɵɵNgModuleDeclaration<FlowsPrivateModule, [typeof FlowsTabsComponent, typeof FlowsWorkflowsComponent, typeof FlowsWorkflowFormComponent, typeof FlowsWorkflowVersionsComponent, typeof FlowsVersionEditorComponent, typeof FlowsGraphCheckComponent, typeof FlowsRunsComponent, typeof FlowsRunsFiltersComponent, typeof FlowsCronFieldComponent, typeof FlowsTimezoneFieldComponent, typeof FlowsRunInspectorComponent, typeof FlowsRunProgressComponent, typeof FlowsStepErrorComponent, typeof FlowsGraphCanvasComponent, typeof FlowsCanvasNodeComponent, typeof FlowsCanvasSocketComponent, typeof FlowsCanvasConnectionComponent, typeof FlowsNodePaletteComponent, typeof FlowsNodeInspectorComponent, typeof FlowsJsonFieldComponent, typeof FlowsConditionFieldComponent, typeof FlowsPairsFieldComponent, typeof FlowsMemberFieldComponent, typeof FlowsRetryFieldComponent, typeof FlowsAvailableFieldsComponent], [typeof i26.CommonModule, typeof i27.FormsModule, typeof i27.ReactiveFormsModule, typeof i28.TrackDirtyFormDirective, typeof i29.CoreTranslocoModule, typeof i30.AppLoaderModule, typeof i31.SharedComponentsModule, typeof i32.PipesModule, typeof i33.FontAwesomeModule, typeof i34.IconFieldModule, typeof i35.InputIconModule, typeof i36.AutoCompleteModule, typeof i37.InputTextModule, typeof i38.ReteModule, typeof FlowsPrivateRoutingModule], never>;
1755
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowsPrivateModule, [typeof FlowsTabsComponent, typeof FlowsWorkflowsComponent, typeof FlowsWorkflowFormComponent, typeof FlowsWorkflowVersionsComponent, typeof FlowsVersionEditorComponent, typeof FlowsGraphCheckComponent, typeof FlowsRunsComponent, typeof FlowsRunsFiltersComponent, typeof FlowsCronFieldComponent, typeof FlowsTimezoneFieldComponent, typeof FlowsRunInspectorComponent, typeof FlowsRunProgressComponent, typeof FlowsStepErrorComponent, typeof FlowsGraphCanvasComponent, typeof FlowsCanvasNodeComponent, typeof FlowsCanvasSocketComponent, typeof FlowsCanvasConnectionComponent, typeof FlowsNodePaletteComponent, typeof FlowsNodeInspectorComponent, typeof FlowsJsonFieldComponent, typeof FlowsConditionFieldComponent, typeof FlowsPairsFieldComponent, typeof FlowsMemberFieldComponent, typeof FlowsRetryFieldComponent, typeof FlowsAvailableFieldsComponent, typeof FlowsUnknownFieldsComponent, typeof FlowsWorkflowStatusComponent], [typeof i28.CommonModule, typeof i29.FormsModule, typeof i29.ReactiveFormsModule, typeof i30.TrackDirtyFormDirective, typeof i31.CoreTranslocoModule, typeof i32.AppLoaderModule, typeof i33.SharedComponentsModule, typeof i34.DirectivesModule, typeof i35.PipesModule, typeof i36.FontAwesomeModule, typeof i37.IconFieldModule, typeof i38.InputIconModule, typeof i39.AutoCompleteModule, typeof i40.InputTextModule, typeof i41.ReteModule, typeof FlowsPrivateRoutingModule], never>;
1674
1756
  static ɵinj: i0.ɵɵInjectorDeclaration<FlowsPrivateModule>;
1675
1757
  }