@26lights/orcha 0.41.149 → 0.41.150

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.
@@ -44,6 +44,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
44
44
  timeTrackingData: {
45
45
  type: import("vue").PropType<Record<string, TimeTracking>>;
46
46
  };
47
+ estimationUnit: {
48
+ type: import("vue").PropType<string>;
49
+ };
47
50
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
48
51
  updateMilestone: (payload: UpdateMilestonePayload) => void;
49
52
  archiveMilestone: (payload: {
@@ -97,6 +100,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
97
100
  timeTrackingData: {
98
101
  type: import("vue").PropType<Record<string, TimeTracking>>;
99
102
  };
103
+ estimationUnit: {
104
+ type: import("vue").PropType<string>;
105
+ };
100
106
  }>> & {
101
107
  onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
102
108
  onArchiveMilestone?: ((payload: {
@@ -28,6 +28,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
28
28
  timeTrackingData: {
29
29
  type: import("vue").PropType<Record<string, TimeTracking>>;
30
30
  };
31
+ estimationUnit: {
32
+ type: import("vue").PropType<string>;
33
+ };
31
34
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
35
  'update:title': (v: string) => void;
33
36
  'update:deadline': (v: string) => void;
@@ -70,6 +73,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
70
73
  timeTrackingData: {
71
74
  type: import("vue").PropType<Record<string, TimeTracking>>;
72
75
  };
76
+ estimationUnit: {
77
+ type: import("vue").PropType<string>;
78
+ };
73
79
  }>> & {
74
80
  "onUpdate:title"?: ((v: string) => any) | undefined;
75
81
  onUpdatePhase?: ((payload: {
@@ -28,6 +28,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
28
28
  timeTrackingData: {
29
29
  type: import("vue").PropType<Record<string, TimeTracking>>;
30
30
  };
31
+ estimationUnit: {
32
+ type: import("vue").PropType<string>;
33
+ };
31
34
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
32
35
  'update:title': (v: string) => void;
33
36
  'update:deadline': (v: string) => void;
@@ -70,6 +73,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
70
73
  timeTrackingData: {
71
74
  type: import("vue").PropType<Record<string, TimeTracking>>;
72
75
  };
76
+ estimationUnit: {
77
+ type: import("vue").PropType<string>;
78
+ };
73
79
  }>> & {
74
80
  "onUpdate:title"?: ((v: string) => any) | undefined;
75
81
  onUpdatePhase?: ((payload: {
@@ -21,6 +21,9 @@ declare const _default: import("vue").DefineComponent<{
21
21
  timeTrackingData: {
22
22
  type: import("vue").PropType<Record<string, TimeTracking>>;
23
23
  };
24
+ estimationUnit: {
25
+ type: import("vue").PropType<string>;
26
+ };
24
27
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
28
  addMilestone: (payload: AddMilestonePayload) => void;
26
29
  updateMilestone: (payload: UpdateMilestonePayload) => void;
@@ -59,6 +62,9 @@ declare const _default: import("vue").DefineComponent<{
59
62
  timeTrackingData: {
60
63
  type: import("vue").PropType<Record<string, TimeTracking>>;
61
64
  };
65
+ estimationUnit: {
66
+ type: import("vue").PropType<string>;
67
+ };
62
68
  }>> & {
63
69
  onAddMilestone?: ((payload: AddMilestonePayload) => any) | undefined;
64
70
  onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
@@ -21,6 +21,9 @@ declare const _default: import("vue").DefineComponent<{
21
21
  timeTrackingData: {
22
22
  type: import("vue").PropType<Record<string, TimeTracking>>;
23
23
  };
24
+ estimationUnit: {
25
+ type: import("vue").PropType<string>;
26
+ };
24
27
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
28
  addMilestone: (payload: AddMilestonePayload) => void;
26
29
  updateMilestone: (payload: UpdateMilestonePayload) => void;
@@ -60,6 +63,9 @@ declare const _default: import("vue").DefineComponent<{
60
63
  timeTrackingData: {
61
64
  type: import("vue").PropType<Record<string, TimeTracking>>;
62
65
  };
66
+ estimationUnit: {
67
+ type: import("vue").PropType<string>;
68
+ };
63
69
  }>> & {
64
70
  onAddMilestone?: ((payload: AddMilestonePayload) => any) | undefined;
65
71
  onUpdateMilestone?: ((payload: UpdateMilestonePayload) => any) | undefined;
@@ -1,6 +1,19 @@
1
- import { type Activity, type ActivityStatus, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User, type Id } from './types';
1
+ import { type Activity, type ActivityStatus, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User, type Id, type EstimationUnit } from './types';
2
2
  import { type DraggableChangeEvent } from './types/utils';
3
3
  import { type Ref } from 'vue';
4
+ /**
5
+ * Converts minutes to the appropriate unit (hours or days) based on estimationUnit
6
+ * @param minutes - Time in minutes
7
+ * @param unit - EstimationUnit ('hours' or 'days')
8
+ * @returns Formatted string with the converted value and unit abbreviation
9
+ */
10
+ export declare function convertMinutesToUnit(minutes: number, unit: EstimationUnit): string;
11
+ /**
12
+ * Gets the unit suffix for display ('h' for hours, 'd' for days)
13
+ * @param unit - EstimationUnit
14
+ * @returns Unit abbreviation
15
+ */
16
+ export declare function getUnitSuffix(unit: EstimationUnit): string;
4
17
  export declare function sumPhaseActivitiesAmount(milestones: Milestone[]): number;
5
18
  export declare function sumTemplateMilestonesAmount(phases: Phase[]): number;
6
19
  export declare function sumTemplateActivitiesAmount(phases: Phase[]): number;
@@ -370,7 +370,12 @@ export type Project = {
370
370
  name?: string;
371
371
  phases?: Phase[];
372
372
  architectureImage?: Image;
373
+ estimationUnit: EstimationUnit;
373
374
  };
375
+ export declare enum EstimationUnit {
376
+ HOURS = "hours",
377
+ DAYS = "days"
378
+ }
374
379
  export type Image = {
375
380
  url: string;
376
381
  name: string;
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.149",
7
+ "version": "0.41.150",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],