@vitrosoftware/common-ui-ts 1.1.210 → 1.1.211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/std/controls/button/button.css +11 -10
- package/css/std/controls/dropdown-button/dropdown-button.css +195 -90
- package/css/std/controls/dropdown-button/img/dropdown-arrow-right.svg +3 -0
- package/css/std/controls/editable-list/editable-list.css +6 -7
- package/css/std/controls/expand-collapse-button/expand-collapse-button.css +4 -0
- package/css/std/controls/image-picker/image-picker.css +0 -7
- package/css/std/controls/image-viewer/image-viewer.css +5 -8
- package/css/std/controls/search/search.css +1 -0
- package/css/std/controls/slide-up-button/slide-up-button.css +78 -0
- package/css/std/controls/tab-group/tab-group.css +15 -51
- package/css/std/controls/table-view/treegrid-context-menu.css +1 -1
- package/dist/index.css +316 -398
- package/dist/index.js +709 -1546
- package/dist/index.js.map +1 -1
- package/dist/src/controls/ActivityItem/ActivityItem.d.ts +0 -1
- package/dist/src/controls/CommandMenu/CommandMenu.d.ts +1 -1
- package/dist/src/controls/CommandMenu/CommandMenuDropdownButton.d.ts +3 -19
- package/dist/src/controls/DropdownButton/Dropdown.d.ts +20 -0
- package/dist/src/controls/DropdownButton/DropdownButton.d.ts +16 -13
- package/dist/src/controls/DropdownButton/DropdownButtonConstants.d.ts +4 -0
- package/dist/src/controls/DropdownButton/DropdownButtonDropdownItem.d.ts +14 -0
- package/dist/src/controls/DropdownButton/DropdownButtonItem.d.ts +13 -0
- package/dist/src/controls/DropdownButton/DropdownToggleContent.d.ts +11 -0
- package/dist/src/controls/DropdownButton/models/DropdownItem.d.ts +3 -4
- package/dist/src/controls/DropdownButton/services/DropdownButtonService.d.ts +4 -0
- package/dist/src/controls/ExpandCollapseButton/ExpandCollapseButton.d.ts +1 -0
- package/dist/src/controls/ExpandControlGroup/ExpandControlGroup.d.ts +1 -0
- package/dist/src/controls/MicroFrontend/MicroFrontend.d.ts +1 -0
- package/dist/src/controls/SearchInput/SearchInput.d.ts +1 -1
- package/dist/src/controls/SlideUpButton/SlideUpButton.d.ts +12 -0
- package/dist/src/controls/SlideUpButton/SlideUpButtonDropdownItem.d.ts +13 -0
- package/dist/src/controls/SlideUpButton/SlideUpButtonItem.d.ts +11 -0
- package/dist/src/index.d.ts +9 -3
- package/dist/src/services.d.ts +3 -0
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/DxfViewer/js/dxf-viewer.js +14 -14
- package/src/controls/PdfViewer/js/pdf-viewer.js +6 -6
- package/css/std/controls/command-menu/img/collapse-up.svg +0 -3
- package/css/std/controls/command-menu/img/dropdown-menu-arrow.svg +0 -1
- /package/css/std/controls/{command-menu → dropdown-button}/img/collapse-bottom.svg +0 -0
package/dist/index.js
CHANGED
|
@@ -22526,7 +22526,7 @@ var MicroFrontend = React.forwardRef(function (props, ref) {
|
|
|
22526
22526
|
ref: rootRef,
|
|
22527
22527
|
id: id,
|
|
22528
22528
|
"data-type": 'app',
|
|
22529
|
-
className: props.isDockFill === false ? undefined : styles$6['vitro-micro-frontend']
|
|
22529
|
+
className: (props.isDockFill === false ? undefined : styles$6['vitro-micro-frontend']) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
22530
22530
|
});
|
|
22531
22531
|
});
|
|
22532
22532
|
|
|
@@ -23289,54 +23289,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
23289
23289
|
return target;
|
|
23290
23290
|
}
|
|
23291
23291
|
|
|
23292
|
-
/**
|
|
23293
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
23294
|
-
*
|
|
23295
|
-
* This source code is licensed under the MIT license found in the
|
|
23296
|
-
* LICENSE file in the root directory of this source tree.
|
|
23297
|
-
*/
|
|
23298
|
-
|
|
23299
|
-
/**
|
|
23300
|
-
* Use invariant() to assert state which your program assumes to be true.
|
|
23301
|
-
*
|
|
23302
|
-
* Provide sprintf-style format (only %s is supported) and arguments
|
|
23303
|
-
* to provide information about what broke and what you were
|
|
23304
|
-
* expecting.
|
|
23305
|
-
*
|
|
23306
|
-
* The invariant message will be stripped in production, but the invariant
|
|
23307
|
-
* will remain to ensure logic does not differ in production.
|
|
23308
|
-
*/
|
|
23309
|
-
|
|
23310
|
-
var invariant = function(condition, format, a, b, c, d, e, f) {
|
|
23311
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
23312
|
-
if (format === undefined) {
|
|
23313
|
-
throw new Error('invariant requires an error message argument');
|
|
23314
|
-
}
|
|
23315
|
-
}
|
|
23316
|
-
|
|
23317
|
-
if (!condition) {
|
|
23318
|
-
var error;
|
|
23319
|
-
if (format === undefined) {
|
|
23320
|
-
error = new Error(
|
|
23321
|
-
'Minified exception occurred; use the non-minified dev environment ' +
|
|
23322
|
-
'for the full error message and additional helpful warnings.'
|
|
23323
|
-
);
|
|
23324
|
-
} else {
|
|
23325
|
-
var args = [a, b, c, d, e, f];
|
|
23326
|
-
var argIndex = 0;
|
|
23327
|
-
error = new Error(
|
|
23328
|
-
format.replace(/%s/g, function() { return args[argIndex++]; })
|
|
23329
|
-
);
|
|
23330
|
-
error.name = 'Invariant Violation';
|
|
23331
|
-
}
|
|
23332
|
-
|
|
23333
|
-
error.framesToPop = 1; // we don't care about invariant's own frame
|
|
23334
|
-
throw error;
|
|
23335
|
-
}
|
|
23336
|
-
};
|
|
23337
|
-
|
|
23338
|
-
var browser = invariant;
|
|
23339
|
-
|
|
23340
23292
|
function defaultKey(key) {
|
|
23341
23293
|
return 'default' + key.charAt(0).toUpperCase() + key.substr(1);
|
|
23342
23294
|
}
|
|
@@ -56395,24 +56347,6 @@ function useCallbackRef() {
|
|
|
56395
56347
|
return React.useState(null);
|
|
56396
56348
|
}
|
|
56397
56349
|
|
|
56398
|
-
/**
|
|
56399
|
-
* Attaches an event handler outside directly to specified DOM element
|
|
56400
|
-
* bypassing the react synthetic event system.
|
|
56401
|
-
*
|
|
56402
|
-
* @param element The target to listen for events on
|
|
56403
|
-
* @param event The DOM event name
|
|
56404
|
-
* @param handler An event handler
|
|
56405
|
-
* @param capture Whether or not to listen during the capture event phase
|
|
56406
|
-
*/
|
|
56407
|
-
function useEventListener(eventTarget, event, listener, capture = false) {
|
|
56408
|
-
const handler = useEventCallback(listener);
|
|
56409
|
-
React.useEffect(() => {
|
|
56410
|
-
const target = typeof eventTarget === 'function' ? eventTarget() : eventTarget;
|
|
56411
|
-
target.addEventListener(event, handler, capture);
|
|
56412
|
-
return () => target.removeEventListener(event, handler, capture);
|
|
56413
|
-
}, [eventTarget]);
|
|
56414
|
-
}
|
|
56415
|
-
|
|
56416
56350
|
/**
|
|
56417
56351
|
* Track whether a component is current mounted. Generally less preferable than
|
|
56418
56352
|
* properlly canceling effects so they don't run after a component is unmounted,
|
|
@@ -56445,31 +56379,6 @@ function useMounted() {
|
|
|
56445
56379
|
return isMounted.current;
|
|
56446
56380
|
}
|
|
56447
56381
|
|
|
56448
|
-
/**
|
|
56449
|
-
* Store the last of some value. Tracked via a `Ref` only updating it
|
|
56450
|
-
* after the component renders.
|
|
56451
|
-
*
|
|
56452
|
-
* Helpful if you need to compare a prop value to it's previous value during render.
|
|
56453
|
-
*
|
|
56454
|
-
* ```ts
|
|
56455
|
-
* function Component(props) {
|
|
56456
|
-
* const lastProps = usePrevious(props)
|
|
56457
|
-
*
|
|
56458
|
-
* if (lastProps.foo !== props.foo)
|
|
56459
|
-
* resetValueFromProps(props.foo)
|
|
56460
|
-
* }
|
|
56461
|
-
* ```
|
|
56462
|
-
*
|
|
56463
|
-
* @param value the value to track
|
|
56464
|
-
*/
|
|
56465
|
-
function usePrevious(value) {
|
|
56466
|
-
const ref = React.useRef(null);
|
|
56467
|
-
React.useEffect(() => {
|
|
56468
|
-
ref.current = value;
|
|
56469
|
-
});
|
|
56470
|
-
return ref.current;
|
|
56471
|
-
}
|
|
56472
|
-
|
|
56473
56382
|
const isReactNative = typeof global !== 'undefined' &&
|
|
56474
56383
|
// @ts-ignore
|
|
56475
56384
|
global.navigator &&
|
|
@@ -56862,28 +56771,6 @@ function qsa(element, selector) {
|
|
|
56862
56771
|
return toArray(element.querySelectorAll(selector));
|
|
56863
56772
|
}
|
|
56864
56773
|
|
|
56865
|
-
function useUncontrolledProp$1(propValue, defaultValue, handler) {
|
|
56866
|
-
const wasPropRef = React.useRef(propValue !== undefined);
|
|
56867
|
-
const [stateValue, setState] = React.useState(defaultValue);
|
|
56868
|
-
const isProp = propValue !== undefined;
|
|
56869
|
-
const wasProp = wasPropRef.current;
|
|
56870
|
-
wasPropRef.current = isProp;
|
|
56871
|
-
|
|
56872
|
-
/**
|
|
56873
|
-
* If a prop switches from controlled to Uncontrolled
|
|
56874
|
-
* reset its value to the defaultValue
|
|
56875
|
-
*/
|
|
56876
|
-
if (!isProp && wasProp && stateValue !== defaultValue) {
|
|
56877
|
-
setState(defaultValue);
|
|
56878
|
-
}
|
|
56879
|
-
return [isProp ? propValue : stateValue, React.useCallback((...args) => {
|
|
56880
|
-
const [value, ...rest] = args;
|
|
56881
|
-
let returnValue = handler == null ? void 0 : handler(value, ...rest);
|
|
56882
|
-
setState(value);
|
|
56883
|
-
return returnValue;
|
|
56884
|
-
}, [handler])];
|
|
56885
|
-
}
|
|
56886
|
-
|
|
56887
56774
|
/**
|
|
56888
56775
|
* Returns a function that triggers a component update. the hook equivalent to
|
|
56889
56776
|
* `this.forceUpdate()` in a class component. In most cases using a state value directly
|
|
@@ -56907,8 +56794,6 @@ function useForceUpdate() {
|
|
|
56907
56794
|
return dispatch;
|
|
56908
56795
|
}
|
|
56909
56796
|
|
|
56910
|
-
const DropdownContext = /*#__PURE__*/React.createContext(null);
|
|
56911
|
-
|
|
56912
56797
|
var has$2 = Object.prototype.hasOwnProperty;
|
|
56913
56798
|
|
|
56914
56799
|
function find(iter, tar, key) {
|
|
@@ -59105,270 +58990,6 @@ function mergeOptionsWithPopperConfig({
|
|
|
59105
58990
|
});
|
|
59106
58991
|
}
|
|
59107
58992
|
|
|
59108
|
-
const _excluded$3 = ["children"];
|
|
59109
|
-
function _objectWithoutPropertiesLoose$4(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; }
|
|
59110
|
-
const noop$2 = () => {};
|
|
59111
|
-
|
|
59112
|
-
/**
|
|
59113
|
-
* @memberOf Dropdown
|
|
59114
|
-
* @param {object} options
|
|
59115
|
-
* @param {boolean} options.flip Automatically adjust the menu `drop` position based on viewport edge detection
|
|
59116
|
-
* @param {[number, number]} options.offset Define an offset distance between the Menu and the Toggle
|
|
59117
|
-
* @param {boolean} options.show Display the menu manually, ignored in the context of a `Dropdown`
|
|
59118
|
-
* @param {boolean} options.usePopper opt in/out of using PopperJS to position menus. When disabled you must position it yourself.
|
|
59119
|
-
* @param {string} options.rootCloseEvent The pointer event to listen for when determining "clicks outside" the menu for triggering a close.
|
|
59120
|
-
* @param {object} options.popperConfig Options passed to the [`usePopper`](/api/usePopper) hook.
|
|
59121
|
-
*/
|
|
59122
|
-
function useDropdownMenu(options = {}) {
|
|
59123
|
-
const context = React.useContext(DropdownContext);
|
|
59124
|
-
const [arrowElement, attachArrowRef] = useCallbackRef();
|
|
59125
|
-
const hasShownRef = React.useRef(false);
|
|
59126
|
-
const {
|
|
59127
|
-
flip,
|
|
59128
|
-
offset,
|
|
59129
|
-
rootCloseEvent,
|
|
59130
|
-
fixed = false,
|
|
59131
|
-
placement: placementOverride,
|
|
59132
|
-
popperConfig = {},
|
|
59133
|
-
enableEventListeners = true,
|
|
59134
|
-
usePopper: shouldUsePopper = !!context
|
|
59135
|
-
} = options;
|
|
59136
|
-
const show = (context == null ? void 0 : context.show) == null ? !!options.show : context.show;
|
|
59137
|
-
if (show && !hasShownRef.current) {
|
|
59138
|
-
hasShownRef.current = true;
|
|
59139
|
-
}
|
|
59140
|
-
const handleClose = e => {
|
|
59141
|
-
context == null ? void 0 : context.toggle(false, e);
|
|
59142
|
-
};
|
|
59143
|
-
const {
|
|
59144
|
-
placement,
|
|
59145
|
-
setMenu,
|
|
59146
|
-
menuElement,
|
|
59147
|
-
toggleElement
|
|
59148
|
-
} = context || {};
|
|
59149
|
-
const popper = usePopper(toggleElement, menuElement, mergeOptionsWithPopperConfig({
|
|
59150
|
-
placement: placementOverride || placement || 'bottom-start',
|
|
59151
|
-
enabled: shouldUsePopper,
|
|
59152
|
-
enableEvents: enableEventListeners == null ? show : enableEventListeners,
|
|
59153
|
-
offset,
|
|
59154
|
-
flip,
|
|
59155
|
-
fixed,
|
|
59156
|
-
arrowElement,
|
|
59157
|
-
popperConfig
|
|
59158
|
-
}));
|
|
59159
|
-
const menuProps = Object.assign({
|
|
59160
|
-
ref: setMenu || noop$2,
|
|
59161
|
-
'aria-labelledby': toggleElement == null ? void 0 : toggleElement.id
|
|
59162
|
-
}, popper.attributes.popper, {
|
|
59163
|
-
style: popper.styles.popper
|
|
59164
|
-
});
|
|
59165
|
-
const metadata = {
|
|
59166
|
-
show,
|
|
59167
|
-
placement,
|
|
59168
|
-
hasShown: hasShownRef.current,
|
|
59169
|
-
toggle: context == null ? void 0 : context.toggle,
|
|
59170
|
-
popper: shouldUsePopper ? popper : null,
|
|
59171
|
-
arrowProps: shouldUsePopper ? Object.assign({
|
|
59172
|
-
ref: attachArrowRef
|
|
59173
|
-
}, popper.attributes.arrow, {
|
|
59174
|
-
style: popper.styles.arrow
|
|
59175
|
-
}) : {}
|
|
59176
|
-
};
|
|
59177
|
-
useClickOutside(menuElement, handleClose, {
|
|
59178
|
-
clickTrigger: rootCloseEvent,
|
|
59179
|
-
disabled: !show
|
|
59180
|
-
});
|
|
59181
|
-
return [menuProps, metadata];
|
|
59182
|
-
}
|
|
59183
|
-
const defaultProps = {
|
|
59184
|
-
usePopper: true
|
|
59185
|
-
};
|
|
59186
|
-
/**
|
|
59187
|
-
* Also exported as `<Dropdown.Menu>` from `Dropdown`.
|
|
59188
|
-
*
|
|
59189
|
-
* @displayName DropdownMenu
|
|
59190
|
-
* @memberOf Dropdown
|
|
59191
|
-
*/
|
|
59192
|
-
function DropdownMenu(_ref) {
|
|
59193
|
-
let {
|
|
59194
|
-
children
|
|
59195
|
-
} = _ref,
|
|
59196
|
-
options = _objectWithoutPropertiesLoose$4(_ref, _excluded$3);
|
|
59197
|
-
const [props, meta] = useDropdownMenu(options);
|
|
59198
|
-
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
59199
|
-
children: children(props, meta)
|
|
59200
|
-
});
|
|
59201
|
-
}
|
|
59202
|
-
DropdownMenu.displayName = 'DropdownMenu';
|
|
59203
|
-
DropdownMenu.defaultProps = defaultProps;
|
|
59204
|
-
|
|
59205
|
-
/*
|
|
59206
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
59207
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
59208
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
59209
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
59210
|
-
*
|
|
59211
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
59212
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
59213
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
59214
|
-
* governing permissions and limitations under the License.
|
|
59215
|
-
*/ /*
|
|
59216
|
-
* Copyright 2020 Adobe. All rights reserved.
|
|
59217
|
-
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
59218
|
-
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
59219
|
-
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
59220
|
-
*
|
|
59221
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
59222
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
59223
|
-
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
59224
|
-
* governing permissions and limitations under the License.
|
|
59225
|
-
*/ // We must avoid a circular dependency with @react-aria/utils, and this useLayoutEffect is
|
|
59226
|
-
// guarded by a check that it only runs on the client side.
|
|
59227
|
-
// eslint-disable-next-line rulesdir/useLayoutEffectRule
|
|
59228
|
-
|
|
59229
|
-
// Default context value to use in case there is no SSRProvider. This is fine for
|
|
59230
|
-
// client-only apps. In order to support multiple copies of React Aria potentially
|
|
59231
|
-
// being on the page at once, the prefix is set to a random number. SSRProvider
|
|
59232
|
-
// will reset this to zero for consistency between server and client, so in the
|
|
59233
|
-
// SSR case multiple copies of React Aria is not supported.
|
|
59234
|
-
const $b5e257d569688ac6$var$defaultContext = {
|
|
59235
|
-
prefix: String(Math.round(Math.random() * 10000000000)),
|
|
59236
|
-
current: 0
|
|
59237
|
-
};
|
|
59238
|
-
const $b5e257d569688ac6$var$SSRContext = /*#__PURE__*/ (React__default).createContext($b5e257d569688ac6$var$defaultContext);
|
|
59239
|
-
const $b5e257d569688ac6$var$IsSSRContext = /*#__PURE__*/ (React__default).createContext(false);
|
|
59240
|
-
let $b5e257d569688ac6$var$canUseDOM = Boolean(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
59241
|
-
let $b5e257d569688ac6$var$componentIds = new WeakMap();
|
|
59242
|
-
function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
59243
|
-
let ctx = (React.useContext)($b5e257d569688ac6$var$SSRContext);
|
|
59244
|
-
let ref = (React.useRef)(null);
|
|
59245
|
-
// eslint-disable-next-line rulesdir/pure-render
|
|
59246
|
-
if (ref.current === null && !isDisabled) {
|
|
59247
|
-
var _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner, _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
59248
|
-
// In strict mode, React renders components twice, and the ref will be reset to null on the second render.
|
|
59249
|
-
// This means our id counter will be incremented twice instead of once. This is a problem because on the
|
|
59250
|
-
// server, components are only rendered once and so ids generated on the server won't match the client.
|
|
59251
|
-
// In React 18, useId was introduced to solve this, but it is not available in older versions. So to solve this
|
|
59252
|
-
// we need to use some React internals to access the underlying Fiber instance, which is stable between renders.
|
|
59253
|
-
// This is exposed as ReactCurrentOwner in development, which is all we need since StrictMode only runs in development.
|
|
59254
|
-
// To ensure that we only increment the global counter once, we store the starting id for this component in
|
|
59255
|
-
// a weak map associated with the Fiber. On the second render, we reset the global counter to this value.
|
|
59256
|
-
// Since React runs the second render immediately after the first, this is safe.
|
|
59257
|
-
// @ts-ignore
|
|
59258
|
-
let currentOwner = (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = (React__default).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === void 0 ? void 0 : (_React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner = _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner) === null || _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner === void 0 ? void 0 : _React___SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED_ReactCurrentOwner.current;
|
|
59259
|
-
if (currentOwner) {
|
|
59260
|
-
let prevComponentValue = $b5e257d569688ac6$var$componentIds.get(currentOwner);
|
|
59261
|
-
if (prevComponentValue == null) // On the first render, and first call to useId, store the id and state in our weak map.
|
|
59262
|
-
$b5e257d569688ac6$var$componentIds.set(currentOwner, {
|
|
59263
|
-
id: ctx.current,
|
|
59264
|
-
state: currentOwner.memoizedState
|
|
59265
|
-
});
|
|
59266
|
-
else if (currentOwner.memoizedState !== prevComponentValue.state) {
|
|
59267
|
-
// On the second render, the memoizedState gets reset by React.
|
|
59268
|
-
// Reset the counter, and remove from the weak map so we don't
|
|
59269
|
-
// do this for subsequent useId calls.
|
|
59270
|
-
ctx.current = prevComponentValue.id;
|
|
59271
|
-
$b5e257d569688ac6$var$componentIds.delete(currentOwner);
|
|
59272
|
-
}
|
|
59273
|
-
}
|
|
59274
|
-
// eslint-disable-next-line rulesdir/pure-render
|
|
59275
|
-
ref.current = ++ctx.current;
|
|
59276
|
-
}
|
|
59277
|
-
// eslint-disable-next-line rulesdir/pure-render
|
|
59278
|
-
return ref.current;
|
|
59279
|
-
}
|
|
59280
|
-
function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
|
|
59281
|
-
let ctx = (React.useContext)($b5e257d569688ac6$var$SSRContext);
|
|
59282
|
-
// If we are rendering in a non-DOM environment, and there's no SSRProvider,
|
|
59283
|
-
// provide a warning to hint to the developer to add one.
|
|
59284
|
-
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
59285
|
-
let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);
|
|
59286
|
-
let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ctx.prefix}`;
|
|
59287
|
-
return defaultId || `${prefix}-${counter}`;
|
|
59288
|
-
}
|
|
59289
|
-
function $b5e257d569688ac6$var$useModernSSRSafeId(defaultId) {
|
|
59290
|
-
// @ts-ignore
|
|
59291
|
-
let id = (React__default).useId();
|
|
59292
|
-
let [didSSR] = (React.useState)($b5e257d569688ac6$export$535bd6ca7f90a273());
|
|
59293
|
-
let prefix = didSSR || process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;
|
|
59294
|
-
return defaultId || `${prefix}-${id}`;
|
|
59295
|
-
}
|
|
59296
|
-
const $b5e257d569688ac6$export$619500959fc48b26 = typeof (React__default)["useId"] === "function" ? $b5e257d569688ac6$var$useModernSSRSafeId : $b5e257d569688ac6$var$useLegacySSRSafeId;
|
|
59297
|
-
function $b5e257d569688ac6$var$getSnapshot() {
|
|
59298
|
-
return false;
|
|
59299
|
-
}
|
|
59300
|
-
function $b5e257d569688ac6$var$getServerSnapshot() {
|
|
59301
|
-
return true;
|
|
59302
|
-
}
|
|
59303
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
59304
|
-
function $b5e257d569688ac6$var$subscribe(onStoreChange) {
|
|
59305
|
-
// noop
|
|
59306
|
-
return ()=>{};
|
|
59307
|
-
}
|
|
59308
|
-
function $b5e257d569688ac6$export$535bd6ca7f90a273() {
|
|
59309
|
-
// In React 18, we can use useSyncExternalStore to detect if we're server rendering or hydrating.
|
|
59310
|
-
if (typeof (React__default)["useSyncExternalStore"] === "function") return (React__default)["useSyncExternalStore"]($b5e257d569688ac6$var$subscribe, $b5e257d569688ac6$var$getSnapshot, $b5e257d569688ac6$var$getServerSnapshot);
|
|
59311
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
59312
|
-
return (React.useContext)($b5e257d569688ac6$var$IsSSRContext);
|
|
59313
|
-
}
|
|
59314
|
-
|
|
59315
|
-
const isRoleMenu = el => {
|
|
59316
|
-
var _el$getAttribute;
|
|
59317
|
-
return ((_el$getAttribute = el.getAttribute('role')) == null ? void 0 : _el$getAttribute.toLowerCase()) === 'menu';
|
|
59318
|
-
};
|
|
59319
|
-
const noop$3 = () => {};
|
|
59320
|
-
|
|
59321
|
-
/**
|
|
59322
|
-
* Wires up Dropdown toggle functionality, returning a set a props to attach
|
|
59323
|
-
* to the element that functions as the dropdown toggle (generally a button).
|
|
59324
|
-
*
|
|
59325
|
-
* @memberOf Dropdown
|
|
59326
|
-
*/
|
|
59327
|
-
function useDropdownToggle() {
|
|
59328
|
-
const id = $b5e257d569688ac6$export$619500959fc48b26();
|
|
59329
|
-
const {
|
|
59330
|
-
show = false,
|
|
59331
|
-
toggle = noop$3,
|
|
59332
|
-
setToggle,
|
|
59333
|
-
menuElement
|
|
59334
|
-
} = React.useContext(DropdownContext) || {};
|
|
59335
|
-
const handleClick = React.useCallback(e => {
|
|
59336
|
-
toggle(!show, e);
|
|
59337
|
-
}, [show, toggle]);
|
|
59338
|
-
const props = {
|
|
59339
|
-
id,
|
|
59340
|
-
ref: setToggle || noop$3,
|
|
59341
|
-
onClick: handleClick,
|
|
59342
|
-
'aria-expanded': !!show
|
|
59343
|
-
};
|
|
59344
|
-
|
|
59345
|
-
// This is maybe better down in an effect, but
|
|
59346
|
-
// the component is going to update anyway when the menu element
|
|
59347
|
-
// is set so might return new props.
|
|
59348
|
-
if (menuElement && isRoleMenu(menuElement)) {
|
|
59349
|
-
props['aria-haspopup'] = true;
|
|
59350
|
-
}
|
|
59351
|
-
return [props, {
|
|
59352
|
-
show,
|
|
59353
|
-
toggle
|
|
59354
|
-
}];
|
|
59355
|
-
}
|
|
59356
|
-
/**
|
|
59357
|
-
* Also exported as `<Dropdown.Toggle>` from `Dropdown`.
|
|
59358
|
-
*
|
|
59359
|
-
* @displayName DropdownToggle
|
|
59360
|
-
* @memberOf Dropdown
|
|
59361
|
-
*/
|
|
59362
|
-
function DropdownToggle({
|
|
59363
|
-
children
|
|
59364
|
-
}) {
|
|
59365
|
-
const [props, meta] = useDropdownToggle();
|
|
59366
|
-
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
59367
|
-
children: children(props, meta)
|
|
59368
|
-
});
|
|
59369
|
-
}
|
|
59370
|
-
DropdownToggle.displayName = 'DropdownToggle';
|
|
59371
|
-
|
|
59372
58993
|
const SelectableContext = /*#__PURE__*/React.createContext(null);
|
|
59373
58994
|
const makeEventKey = (eventKey, href = null) => {
|
|
59374
58995
|
if (eventKey != null) return String(eventKey);
|
|
@@ -59387,64 +59008,6 @@ function dataProp(property) {
|
|
|
59387
59008
|
return `${PROPERTY_PREFIX}${property}`;
|
|
59388
59009
|
}
|
|
59389
59010
|
|
|
59390
|
-
const _excluded$4 = ["eventKey", "disabled", "onClick", "active", "as"];
|
|
59391
|
-
function _objectWithoutPropertiesLoose$5(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; }
|
|
59392
|
-
/**
|
|
59393
|
-
* Create a dropdown item. Returns a set of props for the dropdown item component
|
|
59394
|
-
* including an `onClick` handler that prevents selection when the item is disabled
|
|
59395
|
-
*/
|
|
59396
|
-
function useDropdownItem({
|
|
59397
|
-
key,
|
|
59398
|
-
href,
|
|
59399
|
-
active,
|
|
59400
|
-
disabled,
|
|
59401
|
-
onClick
|
|
59402
|
-
}) {
|
|
59403
|
-
const onSelectCtx = React.useContext(SelectableContext);
|
|
59404
|
-
const navContext = React.useContext(NavContext);
|
|
59405
|
-
const {
|
|
59406
|
-
activeKey
|
|
59407
|
-
} = navContext || {};
|
|
59408
|
-
const eventKey = makeEventKey(key, href);
|
|
59409
|
-
const isActive = active == null && key != null ? makeEventKey(activeKey) === eventKey : active;
|
|
59410
|
-
const handleClick = useEventCallback(event => {
|
|
59411
|
-
if (disabled) return;
|
|
59412
|
-
onClick == null ? void 0 : onClick(event);
|
|
59413
|
-
if (onSelectCtx && !event.isPropagationStopped()) {
|
|
59414
|
-
onSelectCtx(eventKey, event);
|
|
59415
|
-
}
|
|
59416
|
-
});
|
|
59417
|
-
return [{
|
|
59418
|
-
onClick: handleClick,
|
|
59419
|
-
'aria-disabled': disabled || undefined,
|
|
59420
|
-
'aria-selected': isActive,
|
|
59421
|
-
[dataAttr('dropdown-item')]: ''
|
|
59422
|
-
}, {
|
|
59423
|
-
isActive
|
|
59424
|
-
}];
|
|
59425
|
-
}
|
|
59426
|
-
const DropdownItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
59427
|
-
let {
|
|
59428
|
-
eventKey,
|
|
59429
|
-
disabled,
|
|
59430
|
-
onClick,
|
|
59431
|
-
active,
|
|
59432
|
-
as: Component = Button
|
|
59433
|
-
} = _ref,
|
|
59434
|
-
props = _objectWithoutPropertiesLoose$5(_ref, _excluded$4);
|
|
59435
|
-
const [dropdownItemProps] = useDropdownItem({
|
|
59436
|
-
key: eventKey,
|
|
59437
|
-
href: props.href,
|
|
59438
|
-
disabled,
|
|
59439
|
-
onClick,
|
|
59440
|
-
active
|
|
59441
|
-
});
|
|
59442
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, Object.assign({}, props, {
|
|
59443
|
-
ref: ref
|
|
59444
|
-
}, dropdownItemProps));
|
|
59445
|
-
});
|
|
59446
|
-
DropdownItem.displayName = 'DropdownItem';
|
|
59447
|
-
|
|
59448
59011
|
const Context = /*#__PURE__*/React.createContext(canUseDOM ? window : undefined);
|
|
59449
59012
|
|
|
59450
59013
|
/**
|
|
@@ -59457,499 +59020,15 @@ function useWindow() {
|
|
|
59457
59020
|
return React.useContext(Context);
|
|
59458
59021
|
}
|
|
59459
59022
|
|
|
59460
|
-
function useRefWithUpdate() {
|
|
59461
|
-
const forceUpdate = useForceUpdate();
|
|
59462
|
-
const ref = React.useRef(null);
|
|
59463
|
-
const attachRef = React.useCallback(element => {
|
|
59464
|
-
ref.current = element;
|
|
59465
|
-
// ensure that a menu set triggers an update for consumers
|
|
59466
|
-
forceUpdate();
|
|
59467
|
-
}, [forceUpdate]);
|
|
59468
|
-
return [ref, attachRef];
|
|
59469
|
-
}
|
|
59470
|
-
|
|
59471
|
-
/**
|
|
59472
|
-
* @displayName Dropdown
|
|
59473
|
-
* @public
|
|
59474
|
-
*/
|
|
59475
|
-
function Dropdown({
|
|
59476
|
-
defaultShow,
|
|
59477
|
-
show: rawShow,
|
|
59478
|
-
onSelect,
|
|
59479
|
-
onToggle: rawOnToggle,
|
|
59480
|
-
itemSelector = `* [${dataAttr('dropdown-item')}]`,
|
|
59481
|
-
focusFirstItemOnShow,
|
|
59482
|
-
placement = 'bottom-start',
|
|
59483
|
-
children
|
|
59484
|
-
}) {
|
|
59485
|
-
const window = useWindow();
|
|
59486
|
-
const [show, onToggle] = useUncontrolledProp$1(rawShow, defaultShow, rawOnToggle);
|
|
59487
|
-
|
|
59488
|
-
// We use normal refs instead of useCallbackRef in order to populate the
|
|
59489
|
-
// the value as quickly as possible, otherwise the effect to focus the element
|
|
59490
|
-
// may run before the state value is set
|
|
59491
|
-
const [menuRef, setMenu] = useRefWithUpdate();
|
|
59492
|
-
const menuElement = menuRef.current;
|
|
59493
|
-
const [toggleRef, setToggle] = useRefWithUpdate();
|
|
59494
|
-
const toggleElement = toggleRef.current;
|
|
59495
|
-
const lastShow = usePrevious(show);
|
|
59496
|
-
const lastSourceEvent = React.useRef(null);
|
|
59497
|
-
const focusInDropdown = React.useRef(false);
|
|
59498
|
-
const onSelectCtx = React.useContext(SelectableContext);
|
|
59499
|
-
const toggle = React.useCallback((nextShow, event, source = event == null ? void 0 : event.type) => {
|
|
59500
|
-
onToggle(nextShow, {
|
|
59501
|
-
originalEvent: event,
|
|
59502
|
-
source
|
|
59503
|
-
});
|
|
59504
|
-
}, [onToggle]);
|
|
59505
|
-
const handleSelect = useEventCallback((key, event) => {
|
|
59506
|
-
onSelect == null ? void 0 : onSelect(key, event);
|
|
59507
|
-
toggle(false, event, 'select');
|
|
59508
|
-
if (!event.isPropagationStopped()) {
|
|
59509
|
-
onSelectCtx == null ? void 0 : onSelectCtx(key, event);
|
|
59510
|
-
}
|
|
59511
|
-
});
|
|
59512
|
-
const context = React.useMemo(() => ({
|
|
59513
|
-
toggle,
|
|
59514
|
-
placement,
|
|
59515
|
-
show,
|
|
59516
|
-
menuElement,
|
|
59517
|
-
toggleElement,
|
|
59518
|
-
setMenu,
|
|
59519
|
-
setToggle
|
|
59520
|
-
}), [toggle, placement, show, menuElement, toggleElement, setMenu, setToggle]);
|
|
59521
|
-
if (menuElement && lastShow && !show) {
|
|
59522
|
-
focusInDropdown.current = menuElement.contains(menuElement.ownerDocument.activeElement);
|
|
59523
|
-
}
|
|
59524
|
-
const focusToggle = useEventCallback(() => {
|
|
59525
|
-
if (toggleElement && toggleElement.focus) {
|
|
59526
|
-
toggleElement.focus();
|
|
59527
|
-
}
|
|
59528
|
-
});
|
|
59529
|
-
const maybeFocusFirst = useEventCallback(() => {
|
|
59530
|
-
const type = lastSourceEvent.current;
|
|
59531
|
-
let focusType = focusFirstItemOnShow;
|
|
59532
|
-
if (focusType == null) {
|
|
59533
|
-
focusType = menuRef.current && isRoleMenu(menuRef.current) ? 'keyboard' : false;
|
|
59534
|
-
}
|
|
59535
|
-
if (focusType === false || focusType === 'keyboard' && !/^key.+$/.test(type)) {
|
|
59536
|
-
return;
|
|
59537
|
-
}
|
|
59538
|
-
const first = qsa(menuRef.current, itemSelector)[0];
|
|
59539
|
-
if (first && first.focus) first.focus();
|
|
59540
|
-
});
|
|
59541
|
-
React.useEffect(() => {
|
|
59542
|
-
if (show) maybeFocusFirst();else if (focusInDropdown.current) {
|
|
59543
|
-
focusInDropdown.current = false;
|
|
59544
|
-
focusToggle();
|
|
59545
|
-
}
|
|
59546
|
-
// only `show` should be changing
|
|
59547
|
-
}, [show, focusInDropdown, focusToggle, maybeFocusFirst]);
|
|
59548
|
-
React.useEffect(() => {
|
|
59549
|
-
lastSourceEvent.current = null;
|
|
59550
|
-
});
|
|
59551
|
-
const getNextFocusedChild = (current, offset) => {
|
|
59552
|
-
if (!menuRef.current) return null;
|
|
59553
|
-
const items = qsa(menuRef.current, itemSelector);
|
|
59554
|
-
let index = items.indexOf(current) + offset;
|
|
59555
|
-
index = Math.max(0, Math.min(index, items.length));
|
|
59556
|
-
return items[index];
|
|
59557
|
-
};
|
|
59558
|
-
useEventListener(React.useCallback(() => window.document, [window]), 'keydown', event => {
|
|
59559
|
-
var _menuRef$current, _toggleRef$current;
|
|
59560
|
-
const {
|
|
59561
|
-
key
|
|
59562
|
-
} = event;
|
|
59563
|
-
const target = event.target;
|
|
59564
|
-
const fromMenu = (_menuRef$current = menuRef.current) == null ? void 0 : _menuRef$current.contains(target);
|
|
59565
|
-
const fromToggle = (_toggleRef$current = toggleRef.current) == null ? void 0 : _toggleRef$current.contains(target);
|
|
59566
|
-
|
|
59567
|
-
// Second only to https://github.com/twbs/bootstrap/blob/8cfbf6933b8a0146ac3fbc369f19e520bd1ebdac/js/src/dropdown.js#L400
|
|
59568
|
-
// in inscrutability
|
|
59569
|
-
const isInput = /input|textarea/i.test(target.tagName);
|
|
59570
|
-
if (isInput && (key === ' ' || key !== 'Escape' && fromMenu || key === 'Escape' && target.type === 'search')) {
|
|
59571
|
-
return;
|
|
59572
|
-
}
|
|
59573
|
-
if (!fromMenu && !fromToggle) {
|
|
59574
|
-
return;
|
|
59575
|
-
}
|
|
59576
|
-
if (key === 'Tab' && (!menuRef.current || !show)) {
|
|
59577
|
-
return;
|
|
59578
|
-
}
|
|
59579
|
-
lastSourceEvent.current = event.type;
|
|
59580
|
-
const meta = {
|
|
59581
|
-
originalEvent: event,
|
|
59582
|
-
source: event.type
|
|
59583
|
-
};
|
|
59584
|
-
switch (key) {
|
|
59585
|
-
case 'ArrowUp':
|
|
59586
|
-
{
|
|
59587
|
-
const next = getNextFocusedChild(target, -1);
|
|
59588
|
-
if (next && next.focus) next.focus();
|
|
59589
|
-
event.preventDefault();
|
|
59590
|
-
return;
|
|
59591
|
-
}
|
|
59592
|
-
case 'ArrowDown':
|
|
59593
|
-
event.preventDefault();
|
|
59594
|
-
if (!show) {
|
|
59595
|
-
onToggle(true, meta);
|
|
59596
|
-
} else {
|
|
59597
|
-
const next = getNextFocusedChild(target, 1);
|
|
59598
|
-
if (next && next.focus) next.focus();
|
|
59599
|
-
}
|
|
59600
|
-
return;
|
|
59601
|
-
case 'Tab':
|
|
59602
|
-
// on keydown the target is the element being tabbed FROM, we need that
|
|
59603
|
-
// to know if this event is relevant to this dropdown (e.g. in this menu).
|
|
59604
|
-
// On `keyup` the target is the element being tagged TO which we use to check
|
|
59605
|
-
// if focus has left the menu
|
|
59606
|
-
addEventListener(target.ownerDocument, 'keyup', e => {
|
|
59607
|
-
var _menuRef$current2;
|
|
59608
|
-
if (e.key === 'Tab' && !e.target || !((_menuRef$current2 = menuRef.current) != null && _menuRef$current2.contains(e.target))) {
|
|
59609
|
-
onToggle(false, meta);
|
|
59610
|
-
}
|
|
59611
|
-
}, {
|
|
59612
|
-
once: true
|
|
59613
|
-
});
|
|
59614
|
-
break;
|
|
59615
|
-
case 'Escape':
|
|
59616
|
-
if (key === 'Escape') {
|
|
59617
|
-
event.preventDefault();
|
|
59618
|
-
event.stopPropagation();
|
|
59619
|
-
}
|
|
59620
|
-
onToggle(false, meta);
|
|
59621
|
-
break;
|
|
59622
|
-
}
|
|
59623
|
-
});
|
|
59624
|
-
return /*#__PURE__*/jsxRuntime.jsx(SelectableContext.Provider, {
|
|
59625
|
-
value: handleSelect,
|
|
59626
|
-
children: /*#__PURE__*/jsxRuntime.jsx(DropdownContext.Provider, {
|
|
59627
|
-
value: context,
|
|
59628
|
-
children: children
|
|
59629
|
-
})
|
|
59630
|
-
});
|
|
59631
|
-
}
|
|
59632
|
-
Dropdown.displayName = 'Dropdown';
|
|
59633
|
-
Dropdown.Menu = DropdownMenu;
|
|
59634
|
-
Dropdown.Toggle = DropdownToggle;
|
|
59635
|
-
Dropdown.Item = DropdownItem;
|
|
59636
|
-
|
|
59637
|
-
const DropdownContext$1 = /*#__PURE__*/React.createContext({});
|
|
59638
|
-
DropdownContext$1.displayName = 'DropdownContext';
|
|
59639
|
-
|
|
59640
|
-
const DropdownDivider = /*#__PURE__*/React.forwardRef(({
|
|
59641
|
-
className,
|
|
59642
|
-
bsPrefix,
|
|
59643
|
-
as: Component = 'hr',
|
|
59644
|
-
role = 'separator',
|
|
59645
|
-
...props
|
|
59646
|
-
}, ref) => {
|
|
59647
|
-
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-divider');
|
|
59648
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59649
|
-
ref: ref,
|
|
59650
|
-
className: classnames(className, bsPrefix),
|
|
59651
|
-
role: role,
|
|
59652
|
-
...props
|
|
59653
|
-
});
|
|
59654
|
-
});
|
|
59655
|
-
DropdownDivider.displayName = 'DropdownDivider';
|
|
59656
|
-
|
|
59657
|
-
const DropdownHeader = /*#__PURE__*/React.forwardRef(({
|
|
59658
|
-
className,
|
|
59659
|
-
bsPrefix,
|
|
59660
|
-
as: Component = 'div',
|
|
59661
|
-
role = 'heading',
|
|
59662
|
-
...props
|
|
59663
|
-
}, ref) => {
|
|
59664
|
-
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-header');
|
|
59665
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59666
|
-
ref: ref,
|
|
59667
|
-
className: classnames(className, bsPrefix),
|
|
59668
|
-
role: role,
|
|
59669
|
-
...props
|
|
59670
|
-
});
|
|
59671
|
-
});
|
|
59672
|
-
DropdownHeader.displayName = 'DropdownHeader';
|
|
59673
|
-
|
|
59674
|
-
const DropdownItem$1 = /*#__PURE__*/React.forwardRef(({
|
|
59675
|
-
bsPrefix,
|
|
59676
|
-
className,
|
|
59677
|
-
eventKey,
|
|
59678
|
-
disabled = false,
|
|
59679
|
-
onClick,
|
|
59680
|
-
active,
|
|
59681
|
-
as: Component = Anchor,
|
|
59682
|
-
...props
|
|
59683
|
-
}, ref) => {
|
|
59684
|
-
const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-item');
|
|
59685
|
-
const [dropdownItemProps, meta] = useDropdownItem({
|
|
59686
|
-
key: eventKey,
|
|
59687
|
-
href: props.href,
|
|
59688
|
-
disabled,
|
|
59689
|
-
onClick,
|
|
59690
|
-
active
|
|
59691
|
-
});
|
|
59692
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59693
|
-
...props,
|
|
59694
|
-
...dropdownItemProps,
|
|
59695
|
-
ref: ref,
|
|
59696
|
-
className: classnames(className, prefix, meta.isActive && 'active', disabled && 'disabled')
|
|
59697
|
-
});
|
|
59698
|
-
});
|
|
59699
|
-
DropdownItem$1.displayName = 'DropdownItem';
|
|
59700
|
-
|
|
59701
|
-
const DropdownItemText = /*#__PURE__*/React.forwardRef(({
|
|
59702
|
-
className,
|
|
59703
|
-
bsPrefix,
|
|
59704
|
-
as: Component = 'span',
|
|
59705
|
-
...props
|
|
59706
|
-
}, ref) => {
|
|
59707
|
-
bsPrefix = useBootstrapPrefix(bsPrefix, 'dropdown-item-text');
|
|
59708
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59709
|
-
ref: ref,
|
|
59710
|
-
className: classnames(className, bsPrefix),
|
|
59711
|
-
...props
|
|
59712
|
-
});
|
|
59713
|
-
});
|
|
59714
|
-
DropdownItemText.displayName = 'DropdownItemText';
|
|
59715
|
-
|
|
59716
|
-
const context$1 = /*#__PURE__*/React.createContext(null);
|
|
59717
|
-
context$1.displayName = 'InputGroupContext';
|
|
59718
|
-
|
|
59719
59023
|
// TODO: check
|
|
59720
59024
|
|
|
59721
|
-
const context$
|
|
59722
|
-
context$
|
|
59723
|
-
|
|
59724
|
-
function useWrappedRefWithWarning(ref, componentName) {
|
|
59725
|
-
// @ts-ignore
|
|
59726
|
-
if (!(process.env.NODE_ENV !== "production")) return ref;
|
|
59727
|
-
|
|
59728
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
59729
|
-
const warningRef = React.useCallback(refValue => {
|
|
59730
|
-
!(refValue == null || !refValue.isReactComponent) ? process.env.NODE_ENV !== "production" ? browser(false, `${componentName} injected a ref to a provided \`as\` component that resolved to a component instance instead of a DOM element. ` + 'Use `React.forwardRef` to provide the injected ref to the class component as a prop in order to pass it directly to a DOM element') : browser(false) : void 0;
|
|
59731
|
-
}, [componentName]);
|
|
59732
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
59733
|
-
return useMergedRefs(warningRef, ref);
|
|
59734
|
-
}
|
|
59735
|
-
|
|
59736
|
-
function getDropdownMenuPlacement(alignEnd, dropDirection, isRTL) {
|
|
59737
|
-
const topStart = isRTL ? 'top-end' : 'top-start';
|
|
59738
|
-
const topEnd = isRTL ? 'top-start' : 'top-end';
|
|
59739
|
-
const bottomStart = isRTL ? 'bottom-end' : 'bottom-start';
|
|
59740
|
-
const bottomEnd = isRTL ? 'bottom-start' : 'bottom-end';
|
|
59741
|
-
const leftStart = isRTL ? 'right-start' : 'left-start';
|
|
59742
|
-
const leftEnd = isRTL ? 'right-end' : 'left-end';
|
|
59743
|
-
const rightStart = isRTL ? 'left-start' : 'right-start';
|
|
59744
|
-
const rightEnd = isRTL ? 'left-end' : 'right-end';
|
|
59745
|
-
let placement = alignEnd ? bottomEnd : bottomStart;
|
|
59746
|
-
if (dropDirection === 'up') placement = alignEnd ? topEnd : topStart;else if (dropDirection === 'end') placement = alignEnd ? rightEnd : rightStart;else if (dropDirection === 'start') placement = alignEnd ? leftEnd : leftStart;else if (dropDirection === 'down-centered') placement = 'bottom';else if (dropDirection === 'up-centered') placement = 'top';
|
|
59747
|
-
return placement;
|
|
59748
|
-
}
|
|
59749
|
-
const DropdownMenu$1 = /*#__PURE__*/React.forwardRef(({
|
|
59750
|
-
bsPrefix,
|
|
59751
|
-
className,
|
|
59752
|
-
align,
|
|
59753
|
-
rootCloseEvent,
|
|
59754
|
-
flip = true,
|
|
59755
|
-
show: showProps,
|
|
59756
|
-
renderOnMount,
|
|
59757
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
59758
|
-
as: Component = 'div',
|
|
59759
|
-
popperConfig,
|
|
59760
|
-
variant,
|
|
59761
|
-
...props
|
|
59762
|
-
}, ref) => {
|
|
59763
|
-
let alignEnd = false;
|
|
59764
|
-
const isNavbar = React.useContext(context$2);
|
|
59765
|
-
const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-menu');
|
|
59766
|
-
const {
|
|
59767
|
-
align: contextAlign,
|
|
59768
|
-
drop,
|
|
59769
|
-
isRTL
|
|
59770
|
-
} = React.useContext(DropdownContext$1);
|
|
59771
|
-
align = align || contextAlign;
|
|
59772
|
-
const isInputGroup = React.useContext(context$1);
|
|
59773
|
-
const alignClasses = [];
|
|
59774
|
-
if (align) {
|
|
59775
|
-
if (typeof align === 'object') {
|
|
59776
|
-
const keys = Object.keys(align);
|
|
59777
|
-
process.env.NODE_ENV !== "production" ? warning_1(keys.length === 1, 'There should only be 1 breakpoint when passing an object to `align`') : void 0;
|
|
59778
|
-
if (keys.length) {
|
|
59779
|
-
const brkPoint = keys[0];
|
|
59780
|
-
const direction = align[brkPoint];
|
|
59781
|
-
|
|
59782
|
-
// .dropdown-menu-end is required for responsively aligning
|
|
59783
|
-
// left in addition to align left classes.
|
|
59784
|
-
alignEnd = direction === 'start';
|
|
59785
|
-
alignClasses.push(`${prefix}-${brkPoint}-${direction}`);
|
|
59786
|
-
}
|
|
59787
|
-
} else if (align === 'end') {
|
|
59788
|
-
alignEnd = true;
|
|
59789
|
-
}
|
|
59790
|
-
}
|
|
59791
|
-
const placement = getDropdownMenuPlacement(alignEnd, drop, isRTL);
|
|
59792
|
-
const [menuProps, {
|
|
59793
|
-
hasShown,
|
|
59794
|
-
popper,
|
|
59795
|
-
show,
|
|
59796
|
-
toggle
|
|
59797
|
-
}] = useDropdownMenu({
|
|
59798
|
-
flip,
|
|
59799
|
-
rootCloseEvent,
|
|
59800
|
-
show: showProps,
|
|
59801
|
-
usePopper: !isNavbar && alignClasses.length === 0,
|
|
59802
|
-
offset: [0, 2],
|
|
59803
|
-
popperConfig,
|
|
59804
|
-
placement
|
|
59805
|
-
});
|
|
59806
|
-
menuProps.ref = useMergedRefs(useWrappedRefWithWarning(ref, 'DropdownMenu'), menuProps.ref);
|
|
59807
|
-
useIsomorphicEffect(() => {
|
|
59808
|
-
// Popper's initial position for the menu is incorrect when
|
|
59809
|
-
// renderOnMount=true. Need to call update() to correct it.
|
|
59810
|
-
if (show) popper == null ? void 0 : popper.update();
|
|
59811
|
-
}, [show]);
|
|
59812
|
-
if (!hasShown && !renderOnMount && !isInputGroup) return null;
|
|
59813
|
-
|
|
59814
|
-
// For custom components provide additional, non-DOM, props;
|
|
59815
|
-
if (typeof Component !== 'string') {
|
|
59816
|
-
menuProps.show = show;
|
|
59817
|
-
menuProps.close = () => toggle == null ? void 0 : toggle(false);
|
|
59818
|
-
menuProps.align = align;
|
|
59819
|
-
}
|
|
59820
|
-
let style = props.style;
|
|
59821
|
-
if (popper != null && popper.placement) {
|
|
59822
|
-
// we don't need the default popper style,
|
|
59823
|
-
// menus are display: none when not shown.
|
|
59824
|
-
style = {
|
|
59825
|
-
...props.style,
|
|
59826
|
-
...menuProps.style
|
|
59827
|
-
};
|
|
59828
|
-
props['x-placement'] = popper.placement;
|
|
59829
|
-
}
|
|
59830
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59831
|
-
...props,
|
|
59832
|
-
...menuProps,
|
|
59833
|
-
style: style
|
|
59834
|
-
// Bootstrap css requires this data attrib to style responsive menus.
|
|
59835
|
-
,
|
|
59836
|
-
...((alignClasses.length || isNavbar) && {
|
|
59837
|
-
'data-bs-popper': 'static'
|
|
59838
|
-
}),
|
|
59839
|
-
className: classnames(className, prefix, show && 'show', alignEnd && `${prefix}-end`, variant && `${prefix}-${variant}`, ...alignClasses)
|
|
59840
|
-
});
|
|
59841
|
-
});
|
|
59842
|
-
DropdownMenu$1.displayName = 'DropdownMenu';
|
|
59843
|
-
|
|
59844
|
-
const DropdownToggle$1 = /*#__PURE__*/React.forwardRef(({
|
|
59845
|
-
bsPrefix,
|
|
59846
|
-
split,
|
|
59847
|
-
className,
|
|
59848
|
-
childBsPrefix,
|
|
59849
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
59850
|
-
as: Component = Button$1,
|
|
59851
|
-
...props
|
|
59852
|
-
}, ref) => {
|
|
59853
|
-
const prefix = useBootstrapPrefix(bsPrefix, 'dropdown-toggle');
|
|
59854
|
-
const dropdownContext = React.useContext(DropdownContext);
|
|
59855
|
-
if (childBsPrefix !== undefined) {
|
|
59856
|
-
props.bsPrefix = childBsPrefix;
|
|
59857
|
-
}
|
|
59858
|
-
const [toggleProps] = useDropdownToggle();
|
|
59859
|
-
toggleProps.ref = useMergedRefs(toggleProps.ref, useWrappedRefWithWarning(ref, 'DropdownToggle'));
|
|
59860
|
-
|
|
59861
|
-
// This intentionally forwards size and variant (if set) to the
|
|
59862
|
-
// underlying component, to allow it to render size and style variants.
|
|
59863
|
-
return /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59864
|
-
className: classnames(className, prefix, split && `${prefix}-split`, (dropdownContext == null ? void 0 : dropdownContext.show) && 'show'),
|
|
59865
|
-
...toggleProps,
|
|
59866
|
-
...props
|
|
59867
|
-
});
|
|
59868
|
-
});
|
|
59869
|
-
DropdownToggle$1.displayName = 'DropdownToggle';
|
|
59870
|
-
|
|
59871
|
-
const Dropdown$1 = /*#__PURE__*/React.forwardRef((pProps, ref) => {
|
|
59872
|
-
const {
|
|
59873
|
-
bsPrefix,
|
|
59874
|
-
drop = 'down',
|
|
59875
|
-
show,
|
|
59876
|
-
className,
|
|
59877
|
-
align = 'start',
|
|
59878
|
-
onSelect,
|
|
59879
|
-
onToggle,
|
|
59880
|
-
focusFirstItemOnShow,
|
|
59881
|
-
// Need to define the default "as" during prop destructuring to be compatible with styled-components github.com/react-bootstrap/react-bootstrap/issues/3595
|
|
59882
|
-
as: Component = 'div',
|
|
59883
|
-
navbar: _4,
|
|
59884
|
-
autoClose = true,
|
|
59885
|
-
...props
|
|
59886
|
-
} = useUncontrolled(pProps, {
|
|
59887
|
-
show: 'onToggle'
|
|
59888
|
-
});
|
|
59889
|
-
const isInputGroup = React.useContext(context$1);
|
|
59890
|
-
const prefix = useBootstrapPrefix(bsPrefix, 'dropdown');
|
|
59891
|
-
const isRTL = useIsRTL();
|
|
59892
|
-
const isClosingPermitted = source => {
|
|
59893
|
-
// autoClose=false only permits close on button click
|
|
59894
|
-
if (autoClose === false) return source === 'click';
|
|
59895
|
-
|
|
59896
|
-
// autoClose=inside doesn't permit close on rootClose
|
|
59897
|
-
if (autoClose === 'inside') return source !== 'rootClose';
|
|
59898
|
-
|
|
59899
|
-
// autoClose=outside doesn't permit close on select
|
|
59900
|
-
if (autoClose === 'outside') return source !== 'select';
|
|
59901
|
-
return true;
|
|
59902
|
-
};
|
|
59903
|
-
const handleToggle = useEventCallback((nextShow, meta) => {
|
|
59904
|
-
if (meta.originalEvent.currentTarget === document && (meta.source !== 'keydown' || meta.originalEvent.key === 'Escape')) meta.source = 'rootClose';
|
|
59905
|
-
if (isClosingPermitted(meta.source)) onToggle == null ? void 0 : onToggle(nextShow, meta);
|
|
59906
|
-
});
|
|
59907
|
-
const alignEnd = align === 'end';
|
|
59908
|
-
const placement = getDropdownMenuPlacement(alignEnd, drop, isRTL);
|
|
59909
|
-
const contextValue = React.useMemo(() => ({
|
|
59910
|
-
align,
|
|
59911
|
-
drop,
|
|
59912
|
-
isRTL
|
|
59913
|
-
}), [align, drop, isRTL]);
|
|
59914
|
-
const directionClasses = {
|
|
59915
|
-
down: prefix,
|
|
59916
|
-
'down-centered': `${prefix}-center`,
|
|
59917
|
-
up: 'dropup',
|
|
59918
|
-
'up-centered': 'dropup-center dropup',
|
|
59919
|
-
end: 'dropend',
|
|
59920
|
-
start: 'dropstart'
|
|
59921
|
-
};
|
|
59922
|
-
return /*#__PURE__*/jsxRuntime.jsx(DropdownContext$1.Provider, {
|
|
59923
|
-
value: contextValue,
|
|
59924
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Dropdown, {
|
|
59925
|
-
placement: placement,
|
|
59926
|
-
show: show,
|
|
59927
|
-
onSelect: onSelect,
|
|
59928
|
-
onToggle: handleToggle,
|
|
59929
|
-
focusFirstItemOnShow: focusFirstItemOnShow,
|
|
59930
|
-
itemSelector: `.${prefix}-item:not(.disabled):not(:disabled)`,
|
|
59931
|
-
children: isInputGroup ? props.children : /*#__PURE__*/jsxRuntime.jsx(Component, {
|
|
59932
|
-
...props,
|
|
59933
|
-
ref: ref,
|
|
59934
|
-
className: classnames(className, show && 'show', directionClasses[drop])
|
|
59935
|
-
})
|
|
59936
|
-
})
|
|
59937
|
-
});
|
|
59938
|
-
});
|
|
59939
|
-
Dropdown$1.displayName = 'Dropdown';
|
|
59940
|
-
var BootstrapDropdown = Object.assign(Dropdown$1, {
|
|
59941
|
-
Toggle: DropdownToggle$1,
|
|
59942
|
-
Menu: DropdownMenu$1,
|
|
59943
|
-
Item: DropdownItem$1,
|
|
59944
|
-
ItemText: DropdownItemText,
|
|
59945
|
-
Divider: DropdownDivider,
|
|
59946
|
-
Header: DropdownHeader
|
|
59947
|
-
});
|
|
59025
|
+
const context$1 = /*#__PURE__*/React.createContext(null);
|
|
59026
|
+
context$1.displayName = 'NavbarContext';
|
|
59948
59027
|
|
|
59949
59028
|
const TabContext = /*#__PURE__*/React.createContext(null);
|
|
59950
59029
|
|
|
59951
|
-
const _excluded$
|
|
59952
|
-
function _objectWithoutPropertiesLoose$
|
|
59030
|
+
const _excluded$3 = ["as", "active", "eventKey"];
|
|
59031
|
+
function _objectWithoutPropertiesLoose$4(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; }
|
|
59953
59032
|
function useNavItem({
|
|
59954
59033
|
key,
|
|
59955
59034
|
onClick,
|
|
@@ -60016,7 +59095,7 @@ const NavItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
60016
59095
|
active,
|
|
60017
59096
|
eventKey
|
|
60018
59097
|
} = _ref,
|
|
60019
|
-
options = _objectWithoutPropertiesLoose$
|
|
59098
|
+
options = _objectWithoutPropertiesLoose$4(_ref, _excluded$3);
|
|
60020
59099
|
const [props, meta] = useNavItem(Object.assign({
|
|
60021
59100
|
key: makeEventKey(eventKey, options.href),
|
|
60022
59101
|
active
|
|
@@ -60030,10 +59109,10 @@ const NavItem = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
60030
59109
|
});
|
|
60031
59110
|
NavItem.displayName = 'NavItem';
|
|
60032
59111
|
|
|
60033
|
-
const _excluded$
|
|
60034
|
-
function _objectWithoutPropertiesLoose$
|
|
59112
|
+
const _excluded$4 = ["as", "onSelect", "activeKey", "role", "onKeyDown"];
|
|
59113
|
+
function _objectWithoutPropertiesLoose$5(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; }
|
|
60035
59114
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
60036
|
-
const noop$
|
|
59115
|
+
const noop$2 = () => {};
|
|
60037
59116
|
const EVENT_KEY_ATTR = dataAttr('event-key');
|
|
60038
59117
|
const Nav = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
60039
59118
|
let {
|
|
@@ -60044,7 +59123,7 @@ const Nav = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
60044
59123
|
role,
|
|
60045
59124
|
onKeyDown
|
|
60046
59125
|
} = _ref,
|
|
60047
|
-
props = _objectWithoutPropertiesLoose$
|
|
59126
|
+
props = _objectWithoutPropertiesLoose$5(_ref, _excluded$4);
|
|
60048
59127
|
// A ref and forceUpdate for refocus, b/c we only want to trigger when needed
|
|
60049
59128
|
// and don't want to reset the set in the effect
|
|
60050
59129
|
const forceUpdate = useForceUpdate();
|
|
@@ -60117,8 +59196,8 @@ const Nav = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
60117
59196
|
role,
|
|
60118
59197
|
// used by NavLink to determine it's role
|
|
60119
59198
|
activeKey: makeEventKey(activeKey),
|
|
60120
|
-
getControlledId: getControlledId || noop$
|
|
60121
|
-
getControllerId: getControllerId || noop$
|
|
59199
|
+
getControlledId: getControlledId || noop$2,
|
|
59200
|
+
getControllerId: getControllerId || noop$2
|
|
60122
59201
|
},
|
|
60123
59202
|
children: /*#__PURE__*/jsxRuntime.jsx(Component, Object.assign({}, props, {
|
|
60124
59203
|
onKeyDown: handleKeyDown,
|
|
@@ -60445,7 +59524,7 @@ const Nav$1 = /*#__PURE__*/React.forwardRef((uncontrolledProps, ref) => {
|
|
|
60445
59524
|
let navbarBsPrefix;
|
|
60446
59525
|
let cardHeaderBsPrefix;
|
|
60447
59526
|
let isNavbar = false;
|
|
60448
|
-
const navbarContext = React.useContext(context$
|
|
59527
|
+
const navbarContext = React.useContext(context$1);
|
|
60449
59528
|
const cardHeaderContext = React.useContext(context);
|
|
60450
59529
|
if (navbarContext) {
|
|
60451
59530
|
navbarBsPrefix = navbarContext.bsPrefix;
|
|
@@ -60477,7 +59556,7 @@ var Nav$2 = Object.assign(Nav$1, {
|
|
|
60477
59556
|
Link: NavLink
|
|
60478
59557
|
});
|
|
60479
59558
|
|
|
60480
|
-
const noop$
|
|
59559
|
+
const noop$3 = () => {};
|
|
60481
59560
|
/**
|
|
60482
59561
|
* The `useRootClose` hook registers your callback on the document
|
|
60483
59562
|
* when rendered. Powers the `<Overlay/>` component. This is used achieve modal
|
|
@@ -60494,7 +59573,7 @@ function useRootClose(ref, onRootClose, {
|
|
|
60494
59573
|
disabled,
|
|
60495
59574
|
clickTrigger
|
|
60496
59575
|
} = {}) {
|
|
60497
|
-
const onClose = onRootClose || noop$
|
|
59576
|
+
const onClose = onRootClose || noop$3;
|
|
60498
59577
|
useClickOutside(ref, onClose, {
|
|
60499
59578
|
disabled,
|
|
60500
59579
|
clickTrigger
|
|
@@ -61284,7 +60363,7 @@ var ExpandCollapseButton = function ExpandCollapseButton(props) {
|
|
|
61284
60363
|
className: styles$j['vitro-expand-collapse-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
61285
60364
|
}, props.expandImage && props.collapseImage ? React__default.createElement(React__default.Fragment, null, isExpanded ? props.collapseImage : props.expandImage) : React__default.createElement("div", {
|
|
61286
60365
|
className: isExpanded ? styles$j['vitro-expanded'] : styles$j['vitro-collapsed']
|
|
61287
|
-
}), isExpanded ? props.collapseText : props.expandText);
|
|
60366
|
+
}), props.collapseText || props.expandText ? React__default.createElement("span", null, isExpanded ? props.collapseText : props.expandText) : null, props.children);
|
|
61288
60367
|
};
|
|
61289
60368
|
|
|
61290
60369
|
var LOCALE$1;
|
|
@@ -62043,124 +61122,234 @@ var ActionHandler = function ActionHandler(props) {
|
|
|
62043
61122
|
}));
|
|
62044
61123
|
};
|
|
62045
61124
|
|
|
62046
|
-
var styles$q = {"vitro-dropdown-button":"_dropdown-button_vitro-dropdown-
|
|
61125
|
+
var styles$q = {"vitro-dropdown-button-container":"_dropdown-button_vitro-dropdown-button-container_zx8iZtY","vitro-dropdown-toggle":"_dropdown-button_vitro-dropdown-toggle_-Nj8qLe","vitro-dropdown-menu":"_dropdown-button_vitro-dropdown-menu_2B1Wr1Y","vitro-right":"_dropdown-button_vitro-right_gHoXO9n","vitro-dropdown-button-item":"_dropdown-button_vitro-dropdown-button-item_2XZNxoG","vitro-dropdown-button-dropdown-item":"_dropdown-button_vitro-dropdown-button-dropdown-item_3Nwnp_-","vitro-image-container":"_dropdown-button_vitro-image-container_3Kf-a2A","vitro-button-collapse-bottom":"_dropdown-button_vitro-button-collapse-bottom_Ivm3AkU","vitro-image":"_dropdown-button_vitro-image_3bX1quk","vitro-scrollbar":"_dropdown-button_vitro-scrollbar_2DCwQvu","vitro-dropdown-button-dropdown-item-menu":"_dropdown-button_vitro-dropdown-button-dropdown-item-menu_39eSYtN"};
|
|
62047
61126
|
|
|
62048
|
-
var
|
|
62049
|
-
var
|
|
62050
|
-
|
|
62051
|
-
|
|
62052
|
-
|
|
62053
|
-
|
|
62054
|
-
|
|
62055
|
-
|
|
62056
|
-
|
|
62057
|
-
|
|
62058
|
-
|
|
62059
|
-
|
|
62060
|
-
|
|
62061
|
-
|
|
62062
|
-
|
|
62063
|
-
|
|
62064
|
-
|
|
62065
|
-
|
|
62066
|
-
},
|
|
62067
|
-
|
|
62068
|
-
|
|
62069
|
-
|
|
62070
|
-
|
|
62071
|
-
|
|
62072
|
-
|
|
62073
|
-
|
|
62074
|
-
|
|
62075
|
-
|
|
62076
|
-
|
|
62077
|
-
|
|
62078
|
-
|
|
62079
|
-
|
|
62080
|
-
|
|
62081
|
-
|
|
62082
|
-
|
|
62083
|
-
|
|
62084
|
-
|
|
62085
|
-
|
|
62086
|
-
|
|
62087
|
-
w$4.$('body').append(menu.css({
|
|
62088
|
-
position: POSITION_ABSOLUTE,
|
|
62089
|
-
left: menu.offset().left,
|
|
62090
|
-
top: menu.offset().top
|
|
62091
|
-
}).detach());
|
|
61127
|
+
var DropdownButtonItem = function DropdownButtonItem(props) {
|
|
61128
|
+
var onClick = function onClick(e) {
|
|
61129
|
+
if (props.onClick) {
|
|
61130
|
+
props.onClick(e);
|
|
61131
|
+
} else if (props.href) {
|
|
61132
|
+
var event = new CustomEvent(exports.EVENT.HISTORY_UPDATE, {
|
|
61133
|
+
detail: {
|
|
61134
|
+
pathname: props.href
|
|
61135
|
+
}
|
|
61136
|
+
});
|
|
61137
|
+
window.dispatchEvent(event);
|
|
61138
|
+
}
|
|
61139
|
+
};
|
|
61140
|
+
return React__default.createElement(reactstrap.DropdownItem, {
|
|
61141
|
+
onClick: onClick,
|
|
61142
|
+
toggle: props.isToggle === false ? false : true,
|
|
61143
|
+
divider: props.isShowSeparator,
|
|
61144
|
+
className: styles$q['vitro-dropdown-button-item']
|
|
61145
|
+
}, (props.isShowImage || props.imageUrl) && React__default.createElement("div", {
|
|
61146
|
+
className: styles$q['vitro-image-container']
|
|
61147
|
+
}, props.imageUrl && React__default.createElement(Image, {
|
|
61148
|
+
defaultUrl: props.imageUrl,
|
|
61149
|
+
hoverUrl: props.imageHoverUrl
|
|
61150
|
+
})), React__default.createElement("span", null, props.text));
|
|
61151
|
+
};
|
|
61152
|
+
|
|
61153
|
+
var Dropdown = React.forwardRef(function (props, ref) {
|
|
61154
|
+
var toggleRef = React.useRef();
|
|
61155
|
+
var dropdownRef = React.useRef();
|
|
61156
|
+
React.useImperativeHandle(ref, function () {
|
|
61157
|
+
return {
|
|
61158
|
+
click: function click() {
|
|
61159
|
+
if (toggleRef.current) {
|
|
61160
|
+
toggleRef.current.click();
|
|
61161
|
+
}
|
|
61162
|
+
},
|
|
61163
|
+
toggle: function toggle() {
|
|
61164
|
+
if (dropdownRef.current) {
|
|
61165
|
+
dropdownRef.current.toggle();
|
|
62092
61166
|
}
|
|
62093
|
-
target.addClass('vitro-dropdown-button-active');
|
|
62094
61167
|
}
|
|
61168
|
+
};
|
|
61169
|
+
});
|
|
61170
|
+
var toggle = function toggle() {
|
|
61171
|
+
if (props.isExpandOnHover) {
|
|
61172
|
+
var _dropdownRef$current;
|
|
61173
|
+
(_dropdownRef$current = dropdownRef.current) === null || _dropdownRef$current === void 0 ? void 0 : _dropdownRef$current.toggle();
|
|
62095
61174
|
}
|
|
62096
|
-
|
|
62097
|
-
|
|
61175
|
+
};
|
|
61176
|
+
var onClick = function onClick(e) {
|
|
61177
|
+
if (props.isExpandOnHover) {
|
|
61178
|
+
var _dropdownRef$current2;
|
|
61179
|
+
(_dropdownRef$current2 = dropdownRef.current) === null || _dropdownRef$current2 === void 0 ? void 0 : _dropdownRef$current2.toggle();
|
|
62098
61180
|
}
|
|
62099
|
-
if (
|
|
62100
|
-
|
|
61181
|
+
if (props.onClick) {
|
|
61182
|
+
props.onClick(e);
|
|
62101
61183
|
}
|
|
62102
61184
|
};
|
|
62103
|
-
var
|
|
62104
|
-
|
|
62105
|
-
|
|
62106
|
-
|
|
62107
|
-
|
|
62108
|
-
|
|
62109
|
-
|
|
62110
|
-
|
|
62111
|
-
|
|
62112
|
-
|
|
62113
|
-
|
|
62114
|
-
|
|
62115
|
-
|
|
62116
|
-
|
|
62117
|
-
|
|
62118
|
-
},
|
|
62119
|
-
|
|
62120
|
-
|
|
62121
|
-
|
|
62122
|
-
|
|
62123
|
-
|
|
62124
|
-
|
|
62125
|
-
|
|
62126
|
-
|
|
62127
|
-
|
|
62128
|
-
}, React__default.createElement(
|
|
62129
|
-
|
|
62130
|
-
|
|
62131
|
-
className:
|
|
62132
|
-
},
|
|
61185
|
+
var onGetMenuRef = function onGetMenuRef(e) {
|
|
61186
|
+
if (props.onGetMenuRef) {
|
|
61187
|
+
props.onGetMenuRef(e);
|
|
61188
|
+
}
|
|
61189
|
+
};
|
|
61190
|
+
var className = [styles$q['vitro-dropdown'], props.className || CTRL.EMPTY].join(CTRL.SPACE);
|
|
61191
|
+
var menuClassName = [styles$q['vitro-dropdown-menu'], props.menuClassName || CTRL.EMPTY, props.isRight ? styles$q['vitro-right'] : CTRL.EMPTY].join(CTRL.SPACE);
|
|
61192
|
+
return React__default.createElement(reactstrap.UncontrolledDropdown, {
|
|
61193
|
+
ref: dropdownRef,
|
|
61194
|
+
isNav: props.isNav,
|
|
61195
|
+
inNavbar: props.isInNavbar,
|
|
61196
|
+
className: className,
|
|
61197
|
+
direction: props.placement,
|
|
61198
|
+
onMouseEnter: function onMouseEnter() {
|
|
61199
|
+
return toggle();
|
|
61200
|
+
},
|
|
61201
|
+
onMouseLeave: function onMouseLeave() {
|
|
61202
|
+
return toggle();
|
|
61203
|
+
}
|
|
61204
|
+
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
61205
|
+
nav: false,
|
|
61206
|
+
caret: false,
|
|
61207
|
+
onClick: onClick,
|
|
61208
|
+
innerRef: toggleRef,
|
|
61209
|
+
className: styles$q['vitro-dropdown-toggle'] + (props.toggleClassName ? CTRL.SPACE + props.toggleClassName : CTRL.EMPTY)
|
|
61210
|
+
}, props.button), React__default.createElement(reactstrap.DropdownMenu, {
|
|
61211
|
+
innerRef: onGetMenuRef,
|
|
61212
|
+
container: props.menuContainer ? props.menuContainer : 'body',
|
|
61213
|
+
className: menuClassName
|
|
61214
|
+
}, React__default.createElement(ScrollBar, {
|
|
61215
|
+
className: styles$q['vitro-scrollbar'],
|
|
61216
|
+
isHideScrollX: true
|
|
61217
|
+
}, props.children)));
|
|
61218
|
+
});
|
|
61219
|
+
|
|
61220
|
+
(function (PLACEMENT) {
|
|
61221
|
+
PLACEMENT["TOP"] = "top";
|
|
61222
|
+
PLACEMENT["BOTTOM"] = "bottom";
|
|
61223
|
+
PLACEMENT["LEFT"] = "left";
|
|
61224
|
+
PLACEMENT["RIGHT"] = "right";
|
|
61225
|
+
PLACEMENT["AUTO"] = "auto";
|
|
61226
|
+
PLACEMENT["START"] = "start";
|
|
61227
|
+
PLACEMENT["END"] = "end";
|
|
61228
|
+
})(exports.PLACEMENT || (exports.PLACEMENT = {}));
|
|
61229
|
+
|
|
61230
|
+
var DropdownButtonDropdownItem = function DropdownButtonDropdownItem(props) {
|
|
61231
|
+
return React__default.createElement(Dropdown, {
|
|
61232
|
+
className: styles$q['vitro-dropdown-button-dropdown-item'],
|
|
61233
|
+
isExpandOnHover: true,
|
|
61234
|
+
placement: exports.PLACEMENT.END,
|
|
61235
|
+
menuClassName: styles$q['vitro-dropdown-button-dropdown-item-menu'],
|
|
61236
|
+
button: React__default.createElement(DropdownButtonItem, Object.assign({}, props, {
|
|
61237
|
+
isToggle: false
|
|
61238
|
+
}))
|
|
61239
|
+
}, props.itemList && props.itemList.length !== 0 && props.itemList.map(function (item) {
|
|
61240
|
+
if (item.itemList) {
|
|
61241
|
+
return React__default.createElement(DropdownButtonDropdownItem, Object.assign({}, item));
|
|
61242
|
+
}
|
|
61243
|
+
return React__default.createElement(DropdownButtonItem, Object.assign({
|
|
61244
|
+
isToggle: props.isToggle
|
|
61245
|
+
}, item));
|
|
61246
|
+
}), props.children);
|
|
61247
|
+
};
|
|
61248
|
+
|
|
61249
|
+
var DropdownToggleContent = function DropdownToggleContent(props) {
|
|
61250
|
+
var _useState = React.useState(false),
|
|
61251
|
+
isHover = _useState[0],
|
|
61252
|
+
setIsHover = _useState[1];
|
|
61253
|
+
var ref = React.useRef(null);
|
|
61254
|
+
React.useEffect(function () {
|
|
61255
|
+
updateIsRight();
|
|
61256
|
+
}, [ref.current]);
|
|
61257
|
+
var updateIsRight = function updateIsRight() {
|
|
61258
|
+
var isRight = false;
|
|
61259
|
+
if (ref.current) {
|
|
61260
|
+
var windowWidth = window.innerWidth;
|
|
61261
|
+
var left = ref.current.getBoundingClientRect().left;
|
|
61262
|
+
if (left + 241 > windowWidth) {
|
|
61263
|
+
isRight = true;
|
|
61264
|
+
}
|
|
61265
|
+
}
|
|
61266
|
+
props.setIsRight(isRight);
|
|
61267
|
+
};
|
|
61268
|
+
return React__default.createElement(FlexBox, {
|
|
61269
|
+
ref: ref,
|
|
61270
|
+
onMouseEnter: function onMouseEnter() {
|
|
61271
|
+
return setIsHover(true);
|
|
61272
|
+
},
|
|
61273
|
+
onMouseLeave: function onMouseLeave() {
|
|
61274
|
+
return setIsHover(false);
|
|
61275
|
+
},
|
|
61276
|
+
className: styles$q['vitro-dropdown-button-toggle-content'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
61277
|
+
"data-show": props.isVisibleFunction
|
|
61278
|
+
}, props.imageUrl && React__default.createElement(Image, {
|
|
61279
|
+
isHover: isHover,
|
|
62133
61280
|
defaultUrl: props.imageUrl,
|
|
62134
|
-
hoverUrl: props.imageHoverUrl
|
|
62135
|
-
|
|
62136
|
-
|
|
62137
|
-
})), React__default.createElement(BootstrapDropdown.Menu, {
|
|
62138
|
-
renderOnMount: props.isRenderOnMount,
|
|
62139
|
-
flip: props.isFlip !== false,
|
|
62140
|
-
style: props.menuStyle || {},
|
|
62141
|
-
popperConfig: props.popperConfig || {},
|
|
62142
|
-
ref: props.onGetMenuRef
|
|
62143
|
-
}, React__default.createElement(ScrollBar, null, itemList.length > 0 && itemList.map(function (x) {
|
|
62144
|
-
return React__default.createElement(BootstrapDropdown.Item, {
|
|
62145
|
-
key: x.key,
|
|
62146
|
-
onClick: function onClick(e) {
|
|
62147
|
-
return x.onClick(x.value, e);
|
|
62148
|
-
}
|
|
62149
|
-
}, isShowImage && React__default.createElement("div", {
|
|
62150
|
-
className: styles$q['vitro-image']
|
|
62151
|
-
}, x.imageUrl && React__default.createElement(Image, {
|
|
62152
|
-
defaultUrl: x.imageUrl,
|
|
62153
|
-
hoverUrl: x.imageHoverUrl
|
|
62154
|
-
})), React__default.createElement("span", null, x.text));
|
|
62155
|
-
})))));
|
|
61281
|
+
hoverUrl: props.imageHoverUrl,
|
|
61282
|
+
className: styles$q['vitro-image']
|
|
61283
|
+
}), props.text && React__default.createElement("span", null, props.text));
|
|
62156
61284
|
};
|
|
62157
61285
|
|
|
62158
|
-
var
|
|
61286
|
+
var DropdownButton = React.forwardRef(function (props, ref) {
|
|
61287
|
+
var _props$itemList;
|
|
61288
|
+
var _useState = React.useState(false),
|
|
61289
|
+
isShow = _useState[0],
|
|
61290
|
+
setIsShow = _useState[1];
|
|
61291
|
+
var _useState2 = React.useState(false),
|
|
61292
|
+
isRight = _useState2[0],
|
|
61293
|
+
setIsRight = _useState2[1];
|
|
61294
|
+
var isShowImage = (_props$itemList = props.itemList) !== null && _props$itemList !== void 0 && _props$itemList.find(function (item) {
|
|
61295
|
+
return item.imageUrl;
|
|
61296
|
+
}) ? true : false;
|
|
61297
|
+
var onClick = function onClick(e) {
|
|
61298
|
+
var value = !isShow;
|
|
61299
|
+
setIsShow(value);
|
|
61300
|
+
if (props.onClick) {
|
|
61301
|
+
props.onClick(e, value);
|
|
61302
|
+
} else {
|
|
61303
|
+
var event = new CustomEvent(exports.EVENT.COMMAND_MENU_TOGGLE, {
|
|
61304
|
+
detail: {
|
|
61305
|
+
isToggle: true
|
|
61306
|
+
}
|
|
61307
|
+
});
|
|
61308
|
+
window.dispatchEvent(event);
|
|
61309
|
+
}
|
|
61310
|
+
};
|
|
61311
|
+
return React__default.createElement(Dropdown, {
|
|
61312
|
+
ref: ref,
|
|
61313
|
+
onClick: onClick,
|
|
61314
|
+
isRight: isRight,
|
|
61315
|
+
isInNavbar: props.isInNavbar,
|
|
61316
|
+
className: styles$q['vitro-dropdown-button-container'] + (props.containerClassName ? CTRL.SPACE + props.containerClassName : CTRL.EMPTY),
|
|
61317
|
+
toggleClassName: props.className,
|
|
61318
|
+
menuClassName: props.menuClassName,
|
|
61319
|
+
menuContainer: props.menuContainer,
|
|
61320
|
+
onGetMenuRef: props.onGetMenuRef,
|
|
61321
|
+
placement: props.placement,
|
|
61322
|
+
button: React__default.createElement(DropdownToggleContent, Object.assign({}, props, {
|
|
61323
|
+
className: undefined,
|
|
61324
|
+
setIsRight: setIsRight
|
|
61325
|
+
}))
|
|
61326
|
+
}, props.itemList && props.itemList.length !== 0 && props.itemList.map(function (item) {
|
|
61327
|
+
if (item.itemList) {
|
|
61328
|
+
return React__default.createElement(DropdownButtonDropdownItem, Object.assign({}, item));
|
|
61329
|
+
}
|
|
61330
|
+
return React__default.createElement(DropdownButtonItem, Object.assign({
|
|
61331
|
+
isToggle: props.isToggle
|
|
61332
|
+
}, item, {
|
|
61333
|
+
isShowImage: isShowImage
|
|
61334
|
+
}));
|
|
61335
|
+
}), props.children);
|
|
61336
|
+
});
|
|
61337
|
+
|
|
61338
|
+
var STYLE$1;
|
|
61339
|
+
(function (STYLE) {
|
|
61340
|
+
STYLE["ADDON"] = "vitro-addon-button";
|
|
61341
|
+
STYLE["CONTEXT"] = "vitro-context-button";
|
|
61342
|
+
})(STYLE$1 || (STYLE$1 = {}));
|
|
61343
|
+
|
|
61344
|
+
var DropdownButtonConstants = {
|
|
61345
|
+
__proto__: null,
|
|
61346
|
+
get STYLE () { return STYLE$1; }
|
|
61347
|
+
};
|
|
62159
61348
|
|
|
62160
61349
|
var OverflowButton = function OverflowButton(props) {
|
|
62161
61350
|
if (!props.list || !props.list.length) return null;
|
|
62162
61351
|
return React__default.createElement(DropdownButton, {
|
|
62163
|
-
className:
|
|
61352
|
+
className: STYLE$1.CONTEXT,
|
|
62164
61353
|
itemList: props.list.map(function (x, i) {
|
|
62165
61354
|
return _extends({}, x, {
|
|
62166
61355
|
value: x.index,
|
|
@@ -62169,13 +61358,12 @@ var OverflowButton = function OverflowButton(props) {
|
|
|
62169
61358
|
return props.onSelect(x.index);
|
|
62170
61359
|
}
|
|
62171
61360
|
});
|
|
62172
|
-
})
|
|
62173
|
-
menuStyle: {
|
|
62174
|
-
maxWidth: props.width - 32 + UNIT.PX
|
|
62175
|
-
}
|
|
61361
|
+
})
|
|
62176
61362
|
});
|
|
62177
61363
|
};
|
|
62178
61364
|
|
|
61365
|
+
var styles$r = {"vitro-tab":"_tab-group_vitro-tab_1Qb50HL","vitro-item":"_tab-group_vitro-item_2YnBcmb","active":"_tab-group_active_3M-IIR2"};
|
|
61366
|
+
|
|
62179
61367
|
var Tab = function Tab(props) {
|
|
62180
61368
|
if (!props.icon && !props.title) {
|
|
62181
61369
|
return null;
|
|
@@ -62347,10 +61535,10 @@ var tabScriptList = [{
|
|
|
62347
61535
|
id: 'vitro-script-perfect-scroll'
|
|
62348
61536
|
}];
|
|
62349
61537
|
|
|
62350
|
-
var w$
|
|
61538
|
+
var w$4 = window;
|
|
62351
61539
|
var TabGroup = React.forwardRef(function (props, ref) {
|
|
62352
61540
|
var scriptList = [];
|
|
62353
|
-
if (!w$
|
|
61541
|
+
if (!w$4.addResizeListener) {
|
|
62354
61542
|
scriptList = tabScriptList;
|
|
62355
61543
|
}
|
|
62356
61544
|
return props.wrap ? React__default.createElement(ScriptLoader, {
|
|
@@ -62855,7 +62043,8 @@ var IssueTileHeader = function IssueTileHeader(props) {
|
|
|
62855
62043
|
target: TARGET_BLANK
|
|
62856
62044
|
}, VERSION + CTRL.SQUARE_BRACKET_OPEN + props.fileVersion + CTRL.SQUARE_BRACKET_CLOSE), props.actionList && props.actionList.length ? React__default.createElement(DropdownButton, {
|
|
62857
62045
|
itemList: props.actionList,
|
|
62858
|
-
|
|
62046
|
+
containerClassName: styles$z['vitro-dropdown-button'],
|
|
62047
|
+
className: STYLE$1.CONTEXT
|
|
62859
62048
|
}) : null);
|
|
62860
62049
|
};
|
|
62861
62050
|
|
|
@@ -62872,6 +62061,7 @@ var ExpandControlGroup = function ExpandControlGroup(props) {
|
|
|
62872
62061
|
isExpanded = _useState[0],
|
|
62873
62062
|
setIsExpanded = _useState[1];
|
|
62874
62063
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
62064
|
+
var contentRef = React.useRef(null);
|
|
62875
62065
|
React.useEffect(function () {
|
|
62876
62066
|
setIsExpanded(props.isExpanded || false);
|
|
62877
62067
|
}, [props.isExpanded]);
|
|
@@ -62887,12 +62077,13 @@ var ExpandControlGroup = function ExpandControlGroup(props) {
|
|
|
62887
62077
|
}, React__default.createElement(ExpandCollapseButton, {
|
|
62888
62078
|
expandImage: props.expandImage,
|
|
62889
62079
|
collapseImage: props.collapseImage,
|
|
62890
|
-
expandText: props.expandText
|
|
62891
|
-
collapseText: props.collapseText
|
|
62080
|
+
expandText: props.expandText !== undefined ? props.expandText : localeService.create(LOCALE$3.EXPAND_TEXT),
|
|
62081
|
+
collapseText: props.collapseText !== undefined ? props.collapseText : localeService.create(LOCALE$3.COLLAPSE_TEXT),
|
|
62892
62082
|
onClick: onClick,
|
|
62893
62083
|
isExpanded: isExpanded,
|
|
62894
62084
|
className: props.buttonClassName
|
|
62895
|
-
}), React__default.createElement("div", {
|
|
62085
|
+
}, props.buttonContent), React__default.createElement("div", {
|
|
62086
|
+
ref: contentRef,
|
|
62896
62087
|
className: 'vitro-content' + (isExpanded ? CTRL.EMPTY : CTRL.SPACE + styles$A['vitro-display-none'])
|
|
62897
62088
|
}, props.children));
|
|
62898
62089
|
};
|
|
@@ -63164,7 +62355,7 @@ var LOCALE$4;
|
|
|
63164
62355
|
var styles$D = {"vitro-search-input":"_search-input_vitro-search-input_3M9i4Gi","vitro-search-value-list":"_search-input_vitro-search-value-list_1Gqj4bm","vitro-button-cancel":"_search-input_vitro-button-cancel_xqdMNLo","vitro-search-value":"_search-input_vitro-search-value_TJm1BCf","vitro-search-input-mobile":"_search-input_vitro-search-input-mobile_1H1USnO"};
|
|
63165
62356
|
|
|
63166
62357
|
var NEW_LINE = '\n';
|
|
63167
|
-
var SearchInput = function
|
|
62358
|
+
var SearchInput = React.forwardRef(function (props, ref) {
|
|
63168
62359
|
var _props$searchCriterio2;
|
|
63169
62360
|
var _useState = React.useState(CTRL.EMPTY),
|
|
63170
62361
|
value = _useState[0],
|
|
@@ -63174,6 +62365,9 @@ var SearchInput = function SearchInput(props) {
|
|
|
63174
62365
|
setState = _useState2[1];
|
|
63175
62366
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
63176
62367
|
var inputRef = React.useRef(null);
|
|
62368
|
+
React.useImperativeHandle(ref, function () {
|
|
62369
|
+
return inputRef.current;
|
|
62370
|
+
});
|
|
63177
62371
|
React.useEffect(function () {
|
|
63178
62372
|
var _props$searchCriterio;
|
|
63179
62373
|
if (!((_props$searchCriterio = props.searchCriterionList) !== null && _props$searchCriterio !== void 0 && _props$searchCriterio.length)) {
|
|
@@ -63187,6 +62381,7 @@ var SearchInput = function SearchInput(props) {
|
|
|
63187
62381
|
}
|
|
63188
62382
|
};
|
|
63189
62383
|
var onSubmit = function onSubmit() {
|
|
62384
|
+
onBlur();
|
|
63190
62385
|
if (value && props.onSubmit) {
|
|
63191
62386
|
props.onSubmit(value);
|
|
63192
62387
|
resetValue();
|
|
@@ -63306,17 +62501,7 @@ var SearchInput = function SearchInput(props) {
|
|
|
63306
62501
|
onClick: onCancel,
|
|
63307
62502
|
className: styles$D['vitro-button-cancel']
|
|
63308
62503
|
}) : null));
|
|
63309
|
-
};
|
|
63310
|
-
|
|
63311
|
-
(function (PLACEMENT) {
|
|
63312
|
-
PLACEMENT["TOP"] = "top";
|
|
63313
|
-
PLACEMENT["BOTTOM"] = "bottom";
|
|
63314
|
-
PLACEMENT["LEFT"] = "left";
|
|
63315
|
-
PLACEMENT["RIGHT"] = "right";
|
|
63316
|
-
PLACEMENT["AUTO"] = "auto";
|
|
63317
|
-
PLACEMENT["START"] = "start";
|
|
63318
|
-
PLACEMENT["END"] = "end";
|
|
63319
|
-
})(exports.PLACEMENT || (exports.PLACEMENT = {}));
|
|
62504
|
+
});
|
|
63320
62505
|
|
|
63321
62506
|
var MODIFIER;
|
|
63322
62507
|
(function (MODIFIER) {
|
|
@@ -67345,6 +66530,7 @@ var Search = function Search(props) {
|
|
|
67345
66530
|
var _useState6 = React.useState([]),
|
|
67346
66531
|
sendedSearchCriterionList = _useState6[0],
|
|
67347
66532
|
setSendedSearchCriterionList = _useState6[1];
|
|
66533
|
+
var searchInputRef = React.useRef(null);
|
|
67348
66534
|
var searchRef = React.useRef(null);
|
|
67349
66535
|
var eventService = inversifyReact.useInjection(SERVICE.EVENT);
|
|
67350
66536
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
@@ -67453,10 +66639,19 @@ var Search = function Search(props) {
|
|
|
67453
66639
|
}
|
|
67454
66640
|
};
|
|
67455
66641
|
var onSearch = function onSearch(value, criterionList) {
|
|
67456
|
-
var
|
|
66642
|
+
var _searchInputRef$curre;
|
|
66643
|
+
var inputList;
|
|
66644
|
+
if ((_searchInputRef$curre = searchInputRef.current) !== null && _searchInputRef$curre !== void 0 && _searchInputRef$curre.value) {
|
|
66645
|
+
var _searchInputRef$curre2;
|
|
66646
|
+
inputList = getInputCriterionList((_searchInputRef$curre2 = searchInputRef.current) === null || _searchInputRef$curre2 === void 0 ? void 0 : _searchInputRef$curre2.value);
|
|
66647
|
+
setSearchCriterionList(inputList);
|
|
66648
|
+
}
|
|
66649
|
+
var list = criterionList ? criterionList : inputList ? inputList : searchCriterionList;
|
|
67457
66650
|
doSearch(getSearchCriterionListWithoutKey(list));
|
|
67458
66651
|
setSelectedSearchCriterionList(getSelectedCriterionList(list));
|
|
67459
|
-
|
|
66652
|
+
if (isShowDialog) {
|
|
66653
|
+
closeSettings();
|
|
66654
|
+
}
|
|
67460
66655
|
};
|
|
67461
66656
|
var getSearchCriterionListWithoutKey = function getSearchCriterionListWithoutKey(criterionList) {
|
|
67462
66657
|
var list = [];
|
|
@@ -67494,7 +66689,7 @@ var Search = function Search(props) {
|
|
|
67494
66689
|
destination: props.destination
|
|
67495
66690
|
});
|
|
67496
66691
|
};
|
|
67497
|
-
var
|
|
66692
|
+
var getInputCriterionList = function getInputCriterionList(value) {
|
|
67498
66693
|
var _defaultSearchField$;
|
|
67499
66694
|
var defaultSearchField = visibleFieldList === null || visibleFieldList === void 0 ? void 0 : visibleFieldList.filter(function (field) {
|
|
67500
66695
|
return field.internalName === defaultSearchFieldName;
|
|
@@ -67507,7 +66702,7 @@ var Search = function Search(props) {
|
|
|
67507
66702
|
valueList: [value],
|
|
67508
66703
|
key: key
|
|
67509
66704
|
};
|
|
67510
|
-
|
|
66705
|
+
return [criterion];
|
|
67511
66706
|
};
|
|
67512
66707
|
var onEscClick = function onEscClick(e) {
|
|
67513
66708
|
if (e.keyCode === KEY_CODE.ESC) {
|
|
@@ -67519,6 +66714,9 @@ var Search = function Search(props) {
|
|
|
67519
66714
|
};
|
|
67520
66715
|
var onRemoveValue = function onRemoveValue(valueList) {
|
|
67521
66716
|
setSearchCriterionList(valueList);
|
|
66717
|
+
if (!valueList.length) {
|
|
66718
|
+
setState(CTRL.EMPTY);
|
|
66719
|
+
}
|
|
67522
66720
|
onSearch(CTRL.EMPTY, valueList);
|
|
67523
66721
|
};
|
|
67524
66722
|
var onCancel = function onCancel() {
|
|
@@ -67553,12 +66751,12 @@ var Search = function Search(props) {
|
|
|
67553
66751
|
onSubmit: onSearch,
|
|
67554
66752
|
onSearchClick: props.isMobileView || props.isMinifiedInput ? onSettingsClick : undefined,
|
|
67555
66753
|
onRemoveValue: onRemoveValue,
|
|
67556
|
-
onChange: onInputChange,
|
|
67557
66754
|
placeholder: inputPlaceholder,
|
|
67558
66755
|
onFocus: onFocusInput,
|
|
67559
66756
|
isActive: state || isShowDialog ? true : false,
|
|
67560
66757
|
isMobileView: props.isMobileView ? true : props.isMinifiedInput,
|
|
67561
|
-
className: styles$W['vitro-control']
|
|
66758
|
+
className: styles$W['vitro-control'],
|
|
66759
|
+
ref: searchInputRef
|
|
67562
66760
|
}, (state || isShowDialog) && React__default.createElement(ImageButton, {
|
|
67563
66761
|
onClick: onSettingsClick,
|
|
67564
66762
|
className: styles$W['vitro-button-settings'] + (isShowDialog ? CTRL.SPACE + styles$W[CSS_CLASS_ACTIVE$1] : CTRL.EMPTY)
|
|
@@ -67586,7 +66784,7 @@ var CSS_CLASS_SEARCH = 'vitro-search-wrap';
|
|
|
67586
66784
|
var CSS_CLASS_ISSUE_LIST = 'vitro-issue-list-wrap';
|
|
67587
66785
|
var EVENT_SEARCH_ISSUE_LIST = 'vitro.search.issue.list';
|
|
67588
66786
|
var ISSUE_ID_PREFIX = 'vitro-issue-tile-';
|
|
67589
|
-
var w$
|
|
66787
|
+
var w$5 = window;
|
|
67590
66788
|
var ViewerIssueList = function ViewerIssueList(props) {
|
|
67591
66789
|
var _useState = React.useState([]),
|
|
67592
66790
|
issueList = _useState[0],
|
|
@@ -67602,7 +66800,7 @@ var ViewerIssueList = function ViewerIssueList(props) {
|
|
|
67602
66800
|
window.addEventListener(exports.EVENT.ISSUE_LIST_REFRESH, onRefresh);
|
|
67603
66801
|
window.addEventListener(exports.EVENT.ISSUE_LIST_SELECT_ITEM, onSelectItemMarkup);
|
|
67604
66802
|
var criterionList = props.searchCriterionList ? getPredefinedSearchCriterionList(props.searchCriterionList) : [];
|
|
67605
|
-
w$
|
|
66803
|
+
w$5.searchCriterionList = criterionList;
|
|
67606
66804
|
props.getIssueList(criterionList).then(function (list) {
|
|
67607
66805
|
setIssueList(list);
|
|
67608
66806
|
});
|
|
@@ -67652,7 +66850,7 @@ var ViewerIssueList = function ViewerIssueList(props) {
|
|
|
67652
66850
|
var _e$detail;
|
|
67653
66851
|
var searchCriterionList = e === null || e === void 0 ? void 0 : (_e$detail = e.detail) === null || _e$detail === void 0 ? void 0 : _e$detail.searchCriterionList;
|
|
67654
66852
|
setSearchCriterionList(searchCriterionList);
|
|
67655
|
-
w$
|
|
66853
|
+
w$5.searchCriterionList = searchCriterionList;
|
|
67656
66854
|
props.getIssueList(searchCriterionList).then(function (list) {
|
|
67657
66855
|
setIssueList(list);
|
|
67658
66856
|
var event = new CustomEvent(EVENT_SEARCH_ISSUE_LIST, {
|
|
@@ -67702,7 +66900,7 @@ var ViewerIssueList = function ViewerIssueList(props) {
|
|
|
67702
66900
|
}))));
|
|
67703
66901
|
};
|
|
67704
66902
|
|
|
67705
|
-
var w$
|
|
66903
|
+
var w$6 = window;
|
|
67706
66904
|
var CSS_CLASS_SIDEBAR_CONTENT = 'body__sidebar-content';
|
|
67707
66905
|
var ID_VIEWER_CONTAINER = 'viewerContainer';
|
|
67708
66906
|
var ID_FILE_VERSION_SELECT = 'fileVersionSelect';
|
|
@@ -67715,12 +66913,12 @@ var Viewer = function Viewer(props) {
|
|
|
67715
66913
|
}, [props.context.file]);
|
|
67716
66914
|
var init = function init() {
|
|
67717
66915
|
var initViewer = function initViewer() {
|
|
67718
|
-
if (w$
|
|
66916
|
+
if (w$6.initPdfViewer) {
|
|
67719
66917
|
initSearchCriterionList();
|
|
67720
66918
|
var context = _extends({}, props.context, {
|
|
67721
66919
|
initIssueList: initIssueList
|
|
67722
66920
|
});
|
|
67723
|
-
w$
|
|
66921
|
+
w$6.initPdfViewer(context);
|
|
67724
66922
|
initFileVersionSelect();
|
|
67725
66923
|
} else {
|
|
67726
66924
|
setTimeout(initViewer, 100);
|
|
@@ -67746,7 +66944,7 @@ var Viewer = function Viewer(props) {
|
|
|
67746
66944
|
};
|
|
67747
66945
|
var initSearchCriterionList = function initSearchCriterionList() {
|
|
67748
66946
|
if (props.context.searchCriterionList) {
|
|
67749
|
-
w$
|
|
66947
|
+
w$6.searchCriterionList = getPredefinedSearchCriterionList(props.context.searchCriterionList);
|
|
67750
66948
|
}
|
|
67751
66949
|
};
|
|
67752
66950
|
var getPredefinedSearchCriterionList = function getPredefinedSearchCriterionList(searchCriterionList) {
|
|
@@ -67770,10 +66968,10 @@ var Viewer = function Viewer(props) {
|
|
|
67770
66968
|
var onIssueTileClick = function onIssueTileClick(issue) {
|
|
67771
66969
|
var id = issue.id;
|
|
67772
66970
|
var markup = JSON.parse(issue.markup);
|
|
67773
|
-
var numPages = w$
|
|
66971
|
+
var numPages = w$6.PDFViewerApplication.pagesCount;
|
|
67774
66972
|
if (markup && markup.pageNr <= numPages && markup.pageNr >= 1) {
|
|
67775
|
-
if (markup.pageNr != w$
|
|
67776
|
-
w$
|
|
66973
|
+
if (markup.pageNr != w$6.PDFViewerApplication.pdfViewer.currentPageNumber) {
|
|
66974
|
+
w$6.PDFViewerApplication.page = markup.pageNr;
|
|
67777
66975
|
}
|
|
67778
66976
|
if ($(CTRL.SHARP + id).length) {
|
|
67779
66977
|
scrollToMarkup(id);
|
|
@@ -67812,7 +67010,7 @@ var Viewer = function Viewer(props) {
|
|
|
67812
67010
|
};
|
|
67813
67011
|
|
|
67814
67012
|
var name = "@vitrosoftware/common-ui-ts";
|
|
67815
|
-
var version$1 = "1.1.
|
|
67013
|
+
var version$1 = "1.1.211";
|
|
67816
67014
|
var description = "vitro software common ui ts";
|
|
67817
67015
|
var author = "";
|
|
67818
67016
|
var license = "MIT";
|
|
@@ -68464,13 +67662,14 @@ var LoginKerberosForm = React.forwardRef(function (props, ref) {
|
|
|
68464
67662
|
|
|
68465
67663
|
var styles$18 = {"vitro-command-menu":"_command-menu_vitro-command-menu_l82vtIh"};
|
|
68466
67664
|
|
|
68467
|
-
var CommandMenu = function
|
|
67665
|
+
var CommandMenu = React.forwardRef(function (props, ref) {
|
|
68468
67666
|
return React__default.createElement("nav", {
|
|
67667
|
+
ref: ref,
|
|
68469
67668
|
className: styles$18['vitro-command-menu'] + CTRL.SPACE + 'navbar'
|
|
68470
67669
|
}, React__default.createElement("ul", {
|
|
68471
67670
|
className: 'nav'
|
|
68472
67671
|
}, props.children));
|
|
68473
|
-
};
|
|
67672
|
+
});
|
|
68474
67673
|
|
|
68475
67674
|
var styles$19 = {"vitro-command-menu-button":"_command-menu-button_vitro-command-menu-button_2IiXVbP","vitro-image":"_command-menu-button_vitro-image_27yILgG"};
|
|
68476
67675
|
|
|
@@ -68492,135 +67691,14 @@ var CommandMenuLookupPicker = function CommandMenuLookupPicker(props) {
|
|
|
68492
67691
|
})));
|
|
68493
67692
|
};
|
|
68494
67693
|
|
|
68495
|
-
var styles$1b = {"vitro-dropdown-button-container":"_command-menu-dropdown-button_vitro-dropdown-button-container_29qd-_O","vitro-command-menu-dropdown-button":"_command-menu-dropdown-button_vitro-command-menu-dropdown-button_2ImIuc3","vitro-right":"_command-menu-dropdown-button_vitro-right_uTzkzdJ","vitro-image":"_command-menu-dropdown-button_vitro-image_2VNGo-H","vitro-button-collapse-bottom":"_command-menu-dropdown-button_vitro-button-collapse-bottom_1OS_X_a","vitro-scrollbar":"_command-menu-dropdown-button_vitro-scrollbar_1J6dT6q"};
|
|
68496
|
-
|
|
68497
|
-
var CommandMenuSubItem = function CommandMenuSubItem(props) {
|
|
68498
|
-
var onClick = function onClick(e) {
|
|
68499
|
-
if (props.onClick) {
|
|
68500
|
-
props.onClick(e);
|
|
68501
|
-
} else if (props.href) {
|
|
68502
|
-
var event = new CustomEvent(exports.EVENT.HISTORY_UPDATE, {
|
|
68503
|
-
detail: {
|
|
68504
|
-
pathname: props.href
|
|
68505
|
-
}
|
|
68506
|
-
});
|
|
68507
|
-
window.dispatchEvent(event);
|
|
68508
|
-
}
|
|
68509
|
-
};
|
|
68510
|
-
return React__default.createElement(reactstrap.DropdownItem, {
|
|
68511
|
-
onClick: onClick,
|
|
68512
|
-
toggle: props.toggle === false ? false : true
|
|
68513
|
-
}, props.isShowImage && React__default.createElement("div", {
|
|
68514
|
-
className: styles$1b['vitro-image']
|
|
68515
|
-
}, props.imageUrl && React__default.createElement(Image, {
|
|
68516
|
-
defaultUrl: props.imageUrl,
|
|
68517
|
-
hoverUrl: props.imageHoverUrl
|
|
68518
|
-
})), React__default.createElement("span", null, props.text));
|
|
68519
|
-
};
|
|
68520
|
-
|
|
68521
|
-
var CommandMenuItemHeader = function CommandMenuItemHeader(props) {
|
|
68522
|
-
var _useState = React.useState(false),
|
|
68523
|
-
isHover = _useState[0],
|
|
68524
|
-
setIsHover = _useState[1];
|
|
68525
|
-
var ref = React.useRef(null);
|
|
68526
|
-
React.useEffect(function () {
|
|
68527
|
-
updateIsRight();
|
|
68528
|
-
}, [ref.current]);
|
|
68529
|
-
var updateIsRight = function updateIsRight() {
|
|
68530
|
-
var isRight = false;
|
|
68531
|
-
if (ref.current) {
|
|
68532
|
-
var windowWidth = window.innerWidth;
|
|
68533
|
-
var left = ref.current.getBoundingClientRect().left;
|
|
68534
|
-
if (left + 241 > windowWidth) {
|
|
68535
|
-
isRight = true;
|
|
68536
|
-
}
|
|
68537
|
-
}
|
|
68538
|
-
props.setIsRight(isRight);
|
|
68539
|
-
};
|
|
68540
|
-
return React__default.createElement("div", {
|
|
68541
|
-
ref: ref,
|
|
68542
|
-
onMouseEnter: function onMouseEnter() {
|
|
68543
|
-
return setIsHover(true);
|
|
68544
|
-
},
|
|
68545
|
-
onMouseLeave: function onMouseLeave() {
|
|
68546
|
-
return setIsHover(false);
|
|
68547
|
-
},
|
|
68548
|
-
className: itemStyles['vitro-item'] + CTRL.SPACE + styles$1b['vitro-command-menu-dropdown-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
68549
|
-
"data-show": props.isVisibleFunction
|
|
68550
|
-
}, props.imageUrl && React__default.createElement(Image, {
|
|
68551
|
-
isHover: isHover,
|
|
68552
|
-
defaultUrl: props.imageUrl,
|
|
68553
|
-
hoverUrl: props.imageHoverUrl,
|
|
68554
|
-
className: styles$1b['vitro-image']
|
|
68555
|
-
}), React__default.createElement("span", null, props.text), !props.isHideChevronDown && React__default.createElement("div", {
|
|
68556
|
-
className: styles$1b['vitro-button-collapse-bottom']
|
|
68557
|
-
}));
|
|
68558
|
-
};
|
|
68559
|
-
|
|
68560
67694
|
var CommandMenuDropdownButton = function CommandMenuDropdownButton(props) {
|
|
68561
|
-
|
|
68562
|
-
|
|
68563
|
-
|
|
68564
|
-
|
|
68565
|
-
var isShowImage = (_props$itemList = props.itemList) !== null && _props$itemList !== void 0 && _props$itemList.find(function (item) {
|
|
68566
|
-
return item.imageUrl;
|
|
68567
|
-
}) ? true : false;
|
|
68568
|
-
var contentRef = React.useRef(null);
|
|
68569
|
-
React.useEffect(function () {
|
|
68570
|
-
var observer = new IntersectionObserver(function (_ref) {
|
|
68571
|
-
var entry = _ref[0];
|
|
68572
|
-
if (contentRef.current && contentRef.current.parentElement && entry.isIntersecting) {
|
|
68573
|
-
contentRef.current.parentElement.scrollTop = 1;
|
|
68574
|
-
contentRef.current.parentElement.scrollTop = 0;
|
|
68575
|
-
}
|
|
68576
|
-
});
|
|
68577
|
-
if (contentRef.current) {
|
|
68578
|
-
observer.observe(contentRef.current);
|
|
68579
|
-
}
|
|
68580
|
-
return function () {
|
|
68581
|
-
observer.disconnect();
|
|
68582
|
-
};
|
|
68583
|
-
}, [contentRef]);
|
|
68584
|
-
var onClick = function onClick(e) {
|
|
68585
|
-
if (props.onClick) {
|
|
68586
|
-
props.onClick(e);
|
|
68587
|
-
} else {
|
|
68588
|
-
var event = new CustomEvent(exports.EVENT.COMMAND_MENU_TOGGLE, {
|
|
68589
|
-
detail: {
|
|
68590
|
-
isToggle: true
|
|
68591
|
-
}
|
|
68592
|
-
});
|
|
68593
|
-
window.dispatchEvent(event);
|
|
68594
|
-
}
|
|
68595
|
-
};
|
|
68596
|
-
return React__default.createElement(reactstrap.UncontrolledDropdown, {
|
|
68597
|
-
nav: true,
|
|
68598
|
-
inNavbar: true,
|
|
68599
|
-
className: styles$1b['vitro-dropdown-button-container'] + (isRight ? CTRL.SPACE + styles$1b['vitro-right'] : CTRL.EMPTY)
|
|
68600
|
-
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
68601
|
-
nav: true,
|
|
68602
|
-
caret: true,
|
|
68603
|
-
onClick: onClick
|
|
68604
|
-
}, React__default.createElement(CommandMenuItemHeader, Object.assign({}, props, {
|
|
68605
|
-
className: props.className,
|
|
68606
|
-
setIsRight: setIsRight
|
|
68607
|
-
}))), React__default.createElement(reactstrap.DropdownMenu, {
|
|
68608
|
-
container: 'body'
|
|
68609
|
-
}, React__default.createElement(ScrollBar, {
|
|
68610
|
-
className: styles$1b['vitro-scrollbar'],
|
|
68611
|
-
isHideScrollX: true,
|
|
68612
|
-
contentRef: contentRef
|
|
68613
|
-
}, props.itemList && props.itemList.map(function (i) {
|
|
68614
|
-
return React__default.createElement(CommandMenuSubItem, Object.assign({
|
|
68615
|
-
toggle: props.toggle,
|
|
68616
|
-
key: i.text
|
|
68617
|
-
}, i, {
|
|
68618
|
-
isShowImage: isShowImage
|
|
68619
|
-
}));
|
|
68620
|
-
}), props.children)));
|
|
67695
|
+
return React__default.createElement("li", null, React__default.createElement(DropdownButton, Object.assign({}, props, {
|
|
67696
|
+
isInNavbar: true,
|
|
67697
|
+
isNav: true
|
|
67698
|
+
}), props.children));
|
|
68621
67699
|
};
|
|
68622
67700
|
|
|
68623
|
-
var styles$
|
|
67701
|
+
var styles$1b = {"vitro-item":"_sidebar-item_vitro-item_1BR_7F0","vitro-image":"_sidebar-item_vitro-image_2A82YI0","vitro-item-text":"_sidebar-item_vitro-item-text_1kK_aIZ","vitro-active":"_sidebar-item_vitro-active_7p5iOhY","vitro-hover":"_sidebar-item_vitro-hover_1mECzme","vitro-group-item":"_sidebar-item_vitro-group-item_ZADCctV","vitro-item-list":"_sidebar-item_vitro-item-list_17dWov1","vitro-arrow":"_sidebar-item_vitro-arrow_NaAiOHu","vitro-expanded":"_sidebar-item_vitro-expanded_3qb1vOx","vitro-collapsed":"_sidebar-item_vitro-collapsed_2EhVmXL","vitro-display-none":"_sidebar-item_vitro-display-none_2WwKi5v","vitro-scrollbar":"_sidebar-item_vitro-scrollbar___xylIx","vitro-button-close":"_sidebar-item_vitro-button-close_2Kdf-ob","vitro-sidebar-group-slideup-panel":"_sidebar-item_vitro-sidebar-group-slideup-panel_15tkxuO"};
|
|
68624
67702
|
|
|
68625
67703
|
var Item$2 = function Item(props) {
|
|
68626
67704
|
var _useState = React.useState(false),
|
|
@@ -68657,10 +67735,10 @@ var Item$2 = function Item(props) {
|
|
|
68657
67735
|
defaultUrl: props.imageUrl,
|
|
68658
67736
|
hoverUrl: props.imageHoverUrl,
|
|
68659
67737
|
isHover: props.isHover,
|
|
68660
|
-
className: styles$
|
|
67738
|
+
className: styles$1b['vitro-image']
|
|
68661
67739
|
})), React__default.createElement("span", {
|
|
68662
67740
|
ref: textRef,
|
|
68663
|
-
className: styles$
|
|
67741
|
+
className: styles$1b['vitro-item-text'] + (!(props.isSidebarExpanded || props.isMobileView) ? CTRL.SPACE + styles$1b['vitro-display-none'] : CTRL.EMPTY)
|
|
68664
67742
|
}, props.text)));
|
|
68665
67743
|
};
|
|
68666
67744
|
|
|
@@ -68688,7 +67766,7 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
68688
67766
|
isHover = _useState[0],
|
|
68689
67767
|
setIsHover = _useState[1];
|
|
68690
67768
|
var isActive = !!props.link && (props.link === props.currentUrl && (!props.activeItem || props.activeItem === props.id) || props.altUrlList && props.altUrlList.includes(props.currentUrl));
|
|
68691
|
-
var className = isActive ? styles$
|
|
67769
|
+
var className = isActive ? styles$1b['vitro-active'] : isHover ? styles$1b['vitro-hover'] : CTRL.EMPTY;
|
|
68692
67770
|
var onClick = function onClick(e) {
|
|
68693
67771
|
if (!props.isDisabled) {
|
|
68694
67772
|
if (props.onClick) {
|
|
@@ -68713,7 +67791,7 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
68713
67791
|
style: {
|
|
68714
67792
|
width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO
|
|
68715
67793
|
},
|
|
68716
|
-
className: styles$
|
|
67794
|
+
className: styles$1b['vitro-item']
|
|
68717
67795
|
}, (props.link || props.onClick) && React__default.createElement("button", {
|
|
68718
67796
|
onMouseEnter: function onMouseEnter() {
|
|
68719
67797
|
return setIsHover(true);
|
|
@@ -68753,7 +67831,7 @@ var LinkItem$1 = function LinkItem(props) {
|
|
|
68753
67831
|
}))));
|
|
68754
67832
|
};
|
|
68755
67833
|
|
|
68756
|
-
var styles$
|
|
67834
|
+
var styles$1c = {"vitro-slide-up-panel":"_slide-up-panel_vitro-slide-up-panel_2EOSLHK","vitro-content":"_slide-up-panel_vitro-content_1er6bcv","vitro-expanded":"_slide-up-panel_vitro-expanded_2f2dYt6","vitro-button-close":"_slide-up-panel_vitro-button-close_2iM7SFL"};
|
|
68757
67835
|
|
|
68758
67836
|
var SlideUpPanel = function SlideUpPanel(props) {
|
|
68759
67837
|
var _useState = React.useState(props.isShow),
|
|
@@ -68829,13 +67907,13 @@ var SlideUpPanel = function SlideUpPanel(props) {
|
|
|
68829
67907
|
target: props.container,
|
|
68830
67908
|
placement: exports.PLACEMENT.TOP
|
|
68831
67909
|
}, React__default.createElement("div", {
|
|
68832
|
-
className: styles$
|
|
67910
|
+
className: styles$1c['vitro-slide-up-panel'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
68833
67911
|
}, React__default.createElement("div", {
|
|
68834
|
-
className: styles$
|
|
67912
|
+
className: styles$1c['vitro-content'] + (isExpanded ? CTRL.SPACE + styles$1c['vitro-expanded'] : CTRL.EMPTY),
|
|
68835
67913
|
ref: contentRef
|
|
68836
67914
|
}, React__default.createElement("button", {
|
|
68837
67915
|
ref: buttonRef,
|
|
68838
|
-
className: styles$
|
|
67916
|
+
className: styles$1c['vitro-button-close'],
|
|
68839
67917
|
onTouchStart: onTouchStart,
|
|
68840
67918
|
onTouchEnd: onTouchEnd,
|
|
68841
67919
|
onTouchMove: onTouchMove,
|
|
@@ -68925,7 +68003,7 @@ var GroupItem = function GroupItem(props) {
|
|
|
68925
68003
|
setIsHover(focus);
|
|
68926
68004
|
}
|
|
68927
68005
|
};
|
|
68928
|
-
var className = isActive ? styles$
|
|
68006
|
+
var className = isActive ? styles$1b['vitro-active'] : isHover ? styles$1b['vitro-hover'] : CTRL.EMPTY;
|
|
68929
68007
|
var content = React__default.createElement(React__default.Fragment, null, props.itemList && props.itemList.map(function (i) {
|
|
68930
68008
|
return i.link || i.onClick ? React__default.createElement(LinkItem$1, Object.assign({
|
|
68931
68009
|
link: i.link,
|
|
@@ -68960,7 +68038,7 @@ var GroupItem = function GroupItem(props) {
|
|
|
68960
68038
|
style: {
|
|
68961
68039
|
width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO$1
|
|
68962
68040
|
},
|
|
68963
|
-
className: styles$
|
|
68041
|
+
className: styles$1b['vitro-item'] + CTRL.SPACE + styles$1b['vitro-group-item']
|
|
68964
68042
|
}, React__default.createElement("button", {
|
|
68965
68043
|
onMouseEnter: function onMouseEnter() {
|
|
68966
68044
|
return _onFocus(true);
|
|
@@ -68979,18 +68057,18 @@ var GroupItem = function GroupItem(props) {
|
|
|
68979
68057
|
}, React__default.createElement(Item$2, Object.assign({}, props, {
|
|
68980
68058
|
isHover: isHover || isActive
|
|
68981
68059
|
})), props.isSidebarExpanded && !props.isMobileView && React__default.createElement("span", {
|
|
68982
|
-
className: isExpanded ? styles$
|
|
68060
|
+
className: isExpanded ? styles$1b['vitro-expanded'] : styles$1b['vitro-collapsed']
|
|
68983
68061
|
})), props.isMobileView ? React__default.createElement(SlideUpPanel, {
|
|
68984
68062
|
isShow: isExpanded,
|
|
68985
68063
|
container: props.container,
|
|
68986
68064
|
onClose: onCloseSlideUpPanel,
|
|
68987
|
-
className: styles$
|
|
68065
|
+
className: styles$1b[CSS_CLASS_SLIDE_UP_PANEL]
|
|
68988
68066
|
}, React__default.createElement(ScrollBar, {
|
|
68989
|
-
className: styles$
|
|
68067
|
+
className: styles$1b['vitro-scrollbar']
|
|
68990
68068
|
}, React__default.createElement("ul", {
|
|
68991
|
-
className: styles$
|
|
68069
|
+
className: styles$1b[CSS_CLASS_ITEM_LIST_MOBILE]
|
|
68992
68070
|
}, content))) : React__default.createElement("ul", {
|
|
68993
|
-
className: styles$
|
|
68071
|
+
className: styles$1b['vitro-item-list'] + CTRL.SPACE + (props.isSidebarExpanded ? !isExpanded ? styles$1b['vitro-display-none'] : CTRL.EMPTY : styles$1b['vitro-display-none'])
|
|
68994
68072
|
}, content)));
|
|
68995
68073
|
};
|
|
68996
68074
|
|
|
@@ -69029,7 +68107,7 @@ var CustomItem = function CustomItem(props) {
|
|
|
69029
68107
|
style: {
|
|
69030
68108
|
width: props.linkItemWidth ? props.linkItemWidth + UNIT.PX : WIDTH_AUTO$2
|
|
69031
68109
|
},
|
|
69032
|
-
className: styles$
|
|
68110
|
+
className: styles$1b['vitro-item']
|
|
69033
68111
|
}, React__default.createElement("button", {
|
|
69034
68112
|
onMouseEnter: function onMouseEnter() {
|
|
69035
68113
|
return setIsHover(true);
|
|
@@ -69045,11 +68123,11 @@ var CustomItem = function CustomItem(props) {
|
|
|
69045
68123
|
},
|
|
69046
68124
|
onClick: onClick,
|
|
69047
68125
|
onMouseDown: onMouseDown,
|
|
69048
|
-
className: isActive ? styles$
|
|
68126
|
+
className: isActive ? styles$1b['vitro-active'] : isHover ? styles$1b['vitro-hover'] : CTRL.EMPTY
|
|
69049
68127
|
}, React__default.createElement(Item$2, Object.assign({}, props, {
|
|
69050
68128
|
isHover: isHover || isActive
|
|
69051
68129
|
})), props.isSidebarExpanded && !props.isMobileView && React__default.createElement("span", {
|
|
69052
|
-
className: styles$
|
|
68130
|
+
className: styles$1b['vitro-arrow']
|
|
69053
68131
|
})));
|
|
69054
68132
|
};
|
|
69055
68133
|
|
|
@@ -69095,7 +68173,7 @@ var Section = function Section(props) {
|
|
|
69095
68173
|
})) : React__default.createElement(React__default.Fragment, null));
|
|
69096
68174
|
};
|
|
69097
68175
|
|
|
69098
|
-
var styles$
|
|
68176
|
+
var styles$1d = {"vitro-sidebar":"_sidebar_vitro-sidebar_1IxGYiU","vitro-scrollbar":"_sidebar_vitro-scrollbar_2PtQGQD","vitro-sidebar-section-list":"_sidebar_vitro-sidebar-section-list_1nGto5m","vitro-scroll-container":"_sidebar_vitro-scroll-container_3K-iJy8","vitro-button-more":"_sidebar_vitro-button-more_3s9oZY9","vitro-logo-container":"_sidebar_vitro-logo-container_31O5Ly-","vitro-logo":"_sidebar_vitro-logo_1qxi8L_","vitro-scroll-content":"_sidebar_vitro-scroll-content_2RUBhZd"};
|
|
69099
68177
|
|
|
69100
68178
|
var SectionList = React.forwardRef(function (props, ref) {
|
|
69101
68179
|
if (!props.itemList || props.itemList.length === 0) {
|
|
@@ -69103,7 +68181,7 @@ var SectionList = React.forwardRef(function (props, ref) {
|
|
|
69103
68181
|
}
|
|
69104
68182
|
return React__default.createElement("ul", {
|
|
69105
68183
|
ref: ref,
|
|
69106
|
-
className: styles$
|
|
68184
|
+
className: styles$1d['vitro-sidebar-section-list']
|
|
69107
68185
|
}, props.itemList.map(function (section) {
|
|
69108
68186
|
return React__default.createElement(Section, Object.assign({
|
|
69109
68187
|
isExpanded: props.isExpanded,
|
|
@@ -69199,12 +68277,12 @@ var Sidebar = function Sidebar(props) {
|
|
|
69199
68277
|
var width = containerWidth / count;
|
|
69200
68278
|
setLinkItemWidth(width);
|
|
69201
68279
|
};
|
|
69202
|
-
var className = styles$
|
|
68280
|
+
var className = styles$1d['vitro-sidebar'] + (props.theme ? CTRL.SPACE + props.theme : CTRL.EMPTY) + CTRL.SPACE + (isMobileView ? 'vitro-bottom-menu' : CTRL.EMPTY);
|
|
69203
68281
|
return React__default.createElement("div", {
|
|
69204
68282
|
className: className,
|
|
69205
68283
|
id: 'vitro-sidebar'
|
|
69206
68284
|
}, !isMobileView ? React__default.createElement(React__default.Fragment, null, React__default.createElement(ScrollBar, {
|
|
69207
|
-
className: styles$
|
|
68285
|
+
className: styles$1d['vitro-scrollbar']
|
|
69208
68286
|
}, React__default.createElement(SectionList, {
|
|
69209
68287
|
itemList: itemList,
|
|
69210
68288
|
currentUrl: currentUrl,
|
|
@@ -69222,18 +68300,18 @@ var Sidebar = function Sidebar(props) {
|
|
|
69222
68300
|
isMobileView: isMobileView,
|
|
69223
68301
|
isDisabled: props.isDisabled
|
|
69224
68302
|
})), React__default.createElement("div", {
|
|
69225
|
-
className: styles$
|
|
68303
|
+
className: styles$1d['vitro-logo-container']
|
|
69226
68304
|
}, React__default.createElement(Item$2, {
|
|
69227
68305
|
text: props.logoText,
|
|
69228
68306
|
imageUrl: props.logo,
|
|
69229
68307
|
isSidebarExpanded: !props.sidebar,
|
|
69230
68308
|
isMobileView: isMobileView,
|
|
69231
|
-
className: styles$
|
|
68309
|
+
className: styles$1d['vitro-logo']
|
|
69232
68310
|
}))) : React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
69233
|
-
className: styles$
|
|
68311
|
+
className: styles$1d['vitro-scroll-container'],
|
|
69234
68312
|
ref: menuRef
|
|
69235
68313
|
}, React__default.createElement("div", {
|
|
69236
|
-
className: styles$
|
|
68314
|
+
className: styles$1d['vitro-scroll-content'],
|
|
69237
68315
|
ref: scrollContentRef
|
|
69238
68316
|
}, React__default.createElement(SectionList, {
|
|
69239
68317
|
container: menuRef.current,
|
|
@@ -69252,36 +68330,35 @@ var Sidebar = function Sidebar(props) {
|
|
|
69252
68330
|
width: linkItemWidth,
|
|
69253
68331
|
isSidebarExpanded: !props.sidebar,
|
|
69254
68332
|
isMobileView: isMobileView,
|
|
69255
|
-
className: styles$
|
|
68333
|
+
className: styles$1d['vitro-logo']
|
|
69256
68334
|
}))), React__default.createElement("button", {
|
|
69257
68335
|
onClick: scroll,
|
|
69258
|
-
className: styles$
|
|
68336
|
+
className: styles$1d['vitro-button-more']
|
|
69259
68337
|
})));
|
|
69260
68338
|
};
|
|
69261
68339
|
|
|
69262
|
-
var styles$
|
|
68340
|
+
var styles$1e = {"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"};
|
|
69263
68341
|
|
|
69264
68342
|
var ActivityItem = function ActivityItem(props) {
|
|
69265
68343
|
return React__default.createElement("div", {
|
|
69266
|
-
className: styles$
|
|
68344
|
+
className: styles$1e['vitro-item'] + (props.isActive ? CTRL.SPACE + styles$1e['vitro-active'] : CTRL.EMPTY)
|
|
69267
68345
|
}, React__default.createElement("div", {
|
|
69268
|
-
className: styles$
|
|
68346
|
+
className: styles$1e['vitro-flex']
|
|
69269
68347
|
}, React__default.createElement(Avatar, {
|
|
69270
68348
|
userName: props.userName,
|
|
69271
68349
|
image: props.userImageUrl,
|
|
69272
|
-
className: styles$
|
|
68350
|
+
className: styles$1e['vitro-avatar']
|
|
69273
68351
|
}), React__default.createElement("div", {
|
|
69274
|
-
className: styles$
|
|
68352
|
+
className: styles$1e['vitro-content']
|
|
69275
68353
|
}, React__default.createElement("div", null, React__default.createElement("div", {
|
|
69276
|
-
className: styles$
|
|
68354
|
+
className: styles$1e['vitro-title']
|
|
69277
68355
|
}, React__default.createElement("span", null, props.title || props.userName), props.isShowDetail && React__default.createElement("span", {
|
|
69278
|
-
className: styles$
|
|
68356
|
+
className: styles$1e['vitro-due-date']
|
|
69279
68357
|
}, props.date), props.isShowDetail && props.dropdownItemList && props.dropdownItemList.length > 0 && React__default.createElement(DropdownButton, {
|
|
69280
68358
|
itemList: props.dropdownItemList,
|
|
69281
|
-
|
|
69282
|
-
className: styles$1f['vitro-dropdown-button']
|
|
68359
|
+
className: styles$1e['vitro-dropdown-button']
|
|
69283
68360
|
})), React__default.createElement("div", {
|
|
69284
|
-
className: styles$
|
|
68361
|
+
className: styles$1e['vitro-message'] + (props.variant ? CTRL.SPACE + props.variant : CTRL.EMPTY)
|
|
69285
68362
|
}, React__default.createElement("p", {
|
|
69286
68363
|
dangerouslySetInnerHTML: {
|
|
69287
68364
|
__html: props.message
|
|
@@ -69289,42 +68366,42 @@ var ActivityItem = function ActivityItem(props) {
|
|
|
69289
68366
|
}), props.children)))));
|
|
69290
68367
|
};
|
|
69291
68368
|
|
|
69292
|
-
var styles$
|
|
68369
|
+
var styles$1f = {"vitro-task-user-list":"_task-user-list_vitro-task-user-list_3GBJVjt"};
|
|
69293
68370
|
|
|
69294
68371
|
var TaskUserList = function TaskUserList(props) {
|
|
69295
68372
|
return React__default.createElement("div", {
|
|
69296
|
-
className: styles$
|
|
68373
|
+
className: styles$1f['vitro-task-user-list']
|
|
69297
68374
|
}, props.itemList && props.itemList.map(function (x) {
|
|
69298
68375
|
return React__default.createElement(ActivityItem, Object.assign({}, x));
|
|
69299
68376
|
}));
|
|
69300
68377
|
};
|
|
69301
68378
|
|
|
69302
|
-
var styles$
|
|
68379
|
+
var styles$1g = {"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"};
|
|
69303
68380
|
|
|
69304
68381
|
var TaskTile = function TaskTile(props) {
|
|
69305
68382
|
return React__default.createElement("div", {
|
|
69306
|
-
className: styles$
|
|
68383
|
+
className: styles$1g['vitro-task-tile'] + (props.isActive ? CTRL.SPACE + styles$1g['vitro-active'] : CTRL.EMPTY),
|
|
69307
68384
|
onClick: props.onClick
|
|
69308
68385
|
}, props.dropdownItemList && React__default.createElement("div", {
|
|
69309
|
-
className: styles$
|
|
68386
|
+
className: styles$1g['vitro-top-right']
|
|
69310
68387
|
}, React__default.createElement(DropdownButton, {
|
|
69311
68388
|
itemList: props.dropdownItemList,
|
|
69312
|
-
className: styles$
|
|
68389
|
+
className: styles$1g['vitro-dropdown-button']
|
|
69313
68390
|
})), props.isShowDeleteButton && React__default.createElement("div", {
|
|
69314
|
-
className: styles$
|
|
68391
|
+
className: styles$1g['vitro-button-cancel'],
|
|
69315
68392
|
onClick: props.onDeleteClick
|
|
69316
68393
|
}), props.description && React__default.createElement("div", {
|
|
69317
|
-
className: styles$
|
|
68394
|
+
className: styles$1g['vitro-description']
|
|
69318
68395
|
}, props.description), React__default.createElement("div", {
|
|
69319
|
-
className: styles$
|
|
68396
|
+
className: styles$1g['vitro-title']
|
|
69320
68397
|
}, props.title), props.comment && React__default.createElement("div", {
|
|
69321
|
-
className: styles$
|
|
68398
|
+
className: styles$1g['vitro-comment']
|
|
69322
68399
|
}, props.comment), React__default.createElement("div", {
|
|
69323
|
-
className: styles$
|
|
68400
|
+
className: styles$1g['vitro-content']
|
|
69324
68401
|
}, props.userList && React__default.createElement(TaskUserList, {
|
|
69325
68402
|
itemList: props.userList
|
|
69326
68403
|
})), React__default.createElement("div", {
|
|
69327
|
-
className: styles$
|
|
68404
|
+
className: styles$1g['vitro-bottom-right']
|
|
69328
68405
|
}, props.dateComment, " \xA0 ", props.date), props.children);
|
|
69329
68406
|
};
|
|
69330
68407
|
|
|
@@ -69340,7 +68417,7 @@ var AlertConstants = {
|
|
|
69340
68417
|
get TYPE () { return TYPE$2; }
|
|
69341
68418
|
};
|
|
69342
68419
|
|
|
69343
|
-
var styles$
|
|
68420
|
+
var styles$1h = {"vitro-alert":"_alert_vitro-alert_3sPAkJb","vitro-position-absolute":"_alert_vitro-position-absolute_2A33Lq4","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"};
|
|
69344
68421
|
|
|
69345
68422
|
var TYPE_DANGER = 'danger';
|
|
69346
68423
|
var Alert$1 = function Alert(props) {
|
|
@@ -69373,7 +68450,7 @@ var Alert$1 = function Alert(props) {
|
|
|
69373
68450
|
}
|
|
69374
68451
|
};
|
|
69375
68452
|
var actionList = props.actionList && React__default.createElement("div", {
|
|
69376
|
-
className: styles$
|
|
68453
|
+
className: styles$1h['vitro-alert-action-list']
|
|
69377
68454
|
}, props.actionList.map(function (a) {
|
|
69378
68455
|
return React__default.createElement(Button$1, {
|
|
69379
68456
|
key: a.text,
|
|
@@ -69382,7 +68459,7 @@ var Alert$1 = function Alert(props) {
|
|
|
69382
68459
|
}
|
|
69383
68460
|
}, a.text);
|
|
69384
68461
|
}));
|
|
69385
|
-
var className = [styles$
|
|
68462
|
+
var className = [styles$1h['vitro-alert'], props.isPositionCenter ? styles$1h['vitro-position-center'] : CTRL.EMPTY, props.isPositionAbsolute ? styles$1h['vitro-position-absolute'] : CTRL.EMPTY, props.className || CTRL.EMPTY].join(CTRL.SPACE);
|
|
69386
68463
|
return React__default.createElement("div", {
|
|
69387
68464
|
tabIndex: 1,
|
|
69388
68465
|
onBlur: onFocusOut,
|
|
@@ -69392,18 +68469,18 @@ var Alert$1 = function Alert(props) {
|
|
|
69392
68469
|
variant: props.type === TYPE$2.ERROR ? TYPE_DANGER : props.type,
|
|
69393
68470
|
onClose: props.onClose
|
|
69394
68471
|
}, React__default.createElement("div", {
|
|
69395
|
-
className: styles$
|
|
68472
|
+
className: styles$1h['vitro-alert-content']
|
|
69396
68473
|
}, React__default.createElement("div", {
|
|
69397
|
-
className: styles$
|
|
68474
|
+
className: styles$1h['vitro-icon']
|
|
69398
68475
|
}), React__default.createElement("div", {
|
|
69399
|
-
className: styles$
|
|
68476
|
+
className: styles$1h['vitro-text']
|
|
69400
68477
|
}, props.title && React__default.createElement("strong", null, props.title), props.text, !props.text && props.children), !props.isMultiline && actionList, props.isDismissible && React__default.createElement("div", {
|
|
69401
|
-
className: styles$
|
|
68478
|
+
className: styles$1h['vitro-button-close'],
|
|
69402
68479
|
onClick: onClose
|
|
69403
68480
|
})), props.text && props.children, props.isMultiline && actionList));
|
|
69404
68481
|
};
|
|
69405
68482
|
|
|
69406
|
-
var styles$
|
|
68483
|
+
var styles$1i = {"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"};
|
|
69407
68484
|
|
|
69408
68485
|
var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
69409
68486
|
var onClick = function onClick() {
|
|
@@ -69414,7 +68491,7 @@ var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
|
69414
68491
|
};
|
|
69415
68492
|
if (props.link) {
|
|
69416
68493
|
return React__default.createElement("div", {
|
|
69417
|
-
className: styles$
|
|
68494
|
+
className: styles$1i['vitro-dropdown-item'],
|
|
69418
68495
|
onClick: onClick
|
|
69419
68496
|
}, React__default.createElement("a", {
|
|
69420
68497
|
href: props.link
|
|
@@ -69425,7 +68502,7 @@ var UserProfileMenuItem = function UserProfileMenuItem(props) {
|
|
|
69425
68502
|
}
|
|
69426
68503
|
if (props.onClick) {
|
|
69427
68504
|
return React__default.createElement("div", {
|
|
69428
|
-
className: styles$
|
|
68505
|
+
className: styles$1i['vitro-dropdown-item'],
|
|
69429
68506
|
key: props.text,
|
|
69430
68507
|
onClick: onClick
|
|
69431
68508
|
}, props.imageUrl && React__default.createElement(Image, {
|
|
@@ -69459,15 +68536,15 @@ var UserProfile = function UserProfile(props) {
|
|
|
69459
68536
|
return React__default.createElement(reactstrap.Dropdown, {
|
|
69460
68537
|
isOpen: dropdownOpen,
|
|
69461
68538
|
toggle: toggle,
|
|
69462
|
-
className: styles$
|
|
68539
|
+
className: styles$1i['vitro-user-profile']
|
|
69463
68540
|
}, React__default.createElement(reactstrap.DropdownToggle, {
|
|
69464
68541
|
caret: true
|
|
69465
68542
|
}, React__default.createElement("div", null, React__default.createElement("span", {
|
|
69466
|
-
className: styles$
|
|
68543
|
+
className: styles$1i['vitro-text-color-white']
|
|
69467
68544
|
}, createSurnameWithInitials(props.userName)), React__default.createElement(Avatar, {
|
|
69468
68545
|
userName: props.userName,
|
|
69469
68546
|
image: props.image,
|
|
69470
|
-
className: styles$
|
|
68547
|
+
className: styles$1i['vitro-avatar']
|
|
69471
68548
|
}))), React__default.createElement(reactstrap.DropdownMenu, {
|
|
69472
68549
|
right: true
|
|
69473
68550
|
}, props.dropdownMenuItemList && props.dropdownMenuItemList.length > 0 && props.dropdownMenuItemList.map(function (item) {
|
|
@@ -69477,7 +68554,7 @@ var UserProfile = function UserProfile(props) {
|
|
|
69477
68554
|
})));
|
|
69478
68555
|
};
|
|
69479
68556
|
|
|
69480
|
-
var styles$
|
|
68557
|
+
var styles$1j = {"vitro-title":"_activity_vitro-title_1rdvvaa","vitro-dropdown-button":"_activity_vitro-dropdown-button_12258nJ","vitro-activity":"_activity_vitro-activity_1u7YeF3"};
|
|
69481
68558
|
|
|
69482
68559
|
var Activity = function Activity(props) {
|
|
69483
68560
|
var onDrop = function onDrop(e) {
|
|
@@ -69490,10 +68567,10 @@ var Activity = function Activity(props) {
|
|
|
69490
68567
|
className: 'vitro-activity',
|
|
69491
68568
|
onDrop: onDrop
|
|
69492
68569
|
}, (props.filterDropdownList || props.title) && React__default.createElement("div", {
|
|
69493
|
-
className: styles$
|
|
68570
|
+
className: styles$1j['vitro-title']
|
|
69494
68571
|
}, props.filterDropdownList && React__default.createElement(DropdownButton, {
|
|
69495
68572
|
itemList: props.filterDropdownList,
|
|
69496
|
-
className: styles$
|
|
68573
|
+
className: styles$1j['vitro-dropdown-button']
|
|
69497
68574
|
}), props.title && React__default.createElement("h3", null, props.title)), React__default.createElement("div", {
|
|
69498
68575
|
className: 'vitro-content'
|
|
69499
68576
|
}, props.children));
|
|
@@ -69510,8 +68587,8 @@ la$1);t$1[b]=new r$1(b,1,!1,a,null,!1,!1);});"xlink:actuate xlink:arcrole xlink:
|
|
|
69510
68587
|
t$1.xlinkHref=new r$1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(a){t$1[a]=new r$1(a,1,!1,a.toLowerCase(),null,!0,!0);});
|
|
69511
68588
|
var u={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,
|
|
69512
68589
|
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ma$1=["Webkit","ms","Moz","O"];Object.keys(u).forEach(function(a){ma$1.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);u[b]=u[a];});});var na=/["'&<>]/;
|
|
69513
|
-
function v$2(a){if("boolean"===typeof a||"number"===typeof a)return ""+a;a=""+a;var b=na.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b;}a=f!==d?c+a.substring(f,d):c;}return a}var oa$1=/([A-Z])/g,pa$1=/^ms-/,qa$1=Array.isArray;function w$
|
|
69514
|
-
function ra$1(a,b,c){switch(b){case "select":return w$
|
|
68590
|
+
function v$2(a){if("boolean"===typeof a||"number"===typeof a)return ""+a;a=""+a;var b=na.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b;}a=f!==d?c+a.substring(f,d):c;}return a}var oa$1=/([A-Z])/g,pa$1=/^ms-/,qa$1=Array.isArray;function w$7(a,b){return {insertionMode:a,selectedValue:b}}
|
|
68591
|
+
function ra$1(a,b,c){switch(b){case "select":return w$7(1,null!=c.value?c.value:c.defaultValue);case "svg":return w$7(2,null);case "math":return w$7(3,null);case "foreignObject":return w$7(1,null);case "table":return w$7(4,null);case "thead":case "tbody":case "tfoot":return w$7(5,null);case "colgroup":return w$7(7,null);case "tr":return w$7(6,null)}return 4<=a.insertionMode||0===a.insertionMode?w$7(1,null):a}var sa$1=new Map;
|
|
69515
68592
|
function ta$1(a,b,c){if("object"!==typeof c)throw Error(l$1(62));b=!0;for(var d in c)if(p$2.call(c,d)){var f=c[d];if(null!=f&&"boolean"!==typeof f&&""!==f){if(0===d.indexOf("--")){var e=v$2(d);f=v$2((""+f).trim());}else {e=d;var g=sa$1.get(e);void 0!==g?e=g:(g=v$2(e.replace(oa$1,"-$1").toLowerCase().replace(pa$1,"-ms-")),sa$1.set(e,g),e=g);f="number"===typeof f?0===f||p$2.call(u,d)?""+f:f+"px":v$2((""+f).trim());}b?(b=!1,a.push(' style="',e,":",f)):a.push(";",e,":",f);}}b||a.push('"');}
|
|
69516
68593
|
function x$1(a,b,c,d){switch(c){case "style":ta$1(a,b,d);return;case "defaultValue":case "defaultChecked":case "innerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":return}if(!(2<c.length)||"o"!==c[0]&&"O"!==c[0]||"n"!==c[1]&&"N"!==c[1])if(b=t$1.hasOwnProperty(c)?t$1[c]:null,null!==b){switch(typeof d){case "function":case "symbol":return;case "boolean":if(!b.acceptsBooleans)return}c=b.attributeName;switch(b.type){case 3:d&&a.push(" ",c,'=""');break;case 4:!0===d?a.push(" ",c,'=""'):
|
|
69517
68594
|
!1!==d&&a.push(" ",c,'="',v$2(d),'"');break;case 5:isNaN(d)||a.push(" ",c,'="',v$2(d),'"');break;case 6:!isNaN(d)&&1<=d&&a.push(" ",c,'="',v$2(d),'"');break;default:b.sanitizeURL&&(d=""+d),a.push(" ",c,'="',v$2(d),'"');}}else if(ja$1(c)){switch(typeof d){case "function":case "symbol":return;case "boolean":if(b=c.toLowerCase().slice(0,5),"data-"!==b&&"aria-"!==b)return}a.push(" ",c,'="',v$2(d),'"');}}
|
|
@@ -69593,7 +68670,7 @@ var reactDomServerLegacy_browser_production_min = {
|
|
|
69593
68670
|
};
|
|
69594
68671
|
|
|
69595
68672
|
function k$1(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l$2=null,n$1=0;
|
|
69596
|
-
function p$3(a,b){if(0!==b.length)if(512<b.length)0<n$1&&(a.enqueue(new Uint8Array(l$2.buffer,0,n$1)),l$2=new Uint8Array(512),n$1=0),a.enqueue(b);else {var c=l$2.length-n$1;c<b.length&&(0===c?a.enqueue(l$2):(l$2.set(b.subarray(0,c),n$1),a.enqueue(l$2),b=b.subarray(c)),l$2=new Uint8Array(512),n$1=0);l$2.set(b,n$1);n$1+=b.length;}}function t$2(a,b){p$3(a,b);return !0}function ba(a){l$2&&0<n$1&&(a.enqueue(new Uint8Array(l$2.buffer,0,n$1)),l$2=null,n$1=0);}var ca=new TextEncoder;function u$1(a){return ca.encode(a)}function w$
|
|
68673
|
+
function p$3(a,b){if(0!==b.length)if(512<b.length)0<n$1&&(a.enqueue(new Uint8Array(l$2.buffer,0,n$1)),l$2=new Uint8Array(512),n$1=0),a.enqueue(b);else {var c=l$2.length-n$1;c<b.length&&(0===c?a.enqueue(l$2):(l$2.set(b.subarray(0,c),n$1),a.enqueue(l$2),b=b.subarray(c)),l$2=new Uint8Array(512),n$1=0);l$2.set(b,n$1);n$1+=b.length;}}function t$2(a,b){p$3(a,b);return !0}function ba(a){l$2&&0<n$1&&(a.enqueue(new Uint8Array(l$2.buffer,0,n$1)),l$2=null,n$1=0);}var ca=new TextEncoder;function u$1(a){return ca.encode(a)}function w$8(a){return ca.encode(a)}
|
|
69597
68674
|
function da$1(a,b){"function"===typeof a.error?a.error(b):a.close();}var x$2=Object.prototype.hasOwnProperty,ea$1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fa$2={},ha$2={};
|
|
69598
68675
|
function ia$2(a){if(x$2.call(ha$2,a))return !0;if(x$2.call(fa$2,a))return !1;if(ea$1.test(a))return ha$2[a]=!0;fa$2[a]=!0;return !1}function y$2(a,b,c,d,f,e,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=f;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=e;this.removeEmptyString=g;}var z$2={};
|
|
69599
68676
|
"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){z$2[a]=new y$2(a,0,!1,a,null,!1,!1);});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];z$2[b]=new y$2(b,1,!1,a[1],null,!1,!1);});["contentEditable","draggable","spellCheck","value"].forEach(function(a){z$2[a]=new y$2(a,2,!1,a.toLowerCase(),null,!1,!1);});
|
|
@@ -69605,17 +68682,17 @@ z$2.xlinkHref=new y$2("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlin
|
|
|
69605
68682
|
var B$2={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,
|
|
69606
68683
|
fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},la$2=["Webkit","ms","Moz","O"];Object.keys(B$2).forEach(function(a){la$2.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);B$2[b]=B$2[a];});});var oa$2=/["'&<>]/;
|
|
69607
68684
|
function C$1(a){if("boolean"===typeof a||"number"===typeof a)return ""+a;a=""+a;var b=oa$2.exec(a);if(b){var c="",d,f=0;for(d=b.index;d<a.length;d++){switch(a.charCodeAt(d)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==d&&(c+=a.substring(f,d));f=d+1;c+=b;}a=f!==d?c+a.substring(f,d):c;}return a}
|
|
69608
|
-
var pa$2=/([A-Z])/g,qa$2=/^ms-/,ra$2=Array.isArray,sa$2=w$
|
|
69609
|
-
function za$2(a,b,c,d,f){a=void 0===a?"":a;b=void 0===b?sa$2:w$
|
|
68685
|
+
var pa$2=/([A-Z])/g,qa$2=/^ms-/,ra$2=Array.isArray,sa$2=w$8("<script>"),ta$2=w$8("\x3c/script>"),ua$2=w$8('<script src="'),va$2=w$8('<script type="module" src="'),wa$2=w$8('" async="">\x3c/script>'),xa$1=/(<\/|<)(s)(cript)/gi;function ya$2(a,b,c,d){return ""+b+("s"===c?"\\u0073":"\\u0053")+d}
|
|
68686
|
+
function za$2(a,b,c,d,f){a=void 0===a?"":a;b=void 0===b?sa$2:w$8('<script nonce="'+C$1(b)+'">');var e=[];void 0!==c&&e.push(b,u$1((""+c).replace(xa$1,ya$2)),ta$2);if(void 0!==d)for(c=0;c<d.length;c++)e.push(ua$2,u$1(C$1(d[c])),wa$2);if(void 0!==f)for(d=0;d<f.length;d++)e.push(va$2,u$1(C$1(f[d])),wa$2);return {bootstrapChunks:e,startInlineScript:b,placeholderPrefix:w$8(a+"P:"),segmentPrefix:w$8(a+"S:"),boundaryPrefix:a+"B:",idPrefix:a,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}
|
|
69610
68687
|
function D$1(a,b){return {insertionMode:a,selectedValue:b}}function Aa$2(a){return D$1("http://www.w3.org/2000/svg"===a?2:"http://www.w3.org/1998/Math/MathML"===a?3:0,null)}
|
|
69611
|
-
function Ba$2(a,b,c){switch(b){case "select":return D$1(1,null!=c.value?c.value:c.defaultValue);case "svg":return D$1(2,null);case "math":return D$1(3,null);case "foreignObject":return D$1(1,null);case "table":return D$1(4,null);case "thead":case "tbody":case "tfoot":return D$1(5,null);case "colgroup":return D$1(7,null);case "tr":return D$1(6,null)}return 4<=a.insertionMode||0===a.insertionMode?D$1(1,null):a}var Ca$2=w$
|
|
69612
|
-
var Ea$2=new Map,Fa$2=w$
|
|
69613
|
-
function Ia$2(a,b,c){if("object"!==typeof c)throw Error(k$1(62));b=!0;for(var d in c)if(x$2.call(c,d)){var f=c[d];if(null!=f&&"boolean"!==typeof f&&""!==f){if(0===d.indexOf("--")){var e=u$1(C$1(d));f=u$1(C$1((""+f).trim()));}else {e=d;var g=Ea$2.get(e);void 0!==g?e=g:(g=w$
|
|
69614
|
-
var H$2=w$
|
|
68688
|
+
function Ba$2(a,b,c){switch(b){case "select":return D$1(1,null!=c.value?c.value:c.defaultValue);case "svg":return D$1(2,null);case "math":return D$1(3,null);case "foreignObject":return D$1(1,null);case "table":return D$1(4,null);case "thead":case "tbody":case "tfoot":return D$1(5,null);case "colgroup":return D$1(7,null);case "tr":return D$1(6,null)}return 4<=a.insertionMode||0===a.insertionMode?D$1(1,null):a}var Ca$2=w$8("\x3c!-- --\x3e");function Da$2(a,b,c,d){if(""===b)return d;d&&a.push(Ca$2);a.push(u$1(C$1(b)));return !0}
|
|
68689
|
+
var Ea$2=new Map,Fa$2=w$8(' style="'),Ga$2=w$8(":"),Ha$2=w$8(";");
|
|
68690
|
+
function Ia$2(a,b,c){if("object"!==typeof c)throw Error(k$1(62));b=!0;for(var d in c)if(x$2.call(c,d)){var f=c[d];if(null!=f&&"boolean"!==typeof f&&""!==f){if(0===d.indexOf("--")){var e=u$1(C$1(d));f=u$1(C$1((""+f).trim()));}else {e=d;var g=Ea$2.get(e);void 0!==g?e=g:(g=w$8(C$1(e.replace(pa$2,"-$1").toLowerCase().replace(qa$2,"-ms-"))),Ea$2.set(e,g),e=g);f="number"===typeof f?0===f||x$2.call(B$2,d)?u$1(""+f):u$1(f+"px"):u$1(C$1((""+f).trim()));}b?(b=!1,a.push(Fa$2,e,Ga$2,f)):a.push(Ha$2,e,Ga$2,f);}}b||a.push(E$2);}
|
|
68691
|
+
var H$2=w$8(" "),I$2=w$8('="'),E$2=w$8('"'),Ja$2=w$8('=""');
|
|
69615
68692
|
function J$1(a,b,c,d){switch(c){case "style":Ia$2(a,b,d);return;case "defaultValue":case "defaultChecked":case "innerHTML":case "suppressContentEditableWarning":case "suppressHydrationWarning":return}if(!(2<c.length)||"o"!==c[0]&&"O"!==c[0]||"n"!==c[1]&&"N"!==c[1])if(b=z$2.hasOwnProperty(c)?z$2[c]:null,null!==b){switch(typeof d){case "function":case "symbol":return;case "boolean":if(!b.acceptsBooleans)return}c=u$1(b.attributeName);switch(b.type){case 3:d&&a.push(H$2,c,Ja$2);break;case 4:!0===d?a.push(H$2,c,Ja$2):!1!==
|
|
69616
|
-
d&&a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;case 5:isNaN(d)||a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;case 6:!isNaN(d)&&1<=d&&a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;default:b.sanitizeURL&&(d=""+d),a.push(H$2,c,I$2,u$1(C$1(d)),E$2);}}else if(ia$2(c)){switch(typeof d){case "function":case "symbol":return;case "boolean":if(b=c.toLowerCase().slice(0,5),"data-"!==b&&"aria-"!==b)return}a.push(H$2,u$1(c),I$2,u$1(C$1(d)),E$2);}}var K$2=w$
|
|
69617
|
-
function L$2(a,b,c){if(null!=b){if(null!=c)throw Error(k$1(60));if("object"!==typeof b||!("__html"in b))throw Error(k$1(61));b=b.__html;null!==b&&void 0!==b&&a.push(u$1(""+b));}}function La$2(a){var b="";React__default.Children.forEach(a,function(a){null!=a&&(b+=a);});return b}var Ma$2=w$
|
|
69618
|
-
function Na$2(a,b,c,d){a.push(M$2(c));var f=c=null,e;for(e in b)if(x$2.call(b,e)){var g=b[e];if(null!=g)switch(e){case "children":c=g;break;case "dangerouslySetInnerHTML":f=g;break;default:J$1(a,d,e,g);}}a.push(K$2);L$2(a,f,c);return "string"===typeof c?(a.push(u$1(C$1(c))),null):c}var Oa$2=w$
|
|
68693
|
+
d&&a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;case 5:isNaN(d)||a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;case 6:!isNaN(d)&&1<=d&&a.push(H$2,c,I$2,u$1(C$1(d)),E$2);break;default:b.sanitizeURL&&(d=""+d),a.push(H$2,c,I$2,u$1(C$1(d)),E$2);}}else if(ia$2(c)){switch(typeof d){case "function":case "symbol":return;case "boolean":if(b=c.toLowerCase().slice(0,5),"data-"!==b&&"aria-"!==b)return}a.push(H$2,u$1(c),I$2,u$1(C$1(d)),E$2);}}var K$2=w$8(">"),Ka$2=w$8("/>");
|
|
68694
|
+
function L$2(a,b,c){if(null!=b){if(null!=c)throw Error(k$1(60));if("object"!==typeof b||!("__html"in b))throw Error(k$1(61));b=b.__html;null!==b&&void 0!==b&&a.push(u$1(""+b));}}function La$2(a){var b="";React__default.Children.forEach(a,function(a){null!=a&&(b+=a);});return b}var Ma$2=w$8(' selected=""');
|
|
68695
|
+
function Na$2(a,b,c,d){a.push(M$2(c));var f=c=null,e;for(e in b)if(x$2.call(b,e)){var g=b[e];if(null!=g)switch(e){case "children":c=g;break;case "dangerouslySetInnerHTML":f=g;break;default:J$1(a,d,e,g);}}a.push(K$2);L$2(a,f,c);return "string"===typeof c?(a.push(u$1(C$1(c))),null):c}var Oa$2=w$8("\n"),Pa$2=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Qa$2=new Map;function M$2(a){var b=Qa$2.get(a);if(void 0===b){if(!Pa$2.test(a))throw Error(k$1(65,a));b=w$8("<"+a);Qa$2.set(a,b);}return b}var Ra$2=w$8("<!DOCTYPE html>");
|
|
69619
68696
|
function Sa$2(a,b,c,d,f){switch(b){case "select":a.push(M$2("select"));var e=null,g=null;for(r in c)if(x$2.call(c,r)){var h=c[r];if(null!=h)switch(r){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;case "defaultValue":case "value":break;default:J$1(a,d,r,h);}}a.push(K$2);L$2(a,g,e);return e;case "option":g=f.selectedValue;a.push(M$2("option"));var m=h=null,q=null;var r=null;for(e in c)if(x$2.call(c,e)){var v=c[e];if(null!=v)switch(e){case "children":h=v;break;case "selected":q=v;break;case "dangerouslySetInnerHTML":r=
|
|
69620
68697
|
v;break;case "value":m=v;default:J$1(a,d,e,v);}}if(null!=g)if(c=null!==m?""+m:La$2(h),ra$2(g))for(d=0;d<g.length;d++){if(""+g[d]===c){a.push(Ma$2);break}}else ""+g===c&&a.push(Ma$2);else q&&a.push(Ma$2);a.push(K$2);L$2(a,r,h);return h;case "textarea":a.push(M$2("textarea"));r=g=e=null;for(h in c)if(x$2.call(c,h)&&(m=c[h],null!=m))switch(h){case "children":r=m;break;case "value":e=m;break;case "defaultValue":g=m;break;case "dangerouslySetInnerHTML":throw Error(k$1(91));default:J$1(a,d,h,m);}null===e&&null!==g&&(e=g);a.push(K$2);
|
|
69621
68698
|
if(null!=r){if(null!=e)throw Error(k$1(92));if(ra$2(r)&&1<r.length)throw Error(k$1(93));e=""+r;}"string"===typeof e&&"\n"===e[0]&&a.push(Oa$2);null!==e&&a.push(u$1(C$1(""+e)));return null;case "input":a.push(M$2("input"));m=r=h=e=null;for(g in c)if(x$2.call(c,g)&&(q=c[g],null!=q))switch(g){case "children":case "dangerouslySetInnerHTML":throw Error(k$1(399,"input"));case "defaultChecked":m=q;break;case "defaultValue":h=q;break;case "checked":r=q;break;case "value":e=q;break;default:J$1(a,d,g,q);}null!==r?J$1(a,d,"checked",
|
|
@@ -69623,12 +68700,12 @@ r):null!==m&&J$1(a,d,"checked",m);null!==e?J$1(a,d,"value",e):null!==h&&J$1(a,d,
|
|
|
69623
68700
|
return e;case "listing":case "pre":a.push(M$2(b));g=e=null;for(m in c)if(x$2.call(c,m)&&(h=c[m],null!=h))switch(m){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;default:J$1(a,d,m,h);}a.push(K$2);if(null!=g){if(null!=e)throw Error(k$1(60));if("object"!==typeof g||!("__html"in g))throw Error(k$1(61));c=g.__html;null!==c&&void 0!==c&&("string"===typeof c&&0<c.length&&"\n"===c[0]?a.push(Oa$2,u$1(c)):a.push(u$1(""+c)));}"string"===typeof e&&"\n"===e[0]&&a.push(Oa$2);return e;case "area":case "base":case "br":case "col":case "embed":case "hr":case "img":case "keygen":case "link":case "meta":case "param":case "source":case "track":case "wbr":a.push(M$2(b));
|
|
69624
68701
|
for(var F in c)if(x$2.call(c,F)&&(e=c[F],null!=e))switch(F){case "children":case "dangerouslySetInnerHTML":throw Error(k$1(399,b));default:J$1(a,d,F,e);}a.push(Ka$2);return null;case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":return Na$2(a,c,b,d);case "html":return 0===f.insertionMode&&a.push(Ra$2),Na$2(a,c,b,d);default:if(-1===b.indexOf("-")&&"string"!==typeof c.is)return Na$2(a,c,b,d);a.push(M$2(b));
|
|
69625
68702
|
g=e=null;for(q in c)if(x$2.call(c,q)&&(h=c[q],null!=h))switch(q){case "children":e=h;break;case "dangerouslySetInnerHTML":g=h;break;case "style":Ia$2(a,d,h);break;case "suppressContentEditableWarning":case "suppressHydrationWarning":break;default:ia$2(q)&&"function"!==typeof h&&"symbol"!==typeof h&&a.push(H$2,u$1(q),I$2,u$1(C$1(h)),E$2);}a.push(K$2);L$2(a,g,e);return e}}
|
|
69626
|
-
var Ta$2=w$
|
|
69627
|
-
var gb$2=w$
|
|
68703
|
+
var Ta$2=w$8("</"),Ua$2=w$8(">"),Va$2=w$8('<template id="'),Wa$2=w$8('"></template>'),Xa$2=w$8("\x3c!--$--\x3e"),Ya$2=w$8('\x3c!--$?--\x3e<template id="'),Za$2=w$8('"></template>'),$a$1=w$8("\x3c!--$!--\x3e"),ab$2=w$8("\x3c!--/$--\x3e"),bb$2=w$8("<template"),cb$2=w$8('"'),db$2=w$8(' data-dgst="');w$8(' data-msg="');w$8(' data-stck="');var eb$2=w$8("></template>");function fb$2(a,b,c){p$3(a,Ya$2);if(null===c)throw Error(k$1(395));p$3(a,c);return t$2(a,Za$2)}
|
|
68704
|
+
var gb$2=w$8('<div hidden id="'),hb$2=w$8('">'),ib$2=w$8("</div>"),jb$2=w$8('<svg aria-hidden="true" style="display:none" id="'),kb$2=w$8('">'),lb$2=w$8("</svg>"),mb$1=w$8('<math aria-hidden="true" style="display:none" id="'),nb$1=w$8('">'),ob$2=w$8("</math>"),pb$2=w$8('<table hidden id="'),qb$2=w$8('">'),rb$2=w$8("</table>"),sb$2=w$8('<table hidden><tbody id="'),tb$2=w$8('">'),ub$2=w$8("</tbody></table>"),vb$2=w$8('<table hidden><tr id="'),wb$2=w$8('">'),xb$2=w$8("</tr></table>"),yb$2=w$8('<table hidden><colgroup id="'),zb$2=w$8('">'),Ab$2=w$8("</colgroup></table>");
|
|
69628
68705
|
function Bb$2(a,b,c,d){switch(c.insertionMode){case 0:case 1:return p$3(a,gb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,hb$2);case 2:return p$3(a,jb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,kb$2);case 3:return p$3(a,mb$1),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,nb$1);case 4:return p$3(a,pb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,qb$2);case 5:return p$3(a,sb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,tb$2);case 6:return p$3(a,vb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,wb$2);case 7:return p$3(a,
|
|
69629
68706
|
yb$2),p$3(a,b.segmentPrefix),p$3(a,u$1(d.toString(16))),t$2(a,zb$2);default:throw Error(k$1(397));}}function Cb$2(a,b){switch(b.insertionMode){case 0:case 1:return t$2(a,ib$2);case 2:return t$2(a,lb$2);case 3:return t$2(a,ob$2);case 4:return t$2(a,rb$2);case 5:return t$2(a,ub$2);case 6:return t$2(a,xb$2);case 7:return t$2(a,Ab$2);default:throw Error(k$1(397));}}
|
|
69630
|
-
var Db$2=w$
|
|
69631
|
-
Jb$2=w$
|
|
68707
|
+
var Db$2=w$8('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),Eb$2=w$8('$RS("'),Gb$2=w$8('","'),Hb$2=w$8('")\x3c/script>'),Ib$2=w$8('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),
|
|
68708
|
+
Jb$2=w$8('$RC("'),Kb$2=w$8('","'),Lb$2=w$8('")\x3c/script>'),Mb$2=w$8('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Nb$2=w$8('$RX("'),Ob$2=w$8('"'),Pb$2=w$8(")\x3c/script>"),Qb$2=w$8(","),Rb$2=/[<\u2028\u2029]/g;
|
|
69632
68709
|
function Sb$2(a){return JSON.stringify(a).replace(Rb$2,function(a){switch(a){case "<":return "\\u003c";case "\u2028":return "\\u2028";case "\u2029":return "\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React");}})}
|
|
69633
68710
|
var N$2=Object.assign,Tb$2=Symbol.for("react.element"),Ub$1=Symbol.for("react.portal"),Vb$1=Symbol.for("react.fragment"),Wb$1=Symbol.for("react.strict_mode"),Xb$1=Symbol.for("react.profiler"),Yb$1=Symbol.for("react.provider"),Zb$1=Symbol.for("react.context"),$b$1=Symbol.for("react.forward_ref"),ac$1=Symbol.for("react.suspense"),bc$1=Symbol.for("react.suspense_list"),cc$1=Symbol.for("react.memo"),dc$1=Symbol.for("react.lazy"),ec$1=Symbol.for("react.scope"),fc$1=Symbol.for("react.debug_trace_mode"),gc$1=Symbol.for("react.legacy_hidden"),
|
|
69634
68711
|
hc$1=Symbol.for("react.default_value"),ic$1=Symbol.iterator;
|
|
@@ -69669,7 +68746,7 @@ b.parentFlushed&&a.partialBoundaries.push(b)));a.allPendingTasks--;0===a.allPend
|
|
|
69669
68746
|
function Uc$1(a){if(2!==a.status){var b=O$2,c=Pc$1.current;Pc$1.current=Oc$1;var d=Nc$1;Nc$1=a.responseState;try{var f=a.pingedTasks,e;for(e=0;e<f.length;e++){var g=f[e];var h=a,m=g.blockedSegment;if(0===m.status){Q$2(g.context);try{Z$2(h,g,g.node),m.lastPushedText&&m.textEmbedded&&m.chunks.push(Ca$2),g.abortSet.delete(g),m.status=1,dd$1(h,g.blockedBoundary,m);}catch(G){if(Gc$1(),"object"===typeof G&&null!==G&&"function"===typeof G.then){var q=g.ping;G.then(q,q);}else {g.abortSet.delete(g);m.status=4;var r=g.blockedBoundary,
|
|
69670
68747
|
v=G,A=Y$2(h,v);null===r?Vc$1(h,v):(r.pendingTasks--,r.forceClientRender||(r.forceClientRender=!0,r.errorDigest=A,r.parentFlushed&&h.clientRenderedBoundaries.push(r)));h.allPendingTasks--;if(0===h.allPendingTasks){var F=h.onAllReady;F();}}}finally{}}}f.splice(0,e);null!==a.destination&&fd$1(a,a.destination);}catch(G){Y$2(a,G),Vc$1(a,G);}finally{Nc$1=d,Pc$1.current=c,c===Oc$1&&Q$2(b);}}}
|
|
69671
68748
|
function gd$1(a,b,c){c.parentFlushed=!0;switch(c.status){case 0:var d=c.id=a.nextSegmentId++;c.lastPushedText=!1;c.textEmbedded=!1;a=a.responseState;p$3(b,Va$2);p$3(b,a.placeholderPrefix);a=u$1(d.toString(16));p$3(b,a);return t$2(b,Wa$2);case 1:c.status=2;var f=!0;d=c.chunks;var e=0;c=c.children;for(var g=0;g<c.length;g++){for(f=c[g];e<f.index;e++)p$3(b,d[e]);f=hd$1(a,b,f);}for(;e<d.length-1;e++)p$3(b,d[e]);e<d.length&&(f=t$2(b,d[e]));return f;default:throw Error(k$1(390));}}
|
|
69672
|
-
function hd$1(a,b,c){var d=c.boundary;if(null===d)return gd$1(a,b,c);d.parentFlushed=!0;if(d.forceClientRender)d=d.errorDigest,t$2(b,$a$1),p$3(b,bb$2),d&&(p$3(b,db$2),p$3(b,u$1(C$1(d))),p$3(b,cb$2)),t$2(b,eb$2),gd$1(a,b,c);else if(0<d.pendingTasks){d.rootSegmentID=a.nextSegmentId++;0<d.completedSegments.length&&a.partialBoundaries.push(d);var f=a.responseState;var e=f.nextSuspenseID++;f=w$
|
|
68749
|
+
function hd$1(a,b,c){var d=c.boundary;if(null===d)return gd$1(a,b,c);d.parentFlushed=!0;if(d.forceClientRender)d=d.errorDigest,t$2(b,$a$1),p$3(b,bb$2),d&&(p$3(b,db$2),p$3(b,u$1(C$1(d))),p$3(b,cb$2)),t$2(b,eb$2),gd$1(a,b,c);else if(0<d.pendingTasks){d.rootSegmentID=a.nextSegmentId++;0<d.completedSegments.length&&a.partialBoundaries.push(d);var f=a.responseState;var e=f.nextSuspenseID++;f=w$8(f.boundaryPrefix+e.toString(16));d=d.id=f;fb$2(b,a.responseState,d);gd$1(a,b,c);}else if(d.byteSize>a.progressiveChunkSize)d.rootSegmentID=a.nextSegmentId++,
|
|
69673
68750
|
a.completedBoundaries.push(d),fb$2(b,a.responseState,d.id),gd$1(a,b,c);else {t$2(b,Xa$2);c=d.completedSegments;if(1!==c.length)throw Error(k$1(391));hd$1(a,b,c[0]);}return t$2(b,ab$2)}function id$1(a,b,c){Bb$2(b,a.responseState,c.formatContext,c.id);hd$1(a,b,c);return Cb$2(b,c.formatContext)}
|
|
69674
68751
|
function jd$1(a,b,c){for(var d=c.completedSegments,f=0;f<d.length;f++)kd$1(a,b,c,d[f]);d.length=0;a=a.responseState;d=c.id;c=c.rootSegmentID;p$3(b,a.startInlineScript);a.sentCompleteBoundaryFunction?p$3(b,Jb$2):(a.sentCompleteBoundaryFunction=!0,p$3(b,Ib$2));if(null===d)throw Error(k$1(395));c=u$1(c.toString(16));p$3(b,d);p$3(b,Kb$2);p$3(b,a.segmentPrefix);p$3(b,c);return t$2(b,Lb$2)}
|
|
69675
68752
|
function kd$1(a,b,c,d){if(2===d.status)return !0;var f=d.id;if(-1===f){if(-1===(d.id=c.rootSegmentID))throw Error(k$1(392));return id$1(a,b,d)}id$1(a,b,d);a=a.responseState;p$3(b,a.startInlineScript);a.sentCompleteSegmentFunction?p$3(b,Eb$2):(a.sentCompleteSegmentFunction=!0,p$3(b,Db$2));p$3(b,a.segmentPrefix);f=u$1(f.toString(16));p$3(b,f);p$3(b,Gb$2);p$3(b,a.placeholderPrefix);p$3(b,f);return t$2(b,Hb$2)}
|
|
@@ -83713,7 +82790,7 @@ var server_browser = {
|
|
|
83713
82790
|
renderToReadableStream: renderToReadableStream$1
|
|
83714
82791
|
};
|
|
83715
82792
|
|
|
83716
|
-
var styles$
|
|
82793
|
+
var styles$1k = {"vitro-file":"_file_vitro-file_2xkXgkS","vitro-preview":"_file_vitro-preview_2RVdrbm","vitro-preview-container":"_file_vitro-preview-container_2dmbDD7","vitro-flex":"_file_vitro-flex_3nGTlWX","vitro-image":"_file_vitro-image_2Bt3otk","vitro-file-name":"_file_vitro-file-name_2t9Y643","vitro-file-size":"_file_vitro-file-size_15f_E_0","vitro-dropdown-button":"_file_vitro-dropdown-button_3MgI2n9"};
|
|
83717
82794
|
|
|
83718
82795
|
var File = function File(props) {
|
|
83719
82796
|
var onClick = function onClick() {
|
|
@@ -83721,36 +82798,36 @@ var File = function File(props) {
|
|
|
83721
82798
|
props.onClick(props.id);
|
|
83722
82799
|
}
|
|
83723
82800
|
};
|
|
83724
|
-
var className = [styles$
|
|
82801
|
+
var className = [styles$1k['vitro-file'], props.className || CTRL.EMPTY, props.isImage ? styles$1k['vitro-preview'] : CTRL.EMPTY].join(CTRL.SPACE);
|
|
83725
82802
|
return React__default.createElement(FlexBox, {
|
|
83726
82803
|
className: className,
|
|
83727
82804
|
isColumn: true
|
|
83728
82805
|
}, props.actionList && props.actionList.length ? React__default.createElement(DropdownButton, {
|
|
83729
82806
|
itemList: props.actionList,
|
|
83730
|
-
className: styles$
|
|
82807
|
+
className: styles$1k['vitro-dropdown-button']
|
|
83731
82808
|
}) : null, props.preview && React__default.createElement(Tooltip$1, {
|
|
83732
82809
|
placement: PLACEMENT.TOP,
|
|
83733
82810
|
text: props.tooltip || CTRL.EMPTY
|
|
83734
82811
|
}, React__default.createElement("div", {
|
|
83735
|
-
className: styles$
|
|
82812
|
+
className: styles$1k['vitro-preview-container'],
|
|
83736
82813
|
onClick: onClick
|
|
83737
82814
|
}, React__default.createElement("img", {
|
|
83738
82815
|
src: props.preview
|
|
83739
82816
|
}))), !props.isImage && React__default.createElement(FlexBox, {
|
|
83740
|
-
className: styles$
|
|
82817
|
+
className: styles$1k['vitro-flex'] + (props.contentClassName ? CTRL.SPACE + props.contentClassName : CTRL.EMPTY)
|
|
83741
82818
|
}, props.image && React__default.createElement("img", {
|
|
83742
82819
|
src: props.image,
|
|
83743
|
-
className: styles$
|
|
82820
|
+
className: styles$1k['vitro-image']
|
|
83744
82821
|
}), React__default.createElement(FlexBox, {
|
|
83745
82822
|
isColumn: true
|
|
83746
82823
|
}, React__default.createElement("span", {
|
|
83747
|
-
className: styles$
|
|
82824
|
+
className: styles$1k['vitro-file-name']
|
|
83748
82825
|
}, props.name), React__default.createElement("span", {
|
|
83749
|
-
className: styles$
|
|
82826
|
+
className: styles$1k['vitro-file-size']
|
|
83750
82827
|
}, props.size))), props.children);
|
|
83751
82828
|
};
|
|
83752
82829
|
|
|
83753
|
-
var styles$
|
|
82830
|
+
var styles$1l = {"vitro-file-list-container":"_attached-file-list_vitro-file-list-container_5PIFyI7","vitro-overflow-button":"_attached-file-list_vitro-overflow-button_39QxX1m","vitro-item-count":"_attached-file-list_vitro-item-count_35PIT1U","vitro-file":"_attached-file-list_vitro-file_2mPE3Rq"};
|
|
83754
82831
|
|
|
83755
82832
|
var AttachedFileListItem = function AttachedFileListItem(props) {
|
|
83756
82833
|
var _useState = React.useState(null),
|
|
@@ -83766,14 +82843,14 @@ var AttachedFileListItem = function AttachedFileListItem(props) {
|
|
|
83766
82843
|
return React__default.createElement(React__default.Fragment, null, props.fileList.map(function (file, index) {
|
|
83767
82844
|
if (index < props.maxVisibleFileCount) {
|
|
83768
82845
|
return React__default.createElement(File, Object.assign({}, file, {
|
|
83769
|
-
className: styles$
|
|
82846
|
+
className: styles$1l['vitro-file']
|
|
83770
82847
|
}));
|
|
83771
82848
|
}
|
|
83772
82849
|
return React__default.createElement(React__default.Fragment, null);
|
|
83773
82850
|
}), props.fileList.length > props.maxVisibleFileCount && !hiddenFileList ? React__default.createElement("div", {
|
|
83774
|
-
className: styles$
|
|
82851
|
+
className: styles$1l['vitro-overflow-button']
|
|
83775
82852
|
}, React__default.createElement("div", {
|
|
83776
|
-
className: styles$
|
|
82853
|
+
className: styles$1l['vitro-item-count'],
|
|
83777
82854
|
onClick: function onClick() {
|
|
83778
82855
|
return onHiddenFileListClick(props.fileList.slice(props.maxVisibleFileCount));
|
|
83779
82856
|
}
|
|
@@ -83782,10 +82859,10 @@ var AttachedFileListItem = function AttachedFileListItem(props) {
|
|
|
83782
82859
|
text: props.hiddenFileCountTooltip || CTRL.EMPTY
|
|
83783
82860
|
}, React__default.createElement("div", null, CTRL.PLUS + (props.fileList.length - props.maxVisibleFileCount)))), React__default.createElement(File, Object.assign({}, props.fileList[props.maxVisibleFileCount], {
|
|
83784
82861
|
actionList: [],
|
|
83785
|
-
className: styles$
|
|
82862
|
+
className: styles$1l['vitro-file']
|
|
83786
82863
|
}))) : null, hiddenFileList && hiddenFileList.map(function (file) {
|
|
83787
82864
|
return React__default.createElement(File, Object.assign({}, file, {
|
|
83788
|
-
className: styles$
|
|
82865
|
+
className: styles$1l['vitro-file']
|
|
83789
82866
|
}));
|
|
83790
82867
|
}));
|
|
83791
82868
|
};
|
|
@@ -83821,7 +82898,7 @@ var AttachedFileList = function AttachedFileList(props) {
|
|
|
83821
82898
|
}
|
|
83822
82899
|
};
|
|
83823
82900
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
83824
|
-
className: styles$
|
|
82901
|
+
className: styles$1l['vitro-file-list-container']
|
|
83825
82902
|
}, imageList && React__default.createElement(AttachedFileListItem, {
|
|
83826
82903
|
fileList: imageList,
|
|
83827
82904
|
maxVisibleFileCount: maxImageCount,
|
|
@@ -83835,48 +82912,48 @@ var AttachedFileList = function AttachedFileList(props) {
|
|
|
83835
82912
|
})));
|
|
83836
82913
|
};
|
|
83837
82914
|
|
|
83838
|
-
var styles$
|
|
82915
|
+
var styles$1m = {"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-ellipsis":"_activity-message_vitro-ellipsis_1fIRwiW","vitro-value-content":"_activity-message_vitro-value-content_1fdGuBJ","vitro-value-tooltip":"_activity-message_vitro-value-tooltip_3oYwdFU"};
|
|
83839
82916
|
|
|
83840
82917
|
var ActivityMessage = function ActivityMessage(props) {
|
|
83841
82918
|
var onUpdateTooltip = function onUpdateTooltip(isEnabled, element) {
|
|
83842
82919
|
if (element) {
|
|
83843
82920
|
if (isEnabled) {
|
|
83844
|
-
element.classList.add(styles$
|
|
82921
|
+
element.classList.add(styles$1m['vitro-ellipsis']);
|
|
83845
82922
|
} else {
|
|
83846
|
-
element.classList.remove(styles$
|
|
82923
|
+
element.classList.remove(styles$1m['vitro-ellipsis']);
|
|
83847
82924
|
}
|
|
83848
82925
|
}
|
|
83849
82926
|
};
|
|
83850
82927
|
return React__default.createElement(React__default.Fragment, null, props.changedValueList.length ? React__default.createElement("div", {
|
|
83851
|
-
className: styles$
|
|
82928
|
+
className: styles$1m['vitro-activity-message']
|
|
83852
82929
|
}, props.changedValueList.map(function (item) {
|
|
83853
82930
|
var value = React__default.createElement("div", {
|
|
83854
|
-
className: styles$
|
|
82931
|
+
className: styles$1m['vitro-value-content']
|
|
83855
82932
|
}, item.oldValue && React__default.createElement(React__default.Fragment, null, React__default.createElement("span", {
|
|
83856
|
-
className: styles$
|
|
82933
|
+
className: styles$1m['vitro-value'],
|
|
83857
82934
|
dangerouslySetInnerHTML: item.isRichText ? {
|
|
83858
82935
|
__html: item.oldValue
|
|
83859
82936
|
} : undefined
|
|
83860
82937
|
}, item.isRichText ? undefined : item.oldValue), React__default.createElement("div", {
|
|
83861
82938
|
className: 'vitro-arrow-separator'
|
|
83862
82939
|
})), item.newValue && React__default.createElement("span", {
|
|
83863
|
-
className: item.isMessage ? styles$
|
|
82940
|
+
className: item.isMessage ? styles$1m['vitro-message'] : styles$1m['vitro-value'],
|
|
83864
82941
|
dangerouslySetInnerHTML: item.isRichText ? {
|
|
83865
82942
|
__html: item.newValue
|
|
83866
82943
|
} : undefined
|
|
83867
82944
|
}, item.isRichText ? undefined : item.newValue));
|
|
83868
82945
|
var containerRef = React__default.createRef();
|
|
83869
82946
|
return React__default.createElement("div", {
|
|
83870
|
-
className: styles$
|
|
82947
|
+
className: styles$1m['vitro-item'],
|
|
83871
82948
|
ref: containerRef
|
|
83872
82949
|
}, item.fieldName && React__default.createElement("span", {
|
|
83873
|
-
className: styles$
|
|
82950
|
+
className: styles$1m['vitro-field-name']
|
|
83874
82951
|
}, "" + item.fieldName + CTRL.COLON), React__default.createElement(ValueTooltip, {
|
|
83875
82952
|
text: renderToString$1(value),
|
|
83876
82953
|
isRichText: true,
|
|
83877
82954
|
containerRef: containerRef,
|
|
83878
82955
|
isMultiline: true,
|
|
83879
|
-
className: styles$
|
|
82956
|
+
className: styles$1m['vitro-value-tooltip'],
|
|
83880
82957
|
onUpdate: function onUpdate(isEnabled) {
|
|
83881
82958
|
return onUpdateTooltip(isEnabled, containerRef.current);
|
|
83882
82959
|
}
|
|
@@ -83893,7 +82970,7 @@ var LOCALE$a;
|
|
|
83893
82970
|
LOCALE["ADD_FILE"] = "app.common.messageInput.action.addFile";
|
|
83894
82971
|
})(LOCALE$a || (LOCALE$a = {}));
|
|
83895
82972
|
|
|
83896
|
-
var styles$
|
|
82973
|
+
var styles$1n = {"vitro-attached-file-container":"_attached-file_vitro-attached-file-container_3AhHHlm","vitro-attached-file":"_attached-file_vitro-attached-file_1R6PPQN","vitro-button-remove":"_attached-file_vitro-button-remove_3ehToHf"};
|
|
83897
82974
|
|
|
83898
82975
|
var AttachedFile = function AttachedFile(props) {
|
|
83899
82976
|
var _useState = React.useState(null),
|
|
@@ -83931,23 +83008,23 @@ var AttachedFile = function AttachedFile(props) {
|
|
|
83931
83008
|
return null;
|
|
83932
83009
|
}
|
|
83933
83010
|
return React__default.createElement("div", {
|
|
83934
|
-
className: styles$
|
|
83011
|
+
className: styles$1n['vitro-attached-file-container']
|
|
83935
83012
|
}, React__default.createElement(Tooltip$1, {
|
|
83936
83013
|
placement: PLACEMENT.TOP,
|
|
83937
83014
|
text: localeService.create(LOCALE$a.DELETE_FILE)
|
|
83938
83015
|
}, React__default.createElement("button", {
|
|
83939
|
-
className: styles$
|
|
83016
|
+
className: styles$1n['vitro-button-remove'],
|
|
83940
83017
|
onClick: function onClick() {
|
|
83941
83018
|
return props.onDelete(props.index);
|
|
83942
83019
|
}
|
|
83943
83020
|
})), React__default.createElement(File, Object.assign({
|
|
83944
83021
|
id: "" + props.index
|
|
83945
83022
|
}, file, {
|
|
83946
|
-
className: styles$
|
|
83023
|
+
className: styles$1n['vitro-attached-file']
|
|
83947
83024
|
})));
|
|
83948
83025
|
};
|
|
83949
83026
|
|
|
83950
|
-
var styles$
|
|
83027
|
+
var styles$1o = {"vitro-message-input":"_message-input_vitro-message-input_3MkcjWD","vitro-control":"_message-input_vitro-control_1PUSjq9","vitro-message":"_message-input_vitro-message_2EJSy-9","vitro-placeholder":"_message-input_vitro-placeholder_1FBfIqN","vitro-button-add-file":"_message-input_vitro-button-add-file_1qdtHHq","vitro-button-send":"_message-input_vitro-button-send_1vktQrZ","vitro-display-none":"_message-input_vitro-display-none_2dYTZ22","vitro-attached-file-list":"_message-input_vitro-attached-file-list_l95S4VR","vitro-flex":"_message-input_vitro-flex_18M_7xU"};
|
|
83951
83028
|
|
|
83952
83029
|
var MessageInput = React.forwardRef(function (props, ref) {
|
|
83953
83030
|
var _useState = React.useState(true),
|
|
@@ -84060,12 +83137,12 @@ var MessageInput = React.forwardRef(function (props, ref) {
|
|
|
84060
83137
|
}
|
|
84061
83138
|
};
|
|
84062
83139
|
return React__default.createElement("div", {
|
|
84063
|
-
className: styles$
|
|
83140
|
+
className: styles$1o['vitro-message-input'],
|
|
84064
83141
|
onDrop: props.onDrop
|
|
84065
83142
|
}, React__default.createElement("div", {
|
|
84066
|
-
className: styles$
|
|
83143
|
+
className: styles$1o['vitro-control']
|
|
84067
83144
|
}, fileList.length ? React__default.createElement("div", {
|
|
84068
|
-
className: styles$
|
|
83145
|
+
className: styles$1o['vitro-attached-file-list']
|
|
84069
83146
|
}, React__default.createElement(ScrollBar, null, fileList.map(function (file, index) {
|
|
84070
83147
|
return React__default.createElement(AttachedFile, {
|
|
84071
83148
|
key: index,
|
|
@@ -84076,11 +83153,11 @@ var MessageInput = React.forwardRef(function (props, ref) {
|
|
|
84076
83153
|
getFileSize: props.getFileSize
|
|
84077
83154
|
});
|
|
84078
83155
|
}))) : null, React__default.createElement(FlexBox, {
|
|
84079
|
-
className: styles$
|
|
83156
|
+
className: styles$1o['vitro-flex']
|
|
84080
83157
|
}, !props.isDisabled && React__default.createElement(ScrollBar, {
|
|
84081
83158
|
isHideScrollX: true
|
|
84082
83159
|
}, React__default.createElement("div", {
|
|
84083
|
-
className: styles$
|
|
83160
|
+
className: styles$1o['vitro-message'],
|
|
84084
83161
|
ref: inputRef,
|
|
84085
83162
|
onInput: onChange,
|
|
84086
83163
|
onKeyDown: onKeyDown,
|
|
@@ -84090,20 +83167,20 @@ var MessageInput = React.forwardRef(function (props, ref) {
|
|
|
84090
83167
|
onDrop: onDrop,
|
|
84091
83168
|
contentEditable: true
|
|
84092
83169
|
}, isShowPlaceholder && React__default.createElement("span", {
|
|
84093
|
-
className: styles$
|
|
83170
|
+
className: styles$1o['vitro-placeholder']
|
|
84094
83171
|
}, props.placeholder || localeService.create(LOCALE$a.PLACEHOLDER)))), props.children, props.onSelectFiles && React__default.createElement(React__default.Fragment, null, React__default.createElement(ImageButton, {
|
|
84095
83172
|
onClick: selectFile,
|
|
84096
83173
|
tooltipText: localeService.create(LOCALE$a.ADD_FILE),
|
|
84097
|
-
className: styles$
|
|
83174
|
+
className: styles$1o['vitro-button-add-file']
|
|
84098
83175
|
}), React__default.createElement("input", {
|
|
84099
83176
|
type: 'file',
|
|
84100
83177
|
onChange: onSelectFile,
|
|
84101
83178
|
ref: fileInputRef,
|
|
84102
|
-
className: styles$
|
|
83179
|
+
className: styles$1o['vitro-display-none'],
|
|
84103
83180
|
multiple: true
|
|
84104
83181
|
})))), React__default.createElement(ImageButton, {
|
|
84105
83182
|
onClick: onEnter,
|
|
84106
|
-
className: styles$
|
|
83183
|
+
className: styles$1o['vitro-button-send']
|
|
84107
83184
|
}));
|
|
84108
83185
|
});
|
|
84109
83186
|
|
|
@@ -84118,7 +83195,7 @@ var LOCALE$b;
|
|
|
84118
83195
|
LOCALE["ACTION_DELETE"] = "app.common.action.delete";
|
|
84119
83196
|
})(LOCALE$b || (LOCALE$b = {}));
|
|
84120
83197
|
|
|
84121
|
-
var styles$
|
|
83198
|
+
var styles$1p = {"vitro-image-picker-root":"_image-picker_vitro-image-picker-root_AqOYRhP","vitro-image-picker-dropdown-wrapper":"_image-picker_vitro-image-picker-dropdown-wrapper_8Tr_BBS","vitro-image-picker-defaultImage-wrapper":"_image-picker_vitro-image-picker-defaultImage-wrapper_1BHZ1he","vitro-image-picker-image-wrapper":"_image-picker_vitro-image-picker-image-wrapper_328OVLU","vitro-image-picker-input":"_image-picker_vitro-image-picker-input_12jFFNU","vitro-image-default":"_image-picker_vitro-image-default_LhN4iy6","vitro-image-picker-label-wrapper":"_image-picker_vitro-image-picker-label-wrapper_WRLzUYM","vitro-image-picker-wrapper":"_image-picker_vitro-image-picker-wrapper_dlZyYFL","vitro-required":"_image-picker_vitro-required_2lpwlb0"};
|
|
84122
83199
|
|
|
84123
83200
|
var ImagePicker = function ImagePicker(props) {
|
|
84124
83201
|
var localeService = inversifyReact.useInjection(SERVICE.LOCALE);
|
|
@@ -84126,16 +83203,16 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
84126
83203
|
var renderPreview = function renderPreview() {
|
|
84127
83204
|
if (props.defaultUrl) {
|
|
84128
83205
|
return React__default.createElement("div", {
|
|
84129
|
-
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$
|
|
83206
|
+
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$1p['vitro-image-picker-image-wrapper']
|
|
84130
83207
|
}, React__default.createElement(Image, {
|
|
84131
83208
|
defaultUrl: props.defaultUrl,
|
|
84132
|
-
className: props.classNameImage ? props.classNameImage : styles$
|
|
83209
|
+
className: props.classNameImage ? props.classNameImage : styles$1p['vitro-image-picker-image']
|
|
84133
83210
|
}));
|
|
84134
83211
|
} else {
|
|
84135
83212
|
return React__default.createElement("div", {
|
|
84136
|
-
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$
|
|
83213
|
+
className: props.classNameDefaultImage ? props.classNameDefaultImage : styles$1p['vitro-image-picker-defaultImage-wrapper']
|
|
84137
83214
|
}, React__default.createElement("div", {
|
|
84138
|
-
className: styles$
|
|
83215
|
+
className: styles$1p['vitro-image-default']
|
|
84139
83216
|
}));
|
|
84140
83217
|
}
|
|
84141
83218
|
};
|
|
@@ -84151,11 +83228,7 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
84151
83228
|
return inputFileRef === null || inputFileRef === void 0 ? void 0 : (_inputFileRef$current = inputFileRef.current) === null || _inputFileRef$current === void 0 ? void 0 : _inputFileRef$current.click();
|
|
84152
83229
|
},
|
|
84153
83230
|
text: localeService.create(LOCALE$b.ACTION_UPLOAD),
|
|
84154
|
-
value: ACTION$3.UPLOAD,
|
|
84155
83231
|
key: ACTION$3.UPLOAD,
|
|
84156
|
-
actionCode: ACTION$3.UPLOAD,
|
|
84157
|
-
isConfirm: false,
|
|
84158
|
-
isOverflow: false,
|
|
84159
83232
|
imageUrl: props.imgUrlUpload
|
|
84160
83233
|
}];
|
|
84161
83234
|
if (props.defaultUrl) {
|
|
@@ -84164,30 +83237,27 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
84164
83237
|
return onChange(null);
|
|
84165
83238
|
},
|
|
84166
83239
|
text: localeService.create(LOCALE$b.ACTION_DELETE),
|
|
84167
|
-
value: ACTION$3.DELETE,
|
|
84168
83240
|
key: ACTION$3.DELETE,
|
|
84169
|
-
actionCode: ACTION$3.DELETE,
|
|
84170
|
-
isConfirm: false,
|
|
84171
|
-
isOverflow: false,
|
|
84172
83241
|
imageUrl: props.imgUrlDelete
|
|
84173
83242
|
});
|
|
84174
83243
|
}
|
|
84175
83244
|
return (_props$itemList = props.itemList) !== null && _props$itemList !== void 0 && _props$itemList.length ? result.concat(props.itemList) : result;
|
|
84176
83245
|
}, [props.itemList, props.defaultUrl]);
|
|
84177
83246
|
return React__default.createElement("div", {
|
|
84178
|
-
className: styles$
|
|
83247
|
+
className: styles$1p['vitro-image-picker-wrapper']
|
|
84179
83248
|
}, React__default.createElement("div", {
|
|
84180
|
-
className: styles$
|
|
83249
|
+
className: styles$1p['vitro-image-picker-label-wrapper']
|
|
84181
83250
|
}, props.label ? props.label : '', props.isRequired && React__default.createElement("span", {
|
|
84182
|
-
className: styles$
|
|
83251
|
+
className: styles$1p['vitro-required']
|
|
84183
83252
|
}, CTRL.ASTERISK)), React__default.createElement("div", {
|
|
84184
|
-
className: props.classNameRoot ? props.classNameRoot : styles$
|
|
83253
|
+
className: props.classNameRoot ? props.classNameRoot : styles$1p['vitro-image-picker-root']
|
|
84185
83254
|
}, !props.isReadOnly && React__default.createElement(DropdownButton, {
|
|
84186
83255
|
itemList: defaultItemList,
|
|
84187
|
-
|
|
83256
|
+
containerClassName: styles$1p['vitro-image-picker-dropdown-wrapper'],
|
|
83257
|
+
className: STYLE$1.CONTEXT
|
|
84188
83258
|
}), React__default.createElement("input", {
|
|
84189
83259
|
type: 'file',
|
|
84190
|
-
className: styles$
|
|
83260
|
+
className: styles$1p['vitro-image-picker-input'],
|
|
84191
83261
|
ref: inputFileRef,
|
|
84192
83262
|
onChange: onChange,
|
|
84193
83263
|
accept: 'image/*'
|
|
@@ -84196,7 +83266,7 @@ var ImagePicker = function ImagePicker(props) {
|
|
|
84196
83266
|
}));
|
|
84197
83267
|
};
|
|
84198
83268
|
|
|
84199
|
-
var styles$
|
|
83269
|
+
var styles$1q = {"vitro-criterion-container":"_item_vitro-criterion-container_3cAvpK0","vitro-control":"_item_vitro-control_2yXKeQZ","vitro-label":"_item_vitro-label_1UoRViU","vitro-button-cancel":"_item_vitro-button-cancel_3FPRPrk","vitro-focus":"_item_vitro-focus_1VqbeO1","vitro-error":"_item_vitro-error_2VnXFaz","vitro-image":"_item_vitro-image_24giw0o"};
|
|
84200
83270
|
|
|
84201
83271
|
var Item$3 = function Item(props) {
|
|
84202
83272
|
var _useState = React.useState(CTRL.EMPTY),
|
|
@@ -84211,13 +83281,13 @@ var Item$3 = function Item(props) {
|
|
|
84211
83281
|
}, []);
|
|
84212
83282
|
var labelRef = React.useRef(null);
|
|
84213
83283
|
var onFocus = function onFocus(e) {
|
|
84214
|
-
setState(styles$
|
|
83284
|
+
setState(styles$1q['vitro-focus']);
|
|
84215
83285
|
if (componentProps.onFocus) {
|
|
84216
83286
|
componentProps.onFocus(e);
|
|
84217
83287
|
}
|
|
84218
83288
|
};
|
|
84219
83289
|
var onBlur = function onBlur(e) {
|
|
84220
|
-
setState(componentProps.errorMessage ? styles$
|
|
83290
|
+
setState(componentProps.errorMessage ? styles$1q['vitro-error'] : CTRL.EMPTY);
|
|
84221
83291
|
if (componentProps.onBlur) {
|
|
84222
83292
|
componentProps.onBlur(e);
|
|
84223
83293
|
}
|
|
@@ -84232,15 +83302,15 @@ var Item$3 = function Item(props) {
|
|
|
84232
83302
|
onChange(value);
|
|
84233
83303
|
};
|
|
84234
83304
|
return React__default.createElement(FlexBox, {
|
|
84235
|
-
className: props.isMobileView ? styles$
|
|
83305
|
+
className: props.isMobileView ? styles$1q['vitro-criterion-container-mobile'] : styles$1q['vitro-criterion-container']
|
|
84236
83306
|
}, React__default.createElement("div", {
|
|
84237
|
-
className: styles$
|
|
83307
|
+
className: styles$1q['vitro-control'] + CTRL.SPACE + state
|
|
84238
83308
|
}, React__default.createElement(Label, {
|
|
84239
83309
|
ref: labelRef,
|
|
84240
83310
|
text: props.label,
|
|
84241
|
-
className: styles$
|
|
83311
|
+
className: styles$1q['vitro-label']
|
|
84242
83312
|
}), React__default.createElement(props.content.component, _extends({}, componentProps, {
|
|
84243
|
-
className: styles$
|
|
83313
|
+
className: styles$1q['vitro-control'],
|
|
84244
83314
|
onBlur: onBlur,
|
|
84245
83315
|
onFocus: onFocus,
|
|
84246
83316
|
onChange: onControlChange,
|
|
@@ -84252,11 +83322,11 @@ var Item$3 = function Item(props) {
|
|
|
84252
83322
|
onClick: function onClick() {
|
|
84253
83323
|
return props.onDelete(componentProps.id);
|
|
84254
83324
|
},
|
|
84255
|
-
className: styles$
|
|
83325
|
+
className: styles$1q['vitro-button-cancel']
|
|
84256
83326
|
}));
|
|
84257
83327
|
};
|
|
84258
83328
|
|
|
84259
|
-
var styles$
|
|
83329
|
+
var styles$1r = {"vitro-field-iterator":"_editable-field-iterator_vitro-field-iterator_myx5yu3"};
|
|
84260
83330
|
|
|
84261
83331
|
var EditableFieldIterator = function EditableFieldIterator(props) {
|
|
84262
83332
|
var _useState = React.useState(null),
|
|
@@ -84316,7 +83386,7 @@ var EditableFieldIterator = function EditableFieldIterator(props) {
|
|
|
84316
83386
|
props.onChange(changedFieldValueMap);
|
|
84317
83387
|
};
|
|
84318
83388
|
return React__default.createElement("div", {
|
|
84319
|
-
className: styles$
|
|
83389
|
+
className: styles$1r['vitro-filter']
|
|
84320
83390
|
}, props.isNoScrollBar ? componentMap && React__default.createElement(FieldIterator, {
|
|
84321
83391
|
fieldList: props.fieldList,
|
|
84322
83392
|
fieldValueMap: fieldValueMap,
|
|
@@ -84324,9 +83394,9 @@ var EditableFieldIterator = function EditableFieldIterator(props) {
|
|
|
84324
83394
|
componentMap: componentMap,
|
|
84325
83395
|
onChange: onChange,
|
|
84326
83396
|
isVisibleOverflow: true,
|
|
84327
|
-
className: styles$
|
|
83397
|
+
className: styles$1r['vitro-field-iterator']
|
|
84328
83398
|
}) : React__default.createElement(ScrollBar, {
|
|
84329
|
-
className: styles$
|
|
83399
|
+
className: styles$1r['vitro-scrollbar']
|
|
84330
83400
|
}, componentMap && React__default.createElement(FieldIterator, {
|
|
84331
83401
|
fieldList: props.fieldList,
|
|
84332
83402
|
fieldValueMap: fieldValueMap,
|
|
@@ -84334,7 +83404,7 @@ var EditableFieldIterator = function EditableFieldIterator(props) {
|
|
|
84334
83404
|
componentMap: componentMap,
|
|
84335
83405
|
onChange: onChange,
|
|
84336
83406
|
isVisibleOverflow: true,
|
|
84337
|
-
className: styles$
|
|
83407
|
+
className: styles$1r['vitro-field-iterator']
|
|
84338
83408
|
})));
|
|
84339
83409
|
};
|
|
84340
83410
|
|
|
@@ -84400,7 +83470,7 @@ var Splitter = function Splitter(props) {
|
|
|
84400
83470
|
}, props.children);
|
|
84401
83471
|
};
|
|
84402
83472
|
|
|
84403
|
-
var styles$
|
|
83473
|
+
var styles$1s = {"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"};
|
|
84404
83474
|
|
|
84405
83475
|
var RouteItem = function RouteItem(props) {
|
|
84406
83476
|
var _useState = React.useState(true),
|
|
@@ -84410,46 +83480,46 @@ var RouteItem = function RouteItem(props) {
|
|
|
84410
83480
|
isShowComment = _useState2[0],
|
|
84411
83481
|
setIsShowComment = _useState2[1];
|
|
84412
83482
|
return React__default.createElement("div", {
|
|
84413
|
-
className: styles$
|
|
83483
|
+
className: styles$1s['vitro-route-item']
|
|
84414
83484
|
}, props.children ? React__default.createElement("button", {
|
|
84415
|
-
className: isExpanded ? styles$
|
|
83485
|
+
className: isExpanded ? styles$1s['vitro-button-collapse'] : styles$1s['vitro-button-expand'],
|
|
84416
83486
|
onClick: function onClick() {
|
|
84417
83487
|
return setIsExpanded(!isExpanded);
|
|
84418
83488
|
}
|
|
84419
83489
|
}) : null, React__default.createElement("div", {
|
|
84420
|
-
className: styles$
|
|
83490
|
+
className: styles$1s['vitro-route-item-content']
|
|
84421
83491
|
}, props.userName && props.status && React__default.createElement("div", {
|
|
84422
|
-
className: styles$
|
|
83492
|
+
className: styles$1s['vitro-route-item-header']
|
|
84423
83493
|
}, React__default.createElement("div", null, React__default.createElement("div", null, React__default.createElement(Avatar, {
|
|
84424
83494
|
userName: props.userName,
|
|
84425
83495
|
image: props.userImage,
|
|
84426
|
-
className: styles$
|
|
83496
|
+
className: styles$1s['vitro-avatar']
|
|
84427
83497
|
}), props.userName), React__default.createElement("div", {
|
|
84428
|
-
className: styles$
|
|
83498
|
+
className: styles$1s['vitro-date']
|
|
84429
83499
|
}, props.date)), React__default.createElement("div", null, React__default.createElement("div", null, props.statusColor && React__default.createElement("div", {
|
|
84430
|
-
className: styles$
|
|
83500
|
+
className: styles$1s['vitro-status-color'],
|
|
84431
83501
|
style: {
|
|
84432
83502
|
background: props.statusColor
|
|
84433
83503
|
}
|
|
84434
83504
|
}), props.status), React__default.createElement("div", null, React__default.createElement("a", {
|
|
84435
83505
|
href: props.itemUrl
|
|
84436
83506
|
}, CTRL.SHARP + props.itemId)))), React__default.createElement("div", {
|
|
84437
|
-
className: styles$
|
|
83507
|
+
className: styles$1s['vitro-route-item-body']
|
|
84438
83508
|
}, React__default.createElement("div", {
|
|
84439
|
-
className: styles$
|
|
83509
|
+
className: styles$1s['vitro-flex']
|
|
84440
83510
|
}, React__default.createElement("span", null, props.name), props.comment && React__default.createElement("button", {
|
|
84441
|
-
className: isShowComment ? styles$
|
|
83511
|
+
className: isShowComment ? styles$1s['vitro-button-hide-comment'] : styles$1s['vitro-button-show-comment'],
|
|
84442
83512
|
onClick: function onClick() {
|
|
84443
83513
|
return setIsShowComment(!isShowComment);
|
|
84444
83514
|
}
|
|
84445
83515
|
})), isShowComment && props.comment && React__default.createElement("div", {
|
|
84446
|
-
className: styles$
|
|
83516
|
+
className: styles$1s['vitro-comment']
|
|
84447
83517
|
}, props.comment)), isExpanded && React__default.createElement("div", {
|
|
84448
|
-
className: styles$
|
|
83518
|
+
className: styles$1s['vitro-route-item-child']
|
|
84449
83519
|
}, props.children)));
|
|
84450
83520
|
};
|
|
84451
83521
|
|
|
84452
|
-
var w$
|
|
83522
|
+
var w$9 = window;
|
|
84453
83523
|
var ID_FILE_VERSION_SELECT$1 = 'fileVersionSelect';
|
|
84454
83524
|
var Viewer$1 = function Viewer(props) {
|
|
84455
83525
|
React.useEffect(function () {
|
|
@@ -84460,11 +83530,11 @@ var Viewer$1 = function Viewer(props) {
|
|
|
84460
83530
|
var init = function init() {
|
|
84461
83531
|
initSearchCriterionList();
|
|
84462
83532
|
var initViewer = function initViewer() {
|
|
84463
|
-
if (w$
|
|
83533
|
+
if (w$9.initBimViewer) {
|
|
84464
83534
|
var context = _extends({}, props.context, {
|
|
84465
83535
|
initIssueList: initIssueList
|
|
84466
83536
|
});
|
|
84467
|
-
w$
|
|
83537
|
+
w$9.initBimViewer(context);
|
|
84468
83538
|
initFileVersionSelect();
|
|
84469
83539
|
} else {
|
|
84470
83540
|
setTimeout(initViewer, 100);
|
|
@@ -84504,7 +83574,7 @@ var Viewer$1 = function Viewer(props) {
|
|
|
84504
83574
|
};
|
|
84505
83575
|
var initSearchCriterionList = function initSearchCriterionList() {
|
|
84506
83576
|
if (props.context.searchCriterionList) {
|
|
84507
|
-
w$
|
|
83577
|
+
w$9.searchCriterionList = getPredefinedSearchCriterionList(props.context.searchCriterionList);
|
|
84508
83578
|
}
|
|
84509
83579
|
};
|
|
84510
83580
|
var getPredefinedSearchCriterionList = function getPredefinedSearchCriterionList(searchCriterionList) {
|
|
@@ -84576,7 +83646,7 @@ var BimViewer = function BimViewer(props) {
|
|
|
84576
83646
|
});
|
|
84577
83647
|
};
|
|
84578
83648
|
|
|
84579
|
-
var styles$
|
|
83649
|
+
var styles$1t = {"vitro-scroll-view":"_scroll-view_vitro-scroll-view_TXQ8QQh"};
|
|
84580
83650
|
|
|
84581
83651
|
var COMPONENT_NAME = 'kendoScrollView';
|
|
84582
83652
|
var CONTENT_HEIGHT = 100;
|
|
@@ -84621,27 +83691,27 @@ var ScrollView = function ScrollView(props) {
|
|
|
84621
83691
|
};
|
|
84622
83692
|
return React__default.createElement("div", {
|
|
84623
83693
|
ref: scrollViewRef,
|
|
84624
|
-
className: styles$
|
|
83694
|
+
className: styles$1t['vitro-scroll-view'] + CTRL.SPACE + (props.className || CTRL.EMPTY),
|
|
84625
83695
|
tabIndex: 0
|
|
84626
83696
|
}, props.itemList.map(function (item) {
|
|
84627
83697
|
return React__default.createElement(item.component, item.props);
|
|
84628
83698
|
}));
|
|
84629
83699
|
};
|
|
84630
83700
|
|
|
84631
|
-
var styles$
|
|
83701
|
+
var styles$1u = {"vitro-image-container":"_page_vitro-image-container_QEXhGHE"};
|
|
84632
83702
|
|
|
84633
83703
|
var Page = function Page(props) {
|
|
84634
83704
|
return React__default.createElement("div", {
|
|
84635
|
-
className: styles$
|
|
83705
|
+
className: styles$1u['vitro-page'],
|
|
84636
83706
|
"data-role": "page"
|
|
84637
83707
|
}, React__default.createElement("div", {
|
|
84638
|
-
className: styles$
|
|
83708
|
+
className: styles$1u['vitro-image-container']
|
|
84639
83709
|
}, React__default.createElement("img", {
|
|
84640
83710
|
src: props.url
|
|
84641
83711
|
})));
|
|
84642
83712
|
};
|
|
84643
83713
|
|
|
84644
|
-
var styles$
|
|
83714
|
+
var styles$1v = {"vitro-image-viewer":"_image-viewer_vitro-image-viewer_19T7Auc","vitro-header":"_image-viewer_vitro-header_1KIbDWk","vitro-button-close":"_image-viewer_vitro-button-close_36TY-iY","vitro-scroll-view":"_image-viewer_vitro-scroll-view_3nuGD7c","vitro-dropdown-button":"_image-viewer_vitro-dropdown-button_2TOT1pw","vitro-pager":"_image-viewer_vitro-pager_1FiaoGR"};
|
|
84645
83715
|
|
|
84646
83716
|
var ImageViewer = React.forwardRef(function (props, ref) {
|
|
84647
83717
|
var _props$itemList$;
|
|
@@ -84699,25 +83769,25 @@ var ImageViewer = React.forwardRef(function (props, ref) {
|
|
|
84699
83769
|
}
|
|
84700
83770
|
};
|
|
84701
83771
|
return React__default.createElement(React__default.Fragment, null, itemList.length ? React__default.createElement("div", {
|
|
84702
|
-
className: styles$
|
|
83772
|
+
className: styles$1v['vitro-image-viewer']
|
|
84703
83773
|
}, React__default.createElement("div", {
|
|
84704
|
-
className: styles$
|
|
83774
|
+
className: styles$1v['vitro-header']
|
|
84705
83775
|
}, actionList.length ? React__default.createElement(DropdownButton, {
|
|
84706
83776
|
itemList: actionList,
|
|
84707
|
-
className: styles$
|
|
83777
|
+
className: styles$1v['vitro-dropdown-button']
|
|
84708
83778
|
}) : null, React__default.createElement("button", {
|
|
84709
|
-
className: styles$
|
|
83779
|
+
className: styles$1v['vitro-button-close'],
|
|
84710
83780
|
onClick: props.onCloseClick
|
|
84711
83781
|
})), React__default.createElement(ScrollView, {
|
|
84712
83782
|
itemList: itemList,
|
|
84713
83783
|
onChange: onChange,
|
|
84714
|
-
className: styles$
|
|
83784
|
+
className: styles$1v['vitro-scroll-view'],
|
|
84715
83785
|
isEnablePager: true,
|
|
84716
83786
|
activePage: props.activePage
|
|
84717
83787
|
})) : null);
|
|
84718
83788
|
});
|
|
84719
83789
|
|
|
84720
|
-
var styles$
|
|
83790
|
+
var styles$1w = {"vitro-page":"_page-layout_vitro-page_GzZ3agH"};
|
|
84721
83791
|
|
|
84722
83792
|
var PageLayout = function PageLayout(props) {
|
|
84723
83793
|
var getClassName = function getClassName(sidebar) {
|
|
@@ -84731,7 +83801,7 @@ var PageLayout = function PageLayout(props) {
|
|
|
84731
83801
|
return CTRL.SPACE + classNameArr.join(CTRL.SPACE);
|
|
84732
83802
|
};
|
|
84733
83803
|
return React__default.createElement("div", {
|
|
84734
|
-
className: styles$
|
|
83804
|
+
className: styles$1w['vitro-page'] + getClassName(props.sidebar) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
84735
83805
|
id: 'vitro-page'
|
|
84736
83806
|
}, props.children);
|
|
84737
83807
|
};
|
|
@@ -84746,7 +83816,7 @@ var HeaderConstants = {
|
|
|
84746
83816
|
get LOCAL_STORAGE_KEY () { return LOCAL_STORAGE_KEY; }
|
|
84747
83817
|
};
|
|
84748
83818
|
|
|
84749
|
-
var styles$
|
|
83819
|
+
var styles$1x = {"vitro-header":"_header_vitro-header_ta9aLJn"};
|
|
84750
83820
|
|
|
84751
83821
|
var onChangeSidebarMode = function onChangeSidebarMode() {};
|
|
84752
83822
|
var Header = function Header(props) {
|
|
@@ -84789,44 +83859,44 @@ var Header = function Header(props) {
|
|
|
84789
83859
|
}
|
|
84790
83860
|
}, [props.sidebar]);
|
|
84791
83861
|
return React__default.createElement("div", {
|
|
84792
|
-
className: styles$
|
|
83862
|
+
className: styles$1x['vitro-header'],
|
|
84793
83863
|
id: 'vitro-header',
|
|
84794
83864
|
ref: ref
|
|
84795
83865
|
}, props.children);
|
|
84796
83866
|
};
|
|
84797
83867
|
|
|
84798
|
-
var styles$
|
|
83868
|
+
var styles$1y = {"vitro-nav-bar-sidebar-button":"_header-nav-bar-sidebar-button_vitro-nav-bar-sidebar-button_3IZcIOc"};
|
|
84799
83869
|
|
|
84800
83870
|
var SidebarButton = function SidebarButton(props) {
|
|
84801
83871
|
return React__default.createElement("button", {
|
|
84802
|
-
className: styles$
|
|
83872
|
+
className: styles$1y['vitro-nav-bar-sidebar-button'],
|
|
84803
83873
|
onClick: props.onClick
|
|
84804
83874
|
});
|
|
84805
83875
|
};
|
|
84806
83876
|
|
|
84807
|
-
var styles$
|
|
83877
|
+
var styles$1z = {"vitro-nav-bar":"_header-nav-bar_vitro-nav-bar_EuyFIk8"};
|
|
84808
83878
|
|
|
84809
83879
|
var HeaderNavBar = function HeaderNavBar(props) {
|
|
84810
83880
|
return React__default.createElement("nav", {
|
|
84811
|
-
className: styles$
|
|
83881
|
+
className: styles$1z['vitro-nav-bar'] + CTRL.SPACE + ['navbar', 'navbar-expand-lg', 'navbar-light'].join(CTRL.SPACE)
|
|
84812
83882
|
}, React__default.createElement(SidebarButton, {
|
|
84813
83883
|
onClick: onChangeSidebarMode
|
|
84814
83884
|
}), props.children);
|
|
84815
83885
|
};
|
|
84816
83886
|
|
|
84817
|
-
var styles$
|
|
83887
|
+
var styles$1A = {"vitro-nav-service":"_header-nav-service_vitro-nav-service_1-i4GOh"};
|
|
84818
83888
|
|
|
84819
83889
|
var logoStyles = {"vitro-customer-logo":"_header-customer-logo_vitro-customer-logo_2htY4zG"};
|
|
84820
83890
|
|
|
84821
83891
|
var HeaderNavService = function HeaderNavService(props) {
|
|
84822
83892
|
return React__default.createElement("div", {
|
|
84823
|
-
className: styles$
|
|
83893
|
+
className: styles$1A['vitro-nav-service']
|
|
84824
83894
|
}, React__default.createElement("div", {
|
|
84825
83895
|
className: logoStyles['vitro-customer-logo']
|
|
84826
83896
|
}), props.children);
|
|
84827
83897
|
};
|
|
84828
83898
|
|
|
84829
|
-
var styles$
|
|
83899
|
+
var styles$1B = {"vitro-product-title":"_product-title_vitro-product-title_2gZcA5j"};
|
|
84830
83900
|
|
|
84831
83901
|
var ProductTitle = function ProductTitle(props) {
|
|
84832
83902
|
var content = React__default.createElement(React__default.Fragment, null, React__default.createElement(Image, {
|
|
@@ -84848,22 +83918,22 @@ var ProductTitle = function ProductTitle(props) {
|
|
|
84848
83918
|
if (props.href) {
|
|
84849
83919
|
return React__default.createElement("a", {
|
|
84850
83920
|
href: props.href,
|
|
84851
|
-
className: styles$
|
|
83921
|
+
className: styles$1B['vitro-product-title'],
|
|
84852
83922
|
title: props.imageCaption
|
|
84853
83923
|
}, content);
|
|
84854
83924
|
}
|
|
84855
83925
|
return React__default.createElement("a", {
|
|
84856
83926
|
onClick: onClick,
|
|
84857
|
-
className: styles$
|
|
83927
|
+
className: styles$1B['vitro-product-title'],
|
|
84858
83928
|
title: props.imageCaption
|
|
84859
83929
|
}, content);
|
|
84860
83930
|
};
|
|
84861
83931
|
|
|
84862
|
-
var styles$
|
|
83932
|
+
var styles$1C = {"vitro-right":"_right-align-control-group_vitro-right_2vnd6R7"};
|
|
84863
83933
|
|
|
84864
83934
|
var RightAlignControlGroup = function RightAlignControlGroup(props) {
|
|
84865
83935
|
return React__default.createElement("div", {
|
|
84866
|
-
className: styles$
|
|
83936
|
+
className: styles$1C['vitro-right']
|
|
84867
83937
|
}, props.children);
|
|
84868
83938
|
};
|
|
84869
83939
|
|
|
@@ -84873,32 +83943,32 @@ var LeftAlignControlGroup = function LeftAlignControlGroup(props) {
|
|
|
84873
83943
|
}, props.children);
|
|
84874
83944
|
};
|
|
84875
83945
|
|
|
84876
|
-
var styles$
|
|
83946
|
+
var styles$1D = {"vitro-center":"_center-align-control-group_vitro-center_3SHmVN-"};
|
|
84877
83947
|
|
|
84878
83948
|
var CenterAlignControlGroup = function CenterAlignControlGroup(props) {
|
|
84879
83949
|
return React__default.createElement("div", {
|
|
84880
|
-
className: styles$
|
|
83950
|
+
className: styles$1D['vitro-center']
|
|
84881
83951
|
}, props.children);
|
|
84882
83952
|
};
|
|
84883
83953
|
|
|
84884
|
-
var styles$
|
|
83954
|
+
var styles$1E = {"vitro-main":"_main_vitro-main_Kk2JMBF"};
|
|
84885
83955
|
|
|
84886
83956
|
var Main = function Main(props) {
|
|
84887
83957
|
return React__default.createElement("div", {
|
|
84888
|
-
className: styles$
|
|
83958
|
+
className: styles$1E['vitro-main'],
|
|
84889
83959
|
id: 'vitro-main'
|
|
84890
83960
|
}, props.children);
|
|
84891
83961
|
};
|
|
84892
83962
|
|
|
84893
|
-
var styles$
|
|
83963
|
+
var styles$1F = {"vitro-table-view-detail":"_table-view-detail_vitro-table-view-detail_zxwp4XX"};
|
|
84894
83964
|
|
|
84895
83965
|
var TableViewDetail = function TableViewDetail(props) {
|
|
84896
83966
|
return React__default.createElement("div", {
|
|
84897
|
-
className: styles$
|
|
83967
|
+
className: styles$1F['vitro-table-view-detail']
|
|
84898
83968
|
}, props.children);
|
|
84899
83969
|
};
|
|
84900
83970
|
|
|
84901
|
-
var styles$
|
|
83971
|
+
var styles$1G = {"vitro-control":"_radio_vitro-control_1pRRp6K","vitro-radio-content":"_radio_vitro-radio-content_2iXhEPK","vitro-disabled":"_radio_vitro-disabled_2JSpn9-","vitro-label":"_radio_vitro-label_21dXFJN","vitro-left-label":"_radio_vitro-left-label_3BbOjIR"};
|
|
84902
83972
|
|
|
84903
83973
|
var Radio = React.forwardRef(function (props, ref) {
|
|
84904
83974
|
var radioRef = React.useRef(null);
|
|
@@ -84922,14 +83992,14 @@ var Radio = React.forwardRef(function (props, ref) {
|
|
|
84922
83992
|
props.onChange(props.value, e);
|
|
84923
83993
|
}
|
|
84924
83994
|
};
|
|
84925
|
-
var className = styles$
|
|
83995
|
+
var className = styles$1G['vitro-control'] + (props.labelPosition === POSITION.LEFT ? CTRL.SPACE + styles$1G['vitro-left-label'] : CTRL.EMPTY) + CTRL.SPACE + (props.isDisabled ? styles$1G['vitro-disabled'] : CTRL.EMPTY) + CTRL.SPACE + (props.className || CTRL.EMPTY);
|
|
84926
83996
|
return React__default.createElement("div", {
|
|
84927
83997
|
className: className
|
|
84928
83998
|
}, props.labelPosition === POSITION.LEFT && React__default.createElement(Label, {
|
|
84929
83999
|
text: props.label,
|
|
84930
|
-
className: styles$
|
|
84000
|
+
className: styles$1G['vitro-label']
|
|
84931
84001
|
}), React__default.createElement("div", {
|
|
84932
|
-
className: styles$
|
|
84002
|
+
className: styles$1G['vitro-radio-content']
|
|
84933
84003
|
}, React__default.createElement("input", {
|
|
84934
84004
|
ref: radioRef,
|
|
84935
84005
|
type: 'radio',
|
|
@@ -84941,7 +84011,7 @@ var Radio = React.forwardRef(function (props, ref) {
|
|
|
84941
84011
|
onChange: onChange
|
|
84942
84012
|
}), props.labelPosition !== POSITION.LEFT && React__default.createElement(Label, {
|
|
84943
84013
|
text: props.label,
|
|
84944
|
-
className: styles$
|
|
84014
|
+
className: styles$1G['vitro-label']
|
|
84945
84015
|
})));
|
|
84946
84016
|
});
|
|
84947
84017
|
|
|
@@ -84951,7 +84021,7 @@ var LOCALE$c;
|
|
|
84951
84021
|
LOCALE["TOOLTIP_OPEN"] = "app.common.linkInput.tooltip.open";
|
|
84952
84022
|
})(LOCALE$c || (LOCALE$c = {}));
|
|
84953
84023
|
|
|
84954
|
-
var styles$
|
|
84024
|
+
var styles$1H = {"vitro-link-input":"_link-input_vitro-link-input_1FBo8kO","vitro-edit-mode":"_link-input_vitro-edit-mode_2HhUoeO","vitro-control":"_link-input_vitro-control_1MGkxWi","vitro-read-only":"_link-input_vitro-read-only_AG9_cYJ","vitro-edit-button":"_link-input_vitro-edit-button_1PMQnWv","vitro-copy-button":"_link-input_vitro-copy-button_1uv79Zr"};
|
|
84955
84025
|
|
|
84956
84026
|
var LinkInput = React.forwardRef(function (props, ref) {
|
|
84957
84027
|
var _useState = React.useState(false),
|
|
@@ -85028,7 +84098,7 @@ var LinkInput = React.forwardRef(function (props, ref) {
|
|
|
85028
84098
|
}
|
|
85029
84099
|
return value.uri;
|
|
85030
84100
|
};
|
|
85031
|
-
var className = styles$
|
|
84101
|
+
var className = styles$1H['vitro-link-input'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY) + (props.isReadOnly ? CTRL.SPACE + styles$1H['vitro-read-only'] : CTRL.EMPTY) + (isEditMode ? CTRL.SPACE + styles$1H['vitro-edit-mode'] : CTRL.EMPTY);
|
|
85032
84102
|
return React__default.createElement("div", {
|
|
85033
84103
|
className: className
|
|
85034
84104
|
}, React__default.createElement(Tooltip$1, {
|
|
@@ -85047,14 +84117,14 @@ var LinkInput = React.forwardRef(function (props, ref) {
|
|
|
85047
84117
|
isRequired: props.isRequired,
|
|
85048
84118
|
isError: props.isError,
|
|
85049
84119
|
isReadOnly: props.isReadOnly ? true : !isEditMode,
|
|
85050
|
-
className: styles$
|
|
84120
|
+
className: styles$1H['vitro-control']
|
|
85051
84121
|
}))), !props.isReadOnly && !isEditMode && React__default.createElement(ImageButton, {
|
|
85052
84122
|
onClick: onClickEditButton,
|
|
85053
84123
|
tooltipText: localeService.create(LOCALE$c.TOOLTIP_EDIT),
|
|
85054
|
-
className: styles$
|
|
84124
|
+
className: styles$1H['vitro-edit-button']
|
|
85055
84125
|
}), props.isReadOnly && React__default.createElement(CopyButton, {
|
|
85056
84126
|
value: getCopyValue(value),
|
|
85057
|
-
className: styles$
|
|
84127
|
+
className: styles$1H['vitro-copy-button']
|
|
85058
84128
|
}));
|
|
85059
84129
|
});
|
|
85060
84130
|
|
|
@@ -85071,7 +84141,7 @@ var LOCALE$d;
|
|
|
85071
84141
|
LOCALE["SETTING_SYSTEM_INFO"] = "systemInformation";
|
|
85072
84142
|
})(LOCALE$d || (LOCALE$d = {}));
|
|
85073
84143
|
|
|
85074
|
-
var styles$
|
|
84144
|
+
var styles$1I = {"vitro-system-exception-dialog":"_system-exception-dialog_vitro-system-exception-dialog_2UVdbuB","vitro-image":"_system-exception-dialog_vitro-image_XG5PD8h","vitro-exception":"_system-exception-dialog_vitro-exception_2bLGF01","vitro-exception-message":"_system-exception-dialog_vitro-exception-message_2S8ZwQP","vitro-label":"_system-exception-dialog_vitro-label_1Nbb_It","vitro-input":"_system-exception-dialog_vitro-input_262484M","vitro-flex":"_system-exception-dialog_vitro-flex_EHka5VC","vitro-settings-list":"_system-exception-dialog_vitro-settings-list_6N3QiPa","vitro-checkbox":"_system-exception-dialog_vitro-checkbox_354NjHR"};
|
|
85075
84145
|
|
|
85076
84146
|
var settingsList = [LOCALE$d.SETTING_SCREENSHOT, LOCALE$d.SETTING_EXCEPTION_TEXT, LOCALE$d.SETTING_USER_NAME, LOCALE$d.SETTING_SYSTEM_INFO];
|
|
85077
84147
|
var SystemExceptionDialog = function SystemExceptionDialog(props) {
|
|
@@ -85121,52 +84191,52 @@ var SystemExceptionDialog = function SystemExceptionDialog(props) {
|
|
|
85121
84191
|
text: props.labelConfirm || localeService.create(LOCALE$d.ACTION_SEND)
|
|
85122
84192
|
}];
|
|
85123
84193
|
var hiddenContent = React__default.createElement("div", {
|
|
85124
|
-
className: styles$
|
|
84194
|
+
className: styles$1I['vitro-settings-list']
|
|
85125
84195
|
}, settingsList.map(function (name, index) {
|
|
85126
84196
|
return React__default.createElement("div", {
|
|
85127
84197
|
key: index,
|
|
85128
|
-
className: styles$
|
|
84198
|
+
className: styles$1I['vitro-flex']
|
|
85129
84199
|
}, React__default.createElement(Checkbox, {
|
|
85130
84200
|
label: CTRL.EMPTY,
|
|
85131
84201
|
name: name,
|
|
85132
84202
|
value: true,
|
|
85133
84203
|
onChange: onChangeSetting,
|
|
85134
|
-
className: styles$
|
|
84204
|
+
className: styles$1I['vitro-checkbox']
|
|
85135
84205
|
}), getCheckboxLabel(name));
|
|
85136
84206
|
}));
|
|
85137
84207
|
return React__default.createElement(Dialog, {
|
|
85138
84208
|
title: localeService.create(LOCALE$d.TITLE),
|
|
85139
84209
|
subtitle: isMobileView ? CTRL.EMPTY : localeService.create(LOCALE$d.SUBTITLE),
|
|
85140
84210
|
image: React__default.createElement("div", {
|
|
85141
|
-
className: styles$
|
|
84211
|
+
className: styles$1I['vitro-image']
|
|
85142
84212
|
}),
|
|
85143
84213
|
onClose: props.onCancel,
|
|
85144
84214
|
buttonList: buttonList,
|
|
85145
84215
|
labelClose: props.labelClose,
|
|
85146
|
-
className: styles$
|
|
84216
|
+
className: styles$1I['vitro-system-exception-dialog'],
|
|
85147
84217
|
hiddenContent: hiddenContent,
|
|
85148
84218
|
zIndex: props.zIndex,
|
|
85149
84219
|
isDismissible: true
|
|
85150
84220
|
}, React__default.createElement(DialogContent, null, isMobileView && React__default.createElement(Label, {
|
|
85151
84221
|
text: localeService.create(LOCALE$d.SUBTITLE),
|
|
85152
|
-
className: styles$
|
|
84222
|
+
className: styles$1I['vitro-label']
|
|
85153
84223
|
}), React__default.createElement(Input, {
|
|
85154
84224
|
ref: inputRef,
|
|
85155
|
-
className: styles$
|
|
84225
|
+
className: styles$1I['vitro-input'],
|
|
85156
84226
|
isMultiline: true
|
|
85157
84227
|
}), props.message && React__default.createElement("div", {
|
|
85158
|
-
className: styles$
|
|
84228
|
+
className: styles$1I['vitro-exception']
|
|
85159
84229
|
}, React__default.createElement(ScrollBar, null, React__default.createElement("div", {
|
|
85160
84230
|
onCut: blockAction,
|
|
85161
84231
|
onPaste: blockAction,
|
|
85162
84232
|
onBeforeInput: blockAction,
|
|
85163
84233
|
spellCheck: false,
|
|
85164
84234
|
contentEditable: true,
|
|
85165
|
-
className: styles$
|
|
84235
|
+
className: styles$1I['vitro-exception-message']
|
|
85166
84236
|
}, props.message)))));
|
|
85167
84237
|
};
|
|
85168
84238
|
|
|
85169
|
-
var styles$
|
|
84239
|
+
var styles$1J = {"vitro-star-button":"_star-button_vitro-star-button_1_mQ_Gq","vitro-hidden":"_star-button_vitro-hidden_oRKUkzt","vitro-active":"_star-button_vitro-active_2UV6u5C"};
|
|
85170
84240
|
|
|
85171
84241
|
var StarButton = function StarButton(props) {
|
|
85172
84242
|
var _useState = React.useState(props.isActive || false),
|
|
@@ -85183,11 +84253,11 @@ var StarButton = function StarButton(props) {
|
|
|
85183
84253
|
};
|
|
85184
84254
|
return React__default.createElement("button", {
|
|
85185
84255
|
onClick: onClick,
|
|
85186
|
-
className: styles$
|
|
84256
|
+
className: styles$1J['vitro-star-button'] + (isActive ? CTRL.SPACE + styles$1J['vitro-active'] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
85187
84257
|
});
|
|
85188
84258
|
};
|
|
85189
84259
|
|
|
85190
|
-
var styles$
|
|
84260
|
+
var styles$1K = {"vitro-item":"_site-item_vitro-item_1eSpRGl","vitro-active":"_site-item_vitro-active_1d0nDLb","vitro-name":"_site-item_vitro-name_141-LTn","vitro-image":"_site-item_vitro-image_3wrW9q4","vitro-default-image":"_site-item_vitro-default-image_fcWWNwv","vitro-hidden":"_site-item_vitro-hidden_d6n2ocz","vitro-mobile-view":"_site-item_vitro-mobile-view_3bXuBr6"};
|
|
85191
84261
|
|
|
85192
84262
|
var SiteSelectItem = function SiteSelectItem(props) {
|
|
85193
84263
|
var _useState = React.useState(props.isStarActive || false),
|
|
@@ -85213,7 +84283,7 @@ var SiteSelectItem = function SiteSelectItem(props) {
|
|
|
85213
84283
|
props.onMouseDown(e);
|
|
85214
84284
|
}
|
|
85215
84285
|
};
|
|
85216
|
-
var className = [styles$
|
|
84286
|
+
var className = [styles$1K['vitro-item'], props.className || CTRL.EMPTY, props.isActive ? styles$1K['vitro-active'] : CTRL.EMPTY, props.isMobileView && styles$1K['vitro-mobile-view']].join(CTRL.SPACE);
|
|
85217
84287
|
return React__default.createElement(FlexBox, {
|
|
85218
84288
|
onClick: props.onClick,
|
|
85219
84289
|
onMouseDown: onMouseDown,
|
|
@@ -85222,19 +84292,19 @@ var SiteSelectItem = function SiteSelectItem(props) {
|
|
|
85222
84292
|
className: className
|
|
85223
84293
|
}, props.imageUrl ? React__default.createElement(Image, {
|
|
85224
84294
|
defaultUrl: props.imageUrl,
|
|
85225
|
-
className: styles$
|
|
84295
|
+
className: styles$1K['vitro-image']
|
|
85226
84296
|
}) : React__default.createElement("div", {
|
|
85227
|
-
className: styles$
|
|
84297
|
+
className: styles$1K['vitro-default-image']
|
|
85228
84298
|
}), React__default.createElement("div", {
|
|
85229
|
-
className: styles$
|
|
84299
|
+
className: styles$1K['vitro-name']
|
|
85230
84300
|
}, props.name), props.onStar && React__default.createElement(StarButton, {
|
|
85231
84301
|
onChange: props.onStar,
|
|
85232
84302
|
isActive: props.isStarActive,
|
|
85233
|
-
className: isShowStar || props.isStarActive ? CTRL.EMPTY : styles$
|
|
84303
|
+
className: isShowStar || props.isStarActive ? CTRL.EMPTY : styles$1K['vitro-hidden']
|
|
85234
84304
|
}));
|
|
85235
84305
|
};
|
|
85236
84306
|
|
|
85237
|
-
var styles$
|
|
84307
|
+
var styles$1L = {"vitro-site-select":"_site-select_vitro-site-select_2irDOFZ","vitro-flex":"_site-select_vitro-flex_15EJnju","vitro-expand":"_site-select_vitro-expand_KKfRtc8","vitro-collapse":"_site-select_vitro-collapse_B0ZjAm-","vitro-site-list":"_site-select_vitro-site-list_1Yt4nLj","vitro-title":"_site-select_vitro-title_2vfT7F5","vitro-search-input":"_site-select_vitro-search-input_UMmv9PP","vitro-root-item":"_site-select_vitro-root-item_f1rGcQ4","vitro-slide-up-panel":"_site-select_vitro-slide-up-panel_U3Xn-UQ","vitro-search-value-list":"_site-select_vitro-search-value-list_3XlFSA6"};
|
|
85238
84308
|
|
|
85239
84309
|
var SiteSelect = function SiteSelect(props) {
|
|
85240
84310
|
var _props$activeItem;
|
|
@@ -85338,8 +84408,8 @@ var SiteSelect = function SiteSelect(props) {
|
|
|
85338
84408
|
itemList: visibleItemList,
|
|
85339
84409
|
valueTemplate: getItem,
|
|
85340
84410
|
filterValueTemplate: filterValueTemplate,
|
|
85341
|
-
className: styles$
|
|
85342
|
-
inputClassName: styles$
|
|
84411
|
+
className: styles$1L['vitro-search-value-list'],
|
|
84412
|
+
inputClassName: styles$1L['vitro-search-input']
|
|
85343
84413
|
}, props.rootItem && React__default.createElement(SiteSelectItem, Object.assign({}, props.rootItem, {
|
|
85344
84414
|
isMobileView: isMobileView,
|
|
85345
84415
|
onClick: function onClick() {
|
|
@@ -85348,49 +84418,49 @@ var SiteSelect = function SiteSelect(props) {
|
|
|
85348
84418
|
onMouseDown: function onMouseDown(e) {
|
|
85349
84419
|
return props.rootItem && onItemMouseDown(props.rootItem, e);
|
|
85350
84420
|
},
|
|
85351
|
-
className: styles$
|
|
84421
|
+
className: styles$1L['vitro-root-item']
|
|
85352
84422
|
})), (props.title || props.onStarChange) && React__default.createElement(FlexBox, {
|
|
85353
|
-
className: styles$
|
|
84423
|
+
className: styles$1L['vitro-title']
|
|
85354
84424
|
}, props.title, props.onStarChange && React__default.createElement(StarButton, {
|
|
85355
84425
|
onChange: filterStarActive
|
|
85356
84426
|
})));
|
|
85357
84427
|
return React__default.createElement("div", {
|
|
85358
|
-
className: styles$
|
|
84428
|
+
className: styles$1L['vitro-site-select']
|
|
85359
84429
|
}, React__default.createElement(FlexBox, {
|
|
85360
|
-
className: styles$
|
|
84430
|
+
className: styles$1L['vitro-flex'],
|
|
85361
84431
|
ref: flexBoxRef
|
|
85362
84432
|
}, React__default.createElement("h2", {
|
|
85363
84433
|
onClick: onClick
|
|
85364
84434
|
}, (_props$activeItem = props.activeItem) === null || _props$activeItem === void 0 ? void 0 : _props$activeItem.name), React__default.createElement(ImageButton, {
|
|
85365
|
-
className: isExpanded ? styles$
|
|
84435
|
+
className: isExpanded ? styles$1L['vitro-collapse'] : styles$1L['vitro-expand'],
|
|
85366
84436
|
onClick: onClick
|
|
85367
84437
|
})), isMobileView && React__default.createElement(SlideUpPanel, {
|
|
85368
|
-
className: styles$
|
|
84438
|
+
className: styles$1L['vitro-slide-up-panel'],
|
|
85369
84439
|
isShow: isExpanded,
|
|
85370
84440
|
onClose: function onClose() {
|
|
85371
84441
|
return setIsExpanded(false);
|
|
85372
84442
|
}
|
|
85373
84443
|
}, content), !isMobileView && isExpanded && React__default.createElement("div", {
|
|
85374
|
-
className: styles$
|
|
84444
|
+
className: styles$1L['vitro-site-list'],
|
|
85375
84445
|
ref: listRef
|
|
85376
84446
|
}, content));
|
|
85377
84447
|
};
|
|
85378
84448
|
|
|
85379
|
-
var styles$
|
|
84449
|
+
var styles$1M = {"vitro-bottom":"_bottom-align-control-group_vitro-bottom_3-a5nWD"};
|
|
85380
84450
|
|
|
85381
84451
|
var BottomAlignControlGroup = function BottomAlignControlGroup(props) {
|
|
85382
84452
|
return React__default.createElement("div", {
|
|
85383
|
-
className: styles$
|
|
84453
|
+
className: styles$1M['vitro-bottom']
|
|
85384
84454
|
}, props.children);
|
|
85385
84455
|
};
|
|
85386
84456
|
|
|
85387
|
-
var styles$
|
|
84457
|
+
var styles$1N = {"vitro-linear-progress":"_linear-progress_vitro-linear-progress_1i4VVyb","vitro-bar":"_linear-progress_vitro-bar_2rwmbp3","progress":"_linear-progress_progress_11DTdlB"};
|
|
85388
84458
|
|
|
85389
84459
|
var LinearProgress = function LinearProgress(props) {
|
|
85390
84460
|
return React__default.createElement("div", {
|
|
85391
|
-
className: styles$
|
|
84461
|
+
className: styles$1N['vitro-linear-progress'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
85392
84462
|
}, React__default.createElement("div", {
|
|
85393
|
-
className: styles$
|
|
84463
|
+
className: styles$1N['vitro-bar']
|
|
85394
84464
|
}));
|
|
85395
84465
|
};
|
|
85396
84466
|
|
|
@@ -85524,7 +84594,7 @@ var Thumbnail = function Thumbnail(props) {
|
|
|
85524
84594
|
})), React__default.createElement("span", null, props.name)));
|
|
85525
84595
|
};
|
|
85526
84596
|
|
|
85527
|
-
var w$
|
|
84597
|
+
var w$a = window;
|
|
85528
84598
|
var CSS_CLASS_SIDEBAR_CONTENT$1 = 'sidebar-content';
|
|
85529
84599
|
var ID_FILE_VERSION_SELECT$2 = 'fileVersionSelect';
|
|
85530
84600
|
var ID_SIDEBAR_CONTENT = 'sidebarContent';
|
|
@@ -85539,7 +84609,7 @@ var Viewer$2 = function Viewer(props) {
|
|
|
85539
84609
|
}, [props.context.file]);
|
|
85540
84610
|
var init = function init() {
|
|
85541
84611
|
var initViewer = function initViewer() {
|
|
85542
|
-
if (w$
|
|
84612
|
+
if (w$a.initDxfViewer) {
|
|
85543
84613
|
initSearchCriterionList();
|
|
85544
84614
|
var context = _extends({}, props.context, {
|
|
85545
84615
|
selectIssue: selectIssue,
|
|
@@ -85552,7 +84622,7 @@ var Viewer$2 = function Viewer(props) {
|
|
|
85552
84622
|
initThumbnail: initThumbnail,
|
|
85553
84623
|
searchIssueListEvent: EVENT_SEARCH_ISSUE_LIST$1
|
|
85554
84624
|
});
|
|
85555
|
-
w$
|
|
84625
|
+
w$a.initDxfViewer(context);
|
|
85556
84626
|
initFileVersionSelect();
|
|
85557
84627
|
initThumbnailList(context);
|
|
85558
84628
|
} else {
|
|
@@ -85569,7 +84639,7 @@ var Viewer$2 = function Viewer(props) {
|
|
|
85569
84639
|
};
|
|
85570
84640
|
var initSearchCriterionList = function initSearchCriterionList() {
|
|
85571
84641
|
if (props.context.searchCriterionList) {
|
|
85572
|
-
w$
|
|
84642
|
+
w$a.searchCriterionList = props.context.searchCriterionList;
|
|
85573
84643
|
}
|
|
85574
84644
|
};
|
|
85575
84645
|
var renderIssueList = function renderIssueList(context, sidebar, searchCriterionList) {
|
|
@@ -85715,7 +84785,7 @@ var DxfViewer = function DxfViewer(props) {
|
|
|
85715
84785
|
});
|
|
85716
84786
|
};
|
|
85717
84787
|
|
|
85718
|
-
var styles$
|
|
84788
|
+
var styles$1O = {"vitro-select":"_select_vitro-select_EObExkL","vitro-active":"_select_vitro-active_3I2oZ9Y","vitro-label":"_select_vitro-label_1sD79dR","vitro-list-container":"_select_vitro-list-container_1iaPtG5","vitro-item":"_select_vitro-item_3Q88bWt"};
|
|
85719
84789
|
|
|
85720
84790
|
var Select = function Select(props) {
|
|
85721
84791
|
var _useState = React.useState(null),
|
|
@@ -85760,11 +84830,11 @@ var Select = function Select(props) {
|
|
|
85760
84830
|
};
|
|
85761
84831
|
var defaultItemTemplate = function defaultItemTemplate(props) {
|
|
85762
84832
|
return React__default.createElement("div", {
|
|
85763
|
-
className: styles$
|
|
84833
|
+
className: styles$1O['vitro-item']
|
|
85764
84834
|
}, props.text);
|
|
85765
84835
|
};
|
|
85766
84836
|
var itemTemplate = props.itemTemplate ? props.itemTemplate : defaultItemTemplate;
|
|
85767
|
-
var className = [styles$
|
|
84837
|
+
var className = [styles$1O['vitro-select'], isExpanded ? styles$1O['vitro-active'] : CTRL.EMPTY, props.className || CTRL.EMPTY].join(CTRL.SPACE);
|
|
85768
84838
|
if (!props.itemList.length || !value) {
|
|
85769
84839
|
return null;
|
|
85770
84840
|
}
|
|
@@ -85777,9 +84847,9 @@ var Select = function Select(props) {
|
|
|
85777
84847
|
ref: flexBoxRef
|
|
85778
84848
|
}, props.label && React__default.createElement(Label, {
|
|
85779
84849
|
text: props.label,
|
|
85780
|
-
className: styles$
|
|
84850
|
+
className: styles$1O['vitro-label']
|
|
85781
84851
|
}), React__default.createElement(itemTemplate, value), React__default.createElement("div", {
|
|
85782
|
-
className: styles$
|
|
84852
|
+
className: styles$1O['vitro-list-container'],
|
|
85783
84853
|
ref: listRef
|
|
85784
84854
|
}, React__default.createElement(List$1, {
|
|
85785
84855
|
itemList: props.itemList,
|
|
@@ -85788,7 +84858,7 @@ var Select = function Select(props) {
|
|
|
85788
84858
|
})));
|
|
85789
84859
|
};
|
|
85790
84860
|
|
|
85791
|
-
var styles$
|
|
84861
|
+
var styles$1P = {"vitro-switch":"_switch_vitro-switch_1noCcra","vitro-slider":"_switch_vitro-slider_3wesxda","vitro-active":"_switch_vitro-active_3LJI9TW"};
|
|
85792
84862
|
|
|
85793
84863
|
var Switch = function Switch(props) {
|
|
85794
84864
|
var _useState = React.useState(props.value ? true : false),
|
|
@@ -85802,7 +84872,7 @@ var Switch = function Switch(props) {
|
|
|
85802
84872
|
setValue(!value);
|
|
85803
84873
|
};
|
|
85804
84874
|
return React__default.createElement("label", {
|
|
85805
|
-
className: styles$
|
|
84875
|
+
className: styles$1P['vitro-switch'] + (value ? CTRL.SPACE + styles$1P['vitro-active'] : CTRL.EMPTY)
|
|
85806
84876
|
}, React__default.createElement("input", {
|
|
85807
84877
|
checked: value,
|
|
85808
84878
|
type: 'checkbox',
|
|
@@ -85810,11 +84880,11 @@ var Switch = function Switch(props) {
|
|
|
85810
84880
|
onChange: onChange,
|
|
85811
84881
|
disabled: props.isDisabled
|
|
85812
84882
|
}), React__default.createElement("span", {
|
|
85813
|
-
className: styles$
|
|
84883
|
+
className: styles$1P['vitro-slider']
|
|
85814
84884
|
}));
|
|
85815
84885
|
};
|
|
85816
84886
|
|
|
85817
|
-
var styles$
|
|
84887
|
+
var styles$1Q = {"vitro-editable-list":"_editable-list_vitro-editable-list_2y8aXbO","vitro-header":"_editable-list_vitro-header_3ilVZhe","vitro-create-button":"_editable-list_vitro-create-button_3E1aQDB","vitro-editable-item":"_editable-list_vitro-editable-item_cWSWi1n","vitro-active":"_editable-list_vitro-active_39PUrSM","vitro-button-container":"_editable-list_vitro-button-container_1okfn08","vitro-dropdown-menu-top":"_editable-list_vitro-dropdown-menu-top_1miFWtX","vitro-display-none":"_editable-list_vitro-display-none_1nqU_hD","vitro-mobile":"_editable-list_vitro-mobile_2IDiwft","vitro-editable-item-icon":"_editable-list_vitro-editable-item-icon_29jFw_f","vitro-readonly":"_editable-list_vitro-readonly_2pK9bq5","vitro-editable-item-label":"_editable-list_vitro-editable-item-label_3ViAKDq","vitro-dropdown-button":"_editable-list_vitro-dropdown-button_vPtNQxA","vitro-header-mobile":"_editable-list_vitro-header-mobile_2EMihKc"};
|
|
85818
84888
|
|
|
85819
84889
|
var CSS_CLASS_MOBILE = 'vitro-mobile';
|
|
85820
84890
|
var CSS_DROPDOWN_MENU_TOP = 'vitro-dropdown-menu-top';
|
|
@@ -85830,6 +84900,12 @@ var EditableItem = function EditableItem(props) {
|
|
|
85830
84900
|
var _useState3 = React.useState([]),
|
|
85831
84901
|
dropdownItemList = _useState3[0],
|
|
85832
84902
|
setDropdownItemList = _useState3[1];
|
|
84903
|
+
var dropdownButtonRef = React.useRef(null);
|
|
84904
|
+
React.useEffect(function () {
|
|
84905
|
+
if (props.isActive && props.isDropdownActive && dropdownButtonRef.current) {
|
|
84906
|
+
dropdownButtonRef.current.toggle();
|
|
84907
|
+
}
|
|
84908
|
+
}, [props.isDropdownActive, props.isActive]);
|
|
85833
84909
|
React.useEffect(function () {
|
|
85834
84910
|
setText(props.text);
|
|
85835
84911
|
}, [props.text]);
|
|
@@ -85837,7 +84913,7 @@ var EditableItem = function EditableItem(props) {
|
|
|
85837
84913
|
if (props.isDropdownActive) {
|
|
85838
84914
|
if (props.dropdownItemList) {
|
|
85839
84915
|
setDropdownItemList(props.dropdownItemList);
|
|
85840
|
-
} else if (props.getDropdownItemList) {
|
|
84916
|
+
} else if (props.getDropdownItemList && !dropdownItemList.length) {
|
|
85841
84917
|
props.getDropdownItemList(props.id).then(function (itemList) {
|
|
85842
84918
|
setDropdownItemList(itemList);
|
|
85843
84919
|
});
|
|
@@ -85851,8 +84927,8 @@ var EditableItem = function EditableItem(props) {
|
|
|
85851
84927
|
var onBlur = function onBlur(e) {
|
|
85852
84928
|
props.onBlur(e.target.value);
|
|
85853
84929
|
};
|
|
85854
|
-
var onToggleDropdownButton = function onToggleDropdownButton(
|
|
85855
|
-
e.
|
|
84930
|
+
var onToggleDropdownButton = function onToggleDropdownButton(e, state) {
|
|
84931
|
+
e.stopPropagation();
|
|
85856
84932
|
if (props.onToggleDropdown) {
|
|
85857
84933
|
props.onToggleDropdown(state);
|
|
85858
84934
|
}
|
|
@@ -85862,7 +84938,7 @@ var EditableItem = function EditableItem(props) {
|
|
|
85862
84938
|
var rect = element.getBoundingClientRect();
|
|
85863
84939
|
if (!isDropdownMenuTop(element.classList) || isDropdownMenuTop(element.classList) && rect.y > window.innerHeight) {
|
|
85864
84940
|
if (rect.y > window.innerHeight) {
|
|
85865
|
-
element.classList.add(styles$
|
|
84941
|
+
element.classList.add(styles$1Q[CSS_DROPDOWN_MENU_TOP]);
|
|
85866
84942
|
element.style.transform = "translate(calc(100% - " + (TRANSLATE_X + UNIT.PX) + "), calc(-" + (props.scrollTop + UNIT.PX) + " - 100% - " + (TRANSLATE_Y + UNIT.PX) + "))";
|
|
85867
84943
|
} else {
|
|
85868
84944
|
element.style.transform = "translate(calc(100% - " + (TRANSLATE_X + UNIT.PX) + "), -" + (props.scrollTop + UNIT.PX) + ")";
|
|
@@ -85886,14 +84962,14 @@ var EditableItem = function EditableItem(props) {
|
|
|
85886
84962
|
onMouseLeave: function onMouseLeave() {
|
|
85887
84963
|
return setIsHover(false);
|
|
85888
84964
|
},
|
|
85889
|
-
className: styles$
|
|
84965
|
+
className: styles$1Q['vitro-editable-item'] + (props.isActive ? CTRL.SPACE + styles$1Q['vitro-active'] : CTRL.EMPTY) + (props.isMobileView ? CTRL.SPACE + styles$1Q[CSS_CLASS_MOBILE] : CTRL.EMPTY)
|
|
85890
84966
|
}, props.isMobileView && props.button ? props.button : null, props.isMobileView && props.icon ? React__default.createElement("span", {
|
|
85891
|
-
className: styles$
|
|
84967
|
+
className: styles$1Q['vitro-editable-item-icon']
|
|
85892
84968
|
}, React__default.createElement("img", {
|
|
85893
84969
|
src: props.icon
|
|
85894
84970
|
})) : null, props.isMobileView ? React__default.createElement(Label, {
|
|
85895
84971
|
text: props.text || text,
|
|
85896
|
-
className: styles$
|
|
84972
|
+
className: styles$1Q['vitro-editable-item-label']
|
|
85897
84973
|
}) : props.isEditMode ? React__default.createElement("input", {
|
|
85898
84974
|
value: text,
|
|
85899
84975
|
onChange: onChange,
|
|
@@ -85902,17 +84978,15 @@ var EditableItem = function EditableItem(props) {
|
|
|
85902
84978
|
}) : React__default.createElement(Label, {
|
|
85903
84979
|
text: props.text || text
|
|
85904
84980
|
}), React__default.createElement("div", {
|
|
85905
|
-
className: styles$
|
|
84981
|
+
className: styles$1Q['vitro-button-container']
|
|
85906
84982
|
}, !props.isReadOnly && (props.dropdownItemList || props.getDropdownItemList) ? React__default.createElement(DropdownButton, {
|
|
84983
|
+
ref: dropdownButtonRef,
|
|
85907
84984
|
itemList: dropdownItemList,
|
|
85908
|
-
|
|
85909
|
-
|
|
85910
|
-
|
|
85911
|
-
isFlip: props.isMobileView,
|
|
85912
|
-
popperConfig: props.popperConfig,
|
|
85913
|
-
onGetMenuRef: props.isMobileView ? undefined : initDropdownMenuPosition
|
|
84985
|
+
className: STYLE$1.CONTEXT + (!props.isMobileView ? props.isActive || isHover ? CTRL.EMPTY : CTRL.SPACE + styles$1Q['vitro-display-none'] : CTRL.EMPTY),
|
|
84986
|
+
onGetMenuRef: props.isMobileView ? undefined : initDropdownMenuPosition,
|
|
84987
|
+
onClick: onToggleDropdownButton
|
|
85914
84988
|
}) : null, !props.isMobileView && props.button && React__default.createElement(FlexBox, {
|
|
85915
|
-
className: !props.isReadOnly && (props.isActive || isHover) && (props.dropdownItemList || props.getDropdownItemList) ? styles$
|
|
84989
|
+
className: !props.isReadOnly && (props.isActive || isHover) && (props.dropdownItemList || props.getDropdownItemList) ? styles$1Q['vitro-display-none'] : props.isReadOnly ? styles$1Q['vitro-readonly'] : CTRL.EMPTY
|
|
85916
84990
|
}, props.button)));
|
|
85917
84991
|
};
|
|
85918
84992
|
|
|
@@ -86000,9 +85074,9 @@ var EditableList = function EditableList(props) {
|
|
|
86000
85074
|
}
|
|
86001
85075
|
};
|
|
86002
85076
|
return React__default.createElement(FlexBox, {
|
|
86003
|
-
className: styles$
|
|
85077
|
+
className: styles$1Q[CSS_CLASS_EDITABLE_LIST] + (props.isMobileView ? CTRL.SPACE + styles$1Q[CSS_CLASS_EDITABLE_LIST_MOBILE] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86004
85078
|
}, React__default.createElement(FlexBox, {
|
|
86005
|
-
className: styles$
|
|
85079
|
+
className: styles$1Q[CSS_CLASS_HEADER] + (props.isMobileView ? CTRL.SPACE + styles$1Q[CSS_CLASS_HEADER_MOBILE] : CTRL.EMPTY)
|
|
86006
85080
|
}, props.title && React__default.createElement(Heading, {
|
|
86007
85081
|
tag: TAG.H3,
|
|
86008
85082
|
text: props.title
|
|
@@ -86010,7 +85084,7 @@ var EditableList = function EditableList(props) {
|
|
|
86010
85084
|
text: props.createButtonTooltip || CTRL.EMPTY
|
|
86011
85085
|
}, React__default.createElement(ImageButton, {
|
|
86012
85086
|
onClick: onCreate,
|
|
86013
|
-
className: styles$
|
|
85087
|
+
className: styles$1Q[CSS_CLASS_CREATE_BUTTON]
|
|
86014
85088
|
}))), props.isMobileView ? React__default.createElement(React__default.Fragment, null, React__default.createElement(List$1, {
|
|
86015
85089
|
itemList: props.itemList,
|
|
86016
85090
|
itemTemplate: function itemTemplate(item) {
|
|
@@ -86089,7 +85163,7 @@ var EditableList = function EditableList(props) {
|
|
|
86089
85163
|
}))));
|
|
86090
85164
|
};
|
|
86091
85165
|
|
|
86092
|
-
var styles$
|
|
85166
|
+
var styles$1R = {"vitro-reorderable-list":"_reorderable-list_vitro-reorderable-list_3Vinbji","vitro-reorderable-item":"_reorderable-list_vitro-reorderable-item_2gH3muk","vitro-drag-button":"_reorderable-list_vitro-drag-button_2gzxwKx","vitro-dragged-item":"_reorderable-list_vitro-dragged-item_fft3ham","vitro-drop-zone":"_reorderable-list_vitro-drop-zone_15pbLJE","vitro-hidden":"_reorderable-list_vitro-hidden_2ZpMCYZ"};
|
|
86093
85167
|
|
|
86094
85168
|
var ReorderableListContent = function ReorderableListContent(props) {
|
|
86095
85169
|
return React__default.createElement(React__default.Fragment, null, props.draggedIndex !== null && React__default.createElement("div", {
|
|
@@ -86098,7 +85172,7 @@ var ReorderableListContent = function ReorderableListContent(props) {
|
|
|
86098
85172
|
top: props.position[1] + UNIT.PX,
|
|
86099
85173
|
width: props.draggedItemWidth ? props.draggedItemWidth + UNIT.PX : undefined
|
|
86100
85174
|
},
|
|
86101
|
-
className: styles$
|
|
85175
|
+
className: styles$1R['vitro-dragged-item']
|
|
86102
85176
|
}, props.getItem(_extends({}, props.itemList[props.draggedIndex], {
|
|
86103
85177
|
index: -1
|
|
86104
85178
|
}), false)), React__default.createElement("li", {
|
|
@@ -86106,11 +85180,11 @@ var ReorderableListContent = function ReorderableListContent(props) {
|
|
|
86106
85180
|
width: props.draggedItemWidth ? props.draggedItemWidth + UNIT.PX : undefined
|
|
86107
85181
|
}
|
|
86108
85182
|
}, React__default.createElement("div", {
|
|
86109
|
-
className: styles$
|
|
85183
|
+
className: styles$1R['vitro-drop-zone'] + (props.draggedIndex === null || props.activeDropZoneIndex !== 0 ? CTRL.SPACE + styles$1R['vitro-hidden'] : CTRL.EMPTY)
|
|
86110
85184
|
})), props.itemList && props.itemList.map(function (item, index) {
|
|
86111
85185
|
return React__default.createElement("li", {
|
|
86112
85186
|
key: index,
|
|
86113
|
-
className: styles$
|
|
85187
|
+
className: styles$1R['vitro-reorderable-item'] + (props.itemClassName ? CTRL.SPACE + props.itemClassName : CTRL.EMPTY)
|
|
86114
85188
|
}, props.getItem(_extends({}, item, {
|
|
86115
85189
|
index: index
|
|
86116
85190
|
})));
|
|
@@ -86148,13 +85222,13 @@ var ReorderableItem = function ReorderableItem(props) {
|
|
|
86148
85222
|
ref: buttonRef,
|
|
86149
85223
|
onClick: function onClick() {},
|
|
86150
85224
|
onMouseDown: onMouseDown,
|
|
86151
|
-
className: styles$
|
|
85225
|
+
className: styles$1R['vitro-drag-button'],
|
|
86152
85226
|
onTouchStart: onTouchStart
|
|
86153
85227
|
}), props.children), props.isDropAllowed !== false && React__default.createElement("div", {
|
|
86154
85228
|
style: {
|
|
86155
85229
|
width: props.draggedItemWidth ? props.draggedItemWidth - 16 + UNIT.PX : undefined
|
|
86156
85230
|
},
|
|
86157
|
-
className: styles$
|
|
85231
|
+
className: styles$1R['vitro-drop-zone'] + (props.isDropZoneActive ? CTRL.EMPTY : CTRL.SPACE + styles$1R['vitro-hidden'])
|
|
86158
85232
|
}));
|
|
86159
85233
|
};
|
|
86160
85234
|
|
|
@@ -86214,7 +85288,7 @@ var ReorderableList = function ReorderableList(props) {
|
|
|
86214
85288
|
});
|
|
86215
85289
|
React.useEffect(function () {
|
|
86216
85290
|
if (draggedIndex !== null) {
|
|
86217
|
-
var elements = Array.from(document.getElementsByClassName(styles$
|
|
85291
|
+
var elements = Array.from(document.getElementsByClassName(styles$1R['vitro-drop-zone']));
|
|
86218
85292
|
var positions = elements.map(function (e) {
|
|
86219
85293
|
return e.getBoundingClientRect().top - startPosition.current[1];
|
|
86220
85294
|
});
|
|
@@ -86346,7 +85420,7 @@ var ReorderableList = function ReorderableList(props) {
|
|
|
86346
85420
|
});
|
|
86347
85421
|
}
|
|
86348
85422
|
return React__default.createElement("ul", {
|
|
86349
|
-
className: styles$
|
|
85423
|
+
className: styles$1R['vitro-list'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86350
85424
|
}, React__default.createElement(ReorderableListContent, {
|
|
86351
85425
|
itemList: itemList,
|
|
86352
85426
|
draggedIndex: draggedIndex,
|
|
@@ -86358,7 +85432,7 @@ var ReorderableList = function ReorderableList(props) {
|
|
|
86358
85432
|
}));
|
|
86359
85433
|
};
|
|
86360
85434
|
|
|
86361
|
-
var styles$
|
|
85435
|
+
var styles$1S = {"vitro-checkbox-reorderable-list":"_checkbox-reorderable-list_vitro-checkbox-reorderable-list_3VUoUyI","vitro-reorderable-item":"_checkbox-reorderable-list_vitro-reorderable-item__ZSM4NT","vitro-checkbox":"_checkbox-reorderable-list_vitro-checkbox_3FVD6mG"};
|
|
86362
85436
|
|
|
86363
85437
|
var CheckboxReorderableList = function CheckboxReorderableList(props) {
|
|
86364
85438
|
var _useState = React.useState([]),
|
|
@@ -86459,27 +85533,27 @@ var CheckboxReorderableList = function CheckboxReorderableList(props) {
|
|
|
86459
85533
|
onChange: function onChange(value) {
|
|
86460
85534
|
return _onChange(value, item.id);
|
|
86461
85535
|
},
|
|
86462
|
-
className: styles$
|
|
85536
|
+
className: styles$1S['vitro-checkbox'] + (className ? CTRL.SPACE + className : CTRL.EMPTY)
|
|
86463
85537
|
});
|
|
86464
85538
|
};
|
|
86465
85539
|
return React__default.createElement("ul", {
|
|
86466
85540
|
ref: listRef,
|
|
86467
|
-
className: styles$
|
|
85541
|
+
className: styles$1S['vitro-checkbox-reorderable-list'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86468
85542
|
}, React__default.createElement(ReorderableList, {
|
|
86469
85543
|
itemList: reorderableItemList,
|
|
86470
85544
|
itemTemplate: getCheckbox,
|
|
86471
85545
|
onChange: onChangePosition,
|
|
86472
|
-
itemClassName: styles$
|
|
85546
|
+
itemClassName: styles$1S['vitro-reorderable-item'],
|
|
86473
85547
|
isCustomContainer: true
|
|
86474
85548
|
}), React__default.createElement(List$1, {
|
|
86475
85549
|
itemList: itemList,
|
|
86476
85550
|
itemTemplate: getCheckbox,
|
|
86477
|
-
itemClassName: styles$
|
|
85551
|
+
itemClassName: styles$1S['vitro-item'],
|
|
86478
85552
|
isCustomContainer: true
|
|
86479
85553
|
}));
|
|
86480
85554
|
};
|
|
86481
85555
|
|
|
86482
|
-
var styles$
|
|
85556
|
+
var styles$1T = {"vitro-pin-button":"_pin-button_vitro-pin-button_3DklgEh","vitro-active":"_pin-button_vitro-active_2PgztSG"};
|
|
86483
85557
|
|
|
86484
85558
|
var PinButton = function PinButton(props) {
|
|
86485
85559
|
var _useState = React.useState(props.isActive || false),
|
|
@@ -86498,11 +85572,11 @@ var PinButton = function PinButton(props) {
|
|
|
86498
85572
|
};
|
|
86499
85573
|
return React__default.createElement(ImageButton, {
|
|
86500
85574
|
onClick: onClick,
|
|
86501
|
-
className: styles$
|
|
85575
|
+
className: styles$1T['vitro-pin-button'] + (isActive ? CTRL.SPACE + styles$1T['vitro-active'] : CTRL.EMPTY) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86502
85576
|
});
|
|
86503
85577
|
};
|
|
86504
85578
|
|
|
86505
|
-
var styles$
|
|
85579
|
+
var styles$1U = {"vitro-file-list-dropdown":"_file-list_vitro-file-list-dropdown_1BOOwqC","vitro-file-list-dropdown-item":"_file-list_vitro-file-list-dropdown-item_WtaYXLN","vitro-file-list-dropdown-image":"_file-list_vitro-file-list-dropdown-image_OUWbJBZ","vitro-file-list-dropdown-item-text":"_file-list_vitro-file-list-dropdown-item-text_3U6fMu7"};
|
|
86506
85580
|
|
|
86507
85581
|
var CSS_CLASS_FILE_LIST_DROPDOWN = 'vitro-file-list-dropdown';
|
|
86508
85582
|
var CSS_CLASS_FILE_LIST_DROPDOWN_ITEM = 'vitro-file-list-dropdown-item';
|
|
@@ -86514,16 +85588,16 @@ var FileList = function FileList(props) {
|
|
|
86514
85588
|
props.onOpen(item);
|
|
86515
85589
|
};
|
|
86516
85590
|
return React__default.createElement("div", {
|
|
86517
|
-
className: styles$
|
|
85591
|
+
className: styles$1U[CSS_CLASS_FILE_LIST_DROPDOWN]
|
|
86518
85592
|
}, (_props$itemList = props.itemList) === null || _props$itemList === void 0 ? void 0 : _props$itemList.map(function (item) {
|
|
86519
85593
|
return React__default.createElement("div", {
|
|
86520
|
-
className: styles$
|
|
85594
|
+
className: styles$1U[CSS_CLASS_FILE_LIST_DROPDOWN_ITEM]
|
|
86521
85595
|
}, React__default.createElement("span", {
|
|
86522
|
-
className: styles$
|
|
85596
|
+
className: styles$1U[CSS_CLASS_FILE_LIST_DROPDOWN_ITEM_IMAGE]
|
|
86523
85597
|
}, item.icon ? React__default.createElement("img", {
|
|
86524
85598
|
src: item.icon
|
|
86525
85599
|
}) : CTRL.EMPTY), React__default.createElement("span", {
|
|
86526
|
-
className: styles$
|
|
85600
|
+
className: styles$1U[CSS_CLASS_FILE_LIST_DROPDOWN_ITEM_TEXT]
|
|
86527
85601
|
}, React__default.createElement("a", {
|
|
86528
85602
|
onClick: function onClick() {
|
|
86529
85603
|
return onOpen(item);
|
|
@@ -86537,7 +85611,7 @@ var LOCALE$e;
|
|
|
86537
85611
|
LOCALE["DROPZONE_LABEL"] = "app.common.filePicker.dropZoneLabel";
|
|
86538
85612
|
})(LOCALE$e || (LOCALE$e = {}));
|
|
86539
85613
|
|
|
86540
|
-
var styles$
|
|
85614
|
+
var styles$1V = {"vitro-file-picker":"_file-picker_vitro-file-picker_IV0PnKh","vitro-label":"_file-picker_vitro-label_1KY5QMW","vitro-scrollbar":"_file-picker_vitro-scrollbar_8t0LAkw","vitro-scrollbar-content":"_file-picker_vitro-scrollbar-content_3oLBqOf","vitro-drop-zone":"_file-picker_vitro-drop-zone_2xdKr3Y","vitro-drop-zone-active":"_file-picker_vitro-drop-zone-active_260SDRz","vitro-display-none":"_file-picker_vitro-display-none_RwEJqfN","vitro-file":"_file-picker_vitro-file_29jX2Dc","vitro-file-content":"_file-picker_vitro-file-content_1yV1plf","vitro-buttons-container":"_file-picker_vitro-buttons-container_2iewyGZ","vitro-download-button":"_file-picker_vitro-download-button_oKjHiUO","vitro-delete-button":"_file-picker_vitro-delete-button_29YhyRG"};
|
|
86541
85615
|
|
|
86542
85616
|
var FilePicker = function FilePicker(props) {
|
|
86543
85617
|
var _useState = React.useState(false),
|
|
@@ -86619,33 +85693,33 @@ var FilePicker = function FilePicker(props) {
|
|
|
86619
85693
|
}
|
|
86620
85694
|
};
|
|
86621
85695
|
return React__default.createElement(FlexBox, {
|
|
86622
|
-
className: styles$
|
|
85696
|
+
className: styles$1V['vitro-file-picker'],
|
|
86623
85697
|
ref: ref,
|
|
86624
85698
|
isColumn: true
|
|
86625
85699
|
}, React__default.createElement(Label, {
|
|
86626
85700
|
text: props.label,
|
|
86627
85701
|
isRequired: props.isRequired,
|
|
86628
|
-
className: styles$
|
|
85702
|
+
className: styles$1V['vitro-label']
|
|
86629
85703
|
}), props.value && props.value.length ? React__default.createElement(ScrollBar, {
|
|
86630
|
-
className: styles$
|
|
86631
|
-
contentClassName: styles$
|
|
85704
|
+
className: styles$1V['vitro-scrollbar'],
|
|
85705
|
+
contentClassName: styles$1V['vitro-scrollbar-content']
|
|
86632
85706
|
}, props.value.map(function (item, index) {
|
|
86633
85707
|
return React__default.createElement(File, Object.assign({}, item, {
|
|
86634
85708
|
key: index,
|
|
86635
|
-
className: styles$
|
|
86636
|
-
contentClassName: styles$
|
|
85709
|
+
className: styles$1V['vitro-file'],
|
|
85710
|
+
contentClassName: styles$1V['vitro-file-content']
|
|
86637
85711
|
}), React__default.createElement(FlexBox, {
|
|
86638
|
-
className: styles$
|
|
85712
|
+
className: styles$1V['vitro-buttons-container']
|
|
86639
85713
|
}, props.onDownload && item.isDownloadEnabled !== false && React__default.createElement(ImageButton, {
|
|
86640
85714
|
onClick: function onClick() {
|
|
86641
85715
|
return onDownload(item.id, item.name);
|
|
86642
85716
|
},
|
|
86643
|
-
className: styles$
|
|
85717
|
+
className: styles$1V['vitro-download-button']
|
|
86644
85718
|
}), !props.isReadOnly && props.onDelete && React__default.createElement(ImageButton, {
|
|
86645
85719
|
onClick: function onClick() {
|
|
86646
85720
|
return onDelete(item.id);
|
|
86647
85721
|
},
|
|
86648
|
-
className: styles$
|
|
85722
|
+
className: styles$1V['vitro-delete-button']
|
|
86649
85723
|
})));
|
|
86650
85724
|
})) : null, !props.isReadOnly && React__default.createElement(DropZone, {
|
|
86651
85725
|
onClick: onClick,
|
|
@@ -86653,12 +85727,12 @@ var FilePicker = function FilePicker(props) {
|
|
|
86653
85727
|
onDragOver: onDragOver,
|
|
86654
85728
|
onDragLeave: onDragLeave,
|
|
86655
85729
|
label: localeService.create(LOCALE$e.DROPZONE_LABEL),
|
|
86656
|
-
className: isDropZoneActive ? styles$
|
|
85730
|
+
className: isDropZoneActive ? styles$1V['vitro-drop-zone-active'] : styles$1V['vitro-drop-zone']
|
|
86657
85731
|
}), React__default.createElement("input", {
|
|
86658
85732
|
type: 'file',
|
|
86659
85733
|
onChange: onSelectFile,
|
|
86660
85734
|
ref: fileInputRef,
|
|
86661
|
-
className: styles$
|
|
85735
|
+
className: styles$1V['vitro-display-none'],
|
|
86662
85736
|
multiple: props.isMultiSelect
|
|
86663
85737
|
}), props.errorMessage && React__default.createElement(ErrorMessage, {
|
|
86664
85738
|
text: props.errorMessage
|
|
@@ -86759,7 +85833,7 @@ var TelerikMediaPlayerServiceImpl = /*#__PURE__*/function () {
|
|
|
86759
85833
|
return TelerikMediaPlayerServiceImpl;
|
|
86760
85834
|
}();
|
|
86761
85835
|
|
|
86762
|
-
var styles$
|
|
85836
|
+
var styles$1W = {"vitro-video-viewer":"_video-viewer_vitro-video-viewer_1KHO5IM","vitro-header":"_video-viewer_vitro-header_hwAjLDd","vitro-body":"_video-viewer_vitro-body_124aVK2","vitro-button-close":"_video-viewer_vitro-button-close_TB-QCiO","vitro-player":"_video-viewer_vitro-player_2JJVj_u"};
|
|
86763
85837
|
|
|
86764
85838
|
var VideoViewer = React.forwardRef(function (props, ref) {
|
|
86765
85839
|
var _useState = React.useState(),
|
|
@@ -86815,37 +85889,37 @@ var VideoViewer = React.forwardRef(function (props, ref) {
|
|
|
86815
85889
|
}
|
|
86816
85890
|
};
|
|
86817
85891
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
86818
|
-
className: styles$
|
|
85892
|
+
className: styles$1W['vitro-video-viewer']
|
|
86819
85893
|
}, React__default.createElement("div", {
|
|
86820
|
-
className: styles$
|
|
85894
|
+
className: styles$1W['vitro-header']
|
|
86821
85895
|
}, React__default.createElement("button", {
|
|
86822
|
-
className: styles$
|
|
85896
|
+
className: styles$1W['vitro-button-close'],
|
|
86823
85897
|
onClick: props.onCloseClick
|
|
86824
85898
|
})), React__default.createElement("div", {
|
|
86825
|
-
className: styles$
|
|
85899
|
+
className: styles$1W['vitro-body']
|
|
86826
85900
|
}, React__default.createElement("div", {
|
|
86827
|
-
className: styles$
|
|
85901
|
+
className: styles$1W['vitro-player'],
|
|
86828
85902
|
ref: playerContainerRef
|
|
86829
85903
|
}))));
|
|
86830
85904
|
});
|
|
86831
85905
|
|
|
86832
|
-
var styles$
|
|
85906
|
+
var styles$1X = {"vitro-separator":"_separator_vitro-separator_1TmOy37","vitro-separator-vertical":"_separator_vitro-separator-vertical_2ePwXRL"};
|
|
86833
85907
|
|
|
86834
85908
|
var Separator = function Separator(props) {
|
|
86835
85909
|
return React__default.createElement("div", {
|
|
86836
|
-
className: props.isVertical ? styles$
|
|
85910
|
+
className: props.isVertical ? styles$1X['vitro-separator-vertical'] : styles$1X['vitro-separator']
|
|
86837
85911
|
});
|
|
86838
85912
|
};
|
|
86839
85913
|
|
|
86840
|
-
var styles$
|
|
85914
|
+
var styles$1Y = {"vitro-white-close-button":"_close-button_vitro-white-close-button_cbxJwL7","vitro-close-button":"_close-button_vitro-close-button_1PA2DFD"};
|
|
86841
85915
|
|
|
86842
85916
|
var CloseButton$1 = function CloseButton(props) {
|
|
86843
85917
|
return React__default.createElement(ImageButton, Object.assign({}, props, {
|
|
86844
|
-
className: (props.isWhite ? styles$
|
|
85918
|
+
className: (props.isWhite ? styles$1Y['vitro-white-close-button'] : styles$1Y['vitro-close-button']) + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86845
85919
|
}));
|
|
86846
85920
|
};
|
|
86847
85921
|
|
|
86848
|
-
var styles$
|
|
85922
|
+
var styles$1Z = {"vitro-field-value-list":"_field-value-list_vitro-field-value-list_3HYOe79","vitro-flex-column":"_field-value-list_vitro-flex-column_esMxbc0","vitro-label":"_field-value-list_vitro-label_512jxv0","vitro-value":"_field-value-list_vitro-value_237ljdz"};
|
|
86849
85923
|
|
|
86850
85924
|
var FieldValueList = function FieldValueList(props) {
|
|
86851
85925
|
var labelList = props.itemList.map(function (item) {
|
|
@@ -86855,78 +85929,162 @@ var FieldValueList = function FieldValueList(props) {
|
|
|
86855
85929
|
return item.value;
|
|
86856
85930
|
});
|
|
86857
85931
|
return React__default.createElement(FlexBox, {
|
|
86858
|
-
className: styles$
|
|
85932
|
+
className: styles$1Z['vitro-field-value-list']
|
|
86859
85933
|
}, React__default.createElement(FlexBox, {
|
|
86860
|
-
className: styles$
|
|
85934
|
+
className: styles$1Z['vitro-flex-column'],
|
|
86861
85935
|
isColumn: true
|
|
86862
85936
|
}, labelList.map(function (label, key) {
|
|
86863
85937
|
return React__default.createElement(Label, {
|
|
86864
85938
|
key: key,
|
|
86865
85939
|
text: label + CTRL.COLON,
|
|
86866
|
-
className: styles$
|
|
85940
|
+
className: styles$1Z['vitro-label']
|
|
86867
85941
|
});
|
|
86868
85942
|
})), React__default.createElement(FlexBox, {
|
|
86869
|
-
className: styles$
|
|
85943
|
+
className: styles$1Z['vitro-flex-column'],
|
|
86870
85944
|
isColumn: true
|
|
86871
85945
|
}, valueList.map(function (value, key) {
|
|
86872
85946
|
return React__default.createElement(Label, {
|
|
86873
85947
|
key: key,
|
|
86874
85948
|
text: value,
|
|
86875
|
-
className: styles$
|
|
85949
|
+
className: styles$1Z['vitro-value']
|
|
86876
85950
|
});
|
|
86877
85951
|
})));
|
|
86878
85952
|
};
|
|
86879
85953
|
|
|
86880
|
-
var styles$
|
|
85954
|
+
var styles$1_ = {"vitro-shared-item-link-form":"_shared-item-link-form_vitro-shared-item-link-form_3EJHrCZ","vitro-image":"_shared-item-link-form_vitro-image_3sxUXMr","vitro-content":"_shared-item-link-form_vitro-content_3N5eaFX","vitro-title":"_shared-item-link-form_vitro-title_3Nz4A4T","vitro-button-group":"_shared-item-link-form_vitro-button-group_6J7aKmY","vitro-link-input":"_shared-item-link-form_vitro-link-input_1I8xMul"};
|
|
86881
85955
|
|
|
86882
85956
|
var SharedItemLinkForm = function SharedItemLinkForm(props) {
|
|
86883
85957
|
return React__default.createElement(FlexBox, {
|
|
86884
|
-
className: styles$
|
|
85958
|
+
className: styles$1_['vitro-shared-item-link-form']
|
|
86885
85959
|
}, React__default.createElement(Image, {
|
|
86886
85960
|
defaultUrl: props.imageUrl,
|
|
86887
|
-
className: styles$
|
|
85961
|
+
className: styles$1_['vitro-image']
|
|
86888
85962
|
}), React__default.createElement(FlexBox, {
|
|
86889
|
-
className: styles$
|
|
85963
|
+
className: styles$1_['vitro-content'],
|
|
86890
85964
|
isColumn: true
|
|
86891
85965
|
}, React__default.createElement(Heading, {
|
|
86892
85966
|
text: props.name,
|
|
86893
85967
|
tag: TAG.H1,
|
|
86894
|
-
className: styles$
|
|
85968
|
+
className: styles$1_['vitro-title']
|
|
86895
85969
|
}), props.fieldValueList && React__default.createElement(FieldValueList, {
|
|
86896
85970
|
itemList: props.fieldValueList
|
|
86897
85971
|
}), React__default.createElement(ButtonGroup, {
|
|
86898
85972
|
itemList: props.buttonList,
|
|
86899
|
-
className: styles$
|
|
85973
|
+
className: styles$1_['vitro-button-group']
|
|
86900
85974
|
}), props.uri && React__default.createElement(LinkInput, {
|
|
86901
85975
|
label: props.linkLabel,
|
|
86902
85976
|
value: {
|
|
86903
85977
|
uri: props.uri
|
|
86904
85978
|
},
|
|
86905
|
-
className: styles$
|
|
85979
|
+
className: styles$1_['vitro-link-input'],
|
|
86906
85980
|
isCopyOrigin: true,
|
|
86907
85981
|
isReadOnly: true
|
|
86908
85982
|
})));
|
|
86909
85983
|
};
|
|
86910
85984
|
|
|
86911
|
-
var styles$
|
|
85985
|
+
var styles$1$ = {"vitro-delete-button":"_delete-button_vitro-delete-button_1rHMYDM","vitro-button":"_delete-button_vitro-button_3x1CMPO","vitro-image":"_delete-button_vitro-image_3suuRwK"};
|
|
86912
85986
|
|
|
86913
85987
|
var DeleteButton = function DeleteButton(props) {
|
|
86914
85988
|
return React__default.createElement("button", {
|
|
86915
|
-
className: styles$
|
|
85989
|
+
className: styles$1$['vitro-delete-button'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY),
|
|
86916
85990
|
onClick: props.onClick
|
|
86917
85991
|
}, React__default.createElement("div", {
|
|
86918
|
-
className: styles$
|
|
85992
|
+
className: styles$1$['vitro-image']
|
|
86919
85993
|
}), props.text && React__default.createElement("div", null, props.text));
|
|
86920
85994
|
};
|
|
86921
85995
|
|
|
86922
|
-
var styles$
|
|
85996
|
+
var styles$20 = {"vitro-placeholder":"_placeholder_vitro-placeholder_4NH7HcF"};
|
|
86923
85997
|
|
|
86924
85998
|
var Placeholder = function Placeholder(props) {
|
|
86925
85999
|
return React__default.createElement(FlexBox, {
|
|
86926
|
-
className: styles$
|
|
86000
|
+
className: styles$20['vitro-placeholder'] + (props.className ? CTRL.SPACE + props.className : CTRL.EMPTY)
|
|
86927
86001
|
}, React__default.createElement(FlexBox, null, React__default.createElement("span", null, props.text)));
|
|
86928
86002
|
};
|
|
86929
86003
|
|
|
86004
|
+
var styles$21 = {"vitro-slide-up-panel":"_slide-up-button_vitro-slide-up-panel_2Poe8de","vitro-scrollbar-content":"_slide-up-button_vitro-scrollbar-content_1MC0emV","vitro-slide-up-button-item":"_slide-up-button_vitro-slide-up-button-item_2IAqXm4","vitro-slide-up-button-dropdown-item":"_slide-up-button_vitro-slide-up-button-dropdown-item_3M28bm7","vitro-image-container":"_slide-up-button_vitro-image-container_3gJ3-PB"};
|
|
86005
|
+
|
|
86006
|
+
var SlideUpButtonItem = function SlideUpButtonItem(props) {
|
|
86007
|
+
var onClick = function onClick(e) {
|
|
86008
|
+
if (props.onClick) {
|
|
86009
|
+
props.onClick(e);
|
|
86010
|
+
} else if (props.href) {
|
|
86011
|
+
var event = new CustomEvent(exports.EVENT.HISTORY_UPDATE, {
|
|
86012
|
+
detail: {
|
|
86013
|
+
pathname: props.href
|
|
86014
|
+
}
|
|
86015
|
+
});
|
|
86016
|
+
window.dispatchEvent(event);
|
|
86017
|
+
}
|
|
86018
|
+
};
|
|
86019
|
+
return React__default.createElement(FlexBox, {
|
|
86020
|
+
onClick: onClick,
|
|
86021
|
+
className: styles$21['vitro-slide-up-button-item']
|
|
86022
|
+
}, (props.isShowImage || props.imageUrl) && React__default.createElement(FlexBox, {
|
|
86023
|
+
className: styles$21['vitro-image-container']
|
|
86024
|
+
}, props.imageUrl && React__default.createElement(Image, {
|
|
86025
|
+
defaultUrl: props.imageUrl,
|
|
86026
|
+
hoverUrl: props.imageHoverUrl
|
|
86027
|
+
})), React__default.createElement("span", null, props.text));
|
|
86028
|
+
};
|
|
86029
|
+
|
|
86030
|
+
var SlideUpButtonDropdownItem = function SlideUpButtonDropdownItem(props) {
|
|
86031
|
+
return React__default.createElement(ExpandControlGroup, {
|
|
86032
|
+
expandText: CTRL.EMPTY,
|
|
86033
|
+
collapseText: CTRL.EMPTY,
|
|
86034
|
+
className: styles$21['vitro-slide-up-button-dropdown-item'],
|
|
86035
|
+
buttonContent: React__default.createElement(FlexBox, null, (props.isShowImage || props.imageUrl) && React__default.createElement(FlexBox, {
|
|
86036
|
+
className: styles$21['vitro-image-container']
|
|
86037
|
+
}, props.imageUrl ? React__default.createElement(Image, {
|
|
86038
|
+
defaultUrl: props.imageUrl,
|
|
86039
|
+
hoverUrl: props.imageHoverUrl
|
|
86040
|
+
}) : null), React__default.createElement("span", null, props.text))
|
|
86041
|
+
}, props.itemList && props.itemList.length !== 0 && props.itemList.map(function (item) {
|
|
86042
|
+
if (item.itemList) {
|
|
86043
|
+
return React__default.createElement(SlideUpButtonDropdownItem, Object.assign({}, item));
|
|
86044
|
+
}
|
|
86045
|
+
return React__default.createElement(SlideUpButtonItem, Object.assign({}, item));
|
|
86046
|
+
}), props.children);
|
|
86047
|
+
};
|
|
86048
|
+
|
|
86049
|
+
var SlideUpButton = function SlideUpButton(props) {
|
|
86050
|
+
var _props$itemList;
|
|
86051
|
+
var _useState = React.useState(false),
|
|
86052
|
+
isExpanded = _useState[0],
|
|
86053
|
+
setIsExpanded = _useState[1];
|
|
86054
|
+
var isShowImage = (_props$itemList = props.itemList) !== null && _props$itemList !== void 0 && _props$itemList.find(function (item) {
|
|
86055
|
+
return item.imageUrl;
|
|
86056
|
+
}) ? true : false;
|
|
86057
|
+
var onClick = function onClick(e) {
|
|
86058
|
+
setIsExpanded(true);
|
|
86059
|
+
if (props.onClick) {
|
|
86060
|
+
props.onClick(e);
|
|
86061
|
+
}
|
|
86062
|
+
};
|
|
86063
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Button$2, {
|
|
86064
|
+
onClick: onClick,
|
|
86065
|
+
text: CTRL.EMPTY,
|
|
86066
|
+
imageUrl: props.imageUrl,
|
|
86067
|
+
imageHoverUrl: props.imageHoverUrl,
|
|
86068
|
+
className: props.className
|
|
86069
|
+
}), React__default.createElement(SlideUpPanel, {
|
|
86070
|
+
isShow: isExpanded,
|
|
86071
|
+
onClose: function onClose() {
|
|
86072
|
+
return setIsExpanded(false);
|
|
86073
|
+
},
|
|
86074
|
+
className: styles$21['vitro-slide-up-panel']
|
|
86075
|
+
}, React__default.createElement(ScrollBar, {
|
|
86076
|
+
contentClassName: styles$21['vitro-scrollbar-content'],
|
|
86077
|
+
isHideScrollX: true
|
|
86078
|
+
}, props.itemList && props.itemList.length !== 0 && props.itemList.map(function (item) {
|
|
86079
|
+
if (item.itemList) {
|
|
86080
|
+
return React__default.createElement(SlideUpButtonDropdownItem, Object.assign({}, item));
|
|
86081
|
+
}
|
|
86082
|
+
return React__default.createElement(SlideUpButtonItem, Object.assign({}, item, {
|
|
86083
|
+
isShowImage: isShowImage
|
|
86084
|
+
}));
|
|
86085
|
+
}), props.children)));
|
|
86086
|
+
};
|
|
86087
|
+
|
|
86930
86088
|
exports.ACTION_HANDLER = ActionHandlerConstants;
|
|
86931
86089
|
exports.ALERT = AlertConstants;
|
|
86932
86090
|
exports.ActionHandler = ActionHandler;
|
|
@@ -86952,13 +86110,13 @@ exports.CommandMenu = CommandMenu;
|
|
|
86952
86110
|
exports.CommandMenuButton = CommandMenuButton;
|
|
86953
86111
|
exports.CommandMenuDropdownButton = CommandMenuDropdownButton;
|
|
86954
86112
|
exports.CommandMenuLookupPicker = CommandMenuLookupPicker;
|
|
86955
|
-
exports.CommandMenuSubItem = CommandMenuSubItem;
|
|
86956
86113
|
exports.ComponentLoader = ComponentLoader;
|
|
86957
86114
|
exports.ComponentLoaderServiceImpl = ComponentLoaderServiceImpl;
|
|
86958
86115
|
exports.ControlGroup = ControlGroup;
|
|
86959
86116
|
exports.CopyButton = CopyButton;
|
|
86960
86117
|
exports.Criterion = Criterion;
|
|
86961
86118
|
exports.CriterionFieldIterator = CriterionFieldIterator;
|
|
86119
|
+
exports.DROPDOWN_BUTTON = DropdownButtonConstants;
|
|
86962
86120
|
exports.DatePicker = DatePicker;
|
|
86963
86121
|
exports.DeleteButton = DeleteButton;
|
|
86964
86122
|
exports.Dialog = Dialog;
|
|
@@ -86966,6 +86124,8 @@ exports.DialogContent = DialogContent;
|
|
|
86966
86124
|
exports.DialogFooter = DialogFooter;
|
|
86967
86125
|
exports.DropZone = DropZone;
|
|
86968
86126
|
exports.DropdownButton = DropdownButton;
|
|
86127
|
+
exports.DropdownButtonDropdownItem = DropdownButtonDropdownItem;
|
|
86128
|
+
exports.DropdownButtonItem = DropdownButtonItem;
|
|
86969
86129
|
exports.DxfViewer = DxfViewer;
|
|
86970
86130
|
exports.EditableFieldIterator = EditableFieldIterator;
|
|
86971
86131
|
exports.EditableList = EditableList;
|
|
@@ -87034,6 +86194,9 @@ exports.SharedItemLinkForm = SharedItemLinkForm;
|
|
|
87034
86194
|
exports.Sidebar = Sidebar;
|
|
87035
86195
|
exports.SidebarButton = SidebarButton;
|
|
87036
86196
|
exports.SiteSelect = SiteSelect;
|
|
86197
|
+
exports.SlideUpButton = SlideUpButton;
|
|
86198
|
+
exports.SlideUpButtonDropdownItem = SlideUpButtonDropdownItem;
|
|
86199
|
+
exports.SlideUpButtonItem = SlideUpButtonItem;
|
|
87037
86200
|
exports.SlideUpPanel = SlideUpPanel;
|
|
87038
86201
|
exports.Splitter = Splitter;
|
|
87039
86202
|
exports.StarButton = StarButton;
|