UNPKG

sequential-workflow-designer-angular

Version:

Angular wrapper for Sequential Workflow Designer component.

1 lines 19.9 kB
{"version":3,"file":"sequential-workflow-designer-angular.mjs","sources":["../../designer/src/designer.component.ts","../../designer/src/designer.component.html","../../designer/src/sequential-workflow-designer.module.ts","../../designer/src/sequential-workflow-designer-angular.ts"],"sourcesContent":["import {\n\tAfterViewInit,\n\tApplicationRef,\n\tComponent,\n\tElementRef,\n\tEmbeddedViewRef,\n\tEventEmitter,\n\tInput,\n\tNgZone,\n\tOnChanges,\n\tOnDestroy,\n\tOutput,\n\tSimpleChanges,\n\tTemplateRef,\n\tViewChild\n} from '@angular/core';\nimport {\n\tCustomActionHandler,\n\tDefinition,\n\tDesigner,\n\tDesignerExtension,\n\tRootEditorContext,\n\tRootEditorProvider,\n\tKeyboardConfiguration,\n\tStep,\n\tStepEditorContext,\n\tStepEditorProvider,\n\tStepsConfiguration,\n\tToolboxConfiguration,\n\tUidGenerator,\n\tValidatorConfiguration,\n\tPlaceholderConfiguration,\n\tI18n,\n\tPreferenceStorage\n} from 'sequential-workflow-designer';\n\nexport interface RootEditorWrapper {\n\tdefinition: Definition;\n\tcontext: RootEditorContext;\n\tisReadonly: boolean;\n}\n\nexport interface StepEditorWrapper {\n\tstep: Step;\n\tdefinition: Definition;\n\tcontext: StepEditorContext;\n\tisReadonly: boolean;\n}\n\nexport type AngularToolboxConfiguration = Omit<ToolboxConfiguration, 'isCollapsed'>;\n\n@Component({\n\tselector: 'sqd-designer',\n\ttemplateUrl: './designer.component.html'\n})\nexport class DesignerComponent implements AfterViewInit, OnChanges, OnDestroy {\n\tprivate designer?: Designer;\n\tprivate lastEmbeddedView?: EmbeddedViewRef<unknown>;\n\n\t@ViewChild('placeholder', { static: true })\n\tprivate placeholder?: ElementRef<HTMLElement>;\n\n\t@Input('theme')\n\tpublic theme?: string;\n\t@Input('undoStackSize')\n\tpublic undoStackSize?: number;\n\t@Input('definition')\n\tpublic definition?: Definition;\n\t@Input('stepsConfiguration')\n\tpublic stepsConfiguration?: StepsConfiguration;\n\t@Input('validatorConfiguration')\n\tpublic validatorConfiguration?: ValidatorConfiguration;\n\t@Input('placeholderConfiguration')\n\tpublic placeholderConfiguration?: PlaceholderConfiguration;\n\t@Input('toolboxConfiguration')\n\tpublic toolboxConfiguration?: AngularToolboxConfiguration | false;\n\t@Input('controlBar')\n\tpublic controlBar?: boolean;\n\t@Input('contextMenu')\n\tpublic contextMenu?: boolean;\n\t@Input('keyboard')\n\tpublic keyboard?: boolean | KeyboardConfiguration;\n\t@Input('preferenceStorage')\n\tpublic preferenceStorage?: PreferenceStorage;\n\t@Input('extensions')\n\tpublic extensions?: DesignerExtension[];\n\t@Input('i18n')\n\tpublic i18n?: I18n;\n\t@Input('customActionHandler')\n\tpublic customActionHandler?: CustomActionHandler;\n\t@Input('isReadonly')\n\tpublic isReadonly?: boolean;\n\t@Input('selectedStepId')\n\tpublic selectedStepId?: string | null;\n\t@Input('uidGenerator')\n\tpublic uidGenerator?: UidGenerator;\n\t@Input('isToolboxCollapsed')\n\tpublic isToolboxCollapsed?: boolean;\n\t@Input('isEditorCollapsed')\n\tpublic isEditorCollapsed?: boolean;\n\n\t@Input('areEditorsHidden')\n\tpublic areEditorsHidden?: boolean;\n\t@Input('rootEditor')\n\tpublic rootEditor?: TemplateRef<unknown> | RootEditorProvider;\n\t@Input('stepEditor')\n\tpublic stepEditor?: TemplateRef<unknown> | StepEditorProvider;\n\n\t@Output()\n\tpublic readonly onReady = new EventEmitter<Designer>();\n\t@Output()\n\tpublic readonly onDefinitionChanged = new EventEmitter<Definition>();\n\t@Output()\n\tpublic readonly onSelectedStepIdChanged = new EventEmitter<string | null>();\n\t@Output()\n\tpublic readonly onIsToolboxCollapsedChanged = new EventEmitter<boolean>();\n\t@Output()\n\tpublic readonly onIsEditorCollapsedChanged = new EventEmitter<boolean>();\n\n\tpublic constructor(\n\t\tprivate readonly ngZone: NgZone,\n\t\tprivate readonly applicationRef: ApplicationRef\n\t) {}\n\n\tpublic ngAfterViewInit() {\n\t\tthis.attach();\n\t}\n\n\tpublic ngOnChanges(changes: SimpleChanges) {\n\t\tconst isFirstChange = Object.keys(changes).every(key => changes[key].firstChange);\n\t\tif (isFirstChange) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this.designer) {\n\t\t\tconst isSameDefinition = !changes['definition'] || changes['definition'].currentValue === this.designer.getDefinition();\n\t\t\tif (isSameDefinition) {\n\t\t\t\tconst isReadonlyChange = changes['isReadonly'];\n\t\t\t\tif (isReadonlyChange && isReadonlyChange.currentValue !== this.designer.isReadonly()) {\n\t\t\t\t\tthis.designer.setIsReadonly(isReadonlyChange.currentValue);\n\t\t\t\t}\n\n\t\t\t\tconst selectedStepIdChange = changes['selectedStepId'];\n\t\t\t\tif (selectedStepIdChange && selectedStepIdChange.currentValue !== this.designer.getSelectedStepId()) {\n\t\t\t\t\tif (selectedStepIdChange.currentValue) {\n\t\t\t\t\t\tthis.designer.selectStepById(selectedStepIdChange.currentValue);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthis.designer.clearSelectedStep();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tconst isToolboxCollapsedChange = changes['isToolboxCollapsed'];\n\t\t\t\tif (isToolboxCollapsedChange && isToolboxCollapsedChange.currentValue !== this.designer.isToolboxCollapsed()) {\n\t\t\t\t\tthis.designer.setIsToolboxCollapsed(isToolboxCollapsedChange.currentValue);\n\t\t\t\t}\n\n\t\t\t\tconst isEditorCollapsedChange = changes['isEditorCollapsed'];\n\t\t\t\tif (isEditorCollapsedChange && isEditorCollapsedChange.currentValue !== this.designer.isEditorCollapsed()) {\n\t\t\t\t\tthis.designer.setIsEditorCollapsed(isEditorCollapsedChange.currentValue);\n\t\t\t\t}\n\n\t\t\t\t// The same reference of the definition = no change.\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tthis.attach();\n\t}\n\n\tpublic ngOnDestroy(): void {\n\t\tif (this.lastEmbeddedView) {\n\t\t\tthis.applicationRef.detachView(this.lastEmbeddedView);\n\t\t\tthis.lastEmbeddedView.destroy();\n\t\t}\n\t}\n\n\tprivate attach() {\n\t\tthis.ngZone.runOutsideAngular(() => {\n\t\t\tif (!this.placeholder) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (!this.definition) {\n\t\t\t\tthrow new Error('Input \"definition\" is not set');\n\t\t\t}\n\t\t\tif (!this.stepsConfiguration) {\n\t\t\t\tthrow new Error('Input \"stepsConfiguration\" is not set');\n\t\t\t}\n\t\t\tif (this.toolboxConfiguration === undefined) {\n\t\t\t\tthrow new Error('Input \"toolboxConfiguration\" is not set');\n\t\t\t}\n\t\t\tif (this.controlBar === undefined) {\n\t\t\t\tthrow new Error('Input \"controlBar\" is not set');\n\t\t\t}\n\n\t\t\tif (this.designer) {\n\t\t\t\tthis.designer.destroy();\n\t\t\t\tthis.designer = undefined;\n\t\t\t}\n\n\t\t\tlet customActionHandler = this.customActionHandler;\n\t\t\tif (customActionHandler) {\n\t\t\t\tconst cah = customActionHandler;\n\t\t\t\tcustomActionHandler = (action, step, sequence, context) => {\n\t\t\t\t\tthis.ngZone.run(() => cah(action, step, sequence, context));\n\t\t\t\t};\n\t\t\t}\n\n\t\t\tconst designer = Designer.create(this.placeholder.nativeElement, this.definition, {\n\t\t\t\ttheme: this.theme,\n\t\t\t\tundoStackSize: this.undoStackSize,\n\t\t\t\teditors: this.areEditorsHidden\n\t\t\t\t\t? false\n\t\t\t\t\t: {\n\t\t\t\t\t\t\tisCollapsed: this.isEditorCollapsed,\n\t\t\t\t\t\t\trootEditorProvider: this.rootEditorProvider,\n\t\t\t\t\t\t\tstepEditorProvider: this.stepEditorProvider\n\t\t\t\t\t\t},\n\t\t\t\tsteps: this.stepsConfiguration,\n\t\t\t\tvalidator: this.validatorConfiguration,\n\t\t\t\tplaceholder: this.placeholderConfiguration,\n\t\t\t\ttoolbox: this.toolboxConfiguration\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tisCollapsed: this.isToolboxCollapsed,\n\t\t\t\t\t\t\t...this.toolboxConfiguration\n\t\t\t\t\t\t}\n\t\t\t\t\t: false,\n\t\t\t\tcontrolBar: this.controlBar,\n\t\t\t\tcontextMenu: this.contextMenu,\n\t\t\t\tkeyboard: this.keyboard,\n\t\t\t\tpreferenceStorage: this.preferenceStorage,\n\t\t\t\textensions: this.extensions,\n\t\t\t\tisReadonly: this.isReadonly,\n\t\t\t\ti18n: this.i18n,\n\t\t\t\tuidGenerator: this.uidGenerator,\n\t\t\t\tcustomActionHandler\n\t\t\t});\n\t\t\tdesigner.onReady.subscribe(() => {\n\t\t\t\tthis.ngZone.run(() => this.onReady.emit(designer));\n\t\t\t});\n\t\t\tdesigner.onDefinitionChanged.subscribe(definition => {\n\t\t\t\tthis.ngZone.run(() => this.onDefinitionChanged.emit(definition));\n\t\t\t});\n\t\t\tdesigner.onSelectedStepIdChanged.subscribe(stepId => {\n\t\t\t\tthis.ngZone.run(() => this.onSelectedStepIdChanged.emit(stepId));\n\t\t\t});\n\t\t\tdesigner.onIsToolboxCollapsedChanged.subscribe(isCollapsed => {\n\t\t\t\tthis.ngZone.run(() => this.onIsToolboxCollapsedChanged.emit(isCollapsed));\n\t\t\t});\n\t\t\tdesigner.onIsEditorCollapsedChanged.subscribe(isCollapsed => {\n\t\t\t\tthis.ngZone.run(() => this.onIsEditorCollapsedChanged.emit(isCollapsed));\n\t\t\t});\n\t\t\tthis.designer = designer;\n\n\t\t\tif (this.selectedStepId) {\n\t\t\t\tthis.designer.selectStepById(this.selectedStepId);\n\t\t\t}\n\t\t});\n\t}\n\n\tprivate readonly rootEditorProvider = (definition: Definition, context: RootEditorContext, isReadonly: boolean) => {\n\t\tif (!this.rootEditor) {\n\t\t\tthrow new Error('Input \"rootEditor\" is not set');\n\t\t}\n\t\tif (typeof this.rootEditor === 'function') {\n\t\t\treturn this.rootEditor(definition, context, isReadonly);\n\t\t}\n\t\treturn this.editorProvider<RootEditorWrapper>(this.rootEditor, {\n\t\t\tdefinition,\n\t\t\tcontext,\n\t\t\tisReadonly\n\t\t});\n\t};\n\n\tprivate readonly stepEditorProvider = (step: Step, context: StepEditorContext, definition: Definition, isReadonly: boolean) => {\n\t\tif (!this.stepEditor) {\n\t\t\tthrow new Error('Input \"stepEditor\" is not set');\n\t\t}\n\t\tif (typeof this.stepEditor === 'function') {\n\t\t\treturn this.stepEditor(step, context, definition, isReadonly);\n\t\t}\n\t\treturn this.editorProvider<StepEditorWrapper>(this.stepEditor, {\n\t\t\tstep,\n\t\t\tcontext,\n\t\t\tdefinition,\n\t\t\tisReadonly\n\t\t});\n\t};\n\n\tprivate editorProvider<E>(templateRef: TemplateRef<unknown>, editor: E) {\n\t\treturn this.ngZone.run(() => {\n\t\t\tif (this.lastEmbeddedView) {\n\t\t\t\tthis.applicationRef.detachView(this.lastEmbeddedView);\n\t\t\t\tthis.lastEmbeddedView.destroy();\n\t\t\t\tthis.lastEmbeddedView = undefined;\n\t\t\t}\n\n\t\t\tthis.lastEmbeddedView = templateRef.createEmbeddedView({\n\t\t\t\t$implicit: editor\n\t\t\t});\n\t\t\tthis.applicationRef.attachView(this.lastEmbeddedView);\n\n\t\t\tconst container = document.createElement('div');\n\t\t\tcontainer.className = 'sqd-editor-angular';\n\t\t\tfor (const node of this.lastEmbeddedView.rootNodes) {\n\t\t\t\tcontainer.appendChild(node);\n\t\t\t}\n\t\t\treturn container;\n\t\t});\n\t}\n}\n","<div #placeholder class=\"sqd-designer-angular\"></div>\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { DesignerComponent } from './designer.component';\n\n@NgModule({\n\tdeclarations: [DesignerComponent],\n\timports: [CommonModule],\n\texports: [DesignerComponent]\n})\nexport class SequentialWorkflowDesignerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAuDa,iBAAiB,CAAA;IAgE7B,WACkB,CAAA,MAAc,EACd,cAA8B,EAAA;QAD9B,IAAM,CAAA,MAAA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