@masterteam/task-schedule 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/task-schedule",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/task-schedule",
|
|
6
6
|
"linkDirectory": false,
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"primeng": "21.0.1",
|
|
21
21
|
"tailwindcss": "^4.1.17",
|
|
22
22
|
"tailwindcss-primeui": "^0.6.1",
|
|
23
|
-
"@masterteam/
|
|
24
|
-
"@masterteam/
|
|
23
|
+
"@masterteam/components": "^0.0.101",
|
|
24
|
+
"@masterteam/icons": "^0.0.13"
|
|
25
25
|
},
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"exports": {
|
|
@@ -9,14 +9,27 @@ import * as _masterteam_task_schedule from '@masterteam/task-schedule';
|
|
|
9
9
|
type TaskScheduleModelKey = 'default' | 'edit' | 'baseline' | 'criticalPath' | 'resources' | 'unscheduled' | 'phaseGate' | 'custom';
|
|
10
10
|
type TaskScheduleModelAlias = 'critical-path' | 'criticalpath' | 'critical path' | 'phase-gate' | 'phasegate' | 'phase gate' | 'resource' | 'resource-view' | 'resourceview' | 'unscheduled-task' | 'unscheduled task' | 'scheduling' | 'view' | 'defauilt' | 'custom-view';
|
|
11
11
|
type TaskScheduleModelType = TaskScheduleModelKey | TaskScheduleModelAlias | string;
|
|
12
|
+
interface TaskScheduleModeOption {
|
|
13
|
+
value: TaskScheduleModelType;
|
|
14
|
+
label?: string;
|
|
15
|
+
}
|
|
12
16
|
declare function normalizeTaskScheduleModelType(modelType: TaskScheduleModelType): TaskScheduleModelKey;
|
|
13
17
|
interface TaskScheduleContext {
|
|
14
18
|
levelId: number | string;
|
|
19
|
+
modelType?: TaskScheduleModelType;
|
|
15
20
|
schemaId?: number | string;
|
|
16
21
|
levelDataId?: number | string;
|
|
17
22
|
customViewId?: number | string;
|
|
18
23
|
apiBaseUrl?: string;
|
|
19
24
|
scheduleViewKey?: string;
|
|
25
|
+
dateFormat?: string;
|
|
26
|
+
height?: string;
|
|
27
|
+
modeOptions?: TaskScheduleModeOption[];
|
|
28
|
+
allowEditMode?: boolean;
|
|
29
|
+
allowImport?: boolean;
|
|
30
|
+
allowSetBaseline?: boolean;
|
|
31
|
+
hasTasks?: boolean;
|
|
32
|
+
baselinePending?: boolean;
|
|
20
33
|
resources?: Array<Record<string, unknown>>;
|
|
21
34
|
endpoints?: TaskScheduleContextEndpoints;
|
|
22
35
|
pdfFonts?: TaskSchedulePdfFonts;
|
|
@@ -34,14 +47,7 @@ interface TaskSchedulePdfFonts {
|
|
|
34
47
|
}
|
|
35
48
|
interface TaskScheduleContextEndpoints {
|
|
36
49
|
scheduleTree?: string;
|
|
37
|
-
scheduleTreeDefault?: string;
|
|
38
|
-
scheduleTreeEdit?: string;
|
|
39
|
-
scheduleTreeBaseline?: string;
|
|
40
|
-
scheduleTreeCriticalPath?: string;
|
|
41
|
-
scheduleTreeResources?: string;
|
|
42
|
-
scheduleTreeUnscheduled?: string;
|
|
43
50
|
scheduleTreePhaseGate?: string;
|
|
44
|
-
scheduleTreeCustom?: string;
|
|
45
51
|
scheduleManagerBase?: string;
|
|
46
52
|
scheduleViewById?: string;
|
|
47
53
|
scheduleViewsByLevel?: string;
|
|
@@ -220,14 +226,7 @@ declare class TaskSchedule implements OnInit, OnDestroy {
|
|
|
220
226
|
private readonly operationSub;
|
|
221
227
|
private readonly contextAddTask;
|
|
222
228
|
private readonly customProperties;
|
|
223
|
-
readonly modelType: _angular_core.InputSignal<string>;
|
|
224
229
|
readonly context: _angular_core.InputSignal<TaskScheduleContext | null>;
|
|
225
|
-
readonly dateFormat: _angular_core.InputSignal<string>;
|
|
226
|
-
readonly height: _angular_core.InputSignal<string>;
|
|
227
|
-
readonly langCode: _angular_core.InputSignal<"en" | "ar" | null>;
|
|
228
|
-
readonly pdfFontData: _angular_core.InputSignal<string | null>;
|
|
229
|
-
readonly pdfRtlFontData: _angular_core.InputSignal<string | null>;
|
|
230
|
-
readonly pdfFontSize: _angular_core.InputSignal<number>;
|
|
231
230
|
readonly toolbarAction: _angular_core.OutputEmitterRef<string>;
|
|
232
231
|
readonly actionBegin: _angular_core.OutputEmitterRef<any>;
|
|
233
232
|
readonly actionCompleted: _angular_core.OutputEmitterRef<any>;
|
|
@@ -238,6 +237,9 @@ declare class TaskSchedule implements OnInit, OnDestroy {
|
|
|
238
237
|
readonly dataSource: _angular_core.WritableSignal<TaskScheduleTask[]>;
|
|
239
238
|
readonly ganttConfig: _angular_core.WritableSignal<TaskScheduleGanttConfig>;
|
|
240
239
|
readonly ganttId: string;
|
|
240
|
+
readonly resolvedModelTypeInput: _angular_core.Signal<string>;
|
|
241
|
+
readonly resolvedDateFormat: _angular_core.Signal<string>;
|
|
242
|
+
readonly resolvedHeight: _angular_core.Signal<string>;
|
|
241
243
|
readonly resolvedModelType: _angular_core.Signal<TaskScheduleModelKey>;
|
|
242
244
|
readonly resolvedLangCode: _angular_core.Signal<"en" | "ar">;
|
|
243
245
|
readonly isEditMode: _angular_core.Signal<boolean>;
|
|
@@ -306,13 +308,29 @@ declare class TaskSchedule implements OnInit, OnDestroy {
|
|
|
306
308
|
private readLegacyHolidays;
|
|
307
309
|
formatDateValue(value: unknown): string;
|
|
308
310
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TaskSchedule, never>;
|
|
309
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TaskSchedule, "mt-task-schedule", never, { "
|
|
311
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TaskSchedule, "mt-task-schedule", never, { "context": { "alias": "context"; "required": false; "isSignal": true; }; }, { "toolbarAction": "toolbarAction"; "actionBegin": "actionBegin"; "actionCompleted": "actionCompleted"; "loaded": "loaded"; "loadError": "loadError"; }, never, never, true, never>;
|
|
310
312
|
}
|
|
311
313
|
|
|
312
314
|
declare const TASK_SCHEDULE_DATA_ADAPTER: InjectionToken<TaskScheduleDataAdapter>;
|
|
313
315
|
declare class TaskScheduleBackendAdapter implements TaskScheduleDataAdapter {
|
|
314
316
|
private readonly http;
|
|
315
317
|
load(modelType: TaskScheduleModelType, context: TaskScheduleContext): Observable<TaskScheduleDataResult>;
|
|
318
|
+
private resolveReadPayload;
|
|
319
|
+
private loadScheduleQueryPayload;
|
|
320
|
+
private loadScheduleUtilityPayload;
|
|
321
|
+
private loadLegacyPhaseGatePayload;
|
|
322
|
+
private composeFetchPayload;
|
|
323
|
+
private resolveFetchRootRecords;
|
|
324
|
+
private toFetchSchemaMap;
|
|
325
|
+
private mapFetchRecords;
|
|
326
|
+
private mapFetchRecord;
|
|
327
|
+
private readFetchCustomProps;
|
|
328
|
+
private mapFetchCustomProperties;
|
|
329
|
+
private mergeFetchCustomProperties;
|
|
330
|
+
private readFetchCellRaw;
|
|
331
|
+
private readFetchCellValue;
|
|
332
|
+
private readFetchCellDisplay;
|
|
333
|
+
private readFetchOrder;
|
|
316
334
|
createTask(context: TaskScheduleContext, payload: TaskScheduleTaskMutation): Observable<unknown>;
|
|
317
335
|
updateTask(context: TaskScheduleContext, taskId: number | string, payload: TaskScheduleTaskMutation): Observable<unknown>;
|
|
318
336
|
deleteTask(context: TaskScheduleContext, taskId: number | string): Observable<unknown>;
|
|
@@ -415,7 +433,6 @@ declare class TaskScheduleImportModal {
|
|
|
415
433
|
private readonly adapter;
|
|
416
434
|
readonly visible: _angular_core.InputSignal<boolean>;
|
|
417
435
|
readonly context: _angular_core.InputSignal<TaskScheduleContext | null>;
|
|
418
|
-
readonly langCode: _angular_core.InputSignal<"en" | "ar" | null>;
|
|
419
436
|
readonly title: _angular_core.InputSignal<string | null>;
|
|
420
437
|
readonly maxRows: _angular_core.InputSignal<number>;
|
|
421
438
|
readonly closed: _angular_core.OutputEmitterRef<void>;
|
|
@@ -494,27 +511,13 @@ declare class TaskScheduleImportModal {
|
|
|
494
511
|
private getErrorMessage;
|
|
495
512
|
private emitError;
|
|
496
513
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TaskScheduleImportModal, never>;
|
|
497
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TaskScheduleImportModal, "mt-task-schedule-import-modal", never, { "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "
|
|
514
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TaskScheduleImportModal, "mt-task-schedule-import-modal", never, { "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "maxRows": { "alias": "maxRows"; "required": false; "isSignal": true; }; }, { "closed": "closed"; "imported": "imported"; "applied": "applied"; "failed": "failed"; }, never, never, true, never>;
|
|
498
515
|
}
|
|
499
516
|
|
|
500
|
-
interface TaskScheduleModeOption {
|
|
501
|
-
value: TaskScheduleModelType;
|
|
502
|
-
label?: string;
|
|
503
|
-
}
|
|
504
517
|
declare class TaskScheduleShell {
|
|
505
518
|
private readonly adapter;
|
|
506
519
|
private readonly queueService;
|
|
507
520
|
readonly context: _angular_core.InputSignal<TaskScheduleContext | null>;
|
|
508
|
-
readonly langCode: _angular_core.InputSignal<"en" | "ar" | null>;
|
|
509
|
-
readonly dateFormat: _angular_core.InputSignal<string>;
|
|
510
|
-
readonly height: _angular_core.InputSignal<string>;
|
|
511
|
-
readonly modelType: _angular_core.InputSignal<string>;
|
|
512
|
-
readonly modeOptions: _angular_core.InputSignal<TaskScheduleModeOption[] | null>;
|
|
513
|
-
readonly allowEditMode: _angular_core.InputSignal<boolean>;
|
|
514
|
-
readonly allowImport: _angular_core.InputSignal<boolean>;
|
|
515
|
-
readonly allowSetBaseline: _angular_core.InputSignal<boolean>;
|
|
516
|
-
readonly hasTasks: _angular_core.InputSignal<boolean>;
|
|
517
|
-
readonly baselinePending: _angular_core.InputSignal<boolean>;
|
|
518
521
|
readonly modeChanged: _angular_core.OutputEmitterRef<string>;
|
|
519
522
|
readonly baselineSet: _angular_core.OutputEmitterRef<unknown>;
|
|
520
523
|
readonly tasksExported: _angular_core.OutputEmitterRef<void>;
|
|
@@ -524,6 +527,7 @@ declare class TaskScheduleShell {
|
|
|
524
527
|
readonly settingBaseline: _angular_core.WritableSignal<boolean>;
|
|
525
528
|
readonly exportingTasks: _angular_core.WritableSignal<boolean>;
|
|
526
529
|
readonly resolvedLangCode: _angular_core.Signal<"en" | "ar">;
|
|
530
|
+
readonly resolvedContext: _angular_core.Signal<TaskScheduleContext | null>;
|
|
527
531
|
readonly labels: _angular_core.Signal<{
|
|
528
532
|
mode: string;
|
|
529
533
|
setBaseline: string;
|
|
@@ -559,7 +563,7 @@ declare class TaskScheduleShell {
|
|
|
559
563
|
private getErrorMessage;
|
|
560
564
|
private emitError;
|
|
561
565
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TaskScheduleShell, never>;
|
|
562
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TaskScheduleShell, "mt-task-schedule-shell", never, { "context": { "alias": "context"; "required": false; "isSignal": true; };
|
|
566
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TaskScheduleShell, "mt-task-schedule-shell", never, { "context": { "alias": "context"; "required": false; "isSignal": true; }; }, { "modeChanged": "modeChanged"; "baselineSet": "baselineSet"; "tasksExported": "tasksExported"; "actionError": "actionError"; }, never, never, true, never>;
|
|
563
567
|
}
|
|
564
568
|
|
|
565
569
|
declare const TASK_SCHEDULE_DEFAULT_PDF_FONT: string;
|