@vitrosoftware/common-ui-ts 1.1.251 → 1.1.253

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.
@@ -25,16 +25,17 @@
25
25
  color: #222D44 !important;
26
26
  }
27
27
 
28
- .TWMain .TWDateLeft,
29
- .TWMain .TWDatesLeft,
30
- .TWMain .TWDateRight,
28
+ .TWMain .TWDateLeft,
29
+ .TWMain .TWDatesLeft,
30
+ .TWMain .TWDateRight,
31
31
  .TWMain .TWDatesRight,
32
- .TWMain .TWDateTop,
33
- .TWMain .TWDatesTop,
34
- .TWMain .TWDateBottom,
32
+ .TWMain .TWDateTop,
33
+ .TWMain .TWDatesTop,
34
+ .TWMain .TWDateBottom,
35
35
  .TWMain .TWDatesBottom {
36
36
  background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/table-view/img/date-picker.svg');
37
37
  background-size: 24px;
38
+ background-position: center;
38
39
  }
39
40
 
40
41
  .vitro-table-view-gantt .TWMain .TWDateLeft,
@@ -46,4 +47,5 @@
46
47
  .vitro-table-view-gantt .TWMain .TWDateBottom,
47
48
  .vitro-table-view-gantt .TWMain .TWDatesBottom {
48
49
  background-size: 20px;
50
+ background-position: center;
49
51
  }
@@ -79,7 +79,7 @@
79
79
  height: 24px;
80
80
  width: 24px;
81
81
  min-width: 24px;
82
- margin-left: -2px;
82
+ margin-left: -8px;
83
83
  display: none;
84
84
  cursor: default;
85
85
  }
@@ -1,7 +1,7 @@
1
1
  .TWCellHeader {
2
2
  font-family: "InterMedium" !important;
3
3
  background: #F7F9FC;
4
- padding: 4px 8px !important;
4
+ padding: 4px 0 4px 8px !important;
5
5
  }
6
6
 
7
7
  .TWClassHoveredCellHeader {
@@ -2,10 +2,8 @@
2
2
  .TWSort2Left, .TWSort2Right,
3
3
  .TWSort3Left, .TWSort3Right {
4
4
  background-repeat: no-repeat !important;
5
- height: 24px !important;
6
- width: 24px !important;
7
- background-size: 100% !important;
8
- background-position: center !important;
5
+ background-size: 24px !important;
6
+ background-position: -8px 0 !important;
9
7
  background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/table-view/img/sort-top.svg');
10
8
  }
11
9
 
@@ -13,10 +11,8 @@
13
11
  .TWSort5Left, .TWSort5Right,
14
12
  .TWSort6Left, .TWSort6Right {
15
13
  background-repeat: no-repeat !important;
16
- height: 24px !important;
17
- width: 24px !important;
18
- background-size: 100% !important;
19
- background-position: center !important;
14
+ background-size: 24px !important;
15
+ background-position: -8px 0 !important;
20
16
  background-image: url('@vitrosoftware/common-ui-ts/css/std/controls/table-view/img/sort-bottom.svg');
21
17
  }
22
18
 
package/dist/index.css CHANGED
@@ -771,7 +771,7 @@ body em {
771
771
  height: 24px;
772
772
  width: 24px;
773
773
  min-width: 24px;
774
- margin-left: -2px;
774
+ margin-left: -8px;
775
775
  display: none;
776
776
  cursor: default;
777
777
  }
package/dist/index.js CHANGED
@@ -21908,6 +21908,9 @@ var TableViewServiceImpl = /*#__PURE__*/function () {
21908
21908
  }
21909
21909
  return lastCol;
21910
21910
  };
21911
+ _proto.calcWidth = function calcWidth(col) {
21912
+ this.grid.CalcWidth(col);
21913
+ };
21911
21914
  return _createClass(TableViewServiceImpl, [{
21912
21915
  key: "columnList",
21913
21916
  get: function get() {
@@ -63822,6 +63825,9 @@ var LookupPicker = React.forwardRef(function (props, ref) {
63822
63825
  React.useEffect(function () {
63823
63826
  updateFilteredValueList(props.valueList || []);
63824
63827
  setSelectedValueList(createDefaultSelectedValueList);
63828
+ if (props.valueList) {
63829
+ setPending(false);
63830
+ }
63825
63831
  }, [props.valueList]);
63826
63832
  React.useEffect(function () {
63827
63833
  if (props.selectedValueList && checkIsValueChanged(selectedValueList, props.selectedValueList)) {
@@ -65806,14 +65812,14 @@ var Checkbox = React.forwardRef(function (props, ref) {
65806
65812
  });
65807
65813
  var onChange = function onChange() {
65808
65814
  if (!props.isReadOnly) {
65809
- props.onChange && props.onChange(!value, props.name);
65815
+ props.onChange && props.onChange(!value, props.name || CTRL.EMPTY);
65810
65816
  _setValue(!value);
65811
65817
  }
65812
65818
  };
65813
65819
  var className = styles$V['vitro-control'] + (props.labelPosition === POSITION.LEFT ? CTRL.SPACE + styles$V['vitro-left-label'] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY);
65814
65820
  return React__default.createElement("div", {
65815
65821
  className: className
65816
- }, props.labelPosition === POSITION.LEFT && React__default.createElement(Label, {
65822
+ }, props.labelPosition === POSITION.LEFT && props.label && React__default.createElement(Label, {
65817
65823
  text: props.label,
65818
65824
  className: styles$V['vitro-label']
65819
65825
  }), React__default.createElement("div", {
@@ -65825,12 +65831,18 @@ var Checkbox = React.forwardRef(function (props, ref) {
65825
65831
  name: props.name,
65826
65832
  checked: value,
65827
65833
  onChange: onChange
65828
- }), props.labelPosition !== POSITION.LEFT && React__default.createElement(Label, {
65834
+ }), props.labelPosition !== POSITION.LEFT && props.label && React__default.createElement(Label, {
65829
65835
  text: props.label,
65830
65836
  className: styles$V['vitro-label']
65831
65837
  })));
65832
65838
  });
65833
65839
 
65840
+ var Checkbox$1 = function Checkbox$1(props) {
65841
+ return React__default.createElement(Checkbox, Object.assign({}, props, {
65842
+ value: props.value ? props.value.valueList[0] : false
65843
+ }));
65844
+ };
65845
+
65834
65846
  var CONTROL = function CONTROL() {};
65835
65847
  CONTROL.LOOKUP_PICKER = 'LookupPicker';
65836
65848
  CONTROL.DATE_PICKER = 'DatePicker';
@@ -66069,7 +66081,7 @@ var CriterionFilter = function CriterionFilter(props) {
66069
66081
  value: TimePicker$1
66070
66082
  }, {
66071
66083
  name: CONTROL.CHECKBOX,
66072
- value: Checkbox
66084
+ value: Checkbox$1
66073
66085
  }, {
66074
66086
  name: CONTROL.AVATAR,
66075
66087
  value: UserLookupPicker$1
@@ -67280,7 +67292,7 @@ var Viewer = function Viewer(props) {
67280
67292
  };
67281
67293
 
67282
67294
  var name = "@vitrosoftware/common-ui-ts";
67283
- var version$1 = "1.1.251";
67295
+ var version$1 = "1.1.253";
67284
67296
  var description = "vitro software common ui ts";
67285
67297
  var author = "";
67286
67298
  var license = "MIT";