@voplus/morpho-document 5.0.19 → 5.0.21

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.
Files changed (141) hide show
  1. package/es/components/AddDocDropdown/index.less +61 -61
  2. package/es/components/AddFormView/index.less +42 -42
  3. package/es/components/AdvanceSearch/index.less +21 -21
  4. package/es/components/DescriptionDocumentList/index.less +14 -14
  5. package/es/components/DocumentCard/index.less +116 -116
  6. package/es/components/DocumentCardList/index.less +9 -9
  7. package/es/components/DocumentHeader/index.less +157 -157
  8. package/es/components/DocumentItem/index.less +88 -88
  9. package/es/components/DocumentList/index.less +100 -100
  10. package/es/components/DocumentListView/index.less +10 -10
  11. package/es/components/DocumentNotificationDialog/index.less +26 -26
  12. package/es/components/DocumentPanelHeader/index.less +12 -12
  13. package/es/components/DocumentProperties/index.js +6 -6
  14. package/es/components/DocumentProperties/index.js.map +1 -1
  15. package/es/components/DocumentProperties/index.less +27 -16
  16. package/es/components/DocumentPropertiesView/index.less +9 -9
  17. package/es/components/DocumentSelectDialog/index.less +54 -54
  18. package/es/components/DocumentSortableTree/index.less +22 -22
  19. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.less +335 -335
  20. package/es/components/DocumentSortableTree/themes/FileExplorerTheme/tree-node-renderer.less +4 -4
  21. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.less +64 -64
  22. package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.less +18 -18
  23. package/es/components/DocumentTabs/index.less +12 -12
  24. package/es/components/DocumentTree/index.less +4 -4
  25. package/es/components/FileViewer/index.less +93 -93
  26. package/es/components/FlexDialog/index.less +27 -27
  27. package/es/components/Icon/index.less +24 -24
  28. package/es/components/Links/index.less +140 -140
  29. package/es/components/NewDocumentForm/index.less +63 -63
  30. package/es/components/NodeQuickView/QuickSubTab/index.less +25 -25
  31. package/es/components/NodeQuickView/index.less +74 -74
  32. package/es/components/PublishModal/index.less +22 -22
  33. package/es/components/QuickAccessPanel/index.less +20 -20
  34. package/es/components/QuickAccessSearch/ObjectItem/index.less +21 -21
  35. package/es/components/QuickAccessSearch/index.less +23 -23
  36. package/es/components/QuickViewDialog/QuickSubTab/index.less +23 -23
  37. package/es/components/QuickViewDialog/index.less +82 -82
  38. package/es/components/SendForm/index.less +48 -48
  39. package/es/components/TagView/index.less +106 -106
  40. package/es/components/TextQuickViewDialog/index.less +7 -7
  41. package/es/components/VersionsModal/index.less +31 -31
  42. package/es/components/ViewFrame/ViewFrameHeader/index.less +16 -16
  43. package/es/components/ViewFrame/index.less +12 -12
  44. package/es/components/WordFieldViewer/index.less +5 -5
  45. package/es/components/WordFields/index.less +9 -9
  46. package/es/components/WordFillView/index.less +13 -13
  47. package/es/components/styles/ScrollBar.less +30 -30
  48. package/es/components/styles/common.less +187 -187
  49. package/es/components/styles/index.less +13 -13
  50. package/es/controls/ChildDocumentSelect/index.less +23 -23
  51. package/es/controls/DataIconBar/index.less +17 -17
  52. package/es/controls/DescriptionEditor/index.less +59 -59
  53. package/es/controls/DocumentLabel/index.less +12 -12
  54. package/es/controls/DocumentMenu/items/CopyReference.js +11 -11
  55. package/es/controls/DocumentReference/index.less +13 -13
  56. package/es/controls/FolderEdit/index.less +39 -39
  57. package/es/controls/MentionState/index.less +8 -8
  58. package/es/controls/PDFViewer/Toolbar/buttons/Zoom/index.less +16 -16
  59. package/es/controls/PDFViewer/Toolbar/index.less +36 -36
  60. package/es/controls/PDFViewer/index.less +20 -20
  61. package/es/controls/ReferenceList/index.less +52 -52
  62. package/es/controls/RelatedDocument/index.less +11 -11
  63. package/es/controls/TimeLog/index.less +91 -91
  64. package/es/controls/ToolBar/buttons/More.js.map +1 -1
  65. package/es/controls/ToolBar/index.less +76 -76
  66. package/es/controls/data-icons/DescriptionDataIcon/index.less +13 -13
  67. package/es/controls/data-icons/DocumentDataIcon/index.less +11 -11
  68. package/es/controls/data-icons/DocumentPathDataIcon/index.less +17 -17
  69. package/es/controls/data-icons/FlagIcon/index.less +42 -42
  70. package/es/modules/document-register/components/DocumentRegisterItem/index.less +45 -45
  71. package/es/modules/document-register/components/DocumentRegisterList/index.less +15 -15
  72. package/es/modules/document-register/components/DocumentRegisterProperties/index.js +2 -2
  73. package/es/modules/document-register/components/DocumentRegisterProperties/index.js.map +1 -1
  74. package/es/modules/document-register/components/DocumentRegisterPropertiesView/index.less +14 -14
  75. package/es/modules/document-register/components/DocumentRegisterQuickViewDialog/index.less +14 -14
  76. package/es/modules/document-register/controls/DocumentRegisterStatusLabel/index.less +35 -35
  77. package/es/modules/document-register/pages/DocumentRegisterDefaultView/index.less +21 -21
  78. package/es/modules/graph/components/GraphProperties/index.js +1 -1
  79. package/es/modules/graph/components/GraphProperties/index.js.map +1 -1
  80. package/es/modules/graph/components/GraphViewer/index.less +5 -5
  81. package/es/modules/graph/pages/GraphDefaultView/index.less +17 -17
  82. package/es/modules/page/components/PageItem/index.less +36 -36
  83. package/es/modules/page/components/PageItemHeader/index.less +34 -34
  84. package/es/modules/page/components/PageItems/index.less +79 -79
  85. package/es/modules/page/components/PlusDropDown/index.less +11 -11
  86. package/es/modules/page/views/PageDefaultView/index.less +75 -75
  87. package/es/modules/page/views/PagePrintView/index.less +44 -44
  88. package/es/obsolete/Links/index.less +112 -112
  89. package/es/pages/EmailTemplate/EmailTemplateDefaultView/index.less +39 -39
  90. package/es/pages/EmailTemplate/EmailTemplateForm/index.less +26 -26
  91. package/es/pages/EmailTemplate/EmailTemplateItem/index.js +4 -4
  92. package/es/pages/EmailTemplate/EmailTemplateItem/index.less +18 -18
  93. package/es/pages/EmailTemplate/EmailTemplateItems/index.less +68 -68
  94. package/es/pages/EmailTemplate/EmailTemplatePropertiesView/index.less +13 -13
  95. package/es/pages/Library/LibraryDefaultView/index.less +165 -165
  96. package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.less +57 -57
  97. package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.less +36 -36
  98. package/es/pages/Signature/Envelope/EnvelopeRecipientView/mobile/index.less +42 -42
  99. package/es/pages/Signature/Envelope/EnvelopeRecipientView/pc/index.less +70 -70
  100. package/es/pages/Signature/Envelope/EnvelopeReport/index.less +49 -49
  101. package/es/pages/Signature/Envelope/components/EnvelopeCard/index.less +64 -64
  102. package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.js +8 -8
  103. package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.js.map +1 -1
  104. package/es/pages/Signature/Envelope/components/EnvelopeQuickView/index.less +53 -53
  105. package/es/pages/Signature/Envelope/components/PropertiesView/index.less +47 -47
  106. package/es/pages/Signature/Envelope/controls/EnvelopeStatusLabel/index.less +20 -20
  107. package/es/pages/Signature/Envelope/controls/SignaturePercentageDataIcon/index.less +14 -14
  108. package/es/pages/Signature/Letter/LetterContentView/index.less +86 -86
  109. package/es/pages/Signature/Letter/LetterItem/index.less +31 -31
  110. package/es/pages/Signature/Letter/LetterList/index.less +72 -72
  111. package/es/pages/Signature/Letter/LetterViewer/index.less +76 -76
  112. package/es/pages/Signature/SignatureRecipient/index.less +18 -18
  113. package/es/pages/Signature/SignatureTable/index.less +51 -51
  114. package/es/pages/TreeViewPage/index.less +31 -31
  115. package/es/pages/VSubmit/VSubmitDefaultView/index.less +17 -17
  116. package/es/pages/VSubmit/VSubmitSubmitterView/index.less +34 -34
  117. package/es/pages/VSubmit/components/DocumentIcon/index.less +43 -43
  118. package/es/pages/VSubmit/components/DocumentIconList/index.less +85 -85
  119. package/es/pages/VSubmit/components/EmailRecipients/index.less +56 -56
  120. package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.less +16 -16
  121. package/es/pages/VSubmit/components/SubmitSections/SubmitterSectionItem/index.less +17 -17
  122. package/es/pages/VSubmit/components/SubmitSections/index.less +61 -61
  123. package/es/pages/WordFillPage/index.less +12 -12
  124. package/es/style/index.less +13 -13
  125. package/es/style/print.less +18 -18
  126. package/es/views/DocumentTabbedView/index.less +24 -24
  127. package/package.json +66 -66
  128. package/readme.md +9 -9
  129. package/es/components/VerificationInformation/VerificationStore.d.ts +0 -33
  130. package/es/components/VerificationInformation/VerificationStore.js +0 -50
  131. package/es/components/VerificationInformation/VerificationStore.js.map +0 -1
  132. package/es/components/VerificationInformation/index.d.ts +0 -5
  133. package/es/components/VerificationInformation/index.js +0 -36
  134. package/es/components/VerificationInformation/index.js.map +0 -1
  135. package/es/components/VerificationInformation/state.d.ts +0 -19
  136. package/es/components/VerificationInformation/state.js +0 -116
  137. package/es/components/VerificationInformation/state.js.map +0 -1
  138. package/es/controls/PropertiesSection/index.d.ts +0 -6
  139. package/es/controls/PropertiesSection/index.js +0 -17
  140. package/es/controls/PropertiesSection/index.js.map +0 -1
  141. package/es/controls/PropertiesSection/index.less +0 -25
@@ -1,16 +1,16 @@
1
- :global {
2
- .section-item {
3
- flex: 1;
4
- overflow: hidden;
5
- position: relative;
6
- background: #ffffff;
7
- &:after {
8
- position: absolute;
9
- content: "";
10
- left: 20px;
11
- bottom: 0;
12
- right: 20px;
13
- border-bottom: 1px solid #d9d9d9;
14
- }
15
- }
16
- }
1
+ :global {
2
+ .section-item {
3
+ flex: 1;
4
+ overflow: hidden;
5
+ position: relative;
6
+ background: #ffffff;
7
+ &:after {
8
+ position: absolute;
9
+ content: "";
10
+ left: 20px;
11
+ bottom: 0;
12
+ right: 20px;
13
+ border-bottom: 1px solid #d9d9d9;
14
+ }
15
+ }
16
+ }
@@ -1,17 +1,17 @@
1
- @import "~@voplus/morpho-theme/styles/index.less";
2
-
3
- :global {
4
- .sections-item-card {
5
- width: 100%;
6
- margin-left: auto;
7
- margin-right: auto;
8
- padding: 0 20px 20px 20px;
9
- background-color: @background-color-base;
10
- &.sections-item-card_zero {
11
- padding-top: 20px;
12
- }
13
- .section-item-content {
14
- background: #ffffff;
15
- }
16
- }
17
- }
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ :global {
4
+ .sections-item-card {
5
+ width: 100%;
6
+ margin-left: auto;
7
+ margin-right: auto;
8
+ padding: 0 20px 20px 20px;
9
+ background-color: @background-color-base;
10
+ &.sections-item-card_zero {
11
+ padding-top: 20px;
12
+ }
13
+ .section-item-content {
14
+ background: #ffffff;
15
+ }
16
+ }
17
+ }
@@ -1,61 +1,61 @@
1
- @import "~@voplus/morpho-theme/styles/index.less";
2
-
3
- .submit-sections {
4
- height: 100%;
5
- display: flex;
6
- flex-direction: column;
7
- :global {
8
- .submit-sections-list {
9
- flex: 1;
10
- .list-view-header {
11
- background: #ffffff;
12
- }
13
- .section-item-content,
14
- .section-item {
15
- .document-header-default {
16
- padding: 10px 20px;
17
- background-color: transparent;
18
- .document-pre {
19
- width: 28px;
20
- margin-right: 0 !important;
21
- > div {
22
- margin-right: 0.5rem;
23
- }
24
- .page-move {
25
- color: #000;
26
- cursor: move;
27
- }
28
- }
29
- }
30
- .section-document {
31
- height: 280px;
32
- }
33
- .section-item-tools {
34
- display: inline-block;
35
- margin-right: 8px;
36
- }
37
- .collapse-arrow {
38
- display: flex;
39
- align-items: center;
40
- }
41
- }
42
- }
43
- .submit-sections-list-readonly {
44
- .list-view-main {
45
- background-color: @background-color-base;
46
- }
47
- }
48
- .new-section-form {
49
- background: #ffffff;
50
- border-top: 1px solid #f0f0f0;
51
- .ant-input {
52
- padding: 4px 0;
53
- border: none;
54
- box-shadow: none;
55
- }
56
- .detailed {
57
- display: none;
58
- }
59
- }
60
- }
61
- }
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ .submit-sections {
4
+ height: 100%;
5
+ display: flex;
6
+ flex-direction: column;
7
+ :global {
8
+ .submit-sections-list {
9
+ flex: 1;
10
+ .list-view-header {
11
+ background: #ffffff;
12
+ }
13
+ .section-item-content,
14
+ .section-item {
15
+ .document-header-default {
16
+ padding: 10px 20px;
17
+ background-color: transparent;
18
+ .document-pre {
19
+ width: 28px;
20
+ margin-right: 0 !important;
21
+ > div {
22
+ margin-right: 0.5rem;
23
+ }
24
+ .page-move {
25
+ color: #000;
26
+ cursor: move;
27
+ }
28
+ }
29
+ }
30
+ .section-document {
31
+ height: 280px;
32
+ }
33
+ .section-item-tools {
34
+ display: inline-block;
35
+ margin-right: 8px;
36
+ }
37
+ .collapse-arrow {
38
+ display: flex;
39
+ align-items: center;
40
+ }
41
+ }
42
+ }
43
+ .submit-sections-list-readonly {
44
+ .list-view-main {
45
+ background-color: @background-color-base;
46
+ }
47
+ }
48
+ .new-section-form {
49
+ background: #ffffff;
50
+ border-top: 1px solid #f0f0f0;
51
+ .ant-input {
52
+ padding: 4px 0;
53
+ border: none;
54
+ box-shadow: none;
55
+ }
56
+ .detailed {
57
+ display: none;
58
+ }
59
+ }
60
+ }
61
+ }
@@ -1,13 +1,13 @@
1
- .word-fill-page {
2
- width: 100%;
3
- height: 100%;
4
- display: flex;
5
- flex-direction: column;
6
- background: white;
7
-
8
- :global {
9
- .word-fill-context {
10
- height: 100%;
11
- }
12
- }
1
+ .word-fill-page {
2
+ width: 100%;
3
+ height: 100%;
4
+ display: flex;
5
+ flex-direction: column;
6
+ background: white;
7
+
8
+ :global {
9
+ .word-fill-context {
10
+ height: 100%;
11
+ }
12
+ }
13
13
  }
@@ -1,13 +1,13 @@
1
- @import "~@voplus/morpho-theme/styles/index.less";
2
-
3
- .themed {
4
- :global {
5
- .ant-btn-primary {
6
- background-color: @success-color;
7
- }
8
- }
9
- }
10
-
11
- .app {
12
- color: @primary-color;
13
- }
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ .themed {
4
+ :global {
5
+ .ant-btn-primary {
6
+ background-color: @success-color;
7
+ }
8
+ }
9
+ }
10
+
11
+ .app {
12
+ color: @primary-color;
13
+ }
@@ -1,18 +1,18 @@
1
- @media print {
2
- body {
3
- color: #000;
4
- background: #fff;
5
- /* font-size: 10cm !important; */
6
- }
7
- section {
8
- page-break-before: always;
9
- }
10
- h1 {
11
- page-break-after: always;
12
- }
13
- p {
14
- page-break-inside: avoid;
15
- orphans: 3;
16
- widows: 2;
17
- }
18
- }
1
+ @media print {
2
+ body {
3
+ color: #000;
4
+ background: #fff;
5
+ /* font-size: 10cm !important; */
6
+ }
7
+ section {
8
+ page-break-before: always;
9
+ }
10
+ h1 {
11
+ page-break-after: always;
12
+ }
13
+ p {
14
+ page-break-inside: avoid;
15
+ orphans: 3;
16
+ widows: 2;
17
+ }
18
+ }
@@ -1,24 +1,24 @@
1
- .document-tabbed-view {
2
- :global {
3
- .document-tabbed-tabs {
4
- .ant-tabs-nav {
5
- padding: 0 20px;
6
- }
7
- .ant-tabs-tab > div {
8
- max-width: 10em;
9
- white-space: nowrap;
10
- overflow: hidden;
11
- text-overflow: ellipsis;
12
- }
13
- }
14
- .loading {
15
- margin: 20px 0;
16
- margin-bottom: 20px;
17
- padding: 30px 50px;
18
- text-align: center;
19
- }
20
- .ant-empty {
21
- margin: 32px 0;
22
- }
23
- }
24
- }
1
+ .document-tabbed-view {
2
+ :global {
3
+ .document-tabbed-tabs {
4
+ .ant-tabs-nav {
5
+ padding: 0 20px;
6
+ }
7
+ .ant-tabs-tab > div {
8
+ max-width: 10em;
9
+ white-space: nowrap;
10
+ overflow: hidden;
11
+ text-overflow: ellipsis;
12
+ }
13
+ }
14
+ .loading {
15
+ margin: 20px 0;
16
+ margin-bottom: 20px;
17
+ padding: 30px 50px;
18
+ text-align: center;
19
+ }
20
+ .ant-empty {
21
+ margin: 32px 0;
22
+ }
23
+ }
24
+ }
package/package.json CHANGED
@@ -1,66 +1,66 @@
1
- {
2
- "name": "@voplus/morpho-document",
3
- "version": "5.0.19",
4
- "repository": {
5
- "type": "git",
6
- "url": "https://voplus.visualstudio.com/morpho-document/_git/morpho-document"
7
- },
8
- "description": "Morpho document module.",
9
- "main": "es/index.js",
10
- "module": "es/index.js",
11
- "types": "es/index.d.ts",
12
- "files": [
13
- "es"
14
- ],
15
- "author": "ALEX KWOK",
16
- "license": "SEE LICENSE IN LICENSE",
17
- "scripts": {
18
- "copy-less": "cpx src/**/*.less lib && cpx src/**/*.less es && cpx src/**/*.css es",
19
- "copy-less-mac": "cpx 'src/**/*.less' lib && cpx 'src/**/*.less' es && cpx 'src/**/*.css' es",
20
- "clean": "del-cli es && jest --clearCache",
21
- "storybook": "start-storybook -p 9001 -c .storybook -s ./public",
22
- "lint": "npx eslint -c .eslintrc.js --ext .ts --ext .tsx src",
23
- "build": "npm run clean && tsc -p tsconfig.prod.json && npm run copy-less",
24
- "build:mac": "npm run clean && tsc -p tsconfig.prod.json && npm run copy-less-mac",
25
- "test": "jest"
26
- },
27
- "husky": {
28
- "hooks": {
29
- "pre-push": "npx eslint -c .eslintrc.js --ext .ts --ext .tsx src"
30
- }
31
- },
32
- "dependencies": {
33
- "@codemirror/lang-javascript": "^6.1.9",
34
- "@uiw/react-codemirror": "4.x",
35
- "@voplus/morpho-org": "5.x",
36
- "@voplus/morpho-text": "5.x",
37
- "file-saver": "2.x",
38
- "iframe-resizer-react": "1.x",
39
- "qrcode.react": "^3.1.0",
40
- "react-pdf": "7.x",
41
- "react-signature-canvas": "^1.0.3",
42
- "reactour": "^1.18.3"
43
- },
44
- "devDependencies": {
45
- "@types/file-saver": "2.x",
46
- "@types/qrcode.react": "^1.0.1",
47
- "@types/react-signature-canvas": "^1.0.1",
48
- "@types/reactour": "^1.18.1",
49
- "@voplus/morpho-build": "5.x",
50
- "@voplus/morpho-client-test": "5.x",
51
- "@voplus/morpho-storybook": "5.x",
52
- "@voplus/morpho-test": "2.x",
53
- "qrcode.react": "^3.1.0",
54
- "react": "18.x",
55
- "react-dom": "18.x"
56
- },
57
- "peerDependencies": {
58
- "react": "18.x",
59
- "react-dom": "18.x"
60
- },
61
- "sideEffects": [
62
- "*.less",
63
- "*.css",
64
- "./src/**/PDFViewer/index.tsx"
65
- ]
66
- }
1
+ {
2
+ "name": "@voplus/morpho-document",
3
+ "version": "5.0.21",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "https://voplus.visualstudio.com/morpho-document/_git/morpho-document"
7
+ },
8
+ "description": "Morpho document module.",
9
+ "main": "es/index.js",
10
+ "module": "es/index.js",
11
+ "types": "es/index.d.ts",
12
+ "files": [
13
+ "es"
14
+ ],
15
+ "author": "ALEX KWOK",
16
+ "license": "SEE LICENSE IN LICENSE",
17
+ "scripts": {
18
+ "copy-less": "cpx src/**/*.less lib && cpx src/**/*.less es && cpx src/**/*.css es",
19
+ "copy-less-mac": "cpx 'src/**/*.less' lib && cpx 'src/**/*.less' es && cpx 'src/**/*.css' es",
20
+ "clean": "del-cli es && jest --clearCache",
21
+ "storybook": "start-storybook -p 9001 -c .storybook -s ./public",
22
+ "lint": "npx eslint -c .eslintrc.js --ext .ts --ext .tsx src",
23
+ "build": "npm run clean && tsc -p tsconfig.prod.json && npm run copy-less",
24
+ "build:mac": "npm run clean && tsc -p tsconfig.prod.json && npm run copy-less-mac",
25
+ "test": "jest"
26
+ },
27
+ "husky": {
28
+ "hooks": {
29
+ "pre-push": "npx eslint -c .eslintrc.js --ext .ts --ext .tsx src"
30
+ }
31
+ },
32
+ "dependencies": {
33
+ "@codemirror/lang-javascript": "^6.1.9",
34
+ "@uiw/react-codemirror": "4.x",
35
+ "@voplus/morpho-org": "5.x",
36
+ "@voplus/morpho-text": "5.x",
37
+ "file-saver": "2.x",
38
+ "iframe-resizer-react": "1.x",
39
+ "qrcode.react": "^3.1.0",
40
+ "react-pdf": "7.x",
41
+ "react-signature-canvas": "^1.0.3",
42
+ "reactour": "^1.18.3"
43
+ },
44
+ "devDependencies": {
45
+ "@types/file-saver": "2.x",
46
+ "@types/qrcode.react": "^1.0.1",
47
+ "@types/react-signature-canvas": "^1.0.1",
48
+ "@types/reactour": "^1.18.1",
49
+ "@voplus/morpho-build": "5.x",
50
+ "@voplus/morpho-client-test": "5.x",
51
+ "@voplus/morpho-storybook": "5.x",
52
+ "@voplus/morpho-test": "2.x",
53
+ "qrcode.react": "^3.1.0",
54
+ "react": "18.x",
55
+ "react-dom": "18.x"
56
+ },
57
+ "peerDependencies": {
58
+ "react": "18.x",
59
+ "react-dom": "18.x"
60
+ },
61
+ "sideEffects": [
62
+ "*.less",
63
+ "*.css",
64
+ "./src/**/PDFViewer/index.tsx"
65
+ ]
66
+ }
package/readme.md CHANGED
@@ -1,10 +1,10 @@
1
- # 2020-01-05
2
-
3
- Changed tsconfig.json
4
- "target" changed from "esnext" to "es2018" due to "unexpected token" error webpack when using optional chaining.
5
-
6
-
7
- **MacOS build时 cpx命令需要给文件目录加上引号**
8
- ```shell
9
- "copy-less": "cpx 'src/**/*.less' lib && cpx 'src/**/*.less' es && cpx 'src/**/*.css' es",
1
+ # 2020-01-05
2
+
3
+ Changed tsconfig.json
4
+ "target" changed from "esnext" to "es2018" due to "unexpected token" error webpack when using optional chaining.
5
+
6
+
7
+ **MacOS build时 cpx命令需要给文件目录加上引号**
8
+ ```shell
9
+ "copy-less": "cpx 'src/**/*.less' lib && cpx 'src/**/*.less' es && cpx 'src/**/*.css' es",
10
10
  ```
@@ -1,33 +0,0 @@
1
- import { ApiEndPoint } from "@voplus/api";
2
- import { Store, StoreActionOptions } from "@voplus/morpho-data";
3
- export interface IVerification {
4
- verifiedBy: {
5
- id: string;
6
- name: string;
7
- };
8
- verifiedOn: Date;
9
- confirmedBy: {
10
- id: string;
11
- name: string;
12
- };
13
- confirmedOn: Date;
14
- }
15
- /** Quotation store supply backend functions. */
16
- export declare class VerificationStore extends Store {
17
- readonly endpoint: ApiEndPoint;
18
- /** Name of the store */
19
- readonly name: string;
20
- constructor(endpoint: ApiEndPoint);
21
- /** Edit verified. */
22
- verify(nodeId: string, options: {
23
- verified: boolean;
24
- } & StoreActionOptions): Promise<any>;
25
- /** Edit an confirmed. */
26
- confirm(nodeId: string, options: {
27
- confirmed: boolean;
28
- } & StoreActionOptions): Promise<any>;
29
- /** load verification */
30
- load(nodeId: string): Promise<IVerification>;
31
- }
32
- /** 响应钩子检索 VerificationStore */
33
- export declare const useVerificationStore: () => VerificationStore;
@@ -1,50 +0,0 @@
1
- import { RequestBuilder } from "@voplus/api";
2
- import { Store, useApplicationContext } from "@voplus/morpho-data";
3
- const StoreName = "VerificationStore";
4
- /** Quotation store supply backend functions. */
5
- export class VerificationStore extends Store {
6
- constructor(endpoint) {
7
- super();
8
- Object.defineProperty(this, "endpoint", {
9
- enumerable: true,
10
- configurable: true,
11
- writable: true,
12
- value: endpoint
13
- });
14
- /** Name of the store */
15
- Object.defineProperty(this, "name", {
16
- enumerable: true,
17
- configurable: true,
18
- writable: true,
19
- value: StoreName
20
- });
21
- }
22
- /** Edit verified. */
23
- async verify(nodeId, options) {
24
- return this.action(async () => {
25
- const r = await this.endpoint.post(`/api/nodes/${nodeId}/manual-verification/verify`, new RequestBuilder().json(options.verified));
26
- return await r.json();
27
- }, options);
28
- }
29
- /** Edit an confirmed. */
30
- async confirm(nodeId, options) {
31
- return this.action(async () => {
32
- const r = await this.endpoint.post(`/api/nodes/${nodeId}/manual-verification/confirm`, new RequestBuilder().json(options.confirmed));
33
- return await r.json();
34
- }, options);
35
- }
36
- /** load verification */
37
- async load(nodeId) {
38
- const r = await this.endpoint.get(`/api/nodes/${nodeId}/manual-verification`);
39
- return await r.json();
40
- }
41
- }
42
- /** 响应钩子检索 VerificationStore */
43
- export const useVerificationStore = () => {
44
- const context = useApplicationContext();
45
- if (!context.getService(StoreName)) {
46
- context.registerService(new VerificationStore(context.api.currentEndPoint));
47
- }
48
- return context.getService(StoreName);
49
- };
50
- //# sourceMappingURL=VerificationStore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VerificationStore.js","sourceRoot":"","sources":["../../../src/components/VerificationInformation/VerificationStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAsB,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEvF,MAAM,SAAS,GAAG,mBAAmB,CAAC;AAStC,gDAAgD;AAChD,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAI3C,YAAmC,QAAqB;QACvD,KAAK,EAAE,CAAC;QADU;;;;mBAAgB,QAAQ;WAAa;QAHxD,wBAAwB;QACR;;;;mBAAe,SAAS;WAAC;IAIzC,CAAC;IAED,qBAAqB;IACd,KAAK,CAAC,MAAM,CAAC,MAAc,EAAE,OAAmD;QACtF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC7B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,cAAc,MAAM,6BAA6B,EACjD,IAAI,cAAc,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAC3C,CAAC;YAEF,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;IACD,yBAAyB;IAClB,KAAK,CAAC,OAAO,CAAC,MAAc,EAAE,OAAoD;QACxF,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE;YAC7B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,CACjC,cAAc,MAAM,8BAA8B,EAClD,IAAI,cAAc,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAC5C,CAAC;YAEF,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QACvB,CAAC,EAAE,OAAO,CAAC,CAAC;IACb,CAAC;IACD,wBAAwB;IACjB,KAAK,CAAC,IAAI,CAAC,MAAc;QAC/B,MAAM,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,cAAc,MAAM,sBAAsB,CAAC,CAAC;QAC9E,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;CACD;AAED,+BAA+B;AAC/B,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACxC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;QACnC,OAAO,CAAC,eAAe,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;KAC5E;IACD,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,CAAuB,CAAC;AAC5D,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- import React from "react";
2
- declare const VerificationInformation: (props: {
3
- id: string;
4
- }) => React.JSX.Element;
5
- export default VerificationInformation;
@@ -1,36 +0,0 @@
1
- import { Form, Skeleton, Switch } from "antd";
2
- import React, { useEffect, useState } from "react";
3
- import { State } from "./state";
4
- import moment from "moment";
5
- import { observe } from "@voplus/morpho-ui";
6
- import { runInAction } from "mobx";
7
- import { useVerificationStore } from "./VerificationStore";
8
- const VerificationInformation = (props) => {
9
- const { id } = props;
10
- const verifyStore = useVerificationStore();
11
- const [state] = useState(new State(verifyStore));
12
- useEffect(() => {
13
- runInAction(() => {
14
- state.id = id;
15
- state.load();
16
- });
17
- }, [id]);
18
- return observe(() => {
19
- var _a, _b;
20
- return (React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 } }, state.loading ? (React.createElement(Skeleton, { active: true })) : (React.createElement(React.Fragment, null,
21
- React.createElement(Form.Item, { label: "Verified" },
22
- React.createElement(Switch, { checked: state.verified, onChange: state.onVerified }),
23
- ((_a = state.verification) === null || _a === void 0 ? void 0 : _a.verifiedBy.id) && (React.createElement("div", { className: "operate-record" },
24
- state.verification.verifiedBy.name,
25
- " verified on",
26
- moment(moment.utc(state.verification.verifiedOn).toDate()).format("YYYY-MM-DD HH:mm:ss")))),
27
- React.createElement(Form.Item, { label: "Confirmed" },
28
- React.createElement(Switch, { checked: state.confirmed, onChange: state.onConfirmed }),
29
- ((_b = state.verification) === null || _b === void 0 ? void 0 : _b.confirmedBy.id) && (React.createElement("div", { className: "operate-record" },
30
- state.verification.confirmedBy.name,
31
- " confirmed on",
32
- moment(moment.utc(state.verification.confirmedOn).toDate()).format("YYYY-MM-DD HH:mm:ss"))))))));
33
- });
34
- };
35
- export default VerificationInformation;
36
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/VerificationInformation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,uBAAuB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACzD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,WAAW,GAAG,oBAAoB,EAAE,CAAC;IAE3C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;YACd,KAAK,CAAC,IAAI,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,IAAI,IAAC,UAAU,EAAC,MAAM,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,IAC5C,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAChB,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACnB,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,CAAC,QAAQ;YACd,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,UAAU;gBAC1B,oBAAC,MAAM,IAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,CAAC,UAAU,GAAI;gBAC9D,CAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,UAAU,CAAC,EAAE,KAAI,CACrC,6BAAK,SAAS,EAAC,gBAAgB;oBAC7B,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI;;oBAClC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CACjE,qBAAqB,CACrB,CACI,CACN,CACU;YACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,WAAW;gBAC3B,oBAAC,MAAM,IAAC,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,CAAC,WAAW,GAAI;gBAChE,CAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,WAAW,CAAC,EAAE,KAAI,CACtC,6BAAK,SAAS,EAAC,gBAAgB;oBAC7B,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,IAAI;;oBACnC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAClE,qBAAqB,CACrB,CACI,CACN,CACU,CACI,CACjB,CACK,CACP,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1,19 +0,0 @@
1
- import { IVerification, VerificationStore } from "./VerificationStore";
2
- export declare class State {
3
- private verifyStore;
4
- id: string;
5
- /** data of verification */
6
- verification: IVerification;
7
- /** checked of verified */
8
- verified: boolean;
9
- /** checked of confirmed */
10
- confirmed: boolean;
11
- /** loading of load manual-verification */
12
- loading: boolean;
13
- constructor(verifyStore: VerificationStore);
14
- load(): Promise<void>;
15
- /** Edit verified */
16
- onVerified: (checked: boolean) => Promise<void>;
17
- /** Edit confirmed */
18
- onConfirmed: (checked: boolean) => Promise<void>;
19
- }