codecharta-visualization 1.86.0 → 1.89.0
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/Dockerfile +1 -1
- package/app/app.module.ts +30 -6
- package/app/codeCharta/codeCharta.component.html +0 -2
- package/app/codeCharta/codeCharta.component.ts +2 -0
- package/app/codeCharta/codeCharta.model.ts +8 -5
- package/app/codeCharta/codeCharta.service.spec.ts +41 -50
- package/app/codeCharta/codeCharta.service.ts +33 -32
- package/app/codeCharta/e2e/url.e2e.ts +1 -1
- package/app/codeCharta/services/ajs-upgraded-providers.ts +13 -0
- package/app/codeCharta/state/angular-redux/effects/createEffect.spec.ts +37 -0
- package/app/codeCharta/state/angular-redux/effects/createEffect.ts +25 -0
- package/app/codeCharta/state/angular-redux/effects/effects.module.ts +36 -0
- package/app/codeCharta/state/angular-redux/ofType.ts +11 -0
- package/app/codeCharta/state/angular-redux/state.ts +12 -0
- package/app/codeCharta/state/angular-redux/store.ts +1 -1
- package/app/codeCharta/state/effects/addBlacklistItemsIfNotResultsInEmptyMap/addBlacklistItemsIfNotResultsInEmptyMap.effect.spec.ts +60 -0
- package/app/codeCharta/state/effects/addBlacklistItemsIfNotResultsInEmptyMap/addBlacklistItemsIfNotResultsInEmptyMap.effect.ts +56 -0
- package/app/codeCharta/state/effects/addBlacklistItemsIfNotResultsInEmptyMap/resultsInEmptyMap.ts +22 -0
- package/app/codeCharta/state/effects/nodeContextMenu/excludeButton/excludeButton.component.html +3 -0
- package/app/codeCharta/state/effects/nodeContextMenu/excludeButton/excludeButton.component.ts +26 -0
- package/app/codeCharta/state/effects/nodeContextMenu/flattenButtons/flattenButtons.component.html +13 -0
- package/app/codeCharta/state/effects/nodeContextMenu/flattenButtons/flattenButtons.component.spec.ts +55 -0
- package/app/codeCharta/state/effects/nodeContextMenu/flattenButtons/flattenButtons.component.ts +34 -0
- package/app/codeCharta/state/effects/nodeContextMenu/flattenButtons/flattenButtons.module.ts +11 -0
- package/app/codeCharta/state/effects/nodeContextMenu/focusButtons/focusButtons.component.html +24 -0
- package/app/codeCharta/state/effects/nodeContextMenu/focusButtons/focusButtons.component.spec.ts +55 -0
- package/app/codeCharta/state/effects/nodeContextMenu/focusButtons/focusButtons.component.ts +38 -0
- package/app/codeCharta/state/effects/nodeContextMenu/focusButtons/focusButtons.module.ts +13 -0
- package/app/codeCharta/state/effects/nodeContextMenu/focusButtons/isNodeFocused.pipe.spec.ts +31 -0
- package/app/codeCharta/state/effects/nodeContextMenu/focusButtons/isNodeFocused.pipe.ts +25 -0
- package/app/codeCharta/state/effects/nodeContextMenu/highlightButtons/highlightButtons.component.html +6 -0
- package/app/codeCharta/state/effects/nodeContextMenu/highlightButtons/highlightButtons.component.spec.ts +64 -0
- package/app/codeCharta/state/effects/nodeContextMenu/highlightButtons/highlightButtons.component.ts +39 -0
- package/app/codeCharta/state/effects/nodeContextMenu/highlightButtons/highlightButtons.module.ts +11 -0
- package/app/codeCharta/state/effects/nodeContextMenu/markFolderRow/markFolderRow.component.html +22 -0
- package/app/codeCharta/state/effects/nodeContextMenu/markFolderRow/markFolderRow.component.scss +31 -0
- package/app/codeCharta/state/effects/nodeContextMenu/markFolderRow/markFolderRow.component.spec.ts +35 -0
- package/app/codeCharta/state/effects/nodeContextMenu/markFolderRow/markFolderRow.component.ts +30 -0
- package/app/codeCharta/state/effects/nodeContextMenu/markFolderRow/markFolderRow.module.ts +11 -0
- package/app/codeCharta/state/effects/nodeContextMenu/markFolderRow/selectors/markFolderItems.selector.spec.ts +17 -0
- package/app/codeCharta/state/effects/nodeContextMenu/markFolderRow/selectors/markFolderItems.selector.ts +29 -0
- package/app/codeCharta/{ui → state/effects}/nodeContextMenu/nodeContextMenu.e2e.ts +4 -16
- package/app/codeCharta/{ui → state/effects}/nodeContextMenu/nodeContextMenu.po.ts +1 -1
- package/app/codeCharta/state/effects/nodeContextMenu/nodeContextMenu.service.spec.ts +78 -0
- package/app/codeCharta/state/effects/nodeContextMenu/nodeContextMenu.service.ts +72 -0
- package/app/codeCharta/state/effects/nodeContextMenu/nodeContextMenuCard/lastPartOfNodePath.pipe.spec.ts +11 -0
- package/app/codeCharta/state/effects/nodeContextMenu/nodeContextMenuCard/lastPartOfNodePath.pipe.ts +8 -0
- package/app/codeCharta/state/effects/nodeContextMenu/nodeContextMenuCard/nodeContextMenuCard.component.html +17 -0
- package/app/codeCharta/state/effects/nodeContextMenu/nodeContextMenuCard/nodeContextMenuCard.component.scss +34 -0
- package/app/codeCharta/state/effects/nodeContextMenu/nodeContextMenuCard/nodeContextMenuCard.component.spec.ts +49 -0
- package/app/codeCharta/state/effects/nodeContextMenu/nodeContextMenuCard/nodeContextMenuCard.component.ts +19 -0
- package/app/codeCharta/state/effects/nodeContextMenu/nodeContextMenuCard/nodeContextMenuCard.module.ts +18 -0
- package/app/codeCharta/state/effects/nodeContextMenu/openNodeContextMenu.effect.spec.ts +32 -0
- package/app/codeCharta/state/effects/nodeContextMenu/openNodeContextMenu.effect.ts +33 -0
- package/app/codeCharta/state/effects/nodeContextMenu/rightClickedCodeMapNode.selector.ts +8 -0
- package/app/codeCharta/state/effects/unfocusNodesOnLoadingMap.effect.spec.ts +47 -0
- package/app/codeCharta/state/effects/unfocusNodesOnLoadingMap.effect.ts +18 -0
- package/app/codeCharta/state/selectors/allNecessaryRenderDataAvailable/areAllNecessaryRenderDataAvailable.selector.ts +30 -0
- package/app/codeCharta/state/selectors/allNecessaryRenderDataAvailable/utils/areDynamicSettingsAvailable.spec.ts +36 -0
- package/app/codeCharta/state/selectors/allNecessaryRenderDataAvailable/utils/areDynamicSettingsAvailable.ts +10 -0
- package/app/codeCharta/state/selectors/allNecessaryRenderDataAvailable/utils/areMetricsAvailable.spec.ts +13 -0
- package/app/codeCharta/state/selectors/allNecessaryRenderDataAvailable/utils/areMetricsAvailable.ts +8 -0
- package/app/codeCharta/state/store/appSettings/appSettings.actions.ts +2 -0
- package/app/codeCharta/state/store/appSettings/appSettings.reducer.ts +2 -0
- package/app/codeCharta/state/store/appSettings/invertArea/invertArea.actions.ts +32 -0
- package/app/codeCharta/state/store/appSettings/invertArea/invertArea.reducer.spec.ts +26 -0
- package/app/codeCharta/state/store/appSettings/invertArea/invertArea.reducer.ts +12 -0
- package/app/codeCharta/state/store/appSettings/invertArea/invertArea.selector.ts +3 -0
- package/app/codeCharta/state/store/appSettings/isLoadingMap/isLoadingMap.reducer.spec.ts +14 -3
- package/app/codeCharta/state/store/appSettings/isLoadingMap/isLoadingMap.reducer.ts +41 -6
- package/app/codeCharta/state/store/appStatus/appStatus.reducer.ts +3 -1
- package/app/codeCharta/state/store/appStatus/appStatus.selector.ts +3 -0
- package/app/codeCharta/state/store/appStatus/rightClickedNodeData/rightClickedNodeData.actions.ts +23 -0
- package/app/codeCharta/state/store/appStatus/rightClickedNodeData/rightClickedNodeData.reducer.ts +15 -0
- package/app/codeCharta/state/store/appStatus/rightClickedNodeData/rightClickedNodeData.selector.ts +4 -0
- package/app/codeCharta/state/store/dynamicSettings/dynamicSettings.splitter.ts +2 -2
- package/app/codeCharta/state/store/dynamicSettings/focusedNodePath/currentFocused.selector.ts +8 -0
- package/app/codeCharta/state/store/dynamicSettings/focusedNodePath/focusedNodePath.actions.ts +27 -7
- package/app/codeCharta/state/store/dynamicSettings/focusedNodePath/focusedNodePath.reducer.spec.ts +27 -11
- package/app/codeCharta/state/store/dynamicSettings/focusedNodePath/focusedNodePath.reducer.ts +11 -5
- package/app/codeCharta/state/store/dynamicSettings/focusedNodePath/focusedNodePath.selector.ts +4 -0
- package/app/codeCharta/state/store/dynamicSettings/focusedNodePath/focusedNodePath.service.spec.ts +2 -2
- package/app/codeCharta/state/store/dynamicSettings/focusedNodePath/focusedNodePath.service.ts +1 -1
- package/app/codeCharta/state/store/fileSettings/blacklist/blacklist.actions.ts +33 -2
- package/app/codeCharta/state/store/fileSettings/blacklist/blacklist.reducer.spec.ts +17 -1
- package/app/codeCharta/state/store/fileSettings/blacklist/blacklist.reducer.ts +3 -1
- package/app/codeCharta/state/store/fileSettings/blacklist/blacklist.service.spec.ts +1 -19
- package/app/codeCharta/state/store/fileSettings/blacklist/blacklist.service.ts +5 -28
- package/app/codeCharta/state/store/fileSettings/markedPackages/markedPackages.actions.ts +9 -10
- package/app/codeCharta/state/store/fileSettings/markedPackages/markedPackages.reducer.spec.ts +37 -7
- package/app/codeCharta/state/store/fileSettings/markedPackages/markedPackages.reducer.ts +7 -3
- package/app/codeCharta/state/store/fileSettings/markedPackages/util/findIndexOfMarkedPackageOrParent.spec.ts +39 -0
- package/app/codeCharta/state/store/fileSettings/markedPackages/util/findIndexOfMarkedPackageOrParent.ts +19 -0
- package/app/codeCharta/state/store/lookUp/idToNode/idToNode.selector.ts +4 -0
- package/app/codeCharta/state/store/lookUp/lookUp.selector.ts +3 -0
- package/app/codeCharta/state/store/metricData/nodeMetricData/nodeMetricData.service.ts +0 -4
- package/app/codeCharta/state/store/state.actions.ts +3 -1
- package/app/codeCharta/state/store/state.splitter.spec.ts +4 -4
- package/app/codeCharta/state/store/store.ts +5 -1
- package/app/codeCharta/state/store.service.spec.ts +21 -8
- package/app/codeCharta/state/store.service.ts +3 -31
- package/app/codeCharta/ui/areaSettingsPanel/areaSettingsPanel.component.html +3 -1
- package/app/codeCharta/ui/areaSettingsPanel/areaSettingsPanel.component.scss +6 -2
- package/app/codeCharta/ui/areaSettingsPanel/areaSettingsPanel.component.ts +1 -1
- package/app/codeCharta/ui/areaSettingsPanel/areaSettingsPanel.module.ts +3 -0
- package/app/codeCharta/ui/areaSettingsPanel/areaSettingsPanel.po.ts +4 -4
- package/app/codeCharta/ui/areaSettingsPanel/invertAreaOption/invertAreaOption.component.html +1 -0
- package/app/codeCharta/ui/areaSettingsPanel/invertAreaOption/invertAreaOption.component.scss +26 -0
- package/app/codeCharta/ui/areaSettingsPanel/invertAreaOption/invertAreaOption.component.spec.ts +29 -0
- package/app/codeCharta/ui/areaSettingsPanel/invertAreaOption/invertAreaOption.component.ts +24 -0
- package/app/codeCharta/ui/artificialIntelligence/__snapshots__/artificialIntelligence.component.spec.ts.snap +13 -16
- package/app/codeCharta/ui/artificialIntelligence/artificialIntelligence.component.html +4 -4
- package/app/codeCharta/ui/artificialIntelligence/artificialIntelligence.component.scss +0 -4
- package/app/codeCharta/ui/artificialIntelligence/artificialIntelligence.component.spec.ts +82 -52
- package/app/codeCharta/ui/artificialIntelligence/artificialIntelligence.component.ts +41 -101
- package/app/codeCharta/ui/attributeSideBar/attributeTypeSelector/aggregationType.pipe.spec.ts +19 -0
- package/app/codeCharta/ui/attributeSideBar/attributeTypeSelector/{aggregationSymbol.pipe.ts → aggregationType.pipe.ts} +4 -4
- package/app/codeCharta/ui/attributeSideBar/attributeTypeSelector/attributeTypeSelector.component.html +4 -12
- package/app/codeCharta/ui/attributeSideBar/attributeTypeSelector/attributeTypeSelector.component.scss +11 -20
- package/app/codeCharta/ui/attributeSideBar/attributeTypeSelector/attributeTypeSelector.component.spec.ts +8 -15
- package/app/codeCharta/ui/attributeSideBar/attributeTypeSelector/attributeTypeSelector.module.ts +2 -2
- package/app/codeCharta/ui/codeMap/__snapshots__/codeMap.arrow.service.spec.ts.snap +2 -2
- package/app/codeCharta/ui/codeMap/codeMap.actions.service.ts +1 -40
- package/app/codeCharta/ui/codeMap/codeMap.mouseEvent.service.ts +8 -16
- package/app/codeCharta/ui/codeMap/codeMap.preRender.service.spec.ts +1 -9
- package/app/codeCharta/ui/codeMap/codeMap.preRender.service.ts +9 -32
- package/app/codeCharta/ui/codeMap/rendering/codeMapMesh.ts +1 -0
- package/app/codeCharta/ui/colorPicker/colorPicker.component.html +16 -7
- package/app/codeCharta/ui/colorPicker/colorPicker.component.spec.ts +55 -16
- package/app/codeCharta/ui/colorPicker/colorPicker.component.ts +32 -1
- package/app/codeCharta/ui/colorPicker/colorPicker.module.ts +3 -1
- package/app/codeCharta/ui/customConfigs/customConfigs.component.html +29 -11
- package/app/codeCharta/ui/customConfigs/customConfigs.component.scss +1 -0
- package/app/codeCharta/ui/customConfigs/customConfigs.component.spec.ts +123 -2
- package/app/codeCharta/ui/customConfigs/customConfigs.component.ts +56 -2
- package/app/codeCharta/ui/dialog/dialog.addCustomConfigSettings.component.html +2 -2
- package/app/codeCharta/ui/dialog/dialog.changelog.component.html +1 -1
- package/app/codeCharta/ui/dialog/dialog.changelog.component.scss +15 -0
- package/app/codeCharta/ui/dialog/dialog.changelog.component.spec.ts +15 -15
- package/app/codeCharta/ui/dialog/dialog.changelog.component.ts +2 -1
- package/app/codeCharta/ui/dialog/dialog.globalSettings.e2e.ts +1 -1
- package/app/codeCharta/ui/dialog/dialog.globalSettings.po.ts +1 -1
- package/app/codeCharta/ui/dialog/dialog.service.spec.ts +68 -0
- package/app/codeCharta/ui/dialog/dialog.service.ts +38 -17
- package/app/codeCharta/ui/dialogs/dialogs.ts +3 -0
- package/app/codeCharta/ui/dialogs/errorDialog/errorDialog.component.html +7 -0
- package/app/codeCharta/ui/dialogs/errorDialog/errorDialog.component.ts +9 -0
- package/app/codeCharta/ui/edgeChooser/edgeChooser.e2e.ts +3 -2
- package/app/codeCharta/ui/fileChooser/fileChooser.e2e.ts +5 -6
- package/app/codeCharta/ui/filePanel/filePanel.component.html +24 -106
- package/app/codeCharta/ui/filePanel/filePanel.component.scss +12 -57
- package/app/codeCharta/ui/filePanel/filePanel.component.spec.ts +40 -72
- package/app/codeCharta/ui/filePanel/filePanel.component.ts +29 -81
- package/app/codeCharta/ui/filePanel/filePanel.module.ts +13 -1
- package/app/codeCharta/ui/filePanel/filePanel.po.ts +6 -24
- package/app/codeCharta/ui/filePanel/filePanelDeltaSelector/filePanelDeltaSelector.component.html +23 -0
- package/app/codeCharta/ui/filePanel/filePanelDeltaSelector/filePanelDeltaSelector.component.ts +18 -0
- package/app/codeCharta/ui/filePanel/filePanelFileSelector/filePanelFileSelector.component.html +18 -0
- package/app/codeCharta/ui/filePanel/filePanelFileSelector/filePanelFileSelector.component.ts +16 -0
- package/app/codeCharta/ui/filePanel/filePanelStateButtons/filePanelStateButtons.component.html +18 -0
- package/app/codeCharta/ui/filePanel/filePanelStateButtons/filePanelStateButtons.component.ts +11 -0
- package/app/codeCharta/ui/labelledColorPicker/labelledColorPicker.component.html +21 -13
- package/app/codeCharta/ui/labelledColorPicker/labelledColorPicker.component.spec.ts +11 -24
- package/app/codeCharta/ui/labelledColorPicker/labelledColorPicker.component.ts +1 -40
- package/app/codeCharta/ui/labelledColorPicker/labelledColorPicker.module.ts +1 -2
- package/app/codeCharta/ui/legendPanel/legendMarkedPackages/legendMarkedPackages.component.ts +2 -2
- package/app/codeCharta/ui/mapTreeView/mapTreeView.level.e2e.ts +8 -6
- package/app/codeCharta/ui/mapTreeView/mapTreeView.level.po.ts +1 -1
- package/app/codeCharta/ui/mapTreeView/mapTreeViewLevel/mapTreeViewLevel.component.html +1 -1
- package/app/codeCharta/ui/mapTreeView/mapTreeViewLevel/mapTreeViewLevel.component.spec.ts +6 -16
- package/app/codeCharta/ui/mapTreeView/mapTreeViewLevel/mapTreeViewLevel.component.ts +15 -11
- package/app/codeCharta/ui/ribbonBar/ribbonBar.component.html +3 -3
- package/app/codeCharta/ui/ribbonBar/ribbonBar.e2e.ts +3 -3
- package/app/codeCharta/ui/searchBar/searchBar.component.html +5 -0
- package/app/codeCharta/ui/searchBar/searchBar.component.scss +11 -0
- package/app/codeCharta/ui/searchBar/searchBar.component.spec.ts +10 -0
- package/app/codeCharta/ui/searchBar/searchBar.component.ts +1 -1
- package/app/codeCharta/ui/sortingOption/sortingOption.component.spec.ts +1 -1
- package/app/codeCharta/ui/toolBar/toolBar.component.html +1 -1
- package/app/codeCharta/ui/toolBar/toolBar.component.scss +1 -1
- package/app/codeCharta/ui/ui.ts +2 -6
- package/app/codeCharta/util/algorithm/streetLayout/strip/strip.ts +2 -2
- package/app/codeCharta/util/algorithm/streetLayout/treeMap.ts +1 -1
- package/app/codeCharta/util/algorithm/treeMapLayout/treeMapGenerator.spec.ts +2 -2
- package/app/codeCharta/util/algorithm/treeMapLayout/treeMapGenerator.ts +14 -7
- package/app/codeCharta/util/algorithm/treeMapLayout/treeMapHelper.spec.ts +2 -2
- package/app/codeCharta/util/algorithm/treeMapLayout/treeMapHelper.ts +1 -1
- package/app/codeCharta/util/customConfigBuilder.ts +2 -1
- package/app/codeCharta/util/customConfigHelper.spec.ts +155 -60
- package/app/codeCharta/util/customConfigHelper.ts +33 -3
- package/app/codeCharta/util/dataMocks.ts +8 -4
- package/app/codeCharta/util/fileExtensionCalculator.ts +1 -1
- package/app/codeCharta/util/fileValidator.spec.ts +69 -182
- package/app/codeCharta/util/fileValidator.ts +61 -37
- package/app/codeCharta/util/reduxHelper.ts +11 -0
- package/app/material/material.module.ts +17 -1
- package/conf/webpack.loaders.js +4 -1
- package/dist/webpack/bundle.js +5925 -1896
- package/dist/webpack/bundle.js.map +1 -1
- package/package.json +7 -6
- package/app/codeCharta/state/store/dynamicSettings/focusedNodePath/focusedNodePath.splitter.ts +0 -8
- package/app/codeCharta/ui/attributeSideBar/attributeTypeSelector/aggregationSymbol.pipe.spec.ts +0 -19
- package/app/codeCharta/ui/codeMap/codeMap.actions.service.spec.ts +0 -147
- package/app/codeCharta/ui/nodeContextMenu/markFolderColorPicker/markFolderColorPicker.component.html +0 -5
- package/app/codeCharta/ui/nodeContextMenu/markFolderColorPicker/markFolderColorPicker.component.scss +0 -13
- package/app/codeCharta/ui/nodeContextMenu/markFolderColorPicker/markFolderColorPicker.component.ts +0 -30
- package/app/codeCharta/ui/nodeContextMenu/markFolderColorPicker/markFolderColorPicker.module.ts +0 -13
- package/app/codeCharta/ui/nodeContextMenu/nodeContextMenu.component.html +0 -68
- package/app/codeCharta/ui/nodeContextMenu/nodeContextMenu.component.scss +0 -52
- package/app/codeCharta/ui/nodeContextMenu/nodeContextMenu.component.spec.ts +0 -571
- package/app/codeCharta/ui/nodeContextMenu/nodeContextMenu.component.ts +0 -318
- package/app/codeCharta/ui/nodeContextMenu/nodeContextMenu.module.ts +0 -13
- package/app/codeCharta/ui/unfocusButton/unfocusButton.component.html +0 -15
- package/app/codeCharta/ui/unfocusButton/unfocusButton.component.scss +0 -5
- package/app/codeCharta/ui/unfocusButton/unfocusButton.component.spec.ts +0 -106
- package/app/codeCharta/ui/unfocusButton/unfocusButton.component.ts +0 -62
- package/app/codeCharta/ui/unfocusButton/unfocusButton.module.ts +0 -7
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"url": "https://github.com/MaibornWolff/codecharta.git"
|
|
11
11
|
},
|
|
12
12
|
"name": "codecharta-visualization",
|
|
13
|
-
"version": "1.
|
|
13
|
+
"version": "1.89.0",
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=16"
|
|
16
16
|
},
|
|
@@ -133,6 +133,7 @@
|
|
|
133
133
|
"remark": "^13.0.0",
|
|
134
134
|
"remark-html": "^13.0.1",
|
|
135
135
|
"remark-loader": "^4.0.0",
|
|
136
|
+
"rxjs": "^7.5.1",
|
|
136
137
|
"shelljs": "^0.8.4",
|
|
137
138
|
"three": "^0.126.1",
|
|
138
139
|
"three-orbit-controls": "^82.1.0",
|
|
@@ -157,8 +158,8 @@
|
|
|
157
158
|
"@types/node": "^16.0.0",
|
|
158
159
|
"@types/puppeteer": "^5.4.3",
|
|
159
160
|
"@types/three": "^0.126.0",
|
|
160
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
161
|
-
"@typescript-eslint/parser": "^
|
|
161
|
+
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
162
|
+
"@typescript-eslint/parser": "^5.0.0",
|
|
162
163
|
"babel-loader": "^8.2.2",
|
|
163
164
|
"babel-plugin-angularjs-annotate": "^0.10.0",
|
|
164
165
|
"bestzip": "^2.2.0",
|
|
@@ -166,11 +167,11 @@
|
|
|
166
167
|
"clean-webpack-plugin": "^4.0.0",
|
|
167
168
|
"cross-env": "^7.0.3",
|
|
168
169
|
"css-loader": "^6.0.0",
|
|
169
|
-
"eslint": "^
|
|
170
|
+
"eslint": "^8.0.0",
|
|
170
171
|
"eslint-config-prettier": "^8.2.0",
|
|
171
|
-
"eslint-plugin-unicorn": "^
|
|
172
|
+
"eslint-plugin-unicorn": "^40.0.0",
|
|
172
173
|
"file-loader": "^6.2.0",
|
|
173
|
-
"html-loader": "^
|
|
174
|
+
"html-loader": "^3.0.0",
|
|
174
175
|
"html-loader-jest": "^0.2.1",
|
|
175
176
|
"html-webpack-plugin": "^5.3.1",
|
|
176
177
|
"jest": "^26.6.3",
|
package/app/codeCharta/ui/attributeSideBar/attributeTypeSelector/aggregationSymbol.pipe.spec.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AttributeTypeValue } from "../../../codeCharta.model"
|
|
2
|
-
import { AggregationSymbolPipe } from "./aggregationSymbol.pipe"
|
|
3
|
-
|
|
4
|
-
describe("aggregationSymbolPipe", () => {
|
|
5
|
-
it("should map `AttributeTypeValue.relative` to x͂", () => {
|
|
6
|
-
const getAttributeTypeOfNodesByMetricSelector = () => AttributeTypeValue.relative
|
|
7
|
-
expect(new AggregationSymbolPipe().transform("some-metric-name", getAttributeTypeOfNodesByMetricSelector)).toBe("x͂")
|
|
8
|
-
})
|
|
9
|
-
|
|
10
|
-
it("should map `AttributeTypeValue.absolute` to Σ", () => {
|
|
11
|
-
const getAttributeTypeOfNodesByMetricSelector = () => AttributeTypeValue.absolute
|
|
12
|
-
expect(new AggregationSymbolPipe().transform("some-metric-name", getAttributeTypeOfNodesByMetricSelector)).toBe("Σ")
|
|
13
|
-
})
|
|
14
|
-
|
|
15
|
-
it("should default to Σ", () => {
|
|
16
|
-
const getAttributeTypeOfNodesByMetricSelector = () => "" as AttributeTypeValue
|
|
17
|
-
expect(new AggregationSymbolPipe().transform("some-metric-name", getAttributeTypeOfNodesByMetricSelector)).toBe("Σ")
|
|
18
|
-
})
|
|
19
|
-
})
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import "./codeMap.module"
|
|
2
|
-
import "../../codeCharta.module"
|
|
3
|
-
import { CodeMapActionsService } from "./codeMap.actions.service"
|
|
4
|
-
import { getService, instantiateModule } from "../../../../mocks/ng.mockhelper"
|
|
5
|
-
import { CodeMapNode } from "../../codeCharta.model"
|
|
6
|
-
import { VALID_NODE_WITH_PATH } from "../../util/dataMocks"
|
|
7
|
-
import { StoreService } from "../../state/store.service"
|
|
8
|
-
import { setMarkedPackages } from "../../state/store/fileSettings/markedPackages/markedPackages.actions"
|
|
9
|
-
import { EdgeMetricDataService } from "../../state/store/metricData/edgeMetricData/edgeMetricData.service"
|
|
10
|
-
import { clone } from "../../util/clone"
|
|
11
|
-
|
|
12
|
-
describe("CodeMapActionService", () => {
|
|
13
|
-
let codeMapActionsService: CodeMapActionsService
|
|
14
|
-
let edgeMetricDataService: EdgeMetricDataService
|
|
15
|
-
let storeService: StoreService
|
|
16
|
-
|
|
17
|
-
let nodeA: CodeMapNode
|
|
18
|
-
|
|
19
|
-
function restartSystem() {
|
|
20
|
-
instantiateModule("app.codeCharta.ui.codeMap")
|
|
21
|
-
|
|
22
|
-
edgeMetricDataService = getService<EdgeMetricDataService>("edgeMetricDataService")
|
|
23
|
-
storeService = getService<StoreService>("storeService")
|
|
24
|
-
|
|
25
|
-
nodeA = clone(VALID_NODE_WITH_PATH)
|
|
26
|
-
storeService.dispatch(setMarkedPackages())
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function rebuildService() {
|
|
30
|
-
codeMapActionsService = new CodeMapActionsService(edgeMetricDataService, storeService)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
beforeEach(() => {
|
|
34
|
-
restartSystem()
|
|
35
|
-
rebuildService()
|
|
36
|
-
})
|
|
37
|
-
|
|
38
|
-
describe("markFolder", () => {
|
|
39
|
-
it("should mark a folder that is not marked yet and has no marked children packages", () => {
|
|
40
|
-
const expected = [{ color: "0x000000", path: "/root" }]
|
|
41
|
-
|
|
42
|
-
codeMapActionsService.markFolder(nodeA, "0x000000")
|
|
43
|
-
|
|
44
|
-
expect(storeService.getState().fileSettings.markedPackages).toHaveLength(1)
|
|
45
|
-
expect(storeService.getState().fileSettings.markedPackages).toEqual(expected)
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
it("should remove the children of a marked package if color is the same", () => {
|
|
49
|
-
const expected = [{ color: "0x000000", path: "/root" }]
|
|
50
|
-
|
|
51
|
-
codeMapActionsService.markFolder(nodeA.children[0], "0x000000")
|
|
52
|
-
codeMapActionsService.markFolder(nodeA, "0x000000")
|
|
53
|
-
|
|
54
|
-
expect(storeService.getState().fileSettings.markedPackages).toHaveLength(1)
|
|
55
|
-
expect(storeService.getState().fileSettings.markedPackages).toEqual(expected)
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
it("should not remove the children of a marked package if color is different", () => {
|
|
59
|
-
const expected = [
|
|
60
|
-
{ color: "0x000000", path: "/root" },
|
|
61
|
-
{ color: "0x000001", path: "/root/big leaf" }
|
|
62
|
-
]
|
|
63
|
-
|
|
64
|
-
codeMapActionsService.markFolder(nodeA, "0x000000")
|
|
65
|
-
codeMapActionsService.markFolder(nodeA.children[0], "0x000001")
|
|
66
|
-
|
|
67
|
-
expect(storeService.getState().fileSettings.markedPackages).toHaveLength(2)
|
|
68
|
-
expect(storeService.getState().fileSettings.markedPackages).toEqual(expected)
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
it("should not mark with a new color if sub-nodes are already marked", () => {
|
|
72
|
-
const expected = [
|
|
73
|
-
{ color: "0x000003", path: "/root" },
|
|
74
|
-
{ color: "0x000001", path: "/root/big leaf" },
|
|
75
|
-
{ color: "0x000002", path: "/root/Parent Leaf" }
|
|
76
|
-
]
|
|
77
|
-
|
|
78
|
-
codeMapActionsService.markFolder(nodeA, "0x000000")
|
|
79
|
-
codeMapActionsService.markFolder(nodeA.children[0], "0x000001")
|
|
80
|
-
codeMapActionsService.markFolder(nodeA.children[1], "0x000002")
|
|
81
|
-
|
|
82
|
-
codeMapActionsService.markFolder(nodeA, "0x000003")
|
|
83
|
-
|
|
84
|
-
expect(storeService.getState().fileSettings.markedPackages).toHaveLength(3)
|
|
85
|
-
expect(storeService.getState().fileSettings.markedPackages).toEqual(expected)
|
|
86
|
-
})
|
|
87
|
-
})
|
|
88
|
-
|
|
89
|
-
describe("unmarkFolder", () => {
|
|
90
|
-
it("should unmark a folder that is marked and has no marked children packages", () => {
|
|
91
|
-
codeMapActionsService.markFolder(nodeA, "0x000000")
|
|
92
|
-
|
|
93
|
-
codeMapActionsService.unmarkFolder(nodeA)
|
|
94
|
-
|
|
95
|
-
expect(storeService.getState().fileSettings.markedPackages).toHaveLength(0)
|
|
96
|
-
expect(storeService.getState().fileSettings.markedPackages).toEqual([])
|
|
97
|
-
})
|
|
98
|
-
|
|
99
|
-
it("should not unmark marked children nodes", () => {
|
|
100
|
-
const expected = [
|
|
101
|
-
{ color: "0x000000", path: "/root/big leaf" },
|
|
102
|
-
{ color: "0x000000", path: "/root/Parent Leaf" }
|
|
103
|
-
]
|
|
104
|
-
|
|
105
|
-
codeMapActionsService.markFolder(nodeA.children[0], "0x000000")
|
|
106
|
-
codeMapActionsService.markFolder(nodeA.children[1], "0x000000")
|
|
107
|
-
|
|
108
|
-
codeMapActionsService.unmarkFolder(nodeA)
|
|
109
|
-
|
|
110
|
-
expect(storeService.getState().fileSettings.markedPackages).toHaveLength(2)
|
|
111
|
-
expect(storeService.getState().fileSettings.markedPackages).toEqual(expected)
|
|
112
|
-
})
|
|
113
|
-
})
|
|
114
|
-
|
|
115
|
-
describe("getParentMarkedPackageIndex", () => {
|
|
116
|
-
it("should return null if there are no marked packages", () => {
|
|
117
|
-
const result = codeMapActionsService.getParentMarkedPackageIndex(nodeA.path)
|
|
118
|
-
|
|
119
|
-
expect(result).toEqual(-1)
|
|
120
|
-
})
|
|
121
|
-
|
|
122
|
-
it("should return null if node is a marked package", () => {
|
|
123
|
-
codeMapActionsService.markFolder(nodeA, "0x000000")
|
|
124
|
-
|
|
125
|
-
const result = codeMapActionsService.getParentMarkedPackageIndex(nodeA.path)
|
|
126
|
-
|
|
127
|
-
expect(result).toEqual(-1)
|
|
128
|
-
})
|
|
129
|
-
|
|
130
|
-
it("should return marked package of root", () => {
|
|
131
|
-
codeMapActionsService.markFolder(nodeA, "0x000000")
|
|
132
|
-
|
|
133
|
-
const result = codeMapActionsService.getParentMarkedPackageIndex(nodeA.children[0].path)
|
|
134
|
-
|
|
135
|
-
expect(result).toEqual(0)
|
|
136
|
-
})
|
|
137
|
-
|
|
138
|
-
it("should return the correct parent marked package", () => {
|
|
139
|
-
codeMapActionsService.markFolder(nodeA, "0x000000")
|
|
140
|
-
codeMapActionsService.markFolder(nodeA.children[1], "0x000001")
|
|
141
|
-
|
|
142
|
-
const result = codeMapActionsService.getParentMarkedPackageIndex(nodeA.children[1].children[0].path)
|
|
143
|
-
|
|
144
|
-
expect(result).toEqual(1)
|
|
145
|
-
})
|
|
146
|
-
})
|
|
147
|
-
})
|
package/app/codeCharta/ui/nodeContextMenu/markFolderColorPicker/markFolderColorPicker.component.html
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
<div class="cc-color-picker-trigger fa fa-paint-brush" [matMenuTriggerFor]="menu" #colorPickerMenuTrigger="matMenuTrigger"></div>
|
|
2
|
-
|
|
3
|
-
<mat-menu #menu="matMenu" [hasBackdrop]="false" class="cc-color-picker-menu">
|
|
4
|
-
<cc-color-picker [hexColor]="'#ff0000'" (onColorChange)="markFolder($event)"></cc-color-picker>
|
|
5
|
-
</mat-menu>
|
package/app/codeCharta/ui/nodeContextMenu/markFolderColorPicker/markFolderColorPicker.component.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Component, HostListener, Input, ViewChild } from "@angular/core"
|
|
2
|
-
import { MatMenuTrigger } from "@angular/material/menu"
|
|
3
|
-
|
|
4
|
-
import "./markFolderColorPicker.component.scss"
|
|
5
|
-
|
|
6
|
-
@Component({
|
|
7
|
-
selector: "cc-mark-folder-color-picker",
|
|
8
|
-
template: require("./markFolderColorPicker.component.html")
|
|
9
|
-
})
|
|
10
|
-
export class MarkFolderColorPickerComponent {
|
|
11
|
-
@Input() markFolder: (hexColor: string) => void
|
|
12
|
-
|
|
13
|
-
@ViewChild("colorPickerMenuTrigger") colorPickerMenuTrigger: MatMenuTrigger
|
|
14
|
-
|
|
15
|
-
private isClickInside = false
|
|
16
|
-
|
|
17
|
-
@HostListener("click")
|
|
18
|
-
onClick() {
|
|
19
|
-
this.isClickInside = true
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@HostListener("document:click")
|
|
23
|
-
handleDocumentClick() {
|
|
24
|
-
if (!this.isClickInside && this.colorPickerMenuTrigger && this.colorPickerMenuTrigger.menuOpen) {
|
|
25
|
-
this.colorPickerMenuTrigger.closeMenu()
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
this.isClickInside = false
|
|
29
|
-
}
|
|
30
|
-
}
|
package/app/codeCharta/ui/nodeContextMenu/markFolderColorPicker/markFolderColorPicker.module.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from "@angular/common"
|
|
2
|
-
import { NgModule } from "@angular/core"
|
|
3
|
-
|
|
4
|
-
import { MaterialModule } from "../../../../material/material.module"
|
|
5
|
-
import { ColorPickerModule } from "../../colorPicker/colorPicker.module"
|
|
6
|
-
import { MarkFolderColorPickerComponent } from "./markFolderColorPicker.component"
|
|
7
|
-
|
|
8
|
-
@NgModule({
|
|
9
|
-
imports: [CommonModule, MaterialModule, ColorPickerModule],
|
|
10
|
-
declarations: [MarkFolderColorPickerComponent],
|
|
11
|
-
exports: [MarkFolderColorPickerComponent]
|
|
12
|
-
})
|
|
13
|
-
export class MarkFolderColorPickerModule {}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
<md-card id="codemap-context-menu" ng-show="$ctrl._viewModel.showNodeContextMenu">
|
|
2
|
-
<div ng-if="$ctrl.nodeIsFolder()">
|
|
3
|
-
<div layout="row" layout-align="center center">
|
|
4
|
-
<md-button
|
|
5
|
-
ng-repeat="color in $ctrl._viewModel.markingColors track by $index"
|
|
6
|
-
ng-style="{ 'background-color': '{{ color }}' }"
|
|
7
|
-
ng-disabled="primary === color && !isPrimary"
|
|
8
|
-
ng-click="$ctrl.clickColor(color)"
|
|
9
|
-
class="colorButton"
|
|
10
|
-
title="Colorize folder"
|
|
11
|
-
>
|
|
12
|
-
<i class="fa fa-times" ng-if="$ctrl.isNodeOrParentMarked(color)"></i>
|
|
13
|
-
</md-button>
|
|
14
|
-
|
|
15
|
-
<cc-mark-folder-color-picker [mark-folder]="$ctrl.markFolder"></cc-mark-folder-color-picker>
|
|
16
|
-
</div>
|
|
17
|
-
<md-divider></md-divider>
|
|
18
|
-
</div>
|
|
19
|
-
|
|
20
|
-
<div class="button-group">
|
|
21
|
-
<md-button ng-disabled="true" title="{{ $ctrl._viewModel.nodePath }}">
|
|
22
|
-
{{ $ctrl._viewModel.lastPartOfNodePath }}
|
|
23
|
-
</md-button>
|
|
24
|
-
<md-button
|
|
25
|
-
ng-show="!$ctrl.isNodeFocused()"
|
|
26
|
-
ng-click="$ctrl.focusNode()"
|
|
27
|
-
id="focus-button"
|
|
28
|
-
title="Only show selected nodes with children-nodes"
|
|
29
|
-
><i class="fa fa-bullseye"></i> Focus</md-button
|
|
30
|
-
>
|
|
31
|
-
<unfocus-button-component
|
|
32
|
-
is-node-focused="$ctrl._viewModel.isNodeFocused"
|
|
33
|
-
is-parent-focused="$ctrl._viewModel.isParentFocused"
|
|
34
|
-
ng-show="$ctrl.isNodeOrParentFocused()"
|
|
35
|
-
></unfocus-button-component>
|
|
36
|
-
<md-button
|
|
37
|
-
ng-if="!$ctrl._viewModel.codeMapNode.isFlattened"
|
|
38
|
-
ng-click="$ctrl.flattenNode()"
|
|
39
|
-
id="flatten-button"
|
|
40
|
-
title="Flatten node and children-nodes, but keep an empty space"
|
|
41
|
-
>
|
|
42
|
-
<img alt="flattenIcon" class="png-icon" src="../../../assets/flatten.png" style="width: 17px; height: 17px" />
|
|
43
|
-
Flatten
|
|
44
|
-
</md-button>
|
|
45
|
-
<md-button
|
|
46
|
-
ng-if="$ctrl._viewModel.codeMapNode.isFlattened"
|
|
47
|
-
ng-click="$ctrl.showFlattenedNode()"
|
|
48
|
-
title="Show node and children-nodes"
|
|
49
|
-
><img alt="flattenIcon" class="png-icon" src="../../../assets/flatten.png" style="width: 17px; height: 17px" /> Show</md-button
|
|
50
|
-
>
|
|
51
|
-
<md-button
|
|
52
|
-
ng-if="!$ctrl.isNodeConstantlyHighlighted()"
|
|
53
|
-
title="Highlight node constantly"
|
|
54
|
-
ng-click="$ctrl.addNodeToConstantHighlight()"
|
|
55
|
-
><i class="fa fa-cubes"></i> Keep Highlight</md-button
|
|
56
|
-
>
|
|
57
|
-
<md-button
|
|
58
|
-
ng-if="$ctrl.isNodeConstantlyHighlighted()"
|
|
59
|
-
title="Remove constant highlight"
|
|
60
|
-
ng-click="$ctrl.removeNodeFromConstantHighlight()"
|
|
61
|
-
><i class="fa fa-cubes"></i> Remove Highlight</md-button
|
|
62
|
-
>
|
|
63
|
-
|
|
64
|
-
<md-button ng-click="$ctrl.excludeNode()" id="exclude-button" title="Exclude node and children-nodes and reorder the CodeMap"
|
|
65
|
-
><i class="fa fa-ban"></i> Exclude</md-button
|
|
66
|
-
>
|
|
67
|
-
</div>
|
|
68
|
-
</md-card>
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
.cdk-overlay-container {
|
|
2
|
-
/* overwrite z-index of below #codemap-context-menu */
|
|
3
|
-
z-index: 2000 !important;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
node-context-menu-component {
|
|
7
|
-
#codemap-context-menu {
|
|
8
|
-
position: absolute;
|
|
9
|
-
z-index: 2000;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.button-group {
|
|
13
|
-
display: inline-grid;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.png-icon {
|
|
17
|
-
margin: 5px auto auto;
|
|
18
|
-
padding: 0;
|
|
19
|
-
display: inline-block;
|
|
20
|
-
background-repeat: no-repeat no-repeat;
|
|
21
|
-
pointer-events: none;
|
|
22
|
-
}
|
|
23
|
-
.md-button:not(.colorButton) {
|
|
24
|
-
text-align: left;
|
|
25
|
-
margin-top: 0;
|
|
26
|
-
line-height: 30px;
|
|
27
|
-
min-height: 30px;
|
|
28
|
-
|
|
29
|
-
i {
|
|
30
|
-
min-width: 15px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&:not(:last-child) {
|
|
34
|
-
margin-bottom: 0;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.colorButton {
|
|
39
|
-
width: 32px !important;
|
|
40
|
-
height: 32px !important;
|
|
41
|
-
min-width: 32px !important;
|
|
42
|
-
min-height: 32px !important;
|
|
43
|
-
|
|
44
|
-
i {
|
|
45
|
-
font-size: 25px;
|
|
46
|
-
margin-left: 0;
|
|
47
|
-
margin-top: 3px;
|
|
48
|
-
color: red;
|
|
49
|
-
text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|