@vitrosoftware/common-ui-ts 1.1.197 → 1.1.199

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.
@@ -7,7 +7,6 @@
7
7
 
8
8
  .TWMain, .TWMain * {
9
9
  font-size: 14px;
10
- line-height: 16px;
11
10
  font-family: "InterRegular";
12
11
  color: #222D44;
13
12
  border: none;
@@ -61,15 +60,10 @@
61
60
  .TWPanelSelect {
62
61
  width: 16px;
63
62
  height: 16px;
64
- margin-top: 3px;
65
63
  background-size: 24px;
66
64
  background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/table-view/img/checkbox-empty.svg');
67
65
  }
68
66
 
69
- .TWPanelSelectOn {
70
- margin-top: 3px;
71
- }
72
-
73
67
  .TWNE, .TWNER,
74
68
  .TWND4, .TWND4R {
75
69
  background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/table-view/img/collapse-right-grey.svg');
package/dist/index.js CHANGED
@@ -22387,9 +22387,12 @@ var MicroFrontend = React.forwardRef(function (props, ref) {
22387
22387
  var renderMicroFrontend = function renderMicroFrontend() {
22388
22388
  if (rootRef != null && rootRef.current != null) {
22389
22389
  var rendererName = "render" + props.name;
22390
- var containerId = getId(rootRef.current);
22391
- setId(containerId);
22392
- props.data.containerId = containerId;
22390
+ props.data.containerId = id;
22391
+ if (!id) {
22392
+ var containerId = getId(rootRef.current);
22393
+ setId(containerId);
22394
+ props.data.containerId = containerId;
22395
+ }
22393
22396
  microFrontendState.render(rendererName, rootRef.current, props.data, props.isReloadOnChange, 0);
22394
22397
  }
22395
22398
  microFrontendState.renderInProgress = false;
@@ -63128,7 +63131,7 @@ var Viewer = function Viewer(props) {
63128
63131
  };
63129
63132
 
63130
63133
  var name = "@vitrosoftware/common-ui-ts";
63131
- var version$1 = "1.1.197";
63134
+ var version$1 = "1.1.199";
63132
63135
  var description = "vitro software common ui ts";
63133
63136
  var author = "";
63134
63137
  var license = "MIT";
@@ -63442,8 +63445,10 @@ var Checkbox = React.forwardRef(function (props, ref) {
63442
63445
  };
63443
63446
  });
63444
63447
  var onChange = function onChange() {
63445
- props.onChange && props.onChange(!value, props.name);
63446
- _setValue(!value);
63448
+ if (!props.isReadOnly) {
63449
+ props.onChange && props.onChange(!value, props.name);
63450
+ _setValue(!value);
63451
+ }
63447
63452
  };
63448
63453
  var className = styles$L['vitro-control'] + (props.labelPosition === POSITION.LEFT ? CTRL.SPACE + styles$L['vitro-left-label'] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY);
63449
63454
  return React__default.createElement("div", {
@@ -69344,6 +69349,13 @@ var LinkInput = React.forwardRef(function (props, ref) {
69344
69349
  link.remove();
69345
69350
  }
69346
69351
  };
69352
+ var getCopyValue = function getCopyValue(value) {
69353
+ if (props.isCopyOrigin && value.uri[0] === CTRL.SLASH) {
69354
+ var _props$value;
69355
+ return location.origin + ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.uri);
69356
+ }
69357
+ return value.uri;
69358
+ };
69347
69359
  var className = styles$1G['vitro-link-input'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY) + (props.isReadOnly ? CTRL.SPACE + styles$1G['vitro-read-only'] : CTRL.EMPTY) + (isEditMode ? CTRL.SPACE + styles$1G['vitro-edit-mode'] : CTRL.EMPTY);
69348
69360
  return React__default.createElement("div", {
69349
69361
  className: className
@@ -69369,7 +69381,7 @@ var LinkInput = React.forwardRef(function (props, ref) {
69369
69381
  tooltipText: localeService.create(LOCALE$a.TOOLTIP_EDIT),
69370
69382
  className: styles$1G['vitro-edit-button']
69371
69383
  }), props.isReadOnly && React__default.createElement(CopyButton, {
69372
- value: value.uri,
69384
+ value: getCopyValue(value),
69373
69385
  className: styles$1G['vitro-copy-button']
69374
69386
  }));
69375
69387
  });
@@ -85429,6 +85441,7 @@ var SharedItemLinkForm = function SharedItemLinkForm(props) {
85429
85441
  uri: props.uri
85430
85442
  },
85431
85443
  className: styles$1Z['vitro-link-input'],
85444
+ isCopyOrigin: true,
85432
85445
  isReadOnly: true
85433
85446
  })));
85434
85447
  };