@vitrosoftware/common-ui-ts 1.1.139 → 1.1.141

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.
@@ -1,6 +1,8 @@
1
1
  .vitro-confirm-dialog {
2
2
  min-width: 469px;
3
3
  max-width: 706px;
4
+ height: unset !important;
5
+ width: unset !important;
4
6
  border: 1px solid rgba(74, 85, 108, 0.35);
5
7
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.14), 0 12px 34px 0 rgba(0, 0, 0, 0.19);
6
8
  }
@@ -27,6 +29,8 @@
27
29
 
28
30
  @media (max-width: 800px) {
29
31
  .vitro-confirm-dialog {
30
- width: 100% !important;
32
+ width: 100% !important;
33
+ min-width: unset;
34
+ height: unset !important;
31
35
  }
32
36
  }
@@ -25,7 +25,8 @@
25
25
  opacity: 1;
26
26
  border-radius: 4px;
27
27
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
28
- min-width: 469px;
28
+ width: 524px;
29
+ height: 618px;
29
30
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.14), 0 12px 34px 0 rgba(0, 0, 0, 0.19);
30
31
  }
31
32
 
@@ -66,8 +67,8 @@
66
67
 
67
68
  @media (max-width: 800px) {
68
69
  .vitro-dialog > div {
69
- min-width: unset;
70
70
  max-width: calc(100% - 16px);
71
+ max-height: calc(100% - 16px);
71
72
  }
72
73
 
73
74
  .vitro-dialog-button-close {
@@ -137,9 +137,10 @@
137
137
  }
138
138
 
139
139
  .vitro-settings-dialog-mobile {
140
- height: 100%;
141
- width: 100%;
140
+ height: 100% !important;
141
+ width: 100% !important;
142
142
  max-width: unset !important;
143
+ max-height: unset !important;
143
144
  border: none !important;
144
145
  border-radius: 0 !important;
145
146
  }
@@ -1,5 +1,6 @@
1
1
  .vitro-system-exception-dialog {
2
- width: 618px;
2
+ height: auto !important;
3
+ width: 618px !important;
3
4
  }
4
5
 
5
6
  .vitro-system-exception-dialog h1 {
@@ -62,6 +62,7 @@
62
62
  flex-grow: 1;
63
63
  text-align: center;
64
64
  overflow: hidden;
65
+ padding-top: 16px;
65
66
  }
66
67
 
67
68
  .vitro-tab :global(.nav) > div :global(.nav-link) {
@@ -98,6 +99,7 @@
98
99
 
99
100
  .vitro-tab :global(.nav) > .vitro-dropdown-button {
100
101
  border-bottom: 1px solid #e0e0e0;
102
+ padding-top: 16px;
101
103
  }
102
104
 
103
105
  .vitro-tab :global(.nav) > .vitro-dropdown-button button {
@@ -67,6 +67,21 @@
67
67
  color: #4A556C !important;
68
68
  }
69
69
 
70
+ :global(.vitro-group-row.TWBool0),
71
+ :global(.vitro-group-row.TWBool1),
72
+ :global(.vitro-group-row.TWBool2),
73
+ :global(.vitro-group-row.TWBool3),
74
+ :global(.vitro-group-row.TWBoolX),
75
+ :global(.vitro-group-row.TWBool0RO),
76
+ :global(.vitro-group-row.TWBool1RO),
77
+ :global(.vitro-group-row.TWBool2RO),
78
+ :global(.vitro-group-row.TWBool3RO),
79
+ :global(.vitro-group-row.TWBoolXRO) {
80
+ background-image: none !important;
81
+ opacity: 1 !important;
82
+ pointer-events: none !important;
83
+ }
84
+
70
85
  :global(.vitro-table-view-button-context) {
71
86
  height: 24px;
72
87
  width: 24px;
@@ -91,8 +91,8 @@ vitro-table-view-popup-menu-topMain.TWMenuMainRight::before,
91
91
  .vitro-table-view-context-menu-leftMain .TWMenuBody::-webkit-scrollbar,
92
92
  .vitro-table-view-popup-menu-topMain .TWMenuBody::-webkit-scrollbar,
93
93
  .vitro-table-view-popup-menuMain .TWMenuBody::-webkit-scrollbar {
94
- width: 4px;
95
- height: 4px;
94
+ width: 4px !important;
95
+ height: 4px !important;
96
96
  background: transparent;
97
97
  }
98
98
 
@@ -16,7 +16,7 @@
16
16
  }
17
17
 
18
18
  .vitro-tab :global(.nav) {
19
- padding: 16px 16px 0 16px;
19
+ padding: 0 16px 0 16px;
20
20
  }
21
21
 
22
22
  .vitro-tab > :global(.vitro-content) {
package/dist/index.css CHANGED
@@ -732,6 +732,21 @@ html, body {
732
732
  color: #4A556C !important;
733
733
  }
734
734
 
735
+ .vitro-group-row.TWBool0,
736
+ .vitro-group-row.TWBool1,
737
+ .vitro-group-row.TWBool2,
738
+ .vitro-group-row.TWBool3,
739
+ .vitro-group-row.TWBoolX,
740
+ .vitro-group-row.TWBool0RO,
741
+ .vitro-group-row.TWBool1RO,
742
+ .vitro-group-row.TWBool2RO,
743
+ .vitro-group-row.TWBool3RO,
744
+ .vitro-group-row.TWBoolXRO {
745
+ background-image: none !important;
746
+ opacity: 1 !important;
747
+ pointer-events: none !important;
748
+ }
749
+
735
750
  .vitro-table-view-button-context {
736
751
  height: 24px;
737
752
  width: 24px;
@@ -1692,7 +1707,8 @@ html, body {
1692
1707
  opacity: 1;
1693
1708
  border-radius: 4px;
1694
1709
  box-shadow: 0px 4px 14px 0px rgba(0, 0, 0, 0.18), 0px 0px 4px 0px rgba(0, 0, 0, 0.14);
1695
- min-width: 469px;
1710
+ width: 524px;
1711
+ height: 618px;
1696
1712
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.14), 0 12px 34px 0 rgba(0, 0, 0, 0.19);
1697
1713
  }
1698
1714
 
@@ -1733,8 +1749,8 @@ html, body {
1733
1749
 
1734
1750
  @media (max-width: 800px) {
1735
1751
  ._dialog_vitro-dialog_2NzcRZg > div {
1736
- min-width: unset;
1737
1752
  max-width: calc(100% - 16px);
1753
+ max-height: calc(100% - 16px);
1738
1754
  }
1739
1755
 
1740
1756
  ._dialog_vitro-dialog-button-close_2TF5iry {
@@ -1744,6 +1760,8 @@ html, body {
1744
1760
  ._confirm-dialog_vitro-confirm-dialog_1r-CtWW {
1745
1761
  min-width: 469px;
1746
1762
  max-width: 706px;
1763
+ height: unset !important;
1764
+ width: unset !important;
1747
1765
  border: 1px solid rgba(74, 85, 108, 0.35);
1748
1766
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.14), 0 12px 34px 0 rgba(0, 0, 0, 0.19);
1749
1767
  }
@@ -1770,7 +1788,9 @@ html, body {
1770
1788
 
1771
1789
  @media (max-width: 800px) {
1772
1790
  ._confirm-dialog_vitro-confirm-dialog_1r-CtWW {
1773
- width: 100% !important;
1791
+ width: 100% !important;
1792
+ min-width: unset;
1793
+ height: unset !important;
1774
1794
  }
1775
1795
  }
1776
1796
  ._action-result-list_vitro-action-result-list_fJtJWdL {
@@ -2255,6 +2275,7 @@ html, body {
2255
2275
  flex-grow: 1;
2256
2276
  text-align: center;
2257
2277
  overflow: hidden;
2278
+ padding-top: 16px;
2258
2279
  }
2259
2280
 
2260
2281
  ._tab-group_vitro-tab_1Qb50HL .nav > div .nav-link {
@@ -2291,6 +2312,7 @@ html, body {
2291
2312
 
2292
2313
  ._tab-group_vitro-tab_1Qb50HL .nav > ._tab-group_vitro-dropdown-button_146jv_h {
2293
2314
  border-bottom: 1px solid #e0e0e0;
2315
+ padding-top: 16px;
2294
2316
  }
2295
2317
 
2296
2318
  ._tab-group_vitro-tab_1Qb50HL .nav > ._tab-group_vitro-dropdown-button_146jv_h button {
@@ -2376,7 +2398,7 @@ html, body {
2376
2398
  }
2377
2399
 
2378
2400
  ._view_vitro-tab_2sqf0L9 .nav {
2379
- padding: 16px 16px 0 16px;
2401
+ padding: 0 16px 0 16px;
2380
2402
  }
2381
2403
 
2382
2404
  ._view_vitro-tab_2sqf0L9 > .vitro-content {
@@ -6754,9 +6776,10 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
6754
6776
  }
6755
6777
 
6756
6778
  ._search_vitro-settings-dialog-mobile_1no71m6 {
6757
- height: 100%;
6758
- width: 100%;
6779
+ height: 100% !important;
6780
+ width: 100% !important;
6759
6781
  max-width: unset !important;
6782
+ max-height: unset !important;
6760
6783
  border: none !important;
6761
6784
  border-radius: 0 !important;
6762
6785
  }
@@ -7423,7 +7446,8 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
7423
7446
  background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/link-input/img/edit.svg');
7424
7447
  }
7425
7448
  ._system-exception-dialog_vitro-system-exception-dialog_2UVdbuB {
7426
- width: 618px;
7449
+ height: auto !important;
7450
+ width: 618px !important;
7427
7451
  }
7428
7452
 
7429
7453
  ._system-exception-dialog_vitro-system-exception-dialog_2UVdbuB h1 {
package/dist/index.js CHANGED
@@ -21384,6 +21384,13 @@ var DATE_FORMAT;
21384
21384
  (function (DATE_FORMAT) {
21385
21385
  DATE_FORMAT["DEFAULT"] = "dd.MM.yyyy";
21386
21386
  })(DATE_FORMAT || (DATE_FORMAT = {}));
21387
+ var DEPENDENCY_TYPE;
21388
+ (function (DEPENDENCY_TYPE) {
21389
+ DEPENDENCY_TYPE["START_START"] = "ss";
21390
+ DEPENDENCY_TYPE["FINISH_FINISH"] = "ff";
21391
+ DEPENDENCY_TYPE["FINISH_START"] = "fs";
21392
+ DEPENDENCY_TYPE["START_FINISH"] = "sf";
21393
+ })(DEPENDENCY_TYPE || (DEPENDENCY_TYPE = {}));
21387
21394
 
21388
21395
  var TableViewConstants = {
21389
21396
  __proto__: null,
@@ -21413,7 +21420,8 @@ var TableViewConstants = {
21413
21420
  get TARGET () { return TARGET; },
21414
21421
  get MENU_ALIGN () { return MENU_ALIGN; },
21415
21422
  get DEF_ROW () { return DEF_ROW; },
21416
- get DATE_FORMAT () { return DATE_FORMAT; }
21423
+ get DATE_FORMAT () { return DATE_FORMAT; },
21424
+ get DEPENDENCY_TYPE () { return DEPENDENCY_TYPE; }
21417
21425
  };
21418
21426
 
21419
21427
  var w$1 = window;
@@ -21732,6 +21740,18 @@ var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
21732
21740
  _proto.scrollToDate = function scrollToDate(date, align) {
21733
21741
  this.grid.ScrollToDate(date, align);
21734
21742
  };
21743
+ _proto.getPage = function getPage(num) {
21744
+ return this.grid.GetPage(num);
21745
+ };
21746
+ _proto.reloadPage = function reloadPage(page) {
21747
+ this.grid.ReloadPage(page);
21748
+ };
21749
+ _proto.getFirstVisible = function getFirstVisible() {
21750
+ return this.grid.GetFirstVisible();
21751
+ };
21752
+ _proto.getGanttSlack = function getGanttSlack(row, col, bar) {
21753
+ return this.grid.GetGanttSlack(row, col, bar);
21754
+ };
21735
21755
  _createClass(TreeGridTableViewContextImpl, [{
21736
21756
  key: "columnList",
21737
21757
  get: function get() {
@@ -60478,10 +60498,10 @@ var ImageButton = function ImageButton(props) {
60478
60498
 
60479
60499
  var DialogComponent = function DialogComponent(props) {
60480
60500
  return React__default.createElement("div", {
60481
- style: {
60501
+ style: props.width || props.height ? {
60482
60502
  width: props.width + CTRL.PERCENT,
60483
60503
  height: props.height + CTRL.PERCENT
60484
- },
60504
+ } : undefined,
60485
60505
  className: props.className
60486
60506
  }, props.children);
60487
60507
  };
@@ -60812,8 +60832,8 @@ var Dialog = function Dialog(props) {
60812
60832
  zIndex: props.zIndex
60813
60833
  }
60814
60834
  }, React__default.createElement(DialogComponent, {
60815
- width: props.width,
60816
- height: props.height,
60835
+ width: isMobileView ? undefined : props.width,
60836
+ height: isMobileView ? undefined : props.height,
60817
60837
  className: props.className
60818
60838
  }, props.isDismissible && React__default.createElement(ImageButton, {
60819
60839
  className: styles$j['vitro-dialog-button-close'],
@@ -60824,7 +60844,9 @@ var Dialog = function Dialog(props) {
60824
60844
  imageUrl: props.imageUrl,
60825
60845
  image: props.image,
60826
60846
  className: props.headerClassName
60827
- }), component && React__default.createElement(DialogContent, null, component), props.children, isMobileView && props.hiddenContent && React__default.createElement(DialogDetailExpandButton, {
60847
+ }), component && React__default.createElement(DialogContent, {
60848
+ className: props.contentClassName
60849
+ }, component), props.children, isMobileView && props.hiddenContent && React__default.createElement(DialogDetailExpandButton, {
60828
60850
  onClick: onClickDetailButton
60829
60851
  }), props.hiddenContent && React__default.createElement("div", {
60830
60852
  className: styles$j['vitro-hidden-content'] + (isShowHiddenContent ? CTRL.EMPTY : CTRL.SPACE + styles$j['vitro-hidden'])
@@ -61502,6 +61524,9 @@ var OverflowButton = function OverflowButton(props) {
61502
61524
  };
61503
61525
 
61504
61526
  var Tab = function Tab(props) {
61527
+ if (!props.icon && !props.title) {
61528
+ return null;
61529
+ }
61505
61530
  return React__default.createElement("div", {
61506
61531
  key: props.index,
61507
61532
  className: styles$o['vitro-item']
@@ -61854,6 +61879,10 @@ var AUTOCOMPLETE;
61854
61879
  AUTOCOMPLETE["ON"] = "on";
61855
61880
  AUTOCOMPLETE["OFF"] = "off";
61856
61881
  })(AUTOCOMPLETE || (AUTOCOMPLETE = {}));
61882
+ var MAX_LENGTH;
61883
+ (function (MAX_LENGTH) {
61884
+ MAX_LENGTH[MAX_LENGTH["SINGLELINE"] = 255] = "SINGLELINE";
61885
+ })(MAX_LENGTH || (MAX_LENGTH = {}));
61857
61886
 
61858
61887
  var styles$v = {"vitro-control":"_input_vitro-control_1DmPFkF","vitro-read-only":"_input_vitro-read-only_3f-cBbK","vitro-label":"_input_vitro-label_2XBESiY","vitro-focus":"_input_vitro-focus_1txynr8","vitro-error":"_input_vitro-error_1T3dLzB","vitro-left-label":"_input_vitro-left-label_D9Fpvpd","vitro-error-message":"_input_vitro-error-message_349uWKt","vitro-copy-button":"_input_vitro-copy-button_3wNhQ24","vitro-tooltip":"_input_vitro-tooltip_2DcJtbX"};
61859
61888
 
@@ -61873,7 +61902,7 @@ var Input = React.forwardRef(function (props, ref) {
61873
61902
  setIsShowTooltip = _useState4[1];
61874
61903
  var inputRef = React.useRef(null);
61875
61904
  React.useEffect(function () {
61876
- var value = props.value ? props.value : CTRL.EMPTY;
61905
+ var value = props.value ? getValue(props.value) : CTRL.EMPTY;
61877
61906
  setInputValue(value);
61878
61907
  }, [props.value]);
61879
61908
  React.useEffect(function () {
@@ -61900,7 +61929,7 @@ var Input = React.forwardRef(function (props, ref) {
61900
61929
  }
61901
61930
  },
61902
61931
  setValue: function setValue(value) {
61903
- setInputValue(value);
61932
+ setInputValue(getValue(value));
61904
61933
  },
61905
61934
  getValue: function getValue() {
61906
61935
  return inputValue;
@@ -61909,7 +61938,7 @@ var Input = React.forwardRef(function (props, ref) {
61909
61938
  });
61910
61939
  var onChange = function onChange(e) {
61911
61940
  var oldValue = inputValue;
61912
- var newValue = e.target.value;
61941
+ var newValue = getValue(e.target.value);
61913
61942
  setInputValue(newValue);
61914
61943
  if (oldValue !== newValue && props.onChange) {
61915
61944
  props.onChange(newValue, e.target.name);
@@ -61964,6 +61993,18 @@ var Input = React.forwardRef(function (props, ref) {
61964
61993
  setIsShowTooltip(false);
61965
61994
  }
61966
61995
  };
61996
+ var getMaxLength = function getMaxLength() {
61997
+ if (props.maxLength && props.maxLength < MAX_LENGTH.SINGLELINE) {
61998
+ return props.maxLength;
61999
+ }
62000
+ return MAX_LENGTH.SINGLELINE;
62001
+ };
62002
+ var getValue = function getValue(value) {
62003
+ if (!props.isMultiline) {
62004
+ return value.substring(0, getMaxLength());
62005
+ }
62006
+ return value;
62007
+ };
61967
62008
  if (props.isMultiline) {
61968
62009
  control = React__default.createElement("textarea", {
61969
62010
  ref: inputRef,
@@ -62460,7 +62501,7 @@ var Viewer = function Viewer(props) {
62460
62501
  };
62461
62502
 
62462
62503
  var name = "@vitrosoftware/common-ui-ts";
62463
- var version$1 = "1.1.139";
62504
+ var version$1 = "1.1.141";
62464
62505
  var description = "vitro software common ui ts";
62465
62506
  var author = "";
62466
62507
  var license = "MIT";