@harbour-enterprises/superdoc 1.0.0-alpha.4 → 1.0.0-alpha.6
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/README.md +12 -0
- package/dist/style.css +86 -36
- package/dist/superdoc.cjs.js +11587 -360
- package/dist/superdoc.cjs.js.map +1 -1
- package/dist/superdoc.es.js +11587 -360
- package/dist/superdoc.es.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
A supercharged document viewer and editor
|
|
4
4
|
|
|
5
|
+
### Development
|
|
6
|
+
```
|
|
7
|
+
npm install
|
|
8
|
+
npm run dev
|
|
9
|
+
|
|
10
|
+
This will load the Vue 3 app with test data. The main entry points are:
|
|
11
|
+
- main.js (test data)
|
|
12
|
+
- Superdoc.vue
|
|
13
|
+
|
|
14
|
+
For document editor (prose mirror), please see DocumentEditor.vue
|
|
15
|
+
```
|
|
16
|
+
|
|
5
17
|
### Installation
|
|
6
18
|
``` npm install @harbour-enterprises/superdoc ```
|
|
7
19
|
|
package/dist/style.css
CHANGED
|
@@ -19485,14 +19485,14 @@ body {
|
|
|
19485
19485
|
position: relative;
|
|
19486
19486
|
}
|
|
19487
19487
|
|
|
19488
|
-
.comment-doc[data-v-
|
|
19488
|
+
.comment-doc[data-v-1656a63d] {
|
|
19489
19489
|
background-color: red;
|
|
19490
19490
|
position: relative;
|
|
19491
19491
|
}
|
|
19492
|
-
.comments-layer[data-v-
|
|
19492
|
+
.comments-layer[data-v-1656a63d] {
|
|
19493
19493
|
position: relative;
|
|
19494
19494
|
}
|
|
19495
|
-
.comment-anchor[data-v-
|
|
19495
|
+
.comment-anchor[data-v-1656a63d] {
|
|
19496
19496
|
position: absolute;
|
|
19497
19497
|
cursor: pointer;
|
|
19498
19498
|
z-index: 3;
|
|
@@ -19500,10 +19500,10 @@ body {
|
|
|
19500
19500
|
transition: background-color 250ms ease;
|
|
19501
19501
|
pointer-events: auto;
|
|
19502
19502
|
}
|
|
19503
|
-
.comment-anchor[data-v-
|
|
19503
|
+
.comment-anchor[data-v-1656a63d]:hover {
|
|
19504
19504
|
background-color: #FFD70099;
|
|
19505
19505
|
}
|
|
19506
|
-
.comments-container[data-v-
|
|
19506
|
+
.comments-container[data-v-1656a63d] {
|
|
19507
19507
|
pointer-events: none;
|
|
19508
19508
|
}
|
|
19509
19509
|
|
|
@@ -19555,7 +19555,7 @@ span[data-v-36fffb56] {
|
|
|
19555
19555
|
}
|
|
19556
19556
|
|
|
19557
19557
|
|
|
19558
|
-
.comments-dialog[data-v-
|
|
19558
|
+
.comments-dialog[data-v-4946bb71] {
|
|
19559
19559
|
position: absolute;
|
|
19560
19560
|
display: flex;
|
|
19561
19561
|
flex-direction: column;
|
|
@@ -19569,11 +19569,11 @@ span[data-v-36fffb56] {
|
|
|
19569
19569
|
box-shadow: 0px 0px 2px 2px rgba(50, 50, 50, 0.15);
|
|
19570
19570
|
z-index: 5;
|
|
19571
19571
|
}
|
|
19572
|
-
.overflow-menu[data-v-
|
|
19572
|
+
.overflow-menu[data-v-4946bb71] {
|
|
19573
19573
|
flex-shrink: 1;
|
|
19574
19574
|
display: flex;
|
|
19575
19575
|
}
|
|
19576
|
-
.overflow-menu i[data-v-
|
|
19576
|
+
.overflow-menu i[data-v-4946bb71] {
|
|
19577
19577
|
width: 20px;
|
|
19578
19578
|
height: 20px;
|
|
19579
19579
|
display: flex;
|
|
@@ -19585,54 +19585,104 @@ span[data-v-36fffb56] {
|
|
|
19585
19585
|
margin-left: 2px;
|
|
19586
19586
|
cursor: pointer;
|
|
19587
19587
|
}
|
|
19588
|
-
.overflow-menu i[data-v-
|
|
19588
|
+
.overflow-menu i[data-v-4946bb71]:hover {
|
|
19589
19589
|
background-color: #DBDBDB;
|
|
19590
19590
|
}
|
|
19591
|
-
.card-section[data-v-
|
|
19591
|
+
.card-section[data-v-4946bb71] {
|
|
19592
19592
|
margin: 5px 0;
|
|
19593
19593
|
}
|
|
19594
|
-
.comment-entry[data-v-
|
|
19594
|
+
.comment-entry[data-v-4946bb71] {
|
|
19595
19595
|
flex-grow: 1;
|
|
19596
19596
|
}
|
|
19597
|
-
.comment-entry input[data-v-
|
|
19597
|
+
.comment-entry input[data-v-4946bb71] {
|
|
19598
19598
|
border-radius: 12px;
|
|
19599
19599
|
padding: 10px 14px;
|
|
19600
19600
|
outline: none;
|
|
19601
19601
|
border: 1px solid #DBDBDB;
|
|
19602
19602
|
width: 100%;
|
|
19603
19603
|
}
|
|
19604
|
-
.comment-header[data-v-
|
|
19604
|
+
.comment-header[data-v-4946bb71] {
|
|
19605
19605
|
display: flex;
|
|
19606
19606
|
align-items: center;
|
|
19607
19607
|
justify-content: space-between;
|
|
19608
19608
|
}
|
|
19609
|
-
.avatar[data-v-
|
|
19609
|
+
.avatar[data-v-4946bb71] {
|
|
19610
19610
|
margin-right: 10px;
|
|
19611
19611
|
}
|
|
19612
|
-
.user-info[data-v-
|
|
19612
|
+
.user-info[data-v-4946bb71] {
|
|
19613
19613
|
display: flex;
|
|
19614
19614
|
flex-direction: column;
|
|
19615
19615
|
font-size: 12px;
|
|
19616
19616
|
}
|
|
19617
|
-
.user-name[data-v-
|
|
19617
|
+
.user-name[data-v-4946bb71] {
|
|
19618
19618
|
font-weight: 600;
|
|
19619
19619
|
}
|
|
19620
|
-
.user-timestamp[data-v-
|
|
19620
|
+
.user-timestamp[data-v-4946bb71] {
|
|
19621
19621
|
font-size: 12px;
|
|
19622
19622
|
color: #999;
|
|
19623
19623
|
}
|
|
19624
|
-
.sd-button[data-v-
|
|
19624
|
+
.sd-button[data-v-4946bb71] {
|
|
19625
19625
|
margin-right: 5px;
|
|
19626
19626
|
}
|
|
19627
|
-
.comment[data-v-
|
|
19627
|
+
.comment[data-v-4946bb71] {
|
|
19628
19628
|
font-size: 14px;
|
|
19629
19629
|
margin: 10px 0;
|
|
19630
19630
|
}
|
|
19631
|
-
.conversation-item[data-v-
|
|
19631
|
+
.conversation-item[data-v-4946bb71] {
|
|
19632
19632
|
border-bottom: 1px solid #DBDBDB;
|
|
19633
19633
|
padding-bottom: 10px;
|
|
19634
19634
|
}
|
|
19635
19635
|
|
|
19636
|
+
.group-collapsed[data-v-0d0bd15f] {
|
|
19637
|
+
position: relative;
|
|
19638
|
+
display: inline;
|
|
19639
|
+
}
|
|
19640
|
+
.comments-icon[data-v-0d0bd15f] {
|
|
19641
|
+
font-size: 20px;
|
|
19642
|
+
width: 50px;
|
|
19643
|
+
height: 50px;
|
|
19644
|
+
font-weight: 400;
|
|
19645
|
+
background-color: #E2E9FB;
|
|
19646
|
+
color: #1355FF;
|
|
19647
|
+
border-radius: 50%;
|
|
19648
|
+
display: flex;
|
|
19649
|
+
align-items: center;
|
|
19650
|
+
justify-content: center;
|
|
19651
|
+
transition: background-color 250ms ease;
|
|
19652
|
+
user-select: none;
|
|
19653
|
+
pointer-events: none;
|
|
19654
|
+
}
|
|
19655
|
+
.number-bubble[data-v-0d0bd15f] {
|
|
19656
|
+
background-color: #1355FF;
|
|
19657
|
+
width: 20px;
|
|
19658
|
+
height: 20px;
|
|
19659
|
+
border-radius: 50%;
|
|
19660
|
+
position: absolute;
|
|
19661
|
+
right: -4px;
|
|
19662
|
+
top: -4px;
|
|
19663
|
+
color: white;
|
|
19664
|
+
display: flex;
|
|
19665
|
+
align-items: center;
|
|
19666
|
+
justify-content: center;
|
|
19667
|
+
font-size: 12px;
|
|
19668
|
+
}
|
|
19669
|
+
.comments-group[data-v-0d0bd15f] {
|
|
19670
|
+
cursor: pointer;
|
|
19671
|
+
position: absolute;
|
|
19672
|
+
display: flex;
|
|
19673
|
+
position: absolute;
|
|
19674
|
+
border-radius: 12px;
|
|
19675
|
+
transition: background-color 250ms ease;
|
|
19676
|
+
}
|
|
19677
|
+
.comments-icon[data-v-0d0bd15f]:hover {
|
|
19678
|
+
background-color: #E2E9FB99;
|
|
19679
|
+
}
|
|
19680
|
+
.expanded[data-v-0d0bd15f] {
|
|
19681
|
+
flex-direction: column;
|
|
19682
|
+
background-color: #EDEDED;
|
|
19683
|
+
z-index: 11;
|
|
19684
|
+
}
|
|
19685
|
+
|
|
19636
19686
|
.text-field[data-v-452996fe] {
|
|
19637
19687
|
white-space: nowrap;
|
|
19638
19688
|
height: 100%;
|
|
@@ -19681,58 +19731,58 @@ img[data-v-47d1dee5] {
|
|
|
19681
19731
|
}
|
|
19682
19732
|
|
|
19683
19733
|
/* Right sidebar drawer */
|
|
19684
|
-
.right-sidebar[data-v-
|
|
19734
|
+
.right-sidebar[data-v-e0890280] {
|
|
19685
19735
|
width: 320px;
|
|
19686
19736
|
padding: 10px;
|
|
19687
19737
|
position: relative;
|
|
19688
19738
|
}
|
|
19689
19739
|
|
|
19690
19740
|
/* General Styles */
|
|
19691
|
-
.box-sizing[data-v-
|
|
19741
|
+
.box-sizing[data-v-e0890280], .layers[data-v-e0890280] {
|
|
19692
19742
|
box-sizing: border-box;
|
|
19693
19743
|
}
|
|
19694
|
-
.cursor-pointer[data-v-
|
|
19744
|
+
.cursor-pointer[data-v-e0890280], .tools i[data-v-e0890280], .toolbar-item[data-v-e0890280] {
|
|
19695
19745
|
cursor: pointer;
|
|
19696
19746
|
}
|
|
19697
|
-
.flex[data-v-
|
|
19747
|
+
.flex[data-v-e0890280] {
|
|
19698
19748
|
display: flex;
|
|
19699
19749
|
}
|
|
19700
|
-
.flex-column[data-v-
|
|
19750
|
+
.flex-column[data-v-e0890280] {
|
|
19701
19751
|
flex-direction: column;
|
|
19702
19752
|
}
|
|
19703
|
-
.flex-center[data-v-
|
|
19753
|
+
.flex-center[data-v-e0890280] {
|
|
19704
19754
|
display: flex;
|
|
19705
19755
|
align-items: center;
|
|
19706
19756
|
justify-content: center;
|
|
19707
19757
|
}
|
|
19708
19758
|
|
|
19709
19759
|
/* Layer Styles */
|
|
19710
|
-
.comments-layer[data-v-
|
|
19760
|
+
.comments-layer[data-v-e0890280] {
|
|
19711
19761
|
position: absolute;
|
|
19712
19762
|
top: 0;
|
|
19713
19763
|
height: 100%;
|
|
19714
19764
|
}
|
|
19715
|
-
.layers[data-v-
|
|
19765
|
+
.layers[data-v-e0890280] {
|
|
19716
19766
|
position: relative;
|
|
19717
19767
|
display: inline-block;
|
|
19718
19768
|
}
|
|
19719
19769
|
|
|
19720
19770
|
/* Document Styles */
|
|
19721
|
-
.docx[data-v-
|
|
19771
|
+
.docx[data-v-e0890280] {
|
|
19722
19772
|
border: 1px solid #DFDFDF;
|
|
19723
19773
|
pointer-events: auto;
|
|
19724
19774
|
}
|
|
19725
|
-
.sub-document[data-v-
|
|
19775
|
+
.sub-document[data-v-e0890280] {
|
|
19726
19776
|
position: relative;
|
|
19727
19777
|
}
|
|
19728
19778
|
|
|
19729
19779
|
/* Toolbar Styles */
|
|
19730
|
-
.toolbar[data-v-
|
|
19780
|
+
.toolbar[data-v-e0890280] {
|
|
19731
19781
|
height: 25px;
|
|
19732
19782
|
background-color: #fff;
|
|
19733
19783
|
margin-bottom: 5px;
|
|
19734
19784
|
}
|
|
19735
|
-
.toolbar-item[data-v-
|
|
19785
|
+
.toolbar-item[data-v-e0890280] {
|
|
19736
19786
|
width: 20px;
|
|
19737
19787
|
height: 20px;
|
|
19738
19788
|
border-radius: 8px;
|
|
@@ -19744,23 +19794,23 @@ img[data-v-47d1dee5] {
|
|
|
19744
19794
|
justify-content: center;
|
|
19745
19795
|
transition: all 250ms ease;
|
|
19746
19796
|
}
|
|
19747
|
-
.toolbar-item[data-v-
|
|
19797
|
+
.toolbar-item[data-v-e0890280]:hover {
|
|
19748
19798
|
background-color: #DBDBDB;
|
|
19749
19799
|
}
|
|
19750
19800
|
|
|
19751
19801
|
/* Tools Styles */
|
|
19752
|
-
.tools[data-v-
|
|
19802
|
+
.tools[data-v-e0890280] {
|
|
19753
19803
|
position: absolute;
|
|
19754
19804
|
width: 50px;
|
|
19755
19805
|
height: 50px;
|
|
19756
19806
|
background-color: rgba(219, 219, 219, 0.6);
|
|
19757
19807
|
border-radius: 12px;
|
|
19758
|
-
z-index:
|
|
19808
|
+
z-index: 11;
|
|
19759
19809
|
display: flex;
|
|
19760
19810
|
align-items: center;
|
|
19761
19811
|
justify-content: center;
|
|
19762
19812
|
}
|
|
19763
|
-
.tools i[data-v-
|
|
19813
|
+
.tools i[data-v-e0890280] {
|
|
19764
19814
|
font-size: 20px;
|
|
19765
19815
|
border-radius: 12px;
|
|
19766
19816
|
border: none;
|