@vitrosoftware/common-ui-ts 1.1.152 → 1.1.153
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/common.css +1 -1
- package/css/std/controls/breadcrumbs/breadcrumbs.css +1 -6
- package/css/std/controls/checkbox/checkbox.css +0 -1
- package/css/std/controls/checkbox-reorderable-list/checkbox-reorderable-list.css +25 -0
- package/css/std/controls/control-group/control-group.css +1 -0
- package/css/std/controls/criterion/criterion.css +0 -1
- package/css/std/controls/criterion-field-iterator/criterion-field-iterator.css +38 -0
- package/css/std/controls/date-picker/date-picker.css +0 -1
- package/css/std/controls/dialog/dialog.css +2 -1
- package/css/std/controls/editable-field-iterator/editable-field-iterator.css +3 -0
- package/css/std/controls/editable-field-iterator/item.css +56 -0
- package/css/std/controls/editable-list/editable-list.css +44 -0
- package/css/std/controls/editable-list/img/add.svg +4 -0
- package/css/std/controls/field-iterator/field-iterator.css +1 -1
- package/css/std/controls/image-button/image-button.css +5 -0
- package/css/std/controls/input/input.css +0 -1
- package/css/std/controls/lookup-picker/lookup-picker.css +0 -1
- package/css/std/controls/main/main.css +1 -9
- package/css/std/controls/pin-button/img/pin-active.svg +4 -0
- package/css/std/controls/pin-button/pin-button.css +11 -0
- package/css/std/controls/reorderable-list/img/drag.svg +8 -0
- package/css/std/controls/reorderable-list/reorderable-list.css +37 -0
- package/css/std/controls/search/search.css +4 -1
- package/css/std/controls/sidebar/sidebar-item.css +5 -0
- package/css/std/controls/sidebar/sidebar.css +2 -3
- package/css/std/controls/splitter/splitter.css +3 -28
- package/css/std/controls/switch/switch.css +55 -0
- package/css/std/controls/tab-button-group/img/check.svg +10 -0
- package/css/std/controls/tab-button-group/tab-button-group.css +86 -0
- package/css/std/controls/table-view/table-view-gantt.css +15 -0
- package/css/std/controls/table-view/{table-view-additional-container.css → table-view-hidden-container.css} +1 -1
- package/css/std/controls/table-view/table-view.css +1 -1
- package/css/std/controls/table-view/treegrid-cell.css +4 -0
- package/css/std/controls/table-view/treegrid-header.css +5 -1
- package/css/std/controls/time-picker/time-picker.css +0 -1
- package/dist/index.css +492 -168
- package/dist/index.js +1649 -727
- package/dist/index.js.map +1 -1
- package/dist/src/constants/Event.d.ts +1 -0
- package/dist/src/controls/AddFieldButton/AddFieldButton.d.ts +13 -0
- package/dist/src/controls/AddFieldButton/CheckboxList.d.ts +12 -0
- package/dist/src/controls/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/dist/src/controls/CheckboxReorderableList/CheckboxReorderableList.d.ts +13 -0
- package/dist/src/controls/Criterion/Criterion.d.ts +1 -1
- package/dist/src/controls/CriterionFieldIterator/CriterionFieldIterator.d.ts +23 -0
- package/dist/src/controls/DropdownButton/DropdownButton.d.ts +1 -0
- package/dist/src/controls/EditableFieldIterator/EditableFieldIterator.d.ts +18 -0
- package/dist/src/controls/EditableFieldIterator/Item.d.ts +16 -0
- package/dist/src/controls/EditableList/EditableItem.d.ts +16 -0
- package/dist/src/controls/EditableList/EditableList.d.ts +28 -0
- package/dist/src/controls/FlexBox/FlexBox.d.ts +1 -0
- package/dist/src/controls/ImageButton/ImageButton.d.ts +4 -4
- package/dist/src/controls/List/List.d.ts +4 -1
- package/dist/src/controls/LookupPicker/SelectedValueList.d.ts +0 -1
- package/dist/src/controls/LookupPicker/SelectedValueListItem.d.ts +0 -1
- package/dist/src/controls/MicroFrontend/MicroFrontend.d.ts +1 -0
- package/dist/src/controls/MicroFrontend/renderMicrofrontend.d.ts +1 -1
- package/dist/src/controls/PinButton/PinButton.d.ts +8 -0
- package/dist/src/controls/ReorderableList/ReorderableItem.d.ts +13 -0
- package/dist/src/controls/ReorderableList/ReorderableList.d.ts +15 -0
- package/dist/src/controls/ReorderableList/ReorderableListContent.d.ts +12 -0
- package/dist/src/controls/ReorderableList/ReorderableListItem.d.ts +12 -0
- package/dist/src/controls/Search/Search.d.ts +4 -0
- package/dist/src/controls/Sidebar/CustomItem.d.ts +17 -0
- package/dist/src/controls/Sidebar/LinkItem.d.ts +1 -1
- package/dist/src/controls/Sidebar/Section.d.ts +1 -1
- package/dist/src/controls/Sidebar/SidebarItem.d.ts +2 -0
- package/dist/src/controls/Splitter/Splitter.d.ts +3 -3
- package/dist/src/controls/Switch/Switch.d.ts +11 -0
- package/dist/src/controls/TabButtonGroup/TabButtonGroup.d.ts +10 -0
- package/dist/src/controls/TableView/TableView.d.ts +2 -0
- package/dist/src/controls/TableView/TableViewConstants.d.ts +4 -2
- package/dist/src/controls/TableView/TableViewContext.d.ts +6 -0
- package/dist/src/controls/TableView/TreeGridTableViewContextImpl.d.ts +6 -0
- package/dist/src/controls/TreeView/JsTreeViewContextImpl.d.ts +1 -0
- package/dist/src/controls/TreeView/TreeView.d.ts +3 -1
- package/dist/src/controls/TreeView/TreeViewConstants.d.ts +2 -1
- package/dist/src/index.d.ts +22 -1
- 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.js
CHANGED
|
@@ -465,9 +465,11 @@ var ScrollBar = function ScrollBar(props) {
|
|
|
465
465
|
for (var _iterator = _createForOfIteratorHelperLoose(entries), _step; !(_step = _iterator()).done;) {
|
|
466
466
|
var entry = _step.value;
|
|
467
467
|
if (parent && entry.target === parent) {
|
|
468
|
-
if (parent.offsetHeight && ref.current) {
|
|
468
|
+
if (parent.offsetHeight && parent.offsetWidth && ref.current) {
|
|
469
469
|
ref.current.scrollTop = 1;
|
|
470
|
+
ref.current.scrollLeft = 1;
|
|
470
471
|
ref.current.scrollTop = 0;
|
|
472
|
+
ref.current.scrollLeft = 0;
|
|
471
473
|
resizeObserver.disconnect();
|
|
472
474
|
}
|
|
473
475
|
}
|
|
@@ -511,9 +513,7 @@ var ScrollBar = function ScrollBar(props) {
|
|
|
511
513
|
}
|
|
512
514
|
};
|
|
513
515
|
var updateParent = function updateParent(element) {
|
|
514
|
-
|
|
515
|
-
setParent(element.parentElement);
|
|
516
|
-
}
|
|
516
|
+
setParent(element.parentElement);
|
|
517
517
|
};
|
|
518
518
|
var onWheel = function onWheel(e) {
|
|
519
519
|
e.stopPropagation();
|
|
@@ -531,6 +531,7 @@ var ScrollBar = function ScrollBar(props) {
|
|
|
531
531
|
(function (EVENT) {
|
|
532
532
|
EVENT["MOUSEDOWN"] = "mousedown";
|
|
533
533
|
EVENT["MOUSEUP"] = "mouseup";
|
|
534
|
+
EVENT["MOUSEMOVE"] = "mousemove";
|
|
534
535
|
EVENT["KEYDOWN"] = "keydown";
|
|
535
536
|
EVENT["RESIZE"] = "resize";
|
|
536
537
|
EVENT["DRAGOVER"] = "dragover";
|
|
@@ -747,7 +748,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
747
748
|
};
|
|
748
749
|
var titleClassName = styles['vitro-site-name'] + CTRL.SPACE + (displayItemList.length ? styles['opened'] : styles['closed']);
|
|
749
750
|
return React__default.createElement("div", {
|
|
750
|
-
className: styles['vitro-breadcrumbs']
|
|
751
|
+
className: styles['vitro-breadcrumbs'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
751
752
|
}, props.text ? React__default.createElement("h2", {
|
|
752
753
|
className: titleClassName
|
|
753
754
|
}, props.text) : null, React__default.createElement("div", {
|
|
@@ -20518,6 +20519,7 @@ var EVENT;
|
|
|
20518
20519
|
EVENT["LOADED"] = "loaded.jstree";
|
|
20519
20520
|
EVENT["MODEL"] = "model.jstree";
|
|
20520
20521
|
EVENT["DBLCLICK"] = "dblclick.jstree";
|
|
20522
|
+
EVENT["DROP"] = "drop.vakata.jstree";
|
|
20521
20523
|
})(EVENT || (EVENT = {}));
|
|
20522
20524
|
var NODE_TYPE;
|
|
20523
20525
|
(function (NODE_TYPE) {
|
|
@@ -20726,6 +20728,9 @@ var JsTreeViewContextImpl = /*#__PURE__*/function () {
|
|
|
20726
20728
|
_proto.isUndetermined = function isUndetermined(node) {
|
|
20727
20729
|
return this.jsTree.jstree(METHOD.IS_UNDETERMINED, node);
|
|
20728
20730
|
};
|
|
20731
|
+
_proto.clearState = function clearState() {
|
|
20732
|
+
return this.jsTree.jstree('clear_state');
|
|
20733
|
+
};
|
|
20729
20734
|
return JsTreeViewContextImpl;
|
|
20730
20735
|
}();
|
|
20731
20736
|
|
|
@@ -20733,35 +20738,35 @@ var styles$3 = {"vitro-tree-view":"_tree-view_vitro-tree-view_3oii-CW"};
|
|
|
20733
20738
|
|
|
20734
20739
|
var CSS_CLASS_JSTREE_NODE = 'jstree-node';
|
|
20735
20740
|
var TreeView = function TreeView(props) {
|
|
20736
|
-
var _useState = React.useState(
|
|
20737
|
-
|
|
20738
|
-
|
|
20741
|
+
var _useState = React.useState(),
|
|
20742
|
+
config = _useState[0],
|
|
20743
|
+
setConfig = _useState[1];
|
|
20744
|
+
var _useState2 = React.useState(null),
|
|
20745
|
+
jsTreeTreeView = _useState2[0],
|
|
20746
|
+
setJsTreeTreeView = _useState2[1];
|
|
20739
20747
|
var jsTreeRef = React.useRef(null);
|
|
20740
|
-
var config = TreeViewConfig.getConfig(props.id, props.isCheckboxSelect, props.isSaveCheckboxState, props.expandNodeIdList, props.selectNodeId);
|
|
20741
20748
|
var jsTreeView;
|
|
20742
20749
|
React.useEffect(function () {
|
|
20743
|
-
|
|
20744
|
-
|
|
20745
|
-
|
|
20746
|
-
|
|
20747
|
-
|
|
20750
|
+
setConfig(TreeViewConfig.getConfig(props.id, props.isCheckboxSelect, props.isSaveCheckboxState, props.expandNodeIdList, props.selectNodeId));
|
|
20751
|
+
}, [props.id]);
|
|
20752
|
+
React.useEffect(function () {
|
|
20753
|
+
if (jsTreeTreeView && jsTreeRef.current) {
|
|
20754
|
+
jsTreeTreeView.dispose();
|
|
20748
20755
|
}
|
|
20749
|
-
|
|
20750
|
-
|
|
20751
|
-
jsTreeView = new JsTreeViewContextImpl(jsTree);
|
|
20752
|
-
setJsTreeTreeView(jsTreeView);
|
|
20753
|
-
if (props.onInit) {
|
|
20754
|
-
props.onInit(jsTreeView);
|
|
20756
|
+
if (config) {
|
|
20757
|
+
init();
|
|
20755
20758
|
}
|
|
20759
|
+
}, [jsTreeRef, config]);
|
|
20760
|
+
React.useEffect(function () {
|
|
20756
20761
|
return function () {
|
|
20757
20762
|
jquery(document).off(exports.EVENT.CONTEXTMENU, CTRL.DOT + CSS_CLASS_JSTREE_NODE, function (e) {
|
|
20758
20763
|
return checkNode(e, jsTreeView);
|
|
20759
20764
|
});
|
|
20760
20765
|
};
|
|
20761
|
-
}, [
|
|
20766
|
+
}, []);
|
|
20762
20767
|
React.useEffect(function () {
|
|
20763
20768
|
if (props.onDrop) {
|
|
20764
|
-
jquery(document).on(
|
|
20769
|
+
jquery(document).on(EVENT.DROP, function (e) {
|
|
20765
20770
|
onDrop(e);
|
|
20766
20771
|
});
|
|
20767
20772
|
}
|
|
@@ -20771,6 +20776,32 @@ var TreeView = function TreeView(props) {
|
|
|
20771
20776
|
}
|
|
20772
20777
|
};
|
|
20773
20778
|
}, []);
|
|
20779
|
+
React.useEffect(function () {
|
|
20780
|
+
if (props.onSelect && jsTreeTreeView) {
|
|
20781
|
+
jsTreeTreeView.setEventHandler({
|
|
20782
|
+
id: EVENT.SELECT_NODE,
|
|
20783
|
+
process: props.onSelect
|
|
20784
|
+
});
|
|
20785
|
+
}
|
|
20786
|
+
}, [jsTreeTreeView]);
|
|
20787
|
+
var init = function init() {
|
|
20788
|
+
config.core.data = props.getData;
|
|
20789
|
+
jquery(jsTreeRef.current).jstree(config);
|
|
20790
|
+
var jsTree = jquery(jsTreeRef.current);
|
|
20791
|
+
jsTreeView = new JsTreeViewContextImpl(jsTree);
|
|
20792
|
+
setJsTreeTreeView(jsTreeView);
|
|
20793
|
+
if (props.isCheckboxSelect) {
|
|
20794
|
+
jquery(document).on(exports.EVENT.CONTEXTMENU, CTRL.DOT + CSS_CLASS_JSTREE_NODE, function (e) {
|
|
20795
|
+
return checkNode(e, jsTreeView);
|
|
20796
|
+
});
|
|
20797
|
+
}
|
|
20798
|
+
if (props.isSaveState === false) {
|
|
20799
|
+
jsTreeView.clearState();
|
|
20800
|
+
}
|
|
20801
|
+
if (props.onInit) {
|
|
20802
|
+
props.onInit(jsTreeView);
|
|
20803
|
+
}
|
|
20804
|
+
};
|
|
20774
20805
|
var checkNode = function checkNode(e, treeView) {
|
|
20775
20806
|
e.preventDefault();
|
|
20776
20807
|
e.stopPropagation();
|
|
@@ -21200,6 +21231,7 @@ var EVENT$1;
|
|
|
21200
21231
|
EVENT["ON_END_DRAG_GANTT"] = "OnEndDragGantt";
|
|
21201
21232
|
EVENT["ON_ZOOM"] = "OnZoom";
|
|
21202
21233
|
EVENT["ON_GET_DEPENDENCY"] = "OnGetDependency";
|
|
21234
|
+
EVENT["ON_DATA_RECEIVE"] = "OnDataReceive";
|
|
21203
21235
|
})(EVENT$1 || (EVENT$1 = {}));
|
|
21204
21236
|
var URL;
|
|
21205
21237
|
(function (URL) {
|
|
@@ -21244,6 +21276,7 @@ var CELL_TYPE;
|
|
|
21244
21276
|
CELL_TYPE["HTML"] = "Html";
|
|
21245
21277
|
CELL_TYPE["ICON"] = "Icon";
|
|
21246
21278
|
CELL_TYPE["LIST"] = "List";
|
|
21279
|
+
CELL_TYPE["BOOL"] = "Bool";
|
|
21247
21280
|
})(CELL_TYPE || (CELL_TYPE = {}));
|
|
21248
21281
|
var ATTRIBUTE;
|
|
21249
21282
|
(function (ATTRIBUTE) {
|
|
@@ -21750,6 +21783,9 @@ var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
|
|
|
21750
21783
|
_proto.hideRow = function hideRow(row, del, noshow) {
|
|
21751
21784
|
this.grid.HideRow(row, del, noshow);
|
|
21752
21785
|
};
|
|
21786
|
+
_proto.showRow = function showRow(row, noshow, expanded) {
|
|
21787
|
+
this.grid.ShowRow(row, noshow, expanded);
|
|
21788
|
+
};
|
|
21753
21789
|
_proto.refreshGanttSlack = function refreshGanttSlack(show, min, err) {
|
|
21754
21790
|
if (show === void 0) {
|
|
21755
21791
|
show = true;
|
|
@@ -21795,6 +21831,15 @@ var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
|
|
|
21795
21831
|
_proto.calculate = function calculate(show, calculated) {
|
|
21796
21832
|
this.grid.Calculate(show, calculated);
|
|
21797
21833
|
};
|
|
21834
|
+
_proto.changeColsVisibility = function changeColsVisibility(showList, hideList, prefer) {
|
|
21835
|
+
this.grid.ChangeColsVisibility(showList, hideList, prefer);
|
|
21836
|
+
};
|
|
21837
|
+
_proto.setColWidth = function setColWidth(col, change) {
|
|
21838
|
+
this.grid.SetWidth(col, change);
|
|
21839
|
+
};
|
|
21840
|
+
_proto.doGrouping = function doGrouping(group) {
|
|
21841
|
+
this.grid.DoGrouping(group);
|
|
21842
|
+
};
|
|
21798
21843
|
_createClass(TreeGridTableViewContextImpl, [{
|
|
21799
21844
|
key: "columnList",
|
|
21800
21845
|
get: function get() {
|
|
@@ -21878,6 +21923,14 @@ var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
|
|
|
21878
21923
|
key: "idColumnName",
|
|
21879
21924
|
get: function get() {
|
|
21880
21925
|
return this.grid.IdColumnName;
|
|
21926
|
+
},
|
|
21927
|
+
set: function set(idColumnName) {
|
|
21928
|
+
this.grid.IdColumnName = idColumnName;
|
|
21929
|
+
}
|
|
21930
|
+
}, {
|
|
21931
|
+
key: "groupRow",
|
|
21932
|
+
get: function get() {
|
|
21933
|
+
return this.grid.Rows.Group1;
|
|
21881
21934
|
}
|
|
21882
21935
|
}]);
|
|
21883
21936
|
return TreeGridTableViewContextImpl;
|
|
@@ -21890,28 +21943,27 @@ if (!w$2.tableViewList) {
|
|
|
21890
21943
|
w$2.tableViewList = new Map();
|
|
21891
21944
|
}
|
|
21892
21945
|
var TreeGrid = function TreeGrid(props) {
|
|
21893
|
-
var
|
|
21894
|
-
className = _useState[0],
|
|
21895
|
-
setClassName = _useState[1];
|
|
21946
|
+
var prevGridIdRef = React.useRef();
|
|
21896
21947
|
var disposeTableViewById = function disposeTableViewById(gridId) {
|
|
21897
21948
|
if (gridId && w$2.Grids) {
|
|
21898
21949
|
var tableView = getTableViewById(gridId);
|
|
21899
21950
|
if (tableView && tableView.dispose) {
|
|
21900
21951
|
tableView.dispose();
|
|
21901
21952
|
}
|
|
21953
|
+
w$2.TGDelEvent(null, gridId);
|
|
21902
21954
|
var grid = w$2.Grids[gridId];
|
|
21903
21955
|
if (grid && grid.Dispose) {
|
|
21904
21956
|
grid.Dispose();
|
|
21905
21957
|
}
|
|
21906
21958
|
}
|
|
21907
21959
|
};
|
|
21908
|
-
var initData = function initData(data, value) {
|
|
21909
|
-
if (data.indexOf(
|
|
21960
|
+
var initData = function initData(data, value, tag) {
|
|
21961
|
+
if (data.indexOf("<" + tag) === -1) {
|
|
21910
21962
|
var configStartTag = '</Grid>';
|
|
21911
21963
|
var insertIndex = data.indexOf(configStartTag);
|
|
21912
|
-
data = data.slice(0, insertIndex) + ("<
|
|
21964
|
+
data = data.slice(0, insertIndex) + ("<" + tag + ">" + value + "</" + tag + ">") + data.slice(insertIndex);
|
|
21913
21965
|
} else {
|
|
21914
|
-
var _configStartTag =
|
|
21966
|
+
var _configStartTag = "<" + tag + " ";
|
|
21915
21967
|
var _insertIndex = data.indexOf(_configStartTag) + _configStartTag.length;
|
|
21916
21968
|
data = data.slice(0, _insertIndex) + value + CTRL.SPACE + data.slice(_insertIndex);
|
|
21917
21969
|
}
|
|
@@ -21920,13 +21972,13 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
21920
21972
|
var onDataSendHandler = function onDataSendHandler(tableView, source, data) {
|
|
21921
21973
|
var newData = data;
|
|
21922
21974
|
if (tableView.filterOneLevel) {
|
|
21923
|
-
newData = initData(newData, 'FilterOneLevel="1"');
|
|
21975
|
+
newData = initData(newData, 'FilterOneLevel="1"', 'B');
|
|
21924
21976
|
}
|
|
21925
21977
|
var searchCriterionList = tableView.getSearchCriterionList();
|
|
21926
21978
|
if (searchCriterionList && searchCriterionList.length) {
|
|
21927
21979
|
var searchCriterionListJson = JSON.stringify(searchCriterionList);
|
|
21928
21980
|
var value = "SearchCriterionList='" + searchCriterionListJson + "'";
|
|
21929
|
-
newData = initData(data, value);
|
|
21981
|
+
newData = initData(data, value, 'B');
|
|
21930
21982
|
}
|
|
21931
21983
|
return newData;
|
|
21932
21984
|
};
|
|
@@ -21939,6 +21991,9 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
21939
21991
|
if (props.filterOneLevel) {
|
|
21940
21992
|
grid.filterOneLevel = props.filterOneLevel;
|
|
21941
21993
|
}
|
|
21994
|
+
if (props.idColumnName) {
|
|
21995
|
+
grid.idColumnName = props.idColumnName;
|
|
21996
|
+
}
|
|
21942
21997
|
if (props.eventHandlerList) {
|
|
21943
21998
|
props.eventHandlerList.forEach(function (eventHandler) {
|
|
21944
21999
|
grid.setEventHandler(eventHandler);
|
|
@@ -21954,9 +22009,6 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
21954
22009
|
if (props.onInit) {
|
|
21955
22010
|
props.onInit(grid, next);
|
|
21956
22011
|
}
|
|
21957
|
-
if (g.HasGantt()) {
|
|
21958
|
-
setClassName('vitro-table-view-gantt');
|
|
21959
|
-
}
|
|
21960
22012
|
var onDateSendEventHandler = {
|
|
21961
22013
|
id: EVENT$1.ON_DATA_SEND,
|
|
21962
22014
|
process: onDataSendHandler
|
|
@@ -21978,7 +22030,10 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
21978
22030
|
}
|
|
21979
22031
|
};
|
|
21980
22032
|
React.useEffect(function () {
|
|
21981
|
-
|
|
22033
|
+
if (prevGridIdRef.current) {
|
|
22034
|
+
disposeTableViewById(prevGridIdRef.current);
|
|
22035
|
+
}
|
|
22036
|
+
prevGridIdRef.current = props.id;
|
|
21982
22037
|
if (w$2.TGSetEvent) {
|
|
21983
22038
|
w$2.TGSetEvent(EVENT$1.ON_LOADED, props.id, function (grid, next) {
|
|
21984
22039
|
return onGridLoaded(grid, next);
|
|
@@ -22031,12 +22086,14 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
22031
22086
|
}, "vitro-table-view" + props.id);
|
|
22032
22087
|
}
|
|
22033
22088
|
}
|
|
22089
|
+
}, [props.id]);
|
|
22090
|
+
React.useEffect(function () {
|
|
22034
22091
|
return function () {
|
|
22035
22092
|
disposeTableViewById(props.id);
|
|
22036
22093
|
};
|
|
22037
22094
|
}, []);
|
|
22038
22095
|
return React__default.createElement("div", {
|
|
22039
|
-
className: styles$5["vitro-table-view"] + CTRL.SPACE + className
|
|
22096
|
+
className: styles$5["vitro-table-view"] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
22040
22097
|
}, React__default.createElement("div", {
|
|
22041
22098
|
id: "vitro-table-view" + props.id
|
|
22042
22099
|
}));
|
|
@@ -22069,16 +22126,16 @@ var MicroFrontendState = /*#__PURE__*/function () {
|
|
|
22069
22126
|
return MicroFrontendState;
|
|
22070
22127
|
}();
|
|
22071
22128
|
|
|
22072
|
-
var renderMicrofrontend = function renderMicrofrontend(rendererName, microFrontendState, rootElement, data, tryCnt) {
|
|
22129
|
+
var renderMicrofrontend = function renderMicrofrontend(rendererName, microFrontendState, rootElement, data, isReloadOnChange, tryCnt) {
|
|
22073
22130
|
if (!window[rendererName]) {
|
|
22074
22131
|
if (tryCnt < 10) {
|
|
22075
22132
|
setTimeout(function () {
|
|
22076
|
-
renderMicrofrontend(rendererName, microFrontendState, rootElement, data, tryCnt++);
|
|
22133
|
+
renderMicrofrontend(rendererName, microFrontendState, rootElement, data, isReloadOnChange, tryCnt++);
|
|
22077
22134
|
}, 100);
|
|
22078
22135
|
}
|
|
22079
22136
|
console.log(rendererName + " load error. tryCnt: " + tryCnt);
|
|
22080
22137
|
} else {
|
|
22081
|
-
if (microFrontendState.unmountAction) {
|
|
22138
|
+
if (isReloadOnChange !== false && microFrontendState.unmountAction) {
|
|
22082
22139
|
microFrontendState.unmountAction();
|
|
22083
22140
|
}
|
|
22084
22141
|
microFrontendState.unmountAction = window[rendererName](rootElement, data);
|
|
@@ -22094,7 +22151,7 @@ var MicroFrontend = function MicroFrontend(props) {
|
|
|
22094
22151
|
var renderMicroFrontend = function renderMicroFrontend() {
|
|
22095
22152
|
if (rootRef != null && rootRef.current != null) {
|
|
22096
22153
|
var rendererName = "render" + props.name;
|
|
22097
|
-
renderMicrofrontend(rendererName, microFrontendState, rootRef.current, props.data, 0);
|
|
22154
|
+
renderMicrofrontend(rendererName, microFrontendState, rootRef.current, props.data, props.isReloadOnChange, 0);
|
|
22098
22155
|
}
|
|
22099
22156
|
microFrontendState.renderInProgress = false;
|
|
22100
22157
|
};
|
|
@@ -60596,18 +60653,19 @@ var Image = function Image(props) {
|
|
|
60596
60653
|
|
|
60597
60654
|
var styles$a = {"vitro-image-button":"_image-button_vitro-image-button_34pBVmE"};
|
|
60598
60655
|
|
|
60599
|
-
var ImageButton = function
|
|
60656
|
+
var ImageButton = React.forwardRef(function (props, ref) {
|
|
60600
60657
|
return React__default.createElement(Tooltip$1, {
|
|
60601
60658
|
text: props.tooltipText || CTRL.EMPTY,
|
|
60602
60659
|
placement: props.tooltipPlacement
|
|
60603
|
-
}, React__default.createElement("button", {
|
|
60660
|
+
}, React__default.createElement("button", Object.assign({}, props, {
|
|
60661
|
+
ref: ref,
|
|
60604
60662
|
onClick: props.onClick,
|
|
60605
60663
|
className: styles$a['vitro-image-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
60606
|
-
}, props.imageUrl && React__default.createElement(Image, {
|
|
60664
|
+
}), props.imageUrl && React__default.createElement(Image, {
|
|
60607
60665
|
defaultUrl: props.imageUrl,
|
|
60608
60666
|
hoverUrl: props.imageHoverUrl
|
|
60609
60667
|
})));
|
|
60610
|
-
};
|
|
60668
|
+
});
|
|
60611
60669
|
|
|
60612
60670
|
var DialogComponent = function DialogComponent(props) {
|
|
60613
60671
|
return React__default.createElement("div", {
|
|
@@ -61586,7 +61644,8 @@ var DropdownButton = function DropdownButton(props) {
|
|
|
61586
61644
|
}), itemList.length > 0 && isReady && React__default.createElement(BootstrapDropdown, {
|
|
61587
61645
|
align: ALIGN_END,
|
|
61588
61646
|
onToggle: onDropdownToggle,
|
|
61589
|
-
drop: DROP_DOWN
|
|
61647
|
+
drop: DROP_DOWN,
|
|
61648
|
+
show: props.isShow
|
|
61590
61649
|
}, React__default.createElement(BootstrapDropdown.Toggle, {
|
|
61591
61650
|
ref: buttonRef
|
|
61592
61651
|
}, props.title && React__default.createElement("span", {
|
|
@@ -61917,29 +61976,71 @@ var View = function View(props) {
|
|
|
61917
61976
|
}));
|
|
61918
61977
|
};
|
|
61919
61978
|
|
|
61920
|
-
var styles$s = {"vitro-
|
|
61979
|
+
var styles$s = {"vitro-tab-button-group":"_tab-button-group_vitro-tab-button-group_18mZ_Ds","vitro-tab-button-group-content":"_tab-button-group_vitro-tab-button-group-content_2jyBqmO","active":"_tab-button-group_active_35VFF8T"};
|
|
61980
|
+
|
|
61981
|
+
var CSS_CLASS_ACTIVE = 'active';
|
|
61982
|
+
var CSS_CLASS_TAB_BUTTON_GROUP = 'vitro-tab-button-group';
|
|
61983
|
+
var CSS_CLASS_TAB_BUTTON_GROUP_CONTENT = 'vitro-tab-button-group-content';
|
|
61984
|
+
var TabButtonGroup = function TabButtonGroup(props) {
|
|
61985
|
+
var _useState = React.useState(),
|
|
61986
|
+
activeItem = _useState[0],
|
|
61987
|
+
setActiveItem = _useState[1];
|
|
61988
|
+
React.useEffect(function () {
|
|
61989
|
+
var _props$itemList$;
|
|
61990
|
+
var _activeItem = props.activeItem ? props.activeItem : (_props$itemList$ = props.itemList[0]) === null || _props$itemList$ === void 0 ? void 0 : _props$itemList$.id;
|
|
61991
|
+
setActiveItem(_activeItem);
|
|
61992
|
+
}, [props.activeItem]);
|
|
61993
|
+
var setButtonActive = function setButtonActive(index) {
|
|
61994
|
+
var _activeItem = props.itemList[index] ? props.itemList[index] : props.itemList[0];
|
|
61995
|
+
setActiveItem(_activeItem.id);
|
|
61996
|
+
props.onChange(_activeItem);
|
|
61997
|
+
};
|
|
61998
|
+
var isTabButtonActive = function isTabButtonActive(index) {
|
|
61999
|
+
var _props$itemList$index;
|
|
62000
|
+
return ((_props$itemList$index = props.itemList[index]) === null || _props$itemList$index === void 0 ? void 0 : _props$itemList$index.id) == activeItem;
|
|
62001
|
+
};
|
|
62002
|
+
var getTabButton = function getTabButton(item, index) {
|
|
62003
|
+
return React__default.createElement(Button$2, {
|
|
62004
|
+
key: item.id,
|
|
62005
|
+
className: isTabButtonActive(index) ? styles$s[CSS_CLASS_ACTIVE] : CTRL.EMPTY,
|
|
62006
|
+
text: item.text,
|
|
62007
|
+
onClick: function onClick() {
|
|
62008
|
+
setButtonActive(index);
|
|
62009
|
+
}
|
|
62010
|
+
});
|
|
62011
|
+
};
|
|
62012
|
+
return React__default.createElement("div", {
|
|
62013
|
+
className: styles$s[CSS_CLASS_TAB_BUTTON_GROUP]
|
|
62014
|
+
}, React__default.createElement("div", {
|
|
62015
|
+
className: styles$s[CSS_CLASS_TAB_BUTTON_GROUP_CONTENT]
|
|
62016
|
+
}, props.itemList.map(function (item, index) {
|
|
62017
|
+
return getTabButton(item, index);
|
|
62018
|
+
})));
|
|
62019
|
+
};
|
|
62020
|
+
|
|
62021
|
+
var styles$t = {"vitro-label":"_label_vitro-label_it8WNUE","vitro-required":"_label_vitro-required_2-bSGif"};
|
|
61921
62022
|
|
|
61922
62023
|
var Label = React.forwardRef(function (props, ref) {
|
|
61923
62024
|
return React__default.createElement("div", {
|
|
61924
62025
|
ref: ref,
|
|
61925
|
-
className: styles$
|
|
62026
|
+
className: styles$t['vitro-label'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
61926
62027
|
style: props.width ? {
|
|
61927
62028
|
width: props.width + UNIT.PX
|
|
61928
62029
|
} : undefined
|
|
61929
62030
|
}, props.text, props.isRequired && React__default.createElement("span", {
|
|
61930
|
-
className: styles$
|
|
62031
|
+
className: styles$t['vitro-required']
|
|
61931
62032
|
}, CTRL.ASTERISK));
|
|
61932
62033
|
});
|
|
61933
62034
|
|
|
61934
|
-
var styles$
|
|
62035
|
+
var styles$u = {"vitro-error-message":"_error-message_vitro-error-message_2lHJjgO"};
|
|
61935
62036
|
|
|
61936
62037
|
var ErrorMessage = function ErrorMessage(props) {
|
|
61937
62038
|
return React__default.createElement("span", {
|
|
61938
|
-
className: styles$
|
|
62039
|
+
className: styles$u['vitro-error-message'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
61939
62040
|
}, props.text);
|
|
61940
62041
|
};
|
|
61941
62042
|
|
|
61942
|
-
var styles$
|
|
62043
|
+
var styles$v = {"vitro-copy-button":"_copy-button_vitro-copy-button_1_JmPVH"};
|
|
61943
62044
|
|
|
61944
62045
|
var CopyButton = function CopyButton(props) {
|
|
61945
62046
|
var copy = function copy() {
|
|
@@ -61977,7 +62078,7 @@ var CopyButton = function CopyButton(props) {
|
|
|
61977
62078
|
}
|
|
61978
62079
|
};
|
|
61979
62080
|
return React__default.createElement(ImageButton, {
|
|
61980
|
-
className: styles$
|
|
62081
|
+
className: styles$v['vitro-copy-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
61981
62082
|
onClick: copy
|
|
61982
62083
|
});
|
|
61983
62084
|
};
|
|
@@ -62516,7 +62617,7 @@ var MAX_LENGTH;
|
|
|
62516
62617
|
MAX_LENGTH[MAX_LENGTH["SINGLELINE"] = 255] = "SINGLELINE";
|
|
62517
62618
|
})(MAX_LENGTH || (MAX_LENGTH = {}));
|
|
62518
62619
|
|
|
62519
|
-
var styles$
|
|
62620
|
+
var styles$w = {"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"};
|
|
62520
62621
|
|
|
62521
62622
|
var Input = React.forwardRef(function (props, ref) {
|
|
62522
62623
|
var control;
|
|
@@ -62536,9 +62637,14 @@ var Input = React.forwardRef(function (props, ref) {
|
|
|
62536
62637
|
React.useEffect(function () {
|
|
62537
62638
|
var value = props.value ? getValue(props.value) : CTRL.EMPTY;
|
|
62538
62639
|
setInputValue(value);
|
|
62640
|
+
if (isValueOverflow()) {
|
|
62641
|
+
setIsShowTooltip(true);
|
|
62642
|
+
} else {
|
|
62643
|
+
setIsShowTooltip(false);
|
|
62644
|
+
}
|
|
62539
62645
|
}, [props.value]);
|
|
62540
62646
|
React.useEffect(function () {
|
|
62541
|
-
setState(props.errorMessage || props.isError ? styles$
|
|
62647
|
+
setState(props.errorMessage || props.isError ? styles$w['vitro-error'] : CTRL.EMPTY);
|
|
62542
62648
|
}, [props.errorMessage, props.isError]);
|
|
62543
62649
|
React.useEffect(function () {
|
|
62544
62650
|
var jsonStyle = {};
|
|
@@ -62548,7 +62654,7 @@ var Input = React.forwardRef(function (props, ref) {
|
|
|
62548
62654
|
setStyle(jsonStyle);
|
|
62549
62655
|
}, [props.height, props.minHeight, props.maxHeight]);
|
|
62550
62656
|
React.useEffect(function () {
|
|
62551
|
-
if (state === styles$
|
|
62657
|
+
if (state === styles$w['vitro-focus'] && inputRef.current && document.activeElement !== inputRef.current) {
|
|
62552
62658
|
inputRef.current.focus();
|
|
62553
62659
|
}
|
|
62554
62660
|
}, [state]);
|
|
@@ -62584,18 +62690,22 @@ var Input = React.forwardRef(function (props, ref) {
|
|
|
62584
62690
|
}
|
|
62585
62691
|
};
|
|
62586
62692
|
var setStateOnBlur = function setStateOnBlur() {
|
|
62587
|
-
setState(props.errorMessage || props.isError ? styles$
|
|
62693
|
+
setState(props.errorMessage || props.isError ? styles$w['vitro-error'] : CTRL.EMPTY);
|
|
62588
62694
|
};
|
|
62589
62695
|
var onBlur = function onBlur(e) {
|
|
62590
62696
|
setStateOnBlur();
|
|
62697
|
+
if (isValueOverflow()) {
|
|
62698
|
+
setIsShowTooltip(true);
|
|
62699
|
+
}
|
|
62591
62700
|
if (props.onBlur) {
|
|
62592
62701
|
props.onBlur(e);
|
|
62593
62702
|
}
|
|
62594
62703
|
};
|
|
62595
62704
|
var onFocus = function onFocus(e) {
|
|
62596
62705
|
var _inputRef$current;
|
|
62597
|
-
setState(styles$
|
|
62706
|
+
setState(styles$w['vitro-focus']);
|
|
62598
62707
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
62708
|
+
setIsShowTooltip(false);
|
|
62599
62709
|
if (props.onFocus) {
|
|
62600
62710
|
props.onFocus(e);
|
|
62601
62711
|
}
|
|
@@ -62627,14 +62737,6 @@ var Input = React.forwardRef(function (props, ref) {
|
|
|
62627
62737
|
return false;
|
|
62628
62738
|
}
|
|
62629
62739
|
};
|
|
62630
|
-
var onMouseOver = function onMouseOver() {
|
|
62631
|
-
var isOverflow = isValueOverflow();
|
|
62632
|
-
if (isOverflow && !state) {
|
|
62633
|
-
setIsShowTooltip(true);
|
|
62634
|
-
} else {
|
|
62635
|
-
setIsShowTooltip(false);
|
|
62636
|
-
}
|
|
62637
|
-
};
|
|
62638
62740
|
var getMaxLength = function getMaxLength() {
|
|
62639
62741
|
if (props.maxLength && props.maxLength < MAX_LENGTH.SINGLELINE) {
|
|
62640
62742
|
return props.maxLength;
|
|
@@ -62691,19 +62793,19 @@ var Input = React.forwardRef(function (props, ref) {
|
|
|
62691
62793
|
});
|
|
62692
62794
|
if (props.isIcon) {
|
|
62693
62795
|
control = React__default.createElement("div", {
|
|
62694
|
-
className: styles$
|
|
62796
|
+
className: styles$w['vitro-icon-control'] + CTRL.SPACE + state
|
|
62695
62797
|
}, input);
|
|
62696
62798
|
} else {
|
|
62697
62799
|
control = input;
|
|
62698
62800
|
}
|
|
62699
62801
|
}
|
|
62700
62802
|
var getClassName = function getClassName() {
|
|
62701
|
-
var classList = [styles$
|
|
62803
|
+
var classList = [styles$w['vitro-control'], props.className];
|
|
62702
62804
|
if (props.isDisabled || props.isReadOnly) {
|
|
62703
|
-
classList.push(styles$
|
|
62805
|
+
classList.push(styles$w['vitro-read-only']);
|
|
62704
62806
|
}
|
|
62705
62807
|
if (props.labelPosition === POSITION.LEFT) {
|
|
62706
|
-
classList.push(styles$
|
|
62808
|
+
classList.push(styles$w['vitro-left-label']);
|
|
62707
62809
|
}
|
|
62708
62810
|
classList.push(state);
|
|
62709
62811
|
return classList.join(CTRL.SPACE);
|
|
@@ -62712,46 +62814,42 @@ var Input = React.forwardRef(function (props, ref) {
|
|
|
62712
62814
|
text: props.isMultiline || isShowTooltip === false ? CTRL.EMPTY : inputValue,
|
|
62713
62815
|
placement: PLACEMENT.BOTTOM,
|
|
62714
62816
|
isShow: isShowTooltip === false ? false : undefined,
|
|
62715
|
-
className: styles$
|
|
62817
|
+
className: styles$w['vitro-tooltip']
|
|
62716
62818
|
}, React__default.createElement("div", {
|
|
62717
|
-
className: getClassName()
|
|
62718
|
-
onMouseOver: onMouseOver,
|
|
62719
|
-
onMouseLeave: function onMouseLeave() {
|
|
62720
|
-
return setIsShowTooltip(false);
|
|
62721
|
-
}
|
|
62819
|
+
className: getClassName()
|
|
62722
62820
|
}, props.label && React__default.createElement(Label, {
|
|
62723
62821
|
text: props.label,
|
|
62724
62822
|
isRequired: props.isRequired,
|
|
62725
62823
|
width: props.labelWidth,
|
|
62726
|
-
className: styles$
|
|
62824
|
+
className: styles$w['vitro-label']
|
|
62727
62825
|
}), control, props.isReadOnly && props.isShowCopyButton !== false ? React__default.createElement(CopyButton, {
|
|
62728
|
-
className: styles$
|
|
62826
|
+
className: styles$w['vitro-copy-button'],
|
|
62729
62827
|
value: inputValue
|
|
62730
62828
|
}) : null, props.children, props.errorMessage && React__default.createElement(ErrorMessage, {
|
|
62731
62829
|
text: props.errorMessage,
|
|
62732
|
-
className: styles$
|
|
62830
|
+
className: styles$w['vitro-error-message']
|
|
62733
62831
|
})));
|
|
62734
62832
|
});
|
|
62735
62833
|
|
|
62736
|
-
var styles$
|
|
62834
|
+
var styles$x = {"vitro-issue-tile-footer":"_issue-tile-footer_vitro-issue-tile-footer_KtHOieL","vitro-issue-tile-status":"_issue-tile-footer_vitro-issue-tile-status_3OjC56L","vitro-status-color":"_issue-tile-footer_vitro-status-color_hhLb22J","vitro-button-more":"_issue-tile-footer_vitro-button-more_1RyVAeR"};
|
|
62737
62835
|
|
|
62738
62836
|
var IssueTileFooter = function IssueTileFooter(props) {
|
|
62739
62837
|
return React__default.createElement("div", {
|
|
62740
|
-
className: styles$
|
|
62838
|
+
className: styles$x['vitro-issue-tile-footer']
|
|
62741
62839
|
}, React__default.createElement("div", {
|
|
62742
|
-
className: styles$
|
|
62840
|
+
className: styles$x['vitro-issue-tile-status']
|
|
62743
62841
|
}, props.statusColor && React__default.createElement("div", {
|
|
62744
|
-
className: styles$
|
|
62842
|
+
className: styles$x['vitro-status-color'],
|
|
62745
62843
|
style: {
|
|
62746
62844
|
background: props.statusColor
|
|
62747
62845
|
}
|
|
62748
62846
|
}), props.status), props.onShowMoreClick && React__default.createElement("div", {
|
|
62749
62847
|
onClick: props.onShowMoreClick,
|
|
62750
|
-
className: styles$
|
|
62848
|
+
className: styles$x['vitro-button-more']
|
|
62751
62849
|
}));
|
|
62752
62850
|
};
|
|
62753
62851
|
|
|
62754
|
-
var styles$
|
|
62852
|
+
var styles$y = {"vitro-avatar":"_avatar_vitro-avatar_P2tU-_r"};
|
|
62755
62853
|
|
|
62756
62854
|
var Avatar = function Avatar(props) {
|
|
62757
62855
|
var getInitials = function getInitials() {
|
|
@@ -62790,7 +62888,7 @@ var Avatar = function Avatar(props) {
|
|
|
62790
62888
|
var getBgColor = function getBgColor(name) {
|
|
62791
62889
|
return "linear-gradient(0deg, hsla(" + getHue(name) + ", 58%, 55%, 1), hsla(" + (getHue(name) + 50) + ", 100%, 78%, 1))";
|
|
62792
62890
|
};
|
|
62793
|
-
var className = styles$
|
|
62891
|
+
var className = styles$y['vitro-avatar'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY);
|
|
62794
62892
|
return React__default.createElement("div", {
|
|
62795
62893
|
className: className,
|
|
62796
62894
|
style: props.image ? {} : {
|
|
@@ -62801,30 +62899,30 @@ var Avatar = function Avatar(props) {
|
|
|
62801
62899
|
}) : getInitials());
|
|
62802
62900
|
};
|
|
62803
62901
|
|
|
62804
|
-
var styles$
|
|
62902
|
+
var styles$z = {"vitro-issue-tile-header":"_issue-tile-header_vitro-issue-tile-header_jTcaXBE","vitro-link":"_issue-tile-header_vitro-link_9DQ3Bqk","vitro-user-info":"_issue-tile-header_vitro-user-info_16Yhluy","vitro-avatar":"_issue-tile-header_vitro-avatar_3rf1BME","vitro-dropdown-button":"_issue-tile-header_vitro-dropdown-button_1-7nI-k"};
|
|
62805
62903
|
|
|
62806
62904
|
var VERSION = 'V';
|
|
62807
62905
|
var TARGET_BLANK = '_blank';
|
|
62808
62906
|
var IssueTileHeader = function IssueTileHeader(props) {
|
|
62809
62907
|
return React__default.createElement("div", {
|
|
62810
|
-
className: styles$
|
|
62908
|
+
className: styles$z['vitro-issue-tile-header']
|
|
62811
62909
|
}, React__default.createElement("a", {
|
|
62812
|
-
className: styles$
|
|
62910
|
+
className: styles$z['vitro-link'],
|
|
62813
62911
|
href: props.url,
|
|
62814
62912
|
target: TARGET_BLANK
|
|
62815
62913
|
}, CTRL.SHARP + props.id), React__default.createElement("div", {
|
|
62816
|
-
className: styles$
|
|
62914
|
+
className: styles$z['vitro-user-info']
|
|
62817
62915
|
}, React__default.createElement(Avatar, {
|
|
62818
62916
|
image: props.userImage,
|
|
62819
62917
|
userName: props.userName,
|
|
62820
|
-
className: styles$
|
|
62918
|
+
className: styles$z['vitro-avatar']
|
|
62821
62919
|
}), React__default.createElement("div", null, React__default.createElement("span", null, props.userName), React__default.createElement("span", null, props.date))), React__default.createElement("a", {
|
|
62822
|
-
className: styles$
|
|
62920
|
+
className: styles$z['vitro-link'],
|
|
62823
62921
|
href: props.fileVersionUrl,
|
|
62824
62922
|
target: TARGET_BLANK
|
|
62825
62923
|
}, VERSION + CTRL.SQUARE_BRACKET_OPEN + props.fileVersion + CTRL.SQUARE_BRACKET_CLOSE), props.actionList && props.actionList.length ? React__default.createElement(DropdownButton, {
|
|
62826
62924
|
itemList: props.actionList,
|
|
62827
|
-
className: styles$
|
|
62925
|
+
className: styles$z['vitro-dropdown-button']
|
|
62828
62926
|
}) : null);
|
|
62829
62927
|
};
|
|
62830
62928
|
|
|
@@ -62835,7 +62933,7 @@ var LOCALE$3;
|
|
|
62835
62933
|
LOCALE["ERROR_EMPTY"] = "app.common.issueTile.error.empty";
|
|
62836
62934
|
})(LOCALE$3 || (LOCALE$3 = {}));
|
|
62837
62935
|
|
|
62838
|
-
var styles$
|
|
62936
|
+
var styles$A = {"vitro-issue-tile":"_issue-tile_vitro-issue-tile_2D7E9Y-","vitro-control":"_issue-tile_vitro-control_3V6_Ze7"};
|
|
62839
62937
|
|
|
62840
62938
|
var IssueTile = function IssueTile(props) {
|
|
62841
62939
|
var _useState = React.useState(props.name),
|
|
@@ -62890,7 +62988,7 @@ var IssueTile = function IssueTile(props) {
|
|
|
62890
62988
|
};
|
|
62891
62989
|
return React__default.createElement("div", {
|
|
62892
62990
|
id: 'vitro-issue-tile-' + props.id,
|
|
62893
|
-
className: styles$
|
|
62991
|
+
className: styles$A['vitro-issue-tile'] + (props.isActive ? CTRL.SPACE + 'vitro-active' : CTRL.EMPTY),
|
|
62894
62992
|
onClick: props.onClick
|
|
62895
62993
|
}, React__default.createElement(IssueTileHeader, {
|
|
62896
62994
|
id: props.id,
|
|
@@ -62906,7 +63004,7 @@ var IssueTile = function IssueTile(props) {
|
|
|
62906
63004
|
}, React__default.createElement("div", null, React__default.createElement(Input, {
|
|
62907
63005
|
label: props.createLocale(LOCALE$3.INPUT_NAME_LABEL),
|
|
62908
63006
|
onBlur: _onBlurInputName,
|
|
62909
|
-
className: styles$
|
|
63007
|
+
className: styles$A['vitro-control'],
|
|
62910
63008
|
value: nameVal,
|
|
62911
63009
|
isRequired: true,
|
|
62912
63010
|
ref: inputRef,
|
|
@@ -62916,7 +63014,7 @@ var IssueTile = function IssueTile(props) {
|
|
|
62916
63014
|
isMultiline: true,
|
|
62917
63015
|
label: props.createLocale(LOCALE$3.TEXTAREA_LABEL),
|
|
62918
63016
|
onBlur: props.onBlur,
|
|
62919
|
-
className: styles$
|
|
63017
|
+
className: styles$A['vitro-control'],
|
|
62920
63018
|
value: props.text,
|
|
62921
63019
|
rows: 7
|
|
62922
63020
|
}), React__default.createElement(IssueTileFooter, {
|
|
@@ -62926,7 +63024,7 @@ var IssueTile = function IssueTile(props) {
|
|
|
62926
63024
|
}));
|
|
62927
63025
|
};
|
|
62928
63026
|
|
|
62929
|
-
var styles$
|
|
63027
|
+
var styles$B = {"vitro-file-version-select":"_file-version-select_vitro-file-version-select_1wIyab3","vitro-selected-version":"_file-version-select_vitro-selected-version_2BVgaBC","vitro-file-name":"_file-version-select_vitro-file-name_1PtLh8A","vitro-file-name-tip":"_file-version-select_vitro-file-name-tip_12pxa7I","vitro-button-collapse-up":"_file-version-select_vitro-button-collapse-up_2GaCEdu","vitro-button-collapse-bottom":"_file-version-select_vitro-button-collapse-bottom_38zg3bU","vitro-version-name-red":"_file-version-select_vitro-version-name-red_-j6Z9ap","vitro-version-name-green":"_file-version-select_vitro-version-name-green_7PfVUHk","vitro-version-list":"_file-version-select_vitro-version-list_3h5D3pD","vitro-file-version-item":"_file-version-select_vitro-file-version-item_38KWa8a","vitro-content":"_file-version-select_vitro-content_zDUhjj0","vitro-version-name":"_file-version-select_vitro-version-name_1821bal","vitro-flex":"_file-version-select_vitro-flex_35zCAQv","vitro-active":"_file-version-select_vitro-active_1PRyjUa"};
|
|
62930
63028
|
|
|
62931
63029
|
var VERSION_PREFIX = 'V';
|
|
62932
63030
|
var Item$1 = function Item(props) {
|
|
@@ -62937,7 +63035,7 @@ var Item$1 = function Item(props) {
|
|
|
62937
63035
|
}
|
|
62938
63036
|
}, [versionNameRef]);
|
|
62939
63037
|
return React__default.createElement("li", {
|
|
62940
|
-
className: styles$
|
|
63038
|
+
className: styles$B['vitro-file-version-item'] + CTRL.SPACE + (props.isActive ? styles$B['vitro-active'] : CTRL.EMPTY),
|
|
62941
63039
|
onClick: function onClick() {
|
|
62942
63040
|
return props.onClick(props.version);
|
|
62943
63041
|
}
|
|
@@ -62946,13 +63044,13 @@ var Item$1 = function Item(props) {
|
|
|
62946
63044
|
style: props.versionWidth ? {
|
|
62947
63045
|
width: props.versionWidth + UNIT.PX
|
|
62948
63046
|
} : {},
|
|
62949
|
-
className: props.isActive ? props.isCurrent ? styles$
|
|
63047
|
+
className: props.isActive ? props.isCurrent ? styles$B['vitro-version-name-green'] : styles$B['vitro-version-name-red'] : styles$B['vitro-version-name']
|
|
62950
63048
|
}, VERSION_PREFIX + props.version.name), React__default.createElement("div", {
|
|
62951
|
-
className: styles$
|
|
63049
|
+
className: styles$B['vitro-content']
|
|
62952
63050
|
}, React__default.createElement("div", {
|
|
62953
|
-
className: styles$
|
|
63051
|
+
className: styles$B['vitro-file-name']
|
|
62954
63052
|
}, props.fileName), React__default.createElement("div", {
|
|
62955
|
-
className: styles$
|
|
63053
|
+
className: styles$B['vitro-flex']
|
|
62956
63054
|
}, React__default.createElement("span", null, props.version.userName), React__default.createElement("span", null, props.version.date))));
|
|
62957
63055
|
};
|
|
62958
63056
|
|
|
@@ -63024,17 +63122,17 @@ var FileVersionSelect = function FileVersionSelect(props) {
|
|
|
63024
63122
|
}
|
|
63025
63123
|
};
|
|
63026
63124
|
return React__default.createElement("div", {
|
|
63027
|
-
className: styles$
|
|
63125
|
+
className: styles$B['vitro-file-version-select'],
|
|
63028
63126
|
ref: selectRef
|
|
63029
63127
|
}, selectedVersion && React__default.createElement("div", {
|
|
63030
|
-
className: styles$
|
|
63128
|
+
className: styles$B['vitro-selected-version'],
|
|
63031
63129
|
onClick: onCollapseButtonClick
|
|
63032
63130
|
}, React__default.createElement("div", {
|
|
63033
63131
|
ref: fileNameRef,
|
|
63034
63132
|
onMouseOver: onMouseOver,
|
|
63035
|
-
className: styles$
|
|
63133
|
+
className: styles$B['vitro-file-name']
|
|
63036
63134
|
}, props.fileName), showFileName && React__default.createElement("div", {
|
|
63037
|
-
className: styles$
|
|
63135
|
+
className: styles$B['vitro-file-name-tip'],
|
|
63038
63136
|
onMouseLeave: function onMouseLeave() {
|
|
63039
63137
|
return setShowFileName(false);
|
|
63040
63138
|
},
|
|
@@ -63043,11 +63141,11 @@ var FileVersionSelect = function FileVersionSelect(props) {
|
|
|
63043
63141
|
placement: PLACEMENT.BOTTOM,
|
|
63044
63142
|
text: isCurrent ? props.tooltipTextCurrent : props.tooltipTextNotCurrent
|
|
63045
63143
|
}, React__default.createElement("div", {
|
|
63046
|
-
className: isCurrent ? styles$
|
|
63144
|
+
className: isCurrent ? styles$B['vitro-version-name-green'] : styles$B['vitro-version-name-red']
|
|
63047
63145
|
}, VERSION_PREFIX$1 + selectedVersion.name)), React__default.createElement("div", {
|
|
63048
|
-
className: showValueList ? styles$
|
|
63146
|
+
className: showValueList ? styles$B['vitro-button-collapse-up'] : styles$B['vitro-button-collapse-bottom']
|
|
63049
63147
|
})), showValueList && React__default.createElement("ul", {
|
|
63050
|
-
className: styles$
|
|
63148
|
+
className: styles$B['vitro-version-list']
|
|
63051
63149
|
}, React__default.createElement(ScrollBar, null, props.itemList.map(function (item) {
|
|
63052
63150
|
return React__default.createElement(Item$1, {
|
|
63053
63151
|
version: item,
|
|
@@ -63063,7 +63161,7 @@ var FileVersionSelect = function FileVersionSelect(props) {
|
|
|
63063
63161
|
|
|
63064
63162
|
var w$6 = window;
|
|
63065
63163
|
var CSS_CLASS_SIDEBAR_CONTENT = 'body__sidebar-content';
|
|
63066
|
-
var CSS_CLASS_ACTIVE = 'vitro-active';
|
|
63164
|
+
var CSS_CLASS_ACTIVE$1 = 'vitro-active';
|
|
63067
63165
|
var CSS_CLASS_ISSUE_TILE = 'vitro-issue-tile';
|
|
63068
63166
|
var ID_VIEWER_CONTAINER = 'viewerContainer';
|
|
63069
63167
|
var ID_FILE_VERSION_SELECT = 'fileVersionSelect';
|
|
@@ -63106,8 +63204,8 @@ var Viewer = function Viewer(props) {
|
|
|
63106
63204
|
var onIssueTileClick = function onIssueTileClick(issue) {
|
|
63107
63205
|
var id = issue.id;
|
|
63108
63206
|
var markup = JSON.parse(issue.markup);
|
|
63109
|
-
$(CTRL.DOT + CSS_CLASS_SIDEBAR_CONTENT).children().removeClass(CSS_CLASS_ACTIVE);
|
|
63110
|
-
$(CTRL.SHARP + CSS_CLASS_ISSUE_TILE + CTRL.DASH + id).addClass(CSS_CLASS_ACTIVE);
|
|
63207
|
+
$(CTRL.DOT + CSS_CLASS_SIDEBAR_CONTENT).children().removeClass(CSS_CLASS_ACTIVE$1);
|
|
63208
|
+
$(CTRL.SHARP + CSS_CLASS_ISSUE_TILE + CTRL.DASH + id).addClass(CSS_CLASS_ACTIVE$1);
|
|
63111
63209
|
var numPages = w$6.PDFViewerApplication.pagesCount;
|
|
63112
63210
|
if (markup && markup.pageNr <= numPages && markup.pageNr >= 1) {
|
|
63113
63211
|
if (markup.pageNr != w$6.PDFViewerApplication.pdfViewer.currentPageNumber) {
|
|
@@ -63150,7 +63248,7 @@ var Viewer = function Viewer(props) {
|
|
|
63150
63248
|
};
|
|
63151
63249
|
|
|
63152
63250
|
var name = "@vitrosoftware/common-ui-ts";
|
|
63153
|
-
var version$1 = "1.1.
|
|
63251
|
+
var version$1 = "1.1.153";
|
|
63154
63252
|
var description = "vitro software common ui ts";
|
|
63155
63253
|
var author = "";
|
|
63156
63254
|
var license = "MIT";
|
|
@@ -63295,7 +63393,7 @@ var PdfViewer = function PdfViewer(props) {
|
|
|
63295
63393
|
});
|
|
63296
63394
|
};
|
|
63297
63395
|
|
|
63298
|
-
var styles$
|
|
63396
|
+
var styles$C = {"vitro-login-content":"_login-content_vitro-login-content_2RdLZle"};
|
|
63299
63397
|
|
|
63300
63398
|
var LoginContent = function LoginContent(props) {
|
|
63301
63399
|
var ref = React.useRef(null);
|
|
@@ -63306,26 +63404,26 @@ var LoginContent = function LoginContent(props) {
|
|
|
63306
63404
|
}
|
|
63307
63405
|
}, [props.children]);
|
|
63308
63406
|
return React__default.createElement("div", {
|
|
63309
|
-
className: styles$
|
|
63407
|
+
className: styles$C['vitro-login-content'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
63310
63408
|
ref: ref
|
|
63311
63409
|
}, props.children);
|
|
63312
63410
|
};
|
|
63313
63411
|
|
|
63314
|
-
var styles$
|
|
63412
|
+
var styles$D = {"vitro-login-layout":"_login_vitro-login-layout_1C8owlz","vitro-login":"_login_vitro-login_12nYNm2","vitro-logo":"_login_vitro-logo_3-qTjgy","vitro-footer":"_login_vitro-footer_1lceaP0","vitro-link-list":"_login_vitro-link-list_1rQQg9u","vitro-copyright":"_login_vitro-copyright_1gm65Ao","vitro-language":"_login_vitro-language_2T3uktL"};
|
|
63315
63413
|
|
|
63316
63414
|
var LoginFooter = function LoginFooter(props) {
|
|
63317
63415
|
return React__default.createElement("div", {
|
|
63318
|
-
className: styles$
|
|
63416
|
+
className: styles$D['vitro-footer']
|
|
63319
63417
|
}, React__default.createElement("div", {
|
|
63320
|
-
className: styles$
|
|
63418
|
+
className: styles$D['vitro-language']
|
|
63321
63419
|
}), React__default.createElement("ul", {
|
|
63322
|
-
className: styles$
|
|
63420
|
+
className: styles$D['vitro-link-list']
|
|
63323
63421
|
}, props.itemList && props.itemList.map(function (item) {
|
|
63324
63422
|
return React__default.createElement("li", null, React__default.createElement("a", {
|
|
63325
63423
|
href: item.url
|
|
63326
63424
|
}, item.text));
|
|
63327
63425
|
})), React__default.createElement("div", {
|
|
63328
|
-
className: styles$
|
|
63426
|
+
className: styles$D['vitro-copyright']
|
|
63329
63427
|
}, props.copyright));
|
|
63330
63428
|
};
|
|
63331
63429
|
|
|
@@ -63369,11 +63467,11 @@ var FIELD_NAME;
|
|
|
63369
63467
|
var Login = function Login(props) {
|
|
63370
63468
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
63371
63469
|
return React__default.createElement("div", {
|
|
63372
|
-
className: styles$
|
|
63470
|
+
className: styles$D['vitro-login-layout']
|
|
63373
63471
|
}, React__default.createElement("div", {
|
|
63374
|
-
className: styles$
|
|
63472
|
+
className: styles$D['vitro-login']
|
|
63375
63473
|
}, React__default.createElement(Image, {
|
|
63376
|
-
className: styles$
|
|
63474
|
+
className: styles$D['vitro-logo'],
|
|
63377
63475
|
defaultUrl: props.logo
|
|
63378
63476
|
}), React__default.createElement(LoginContent, null, props.children)), React__default.createElement(LoginFooter, {
|
|
63379
63477
|
copyright: props.copyright || localeService.create(LOCALE$4.COPYRIGHT),
|
|
@@ -63381,7 +63479,7 @@ var Login = function Login(props) {
|
|
|
63381
63479
|
}));
|
|
63382
63480
|
};
|
|
63383
63481
|
|
|
63384
|
-
var styles$
|
|
63482
|
+
var styles$E = {"vitro-control":"_checkbox_vitro-control_DfB5DDM","vitro-checkbox-content":"_checkbox_vitro-checkbox-content_2fBG1zl","vitro-label":"_checkbox_vitro-label_qZxCbCP","vitro-left-label":"_checkbox_vitro-left-label_Uu1Tp31"};
|
|
63385
63483
|
|
|
63386
63484
|
var Checkbox = React.forwardRef(function (props, ref) {
|
|
63387
63485
|
var _useState = React.useState(props.value ? true : false),
|
|
@@ -63410,14 +63508,14 @@ var Checkbox = React.forwardRef(function (props, ref) {
|
|
|
63410
63508
|
props.onChange && props.onChange(!value, props.name);
|
|
63411
63509
|
_setValue(!value);
|
|
63412
63510
|
};
|
|
63413
|
-
var className = styles$
|
|
63511
|
+
var className = styles$E['vitro-control'] + (props.labelPosition === POSITION.LEFT ? CTRL.SPACE + styles$E['vitro-left-label'] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY);
|
|
63414
63512
|
return React__default.createElement("div", {
|
|
63415
63513
|
className: className
|
|
63416
63514
|
}, props.labelPosition === POSITION.LEFT && React__default.createElement(Label, {
|
|
63417
63515
|
text: props.label,
|
|
63418
|
-
className: styles$
|
|
63516
|
+
className: styles$E['vitro-label']
|
|
63419
63517
|
}), React__default.createElement("div", {
|
|
63420
|
-
className: styles$
|
|
63518
|
+
className: styles$E['vitro-checkbox-content']
|
|
63421
63519
|
}, React__default.createElement("input", {
|
|
63422
63520
|
ref: checkboxRef,
|
|
63423
63521
|
disabled: props.isDisabled,
|
|
@@ -63427,7 +63525,7 @@ var Checkbox = React.forwardRef(function (props, ref) {
|
|
|
63427
63525
|
onChange: onChange
|
|
63428
63526
|
}), props.labelPosition !== POSITION.LEFT && React__default.createElement(Label, {
|
|
63429
63527
|
text: props.label,
|
|
63430
|
-
className: styles$
|
|
63528
|
+
className: styles$E['vitro-label']
|
|
63431
63529
|
})));
|
|
63432
63530
|
});
|
|
63433
63531
|
|
|
@@ -63437,22 +63535,22 @@ var TYPE;
|
|
|
63437
63535
|
TYPE["PASSWORD"] = "password";
|
|
63438
63536
|
})(TYPE || (TYPE = {}));
|
|
63439
63537
|
|
|
63440
|
-
var styles$
|
|
63538
|
+
var styles$F = {"vitro-button-show-password":"_password-input_vitro-button-show-password_2jL4nM-","vitro-button-hide-password":"_password-input_vitro-button-hide-password_vPoUeVl"};
|
|
63441
63539
|
|
|
63442
63540
|
var PasswordInput = React.forwardRef(function (props, ref) {
|
|
63443
63541
|
var _useState = React.useState(TYPE.PASSWORD),
|
|
63444
63542
|
type = _useState[0],
|
|
63445
63543
|
setType = _useState[1];
|
|
63446
|
-
var _useState2 = React.useState(styles$
|
|
63544
|
+
var _useState2 = React.useState(styles$F['vitro-button-show-password']),
|
|
63447
63545
|
icon = _useState2[0],
|
|
63448
63546
|
setIcon = _useState2[1];
|
|
63449
63547
|
var togglePassword = function togglePassword() {
|
|
63450
63548
|
if (type === TYPE.PASSWORD) {
|
|
63451
63549
|
setType(TYPE.TEXT);
|
|
63452
|
-
setIcon(styles$
|
|
63550
|
+
setIcon(styles$F['vitro-button-hide-password']);
|
|
63453
63551
|
} else {
|
|
63454
63552
|
setType(TYPE.PASSWORD);
|
|
63455
|
-
setIcon(styles$
|
|
63553
|
+
setIcon(styles$F['vitro-button-show-password']);
|
|
63456
63554
|
}
|
|
63457
63555
|
};
|
|
63458
63556
|
return React__default.createElement(Input, Object.assign({}, props, {
|
|
@@ -63464,39 +63562,39 @@ var PasswordInput = React.forwardRef(function (props, ref) {
|
|
|
63464
63562
|
}));
|
|
63465
63563
|
});
|
|
63466
63564
|
|
|
63467
|
-
var styles$
|
|
63565
|
+
var styles$G = {"vitro-link":"_link_vitro-link_2ePaXvd"};
|
|
63468
63566
|
|
|
63469
63567
|
var Link = function Link(props) {
|
|
63470
63568
|
return React__default.createElement("a", {
|
|
63471
|
-
className: styles$
|
|
63569
|
+
className: styles$G['vitro-link'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
63472
63570
|
href: props.href,
|
|
63473
63571
|
onClick: props.href ? function () {} : props.onClick,
|
|
63474
63572
|
target: props.target
|
|
63475
63573
|
}, props.text);
|
|
63476
63574
|
};
|
|
63477
63575
|
|
|
63478
|
-
var styles$
|
|
63576
|
+
var styles$H = {"vitro-submit-button":"_login-submit-button_vitro-submit-button_1TFkn8x"};
|
|
63479
63577
|
|
|
63480
63578
|
var LoginSubmitButton = function LoginSubmitButton(props) {
|
|
63481
63579
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
63482
63580
|
return React__default.createElement(Button$2, {
|
|
63483
|
-
className: styles$
|
|
63581
|
+
className: styles$H['vitro-submit-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
63484
63582
|
text: localeService.create(LOCALE$4.ACTION_LOGIN),
|
|
63485
63583
|
onClick: props.onClick,
|
|
63486
63584
|
isDisabled: props.isDisabled
|
|
63487
63585
|
});
|
|
63488
63586
|
};
|
|
63489
63587
|
|
|
63490
|
-
var styles$
|
|
63588
|
+
var styles$I = {"vitro-login-title":"_login-title_vitro-login-title_3Y4jqav"};
|
|
63491
63589
|
|
|
63492
63590
|
var LoginTitle = function LoginTitle(props) {
|
|
63493
63591
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
63494
63592
|
return React__default.createElement("h1", {
|
|
63495
|
-
className: styles$
|
|
63593
|
+
className: styles$I['vitro-login-title'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
63496
63594
|
}, props.text || localeService.create(LOCALE$4.LOGIN_FORM_TITLE));
|
|
63497
63595
|
};
|
|
63498
63596
|
|
|
63499
|
-
var styles$
|
|
63597
|
+
var styles$J = {"vitro-title":"_login-form_vitro-title_3hbcdDr","vitro-flex":"_login-form_vitro-flex_fxG_Mos","vitro-error":"_login-form_vitro-error_2-jVYfA","vitro-link":"_login-form_vitro-link_2LCXwY2","vitro-separator":"_login-form_vitro-separator_P7hw9MH","vitro-control":"_login-form_vitro-control_1Th9h7G","vitro-password-control":"_login-form_vitro-password-control_2_Eo-gN","vitro-login-checkbox":"_login-form_vitro-login-checkbox_1eoT81X","vitro-button-list":"_login-form_vitro-button-list_1-9qryi","vitro-button":"_login-form_vitro-button_r2KCJ7k","vitro-link-register":"_login-form_vitro-link-register_zUIL_1f"};
|
|
63500
63598
|
|
|
63501
63599
|
var LoginForm = React.forwardRef(function (props, ref) {
|
|
63502
63600
|
var _useState = React.useState(CTRL.EMPTY),
|
|
@@ -63606,7 +63704,7 @@ var LoginForm = React.forwardRef(function (props, ref) {
|
|
|
63606
63704
|
}
|
|
63607
63705
|
};
|
|
63608
63706
|
return React__default.createElement("div", null, React__default.createElement(LoginTitle, {
|
|
63609
|
-
className: styles$
|
|
63707
|
+
className: styles$J['vitro-title']
|
|
63610
63708
|
}), React__default.createElement(Input, {
|
|
63611
63709
|
name: FIELD_NAME.USER_NAME,
|
|
63612
63710
|
label: localeService.create(LOCALE$4.LOGIN_FORM_FIELD_NAME),
|
|
@@ -63616,7 +63714,7 @@ var LoginForm = React.forwardRef(function (props, ref) {
|
|
|
63616
63714
|
return _onFocus(FIELD_NAME.USER_NAME);
|
|
63617
63715
|
},
|
|
63618
63716
|
isError: errorMessage ? true : false,
|
|
63619
|
-
className: styles$
|
|
63717
|
+
className: styles$J['vitro-control']
|
|
63620
63718
|
}), React__default.createElement(PasswordInput, {
|
|
63621
63719
|
name: FIELD_NAME.PASSWORD,
|
|
63622
63720
|
label: localeService.create(LOCALE$4.LOGIN_FORM_FIELD_PASSWORD),
|
|
@@ -63626,48 +63724,48 @@ var LoginForm = React.forwardRef(function (props, ref) {
|
|
|
63626
63724
|
return _onFocus(FIELD_NAME.PASSWORD);
|
|
63627
63725
|
},
|
|
63628
63726
|
isError: errorMessage ? true : false,
|
|
63629
|
-
className: styles$
|
|
63727
|
+
className: styles$J['vitro-control']
|
|
63630
63728
|
}), (props.onSaveData || props.onResetPassword) && React__default.createElement("div", {
|
|
63631
|
-
className: styles$
|
|
63729
|
+
className: styles$J['vitro-flex'] + (passwordErrorMessage || errorMessage || userNameErrorMessage ? CTRL.SPACE + styles$J['vitro-error'] : CTRL.EMPTY)
|
|
63632
63730
|
}, props.onSaveData && React__default.createElement(Checkbox, {
|
|
63633
63731
|
label: localeService.create(LOCALE$4.LOGIN_FORM_ACTION_SAVE_DATA),
|
|
63634
63732
|
name: FIELD_NAME.SAVE_DATA,
|
|
63635
63733
|
onChange: props.onSaveData,
|
|
63636
|
-
className: styles$
|
|
63734
|
+
className: styles$J['vitro-login-checkbox']
|
|
63637
63735
|
}), props.onResetPassword && React__default.createElement(Link, {
|
|
63638
63736
|
text: localeService.create(LOCALE$4.LOGIN_FORM_ACTION_RESET_PASSWORD),
|
|
63639
63737
|
onClick: props.onResetPassword,
|
|
63640
|
-
className: styles$
|
|
63738
|
+
className: styles$J['vitro-link']
|
|
63641
63739
|
})), React__default.createElement(LoginSubmitButton, {
|
|
63642
63740
|
onClick: submit,
|
|
63643
63741
|
isDisabled: loading
|
|
63644
63742
|
}), props.buttonList && props.buttonList.length ? React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
63645
|
-
className: styles$
|
|
63743
|
+
className: styles$J['vitro-separator']
|
|
63646
63744
|
}, localeService.create(LOCALE$4.LOGIN_FORM_SEPARATOR_TEXT)), React__default.createElement("div", {
|
|
63647
|
-
className: styles$
|
|
63745
|
+
className: styles$J['vitro-button-list']
|
|
63648
63746
|
}, props.buttonList.map(function (button) {
|
|
63649
63747
|
return React__default.createElement(Button$2, Object.assign({}, button, {
|
|
63650
|
-
className: styles$
|
|
63748
|
+
className: styles$J['vitro-button']
|
|
63651
63749
|
}));
|
|
63652
63750
|
}))) : React__default.createElement(React__default.Fragment, null), props.onRegister && React__default.createElement(Link, {
|
|
63653
63751
|
text: localeService.create(LOCALE$4.LOGIN_FORM_ACTION_REGISTER),
|
|
63654
63752
|
onClick: props.onRegister,
|
|
63655
|
-
className: styles$
|
|
63753
|
+
className: styles$J['vitro-link-register']
|
|
63656
63754
|
}));
|
|
63657
63755
|
});
|
|
63658
63756
|
|
|
63659
|
-
var styles$
|
|
63757
|
+
var styles$K = {"vitro-link":"_login-go-back-link_vitro-link_103lWHm"};
|
|
63660
63758
|
|
|
63661
63759
|
var LoginGoBackLink = function LoginGoBackLink(props) {
|
|
63662
63760
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
63663
63761
|
return React__default.createElement(Link, {
|
|
63664
63762
|
text: localeService.create(LOCALE$4.ACTION_GO_BACK),
|
|
63665
63763
|
onClick: props.onClick,
|
|
63666
|
-
className: styles$
|
|
63764
|
+
className: styles$K['vitro-link']
|
|
63667
63765
|
});
|
|
63668
63766
|
};
|
|
63669
63767
|
|
|
63670
|
-
var styles$
|
|
63768
|
+
var styles$L = {"vitro-two-factor-authentication-form":"_two-factor-authentication-form_vitro-two-factor-authentication-form_2BAlkOL","vitro-title":"_two-factor-authentication-form_vitro-title_2TyfWcR","vitro-subtitle":"_two-factor-authentication-form_vitro-subtitle_aP8TzSj","vitro-control":"_two-factor-authentication-form_vitro-control_DMLipzl","vitro-link-resend-code":"_two-factor-authentication-form_vitro-link-resend-code_1TOWPEe","vitro-description":"_two-factor-authentication-form_vitro-description_2mhz2nj","vitro-resend-code-description":"_two-factor-authentication-form_vitro-resend-code-description_9WkdV6i","vitro-flex":"_two-factor-authentication-form_vitro-flex_3mAp0Js","vitro-clock":"_two-factor-authentication-form_vitro-clock_3_ffAz_","vitro-button":"_two-factor-authentication-form_vitro-button_3hpMWyE","vitro-email":"_two-factor-authentication-form_vitro-email_qxiJm1M","vitro-hidden-symbol":"_two-factor-authentication-form_vitro-hidden-symbol_12uh3tN"};
|
|
63671
63769
|
|
|
63672
63770
|
var RESEND_CODE_DURATION = 60000;
|
|
63673
63771
|
var DOT_STRING = "\u2022\u2022\u2022\u2022";
|
|
@@ -63729,9 +63827,9 @@ var TwoFactorAuthenticationForm = React.forwardRef(function (props, ref) {
|
|
|
63729
63827
|
var name = emailArr[0].slice(0, 2);
|
|
63730
63828
|
var domain = emailArr.length > 1 ? emailArr[1].slice(emailArr[1].indexOf(CTRL.DOT)) : "";
|
|
63731
63829
|
return React__default.createElement(React__default.Fragment, null, name, React__default.createElement("span", {
|
|
63732
|
-
className: styles$
|
|
63830
|
+
className: styles$L['vitro-hidden-symbol']
|
|
63733
63831
|
}, DOT_STRING), CTRL.AT_SIGN, React__default.createElement("span", {
|
|
63734
|
-
className: styles$
|
|
63832
|
+
className: styles$L['vitro-hidden-symbol']
|
|
63735
63833
|
}, DOT_STRING), domain);
|
|
63736
63834
|
};
|
|
63737
63835
|
var onResendCode = function onResendCode() {
|
|
@@ -63748,44 +63846,44 @@ var TwoFactorAuthenticationForm = React.forwardRef(function (props, ref) {
|
|
|
63748
63846
|
}
|
|
63749
63847
|
};
|
|
63750
63848
|
return React__default.createElement("div", {
|
|
63751
|
-
className: styles$
|
|
63849
|
+
className: styles$L['vitro-two-factor-authentication-form']
|
|
63752
63850
|
}, props.totpApplicationQrCode && React__default.createElement("div", null, React__default.createElement("img", {
|
|
63753
63851
|
src: props.totpApplicationQrCode
|
|
63754
63852
|
})), React__default.createElement(LoginTitle, {
|
|
63755
|
-
className: styles$
|
|
63853
|
+
className: styles$L['vitro-title'],
|
|
63756
63854
|
text: localeService.create(LOCALE$4.TWO_FACTOR_AUTHENTICATION_FORM_TITLE)
|
|
63757
63855
|
}), props.isTotpMode ? React__default.createElement("div", {
|
|
63758
|
-
className: styles$
|
|
63856
|
+
className: styles$L['vitro-subtitle']
|
|
63759
63857
|
}) : React__default.createElement("div", {
|
|
63760
|
-
className: styles$
|
|
63858
|
+
className: styles$L['vitro-subtitle']
|
|
63761
63859
|
}, React__default.createElement("div", null, localeService.create(LOCALE$4.TWO_FACTOR_AUTHENTICATION_FORM_SUBTITLE_USER_NAME), React__default.createElement("span", null, CTRL.SPACE + props.userName)), React__default.createElement("div", null, localeService.create(LOCALE$4.TWO_FACTOR_AUTHENTICATION_FORM_SUBTITLE_EMAIL) + CTRL.SPACE, React__default.createElement("span", {
|
|
63762
|
-
className: styles$
|
|
63860
|
+
className: styles$L['vitro-email']
|
|
63763
63861
|
}, getEmail(props.email)))), React__default.createElement(Input, {
|
|
63764
63862
|
name: FIELD_NAME.USER_NAME,
|
|
63765
63863
|
label: localeService.create(LOCALE$4.TWO_FACTOR_AUTHENTICATION_FORM_FIELD_CODE),
|
|
63766
63864
|
onChange: onChange,
|
|
63767
63865
|
onBlur: validate,
|
|
63768
63866
|
errorMessage: errorMessage,
|
|
63769
|
-
className: styles$
|
|
63867
|
+
className: styles$L['vitro-control']
|
|
63770
63868
|
}), !props.isTotpMode && React__default.createElement("div", {
|
|
63771
|
-
className: styles$
|
|
63869
|
+
className: styles$L['vitro-flex']
|
|
63772
63870
|
}, React__default.createElement(Link, {
|
|
63773
63871
|
text: localeService.create(LOCALE$4.TWO_FACTOR_AUTHENTICATION_FORM_ACTION_CODE_SEND_ERROR),
|
|
63774
63872
|
onClick: props.onResendCode,
|
|
63775
|
-
className: styles$
|
|
63873
|
+
className: styles$L['vitro-link']
|
|
63776
63874
|
}), React__default.createElement("div", {
|
|
63777
|
-
className: styles$
|
|
63875
|
+
className: styles$L['vitro-description'] + CTRL.SPACE + styles$L['vitro-clock']
|
|
63778
63876
|
}, localeService.create(LOCALE$4.TWO_FACTOR_AUTHENTICATION_FORM_DESCRIPTION_VALIDITY, {
|
|
63779
63877
|
duration: props.codeValidityDurationMin || 10
|
|
63780
63878
|
}))), React__default.createElement(LoginSubmitButton, {
|
|
63781
63879
|
onClick: submit,
|
|
63782
|
-
className: styles$
|
|
63880
|
+
className: styles$L['vitro-button']
|
|
63783
63881
|
}), !props.isTotpMode && !resendDuration && React__default.createElement(Link, {
|
|
63784
63882
|
text: localeService.create(LOCALE$4.TWO_FACTOR_AUTHENTICATION_FORM_ACTION_RESEND_CODE),
|
|
63785
63883
|
onClick: onResendCode,
|
|
63786
|
-
className: styles$
|
|
63884
|
+
className: styles$L['vitro-link-resend-code']
|
|
63787
63885
|
}), !props.isTotpMode && resendDuration && React__default.createElement("div", {
|
|
63788
|
-
className: styles$
|
|
63886
|
+
className: styles$L['vitro-resend-code-description']
|
|
63789
63887
|
}, localeService.create(LOCALE$4.TWO_FACTOR_AUTHENTICATION_FORM_DESCRIPTION_RESEND, {
|
|
63790
63888
|
duration: resendDuration
|
|
63791
63889
|
})), React__default.createElement(LoginGoBackLink, {
|
|
@@ -63793,19 +63891,19 @@ var TwoFactorAuthenticationForm = React.forwardRef(function (props, ref) {
|
|
|
63793
63891
|
}));
|
|
63794
63892
|
});
|
|
63795
63893
|
|
|
63796
|
-
var styles$
|
|
63894
|
+
var styles$M = {"vitro-flex-row":"_flex-box_vitro-flex-row_2kWIov_","vitro-flex-column":"_flex-box_vitro-flex-column_2TWAp5t"};
|
|
63797
63895
|
|
|
63798
63896
|
var FlexBox = React.forwardRef(function (props, ref) {
|
|
63799
63897
|
return React__default.createElement("div", Object.assign({}, props, {
|
|
63800
63898
|
ref: ref,
|
|
63801
|
-
style: props.gap ? {
|
|
63899
|
+
style: props.gap ? _extends({}, props.style, {
|
|
63802
63900
|
gridGap: props.gap + UNIT.PX
|
|
63803
|
-
} : {},
|
|
63804
|
-
className: [props.isColumn ? styles$
|
|
63901
|
+
}) : _extends({}, props.style),
|
|
63902
|
+
className: [props.isColumn ? styles$M['vitro-flex-column'] : styles$M['vitro-flex-row'], props.className || CTRL.EMPTY].join(CTRL.SPACE)
|
|
63805
63903
|
}), props.children);
|
|
63806
63904
|
});
|
|
63807
63905
|
|
|
63808
|
-
var styles$
|
|
63906
|
+
var styles$N = {"vitro-login-kerberos-form":"_login-kerberos-form_vitro-login-kerberos-form_v_rdUFi","vitro-flex":"_login-kerberos-form_vitro-flex_3DV6V0F","vitro-subtitle":"_login-kerberos-form_vitro-subtitle_hOCCFau","vitro-error-message":"_login-kerberos-form_vitro-error-message_2LXMkSK"};
|
|
63809
63907
|
|
|
63810
63908
|
var LoginKerberosForm = React.forwardRef(function (props, ref) {
|
|
63811
63909
|
var _useState = React.useState(props.errorMessage),
|
|
@@ -63824,16 +63922,16 @@ var LoginKerberosForm = React.forwardRef(function (props, ref) {
|
|
|
63824
63922
|
};
|
|
63825
63923
|
});
|
|
63826
63924
|
return React__default.createElement(FlexBox, {
|
|
63827
|
-
className: styles$
|
|
63925
|
+
className: styles$N['vitro-login-kerberos-form']
|
|
63828
63926
|
}, React__default.createElement(LoginTitle, null), React__default.createElement(FlexBox, {
|
|
63829
|
-
className: styles$
|
|
63927
|
+
className: styles$N['vitro-flex']
|
|
63830
63928
|
}, React__default.createElement(Image, {
|
|
63831
63929
|
defaultUrl: props.imageUrl
|
|
63832
63930
|
}), React__default.createElement("span", {
|
|
63833
|
-
className: styles$
|
|
63931
|
+
className: styles$N['vitro-subtitle']
|
|
63834
63932
|
}, subtitle), errorMessage && React__default.createElement(ErrorMessage, {
|
|
63835
63933
|
text: errorMessage,
|
|
63836
|
-
className: styles$
|
|
63934
|
+
className: styles$N['vitro-error-message']
|
|
63837
63935
|
})), React__default.createElement(LoginGoBackLink, {
|
|
63838
63936
|
onClick: props.onGoBack
|
|
63839
63937
|
}));
|
|
@@ -64012,7 +64110,7 @@ var LABEL_POSITION;
|
|
|
64012
64110
|
LABEL_POSITION["LEFT"] = "left";
|
|
64013
64111
|
})(LABEL_POSITION || (LABEL_POSITION = {}));
|
|
64014
64112
|
|
|
64015
|
-
var styles$
|
|
64113
|
+
var styles$O = {"vitro-control":"_date-picker_vitro-control_2AYXegb","vitro-display-none":"_date-picker_vitro-display-none_2wJx8XG","vitro-copy-button":"_date-picker_vitro-copy-button_SvhKTCG","vitro-control-container":"_date-picker_vitro-control-container_2CVwecs","vitro-read-only":"_date-picker_vitro-read-only_2NZoMN5","vitro-label":"_date-picker_vitro-label_2jh9qxb","vitro-focus":"_date-picker_vitro-focus_2cJKcKr","vitro-error":"_date-picker_vitro-error_3DkgZiN","vitro-left-label":"_date-picker_vitro-left-label_ZFhZFS9","vitro-error-message":"_date-picker_vitro-error-message_3VKrJgj"};
|
|
64016
64114
|
|
|
64017
64115
|
var $$4 = window.$;
|
|
64018
64116
|
var DatePicker = React.forwardRef(function (props, ref) {
|
|
@@ -64065,7 +64163,7 @@ var DatePicker = React.forwardRef(function (props, ref) {
|
|
|
64065
64163
|
}
|
|
64066
64164
|
}, [props.depth, props.start]);
|
|
64067
64165
|
React.useEffect(function () {
|
|
64068
|
-
props.errorMessage ? setState(styles$
|
|
64166
|
+
props.errorMessage ? setState(styles$O['vitro-error']) : setState(CTRL.EMPTY);
|
|
64069
64167
|
}, [props.errorMessage]);
|
|
64070
64168
|
React.useImperativeHandle(ref, function () {
|
|
64071
64169
|
return {
|
|
@@ -64129,13 +64227,13 @@ var DatePicker = React.forwardRef(function (props, ref) {
|
|
|
64129
64227
|
$$4(inputRef.current).data(componentName).setOptions(options);
|
|
64130
64228
|
};
|
|
64131
64229
|
var onFocus = function onFocus(e) {
|
|
64132
|
-
setState(styles$
|
|
64230
|
+
setState(styles$O['vitro-focus']);
|
|
64133
64231
|
if (props.onFocus) {
|
|
64134
64232
|
props.onFocus(e);
|
|
64135
64233
|
}
|
|
64136
64234
|
};
|
|
64137
64235
|
var onBlur = function onBlur(e) {
|
|
64138
|
-
setState(props.errorMessage ? styles$
|
|
64236
|
+
setState(props.errorMessage ? styles$O['vitro-error'] : styles$O[CTRL.EMPTY]);
|
|
64139
64237
|
if (props.onBlur) {
|
|
64140
64238
|
props.onBlur(e);
|
|
64141
64239
|
}
|
|
@@ -64159,12 +64257,12 @@ var DatePicker = React.forwardRef(function (props, ref) {
|
|
|
64159
64257
|
}
|
|
64160
64258
|
};
|
|
64161
64259
|
var getClassName = function getClassName() {
|
|
64162
|
-
var classList = [styles$
|
|
64260
|
+
var classList = [styles$O['vitro-control'], props.className];
|
|
64163
64261
|
if (props.isDisabled || props.isReadOnly) {
|
|
64164
|
-
classList.push(styles$
|
|
64262
|
+
classList.push(styles$O['vitro-read-only']);
|
|
64165
64263
|
}
|
|
64166
64264
|
if (props.labelPosition === POSITION.LEFT) {
|
|
64167
|
-
classList.push(styles$
|
|
64265
|
+
classList.push(styles$O['vitro-left-label']);
|
|
64168
64266
|
}
|
|
64169
64267
|
classList.push(state);
|
|
64170
64268
|
return classList.join(CTRL.SPACE);
|
|
@@ -64176,21 +64274,21 @@ var DatePicker = React.forwardRef(function (props, ref) {
|
|
|
64176
64274
|
text: props.label,
|
|
64177
64275
|
isRequired: props.isRequired,
|
|
64178
64276
|
width: props.labelWidth,
|
|
64179
|
-
className: styles$
|
|
64277
|
+
className: styles$O['vitro-label']
|
|
64180
64278
|
}), React__default.createElement("input", {
|
|
64181
64279
|
ref: inputRef,
|
|
64182
64280
|
placeholder: props.placeholder,
|
|
64183
64281
|
onFocus: onFocus,
|
|
64184
64282
|
onBlur: onBlur
|
|
64185
64283
|
}), props.isReadOnly ? React__default.createElement(CopyButton, {
|
|
64186
|
-
className: styles$
|
|
64284
|
+
className: styles$O['vitro-copy-button'],
|
|
64187
64285
|
value: ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.toString()) || CTRL.EMPTY
|
|
64188
64286
|
}) : null, React__default.createElement("div", {
|
|
64189
64287
|
ref: containerRef,
|
|
64190
|
-
className: styles$
|
|
64288
|
+
className: styles$O['vitro-control-container']
|
|
64191
64289
|
}), props.errorMessage && React__default.createElement(ErrorMessage, {
|
|
64192
64290
|
text: props.errorMessage,
|
|
64193
|
-
className: styles$
|
|
64291
|
+
className: styles$O['vitro-error-message']
|
|
64194
64292
|
}));
|
|
64195
64293
|
});
|
|
64196
64294
|
|
|
@@ -64211,7 +64309,7 @@ var COMPONENT_TYPE;
|
|
|
64211
64309
|
COMPONENT_TYPE["MODERN"] = "modern";
|
|
64212
64310
|
})(COMPONENT_TYPE || (COMPONENT_TYPE = {}));
|
|
64213
64311
|
|
|
64214
|
-
var styles$
|
|
64312
|
+
var styles$P = {"vitro-control":"_time-picker_vitro-control_1sx07It","vitro-display-none":"_time-picker_vitro-display-none_3GgWh46","vitro-copy-button":"_time-picker_vitro-copy-button_aJZAh9q","vitro-control-container":"_time-picker_vitro-control-container_3ys3rMN","vitro-read-only":"_time-picker_vitro-read-only_NlE18Zm","vitro-label":"_time-picker_vitro-label_2b97aCy","vitro-focus":"_time-picker_vitro-focus_wmhPjvE","vitro-error":"_time-picker_vitro-error_2ZmK0I5","vitro-left-label":"_time-picker_vitro-left-label_3NRmFYH","vitro-error-message":"_time-picker_vitro-error-message_1w7ey-y"};
|
|
64215
64313
|
|
|
64216
64314
|
var $$5 = window.$;
|
|
64217
64315
|
var TimePicker = React.forwardRef(function (props, ref) {
|
|
@@ -64276,7 +64374,7 @@ var TimePicker = React.forwardRef(function (props, ref) {
|
|
|
64276
64374
|
appendTo: $$5(containerRef.current)
|
|
64277
64375
|
};
|
|
64278
64376
|
} else {
|
|
64279
|
-
$$5('.k-animation-container').addClass(styles$
|
|
64377
|
+
$$5('.k-animation-container').addClass(styles$P['vitro-control-container']);
|
|
64280
64378
|
}
|
|
64281
64379
|
return config;
|
|
64282
64380
|
};
|
|
@@ -64298,24 +64396,24 @@ var TimePicker = React.forwardRef(function (props, ref) {
|
|
|
64298
64396
|
}
|
|
64299
64397
|
};
|
|
64300
64398
|
var onFocus = function onFocus(e) {
|
|
64301
|
-
setState(styles$
|
|
64399
|
+
setState(styles$P['vitro-focus']);
|
|
64302
64400
|
if (props.onFocus) {
|
|
64303
64401
|
props.onFocus(e);
|
|
64304
64402
|
}
|
|
64305
64403
|
};
|
|
64306
64404
|
var onBlur = function onBlur(e) {
|
|
64307
|
-
setState(props.errorMessage ? styles$
|
|
64405
|
+
setState(props.errorMessage ? styles$P['vitro-error'] : styles$P[CTRL.EMPTY]);
|
|
64308
64406
|
if (props.onBlur) {
|
|
64309
64407
|
props.onBlur(e);
|
|
64310
64408
|
}
|
|
64311
64409
|
};
|
|
64312
64410
|
var getClassName = function getClassName() {
|
|
64313
|
-
var classList = [styles$
|
|
64411
|
+
var classList = [styles$P['vitro-control'], props.className];
|
|
64314
64412
|
if (props.isDisabled || props.isReadOnly) {
|
|
64315
|
-
classList.push(styles$
|
|
64413
|
+
classList.push(styles$P['vitro-read-only']);
|
|
64316
64414
|
}
|
|
64317
64415
|
if (props.labelPosition === POSITION.LEFT) {
|
|
64318
|
-
classList.push(styles$
|
|
64416
|
+
classList.push(styles$P['vitro-left-label']);
|
|
64319
64417
|
}
|
|
64320
64418
|
classList.push(state);
|
|
64321
64419
|
return classList.join(CTRL.SPACE);
|
|
@@ -64327,47 +64425,37 @@ var TimePicker = React.forwardRef(function (props, ref) {
|
|
|
64327
64425
|
text: props.label,
|
|
64328
64426
|
isRequired: props.isRequired,
|
|
64329
64427
|
width: props.labelWidth,
|
|
64330
|
-
className: styles$
|
|
64428
|
+
className: styles$P['vitro-label']
|
|
64331
64429
|
}), React__default.createElement("input", {
|
|
64332
64430
|
ref: inputRef,
|
|
64333
64431
|
placeholder: props.placeholder,
|
|
64334
64432
|
onFocus: onFocus,
|
|
64335
64433
|
onBlur: onBlur
|
|
64336
64434
|
}), props.isReadOnly ? React__default.createElement(CopyButton, {
|
|
64337
|
-
className: styles$
|
|
64435
|
+
className: styles$P['vitro-copy-button'],
|
|
64338
64436
|
value: ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.toString()) || CTRL.EMPTY
|
|
64339
64437
|
}) : null, React__default.createElement("div", {
|
|
64340
64438
|
ref: containerRef,
|
|
64341
|
-
className: styles$
|
|
64439
|
+
className: styles$P['vitro-control-container']
|
|
64342
64440
|
}), props.errorMessage && React__default.createElement(ErrorMessage, {
|
|
64343
64441
|
text: props.errorMessage,
|
|
64344
|
-
className: styles$
|
|
64442
|
+
className: styles$P['vitro-error-message']
|
|
64345
64443
|
}));
|
|
64346
64444
|
});
|
|
64347
64445
|
|
|
64348
|
-
var styles$
|
|
64446
|
+
var styles$Q = {"vitro-selected-item-multi":"_lookup-picker-selected-item_vitro-selected-item-multi_bzL7ugZ","vitro-selected-item":"_lookup-picker-selected-item_vitro-selected-item_hw-euth","vitro-button-close":"_lookup-picker-selected-item_vitro-button-close_1SRnr_0"};
|
|
64349
64447
|
|
|
64350
|
-
var styles$
|
|
64448
|
+
var styles$R = {"vitro-lookup-picker":"_lookup-picker_vitro-lookup-picker_1aXYQEG","vitro-content":"_lookup-picker_vitro-content_37L0slb","vitro-lookup-picker-multi-select":"_lookup-picker_vitro-lookup-picker-multi-select_3Lkq2tk","vitro-read-only":"_lookup-picker_vitro-read-only_32NOdGB","vitro-label":"_lookup-picker_vitro-label_2QoJkUz","vitro-focus":"_lookup-picker_vitro-focus_2UGpxXD","vitro-error":"_lookup-picker_vitro-error_dF7iopC","vitro-error-message":"_lookup-picker_vitro-error-message_2iBjyRP","vitro-copy-button":"_lookup-picker_vitro-copy-button_3UItrZb","vitro-right":"_lookup-picker_vitro-right_1XFsL1w","vitro-button-close":"_lookup-picker_vitro-button-close_3_Qndrj","vitro-button-collapse-up":"_lookup-picker_vitro-button-collapse-up_3i0OJub","vitro-button-collapse-bottom":"_lookup-picker_vitro-button-collapse-bottom_3o0Pl83","vitro-tooltip":"_lookup-picker_vitro-tooltip_2a12Z4P"};
|
|
64351
64449
|
|
|
64352
64450
|
var htmlValueStyles = {"vitro-item-html-value":"_lookup-picker-html-value_vitro-item-html-value_2QBoTey"};
|
|
64353
64451
|
|
|
64354
64452
|
var SelectedValueListItem = function SelectedValueListItem(props) {
|
|
64355
|
-
var
|
|
64356
|
-
tooltipText = _useState[0],
|
|
64357
|
-
setTooltipText = _useState[1];
|
|
64358
|
-
var className = props.isMultiSelect ? styles$P['vitro-selected-item-multi'] : styles$P['vitro-selected-item'];
|
|
64453
|
+
var className = props.isMultiSelect ? styles$Q['vitro-selected-item-multi'] : styles$Q['vitro-selected-item'];
|
|
64359
64454
|
var title = props.selectedValueTemplate(props.item);
|
|
64360
|
-
React.useEffect(function () {
|
|
64361
|
-
if (props.isMultiSelect) {
|
|
64362
|
-
setTooltipText(title);
|
|
64363
|
-
} else {
|
|
64364
|
-
props.setTooltipText(title);
|
|
64365
|
-
}
|
|
64366
|
-
}, []);
|
|
64367
64455
|
return React__default.createElement(Tooltip$1, {
|
|
64368
|
-
text:
|
|
64456
|
+
text: title,
|
|
64369
64457
|
placement: PLACEMENT.BOTTOM,
|
|
64370
|
-
className: styles$
|
|
64458
|
+
className: styles$R['vitro-tooltip'],
|
|
64371
64459
|
isFlip: true
|
|
64372
64460
|
}, React__default.createElement("div", {
|
|
64373
64461
|
className: className
|
|
@@ -64377,16 +64465,11 @@ var SelectedValueListItem = function SelectedValueListItem(props) {
|
|
|
64377
64465
|
onClick: function onClick() {
|
|
64378
64466
|
return props.onOptionValueDelete(props.item.id);
|
|
64379
64467
|
},
|
|
64380
|
-
className: styles$
|
|
64468
|
+
className: styles$Q['vitro-button-close']
|
|
64381
64469
|
})));
|
|
64382
64470
|
};
|
|
64383
64471
|
|
|
64384
64472
|
var SelectedValueList = function SelectedValueList(props) {
|
|
64385
|
-
React.useEffect(function () {
|
|
64386
|
-
return function () {
|
|
64387
|
-
props.setTooltipText(CTRL.EMPTY);
|
|
64388
|
-
};
|
|
64389
|
-
}, []);
|
|
64390
64473
|
return React__default.createElement(React__default.Fragment, null, props.list.map(function (x) {
|
|
64391
64474
|
return React__default.createElement(SelectedValueListItem, {
|
|
64392
64475
|
key: x.id,
|
|
@@ -64395,8 +64478,7 @@ var SelectedValueList = function SelectedValueList(props) {
|
|
|
64395
64478
|
isReadOnly: props.isReadOnly,
|
|
64396
64479
|
selectedValueTemplate: props.selectedValueTemplate,
|
|
64397
64480
|
onOptionValueDelete: props.onOptionValueDelete,
|
|
64398
|
-
getHtmlValue: props.getHtmlValue
|
|
64399
|
-
setTooltipText: props.setTooltipText
|
|
64481
|
+
getHtmlValue: props.getHtmlValue
|
|
64400
64482
|
});
|
|
64401
64483
|
}));
|
|
64402
64484
|
};
|
|
@@ -64542,12 +64624,9 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64542
64624
|
var _useState6 = React.useState(null),
|
|
64543
64625
|
valueListRequestToken = _useState6[0],
|
|
64544
64626
|
setValueListRequestToken = _useState6[1];
|
|
64545
|
-
var _useState7 = React.useState(props.isDisabled || props.isReadOnly ? styles$
|
|
64627
|
+
var _useState7 = React.useState(props.isDisabled || props.isReadOnly ? styles$R['vitro-read-only'] : CTRL.EMPTY),
|
|
64546
64628
|
state = _useState7[0],
|
|
64547
64629
|
setState = _useState7[1];
|
|
64548
|
-
var _useState8 = React.useState(CTRL.EMPTY),
|
|
64549
|
-
tooltipText = _useState8[0],
|
|
64550
|
-
setTooltipText = _useState8[1];
|
|
64551
64630
|
var localeService = props.container ? props.container.get(SERVICE.LOCALE) : inversifyReact.useInjection(SERVICE.LOCALE);
|
|
64552
64631
|
var isEditable = !props.isDisabled && !props.isReadOnly;
|
|
64553
64632
|
var inputRef = React.useRef(null);
|
|
@@ -64642,17 +64721,17 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64642
64721
|
}
|
|
64643
64722
|
}, [selectedValueList]);
|
|
64644
64723
|
React.useEffect(function () {
|
|
64645
|
-
setState(props.errorMessage && !valueListVisible ? styles$
|
|
64724
|
+
setState(props.errorMessage && !valueListVisible ? styles$R['vitro-error'] : valueListVisible ? state : CTRL.EMPTY);
|
|
64646
64725
|
}, [props.errorMessage]);
|
|
64647
64726
|
React.useEffect(function () {
|
|
64648
64727
|
if (inputRef.current) {
|
|
64649
|
-
if (state === styles$
|
|
64728
|
+
if (state === styles$R['vitro-focus'] && document.activeElement !== inputRef.current) {
|
|
64650
64729
|
inputRef.current.focus();
|
|
64651
|
-
} else if (state !== styles$
|
|
64730
|
+
} else if (state !== styles$R['vitro-focus']) {
|
|
64652
64731
|
isShowTooltipRef.current = true;
|
|
64653
64732
|
}
|
|
64654
64733
|
}
|
|
64655
|
-
}, [state
|
|
64734
|
+
}, [state]);
|
|
64656
64735
|
var updateFilteredValueList = function updateFilteredValueList(valueList) {
|
|
64657
64736
|
var availableValueList = inputValue ? filteredValueList : valueList;
|
|
64658
64737
|
if (inputValue && inputValue.length >= (props.charCount || 0)) {
|
|
@@ -64674,7 +64753,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64674
64753
|
};
|
|
64675
64754
|
var onChange = function onChange(e) {
|
|
64676
64755
|
var _inputRef$current;
|
|
64677
|
-
setState(styles$
|
|
64756
|
+
setState(styles$R['vitro-focus']);
|
|
64678
64757
|
setValueListVisible(true);
|
|
64679
64758
|
setInputValue(e.target.value);
|
|
64680
64759
|
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
@@ -64769,14 +64848,14 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64769
64848
|
return x;
|
|
64770
64849
|
}), props.name);
|
|
64771
64850
|
}
|
|
64772
|
-
setState(props.errorMessage ? styles$
|
|
64851
|
+
setState(props.errorMessage ? styles$R['vitro-error'] : CTRL.EMPTY);
|
|
64773
64852
|
}
|
|
64774
64853
|
};
|
|
64775
64854
|
var onFocus = function onFocus(e) {
|
|
64776
64855
|
var _inputRef$current3;
|
|
64777
64856
|
onInputValueUpdated();
|
|
64778
64857
|
isShowTooltipRef.current = false;
|
|
64779
|
-
setState(styles$
|
|
64858
|
+
setState(styles$R['vitro-focus']);
|
|
64780
64859
|
setValueListVisible(true);
|
|
64781
64860
|
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.focus();
|
|
64782
64861
|
if (props.onFocus) {
|
|
@@ -64790,12 +64869,12 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64790
64869
|
}
|
|
64791
64870
|
};
|
|
64792
64871
|
var getClassName = function getClassName() {
|
|
64793
|
-
var classList = [styles$
|
|
64872
|
+
var classList = [styles$R['vitro-lookup-picker'], props.className];
|
|
64794
64873
|
if (props.isDisabled || props.isReadOnly) {
|
|
64795
|
-
classList.push(styles$
|
|
64874
|
+
classList.push(styles$R['vitro-read-only']);
|
|
64796
64875
|
}
|
|
64797
64876
|
if (props.isMultiSelect) {
|
|
64798
|
-
classList.push(styles$
|
|
64877
|
+
classList.push(styles$R['vitro-lookup-picker-multi-select']);
|
|
64799
64878
|
}
|
|
64800
64879
|
classList.push(state);
|
|
64801
64880
|
return classList.join(CTRL.SPACE);
|
|
@@ -64806,13 +64885,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64806
64885
|
}
|
|
64807
64886
|
return null;
|
|
64808
64887
|
};
|
|
64809
|
-
return React__default.createElement(
|
|
64810
|
-
text: tooltipText,
|
|
64811
|
-
placement: PLACEMENT.BOTTOM,
|
|
64812
|
-
className: styles$Q['vitro-tooltip'],
|
|
64813
|
-
isShow: isShowTooltipRef.current === false ? false : undefined,
|
|
64814
|
-
isFlip: true
|
|
64815
|
-
}, React__default.createElement("div", {
|
|
64888
|
+
return React__default.createElement("div", {
|
|
64816
64889
|
className: getClassName(),
|
|
64817
64890
|
tabIndex: 1,
|
|
64818
64891
|
onBlur: onFocusOut,
|
|
@@ -64821,9 +64894,9 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64821
64894
|
text: props.label,
|
|
64822
64895
|
isRequired: props.isRequired,
|
|
64823
64896
|
width: props.labelWidth,
|
|
64824
|
-
className: styles$
|
|
64897
|
+
className: styles$R['vitro-label']
|
|
64825
64898
|
}), React__default.createElement("div", {
|
|
64826
|
-
className: styles$
|
|
64899
|
+
className: styles$R['vitro-content'],
|
|
64827
64900
|
onClick: onFocus,
|
|
64828
64901
|
ref: contentRef
|
|
64829
64902
|
}, selectedValueList && selectedValueList.length > 0 && (props.isMultiSelect ? true : inputValue.length === 0) ? React__default.createElement(SelectedValueList, {
|
|
@@ -64832,8 +64905,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64832
64905
|
selectedValueTemplate: selectedValueTemplate,
|
|
64833
64906
|
isMultiSelect: props.isMultiSelect,
|
|
64834
64907
|
isReadOnly: props.isReadOnly,
|
|
64835
|
-
getHtmlValue: getHtmlValue
|
|
64836
|
-
setTooltipText: setTooltipText
|
|
64908
|
+
getHtmlValue: getHtmlValue
|
|
64837
64909
|
}) : !valueListVisible && React__default.createElement(React__default.Fragment, null, props.placeholder), isEditable && React__default.createElement("input", {
|
|
64838
64910
|
ref: inputRef,
|
|
64839
64911
|
value: inputValue,
|
|
@@ -64841,9 +64913,9 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64841
64913
|
onChange: onChange,
|
|
64842
64914
|
onFocus: onFocus
|
|
64843
64915
|
}), !props.isDisabled && props.children, React__default.createElement("div", {
|
|
64844
|
-
className: styles$
|
|
64916
|
+
className: styles$R['vitro-right']
|
|
64845
64917
|
}, props.isShowButtonClear !== false && !props.isMultiSelect && selectedValueList && selectedValueList.length > 0 && isEditable && React__default.createElement("div", {
|
|
64846
|
-
className: styles$
|
|
64918
|
+
className: styles$R['vitro-button-close'],
|
|
64847
64919
|
onClick: function onClick() {
|
|
64848
64920
|
return onOptionValueDelete();
|
|
64849
64921
|
}
|
|
@@ -64851,9 +64923,9 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64851
64923
|
onClick: function onClick() {
|
|
64852
64924
|
return onCollapseButtonClick(valueListVisible);
|
|
64853
64925
|
},
|
|
64854
|
-
className: valueListVisible ? styles$
|
|
64926
|
+
className: valueListVisible ? styles$R['vitro-button-collapse-up'] : styles$R['vitro-button-collapse-bottom']
|
|
64855
64927
|
}), props.isReadOnly ? React__default.createElement(CopyButton, {
|
|
64856
|
-
className: styles$
|
|
64928
|
+
className: styles$R['vitro-copy-button'],
|
|
64857
64929
|
value: selectedValueList.map(function (x) {
|
|
64858
64930
|
return props.selectedValueTemplate(x);
|
|
64859
64931
|
}).join(CTRL.COMMA)
|
|
@@ -64873,42 +64945,42 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64873
64945
|
button: props.valueListButton
|
|
64874
64946
|
}), props.errorMessage && React__default.createElement(ErrorMessage, {
|
|
64875
64947
|
text: props.errorMessage,
|
|
64876
|
-
className: styles$
|
|
64877
|
-
}))
|
|
64948
|
+
className: styles$R['vitro-error-message']
|
|
64949
|
+
}));
|
|
64878
64950
|
});
|
|
64879
64951
|
|
|
64880
|
-
var styles$
|
|
64952
|
+
var styles$S = {"vitro-command-menu":"_command-menu_vitro-command-menu_l82vtIh"};
|
|
64881
64953
|
|
|
64882
64954
|
var CommandMenu = function CommandMenu(props) {
|
|
64883
64955
|
return React__default.createElement("nav", {
|
|
64884
|
-
className: styles$
|
|
64956
|
+
className: styles$S['vitro-command-menu'] + CTRL.SPACE + 'navbar'
|
|
64885
64957
|
}, React__default.createElement("ul", {
|
|
64886
64958
|
className: 'nav'
|
|
64887
64959
|
}, props.children));
|
|
64888
64960
|
};
|
|
64889
64961
|
|
|
64890
|
-
var styles$
|
|
64962
|
+
var styles$T = {"vitro-command-menu-button":"_command-menu-button_vitro-command-menu-button_2IiXVbP","vitro-image":"_command-menu-button_vitro-image_27yILgG"};
|
|
64891
64963
|
|
|
64892
64964
|
var CommandMenuButton = function CommandMenuButton(props) {
|
|
64893
64965
|
return React__default.createElement("li", null, React__default.createElement(Button$2, Object.assign({
|
|
64894
|
-
className: styles$
|
|
64895
|
-
imageClassName: styles$
|
|
64966
|
+
className: styles$T['vitro-command-menu-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
64967
|
+
imageClassName: styles$T['vitro-image']
|
|
64896
64968
|
}, props)));
|
|
64897
64969
|
};
|
|
64898
64970
|
|
|
64899
64971
|
var itemStyles = {"vitro-item":"_command-menu-item_vitro-item_2pVhk23"};
|
|
64900
64972
|
|
|
64901
|
-
var styles$
|
|
64973
|
+
var styles$U = {"vitro-item-lookup-picker":"_command-menu-lookup-picker_vitro-item-lookup-picker_28SsSpP","vitro-command-menu-lookup-picker":"_command-menu-lookup-picker_vitro-command-menu-lookup-picker_1840wlg","vitro-content":"_command-menu-lookup-picker_vitro-content_3fNJUmC","vitro-value-list":"_command-menu-lookup-picker_vitro-value-list_3_OCO0r","ps":"_command-menu-lookup-picker_ps_2nXaPqA","ps--active-y":"_command-menu-lookup-picker_ps--active-y_1PYkoqT","vitro-selected-item":"_command-menu-lookup-picker_vitro-selected-item_2oLYUbH","vitro-item":"_command-menu-lookup-picker_vitro-item_16ocUuf","vitro-right":"_command-menu-lookup-picker_vitro-right_3sBWu8H"};
|
|
64902
64974
|
|
|
64903
64975
|
var CommandMenuLookupPicker = function CommandMenuLookupPicker(props) {
|
|
64904
64976
|
return React__default.createElement("li", {
|
|
64905
|
-
className: itemStyles['vitro-item'] + CTRL.SPACE + 'nav-item ' + styles$
|
|
64977
|
+
className: itemStyles['vitro-item'] + CTRL.SPACE + 'nav-item ' + styles$U['vitro-item-lookup-picker']
|
|
64906
64978
|
}, React__default.createElement(LookupPicker, Object.assign({}, props, {
|
|
64907
|
-
className: styles$
|
|
64979
|
+
className: styles$U['vitro-command-menu-lookup-picker'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
64908
64980
|
})));
|
|
64909
64981
|
};
|
|
64910
64982
|
|
|
64911
|
-
var styles$
|
|
64983
|
+
var styles$V = {"vitro-command-menu-dropdown-button":"_command-menu-dropdown-button_vitro-command-menu-dropdown-button_2ImIuc3","vitro-dropdown-button-container":"_command-menu-dropdown-button_vitro-dropdown-button-container_29qd-_O","vitro-right":"_command-menu-dropdown-button_vitro-right_uTzkzdJ","vitro-image":"_command-menu-dropdown-button_vitro-image_2VNGo-H","vitro-button-collapse-bottom":"_command-menu-dropdown-button_vitro-button-collapse-bottom_1OS_X_a","vitro-scrollbar":"_command-menu-dropdown-button_vitro-scrollbar_1J6dT6q"};
|
|
64912
64984
|
|
|
64913
64985
|
var CommandMenuSubItem = function CommandMenuSubItem(props) {
|
|
64914
64986
|
var onClick = function onClick(e) {
|
|
@@ -64927,7 +64999,7 @@ var CommandMenuSubItem = function CommandMenuSubItem(props) {
|
|
|
64927
64999
|
onClick: onClick,
|
|
64928
65000
|
toggle: props.toggle === false ? false : true
|
|
64929
65001
|
}, props.isShowImage && React__default.createElement("div", {
|
|
64930
|
-
className: styles$
|
|
65002
|
+
className: styles$V['vitro-image']
|
|
64931
65003
|
}, props.imageUrl && React__default.createElement(Image, {
|
|
64932
65004
|
defaultUrl: props.imageUrl,
|
|
64933
65005
|
hoverUrl: props.imageHoverUrl
|
|
@@ -64961,15 +65033,15 @@ var CommandMenuItemHeader = function CommandMenuItemHeader(props) {
|
|
|
64961
65033
|
onMouseLeave: function onMouseLeave() {
|
|
64962
65034
|
return setIsHover(false);
|
|
64963
65035
|
},
|
|
64964
|
-
className: itemStyles['vitro-item'] + CTRL.SPACE + styles$
|
|
65036
|
+
className: itemStyles['vitro-item'] + CTRL.SPACE + styles$V['vitro-command-menu-dropdown-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
64965
65037
|
"data-show": props.isVisibleFunction
|
|
64966
65038
|
}, props.imageUrl && React__default.createElement(Image, {
|
|
64967
65039
|
isHover: isHover,
|
|
64968
65040
|
defaultUrl: props.imageUrl,
|
|
64969
65041
|
hoverUrl: props.imageHoverUrl,
|
|
64970
|
-
className: styles$
|
|
65042
|
+
className: styles$V['vitro-image']
|
|
64971
65043
|
}), React__default.createElement("span", null, props.text), !props.isHideChevronDown && React__default.createElement("div", {
|
|
64972
|
-
className: styles$
|
|
65044
|
+
className: styles$V['vitro-button-collapse-bottom']
|
|
64973
65045
|
}));
|
|
64974
65046
|
};
|
|
64975
65047
|
|
|
@@ -64996,7 +65068,7 @@ var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
|
|
|
64996
65068
|
return React__default.createElement(reactstrap.UncontrolledDropdown, {
|
|
64997
65069
|
nav: true,
|
|
64998
65070
|
inNavbar: true,
|
|
64999
|
-
className: styles$
|
|
65071
|
+
className: styles$V['vitro-dropdown-button-container'] + (isRight ? CTRL.SPACE + styles$V['vitro-right'] : CTRL.EMPTY)
|
|
65000
65072
|
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
65001
65073
|
nav: true,
|
|
65002
65074
|
caret: true,
|
|
@@ -65005,7 +65077,7 @@ var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
|
|
|
65005
65077
|
className: props.className,
|
|
65006
65078
|
setIsRight: setIsRight
|
|
65007
65079
|
}))), React__default.createElement(reactstrap.DropdownMenu, null, React__default.createElement(ScrollBar, {
|
|
65008
|
-
className: styles$
|
|
65080
|
+
className: styles$V['vitro-scrollbar'],
|
|
65009
65081
|
isHideScrollX: true
|
|
65010
65082
|
}, props.itemList && props.itemList.map(function (i) {
|
|
65011
65083
|
return React__default.createElement(CommandMenuSubItem, Object.assign({
|
|
@@ -65017,7 +65089,7 @@ var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
|
|
|
65017
65089
|
}), props.children)));
|
|
65018
65090
|
};
|
|
65019
65091
|
|
|
65020
|
-
var styles$
|
|
65092
|
+
var styles$W = {"vitro-item":"_sidebar-item_vitro-item_1BR_7F0","vitro-image":"_sidebar-item_vitro-image_2A82YI0","vitro-item-text":"_sidebar-item_vitro-item-text_1kK_aIZ","vitro-active":"_sidebar-item_vitro-active_7p5iOhY","vitro-hover":"_sidebar-item_vitro-hover_1mECzme","vitro-group-item":"_sidebar-item_vitro-group-item_ZADCctV","vitro-item-list":"_sidebar-item_vitro-item-list_17dWov1","vitro-arrow":"_sidebar-item_vitro-arrow_NaAiOHu","vitro-expanded":"_sidebar-item_vitro-expanded_3qb1vOx","vitro-collapsed":"_sidebar-item_vitro-collapsed_2EhVmXL","vitro-display-none":"_sidebar-item_vitro-display-none_2WwKi5v","vitro-scrollbar":"_sidebar-item_vitro-scrollbar___xylIx","vitro-button-close":"_sidebar-item_vitro-button-close_2Kdf-ob"};
|
|
65021
65093
|
|
|
65022
65094
|
var Item$2 = function Item(props) {
|
|
65023
65095
|
var _useState = React.useState(false),
|
|
@@ -65054,10 +65126,10 @@ var Item$2 = function Item(props) {
|
|
|
65054
65126
|
defaultUrl: props.imageUrl,
|
|
65055
65127
|
hoverUrl: props.imageHoverUrl,
|
|
65056
65128
|
isHover: props.isHover,
|
|
65057
|
-
className: styles$
|
|
65129
|
+
className: styles$W['vitro-image']
|
|
65058
65130
|
})), React__default.createElement("span", {
|
|
65059
65131
|
ref: textRef,
|
|
65060
|
-
className: styles$
|
|
65132
|
+
className: styles$W['vitro-item-text'] + (!(props.isSidebarExpanded || props.isMobileView) ? CTRL.SPACE + styles$W['vitro-display-none'] : CTRL.EMPTY)
|
|
65061
65133
|
}, props.text)));
|
|
65062
65134
|
};
|
|
65063
65135
|
|
|
@@ -65073,13 +65145,19 @@ var TARGET$1;
|
|
|
65073
65145
|
TARGET["SELF"] = "_self";
|
|
65074
65146
|
})(TARGET$1 || (TARGET$1 = {}));
|
|
65075
65147
|
|
|
65148
|
+
var SidebarConstants = {
|
|
65149
|
+
__proto__: null,
|
|
65150
|
+
get MODE () { return MODE; },
|
|
65151
|
+
get TARGET () { return TARGET$1; }
|
|
65152
|
+
};
|
|
65153
|
+
|
|
65076
65154
|
var WIDTH_AUTO = 'auto';
|
|
65077
65155
|
var LinkItem$1 = function LinkItem(props) {
|
|
65078
65156
|
var _useState = React.useState(false),
|
|
65079
65157
|
isHover = _useState[0],
|
|
65080
65158
|
setIsHover = _useState[1];
|
|
65081
65159
|
var isActive = !!props.link && (props.link === props.currentUrl && (!props.activeItem || props.activeItem === props.id) || props.altUrlList && props.altUrlList.includes(props.currentUrl));
|
|
65082
|
-
var className = isActive ? styles$
|
|
65160
|
+
var className = isActive ? styles$W['vitro-active'] : isHover ? styles$W['vitro-hover'] : CTRL.EMPTY;
|
|
65083
65161
|
var onClick = function onClick(e) {
|
|
65084
65162
|
if (!props.isDisabled) {
|
|
65085
65163
|
if (props.onClick) {
|
|
@@ -65104,7 +65182,7 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
65104
65182
|
style: {
|
|
65105
65183
|
width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO
|
|
65106
65184
|
},
|
|
65107
|
-
className: styles$
|
|
65185
|
+
className: styles$W['vitro-item']
|
|
65108
65186
|
}, (props.link || props.onClick) && React__default.createElement("button", {
|
|
65109
65187
|
onMouseEnter: function onMouseEnter() {
|
|
65110
65188
|
return setIsHover(true);
|
|
@@ -65144,7 +65222,7 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
65144
65222
|
}))));
|
|
65145
65223
|
};
|
|
65146
65224
|
|
|
65147
|
-
var styles$
|
|
65225
|
+
var styles$X = {"vitro-slide-up-panel":"_slide-up-panel_vitro-slide-up-panel_2EOSLHK","vitro-content":"_slide-up-panel_vitro-content_1er6bcv","vitro-expanded":"_slide-up-panel_vitro-expanded_2f2dYt6","vitro-button-close":"_slide-up-panel_vitro-button-close_2iM7SFL"};
|
|
65148
65226
|
|
|
65149
65227
|
var SlideUpPanel = function SlideUpPanel(props) {
|
|
65150
65228
|
var _useState = React.useState(props.isShow),
|
|
@@ -65208,13 +65286,13 @@ var SlideUpPanel = function SlideUpPanel(props) {
|
|
|
65208
65286
|
target: props.container,
|
|
65209
65287
|
placement: exports.PLACEMENT.TOP
|
|
65210
65288
|
}, React__default.createElement("div", {
|
|
65211
|
-
className: styles$
|
|
65289
|
+
className: styles$X['vitro-slide-up-panel'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
65212
65290
|
}, React__default.createElement("div", {
|
|
65213
|
-
className: styles$
|
|
65291
|
+
className: styles$X['vitro-content'] + (isExpanded ? CTRL.SPACE + styles$X['vitro-expanded'] : CTRL.EMPTY),
|
|
65214
65292
|
ref: contentRef
|
|
65215
65293
|
}, React__default.createElement("button", {
|
|
65216
65294
|
ref: buttonRef,
|
|
65217
|
-
className: styles$
|
|
65295
|
+
className: styles$X['vitro-button-close'],
|
|
65218
65296
|
onTouchStart: onTouchStart,
|
|
65219
65297
|
onTouchEnd: onTouchEnd,
|
|
65220
65298
|
onTouchMove: onTouchMove,
|
|
@@ -65299,7 +65377,7 @@ var GroupItem = function GroupItem(props) {
|
|
|
65299
65377
|
setIsHover(focus);
|
|
65300
65378
|
}
|
|
65301
65379
|
};
|
|
65302
|
-
var className = isActive ? styles$
|
|
65380
|
+
var className = isActive ? styles$W['vitro-active'] : isHover ? styles$W['vitro-hover'] : CTRL.EMPTY;
|
|
65303
65381
|
var content = React__default.createElement(React__default.Fragment, null, props.itemList && props.itemList.map(function (i) {
|
|
65304
65382
|
return i.link || i.onClick ? React__default.createElement(LinkItem$1, Object.assign({
|
|
65305
65383
|
link: i.link,
|
|
@@ -65328,7 +65406,7 @@ var GroupItem = function GroupItem(props) {
|
|
|
65328
65406
|
style: {
|
|
65329
65407
|
width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO$1
|
|
65330
65408
|
},
|
|
65331
|
-
className: styles$
|
|
65409
|
+
className: styles$W['vitro-item'] + CTRL.SPACE + styles$W['vitro-group-item']
|
|
65332
65410
|
}, React__default.createElement("button", {
|
|
65333
65411
|
onMouseEnter: function onMouseEnter() {
|
|
65334
65412
|
return _onFocus(true);
|
|
@@ -65347,7 +65425,7 @@ var GroupItem = function GroupItem(props) {
|
|
|
65347
65425
|
}, React__default.createElement(Item$2, Object.assign({}, props, {
|
|
65348
65426
|
isHover: isHover || isActive
|
|
65349
65427
|
})), props.isSidebarExpanded && !props.isMobileView && React__default.createElement("span", {
|
|
65350
|
-
className: isExpanded ? styles$
|
|
65428
|
+
className: isExpanded ? styles$W['vitro-expanded'] : styles$W['vitro-collapsed']
|
|
65351
65429
|
})), props.isMobileView ? React__default.createElement(SlideUpPanel, {
|
|
65352
65430
|
isShow: isExpanded,
|
|
65353
65431
|
container: props.container,
|
|
@@ -65355,38 +65433,113 @@ var GroupItem = function GroupItem(props) {
|
|
|
65355
65433
|
return props.setActiveItem(CTRL.EMPTY);
|
|
65356
65434
|
}
|
|
65357
65435
|
}, React__default.createElement(ScrollBar, {
|
|
65358
|
-
className: styles$
|
|
65436
|
+
className: styles$W['vitro-scrollbar']
|
|
65359
65437
|
}, content)) : React__default.createElement("ul", {
|
|
65360
|
-
className: styles$
|
|
65438
|
+
className: styles$W['vitro-item-list'] + CTRL.SPACE + (props.isSidebarExpanded ? !isExpanded ? styles$W['vitro-display-none'] : CTRL.EMPTY : styles$W['vitro-display-none'])
|
|
65361
65439
|
}, content)));
|
|
65362
65440
|
};
|
|
65363
65441
|
|
|
65442
|
+
var WIDTH_AUTO$2 = 'auto';
|
|
65443
|
+
var CustomItem = function CustomItem(props) {
|
|
65444
|
+
var _useState = React.useState(false),
|
|
65445
|
+
isHover = _useState[0],
|
|
65446
|
+
setIsHover = _useState[1];
|
|
65447
|
+
var _useState2 = React.useState(false),
|
|
65448
|
+
isActive = _useState2[0],
|
|
65449
|
+
setIsActive = _useState2[1];
|
|
65450
|
+
React.useEffect(function () {
|
|
65451
|
+
var isActive = getIsActive();
|
|
65452
|
+
setIsActive(isActive);
|
|
65453
|
+
props.setActiveItem(isActive ? props.id : CTRL.EMPTY);
|
|
65454
|
+
}, [props.activeItem, props.currentUrl]);
|
|
65455
|
+
var onClick = function onClick(e) {
|
|
65456
|
+
if (props.onClick) {
|
|
65457
|
+
props.onClick(e);
|
|
65458
|
+
setIsActive(true);
|
|
65459
|
+
props.setActiveItem(props.id);
|
|
65460
|
+
}
|
|
65461
|
+
};
|
|
65462
|
+
var onMouseDown = function onMouseDown(e) {
|
|
65463
|
+
if (e.button === 1) {
|
|
65464
|
+
onClick(e);
|
|
65465
|
+
}
|
|
65466
|
+
};
|
|
65467
|
+
var getIsActive = function getIsActive() {
|
|
65468
|
+
if (props.getIsActive) {
|
|
65469
|
+
return props.getIsActive(props.id, props.currentUrl, props.activeItem);
|
|
65470
|
+
}
|
|
65471
|
+
return false;
|
|
65472
|
+
};
|
|
65473
|
+
return React__default.createElement("li", {
|
|
65474
|
+
style: {
|
|
65475
|
+
width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO$2
|
|
65476
|
+
},
|
|
65477
|
+
className: styles$W['vitro-item']
|
|
65478
|
+
}, React__default.createElement("button", {
|
|
65479
|
+
onMouseEnter: function onMouseEnter() {
|
|
65480
|
+
return setIsHover(true);
|
|
65481
|
+
},
|
|
65482
|
+
onMouseLeave: function onMouseLeave() {
|
|
65483
|
+
return setIsHover(false);
|
|
65484
|
+
},
|
|
65485
|
+
onFocus: function onFocus() {
|
|
65486
|
+
return setIsHover(true);
|
|
65487
|
+
},
|
|
65488
|
+
onBlur: function onBlur() {
|
|
65489
|
+
return setIsHover(false);
|
|
65490
|
+
},
|
|
65491
|
+
onClick: onClick,
|
|
65492
|
+
onMouseDown: onMouseDown,
|
|
65493
|
+
className: isActive ? styles$W['vitro-active'] : isHover ? styles$W['vitro-hover'] : CTRL.EMPTY
|
|
65494
|
+
}, React__default.createElement(Item$2, Object.assign({}, props, {
|
|
65495
|
+
isHover: isHover || isActive
|
|
65496
|
+
})), props.isSidebarExpanded && !props.isMobileView && React__default.createElement("span", {
|
|
65497
|
+
className: styles$W['vitro-arrow']
|
|
65498
|
+
})));
|
|
65499
|
+
};
|
|
65500
|
+
|
|
65364
65501
|
var Section = function Section(props) {
|
|
65365
65502
|
return React__default.createElement("li", null, props.text && React__default.createElement("span", null, props.text), props.itemList && props.itemList.length ? React__default.createElement("ul", null, props.itemList.map(function (i) {
|
|
65366
|
-
|
|
65367
|
-
|
|
65368
|
-
|
|
65369
|
-
|
|
65370
|
-
|
|
65371
|
-
|
|
65372
|
-
|
|
65373
|
-
|
|
65374
|
-
|
|
65375
|
-
|
|
65376
|
-
|
|
65377
|
-
|
|
65378
|
-
|
|
65379
|
-
|
|
65380
|
-
|
|
65381
|
-
|
|
65382
|
-
|
|
65383
|
-
|
|
65384
|
-
|
|
65385
|
-
|
|
65503
|
+
if (i.isCustom) {
|
|
65504
|
+
return React__default.createElement(CustomItem, Object.assign({
|
|
65505
|
+
isSidebarExpanded: props.isExpanded,
|
|
65506
|
+
linkItemWidth: props.linkItemWidth,
|
|
65507
|
+
activeItem: props.activeItem,
|
|
65508
|
+
setActiveItem: props.setActiveItem,
|
|
65509
|
+
key: i.text,
|
|
65510
|
+
currentUrl: props.currentUrl,
|
|
65511
|
+
isMobileView: props.isMobileView,
|
|
65512
|
+
isDisabled: props.isDisabled
|
|
65513
|
+
}, i));
|
|
65514
|
+
} else if (i.link || i.onClick) {
|
|
65515
|
+
return React__default.createElement(LinkItem$1, Object.assign({
|
|
65516
|
+
link: i.link,
|
|
65517
|
+
linkItemWidth: props.linkItemWidth,
|
|
65518
|
+
activeItem: props.activeItem,
|
|
65519
|
+
key: i.text,
|
|
65520
|
+
currentUrl: props.currentUrl,
|
|
65521
|
+
isSidebarExpanded: props.isExpanded,
|
|
65522
|
+
isMobileView: props.isMobileView,
|
|
65523
|
+
isDisabled: props.isDisabled
|
|
65524
|
+
}, i));
|
|
65525
|
+
} else if (i.itemList) {
|
|
65526
|
+
return React__default.createElement(GroupItem, Object.assign({
|
|
65527
|
+
isSidebarExpanded: props.isExpanded,
|
|
65528
|
+
itemList: i.itemList,
|
|
65529
|
+
linkItemWidth: props.linkItemWidth,
|
|
65530
|
+
activeItem: props.activeItem,
|
|
65531
|
+
setActiveItem: props.setActiveItem,
|
|
65532
|
+
key: i.text,
|
|
65533
|
+
currentUrl: props.currentUrl,
|
|
65534
|
+
isMobileView: props.isMobileView,
|
|
65535
|
+
isDisabled: props.isDisabled
|
|
65536
|
+
}, i));
|
|
65537
|
+
}
|
|
65538
|
+
return null;
|
|
65386
65539
|
})) : React__default.createElement(React__default.Fragment, null));
|
|
65387
65540
|
};
|
|
65388
65541
|
|
|
65389
|
-
var styles$
|
|
65542
|
+
var styles$Y = {"vitro-sidebar":"_sidebar_vitro-sidebar_1IxGYiU","vitro-scrollbar":"_sidebar_vitro-scrollbar_2PtQGQD","vitro-sidebar-section-list":"_sidebar_vitro-sidebar-section-list_1nGto5m","vitro-scroll-container":"_sidebar_vitro-scroll-container_3K-iJy8","vitro-button-more":"_sidebar_vitro-button-more_3s9oZY9","vitro-logo-container":"_sidebar_vitro-logo-container_31O5Ly-","vitro-logo":"_sidebar_vitro-logo_1qxi8L_","vitro-scroll-content":"_sidebar_vitro-scroll-content_2RUBhZd"};
|
|
65390
65543
|
|
|
65391
65544
|
var SectionList = React.forwardRef(function (props, ref) {
|
|
65392
65545
|
if (!props.itemList || props.itemList.length === 0) {
|
|
@@ -65394,7 +65547,7 @@ var SectionList = React.forwardRef(function (props, ref) {
|
|
|
65394
65547
|
}
|
|
65395
65548
|
return React__default.createElement("ul", {
|
|
65396
65549
|
ref: ref,
|
|
65397
|
-
className: styles$
|
|
65550
|
+
className: styles$Y['vitro-sidebar-section-list']
|
|
65398
65551
|
}, props.itemList.map(function (section) {
|
|
65399
65552
|
return React__default.createElement(Section, Object.assign({
|
|
65400
65553
|
isExpanded: props.isExpanded,
|
|
@@ -65489,12 +65642,12 @@ var Sidebar = function Sidebar(props) {
|
|
|
65489
65642
|
var width = containerWidth / count;
|
|
65490
65643
|
setLinkItemWidth(width);
|
|
65491
65644
|
};
|
|
65492
|
-
var className = styles$
|
|
65645
|
+
var className = styles$Y['vitro-sidebar'] + (props.theme ? CTRL.SPACE + props.theme : CTRL.EMPTY) + CTRL.SPACE + (isMobileView ? 'vitro-bottom-menu' : CTRL.EMPTY);
|
|
65493
65646
|
return React__default.createElement("div", {
|
|
65494
65647
|
className: className,
|
|
65495
65648
|
id: 'vitro-sidebar'
|
|
65496
65649
|
}, !isMobileView ? React__default.createElement(React__default.Fragment, null, React__default.createElement(ScrollBar, {
|
|
65497
|
-
className: styles$
|
|
65650
|
+
className: styles$Y['vitro-scrollbar']
|
|
65498
65651
|
}, React__default.createElement(SectionList, {
|
|
65499
65652
|
itemList: itemList,
|
|
65500
65653
|
currentUrl: currentUrl,
|
|
@@ -65512,18 +65665,18 @@ var Sidebar = function Sidebar(props) {
|
|
|
65512
65665
|
isMobileView: isMobileView,
|
|
65513
65666
|
isDisabled: props.isDisabled
|
|
65514
65667
|
})), React__default.createElement("div", {
|
|
65515
|
-
className: styles$
|
|
65668
|
+
className: styles$Y['vitro-logo-container']
|
|
65516
65669
|
}, React__default.createElement(Item$2, {
|
|
65517
65670
|
text: props.logoText,
|
|
65518
65671
|
imageUrl: props.logo,
|
|
65519
65672
|
isSidebarExpanded: !props.sidebar,
|
|
65520
65673
|
isMobileView: isMobileView,
|
|
65521
|
-
className: styles$
|
|
65674
|
+
className: styles$Y['vitro-logo']
|
|
65522
65675
|
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
65523
|
-
className: styles$
|
|
65676
|
+
className: styles$Y['vitro-scroll-container'],
|
|
65524
65677
|
ref: menuRef
|
|
65525
65678
|
}, React__default.createElement("div", {
|
|
65526
|
-
className: styles$
|
|
65679
|
+
className: styles$Y['vitro-scroll-content'],
|
|
65527
65680
|
ref: scrollContentRef
|
|
65528
65681
|
}, React__default.createElement(SectionList, {
|
|
65529
65682
|
container: menuRef.current,
|
|
@@ -65541,36 +65694,36 @@ var Sidebar = function Sidebar(props) {
|
|
|
65541
65694
|
width: linkItemWidth,
|
|
65542
65695
|
isSidebarExpanded: !props.sidebar,
|
|
65543
65696
|
isMobileView: isMobileView,
|
|
65544
|
-
className: styles$
|
|
65697
|
+
className: styles$Y['vitro-logo']
|
|
65545
65698
|
}))), React__default.createElement("button", {
|
|
65546
65699
|
onClick: scroll,
|
|
65547
|
-
className: styles$
|
|
65700
|
+
className: styles$Y['vitro-button-more']
|
|
65548
65701
|
})));
|
|
65549
65702
|
};
|
|
65550
65703
|
|
|
65551
|
-
var styles$
|
|
65704
|
+
var styles$Z = {"vitro-item":"_activity-item_vitro-item_3Tprske","vitro-active":"_activity-item_vitro-active_2kENgvf","vitro-title":"_activity-item_vitro-title__QItISm","vitro-due-date":"_activity-item_vitro-due-date_1mBIraY","vitro-content":"_activity-item_vitro-content_3Lt7XRy","vitro-message":"_activity-item_vitro-message_1ndqhgR","vitro-flex":"_activity-item_vitro-flex_37IxBWe","vitro-dropdown-button":"_activity-item_vitro-dropdown-button_1J50ja7","vitro-avatar":"_activity-item_vitro-avatar_218ZqAk"};
|
|
65552
65705
|
|
|
65553
65706
|
var ActivityItem = function ActivityItem(props) {
|
|
65554
65707
|
return React__default.createElement("div", {
|
|
65555
|
-
className: styles$
|
|
65708
|
+
className: styles$Z['vitro-item'] + (props.isActive ? CTRL.SPACE + styles$Z['vitro-active'] : CTRL.EMPTY)
|
|
65556
65709
|
}, React__default.createElement("div", {
|
|
65557
|
-
className: styles$
|
|
65710
|
+
className: styles$Z['vitro-flex']
|
|
65558
65711
|
}, React__default.createElement(Avatar, {
|
|
65559
65712
|
userName: props.userName,
|
|
65560
65713
|
image: props.userImageUrl,
|
|
65561
|
-
className: styles$
|
|
65714
|
+
className: styles$Z['vitro-avatar']
|
|
65562
65715
|
}), React__default.createElement("div", {
|
|
65563
|
-
className: styles$
|
|
65716
|
+
className: styles$Z['vitro-content']
|
|
65564
65717
|
}, React__default.createElement("div", null, React__default.createElement("div", {
|
|
65565
|
-
className: styles$
|
|
65718
|
+
className: styles$Z['vitro-title']
|
|
65566
65719
|
}, React__default.createElement("span", null, props.title || props.userName), props.isShowDetail && React__default.createElement("span", {
|
|
65567
|
-
className: styles$
|
|
65720
|
+
className: styles$Z['vitro-due-date']
|
|
65568
65721
|
}, props.date), props.isShowDetail && props.dropdownItemList && React__default.createElement(DropdownButton, {
|
|
65569
65722
|
itemList: props.dropdownItemList,
|
|
65570
65723
|
onToggle: props.onDropdownToggle,
|
|
65571
|
-
className: styles$
|
|
65724
|
+
className: styles$Z['vitro-dropdown-button']
|
|
65572
65725
|
})), React__default.createElement("div", {
|
|
65573
|
-
className: styles$
|
|
65726
|
+
className: styles$Z['vitro-message'] + (props.variant ? CTRL.SPACE + props.variant : CTRL.EMPTY)
|
|
65574
65727
|
}, React__default.createElement("p", {
|
|
65575
65728
|
dangerouslySetInnerHTML: {
|
|
65576
65729
|
__html: props.message
|
|
@@ -65578,46 +65731,46 @@ var ActivityItem = function ActivityItem(props) {
|
|
|
65578
65731
|
}), props.children)))));
|
|
65579
65732
|
};
|
|
65580
65733
|
|
|
65581
|
-
var styles$
|
|
65734
|
+
var styles$_ = {"vitro-task-user-list":"_task-user-list_vitro-task-user-list_3GBJVjt"};
|
|
65582
65735
|
|
|
65583
65736
|
var TaskUserList = function TaskUserList(props) {
|
|
65584
65737
|
return React__default.createElement("div", {
|
|
65585
|
-
className: styles$
|
|
65738
|
+
className: styles$_['vitro-task-user-list']
|
|
65586
65739
|
}, props.itemList && props.itemList.map(function (x) {
|
|
65587
65740
|
return React__default.createElement(ActivityItem, Object.assign({}, x));
|
|
65588
65741
|
}));
|
|
65589
65742
|
};
|
|
65590
65743
|
|
|
65591
|
-
var styles
|
|
65744
|
+
var styles$$ = {"vitro-task-tile":"_task-tile_vitro-task-tile_35bZu48","vitro-active":"_task-tile_vitro-active_11W9nJz","vitro-content":"_task-tile_vitro-content_rl2ERCQ","vitro-description":"_task-tile_vitro-description_qtyUbLy","vitro-comment":"_task-tile_vitro-comment_2im2AJj","vitro-title":"_task-tile_vitro-title_1pXrIrB","vitro-top-right":"_task-tile_vitro-top-right_19tbPX4","vitro-dropdown-button":"_task-tile_vitro-dropdown-button_2YgEUdg","vitro-bottom-right":"_task-tile_vitro-bottom-right_2E9WAle","vitro-button-cancel":"_task-tile_vitro-button-cancel_1lgja1K"};
|
|
65592
65745
|
|
|
65593
65746
|
var TaskTile = function TaskTile(props) {
|
|
65594
65747
|
return React__default.createElement("div", {
|
|
65595
|
-
className: styles
|
|
65748
|
+
className: styles$$['vitro-task-tile'] + (props.isActive ? CTRL.SPACE + styles$$['vitro-active'] : CTRL.EMPTY),
|
|
65596
65749
|
onClick: props.onClick
|
|
65597
65750
|
}, props.dropdownItemList && React__default.createElement("div", {
|
|
65598
|
-
className: styles
|
|
65751
|
+
className: styles$$['vitro-top-right']
|
|
65599
65752
|
}, React__default.createElement(DropdownButton, {
|
|
65600
65753
|
itemList: props.dropdownItemList,
|
|
65601
|
-
className: styles
|
|
65754
|
+
className: styles$$['vitro-dropdown-button']
|
|
65602
65755
|
})), props.isShowDeleteButton && React__default.createElement("div", {
|
|
65603
|
-
className: styles
|
|
65756
|
+
className: styles$$['vitro-button-cancel'],
|
|
65604
65757
|
onClick: props.onDeleteClick
|
|
65605
65758
|
}), props.description && React__default.createElement("div", {
|
|
65606
|
-
className: styles
|
|
65759
|
+
className: styles$$['vitro-description']
|
|
65607
65760
|
}, props.description), React__default.createElement("div", {
|
|
65608
|
-
className: styles
|
|
65761
|
+
className: styles$$['vitro-title']
|
|
65609
65762
|
}, props.title), props.comment && React__default.createElement("div", {
|
|
65610
|
-
className: styles
|
|
65763
|
+
className: styles$$['vitro-comment']
|
|
65611
65764
|
}, props.comment), React__default.createElement("div", {
|
|
65612
|
-
className: styles
|
|
65765
|
+
className: styles$$['vitro-content']
|
|
65613
65766
|
}, props.userList && React__default.createElement(TaskUserList, {
|
|
65614
65767
|
itemList: props.userList
|
|
65615
65768
|
})), React__default.createElement("div", {
|
|
65616
|
-
className: styles
|
|
65769
|
+
className: styles$$['vitro-bottom-right']
|
|
65617
65770
|
}, props.dateComment, " \xA0 ", props.date), props.children);
|
|
65618
65771
|
};
|
|
65619
65772
|
|
|
65620
|
-
var styles
|
|
65773
|
+
var styles$10 = {"vitro-alert":"_alert_vitro-alert_3sPAkJb","vitro-alert-content":"_alert_vitro-alert-content_10fW1n4","vitro-button-close":"_alert_vitro-button-close_39K9cqW","vitro-icon":"_alert_vitro-icon_pK385gF","vitro-text":"_alert_vitro-text_37Erxqj","vitro-alert-action-list":"_alert_vitro-alert-action-list_2XzbaCO","vitro-position-center":"_alert_vitro-position-center_1r_lK_e"};
|
|
65621
65774
|
|
|
65622
65775
|
var Alert$1 = function Alert(props) {
|
|
65623
65776
|
var ref = React.useRef(null);
|
|
@@ -65649,7 +65802,7 @@ var Alert$1 = function Alert(props) {
|
|
|
65649
65802
|
}
|
|
65650
65803
|
};
|
|
65651
65804
|
var actionList = props.actionList && React__default.createElement("div", {
|
|
65652
|
-
className: styles
|
|
65805
|
+
className: styles$10['vitro-alert-action-list']
|
|
65653
65806
|
}, props.actionList.map(function (a) {
|
|
65654
65807
|
return React__default.createElement(Button$1, {
|
|
65655
65808
|
key: a.text,
|
|
@@ -65658,7 +65811,7 @@ var Alert$1 = function Alert(props) {
|
|
|
65658
65811
|
}
|
|
65659
65812
|
}, a.text);
|
|
65660
65813
|
}));
|
|
65661
|
-
var className = styles
|
|
65814
|
+
var className = styles$10['vitro-alert'] + CTRL.SPACE + (props.isPositionCenter && styles$10['vitro-position-center']) + CTRL.SPACE + (props.className ? props.className : CTRL.EMPTY);
|
|
65662
65815
|
return React__default.createElement("div", {
|
|
65663
65816
|
tabIndex: 1,
|
|
65664
65817
|
onBlur: onFocusOut,
|
|
@@ -65668,13 +65821,13 @@ var Alert$1 = function Alert(props) {
|
|
|
65668
65821
|
variant: props.type,
|
|
65669
65822
|
onClose: props.onClose
|
|
65670
65823
|
}, React__default.createElement("div", {
|
|
65671
|
-
className: styles
|
|
65824
|
+
className: styles$10['vitro-alert-content']
|
|
65672
65825
|
}, React__default.createElement("div", {
|
|
65673
|
-
className: styles
|
|
65826
|
+
className: styles$10['vitro-icon']
|
|
65674
65827
|
}), React__default.createElement("div", {
|
|
65675
|
-
className: styles
|
|
65828
|
+
className: styles$10['vitro-text']
|
|
65676
65829
|
}, props.title && React__default.createElement("strong", null, props.title), props.text, !props.text && props.children), !props.isMultiline && actionList, props.isDismissible && React__default.createElement("div", {
|
|
65677
|
-
className: styles
|
|
65830
|
+
className: styles$10['vitro-button-close'],
|
|
65678
65831
|
onClick: onClose
|
|
65679
65832
|
})), props.text && props.children, props.isMultiline && actionList));
|
|
65680
65833
|
};
|
|
@@ -65691,7 +65844,7 @@ var AlertConstants = {
|
|
|
65691
65844
|
get TYPE () { return TYPE$2; }
|
|
65692
65845
|
};
|
|
65693
65846
|
|
|
65694
|
-
var styles$
|
|
65847
|
+
var styles$11 = {"vitro-user-profile":"_user-profile_vitro-user-profile_11XpBoQ","vitro-dropdown-item":"_user-profile_vitro-dropdown-item_dSErsta","vitro-avatar":"_user-profile_vitro-avatar_3SzDPAi"};
|
|
65695
65848
|
|
|
65696
65849
|
var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
65697
65850
|
var onClick = function onClick() {
|
|
@@ -65702,7 +65855,7 @@ var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
|
65702
65855
|
};
|
|
65703
65856
|
if (props.link) {
|
|
65704
65857
|
return React__default.createElement("div", {
|
|
65705
|
-
className: styles$
|
|
65858
|
+
className: styles$11['vitro-dropdown-item'],
|
|
65706
65859
|
onClick: onClick
|
|
65707
65860
|
}, React__default.createElement("a", {
|
|
65708
65861
|
href: props.link
|
|
@@ -65713,7 +65866,7 @@ var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
|
65713
65866
|
}
|
|
65714
65867
|
if (props.onClick) {
|
|
65715
65868
|
return React__default.createElement("div", {
|
|
65716
|
-
className: styles$
|
|
65869
|
+
className: styles$11['vitro-dropdown-item'],
|
|
65717
65870
|
key: props.text,
|
|
65718
65871
|
onClick: onClick
|
|
65719
65872
|
}, props.imageUrl && React__default.createElement(Image, {
|
|
@@ -65747,15 +65900,15 @@ var UserProfile = function UserProfile(props) {
|
|
|
65747
65900
|
return React__default.createElement(reactstrap.Dropdown, {
|
|
65748
65901
|
isOpen: dropdownOpen,
|
|
65749
65902
|
toggle: toggle,
|
|
65750
|
-
className: styles$
|
|
65903
|
+
className: styles$11['vitro-user-profile']
|
|
65751
65904
|
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
65752
65905
|
caret: true
|
|
65753
65906
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
|
65754
|
-
className: styles$
|
|
65907
|
+
className: styles$11['vitro-text-color-white']
|
|
65755
65908
|
}, createSurnameWithInitials(props.userName)), React__default.createElement(Avatar, {
|
|
65756
65909
|
userName: props.userName,
|
|
65757
65910
|
image: props.image,
|
|
65758
|
-
className: styles$
|
|
65911
|
+
className: styles$11['vitro-avatar']
|
|
65759
65912
|
}))), React__default.createElement(reactstrap.DropdownMenu, {
|
|
65760
65913
|
right: true
|
|
65761
65914
|
}, props.dropdownMenuItemList && props.dropdownMenuItemList.length > 0 && props.dropdownMenuItemList.map(function (item) {
|
|
@@ -65765,7 +65918,7 @@ var UserProfile = function UserProfile(props) {
|
|
|
65765
65918
|
})));
|
|
65766
65919
|
};
|
|
65767
65920
|
|
|
65768
|
-
var styles$
|
|
65921
|
+
var styles$12 = {"vitro-avatar":"_user-lookup-picker_vitro-avatar_2vI-SeH"};
|
|
65769
65922
|
|
|
65770
65923
|
var UserLookupPicker = React.forwardRef(function (props, ref) {
|
|
65771
65924
|
var lookupPickerRef = React.useRef(null);
|
|
@@ -65773,7 +65926,7 @@ var UserLookupPicker = React.forwardRef(function (props, ref) {
|
|
|
65773
65926
|
var prop = props.getHtmlValueTemplateProps(item);
|
|
65774
65927
|
if (props.isMultiSelect) {
|
|
65775
65928
|
return _extends({}, prop, {
|
|
65776
|
-
className: styles$
|
|
65929
|
+
className: styles$12['vitro-avatar']
|
|
65777
65930
|
});
|
|
65778
65931
|
}
|
|
65779
65932
|
return prop;
|
|
@@ -65794,7 +65947,7 @@ var UserLookupPicker = React.forwardRef(function (props, ref) {
|
|
|
65794
65947
|
}));
|
|
65795
65948
|
});
|
|
65796
65949
|
|
|
65797
|
-
var styles$
|
|
65950
|
+
var styles$13 = {"vitro-title":"_activity_vitro-title_1rdvvaa","vitro-dropdown-button":"_activity_vitro-dropdown-button_12258nJ","vitro-activity":"_activity_vitro-activity_1u7YeF3"};
|
|
65798
65951
|
|
|
65799
65952
|
var Activity = function Activity(props) {
|
|
65800
65953
|
var onDrop = function onDrop(e) {
|
|
@@ -65807,16 +65960,16 @@ var Activity = function Activity(props) {
|
|
|
65807
65960
|
className: 'vitro-activity',
|
|
65808
65961
|
onDrop: onDrop
|
|
65809
65962
|
}, (props.filterDropdownList || props.title) && React__default.createElement("div", {
|
|
65810
|
-
className: styles$
|
|
65963
|
+
className: styles$13['vitro-title']
|
|
65811
65964
|
}, props.filterDropdownList && React__default.createElement(DropdownButton, {
|
|
65812
65965
|
itemList: props.filterDropdownList,
|
|
65813
|
-
className: styles$
|
|
65966
|
+
className: styles$13['vitro-dropdown-button']
|
|
65814
65967
|
}), props.title && React__default.createElement("h3", null, props.title)), React__default.createElement("div", {
|
|
65815
65968
|
className: 'vitro-content'
|
|
65816
65969
|
}, props.children));
|
|
65817
65970
|
};
|
|
65818
65971
|
|
|
65819
|
-
var styles$
|
|
65972
|
+
var styles$14 = {"vitro-file":"_file_vitro-file_2xkXgkS","vitro-preview":"_file_vitro-preview_2RVdrbm","vitro-preview-container":"_file_vitro-preview-container_2dmbDD7","vitro-flex":"_file_vitro-flex_3nGTlWX","vitro-image":"_file_vitro-image_2Bt3otk","vitro-file-name":"_file_vitro-file-name_2t9Y643","vitro-file-size":"_file_vitro-file-size_15f_E_0","vitro-dropdown-button":"_file_vitro-dropdown-button_3MgI2n9"};
|
|
65820
65973
|
|
|
65821
65974
|
var File = function File(props) {
|
|
65822
65975
|
var onClick = function onClick() {
|
|
@@ -65824,33 +65977,33 @@ var File = function File(props) {
|
|
|
65824
65977
|
props.onClick(props.id);
|
|
65825
65978
|
}
|
|
65826
65979
|
};
|
|
65827
|
-
var className = [styles$
|
|
65980
|
+
var className = [styles$14['vitro-file'], props.className || CTRL.EMPTY, props.isImage ? styles$14['vitro-preview'] : CTRL.EMPTY].join(CTRL.SPACE);
|
|
65828
65981
|
return React__default.createElement("div", {
|
|
65829
65982
|
className: className
|
|
65830
65983
|
}, props.actionList && props.actionList.length ? React__default.createElement(DropdownButton, {
|
|
65831
65984
|
itemList: props.actionList,
|
|
65832
|
-
className: styles$
|
|
65985
|
+
className: styles$14['vitro-dropdown-button']
|
|
65833
65986
|
}) : null, React__default.createElement(Tooltip$1, {
|
|
65834
65987
|
placement: PLACEMENT.TOP,
|
|
65835
65988
|
text: props.tooltip || CTRL.EMPTY
|
|
65836
65989
|
}, React__default.createElement("div", {
|
|
65837
|
-
className: styles$
|
|
65990
|
+
className: styles$14['vitro-preview-container'],
|
|
65838
65991
|
onClick: onClick
|
|
65839
65992
|
}, React__default.createElement("img", {
|
|
65840
65993
|
src: props.preview
|
|
65841
65994
|
}))), !props.isImage && React__default.createElement("div", {
|
|
65842
|
-
className: styles$
|
|
65995
|
+
className: styles$14['vitro-flex']
|
|
65843
65996
|
}, props.image && React__default.createElement("img", {
|
|
65844
65997
|
src: props.image,
|
|
65845
|
-
className: styles$
|
|
65998
|
+
className: styles$14['vitro-image']
|
|
65846
65999
|
}), React__default.createElement("div", null, React__default.createElement("span", {
|
|
65847
|
-
className: styles$
|
|
66000
|
+
className: styles$14['vitro-file-name']
|
|
65848
66001
|
}, props.name), React__default.createElement("span", {
|
|
65849
|
-
className: styles$
|
|
66002
|
+
className: styles$14['vitro-file-size']
|
|
65850
66003
|
}, props.size))));
|
|
65851
66004
|
};
|
|
65852
66005
|
|
|
65853
|
-
var styles$
|
|
66006
|
+
var styles$15 = {"vitro-file-list-container":"_attached-file-list_vitro-file-list-container_5PIFyI7","vitro-overflow-button":"_attached-file-list_vitro-overflow-button_39QxX1m","vitro-item-count":"_attached-file-list_vitro-item-count_35PIT1U","vitro-file":"_attached-file-list_vitro-file_2mPE3Rq"};
|
|
65854
66007
|
|
|
65855
66008
|
var AttachedFileListItem = function AttachedFileListItem(props) {
|
|
65856
66009
|
var _useState = React.useState(null),
|
|
@@ -65866,14 +66019,14 @@ var AttachedFileListItem = function AttachedFileListItem(props) {
|
|
|
65866
66019
|
return React__default.createElement(React__default.Fragment, null, props.fileList.map(function (file, index) {
|
|
65867
66020
|
if (index < props.maxVisibleFileCount) {
|
|
65868
66021
|
return React__default.createElement(File, Object.assign({}, file, {
|
|
65869
|
-
className: styles$
|
|
66022
|
+
className: styles$15['vitro-file']
|
|
65870
66023
|
}));
|
|
65871
66024
|
}
|
|
65872
66025
|
return React__default.createElement(React__default.Fragment, null);
|
|
65873
66026
|
}), props.fileList.length > props.maxVisibleFileCount && !hiddenFileList ? React__default.createElement("div", {
|
|
65874
|
-
className: styles$
|
|
66027
|
+
className: styles$15['vitro-overflow-button']
|
|
65875
66028
|
}, React__default.createElement("div", {
|
|
65876
|
-
className: styles$
|
|
66029
|
+
className: styles$15['vitro-item-count'],
|
|
65877
66030
|
onClick: function onClick() {
|
|
65878
66031
|
return onHiddenFileListClick(props.fileList.slice(props.maxVisibleFileCount));
|
|
65879
66032
|
}
|
|
@@ -65882,10 +66035,10 @@ var AttachedFileListItem = function AttachedFileListItem(props) {
|
|
|
65882
66035
|
text: props.hiddenFileCountTooltip || CTRL.EMPTY
|
|
65883
66036
|
}, React__default.createElement("div", null, CTRL.PLUS + (props.fileList.length - props.maxVisibleFileCount)))), React__default.createElement(File, Object.assign({}, props.fileList[props.maxVisibleFileCount], {
|
|
65884
66037
|
actionList: [],
|
|
65885
|
-
className: styles$
|
|
66038
|
+
className: styles$15['vitro-file']
|
|
65886
66039
|
}))) : null, hiddenFileList && hiddenFileList.map(function (file) {
|
|
65887
66040
|
return React__default.createElement(File, Object.assign({}, file, {
|
|
65888
|
-
className: styles$
|
|
66041
|
+
className: styles$15['vitro-file']
|
|
65889
66042
|
}));
|
|
65890
66043
|
}));
|
|
65891
66044
|
};
|
|
@@ -65921,7 +66074,7 @@ var AttachedFileList = function AttachedFileList(props) {
|
|
|
65921
66074
|
}
|
|
65922
66075
|
};
|
|
65923
66076
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
65924
|
-
className: styles$
|
|
66077
|
+
className: styles$15['vitro-file-list-container']
|
|
65925
66078
|
}, imageList && React__default.createElement(AttachedFileListItem, {
|
|
65926
66079
|
fileList: imageList,
|
|
65927
66080
|
maxVisibleFileCount: maxImageCount,
|
|
@@ -65935,7 +66088,7 @@ var AttachedFileList = function AttachedFileList(props) {
|
|
|
65935
66088
|
})));
|
|
65936
66089
|
};
|
|
65937
66090
|
|
|
65938
|
-
var styles$
|
|
66091
|
+
var styles$16 = {"vitro-activity-message":"_activity-message_vitro-activity-message_3GdyQuC","vitro-item":"_activity-message_vitro-item_3Q-7zX3","vitro-value":"_activity-message_vitro-value_O4DpuTR","vitro-message":"_activity-message_vitro-message_25otUOy","vitro-field-name":"_activity-message_vitro-field-name_hdjdQbg","vitro-separator":"_activity-message_vitro-separator_vxgHLaH"};
|
|
65939
66092
|
|
|
65940
66093
|
var ActivityMessage = function ActivityMessage(props) {
|
|
65941
66094
|
var _useState = React.useState(false),
|
|
@@ -65977,25 +66130,25 @@ var ActivityMessage = function ActivityMessage(props) {
|
|
|
65977
66130
|
return false;
|
|
65978
66131
|
};
|
|
65979
66132
|
return React__default.createElement(React__default.Fragment, null, props.changedValueList.length ? React__default.createElement("div", {
|
|
65980
|
-
className: styles$
|
|
66133
|
+
className: styles$16['vitro-activity-message']
|
|
65981
66134
|
}, props.changedValueList.map(function (item) {
|
|
65982
66135
|
return React__default.createElement("div", {
|
|
65983
|
-
className: styles$
|
|
66136
|
+
className: styles$16['vitro-item']
|
|
65984
66137
|
}, item.fieldName && React__default.createElement("span", {
|
|
65985
|
-
className: styles$
|
|
66138
|
+
className: styles$16['vitro-field-name']
|
|
65986
66139
|
}, "" + item.fieldName + CTRL.COLON), item.oldValue && React__default.createElement(React__default.Fragment, null, React__default.createElement(Tooltip$1, {
|
|
65987
66140
|
text: item.oldValue,
|
|
65988
66141
|
isShow: isShowOldValueTooltip ? undefined : false
|
|
65989
66142
|
}, React__default.createElement("div", {
|
|
65990
|
-
className: styles$
|
|
66143
|
+
className: styles$16['vitro-value'],
|
|
65991
66144
|
ref: oldValueRef
|
|
65992
66145
|
}, item.oldValue)), React__default.createElement("span", {
|
|
65993
|
-
className: styles$
|
|
66146
|
+
className: styles$16['vitro-separator']
|
|
65994
66147
|
})), item.newValue && React__default.createElement(Tooltip$1, {
|
|
65995
66148
|
text: item.newValue,
|
|
65996
66149
|
isShow: isShowNewValueTooltip ? undefined : false
|
|
65997
66150
|
}, React__default.createElement("div", {
|
|
65998
|
-
className: item.isMessage ? styles$
|
|
66151
|
+
className: item.isMessage ? styles$16['vitro-message'] : styles$16['vitro-value'],
|
|
65999
66152
|
ref: newValueRef
|
|
66000
66153
|
}, item.newValue)));
|
|
66001
66154
|
})) : null, props.fileList && props.fileList.length ? React__default.createElement(AttachedFileList, Object.assign({
|
|
@@ -66022,7 +66175,7 @@ var LOCALE$6;
|
|
|
66022
66175
|
LOCALE["ADD_FILE"] = "app.common.messageInput.action.addFile";
|
|
66023
66176
|
})(LOCALE$6 || (LOCALE$6 = {}));
|
|
66024
66177
|
|
|
66025
|
-
var styles$
|
|
66178
|
+
var styles$17 = {"vitro-attached-file-container":"_attached-file_vitro-attached-file-container_3AhHHlm","vitro-attached-file":"_attached-file_vitro-attached-file_1R6PPQN","vitro-button-remove":"_attached-file_vitro-button-remove_3ehToHf"};
|
|
66026
66179
|
|
|
66027
66180
|
var AttachedFile = function AttachedFile(props) {
|
|
66028
66181
|
var _useState = React.useState(null),
|
|
@@ -66060,23 +66213,23 @@ var AttachedFile = function AttachedFile(props) {
|
|
|
66060
66213
|
return null;
|
|
66061
66214
|
}
|
|
66062
66215
|
return React__default.createElement("div", {
|
|
66063
|
-
className: styles$
|
|
66216
|
+
className: styles$17['vitro-attached-file-container']
|
|
66064
66217
|
}, React__default.createElement(Tooltip$1, {
|
|
66065
66218
|
placement: PLACEMENT.TOP,
|
|
66066
66219
|
text: localeService.create(LOCALE$6.DELETE_FILE)
|
|
66067
66220
|
}, React__default.createElement("button", {
|
|
66068
|
-
className: styles$
|
|
66221
|
+
className: styles$17['vitro-button-remove'],
|
|
66069
66222
|
onClick: function onClick() {
|
|
66070
66223
|
return props.onDelete(props.index);
|
|
66071
66224
|
}
|
|
66072
66225
|
})), React__default.createElement(File, Object.assign({
|
|
66073
66226
|
id: "" + props.index
|
|
66074
66227
|
}, file, {
|
|
66075
|
-
className: styles$
|
|
66228
|
+
className: styles$17['vitro-attached-file']
|
|
66076
66229
|
})));
|
|
66077
66230
|
};
|
|
66078
66231
|
|
|
66079
|
-
var styles$
|
|
66232
|
+
var styles$18 = {"vitro-message-input":"_message-input_vitro-message-input_3MkcjWD","vitro-control":"_message-input_vitro-control_1PUSjq9","vitro-message":"_message-input_vitro-message_2EJSy-9","vitro-placeholder":"_message-input_vitro-placeholder_1FBfIqN","vitro-button-add-file":"_message-input_vitro-button-add-file_1qdtHHq","vitro-button-send":"_message-input_vitro-button-send_1vktQrZ","vitro-display-none":"_message-input_vitro-display-none_2dYTZ22","vitro-attached-file-list":"_message-input_vitro-attached-file-list_l95S4VR","vitro-flex":"_message-input_vitro-flex_18M_7xU"};
|
|
66080
66233
|
|
|
66081
66234
|
var MessageInput = React.forwardRef(function (props, ref) {
|
|
66082
66235
|
var _useState = React.useState(true),
|
|
@@ -66189,12 +66342,12 @@ var MessageInput = React.forwardRef(function (props, ref) {
|
|
|
66189
66342
|
}
|
|
66190
66343
|
};
|
|
66191
66344
|
return React__default.createElement("div", {
|
|
66192
|
-
className: styles$
|
|
66345
|
+
className: styles$18['vitro-message-input'],
|
|
66193
66346
|
onDrop: props.onDrop
|
|
66194
66347
|
}, React__default.createElement("div", {
|
|
66195
|
-
className: styles$
|
|
66348
|
+
className: styles$18['vitro-control']
|
|
66196
66349
|
}, fileList.length ? React__default.createElement("div", {
|
|
66197
|
-
className: styles$
|
|
66350
|
+
className: styles$18['vitro-attached-file-list']
|
|
66198
66351
|
}, React__default.createElement(ScrollBar, null, fileList.map(function (file, index) {
|
|
66199
66352
|
return React__default.createElement(AttachedFile, {
|
|
66200
66353
|
key: index,
|
|
@@ -66205,11 +66358,11 @@ var MessageInput = React.forwardRef(function (props, ref) {
|
|
|
66205
66358
|
getFileSize: props.getFileSize
|
|
66206
66359
|
});
|
|
66207
66360
|
}))) : null, React__default.createElement(FlexBox, {
|
|
66208
|
-
className: styles$
|
|
66361
|
+
className: styles$18['vitro-flex']
|
|
66209
66362
|
}, !props.isDisabled && React__default.createElement(ScrollBar, {
|
|
66210
66363
|
isHideScrollX: true
|
|
66211
66364
|
}, React__default.createElement("div", {
|
|
66212
|
-
className: styles$
|
|
66365
|
+
className: styles$18['vitro-message'],
|
|
66213
66366
|
ref: inputRef,
|
|
66214
66367
|
onInput: onChange,
|
|
66215
66368
|
onKeyDown: onKeyDown,
|
|
@@ -66219,20 +66372,20 @@ var MessageInput = React.forwardRef(function (props, ref) {
|
|
|
66219
66372
|
onDrop: onDrop,
|
|
66220
66373
|
contentEditable: true
|
|
66221
66374
|
}, isShowPlaceholder && React__default.createElement("span", {
|
|
66222
|
-
className: styles$
|
|
66375
|
+
className: styles$18['vitro-placeholder']
|
|
66223
66376
|
}, props.placeholder || localeService.create(LOCALE$6.PLACEHOLDER)))), props.children, props.onSelectFiles && React__default.createElement(React__default.Fragment, null, React__default.createElement(ImageButton, {
|
|
66224
66377
|
onClick: selectFile,
|
|
66225
66378
|
tooltipText: localeService.create(LOCALE$6.ADD_FILE),
|
|
66226
|
-
className: styles$
|
|
66379
|
+
className: styles$18['vitro-button-add-file']
|
|
66227
66380
|
}), React__default.createElement("input", {
|
|
66228
66381
|
type: 'file',
|
|
66229
66382
|
onChange: onSelectFile,
|
|
66230
66383
|
ref: fileInputRef,
|
|
66231
|
-
className: styles$
|
|
66384
|
+
className: styles$18['vitro-display-none'],
|
|
66232
66385
|
multiple: true
|
|
66233
66386
|
})))), React__default.createElement(ImageButton, {
|
|
66234
66387
|
onClick: onEnter,
|
|
66235
|
-
className: styles$
|
|
66388
|
+
className: styles$18['vitro-button-send']
|
|
66236
66389
|
}));
|
|
66237
66390
|
});
|
|
66238
66391
|
|
|
@@ -66247,7 +66400,7 @@ var LOCALE$7;
|
|
|
66247
66400
|
LOCALE["ACTION_DELETE"] = "app.common.action.delete";
|
|
66248
66401
|
})(LOCALE$7 || (LOCALE$7 = {}));
|
|
66249
66402
|
|
|
66250
|
-
var styles$
|
|
66403
|
+
var styles$19 = {"vitro-image-picker-root":"_image-picker_vitro-image-picker-root_AqOYRhP","vitro-image-picker-dropdown-wrapper":"_image-picker_vitro-image-picker-dropdown-wrapper_8Tr_BBS","vitro-image-picker-defaultImage-wrapper":"_image-picker_vitro-image-picker-defaultImage-wrapper_1BHZ1he","vitro-image-picker-image-wrapper":"_image-picker_vitro-image-picker-image-wrapper_328OVLU","vitro-image-picker-input":"_image-picker_vitro-image-picker-input_12jFFNU","vitro-image-default":"_image-picker_vitro-image-default_LhN4iy6","vitro-image-picker-label-wrapper":"_image-picker_vitro-image-picker-label-wrapper_WRLzUYM","vitro-image-picker-wrapper":"_image-picker_vitro-image-picker-wrapper_dlZyYFL","vitro-required":"_image-picker_vitro-required_2lpwlb0"};
|
|
66251
66404
|
|
|
66252
66405
|
var ImagePicker = function ImagePicker(props) {
|
|
66253
66406
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
@@ -66255,16 +66408,16 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
66255
66408
|
var renderPreview = function renderPreview() {
|
|
66256
66409
|
if (props.defaultUrl) {
|
|
66257
66410
|
return React__default.createElement("div", {
|
|
66258
|
-
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$
|
|
66411
|
+
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$19['vitro-image-picker-image-wrapper']
|
|
66259
66412
|
}, React__default.createElement(Image, {
|
|
66260
66413
|
defaultUrl: props.defaultUrl,
|
|
66261
|
-
className: props.classNameImage ? props.classNameImage : styles$
|
|
66414
|
+
className: props.classNameImage ? props.classNameImage : styles$19['vitro-image-picker-image']
|
|
66262
66415
|
}));
|
|
66263
66416
|
} else {
|
|
66264
66417
|
return React__default.createElement("div", {
|
|
66265
|
-
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$
|
|
66418
|
+
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$19['vitro-image-picker-defaultImage-wrapper']
|
|
66266
66419
|
}, React__default.createElement("div", {
|
|
66267
|
-
className: styles$
|
|
66420
|
+
className: styles$19['vitro-image-default']
|
|
66268
66421
|
}));
|
|
66269
66422
|
}
|
|
66270
66423
|
};
|
|
@@ -66304,19 +66457,19 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
66304
66457
|
return (_props$itemList = props.itemList) !== null && _props$itemList !== void 0 && _props$itemList.length ? result.concat(props.itemList) : result;
|
|
66305
66458
|
}, [props.itemList, props.defaultUrl]);
|
|
66306
66459
|
return React__default.createElement("div", {
|
|
66307
|
-
className: styles$
|
|
66460
|
+
className: styles$19['vitro-image-picker-wrapper']
|
|
66308
66461
|
}, React__default.createElement("div", {
|
|
66309
|
-
className: styles$
|
|
66462
|
+
className: styles$19['vitro-image-picker-label-wrapper']
|
|
66310
66463
|
}, props.label ? props.label : '', props.isRequired && React__default.createElement("span", {
|
|
66311
|
-
className: styles$
|
|
66464
|
+
className: styles$19['vitro-required']
|
|
66312
66465
|
}, CTRL.ASTERISK)), React__default.createElement("div", {
|
|
66313
|
-
className: props.classNameRoot ? props.classNameRoot : styles$
|
|
66466
|
+
className: props.classNameRoot ? props.classNameRoot : styles$19['vitro-image-picker-root']
|
|
66314
66467
|
}, !props.isReadOnly && React__default.createElement(DropdownButton, {
|
|
66315
66468
|
itemList: defaultItemList,
|
|
66316
|
-
className: styles$
|
|
66469
|
+
className: styles$19['vitro-image-picker-dropdown-wrapper']
|
|
66317
66470
|
}), React__default.createElement("input", {
|
|
66318
66471
|
type: 'file',
|
|
66319
|
-
className: styles$
|
|
66472
|
+
className: styles$19['vitro-image-picker-input'],
|
|
66320
66473
|
ref: inputFileRef,
|
|
66321
66474
|
onChange: onChange,
|
|
66322
66475
|
accept: 'image/*'
|
|
@@ -66325,7 +66478,7 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
66325
66478
|
}));
|
|
66326
66479
|
};
|
|
66327
66480
|
|
|
66328
|
-
var styles$
|
|
66481
|
+
var styles$1a = {"vitro-list":"_list_vitro-list_2cs4WZE"};
|
|
66329
66482
|
|
|
66330
66483
|
var List = React.forwardRef(function (props, ref) {
|
|
66331
66484
|
var _onClick = function onClick(item) {
|
|
@@ -66333,18 +66486,33 @@ var List = React.forwardRef(function (props, ref) {
|
|
|
66333
66486
|
props.onClick(item);
|
|
66334
66487
|
}
|
|
66335
66488
|
};
|
|
66336
|
-
|
|
66337
|
-
|
|
66338
|
-
|
|
66339
|
-
|
|
66340
|
-
|
|
66489
|
+
var children = React__default.createElement(React__default.Fragment, null, props.itemList && props.itemList.map(function (item, index) {
|
|
66490
|
+
if (index === props.itemList.length - 1) {
|
|
66491
|
+
setTimeout(function () {
|
|
66492
|
+
if (props.onRenderFinish) {
|
|
66493
|
+
props.onRenderFinish();
|
|
66494
|
+
}
|
|
66495
|
+
});
|
|
66496
|
+
}
|
|
66341
66497
|
return React__default.createElement("li", {
|
|
66342
66498
|
onClick: function onClick() {
|
|
66343
66499
|
return _onClick(item);
|
|
66344
66500
|
},
|
|
66345
|
-
key: index
|
|
66346
|
-
|
|
66501
|
+
key: index,
|
|
66502
|
+
className: props.itemClassName
|
|
66503
|
+
}, React__default.createElement(props.itemTemplate, _extends({}, item, {
|
|
66504
|
+
index: index
|
|
66505
|
+
})));
|
|
66347
66506
|
}));
|
|
66507
|
+
if (props.isCustomContainer) {
|
|
66508
|
+
return children;
|
|
66509
|
+
}
|
|
66510
|
+
return React__default.createElement("ul", Object.assign({}, props, {
|
|
66511
|
+
onClick: function onClick() {},
|
|
66512
|
+
ref: ref,
|
|
66513
|
+
className: styles$1a['vitro-list'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
66514
|
+
onBlur: props.onBlur
|
|
66515
|
+
}), children);
|
|
66348
66516
|
});
|
|
66349
66517
|
|
|
66350
66518
|
var Overlay$2 = React.forwardRef(function (props, ref) {
|
|
@@ -66386,7 +66554,7 @@ var Overlay$2 = React.forwardRef(function (props, ref) {
|
|
|
66386
66554
|
}, props.children));
|
|
66387
66555
|
});
|
|
66388
66556
|
|
|
66389
|
-
var styles$
|
|
66557
|
+
var styles$1b = {"vitro-criterion-container":"_criterion_vitro-criterion-container_2cYcSkL","vitro-control":"_criterion_vitro-control_2JLaybj","vitro-label":"_criterion_vitro-label_3F6a8dj","vitro-operator-select-container":"_criterion_vitro-operator-select-container_3OkjzXG","vitro-operator-select":"_criterion_vitro-operator-select_1guNlk9","vitro-operator-list":"_criterion_vitro-operator-list_3A2VZsd","vitro-button-cancel":"_criterion_vitro-button-cancel_2C2G0sL","vitro-focus":"_criterion_vitro-focus_3FNLsoN","vitro-error":"_criterion_vitro-error_3pvFrlW","vitro-condition-select":"_criterion_vitro-condition-select_1hTBBg-","vitro-image":"_criterion_vitro-image_1f6DKPL","vitro-condition-list-container":"_criterion_vitro-condition-list-container_ERfumwB","vitro-operator-list-container":"_criterion_vitro-operator-list-container_RgT0R_Z","vitro-condition-list":"_criterion_vitro-condition-list_10UIxJI","vitro-condition":"_criterion_vitro-condition_2RFixrp","vitro-criterion-container-mobile":"_criterion_vitro-criterion-container-mobile_1yxaJHi"};
|
|
66390
66558
|
|
|
66391
66559
|
var ConditionSelect = React.forwardRef(function (props, ref) {
|
|
66392
66560
|
var _useState = React.useState(props.defaultValue || props.itemList[0]),
|
|
@@ -66402,6 +66570,9 @@ var ConditionSelect = React.forwardRef(function (props, ref) {
|
|
|
66402
66570
|
window.removeEventListener(exports.EVENT.MOUSEDOWN, onBlur);
|
|
66403
66571
|
};
|
|
66404
66572
|
});
|
|
66573
|
+
React.useEffect(function () {
|
|
66574
|
+
setCondition(props.defaultValue);
|
|
66575
|
+
}, [props.defaultValue]);
|
|
66405
66576
|
var toggleSelect = function toggleSelect() {
|
|
66406
66577
|
setShowSelectList(!showSelectList);
|
|
66407
66578
|
};
|
|
@@ -66417,37 +66588,37 @@ var ConditionSelect = React.forwardRef(function (props, ref) {
|
|
|
66417
66588
|
};
|
|
66418
66589
|
var getCondition = function getCondition(props) {
|
|
66419
66590
|
return React__default.createElement(FlexBox, {
|
|
66420
|
-
className: styles$
|
|
66591
|
+
className: styles$1b['vitro-condition']
|
|
66421
66592
|
}, props.imageUrl && React__default.createElement(Image, {
|
|
66422
66593
|
defaultUrl: props.imageUrl
|
|
66423
66594
|
}), props.text);
|
|
66424
66595
|
};
|
|
66425
66596
|
return React__default.createElement(React__default.Fragment, null, condition && React__default.createElement("div", {
|
|
66426
66597
|
ref: ref,
|
|
66427
|
-
className: styles$
|
|
66598
|
+
className: styles$1b['vitro-condition-select']
|
|
66428
66599
|
}, React__default.createElement("div", {
|
|
66429
66600
|
onClick: toggleSelect
|
|
66430
66601
|
}, condition.imageUrl ? React__default.createElement(Image, {
|
|
66431
66602
|
defaultUrl: condition.imageUrl,
|
|
66432
|
-
className: styles$
|
|
66603
|
+
className: styles$1b['vitro-image']
|
|
66433
66604
|
}) : condition.text), React__default.createElement(Overlay$2, {
|
|
66434
66605
|
isShow: showSelectList,
|
|
66435
66606
|
isFlip: true,
|
|
66436
66607
|
target: ref.current,
|
|
66437
66608
|
placement: exports.PLACEMENT.BOTTOM + CTRL.DASH + exports.PLACEMENT.START,
|
|
66438
|
-
className: styles$
|
|
66609
|
+
className: styles$1b['vitro-condition-list-container']
|
|
66439
66610
|
}, React__default.createElement(List, {
|
|
66440
66611
|
ref: listRef,
|
|
66441
66612
|
itemList: props.itemList,
|
|
66442
66613
|
itemTemplate: getCondition,
|
|
66443
66614
|
onClick: onClick,
|
|
66444
66615
|
onBlur: onBlur,
|
|
66445
|
-
className: styles$
|
|
66616
|
+
className: styles$1b['vitro-condition-list']
|
|
66446
66617
|
}))));
|
|
66447
66618
|
});
|
|
66448
66619
|
|
|
66449
66620
|
var Criterion = function Criterion(props) {
|
|
66450
|
-
var _useState = React.useState(props.operatorList[0]),
|
|
66621
|
+
var _useState = React.useState(props.operatorList ? props.operatorList[0] : null),
|
|
66451
66622
|
operator = _useState[0],
|
|
66452
66623
|
setOperator = _useState[1];
|
|
66453
66624
|
var _useState2 = React.useState(false),
|
|
@@ -66457,11 +66628,11 @@ var Criterion = function Criterion(props) {
|
|
|
66457
66628
|
state = _useState3[0],
|
|
66458
66629
|
setState = _useState3[1];
|
|
66459
66630
|
var componentProps = props.content.props;
|
|
66460
|
-
var defaultOperator = (componentProps.value ? props.operatorList.find(function (x) {
|
|
66631
|
+
var defaultOperator = props.operatorList ? (componentProps.value ? props.operatorList.find(function (x) {
|
|
66461
66632
|
return x.type === componentProps.value.operator;
|
|
66462
66633
|
}) : props.operatorList.find(function (x) {
|
|
66463
66634
|
return x.type === props.defaultOperator;
|
|
66464
|
-
})) || props.operatorList[0];
|
|
66635
|
+
})) || props.operatorList[0] : null;
|
|
66465
66636
|
var defaultCondition = (componentProps.value ? props.conditionList.find(function (x) {
|
|
66466
66637
|
return x.type === componentProps.value.condition;
|
|
66467
66638
|
}) : props.conditionList.find(function (x) {
|
|
@@ -66470,7 +66641,7 @@ var Criterion = function Criterion(props) {
|
|
|
66470
66641
|
var value = React.useMemo(function () {
|
|
66471
66642
|
return {
|
|
66472
66643
|
internalName: componentProps.name,
|
|
66473
|
-
operator: defaultOperator.type,
|
|
66644
|
+
operator: defaultOperator ? defaultOperator.type : 0,
|
|
66474
66645
|
valueList: componentProps.value ? componentProps.value.valueList : [],
|
|
66475
66646
|
condition: defaultCondition.type
|
|
66476
66647
|
};
|
|
@@ -66509,13 +66680,13 @@ var Criterion = function Criterion(props) {
|
|
|
66509
66680
|
onChange(value);
|
|
66510
66681
|
};
|
|
66511
66682
|
var onFocus = function onFocus(e) {
|
|
66512
|
-
setState(styles$
|
|
66683
|
+
setState(styles$1b['vitro-focus']);
|
|
66513
66684
|
if (componentProps.onFocus) {
|
|
66514
66685
|
componentProps.onFocus(e);
|
|
66515
66686
|
}
|
|
66516
66687
|
};
|
|
66517
66688
|
var onBlur = function onBlur(e) {
|
|
66518
|
-
setState(componentProps.errorMessage ? styles$
|
|
66689
|
+
setState(componentProps.errorMessage ? styles$1b['vitro-error'] : CTRL.EMPTY);
|
|
66519
66690
|
if (componentProps.onBlur) {
|
|
66520
66691
|
componentProps.onBlur(e);
|
|
66521
66692
|
}
|
|
@@ -66530,39 +66701,39 @@ var Criterion = function Criterion(props) {
|
|
|
66530
66701
|
onChange(value);
|
|
66531
66702
|
};
|
|
66532
66703
|
return React__default.createElement(FlexBox, {
|
|
66533
|
-
className: props.isMobileView ? styles$
|
|
66534
|
-
}, React__default.createElement("div", {
|
|
66535
|
-
className: styles$
|
|
66704
|
+
className: props.isMobileView ? styles$1b['vitro-criterion-container-mobile'] : styles$1b['vitro-criterion-container']
|
|
66705
|
+
}, props.operatorList && operator ? React__default.createElement("div", {
|
|
66706
|
+
className: styles$1b['vitro-operator-select-container']
|
|
66536
66707
|
}, props.isShowOperatorSelect && React__default.createElement(FlexBox, {
|
|
66537
66708
|
ref: operatorSelectRef,
|
|
66538
|
-
className: styles$
|
|
66709
|
+
className: styles$1b['vitro-operator-select'],
|
|
66539
66710
|
onClick: toggleOperatorSelect
|
|
66540
66711
|
}, React__default.createElement("div", null, operator.text)), React__default.createElement(Overlay$2, {
|
|
66541
66712
|
isShow: showOperatorSelectList,
|
|
66542
66713
|
isFlip: true,
|
|
66543
66714
|
target: operatorSelectRef.current,
|
|
66544
66715
|
placement: exports.PLACEMENT.BOTTOM + CTRL.DASH + exports.PLACEMENT.END,
|
|
66545
|
-
className: styles$
|
|
66716
|
+
className: styles$1b['vitro-operator-list-container']
|
|
66546
66717
|
}, React__default.createElement(List, {
|
|
66547
66718
|
itemList: props.operatorList,
|
|
66548
66719
|
itemTemplate: function itemTemplate(props) {
|
|
66549
66720
|
return React__default.createElement(React__default.Fragment, null, props.text);
|
|
66550
66721
|
},
|
|
66551
66722
|
onClick: onOperatorClick,
|
|
66552
|
-
className: styles$
|
|
66553
|
-
}))), React__default.createElement("div", {
|
|
66554
|
-
className: styles$
|
|
66723
|
+
className: styles$1b['vitro-operator-list']
|
|
66724
|
+
}))) : CTRL.EMPTY, React__default.createElement("div", {
|
|
66725
|
+
className: styles$1b['vitro-control'] + CTRL.SPACE + state
|
|
66555
66726
|
}, React__default.createElement(Label, {
|
|
66556
66727
|
ref: labelRef,
|
|
66557
66728
|
text: props.label,
|
|
66558
|
-
className: styles$
|
|
66729
|
+
className: styles$1b['vitro-label']
|
|
66559
66730
|
}), React__default.createElement(ConditionSelect, {
|
|
66560
66731
|
ref: conditionSelectRef,
|
|
66561
66732
|
itemList: props.conditionList,
|
|
66562
66733
|
onSelect: onConditionClick,
|
|
66563
66734
|
defaultValue: defaultCondition
|
|
66564
66735
|
}), React__default.createElement(props.content.component, _extends({}, componentProps, {
|
|
66565
|
-
className: styles$
|
|
66736
|
+
className: styles$1b['vitro-control'],
|
|
66566
66737
|
onBlur: onBlur,
|
|
66567
66738
|
onFocus: onFocus,
|
|
66568
66739
|
onChange: onControlChange,
|
|
@@ -66574,161 +66745,15 @@ var Criterion = function Criterion(props) {
|
|
|
66574
66745
|
onClick: function onClick() {
|
|
66575
66746
|
return props.onDelete(componentProps.id);
|
|
66576
66747
|
},
|
|
66577
|
-
className: styles$
|
|
66748
|
+
className: styles$1b['vitro-button-cancel']
|
|
66578
66749
|
}));
|
|
66579
66750
|
};
|
|
66580
66751
|
|
|
66581
66752
|
var LOCALE$8;
|
|
66582
|
-
(function (LOCALE) {
|
|
66583
|
-
LOCALE["VALUE_COUNT"] = "app.common.searchInput.valueCount";
|
|
66584
|
-
LOCALE["PLACEHOLDER"] = "app.common.searchInput.placeholder";
|
|
66585
|
-
})(LOCALE$8 || (LOCALE$8 = {}));
|
|
66586
|
-
|
|
66587
|
-
var styles$1b = {"vitro-search-input":"_search-input_vitro-search-input_3M9i4Gi","vitro-search-value-list":"_search-input_vitro-search-value-list_1Gqj4bm","vitro-button-cancel":"_search-input_vitro-button-cancel_xqdMNLo","vitro-search-value":"_search-input_vitro-search-value_TJm1BCf","vitro-search-input-mobile":"_search-input_vitro-search-input-mobile_1H1USnO"};
|
|
66588
|
-
|
|
66589
|
-
var NEW_LINE = '\n';
|
|
66590
|
-
var SearchInput = function SearchInput(props) {
|
|
66591
|
-
var _props$searchCriterio;
|
|
66592
|
-
var _useState = React.useState(CTRL.EMPTY),
|
|
66593
|
-
value = _useState[0],
|
|
66594
|
-
setValue = _useState[1];
|
|
66595
|
-
var _useState2 = React.useState(CTRL.EMPTY),
|
|
66596
|
-
state = _useState2[0],
|
|
66597
|
-
setState = _useState2[1];
|
|
66598
|
-
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
66599
|
-
var inputRef = React.useRef(null);
|
|
66600
|
-
var onKeyDown = function onKeyDown(e) {
|
|
66601
|
-
if (e.keyCode === KEY_CODE.ENTER) {
|
|
66602
|
-
e.preventDefault();
|
|
66603
|
-
onSubmit();
|
|
66604
|
-
}
|
|
66605
|
-
};
|
|
66606
|
-
var onSubmit = function onSubmit() {
|
|
66607
|
-
if (value && props.onSubmit) {
|
|
66608
|
-
props.onSubmit(value);
|
|
66609
|
-
resetValue();
|
|
66610
|
-
}
|
|
66611
|
-
};
|
|
66612
|
-
var onCancel = function onCancel() {
|
|
66613
|
-
resetValue();
|
|
66614
|
-
props.onCancel();
|
|
66615
|
-
};
|
|
66616
|
-
var onChange = function onChange(e) {
|
|
66617
|
-
setValue(e.target.value);
|
|
66618
|
-
if (props.onChange) {
|
|
66619
|
-
props.onChange(e.target.value);
|
|
66620
|
-
}
|
|
66621
|
-
};
|
|
66622
|
-
var onBlur = function onBlur() {
|
|
66623
|
-
if (props.onBlur) {
|
|
66624
|
-
props.onBlur();
|
|
66625
|
-
}
|
|
66626
|
-
setState(CTRL.EMPTY);
|
|
66627
|
-
};
|
|
66628
|
-
var onFocus = function onFocus() {
|
|
66629
|
-
if (props.onFocus) {
|
|
66630
|
-
props.onFocus();
|
|
66631
|
-
}
|
|
66632
|
-
setState('vitro-focus');
|
|
66633
|
-
};
|
|
66634
|
-
var resetValue = function resetValue() {
|
|
66635
|
-
if (inputRef.current) {
|
|
66636
|
-
inputRef.current.value = CTRL.EMPTY;
|
|
66637
|
-
}
|
|
66638
|
-
setValue(CTRL.EMPTY);
|
|
66639
|
-
};
|
|
66640
|
-
var getTextValue = function getTextValue(value) {
|
|
66641
|
-
var valueArray = value.valueList.map(function (x) {
|
|
66642
|
-
if (x && typeof x === 'object') {
|
|
66643
|
-
if (x instanceof Date) {
|
|
66644
|
-
return x.toLocaleString().split(CTRL.COMMA)[0];
|
|
66645
|
-
}
|
|
66646
|
-
return x.name || x.fieldValueMap.name;
|
|
66647
|
-
} else {
|
|
66648
|
-
return x;
|
|
66649
|
-
}
|
|
66650
|
-
});
|
|
66651
|
-
var text = [value.name, valueArray.join(CTRL.COMMA + CTRL.SPACE)].join(CTRL.COLON + CTRL.SPACE);
|
|
66652
|
-
return text;
|
|
66653
|
-
};
|
|
66654
|
-
var onRemoveValue = function onRemoveValue(valueList) {
|
|
66655
|
-
if (props.onRemoveValue && props.searchCriterionList) {
|
|
66656
|
-
var newList = props.searchCriterionList;
|
|
66657
|
-
var _loop = function _loop() {
|
|
66658
|
-
var value = _step.value;
|
|
66659
|
-
newList = newList.filter(function (x) {
|
|
66660
|
-
return x.internalName !== value.internalName;
|
|
66661
|
-
});
|
|
66662
|
-
};
|
|
66663
|
-
for (var _iterator = _createForOfIteratorHelperLoose(valueList), _step; !(_step = _iterator()).done;) {
|
|
66664
|
-
_loop();
|
|
66665
|
-
}
|
|
66666
|
-
props.onRemoveValue(newList);
|
|
66667
|
-
}
|
|
66668
|
-
};
|
|
66669
|
-
var getTextValueList = function getTextValueList(valueList) {
|
|
66670
|
-
var list = valueList.map(function (x) {
|
|
66671
|
-
return getTextValue(x);
|
|
66672
|
-
});
|
|
66673
|
-
return list.join(NEW_LINE);
|
|
66674
|
-
};
|
|
66675
|
-
var getClassName = function getClassName() {
|
|
66676
|
-
var classList = [props.isMobileView ? styles$1b['vitro-search-input-mobile'] : styles$1b['vitro-search-input'], props.className || CTRL.EMPTY, state];
|
|
66677
|
-
if (props.isActive) {
|
|
66678
|
-
classList.push('vitro-active');
|
|
66679
|
-
}
|
|
66680
|
-
return classList.join(CTRL.SPACE);
|
|
66681
|
-
};
|
|
66682
|
-
var getSelectedValueList = function getSelectedValueList(valueList) {
|
|
66683
|
-
var firstValue = valueList[0];
|
|
66684
|
-
var list = valueList.slice(1);
|
|
66685
|
-
return React__default.createElement(React__default.Fragment, null, React__default.createElement(FlexBox, {
|
|
66686
|
-
className: styles$1b['vitro-search-value']
|
|
66687
|
-
}, React__default.createElement("span", null, getTextValue(firstValue)), React__default.createElement(ImageButton, {
|
|
66688
|
-
onClick: function onClick() {
|
|
66689
|
-
return onRemoveValue([firstValue]);
|
|
66690
|
-
},
|
|
66691
|
-
className: styles$1b['vitro-button-cancel']
|
|
66692
|
-
})), list.length >= 1 ? React__default.createElement(Tooltip$1, {
|
|
66693
|
-
text: getTextValueList(list),
|
|
66694
|
-
placement: PLACEMENT.BOTTOM
|
|
66695
|
-
}, React__default.createElement("div", null, React__default.createElement(FlexBox, {
|
|
66696
|
-
className: styles$1b['vitro-search-value']
|
|
66697
|
-
}, localeService.create(LOCALE$8.VALUE_COUNT, {
|
|
66698
|
-
count: list.length
|
|
66699
|
-
}), React__default.createElement(ImageButton, {
|
|
66700
|
-
onClick: function onClick() {
|
|
66701
|
-
return onRemoveValue(list);
|
|
66702
|
-
},
|
|
66703
|
-
className: styles$1b['vitro-button-cancel']
|
|
66704
|
-
})))) : null);
|
|
66705
|
-
};
|
|
66706
|
-
return React__default.createElement(FlexBox, {
|
|
66707
|
-
className: getClassName()
|
|
66708
|
-
}, React__default.createElement(ImageButton, {
|
|
66709
|
-
className: 'vitro-button-search',
|
|
66710
|
-
onClick: props.onSearchClick ? props.onSearchClick : onSubmit
|
|
66711
|
-
}), !props.isMobileView && React__default.createElement(React__default.Fragment, null, React__default.createElement(FlexBox, {
|
|
66712
|
-
className: styles$1b['vitro-search-value-list']
|
|
66713
|
-
}, props.searchCriterionList && props.searchCriterionList.length ? getSelectedValueList(props.searchCriterionList) : React__default.createElement("input", {
|
|
66714
|
-
type: 'text',
|
|
66715
|
-
ref: inputRef,
|
|
66716
|
-
onKeyDown: onKeyDown,
|
|
66717
|
-
onChange: onChange,
|
|
66718
|
-
onFocus: onFocus,
|
|
66719
|
-
onBlur: onBlur,
|
|
66720
|
-
placeholder: !props.isActive ? props.placeholder || localeService.create(LOCALE$8.PLACEHOLDER) : CTRL.EMPTY
|
|
66721
|
-
})), props.children, value || (_props$searchCriterio = props.searchCriterionList) !== null && _props$searchCriterio !== void 0 && _props$searchCriterio.length || props.isActive ? React__default.createElement(ImageButton, {
|
|
66722
|
-
onClick: onCancel,
|
|
66723
|
-
className: styles$1b['vitro-button-cancel']
|
|
66724
|
-
}) : null));
|
|
66725
|
-
};
|
|
66726
|
-
|
|
66727
|
-
var LOCALE$9;
|
|
66728
66753
|
(function (LOCALE) {
|
|
66729
66754
|
LOCALE["EXPAND_TEXT"] = "app.common.expandControlGroup.expand";
|
|
66730
66755
|
LOCALE["COLLAPSE_TEXT"] = "app.common.expandControlGroup.collapse";
|
|
66731
|
-
})(LOCALE$
|
|
66756
|
+
})(LOCALE$8 || (LOCALE$8 = {}));
|
|
66732
66757
|
|
|
66733
66758
|
var styles$1c = {"vitro-expand-control-group":"_expand-control-group_vitro-expand-control-group_1qSUMoN","vitro-top":"_expand-control-group_vitro-top_pV-8fhr","vitro-display-none":"_expand-control-group_vitro-display-none_Zs_5rQL"};
|
|
66734
66759
|
|
|
@@ -66752,8 +66777,8 @@ var ExpandControlGroup = function ExpandControlGroup(props) {
|
|
|
66752
66777
|
}, React__default.createElement(ExpandCollapseButton, {
|
|
66753
66778
|
expandImage: props.expandImage,
|
|
66754
66779
|
collapseImage: props.collapseImage,
|
|
66755
|
-
expandText: props.expandText || localeService.create(LOCALE$
|
|
66756
|
-
collapseText: props.collapseText || localeService.create(LOCALE$
|
|
66780
|
+
expandText: props.expandText || localeService.create(LOCALE$8.EXPAND_TEXT),
|
|
66781
|
+
collapseText: props.collapseText || localeService.create(LOCALE$8.COLLAPSE_TEXT),
|
|
66757
66782
|
onClick: onClick,
|
|
66758
66783
|
isExpanded: isExpanded,
|
|
66759
66784
|
className: props.buttonClassName
|
|
@@ -66800,6 +66825,16 @@ var FieldIterator = React.forwardRef(function (props, ref) {
|
|
|
66800
66825
|
setControlList([]);
|
|
66801
66826
|
}
|
|
66802
66827
|
}, [props.fieldList]);
|
|
66828
|
+
React.useEffect(function () {
|
|
66829
|
+
if (props.changedFieldValueMap) {
|
|
66830
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose(props.changedFieldValueMap), _step2; !(_step2 = _iterator2()).done;) {
|
|
66831
|
+
var _step2$value = _step2.value,
|
|
66832
|
+
key = _step2$value[0],
|
|
66833
|
+
value = _step2$value[1];
|
|
66834
|
+
changedFieldValueMap.set(key, value);
|
|
66835
|
+
}
|
|
66836
|
+
}
|
|
66837
|
+
}, [props.changedFieldValueMap]);
|
|
66803
66838
|
React.useEffect(function () {
|
|
66804
66839
|
updateControlList();
|
|
66805
66840
|
}, [props.fieldValueMap, props.fieldList]);
|
|
@@ -66977,9 +67012,151 @@ var FieldIterator = React.forwardRef(function (props, ref) {
|
|
|
66977
67012
|
})) : null);
|
|
66978
67013
|
});
|
|
66979
67014
|
|
|
66980
|
-
var styles$1e = {"vitro-
|
|
67015
|
+
var styles$1e = {"vitro-criterion-container":"_item_vitro-criterion-container_3cAvpK0","vitro-control":"_item_vitro-control_2yXKeQZ","vitro-label":"_item_vitro-label_1UoRViU","vitro-button-cancel":"_item_vitro-button-cancel_3FPRPrk","vitro-focus":"_item_vitro-focus_1VqbeO1","vitro-error":"_item_vitro-error_2VnXFaz","vitro-image":"_item_vitro-image_24giw0o"};
|
|
67016
|
+
|
|
67017
|
+
var Item$3 = function Item(props) {
|
|
67018
|
+
var _useState = React.useState(CTRL.EMPTY),
|
|
67019
|
+
state = _useState[0],
|
|
67020
|
+
setState = _useState[1];
|
|
67021
|
+
var componentProps = props.content.props;
|
|
67022
|
+
var value = React.useMemo(function () {
|
|
67023
|
+
return {
|
|
67024
|
+
internalName: componentProps.name,
|
|
67025
|
+
valueList: componentProps.value ? componentProps.value.valueList : []
|
|
67026
|
+
};
|
|
67027
|
+
}, []);
|
|
67028
|
+
var labelRef = React.useRef(null);
|
|
67029
|
+
var onFocus = function onFocus(e) {
|
|
67030
|
+
setState(styles$1e['vitro-focus']);
|
|
67031
|
+
if (componentProps.onFocus) {
|
|
67032
|
+
componentProps.onFocus(e);
|
|
67033
|
+
}
|
|
67034
|
+
};
|
|
67035
|
+
var onBlur = function onBlur(e) {
|
|
67036
|
+
setState(componentProps.errorMessage ? styles$1e['vitro-error'] : CTRL.EMPTY);
|
|
67037
|
+
if (componentProps.onBlur) {
|
|
67038
|
+
componentProps.onBlur(e);
|
|
67039
|
+
}
|
|
67040
|
+
};
|
|
67041
|
+
var onChange = function onChange(val) {
|
|
67042
|
+
if (props.onChange) {
|
|
67043
|
+
props.onChange(val, componentProps.name);
|
|
67044
|
+
}
|
|
67045
|
+
};
|
|
67046
|
+
var onControlChange = function onControlChange(val, name) {
|
|
67047
|
+
value.valueList = Array.isArray(val) ? val : [val];
|
|
67048
|
+
onChange(value);
|
|
67049
|
+
};
|
|
67050
|
+
return React__default.createElement(FlexBox, {
|
|
67051
|
+
className: props.isMobileView ? styles$1e['vitro-criterion-container-mobile'] : styles$1e['vitro-criterion-container']
|
|
67052
|
+
}, React__default.createElement("div", {
|
|
67053
|
+
className: styles$1e['vitro-control'] + CTRL.SPACE + state
|
|
67054
|
+
}, React__default.createElement(Label, {
|
|
67055
|
+
ref: labelRef,
|
|
67056
|
+
text: props.label,
|
|
67057
|
+
className: styles$1e['vitro-label']
|
|
67058
|
+
}), React__default.createElement(props.content.component, _extends({}, componentProps, {
|
|
67059
|
+
className: styles$1e['vitro-control'],
|
|
67060
|
+
onBlur: onBlur,
|
|
67061
|
+
onFocus: onFocus,
|
|
67062
|
+
onChange: onControlChange,
|
|
67063
|
+
label: CTRL.EMPTY,
|
|
67064
|
+
isDisabled: false,
|
|
67065
|
+
isReadOnly: false,
|
|
67066
|
+
isRequired: false
|
|
67067
|
+
}))), React__default.createElement(ImageButton, {
|
|
67068
|
+
onClick: function onClick() {
|
|
67069
|
+
return props.onDelete(componentProps.id);
|
|
67070
|
+
},
|
|
67071
|
+
className: styles$1e['vitro-button-cancel']
|
|
67072
|
+
}));
|
|
67073
|
+
};
|
|
67074
|
+
|
|
67075
|
+
var styles$1f = {"vitro-field-iterator":"_editable-field-iterator_vitro-field-iterator_myx5yu3"};
|
|
67076
|
+
|
|
67077
|
+
var EditableFieldIterator = function EditableFieldIterator(props) {
|
|
67078
|
+
var _useState = React.useState(null),
|
|
67079
|
+
componentMap = _useState[0],
|
|
67080
|
+
setComponentMap = _useState[1];
|
|
67081
|
+
var _useState2 = React.useState(null),
|
|
67082
|
+
fieldValueMap = _useState2[0],
|
|
67083
|
+
setFieldValueMap = _useState2[1];
|
|
67084
|
+
var _useState3 = React.useState(null),
|
|
67085
|
+
changedFieldValueMap = _useState3[0],
|
|
67086
|
+
setChangedFieldValueMap = _useState3[1];
|
|
67087
|
+
React.useEffect(function () {
|
|
67088
|
+
initComponentMap();
|
|
67089
|
+
}, [props.componentMap]);
|
|
67090
|
+
React.useEffect(function () {
|
|
67091
|
+
if (changedFieldValueMap) {
|
|
67092
|
+
setFieldValueMap(Object.fromEntries(changedFieldValueMap));
|
|
67093
|
+
}
|
|
67094
|
+
}, [props.fieldList, changedFieldValueMap]);
|
|
67095
|
+
React.useEffect(function () {
|
|
67096
|
+
if (props.valueList) {
|
|
67097
|
+
var valueMap = new Map();
|
|
67098
|
+
props.valueList.map(function (x) {
|
|
67099
|
+
valueMap.set(x.internalName, x);
|
|
67100
|
+
});
|
|
67101
|
+
setFieldValueMap(Object.fromEntries(valueMap));
|
|
67102
|
+
setChangedFieldValueMap(valueMap);
|
|
67103
|
+
} else {
|
|
67104
|
+
setFieldValueMap(null);
|
|
67105
|
+
setChangedFieldValueMap(null);
|
|
67106
|
+
}
|
|
67107
|
+
}, [props.valueList]);
|
|
67108
|
+
var initComponentMap = function initComponentMap() {
|
|
67109
|
+
var map = props.componentMap.map(function (component) {
|
|
67110
|
+
return {
|
|
67111
|
+
name: component.name,
|
|
67112
|
+
value: function value(componentProps) {
|
|
67113
|
+
return React__default.createElement(Item$3, {
|
|
67114
|
+
label: componentProps.label,
|
|
67115
|
+
onDelete: props.onDeleteField,
|
|
67116
|
+
content: {
|
|
67117
|
+
component: component.value,
|
|
67118
|
+
props: _extends({}, componentProps, {
|
|
67119
|
+
label: CTRL.EMPTY
|
|
67120
|
+
})
|
|
67121
|
+
},
|
|
67122
|
+
onChange: componentProps.onChange,
|
|
67123
|
+
isMobileView: props.isMobileView
|
|
67124
|
+
});
|
|
67125
|
+
}
|
|
67126
|
+
};
|
|
67127
|
+
});
|
|
67128
|
+
setComponentMap(map);
|
|
67129
|
+
};
|
|
67130
|
+
var onChange = function onChange(changedFieldValueMap) {
|
|
67131
|
+
setChangedFieldValueMap(changedFieldValueMap);
|
|
67132
|
+
props.onChange(changedFieldValueMap);
|
|
67133
|
+
};
|
|
67134
|
+
return React__default.createElement("div", {
|
|
67135
|
+
className: styles$1f['vitro-filter']
|
|
67136
|
+
}, props.isNoScrollBar ? componentMap && React__default.createElement(FieldIterator, {
|
|
67137
|
+
fieldList: props.fieldList,
|
|
67138
|
+
fieldValueMap: fieldValueMap,
|
|
67139
|
+
changedFieldValueMap: changedFieldValueMap,
|
|
67140
|
+
componentMap: componentMap,
|
|
67141
|
+
onChange: onChange,
|
|
67142
|
+
isVisibleOverflow: true,
|
|
67143
|
+
className: styles$1f['vitro-field-iterator']
|
|
67144
|
+
}) : React__default.createElement(ScrollBar, {
|
|
67145
|
+
className: styles$1f['vitro-scrollbar']
|
|
67146
|
+
}, componentMap && React__default.createElement(FieldIterator, {
|
|
67147
|
+
fieldList: props.fieldList,
|
|
67148
|
+
fieldValueMap: fieldValueMap,
|
|
67149
|
+
changedFieldValueMap: changedFieldValueMap,
|
|
67150
|
+
componentMap: componentMap,
|
|
67151
|
+
onChange: onChange,
|
|
67152
|
+
isVisibleOverflow: true,
|
|
67153
|
+
className: styles$1f['vitro-field-iterator']
|
|
67154
|
+
})));
|
|
67155
|
+
};
|
|
67156
|
+
|
|
67157
|
+
var styles$1g = {"vitro-field-iterator":"_criterion-field-iterator_vitro-field-iterator_24abkh9","vitro-add-field":"_criterion-field-iterator_vitro-add-field_c1abzX_","vitro-add-field-button":"_criterion-field-iterator_vitro-add-field-button_2oPndf7","vitro-add-field-dialog":"_criterion-field-iterator_vitro-add-field-dialog_3QlfaQE"};
|
|
66981
67158
|
|
|
66982
|
-
var
|
|
67159
|
+
var CriterionFieldIterator = function CriterionFieldIterator(props) {
|
|
66983
67160
|
var _useState = React.useState(null),
|
|
66984
67161
|
componentMap = _useState[0],
|
|
66985
67162
|
setComponentMap = _useState[1];
|
|
@@ -67028,7 +67205,7 @@ var Filter = function Filter(props) {
|
|
|
67028
67205
|
})
|
|
67029
67206
|
},
|
|
67030
67207
|
onChange: componentProps.onChange,
|
|
67031
|
-
isShowOperatorSelect: componentProps.index ? true : false,
|
|
67208
|
+
isShowOperatorSelect: props.operatorList ? componentProps.index ? true : false : false,
|
|
67032
67209
|
isMobileView: props.isMobileView
|
|
67033
67210
|
});
|
|
67034
67211
|
}
|
|
@@ -67041,25 +67218,180 @@ var Filter = function Filter(props) {
|
|
|
67041
67218
|
props.onChange(changedFieldValueMap);
|
|
67042
67219
|
};
|
|
67043
67220
|
return React__default.createElement("div", {
|
|
67044
|
-
className: styles$
|
|
67045
|
-
}, React__default.createElement(
|
|
67046
|
-
|
|
67221
|
+
className: styles$1g['vitro-filter']
|
|
67222
|
+
}, props.isNoScrollBar ? componentMap && React__default.createElement(FieldIterator, {
|
|
67223
|
+
fieldList: props.fieldList,
|
|
67224
|
+
fieldValueMap: fieldValueMap,
|
|
67225
|
+
changedFieldValueMap: changedFieldValueMap,
|
|
67226
|
+
componentMap: componentMap,
|
|
67227
|
+
onChange: onChange,
|
|
67228
|
+
isVisibleOverflow: true,
|
|
67229
|
+
className: styles$1g['vitro-field-iterator']
|
|
67230
|
+
}) : React__default.createElement(ScrollBar, {
|
|
67231
|
+
className: styles$1g['vitro-scrollbar']
|
|
67047
67232
|
}, componentMap && React__default.createElement(FieldIterator, {
|
|
67048
67233
|
fieldList: props.fieldList,
|
|
67049
67234
|
fieldValueMap: fieldValueMap,
|
|
67050
67235
|
changedFieldValueMap: changedFieldValueMap,
|
|
67051
67236
|
componentMap: componentMap,
|
|
67052
67237
|
onChange: onChange,
|
|
67053
|
-
isVisibleOverflow: true
|
|
67238
|
+
isVisibleOverflow: true,
|
|
67239
|
+
className: styles$1g['vitro-field-iterator']
|
|
67054
67240
|
})));
|
|
67055
67241
|
};
|
|
67056
67242
|
|
|
67243
|
+
var LOCALE$9;
|
|
67244
|
+
(function (LOCALE) {
|
|
67245
|
+
LOCALE["VALUE_COUNT"] = "app.common.searchInput.valueCount";
|
|
67246
|
+
LOCALE["PLACEHOLDER"] = "app.common.searchInput.placeholder";
|
|
67247
|
+
})(LOCALE$9 || (LOCALE$9 = {}));
|
|
67248
|
+
|
|
67249
|
+
var styles$1h = {"vitro-search-input":"_search-input_vitro-search-input_3M9i4Gi","vitro-search-value-list":"_search-input_vitro-search-value-list_1Gqj4bm","vitro-button-cancel":"_search-input_vitro-button-cancel_xqdMNLo","vitro-search-value":"_search-input_vitro-search-value_TJm1BCf","vitro-search-input-mobile":"_search-input_vitro-search-input-mobile_1H1USnO"};
|
|
67250
|
+
|
|
67251
|
+
var NEW_LINE = '\n';
|
|
67252
|
+
var SearchInput = function SearchInput(props) {
|
|
67253
|
+
var _props$searchCriterio;
|
|
67254
|
+
var _useState = React.useState(CTRL.EMPTY),
|
|
67255
|
+
value = _useState[0],
|
|
67256
|
+
setValue = _useState[1];
|
|
67257
|
+
var _useState2 = React.useState(CTRL.EMPTY),
|
|
67258
|
+
state = _useState2[0],
|
|
67259
|
+
setState = _useState2[1];
|
|
67260
|
+
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
67261
|
+
var inputRef = React.useRef(null);
|
|
67262
|
+
var onKeyDown = function onKeyDown(e) {
|
|
67263
|
+
if (e.keyCode === KEY_CODE.ENTER) {
|
|
67264
|
+
e.preventDefault();
|
|
67265
|
+
onSubmit();
|
|
67266
|
+
}
|
|
67267
|
+
};
|
|
67268
|
+
var onSubmit = function onSubmit() {
|
|
67269
|
+
if (value && props.onSubmit) {
|
|
67270
|
+
props.onSubmit(value);
|
|
67271
|
+
resetValue();
|
|
67272
|
+
}
|
|
67273
|
+
};
|
|
67274
|
+
var onCancel = function onCancel() {
|
|
67275
|
+
resetValue();
|
|
67276
|
+
props.onCancel();
|
|
67277
|
+
};
|
|
67278
|
+
var onChange = function onChange(e) {
|
|
67279
|
+
setValue(e.target.value);
|
|
67280
|
+
if (props.onChange) {
|
|
67281
|
+
props.onChange(e.target.value);
|
|
67282
|
+
}
|
|
67283
|
+
};
|
|
67284
|
+
var onBlur = function onBlur() {
|
|
67285
|
+
if (props.onBlur) {
|
|
67286
|
+
props.onBlur();
|
|
67287
|
+
}
|
|
67288
|
+
setState(CTRL.EMPTY);
|
|
67289
|
+
};
|
|
67290
|
+
var onFocus = function onFocus() {
|
|
67291
|
+
if (props.onFocus) {
|
|
67292
|
+
props.onFocus();
|
|
67293
|
+
}
|
|
67294
|
+
setState('vitro-focus');
|
|
67295
|
+
};
|
|
67296
|
+
var resetValue = function resetValue() {
|
|
67297
|
+
if (inputRef.current) {
|
|
67298
|
+
inputRef.current.value = CTRL.EMPTY;
|
|
67299
|
+
}
|
|
67300
|
+
setValue(CTRL.EMPTY);
|
|
67301
|
+
};
|
|
67302
|
+
var getTextValue = function getTextValue(value) {
|
|
67303
|
+
var valueArray = value.valueList.map(function (x) {
|
|
67304
|
+
if (x && typeof x === 'object') {
|
|
67305
|
+
if (x instanceof Date) {
|
|
67306
|
+
return x.toLocaleString().split(CTRL.COMMA)[0];
|
|
67307
|
+
}
|
|
67308
|
+
return x.name || x.fieldValueMap.name;
|
|
67309
|
+
} else {
|
|
67310
|
+
return x;
|
|
67311
|
+
}
|
|
67312
|
+
});
|
|
67313
|
+
var text = [value.name, valueArray.join(CTRL.COMMA + CTRL.SPACE)].join(CTRL.COLON + CTRL.SPACE);
|
|
67314
|
+
return text;
|
|
67315
|
+
};
|
|
67316
|
+
var onRemoveValue = function onRemoveValue(valueList) {
|
|
67317
|
+
if (props.onRemoveValue && props.searchCriterionList) {
|
|
67318
|
+
var newList = props.searchCriterionList;
|
|
67319
|
+
var _loop = function _loop() {
|
|
67320
|
+
var value = _step.value;
|
|
67321
|
+
newList = newList.filter(function (x) {
|
|
67322
|
+
return x.internalName !== value.internalName;
|
|
67323
|
+
});
|
|
67324
|
+
};
|
|
67325
|
+
for (var _iterator = _createForOfIteratorHelperLoose(valueList), _step; !(_step = _iterator()).done;) {
|
|
67326
|
+
_loop();
|
|
67327
|
+
}
|
|
67328
|
+
props.onRemoveValue(newList);
|
|
67329
|
+
}
|
|
67330
|
+
};
|
|
67331
|
+
var getTextValueList = function getTextValueList(valueList) {
|
|
67332
|
+
var list = valueList.map(function (x) {
|
|
67333
|
+
return getTextValue(x);
|
|
67334
|
+
});
|
|
67335
|
+
return list.join(NEW_LINE);
|
|
67336
|
+
};
|
|
67337
|
+
var getClassName = function getClassName() {
|
|
67338
|
+
var classList = [props.isMobileView ? styles$1h['vitro-search-input-mobile'] : styles$1h['vitro-search-input'], props.className || CTRL.EMPTY, state];
|
|
67339
|
+
if (props.isActive) {
|
|
67340
|
+
classList.push('vitro-active');
|
|
67341
|
+
}
|
|
67342
|
+
return classList.join(CTRL.SPACE);
|
|
67343
|
+
};
|
|
67344
|
+
var getSelectedValueList = function getSelectedValueList(valueList) {
|
|
67345
|
+
var firstValue = valueList[0];
|
|
67346
|
+
var list = valueList.slice(1);
|
|
67347
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(FlexBox, {
|
|
67348
|
+
className: styles$1h['vitro-search-value']
|
|
67349
|
+
}, React__default.createElement("span", null, getTextValue(firstValue)), React__default.createElement(ImageButton, {
|
|
67350
|
+
onClick: function onClick() {
|
|
67351
|
+
return onRemoveValue([firstValue]);
|
|
67352
|
+
},
|
|
67353
|
+
className: styles$1h['vitro-button-cancel']
|
|
67354
|
+
})), list.length >= 1 ? React__default.createElement(Tooltip$1, {
|
|
67355
|
+
text: getTextValueList(list),
|
|
67356
|
+
placement: PLACEMENT.BOTTOM
|
|
67357
|
+
}, React__default.createElement("div", null, React__default.createElement(FlexBox, {
|
|
67358
|
+
className: styles$1h['vitro-search-value']
|
|
67359
|
+
}, localeService.create(LOCALE$9.VALUE_COUNT, {
|
|
67360
|
+
count: list.length
|
|
67361
|
+
}), React__default.createElement(ImageButton, {
|
|
67362
|
+
onClick: function onClick() {
|
|
67363
|
+
return onRemoveValue(list);
|
|
67364
|
+
},
|
|
67365
|
+
className: styles$1h['vitro-button-cancel']
|
|
67366
|
+
})))) : null);
|
|
67367
|
+
};
|
|
67368
|
+
return React__default.createElement(FlexBox, {
|
|
67369
|
+
className: getClassName()
|
|
67370
|
+
}, React__default.createElement(ImageButton, {
|
|
67371
|
+
className: 'vitro-button-search',
|
|
67372
|
+
onClick: props.onSearchClick ? props.onSearchClick : onSubmit
|
|
67373
|
+
}), !props.isMobileView && React__default.createElement(React__default.Fragment, null, React__default.createElement(FlexBox, {
|
|
67374
|
+
className: styles$1h['vitro-search-value-list']
|
|
67375
|
+
}, props.searchCriterionList && props.searchCriterionList.length ? getSelectedValueList(props.searchCriterionList) : React__default.createElement("input", {
|
|
67376
|
+
type: 'text',
|
|
67377
|
+
ref: inputRef,
|
|
67378
|
+
onKeyDown: onKeyDown,
|
|
67379
|
+
onChange: onChange,
|
|
67380
|
+
onFocus: onFocus,
|
|
67381
|
+
onBlur: onBlur,
|
|
67382
|
+
placeholder: !props.isActive ? props.placeholder || localeService.create(LOCALE$9.PLACEHOLDER) : CTRL.EMPTY
|
|
67383
|
+
})), props.children, value || (_props$searchCriterio = props.searchCriterionList) !== null && _props$searchCriterio !== void 0 && _props$searchCriterio.length || props.isActive ? React__default.createElement(ImageButton, {
|
|
67384
|
+
onClick: onCancel,
|
|
67385
|
+
className: styles$1h['vitro-button-cancel']
|
|
67386
|
+
}) : null));
|
|
67387
|
+
};
|
|
67388
|
+
|
|
67057
67389
|
var LOCALE$a;
|
|
67058
67390
|
(function (LOCALE) {
|
|
67059
67391
|
LOCALE["EMPTY_PLACEHOLDER"] = "app.common.searchValueList.emptyPlaceholder";
|
|
67060
67392
|
})(LOCALE$a || (LOCALE$a = {}));
|
|
67061
67393
|
|
|
67062
|
-
var styles$
|
|
67394
|
+
var styles$1i = {"vitro-search-input-container":"_search-value-list_vitro-search-input-container_167CEqB","vitro-empty-placeholder":"_search-value-list_vitro-empty-placeholder_2f08lDK"};
|
|
67063
67395
|
|
|
67064
67396
|
var SearchValueList = function SearchValueList(props) {
|
|
67065
67397
|
var _useState = React.useState(props.itemList),
|
|
@@ -67086,7 +67418,7 @@ var SearchValueList = function SearchValueList(props) {
|
|
|
67086
67418
|
return React__default.createElement("div", {
|
|
67087
67419
|
className: props.className || CTRL.EMPTY
|
|
67088
67420
|
}, React__default.createElement("div", {
|
|
67089
|
-
className: styles$
|
|
67421
|
+
className: styles$1i['vitro-search-input-container']
|
|
67090
67422
|
}, React__default.createElement(SearchInput, {
|
|
67091
67423
|
onCancel: onSearchCancel,
|
|
67092
67424
|
onChange: onInputChange,
|
|
@@ -67095,11 +67427,11 @@ var SearchValueList = function SearchValueList(props) {
|
|
|
67095
67427
|
})), React__default.createElement(ScrollBar, null, props.children, itemList.length ? itemList.map(function (item) {
|
|
67096
67428
|
return props.valueTemplate(item);
|
|
67097
67429
|
}) : React__default.createElement("span", {
|
|
67098
|
-
className: styles$
|
|
67430
|
+
className: styles$1i['vitro-empty-placeholder']
|
|
67099
67431
|
}, props.emptyPlaceHolder || localeService.create(LOCALE$a.EMPTY_PLACEHOLDER))));
|
|
67100
67432
|
};
|
|
67101
67433
|
|
|
67102
|
-
var styles$
|
|
67434
|
+
var styles$1j = {"vitro-checkbox-list":"_checkbox-list_vitro-checkbox-list_1iZSkkv","vitro-search-value-list":"_checkbox-list_vitro-search-value-list_2i58fRK","vitro-checkbox":"_checkbox-list_vitro-checkbox_1EqsnoQ"};
|
|
67103
67435
|
|
|
67104
67436
|
var CheckboxList = React.forwardRef(function (props, ref) {
|
|
67105
67437
|
var _useState = React.useState(props.itemList),
|
|
@@ -67134,23 +67466,57 @@ var CheckboxList = React.forwardRef(function (props, ref) {
|
|
|
67134
67466
|
onChange: function onChange(value, name) {
|
|
67135
67467
|
return _onChange(value, item.id);
|
|
67136
67468
|
},
|
|
67137
|
-
className: styles$
|
|
67469
|
+
className: styles$1j['vitro-checkbox']
|
|
67138
67470
|
});
|
|
67139
67471
|
};
|
|
67140
67472
|
var filterValueTemplate = function filterValueTemplate(item) {
|
|
67141
67473
|
return item.name;
|
|
67142
67474
|
};
|
|
67143
67475
|
return React__default.createElement("div", {
|
|
67144
|
-
className: styles$
|
|
67476
|
+
className: styles$1j['vitro-checkbox-list'],
|
|
67145
67477
|
ref: ref
|
|
67146
67478
|
}, React__default.createElement(SearchValueList, {
|
|
67147
67479
|
itemList: props.itemList,
|
|
67148
67480
|
valueTemplate: getCheckbox,
|
|
67149
67481
|
filterValueTemplate: filterValueTemplate,
|
|
67150
|
-
className: styles$
|
|
67482
|
+
className: styles$1j['vitro-search-value-list']
|
|
67151
67483
|
}));
|
|
67152
67484
|
});
|
|
67153
67485
|
|
|
67486
|
+
var styles$1k = {"vitro-search":"_search_vitro-search_QkJksC_","vitro-active":"_search_vitro-active_1HhQOCR","vitro-settings-dialog":"_search_vitro-settings-dialog_1_c5bIg","vitro-filter-container":"_search_vitro-filter-container_3p6D0hI","vitro-filter":"_search_vitro-filter_2n-Y-mS","vitro-field-iterator":"_search_vitro-field-iterator_2xhcd1b","vitro-add-field":"_search_vitro-add-field_2hHt1Z2","vitro-add-field-button":"_search_vitro-add-field-button_30hdXYn","vitro-add-field-dialog":"_search_vitro-add-field-dialog_3gC92SF","vitro-button-group":"_search_vitro-button-group_1VuZJdq","vitro-button":"_search_vitro-button_1kaitIg","vitro-button-cancel":"_search_vitro-button-cancel_1M8UkMM","vitro-button-settings":"_search_vitro-button-settings_oJCn__t","vitro-search-mobile":"_search_vitro-search-mobile_XsKRflV","vitro-settings-dialog-mobile":"_search_vitro-settings-dialog-mobile_1no71m6","vitro-settings-dialog-header":"_search_vitro-settings-dialog-header_vID4BE6","vitro-settings-dialog-footer":"_search_vitro-settings-dialog-footer_11fP4FC","vitro-scrollbar":"_search_vitro-scrollbar_3Xg3VXI"};
|
|
67487
|
+
|
|
67488
|
+
var AddFieldButton = React.forwardRef(function (props, ref) {
|
|
67489
|
+
var _props$filterContaine;
|
|
67490
|
+
var addFieldButtonRef = React.useRef(null);
|
|
67491
|
+
var addFieldListRef = React.useRef(null);
|
|
67492
|
+
React.useImperativeHandle(ref, function () {
|
|
67493
|
+
return {
|
|
67494
|
+
addFieldButtonRef: addFieldButtonRef.current,
|
|
67495
|
+
addFieldListRef: addFieldListRef.current
|
|
67496
|
+
};
|
|
67497
|
+
});
|
|
67498
|
+
return React__default.createElement("div", {
|
|
67499
|
+
className: styles$1k['vitro-add-field']
|
|
67500
|
+
}, React__default.createElement(Button$2, {
|
|
67501
|
+
ref: addFieldButtonRef,
|
|
67502
|
+
text: props.labelAddField,
|
|
67503
|
+
onClick: props.onAddField,
|
|
67504
|
+
className: styles$1k['vitro-add-field-button']
|
|
67505
|
+
}), React__default.createElement(Overlay$2, {
|
|
67506
|
+
isShow: props.isShowAddFieldDialog,
|
|
67507
|
+
isFlip: props.isMobileView,
|
|
67508
|
+
target: addFieldButtonRef.current,
|
|
67509
|
+
container: (_props$filterContaine = props.filterContainerRef) !== null && _props$filterContaine !== void 0 && _props$filterContaine.current ? props.filterContainerRef.current : undefined,
|
|
67510
|
+
placement: props.isMobileView ? exports.PLACEMENT.BOTTOM + CTRL.DASH + exports.PLACEMENT.START : exports.PLACEMENT.RIGHT + CTRL.DASH + exports.PLACEMENT.START,
|
|
67511
|
+
className: styles$1k['vitro-add-field-dialog']
|
|
67512
|
+
}, React__default.createElement(CheckboxList, {
|
|
67513
|
+
ref: addFieldListRef,
|
|
67514
|
+
itemList: props.checkboxFieldList,
|
|
67515
|
+
onChange: props.onFieldListChange,
|
|
67516
|
+
isAllSelected: props.isAllFieldsVisible
|
|
67517
|
+
})));
|
|
67518
|
+
});
|
|
67519
|
+
|
|
67154
67520
|
var CONDITION_CONTAINS = 11;
|
|
67155
67521
|
var Search = function Search(props) {
|
|
67156
67522
|
var _useState = React.useState(false),
|
|
@@ -67177,8 +67543,7 @@ var Search = function Search(props) {
|
|
|
67177
67543
|
var _useState8 = React.useState(CTRL.EMPTY),
|
|
67178
67544
|
state = _useState8[0],
|
|
67179
67545
|
setState = _useState8[1];
|
|
67180
|
-
var
|
|
67181
|
-
var addFieldButtonRef = React.useRef(null);
|
|
67546
|
+
var addFieldComponentRef = React.useRef(null);
|
|
67182
67547
|
var searchRef = React.useRef(null);
|
|
67183
67548
|
var filterContainerRef = React.useRef(null);
|
|
67184
67549
|
React.useEffect(function () {
|
|
@@ -67209,7 +67574,7 @@ var Search = function Search(props) {
|
|
|
67209
67574
|
}, [filterFieldList]);
|
|
67210
67575
|
React.useEffect(function () {
|
|
67211
67576
|
if (selectedSearchCriterionList.length) {
|
|
67212
|
-
setState(styles$
|
|
67577
|
+
setState(styles$1k['vitro-active']);
|
|
67213
67578
|
}
|
|
67214
67579
|
}, [selectedSearchCriterionList]);
|
|
67215
67580
|
React.useEffect(function () {
|
|
@@ -67351,14 +67716,15 @@ var Search = function Search(props) {
|
|
|
67351
67716
|
}
|
|
67352
67717
|
};
|
|
67353
67718
|
var onBlurAddFieldDialog = function onBlurAddFieldDialog(e) {
|
|
67354
|
-
var
|
|
67355
|
-
var
|
|
67719
|
+
var _addFieldComponentRef, _addFieldComponentRef2;
|
|
67720
|
+
var list = (_addFieldComponentRef = addFieldComponentRef.current) === null || _addFieldComponentRef === void 0 ? void 0 : _addFieldComponentRef.addFieldListRef;
|
|
67721
|
+
var button = (_addFieldComponentRef2 = addFieldComponentRef.current) === null || _addFieldComponentRef2 === void 0 ? void 0 : _addFieldComponentRef2.addFieldButtonRef;
|
|
67356
67722
|
if (list && !list.contains(e.target) && button && !button.contains(e.target)) {
|
|
67357
67723
|
setIsShowAddFieldDialog(false);
|
|
67358
67724
|
}
|
|
67359
67725
|
};
|
|
67360
67726
|
var onFocusInput = function onFocusInput() {
|
|
67361
|
-
setState(styles$
|
|
67727
|
+
setState(styles$1k['vitro-active']);
|
|
67362
67728
|
};
|
|
67363
67729
|
var onRemoveValue = function onRemoveValue(valueList) {
|
|
67364
67730
|
setSearchCriterionList(valueList);
|
|
@@ -67368,9 +67734,9 @@ var Search = function Search(props) {
|
|
|
67368
67734
|
closeSettings();
|
|
67369
67735
|
};
|
|
67370
67736
|
var content = React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
67371
|
-
className: styles$
|
|
67737
|
+
className: styles$1k['vitro-filter-container'],
|
|
67372
67738
|
ref: filterContainerRef
|
|
67373
|
-
}, React__default.createElement(
|
|
67739
|
+
}, React__default.createElement(CriterionFieldIterator, {
|
|
67374
67740
|
fieldList: filterFieldList,
|
|
67375
67741
|
valueList: selectedSearchCriterionList,
|
|
67376
67742
|
onChange: onFilterChange,
|
|
@@ -67380,39 +67746,30 @@ var Search = function Search(props) {
|
|
|
67380
67746
|
getConditionList: props.getConditionList,
|
|
67381
67747
|
getDefaultCondition: props.getDefaultCondition,
|
|
67382
67748
|
isMobileView: props.isMobileView
|
|
67383
|
-
}), isShowAddFieldButton && React__default.createElement(
|
|
67384
|
-
|
|
67385
|
-
|
|
67386
|
-
|
|
67387
|
-
|
|
67388
|
-
|
|
67389
|
-
|
|
67390
|
-
|
|
67391
|
-
|
|
67392
|
-
|
|
67393
|
-
|
|
67394
|
-
|
|
67395
|
-
placement: props.isMobileView ? exports.PLACEMENT.BOTTOM + CTRL.DASH + exports.PLACEMENT.START : exports.PLACEMENT.RIGHT + CTRL.DASH + exports.PLACEMENT.START,
|
|
67396
|
-
className: styles$1e['vitro-add-field-dialog']
|
|
67397
|
-
}, React__default.createElement(CheckboxList, {
|
|
67398
|
-
ref: addFieldListRef,
|
|
67399
|
-
itemList: checkboxFieldList,
|
|
67400
|
-
onChange: onFieldListChange,
|
|
67401
|
-
isAllSelected: props.isAllFieldsVisible
|
|
67402
|
-
}))), !props.isMobileView && React__default.createElement(ButtonGroup, {
|
|
67403
|
-
className: styles$1e['vitro-button-group']
|
|
67749
|
+
}), isShowAddFieldButton && React__default.createElement(AddFieldButton, {
|
|
67750
|
+
ref: addFieldComponentRef,
|
|
67751
|
+
labelAddField: props.labelAddField,
|
|
67752
|
+
onAddField: onAddField,
|
|
67753
|
+
isShowAddFieldDialog: isShowAddFieldDialog,
|
|
67754
|
+
isMobileView: props.isMobileView,
|
|
67755
|
+
checkboxFieldList: checkboxFieldList,
|
|
67756
|
+
onFieldListChange: onFieldListChange,
|
|
67757
|
+
isAllFieldsVisible: props.isAllFieldsVisible,
|
|
67758
|
+
filterContainerRef: filterContainerRef
|
|
67759
|
+
}), !props.isMobileView && React__default.createElement(ButtonGroup, {
|
|
67760
|
+
className: styles$1k['vitro-button-group']
|
|
67404
67761
|
}, React__default.createElement(Button$2, {
|
|
67405
67762
|
text: props.labelCancel,
|
|
67406
67763
|
onClick: onCancel,
|
|
67407
|
-
className: styles$
|
|
67764
|
+
className: styles$1k['vitro-button-cancel']
|
|
67408
67765
|
}), React__default.createElement(Button$2, {
|
|
67409
67766
|
text: props.labelSearch,
|
|
67410
67767
|
onClick: onSearch,
|
|
67411
|
-
className: styles$
|
|
67768
|
+
className: styles$1k['vitro-button']
|
|
67412
67769
|
}))));
|
|
67413
67770
|
return React__default.createElement("div", {
|
|
67414
67771
|
ref: searchRef,
|
|
67415
|
-
className: (props.isMobileView || props.isMinifiedInput ? styles$
|
|
67772
|
+
className: (props.isMobileView || props.isMinifiedInput ? styles$1k['vitro-search-mobile'] : styles$1k['vitro-search']) + CTRL.SPACE + state
|
|
67416
67773
|
}, React__default.createElement(SearchInput, {
|
|
67417
67774
|
searchCriterionList: selectedSearchCriterionList,
|
|
67418
67775
|
onCancel: onCancelSearch,
|
|
@@ -67424,10 +67781,10 @@ var Search = function Search(props) {
|
|
|
67424
67781
|
onFocus: onFocusInput,
|
|
67425
67782
|
isActive: state || isShowDialog ? true : false,
|
|
67426
67783
|
isMobileView: props.isMobileView ? true : props.isMinifiedInput,
|
|
67427
|
-
className: styles$
|
|
67784
|
+
className: styles$1k['vitro-control']
|
|
67428
67785
|
}, (state || isShowDialog) && React__default.createElement(ImageButton, {
|
|
67429
67786
|
onClick: onSettingsClick,
|
|
67430
|
-
className: styles$
|
|
67787
|
+
className: styles$1k['vitro-button-settings'] + (isShowDialog ? CTRL.SPACE + styles$1k['vitro-active'] : CTRL.EMPTY)
|
|
67431
67788
|
})), isShowDialog && (props.isMobileView ? React__default.createElement(Dialog, {
|
|
67432
67789
|
title: props.inputPlaceholder || CTRL.EMPTY,
|
|
67433
67790
|
onClose: closeSettings,
|
|
@@ -67435,12 +67792,12 @@ var Search = function Search(props) {
|
|
|
67435
67792
|
text: props.labelSearch,
|
|
67436
67793
|
onClick: onSearch
|
|
67437
67794
|
}],
|
|
67438
|
-
className: styles$
|
|
67439
|
-
headerClassName: styles$
|
|
67440
|
-
footerClassName: styles$
|
|
67795
|
+
className: styles$1k['vitro-settings-dialog-mobile'],
|
|
67796
|
+
headerClassName: styles$1k['vitro-settings-dialog-header'],
|
|
67797
|
+
footerClassName: styles$1k['vitro-settings-dialog-footer'],
|
|
67441
67798
|
isDismissible: true
|
|
67442
67799
|
}, content) : React__default.createElement(FlexBox, {
|
|
67443
|
-
className: styles$
|
|
67800
|
+
className: styles$1k['vitro-settings-dialog']
|
|
67444
67801
|
}, content)));
|
|
67445
67802
|
};
|
|
67446
67803
|
|
|
@@ -67485,12 +67842,18 @@ var Splitter = function Splitter(props) {
|
|
|
67485
67842
|
resizeObserver.disconnect();
|
|
67486
67843
|
};
|
|
67487
67844
|
}, []);
|
|
67845
|
+
var getWidth = function getWidth(value) {
|
|
67846
|
+
if (+value) {
|
|
67847
|
+
return value + CTRL.PERCENT;
|
|
67848
|
+
}
|
|
67849
|
+
return value;
|
|
67850
|
+
};
|
|
67488
67851
|
return React__default.createElement(ReactSplitter, {
|
|
67489
67852
|
ref: ref,
|
|
67490
67853
|
position: props.position || POSITION$1.VERTICAL,
|
|
67491
|
-
primaryPaneMaxWidth: (props.maxWidth ? props.maxWidth : WIDTH.DEFAULT_MAX)
|
|
67492
|
-
primaryPaneMinWidth: (props.minWidth ? props.minWidth : WIDTH.DEFAULT_MIN)
|
|
67493
|
-
primaryPaneWidth: (props.width ? props.width : WIDTH.DEFAULT)
|
|
67854
|
+
primaryPaneMaxWidth: getWidth(props.maxWidth ? props.maxWidth : WIDTH.DEFAULT_MAX),
|
|
67855
|
+
primaryPaneMinWidth: getWidth(props.minWidth ? props.minWidth : WIDTH.DEFAULT_MIN),
|
|
67856
|
+
primaryPaneWidth: getWidth(props.width ? props.width : WIDTH.DEFAULT),
|
|
67494
67857
|
postPoned: props.isPostPoned,
|
|
67495
67858
|
maximizedPrimaryPane: props.isMaximizedPrimaryPane,
|
|
67496
67859
|
minimalizedPrimaryPane: props.isMinimalizedPrimaryPane,
|
|
@@ -67500,7 +67863,7 @@ var Splitter = function Splitter(props) {
|
|
|
67500
67863
|
}, props.children);
|
|
67501
67864
|
};
|
|
67502
67865
|
|
|
67503
|
-
var styles$
|
|
67866
|
+
var styles$1l = {"vitro-route-item":"_route-item_vitro-route-item_bBCgBZG","vitro-route-item-body":"_route-item_vitro-route-item-body_1_1fjOZ","vitro-route-item-content":"_route-item_vitro-route-item-content_2CcLogk","vitro-button-collapse":"_route-item_vitro-button-collapse_1kVB5Vo","vitro-button-expand":"_route-item_vitro-button-expand_3IuABa1","vitro-button-hide-comment":"_route-item_vitro-button-hide-comment_2CiY-Ch","vitro-button-show-comment":"_route-item_vitro-button-show-comment_DJt2SLC","vitro-avatar":"_route-item_vitro-avatar_3Dypnmz","vitro-date":"_route-item_vitro-date_3ojnKSb","vitro-route-item-header":"_route-item_vitro-route-item-header_y69bLwZ","vitro-flex":"_route-item_vitro-flex_3ebkqZ9","vitro-comment":"_route-item_vitro-comment_2K7RwrZ","vitro-status-color":"_route-item_vitro-status-color_VgXzXKD"};
|
|
67504
67867
|
|
|
67505
67868
|
var RouteItem = function RouteItem(props) {
|
|
67506
67869
|
var _useState = React.useState(true),
|
|
@@ -67510,42 +67873,42 @@ var RouteItem = function RouteItem(props) {
|
|
|
67510
67873
|
isShowComment = _useState2[0],
|
|
67511
67874
|
setIsShowComment = _useState2[1];
|
|
67512
67875
|
return React__default.createElement("div", {
|
|
67513
|
-
className: styles$
|
|
67876
|
+
className: styles$1l['vitro-route-item']
|
|
67514
67877
|
}, props.children ? React__default.createElement("button", {
|
|
67515
|
-
className: isExpanded ? styles$
|
|
67878
|
+
className: isExpanded ? styles$1l['vitro-button-collapse'] : styles$1l['vitro-button-expand'],
|
|
67516
67879
|
onClick: function onClick() {
|
|
67517
67880
|
return setIsExpanded(!isExpanded);
|
|
67518
67881
|
}
|
|
67519
67882
|
}) : null, React__default.createElement("div", {
|
|
67520
|
-
className: styles$
|
|
67883
|
+
className: styles$1l['vitro-route-item-content']
|
|
67521
67884
|
}, props.userName && props.status && React__default.createElement("div", {
|
|
67522
|
-
className: styles$
|
|
67885
|
+
className: styles$1l['vitro-route-item-header']
|
|
67523
67886
|
}, React__default.createElement("div", null, React__default.createElement("div", null, React__default.createElement(Avatar, {
|
|
67524
67887
|
userName: props.userName,
|
|
67525
67888
|
image: props.userImage,
|
|
67526
|
-
className: styles$
|
|
67889
|
+
className: styles$1l['vitro-avatar']
|
|
67527
67890
|
}), props.userName), React__default.createElement("div", {
|
|
67528
|
-
className: styles$
|
|
67891
|
+
className: styles$1l['vitro-date']
|
|
67529
67892
|
}, props.date)), React__default.createElement("div", null, React__default.createElement("div", null, props.statusColor && React__default.createElement("div", {
|
|
67530
|
-
className: styles$
|
|
67893
|
+
className: styles$1l['vitro-status-color'],
|
|
67531
67894
|
style: {
|
|
67532
67895
|
background: props.statusColor
|
|
67533
67896
|
}
|
|
67534
67897
|
}), props.status), React__default.createElement("div", null, React__default.createElement("a", {
|
|
67535
67898
|
href: props.itemUrl
|
|
67536
67899
|
}, CTRL.SHARP + props.itemId)))), React__default.createElement("div", {
|
|
67537
|
-
className: styles$
|
|
67900
|
+
className: styles$1l['vitro-route-item-body']
|
|
67538
67901
|
}, React__default.createElement("div", {
|
|
67539
|
-
className: styles$
|
|
67902
|
+
className: styles$1l['vitro-flex']
|
|
67540
67903
|
}, React__default.createElement("span", null, props.name), props.comment && React__default.createElement("button", {
|
|
67541
|
-
className: isShowComment ? styles$
|
|
67904
|
+
className: isShowComment ? styles$1l['vitro-button-hide-comment'] : styles$1l['vitro-button-show-comment'],
|
|
67542
67905
|
onClick: function onClick() {
|
|
67543
67906
|
return setIsShowComment(!isShowComment);
|
|
67544
67907
|
}
|
|
67545
67908
|
})), isShowComment && props.comment && React__default.createElement("div", {
|
|
67546
|
-
className: styles$
|
|
67909
|
+
className: styles$1l['vitro-comment']
|
|
67547
67910
|
}, props.comment)), isExpanded && React__default.createElement("div", {
|
|
67548
|
-
className: styles$
|
|
67911
|
+
className: styles$1l['vitro-route-item-child']
|
|
67549
67912
|
}, props.children)));
|
|
67550
67913
|
};
|
|
67551
67914
|
|
|
@@ -67653,7 +68016,7 @@ var BimViewer = function BimViewer(props) {
|
|
|
67653
68016
|
});
|
|
67654
68017
|
};
|
|
67655
68018
|
|
|
67656
|
-
var styles$
|
|
68019
|
+
var styles$1m = {"vitro-scroll-view":"_scroll-view_vitro-scroll-view_TXQ8QQh"};
|
|
67657
68020
|
|
|
67658
68021
|
var COMPONENT_NAME = 'kendoScrollView';
|
|
67659
68022
|
var CONTENT_HEIGHT = 100;
|
|
@@ -67698,27 +68061,27 @@ var ScrollView = function ScrollView(props) {
|
|
|
67698
68061
|
};
|
|
67699
68062
|
return React__default.createElement("div", {
|
|
67700
68063
|
ref: scrollViewRef,
|
|
67701
|
-
className: styles$
|
|
68064
|
+
className: styles$1m['vitro-scroll-view'] + CTRL.SPACE + (props.className || CTRL.EMPTY),
|
|
67702
68065
|
tabIndex: 0
|
|
67703
68066
|
}, props.itemList.map(function (item) {
|
|
67704
68067
|
return React__default.createElement(item.component, item.props);
|
|
67705
68068
|
}));
|
|
67706
68069
|
};
|
|
67707
68070
|
|
|
67708
|
-
var styles$
|
|
68071
|
+
var styles$1n = {"vitro-image-container":"_page_vitro-image-container_QEXhGHE"};
|
|
67709
68072
|
|
|
67710
68073
|
var Page = function Page(props) {
|
|
67711
68074
|
return React__default.createElement("div", {
|
|
67712
|
-
className: styles$
|
|
68075
|
+
className: styles$1n['vitro-page'],
|
|
67713
68076
|
"data-role": "page"
|
|
67714
68077
|
}, React__default.createElement("div", {
|
|
67715
|
-
className: styles$
|
|
68078
|
+
className: styles$1n['vitro-image-container']
|
|
67716
68079
|
}, React__default.createElement("img", {
|
|
67717
68080
|
src: props.url
|
|
67718
68081
|
})));
|
|
67719
68082
|
};
|
|
67720
68083
|
|
|
67721
|
-
var styles$
|
|
68084
|
+
var styles$1o = {"vitro-image-viewer":"_image-viewer_vitro-image-viewer_19T7Auc","vitro-header":"_image-viewer_vitro-header_1KIbDWk","vitro-button-close":"_image-viewer_vitro-button-close_36TY-iY","vitro-scroll-view":"_image-viewer_vitro-scroll-view_3nuGD7c","vitro-dropdown-button":"_image-viewer_vitro-dropdown-button_2TOT1pw","vitro-pager":"_image-viewer_vitro-pager_1FiaoGR"};
|
|
67722
68085
|
|
|
67723
68086
|
var ImageViewer = React.forwardRef(function (props, ref) {
|
|
67724
68087
|
var _props$itemList$;
|
|
@@ -67776,25 +68139,25 @@ var ImageViewer = React.forwardRef(function (props, ref) {
|
|
|
67776
68139
|
}
|
|
67777
68140
|
};
|
|
67778
68141
|
return React__default.createElement(React__default.Fragment, null, itemList.length ? React__default.createElement("div", {
|
|
67779
|
-
className: styles$
|
|
68142
|
+
className: styles$1o['vitro-image-viewer']
|
|
67780
68143
|
}, React__default.createElement("div", {
|
|
67781
|
-
className: styles$
|
|
68144
|
+
className: styles$1o['vitro-header']
|
|
67782
68145
|
}, actionList.length ? React__default.createElement(DropdownButton, {
|
|
67783
68146
|
itemList: actionList,
|
|
67784
|
-
className: styles$
|
|
68147
|
+
className: styles$1o['vitro-dropdown-button']
|
|
67785
68148
|
}) : null, React__default.createElement("button", {
|
|
67786
|
-
className: styles$
|
|
68149
|
+
className: styles$1o['vitro-button-close'],
|
|
67787
68150
|
onClick: props.onCloseClick
|
|
67788
68151
|
})), React__default.createElement(ScrollView, {
|
|
67789
68152
|
itemList: itemList,
|
|
67790
68153
|
onChange: onChange,
|
|
67791
|
-
className: styles$
|
|
68154
|
+
className: styles$1o['vitro-scroll-view'],
|
|
67792
68155
|
isEnablePager: true,
|
|
67793
68156
|
activePage: props.activePage
|
|
67794
68157
|
})) : null);
|
|
67795
68158
|
});
|
|
67796
68159
|
|
|
67797
|
-
var styles$
|
|
68160
|
+
var styles$1p = {"vitro-page":"_page-layout_vitro-page_GzZ3agH"};
|
|
67798
68161
|
|
|
67799
68162
|
var PageLayout = function PageLayout(props) {
|
|
67800
68163
|
var getClassName = function getClassName(sidebar) {
|
|
@@ -67808,7 +68171,7 @@ var PageLayout = function PageLayout(props) {
|
|
|
67808
68171
|
return CTRL.SPACE + classNameArr.join(CTRL.SPACE);
|
|
67809
68172
|
};
|
|
67810
68173
|
return React__default.createElement("div", {
|
|
67811
|
-
className: styles$
|
|
68174
|
+
className: styles$1p['vitro-page'] + getClassName(props.sidebar) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
67812
68175
|
id: 'vitro-page'
|
|
67813
68176
|
}, props.children);
|
|
67814
68177
|
};
|
|
@@ -67823,7 +68186,7 @@ var HeaderConstants = {
|
|
|
67823
68186
|
get LOCAL_STORAGE_KEY () { return LOCAL_STORAGE_KEY; }
|
|
67824
68187
|
};
|
|
67825
68188
|
|
|
67826
|
-
var styles$
|
|
68189
|
+
var styles$1q = {"vitro-header":"_header_vitro-header_ta9aLJn"};
|
|
67827
68190
|
|
|
67828
68191
|
var onChangeSidebarMode = function onChangeSidebarMode() {};
|
|
67829
68192
|
var Header = function Header(props) {
|
|
@@ -67866,44 +68229,44 @@ var Header = function Header(props) {
|
|
|
67866
68229
|
}
|
|
67867
68230
|
}, [props.sidebar]);
|
|
67868
68231
|
return React__default.createElement("div", {
|
|
67869
|
-
className: styles$
|
|
68232
|
+
className: styles$1q['vitro-header'],
|
|
67870
68233
|
id: 'vitro-header',
|
|
67871
68234
|
ref: ref
|
|
67872
68235
|
}, props.children);
|
|
67873
68236
|
};
|
|
67874
68237
|
|
|
67875
|
-
var styles$
|
|
68238
|
+
var styles$1r = {"vitro-nav-bar-sidebar-button":"_header-nav-bar-sidebar-button_vitro-nav-bar-sidebar-button_3IZcIOc"};
|
|
67876
68239
|
|
|
67877
68240
|
var SidebarButton = function SidebarButton(props) {
|
|
67878
68241
|
return React__default.createElement("button", {
|
|
67879
|
-
className: styles$
|
|
68242
|
+
className: styles$1r['vitro-nav-bar-sidebar-button'],
|
|
67880
68243
|
onClick: props.onClick
|
|
67881
68244
|
});
|
|
67882
68245
|
};
|
|
67883
68246
|
|
|
67884
|
-
var styles$
|
|
68247
|
+
var styles$1s = {"vitro-nav-bar":"_header-nav-bar_vitro-nav-bar_EuyFIk8"};
|
|
67885
68248
|
|
|
67886
68249
|
var HeaderNavBar = function HeaderNavBar(props) {
|
|
67887
68250
|
return React__default.createElement("nav", {
|
|
67888
|
-
className: styles$
|
|
68251
|
+
className: styles$1s['vitro-nav-bar'] + CTRL.SPACE + ['navbar', 'navbar-expand-lg', 'navbar-light'].join(CTRL.SPACE)
|
|
67889
68252
|
}, React__default.createElement(SidebarButton, {
|
|
67890
68253
|
onClick: onChangeSidebarMode
|
|
67891
68254
|
}), props.children);
|
|
67892
68255
|
};
|
|
67893
68256
|
|
|
67894
|
-
var styles$
|
|
68257
|
+
var styles$1t = {"vitro-nav-service":"_header-nav-service_vitro-nav-service_1-i4GOh"};
|
|
67895
68258
|
|
|
67896
68259
|
var logoStyles = {"vitro-customer-logo":"_header-customer-logo_vitro-customer-logo_2htY4zG"};
|
|
67897
68260
|
|
|
67898
68261
|
var HeaderNavService = function HeaderNavService(props) {
|
|
67899
68262
|
return React__default.createElement("div", {
|
|
67900
|
-
className: styles$
|
|
68263
|
+
className: styles$1t['vitro-nav-service']
|
|
67901
68264
|
}, React__default.createElement("div", {
|
|
67902
68265
|
className: logoStyles['vitro-customer-logo']
|
|
67903
68266
|
}), props.children);
|
|
67904
68267
|
};
|
|
67905
68268
|
|
|
67906
|
-
var styles$
|
|
68269
|
+
var styles$1u = {"vitro-product-title":"_product-title_vitro-product-title_2gZcA5j"};
|
|
67907
68270
|
|
|
67908
68271
|
var ProductTitle = function ProductTitle(props) {
|
|
67909
68272
|
var content = React__default.createElement(React__default.Fragment, null, React__default.createElement(Image, {
|
|
@@ -67925,22 +68288,22 @@ var ProductTitle = function ProductTitle(props) {
|
|
|
67925
68288
|
if (props.href) {
|
|
67926
68289
|
return React__default.createElement("a", {
|
|
67927
68290
|
href: props.href,
|
|
67928
|
-
className: styles$
|
|
68291
|
+
className: styles$1u['vitro-product-title'],
|
|
67929
68292
|
title: props.imageCaption
|
|
67930
68293
|
}, content);
|
|
67931
68294
|
}
|
|
67932
68295
|
return React__default.createElement("a", {
|
|
67933
68296
|
onClick: onClick,
|
|
67934
|
-
className: styles$
|
|
68297
|
+
className: styles$1u['vitro-product-title'],
|
|
67935
68298
|
title: props.imageCaption
|
|
67936
68299
|
}, content);
|
|
67937
68300
|
};
|
|
67938
68301
|
|
|
67939
|
-
var styles$
|
|
68302
|
+
var styles$1v = {"vitro-right":"_right-align-control-group_vitro-right_2vnd6R7"};
|
|
67940
68303
|
|
|
67941
68304
|
var RightAlignControlGroup = function RightAlignControlGroup(props) {
|
|
67942
68305
|
return React__default.createElement("div", {
|
|
67943
|
-
className: styles$
|
|
68306
|
+
className: styles$1v['vitro-right']
|
|
67944
68307
|
}, props.children);
|
|
67945
68308
|
};
|
|
67946
68309
|
|
|
@@ -67950,32 +68313,32 @@ var LeftAlignControlGroup = function LeftAlignControlGroup(props) {
|
|
|
67950
68313
|
}, props.children);
|
|
67951
68314
|
};
|
|
67952
68315
|
|
|
67953
|
-
var styles$
|
|
68316
|
+
var styles$1w = {"vitro-center":"_center-align-control-group_vitro-center_3SHmVN-"};
|
|
67954
68317
|
|
|
67955
68318
|
var CenterAlignControlGroup = function CenterAlignControlGroup(props) {
|
|
67956
68319
|
return React__default.createElement("div", {
|
|
67957
|
-
className: styles$
|
|
68320
|
+
className: styles$1w['vitro-center']
|
|
67958
68321
|
}, props.children);
|
|
67959
68322
|
};
|
|
67960
68323
|
|
|
67961
|
-
var styles$
|
|
68324
|
+
var styles$1x = {"vitro-main":"_main_vitro-main_Kk2JMBF"};
|
|
67962
68325
|
|
|
67963
68326
|
var Main = function Main(props) {
|
|
67964
68327
|
return React__default.createElement("div", {
|
|
67965
|
-
className: styles$
|
|
68328
|
+
className: styles$1x['vitro-main'],
|
|
67966
68329
|
id: 'vitro-main'
|
|
67967
68330
|
}, props.children);
|
|
67968
68331
|
};
|
|
67969
68332
|
|
|
67970
|
-
var styles$
|
|
68333
|
+
var styles$1y = {"vitro-table-view-detail":"_table-view-detail_vitro-table-view-detail_zxwp4XX"};
|
|
67971
68334
|
|
|
67972
68335
|
var TableViewDetail = function TableViewDetail(props) {
|
|
67973
68336
|
return React__default.createElement("div", {
|
|
67974
|
-
className: styles$
|
|
68337
|
+
className: styles$1y['vitro-table-view-detail']
|
|
67975
68338
|
}, props.children);
|
|
67976
68339
|
};
|
|
67977
68340
|
|
|
67978
|
-
var styles$
|
|
68341
|
+
var styles$1z = {"vitro-control":"_radio_vitro-control_1pRRp6K","vitro-radio-content":"_radio_vitro-radio-content_2iXhEPK","vitro-disabled":"_radio_vitro-disabled_2JSpn9-","vitro-label":"_radio_vitro-label_21dXFJN","vitro-left-label":"_radio_vitro-left-label_3BbOjIR"};
|
|
67979
68342
|
|
|
67980
68343
|
var Radio = React.forwardRef(function (props, ref) {
|
|
67981
68344
|
var radioRef = React.useRef(null);
|
|
@@ -67999,14 +68362,14 @@ var Radio = React.forwardRef(function (props, ref) {
|
|
|
67999
68362
|
props.onChange(props.value, e);
|
|
68000
68363
|
}
|
|
68001
68364
|
};
|
|
68002
|
-
var className = styles$
|
|
68365
|
+
var className = styles$1z['vitro-control'] + (props.labelPosition === POSITION.LEFT ? CTRL.SPACE + styles$1z['vitro-left-label'] : CTRL.EMPTY) + CTRL.SPACE + (props.isDisabled ? styles$1z['vitro-disabled'] : CTRL.EMPTY) + CTRL.SPACE + (props.className || CTRL.EMPTY);
|
|
68003
68366
|
return React__default.createElement("div", {
|
|
68004
68367
|
className: className
|
|
68005
68368
|
}, props.labelPosition === POSITION.LEFT && React__default.createElement(Label, {
|
|
68006
68369
|
text: props.label,
|
|
68007
|
-
className: styles$
|
|
68370
|
+
className: styles$1z['vitro-label']
|
|
68008
68371
|
}), React__default.createElement("div", {
|
|
68009
|
-
className: styles$
|
|
68372
|
+
className: styles$1z['vitro-radio-content']
|
|
68010
68373
|
}, React__default.createElement("input", {
|
|
68011
68374
|
ref: radioRef,
|
|
68012
68375
|
type: 'radio',
|
|
@@ -68018,7 +68381,7 @@ var Radio = React.forwardRef(function (props, ref) {
|
|
|
68018
68381
|
onChange: onChange
|
|
68019
68382
|
}), props.labelPosition !== POSITION.LEFT && React__default.createElement(Label, {
|
|
68020
68383
|
text: props.label,
|
|
68021
|
-
className: styles$
|
|
68384
|
+
className: styles$1z['vitro-label']
|
|
68022
68385
|
})));
|
|
68023
68386
|
});
|
|
68024
68387
|
|
|
@@ -68032,7 +68395,7 @@ var TARGET$2 = function TARGET() {};
|
|
|
68032
68395
|
TARGET$2.BLANK = '_blank';
|
|
68033
68396
|
TARGET$2.SELF = '_self';
|
|
68034
68397
|
|
|
68035
|
-
var styles$
|
|
68398
|
+
var styles$1A = {"vitro-link-input":"_link-input_vitro-link-input_1FBo8kO","vitro-edit-mode":"_link-input_vitro-edit-mode_2HhUoeO","vitro-read-only":"_link-input_vitro-read-only_AG9_cYJ","vitro-control":"_link-input_vitro-control_1MGkxWi","vitro-edit-button":"_link-input_vitro-edit-button_1PMQnWv"};
|
|
68036
68399
|
|
|
68037
68400
|
var LinkInput = React.forwardRef(function (props, ref) {
|
|
68038
68401
|
var _useState = React.useState(false),
|
|
@@ -68102,7 +68465,7 @@ var LinkInput = React.forwardRef(function (props, ref) {
|
|
|
68102
68465
|
link.remove();
|
|
68103
68466
|
}
|
|
68104
68467
|
};
|
|
68105
|
-
var className = styles$
|
|
68468
|
+
var className = styles$1A['vitro-link-input'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY) + (props.isReadOnly ? CTRL.SPACE + styles$1A['vitro-read-only'] : CTRL.EMPTY) + (isEditMode ? CTRL.SPACE + styles$1A['vitro-edit-mode'] : CTRL.EMPTY);
|
|
68106
68469
|
return React__default.createElement("div", {
|
|
68107
68470
|
className: className
|
|
68108
68471
|
}, React__default.createElement(Tooltip$1, {
|
|
@@ -68121,11 +68484,11 @@ var LinkInput = React.forwardRef(function (props, ref) {
|
|
|
68121
68484
|
isRequired: props.isRequired,
|
|
68122
68485
|
isError: props.isError,
|
|
68123
68486
|
isReadOnly: props.isReadOnly ? true : !isEditMode,
|
|
68124
|
-
className: styles$
|
|
68487
|
+
className: styles$1A['vitro-control']
|
|
68125
68488
|
}))), !props.isReadOnly && !isEditMode && React__default.createElement(ImageButton, {
|
|
68126
68489
|
onClick: onClickEditButton,
|
|
68127
68490
|
tooltipText: localeService.create(LOCALE$b.TOOLTIP_EDIT),
|
|
68128
|
-
className: styles$
|
|
68491
|
+
className: styles$1A['vitro-edit-button']
|
|
68129
68492
|
}));
|
|
68130
68493
|
});
|
|
68131
68494
|
|
|
@@ -68142,7 +68505,7 @@ var LOCALE$c;
|
|
|
68142
68505
|
LOCALE["SETTING_SYSTEM_INFO"] = "systemInformation";
|
|
68143
68506
|
})(LOCALE$c || (LOCALE$c = {}));
|
|
68144
68507
|
|
|
68145
|
-
var styles$
|
|
68508
|
+
var styles$1B = {"vitro-system-exception-dialog":"_system-exception-dialog_vitro-system-exception-dialog_2UVdbuB","vitro-image":"_system-exception-dialog_vitro-image_XG5PD8h","vitro-exception":"_system-exception-dialog_vitro-exception_2bLGF01","vitro-exception-message":"_system-exception-dialog_vitro-exception-message_2S8ZwQP","vitro-label":"_system-exception-dialog_vitro-label_1Nbb_It","vitro-input":"_system-exception-dialog_vitro-input_262484M","vitro-flex":"_system-exception-dialog_vitro-flex_EHka5VC","vitro-settings-list":"_system-exception-dialog_vitro-settings-list_6N3QiPa","vitro-checkbox":"_system-exception-dialog_vitro-checkbox_354NjHR"};
|
|
68146
68509
|
|
|
68147
68510
|
var settingsList = [LOCALE$c.SETTING_SCREENSHOT, LOCALE$c.SETTING_EXCEPTION_TEXT, LOCALE$c.SETTING_USER_NAME, LOCALE$c.SETTING_SYSTEM_INFO];
|
|
68148
68511
|
var SystemExceptionDialog = function SystemExceptionDialog(props) {
|
|
@@ -68192,52 +68555,52 @@ var SystemExceptionDialog = function SystemExceptionDialog(props) {
|
|
|
68192
68555
|
text: props.labelConfirm || localeService.create(LOCALE$c.ACTION_SEND)
|
|
68193
68556
|
}];
|
|
68194
68557
|
var hiddenContent = React__default.createElement("div", {
|
|
68195
|
-
className: styles$
|
|
68558
|
+
className: styles$1B['vitro-settings-list']
|
|
68196
68559
|
}, settingsList.map(function (name, index) {
|
|
68197
68560
|
return React__default.createElement("div", {
|
|
68198
68561
|
key: index,
|
|
68199
|
-
className: styles$
|
|
68562
|
+
className: styles$1B['vitro-flex']
|
|
68200
68563
|
}, React__default.createElement(Checkbox, {
|
|
68201
68564
|
label: CTRL.EMPTY,
|
|
68202
68565
|
name: name,
|
|
68203
68566
|
value: true,
|
|
68204
68567
|
onChange: onChangeSetting,
|
|
68205
|
-
className: styles$
|
|
68568
|
+
className: styles$1B['vitro-checkbox']
|
|
68206
68569
|
}), getCheckboxLabel(name));
|
|
68207
68570
|
}));
|
|
68208
68571
|
return React__default.createElement(Dialog, {
|
|
68209
68572
|
title: localeService.create(LOCALE$c.TITLE),
|
|
68210
68573
|
subtitle: isMobileView ? CTRL.EMPTY : localeService.create(LOCALE$c.SUBTITLE),
|
|
68211
68574
|
image: React__default.createElement("div", {
|
|
68212
|
-
className: styles$
|
|
68575
|
+
className: styles$1B['vitro-image']
|
|
68213
68576
|
}),
|
|
68214
68577
|
onClose: props.onCancel,
|
|
68215
68578
|
buttonList: buttonList,
|
|
68216
68579
|
labelClose: props.labelClose,
|
|
68217
|
-
className: styles$
|
|
68580
|
+
className: styles$1B['vitro-system-exception-dialog'],
|
|
68218
68581
|
hiddenContent: hiddenContent,
|
|
68219
68582
|
zIndex: props.zIndex,
|
|
68220
68583
|
isDismissible: true
|
|
68221
68584
|
}, React__default.createElement(DialogContent, null, isMobileView && React__default.createElement(Label, {
|
|
68222
68585
|
text: localeService.create(LOCALE$c.SUBTITLE),
|
|
68223
|
-
className: styles$
|
|
68586
|
+
className: styles$1B['vitro-label']
|
|
68224
68587
|
}), React__default.createElement(Input, {
|
|
68225
68588
|
ref: inputRef,
|
|
68226
|
-
className: styles$
|
|
68589
|
+
className: styles$1B['vitro-input'],
|
|
68227
68590
|
isMultiline: true
|
|
68228
68591
|
}), props.message && React__default.createElement("div", {
|
|
68229
|
-
className: styles$
|
|
68592
|
+
className: styles$1B['vitro-exception']
|
|
68230
68593
|
}, React__default.createElement(ScrollBar, null, React__default.createElement("div", {
|
|
68231
68594
|
onCut: blockAction,
|
|
68232
68595
|
onPaste: blockAction,
|
|
68233
68596
|
onBeforeInput: blockAction,
|
|
68234
68597
|
spellCheck: false,
|
|
68235
68598
|
contentEditable: true,
|
|
68236
|
-
className: styles$
|
|
68599
|
+
className: styles$1B['vitro-exception-message']
|
|
68237
68600
|
}, props.message)))));
|
|
68238
68601
|
};
|
|
68239
68602
|
|
|
68240
|
-
var styles$
|
|
68603
|
+
var styles$1C = {"vitro-star-button":"_star-button_vitro-star-button_1_mQ_Gq","vitro-hidden":"_star-button_vitro-hidden_oRKUkzt","vitro-active":"_star-button_vitro-active_2UV6u5C"};
|
|
68241
68604
|
|
|
68242
68605
|
var StarButton = function StarButton(props) {
|
|
68243
68606
|
var _useState = React.useState(props.isActive || false),
|
|
@@ -68254,11 +68617,11 @@ var StarButton = function StarButton(props) {
|
|
|
68254
68617
|
};
|
|
68255
68618
|
return React__default.createElement("button", {
|
|
68256
68619
|
onClick: onClick,
|
|
68257
|
-
className: styles$
|
|
68620
|
+
className: styles$1C['vitro-star-button'] + (isActive ? CTRL.SPACE + styles$1C['vitro-active'] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
68258
68621
|
});
|
|
68259
68622
|
};
|
|
68260
68623
|
|
|
68261
|
-
var styles$
|
|
68624
|
+
var styles$1D = {"vitro-item":"_site-item_vitro-item_1eSpRGl","vitro-active":"_site-item_vitro-active_1d0nDLb","vitro-name":"_site-item_vitro-name_141-LTn","vitro-image":"_site-item_vitro-image_3wrW9q4","vitro-default-image":"_site-item_vitro-default-image_fcWWNwv","vitro-hidden":"_site-item_vitro-hidden_d6n2ocz","vitro-mobile-view":"_site-item_vitro-mobile-view_3bXuBr6"};
|
|
68262
68625
|
|
|
68263
68626
|
var SiteItem = function SiteItem(props) {
|
|
68264
68627
|
var _useState = React.useState(props.isStarActive || false),
|
|
@@ -68284,7 +68647,7 @@ var SiteItem = function SiteItem(props) {
|
|
|
68284
68647
|
props.onMouseDown(e);
|
|
68285
68648
|
}
|
|
68286
68649
|
};
|
|
68287
|
-
var className = [styles$
|
|
68650
|
+
var className = [styles$1D['vitro-item'], props.className || CTRL.EMPTY, props.isActive ? styles$1D['vitro-active'] : CTRL.EMPTY, props.isMobileView && styles$1D['vitro-mobile-view']].join(CTRL.SPACE);
|
|
68288
68651
|
return React__default.createElement(FlexBox, {
|
|
68289
68652
|
onClick: props.onClick,
|
|
68290
68653
|
onMouseDown: onMouseDown,
|
|
@@ -68293,19 +68656,19 @@ var SiteItem = function SiteItem(props) {
|
|
|
68293
68656
|
className: className
|
|
68294
68657
|
}, props.imageUrl ? React__default.createElement(Image, {
|
|
68295
68658
|
defaultUrl: props.imageUrl,
|
|
68296
|
-
className: styles$
|
|
68659
|
+
className: styles$1D['vitro-image']
|
|
68297
68660
|
}) : React__default.createElement("div", {
|
|
68298
|
-
className: styles$
|
|
68661
|
+
className: styles$1D['vitro-default-image']
|
|
68299
68662
|
}), React__default.createElement("div", {
|
|
68300
|
-
className: styles$
|
|
68663
|
+
className: styles$1D['vitro-name']
|
|
68301
68664
|
}, props.name), props.onStar && React__default.createElement(StarButton, {
|
|
68302
68665
|
onChange: props.onStar,
|
|
68303
68666
|
isActive: props.isStarActive,
|
|
68304
|
-
className: isShowStar || props.isStarActive ? CTRL.EMPTY : styles$
|
|
68667
|
+
className: isShowStar || props.isStarActive ? CTRL.EMPTY : styles$1D['vitro-hidden']
|
|
68305
68668
|
}));
|
|
68306
68669
|
};
|
|
68307
68670
|
|
|
68308
|
-
var styles$
|
|
68671
|
+
var styles$1E = {"vitro-site-select":"_site-select_vitro-site-select_2irDOFZ","vitro-flex":"_site-select_vitro-flex_15EJnju","vitro-expand":"_site-select_vitro-expand_KKfRtc8","vitro-collapse":"_site-select_vitro-collapse_B0ZjAm-","vitro-site-list":"_site-select_vitro-site-list_1Yt4nLj","vitro-title":"_site-select_vitro-title_2vfT7F5","vitro-search-input":"_site-select_vitro-search-input_UMmv9PP","vitro-root-item":"_site-select_vitro-root-item_f1rGcQ4","vitro-slide-up-panel":"_site-select_vitro-slide-up-panel_U3Xn-UQ","vitro-search-value-list":"_site-select_vitro-search-value-list_3XlFSA6"};
|
|
68309
68672
|
|
|
68310
68673
|
var SiteSelect = function SiteSelect(props) {
|
|
68311
68674
|
var _useState = React.useState(props.itemList),
|
|
@@ -68408,8 +68771,8 @@ var SiteSelect = function SiteSelect(props) {
|
|
|
68408
68771
|
itemList: visibleItemList,
|
|
68409
68772
|
valueTemplate: getItem,
|
|
68410
68773
|
filterValueTemplate: filterValueTemplate,
|
|
68411
|
-
className: styles$
|
|
68412
|
-
inputClassName: styles$
|
|
68774
|
+
className: styles$1E['vitro-search-value-list'],
|
|
68775
|
+
inputClassName: styles$1E['vitro-search-input']
|
|
68413
68776
|
}, React__default.createElement(SiteItem, Object.assign({}, props.rootItem, {
|
|
68414
68777
|
isMobileView: isMobileView,
|
|
68415
68778
|
onClick: function onClick() {
|
|
@@ -68418,49 +68781,49 @@ var SiteSelect = function SiteSelect(props) {
|
|
|
68418
68781
|
onMouseDown: function onMouseDown(e) {
|
|
68419
68782
|
return onItemMouseDown(props.rootItem, e);
|
|
68420
68783
|
},
|
|
68421
|
-
className: styles$
|
|
68784
|
+
className: styles$1E['vitro-root-item']
|
|
68422
68785
|
})), React__default.createElement(FlexBox, {
|
|
68423
|
-
className: styles$
|
|
68786
|
+
className: styles$1E['vitro-title']
|
|
68424
68787
|
}, props.title, props.onStarChange && React__default.createElement(StarButton, {
|
|
68425
68788
|
onChange: filterStarActive
|
|
68426
68789
|
})));
|
|
68427
68790
|
return React__default.createElement("div", {
|
|
68428
|
-
className: styles$
|
|
68791
|
+
className: styles$1E['vitro-site-select']
|
|
68429
68792
|
}, React__default.createElement(FlexBox, {
|
|
68430
|
-
className: styles$
|
|
68793
|
+
className: styles$1E['vitro-flex'],
|
|
68431
68794
|
ref: flexBoxRef
|
|
68432
68795
|
}, React__default.createElement("h2", {
|
|
68433
68796
|
onClick: onClick
|
|
68434
68797
|
}, props.activeItem.name), React__default.createElement(ImageButton, {
|
|
68435
|
-
className: isExpanded ? styles$
|
|
68798
|
+
className: isExpanded ? styles$1E['vitro-collapse'] : styles$1E['vitro-expand'],
|
|
68436
68799
|
onClick: onClick
|
|
68437
68800
|
})), isMobileView && React__default.createElement(SlideUpPanel, {
|
|
68438
|
-
className: styles$
|
|
68801
|
+
className: styles$1E['vitro-slide-up-panel'],
|
|
68439
68802
|
isShow: isExpanded,
|
|
68440
68803
|
onClose: function onClose() {
|
|
68441
68804
|
return setIsExpanded(false);
|
|
68442
68805
|
}
|
|
68443
68806
|
}, content), !isMobileView && isExpanded && React__default.createElement("div", {
|
|
68444
|
-
className: styles$
|
|
68807
|
+
className: styles$1E['vitro-site-list'],
|
|
68445
68808
|
ref: listRef
|
|
68446
68809
|
}, content));
|
|
68447
68810
|
};
|
|
68448
68811
|
|
|
68449
|
-
var styles$
|
|
68812
|
+
var styles$1F = {"vitro-bottom":"_bottom-align-control-group_vitro-bottom_3-a5nWD"};
|
|
68450
68813
|
|
|
68451
68814
|
var BottomAlignControlGroup = function BottomAlignControlGroup(props) {
|
|
68452
68815
|
return React__default.createElement("div", {
|
|
68453
|
-
className: styles$
|
|
68816
|
+
className: styles$1F['vitro-bottom']
|
|
68454
68817
|
}, props.children);
|
|
68455
68818
|
};
|
|
68456
68819
|
|
|
68457
|
-
var styles$
|
|
68820
|
+
var styles$1G = {"vitro-linear-progress":"_linear-progress_vitro-linear-progress_1i4VVyb","vitro-bar":"_linear-progress_vitro-bar_2rwmbp3","progress":"_linear-progress_progress_11DTdlB"};
|
|
68458
68821
|
|
|
68459
68822
|
var LinearProgress = function LinearProgress(props) {
|
|
68460
68823
|
return React__default.createElement("div", {
|
|
68461
|
-
className: styles$
|
|
68824
|
+
className: styles$1G['vitro-linear-progress'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
68462
68825
|
}, React__default.createElement("div", {
|
|
68463
|
-
className: styles$
|
|
68826
|
+
className: styles$1G['vitro-bar']
|
|
68464
68827
|
}));
|
|
68465
68828
|
};
|
|
68466
68829
|
|
|
@@ -82810,7 +83173,7 @@ var Thumbnail = function Thumbnail(props) {
|
|
|
82810
83173
|
|
|
82811
83174
|
var w$a = window;
|
|
82812
83175
|
var CSS_CLASS_SIDEBAR_CONTENT$1 = 'sidebar-content';
|
|
82813
|
-
var CSS_CLASS_ACTIVE$
|
|
83176
|
+
var CSS_CLASS_ACTIVE$2 = 'vitro-active';
|
|
82814
83177
|
var CSS_CLASS_ISSUE_TILE$1 = 'vitro-issue-tile';
|
|
82815
83178
|
var CSS_CLASS_ISSUE_LIST = 'vitro-issue-list';
|
|
82816
83179
|
var ID_FILE_VERSION_SELECT$2 = 'fileVersionSelect';
|
|
@@ -82848,7 +83211,7 @@ var Viewer$2 = function Viewer(props) {
|
|
|
82848
83211
|
var _initIssueList = function _initIssueList(context, isUpdate) {
|
|
82849
83212
|
var sidebar = document.getElementsByClassName(CSS_CLASS_SIDEBAR_CONTENT$1)[0];
|
|
82850
83213
|
if (sidebar) {
|
|
82851
|
-
$(CTRL.DOT + CSS_CLASS_ISSUE_LIST).children().removeClass(CSS_CLASS_ACTIVE$
|
|
83214
|
+
$(CTRL.DOT + CSS_CLASS_ISSUE_LIST).children().removeClass(CSS_CLASS_ACTIVE$2);
|
|
82852
83215
|
if (context.issueList && !isUpdate) {
|
|
82853
83216
|
renderIssueList(context, context.issueList, sidebar);
|
|
82854
83217
|
} else {
|
|
@@ -82889,9 +83252,9 @@ var Viewer$2 = function Viewer(props) {
|
|
|
82889
83252
|
}
|
|
82890
83253
|
};
|
|
82891
83254
|
var selectIssue = function selectIssue(id, isScrollIntoView) {
|
|
82892
|
-
$(CTRL.DOT + CSS_CLASS_ISSUE_LIST).children().removeClass(CSS_CLASS_ACTIVE$
|
|
83255
|
+
$(CTRL.DOT + CSS_CLASS_ISSUE_LIST).children().removeClass(CSS_CLASS_ACTIVE$2);
|
|
82893
83256
|
var issueTile = $(CTRL.SHARP + CSS_CLASS_ISSUE_TILE$1 + CTRL.DASH + id);
|
|
82894
|
-
issueTile.addClass(CSS_CLASS_ACTIVE$
|
|
83257
|
+
issueTile.addClass(CSS_CLASS_ACTIVE$2);
|
|
82895
83258
|
if (isScrollIntoView && issueTile[0]) {
|
|
82896
83259
|
issueTile[0].scrollIntoView();
|
|
82897
83260
|
}
|
|
@@ -82996,7 +83359,7 @@ var DxfViewer = function DxfViewer(props) {
|
|
|
82996
83359
|
});
|
|
82997
83360
|
};
|
|
82998
83361
|
|
|
82999
|
-
var styles$
|
|
83362
|
+
var styles$1H = {"vitro-select":"_select_vitro-select_EObExkL","vitro-active":"_select_vitro-active_3I2oZ9Y","vitro-label":"_select_vitro-label_1sD79dR","vitro-list-container":"_select_vitro-list-container_1iaPtG5","vitro-item":"_select_vitro-item_3Q88bWt"};
|
|
83000
83363
|
|
|
83001
83364
|
var Select = function Select(props) {
|
|
83002
83365
|
var _useState = React.useState(null),
|
|
@@ -83041,11 +83404,11 @@ var Select = function Select(props) {
|
|
|
83041
83404
|
};
|
|
83042
83405
|
var defaultItemTemplate = function defaultItemTemplate(props) {
|
|
83043
83406
|
return React__default.createElement("div", {
|
|
83044
|
-
className: styles$
|
|
83407
|
+
className: styles$1H['vitro-item']
|
|
83045
83408
|
}, props.text);
|
|
83046
83409
|
};
|
|
83047
83410
|
var itemTemplate = props.itemTemplate ? props.itemTemplate : defaultItemTemplate;
|
|
83048
|
-
var className = [styles$
|
|
83411
|
+
var className = [styles$1H['vitro-select'], isExpanded ? styles$1H['vitro-active'] : CTRL.EMPTY, props.className || CTRL.EMPTY].join(CTRL.SPACE);
|
|
83049
83412
|
if (!props.itemList.length || !value) {
|
|
83050
83413
|
return null;
|
|
83051
83414
|
}
|
|
@@ -83058,9 +83421,9 @@ var Select = function Select(props) {
|
|
|
83058
83421
|
ref: flexBoxRef
|
|
83059
83422
|
}, props.label && React__default.createElement(Label, {
|
|
83060
83423
|
text: props.label,
|
|
83061
|
-
className: styles$
|
|
83424
|
+
className: styles$1H['vitro-label']
|
|
83062
83425
|
}), React__default.createElement(itemTemplate, value), React__default.createElement("div", {
|
|
83063
|
-
className: styles$
|
|
83426
|
+
className: styles$1H['vitro-list-container'],
|
|
83064
83427
|
ref: listRef
|
|
83065
83428
|
}, React__default.createElement(List, {
|
|
83066
83429
|
itemList: props.itemList,
|
|
@@ -83069,12 +83432,561 @@ var Select = function Select(props) {
|
|
|
83069
83432
|
})));
|
|
83070
83433
|
};
|
|
83071
83434
|
|
|
83435
|
+
var styles$1I = {"vitro-switch":"_switch_vitro-switch_1noCcra","vitro-slider":"_switch_vitro-slider_3wesxda","vitro-active":"_switch_vitro-active_3LJI9TW"};
|
|
83436
|
+
|
|
83437
|
+
var Switch = function Switch(props) {
|
|
83438
|
+
var _useState = React.useState(props.value ? true : false),
|
|
83439
|
+
value = _useState[0],
|
|
83440
|
+
setValue = _useState[1];
|
|
83441
|
+
React.useEffect(function () {
|
|
83442
|
+
setValue(props.value ? true : false);
|
|
83443
|
+
}, [props.value]);
|
|
83444
|
+
var onChange = function onChange() {
|
|
83445
|
+
props.onChange && props.onChange(!value, props.name);
|
|
83446
|
+
setValue(!value);
|
|
83447
|
+
};
|
|
83448
|
+
return React__default.createElement("label", {
|
|
83449
|
+
className: styles$1I['vitro-switch'] + (value ? CTRL.SPACE + styles$1I['vitro-active'] : CTRL.EMPTY)
|
|
83450
|
+
}, React__default.createElement("input", {
|
|
83451
|
+
checked: value,
|
|
83452
|
+
type: 'checkbox',
|
|
83453
|
+
name: props.name,
|
|
83454
|
+
onChange: onChange,
|
|
83455
|
+
disabled: props.isDisabled
|
|
83456
|
+
}), React__default.createElement("span", {
|
|
83457
|
+
className: styles$1I['vitro-slider']
|
|
83458
|
+
}));
|
|
83459
|
+
};
|
|
83460
|
+
|
|
83461
|
+
var styles$1J = {"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-dropdown-button":"_editable-list_vitro-dropdown-button_vPtNQxA"};
|
|
83462
|
+
|
|
83463
|
+
var EditableItem = function EditableItem(props) {
|
|
83464
|
+
var _useState = React.useState(props.text),
|
|
83465
|
+
text = _useState[0],
|
|
83466
|
+
setText = _useState[1];
|
|
83467
|
+
var _useState2 = React.useState(false),
|
|
83468
|
+
isHover = _useState2[0],
|
|
83469
|
+
setIsHover = _useState2[1];
|
|
83470
|
+
React.useEffect(function () {
|
|
83471
|
+
setText(props.text);
|
|
83472
|
+
}, [props.text]);
|
|
83473
|
+
React.useEffect(function () {
|
|
83474
|
+
setIsHover(props.isActive);
|
|
83475
|
+
}, [props.isActive]);
|
|
83476
|
+
var onChange = function onChange(e) {
|
|
83477
|
+
setText(e.target.value);
|
|
83478
|
+
props.onChange(e.target.value);
|
|
83479
|
+
};
|
|
83480
|
+
var onBlur = function onBlur(e) {
|
|
83481
|
+
props.onBlur(e.target.value);
|
|
83482
|
+
};
|
|
83483
|
+
var onToggleDropdownButton = function onToggleDropdownButton(state, e) {
|
|
83484
|
+
e.originalEvent.stopPropagation();
|
|
83485
|
+
if (props.onToggleDropdown) {
|
|
83486
|
+
props.onToggleDropdown(state);
|
|
83487
|
+
}
|
|
83488
|
+
};
|
|
83489
|
+
return React__default.createElement(FlexBox, {
|
|
83490
|
+
onMouseOver: function onMouseOver() {
|
|
83491
|
+
return setIsHover(true);
|
|
83492
|
+
},
|
|
83493
|
+
onMouseLeave: function onMouseLeave() {
|
|
83494
|
+
return setIsHover(props.isActive);
|
|
83495
|
+
},
|
|
83496
|
+
className: styles$1J['vitro-editable-item'] + (props.isActive ? CTRL.SPACE + styles$1J['vitro-active'] : CTRL.EMPTY)
|
|
83497
|
+
}, props.isEditMode ? React__default.createElement("input", {
|
|
83498
|
+
value: text,
|
|
83499
|
+
onChange: onChange,
|
|
83500
|
+
onBlur: onBlur,
|
|
83501
|
+
autoFocus: true
|
|
83502
|
+
}) : React__default.createElement(Label, {
|
|
83503
|
+
text: props.text
|
|
83504
|
+
}), React__default.createElement("div", {
|
|
83505
|
+
className: styles$1J['vitro-button-container']
|
|
83506
|
+
}, isHover && props.dropdownItemList ? React__default.createElement(DropdownButton, {
|
|
83507
|
+
itemList: props.dropdownItemList,
|
|
83508
|
+
onToggle: onToggleDropdownButton,
|
|
83509
|
+
isShow: props.isDropdownActive,
|
|
83510
|
+
className: styles$1J['vitro-dropdown-button']
|
|
83511
|
+
}) : props.button));
|
|
83512
|
+
};
|
|
83513
|
+
|
|
83514
|
+
var EditableList = function EditableList(props) {
|
|
83515
|
+
var _useState = React.useState(),
|
|
83516
|
+
editedItem = _useState[0],
|
|
83517
|
+
setEditedItem = _useState[1];
|
|
83518
|
+
var _useState2 = React.useState(),
|
|
83519
|
+
activeItem = _useState2[0],
|
|
83520
|
+
setActiveItem = _useState2[1];
|
|
83521
|
+
var _useState3 = React.useState(),
|
|
83522
|
+
activeDropdownItemId = _useState3[0],
|
|
83523
|
+
setActiveDropdownItemId = _useState3[1];
|
|
83524
|
+
var changedFieldValueMap = React.useMemo(function () {
|
|
83525
|
+
return new Map();
|
|
83526
|
+
}, []);
|
|
83527
|
+
React.useEffect(function () {
|
|
83528
|
+
setEditedItem(props.editedItemId);
|
|
83529
|
+
if (props.editedItemId) {
|
|
83530
|
+
if (props.onStartEdit) {
|
|
83531
|
+
props.onStartEdit(props.itemList.find(function (val) {
|
|
83532
|
+
return val.id === props.editedItemId;
|
|
83533
|
+
}));
|
|
83534
|
+
}
|
|
83535
|
+
setActiveItem(props.editedItemId);
|
|
83536
|
+
}
|
|
83537
|
+
}, [props.editedItemId]);
|
|
83538
|
+
React.useEffect(function () {
|
|
83539
|
+
if (!props.newItem) {
|
|
83540
|
+
setActiveItem(props.activeItemId);
|
|
83541
|
+
}
|
|
83542
|
+
}, [props.newItem]);
|
|
83543
|
+
React.useEffect(function () {
|
|
83544
|
+
changedFieldValueMap.clear();
|
|
83545
|
+
setActiveItem(props.activeItemId);
|
|
83546
|
+
}, [props.activeItemId]);
|
|
83547
|
+
React.useEffect(function () {
|
|
83548
|
+
changedFieldValueMap.clear();
|
|
83549
|
+
}, [props.itemList]);
|
|
83550
|
+
var onClick = function onClick(item) {
|
|
83551
|
+
setActiveItem(item.id);
|
|
83552
|
+
if (item.id !== editedItem && item.id !== activeItem) {
|
|
83553
|
+
setEditedItem(null);
|
|
83554
|
+
if (props.onClick) {
|
|
83555
|
+
props.onClick(item);
|
|
83556
|
+
}
|
|
83557
|
+
}
|
|
83558
|
+
};
|
|
83559
|
+
var _onChange = function onChange(item, value) {
|
|
83560
|
+
changedFieldValueMap.set(item.id, value);
|
|
83561
|
+
if (props.onChange) {
|
|
83562
|
+
props.onChange(item, value);
|
|
83563
|
+
}
|
|
83564
|
+
};
|
|
83565
|
+
var _onBlur = function onBlur(item, value) {
|
|
83566
|
+
setEditedItem(undefined);
|
|
83567
|
+
if (props.onEndEdit) {
|
|
83568
|
+
props.onEndEdit(item, value);
|
|
83569
|
+
}
|
|
83570
|
+
};
|
|
83571
|
+
var onCreate = function onCreate() {
|
|
83572
|
+
setEditedItem(undefined);
|
|
83573
|
+
setActiveItem(undefined);
|
|
83574
|
+
if (props.onCreate) {
|
|
83575
|
+
props.onCreate();
|
|
83576
|
+
}
|
|
83577
|
+
};
|
|
83578
|
+
var _onToggleDropdown = function onToggleDropdown(item, state) {
|
|
83579
|
+
if (state) {
|
|
83580
|
+
setActiveDropdownItemId(item.id);
|
|
83581
|
+
onClick(item);
|
|
83582
|
+
} else {
|
|
83583
|
+
setActiveDropdownItemId(undefined);
|
|
83584
|
+
}
|
|
83585
|
+
};
|
|
83586
|
+
return React__default.createElement(FlexBox, {
|
|
83587
|
+
className: styles$1J['vitro-editable-list'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
83588
|
+
}, React__default.createElement(FlexBox, {
|
|
83589
|
+
className: styles$1J['vitro-header']
|
|
83590
|
+
}, props.title && React__default.createElement(Heading, {
|
|
83591
|
+
tag: TAG.H3,
|
|
83592
|
+
text: props.title
|
|
83593
|
+
}), props.isShowCreateButton && React__default.createElement(Tooltip$1, {
|
|
83594
|
+
text: props.createButtonTooltip || CTRL.EMPTY
|
|
83595
|
+
}, React__default.createElement(ImageButton, {
|
|
83596
|
+
onClick: onCreate,
|
|
83597
|
+
className: styles$1J['vitro-create-button']
|
|
83598
|
+
}))), React__default.createElement(List, {
|
|
83599
|
+
itemList: props.itemList,
|
|
83600
|
+
itemTemplate: function itemTemplate(item) {
|
|
83601
|
+
return React__default.createElement(EditableItem, Object.assign({}, item, {
|
|
83602
|
+
text: changedFieldValueMap.get(item.id) || item.text,
|
|
83603
|
+
onChange: function onChange(value) {
|
|
83604
|
+
return _onChange(item, value);
|
|
83605
|
+
},
|
|
83606
|
+
onBlur: function onBlur(value) {
|
|
83607
|
+
return _onBlur(item, value);
|
|
83608
|
+
},
|
|
83609
|
+
onToggleDropdown: function onToggleDropdown(state) {
|
|
83610
|
+
return _onToggleDropdown(item, state);
|
|
83611
|
+
},
|
|
83612
|
+
isActive: activeItem === item.id,
|
|
83613
|
+
isEditMode: editedItem === item.id,
|
|
83614
|
+
isDropdownActive: activeDropdownItemId === item.id,
|
|
83615
|
+
button: props.getItemButton ? props.getItemButton(item) : null
|
|
83616
|
+
}));
|
|
83617
|
+
},
|
|
83618
|
+
onClick: onClick
|
|
83619
|
+
}), props.newItem && React__default.createElement(EditableItem, Object.assign({}, props.newItem, {
|
|
83620
|
+
onChange: function onChange(value) {
|
|
83621
|
+
return props.newItem && _onChange(props.newItem, value);
|
|
83622
|
+
},
|
|
83623
|
+
onBlur: function onBlur(value) {
|
|
83624
|
+
return props.newItem && _onBlur(props.newItem, value);
|
|
83625
|
+
},
|
|
83626
|
+
isActive: true,
|
|
83627
|
+
isEditMode: true
|
|
83628
|
+
})));
|
|
83629
|
+
};
|
|
83630
|
+
|
|
83631
|
+
var styles$1K = {"vitro-reorderable-list":"_reorderable-list_vitro-reorderable-list_3Vinbji","vitro-reorderable-item":"_reorderable-list_vitro-reorderable-item_2gH3muk","vitro-drag-button":"_reorderable-list_vitro-drag-button_2gzxwKx","vitro-dragged-item":"_reorderable-list_vitro-dragged-item_fft3ham","vitro-drop-zone":"_reorderable-list_vitro-drop-zone_15pbLJE","vitro-hidden":"_reorderable-list_vitro-hidden_2ZpMCYZ"};
|
|
83632
|
+
|
|
83633
|
+
var ReorderableListContent = function ReorderableListContent(props) {
|
|
83634
|
+
return React__default.createElement(React__default.Fragment, null, props.draggedIndex !== null && React__default.createElement("div", {
|
|
83635
|
+
style: {
|
|
83636
|
+
left: props.position[0] + UNIT.PX,
|
|
83637
|
+
top: props.position[1] + UNIT.PX,
|
|
83638
|
+
width: props.draggedItemWidth ? props.draggedItemWidth + UNIT.PX : undefined
|
|
83639
|
+
},
|
|
83640
|
+
className: styles$1K['vitro-dragged-item']
|
|
83641
|
+
}, props.getItem(_extends({}, props.itemList[props.draggedIndex], {
|
|
83642
|
+
index: -1
|
|
83643
|
+
}), false)), React__default.createElement("li", {
|
|
83644
|
+
style: {
|
|
83645
|
+
width: props.draggedItemWidth ? props.draggedItemWidth + UNIT.PX : undefined
|
|
83646
|
+
}
|
|
83647
|
+
}, React__default.createElement("div", {
|
|
83648
|
+
className: styles$1K['vitro-drop-zone'] + (props.draggedIndex === null || props.activeDropZoneIndex !== 0 ? CTRL.SPACE + styles$1K['vitro-hidden'] : CTRL.EMPTY)
|
|
83649
|
+
})), props.itemList && props.itemList.map(function (item, index) {
|
|
83650
|
+
return React__default.createElement("li", {
|
|
83651
|
+
key: index,
|
|
83652
|
+
className: styles$1K['vitro-reorderable-item'] + (props.itemClassName ? CTRL.SPACE + props.itemClassName : CTRL.EMPTY)
|
|
83653
|
+
}, props.getItem(_extends({}, item, {
|
|
83654
|
+
index: index
|
|
83655
|
+
})));
|
|
83656
|
+
}));
|
|
83657
|
+
};
|
|
83658
|
+
|
|
83659
|
+
var ReorderableItem = function ReorderableItem(props) {
|
|
83660
|
+
var ref = React.useRef(null);
|
|
83661
|
+
var buttonRef = React.useRef(null);
|
|
83662
|
+
var onMouseDown = function onMouseDown(e) {
|
|
83663
|
+
e.preventDefault();
|
|
83664
|
+
var width = 0;
|
|
83665
|
+
if (ref.current && buttonRef.current) {
|
|
83666
|
+
var _ref$current, _buttonRef$current;
|
|
83667
|
+
width = ((_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.getBoundingClientRect().width) - ((_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 ? void 0 : _buttonRef$current.getBoundingClientRect().width);
|
|
83668
|
+
}
|
|
83669
|
+
props.onMouseDown(e, props.index, width);
|
|
83670
|
+
};
|
|
83671
|
+
if (props.isDragged) {
|
|
83672
|
+
return null;
|
|
83673
|
+
}
|
|
83674
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(FlexBox, {
|
|
83675
|
+
ref: ref,
|
|
83676
|
+
key: props.index,
|
|
83677
|
+
className: props.className
|
|
83678
|
+
}, React__default.createElement(ImageButton, {
|
|
83679
|
+
ref: buttonRef,
|
|
83680
|
+
onClick: function onClick() {},
|
|
83681
|
+
onMouseDown: onMouseDown,
|
|
83682
|
+
className: styles$1K['vitro-drag-button']
|
|
83683
|
+
}), props.children), props.isDropAllowed !== false && React__default.createElement("div", {
|
|
83684
|
+
style: {
|
|
83685
|
+
width: props.draggedItemWidth ? props.draggedItemWidth - 16 + UNIT.PX : undefined
|
|
83686
|
+
},
|
|
83687
|
+
className: styles$1K['vitro-drop-zone'] + (props.isDropZoneActive ? CTRL.EMPTY : CTRL.SPACE + styles$1K['vitro-hidden'])
|
|
83688
|
+
}));
|
|
83689
|
+
};
|
|
83690
|
+
|
|
83691
|
+
var ReorderableList = function ReorderableList(props) {
|
|
83692
|
+
var _useState = React.useState([]),
|
|
83693
|
+
itemList = _useState[0],
|
|
83694
|
+
setItemList = _useState[1];
|
|
83695
|
+
var _useState2 = React.useState(null),
|
|
83696
|
+
draggedIndex = _useState2[0],
|
|
83697
|
+
setDraggedIndex = _useState2[1];
|
|
83698
|
+
var _useState3 = React.useState([0, 0]),
|
|
83699
|
+
position = _useState3[0],
|
|
83700
|
+
setPosition = _useState3[1];
|
|
83701
|
+
var _useState4 = React.useState(0),
|
|
83702
|
+
activeDropZoneIndex = _useState4[0],
|
|
83703
|
+
setActiveDropZoneIndex = _useState4[1];
|
|
83704
|
+
var _useState5 = React.useState(0),
|
|
83705
|
+
draggedItemWidth = _useState5[0],
|
|
83706
|
+
setDraggedItemWidth = _useState5[1];
|
|
83707
|
+
var startPosition = React.useRef([0, 0]);
|
|
83708
|
+
var isDragged = React.useRef(false);
|
|
83709
|
+
React.useEffect(function () {
|
|
83710
|
+
var onMouseMove = function onMouseMove(e) {
|
|
83711
|
+
if (isDragged.current) {
|
|
83712
|
+
setPosition([e.x - startPosition.current[0], e.y - startPosition.current[1]]);
|
|
83713
|
+
}
|
|
83714
|
+
};
|
|
83715
|
+
document.addEventListener(exports.EVENT.MOUSEMOVE, onMouseMove);
|
|
83716
|
+
return function () {
|
|
83717
|
+
return document.removeEventListener(exports.EVENT.MOUSEMOVE, onMouseMove);
|
|
83718
|
+
};
|
|
83719
|
+
}, []);
|
|
83720
|
+
React.useEffect(function () {
|
|
83721
|
+
var onMouseUp = function onMouseUp(e) {
|
|
83722
|
+
if (draggedIndex !== null) {
|
|
83723
|
+
e.preventDefault();
|
|
83724
|
+
isDragged.current = false;
|
|
83725
|
+
setDraggedIndex(null);
|
|
83726
|
+
var reorderedList = reorderList(itemList, draggedIndex, activeDropZoneIndex).map(function (val, index) {
|
|
83727
|
+
return _extends({}, val, {
|
|
83728
|
+
index: index
|
|
83729
|
+
});
|
|
83730
|
+
});
|
|
83731
|
+
setItemList(reorderedList);
|
|
83732
|
+
if (props.onChange) {
|
|
83733
|
+
props.onChange(reorderedList);
|
|
83734
|
+
}
|
|
83735
|
+
}
|
|
83736
|
+
};
|
|
83737
|
+
document.addEventListener(exports.EVENT.MOUSEUP, onMouseUp);
|
|
83738
|
+
return function () {
|
|
83739
|
+
return document.removeEventListener(exports.EVENT.MOUSEUP, onMouseUp);
|
|
83740
|
+
};
|
|
83741
|
+
});
|
|
83742
|
+
React.useEffect(function () {
|
|
83743
|
+
if (draggedIndex !== null) {
|
|
83744
|
+
var elements = Array.from(document.getElementsByClassName(styles$1K['vitro-drop-zone']));
|
|
83745
|
+
var positions = elements.map(function (e) {
|
|
83746
|
+
return e.getBoundingClientRect().top - startPosition.current[1];
|
|
83747
|
+
});
|
|
83748
|
+
var absDifferences = positions.map(function (v) {
|
|
83749
|
+
return Math.abs(v - position[1]);
|
|
83750
|
+
});
|
|
83751
|
+
var result = absDifferences.indexOf(Math.min.apply(Math, absDifferences));
|
|
83752
|
+
if (result > draggedIndex) {
|
|
83753
|
+
result += 1;
|
|
83754
|
+
}
|
|
83755
|
+
setActiveDropZoneIndex(result);
|
|
83756
|
+
}
|
|
83757
|
+
}, [draggedIndex, position]);
|
|
83758
|
+
React.useEffect(function () {
|
|
83759
|
+
setItemList(props.itemList.sort(sort));
|
|
83760
|
+
}, [props.itemList]);
|
|
83761
|
+
var sort = function sort(a, b) {
|
|
83762
|
+
if (a.index < b.index) {
|
|
83763
|
+
return -1;
|
|
83764
|
+
}
|
|
83765
|
+
if (a.index > b.index) {
|
|
83766
|
+
return 1;
|
|
83767
|
+
}
|
|
83768
|
+
return 0;
|
|
83769
|
+
};
|
|
83770
|
+
var onMouseDown = function onMouseDown(e, index, width) {
|
|
83771
|
+
var _e$target;
|
|
83772
|
+
isDragged.current = true;
|
|
83773
|
+
var parentRect = (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.offsetParent.getBoundingClientRect();
|
|
83774
|
+
startPosition.current = [parentRect.left, parentRect.top];
|
|
83775
|
+
setPosition([e.clientX - startPosition.current[0], e.clientY - startPosition.current[1]]);
|
|
83776
|
+
setActiveDropZoneIndex(index);
|
|
83777
|
+
setDraggedIndex(index);
|
|
83778
|
+
setDraggedItemWidth(width);
|
|
83779
|
+
};
|
|
83780
|
+
var reorderForward = function reorderForward(list, start, end) {
|
|
83781
|
+
var temp = list[start];
|
|
83782
|
+
for (var i = start; i < end; i++) {
|
|
83783
|
+
if (i + 1 < list.length) {
|
|
83784
|
+
list[i] = list[i + 1];
|
|
83785
|
+
}
|
|
83786
|
+
}
|
|
83787
|
+
list[end - 1] = temp;
|
|
83788
|
+
return list;
|
|
83789
|
+
};
|
|
83790
|
+
var reorderBackward = function reorderBackward(list, start, end) {
|
|
83791
|
+
var temp = list[start];
|
|
83792
|
+
for (var i = start; i > end; i--) {
|
|
83793
|
+
if (i > 0) {
|
|
83794
|
+
list[i] = list[i - 1];
|
|
83795
|
+
}
|
|
83796
|
+
}
|
|
83797
|
+
list[end] = temp;
|
|
83798
|
+
return list;
|
|
83799
|
+
};
|
|
83800
|
+
var reorderList = function reorderList(list, startIndex, endIndex) {
|
|
83801
|
+
if (startIndex < endIndex) return reorderForward(list.slice(), startIndex, endIndex);else if (startIndex > endIndex) return reorderBackward(list.slice(), startIndex, endIndex);else return list;
|
|
83802
|
+
};
|
|
83803
|
+
var getItem = function getItem(item, isDropAllowed) {
|
|
83804
|
+
if (item) {
|
|
83805
|
+
return React__default.createElement(ReorderableItem, Object.assign({}, item, {
|
|
83806
|
+
isDropAllowed: isDropAllowed,
|
|
83807
|
+
onMouseDown: onMouseDown,
|
|
83808
|
+
draggedItemWidth: draggedItemWidth,
|
|
83809
|
+
isDropZoneActive: !(draggedIndex === null || activeDropZoneIndex !== item.index + 1),
|
|
83810
|
+
isDragged: draggedIndex === item.index
|
|
83811
|
+
}), React__default.createElement(props.itemTemplate, _extends({}, item)));
|
|
83812
|
+
}
|
|
83813
|
+
return null;
|
|
83814
|
+
};
|
|
83815
|
+
if (props.isCustomContainer) {
|
|
83816
|
+
return React__default.createElement(ReorderableListContent, {
|
|
83817
|
+
itemList: itemList,
|
|
83818
|
+
draggedIndex: draggedIndex,
|
|
83819
|
+
activeDropZoneIndex: activeDropZoneIndex,
|
|
83820
|
+
position: position,
|
|
83821
|
+
getItem: getItem,
|
|
83822
|
+
draggedItemWidth: draggedItemWidth,
|
|
83823
|
+
itemClassName: props.itemClassName
|
|
83824
|
+
});
|
|
83825
|
+
}
|
|
83826
|
+
return React__default.createElement("ul", {
|
|
83827
|
+
className: styles$1K['vitro-list'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
83828
|
+
}, React__default.createElement(ReorderableListContent, {
|
|
83829
|
+
itemList: itemList,
|
|
83830
|
+
draggedIndex: draggedIndex,
|
|
83831
|
+
activeDropZoneIndex: activeDropZoneIndex,
|
|
83832
|
+
position: position,
|
|
83833
|
+
getItem: getItem,
|
|
83834
|
+
draggedItemWidth: draggedItemWidth,
|
|
83835
|
+
itemClassName: props.itemClassName
|
|
83836
|
+
}));
|
|
83837
|
+
};
|
|
83838
|
+
|
|
83839
|
+
var styles$1L = {"vitro-checkbox-reorderable-list":"_checkbox-reorderable-list_vitro-checkbox-reorderable-list_3VUoUyI","vitro-reorderable-item":"_checkbox-reorderable-list_vitro-reorderable-item__ZSM4NT","vitro-checkbox":"_checkbox-reorderable-list_vitro-checkbox_3FVD6mG"};
|
|
83840
|
+
|
|
83841
|
+
var CheckboxReorderableList = function CheckboxReorderableList(props) {
|
|
83842
|
+
var _useState = React.useState([]),
|
|
83843
|
+
itemList = _useState[0],
|
|
83844
|
+
setItemList = _useState[1];
|
|
83845
|
+
var _useState2 = React.useState([]),
|
|
83846
|
+
reorderableItemList = _useState2[0],
|
|
83847
|
+
setReorderableItemList = _useState2[1];
|
|
83848
|
+
var listRef = React.useRef(null);
|
|
83849
|
+
React.useEffect(function () {
|
|
83850
|
+
if (props.isAllSelected === true) {
|
|
83851
|
+
setItemList([]);
|
|
83852
|
+
setReorderableItemList(props.itemList);
|
|
83853
|
+
} else if (props.isAllSelected === false) {
|
|
83854
|
+
setItemList(props.itemList.sort(sortByName));
|
|
83855
|
+
setReorderableItemList([]);
|
|
83856
|
+
} else {
|
|
83857
|
+
updateItemList();
|
|
83858
|
+
}
|
|
83859
|
+
}, [props.itemList, props.isAllSelected]);
|
|
83860
|
+
var updateItemList = function updateItemList() {
|
|
83861
|
+
var checkedItemList = [];
|
|
83862
|
+
var uncheckedItemList = [];
|
|
83863
|
+
props.itemList.map(function (val) {
|
|
83864
|
+
if (val.value) {
|
|
83865
|
+
checkedItemList.push(val);
|
|
83866
|
+
} else {
|
|
83867
|
+
uncheckedItemList.push(val);
|
|
83868
|
+
}
|
|
83869
|
+
});
|
|
83870
|
+
setReorderableItemList(checkedItemList);
|
|
83871
|
+
setItemList(uncheckedItemList.sort(sortByName));
|
|
83872
|
+
};
|
|
83873
|
+
var _onChange = function onChange(value, id) {
|
|
83874
|
+
var changedItem = props.itemList.find(function (val) {
|
|
83875
|
+
return val.id === id;
|
|
83876
|
+
});
|
|
83877
|
+
if (changedItem) {
|
|
83878
|
+
var changedItemList;
|
|
83879
|
+
var item = _extends({}, changedItem, {
|
|
83880
|
+
value: value
|
|
83881
|
+
});
|
|
83882
|
+
if (value) {
|
|
83883
|
+
changedItemList = addItem(reorderableItemList, item);
|
|
83884
|
+
setReorderableItemList(changedItemList);
|
|
83885
|
+
setItemList(removeItem(itemList, item));
|
|
83886
|
+
} else {
|
|
83887
|
+
changedItemList = removeItem(reorderableItemList, item);
|
|
83888
|
+
setReorderableItemList(changedItemList);
|
|
83889
|
+
setItemList(addItem(itemList, item).sort(sortByName));
|
|
83890
|
+
}
|
|
83891
|
+
if (props.onChange) {
|
|
83892
|
+
props.onChange(changedItemList);
|
|
83893
|
+
}
|
|
83894
|
+
}
|
|
83895
|
+
};
|
|
83896
|
+
var onChangePosition = function onChangePosition(itemList) {
|
|
83897
|
+
setReorderableItemList(itemList);
|
|
83898
|
+
if (props.onChange) {
|
|
83899
|
+
props.onChange(itemList);
|
|
83900
|
+
}
|
|
83901
|
+
};
|
|
83902
|
+
var addItem = function addItem(list, item) {
|
|
83903
|
+
var newList = [].concat(list);
|
|
83904
|
+
newList.push(item);
|
|
83905
|
+
return newList;
|
|
83906
|
+
};
|
|
83907
|
+
var removeItem = function removeItem(list, item) {
|
|
83908
|
+
var newList = [].concat(list);
|
|
83909
|
+
newList = newList.filter(function (val) {
|
|
83910
|
+
return val.id !== item.id;
|
|
83911
|
+
});
|
|
83912
|
+
return newList;
|
|
83913
|
+
};
|
|
83914
|
+
var sortByName = function sortByName(a, b) {
|
|
83915
|
+
if (a.text.toLowerCase() < b.text.toLowerCase()) {
|
|
83916
|
+
return -1;
|
|
83917
|
+
}
|
|
83918
|
+
if (a.text.toLowerCase() > b.text.toLowerCase()) {
|
|
83919
|
+
return 1;
|
|
83920
|
+
}
|
|
83921
|
+
return 0;
|
|
83922
|
+
};
|
|
83923
|
+
var getValue = function getValue(value) {
|
|
83924
|
+
if (props.isAllSelected === true) {
|
|
83925
|
+
return true;
|
|
83926
|
+
}
|
|
83927
|
+
if (props.isAllSelected === false) {
|
|
83928
|
+
return false;
|
|
83929
|
+
}
|
|
83930
|
+
return value;
|
|
83931
|
+
};
|
|
83932
|
+
var getCheckbox = function getCheckbox(item, className) {
|
|
83933
|
+
return React__default.createElement(Checkbox, {
|
|
83934
|
+
label: item.text,
|
|
83935
|
+
name: item.text,
|
|
83936
|
+
value: getValue(item.value),
|
|
83937
|
+
onChange: function onChange(value) {
|
|
83938
|
+
return _onChange(value, item.id);
|
|
83939
|
+
},
|
|
83940
|
+
className: styles$1L['vitro-checkbox'] + (className ? CTRL.SPACE + className : CTRL.EMPTY)
|
|
83941
|
+
});
|
|
83942
|
+
};
|
|
83943
|
+
return React__default.createElement("ul", {
|
|
83944
|
+
ref: listRef,
|
|
83945
|
+
className: styles$1L['vitro-checkbox-reorderable-list'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
83946
|
+
}, React__default.createElement(ReorderableList, {
|
|
83947
|
+
itemList: reorderableItemList,
|
|
83948
|
+
itemTemplate: getCheckbox,
|
|
83949
|
+
onChange: onChangePosition,
|
|
83950
|
+
itemClassName: styles$1L['vitro-reorderable-item'],
|
|
83951
|
+
isCustomContainer: true
|
|
83952
|
+
}), React__default.createElement(List, {
|
|
83953
|
+
itemList: itemList,
|
|
83954
|
+
itemTemplate: getCheckbox,
|
|
83955
|
+
itemClassName: styles$1L['vitro-item'],
|
|
83956
|
+
isCustomContainer: true
|
|
83957
|
+
}));
|
|
83958
|
+
};
|
|
83959
|
+
|
|
83960
|
+
var styles$1M = {"vitro-pin-button":"_pin-button_vitro-pin-button_3DklgEh","vitro-active":"_pin-button_vitro-active_2PgztSG"};
|
|
83961
|
+
|
|
83962
|
+
var PinButton = function PinButton(props) {
|
|
83963
|
+
var _useState = React.useState(props.isActive || false),
|
|
83964
|
+
isActive = _useState[0],
|
|
83965
|
+
setIsActive = _useState[1];
|
|
83966
|
+
React.useEffect(function () {
|
|
83967
|
+
setIsActive(props.isActive || false);
|
|
83968
|
+
}, [props.isActive]);
|
|
83969
|
+
var onClick = function onClick(e) {
|
|
83970
|
+
e.stopPropagation();
|
|
83971
|
+
var newVal = !isActive;
|
|
83972
|
+
setIsActive(newVal);
|
|
83973
|
+
if (props.onChange) {
|
|
83974
|
+
props.onChange(newVal);
|
|
83975
|
+
}
|
|
83976
|
+
};
|
|
83977
|
+
return React__default.createElement(ImageButton, {
|
|
83978
|
+
onClick: onClick,
|
|
83979
|
+
className: styles$1M['vitro-pin-button'] + (isActive ? CTRL.SPACE + styles$1M['vitro-active'] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
83980
|
+
});
|
|
83981
|
+
};
|
|
83982
|
+
|
|
83072
83983
|
exports.ACTION_HANDLER = ActionHandlerConstants;
|
|
83073
83984
|
exports.ALERT = AlertConstants;
|
|
83074
83985
|
exports.ActionHandler = ActionHandler;
|
|
83075
83986
|
exports.Activity = Activity;
|
|
83076
83987
|
exports.ActivityItem = ActivityItem;
|
|
83077
83988
|
exports.ActivityMessage = ActivityMessage;
|
|
83989
|
+
exports.AddFieldButton = AddFieldButton;
|
|
83078
83990
|
exports.Alert = Alert$1;
|
|
83079
83991
|
exports.Avatar = Avatar;
|
|
83080
83992
|
exports.BimViewer = BimViewer;
|
|
@@ -83086,6 +83998,7 @@ exports.ButtonGroup = ButtonGroup;
|
|
|
83086
83998
|
exports.CONTROL = CONTROL;
|
|
83087
83999
|
exports.CenterAlignControlGroup = CenterAlignControlGroup;
|
|
83088
84000
|
exports.Checkbox = Checkbox;
|
|
84001
|
+
exports.CheckboxReorderableList = CheckboxReorderableList;
|
|
83089
84002
|
exports.CommandMenu = CommandMenu;
|
|
83090
84003
|
exports.CommandMenuButton = CommandMenuButton;
|
|
83091
84004
|
exports.CommandMenuDropdownButton = CommandMenuDropdownButton;
|
|
@@ -83096,12 +84009,15 @@ exports.ComponentLoaderContextImpl = ComponentLoaderContextImpl;
|
|
|
83096
84009
|
exports.ControlGroup = ControlGroup;
|
|
83097
84010
|
exports.CopyButton = CopyButton;
|
|
83098
84011
|
exports.Criterion = Criterion;
|
|
84012
|
+
exports.CriterionFieldIterator = CriterionFieldIterator;
|
|
83099
84013
|
exports.DatePicker = DatePicker;
|
|
83100
84014
|
exports.Dialog = Dialog;
|
|
83101
84015
|
exports.DialogContent = DialogContent;
|
|
83102
84016
|
exports.DialogFooter = DialogFooter;
|
|
83103
84017
|
exports.DropdownButton = DropdownButton;
|
|
83104
84018
|
exports.DxfViewer = DxfViewer;
|
|
84019
|
+
exports.EditableFieldIterator = EditableFieldIterator;
|
|
84020
|
+
exports.EditableList = EditableList;
|
|
83105
84021
|
exports.ErrorMessage = ErrorMessage;
|
|
83106
84022
|
exports.ExpandCollapseButton = ExpandCollapseButton;
|
|
83107
84023
|
exports.ExpandControlGroup = ExpandControlGroup;
|
|
@@ -83121,6 +84037,7 @@ exports.ImagePicker = ImagePicker;
|
|
|
83121
84037
|
exports.ImageViewer = ImageViewer;
|
|
83122
84038
|
exports.Input = Input;
|
|
83123
84039
|
exports.IssueTile = IssueTile;
|
|
84040
|
+
exports.KEY_CODE = KEY_CODE;
|
|
83124
84041
|
exports.Label = Label;
|
|
83125
84042
|
exports.LeftAlignControlGroup = LeftAlignControlGroup;
|
|
83126
84043
|
exports.LinearProgress = LinearProgress;
|
|
@@ -83140,12 +84057,15 @@ exports.Overlay = Overlay$2;
|
|
|
83140
84057
|
exports.PageLayout = PageLayout;
|
|
83141
84058
|
exports.PasswordInput = PasswordInput;
|
|
83142
84059
|
exports.PdfViewer = PdfViewer;
|
|
84060
|
+
exports.PinButton = PinButton;
|
|
83143
84061
|
exports.ProductTitle = ProductTitle;
|
|
83144
84062
|
exports.Progress = Progress;
|
|
83145
84063
|
exports.ProgressBar = ProgressBar;
|
|
83146
84064
|
exports.Radio = Radio;
|
|
84065
|
+
exports.ReorderableList = ReorderableList;
|
|
83147
84066
|
exports.RightAlignControlGroup = RightAlignControlGroup;
|
|
83148
84067
|
exports.RouteItem = RouteItem;
|
|
84068
|
+
exports.SIDEBAR = SidebarConstants;
|
|
83149
84069
|
exports.SPLITTER = SplitterConstants;
|
|
83150
84070
|
exports.ScriptLoader = ScriptLoader;
|
|
83151
84071
|
exports.ScrollBar = ScrollBar;
|
|
@@ -83158,10 +84078,12 @@ exports.SiteSelect = SiteSelect;
|
|
|
83158
84078
|
exports.SlideUpPanel = SlideUpPanel;
|
|
83159
84079
|
exports.Splitter = Splitter;
|
|
83160
84080
|
exports.StarButton = StarButton;
|
|
84081
|
+
exports.Switch = Switch;
|
|
83161
84082
|
exports.SystemExceptionDialog = SystemExceptionDialog;
|
|
83162
84083
|
exports.TABLE_VIEW = TableViewConstants;
|
|
83163
84084
|
exports.TOOLTIP = TooltipConstants;
|
|
83164
84085
|
exports.TREE_VIEW = TreeViewConstants;
|
|
84086
|
+
exports.TabButtonGroup = TabButtonGroup;
|
|
83165
84087
|
exports.TabGroup = TabGroup;
|
|
83166
84088
|
exports.TableView = TableView;
|
|
83167
84089
|
exports.TableViewDetail = TableViewDetail;
|