@vitrosoftware/common-ui-ts 1.1.21 → 1.1.22
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/common.css +1 -0
- package/css/std/controls/breadcrumbs/breadcrumbs.css +1 -0
- package/css/std/controls/lookup-picker/lookup-picker-selected-item.css +4 -1
- package/css/std/controls/lookup-picker/lookup-picker-value-list.css +1 -0
- package/css/std/controls/lookup-picker/lookup-picker.css +1 -1
- package/css/std/controls/scrollbar/scrollbar.css +54 -0
- package/css/std/controls/table-view/treegrid.css +4 -0
- package/css/std/controls/tree-view/tree-view.css +1 -1
- package/css/std/controls/uploader/uploader.css +0 -2
- package/css/third-party/perfect-scrollbar/perfect-scrollbar.css +116 -0
- package/dist/constants/Event.d.ts +2 -1
- package/dist/controls/ScrollBar/ScrollBar.d.ts +9 -0
- package/dist/index.css +64 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.js +350 -293
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +350 -294
- package/dist/index.modern.js.map +1 -1
- package/lib/perfect-scrollbar/perfect-scrollbar.min.js +6 -0
- package/lib/perfect-scrollbar/resizeEventListener.js +66 -0
- package/lib/third-party.js +73 -1
- package/package.json +1 -1
- package/src/controls/PdfViewer/js/pdf-viewer.js +45 -13
package/dist/index.js
CHANGED
|
@@ -207,6 +207,50 @@ var Item = function Item(props) {
|
|
|
207
207
|
}, props.text);
|
|
208
208
|
};
|
|
209
209
|
|
|
210
|
+
var styles = {"vitro-scrollbar-content":"_scrollbar_vitro-scrollbar-content_3HXSt5u"};
|
|
211
|
+
|
|
212
|
+
var w = window;
|
|
213
|
+
var ScrollBar = function ScrollBar(props) {
|
|
214
|
+
var ref = React.useRef(null);
|
|
215
|
+
var _useState = React.useState(null),
|
|
216
|
+
element = _useState[0],
|
|
217
|
+
setElement = _useState[1];
|
|
218
|
+
React.useEffect(function () {
|
|
219
|
+
var scrollElement;
|
|
220
|
+
if (ref.current) {
|
|
221
|
+
if (w.PerfectScrollbar) {
|
|
222
|
+
scrollElement = new w.PerfectScrollbar(ref.current, {
|
|
223
|
+
suppressScrollX: props.isHideScrollX
|
|
224
|
+
});
|
|
225
|
+
setElement(scrollElement);
|
|
226
|
+
}
|
|
227
|
+
if (w.addResizeListener && ref.current) {
|
|
228
|
+
w.addResizeListener(ref.current.firstChild, function () {
|
|
229
|
+
return scrollElement.update();
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
if (props.onInit) {
|
|
233
|
+
props.onInit(ref.current);
|
|
234
|
+
}
|
|
235
|
+
if (props.isFocusOnScroll && ref.current) {
|
|
236
|
+
ref.current.addEventListener('ps-scroll-y', function () {
|
|
237
|
+
return ref.current.click();
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return function () {
|
|
242
|
+
if (scrollElement) {
|
|
243
|
+
scrollElement.destroy();
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
}, []);
|
|
247
|
+
return React__default.createElement("div", {
|
|
248
|
+
ref: ref
|
|
249
|
+
}, React__default.createElement("div", {
|
|
250
|
+
className: styles['vitro-scrollbar-content']
|
|
251
|
+
}, element && props.children));
|
|
252
|
+
};
|
|
253
|
+
|
|
210
254
|
(function (EVENT) {
|
|
211
255
|
EVENT["MOUSEDOWN"] = "mousedown";
|
|
212
256
|
EVENT["MOUSEUP"] = "mouseup";
|
|
@@ -216,9 +260,10 @@ var Item = function Item(props) {
|
|
|
216
260
|
EVENT["DRAGLEAVE"] = "dragleave";
|
|
217
261
|
EVENT["HISTORY_UPDATE"] = "vitro.history.update";
|
|
218
262
|
EVENT["HISTORY_CHANGED"] = "vitro.history.changed";
|
|
263
|
+
EVENT["DROP"] = "drop";
|
|
219
264
|
})(exports.EVENT || (exports.EVENT = {}));
|
|
220
265
|
|
|
221
|
-
var styles = {"vitro-breadcrumbs":"_breadcrumbs_vitro-breadcrumbs_3r4NcQY","vitro-breadcrumbs-list-wrap":"_breadcrumbs_vitro-breadcrumbs-list-wrap_1_JBrw0","vitro-breadcrumbs-list":"_breadcrumbs_vitro-breadcrumbs-list_1SNtgtJ","vitro-breadcrumbs-button":"_breadcrumbs_vitro-breadcrumbs-button_3fazq3c","vitro-root":"_breadcrumbs_vitro-root_1S5-6AY","vitro-drop-down-list":"_breadcrumbs_vitro-drop-down-list_2PhrR2a"};
|
|
266
|
+
var styles$1 = {"vitro-breadcrumbs":"_breadcrumbs_vitro-breadcrumbs_3r4NcQY","vitro-breadcrumbs-list-wrap":"_breadcrumbs_vitro-breadcrumbs-list-wrap_1_JBrw0","vitro-breadcrumbs-list":"_breadcrumbs_vitro-breadcrumbs-list_1SNtgtJ","vitro-breadcrumbs-button":"_breadcrumbs_vitro-breadcrumbs-button_3fazq3c","vitro-root":"_breadcrumbs_vitro-root_1S5-6AY","vitro-drop-down-list":"_breadcrumbs_vitro-drop-down-list_2PhrR2a"};
|
|
222
267
|
|
|
223
268
|
var Breadcrumbs = function Breadcrumbs(props) {
|
|
224
269
|
var _useState = React.useState([]),
|
|
@@ -322,7 +367,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
322
367
|
setWindowWidth(window.innerWidth);
|
|
323
368
|
};
|
|
324
369
|
var clickOutside = function clickOutside(e) {
|
|
325
|
-
if (menuRef.current && !menuRef.current.contains(e.target) && e.target.className !== styles['vitro-breadcrumbs-button']) {
|
|
370
|
+
if (menuRef.current && !menuRef.current.contains(e.target) && e.target.className !== styles$1['vitro-breadcrumbs-button']) {
|
|
326
371
|
setDropDown(false);
|
|
327
372
|
}
|
|
328
373
|
};
|
|
@@ -333,15 +378,15 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
333
378
|
var showDropdownMenu = function showDropdownMenu() {
|
|
334
379
|
setDropDown(!dropDown);
|
|
335
380
|
};
|
|
336
|
-
var titleClassName = styles['vitro-site-name'] + CTRL.SPACE + (displayItemList.length ? styles['opened'] : styles['closed']);
|
|
381
|
+
var titleClassName = styles$1['vitro-site-name'] + CTRL.SPACE + (displayItemList.length ? styles$1['opened'] : styles$1['closed']);
|
|
337
382
|
return React__default.createElement("div", {
|
|
338
|
-
className: styles['vitro-breadcrumbs']
|
|
383
|
+
className: styles$1['vitro-breadcrumbs']
|
|
339
384
|
}, props.text ? React__default.createElement("h2", {
|
|
340
385
|
className: titleClassName
|
|
341
386
|
}, props.text) : null, React__default.createElement("div", {
|
|
342
|
-
className: styles['vitro-breadcrumbs-list-wrap']
|
|
387
|
+
className: styles$1['vitro-breadcrumbs-list-wrap']
|
|
343
388
|
}, React__default.createElement("ul", {
|
|
344
|
-
className: styles['vitro-breadcrumbs-list']
|
|
389
|
+
className: styles$1['vitro-breadcrumbs-list']
|
|
345
390
|
}, displayItemList.map(function (item) {
|
|
346
391
|
return React__default.createElement(Item, {
|
|
347
392
|
text: item.text,
|
|
@@ -352,17 +397,17 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
352
397
|
});
|
|
353
398
|
})), dropdownItemList.length ? React__default.createElement("div", {
|
|
354
399
|
onClick: showDropdownMenu,
|
|
355
|
-
className: styles['vitro-breadcrumbs-button']
|
|
400
|
+
className: styles$1['vitro-breadcrumbs-button']
|
|
356
401
|
}) : null, !props.wrapRoot && rootItem ? React__default.createElement(Item, {
|
|
357
402
|
id: rootItem.id,
|
|
358
403
|
onClick: function onClick() {
|
|
359
404
|
return onItemClick(rootItem);
|
|
360
405
|
},
|
|
361
|
-
className: styles['vitro-root']
|
|
406
|
+
className: styles$1['vitro-root']
|
|
362
407
|
}) : null), dropDown && dropdownItemList.length > 0 && React__default.createElement("div", {
|
|
363
|
-
className: styles['vitro-drop-down-list'],
|
|
408
|
+
className: styles$1['vitro-drop-down-list'],
|
|
364
409
|
ref: menuRef
|
|
365
|
-
}, React__default.createElement("ul", null, React__default.createElement(
|
|
410
|
+
}, React__default.createElement("ul", null, React__default.createElement(ScrollBar, null, dropdownItemList.map(function (item) {
|
|
366
411
|
return React__default.createElement(Item, {
|
|
367
412
|
text: item.text,
|
|
368
413
|
id: item.id,
|
|
@@ -373,11 +418,11 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
373
418
|
})))));
|
|
374
419
|
};
|
|
375
420
|
|
|
376
|
-
var styles$
|
|
421
|
+
var styles$2 = {"vitro-top-level-menu":"_top-level-menu_vitro-top-level-menu_38-ZEUx","vitro-active":"_top-level-menu_vitro-active_2hLMadw"};
|
|
377
422
|
|
|
378
423
|
var LinkItem = function LinkItem(props) {
|
|
379
424
|
return React__default.createElement("li", {
|
|
380
|
-
className: props.isActive ? styles$
|
|
425
|
+
className: props.isActive ? styles$2['vitro-active'] : ''
|
|
381
426
|
}, React__default.createElement("a", {
|
|
382
427
|
href: props.url,
|
|
383
428
|
onClick: props.onClick
|
|
@@ -427,7 +472,7 @@ var TopLevelMenu = function TopLevelMenu(props) {
|
|
|
427
472
|
props.onClick(item);
|
|
428
473
|
};
|
|
429
474
|
return React__default.createElement("ul", {
|
|
430
|
-
className: styles$
|
|
475
|
+
className: styles$2['vitro-top-level-menu']
|
|
431
476
|
}, props.itemList && props.itemList.slice(0, maxNum).map(function (item) {
|
|
432
477
|
return React__default.createElement(LinkItem, {
|
|
433
478
|
text: item.text,
|
|
@@ -20231,7 +20276,7 @@ var JsTreeViewContextImpl = /*#__PURE__*/function () {
|
|
|
20231
20276
|
return JsTreeViewContextImpl;
|
|
20232
20277
|
}();
|
|
20233
20278
|
|
|
20234
|
-
var styles$
|
|
20279
|
+
var styles$3 = {"vitro-tree-view":"_tree-view_vitro-tree-view_3oii-CW"};
|
|
20235
20280
|
|
|
20236
20281
|
var TreeView = function TreeView(props) {
|
|
20237
20282
|
var _useState = React.useState(null),
|
|
@@ -20260,7 +20305,7 @@ var TreeView = function TreeView(props) {
|
|
|
20260
20305
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
20261
20306
|
ref: jsTreeRef,
|
|
20262
20307
|
id: props.id,
|
|
20263
|
-
className: styles$
|
|
20308
|
+
className: styles$3["vitro-tree-view"]
|
|
20264
20309
|
}));
|
|
20265
20310
|
};
|
|
20266
20311
|
|
|
@@ -20322,11 +20367,11 @@ function _toPropertyKey(arg) {
|
|
|
20322
20367
|
return typeof key === "symbol" ? key : String(key);
|
|
20323
20368
|
}
|
|
20324
20369
|
|
|
20325
|
-
var w = window;
|
|
20326
|
-
if (!w.tableViewList) {
|
|
20327
|
-
w.tableViewList = new Map();
|
|
20370
|
+
var w$1 = window;
|
|
20371
|
+
if (!w$1.tableViewList) {
|
|
20372
|
+
w$1.tableViewList = new Map();
|
|
20328
20373
|
}
|
|
20329
|
-
var tableViewList = w.tableViewList;
|
|
20374
|
+
var tableViewList = w$1.tableViewList;
|
|
20330
20375
|
function getTableViewById(id) {
|
|
20331
20376
|
return tableViewList.get(id);
|
|
20332
20377
|
}
|
|
@@ -20443,7 +20488,7 @@ var TreeGridTableViewContextImpl = /*#__PURE__*/function () {
|
|
|
20443
20488
|
};
|
|
20444
20489
|
_proto.setEventHandler = function setEventHandler(eventHandler) {
|
|
20445
20490
|
var grid = this;
|
|
20446
|
-
w.TGSetEvent(eventHandler.id, this.id, function () {
|
|
20491
|
+
w$1.TGSetEvent(eventHandler.id, this.id, function () {
|
|
20447
20492
|
for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
20448
20493
|
params[_key] = arguments[_key];
|
|
20449
20494
|
}
|
|
@@ -20741,20 +20786,20 @@ var TableViewConstants = {
|
|
|
20741
20786
|
get SECTION () { return SECTION; }
|
|
20742
20787
|
};
|
|
20743
20788
|
|
|
20744
|
-
var styles$
|
|
20789
|
+
var styles$4 = {"vitro-table-view":"_table-view_vitro-table-view_1tTs32D"};
|
|
20745
20790
|
|
|
20746
|
-
var w$
|
|
20747
|
-
if (!w$
|
|
20748
|
-
w$
|
|
20791
|
+
var w$2 = window;
|
|
20792
|
+
if (!w$2.tableViewList) {
|
|
20793
|
+
w$2.tableViewList = new Map();
|
|
20749
20794
|
}
|
|
20750
20795
|
var TreeGrid = function TreeGrid(props) {
|
|
20751
20796
|
var disposeTableViewById = function disposeTableViewById(gridId) {
|
|
20752
|
-
if (gridId && w$
|
|
20797
|
+
if (gridId && w$2.Grids) {
|
|
20753
20798
|
var tableView = getTableViewById(gridId);
|
|
20754
20799
|
if (tableView && tableView.dispose) {
|
|
20755
20800
|
tableView.dispose();
|
|
20756
20801
|
}
|
|
20757
|
-
var grid = w$
|
|
20802
|
+
var grid = w$2.Grids[gridId];
|
|
20758
20803
|
if (grid && grid.Dispose) {
|
|
20759
20804
|
grid.Dispose();
|
|
20760
20805
|
}
|
|
@@ -20813,11 +20858,11 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
20813
20858
|
};
|
|
20814
20859
|
React.useEffect(function () {
|
|
20815
20860
|
disposeTableViewById(props.id);
|
|
20816
|
-
w$
|
|
20861
|
+
w$2.TGSetEvent(EVENT$1.ON_LOADED, props.id, function (grid, next) {
|
|
20817
20862
|
return onGridLoaded(grid, next);
|
|
20818
20863
|
});
|
|
20819
20864
|
if (props.layout || props.data) {
|
|
20820
|
-
w$
|
|
20865
|
+
w$2.TreeGrid({
|
|
20821
20866
|
id: props.id,
|
|
20822
20867
|
Layout: {
|
|
20823
20868
|
Data: props.layout
|
|
@@ -20833,7 +20878,7 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
20833
20878
|
CacheVersion: props.cacheVersion
|
|
20834
20879
|
}, "vitro-table-view" + props.id);
|
|
20835
20880
|
} else {
|
|
20836
|
-
w$
|
|
20881
|
+
w$2.TreeGrid({
|
|
20837
20882
|
id: props.id,
|
|
20838
20883
|
Layout: {
|
|
20839
20884
|
Url: createGridUrl(URL.LAYOUT)
|
|
@@ -20857,7 +20902,7 @@ var TreeGrid = function TreeGrid(props) {
|
|
|
20857
20902
|
};
|
|
20858
20903
|
}, []);
|
|
20859
20904
|
return React__default.createElement("div", {
|
|
20860
|
-
className: styles$
|
|
20905
|
+
className: styles$4["vitro-table-view"]
|
|
20861
20906
|
}, React__default.createElement("div", {
|
|
20862
20907
|
id: "vitro-table-view" + props.id
|
|
20863
20908
|
}));
|
|
@@ -21222,7 +21267,7 @@ var TelerikUploaderContextImpl = /*#__PURE__*/function () {
|
|
|
21222
21267
|
var SERVICE = function SERVICE() {};
|
|
21223
21268
|
SERVICE.LOCALE = 'LocaleService';
|
|
21224
21269
|
|
|
21225
|
-
var styles$
|
|
21270
|
+
var styles$5 = {"vitro-uploader":"_uploader_vitro-uploader_237vX7T","vitro-upload-container":"_uploader_vitro-upload-container_2ASGHSS","vitro-drop-zone":"_uploader_vitro-drop-zone_3w2dluc","vitro-progress-info":"_uploader_vitro-progress-info_J4BRjZ0","vitro-button-close":"_uploader_vitro-button-close_30As0AM","vitro-button-show":"_uploader_vitro-button-show_uUmWVJc","vitro-button-hide":"_uploader_vitro-button-hide_LYS1px9","vitro-hidden":"_uploader_vitro-hidden_12825pc","vitro-progress":"_uploader_vitro-progress_2NtaSj2","vitro-dropzone-image":"_uploader_vitro-dropzone-image_ianU_0j","vitro-drop-zone-text":"_uploader_vitro-drop-zone-text_KLjek2K","vitro-progress-bar":"_uploader_vitro-progress-bar_3YXLbbu"};
|
|
21226
21271
|
|
|
21227
21272
|
var $$2 = window.$;
|
|
21228
21273
|
var TYPE_FILES = 'Files';
|
|
@@ -21264,6 +21309,9 @@ var TelerikUploader = function TelerikUploader(props) {
|
|
|
21264
21309
|
window.addEventListener(exports.EVENT.DRAGLEAVE, function (e) {
|
|
21265
21310
|
return onDragLeave(e);
|
|
21266
21311
|
});
|
|
21312
|
+
window.addEventListener(exports.EVENT.DROP, function (e) {
|
|
21313
|
+
return onDrop();
|
|
21314
|
+
});
|
|
21267
21315
|
}
|
|
21268
21316
|
return function () {
|
|
21269
21317
|
window.removeEventListener(EVENT$2.ADD_FILE, addFile);
|
|
@@ -21273,6 +21321,9 @@ var TelerikUploader = function TelerikUploader(props) {
|
|
|
21273
21321
|
window.removeEventListener(exports.EVENT.DRAGLEAVE, function (e) {
|
|
21274
21322
|
return onDragLeave(e);
|
|
21275
21323
|
});
|
|
21324
|
+
window.removeEventListener(exports.EVENT.DROP, function (e) {
|
|
21325
|
+
return onDrop();
|
|
21326
|
+
});
|
|
21276
21327
|
};
|
|
21277
21328
|
}, [kendoUploader]);
|
|
21278
21329
|
var addFile = function addFile() {
|
|
@@ -21300,35 +21351,39 @@ var TelerikUploader = function TelerikUploader(props) {
|
|
|
21300
21351
|
containerRef.current.classList.add('vitro-dropzone-active');
|
|
21301
21352
|
}
|
|
21302
21353
|
};
|
|
21303
|
-
var
|
|
21304
|
-
e.preventDefault();
|
|
21354
|
+
var onDrop = function onDrop(e) {
|
|
21305
21355
|
if (containerRef.current) {
|
|
21306
21356
|
containerRef.current.classList.remove('vitro-dropzone-active');
|
|
21307
21357
|
}
|
|
21308
21358
|
};
|
|
21359
|
+
var onDragLeave = function onDragLeave(e) {
|
|
21360
|
+
if (!e.fromElement) {
|
|
21361
|
+
onDrop();
|
|
21362
|
+
}
|
|
21363
|
+
};
|
|
21309
21364
|
return React__default.createElement("div", {
|
|
21310
21365
|
id: componentName,
|
|
21311
|
-
className: styles$
|
|
21366
|
+
className: styles$5['vitro-uploader'],
|
|
21312
21367
|
ref: containerRef
|
|
21313
21368
|
}, showClose && React__default.createElement(React__default.Fragment, null, React__default.createElement("button", {
|
|
21314
|
-
className: styles$
|
|
21369
|
+
className: styles$5['vitro-button-close'],
|
|
21315
21370
|
onClick: clearUploadResult
|
|
21316
21371
|
}), React__default.createElement("button", {
|
|
21317
|
-
className: hide ? styles$
|
|
21372
|
+
className: hide ? styles$5['vitro-button-show'] : styles$5['vitro-button-hide'],
|
|
21318
21373
|
onClick: hideUploadResult
|
|
21319
21374
|
})), React__default.createElement("div", {
|
|
21320
|
-
className: styles$
|
|
21375
|
+
className: styles$5['vitro-drop-zone'],
|
|
21321
21376
|
id: 'vitro-uploader-drop-zone',
|
|
21322
21377
|
ref: dropZoneRef,
|
|
21323
21378
|
onClick: addFile
|
|
21324
21379
|
}, React__default.createElement("div", null, React__default.createElement("div", {
|
|
21325
|
-
className: styles$
|
|
21380
|
+
className: styles$5['vitro-dropzone-image']
|
|
21326
21381
|
}), React__default.createElement("div", {
|
|
21327
|
-
className: styles$
|
|
21382
|
+
className: styles$5['vitro-drop-zone-text']
|
|
21328
21383
|
}, localeService.create(LOCALE.DROPZONE_TEXT)))), React__default.createElement("div", {
|
|
21329
|
-
className: styles$
|
|
21384
|
+
className: styles$5['vitro-upload-container'] + (hide ? CTRL.SPACE + styles$5['vitro-hidden'] : CTRL.EMPTY)
|
|
21330
21385
|
}, React__default.createElement("div", {
|
|
21331
|
-
className: styles$
|
|
21386
|
+
className: styles$5['vitro-progress-info'],
|
|
21332
21387
|
id: 'vitro-uploader-progress-info',
|
|
21333
21388
|
ref: progressInfoRef
|
|
21334
21389
|
}, React__default.createElement("span", {
|
|
@@ -21336,10 +21391,10 @@ var TelerikUploader = function TelerikUploader(props) {
|
|
|
21336
21391
|
}), React__default.createElement("span", {
|
|
21337
21392
|
id: 'vitro-uploader-subtitle'
|
|
21338
21393
|
}), React__default.createElement("div", {
|
|
21339
|
-
className: styles$
|
|
21394
|
+
className: styles$5['vitro-progress'],
|
|
21340
21395
|
ref: progressBarRef
|
|
21341
21396
|
}, React__default.createElement("div", {
|
|
21342
|
-
className: styles$
|
|
21397
|
+
className: styles$5['vitro-progress-bar'],
|
|
21343
21398
|
id: 'vitro-progress-bar'
|
|
21344
21399
|
}))), React__default.createElement("input", {
|
|
21345
21400
|
name: 'fileList',
|
|
@@ -21871,11 +21926,11 @@ function style(node, property) {
|
|
|
21871
21926
|
* LICENSE file in the root directory of this source tree.
|
|
21872
21927
|
*/
|
|
21873
21928
|
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
21874
|
-
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w$
|
|
21929
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w$3=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
21875
21930
|
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element$1=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
|
|
21876
21931
|
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
21877
21932
|
var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
21878
|
-
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w$
|
|
21933
|
+
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w$3||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
21879
21934
|
|
|
21880
21935
|
var reactIs_production_min = {
|
|
21881
21936
|
AsyncMode: AsyncMode,
|
|
@@ -59315,7 +59370,7 @@ var Icon = function Icon(props) {
|
|
|
59315
59370
|
}));
|
|
59316
59371
|
};
|
|
59317
59372
|
|
|
59318
|
-
var styles$
|
|
59373
|
+
var styles$6 = {"vitro-button":"_button_vitro-button_hVfBuSO","vitro-animation-ripple":"_button_vitro-animation-ripple_7CFAk_a"};
|
|
59319
59374
|
|
|
59320
59375
|
var PX_UNIT = 'px';
|
|
59321
59376
|
var HTML_ELEMENT_SPAN = 'span';
|
|
@@ -59373,7 +59428,7 @@ var Button$2 = function Button(props) {
|
|
|
59373
59428
|
},
|
|
59374
59429
|
disabled: pending || props.isDisabled,
|
|
59375
59430
|
type: TYPE_BUTTON,
|
|
59376
|
-
className: styles$
|
|
59431
|
+
className: styles$6['vitro-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
59377
59432
|
title: CTRL.EMPTY,
|
|
59378
59433
|
onClick: onClick,
|
|
59379
59434
|
onMouseDown: props.isCreateRipple ? createRipple : function () {}
|
|
@@ -59386,14 +59441,14 @@ var Button$2 = function Button(props) {
|
|
|
59386
59441
|
return button;
|
|
59387
59442
|
};
|
|
59388
59443
|
|
|
59389
|
-
var styles$
|
|
59444
|
+
var styles$7 = {"vitro-action-handler":"_action-handler_vitro-action-handler_1wgWRHB","vitro-icon-before":"_action-handler_vitro-icon-before_2OomEjN","vitro-icon-progress":"_action-handler_vitro-icon-progress_2QurHaw","vitro-icon-success":"_action-handler_vitro-icon-success_3Pt7XlJ","vitro-icon-error":"_action-handler_vitro-icon-error_2elcVFa","vitro-icon-warning":"_action-handler_vitro-icon-warning_3X_YncE","vitro-content":"_action-handler_vitro-content_1UEsgWV","vitro-flex":"_action-handler_vitro-flex_ryggQ_S","vitro-interface-blur":"_action-handler_vitro-interface-blur_3p_JKB_","vitro-action-handler-dialog-confirm":"_action-handler_vitro-action-handler-dialog-confirm_30dwuBp","vitro-action-handler-dialog":"_action-handler_vitro-action-handler-dialog_1rRT66e","vitro-content-container":"_action-handler_vitro-content-container_DBST6Nz","vitro-confirm":"_action-handler_vitro-confirm_24pI7Nj","vitro-progress":"_action-handler_vitro-progress_2RheviN","vitro-progress-bar":"_action-handler_vitro-progress-bar_1dwFpsn","vitro-small":"_action-handler_vitro-small_oqifqlS","vitro-button-close":"_action-handler_vitro-button-close_3mRTgQq","vitro-success":"_action-handler_vitro-success_1bfGHQQ","vitro-warning":"_action-handler_vitro-warning_2uE9UfG","vitro-error":"_action-handler_vitro-error_1XXlWG-","vitro-button-cancel":"_action-handler_vitro-button-cancel_GE8JsGp","vitro-button":"_action-handler_vitro-button_1wSNAYT","vitro-button-collapse-up":"_action-handler_vitro-button-collapse-up_2lQ6JWm","vitro-button-collapse-bottom":"_action-handler_vitro-button-collapse-bottom_aocIZUX"};
|
|
59390
59445
|
|
|
59391
59446
|
var _excluded$7 = ["popper", "children", "show"];
|
|
59392
59447
|
var UpdatingPopover = React__default.forwardRef(function (_ref, ref) {
|
|
59393
59448
|
var children = _ref.children,
|
|
59394
59449
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
59395
59450
|
return React__default.createElement("div", {
|
|
59396
|
-
className: styles$
|
|
59451
|
+
className: styles$7["vitro-action-handler"]
|
|
59397
59452
|
}, React__default.createElement(Popover$1, Object.assign({
|
|
59398
59453
|
ref: ref,
|
|
59399
59454
|
body: true,
|
|
@@ -59401,24 +59456,24 @@ var UpdatingPopover = React__default.forwardRef(function (_ref, ref) {
|
|
|
59401
59456
|
}, props), children));
|
|
59402
59457
|
});
|
|
59403
59458
|
|
|
59404
|
-
var styles$
|
|
59459
|
+
var styles$8 = {"vitro-info-container":"_action-handler-info_vitro-info-container_eNvJr3n","vitro-action-info":"_action-handler-info_vitro-action-info_40N4L4N","vitro-item-container":"_action-handler-info_vitro-item-container__hZvMvH","vitro-item":"_action-handler-info_vitro-item_2pXL5Ks","vitro-title":"_action-handler-info_vitro-title_kdIhxqv","vitro-subtitle":"_action-handler-info_vitro-subtitle_29cfoD0","vitro-progress-bar":"_action-handler-info_vitro-progress-bar_2IxowO0","vitro-button-cancel":"_action-handler-info_vitro-button-cancel_3eqrIKx","vitro-success":"_action-handler-info_vitro-success_22wks7Q","vitro-progress":"_action-handler-info_vitro-progress_1pVf3VJ","vitro-error":"_action-handler-info_vitro-error_2JNd137","vitro-status":"_action-handler-info_vitro-status_3Ey3f6C"};
|
|
59405
59460
|
|
|
59406
59461
|
var ActionInfoItem = function ActionInfoItem(props) {
|
|
59407
59462
|
var getClassName = function getClassName() {
|
|
59408
59463
|
if (props.info.success) {
|
|
59409
|
-
return styles$
|
|
59464
|
+
return styles$8['vitro-success'];
|
|
59410
59465
|
} else if (props.info.error) {
|
|
59411
|
-
return styles$
|
|
59466
|
+
return styles$8['vitro-error'];
|
|
59412
59467
|
} else if (props.info.progress) {
|
|
59413
|
-
return styles$
|
|
59468
|
+
return styles$8['vitro-progress'];
|
|
59414
59469
|
}
|
|
59415
|
-
return styles$
|
|
59470
|
+
return styles$8['vitro-status'];
|
|
59416
59471
|
};
|
|
59417
59472
|
return React__default.createElement("div", {
|
|
59418
|
-
className: styles$
|
|
59473
|
+
className: styles$8['vitro-item'],
|
|
59419
59474
|
key: props.id
|
|
59420
59475
|
}, React__default.createElement("span", {
|
|
59421
|
-
className: styles$
|
|
59476
|
+
className: styles$8['vitro-title']
|
|
59422
59477
|
}, props.name), React__default.createElement("span", {
|
|
59423
59478
|
className: getClassName()
|
|
59424
59479
|
}, props.info.text));
|
|
@@ -59537,11 +59592,11 @@ var ActionInfo = function ActionInfo(props) {
|
|
|
59537
59592
|
return CTRL.EMPTY;
|
|
59538
59593
|
};
|
|
59539
59594
|
return React__default.createElement("div", {
|
|
59540
|
-
className: styles$
|
|
59595
|
+
className: styles$8['vitro-info-container']
|
|
59541
59596
|
}, React__default.createElement("div", {
|
|
59542
|
-
className: styles$
|
|
59597
|
+
className: styles$8['vitro-action-info']
|
|
59543
59598
|
}, getText()), React__default.createElement("div", {
|
|
59544
|
-
className: styles$
|
|
59599
|
+
className: styles$8['vitro-item-container']
|
|
59545
59600
|
}, props.itemList.map(function (item) {
|
|
59546
59601
|
return React__default.createElement(ActionInfoItem, {
|
|
59547
59602
|
id: item.id,
|
|
@@ -59582,7 +59637,7 @@ var ActionHandler = function ActionHandler(props) {
|
|
|
59582
59637
|
var _useState8 = React.useState(null),
|
|
59583
59638
|
icon = _useState8[0],
|
|
59584
59639
|
setIcon = _useState8[1];
|
|
59585
|
-
var _useState9 = React.useState(props.isConfirm ? styles$
|
|
59640
|
+
var _useState9 = React.useState(props.isConfirm ? styles$7['vitro-confirm'] : CTRL.EMPTY),
|
|
59586
59641
|
state = _useState9[0],
|
|
59587
59642
|
setState = _useState9[1];
|
|
59588
59643
|
var _useState10 = React.useState(true),
|
|
@@ -59617,15 +59672,15 @@ var ActionHandler = function ActionHandler(props) {
|
|
|
59617
59672
|
React.useEffect(function () {
|
|
59618
59673
|
setIsCloseEnabled(currentAction !== actionMap$1.progress);
|
|
59619
59674
|
if (currentAction === actionMap$1.before) {
|
|
59620
|
-
setState(styles$
|
|
59675
|
+
setState(styles$7['vitro-confirm']);
|
|
59621
59676
|
setShowItemCount(true);
|
|
59622
|
-
setIcon(styles$
|
|
59677
|
+
setIcon(styles$7['vitro-icon-before']);
|
|
59623
59678
|
}
|
|
59624
59679
|
if (currentAction === actionMap$1.progress) {
|
|
59625
59680
|
setState(CTRL.EMPTY);
|
|
59626
59681
|
setShowProgressBar(!props.isHideProgressBar);
|
|
59627
59682
|
setShowItemCount(false);
|
|
59628
|
-
setIcon(styles$
|
|
59683
|
+
setIcon(styles$7['vitro-icon-progress']);
|
|
59629
59684
|
}
|
|
59630
59685
|
if (currentAction !== actionMap$1.progress) {
|
|
59631
59686
|
setShowProgressBar(false);
|
|
@@ -59708,24 +59763,24 @@ var ActionHandler = function ActionHandler(props) {
|
|
|
59708
59763
|
};
|
|
59709
59764
|
var setActionResult = function setActionResult(success, successResult, failResult) {
|
|
59710
59765
|
if (success) {
|
|
59711
|
-
setIcon(styles$
|
|
59712
|
-
setState(styles$
|
|
59766
|
+
setIcon(styles$7['vitro-icon-success']);
|
|
59767
|
+
setState(styles$7['vitro-success']);
|
|
59713
59768
|
var key = [LOCALE$1.ACTION_MSG, props.actionCode, LOCALE$1.SUCCESS].join(CTRL.DOT);
|
|
59714
59769
|
setText(localeService.create(key, {
|
|
59715
59770
|
actionCode: action,
|
|
59716
59771
|
count: successResult.length
|
|
59717
59772
|
}));
|
|
59718
59773
|
} else if (successResult.length && failResult.length) {
|
|
59719
|
-
setIcon(styles$
|
|
59720
|
-
setState(styles$
|
|
59774
|
+
setIcon(styles$7['vitro-icon-warning']);
|
|
59775
|
+
setState(styles$7['vitro-warning']);
|
|
59721
59776
|
var _key = data.itemCount === 1 ? LOCALE$1.WARNING_SINGLE : LOCALE$1.WARNING_MULTI;
|
|
59722
59777
|
setText(localeService.create(_key, {
|
|
59723
59778
|
actionCode: action,
|
|
59724
59779
|
itemCount: data.itemCount
|
|
59725
59780
|
}));
|
|
59726
59781
|
} else {
|
|
59727
|
-
setIcon(styles$
|
|
59728
|
-
setState(styles$
|
|
59782
|
+
setIcon(styles$7['vitro-icon-error']);
|
|
59783
|
+
setState(styles$7['vitro-error']);
|
|
59729
59784
|
var _key2 = data.itemCount === 1 ? LOCALE$1.ERROR_SINGLE : LOCALE$1.ERROR_MULTI;
|
|
59730
59785
|
setText(localeService.create(_key2, {
|
|
59731
59786
|
actionCode: action,
|
|
@@ -59886,23 +59941,23 @@ var ActionHandler = function ActionHandler(props) {
|
|
|
59886
59941
|
var showCloseButtonGroup = currentAction !== actionMap$1.before;
|
|
59887
59942
|
var positionCenter = !props.target && !props.children;
|
|
59888
59943
|
var content = React__default.createElement("div", {
|
|
59889
|
-
className: styles$
|
|
59944
|
+
className: styles$7['vitro-content'] + CTRL.SPACE + state
|
|
59890
59945
|
}, React__default.createElement("div", {
|
|
59891
|
-
className: styles$
|
|
59946
|
+
className: styles$7['vitro-content-container']
|
|
59892
59947
|
}, React__default.createElement("div", {
|
|
59893
|
-
className: styles$
|
|
59948
|
+
className: styles$7['vitro-flex']
|
|
59894
59949
|
}, icon && React__default.createElement("div", {
|
|
59895
59950
|
className: icon
|
|
59896
59951
|
}), React__default.createElement("span", null, text), showCloseButtonGroup && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
59897
|
-
className: showInfo ? styles$
|
|
59952
|
+
className: showInfo ? styles$7['vitro-button-collapse-up'] : styles$7['vitro-button-collapse-bottom'],
|
|
59898
59953
|
onClick: function onClick() {
|
|
59899
59954
|
return setShowInfo(!showInfo);
|
|
59900
59955
|
}
|
|
59901
59956
|
}), currentAction != actionMap$1.before && React__default.createElement("div", {
|
|
59902
|
-
className: styles$
|
|
59957
|
+
className: styles$7['vitro-button-close'],
|
|
59903
59958
|
onClick: close
|
|
59904
59959
|
}))), showItemCount && React__default.createElement("span", {
|
|
59905
|
-
className: styles$
|
|
59960
|
+
className: styles$7['vitro-small']
|
|
59906
59961
|
}, getSelectedItemText()), showInfo && React__default.createElement(ActionInfo, {
|
|
59907
59962
|
itemList: data.itemList,
|
|
59908
59963
|
successResult: successResult,
|
|
@@ -59912,19 +59967,19 @@ var ActionHandler = function ActionHandler(props) {
|
|
|
59912
59967
|
isSuccess: success,
|
|
59913
59968
|
currentItem: currentItem
|
|
59914
59969
|
})), showProgressBar && React__default.createElement("div", {
|
|
59915
|
-
className: styles$
|
|
59970
|
+
className: styles$7['vitro-progress']
|
|
59916
59971
|
}, React__default.createElement("div", {
|
|
59917
|
-
className: styles$
|
|
59972
|
+
className: styles$7['vitro-progress-bar'],
|
|
59918
59973
|
ref: progressBarRef
|
|
59919
59974
|
})), showConfirmButtonGroup && React__default.createElement(commonUi.ButtonGroup, null, React__default.createElement(Button$2, {
|
|
59920
59975
|
onClick: close,
|
|
59921
59976
|
text: localeService.create(LOCALE$1.CANCEL) || props.labelNo || CTRL.EMPTY,
|
|
59922
|
-
className: styles$
|
|
59977
|
+
className: styles$7['vitro-button-cancel']
|
|
59923
59978
|
}), React__default.createElement(Button$2, {
|
|
59924
59979
|
onClick: onStart,
|
|
59925
59980
|
text: action || props.labelYes || CTRL.EMPTY,
|
|
59926
59981
|
isDisabled: currentAction !== actionMap$1.before,
|
|
59927
|
-
className: styles$
|
|
59982
|
+
className: styles$7['vitro-button']
|
|
59928
59983
|
})));
|
|
59929
59984
|
return React__default.createElement(React__default.Fragment, null, props.children && React__default.createElement(OverlayTrigger, {
|
|
59930
59985
|
trigger: TRIGGER.CLICK,
|
|
@@ -59939,13 +59994,13 @@ var ActionHandler = function ActionHandler(props) {
|
|
|
59939
59994
|
onHide: close,
|
|
59940
59995
|
placement: props.placement || PLACEMENT.TOP
|
|
59941
59996
|
}, React__default.createElement(UpdatingPopover, null, content)), positionCenter && show && React__default.createElement("div", {
|
|
59942
|
-
className: currentAction === actionMap$1.before ? styles$
|
|
59997
|
+
className: currentAction === actionMap$1.before ? styles$7['vitro-action-handler-dialog-confirm'] : styles$7['vitro-action-handler-dialog']
|
|
59943
59998
|
}, content), blockInterface && React__default.createElement("div", {
|
|
59944
|
-
className: styles$
|
|
59999
|
+
className: styles$7['vitro-interface-blur']
|
|
59945
60000
|
}));
|
|
59946
60001
|
};
|
|
59947
60002
|
|
|
59948
|
-
var styles$
|
|
60003
|
+
var styles$9 = {"vitro-view-part":"_view-part_vitro-view-part_3j_gZpl"};
|
|
59949
60004
|
|
|
59950
60005
|
var ViewPart = function ViewPart(props) {
|
|
59951
60006
|
var _useState = React.useState(null),
|
|
@@ -59961,29 +60016,29 @@ var ViewPart = function ViewPart(props) {
|
|
|
59961
60016
|
}
|
|
59962
60017
|
}, [props.component, props.settings, props.item]);
|
|
59963
60018
|
return React__default.createElement("div", {
|
|
59964
|
-
className: styles$
|
|
60019
|
+
className: styles$9["vitro-view-part"]
|
|
59965
60020
|
}, component);
|
|
59966
60021
|
};
|
|
59967
60022
|
|
|
59968
|
-
var styles$
|
|
60023
|
+
var styles$a = {"vitro-view":"_view_vitro-view_1NKb-kU"};
|
|
59969
60024
|
|
|
59970
|
-
var styles$
|
|
60025
|
+
var styles$b = {"vitro-dropdown-button":"_dropdown-button_vitro-dropdown-button_1myvkhB","vitro-dropdown-icon":"_dropdown-button_vitro-dropdown-icon_2aKCNii","vitro-text":"_dropdown-button_vitro-text_1FRiwp0","vitro-dropdown-button-item-overflow":"_dropdown-button_vitro-dropdown-button-item-overflow_2aWEhD4","vitro-icon":"_dropdown-button_vitro-icon_2NCEoeb","dropdown-item":"_dropdown-button_dropdown-item_1c2DhhE"};
|
|
59971
60026
|
|
|
59972
|
-
var w$
|
|
60027
|
+
var w$4 = window;
|
|
59973
60028
|
var ALIGN_END = 'end';
|
|
59974
60029
|
var POSITION_ABSOLUTE = 'absolute';
|
|
59975
60030
|
var DropdownButton = function DropdownButton(props) {
|
|
59976
60031
|
React.useEffect(function () {
|
|
59977
60032
|
return function () {
|
|
59978
|
-
w$
|
|
60033
|
+
w$4.$('body > .dropdown-menu').remove();
|
|
59979
60034
|
};
|
|
59980
60035
|
}, []);
|
|
59981
60036
|
var hideMenu = function hideMenu() {
|
|
59982
|
-
var button = w$
|
|
60037
|
+
var button = w$4.$('.vitro-dropdown-button-active');
|
|
59983
60038
|
if (button.length > 0) {
|
|
59984
60039
|
button.removeClass('vitro-dropdown-button-active');
|
|
59985
60040
|
if (button.next().length < 1) {
|
|
59986
|
-
button.after(w$
|
|
60041
|
+
button.after(w$4.$('body > .dropdown-menu').css({
|
|
59987
60042
|
position: false,
|
|
59988
60043
|
left: false,
|
|
59989
60044
|
top: false
|
|
@@ -59995,10 +60050,10 @@ var DropdownButton = function DropdownButton(props) {
|
|
|
59995
60050
|
if (props.isIgnoreOverflow) {
|
|
59996
60051
|
if (state) {
|
|
59997
60052
|
hideMenu();
|
|
59998
|
-
var target = w$
|
|
60053
|
+
var target = w$4.$(e.currentTarget);
|
|
59999
60054
|
var menu = target.next();
|
|
60000
60055
|
if (menu.length > 0) {
|
|
60001
|
-
w$
|
|
60056
|
+
w$4.$('body').append(menu.css({
|
|
60002
60057
|
position: POSITION_ABSOLUTE,
|
|
60003
60058
|
left: menu.offset().left,
|
|
60004
60059
|
top: menu.offset().top
|
|
@@ -60018,10 +60073,10 @@ var DropdownButton = function DropdownButton(props) {
|
|
|
60018
60073
|
return !x.isOverflow;
|
|
60019
60074
|
});
|
|
60020
60075
|
return React__default.createElement("div", {
|
|
60021
|
-
className: styles$
|
|
60076
|
+
className: styles$b['vitro-dropdown-button'] + CTRL.SPACE + (props.className || CTRL.EMPTY)
|
|
60022
60077
|
}, overflowItemList.map(function (item) {
|
|
60023
60078
|
return React__default.createElement("div", {
|
|
60024
|
-
className: styles$
|
|
60079
|
+
className: styles$b['vitro-dropdown-button-item-overflow'],
|
|
60025
60080
|
key: item.key,
|
|
60026
60081
|
onClick: function onClick(e) {
|
|
60027
60082
|
return item.onClick(item.value, e);
|
|
@@ -60029,15 +60084,15 @@ var DropdownButton = function DropdownButton(props) {
|
|
|
60029
60084
|
}, item.imageUrl && React__default.createElement(Icon, {
|
|
60030
60085
|
defaultUrl: item.imageUrl,
|
|
60031
60086
|
hoverUrl: item.imageHoverUrl,
|
|
60032
|
-
className: styles$
|
|
60087
|
+
className: styles$b['vitro-icon']
|
|
60033
60088
|
}), React__default.createElement("span", null, item.text));
|
|
60034
60089
|
}), dropItemList.length > 0 && React__default.createElement(BootstrapDropdown, {
|
|
60035
60090
|
align: ALIGN_END,
|
|
60036
60091
|
onToggle: onDropdownToggle
|
|
60037
60092
|
}, React__default.createElement(BootstrapDropdown.Toggle, null, props.title && React__default.createElement("span", {
|
|
60038
|
-
className: styles$
|
|
60093
|
+
className: styles$b['vitro-title']
|
|
60039
60094
|
}, props.title), React__default.createElement("span", {
|
|
60040
|
-
className: styles$
|
|
60095
|
+
className: styles$b['vitro-dropdown-icon']
|
|
60041
60096
|
}, props.title)), React__default.createElement(BootstrapDropdown.Menu, {
|
|
60042
60097
|
renderOnMount: true,
|
|
60043
60098
|
flip: false
|
|
@@ -60051,7 +60106,7 @@ var DropdownButton = function DropdownButton(props) {
|
|
|
60051
60106
|
item: x,
|
|
60052
60107
|
isConfirm: true
|
|
60053
60108
|
}, React__default.createElement("a", {
|
|
60054
|
-
className: styles$
|
|
60109
|
+
className: styles$b['dropdown-item'],
|
|
60055
60110
|
role: 'button'
|
|
60056
60111
|
}, x.text)) : React__default.createElement(BootstrapDropdown.Item, {
|
|
60057
60112
|
key: x.key,
|
|
@@ -60062,17 +60117,17 @@ var DropdownButton = function DropdownButton(props) {
|
|
|
60062
60117
|
}, x.imageUrl && React__default.createElement(Icon, {
|
|
60063
60118
|
defaultUrl: x.imageUrl,
|
|
60064
60119
|
hoverUrl: x.imageHoverUrl,
|
|
60065
|
-
className: styles$
|
|
60120
|
+
className: styles$b['vitro-icon']
|
|
60066
60121
|
}), React__default.createElement("span", null, x.text));
|
|
60067
60122
|
}))));
|
|
60068
60123
|
};
|
|
60069
60124
|
|
|
60070
|
-
var styles$
|
|
60125
|
+
var styles$c = {"vitro-tab":"_tab-group_vitro-tab_1Qb50HL","vitro-item":"_tab-group_vitro-item_2YnBcmb","active":"_tab-group_active_3M-IIR2","vitro-dropdown-button":"_tab-group_vitro-dropdown-button_146jv_h"};
|
|
60071
60126
|
|
|
60072
60127
|
var OverflowButton = function OverflowButton(props) {
|
|
60073
60128
|
if (!props.list || !props.list.length) return null;
|
|
60074
60129
|
return React__default.createElement(DropdownButton, {
|
|
60075
|
-
className: styles$
|
|
60130
|
+
className: styles$c['vitro-dropdown-button'],
|
|
60076
60131
|
itemList: props.list.map(function (x, i) {
|
|
60077
60132
|
return _extends({}, x, {
|
|
60078
60133
|
value: props.offset + i,
|
|
@@ -60088,9 +60143,9 @@ var OverflowButton = function OverflowButton(props) {
|
|
|
60088
60143
|
var Tab = function Tab(props) {
|
|
60089
60144
|
return React__default.createElement("div", {
|
|
60090
60145
|
key: props.index,
|
|
60091
|
-
className: styles$
|
|
60146
|
+
className: styles$c['vitro-item']
|
|
60092
60147
|
}, React__default.createElement(Nav$2.Item, {
|
|
60093
|
-
className: props.active ? styles$
|
|
60148
|
+
className: props.active ? styles$c['active'] : undefined,
|
|
60094
60149
|
onClick: function onClick() {
|
|
60095
60150
|
return props.onClick(props.index);
|
|
60096
60151
|
}
|
|
@@ -60125,7 +60180,7 @@ var TabGroupHeader = function TabGroupHeader(props) {
|
|
|
60125
60180
|
}));
|
|
60126
60181
|
};
|
|
60127
60182
|
|
|
60128
|
-
var w$
|
|
60183
|
+
var w$5 = window;
|
|
60129
60184
|
var TabGroupComponent = function TabGroupComponent(props) {
|
|
60130
60185
|
var _useState = React.useState(0),
|
|
60131
60186
|
width = _useState[0],
|
|
@@ -60147,8 +60202,8 @@ var TabGroupComponent = function TabGroupComponent(props) {
|
|
|
60147
60202
|
if (ref.current) {
|
|
60148
60203
|
setWidth(ref.current.offsetWidth);
|
|
60149
60204
|
if (props.wrap) {
|
|
60150
|
-
if (w$
|
|
60151
|
-
w$
|
|
60205
|
+
if (w$5.addResizeListener) {
|
|
60206
|
+
w$5.addResizeListener(ref.current, function () {
|
|
60152
60207
|
return setWidth(ref.current.offsetWidth);
|
|
60153
60208
|
});
|
|
60154
60209
|
}
|
|
@@ -60168,7 +60223,7 @@ var TabGroupComponent = function TabGroupComponent(props) {
|
|
|
60168
60223
|
}
|
|
60169
60224
|
}, [currentTab, props.itemList]);
|
|
60170
60225
|
return React__default.createElement("div", {
|
|
60171
|
-
className: styles$
|
|
60226
|
+
className: styles$c['vitro-tab'],
|
|
60172
60227
|
ref: ref
|
|
60173
60228
|
}, React__default.createElement(TabGroupHeader, {
|
|
60174
60229
|
itemList: props.itemList,
|
|
@@ -60189,10 +60244,10 @@ var tabScriptList = [{
|
|
|
60189
60244
|
id: 'vitro-script-perfect-scroll'
|
|
60190
60245
|
}];
|
|
60191
60246
|
|
|
60192
|
-
var w$
|
|
60247
|
+
var w$6 = window;
|
|
60193
60248
|
var TabGroup = function TabGroup(props) {
|
|
60194
60249
|
var scriptList = [];
|
|
60195
|
-
if (!w$
|
|
60250
|
+
if (!w$6.addResizeListener) {
|
|
60196
60251
|
scriptList = tabScriptList;
|
|
60197
60252
|
}
|
|
60198
60253
|
return props.wrap ? React__default.createElement(commonUi.ScriptLoader, {
|
|
@@ -60206,18 +60261,18 @@ var TabGroup = function TabGroup(props) {
|
|
|
60206
60261
|
}, React__default.createElement(TabGroupComponent, Object.assign({}, props))) : React__default.createElement(TabGroupComponent, Object.assign({}, props));
|
|
60207
60262
|
};
|
|
60208
60263
|
|
|
60209
|
-
var styles$
|
|
60264
|
+
var styles$d = {"vitro-control":"_control-group_vitro-control_2h_sXQv","vitro-control-row":"_control-group_vitro-control-row_6l8m5Wh","vitro-label":"_control-group_vitro-label_3J193Ml"};
|
|
60210
60265
|
|
|
60211
60266
|
var ControlGroup = function ControlGroup(props) {
|
|
60212
60267
|
if (props.horizontal) {
|
|
60213
60268
|
return React__default.createElement("div", {
|
|
60214
|
-
className: 'container ' + styles$
|
|
60269
|
+
className: 'container ' + styles$d['vitro-control']
|
|
60215
60270
|
}, React__default.createElement("div", {
|
|
60216
60271
|
className: props.as
|
|
60217
60272
|
}, props.children));
|
|
60218
60273
|
}
|
|
60219
60274
|
return React__default.createElement("div", {
|
|
60220
|
-
className: styles$
|
|
60275
|
+
className: styles$d['vitro-control-row']
|
|
60221
60276
|
}, props.children);
|
|
60222
60277
|
};
|
|
60223
60278
|
|
|
@@ -60245,7 +60300,7 @@ var View = function View(props) {
|
|
|
60245
60300
|
}
|
|
60246
60301
|
}, [props.tabList]);
|
|
60247
60302
|
return tabList && React__default.createElement("div", {
|
|
60248
|
-
className: styles$
|
|
60303
|
+
className: styles$a["vitro-view"]
|
|
60249
60304
|
}, React__default.createElement(TabGroup, {
|
|
60250
60305
|
itemList: tabList,
|
|
60251
60306
|
wrap: true
|
|
@@ -60264,17 +60319,17 @@ var GetGroupControl = function GetGroupControl(props) {
|
|
|
60264
60319
|
}));
|
|
60265
60320
|
};
|
|
60266
60321
|
|
|
60267
|
-
var styles$
|
|
60322
|
+
var styles$e = {"vitro-label":"_label_vitro-label_it8WNUE","vitro-required":"_label_vitro-required_2-bSGif"};
|
|
60268
60323
|
|
|
60269
60324
|
var PX_UNIT$1 = 'px';
|
|
60270
60325
|
var Label = function Label(props) {
|
|
60271
60326
|
return React__default.createElement("div", {
|
|
60272
|
-
className: styles$
|
|
60327
|
+
className: styles$e['vitro-label'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
60273
60328
|
style: props.width ? {
|
|
60274
60329
|
width: props.width + PX_UNIT$1
|
|
60275
60330
|
} : undefined
|
|
60276
60331
|
}, props.text, props.isRequired && React__default.createElement("span", {
|
|
60277
|
-
className: styles$
|
|
60332
|
+
className: styles$e['vitro-required']
|
|
60278
60333
|
}, CTRL.ASTERISK));
|
|
60279
60334
|
};
|
|
60280
60335
|
|
|
@@ -60298,7 +60353,7 @@ var REGEXP;
|
|
|
60298
60353
|
REGEXP["INT"] = "^[0-9]+$";
|
|
60299
60354
|
})(REGEXP || (REGEXP = {}));
|
|
60300
60355
|
|
|
60301
|
-
var styles$
|
|
60356
|
+
var styles$f = {"vitro-control":"_input_vitro-control_1DmPFkF","vitro-focus":"_input_vitro-focus_1txynr8","vitro-label":"_input_vitro-label_2XBESiY","vitro-read-only":"_input_vitro-read-only_3f-cBbK","vitro-error":"_input_vitro-error_1T3dLzB","vitro-left-label":"_input_vitro-left-label_D9Fpvpd","vitro-error-text":"_input_vitro-error-text_QpZK56k","vitro-button-copy":"_input_vitro-button-copy_jjyktjx"};
|
|
60302
60357
|
|
|
60303
60358
|
var PX_UNIT$2 = 'px';
|
|
60304
60359
|
var Input = function Input(props) {
|
|
@@ -60329,7 +60384,7 @@ var Input = function Input(props) {
|
|
|
60329
60384
|
if (inputValue !== value) updateValue(value, true);
|
|
60330
60385
|
}, [props.value]);
|
|
60331
60386
|
React.useEffect(function () {
|
|
60332
|
-
setState(props.errorMessage ? styles$
|
|
60387
|
+
setState(props.errorMessage ? styles$f['vitro-error'] : CTRL.EMPTY);
|
|
60333
60388
|
}, [props.errorMessage]);
|
|
60334
60389
|
React.useEffect(function () {
|
|
60335
60390
|
var jsonStyle = {};
|
|
@@ -60370,7 +60425,7 @@ var Input = function Input(props) {
|
|
|
60370
60425
|
}
|
|
60371
60426
|
};
|
|
60372
60427
|
var onBlur = function onBlur(e) {
|
|
60373
|
-
setState(props.errorMessage ? styles$
|
|
60428
|
+
setState(props.errorMessage ? styles$f['vitro-error'] : CTRL.EMPTY);
|
|
60374
60429
|
if (props.onBlur) {
|
|
60375
60430
|
props.onBlur(e);
|
|
60376
60431
|
}
|
|
@@ -60379,7 +60434,7 @@ var Input = function Input(props) {
|
|
|
60379
60434
|
}
|
|
60380
60435
|
};
|
|
60381
60436
|
var onFocus = function onFocus(e) {
|
|
60382
|
-
setState(styles$
|
|
60437
|
+
setState(styles$f['vitro-focus']);
|
|
60383
60438
|
if (props.onFocus) {
|
|
60384
60439
|
props.onFocus(e);
|
|
60385
60440
|
}
|
|
@@ -60435,19 +60490,19 @@ var Input = function Input(props) {
|
|
|
60435
60490
|
});
|
|
60436
60491
|
if (props.isIcon) {
|
|
60437
60492
|
control = React__default.createElement("div", {
|
|
60438
|
-
className: styles$
|
|
60493
|
+
className: styles$f['vitro-icon-control'] + CTRL.SPACE + state
|
|
60439
60494
|
}, input);
|
|
60440
60495
|
} else {
|
|
60441
60496
|
control = input;
|
|
60442
60497
|
}
|
|
60443
60498
|
}
|
|
60444
60499
|
var getClassName = function getClassName() {
|
|
60445
|
-
var classList = [styles$
|
|
60500
|
+
var classList = [styles$f['vitro-control'], props.className];
|
|
60446
60501
|
if (props.isDisabled || props.isReadOnly) {
|
|
60447
|
-
classList.push(styles$
|
|
60502
|
+
classList.push(styles$f['vitro-read-only']);
|
|
60448
60503
|
}
|
|
60449
60504
|
if (props.labelPosition === POSITION.LEFT) {
|
|
60450
|
-
classList.push(styles$
|
|
60505
|
+
classList.push(styles$f['vitro-left-label']);
|
|
60451
60506
|
}
|
|
60452
60507
|
classList.push(state);
|
|
60453
60508
|
return classList.join(CTRL.SPACE);
|
|
@@ -60458,34 +60513,34 @@ var Input = function Input(props) {
|
|
|
60458
60513
|
text: props.label,
|
|
60459
60514
|
isRequired: props.isRequired,
|
|
60460
60515
|
width: props.labelWidth,
|
|
60461
|
-
className: styles$
|
|
60516
|
+
className: styles$f['vitro-label']
|
|
60462
60517
|
}), control, props.isReadOnly ? React__default.createElement("span", {
|
|
60463
|
-
className: styles$
|
|
60518
|
+
className: styles$f['vitro-button-copy'],
|
|
60464
60519
|
onClick: copyValue
|
|
60465
60520
|
}) : null, props.children, props.errorMessage && React__default.createElement("span", {
|
|
60466
|
-
className: styles$
|
|
60521
|
+
className: styles$f['vitro-error-text']
|
|
60467
60522
|
}, props.errorMessage));
|
|
60468
60523
|
};
|
|
60469
60524
|
|
|
60470
|
-
var styles$
|
|
60525
|
+
var styles$g = {"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"};
|
|
60471
60526
|
|
|
60472
60527
|
var IssueTileFooter = function IssueTileFooter(props) {
|
|
60473
60528
|
return React__default.createElement("div", {
|
|
60474
|
-
className: styles$
|
|
60529
|
+
className: styles$g['vitro-issue-tile-footer']
|
|
60475
60530
|
}, React__default.createElement("div", {
|
|
60476
|
-
className: styles$
|
|
60531
|
+
className: styles$g['vitro-issue-tile-status']
|
|
60477
60532
|
}, props.statusColor && React__default.createElement("div", {
|
|
60478
|
-
className: styles$
|
|
60533
|
+
className: styles$g['vitro-status-color'],
|
|
60479
60534
|
style: {
|
|
60480
60535
|
background: props.statusColor
|
|
60481
60536
|
}
|
|
60482
60537
|
}), props.status), props.onShowMoreClick && React__default.createElement("div", {
|
|
60483
60538
|
onClick: props.onShowMoreClick,
|
|
60484
|
-
className: styles$
|
|
60539
|
+
className: styles$g['vitro-button-more']
|
|
60485
60540
|
}));
|
|
60486
60541
|
};
|
|
60487
60542
|
|
|
60488
|
-
var styles$
|
|
60543
|
+
var styles$h = {"vitro-avatar":"_avatar_vitro-avatar_P2tU-_r","vitro-avatar-big":"_avatar_vitro-avatar-big_pEmlX3a"};
|
|
60489
60544
|
|
|
60490
60545
|
var Avatar = function Avatar(props) {
|
|
60491
60546
|
var getInitials = function getInitials() {
|
|
@@ -60526,7 +60581,7 @@ var Avatar = function Avatar(props) {
|
|
|
60526
60581
|
var getBgColor = function getBgColor(name) {
|
|
60527
60582
|
return "linear-gradient(0deg, hsla(" + getHue(name) + ", 58%, 55%, 1), hsla(" + (getHue(name) + 50) + ", 100%, 78%, 1))";
|
|
60528
60583
|
};
|
|
60529
|
-
var className = styles$
|
|
60584
|
+
var className = styles$h['vitro-avatar'] + (props.isBigSize ? CTRL.SPACE + styles$h['vitro-avatar-big'] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY);
|
|
60530
60585
|
return React__default.createElement("div", {
|
|
60531
60586
|
className: className,
|
|
60532
60587
|
style: {
|
|
@@ -60535,30 +60590,30 @@ var Avatar = function Avatar(props) {
|
|
|
60535
60590
|
}, getInitials());
|
|
60536
60591
|
};
|
|
60537
60592
|
|
|
60538
|
-
var styles$
|
|
60593
|
+
var styles$i = {"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"};
|
|
60539
60594
|
|
|
60540
60595
|
var VERSION = 'V';
|
|
60541
60596
|
var TARGET_BLANK = '_blank';
|
|
60542
60597
|
var IssueTileHeader = function IssueTileHeader(props) {
|
|
60543
60598
|
return React__default.createElement("div", {
|
|
60544
|
-
className: styles$
|
|
60599
|
+
className: styles$i['vitro-issue-tile-header']
|
|
60545
60600
|
}, React__default.createElement("a", {
|
|
60546
|
-
className: styles$
|
|
60601
|
+
className: styles$i['vitro-link'],
|
|
60547
60602
|
href: props.url,
|
|
60548
60603
|
target: TARGET_BLANK
|
|
60549
60604
|
}, CTRL.SHARP + props.id), React__default.createElement("div", {
|
|
60550
|
-
className: styles$
|
|
60605
|
+
className: styles$i['vitro-user-info']
|
|
60551
60606
|
}, React__default.createElement(Avatar, {
|
|
60552
60607
|
image: props.userImage,
|
|
60553
60608
|
userName: props.userName,
|
|
60554
|
-
className: styles$
|
|
60609
|
+
className: styles$i['vitro-avatar']
|
|
60555
60610
|
}), React__default.createElement("div", null, React__default.createElement("span", null, props.userName), React__default.createElement("span", null, props.date))), React__default.createElement("a", {
|
|
60556
|
-
className: styles$
|
|
60611
|
+
className: styles$i['vitro-link'],
|
|
60557
60612
|
href: props.fileVersionUrl,
|
|
60558
60613
|
target: TARGET_BLANK
|
|
60559
60614
|
}, VERSION + CTRL.SQUARE_BRACKET_OPEN + props.fileVersion + CTRL.SQUARE_BRACKET_CLOSE), props.actionList && props.actionList.length ? React__default.createElement(DropdownButton, {
|
|
60560
60615
|
itemList: props.actionList,
|
|
60561
|
-
className: styles$
|
|
60616
|
+
className: styles$i['vitro-dropdown-button']
|
|
60562
60617
|
}) : null);
|
|
60563
60618
|
};
|
|
60564
60619
|
|
|
@@ -60567,12 +60622,12 @@ var LOCALE$2;
|
|
|
60567
60622
|
LOCALE["TEXTAREA_LABEL"] = "app.common.issueTile.textareaLabel";
|
|
60568
60623
|
})(LOCALE$2 || (LOCALE$2 = {}));
|
|
60569
60624
|
|
|
60570
|
-
var styles$
|
|
60625
|
+
var styles$j = {"vitro-issue-tile":"_issue-tile_vitro-issue-tile_2D7E9Y-","vitro-control":"_issue-tile_vitro-control_3V6_Ze7"};
|
|
60571
60626
|
|
|
60572
60627
|
var IssueTile = function IssueTile(props) {
|
|
60573
60628
|
return React__default.createElement("div", {
|
|
60574
60629
|
id: 'vitro-issue-tile-' + props.id,
|
|
60575
|
-
className: styles$
|
|
60630
|
+
className: styles$j['vitro-issue-tile'] + (props.isActive ? CTRL.SPACE + styles$j['vitro-active'] : CTRL.EMPTY),
|
|
60576
60631
|
onClick: props.onClick
|
|
60577
60632
|
}, React__default.createElement(IssueTileHeader, {
|
|
60578
60633
|
id: props.id,
|
|
@@ -60587,7 +60642,7 @@ var IssueTile = function IssueTile(props) {
|
|
|
60587
60642
|
isMultiline: true,
|
|
60588
60643
|
label: props.createLocale(LOCALE$2.TEXTAREA_LABEL),
|
|
60589
60644
|
onBlur: props.onBlur,
|
|
60590
|
-
className: styles$
|
|
60645
|
+
className: styles$j['vitro-control'],
|
|
60591
60646
|
value: props.text,
|
|
60592
60647
|
rows: 7
|
|
60593
60648
|
}), React__default.createElement(IssueTileFooter, {
|
|
@@ -60597,7 +60652,7 @@ var IssueTile = function IssueTile(props) {
|
|
|
60597
60652
|
}));
|
|
60598
60653
|
};
|
|
60599
60654
|
|
|
60600
|
-
var w$
|
|
60655
|
+
var w$7 = window;
|
|
60601
60656
|
var Viewer = function Viewer(props) {
|
|
60602
60657
|
React.useEffect(function () {
|
|
60603
60658
|
if (props.context.file) {
|
|
@@ -60605,11 +60660,11 @@ var Viewer = function Viewer(props) {
|
|
|
60605
60660
|
}
|
|
60606
60661
|
}, [props.context.file]);
|
|
60607
60662
|
var init = function init() {
|
|
60608
|
-
if (w$
|
|
60663
|
+
if (w$7.initPdfViewer) {
|
|
60609
60664
|
var context = _extends({}, props.context, {
|
|
60610
60665
|
initIssueList: initIssueList
|
|
60611
60666
|
});
|
|
60612
|
-
w$
|
|
60667
|
+
w$7.initPdfViewer(context);
|
|
60613
60668
|
}
|
|
60614
60669
|
};
|
|
60615
60670
|
var initIssueList = function initIssueList() {
|
|
@@ -60632,10 +60687,10 @@ var Viewer = function Viewer(props) {
|
|
|
60632
60687
|
var markup = JSON.parse(issue.markup);
|
|
60633
60688
|
$('.body__sidebar-content').children().removeClass('vitro-active');
|
|
60634
60689
|
$(CTRL.SHARP + 'vitro-issue-tile-' + id).addClass('vitro-active');
|
|
60635
|
-
var numPages = w$
|
|
60690
|
+
var numPages = w$7.PDFViewerApplication.pagesCount;
|
|
60636
60691
|
if (markup && markup.pageNr <= numPages && markup.pageNr >= 1) {
|
|
60637
|
-
if (markup.pageNr != w$
|
|
60638
|
-
w$
|
|
60692
|
+
if (markup.pageNr != w$7.PDFViewerApplication.pdfViewer.currentPageNumber) {
|
|
60693
|
+
w$7.PDFViewerApplication.page = markup.pageNr;
|
|
60639
60694
|
}
|
|
60640
60695
|
if ($(CTRL.SHARP + id).length) {
|
|
60641
60696
|
scrollToMarkup(id);
|
|
@@ -60681,7 +60736,7 @@ var PdfViewer = function PdfViewer(props) {
|
|
|
60681
60736
|
}));
|
|
60682
60737
|
};
|
|
60683
60738
|
|
|
60684
|
-
var styles$
|
|
60739
|
+
var styles$k = {"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"};
|
|
60685
60740
|
|
|
60686
60741
|
var Checkbox = function Checkbox(props) {
|
|
60687
60742
|
var _useState = React.useState(props.value ? true : false),
|
|
@@ -60694,14 +60749,14 @@ var Checkbox = function Checkbox(props) {
|
|
|
60694
60749
|
React.useEffect(function () {
|
|
60695
60750
|
setValue(props.value ? true : false);
|
|
60696
60751
|
}, [props.value]);
|
|
60697
|
-
var className = styles$
|
|
60752
|
+
var className = styles$k['vitro-control'] + (props.labelPosition === POSITION.LEFT ? CTRL.SPACE + styles$k['vitro-left-label'] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY);
|
|
60698
60753
|
return React__default.createElement("div", {
|
|
60699
60754
|
className: className
|
|
60700
60755
|
}, props.labelPosition === POSITION.LEFT && React__default.createElement(Label, {
|
|
60701
60756
|
text: props.label,
|
|
60702
|
-
className: styles$
|
|
60757
|
+
className: styles$k['vitro-label']
|
|
60703
60758
|
}), React__default.createElement("div", {
|
|
60704
|
-
className: styles$
|
|
60759
|
+
className: styles$k['vitro-checkbox-content']
|
|
60705
60760
|
}, React__default.createElement("input", {
|
|
60706
60761
|
disabled: props.isDisabled,
|
|
60707
60762
|
type: 'checkbox',
|
|
@@ -60710,7 +60765,7 @@ var Checkbox = function Checkbox(props) {
|
|
|
60710
60765
|
onChange: onChange
|
|
60711
60766
|
}), props.labelPosition !== POSITION.LEFT && React__default.createElement(Label, {
|
|
60712
60767
|
text: props.label,
|
|
60713
|
-
className: styles$
|
|
60768
|
+
className: styles$k['vitro-label']
|
|
60714
60769
|
})));
|
|
60715
60770
|
};
|
|
60716
60771
|
|
|
@@ -60735,7 +60790,7 @@ var INPUT_TYPE;
|
|
|
60735
60790
|
INPUT_TYPE["TEXT"] = "text";
|
|
60736
60791
|
})(INPUT_TYPE || (INPUT_TYPE = {}));
|
|
60737
60792
|
|
|
60738
|
-
var styles$
|
|
60793
|
+
var styles$l = {"vitro-login-layout":"_login_vitro-login-layout_1C8owlz","vitro-form-login":"_login_vitro-form-login_2nyw95B","vitro-logo":"_login_vitro-logo_3-qTjgy","vitro-title":"_login_vitro-title_nfoHltS","vitro-flex":"_login_vitro-flex_2CffX6W","vitro-link":"_login_vitro-link_az1ZWIc","vitro-separator":"_login_vitro-separator_2jHZJHO","vitro-login-control":"_login_vitro-login-control_cksptcC","vitro-error":"_login_vitro-error_1Nk25em","vitro-control":"_login_vitro-control_3YqxIR2","vitro-login-checkbox":"_login_vitro-login-checkbox_39NOnZg","vitro-button":"_login_vitro-button_2OCqKtD","vitro-button-show-password":"_login_vitro-button-show-password_3NpbpN5","vitro-button-hide-password":"_login_vitro-button-hide-password_27R-yFe","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"};
|
|
60739
60794
|
|
|
60740
60795
|
var LoginInput = function LoginInput(props) {
|
|
60741
60796
|
var _useState = React.useState(CTRL.EMPTY),
|
|
@@ -60744,7 +60799,7 @@ var LoginInput = function LoginInput(props) {
|
|
|
60744
60799
|
var _useState2 = React.useState(props.type || INPUT_TYPE.TEXT),
|
|
60745
60800
|
type = _useState2[0],
|
|
60746
60801
|
setType = _useState2[1];
|
|
60747
|
-
var _useState3 = React.useState(styles$
|
|
60802
|
+
var _useState3 = React.useState(styles$l['vitro-button-show-password']),
|
|
60748
60803
|
icon = _useState3[0],
|
|
60749
60804
|
setIcon = _useState3[1];
|
|
60750
60805
|
var _useState4 = React.useState(CTRL.EMPTY),
|
|
@@ -60761,7 +60816,7 @@ var LoginInput = function LoginInput(props) {
|
|
|
60761
60816
|
}, [props.isValidate]);
|
|
60762
60817
|
React.useEffect(function () {
|
|
60763
60818
|
if (props.error) {
|
|
60764
|
-
setState(styles$
|
|
60819
|
+
setState(styles$l['vitro-error']);
|
|
60765
60820
|
setError(props.error);
|
|
60766
60821
|
}
|
|
60767
60822
|
}, [props.error]);
|
|
@@ -60787,10 +60842,10 @@ var LoginInput = function LoginInput(props) {
|
|
|
60787
60842
|
var togglePassword = function togglePassword() {
|
|
60788
60843
|
if (type === INPUT_TYPE.PASSWORD) {
|
|
60789
60844
|
setType(INPUT_TYPE.TEXT);
|
|
60790
|
-
setIcon(styles$
|
|
60845
|
+
setIcon(styles$l['vitro-button-hide-password']);
|
|
60791
60846
|
} else {
|
|
60792
60847
|
setType(INPUT_TYPE.PASSWORD);
|
|
60793
|
-
setIcon(styles$
|
|
60848
|
+
setIcon(styles$l['vitro-button-show-password']);
|
|
60794
60849
|
}
|
|
60795
60850
|
};
|
|
60796
60851
|
var validate = function validate() {
|
|
@@ -60800,14 +60855,14 @@ var LoginInput = function LoginInput(props) {
|
|
|
60800
60855
|
fieldName: fieldName
|
|
60801
60856
|
});
|
|
60802
60857
|
setError(text);
|
|
60803
|
-
setState(styles$
|
|
60858
|
+
setState(styles$l['vitro-error']);
|
|
60804
60859
|
} else {
|
|
60805
60860
|
setError(CTRL.EMPTY);
|
|
60806
60861
|
setState(CTRL.EMPTY);
|
|
60807
60862
|
}
|
|
60808
60863
|
};
|
|
60809
60864
|
return React__default.createElement("div", {
|
|
60810
|
-
className: styles$
|
|
60865
|
+
className: styles$l['vitro-login-control'] + CTRL.SPACE + state
|
|
60811
60866
|
}, React__default.createElement(Input, {
|
|
60812
60867
|
type: type,
|
|
60813
60868
|
name: props.name,
|
|
@@ -60820,7 +60875,7 @@ var LoginInput = function LoginInput(props) {
|
|
|
60820
60875
|
onFocus: onFocus,
|
|
60821
60876
|
onBlur: onBlur,
|
|
60822
60877
|
errorMessage: error,
|
|
60823
|
-
className: styles$
|
|
60878
|
+
className: styles$l['vitro-control']
|
|
60824
60879
|
}), props.type === INPUT_TYPE.PASSWORD && React__default.createElement("span", {
|
|
60825
60880
|
className: icon,
|
|
60826
60881
|
onClick: togglePassword
|
|
@@ -60829,17 +60884,17 @@ var LoginInput = function LoginInput(props) {
|
|
|
60829
60884
|
|
|
60830
60885
|
var LoginFooter = function LoginFooter(props) {
|
|
60831
60886
|
return React__default.createElement("div", {
|
|
60832
|
-
className: styles$
|
|
60887
|
+
className: styles$l['vitro-footer']
|
|
60833
60888
|
}, React__default.createElement("div", {
|
|
60834
|
-
className: styles$
|
|
60889
|
+
className: styles$l['vitro-language']
|
|
60835
60890
|
}), React__default.createElement("ul", {
|
|
60836
|
-
className: styles$
|
|
60891
|
+
className: styles$l['vitro-link-list']
|
|
60837
60892
|
}, props.itemList && props.itemList.map(function (item) {
|
|
60838
60893
|
return React__default.createElement("li", null, React__default.createElement("a", {
|
|
60839
60894
|
href: item.url
|
|
60840
60895
|
}, item.text));
|
|
60841
60896
|
})), React__default.createElement("div", {
|
|
60842
|
-
className: styles$
|
|
60897
|
+
className: styles$l['vitro-copyright']
|
|
60843
60898
|
}, props.copyright));
|
|
60844
60899
|
};
|
|
60845
60900
|
|
|
@@ -60895,13 +60950,13 @@ var Login = function Login(props) {
|
|
|
60895
60950
|
}
|
|
60896
60951
|
};
|
|
60897
60952
|
return React__default.createElement("div", {
|
|
60898
|
-
className: styles$
|
|
60953
|
+
className: styles$l['vitro-login-layout']
|
|
60899
60954
|
}, React__default.createElement("div", {
|
|
60900
|
-
className: styles$
|
|
60955
|
+
className: styles$l['vitro-form-login']
|
|
60901
60956
|
}, React__default.createElement("div", {
|
|
60902
|
-
className: styles$
|
|
60957
|
+
className: styles$l['vitro-logo']
|
|
60903
60958
|
}), React__default.createElement("div", {
|
|
60904
|
-
className: styles$
|
|
60959
|
+
className: styles$l['vitro-title']
|
|
60905
60960
|
}, localeService.create(LOCALE$3.TITLE)), React__default.createElement(LoginInput, {
|
|
60906
60961
|
label: localeService.create(LOCALE$3.PLACEHOLDER_NAME),
|
|
60907
60962
|
name: FIELD_USER_NAME,
|
|
@@ -60924,24 +60979,24 @@ var Login = function Login(props) {
|
|
|
60924
60979
|
isValidate: validateData,
|
|
60925
60980
|
error: error[FIELD_PASSWORD]
|
|
60926
60981
|
}), React__default.createElement("div", {
|
|
60927
|
-
className: styles$
|
|
60982
|
+
className: styles$l['vitro-flex']
|
|
60928
60983
|
}, React__default.createElement(Checkbox, {
|
|
60929
60984
|
label: localeService.create(LOCALE$3.ACTION_SAVE_DATA),
|
|
60930
60985
|
name: CHECKBOX_SAVE_DATA,
|
|
60931
60986
|
onChange: props.onSaveData,
|
|
60932
|
-
className: styles$
|
|
60987
|
+
className: styles$l['vitro-login-checkbox']
|
|
60933
60988
|
}), React__default.createElement("a", {
|
|
60934
|
-
className: styles$
|
|
60989
|
+
className: styles$l['vitro-link'],
|
|
60935
60990
|
onClick: props.onResetPassword
|
|
60936
60991
|
}, localeService.create(LOCALE$3.ACTION_RESET_PASSWORD))), React__default.createElement(Button$2, {
|
|
60937
|
-
className: styles$
|
|
60992
|
+
className: styles$l['vitro-button'],
|
|
60938
60993
|
text: localeService.create(LOCALE$3.ACTION_LOGIN),
|
|
60939
60994
|
onClick: submit,
|
|
60940
60995
|
isDisabled: loading
|
|
60941
60996
|
}), React__default.createElement("div", {
|
|
60942
|
-
className: styles$
|
|
60997
|
+
className: styles$l['vitro-separator']
|
|
60943
60998
|
}, localeService.create(LOCALE$3.SEPARATOR_TEXT)), React__default.createElement("a", {
|
|
60944
|
-
className: styles$
|
|
60999
|
+
className: styles$l['vitro-link'],
|
|
60945
61000
|
onClick: props.onRegister
|
|
60946
61001
|
}, localeService.create(LOCALE$3.ACTION_REGISTER))), React__default.createElement(LoginFooter, {
|
|
60947
61002
|
copyright: props.copyright || localeService.create(LOCALE$3.COPYRIGHT),
|
|
@@ -60965,7 +61020,7 @@ var LABEL_POSITION;
|
|
|
60965
61020
|
LABEL_POSITION["LEFT"] = "left";
|
|
60966
61021
|
})(LABEL_POSITION || (LABEL_POSITION = {}));
|
|
60967
61022
|
|
|
60968
|
-
var styles$
|
|
61023
|
+
var styles$m = {"vitro-control":"_date-picker_vitro-control_2AYXegb","vitro-button-copy":"_date-picker_vitro-button-copy_1cGY1Uu","vitro-control-container":"_date-picker_vitro-control-container_2CVwecs","vitro-focus":"_date-picker_vitro-focus_2cJKcKr","vitro-label":"_date-picker_vitro-label_2jh9qxb","vitro-read-only":"_date-picker_vitro-read-only_2NZoMN5","vitro-error":"_date-picker_vitro-error_3DkgZiN","vitro-left-label":"_date-picker_vitro-left-label_ZFhZFS9","vitro-error-text":"_date-picker_vitro-error-text_15CdrRj"};
|
|
60969
61024
|
|
|
60970
61025
|
var $$3 = window.$;
|
|
60971
61026
|
var DatePicker = function DatePicker(props) {
|
|
@@ -61031,24 +61086,24 @@ var DatePicker = function DatePicker(props) {
|
|
|
61031
61086
|
if (props.maxValue) $$3(ref.current).data(componentName).max(props.maxValue);
|
|
61032
61087
|
}, [props.maxValue]);
|
|
61033
61088
|
React.useEffect(function () {
|
|
61034
|
-
props.errorMessage ? setState(styles$
|
|
61089
|
+
props.errorMessage ? setState(styles$m['vitro-error']) : setState(CTRL.EMPTY);
|
|
61035
61090
|
}, [props.errorMessage]);
|
|
61036
61091
|
var onFocus = function onFocus() {
|
|
61037
|
-
setState(styles$
|
|
61092
|
+
setState(styles$m['vitro-focus']);
|
|
61038
61093
|
};
|
|
61039
61094
|
var onBlur = function onBlur() {
|
|
61040
|
-
setState(props.errorMessage ? styles$
|
|
61095
|
+
setState(props.errorMessage ? styles$m['vitro-error'] : styles$m[CTRL.EMPTY]);
|
|
61041
61096
|
};
|
|
61042
61097
|
var copyValue = function copyValue() {
|
|
61043
61098
|
navigator.clipboard.writeText("" + props.value);
|
|
61044
61099
|
};
|
|
61045
61100
|
var getClassName = function getClassName() {
|
|
61046
|
-
var classList = [styles$
|
|
61101
|
+
var classList = [styles$m['vitro-control'], props.className];
|
|
61047
61102
|
if (props.isDisabled || props.isReadOnly) {
|
|
61048
|
-
classList.push(styles$
|
|
61103
|
+
classList.push(styles$m['vitro-read-only']);
|
|
61049
61104
|
}
|
|
61050
61105
|
if (props.labelPosition === POSITION.LEFT) {
|
|
61051
|
-
classList.push(styles$
|
|
61106
|
+
classList.push(styles$m['vitro-left-label']);
|
|
61052
61107
|
}
|
|
61053
61108
|
classList.push(state);
|
|
61054
61109
|
return classList.join(CTRL.SPACE);
|
|
@@ -61059,20 +61114,20 @@ var DatePicker = function DatePicker(props) {
|
|
|
61059
61114
|
text: props.label,
|
|
61060
61115
|
isRequired: props.isRequired,
|
|
61061
61116
|
width: props.labelWidth,
|
|
61062
|
-
className: styles$
|
|
61117
|
+
className: styles$m['vitro-label']
|
|
61063
61118
|
}), React__default.createElement("input", {
|
|
61064
61119
|
ref: ref,
|
|
61065
61120
|
placeholder: props.placeholder,
|
|
61066
61121
|
onFocus: onFocus,
|
|
61067
61122
|
onBlur: onBlur
|
|
61068
61123
|
}), props.isReadOnly ? React__default.createElement("span", {
|
|
61069
|
-
className: styles$
|
|
61124
|
+
className: styles$m['vitro-button-copy'],
|
|
61070
61125
|
onClick: copyValue
|
|
61071
61126
|
}) : null, React__default.createElement("div", {
|
|
61072
61127
|
ref: container,
|
|
61073
|
-
className: styles$
|
|
61128
|
+
className: styles$m['vitro-control-container']
|
|
61074
61129
|
}), props.errorMessage && React__default.createElement("span", {
|
|
61075
|
-
className: styles$
|
|
61130
|
+
className: styles$m['vitro-error-text']
|
|
61076
61131
|
}, props.errorMessage));
|
|
61077
61132
|
};
|
|
61078
61133
|
|
|
@@ -61093,7 +61148,7 @@ var COMPONENT_TYPE;
|
|
|
61093
61148
|
COMPONENT_TYPE["MODERN"] = "modern";
|
|
61094
61149
|
})(COMPONENT_TYPE || (COMPONENT_TYPE = {}));
|
|
61095
61150
|
|
|
61096
|
-
var styles$
|
|
61151
|
+
var styles$n = {"vitro-control":"_time-picker_vitro-control_1sx07It","vitro-button-copy":"_time-picker_vitro-button-copy_QZg3bTW","vitro-control-container":"_time-picker_vitro-control-container_3ys3rMN","vitro-focus":"_time-picker_vitro-focus_wmhPjvE","vitro-label":"_time-picker_vitro-label_2b97aCy","vitro-error":"_time-picker_vitro-error_2ZmK0I5","vitro-read-only":"_time-picker_vitro-read-only_NlE18Zm","vitro-left-label":"_time-picker_vitro-left-label_3NRmFYH","vitro-error-text":"_time-picker_vitro-error-text_2BNoBKW"};
|
|
61097
61152
|
|
|
61098
61153
|
var $$4 = window.$;
|
|
61099
61154
|
var TimePicker = function TimePicker(props) {
|
|
@@ -61139,21 +61194,21 @@ var TimePicker = function TimePicker(props) {
|
|
|
61139
61194
|
$$4(ref.current).data(componentName).value(props.value);
|
|
61140
61195
|
}, [props.value]);
|
|
61141
61196
|
var onFocus = function onFocus() {
|
|
61142
|
-
setState(styles$
|
|
61197
|
+
setState(styles$n['vitro-focus']);
|
|
61143
61198
|
};
|
|
61144
61199
|
var onBlur = function onBlur() {
|
|
61145
|
-
setState(props.errorMessage ? styles$
|
|
61200
|
+
setState(props.errorMessage ? styles$n['vitro-error'] : styles$n[CTRL.EMPTY]);
|
|
61146
61201
|
};
|
|
61147
61202
|
var copyValue = function copyValue() {
|
|
61148
61203
|
navigator.clipboard.writeText("" + props.value);
|
|
61149
61204
|
};
|
|
61150
61205
|
var getClassName = function getClassName() {
|
|
61151
|
-
var classList = [styles$
|
|
61206
|
+
var classList = [styles$n['vitro-control'], props.className];
|
|
61152
61207
|
if (props.isDisabled || props.isReadOnly) {
|
|
61153
|
-
classList.push(styles$
|
|
61208
|
+
classList.push(styles$n['vitro-read-only']);
|
|
61154
61209
|
}
|
|
61155
61210
|
if (props.labelPosition === POSITION.LEFT) {
|
|
61156
|
-
classList.push(styles$
|
|
61211
|
+
classList.push(styles$n['vitro-left-label']);
|
|
61157
61212
|
}
|
|
61158
61213
|
classList.push(state);
|
|
61159
61214
|
return classList.join(CTRL.SPACE);
|
|
@@ -61164,24 +61219,24 @@ var TimePicker = function TimePicker(props) {
|
|
|
61164
61219
|
text: props.label,
|
|
61165
61220
|
isRequired: props.isRequired,
|
|
61166
61221
|
width: props.labelWidth,
|
|
61167
|
-
className: styles$
|
|
61222
|
+
className: styles$n['vitro-label']
|
|
61168
61223
|
}), React__default.createElement("input", {
|
|
61169
61224
|
ref: ref,
|
|
61170
61225
|
placeholder: props.placeholder,
|
|
61171
61226
|
onFocus: onFocus,
|
|
61172
61227
|
onBlur: onBlur
|
|
61173
61228
|
}), props.isReadOnly ? React__default.createElement("span", {
|
|
61174
|
-
className: styles$
|
|
61229
|
+
className: styles$n['vitro-button-copy'],
|
|
61175
61230
|
onClick: copyValue
|
|
61176
61231
|
}) : null, React__default.createElement("div", {
|
|
61177
61232
|
ref: container,
|
|
61178
|
-
className: styles$
|
|
61233
|
+
className: styles$n['vitro-control-container']
|
|
61179
61234
|
}), props.errorMessage && React__default.createElement("span", {
|
|
61180
|
-
className: styles$
|
|
61235
|
+
className: styles$n['vitro-error-text']
|
|
61181
61236
|
}, props.errorMessage));
|
|
61182
61237
|
};
|
|
61183
61238
|
|
|
61184
|
-
var styles$
|
|
61239
|
+
var styles$o = {"vitro-selected-item":"_lookup-picker-selected-item_vitro-selected-item_hw-euth"};
|
|
61185
61240
|
|
|
61186
61241
|
var htmlValueStyles = {"vitro-item-html-value":"_lookup-picker-html-value_vitro-item-html-value_2QBoTey"};
|
|
61187
61242
|
|
|
@@ -61190,7 +61245,7 @@ var SelectedValueList = function SelectedValueList(props) {
|
|
|
61190
61245
|
var title = props.selectedValueTemplate(x);
|
|
61191
61246
|
return React__default.createElement("div", {
|
|
61192
61247
|
key: x.id,
|
|
61193
|
-
className: styles$
|
|
61248
|
+
className: styles$o['vitro-selected-item'],
|
|
61194
61249
|
title: title
|
|
61195
61250
|
}, props.getHtmlValue ? React__default.createElement("div", {
|
|
61196
61251
|
className: htmlValueStyles['vitro-item-html-value']
|
|
@@ -61198,17 +61253,17 @@ var SelectedValueList = function SelectedValueList(props) {
|
|
|
61198
61253
|
onClick: function onClick() {
|
|
61199
61254
|
return props.onOptionValueDelete(x.id);
|
|
61200
61255
|
},
|
|
61201
|
-
className: styles$
|
|
61256
|
+
className: styles$o['vitro-button-close']
|
|
61202
61257
|
}));
|
|
61203
61258
|
}));
|
|
61204
61259
|
};
|
|
61205
61260
|
|
|
61206
|
-
var styles$
|
|
61261
|
+
var styles$p = {"vitro-value-list":"_lookup-picker-value-list_vitro-value-list_LSdCMjq","vitro-item":"_lookup-picker-value-list_vitro-item_7yZBz5u","vitro-item-html-value":"_lookup-picker-value-list_vitro-item-html-value_1yl9tXx","vitro-placeholder-empty":"_lookup-picker-value-list_vitro-placeholder-empty_fTVHWwc","vitro-keyword-highlight":"_lookup-picker-value-list_vitro-keyword-highlight_1uESHan","vitro-display-none":"_lookup-picker-value-list_vitro-display-none_2kDzC6K"};
|
|
61207
61262
|
|
|
61208
61263
|
var ValueListItem = function ValueListItem(props) {
|
|
61209
61264
|
return React__default.createElement("div", {
|
|
61210
61265
|
key: props.item.id,
|
|
61211
|
-
className: styles$
|
|
61266
|
+
className: styles$p['vitro-item'],
|
|
61212
61267
|
onClick: function onClick() {
|
|
61213
61268
|
return props.onSelect(props.item.id);
|
|
61214
61269
|
}
|
|
@@ -61234,12 +61289,12 @@ var ValueList = function ValueList(props) {
|
|
|
61234
61289
|
});
|
|
61235
61290
|
var createDisplayValue = function createDisplayValue(item) {
|
|
61236
61291
|
return props.inputValue ? props.filterValueTemplate(item).replace(reg, function (str) {
|
|
61237
|
-
return "<span class=" + styles$
|
|
61292
|
+
return "<span class=" + styles$p['vitro-keyword-highlight'] + ">" + str + '</span>';
|
|
61238
61293
|
}) : props.filterValueTemplate(item);
|
|
61239
61294
|
};
|
|
61240
61295
|
return React__default.createElement("div", {
|
|
61241
|
-
className: styles$
|
|
61242
|
-
}, React__default.createElement(
|
|
61296
|
+
className: styles$p['vitro-value-list'] + (props.isVisible ? CTRL.EMPTY : CTRL.SPACE + styles$p['vitro-display-none'])
|
|
61297
|
+
}, React__default.createElement(ScrollBar, {
|
|
61243
61298
|
onInit: setScrollableElement
|
|
61244
61299
|
}, props.isPending && React__default.createElement(commonUi.Progress, null), !props.isPending && React__default.createElement(React__default.Fragment, null, props.list.length > 0 ? props.list.map(function (x) {
|
|
61245
61300
|
return React__default.createElement(ValueListItem, {
|
|
@@ -61249,7 +61304,7 @@ var ValueList = function ValueList(props) {
|
|
|
61249
61304
|
htmlValue: props.getHtmlValue && props.getHtmlValue(x)
|
|
61250
61305
|
});
|
|
61251
61306
|
}) : React__default.createElement("div", {
|
|
61252
|
-
className: styles$
|
|
61307
|
+
className: styles$p['vitro-placeholder-empty']
|
|
61253
61308
|
}, props.emptyPlaceholder))));
|
|
61254
61309
|
};
|
|
61255
61310
|
|
|
@@ -61258,7 +61313,7 @@ var LOCALE$4;
|
|
|
61258
61313
|
LOCALE["PLACEHOLDER_EMPTY"] = "app.common.lookupPicker.empty";
|
|
61259
61314
|
})(LOCALE$4 || (LOCALE$4 = {}));
|
|
61260
61315
|
|
|
61261
|
-
var styles$
|
|
61316
|
+
var styles$q = {"vitro-lookup-picker":"_lookup-picker_vitro-lookup-picker_1aXYQEG","vitro-content":"_lookup-picker_vitro-content_37L0slb","vitro-focus":"_lookup-picker_vitro-focus_2UGpxXD","vitro-label":"_lookup-picker_vitro-label_2QoJkUz","vitro-read-only":"_lookup-picker_vitro-read-only_32NOdGB","vitro-error":"_lookup-picker_vitro-error_dF7iopC","vitro-error-text":"_lookup-picker_vitro-error-text_273lqvD","vitro-button-copy":"_lookup-picker_vitro-button-copy_2UIHHZD","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"};
|
|
61262
61317
|
|
|
61263
61318
|
var $$5 = window.$;
|
|
61264
61319
|
var LookupPicker = function LookupPicker(props) {
|
|
@@ -61281,7 +61336,7 @@ var LookupPicker = function LookupPicker(props) {
|
|
|
61281
61336
|
var _useState6 = React.useState(null),
|
|
61282
61337
|
valueListRequestToken = _useState6[0],
|
|
61283
61338
|
setValueListRequestToken = _useState6[1];
|
|
61284
|
-
var _useState7 = React.useState(props.isDisabled || props.isReadOnly ? styles$
|
|
61339
|
+
var _useState7 = React.useState(props.isDisabled || props.isReadOnly ? styles$q['vitro-read-only'] : CTRL.EMPTY),
|
|
61285
61340
|
state = _useState7[0],
|
|
61286
61341
|
setState = _useState7[1];
|
|
61287
61342
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
@@ -61358,7 +61413,7 @@ var LookupPicker = function LookupPicker(props) {
|
|
|
61358
61413
|
}
|
|
61359
61414
|
}, [selectedValueList]);
|
|
61360
61415
|
React.useEffect(function () {
|
|
61361
|
-
setState(props.errorMessage ? styles$
|
|
61416
|
+
setState(props.errorMessage ? styles$q['vitro-error'] : CTRL.EMPTY);
|
|
61362
61417
|
}, [props.errorMessage]);
|
|
61363
61418
|
var updateFilteredValueList = function updateFilteredValueList(valueList) {
|
|
61364
61419
|
var availableValueList = inputValue ? filteredValueList : valueList;
|
|
@@ -61379,8 +61434,9 @@ var LookupPicker = function LookupPicker(props) {
|
|
|
61379
61434
|
var selectedValueTemplate = function selectedValueTemplate(value) {
|
|
61380
61435
|
return props.selectedValueTemplate ? props.selectedValueTemplate(value) : value.title;
|
|
61381
61436
|
};
|
|
61382
|
-
var
|
|
61383
|
-
|
|
61437
|
+
var onChange = function onChange(e) {
|
|
61438
|
+
setState(styles$q['vitro-focus']);
|
|
61439
|
+
setInputValue(e.target.value);
|
|
61384
61440
|
};
|
|
61385
61441
|
var onKeyDown = function onKeyDown(e) {
|
|
61386
61442
|
var keyBoardBackSpace = 8;
|
|
@@ -61432,7 +61488,7 @@ var LookupPicker = function LookupPicker(props) {
|
|
|
61432
61488
|
};
|
|
61433
61489
|
var onFocusOut = function onFocusOut(e) {
|
|
61434
61490
|
var target = e.currentTarget;
|
|
61435
|
-
setState(props.errorMessage ? styles$
|
|
61491
|
+
setState(props.errorMessage ? styles$q['vitro-error'] : CTRL.EMPTY);
|
|
61436
61492
|
setTimeout(function () {
|
|
61437
61493
|
if (!target.contains(document.activeElement)) {
|
|
61438
61494
|
setValueListVisible(false);
|
|
@@ -61446,19 +61502,19 @@ var LookupPicker = function LookupPicker(props) {
|
|
|
61446
61502
|
});
|
|
61447
61503
|
};
|
|
61448
61504
|
var onFocus = function onFocus() {
|
|
61449
|
-
setState(styles$
|
|
61505
|
+
setState(styles$q['vitro-focus']);
|
|
61450
61506
|
setValueListVisible(true);
|
|
61451
61507
|
};
|
|
61452
61508
|
var copyValue = function copyValue() {
|
|
61453
61509
|
navigator.clipboard.writeText(selectedValueList.join(CTRL.COMMA));
|
|
61454
61510
|
};
|
|
61455
61511
|
var getClassName = function getClassName() {
|
|
61456
|
-
var classList = [styles$
|
|
61512
|
+
var classList = [styles$q['vitro-lookup-picker'], props.className];
|
|
61457
61513
|
if (props.isDisabled || props.isReadOnly) {
|
|
61458
|
-
classList.push(styles$
|
|
61514
|
+
classList.push(styles$q['vitro-read-only']);
|
|
61459
61515
|
}
|
|
61460
61516
|
if (props.isMultiSelect) {
|
|
61461
|
-
classList.push(styles$
|
|
61517
|
+
classList.push(styles$q['vitro-lookup-picker-multi-select']);
|
|
61462
61518
|
}
|
|
61463
61519
|
classList.push(state);
|
|
61464
61520
|
return classList.join(CTRL.SPACE);
|
|
@@ -61477,9 +61533,9 @@ var LookupPicker = function LookupPicker(props) {
|
|
|
61477
61533
|
text: props.label,
|
|
61478
61534
|
isRequired: props.isRequired,
|
|
61479
61535
|
width: props.labelWidth,
|
|
61480
|
-
className: styles$
|
|
61536
|
+
className: styles$q['vitro-label']
|
|
61481
61537
|
}), React__default.createElement("div", {
|
|
61482
|
-
className: styles$
|
|
61538
|
+
className: styles$q['vitro-content'],
|
|
61483
61539
|
onClick: onFocus
|
|
61484
61540
|
}, selectedValueList && selectedValueList.length > 0 && (props.isMultiSelect ? true : inputValue.length === 0) ? React__default.createElement(SelectedValueList, {
|
|
61485
61541
|
list: selectedValueList,
|
|
@@ -61491,14 +61547,14 @@ var LookupPicker = function LookupPicker(props) {
|
|
|
61491
61547
|
ref: inputRef,
|
|
61492
61548
|
value: inputValue,
|
|
61493
61549
|
onKeyDown: onKeyDown,
|
|
61494
|
-
onChange:
|
|
61550
|
+
onChange: onChange,
|
|
61495
61551
|
onClick: onFocus,
|
|
61496
61552
|
disabled: props.isDisabled,
|
|
61497
61553
|
readOnly: props.isReadOnly
|
|
61498
61554
|
}), !props.isDisabled && props.children, React__default.createElement("div", {
|
|
61499
|
-
className: styles$
|
|
61555
|
+
className: styles$q['vitro-right']
|
|
61500
61556
|
}, !props.isMultiSelect && selectedValueList && selectedValueList.length > 0 && !props.isDisabled && !props.isReadOnly && React__default.createElement("div", {
|
|
61501
|
-
className: styles$
|
|
61557
|
+
className: styles$q['vitro-button-close'],
|
|
61502
61558
|
onClick: function onClick() {
|
|
61503
61559
|
return onOptionValueDelete();
|
|
61504
61560
|
}
|
|
@@ -61506,9 +61562,9 @@ var LookupPicker = function LookupPicker(props) {
|
|
|
61506
61562
|
onClick: function onClick() {
|
|
61507
61563
|
return setValueListVisible(!valueListVisible);
|
|
61508
61564
|
},
|
|
61509
|
-
className: valueListVisible ? styles$
|
|
61565
|
+
className: valueListVisible ? styles$q['vitro-button-collapse-up'] : styles$q['vitro-button-collapse-bottom']
|
|
61510
61566
|
}), props.isReadOnly ? React__default.createElement("span", {
|
|
61511
|
-
className: styles$
|
|
61567
|
+
className: styles$q['vitro-button-copy'],
|
|
61512
61568
|
onClick: copyValue
|
|
61513
61569
|
}) : null)), !props.isDisabled && (!props.filterMinLength || props.filterMinLength <= inputValue.length) && React__default.createElement(ValueList, {
|
|
61514
61570
|
isPending: pending,
|
|
@@ -61520,38 +61576,38 @@ var LookupPicker = function LookupPicker(props) {
|
|
|
61520
61576
|
emptyPlaceholder: props.emptyPlaceholder || localeService.create(LOCALE$4.PLACEHOLDER_EMPTY),
|
|
61521
61577
|
getHtmlValue: getHtmlValue
|
|
61522
61578
|
}), props.errorMessage && React__default.createElement("span", {
|
|
61523
|
-
className: styles$
|
|
61579
|
+
className: styles$q['vitro-error-text']
|
|
61524
61580
|
}, props.errorMessage));
|
|
61525
61581
|
};
|
|
61526
61582
|
|
|
61527
|
-
var styles$
|
|
61583
|
+
var styles$r = {"vitro-command-menu":"_command-menu_vitro-command-menu_l82vtIh"};
|
|
61528
61584
|
|
|
61529
61585
|
var CommandMenu = function CommandMenu(props) {
|
|
61530
61586
|
return React__default.createElement("nav", {
|
|
61531
|
-
className: styles$
|
|
61587
|
+
className: styles$r['vitro-command-menu'] + CTRL.SPACE + 'navbar'
|
|
61532
61588
|
}, React__default.createElement("ul", {
|
|
61533
61589
|
className: 'nav'
|
|
61534
61590
|
}, props.children));
|
|
61535
61591
|
};
|
|
61536
61592
|
|
|
61537
|
-
var styles$
|
|
61593
|
+
var styles$s = {"vitro-command-menu-button":"_command-menu-button_vitro-command-menu-button_2IiXVbP","vitro-icon":"_command-menu-button_vitro-icon_1xB4d09"};
|
|
61538
61594
|
|
|
61539
61595
|
var CommandMenuButton = function CommandMenuButton(props) {
|
|
61540
61596
|
return React__default.createElement("li", null, React__default.createElement(Button$2, Object.assign({
|
|
61541
|
-
className: styles$
|
|
61542
|
-
imageClassName: styles$
|
|
61597
|
+
className: styles$s['vitro-command-menu-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
61598
|
+
imageClassName: styles$s['vitro-icon']
|
|
61543
61599
|
}, props)));
|
|
61544
61600
|
};
|
|
61545
61601
|
|
|
61546
61602
|
var itemStyles = {"vitro-item":"_command-menu-item_vitro-item_2pVhk23"};
|
|
61547
61603
|
|
|
61548
|
-
var styles$
|
|
61604
|
+
var styles$t = {"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"};
|
|
61549
61605
|
|
|
61550
61606
|
var CommandMenuLookupPicker = function CommandMenuLookupPicker(props) {
|
|
61551
61607
|
return React__default.createElement("li", {
|
|
61552
|
-
className: itemStyles['vitro-item'] + CTRL.SPACE + 'nav-item ' + styles$
|
|
61608
|
+
className: itemStyles['vitro-item'] + CTRL.SPACE + 'nav-item ' + styles$t['vitro-item-lookup-picker']
|
|
61553
61609
|
}, React__default.createElement(LookupPicker, Object.assign({}, props, {
|
|
61554
|
-
className: styles$
|
|
61610
|
+
className: styles$t['vitro-command-menu-lookup-picker'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
61555
61611
|
})));
|
|
61556
61612
|
};
|
|
61557
61613
|
|
|
@@ -63118,7 +63174,7 @@ UncontrolledDropdown.propTypes = _objectSpread$2({
|
|
|
63118
63174
|
onToggle: propTypes.func
|
|
63119
63175
|
}, Dropdown$2.propTypes);
|
|
63120
63176
|
|
|
63121
|
-
var styles$
|
|
63177
|
+
var styles$u = {"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-icon":"_command-menu-dropdown-button_vitro-icon_36InzPx","vitro-button-collapse-bottom":"_command-menu-dropdown-button_vitro-button-collapse-bottom_1OS_X_a"};
|
|
63122
63178
|
|
|
63123
63179
|
var CommandMenuSubItem = function CommandMenuSubItem(props) {
|
|
63124
63180
|
var onClick = function onClick(e) {
|
|
@@ -63139,7 +63195,7 @@ var CommandMenuSubItem = function CommandMenuSubItem(props) {
|
|
|
63139
63195
|
}, props.imageUrl && React__default.createElement(Icon, {
|
|
63140
63196
|
defaultUrl: props.imageUrl,
|
|
63141
63197
|
hoverUrl: props.imageHoverUrl,
|
|
63142
|
-
className: styles$
|
|
63198
|
+
className: styles$u['vitro-icon']
|
|
63143
63199
|
}), React__default.createElement("span", null, props.text));
|
|
63144
63200
|
};
|
|
63145
63201
|
|
|
@@ -63154,15 +63210,15 @@ var CommandMenuItemHeader = function CommandMenuItemHeader(props) {
|
|
|
63154
63210
|
onMouseLeave: function onMouseLeave() {
|
|
63155
63211
|
return setIsHover(false);
|
|
63156
63212
|
},
|
|
63157
|
-
className: itemStyles['vitro-item'] + CTRL.SPACE + styles$
|
|
63213
|
+
className: itemStyles['vitro-item'] + CTRL.SPACE + styles$u['vitro-command-menu-dropdown-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
63158
63214
|
"data-show": props.isVisibleFunction
|
|
63159
63215
|
}, props.imageUrl && React__default.createElement(Icon, {
|
|
63160
63216
|
isHover: isHover,
|
|
63161
63217
|
defaultUrl: props.imageUrl,
|
|
63162
63218
|
hoverUrl: props.imageHoverUrl,
|
|
63163
|
-
className: styles$
|
|
63219
|
+
className: styles$u['vitro-icon']
|
|
63164
63220
|
}), React__default.createElement("span", null, props.text), !props.isHideChevronDown && React__default.createElement("div", {
|
|
63165
|
-
className: styles$
|
|
63221
|
+
className: styles$u['vitro-button-collapse-bottom']
|
|
63166
63222
|
}));
|
|
63167
63223
|
};
|
|
63168
63224
|
|
|
@@ -63170,7 +63226,7 @@ var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
|
|
|
63170
63226
|
return React__default.createElement(UncontrolledDropdown, {
|
|
63171
63227
|
nav: true,
|
|
63172
63228
|
inNavbar: true,
|
|
63173
|
-
className: styles$
|
|
63229
|
+
className: styles$u['vitro-dropdown-button-container']
|
|
63174
63230
|
}, React__default.createElement(DropdownToggle$2, {
|
|
63175
63231
|
nav: true,
|
|
63176
63232
|
caret: true
|
|
@@ -63184,18 +63240,18 @@ var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
|
|
|
63184
63240
|
}), props.children));
|
|
63185
63241
|
};
|
|
63186
63242
|
|
|
63187
|
-
var styles$
|
|
63243
|
+
var styles$v = {"vitro-icon-text":"_sidebar-item_vitro-icon-text_3ROhyLK","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-icon":"_sidebar-item_vitro-icon_2B88tow","vitro-item":"_sidebar-item_vitro-item_1BR_7F0"};
|
|
63188
63244
|
|
|
63189
63245
|
var Item$1 = function Item(props) {
|
|
63190
63246
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", null, React__default.createElement(Icon, {
|
|
63191
63247
|
defaultUrl: props.imageUrl,
|
|
63192
63248
|
hoverUrl: props.imageHoverUrl,
|
|
63193
63249
|
isHover: props.isHover,
|
|
63194
|
-
className: styles$
|
|
63250
|
+
className: styles$v['vitro-icon']
|
|
63195
63251
|
}), React__default.createElement("span", {
|
|
63196
|
-
className: styles$
|
|
63252
|
+
className: styles$v['vitro-icon-text']
|
|
63197
63253
|
}, props.text)), React__default.createElement("span", {
|
|
63198
|
-
className: styles$
|
|
63254
|
+
className: styles$v['vitro-item-text']
|
|
63199
63255
|
}, props.text));
|
|
63200
63256
|
};
|
|
63201
63257
|
|
|
@@ -63205,7 +63261,7 @@ var TARGET;
|
|
|
63205
63261
|
TARGET["SELF"] = "_self";
|
|
63206
63262
|
})(TARGET || (TARGET = {}));
|
|
63207
63263
|
|
|
63208
|
-
var w$
|
|
63264
|
+
var w$8 = window;
|
|
63209
63265
|
var PX_UNIT$3 = 'px';
|
|
63210
63266
|
var WIDTH_AUTO = 'auto';
|
|
63211
63267
|
var LinkItem$1 = function LinkItem(props) {
|
|
@@ -63213,7 +63269,7 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
63213
63269
|
isHover = _useState[0],
|
|
63214
63270
|
setIsHover = _useState[1];
|
|
63215
63271
|
var isActive = props.link === props.currentUrl || props.activeItem === props.id;
|
|
63216
|
-
var className = isActive ? styles$
|
|
63272
|
+
var className = isActive ? styles$v['vitro-active'] : isHover ? styles$v['vitro-hover'] : CTRL.EMPTY;
|
|
63217
63273
|
var onClick = function onClick(e) {
|
|
63218
63274
|
if (props.link) {
|
|
63219
63275
|
var event = new CustomEvent(exports.EVENT.HISTORY_UPDATE, {
|
|
@@ -63234,7 +63290,7 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
63234
63290
|
style: {
|
|
63235
63291
|
width: props.linkItemWidth ? props.linkItemWidth + PX_UNIT$3 : WIDTH_AUTO
|
|
63236
63292
|
},
|
|
63237
|
-
className: styles$
|
|
63293
|
+
className: styles$v['vitro-item']
|
|
63238
63294
|
}, props.link && React__default.createElement("a", {
|
|
63239
63295
|
onClick: onClick,
|
|
63240
63296
|
className: className
|
|
@@ -63242,7 +63298,7 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
63242
63298
|
isHover: isHover || isActive
|
|
63243
63299
|
}))), props.onClick && React__default.createElement("a", {
|
|
63244
63300
|
onClick: function onClick() {
|
|
63245
|
-
return w$
|
|
63301
|
+
return w$8[props.onClick || CTRL.EMPTY]();
|
|
63246
63302
|
},
|
|
63247
63303
|
className: className
|
|
63248
63304
|
}, React__default.createElement(Item$1, Object.assign({}, props, {
|
|
@@ -63282,7 +63338,7 @@ var SectionList = React.forwardRef(function (props, ref) {
|
|
|
63282
63338
|
}));
|
|
63283
63339
|
});
|
|
63284
63340
|
|
|
63285
|
-
var styles$
|
|
63341
|
+
var styles$w = {"vitro-sidebar":"_sidebar_vitro-sidebar_1IxGYiU","vitro-scroll-container":"_sidebar_vitro-scroll-container_3K-iJy8","vitro-button-more":"_sidebar_vitro-button-more_3s9oZY9"};
|
|
63286
63342
|
|
|
63287
63343
|
var Sidebar = function Sidebar(props) {
|
|
63288
63344
|
var _useState = React.useState(window.location.pathname),
|
|
@@ -63357,7 +63413,7 @@ var Sidebar = function Sidebar(props) {
|
|
|
63357
63413
|
var width = containerWidth / count;
|
|
63358
63414
|
setLinkItemWidth(width);
|
|
63359
63415
|
};
|
|
63360
|
-
var className = styles$
|
|
63416
|
+
var className = styles$w['vitro-sidebar'] + (props.theme ? CTRL.SPACE + props.theme : CTRL.EMPTY) + CTRL.SPACE + (isMobileView ? 'vitro-bottom-menu' : CTRL.EMPTY);
|
|
63361
63417
|
return React__default.createElement("div", {
|
|
63362
63418
|
className: className,
|
|
63363
63419
|
id: 'vitro-sidebar'
|
|
@@ -63370,7 +63426,7 @@ var Sidebar = function Sidebar(props) {
|
|
|
63370
63426
|
currentUrl: currentUrl,
|
|
63371
63427
|
activeItem: props.activeItem
|
|
63372
63428
|
})) : React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
63373
|
-
className: styles$
|
|
63429
|
+
className: styles$w['vitro-scroll-container'],
|
|
63374
63430
|
ref: menuRef
|
|
63375
63431
|
}, React__default.createElement(SectionList, {
|
|
63376
63432
|
itemList: itemList,
|
|
@@ -63380,40 +63436,40 @@ var Sidebar = function Sidebar(props) {
|
|
|
63380
63436
|
linkItemWidth: linkItemWidth
|
|
63381
63437
|
})), React__default.createElement("button", {
|
|
63382
63438
|
onClick: scroll,
|
|
63383
|
-
className: styles$
|
|
63439
|
+
className: styles$w['vitro-button-more']
|
|
63384
63440
|
})));
|
|
63385
63441
|
};
|
|
63386
63442
|
|
|
63387
|
-
var styles$
|
|
63443
|
+
var styles$x = {"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"};
|
|
63388
63444
|
|
|
63389
63445
|
var TaskTile = function TaskTile(props) {
|
|
63390
63446
|
return React__default.createElement("div", {
|
|
63391
|
-
className: styles$
|
|
63447
|
+
className: styles$x['vitro-task-tile'] + (props.isActive ? CTRL.SPACE + styles$x['vitro-active'] : CTRL.EMPTY),
|
|
63392
63448
|
onClick: props.onClick
|
|
63393
63449
|
}, props.dropdownItemList && React__default.createElement("div", {
|
|
63394
|
-
className: styles$
|
|
63450
|
+
className: styles$x['vitro-top-right']
|
|
63395
63451
|
}, React__default.createElement(DropdownButton, {
|
|
63396
63452
|
itemList: props.dropdownItemList,
|
|
63397
|
-
className: styles$
|
|
63453
|
+
className: styles$x['vitro-dropdown-button']
|
|
63398
63454
|
})), props.isShowDeleteButton && React__default.createElement("div", {
|
|
63399
|
-
className: styles$
|
|
63455
|
+
className: styles$x['vitro-button-cancel'],
|
|
63400
63456
|
onClick: props.onDeleteClick
|
|
63401
63457
|
}), props.description && React__default.createElement("div", {
|
|
63402
|
-
className: styles$
|
|
63458
|
+
className: styles$x['vitro-description']
|
|
63403
63459
|
}, props.description), React__default.createElement("div", {
|
|
63404
|
-
className: styles$
|
|
63460
|
+
className: styles$x['vitro-title']
|
|
63405
63461
|
}, props.title), props.comment && React__default.createElement("div", {
|
|
63406
|
-
className: styles$
|
|
63462
|
+
className: styles$x['vitro-comment']
|
|
63407
63463
|
}, props.comment), React__default.createElement("div", {
|
|
63408
|
-
className: styles$
|
|
63464
|
+
className: styles$x['vitro-content']
|
|
63409
63465
|
}, props.userList && React__default.createElement(commonUi.TaskUserList, {
|
|
63410
63466
|
itemList: props.userList
|
|
63411
63467
|
})), React__default.createElement("div", {
|
|
63412
|
-
className: styles$
|
|
63468
|
+
className: styles$x['vitro-bottom-right']
|
|
63413
63469
|
}, props.dateComment, " \xA0 ", props.date), props.children);
|
|
63414
63470
|
};
|
|
63415
63471
|
|
|
63416
|
-
var styles$
|
|
63472
|
+
var styles$y = {"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"};
|
|
63417
63473
|
|
|
63418
63474
|
var Alert$1 = function Alert(props) {
|
|
63419
63475
|
var ref = React.useRef(null);
|
|
@@ -63445,7 +63501,7 @@ var Alert$1 = function Alert(props) {
|
|
|
63445
63501
|
}
|
|
63446
63502
|
};
|
|
63447
63503
|
var actionList = props.actionList && React__default.createElement("div", {
|
|
63448
|
-
className: styles$
|
|
63504
|
+
className: styles$y['vitro-alert-action-list']
|
|
63449
63505
|
}, props.actionList.map(function (a) {
|
|
63450
63506
|
return React__default.createElement(Button$1, {
|
|
63451
63507
|
key: a.text,
|
|
@@ -63454,7 +63510,7 @@ var Alert$1 = function Alert(props) {
|
|
|
63454
63510
|
}
|
|
63455
63511
|
}, a.text);
|
|
63456
63512
|
}));
|
|
63457
|
-
var className = styles$
|
|
63513
|
+
var className = styles$y['vitro-alert'] + CTRL.SPACE + (props.isPositionCenter && styles$y['vitro-position-center']) + CTRL.SPACE + (props.className ? props.className : CTRL.EMPTY);
|
|
63458
63514
|
return React__default.createElement("div", {
|
|
63459
63515
|
tabIndex: 1,
|
|
63460
63516
|
onBlur: onFocusOut,
|
|
@@ -63464,13 +63520,13 @@ var Alert$1 = function Alert(props) {
|
|
|
63464
63520
|
variant: props.type,
|
|
63465
63521
|
onClose: props.onClose
|
|
63466
63522
|
}, React__default.createElement("div", {
|
|
63467
|
-
className: styles$
|
|
63523
|
+
className: styles$y['vitro-alert-content']
|
|
63468
63524
|
}, React__default.createElement("div", {
|
|
63469
|
-
className: styles$
|
|
63525
|
+
className: styles$y['vitro-icon']
|
|
63470
63526
|
}), React__default.createElement("div", {
|
|
63471
|
-
className: styles$
|
|
63527
|
+
className: styles$y['vitro-text']
|
|
63472
63528
|
}, props.title && React__default.createElement("strong", null, props.title), props.text, !props.text && props.children), !props.isMultiline && actionList, props.isDismissible && React__default.createElement("div", {
|
|
63473
|
-
className: styles$
|
|
63529
|
+
className: styles$y['vitro-button-close'],
|
|
63474
63530
|
onClick: onClose
|
|
63475
63531
|
})), props.text && props.children, props.isMultiline && actionList));
|
|
63476
63532
|
};
|
|
@@ -63506,7 +63562,7 @@ var DialogHeader = function DialogHeader(props) {
|
|
|
63506
63562
|
|
|
63507
63563
|
var dialogStyles = {"vitro-dialog":"_dialog_vitro-dialog_2NzcRZg"};
|
|
63508
63564
|
|
|
63509
|
-
var styles$
|
|
63565
|
+
var styles$z = {"vitro-dialog-button-close":"_dialog-button-close_vitro-dialog-button-close_1p27cEz","vitro-button-close":"_dialog-button-close_vitro-button-close_2BpzTR0"};
|
|
63510
63566
|
|
|
63511
63567
|
var Dialog = function Dialog(props) {
|
|
63512
63568
|
var className = dialogStyles['vitro-dialog'];
|
|
@@ -63527,7 +63583,7 @@ var Dialog = function Dialog(props) {
|
|
|
63527
63583
|
width: props.width,
|
|
63528
63584
|
height: props.height
|
|
63529
63585
|
}, props.isDismissible && React__default.createElement("button", {
|
|
63530
|
-
className: styles$
|
|
63586
|
+
className: styles$z['vitro-dialog-button-close'],
|
|
63531
63587
|
onClick: onClose
|
|
63532
63588
|
}), React__default.createElement(DialogHeader, {
|
|
63533
63589
|
title: props.title
|
|
@@ -63536,19 +63592,19 @@ var Dialog = function Dialog(props) {
|
|
|
63536
63592
|
}) : React__default.cloneElement(props.children, _extends({}, props))));
|
|
63537
63593
|
};
|
|
63538
63594
|
|
|
63539
|
-
var styles$
|
|
63595
|
+
var styles$A = {"vitro-dialog-content":"_dialog-content_vitro-dialog-content_qQNWu6x"};
|
|
63540
63596
|
|
|
63541
63597
|
var DialogContent = function DialogContent(props) {
|
|
63542
63598
|
return React__default.createElement("div", {
|
|
63543
|
-
className: styles$
|
|
63599
|
+
className: styles$A['vitro-dialog-content']
|
|
63544
63600
|
}, props.children);
|
|
63545
63601
|
};
|
|
63546
63602
|
|
|
63547
|
-
var styles$
|
|
63603
|
+
var styles$B = {"vitro-dialog-button":"_dialog-button_vitro-dialog-button_1fQ5l22"};
|
|
63548
63604
|
|
|
63549
63605
|
var DialogButton = function DialogButton(props) {
|
|
63550
63606
|
return React__default.createElement(Button$2, Object.assign({}, props, {
|
|
63551
|
-
className: styles$
|
|
63607
|
+
className: styles$B['vitro-dialog-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
63552
63608
|
}));
|
|
63553
63609
|
};
|
|
63554
63610
|
|
|
@@ -63568,7 +63624,7 @@ var DialogCloseButton = function DialogCloseButton(props) {
|
|
|
63568
63624
|
onClick: props.onClose,
|
|
63569
63625
|
text: props.text,
|
|
63570
63626
|
isDisabled: props.isDisabled,
|
|
63571
|
-
className: styles$
|
|
63627
|
+
className: styles$z['vitro-button-close']
|
|
63572
63628
|
});
|
|
63573
63629
|
};
|
|
63574
63630
|
|
|
@@ -63579,14 +63635,14 @@ var LOCALE$5;
|
|
|
63579
63635
|
LOCALE["ACTION_SAVE"] = "app.common.action.save";
|
|
63580
63636
|
})(LOCALE$5 || (LOCALE$5 = {}));
|
|
63581
63637
|
|
|
63582
|
-
var styles$
|
|
63638
|
+
var styles$C = {"vitro-dialog-footer":"_dialog-footer_vitro-dialog-footer_2vUQ3aG"};
|
|
63583
63639
|
|
|
63584
63640
|
var DialogFooter = function DialogFooter(props) {
|
|
63585
63641
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
63586
63642
|
var labelClose = props.labelClose || localeService.create(props.onActionClick ? LOCALE$5.ACTION_CANCEL : LOCALE$5.ACTION_CLOSE);
|
|
63587
63643
|
var labelAction = props.labelAction || localeService.create(LOCALE$5.ACTION_SAVE);
|
|
63588
63644
|
return React__default.createElement("div", {
|
|
63589
|
-
className: styles$
|
|
63645
|
+
className: styles$C['vitro-dialog-footer']
|
|
63590
63646
|
}, props.children, props.onActionClick && React__default.createElement(DialogButton, {
|
|
63591
63647
|
text: labelAction,
|
|
63592
63648
|
onClick: props.onActionClick
|
|
@@ -63596,7 +63652,7 @@ var DialogFooter = function DialogFooter(props) {
|
|
|
63596
63652
|
}));
|
|
63597
63653
|
};
|
|
63598
63654
|
|
|
63599
|
-
var styles$
|
|
63655
|
+
var styles$D = {"vitro-user-profile":"_user-profile_vitro-user-profile_11XpBoQ","vitro-dropdown-item":"_user-profile_vitro-dropdown-item_dSErsta"};
|
|
63600
63656
|
|
|
63601
63657
|
var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
63602
63658
|
var onClick = function onClick() {
|
|
@@ -63607,7 +63663,7 @@ var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
|
63607
63663
|
};
|
|
63608
63664
|
if (props.link) {
|
|
63609
63665
|
return React__default.createElement("div", {
|
|
63610
|
-
className: styles$
|
|
63666
|
+
className: styles$D['vitro-dropdown-item'],
|
|
63611
63667
|
onClick: onClick
|
|
63612
63668
|
}, React__default.createElement("a", {
|
|
63613
63669
|
href: props.link
|
|
@@ -63618,7 +63674,7 @@ var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
|
63618
63674
|
}
|
|
63619
63675
|
if (props.onClick) {
|
|
63620
63676
|
return React__default.createElement("div", {
|
|
63621
|
-
className: styles$
|
|
63677
|
+
className: styles$D['vitro-dropdown-item'],
|
|
63622
63678
|
key: props.text,
|
|
63623
63679
|
onClick: onClick
|
|
63624
63680
|
}, props.imageUrl && React__default.createElement(Icon, {
|
|
@@ -63652,11 +63708,11 @@ var UserProfile = function UserProfile(props) {
|
|
|
63652
63708
|
return React__default.createElement(Dropdown$2, {
|
|
63653
63709
|
isOpen: dropdownOpen,
|
|
63654
63710
|
toggle: toggle,
|
|
63655
|
-
className: styles$
|
|
63711
|
+
className: styles$D['vitro-user-profile']
|
|
63656
63712
|
}, React__default.createElement(DropdownToggle$2, {
|
|
63657
63713
|
caret: true
|
|
63658
63714
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
|
63659
|
-
className: styles$
|
|
63715
|
+
className: styles$D['vitro-text-color-white']
|
|
63660
63716
|
}, createSurnameWithInitials(props.userName)), React__default.createElement(Avatar, {
|
|
63661
63717
|
userName: props.userName,
|
|
63662
63718
|
isBigSize: true
|
|
@@ -63676,48 +63732,48 @@ var UserLookupPicker = function UserLookupPicker(props) {
|
|
|
63676
63732
|
}));
|
|
63677
63733
|
};
|
|
63678
63734
|
|
|
63679
|
-
var styles$
|
|
63735
|
+
var styles$E = {"vitro-title":"_activity_vitro-title_1rdvvaa","vitro-dropdown-button":"_activity_vitro-dropdown-button_12258nJ","vitro-activity":"_activity_vitro-activity_1u7YeF3"};
|
|
63680
63736
|
|
|
63681
63737
|
var Activity = function Activity(props) {
|
|
63682
63738
|
return React__default.createElement("div", {
|
|
63683
63739
|
className: 'vitro-activity'
|
|
63684
63740
|
}, React__default.createElement("div", {
|
|
63685
|
-
className: styles$
|
|
63741
|
+
className: styles$E['vitro-title']
|
|
63686
63742
|
}, props.filterDropdownList && React__default.createElement(DropdownButton, {
|
|
63687
63743
|
itemList: props.filterDropdownList,
|
|
63688
|
-
className: styles$
|
|
63744
|
+
className: styles$E['vitro-dropdown-button']
|
|
63689
63745
|
}), React__default.createElement("h3", null, props.title)), React__default.createElement("div", {
|
|
63690
63746
|
className: 'vitro-content'
|
|
63691
63747
|
}, props.children));
|
|
63692
63748
|
};
|
|
63693
63749
|
|
|
63694
|
-
var styles$
|
|
63750
|
+
var styles$F = {"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"};
|
|
63695
63751
|
|
|
63696
63752
|
var ActivityItem = function ActivityItem(props) {
|
|
63697
63753
|
return React__default.createElement("div", {
|
|
63698
|
-
className: styles$
|
|
63754
|
+
className: styles$F['vitro-item'] + (props.isActive ? CTRL.SPACE + styles$F['vitro-active'] : CTRL.EMPTY)
|
|
63699
63755
|
}, React__default.createElement("div", {
|
|
63700
|
-
className: styles$
|
|
63756
|
+
className: styles$F['vitro-flex']
|
|
63701
63757
|
}, React__default.createElement(Avatar, {
|
|
63702
63758
|
userName: props.userName,
|
|
63703
63759
|
image: props.userImageUrl,
|
|
63704
|
-
className: styles$
|
|
63760
|
+
className: styles$F['vitro-avatar']
|
|
63705
63761
|
}), React__default.createElement("div", {
|
|
63706
|
-
className: styles$
|
|
63762
|
+
className: styles$F['vitro-content']
|
|
63707
63763
|
}, React__default.createElement("div", null, React__default.createElement("div", {
|
|
63708
|
-
className: styles$
|
|
63764
|
+
className: styles$F['vitro-title']
|
|
63709
63765
|
}, React__default.createElement("span", null, props.title || props.userName)), React__default.createElement("div", {
|
|
63710
|
-
className: styles$
|
|
63766
|
+
className: styles$F['vitro-message'] + (props.variant ? CTRL.SPACE + props.variant : CTRL.EMPTY)
|
|
63711
63767
|
}, React__default.createElement("p", {
|
|
63712
63768
|
dangerouslySetInnerHTML: {
|
|
63713
63769
|
__html: props.message
|
|
63714
63770
|
}
|
|
63715
63771
|
}), props.children)), props.isShowDetail && React__default.createElement("span", {
|
|
63716
|
-
className: styles$
|
|
63772
|
+
className: styles$F['vitro-due-date']
|
|
63717
63773
|
}, props.date)), props.isShowDetail && props.dropdownItemList && React__default.createElement(DropdownButton, {
|
|
63718
63774
|
itemList: props.dropdownItemList,
|
|
63719
63775
|
onToggle: props.onDropdownToggle,
|
|
63720
|
-
className: styles$
|
|
63776
|
+
className: styles$F['vitro-dropdown-button']
|
|
63721
63777
|
})));
|
|
63722
63778
|
};
|
|
63723
63779
|
|
|
@@ -63752,6 +63808,7 @@ exports.Login = Login;
|
|
|
63752
63808
|
exports.LookupPicker = LookupPicker;
|
|
63753
63809
|
exports.MicroFrontend = MicroFrontend;
|
|
63754
63810
|
exports.PdfViewer = PdfViewer;
|
|
63811
|
+
exports.ScrollBar = ScrollBar;
|
|
63755
63812
|
exports.Sidebar = Sidebar;
|
|
63756
63813
|
exports.TABLE_VIEW = TableViewConstants;
|
|
63757
63814
|
exports.TREE_VIEW = TreeViewConstants;
|