@vitrosoftware/common-ui-ts 1.1.138 → 1.1.140

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,12 @@ 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
+ };
21735
21749
  _createClass(TreeGridTableViewContextImpl, [{
21736
21750
  key: "columnList",
21737
21751
  get: function get() {
@@ -60478,10 +60492,10 @@ var ImageButton = function ImageButton(props) {
60478
60492
 
60479
60493
  var DialogComponent = function DialogComponent(props) {
60480
60494
  return React__default.createElement("div", {
60481
- style: {
60495
+ style: props.width || props.height ? {
60482
60496
  width: props.width + CTRL.PERCENT,
60483
60497
  height: props.height + CTRL.PERCENT
60484
- },
60498
+ } : undefined,
60485
60499
  className: props.className
60486
60500
  }, props.children);
60487
60501
  };
@@ -60812,8 +60826,8 @@ var Dialog = function Dialog(props) {
60812
60826
  zIndex: props.zIndex
60813
60827
  }
60814
60828
  }, React__default.createElement(DialogComponent, {
60815
- width: props.width,
60816
- height: props.height,
60829
+ width: isMobileView ? undefined : props.width,
60830
+ height: isMobileView ? undefined : props.height,
60817
60831
  className: props.className
60818
60832
  }, props.isDismissible && React__default.createElement(ImageButton, {
60819
60833
  className: styles$j['vitro-dialog-button-close'],
@@ -60824,7 +60838,9 @@ var Dialog = function Dialog(props) {
60824
60838
  imageUrl: props.imageUrl,
60825
60839
  image: props.image,
60826
60840
  className: props.headerClassName
60827
- }), component && React__default.createElement(DialogContent, null, component), props.children, isMobileView && props.hiddenContent && React__default.createElement(DialogDetailExpandButton, {
60841
+ }), component && React__default.createElement(DialogContent, {
60842
+ className: props.contentClassName
60843
+ }, component), props.children, isMobileView && props.hiddenContent && React__default.createElement(DialogDetailExpandButton, {
60828
60844
  onClick: onClickDetailButton
60829
60845
  }), props.hiddenContent && React__default.createElement("div", {
60830
60846
  className: styles$j['vitro-hidden-content'] + (isShowHiddenContent ? CTRL.EMPTY : CTRL.SPACE + styles$j['vitro-hidden'])
@@ -61502,6 +61518,9 @@ var OverflowButton = function OverflowButton(props) {
61502
61518
  };
61503
61519
 
61504
61520
  var Tab = function Tab(props) {
61521
+ if (!props.icon && !props.title) {
61522
+ return null;
61523
+ }
61505
61524
  return React__default.createElement("div", {
61506
61525
  key: props.index,
61507
61526
  className: styles$o['vitro-item']
@@ -61854,6 +61873,10 @@ var AUTOCOMPLETE;
61854
61873
  AUTOCOMPLETE["ON"] = "on";
61855
61874
  AUTOCOMPLETE["OFF"] = "off";
61856
61875
  })(AUTOCOMPLETE || (AUTOCOMPLETE = {}));
61876
+ var MAX_LENGTH;
61877
+ (function (MAX_LENGTH) {
61878
+ MAX_LENGTH[MAX_LENGTH["SINGLELINE"] = 255] = "SINGLELINE";
61879
+ })(MAX_LENGTH || (MAX_LENGTH = {}));
61857
61880
 
61858
61881
  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
61882
 
@@ -61873,7 +61896,7 @@ var Input = React.forwardRef(function (props, ref) {
61873
61896
  setIsShowTooltip = _useState4[1];
61874
61897
  var inputRef = React.useRef(null);
61875
61898
  React.useEffect(function () {
61876
- var value = props.value ? props.value : CTRL.EMPTY;
61899
+ var value = props.value ? getValue(props.value) : CTRL.EMPTY;
61877
61900
  setInputValue(value);
61878
61901
  }, [props.value]);
61879
61902
  React.useEffect(function () {
@@ -61900,7 +61923,7 @@ var Input = React.forwardRef(function (props, ref) {
61900
61923
  }
61901
61924
  },
61902
61925
  setValue: function setValue(value) {
61903
- setInputValue(value);
61926
+ setInputValue(getValue(value));
61904
61927
  },
61905
61928
  getValue: function getValue() {
61906
61929
  return inputValue;
@@ -61909,7 +61932,7 @@ var Input = React.forwardRef(function (props, ref) {
61909
61932
  });
61910
61933
  var onChange = function onChange(e) {
61911
61934
  var oldValue = inputValue;
61912
- var newValue = e.target.value;
61935
+ var newValue = getValue(e.target.value);
61913
61936
  setInputValue(newValue);
61914
61937
  if (oldValue !== newValue && props.onChange) {
61915
61938
  props.onChange(newValue, e.target.name);
@@ -61964,6 +61987,18 @@ var Input = React.forwardRef(function (props, ref) {
61964
61987
  setIsShowTooltip(false);
61965
61988
  }
61966
61989
  };
61990
+ var getMaxLength = function getMaxLength() {
61991
+ if (props.maxLength && props.maxLength < MAX_LENGTH.SINGLELINE) {
61992
+ return props.maxLength;
61993
+ }
61994
+ return MAX_LENGTH.SINGLELINE;
61995
+ };
61996
+ var getValue = function getValue(value) {
61997
+ if (!props.isMultiline) {
61998
+ return value.substring(0, getMaxLength());
61999
+ }
62000
+ return value;
62001
+ };
61967
62002
  if (props.isMultiline) {
61968
62003
  control = React__default.createElement("textarea", {
61969
62004
  ref: inputRef,
@@ -62460,7 +62495,7 @@ var Viewer = function Viewer(props) {
62460
62495
  };
62461
62496
 
62462
62497
  var name = "@vitrosoftware/common-ui-ts";
62463
- var version$1 = "1.1.138";
62498
+ var version$1 = "1.1.140";
62464
62499
  var description = "vitro software common ui ts";
62465
62500
  var author = "";
62466
62501
  var license = "MIT";