@masterteam/task-schedule 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/task-schedule",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/task-schedule",
6
6
  "linkDirectory": false,
@@ -21,9 +21,9 @@
21
21
  "primeng": "21.1.5",
22
22
  "tailwindcss": "^4.2.2",
23
23
  "tailwindcss-primeui": "^0.6.1",
24
- "@masterteam/components": "^0.0.186",
25
- "@masterteam/icons": "^0.0.16",
26
- "@masterteam/forms": "^0.0.88"
24
+ "@masterteam/forms": "^0.0.91",
25
+ "@masterteam/components": "^0.0.190",
26
+ "@masterteam/icons": "^0.0.16"
27
27
  },
28
28
  "sideEffects": false,
29
29
  "exports": {
@@ -2,9 +2,8 @@ import * as _angular_core from '@angular/core';
2
2
  import { OnInit, OnDestroy } from '@angular/core';
3
3
  import { GanttComponent, ContextMenuOpenEventArgs, ContextMenuClickEventArgs } from '@syncfusion/ej2-angular-gantt';
4
4
  import { Observable } from 'rxjs';
5
- import { EntityData } from '@masterteam/components/entities';
6
5
  import { ModalService } from '@masterteam/components/modal';
7
- import { ColumnDef } from '@masterteam/components/table';
6
+ import { TreeNode } from '@masterteam/components/tree';
8
7
 
9
8
  type TaskScheduleModelKey = 'default' | 'edit' | 'baseline' | 'criticalPath' | 'resources' | 'unscheduled' | 'phaseGate' | 'custom';
10
9
  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';
@@ -36,6 +35,7 @@ interface TaskScheduleContext {
36
35
  baselinePending?: boolean;
37
36
  mppRequestTimeoutMs?: number;
38
37
  mppPreviewMaxRows?: number;
38
+ mppPreviewMaxResponseBytes?: number;
39
39
  mppKeepRawPayload?: boolean;
40
40
  resources?: Array<Record<string, unknown>>;
41
41
  endpoints?: TaskScheduleContextEndpoints;
@@ -244,6 +244,7 @@ interface TaskScheduleBaselineSnapshot {
244
244
  }
245
245
  interface TaskScheduleImportResult {
246
246
  fileName?: string | null;
247
+ applied?: boolean;
247
248
  tasks: TaskScheduleTask[];
248
249
  raw?: unknown;
249
250
  }
@@ -315,6 +316,7 @@ declare class TaskSchedule implements OnInit, OnDestroy {
315
316
  private readonly fetchService;
316
317
  private readonly actionService;
317
318
  private readonly modal;
319
+ private readonly dateFormats;
318
320
  private readonly queueService;
319
321
  private readonly injector;
320
322
  private loadEffect?;
@@ -427,6 +429,9 @@ declare class TaskScheduleFetchService implements TaskScheduleFetchDataAdapter {
427
429
  private requireId;
428
430
  private resolveMppRequestTimeoutMs;
429
431
  private resolveMppPreviewMaxRows;
432
+ private resolveMppPreviewMaxResponseBytes;
433
+ private parseImportResponseText;
434
+ private isImportAppliedMarker;
430
435
  private readEndpoint;
431
436
  private interpolateEndpointTemplate;
432
437
  private extractTaskRows;
@@ -555,14 +560,6 @@ declare class TaskScheduleImportDialog {
555
560
  private readonly fetchService;
556
561
  private readonly actionService;
557
562
  private readonly transloco;
558
- private readonly selectionCellTpl;
559
- private readonly taskCellTpl;
560
- private readonly startDateCellTpl;
561
- private readonly finishDateCellTpl;
562
- private readonly actualStartDateCellTpl;
563
- private readonly actualFinishDateCellTpl;
564
- private readonly assignedToCellTpl;
565
- private readonly progressCellTpl;
566
563
  readonly context: _angular_core.InputSignal<TaskScheduleContext | null>;
567
564
  readonly maxRows: _angular_core.InputSignal<number>;
568
565
  readonly selectedFile: _angular_core.WritableSignal<File | null>;
@@ -570,6 +567,7 @@ declare class TaskScheduleImportDialog {
570
567
  readonly loadingApply: _angular_core.WritableSignal<boolean>;
571
568
  readonly importResult: _angular_core.WritableSignal<TaskScheduleImportResult | null>;
572
569
  readonly selectedTaskKeys: _angular_core.WritableSignal<Set<string>>;
570
+ readonly treeSelection: _angular_core.WritableSignal<TreeNode<any>[]>;
573
571
  readonly errorMessage: _angular_core.WritableSignal<string | null>;
574
572
  private readonly activeLang;
575
573
  readonly resolvedLangCode: _angular_core.Signal<"en" | "ar">;
@@ -603,22 +601,23 @@ declare class TaskScheduleImportDialog {
603
601
  readonly canImport: _angular_core.Signal<boolean>;
604
602
  readonly canApply: _angular_core.Signal<boolean>;
605
603
  readonly previewPageSize: _angular_core.Signal<number>;
606
- readonly previewColumns: _angular_core.WritableSignal<ColumnDef[]>;
604
+ readonly previewTreeNodes: _angular_core.Signal<TreeNode<any>[]>;
607
605
  onFileChanged(event: Event): void;
608
606
  importFile(): void;
609
607
  toggleRowSelection(rowKey: string, checked: boolean): void;
610
608
  selectAllRows(checked: boolean): void;
609
+ onTreeSelectionChange(selection: TreeNode | TreeNode[] | null): void;
611
610
  applyImport(overrideCurrent: boolean): void;
612
611
  close(): void;
613
- toDateFieldValue(value: unknown): Date | null;
614
- resolveAssignedValue(task: TaskScheduleTask): string | number | null;
615
- normalizeProgress(value: unknown): number;
616
- onTaskTitleChanged(rowKey: string, value: string): void;
617
- onTaskDateChanged(rowKey: string, key: 'startDate' | 'finishDate' | 'actualStartDate' | 'actualFinishDate', value: unknown): void;
618
- onTaskAssignedToChanged(rowKey: string, value: unknown): void;
619
- onTaskProgressChanged(rowKey: string, value: unknown): void;
620
- toAssignedEntity(task: TaskScheduleTask): EntityData;
621
- toProgressEntity(task: TaskScheduleTask): EntityData;
612
+ private toDateFieldValue;
613
+ private resolveAssignedValue;
614
+ private normalizeProgress;
615
+ private onTaskTitleChanged;
616
+ private onTaskDateChanged;
617
+ private onTaskAssignedToChanged;
618
+ private onTaskProgressChanged;
619
+ private toAssignedEntity;
620
+ private toProgressEntity;
622
621
  private updateRowTask;
623
622
  private findTaskByRowKey;
624
623
  private findTaskByPath;
@@ -629,6 +628,11 @@ declare class TaskScheduleImportDialog {
629
628
  private resolveParentGuidForPreviewRow;
630
629
  private resolveChildTasks;
631
630
  private resolveTaskKey;
631
+ private collectTreeNodes;
632
+ private readRowKeyFromTreeNode;
633
+ private toTreeNodeLabel;
634
+ private resolveTreeNodeIcon;
635
+ private formatPreviewDate;
632
636
  private resolveAssignedTo;
633
637
  private resolveContextResourceIdByName;
634
638
  private readAssignedToLabel;