@veltdev/sdk-dev 6.0.0-beta.1 → 6.0.0-beta.11
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/client/snippyly.model.d.ts +2 -3
- package/app/models/data/comment-annotation.data.model.d.ts +7 -0
- package/app/models/data/comment-events.data.model.d.ts +29 -0
- package/app/models/data/comment-resolver.data.model.d.ts +15 -3
- package/app/models/data/resolver.data.model.d.ts +26 -1
- package/app/models/data/selection.model.d.ts +10 -8
- package/app/models/data/user-resolver.data.model.d.ts +11 -9
- package/app/models/data/user.data.model.d.ts +21 -18
- package/app/models/element/activity-element.model.d.ts +0 -1
- package/app/models/element/area-element.model.d.ts +0 -1
- package/app/models/element/arrow-element.model.d.ts +1 -2
- package/app/models/element/autocomplete-element.model.d.ts +0 -1
- package/app/models/element/comment-element.model.d.ts +77 -76
- package/app/models/element/contact-element.model.d.ts +1 -2
- package/app/models/element/crdt-element.model.d.ts +1 -1
- package/app/models/element/cursor-element.model.d.ts +1 -2
- package/app/models/element/huddle-element.model.d.ts +1 -2
- package/app/models/element/live-state-sync-element.model.d.ts +1 -1
- package/app/models/element/notification-element.model.d.ts +1 -1
- package/app/models/element/presence-element.model.d.ts +2 -3
- package/app/models/element/reaction-element.model.d.ts +1 -1
- package/app/models/element/recorder-element.model.d.ts +1 -2
- package/app/models/element/rewriter-element.model.d.ts +0 -1
- package/app/models/element/selection-element.model.d.ts +1 -1
- package/app/models/element/suggestion-element.model.d.ts +0 -1
- package/app/models/element/tag-element.model.d.ts +7 -8
- package/app/models/element/views-element.model.d.ts +1 -1
- package/app/utils/enums.d.ts +104 -66
- package/{chunk-PTTRYFYB.js → chunk-45AFLSTN.js} +1 -1
- package/{chunk-G46CTA6V.js → chunk-4AUKSZTD.js} +1 -1
- package/chunk-4FFPMABU.js +167 -0
- package/{chunk-X453UEMY.js → chunk-4NYJX2TA.js} +1 -1
- package/{chunk-UZJTB2H6.js → chunk-6CQP35TI.js} +1 -1
- package/{chunk-3KN3NYZR.js → chunk-6RE7E4UI.js} +1 -1
- package/{chunk-OQBVT36K.js → chunk-7BJOXXKB.js} +1 -1
- package/{chunk-WYMNU2Q5.js → chunk-7DJ6FAQU.js} +1 -1
- package/{chunk-BRIJGI4O.js → chunk-AE3HAZZP.js} +1 -1
- package/{chunk-X3GYH6JJ.js → chunk-B7JEFRI6.js} +1 -1
- package/{chunk-2MCCXRU6.js → chunk-BVOAAUMF.js} +1 -1
- package/{chunk-RFW75IKO.js → chunk-BYPLI57L.js} +1 -1
- package/{chunk-2BDYFELB.js → chunk-DC4XY76Y.js} +1 -1
- package/{chunk-IYJWYBXI.js → chunk-DNV5AXVR.js} +1 -1
- package/{chunk-C63JXSXB.js → chunk-EHFD7BDQ.js} +1 -1
- package/{chunk-P7SXN2XF.js → chunk-HXLFHQKR.js} +1 -1
- package/{chunk-YD4VUEL4.js → chunk-IYGDKLQF.js} +1 -1
- package/{chunk-PROSLKM3.js → chunk-JDRVES6B.js} +1 -1
- package/{chunk-ZI5OOBWM.js → chunk-JSM7AZPO.js} +1 -1
- package/{chunk-S4AU5GVL.js → chunk-K6LMPDA2.js} +1 -1
- package/chunk-KYM4A3Y5.js +193 -0
- package/{chunk-V2COGSFG.js → chunk-MX3IHG3M.js} +1 -1
- package/{chunk-JNJEOJET.js → chunk-NFB2QFWZ.js} +1 -1
- package/{chunk-FKZM4T63.js → chunk-PKSCPPL3.js} +1 -1
- package/{chunk-5ZWGZNCN.js → chunk-POOMHZRV.js} +1 -1
- package/{chunk-6NYVF3UW.js → chunk-RA6SFDHP.js} +1 -1
- package/{chunk-NVFQYVI5.js → chunk-RMNTICFD.js} +1 -1
- package/{chunk-HPCLPNY3.js → chunk-TRRDAYZ3.js} +1 -1
- package/{chunk-KFXLOTXX.js → chunk-TTTPO3O7.js} +1 -1
- package/{chunk-3RQKSLIV.js → chunk-XBIYBLRP.js} +1 -1
- package/{chunk-P2263MG2.js → chunk-YWIE7OOR.js} +1 -1
- package/{chunk-4HGZF7YE.js → chunk-ZINOKO4N.js} +1 -1
- package/{chunk-LXSCD43J.js → chunk-ZJBVC654.js} +1 -1
- package/package.json +1 -1
- package/types.d.ts +22 -22
- package/velt-activity-log.js +1 -1
- package/velt-area.js +1 -1
- package/velt-arrow.js +1 -1
- package/velt-comment.js +8 -8
- package/velt-crdt.js +1 -1
- package/velt-cursor.js +1 -1
- package/velt-huddle.js +1 -1
- package/velt-live-state-sync.js +1 -1
- package/velt-notification.js +1 -1
- package/velt-presence.js +1 -1
- package/velt-reaction.js +1 -1
- package/velt-recorder.js +1 -1
- package/velt-rewriter.js +1 -1
- package/velt-selection.js +1 -1
- package/velt-tag.js +1 -1
- package/velt-user-invite.js +1 -1
- package/velt-user-request.js +1 -1
- package/velt-video-player.js +1 -1
- package/velt-views.js +1 -1
- package/velt.d.ts +2 -3
- package/velt.js +9 -11
- package/chunk-GD4JQQR2.js +0 -167
- package/chunk-MEV4PQAP.js +0 -193
package/app/utils/enums.d.ts
CHANGED
|
@@ -1,38 +1,66 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
NEWLY_ADDED
|
|
3
|
-
ADDED
|
|
4
|
-
UPDATED
|
|
5
|
-
DELETED
|
|
6
|
-
APPROVED
|
|
7
|
-
ASSIGNED
|
|
8
|
-
STATUS_CHANGED
|
|
9
|
-
PRIORITY_CHANGED
|
|
10
|
-
ACCESS_MODE_CHANGED
|
|
11
|
-
CUSTOM_LIST_CHANGED
|
|
12
|
-
ACCEPTED
|
|
13
|
-
REJECTED
|
|
14
|
-
REACTION_ADDED
|
|
15
|
-
REACTION_DELETED
|
|
16
|
-
SUBSCRIBED
|
|
17
|
-
UNSUBSCRIBED
|
|
18
|
-
SUGGESTION_ACCEPTED
|
|
19
|
-
SUGGESTION_REJECTED
|
|
20
|
-
}
|
|
21
|
-
export
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
1
|
+
export declare const CommentStatus: {
|
|
2
|
+
readonly NEWLY_ADDED: "newlyAdded";
|
|
3
|
+
readonly ADDED: "added";
|
|
4
|
+
readonly UPDATED: "updated";
|
|
5
|
+
readonly DELETED: "deleted";
|
|
6
|
+
readonly APPROVED: "approved";
|
|
7
|
+
readonly ASSIGNED: "assigned";
|
|
8
|
+
readonly STATUS_CHANGED: "statusChanged";
|
|
9
|
+
readonly PRIORITY_CHANGED: "priorityChanged";
|
|
10
|
+
readonly ACCESS_MODE_CHANGED: "accessModeChanged";
|
|
11
|
+
readonly CUSTOM_LIST_CHANGED: "customListChanged";
|
|
12
|
+
readonly ACCEPTED: "accepted";
|
|
13
|
+
readonly REJECTED: "rejected";
|
|
14
|
+
readonly REACTION_ADDED: "reactionAdded";
|
|
15
|
+
readonly REACTION_DELETED: "reactionDeleted";
|
|
16
|
+
readonly SUBSCRIBED: "subscribed";
|
|
17
|
+
readonly UNSUBSCRIBED: "unsubscribed";
|
|
18
|
+
readonly SUGGESTION_ACCEPTED: "suggestionAccepted";
|
|
19
|
+
readonly SUGGESTION_REJECTED: "suggestionRejected";
|
|
20
|
+
};
|
|
21
|
+
export type CommentStatus = (typeof CommentStatus)[keyof typeof CommentStatus];
|
|
22
|
+
export declare const ResolverActions: {
|
|
23
|
+
readonly COMMENT_ANNOTATION_ADD: "comment_annotation.add";
|
|
24
|
+
readonly COMMENT_ANNOTATION_DELETE: "comment_annotation.delete";
|
|
25
|
+
readonly COMMENT_ADD: "comment.add";
|
|
26
|
+
readonly COMMENT_DELETE: "comment.delete";
|
|
27
|
+
readonly COMMENT_UPDATE: "comment.update";
|
|
28
|
+
readonly REACTION_ADD: "reaction.add";
|
|
29
|
+
readonly REACTION_DELETE: "reaction.delete";
|
|
30
|
+
readonly ATTACHMENT_ADD: "attachment.add";
|
|
31
|
+
readonly ATTACHMENT_DELETE: "attachment.delete";
|
|
32
|
+
readonly RECORDER_ANNOTATION_ADD: "recorder_annotation.add";
|
|
33
|
+
readonly RECORDER_ANNOTATION_UPDATE: "recorder_annotation.update";
|
|
34
|
+
readonly RECORDER_ANNOTATION_DELETE: "recorder_annotation.delete";
|
|
35
|
+
readonly ACTIVITY_SAVE: "activity.save";
|
|
36
|
+
};
|
|
37
|
+
export type ResolverActions = (typeof ResolverActions)[keyof typeof ResolverActions];
|
|
38
|
+
/**
|
|
39
|
+
* Opt-in additional (non-core) comment save events for the Comment Annotations Resolver
|
|
40
|
+
* (specs/comment-resolver iteration-2). Values mirror the non-core `CommentActivityActionTypes`
|
|
41
|
+
* (single source of truth — enforced by a unit test). A self-hosting customer lists these in
|
|
42
|
+
* `ResolverConfig.additionalSaveEvents` to also receive annotation-level events (status change,
|
|
43
|
+
* priority change, assign, …) on the existing save endpoint. The 4 core events keep using
|
|
44
|
+
* `ResolverActions`. Kept in enums.ts (a leaf module) to avoid a
|
|
45
|
+
* resolver.data.model ↔ comment-resolver.data.model import cycle.
|
|
46
|
+
*/
|
|
47
|
+
export declare const CommentResolverSaveEvent: {
|
|
48
|
+
readonly STATUS_CHANGE: "comment_annotation.status_change";
|
|
49
|
+
readonly PRIORITY_CHANGE: "comment_annotation.priority_change";
|
|
50
|
+
readonly ASSIGN: "comment_annotation.assign";
|
|
51
|
+
readonly ACCESS_MODE_CHANGE: "comment_annotation.access_mode_change";
|
|
52
|
+
readonly CUSTOM_LIST_CHANGE: "comment_annotation.custom_list_change";
|
|
53
|
+
readonly APPROVE: "comment_annotation.approve";
|
|
54
|
+
readonly ACCEPT: "comment.accept";
|
|
55
|
+
readonly REJECT: "comment.reject";
|
|
56
|
+
readonly SUGGESTION_ACCEPT: "comment_annotation.suggestion_accept";
|
|
57
|
+
readonly SUGGESTION_REJECT: "comment_annotation.suggestion_reject";
|
|
58
|
+
readonly REACTION_ADD: "comment.reaction_add";
|
|
59
|
+
readonly REACTION_DELETE: "comment.reaction_delete";
|
|
60
|
+
readonly SUBSCRIBE: "comment_annotation.subscribe";
|
|
61
|
+
readonly UNSUBSCRIBE: "comment_annotation.unsubscribe";
|
|
62
|
+
};
|
|
63
|
+
export type CommentResolverSaveEvent = (typeof CommentResolverSaveEvent)[keyof typeof CommentResolverSaveEvent];
|
|
36
64
|
export declare const CommentEventTypes: {
|
|
37
65
|
readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
|
|
38
66
|
readonly ADD_COMMENT_ANNOTATION_DRAFT: "addCommentAnnotationDraft";
|
|
@@ -70,6 +98,10 @@ export declare const CommentEventTypes: {
|
|
|
70
98
|
readonly COMMENT_TOOL_CLICKED: "commentToolClicked";
|
|
71
99
|
readonly SIDEBAR_BUTTON_CLICK: "sidebarButtonClick";
|
|
72
100
|
readonly SIDEBAR_BUTTON_CLICKED: "sidebarButtonClicked";
|
|
101
|
+
readonly SIDEBAR_OPEN: "sidebarOpen";
|
|
102
|
+
readonly SIDEBAR_CLOSE: "sidebarClose";
|
|
103
|
+
readonly COMMENT_CLICK: "commentClick";
|
|
104
|
+
readonly COMMENT_NAVIGATION_BUTTON_CLICK: "commentNavigationButtonClick";
|
|
73
105
|
readonly ATTACHMENT_DOWNLOAD_CLICKED: "attachmentDownloadClicked";
|
|
74
106
|
readonly COMMENT_SAVED: "commentSaved";
|
|
75
107
|
readonly COMMENT_SAVE_TRIGGERED: "commentSaveTriggered";
|
|
@@ -175,11 +207,12 @@ export declare enum ArrowStatus {
|
|
|
175
207
|
UPDATED = "updated",
|
|
176
208
|
DELETED = "deleted"
|
|
177
209
|
}
|
|
178
|
-
export declare
|
|
179
|
-
ADDED
|
|
180
|
-
UPDATED
|
|
181
|
-
DELETED
|
|
182
|
-
}
|
|
210
|
+
export declare const AreaStatus: {
|
|
211
|
+
readonly ADDED: "added";
|
|
212
|
+
readonly UPDATED: "updated";
|
|
213
|
+
readonly DELETED: "deleted";
|
|
214
|
+
};
|
|
215
|
+
export type AreaStatus = (typeof AreaStatus)[keyof typeof AreaStatus];
|
|
183
216
|
export declare enum DocumentViewsStatus {
|
|
184
217
|
FIRST_VIEWED = "firstViewed"
|
|
185
218
|
}
|
|
@@ -252,19 +285,21 @@ export declare enum Roles {
|
|
|
252
285
|
ADMIN = "Admin",
|
|
253
286
|
COMMENTER = "Commenter"
|
|
254
287
|
}
|
|
255
|
-
export declare
|
|
256
|
-
PUBLIC
|
|
257
|
-
RESTRICTED
|
|
258
|
-
ORGANIZATION_PRIVATE
|
|
259
|
-
}
|
|
288
|
+
export declare const DocumentAccessType: {
|
|
289
|
+
readonly PUBLIC: "public";
|
|
290
|
+
readonly RESTRICTED: "restricted";
|
|
291
|
+
readonly ORGANIZATION_PRIVATE: "organizationPrivate";
|
|
292
|
+
};
|
|
293
|
+
export type DocumentAccessType = (typeof DocumentAccessType)[keyof typeof DocumentAccessType];
|
|
260
294
|
export declare enum DetectionStrategy {
|
|
261
295
|
DEFAULT = "default",
|
|
262
296
|
DYNAMIC_ID = "dynamicId"
|
|
263
297
|
}
|
|
264
|
-
export declare
|
|
265
|
-
PUBLIC
|
|
266
|
-
PRIVATE
|
|
267
|
-
}
|
|
298
|
+
export declare const CommentAccessMode: {
|
|
299
|
+
readonly PUBLIC: "public";
|
|
300
|
+
readonly PRIVATE: "private";
|
|
301
|
+
};
|
|
302
|
+
export type CommentAccessMode = (typeof CommentAccessMode)[keyof typeof CommentAccessMode];
|
|
268
303
|
export declare enum UnreadIndicatorMode {
|
|
269
304
|
MINIMAL = "minimal",
|
|
270
305
|
VERBOSE = "verbose"
|
|
@@ -277,19 +312,21 @@ export declare enum CommentCountType {
|
|
|
277
312
|
TOTAL = "total",
|
|
278
313
|
UNREAD = "unread"
|
|
279
314
|
}
|
|
280
|
-
export declare
|
|
281
|
-
ONLINE
|
|
282
|
-
OFFLINE
|
|
283
|
-
PENDING_INIT
|
|
284
|
-
PENDING_DATA
|
|
285
|
-
}
|
|
286
|
-
export
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
315
|
+
export declare const ServerConnectionState: {
|
|
316
|
+
readonly ONLINE: "online";
|
|
317
|
+
readonly OFFLINE: "offline";
|
|
318
|
+
readonly PENDING_INIT: "pendingInit";
|
|
319
|
+
readonly PENDING_DATA: "pendingData";
|
|
320
|
+
};
|
|
321
|
+
export type ServerConnectionState = (typeof ServerConnectionState)[keyof typeof ServerConnectionState];
|
|
322
|
+
export declare const ContactListScopeForOrganizationUsers: {
|
|
323
|
+
readonly ALL: "all";
|
|
324
|
+
readonly ORGANIZATION: "organization";
|
|
325
|
+
readonly ORGANIZATION_USER_GROUP: "organizationUserGroup";
|
|
326
|
+
readonly DOCUMENT: "document";
|
|
327
|
+
readonly FOLDER: "folder";
|
|
328
|
+
};
|
|
329
|
+
export type ContactListScopeForOrganizationUsers = (typeof ContactListScopeForOrganizationUsers)[keyof typeof ContactListScopeForOrganizationUsers];
|
|
293
330
|
export type RecorderMode = 'audio' | 'video' | 'screen' | 'all' | string;
|
|
294
331
|
export type RecorderType = 'audio' | 'video' | 'screen';
|
|
295
332
|
export type RecorderFileFormat = 'mp3' | 'mp4' | 'webm';
|
|
@@ -329,10 +366,11 @@ export type InlineSortingCriteria = 'createdFirst' | 'createdLast' | 'updatedFir
|
|
|
329
366
|
export type NotificationPanelMode = 'popover' | 'sidebar';
|
|
330
367
|
export type SidebarActionButtonType = 'default' | 'toggle';
|
|
331
368
|
export type SidebarButtonCountType = 'default' | 'filter';
|
|
332
|
-
export declare
|
|
333
|
-
AND
|
|
334
|
-
OR
|
|
335
|
-
}
|
|
369
|
+
export declare const CommentSidebarSystemFiltersOperator: {
|
|
370
|
+
readonly AND: "and";
|
|
371
|
+
readonly OR: "or";
|
|
372
|
+
};
|
|
373
|
+
export type CommentSidebarSystemFiltersOperator = (typeof CommentSidebarSystemFiltersOperator)[keyof typeof CommentSidebarSystemFiltersOperator];
|
|
336
374
|
/**
|
|
337
375
|
* Type for notification settings accordion types
|
|
338
376
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as E,Ha as R,Ja as S,Ka as F,Ma as l,T as b,bb as V,i as g,la as I,m as y,ra as v}from"./chunk-
|
|
1
|
+
import{D as E,Ha as R,Ja as S,Ka as F,Ma as l,T as b,bb as V,i as g,la as I,m as y,ra as v}from"./chunk-4FFPMABU.js";var Z={schedule(n,t){let e=setTimeout(n,t);return()=>clearTimeout(e)}};function D(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function M(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}var h;function T(n,t){if(!h){let e=Element.prototype;h=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE?h.call(n,t):!1}function C(n){let t={};return n.forEach(({propName:e,templateName:s,transform:r})=>{t[D(s)]=[e,r]}),t}function _(n,t){return t.get(l).resolveComponentFactory(n).inputs}function x(n,t){let e=n.childNodes,s=t.map(()=>[]),r=-1;t.some((c,u)=>c==="*"?(r=u,!0):!1);for(let c=0,u=e.length;c<u;++c){let o=e[c],i=O(o,t,r);i!==-1&&s[i].push(o)}return s}function O(n,t,e){let s=e;return M(n)&&t.some((r,c)=>r!=="*"&&T(n,r)?(s=c,!0):!1),s}var N=10,p=class{componentFactory;inputMap=new Map;constructor(t,e){this.componentFactory=e.get(l).resolveComponentFactory(t);for(let s of this.componentFactory.inputs)this.inputMap.set(s.propName,s.templateName)}create(t){return new m(this.componentFactory,t,this.inputMap)}},m=class{componentFactory;injector;inputMap;eventEmitters=new y(1);events=this.eventEmitters.pipe(b(t=>E(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,e,s){this.componentFactory=t,this.injector=e,this.inputMap=s,this.ngZone=this.injector.get(R),this.appRef=this.injector.get(V),this.cdScheduler=e.get(v),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=Z.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},N))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){if(this.componentRef===null){this.initialInputValues.set(t,e);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,e),S(this.componentRef.hostView)&&(F(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let e=I.create({providers:[],parent:this.injector}),s=x(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,s,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,e]of this.initialInputValues)this.setInputValue(t,e);this.initialInputValues.clear()}initializeOutputs(t){let e=this.componentFactory.outputs.map(({propName:s,templateName:r})=>{let c=t.instance[s];return new g(u=>{let o=c.subscribe(i=>u.next({name:r,value:i}));return()=>o.unsubscribe()})});this.eventEmitters.next(e)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},f=class extends HTMLElement{ngElementEventsSubscription=null};function L(n,t){let e=_(n,t.injector),s=t.strategyFactory||new p(n,t.injector),r=C(e);class c extends f{injector;static observedAttributes=Object.keys(r);get ngElementStrategy(){if(!this._ngElementStrategy){let o=this._ngElementStrategy=s.create(this.injector||t.injector);e.forEach(({propName:i,transform:a})=>{if(!this.hasOwnProperty(i))return;let d=this[i];delete this[i],o.setInputValue(i,d,a)})}return this._ngElementStrategy}_ngElementStrategy;constructor(o){super(),this.injector=o}attributeChangedCallback(o,i,a,d){let[w,j]=r[o];this.ngElementStrategy.setInputValue(w,a,j)}connectedCallback(){let o=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),o=!0),this.ngElementStrategy.connect(this),o||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(o=>{let i=new CustomEvent(o.name,{detail:o.value});this.dispatchEvent(i)})}}return e.forEach(({propName:u,transform:o})=>{Object.defineProperty(c.prototype,u,{get(){return this.ngElementStrategy.getInputValue(u)},set(i){this.ngElementStrategy.setInputValue(u,i,o)},configurable:!0,enumerable:!0})}),c}export{L as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ga as c,Pa as n,Wa as o,
|
|
1
|
+
import{Ga as c,Pa as n,Wa as o,ua as a,ui as h,wa as r}from"./chunk-4FFPMABU.js";var I=(()=>{let e=class e{constructor(t,i){this.domService=t,this.elementRef=i,this.clickOutside=new c}ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{this.subscription=this.domService.onDocumentClickSubject$().subscribe(t=>{let i=this.checkInsideClick(t,this.elementRef.nativeElement);!i&&this.clickOutsideHandler&&typeof this.clickOutsideHandler=="function"&&(i=this.clickOutsideHandler(t.target,this.elementRef.nativeElement)),i||this.clickOutside.emit()})},500)}ngOnDestroy(){this.subscription?.unsubscribe()}checkInsideClick(t,i){return t.composedPath().includes(i)}};e.\u0275fac=function(i){return new(i||e)(n(h),n(r))},e.\u0275dir=o({type:e,selectors:[["","snippylyClickOutside",""]],inputs:{clickOutsideHandler:"clickOutsideHandler"},outputs:{clickOutside:"clickOutside"}});let s=e;return s})();var b=(()=>{let e=class e{constructor(t){this.elementRef=t,this.lastPosition=null,this.positionChange=new c,this.disabled=!1,this.timeSpentInMs=0,this.MAX_TIME_SPENT_IN_MS=6e4}ngAfterViewInit(){try{this.toggleTrackingPosition()}catch{}}toggleTrackingPosition(){try{this.disabled?this.stopTracking():this.startTrackingPosition()}catch{}}startTrackingPosition(){try{if(this.intervalId)return;this.intervalId=setInterval(()=>{if(this.timeSpentInMs+=10,this.timeSpentInMs>this.MAX_TIME_SPENT_IN_MS){this.stopTracking();return}let t=this.elementRef.nativeElement.getBoundingClientRect();(!this.lastPosition||!this.arePositionsEqual(this.lastPosition,t))&&(this.lastPosition=t,this.positionChange.emit(t))},10)}catch{}}stopTracking(){try{this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null,this.timeSpentInMs=0)}catch{}}arePositionsEqual(t,i){try{return t.top===i.top&&t.left===i.left&&t.bottom===i.bottom&&t.right===i.right&&t.width===i.width&&t.height===i.height}catch{return!0}}ngOnChanges(){try{this.toggleTrackingPosition()}catch{}}ngOnDestroy(){try{this.stopTracking()}catch{}}};e.\u0275fac=function(i){return new(i||e)(n(r))},e.\u0275dir=o({type:e,selectors:[["","veltPositionObserver",""]],inputs:{disabled:[0,"veltPositionObserverDisabled","disabled"]},outputs:{positionChange:"positionChange"},features:[a]});let s=e;return s})();export{I as a,b};
|