@veltdev/sdk 2.0.21 → 2.0.22
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/app/models/data/autocomplete.data.model.d.ts +1 -1
- package/app/models/data/comment-annotation.data.model.d.ts +2 -0
- package/app/models/data/custom-chip-dropdown.data.model.d.ts +9 -0
- package/app/models/element/comment-element.model.d.ts +27 -0
- package/app/models/element/notification-element.model.d.ts +10 -0
- package/app/utils/enums.d.ts +4 -1
- package/models.d.ts +1 -0
- package/package.json +1 -1
- package/velt.js +2 -2
|
@@ -7,6 +7,7 @@ import { PageInfo } from "./page-info.model";
|
|
|
7
7
|
import { TargetElement } from "./target-element.data.model";
|
|
8
8
|
import { TargetTextRange } from "./target-text-range.data.model";
|
|
9
9
|
import { User } from "./user.data.model";
|
|
10
|
+
import { CustomAnnotationDropdownItem } from "./custom-chip-dropdown.data.model";
|
|
10
11
|
export declare class CommentAnnotation {
|
|
11
12
|
/**
|
|
12
13
|
* Unique identifier for the comment pin annotation.
|
|
@@ -160,6 +161,7 @@ export declare class CommentAnnotation {
|
|
|
160
161
|
isPageAnnotation?: boolean;
|
|
161
162
|
targetInlineCommentElementId?: string;
|
|
162
163
|
inlineCommentSectionConfig?: InlineCommentSectionConfig;
|
|
164
|
+
customList?: CustomAnnotationDropdownItem[];
|
|
163
165
|
}
|
|
164
166
|
export declare class GhostComment {
|
|
165
167
|
targetElement?: TargetElement | null;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type CustomAnnotationDropdownType = 'multi' | 'single';
|
|
2
|
+
export declare class CustomAnnotationDropdownItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class CustomAnnotationDropdownData {
|
|
7
|
+
type: CustomAnnotationDropdownType;
|
|
8
|
+
data: CustomAnnotationDropdownItem[];
|
|
9
|
+
}
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig } from "../data/comment-annotation.data.model";
|
|
4
4
|
import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
|
|
5
|
+
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
6
|
+
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
7
|
+
|
|
5
8
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
6
9
|
export declare class CommentElement {
|
|
7
10
|
/**
|
|
@@ -700,6 +703,18 @@ export declare class CommentElement {
|
|
|
700
703
|
* @param config manual comment annotation config
|
|
701
704
|
*/
|
|
702
705
|
public addManualComment: (config: ManualCommentAnnotationConfig) => void;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* To add custom list dropdown on comment annotation.
|
|
709
|
+
* @param data custom list data
|
|
710
|
+
*/
|
|
711
|
+
public createCustomListDataOnAnnotation: (data: CustomAnnotationDropdownData) => void;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* To add custom list dropdown on comment.
|
|
715
|
+
* @param data custom list data
|
|
716
|
+
*/
|
|
717
|
+
public createCustomListDataOnComment: (data: AutocompleteData) => void;
|
|
703
718
|
constructor();
|
|
704
719
|
/**
|
|
705
720
|
* Subscribe to comments on the current document.
|
|
@@ -1391,4 +1406,16 @@ export declare class CommentElement {
|
|
|
1391
1406
|
* @param config manual comment annotation config
|
|
1392
1407
|
*/
|
|
1393
1408
|
private _addManualComment;
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* To add custom list dropdown on comment annotation.
|
|
1412
|
+
* @param data custom list data
|
|
1413
|
+
*/
|
|
1414
|
+
private _createCustomListDataOnAnnotation;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* To add custom list dropdown on comment.
|
|
1418
|
+
* @param data custom list data
|
|
1419
|
+
*/
|
|
1420
|
+
private _createCustomListDataOnComment;
|
|
1394
1421
|
}
|
|
@@ -22,6 +22,11 @@ export declare class NotificationElement {
|
|
|
22
22
|
* To get notifications data
|
|
23
23
|
*/
|
|
24
24
|
getNotificationsData: () => Observable<Notification[]>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* To set max days for notification history
|
|
28
|
+
*/
|
|
29
|
+
setMaxDays: (days: number) => void;
|
|
25
30
|
constructor();
|
|
26
31
|
|
|
27
32
|
/**
|
|
@@ -43,4 +48,9 @@ export declare class NotificationElement {
|
|
|
43
48
|
* To get notifications data
|
|
44
49
|
*/
|
|
45
50
|
private _getNotificationsData;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* To set max days for notification history
|
|
54
|
+
*/
|
|
55
|
+
private _setMaxDays;
|
|
46
56
|
}
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -8,8 +8,11 @@ export declare enum CommentStatus {
|
|
|
8
8
|
STATUS_CHANGED = "statusChanged",
|
|
9
9
|
PRIORITY_CHANGED = "priorityChanged",
|
|
10
10
|
ACCESS_MODE_CHANGED = "accessModeChanged",
|
|
11
|
+
CUSTOM_LIST_CHANGED = "customListChanged",
|
|
11
12
|
ACCEPTED = "accepted",
|
|
12
|
-
REJECTED = "rejected"
|
|
13
|
+
REJECTED = "rejected",
|
|
14
|
+
REACTION_ADDED = "reactionAdded",
|
|
15
|
+
REACTION_DELETED = "reactionDeleted"
|
|
13
16
|
}
|
|
14
17
|
export declare enum TagStatus {
|
|
15
18
|
ADDED = "added",
|
package/models.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './app/models/data/config.data.model';
|
|
|
8
8
|
export * from './app/models/data/cursor-position.data.model';
|
|
9
9
|
export * from './app/models/data/cursor-user.data.model';
|
|
10
10
|
export * from './app/models/data/custom-css.data.model';
|
|
11
|
+
export * from './app/models/data/custom-chip-dropdown.data.model';
|
|
11
12
|
export * from './app/models/data/device-info.model';
|
|
12
13
|
export * from './app/models/data/document-iam.data.model';
|
|
13
14
|
export * from './app/models/data/document-metadata.model';
|