@masterteam/workflow 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  /*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-slate-50:oklch(98.4% .003 247.858);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-900:oklch(20.8% .042 265.755);--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-semibold:600;--radius-xl:.75rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.static{position:static}.end-4{inset-inline-end:calc(var(--spacing)*4)}.top-4{top:calc(var(--spacing)*4)}.left-4{left:calc(var(--spacing)*4)}.z-10{z-index:10}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.flex{display:flex}.table{display:table}.h-full{height:100%}.\!w-\[25rem\]{width:25rem!important}.w-80{width:calc(var(--spacing)*80)}.w-full{width:100%}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-6{gap:calc(var(--spacing)*6)}.gap-10{gap:calc(var(--spacing)*10)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.rounded-t-xl{border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.rounded-b-xl{border-bottom-right-radius:var(--radius-xl);border-bottom-left-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-slate-200{border-color:var(--color-slate-200)}.bg-slate-50{background-color:var(--color-slate-50)}.p-4{padding:calc(var(--spacing)*4)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-3{padding-top:calc(var(--spacing)*3)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-slate-700{color:var(--color-slate-700)}.text-slate-900{color:var(--color-slate-900)}.\!shadow-none{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}}@keyframes enter{0%{opacity:var(--p-enter-opacity,1);transform:translate3d(var(--p-enter-translate-x,0),var(--p-enter-translate-y,0),0)scale3d(var(--p-enter-scale,1),var(--p-enter-scale,1),var(--p-enter-scale,1))rotate(var(--p-enter-rotate,0))}}@keyframes leave{to{opacity:var(--p-leave-opacity,1);transform:translate3d(var(--p-leave-translate-x,0),var(--p-leave-translate-y,0),0)scale3d(var(--p-leave-scale,1),var(--p-leave-scale,1),var(--p-leave-scale,1))rotate(var(--p-leave-rotate,0))}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-slate-50:oklch(98.4% .003 247.858);--color-slate-200:oklch(92.9% .013 255.508);--color-slate-700:oklch(37.2% .044 257.287);--color-slate-900:oklch(20.8% .042 265.755);--spacing:.25rem;--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-semibold:600;--radius-xl:.75rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.static{position:static}.end-4{inset-inline-end:calc(var(--spacing)*4)}.top-4{top:calc(var(--spacing)*4)}.left-4{left:calc(var(--spacing)*4)}.z-10{z-index:10}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-4{margin-top:calc(var(--spacing)*4)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.flex{display:flex}.table{display:table}.h-full{height:100%}.\!w-\[25rem\]{width:25rem!important}.w-80{width:calc(var(--spacing)*80)}.w-full{width:100%}.flex-1{flex:1}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-2{gap:calc(var(--spacing)*2)}.gap-6{gap:calc(var(--spacing)*6)}.gap-10{gap:calc(var(--spacing)*10)}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}.rounded-t-xl{border-top-left-radius:var(--radius-xl);border-top-right-radius:var(--radius-xl)}.rounded-b-xl{border-bottom-right-radius:var(--radius-xl);border-bottom-left-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-slate-200{border-color:var(--color-slate-200)}.bg-slate-50{background-color:var(--color-slate-50)}.p-4{padding:calc(var(--spacing)*4)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-3{padding-block:calc(var(--spacing)*3)}.pt-3{padding-top:calc(var(--spacing)*3)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.text-slate-700{color:var(--color-slate-700)}.text-slate-900{color:var(--color-slate-900)}.\!shadow-none{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}}@keyframes enter{0%{opacity:var(--p-enter-opacity,1);transform:translate3d(var(--p-enter-translate-x,0),var(--p-enter-translate-y,0),0)scale3d(var(--p-enter-scale,1),var(--p-enter-scale,1),var(--p-enter-scale,1))rotate(var(--p-enter-rotate,0))}}@keyframes leave{to{opacity:var(--p-leave-opacity,1);transform:translate3d(var(--p-leave-translate-x,0),var(--p-leave-translate-y,0),0)scale3d(var(--p-leave-scale,1),var(--p-leave-scale,1),var(--p-leave-scale,1))rotate(var(--p-leave-rotate,0))}}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
@@ -739,8 +739,8 @@ let WorkflowState = class WorkflowState {
739
739
  return of(null);
740
740
  }), finalize(() => endLoading(ctx, 'deleteConnection')));
741
741
  }
742
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: WorkflowState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
743
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: WorkflowState });
742
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: WorkflowState, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
743
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: WorkflowState });
744
744
  };
745
745
  __decorate([
746
746
  Action(SetModuleInfo)
@@ -835,7 +835,7 @@ WorkflowState = __decorate([
835
835
  defaults: DEFAULT_STATE,
836
836
  })
837
837
  ], WorkflowState);
838
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: WorkflowState, decorators: [{
838
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: WorkflowState, decorators: [{
839
839
  type: Injectable
840
840
  }], propDecorators: { setModuleInfo: [], getWorkflows: [], getWorkflow: [], getFormulaProperties: [], getGroups: [], getRolesForModule: [], getStep: [], validateFlow: [], createStep: [], updateStep: [], createConnection: [], updateConnection: [], publishWorkflow: [], deleteStep: [], deleteConnection: [] } });
841
841
 
@@ -909,10 +909,10 @@ class WorkflowFacade {
909
909
  deleteConnection(connectionId) {
910
910
  return this.store.dispatch(new DeleteConnection(connectionId));
911
911
  }
912
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: WorkflowFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
913
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: WorkflowFacade, providedIn: 'root' });
912
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: WorkflowFacade, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
913
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: WorkflowFacade, providedIn: 'root' });
914
914
  }
915
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: WorkflowFacade, decorators: [{
915
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: WorkflowFacade, decorators: [{
916
916
  type: Injectable,
917
917
  args: [{
918
918
  providedIn: 'root',
@@ -932,18 +932,18 @@ class WorkflowBuilder {
932
932
  loadingStep = this.workflowFacade.isLoading('getStep');
933
933
  isFlowValid = this.workflowFacade.isFlowValid;
934
934
  selectedStep = this.workflowFacade.selectedStep;
935
- selectedWorkflowId = computed(() => this.workflow()?.id, ...(ngDevMode ? [{ debugName: "selectedWorkflowId" }] : []));
935
+ selectedWorkflowId = computed(() => this.workflow()?.id, { ...(ngDevMode ? { debugName: "selectedWorkflowId" } : {}) });
936
936
  confirmationService = inject(ConfirmationService);
937
- selectedTab = signal('tab1', ...(ngDevMode ? [{ debugName: "selectedTab" }] : []));
937
+ selectedTab = signal('tab1', { ...(ngDevMode ? { debugName: "selectedTab" } : {}) });
938
938
  nodeFields = signal({
939
939
  name: 'title',
940
- }, ...(ngDevMode ? [{ debugName: "nodeFields" }] : []));
940
+ }, { ...(ngDevMode ? { debugName: "nodeFields" } : {}) });
941
941
  nodeFormControl = new FormControl();
942
- isPublished = signal(false, ...(ngDevMode ? [{ debugName: "isPublished" }] : []));
943
- isPublishDisabled = computed(() => !this.isFlowValid(), ...(ngDevMode ? [{ debugName: "isPublishDisabled" }] : []));
944
- isEditingInitialNode = signal(false, ...(ngDevMode ? [{ debugName: "isEditingInitialNode" }] : []));
942
+ isPublished = signal(false, { ...(ngDevMode ? { debugName: "isPublished" } : {}) });
943
+ isPublishDisabled = computed(() => !this.isFlowValid(), { ...(ngDevMode ? { debugName: "isPublishDisabled" } : {}) });
944
+ isEditingInitialNode = signal(false, { ...(ngDevMode ? { debugName: "isEditingInitialNode" } : {}) });
945
945
  // Properties table data - writable signal that can be updated when loading step details
946
- _propertiesTableData = signal([], ...(ngDevMode ? [{ debugName: "_propertiesTableData" }] : []));
946
+ _propertiesTableData = signal([], { ...(ngDevMode ? { debugName: "_propertiesTableData" } : {}) });
947
947
  // Computed that initializes from workflow properties
948
948
  propertiesTableData = computed(() => {
949
949
  const currentData = this._propertiesTableData();
@@ -958,7 +958,7 @@ class WorkflowBuilder {
958
958
  isEditable: false,
959
959
  _original: prop, // Keep original for reference
960
960
  }));
961
- }, ...(ngDevMode ? [{ debugName: "propertiesTableData" }] : []));
961
+ }, { ...(ngDevMode ? { debugName: "propertiesTableData" } : {}) });
962
962
  // Table columns configuration
963
963
  propertiesColumns = signal([
964
964
  {
@@ -976,7 +976,7 @@ class WorkflowBuilder {
976
976
  label: this.transloco.translate('workflow.builder.columnEditable'),
977
977
  type: 'boolean',
978
978
  },
979
- ], ...(ngDevMode ? [{ debugName: "propertiesColumns" }] : []));
979
+ ], { ...(ngDevMode ? { debugName: "propertiesColumns" } : {}) });
980
980
  tabsList = [
981
981
  {
982
982
  label: this.transloco.translate('workflow.builder.tabSettings'),
@@ -1077,7 +1077,7 @@ class WorkflowBuilder {
1077
1077
  relations: [{ key: 'targetType', value: '2', action: 'show' }],
1078
1078
  },
1079
1079
  ],
1080
- }), ...(ngDevMode ? [{ debugName: "approverSection" }] : []));
1080
+ }), { ...(ngDevMode ? { debugName: "approverSection" } : {}) });
1081
1081
  slaSection = {
1082
1082
  key: 'slaSection',
1083
1083
  type: 'none',
@@ -1106,7 +1106,7 @@ class WorkflowBuilder {
1106
1106
  sections,
1107
1107
  layout: {},
1108
1108
  };
1109
- });
1109
+ }, { ...(ngDevMode ? { debugName: "nodeForm" } : {}) });
1110
1110
  // Computed signal for form state info - useful for debugging or UI indicators
1111
1111
  formStateInfo = computed(() => ({
1112
1112
  isInitialNode: this.isEditingInitialNode(),
@@ -1114,7 +1114,7 @@ class WorkflowBuilder {
1114
1114
  hasApproverSection: !this.isEditingInitialNode(),
1115
1115
  hasSlaSection: !this.isEditingInitialNode(),
1116
1116
  formMode: this.isEditingInitialNode() ? 'initial-node' : 'standard-node',
1117
- }), ...(ngDevMode ? [{ debugName: "formStateInfo" }] : []));
1117
+ }), { ...(ngDevMode ? { debugName: "formStateInfo" } : {}) });
1118
1118
  // Sample connection form configuration
1119
1119
  connectionForm = signal({
1120
1120
  sections: [
@@ -1132,14 +1132,14 @@ class WorkflowBuilder {
1132
1132
  ],
1133
1133
  },
1134
1134
  ],
1135
- }, ...(ngDevMode ? [{ debugName: "connectionForm" }] : []));
1135
+ }, { ...(ngDevMode ? { debugName: "connectionForm" } : {}) });
1136
1136
  // Nodes currently in the flow (with positions) - linked to store via selectors
1137
1137
  steps = computed(() => {
1138
1138
  return this.workflowFacade.steps().map((step) => ({
1139
1139
  ...step,
1140
1140
  color: '#000000',
1141
1141
  }));
1142
- }, ...(ngDevMode ? [{ debugName: "steps" }] : []));
1142
+ }, { ...(ngDevMode ? { debugName: "steps" } : {}) });
1143
1143
  // Connections between nodes (matching your design) - linked to store via selectors
1144
1144
  connections = computed(() => {
1145
1145
  return this.workflowFacade.connections().map((connection) => ({
@@ -1147,7 +1147,7 @@ class WorkflowBuilder {
1147
1147
  from: connection.source,
1148
1148
  to: connection.target,
1149
1149
  }));
1150
- }, ...(ngDevMode ? [{ debugName: "connections" }] : []));
1150
+ }, { ...(ngDevMode ? { debugName: "connections" } : {}) });
1151
1151
  // Node Actions
1152
1152
  nodeActions = signal([
1153
1153
  {
@@ -1166,7 +1166,7 @@ class WorkflowBuilder {
1166
1166
  tooltip: 'Delete',
1167
1167
  condition: (node) => !node.isInitial,
1168
1168
  },
1169
- ], ...(ngDevMode ? [{ debugName: "nodeActions" }] : []));
1169
+ ], { ...(ngDevMode ? { debugName: "nodeActions" } : {}) });
1170
1170
  constructor() {
1171
1171
  // Effect to initialize isPublished from workflow.isPublished
1172
1172
  effect(() => {
@@ -1426,10 +1426,10 @@ class WorkflowBuilder {
1426
1426
  console.warn('Unknown structure action:', event.action);
1427
1427
  }
1428
1428
  }
1429
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: WorkflowBuilder, deps: [], target: i0.ɵɵFactoryTarget.Component });
1430
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.3", type: WorkflowBuilder, isStandalone: true, selector: "mt-workflow-builder", ngImport: i0, template: "<div class=\"h-full relative\" id=\"workflow-builder-card\">\n @if (!loading()) {\n <mt-structure-builder\n class=\"flex-1\"\n [availableNodes]=\"availableNodes\"\n [connectionForm]=\"connectionForm()\"\n [nodeActions]=\"nodeActions()\"\n (nodeActionsEvent)=\"onNodeActionsEvent($event)\"\n [nodes]=\"steps()\"\n [connections]=\"connections()\"\n (action)=\"onStructureAction($event)\"\n [addModalType]=\"'drawer'\"\n [addModalStyleClass]=\"'!w-[25rem] !absolute !shadow-none'\"\n [updateModalStyleClass]=\"'!w-[25rem] !absolute !shadow-none'\"\n [addModalHeader]=\"'workflow.builder.addStep' | transloco\"\n [updateModalHeader]=\"'workflow.builder.editStep' | transloco\"\n [appendTo]=\"'workflow-builder-card'\"\n [nodeFields]=\"nodeFields()\"\n >\n <div flowContent>\n <!-- <div class=\"absolute top-4 left-4 z-10\">\n @if (workflows().length > 1) {\n <div class=\"flex flex-col gap-2 w-80\">\n <mt-card>\n <mt-select-field\n [options]=\"workflows()\"\n [ngModel]=\"selectedWorkflowId()\"\n (ngModelChange)=\"onWorkflowChange($event)\"\n optionLabel=\"displayName\"\n optionValue=\"id\"\n placeholder=\"Select Workflow\"\n />\n </mt-card>\n </div>\n }\n </div> -->\n <div class=\"absolute top-4 end-4 z-10\">\n <div class=\"flex flex-col gap-2 w-80\">\n <mt-card>\n <div class=\"flex items-center gap-10\">\n <div class=\"flex items-center gap-2\">\n <mt-button [severity]=\"'secondary'\" icon=\"dev.dataflow-01\" />\n <label>{{\n \"workflow.builder.enableWorkflow\" | transloco\n }}</label>\n </div>\n\n <mt-toggle-field\n [ngModel]=\"isPublished()\"\n (ngModelChange)=\"onPublishToggle($event)\"\n [disabled]=\"isPublishDisabled()\"\n ></mt-toggle-field>\n </div>\n </mt-card>\n </div>\n </div>\n </div>\n\n <ng-template\n #nodeDialog\n let-close=\"close\"\n let-save=\"save\"\n let-node=\"node\"\n >\n <div class=\"p-4\">\n @if (loadingStep()) {\n <!-- Loading skeleton -->\n <div class=\"space-y-4\">\n <!-- Tabs skeleton -->\n <div class=\"flex gap-2 mb-4\">\n <p-skeleton\n width=\"6rem\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n <p-skeleton\n width=\"8rem\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n\n <!-- Form fields skeleton -->\n <div class=\"space-y-4\">\n <div>\n <p-skeleton\n width=\"8rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"8rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"10rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"3rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"6rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"4rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n </div>\n </div>\n } @else {\n <!-- Actual content -->\n <mt-tabs\n [(active)]=\"selectedTab\"\n [options]=\"tabsList\"\n fluid\n size=\"large\"\n ></mt-tabs>\n @switch (selectedTab()) {\n @case (\"tab1\") {\n <div class=\"mt-4\">\n <mt-dynamic-form\n [formConfig]=\"nodeForm()\"\n [formControl]=\"nodeFormControl\"\n ></mt-dynamic-form>\n </div>\n }\n @case (\"tab2\") {\n <div class=\"mt-4\">\n <mt-table\n [data]=\"propertiesTableData()\"\n [columns]=\"propertiesColumns()\"\n [selectableRows]=\"false\"\n [showGridlines]=\"true\"\n [stripedRows]=\"true\"\n (cellChange)=\"onPropertyCellChange($event)\"\n ></mt-table>\n </div>\n }\n }\n }\n </div>\n </ng-template>\n </mt-structure-builder>\n }\n</div>\n", dependencies: [{ kind: "component", type: StructureBuilder, selector: "mt-structure-builder", inputs: ["availableNodes", "nodeForm", "connectionForm", "nodeActions", "nodeFields", "isAutoLayout", "addModalType", "updateModalType", "addModalStyleClass", "updateModalStyleClass", "addModalHeader", "updateModalHeader", "appendTo", "nodes", "connections"], outputs: ["nodeActionsEvent", "action", "nodesChange", "connectionsChange"] }, { kind: "component", type: Card, selector: "mt-card", inputs: ["class", "title", "paddingless"] }, { kind: "component", type: Tabs, selector: "mt-tabs", inputs: ["options", "optionLabel", "optionValue", "active", "size", "fluid", "disabled"], outputs: ["activeChange", "onChange"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: DynamicForm, selector: "mt-dynamic-form", inputs: ["formConfig"] }, { kind: "component", type: Table, selector: "mt-table", inputs: ["data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "generalSearch", "showFilters", "loading", "updating", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "paginatorPosition", "pageSize", "currentPage", "first", "filterTerm"], outputs: ["selectionChange", "cellChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange"] }, { kind: "component", type: Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "component", type: ToggleField, selector: "mt-toggle-field", inputs: ["label", "labelPosition", "placeholder", "readonly", "pInputs", "required"], outputs: ["onChange"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "pipe", type: i2.TranslocoPipe, name: "transloco" }] });
1429
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: WorkflowBuilder, deps: [], target: i0.ɵɵFactoryTarget.Component });
1430
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.1", type: WorkflowBuilder, isStandalone: true, selector: "mt-workflow-builder", ngImport: i0, template: "<div class=\"h-full relative\" id=\"workflow-builder-card\">\n @if (!loading()) {\n <mt-structure-builder\n class=\"flex-1\"\n [availableNodes]=\"availableNodes\"\n [connectionForm]=\"connectionForm()\"\n [nodeActions]=\"nodeActions()\"\n (nodeActionsEvent)=\"onNodeActionsEvent($event)\"\n [nodes]=\"steps()\"\n [connections]=\"connections()\"\n (action)=\"onStructureAction($event)\"\n [addModalType]=\"'drawer'\"\n [addModalStyleClass]=\"'!w-[25rem] !absolute !shadow-none'\"\n [updateModalStyleClass]=\"'!w-[25rem] !absolute !shadow-none'\"\n [addModalHeader]=\"'workflow.builder.addStep' | transloco\"\n [updateModalHeader]=\"'workflow.builder.editStep' | transloco\"\n [appendTo]=\"'workflow-builder-card'\"\n [nodeFields]=\"nodeFields()\"\n >\n <div flowContent>\n <!-- <div class=\"absolute top-4 left-4 z-10\">\n @if (workflows().length > 1) {\n <div class=\"flex flex-col gap-2 w-80\">\n <mt-card>\n <mt-select-field\n [options]=\"workflows()\"\n [ngModel]=\"selectedWorkflowId()\"\n (ngModelChange)=\"onWorkflowChange($event)\"\n optionLabel=\"displayName\"\n optionValue=\"id\"\n placeholder=\"Select Workflow\"\n />\n </mt-card>\n </div>\n }\n </div> -->\n <div class=\"absolute top-4 end-4 z-10\">\n <div class=\"flex flex-col gap-2 w-80\">\n <mt-card>\n <div class=\"flex items-center gap-10\">\n <div class=\"flex items-center gap-2\">\n <mt-button [severity]=\"'secondary'\" icon=\"dev.dataflow-01\" />\n <label>{{\n \"workflow.builder.enableWorkflow\" | transloco\n }}</label>\n </div>\n\n <mt-toggle-field\n [ngModel]=\"isPublished()\"\n (ngModelChange)=\"onPublishToggle($event)\"\n [disabled]=\"isPublishDisabled()\"\n ></mt-toggle-field>\n </div>\n </mt-card>\n </div>\n </div>\n </div>\n\n <ng-template\n #nodeDialog\n let-close=\"close\"\n let-save=\"save\"\n let-node=\"node\"\n >\n <div class=\"p-4\">\n @if (loadingStep()) {\n <!-- Loading skeleton -->\n <div class=\"space-y-4\">\n <!-- Tabs skeleton -->\n <div class=\"flex gap-2 mb-4\">\n <p-skeleton\n width=\"6rem\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n <p-skeleton\n width=\"8rem\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n\n <!-- Form fields skeleton -->\n <div class=\"space-y-4\">\n <div>\n <p-skeleton\n width=\"8rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"8rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"10rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"3rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"6rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"4rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n </div>\n </div>\n } @else {\n <!-- Actual content -->\n <mt-tabs\n [(active)]=\"selectedTab\"\n [options]=\"tabsList\"\n fluid\n size=\"large\"\n ></mt-tabs>\n @switch (selectedTab()) {\n @case (\"tab1\") {\n <div class=\"mt-4\">\n <mt-dynamic-form\n [formConfig]=\"nodeForm()\"\n [formControl]=\"nodeFormControl\"\n ></mt-dynamic-form>\n </div>\n }\n @case (\"tab2\") {\n <div class=\"mt-4\">\n <mt-table\n [data]=\"propertiesTableData()\"\n [columns]=\"propertiesColumns()\"\n [selectableRows]=\"false\"\n [showGridlines]=\"true\"\n [stripedRows]=\"true\"\n (cellChange)=\"onPropertyCellChange($event)\"\n ></mt-table>\n </div>\n }\n }\n }\n </div>\n </ng-template>\n </mt-structure-builder>\n }\n</div>\n", dependencies: [{ kind: "component", type: StructureBuilder, selector: "mt-structure-builder", inputs: ["availableNodes", "nodeForm", "connectionForm", "nodeActions", "nodeFields", "isAutoLayout", "addModalType", "updateModalType", "addModalStyleClass", "updateModalStyleClass", "addModalHeader", "updateModalHeader", "appendTo", "nodes", "connections"], outputs: ["nodeActionsEvent", "action", "nodesChange", "connectionsChange"] }, { kind: "component", type: Card, selector: "mt-card", inputs: ["class", "title", "paddingless"] }, { kind: "component", type: Tabs, selector: "mt-tabs", inputs: ["options", "optionLabel", "optionValue", "active", "size", "fluid", "disabled"], outputs: ["activeChange", "onChange"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: DynamicForm, selector: "mt-dynamic-form", inputs: ["formConfig"] }, { kind: "component", type: Table, selector: "mt-table", inputs: ["data", "columns", "rowActions", "size", "showGridlines", "stripedRows", "selectableRows", "generalSearch", "showFilters", "loading", "updating", "tabs", "tabsOptionLabel", "tabsOptionValue", "activeTab", "actions", "paginatorPosition", "pageSize", "currentPage", "first", "filterTerm"], outputs: ["selectionChange", "cellChange", "activeTabChange", "onTabChange", "pageSizeChange", "currentPageChange", "firstChange", "filterTermChange"] }, { kind: "component", type: Skeleton, selector: "p-skeleton", inputs: ["styleClass", "shape", "animation", "borderRadius", "size", "width", "height"] }, { kind: "component", type: ToggleField, selector: "mt-toggle-field", inputs: ["label", "labelPosition", "placeholder", "readonly", "pInputs", "required"], outputs: ["onChange"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: TranslocoModule }, { kind: "pipe", type: i2.TranslocoPipe, name: "transloco" }] });
1431
1431
  }
1432
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: WorkflowBuilder, decorators: [{
1432
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: WorkflowBuilder, decorators: [{
1433
1433
  type: Component,
1434
1434
  args: [{ selector: 'mt-workflow-builder', imports: [
1435
1435
  StructureBuilder,
@@ -1 +1 @@
1
- {"version":3,"file":"masterteam-workflow.mjs","sources":["../../../../packages/masterteam/workflow/src/store/workflow/workflow.actions.ts","../../../../packages/masterteam/workflow/src/store/utils/state-helpers.ts","../../../../packages/masterteam/workflow/src/store/workflow/workflow.state.ts","../../../../packages/masterteam/workflow/src/store/workflow/workflow.facade.ts","../../../../packages/masterteam/workflow/src/store/workflow/api.model.ts","../../../../packages/masterteam/workflow/src/lib/workflow-builder/workflow-builder.ts","../../../../packages/masterteam/workflow/src/lib/workflow-builder/workflow-builder.html","../../../../packages/masterteam/workflow/src/store/app.state.ts","../../../../packages/masterteam/workflow/src/store/index.ts","../../../../packages/masterteam/workflow/src/public-api.ts","../../../../packages/masterteam/workflow/src/masterteam-workflow.ts"],"sourcesContent":["import type { ConnectionPayload, StepPayload } from './workflow.model';\n\nexport class SetModuleInfo {\n static readonly type = '[Workflow] Set Module Info';\n\n constructor(\n public readonly moduleType: string,\n public readonly moduleId: string | number,\n public readonly parentModuleType?: string,\n public readonly parentModuleId?: string | number,\n public readonly parentPath?: string,\n ) {}\n}\n\nexport class GetWorkflows {\n static readonly type = '[Workflow] Get Workflows';\n}\n\nexport class GetWorkflow {\n static readonly type = '[Workflow] Get Workflow';\n\n constructor(public readonly workflowId: string | number) {}\n}\n\nexport class GetFormulaProperties {\n static readonly type = '[Workflow] Get Formula Properties';\n}\n\nexport class GetGroups {\n static readonly type = '[Workflow] Get Groups';\n}\n\nexport class GetRolesForModule {\n static readonly type = '[Workflow] Get Roles For Module';\n}\n\nexport class GetStep {\n static readonly type = '[Workflow] Get Step';\n\n constructor(public readonly stepId: string | number) {}\n}\n\nexport class ValidateFlow {\n static readonly type = '[Workflow] Validate Flow';\n}\n\nexport class CreateStep {\n static readonly type = '[Workflow] Create Step';\n\n constructor(public readonly payload: StepPayload) {}\n}\n\nexport class UpdateStep {\n static readonly type = '[Workflow] Update Step';\n\n constructor(\n public readonly stepId: string | number,\n public readonly payload: StepPayload,\n public readonly isInitial?: boolean,\n ) {}\n}\n\nexport class CreateConnection {\n static readonly type = '[Workflow] Create Connection';\n\n constructor(public readonly payload: ConnectionPayload) {}\n}\n\nexport class UpdateConnection {\n static readonly type = '[Workflow] Update Connection';\n\n constructor(\n public readonly connectionId: string | number,\n public readonly payload: ConnectionPayload,\n ) {}\n}\n\nexport class PublishWorkflow {\n static readonly type = '[Workflow] Publish Workflow';\n\n constructor(public readonly isPublished: boolean) {}\n}\n\nexport class DeleteStep {\n static readonly type = '[Workflow] Delete Step';\n\n constructor(public readonly stepId: string | number) {}\n}\n\nexport class DeleteConnection {\n static readonly type = '[Workflow] Delete Connection';\n\n constructor(public readonly connectionId: string | number) {}\n}\n","import type { StateContext } from '@ngxs/store';\n\nexport interface LoadingStateShape<L extends string = string> {\n loadingActive: L[];\n errors: Partial<Record<L, string>>;\n}\n\ntype LoadingName<T extends LoadingStateShape<string>> =\n T['loadingActive'][number];\n\nexport function startLoading<T extends LoadingStateShape<string>>(\n ctx: StateContext<T>,\n loadingName: LoadingName<T>,\n): void {\n const { loadingActive, errors } = ctx.getState();\n\n if (!loadingActive.includes(loadingName)) {\n ctx.patchState({\n loadingActive: [...loadingActive, loadingName],\n } as Partial<T>);\n }\n\n if (errors && errors[loadingName]) {\n const { [loadingName]: _removed, ...rest } = errors;\n ctx.patchState({ errors: rest } as Partial<T>);\n }\n}\n\nexport function endLoading<T extends LoadingStateShape<string>>(\n ctx: StateContext<T>,\n loadingName: LoadingName<T>,\n): void {\n const { loadingActive } = ctx.getState();\n\n ctx.patchState({\n loadingActive: loadingActive.filter((name) => name !== loadingName),\n } as Partial<T>);\n}\n\nexport function setLoadingError<T extends LoadingStateShape<string>>(\n ctx: StateContext<T>,\n loadingName: LoadingName<T>,\n message: string,\n): void {\n const { errors } = ctx.getState();\n ctx.patchState({\n errors: { ...errors, [loadingName]: message },\n } as Partial<T>);\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { Action, Selector, State, StateContext } from '@ngxs/store';\nimport { of } from 'rxjs';\nimport { catchError, finalize, tap } from 'rxjs/operators';\n\nimport {\n endLoading,\n setLoadingError,\n startLoading,\n} from '../utils/state-helpers';\n\nimport type {\n ConnectionResponse,\n FormulaProperty,\n GroupDefinition,\n PublishResponse,\n RoleDefinition,\n StepResponse,\n StepSchema,\n WorkflowConnection,\n WorkflowListItem,\n WorkflowLoadingName,\n WorkflowSchema,\n WorkflowStateModel,\n WorkflowStepSchema,\n} from './workflow.model';\nimport {\n CreateConnection,\n CreateStep,\n DeleteConnection,\n DeleteStep,\n GetFormulaProperties,\n GetGroups,\n GetRolesForModule,\n GetStep,\n GetWorkflow,\n GetWorkflows,\n PublishWorkflow,\n SetModuleInfo,\n UpdateConnection,\n UpdateStep,\n ValidateFlow,\n} from './workflow.actions';\nimport { Response } from './api.model';\n\nconst DEFAULT_STATE: WorkflowStateModel = {\n workflowId: null,\n moduleType: null,\n moduleId: null,\n workflows: [],\n workflow: null,\n formulaProperties: [],\n groups: [],\n roles: [],\n selectedStep: null,\n isFlowValid: null,\n loadingActive: [],\n errors: {},\n};\n\n@State<WorkflowStateModel>({\n name: 'workflow',\n defaults: DEFAULT_STATE,\n})\n@Injectable()\nexport class WorkflowState {\n private readonly http = inject(HttpClient);\n private readonly baseUrl = 'ProcessBuilder';\n private readonly groupsUrl = 'identity/Groups';\n private readonly rolesUrl = 'identity/roles/scopes';\n\n @Selector()\n static workflowId(state: WorkflowStateModel): string | number | null {\n return state.workflowId;\n }\n\n @Selector()\n static moduleType(state: WorkflowStateModel): string | null {\n return state.moduleType;\n }\n\n @Selector()\n static moduleId(state: WorkflowStateModel): string | number | null {\n return state.moduleId;\n }\n\n @Selector()\n static workflows(state: WorkflowStateModel) {\n return state.workflows;\n }\n\n @Selector()\n static workflow(state: WorkflowStateModel): WorkflowSchema | null {\n return state.workflow;\n }\n\n @Selector()\n static formulaProperties(state: WorkflowStateModel): FormulaProperty[] {\n return state.formulaProperties;\n }\n\n @Selector()\n static groups(state: WorkflowStateModel): GroupDefinition[] {\n return state.groups;\n }\n\n @Selector()\n static roles(state: WorkflowStateModel): RoleDefinition[] {\n return state.roles;\n }\n\n @Selector()\n static selectedStep(state: WorkflowStateModel): StepSchema | null {\n return state.selectedStep;\n }\n\n @Selector()\n static isFlowValid(state: WorkflowStateModel): boolean | null {\n return state.isFlowValid;\n }\n\n @Selector()\n static stepsSchema(state: WorkflowStateModel): WorkflowStepSchema[] {\n return state.workflow?.stepsSchema ?? [];\n }\n\n @Selector()\n static connections(state: WorkflowStateModel): WorkflowConnection[] {\n return state.workflow?.connections ?? [];\n }\n\n @Selector()\n static isLoadingFactory(state: WorkflowStateModel) {\n return (loadingName: WorkflowLoadingName) =>\n state.loadingActive.includes(loadingName);\n }\n\n @Selector()\n static errorFactory(state: WorkflowStateModel) {\n return (loadingName: WorkflowLoadingName) =>\n state.errors?.[loadingName] ?? null;\n }\n\n @Action(SetModuleInfo)\n setModuleInfo(ctx: StateContext<WorkflowStateModel>, action: SetModuleInfo) {\n let parentPath = '';\n if (action.parentModuleType && action.parentModuleId) {\n parentPath = `/${action.parentModuleType}/${action.parentModuleId}`;\n } else if (action.parentPath) {\n parentPath = action.parentPath;\n }\n ctx.patchState({\n moduleType: action.moduleType,\n moduleId: action.moduleId,\n parentModuleType: action.parentModuleType ?? null,\n parentModuleId: action.parentModuleId ?? null,\n parentPath: parentPath ?? '',\n });\n }\n\n @Action(GetWorkflows)\n getWorkflows(ctx: StateContext<WorkflowStateModel>, _action: GetWorkflows) {\n startLoading(ctx, 'getWorkflows');\n\n const state = ctx.getState();\n const { moduleId, parentPath, moduleType } = state;\n\n if (!moduleId) {\n const message = 'Module ID is not set';\n setLoadingError(ctx, 'getWorkflows', message);\n endLoading(ctx, 'getWorkflows');\n return of(null);\n }\n\n return this.http\n .get<\n Response<WorkflowListItem[]>\n >(`${this.baseUrl}${parentPath}/${moduleType}/${moduleId}/requestSchema`)\n .pipe(\n tap((response) => {\n const workflows = response?.data ?? [];\n ctx.patchState({ workflows });\n\n // Auto-select and load first workflow if available\n if (workflows.length > 0) {\n const firstWorkflow = workflows[0];\n ctx.patchState({ workflowId: firstWorkflow.id });\n ctx.dispatch(new GetWorkflow(firstWorkflow.id));\n }\n }),\n catchError((error) => {\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to load workflows';\n setLoadingError(ctx, 'getWorkflows', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'getWorkflows')),\n );\n }\n\n @Action(GetWorkflow)\n getWorkflow(ctx: StateContext<WorkflowStateModel>, action: GetWorkflow) {\n startLoading(ctx, 'getWorkflow');\n\n const state = ctx.getState();\n const workflowId = action.workflowId;\n const { moduleId, parentPath, moduleType } = state;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'getWorkflow', message);\n endLoading(ctx, 'getWorkflow');\n return of(null);\n }\n\n // Set the workflowId in state\n ctx.patchState({ workflowId });\n\n return this.http\n .get<Response<WorkflowSchema>>(\n `${this.baseUrl}${parentPath}/${moduleType}/${moduleId}/requestSchema/${workflowId}`,\n {\n params: { Mode: 'edit' },\n },\n )\n .pipe(\n tap((response) => {\n const workflow = response?.data ?? null;\n ctx.patchState({\n workflow,\n isFlowValid: workflow?.isValid ?? null,\n });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to load workflow';\n setLoadingError(ctx, 'getWorkflow', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'getWorkflow')),\n );\n }\n\n @Action(GetFormulaProperties)\n getFormulaProperties(\n ctx: StateContext<WorkflowStateModel>,\n _action: GetFormulaProperties,\n ) {\n startLoading(ctx, 'getFormulaProperties');\n\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'getFormulaProperties', message);\n endLoading(ctx, 'getFormulaProperties');\n return of(null);\n }\n\n return this.http\n .get<\n Response<FormulaProperty[]>\n >(`${this.baseUrl}/processFormulaProperties/${workflowId}`)\n .pipe(\n tap((response) => {\n const formulaProperties = Array.isArray(response?.data)\n ? response.data\n : [];\n ctx.patchState({ formulaProperties });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to load formula properties';\n setLoadingError(ctx, 'getFormulaProperties', message);\n return of([]);\n }),\n finalize(() => endLoading(ctx, 'getFormulaProperties')),\n );\n }\n\n @Action(GetGroups)\n getGroups(ctx: StateContext<WorkflowStateModel>, _action: GetGroups) {\n const state = ctx.getState();\n if (state.groups.length) {\n return of(state.groups);\n }\n\n startLoading(ctx, 'getGroups');\n\n return this.http.get<Response<GroupDefinition[]>>(this.groupsUrl).pipe(\n tap((response) => {\n const groups = Array.isArray(response?.data) ? response.data : [];\n ctx.patchState({ groups });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to load groups';\n setLoadingError(ctx, 'getGroups', message);\n return of([]);\n }),\n finalize(() => endLoading(ctx, 'getGroups')),\n );\n }\n\n @Action(GetRolesForModule)\n getRolesForModule(\n ctx: StateContext<WorkflowStateModel>,\n _action: GetRolesForModule,\n ) {\n const state = ctx.getState();\n const { moduleType, moduleId } = state;\n\n if (!moduleType || !moduleId) {\n const message = 'Module type and module ID must be set';\n setLoadingError(ctx, 'getRolesForModule', message);\n return of([]);\n }\n\n startLoading(ctx, 'getRolesForModule');\n\n return this.http\n .get<Response<RoleDefinition[]>>(\n `${this.rolesUrl}/${moduleType}/${moduleId}`,\n {\n params: { inherited: 'true' },\n },\n )\n .pipe(\n tap((response) => {\n const roles = Array.isArray(response?.data) ? response.data : [];\n ctx.patchState({ roles });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to load roles';\n setLoadingError(ctx, 'getRolesForModule', message);\n return of([]);\n }),\n finalize(() => endLoading(ctx, 'getRolesForModule')),\n );\n }\n\n @Action(GetStep)\n getStep(ctx: StateContext<WorkflowStateModel>, action: GetStep) {\n startLoading(ctx, 'getStep');\n\n return this.http\n .get<Response<StepSchema>>(\n `${this.baseUrl}/stepSchema/${action.stepId}`,\n {\n params: { Mode: 'edit' },\n },\n )\n .pipe(\n tap((response) => {\n const selectedStep = response?.data ?? null;\n ctx.patchState({ selectedStep });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to load step';\n setLoadingError(ctx, 'getStep', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'getStep')),\n );\n }\n\n @Action(ValidateFlow)\n validateFlow(ctx: StateContext<WorkflowStateModel>, _action: ValidateFlow) {\n startLoading(ctx, 'validateFlow');\n\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'validateFlow', message);\n endLoading(ctx, 'validateFlow');\n return of(null);\n }\n\n return this.http\n .get<\n Response<boolean>\n >(`${this.baseUrl}/requestSchema/${workflowId}/validity`)\n .pipe(\n tap((response) => {\n const isFlowValid = response?.data ?? null;\n ctx.patchState({ isFlowValid });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to validate flow';\n setLoadingError(ctx, 'validateFlow', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'validateFlow')),\n );\n }\n\n @Action(CreateStep)\n createStep(ctx: StateContext<WorkflowStateModel>, action: CreateStep) {\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'createStep', message);\n return of(null);\n }\n\n const tempId = -Date.now();\n const tempStep: any = {\n ...action.payload,\n id: tempId,\n loading: true,\n };\n\n if (state.workflow) {\n ctx.patchState({\n workflow: {\n ...state.workflow,\n stepsSchema: [...state.workflow.stepsSchema, tempStep],\n },\n });\n }\n\n startLoading(ctx, 'createStep');\n\n return this.http\n .post<\n Response<StepResponse>\n >(`${this.baseUrl}/requestSchema/${workflowId}/stepSchema`, action.payload)\n .pipe(\n tap((response) => {\n const createdStep = response?.data;\n const currentState = ctx.getState();\n if (createdStep && currentState.workflow) {\n const updatedSteps = currentState.workflow.stepsSchema.map(\n (step) =>\n step.id === tempId ? { ...createdStep, loading: false } : step,\n );\n\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: updatedSteps,\n },\n });\n }\n // Validate flow after creating step\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n const filteredSteps = currentState.workflow.stepsSchema.filter(\n (step) => step.id !== tempId,\n );\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: filteredSteps,\n },\n });\n }\n\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to create step';\n setLoadingError(ctx, 'createStep', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'createStep')),\n );\n }\n\n @Action(UpdateStep)\n updateStep(ctx: StateContext<WorkflowStateModel>, action: UpdateStep) {\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'updateStep', message);\n return of(null);\n }\n\n if (state.workflow) {\n const updatedSteps = state.workflow.stepsSchema.map((step) =>\n step.id === action.stepId ? { ...step, loading: true } : step,\n );\n ctx.patchState({\n workflow: {\n ...state.workflow,\n stepsSchema: updatedSteps,\n },\n });\n }\n\n startLoading(ctx, 'updateStep');\n\n const endpoint = action.isInitial ? 'initialStepSchema' : 'stepSchema';\n\n return this.http\n .put<\n Response<StepResponse>\n >(`${this.baseUrl}/${endpoint}/${action.stepId}`, action.payload)\n .pipe(\n tap((response) => {\n const updatedStep = response?.data;\n const currentState = ctx.getState();\n if (updatedStep && currentState.workflow) {\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: currentState.workflow.stepsSchema.map((step) =>\n step.id === updatedStep.id\n ? { ...updatedStep, loading: false }\n : step,\n ),\n },\n });\n }\n // Validate flow after updating step\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n const errorSteps = currentState.workflow.stepsSchema.map((step) =>\n step.id === action.stepId ? { ...step, loading: false } : step,\n );\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: errorSteps,\n },\n });\n }\n\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to update step';\n setLoadingError(ctx, 'updateStep', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'updateStep')),\n );\n }\n\n @Action(CreateConnection)\n createConnection(\n ctx: StateContext<WorkflowStateModel>,\n action: CreateConnection,\n ) {\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'createConnection', message);\n return of(null);\n }\n\n const tempId = -Date.now();\n const tempConnection: any = {\n ...action.payload,\n id: tempId,\n loading: true,\n source: action.payload.sourceStepId,\n target: action.payload.targetStepId,\n };\n\n if (state.workflow) {\n ctx.patchState({\n workflow: {\n ...state.workflow,\n connections: [...state.workflow.connections, tempConnection],\n },\n });\n }\n\n startLoading(ctx, 'createConnection');\n\n return this.http\n .post<\n Response<ConnectionResponse>\n >(`${this.baseUrl}/requestSchema/${workflowId}/connection`, action.payload)\n .pipe(\n tap((response) => {\n const createdConnection = response?.data;\n const currentState = ctx.getState();\n if (createdConnection && currentState.workflow) {\n const updatedConnections = currentState.workflow.connections.map(\n (conn) =>\n conn.id === tempId\n ? { ...createdConnection, loading: false }\n : conn,\n );\n\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: updatedConnections,\n },\n });\n }\n // Validate flow after creating connection\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n const filteredConnections =\n currentState.workflow.connections.filter(\n (conn) => conn.id !== tempId,\n );\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: filteredConnections,\n },\n });\n }\n\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to create connection';\n setLoadingError(ctx, 'createConnection', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'createConnection')),\n );\n }\n\n @Action(UpdateConnection)\n updateConnection(\n ctx: StateContext<WorkflowStateModel>,\n action: UpdateConnection,\n ) {\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'updateConnection', message);\n return of(null);\n }\n\n if (state.workflow) {\n const updatedConnections = state.workflow.connections.map((conn) =>\n conn.id === action.connectionId ? { ...conn, loading: true } : conn,\n );\n ctx.patchState({\n workflow: {\n ...state.workflow,\n connections: updatedConnections,\n },\n });\n }\n\n startLoading(ctx, 'updateConnection');\n\n return this.http\n .put<\n Response<ConnectionResponse>\n >(`${this.baseUrl}/stepSchemaConnection/${action.connectionId}`, action.payload)\n .pipe(\n tap((response) => {\n const updatedConnection = response?.data;\n const currentState = ctx.getState();\n if (updatedConnection && currentState.workflow) {\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: currentState.workflow.connections.map((conn) =>\n conn.id === updatedConnection.id\n ? { ...updatedConnection, loading: false }\n : conn,\n ),\n },\n });\n }\n // Validate flow after updating connection\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n const errorConnections = currentState.workflow.connections.map(\n (conn) =>\n conn.id === action.connectionId\n ? { ...conn, loading: false }\n : conn,\n );\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: errorConnections,\n },\n });\n }\n\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to update connection';\n setLoadingError(ctx, 'updateConnection', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'updateConnection')),\n );\n }\n\n @Action(PublishWorkflow)\n publishWorkflow(\n ctx: StateContext<WorkflowStateModel>,\n action: PublishWorkflow,\n ) {\n startLoading(ctx, 'publishWorkflow');\n\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'publishWorkflow', message);\n endLoading(ctx, 'publishWorkflow');\n return of(null);\n }\n\n return this.http\n .put<\n Response<PublishResponse>\n >(`${this.baseUrl}/requestSchema/${workflowId}/publish`, { IsPublished: action.isPublished })\n .pipe(\n tap((response) => {\n const publishedData = response?.data;\n if (publishedData && state.workflow) {\n ctx.patchState({\n workflow: {\n ...state.workflow,\n isPublished: publishedData.isPublished,\n isValid: publishedData.isValid,\n },\n });\n }\n }),\n catchError((error) => {\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to publish workflow';\n setLoadingError(ctx, 'publishWorkflow', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'publishWorkflow')),\n );\n }\n\n @Action(DeleteStep)\n deleteStep(ctx: StateContext<WorkflowStateModel>, action: DeleteStep) {\n const state = ctx.getState();\n\n if (state.workflow) {\n // Mark step as loading\n const updatedSteps = state.workflow.stepsSchema.map((step) =>\n step.id == action.stepId ? { ...step, loading: true } : step,\n );\n\n // Filter out all connections related to this step\n const updatedConnections = state.workflow.connections.filter(\n (conn) => conn.source != action.stepId && conn.target != action.stepId,\n );\n\n ctx.patchState({\n workflow: {\n ...state.workflow,\n stepsSchema: updatedSteps,\n connections: updatedConnections,\n },\n });\n }\n\n startLoading(ctx, 'deleteStep');\n\n return this.http\n .delete<Response<boolean>>(`${this.baseUrl}/stepSchema/${action.stepId}`)\n .pipe(\n tap(() => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: currentState.workflow.stepsSchema.filter(\n (step) => step.id != action.stepId,\n ),\n },\n });\n }\n // Validate flow after deleting step\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n // Restore step loading state\n const errorSteps = currentState.workflow.stepsSchema.map((step) =>\n step.id == action.stepId ? { ...step, loading: false } : step,\n );\n\n // Restore connections related to this step from original state\n const relatedConnections =\n state.workflow?.connections.filter(\n (conn) =>\n conn.source == action.stepId || conn.target == action.stepId,\n ) || [];\n\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: errorSteps,\n connections: [\n ...currentState.workflow.connections,\n ...relatedConnections,\n ],\n },\n });\n }\n\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to delete step';\n setLoadingError(ctx, 'deleteStep', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'deleteStep')),\n );\n }\n\n @Action(DeleteConnection)\n deleteConnection(\n ctx: StateContext<WorkflowStateModel>,\n action: DeleteConnection,\n ) {\n const state = ctx.getState();\n\n if (state.workflow) {\n const updatedConnections = state.workflow.connections.map((conn) =>\n conn.id == action.connectionId ? { ...conn, loading: true } : conn,\n );\n ctx.patchState({\n workflow: {\n ...state.workflow,\n connections: updatedConnections,\n },\n });\n }\n\n startLoading(ctx, 'deleteConnection');\n\n return this.http\n .delete<\n Response<boolean>\n >(`${this.baseUrl}/stepSchemaConnection/${action.connectionId}`)\n .pipe(\n tap(() => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: currentState.workflow.connections.filter(\n (conn) => conn.id != action.connectionId,\n ),\n },\n });\n }\n // Validate flow after deleting connection\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n const errorConnections = currentState.workflow.connections.map(\n (conn) =>\n conn.id == action.connectionId\n ? { ...conn, loading: false }\n : conn,\n );\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: errorConnections,\n },\n });\n }\n\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to delete connection';\n setLoadingError(ctx, 'deleteConnection', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'deleteConnection')),\n );\n }\n}\n","import { Injectable, computed, inject } from '@angular/core';\nimport { select, Store } from '@ngxs/store';\nimport type { Observable } from 'rxjs';\n\nimport type {\n ConnectionPayload,\n FormulaProperty,\n GroupDefinition,\n RoleDefinition,\n StepPayload,\n StepSchema,\n WorkflowConnection,\n WorkflowListItem,\n WorkflowLoadingName,\n WorkflowSchema,\n WorkflowStepSchema,\n} from './workflow.model';\nimport {\n CreateConnection,\n CreateStep,\n DeleteConnection,\n DeleteStep,\n GetFormulaProperties,\n GetGroups,\n GetRolesForModule,\n GetStep,\n GetWorkflow,\n GetWorkflows,\n PublishWorkflow,\n SetModuleInfo,\n UpdateConnection,\n UpdateStep,\n ValidateFlow,\n} from './workflow.actions';\nimport { WorkflowState } from './workflow.state';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WorkflowFacade {\n private readonly store = inject(Store);\n\n readonly workflowId = select<string | number | null>(\n WorkflowState.workflowId,\n );\n readonly moduleType = select<string | null>(WorkflowState.moduleType);\n readonly moduleId = select<string | number | null>(WorkflowState.moduleId);\n readonly workflows = select<WorkflowListItem[]>(WorkflowState.workflows);\n readonly workflow = select<WorkflowSchema | null>(WorkflowState.workflow);\n readonly formulaProperties = select<FormulaProperty[]>(\n WorkflowState.formulaProperties,\n );\n readonly groups = select<GroupDefinition[]>(WorkflowState.groups);\n readonly roles = select<RoleDefinition[]>(WorkflowState.roles);\n readonly selectedStep = select<StepSchema | null>(WorkflowState.selectedStep);\n readonly isFlowValid = select<boolean | null>(WorkflowState.isFlowValid);\n readonly steps = select<WorkflowStepSchema[]>(WorkflowState.stepsSchema);\n readonly connections = select<WorkflowConnection[]>(\n WorkflowState.connections,\n );\n\n isLoading(loadingName: WorkflowLoadingName) {\n const loadingFactory = select<(name: WorkflowLoadingName) => boolean>(\n WorkflowState.isLoadingFactory,\n );\n return computed(() => loadingFactory()(loadingName));\n }\n\n error(loadingName: WorkflowLoadingName) {\n const errorFactory = select<(name: WorkflowLoadingName) => string | null>(\n WorkflowState.errorFactory,\n );\n return computed(() => errorFactory()(loadingName));\n }\n setModuleInfo(\n moduleType: string,\n moduleId: string | number,\n parentModuleType?: string,\n parentModuleId?: string | number,\n parentPath?: string,\n ): Observable<unknown> {\n return this.store.dispatch(\n new SetModuleInfo(\n moduleType,\n moduleId,\n parentModuleType,\n parentModuleId,\n parentPath,\n ),\n );\n }\n\n loadWorkflows(): Observable<unknown> {\n return this.store.dispatch(new GetWorkflows());\n }\n\n selectWorkflow(workflowId: string | number): Observable<unknown> {\n return this.store.dispatch(new GetWorkflow(workflowId));\n }\n\n loadWorkflow(): Observable<unknown> {\n return this.loadWorkflows();\n }\n\n loadFormulaProperties(): Observable<unknown> {\n return this.store.dispatch(new GetFormulaProperties());\n }\n\n loadGroups(): Observable<unknown> {\n return this.store.dispatch(new GetGroups());\n }\n\n loadRolesForModule(): Observable<unknown> {\n return this.store.dispatch(new GetRolesForModule());\n }\n\n loadStep(stepId: string | number): Observable<unknown> {\n return this.store.dispatch(new GetStep(stepId));\n }\n\n validateFlow(): Observable<unknown> {\n return this.store.dispatch(new ValidateFlow());\n }\n\n createStep(payload: StepPayload): Observable<unknown> {\n return this.store.dispatch(new CreateStep(payload));\n }\n\n updateStep(\n stepId: string | number,\n payload: StepPayload,\n isInitial?: boolean,\n ): Observable<unknown> {\n return this.store.dispatch(new UpdateStep(stepId, payload, isInitial));\n }\n\n createConnection(payload: ConnectionPayload): Observable<unknown> {\n return this.store.dispatch(new CreateConnection(payload));\n }\n\n updateConnection(\n connectionId: string | number,\n payload: ConnectionPayload,\n ): Observable<unknown> {\n return this.store.dispatch(new UpdateConnection(connectionId, payload));\n }\n\n publishWorkflow(isPublished: boolean): Observable<unknown> {\n return this.store.dispatch(new PublishWorkflow(isPublished));\n }\n\n deleteStep(stepId: string | number): Observable<unknown> {\n return this.store.dispatch(new DeleteStep(stepId));\n }\n\n deleteConnection(connectionId: string | number): Observable<unknown> {\n return this.store.dispatch(new DeleteConnection(connectionId));\n }\n}\n","// shared/models/api.model.ts\n\nexport interface Response<T> {\n endpoint: string;\n status: number;\n code: number;\n locale: string;\n message?: string | null;\n errors?: any | null;\n data: T;\n cacheSession?: string;\n}\n","import {\n Component,\n inject,\n linkedSignal,\n signal,\n computed,\n effect,\n} from '@angular/core';\nimport { DynamicFormConfig } from '@masterteam/components';\nimport { Card } from '@masterteam/components/card';\nimport {\n NodeActionEvent,\n SBAction,\n StructureBuilder,\n} from '@masterteam/structure-builder';\nimport { WorkflowFacade, WorkflowStepSchema } from '../../store/workflow';\nimport { CellChangeEvent } from '@masterteam/components/table';\nimport { Tabs } from '@masterteam/components/tabs';\nimport { FormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { DynamicForm } from '@masterteam/forms/dynamic-form';\nimport { Table } from '@masterteam/components/table';\nimport { ColumnDef } from '@masterteam/components/table';\nimport { Skeleton } from 'primeng/skeleton';\nimport { ToggleField } from '@masterteam/components/toggle-field';\nimport { Button } from '@masterteam/components/button';\nimport { TranslocoModule, TranslocoService } from '@jsverse/transloco';\n// import { SelectField } from '@masterteam/components/select-field';\nimport { ConfirmationService } from '@masterteam/components/confirmation';\n\n@Component({\n selector: 'mt-workflow-builder',\n imports: [\n StructureBuilder,\n Card,\n Tabs,\n ReactiveFormsModule,\n FormsModule,\n DynamicForm,\n Table,\n Skeleton,\n ToggleField,\n Button,\n TranslocoModule,\n // SelectField,\n ],\n templateUrl: './workflow-builder.html',\n styles: [],\n host: {},\n})\nexport class WorkflowBuilder {\n private workflowFacade = inject(WorkflowFacade);\n private transloco = inject(TranslocoService);\n groups = this.workflowFacade.groups;\n roles = this.workflowFacade.roles;\n workflows = this.workflowFacade.workflows;\n workflow = this.workflowFacade.workflow;\n loading = this.workflowFacade.isLoading('getWorkflow');\n loadingStep = this.workflowFacade.isLoading('getStep');\n isFlowValid = this.workflowFacade.isFlowValid;\n\n selectedStep = this.workflowFacade.selectedStep;\n selectedWorkflowId = computed(() => this.workflow()?.id);\n private readonly confirmationService = inject(ConfirmationService);\n\n selectedTab = signal<any>('tab1');\n nodeFields = signal<any>({\n name: 'title',\n });\n nodeFormControl = new FormControl();\n isPublished = signal<boolean>(false);\n isPublishDisabled = computed(() => !this.isFlowValid());\n\n private isEditingInitialNode = signal<boolean>(false);\n\n // Properties table data - writable signal that can be updated when loading step details\n private _propertiesTableData = signal<any[]>([]);\n\n // Computed that initializes from workflow properties\n propertiesTableData = computed(() => {\n const currentData = this._propertiesTableData();\n if (currentData.length > 0) {\n return currentData;\n }\n\n const properties = this.workflow()?.properties || [];\n return properties.map((prop) => ({\n id: prop.id,\n name: prop.property.title,\n isVisible: false,\n isEditable: false,\n _original: prop, // Keep original for reference\n }));\n });\n\n // Table columns configuration\n propertiesColumns = signal<ColumnDef[]>([\n {\n key: 'name',\n label: this.transloco.translate('workflow.builder.columnName'),\n type: 'text',\n },\n {\n key: 'isVisible',\n label: this.transloco.translate('workflow.builder.columnVisible'),\n type: 'boolean',\n },\n {\n key: 'isEditable',\n label: this.transloco.translate('workflow.builder.columnEditable'),\n type: 'boolean',\n },\n ]);\n\n tabsList = [\n {\n label: this.transloco.translate('workflow.builder.tabSettings'),\n value: 'tab1',\n },\n {\n label: this.transloco.translate('workflow.builder.tabProperties'),\n value: 'tab2',\n },\n ];\n availableNodes = [\n {\n id: 'FormStep',\n label: this.transloco.translate('workflow.builder.newStep'),\n name: {\n en: 'Form Step',\n ar: 'خطوة النموذج',\n },\n targetType: '1',\n icon: 'general.plus-circle',\n color: '#000000',\n },\n ];\n\n // Base form sections - defined once for reusability\n private readonly baseNameFields = {\n key: 'settings',\n type: 'none',\n bodyClass: 'space-y-2',\n fields: [\n {\n key: 'title.en',\n label: this.transloco.translate('workflow.builder.nameEnglish'),\n placeholder: this.transloco.translate(\n 'workflow.builder.enterNameEnglish',\n ),\n cssClass: 'w-full',\n required: true,\n },\n {\n key: 'title.ar',\n label: this.transloco.translate('workflow.builder.nameArabic'),\n placeholder: this.transloco.translate(\n 'workflow.builder.enterNameArabic',\n ),\n cssClass: 'w-full',\n required: true,\n },\n ],\n };\n\n // Approver section with dynamic options\n private readonly approverSection = computed(() => ({\n key: 'settings',\n type: 'header',\n label: this.transloco.translate('workflow.builder.approver'),\n headerClass:\n 'rounded-t-xl bg-slate-50 px-4 py-3 text-sm font-semibold text-slate-900 border border-slate-200 border-b-0',\n bodyClass: 'rounded-b-xl border border-slate-200 p-4 space-y-3',\n cssClass: ' ',\n fields: [\n {\n key: 'targetType',\n type: 'radio-button',\n orientation: 'horizontal',\n defaultValue: '1',\n options: [\n {\n label: this.transloco.translate('workflow.builder.group'),\n value: '1',\n },\n {\n label: this.transloco.translate('workflow.builder.role'),\n value: '2',\n },\n ],\n optionLabel: 'label',\n optionValue: 'value',\n placeholder: 'Enter Role',\n cssClass: 'flex items-center gap-6 text-sm text-slate-700',\n required: true,\n },\n {\n key: 'group',\n label: 'Select',\n placeholder: this.transloco.translate('workflow.builder.selectGroup'),\n cssClass: 'mt-2 pt-3 border-t border-slate-200 w-full',\n required: true,\n type: 'select',\n options: this.groups(),\n optionLabel: 'title',\n optionValue: 'id',\n relations: [{ key: 'targetType', value: '1', action: 'show' }],\n },\n {\n key: 'role',\n label: 'Select',\n placeholder: 'Enter target value',\n cssClass: 'mt-2 pt-3 border-t border-slate-200 w-full',\n required: true,\n type: 'select',\n options: this.roles(),\n optionLabel: 'title',\n optionValue: 'id',\n relations: [{ key: 'targetType', value: '2', action: 'show' }],\n },\n ],\n }));\n\n private readonly slaSection = {\n key: 'slaSection',\n type: 'none',\n bodyClass: 'space-y-1',\n fields: [\n {\n key: 'sla',\n label: this.transloco.translate('workflow.builder.sla'),\n placeholder: this.transloco.translate('workflow.builder.enterSla'),\n cssClass: 'w-full',\n required: true,\n },\n ],\n } as const;\n\n // Dynamic form configuration using computed signal\n // Automatically rebuilds when isEditingInitialNode changes\n nodeForm = linkedSignal<DynamicFormConfig>(() => {\n const sections: any[] = [this.baseNameFields];\n\n // Conditionally include approver and SLA sections based on isEditingInitialNode\n // Initial nodes only show name fields\n if (!this.isEditingInitialNode()) {\n sections.push(this.approverSection());\n sections.push(this.slaSection);\n }\n\n return {\n sections,\n layout: {},\n };\n });\n\n // Computed signal for form state info - useful for debugging or UI indicators\n formStateInfo = computed(() => ({\n isInitialNode: this.isEditingInitialNode(),\n sectionsCount: this.nodeForm().sections.length,\n hasApproverSection: !this.isEditingInitialNode(),\n hasSlaSection: !this.isEditingInitialNode(),\n formMode: this.isEditingInitialNode() ? 'initial-node' : 'standard-node',\n }));\n\n // Sample connection form configuration\n connectionForm = signal<DynamicFormConfig>({\n sections: [\n {\n key: 'basic',\n label: 'Basic Information',\n type: 'none',\n cssClass: 'p-4',\n order: 1,\n fields: [\n {\n key: 'priority',\n label: 'Priority',\n },\n ],\n },\n ],\n });\n\n // Nodes currently in the flow (with positions) - linked to store via selectors\n steps = computed(() => {\n return this.workflowFacade.steps().map((step) => ({\n ...step,\n color: '#000000',\n }));\n });\n\n // Connections between nodes (matching your design) - linked to store via selectors\n connections = computed(() => {\n return this.workflowFacade.connections().map((connection) => ({\n ...connection,\n from: connection.source,\n to: connection.target,\n }));\n });\n\n // Node Actions\n nodeActions = signal([\n {\n key: 'edit',\n icon: 'general.edit-05',\n variant: 'outlined',\n size: 'small',\n tooltip: 'Edit',\n },\n {\n key: 'delete',\n icon: 'general.trash-01',\n variant: 'outlined',\n size: 'small',\n severity: 'danger',\n tooltip: 'Delete',\n condition: (node: WorkflowStepSchema) => !node.isInitial,\n },\n ]);\n\n constructor() {\n // Effect to initialize isPublished from workflow.isPublished\n effect(() => {\n const workflow = this.workflow();\n if (workflow && workflow.isPublished !== undefined) {\n this.isPublished.set(workflow.isPublished);\n }\n });\n\n // Effect to watch selectedStep and patch form when it changes\n effect(() => {\n const step = this.selectedStep();\n\n if (step) {\n // Patch form with complete step data including targetType and targetValue\n this.nodeFormControl.patchValue({\n title: step.title,\n targetType: step.targetType || '1',\n group: step.targetType === '1' ? parseInt(step.targetValue!) : null,\n role: step.targetType === '2' ? step.targetValue : null,\n sla: step.sla,\n });\n\n // Update properties table with step's property permissions\n const properties = this.workflow()?.properties || [];\n const updatedTableData = properties.map((prop) => {\n const stepProperty = step.properties?.find(\n (p) => p.propertyId === prop.id,\n );\n\n return {\n id: prop.id,\n name: prop?.property?.title,\n isVisible: stepProperty?.isRead || false,\n isEditable: stepProperty?.isWrite || false,\n _original: prop,\n };\n });\n\n this._propertiesTableData.set(updatedTableData);\n }\n });\n }\n\n onNodeActionsEvent(event: NodeActionEvent) {\n console.log('Node action event:', event);\n }\n\n onPublishToggle(isPublished: boolean): void {\n // Prevent publishing if workflow is not valid\n if (isPublished && !this.isFlowValid()) {\n console.warn('Cannot publish: Workflow is not valid');\n this.isPublished.set(false);\n return;\n }\n\n this.workflowFacade.publishWorkflow(isPublished).subscribe({\n error: (error) => {\n console.error('Failed to update workflow publish status:', error);\n // Revert the toggle on error\n this.isPublished.set(!isPublished);\n },\n });\n }\n\n onWorkflowChange(workflowId: number): void {\n console.log('Workflow changed to:', workflowId);\n this.workflowFacade.selectWorkflow(workflowId);\n }\n\n clearForm(): void {\n // Reset isEditingInitialNode flag\n this.isEditingInitialNode.set(false);\n\n // Reset form to default values\n this.nodeFormControl.reset({\n name: { en: '', ar: '' },\n targetType: '1',\n group: null,\n role: null,\n sla: 0,\n });\n\n // Reset properties table to default state (all unchecked)\n const properties = this.workflow()?.properties || [];\n const resetTableData = properties.map((prop) => ({\n id: prop.id,\n name: prop?.property?.title,\n isVisible: false,\n isEditable: false,\n _original: prop,\n }));\n\n this._propertiesTableData.set(resetTableData);\n\n // Reset to first tab\n this.selectedTab.set('tab1');\n\n console.log('Form and properties cleared for new step');\n }\n\n onPropertyCellChange(event: CellChangeEvent): void {\n if (event.type !== 'boolean') return;\n\n switch (event.column) {\n case 'isEditable':\n if (event.value) event.row.isVisible = true;\n break;\n case 'isVisible':\n if (!event.value) event.row.isEditable = false;\n break;\n }\n }\n\n onStructureAction(event: SBAction) {\n console.log('Structure action received:', event);\n\n switch (event.action) {\n case 'createNode':\n if (event.data) {\n // Get form values\n const formValue = this.nodeFormControl.value;\n\n // Get selected properties with isVisible and isEditable flags\n const propertiesPayload = this.propertiesTableData()\n .filter((prop) => prop.isVisible || prop.isEditable)\n .map((prop) => ({\n PropertyId: prop.id,\n isRead: prop.isVisible,\n isWrite: prop.isEditable,\n }));\n\n // Prepare step payload\n const stepPayload = {\n title: formValue.title,\n targetType: formValue.targetType,\n targetValue:\n formValue.targetType === '1' ? formValue.group : formValue.role,\n sla: formValue.sla || 0,\n properties: propertiesPayload,\n };\n\n // Create step via facade\n this.workflowFacade.createStep(stepPayload).subscribe({\n next: () => {\n console.log('Step created successfully:', stepPayload);\n },\n error: (error) => {\n console.error('Failed to create step:', error);\n },\n });\n }\n break;\n case 'startUpdating':\n if (event.data) {\n this.clearForm();\n\n const stepId = event.data.id;\n\n // Set the flag based on whether node is initial\n // This will trigger nodeForm to rebuild automatically via linkedSignal\n this.isEditingInitialNode.set(!!event.data.isInitial);\n\n // Load step data\n this.workflowFacade.loadStep(stepId);\n }\n break;\n case 'startCreating':\n // Reset form and properties for new step\n this.clearForm();\n break;\n case 'updateNode':\n if (event.data) {\n // Get form values\n const formValue = this.nodeFormControl.value;\n const stepId = event.data.id;\n const isInitial = !!event.data.isInitial;\n\n // Get selected properties with isVisible and isEditable flags\n const propertiesPayload = this.propertiesTableData()\n .filter((prop) => prop.isVisible || prop.isEditable)\n .map((prop) => ({\n PropertyId: prop.id,\n isRead: prop.isVisible,\n isWrite: prop.isEditable,\n }));\n\n // Prepare step payload\n const stepPayload = {\n title: formValue.title,\n targetType: formValue.targetType,\n targetValue:\n formValue.targetType === '1' ? formValue.group : formValue.role,\n sla: formValue.sla || event.data.sla,\n properties: propertiesPayload,\n };\n\n // Update step via facade, passing isInitial flag\n this.workflowFacade\n .updateStep(stepId, stepPayload, isInitial)\n .subscribe({\n next: () => {\n console.log('Step updated successfully:', stepPayload);\n },\n error: (error) => {\n console.error('Failed to update step:', error);\n },\n });\n }\n break;\n\n case 'deleteNode':\n if (event.data) {\n const nodeIdToDelete = event.data.id;\n this.confirmationService.confirmDelete({\n type: 'dialog',\n\n accept: () => {\n this.workflowFacade.deleteStep(nodeIdToDelete).subscribe({\n next: () => {\n console.log('Node deleted:', nodeIdToDelete);\n },\n error: (error) => {\n console.error('Failed to delete node:', error);\n },\n });\n },\n reject: () => {},\n });\n }\n break;\n\n case 'createConnection':\n if (event.data) {\n // Create connection in store\n const connectionPayload = {\n sourceStepId: event.data.from,\n targetStepId: event.data.to,\n priority: event.data.priority ?? 1,\n formula: event.data.formula ?? [],\n };\n this.workflowFacade.createConnection(connectionPayload).subscribe({\n next: () => {\n console.log('Connection created:', event.data);\n },\n error: (error) => {\n console.error('Failed to create connection:', error);\n },\n });\n }\n break;\n\n case 'updateConnection':\n if (event.data) {\n // Update connection in store\n const connectionId = event.data.id;\n const updatePayload = {\n sourceStepId: event.data.from,\n targetStepId: event.data.to,\n priority: event.data.priority ?? 1,\n formula: event.data.formula ?? [],\n };\n this.workflowFacade\n .updateConnection(connectionId, updatePayload)\n .subscribe({\n next: () => {\n console.log('Connection updated:', event.data);\n },\n error: (error) => {\n console.error('Failed to update connection:', error);\n },\n });\n }\n break;\n\n case 'deleteConnection':\n if (event.data) {\n const connectionIdToDelete = event.data.id;\n // Delete connection from store\n this.workflowFacade.deleteConnection(connectionIdToDelete).subscribe({\n next: () => {\n console.log('Connection deleted:', connectionIdToDelete);\n },\n error: (error) => {\n console.error('Failed to delete connection:', error);\n },\n });\n }\n break;\n\n default:\n console.warn('Unknown structure action:', event.action);\n }\n }\n}\n","<div class=\"h-full relative\" id=\"workflow-builder-card\">\n @if (!loading()) {\n <mt-structure-builder\n class=\"flex-1\"\n [availableNodes]=\"availableNodes\"\n [connectionForm]=\"connectionForm()\"\n [nodeActions]=\"nodeActions()\"\n (nodeActionsEvent)=\"onNodeActionsEvent($event)\"\n [nodes]=\"steps()\"\n [connections]=\"connections()\"\n (action)=\"onStructureAction($event)\"\n [addModalType]=\"'drawer'\"\n [addModalStyleClass]=\"'!w-[25rem] !absolute !shadow-none'\"\n [updateModalStyleClass]=\"'!w-[25rem] !absolute !shadow-none'\"\n [addModalHeader]=\"'workflow.builder.addStep' | transloco\"\n [updateModalHeader]=\"'workflow.builder.editStep' | transloco\"\n [appendTo]=\"'workflow-builder-card'\"\n [nodeFields]=\"nodeFields()\"\n >\n <div flowContent>\n <!-- <div class=\"absolute top-4 left-4 z-10\">\n @if (workflows().length > 1) {\n <div class=\"flex flex-col gap-2 w-80\">\n <mt-card>\n <mt-select-field\n [options]=\"workflows()\"\n [ngModel]=\"selectedWorkflowId()\"\n (ngModelChange)=\"onWorkflowChange($event)\"\n optionLabel=\"displayName\"\n optionValue=\"id\"\n placeholder=\"Select Workflow\"\n />\n </mt-card>\n </div>\n }\n </div> -->\n <div class=\"absolute top-4 end-4 z-10\">\n <div class=\"flex flex-col gap-2 w-80\">\n <mt-card>\n <div class=\"flex items-center gap-10\">\n <div class=\"flex items-center gap-2\">\n <mt-button [severity]=\"'secondary'\" icon=\"dev.dataflow-01\" />\n <label>{{\n \"workflow.builder.enableWorkflow\" | transloco\n }}</label>\n </div>\n\n <mt-toggle-field\n [ngModel]=\"isPublished()\"\n (ngModelChange)=\"onPublishToggle($event)\"\n [disabled]=\"isPublishDisabled()\"\n ></mt-toggle-field>\n </div>\n </mt-card>\n </div>\n </div>\n </div>\n\n <ng-template\n #nodeDialog\n let-close=\"close\"\n let-save=\"save\"\n let-node=\"node\"\n >\n <div class=\"p-4\">\n @if (loadingStep()) {\n <!-- Loading skeleton -->\n <div class=\"space-y-4\">\n <!-- Tabs skeleton -->\n <div class=\"flex gap-2 mb-4\">\n <p-skeleton\n width=\"6rem\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n <p-skeleton\n width=\"8rem\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n\n <!-- Form fields skeleton -->\n <div class=\"space-y-4\">\n <div>\n <p-skeleton\n width=\"8rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"8rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"10rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"3rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"6rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"4rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n </div>\n </div>\n } @else {\n <!-- Actual content -->\n <mt-tabs\n [(active)]=\"selectedTab\"\n [options]=\"tabsList\"\n fluid\n size=\"large\"\n ></mt-tabs>\n @switch (selectedTab()) {\n @case (\"tab1\") {\n <div class=\"mt-4\">\n <mt-dynamic-form\n [formConfig]=\"nodeForm()\"\n [formControl]=\"nodeFormControl\"\n ></mt-dynamic-form>\n </div>\n }\n @case (\"tab2\") {\n <div class=\"mt-4\">\n <mt-table\n [data]=\"propertiesTableData()\"\n [columns]=\"propertiesColumns()\"\n [selectableRows]=\"false\"\n [showGridlines]=\"true\"\n [stripedRows]=\"true\"\n (cellChange)=\"onPropertyCellChange($event)\"\n ></mt-table>\n </div>\n }\n }\n }\n </div>\n </ng-template>\n </mt-structure-builder>\n }\n</div>\n","// store/app.state.ts\n\nimport { HttpContextToken } from '@angular/common/http';\n\nexport const REQUEST_CONTEXT = new HttpContextToken<{ useBaseUrl: boolean }>(\n () => ({\n useBaseUrl: false,\n }),\n);\n","// Re-export app state\nexport * from './app.state';\n\n// Re-export workflow state\nexport * from './workflow';\n","/*\n * Public API Surface of structure-builder\n */\n\nexport * from './lib/workflow-builder/workflow-builder';\n\nexport * from './store';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;MAEa,aAAa,CAAA;AAIN,IAAA,UAAA;AACA,IAAA,QAAA;AACA,IAAA,gBAAA;AACA,IAAA,cAAA;AACA,IAAA,UAAA;AAPlB,IAAA,OAAgB,IAAI,GAAG,4BAA4B;IAEnD,WAAA,CACkB,UAAkB,EAClB,QA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nB,WAAW;wBACX,WAAW;wBACX,KAAK;wBACL,QAAQ;wBACR,WAAW;wBACX,MAAM;wBACN,eAAe;;AAEhB,qBAAA,EAAA,IAAA,EAGK,EAAE,EAAA,QAAA,EAAA,qtMAAA,EAAA;;;AE/CV;AAIO,MAAM,eAAe,GAAG,IAAI,gBAAgB,CACjD,OAAO;AACL,IAAA,UAAU,EAAE,KAAK;AAClB,CAAA,CAAC;;ACPJ;;ACAA;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"masterteam-workflow.mjs","sources":["../../../../packages/masterteam/workflow/src/store/workflow/workflow.actions.ts","../../../../packages/masterteam/workflow/src/store/utils/state-helpers.ts","../../../../packages/masterteam/workflow/src/store/workflow/workflow.state.ts","../../../../packages/masterteam/workflow/src/store/workflow/workflow.facade.ts","../../../../packages/masterteam/workflow/src/store/workflow/api.model.ts","../../../../packages/masterteam/workflow/src/lib/workflow-builder/workflow-builder.ts","../../../../packages/masterteam/workflow/src/lib/workflow-builder/workflow-builder.html","../../../../packages/masterteam/workflow/src/store/app.state.ts","../../../../packages/masterteam/workflow/src/store/index.ts","../../../../packages/masterteam/workflow/src/public-api.ts","../../../../packages/masterteam/workflow/src/masterteam-workflow.ts"],"sourcesContent":["import type { ConnectionPayload, StepPayload } from './workflow.model';\n\nexport class SetModuleInfo {\n static readonly type = '[Workflow] Set Module Info';\n\n constructor(\n public readonly moduleType: string,\n public readonly moduleId: string | number,\n public readonly parentModuleType?: string,\n public readonly parentModuleId?: string | number,\n public readonly parentPath?: string,\n ) {}\n}\n\nexport class GetWorkflows {\n static readonly type = '[Workflow] Get Workflows';\n}\n\nexport class GetWorkflow {\n static readonly type = '[Workflow] Get Workflow';\n\n constructor(public readonly workflowId: string | number) {}\n}\n\nexport class GetFormulaProperties {\n static readonly type = '[Workflow] Get Formula Properties';\n}\n\nexport class GetGroups {\n static readonly type = '[Workflow] Get Groups';\n}\n\nexport class GetRolesForModule {\n static readonly type = '[Workflow] Get Roles For Module';\n}\n\nexport class GetStep {\n static readonly type = '[Workflow] Get Step';\n\n constructor(public readonly stepId: string | number) {}\n}\n\nexport class ValidateFlow {\n static readonly type = '[Workflow] Validate Flow';\n}\n\nexport class CreateStep {\n static readonly type = '[Workflow] Create Step';\n\n constructor(public readonly payload: StepPayload) {}\n}\n\nexport class UpdateStep {\n static readonly type = '[Workflow] Update Step';\n\n constructor(\n public readonly stepId: string | number,\n public readonly payload: StepPayload,\n public readonly isInitial?: boolean,\n ) {}\n}\n\nexport class CreateConnection {\n static readonly type = '[Workflow] Create Connection';\n\n constructor(public readonly payload: ConnectionPayload) {}\n}\n\nexport class UpdateConnection {\n static readonly type = '[Workflow] Update Connection';\n\n constructor(\n public readonly connectionId: string | number,\n public readonly payload: ConnectionPayload,\n ) {}\n}\n\nexport class PublishWorkflow {\n static readonly type = '[Workflow] Publish Workflow';\n\n constructor(public readonly isPublished: boolean) {}\n}\n\nexport class DeleteStep {\n static readonly type = '[Workflow] Delete Step';\n\n constructor(public readonly stepId: string | number) {}\n}\n\nexport class DeleteConnection {\n static readonly type = '[Workflow] Delete Connection';\n\n constructor(public readonly connectionId: string | number) {}\n}\n","import type { StateContext } from '@ngxs/store';\n\nexport interface LoadingStateShape<L extends string = string> {\n loadingActive: L[];\n errors: Partial<Record<L, string>>;\n}\n\ntype LoadingName<T extends LoadingStateShape<string>> =\n T['loadingActive'][number];\n\nexport function startLoading<T extends LoadingStateShape<string>>(\n ctx: StateContext<T>,\n loadingName: LoadingName<T>,\n): void {\n const { loadingActive, errors } = ctx.getState();\n\n if (!loadingActive.includes(loadingName)) {\n ctx.patchState({\n loadingActive: [...loadingActive, loadingName],\n } as Partial<T>);\n }\n\n if (errors && errors[loadingName]) {\n const { [loadingName]: _removed, ...rest } = errors;\n ctx.patchState({ errors: rest } as Partial<T>);\n }\n}\n\nexport function endLoading<T extends LoadingStateShape<string>>(\n ctx: StateContext<T>,\n loadingName: LoadingName<T>,\n): void {\n const { loadingActive } = ctx.getState();\n\n ctx.patchState({\n loadingActive: loadingActive.filter((name) => name !== loadingName),\n } as Partial<T>);\n}\n\nexport function setLoadingError<T extends LoadingStateShape<string>>(\n ctx: StateContext<T>,\n loadingName: LoadingName<T>,\n message: string,\n): void {\n const { errors } = ctx.getState();\n ctx.patchState({\n errors: { ...errors, [loadingName]: message },\n } as Partial<T>);\n}\n","import { HttpClient } from '@angular/common/http';\nimport { Injectable, inject } from '@angular/core';\nimport { Action, Selector, State, StateContext } from '@ngxs/store';\nimport { of } from 'rxjs';\nimport { catchError, finalize, tap } from 'rxjs/operators';\n\nimport {\n endLoading,\n setLoadingError,\n startLoading,\n} from '../utils/state-helpers';\n\nimport type {\n ConnectionResponse,\n FormulaProperty,\n GroupDefinition,\n PublishResponse,\n RoleDefinition,\n StepResponse,\n StepSchema,\n WorkflowConnection,\n WorkflowListItem,\n WorkflowLoadingName,\n WorkflowSchema,\n WorkflowStateModel,\n WorkflowStepSchema,\n} from './workflow.model';\nimport {\n CreateConnection,\n CreateStep,\n DeleteConnection,\n DeleteStep,\n GetFormulaProperties,\n GetGroups,\n GetRolesForModule,\n GetStep,\n GetWorkflow,\n GetWorkflows,\n PublishWorkflow,\n SetModuleInfo,\n UpdateConnection,\n UpdateStep,\n ValidateFlow,\n} from './workflow.actions';\nimport { Response } from './api.model';\n\nconst DEFAULT_STATE: WorkflowStateModel = {\n workflowId: null,\n moduleType: null,\n moduleId: null,\n workflows: [],\n workflow: null,\n formulaProperties: [],\n groups: [],\n roles: [],\n selectedStep: null,\n isFlowValid: null,\n loadingActive: [],\n errors: {},\n};\n\n@State<WorkflowStateModel>({\n name: 'workflow',\n defaults: DEFAULT_STATE,\n})\n@Injectable()\nexport class WorkflowState {\n private readonly http = inject(HttpClient);\n private readonly baseUrl = 'ProcessBuilder';\n private readonly groupsUrl = 'identity/Groups';\n private readonly rolesUrl = 'identity/roles/scopes';\n\n @Selector()\n static workflowId(state: WorkflowStateModel): string | number | null {\n return state.workflowId;\n }\n\n @Selector()\n static moduleType(state: WorkflowStateModel): string | null {\n return state.moduleType;\n }\n\n @Selector()\n static moduleId(state: WorkflowStateModel): string | number | null {\n return state.moduleId;\n }\n\n @Selector()\n static workflows(state: WorkflowStateModel) {\n return state.workflows;\n }\n\n @Selector()\n static workflow(state: WorkflowStateModel): WorkflowSchema | null {\n return state.workflow;\n }\n\n @Selector()\n static formulaProperties(state: WorkflowStateModel): FormulaProperty[] {\n return state.formulaProperties;\n }\n\n @Selector()\n static groups(state: WorkflowStateModel): GroupDefinition[] {\n return state.groups;\n }\n\n @Selector()\n static roles(state: WorkflowStateModel): RoleDefinition[] {\n return state.roles;\n }\n\n @Selector()\n static selectedStep(state: WorkflowStateModel): StepSchema | null {\n return state.selectedStep;\n }\n\n @Selector()\n static isFlowValid(state: WorkflowStateModel): boolean | null {\n return state.isFlowValid;\n }\n\n @Selector()\n static stepsSchema(state: WorkflowStateModel): WorkflowStepSchema[] {\n return state.workflow?.stepsSchema ?? [];\n }\n\n @Selector()\n static connections(state: WorkflowStateModel): WorkflowConnection[] {\n return state.workflow?.connections ?? [];\n }\n\n @Selector()\n static isLoadingFactory(state: WorkflowStateModel) {\n return (loadingName: WorkflowLoadingName) =>\n state.loadingActive.includes(loadingName);\n }\n\n @Selector()\n static errorFactory(state: WorkflowStateModel) {\n return (loadingName: WorkflowLoadingName) =>\n state.errors?.[loadingName] ?? null;\n }\n\n @Action(SetModuleInfo)\n setModuleInfo(ctx: StateContext<WorkflowStateModel>, action: SetModuleInfo) {\n let parentPath = '';\n if (action.parentModuleType && action.parentModuleId) {\n parentPath = `/${action.parentModuleType}/${action.parentModuleId}`;\n } else if (action.parentPath) {\n parentPath = action.parentPath;\n }\n ctx.patchState({\n moduleType: action.moduleType,\n moduleId: action.moduleId,\n parentModuleType: action.parentModuleType ?? null,\n parentModuleId: action.parentModuleId ?? null,\n parentPath: parentPath ?? '',\n });\n }\n\n @Action(GetWorkflows)\n getWorkflows(ctx: StateContext<WorkflowStateModel>, _action: GetWorkflows) {\n startLoading(ctx, 'getWorkflows');\n\n const state = ctx.getState();\n const { moduleId, parentPath, moduleType } = state;\n\n if (!moduleId) {\n const message = 'Module ID is not set';\n setLoadingError(ctx, 'getWorkflows', message);\n endLoading(ctx, 'getWorkflows');\n return of(null);\n }\n\n return this.http\n .get<\n Response<WorkflowListItem[]>\n >(`${this.baseUrl}${parentPath}/${moduleType}/${moduleId}/requestSchema`)\n .pipe(\n tap((response) => {\n const workflows = response?.data ?? [];\n ctx.patchState({ workflows });\n\n // Auto-select and load first workflow if available\n if (workflows.length > 0) {\n const firstWorkflow = workflows[0];\n ctx.patchState({ workflowId: firstWorkflow.id });\n ctx.dispatch(new GetWorkflow(firstWorkflow.id));\n }\n }),\n catchError((error) => {\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to load workflows';\n setLoadingError(ctx, 'getWorkflows', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'getWorkflows')),\n );\n }\n\n @Action(GetWorkflow)\n getWorkflow(ctx: StateContext<WorkflowStateModel>, action: GetWorkflow) {\n startLoading(ctx, 'getWorkflow');\n\n const state = ctx.getState();\n const workflowId = action.workflowId;\n const { moduleId, parentPath, moduleType } = state;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'getWorkflow', message);\n endLoading(ctx, 'getWorkflow');\n return of(null);\n }\n\n // Set the workflowId in state\n ctx.patchState({ workflowId });\n\n return this.http\n .get<Response<WorkflowSchema>>(\n `${this.baseUrl}${parentPath}/${moduleType}/${moduleId}/requestSchema/${workflowId}`,\n {\n params: { Mode: 'edit' },\n },\n )\n .pipe(\n tap((response) => {\n const workflow = response?.data ?? null;\n ctx.patchState({\n workflow,\n isFlowValid: workflow?.isValid ?? null,\n });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to load workflow';\n setLoadingError(ctx, 'getWorkflow', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'getWorkflow')),\n );\n }\n\n @Action(GetFormulaProperties)\n getFormulaProperties(\n ctx: StateContext<WorkflowStateModel>,\n _action: GetFormulaProperties,\n ) {\n startLoading(ctx, 'getFormulaProperties');\n\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'getFormulaProperties', message);\n endLoading(ctx, 'getFormulaProperties');\n return of(null);\n }\n\n return this.http\n .get<\n Response<FormulaProperty[]>\n >(`${this.baseUrl}/processFormulaProperties/${workflowId}`)\n .pipe(\n tap((response) => {\n const formulaProperties = Array.isArray(response?.data)\n ? response.data\n : [];\n ctx.patchState({ formulaProperties });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to load formula properties';\n setLoadingError(ctx, 'getFormulaProperties', message);\n return of([]);\n }),\n finalize(() => endLoading(ctx, 'getFormulaProperties')),\n );\n }\n\n @Action(GetGroups)\n getGroups(ctx: StateContext<WorkflowStateModel>, _action: GetGroups) {\n const state = ctx.getState();\n if (state.groups.length) {\n return of(state.groups);\n }\n\n startLoading(ctx, 'getGroups');\n\n return this.http.get<Response<GroupDefinition[]>>(this.groupsUrl).pipe(\n tap((response) => {\n const groups = Array.isArray(response?.data) ? response.data : [];\n ctx.patchState({ groups });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to load groups';\n setLoadingError(ctx, 'getGroups', message);\n return of([]);\n }),\n finalize(() => endLoading(ctx, 'getGroups')),\n );\n }\n\n @Action(GetRolesForModule)\n getRolesForModule(\n ctx: StateContext<WorkflowStateModel>,\n _action: GetRolesForModule,\n ) {\n const state = ctx.getState();\n const { moduleType, moduleId } = state;\n\n if (!moduleType || !moduleId) {\n const message = 'Module type and module ID must be set';\n setLoadingError(ctx, 'getRolesForModule', message);\n return of([]);\n }\n\n startLoading(ctx, 'getRolesForModule');\n\n return this.http\n .get<Response<RoleDefinition[]>>(\n `${this.rolesUrl}/${moduleType}/${moduleId}`,\n {\n params: { inherited: 'true' },\n },\n )\n .pipe(\n tap((response) => {\n const roles = Array.isArray(response?.data) ? response.data : [];\n ctx.patchState({ roles });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to load roles';\n setLoadingError(ctx, 'getRolesForModule', message);\n return of([]);\n }),\n finalize(() => endLoading(ctx, 'getRolesForModule')),\n );\n }\n\n @Action(GetStep)\n getStep(ctx: StateContext<WorkflowStateModel>, action: GetStep) {\n startLoading(ctx, 'getStep');\n\n return this.http\n .get<Response<StepSchema>>(\n `${this.baseUrl}/stepSchema/${action.stepId}`,\n {\n params: { Mode: 'edit' },\n },\n )\n .pipe(\n tap((response) => {\n const selectedStep = response?.data ?? null;\n ctx.patchState({ selectedStep });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to load step';\n setLoadingError(ctx, 'getStep', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'getStep')),\n );\n }\n\n @Action(ValidateFlow)\n validateFlow(ctx: StateContext<WorkflowStateModel>, _action: ValidateFlow) {\n startLoading(ctx, 'validateFlow');\n\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'validateFlow', message);\n endLoading(ctx, 'validateFlow');\n return of(null);\n }\n\n return this.http\n .get<\n Response<boolean>\n >(`${this.baseUrl}/requestSchema/${workflowId}/validity`)\n .pipe(\n tap((response) => {\n const isFlowValid = response?.data ?? null;\n ctx.patchState({ isFlowValid });\n }),\n catchError((error) => {\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to validate flow';\n setLoadingError(ctx, 'validateFlow', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'validateFlow')),\n );\n }\n\n @Action(CreateStep)\n createStep(ctx: StateContext<WorkflowStateModel>, action: CreateStep) {\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'createStep', message);\n return of(null);\n }\n\n const tempId = -Date.now();\n const tempStep: any = {\n ...action.payload,\n id: tempId,\n loading: true,\n };\n\n if (state.workflow) {\n ctx.patchState({\n workflow: {\n ...state.workflow,\n stepsSchema: [...state.workflow.stepsSchema, tempStep],\n },\n });\n }\n\n startLoading(ctx, 'createStep');\n\n return this.http\n .post<\n Response<StepResponse>\n >(`${this.baseUrl}/requestSchema/${workflowId}/stepSchema`, action.payload)\n .pipe(\n tap((response) => {\n const createdStep = response?.data;\n const currentState = ctx.getState();\n if (createdStep && currentState.workflow) {\n const updatedSteps = currentState.workflow.stepsSchema.map(\n (step) =>\n step.id === tempId ? { ...createdStep, loading: false } : step,\n );\n\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: updatedSteps,\n },\n });\n }\n // Validate flow after creating step\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n const filteredSteps = currentState.workflow.stepsSchema.filter(\n (step) => step.id !== tempId,\n );\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: filteredSteps,\n },\n });\n }\n\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to create step';\n setLoadingError(ctx, 'createStep', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'createStep')),\n );\n }\n\n @Action(UpdateStep)\n updateStep(ctx: StateContext<WorkflowStateModel>, action: UpdateStep) {\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'updateStep', message);\n return of(null);\n }\n\n if (state.workflow) {\n const updatedSteps = state.workflow.stepsSchema.map((step) =>\n step.id === action.stepId ? { ...step, loading: true } : step,\n );\n ctx.patchState({\n workflow: {\n ...state.workflow,\n stepsSchema: updatedSteps,\n },\n });\n }\n\n startLoading(ctx, 'updateStep');\n\n const endpoint = action.isInitial ? 'initialStepSchema' : 'stepSchema';\n\n return this.http\n .put<\n Response<StepResponse>\n >(`${this.baseUrl}/${endpoint}/${action.stepId}`, action.payload)\n .pipe(\n tap((response) => {\n const updatedStep = response?.data;\n const currentState = ctx.getState();\n if (updatedStep && currentState.workflow) {\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: currentState.workflow.stepsSchema.map((step) =>\n step.id === updatedStep.id\n ? { ...updatedStep, loading: false }\n : step,\n ),\n },\n });\n }\n // Validate flow after updating step\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n const errorSteps = currentState.workflow.stepsSchema.map((step) =>\n step.id === action.stepId ? { ...step, loading: false } : step,\n );\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: errorSteps,\n },\n });\n }\n\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to update step';\n setLoadingError(ctx, 'updateStep', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'updateStep')),\n );\n }\n\n @Action(CreateConnection)\n createConnection(\n ctx: StateContext<WorkflowStateModel>,\n action: CreateConnection,\n ) {\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'createConnection', message);\n return of(null);\n }\n\n const tempId = -Date.now();\n const tempConnection: any = {\n ...action.payload,\n id: tempId,\n loading: true,\n source: action.payload.sourceStepId,\n target: action.payload.targetStepId,\n };\n\n if (state.workflow) {\n ctx.patchState({\n workflow: {\n ...state.workflow,\n connections: [...state.workflow.connections, tempConnection],\n },\n });\n }\n\n startLoading(ctx, 'createConnection');\n\n return this.http\n .post<\n Response<ConnectionResponse>\n >(`${this.baseUrl}/requestSchema/${workflowId}/connection`, action.payload)\n .pipe(\n tap((response) => {\n const createdConnection = response?.data;\n const currentState = ctx.getState();\n if (createdConnection && currentState.workflow) {\n const updatedConnections = currentState.workflow.connections.map(\n (conn) =>\n conn.id === tempId\n ? { ...createdConnection, loading: false }\n : conn,\n );\n\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: updatedConnections,\n },\n });\n }\n // Validate flow after creating connection\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n const filteredConnections =\n currentState.workflow.connections.filter(\n (conn) => conn.id !== tempId,\n );\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: filteredConnections,\n },\n });\n }\n\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to create connection';\n setLoadingError(ctx, 'createConnection', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'createConnection')),\n );\n }\n\n @Action(UpdateConnection)\n updateConnection(\n ctx: StateContext<WorkflowStateModel>,\n action: UpdateConnection,\n ) {\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'updateConnection', message);\n return of(null);\n }\n\n if (state.workflow) {\n const updatedConnections = state.workflow.connections.map((conn) =>\n conn.id === action.connectionId ? { ...conn, loading: true } : conn,\n );\n ctx.patchState({\n workflow: {\n ...state.workflow,\n connections: updatedConnections,\n },\n });\n }\n\n startLoading(ctx, 'updateConnection');\n\n return this.http\n .put<\n Response<ConnectionResponse>\n >(`${this.baseUrl}/stepSchemaConnection/${action.connectionId}`, action.payload)\n .pipe(\n tap((response) => {\n const updatedConnection = response?.data;\n const currentState = ctx.getState();\n if (updatedConnection && currentState.workflow) {\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: currentState.workflow.connections.map((conn) =>\n conn.id === updatedConnection.id\n ? { ...updatedConnection, loading: false }\n : conn,\n ),\n },\n });\n }\n // Validate flow after updating connection\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n const errorConnections = currentState.workflow.connections.map(\n (conn) =>\n conn.id === action.connectionId\n ? { ...conn, loading: false }\n : conn,\n );\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: errorConnections,\n },\n });\n }\n\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to update connection';\n setLoadingError(ctx, 'updateConnection', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'updateConnection')),\n );\n }\n\n @Action(PublishWorkflow)\n publishWorkflow(\n ctx: StateContext<WorkflowStateModel>,\n action: PublishWorkflow,\n ) {\n startLoading(ctx, 'publishWorkflow');\n\n const state = ctx.getState();\n const workflowId = state.workflowId;\n\n if (!workflowId) {\n const message = 'Workflow ID is not set';\n setLoadingError(ctx, 'publishWorkflow', message);\n endLoading(ctx, 'publishWorkflow');\n return of(null);\n }\n\n return this.http\n .put<\n Response<PublishResponse>\n >(`${this.baseUrl}/requestSchema/${workflowId}/publish`, { IsPublished: action.isPublished })\n .pipe(\n tap((response) => {\n const publishedData = response?.data;\n if (publishedData && state.workflow) {\n ctx.patchState({\n workflow: {\n ...state.workflow,\n isPublished: publishedData.isPublished,\n isValid: publishedData.isValid,\n },\n });\n }\n }),\n catchError((error) => {\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to publish workflow';\n setLoadingError(ctx, 'publishWorkflow', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'publishWorkflow')),\n );\n }\n\n @Action(DeleteStep)\n deleteStep(ctx: StateContext<WorkflowStateModel>, action: DeleteStep) {\n const state = ctx.getState();\n\n if (state.workflow) {\n // Mark step as loading\n const updatedSteps = state.workflow.stepsSchema.map((step) =>\n step.id == action.stepId ? { ...step, loading: true } : step,\n );\n\n // Filter out all connections related to this step\n const updatedConnections = state.workflow.connections.filter(\n (conn) => conn.source != action.stepId && conn.target != action.stepId,\n );\n\n ctx.patchState({\n workflow: {\n ...state.workflow,\n stepsSchema: updatedSteps,\n connections: updatedConnections,\n },\n });\n }\n\n startLoading(ctx, 'deleteStep');\n\n return this.http\n .delete<Response<boolean>>(`${this.baseUrl}/stepSchema/${action.stepId}`)\n .pipe(\n tap(() => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: currentState.workflow.stepsSchema.filter(\n (step) => step.id != action.stepId,\n ),\n },\n });\n }\n // Validate flow after deleting step\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n // Restore step loading state\n const errorSteps = currentState.workflow.stepsSchema.map((step) =>\n step.id == action.stepId ? { ...step, loading: false } : step,\n );\n\n // Restore connections related to this step from original state\n const relatedConnections =\n state.workflow?.connections.filter(\n (conn) =>\n conn.source == action.stepId || conn.target == action.stepId,\n ) || [];\n\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n stepsSchema: errorSteps,\n connections: [\n ...currentState.workflow.connections,\n ...relatedConnections,\n ],\n },\n });\n }\n\n const message =\n error?.error?.message ?? error?.message ?? 'Failed to delete step';\n setLoadingError(ctx, 'deleteStep', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'deleteStep')),\n );\n }\n\n @Action(DeleteConnection)\n deleteConnection(\n ctx: StateContext<WorkflowStateModel>,\n action: DeleteConnection,\n ) {\n const state = ctx.getState();\n\n if (state.workflow) {\n const updatedConnections = state.workflow.connections.map((conn) =>\n conn.id == action.connectionId ? { ...conn, loading: true } : conn,\n );\n ctx.patchState({\n workflow: {\n ...state.workflow,\n connections: updatedConnections,\n },\n });\n }\n\n startLoading(ctx, 'deleteConnection');\n\n return this.http\n .delete<\n Response<boolean>\n >(`${this.baseUrl}/stepSchemaConnection/${action.connectionId}`)\n .pipe(\n tap(() => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: currentState.workflow.connections.filter(\n (conn) => conn.id != action.connectionId,\n ),\n },\n });\n }\n // Validate flow after deleting connection\n ctx.dispatch(new ValidateFlow());\n }),\n catchError((error) => {\n const currentState = ctx.getState();\n if (currentState.workflow) {\n const errorConnections = currentState.workflow.connections.map(\n (conn) =>\n conn.id == action.connectionId\n ? { ...conn, loading: false }\n : conn,\n );\n ctx.patchState({\n workflow: {\n ...currentState.workflow,\n connections: errorConnections,\n },\n });\n }\n\n const message =\n error?.error?.message ??\n error?.message ??\n 'Failed to delete connection';\n setLoadingError(ctx, 'deleteConnection', message);\n return of(null);\n }),\n finalize(() => endLoading(ctx, 'deleteConnection')),\n );\n }\n}\n","import { Injectable, computed, inject } from '@angular/core';\nimport { select, Store } from '@ngxs/store';\nimport type { Observable } from 'rxjs';\n\nimport type {\n ConnectionPayload,\n FormulaProperty,\n GroupDefinition,\n RoleDefinition,\n StepPayload,\n StepSchema,\n WorkflowConnection,\n WorkflowListItem,\n WorkflowLoadingName,\n WorkflowSchema,\n WorkflowStepSchema,\n} from './workflow.model';\nimport {\n CreateConnection,\n CreateStep,\n DeleteConnection,\n DeleteStep,\n GetFormulaProperties,\n GetGroups,\n GetRolesForModule,\n GetStep,\n GetWorkflow,\n GetWorkflows,\n PublishWorkflow,\n SetModuleInfo,\n UpdateConnection,\n UpdateStep,\n ValidateFlow,\n} from './workflow.actions';\nimport { WorkflowState } from './workflow.state';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WorkflowFacade {\n private readonly store = inject(Store);\n\n readonly workflowId = select<string | number | null>(\n WorkflowState.workflowId,\n );\n readonly moduleType = select<string | null>(WorkflowState.moduleType);\n readonly moduleId = select<string | number | null>(WorkflowState.moduleId);\n readonly workflows = select<WorkflowListItem[]>(WorkflowState.workflows);\n readonly workflow = select<WorkflowSchema | null>(WorkflowState.workflow);\n readonly formulaProperties = select<FormulaProperty[]>(\n WorkflowState.formulaProperties,\n );\n readonly groups = select<GroupDefinition[]>(WorkflowState.groups);\n readonly roles = select<RoleDefinition[]>(WorkflowState.roles);\n readonly selectedStep = select<StepSchema | null>(WorkflowState.selectedStep);\n readonly isFlowValid = select<boolean | null>(WorkflowState.isFlowValid);\n readonly steps = select<WorkflowStepSchema[]>(WorkflowState.stepsSchema);\n readonly connections = select<WorkflowConnection[]>(\n WorkflowState.connections,\n );\n\n isLoading(loadingName: WorkflowLoadingName) {\n const loadingFactory = select<(name: WorkflowLoadingName) => boolean>(\n WorkflowState.isLoadingFactory,\n );\n return computed(() => loadingFactory()(loadingName));\n }\n\n error(loadingName: WorkflowLoadingName) {\n const errorFactory = select<(name: WorkflowLoadingName) => string | null>(\n WorkflowState.errorFactory,\n );\n return computed(() => errorFactory()(loadingName));\n }\n setModuleInfo(\n moduleType: string,\n moduleId: string | number,\n parentModuleType?: string,\n parentModuleId?: string | number,\n parentPath?: string,\n ): Observable<unknown> {\n return this.store.dispatch(\n new SetModuleInfo(\n moduleType,\n moduleId,\n parentModuleType,\n parentModuleId,\n parentPath,\n ),\n );\n }\n\n loadWorkflows(): Observable<unknown> {\n return this.store.dispatch(new GetWorkflows());\n }\n\n selectWorkflow(workflowId: string | number): Observable<unknown> {\n return this.store.dispatch(new GetWorkflow(workflowId));\n }\n\n loadWorkflow(): Observable<unknown> {\n return this.loadWorkflows();\n }\n\n loadFormulaProperties(): Observable<unknown> {\n return this.store.dispatch(new GetFormulaProperties());\n }\n\n loadGroups(): Observable<unknown> {\n return this.store.dispatch(new GetGroups());\n }\n\n loadRolesForModule(): Observable<unknown> {\n return this.store.dispatch(new GetRolesForModule());\n }\n\n loadStep(stepId: string | number): Observable<unknown> {\n return this.store.dispatch(new GetStep(stepId));\n }\n\n validateFlow(): Observable<unknown> {\n return this.store.dispatch(new ValidateFlow());\n }\n\n createStep(payload: StepPayload): Observable<unknown> {\n return this.store.dispatch(new CreateStep(payload));\n }\n\n updateStep(\n stepId: string | number,\n payload: StepPayload,\n isInitial?: boolean,\n ): Observable<unknown> {\n return this.store.dispatch(new UpdateStep(stepId, payload, isInitial));\n }\n\n createConnection(payload: ConnectionPayload): Observable<unknown> {\n return this.store.dispatch(new CreateConnection(payload));\n }\n\n updateConnection(\n connectionId: string | number,\n payload: ConnectionPayload,\n ): Observable<unknown> {\n return this.store.dispatch(new UpdateConnection(connectionId, payload));\n }\n\n publishWorkflow(isPublished: boolean): Observable<unknown> {\n return this.store.dispatch(new PublishWorkflow(isPublished));\n }\n\n deleteStep(stepId: string | number): Observable<unknown> {\n return this.store.dispatch(new DeleteStep(stepId));\n }\n\n deleteConnection(connectionId: string | number): Observable<unknown> {\n return this.store.dispatch(new DeleteConnection(connectionId));\n }\n}\n","// shared/models/api.model.ts\n\nexport interface Response<T> {\n endpoint: string;\n status: number;\n code: number;\n locale: string;\n message?: string | null;\n errors?: any | null;\n data: T;\n cacheSession?: string;\n}\n","import {\n Component,\n inject,\n linkedSignal,\n signal,\n computed,\n effect,\n} from '@angular/core';\nimport { DynamicFormConfig } from '@masterteam/components';\nimport { Card } from '@masterteam/components/card';\nimport {\n NodeActionEvent,\n SBAction,\n StructureBuilder,\n} from '@masterteam/structure-builder';\nimport { WorkflowFacade, WorkflowStepSchema } from '../../store/workflow';\nimport { CellChangeEvent } from '@masterteam/components/table';\nimport { Tabs } from '@masterteam/components/tabs';\nimport { FormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { DynamicForm } from '@masterteam/forms/dynamic-form';\nimport { Table } from '@masterteam/components/table';\nimport { ColumnDef } from '@masterteam/components/table';\nimport { Skeleton } from 'primeng/skeleton';\nimport { ToggleField } from '@masterteam/components/toggle-field';\nimport { Button } from '@masterteam/components/button';\nimport { TranslocoModule, TranslocoService } from '@jsverse/transloco';\n// import { SelectField } from '@masterteam/components/select-field';\nimport { ConfirmationService } from '@masterteam/components/confirmation';\n\n@Component({\n selector: 'mt-workflow-builder',\n imports: [\n StructureBuilder,\n Card,\n Tabs,\n ReactiveFormsModule,\n FormsModule,\n DynamicForm,\n Table,\n Skeleton,\n ToggleField,\n Button,\n TranslocoModule,\n // SelectField,\n ],\n templateUrl: './workflow-builder.html',\n styles: [],\n host: {},\n})\nexport class WorkflowBuilder {\n private workflowFacade = inject(WorkflowFacade);\n private transloco = inject(TranslocoService);\n groups = this.workflowFacade.groups;\n roles = this.workflowFacade.roles;\n workflows = this.workflowFacade.workflows;\n workflow = this.workflowFacade.workflow;\n loading = this.workflowFacade.isLoading('getWorkflow');\n loadingStep = this.workflowFacade.isLoading('getStep');\n isFlowValid = this.workflowFacade.isFlowValid;\n\n selectedStep = this.workflowFacade.selectedStep;\n selectedWorkflowId = computed(() => this.workflow()?.id);\n private readonly confirmationService = inject(ConfirmationService);\n\n selectedTab = signal<any>('tab1');\n nodeFields = signal<any>({\n name: 'title',\n });\n nodeFormControl = new FormControl();\n isPublished = signal<boolean>(false);\n isPublishDisabled = computed(() => !this.isFlowValid());\n\n private isEditingInitialNode = signal<boolean>(false);\n\n // Properties table data - writable signal that can be updated when loading step details\n private _propertiesTableData = signal<any[]>([]);\n\n // Computed that initializes from workflow properties\n propertiesTableData = computed(() => {\n const currentData = this._propertiesTableData();\n if (currentData.length > 0) {\n return currentData;\n }\n\n const properties = this.workflow()?.properties || [];\n return properties.map((prop) => ({\n id: prop.id,\n name: prop.property.title,\n isVisible: false,\n isEditable: false,\n _original: prop, // Keep original for reference\n }));\n });\n\n // Table columns configuration\n propertiesColumns = signal<ColumnDef[]>([\n {\n key: 'name',\n label: this.transloco.translate('workflow.builder.columnName'),\n type: 'text',\n },\n {\n key: 'isVisible',\n label: this.transloco.translate('workflow.builder.columnVisible'),\n type: 'boolean',\n },\n {\n key: 'isEditable',\n label: this.transloco.translate('workflow.builder.columnEditable'),\n type: 'boolean',\n },\n ]);\n\n tabsList = [\n {\n label: this.transloco.translate('workflow.builder.tabSettings'),\n value: 'tab1',\n },\n {\n label: this.transloco.translate('workflow.builder.tabProperties'),\n value: 'tab2',\n },\n ];\n availableNodes = [\n {\n id: 'FormStep',\n label: this.transloco.translate('workflow.builder.newStep'),\n name: {\n en: 'Form Step',\n ar: 'خطوة النموذج',\n },\n targetType: '1',\n icon: 'general.plus-circle',\n color: '#000000',\n },\n ];\n\n // Base form sections - defined once for reusability\n private readonly baseNameFields = {\n key: 'settings',\n type: 'none',\n bodyClass: 'space-y-2',\n fields: [\n {\n key: 'title.en',\n label: this.transloco.translate('workflow.builder.nameEnglish'),\n placeholder: this.transloco.translate(\n 'workflow.builder.enterNameEnglish',\n ),\n cssClass: 'w-full',\n required: true,\n },\n {\n key: 'title.ar',\n label: this.transloco.translate('workflow.builder.nameArabic'),\n placeholder: this.transloco.translate(\n 'workflow.builder.enterNameArabic',\n ),\n cssClass: 'w-full',\n required: true,\n },\n ],\n };\n\n // Approver section with dynamic options\n private readonly approverSection = computed(() => ({\n key: 'settings',\n type: 'header',\n label: this.transloco.translate('workflow.builder.approver'),\n headerClass:\n 'rounded-t-xl bg-slate-50 px-4 py-3 text-sm font-semibold text-slate-900 border border-slate-200 border-b-0',\n bodyClass: 'rounded-b-xl border border-slate-200 p-4 space-y-3',\n cssClass: ' ',\n fields: [\n {\n key: 'targetType',\n type: 'radio-button',\n orientation: 'horizontal',\n defaultValue: '1',\n options: [\n {\n label: this.transloco.translate('workflow.builder.group'),\n value: '1',\n },\n {\n label: this.transloco.translate('workflow.builder.role'),\n value: '2',\n },\n ],\n optionLabel: 'label',\n optionValue: 'value',\n placeholder: 'Enter Role',\n cssClass: 'flex items-center gap-6 text-sm text-slate-700',\n required: true,\n },\n {\n key: 'group',\n label: 'Select',\n placeholder: this.transloco.translate('workflow.builder.selectGroup'),\n cssClass: 'mt-2 pt-3 border-t border-slate-200 w-full',\n required: true,\n type: 'select',\n options: this.groups(),\n optionLabel: 'title',\n optionValue: 'id',\n relations: [{ key: 'targetType', value: '1', action: 'show' }],\n },\n {\n key: 'role',\n label: 'Select',\n placeholder: 'Enter target value',\n cssClass: 'mt-2 pt-3 border-t border-slate-200 w-full',\n required: true,\n type: 'select',\n options: this.roles(),\n optionLabel: 'title',\n optionValue: 'id',\n relations: [{ key: 'targetType', value: '2', action: 'show' }],\n },\n ],\n }));\n\n private readonly slaSection = {\n key: 'slaSection',\n type: 'none',\n bodyClass: 'space-y-1',\n fields: [\n {\n key: 'sla',\n label: this.transloco.translate('workflow.builder.sla'),\n placeholder: this.transloco.translate('workflow.builder.enterSla'),\n cssClass: 'w-full',\n required: true,\n },\n ],\n } as const;\n\n // Dynamic form configuration using computed signal\n // Automatically rebuilds when isEditingInitialNode changes\n nodeForm = linkedSignal<DynamicFormConfig>(() => {\n const sections: any[] = [this.baseNameFields];\n\n // Conditionally include approver and SLA sections based on isEditingInitialNode\n // Initial nodes only show name fields\n if (!this.isEditingInitialNode()) {\n sections.push(this.approverSection());\n sections.push(this.slaSection);\n }\n\n return {\n sections,\n layout: {},\n };\n });\n\n // Computed signal for form state info - useful for debugging or UI indicators\n formStateInfo = computed(() => ({\n isInitialNode: this.isEditingInitialNode(),\n sectionsCount: this.nodeForm().sections.length,\n hasApproverSection: !this.isEditingInitialNode(),\n hasSlaSection: !this.isEditingInitialNode(),\n formMode: this.isEditingInitialNode() ? 'initial-node' : 'standard-node',\n }));\n\n // Sample connection form configuration\n connectionForm = signal<DynamicFormConfig>({\n sections: [\n {\n key: 'basic',\n label: 'Basic Information',\n type: 'none',\n cssClass: 'p-4',\n order: 1,\n fields: [\n {\n key: 'priority',\n label: 'Priority',\n },\n ],\n },\n ],\n });\n\n // Nodes currently in the flow (with positions) - linked to store via selectors\n steps = computed(() => {\n return this.workflowFacade.steps().map((step) => ({\n ...step,\n color: '#000000',\n }));\n });\n\n // Connections between nodes (matching your design) - linked to store via selectors\n connections = computed(() => {\n return this.workflowFacade.connections().map((connection) => ({\n ...connection,\n from: connection.source,\n to: connection.target,\n }));\n });\n\n // Node Actions\n nodeActions = signal([\n {\n key: 'edit',\n icon: 'general.edit-05',\n variant: 'outlined',\n size: 'small',\n tooltip: 'Edit',\n },\n {\n key: 'delete',\n icon: 'general.trash-01',\n variant: 'outlined',\n size: 'small',\n severity: 'danger',\n tooltip: 'Delete',\n condition: (node: WorkflowStepSchema) => !node.isInitial,\n },\n ]);\n\n constructor() {\n // Effect to initialize isPublished from workflow.isPublished\n effect(() => {\n const workflow = this.workflow();\n if (workflow && workflow.isPublished !== undefined) {\n this.isPublished.set(workflow.isPublished);\n }\n });\n\n // Effect to watch selectedStep and patch form when it changes\n effect(() => {\n const step = this.selectedStep();\n\n if (step) {\n // Patch form with complete step data including targetType and targetValue\n this.nodeFormControl.patchValue({\n title: step.title,\n targetType: step.targetType || '1',\n group: step.targetType === '1' ? parseInt(step.targetValue!) : null,\n role: step.targetType === '2' ? step.targetValue : null,\n sla: step.sla,\n });\n\n // Update properties table with step's property permissions\n const properties = this.workflow()?.properties || [];\n const updatedTableData = properties.map((prop) => {\n const stepProperty = step.properties?.find(\n (p) => p.propertyId === prop.id,\n );\n\n return {\n id: prop.id,\n name: prop?.property?.title,\n isVisible: stepProperty?.isRead || false,\n isEditable: stepProperty?.isWrite || false,\n _original: prop,\n };\n });\n\n this._propertiesTableData.set(updatedTableData);\n }\n });\n }\n\n onNodeActionsEvent(event: NodeActionEvent) {\n console.log('Node action event:', event);\n }\n\n onPublishToggle(isPublished: boolean): void {\n // Prevent publishing if workflow is not valid\n if (isPublished && !this.isFlowValid()) {\n console.warn('Cannot publish: Workflow is not valid');\n this.isPublished.set(false);\n return;\n }\n\n this.workflowFacade.publishWorkflow(isPublished).subscribe({\n error: (error) => {\n console.error('Failed to update workflow publish status:', error);\n // Revert the toggle on error\n this.isPublished.set(!isPublished);\n },\n });\n }\n\n onWorkflowChange(workflowId: number): void {\n console.log('Workflow changed to:', workflowId);\n this.workflowFacade.selectWorkflow(workflowId);\n }\n\n clearForm(): void {\n // Reset isEditingInitialNode flag\n this.isEditingInitialNode.set(false);\n\n // Reset form to default values\n this.nodeFormControl.reset({\n name: { en: '', ar: '' },\n targetType: '1',\n group: null,\n role: null,\n sla: 0,\n });\n\n // Reset properties table to default state (all unchecked)\n const properties = this.workflow()?.properties || [];\n const resetTableData = properties.map((prop) => ({\n id: prop.id,\n name: prop?.property?.title,\n isVisible: false,\n isEditable: false,\n _original: prop,\n }));\n\n this._propertiesTableData.set(resetTableData);\n\n // Reset to first tab\n this.selectedTab.set('tab1');\n\n console.log('Form and properties cleared for new step');\n }\n\n onPropertyCellChange(event: CellChangeEvent): void {\n if (event.type !== 'boolean') return;\n\n switch (event.column) {\n case 'isEditable':\n if (event.value) event.row.isVisible = true;\n break;\n case 'isVisible':\n if (!event.value) event.row.isEditable = false;\n break;\n }\n }\n\n onStructureAction(event: SBAction) {\n console.log('Structure action received:', event);\n\n switch (event.action) {\n case 'createNode':\n if (event.data) {\n // Get form values\n const formValue = this.nodeFormControl.value;\n\n // Get selected properties with isVisible and isEditable flags\n const propertiesPayload = this.propertiesTableData()\n .filter((prop) => prop.isVisible || prop.isEditable)\n .map((prop) => ({\n PropertyId: prop.id,\n isRead: prop.isVisible,\n isWrite: prop.isEditable,\n }));\n\n // Prepare step payload\n const stepPayload = {\n title: formValue.title,\n targetType: formValue.targetType,\n targetValue:\n formValue.targetType === '1' ? formValue.group : formValue.role,\n sla: formValue.sla || 0,\n properties: propertiesPayload,\n };\n\n // Create step via facade\n this.workflowFacade.createStep(stepPayload).subscribe({\n next: () => {\n console.log('Step created successfully:', stepPayload);\n },\n error: (error) => {\n console.error('Failed to create step:', error);\n },\n });\n }\n break;\n case 'startUpdating':\n if (event.data) {\n this.clearForm();\n\n const stepId = event.data.id;\n\n // Set the flag based on whether node is initial\n // This will trigger nodeForm to rebuild automatically via linkedSignal\n this.isEditingInitialNode.set(!!event.data.isInitial);\n\n // Load step data\n this.workflowFacade.loadStep(stepId);\n }\n break;\n case 'startCreating':\n // Reset form and properties for new step\n this.clearForm();\n break;\n case 'updateNode':\n if (event.data) {\n // Get form values\n const formValue = this.nodeFormControl.value;\n const stepId = event.data.id;\n const isInitial = !!event.data.isInitial;\n\n // Get selected properties with isVisible and isEditable flags\n const propertiesPayload = this.propertiesTableData()\n .filter((prop) => prop.isVisible || prop.isEditable)\n .map((prop) => ({\n PropertyId: prop.id,\n isRead: prop.isVisible,\n isWrite: prop.isEditable,\n }));\n\n // Prepare step payload\n const stepPayload = {\n title: formValue.title,\n targetType: formValue.targetType,\n targetValue:\n formValue.targetType === '1' ? formValue.group : formValue.role,\n sla: formValue.sla || event.data.sla,\n properties: propertiesPayload,\n };\n\n // Update step via facade, passing isInitial flag\n this.workflowFacade\n .updateStep(stepId, stepPayload, isInitial)\n .subscribe({\n next: () => {\n console.log('Step updated successfully:', stepPayload);\n },\n error: (error) => {\n console.error('Failed to update step:', error);\n },\n });\n }\n break;\n\n case 'deleteNode':\n if (event.data) {\n const nodeIdToDelete = event.data.id;\n this.confirmationService.confirmDelete({\n type: 'dialog',\n\n accept: () => {\n this.workflowFacade.deleteStep(nodeIdToDelete).subscribe({\n next: () => {\n console.log('Node deleted:', nodeIdToDelete);\n },\n error: (error) => {\n console.error('Failed to delete node:', error);\n },\n });\n },\n reject: () => {},\n });\n }\n break;\n\n case 'createConnection':\n if (event.data) {\n // Create connection in store\n const connectionPayload = {\n sourceStepId: event.data.from,\n targetStepId: event.data.to,\n priority: event.data.priority ?? 1,\n formula: event.data.formula ?? [],\n };\n this.workflowFacade.createConnection(connectionPayload).subscribe({\n next: () => {\n console.log('Connection created:', event.data);\n },\n error: (error) => {\n console.error('Failed to create connection:', error);\n },\n });\n }\n break;\n\n case 'updateConnection':\n if (event.data) {\n // Update connection in store\n const connectionId = event.data.id;\n const updatePayload = {\n sourceStepId: event.data.from,\n targetStepId: event.data.to,\n priority: event.data.priority ?? 1,\n formula: event.data.formula ?? [],\n };\n this.workflowFacade\n .updateConnection(connectionId, updatePayload)\n .subscribe({\n next: () => {\n console.log('Connection updated:', event.data);\n },\n error: (error) => {\n console.error('Failed to update connection:', error);\n },\n });\n }\n break;\n\n case 'deleteConnection':\n if (event.data) {\n const connectionIdToDelete = event.data.id;\n // Delete connection from store\n this.workflowFacade.deleteConnection(connectionIdToDelete).subscribe({\n next: () => {\n console.log('Connection deleted:', connectionIdToDelete);\n },\n error: (error) => {\n console.error('Failed to delete connection:', error);\n },\n });\n }\n break;\n\n default:\n console.warn('Unknown structure action:', event.action);\n }\n }\n}\n","<div class=\"h-full relative\" id=\"workflow-builder-card\">\n @if (!loading()) {\n <mt-structure-builder\n class=\"flex-1\"\n [availableNodes]=\"availableNodes\"\n [connectionForm]=\"connectionForm()\"\n [nodeActions]=\"nodeActions()\"\n (nodeActionsEvent)=\"onNodeActionsEvent($event)\"\n [nodes]=\"steps()\"\n [connections]=\"connections()\"\n (action)=\"onStructureAction($event)\"\n [addModalType]=\"'drawer'\"\n [addModalStyleClass]=\"'!w-[25rem] !absolute !shadow-none'\"\n [updateModalStyleClass]=\"'!w-[25rem] !absolute !shadow-none'\"\n [addModalHeader]=\"'workflow.builder.addStep' | transloco\"\n [updateModalHeader]=\"'workflow.builder.editStep' | transloco\"\n [appendTo]=\"'workflow-builder-card'\"\n [nodeFields]=\"nodeFields()\"\n >\n <div flowContent>\n <!-- <div class=\"absolute top-4 left-4 z-10\">\n @if (workflows().length > 1) {\n <div class=\"flex flex-col gap-2 w-80\">\n <mt-card>\n <mt-select-field\n [options]=\"workflows()\"\n [ngModel]=\"selectedWorkflowId()\"\n (ngModelChange)=\"onWorkflowChange($event)\"\n optionLabel=\"displayName\"\n optionValue=\"id\"\n placeholder=\"Select Workflow\"\n />\n </mt-card>\n </div>\n }\n </div> -->\n <div class=\"absolute top-4 end-4 z-10\">\n <div class=\"flex flex-col gap-2 w-80\">\n <mt-card>\n <div class=\"flex items-center gap-10\">\n <div class=\"flex items-center gap-2\">\n <mt-button [severity]=\"'secondary'\" icon=\"dev.dataflow-01\" />\n <label>{{\n \"workflow.builder.enableWorkflow\" | transloco\n }}</label>\n </div>\n\n <mt-toggle-field\n [ngModel]=\"isPublished()\"\n (ngModelChange)=\"onPublishToggle($event)\"\n [disabled]=\"isPublishDisabled()\"\n ></mt-toggle-field>\n </div>\n </mt-card>\n </div>\n </div>\n </div>\n\n <ng-template\n #nodeDialog\n let-close=\"close\"\n let-save=\"save\"\n let-node=\"node\"\n >\n <div class=\"p-4\">\n @if (loadingStep()) {\n <!-- Loading skeleton -->\n <div class=\"space-y-4\">\n <!-- Tabs skeleton -->\n <div class=\"flex gap-2 mb-4\">\n <p-skeleton\n width=\"6rem\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n <p-skeleton\n width=\"8rem\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n\n <!-- Form fields skeleton -->\n <div class=\"space-y-4\">\n <div>\n <p-skeleton\n width=\"8rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"8rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"10rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"3rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"6rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n <div>\n <p-skeleton\n width=\"4rem\"\n height=\"1rem\"\n styleClass=\"mb-2\"\n ></p-skeleton>\n <p-skeleton\n width=\"100%\"\n height=\"2.5rem\"\n borderRadius=\"0.5rem\"\n ></p-skeleton>\n </div>\n </div>\n </div>\n } @else {\n <!-- Actual content -->\n <mt-tabs\n [(active)]=\"selectedTab\"\n [options]=\"tabsList\"\n fluid\n size=\"large\"\n ></mt-tabs>\n @switch (selectedTab()) {\n @case (\"tab1\") {\n <div class=\"mt-4\">\n <mt-dynamic-form\n [formConfig]=\"nodeForm()\"\n [formControl]=\"nodeFormControl\"\n ></mt-dynamic-form>\n </div>\n }\n @case (\"tab2\") {\n <div class=\"mt-4\">\n <mt-table\n [data]=\"propertiesTableData()\"\n [columns]=\"propertiesColumns()\"\n [selectableRows]=\"false\"\n [showGridlines]=\"true\"\n [stripedRows]=\"true\"\n (cellChange)=\"onPropertyCellChange($event)\"\n ></mt-table>\n </div>\n }\n }\n }\n </div>\n </ng-template>\n </mt-structure-builder>\n }\n</div>\n","// store/app.state.ts\n\nimport { HttpContextToken } from '@angular/common/http';\n\nexport const REQUEST_CONTEXT = new HttpContextToken<{ useBaseUrl: boolean }>(\n () => ({\n useBaseUrl: false,\n }),\n);\n","// Re-export app state\nexport * from './app.state';\n\n// Re-export workflow state\nexport * from './workflow';\n","/*\n * Public API Surface of structure-builder\n */\n\nexport * from './lib/workflow-builder/workflow-builder';\n\nexport * from './store';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;MAEa,aAAa,CAAA;AAIN,IAAA,UAAA;AACA,IAAA,QAAA;AACA,IAAA,gBAAA;AACA,IAAA,cAAA;AACA,IAAA,UAAA;AAPlB,IAAA,OAAgB,IAAI,GAAG,4BAA4B;IAEnD,WAAA,CACkB,UAAkB,EAClB,QAAyB,EACzB,gBAAyB,EACzB,cAAgC,EAChC,UAAmB,EAAA;QAJnB,IAAA,CAAA,UAAU,GAAV,UAAU;QACV,IAAA,CAAA,QAAQ,GAAR,QAAQ;QACR,IAAA,CAAA,gBAAgB,GAAhB,gBAAgB;QAChB,IAAA,CAAA,cAAc,GAAd,cAAc;QACd,IAAA,CAAA,UAAU,GAAV,UAAU;IACzB;;MAGQ,YAAY,CAAA;AACvB,IAAA,OAAgB,IAAI,GAAG,0BAA0B;;MAGtC,WAAW,CAAA;AAGM,IAAA,UAAA;AAF5B,IAAA,OAAgB,IAAI,GAAG,yBAAyB;AAEhD,IAAA,WAAA,CAA4B,UAA2B,EAAA;QAA3B,IAAA,CAAA,UAAU,GAAV,UAAU;IAAoB;;MAG/C,oBAAoB,CAAA;AAC/B,IAAA,OAAgB,IAAI,GAAG,mCAAm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AA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,aAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,CAAA;;2FAON,eAAe,EAAA,UAAA,EAAA,CAAA;kBApB3B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,qBAAqB,EAAA,OAAA,EACtB;wBACP,gBAAgB;wBAChB,IAAI;wBACJ,IAAI;wBACJ,mBAAmB;wBACnB,WAAW;wBACX,WAAW;wBACX,KAAK;wBACL,QAAQ;wBACR,WAAW;wBACX,MAAM;wBACN,eAAe;;AAEhB,qBAAA,EAAA,IAAA,EAGK,EAAE,EAAA,QAAA,EAAA,qtMAAA,EAAA;;;AE/CV;AAIO,MAAM,eAAe,GAAG,IAAI,gBAAgB,CACjD,OAAO;AACL,IAAA,UAAU,EAAE,KAAK;AAClB,CAAA,CAAC;;ACPJ;;ACAA;;AAEG;;ACFH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@masterteam/workflow",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "publishConfig": {
5
5
  "directory": ".",
6
6
  "linkDirectory": false,
7
7
  "access": "public"
8
8
  },
9
9
  "peerDependencies": {
10
- "@angular/common": "^20.1.3",
11
- "@angular/core": "^20.1.3",
12
- "@angular/forms": "^20.1.3",
13
- "@primeuix/themes": "^1.2.2",
14
- "@tailwindcss/postcss": "^4.1.11",
10
+ "@angular/common": "^21.0.1",
11
+ "@angular/core": "^21.0.1",
12
+ "@angular/forms": "^21.0.1",
13
+ "@primeuix/themes": "^2.0.1",
14
+ "@tailwindcss/postcss": "^4.1.17",
15
15
  "postcss": "^8.5.6",
16
- "primeng": "^20.0.1",
16
+ "primeng": "21.0.0-beta.1",
17
17
  "rxjs": "^7.8.2",
18
- "tailwindcss": "^4.1.11",
18
+ "tailwindcss": "^4.1.17",
19
19
  "tailwindcss-primeui": "^0.6.1",
20
20
  "@ngxs/store": "^20.1.0",
21
21
  "@masterteam/components": "x",
@@ -38,10 +38,10 @@
38
38
  "default": "./package.json"
39
39
  },
40
40
  ".": {
41
- "types": "./index.d.ts",
41
+ "types": "./types/masterteam-workflow.d.ts",
42
42
  "default": "./fesm2022/masterteam-workflow.mjs"
43
43
  }
44
44
  },
45
45
  "module": "fesm2022/masterteam-workflow.mjs",
46
- "typings": "index.d.ts"
46
+ "typings": "types/masterteam-workflow.d.ts"
47
47
  }
File without changes