@jbrowse/core 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BaseFeatureWidget/BaseFeatureDetail.d.ts +6 -0
- package/BaseFeatureWidget/BaseFeatureDetail.js +313 -592
- package/BaseFeatureWidget/SequenceFeatureDetails.js +213 -479
- package/BaseFeatureWidget/index.js +88 -126
- package/BaseFeatureWidget/types.js +1 -4
- package/BaseFeatureWidget/util.js +40 -75
- package/CorePlugin.js +55 -94
- package/Plugin.js +9 -34
- package/PluginLoader.js +153 -422
- package/PluginManager.d.ts +17 -14
- package/PluginManager.js +377 -666
- package/ReExports/Attributes.js +3 -10
- package/ReExports/BaseCard.js +3 -10
- package/ReExports/DataGrid.js +5 -12
- package/ReExports/FeatureDetails.js +3 -10
- package/ReExports/index.js +6 -12
- package/ReExports/list.d.ts +5 -0
- package/ReExports/list.js +271 -7
- package/ReExports/material-ui-colors.js +15 -16
- package/ReExports/modules.d.ts +0 -1
- package/ReExports/modules.js +453 -798
- package/TextSearch/BaseResults.js +51 -123
- package/TextSearch/TextSearchManager.js +66 -144
- package/assemblyManager/assembly.js +280 -555
- package/assemblyManager/assemblyConfigSchema.js +47 -64
- package/assemblyManager/assemblyManager.js +126 -272
- package/assemblyManager/index.js +9 -22
- package/configuration/configurationSchema.js +167 -203
- package/configuration/configurationSlot.js +248 -326
- package/configuration/index.js +19 -35
- package/configuration/util.js +131 -173
- package/data_adapters/BaseAdapter.d.ts +2 -2
- package/data_adapters/BaseAdapter.js +132 -521
- package/data_adapters/CytobandAdapter.js +40 -126
- package/data_adapters/dataAdapterCache.js +77 -158
- package/package.json +4 -5
- package/pluggableElementTypes/AdapterType.js +24 -79
- package/pluggableElementTypes/AddTrackWorkflowType.d.ts +17 -0
- package/pluggableElementTypes/AddTrackWorkflowType.js +20 -0
- package/pluggableElementTypes/ConnectionType.js +22 -65
- package/pluggableElementTypes/DisplayType.js +35 -82
- package/pluggableElementTypes/InternetAccountType.js +23 -64
- package/pluggableElementTypes/PluggableElementBase.js +8 -20
- package/pluggableElementTypes/RpcMethodType.js +85 -427
- package/pluggableElementTypes/TextSearchAdapterType.js +16 -55
- package/pluggableElementTypes/TrackType.js +26 -70
- package/pluggableElementTypes/ViewType.js +21 -63
- package/pluggableElementTypes/WidgetType.js +21 -64
- package/pluggableElementTypes/index.d.ts +4 -3
- package/pluggableElementTypes/index.js +42 -125
- package/pluggableElementTypes/models/BaseConnectionModelFactory.js +28 -43
- package/pluggableElementTypes/models/BaseDisplayModel.js +58 -95
- package/pluggableElementTypes/models/BaseTrackModel.js +139 -199
- package/pluggableElementTypes/models/BaseViewModel.js +24 -40
- package/pluggableElementTypes/models/InternetAccountModel.js +116 -263
- package/pluggableElementTypes/models/baseConnectionConfig.js +14 -25
- package/pluggableElementTypes/models/baseInternetAccountConfig.js +29 -38
- package/pluggableElementTypes/models/baseTrackConfig.js +106 -133
- package/pluggableElementTypes/models/index.js +21 -70
- package/pluggableElementTypes/renderers/BoxRendererType.js +132 -291
- package/pluggableElementTypes/renderers/CircularChordRendererType.js +8 -38
- package/pluggableElementTypes/renderers/ComparativeServerSideRendererType.js +60 -192
- package/pluggableElementTypes/renderers/FeatureRendererType.d.ts +0 -2
- package/pluggableElementTypes/renderers/FeatureRendererType.js +89 -264
- package/pluggableElementTypes/renderers/RendererType.js +31 -105
- package/pluggableElementTypes/renderers/ServerSideRenderedContent.js +61 -72
- package/pluggableElementTypes/renderers/ServerSideRendererType.js +112 -265
- package/pluggableElementTypes/renderers/index.js +19 -62
- package/pluggableElementTypes/renderers/util/serializableFilterChain.js +27 -65
- package/rpc/BaseRpcDriver.js +169 -405
- package/rpc/MainThreadRpcDriver.js +27 -150
- package/rpc/RpcManager.js +58 -159
- package/rpc/WebWorkerRpcDriver.js +54 -171
- package/rpc/configSchema.js +25 -49
- package/rpc/coreRpcMethods.js +221 -959
- package/rpc/remoteAbortSignals.js +46 -70
- package/tsconfig.build.tsbuildinfo +1 -1
- package/ui/AboutDialog.js +106 -162
- package/ui/App.js +157 -242
- package/ui/AssemblySelector.js +59 -120
- package/ui/CascadingMenu.js +101 -196
- package/ui/ColorPicker.d.ts +16 -0
- package/ui/ColorPicker.js +97 -0
- package/ui/Drawer.js +28 -61
- package/ui/DrawerWidget.js +108 -202
- package/ui/DropDownMenu.js +60 -91
- package/ui/EditableTypography.js +87 -149
- package/ui/ErrorMessage.js +41 -56
- package/ui/FactoryResetDialog.js +24 -57
- package/ui/FatalErrorDialog.js +59 -91
- package/ui/FileSelector/FileSelector.js +123 -189
- package/ui/FileSelector/LocalFileChooser.js +44 -75
- package/ui/FileSelector/UrlChooser.js +17 -38
- package/ui/FileSelector/index.js +6 -12
- package/ui/Icons.js +45 -69
- package/ui/Logo.js +57 -110
- package/ui/Menu.js +232 -354
- package/ui/PrerenderedCanvas.js +63 -87
- package/ui/ResizeHandle.js +87 -116
- package/ui/ReturnToImportFormDialog.js +32 -63
- package/ui/SanitizedHTML.js +64 -47
- package/ui/Snackbar.js +74 -101
- package/ui/SnackbarModel.js +37 -51
- package/ui/Tooltip.js +49 -76
- package/ui/ViewContainer.js +113 -196
- package/ui/colors.d.ts +10 -0
- package/ui/colors.js +78 -0
- package/ui/index.js +51 -181
- package/ui/react-colorful.d.ts +17 -0
- package/ui/react-colorful.js +455 -0
- package/ui/theme.js +199 -247
- package/util/Base1DUtils.js +163 -202
- package/util/Base1DViewModel.js +121 -168
- package/util/QuickLRU.js +84 -332
- package/util/TimeTraveller.d.ts +19 -0
- package/util/TimeTraveller.js +86 -0
- package/util/aborting.js +49 -127
- package/util/analytics.js +91 -154
- package/util/blockTypes.js +106 -240
- package/util/calculateDynamicBlocks.js +98 -128
- package/util/calculateStaticBlocks.js +105 -125
- package/util/color/cssColorsLevel4.js +156 -160
- package/util/color/index.js +33 -55
- package/util/compositeMap.js +49 -333
- package/util/formatFastaStrings.js +9 -14
- package/util/idMaker.js +18 -31
- package/util/index.d.ts +7 -20
- package/util/index.js +742 -1188
- package/util/io/RemoteFileWithRangeCache.js +88 -257
- package/util/io/index.js +95 -169
- package/util/jexl.js +60 -115
- package/util/jexlStrings.js +24 -29
- package/util/layouts/BaseLayout.js +1 -4
- package/util/layouts/GranularRectLayout.js +388 -555
- package/util/layouts/MultiLayout.js +41 -109
- package/util/layouts/PrecomputedLayout.js +56 -112
- package/util/layouts/PrecomputedMultiLayout.js +22 -59
- package/util/layouts/SceneGraph.js +127 -197
- package/util/layouts/index.js +29 -66
- package/util/mst-reflection.js +55 -71
- package/util/offscreenCanvasPonyfill.js +66 -134
- package/util/offscreenCanvasUtils.d.ts +2 -7
- package/util/offscreenCanvasUtils.js +49 -146
- package/util/range.js +29 -40
- package/util/rxjs.js +20 -27
- package/util/simpleFeature.js +88 -152
- package/util/stats.js +91 -151
- package/util/tracks.js +130 -173
- package/util/types/index.js +110 -179
- package/util/types/mst.js +91 -146
- package/util/types/util.js +1 -4
- package/util/when.js +54 -101
- package/BaseFeatureWidget/SequenceFeatureDetails.test.js +0 -122
- package/BaseFeatureWidget/index.test.js +0 -69
- package/TextSearch/BaseResults.test.js +0 -42
- package/configuration/configurationSchema.test.js +0 -266
- package/configuration/configurationSlot.test.js +0 -69
- package/configuration/util.test.js +0 -39
- package/data_adapters/BaseAdapter.test.js +0 -200
- package/declare.d.js +0 -1
- package/pluggableElementTypes/RpcMethodType.test.js +0 -118
- package/pluggableElementTypes/renderers/declare.d.js +0 -1
- package/pluggableElementTypes/renderers/util/serializableFilterChain.test.js +0 -20
- package/rpc/BaseRpcDriver.test.js +0 -540
- package/rpc/declaration.d.js +0 -1
- package/ui/FatalErrorDialog.test.js +0 -82
- package/ui/SanitizedHTML.test.js +0 -36
- package/ui/theme.test.js +0 -92
- package/util/Base1DViewModel.test.js +0 -130
- package/util/calculateDynamicBlocks.test.js +0 -74
- package/util/calculateStaticBlocks.test.js +0 -297
- package/util/declare.d.js +0 -1
- package/util/formatFastaStrings.test.js +0 -40
- package/util/index.test.js +0 -213
- package/util/jexlStrings.test.js +0 -48
- package/util/layouts/GranularRectLayout.test.js +0 -99
- package/util/range.test.js +0 -64
- package/util/simpleFeature.test.js +0 -34
- package/util/stats.test.js +0 -172
|
@@ -1,67 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
23
|
-
|
|
24
|
-
var _PluggableElementBase2 = _interopRequireDefault(require("./PluggableElementBase"));
|
|
25
|
-
|
|
26
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
27
|
-
|
|
28
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
29
|
-
|
|
30
|
-
var ConnectionType = /*#__PURE__*/function (_PluggableElementBase) {
|
|
31
|
-
(0, _inherits2.default)(ConnectionType, _PluggableElementBase);
|
|
32
|
-
|
|
33
|
-
var _super = _createSuper(ConnectionType);
|
|
34
|
-
|
|
35
|
-
function ConnectionType(stuff) {
|
|
36
|
-
var _this;
|
|
37
|
-
|
|
38
|
-
(0, _classCallCheck2.default)(this, ConnectionType);
|
|
39
|
-
_this = _super.call(this, stuff);
|
|
40
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "stateModel", void 0);
|
|
41
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "configSchema", void 0);
|
|
42
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "displayName", void 0);
|
|
43
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "description", void 0);
|
|
44
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "url", void 0);
|
|
45
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "configEditorComponent", void 0);
|
|
46
|
-
_this.stateModel = stuff.stateModel;
|
|
47
|
-
_this.configSchema = stuff.configSchema;
|
|
48
|
-
_this.displayName = stuff.displayName;
|
|
49
|
-
_this.description = stuff.description;
|
|
50
|
-
_this.url = stuff.url;
|
|
51
|
-
_this.configEditorComponent = stuff.configEditorComponent;
|
|
52
|
-
|
|
53
|
-
if (!_this.stateModel) {
|
|
54
|
-
throw new Error("no stateModel defined for connection ".concat(_this.name));
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const PluggableElementBase_1 = __importDefault(require("./PluggableElementBase"));
|
|
7
|
+
class ConnectionType extends PluggableElementBase_1.default {
|
|
8
|
+
constructor(stuff) {
|
|
9
|
+
super(stuff);
|
|
10
|
+
this.stateModel = stuff.stateModel;
|
|
11
|
+
this.configSchema = stuff.configSchema;
|
|
12
|
+
this.displayName = stuff.displayName;
|
|
13
|
+
this.description = stuff.description;
|
|
14
|
+
this.url = stuff.url;
|
|
15
|
+
this.configEditorComponent = stuff.configEditorComponent;
|
|
16
|
+
if (!this.stateModel) {
|
|
17
|
+
throw new Error(`no stateModel defined for connection ${this.name}`);
|
|
18
|
+
}
|
|
19
|
+
if (!this.configSchema) {
|
|
20
|
+
throw new Error(`no configSchema defined for connection ${this.name}`);
|
|
21
|
+
}
|
|
55
22
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
throw new Error("no configSchema defined for connection ".concat(_this.name));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return _this;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return (0, _createClass2.default)(ConnectionType);
|
|
65
|
-
}(_PluggableElementBase2.default);
|
|
66
|
-
|
|
67
|
-
exports.default = ConnectionType;
|
|
23
|
+
}
|
|
24
|
+
exports.default = ConnectionType;
|
|
@@ -1,84 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var _super = _createSuper(DisplayType);
|
|
36
|
-
|
|
37
|
-
function DisplayType(stuff) {
|
|
38
|
-
var _this;
|
|
39
|
-
|
|
40
|
-
(0, _classCallCheck2.default)(this, DisplayType);
|
|
41
|
-
_this = _super.call(this, stuff);
|
|
42
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "stateModel", void 0);
|
|
43
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "configSchema", void 0);
|
|
44
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "ReactComponent", void 0);
|
|
45
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "trackType", void 0);
|
|
46
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "viewType", void 0);
|
|
47
|
-
_this.stateModel = stuff.stateModel;
|
|
48
|
-
_this.configSchema = stuff.configSchema;
|
|
49
|
-
_this.ReactComponent = stuff.ReactComponent;
|
|
50
|
-
_this.trackType = stuff.trackType;
|
|
51
|
-
_this.viewType = stuff.viewType;
|
|
52
|
-
|
|
53
|
-
if (!_this.stateModel) {
|
|
54
|
-
throw new Error("no stateModel defined for display ".concat(_this.name));
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const PluggableElementBase_1 = __importDefault(require("./PluggableElementBase"));
|
|
7
|
+
const mst_reflection_1 = require("../util/mst-reflection");
|
|
8
|
+
class DisplayType extends PluggableElementBase_1.default {
|
|
9
|
+
constructor(stuff) {
|
|
10
|
+
super(stuff);
|
|
11
|
+
this.stateModel = stuff.stateModel;
|
|
12
|
+
this.configSchema = stuff.configSchema;
|
|
13
|
+
this.ReactComponent = stuff.ReactComponent;
|
|
14
|
+
this.trackType = stuff.trackType;
|
|
15
|
+
this.viewType = stuff.viewType;
|
|
16
|
+
if (!this.stateModel) {
|
|
17
|
+
throw new Error(`no stateModel defined for display ${this.name}`);
|
|
18
|
+
}
|
|
19
|
+
if (!this.configSchema) {
|
|
20
|
+
throw new Error(`no configSchema provided for display ${this.name}`);
|
|
21
|
+
}
|
|
22
|
+
if (!this.ReactComponent) {
|
|
23
|
+
throw new Error(`no ReactComponent provided for display ${this.name}`);
|
|
24
|
+
}
|
|
25
|
+
if (!this.trackType) {
|
|
26
|
+
throw new Error(`no trackType provided for display ${this.name}`);
|
|
27
|
+
}
|
|
28
|
+
if (!this.viewType) {
|
|
29
|
+
throw new Error(`no viewType provided for display ${this.name}`);
|
|
30
|
+
}
|
|
31
|
+
if (!(0, mst_reflection_1.getDefaultValue)(this.configSchema).type) {
|
|
32
|
+
const name = this.configSchema ? this.configSchema.name : 'UNKNOWN';
|
|
33
|
+
throw new Error(`${name} is not explicitlyTyped`);
|
|
34
|
+
}
|
|
55
35
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
throw new Error("no configSchema provided for display ".concat(_this.name));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (!_this.ReactComponent) {
|
|
62
|
-
throw new Error("no ReactComponent provided for display ".concat(_this.name));
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (!_this.trackType) {
|
|
66
|
-
throw new Error("no trackType provided for display ".concat(_this.name));
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
if (!_this.viewType) {
|
|
70
|
-
throw new Error("no viewType provided for display ".concat(_this.name));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
if (!(0, _mstReflection.getDefaultValue)(_this.configSchema).type) {
|
|
74
|
-
var name = _this.configSchema ? _this.configSchema.name : 'UNKNOWN';
|
|
75
|
-
throw new Error("".concat(name, " is not explicitlyTyped"));
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return _this;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return (0, _createClass2.default)(DisplayType);
|
|
82
|
-
}(_PluggableElementBase2.default);
|
|
83
|
-
|
|
84
|
-
exports.default = DisplayType;
|
|
36
|
+
}
|
|
37
|
+
exports.default = DisplayType;
|
|
@@ -1,66 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
var _PluggableElementBase2 = _interopRequireDefault(require("./PluggableElementBase"));
|
|
25
|
-
|
|
26
|
-
var _mstReflection = require("../util/mst-reflection");
|
|
27
|
-
|
|
28
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
29
|
-
|
|
30
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
31
|
-
|
|
32
|
-
var InternetAccountType = /*#__PURE__*/function (_PluggableElementBase) {
|
|
33
|
-
(0, _inherits2.default)(InternetAccountType, _PluggableElementBase);
|
|
34
|
-
|
|
35
|
-
var _super = _createSuper(InternetAccountType);
|
|
36
|
-
|
|
37
|
-
function InternetAccountType(stuff) {
|
|
38
|
-
var _this;
|
|
39
|
-
|
|
40
|
-
(0, _classCallCheck2.default)(this, InternetAccountType);
|
|
41
|
-
_this = _super.call(this, stuff);
|
|
42
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "stateModel", void 0);
|
|
43
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "configSchema", void 0);
|
|
44
|
-
_this.stateModel = stuff.stateModel;
|
|
45
|
-
_this.configSchema = stuff.configSchema;
|
|
46
|
-
|
|
47
|
-
if (!_this.stateModel) {
|
|
48
|
-
throw new Error("no stateModel defined for internet account type ".concat(_this.name));
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const PluggableElementBase_1 = __importDefault(require("./PluggableElementBase"));
|
|
7
|
+
const mst_reflection_1 = require("../util/mst-reflection");
|
|
8
|
+
class InternetAccountType extends PluggableElementBase_1.default {
|
|
9
|
+
constructor(stuff) {
|
|
10
|
+
super(stuff);
|
|
11
|
+
this.stateModel = stuff.stateModel;
|
|
12
|
+
this.configSchema = stuff.configSchema;
|
|
13
|
+
if (!this.stateModel) {
|
|
14
|
+
throw new Error(`no stateModel defined for internet account type ${this.name}`);
|
|
15
|
+
}
|
|
16
|
+
if (!this.configSchema) {
|
|
17
|
+
throw new Error(`no configSchema provided for internet account type ${this.name}`);
|
|
18
|
+
}
|
|
19
|
+
if (!(0, mst_reflection_1.getDefaultValue)(this.configSchema).type) {
|
|
20
|
+
const name = this.configSchema ? this.configSchema.name : 'UNKNOWN';
|
|
21
|
+
throw new Error(`${name} is not explicitlyTyped`);
|
|
22
|
+
}
|
|
49
23
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
throw new Error("no configSchema provided for internet account type ".concat(_this.name));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
if (!(0, _mstReflection.getDefaultValue)(_this.configSchema).type) {
|
|
56
|
-
var name = _this.configSchema ? _this.configSchema.name : 'UNKNOWN';
|
|
57
|
-
throw new Error("".concat(name, " is not explicitlyTyped"));
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return _this;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return (0, _createClass2.default)(InternetAccountType);
|
|
64
|
-
}(_PluggableElementBase2.default);
|
|
65
|
-
|
|
66
|
-
exports.default = InternetAccountType;
|
|
24
|
+
}
|
|
25
|
+
exports.default = InternetAccountType;
|
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
|
-
|
|
12
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
|
-
|
|
14
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
|
|
16
|
-
var PluggableElementBase = /*#__PURE__*/(0, _createClass2.default)(function PluggableElementBase(args) {
|
|
17
|
-
(0, _classCallCheck2.default)(this, PluggableElementBase);
|
|
18
|
-
(0, _defineProperty2.default)(this, "name", '');
|
|
19
|
-
this.name = args.name;
|
|
20
|
-
});
|
|
21
|
-
exports.default = PluggableElementBase;
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class PluggableElementBase {
|
|
4
|
+
constructor(args) {
|
|
5
|
+
this.name = '';
|
|
6
|
+
this.name = args.name;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
exports.default = PluggableElementBase;
|