@deephaven/golden-layout 0.19.2-beta.10 → 0.19.2-beta.11
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/dist/LayoutManager.d.ts +313 -0
- package/dist/LayoutManager.d.ts.map +1 -0
- package/dist/LayoutManager.js +468 -450
- package/dist/LayoutManager.js.map +1 -1
- package/dist/base.d.ts +16 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/base.js +6 -6
- package/dist/base.js.map +1 -1
- package/dist/config/Config.d.ts +146 -0
- package/dist/config/Config.d.ts.map +1 -0
- package/dist/config/{defaultConfig.js → Config.js} +6 -6
- package/dist/config/Config.js.map +1 -0
- package/dist/config/ItemConfig.d.ts +66 -0
- package/dist/config/ItemConfig.d.ts.map +1 -0
- package/dist/config/ItemConfig.js +14 -0
- package/dist/config/ItemConfig.js.map +1 -0
- package/dist/config/index.d.ts +3 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +2 -6
- package/dist/config/index.js.map +1 -1
- package/dist/container/ItemContainer.d.ts +91 -0
- package/dist/container/ItemContainer.d.ts.map +1 -0
- package/dist/container/ItemContainer.js +110 -85
- package/dist/container/ItemContainer.js.map +1 -1
- package/dist/container/index.d.ts +3 -0
- package/dist/container/index.d.ts.map +1 -0
- package/dist/container/index.js +2 -4
- package/dist/container/index.js.map +1 -1
- package/dist/controls/BrowserPopout.d.ts +83 -0
- package/dist/controls/BrowserPopout.d.ts.map +1 -0
- package/dist/controls/BrowserPopout.js +135 -101
- package/dist/controls/BrowserPopout.js.map +1 -1
- package/dist/controls/DragProxy.d.ts +67 -0
- package/dist/controls/DragProxy.d.ts.map +1 -0
- package/dist/controls/DragProxy.js +135 -110
- package/dist/controls/DragProxy.js.map +1 -1
- package/dist/controls/DragSource.d.ts +30 -0
- package/dist/controls/DragSource.d.ts.map +1 -0
- package/dist/controls/DragSource.js +37 -29
- package/dist/controls/DragSource.js.map +1 -1
- package/dist/controls/DragSourceFromEvent.d.ts +30 -0
- package/dist/controls/DragSourceFromEvent.d.ts.map +1 -0
- package/dist/controls/DragSourceFromEvent.js +49 -36
- package/dist/controls/DragSourceFromEvent.js.map +1 -1
- package/dist/controls/DropTargetIndicator.d.ts +14 -0
- package/dist/controls/DropTargetIndicator.d.ts.map +1 -0
- package/dist/controls/DropTargetIndicator.js +18 -14
- package/dist/controls/DropTargetIndicator.js.map +1 -1
- package/dist/controls/Header.d.ts +145 -0
- package/dist/controls/Header.d.ts.map +1 -0
- package/dist/controls/Header.js +414 -271
- package/dist/controls/Header.js.map +1 -1
- package/dist/controls/HeaderButton.d.ts +9 -0
- package/dist/controls/HeaderButton.d.ts.map +1 -0
- package/dist/controls/HeaderButton.js +19 -13
- package/dist/controls/HeaderButton.js.map +1 -1
- package/dist/controls/Splitter.d.ts +12 -0
- package/dist/controls/Splitter.d.ts.map +1 -0
- package/dist/controls/Splitter.js +36 -20
- package/dist/controls/Splitter.js.map +1 -1
- package/dist/controls/Tab.d.ts +91 -0
- package/dist/controls/Tab.d.ts.map +1 -0
- package/dist/controls/Tab.js +131 -119
- package/dist/controls/Tab.js.map +1 -1
- package/dist/controls/TransitionIndicator.d.ts +25 -0
- package/dist/controls/TransitionIndicator.d.ts.map +1 -0
- package/dist/controls/TransitionIndicator.js +53 -39
- package/dist/controls/TransitionIndicator.js.map +1 -1
- package/dist/controls/index.d.ts +11 -0
- package/dist/controls/index.d.ts.map +1 -0
- package/dist/controls/index.js +10 -22
- package/dist/controls/index.js.map +1 -1
- package/dist/errors/ConfigurationError.d.ts +6 -0
- package/dist/errors/ConfigurationError.d.ts.map +1 -0
- package/dist/errors/ConfigurationError.js +15 -8
- package/dist/errors/ConfigurationError.js.map +1 -1
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +1 -4
- package/dist/errors/index.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/items/AbstractContentItem.d.ts +233 -0
- package/dist/items/AbstractContentItem.d.ts.map +1 -0
- package/dist/items/AbstractContentItem.js +284 -242
- package/dist/items/AbstractContentItem.js.map +1 -1
- package/dist/items/Component.d.ts +30 -0
- package/dist/items/Component.d.ts.map +1 -0
- package/dist/items/Component.js +61 -42
- package/dist/items/Component.js.map +1 -1
- package/dist/items/Root.d.ts +18 -0
- package/dist/items/Root.d.ts.map +1 -0
- package/dist/items/Root.js +68 -38
- package/dist/items/Root.js.map +1 -1
- package/dist/items/RowOrColumn.d.ts +157 -0
- package/dist/items/RowOrColumn.d.ts.map +1 -0
- package/dist/items/RowOrColumn.js +219 -187
- package/dist/items/RowOrColumn.js.map +1 -1
- package/dist/items/Stack.d.ts +108 -0
- package/dist/items/Stack.d.ts.map +1 -0
- package/dist/items/Stack.js +218 -151
- package/dist/items/Stack.js.map +1 -1
- package/dist/items/index.d.ts +8 -0
- package/dist/items/index.d.ts.map +1 -0
- package/dist/items/index.js +7 -12
- package/dist/items/index.js.map +1 -1
- package/dist/utils/BubblingEvent.d.ts +8 -0
- package/dist/utils/BubblingEvent.d.ts.map +1 -0
- package/dist/utils/BubblingEvent.js +18 -9
- package/dist/utils/BubblingEvent.js.map +1 -1
- package/dist/utils/ConfigMinifier.d.ts +21 -0
- package/dist/utils/ConfigMinifier.d.ts.map +1 -0
- package/dist/utils/ConfigMinifier.js +121 -121
- package/dist/utils/ConfigMinifier.js.map +1 -1
- package/dist/utils/DragListener.d.ts +34 -0
- package/dist/utils/DragListener.d.ts.map +1 -0
- package/dist/utils/DragListener.js +103 -70
- package/dist/utils/DragListener.js.map +1 -1
- package/dist/utils/EventEmitter.d.ts +59 -0
- package/dist/utils/EventEmitter.d.ts.map +1 -0
- package/dist/utils/EventEmitter.js +64 -70
- package/dist/utils/EventEmitter.js.map +1 -1
- package/dist/utils/EventHub.d.ts +55 -0
- package/dist/utils/EventHub.d.ts.map +1 -0
- package/dist/utils/EventHub.js +83 -105
- package/dist/utils/EventHub.js.map +1 -1
- package/dist/utils/ReactComponentHandler.d.ts +54 -0
- package/dist/utils/ReactComponentHandler.d.ts.map +1 -0
- package/dist/utils/ReactComponentHandler.js +58 -56
- package/dist/utils/ReactComponentHandler.js.map +1 -1
- package/dist/utils/index.d.ts +8 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +7 -21
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/utils.d.ts +25 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +21 -145
- package/dist/utils/utils.js.map +1 -1
- package/package.json +9 -5
- package/dist/config/ItemDefaultConfig.js +0 -8
- package/dist/config/ItemDefaultConfig.js.map +0 -1
- package/dist/config/defaultConfig.js.map +0 -1
|
@@ -1,43 +1,49 @@
|
|
|
1
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
+
|
|
1
3
|
import React from 'react';
|
|
2
4
|
import ReactDOM from 'react-dom';
|
|
3
5
|
import $ from 'jquery';
|
|
4
|
-
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* A specialised GoldenLayout component that binds GoldenLayout container
|
|
7
9
|
* lifecycle events to react components
|
|
8
10
|
*
|
|
9
|
-
* @
|
|
10
|
-
*
|
|
11
|
-
* @param {lm.container.ItemContainer} container
|
|
12
|
-
* @param {Object} state state is not required for react components
|
|
11
|
+
* @param container
|
|
12
|
+
* @param state state is not required for react components
|
|
13
13
|
*/
|
|
14
|
+
export default class ReactComponentHandler {
|
|
15
|
+
constructor(container, state) {
|
|
16
|
+
_defineProperty(this, "_container", void 0);
|
|
17
|
+
|
|
18
|
+
_defineProperty(this, "_reactComponent", null);
|
|
19
|
+
|
|
20
|
+
_defineProperty(this, "_originalComponentWillUpdate", null);
|
|
14
21
|
|
|
15
|
-
|
|
16
|
-
this._reactComponent = null;
|
|
17
|
-
this._originalComponentWillUpdate = null;
|
|
18
|
-
this._container = container;
|
|
19
|
-
this._initialState = state;
|
|
20
|
-
this._reactClass = this._getReactClass();
|
|
22
|
+
_defineProperty(this, "_initialState", void 0);
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
_defineProperty(this, "_reactClass", void 0);
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
this._reactComponent = null;
|
|
27
|
+
this._originalComponentWillUpdate = null;
|
|
28
|
+
this._container = container;
|
|
29
|
+
this._initialState = state;
|
|
30
|
+
this._reactClass = this._getReactClass();
|
|
26
31
|
|
|
27
|
-
|
|
32
|
+
this._container.on('open', this._render, this);
|
|
33
|
+
|
|
34
|
+
this._container.on('destroy', this._destroy, this);
|
|
35
|
+
}
|
|
28
36
|
/**
|
|
29
37
|
* Creates the react class and component and hydrates it with
|
|
30
38
|
* the initial state - if one is present
|
|
31
39
|
*
|
|
32
40
|
* By default, react's getInitialState will be used
|
|
33
|
-
*
|
|
34
|
-
* @private
|
|
35
|
-
* @returns {void}
|
|
36
41
|
*/
|
|
37
|
-
_render: function _render() {
|
|
38
|
-
ReactDOM.render(this._getReactComponent(), this._container.getElement()[0]);
|
|
39
|
-
},
|
|
40
42
|
|
|
43
|
+
|
|
44
|
+
_render() {
|
|
45
|
+
ReactDOM.render(this._getReactComponent(), this._container.getElement()[0]);
|
|
46
|
+
}
|
|
41
47
|
/**
|
|
42
48
|
* Fired by react when the component is created.
|
|
43
49
|
* <p>
|
|
@@ -45,11 +51,11 @@ utils.copy(ReactComponentHandler.prototype, {
|
|
|
45
51
|
* of https://github.com/facebook/react/issues/10309.
|
|
46
52
|
* </p>
|
|
47
53
|
*
|
|
48
|
-
* @
|
|
49
|
-
* @arg {React.Ref} component The component instance created by the `ReactDOM.render` call in the `_render` method.
|
|
50
|
-
* @returns {void}
|
|
54
|
+
* @param component The component instance created by the `ReactDOM.render` call in the `_render` method.
|
|
51
55
|
*/
|
|
52
|
-
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
_gotReactComponent(component) {
|
|
53
59
|
if (!component) {
|
|
54
60
|
return;
|
|
55
61
|
}
|
|
@@ -60,68 +66,64 @@ utils.copy(ReactComponentHandler.prototype, {
|
|
|
60
66
|
|
|
61
67
|
this._reactComponent.componentWillUpdate = this._onUpdate.bind(this);
|
|
62
68
|
|
|
63
|
-
|
|
64
|
-
this._reactComponent.setState(this._container.getState());
|
|
65
|
-
}
|
|
66
|
-
},
|
|
69
|
+
var state = this._container.getState();
|
|
67
70
|
|
|
71
|
+
if (state) {
|
|
72
|
+
this._reactComponent.setState(state);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
68
75
|
/**
|
|
69
76
|
* Removes the component from the DOM and thus invokes React's unmount lifecycle
|
|
70
|
-
*
|
|
71
|
-
* @private
|
|
72
|
-
* @returns {void}
|
|
73
77
|
*/
|
|
74
|
-
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
_destroy() {
|
|
75
81
|
ReactDOM.unmountComponentAtNode(this._container.getElement()[0]);
|
|
76
82
|
|
|
77
83
|
this._container.off('open', this._render, this);
|
|
78
84
|
|
|
79
85
|
this._container.off('destroy', this._destroy, this);
|
|
80
|
-
}
|
|
81
|
-
|
|
86
|
+
}
|
|
82
87
|
/**
|
|
83
88
|
* Hooks into React's state management and applies the componentstate
|
|
84
89
|
* to GoldenLayout
|
|
85
|
-
*
|
|
86
|
-
* @private
|
|
87
|
-
* @returns {void}
|
|
88
90
|
*/
|
|
89
|
-
_onUpdate: function _onUpdate(nextProps, nextState) {
|
|
90
|
-
this._container.setState(nextState);
|
|
91
91
|
|
|
92
|
-
this._originalComponentWillUpdate.call(this._reactComponent, nextProps, nextState);
|
|
93
|
-
},
|
|
94
92
|
|
|
93
|
+
_onUpdate(nextProps, nextState) {
|
|
94
|
+
var _this$_originalCompon;
|
|
95
|
+
|
|
96
|
+
this._container.setState(nextState);
|
|
97
|
+
|
|
98
|
+
(_this$_originalCompon = this._originalComponentWillUpdate) === null || _this$_originalCompon === void 0 ? void 0 : _this$_originalCompon.call(this._reactComponent, nextProps, nextState);
|
|
99
|
+
}
|
|
95
100
|
/**
|
|
96
101
|
* Retrieves the react class from GoldenLayout's registry
|
|
97
|
-
*
|
|
98
|
-
* @private
|
|
99
|
-
* @returns {React.Class}
|
|
102
|
+
* @returns react class
|
|
100
103
|
*/
|
|
101
|
-
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
_getReactClass() {
|
|
102
107
|
var componentName = this._container._config.component;
|
|
103
|
-
var reactClass;
|
|
104
108
|
|
|
105
109
|
if (!componentName) {
|
|
106
110
|
throw new Error('No react component name. type: react-component needs a field `component`');
|
|
107
111
|
}
|
|
108
112
|
|
|
109
|
-
reactClass = this._container.layoutManager.getComponent(componentName) || this._container.layoutManager.getFallbackComponent();
|
|
113
|
+
var reactClass = this._container.layoutManager.getComponent(componentName) || this._container.layoutManager.getFallbackComponent();
|
|
110
114
|
|
|
111
115
|
if (!reactClass) {
|
|
112
116
|
throw new Error('React component "' + componentName + '" not found. ' + 'Please register all components with GoldenLayout using `registerComponent(name, component)`');
|
|
113
117
|
}
|
|
114
118
|
|
|
115
119
|
return reactClass;
|
|
116
|
-
}
|
|
117
|
-
|
|
120
|
+
}
|
|
118
121
|
/**
|
|
119
122
|
* Copies and extends the properties array and returns the React element
|
|
120
|
-
*
|
|
121
|
-
* @private
|
|
122
|
-
* @returns {React.Element}
|
|
123
123
|
*/
|
|
124
|
-
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
_getReactComponent() {
|
|
125
127
|
var defaultProps = {
|
|
126
128
|
glEventHub: this._container.layoutManager.eventHub,
|
|
127
129
|
glContainer: this._container,
|
|
@@ -130,6 +132,6 @@ utils.copy(ReactComponentHandler.prototype, {
|
|
|
130
132
|
var props = $.extend(defaultProps, this._container._config.props);
|
|
131
133
|
return /*#__PURE__*/React.createElement(this._reactClass, props);
|
|
132
134
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
+
|
|
136
|
+
}
|
|
135
137
|
//# sourceMappingURL=ReactComponentHandler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactComponentHandler.js","names":["React","ReactDOM","$","
|
|
1
|
+
{"version":3,"file":"ReactComponentHandler.js","names":["React","ReactDOM","$","ReactComponentHandler","constructor","container","state","_reactComponent","_originalComponentWillUpdate","_container","_initialState","_reactClass","_getReactClass","on","_render","_destroy","render","_getReactComponent","getElement","_gotReactComponent","component","componentWillUpdate","_onUpdate","bind","getState","setState","unmountComponentAtNode","off","nextProps","nextState","call","componentName","_config","Error","reactClass","layoutManager","getComponent","getFallbackComponent","defaultProps","glEventHub","eventHub","glContainer","ref","props","extend","createElement"],"sources":["../../src/utils/ReactComponentHandler.tsx"],"sourcesContent":["import React from 'react';\nimport ReactDOM from 'react-dom';\nimport $ from 'jquery';\nimport type ItemContainer from '../container/ItemContainer';\nimport type { ReactComponentConfig } from '../config/ItemConfig';\n\n/**\n * A specialised GoldenLayout component that binds GoldenLayout container\n * lifecycle events to react components\n *\n * @param container\n * @param state state is not required for react components\n */\nexport default class ReactComponentHandler {\n private _container: ItemContainer<ReactComponentConfig>;\n\n private _reactComponent: React.Component | null = null;\n private _originalComponentWillUpdate: Function | null = null;\n private _initialState: unknown;\n private _reactClass: React.ComponentClass;\n\n constructor(container: ItemContainer<ReactComponentConfig>, state?: unknown) {\n this._reactComponent = null;\n this._originalComponentWillUpdate = null;\n this._container = container;\n this._initialState = state;\n this._reactClass = this._getReactClass();\n this._container.on('open', this._render, this);\n this._container.on('destroy', this._destroy, this);\n }\n\n /**\n * Creates the react class and component and hydrates it with\n * the initial state - if one is present\n *\n * By default, react's getInitialState will be used\n */\n _render() {\n ReactDOM.render(this._getReactComponent(), this._container.getElement()[0]);\n }\n\n /**\n * Fired by react when the component is created.\n * <p>\n * Note: This callback is used instead of the return from `ReactDOM.render` because\n *\t of https://github.com/facebook/react/issues/10309.\n * </p>\n *\n * @param component The component instance created by the `ReactDOM.render` call in the `_render` method.\n */\n _gotReactComponent(component: React.Component) {\n if (!component) {\n return;\n }\n\n this._reactComponent = component;\n this._originalComponentWillUpdate =\n this._reactComponent.componentWillUpdate || function () {};\n this._reactComponent.componentWillUpdate = this._onUpdate.bind(this);\n const state = this._container.getState();\n if (state) {\n this._reactComponent.setState(state);\n }\n }\n\n /**\n * Removes the component from the DOM and thus invokes React's unmount lifecycle\n */\n _destroy() {\n ReactDOM.unmountComponentAtNode(this._container.getElement()[0]);\n this._container.off('open', this._render, this);\n this._container.off('destroy', this._destroy, this);\n }\n\n /**\n * Hooks into React's state management and applies the componentstate\n * to GoldenLayout\n */\n _onUpdate(nextProps: unknown, nextState: Record<string, unknown>) {\n this._container.setState(nextState);\n this._originalComponentWillUpdate?.call(\n this._reactComponent,\n nextProps,\n nextState\n );\n }\n\n /**\n * Retrieves the react class from GoldenLayout's registry\n * @returns react class\n */\n _getReactClass() {\n var componentName = this._container._config.component;\n\n if (!componentName) {\n throw new Error(\n 'No react component name. type: react-component needs a field `component`'\n );\n }\n\n const reactClass = ((this._container.layoutManager.getComponent(\n componentName\n ) ||\n this._container.layoutManager.getFallbackComponent()) as unknown) as React.ComponentClass;\n\n if (!reactClass) {\n throw new Error(\n 'React component \"' +\n componentName +\n '\" not found. ' +\n 'Please register all components with GoldenLayout using `registerComponent(name, component)`'\n );\n }\n\n return reactClass;\n }\n\n /**\n * Copies and extends the properties array and returns the React element\n */\n _getReactComponent() {\n var defaultProps = {\n glEventHub: this._container.layoutManager.eventHub,\n glContainer: this._container,\n ref: this._gotReactComponent.bind(this),\n };\n var props = $.extend(defaultProps, this._container._config.props);\n return React.createElement(this._reactClass, props);\n }\n}\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,QAAP,MAAqB,WAArB;AACA,OAAOC,CAAP,MAAc,QAAd;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,MAAMC,qBAAN,CAA4B;EAQzCC,WAAW,CAACC,SAA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AAO3C,KAAK,CAAC6C,aAAN,CAAoB,KAAKlC,WAAzB,EAAsCgC,KAAtC,CAAP;EACD;;AAnHwC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './utils';
|
|
2
|
+
export { default as EventEmitter } from './EventEmitter';
|
|
3
|
+
export { default as DragListener } from './DragListener';
|
|
4
|
+
export { default as ReactComponentHandler } from './ReactComponentHandler';
|
|
5
|
+
export * from './ConfigMinifier';
|
|
6
|
+
export { default as BubblingEvent } from './BubblingEvent';
|
|
7
|
+
export { default as EventHub } from './EventHub';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAC3E,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import EventEmitter from './EventEmitter.js';
|
|
9
|
-
import DragListener from './DragListener.js';
|
|
10
|
-
import ReactComponentHandler from './ReactComponentHandler.js';
|
|
11
|
-
import ConfigMinifier from './ConfigMinifier.js';
|
|
12
|
-
import BubblingEvent from './BubblingEvent.js';
|
|
13
|
-
import EventHub from './EventHub.js';
|
|
14
|
-
export default _objectSpread(_objectSpread({}, utils), {}, {
|
|
15
|
-
EventEmitter,
|
|
16
|
-
DragListener,
|
|
17
|
-
ReactComponentHandler,
|
|
18
|
-
ConfigMinifier,
|
|
19
|
-
BubblingEvent,
|
|
20
|
-
EventHub
|
|
21
|
-
});
|
|
1
|
+
export * from "./utils.js";
|
|
2
|
+
export { default as EventEmitter } from "./EventEmitter.js";
|
|
3
|
+
export { default as DragListener } from "./DragListener.js";
|
|
4
|
+
export { default as ReactComponentHandler } from "./ReactComponentHandler.js";
|
|
5
|
+
export * from "./ConfigMinifier.js";
|
|
6
|
+
export { default as BubblingEvent } from "./BubblingEvent.js";
|
|
7
|
+
export { default as EventHub } from "./EventHub.js";
|
|
22
8
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","EventEmitter","DragListener","ReactComponentHandler","BubblingEvent","EventHub"],"sources":["../../src/utils/index.ts"],"sourcesContent":["export * from './utils';\nexport { default as EventEmitter } from './EventEmitter';\nexport { default as DragListener } from './DragListener';\nexport { default as ReactComponentHandler } from './ReactComponentHandler';\nexport * from './ConfigMinifier';\nexport { default as BubblingEvent } from './BubblingEvent';\nexport { default as EventHub } from './EventHub';\n"],"mappings":";SACSA,OAAO,IAAIC,Y;SACXD,OAAO,IAAIE,Y;SACXF,OAAO,IAAIG,qB;;SAEXH,OAAO,IAAII,a;SACXJ,OAAO,IAAIK,Q"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export declare function getHashValue(key: string): string | null;
|
|
2
|
+
export declare function getQueryStringParam(param: string): string | null;
|
|
3
|
+
export declare function animFrame(fn: (time?: number) => void): number;
|
|
4
|
+
export declare function removeFromArray<T>(item: T, array: T[]): void;
|
|
5
|
+
export declare function getUniqueId(): string;
|
|
6
|
+
/**
|
|
7
|
+
* A basic XSS filter. It is ultimately up to the
|
|
8
|
+
* implementing developer to make sure their particular
|
|
9
|
+
* applications and usecases are save from cross site scripting attacks
|
|
10
|
+
*
|
|
11
|
+
* @param input
|
|
12
|
+
* @param keepTags
|
|
13
|
+
*
|
|
14
|
+
* @returns filtered input
|
|
15
|
+
*/
|
|
16
|
+
export declare function filterXss(input: string, keepTags: boolean): string;
|
|
17
|
+
/**
|
|
18
|
+
* Removes html tags from a string
|
|
19
|
+
*
|
|
20
|
+
* @param input
|
|
21
|
+
*
|
|
22
|
+
* @returns input without tags
|
|
23
|
+
*/
|
|
24
|
+
export declare function stripTags(input: string): string;
|
|
25
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils/utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,iBAGvC;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,iBAkBhD;AAED,wBAAgB,SAAS,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,UAEpD;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,QAQrD;AAED,wBAAgB,WAAW,WAE1B;AAED;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,UAazD;AAED;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,UAEtC"}
|
package/dist/utils/utils.js
CHANGED
|
@@ -1,46 +1,11 @@
|
|
|
1
1
|
import $ from 'jquery';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
utils.F = function () {};
|
|
5
|
-
|
|
6
|
-
utils.extend = function (subClass, superClass) {
|
|
7
|
-
subClass.prototype = utils.createObject(superClass.prototype);
|
|
8
|
-
subClass.prototype.contructor = subClass;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
utils.createObject = function (prototype) {
|
|
12
|
-
if (typeof Object.create === 'function') {
|
|
13
|
-
return Object.create(prototype);
|
|
14
|
-
} else {
|
|
15
|
-
utils.F.prototype = prototype;
|
|
16
|
-
return new utils.F();
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
utils.objectKeys = function (object) {
|
|
21
|
-
var keys, key;
|
|
22
|
-
|
|
23
|
-
if (typeof Object.keys === 'function') {
|
|
24
|
-
return Object.keys(object);
|
|
25
|
-
} else {
|
|
26
|
-
keys = [];
|
|
27
|
-
|
|
28
|
-
for (key in object) {
|
|
29
|
-
keys.push(key);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return keys;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
utils.getHashValue = function (key) {
|
|
2
|
+
export function getHashValue(key) {
|
|
37
3
|
var matches = location.hash.match(new RegExp(key + '=([^&]*)'));
|
|
38
4
|
return matches ? matches[1] : null;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
utils.getQueryStringParam = function (param) {
|
|
5
|
+
}
|
|
6
|
+
export function getQueryStringParam(param) {
|
|
42
7
|
if (window.location.hash) {
|
|
43
|
-
return
|
|
8
|
+
return getHashValue(param);
|
|
44
9
|
} else if (!window.location.search) {
|
|
45
10
|
return null;
|
|
46
11
|
}
|
|
@@ -56,120 +21,34 @@ utils.getQueryStringParam = function (param) {
|
|
|
56
21
|
}
|
|
57
22
|
|
|
58
23
|
return params[param] || null;
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
utils.copy = function (target, source) {
|
|
62
|
-
for (var key in source) {
|
|
63
|
-
target[key] = source[key];
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
return target;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* This is based on Paul Irish's shim, but looks quite odd in comparison. Why?
|
|
70
|
-
* Because
|
|
71
|
-
* a) it shouldn't affect the global requestAnimationFrame function
|
|
72
|
-
* b) it shouldn't pass on the time that has passed
|
|
73
|
-
*
|
|
74
|
-
* @param {Function} fn
|
|
75
|
-
*
|
|
76
|
-
* @returns {void}
|
|
77
|
-
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
utils.animFrame = function (fn) {
|
|
81
|
-
return (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback) {
|
|
82
|
-
window.setTimeout(callback, 1000 / 60);
|
|
83
|
-
})(function () {
|
|
84
|
-
fn();
|
|
85
|
-
});
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
utils.indexOf = function (needle, haystack) {
|
|
89
|
-
if (!(haystack instanceof Array)) {
|
|
90
|
-
throw new Error('Haystack is not an Array');
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
if (haystack.indexOf) {
|
|
94
|
-
return haystack.indexOf(needle);
|
|
95
|
-
} else {
|
|
96
|
-
for (var i = 0; i < haystack.length; i++) {
|
|
97
|
-
if (haystack[i] === needle) {
|
|
98
|
-
return i;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return -1;
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
if (typeof /./ != 'function' && typeof Int8Array != 'object') {
|
|
107
|
-
utils.isFunction = function (obj) {
|
|
108
|
-
return typeof obj == 'function' || false;
|
|
109
|
-
};
|
|
110
|
-
} else {
|
|
111
|
-
utils.isFunction = function (obj) {
|
|
112
|
-
return toString.call(obj) === '[object Function]';
|
|
113
|
-
};
|
|
114
24
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
var bound = function bound() {
|
|
122
|
-
// Join the already applied arguments to the now called ones (after converting to an array again).
|
|
123
|
-
var args = (boundArgs || []).concat(Array.prototype.slice.call(arguments, 0)); // If not being called as a constructor
|
|
124
|
-
|
|
125
|
-
if (!(this instanceof bound)) {
|
|
126
|
-
// return the result of the function called bound to target and partially applied.
|
|
127
|
-
return fn.apply(context, args);
|
|
128
|
-
} // If being called as a constructor, apply the function bound to self.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
fn.apply(this, args);
|
|
132
|
-
}; // Attach the prototype of the function to our newly created function.
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
bound.prototype = fn.prototype;
|
|
136
|
-
return bound;
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
utils.removeFromArray = function (item, array) {
|
|
140
|
-
var index = utils.indexOf(item, array);
|
|
25
|
+
export function animFrame(fn) {
|
|
26
|
+
return window.requestAnimationFrame(fn);
|
|
27
|
+
}
|
|
28
|
+
export function removeFromArray(item, array) {
|
|
29
|
+
var index = array.indexOf(item);
|
|
141
30
|
|
|
142
31
|
if (index === -1) {
|
|
143
32
|
throw new Error("Can't remove item from array. Item is not in the array");
|
|
144
33
|
}
|
|
145
34
|
|
|
146
35
|
array.splice(index, 1);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
utils.now = function () {
|
|
150
|
-
if (typeof Date.now === 'function') {
|
|
151
|
-
return Date.now();
|
|
152
|
-
} else {
|
|
153
|
-
return new Date().getTime();
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
utils.getUniqueId = function () {
|
|
36
|
+
}
|
|
37
|
+
export function getUniqueId() {
|
|
158
38
|
return (Math.random() * 1000000000000000).toString(36).replace('.', '');
|
|
159
|
-
}
|
|
39
|
+
}
|
|
160
40
|
/**
|
|
161
41
|
* A basic XSS filter. It is ultimately up to the
|
|
162
42
|
* implementing developer to make sure their particular
|
|
163
43
|
* applications and usecases are save from cross site scripting attacks
|
|
164
44
|
*
|
|
165
|
-
* @param
|
|
166
|
-
* @param
|
|
45
|
+
* @param input
|
|
46
|
+
* @param keepTags
|
|
167
47
|
*
|
|
168
|
-
* @returns
|
|
48
|
+
* @returns filtered input
|
|
169
49
|
*/
|
|
170
50
|
|
|
171
|
-
|
|
172
|
-
utils.filterXss = function (input, keepTags) {
|
|
51
|
+
export function filterXss(input, keepTags) {
|
|
173
52
|
var output = input.replace(/javascript/gi, 'javascript').replace(/expression/gi, 'expression').replace(/onload/gi, 'onload').replace(/script/gi, 'script').replace(/onerror/gi, 'onerror');
|
|
174
53
|
|
|
175
54
|
if (keepTags === true) {
|
|
@@ -177,19 +56,16 @@ utils.filterXss = function (input, keepTags) {
|
|
|
177
56
|
} else {
|
|
178
57
|
return output.replace(/>/g, '>').replace(/</g, '<');
|
|
179
58
|
}
|
|
180
|
-
}
|
|
59
|
+
}
|
|
181
60
|
/**
|
|
182
61
|
* Removes html tags from a string
|
|
183
62
|
*
|
|
184
|
-
* @param
|
|
63
|
+
* @param input
|
|
185
64
|
*
|
|
186
|
-
* @returns
|
|
65
|
+
* @returns input without tags
|
|
187
66
|
*/
|
|
188
67
|
|
|
189
|
-
|
|
190
|
-
utils.stripTags = function (input) {
|
|
68
|
+
export function stripTags(input) {
|
|
191
69
|
return $.trim(input.replace(/(<([^>]+)>)/gi, ''));
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export default utils;
|
|
70
|
+
}
|
|
195
71
|
//# sourceMappingURL=utils.js.map
|
package/dist/utils/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["$","utils","F","extend","subClass","superClass","prototype","createObject","contructor","Object","create","objectKeys","object","keys","key","push","getHashValue","matches","location","hash","match","RegExp","getQueryStringParam","param","window","search","keyValuePairs","substr","split","params","pair","i","length","copy","target","source","animFrame","fn","requestAnimationFrame","webkitRequestAnimationFrame","mozRequestAnimationFrame","callback","setTimeout","indexOf","needle","haystack","Array","Error","Int8Array","isFunction","obj","toString","call","fnBind","context","boundArgs","Function","bind","undefined","apply","concat","bound","args","slice","arguments","removeFromArray","item","array","index","splice","now","Date","getTime","getUniqueId","Math","random","replace","filterXss","input","keepTags","output","stripTags","trim"],"sources":["../../src/utils/utils.js"],"sourcesContent":["import $ from 'jquery';\n\nconst utils = {};\n\nutils.F = function () {};\n\nutils.extend = function (subClass, superClass) {\n subClass.prototype = utils.createObject(superClass.prototype);\n subClass.prototype.contructor = subClass;\n};\n\nutils.createObject = function (prototype) {\n if (typeof Object.create === 'function') {\n return Object.create(prototype);\n } else {\n utils.F.prototype = prototype;\n return new utils.F();\n }\n};\n\nutils.objectKeys = function (object) {\n var keys, key;\n\n if (typeof Object.keys === 'function') {\n return Object.keys(object);\n } else {\n keys = [];\n for (key in object) {\n keys.push(key);\n }\n return keys;\n }\n};\n\nutils.getHashValue = function (key) {\n var matches = location.hash.match(new RegExp(key + '=([^&]*)'));\n return matches ? matches[1] : null;\n};\n\nutils.getQueryStringParam = function (param) {\n if (window.location.hash) {\n return utils.getHashValue(param);\n } else if (!window.location.search) {\n return null;\n }\n\n var keyValuePairs = window.location.search.substr(1).split('&'),\n params = {},\n pair,\n i;\n\n for (i = 0; i < keyValuePairs.length; i++) {\n pair = keyValuePairs[i].split('=');\n params[pair[0]] = pair[1];\n }\n\n return params[param] || null;\n};\n\nutils.copy = function (target, source) {\n for (var key in source) {\n target[key] = source[key];\n }\n return target;\n};\n\n/**\n * This is based on Paul Irish's shim, but looks quite odd in comparison. Why?\n * Because\n * a) it shouldn't affect the global requestAnimationFrame function\n * b) it shouldn't pass on the time that has passed\n *\n * @param {Function} fn\n *\n * @returns {void}\n */\nutils.animFrame = function (fn) {\n return (\n window.requestAnimationFrame ||\n window.webkitRequestAnimationFrame ||\n window.mozRequestAnimationFrame ||\n function (callback) {\n window.setTimeout(callback, 1000 / 60);\n }\n )(function () {\n fn();\n });\n};\n\nutils.indexOf = function (needle, haystack) {\n if (!(haystack instanceof Array)) {\n throw new Error('Haystack is not an Array');\n }\n\n if (haystack.indexOf) {\n return haystack.indexOf(needle);\n } else {\n for (var i = 0; i < haystack.length; i++) {\n if (haystack[i] === needle) {\n return i;\n }\n }\n return -1;\n }\n};\n\nif (typeof /./ != 'function' && typeof Int8Array != 'object') {\n utils.isFunction = function (obj) {\n return typeof obj == 'function' || false;\n };\n} else {\n utils.isFunction = function (obj) {\n return toString.call(obj) === '[object Function]';\n };\n}\n\nutils.fnBind = function (fn, context, boundArgs) {\n if (Function.prototype.bind !== undefined) {\n return Function.prototype.bind.apply(fn, [context].concat(boundArgs || []));\n }\n\n var bound = function () {\n // Join the already applied arguments to the now called ones (after converting to an array again).\n var args = (boundArgs || []).concat(\n Array.prototype.slice.call(arguments, 0)\n );\n\n // If not being called as a constructor\n if (!(this instanceof bound)) {\n // return the result of the function called bound to target and partially applied.\n return fn.apply(context, args);\n }\n // If being called as a constructor, apply the function bound to self.\n fn.apply(this, args);\n };\n // Attach the prototype of the function to our newly created function.\n bound.prototype = fn.prototype;\n return bound;\n};\n\nutils.removeFromArray = function (item, array) {\n var index = utils.indexOf(item, array);\n\n if (index === -1) {\n throw new Error(\"Can't remove item from array. Item is not in the array\");\n }\n\n array.splice(index, 1);\n};\n\nutils.now = function () {\n if (typeof Date.now === 'function') {\n return Date.now();\n } else {\n return new Date().getTime();\n }\n};\n\nutils.getUniqueId = function () {\n return (Math.random() * 1000000000000000).toString(36).replace('.', '');\n};\n\n/**\n * A basic XSS filter. It is ultimately up to the\n * implementing developer to make sure their particular\n * applications and usecases are save from cross site scripting attacks\n *\n * @param {String} input\n * @param {Boolean} keepTags\n *\n * @returns {String} filtered input\n */\nutils.filterXss = function (input, keepTags) {\n var output = input\n .replace(/javascript/gi, 'javascript')\n .replace(/expression/gi, 'expression')\n .replace(/onload/gi, 'onload')\n .replace(/script/gi, 'script')\n .replace(/onerror/gi, 'onerror');\n\n if (keepTags === true) {\n return output;\n } else {\n return output.replace(/>/g, '>').replace(/</g, '<');\n }\n};\n\n/**\n * Removes html tags from a string\n *\n * @param {String} input\n *\n * @returns {String} input without tags\n */\nutils.stripTags = function (input) {\n return $.trim(input.replace(/(<([^>]+)>)/gi, ''));\n};\n\nexport default utils;\n"],"mappings":"AAAA,OAAOA,CAAP,MAAc,Q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jB,EAAmCxB,QAAnC,CAA4C,EAA5C,EAAgDyB,OAAhD,CAAwD,GAAxD,EAA6D,EAA7D,CAAP;AACD,CAFD;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA3E,KAAK,CAAC4E,SAAN,GAAkB,UAAUC,KAAV,EAAiBC,QAAjB,EAA2B;EAC3C,IAAIC,MAAM,GAAGF,KAAK,CACfF,OADU,CACF,cADE,EACc,gBADd,EAEVA,OAFU,CAEF,cAFE,EAEc,iBAFd,EAGVA,OAHU,CAGF,UAHE,EAGU,YAHV,EAIVA,OAJU,CAIF,UAJE,EAIU,aAJV,EAKVA,OALU,CAKF,WALE,EAKW,cALX,CAAb;;EAOA,IAAIG,QAAQ,KAAK,IAAjB,EAAuB;IACrB,OAAOC,MAAP;EACD,CAFD,MAEO;IACL,OAAOA,MAAM,CAACJ,OAAP,CAAe,IAAf,EAAqB,MAArB,EAA6BA,OAA7B,CAAqC,IAArC,EAA2C,MAA3C,CAAP;EACD;AACF,CAbD;AAeA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA3E,KAAK,CAACgF,SAAN,GAAkB,UAAUH,KAAV,EAAiB;EACjC,OAAO9E,CAAC,CAACkF,IAAF,CAAOJ,KAAK,CAACF,OAAN,CAAc,eAAd,EAA+B,EAA/B,CAAP,CAAP;AACD,CAFD;;AAIA,eAAe3E,KAAf"}
|
|
1
|
+
{"version":3,"file":"utils.js","names":["$","getHashValue","key","matches","location","hash","match","RegExp","getQueryStringParam","param","window","search","keyValuePairs","substr","split","params","pair","i","length","animFrame","fn","requestAnimationFrame","removeFromArray","item","array","index","indexOf","Error","splice","getUniqueId","Math","random","toString","replace","filterXss","input","keepTags","output","stripTags","trim"],"sources":["../../src/utils/utils.ts"],"sourcesContent":["import $ from 'jquery';\n\nexport function getHashValue(key: string) {\n var matches = location.hash.match(new RegExp(key + '=([^&]*)'));\n return matches ? matches[1] : null;\n}\n\nexport function getQueryStringParam(param: string) {\n if (window.location.hash) {\n return getHashValue(param);\n } else if (!window.location.search) {\n return null;\n }\n\n var keyValuePairs = window.location.search.substr(1).split('&'),\n params: Record<string, string> = {},\n pair,\n i;\n\n for (i = 0; i < keyValuePairs.length; i++) {\n pair = keyValuePairs[i].split('=');\n params[pair[0]] = pair[1];\n }\n\n return params[param] || null;\n}\n\nexport function animFrame(fn: (time?: number) => void) {\n return window.requestAnimationFrame(fn);\n}\n\nexport function removeFromArray<T>(item: T, array: T[]) {\n var index = array.indexOf(item);\n\n if (index === -1) {\n throw new Error(\"Can't remove item from array. Item is not in the array\");\n }\n\n array.splice(index, 1);\n}\n\nexport function getUniqueId() {\n return (Math.random() * 1000000000000000).toString(36).replace('.', '');\n}\n\n/**\n * A basic XSS filter. It is ultimately up to the\n * implementing developer to make sure their particular\n * applications and usecases are save from cross site scripting attacks\n *\n * @param input\n * @param keepTags\n *\n * @returns filtered input\n */\nexport function filterXss(input: string, keepTags: boolean) {\n var output = input\n .replace(/javascript/gi, 'javascript')\n .replace(/expression/gi, 'expression')\n .replace(/onload/gi, 'onload')\n .replace(/script/gi, 'script')\n .replace(/onerror/gi, 'onerror');\n\n if (keepTags === true) {\n return output;\n } else {\n return output.replace(/>/g, '>').replace(/</g, '<');\n }\n}\n\n/**\n * Removes html tags from a string\n *\n * @param input\n *\n * @returns input without tags\n */\nexport function stripTags(input: string) {\n return $.trim(input.replace(/(<([^>]+)>)/gi, ''));\n}\n"],"mappings":"AAAA,OAAOA,CAAP,MAAc,QAAd;AAEA,OAAO,SAASC,YAAT,CAAsBC,GAAtB,EAAmC;EACxC,IAAIC,OAAO,GAAGC,QAAQ,CAACC,IAAT,CAAcC,KAAd,CAAoB,IAAIC,MAAJ,CAAWL,GAAG,GAAG,UAAjB,CAApB,CAAd;EACA,OAAOC,OAAO,GAAGA,OAAO,CAAC,CAAD,CAAV,GAAgB,IAA9B;AACD;AAED,OAAO,SAASK,mBAAT,CAA6BC,KAA7B,EAA4C;EACjD,IAAIC,MAAM,CAACN,Q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;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASC,SAAT,CAAmBC,KAAnB,EAAkCC,QAAlC,EAAqD;EAC1D,IAAIC,MAAM,GAAGF,KAAK,CACfF,OADU,CACF,cADE,EACc,gBADd,EAEVA,OAFU,CAEF,cAFE,EAEc,iBAFd,EAGVA,OAHU,CAGF,UAHE,EAGU,YAHV,EAIVA,OAJU,CAIF,UAJE,EAIU,aAJV,EAKVA,OALU,CAKF,WALE,EAKW,cALX,CAAb;;EAOA,IAAIG,QAAQ,KAAK,IAAjB,EAAuB;IACrB,OAAOC,MAAP;EACD,CAFD,MAEO;IACL,OAAOA,MAAM,CAACJ,OAAP,CAAe,IAAf,EAAqB,MAArB,EAA6BA,OAA7B,CAAqC,IAArC,EAA2C,MAA3C,CAAP;EACD;AACF;AAED;AACA;AACA;AACA;AACA;AACA;AACA;;AACA,OAAO,SAASK,SAAT,CAAmBH,KAAnB,EAAkC;EACvC,OAAOnC,CAAC,CAACuC,IAAF,CAAOJ,KAAK,CAACF,OAAN,CAAc,eAAd,EAA+B,EAA/B,CAAP,CAAP;AACD"}
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deephaven/golden-layout",
|
|
3
|
-
"version": "0.19.2-beta.
|
|
3
|
+
"version": "0.19.2-beta.11+f18f946",
|
|
4
4
|
"author": "Deephaven Data Labs LLC",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "A multi-screen javascript Layout manager",
|
|
7
|
-
"main": "
|
|
8
|
-
"
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"module": "dist/index.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"source": "src/index.ts",
|
|
9
11
|
"type": "module",
|
|
10
12
|
"dependencies": {
|
|
11
13
|
"jquery": "^3.6.0"
|
|
@@ -20,14 +22,16 @@
|
|
|
20
22
|
"sass": "sass ./src/scss:./dist/css -s compressed",
|
|
21
23
|
"build:babel": "npm run babel",
|
|
22
24
|
"build:sass": "npm run sass",
|
|
23
|
-
"babel": "babel ./src --out-dir ./dist --extensions \".js\" --source-maps --root-mode upward",
|
|
25
|
+
"babel": "babel ./src --out-dir ./dist --extensions \".ts,.js,.tsx,.jsx\" --source-maps --root-mode upward",
|
|
24
26
|
"watch": "run-p watch:*",
|
|
25
27
|
"watch:babel": "npm run babel -- -w --skip-initial-build",
|
|
26
28
|
"watch:sass": "npm run sass -- --watch --update",
|
|
27
29
|
"clean": "rimraf ./dist",
|
|
28
30
|
"start": "cross-env NODE_ENV=development npm run watch",
|
|
29
31
|
"prestart": "npm run build-dev",
|
|
32
|
+
"pretest": "npm run build",
|
|
30
33
|
"test": "karma start karma.conf.cjs",
|
|
34
|
+
"pretest:ci": "npm run pretest",
|
|
31
35
|
"test:ci": "karma start karma.conf.cjs --single-run"
|
|
32
36
|
},
|
|
33
37
|
"repository": {
|
|
@@ -54,5 +58,5 @@
|
|
|
54
58
|
"karma-browserify": "^8.1.0",
|
|
55
59
|
"watchify": "^4.0.0"
|
|
56
60
|
},
|
|
57
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "f18f946d4434de72b97a8bfd8cba8b172e057e3c"
|
|
58
62
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ItemDefaultConfig.js","names":["itemDefaultConfig","isClosable","isFocusOnShow","reorderEnabled","title"],"sources":["../../src/config/ItemDefaultConfig.js"],"sourcesContent":["const itemDefaultConfig = {\n isClosable: true,\n isFocusOnShow: true,\n reorderEnabled: true,\n title: '',\n};\n\nexport default itemDefaultConfig;\n"],"mappings":"AAAA,IAAMA,iBAAiB,GAAG;EACxBC,UAAU,EAAE,IADY;EAExBC,aAAa,EAAE,IAFS;EAGxBC,cAAc,EAAE,IAHQ;EAIxBC,KAAK,EAAE;AAJiB,CAA1B;AAOA,eAAeJ,iBAAf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConfig.js","names":["defaultConfig","openPopouts","settings","hasHeaders","constrainDragToContainer","reorderEnabled","selectionEnabled","popoutWholeStack","blockedPopoutsThrowError","closePopoutsOnUnload","showPopoutIcon","showMaximiseIcon","showCloseIcon","responsiveMode","tabOverlapAllowance","tabControlOffset","dimensions","borderWidth","borderGrabWidth","minItemHeight","minItemWidth","headerHeight","dragProxyWidth","dragProxyHeight","labels","close","maximise","minimise","popout","popin","tabDropdown","tabNextLabel","tabPreviousLabel"],"sources":["../../src/config/defaultConfig.js"],"sourcesContent":["const defaultConfig = {\n openPopouts: [],\n settings: {\n hasHeaders: true,\n constrainDragToContainer: true,\n reorderEnabled: true,\n selectionEnabled: false,\n popoutWholeStack: false,\n blockedPopoutsThrowError: true,\n closePopoutsOnUnload: true,\n showPopoutIcon: true,\n showMaximiseIcon: true,\n showCloseIcon: true,\n responsiveMode: 'onload', // Can be onload, always, or none.\n tabOverlapAllowance: 0, // maximum pixel overlap per tab\n // reorderOnTabMenuClick: true, // illumon disabled\n tabControlOffset: 10,\n },\n dimensions: {\n borderWidth: 5,\n borderGrabWidth: 10,\n minItemHeight: 10,\n minItemWidth: 10,\n headerHeight: 20,\n dragProxyWidth: 300,\n dragProxyHeight: 200,\n },\n labels: {\n close: 'Close',\n maximise: 'Maximize',\n minimise: 'Minimize',\n popout: 'Open in new window',\n popin: 'Pop in',\n tabDropdown: 'Additional tabs',\n tabNextLabel: 'Next',\n tabPreviousLabel: 'Previous',\n },\n};\n\nexport default defaultConfig;\n"],"mappings":"AAAA,IAAMA,aAAa,GAAG;EACpBC,WAAW,EAAE,EADO;EAEpBC,QAAQ,EAAE;IACRC,UAAU,EAAE,IADJ;IAERC,wBAAwB,EAAE,IAFlB;IAGRC,cAAc,EAAE,IAHR;IAIRC,gBAAgB,EAAE,KAJV;IAKRC,gBAAgB,EAAE,KALV;IAMRC,wBAAwB,EAAE,IANlB;IAORC,oBAAoB,EAAE,IAPd;IAQRC,cAAc,EAAE,IARR;IASRC,gBAAgB,EAAE,IATV;IAURC,aAAa,EAAE,IAVP;IAWRC,cAAc,EAAE,QAXR;IAWkB;IAC1BC,mBAAmB,EAAE,CAZb;IAYgB;IACxB;IACAC,gBAAgB,EAAE;EAdV,CAFU;EAkBpBC,UAAU,EAAE;IACVC,WAAW,EAAE,CADH;IAEVC,eAAe,EAAE,EAFP;IAGVC,aAAa,EAAE,EAHL;IAIVC,YAAY,EAAE,EAJJ;IAKVC,YAAY,EAAE,EALJ;IAMVC,cAAc,EAAE,GANN;IAOVC,eAAe,EAAE;EAPP,CAlBQ;EA2BpBC,MAAM,EAAE;IACNC,KAAK,EAAE,OADD;IAENC,QAAQ,EAAE,UAFJ;IAGNC,QAAQ,EAAE,UAHJ;IAINC,MAAM,EAAE,oBAJF;IAKNC,KAAK,EAAE,QALD;IAMNC,WAAW,EAAE,iBANP;IAONC,YAAY,EAAE,MAPR;IAQNC,gBAAgB,EAAE;EARZ;AA3BY,CAAtB;AAuCA,eAAehC,aAAf"}
|