@vertexvis/viewer-react 0.24.5-canary.0 → 0.24.5-canary.2
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/bundle.cjs.js +108 -119
- package/dist/bundle.cjs.js.map +1 -1
- package/dist/bundle.esm.js +108 -119
- package/dist/bundle.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/bundle.cjs.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib = require('tslib');
|
|
6
5
|
var React = require('react');
|
|
7
6
|
require('react-dom');
|
|
8
7
|
|
|
@@ -10,25 +9,22 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
10
9
|
|
|
11
10
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
var camelToDashCase = function (str) { return str.replace(/([A-Z])/g, function (m) { return "-".concat(m[0].toLowerCase()); }); };
|
|
12
|
+
const dashToPascalCase = (str) => str
|
|
13
|
+
.toLowerCase()
|
|
14
|
+
.split('-')
|
|
15
|
+
.map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))
|
|
16
|
+
.join('');
|
|
17
|
+
const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);
|
|
21
18
|
|
|
22
|
-
|
|
23
|
-
if (oldProps === void 0) { oldProps = {}; }
|
|
19
|
+
const attachProps = (node, newProps, oldProps = {}) => {
|
|
24
20
|
// some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
|
|
25
21
|
if (node instanceof Element) {
|
|
26
22
|
// add any classes in className to the class list
|
|
27
|
-
|
|
23
|
+
const className = getClassName(node.classList, newProps, oldProps);
|
|
28
24
|
if (className !== '') {
|
|
29
25
|
node.className = className;
|
|
30
26
|
}
|
|
31
|
-
Object.keys(newProps).forEach(
|
|
27
|
+
Object.keys(newProps).forEach((name) => {
|
|
32
28
|
if (name === 'children' ||
|
|
33
29
|
name === 'style' ||
|
|
34
30
|
name === 'ref' ||
|
|
@@ -38,15 +34,15 @@ var attachProps = function (node, newProps, oldProps) {
|
|
|
38
34
|
return;
|
|
39
35
|
}
|
|
40
36
|
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
const eventName = name.substring(2);
|
|
38
|
+
const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
|
|
43
39
|
if (!isCoveredByReact(eventNameLc)) {
|
|
44
40
|
syncEvent(node, eventNameLc, newProps[name]);
|
|
45
41
|
}
|
|
46
42
|
}
|
|
47
43
|
else {
|
|
48
44
|
node[name] = newProps[name];
|
|
49
|
-
|
|
45
|
+
const propType = typeof newProps[name];
|
|
50
46
|
if (propType === 'string') {
|
|
51
47
|
node.setAttribute(camelToDashCase(name), newProps[name]);
|
|
52
48
|
}
|
|
@@ -54,17 +50,17 @@ var attachProps = function (node, newProps, oldProps) {
|
|
|
54
50
|
});
|
|
55
51
|
}
|
|
56
52
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
const getClassName = (classList, newProps, oldProps) => {
|
|
54
|
+
const newClassProp = newProps.className || newProps.class;
|
|
55
|
+
const oldClassProp = oldProps.className || oldProps.class;
|
|
60
56
|
// map the classes to Maps for performance
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
const currentClasses = arrayToMap(classList);
|
|
58
|
+
const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
|
|
59
|
+
const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
|
|
60
|
+
const finalClassNames = [];
|
|
65
61
|
// loop through each of the current classes on the component
|
|
66
62
|
// to see if it should be a part of the classNames added
|
|
67
|
-
currentClasses.forEach(
|
|
63
|
+
currentClasses.forEach((currentClass) => {
|
|
68
64
|
if (incomingPropClasses.has(currentClass)) {
|
|
69
65
|
// add it as its already included in classnames coming in from newProps
|
|
70
66
|
finalClassNames.push(currentClass);
|
|
@@ -75,13 +71,13 @@ var getClassName = function (classList, newProps, oldProps) {
|
|
|
75
71
|
finalClassNames.push(currentClass);
|
|
76
72
|
}
|
|
77
73
|
});
|
|
78
|
-
incomingPropClasses.forEach(
|
|
74
|
+
incomingPropClasses.forEach((s) => finalClassNames.push(s));
|
|
79
75
|
return finalClassNames.join(' ');
|
|
80
76
|
};
|
|
81
77
|
/**
|
|
82
78
|
* Transforms a React event name to a browser event name.
|
|
83
79
|
*/
|
|
84
|
-
|
|
80
|
+
const transformReactEventName = (eventNameSuffix) => {
|
|
85
81
|
switch (eventNameSuffix) {
|
|
86
82
|
case 'doubleclick':
|
|
87
83
|
return 'dblclick';
|
|
@@ -92,24 +88,24 @@ var transformReactEventName = function (eventNameSuffix) {
|
|
|
92
88
|
* Checks if an event is supported in the current execution environment.
|
|
93
89
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
94
90
|
*/
|
|
95
|
-
|
|
91
|
+
const isCoveredByReact = (eventNameSuffix) => {
|
|
96
92
|
if (typeof document === 'undefined') {
|
|
97
93
|
return true;
|
|
98
94
|
}
|
|
99
95
|
else {
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
const eventName = 'on' + transformReactEventName(eventNameSuffix);
|
|
97
|
+
let isSupported = eventName in document;
|
|
102
98
|
if (!isSupported) {
|
|
103
|
-
|
|
99
|
+
const element = document.createElement('div');
|
|
104
100
|
element.setAttribute(eventName, 'return;');
|
|
105
101
|
isSupported = typeof element[eventName] === 'function';
|
|
106
102
|
}
|
|
107
103
|
return isSupported;
|
|
108
104
|
}
|
|
109
105
|
};
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
const syncEvent = (node, eventName, newEventHandler) => {
|
|
107
|
+
const eventStore = node.__events || (node.__events = {});
|
|
108
|
+
const oldEventHandler = eventStore[eventName];
|
|
113
109
|
// Remove old listener so they don't double up.
|
|
114
110
|
if (oldEventHandler) {
|
|
115
111
|
node.removeEventListener(eventName, oldEventHandler);
|
|
@@ -121,13 +117,13 @@ var syncEvent = function (node, eventName, newEventHandler) {
|
|
|
121
117
|
}
|
|
122
118
|
}));
|
|
123
119
|
};
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
arr.forEach(
|
|
120
|
+
const arrayToMap = (arr) => {
|
|
121
|
+
const map = new Map();
|
|
122
|
+
arr.forEach((s) => map.set(s, s));
|
|
127
123
|
return map;
|
|
128
124
|
};
|
|
129
125
|
|
|
130
|
-
|
|
126
|
+
const setRef = (ref, value) => {
|
|
131
127
|
if (typeof ref === 'function') {
|
|
132
128
|
ref(value);
|
|
133
129
|
}
|
|
@@ -136,51 +132,45 @@ var setRef = function (ref, value) {
|
|
|
136
132
|
ref.current = value;
|
|
137
133
|
}
|
|
138
134
|
};
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
refs[_i] = arguments[_i];
|
|
143
|
-
}
|
|
144
|
-
return function (value) {
|
|
145
|
-
refs.forEach(function (ref) {
|
|
135
|
+
const mergeRefs = (...refs) => {
|
|
136
|
+
return (value) => {
|
|
137
|
+
refs.forEach((ref) => {
|
|
146
138
|
setRef(ref, value);
|
|
147
139
|
});
|
|
148
140
|
};
|
|
149
141
|
};
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
return React__default["default"].createElement(ReactComponent,
|
|
142
|
+
const createForwardRef = (ReactComponent, displayName) => {
|
|
143
|
+
const forwardRef = (props, ref) => {
|
|
144
|
+
return React__default["default"].createElement(ReactComponent, { ...props, forwardedRef: ref });
|
|
153
145
|
};
|
|
154
146
|
forwardRef.displayName = displayName;
|
|
155
147
|
return React__default["default"].forwardRef(forwardRef);
|
|
156
148
|
};
|
|
157
149
|
|
|
158
|
-
|
|
150
|
+
const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
|
|
159
151
|
if (defineCustomElement !== undefined) {
|
|
160
152
|
defineCustomElement();
|
|
161
153
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
_this.componentEl = element;
|
|
154
|
+
const displayName = dashToPascalCase(tagName);
|
|
155
|
+
const ReactComponent = class extends React__default["default"].Component {
|
|
156
|
+
constructor(props) {
|
|
157
|
+
super(props);
|
|
158
|
+
this.setComponentElRef = (element) => {
|
|
159
|
+
this.componentEl = element;
|
|
169
160
|
};
|
|
170
|
-
return _this;
|
|
171
161
|
}
|
|
172
|
-
|
|
162
|
+
componentDidMount() {
|
|
173
163
|
this.componentDidUpdate(this.props);
|
|
174
|
-
}
|
|
175
|
-
|
|
164
|
+
}
|
|
165
|
+
componentDidUpdate(prevProps) {
|
|
176
166
|
attachProps(this.componentEl, this.props, prevProps);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
167
|
+
}
|
|
168
|
+
render() {
|
|
169
|
+
const { children, forwardedRef, style, className, ref, ...cProps } = this.props;
|
|
170
|
+
let propsToPass = Object.keys(cProps).reduce((acc, name) => {
|
|
171
|
+
const value = cProps[name];
|
|
182
172
|
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
183
|
-
|
|
173
|
+
const eventName = name.substring(2).toLowerCase();
|
|
184
174
|
if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
|
|
185
175
|
acc[name] = value;
|
|
186
176
|
}
|
|
@@ -188,7 +178,7 @@ var createReactComponent = function (tagName, ReactComponentContext, manipulateP
|
|
|
188
178
|
else {
|
|
189
179
|
// we should only render strings, booleans, and numbers as attrs in html.
|
|
190
180
|
// objects, functions, arrays etc get synced via properties on mount.
|
|
191
|
-
|
|
181
|
+
const type = typeof value;
|
|
192
182
|
if (type === 'string' || type === 'boolean' || type === 'number') {
|
|
193
183
|
acc[camelToDashCase(name)] = value;
|
|
194
184
|
}
|
|
@@ -198,7 +188,11 @@ var createReactComponent = function (tagName, ReactComponentContext, manipulateP
|
|
|
198
188
|
if (manipulatePropsFunction) {
|
|
199
189
|
propsToPass = manipulatePropsFunction(this.props, propsToPass);
|
|
200
190
|
}
|
|
201
|
-
|
|
191
|
+
const newProps = {
|
|
192
|
+
...propsToPass,
|
|
193
|
+
ref: mergeRefs(forwardedRef, this.setComponentElRef),
|
|
194
|
+
style,
|
|
195
|
+
};
|
|
202
196
|
/**
|
|
203
197
|
* We use createElement here instead of
|
|
204
198
|
* React.createElement to work around a
|
|
@@ -207,16 +201,11 @@ var createReactComponent = function (tagName, ReactComponentContext, manipulateP
|
|
|
207
201
|
* as <tagname> instead of the actual Web Component.
|
|
208
202
|
*/
|
|
209
203
|
return React.createElement(tagName, newProps, children);
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
enumerable: false,
|
|
216
|
-
configurable: true
|
|
217
|
-
});
|
|
218
|
-
return class_1;
|
|
219
|
-
}(React__default["default"].Component));
|
|
204
|
+
}
|
|
205
|
+
static get displayName() {
|
|
206
|
+
return displayName;
|
|
207
|
+
}
|
|
208
|
+
};
|
|
220
209
|
// If context was passed to createReactComponent then conditionally add it to the Component Class
|
|
221
210
|
if (ReactComponentContext) {
|
|
222
211
|
ReactComponent.contextType = ReactComponentContext;
|
|
@@ -225,48 +214,48 @@ var createReactComponent = function (tagName, ReactComponentContext, manipulateP
|
|
|
225
214
|
};
|
|
226
215
|
|
|
227
216
|
/* eslint-disable */
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
217
|
+
const VertexSceneTree = /*@__PURE__*/ createReactComponent('vertex-scene-tree');
|
|
218
|
+
const VertexSceneTreeNotificationBanner = /*@__PURE__*/ createReactComponent('vertex-scene-tree-notification-banner');
|
|
219
|
+
const VertexSceneTreeSearch = /*@__PURE__*/ createReactComponent('vertex-scene-tree-search');
|
|
220
|
+
const VertexSceneTreeTableCell = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-cell');
|
|
221
|
+
const VertexSceneTreeTableColumn = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-column');
|
|
222
|
+
const VertexSceneTreeTableHeader = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-header');
|
|
223
|
+
const VertexSceneTreeTableLayout = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-layout');
|
|
224
|
+
const VertexSceneTreeTableResizeDivider = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-resize-divider');
|
|
225
|
+
const VertexSceneTreeToolbar = /*@__PURE__*/ createReactComponent('vertex-scene-tree-toolbar');
|
|
226
|
+
const VertexSceneTreeToolbarGroup = /*@__PURE__*/ createReactComponent('vertex-scene-tree-toolbar-group');
|
|
227
|
+
const VertexViewer = /*@__PURE__*/ createReactComponent('vertex-viewer');
|
|
228
|
+
const VertexViewerAnnotationCallout = /*@__PURE__*/ createReactComponent('vertex-viewer-annotation-callout');
|
|
229
|
+
const VertexViewerBoxQueryTool = /*@__PURE__*/ createReactComponent('vertex-viewer-box-query-tool');
|
|
230
|
+
const VertexViewerButton = /*@__PURE__*/ createReactComponent('vertex-viewer-button');
|
|
231
|
+
const VertexViewerDefaultToolbar = /*@__PURE__*/ createReactComponent('vertex-viewer-default-toolbar');
|
|
232
|
+
const VertexViewerDomElement = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-element');
|
|
233
|
+
const VertexViewerDomGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-group');
|
|
234
|
+
const VertexViewerDomRenderer = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-renderer');
|
|
235
|
+
const VertexViewerHitResultIndicator = /*@__PURE__*/ createReactComponent('vertex-viewer-hit-result-indicator');
|
|
236
|
+
const VertexViewerIcon = /*@__PURE__*/ createReactComponent('vertex-viewer-icon');
|
|
237
|
+
const VertexViewerLayer = /*@__PURE__*/ createReactComponent('vertex-viewer-layer');
|
|
238
|
+
const VertexViewerMarkup = /*@__PURE__*/ createReactComponent('vertex-viewer-markup');
|
|
239
|
+
const VertexViewerMarkupArrow = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-arrow');
|
|
240
|
+
const VertexViewerMarkupCircle = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-circle');
|
|
241
|
+
const VertexViewerMarkupFreeform = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-freeform');
|
|
242
|
+
const VertexViewerMarkupTool = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-tool');
|
|
243
|
+
const VertexViewerMeasurementDetails = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-details');
|
|
244
|
+
const VertexViewerMeasurementDistance = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-distance');
|
|
245
|
+
const VertexViewerMeasurementLine = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-line');
|
|
246
|
+
const VertexViewerMeasurementOverlays = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-overlays');
|
|
247
|
+
const VertexViewerMeasurementPrecise = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-precise');
|
|
248
|
+
const VertexViewerPinGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-group');
|
|
249
|
+
const VertexViewerPinLabel = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-label');
|
|
250
|
+
const VertexViewerPinLabelLine = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-label-line');
|
|
251
|
+
const VertexViewerPinTool = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-tool');
|
|
252
|
+
const VertexViewerSpinner = /*@__PURE__*/ createReactComponent('vertex-viewer-spinner');
|
|
253
|
+
const VertexViewerTeleportTool = /*@__PURE__*/ createReactComponent('vertex-viewer-teleport-tool');
|
|
254
|
+
const VertexViewerToolbar = /*@__PURE__*/ createReactComponent('vertex-viewer-toolbar');
|
|
255
|
+
const VertexViewerToolbarGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-toolbar-group');
|
|
256
|
+
const VertexViewerTransformWidget = /*@__PURE__*/ createReactComponent('vertex-viewer-transform-widget');
|
|
257
|
+
const VertexViewerViewCube = /*@__PURE__*/ createReactComponent('vertex-viewer-view-cube');
|
|
258
|
+
const VertexViewerWalkModeTool = /*@__PURE__*/ createReactComponent('vertex-viewer-walk-mode-tool');
|
|
270
259
|
|
|
271
260
|
exports.VertexSceneTree = VertexSceneTree;
|
|
272
261
|
exports.VertexSceneTreeNotificationBanner = VertexSceneTreeNotificationBanner;
|
package/dist/bundle.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.cjs.js","sources":["../src/generated/react-component-lib/utils/case.ts","../src/generated/react-component-lib/utils/attachProps.ts","../src/generated/react-component-lib/utils/index.tsx","../src/generated/react-component-lib/createComponent.tsx","../src/generated/components.ts"],"sourcesContent":["export const dashToPascalCase = (str: string) =>\n str\n .toLowerCase()\n .split('-')\n .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))\n .join('');\nexport const camelToDashCase = (str: string) => str.replace(/([A-Z])/g, (m: string) => `-${m[0].toLowerCase()}`);\n","import { camelToDashCase } from './case';\n\nexport const attachProps = (node: HTMLElement, newProps: any, oldProps: any = {}) => {\n // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first\n if (node instanceof Element) {\n // add any classes in className to the class list\n const className = getClassName(node.classList, newProps, oldProps);\n if (className !== '') {\n node.className = className;\n }\n\n Object.keys(newProps).forEach((name) => {\n if (\n name === 'children' ||\n name === 'style' ||\n name === 'ref' ||\n name === 'class' ||\n name === 'className' ||\n name === 'forwardedRef'\n ) {\n return;\n }\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2);\n const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);\n\n if (!isCoveredByReact(eventNameLc)) {\n syncEvent(node, eventNameLc, newProps[name]);\n }\n } else {\n (node as any)[name] = newProps[name];\n const propType = typeof newProps[name];\n if (propType === 'string') {\n node.setAttribute(camelToDashCase(name), newProps[name]);\n }\n }\n });\n }\n};\n\nexport const getClassName = (classList: DOMTokenList, newProps: any, oldProps: any) => {\n const newClassProp: string = newProps.className || newProps.class;\n const oldClassProp: string = oldProps.className || oldProps.class;\n // map the classes to Maps for performance\n const currentClasses = arrayToMap(classList);\n const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);\n const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);\n const finalClassNames: string[] = [];\n // loop through each of the current classes on the component\n // to see if it should be a part of the classNames added\n currentClasses.forEach((currentClass) => {\n if (incomingPropClasses.has(currentClass)) {\n // add it as its already included in classnames coming in from newProps\n finalClassNames.push(currentClass);\n incomingPropClasses.delete(currentClass);\n } else if (!oldPropClasses.has(currentClass)) {\n // add it as it has NOT been removed by user\n finalClassNames.push(currentClass);\n }\n });\n incomingPropClasses.forEach((s) => finalClassNames.push(s));\n return finalClassNames.join(' ');\n};\n\n/**\n * Transforms a React event name to a browser event name.\n */\nexport const transformReactEventName = (eventNameSuffix: string) => {\n switch (eventNameSuffix) {\n case 'doubleclick':\n return 'dblclick';\n }\n return eventNameSuffix;\n};\n\n/**\n * Checks if an event is supported in the current execution environment.\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\nexport const isCoveredByReact = (eventNameSuffix: string) => {\n if (typeof document === 'undefined') {\n return true;\n } else {\n const eventName = 'on' + transformReactEventName(eventNameSuffix);\n let isSupported = eventName in document;\n\n if (!isSupported) {\n const element = document.createElement('div');\n element.setAttribute(eventName, 'return;');\n isSupported = typeof (element as any)[eventName] === 'function';\n }\n\n return isSupported;\n }\n};\n\nexport const syncEvent = (\n node: Element & { __events?: { [key: string]: ((e: Event) => any) | undefined } },\n eventName: string,\n newEventHandler?: (e: Event) => any\n) => {\n const eventStore = node.__events || (node.__events = {});\n const oldEventHandler = eventStore[eventName];\n\n // Remove old listener so they don't double up.\n if (oldEventHandler) {\n node.removeEventListener(eventName, oldEventHandler);\n }\n\n // Bind new listener.\n node.addEventListener(\n eventName,\n (eventStore[eventName] = function handler(e: Event) {\n if (newEventHandler) {\n newEventHandler.call(this, e);\n }\n })\n );\n};\n\nconst arrayToMap = (arr: string[] | DOMTokenList) => {\n const map = new Map<string, string>();\n (arr as string[]).forEach((s: string) => map.set(s, s));\n return map;\n};\n","import React from 'react';\n\nimport type { StyleReactProps } from '../interfaces';\n\nexport type StencilReactExternalProps<PropType, ElementType> = PropType &\n Omit<React.HTMLAttributes<ElementType>, 'style'> &\n StyleReactProps;\n\n// This will be replaced with React.ForwardedRef when react-output-target is upgraded to React v17\nexport type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;\n\nexport const setRef = (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null) {\n // Cast as a MutableRef so we can assign current\n (ref as React.MutableRefObject<any>).current = value;\n }\n};\n\nexport const mergeRefs = (\n ...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]\n): React.RefCallback<any> => {\n return (value: any) => {\n refs.forEach((ref) => {\n setRef(ref, value);\n });\n };\n};\n\nexport const createForwardRef = <PropType, ElementType>(ReactComponent: any, displayName: string) => {\n const forwardRef = (\n props: StencilReactExternalProps<PropType, ElementType>,\n ref: StencilReactForwardedRef<ElementType>\n ) => {\n return <ReactComponent {...props} forwardedRef={ref} />;\n };\n forwardRef.displayName = displayName;\n\n return React.forwardRef(forwardRef);\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\nexport * from './attachProps';\nexport * from './case';\n","import React, { createElement } from 'react';\n\nimport { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils';\n\nexport interface HTMLStencilElement extends HTMLElement {\n componentOnReady(): Promise<this>;\n}\n\ninterface StencilReactInternalProps<ElementType> extends React.HTMLAttributes<ElementType> {\n forwardedRef: React.RefObject<ElementType>;\n ref?: React.Ref<any>;\n}\n\nexport const createReactComponent = <\n PropType,\n ElementType extends HTMLStencilElement,\n ContextStateType = {},\n ExpandedPropsTypes = {}\n>(\n tagName: string,\n ReactComponentContext?: React.Context<ContextStateType>,\n manipulatePropsFunction?: (\n originalProps: StencilReactInternalProps<ElementType>,\n propsToPass: any\n ) => ExpandedPropsTypes,\n defineCustomElement?: () => void\n) => {\n if (defineCustomElement !== undefined) {\n defineCustomElement();\n }\n\n const displayName = dashToPascalCase(tagName);\n const ReactComponent = class extends React.Component<StencilReactInternalProps<ElementType>> {\n componentEl!: ElementType;\n\n setComponentElRef = (element: ElementType) => {\n this.componentEl = element;\n };\n\n constructor(props: StencilReactInternalProps<ElementType>) {\n super(props);\n }\n\n componentDidMount() {\n this.componentDidUpdate(this.props);\n }\n\n componentDidUpdate(prevProps: StencilReactInternalProps<ElementType>) {\n attachProps(this.componentEl, this.props, prevProps);\n }\n\n render() {\n const { children, forwardedRef, style, className, ref, ...cProps } = this.props;\n\n let propsToPass = Object.keys(cProps).reduce((acc: any, name) => {\n const value = (cProps as any)[name];\n\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2).toLowerCase();\n if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {\n acc[name] = value;\n }\n } else {\n // we should only render strings, booleans, and numbers as attrs in html.\n // objects, functions, arrays etc get synced via properties on mount.\n const type = typeof value;\n\n if (type === 'string' || type === 'boolean' || type === 'number') {\n acc[camelToDashCase(name)] = value;\n }\n }\n return acc;\n }, {} as ExpandedPropsTypes);\n\n if (manipulatePropsFunction) {\n propsToPass = manipulatePropsFunction(this.props, propsToPass);\n }\n\n const newProps: Omit<StencilReactInternalProps<ElementType>, 'forwardedRef'> = {\n ...propsToPass,\n ref: mergeRefs(forwardedRef, this.setComponentElRef),\n style,\n };\n\n /**\n * We use createElement here instead of\n * React.createElement to work around a\n * bug in Vite (https://github.com/vitejs/vite/issues/6104).\n * React.createElement causes all elements to be rendered\n * as <tagname> instead of the actual Web Component.\n */\n return createElement(tagName, newProps, children);\n }\n\n static get displayName() {\n return displayName;\n }\n };\n\n // If context was passed to createReactComponent then conditionally add it to the Component Class\n if (ReactComponentContext) {\n ReactComponent.contextType = ReactComponentContext;\n }\n\n return createForwardRef<PropType, ElementType>(ReactComponent, displayName);\n};\n","/* eslint-disable */\n/* tslint:disable */\n/* auto-generated react proxies */\nimport { createReactComponent } from './react-component-lib';\n\nimport type { JSX } from '@vertexvis/viewer';\n\n\n\nexport const VertexSceneTree = /*@__PURE__*/createReactComponent<JSX.VertexSceneTree, HTMLVertexSceneTreeElement>('vertex-scene-tree');\nexport const VertexSceneTreeNotificationBanner = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeNotificationBanner, HTMLVertexSceneTreeNotificationBannerElement>('vertex-scene-tree-notification-banner');\nexport const VertexSceneTreeSearch = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeSearch, HTMLVertexSceneTreeSearchElement>('vertex-scene-tree-search');\nexport const VertexSceneTreeTableCell = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableCell, HTMLVertexSceneTreeTableCellElement>('vertex-scene-tree-table-cell');\nexport const VertexSceneTreeTableColumn = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableColumn, HTMLVertexSceneTreeTableColumnElement>('vertex-scene-tree-table-column');\nexport const VertexSceneTreeTableHeader = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableHeader, HTMLVertexSceneTreeTableHeaderElement>('vertex-scene-tree-table-header');\nexport const VertexSceneTreeTableLayout = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableLayout, HTMLVertexSceneTreeTableLayoutElement>('vertex-scene-tree-table-layout');\nexport const VertexSceneTreeTableResizeDivider = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableResizeDivider, HTMLVertexSceneTreeTableResizeDividerElement>('vertex-scene-tree-table-resize-divider');\nexport const VertexSceneTreeToolbar = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeToolbar, HTMLVertexSceneTreeToolbarElement>('vertex-scene-tree-toolbar');\nexport const VertexSceneTreeToolbarGroup = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeToolbarGroup, HTMLVertexSceneTreeToolbarGroupElement>('vertex-scene-tree-toolbar-group');\nexport const VertexViewer = /*@__PURE__*/createReactComponent<JSX.VertexViewer, HTMLVertexViewerElement>('vertex-viewer');\nexport const VertexViewerAnnotationCallout = /*@__PURE__*/createReactComponent<JSX.VertexViewerAnnotationCallout, HTMLVertexViewerAnnotationCalloutElement>('vertex-viewer-annotation-callout');\nexport const VertexViewerBoxQueryTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerBoxQueryTool, HTMLVertexViewerBoxQueryToolElement>('vertex-viewer-box-query-tool');\nexport const VertexViewerButton = /*@__PURE__*/createReactComponent<JSX.VertexViewerButton, HTMLVertexViewerButtonElement>('vertex-viewer-button');\nexport const VertexViewerDefaultToolbar = /*@__PURE__*/createReactComponent<JSX.VertexViewerDefaultToolbar, HTMLVertexViewerDefaultToolbarElement>('vertex-viewer-default-toolbar');\nexport const VertexViewerDomElement = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomElement, HTMLVertexViewerDomElementElement>('vertex-viewer-dom-element');\nexport const VertexViewerDomGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomGroup, HTMLVertexViewerDomGroupElement>('vertex-viewer-dom-group');\nexport const VertexViewerDomRenderer = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomRenderer, HTMLVertexViewerDomRendererElement>('vertex-viewer-dom-renderer');\nexport const VertexViewerHitResultIndicator = /*@__PURE__*/createReactComponent<JSX.VertexViewerHitResultIndicator, HTMLVertexViewerHitResultIndicatorElement>('vertex-viewer-hit-result-indicator');\nexport const VertexViewerIcon = /*@__PURE__*/createReactComponent<JSX.VertexViewerIcon, HTMLVertexViewerIconElement>('vertex-viewer-icon');\nexport const VertexViewerLayer = /*@__PURE__*/createReactComponent<JSX.VertexViewerLayer, HTMLVertexViewerLayerElement>('vertex-viewer-layer');\nexport const VertexViewerMarkup = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkup, HTMLVertexViewerMarkupElement>('vertex-viewer-markup');\nexport const VertexViewerMarkupArrow = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupArrow, HTMLVertexViewerMarkupArrowElement>('vertex-viewer-markup-arrow');\nexport const VertexViewerMarkupCircle = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupCircle, HTMLVertexViewerMarkupCircleElement>('vertex-viewer-markup-circle');\nexport const VertexViewerMarkupFreeform = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupFreeform, HTMLVertexViewerMarkupFreeformElement>('vertex-viewer-markup-freeform');\nexport const VertexViewerMarkupTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupTool, HTMLVertexViewerMarkupToolElement>('vertex-viewer-markup-tool');\nexport const VertexViewerMeasurementDetails = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementDetails, HTMLVertexViewerMeasurementDetailsElement>('vertex-viewer-measurement-details');\nexport const VertexViewerMeasurementDistance = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementDistance, HTMLVertexViewerMeasurementDistanceElement>('vertex-viewer-measurement-distance');\nexport const VertexViewerMeasurementLine = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementLine, HTMLVertexViewerMeasurementLineElement>('vertex-viewer-measurement-line');\nexport const VertexViewerMeasurementOverlays = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementOverlays, HTMLVertexViewerMeasurementOverlaysElement>('vertex-viewer-measurement-overlays');\nexport const VertexViewerMeasurementPrecise = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementPrecise, HTMLVertexViewerMeasurementPreciseElement>('vertex-viewer-measurement-precise');\nexport const VertexViewerPinGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinGroup, HTMLVertexViewerPinGroupElement>('vertex-viewer-pin-group');\nexport const VertexViewerPinLabel = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinLabel, HTMLVertexViewerPinLabelElement>('vertex-viewer-pin-label');\nexport const VertexViewerPinLabelLine = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinLabelLine, HTMLVertexViewerPinLabelLineElement>('vertex-viewer-pin-label-line');\nexport const VertexViewerPinTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinTool, HTMLVertexViewerPinToolElement>('vertex-viewer-pin-tool');\nexport const VertexViewerSpinner = /*@__PURE__*/createReactComponent<JSX.VertexViewerSpinner, HTMLVertexViewerSpinnerElement>('vertex-viewer-spinner');\nexport const VertexViewerTeleportTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerTeleportTool, HTMLVertexViewerTeleportToolElement>('vertex-viewer-teleport-tool');\nexport const VertexViewerToolbar = /*@__PURE__*/createReactComponent<JSX.VertexViewerToolbar, HTMLVertexViewerToolbarElement>('vertex-viewer-toolbar');\nexport const VertexViewerToolbarGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerToolbarGroup, HTMLVertexViewerToolbarGroupElement>('vertex-viewer-toolbar-group');\nexport const VertexViewerTransformWidget = /*@__PURE__*/createReactComponent<JSX.VertexViewerTransformWidget, HTMLVertexViewerTransformWidgetElement>('vertex-viewer-transform-widget');\nexport const VertexViewerViewCube = /*@__PURE__*/createReactComponent<JSX.VertexViewerViewCube, HTMLVertexViewerViewCubeElement>('vertex-viewer-view-cube');\nexport const VertexViewerWalkModeTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerWalkModeTool, HTMLVertexViewerWalkModeToolElement>('vertex-viewer-walk-mode-tool');\n"],"names":["React","__assign","__extends","__rest","createElement"],"mappings":";;;;;;;;;;;;AAAO,IAAM,gBAAgB,GAAG,UAAC,GAAW,EAAA;AAC1C,IAAA,OAAA,GAAG;AACA,SAAA,WAAW,EAAE;SACb,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,UAAC,OAAO,EAAA,EAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAlD,EAAkD,CAAC;SACpE,IAAI,CAAC,EAAE,CAAC,CAAA;AAJX,CAIW,CAAC;AACP,IAAM,eAAe,GAAG,UAAC,GAAW,EAAA,EAAK,OAAA,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,UAAC,CAAS,EAAK,EAAA,OAAA,GAAI,CAAA,MAAA,CAAA,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAE,CAAxB,EAAwB,CAAC,CAAA,EAAA;;ACJzG,IAAM,WAAW,GAAG,UAAC,IAAiB,EAAE,QAAa,EAAE,QAAkB,EAAA;AAAlB,IAAA,IAAA,QAAA,KAAA,KAAA,CAAA,EAAA,EAAA,QAAkB,GAAA,EAAA,CAAA,EAAA;;IAE9E,IAAI,IAAI,YAAY,OAAO,EAAE;;AAE3B,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gB,oBAAoB,CAAkF,oCAAoC,EAAE;AAC3L,IAAA,2BAA2B,iBAAgB,oBAAoB,CAA0E,gCAAgC,EAAE;AAC3K,IAAA,+BAA+B,iBAAgB,oBAAoB,CAAkF,oCAAoC,EAAE;AAC3L,IAAA,8BAA8B,iBAAgB,oBAAoB,CAAgF,mCAAmC,EAAE;AACvL,IAAA,oBAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,IAAA,oBAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,IAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,8BAA8B,EAAE;AAChK,IAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,wBAAwB,EAAE;AAC3I,IAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,uBAAuB,EAAE;AAC1I,IAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,6BAA6B,EAAE;AAC/J,IAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,uBAAuB,EAAE;AAC1I,IAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,6BAA6B,EAAE;AAC/J,IAAA,2BAA2B,iBAAgB,oBAAoB,CAA0E,gCAAgC,EAAE;AAC3K,IAAA,oBAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,IAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"bundle.cjs.js","sources":["../src/generated/react-component-lib/utils/case.ts","../src/generated/react-component-lib/utils/attachProps.ts","../src/generated/react-component-lib/utils/index.tsx","../src/generated/react-component-lib/createComponent.tsx","../src/generated/components.ts"],"sourcesContent":["export const dashToPascalCase = (str: string) =>\n str\n .toLowerCase()\n .split('-')\n .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))\n .join('');\nexport const camelToDashCase = (str: string) => str.replace(/([A-Z])/g, (m: string) => `-${m[0].toLowerCase()}`);\n","import { camelToDashCase } from './case';\n\nexport const attachProps = (node: HTMLElement, newProps: any, oldProps: any = {}) => {\n // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first\n if (node instanceof Element) {\n // add any classes in className to the class list\n const className = getClassName(node.classList, newProps, oldProps);\n if (className !== '') {\n node.className = className;\n }\n\n Object.keys(newProps).forEach((name) => {\n if (\n name === 'children' ||\n name === 'style' ||\n name === 'ref' ||\n name === 'class' ||\n name === 'className' ||\n name === 'forwardedRef'\n ) {\n return;\n }\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2);\n const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);\n\n if (!isCoveredByReact(eventNameLc)) {\n syncEvent(node, eventNameLc, newProps[name]);\n }\n } else {\n (node as any)[name] = newProps[name];\n const propType = typeof newProps[name];\n if (propType === 'string') {\n node.setAttribute(camelToDashCase(name), newProps[name]);\n }\n }\n });\n }\n};\n\nexport const getClassName = (classList: DOMTokenList, newProps: any, oldProps: any) => {\n const newClassProp: string = newProps.className || newProps.class;\n const oldClassProp: string = oldProps.className || oldProps.class;\n // map the classes to Maps for performance\n const currentClasses = arrayToMap(classList);\n const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);\n const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);\n const finalClassNames: string[] = [];\n // loop through each of the current classes on the component\n // to see if it should be a part of the classNames added\n currentClasses.forEach((currentClass) => {\n if (incomingPropClasses.has(currentClass)) {\n // add it as its already included in classnames coming in from newProps\n finalClassNames.push(currentClass);\n incomingPropClasses.delete(currentClass);\n } else if (!oldPropClasses.has(currentClass)) {\n // add it as it has NOT been removed by user\n finalClassNames.push(currentClass);\n }\n });\n incomingPropClasses.forEach((s) => finalClassNames.push(s));\n return finalClassNames.join(' ');\n};\n\n/**\n * Transforms a React event name to a browser event name.\n */\nexport const transformReactEventName = (eventNameSuffix: string) => {\n switch (eventNameSuffix) {\n case 'doubleclick':\n return 'dblclick';\n }\n return eventNameSuffix;\n};\n\n/**\n * Checks if an event is supported in the current execution environment.\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\nexport const isCoveredByReact = (eventNameSuffix: string) => {\n if (typeof document === 'undefined') {\n return true;\n } else {\n const eventName = 'on' + transformReactEventName(eventNameSuffix);\n let isSupported = eventName in document;\n\n if (!isSupported) {\n const element = document.createElement('div');\n element.setAttribute(eventName, 'return;');\n isSupported = typeof (element as any)[eventName] === 'function';\n }\n\n return isSupported;\n }\n};\n\nexport const syncEvent = (\n node: Element & { __events?: { [key: string]: ((e: Event) => any) | undefined } },\n eventName: string,\n newEventHandler?: (e: Event) => any\n) => {\n const eventStore = node.__events || (node.__events = {});\n const oldEventHandler = eventStore[eventName];\n\n // Remove old listener so they don't double up.\n if (oldEventHandler) {\n node.removeEventListener(eventName, oldEventHandler);\n }\n\n // Bind new listener.\n node.addEventListener(\n eventName,\n (eventStore[eventName] = function handler(e: Event) {\n if (newEventHandler) {\n newEventHandler.call(this, e);\n }\n })\n );\n};\n\nconst arrayToMap = (arr: string[] | DOMTokenList) => {\n const map = new Map<string, string>();\n (arr as string[]).forEach((s: string) => map.set(s, s));\n return map;\n};\n","import React from 'react';\n\nimport type { StyleReactProps } from '../interfaces';\n\nexport type StencilReactExternalProps<PropType, ElementType> = PropType &\n Omit<React.HTMLAttributes<ElementType>, 'style'> &\n StyleReactProps;\n\n// This will be replaced with React.ForwardedRef when react-output-target is upgraded to React v17\nexport type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;\n\nexport const setRef = (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null) {\n // Cast as a MutableRef so we can assign current\n (ref as React.MutableRefObject<any>).current = value;\n }\n};\n\nexport const mergeRefs = (\n ...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]\n): React.RefCallback<any> => {\n return (value: any) => {\n refs.forEach((ref) => {\n setRef(ref, value);\n });\n };\n};\n\nexport const createForwardRef = <PropType, ElementType>(ReactComponent: any, displayName: string) => {\n const forwardRef = (\n props: StencilReactExternalProps<PropType, ElementType>,\n ref: StencilReactForwardedRef<ElementType>\n ) => {\n return <ReactComponent {...props} forwardedRef={ref} />;\n };\n forwardRef.displayName = displayName;\n\n return React.forwardRef(forwardRef);\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\nexport * from './attachProps';\nexport * from './case';\n","import React, { createElement } from 'react';\n\nimport { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils';\n\nexport interface HTMLStencilElement extends HTMLElement {\n componentOnReady(): Promise<this>;\n}\n\ninterface StencilReactInternalProps<ElementType> extends React.HTMLAttributes<ElementType> {\n forwardedRef: React.RefObject<ElementType>;\n ref?: React.Ref<any>;\n}\n\nexport const createReactComponent = <\n PropType,\n ElementType extends HTMLStencilElement,\n ContextStateType = {},\n ExpandedPropsTypes = {}\n>(\n tagName: string,\n ReactComponentContext?: React.Context<ContextStateType>,\n manipulatePropsFunction?: (\n originalProps: StencilReactInternalProps<ElementType>,\n propsToPass: any\n ) => ExpandedPropsTypes,\n defineCustomElement?: () => void\n) => {\n if (defineCustomElement !== undefined) {\n defineCustomElement();\n }\n\n const displayName = dashToPascalCase(tagName);\n const ReactComponent = class extends React.Component<StencilReactInternalProps<ElementType>> {\n componentEl!: ElementType;\n\n setComponentElRef = (element: ElementType) => {\n this.componentEl = element;\n };\n\n constructor(props: StencilReactInternalProps<ElementType>) {\n super(props);\n }\n\n componentDidMount() {\n this.componentDidUpdate(this.props);\n }\n\n componentDidUpdate(prevProps: StencilReactInternalProps<ElementType>) {\n attachProps(this.componentEl, this.props, prevProps);\n }\n\n render() {\n const { children, forwardedRef, style, className, ref, ...cProps } = this.props;\n\n let propsToPass = Object.keys(cProps).reduce((acc: any, name) => {\n const value = (cProps as any)[name];\n\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2).toLowerCase();\n if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {\n acc[name] = value;\n }\n } else {\n // we should only render strings, booleans, and numbers as attrs in html.\n // objects, functions, arrays etc get synced via properties on mount.\n const type = typeof value;\n\n if (type === 'string' || type === 'boolean' || type === 'number') {\n acc[camelToDashCase(name)] = value;\n }\n }\n return acc;\n }, {} as ExpandedPropsTypes);\n\n if (manipulatePropsFunction) {\n propsToPass = manipulatePropsFunction(this.props, propsToPass);\n }\n\n const newProps: Omit<StencilReactInternalProps<ElementType>, 'forwardedRef'> = {\n ...propsToPass,\n ref: mergeRefs(forwardedRef, this.setComponentElRef),\n style,\n };\n\n /**\n * We use createElement here instead of\n * React.createElement to work around a\n * bug in Vite (https://github.com/vitejs/vite/issues/6104).\n * React.createElement causes all elements to be rendered\n * as <tagname> instead of the actual Web Component.\n */\n return createElement(tagName, newProps, children);\n }\n\n static get displayName() {\n return displayName;\n }\n };\n\n // If context was passed to createReactComponent then conditionally add it to the Component Class\n if (ReactComponentContext) {\n ReactComponent.contextType = ReactComponentContext;\n }\n\n return createForwardRef<PropType, ElementType>(ReactComponent, displayName);\n};\n","/* eslint-disable */\n/* tslint:disable */\n/* auto-generated react proxies */\nimport { createReactComponent } from './react-component-lib';\n\nimport type { JSX } from '@vertexvis/viewer';\n\n\n\nexport const VertexSceneTree = /*@__PURE__*/createReactComponent<JSX.VertexSceneTree, HTMLVertexSceneTreeElement>('vertex-scene-tree');\nexport const VertexSceneTreeNotificationBanner = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeNotificationBanner, HTMLVertexSceneTreeNotificationBannerElement>('vertex-scene-tree-notification-banner');\nexport const VertexSceneTreeSearch = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeSearch, HTMLVertexSceneTreeSearchElement>('vertex-scene-tree-search');\nexport const VertexSceneTreeTableCell = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableCell, HTMLVertexSceneTreeTableCellElement>('vertex-scene-tree-table-cell');\nexport const VertexSceneTreeTableColumn = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableColumn, HTMLVertexSceneTreeTableColumnElement>('vertex-scene-tree-table-column');\nexport const VertexSceneTreeTableHeader = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableHeader, HTMLVertexSceneTreeTableHeaderElement>('vertex-scene-tree-table-header');\nexport const VertexSceneTreeTableLayout = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableLayout, HTMLVertexSceneTreeTableLayoutElement>('vertex-scene-tree-table-layout');\nexport const VertexSceneTreeTableResizeDivider = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableResizeDivider, HTMLVertexSceneTreeTableResizeDividerElement>('vertex-scene-tree-table-resize-divider');\nexport const VertexSceneTreeToolbar = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeToolbar, HTMLVertexSceneTreeToolbarElement>('vertex-scene-tree-toolbar');\nexport const VertexSceneTreeToolbarGroup = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeToolbarGroup, HTMLVertexSceneTreeToolbarGroupElement>('vertex-scene-tree-toolbar-group');\nexport const VertexViewer = /*@__PURE__*/createReactComponent<JSX.VertexViewer, HTMLVertexViewerElement>('vertex-viewer');\nexport const VertexViewerAnnotationCallout = /*@__PURE__*/createReactComponent<JSX.VertexViewerAnnotationCallout, HTMLVertexViewerAnnotationCalloutElement>('vertex-viewer-annotation-callout');\nexport const VertexViewerBoxQueryTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerBoxQueryTool, HTMLVertexViewerBoxQueryToolElement>('vertex-viewer-box-query-tool');\nexport const VertexViewerButton = /*@__PURE__*/createReactComponent<JSX.VertexViewerButton, HTMLVertexViewerButtonElement>('vertex-viewer-button');\nexport const VertexViewerDefaultToolbar = /*@__PURE__*/createReactComponent<JSX.VertexViewerDefaultToolbar, HTMLVertexViewerDefaultToolbarElement>('vertex-viewer-default-toolbar');\nexport const VertexViewerDomElement = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomElement, HTMLVertexViewerDomElementElement>('vertex-viewer-dom-element');\nexport const VertexViewerDomGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomGroup, HTMLVertexViewerDomGroupElement>('vertex-viewer-dom-group');\nexport const VertexViewerDomRenderer = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomRenderer, HTMLVertexViewerDomRendererElement>('vertex-viewer-dom-renderer');\nexport const VertexViewerHitResultIndicator = /*@__PURE__*/createReactComponent<JSX.VertexViewerHitResultIndicator, HTMLVertexViewerHitResultIndicatorElement>('vertex-viewer-hit-result-indicator');\nexport const VertexViewerIcon = /*@__PURE__*/createReactComponent<JSX.VertexViewerIcon, HTMLVertexViewerIconElement>('vertex-viewer-icon');\nexport const VertexViewerLayer = /*@__PURE__*/createReactComponent<JSX.VertexViewerLayer, HTMLVertexViewerLayerElement>('vertex-viewer-layer');\nexport const VertexViewerMarkup = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkup, HTMLVertexViewerMarkupElement>('vertex-viewer-markup');\nexport const VertexViewerMarkupArrow = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupArrow, HTMLVertexViewerMarkupArrowElement>('vertex-viewer-markup-arrow');\nexport const VertexViewerMarkupCircle = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupCircle, HTMLVertexViewerMarkupCircleElement>('vertex-viewer-markup-circle');\nexport const VertexViewerMarkupFreeform = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupFreeform, HTMLVertexViewerMarkupFreeformElement>('vertex-viewer-markup-freeform');\nexport const VertexViewerMarkupTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupTool, HTMLVertexViewerMarkupToolElement>('vertex-viewer-markup-tool');\nexport const VertexViewerMeasurementDetails = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementDetails, HTMLVertexViewerMeasurementDetailsElement>('vertex-viewer-measurement-details');\nexport const VertexViewerMeasurementDistance = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementDistance, HTMLVertexViewerMeasurementDistanceElement>('vertex-viewer-measurement-distance');\nexport const VertexViewerMeasurementLine = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementLine, HTMLVertexViewerMeasurementLineElement>('vertex-viewer-measurement-line');\nexport const VertexViewerMeasurementOverlays = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementOverlays, HTMLVertexViewerMeasurementOverlaysElement>('vertex-viewer-measurement-overlays');\nexport const VertexViewerMeasurementPrecise = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementPrecise, HTMLVertexViewerMeasurementPreciseElement>('vertex-viewer-measurement-precise');\nexport const VertexViewerPinGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinGroup, HTMLVertexViewerPinGroupElement>('vertex-viewer-pin-group');\nexport const VertexViewerPinLabel = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinLabel, HTMLVertexViewerPinLabelElement>('vertex-viewer-pin-label');\nexport const VertexViewerPinLabelLine = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinLabelLine, HTMLVertexViewerPinLabelLineElement>('vertex-viewer-pin-label-line');\nexport const VertexViewerPinTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinTool, HTMLVertexViewerPinToolElement>('vertex-viewer-pin-tool');\nexport const VertexViewerSpinner = /*@__PURE__*/createReactComponent<JSX.VertexViewerSpinner, HTMLVertexViewerSpinnerElement>('vertex-viewer-spinner');\nexport const VertexViewerTeleportTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerTeleportTool, HTMLVertexViewerTeleportToolElement>('vertex-viewer-teleport-tool');\nexport const VertexViewerToolbar = /*@__PURE__*/createReactComponent<JSX.VertexViewerToolbar, HTMLVertexViewerToolbarElement>('vertex-viewer-toolbar');\nexport const VertexViewerToolbarGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerToolbarGroup, HTMLVertexViewerToolbarGroupElement>('vertex-viewer-toolbar-group');\nexport const VertexViewerTransformWidget = /*@__PURE__*/createReactComponent<JSX.VertexViewerTransformWidget, HTMLVertexViewerTransformWidgetElement>('vertex-viewer-transform-widget');\nexport const VertexViewerViewCube = /*@__PURE__*/createReactComponent<JSX.VertexViewerViewCube, HTMLVertexViewerViewCubeElement>('vertex-viewer-view-cube');\nexport const VertexViewerWalkModeTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerWalkModeTool, HTMLVertexViewerWalkModeToolElement>('vertex-viewer-walk-mode-tool');\n"],"names":["React","createElement"],"mappings":";;;;;;;;;;;AAAO,MAAM,gBAAgB,GAAG,CAAC,GAAW,KAC1C,GAAG;AACA,KAAA,WAAW,EAAE;KACb,KAAK,CAAC,GAAG,CAAC;KACV,GAAG,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACpE,IAAI,CAAC,EAAE,CAAC,CAAC;AACP,MAAM,eAAe,GAAG,CAAC,GAAW,KAAK,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAS,KAAK,CAAA,CAAA,EAAI,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA,CAAE,CAAC;;ACJzG,MAAM,WAAW,GAAG,CAAC,IAAiB,EAAE,QAAa,EAAE,QAAA,GAAgB,EAAE,KAAI;;IAElF,IAAI,IAAI,YAAY,OAAO,EAAE;;AAE3B,QAAA,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACnE,IAAI,SAAS,KAAK,EAAE,EAAE;AACpB,YAAA,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;AAC5B,SAAA;QAED,MA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3
2
|
import 'react-dom';
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
var camelToDashCase = function (str) { return str.replace(/([A-Z])/g, function (m) { return "-".concat(m[0].toLowerCase()); }); };
|
|
4
|
+
const dashToPascalCase = (str) => str
|
|
5
|
+
.toLowerCase()
|
|
6
|
+
.split('-')
|
|
7
|
+
.map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))
|
|
8
|
+
.join('');
|
|
9
|
+
const camelToDashCase = (str) => str.replace(/([A-Z])/g, (m) => `-${m[0].toLowerCase()}`);
|
|
13
10
|
|
|
14
|
-
|
|
15
|
-
if (oldProps === void 0) { oldProps = {}; }
|
|
11
|
+
const attachProps = (node, newProps, oldProps = {}) => {
|
|
16
12
|
// some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first
|
|
17
13
|
if (node instanceof Element) {
|
|
18
14
|
// add any classes in className to the class list
|
|
19
|
-
|
|
15
|
+
const className = getClassName(node.classList, newProps, oldProps);
|
|
20
16
|
if (className !== '') {
|
|
21
17
|
node.className = className;
|
|
22
18
|
}
|
|
23
|
-
Object.keys(newProps).forEach(
|
|
19
|
+
Object.keys(newProps).forEach((name) => {
|
|
24
20
|
if (name === 'children' ||
|
|
25
21
|
name === 'style' ||
|
|
26
22
|
name === 'ref' ||
|
|
@@ -30,15 +26,15 @@ var attachProps = function (node, newProps, oldProps) {
|
|
|
30
26
|
return;
|
|
31
27
|
}
|
|
32
28
|
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
33
|
-
|
|
34
|
-
|
|
29
|
+
const eventName = name.substring(2);
|
|
30
|
+
const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);
|
|
35
31
|
if (!isCoveredByReact(eventNameLc)) {
|
|
36
32
|
syncEvent(node, eventNameLc, newProps[name]);
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
35
|
else {
|
|
40
36
|
node[name] = newProps[name];
|
|
41
|
-
|
|
37
|
+
const propType = typeof newProps[name];
|
|
42
38
|
if (propType === 'string') {
|
|
43
39
|
node.setAttribute(camelToDashCase(name), newProps[name]);
|
|
44
40
|
}
|
|
@@ -46,17 +42,17 @@ var attachProps = function (node, newProps, oldProps) {
|
|
|
46
42
|
});
|
|
47
43
|
}
|
|
48
44
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
const getClassName = (classList, newProps, oldProps) => {
|
|
46
|
+
const newClassProp = newProps.className || newProps.class;
|
|
47
|
+
const oldClassProp = oldProps.className || oldProps.class;
|
|
52
48
|
// map the classes to Maps for performance
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
const currentClasses = arrayToMap(classList);
|
|
50
|
+
const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);
|
|
51
|
+
const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);
|
|
52
|
+
const finalClassNames = [];
|
|
57
53
|
// loop through each of the current classes on the component
|
|
58
54
|
// to see if it should be a part of the classNames added
|
|
59
|
-
currentClasses.forEach(
|
|
55
|
+
currentClasses.forEach((currentClass) => {
|
|
60
56
|
if (incomingPropClasses.has(currentClass)) {
|
|
61
57
|
// add it as its already included in classnames coming in from newProps
|
|
62
58
|
finalClassNames.push(currentClass);
|
|
@@ -67,13 +63,13 @@ var getClassName = function (classList, newProps, oldProps) {
|
|
|
67
63
|
finalClassNames.push(currentClass);
|
|
68
64
|
}
|
|
69
65
|
});
|
|
70
|
-
incomingPropClasses.forEach(
|
|
66
|
+
incomingPropClasses.forEach((s) => finalClassNames.push(s));
|
|
71
67
|
return finalClassNames.join(' ');
|
|
72
68
|
};
|
|
73
69
|
/**
|
|
74
70
|
* Transforms a React event name to a browser event name.
|
|
75
71
|
*/
|
|
76
|
-
|
|
72
|
+
const transformReactEventName = (eventNameSuffix) => {
|
|
77
73
|
switch (eventNameSuffix) {
|
|
78
74
|
case 'doubleclick':
|
|
79
75
|
return 'dblclick';
|
|
@@ -84,24 +80,24 @@ var transformReactEventName = function (eventNameSuffix) {
|
|
|
84
80
|
* Checks if an event is supported in the current execution environment.
|
|
85
81
|
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
86
82
|
*/
|
|
87
|
-
|
|
83
|
+
const isCoveredByReact = (eventNameSuffix) => {
|
|
88
84
|
if (typeof document === 'undefined') {
|
|
89
85
|
return true;
|
|
90
86
|
}
|
|
91
87
|
else {
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
const eventName = 'on' + transformReactEventName(eventNameSuffix);
|
|
89
|
+
let isSupported = eventName in document;
|
|
94
90
|
if (!isSupported) {
|
|
95
|
-
|
|
91
|
+
const element = document.createElement('div');
|
|
96
92
|
element.setAttribute(eventName, 'return;');
|
|
97
93
|
isSupported = typeof element[eventName] === 'function';
|
|
98
94
|
}
|
|
99
95
|
return isSupported;
|
|
100
96
|
}
|
|
101
97
|
};
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
98
|
+
const syncEvent = (node, eventName, newEventHandler) => {
|
|
99
|
+
const eventStore = node.__events || (node.__events = {});
|
|
100
|
+
const oldEventHandler = eventStore[eventName];
|
|
105
101
|
// Remove old listener so they don't double up.
|
|
106
102
|
if (oldEventHandler) {
|
|
107
103
|
node.removeEventListener(eventName, oldEventHandler);
|
|
@@ -113,13 +109,13 @@ var syncEvent = function (node, eventName, newEventHandler) {
|
|
|
113
109
|
}
|
|
114
110
|
}));
|
|
115
111
|
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
arr.forEach(
|
|
112
|
+
const arrayToMap = (arr) => {
|
|
113
|
+
const map = new Map();
|
|
114
|
+
arr.forEach((s) => map.set(s, s));
|
|
119
115
|
return map;
|
|
120
116
|
};
|
|
121
117
|
|
|
122
|
-
|
|
118
|
+
const setRef = (ref, value) => {
|
|
123
119
|
if (typeof ref === 'function') {
|
|
124
120
|
ref(value);
|
|
125
121
|
}
|
|
@@ -128,51 +124,45 @@ var setRef = function (ref, value) {
|
|
|
128
124
|
ref.current = value;
|
|
129
125
|
}
|
|
130
126
|
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
refs[_i] = arguments[_i];
|
|
135
|
-
}
|
|
136
|
-
return function (value) {
|
|
137
|
-
refs.forEach(function (ref) {
|
|
127
|
+
const mergeRefs = (...refs) => {
|
|
128
|
+
return (value) => {
|
|
129
|
+
refs.forEach((ref) => {
|
|
138
130
|
setRef(ref, value);
|
|
139
131
|
});
|
|
140
132
|
};
|
|
141
133
|
};
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
return React.createElement(ReactComponent,
|
|
134
|
+
const createForwardRef = (ReactComponent, displayName) => {
|
|
135
|
+
const forwardRef = (props, ref) => {
|
|
136
|
+
return React.createElement(ReactComponent, { ...props, forwardedRef: ref });
|
|
145
137
|
};
|
|
146
138
|
forwardRef.displayName = displayName;
|
|
147
139
|
return React.forwardRef(forwardRef);
|
|
148
140
|
};
|
|
149
141
|
|
|
150
|
-
|
|
142
|
+
const createReactComponent = (tagName, ReactComponentContext, manipulatePropsFunction, defineCustomElement) => {
|
|
151
143
|
if (defineCustomElement !== undefined) {
|
|
152
144
|
defineCustomElement();
|
|
153
145
|
}
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
_this.componentEl = element;
|
|
146
|
+
const displayName = dashToPascalCase(tagName);
|
|
147
|
+
const ReactComponent = class extends React.Component {
|
|
148
|
+
constructor(props) {
|
|
149
|
+
super(props);
|
|
150
|
+
this.setComponentElRef = (element) => {
|
|
151
|
+
this.componentEl = element;
|
|
161
152
|
};
|
|
162
|
-
return _this;
|
|
163
153
|
}
|
|
164
|
-
|
|
154
|
+
componentDidMount() {
|
|
165
155
|
this.componentDidUpdate(this.props);
|
|
166
|
-
}
|
|
167
|
-
|
|
156
|
+
}
|
|
157
|
+
componentDidUpdate(prevProps) {
|
|
168
158
|
attachProps(this.componentEl, this.props, prevProps);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
159
|
+
}
|
|
160
|
+
render() {
|
|
161
|
+
const { children, forwardedRef, style, className, ref, ...cProps } = this.props;
|
|
162
|
+
let propsToPass = Object.keys(cProps).reduce((acc, name) => {
|
|
163
|
+
const value = cProps[name];
|
|
174
164
|
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {
|
|
175
|
-
|
|
165
|
+
const eventName = name.substring(2).toLowerCase();
|
|
176
166
|
if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {
|
|
177
167
|
acc[name] = value;
|
|
178
168
|
}
|
|
@@ -180,7 +170,7 @@ var createReactComponent = function (tagName, ReactComponentContext, manipulateP
|
|
|
180
170
|
else {
|
|
181
171
|
// we should only render strings, booleans, and numbers as attrs in html.
|
|
182
172
|
// objects, functions, arrays etc get synced via properties on mount.
|
|
183
|
-
|
|
173
|
+
const type = typeof value;
|
|
184
174
|
if (type === 'string' || type === 'boolean' || type === 'number') {
|
|
185
175
|
acc[camelToDashCase(name)] = value;
|
|
186
176
|
}
|
|
@@ -190,7 +180,11 @@ var createReactComponent = function (tagName, ReactComponentContext, manipulateP
|
|
|
190
180
|
if (manipulatePropsFunction) {
|
|
191
181
|
propsToPass = manipulatePropsFunction(this.props, propsToPass);
|
|
192
182
|
}
|
|
193
|
-
|
|
183
|
+
const newProps = {
|
|
184
|
+
...propsToPass,
|
|
185
|
+
ref: mergeRefs(forwardedRef, this.setComponentElRef),
|
|
186
|
+
style,
|
|
187
|
+
};
|
|
194
188
|
/**
|
|
195
189
|
* We use createElement here instead of
|
|
196
190
|
* React.createElement to work around a
|
|
@@ -199,16 +193,11 @@ var createReactComponent = function (tagName, ReactComponentContext, manipulateP
|
|
|
199
193
|
* as <tagname> instead of the actual Web Component.
|
|
200
194
|
*/
|
|
201
195
|
return createElement(tagName, newProps, children);
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
enumerable: false,
|
|
208
|
-
configurable: true
|
|
209
|
-
});
|
|
210
|
-
return class_1;
|
|
211
|
-
}(React.Component));
|
|
196
|
+
}
|
|
197
|
+
static get displayName() {
|
|
198
|
+
return displayName;
|
|
199
|
+
}
|
|
200
|
+
};
|
|
212
201
|
// If context was passed to createReactComponent then conditionally add it to the Component Class
|
|
213
202
|
if (ReactComponentContext) {
|
|
214
203
|
ReactComponent.contextType = ReactComponentContext;
|
|
@@ -217,48 +206,48 @@ var createReactComponent = function (tagName, ReactComponentContext, manipulateP
|
|
|
217
206
|
};
|
|
218
207
|
|
|
219
208
|
/* eslint-disable */
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
209
|
+
const VertexSceneTree = /*@__PURE__*/ createReactComponent('vertex-scene-tree');
|
|
210
|
+
const VertexSceneTreeNotificationBanner = /*@__PURE__*/ createReactComponent('vertex-scene-tree-notification-banner');
|
|
211
|
+
const VertexSceneTreeSearch = /*@__PURE__*/ createReactComponent('vertex-scene-tree-search');
|
|
212
|
+
const VertexSceneTreeTableCell = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-cell');
|
|
213
|
+
const VertexSceneTreeTableColumn = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-column');
|
|
214
|
+
const VertexSceneTreeTableHeader = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-header');
|
|
215
|
+
const VertexSceneTreeTableLayout = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-layout');
|
|
216
|
+
const VertexSceneTreeTableResizeDivider = /*@__PURE__*/ createReactComponent('vertex-scene-tree-table-resize-divider');
|
|
217
|
+
const VertexSceneTreeToolbar = /*@__PURE__*/ createReactComponent('vertex-scene-tree-toolbar');
|
|
218
|
+
const VertexSceneTreeToolbarGroup = /*@__PURE__*/ createReactComponent('vertex-scene-tree-toolbar-group');
|
|
219
|
+
const VertexViewer = /*@__PURE__*/ createReactComponent('vertex-viewer');
|
|
220
|
+
const VertexViewerAnnotationCallout = /*@__PURE__*/ createReactComponent('vertex-viewer-annotation-callout');
|
|
221
|
+
const VertexViewerBoxQueryTool = /*@__PURE__*/ createReactComponent('vertex-viewer-box-query-tool');
|
|
222
|
+
const VertexViewerButton = /*@__PURE__*/ createReactComponent('vertex-viewer-button');
|
|
223
|
+
const VertexViewerDefaultToolbar = /*@__PURE__*/ createReactComponent('vertex-viewer-default-toolbar');
|
|
224
|
+
const VertexViewerDomElement = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-element');
|
|
225
|
+
const VertexViewerDomGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-group');
|
|
226
|
+
const VertexViewerDomRenderer = /*@__PURE__*/ createReactComponent('vertex-viewer-dom-renderer');
|
|
227
|
+
const VertexViewerHitResultIndicator = /*@__PURE__*/ createReactComponent('vertex-viewer-hit-result-indicator');
|
|
228
|
+
const VertexViewerIcon = /*@__PURE__*/ createReactComponent('vertex-viewer-icon');
|
|
229
|
+
const VertexViewerLayer = /*@__PURE__*/ createReactComponent('vertex-viewer-layer');
|
|
230
|
+
const VertexViewerMarkup = /*@__PURE__*/ createReactComponent('vertex-viewer-markup');
|
|
231
|
+
const VertexViewerMarkupArrow = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-arrow');
|
|
232
|
+
const VertexViewerMarkupCircle = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-circle');
|
|
233
|
+
const VertexViewerMarkupFreeform = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-freeform');
|
|
234
|
+
const VertexViewerMarkupTool = /*@__PURE__*/ createReactComponent('vertex-viewer-markup-tool');
|
|
235
|
+
const VertexViewerMeasurementDetails = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-details');
|
|
236
|
+
const VertexViewerMeasurementDistance = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-distance');
|
|
237
|
+
const VertexViewerMeasurementLine = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-line');
|
|
238
|
+
const VertexViewerMeasurementOverlays = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-overlays');
|
|
239
|
+
const VertexViewerMeasurementPrecise = /*@__PURE__*/ createReactComponent('vertex-viewer-measurement-precise');
|
|
240
|
+
const VertexViewerPinGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-group');
|
|
241
|
+
const VertexViewerPinLabel = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-label');
|
|
242
|
+
const VertexViewerPinLabelLine = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-label-line');
|
|
243
|
+
const VertexViewerPinTool = /*@__PURE__*/ createReactComponent('vertex-viewer-pin-tool');
|
|
244
|
+
const VertexViewerSpinner = /*@__PURE__*/ createReactComponent('vertex-viewer-spinner');
|
|
245
|
+
const VertexViewerTeleportTool = /*@__PURE__*/ createReactComponent('vertex-viewer-teleport-tool');
|
|
246
|
+
const VertexViewerToolbar = /*@__PURE__*/ createReactComponent('vertex-viewer-toolbar');
|
|
247
|
+
const VertexViewerToolbarGroup = /*@__PURE__*/ createReactComponent('vertex-viewer-toolbar-group');
|
|
248
|
+
const VertexViewerTransformWidget = /*@__PURE__*/ createReactComponent('vertex-viewer-transform-widget');
|
|
249
|
+
const VertexViewerViewCube = /*@__PURE__*/ createReactComponent('vertex-viewer-view-cube');
|
|
250
|
+
const VertexViewerWalkModeTool = /*@__PURE__*/ createReactComponent('vertex-viewer-walk-mode-tool');
|
|
262
251
|
|
|
263
252
|
export { VertexSceneTree, VertexSceneTreeNotificationBanner, VertexSceneTreeSearch, VertexSceneTreeTableCell, VertexSceneTreeTableColumn, VertexSceneTreeTableHeader, VertexSceneTreeTableLayout, VertexSceneTreeTableResizeDivider, VertexSceneTreeToolbar, VertexSceneTreeToolbarGroup, VertexViewer, VertexViewerAnnotationCallout, VertexViewerBoxQueryTool, VertexViewerButton, VertexViewerDefaultToolbar, VertexViewerDomElement, VertexViewerDomGroup, VertexViewerDomRenderer, VertexViewerHitResultIndicator, VertexViewerIcon, VertexViewerLayer, VertexViewerMarkup, VertexViewerMarkupArrow, VertexViewerMarkupCircle, VertexViewerMarkupFreeform, VertexViewerMarkupTool, VertexViewerMeasurementDetails, VertexViewerMeasurementDistance, VertexViewerMeasurementLine, VertexViewerMeasurementOverlays, VertexViewerMeasurementPrecise, VertexViewerPinGroup, VertexViewerPinLabel, VertexViewerPinLabelLine, VertexViewerPinTool, VertexViewerSpinner, VertexViewerTeleportTool, VertexViewerToolbar, VertexViewerToolbarGroup, VertexViewerTransformWidget, VertexViewerViewCube, VertexViewerWalkModeTool };
|
|
264
253
|
//# sourceMappingURL=bundle.esm.js.map
|
package/dist/bundle.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bundle.esm.js","sources":["../src/generated/react-component-lib/utils/case.ts","../src/generated/react-component-lib/utils/attachProps.ts","../src/generated/react-component-lib/utils/index.tsx","../src/generated/react-component-lib/createComponent.tsx","../src/generated/components.ts"],"sourcesContent":["export const dashToPascalCase = (str: string) =>\n str\n .toLowerCase()\n .split('-')\n .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))\n .join('');\nexport const camelToDashCase = (str: string) => str.replace(/([A-Z])/g, (m: string) => `-${m[0].toLowerCase()}`);\n","import { camelToDashCase } from './case';\n\nexport const attachProps = (node: HTMLElement, newProps: any, oldProps: any = {}) => {\n // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first\n if (node instanceof Element) {\n // add any classes in className to the class list\n const className = getClassName(node.classList, newProps, oldProps);\n if (className !== '') {\n node.className = className;\n }\n\n Object.keys(newProps).forEach((name) => {\n if (\n name === 'children' ||\n name === 'style' ||\n name === 'ref' ||\n name === 'class' ||\n name === 'className' ||\n name === 'forwardedRef'\n ) {\n return;\n }\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2);\n const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);\n\n if (!isCoveredByReact(eventNameLc)) {\n syncEvent(node, eventNameLc, newProps[name]);\n }\n } else {\n (node as any)[name] = newProps[name];\n const propType = typeof newProps[name];\n if (propType === 'string') {\n node.setAttribute(camelToDashCase(name), newProps[name]);\n }\n }\n });\n }\n};\n\nexport const getClassName = (classList: DOMTokenList, newProps: any, oldProps: any) => {\n const newClassProp: string = newProps.className || newProps.class;\n const oldClassProp: string = oldProps.className || oldProps.class;\n // map the classes to Maps for performance\n const currentClasses = arrayToMap(classList);\n const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);\n const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);\n const finalClassNames: string[] = [];\n // loop through each of the current classes on the component\n // to see if it should be a part of the classNames added\n currentClasses.forEach((currentClass) => {\n if (incomingPropClasses.has(currentClass)) {\n // add it as its already included in classnames coming in from newProps\n finalClassNames.push(currentClass);\n incomingPropClasses.delete(currentClass);\n } else if (!oldPropClasses.has(currentClass)) {\n // add it as it has NOT been removed by user\n finalClassNames.push(currentClass);\n }\n });\n incomingPropClasses.forEach((s) => finalClassNames.push(s));\n return finalClassNames.join(' ');\n};\n\n/**\n * Transforms a React event name to a browser event name.\n */\nexport const transformReactEventName = (eventNameSuffix: string) => {\n switch (eventNameSuffix) {\n case 'doubleclick':\n return 'dblclick';\n }\n return eventNameSuffix;\n};\n\n/**\n * Checks if an event is supported in the current execution environment.\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\nexport const isCoveredByReact = (eventNameSuffix: string) => {\n if (typeof document === 'undefined') {\n return true;\n } else {\n const eventName = 'on' + transformReactEventName(eventNameSuffix);\n let isSupported = eventName in document;\n\n if (!isSupported) {\n const element = document.createElement('div');\n element.setAttribute(eventName, 'return;');\n isSupported = typeof (element as any)[eventName] === 'function';\n }\n\n return isSupported;\n }\n};\n\nexport const syncEvent = (\n node: Element & { __events?: { [key: string]: ((e: Event) => any) | undefined } },\n eventName: string,\n newEventHandler?: (e: Event) => any\n) => {\n const eventStore = node.__events || (node.__events = {});\n const oldEventHandler = eventStore[eventName];\n\n // Remove old listener so they don't double up.\n if (oldEventHandler) {\n node.removeEventListener(eventName, oldEventHandler);\n }\n\n // Bind new listener.\n node.addEventListener(\n eventName,\n (eventStore[eventName] = function handler(e: Event) {\n if (newEventHandler) {\n newEventHandler.call(this, e);\n }\n })\n );\n};\n\nconst arrayToMap = (arr: string[] | DOMTokenList) => {\n const map = new Map<string, string>();\n (arr as string[]).forEach((s: string) => map.set(s, s));\n return map;\n};\n","import React from 'react';\n\nimport type { StyleReactProps } from '../interfaces';\n\nexport type StencilReactExternalProps<PropType, ElementType> = PropType &\n Omit<React.HTMLAttributes<ElementType>, 'style'> &\n StyleReactProps;\n\n// This will be replaced with React.ForwardedRef when react-output-target is upgraded to React v17\nexport type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;\n\nexport const setRef = (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null) {\n // Cast as a MutableRef so we can assign current\n (ref as React.MutableRefObject<any>).current = value;\n }\n};\n\nexport const mergeRefs = (\n ...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]\n): React.RefCallback<any> => {\n return (value: any) => {\n refs.forEach((ref) => {\n setRef(ref, value);\n });\n };\n};\n\nexport const createForwardRef = <PropType, ElementType>(ReactComponent: any, displayName: string) => {\n const forwardRef = (\n props: StencilReactExternalProps<PropType, ElementType>,\n ref: StencilReactForwardedRef<ElementType>\n ) => {\n return <ReactComponent {...props} forwardedRef={ref} />;\n };\n forwardRef.displayName = displayName;\n\n return React.forwardRef(forwardRef);\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\nexport * from './attachProps';\nexport * from './case';\n","import React, { createElement } from 'react';\n\nimport { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils';\n\nexport interface HTMLStencilElement extends HTMLElement {\n componentOnReady(): Promise<this>;\n}\n\ninterface StencilReactInternalProps<ElementType> extends React.HTMLAttributes<ElementType> {\n forwardedRef: React.RefObject<ElementType>;\n ref?: React.Ref<any>;\n}\n\nexport const createReactComponent = <\n PropType,\n ElementType extends HTMLStencilElement,\n ContextStateType = {},\n ExpandedPropsTypes = {}\n>(\n tagName: string,\n ReactComponentContext?: React.Context<ContextStateType>,\n manipulatePropsFunction?: (\n originalProps: StencilReactInternalProps<ElementType>,\n propsToPass: any\n ) => ExpandedPropsTypes,\n defineCustomElement?: () => void\n) => {\n if (defineCustomElement !== undefined) {\n defineCustomElement();\n }\n\n const displayName = dashToPascalCase(tagName);\n const ReactComponent = class extends React.Component<StencilReactInternalProps<ElementType>> {\n componentEl!: ElementType;\n\n setComponentElRef = (element: ElementType) => {\n this.componentEl = element;\n };\n\n constructor(props: StencilReactInternalProps<ElementType>) {\n super(props);\n }\n\n componentDidMount() {\n this.componentDidUpdate(this.props);\n }\n\n componentDidUpdate(prevProps: StencilReactInternalProps<ElementType>) {\n attachProps(this.componentEl, this.props, prevProps);\n }\n\n render() {\n const { children, forwardedRef, style, className, ref, ...cProps } = this.props;\n\n let propsToPass = Object.keys(cProps).reduce((acc: any, name) => {\n const value = (cProps as any)[name];\n\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2).toLowerCase();\n if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {\n acc[name] = value;\n }\n } else {\n // we should only render strings, booleans, and numbers as attrs in html.\n // objects, functions, arrays etc get synced via properties on mount.\n const type = typeof value;\n\n if (type === 'string' || type === 'boolean' || type === 'number') {\n acc[camelToDashCase(name)] = value;\n }\n }\n return acc;\n }, {} as ExpandedPropsTypes);\n\n if (manipulatePropsFunction) {\n propsToPass = manipulatePropsFunction(this.props, propsToPass);\n }\n\n const newProps: Omit<StencilReactInternalProps<ElementType>, 'forwardedRef'> = {\n ...propsToPass,\n ref: mergeRefs(forwardedRef, this.setComponentElRef),\n style,\n };\n\n /**\n * We use createElement here instead of\n * React.createElement to work around a\n * bug in Vite (https://github.com/vitejs/vite/issues/6104).\n * React.createElement causes all elements to be rendered\n * as <tagname> instead of the actual Web Component.\n */\n return createElement(tagName, newProps, children);\n }\n\n static get displayName() {\n return displayName;\n }\n };\n\n // If context was passed to createReactComponent then conditionally add it to the Component Class\n if (ReactComponentContext) {\n ReactComponent.contextType = ReactComponentContext;\n }\n\n return createForwardRef<PropType, ElementType>(ReactComponent, displayName);\n};\n","/* eslint-disable */\n/* tslint:disable */\n/* auto-generated react proxies */\nimport { createReactComponent } from './react-component-lib';\n\nimport type { JSX } from '@vertexvis/viewer';\n\n\n\nexport const VertexSceneTree = /*@__PURE__*/createReactComponent<JSX.VertexSceneTree, HTMLVertexSceneTreeElement>('vertex-scene-tree');\nexport const VertexSceneTreeNotificationBanner = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeNotificationBanner, HTMLVertexSceneTreeNotificationBannerElement>('vertex-scene-tree-notification-banner');\nexport const VertexSceneTreeSearch = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeSearch, HTMLVertexSceneTreeSearchElement>('vertex-scene-tree-search');\nexport const VertexSceneTreeTableCell = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableCell, HTMLVertexSceneTreeTableCellElement>('vertex-scene-tree-table-cell');\nexport const VertexSceneTreeTableColumn = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableColumn, HTMLVertexSceneTreeTableColumnElement>('vertex-scene-tree-table-column');\nexport const VertexSceneTreeTableHeader = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableHeader, HTMLVertexSceneTreeTableHeaderElement>('vertex-scene-tree-table-header');\nexport const VertexSceneTreeTableLayout = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableLayout, HTMLVertexSceneTreeTableLayoutElement>('vertex-scene-tree-table-layout');\nexport const VertexSceneTreeTableResizeDivider = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableResizeDivider, HTMLVertexSceneTreeTableResizeDividerElement>('vertex-scene-tree-table-resize-divider');\nexport const VertexSceneTreeToolbar = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeToolbar, HTMLVertexSceneTreeToolbarElement>('vertex-scene-tree-toolbar');\nexport const VertexSceneTreeToolbarGroup = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeToolbarGroup, HTMLVertexSceneTreeToolbarGroupElement>('vertex-scene-tree-toolbar-group');\nexport const VertexViewer = /*@__PURE__*/createReactComponent<JSX.VertexViewer, HTMLVertexViewerElement>('vertex-viewer');\nexport const VertexViewerAnnotationCallout = /*@__PURE__*/createReactComponent<JSX.VertexViewerAnnotationCallout, HTMLVertexViewerAnnotationCalloutElement>('vertex-viewer-annotation-callout');\nexport const VertexViewerBoxQueryTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerBoxQueryTool, HTMLVertexViewerBoxQueryToolElement>('vertex-viewer-box-query-tool');\nexport const VertexViewerButton = /*@__PURE__*/createReactComponent<JSX.VertexViewerButton, HTMLVertexViewerButtonElement>('vertex-viewer-button');\nexport const VertexViewerDefaultToolbar = /*@__PURE__*/createReactComponent<JSX.VertexViewerDefaultToolbar, HTMLVertexViewerDefaultToolbarElement>('vertex-viewer-default-toolbar');\nexport const VertexViewerDomElement = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomElement, HTMLVertexViewerDomElementElement>('vertex-viewer-dom-element');\nexport const VertexViewerDomGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomGroup, HTMLVertexViewerDomGroupElement>('vertex-viewer-dom-group');\nexport const VertexViewerDomRenderer = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomRenderer, HTMLVertexViewerDomRendererElement>('vertex-viewer-dom-renderer');\nexport const VertexViewerHitResultIndicator = /*@__PURE__*/createReactComponent<JSX.VertexViewerHitResultIndicator, HTMLVertexViewerHitResultIndicatorElement>('vertex-viewer-hit-result-indicator');\nexport const VertexViewerIcon = /*@__PURE__*/createReactComponent<JSX.VertexViewerIcon, HTMLVertexViewerIconElement>('vertex-viewer-icon');\nexport const VertexViewerLayer = /*@__PURE__*/createReactComponent<JSX.VertexViewerLayer, HTMLVertexViewerLayerElement>('vertex-viewer-layer');\nexport const VertexViewerMarkup = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkup, HTMLVertexViewerMarkupElement>('vertex-viewer-markup');\nexport const VertexViewerMarkupArrow = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupArrow, HTMLVertexViewerMarkupArrowElement>('vertex-viewer-markup-arrow');\nexport const VertexViewerMarkupCircle = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupCircle, HTMLVertexViewerMarkupCircleElement>('vertex-viewer-markup-circle');\nexport const VertexViewerMarkupFreeform = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupFreeform, HTMLVertexViewerMarkupFreeformElement>('vertex-viewer-markup-freeform');\nexport const VertexViewerMarkupTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupTool, HTMLVertexViewerMarkupToolElement>('vertex-viewer-markup-tool');\nexport const VertexViewerMeasurementDetails = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementDetails, HTMLVertexViewerMeasurementDetailsElement>('vertex-viewer-measurement-details');\nexport const VertexViewerMeasurementDistance = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementDistance, HTMLVertexViewerMeasurementDistanceElement>('vertex-viewer-measurement-distance');\nexport const VertexViewerMeasurementLine = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementLine, HTMLVertexViewerMeasurementLineElement>('vertex-viewer-measurement-line');\nexport const VertexViewerMeasurementOverlays = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementOverlays, HTMLVertexViewerMeasurementOverlaysElement>('vertex-viewer-measurement-overlays');\nexport const VertexViewerMeasurementPrecise = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementPrecise, HTMLVertexViewerMeasurementPreciseElement>('vertex-viewer-measurement-precise');\nexport const VertexViewerPinGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinGroup, HTMLVertexViewerPinGroupElement>('vertex-viewer-pin-group');\nexport const VertexViewerPinLabel = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinLabel, HTMLVertexViewerPinLabelElement>('vertex-viewer-pin-label');\nexport const VertexViewerPinLabelLine = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinLabelLine, HTMLVertexViewerPinLabelLineElement>('vertex-viewer-pin-label-line');\nexport const VertexViewerPinTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinTool, HTMLVertexViewerPinToolElement>('vertex-viewer-pin-tool');\nexport const VertexViewerSpinner = /*@__PURE__*/createReactComponent<JSX.VertexViewerSpinner, HTMLVertexViewerSpinnerElement>('vertex-viewer-spinner');\nexport const VertexViewerTeleportTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerTeleportTool, HTMLVertexViewerTeleportToolElement>('vertex-viewer-teleport-tool');\nexport const VertexViewerToolbar = /*@__PURE__*/createReactComponent<JSX.VertexViewerToolbar, HTMLVertexViewerToolbarElement>('vertex-viewer-toolbar');\nexport const VertexViewerToolbarGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerToolbarGroup, HTMLVertexViewerToolbarGroupElement>('vertex-viewer-toolbar-group');\nexport const VertexViewerTransformWidget = /*@__PURE__*/createReactComponent<JSX.VertexViewerTransformWidget, HTMLVertexViewerTransformWidgetElement>('vertex-viewer-transform-widget');\nexport const VertexViewerViewCube = /*@__PURE__*/createReactComponent<JSX.VertexViewerViewCube, HTMLVertexViewerViewCubeElement>('vertex-viewer-view-cube');\nexport const VertexViewerWalkModeTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerWalkModeTool, HTMLVertexViewerWalkModeToolElement>('vertex-viewer-walk-mode-tool');\n"],"names":[],"mappings":";;;;AAAO,IAAM,gBAAgB,GAAG,UAAC,GAAW,EAAA;AAC1C,IAAA,OAAA,GAAG;AACA,SAAA,WAAW,EAAE;SACb,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,UAAC,OAAO,EAAA,EAAK,OAAA,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAlD,EAAkD,CAAC;SACpE,IAAI,CAAC,EAAE,CAAC,CAAA;AAJX,CAIW,CAAC;AACP,IAAM,eAAe,GAAG,UAAC,GAAW,EAAA,EAAK,OAAA,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,UAAC,CAAS,EAAK,EAAA,OAAA,GAAI,CAAA,MAAA,CAAA,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAE,CAAxB,EAAwB,CAAC,CAAA,EAAA;;ACJzG,IAAM,WAAW,GAAG,UAAC,IAAiB,EAAE,QAAa,EAAE,QAAkB,EAAA;AAAlB,IAAA,IAAA,QAAA,KAAA,KAAA,CAAA,EAAA,EAAA,QAAkB,GAAA,EAAA,CAAA,EAAA;;IAE9E,IAAI,IAAI,YAAY,OAAO,EA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BAAoB,CAAkF,oCAAoC,EAAE;AAC3L,IAAA,2BAA2B,iBAAgB,oBAAoB,CAA0E,gCAAgC,EAAE;AAC3K,IAAA,+BAA+B,iBAAgB,oBAAoB,CAAkF,oCAAoC,EAAE;AAC3L,IAAA,8BAA8B,iBAAgB,oBAAoB,CAAgF,mCAAmC,EAAE;AACvL,IAAA,oBAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,IAAA,oBAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,IAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,8BAA8B,EAAE;AAChK,IAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,wBAAwB,EAAE;AAC3I,IAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,uBAAuB,EAAE;AAC1I,IAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,6BAA6B,EAAE;AAC/J,IAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,uBAAuB,EAAE;AAC1I,IAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,6BAA6B,EAAE;AAC/J,IAAA,2BAA2B,iBAAgB,oBAAoB,CAA0E,gCAAgC,EAAE;AAC3K,IAAA,oBAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,IAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,8BAA8B;;;;"}
|
|
1
|
+
{"version":3,"file":"bundle.esm.js","sources":["../src/generated/react-component-lib/utils/case.ts","../src/generated/react-component-lib/utils/attachProps.ts","../src/generated/react-component-lib/utils/index.tsx","../src/generated/react-component-lib/createComponent.tsx","../src/generated/components.ts"],"sourcesContent":["export const dashToPascalCase = (str: string) =>\n str\n .toLowerCase()\n .split('-')\n .map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1))\n .join('');\nexport const camelToDashCase = (str: string) => str.replace(/([A-Z])/g, (m: string) => `-${m[0].toLowerCase()}`);\n","import { camelToDashCase } from './case';\n\nexport const attachProps = (node: HTMLElement, newProps: any, oldProps: any = {}) => {\n // some test frameworks don't render DOM elements, so we test here to make sure we are dealing with DOM first\n if (node instanceof Element) {\n // add any classes in className to the class list\n const className = getClassName(node.classList, newProps, oldProps);\n if (className !== '') {\n node.className = className;\n }\n\n Object.keys(newProps).forEach((name) => {\n if (\n name === 'children' ||\n name === 'style' ||\n name === 'ref' ||\n name === 'class' ||\n name === 'className' ||\n name === 'forwardedRef'\n ) {\n return;\n }\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2);\n const eventNameLc = eventName[0].toLowerCase() + eventName.substring(1);\n\n if (!isCoveredByReact(eventNameLc)) {\n syncEvent(node, eventNameLc, newProps[name]);\n }\n } else {\n (node as any)[name] = newProps[name];\n const propType = typeof newProps[name];\n if (propType === 'string') {\n node.setAttribute(camelToDashCase(name), newProps[name]);\n }\n }\n });\n }\n};\n\nexport const getClassName = (classList: DOMTokenList, newProps: any, oldProps: any) => {\n const newClassProp: string = newProps.className || newProps.class;\n const oldClassProp: string = oldProps.className || oldProps.class;\n // map the classes to Maps for performance\n const currentClasses = arrayToMap(classList);\n const incomingPropClasses = arrayToMap(newClassProp ? newClassProp.split(' ') : []);\n const oldPropClasses = arrayToMap(oldClassProp ? oldClassProp.split(' ') : []);\n const finalClassNames: string[] = [];\n // loop through each of the current classes on the component\n // to see if it should be a part of the classNames added\n currentClasses.forEach((currentClass) => {\n if (incomingPropClasses.has(currentClass)) {\n // add it as its already included in classnames coming in from newProps\n finalClassNames.push(currentClass);\n incomingPropClasses.delete(currentClass);\n } else if (!oldPropClasses.has(currentClass)) {\n // add it as it has NOT been removed by user\n finalClassNames.push(currentClass);\n }\n });\n incomingPropClasses.forEach((s) => finalClassNames.push(s));\n return finalClassNames.join(' ');\n};\n\n/**\n * Transforms a React event name to a browser event name.\n */\nexport const transformReactEventName = (eventNameSuffix: string) => {\n switch (eventNameSuffix) {\n case 'doubleclick':\n return 'dblclick';\n }\n return eventNameSuffix;\n};\n\n/**\n * Checks if an event is supported in the current execution environment.\n * @license Modernizr 3.0.0pre (Custom Build) | MIT\n */\nexport const isCoveredByReact = (eventNameSuffix: string) => {\n if (typeof document === 'undefined') {\n return true;\n } else {\n const eventName = 'on' + transformReactEventName(eventNameSuffix);\n let isSupported = eventName in document;\n\n if (!isSupported) {\n const element = document.createElement('div');\n element.setAttribute(eventName, 'return;');\n isSupported = typeof (element as any)[eventName] === 'function';\n }\n\n return isSupported;\n }\n};\n\nexport const syncEvent = (\n node: Element & { __events?: { [key: string]: ((e: Event) => any) | undefined } },\n eventName: string,\n newEventHandler?: (e: Event) => any\n) => {\n const eventStore = node.__events || (node.__events = {});\n const oldEventHandler = eventStore[eventName];\n\n // Remove old listener so they don't double up.\n if (oldEventHandler) {\n node.removeEventListener(eventName, oldEventHandler);\n }\n\n // Bind new listener.\n node.addEventListener(\n eventName,\n (eventStore[eventName] = function handler(e: Event) {\n if (newEventHandler) {\n newEventHandler.call(this, e);\n }\n })\n );\n};\n\nconst arrayToMap = (arr: string[] | DOMTokenList) => {\n const map = new Map<string, string>();\n (arr as string[]).forEach((s: string) => map.set(s, s));\n return map;\n};\n","import React from 'react';\n\nimport type { StyleReactProps } from '../interfaces';\n\nexport type StencilReactExternalProps<PropType, ElementType> = PropType &\n Omit<React.HTMLAttributes<ElementType>, 'style'> &\n StyleReactProps;\n\n// This will be replaced with React.ForwardedRef when react-output-target is upgraded to React v17\nexport type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;\n\nexport const setRef = (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref != null) {\n // Cast as a MutableRef so we can assign current\n (ref as React.MutableRefObject<any>).current = value;\n }\n};\n\nexport const mergeRefs = (\n ...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]\n): React.RefCallback<any> => {\n return (value: any) => {\n refs.forEach((ref) => {\n setRef(ref, value);\n });\n };\n};\n\nexport const createForwardRef = <PropType, ElementType>(ReactComponent: any, displayName: string) => {\n const forwardRef = (\n props: StencilReactExternalProps<PropType, ElementType>,\n ref: StencilReactForwardedRef<ElementType>\n ) => {\n return <ReactComponent {...props} forwardedRef={ref} />;\n };\n forwardRef.displayName = displayName;\n\n return React.forwardRef(forwardRef);\n};\n\nexport const defineCustomElement = (tagName: string, customElement: any) => {\n if (customElement !== undefined && typeof customElements !== 'undefined' && !customElements.get(tagName)) {\n customElements.define(tagName, customElement);\n }\n};\n\nexport * from './attachProps';\nexport * from './case';\n","import React, { createElement } from 'react';\n\nimport { attachProps, camelToDashCase, createForwardRef, dashToPascalCase, isCoveredByReact, mergeRefs } from './utils';\n\nexport interface HTMLStencilElement extends HTMLElement {\n componentOnReady(): Promise<this>;\n}\n\ninterface StencilReactInternalProps<ElementType> extends React.HTMLAttributes<ElementType> {\n forwardedRef: React.RefObject<ElementType>;\n ref?: React.Ref<any>;\n}\n\nexport const createReactComponent = <\n PropType,\n ElementType extends HTMLStencilElement,\n ContextStateType = {},\n ExpandedPropsTypes = {}\n>(\n tagName: string,\n ReactComponentContext?: React.Context<ContextStateType>,\n manipulatePropsFunction?: (\n originalProps: StencilReactInternalProps<ElementType>,\n propsToPass: any\n ) => ExpandedPropsTypes,\n defineCustomElement?: () => void\n) => {\n if (defineCustomElement !== undefined) {\n defineCustomElement();\n }\n\n const displayName = dashToPascalCase(tagName);\n const ReactComponent = class extends React.Component<StencilReactInternalProps<ElementType>> {\n componentEl!: ElementType;\n\n setComponentElRef = (element: ElementType) => {\n this.componentEl = element;\n };\n\n constructor(props: StencilReactInternalProps<ElementType>) {\n super(props);\n }\n\n componentDidMount() {\n this.componentDidUpdate(this.props);\n }\n\n componentDidUpdate(prevProps: StencilReactInternalProps<ElementType>) {\n attachProps(this.componentEl, this.props, prevProps);\n }\n\n render() {\n const { children, forwardedRef, style, className, ref, ...cProps } = this.props;\n\n let propsToPass = Object.keys(cProps).reduce((acc: any, name) => {\n const value = (cProps as any)[name];\n\n if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) {\n const eventName = name.substring(2).toLowerCase();\n if (typeof document !== 'undefined' && isCoveredByReact(eventName)) {\n acc[name] = value;\n }\n } else {\n // we should only render strings, booleans, and numbers as attrs in html.\n // objects, functions, arrays etc get synced via properties on mount.\n const type = typeof value;\n\n if (type === 'string' || type === 'boolean' || type === 'number') {\n acc[camelToDashCase(name)] = value;\n }\n }\n return acc;\n }, {} as ExpandedPropsTypes);\n\n if (manipulatePropsFunction) {\n propsToPass = manipulatePropsFunction(this.props, propsToPass);\n }\n\n const newProps: Omit<StencilReactInternalProps<ElementType>, 'forwardedRef'> = {\n ...propsToPass,\n ref: mergeRefs(forwardedRef, this.setComponentElRef),\n style,\n };\n\n /**\n * We use createElement here instead of\n * React.createElement to work around a\n * bug in Vite (https://github.com/vitejs/vite/issues/6104).\n * React.createElement causes all elements to be rendered\n * as <tagname> instead of the actual Web Component.\n */\n return createElement(tagName, newProps, children);\n }\n\n static get displayName() {\n return displayName;\n }\n };\n\n // If context was passed to createReactComponent then conditionally add it to the Component Class\n if (ReactComponentContext) {\n ReactComponent.contextType = ReactComponentContext;\n }\n\n return createForwardRef<PropType, ElementType>(ReactComponent, displayName);\n};\n","/* eslint-disable */\n/* tslint:disable */\n/* auto-generated react proxies */\nimport { createReactComponent } from './react-component-lib';\n\nimport type { JSX } from '@vertexvis/viewer';\n\n\n\nexport const VertexSceneTree = /*@__PURE__*/createReactComponent<JSX.VertexSceneTree, HTMLVertexSceneTreeElement>('vertex-scene-tree');\nexport const VertexSceneTreeNotificationBanner = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeNotificationBanner, HTMLVertexSceneTreeNotificationBannerElement>('vertex-scene-tree-notification-banner');\nexport const VertexSceneTreeSearch = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeSearch, HTMLVertexSceneTreeSearchElement>('vertex-scene-tree-search');\nexport const VertexSceneTreeTableCell = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableCell, HTMLVertexSceneTreeTableCellElement>('vertex-scene-tree-table-cell');\nexport const VertexSceneTreeTableColumn = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableColumn, HTMLVertexSceneTreeTableColumnElement>('vertex-scene-tree-table-column');\nexport const VertexSceneTreeTableHeader = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableHeader, HTMLVertexSceneTreeTableHeaderElement>('vertex-scene-tree-table-header');\nexport const VertexSceneTreeTableLayout = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableLayout, HTMLVertexSceneTreeTableLayoutElement>('vertex-scene-tree-table-layout');\nexport const VertexSceneTreeTableResizeDivider = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeTableResizeDivider, HTMLVertexSceneTreeTableResizeDividerElement>('vertex-scene-tree-table-resize-divider');\nexport const VertexSceneTreeToolbar = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeToolbar, HTMLVertexSceneTreeToolbarElement>('vertex-scene-tree-toolbar');\nexport const VertexSceneTreeToolbarGroup = /*@__PURE__*/createReactComponent<JSX.VertexSceneTreeToolbarGroup, HTMLVertexSceneTreeToolbarGroupElement>('vertex-scene-tree-toolbar-group');\nexport const VertexViewer = /*@__PURE__*/createReactComponent<JSX.VertexViewer, HTMLVertexViewerElement>('vertex-viewer');\nexport const VertexViewerAnnotationCallout = /*@__PURE__*/createReactComponent<JSX.VertexViewerAnnotationCallout, HTMLVertexViewerAnnotationCalloutElement>('vertex-viewer-annotation-callout');\nexport const VertexViewerBoxQueryTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerBoxQueryTool, HTMLVertexViewerBoxQueryToolElement>('vertex-viewer-box-query-tool');\nexport const VertexViewerButton = /*@__PURE__*/createReactComponent<JSX.VertexViewerButton, HTMLVertexViewerButtonElement>('vertex-viewer-button');\nexport const VertexViewerDefaultToolbar = /*@__PURE__*/createReactComponent<JSX.VertexViewerDefaultToolbar, HTMLVertexViewerDefaultToolbarElement>('vertex-viewer-default-toolbar');\nexport const VertexViewerDomElement = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomElement, HTMLVertexViewerDomElementElement>('vertex-viewer-dom-element');\nexport const VertexViewerDomGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomGroup, HTMLVertexViewerDomGroupElement>('vertex-viewer-dom-group');\nexport const VertexViewerDomRenderer = /*@__PURE__*/createReactComponent<JSX.VertexViewerDomRenderer, HTMLVertexViewerDomRendererElement>('vertex-viewer-dom-renderer');\nexport const VertexViewerHitResultIndicator = /*@__PURE__*/createReactComponent<JSX.VertexViewerHitResultIndicator, HTMLVertexViewerHitResultIndicatorElement>('vertex-viewer-hit-result-indicator');\nexport const VertexViewerIcon = /*@__PURE__*/createReactComponent<JSX.VertexViewerIcon, HTMLVertexViewerIconElement>('vertex-viewer-icon');\nexport const VertexViewerLayer = /*@__PURE__*/createReactComponent<JSX.VertexViewerLayer, HTMLVertexViewerLayerElement>('vertex-viewer-layer');\nexport const VertexViewerMarkup = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkup, HTMLVertexViewerMarkupElement>('vertex-viewer-markup');\nexport const VertexViewerMarkupArrow = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupArrow, HTMLVertexViewerMarkupArrowElement>('vertex-viewer-markup-arrow');\nexport const VertexViewerMarkupCircle = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupCircle, HTMLVertexViewerMarkupCircleElement>('vertex-viewer-markup-circle');\nexport const VertexViewerMarkupFreeform = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupFreeform, HTMLVertexViewerMarkupFreeformElement>('vertex-viewer-markup-freeform');\nexport const VertexViewerMarkupTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerMarkupTool, HTMLVertexViewerMarkupToolElement>('vertex-viewer-markup-tool');\nexport const VertexViewerMeasurementDetails = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementDetails, HTMLVertexViewerMeasurementDetailsElement>('vertex-viewer-measurement-details');\nexport const VertexViewerMeasurementDistance = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementDistance, HTMLVertexViewerMeasurementDistanceElement>('vertex-viewer-measurement-distance');\nexport const VertexViewerMeasurementLine = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementLine, HTMLVertexViewerMeasurementLineElement>('vertex-viewer-measurement-line');\nexport const VertexViewerMeasurementOverlays = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementOverlays, HTMLVertexViewerMeasurementOverlaysElement>('vertex-viewer-measurement-overlays');\nexport const VertexViewerMeasurementPrecise = /*@__PURE__*/createReactComponent<JSX.VertexViewerMeasurementPrecise, HTMLVertexViewerMeasurementPreciseElement>('vertex-viewer-measurement-precise');\nexport const VertexViewerPinGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinGroup, HTMLVertexViewerPinGroupElement>('vertex-viewer-pin-group');\nexport const VertexViewerPinLabel = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinLabel, HTMLVertexViewerPinLabelElement>('vertex-viewer-pin-label');\nexport const VertexViewerPinLabelLine = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinLabelLine, HTMLVertexViewerPinLabelLineElement>('vertex-viewer-pin-label-line');\nexport const VertexViewerPinTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerPinTool, HTMLVertexViewerPinToolElement>('vertex-viewer-pin-tool');\nexport const VertexViewerSpinner = /*@__PURE__*/createReactComponent<JSX.VertexViewerSpinner, HTMLVertexViewerSpinnerElement>('vertex-viewer-spinner');\nexport const VertexViewerTeleportTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerTeleportTool, HTMLVertexViewerTeleportToolElement>('vertex-viewer-teleport-tool');\nexport const VertexViewerToolbar = /*@__PURE__*/createReactComponent<JSX.VertexViewerToolbar, HTMLVertexViewerToolbarElement>('vertex-viewer-toolbar');\nexport const VertexViewerToolbarGroup = /*@__PURE__*/createReactComponent<JSX.VertexViewerToolbarGroup, HTMLVertexViewerToolbarGroupElement>('vertex-viewer-toolbar-group');\nexport const VertexViewerTransformWidget = /*@__PURE__*/createReactComponent<JSX.VertexViewerTransformWidget, HTMLVertexViewerTransformWidgetElement>('vertex-viewer-transform-widget');\nexport const VertexViewerViewCube = /*@__PURE__*/createReactComponent<JSX.VertexViewerViewCube, HTMLVertexViewerViewCubeElement>('vertex-viewer-view-cube');\nexport const VertexViewerWalkModeTool = /*@__PURE__*/createReactComponent<JSX.VertexViewerWalkModeTool, HTMLVertexViewerWalkModeToolElement>('vertex-viewer-walk-mode-tool');\n"],"names":[],"mappings":";;;AAAO,MAAM,gBAAgB,GAAG,CAAC,GAAW,KAC1C,GAAG;AACA,KAAA,WAAW,EAAE;KACb,KAAK,CAAC,GAAG,CAAC;KACV,GAAG,CAAC,CAAC,OAAO,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;KACpE,IAAI,CAAC,EAAE,CAAC,CAAC;AACP,MAAM,eAAe,GAAG,CAAC,GAAW,KAAK,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,CAAS,KAAK,CAAA,CAAA,EAAI,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA,CAAE,CAAC;;ACJzG,MAAM,WAAW,GAAG,CAAC,IAAiB,EAAE,QAAa,EAAE,QAAA,GAAgB,EAAE,KAAI;;IAElF,IAAI,IAAI,YAAY,OAAO,EAAE;;AAE3B,QAAA,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACnE,IAAI,SAAS,KAAK,EAAE,EAAE;AACpB,YAAA,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;AAC5B,SAAA;QAED,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;Y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gE,2BAA2B,EAAE;AACvJ,MAAA,8BAA8B,iBAAgB,oBAAoB,CAAgF,mCAAmC,EAAE;AACvL,MAAA,+BAA+B,iBAAgB,oBAAoB,CAAkF,oCAAoC,EAAE;AAC3L,MAAA,2BAA2B,iBAAgB,oBAAoB,CAA0E,gCAAgC,EAAE;AAC3K,MAAA,+BAA+B,iBAAgB,oBAAoB,CAAkF,oCAAoC,EAAE;AAC3L,MAAA,8BAA8B,iBAAgB,oBAAoB,CAAgF,mCAAmC,EAAE;AACvL,MAAA,oBAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,MAAA,oBAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,MAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,8BAA8B,EAAE;AAChK,MAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,wBAAwB,EAAE;AAC3I,MAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,uBAAuB,EAAE;AAC1I,MAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,6BAA6B,EAAE;AAC/J,MAAA,mBAAmB,iBAAgB,oBAAoB,CAA0D,uBAAuB,EAAE;AAC1I,MAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,6BAA6B,EAAE;AAC/J,MAAA,2BAA2B,iBAAgB,oBAAoB,CAA0E,gCAAgC,EAAE;AAC3K,MAAA,oBAAoB,iBAAgB,oBAAoB,CAA4D,yBAAyB,EAAE;AAC/I,MAAA,wBAAwB,iBAAgB,oBAAoB,CAAoE,8BAA8B;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertexvis/viewer-react",
|
|
3
|
-
"version": "0.24.5-canary.
|
|
3
|
+
"version": "0.24.5-canary.2",
|
|
4
4
|
"description": "React bindings for the Vertex Viewer SDK.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Vertex Developers <support@vertexvis.com> (https://developer.vertexvis.com)",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"test:coverage": "echo 'No unit tests defined'"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@vertexvis/viewer": "0.24.5-canary.
|
|
36
|
+
"@vertexvis/viewer": "0.24.5-canary.2"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/react": "^18.2.48",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"react-dom": ">=16.3.0 <19.0.0",
|
|
50
50
|
"tslib": ">=2.1.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "c3d83c19259a0fe40bbc2fdf0d1193076926b054"
|
|
53
53
|
}
|