@vitrosoftware/common-ui-ts 1.1.70 → 1.1.72
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 +8 -0
- package/css/std/controls/action-handler/action-handler.css +2 -2
- package/css/std/controls/avatar/avatar.css +1 -1
- package/css/std/controls/breadcrumbs/breadcrumbs.css +19 -3
- package/css/std/controls/date-picker/date-picker.css +12 -0
- package/css/std/controls/dialog/dialog-content.css +1 -1
- package/css/std/controls/dialog/dialog.css +1 -1
- package/css/std/controls/login/login.css +4 -16
- package/css/std/controls/pdf-viewer/compare.css +87 -31
- package/css/std/controls/pdf-viewer/custom.css +145 -9
- package/css/std/controls/pdf-viewer/img/annotation-check.svg +11 -0
- package/css/std/controls/pdf-viewer/img/annotation-comment.svg +16 -0
- package/css/std/controls/pdf-viewer/img/annotation-help.svg +26 -0
- package/css/std/controls/pdf-viewer/img/annotation-insert.svg +10 -0
- package/css/std/controls/pdf-viewer/img/annotation-key.svg +11 -0
- package/css/std/controls/pdf-viewer/img/annotation-newparagraph.svg +11 -0
- package/css/std/controls/pdf-viewer/img/annotation-noicon.svg +7 -0
- package/css/std/controls/pdf-viewer/img/annotation-note.svg +42 -0
- package/css/std/controls/pdf-viewer/img/annotation-paperclip.svg +6 -0
- package/css/std/controls/pdf-viewer/img/annotation-paragraph.svg +16 -0
- package/css/std/controls/pdf-viewer/img/annotation-pushpin.svg +7 -0
- package/css/std/controls/pdf-viewer/img/cursor-editorFreeText.svg +3 -0
- package/css/std/controls/pdf-viewer/img/cursor-editorInk.svg +4 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-arrow.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-cloud.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-ellipse.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-line.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-polygon.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-rect.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-arrow.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-cloud.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-ellipse.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-line.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-polygon.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar-rect.png +0 -0
- package/css/std/controls/pdf-viewer/img/draw-annotation-toolbar.png +0 -0
- package/css/std/controls/pdf-viewer/img/dropdown-arrow.png +0 -0
- package/css/std/controls/pdf-viewer/img/findbarButton-next.svg +3 -0
- package/css/std/controls/pdf-viewer/img/findbarButton-previous.svg +3 -0
- package/css/std/controls/pdf-viewer/img/gv-toolbarButton-download.svg +3 -0
- package/css/std/controls/pdf-viewer/img/gv-toolbarButton-openinapp.svg +11 -0
- package/css/std/controls/pdf-viewer/img/loading-dark.svg +24 -0
- package/css/std/controls/pdf-viewer/img/loading-icon.gif +0 -0
- package/css/std/controls/pdf-viewer/img/loading.svg +1 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-documentProperties.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-firstPage.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-handTool.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-lastPage.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-rotateCcw.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-rotateCw.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollHorizontal.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollPage.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollVertical.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-scrollWrapped.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-selectTool.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-spreadEven.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-spreadNone.svg +3 -0
- package/css/std/controls/pdf-viewer/img/secondaryToolbarButton-spreadOdd.svg +3 -0
- package/css/std/controls/pdf-viewer/img/shadow.png +0 -0
- package/css/std/controls/pdf-viewer/img/spinner.gif +0 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-bookmark.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-currentOutlineItem.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-download.svg +4 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-editorFreeText.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-editorInk.svg +4 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-editorStamp.svg +8 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-menuArrow.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-openFile.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-pageDown.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-pageUp.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-presentationMode.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-print.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-search.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-secondaryToolbarToggle.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-sidebarToggle.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-viewAttachments.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-viewLayers.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-viewOutline.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-viewThumbnail.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-zoomIn.svg +3 -0
- package/css/std/controls/pdf-viewer/img/toolbarButton-zoomOut.svg +3 -0
- package/css/std/controls/pdf-viewer/img/treeitem-collapsed.svg +1 -0
- package/css/std/controls/pdf-viewer/img/treeitem-expanded.svg +1 -0
- package/css/std/controls/pdf-viewer/pdf-viewer.css +29 -6
- package/css/std/controls/pdf-viewer/print.css +11 -0
- package/css/std/controls/pdf-viewer/sketchpad.css +8 -0
- package/css/std/controls/pdf-viewer/viewer-theme.css +1 -1
- package/css/std/controls/pdf-viewer/viewer.css +690 -970
- package/css/std/controls/pdf-viewer/zoom.css +4 -0
- package/css/std/controls/route-item/route-item.css +112 -0
- package/css/std/controls/splitter/splitter.css +71 -0
- package/css/std/controls/table-view/treegrid.css +153 -3
- package/css/std/controls/time-picker/time-picker.css +42 -30
- package/css/std/controls/uploader/uploader.css +1 -1
- package/css/white/controls/splitter/splitter.css +106 -0
- package/dist/constants/Placement.d.ts +7 -0
- package/dist/constants/Unit.d.ts +3 -0
- package/dist/controls/DatePicker/DatePicker.d.ts +1 -0
- package/dist/controls/FieldIterator/FieldIterator.d.ts +1 -0
- package/dist/controls/LookupPicker/LookupPicker.d.ts +1 -0
- package/dist/controls/LookupPicker/ValueList.d.ts +4 -1
- package/dist/controls/RouteItem/RouteItem.d.ts +17 -0
- package/dist/controls/Splitter/Splitter.d.ts +18 -0
- package/dist/controls/Splitter/SplitterConstants.d.ts +9 -0
- package/dist/controls/TableView/TableViewConstants.d.ts +4 -2
- package/dist/controls/TimePicker/TimePicker.d.ts +1 -0
- package/dist/controls/UserLookupPicker/UserLookupPicker.d.ts +1 -0
- package/dist/index.css +279 -55
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1043 -655
- package/dist/index.js.map +1 -1
- package/lib/pdf-js/pdf.js +8890 -7075
- package/lib/third-party.js +8888 -7073
- package/package.json +4 -3
- package/src/controls/PdfViewer/js/pdf-viewer.js +7121 -5877
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ var React__default = _interopDefault(React);
|
|
|
5
5
|
var commonUi = require('@vitrosoftware/common-ui');
|
|
6
6
|
var inversifyReact = require('inversify-react');
|
|
7
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
8
|
+
var ReactSplitter = _interopDefault(require('m-react-splitters'));
|
|
8
9
|
|
|
9
10
|
var app = {
|
|
10
11
|
common: {
|
|
@@ -164,6 +165,168 @@ var commonRu = {
|
|
|
164
165
|
app: app$1
|
|
165
166
|
};
|
|
166
167
|
|
|
168
|
+
function _defineProperties(target, props) {
|
|
169
|
+
for (var i = 0; i < props.length; i++) {
|
|
170
|
+
var descriptor = props[i];
|
|
171
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
172
|
+
descriptor.configurable = true;
|
|
173
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
174
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
178
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
179
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
180
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
181
|
+
writable: false
|
|
182
|
+
});
|
|
183
|
+
return Constructor;
|
|
184
|
+
}
|
|
185
|
+
function _extends() {
|
|
186
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
187
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
188
|
+
var source = arguments[i];
|
|
189
|
+
for (var key in source) {
|
|
190
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
191
|
+
target[key] = source[key];
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return target;
|
|
196
|
+
};
|
|
197
|
+
return _extends.apply(this, arguments);
|
|
198
|
+
}
|
|
199
|
+
function _inheritsLoose(subClass, superClass) {
|
|
200
|
+
subClass.prototype = Object.create(superClass.prototype);
|
|
201
|
+
subClass.prototype.constructor = subClass;
|
|
202
|
+
_setPrototypeOf(subClass, superClass);
|
|
203
|
+
}
|
|
204
|
+
function _getPrototypeOf(o) {
|
|
205
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
206
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
207
|
+
};
|
|
208
|
+
return _getPrototypeOf(o);
|
|
209
|
+
}
|
|
210
|
+
function _setPrototypeOf(o, p) {
|
|
211
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
212
|
+
o.__proto__ = p;
|
|
213
|
+
return o;
|
|
214
|
+
};
|
|
215
|
+
return _setPrototypeOf(o, p);
|
|
216
|
+
}
|
|
217
|
+
function _isNativeReflectConstruct() {
|
|
218
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
219
|
+
if (Reflect.construct.sham) return false;
|
|
220
|
+
if (typeof Proxy === "function") return true;
|
|
221
|
+
try {
|
|
222
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
223
|
+
return true;
|
|
224
|
+
} catch (e) {
|
|
225
|
+
return false;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
function _construct(Parent, args, Class) {
|
|
229
|
+
if (_isNativeReflectConstruct()) {
|
|
230
|
+
_construct = Reflect.construct.bind();
|
|
231
|
+
} else {
|
|
232
|
+
_construct = function _construct(Parent, args, Class) {
|
|
233
|
+
var a = [null];
|
|
234
|
+
a.push.apply(a, args);
|
|
235
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
236
|
+
var instance = new Constructor();
|
|
237
|
+
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
238
|
+
return instance;
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
return _construct.apply(null, arguments);
|
|
242
|
+
}
|
|
243
|
+
function _isNativeFunction(fn) {
|
|
244
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
245
|
+
}
|
|
246
|
+
function _wrapNativeSuper(Class) {
|
|
247
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
248
|
+
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
249
|
+
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
250
|
+
if (typeof Class !== "function") {
|
|
251
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
252
|
+
}
|
|
253
|
+
if (typeof _cache !== "undefined") {
|
|
254
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
255
|
+
_cache.set(Class, Wrapper);
|
|
256
|
+
}
|
|
257
|
+
function Wrapper() {
|
|
258
|
+
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
259
|
+
}
|
|
260
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
261
|
+
constructor: {
|
|
262
|
+
value: Wrapper,
|
|
263
|
+
enumerable: false,
|
|
264
|
+
writable: true,
|
|
265
|
+
configurable: true
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
return _setPrototypeOf(Wrapper, Class);
|
|
269
|
+
};
|
|
270
|
+
return _wrapNativeSuper(Class);
|
|
271
|
+
}
|
|
272
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
273
|
+
if (source == null) return {};
|
|
274
|
+
var target = {};
|
|
275
|
+
var sourceKeys = Object.keys(source);
|
|
276
|
+
var key, i;
|
|
277
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
278
|
+
key = sourceKeys[i];
|
|
279
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
280
|
+
target[key] = source[key];
|
|
281
|
+
}
|
|
282
|
+
return target;
|
|
283
|
+
}
|
|
284
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
285
|
+
if (!o) return;
|
|
286
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
287
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
288
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
289
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
290
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
291
|
+
}
|
|
292
|
+
function _arrayLikeToArray(arr, len) {
|
|
293
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
294
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
295
|
+
return arr2;
|
|
296
|
+
}
|
|
297
|
+
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
298
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
299
|
+
if (it) return (it = it.call(o)).next.bind(it);
|
|
300
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
301
|
+
if (it) o = it;
|
|
302
|
+
var i = 0;
|
|
303
|
+
return function () {
|
|
304
|
+
if (i >= o.length) return {
|
|
305
|
+
done: true
|
|
306
|
+
};
|
|
307
|
+
return {
|
|
308
|
+
done: false,
|
|
309
|
+
value: o[i++]
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
314
|
+
}
|
|
315
|
+
function _toPrimitive(input, hint) {
|
|
316
|
+
if (typeof input !== "object" || input === null) return input;
|
|
317
|
+
var prim = input[Symbol.toPrimitive];
|
|
318
|
+
if (prim !== undefined) {
|
|
319
|
+
var res = prim.call(input, hint || "default");
|
|
320
|
+
if (typeof res !== "object") return res;
|
|
321
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
322
|
+
}
|
|
323
|
+
return (hint === "string" ? String : Number)(input);
|
|
324
|
+
}
|
|
325
|
+
function _toPropertyKey(arg) {
|
|
326
|
+
var key = _toPrimitive(arg, "string");
|
|
327
|
+
return typeof key === "symbol" ? key : String(key);
|
|
328
|
+
}
|
|
329
|
+
|
|
167
330
|
var CTRL = function CTRL() {};
|
|
168
331
|
CTRL.DOT = '.';
|
|
169
332
|
CTRL.SEMICOLON = ';';
|
|
@@ -194,7 +357,7 @@ CTRL.QUOTATION_MARK = '\'';
|
|
|
194
357
|
CTRL.ZERO = '0';
|
|
195
358
|
CTRL.ASTERISK = '*';
|
|
196
359
|
|
|
197
|
-
var styles = {"vitro-breadcrumbs":"_breadcrumbs_vitro-breadcrumbs_3r4NcQY","vitro-breadcrumbs-list-
|
|
360
|
+
var styles = {"vitro-breadcrumbs":"_breadcrumbs_vitro-breadcrumbs_3r4NcQY","vitro-breadcrumbs-list-container":"_breadcrumbs_vitro-breadcrumbs-list-container_OVqyIE3","vitro-breadcrumbs-list":"_breadcrumbs_vitro-breadcrumbs-list_1SNtgtJ","vitro-separator":"_breadcrumbs_vitro-separator_3RKZZBc","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"};
|
|
198
361
|
|
|
199
362
|
var Item = function Item(props) {
|
|
200
363
|
var onClick = function onClick() {
|
|
@@ -269,6 +432,8 @@ var ScrollBar = function ScrollBar(props) {
|
|
|
269
432
|
EVENT["CONTEXTMENU"] = "contextmenu";
|
|
270
433
|
})(exports.EVENT || (exports.EVENT = {}));
|
|
271
434
|
|
|
435
|
+
var ELEMENT_CANVAS = 'canvas';
|
|
436
|
+
var CANVAS_CONTEXT = '2d';
|
|
272
437
|
var Breadcrumbs = function Breadcrumbs(props) {
|
|
273
438
|
var _useState = React.useState([]),
|
|
274
439
|
displayItemList = _useState[0],
|
|
@@ -276,7 +441,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
276
441
|
var _useState2 = React.useState([]),
|
|
277
442
|
dropdownItemList = _useState2[0],
|
|
278
443
|
setDropdownItemList = _useState2[1];
|
|
279
|
-
var _useState3 = React.useState([]),
|
|
444
|
+
var _useState3 = React.useState(props.itemList || []),
|
|
280
445
|
itemList = _useState3[0],
|
|
281
446
|
setItemList = _useState3[1];
|
|
282
447
|
var _useState4 = React.useState(null),
|
|
@@ -288,60 +453,96 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
288
453
|
var _useState6 = React.useState(null),
|
|
289
454
|
windowWidth = _useState6[0],
|
|
290
455
|
setWindowWidth = _useState6[1];
|
|
291
|
-
var _useState7 = React.useState(
|
|
292
|
-
|
|
293
|
-
|
|
456
|
+
var _useState7 = React.useState(null),
|
|
457
|
+
containerWidth = _useState7[0],
|
|
458
|
+
setContainerWidth = _useState7[1];
|
|
459
|
+
var _useState8 = React.useState(false),
|
|
460
|
+
isMobileView = _useState8[0],
|
|
461
|
+
setIsMobileView = _useState8[1];
|
|
462
|
+
var resizeTimeout = React.useMemo(function () {
|
|
463
|
+
return {
|
|
464
|
+
id: null
|
|
465
|
+
};
|
|
466
|
+
}, []);
|
|
294
467
|
var menuRef = React.useRef(null);
|
|
295
|
-
var
|
|
296
|
-
|
|
297
|
-
|
|
468
|
+
var containerRef = React.useRef(null);
|
|
469
|
+
var listRef = React.useRef(null);
|
|
470
|
+
var resizeObserver = new window.ResizeObserver(function (entries) {
|
|
471
|
+
for (var _iterator = _createForOfIteratorHelperLoose(entries), _step; !(_step = _iterator()).done;) {
|
|
472
|
+
var entry = _step.value;
|
|
473
|
+
if (containerRef && entry.target === containerRef.current) {
|
|
474
|
+
if (resizeTimeout.id) {
|
|
475
|
+
clearTimeout(resizeTimeout.id);
|
|
476
|
+
}
|
|
477
|
+
resizeTimeout.id = setTimeout(function () {
|
|
478
|
+
var _containerRef$current;
|
|
479
|
+
resizeTimeout.id = null;
|
|
480
|
+
setContainerWidth(((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.clientWidth) || null);
|
|
481
|
+
}, 200);
|
|
482
|
+
}
|
|
298
483
|
}
|
|
299
|
-
};
|
|
484
|
+
});
|
|
300
485
|
React.useEffect(function () {
|
|
301
486
|
updateBreadcrumbsView();
|
|
302
487
|
}, [windowWidth]);
|
|
303
488
|
React.useEffect(function () {
|
|
304
489
|
window.addEventListener(exports.EVENT.MOUSEDOWN, clickOutside);
|
|
305
490
|
window.addEventListener(exports.EVENT.RESIZE, handleResize);
|
|
306
|
-
handleResize();
|
|
307
|
-
return function () {
|
|
308
|
-
window.removeEventListener(exports.EVENT.MOUSEDOWN, clickOutside);
|
|
309
|
-
window.removeEventListener(exports.EVENT.RESIZE, handleResize);
|
|
310
|
-
};
|
|
311
|
-
}, []);
|
|
312
|
-
React.useEffect(function () {
|
|
313
491
|
if (props.updateEvent) {
|
|
314
492
|
window.addEventListener(props.updateEvent, updateItemList);
|
|
315
493
|
}
|
|
316
494
|
if (props.resetEvent) {
|
|
317
495
|
window.addEventListener(props.resetEvent, resetItemList);
|
|
318
496
|
}
|
|
497
|
+
handleResize();
|
|
319
498
|
return function () {
|
|
499
|
+
window.removeEventListener(exports.EVENT.MOUSEDOWN, clickOutside);
|
|
500
|
+
window.removeEventListener(exports.EVENT.RESIZE, handleResize);
|
|
320
501
|
if (props.updateEvent) {
|
|
321
502
|
window.removeEventListener(props.updateEvent, updateItemList);
|
|
322
503
|
}
|
|
323
504
|
if (props.resetEvent) {
|
|
324
505
|
window.removeEventListener(props.resetEvent, resetItemList);
|
|
325
506
|
}
|
|
507
|
+
resizeObserver.disconnect();
|
|
326
508
|
};
|
|
327
509
|
}, []);
|
|
328
510
|
React.useEffect(function () {
|
|
329
|
-
|
|
330
|
-
|
|
511
|
+
if (containerRef && containerRef.current) {
|
|
512
|
+
resizeObserver.observe(containerRef.current);
|
|
513
|
+
}
|
|
514
|
+
}, [containerRef]);
|
|
515
|
+
React.useEffect(function () {
|
|
516
|
+
if (props.itemList) {
|
|
517
|
+
setItemList(getItemList(props.itemList));
|
|
518
|
+
}
|
|
519
|
+
}, [props.itemList]);
|
|
520
|
+
React.useEffect(function () {
|
|
521
|
+
if (itemList && itemList.length) {
|
|
331
522
|
if (isMobileView) {
|
|
332
|
-
initItemListMobileView(
|
|
523
|
+
initItemListMobileView(itemList);
|
|
333
524
|
} else {
|
|
334
|
-
initItemList(
|
|
525
|
+
initItemList(itemList);
|
|
335
526
|
}
|
|
336
527
|
} else {
|
|
337
528
|
setDisplayItemList([]);
|
|
338
529
|
setDropdownItemList([]);
|
|
339
530
|
}
|
|
340
|
-
}, [
|
|
531
|
+
}, [itemList]);
|
|
532
|
+
React.useEffect(function () {
|
|
533
|
+
if (itemList && itemList.length && !isMobileView) {
|
|
534
|
+
initItemList(itemList);
|
|
535
|
+
}
|
|
536
|
+
}, [containerWidth]);
|
|
537
|
+
var updateBreadcrumbsView = function updateBreadcrumbsView() {
|
|
538
|
+
if (windowWidth) {
|
|
539
|
+
windowWidth < 800 ? setIsMobileView(true) : setIsMobileView(false);
|
|
540
|
+
}
|
|
541
|
+
};
|
|
341
542
|
var updateItemList = function updateItemList(e) {
|
|
342
543
|
if (props.getItemList) {
|
|
343
544
|
props.getItemList(e).then(function (list) {
|
|
344
|
-
setItemList(list);
|
|
545
|
+
setItemList(getItemList(list));
|
|
345
546
|
});
|
|
346
547
|
}
|
|
347
548
|
};
|
|
@@ -349,23 +550,68 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
349
550
|
setItemList([]);
|
|
350
551
|
};
|
|
351
552
|
var initItemListMobileView = function initItemListMobileView(itemList) {
|
|
352
|
-
var
|
|
553
|
+
var list = [].concat(itemList);
|
|
554
|
+
var lastItem = list[list.length - 1];
|
|
353
555
|
if (!props.wrapRoot) {
|
|
354
|
-
var root =
|
|
556
|
+
var root = list.shift();
|
|
355
557
|
setRootItem(root);
|
|
356
558
|
}
|
|
357
559
|
setDisplayItemList([lastItem]);
|
|
358
|
-
setDropdownItemList(
|
|
560
|
+
setDropdownItemList(list.slice(0, list.length - 1).reverse());
|
|
359
561
|
};
|
|
360
562
|
var initItemList = function initItemList(itemList) {
|
|
361
|
-
var
|
|
362
|
-
var displayItemCount = props.displayItemCount || defaultDisplayItemCount;
|
|
563
|
+
var list = [].concat(itemList);
|
|
363
564
|
if (!props.wrapRoot) {
|
|
364
|
-
var root =
|
|
565
|
+
var root = list.shift();
|
|
365
566
|
setRootItem(root);
|
|
366
567
|
}
|
|
367
|
-
|
|
368
|
-
|
|
568
|
+
var count = getDisplayItemCount(list);
|
|
569
|
+
setDisplayItemList(list.slice(-count));
|
|
570
|
+
setDropdownItemList(list.slice(0, -count).reverse());
|
|
571
|
+
};
|
|
572
|
+
var getItemList = function getItemList(itemList) {
|
|
573
|
+
if (listRef.current) {
|
|
574
|
+
var canvas = document.createElement(ELEMENT_CANVAS);
|
|
575
|
+
var font = window.getComputedStyle(listRef.current).font;
|
|
576
|
+
var newItemList = itemList.map(function (item) {
|
|
577
|
+
return _extends({}, item, {
|
|
578
|
+
width: getTextWidth(item.text, canvas, font)
|
|
579
|
+
});
|
|
580
|
+
});
|
|
581
|
+
return newItemList;
|
|
582
|
+
}
|
|
583
|
+
return itemList;
|
|
584
|
+
};
|
|
585
|
+
var getTextWidth = function getTextWidth(text, canvas, font) {
|
|
586
|
+
var context = canvas.getContext(CANVAS_CONTEXT);
|
|
587
|
+
context.font = font;
|
|
588
|
+
var _context$measureText = context.measureText(text),
|
|
589
|
+
width = _context$measureText.width;
|
|
590
|
+
return width + 24;
|
|
591
|
+
};
|
|
592
|
+
var getMaxWidth = function getMaxWidth() {
|
|
593
|
+
if (containerRef && containerRef.current && listRef && listRef.current) {
|
|
594
|
+
return listRef.current.offsetWidth;
|
|
595
|
+
}
|
|
596
|
+
return 0;
|
|
597
|
+
};
|
|
598
|
+
var getDisplayItemCount = function getDisplayItemCount(itemList) {
|
|
599
|
+
var maxWidth = getMaxWidth();
|
|
600
|
+
var itemCount = props.displayItemCount || 5;
|
|
601
|
+
var width = 0;
|
|
602
|
+
var list = [].concat(itemList).reverse();
|
|
603
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose(list.entries()), _step2; !(_step2 = _iterator2()).done;) {
|
|
604
|
+
var _step2$value = _step2.value,
|
|
605
|
+
index = _step2$value[0],
|
|
606
|
+
item = _step2$value[1];
|
|
607
|
+
if (width + item.width < maxWidth) {
|
|
608
|
+
width += item.width;
|
|
609
|
+
} else {
|
|
610
|
+
itemCount = index < itemCount ? index : itemCount;
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
return itemCount ? itemCount : 1;
|
|
369
615
|
};
|
|
370
616
|
var handleResize = function handleResize() {
|
|
371
617
|
setWindowWidth(window.innerWidth);
|
|
@@ -388,9 +634,11 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
388
634
|
}, props.text ? React__default.createElement("h2", {
|
|
389
635
|
className: titleClassName
|
|
390
636
|
}, props.text) : null, React__default.createElement("div", {
|
|
391
|
-
className: styles['vitro-breadcrumbs-list-
|
|
637
|
+
className: styles['vitro-breadcrumbs-list-container'],
|
|
638
|
+
ref: containerRef
|
|
392
639
|
}, React__default.createElement("ul", {
|
|
393
|
-
className: styles['vitro-breadcrumbs-list']
|
|
640
|
+
className: styles['vitro-breadcrumbs-list'],
|
|
641
|
+
ref: listRef
|
|
394
642
|
}, displayItemList.map(function (item, i) {
|
|
395
643
|
return React__default.createElement(Item, {
|
|
396
644
|
id: item.id,
|
|
@@ -398,7 +646,7 @@ var Breadcrumbs = function Breadcrumbs(props) {
|
|
|
398
646
|
return onItemClick(item);
|
|
399
647
|
},
|
|
400
648
|
isShowSeparator: i !== displayItemList.length - 1
|
|
401
|
-
}, item.text);
|
|
649
|
+
}, React__default.createElement("span", null, item.text));
|
|
402
650
|
})), dropdownItemList.length ? React__default.createElement("div", {
|
|
403
651
|
onClick: showDropdownMenu,
|
|
404
652
|
className: styles['vitro-breadcrumbs-button']
|
|
@@ -20412,168 +20660,6 @@ var TreeView = function TreeView(props) {
|
|
|
20412
20660
|
}));
|
|
20413
20661
|
};
|
|
20414
20662
|
|
|
20415
|
-
function _defineProperties(target, props) {
|
|
20416
|
-
for (var i = 0; i < props.length; i++) {
|
|
20417
|
-
var descriptor = props[i];
|
|
20418
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
20419
|
-
descriptor.configurable = true;
|
|
20420
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
20421
|
-
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
20422
|
-
}
|
|
20423
|
-
}
|
|
20424
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
20425
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
20426
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
20427
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
20428
|
-
writable: false
|
|
20429
|
-
});
|
|
20430
|
-
return Constructor;
|
|
20431
|
-
}
|
|
20432
|
-
function _extends() {
|
|
20433
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
20434
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
20435
|
-
var source = arguments[i];
|
|
20436
|
-
for (var key in source) {
|
|
20437
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
20438
|
-
target[key] = source[key];
|
|
20439
|
-
}
|
|
20440
|
-
}
|
|
20441
|
-
}
|
|
20442
|
-
return target;
|
|
20443
|
-
};
|
|
20444
|
-
return _extends.apply(this, arguments);
|
|
20445
|
-
}
|
|
20446
|
-
function _inheritsLoose(subClass, superClass) {
|
|
20447
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
20448
|
-
subClass.prototype.constructor = subClass;
|
|
20449
|
-
_setPrototypeOf(subClass, superClass);
|
|
20450
|
-
}
|
|
20451
|
-
function _getPrototypeOf(o) {
|
|
20452
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
20453
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
20454
|
-
};
|
|
20455
|
-
return _getPrototypeOf(o);
|
|
20456
|
-
}
|
|
20457
|
-
function _setPrototypeOf(o, p) {
|
|
20458
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
20459
|
-
o.__proto__ = p;
|
|
20460
|
-
return o;
|
|
20461
|
-
};
|
|
20462
|
-
return _setPrototypeOf(o, p);
|
|
20463
|
-
}
|
|
20464
|
-
function _isNativeReflectConstruct() {
|
|
20465
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
20466
|
-
if (Reflect.construct.sham) return false;
|
|
20467
|
-
if (typeof Proxy === "function") return true;
|
|
20468
|
-
try {
|
|
20469
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
20470
|
-
return true;
|
|
20471
|
-
} catch (e) {
|
|
20472
|
-
return false;
|
|
20473
|
-
}
|
|
20474
|
-
}
|
|
20475
|
-
function _construct(Parent, args, Class) {
|
|
20476
|
-
if (_isNativeReflectConstruct()) {
|
|
20477
|
-
_construct = Reflect.construct.bind();
|
|
20478
|
-
} else {
|
|
20479
|
-
_construct = function _construct(Parent, args, Class) {
|
|
20480
|
-
var a = [null];
|
|
20481
|
-
a.push.apply(a, args);
|
|
20482
|
-
var Constructor = Function.bind.apply(Parent, a);
|
|
20483
|
-
var instance = new Constructor();
|
|
20484
|
-
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
20485
|
-
return instance;
|
|
20486
|
-
};
|
|
20487
|
-
}
|
|
20488
|
-
return _construct.apply(null, arguments);
|
|
20489
|
-
}
|
|
20490
|
-
function _isNativeFunction(fn) {
|
|
20491
|
-
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
20492
|
-
}
|
|
20493
|
-
function _wrapNativeSuper(Class) {
|
|
20494
|
-
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
20495
|
-
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
20496
|
-
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
20497
|
-
if (typeof Class !== "function") {
|
|
20498
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
20499
|
-
}
|
|
20500
|
-
if (typeof _cache !== "undefined") {
|
|
20501
|
-
if (_cache.has(Class)) return _cache.get(Class);
|
|
20502
|
-
_cache.set(Class, Wrapper);
|
|
20503
|
-
}
|
|
20504
|
-
function Wrapper() {
|
|
20505
|
-
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
20506
|
-
}
|
|
20507
|
-
Wrapper.prototype = Object.create(Class.prototype, {
|
|
20508
|
-
constructor: {
|
|
20509
|
-
value: Wrapper,
|
|
20510
|
-
enumerable: false,
|
|
20511
|
-
writable: true,
|
|
20512
|
-
configurable: true
|
|
20513
|
-
}
|
|
20514
|
-
});
|
|
20515
|
-
return _setPrototypeOf(Wrapper, Class);
|
|
20516
|
-
};
|
|
20517
|
-
return _wrapNativeSuper(Class);
|
|
20518
|
-
}
|
|
20519
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
20520
|
-
if (source == null) return {};
|
|
20521
|
-
var target = {};
|
|
20522
|
-
var sourceKeys = Object.keys(source);
|
|
20523
|
-
var key, i;
|
|
20524
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
20525
|
-
key = sourceKeys[i];
|
|
20526
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
20527
|
-
target[key] = source[key];
|
|
20528
|
-
}
|
|
20529
|
-
return target;
|
|
20530
|
-
}
|
|
20531
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
20532
|
-
if (!o) return;
|
|
20533
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
20534
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
20535
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
20536
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
20537
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
20538
|
-
}
|
|
20539
|
-
function _arrayLikeToArray(arr, len) {
|
|
20540
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
20541
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
20542
|
-
return arr2;
|
|
20543
|
-
}
|
|
20544
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
20545
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
20546
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
|
20547
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
20548
|
-
if (it) o = it;
|
|
20549
|
-
var i = 0;
|
|
20550
|
-
return function () {
|
|
20551
|
-
if (i >= o.length) return {
|
|
20552
|
-
done: true
|
|
20553
|
-
};
|
|
20554
|
-
return {
|
|
20555
|
-
done: false,
|
|
20556
|
-
value: o[i++]
|
|
20557
|
-
};
|
|
20558
|
-
};
|
|
20559
|
-
}
|
|
20560
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
20561
|
-
}
|
|
20562
|
-
function _toPrimitive(input, hint) {
|
|
20563
|
-
if (typeof input !== "object" || input === null) return input;
|
|
20564
|
-
var prim = input[Symbol.toPrimitive];
|
|
20565
|
-
if (prim !== undefined) {
|
|
20566
|
-
var res = prim.call(input, hint || "default");
|
|
20567
|
-
if (typeof res !== "object") return res;
|
|
20568
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
20569
|
-
}
|
|
20570
|
-
return (hint === "string" ? String : Number)(input);
|
|
20571
|
-
}
|
|
20572
|
-
function _toPropertyKey(arg) {
|
|
20573
|
-
var key = _toPrimitive(arg, "string");
|
|
20574
|
-
return typeof key === "symbol" ? key : String(key);
|
|
20575
|
-
}
|
|
20576
|
-
|
|
20577
20663
|
var w$1 = window;
|
|
20578
20664
|
if (!w$1.tableViewList) {
|
|
20579
20665
|
w$1.tableViewList = new Map();
|
|
@@ -20969,6 +21055,7 @@ var ATTRIBUTE;
|
|
|
20969
21055
|
ATTRIBUTE["ORIG_NAME"] = "Orig";
|
|
20970
21056
|
ATTRIBUTE["ALIGN"] = "Align";
|
|
20971
21057
|
ATTRIBUTE["TIP"] = "Tip";
|
|
21058
|
+
ATTRIBUTE["TIP_POSITION"] = "TipPosition";
|
|
20972
21059
|
})(ATTRIBUTE || (ATTRIBUTE = {}));
|
|
20973
21060
|
var DRAG_ITEM_TYPE;
|
|
20974
21061
|
(function (DRAG_ITEM_TYPE) {
|
|
@@ -21029,6 +21116,7 @@ var ACTION;
|
|
|
21029
21116
|
(function (ACTION) {
|
|
21030
21117
|
ACTION["SHOW_POPUP_MENU"] = "ShowPopupMenu";
|
|
21031
21118
|
ACTION["SHOW_MENU"] = "ShowMenu";
|
|
21119
|
+
ACTION["CLEAR_FILTER"] = "ClearFilter";
|
|
21032
21120
|
})(ACTION || (ACTION = {}));
|
|
21033
21121
|
var SECTION;
|
|
21034
21122
|
(function (SECTION) {
|
|
@@ -21962,39 +22050,57 @@ var classnames = createCommonjsModule(function (module) {
|
|
|
21962
22050
|
|
|
21963
22051
|
var hasOwn = {}.hasOwnProperty;
|
|
21964
22052
|
|
|
21965
|
-
function classNames() {
|
|
21966
|
-
var classes =
|
|
22053
|
+
function classNames () {
|
|
22054
|
+
var classes = '';
|
|
21967
22055
|
|
|
21968
22056
|
for (var i = 0; i < arguments.length; i++) {
|
|
21969
22057
|
var arg = arguments[i];
|
|
21970
|
-
if (
|
|
22058
|
+
if (arg) {
|
|
22059
|
+
classes = appendClass(classes, parseValue(arg));
|
|
22060
|
+
}
|
|
22061
|
+
}
|
|
21971
22062
|
|
|
21972
|
-
|
|
22063
|
+
return classes;
|
|
22064
|
+
}
|
|
21973
22065
|
|
|
21974
|
-
|
|
21975
|
-
|
|
21976
|
-
|
|
21977
|
-
|
|
21978
|
-
var inner = classNames.apply(null, arg);
|
|
21979
|
-
if (inner) {
|
|
21980
|
-
classes.push(inner);
|
|
21981
|
-
}
|
|
21982
|
-
}
|
|
21983
|
-
} else if (argType === 'object') {
|
|
21984
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
21985
|
-
classes.push(arg.toString());
|
|
21986
|
-
continue;
|
|
21987
|
-
}
|
|
22066
|
+
function parseValue (arg) {
|
|
22067
|
+
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
22068
|
+
return arg;
|
|
22069
|
+
}
|
|
21988
22070
|
|
|
21989
|
-
|
|
21990
|
-
|
|
21991
|
-
|
|
21992
|
-
|
|
21993
|
-
|
|
22071
|
+
if (typeof arg !== 'object') {
|
|
22072
|
+
return '';
|
|
22073
|
+
}
|
|
22074
|
+
|
|
22075
|
+
if (Array.isArray(arg)) {
|
|
22076
|
+
return classNames.apply(null, arg);
|
|
22077
|
+
}
|
|
22078
|
+
|
|
22079
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
22080
|
+
return arg.toString();
|
|
22081
|
+
}
|
|
22082
|
+
|
|
22083
|
+
var classes = '';
|
|
22084
|
+
|
|
22085
|
+
for (var key in arg) {
|
|
22086
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
22087
|
+
classes = appendClass(classes, key);
|
|
21994
22088
|
}
|
|
21995
22089
|
}
|
|
21996
22090
|
|
|
21997
|
-
return classes
|
|
22091
|
+
return classes;
|
|
22092
|
+
}
|
|
22093
|
+
|
|
22094
|
+
function appendClass (value, newClass) {
|
|
22095
|
+
if (!newClass) {
|
|
22096
|
+
return value;
|
|
22097
|
+
}
|
|
22098
|
+
|
|
22099
|
+
if (value) {
|
|
22100
|
+
return value + ' ' + newClass;
|
|
22101
|
+
}
|
|
22102
|
+
|
|
22103
|
+
return value + newClass;
|
|
21998
22104
|
}
|
|
21999
22105
|
|
|
22000
22106
|
if ( module.exports) {
|
|
@@ -55095,6 +55201,29 @@ function useEventCallback(fn) {
|
|
|
55095
55201
|
}, [ref]);
|
|
55096
55202
|
}
|
|
55097
55203
|
|
|
55204
|
+
var divWithClassName = (className => /*#__PURE__*/React.forwardRef((p, ref) => /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
55205
|
+
...p,
|
|
55206
|
+
ref: ref,
|
|
55207
|
+
className: classnames(p.className, className)
|
|
55208
|
+
})));
|
|
55209
|
+
|
|
55210
|
+
const DivStyledAsH4 = divWithClassName('h4');
|
|
55211
|
+
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
55212
|
+
const AlertHeading = /*#__PURE__*/React.forwardRef(({
|
|
55213
|
+
className,
|
|
55214
|
+
bsPrefix,
|
|
55215
|
+
as: Component = DivStyledAsH4,
|
|
55216
|
+
...props
|
|
55217
|
+
}, ref) => {
|
|
55218
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'alert-heading');
|
|
55219
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
55220
|
+
ref: ref,
|
|
55221
|
+
className: classnames(className, bsPrefix),
|
|
55222
|
+
...props
|
|
55223
|
+
});
|
|
55224
|
+
});
|
|
55225
|
+
AlertHeading.displayName = 'AlertHeading';
|
|
55226
|
+
|
|
55098
55227
|
/**
|
|
55099
55228
|
* A convenience hook around `useState` designed to be paired with
|
|
55100
55229
|
* the component [callback ref](https://reactjs.org/docs/refs-and-the-dom.html#callback-refs) api.
|
|
@@ -55338,6 +55467,21 @@ const Anchor = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
55338
55467
|
});
|
|
55339
55468
|
Anchor.displayName = 'Anchor';
|
|
55340
55469
|
|
|
55470
|
+
const AlertLink = /*#__PURE__*/React.forwardRef(({
|
|
55471
|
+
className,
|
|
55472
|
+
bsPrefix,
|
|
55473
|
+
as: Component = Anchor,
|
|
55474
|
+
...props
|
|
55475
|
+
}, ref) => {
|
|
55476
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'alert-link');
|
|
55477
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
55478
|
+
ref: ref,
|
|
55479
|
+
className: classnames(className, bsPrefix),
|
|
55480
|
+
...props
|
|
55481
|
+
});
|
|
55482
|
+
});
|
|
55483
|
+
AlertLink.displayName = 'AlertLink';
|
|
55484
|
+
|
|
55341
55485
|
const fadeStyles = {
|
|
55342
55486
|
[ENTERING]: 'show',
|
|
55343
55487
|
[ENTERED]: 'show'
|
|
@@ -55401,55 +55545,6 @@ const CloseButton = /*#__PURE__*/React.forwardRef(({
|
|
|
55401
55545
|
CloseButton.displayName = 'CloseButton';
|
|
55402
55546
|
CloseButton.propTypes = propTypes$1;
|
|
55403
55547
|
|
|
55404
|
-
var divWithClassName = (className => /*#__PURE__*/React.forwardRef((p, ref) => /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
55405
|
-
...p,
|
|
55406
|
-
ref: ref,
|
|
55407
|
-
className: classnames(p.className, className)
|
|
55408
|
-
})));
|
|
55409
|
-
|
|
55410
|
-
var rHyphen = /-(.)/g;
|
|
55411
|
-
function camelize(string) {
|
|
55412
|
-
return string.replace(rHyphen, function (_, chr) {
|
|
55413
|
-
return chr.toUpperCase();
|
|
55414
|
-
});
|
|
55415
|
-
}
|
|
55416
|
-
|
|
55417
|
-
const pascalCase = str => str[0].toUpperCase() + camelize(str).slice(1);
|
|
55418
|
-
// TODO: emstricten & fix the typing here! `createWithBsPrefix<TElementType>...`
|
|
55419
|
-
function createWithBsPrefix(prefix, {
|
|
55420
|
-
displayName = pascalCase(prefix),
|
|
55421
|
-
Component,
|
|
55422
|
-
defaultProps
|
|
55423
|
-
} = {}) {
|
|
55424
|
-
const BsComponent = /*#__PURE__*/React.forwardRef(({
|
|
55425
|
-
className,
|
|
55426
|
-
bsPrefix,
|
|
55427
|
-
as: Tag = Component || 'div',
|
|
55428
|
-
...props
|
|
55429
|
-
}, ref) => {
|
|
55430
|
-
const componentProps = {
|
|
55431
|
-
...defaultProps,
|
|
55432
|
-
...props
|
|
55433
|
-
};
|
|
55434
|
-
const resolvedPrefix = useBootstrapPrefix(bsPrefix, prefix);
|
|
55435
|
-
return /*#__PURE__*/jsxRuntime.jsx(Tag, {
|
|
55436
|
-
ref: ref,
|
|
55437
|
-
className: classnames(className, resolvedPrefix),
|
|
55438
|
-
...componentProps
|
|
55439
|
-
});
|
|
55440
|
-
});
|
|
55441
|
-
BsComponent.displayName = displayName;
|
|
55442
|
-
return BsComponent;
|
|
55443
|
-
}
|
|
55444
|
-
|
|
55445
|
-
const DivStyledAsH4 = divWithClassName('h4');
|
|
55446
|
-
DivStyledAsH4.displayName = 'DivStyledAsH4';
|
|
55447
|
-
const AlertHeading = createWithBsPrefix('alert-heading', {
|
|
55448
|
-
Component: DivStyledAsH4
|
|
55449
|
-
});
|
|
55450
|
-
const AlertLink = createWithBsPrefix('alert-link', {
|
|
55451
|
-
Component: Anchor
|
|
55452
|
-
});
|
|
55453
55548
|
const Alert = /*#__PURE__*/React.forwardRef((uncontrolledProps, ref) => {
|
|
55454
55549
|
const {
|
|
55455
55550
|
bsPrefix,
|
|
@@ -55606,7 +55701,8 @@ function useTimeout() {
|
|
|
55606
55701
|
}
|
|
55607
55702
|
return {
|
|
55608
55703
|
set,
|
|
55609
|
-
clear
|
|
55704
|
+
clear,
|
|
55705
|
+
handleRef
|
|
55610
55706
|
};
|
|
55611
55707
|
}, []);
|
|
55612
55708
|
}
|
|
@@ -58005,7 +58101,7 @@ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
|
58005
58101
|
let ref = (React.useRef)(null);
|
|
58006
58102
|
// eslint-disable-next-line rulesdir/pure-render
|
|
58007
58103
|
if (ref.current === null && !isDisabled) {
|
|
58008
|
-
var
|
|
58104
|
+
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
58009
58105
|
// In strict mode, React renders components twice, and the ref will be reset to null on the second render.
|
|
58010
58106
|
// This means our id counter will be incremented twice instead of once. This is a problem because on the
|
|
58011
58107
|
// server, components are only rendered once and so ids generated on the server won't match the client.
|
|
@@ -58398,6 +58494,40 @@ Dropdown.Item = DropdownItem;
|
|
|
58398
58494
|
const DropdownContext$1 = /*#__PURE__*/React.createContext({});
|
|
58399
58495
|
DropdownContext$1.displayName = 'DropdownContext';
|
|
58400
58496
|
|
|
58497
|
+
const DropdownDivider = /*#__PURE__*/React.forwardRef(({
|
|
58498
|
+
className,
|
|
58499
|
+
bsPrefix,
|
|
58500
|
+
as: Component = 'hr',
|
|
58501
|
+
role = 'separator',
|
|
58502
|
+
...props
|
|
58503
|
+
}, ref) => {
|
|
58504
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-divider');
|
|
58505
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
58506
|
+
ref: ref,
|
|
58507
|
+
className: classnames(className, bsPrefix),
|
|
58508
|
+
role: role,
|
|
58509
|
+
...props
|
|
58510
|
+
});
|
|
58511
|
+
});
|
|
58512
|
+
DropdownDivider.displayName = 'DropdownDivider';
|
|
58513
|
+
|
|
58514
|
+
const DropdownHeader = /*#__PURE__*/React.forwardRef(({
|
|
58515
|
+
className,
|
|
58516
|
+
bsPrefix,
|
|
58517
|
+
as: Component = 'div',
|
|
58518
|
+
role = 'heading',
|
|
58519
|
+
...props
|
|
58520
|
+
}, ref) => {
|
|
58521
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-header');
|
|
58522
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
58523
|
+
ref: ref,
|
|
58524
|
+
className: classnames(className, bsPrefix),
|
|
58525
|
+
role: role,
|
|
58526
|
+
...props
|
|
58527
|
+
});
|
|
58528
|
+
});
|
|
58529
|
+
DropdownHeader.displayName = 'DropdownHeader';
|
|
58530
|
+
|
|
58401
58531
|
const DropdownItem$1 = /*#__PURE__*/React.forwardRef(({
|
|
58402
58532
|
bsPrefix,
|
|
58403
58533
|
className,
|
|
@@ -58425,6 +58555,21 @@ const DropdownItem$1 = /*#__PURE__*/React.forwardRef(({
|
|
|
58425
58555
|
});
|
|
58426
58556
|
DropdownItem$1.displayName = 'DropdownItem';
|
|
58427
58557
|
|
|
58558
|
+
const DropdownItemText = /*#__PURE__*/React.forwardRef(({
|
|
58559
|
+
className,
|
|
58560
|
+
bsPrefix,
|
|
58561
|
+
as: Component = 'span',
|
|
58562
|
+
...props
|
|
58563
|
+
}, ref) => {
|
|
58564
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-item-text');
|
|
58565
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
58566
|
+
ref: ref,
|
|
58567
|
+
className: classnames(className, bsPrefix),
|
|
58568
|
+
...props
|
|
58569
|
+
});
|
|
58570
|
+
});
|
|
58571
|
+
DropdownItemText.displayName = 'DropdownItemText';
|
|
58572
|
+
|
|
58428
58573
|
const context$1 = /*#__PURE__*/React.createContext(null);
|
|
58429
58574
|
context$1.displayName = 'InputGroupContext';
|
|
58430
58575
|
|
|
@@ -58580,20 +58725,6 @@ const DropdownToggle$1 = /*#__PURE__*/React.forwardRef(({
|
|
|
58580
58725
|
});
|
|
58581
58726
|
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
58582
58727
|
|
|
58583
|
-
const DropdownHeader = createWithBsPrefix('dropdown-header', {
|
|
58584
|
-
defaultProps: {
|
|
58585
|
-
role: 'heading'
|
|
58586
|
-
}
|
|
58587
|
-
});
|
|
58588
|
-
const DropdownDivider = createWithBsPrefix('dropdown-divider', {
|
|
58589
|
-
Component: 'hr',
|
|
58590
|
-
defaultProps: {
|
|
58591
|
-
role: 'separator'
|
|
58592
|
-
}
|
|
58593
|
-
});
|
|
58594
|
-
const DropdownItemText = createWithBsPrefix('dropdown-item-text', {
|
|
58595
|
-
Component: 'span'
|
|
58596
|
-
});
|
|
58597
58728
|
const Dropdown$1 = /*#__PURE__*/React.forwardRef((pProps, ref) => {
|
|
58598
58729
|
const {
|
|
58599
58730
|
bsPrefix,
|
|
@@ -59111,7 +59242,20 @@ module.exports = exports['default'];
|
|
|
59111
59242
|
|
|
59112
59243
|
unwrapExports(all_1);
|
|
59113
59244
|
|
|
59114
|
-
|
|
59245
|
+
const NavItem$1 = /*#__PURE__*/React.forwardRef(({
|
|
59246
|
+
className,
|
|
59247
|
+
bsPrefix,
|
|
59248
|
+
as: Component = 'div',
|
|
59249
|
+
...props
|
|
59250
|
+
}, ref) => {
|
|
59251
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'nav-item');
|
|
59252
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59253
|
+
ref: ref,
|
|
59254
|
+
className: classnames(className, bsPrefix),
|
|
59255
|
+
...props
|
|
59256
|
+
});
|
|
59257
|
+
});
|
|
59258
|
+
NavItem$1.displayName = 'NavItem';
|
|
59115
59259
|
|
|
59116
59260
|
const NavLink = /*#__PURE__*/React.forwardRef(({
|
|
59117
59261
|
bsPrefix,
|
|
@@ -59325,9 +59469,35 @@ const Overlay = /*#__PURE__*/React.forwardRef((props, outerRef) => {
|
|
|
59325
59469
|
});
|
|
59326
59470
|
Overlay.displayName = 'Overlay';
|
|
59327
59471
|
|
|
59328
|
-
|
|
59472
|
+
const PopoverHeader = /*#__PURE__*/React.forwardRef(({
|
|
59473
|
+
className,
|
|
59474
|
+
bsPrefix,
|
|
59475
|
+
as: Component = 'div',
|
|
59476
|
+
...props
|
|
59477
|
+
}, ref) => {
|
|
59478
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-header');
|
|
59479
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59480
|
+
ref: ref,
|
|
59481
|
+
className: classnames(className, bsPrefix),
|
|
59482
|
+
...props
|
|
59483
|
+
});
|
|
59484
|
+
});
|
|
59485
|
+
PopoverHeader.displayName = 'PopoverHeader';
|
|
59329
59486
|
|
|
59330
|
-
|
|
59487
|
+
const PopoverBody = /*#__PURE__*/React.forwardRef(({
|
|
59488
|
+
className,
|
|
59489
|
+
bsPrefix,
|
|
59490
|
+
as: Component = 'div',
|
|
59491
|
+
...props
|
|
59492
|
+
}, ref) => {
|
|
59493
|
+
bsPrefix = useBootstrapPrefix(bsPrefix, 'popover-body');
|
|
59494
|
+
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59495
|
+
ref: ref,
|
|
59496
|
+
className: classnames(className, bsPrefix),
|
|
59497
|
+
...props
|
|
59498
|
+
});
|
|
59499
|
+
});
|
|
59500
|
+
PopoverBody.displayName = 'PopoverBody';
|
|
59331
59501
|
|
|
59332
59502
|
// Need to use this instead of typeof Component to get proper type checking.
|
|
59333
59503
|
|
|
@@ -59501,10 +59671,11 @@ const Overlay$1 = /*#__PURE__*/React.forwardRef(({
|
|
|
59501
59671
|
popperConfig == null ? void 0 : popperConfig.onFirstUpdate == null ? void 0 : popperConfig.onFirstUpdate(state);
|
|
59502
59672
|
});
|
|
59503
59673
|
useIsomorphicEffect(() => {
|
|
59504
|
-
if (firstRenderedState) {
|
|
59674
|
+
if (firstRenderedState && outerProps.target) {
|
|
59675
|
+
// Must wait for target element to resolve before updating popper.
|
|
59505
59676
|
popperRef.current.scheduleUpdate == null ? void 0 : popperRef.current.scheduleUpdate();
|
|
59506
59677
|
}
|
|
59507
|
-
}, [firstRenderedState]);
|
|
59678
|
+
}, [firstRenderedState, outerProps.target]);
|
|
59508
59679
|
React.useEffect(() => {
|
|
59509
59680
|
if (!outerShow) {
|
|
59510
59681
|
setFirstRenderedState(null);
|
|
@@ -59588,7 +59759,8 @@ handler, args, relatedNative) {
|
|
|
59588
59759
|
handler(...args);
|
|
59589
59760
|
}
|
|
59590
59761
|
}
|
|
59591
|
-
|
|
59762
|
+
const triggerType = propTypes.oneOf(['click', 'hover', 'focus']);
|
|
59763
|
+
const OverlayTrigger = ({
|
|
59592
59764
|
trigger = ['hover', 'focus'],
|
|
59593
59765
|
overlay,
|
|
59594
59766
|
children,
|
|
@@ -59600,7 +59772,7 @@ function OverlayTrigger({
|
|
|
59600
59772
|
placement,
|
|
59601
59773
|
flip = placement && placement.indexOf('auto') !== -1,
|
|
59602
59774
|
...props
|
|
59603
|
-
}) {
|
|
59775
|
+
}) => {
|
|
59604
59776
|
const triggerNodeRef = React.useRef(null);
|
|
59605
59777
|
const mergedRef = useMergedRefs(triggerNodeRef, children.ref);
|
|
59606
59778
|
const timeout = useTimeout();
|
|
@@ -59683,7 +59855,7 @@ function OverlayTrigger({
|
|
|
59683
59855
|
children: overlay
|
|
59684
59856
|
})]
|
|
59685
59857
|
});
|
|
59686
|
-
}
|
|
59858
|
+
};
|
|
59687
59859
|
|
|
59688
59860
|
var Icon = function Icon(props) {
|
|
59689
59861
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("img", {
|
|
@@ -59701,9 +59873,11 @@ var Icon = function Icon(props) {
|
|
|
59701
59873
|
}));
|
|
59702
59874
|
};
|
|
59703
59875
|
|
|
59876
|
+
var UNIT = function UNIT() {};
|
|
59877
|
+
UNIT.PX = 'px';
|
|
59878
|
+
|
|
59704
59879
|
var styles$6 = {"vitro-button":"_button_vitro-button_hVfBuSO","vitro-animation-ripple":"_button_vitro-animation-ripple_7CFAk_a"};
|
|
59705
59880
|
|
|
59706
|
-
var PX_UNIT = 'px';
|
|
59707
59881
|
var HTML_ELEMENT_SPAN = 'span';
|
|
59708
59882
|
var TYPE_BUTTON = 'button';
|
|
59709
59883
|
var Button$2 = function Button(props) {
|
|
@@ -59719,9 +59893,9 @@ var Button$2 = function Button(props) {
|
|
|
59719
59893
|
var circle = window.document.createElement(HTML_ELEMENT_SPAN);
|
|
59720
59894
|
var diameter = Math.max(button.clientWidth, button.clientHeight);
|
|
59721
59895
|
var radius = diameter / 2;
|
|
59722
|
-
circle.style.width = circle.style.height = diameter +
|
|
59723
|
-
circle.style.left = e.clientX - button.getBoundingClientRect().left - radius +
|
|
59724
|
-
circle.style.top = e.clientY - button.getBoundingClientRect().top - radius +
|
|
59896
|
+
circle.style.width = circle.style.height = diameter + UNIT.PX;
|
|
59897
|
+
circle.style.left = e.clientX - button.getBoundingClientRect().left - radius + UNIT.PX;
|
|
59898
|
+
circle.style.top = e.clientY - button.getBoundingClientRect().top - radius + UNIT.PX;
|
|
59725
59899
|
circle.classList.add('vitro-effect-ripple');
|
|
59726
59900
|
var ripple = button.getElementsByClassName('vitro-effect-ripple')[0];
|
|
59727
59901
|
if (ripple) {
|
|
@@ -60713,12 +60887,11 @@ var GetGroupControl = function GetGroupControl(props) {
|
|
|
60713
60887
|
|
|
60714
60888
|
var styles$e = {"vitro-label":"_label_vitro-label_it8WNUE","vitro-required":"_label_vitro-required_2-bSGif"};
|
|
60715
60889
|
|
|
60716
|
-
var PX_UNIT$1 = 'px';
|
|
60717
60890
|
var Label = function Label(props) {
|
|
60718
60891
|
return React__default.createElement("div", {
|
|
60719
60892
|
className: styles$e['vitro-label'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
60720
60893
|
style: props.width ? {
|
|
60721
|
-
width: props.width +
|
|
60894
|
+
width: props.width + UNIT.PX
|
|
60722
60895
|
} : undefined
|
|
60723
60896
|
}, props.text, props.isRequired && React__default.createElement("span", {
|
|
60724
60897
|
className: styles$e['vitro-required']
|
|
@@ -60741,7 +60914,6 @@ KEY_CODE.ENTER = 13;
|
|
|
60741
60914
|
|
|
60742
60915
|
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"};
|
|
60743
60916
|
|
|
60744
|
-
var PX_UNIT$2 = 'px';
|
|
60745
60917
|
var Input = React.forwardRef(function (props, ref) {
|
|
60746
60918
|
var control;
|
|
60747
60919
|
var _useState = React.useState({}),
|
|
@@ -60763,9 +60935,9 @@ var Input = React.forwardRef(function (props, ref) {
|
|
|
60763
60935
|
}, [props.errorMessage, props.isError]);
|
|
60764
60936
|
React.useEffect(function () {
|
|
60765
60937
|
var jsonStyle = {};
|
|
60766
|
-
if (props.height) jsonStyle.height = props.height +
|
|
60767
|
-
if (props.minHeight) jsonStyle.minHeight = props.minHeight +
|
|
60768
|
-
if (props.maxHeight) jsonStyle.maxHeight = props.maxHeight +
|
|
60938
|
+
if (props.height) jsonStyle.height = props.height + UNIT.PX;
|
|
60939
|
+
if (props.minHeight) jsonStyle.minHeight = props.minHeight + UNIT.PX;
|
|
60940
|
+
if (props.maxHeight) jsonStyle.maxHeight = props.maxHeight + UNIT.PX;
|
|
60769
60941
|
setStyle(jsonStyle);
|
|
60770
60942
|
}, [props.height, props.minHeight, props.maxHeight]);
|
|
60771
60943
|
React.useImperativeHandle(ref, function () {
|
|
@@ -60955,7 +61127,7 @@ var Avatar = function Avatar(props) {
|
|
|
60955
61127
|
var className = styles$h['vitro-avatar'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY);
|
|
60956
61128
|
return React__default.createElement("div", {
|
|
60957
61129
|
className: className,
|
|
60958
|
-
style: {
|
|
61130
|
+
style: props.image ? {} : {
|
|
60959
61131
|
background: getBackground()
|
|
60960
61132
|
}
|
|
60961
61133
|
}, props.image ? React__default.createElement("img", {
|
|
@@ -61475,51 +61647,88 @@ var LABEL_POSITION;
|
|
|
61475
61647
|
LABEL_POSITION["LEFT"] = "left";
|
|
61476
61648
|
})(LABEL_POSITION || (LABEL_POSITION = {}));
|
|
61477
61649
|
|
|
61478
|
-
var
|
|
61650
|
+
var PLACEMENT$1;
|
|
61651
|
+
(function (PLACEMENT) {
|
|
61652
|
+
PLACEMENT["TOP"] = "top";
|
|
61653
|
+
PLACEMENT["BOTTOM"] = "bottom";
|
|
61654
|
+
PLACEMENT["LEFT"] = "left";
|
|
61655
|
+
PLACEMENT["RIGHT"] = "right";
|
|
61656
|
+
PLACEMENT["AUTO"] = "auto";
|
|
61657
|
+
})(PLACEMENT$1 || (PLACEMENT$1 = {}));
|
|
61658
|
+
|
|
61659
|
+
var styles$n = {"vitro-control":"_date-picker_vitro-control_2AYXegb","vitro-display-none":"_date-picker_vitro-display-none_2wJx8XG","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"};
|
|
61479
61660
|
|
|
61480
61661
|
var $$3 = window.$;
|
|
61481
61662
|
var DatePicker = React.forwardRef(function (props, ref) {
|
|
61482
|
-
var _useState = React.useState(
|
|
61483
|
-
|
|
61484
|
-
|
|
61485
|
-
var
|
|
61663
|
+
var _useState = React.useState(false),
|
|
61664
|
+
ready = _useState[0],
|
|
61665
|
+
setReady = _useState[1];
|
|
61666
|
+
var _useState2 = React.useState(CTRL.EMPTY),
|
|
61667
|
+
state = _useState2[0],
|
|
61668
|
+
setState = _useState2[1];
|
|
61669
|
+
var _useState3 = React.useState(null),
|
|
61670
|
+
style = _useState3[0],
|
|
61671
|
+
setStyle = _useState3[1];
|
|
61672
|
+
var _useState4 = React.useState(false),
|
|
61673
|
+
isOpened = _useState4[0],
|
|
61674
|
+
setIsOpened = _useState4[1];
|
|
61675
|
+
var controlRef = React.useRef(null);
|
|
61676
|
+
var containerRef = React.useRef(null);
|
|
61486
61677
|
var inputRef = React.useRef(null);
|
|
61487
61678
|
var componentName = 'kendoDatePicker';
|
|
61488
61679
|
React.useEffect(function () {
|
|
61489
|
-
|
|
61490
|
-
|
|
61491
|
-
|
|
61492
|
-
|
|
61493
|
-
|
|
61494
|
-
|
|
61495
|
-
|
|
61496
|
-
|
|
61497
|
-
|
|
61498
|
-
|
|
61499
|
-
|
|
61500
|
-
|
|
61501
|
-
|
|
61502
|
-
|
|
61503
|
-
|
|
61504
|
-
|
|
61505
|
-
|
|
61506
|
-
|
|
61507
|
-
|
|
61508
|
-
|
|
61509
|
-
|
|
61510
|
-
|
|
61680
|
+
if (containerRef.current && inputRef.current) {
|
|
61681
|
+
init();
|
|
61682
|
+
}
|
|
61683
|
+
}, [inputRef, containerRef]);
|
|
61684
|
+
React.useEffect(function () {
|
|
61685
|
+
if (ready) {
|
|
61686
|
+
if (props.value) {
|
|
61687
|
+
$$3(inputRef.current).data(componentName).value(new Date(props.value));
|
|
61688
|
+
} else {
|
|
61689
|
+
$$3(inputRef.current).data(componentName).value(null);
|
|
61690
|
+
setOptions({
|
|
61691
|
+
dateInput: true
|
|
61692
|
+
});
|
|
61693
|
+
}
|
|
61694
|
+
}
|
|
61695
|
+
}, [props.value]);
|
|
61696
|
+
React.useEffect(function () {
|
|
61697
|
+
if (ready) {
|
|
61698
|
+
setOptions({
|
|
61699
|
+
disableDates: function disableDates(date) {
|
|
61700
|
+
if (!props.isWorkDay) {
|
|
61701
|
+
return false;
|
|
61702
|
+
}
|
|
61703
|
+
return props.isWorkDay(date);
|
|
61511
61704
|
}
|
|
61512
|
-
}
|
|
61513
|
-
|
|
61514
|
-
|
|
61515
|
-
|
|
61516
|
-
|
|
61705
|
+
});
|
|
61706
|
+
}
|
|
61707
|
+
}, [props.isWorkDay]);
|
|
61708
|
+
React.useEffect(function () {
|
|
61709
|
+
props.errorMessage ? setState(styles$n['vitro-error']) : setState(CTRL.EMPTY);
|
|
61710
|
+
}, [props.errorMessage]);
|
|
61711
|
+
React.useEffect(function () {
|
|
61712
|
+
if (isOpened && !props.isFlipDropdown && controlRef.current) {
|
|
61713
|
+
setStyle({
|
|
61714
|
+
width: controlRef.current.offsetWidth + UNIT.PX,
|
|
61715
|
+
inset: controlRef.current.offsetHeight + UNIT.PX + " auto auto 0px"
|
|
61716
|
+
});
|
|
61717
|
+
} else {
|
|
61718
|
+
setStyle(null);
|
|
61719
|
+
}
|
|
61720
|
+
}, [isOpened]);
|
|
61721
|
+
React.useImperativeHandle(ref, function () {
|
|
61722
|
+
return {
|
|
61723
|
+
focus: function focus() {
|
|
61724
|
+
if (inputRef.current) {
|
|
61725
|
+
inputRef.current.focus();
|
|
61517
61726
|
}
|
|
61518
|
-
},
|
|
61519
|
-
popup: {
|
|
61520
|
-
appendTo: $$3(container.current)
|
|
61521
61727
|
}
|
|
61522
61728
|
};
|
|
61729
|
+
});
|
|
61730
|
+
var init = function init() {
|
|
61731
|
+
var config = getConfig();
|
|
61523
61732
|
if (props.minValue) {
|
|
61524
61733
|
config.min = props.minValue;
|
|
61525
61734
|
}
|
|
@@ -61533,74 +61742,41 @@ var DatePicker = React.forwardRef(function (props, ref) {
|
|
|
61533
61742
|
var picker = $$3(inputRef.current).data(componentName);
|
|
61534
61743
|
picker.enable(!props.isDisabled);
|
|
61535
61744
|
picker.readonly(props.isReadOnly === true);
|
|
61536
|
-
|
|
61537
|
-
|
|
61538
|
-
|
|
61539
|
-
|
|
61540
|
-
|
|
61541
|
-
|
|
61542
|
-
|
|
61543
|
-
|
|
61544
|
-
|
|
61545
|
-
|
|
61546
|
-
|
|
61547
|
-
React.useEffect(function () {
|
|
61548
|
-
$$3(inputRef.current).data(componentName).setOptions({
|
|
61549
|
-
change: function change(e) {
|
|
61550
|
-
if (props.onChange) {
|
|
61551
|
-
props.onChange(e.sender.value(), props.name);
|
|
61552
|
-
}
|
|
61553
|
-
}
|
|
61554
|
-
});
|
|
61555
|
-
}, [props.onChange]);
|
|
61556
|
-
React.useEffect(function () {
|
|
61557
|
-
$$3(inputRef.current).data(componentName).setOptions({
|
|
61745
|
+
setReady(true);
|
|
61746
|
+
};
|
|
61747
|
+
var getConfig = function getConfig() {
|
|
61748
|
+
var config = {
|
|
61749
|
+
culture: props.culture || CULTURE.RU,
|
|
61750
|
+
dateInput: true,
|
|
61751
|
+
value: props.value,
|
|
61752
|
+
start: props.start,
|
|
61753
|
+
depth: props.depth,
|
|
61754
|
+
format: props.format,
|
|
61755
|
+
animation: false,
|
|
61558
61756
|
disableDates: function disableDates(date) {
|
|
61559
61757
|
if (!props.isWorkDay) {
|
|
61560
61758
|
return false;
|
|
61561
61759
|
}
|
|
61562
61760
|
return props.isWorkDay(date);
|
|
61563
|
-
}
|
|
61564
|
-
});
|
|
61565
|
-
}, [props.isWorkDay]);
|
|
61566
|
-
React.useEffect(function () {
|
|
61567
|
-
$$3(inputRef.current).data(componentName).setOptions({
|
|
61761
|
+
},
|
|
61568
61762
|
open: function open(e) {
|
|
61569
|
-
|
|
61570
|
-
|
|
61571
|
-
|
|
61572
|
-
|
|
61573
|
-
}
|
|
61574
|
-
});
|
|
61575
|
-
}, [props.onOpen]);
|
|
61576
|
-
React.useEffect(function () {
|
|
61577
|
-
$$3(inputRef.current).data(componentName).setOptions({
|
|
61763
|
+
onOpen(e);
|
|
61764
|
+
},
|
|
61765
|
+
change: function change(e) {
|
|
61766
|
+
onChange(e);
|
|
61767
|
+
},
|
|
61578
61768
|
close: function close(e) {
|
|
61579
|
-
|
|
61580
|
-
|
|
61581
|
-
|
|
61582
|
-
|
|
61583
|
-
}
|
|
61584
|
-
});
|
|
61585
|
-
}, [props.onClose]);
|
|
61586
|
-
React.useEffect(function () {
|
|
61587
|
-
if (props.minValue) $$3(inputRef.current).data(componentName).min(props.minValue);
|
|
61588
|
-
}, [props.minValue]);
|
|
61589
|
-
React.useEffect(function () {
|
|
61590
|
-
if (props.maxValue) $$3(inputRef.current).data(componentName).max(props.maxValue);
|
|
61591
|
-
}, [props.maxValue]);
|
|
61592
|
-
React.useEffect(function () {
|
|
61593
|
-
props.errorMessage ? setState(styles$n['vitro-error']) : setState(CTRL.EMPTY);
|
|
61594
|
-
}, [props.errorMessage]);
|
|
61595
|
-
React.useImperativeHandle(ref, function () {
|
|
61596
|
-
return {
|
|
61597
|
-
focus: function focus() {
|
|
61598
|
-
if (inputRef.current) {
|
|
61599
|
-
inputRef.current.focus();
|
|
61600
|
-
}
|
|
61769
|
+
onClose(e);
|
|
61770
|
+
},
|
|
61771
|
+
popup: {
|
|
61772
|
+
appendTo: $$3(containerRef.current)
|
|
61601
61773
|
}
|
|
61602
61774
|
};
|
|
61603
|
-
|
|
61775
|
+
return config;
|
|
61776
|
+
};
|
|
61777
|
+
var setOptions = function setOptions(options) {
|
|
61778
|
+
$$3(inputRef.current).data(componentName).setOptions(options);
|
|
61779
|
+
};
|
|
61604
61780
|
var onFocus = function onFocus(e) {
|
|
61605
61781
|
setState(styles$n['vitro-focus']);
|
|
61606
61782
|
if (props.onFocus) {
|
|
@@ -61613,6 +61789,25 @@ var DatePicker = React.forwardRef(function (props, ref) {
|
|
|
61613
61789
|
props.onBlur(e);
|
|
61614
61790
|
}
|
|
61615
61791
|
};
|
|
61792
|
+
var onOpen = function onOpen(e) {
|
|
61793
|
+
setIsOpened(true);
|
|
61794
|
+
onFocus(e);
|
|
61795
|
+
if (props.onOpen) {
|
|
61796
|
+
props.onOpen(e, $$3(containerRef.current));
|
|
61797
|
+
}
|
|
61798
|
+
};
|
|
61799
|
+
var onClose = function onClose(e) {
|
|
61800
|
+
setIsOpened(false);
|
|
61801
|
+
onBlur(e);
|
|
61802
|
+
if (props.onClose) {
|
|
61803
|
+
props.onClose(e.sender.value(), props.name);
|
|
61804
|
+
}
|
|
61805
|
+
};
|
|
61806
|
+
var onChange = function onChange(e) {
|
|
61807
|
+
if (props.onChange) {
|
|
61808
|
+
props.onChange(e.sender.value(), props.name);
|
|
61809
|
+
}
|
|
61810
|
+
};
|
|
61616
61811
|
var copyValue = function copyValue() {
|
|
61617
61812
|
navigator.clipboard.writeText("" + props.value);
|
|
61618
61813
|
};
|
|
@@ -61628,7 +61823,8 @@ var DatePicker = React.forwardRef(function (props, ref) {
|
|
|
61628
61823
|
return classList.join(CTRL.SPACE);
|
|
61629
61824
|
};
|
|
61630
61825
|
return React__default.createElement("div", {
|
|
61631
|
-
className: getClassName()
|
|
61826
|
+
className: getClassName(),
|
|
61827
|
+
ref: controlRef
|
|
61632
61828
|
}, props.label && React__default.createElement(Label, {
|
|
61633
61829
|
text: props.label,
|
|
61634
61830
|
isRequired: props.isRequired,
|
|
@@ -61642,10 +61838,19 @@ var DatePicker = React.forwardRef(function (props, ref) {
|
|
|
61642
61838
|
}), props.isReadOnly ? React__default.createElement("span", {
|
|
61643
61839
|
className: styles$n['vitro-button-copy'],
|
|
61644
61840
|
onClick: copyValue
|
|
61645
|
-
}) : null, React__default.createElement("div", {
|
|
61646
|
-
ref:
|
|
61841
|
+
}) : null, props.isFlipDropdown ? React__default.createElement("div", {
|
|
61842
|
+
ref: containerRef,
|
|
61647
61843
|
className: styles$n['vitro-control-container']
|
|
61648
|
-
})
|
|
61844
|
+
}) : React__default.createElement(Overlay$1, {
|
|
61845
|
+
show: true,
|
|
61846
|
+
target: inputRef.current,
|
|
61847
|
+
placement: PLACEMENT$1.AUTO
|
|
61848
|
+
}, React__default.createElement("div", {
|
|
61849
|
+
style: style ? style : {},
|
|
61850
|
+
className: styles$n['vitro-control-container'] + (style ? CTRL.EMPTY : CTRL.SPACE + styles$n['vitro-display-none'])
|
|
61851
|
+
}, React__default.createElement("div", {
|
|
61852
|
+
ref: containerRef
|
|
61853
|
+
}))), props.errorMessage && React__default.createElement("span", {
|
|
61649
61854
|
className: styles$n['vitro-error-text']
|
|
61650
61855
|
}, props.errorMessage));
|
|
61651
61856
|
});
|
|
@@ -61667,60 +61872,105 @@ var COMPONENT_TYPE;
|
|
|
61667
61872
|
COMPONENT_TYPE["MODERN"] = "modern";
|
|
61668
61873
|
})(COMPONENT_TYPE || (COMPONENT_TYPE = {}));
|
|
61669
61874
|
|
|
61670
|
-
var styles$o = {"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"};
|
|
61875
|
+
var styles$o = {"vitro-control":"_time-picker_vitro-control_1sx07It","vitro-display-none":"_time-picker_vitro-display-none_3GgWh46","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"};
|
|
61671
61876
|
|
|
61672
61877
|
var $$4 = window.$;
|
|
61673
61878
|
var TimePicker = React.forwardRef(function (props, ref) {
|
|
61674
|
-
var _useState = React.useState(
|
|
61675
|
-
|
|
61676
|
-
|
|
61677
|
-
var
|
|
61879
|
+
var _useState = React.useState(false),
|
|
61880
|
+
ready = _useState[0],
|
|
61881
|
+
setReady = _useState[1];
|
|
61882
|
+
var _useState2 = React.useState(CTRL.EMPTY),
|
|
61883
|
+
state = _useState2[0],
|
|
61884
|
+
setState = _useState2[1];
|
|
61885
|
+
var _useState3 = React.useState(null),
|
|
61886
|
+
style = _useState3[0],
|
|
61887
|
+
setStyle = _useState3[1];
|
|
61888
|
+
var _useState4 = React.useState(false),
|
|
61889
|
+
isOpened = _useState4[0],
|
|
61890
|
+
setIsOpened = _useState4[1];
|
|
61891
|
+
var controlRef = React.useRef(null);
|
|
61892
|
+
var containerRef = React.useRef(null);
|
|
61678
61893
|
var inputRef = React.useRef(null);
|
|
61679
61894
|
var componentName = 'kendoTimePicker';
|
|
61680
61895
|
React.useEffect(function () {
|
|
61681
|
-
|
|
61896
|
+
if (containerRef.current && inputRef.current) {
|
|
61897
|
+
init();
|
|
61898
|
+
}
|
|
61899
|
+
}, [inputRef, containerRef]);
|
|
61900
|
+
React.useEffect(function () {
|
|
61901
|
+
if (isOpened && !props.isFlipDropdown && controlRef.current) {
|
|
61902
|
+
setStyle({
|
|
61903
|
+
width: controlRef.current.offsetWidth + UNIT.PX,
|
|
61904
|
+
inset: controlRef.current.offsetHeight + UNIT.PX + " auto auto 0px"
|
|
61905
|
+
});
|
|
61906
|
+
} else {
|
|
61907
|
+
setStyle(null);
|
|
61908
|
+
}
|
|
61909
|
+
}, [isOpened]);
|
|
61910
|
+
React.useEffect(function () {
|
|
61911
|
+
if (ready) {
|
|
61912
|
+
$$4(inputRef.current).data(componentName).value(props.value);
|
|
61913
|
+
}
|
|
61914
|
+
}, [props.value]);
|
|
61915
|
+
React.useImperativeHandle(ref, function () {
|
|
61916
|
+
return {
|
|
61917
|
+
focus: function focus() {
|
|
61918
|
+
if (inputRef.current) {
|
|
61919
|
+
inputRef.current.focus();
|
|
61920
|
+
}
|
|
61921
|
+
}
|
|
61922
|
+
};
|
|
61923
|
+
});
|
|
61924
|
+
var init = function init() {
|
|
61925
|
+
var config = getConfig();
|
|
61926
|
+
$$4(inputRef.current).kendoTimePicker(config);
|
|
61927
|
+
var picker = $$4(inputRef.current).data(componentName);
|
|
61928
|
+
picker.enable(!props.isDisabled);
|
|
61929
|
+
picker.readonly(props.isReadOnly === true);
|
|
61930
|
+
setReady(true);
|
|
61931
|
+
};
|
|
61932
|
+
var getConfig = function getConfig() {
|
|
61933
|
+
var config = {
|
|
61682
61934
|
format: props.format || FORMAT.HH_MM,
|
|
61683
61935
|
componentType: COMPONENT_TYPE.MODERN,
|
|
61684
61936
|
culture: props.culture || CULTURE$1.RU,
|
|
61685
61937
|
value: props.value,
|
|
61938
|
+
animation: false,
|
|
61686
61939
|
dateInput: true,
|
|
61687
61940
|
change: function change(e) {
|
|
61688
|
-
|
|
61689
|
-
props.onChange(e.sender.value());
|
|
61690
|
-
}
|
|
61941
|
+
onChange(e);
|
|
61691
61942
|
},
|
|
61692
61943
|
open: function open(e) {
|
|
61693
|
-
|
|
61694
|
-
if (props.onOpen) {
|
|
61695
|
-
props.onOpen(e, $$4(container.current));
|
|
61696
|
-
}
|
|
61944
|
+
onOpen(e);
|
|
61697
61945
|
},
|
|
61698
61946
|
close: function close(e) {
|
|
61699
|
-
|
|
61700
|
-
if (props.onClose) {
|
|
61701
|
-
props.onClose(e, $$4(container.current));
|
|
61702
|
-
}
|
|
61947
|
+
onClose(e);
|
|
61703
61948
|
},
|
|
61704
61949
|
popup: {
|
|
61705
|
-
appendTo: $$4(
|
|
61706
|
-
}
|
|
61707
|
-
});
|
|
61708
|
-
var picker = $$4(inputRef.current).data(componentName);
|
|
61709
|
-
picker.enable(!props.isDisabled);
|
|
61710
|
-
picker.readonly(props.isReadOnly === true);
|
|
61711
|
-
}, [inputRef]);
|
|
61712
|
-
React.useEffect(function () {
|
|
61713
|
-
$$4(inputRef.current).data(componentName).value(props.value);
|
|
61714
|
-
}, [props.value]);
|
|
61715
|
-
React.useImperativeHandle(ref, function () {
|
|
61716
|
-
return {
|
|
61717
|
-
focus: function focus() {
|
|
61718
|
-
if (inputRef.current) {
|
|
61719
|
-
inputRef.current.focus();
|
|
61720
|
-
}
|
|
61950
|
+
appendTo: $$4(containerRef.current)
|
|
61721
61951
|
}
|
|
61722
61952
|
};
|
|
61723
|
-
|
|
61953
|
+
return config;
|
|
61954
|
+
};
|
|
61955
|
+
var onOpen = function onOpen(e) {
|
|
61956
|
+
setIsOpened(true);
|
|
61957
|
+
onFocus(e);
|
|
61958
|
+
if (props.onOpen) {
|
|
61959
|
+
props.onOpen(e, $$4(containerRef.current));
|
|
61960
|
+
}
|
|
61961
|
+
};
|
|
61962
|
+
var onClose = function onClose(e) {
|
|
61963
|
+
setIsOpened(false);
|
|
61964
|
+
onBlur(e);
|
|
61965
|
+
if (props.onClose) {
|
|
61966
|
+
props.onClose(e, $$4(containerRef.current));
|
|
61967
|
+
}
|
|
61968
|
+
};
|
|
61969
|
+
var onChange = function onChange(e) {
|
|
61970
|
+
if (props.onChange) {
|
|
61971
|
+
props.onChange(e.sender.value());
|
|
61972
|
+
}
|
|
61973
|
+
};
|
|
61724
61974
|
var onFocus = function onFocus(e) {
|
|
61725
61975
|
setState(styles$o['vitro-focus']);
|
|
61726
61976
|
if (props.onFocus) {
|
|
@@ -61748,7 +61998,8 @@ var TimePicker = React.forwardRef(function (props, ref) {
|
|
|
61748
61998
|
return classList.join(CTRL.SPACE);
|
|
61749
61999
|
};
|
|
61750
62000
|
return React__default.createElement("div", {
|
|
61751
|
-
className: getClassName()
|
|
62001
|
+
className: getClassName(),
|
|
62002
|
+
ref: controlRef
|
|
61752
62003
|
}, props.label && React__default.createElement(Label, {
|
|
61753
62004
|
text: props.label,
|
|
61754
62005
|
isRequired: props.isRequired,
|
|
@@ -61762,10 +62013,19 @@ var TimePicker = React.forwardRef(function (props, ref) {
|
|
|
61762
62013
|
}), props.isReadOnly ? React__default.createElement("span", {
|
|
61763
62014
|
className: styles$o['vitro-button-copy'],
|
|
61764
62015
|
onClick: copyValue
|
|
61765
|
-
}) : null, React__default.createElement("div", {
|
|
61766
|
-
ref:
|
|
62016
|
+
}) : null, props.isFlipDropdown ? React__default.createElement("div", {
|
|
62017
|
+
ref: containerRef,
|
|
61767
62018
|
className: styles$o['vitro-control-container']
|
|
61768
|
-
})
|
|
62019
|
+
}) : React__default.createElement(Overlay$1, {
|
|
62020
|
+
show: true,
|
|
62021
|
+
target: inputRef.current,
|
|
62022
|
+
placement: PLACEMENT$1.AUTO
|
|
62023
|
+
}, React__default.createElement("div", {
|
|
62024
|
+
style: style ? style : {},
|
|
62025
|
+
className: styles$o['vitro-control-container'] + (style ? CTRL.EMPTY : CTRL.SPACE + styles$o['vitro-display-none'])
|
|
62026
|
+
}, React__default.createElement("div", {
|
|
62027
|
+
ref: containerRef
|
|
62028
|
+
}))), props.errorMessage && React__default.createElement("span", {
|
|
61769
62029
|
className: styles$o['vitro-error-text']
|
|
61770
62030
|
}, props.errorMessage));
|
|
61771
62031
|
});
|
|
@@ -61793,7 +62053,7 @@ var SelectedValueList = function SelectedValueList(props) {
|
|
|
61793
62053
|
}));
|
|
61794
62054
|
};
|
|
61795
62055
|
|
|
61796
|
-
var
|
|
62056
|
+
var valueListStyles = {"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"};
|
|
61797
62057
|
|
|
61798
62058
|
var ValueListItem = function ValueListItem(props) {
|
|
61799
62059
|
var _onKeyDown = function onKeyDown(e, id) {
|
|
@@ -61804,7 +62064,7 @@ var ValueListItem = function ValueListItem(props) {
|
|
|
61804
62064
|
};
|
|
61805
62065
|
return React__default.createElement("div", {
|
|
61806
62066
|
key: props.item.id,
|
|
61807
|
-
className:
|
|
62067
|
+
className: valueListStyles['vitro-item'],
|
|
61808
62068
|
onKeyDown: function onKeyDown(e) {
|
|
61809
62069
|
return _onKeyDown(e);
|
|
61810
62070
|
},
|
|
@@ -61826,19 +62086,39 @@ var ValueList = function ValueList(props) {
|
|
|
61826
62086
|
var _useState = React.useState(null),
|
|
61827
62087
|
scrollableElement = _useState[0],
|
|
61828
62088
|
setScrollableElement = _useState[1];
|
|
62089
|
+
var _useState2 = React.useState(null),
|
|
62090
|
+
style = _useState2[0],
|
|
62091
|
+
setStyle = _useState2[1];
|
|
61829
62092
|
var reg = new RegExp(props.inputValue, FLAG);
|
|
61830
62093
|
React.useEffect(function () {
|
|
61831
62094
|
if (scrollableElement && scrollableElement.scrollTop === 0) {
|
|
61832
62095
|
scrollableElement.scrollTop = 1;
|
|
61833
62096
|
}
|
|
61834
62097
|
});
|
|
62098
|
+
React.useEffect(function () {
|
|
62099
|
+
if (props.isVisible && !props.isFlip && props.contentRef) {
|
|
62100
|
+
setStyle({
|
|
62101
|
+
width: props.contentRef.offsetWidth + UNIT.PX,
|
|
62102
|
+
inset: props.contentRef.offsetHeight + UNIT.PX + " auto auto 0px"
|
|
62103
|
+
});
|
|
62104
|
+
} else {
|
|
62105
|
+
setStyle(null);
|
|
62106
|
+
}
|
|
62107
|
+
}, [props.isVisible]);
|
|
61835
62108
|
var createDisplayValue = function createDisplayValue(item) {
|
|
61836
62109
|
return props.inputValue ? props.filterValueTemplate(item).replace(reg, function (str) {
|
|
61837
|
-
return "<span class=" +
|
|
62110
|
+
return "<span class=" + valueListStyles['vitro-keyword-highlight'] + ">" + str + '</span>';
|
|
61838
62111
|
}) : props.filterValueTemplate(item);
|
|
61839
62112
|
};
|
|
61840
|
-
return React__default.createElement(
|
|
61841
|
-
|
|
62113
|
+
return React__default.createElement(Overlay$1, {
|
|
62114
|
+
show: props.isVisible,
|
|
62115
|
+
target: props.contentRef,
|
|
62116
|
+
container: props.isFlip ? props.containerRef : null,
|
|
62117
|
+
placement: PLACEMENT$1.AUTO,
|
|
62118
|
+
flip: props.isFlip ? true : false
|
|
62119
|
+
}, React__default.createElement("div", {
|
|
62120
|
+
style: style ? style : {},
|
|
62121
|
+
className: valueListStyles['vitro-value-list']
|
|
61842
62122
|
}, React__default.createElement(ScrollBar, {
|
|
61843
62123
|
onInit: setScrollableElement
|
|
61844
62124
|
}, 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) {
|
|
@@ -61849,8 +62129,8 @@ var ValueList = function ValueList(props) {
|
|
|
61849
62129
|
htmlValue: props.getHtmlValue && props.getHtmlValue(x)
|
|
61850
62130
|
});
|
|
61851
62131
|
}) : React__default.createElement("div", {
|
|
61852
|
-
className:
|
|
61853
|
-
}, props.emptyPlaceholder))));
|
|
62132
|
+
className: valueListStyles['vitro-placeholder-empty']
|
|
62133
|
+
}, props.emptyPlaceholder)))));
|
|
61854
62134
|
};
|
|
61855
62135
|
|
|
61856
62136
|
var LOCALE$4;
|
|
@@ -61858,7 +62138,7 @@ var LOCALE$4;
|
|
|
61858
62138
|
LOCALE["PLACEHOLDER_EMPTY"] = "app.common.lookupPicker.empty";
|
|
61859
62139
|
})(LOCALE$4 || (LOCALE$4 = {}));
|
|
61860
62140
|
|
|
61861
|
-
var styles$
|
|
62141
|
+
var styles$q = {"vitro-lookup-picker":"_lookup-picker_vitro-lookup-picker_1aXYQEG","vitro-content":"_lookup-picker_vitro-content_37L0slb","vitro-lookup-picker-multi-select":"_lookup-picker_vitro-lookup-picker-multi-select_3Lkq2tk","vitro-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"};
|
|
61862
62142
|
|
|
61863
62143
|
var $$5 = window.$;
|
|
61864
62144
|
var LookupPicker = React.forwardRef(function (props, ref) {
|
|
@@ -61881,12 +62161,14 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
61881
62161
|
var _useState6 = React.useState(null),
|
|
61882
62162
|
valueListRequestToken = _useState6[0],
|
|
61883
62163
|
setValueListRequestToken = _useState6[1];
|
|
61884
|
-
var _useState7 = React.useState(props.isDisabled || props.isReadOnly ? styles$
|
|
62164
|
+
var _useState7 = React.useState(props.isDisabled || props.isReadOnly ? styles$q['vitro-read-only'] : CTRL.EMPTY),
|
|
61885
62165
|
state = _useState7[0],
|
|
61886
62166
|
setState = _useState7[1];
|
|
61887
62167
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
61888
62168
|
var isEditable = !props.isDisabled && !props.isReadOnly;
|
|
61889
62169
|
var inputRef = React.useRef(null);
|
|
62170
|
+
var contentRef = React.useRef(null);
|
|
62171
|
+
var containerRef = React.useRef(null);
|
|
61890
62172
|
var updatePending = function updatePending(valueList) {
|
|
61891
62173
|
return setPending(valueList ? false : true);
|
|
61892
62174
|
};
|
|
@@ -61904,22 +62186,24 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
61904
62186
|
}
|
|
61905
62187
|
}, [props.selectedValueList]);
|
|
61906
62188
|
React.useEffect(function () {
|
|
61907
|
-
valueListVisible && inputRef && inputRef.current
|
|
61908
|
-
|
|
61909
|
-
if (props.
|
|
61910
|
-
|
|
61911
|
-
|
|
61912
|
-
|
|
61913
|
-
|
|
61914
|
-
|
|
61915
|
-
|
|
61916
|
-
|
|
61917
|
-
valueListRequestToken
|
|
62189
|
+
if (valueListVisible && inputRef && inputRef.current) {
|
|
62190
|
+
inputRef.current.focus();
|
|
62191
|
+
if (props.isReadOnly) {
|
|
62192
|
+
if (props.valueList) {
|
|
62193
|
+
updateFilteredValueList(props.valueList);
|
|
62194
|
+
} else if (props.getAllValueList) {
|
|
62195
|
+
setPending(true);
|
|
62196
|
+
var requestToken = {
|
|
62197
|
+
cancel: false
|
|
62198
|
+
};
|
|
62199
|
+
if (valueListRequestToken) {
|
|
62200
|
+
valueListRequestToken.cancel = true;
|
|
62201
|
+
}
|
|
62202
|
+
setValueListRequestToken(requestToken);
|
|
62203
|
+
props.getAllValueList().then(function (valueList) {
|
|
62204
|
+
return onGetValueList(valueList, requestToken);
|
|
62205
|
+
});
|
|
61918
62206
|
}
|
|
61919
|
-
setValueListRequestToken(requestToken);
|
|
61920
|
-
props.getAllValueList().then(function (valueList) {
|
|
61921
|
-
return onGetValueList(valueList, requestToken);
|
|
61922
|
-
});
|
|
61923
62207
|
}
|
|
61924
62208
|
}
|
|
61925
62209
|
}, [valueListVisible]);
|
|
@@ -61971,7 +62255,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
61971
62255
|
}
|
|
61972
62256
|
}, [selectedValueList]);
|
|
61973
62257
|
React.useEffect(function () {
|
|
61974
|
-
setState(props.errorMessage ? styles$
|
|
62258
|
+
setState(props.errorMessage ? styles$q['vitro-error'] : CTRL.EMPTY);
|
|
61975
62259
|
}, [props.errorMessage]);
|
|
61976
62260
|
var updateFilteredValueList = function updateFilteredValueList(valueList) {
|
|
61977
62261
|
var availableValueList = inputValue ? filteredValueList : valueList;
|
|
@@ -61993,7 +62277,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
61993
62277
|
return props.selectedValueTemplate ? props.selectedValueTemplate(value) : value.title;
|
|
61994
62278
|
};
|
|
61995
62279
|
var onChange = function onChange(e) {
|
|
61996
|
-
setState(styles$
|
|
62280
|
+
setState(styles$q['vitro-focus']);
|
|
61997
62281
|
setValueListVisible(true);
|
|
61998
62282
|
setInputValue(e.target.value);
|
|
61999
62283
|
};
|
|
@@ -62047,9 +62331,10 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
62047
62331
|
};
|
|
62048
62332
|
var onFocusOut = function onFocusOut(e) {
|
|
62049
62333
|
var target = e.currentTarget;
|
|
62050
|
-
setState(props.errorMessage ? styles$
|
|
62334
|
+
setState(props.errorMessage ? styles$q['vitro-error'] : CTRL.EMPTY);
|
|
62051
62335
|
setTimeout(function () {
|
|
62052
|
-
|
|
62336
|
+
var _document$activeEleme;
|
|
62337
|
+
if (!target.contains(document.activeElement) && !((_document$activeEleme = document.activeElement) !== null && _document$activeEleme !== void 0 && _document$activeEleme.classList.contains(valueListStyles['vitro-item']))) {
|
|
62053
62338
|
setValueListVisible(false);
|
|
62054
62339
|
setInputValue(CTRL.EMPTY);
|
|
62055
62340
|
if (props.onBlur && !props.isDisabled) {
|
|
@@ -62061,7 +62346,7 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
62061
62346
|
});
|
|
62062
62347
|
};
|
|
62063
62348
|
var onFocus = function onFocus(e) {
|
|
62064
|
-
setState(styles$
|
|
62349
|
+
setState(styles$q['vitro-focus']);
|
|
62065
62350
|
setValueListVisible(true);
|
|
62066
62351
|
if (props.onFocus) {
|
|
62067
62352
|
props.onFocus(e);
|
|
@@ -62079,12 +62364,12 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
62079
62364
|
}).join(CTRL.COMMA));
|
|
62080
62365
|
};
|
|
62081
62366
|
var getClassName = function getClassName() {
|
|
62082
|
-
var classList = [styles$
|
|
62367
|
+
var classList = [styles$q['vitro-lookup-picker'], props.className];
|
|
62083
62368
|
if (props.isDisabled || props.isReadOnly) {
|
|
62084
|
-
classList.push(styles$
|
|
62369
|
+
classList.push(styles$q['vitro-read-only']);
|
|
62085
62370
|
}
|
|
62086
62371
|
if (props.isMultiSelect) {
|
|
62087
|
-
classList.push(styles$
|
|
62372
|
+
classList.push(styles$q['vitro-lookup-picker-multi-select']);
|
|
62088
62373
|
}
|
|
62089
62374
|
classList.push(state);
|
|
62090
62375
|
return classList.join(CTRL.SPACE);
|
|
@@ -62098,15 +62383,17 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
62098
62383
|
return React__default.createElement("div", {
|
|
62099
62384
|
className: getClassName(),
|
|
62100
62385
|
tabIndex: 1,
|
|
62101
|
-
onBlur: onFocusOut
|
|
62386
|
+
onBlur: onFocusOut,
|
|
62387
|
+
ref: containerRef
|
|
62102
62388
|
}, props.label && React__default.createElement(Label, {
|
|
62103
62389
|
text: props.label,
|
|
62104
62390
|
isRequired: props.isRequired,
|
|
62105
62391
|
width: props.labelWidth,
|
|
62106
|
-
className: styles$
|
|
62392
|
+
className: styles$q['vitro-label']
|
|
62107
62393
|
}), React__default.createElement("div", {
|
|
62108
|
-
className: styles$
|
|
62109
|
-
onClick: onFocus
|
|
62394
|
+
className: styles$q['vitro-content'],
|
|
62395
|
+
onClick: onFocus,
|
|
62396
|
+
ref: contentRef
|
|
62110
62397
|
}, selectedValueList && selectedValueList.length > 0 && (props.isMultiSelect ? true : inputValue.length === 0) ? React__default.createElement(SelectedValueList, {
|
|
62111
62398
|
list: selectedValueList,
|
|
62112
62399
|
onOptionValueDelete: onOptionValueDelete,
|
|
@@ -62120,9 +62407,9 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
62120
62407
|
onChange: onChange,
|
|
62121
62408
|
onClick: onFocus
|
|
62122
62409
|
}), !props.isDisabled && props.children, React__default.createElement("div", {
|
|
62123
|
-
className: styles$
|
|
62410
|
+
className: styles$q['vitro-right']
|
|
62124
62411
|
}, !props.isMultiSelect && selectedValueList && selectedValueList.length > 0 && isEditable && React__default.createElement("div", {
|
|
62125
|
-
className: styles$
|
|
62412
|
+
className: styles$q['vitro-button-close'],
|
|
62126
62413
|
onClick: function onClick() {
|
|
62127
62414
|
return onOptionValueDelete();
|
|
62128
62415
|
}
|
|
@@ -62130,52 +62417,55 @@ var LookupPicker = React.forwardRef(function (props, ref) {
|
|
|
62130
62417
|
onClick: function onClick() {
|
|
62131
62418
|
return onCollapseButtonClick(valueListVisible);
|
|
62132
62419
|
},
|
|
62133
|
-
className: valueListVisible ? styles$
|
|
62420
|
+
className: valueListVisible ? styles$q['vitro-button-collapse-up'] : styles$q['vitro-button-collapse-bottom']
|
|
62134
62421
|
}), props.isReadOnly ? React__default.createElement("span", {
|
|
62135
|
-
className: styles$
|
|
62422
|
+
className: styles$q['vitro-button-copy'],
|
|
62136
62423
|
onClick: copyValue
|
|
62137
62424
|
}) : null)), isEditable && (!props.filterMinLength || props.filterMinLength <= inputValue.length) && React__default.createElement(ValueList, {
|
|
62138
62425
|
isPending: pending,
|
|
62139
62426
|
inputValue: inputValue,
|
|
62140
62427
|
list: filteredValueList,
|
|
62428
|
+
isFlip: props.isFlipDropdown,
|
|
62141
62429
|
filterValueTemplate: filterValueTemplate,
|
|
62142
62430
|
onOptionValueSelect: onOptionValueSelect,
|
|
62431
|
+
contentRef: contentRef.current,
|
|
62432
|
+
containerRef: containerRef.current,
|
|
62143
62433
|
isVisible: valueListVisible,
|
|
62144
62434
|
emptyPlaceholder: props.emptyPlaceholder || localeService.create(LOCALE$4.PLACEHOLDER_EMPTY),
|
|
62145
62435
|
getHtmlValue: getHtmlValue
|
|
62146
62436
|
}), props.errorMessage && React__default.createElement("span", {
|
|
62147
|
-
className: styles$
|
|
62437
|
+
className: styles$q['vitro-error-text']
|
|
62148
62438
|
}, props.errorMessage));
|
|
62149
62439
|
});
|
|
62150
62440
|
|
|
62151
|
-
var styles$
|
|
62441
|
+
var styles$r = {"vitro-command-menu":"_command-menu_vitro-command-menu_l82vtIh"};
|
|
62152
62442
|
|
|
62153
62443
|
var CommandMenu = function CommandMenu(props) {
|
|
62154
62444
|
return React__default.createElement("nav", {
|
|
62155
|
-
className: styles$
|
|
62445
|
+
className: styles$r['vitro-command-menu'] + CTRL.SPACE + 'navbar'
|
|
62156
62446
|
}, React__default.createElement("ul", {
|
|
62157
62447
|
className: 'nav'
|
|
62158
62448
|
}, props.children));
|
|
62159
62449
|
};
|
|
62160
62450
|
|
|
62161
|
-
var styles$
|
|
62451
|
+
var styles$s = {"vitro-command-menu-button":"_command-menu-button_vitro-command-menu-button_2IiXVbP","vitro-icon":"_command-menu-button_vitro-icon_1xB4d09"};
|
|
62162
62452
|
|
|
62163
62453
|
var CommandMenuButton = function CommandMenuButton(props) {
|
|
62164
62454
|
return React__default.createElement("li", null, React__default.createElement(Button$2, Object.assign({
|
|
62165
|
-
className: styles$
|
|
62166
|
-
imageClassName: styles$
|
|
62455
|
+
className: styles$s['vitro-command-menu-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
62456
|
+
imageClassName: styles$s['vitro-icon']
|
|
62167
62457
|
}, props)));
|
|
62168
62458
|
};
|
|
62169
62459
|
|
|
62170
62460
|
var itemStyles = {"vitro-item":"_command-menu-item_vitro-item_2pVhk23"};
|
|
62171
62461
|
|
|
62172
|
-
var styles$
|
|
62462
|
+
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"};
|
|
62173
62463
|
|
|
62174
62464
|
var CommandMenuLookupPicker = function CommandMenuLookupPicker(props) {
|
|
62175
62465
|
return React__default.createElement("li", {
|
|
62176
|
-
className: itemStyles['vitro-item'] + CTRL.SPACE + 'nav-item ' + styles$
|
|
62466
|
+
className: itemStyles['vitro-item'] + CTRL.SPACE + 'nav-item ' + styles$t['vitro-item-lookup-picker']
|
|
62177
62467
|
}, React__default.createElement(LookupPicker, Object.assign({}, props, {
|
|
62178
|
-
className: styles$
|
|
62468
|
+
className: styles$t['vitro-command-menu-lookup-picker'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
62179
62469
|
})));
|
|
62180
62470
|
};
|
|
62181
62471
|
|
|
@@ -63047,11 +63337,17 @@ var Dropdown$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
63047
63337
|
var container = this.getContainer();
|
|
63048
63338
|
var menu = this.getMenu();
|
|
63049
63339
|
var toggle = this.getToggle();
|
|
63340
|
+
|
|
63341
|
+
// Add a conditional check to avoid using toggle
|
|
63342
|
+
// if there is no toggle component in the dropdown
|
|
63343
|
+
if (!toggle) {
|
|
63344
|
+
return;
|
|
63345
|
+
}
|
|
63050
63346
|
var targetIsToggle = toggle.contains(e.target);
|
|
63051
63347
|
var clickIsInMenu = menu && menu.contains(e.target) && menu !== e.target;
|
|
63052
63348
|
var clickIsInInput = false;
|
|
63053
63349
|
if (container) {
|
|
63054
|
-
//
|
|
63350
|
+
// This is only for InputGroup with type dropdown
|
|
63055
63351
|
clickIsInInput = container.classList.contains('input-group') && container.classList.contains('dropdown') && e.target.tagName === 'INPUT';
|
|
63056
63352
|
}
|
|
63057
63353
|
if ((targetIsToggle && !clickIsInInput || clickIsInMenu) && (e.type !== 'keyup' || e.which === keyCodes.tab)) {
|
|
@@ -63496,6 +63792,11 @@ var DropdownMenu$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
63496
63792
|
name: 'flip',
|
|
63497
63793
|
enabled: !!flip
|
|
63498
63794
|
}]);
|
|
63795
|
+
var persistStyles = {};
|
|
63796
|
+
if (persist) {
|
|
63797
|
+
persistStyles.display = 'block';
|
|
63798
|
+
persistStyles.visibility = this.context.isOpen ? 'visible' : 'hidden';
|
|
63799
|
+
}
|
|
63499
63800
|
var popper = /*#__PURE__*/React__default.createElement(Popper, {
|
|
63500
63801
|
placement: poperPlacement,
|
|
63501
63802
|
modifiers: poperModifiers,
|
|
@@ -63505,7 +63806,7 @@ var DropdownMenu$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
63505
63806
|
style = _ref.style,
|
|
63506
63807
|
placement = _ref.placement,
|
|
63507
63808
|
update = _ref.update;
|
|
63508
|
-
var combinedStyle = _objectSpread$1(_objectSpread$1({}, _this.props.style), style);
|
|
63809
|
+
var combinedStyle = _objectSpread$1(_objectSpread$1(_objectSpread$1({}, _this.props.style), persistStyles), style);
|
|
63509
63810
|
var handleRef = function handleRef(tagRef) {
|
|
63510
63811
|
// Send the ref to `react-popper`
|
|
63511
63812
|
ref(tagRef);
|
|
@@ -63541,7 +63842,8 @@ var DropdownMenu$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
63541
63842
|
ref: onMenuRef,
|
|
63542
63843
|
"aria-hidden": !this.context.isOpen,
|
|
63543
63844
|
className: classes,
|
|
63544
|
-
"data-popper-placement": attrs.placement
|
|
63845
|
+
"data-popper-placement": attrs.placement,
|
|
63846
|
+
"data-bs-popper": "static"
|
|
63545
63847
|
}));
|
|
63546
63848
|
}
|
|
63547
63849
|
}]);
|
|
@@ -63552,8 +63854,8 @@ DropdownMenu$2.contextType = DropdownContext$2;
|
|
|
63552
63854
|
|
|
63553
63855
|
function _typeof$4(obj) { "@babel/helpers - typeof"; return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$4(obj); }
|
|
63554
63856
|
var _excluded$d = ["className", "color", "cssModule", "caret", "split", "nav", "tag", "innerRef"];
|
|
63555
|
-
function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
63556
63857
|
function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
63858
|
+
function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
63557
63859
|
function _objectWithoutProperties$5(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$e(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
63558
63860
|
function _objectWithoutPropertiesLoose$e(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
63559
63861
|
function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -63648,19 +63950,9 @@ var DropdownToggle$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
63648
63950
|
} else {
|
|
63649
63951
|
Tag = tag;
|
|
63650
63952
|
}
|
|
63651
|
-
|
|
63652
|
-
|
|
63653
|
-
|
|
63654
|
-
onClick: this.onClick,
|
|
63655
|
-
ref: this.context.onToggleRef,
|
|
63656
|
-
"aria-expanded": this.context.isOpen,
|
|
63657
|
-
"aria-haspopup": this.getRole(),
|
|
63658
|
-
children: children
|
|
63659
|
-
}));
|
|
63660
|
-
}
|
|
63661
|
-
return /*#__PURE__*/React__default.createElement(Reference, {
|
|
63662
|
-
innerRef: innerRef
|
|
63663
|
-
}, function (_ref) {
|
|
63953
|
+
|
|
63954
|
+
// extracted the rendering of the Tag component
|
|
63955
|
+
var returnFunction = function returnFunction(_ref) {
|
|
63664
63956
|
var ref = _ref.ref;
|
|
63665
63957
|
var handleRef = function handleRef(tagRef) {
|
|
63666
63958
|
ref(tagRef);
|
|
@@ -63674,7 +63966,19 @@ var DropdownToggle$2 = /*#__PURE__*/function (_React$Component) {
|
|
|
63674
63966
|
"aria-haspopup": _this2.getRole(),
|
|
63675
63967
|
children: children
|
|
63676
63968
|
}));
|
|
63677
|
-
}
|
|
63969
|
+
};
|
|
63970
|
+
|
|
63971
|
+
// No Reference component if the component is in Navbar
|
|
63972
|
+
if (this.context.inNavbar) {
|
|
63973
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, returnFunction({
|
|
63974
|
+
ref: this.context.onToggleRef
|
|
63975
|
+
}));
|
|
63976
|
+
}
|
|
63977
|
+
|
|
63978
|
+
// Normal rendering if component not in NavBar
|
|
63979
|
+
return /*#__PURE__*/React__default.createElement(Reference, {
|
|
63980
|
+
innerRef: innerRef
|
|
63981
|
+
}, returnFunction);
|
|
63678
63982
|
}
|
|
63679
63983
|
}]);
|
|
63680
63984
|
return DropdownToggle;
|
|
@@ -63742,7 +64046,7 @@ UncontrolledDropdown.propTypes = _objectSpread$2({
|
|
|
63742
64046
|
onToggle: propTypes.func
|
|
63743
64047
|
}, Dropdown$2.propTypes);
|
|
63744
64048
|
|
|
63745
|
-
var styles$
|
|
64049
|
+
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"};
|
|
63746
64050
|
|
|
63747
64051
|
var CommandMenuSubItem = function CommandMenuSubItem(props) {
|
|
63748
64052
|
var onClick = function onClick(e) {
|
|
@@ -63761,7 +64065,7 @@ var CommandMenuSubItem = function CommandMenuSubItem(props) {
|
|
|
63761
64065
|
onClick: onClick,
|
|
63762
64066
|
toggle: props.toggle === false ? false : true
|
|
63763
64067
|
}, props.isShowImage && React__default.createElement("div", {
|
|
63764
|
-
className: styles$
|
|
64068
|
+
className: styles$u['vitro-icon']
|
|
63765
64069
|
}, props.imageUrl && React__default.createElement(Icon, {
|
|
63766
64070
|
defaultUrl: props.imageUrl,
|
|
63767
64071
|
hoverUrl: props.imageHoverUrl
|
|
@@ -63779,15 +64083,15 @@ var CommandMenuItemHeader = function CommandMenuItemHeader(props) {
|
|
|
63779
64083
|
onMouseLeave: function onMouseLeave() {
|
|
63780
64084
|
return setIsHover(false);
|
|
63781
64085
|
},
|
|
63782
|
-
className: itemStyles['vitro-item'] + CTRL.SPACE + styles$
|
|
64086
|
+
className: itemStyles['vitro-item'] + CTRL.SPACE + styles$u['vitro-command-menu-dropdown-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
63783
64087
|
"data-show": props.isVisibleFunction
|
|
63784
64088
|
}, props.imageUrl && React__default.createElement(Icon, {
|
|
63785
64089
|
isHover: isHover,
|
|
63786
64090
|
defaultUrl: props.imageUrl,
|
|
63787
64091
|
hoverUrl: props.imageHoverUrl,
|
|
63788
|
-
className: styles$
|
|
64092
|
+
className: styles$u['vitro-icon']
|
|
63789
64093
|
}), React__default.createElement("span", null, props.text), !props.isHideChevronDown && React__default.createElement("div", {
|
|
63790
|
-
className: styles$
|
|
64094
|
+
className: styles$u['vitro-button-collapse-bottom']
|
|
63791
64095
|
}));
|
|
63792
64096
|
};
|
|
63793
64097
|
|
|
@@ -63799,7 +64103,7 @@ var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
|
|
|
63799
64103
|
return React__default.createElement(UncontrolledDropdown, {
|
|
63800
64104
|
nav: true,
|
|
63801
64105
|
inNavbar: true,
|
|
63802
|
-
className: styles$
|
|
64106
|
+
className: styles$u['vitro-dropdown-button-container']
|
|
63803
64107
|
}, React__default.createElement(DropdownToggle$2, {
|
|
63804
64108
|
nav: true,
|
|
63805
64109
|
caret: true
|
|
@@ -63815,18 +64119,18 @@ var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
|
|
|
63815
64119
|
}), props.children));
|
|
63816
64120
|
};
|
|
63817
64121
|
|
|
63818
|
-
var styles$
|
|
64122
|
+
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"};
|
|
63819
64123
|
|
|
63820
64124
|
var Item$1 = function Item(props) {
|
|
63821
64125
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", null, React__default.createElement(Icon, {
|
|
63822
64126
|
defaultUrl: props.imageUrl,
|
|
63823
64127
|
hoverUrl: props.imageHoverUrl,
|
|
63824
64128
|
isHover: props.isHover,
|
|
63825
|
-
className: styles$
|
|
64129
|
+
className: styles$v['vitro-icon']
|
|
63826
64130
|
}), React__default.createElement("span", {
|
|
63827
|
-
className: styles$
|
|
64131
|
+
className: styles$v['vitro-icon-text']
|
|
63828
64132
|
}, props.text)), React__default.createElement("span", {
|
|
63829
|
-
className: styles$
|
|
64133
|
+
className: styles$v['vitro-item-text']
|
|
63830
64134
|
}, props.text));
|
|
63831
64135
|
};
|
|
63832
64136
|
|
|
@@ -63837,14 +64141,13 @@ var TARGET;
|
|
|
63837
64141
|
})(TARGET || (TARGET = {}));
|
|
63838
64142
|
|
|
63839
64143
|
var w$8 = window;
|
|
63840
|
-
var PX_UNIT$3 = 'px';
|
|
63841
64144
|
var WIDTH_AUTO = 'auto';
|
|
63842
64145
|
var LinkItem$1 = function LinkItem(props) {
|
|
63843
64146
|
var _useState = React.useState(false),
|
|
63844
64147
|
isHover = _useState[0],
|
|
63845
64148
|
setIsHover = _useState[1];
|
|
63846
64149
|
var isActive = props.link === props.currentUrl || props.activeItem === props.id || props.altUrlList && props.altUrlList.includes(props.currentUrl);
|
|
63847
|
-
var className = isActive ? styles$
|
|
64150
|
+
var className = isActive ? styles$v['vitro-active'] : isHover ? styles$v['vitro-hover'] : CTRL.EMPTY;
|
|
63848
64151
|
var onClick = function onClick(e) {
|
|
63849
64152
|
if (props.link) {
|
|
63850
64153
|
var event = new CustomEvent(exports.EVENT.HISTORY_UPDATE, {
|
|
@@ -63863,9 +64166,9 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
63863
64166
|
return setIsHover(false);
|
|
63864
64167
|
},
|
|
63865
64168
|
style: {
|
|
63866
|
-
width: props.linkItemWidth ? props.linkItemWidth +
|
|
64169
|
+
width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO
|
|
63867
64170
|
},
|
|
63868
|
-
className: styles$
|
|
64171
|
+
className: styles$v['vitro-item']
|
|
63869
64172
|
}, props.link && React__default.createElement("a", {
|
|
63870
64173
|
onClick: onClick,
|
|
63871
64174
|
className: className
|
|
@@ -63913,7 +64216,7 @@ var SectionList = React.forwardRef(function (props, ref) {
|
|
|
63913
64216
|
}));
|
|
63914
64217
|
});
|
|
63915
64218
|
|
|
63916
|
-
var styles$
|
|
64219
|
+
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"};
|
|
63917
64220
|
|
|
63918
64221
|
var Sidebar = function Sidebar(props) {
|
|
63919
64222
|
var _useState = React.useState(window.location.pathname),
|
|
@@ -63988,7 +64291,7 @@ var Sidebar = function Sidebar(props) {
|
|
|
63988
64291
|
var width = containerWidth / count;
|
|
63989
64292
|
setLinkItemWidth(width);
|
|
63990
64293
|
};
|
|
63991
|
-
var className = styles$
|
|
64294
|
+
var className = styles$w['vitro-sidebar'] + (props.theme ? CTRL.SPACE + props.theme : CTRL.EMPTY) + CTRL.SPACE + (isMobileView ? 'vitro-bottom-menu' : CTRL.EMPTY);
|
|
63992
64295
|
return React__default.createElement("div", {
|
|
63993
64296
|
className: className,
|
|
63994
64297
|
id: 'vitro-sidebar'
|
|
@@ -64001,7 +64304,7 @@ var Sidebar = function Sidebar(props) {
|
|
|
64001
64304
|
currentUrl: currentUrl,
|
|
64002
64305
|
activeItem: props.activeItem
|
|
64003
64306
|
})) : React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
64004
|
-
className: styles$
|
|
64307
|
+
className: styles$w['vitro-scroll-container'],
|
|
64005
64308
|
ref: menuRef
|
|
64006
64309
|
}, React__default.createElement(SectionList, {
|
|
64007
64310
|
itemList: itemList,
|
|
@@ -64011,40 +64314,40 @@ var Sidebar = function Sidebar(props) {
|
|
|
64011
64314
|
linkItemWidth: linkItemWidth
|
|
64012
64315
|
})), React__default.createElement("button", {
|
|
64013
64316
|
onClick: scroll,
|
|
64014
|
-
className: styles$
|
|
64317
|
+
className: styles$w['vitro-button-more']
|
|
64015
64318
|
})));
|
|
64016
64319
|
};
|
|
64017
64320
|
|
|
64018
|
-
var styles$
|
|
64321
|
+
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"};
|
|
64019
64322
|
|
|
64020
64323
|
var TaskTile = function TaskTile(props) {
|
|
64021
64324
|
return React__default.createElement("div", {
|
|
64022
|
-
className: styles$
|
|
64325
|
+
className: styles$x['vitro-task-tile'] + (props.isActive ? CTRL.SPACE + styles$x['vitro-active'] : CTRL.EMPTY),
|
|
64023
64326
|
onClick: props.onClick
|
|
64024
64327
|
}, props.dropdownItemList && React__default.createElement("div", {
|
|
64025
|
-
className: styles$
|
|
64328
|
+
className: styles$x['vitro-top-right']
|
|
64026
64329
|
}, React__default.createElement(DropdownButton, {
|
|
64027
64330
|
itemList: props.dropdownItemList,
|
|
64028
|
-
className: styles$
|
|
64331
|
+
className: styles$x['vitro-dropdown-button']
|
|
64029
64332
|
})), props.isShowDeleteButton && React__default.createElement("div", {
|
|
64030
|
-
className: styles$
|
|
64333
|
+
className: styles$x['vitro-button-cancel'],
|
|
64031
64334
|
onClick: props.onDeleteClick
|
|
64032
64335
|
}), props.description && React__default.createElement("div", {
|
|
64033
|
-
className: styles$
|
|
64336
|
+
className: styles$x['vitro-description']
|
|
64034
64337
|
}, props.description), React__default.createElement("div", {
|
|
64035
|
-
className: styles$
|
|
64338
|
+
className: styles$x['vitro-title']
|
|
64036
64339
|
}, props.title), props.comment && React__default.createElement("div", {
|
|
64037
|
-
className: styles$
|
|
64340
|
+
className: styles$x['vitro-comment']
|
|
64038
64341
|
}, props.comment), React__default.createElement("div", {
|
|
64039
|
-
className: styles$
|
|
64342
|
+
className: styles$x['vitro-content']
|
|
64040
64343
|
}, props.userList && React__default.createElement(commonUi.TaskUserList, {
|
|
64041
64344
|
itemList: props.userList
|
|
64042
64345
|
})), React__default.createElement("div", {
|
|
64043
|
-
className: styles$
|
|
64346
|
+
className: styles$x['vitro-bottom-right']
|
|
64044
64347
|
}, props.dateComment, " \xA0 ", props.date), props.children);
|
|
64045
64348
|
};
|
|
64046
64349
|
|
|
64047
|
-
var styles$
|
|
64350
|
+
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"};
|
|
64048
64351
|
|
|
64049
64352
|
var Alert$1 = function Alert(props) {
|
|
64050
64353
|
var ref = React.useRef(null);
|
|
@@ -64076,7 +64379,7 @@ var Alert$1 = function Alert(props) {
|
|
|
64076
64379
|
}
|
|
64077
64380
|
};
|
|
64078
64381
|
var actionList = props.actionList && React__default.createElement("div", {
|
|
64079
|
-
className: styles$
|
|
64382
|
+
className: styles$y['vitro-alert-action-list']
|
|
64080
64383
|
}, props.actionList.map(function (a) {
|
|
64081
64384
|
return React__default.createElement(Button$1, {
|
|
64082
64385
|
key: a.text,
|
|
@@ -64085,7 +64388,7 @@ var Alert$1 = function Alert(props) {
|
|
|
64085
64388
|
}
|
|
64086
64389
|
}, a.text);
|
|
64087
64390
|
}));
|
|
64088
|
-
var className = styles$
|
|
64391
|
+
var className = styles$y['vitro-alert'] + CTRL.SPACE + (props.isPositionCenter && styles$y['vitro-position-center']) + CTRL.SPACE + (props.className ? props.className : CTRL.EMPTY);
|
|
64089
64392
|
return React__default.createElement("div", {
|
|
64090
64393
|
tabIndex: 1,
|
|
64091
64394
|
onBlur: onFocusOut,
|
|
@@ -64095,13 +64398,13 @@ var Alert$1 = function Alert(props) {
|
|
|
64095
64398
|
variant: props.type,
|
|
64096
64399
|
onClose: props.onClose
|
|
64097
64400
|
}, React__default.createElement("div", {
|
|
64098
|
-
className: styles$
|
|
64401
|
+
className: styles$y['vitro-alert-content']
|
|
64099
64402
|
}, React__default.createElement("div", {
|
|
64100
|
-
className: styles$
|
|
64403
|
+
className: styles$y['vitro-icon']
|
|
64101
64404
|
}), React__default.createElement("div", {
|
|
64102
|
-
className: styles$
|
|
64405
|
+
className: styles$y['vitro-text']
|
|
64103
64406
|
}, props.title && React__default.createElement("strong", null, props.title), props.text, !props.text && props.children), !props.isMultiline && actionList, props.isDismissible && React__default.createElement("div", {
|
|
64104
|
-
className: styles$
|
|
64407
|
+
className: styles$y['vitro-button-close'],
|
|
64105
64408
|
onClick: onClose
|
|
64106
64409
|
})), props.text && props.children, props.isMultiline && actionList));
|
|
64107
64410
|
};
|
|
@@ -64127,34 +64430,34 @@ var DialogComponent = function DialogComponent(props) {
|
|
|
64127
64430
|
}, props.children);
|
|
64128
64431
|
};
|
|
64129
64432
|
|
|
64130
|
-
var styles$
|
|
64433
|
+
var styles$z = {"vitro-dialog-content":"_dialog-content_vitro-dialog-content_qQNWu6x"};
|
|
64131
64434
|
|
|
64132
64435
|
var DialogContent = function DialogContent(props) {
|
|
64133
64436
|
return React__default.createElement("div", {
|
|
64134
|
-
className: styles$
|
|
64437
|
+
className: styles$z['vitro-dialog-content'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
64135
64438
|
}, props.children);
|
|
64136
64439
|
};
|
|
64137
64440
|
|
|
64138
|
-
var styles$
|
|
64441
|
+
var styles$A = {"vitro-dialog-header":"_dialog-header_vitro-dialog-header_2W3GraU","vitro-title":"_dialog-header_vitro-title_2k8SPhE","vitro-description":"_dialog-header_vitro-description_Hiq51VI","vitro-icon":"_dialog-header_vitro-icon_3GtsVWO"};
|
|
64139
64442
|
|
|
64140
64443
|
var DialogHeader = function DialogHeader(props) {
|
|
64141
64444
|
return React__default.createElement("div", {
|
|
64142
|
-
className: styles$
|
|
64445
|
+
className: styles$A['vitro-dialog-header']
|
|
64143
64446
|
}, props.imageUrl && React__default.createElement(Icon, {
|
|
64144
64447
|
defaultUrl: props.imageUrl,
|
|
64145
|
-
className: styles$
|
|
64448
|
+
className: styles$A['vitro-icon']
|
|
64146
64449
|
}), React__default.createElement("div", null, React__default.createElement("h1", {
|
|
64147
|
-
className: styles$
|
|
64450
|
+
className: styles$A['vitro-title']
|
|
64148
64451
|
}, props.title), props.description && React__default.createElement("h2", {
|
|
64149
|
-
className: styles$
|
|
64452
|
+
className: styles$A['vitro-description']
|
|
64150
64453
|
}, props.description)));
|
|
64151
64454
|
};
|
|
64152
64455
|
|
|
64153
|
-
var styles$
|
|
64456
|
+
var styles$B = {"vitro-dialog-button":"_dialog-button_vitro-dialog-button_1fQ5l22"};
|
|
64154
64457
|
|
|
64155
64458
|
var DialogButton = function DialogButton(props) {
|
|
64156
64459
|
return React__default.createElement(Button$2, Object.assign({}, props, {
|
|
64157
|
-
className: styles$
|
|
64460
|
+
className: styles$B['vitro-dialog-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
64158
64461
|
}));
|
|
64159
64462
|
};
|
|
64160
64463
|
|
|
@@ -64187,7 +64490,7 @@ var LOCALE$5;
|
|
|
64187
64490
|
LOCALE["ACTION_SAVE"] = "app.common.action.save";
|
|
64188
64491
|
})(LOCALE$5 || (LOCALE$5 = {}));
|
|
64189
64492
|
|
|
64190
|
-
var styles$
|
|
64493
|
+
var styles$C = {"vitro-dialog-footer":"_dialog-footer_vitro-dialog-footer_2vUQ3aG"};
|
|
64191
64494
|
|
|
64192
64495
|
var DialogFooter = function DialogFooter(props) {
|
|
64193
64496
|
var _props$buttonList, _props$buttonList2;
|
|
@@ -64199,7 +64502,7 @@ var DialogFooter = function DialogFooter(props) {
|
|
|
64199
64502
|
}
|
|
64200
64503
|
};
|
|
64201
64504
|
return React__default.createElement("div", {
|
|
64202
|
-
className: styles$
|
|
64505
|
+
className: styles$C['vitro-dialog-footer']
|
|
64203
64506
|
}, props.isDismissible && props.onClose && React__default.createElement(DialogCloseButton, {
|
|
64204
64507
|
text: labelClose,
|
|
64205
64508
|
isDisabled: !props.isDismissible,
|
|
@@ -64263,7 +64566,7 @@ var Dialog = function Dialog(props) {
|
|
|
64263
64566
|
}) : null));
|
|
64264
64567
|
};
|
|
64265
64568
|
|
|
64266
|
-
var styles$
|
|
64569
|
+
var styles$D = {"vitro-user-profile":"_user-profile_vitro-user-profile_11XpBoQ","vitro-dropdown-item":"_user-profile_vitro-dropdown-item_dSErsta","vitro-avatar":"_user-profile_vitro-avatar_3SzDPAi"};
|
|
64267
64570
|
|
|
64268
64571
|
var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
64269
64572
|
var onClick = function onClick() {
|
|
@@ -64274,7 +64577,7 @@ var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
|
64274
64577
|
};
|
|
64275
64578
|
if (props.link) {
|
|
64276
64579
|
return React__default.createElement("div", {
|
|
64277
|
-
className: styles$
|
|
64580
|
+
className: styles$D['vitro-dropdown-item'],
|
|
64278
64581
|
onClick: onClick
|
|
64279
64582
|
}, React__default.createElement("a", {
|
|
64280
64583
|
href: props.link
|
|
@@ -64285,7 +64588,7 @@ var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
|
64285
64588
|
}
|
|
64286
64589
|
if (props.onClick) {
|
|
64287
64590
|
return React__default.createElement("div", {
|
|
64288
|
-
className: styles$
|
|
64591
|
+
className: styles$D['vitro-dropdown-item'],
|
|
64289
64592
|
key: props.text,
|
|
64290
64593
|
onClick: onClick
|
|
64291
64594
|
}, props.imageUrl && React__default.createElement(Icon, {
|
|
@@ -64319,15 +64622,15 @@ var UserProfile = function UserProfile(props) {
|
|
|
64319
64622
|
return React__default.createElement(Dropdown$2, {
|
|
64320
64623
|
isOpen: dropdownOpen,
|
|
64321
64624
|
toggle: toggle,
|
|
64322
|
-
className: styles$
|
|
64625
|
+
className: styles$D['vitro-user-profile']
|
|
64323
64626
|
}, React__default.createElement(DropdownToggle$2, {
|
|
64324
64627
|
caret: true
|
|
64325
64628
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
|
64326
|
-
className: styles$
|
|
64629
|
+
className: styles$D['vitro-text-color-white']
|
|
64327
64630
|
}, createSurnameWithInitials(props.userName)), React__default.createElement(Avatar, {
|
|
64328
64631
|
userName: props.userName,
|
|
64329
64632
|
image: props.image,
|
|
64330
|
-
className: styles$
|
|
64633
|
+
className: styles$D['vitro-avatar']
|
|
64331
64634
|
}))), React__default.createElement(DropdownMenu$2, {
|
|
64332
64635
|
right: true
|
|
64333
64636
|
}, props.dropdownMenuItemList && props.dropdownMenuItemList.length > 0 && props.dropdownMenuItemList.map(function (item) {
|
|
@@ -64337,7 +64640,7 @@ var UserProfile = function UserProfile(props) {
|
|
|
64337
64640
|
})));
|
|
64338
64641
|
};
|
|
64339
64642
|
|
|
64340
|
-
var styles$
|
|
64643
|
+
var styles$E = {"vitro-avatar":"_user-lookup-picker_vitro-avatar_2vI-SeH"};
|
|
64341
64644
|
|
|
64342
64645
|
var UserLookupPicker = React.forwardRef(function (props, ref) {
|
|
64343
64646
|
var lookupPickerRef = React.useRef(null);
|
|
@@ -64345,7 +64648,7 @@ var UserLookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64345
64648
|
var prop = props.getHtmlValueTemplateProps(item);
|
|
64346
64649
|
if (props.isMultiSelect) {
|
|
64347
64650
|
return _extends({}, prop, {
|
|
64348
|
-
className: styles$
|
|
64651
|
+
className: styles$E['vitro-avatar']
|
|
64349
64652
|
});
|
|
64350
64653
|
}
|
|
64351
64654
|
return prop;
|
|
@@ -64366,44 +64669,44 @@ var UserLookupPicker = React.forwardRef(function (props, ref) {
|
|
|
64366
64669
|
}));
|
|
64367
64670
|
});
|
|
64368
64671
|
|
|
64369
|
-
var styles$
|
|
64672
|
+
var styles$F = {"vitro-title":"_activity_vitro-title_1rdvvaa","vitro-dropdown-button":"_activity_vitro-dropdown-button_12258nJ","vitro-activity":"_activity_vitro-activity_1u7YeF3"};
|
|
64370
64673
|
|
|
64371
64674
|
var Activity = function Activity(props) {
|
|
64372
64675
|
return React__default.createElement("div", {
|
|
64373
64676
|
className: 'vitro-activity'
|
|
64374
64677
|
}, (props.filterDropdownList || props.title) && React__default.createElement("div", {
|
|
64375
|
-
className: styles$
|
|
64678
|
+
className: styles$F['vitro-title']
|
|
64376
64679
|
}, props.filterDropdownList && React__default.createElement(DropdownButton, {
|
|
64377
64680
|
itemList: props.filterDropdownList,
|
|
64378
|
-
className: styles$
|
|
64681
|
+
className: styles$F['vitro-dropdown-button']
|
|
64379
64682
|
}), props.title && React__default.createElement("h3", null, props.title)), React__default.createElement("div", {
|
|
64380
64683
|
className: 'vitro-content'
|
|
64381
64684
|
}, props.children));
|
|
64382
64685
|
};
|
|
64383
64686
|
|
|
64384
|
-
var styles$
|
|
64687
|
+
var styles$G = {"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"};
|
|
64385
64688
|
|
|
64386
64689
|
var ActivityItem = function ActivityItem(props) {
|
|
64387
64690
|
return React__default.createElement("div", {
|
|
64388
|
-
className: styles$
|
|
64691
|
+
className: styles$G['vitro-item'] + (props.isActive ? CTRL.SPACE + styles$G['vitro-active'] : CTRL.EMPTY)
|
|
64389
64692
|
}, React__default.createElement("div", {
|
|
64390
|
-
className: styles$
|
|
64693
|
+
className: styles$G['vitro-flex']
|
|
64391
64694
|
}, React__default.createElement(Avatar, {
|
|
64392
64695
|
userName: props.userName,
|
|
64393
64696
|
image: props.userImageUrl,
|
|
64394
|
-
className: styles$
|
|
64697
|
+
className: styles$G['vitro-avatar']
|
|
64395
64698
|
}), React__default.createElement("div", {
|
|
64396
|
-
className: styles$
|
|
64699
|
+
className: styles$G['vitro-content']
|
|
64397
64700
|
}, React__default.createElement("div", null, React__default.createElement("div", {
|
|
64398
|
-
className: styles$
|
|
64701
|
+
className: styles$G['vitro-title']
|
|
64399
64702
|
}, React__default.createElement("span", null, props.title || props.userName), props.isShowDetail && React__default.createElement("span", {
|
|
64400
|
-
className: styles$
|
|
64703
|
+
className: styles$G['vitro-due-date']
|
|
64401
64704
|
}, props.date), props.isShowDetail && props.dropdownItemList && React__default.createElement(DropdownButton, {
|
|
64402
64705
|
itemList: props.dropdownItemList,
|
|
64403
64706
|
onToggle: props.onDropdownToggle,
|
|
64404
|
-
className: styles$
|
|
64707
|
+
className: styles$G['vitro-dropdown-button']
|
|
64405
64708
|
})), React__default.createElement("div", {
|
|
64406
|
-
className: styles$
|
|
64709
|
+
className: styles$G['vitro-message'] + (props.variant ? CTRL.SPACE + props.variant : CTRL.EMPTY)
|
|
64407
64710
|
}, React__default.createElement("p", {
|
|
64408
64711
|
dangerouslySetInnerHTML: {
|
|
64409
64712
|
__html: props.message
|
|
@@ -64411,36 +64714,36 @@ var ActivityItem = function ActivityItem(props) {
|
|
|
64411
64714
|
}), props.children)))));
|
|
64412
64715
|
};
|
|
64413
64716
|
|
|
64414
|
-
var PLACEMENT$
|
|
64717
|
+
var PLACEMENT$2;
|
|
64415
64718
|
(function (PLACEMENT) {
|
|
64416
64719
|
PLACEMENT["LEFT"] = "left";
|
|
64417
64720
|
PLACEMENT["TOP"] = "top";
|
|
64418
64721
|
PLACEMENT["RIGHT"] = "right";
|
|
64419
64722
|
PLACEMENT["BOTTOM"] = "bottom";
|
|
64420
|
-
})(PLACEMENT$
|
|
64723
|
+
})(PLACEMENT$2 || (PLACEMENT$2 = {}));
|
|
64421
64724
|
|
|
64422
64725
|
var TooltipConstants = {
|
|
64423
64726
|
__proto__: null,
|
|
64424
|
-
get PLACEMENT () { return PLACEMENT$
|
|
64727
|
+
get PLACEMENT () { return PLACEMENT$2; }
|
|
64425
64728
|
};
|
|
64426
64729
|
|
|
64427
|
-
var styles$
|
|
64730
|
+
var styles$H = {"vitro-tooltip":"_tooltip_vitro-tooltip_JvGPShz"};
|
|
64428
64731
|
|
|
64429
64732
|
var Tooltip$1 = function Tooltip(props) {
|
|
64430
64733
|
return React__default.createElement(OverlayTrigger, {
|
|
64431
|
-
placement: props.placement || PLACEMENT$
|
|
64734
|
+
placement: props.placement || PLACEMENT$2.TOP,
|
|
64432
64735
|
delay: {
|
|
64433
64736
|
show: 750,
|
|
64434
64737
|
hide: 0
|
|
64435
64738
|
},
|
|
64436
64739
|
show: props.isShow,
|
|
64437
64740
|
overlay: React__default.createElement(TooltipComponent, {
|
|
64438
|
-
className: styles$
|
|
64741
|
+
className: styles$H['vitro-tooltip']
|
|
64439
64742
|
}, props.text)
|
|
64440
64743
|
}, props.children);
|
|
64441
64744
|
};
|
|
64442
64745
|
|
|
64443
|
-
var styles$
|
|
64746
|
+
var styles$I = {"vitro-activity-message":"_activity-message_vitro-activity-message_3GdyQuC","vitro-item":"_activity-message_vitro-item_3Q-7zX3","vitro-value":"_activity-message_vitro-value_O4DpuTR","vitro-message":"_activity-message_vitro-message_25otUOy","vitro-field-name":"_activity-message_vitro-field-name_hdjdQbg","vitro-separator":"_activity-message_vitro-separator_vxgHLaH"};
|
|
64444
64747
|
|
|
64445
64748
|
var ActivityMessage = function ActivityMessage(props) {
|
|
64446
64749
|
var _useState = React.useState(false),
|
|
@@ -64482,25 +64785,25 @@ var ActivityMessage = function ActivityMessage(props) {
|
|
|
64482
64785
|
return false;
|
|
64483
64786
|
};
|
|
64484
64787
|
return React__default.createElement("div", {
|
|
64485
|
-
className: styles$
|
|
64788
|
+
className: styles$I['vitro-activity-message']
|
|
64486
64789
|
}, props.changedValueList.map(function (item) {
|
|
64487
64790
|
return React__default.createElement("div", {
|
|
64488
|
-
className: styles$
|
|
64791
|
+
className: styles$I['vitro-item']
|
|
64489
64792
|
}, item.fieldName && React__default.createElement("span", {
|
|
64490
|
-
className: styles$
|
|
64793
|
+
className: styles$I['vitro-field-name']
|
|
64491
64794
|
}, "" + item.fieldName + CTRL.COLON), item.oldValue && React__default.createElement(React__default.Fragment, null, React__default.createElement(Tooltip$1, {
|
|
64492
64795
|
text: item.oldValue,
|
|
64493
64796
|
isShow: isShowOldValueTooltip ? undefined : false
|
|
64494
64797
|
}, React__default.createElement("div", {
|
|
64495
|
-
className: styles$
|
|
64798
|
+
className: styles$I['vitro-value'],
|
|
64496
64799
|
ref: oldValueRef
|
|
64497
64800
|
}, item.oldValue)), React__default.createElement("span", {
|
|
64498
|
-
className: styles$
|
|
64801
|
+
className: styles$I['vitro-separator']
|
|
64499
64802
|
})), React__default.createElement(Tooltip$1, {
|
|
64500
64803
|
text: item.newValue,
|
|
64501
64804
|
isShow: isShowNewValueTooltip ? undefined : false
|
|
64502
64805
|
}, React__default.createElement("div", {
|
|
64503
|
-
className: item.isMessage ? styles$
|
|
64806
|
+
className: item.isMessage ? styles$I['vitro-message'] : styles$I['vitro-value'],
|
|
64504
64807
|
ref: newValueRef
|
|
64505
64808
|
}, item.newValue)));
|
|
64506
64809
|
}));
|
|
@@ -64522,7 +64825,7 @@ var LOCALE$6;
|
|
|
64522
64825
|
LOCALE["PLACEHOLDER"] = "app.common.messageInput.placeholder";
|
|
64523
64826
|
})(LOCALE$6 || (LOCALE$6 = {}));
|
|
64524
64827
|
|
|
64525
|
-
var styles$
|
|
64828
|
+
var styles$J = {"vitro-message-input":"_message-input_vitro-message-input_3MkcjWD","vitro-control":"_message-input_vitro-control_1PUSjq9","vitro-message":"_message-input_vitro-message_2EJSy-9","vitro-placeholder":"_message-input_vitro-placeholder_1FBfIqN","vitro-button-add-file":"_message-input_vitro-button-add-file_1qdtHHq","vitro-button-send":"_message-input_vitro-button-send_1vktQrZ"};
|
|
64526
64829
|
|
|
64527
64830
|
var NEW_LINE = '\n';
|
|
64528
64831
|
var MessageInput = function MessageInput(props) {
|
|
@@ -64573,14 +64876,14 @@ var MessageInput = function MessageInput(props) {
|
|
|
64573
64876
|
}
|
|
64574
64877
|
};
|
|
64575
64878
|
return React__default.createElement("div", {
|
|
64576
|
-
className: styles$
|
|
64879
|
+
className: styles$J['vitro-message-input'],
|
|
64577
64880
|
onDrop: props.onDrop
|
|
64578
64881
|
}, React__default.createElement("div", {
|
|
64579
|
-
className: styles$
|
|
64882
|
+
className: styles$J['vitro-control']
|
|
64580
64883
|
}, !props.isDisabled && React__default.createElement(ScrollBar, {
|
|
64581
64884
|
isHideScrollX: true
|
|
64582
64885
|
}, React__default.createElement("div", {
|
|
64583
|
-
className: styles$
|
|
64886
|
+
className: styles$J['vitro-message'],
|
|
64584
64887
|
ref: inputRef,
|
|
64585
64888
|
onChange: onChange,
|
|
64586
64889
|
onKeyDown: onKeyDown,
|
|
@@ -64588,17 +64891,17 @@ var MessageInput = function MessageInput(props) {
|
|
|
64588
64891
|
onBlur: onBlur,
|
|
64589
64892
|
contentEditable: true
|
|
64590
64893
|
}, isShowPlaceholder && React__default.createElement("span", {
|
|
64591
|
-
className: styles$
|
|
64894
|
+
className: styles$J['vitro-placeholder']
|
|
64592
64895
|
}, props.placeholder || localeService.create(LOCALE$6.PLACEHOLDER)))), props.children, props.onAddFile && React__default.createElement("button", {
|
|
64593
64896
|
onClick: props.onAddFile,
|
|
64594
|
-
className: styles$
|
|
64897
|
+
className: styles$J['vitro-button-add-file']
|
|
64595
64898
|
})), React__default.createElement("button", {
|
|
64596
64899
|
onClick: onEnter,
|
|
64597
|
-
className: styles$
|
|
64900
|
+
className: styles$J['vitro-button-send']
|
|
64598
64901
|
}));
|
|
64599
64902
|
};
|
|
64600
64903
|
|
|
64601
|
-
var styles$
|
|
64904
|
+
var styles$K = {"vitro-image-picker-root":"_image-picker_vitro-image-picker-root_AqOYRhP","vitro-image-picker-dropdown-wrapper":"_image-picker_vitro-image-picker-dropdown-wrapper_8Tr_BBS","vitro-image-picker-defaultIcon-wrapper":"_image-picker_vitro-image-picker-defaultIcon-wrapper_1XLKgLW","vitro-image-picker-icon-wrapper":"_image-picker_vitro-image-picker-icon-wrapper_3DNyLS0","vitro-image-picker-input":"_image-picker_vitro-image-picker-input_12jFFNU","vitro-icon-default":"_image-picker_vitro-icon-default_2Hdhta2","vitro-image-picker-label-wrapper":"_image-picker_vitro-image-picker-label-wrapper_WRLzUYM","vitro-image-picker-wrapper":"_image-picker_vitro-image-picker-wrapper_dlZyYFL"};
|
|
64602
64905
|
|
|
64603
64906
|
var ACTION$1;
|
|
64604
64907
|
(function (ACTION) {
|
|
@@ -64617,16 +64920,16 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
64617
64920
|
var renderPreview = function renderPreview() {
|
|
64618
64921
|
if (props.defaultUrl) {
|
|
64619
64922
|
return React__default.createElement("div", {
|
|
64620
|
-
className: props.classNameDefaultIcon ? props.classNameDefaultIcon : styles$
|
|
64923
|
+
className: props.classNameDefaultIcon ? props.classNameDefaultIcon : styles$K['vitro-image-picker-icon-wrapper']
|
|
64621
64924
|
}, React__default.createElement(Icon, {
|
|
64622
64925
|
defaultUrl: props.defaultUrl,
|
|
64623
|
-
className: props.classNameIcon ? props.classNameIcon : styles$
|
|
64926
|
+
className: props.classNameIcon ? props.classNameIcon : styles$K['vitro-image-picker-icon']
|
|
64624
64927
|
}));
|
|
64625
64928
|
} else {
|
|
64626
64929
|
return React__default.createElement("div", {
|
|
64627
|
-
className: props.classNameDefaultIcon ? props.classNameDefaultIcon : styles$
|
|
64930
|
+
className: props.classNameDefaultIcon ? props.classNameDefaultIcon : styles$K['vitro-image-picker-defaultIcon-wrapper']
|
|
64628
64931
|
}, React__default.createElement("div", {
|
|
64629
|
-
className: styles$
|
|
64932
|
+
className: styles$K['vitro-icon-default']
|
|
64630
64933
|
}));
|
|
64631
64934
|
}
|
|
64632
64935
|
};
|
|
@@ -64666,27 +64969,26 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
64666
64969
|
return (_props$itemList = props.itemList) !== null && _props$itemList !== void 0 && _props$itemList.length ? result.concat(props.itemList) : result;
|
|
64667
64970
|
}, [props.itemList, props.defaultUrl]);
|
|
64668
64971
|
return React__default.createElement("div", {
|
|
64669
|
-
className: styles$
|
|
64972
|
+
className: styles$K['vitro-image-picker-wrapper']
|
|
64670
64973
|
}, React__default.createElement("div", {
|
|
64671
|
-
className: styles$
|
|
64974
|
+
className: styles$K['vitro-image-picker-label-wrapper']
|
|
64672
64975
|
}, props.label ? props.label : ''), React__default.createElement("div", {
|
|
64673
|
-
className: props.classNameRoot ? props.classNameRoot : styles$
|
|
64976
|
+
className: props.classNameRoot ? props.classNameRoot : styles$K['vitro-image-picker-root']
|
|
64674
64977
|
}, React__default.createElement(DropdownButton, {
|
|
64675
64978
|
itemList: defaultItemList,
|
|
64676
|
-
className: styles$
|
|
64979
|
+
className: styles$K['vitro-image-picker-dropdown-wrapper']
|
|
64677
64980
|
}), React__default.createElement("input", {
|
|
64678
64981
|
type: 'file',
|
|
64679
|
-
className: styles$
|
|
64982
|
+
className: styles$K['vitro-image-picker-input'],
|
|
64680
64983
|
ref: inputFileRef,
|
|
64681
64984
|
onChange: onChange,
|
|
64682
64985
|
accept: "image/*"
|
|
64683
64986
|
}), renderPreview()));
|
|
64684
64987
|
};
|
|
64685
64988
|
|
|
64686
|
-
var styles$
|
|
64989
|
+
var styles$L = {"vitro-criterion-container":"_criterion_vitro-criterion-container_2cYcSkL","vitro-block":"_criterion_vitro-block_3E9-RXM","vitro-control":"_criterion_vitro-control_2JLaybj","vitro-label":"_criterion_vitro-label_3F6a8dj","vitro-operator-select-container":"_criterion_vitro-operator-select-container_3OkjzXG","vitro-operator-select":"_criterion_vitro-operator-select_1guNlk9","vitro-operator-list":"_criterion_vitro-operator-list_3A2VZsd","vitro-button-cancel":"_criterion_vitro-button-cancel_2C2G0sL","vitro-focus":"_criterion_vitro-focus_3FNLsoN","vitro-error":"_criterion_vitro-error_3pvFrlW","vitro-condition-select":"_criterion_vitro-condition-select_1hTBBg-","vitro-icon":"_criterion_vitro-icon_1DmS0jh","vitro-condition-list-container":"_criterion_vitro-condition-list-container_ERfumwB","vitro-operator-list-container":"_criterion_vitro-operator-list-container_RgT0R_Z","vitro-condition-list":"_criterion_vitro-condition-list_10UIxJI"};
|
|
64687
64990
|
|
|
64688
64991
|
var ROOT_ID = 'root';
|
|
64689
|
-
var PX_UNIT$4 = 'px';
|
|
64690
64992
|
var ConditionSelect = React.forwardRef(function (props, ref) {
|
|
64691
64993
|
var _useState = React.useState(props.defaultValue || props.itemList[0]),
|
|
64692
64994
|
condition = _useState[0],
|
|
@@ -64742,13 +65044,13 @@ var ConditionSelect = React.forwardRef(function (props, ref) {
|
|
|
64742
65044
|
var root = document.getElementById(ROOT_ID);
|
|
64743
65045
|
if (position && root) {
|
|
64744
65046
|
var container = document.createElement('div');
|
|
64745
|
-
container.className = styles$
|
|
64746
|
-
container.style.left = position.left +
|
|
64747
|
-
container.style.top = position.top +
|
|
65047
|
+
container.className = styles$L['vitro-condition-list-container'];
|
|
65048
|
+
container.style.left = position.left + UNIT.PX;
|
|
65049
|
+
container.style.top = position.top + UNIT.PX;
|
|
64748
65050
|
setConditionListContainer(container);
|
|
64749
65051
|
var content = React__default.createElement("ul", {
|
|
64750
65052
|
ref: listRef,
|
|
64751
|
-
className: styles$
|
|
65053
|
+
className: styles$L['vitro-condition-list'],
|
|
64752
65054
|
onBlur: onBlur
|
|
64753
65055
|
}, props.itemList.map(function (item) {
|
|
64754
65056
|
return React__default.createElement("li", {
|
|
@@ -64757,7 +65059,7 @@ var ConditionSelect = React.forwardRef(function (props, ref) {
|
|
|
64757
65059
|
}
|
|
64758
65060
|
}, item.imageUrl && React__default.createElement(Icon, {
|
|
64759
65061
|
defaultUrl: item.imageUrl,
|
|
64760
|
-
className: styles$
|
|
65062
|
+
className: styles$L['vitro-icon']
|
|
64761
65063
|
}), item.text);
|
|
64762
65064
|
}));
|
|
64763
65065
|
reactDom.render(content, container);
|
|
@@ -64766,16 +65068,15 @@ var ConditionSelect = React.forwardRef(function (props, ref) {
|
|
|
64766
65068
|
};
|
|
64767
65069
|
return React__default.createElement(React__default.Fragment, null, condition && React__default.createElement("div", {
|
|
64768
65070
|
ref: ref,
|
|
64769
|
-
className: styles$
|
|
65071
|
+
className: styles$L['vitro-condition-select']
|
|
64770
65072
|
}, React__default.createElement("div", {
|
|
64771
65073
|
onClick: toggleSelect
|
|
64772
65074
|
}, condition.imageUrl ? React__default.createElement(Icon, {
|
|
64773
65075
|
defaultUrl: condition.imageUrl,
|
|
64774
|
-
className: styles$
|
|
65076
|
+
className: styles$L['vitro-icon']
|
|
64775
65077
|
}) : condition.text)));
|
|
64776
65078
|
});
|
|
64777
65079
|
|
|
64778
|
-
var PX_UNIT$5 = 'px';
|
|
64779
65080
|
var ROOT_ID$1 = 'root';
|
|
64780
65081
|
var Criterion = function Criterion(props) {
|
|
64781
65082
|
var _useState = React.useState(props.operatorList[0]),
|
|
@@ -64821,7 +65122,7 @@ var Criterion = function Criterion(props) {
|
|
|
64821
65122
|
}, []);
|
|
64822
65123
|
React.useEffect(function () {
|
|
64823
65124
|
if (labelRef && labelRef.current && conditionSelectRef && conditionSelectRef.current) {
|
|
64824
|
-
conditionSelectRef.current.style.left = labelRef.current.offsetWidth + 8 +
|
|
65125
|
+
conditionSelectRef.current.style.left = labelRef.current.offsetWidth + 8 + UNIT.PX;
|
|
64825
65126
|
}
|
|
64826
65127
|
}, [labelRef]);
|
|
64827
65128
|
React.useEffect(function () {
|
|
@@ -64852,13 +65153,13 @@ var Criterion = function Criterion(props) {
|
|
|
64852
65153
|
onChange(value);
|
|
64853
65154
|
};
|
|
64854
65155
|
var onFocus = function onFocus(e) {
|
|
64855
|
-
setState(styles$
|
|
65156
|
+
setState(styles$L['vitro-focus']);
|
|
64856
65157
|
if (componentProps.onFocus) {
|
|
64857
65158
|
componentProps.onFocus(e);
|
|
64858
65159
|
}
|
|
64859
65160
|
};
|
|
64860
65161
|
var onBlur = function onBlur(e) {
|
|
64861
|
-
setState(componentProps.errorMessage ? styles$
|
|
65162
|
+
setState(componentProps.errorMessage ? styles$L['vitro-error'] : CTRL.EMPTY);
|
|
64862
65163
|
if (componentProps.onBlur) {
|
|
64863
65164
|
componentProps.onBlur(e);
|
|
64864
65165
|
}
|
|
@@ -64888,12 +65189,12 @@ var Criterion = function Criterion(props) {
|
|
|
64888
65189
|
var root = document.getElementById(ROOT_ID$1);
|
|
64889
65190
|
if (position && root) {
|
|
64890
65191
|
var container = document.createElement('div');
|
|
64891
|
-
container.className = styles$
|
|
64892
|
-
container.style.left = position.right +
|
|
64893
|
-
container.style.top = position.top +
|
|
65192
|
+
container.className = styles$L['vitro-operator-list-container'];
|
|
65193
|
+
container.style.left = position.right + UNIT.PX;
|
|
65194
|
+
container.style.top = position.top + UNIT.PX;
|
|
64894
65195
|
setOperatorListContainer(container);
|
|
64895
65196
|
var content = React__default.createElement("ul", {
|
|
64896
|
-
className: styles$
|
|
65197
|
+
className: styles$L['vitro-operator-list']
|
|
64897
65198
|
}, props.operatorList.map(function (item) {
|
|
64898
65199
|
return React__default.createElement("li", {
|
|
64899
65200
|
onClick: function onClick() {
|
|
@@ -64906,25 +65207,25 @@ var Criterion = function Criterion(props) {
|
|
|
64906
65207
|
}
|
|
64907
65208
|
};
|
|
64908
65209
|
return React__default.createElement("div", {
|
|
64909
|
-
className: styles$
|
|
65210
|
+
className: styles$L['vitro-criterion-container']
|
|
64910
65211
|
}, React__default.createElement("div", {
|
|
64911
|
-
className: styles$
|
|
65212
|
+
className: styles$L['vitro-operator-select-container']
|
|
64912
65213
|
}, props.isShowOperatorSelect && React__default.createElement("div", {
|
|
64913
65214
|
ref: operatorSelectRef,
|
|
64914
|
-
className: styles$
|
|
65215
|
+
className: styles$L['vitro-operator-select'],
|
|
64915
65216
|
onClick: toggleOperatorSelect
|
|
64916
65217
|
}, React__default.createElement("div", null, operator.text))), React__default.createElement("div", {
|
|
64917
|
-
className: styles$
|
|
65218
|
+
className: styles$L['vitro-control'] + CTRL.SPACE + state
|
|
64918
65219
|
}, React__default.createElement("div", {
|
|
64919
65220
|
ref: labelRef,
|
|
64920
|
-
className: styles$
|
|
65221
|
+
className: styles$L['vitro-label']
|
|
64921
65222
|
}, React__default.createElement("span", null, props.label)), React__default.createElement(ConditionSelect, {
|
|
64922
65223
|
ref: conditionSelectRef,
|
|
64923
65224
|
itemList: props.conditionList,
|
|
64924
65225
|
onSelect: onConditionClick,
|
|
64925
65226
|
defaultValue: defaultCondition
|
|
64926
65227
|
}), React__default.createElement(props.content.component, _extends({}, componentProps, {
|
|
64927
|
-
className: styles$
|
|
65228
|
+
className: styles$L['vitro-control'],
|
|
64928
65229
|
onBlur: onBlur,
|
|
64929
65230
|
onFocus: onFocus,
|
|
64930
65231
|
onChange: onControlChange,
|
|
@@ -64936,7 +65237,7 @@ var Criterion = function Criterion(props) {
|
|
|
64936
65237
|
onClick: function onClick() {
|
|
64937
65238
|
return props.onDelete(componentProps.id);
|
|
64938
65239
|
},
|
|
64939
|
-
className: styles$
|
|
65240
|
+
className: styles$L['vitro-button-cancel']
|
|
64940
65241
|
}));
|
|
64941
65242
|
};
|
|
64942
65243
|
|
|
@@ -64946,7 +65247,7 @@ var LOCALE$8;
|
|
|
64946
65247
|
LOCALE["EMPTY_PLACEHOLDER"] = "app.common.search.checkboxList.emptyPlaceholder";
|
|
64947
65248
|
})(LOCALE$8 || (LOCALE$8 = {}));
|
|
64948
65249
|
|
|
64949
|
-
var styles$
|
|
65250
|
+
var styles$M = {"vitro-control":"_input_vitro-control__btu7j_","vitro-active":"_input_vitro-active_jxhGdE8","vitro-focus":"_input_vitro-focus_3tuxmPs","vitro-button-search":"_input_vitro-button-search_15PeWCS","vitro-search-value-list":"_input_vitro-search-value-list_2I_KVY5","vitro-button-cancel":"_input_vitro-button-cancel_YqNZPj-","vitro-button-settings":"_input_vitro-button-settings_1w9FwYt","vitro-search-value":"_input_vitro-search-value_1ZbcNTJ"};
|
|
64950
65251
|
|
|
64951
65252
|
var NEW_LINE$1 = '\n';
|
|
64952
65253
|
var Input$1 = function Input(props) {
|
|
@@ -64992,15 +65293,15 @@ var Input$1 = function Input(props) {
|
|
|
64992
65293
|
onSubmit();
|
|
64993
65294
|
};
|
|
64994
65295
|
var onFocus = function onFocus() {
|
|
64995
|
-
setState(styles$
|
|
65296
|
+
setState(styles$M['vitro-focus']);
|
|
64996
65297
|
if (props.onFocus) {
|
|
64997
65298
|
props.onFocus();
|
|
64998
65299
|
}
|
|
64999
65300
|
};
|
|
65000
65301
|
var getClassName = function getClassName() {
|
|
65001
|
-
var classList = [styles$
|
|
65302
|
+
var classList = [styles$M['vitro-control'], props.className || CTRL.EMPTY, state];
|
|
65002
65303
|
if (props.isActive) {
|
|
65003
|
-
classList.push(styles$
|
|
65304
|
+
classList.push(styles$M['vitro-active']);
|
|
65004
65305
|
}
|
|
65005
65306
|
return classList.join(CTRL.SPACE);
|
|
65006
65307
|
};
|
|
@@ -65043,24 +65344,24 @@ var Input$1 = function Input(props) {
|
|
|
65043
65344
|
var firstValue = valueList[0];
|
|
65044
65345
|
var list = valueList.slice(1);
|
|
65045
65346
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
65046
|
-
className: styles$
|
|
65347
|
+
className: styles$M['vitro-search-value']
|
|
65047
65348
|
}, React__default.createElement("span", null, getTextValue(firstValue)), React__default.createElement("button", {
|
|
65048
65349
|
onClick: function onClick() {
|
|
65049
65350
|
return onRemoveValue([firstValue]);
|
|
65050
65351
|
},
|
|
65051
|
-
className: styles$
|
|
65352
|
+
className: styles$M['vitro-button-cancel']
|
|
65052
65353
|
})), list.length >= 1 ? React__default.createElement(Tooltip$1, {
|
|
65053
65354
|
text: getTextValueList(list),
|
|
65054
|
-
placement: PLACEMENT$
|
|
65355
|
+
placement: PLACEMENT$2.BOTTOM
|
|
65055
65356
|
}, React__default.createElement("div", {
|
|
65056
|
-
className: styles$
|
|
65357
|
+
className: styles$M['vitro-search-value']
|
|
65057
65358
|
}, localeService.create(LOCALE$8.INPUT_MORE, {
|
|
65058
65359
|
count: list.length
|
|
65059
65360
|
}), React__default.createElement("button", {
|
|
65060
65361
|
onClick: function onClick() {
|
|
65061
65362
|
return onRemoveValue(list);
|
|
65062
65363
|
},
|
|
65063
|
-
className: styles$
|
|
65364
|
+
className: styles$M['vitro-button-cancel']
|
|
65064
65365
|
}))) : null);
|
|
65065
65366
|
};
|
|
65066
65367
|
var onSearchClick = function onSearchClick() {
|
|
@@ -65073,10 +65374,10 @@ var Input$1 = function Input(props) {
|
|
|
65073
65374
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
65074
65375
|
className: getClassName()
|
|
65075
65376
|
}, React__default.createElement("button", {
|
|
65076
|
-
className: styles$
|
|
65377
|
+
className: styles$M['vitro-button-search'] + (props.isSettingsActive ? CTRL.SPACE + styles$M['vitro-active'] : CTRL.EMPTY),
|
|
65077
65378
|
onClick: onSearchClick
|
|
65078
65379
|
}), !props.isMobileView && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
65079
|
-
className: styles$
|
|
65380
|
+
className: styles$M['vitro-search-value-list']
|
|
65080
65381
|
}, props.valueList.length ? getSelectedValueList(props.valueList) : React__default.createElement("input", {
|
|
65081
65382
|
type: 'text',
|
|
65082
65383
|
ref: inputRef,
|
|
@@ -65087,10 +65388,10 @@ var Input$1 = function Input(props) {
|
|
|
65087
65388
|
placeholder: !props.isActive ? props.placeholder : CTRL.EMPTY
|
|
65088
65389
|
})), props.isActive && React__default.createElement(React__default.Fragment, null, props.isShowSettings && React__default.createElement("button", {
|
|
65089
65390
|
onClick: onSettingsClick,
|
|
65090
|
-
className: styles$
|
|
65391
|
+
className: styles$M['vitro-button-settings'] + (props.isSettingsActive ? CTRL.SPACE + styles$M['vitro-active'] : CTRL.EMPTY)
|
|
65091
65392
|
}), React__default.createElement("button", {
|
|
65092
65393
|
onClick: onCancel,
|
|
65093
|
-
className: styles$
|
|
65394
|
+
className: styles$M['vitro-button-cancel']
|
|
65094
65395
|
})))));
|
|
65095
65396
|
};
|
|
65096
65397
|
|
|
@@ -65214,6 +65515,7 @@ var FieldIterator = React.forwardRef(function (props, ref) {
|
|
|
65214
65515
|
},
|
|
65215
65516
|
isRow: isControlRow(field.internalName),
|
|
65216
65517
|
field: field,
|
|
65518
|
+
isFlipDropdown: !props.isVisibleOverflow,
|
|
65217
65519
|
ref: React.createRef()
|
|
65218
65520
|
};
|
|
65219
65521
|
return control;
|
|
@@ -65277,7 +65579,7 @@ var FieldIterator = React.forwardRef(function (props, ref) {
|
|
|
65277
65579
|
})));
|
|
65278
65580
|
});
|
|
65279
65581
|
|
|
65280
|
-
var styles$
|
|
65582
|
+
var styles$N = {"vitro-search":"_search_vitro-search_QkJksC_","vitro-active":"_search_vitro-active_1HhQOCR","vitro-settings-dialog":"_search_vitro-settings-dialog_1_c5bIg","vitro-filter":"_search_vitro-filter_2n-Y-mS","vitro-add-field":"_search_vitro-add-field_2hHt1Z2","vitro-add-field-button":"_search_vitro-add-field-button_30hdXYn","vitro-add-field-dialog":"_search_vitro-add-field-dialog_3gC92SF","vitro-footer":"_search_vitro-footer_1-ya4xk","vitro-button-cancel":"_search_vitro-button-cancel_1M8UkMM"};
|
|
65281
65583
|
|
|
65282
65584
|
var Filter = function Filter(props) {
|
|
65283
65585
|
var _useState = React.useState(null),
|
|
@@ -65335,17 +65637,18 @@ var Filter = function Filter(props) {
|
|
|
65335
65637
|
props.onChange(changedFieldValueMap);
|
|
65336
65638
|
};
|
|
65337
65639
|
return React__default.createElement("div", {
|
|
65338
|
-
className: styles$
|
|
65640
|
+
className: styles$N['vitro-filter']
|
|
65339
65641
|
}, componentMap && React__default.createElement(FieldIterator, {
|
|
65340
65642
|
fieldList: props.fieldList,
|
|
65341
65643
|
fieldValueMap: fieldValueMap,
|
|
65342
65644
|
changedFieldValueMap: changedFieldValueMap,
|
|
65343
65645
|
componentMap: componentMap,
|
|
65344
|
-
onChange: onChange
|
|
65646
|
+
onChange: onChange,
|
|
65647
|
+
isVisibleOverflow: true
|
|
65345
65648
|
}));
|
|
65346
65649
|
};
|
|
65347
65650
|
|
|
65348
|
-
var styles$
|
|
65651
|
+
var styles$O = {"vitro-checkbox-list":"_checkbox-list_vitro-checkbox-list_1iZSkkv","vitro-control":"_checkbox-list_vitro-control_cxgm4cj","vitro-checkbox":"_checkbox-list_vitro-checkbox_1EqsnoQ"};
|
|
65349
65652
|
|
|
65350
65653
|
var CheckboxList = function CheckboxList(props) {
|
|
65351
65654
|
var _useState = React.useState(props.itemList),
|
|
@@ -65398,18 +65701,18 @@ var CheckboxList = function CheckboxList(props) {
|
|
|
65398
65701
|
onChange: function onChange(value, name) {
|
|
65399
65702
|
return _onChange(value, item.id);
|
|
65400
65703
|
},
|
|
65401
|
-
className: styles$
|
|
65704
|
+
className: styles$O['vitro-checkbox']
|
|
65402
65705
|
});
|
|
65403
65706
|
};
|
|
65404
65707
|
return React__default.createElement("div", {
|
|
65405
|
-
className: styles$
|
|
65708
|
+
className: styles$O['vitro-checkbox-list']
|
|
65406
65709
|
}, React__default.createElement(Input$1, {
|
|
65407
65710
|
valueList: [],
|
|
65408
65711
|
onCancel: onSearchCancel,
|
|
65409
65712
|
onChange: onInputChange,
|
|
65410
65713
|
onSubmit: onInputChange,
|
|
65411
65714
|
isActive: false,
|
|
65412
|
-
className: styles$
|
|
65715
|
+
className: styles$O['vitro-control'],
|
|
65413
65716
|
isMobileView: false
|
|
65414
65717
|
}), React__default.createElement(ScrollBar, null, isShowSearchResult ? searchItemList.length ? searchItemList.map(function (item) {
|
|
65415
65718
|
return getCheckbox(item);
|
|
@@ -65484,7 +65787,7 @@ var Search = function Search(props) {
|
|
|
65484
65787
|
}, [window.innerWidth]);
|
|
65485
65788
|
React.useEffect(function () {
|
|
65486
65789
|
if (selectedSearchCriterionList.length) {
|
|
65487
|
-
setState(styles$
|
|
65790
|
+
setState(styles$N['vitro-active']);
|
|
65488
65791
|
}
|
|
65489
65792
|
}, [selectedSearchCriterionList]);
|
|
65490
65793
|
React.useEffect(function () {
|
|
@@ -65624,7 +65927,7 @@ var Search = function Search(props) {
|
|
|
65624
65927
|
}
|
|
65625
65928
|
};
|
|
65626
65929
|
var onFocusInput = function onFocusInput() {
|
|
65627
|
-
setState(styles$
|
|
65930
|
+
setState(styles$N['vitro-active']);
|
|
65628
65931
|
};
|
|
65629
65932
|
var onRemoveValue = function onRemoveValue(valueList) {
|
|
65630
65933
|
setSearchCriterionList(valueList);
|
|
@@ -65632,7 +65935,7 @@ var Search = function Search(props) {
|
|
|
65632
65935
|
};
|
|
65633
65936
|
return React__default.createElement("div", {
|
|
65634
65937
|
ref: searchRef,
|
|
65635
|
-
className: styles$
|
|
65938
|
+
className: styles$N['vitro-search'] + CTRL.SPACE + state
|
|
65636
65939
|
}, React__default.createElement(Input$1, {
|
|
65637
65940
|
valueList: selectedSearchCriterionList,
|
|
65638
65941
|
onSettingsClick: onSettingsClick,
|
|
@@ -65647,7 +65950,7 @@ var Search = function Search(props) {
|
|
|
65647
65950
|
isMobileView: isMobileView,
|
|
65648
65951
|
isShowSettings: true
|
|
65649
65952
|
}), isShowDialog && React__default.createElement("div", {
|
|
65650
|
-
className: styles$
|
|
65953
|
+
className: styles$N['vitro-settings-dialog']
|
|
65651
65954
|
}, React__default.createElement(Filter, {
|
|
65652
65955
|
fieldList: filterFieldList,
|
|
65653
65956
|
valueList: selectedSearchCriterionList,
|
|
@@ -65658,30 +65961,112 @@ var Search = function Search(props) {
|
|
|
65658
65961
|
getConditionList: props.getConditionList,
|
|
65659
65962
|
getDefaultCondition: props.getDefaultCondition
|
|
65660
65963
|
}), isShowAddFieldButton && React__default.createElement("div", {
|
|
65661
|
-
className: styles$
|
|
65964
|
+
className: styles$N['vitro-add-field']
|
|
65662
65965
|
}, React__default.createElement(Button$2, {
|
|
65663
65966
|
text: props.labelAddField,
|
|
65664
65967
|
onClick: onAddField,
|
|
65665
|
-
className: styles$
|
|
65968
|
+
className: styles$N['vitro-add-field-button']
|
|
65666
65969
|
}), isShowAddFieldDialog && React__default.createElement("div", {
|
|
65667
65970
|
ref: addFieldDialogRef,
|
|
65668
|
-
className: styles$
|
|
65971
|
+
className: styles$N['vitro-add-field-dialog']
|
|
65669
65972
|
}, React__default.createElement(CheckboxList, {
|
|
65670
65973
|
itemList: checkboxFieldList,
|
|
65671
65974
|
onChange: onFieldListChange,
|
|
65672
65975
|
isAllSelected: props.isAllFieldsVisible
|
|
65673
65976
|
}))), React__default.createElement("div", {
|
|
65674
|
-
className: styles$
|
|
65977
|
+
className: styles$N['vitro-footer']
|
|
65675
65978
|
}, React__default.createElement(Button$2, {
|
|
65676
65979
|
text: props.labelCancel,
|
|
65677
65980
|
onClick: closeSettings,
|
|
65678
|
-
className: styles$
|
|
65981
|
+
className: styles$N['vitro-button-cancel']
|
|
65679
65982
|
}), React__default.createElement(Button$2, {
|
|
65680
65983
|
text: props.labelSearch,
|
|
65681
65984
|
onClick: onSubmit
|
|
65682
65985
|
}))));
|
|
65683
65986
|
};
|
|
65684
65987
|
|
|
65988
|
+
var POSITION$1;
|
|
65989
|
+
(function (POSITION) {
|
|
65990
|
+
POSITION["HORIZONTAL"] = "horizontal";
|
|
65991
|
+
POSITION["VERTICAL"] = "vertical";
|
|
65992
|
+
})(POSITION$1 || (POSITION$1 = {}));
|
|
65993
|
+
var WIDTH;
|
|
65994
|
+
(function (WIDTH) {
|
|
65995
|
+
WIDTH[WIDTH["DEFAULT"] = 70] = "DEFAULT";
|
|
65996
|
+
WIDTH[WIDTH["DEFAULT_MIN"] = 50] = "DEFAULT_MIN";
|
|
65997
|
+
WIDTH[WIDTH["DEFAULT_MAX"] = 80] = "DEFAULT_MAX";
|
|
65998
|
+
})(WIDTH || (WIDTH = {}));
|
|
65999
|
+
|
|
66000
|
+
var SplitterConstants = {
|
|
66001
|
+
__proto__: null,
|
|
66002
|
+
get POSITION () { return POSITION$1; },
|
|
66003
|
+
get WIDTH () { return WIDTH; }
|
|
66004
|
+
};
|
|
66005
|
+
|
|
66006
|
+
var Splitter = function Splitter(props) {
|
|
66007
|
+
return React__default.createElement(ReactSplitter, {
|
|
66008
|
+
position: props.position || POSITION$1.VERTICAL,
|
|
66009
|
+
primaryPaneMaxWidth: (props.maxWidth ? props.maxWidth : WIDTH.DEFAULT_MAX) + CTRL.PERCENT,
|
|
66010
|
+
primaryPaneMinWidth: (props.minWidth ? props.minWidth : WIDTH.DEFAULT_MIN) + CTRL.PERCENT,
|
|
66011
|
+
primaryPaneWidth: (props.width ? props.width : WIDTH.DEFAULT) + CTRL.PERCENT,
|
|
66012
|
+
postPoned: props.isPostPoned,
|
|
66013
|
+
maximizedPrimaryPane: props.isMaximizedPrimaryPane,
|
|
66014
|
+
minimalizedPrimaryPane: props.isMinimalizedPrimaryPane,
|
|
66015
|
+
dispatchResize: props.isDispatchResize,
|
|
66016
|
+
onDragFinished: props.onDragFinished,
|
|
66017
|
+
className: props.className
|
|
66018
|
+
}, props.children);
|
|
66019
|
+
};
|
|
66020
|
+
|
|
66021
|
+
var styles$P = {"vitro-route-item":"_route-item_vitro-route-item_bBCgBZG","vitro-route-item-body":"_route-item_vitro-route-item-body_1_1fjOZ","vitro-route-item-content":"_route-item_vitro-route-item-content_2CcLogk","vitro-button-collapse":"_route-item_vitro-button-collapse_1kVB5Vo","vitro-button-expand":"_route-item_vitro-button-expand_3IuABa1","vitro-button-hide-comment":"_route-item_vitro-button-hide-comment_2CiY-Ch","vitro-button-show-comment":"_route-item_vitro-button-show-comment_DJt2SLC","vitro-avatar":"_route-item_vitro-avatar_3Dypnmz","vitro-date":"_route-item_vitro-date_3ojnKSb","vitro-route-item-header":"_route-item_vitro-route-item-header_y69bLwZ","vitro-flex":"_route-item_vitro-flex_3ebkqZ9","vitro-comment":"_route-item_vitro-comment_2K7RwrZ","vitro-status-color":"_route-item_vitro-status-color_VgXzXKD"};
|
|
66022
|
+
|
|
66023
|
+
var RouteItem = function RouteItem(props) {
|
|
66024
|
+
var _useState = React.useState(true),
|
|
66025
|
+
isExpanded = _useState[0],
|
|
66026
|
+
setIsExpanded = _useState[1];
|
|
66027
|
+
var _useState2 = React.useState(false),
|
|
66028
|
+
isShowComment = _useState2[0],
|
|
66029
|
+
setIsShowComment = _useState2[1];
|
|
66030
|
+
return React__default.createElement("div", {
|
|
66031
|
+
className: styles$P['vitro-route-item']
|
|
66032
|
+
}, props.children ? React__default.createElement("button", {
|
|
66033
|
+
className: isExpanded ? styles$P['vitro-button-collapse'] : styles$P['vitro-button-expand'],
|
|
66034
|
+
onClick: function onClick() {
|
|
66035
|
+
return setIsExpanded(!isExpanded);
|
|
66036
|
+
}
|
|
66037
|
+
}) : null, React__default.createElement("div", {
|
|
66038
|
+
className: styles$P['vitro-route-item-content']
|
|
66039
|
+
}, props.userName && props.status && React__default.createElement("div", {
|
|
66040
|
+
className: styles$P['vitro-route-item-header']
|
|
66041
|
+
}, React__default.createElement("div", null, React__default.createElement("div", null, React__default.createElement(Avatar, {
|
|
66042
|
+
userName: props.userName,
|
|
66043
|
+
image: props.userImage,
|
|
66044
|
+
className: styles$P['vitro-avatar']
|
|
66045
|
+
}), props.userName), React__default.createElement("div", {
|
|
66046
|
+
className: styles$P['vitro-date']
|
|
66047
|
+
}, props.date)), React__default.createElement("div", null, React__default.createElement("div", null, props.statusColor && React__default.createElement("div", {
|
|
66048
|
+
className: styles$P['vitro-status-color'],
|
|
66049
|
+
style: {
|
|
66050
|
+
background: props.statusColor
|
|
66051
|
+
}
|
|
66052
|
+
}), props.status), React__default.createElement("div", null, React__default.createElement("a", {
|
|
66053
|
+
href: props.itemUrl
|
|
66054
|
+
}, CTRL.SHARP + props.itemId)))), React__default.createElement("div", {
|
|
66055
|
+
className: styles$P['vitro-route-item-body']
|
|
66056
|
+
}, React__default.createElement("div", {
|
|
66057
|
+
className: styles$P['vitro-flex']
|
|
66058
|
+
}, React__default.createElement("span", null, props.name), props.comment && React__default.createElement("button", {
|
|
66059
|
+
className: isShowComment ? styles$P['vitro-button-hide-comment'] : styles$P['vitro-button-show-comment'],
|
|
66060
|
+
onClick: function onClick() {
|
|
66061
|
+
return setIsShowComment(!isShowComment);
|
|
66062
|
+
}
|
|
66063
|
+
})), isShowComment && props.comment && React__default.createElement("div", {
|
|
66064
|
+
className: styles$P['vitro-comment']
|
|
66065
|
+
}, props.comment)), isExpanded && React__default.createElement("div", {
|
|
66066
|
+
className: styles$P['vitro-route-item-child']
|
|
66067
|
+
}, props.children)));
|
|
66068
|
+
};
|
|
66069
|
+
|
|
65685
66070
|
exports.ACTION_HANDLER = ActionHandlerConstants;
|
|
65686
66071
|
exports.ALERT = AlertConstants;
|
|
65687
66072
|
exports.ActionHandler = ActionHandler;
|
|
@@ -65722,9 +66107,12 @@ exports.NUMBER_INPUT = NumberInputConstants;
|
|
|
65722
66107
|
exports.NumberInput = NumberInput;
|
|
65723
66108
|
exports.PasswordInput = PasswordInput;
|
|
65724
66109
|
exports.PdfViewer = PdfViewer;
|
|
66110
|
+
exports.RouteItem = RouteItem;
|
|
66111
|
+
exports.SPLITTER = SplitterConstants;
|
|
65725
66112
|
exports.ScrollBar = ScrollBar;
|
|
65726
66113
|
exports.Search = Search;
|
|
65727
66114
|
exports.Sidebar = Sidebar;
|
|
66115
|
+
exports.Splitter = Splitter;
|
|
65728
66116
|
exports.TABLE_VIEW = TableViewConstants;
|
|
65729
66117
|
exports.TOOLTIP = TooltipConstants;
|
|
65730
66118
|
exports.TREE_VIEW = TreeViewConstants;
|