@masterteam/workflow 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -10
- package/assets/i18n/ar.json +35 -30
- package/assets/i18n/en.json +35 -30
- package/assets/workflow.css +2 -2
- package/fesm2022/masterteam-workflow.mjs +95 -75
- package/fesm2022/masterteam-workflow.mjs.map +1 -1
- package/package.json +6 -5
- package/types/masterteam-workflow.d.ts +18 -6
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
1
|
import * as _masterteam_workflow from '@masterteam/workflow';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { DynamicFormConfig } from '@masterteam/components';
|
|
4
|
-
import {
|
|
4
|
+
import { SBAction } from '@masterteam/structure-builder';
|
|
5
5
|
import { ColumnDef, CellChangeEvent } from '@masterteam/components/table';
|
|
6
6
|
import { FormControl } from '@angular/forms';
|
|
7
|
+
import { ModalService } from '@masterteam/components/modal';
|
|
7
8
|
import { HttpContextToken } from '@angular/common/http';
|
|
8
9
|
import * as rxjs from 'rxjs';
|
|
9
10
|
import { Observable } from 'rxjs';
|
|
@@ -112,6 +113,7 @@ interface StepSchema {
|
|
|
112
113
|
targetType?: string;
|
|
113
114
|
targetValue?: string;
|
|
114
115
|
properties: StepPropertyItem[];
|
|
116
|
+
hasNotification: boolean;
|
|
115
117
|
}
|
|
116
118
|
interface StepPropertyPayload {
|
|
117
119
|
PropertyId: number;
|
|
@@ -335,7 +337,14 @@ declare class WorkflowState {
|
|
|
335
337
|
|
|
336
338
|
declare class WorkflowBuilder {
|
|
337
339
|
private workflowFacade;
|
|
340
|
+
private notificationFacade;
|
|
338
341
|
private transloco;
|
|
342
|
+
readonly modal: ModalService;
|
|
343
|
+
mainTab: _angular_core.WritableSignal<string>;
|
|
344
|
+
mainTabsList: {
|
|
345
|
+
label: string;
|
|
346
|
+
value: string;
|
|
347
|
+
}[];
|
|
339
348
|
groups: _angular_core.Signal<_masterteam_workflow.GroupDefinition[]>;
|
|
340
349
|
roles: _angular_core.Signal<_masterteam_workflow.RoleDefinition[]>;
|
|
341
350
|
workflows: _angular_core.Signal<_masterteam_workflow.WorkflowListItem[]>;
|
|
@@ -351,14 +360,14 @@ declare class WorkflowBuilder {
|
|
|
351
360
|
nodeFormControl: FormControl<any>;
|
|
352
361
|
isPublished: _angular_core.WritableSignal<boolean>;
|
|
353
362
|
isPublishDisabled: _angular_core.Signal<boolean>;
|
|
354
|
-
|
|
363
|
+
isEditingInitialNode: _angular_core.WritableSignal<boolean>;
|
|
355
364
|
private _propertiesTableData;
|
|
356
365
|
propertiesTableData: _angular_core.Signal<any[]>;
|
|
357
366
|
propertiesColumns: _angular_core.WritableSignal<ColumnDef[]>;
|
|
358
|
-
tabsList: {
|
|
367
|
+
tabsList: _angular_core.Signal<{
|
|
359
368
|
label: string;
|
|
360
369
|
value: string;
|
|
361
|
-
}[]
|
|
370
|
+
}[]>;
|
|
362
371
|
availableNodes: {
|
|
363
372
|
id: string;
|
|
364
373
|
label: string;
|
|
@@ -419,13 +428,16 @@ declare class WorkflowBuilder {
|
|
|
419
428
|
tooltip: string;
|
|
420
429
|
condition: (node: WorkflowStepSchema) => boolean;
|
|
421
430
|
})[]>;
|
|
431
|
+
readonly showHideControl: FormControl<boolean | null>;
|
|
422
432
|
constructor();
|
|
423
|
-
|
|
433
|
+
onMainTabChange(tab: string): void;
|
|
434
|
+
onNodeDialogTabChange(tab: string): void;
|
|
424
435
|
onPublishToggle(isPublished: boolean): void;
|
|
425
436
|
onWorkflowChange(workflowId: number): void;
|
|
426
437
|
clearForm(): void;
|
|
427
438
|
onPropertyCellChange(event: CellChangeEvent): void;
|
|
428
439
|
onStructureAction(event: SBAction): void;
|
|
440
|
+
openNotificationsModal(): void;
|
|
429
441
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WorkflowBuilder, never>;
|
|
430
442
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<WorkflowBuilder, "mt-workflow-builder", never, {}, {}, never, never, true, never>;
|
|
431
443
|
}
|