@vitrosoftware/common-ui-ts 1.1.204 → 1.1.205
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/index.js +24 -6
- package/dist/index.js.map +1 -1
- package/dist/src/controls/TableView/services/impl/TableViewServiceImpl.d.ts +1 -1
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/DxfViewer/js/dxf-viewer.js +14 -14
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
package/dist/index.js
CHANGED
|
@@ -21828,7 +21828,7 @@ var TableViewServiceImpl = /*#__PURE__*/function () {
|
|
|
21828
21828
|
return eventHandler.process.apply(eventHandler, params);
|
|
21829
21829
|
}, eventHandler.id);
|
|
21830
21830
|
};
|
|
21831
|
-
_proto.addEventHandler = function addEventHandler(eventHandler) {
|
|
21831
|
+
_proto.addEventHandler = function addEventHandler(eventHandler, ident) {
|
|
21832
21832
|
var grid = this;
|
|
21833
21833
|
w$1.TGAddEvent(eventHandler.id, this.id, function () {
|
|
21834
21834
|
for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
@@ -21838,7 +21838,7 @@ var TableViewServiceImpl = /*#__PURE__*/function () {
|
|
|
21838
21838
|
params[0] = grid;
|
|
21839
21839
|
}
|
|
21840
21840
|
return eventHandler.process.apply(eventHandler, params);
|
|
21841
|
-
},
|
|
21841
|
+
}, ident);
|
|
21842
21842
|
};
|
|
21843
21843
|
_proto.endEdit = function endEdit(success) {
|
|
21844
21844
|
return this.grid.EndEdit(success ? 1 : 0);
|
|
@@ -22262,11 +22262,11 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
22262
22262
|
if (props.onInit) {
|
|
22263
22263
|
props.onInit(grid, next);
|
|
22264
22264
|
}
|
|
22265
|
-
var
|
|
22265
|
+
var onDataSendEventHandler = {
|
|
22266
22266
|
id: EVENT$1.ON_DATA_SEND,
|
|
22267
22267
|
process: onDataSendHandler
|
|
22268
22268
|
};
|
|
22269
|
-
grid.
|
|
22269
|
+
grid.addEventHandler(onDataSendEventHandler);
|
|
22270
22270
|
};
|
|
22271
22271
|
var onGridInit = function onGridInit(g) {
|
|
22272
22272
|
g.scope = props.scope;
|
|
@@ -63164,7 +63164,7 @@ var Viewer = function Viewer(props) {
|
|
|
63164
63164
|
};
|
|
63165
63165
|
|
|
63166
63166
|
var name = "@vitrosoftware/common-ui-ts";
|
|
63167
|
-
var version$1 = "1.1.
|
|
63167
|
+
var version$1 = "1.1.205";
|
|
63168
63168
|
var description = "vitro software common ui ts";
|
|
63169
63169
|
var author = "";
|
|
63170
63170
|
var license = "MIT";
|
|
@@ -65155,6 +65155,23 @@ var DatePicker = React.forwardRef(function (props, ref) {
|
|
|
65155
65155
|
props.onChange(value, props.name);
|
|
65156
65156
|
}
|
|
65157
65157
|
};
|
|
65158
|
+
var onPaste = function onPaste(e) {
|
|
65159
|
+
if (!props.isReadOnly && !props.isDisabled) {
|
|
65160
|
+
var text = e.clipboardData.getData('text');
|
|
65161
|
+
var prevValue = $$4(inputRef.current).data(componentName).value();
|
|
65162
|
+
if (text) {
|
|
65163
|
+
$$4(inputRef.current).data(componentName).value(text);
|
|
65164
|
+
var parsedValue = $$4(inputRef.current).data(componentName).value();
|
|
65165
|
+
if (parsedValue) {
|
|
65166
|
+
if (props.onChange) {
|
|
65167
|
+
props.onChange(parsedValue, props.name);
|
|
65168
|
+
}
|
|
65169
|
+
} else {
|
|
65170
|
+
$$4(inputRef.current).data(componentName).value(prevValue);
|
|
65171
|
+
}
|
|
65172
|
+
}
|
|
65173
|
+
}
|
|
65174
|
+
};
|
|
65158
65175
|
var getClassName = function getClassName() {
|
|
65159
65176
|
var classList = [styles$W['vitro-control'], props.className];
|
|
65160
65177
|
if (props.isDisabled || props.isReadOnly) {
|
|
@@ -65178,7 +65195,8 @@ var DatePicker = React.forwardRef(function (props, ref) {
|
|
|
65178
65195
|
ref: inputRef,
|
|
65179
65196
|
placeholder: props.placeholder,
|
|
65180
65197
|
onFocus: onFocus,
|
|
65181
|
-
onBlur: onBlur
|
|
65198
|
+
onBlur: onBlur,
|
|
65199
|
+
onPaste: onPaste
|
|
65182
65200
|
}), props.isReadOnly ? React__default.createElement(CopyButton, {
|
|
65183
65201
|
className: styles$W['vitro-copy-button'],
|
|
65184
65202
|
value: ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.toString()) || CTRL.EMPTY
|