mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
2370faea62
Mindplot webcomponent * styles in js file * editor now uses bootstrap widget manager * fix console error: preventDefault on pasive events * Mode as webcomponent parámeter. Rename of init method * fix merge * Mindplot webcomponent documentation * fix * remove comments * delete comments * Merged in Alejandro-Raiczyk/just-details-1661445571189 (pull request #56) just details Approved-by: Paulo Veiga
93 lines
3.2 KiB
TypeScript
93 lines
3.2 KiB
TypeScript
/*
|
|
* Copyright [2021] [wisemapping]
|
|
*
|
|
* Licensed under WiseMapping Public License, Version 1.0 (the "License").
|
|
* It is basically the Apache License, Version 2.0 (the "License") plus the
|
|
* "powered by wisemapping" text requirement on every single page;
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the license at
|
|
*
|
|
* http://www.wisemapping.org/license
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
import jquery from 'jquery';
|
|
import * as DesignerBuilder from './components/DesignerBuilder';
|
|
import Mindmap from './components/model/Mindmap';
|
|
import PersistenceManager from './components/PersistenceManager';
|
|
import Designer from './components/Designer';
|
|
import LocalStorageManager from './components/LocalStorageManager';
|
|
import RESTPersistenceManager from './components/RestPersistenceManager';
|
|
import MockPersistenceManager from './components/MockPersistenceManager';
|
|
import DesignerOptionsBuilder from './components/DesignerOptionsBuilder';
|
|
import ImageExporterFactory from './components/export/ImageExporterFactory';
|
|
import TextExporterFactory from './components/export/TextExporterFactory';
|
|
import TextImporterFactory from './components/import/TextImporterFactory';
|
|
import Exporter from './components/export/Exporter';
|
|
import Importer from './components/import/Importer';
|
|
import DesignerKeyboard from './components/DesignerKeyboard';
|
|
import EditorRenderMode from './components/EditorRenderMode';
|
|
|
|
import ImageIcon from './components/ImageIcon';
|
|
import MindplotWebComponent, {
|
|
MindplotWebComponentInterface,
|
|
} from './components/MindplotWebComponent';
|
|
import LinkIcon from './components/LinkIcon';
|
|
import NoteIcon from './components/NoteIcon';
|
|
import Topic from './components/Topic';
|
|
|
|
import LinkModel from './components/model/LinkModel';
|
|
import NoteModel from './components/model/NoteModel';
|
|
|
|
import WidgetManager from './components/WidgetManager';
|
|
|
|
import { buildDesigner } from './components/DesignerBuilder';
|
|
|
|
import { $notify } from './components/widget/ToolbarNotifier';
|
|
|
|
import { $msg } from './components/Messages';
|
|
|
|
import './mindplot-styles.css';
|
|
|
|
const globalAny: any = global;
|
|
globalAny.jQuery = jquery;
|
|
// WebComponent registration
|
|
// The if statement is the fix for doble registration problem. Can be deleted wen webapp-mindplot dependency be dead.
|
|
if (!customElements.get('mindplot-component')) {
|
|
customElements.define('mindplot-component', MindplotWebComponent);
|
|
}
|
|
|
|
export {
|
|
Mindmap,
|
|
Designer,
|
|
DesignerBuilder,
|
|
PersistenceManager,
|
|
RESTPersistenceManager,
|
|
MockPersistenceManager,
|
|
LocalStorageManager,
|
|
DesignerOptionsBuilder,
|
|
buildDesigner,
|
|
EditorRenderMode,
|
|
TextExporterFactory,
|
|
ImageExporterFactory,
|
|
TextImporterFactory,
|
|
Exporter,
|
|
Importer,
|
|
ImageIcon,
|
|
$notify,
|
|
$msg,
|
|
DesignerKeyboard,
|
|
MindplotWebComponent,
|
|
MindplotWebComponentInterface,
|
|
LinkIcon,
|
|
LinkModel,
|
|
NoteIcon,
|
|
NoteModel,
|
|
WidgetManager,
|
|
Topic,
|
|
};
|