@vitrosoftware/common-ui-ts 1.1.252 → 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.
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/dist/src/controls/Checkbox/Checkbox.d.ts +2 -2
- package/dist/src/controls/Filter/Inputs/Checkbox.d.ts +0 -2
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/DxfViewer/js/dxf-viewer.js +15 -15
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
package/dist/index.js
CHANGED
|
@@ -63825,6 +63825,9 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
63825
63825
|
React.useEffect(function () {
|
|
63826
63826
|
updateFilteredValueList(props.valueList || []);
|
|
63827
63827
|
setSelectedValueList(createDefaultSelectedValueList);
|
|
63828
|
+
if (props.valueList) {
|
|
63829
|
+
setPending(false);
|
|
63830
|
+
}
|
|
63828
63831
|
}, [props.valueList]);
|
|
63829
63832
|
React.useEffect(function () {
|
|
63830
63833
|
if (props.selectedValueList && checkIsValueChanged(selectedValueList, props.selectedValueList)) {
|
|
@@ -65809,14 +65812,14 @@ var Checkbox = React.forwardRef(function (props, ref) {
|
|
|
65809
65812
|
});
|
|
65810
65813
|
var onChange = function onChange() {
|
|
65811
65814
|
if (!props.isReadOnly) {
|
|
65812
|
-
props.onChange && props.onChange(!value, props.name);
|
|
65815
|
+
props.onChange && props.onChange(!value, props.name || CTRL.EMPTY);
|
|
65813
65816
|
_setValue(!value);
|
|
65814
65817
|
}
|
|
65815
65818
|
};
|
|
65816
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);
|
|
65817
65820
|
return React__default.createElement("div", {
|
|
65818
65821
|
className: className
|
|
65819
|
-
}, props.labelPosition === POSITION.LEFT && React__default.createElement(Label, {
|
|
65822
|
+
}, props.labelPosition === POSITION.LEFT && props.label && React__default.createElement(Label, {
|
|
65820
65823
|
text: props.label,
|
|
65821
65824
|
className: styles$V['vitro-label']
|
|
65822
65825
|
}), React__default.createElement("div", {
|
|
@@ -65828,12 +65831,18 @@ var Checkbox = React.forwardRef(function (props, ref) {
|
|
|
65828
65831
|
name: props.name,
|
|
65829
65832
|
checked: value,
|
|
65830
65833
|
onChange: onChange
|
|
65831
|
-
}), props.labelPosition !== POSITION.LEFT && React__default.createElement(Label, {
|
|
65834
|
+
}), props.labelPosition !== POSITION.LEFT && props.label && React__default.createElement(Label, {
|
|
65832
65835
|
text: props.label,
|
|
65833
65836
|
className: styles$V['vitro-label']
|
|
65834
65837
|
})));
|
|
65835
65838
|
});
|
|
65836
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
|
+
|
|
65837
65846
|
var CONTROL = function CONTROL() {};
|
|
65838
65847
|
CONTROL.LOOKUP_PICKER = 'LookupPicker';
|
|
65839
65848
|
CONTROL.DATE_PICKER = 'DatePicker';
|
|
@@ -66072,7 +66081,7 @@ var CriterionFilter = function CriterionFilter(props) {
|
|
|
66072
66081
|
value: TimePicker$1
|
|
66073
66082
|
}, {
|
|
66074
66083
|
name: CONTROL.CHECKBOX,
|
|
66075
|
-
value: Checkbox
|
|
66084
|
+
value: Checkbox$1
|
|
66076
66085
|
}, {
|
|
66077
66086
|
name: CONTROL.AVATAR,
|
|
66078
66087
|
value: UserLookupPicker$1
|
|
@@ -67283,7 +67292,7 @@ var Viewer = function Viewer(props) {
|
|
|
67283
67292
|
};
|
|
67284
67293
|
|
|
67285
67294
|
var name = "@vitrosoftware/common-ui-ts";
|
|
67286
|
-
var version$1 = "1.1.
|
|
67295
|
+
var version$1 = "1.1.253";
|
|
67287
67296
|
var description = "vitro software common ui ts";
|
|
67288
67297
|
var author = "";
|
|
67289
67298
|
var license = "MIT";
|