@harbour-enterprises/superdoc 1.0.0-alpha.13 → 1.0.0-alpha.14
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/style.css +43 -42
- package/dist/superdoc.cjs.js +100 -105
- package/dist/superdoc.cjs.js.map +1 -1
- package/dist/superdoc.es.js +100 -105
- package/dist/superdoc.es.js.map +1 -1
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -16772,6 +16772,8 @@ body {
|
|
|
16772
16772
|
.superdoc {
|
|
16773
16773
|
min-height: 100%;
|
|
16774
16774
|
display: flex;
|
|
16775
|
+
margin: 0;
|
|
16776
|
+
padding: 0;
|
|
16775
16777
|
}
|
|
16776
16778
|
@media (max-width: 768px) {
|
|
16777
16779
|
|
|
@@ -19055,7 +19057,7 @@ body {
|
|
|
19055
19057
|
}
|
|
19056
19058
|
.superdoc-viewer .pdf-page {
|
|
19057
19059
|
border: 1px solid #DFDFDF;
|
|
19058
|
-
margin: 20px 0;
|
|
19060
|
+
margin: 0 0 20px 0;
|
|
19059
19061
|
position: relative;
|
|
19060
19062
|
}
|
|
19061
19063
|
.superdoc-viewer .textLayer {
|
|
@@ -19067,20 +19069,20 @@ body {
|
|
|
19067
19069
|
mix-blend-mode: difference;
|
|
19068
19070
|
}
|
|
19069
19071
|
|
|
19070
|
-
.comment-doc[data-v-
|
|
19072
|
+
.comment-doc[data-v-13d89078] {
|
|
19071
19073
|
position: relative;
|
|
19072
19074
|
}
|
|
19073
|
-
.comments-layer[data-v-
|
|
19075
|
+
.comments-layer[data-v-13d89078] {
|
|
19074
19076
|
position: relative;
|
|
19075
19077
|
}
|
|
19076
|
-
.comment-anchor[data-v-
|
|
19078
|
+
.comment-anchor[data-v-13d89078] {
|
|
19077
19079
|
position: absolute;
|
|
19078
19080
|
cursor: pointer;
|
|
19079
19081
|
z-index: 3;
|
|
19080
19082
|
border-radius: 4px;
|
|
19081
19083
|
transition: background-color 250ms ease;
|
|
19082
19084
|
}
|
|
19083
|
-
.comments-container[data-v-
|
|
19085
|
+
.comments-container[data-v-13d89078] {
|
|
19084
19086
|
/* pointer-events: none; */
|
|
19085
19087
|
}
|
|
19086
19088
|
|
|
@@ -19132,7 +19134,7 @@ span[data-v-36fffb56] {
|
|
|
19132
19134
|
}
|
|
19133
19135
|
|
|
19134
19136
|
|
|
19135
|
-
.comments-dialog[data-v-
|
|
19137
|
+
.comments-dialog[data-v-25f7474c] {
|
|
19136
19138
|
position: absolute;
|
|
19137
19139
|
display: flex;
|
|
19138
19140
|
flex-direction: column;
|
|
@@ -19145,14 +19147,14 @@ span[data-v-36fffb56] {
|
|
|
19145
19147
|
box-shadow: 0px 0px 1px 1px rgba(50, 50, 50, 0.15);
|
|
19146
19148
|
z-index: 5;
|
|
19147
19149
|
}
|
|
19148
|
-
.is-active[data-v-
|
|
19150
|
+
.is-active[data-v-25f7474c] {
|
|
19149
19151
|
z-index: 10;
|
|
19150
19152
|
}
|
|
19151
|
-
.overflow-menu[data-v-
|
|
19153
|
+
.overflow-menu[data-v-25f7474c] {
|
|
19152
19154
|
flex-shrink: 1;
|
|
19153
19155
|
display: flex;
|
|
19154
19156
|
}
|
|
19155
|
-
.overflow-menu i[data-v-
|
|
19157
|
+
.overflow-menu i[data-v-25f7474c] {
|
|
19156
19158
|
width: 20px;
|
|
19157
19159
|
height: 20px;
|
|
19158
19160
|
display: flex;
|
|
@@ -19164,69 +19166,69 @@ span[data-v-36fffb56] {
|
|
|
19164
19166
|
margin-left: 2px;
|
|
19165
19167
|
cursor: pointer;
|
|
19166
19168
|
}
|
|
19167
|
-
.overflow-menu i[data-v-
|
|
19169
|
+
.overflow-menu i[data-v-25f7474c]:hover {
|
|
19168
19170
|
background-color: #DBDBDB;
|
|
19169
19171
|
}
|
|
19170
|
-
.comment-entry[data-v-
|
|
19172
|
+
.comment-entry[data-v-25f7474c] {
|
|
19171
19173
|
flex-grow: 1;
|
|
19172
19174
|
margin: 5px 0;
|
|
19173
19175
|
}
|
|
19174
|
-
.comment-entry input[data-v-
|
|
19176
|
+
.comment-entry input[data-v-25f7474c] {
|
|
19175
19177
|
border-radius: 12px;
|
|
19176
19178
|
padding: 6px 10px;
|
|
19177
19179
|
outline: none;
|
|
19178
19180
|
border: 1px solid #DBDBDB;
|
|
19179
19181
|
width: 100%;
|
|
19180
19182
|
}
|
|
19181
|
-
.comment-header[data-v-
|
|
19183
|
+
.comment-header[data-v-25f7474c] {
|
|
19182
19184
|
display: flex;
|
|
19183
19185
|
align-items: center;
|
|
19184
19186
|
justify-content: space-between;
|
|
19185
19187
|
}
|
|
19186
|
-
.comment-header-left[data-v-
|
|
19188
|
+
.comment-header-left[data-v-25f7474c] {
|
|
19187
19189
|
display: flex;
|
|
19188
19190
|
justify-content: space-between;
|
|
19189
19191
|
align-items: center;
|
|
19190
19192
|
}
|
|
19191
|
-
.avatar[data-v-
|
|
19193
|
+
.avatar[data-v-25f7474c] {
|
|
19192
19194
|
margin-right: 10px;
|
|
19193
19195
|
}
|
|
19194
|
-
.user-info[data-v-
|
|
19196
|
+
.user-info[data-v-25f7474c] {
|
|
19195
19197
|
display: flex;
|
|
19196
19198
|
flex-direction: column;
|
|
19197
19199
|
font-size: 12px;
|
|
19198
19200
|
}
|
|
19199
|
-
.user-name[data-v-
|
|
19201
|
+
.user-name[data-v-25f7474c] {
|
|
19200
19202
|
font-weight: 600;
|
|
19201
19203
|
line-height: 1.2em;
|
|
19202
19204
|
}
|
|
19203
|
-
.user-timestamp[data-v-
|
|
19205
|
+
.user-timestamp[data-v-25f7474c] {
|
|
19204
19206
|
line-height: 1.2em;
|
|
19205
19207
|
font-size: 12px;
|
|
19206
19208
|
color: #999;
|
|
19207
19209
|
}
|
|
19208
|
-
.sd-button[data-v-
|
|
19210
|
+
.sd-button[data-v-25f7474c] {
|
|
19209
19211
|
margin-right: 5px;
|
|
19210
19212
|
font-size: 12px;
|
|
19211
19213
|
}
|
|
19212
|
-
.comment[data-v-
|
|
19214
|
+
.comment[data-v-25f7474c] {
|
|
19213
19215
|
font-size: 14px;
|
|
19214
19216
|
margin: 5px 0;
|
|
19215
19217
|
}
|
|
19216
|
-
.conversation-item[data-v-
|
|
19218
|
+
.conversation-item[data-v-25f7474c] {
|
|
19217
19219
|
border-bottom: 1px solid #DBDBDB;
|
|
19218
19220
|
padding-bottom: 10px;
|
|
19219
19221
|
}
|
|
19220
|
-
.comment-footer[data-v-
|
|
19222
|
+
.comment-footer[data-v-25f7474c] {
|
|
19221
19223
|
margin: 5px 0;
|
|
19222
19224
|
}
|
|
19223
19225
|
|
|
19224
|
-
.section-wrapper[data-v-
|
|
19226
|
+
.section-wrapper[data-v-858cd0cf] {
|
|
19225
19227
|
position: relative;
|
|
19226
19228
|
min-height: 100%;
|
|
19227
19229
|
width: 300px;
|
|
19228
19230
|
}
|
|
19229
|
-
.floating-comment[data-v-
|
|
19231
|
+
.floating-comment[data-v-858cd0cf] {
|
|
19230
19232
|
position: absolute;
|
|
19231
19233
|
min-width: 300px;
|
|
19232
19234
|
}
|
|
@@ -19276,7 +19278,7 @@ img[data-v-47d1dee5] {
|
|
|
19276
19278
|
}
|
|
19277
19279
|
|
|
19278
19280
|
/* Right sidebar drawer */
|
|
19279
|
-
.right-sidebar[data-v-
|
|
19281
|
+
.right-sidebar[data-v-49e265f8] {
|
|
19280
19282
|
width: 320px;
|
|
19281
19283
|
padding: 0 10px;
|
|
19282
19284
|
min-height: 100%;
|
|
@@ -19284,51 +19286,50 @@ img[data-v-47d1dee5] {
|
|
|
19284
19286
|
}
|
|
19285
19287
|
|
|
19286
19288
|
/* General Styles */
|
|
19287
|
-
.box-sizing[data-v-
|
|
19289
|
+
.box-sizing[data-v-49e265f8], .layers[data-v-49e265f8] {
|
|
19288
19290
|
box-sizing: border-box;
|
|
19289
19291
|
}
|
|
19290
|
-
.cursor-pointer[data-v-
|
|
19292
|
+
.cursor-pointer[data-v-49e265f8], .tools i[data-v-49e265f8], .toolbar-item[data-v-49e265f8] {
|
|
19291
19293
|
cursor: pointer;
|
|
19292
19294
|
}
|
|
19293
|
-
.flex[data-v-
|
|
19295
|
+
.flex[data-v-49e265f8] {
|
|
19294
19296
|
display: flex;
|
|
19295
19297
|
}
|
|
19296
|
-
.flex-column[data-v-
|
|
19298
|
+
.flex-column[data-v-49e265f8] {
|
|
19297
19299
|
flex-direction: column;
|
|
19298
19300
|
}
|
|
19299
|
-
.flex-center[data-v-
|
|
19301
|
+
.flex-center[data-v-49e265f8] {
|
|
19300
19302
|
display: flex;
|
|
19301
19303
|
align-items: center;
|
|
19302
19304
|
justify-content: center;
|
|
19303
19305
|
}
|
|
19304
19306
|
|
|
19305
19307
|
/* Layer Styles */
|
|
19306
|
-
.comments-layer[data-v-
|
|
19308
|
+
.comments-layer[data-v-49e265f8] {
|
|
19307
19309
|
position: absolute;
|
|
19308
19310
|
top: 0;
|
|
19309
19311
|
height: 100%;
|
|
19310
19312
|
}
|
|
19311
|
-
.layers[data-v-
|
|
19313
|
+
.layers[data-v-49e265f8] {
|
|
19312
19314
|
position: relative;
|
|
19313
|
-
display: inline-block;
|
|
19314
19315
|
}
|
|
19315
19316
|
|
|
19316
19317
|
/* Document Styles */
|
|
19317
|
-
.docx[data-v-
|
|
19318
|
+
.docx[data-v-49e265f8] {
|
|
19318
19319
|
border: 1px solid #DFDFDF;
|
|
19319
19320
|
pointer-events: auto;
|
|
19320
19321
|
}
|
|
19321
|
-
.sub-document[data-v-
|
|
19322
|
+
.sub-document[data-v-49e265f8] {
|
|
19322
19323
|
position: relative;
|
|
19323
19324
|
}
|
|
19324
19325
|
|
|
19325
19326
|
/* Toolbar Styles */
|
|
19326
|
-
.toolbar[data-v-
|
|
19327
|
+
.toolbar[data-v-49e265f8] {
|
|
19327
19328
|
height: 25px;
|
|
19328
19329
|
background-color: #fff;
|
|
19329
19330
|
margin-bottom: 5px;
|
|
19330
19331
|
}
|
|
19331
|
-
.toolbar-item[data-v-
|
|
19332
|
+
.toolbar-item[data-v-49e265f8] {
|
|
19332
19333
|
width: 20px;
|
|
19333
19334
|
height: 20px;
|
|
19334
19335
|
border-radius: 8px;
|
|
@@ -19340,12 +19341,12 @@ img[data-v-47d1dee5] {
|
|
|
19340
19341
|
justify-content: center;
|
|
19341
19342
|
transition: all 250ms ease;
|
|
19342
19343
|
}
|
|
19343
|
-
.toolbar-item[data-v-
|
|
19344
|
+
.toolbar-item[data-v-49e265f8]:hover {
|
|
19344
19345
|
background-color: #DBDBDB;
|
|
19345
19346
|
}
|
|
19346
19347
|
|
|
19347
19348
|
/* Tools Styles */
|
|
19348
|
-
.tools[data-v-
|
|
19349
|
+
.tools[data-v-49e265f8] {
|
|
19349
19350
|
position: absolute;
|
|
19350
19351
|
width: 50px;
|
|
19351
19352
|
height: 50px;
|
|
@@ -19356,7 +19357,7 @@ img[data-v-47d1dee5] {
|
|
|
19356
19357
|
align-items: center;
|
|
19357
19358
|
justify-content: center;
|
|
19358
19359
|
}
|
|
19359
|
-
.tools i[data-v-
|
|
19360
|
+
.tools i[data-v-49e265f8] {
|
|
19360
19361
|
font-size: 20px;
|
|
19361
19362
|
border-radius: 12px;
|
|
19362
19363
|
border: none;
|
|
@@ -19364,11 +19365,11 @@ img[data-v-47d1dee5] {
|
|
|
19364
19365
|
background-color: #DBDBDB;
|
|
19365
19366
|
}
|
|
19366
19367
|
@media (max-width: 768px) {
|
|
19367
|
-
.sub-document[data-v-
|
|
19368
|
+
.sub-document[data-v-49e265f8] {
|
|
19368
19369
|
max-width: 100%;
|
|
19369
19370
|
overflow: hidden;
|
|
19370
19371
|
}
|
|
19371
|
-
.right-sidebar[data-v-
|
|
19372
|
+
.right-sidebar[data-v-49e265f8] {
|
|
19372
19373
|
padding: 10px;
|
|
19373
19374
|
width: 55px;
|
|
19374
19375
|
position: relative;
|
package/dist/superdoc.cjs.js
CHANGED
|
@@ -37426,9 +37426,10 @@ const _sfc_main$b = {
|
|
|
37426
37426
|
const { selection } = conversation;
|
|
37427
37427
|
const containerBounds = selection.getContainerLocation(props.parent);
|
|
37428
37428
|
const placement = conversation.selection.selectionBounds;
|
|
37429
|
+
const top = parseFloat(placement.top) + containerBounds.top;
|
|
37429
37430
|
return {
|
|
37430
37431
|
position: "absolute",
|
|
37431
|
-
top:
|
|
37432
|
+
top: top + "px",
|
|
37432
37433
|
left: placement.left + "px",
|
|
37433
37434
|
width: placement.right - placement.left + "px",
|
|
37434
37435
|
height: placement.bottom - placement.top + "px"
|
|
@@ -37471,7 +37472,7 @@ const _sfc_main$b = {
|
|
|
37471
37472
|
};
|
|
37472
37473
|
}
|
|
37473
37474
|
};
|
|
37474
|
-
const CommentsLayer = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
37475
|
+
const CommentsLayer = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-13d89078"]]);
|
|
37475
37476
|
function OrderedMap(content) {
|
|
37476
37477
|
this.content = content;
|
|
37477
37478
|
}
|
|
@@ -48493,7 +48494,7 @@ const _sfc_main$8 = {
|
|
|
48493
48494
|
const superdocStore = useSuperdocStore();
|
|
48494
48495
|
const commentsStore = useCommentsStore();
|
|
48495
48496
|
const { COMMENT_EVENTS } = commentsStore;
|
|
48496
|
-
const { getConfig, activeComment, pendingComment } = storeToRefs(commentsStore);
|
|
48497
|
+
const { getConfig, activeComment, pendingComment, floatingCommentsOffset } = storeToRefs(commentsStore);
|
|
48497
48498
|
const { areDocumentsReady } = superdocStore;
|
|
48498
48499
|
const { selectionPosition } = storeToRefs(superdocStore);
|
|
48499
48500
|
const { proxy } = getCurrentInstance();
|
|
@@ -48568,6 +48569,7 @@ const _sfc_main$8 = {
|
|
|
48568
48569
|
};
|
|
48569
48570
|
const handleClickOutside = (e) => {
|
|
48570
48571
|
if (activeComment.value === props.data.conversationId) {
|
|
48572
|
+
floatingCommentsOffset.value = 0;
|
|
48571
48573
|
emit2("dialog-exit");
|
|
48572
48574
|
if (e.target.dataset.id)
|
|
48573
48575
|
activeComment.value = e.target.dataset.id;
|
|
@@ -48669,7 +48671,7 @@ const _sfc_main$8 = {
|
|
|
48669
48671
|
};
|
|
48670
48672
|
}
|
|
48671
48673
|
};
|
|
48672
|
-
const CommentDialog = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-
|
|
48674
|
+
const CommentDialog = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-25f7474c"]]);
|
|
48673
48675
|
function useFloatingConveration(params) {
|
|
48674
48676
|
const id = params.conversationId;
|
|
48675
48677
|
const conversation = ref(params);
|
|
@@ -48719,12 +48721,11 @@ const _sfc_main$7 = {
|
|
|
48719
48721
|
const dialog = visibleConversations.value[dialogIndex];
|
|
48720
48722
|
if (!dialog)
|
|
48721
48723
|
return;
|
|
48722
|
-
const containerBounds = floatingCommentsContainer.value.getBoundingClientRect();
|
|
48723
48724
|
const selectionBounds = dialog.conversation.selection.getContainerLocation(props.parent);
|
|
48724
48725
|
const position = elementRef.value.getBoundingClientRect();
|
|
48725
48726
|
const selection = dialog.conversation.selection.selectionBounds;
|
|
48726
|
-
const top = selection.top +
|
|
48727
|
-
const left = selection.left + position.left;
|
|
48727
|
+
const top = parseFloat(selection.top) + selectionBounds.top;
|
|
48728
|
+
const left = parseFloat(selection.left) + position.left;
|
|
48728
48729
|
dialog.position = {
|
|
48729
48730
|
top,
|
|
48730
48731
|
left,
|
|
@@ -48746,7 +48747,7 @@ const _sfc_main$7 = {
|
|
|
48746
48747
|
const topComparison = proposedPosition.top < previousPosition.bottom;
|
|
48747
48748
|
if (topComparison) {
|
|
48748
48749
|
const height = proposedPosition.bottom - proposedPosition.top;
|
|
48749
|
-
const newTop = previousPosition.bottom +
|
|
48750
|
+
const newTop = previousPosition.bottom + 5;
|
|
48750
48751
|
currentItem.offset = newTop - proposedPosition.top;
|
|
48751
48752
|
updatedPosition.top = newTop;
|
|
48752
48753
|
updatedPosition.bottom = updatedPosition.top + height;
|
|
@@ -48780,10 +48781,8 @@ const _sfc_main$7 = {
|
|
|
48780
48781
|
const conversations = [...firstDoc.conversations];
|
|
48781
48782
|
sortedConversations.value = conversations.sort(sortByLocation);
|
|
48782
48783
|
visibleConversations.value.push(useFloatingConveration(sortedConversations.value[0]));
|
|
48783
|
-
if (!activeComment.value)
|
|
48784
|
-
floatingCommentsOffset.value = 0;
|
|
48785
48784
|
};
|
|
48786
|
-
const
|
|
48785
|
+
const getCommentPosition = (convo) => {
|
|
48787
48786
|
return {
|
|
48788
48787
|
top: convo.position.top + "px"
|
|
48789
48788
|
};
|
|
@@ -48793,11 +48792,7 @@ const _sfc_main$7 = {
|
|
|
48793
48792
|
marginTop: floatingCommentsOffset.value * (-1 / 2) + "px"
|
|
48794
48793
|
};
|
|
48795
48794
|
});
|
|
48796
|
-
watch(documentsWithConverations, (newVal) =>
|
|
48797
|
-
if (!newVal.length)
|
|
48798
|
-
return;
|
|
48799
|
-
initialize();
|
|
48800
|
-
});
|
|
48795
|
+
watch(documentsWithConverations, (newVal) => newVal.length && initialize());
|
|
48801
48796
|
onMounted(() => {
|
|
48802
48797
|
initialize();
|
|
48803
48798
|
});
|
|
@@ -48813,22 +48808,24 @@ const _sfc_main$7 = {
|
|
|
48813
48808
|
class: "sidebar-container"
|
|
48814
48809
|
}, [
|
|
48815
48810
|
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(visibleConversations), (floatingConversation) => {
|
|
48816
|
-
return openBlock(),
|
|
48817
|
-
|
|
48818
|
-
|
|
48819
|
-
|
|
48820
|
-
|
|
48821
|
-
|
|
48822
|
-
|
|
48823
|
-
|
|
48824
|
-
|
|
48811
|
+
return openBlock(), createElementBlock("div", null, [
|
|
48812
|
+
createVNode(CommentDialog, {
|
|
48813
|
+
class: "floating-comment",
|
|
48814
|
+
onReady: handleDialogReady,
|
|
48815
|
+
onDialogExit: initialize,
|
|
48816
|
+
style: normalizeStyle(getCommentPosition(floatingConversation)),
|
|
48817
|
+
data: floatingConversation.conversation,
|
|
48818
|
+
"current-document": __props.currentDocument,
|
|
48819
|
+
user: unref(user)
|
|
48820
|
+
}, null, 8, ["style", "data", "current-document", "user"])
|
|
48821
|
+
]);
|
|
48825
48822
|
}), 256))
|
|
48826
48823
|
], 4)
|
|
48827
48824
|
], 512)) : createCommentVNode("", true);
|
|
48828
48825
|
};
|
|
48829
48826
|
}
|
|
48830
48827
|
};
|
|
48831
|
-
const FloatingComments = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-
|
|
48828
|
+
const FloatingComments = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-858cd0cf"]]);
|
|
48832
48829
|
const _sfc_main$6 = {
|
|
48833
48830
|
__name: "TextField",
|
|
48834
48831
|
props: {
|
|
@@ -52138,94 +52135,92 @@ const _sfc_main = {
|
|
|
52138
52135
|
document.removeEventListener("mousedown", handleDocumentMouseDown);
|
|
52139
52136
|
});
|
|
52140
52137
|
return (_ctx, _cache) => {
|
|
52141
|
-
return openBlock(), createElementBlock("div",
|
|
52142
|
-
createBaseVNode("div",
|
|
52143
|
-
|
|
52144
|
-
|
|
52145
|
-
|
|
52146
|
-
|
|
52138
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
52139
|
+
createBaseVNode("div", {
|
|
52140
|
+
class: "layers",
|
|
52141
|
+
ref_key: "layers",
|
|
52142
|
+
ref: layers
|
|
52143
|
+
}, [
|
|
52144
|
+
toolsMenuPosition.value && !unref(getConfig)?.readOnly ? (openBlock(), createElementBlock("div", {
|
|
52145
|
+
key: 0,
|
|
52146
|
+
class: "tools",
|
|
52147
|
+
style: normalizeStyle(toolsMenuPosition.value)
|
|
52147
52148
|
}, [
|
|
52148
|
-
|
|
52149
|
+
createBaseVNode("i", {
|
|
52150
|
+
class: "fas fa-comment-alt-lines",
|
|
52151
|
+
"data-id": "is-tool",
|
|
52152
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleToolClick("comments"), ["stop", "prevent"]))
|
|
52153
|
+
})
|
|
52154
|
+
], 4)) : createCommentVNode("", true),
|
|
52155
|
+
!unref(getConfig)?.readOnly && unref(selectionPosition) ? (openBlock(), createElementBlock("div", {
|
|
52156
|
+
key: 1,
|
|
52157
|
+
style: normalizeStyle(unref(selectionPosition)),
|
|
52158
|
+
class: "sd-highlight sd-initial-highlight"
|
|
52159
|
+
}, null, 4)) : createCommentVNode("", true),
|
|
52160
|
+
createBaseVNode("div", _hoisted_2, [
|
|
52161
|
+
"hrbr-fields" in unref(modules) && layers.value ? (openBlock(), createBlock(HrbrFieldsLayer, {
|
|
52149
52162
|
key: 0,
|
|
52150
|
-
|
|
52151
|
-
|
|
52152
|
-
|
|
52153
|
-
|
|
52154
|
-
|
|
52155
|
-
|
|
52156
|
-
|
|
52157
|
-
})
|
|
52158
|
-
], 4)) : createCommentVNode("", true),
|
|
52159
|
-
!unref(getConfig)?.readOnly && unref(selectionPosition) ? (openBlock(), createElementBlock("div", {
|
|
52163
|
+
fields: unref(modules)["hrbr-fields"],
|
|
52164
|
+
class: "comments-layer",
|
|
52165
|
+
style: { "z-index": "5", "background-color": "blue" },
|
|
52166
|
+
ref_key: "hrbrFieldsLayer",
|
|
52167
|
+
ref: hrbrFieldsLayer
|
|
52168
|
+
}, null, 8, ["fields"])) : createCommentVNode("", true),
|
|
52169
|
+
unref(isReady) && "comments" in unref(modules) && layers.value ? (openBlock(), createBlock(CommentsLayer, {
|
|
52160
52170
|
key: 1,
|
|
52161
|
-
|
|
52162
|
-
|
|
52163
|
-
|
|
52164
|
-
|
|
52165
|
-
|
|
52166
|
-
key: 0,
|
|
52167
|
-
fields: unref(modules)["hrbr-fields"],
|
|
52168
|
-
class: "comments-layer",
|
|
52169
|
-
style: { "z-index": "5", "background-color": "blue" },
|
|
52170
|
-
ref_key: "hrbrFieldsLayer",
|
|
52171
|
-
ref: hrbrFieldsLayer
|
|
52172
|
-
}, null, 8, ["fields"])) : createCommentVNode("", true),
|
|
52173
|
-
unref(isReady) && "comments" in unref(modules) && layers.value ? (openBlock(), createBlock(CommentsLayer, {
|
|
52174
|
-
key: 1,
|
|
52175
|
-
class: "comments-layer",
|
|
52176
|
-
style: { "z-index": "3" },
|
|
52177
|
-
ref_key: "commentsLayer",
|
|
52178
|
-
ref: commentsLayer,
|
|
52179
|
-
parent: layers.value,
|
|
52180
|
-
user: unref(user),
|
|
52181
|
-
onHighlightClick: handleHighlightClick
|
|
52182
|
-
}, null, 8, ["parent", "user"])) : createCommentVNode("", true),
|
|
52183
|
-
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(documents), (doc2) => {
|
|
52184
|
-
return openBlock(), createElementBlock("div", {
|
|
52185
|
-
class: "sub-document",
|
|
52186
|
-
ref_for: true,
|
|
52187
|
-
ref_key: "documentContainers",
|
|
52188
|
-
ref: documentContainers
|
|
52189
|
-
}, [
|
|
52190
|
-
doc2.type === "pdf" ? (openBlock(), createBlock(_sfc_main$c, {
|
|
52191
|
-
key: 0,
|
|
52192
|
-
"document-data": doc2,
|
|
52193
|
-
onSelectionChange: handleSelectionChange,
|
|
52194
|
-
onSelectionDrag: handleSelectionDrag,
|
|
52195
|
-
onSelectionDragEnd: handleSelectionDragEnd,
|
|
52196
|
-
onReady: handlePdfReady,
|
|
52197
|
-
onPageLoaded: unref(handlePageReady)
|
|
52198
|
-
}, null, 8, ["document-data", "onPageLoaded"])) : createCommentVNode("", true),
|
|
52199
|
-
doc2.type === "docx" ? (openBlock(), createBlock(DocumentEditor, {
|
|
52200
|
-
key: 1,
|
|
52201
|
-
"document-data": doc2,
|
|
52202
|
-
onReady: handlePdfReady
|
|
52203
|
-
}, null, 8, ["document-data"])) : createCommentVNode("", true)
|
|
52204
|
-
], 512);
|
|
52205
|
-
}), 256))
|
|
52206
|
-
])
|
|
52207
|
-
], 512),
|
|
52208
|
-
(unref(pendingComment) || unref(documentsWithConverations).length) && layers.value && unref(isReady) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
52209
|
-
unref(pendingComment) ? (openBlock(), createBlock(CommentDialog, {
|
|
52210
|
-
key: 0,
|
|
52211
|
-
data: unref(pendingComment),
|
|
52212
|
-
"current-document": unref(getDocument2)(unref(pendingComment).documentId),
|
|
52171
|
+
class: "comments-layer",
|
|
52172
|
+
style: { "z-index": "3" },
|
|
52173
|
+
ref_key: "commentsLayer",
|
|
52174
|
+
ref: commentsLayer,
|
|
52175
|
+
parent: layers.value,
|
|
52213
52176
|
user: unref(user),
|
|
52214
|
-
|
|
52215
|
-
}, null, 8, ["
|
|
52216
|
-
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(
|
|
52217
|
-
return openBlock(),
|
|
52218
|
-
|
|
52219
|
-
|
|
52220
|
-
|
|
52177
|
+
onHighlightClick: handleHighlightClick
|
|
52178
|
+
}, null, 8, ["parent", "user"])) : createCommentVNode("", true),
|
|
52179
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(documents), (doc2) => {
|
|
52180
|
+
return openBlock(), createElementBlock("div", {
|
|
52181
|
+
class: "sub-document",
|
|
52182
|
+
ref_for: true,
|
|
52183
|
+
ref_key: "documentContainers",
|
|
52184
|
+
ref: documentContainers
|
|
52185
|
+
}, [
|
|
52186
|
+
doc2.type === "pdf" ? (openBlock(), createBlock(_sfc_main$c, {
|
|
52187
|
+
key: 0,
|
|
52188
|
+
"document-data": doc2,
|
|
52189
|
+
onSelectionChange: handleSelectionChange,
|
|
52190
|
+
onSelectionDrag: handleSelectionDrag,
|
|
52191
|
+
onSelectionDragEnd: handleSelectionDragEnd,
|
|
52192
|
+
onReady: handlePdfReady,
|
|
52193
|
+
onPageLoaded: unref(handlePageReady)
|
|
52194
|
+
}, null, 8, ["document-data", "onPageLoaded"])) : createCommentVNode("", true),
|
|
52195
|
+
doc2.type === "docx" ? (openBlock(), createBlock(DocumentEditor, {
|
|
52196
|
+
key: 1,
|
|
52197
|
+
"document-data": doc2,
|
|
52198
|
+
onReady: handlePdfReady
|
|
52199
|
+
}, null, 8, ["document-data"])) : createCommentVNode("", true)
|
|
52200
|
+
], 512);
|
|
52221
52201
|
}), 256))
|
|
52222
|
-
])
|
|
52223
|
-
])
|
|
52202
|
+
])
|
|
52203
|
+
], 512),
|
|
52204
|
+
(unref(pendingComment) || unref(documentsWithConverations).length) && layers.value && unref(isReady) ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
52205
|
+
unref(pendingComment) ? (openBlock(), createBlock(CommentDialog, {
|
|
52206
|
+
key: 0,
|
|
52207
|
+
data: unref(pendingComment),
|
|
52208
|
+
"current-document": unref(getDocument2)(unref(pendingComment).documentId),
|
|
52209
|
+
user: unref(user),
|
|
52210
|
+
parent: layers.value
|
|
52211
|
+
}, null, 8, ["data", "current-document", "user", "parent"])) : createCommentVNode("", true),
|
|
52212
|
+
(openBlock(true), createElementBlock(Fragment$1, null, renderList(unref(documentsWithConverations), (doc2) => {
|
|
52213
|
+
return openBlock(), createBlock(FloatingComments, {
|
|
52214
|
+
parent: layers.value,
|
|
52215
|
+
"current-document": doc2
|
|
52216
|
+
}, null, 8, ["parent", "current-document"]);
|
|
52217
|
+
}), 256))
|
|
52218
|
+
])) : createCommentVNode("", true)
|
|
52224
52219
|
]);
|
|
52225
52220
|
};
|
|
52226
52221
|
}
|
|
52227
52222
|
};
|
|
52228
|
-
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
52223
|
+
const App = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-49e265f8"]]);
|
|
52229
52224
|
const createMyApp = () => {
|
|
52230
52225
|
const app = createApp(App);
|
|
52231
52226
|
const pinia = createPinia();
|