@26lights/orcha 0.41.150 → 0.41.152

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.
@@ -1,19 +1,19 @@
1
- import { type Activity, type ActivityStatus, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User, type Id, type EstimationUnit } from './types';
1
+ import { type Activity, type ActivityStatus, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User, type Id } from './types';
2
2
  import { type DraggableChangeEvent } from './types/utils';
3
3
  import { type Ref } from 'vue';
4
4
  /**
5
- * Converts minutes to the appropriate unit (hours or days) based on estimationUnit
5
+ * Formats minutes into a human-readable time format
6
6
  * @param minutes - Time in minutes
7
- * @param unit - EstimationUnit ('hours' or 'days')
8
- * @returns Formatted string with the converted value and unit abbreviation
7
+ * @param unit - string ('hours' or 'days')
8
+ * @returns Formatted string like "30m", "1h 15m", "4h", "1d 2h", etc.
9
9
  */
10
- export declare function convertMinutesToUnit(minutes: number, unit: EstimationUnit): string;
10
+ export declare function formatTimeSpent(minutes: number, unit?: string): string;
11
11
  /**
12
12
  * Gets the unit suffix for display ('h' for hours, 'd' for days)
13
- * @param unit - EstimationUnit
13
+ * @param unit - string ('hours' or 'days')
14
14
  * @returns Unit abbreviation
15
15
  */
16
- export declare function getUnitSuffix(unit: EstimationUnit): string;
16
+ export declare function getUnitSuffix(unit?: string): string;
17
17
  export declare function sumPhaseActivitiesAmount(milestones: Milestone[]): number;
18
18
  export declare function sumTemplateMilestonesAmount(phases: Phase[]): number;
19
19
  export declare function sumTemplateActivitiesAmount(phases: Phase[]): number;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "module",
5
5
  "license": "CC-BY-NC-ND-4.0",
6
6
  "author": "26lights <dev@26lights.com> (https://www.26lights.com)",
7
- "version": "0.41.150",
7
+ "version": "0.41.152",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],