Skip to content

Commit c88dd77

Browse files
authored
Rename SurveyCreatorThemes -> SurveyCreatorTheme (#6632)
1 parent 7b6f8db commit c88dd77

28 files changed

+39
-39
lines changed

packages/survey-creator-core/webpack.themes.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function patchEntries(config) {
3838
export: "default",
3939
umdNamedDefine: true,
4040
name: {
41-
root: ["SurveyCreatorThemes", umdName],
41+
root: ["SurveyCreatorTheme", umdName],
4242
amd: "[dashedname]",
4343
commonjs: "[dashedname]",
4444
},
@@ -48,7 +48,7 @@ function patchEntries(config) {
4848
}
4949
module.exports = function (options) {
5050
options.platform = "";
51-
options.libraryName = "SurveyCreatorThemes";
51+
options.libraryName = "SurveyCreatorTheme";
5252
options.tsConfigFile = path.resolve(__dirname, "./tsconfig.themes.json");
5353
const mainConfig = webpackCommonConfig(options);
5454
mainConfig.entry = {};

packages/survey-creator-js/testCafe/by-page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</body>
2424
<script>
2525
window.surveyJSFramework = "react";
26-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
26+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
2727
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true, pageEditMode: "bypage" });
2828
creator.tabResponsivenessMode = "menu";
2929
creator["animationEnabled"] = false;

packages/survey-creator-js/testCafe/dropdown-collapse-view.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</body>
2424
<script>
2525
window.surveyJSFramework = "react";
26-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
26+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
2727
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", maxVisibleChoices: 5 });
2828
creator.tabResponsivenessMode = "menu";
2929
creator["animationEnabled"] = false;

packages/survey-creator-js/testCafe/preview-theme-switcher.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</body>
2626
<script>
2727
window.surveyJSFramework = "react";
28-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
28+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
2929
const creator = new SurveyCreator.SurveyCreator();
3030
creator.tabResponsivenessMode = "menu";
3131
creator["animationEnabled"] = false;

packages/survey-creator-js/testCafe/testcafe-no-license.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</body>
2323
<script>
2424
window.surveyJSFramework = "react";
25-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
25+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
2626
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true });
2727
creator.tabResponsivenessMode = "menu";
2828
creator["animationEnabled"] = false;

packages/survey-creator-js/testCafe/testcafe-theme-tab.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</body>
2424
<script>
2525
window.surveyJSFramework = "react";
26-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
26+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
2727
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showThemeTab: true });
2828
creator.tabResponsivenessMode = "menu";
2929
creator["animationEnabled"] = false;

packages/survey-creator-js/testCafe/testcafe-widget.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
<div id="survey-creator" style="position: fixed; top: 0; left: 0; right: 0; bottom: 0;"></div>
5959
</body>
6060
<script>
61-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
61+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
6262
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true });
6363
creator.tabResponsivenessMode = "menu";
6464
creator["animationEnabled"] = false;

packages/survey-creator-js/testCafe/testcafe.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</body>
2424
<script>
2525
window.surveyJSFramework = "react";
26-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
26+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
2727
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true });
2828
creator.tabResponsivenessMode = "menu";
2929
creator["animationEnabled"] = false;

packages/survey-creator-js/testCafe/testcafe_localized_ui.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</body>
2424
<script>
2525
window.surveyJSFramework = "react";
26-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
26+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
2727
const loc = SurveyCreatorCore.localization.getLocale("de");
2828
loc.ed.logic = "Miner Logik";
2929
SurveyCreatorCore.localization.currentLocale = "de";

packages/survey-creator-js/testCafe/theme-for-preview-option.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</body>
2626
<script>
2727
window.surveyJSFramework = "react";
28-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
28+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
2929
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", themeForPreview: "modern" });
3030
creator.tabResponsivenessMode = "menu";
3131
creator["animationEnabled"] = false;

packages/survey-creator-react/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ SurveyReact.ReactElementFactory.Instance.registerElement("svc-page", (props) =>
189189
return React.createElement(CreatorSurveyPageComponent2, props);
190190
});
191191
*/
192-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
193-
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes);
192+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
193+
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme);
194194
const creator = new SurveyCreator.SurveyCreator(options);
195195
creator.onModified.add((sender, options) => {
196196
console.log(JSON.stringify(options, null, 3));

packages/survey-creator-react/testCafe-V2/by-page.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
window.addEventListener("DOMContentLoaded", () => {
3434
window.surveyJSFramework = "react";
3535
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
36-
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes);
36+
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme);
3737
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true, pageEditMode: "bypage" });
38-
creator.applyCreatorTheme(SurveyCreatorThemes.SC2020);
38+
creator.applyCreatorTheme(SurveyCreatorTheme.SC2020);
3939
creator.tabResponsivenessMode = "menu";
4040
creator["animationEnabled"] = false;
4141
creator.showOneCategoryInPropertyGrid = false;

packages/survey-creator-react/testCafe-V2/dropdown-collapse-view.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
window.addEventListener("DOMContentLoaded", () => {
3434
window.surveyJSFramework = "react";
3535
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
36-
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes);
36+
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme);
3737
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", maxVisibleChoices: 5 });
38-
creator.applyCreatorTheme(SurveyCreatorThemes.SC2020);
38+
creator.applyCreatorTheme(SurveyCreatorTheme.SC2020);
3939
creator.tabResponsivenessMode = "menu";
4040
creator["animationEnabled"] = false;
4141
creator.showOneCategoryInPropertyGrid = false;

packages/survey-creator-react/testCafe-V2/preview-theme-switcher.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
window.addEventListener("DOMContentLoaded", () => {
3434
window.surveyJSFramework = "react";
3535
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
36-
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes);
36+
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme);
3737
const creator = new SurveyCreator.SurveyCreator();
38-
creator.applyCreatorTheme(SurveyCreatorThemes.SC2020);
38+
creator.applyCreatorTheme(SurveyCreatorTheme.SC2020);
3939
creator.tabResponsivenessMode = "menu";
4040
creator["animationEnabled"] = false;
4141
creator.showOneCategoryInPropertyGrid = false;

packages/survey-creator-react/testCafe-V2/testcafe-no-license.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
window.addEventListener("DOMContentLoaded", () => {
3333
window.surveyJSFramework = "react";
3434
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
35-
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes);
35+
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme);
3636
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true });
37-
creator.applyCreatorTheme(SurveyCreatorThemes.SC2020);
37+
creator.applyCreatorTheme(SurveyCreatorTheme.SC2020);
3838
creator.tabResponsivenessMode = "menu";
3939
creator["animationEnabled"] = false;
4040
creator.showOneCategoryInPropertyGrid = false;

packages/survey-creator-react/testCafe-V2/testcafe-theme-tab.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
window.addEventListener("DOMContentLoaded", () => {
3434
window.surveyJSFramework = "react";
3535
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
36-
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes);
36+
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme);
3737
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showThemeTab: true });
38-
creator.applyCreatorTheme(SurveyCreatorThemes.SC2020);
38+
creator.applyCreatorTheme(SurveyCreatorTheme.SC2020);
3939
creator.tabResponsivenessMode = "menu";
4040
creator["animationEnabled"] = false;
4141
creator.showOneCategoryInPropertyGrid = false;

packages/survey-creator-react/testCafe-V2/testcafe.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
window.addEventListener("DOMContentLoaded", () => {
3434
window.surveyJSFramework = "react";
3535
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
36-
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes);
36+
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme);
3737
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true });
38-
creator.applyCreatorTheme(SurveyCreatorThemes.SC2020);
38+
creator.applyCreatorTheme(SurveyCreatorTheme.SC2020);
3939
creator.tabResponsivenessMode = "menu";
4040
creator["animationEnabled"] = false;
4141
creator.showOneCategoryInPropertyGrid = false;
@@ -49,7 +49,7 @@
4949
window.updateCreatorModel = (options, json) => {
5050
window.prevCreator = window.creator;
5151
const creator = new SurveyCreator.SurveyCreator(options);
52-
creator.applyCreatorTheme(SurveyCreatorThemes.SC2020);
52+
creator.applyCreatorTheme(SurveyCreatorTheme.SC2020);
5353
creator.JSON = json;
5454
this.setState({ creator });
5555
creator.tabResponsivenessMode = "menu";

packages/survey-creator-react/testCafe-V2/testcafe_localized_ui.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@
3333
window.addEventListener("DOMContentLoaded", () => {
3434
window.surveyJSFramework = "react";
3535
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
36-
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes);
36+
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme);
3737
const loc = SurveyCreatorCore.localization.getLocale("de");
3838
loc.ed.logic = "Miner Logik";
3939
SurveyCreatorCore.localization.currentLocale = "de";
4040
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true });
41-
creator.applyCreatorTheme(SurveyCreatorThemes.SC2020);
41+
creator.applyCreatorTheme(SurveyCreatorTheme.SC2020);
4242
creator.tabResponsivenessMode = "menu";
4343
creator["animationEnabled"] = false;
4444
creator.showOneCategoryInPropertyGrid = false;

packages/survey-creator-react/testCafe-V2/theme-for-preview-option.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@
3333
window.addEventListener("DOMContentLoaded", () => {
3434
window.surveyJSFramework = "react";
3535
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
36-
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorThemes);
36+
SurveyCreatorCore.registerCreatorTheme(SurveyCreatorTheme);
3737
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", themeForPreview: "modern" });
38-
creator.applyCreatorTheme(SurveyCreatorThemes.SC2020);
38+
creator.applyCreatorTheme(SurveyCreatorTheme.SC2020);
3939
creator.tabResponsivenessMode = "menu";
4040
creator["animationEnabled"] = false;
4141
creator.showOneCategoryInPropertyGrid = false;

packages/survey-creator-react/testCafe/by-page.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<script>
3232
window.addEventListener("DOMContentLoaded", () => {
3333
window.surveyJSFramework = "react";
34-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
34+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
3535
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true, pageEditMode: "bypage" });
3636
creator.tabResponsivenessMode = "menu";
3737
creator["animationEnabled"] = false;

packages/survey-creator-react/testCafe/dropdown-collapse-view.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<script>
3232
window.addEventListener("DOMContentLoaded", () => {
3333
window.surveyJSFramework = "react";
34-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
34+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
3535
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", maxVisibleChoices: 5 });
3636
creator.tabResponsivenessMode = "menu";
3737
creator["animationEnabled"] = false;

packages/survey-creator-react/testCafe/preview-theme-switcher.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<script>
3232
window.addEventListener("DOMContentLoaded", () => {
3333
window.surveyJSFramework = "react";
34-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
34+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
3535
const creator = new SurveyCreator.SurveyCreator();
3636
creator.tabResponsivenessMode = "menu";
3737
creator["animationEnabled"] = false;

packages/survey-creator-react/testCafe/testcafe-no-license.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<script>
3131
window.addEventListener("DOMContentLoaded", () => {
3232
window.surveyJSFramework = "react";
33-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
33+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
3434
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true });
3535
creator.tabResponsivenessMode = "menu";
3636
creator["animationEnabled"] = false;

packages/survey-creator-react/testCafe/testcafe-theme-tab.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<script>
3232
window.addEventListener("DOMContentLoaded", () => {
3333
window.surveyJSFramework = "react";
34-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
34+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
3535
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showThemeTab: true });
3636
window.creator = creator;
3737
creator.showOneCategoryInPropertyGrid = false;

packages/survey-creator-react/testCafe/testcafe-widget.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
</body>
7272
<script>
7373
window.addEventListener("DOMContentLoaded", () => {
74-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
74+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
7575
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true });
7676
creator.tabResponsivenessMode = "menu";
7777
creator["animationEnabled"] = false;

packages/survey-creator-react/testCafe/testcafe.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<script>
3232
window.addEventListener("DOMContentLoaded", () => {
3333
window.surveyJSFramework = "react";
34-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
34+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
3535
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", showLogicTab: true, showTranslationTab: true });
3636
window.creator = creator;
3737
creator.tabResponsivenessMode = "menu";

packages/survey-creator-react/testCafe/testcafe_localized_ui.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<script>
3232
window.addEventListener("DOMContentLoaded", () => {
3333
window.surveyJSFramework = "react";
34-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
34+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
3535
const loc = SurveyCreatorCore.localization.getLocale("de");
3636
loc.ed.logic = "Miner Logik";
3737
SurveyCreatorCore.localization.currentLocale = "de";

packages/survey-creator-react/testCafe/theme-for-preview-option.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<script>
3232
window.addEventListener("DOMContentLoaded", () => {
3333
window.surveyJSFramework = "react";
34-
SurveyCreatorCore.registerSurveyTheme(SurveyThemes);
34+
SurveyCreatorCore.registerSurveyTheme(SurveyTheme);
3535
const creator = new SurveyCreator.SurveyCreator({ expandCollapseButtonVisibility: "never", themeForPreview: "modern" });
3636
creator.tabResponsivenessMode = "menu";
3737
creator["animationEnabled"] = false;

0 commit comments

Comments
 (0)