Skip to content

Commit

Permalink
resolve #6511 remove StyleManager class
Browse files Browse the repository at this point in the history
  • Loading branch information
OlgaLarina committed Feb 13, 2025
1 parent 2e8698e commit ef3f815
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 169 deletions.
13 changes: 0 additions & 13 deletions packages/survey-creator-core/src/creator-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4396,19 +4396,6 @@ export class SurveyCreatorModel extends Base

export class CreatorBase extends SurveyCreatorModel { }

export class StylesManager {
public static get currentTheme(): string {
SurveyHelper.warnNonSupported("StylesManager");
return undefined;
}
public static set currentTheme(val: string) {
SurveyHelper.warnNonSupported("StylesManager");
}
public static applyTheme(name?: string) {
SurveyHelper.warnNonSupported("StylesManager");
}
}

export function initializeDesignTimeSurveyModel(model: any, creator: SurveyCreatorModel) {
model.creator = creator;
model.isPopupEditorContent = false;
Expand Down
154 changes: 0 additions & 154 deletions packages/survey-creator-core/src/stylesmanager.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/survey-creator-core/tests/tabs/test.tests.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CreatorTester } from "../creator-tester";
import { TestSurveyTabViewModel } from "../../src/components/tabs/test";
import { SurveyResultsItemModel, SurveyResultsModel } from "../../src/components/results";
import { IAction, ListModel, Question, QuestionDropdownModel, SurveyModel, StylesManager, _setIsTouch, Action } from "survey-core";
import { IAction, ListModel, Question, QuestionDropdownModel, SurveyModel, _setIsTouch, Action } from "survey-core";
import { TabTestPlugin } from "../../src/components/tabs/test-plugin";
import { SurveySimulatorModel, simulatorDevices } from "../../src/components/simulator";
import { editorLocalization, getLocString } from "../../src/editorLocalization";
Expand Down
1 change: 0 additions & 1 deletion packages/survey-creator-react/src/entries/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export { SurveyLogic, SurveyLogicUI } from "survey-creator-core";
export { SurveyQuestionEditorDefinition } from "survey-creator-core";
export { ISurveyCreatorOptions, IPropertyGridEditor } from "survey-creator-core";
export { ToolboxToolViewModel, PropertyGridEditorCollection } from "survey-creator-core";
export { StylesManager } from "survey-creator-core";

import { checkLibraryVersion } from "survey-core";
checkLibraryVersion(`${process.env.VERSION}`, "survey-creator-react");

0 comments on commit ef3f815

Please sign in to comment.