@26lights/orcha 0.41.150 → 0.41.151
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 +4 -19
- package/dist/orcha.umd.js +2 -2
- package/package.json +1 -1
- package/dist/src/helpers.d.ts +0 -46
package/package.json
CHANGED
package/dist/src/helpers.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { type Activity, type ActivityStatus, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User, type Id, type EstimationUnit } from './types';
|
|
2
|
-
import { type DraggableChangeEvent } from './types/utils';
|
|
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;
|
|
17
|
-
export declare function sumPhaseActivitiesAmount(milestones: Milestone[]): number;
|
|
18
|
-
export declare function sumTemplateMilestonesAmount(phases: Phase[]): number;
|
|
19
|
-
export declare function sumTemplateActivitiesAmount(phases: Phase[]): number;
|
|
20
|
-
export declare function getInitialLetters(name: string): string;
|
|
21
|
-
export declare function computeNewRank<T extends Ordered>(event: DraggableChangeEvent<T>, list: T[]): string | undefined;
|
|
22
|
-
export declare function generateRank<T extends Ordered>(items: T[], index: number): string;
|
|
23
|
-
export declare function formatDate(value: string | null | undefined, pattern?: string): string;
|
|
24
|
-
export declare function isActivityClosed(activity: Activity, closedStatus: ActivityStatus): boolean;
|
|
25
|
-
export declare function isFullyDone(milestone: Milestone, closedStatus: ActivityStatus): boolean;
|
|
26
|
-
export declare function milestoneWithStatus(milestone: Milestone, closedStatus: ActivityStatus): Milestone & {
|
|
27
|
-
status: MilestoneStatus;
|
|
28
|
-
};
|
|
29
|
-
export declare const getUserName: (user: User | undefined | null) => string;
|
|
30
|
-
export declare function lightenColor(color: string, alpha?: number): string;
|
|
31
|
-
export declare function useMentions(textareaRef: Ref<HTMLTextAreaElement | null | undefined>, messageModel: Ref<string>, allUsers: Ref<User[]>): {
|
|
32
|
-
showMentionList: Ref<boolean>;
|
|
33
|
-
mentionListPosition: Ref<{
|
|
34
|
-
top: number;
|
|
35
|
-
left: number;
|
|
36
|
-
}>;
|
|
37
|
-
filteredUsers: import("vue").ComputedRef<{
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
}[]>;
|
|
41
|
-
mentionQuery: Ref<string>;
|
|
42
|
-
handleInput: (event: Event) => void;
|
|
43
|
-
handleKeydown: (event: KeyboardEvent) => void;
|
|
44
|
-
selectUserMention: (name: string) => void;
|
|
45
|
-
getMentionedUserIds: (message: string) => Id[];
|
|
46
|
-
};
|