@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.
- package/dist/orcha.cjs.js +2 -2
- package/dist/orcha.es.js +1285 -1290
- package/dist/orcha.umd.js +2 -2
- package/dist/src/helpers.d.ts +7 -7
- package/package.json +1 -1
package/dist/src/helpers.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { type Activity, type ActivityStatus, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User, type Id
|
|
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
|
-
*
|
|
5
|
+
* Formats minutes into a human-readable time format
|
|
6
6
|
* @param minutes - Time in minutes
|
|
7
|
-
* @param unit -
|
|
8
|
-
* @returns Formatted string
|
|
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
|
|
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 -
|
|
13
|
+
* @param unit - string ('hours' or 'days')
|
|
14
14
|
* @returns Unit abbreviation
|
|
15
15
|
*/
|
|
16
|
-
export declare function getUnitSuffix(unit
|
|
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;
|