@26lights/orcha 0.38.39 → 0.38.41

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.
@@ -26,6 +26,7 @@ declare const _default: import("vue").DefineComponent<{
26
26
  };
27
27
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
28
  updateTitle: (title: string) => void;
29
+ deleteItem: (id: string, name?: string | undefined) => void;
29
30
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
31
  id: {
31
32
  type: import("vue").PropType<string>;
@@ -53,5 +54,6 @@ declare const _default: import("vue").DefineComponent<{
53
54
  };
54
55
  }>> & {
55
56
  onUpdateTitle?: ((title: string) => any) | undefined;
57
+ onDeleteItem?: ((id: string, name?: string | undefined) => any) | undefined;
56
58
  }, {}, {}>;
57
59
  export default _default;
@@ -248,14 +248,15 @@ export interface MoveItemPayload {
248
248
  id: Id;
249
249
  rank: string;
250
250
  }
251
- export interface RemoveItemPayload {
252
- type: TemplateItemType;
251
+ export interface RemoveItemPayload<T extends TemplateItemType> {
252
+ itemType: T;
253
253
  templateId: Id;
254
254
  phaseId?: Id;
255
255
  milestoneId?: Id;
256
256
  activityId?: Id;
257
257
  data: {
258
258
  id: Id;
259
+ name?: string;
259
260
  };
260
261
  }
261
262
  export interface RemoveMilestonePayload {
@@ -1,4 +1,4 @@
1
- import { type Activity, type TemplateDetails, type TemplateItemType, type AddItemPayload, type UpdateItemPayload, type AddRulePayload, type RemoveRulePayload, type ActivityType, type AddFilesPayload, type RemoveFilePayload, type RemoveItemPayload } from '../types';
1
+ import { type Activity, type TemplateDetails, type TemplateItemType, type AddItemPayload, type UpdateItemPayload, type AddRulePayload, type RemoveRulePayload, type ActivityType, type AddFilesPayload, type RemoveFilePayload } from '../types';
2
2
  import { User } from '../types';
3
3
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
4
  templateId: {
@@ -26,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
26
26
  };
27
27
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
28
  addItem: (payload: AddItemPayload) => void;
29
- removeItem: (payload: RemoveItemPayload) => void;
29
+ removeItem: (payload: any) => void;
30
30
  updateItem: (payload: UpdateItemPayload<TemplateItemType>) => void;
31
31
  addRule: (payload: AddRulePayload) => void;
32
32
  removeRule: (payload: RemoveRulePayload) => void;
@@ -62,7 +62,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
62
62
  onAddRule?: ((payload: AddRulePayload) => any) | undefined;
63
63
  onRemoveRule?: ((payload: RemoveRulePayload) => any) | undefined;
64
64
  onAddItem?: ((payload: AddItemPayload) => any) | undefined;
65
- onRemoveItem?: ((payload: RemoveItemPayload) => any) | undefined;
65
+ onRemoveItem?: ((payload: any) => any) | undefined;
66
66
  onUpdateItem?: ((payload: UpdateItemPayload<TemplateItemType>) => any) | undefined;
67
67
  }, {}, {}>, {
68
68
  activityDetailsBody(props: {
@@ -1,4 +1,4 @@
1
- import { type TemplateDetails, UpdateItemPayload, TemplateItemType } from '../types';
1
+ import { type TemplateDetails, UpdateItemPayload, TemplateItemType, RemoveItemPayload } from '../types';
2
2
  declare const _default: import("vue").DefineComponent<{
3
3
  templates: {
4
4
  type: import("vue").PropType<TemplateDetails[]>;
@@ -7,11 +7,13 @@ declare const _default: import("vue").DefineComponent<{
7
7
  addTemplate: (template: Pick<TemplateDetails, "name" | "rank">) => void;
8
8
  updateTemplates: (templates: TemplateDetails[]) => void;
9
9
  updateItem: (item: UpdateItemPayload<TemplateItemType>) => void;
10
+ removeItem: (item: RemoveItemPayload<TemplateItemType>) => void;
10
11
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
12
  templates: {
12
13
  type: import("vue").PropType<TemplateDetails[]>;
13
14
  };
14
15
  }>> & {
16
+ onRemoveItem?: ((item: RemoveItemPayload<TemplateItemType>) => any) | undefined;
15
17
  onUpdateItem?: ((item: UpdateItemPayload<TemplateItemType>) => any) | undefined;
16
18
  onAddTemplate?: ((template: Pick<TemplateDetails, "name" | "rank">) => any) | undefined;
17
19
  onUpdateTemplates?: ((templates: TemplateDetails[]) => any) | undefined;
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.38.39",
7
+ "version": "0.38.41",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],
@@ -27,7 +27,7 @@
27
27
  "vuedraggable": "~4.1.0"
28
28
  },
29
29
  "dependencies": {
30
- "@26lights/orcha": "^0.38.39",
30
+ "@26lights/orcha": "^0.38.41",
31
31
  "@floating-ui/dom": "^1.5.3",
32
32
  "@vueform/multiselect": "^2.6.6",
33
33
  "@vueuse/core": "^10.8.0",