From 6a57b5c8b4224589ce458be2920d50365283f91c Mon Sep 17 00:00:00 2001 From: Dmitry Kuzin <dk981234@gmail.com> Date: Mon, 24 Feb 2025 12:39:33 +0400 Subject: [PATCH] Rename SurveyCreatorThemes -> SurveyCreatorTheme --- packages/survey-creator-core/webpack.themes.config.js | 4 ++-- packages/survey-creator-js/testCafe/by-page.html | 2 +- .../survey-creator-js/testCafe/dropdown-collapse-view.html | 2 +- .../survey-creator-js/testCafe/preview-theme-switcher.html | 2 +- .../survey-creator-js/testCafe/testcafe-no-license.html | 2 +- packages/survey-creator-js/testCafe/testcafe-theme-tab.html | 2 +- packages/survey-creator-js/testCafe/testcafe-widget.html | 2 +- packages/survey-creator-js/testCafe/testcafe.html | 2 +- .../survey-creator-js/testCafe/testcafe_localized_ui.html | 2 +- .../testCafe/theme-for-preview-option.html | 2 +- packages/survey-creator-react/index.js | 4 ++-- packages/survey-creator-react/testCafe-V2/by-page.html | 4 ++-- .../testCafe-V2/dropdown-collapse-view.html | 4 ++-- .../testCafe-V2/preview-theme-switcher.html | 4 ++-- .../testCafe-V2/testcafe-no-license.html | 4 ++-- .../testCafe-V2/testcafe-theme-tab.html | 4 ++-- packages/survey-creator-react/testCafe-V2/testcafe.html | 6 +++--- .../testCafe-V2/testcafe_localized_ui.html | 4 ++-- .../testCafe-V2/theme-for-preview-option.html | 4 ++-- packages/survey-creator-react/testCafe/by-page.html | 2 +- .../testCafe/dropdown-collapse-view.html | 2 +- .../testCafe/preview-theme-switcher.html | 2 +- .../survey-creator-react/testCafe/testcafe-no-license.html | 2 +- .../survey-creator-react/testCafe/testcafe-theme-tab.html | 2 +- packages/survey-creator-react/testCafe/testcafe-widget.html | 2 +- packages/survey-creator-react/testCafe/testcafe.html | 2 +- .../testCafe/testcafe_localized_ui.html | 2 +- .../testCafe/theme-for-preview-option.html | 2 +- 28 files changed, 39 insertions(+), 39 deletions(-) diff --git a/packages/survey-creator-core/webpack.themes.config.js b/packages/survey-creator-core/webpack.themes.config.js index 29302eac28..094a95bb22 100644 --- a/packages/survey-creator-core/webpack.themes.config.js +++ b/packages/survey-creator-core/webpack.themes.config.js @@ -38,7 +38,7 @@ function patchEntries(config) { export: "default", umdNamedDefine: true, name: { - root: ["SurveyCreatorThemes", umdName], + root: ["SurveyCreatorTheme", umdName], amd: "[dashedname]", commonjs: "[dashedname]", }, @@ -48,7 +48,7 @@ function patchEntries(config) { } module.exports = function (options) { options.platform = ""; - options.libraryName = "SurveyCreatorThemes"; + options.libraryName = "SurveyCreatorTheme"; options.tsConfigFile = path.resolve(__dirname, "./tsconfig.themes.json"); const mainConfig = webpackCommonConfig(options); mainConfig.entry = {}; diff --git a/packages/survey-creator-js/testCafe/by-page.html b/packages/survey-creator-js/testCafe/by-page.html index fca7dffce1..d8e7ca8f60 100644 --- a/packages/survey-creator-js/testCafe/by-page.html +++ b/packages/survey-creator-js/testCafe/by-page.html @@ -23,7 +23,7 @@ </body> <script> window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true, pageEditMode: "bypage" }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-js/testCafe/dropdown-collapse-view.html b/packages/survey-creator-js/testCafe/dropdown-collapse-view.html index 8ca4aae55a..dd5fd5fb68 100644 --- a/packages/survey-creator-js/testCafe/dropdown-collapse-view.html +++ b/packages/survey-creator-js/testCafe/dropdown-collapse-view.html @@ -23,7 +23,7 @@ </body> <script> window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", maxVisibleChoices: 5 }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-js/testCafe/preview-theme-switcher.html b/packages/survey-creator-js/testCafe/preview-theme-switcher.html index 52a83f9be8..09271d707a 100644 --- a/packages/survey-creator-js/testCafe/preview-theme-switcher.html +++ b/packages/survey-creator-js/testCafe/preview-theme-switcher.html @@ -25,7 +25,7 @@ </body> <script> window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator(); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-js/testCafe/testcafe-no-license.html b/packages/survey-creator-js/testCafe/testcafe-no-license.html index dd90dba37e..e0071892ce 100644 --- a/packages/survey-creator-js/testCafe/testcafe-no-license.html +++ b/packages/survey-creator-js/testCafe/testcafe-no-license.html @@ -22,7 +22,7 @@ </body> <script> window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-js/testCafe/testcafe-theme-tab.html b/packages/survey-creator-js/testCafe/testcafe-theme-tab.html index d175752470..edee5c818b 100644 --- a/packages/survey-creator-js/testCafe/testcafe-theme-tab.html +++ b/packages/survey-creator-js/testCafe/testcafe-theme-tab.html @@ -23,7 +23,7 @@ </body> <script> window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showThemeTab: true }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-js/testCafe/testcafe-widget.html b/packages/survey-creator-js/testCafe/testcafe-widget.html index 27fd756414..f9068e29dd 100644 --- a/packages/survey-creator-js/testCafe/testcafe-widget.html +++ b/packages/survey-creator-js/testCafe/testcafe-widget.html @@ -58,7 +58,7 @@ <div id="survey-creator" style="position: fixed; top: 0; left: 0; right: 0; bottom: 0;"></div> </body> <script> - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-js/testCafe/testcafe.html b/packages/survey-creator-js/testCafe/testcafe.html index de8e2b0155..c30e4c5305 100644 --- a/packages/survey-creator-js/testCafe/testcafe.html +++ b/packages/survey-creator-js/testCafe/testcafe.html @@ -23,7 +23,7 @@ </body> <script> window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-js/testCafe/testcafe_localized_ui.html b/packages/survey-creator-js/testCafe/testcafe_localized_ui.html index 599786d217..ebc6b3306a 100644 --- a/packages/survey-creator-js/testCafe/testcafe_localized_ui.html +++ b/packages/survey-creator-js/testCafe/testcafe_localized_ui.html @@ -23,7 +23,7 @@ </body> <script> window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const loc = SurveyCreatorCore.localization.getLocale("de"); loc.ed.logic = "Miner Logik"; SurveyCreatorCore.localization.currentLocale = "de"; diff --git a/packages/survey-creator-js/testCafe/theme-for-preview-option.html b/packages/survey-creator-js/testCafe/theme-for-preview-option.html index 7d46cf3710..a4c77061f6 100644 --- a/packages/survey-creator-js/testCafe/theme-for-preview-option.html +++ b/packages/survey-creator-js/testCafe/theme-for-preview-option.html @@ -25,7 +25,7 @@ </body> <script> window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", themeForPreview: "modern" }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-react/index.js b/packages/survey-creator-react/index.js index 7df5287bd3..fc9f179244 100644 --- a/packages/survey-creator-react/index.js +++ b/packages/survey-creator-react/index.js @@ -189,8 +189,8 @@ SurveyReact.ReactElementFactory.Instance.registerElement("svc-page", (props) => return React.createElement(CreatorSurveyPageComponent2, props); }); */ -SurveyCreatorCore.registerSurveyTheme(SurveyThemes); -SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes); +SurveyCreatorCore.registerSurveyTheme(SurveyTheme); +SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme); const creator = new SurveyCreator.SurveyCreator(options); creator.onModified.add((sender, options) => { console.log(JSON.stringify(options, null, 3)); diff --git a/packages/survey-creator-react/testCafe-V2/by-page.html b/packages/survey-creator-react/testCafe-V2/by-page.html index f381334154..da1dfc207d 100644 --- a/packages/survey-creator-react/testCafe-V2/by-page.html +++ b/packages/survey-creator-react/testCafe-V2/by-page.html @@ -33,9 +33,9 @@ window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; SurveyCreatorCore.registerSurveyTheme(SurveyThemes); - SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes); + SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true, pageEditMode: "bypage" }); - creator.applyCreatorTheme(SurveyCreatorThemes.SC2020); + creator.applyCreatorTheme(SurveyCreatorTheme.SC2020); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; creator.showOneCategoryInPropertyGrid = false; diff --git a/packages/survey-creator-react/testCafe-V2/dropdown-collapse-view.html b/packages/survey-creator-react/testCafe-V2/dropdown-collapse-view.html index c2da3cb65c..42dec9e8d2 100644 --- a/packages/survey-creator-react/testCafe-V2/dropdown-collapse-view.html +++ b/packages/survey-creator-react/testCafe-V2/dropdown-collapse-view.html @@ -33,9 +33,9 @@ window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; SurveyCreatorCore.registerSurveyTheme(SurveyThemes); - SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes); + SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", maxVisibleChoices: 5 }); - creator.applyCreatorTheme(SurveyCreatorThemes.SC2020); + creator.applyCreatorTheme(SurveyCreatorTheme.SC2020); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; creator.showOneCategoryInPropertyGrid = false; diff --git a/packages/survey-creator-react/testCafe-V2/preview-theme-switcher.html b/packages/survey-creator-react/testCafe-V2/preview-theme-switcher.html index 0d8e7f5153..44fc5f8f5f 100644 --- a/packages/survey-creator-react/testCafe-V2/preview-theme-switcher.html +++ b/packages/survey-creator-react/testCafe-V2/preview-theme-switcher.html @@ -33,9 +33,9 @@ window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; SurveyCreatorCore.registerSurveyTheme(SurveyThemes); - SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes); + SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme); const creator = new SurveyCreator.SurveyCreator(); - creator.applyCreatorTheme(SurveyCreatorThemes.SC2020); + creator.applyCreatorTheme(SurveyCreatorTheme.SC2020); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; creator.showOneCategoryInPropertyGrid = false; diff --git a/packages/survey-creator-react/testCafe-V2/testcafe-no-license.html b/packages/survey-creator-react/testCafe-V2/testcafe-no-license.html index dc8fcf1627..679d3f83d4 100644 --- a/packages/survey-creator-react/testCafe-V2/testcafe-no-license.html +++ b/packages/survey-creator-react/testCafe-V2/testcafe-no-license.html @@ -32,9 +32,9 @@ window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; SurveyCreatorCore.registerSurveyTheme(SurveyThemes); - SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes); + SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true }); - creator.applyCreatorTheme(SurveyCreatorThemes.SC2020); + creator.applyCreatorTheme(SurveyCreatorTheme.SC2020); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; creator.showOneCategoryInPropertyGrid = false; diff --git a/packages/survey-creator-react/testCafe-V2/testcafe-theme-tab.html b/packages/survey-creator-react/testCafe-V2/testcafe-theme-tab.html index 238e70d353..f691e3fbb4 100644 --- a/packages/survey-creator-react/testCafe-V2/testcafe-theme-tab.html +++ b/packages/survey-creator-react/testCafe-V2/testcafe-theme-tab.html @@ -33,9 +33,9 @@ window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; SurveyCreatorCore.registerSurveyTheme(SurveyThemes); - SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes); + SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showThemeTab: true }); - creator.applyCreatorTheme(SurveyCreatorThemes.SC2020); + creator.applyCreatorTheme(SurveyCreatorTheme.SC2020); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; creator.showOneCategoryInPropertyGrid = false; diff --git a/packages/survey-creator-react/testCafe-V2/testcafe.html b/packages/survey-creator-react/testCafe-V2/testcafe.html index 1489dc070b..70de488238 100644 --- a/packages/survey-creator-react/testCafe-V2/testcafe.html +++ b/packages/survey-creator-react/testCafe-V2/testcafe.html @@ -33,9 +33,9 @@ window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; SurveyCreatorCore.registerSurveyTheme(SurveyThemes); - SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes); + SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true }); - creator.applyCreatorTheme(SurveyCreatorThemes.SC2020); + creator.applyCreatorTheme(SurveyCreatorTheme.SC2020); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; creator.showOneCategoryInPropertyGrid = false; @@ -49,7 +49,7 @@ window.updateCreatorModel = (options, json) => { window.prevCreator = window.creator; const creator = new SurveyCreator.SurveyCreator(options); - creator.applyCreatorTheme(SurveyCreatorThemes.SC2020); + creator.applyCreatorTheme(SurveyCreatorTheme.SC2020); creator.JSON = json; this.setState({ creator }); creator.tabResponsivenessMode = "menu"; diff --git a/packages/survey-creator-react/testCafe-V2/testcafe_localized_ui.html b/packages/survey-creator-react/testCafe-V2/testcafe_localized_ui.html index e4b51fe1d0..7a5b361862 100644 --- a/packages/survey-creator-react/testCafe-V2/testcafe_localized_ui.html +++ b/packages/survey-creator-react/testCafe-V2/testcafe_localized_ui.html @@ -33,12 +33,12 @@ window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; SurveyCreatorCore.registerSurveyTheme(SurveyThemes); - SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes); + SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme); const loc = SurveyCreatorCore.localization.getLocale("de"); loc.ed.logic = "Miner Logik"; SurveyCreatorCore.localization.currentLocale = "de"; const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true }); - creator.applyCreatorTheme(SurveyCreatorThemes.SC2020); + creator.applyCreatorTheme(SurveyCreatorTheme.SC2020); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; creator.showOneCategoryInPropertyGrid = false; diff --git a/packages/survey-creator-react/testCafe-V2/theme-for-preview-option.html b/packages/survey-creator-react/testCafe-V2/theme-for-preview-option.html index 56260736d0..4a4025e405 100644 --- a/packages/survey-creator-react/testCafe-V2/theme-for-preview-option.html +++ b/packages/survey-creator-react/testCafe-V2/theme-for-preview-option.html @@ -33,9 +33,9 @@ window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; SurveyCreatorCore.registerSurveyTheme(SurveyThemes); - SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes); + SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", themeForPreview: "modern" }); - creator.applyCreatorTheme(SurveyCreatorThemes.SC2020); + creator.applyCreatorTheme(SurveyCreatorTheme.SC2020); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; creator.showOneCategoryInPropertyGrid = false; diff --git a/packages/survey-creator-react/testCafe/by-page.html b/packages/survey-creator-react/testCafe/by-page.html index 67ecfa70ea..2d38e3d8db 100644 --- a/packages/survey-creator-react/testCafe/by-page.html +++ b/packages/survey-creator-react/testCafe/by-page.html @@ -31,7 +31,7 @@ <script> window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true, pageEditMode: "bypage" }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-react/testCafe/dropdown-collapse-view.html b/packages/survey-creator-react/testCafe/dropdown-collapse-view.html index 12ba996418..73f39b870a 100644 --- a/packages/survey-creator-react/testCafe/dropdown-collapse-view.html +++ b/packages/survey-creator-react/testCafe/dropdown-collapse-view.html @@ -31,7 +31,7 @@ <script> window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", maxVisibleChoices: 5 }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-react/testCafe/preview-theme-switcher.html b/packages/survey-creator-react/testCafe/preview-theme-switcher.html index 892ba63753..757f34eb69 100644 --- a/packages/survey-creator-react/testCafe/preview-theme-switcher.html +++ b/packages/survey-creator-react/testCafe/preview-theme-switcher.html @@ -31,7 +31,7 @@ <script> window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator(); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-react/testCafe/testcafe-no-license.html b/packages/survey-creator-react/testCafe/testcafe-no-license.html index f7efc9d4c6..e5b96e5a33 100644 --- a/packages/survey-creator-react/testCafe/testcafe-no-license.html +++ b/packages/survey-creator-react/testCafe/testcafe-no-license.html @@ -30,7 +30,7 @@ <script> window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-react/testCafe/testcafe-theme-tab.html b/packages/survey-creator-react/testCafe/testcafe-theme-tab.html index a71446b5ac..645657cd17 100644 --- a/packages/survey-creator-react/testCafe/testcafe-theme-tab.html +++ b/packages/survey-creator-react/testCafe/testcafe-theme-tab.html @@ -31,7 +31,7 @@ <script> window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showThemeTab: true }); window.creator = creator; creator.showOneCategoryInPropertyGrid = false; diff --git a/packages/survey-creator-react/testCafe/testcafe-widget.html b/packages/survey-creator-react/testCafe/testcafe-widget.html index 31dc927080..59305eae79 100644 --- a/packages/survey-creator-react/testCafe/testcafe-widget.html +++ b/packages/survey-creator-react/testCafe/testcafe-widget.html @@ -71,7 +71,7 @@ </body> <script> window.addEventListener("DOMContentLoaded", () => { - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false; diff --git a/packages/survey-creator-react/testCafe/testcafe.html b/packages/survey-creator-react/testCafe/testcafe.html index 7317522ead..cd98dfb10b 100644 --- a/packages/survey-creator-react/testCafe/testcafe.html +++ b/packages/survey-creator-react/testCafe/testcafe.html @@ -31,7 +31,7 @@ <script> window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true }); window.creator = creator; creator.tabResponsivenessMode = "menu"; diff --git a/packages/survey-creator-react/testCafe/testcafe_localized_ui.html b/packages/survey-creator-react/testCafe/testcafe_localized_ui.html index 529955404b..682a8f39b1 100644 --- a/packages/survey-creator-react/testCafe/testcafe_localized_ui.html +++ b/packages/survey-creator-react/testCafe/testcafe_localized_ui.html @@ -31,7 +31,7 @@ <script> window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const loc = SurveyCreatorCore.localization.getLocale("de"); loc.ed.logic = "Miner Logik"; SurveyCreatorCore.localization.currentLocale = "de"; diff --git a/packages/survey-creator-react/testCafe/theme-for-preview-option.html b/packages/survey-creator-react/testCafe/theme-for-preview-option.html index 96e7474b96..88256d0524 100644 --- a/packages/survey-creator-react/testCafe/theme-for-preview-option.html +++ b/packages/survey-creator-react/testCafe/theme-for-preview-option.html @@ -31,7 +31,7 @@ <script> window.addEventListener("DOMContentLoaded", () => { window.surveyJSFramework = "react"; - SurveyCreatorCore.registerSurveyTheme(SurveyThemes); + SurveyCreatorCore.registerSurveyTheme(SurveyTheme); const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", themeForPreview: "modern" }); creator.tabResponsivenessMode = "menu"; creator["animationEnabled"] = false;