@26lights/orcha 0.3.0 → 0.3.2
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 +1 -1
- package/dist/orcha.es.js +869 -848
- package/dist/orcha.umd.js +1 -1
- package/dist/src/helpers.d.ts +2 -2
- package/dist/src/types/index.d.ts +5 -4
- package/package.json +1 -1
package/dist/src/helpers.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type Milestone, type Phase } from './types';
|
|
1
|
+
import { type Milestone, Ordered, type Phase } from './types';
|
|
2
2
|
import { DraggableChangeEvent } from './types/utils';
|
|
3
3
|
export declare function sumPhaseActivitiesAmount(milestones: Milestone[]): number;
|
|
4
4
|
export declare function sumTemplateMilestonesAmount(phases: Phase[]): number;
|
|
5
5
|
export declare function sumTemplateActivitiesAmount(phases: Phase[]): number;
|
|
6
6
|
export declare function getInitialLetters(name: string): string;
|
|
7
|
-
export declare function computeNewRank<T>(event: DraggableChangeEvent<T>, list: T[]): string | undefined;
|
|
7
|
+
export declare function computeNewRank<T extends Ordered>(event: DraggableChangeEvent<T>, list: T[]): string | undefined;
|
|
@@ -129,7 +129,8 @@ export interface User {
|
|
|
129
129
|
lastName?: string;
|
|
130
130
|
picture?: string;
|
|
131
131
|
}
|
|
132
|
-
export declare const
|
|
132
|
+
export declare const templateItemType: {
|
|
133
|
+
readonly TEMPLATES: "templates";
|
|
133
134
|
readonly PHASES: "phases";
|
|
134
135
|
readonly MILESTONES: "milestones";
|
|
135
136
|
readonly ACTIVITIES: "activities";
|
|
@@ -139,8 +140,8 @@ export declare enum TemplateSubItemTypeEnum {
|
|
|
139
140
|
MILESTONES = "milestones",
|
|
140
141
|
ACTIVITIES = "activities"
|
|
141
142
|
}
|
|
142
|
-
export type TemplateSubItemTypeKeys = keyof typeof
|
|
143
|
-
export type TemplateSubItemType = (typeof
|
|
143
|
+
export type TemplateSubItemTypeKeys = keyof typeof templateItemType;
|
|
144
|
+
export type TemplateSubItemType = (typeof templateItemType)[TemplateSubItemTypeKeys];
|
|
144
145
|
export interface UpdateTemplateDetailsPayload {
|
|
145
146
|
id: Id;
|
|
146
147
|
name?: string;
|
|
@@ -174,7 +175,7 @@ export interface UpdateMilestonePayload {
|
|
|
174
175
|
rules?: Rule[];
|
|
175
176
|
}
|
|
176
177
|
export interface UpdateItemPayload {
|
|
177
|
-
|
|
178
|
+
itemType: TemplateSubItemType;
|
|
178
179
|
id: Id;
|
|
179
180
|
templateId: Id;
|
|
180
181
|
data: UpdateTemplatePayload | UpdatePhasePayload | UpdateMilestonePayload | UpdateActivityPayload;
|