import { UMB_CONTENT_TYPE_DESIGN_EDITOR_CONTEXT } from './content-type-design-editor.context-token.js';
import { UmbContextBase } from '../../../../../../libs/class-api/index.js';
import { UmbBooleanState } from '../../../../../../libs/observable-api/index.js';
export class UmbContentTypeDesignEditorContext extends UmbContextBase {
    #isSorting;
    constructor(host) {
        super(host, UMB_CONTENT_TYPE_DESIGN_EDITOR_CONTEXT);
        this.#isSorting = new UmbBooleanState(false);
        this.isSorting = this.#isSorting.asObservable();
    }
    getIsSorting() {
        return this.#isSorting.getValue();
    }
    setIsSorting(isSorting) {
        this.#isSorting.setValue(isSorting);
    }
    destroy() {
        this.#isSorting.destroy();
        super.destroy();
    }
}
export { UmbContentTypeDesignEditorContext as api };
