@vitrosoftware/common-ui-ts 1.1.204 → 1.1.206

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.
@@ -64,7 +64,7 @@ p {
64
64
  }
65
65
 
66
66
  body em {
67
- color: initial;
67
+ color: unset;
68
68
  }
69
69
 
70
70
  :global(#root) {
@@ -41,25 +41,6 @@
41
41
  min-width: 0;
42
42
  }
43
43
 
44
- .vitro-content p {
45
- margin-block-start: 0px;
46
- margin-block-end: 0px;
47
- margin-bottom: 0px;
48
- color: #bdbdbd;
49
- font-size: 9pt;
50
- line-height: 14px;
51
- }
52
-
53
- .vitro-content p span {
54
- font-size: 9pt !important;
55
- }
56
-
57
- .vitro-content :global(.vitro-status-changed) {
58
- font-style: normal;
59
- color: #27AE60;
60
- font-size: 9pt;
61
- }
62
-
63
44
  .vitro-message {
64
45
  overflow-wrap: anywhere;
65
46
  }
package/dist/index.css CHANGED
@@ -64,7 +64,7 @@ p {
64
64
  }
65
65
 
66
66
  body em {
67
- color: initial;
67
+ color: unset;
68
68
  }
69
69
 
70
70
  #root {
@@ -5649,27 +5649,6 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
5649
5649
  min-width: 0;
5650
5650
  }
5651
5651
 
5652
- ._activity-item_vitro-content_3Lt7XRy p {
5653
- -webkit-margin-before: 0px;
5654
- margin-block-start: 0px;
5655
- -webkit-margin-after: 0px;
5656
- margin-block-end: 0px;
5657
- margin-bottom: 0px;
5658
- color: #bdbdbd;
5659
- font-size: 9pt;
5660
- line-height: 14px;
5661
- }
5662
-
5663
- ._activity-item_vitro-content_3Lt7XRy p span {
5664
- font-size: 9pt !important;
5665
- }
5666
-
5667
- ._activity-item_vitro-content_3Lt7XRy .vitro-status-changed {
5668
- font-style: normal;
5669
- color: #27AE60;
5670
- font-size: 9pt;
5671
- }
5672
-
5673
5652
  ._activity-item_vitro-message_1ndqhgR {
5674
5653
  overflow-wrap: anywhere;
5675
5654
  }
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
- }, eventHandler.id);
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 onDateSendEventHandler = {
22265
+ var onDataSendEventHandler = {
22266
22266
  id: EVENT$1.ON_DATA_SEND,
22267
22267
  process: onDataSendHandler
22268
22268
  };
22269
- grid.setEventHandler(onDateSendEventHandler);
22269
+ grid.addEventHandler(onDataSendEventHandler);
22270
22270
  };
22271
22271
  var onGridInit = function onGridInit(g) {
22272
22272
  g.scope = props.scope;
@@ -60977,7 +60977,11 @@ var Tooltip$1 = function Tooltip(props) {
60977
60977
  overlay: React__default.createElement(TooltipComponent, {
60978
60978
  className: styles$c['vitro-tooltip'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
60979
60979
  style: props.style
60980
- }, props.text)
60980
+ }, props.isRichText ? React__default.createElement("p", {
60981
+ dangerouslySetInnerHTML: {
60982
+ __html: props.text
60983
+ }
60984
+ }) : props.text)
60981
60985
  }, props.children);
60982
60986
  };
60983
60987
 
@@ -63164,7 +63168,7 @@ var Viewer = function Viewer(props) {
63164
63168
  };
63165
63169
 
63166
63170
  var name = "@vitrosoftware/common-ui-ts";
63167
- var version$1 = "1.1.204";
63171
+ var version$1 = "1.1.206";
63168
63172
  var description = "vitro software common ui ts";
63169
63173
  var author = "";
63170
63174
  var license = "MIT";
@@ -65155,6 +65159,23 @@ var DatePicker = React.forwardRef(function (props, ref) {
65155
65159
  props.onChange(value, props.name);
65156
65160
  }
65157
65161
  };
65162
+ var onPaste = function onPaste(e) {
65163
+ if (!props.isReadOnly && !props.isDisabled) {
65164
+ var text = e.clipboardData.getData('text');
65165
+ var prevValue = $$4(inputRef.current).data(componentName).value();
65166
+ if (text) {
65167
+ $$4(inputRef.current).data(componentName).value(text);
65168
+ var parsedValue = $$4(inputRef.current).data(componentName).value();
65169
+ if (parsedValue) {
65170
+ if (props.onChange) {
65171
+ props.onChange(parsedValue, props.name);
65172
+ }
65173
+ } else {
65174
+ $$4(inputRef.current).data(componentName).value(prevValue);
65175
+ }
65176
+ }
65177
+ }
65178
+ };
65158
65179
  var getClassName = function getClassName() {
65159
65180
  var classList = [styles$W['vitro-control'], props.className];
65160
65181
  if (props.isDisabled || props.isReadOnly) {
@@ -65178,7 +65199,8 @@ var DatePicker = React.forwardRef(function (props, ref) {
65178
65199
  ref: inputRef,
65179
65200
  placeholder: props.placeholder,
65180
65201
  onFocus: onFocus,
65181
- onBlur: onBlur
65202
+ onBlur: onBlur,
65203
+ onPaste: onPaste
65182
65204
  }), props.isReadOnly ? React__default.createElement(CopyButton, {
65183
65205
  className: styles$W['vitro-copy-button'],
65184
65206
  value: ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.toString()) || CTRL.EMPTY
@@ -67248,19 +67270,27 @@ var ActivityMessage = function ActivityMessage(props) {
67248
67270
  className: styles$1f['vitro-field-name']
67249
67271
  }, "" + item.fieldName + CTRL.COLON), item.oldValue && React__default.createElement(React__default.Fragment, null, React__default.createElement(Tooltip$1, {
67250
67272
  text: item.oldValue,
67251
- isShow: isShowOldValueTooltip ? undefined : false
67273
+ isShow: isShowOldValueTooltip ? undefined : false,
67274
+ isRichText: item.isRichText
67252
67275
  }, React__default.createElement("div", {
67253
67276
  className: styles$1f['vitro-value'],
67254
- ref: oldValueRef
67255
- }, item.oldValue)), React__default.createElement("span", {
67277
+ ref: oldValueRef,
67278
+ dangerouslySetInnerHTML: item.isRichText ? {
67279
+ __html: item.oldValue
67280
+ } : undefined
67281
+ }, item.isRichText ? undefined : item.oldValue)), React__default.createElement("span", {
67256
67282
  className: styles$1f['vitro-separator']
67257
67283
  })), item.newValue && React__default.createElement(Tooltip$1, {
67258
67284
  text: item.newValue,
67259
- isShow: isShowNewValueTooltip ? undefined : false
67285
+ isShow: isShowNewValueTooltip ? undefined : false,
67286
+ isRichText: item.isRichText
67260
67287
  }, React__default.createElement("div", {
67261
67288
  className: item.isMessage ? styles$1f['vitro-message'] : styles$1f['vitro-value'],
67262
- ref: newValueRef
67263
- }, item.newValue)));
67289
+ ref: newValueRef,
67290
+ dangerouslySetInnerHTML: item.isRichText ? {
67291
+ __html: item.newValue
67292
+ } : undefined
67293
+ }, item.isRichText ? undefined : item.newValue)));
67264
67294
  })) : null, props.fileList && props.fileList.length ? React__default.createElement(AttachedFileList, Object.assign({
67265
67295
  fileList: props.fileList
67266
67296
  }, props)) : null);