@vitrosoftware/common-ui-ts 1.1.90 → 1.1.92

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.
@@ -15,6 +15,8 @@
15
15
  height: 24px;
16
16
  margin-right: 6px;
17
17
  cursor: pointer;
18
+ appearance: none;
19
+ -webkit-appearance: none;
18
20
  }
19
21
 
20
22
  .vitro-checkbox-content input::before,
@@ -24,8 +24,6 @@
24
24
  transform: translate(-50%, -50%);
25
25
  opacity: 1;
26
26
  border-radius: 4px;
27
- height: 534px;
28
- width: 760px;
29
27
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
30
28
  }
31
29
 
@@ -68,8 +68,7 @@
68
68
  align-items: center;
69
69
  }
70
70
 
71
-
72
- .vitro-group-item > .vitro-item-list > .vitro-item:last-child {
71
+ .vitro-group-item > .vitro-item-list > .vitro-item {
73
72
  margin-bottom: 0;
74
73
  }
75
74
 
@@ -78,6 +77,8 @@
78
77
  display: flex;
79
78
  flex-direction: row;
80
79
  align-items: center;
80
+ padding: 6px;
81
+ height: 36px;
81
82
  padding-left: 24px;
82
83
  }
83
84
 
@@ -1,9 +1,15 @@
1
1
  .table-view-custom-date-edit {
2
2
  width: auto;
3
- position: absolute;
4
- z-index: 10000;
3
+ margin-top: 6px;
4
+ margin-right: -20px;
5
5
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
6
6
  border-radius: 4px;
7
+ z-index: 100;
8
+ }
9
+
10
+ .table-view-custom-date-edit > div {
11
+ width: 100%;
12
+ display: flex;
7
13
  }
8
14
 
9
15
  .table-view-custom-date-edit .k-footer {
package/dist/index.css CHANGED
@@ -2645,6 +2645,9 @@ html, body {
2645
2645
  height: 24px;
2646
2646
  margin-right: 6px;
2647
2647
  cursor: pointer;
2648
+ -moz-appearance: none;
2649
+ appearance: none;
2650
+ -webkit-appearance: none;
2648
2651
  }
2649
2652
 
2650
2653
  ._checkbox_vitro-checkbox-content_2fBG1zl input::before,
@@ -4426,8 +4429,7 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
4426
4429
  align-items: center;
4427
4430
  }
4428
4431
 
4429
-
4430
- ._sidebar-item_vitro-group-item_ZADCctV > ._sidebar-item_vitro-item-list_17dWov1 > ._sidebar-item_vitro-item_1BR_7F0:last-child {
4432
+ ._sidebar-item_vitro-group-item_ZADCctV > ._sidebar-item_vitro-item-list_17dWov1 > ._sidebar-item_vitro-item_1BR_7F0 {
4431
4433
  margin-bottom: 0;
4432
4434
  }
4433
4435
 
@@ -4436,6 +4438,8 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
4436
4438
  display: flex;
4437
4439
  flex-direction: row;
4438
4440
  align-items: center;
4441
+ padding: 6px;
4442
+ height: 36px;
4439
4443
  padding-left: 24px;
4440
4444
  }
4441
4445
 
@@ -5346,8 +5350,6 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
5346
5350
  transform: translate(-50%, -50%);
5347
5351
  opacity: 1;
5348
5352
  border-radius: 4px;
5349
- height: 534px;
5350
- width: 760px;
5351
5353
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
5352
5354
  }
5353
5355
 
package/dist/index.js CHANGED
@@ -61708,7 +61708,7 @@ var Viewer = function Viewer(props) {
61708
61708
  };
61709
61709
 
61710
61710
  var name = "@vitrosoftware/common-ui-ts";
61711
- var version$1 = "1.1.90";
61711
+ var version$1 = "1.1.92";
61712
61712
  var description = "vitro software common ui ts";
61713
61713
  var author = "";
61714
61714
  var license = "MIT";
@@ -62190,15 +62190,15 @@ var LoginForm = React.forwardRef(function (props, ref) {
62190
62190
  })), React__default.createElement(LoginSubmitButton, {
62191
62191
  onClick: submit,
62192
62192
  isDisabled: loading
62193
- }), React__default.createElement("div", {
62193
+ }), props.buttonList && props.buttonList.length ? React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
62194
62194
  className: styles$v['vitro-separator']
62195
62195
  }, localeService.create(LOCALE$3.LOGIN_FORM_SEPARATOR_TEXT)), React__default.createElement("div", {
62196
62196
  className: styles$v['vitro-button-list']
62197
- }, props.buttonList && props.buttonList.map(function (button) {
62197
+ }, props.buttonList.map(function (button) {
62198
62198
  return React__default.createElement(Button$2, Object.assign({}, button, {
62199
62199
  className: styles$v['vitro-button']
62200
62200
  }));
62201
- })), props.onRegister && React__default.createElement(Link, {
62201
+ }))) : React__default.createElement(React__default.Fragment, null), props.onRegister && React__default.createElement(Link, {
62202
62202
  text: localeService.create(LOCALE$3.LOGIN_FORM_ACTION_REGISTER),
62203
62203
  onClick: props.onRegister,
62204
62204
  className: styles$v['vitro-link-register']
@@ -62465,14 +62465,15 @@ var LABEL_POSITION;
62465
62465
  LABEL_POSITION["LEFT"] = "left";
62466
62466
  })(LABEL_POSITION || (LABEL_POSITION = {}));
62467
62467
 
62468
- var PLACEMENT$2;
62469
62468
  (function (PLACEMENT) {
62470
62469
  PLACEMENT["TOP"] = "top";
62471
62470
  PLACEMENT["BOTTOM"] = "bottom";
62472
62471
  PLACEMENT["LEFT"] = "left";
62473
62472
  PLACEMENT["RIGHT"] = "right";
62474
62473
  PLACEMENT["AUTO"] = "auto";
62475
- })(PLACEMENT$2 || (PLACEMENT$2 = {}));
62474
+ PLACEMENT["START"] = "start";
62475
+ PLACEMENT["END"] = "end";
62476
+ })(exports.PLACEMENT || (exports.PLACEMENT = {}));
62476
62477
 
62477
62478
  var styles$z = {"vitro-control":"_date-picker_vitro-control_2AYXegb","vitro-display-none":"_date-picker_vitro-display-none_2wJx8XG","vitro-button-copy":"_date-picker_vitro-button-copy_1cGY1Uu","vitro-control-container":"_date-picker_vitro-control-container_2CVwecs","vitro-read-only":"_date-picker_vitro-read-only_2NZoMN5","vitro-label":"_date-picker_vitro-label_2jh9qxb","vitro-focus":"_date-picker_vitro-focus_2cJKcKr","vitro-error":"_date-picker_vitro-error_3DkgZiN","vitro-left-label":"_date-picker_vitro-left-label_ZFhZFS9","vitro-error-text":"_date-picker_vitro-error-text_15CdrRj"};
62478
62479
 
@@ -62662,7 +62663,7 @@ var DatePicker = React.forwardRef(function (props, ref) {
62662
62663
  }) : React__default.createElement(Overlay$1, {
62663
62664
  show: true,
62664
62665
  target: inputRef.current,
62665
- placement: PLACEMENT$2.AUTO
62666
+ placement: exports.PLACEMENT.AUTO
62666
62667
  }, React__default.createElement("div", {
62667
62668
  style: style ? style : {},
62668
62669
  className: styles$z['vitro-control-container'] + (style ? CTRL.EMPTY : CTRL.SPACE + styles$z['vitro-display-none'])
@@ -62837,7 +62838,7 @@ var TimePicker = React.forwardRef(function (props, ref) {
62837
62838
  }) : React__default.createElement(Overlay$1, {
62838
62839
  show: true,
62839
62840
  target: inputRef.current,
62840
- placement: PLACEMENT$2.AUTO
62841
+ placement: exports.PLACEMENT.AUTO
62841
62842
  }, React__default.createElement("div", {
62842
62843
  style: style ? style : {},
62843
62844
  className: styles$A['vitro-control-container'] + (style ? CTRL.EMPTY : CTRL.SPACE + styles$A['vitro-display-none'])
@@ -62932,7 +62933,7 @@ var ValueList = function ValueList(props) {
62932
62933
  show: props.isVisible,
62933
62934
  target: props.contentRef,
62934
62935
  container: props.isFlip ? props.containerRef : null,
62935
- placement: PLACEMENT$2.AUTO,
62936
+ placement: exports.PLACEMENT.AUTO,
62936
62937
  flip: props.isFlip ? true : false
62937
62938
  }, React__default.createElement("div", {
62938
62939
  style: style ? style : {},
@@ -63369,13 +63370,22 @@ var Item$2 = function Item(props) {
63369
63370
  setIsShowTooltip = _useState[1];
63370
63371
  var textRef = React.useRef(null);
63371
63372
  React.useEffect(function () {
63372
- var isOverflow = textRef.current && textRef.current.offsetWidth < textRef.current.scrollWidth;
63373
+ updateIsShowTooltip();
63374
+ }, []);
63375
+ React.useEffect(function () {
63376
+ updateIsShowTooltip();
63377
+ }, [props.isSidebarExpanded, props.isHidden]);
63378
+ var getIsOverflow = function getIsOverflow() {
63379
+ return textRef.current && textRef.current.offsetWidth < textRef.current.scrollWidth;
63380
+ };
63381
+ var updateIsShowTooltip = function updateIsShowTooltip() {
63382
+ var isOverflow = getIsOverflow();
63373
63383
  if (!props.isMobileView && (!props.isSidebarExpanded || isOverflow)) {
63374
63384
  setIsShowTooltip(true);
63375
63385
  } else {
63376
63386
  setIsShowTooltip(false);
63377
63387
  }
63378
- }, [props.isSidebarExpanded]);
63388
+ };
63379
63389
  return React__default.createElement(Tooltip$1, {
63380
63390
  text: props.text || CTRL.EMPTY,
63381
63391
  placement: PLACEMENT$1.RIGHT,
@@ -63492,6 +63502,11 @@ var GroupItem = function GroupItem(props) {
63492
63502
  setSwipePosition = _useState5[1];
63493
63503
  var itemListRef = React.useRef(null);
63494
63504
  var buttonRef = React.useRef(null);
63505
+ React.useEffect(function () {
63506
+ if (getIsActiveChildItem() && props.isSidebarExpanded && !props.isMobileView) {
63507
+ setIsExpanded(true);
63508
+ }
63509
+ }, []);
63495
63510
  React.useEffect(function () {
63496
63511
  updateState();
63497
63512
  }, [props.isSidebarExpanded, props.activeItem, props.currentUrl, isExpanded]);
@@ -63581,7 +63596,8 @@ var GroupItem = function GroupItem(props) {
63581
63596
  key: i.text,
63582
63597
  currentUrl: props.currentUrl,
63583
63598
  isSidebarExpanded: props.isSidebarExpanded,
63584
- isMobileView: props.isMobileView
63599
+ isMobileView: props.isMobileView,
63600
+ isHidden: !isExpanded
63585
63601
  }, i)) : i.itemList ? React__default.createElement(GroupItem, Object.assign({
63586
63602
  isSidebarExpanded: props.isSidebarExpanded,
63587
63603
  link: i.link,
@@ -63621,7 +63637,7 @@ var GroupItem = function GroupItem(props) {
63621
63637
  })), props.isMobileView ? React__default.createElement(Overlay$1, {
63622
63638
  show: isExpanded,
63623
63639
  target: props.container,
63624
- placement: PLACEMENT$2.TOP
63640
+ placement: exports.PLACEMENT.TOP
63625
63641
  }, React__default.createElement("div", {
63626
63642
  className: styles$H['vitro-popup-container']
63627
63643
  }, React__default.createElement("ul", {
@@ -66028,6 +66044,45 @@ var LinkInput = React.forwardRef(function (props, ref) {
66028
66044
  }));
66029
66045
  });
66030
66046
 
66047
+ var Overlay$2 = React.forwardRef(function (props, ref) {
66048
+ var _useState = React.useState(null),
66049
+ target = _useState[0],
66050
+ _setTarget = _useState[1];
66051
+ var _useState2 = React.useState(),
66052
+ style = _useState2[0],
66053
+ _setStyle = _useState2[1];
66054
+ React.useImperativeHandle(ref, function () {
66055
+ return {
66056
+ setTarget: function setTarget(target) {
66057
+ _setTarget(target);
66058
+ },
66059
+ setStyle: function setStyle(style) {
66060
+ _setStyle(style);
66061
+ }
66062
+ };
66063
+ });
66064
+ React.useEffect(function () {
66065
+ if (props.target) {
66066
+ _setTarget(props.target);
66067
+ }
66068
+ }, [props.target]);
66069
+ React.useEffect(function () {
66070
+ if (props.style) {
66071
+ _setStyle(props.style);
66072
+ }
66073
+ }, [props.style]);
66074
+ return React__default.createElement(Overlay$1, {
66075
+ show: props.isShow,
66076
+ target: target,
66077
+ container: props.container,
66078
+ placement: props.placement || exports.PLACEMENT.AUTO,
66079
+ flip: props.isFlip ? true : false
66080
+ }, React__default.createElement("div", {
66081
+ className: props.className,
66082
+ style: style
66083
+ }, props.children));
66084
+ });
66085
+
66031
66086
  exports.ACTION_HANDLER = ActionHandlerConstants;
66032
66087
  exports.ALERT = AlertConstants;
66033
66088
  exports.ActionHandler = ActionHandler;
@@ -66082,6 +66137,7 @@ exports.MicroFrontend = MicroFrontend;
66082
66137
  exports.NTLMAuthenticationForm = NTLMAuthenticationForm;
66083
66138
  exports.NUMBER_INPUT = NumberInputConstants;
66084
66139
  exports.NumberInput = NumberInput;
66140
+ exports.Overlay = Overlay$2;
66085
66141
  exports.PageLayout = PageLayout;
66086
66142
  exports.PasswordInput = PasswordInput;
66087
66143
  exports.PdfViewer = PdfViewer;