@configuratorware/configurator-admingui 1.28.0-beta.1 → 1.28.1
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 +6 -5
- package/babel.config.js +1 -0
- package/package.json +102 -38
- package/public/favicon.ico +0 -0
- package/scripts/cpPath.js +152 -0
- package/scripts/getDefaultWebpackConfig.js +1 -1
- package/scripts/updateLocalPackages.js +68 -0
- package/src/App/Main.js +2 -1
- package/src/App/Styles.scss +185 -185
- package/src/Components/FormFragments/File.js +2 -4
- package/src/Components/FormFragments/IntlInput.js +5 -2
- package/src/Components/List.js +1 -1
- package/src/Components/Menu.js +1 -9
- package/src/Components/Styles.scss +113 -113
- package/src/Components/Translations.js +2 -4
- package/src/Screens/Assemblypointeditor/Components/Styles.scss +58 -58
- package/src/Screens/Assemblypointeditor/Styles.scss +37 -37
- package/src/Screens/Creator/Components/ComponentEditor.js +5 -9
- package/src/Screens/Creator/Components/VisualizationAndMediaData/Components/EditableText.js +1 -1
- package/src/Screens/Creator/Components/VisualizationAndMediaData/Components/Image.js +1 -1
- package/src/Screens/Creator/Components/VisualizationAndMediaData/Components/ImageEditTools.js +1 -1
- package/src/Screens/Creator/Components/VisualizationAndMediaData/Translations.js +3 -3
- package/src/Screens/Creator/Components/VisualizationAndMediaData/VisualizationAndMediaData.js +1 -1
- package/src/Screens/Dashboard/Styles.scss +2 -2
- package/src/Screens/Designer/Components/DesignDataTransfer.js +1 -1
- package/src/Screens/Designer/Components/TemplateDefaultList.js +2 -1
- package/src/Screens/Designer/SubScreens/Designviews/Containers/Edit.js +9 -5
- package/src/Screens/Designer/Translations.js +1 -1
- package/src/Screens/Inspirations/Containers/Edit.js +1 -1
- package/src/Screens/Inspirations/Screen.js +0 -6
- package/src/Screens/Item/Reducers/Actions.js +73 -73
- package/src/Screens/Item/Translations.js +2 -4
- package/src/UIComponents/Table/TableHead.js +2 -1
- package/src/dev.js +3 -3
- package/App/Api.js +0 -315
- package/App/Config/app.js +0 -96
- package/App/Config/defaultConfig.js +0 -122
- package/App/Config/icons.js +0 -27
- package/App/Config/network.js +0 -20
- package/App/Data.js +0 -473
- package/App/Entity.js +0 -88
- package/App/ErrorBoundary.js +0 -126
- package/App/FeatureReducers.js +0 -62
- package/App/Frame.js +0 -133
- package/App/Listeners.js +0 -56
- package/App/Main.js +0 -321
- package/App/Reducers/Api/Actions.js +0 -262
- package/App/Reducers/Api/Helpers.js +0 -108
- package/App/Reducers/Api/Reducer.js +0 -109
- package/App/Reducers/Common/Form/Actions.js +0 -17
- package/App/Reducers/Common/Form/Reducer.js +0 -63
- package/App/Reducers/Common/Language/Actions.js +0 -17
- package/App/Reducers/Common/Language/Reducer.js +0 -48
- package/App/Reducers/Common/OrderList/Actions.js +0 -96
- package/App/Reducers/Common/OrderList/Listener.js +0 -37
- package/App/Reducers/Common/OrderList/Reducer.js +0 -100
- package/App/Reducers/Common/index.js +0 -19
- package/App/Reducers/Config/Actions.js +0 -18
- package/App/Reducers/Config/Reducer.js +0 -35
- package/App/Reducers/Entity/Actions.js +0 -660
- package/App/Reducers/Entity/Reducer.js +0 -379
- package/App/Reducers/Frame/Actions.js +0 -42
- package/App/Reducers/Frame/Reducer.js +0 -120
- package/App/Reducers/index.js +0 -51
- package/App/ReduxListener.js +0 -52
- package/App/ReduxPersistLoader.js +0 -26
- package/App/Routes.js +0 -73
- package/App/Selectors/Credentials/hasCredentialFor.js +0 -11
- package/App/Services/ElementRef.js +0 -28
- package/App/Services/WindowCommunication.js +0 -73
- package/App/Services/index.js +0 -15
- package/App/Store.js +0 -94
- package/App/Styles.scss +0 -185
- package/App/TestHelpers.js +0 -131
- package/App/ThemeProvider.js +0 -74
- package/App/Translations.js +0 -147
- package/App/Utils.js +0 -41
- package/App/customSetup.js +0 -21
- package/App/i18n.js +0 -307
- package/App/index.js +0 -80
- package/App/initServices.js +0 -92
- package/App/setup.js +0 -22
- package/AppContainer.js +0 -30
- package/Components/AddButton.js +0 -28
- package/Components/AppBar.js +0 -85
- package/Components/CallToActionField.js +0 -171
- package/Components/CopyPaste.js +0 -108
- package/Components/DefaultConnectedForm.js +0 -109
- package/Components/DefaultConnectedList.js +0 -147
- package/Components/DefaultConnectedScreen.js +0 -59
- package/Components/DefaultForm.js +0 -99
- package/Components/DefaultList.js +0 -345
- package/Components/DefaultScreen.js +0 -203
- package/Components/Error.js +0 -30
- package/Components/Form.js +0 -383
- package/Components/FormFragments/AutoComplete.js +0 -308
- package/Components/FormFragments/AutocompleteEntity.js +0 -294
- package/Components/FormFragments/Checkbox.js +0 -34
- package/Components/FormFragments/Chip.js +0 -249
- package/Components/FormFragments/DatePicker.js +0 -26
- package/Components/FormFragments/DateTimePicker.js +0 -27
- package/Components/FormFragments/DynSourceInput.js +0 -210
- package/Components/FormFragments/ErrorWrapper.js +0 -21
- package/Components/FormFragments/File.js +0 -231
- package/Components/FormFragments/HintText.js +0 -31
- package/Components/FormFragments/InlineAddButton.js +0 -213
- package/Components/FormFragments/InputArray.js +0 -349
- package/Components/FormFragments/InputGroup.js +0 -62
- package/Components/FormFragments/InputWithSource.js +0 -68
- package/Components/FormFragments/IntlInput.js +0 -211
- package/Components/FormFragments/Label.js +0 -32
- package/Components/FormFragments/MarkDown.js +0 -163
- package/Components/FormFragments/MonacoEditor.js +0 -119
- package/Components/FormFragments/NestedDataComponent.js +0 -232
- package/Components/FormFragments/ObjectToggle.js +0 -87
- package/Components/FormFragments/RadioGroup.js +0 -42
- package/Components/FormFragments/Select.js +0 -60
- package/Components/FormFragments/SetInput.js +0 -164
- package/Components/FormFragments/SimpleNestedData.js +0 -99
- package/Components/FormFragments/SimpleTable.js +0 -285
- package/Components/FormFragments/SimpleTextEditor.js +0 -43
- package/Components/FormFragments/Styles.scss +0 -119
- package/Components/FormFragments/Tabs.js +0 -307
- package/Components/FormFragments/Text.js +0 -43
- package/Components/FormFragments/TimePicker.js +0 -27
- package/Components/FormFragments/Toggle.js +0 -94
- package/Components/FormFragments/TwoSideSelect.js +0 -249
- package/Components/FormFragments/Value.js +0 -48
- package/Components/FormFragments/index.js +0 -138
- package/Components/FormFragments/styles.js +0 -38
- package/Components/FormHooks/useDataSchema.js +0 -68
- package/Components/GeneralFragments/Box.js +0 -25
- package/Components/GeneralFragments/ConfigurationEditor.js +0 -200
- package/Components/GeneralFragments/ConfiguratorOverlay.js +0 -111
- package/Components/GeneralFragments/Content.js +0 -25
- package/Components/GeneralFragments/Headline.js +0 -32
- package/Components/GeneralFragments/Image.js +0 -94
- package/Components/GeneralFragments/MiniPopup.js +0 -202
- package/Components/GeneralFragments/Styles.scss +0 -8
- package/Components/GeneralFragments/index.js +0 -39
- package/Components/InputHelpers.js +0 -17
- package/Components/Join.js +0 -28
- package/Components/LicenseInfo.js +0 -136
- package/Components/List.js +0 -413
- package/Components/ListColumnFilter.js +0 -258
- package/Components/LocaleSwitch.js +0 -56
- package/Components/LocalizedPriceTextField.js +0 -83
- package/Components/LocalizedPriceValue.js +0 -38
- package/Components/Menu.js +0 -202
- package/Components/ModalContainer.js +0 -128
- package/Components/OrderList.js +0 -248
- package/Components/OverlayContainer.js +0 -34
- package/Components/Pagination.js +0 -175
- package/Components/ProfileButton.js +0 -65
- package/Components/SearchBar.js +0 -183
- package/Components/SplitContainer.js +0 -53
- package/Components/Styles.scss +0 -114
- package/Components/TranslateComponent.js +0 -231
- package/Components/TranslationFinder.js +0 -72
- package/Components/Translations.js +0 -89
- package/Components/ValidatorCallbackProvider.js +0 -102
- package/Components/VersionBadge.js +0 -44
- package/Components/VersionUpdateChip.js +0 -52
- package/Components/withLoadAction.js +0 -41
- package/Components/withTranslationFinder.js +0 -47
- package/Screens/ApiKeys/Containers/Edit.js +0 -162
- package/Screens/ApiKeys/Containers/List.js +0 -37
- package/Screens/ApiKeys/Reducers/Actions.js +0 -44
- package/Screens/ApiKeys/Reducers/Reducer.js +0 -61
- package/Screens/ApiKeys/Screen.js +0 -24
- package/Screens/ApiKeys/Styles.scss +0 -3
- package/Screens/ApiKeys/Translations.js +0 -24
- package/Screens/ApiKeys/index.js +0 -21
- package/Screens/Assemblypointeditor/Components/AssemblypointTable.js +0 -161
- package/Screens/Assemblypointeditor/Components/Assemblypointeditor.js +0 -813
- package/Screens/Assemblypointeditor/Components/Styles.scss +0 -58
- package/Screens/Assemblypointeditor/Components/fabric.min.js +0 -1
- package/Screens/Assemblypointeditor/Containers/Edit.js +0 -77
- package/Screens/Assemblypointeditor/Containers/List.js +0 -53
- package/Screens/Assemblypointeditor/Reducers/Actions.js +0 -72
- package/Screens/Assemblypointeditor/Reducers/Reducer.js +0 -157
- package/Screens/Assemblypointeditor/Screen.js +0 -52
- package/Screens/Assemblypointeditor/Styles.scss +0 -38
- package/Screens/Assemblypointeditor/Translations.js +0 -10
- package/Screens/Assemblypointeditor/index.js +0 -20
- package/Screens/Attribute/Containers/Edit.js +0 -46
- package/Screens/Attribute/Containers/List.js +0 -41
- package/Screens/Attribute/Reducers/Actions.js +0 -42
- package/Screens/Attribute/Reducers/Reducer.js +0 -44
- package/Screens/Attribute/Screen.js +0 -24
- package/Screens/Attribute/Styles.scss +0 -0
- package/Screens/Attribute/Translations.js +0 -22
- package/Screens/Attribute/__tests/AttributeScreen.js +0 -368
- package/Screens/Attribute/index.js +0 -20
- package/Screens/AttributeValue/Containers/Edit.js +0 -49
- package/Screens/AttributeValue/Containers/List.js +0 -48
- package/Screens/AttributeValue/Reducers/Actions.js +0 -21
- package/Screens/AttributeValue/Reducers/Reducer.js +0 -38
- package/Screens/AttributeValue/Screen.js +0 -34
- package/Screens/AttributeValue/Styles.scss +0 -0
- package/Screens/AttributeValue/Translations.js +0 -17
- package/Screens/AttributeValue/__tests/AttributeValueScreen.js +0 -346
- package/Screens/AttributeValue/index.js +0 -20
- package/Screens/ChangePassword/Reducers/Actions.js +0 -69
- package/Screens/ChangePassword/Reducers/Reducer.js +0 -39
- package/Screens/ChangePassword/Screen.js +0 -212
- package/Screens/ChangePassword/Translations.js +0 -22
- package/Screens/ChangePassword/index.js +0 -20
- package/Screens/Channel/Containers/Edit.js +0 -58
- package/Screens/Channel/Containers/List.js +0 -33
- package/Screens/Channel/Reducers/Actions.js +0 -19
- package/Screens/Channel/Reducers/Reducer.js +0 -59
- package/Screens/Channel/Screen.js +0 -28
- package/Screens/Channel/Translations.js +0 -18
- package/Screens/Channel/__tests/ChannelScreen.js +0 -363
- package/Screens/Channel/index.js +0 -20
- package/Screens/Client/Components/ColorTextField.js +0 -90
- package/Screens/Client/Components/PdfMarkdownField.js +0 -171
- package/Screens/Client/Components/TextFields.js +0 -163
- package/Screens/Client/Containers/Edit.js +0 -190
- package/Screens/Client/Containers/List.js +0 -44
- package/Screens/Client/Reducers/Actions.js +0 -118
- package/Screens/Client/Reducers/Reducer.js +0 -149
- package/Screens/Client/Screen.js +0 -34
- package/Screens/Client/Styles.scss +0 -3
- package/Screens/Client/Translations.js +0 -49
- package/Screens/Client/index.js +0 -20
- package/Screens/ColorPalettes/Components/DefaultColorSwitch.js +0 -126
- package/Screens/ColorPalettes/Containers/Edit.js +0 -156
- package/Screens/ColorPalettes/Containers/List.js +0 -57
- package/Screens/ColorPalettes/Reducers/Actions.js +0 -21
- package/Screens/ColorPalettes/Reducers/Reducer.js +0 -61
- package/Screens/ColorPalettes/Screen.js +0 -34
- package/Screens/ColorPalettes/Styles.scss +0 -0
- package/Screens/ColorPalettes/Translations.js +0 -24
- package/Screens/ColorPalettes/index.js +0 -20
- package/Screens/ConfigurationTypeEditor/Containers/Edit.js +0 -83
- package/Screens/ConfigurationTypeEditor/Containers/List.js +0 -64
- package/Screens/ConfigurationTypeEditor/Reducers/Actions.js +0 -137
- package/Screens/ConfigurationTypeEditor/Reducers/Reducer.js +0 -122
- package/Screens/ConfigurationTypeEditor/Screen.js +0 -150
- package/Screens/ConfigurationTypeEditor/Styles.scss +0 -0
- package/Screens/ConfigurationTypeEditor/Translations.js +0 -14
- package/Screens/ConfigurationTypeEditor/index.js +0 -3
- package/Screens/ConfigurationVariants/Containers/Edit.js +0 -127
- package/Screens/ConfigurationVariants/Containers/List.js +0 -33
- package/Screens/ConfigurationVariants/Containers/Styles.scss +0 -13
- package/Screens/ConfigurationVariants/Reducers/Actions.js +0 -25
- package/Screens/ConfigurationVariants/Reducers/Reducer.js +0 -60
- package/Screens/ConfigurationVariants/Screen.js +0 -28
- package/Screens/ConfigurationVariants/Translations.js +0 -31
- package/Screens/ConfigurationVariants/index.js +0 -20
- package/Screens/ConfigurationWorkflowStatus/Containers/Edit.js +0 -81
- package/Screens/ConfigurationWorkflowStatus/Containers/List.js +0 -259
- package/Screens/ConfigurationWorkflowStatus/Reducers/Actions.js +0 -119
- package/Screens/ConfigurationWorkflowStatus/Reducers/Reducer.js +0 -103
- package/Screens/ConfigurationWorkflowStatus/Screen.js +0 -100
- package/Screens/ConfigurationWorkflowStatus/Styles.scss +0 -0
- package/Screens/ConfigurationWorkflowStatus/Translations.js +0 -43
- package/Screens/ConfigurationWorkflowStatus/index.js +0 -22
- package/Screens/ConfigurationWorkflowStatus/initServices.js +0 -12
- package/Screens/Creator/Components/BaseConfigurationEditor.js +0 -241
- package/Screens/Creator/Components/CheckData/ApiCalls.js +0 -43
- package/Screens/Creator/Components/CheckData/CheckData.js +0 -332
- package/Screens/Creator/Components/CheckData/Constants.js +0 -58
- package/Screens/Creator/Components/CheckData/Translations.js +0 -34
- package/Screens/Creator/Components/ComponentEditor.js +0 -245
- package/Screens/Creator/Components/ConfiguratorQuickView.js +0 -102
- package/Screens/Creator/Components/OptionPriceEditor.js +0 -167
- package/Screens/Creator/Components/OptionclassificationEditor.js +0 -572
- package/Screens/Creator/Components/Rules/Containers/Edit.js +0 -276
- package/Screens/Creator/Components/Rules/Containers/List.js +0 -45
- package/Screens/Creator/Components/Rules/Containers/RuleForms/AdditionalOption.js +0 -88
- package/Screens/Creator/Components/Rules/Containers/RuleForms/AttributeValueGroupAutoSwitch.js +0 -88
- package/Screens/Creator/Components/Rules/Containers/RuleForms/DefaultOption.js +0 -84
- package/Screens/Creator/Components/Rules/Containers/RuleForms/ItemAttributeMatch.js +0 -84
- package/Screens/Creator/Components/Rules/Containers/RuleForms/ItemAttributeMaxSum.js +0 -76
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionClassificationMaxAmount.js +0 -78
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionClassificationMinAmount.js +0 -78
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionDependency.js +0 -88
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionExclusion.js +0 -88
- package/Screens/Creator/Components/Rules/Containers/RuleForms/OptionMaxAmount.js +0 -78
- package/Screens/Creator/Components/Rules/Containers/RuleForms/RuleForm.js +0 -240
- package/Screens/Creator/Components/Rules/Containers/RuleForms/index.js +0 -42
- package/Screens/Creator/Components/Rules/Styles.scss +0 -38
- package/Screens/Creator/Components/Rules/Translations.js +0 -178
- package/Screens/Creator/Components/Rules/index.js +0 -80
- package/Screens/Creator/Components/ShowPreviewErrorDialog.js +0 -59
- package/Screens/Creator/Components/VisualizationAndMediaData/ApiCalls.js +0 -43
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/ConfirmDelete.js +0 -68
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/EditableText.js +0 -144
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/Image.js +0 -125
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/ImageEditTools.js +0 -242
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/PathStructure.js +0 -118
- package/Screens/Creator/Components/VisualizationAndMediaData/Components/ViewEdit.js +0 -102
- package/Screens/Creator/Components/VisualizationAndMediaData/Translations.js +0 -82
- package/Screens/Creator/Components/VisualizationAndMediaData/VisualizationAndMediaData.js +0 -1098
- package/Screens/Creator/Components/VisualizationAndMediaData/dev.js +0 -385
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/component_1.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/option_1.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/option_3.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/option_3_fullsize.jpg +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/view_1.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/view_1_option_1.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/view_1_option_3.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/view_2_option_1.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/devImages/view_2_option_3.png +0 -0
- package/Screens/Creator/Components/VisualizationAndMediaData/index.js +0 -15
- package/Screens/Creator/Containers/Edit.js +0 -525
- package/Screens/Creator/Containers/List.js +0 -48
- package/Screens/Creator/Reducers/Actions.js +0 -35
- package/Screens/Creator/Reducers/ConfigurationActions.js +0 -443
- package/Screens/Creator/Reducers/ConfigurationReducer.js +0 -338
- package/Screens/Creator/Reducers/CreatorReducer.js +0 -42
- package/Screens/Creator/Reducers/Rules/Actions.js +0 -134
- package/Screens/Creator/Reducers/Rules/Reducer.js +0 -290
- package/Screens/Creator/Screen.js +0 -30
- package/Screens/Creator/Translations.js +0 -136
- package/Screens/Creator/index.js +0 -25
- package/Screens/CurrentClient/Containers/Edit.js +0 -128
- package/Screens/CurrentClient/Reducers/Actions.js +0 -42
- package/Screens/CurrentClient/Reducers/Reducer.js +0 -95
- package/Screens/CurrentClient/Screen.js +0 -15
- package/Screens/CurrentClient/Translations.js +0 -10
- package/Screens/CurrentClient/index.js +0 -20
- package/Screens/Dashboard/Screen.js +0 -50
- package/Screens/Dashboard/Styles.scss +0 -3
- package/Screens/Dashboard/Translations.js +0 -14
- package/Screens/DefaultClient/Containers/Edit.js +0 -141
- package/Screens/DefaultClient/Reducers/Actions.js +0 -42
- package/Screens/DefaultClient/Reducers/Reducer.js +0 -108
- package/Screens/DefaultClient/Screen.js +0 -15
- package/Screens/DefaultClient/Translations.js +0 -10
- package/Screens/DefaultClient/index.js +0 -20
- package/Screens/Demo/Screen.js +0 -164
- package/Screens/Demo/Styles.scss +0 -3
- package/Screens/Demo/index.js +0 -15
- package/Screens/DesignProductionMethods/Containers/Edit.js +0 -292
- package/Screens/DesignProductionMethods/Containers/List.js +0 -53
- package/Screens/DesignProductionMethods/Reducers/Actions.js +0 -29
- package/Screens/DesignProductionMethods/Reducers/DesignProductionMethodsReducer.js +0 -160
- package/Screens/DesignProductionMethods/Screen.js +0 -30
- package/Screens/DesignProductionMethods/Translations.js +0 -74
- package/Screens/DesignProductionMethods/index.js +0 -20
- package/Screens/DesignTemplateEditor/Containers/List.js +0 -78
- package/Screens/DesignTemplateEditor/Reducers/Actions.js +0 -16
- package/Screens/DesignTemplateEditor/Reducers/Reducer.js +0 -22
- package/Screens/DesignTemplateEditor/Screen.js +0 -22
- package/Screens/DesignTemplateEditor/Translations.js +0 -16
- package/Screens/DesignTemplateEditor/index.js +0 -20
- package/Screens/Designer/Components/ConfiguratorQuickView.js +0 -102
- package/Screens/Designer/Components/DesignDataTransfer.js +0 -426
- package/Screens/Designer/Components/TemplateDefaultList.js +0 -423
- package/Screens/Designer/Components/TemplateList.js +0 -316
- package/Screens/Designer/Containers/Edit.js +0 -346
- package/Screens/Designer/Containers/List.js +0 -46
- package/Screens/Designer/Containers/TemplateList.js +0 -45
- package/Screens/Designer/Reducers/Actions.js +0 -41
- package/Screens/Designer/Reducers/DesignerReducer.js +0 -46
- package/Screens/Designer/Screen.js +0 -28
- package/Screens/Designer/SubScreens/DesignAreas/Components/ColorPalettes.js +0 -451
- package/Screens/Designer/SubScreens/DesignAreas/Components/FormArray.js +0 -260
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/InlineFileInput.js +0 -72
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/MaskEditorCanvas.js +0 -133
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/MaskEditorField.js +0 -330
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/masks/circle.svg +0 -4
- package/Screens/Designer/SubScreens/DesignAreas/Components/MaskEditorField/withFileUpload.js +0 -115
- package/Screens/Designer/SubScreens/DesignAreas/Containers/ConnectedMaskEditorField.js +0 -89
- package/Screens/Designer/SubScreens/DesignAreas/Containers/Edit.js +0 -174
- package/Screens/Designer/SubScreens/DesignAreas/Containers/FormProductionMethods.js +0 -1100
- package/Screens/Designer/SubScreens/DesignAreas/Containers/List.js +0 -50
- package/Screens/Designer/SubScreens/DesignAreas/Reducers/Actions.js +0 -106
- package/Screens/Designer/SubScreens/DesignAreas/Reducers/Reducer.js +0 -318
- package/Screens/Designer/SubScreens/DesignAreas/Screen.js +0 -34
- package/Screens/Designer/SubScreens/DesignAreas/Styles.scss +0 -0
- package/Screens/Designer/SubScreens/DesignAreas/Translations.js +0 -122
- package/Screens/Designer/SubScreens/DesignAreas/Utils/getFreeFormUrl.js +0 -18
- package/Screens/Designer/SubScreens/DesignAreas/Utils/getMaskSrcByType.js +0 -22
- package/Screens/Designer/SubScreens/DesignAreas/Utils/maskTypes.js +0 -12
- package/Screens/Designer/SubScreens/DesignAreas/index.js +0 -18
- package/Screens/Designer/SubScreens/Designviews/Containers/Edit.js +0 -216
- package/Screens/Designer/SubScreens/Designviews/Containers/List.js +0 -50
- package/Screens/Designer/SubScreens/Designviews/Reducers/Actions.js +0 -260
- package/Screens/Designer/SubScreens/Designviews/Reducers/Reducer.js +0 -167
- package/Screens/Designer/SubScreens/Designviews/Screen.js +0 -32
- package/Screens/Designer/SubScreens/Designviews/Translations.js +0 -16
- package/Screens/Designer/SubScreens/Designviews/index.js +0 -18
- package/Screens/Designer/SubScreens/Visualization/ApiCalls.js +0 -77
- package/Screens/Designer/SubScreens/Visualization/Components/AdvancedShapeEditor.js +0 -291
- package/Screens/Designer/SubScreens/Visualization/Components/AreaEditor.js +0 -305
- package/Screens/Designer/SubScreens/Visualization/Components/EntryList.js +0 -78
- package/Screens/Designer/SubScreens/Visualization/Components/ExpansionContainer.js +0 -138
- package/Screens/Designer/SubScreens/Visualization/Components/Three2DEditor.js +0 -802
- package/Screens/Designer/SubScreens/Visualization/Components/VisualizationContainer.js +0 -166
- package/Screens/Designer/SubScreens/Visualization/Components/resources/logo.svg +0 -120
- package/Screens/Designer/SubScreens/Visualization/Components/resources/move.svg +0 -1
- package/Screens/Designer/SubScreens/Visualization/Components/resources/rotate-x.svg +0 -1
- package/Screens/Designer/SubScreens/Visualization/Components/resources/rotate-y.svg +0 -1
- package/Screens/Designer/SubScreens/Visualization/Components/resources/rotate-z.svg +0 -1
- package/Screens/Designer/SubScreens/Visualization/Components/resources/rotate.svg +0 -1
- package/Screens/Designer/SubScreens/Visualization/Components/resources/size.svg +0 -1
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/Constants.js +0 -12
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/DataLinks.js +0 -160
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/Edit.js +0 -995
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/VisualizationUtils.js +0 -174
- package/Screens/Designer/SubScreens/Visualization/Containers/Edit/calculateBoundingBoxSize.js +0 -77
- package/Screens/Designer/SubScreens/Visualization/Containers/List.js +0 -192
- package/Screens/Designer/SubScreens/Visualization/Screen.js +0 -49
- package/Screens/Designer/SubScreens/Visualization/Translations.js +0 -80
- package/Screens/Designer/SubScreens/Visualization/index.js +0 -13
- package/Screens/Designer/Translations.js +0 -49
- package/Screens/Designer/index.js +0 -21
- package/Screens/DesignerGlobalItemPrices/Containers/Edit.js +0 -131
- package/Screens/DesignerGlobalItemPrices/Containers/List.js +0 -45
- package/Screens/DesignerGlobalItemPrices/Reducers/Actions.js +0 -32
- package/Screens/DesignerGlobalItemPrices/Reducers/Reducer.js +0 -94
- package/Screens/DesignerGlobalItemPrices/Screen.js +0 -32
- package/Screens/DesignerGlobalItemPrices/Translations.js +0 -24
- package/Screens/DesignerGlobalItemPrices/index.js +0 -21
- package/Screens/Font/Containers/Edit.js +0 -66
- package/Screens/Font/Containers/List.js +0 -63
- package/Screens/Font/Reducers/Actions.js +0 -101
- package/Screens/Font/Reducers/Reducer.js +0 -61
- package/Screens/Font/Screen.js +0 -34
- package/Screens/Font/Styles.scss +0 -0
- package/Screens/Font/Translations.js +0 -16
- package/Screens/Font/index.js +0 -20
- package/Screens/Group/Containers/Edit.js +0 -49
- package/Screens/Group/Containers/List.js +0 -39
- package/Screens/Group/Reducers/Actions.js +0 -24
- package/Screens/Group/Reducers/Reducer.js +0 -38
- package/Screens/Group/Screen.js +0 -34
- package/Screens/Group/Styles.scss +0 -0
- package/Screens/Group/Translations.js +0 -18
- package/Screens/Group/index.js +0 -21
- package/Screens/GroupEntry/Containers/Edit.js +0 -62
- package/Screens/GroupEntry/Containers/List.js +0 -39
- package/Screens/GroupEntry/Reducers/Actions.js +0 -24
- package/Screens/GroupEntry/Reducers/Reducer.js +0 -38
- package/Screens/GroupEntry/Screen.js +0 -34
- package/Screens/GroupEntry/Styles.scss +0 -0
- package/Screens/GroupEntry/Translations.js +0 -16
- package/Screens/GroupEntry/index.js +0 -21
- package/Screens/ImageGallery/Containers/Edit.js +0 -125
- package/Screens/ImageGallery/Containers/List.js +0 -297
- package/Screens/ImageGallery/ImageTags/Actions.js +0 -48
- package/Screens/ImageGallery/ImageTags/Container/TagsEdit.js +0 -38
- package/Screens/ImageGallery/ImageTags/Editor.js +0 -68
- package/Screens/ImageGallery/ImageTags/Reducer.js +0 -64
- package/Screens/ImageGallery/ImageTags/TagsActions.js +0 -42
- package/Screens/ImageGallery/ImageTags/TagsEditorPopup.js +0 -92
- package/Screens/ImageGallery/Reducers/Actions.js +0 -134
- package/Screens/ImageGallery/Reducers/Reducer.js +0 -69
- package/Screens/ImageGallery/Screen.js +0 -34
- package/Screens/ImageGallery/Styles.scss +0 -37
- package/Screens/ImageGallery/Translations.js +0 -41
- package/Screens/ImageGallery/index.js +0 -20
- package/Screens/Inspirations/Containers/Edit.js +0 -163
- package/Screens/Inspirations/Containers/InspirationsSubscreen.js +0 -34
- package/Screens/Inspirations/Containers/ItemInspirationsList.js +0 -48
- package/Screens/Inspirations/Containers/List.js +0 -48
- package/Screens/Inspirations/Reducers/Actions.js +0 -159
- package/Screens/Inspirations/Reducers/ItemInspirationsActions.js +0 -25
- package/Screens/Inspirations/Reducers/Reducer.js +0 -78
- package/Screens/Inspirations/Screen.js +0 -108
- package/Screens/Inspirations/Translations.js +0 -27
- package/Screens/Inspirations/index.js +0 -21
- package/Screens/Item/ApiCalls.js +0 -45
- package/Screens/Item/Components/AttributeEditorPopup.js +0 -117
- package/Screens/Item/Components/ConfiguratorQuickView.js +0 -115
- package/Screens/Item/Components/ListItemStatusEditor.js +0 -216
- package/Screens/Item/Components/Styles.scss +0 -327
- package/Screens/Item/Components/Variants/VariantsAutocomplete.js +0 -418
- package/Screens/Item/Components/Variants/VariantsEditor.js +0 -715
- package/Screens/Item/Components/Variants/VariantsEditorDialog.js +0 -210
- package/Screens/Item/Components/Variants/VariantsEditorPopup.js +0 -117
- package/Screens/Item/Components/Variants/VariantsSelection.js +0 -184
- package/Screens/Item/Components/Variants/VariantsSortFilter.js +0 -230
- package/Screens/Item/Containers/Edit.js +0 -600
- package/Screens/Item/Containers/List.js +0 -118
- package/Screens/Item/Containers/Styles.scss +0 -92
- package/Screens/Item/DataStructures/Attributes/Actions.js +0 -54
- package/Screens/Item/DataStructures/Attributes/Editor.js +0 -127
- package/Screens/Item/DataStructures/Attributes/Reducer.js +0 -37
- package/Screens/Item/Reducers/Actions.js +0 -97
- package/Screens/Item/Reducers/ItemReducer.js +0 -102
- package/Screens/Item/Reducers/Variant/Actions.js +0 -24
- package/Screens/Item/Reducers/Variant/Reducer.js +0 -118
- package/Screens/Item/Screen.js +0 -28
- package/Screens/Item/Translations.js +0 -136
- package/Screens/Item/index.js +0 -22
- package/Screens/License/Reducers/Actions.js +0 -60
- package/Screens/License/Reducers/Reducer.js +0 -47
- package/Screens/License/Screen.js +0 -128
- package/Screens/License/Styles.scss +0 -35
- package/Screens/License/Translations.js +0 -18
- package/Screens/License/index.js +0 -21
- package/Screens/Login/Reducers/Actions.js +0 -102
- package/Screens/Login/Reducers/Listener.js +0 -23
- package/Screens/Login/Reducers/Reducer.js +0 -96
- package/Screens/Login/Screen.js +0 -200
- package/Screens/Login/Styles.scss +0 -0
- package/Screens/Login/Translations.js +0 -10
- package/Screens/Login/__tests/LoginScreen.js +0 -242
- package/Screens/Option/Containers/Edit.js +0 -139
- package/Screens/Option/Containers/List.js +0 -66
- package/Screens/Option/Reducers/Actions.js +0 -25
- package/Screens/Option/Reducers/Reducer.js +0 -127
- package/Screens/Option/Screen.js +0 -28
- package/Screens/Option/Translations.js +0 -23
- package/Screens/Option/index.js +0 -20
- package/Screens/OptionPools/Containers/Edit.js +0 -105
- package/Screens/OptionPools/Containers/List.js +0 -33
- package/Screens/OptionPools/Reducers/Actions.js +0 -25
- package/Screens/OptionPools/Reducers/Reducer.js +0 -61
- package/Screens/OptionPools/Screen.js +0 -28
- package/Screens/OptionPools/Translations.js +0 -22
- package/Screens/OptionPools/index.js +0 -20
- package/Screens/Optionclassification/Containers/Edit.js +0 -92
- package/Screens/Optionclassification/Containers/List.js +0 -63
- package/Screens/Optionclassification/Reducers/Actions.js +0 -25
- package/Screens/Optionclassification/Reducers/Reducer.js +0 -64
- package/Screens/Optionclassification/Screen.js +0 -34
- package/Screens/Optionclassification/Styles.scss +0 -0
- package/Screens/Optionclassification/Translations.js +0 -20
- package/Screens/Optionclassification/index.js +0 -20
- package/Screens/PriceTypes/Containers/Edit.js +0 -124
- package/Screens/PriceTypes/Containers/List.js +0 -67
- package/Screens/PriceTypes/Reducers/Actions.js +0 -21
- package/Screens/PriceTypes/Reducers/Reducer.js +0 -83
- package/Screens/PriceTypes/Screen.js +0 -32
- package/Screens/PriceTypes/Translations.js +0 -36
- package/Screens/PriceTypes/index.js +0 -20
- package/Screens/ProductionView/Components/ConfigurationDataSheet.js +0 -199
- package/Screens/ProductionView/Containers/Edit.js +0 -61
- package/Screens/ProductionView/Containers/List.js +0 -124
- package/Screens/ProductionView/Reducers/Actions.js +0 -34
- package/Screens/ProductionView/Reducers/Reducer.js +0 -40
- package/Screens/ProductionView/Screen.js +0 -42
- package/Screens/ProductionView/Styles.scss +0 -59
- package/Screens/ProductionView/Translations.js +0 -26
- package/Screens/ProductionView/index.js +0 -20
- package/Screens/ReceiveOfferRequests/Components/ConfigurationDataSheet.js +0 -280
- package/Screens/ReceiveOfferRequests/Containers/Edit.js +0 -65
- package/Screens/ReceiveOfferRequests/Containers/List.js +0 -117
- package/Screens/ReceiveOfferRequests/Reducers/Actions.js +0 -41
- package/Screens/ReceiveOfferRequests/Reducers/Reducer.js +0 -44
- package/Screens/ReceiveOfferRequests/Screen.js +0 -42
- package/Screens/ReceiveOfferRequests/index.js +0 -21
- package/Screens/Roles/Containers/Edit.js +0 -56
- package/Screens/Roles/Containers/List.js +0 -39
- package/Screens/Roles/Reducers/Actions.js +0 -29
- package/Screens/Roles/Reducers/Reducer.js +0 -46
- package/Screens/Roles/Screen.js +0 -32
- package/Screens/Roles/Translations.js +0 -18
- package/Screens/Roles/index.js +0 -20
- package/Screens/Savedconfigurations/Components/ConfigurationDataSheet.js +0 -300
- package/Screens/Savedconfigurations/Containers/Edit.js +0 -65
- package/Screens/Savedconfigurations/Containers/List.js +0 -210
- package/Screens/Savedconfigurations/Reducers/Actions.js +0 -28
- package/Screens/Savedconfigurations/Reducers/Reducer.js +0 -37
- package/Screens/Savedconfigurations/Screen.js +0 -42
- package/Screens/Savedconfigurations/Styles.scss +0 -38
- package/Screens/Savedconfigurations/Translations.js +0 -63
- package/Screens/Savedconfigurations/index.js +0 -20
- package/Screens/Setting/Containers/Edit.js +0 -171
- package/Screens/Setting/Reducers/Actions.js +0 -69
- package/Screens/Setting/Reducers/Reducer.js +0 -48
- package/Screens/Setting/Screen.js +0 -22
- package/Screens/Setting/Styles.scss +0 -0
- package/Screens/Setting/Translations.js +0 -52
- package/Screens/Setting/index.js +0 -20
- package/Screens/SoftwareUpdates/Reducers/Actions.js +0 -23
- package/Screens/SoftwareUpdates/Reducers/Reducer.js +0 -48
- package/Screens/SoftwareUpdates/Screen.js +0 -103
- package/Screens/SoftwareUpdates/Translations.js +0 -24
- package/Screens/SoftwareUpdates/index.js +0 -21
- package/Screens/Tag/Containers/Edit.js +0 -34
- package/Screens/Tag/Containers/List.js +0 -43
- package/Screens/Tag/Reducers/Actions.js +0 -42
- package/Screens/Tag/Reducers/Reducer.js +0 -38
- package/Screens/Tag/Screen.js +0 -24
- package/Screens/Tag/Styles.scss +0 -0
- package/Screens/Tag/Translations.js +0 -18
- package/Screens/Tag/index.js +0 -20
- package/Screens/TrackingCodes/Containers/Edit.js +0 -60
- package/Screens/TrackingCodes/Containers/List.js +0 -42
- package/Screens/TrackingCodes/Reducers/Actions.js +0 -65
- package/Screens/TrackingCodes/Reducers/Reducer.js +0 -75
- package/Screens/TrackingCodes/Screen.js +0 -28
- package/Screens/TrackingCodes/Translations.js +0 -20
- package/Screens/TrackingCodes/index.js +0 -21
- package/Screens/TranslationFileHandling/Containers/Edit.js +0 -303
- package/Screens/TranslationFileHandling/Containers/List.js +0 -38
- package/Screens/TranslationFileHandling/Reducers/Actions.js +0 -21
- package/Screens/TranslationFileHandling/Reducers/Reducer.js +0 -55
- package/Screens/TranslationFileHandling/Screen.js +0 -32
- package/Screens/TranslationFileHandling/Translations.js +0 -24
- package/Screens/TranslationFileHandling/index.js +0 -21
- package/Screens/User/Containers/Edit.js +0 -58
- package/Screens/User/Containers/List.js +0 -42
- package/Screens/User/Reducers/Actions.js +0 -63
- package/Screens/User/Reducers/Reducer.js +0 -63
- package/Screens/User/Screen.js +0 -24
- package/Screens/User/Styles.scss +0 -3
- package/Screens/User/Translations.js +0 -22
- package/Screens/User/__tests/UserScreen.js +0 -406
- package/Screens/User/index.js +0 -20
- package/Screens/index.js +0 -228
- package/UIComponents/AppBar.js +0 -13
- package/UIComponents/AutoComplete.js +0 -311
- package/UIComponents/Button.js +0 -13
- package/UIComponents/ButtonBase.js +0 -13
- package/UIComponents/Checkbox.js +0 -13
- package/UIComponents/Chip.js +0 -13
- package/UIComponents/ChipInput.js +0 -300
- package/UIComponents/CircularProgress.js +0 -13
- package/UIComponents/ClickAwayListener.js +0 -13
- package/UIComponents/Collapse.js +0 -13
- package/UIComponents/DatePicker.js +0 -63
- package/UIComponents/DateTimePicker.js +0 -63
- package/UIComponents/Dialog.js +0 -75
- package/UIComponents/Drawer.js +0 -13
- package/UIComponents/FlatButton.js +0 -52
- package/UIComponents/FloatingActionButton.js +0 -23
- package/UIComponents/FontIcon.js +0 -13
- package/UIComponents/FormControl.js +0 -13
- package/UIComponents/FormControlLabel.js +0 -13
- package/UIComponents/Grow.js +0 -13
- package/UIComponents/IconButton.js +0 -13
- package/UIComponents/IconMenu.js +0 -204
- package/UIComponents/InlineHelp/index.js +0 -109
- package/UIComponents/Input.js +0 -13
- package/UIComponents/InputAdornment.js +0 -13
- package/UIComponents/InputLabel.js +0 -13
- package/UIComponents/LinearProgress.js +0 -13
- package/UIComponents/Link.js +0 -44
- package/UIComponents/List.js +0 -13
- package/UIComponents/ListItem.js +0 -13
- package/UIComponents/ListItemIcon.js +0 -13
- package/UIComponents/ListItemText.js +0 -13
- package/UIComponents/Menu.js +0 -13
- package/UIComponents/MenuItem.js +0 -13
- package/UIComponents/MenuList.js +0 -13
- package/UIComponents/Pagination.js +0 -170
- package/UIComponents/Paper.js +0 -13
- package/UIComponents/Popper.js +0 -13
- package/UIComponents/RadioButton/RadioButton.js +0 -13
- package/UIComponents/RadioButton/RadioGroup.js +0 -13
- package/UIComponents/RadioButton/index.js +0 -23
- package/UIComponents/RaisedButton.js +0 -49
- package/UIComponents/SelectField.js +0 -123
- package/UIComponents/Snackbar.js +0 -13
- package/UIComponents/Table/Table.js +0 -208
- package/UIComponents/Table/TableBody.js +0 -119
- package/UIComponents/Table/TableCell.js +0 -13
- package/UIComponents/Table/TableFooter.js +0 -13
- package/UIComponents/Table/TableHead.js +0 -108
- package/UIComponents/Table/TableHeadColumn.js +0 -13
- package/UIComponents/Table/TableRow.js +0 -74
- package/UIComponents/Table/TableRowColumn.js +0 -13
- package/UIComponents/Table/index.js +0 -63
- package/UIComponents/TableSortLabel.js +0 -13
- package/UIComponents/Tabs/Tab.js +0 -13
- package/UIComponents/Tabs/Tabs.js +0 -13
- package/UIComponents/Tabs/index.js +0 -23
- package/UIComponents/TextField.js +0 -13
- package/UIComponents/TimePicker.js +0 -67
- package/UIComponents/Toggle.js +0 -13
- package/UIComponents/Toolbar.js +0 -13
- package/UIComponents/Tooltip.js +0 -19
- package/UIComponents/Typography.js +0 -13
- package/UIComponents/icons/AccountCircleIcon.js +0 -13
- package/UIComponents/icons/AddCircleOutlineIcon.js +0 -13
- package/UIComponents/icons/AddIcon.js +0 -13
- package/UIComponents/icons/ArrowBackIcon.js +0 -13
- package/UIComponents/icons/CheckmarkIcon.js +0 -13
- package/UIComponents/icons/CloseIcon.js +0 -13
- package/UIComponents/icons/DeleteForeverIcon.js +0 -13
- package/UIComponents/icons/DeleteIcon.js +0 -13
- package/UIComponents/icons/ErrorIcon.js +0 -13
- package/UIComponents/icons/ExpandLessIcon.js +0 -13
- package/UIComponents/icons/ExpandMoreIcon.js +0 -13
- package/UIComponents/icons/FolderIcon.js +0 -13
- package/UIComponents/icons/ForwardIcon.js +0 -13
- package/UIComponents/icons/InfoIcon.js +0 -13
- package/UIComponents/icons/InfoOutlineIcon.js +0 -13
- package/UIComponents/icons/LanguageIcon.js +0 -13
- package/UIComponents/icons/LaunchIcon.js +0 -13
- package/UIComponents/icons/MenuIcon.js +0 -13
- package/UIComponents/icons/PriceIcon.js +0 -13
- package/UIComponents/icons/ReorderIcon.js +0 -13
- package/UIComponents/icons/SearchIcon.js +0 -13
- package/UIComponents/icons/SettingsIcon.js +0 -13
- package/UIComponents/icons/SortIcon.js +0 -13
- package/UIComponents/icons/TranslateIcon.js +0 -13
- package/UIComponents/icons/UpdateIcon.js +0 -13
- package/UIComponents/icons/ViewListIcon.js +0 -13
- package/UIComponents/icons/ZoomResetIcon.js +0 -13
- package/Utils/Async/Deferred.js +0 -139
- package/Utils/Async/newestRequest.js +0 -55
- package/Utils/Decorators/Observable.js +0 -112
- package/Utils/Dev/RequestApiToken.js +0 -44
- package/Utils/Dev/withStateProps.js +0 -43
- package/Utils/Error/createError.js +0 -34
- package/Utils/Events/pointerEvent.js +0 -114
- package/Utils/FunDraw/createMask.js +0 -126
- package/Utils/FunDraw/funDraw.js +0 -561
- package/Utils/FunDraw/movableObject.js +0 -207
- package/Utils/Function/sendMessage.js +0 -22
- package/Utils/HOCs/AsyncProps.js +0 -123
- package/Utils/HOCs/LocalState.js +0 -107
- package/Utils/HOCs/RemappedProps.js +0 -32
- package/Utils/Request/lazyFetch.js +0 -109
- package/Utils/Request/pathParams.js +0 -21
- package/Utils/Test/provideStore.js +0 -30
- package/Utils/Test/wrapperSelectors.js +0 -22
- package/default.js +0 -19
- package/dev.js +0 -61
- package/index.js +0 -18
|
@@ -1,1098 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = exports.VisualizationAndMediaData = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _reactRedux = require("react-redux");
|
|
13
|
-
|
|
14
|
-
var _first = _interopRequireDefault(require("lodash/first"));
|
|
15
|
-
|
|
16
|
-
var _get = _interopRequireDefault(require("lodash/get"));
|
|
17
|
-
|
|
18
|
-
var _find = _interopRequireDefault(require("lodash/find"));
|
|
19
|
-
|
|
20
|
-
var _padStart = _interopRequireDefault(require("lodash/padStart"));
|
|
21
|
-
|
|
22
|
-
var _sortBy = _interopRequireDefault(require("lodash/sortBy"));
|
|
23
|
-
|
|
24
|
-
var _withStyles = _interopRequireDefault(require("@material-ui/core/styles/withStyles"));
|
|
25
|
-
|
|
26
|
-
var _CircularProgress = _interopRequireDefault(require("@material-ui/core/CircularProgress"));
|
|
27
|
-
|
|
28
|
-
var _reactSortableHoc = require("react-sortable-hoc");
|
|
29
|
-
|
|
30
|
-
var _arrayMove = _interopRequireDefault(require("array-move"));
|
|
31
|
-
|
|
32
|
-
var _i18n = require("../../../../App/i18n");
|
|
33
|
-
|
|
34
|
-
var _Dialog = _interopRequireDefault(require("../../../../UIComponents/Dialog"));
|
|
35
|
-
|
|
36
|
-
var _Button = _interopRequireDefault(require("../../../../UIComponents/Button"));
|
|
37
|
-
|
|
38
|
-
var _Tabs = require("../../../../UIComponents/Tabs");
|
|
39
|
-
|
|
40
|
-
var _Paper = _interopRequireDefault(require("../../../../UIComponents/Paper"));
|
|
41
|
-
|
|
42
|
-
var _IconButton = _interopRequireDefault(require("../../../../UIComponents/IconButton"));
|
|
43
|
-
|
|
44
|
-
var _DeleteIcon = _interopRequireDefault(require("../../../../UIComponents/icons/DeleteIcon"));
|
|
45
|
-
|
|
46
|
-
var _AsyncProps = require("../../../../Utils/HOCs/AsyncProps");
|
|
47
|
-
|
|
48
|
-
var _RemappedProps = require("../../../../Utils/HOCs/RemappedProps");
|
|
49
|
-
|
|
50
|
-
var _ApiCalls = require("../../../Designer/SubScreens/Visualization/ApiCalls");
|
|
51
|
-
|
|
52
|
-
var _Api = _interopRequireDefault(require("../../../../App/Api"));
|
|
53
|
-
|
|
54
|
-
var _Actions = require("../../../../App/Reducers/Api/Actions");
|
|
55
|
-
|
|
56
|
-
var _Image = _interopRequireDefault(require("./Components/Image"));
|
|
57
|
-
|
|
58
|
-
var _PathStructure = _interopRequireDefault(require("./Components/PathStructure"));
|
|
59
|
-
|
|
60
|
-
var _ConfirmDelete = _interopRequireDefault(require("./Components/ConfirmDelete"));
|
|
61
|
-
|
|
62
|
-
var _ViewEdit = _interopRequireDefault(require("./Components/ViewEdit"));
|
|
63
|
-
|
|
64
|
-
var _EditableText = _interopRequireDefault(require("./Components/EditableText"));
|
|
65
|
-
|
|
66
|
-
var _ImageEditTools = _interopRequireDefault(require("./Components/ImageEditTools"));
|
|
67
|
-
|
|
68
|
-
require("./Translations");
|
|
69
|
-
|
|
70
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
71
|
-
|
|
72
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
73
|
-
|
|
74
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
75
|
-
|
|
76
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
77
|
-
|
|
78
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
79
|
-
|
|
80
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
81
|
-
|
|
82
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
83
|
-
|
|
84
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
85
|
-
|
|
86
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
87
|
-
|
|
88
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
89
|
-
|
|
90
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
91
|
-
|
|
92
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
93
|
-
|
|
94
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
95
|
-
|
|
96
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
97
|
-
|
|
98
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
99
|
-
|
|
100
|
-
var ImageTile = (0, _withStyles["default"])(function (theme) {
|
|
101
|
-
return {
|
|
102
|
-
imageTile: {
|
|
103
|
-
flex: 1,
|
|
104
|
-
display: 'flex',
|
|
105
|
-
flexDirection: 'column',
|
|
106
|
-
position: 'relative',
|
|
107
|
-
'&:hover $imageEditTools': {
|
|
108
|
-
transform: 'scale(1, 1)'
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
imageLabel: {
|
|
112
|
-
marginTop: theme.spacing.unit,
|
|
113
|
-
height: 38,
|
|
114
|
-
display: 'flex',
|
|
115
|
-
alignItems: 'center',
|
|
116
|
-
flexDirection: 'column'
|
|
117
|
-
},
|
|
118
|
-
imageLabelText: {
|
|
119
|
-
flex: 1,
|
|
120
|
-
fontWeight: 'bold'
|
|
121
|
-
},
|
|
122
|
-
fileName: {
|
|
123
|
-
overflow: 'hidden',
|
|
124
|
-
textOverflow: 'ellipsis',
|
|
125
|
-
maxWidth: '100%',
|
|
126
|
-
margin: 'auto'
|
|
127
|
-
},
|
|
128
|
-
imageEditTools: {
|
|
129
|
-
transform: 'scale(0, 0)',
|
|
130
|
-
transition: 'transform ease-in-out 0.3s',
|
|
131
|
-
position: 'absolute',
|
|
132
|
-
top: 0,
|
|
133
|
-
left: '50%',
|
|
134
|
-
width: 100,
|
|
135
|
-
marginLeft: -50
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
})(function (_ref) {
|
|
139
|
-
var src = _ref.src,
|
|
140
|
-
fileName = _ref.fileName,
|
|
141
|
-
expectedSrc = _ref.expectedSrc,
|
|
142
|
-
label = _ref.label,
|
|
143
|
-
classes = _ref.classes,
|
|
144
|
-
uploadUrl = _ref.uploadUrl,
|
|
145
|
-
removeUrl = _ref.removeUrl,
|
|
146
|
-
onUpdate = _ref.onUpdate;
|
|
147
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
148
|
-
className: classes.imageTile
|
|
149
|
-
}, expectedSrc ? /*#__PURE__*/_react["default"].createElement(_PathStructure["default"], {
|
|
150
|
-
path: expectedSrc
|
|
151
|
-
}) : /*#__PURE__*/_react["default"].createElement(_Image["default"], {
|
|
152
|
-
src: src
|
|
153
|
-
}), uploadUrl && removeUrl && /*#__PURE__*/_react["default"].createElement(_ImageEditTools["default"], {
|
|
154
|
-
className: classes.imageEditTools,
|
|
155
|
-
deleteEnabled: !!src,
|
|
156
|
-
uploadUrl: uploadUrl,
|
|
157
|
-
removeUrl: removeUrl,
|
|
158
|
-
onUpdate: onUpdate
|
|
159
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
160
|
-
className: classes.imageLabel
|
|
161
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
162
|
-
className: classes.imageLabelText
|
|
163
|
-
}, label, "\xA0"), uploadUrl && removeUrl && /*#__PURE__*/_react["default"].createElement("div", {
|
|
164
|
-
className: classes.fileName,
|
|
165
|
-
title: fileName
|
|
166
|
-
}, fileName || (0, _i18n.t)('visualizationAndMediaData.imageStatus.noImage'))));
|
|
167
|
-
});
|
|
168
|
-
ImageTile.displayName = 'ImageTile';
|
|
169
|
-
var ItemTile = (0, _withStyles["default"])(function (theme) {
|
|
170
|
-
return {
|
|
171
|
-
root: {
|
|
172
|
-
padding: theme.spacing.unit * 2,
|
|
173
|
-
textAlign: 'center',
|
|
174
|
-
marginBottom: theme.spacing.unit * 2,
|
|
175
|
-
height: 202,
|
|
176
|
-
display: 'flex',
|
|
177
|
-
flexDirection: 'column',
|
|
178
|
-
alignItems: 'center',
|
|
179
|
-
fontSize: '0.8em'
|
|
180
|
-
},
|
|
181
|
-
title: {
|
|
182
|
-
fontWeight: 'bold'
|
|
183
|
-
},
|
|
184
|
-
titleSubtitle: {}
|
|
185
|
-
};
|
|
186
|
-
})(function (_ref2) {
|
|
187
|
-
var title = _ref2.title,
|
|
188
|
-
subTitle = _ref2.subTitle,
|
|
189
|
-
children = _ref2.children,
|
|
190
|
-
classes = _ref2.classes;
|
|
191
|
-
return /*#__PURE__*/_react["default"].createElement(_Paper["default"], {
|
|
192
|
-
className: classes.root
|
|
193
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
194
|
-
className: classes.titleSubtitle,
|
|
195
|
-
title: title
|
|
196
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
197
|
-
className: classes.title
|
|
198
|
-
}, title), " ", subTitle), children);
|
|
199
|
-
});
|
|
200
|
-
ItemTile.displayName = 'ItemTile';
|
|
201
|
-
var TabTile = (0, _withStyles["default"])(function (theme) {
|
|
202
|
-
return {
|
|
203
|
-
root: {
|
|
204
|
-
textAlign: 'center',
|
|
205
|
-
height: 170,
|
|
206
|
-
display: 'flex',
|
|
207
|
-
flexDirection: 'column',
|
|
208
|
-
alignItems: 'center',
|
|
209
|
-
textTransform: 'none',
|
|
210
|
-
position: 'relative'
|
|
211
|
-
},
|
|
212
|
-
title: {
|
|
213
|
-
display: 'flex',
|
|
214
|
-
width: 133,
|
|
215
|
-
height: 24,
|
|
216
|
-
marginBottom: theme.spacing.unit,
|
|
217
|
-
marginRight: 8
|
|
218
|
-
},
|
|
219
|
-
iconButton: {
|
|
220
|
-
font: 'inherit',
|
|
221
|
-
fontSize: '1em',
|
|
222
|
-
padding: 4,
|
|
223
|
-
color: 'white',
|
|
224
|
-
position: 'absolute',
|
|
225
|
-
right: -20,
|
|
226
|
-
top: -2
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
})(function (_ref3) {
|
|
230
|
-
var title = _ref3.title,
|
|
231
|
-
onDeleteClick = _ref3.onDeleteClick,
|
|
232
|
-
children = _ref3.children,
|
|
233
|
-
classes = _ref3.classes;
|
|
234
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
235
|
-
className: classes.root
|
|
236
|
-
}, title && /*#__PURE__*/_react["default"].createElement("div", {
|
|
237
|
-
className: classes.title
|
|
238
|
-
}, title), onDeleteClick && /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
239
|
-
className: classes.iconButton,
|
|
240
|
-
"aria-label": "Remove",
|
|
241
|
-
onClick: onDeleteClick
|
|
242
|
-
}, /*#__PURE__*/_react["default"].createElement(_DeleteIcon["default"], {
|
|
243
|
-
fontSize: "small"
|
|
244
|
-
})), children);
|
|
245
|
-
});
|
|
246
|
-
TabTile.displayName = 'TabTile';
|
|
247
|
-
var SortableTabs = (0, _reactSortableHoc.SortableContainer)(_Tabs.Tabs);
|
|
248
|
-
var SortableTab = (0, _reactSortableHoc.SortableElement)(_Tabs.Tab);
|
|
249
|
-
var editorModes = {
|
|
250
|
-
componentsAndOptions: 0,
|
|
251
|
-
viewsAndVisualization: 1
|
|
252
|
-
};
|
|
253
|
-
var VisualizationAndMediaData = (0, _withStyles["default"])(function (theme) {
|
|
254
|
-
return {
|
|
255
|
-
dialog: {
|
|
256
|
-
display: 'flex',
|
|
257
|
-
flexDirection: 'column',
|
|
258
|
-
minHeight: 700,
|
|
259
|
-
minWidth: 900
|
|
260
|
-
},
|
|
261
|
-
missingImageNotice: {
|
|
262
|
-
marginBottom: theme.spacing.unit
|
|
263
|
-
},
|
|
264
|
-
buttonProgress: {
|
|
265
|
-
position: 'absolute'
|
|
266
|
-
},
|
|
267
|
-
progressContainer: {
|
|
268
|
-
position: 'absolute',
|
|
269
|
-
top: 0,
|
|
270
|
-
left: 0,
|
|
271
|
-
right: 0,
|
|
272
|
-
bottom: 0,
|
|
273
|
-
zIndex: 1000,
|
|
274
|
-
background: 'lightgrey',
|
|
275
|
-
opacity: 0.5,
|
|
276
|
-
textAlign: 'center'
|
|
277
|
-
},
|
|
278
|
-
progressOverlay: {
|
|
279
|
-
position: 'absolute',
|
|
280
|
-
top: '50%',
|
|
281
|
-
margin: '-15px'
|
|
282
|
-
},
|
|
283
|
-
tabs: {
|
|
284
|
-
minHeight: 182,
|
|
285
|
-
marginTop: 5,
|
|
286
|
-
'&.empty': {
|
|
287
|
-
minHeight: 'fit-content'
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
tabRoot: {
|
|
291
|
-
backgroundColor: theme.palette.primary.main,
|
|
292
|
-
color: theme.palette.common.white,
|
|
293
|
-
'& + $addViewButton': {
|
|
294
|
-
marginLeft: theme.spacing.unit * 4
|
|
295
|
-
},
|
|
296
|
-
width: 184
|
|
297
|
-
},
|
|
298
|
-
addViewButton: {
|
|
299
|
-
alignSelf: 'flex-start',
|
|
300
|
-
marginBottom: theme.spacing.unit
|
|
301
|
-
},
|
|
302
|
-
container: {
|
|
303
|
-
overflowX: 'visible',
|
|
304
|
-
overflowY: 'auto'
|
|
305
|
-
},
|
|
306
|
-
componentsContainer: {
|
|
307
|
-
paddingTop: theme.spacing.unit,
|
|
308
|
-
paddingBottom: theme.spacing.unit,
|
|
309
|
-
marginLeft: theme.spacing.unit,
|
|
310
|
-
marginRight: theme.spacing.unit
|
|
311
|
-
},
|
|
312
|
-
componentsScroller: {
|
|
313
|
-
display: 'flex'
|
|
314
|
-
},
|
|
315
|
-
optionsContainer: {
|
|
316
|
-
paddingTop: theme.spacing.unit,
|
|
317
|
-
paddingLeft: theme.spacing.unit,
|
|
318
|
-
marginLeft: theme.spacing.unit * 2,
|
|
319
|
-
flex: 1,
|
|
320
|
-
overflowX: 'auto',
|
|
321
|
-
overflowY: 'visible'
|
|
322
|
-
},
|
|
323
|
-
optionsScroller: {
|
|
324
|
-
display: 'inline-flex',
|
|
325
|
-
flexDirection: 'column'
|
|
326
|
-
},
|
|
327
|
-
optionRow: {
|
|
328
|
-
display: 'inline-flex',
|
|
329
|
-
flexDirection: 'row',
|
|
330
|
-
'& > *': {
|
|
331
|
-
marginRight: theme.spacing.unit * 2
|
|
332
|
-
},
|
|
333
|
-
minHeight: 218
|
|
334
|
-
},
|
|
335
|
-
itemTitle: {
|
|
336
|
-
alignSelf: 'flex-start',
|
|
337
|
-
marginBottom: theme.spacing.unit,
|
|
338
|
-
whiteSpace: 'nowrap',
|
|
339
|
-
overflow: 'hidden',
|
|
340
|
-
textOverflow: 'ellipsis',
|
|
341
|
-
maxWidth: 300,
|
|
342
|
-
'&.withViewImage': {
|
|
343
|
-
maxWidth: 220
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
itemTileViews: {
|
|
347
|
-
width: 220
|
|
348
|
-
},
|
|
349
|
-
imageList: {
|
|
350
|
-
flex: 1,
|
|
351
|
-
display: 'grid',
|
|
352
|
-
gridTemplateColumns: 'repeat(2, minmax(0%, 1fr))',
|
|
353
|
-
gridGap: '10px',
|
|
354
|
-
width: 150 * 2,
|
|
355
|
-
'&.withViewImage': {
|
|
356
|
-
gridTemplateColumns: 'repeat(1, minmax(0%, 1fr))',
|
|
357
|
-
width: 150
|
|
358
|
-
}
|
|
359
|
-
},
|
|
360
|
-
infoBox: {
|
|
361
|
-
background: 'rgba(0, 0, 0, 0.1)',
|
|
362
|
-
marginBottom: theme.spacing.unit * 2,
|
|
363
|
-
borderRadius: 4,
|
|
364
|
-
padding: theme.spacing.unit,
|
|
365
|
-
fontSize: '0.8em',
|
|
366
|
-
'& > p': {
|
|
367
|
-
margin: 0
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
infoLabel: {
|
|
371
|
-
fontSize: '0.8em',
|
|
372
|
-
padding: theme.spacing.unit
|
|
373
|
-
},
|
|
374
|
-
possibleNamingIssues: {
|
|
375
|
-
marginTop: theme.spacing.unit * 2,
|
|
376
|
-
'& > ul': {
|
|
377
|
-
margin: 0
|
|
378
|
-
},
|
|
379
|
-
overflowY: 'auto',
|
|
380
|
-
maxHeight: '15%'
|
|
381
|
-
},
|
|
382
|
-
noTabIndicator: {
|
|
383
|
-
display: 'none'
|
|
384
|
-
},
|
|
385
|
-
sortable: {
|
|
386
|
-
zIndex: 9999
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
})(function (_ref4) {
|
|
390
|
-
var enabled = _ref4.enabled,
|
|
391
|
-
item = _ref4.item,
|
|
392
|
-
itemId = _ref4.itemId,
|
|
393
|
-
loadData = _ref4.loadData,
|
|
394
|
-
saveView = _ref4.saveView,
|
|
395
|
-
updateView = _ref4.updateView,
|
|
396
|
-
removeView = _ref4.removeView,
|
|
397
|
-
classes = _ref4.classes;
|
|
398
|
-
|
|
399
|
-
var _useState = (0, _react.useState)(false),
|
|
400
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
401
|
-
open = _useState2[0],
|
|
402
|
-
setOpen = _useState2[1];
|
|
403
|
-
|
|
404
|
-
var _useState3 = (0, _react.useState)({
|
|
405
|
-
viewMediaInfo: [],
|
|
406
|
-
componentMediaInfo: [],
|
|
407
|
-
possibleNamingIssues: []
|
|
408
|
-
}),
|
|
409
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
410
|
-
mediaEditData = _useState4[0],
|
|
411
|
-
setMediaEditData = _useState4[1];
|
|
412
|
-
|
|
413
|
-
var _useState5 = (0, _react.useState)(false),
|
|
414
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
415
|
-
loading = _useState6[0],
|
|
416
|
-
setLoading = _useState6[1];
|
|
417
|
-
|
|
418
|
-
var _useState7 = (0, _react.useState)(false),
|
|
419
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
420
|
-
loadingDialog = _useState8[0],
|
|
421
|
-
setLoadingDialog = _useState8[1];
|
|
422
|
-
|
|
423
|
-
var _useState9 = (0, _react.useState)(0),
|
|
424
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
425
|
-
editorMode = _useState10[0],
|
|
426
|
-
setEditorMode = _useState10[1];
|
|
427
|
-
|
|
428
|
-
var _useState11 = (0, _react.useState)(false),
|
|
429
|
-
_useState12 = _slicedToArray(_useState11, 2),
|
|
430
|
-
selectedDesignView = _useState12[0],
|
|
431
|
-
setSelectedDesignView = _useState12[1];
|
|
432
|
-
|
|
433
|
-
var _useState13 = (0, _react.useState)(false),
|
|
434
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
435
|
-
showAddView = _useState14[0],
|
|
436
|
-
setShowAddView = _useState14[1];
|
|
437
|
-
|
|
438
|
-
var _useState15 = (0, _react.useState)(false),
|
|
439
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
440
|
-
idToDelete = _useState16[0],
|
|
441
|
-
setIdToDelete = _useState16[1];
|
|
442
|
-
|
|
443
|
-
var currentDesignViewIdentifier = selectedDesignView && selectedDesignView.identifier;
|
|
444
|
-
var viewMediaInfo = mediaEditData.viewMediaInfo,
|
|
445
|
-
componentMediaInfo = mediaEditData.componentMediaInfo,
|
|
446
|
-
possibleNamingIssues = mediaEditData.possibleNamingIssues;
|
|
447
|
-
|
|
448
|
-
var _useState17 = (0, _react.useState)(viewMediaInfo),
|
|
449
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
450
|
-
orderedViews = _useState18[0],
|
|
451
|
-
setOrderedViews = _useState18[1];
|
|
452
|
-
|
|
453
|
-
var refreshData = /*#__PURE__*/function () {
|
|
454
|
-
var _ref5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
455
|
-
var data;
|
|
456
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
457
|
-
while (1) {
|
|
458
|
-
switch (_context.prev = _context.next) {
|
|
459
|
-
case 0:
|
|
460
|
-
_context.prev = 0;
|
|
461
|
-
setLoadingDialog(true);
|
|
462
|
-
_context.next = 4;
|
|
463
|
-
return loadData(itemId);
|
|
464
|
-
|
|
465
|
-
case 4:
|
|
466
|
-
data = _context.sent;
|
|
467
|
-
setMediaEditData(data);
|
|
468
|
-
|
|
469
|
-
case 6:
|
|
470
|
-
_context.prev = 6;
|
|
471
|
-
setLoadingDialog(false);
|
|
472
|
-
return _context.finish(6);
|
|
473
|
-
|
|
474
|
-
case 9:
|
|
475
|
-
case "end":
|
|
476
|
-
return _context.stop();
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
}, _callee, null, [[0,, 6, 9]]);
|
|
480
|
-
}));
|
|
481
|
-
|
|
482
|
-
return function refreshData() {
|
|
483
|
-
return _ref5.apply(this, arguments);
|
|
484
|
-
};
|
|
485
|
-
}();
|
|
486
|
-
|
|
487
|
-
(0, _react.useEffect)(function () {
|
|
488
|
-
setOrderedViews(viewMediaInfo);
|
|
489
|
-
}, [viewMediaInfo]);
|
|
490
|
-
(0, _react.useEffect)(function () {
|
|
491
|
-
if (editorMode === editorModes.viewsAndVisualization) {
|
|
492
|
-
if (!selectedDesignView) {
|
|
493
|
-
setSelectedDesignView((0, _first["default"])(viewMediaInfo));
|
|
494
|
-
} else {
|
|
495
|
-
setSelectedDesignView((0, _find["default"])(viewMediaInfo, {
|
|
496
|
-
id: selectedDesignView.id
|
|
497
|
-
}));
|
|
498
|
-
}
|
|
499
|
-
} else {
|
|
500
|
-
setSelectedDesignView(false);
|
|
501
|
-
}
|
|
502
|
-
}, [viewMediaInfo, editorMode, selectedDesignView]);
|
|
503
|
-
(0, _react.useEffect)(function () {
|
|
504
|
-
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
505
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
506
|
-
while (1) {
|
|
507
|
-
switch (_context2.prev = _context2.next) {
|
|
508
|
-
case 0:
|
|
509
|
-
if (!open) {
|
|
510
|
-
_context2.next = 11;
|
|
511
|
-
break;
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
setLoading(true);
|
|
515
|
-
_context2.prev = 2;
|
|
516
|
-
_context2.t0 = setMediaEditData;
|
|
517
|
-
_context2.next = 6;
|
|
518
|
-
return loadData(itemId);
|
|
519
|
-
|
|
520
|
-
case 6:
|
|
521
|
-
_context2.t1 = _context2.sent;
|
|
522
|
-
(0, _context2.t0)(_context2.t1);
|
|
523
|
-
|
|
524
|
-
case 8:
|
|
525
|
-
_context2.prev = 8;
|
|
526
|
-
setLoading(false);
|
|
527
|
-
return _context2.finish(8);
|
|
528
|
-
|
|
529
|
-
case 11:
|
|
530
|
-
case "end":
|
|
531
|
-
return _context2.stop();
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
}, _callee2, null, [[2,, 8, 11]]);
|
|
535
|
-
}))();
|
|
536
|
-
}, [open, loadData, setMediaEditData, itemId]);
|
|
537
|
-
|
|
538
|
-
var handleViewSortEnd = /*#__PURE__*/function () {
|
|
539
|
-
var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(_ref7) {
|
|
540
|
-
var oldIndex, newIndex, views, refreshNeeded;
|
|
541
|
-
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
542
|
-
while (1) {
|
|
543
|
-
switch (_context3.prev = _context3.next) {
|
|
544
|
-
case 0:
|
|
545
|
-
oldIndex = _ref7.oldIndex, newIndex = _ref7.newIndex;
|
|
546
|
-
views = (0, _arrayMove["default"])(orderedViews, oldIndex, newIndex).map(function (view, index) {
|
|
547
|
-
return _objectSpread(_objectSpread({}, view), {}, {
|
|
548
|
-
sequenceNumber: (0, _padStart["default"])('' + (index + 1), 2, '0')
|
|
549
|
-
});
|
|
550
|
-
});
|
|
551
|
-
setOrderedViews(views);
|
|
552
|
-
refreshNeeded = false;
|
|
553
|
-
_context3.prev = 4;
|
|
554
|
-
setLoadingDialog(true);
|
|
555
|
-
_context3.next = 8;
|
|
556
|
-
return Promise.all(views.map(function (view) {
|
|
557
|
-
if (view.sequenceNumber !== orderedViews.sequenceNumber) {
|
|
558
|
-
refreshNeeded = true;
|
|
559
|
-
return updateView(_objectSpread(_objectSpread({}, view), {}, {
|
|
560
|
-
itemId: itemId
|
|
561
|
-
}));
|
|
562
|
-
}
|
|
563
|
-
}));
|
|
564
|
-
|
|
565
|
-
case 8:
|
|
566
|
-
_context3.prev = 8;
|
|
567
|
-
|
|
568
|
-
if (!refreshNeeded) {
|
|
569
|
-
_context3.next = 14;
|
|
570
|
-
break;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
_context3.next = 12;
|
|
574
|
-
return refreshData();
|
|
575
|
-
|
|
576
|
-
case 12:
|
|
577
|
-
_context3.next = 15;
|
|
578
|
-
break;
|
|
579
|
-
|
|
580
|
-
case 14:
|
|
581
|
-
setLoadingDialog(false);
|
|
582
|
-
|
|
583
|
-
case 15:
|
|
584
|
-
return _context3.finish(8);
|
|
585
|
-
|
|
586
|
-
case 16:
|
|
587
|
-
case "end":
|
|
588
|
-
return _context3.stop();
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
}, _callee3, null, [[4,, 8, 16]]);
|
|
592
|
-
}));
|
|
593
|
-
|
|
594
|
-
return function handleViewSortEnd(_x) {
|
|
595
|
-
return _ref8.apply(this, arguments);
|
|
596
|
-
};
|
|
597
|
-
}(); // an image is treated as missing if its src is empty, so finding empty src props gives the correct result
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
var showMissingImageNotice = (0, _react.useMemo)(function () {
|
|
601
|
-
return function findEmptySrc(obj) {
|
|
602
|
-
if (obj instanceof Array) {
|
|
603
|
-
return obj.some(findEmptySrc);
|
|
604
|
-
} else if (obj instanceof Object) {
|
|
605
|
-
return obj.hasOwnProperty('src') ? !obj.src : findEmptySrc(Object.values(obj));
|
|
606
|
-
}
|
|
607
|
-
}(componentMediaInfo);
|
|
608
|
-
}, [componentMediaInfo]);
|
|
609
|
-
|
|
610
|
-
if (!enabled) {
|
|
611
|
-
return null;
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
615
|
-
variant: "contained",
|
|
616
|
-
color: "primary",
|
|
617
|
-
size: "large",
|
|
618
|
-
onClick: function onClick() {
|
|
619
|
-
return setOpen(true);
|
|
620
|
-
},
|
|
621
|
-
disabled: loading
|
|
622
|
-
}, /*#__PURE__*/_react["default"].createElement(_i18n.T, null, "visualizationAndMediaData.openButtonLabel"), loading && /*#__PURE__*/_react["default"].createElement(_CircularProgress["default"], {
|
|
623
|
-
className: classes.buttonProgress,
|
|
624
|
-
size: 24
|
|
625
|
-
})), /*#__PURE__*/_react["default"].createElement(_Dialog["default"], {
|
|
626
|
-
title: (0, _i18n.T)('visualizationAndMediaData.dialogTitle', {
|
|
627
|
-
item: "".concat((0, _get["default"])(item, 'translated_title'), " (").concat((0, _get["default"])(item, 'identifier'), ")")
|
|
628
|
-
}),
|
|
629
|
-
modal: 'true',
|
|
630
|
-
open: !loading && open,
|
|
631
|
-
scroll: 'paper',
|
|
632
|
-
onClose: function onClose() {
|
|
633
|
-
return setOpen(false);
|
|
634
|
-
},
|
|
635
|
-
maxWidth: false,
|
|
636
|
-
classes: {
|
|
637
|
-
dialogContentTextRoot: classes.dialog
|
|
638
|
-
}
|
|
639
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
640
|
-
className: classes.missingImageNotice
|
|
641
|
-
}, (0, _i18n.T)("visualizationAndMediaData.missingImageNotice.".concat(showMissingImageNotice ? 'imagesAreMissing' : 'noMissingImage'))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
642
|
-
className: classes.infoBox
|
|
643
|
-
}, (0, _i18n.T)('visualizationAndMediaData.infoBoxText')), /*#__PURE__*/_react["default"].createElement(_Tabs.Tabs, {
|
|
644
|
-
value: editorMode,
|
|
645
|
-
onChange: function onChange(evt, value) {
|
|
646
|
-
return setEditorMode(value);
|
|
647
|
-
}
|
|
648
|
-
}, Object.keys(editorModes).map(function (key) {
|
|
649
|
-
return /*#__PURE__*/_react["default"].createElement(_Tabs.Tab, {
|
|
650
|
-
key: key,
|
|
651
|
-
component: "div",
|
|
652
|
-
value: editorModes[key],
|
|
653
|
-
label: (0, _i18n.T)("visualizationAndMediaData.editorModes.".concat(key))
|
|
654
|
-
});
|
|
655
|
-
})), editorMode === editorModes.componentsAndOptions ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
656
|
-
className: classes.infoLabel
|
|
657
|
-
}, (0, _i18n.T)('visualizationAndMediaData.infoBoxTextComponentsAndOptions')) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
658
|
-
className: classes.infoLabel
|
|
659
|
-
}, (0, _i18n.T)('visualizationAndMediaData.infoBoxTextViewsAndVisualization')), editorMode === editorModes.viewsAndVisualization && /*#__PURE__*/_react["default"].createElement(SortableTabs, {
|
|
660
|
-
onSortEnd: handleViewSortEnd,
|
|
661
|
-
distance: 10,
|
|
662
|
-
axis: 'x',
|
|
663
|
-
lockAxis: 'x',
|
|
664
|
-
lockToContainerEdges: true,
|
|
665
|
-
helperClass: classes.sortable,
|
|
666
|
-
value: currentDesignViewIdentifier || 0,
|
|
667
|
-
onChange: function onChange(evt, value) {
|
|
668
|
-
return setSelectedDesignView(orderedViews.find(function (_ref9) {
|
|
669
|
-
var identifier = _ref9.identifier;
|
|
670
|
-
return identifier === value;
|
|
671
|
-
}));
|
|
672
|
-
},
|
|
673
|
-
className: classes.tabs + (selectedDesignView ? '' : ' empty'),
|
|
674
|
-
classes: {
|
|
675
|
-
indicator: !viewMediaInfo.length ? classes.noTabIndicator : ''
|
|
676
|
-
}
|
|
677
|
-
}, selectedDesignView && orderedViews && orderedViews.map(function (designView, index) {
|
|
678
|
-
var id = designView.id,
|
|
679
|
-
identifier = designView.identifier,
|
|
680
|
-
sequenceNumber = designView.sequenceNumber;
|
|
681
|
-
return /*#__PURE__*/_react["default"].createElement(SortableTab, {
|
|
682
|
-
key: identifier,
|
|
683
|
-
index: index,
|
|
684
|
-
component: "div",
|
|
685
|
-
label: /*#__PURE__*/_react["default"].createElement(TabTile, {
|
|
686
|
-
title: /*#__PURE__*/_react["default"].createElement(_EditableText["default"], {
|
|
687
|
-
"aria-label": 'identifier',
|
|
688
|
-
value: identifier,
|
|
689
|
-
onChange: /*#__PURE__*/function () {
|
|
690
|
-
var _ref10 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(value) {
|
|
691
|
-
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
692
|
-
while (1) {
|
|
693
|
-
switch (_context4.prev = _context4.next) {
|
|
694
|
-
case 0:
|
|
695
|
-
_context4.next = 2;
|
|
696
|
-
return updateView({
|
|
697
|
-
id: id,
|
|
698
|
-
itemId: itemId,
|
|
699
|
-
sequenceNumber: sequenceNumber,
|
|
700
|
-
identifier: value
|
|
701
|
-
});
|
|
702
|
-
|
|
703
|
-
case 2:
|
|
704
|
-
_context4.t0 = setMediaEditData;
|
|
705
|
-
_context4.next = 5;
|
|
706
|
-
return loadData(itemId);
|
|
707
|
-
|
|
708
|
-
case 5:
|
|
709
|
-
_context4.t1 = _context4.sent;
|
|
710
|
-
(0, _context4.t0)(_context4.t1);
|
|
711
|
-
|
|
712
|
-
case 7:
|
|
713
|
-
case "end":
|
|
714
|
-
return _context4.stop();
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
}, _callee4);
|
|
718
|
-
}));
|
|
719
|
-
|
|
720
|
-
return function (_x2) {
|
|
721
|
-
return _ref10.apply(this, arguments);
|
|
722
|
-
};
|
|
723
|
-
}()
|
|
724
|
-
}),
|
|
725
|
-
onDeleteClick: function onDeleteClick() {
|
|
726
|
-
setIdToDelete(id);
|
|
727
|
-
}
|
|
728
|
-
}, /*#__PURE__*/_react["default"].createElement(ImageTile, _extends({}, (0, _get["default"])(designView, 'thumbnail'), {
|
|
729
|
-
label: 'Thumbnail:',
|
|
730
|
-
uploadUrl: "/creator_views/".concat(id, "/upload/thumbnail"),
|
|
731
|
-
removeUrl: "/creator_views/".concat(id, "/thumbnail"),
|
|
732
|
-
onUpdate: refreshData
|
|
733
|
-
}))),
|
|
734
|
-
value: identifier,
|
|
735
|
-
classes: {
|
|
736
|
-
root: classes.tabRoot
|
|
737
|
-
}
|
|
738
|
-
});
|
|
739
|
-
}), /*#__PURE__*/_react["default"].createElement(_Button["default"], {
|
|
740
|
-
variant: "contained",
|
|
741
|
-
color: "primary",
|
|
742
|
-
size: "large",
|
|
743
|
-
onClick: function onClick() {
|
|
744
|
-
return setShowAddView(true);
|
|
745
|
-
},
|
|
746
|
-
className: classes.addViewButton
|
|
747
|
-
}, /*#__PURE__*/_react["default"].createElement(_i18n.T, null, "visualizationAndMediaData.addViewButtonLabel"))), /*#__PURE__*/_react["default"].createElement(_ViewEdit["default"], {
|
|
748
|
-
item: item,
|
|
749
|
-
open: showAddView,
|
|
750
|
-
onClose: function onClose() {
|
|
751
|
-
return setShowAddView(false);
|
|
752
|
-
},
|
|
753
|
-
onSubmit: /*#__PURE__*/function () {
|
|
754
|
-
var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(data) {
|
|
755
|
-
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
756
|
-
while (1) {
|
|
757
|
-
switch (_context5.prev = _context5.next) {
|
|
758
|
-
case 0:
|
|
759
|
-
_context5.prev = 0;
|
|
760
|
-
_context5.next = 3;
|
|
761
|
-
return saveView(_objectSpread(_objectSpread({}, data), {}, {
|
|
762
|
-
itemId: itemId,
|
|
763
|
-
sequenceNumber: '999'
|
|
764
|
-
}));
|
|
765
|
-
|
|
766
|
-
case 3:
|
|
767
|
-
_context5.next = 8;
|
|
768
|
-
break;
|
|
769
|
-
|
|
770
|
-
case 5:
|
|
771
|
-
_context5.prev = 5;
|
|
772
|
-
_context5.t0 = _context5["catch"](0);
|
|
773
|
-
// eslint-disable-next-line no-console
|
|
774
|
-
console.error(_context5.t0);
|
|
775
|
-
|
|
776
|
-
case 8:
|
|
777
|
-
refreshData();
|
|
778
|
-
setShowAddView(false);
|
|
779
|
-
|
|
780
|
-
case 10:
|
|
781
|
-
case "end":
|
|
782
|
-
return _context5.stop();
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
}, _callee5, null, [[0, 5]]);
|
|
786
|
-
}));
|
|
787
|
-
|
|
788
|
-
return function (_x3) {
|
|
789
|
-
return _ref11.apply(this, arguments);
|
|
790
|
-
};
|
|
791
|
-
}()
|
|
792
|
-
}), /*#__PURE__*/_react["default"].createElement(_ConfirmDelete["default"], {
|
|
793
|
-
id: 'confirmDeleteView',
|
|
794
|
-
open: !!idToDelete,
|
|
795
|
-
onCancel: function onCancel() {
|
|
796
|
-
return setIdToDelete(false);
|
|
797
|
-
},
|
|
798
|
-
onConfirm: /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
799
|
-
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
800
|
-
while (1) {
|
|
801
|
-
switch (_context6.prev = _context6.next) {
|
|
802
|
-
case 0:
|
|
803
|
-
_context6.next = 2;
|
|
804
|
-
return removeView(idToDelete);
|
|
805
|
-
|
|
806
|
-
case 2:
|
|
807
|
-
setIdToDelete(false);
|
|
808
|
-
_context6.t0 = setMediaEditData;
|
|
809
|
-
_context6.next = 6;
|
|
810
|
-
return loadData(itemId);
|
|
811
|
-
|
|
812
|
-
case 6:
|
|
813
|
-
_context6.t1 = _context6.sent;
|
|
814
|
-
(0, _context6.t0)(_context6.t1);
|
|
815
|
-
|
|
816
|
-
case 8:
|
|
817
|
-
case "end":
|
|
818
|
-
return _context6.stop();
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
}, _callee6);
|
|
822
|
-
})),
|
|
823
|
-
title: (0, _i18n.t)('visualizationAndMediaData.viewDeleteConfirm.title'),
|
|
824
|
-
message: (0, _i18n.t)('visualizationAndMediaData.viewDeleteConfirm.message')
|
|
825
|
-
}), componentMediaInfo && componentMediaInfo.length > 0 && (editorMode === editorModes.componentsAndOptions || orderedViews && orderedViews.length > 0) && /*#__PURE__*/_react["default"].createElement("div", {
|
|
826
|
-
className: classes.container
|
|
827
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
828
|
-
className: classes.componentsScroller
|
|
829
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
830
|
-
className: classes.componentsContainer
|
|
831
|
-
}, componentMediaInfo.map(function (oc) {
|
|
832
|
-
return /*#__PURE__*/_react["default"].createElement(ItemTile, {
|
|
833
|
-
key: oc.identifier,
|
|
834
|
-
title: "".concat(oc.translated_title),
|
|
835
|
-
subTitle: "(".concat(oc.identifier, ")"),
|
|
836
|
-
classes: {
|
|
837
|
-
titleSubtitle: classes.itemTitle
|
|
838
|
-
}
|
|
839
|
-
}, /*#__PURE__*/_react["default"].createElement(ImageTile, _extends({}, (0, _get["default"])(oc, 'images.componentThumbnail'), {
|
|
840
|
-
label: editorMode === editorModes.componentsAndOptions ? 'Thumbnail:' : '',
|
|
841
|
-
uploadUrl: editorMode === editorModes.componentsAndOptions && "/optionclassifications/".concat(oc.id, "/upload/thumbnail"),
|
|
842
|
-
removeUrl: editorMode === editorModes.componentsAndOptions && "/optionclassifications/".concat(oc.id, "/thumbnail"),
|
|
843
|
-
onUpdate: refreshData
|
|
844
|
-
})));
|
|
845
|
-
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
846
|
-
className: classes.optionsContainer
|
|
847
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
848
|
-
className: classes.optionsScroller
|
|
849
|
-
}, componentMediaInfo.map(function (oc) {
|
|
850
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
851
|
-
key: oc.identifier,
|
|
852
|
-
className: classes.optionRow
|
|
853
|
-
}, oc.options.map(function (option) {
|
|
854
|
-
return /*#__PURE__*/_react["default"].createElement(ItemTile, {
|
|
855
|
-
key: option.identifier,
|
|
856
|
-
title: "".concat(option.translated_title),
|
|
857
|
-
subTitle: "(".concat(option.identifier, ")"),
|
|
858
|
-
classes: {
|
|
859
|
-
root: currentDesignViewIdentifier && classes.itemTileViews,
|
|
860
|
-
titleSubtitle: classes.itemTitle + currentDesignViewIdentifier ? ' withViewImage' : ''
|
|
861
|
-
}
|
|
862
|
-
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
863
|
-
className: currentDesignViewIdentifier ? classes.imageList + ' withViewImage' : ''
|
|
864
|
-
}, currentDesignViewIdentifier && /*#__PURE__*/_react["default"].createElement(ImageTile, _extends({}, (0, _get["default"])(option, "images.visualizationImages.".concat(currentDesignViewIdentifier)), {
|
|
865
|
-
label: 'Visualization:',
|
|
866
|
-
uploadUrl: "/items/".concat(itemId, "/upload/layer_image/").concat(oc.id, "/").concat(option.id, "/").concat(selectedDesignView.id),
|
|
867
|
-
removeUrl: "/items/".concat(itemId, "/layer_image/").concat(oc.id, "/").concat(option.id, "/").concat(selectedDesignView.id),
|
|
868
|
-
onUpdate: refreshData
|
|
869
|
-
})), editorMode === editorModes.componentsAndOptions && /*#__PURE__*/_react["default"].createElement("div", {
|
|
870
|
-
className: classes.imageList
|
|
871
|
-
}, /*#__PURE__*/_react["default"].createElement(ImageTile, _extends({}, (0, _get["default"])(option, 'images.optionThumbnail'), {
|
|
872
|
-
label: 'Thumbnail:',
|
|
873
|
-
uploadUrl: "/options/".concat(option.id, "/upload/thumbnail"),
|
|
874
|
-
removeUrl: "/options/".concat(option.id, "/thumbnail"),
|
|
875
|
-
onUpdate: refreshData
|
|
876
|
-
})), /*#__PURE__*/_react["default"].createElement(ImageTile, _extends({}, (0, _get["default"])(option, 'images.optionDetailImage'), {
|
|
877
|
-
label: 'Detail:',
|
|
878
|
-
uploadUrl: "/options/".concat(option.id, "/upload/detail_image"),
|
|
879
|
-
removeUrl: "/options/".concat(option.id, "/detail_image"),
|
|
880
|
-
onUpdate: refreshData
|
|
881
|
-
})))));
|
|
882
|
-
}));
|
|
883
|
-
}))))), possibleNamingIssues && possibleNamingIssues.length > 0 && /*#__PURE__*/_react["default"].createElement("div", {
|
|
884
|
-
className: classes.possibleNamingIssues
|
|
885
|
-
}, (0, _i18n.T)('visualizationAndMediaData.possibleNamingIssuesNotice'), /*#__PURE__*/_react["default"].createElement("ul", null, possibleNamingIssues.map(function (fileName) {
|
|
886
|
-
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
887
|
-
key: fileName
|
|
888
|
-
}, fileName);
|
|
889
|
-
}))), loadingDialog && /*#__PURE__*/_react["default"].createElement("div", {
|
|
890
|
-
className: classes.progressContainer
|
|
891
|
-
}, /*#__PURE__*/_react["default"].createElement(_CircularProgress["default"], {
|
|
892
|
-
className: classes.progressOverlay,
|
|
893
|
-
size: 30
|
|
894
|
-
}))));
|
|
895
|
-
});
|
|
896
|
-
exports.VisualizationAndMediaData = VisualizationAndMediaData;
|
|
897
|
-
VisualizationAndMediaData.displayName = 'VisualizationAndMediaData';
|
|
898
|
-
|
|
899
|
-
function mapStateToProps() {
|
|
900
|
-
return {};
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
function mapDispatchToProps(dispatch) {
|
|
904
|
-
return {
|
|
905
|
-
loadData: function () {
|
|
906
|
-
var _loadData = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7(id) {
|
|
907
|
-
var _yield$Api$request, data;
|
|
908
|
-
|
|
909
|
-
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
910
|
-
while (1) {
|
|
911
|
-
switch (_context7.prev = _context7.next) {
|
|
912
|
-
case 0:
|
|
913
|
-
_context7.prev = 0;
|
|
914
|
-
_context7.next = 3;
|
|
915
|
-
return _Api["default"].request("/mediainfo/".concat(id));
|
|
916
|
-
|
|
917
|
-
case 3:
|
|
918
|
-
_yield$Api$request = _context7.sent;
|
|
919
|
-
data = _yield$Api$request.data;
|
|
920
|
-
return _context7.abrupt("return", _objectSpread(_objectSpread({
|
|
921
|
-
componentMediaInfo: [],
|
|
922
|
-
possibleNamingIssues: []
|
|
923
|
-
}, data), {}, {
|
|
924
|
-
viewMediaInfo: (0, _sortBy["default"])(data.viewMediaInfo, ['sequenceNumber'])
|
|
925
|
-
}));
|
|
926
|
-
|
|
927
|
-
case 8:
|
|
928
|
-
_context7.prev = 8;
|
|
929
|
-
_context7.t0 = _context7["catch"](0);
|
|
930
|
-
dispatch((0, _Actions.networkError)('mediainfo', 'mediainfo', _context7.t0));
|
|
931
|
-
throw _context7.t0;
|
|
932
|
-
|
|
933
|
-
case 12:
|
|
934
|
-
case "end":
|
|
935
|
-
return _context7.stop();
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
}, _callee7, null, [[0, 8]]);
|
|
939
|
-
}));
|
|
940
|
-
|
|
941
|
-
function loadData(_x4) {
|
|
942
|
-
return _loadData.apply(this, arguments);
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
return loadData;
|
|
946
|
-
}(),
|
|
947
|
-
saveView: function () {
|
|
948
|
-
var _saveView = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(data) {
|
|
949
|
-
return regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
950
|
-
while (1) {
|
|
951
|
-
switch (_context8.prev = _context8.next) {
|
|
952
|
-
case 0:
|
|
953
|
-
_context8.prev = 0;
|
|
954
|
-
_context8.next = 3;
|
|
955
|
-
return _Api["default"].request({
|
|
956
|
-
method: 'post',
|
|
957
|
-
url: "/creator_views",
|
|
958
|
-
data: data
|
|
959
|
-
});
|
|
960
|
-
|
|
961
|
-
case 3:
|
|
962
|
-
return _context8.abrupt("return", _context8.sent);
|
|
963
|
-
|
|
964
|
-
case 6:
|
|
965
|
-
_context8.prev = 6;
|
|
966
|
-
_context8.t0 = _context8["catch"](0);
|
|
967
|
-
dispatch((0, _Actions.networkError)('views', 'views', _context8.t0));
|
|
968
|
-
throw _context8.t0;
|
|
969
|
-
|
|
970
|
-
case 10:
|
|
971
|
-
case "end":
|
|
972
|
-
return _context8.stop();
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
}, _callee8, null, [[0, 6]]);
|
|
976
|
-
}));
|
|
977
|
-
|
|
978
|
-
function saveView(_x5) {
|
|
979
|
-
return _saveView.apply(this, arguments);
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
return saveView;
|
|
983
|
-
}(),
|
|
984
|
-
updateView: function () {
|
|
985
|
-
var _updateView = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(data) {
|
|
986
|
-
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
987
|
-
while (1) {
|
|
988
|
-
switch (_context9.prev = _context9.next) {
|
|
989
|
-
case 0:
|
|
990
|
-
_context9.prev = 0;
|
|
991
|
-
_context9.next = 3;
|
|
992
|
-
return _Api["default"].request({
|
|
993
|
-
method: 'post',
|
|
994
|
-
url: "/creator_views",
|
|
995
|
-
data: data
|
|
996
|
-
});
|
|
997
|
-
|
|
998
|
-
case 3:
|
|
999
|
-
return _context9.abrupt("return", _context9.sent);
|
|
1000
|
-
|
|
1001
|
-
case 6:
|
|
1002
|
-
_context9.prev = 6;
|
|
1003
|
-
_context9.t0 = _context9["catch"](0);
|
|
1004
|
-
dispatch((0, _Actions.networkError)('views', 'views', _context9.t0));
|
|
1005
|
-
throw _context9.t0;
|
|
1006
|
-
|
|
1007
|
-
case 10:
|
|
1008
|
-
case "end":
|
|
1009
|
-
return _context9.stop();
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
}, _callee9, null, [[0, 6]]);
|
|
1013
|
-
}));
|
|
1014
|
-
|
|
1015
|
-
function updateView(_x6) {
|
|
1016
|
-
return _updateView.apply(this, arguments);
|
|
1017
|
-
}
|
|
1018
|
-
|
|
1019
|
-
return updateView;
|
|
1020
|
-
}(),
|
|
1021
|
-
removeView: function removeView(id) {
|
|
1022
|
-
try {
|
|
1023
|
-
return _Api["default"].request({
|
|
1024
|
-
method: 'delete',
|
|
1025
|
-
url: "/creator_views/".concat(id)
|
|
1026
|
-
});
|
|
1027
|
-
} catch (e) {
|
|
1028
|
-
dispatch((0, _Actions.networkError)('views', 'views', e));
|
|
1029
|
-
throw e;
|
|
1030
|
-
}
|
|
1031
|
-
}
|
|
1032
|
-
};
|
|
1033
|
-
}
|
|
1034
|
-
|
|
1035
|
-
var _default = (0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)((0, _AsyncProps.withAsyncProps)( /*#__PURE__*/function () {
|
|
1036
|
-
var _ref14 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(_ref13) {
|
|
1037
|
-
var itemId, _item, item;
|
|
1038
|
-
|
|
1039
|
-
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
1040
|
-
while (1) {
|
|
1041
|
-
switch (_context10.prev = _context10.next) {
|
|
1042
|
-
case 0:
|
|
1043
|
-
itemId = _ref13.itemId, _item = _ref13.item;
|
|
1044
|
-
_context10.t0 = _item;
|
|
1045
|
-
|
|
1046
|
-
if (_context10.t0) {
|
|
1047
|
-
_context10.next = 9;
|
|
1048
|
-
break;
|
|
1049
|
-
}
|
|
1050
|
-
|
|
1051
|
-
_context10.t1 = itemId;
|
|
1052
|
-
|
|
1053
|
-
if (!_context10.t1) {
|
|
1054
|
-
_context10.next = 8;
|
|
1055
|
-
break;
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
_context10.next = 7;
|
|
1059
|
-
return (0, _ApiCalls.loadItemById)(itemId);
|
|
1060
|
-
|
|
1061
|
-
case 7:
|
|
1062
|
-
_context10.t1 = _context10.sent;
|
|
1063
|
-
|
|
1064
|
-
case 8:
|
|
1065
|
-
_context10.t0 = _context10.t1;
|
|
1066
|
-
|
|
1067
|
-
case 9:
|
|
1068
|
-
item = _context10.t0;
|
|
1069
|
-
return _context10.abrupt("return", {
|
|
1070
|
-
item: item
|
|
1071
|
-
});
|
|
1072
|
-
|
|
1073
|
-
case 11:
|
|
1074
|
-
case "end":
|
|
1075
|
-
return _context10.stop();
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
}, _callee10);
|
|
1079
|
-
}));
|
|
1080
|
-
|
|
1081
|
-
return function (_x7) {
|
|
1082
|
-
return _ref14.apply(this, arguments);
|
|
1083
|
-
};
|
|
1084
|
-
}(), ['itemIdentifier'], {
|
|
1085
|
-
renderError: function renderError() {
|
|
1086
|
-
return (0, _i18n.T)('visualizationAndMediaData.failedToLoadData');
|
|
1087
|
-
},
|
|
1088
|
-
renderLoading: function renderLoading() {
|
|
1089
|
-
return /*#__PURE__*/_react["default"].createElement(_CircularProgress["default"], null);
|
|
1090
|
-
}
|
|
1091
|
-
})((0, _RemappedProps.withRemappedProps)(function (_ref15) {
|
|
1092
|
-
var item = _ref15.item;
|
|
1093
|
-
return {
|
|
1094
|
-
enabled: ['2dVariant', '2dLayer'].indexOf((0, _get["default"])(item, 'visualizationMode.identifier')) !== -1
|
|
1095
|
-
};
|
|
1096
|
-
})(VisualizationAndMediaData)));
|
|
1097
|
-
|
|
1098
|
-
exports["default"] = _default;
|