@vitrosoftware/common-ui-ts 1.1.183 → 1.1.185
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/css/std/controls/editable-list/editable-list.css +4 -0
- package/dist/index.css +4 -0
- package/dist/index.js +10 -8
- package/dist/index.js.map +1 -1
- package/dist/src/controls/EditableList/EditableItem.d.ts +1 -0
- package/dist/src/controls/EditableList/EditableList.d.ts +1 -0
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/DxfViewer/js/dxf-viewer.js +14 -14
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
package/dist/index.css
CHANGED
|
@@ -8349,6 +8349,10 @@ li:first-child ._command-menu-item_vitro-item_2pVhk23:hover {
|
|
|
8349
8349
|
height: 24px;
|
|
8350
8350
|
}
|
|
8351
8351
|
|
|
8352
|
+
._editable-list_vitro-readonly_2pK9bq5 {
|
|
8353
|
+
pointer-events: none;
|
|
8354
|
+
}
|
|
8355
|
+
|
|
8352
8356
|
._editable-list_vitro-editable-item_cWSWi1n._editable-list_vitro-mobile_2IDiwft ._editable-list_vitro-editable-item-label_3ViAKDq {
|
|
8353
8357
|
white-space: pre-wrap !important;
|
|
8354
8358
|
padding-left: 8px;
|
package/dist/index.js
CHANGED
|
@@ -63020,7 +63020,7 @@ var Viewer = function Viewer(props) {
|
|
|
63020
63020
|
};
|
|
63021
63021
|
|
|
63022
63022
|
var name = "@vitrosoftware/common-ui-ts";
|
|
63023
|
-
var version$1 = "1.1.
|
|
63023
|
+
var version$1 = "1.1.185";
|
|
63024
63024
|
var description = "vitro software common ui ts";
|
|
63025
63025
|
var author = "";
|
|
63026
63026
|
var license = "MIT";
|
|
@@ -65168,9 +65168,9 @@ var SelectedValueListItem = function SelectedValueListItem(props) {
|
|
|
65168
65168
|
};
|
|
65169
65169
|
|
|
65170
65170
|
var SelectedValueList = function SelectedValueList(props) {
|
|
65171
|
-
return React__default.createElement(React__default.Fragment, null, props.list.map(function (x) {
|
|
65171
|
+
return React__default.createElement(React__default.Fragment, null, props.list.map(function (x, index) {
|
|
65172
65172
|
return React__default.createElement(SelectedValueListItem, {
|
|
65173
|
-
key:
|
|
65173
|
+
key: index,
|
|
65174
65174
|
item: x,
|
|
65175
65175
|
isMultiSelect: props.isMultiSelect,
|
|
65176
65176
|
isReadOnly: props.isReadOnly,
|
|
@@ -83999,7 +83999,7 @@ var Switch = function Switch(props) {
|
|
|
83999
83999
|
}));
|
|
84000
84000
|
};
|
|
84001
84001
|
|
|
84002
|
-
var styles$1L = {"vitro-editable-list":"_editable-list_vitro-editable-list_2y8aXbO","vitro-header":"_editable-list_vitro-header_3ilVZhe","vitro-create-button":"_editable-list_vitro-create-button_3E1aQDB","vitro-editable-item":"_editable-list_vitro-editable-item_cWSWi1n","vitro-active":"_editable-list_vitro-active_39PUrSM","vitro-button-container":"_editable-list_vitro-button-container_1okfn08","vitro-editable-list-mobile":"_editable-list_vitro-editable-list-mobile_z1t_hAF","vitro-dropdown-button":"_editable-list_vitro-dropdown-button_vPtNQxA","vitro-dropdown-menu-top":"_editable-list_vitro-dropdown-menu-top_1miFWtX","vitro-display-none":"_editable-list_vitro-display-none_1nqU_hD","vitro-mobile":"_editable-list_vitro-mobile_2IDiwft","vitro-editable-item-icon":"_editable-list_vitro-editable-item-icon_29jFw_f","vitro-editable-item-label":"_editable-list_vitro-editable-item-label_3ViAKDq","vitro-header-mobile":"_editable-list_vitro-header-mobile_2EMihKc"};
|
|
84002
|
+
var styles$1L = {"vitro-editable-list":"_editable-list_vitro-editable-list_2y8aXbO","vitro-header":"_editable-list_vitro-header_3ilVZhe","vitro-create-button":"_editable-list_vitro-create-button_3E1aQDB","vitro-editable-item":"_editable-list_vitro-editable-item_cWSWi1n","vitro-active":"_editable-list_vitro-active_39PUrSM","vitro-button-container":"_editable-list_vitro-button-container_1okfn08","vitro-editable-list-mobile":"_editable-list_vitro-editable-list-mobile_z1t_hAF","vitro-dropdown-button":"_editable-list_vitro-dropdown-button_vPtNQxA","vitro-dropdown-menu-top":"_editable-list_vitro-dropdown-menu-top_1miFWtX","vitro-display-none":"_editable-list_vitro-display-none_1nqU_hD","vitro-mobile":"_editable-list_vitro-mobile_2IDiwft","vitro-editable-item-icon":"_editable-list_vitro-editable-item-icon_29jFw_f","vitro-readonly":"_editable-list_vitro-readonly_2pK9bq5","vitro-editable-item-label":"_editable-list_vitro-editable-item-label_3ViAKDq","vitro-header-mobile":"_editable-list_vitro-header-mobile_2EMihKc"};
|
|
84003
84003
|
|
|
84004
84004
|
var CSS_CLASS_MOBILE = 'vitro-mobile';
|
|
84005
84005
|
var CSS_DROPDOWN_MENU_TOP = 'vitro-dropdown-menu-top';
|
|
@@ -84088,7 +84088,7 @@ var EditableItem = function EditableItem(props) {
|
|
|
84088
84088
|
text: props.text || text
|
|
84089
84089
|
}), React__default.createElement("div", {
|
|
84090
84090
|
className: styles$1L['vitro-button-container']
|
|
84091
|
-
}, props.dropdownItemList || props.getDropdownItemList ? React__default.createElement(DropdownButton, {
|
|
84091
|
+
}, !props.isReadOnly && (props.dropdownItemList || props.getDropdownItemList) ? React__default.createElement(DropdownButton, {
|
|
84092
84092
|
itemList: dropdownItemList,
|
|
84093
84093
|
onToggle: onToggleDropdownButton,
|
|
84094
84094
|
isShow: props.isDropdownActive,
|
|
@@ -84097,7 +84097,7 @@ var EditableItem = function EditableItem(props) {
|
|
|
84097
84097
|
popperConfig: props.popperConfig,
|
|
84098
84098
|
onGetMenuRef: props.isMobileView ? undefined : initDropdownMenuPosition
|
|
84099
84099
|
}) : null, !props.isMobileView && props.button && React__default.createElement(FlexBox, {
|
|
84100
|
-
className: (props.isActive || isHover) && (props.dropdownItemList || props.getDropdownItemList) ? styles$1L['vitro-display-none'] : CTRL.EMPTY
|
|
84100
|
+
className: !props.isReadOnly && (props.isActive || isHover) && (props.dropdownItemList || props.getDropdownItemList) ? styles$1L['vitro-display-none'] : props.isReadOnly ? styles$1L['vitro-readonly'] : CTRL.EMPTY
|
|
84101
84101
|
}, props.button)));
|
|
84102
84102
|
};
|
|
84103
84103
|
|
|
@@ -84217,7 +84217,8 @@ var EditableList = function EditableList(props) {
|
|
|
84217
84217
|
getDropdownItemList: props.getDropdownItemList,
|
|
84218
84218
|
isMobileView: props.isMobileView,
|
|
84219
84219
|
icon: props.itemIcon,
|
|
84220
|
-
popperConfig: props.popperConfig
|
|
84220
|
+
popperConfig: props.popperConfig,
|
|
84221
|
+
isReadOnly: props.isReadOnly
|
|
84221
84222
|
}));
|
|
84222
84223
|
},
|
|
84223
84224
|
onClick: onClick
|
|
@@ -84254,7 +84255,8 @@ var EditableList = function EditableList(props) {
|
|
|
84254
84255
|
isMobileView: props.isMobileView,
|
|
84255
84256
|
icon: props.itemIcon,
|
|
84256
84257
|
popperConfig: props.popperConfig,
|
|
84257
|
-
scrollTop: props.scrollTop
|
|
84258
|
+
scrollTop: props.scrollTop,
|
|
84259
|
+
isReadOnly: props.isReadOnly
|
|
84258
84260
|
}));
|
|
84259
84261
|
},
|
|
84260
84262
|
onClick: onClick
|