@voplus/morpho-workspace 6.0.72 → 6.0.74

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. package/es/components/AutoSequenceDialog/index.less +14 -14
  2. package/es/components/TimeLog/index.less +86 -86
  3. package/es/controls/Corner/index.less +7 -7
  4. package/es/controls/InlineSearch/index.less +10 -10
  5. package/es/controls/MoreOperateDropdown/index.less +12 -12
  6. package/es/controls/StickyAddButton/index.less +22 -22
  7. package/es/controls/filters/AssigneeViewFilter/index.less +24 -24
  8. package/es/controls/filters/EventsFilter/index.js +2 -7
  9. package/es/controls/filters/EventsFilter/index.js.map +1 -1
  10. package/es/controls/filters/EventsFilter/state.d.ts +3 -1
  11. package/es/controls/filters/EventsFilter/state.js +18 -1
  12. package/es/controls/filters/EventsFilter/state.js.map +1 -1
  13. package/es/controls/filters/TaskStatusFilter/index.js +2 -7
  14. package/es/controls/filters/TaskStatusFilter/index.js.map +1 -1
  15. package/es/controls/filters/TaskStatusFilter/state.d.ts +3 -1
  16. package/es/controls/filters/TaskStatusFilter/state.js +18 -1
  17. package/es/controls/filters/TaskStatusFilter/state.js.map +1 -1
  18. package/es/modules/board/components/Board/index.less +133 -133
  19. package/es/modules/board/components/BoardColumn/index.less +270 -270
  20. package/es/modules/board/components/BoardPropertiesView/index.less +12 -12
  21. package/es/modules/board/components/SubDocumentList/index.less +30 -30
  22. package/es/modules/board/pages/BoardViewList/index.less +15 -15
  23. package/es/modules/calendar/components/CalendarMenu/index.less +31 -31
  24. package/es/modules/calendar/pages/CalendarMonth/index.less +268 -268
  25. package/es/modules/meeting/components/AgendaList/AgendaHeader/index.less +14 -14
  26. package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +132 -132
  27. package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.less +57 -57
  28. package/es/modules/meeting/components/AgendaList/index.less +47 -47
  29. package/es/modules/meeting/components/MeetingDescription/index.less +12 -12
  30. package/es/modules/meeting/components/MeetingHeader/index.less +13 -13
  31. package/es/modules/meeting/components/MeetingItem/index.less +66 -66
  32. package/es/modules/meeting/components/MeetingList/QuickSearch/index.less +12 -12
  33. package/es/modules/meeting/components/MeetingPropertiesView/index.less +15 -15
  34. package/es/modules/meeting/components/MeetingQuickViewDialog/index.less +14 -14
  35. package/es/modules/meeting/components/MeetingTaskList/index.less +30 -30
  36. package/es/modules/meeting/components/MeetingsFolderProperitesView/index.less +8 -8
  37. package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.less +7 -7
  38. package/es/modules/meeting/components/NewMeetingForm/index.less +35 -35
  39. package/es/modules/meeting/controls/MeetingTasksProgressDataIcon/index.less +7 -7
  40. package/es/modules/meeting/pages/MeetingDefaultView/index.less +23 -23
  41. package/es/modules/meeting/pages/MeetingPrintView/index.less +82 -82
  42. package/es/modules/meeting/pages/MeetingPrintView/print.css +22 -22
  43. package/es/modules/meeting/pages/MeetingTabView/index.less +21 -21
  44. package/es/modules/meeting/styles/MeetingMinView.less +32 -32
  45. package/es/modules/menus/components/AddUsers/index.less +7 -7
  46. package/es/modules/menus/components/UsersList/index.less +64 -64
  47. package/es/modules/menus/pages/ListOptions/Company/index.less +20 -20
  48. package/es/modules/menus/pages/ListOptions/Teams/index.less +44 -44
  49. package/es/modules/menus/pages/ListOptions/Users/index.less +42 -42
  50. package/es/modules/notification/components/DocumentNotificationCard/index.js +6 -3
  51. package/es/modules/notification/components/DocumentNotificationCard/index.js.map +1 -1
  52. package/es/modules/notification/components/DocumentNotificationCard/index.less +29 -29
  53. package/es/modules/notification/components/NewNotificationForm/index.less +38 -38
  54. package/es/modules/notification/components/NotificationHeader/index.less +12 -12
  55. package/es/modules/notification/components/NotificationItem/index.less +29 -29
  56. package/es/modules/notification/components/NotificationList/index.less +31 -31
  57. package/es/modules/notification/components/NotificationList2/index.less +11 -11
  58. package/es/modules/notification/components/NotificationPropertiesView/index.less +26 -26
  59. package/es/modules/notification/components/NotificationQuickViewDialog/index.less +7 -7
  60. package/es/modules/notification/components/NotificationRecipients/index.less +17 -17
  61. package/es/modules/notification/components/NotificationTabs/index.less +8 -8
  62. package/es/modules/notification/controls/NotificationStatusLabel/index.less +14 -14
  63. package/es/modules/notification/pages/NotificationDefaultView/index.less +19 -19
  64. package/es/modules/pin/components/MyPinned/index.less +38 -38
  65. package/es/modules/pin/pages/PinnedPage/index.less +31 -31
  66. package/es/modules/project/ProjectDefaultView/index.less +38 -38
  67. package/es/modules/tasks/components/AddTaskDropdown/index.less +37 -37
  68. package/es/modules/tasks/components/DelegateDialog/index.less +51 -51
  69. package/es/modules/tasks/components/NewTaskForm/index.less +37 -37
  70. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.d.ts +17 -0
  71. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.js +80 -0
  72. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.js.map +1 -0
  73. package/es/modules/tasks/components/NotificaitonNewTaskForm/index.less +18 -0
  74. package/es/modules/tasks/components/NotificaitonNewTaskForm/state.d.ts +18 -0
  75. package/es/modules/tasks/components/NotificaitonNewTaskForm/state.js +39 -0
  76. package/es/modules/tasks/components/NotificaitonNewTaskForm/state.js.map +1 -0
  77. package/es/modules/tasks/components/SubTaskList/index.less +20 -20
  78. package/es/modules/tasks/components/TaskCard/index.less +15 -15
  79. package/es/modules/tasks/components/TaskCheckActiveTab/index.less +24 -24
  80. package/es/modules/tasks/components/TaskCheckItem/index.less +83 -83
  81. package/es/modules/tasks/components/TaskCheckList/index.less +54 -54
  82. package/es/modules/tasks/components/TaskCheckNewForm/index.less +41 -41
  83. package/es/modules/tasks/components/TaskDescription/index.less +18 -18
  84. package/es/modules/tasks/components/TaskEstimatedTime/index.less +25 -25
  85. package/es/modules/tasks/components/TaskItem/defaultTaskItem.less +51 -51
  86. package/es/modules/tasks/components/TaskItem/subTaskItem.less +67 -67
  87. package/es/modules/tasks/components/TaskPropertiesView/index.less +23 -23
  88. package/es/modules/tasks/components/TaskQuickViewDialog/index.less +13 -13
  89. package/es/modules/tasks/components/TaskSimpleProperties/index.less +18 -18
  90. package/es/modules/tasks/controls/ChildTasksDataIcon/index.less +29 -29
  91. package/es/modules/tasks/controls/TaskStatusLabel/index.less +34 -34
  92. package/es/modules/tasks/pages/TaskDefaultView/index.less +19 -19
  93. package/es/modules/tasks/pages/TaskTabView/index.less +66 -66
  94. package/es/modules/tasks/reports/MemberEstimatedDurationCard/index.less +21 -21
  95. package/es/modules/tasks/reports/TaskAnalyticsDataIcon/index.less +8 -8
  96. package/es/modules/tasks/reports/TaskSummaryCard/index.less +28 -28
  97. package/es/modules/user/pages/Positions/index.less +59 -59
  98. package/es/modules/work/components/NewWorkErrorDialog/index.less +21 -21
  99. package/es/modules/work/components/NewWorkForm/index.less +18 -18
  100. package/es/modules/work/components/RejectWorkDialog/index.less +23 -23
  101. package/es/modules/work/components/RelatedWorkList/index.less +21 -21
  102. package/es/modules/work/components/SubWorkList/index.less +7 -7
  103. package/es/modules/work/components/WorkCard/index.less +7 -7
  104. package/es/modules/work/components/WorkCashReport/index.less +21 -31
  105. package/es/modules/work/components/WorkErrorItem/index.less +52 -52
  106. package/es/modules/work/components/WorkErrorList/index.less +4 -4
  107. package/es/modules/work/components/WorkErrorPropertiesView/index.less +40 -40
  108. package/es/modules/work/components/WorkErrorQuickViewDialog/index.less +28 -28
  109. package/es/modules/work/components/WorkItem/index.less +56 -56
  110. package/es/modules/work/components/WorkList/index.d.ts +2 -2
  111. package/es/modules/work/components/WorkList/index.js +20 -4
  112. package/es/modules/work/components/WorkList/index.js.map +1 -1
  113. package/es/modules/work/components/WorkList/index.less +7 -7
  114. package/es/modules/work/components/WorkPropertiesView/index.less +10 -10
  115. package/es/modules/work/components/WorkQATab/index.less +24 -24
  116. package/es/modules/work/components/WorkQuickViewDialog/index.less +16 -16
  117. package/es/modules/work/components/WorkTaskList/index.less +7 -7
  118. package/es/modules/work/components/WorkTasksTab/index.less +4 -4
  119. package/es/modules/work/components/WorksProperties/index.less +17 -17
  120. package/es/modules/work/controls/WorkStatusLabel/index.less +36 -36
  121. package/es/modules/work/pages/WorkDefaultView/index.less +18 -18
  122. package/es/modules/work/pages/WorkErrorDefaultView/index.less +22 -22
  123. package/es/modules/work/work-schedule/components/NewWorkScheduleForm/index.less +10 -10
  124. package/es/modules/work/work-schedule/components/WorkScheduleHeader/index.less +12 -12
  125. package/es/modules/work/work-schedule/components/WorkScheduleItem/index.less +40 -40
  126. package/es/modules/work/work-schedule/components/WorkScheduleList/index.less +12 -20
  127. package/es/modules/work/work-schedule/components/WorkScheduleQuickViewDialog/index.less +11 -11
  128. package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.less +7 -7
  129. package/es/modules/work/work-schedule/pages/WorkScheduleDefaultView/index.less +23 -23
  130. package/es/modules/work/work-type/components/ErrorTypeList/index.less +59 -59
  131. package/es/modules/work/work-type/components/NewTypeForm/index.less +7 -7
  132. package/es/modules/work/work-type/components/RepeatTab/index.less +42 -42
  133. package/es/modules/work/work-type/components/WorkTypeHeader/index.less +12 -12
  134. package/es/modules/work/work-type/components/WorkTypeIconList/index.less +14 -14
  135. package/es/modules/work/work-type/components/WorkTypeItem/index.less +48 -48
  136. package/es/modules/work/work-type/components/WorkTypeList/index.less +4 -4
  137. package/es/modules/work/work-type/components/WorkTypePropertiesTabs/index.less +12 -12
  138. package/es/modules/work/work-type/components/WorkTypePropertiesView/index.less +19 -19
  139. package/es/modules/work/work-type/components/WorkTypeQA/index.less +42 -42
  140. package/es/modules/work/work-type/components/WorkTypeStats/index.less +29 -29
  141. package/es/modules/work/work-type/components/WorkTypeTabs/index.less +45 -45
  142. package/es/modules/work/work-type/controls/WorkTypeStatusLabel/index.less +15 -15
  143. package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.less +8 -8
  144. package/es/modules/work/work-type/pages/WorkTypePage/index.less +56 -56
  145. package/es/modules/workspace/components/MyWorkspaces/index.less +30 -30
  146. package/es/modules/workspace/components/NewWorkspaceDialog/index.less +30 -30
  147. package/es/modules/workspace/components/WorkspaceIcon/index.less +81 -81
  148. package/es/modules/workspace/components/WorkspaceIconList/index.less +18 -18
  149. package/es/modules/workspace/components/WorkspaceIconList2/index.less +18 -18
  150. package/es/modules/workspace/components/WorkspacePropertiesView/index.less +19 -19
  151. package/es/modules/workspace/components/WorkspaceTabs/index.less +12 -12
  152. package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.less +8 -8
  153. package/es/modules/workspace/pages/WorkspaceDefaultView/index.less +28 -28
  154. package/es/modules/workspace/pages/WorkspacePage/index.less +23 -23
  155. package/es/obsolete/WorkTypeDefaultView/index.less +19 -19
  156. package/es/obsolete/member/components/member.less +24 -24
  157. package/es/obsolete/member/styles/MemberMinView.less +24 -24
  158. package/es/obsolete/space/components/Notes/ColorSelect/index.less +17 -17
  159. package/es/obsolete/space/components/Notes/NewNoteDialog/index.less +78 -78
  160. package/es/obsolete/space/components/Notes/TextNoteCard/index.less +56 -56
  161. package/es/obsolete/space/components/Tasks/index.less +17 -17
  162. package/es/obsolete/space/components/Works/index.less +18 -18
  163. package/es/obsolete/space/pages/MySpace/index.less +56 -56
  164. package/es/style/common.less +187 -187
  165. package/es/style/index.less +13 -13
  166. package/package.json +66 -66
  167. package/readme.md +152 -152
package/readme.md CHANGED
@@ -1,153 +1,153 @@
1
- # Typescript support
2
- Install dependencies
3
- ```
4
- npm i typescript ts-loader -D
5
- ```
6
- webpack configuration in webpack.config.js
7
- ```
8
- // ts loader for typescript
9
- {
10
- test: /\.tsx?$/,
11
- loader: 'ts-loader',
12
- exclude: /node_modules/,
13
- },
14
- resolve: {
15
- extensions: [
16
- //required for ts imports
17
- ".tsx", ".ts",
18
- //required for js imports (mostly in webpack dev self dependency)
19
- '.js']
20
- }
21
- ```
22
- # Less support
23
- Install dependencies
24
- ```
25
- npm i less less-loader css-loader style-loader -D
26
- ```
27
- Create tsexternals.d.ts with following content
28
- ```
29
- declare module '*.less'
30
- ```
31
- tsconfig configurations
32
- ```
33
- "includes" : ["./tsexternals.d.ts"],
34
- ```
35
- webpack configurations.
36
- ```
37
- // less support for project
38
- // chain less -> css loader (module support) -> style loader (inject styles tag into DOM)
39
- {
40
- test: /\.less$/,
41
- include: [path.join(__dirname, "/src")],
42
- use: [
43
- {loader: "style-loader"},
44
- {
45
- loader: "css-loader",
46
- options: {
47
- sourceMap: true,
48
- modules: true,
49
- localIdentName: "[local]___[hash:base64:5]"
50
- }
51
- },
52
- {loader: "less-loader"}
53
- ]
54
- },
55
- ```
56
-
57
- # Antd support
58
- Install dependencies
59
- ```
60
- npm i @voplus/antd ts-import-plugin -D
61
- ```
62
- webpack configurations
63
- ```
64
- // Add following to beginning of webpack.config.js
65
- const tsImportPlugin = require('ts-import-plugin');
66
-
67
- // Add following options to ts-loader rules
68
- options:
69
- {
70
- getCustomTransformers: () => ({
71
- before: [ tsImportPlugin({
72
- libraryDirectory: 'es',
73
- libraryName: '@voplus/antd',
74
- style: true})
75
- ]})
76
- }
77
-
78
- // As antd does not support css module (https://segmentfault.com/q/1010000011170368)
79
- // Add following additional less loader
80
- // less support for antd
81
- // javascriptEnabled are required for antd
82
- {
83
- test: /\.less$/,
84
- include: [path.join(__dirname, "/node_modules/@voplus/antd")],
85
- use: [
86
- {loader: "style-loader"},
87
- {loader: "css-loader"},
88
- {loader: "less-loader", options: { javascriptEnabled: true}}
89
- ]
90
- }
91
- ```
92
-
93
- Override antd style reference
94
- https://stackoverflow.com/questions/44817981/how-to-override-antd-style-with-dva
95
-
96
- ## Theme
97
- ### Override less variables
98
- modify '/src/style/theme.js'
99
-
100
- ### Override antd styles in components with modular less
101
- modular css/less will generate a unique class name and make it difficult to override antd class styles.
102
- We can use :global to overcome this. Code below demonstrated how to do this.
103
-
104
- ```
105
- // Less
106
- .componentClass {
107
- :global {
108
- //override ant styles under componentClass
109
- .ant-btn-primary {
110
- background-color: @success-color;
111
- }
112
- }
113
- }
114
- ```
115
- ```
116
- // TS
117
- <component className={styles.componentClass}>
118
- <Button type="primary">Button display with success color instead of primary color.</Button>
119
- </component>
120
- ```
121
-
122
- # Test Setup
123
- https://hackernoon.com/testing-react-components-with-jest-and-enzyme-41d592c174f
124
-
125
- "skipBabel" must set to true if allowSyntheticDefaultImports is true in tsconfig.json. Otherwise debugging with VSCode will have source map issues.
126
- 5 Dec 2018 : The above seems no longer needed after updated ts-jest.
127
-
128
- # Library Build
129
- Modify package.json
130
- ```
131
- "main": "lib/index.js",
132
- "build" : "webpack --config webpack.prod.js && tsc --outDir lib"
133
- ```
134
-
135
- Modify tsconfig.json
136
- 1. Remove "allowJs"
137
- 2. Add "declaration" : true
138
-
139
- # Knowledges
140
- ## test
141
- [28 Jul 2018]
142
- * jest skipBabel need set to true otherwise will have strange sourcemap issues.
143
- * tsconfig need following configuration otherwise awync await may not work
144
- "target": "es6",
145
- "allowSyntheticDefaultImports":false,
146
- "esModuleInterop":false
147
-
148
-
149
-
150
- **MacOS build时 cpx命令需要给文件目录加上引号**
151
- ```shell
152
- "copy-less": "cpx 'src/**/*.less' lib && cpx 'src/**/*.less' es && cpx 'src/**/*.css' es",
1
+ # Typescript support
2
+ Install dependencies
3
+ ```
4
+ npm i typescript ts-loader -D
5
+ ```
6
+ webpack configuration in webpack.config.js
7
+ ```
8
+ // ts loader for typescript
9
+ {
10
+ test: /\.tsx?$/,
11
+ loader: 'ts-loader',
12
+ exclude: /node_modules/,
13
+ },
14
+ resolve: {
15
+ extensions: [
16
+ //required for ts imports
17
+ ".tsx", ".ts",
18
+ //required for js imports (mostly in webpack dev self dependency)
19
+ '.js']
20
+ }
21
+ ```
22
+ # Less support
23
+ Install dependencies
24
+ ```
25
+ npm i less less-loader css-loader style-loader -D
26
+ ```
27
+ Create tsexternals.d.ts with following content
28
+ ```
29
+ declare module '*.less'
30
+ ```
31
+ tsconfig configurations
32
+ ```
33
+ "includes" : ["./tsexternals.d.ts"],
34
+ ```
35
+ webpack configurations.
36
+ ```
37
+ // less support for project
38
+ // chain less -> css loader (module support) -> style loader (inject styles tag into DOM)
39
+ {
40
+ test: /\.less$/,
41
+ include: [path.join(__dirname, "/src")],
42
+ use: [
43
+ {loader: "style-loader"},
44
+ {
45
+ loader: "css-loader",
46
+ options: {
47
+ sourceMap: true,
48
+ modules: true,
49
+ localIdentName: "[local]___[hash:base64:5]"
50
+ }
51
+ },
52
+ {loader: "less-loader"}
53
+ ]
54
+ },
55
+ ```
56
+
57
+ # Antd support
58
+ Install dependencies
59
+ ```
60
+ npm i @voplus/antd ts-import-plugin -D
61
+ ```
62
+ webpack configurations
63
+ ```
64
+ // Add following to beginning of webpack.config.js
65
+ const tsImportPlugin = require('ts-import-plugin');
66
+
67
+ // Add following options to ts-loader rules
68
+ options:
69
+ {
70
+ getCustomTransformers: () => ({
71
+ before: [ tsImportPlugin({
72
+ libraryDirectory: 'es',
73
+ libraryName: '@voplus/antd',
74
+ style: true})
75
+ ]})
76
+ }
77
+
78
+ // As antd does not support css module (https://segmentfault.com/q/1010000011170368)
79
+ // Add following additional less loader
80
+ // less support for antd
81
+ // javascriptEnabled are required for antd
82
+ {
83
+ test: /\.less$/,
84
+ include: [path.join(__dirname, "/node_modules/@voplus/antd")],
85
+ use: [
86
+ {loader: "style-loader"},
87
+ {loader: "css-loader"},
88
+ {loader: "less-loader", options: { javascriptEnabled: true}}
89
+ ]
90
+ }
91
+ ```
92
+
93
+ Override antd style reference
94
+ https://stackoverflow.com/questions/44817981/how-to-override-antd-style-with-dva
95
+
96
+ ## Theme
97
+ ### Override less variables
98
+ modify '/src/style/theme.js'
99
+
100
+ ### Override antd styles in components with modular less
101
+ modular css/less will generate a unique class name and make it difficult to override antd class styles.
102
+ We can use :global to overcome this. Code below demonstrated how to do this.
103
+
104
+ ```
105
+ // Less
106
+ .componentClass {
107
+ :global {
108
+ //override ant styles under componentClass
109
+ .ant-btn-primary {
110
+ background-color: @success-color;
111
+ }
112
+ }
113
+ }
114
+ ```
115
+ ```
116
+ // TS
117
+ <component className={styles.componentClass}>
118
+ <Button type="primary">Button display with success color instead of primary color.</Button>
119
+ </component>
120
+ ```
121
+
122
+ # Test Setup
123
+ https://hackernoon.com/testing-react-components-with-jest-and-enzyme-41d592c174f
124
+
125
+ "skipBabel" must set to true if allowSyntheticDefaultImports is true in tsconfig.json. Otherwise debugging with VSCode will have source map issues.
126
+ 5 Dec 2018 : The above seems no longer needed after updated ts-jest.
127
+
128
+ # Library Build
129
+ Modify package.json
130
+ ```
131
+ "main": "lib/index.js",
132
+ "build" : "webpack --config webpack.prod.js && tsc --outDir lib"
133
+ ```
134
+
135
+ Modify tsconfig.json
136
+ 1. Remove "allowJs"
137
+ 2. Add "declaration" : true
138
+
139
+ # Knowledges
140
+ ## test
141
+ [28 Jul 2018]
142
+ * jest skipBabel need set to true otherwise will have strange sourcemap issues.
143
+ * tsconfig need following configuration otherwise awync await may not work
144
+ "target": "es6",
145
+ "allowSyntheticDefaultImports":false,
146
+ "esModuleInterop":false
147
+
148
+
149
+
150
+ **MacOS build时 cpx命令需要给文件目录加上引号**
151
+ ```shell
152
+ "copy-less": "cpx 'src/**/*.less' lib && cpx 'src/**/*.less' es && cpx 'src/**/*.css' es",
153
153
  ```