@masterteam/task-schedule 0.0.17 → 0.0.19

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.17",
3
+ "version": "0.0.19",
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.189",
25
- "@masterteam/icons": "^0.0.16",
26
- "@masterteam/forms": "^0.0.90"
24
+ "@masterteam/components": "^0.0.191",
25
+ "@masterteam/forms": "^0.0.92",
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
  }
@@ -428,6 +429,9 @@ declare class TaskScheduleFetchService implements TaskScheduleFetchDataAdapter {
428
429
  private requireId;
429
430
  private resolveMppRequestTimeoutMs;
430
431
  private resolveMppPreviewMaxRows;
432
+ private resolveMppPreviewMaxResponseBytes;
433
+ private parseImportResponseText;
434
+ private isImportAppliedMarker;
431
435
  private readEndpoint;
432
436
  private interpolateEndpointTemplate;
433
437
  private extractTaskRows;
@@ -556,14 +560,6 @@ declare class TaskScheduleImportDialog {
556
560
  private readonly fetchService;
557
561
  private readonly actionService;
558
562
  private readonly transloco;
559
- private readonly selectionCellTpl;
560
- private readonly taskCellTpl;
561
- private readonly startDateCellTpl;
562
- private readonly finishDateCellTpl;
563
- private readonly actualStartDateCellTpl;
564
- private readonly actualFinishDateCellTpl;
565
- private readonly assignedToCellTpl;
566
- private readonly progressCellTpl;
567
563
  readonly context: _angular_core.InputSignal<TaskScheduleContext | null>;
568
564
  readonly maxRows: _angular_core.InputSignal<number>;
569
565
  readonly selectedFile: _angular_core.WritableSignal<File | null>;
@@ -571,6 +567,7 @@ declare class TaskScheduleImportDialog {
571
567
  readonly loadingApply: _angular_core.WritableSignal<boolean>;
572
568
  readonly importResult: _angular_core.WritableSignal<TaskScheduleImportResult | null>;
573
569
  readonly selectedTaskKeys: _angular_core.WritableSignal<Set<string>>;
570
+ readonly treeSelection: _angular_core.WritableSignal<TreeNode<any>[]>;
574
571
  readonly errorMessage: _angular_core.WritableSignal<string | null>;
575
572
  private readonly activeLang;
576
573
  readonly resolvedLangCode: _angular_core.Signal<"en" | "ar">;
@@ -604,22 +601,23 @@ declare class TaskScheduleImportDialog {
604
601
  readonly canImport: _angular_core.Signal<boolean>;
605
602
  readonly canApply: _angular_core.Signal<boolean>;
606
603
  readonly previewPageSize: _angular_core.Signal<number>;
607
- readonly previewColumns: _angular_core.WritableSignal<ColumnDef[]>;
604
+ readonly previewTreeNodes: _angular_core.Signal<TreeNode<any>[]>;
608
605
  onFileChanged(event: Event): void;
609
606
  importFile(): void;
610
607
  toggleRowSelection(rowKey: string, checked: boolean): void;
611
608
  selectAllRows(checked: boolean): void;
609
+ onTreeSelectionChange(selection: TreeNode | TreeNode[] | null): void;
612
610
  applyImport(overrideCurrent: boolean): void;
613
611
  close(): void;
614
- toDateFieldValue(value: unknown): Date | null;
615
- resolveAssignedValue(task: TaskScheduleTask): string | number | null;
616
- normalizeProgress(value: unknown): number;
617
- onTaskTitleChanged(rowKey: string, value: string): void;
618
- onTaskDateChanged(rowKey: string, key: 'startDate' | 'finishDate' | 'actualStartDate' | 'actualFinishDate', value: unknown): void;
619
- onTaskAssignedToChanged(rowKey: string, value: unknown): void;
620
- onTaskProgressChanged(rowKey: string, value: unknown): void;
621
- toAssignedEntity(task: TaskScheduleTask): EntityData;
622
- 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;
623
621
  private updateRowTask;
624
622
  private findTaskByRowKey;
625
623
  private findTaskByPath;
@@ -630,6 +628,11 @@ declare class TaskScheduleImportDialog {
630
628
  private resolveParentGuidForPreviewRow;
631
629
  private resolveChildTasks;
632
630
  private resolveTaskKey;
631
+ private collectTreeNodes;
632
+ private readRowKeyFromTreeNode;
633
+ private toTreeNodeLabel;
634
+ private resolveTreeNodeIcon;
635
+ private formatPreviewDate;
633
636
  private resolveAssignedTo;
634
637
  private resolveContextResourceIdByName;
635
638
  private readAssignedToLabel;