@nebula.js/stardust 5.9.3 → 5.10.0
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/core/esm/dev.js +238 -238
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +2 -2
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +391 -391
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +2 -2
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
package/core/esm/dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.
|
|
2
|
+
* @nebula.js/stardust v5.10.0
|
|
3
3
|
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -268,7 +268,7 @@ function requireRuntime() {
|
|
|
268
268
|
// AsyncIterator objects; they just return a Promise for the value of
|
|
269
269
|
// the final result produced by the iterator.
|
|
270
270
|
exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
271
|
-
if (PromiseImpl ===
|
|
271
|
+
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
|
272
272
|
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
273
273
|
return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.
|
|
274
274
|
: iter.next().then(function (result) {
|
|
@@ -778,7 +778,7 @@ function _objectWithoutPropertiesLoose$2(r, e) {
|
|
|
778
778
|
function _toPrimitive(t, r) {
|
|
779
779
|
if ("object" != typeof t || !t) return t;
|
|
780
780
|
var e = t[Symbol.toPrimitive];
|
|
781
|
-
if (
|
|
781
|
+
if (void 0 !== e) {
|
|
782
782
|
var i = e.call(t, r);
|
|
783
783
|
if ("object" != typeof i) return i;
|
|
784
784
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
@@ -2073,7 +2073,7 @@ function requireNodeEventEmitter () {
|
|
|
2073
2073
|
};
|
|
2074
2074
|
|
|
2075
2075
|
util.isUndefined = function isUndefined(arg) {
|
|
2076
|
-
return arg ===
|
|
2076
|
+
return arg === void 0;
|
|
2077
2077
|
};
|
|
2078
2078
|
|
|
2079
2079
|
util.isFunction = function isFunction(arg){
|
|
@@ -2822,7 +2822,7 @@ function requireExtend () {
|
|
|
2822
2822
|
var getProperty = function getProperty(obj, name) {
|
|
2823
2823
|
if (name === '__proto__') {
|
|
2824
2824
|
if (!hasOwn.call(obj, name)) {
|
|
2825
|
-
return
|
|
2825
|
+
return void 0;
|
|
2826
2826
|
} else if (gOPD) {
|
|
2827
2827
|
// In early versions of node, obj['__proto__'] is buggy when obj has
|
|
2828
2828
|
// __proto__ as an own property. Object.getOwnPropertyDescriptor() works.
|
|
@@ -4871,8 +4871,8 @@ function theme$1(resolvedTheme) {
|
|
|
4871
4871
|
};
|
|
4872
4872
|
},
|
|
4873
4873
|
uiColor(c, shift) {
|
|
4874
|
-
const indexIsValid = typeof (c === null || c ===
|
|
4875
|
-
const colorIsValid = typeof (c === null || c ===
|
|
4874
|
+
const indexIsValid = typeof (c === null || c === void 0 ? void 0 : c.index) === 'number' && !Number.isNaN(c === null || c === void 0 ? void 0 : c.index);
|
|
4875
|
+
const colorIsValid = typeof (c === null || c === void 0 ? void 0 : c.color) === 'string';
|
|
4876
4876
|
const somethingIsValid = indexIsValid || colorIsValid;
|
|
4877
4877
|
if (!somethingIsValid) {
|
|
4878
4878
|
return undefined;
|
|
@@ -4880,7 +4880,7 @@ function theme$1(resolvedTheme) {
|
|
|
4880
4880
|
const getColor = () => {
|
|
4881
4881
|
// eslint-disable-next-line no-param-reassign
|
|
4882
4882
|
shift = !!shift;
|
|
4883
|
-
if ((c === null || c ===
|
|
4883
|
+
if ((c === null || c === void 0 ? void 0 : c.index) < 0 || typeof (c === null || c === void 0 ? void 0 : c.index) === 'undefined') {
|
|
4884
4884
|
return c.color;
|
|
4885
4885
|
}
|
|
4886
4886
|
if (typeof uiPalette === 'undefined') {
|
|
@@ -6910,7 +6910,7 @@ function requireReactJsxRuntime_production_min () {
|
|
|
6910
6910
|
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
6911
6911
|
hasRequiredReactJsxRuntime_production_min = 1;
|
|
6912
6912
|
var f=React__default,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
|
|
6913
|
-
function q(c,a,g){var b,d={},e=null,h=null;
|
|
6913
|
+
function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
|
|
6914
6914
|
return reactJsxRuntime_production_min;
|
|
6915
6915
|
}
|
|
6916
6916
|
|
|
@@ -7220,7 +7220,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
|
7220
7220
|
}
|
|
7221
7221
|
function createEmptyBreakpointObject(breakpointsInput = {}) {
|
|
7222
7222
|
var _breakpointsInput$key;
|
|
7223
|
-
const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ?
|
|
7223
|
+
const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
|
|
7224
7224
|
const breakpointStyleKey = breakpointsInput.up(key);
|
|
7225
7225
|
acc[breakpointStyleKey] = {};
|
|
7226
7226
|
return acc;
|
|
@@ -7645,13 +7645,13 @@ const maxWidth = props => {
|
|
|
7645
7645
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
7646
7646
|
const styleFromPropValue = propValue => {
|
|
7647
7647
|
var _props$theme, _props$theme2;
|
|
7648
|
-
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ?
|
|
7648
|
+
const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values[propValue];
|
|
7649
7649
|
if (!breakpoint) {
|
|
7650
7650
|
return {
|
|
7651
7651
|
maxWidth: sizingTransform(propValue)
|
|
7652
7652
|
};
|
|
7653
7653
|
}
|
|
7654
|
-
if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ?
|
|
7654
|
+
if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {
|
|
7655
7655
|
return {
|
|
7656
7656
|
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
7657
7657
|
};
|
|
@@ -8203,7 +8203,7 @@ function createTheme$2(options = {}, ...args) {
|
|
|
8203
8203
|
}, other);
|
|
8204
8204
|
muiTheme.applyStyles = applyStyles;
|
|
8205
8205
|
muiTheme = args.reduce((acc, argument) => deepmerge$1(acc, argument), muiTheme);
|
|
8206
|
-
muiTheme.unstable_sxConfig = _extends$4({}, defaultSxConfig, other == null ?
|
|
8206
|
+
muiTheme.unstable_sxConfig = _extends$4({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);
|
|
8207
8207
|
muiTheme.unstable_sx = function sx(props) {
|
|
8208
8208
|
return styleFunctionSx$1({
|
|
8209
8209
|
sx: props,
|
|
@@ -8240,7 +8240,7 @@ const splitProps = props => {
|
|
|
8240
8240
|
systemProps: {},
|
|
8241
8241
|
otherProps: {}
|
|
8242
8242
|
};
|
|
8243
|
-
const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ?
|
|
8243
|
+
const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;
|
|
8244
8244
|
Object.keys(props).forEach(prop => {
|
|
8245
8245
|
if (config[prop]) {
|
|
8246
8246
|
result.systemProps[prop] = props[prop];
|
|
@@ -8355,7 +8355,7 @@ var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("rea
|
|
|
8355
8355
|
function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;
|
|
8356
8356
|
reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return false};reactIs_production_min.isConcurrentMode=function(){return false};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};
|
|
8357
8357
|
reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};
|
|
8358
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||
|
|
8358
|
+
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?true:false};reactIs_production_min.typeOf=v;
|
|
8359
8359
|
return reactIs_production_min;
|
|
8360
8360
|
}
|
|
8361
8361
|
|
|
@@ -8539,7 +8539,7 @@ function isMuiElement(element, muiNames) {
|
|
|
8539
8539
|
return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
8540
8540
|
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
8541
8541
|
// eslint-disable-next-line no-underscore-dangle
|
|
8542
|
-
(_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ?
|
|
8542
|
+
(_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;
|
|
8543
8543
|
}
|
|
8544
8544
|
|
|
8545
8545
|
function ownerDocument(node) {
|
|
@@ -9019,7 +9019,7 @@ function ThemeProvider$1(props) {
|
|
|
9019
9019
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(RtlProvider, {
|
|
9020
9020
|
value: rtlValue,
|
|
9021
9021
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(DefaultPropsProvider, {
|
|
9022
|
-
value: engineTheme == null ?
|
|
9022
|
+
value: engineTheme == null ? void 0 : engineTheme.components,
|
|
9023
9023
|
children: children
|
|
9024
9024
|
})
|
|
9025
9025
|
})
|
|
@@ -9155,7 +9155,7 @@ function requireColorManipulator () {
|
|
|
9155
9155
|
});
|
|
9156
9156
|
colorManipulator.alpha = alpha;
|
|
9157
9157
|
colorManipulator.blend = blend;
|
|
9158
|
-
colorManipulator.colorChannel =
|
|
9158
|
+
colorManipulator.colorChannel = void 0;
|
|
9159
9159
|
colorManipulator.darken = darken;
|
|
9160
9160
|
colorManipulator.decomposeColor = decomposeColor;
|
|
9161
9161
|
colorManipulator.emphasize = emphasize;
|
|
@@ -9165,7 +9165,7 @@ function requireColorManipulator () {
|
|
|
9165
9165
|
colorManipulator.hslToRgb = hslToRgb;
|
|
9166
9166
|
colorManipulator.lighten = lighten;
|
|
9167
9167
|
colorManipulator.private_safeAlpha = private_safeAlpha;
|
|
9168
|
-
colorManipulator.private_safeColorChannel =
|
|
9168
|
+
colorManipulator.private_safeColorChannel = void 0;
|
|
9169
9169
|
colorManipulator.private_safeDarken = private_safeDarken;
|
|
9170
9170
|
colorManipulator.private_safeEmphasize = private_safeEmphasize;
|
|
9171
9171
|
colorManipulator.private_safeLighten = private_safeLighten;
|
|
@@ -10027,7 +10027,7 @@ function createTheme(options = {}, ...args) {
|
|
|
10027
10027
|
});
|
|
10028
10028
|
muiTheme = deepmerge$1(muiTheme, other);
|
|
10029
10029
|
muiTheme = args.reduce((acc, argument) => deepmerge$1(acc, argument), muiTheme);
|
|
10030
|
-
muiTheme.unstable_sxConfig = _extends$5({}, defaultSxConfig, other == null ?
|
|
10030
|
+
muiTheme.unstable_sxConfig = _extends$5({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);
|
|
10031
10031
|
muiTheme.unstable_sx = function sx(props) {
|
|
10032
10032
|
return styleFunctionSx$1({
|
|
10033
10033
|
sx: props,
|
|
@@ -10122,7 +10122,7 @@ function requireCreateStyled () {
|
|
|
10122
10122
|
});
|
|
10123
10123
|
createStyled$1.default = createStyled;
|
|
10124
10124
|
createStyled$1.shouldForwardProp = shouldForwardProp;
|
|
10125
|
-
createStyled$1.systemDefaultTheme =
|
|
10125
|
+
createStyled$1.systemDefaultTheme = void 0;
|
|
10126
10126
|
var _extends2 = _interopRequireDefault(require_extends());
|
|
10127
10127
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(requireObjectWithoutPropertiesLoose());
|
|
10128
10128
|
var _styledEngine = _interopRequireWildcard(require$$3);
|
|
@@ -10201,7 +10201,7 @@ function requireCreateStyled () {
|
|
|
10201
10201
|
}, props, ownerState));
|
|
10202
10202
|
} else {
|
|
10203
10203
|
Object.keys(variant.props).forEach(key => {
|
|
10204
|
-
if ((ownerState == null ?
|
|
10204
|
+
if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {
|
|
10205
10205
|
isMatch = false;
|
|
10206
10206
|
}
|
|
10207
10207
|
});
|
|
@@ -10318,7 +10318,7 @@ function requireCreateStyled () {
|
|
|
10318
10318
|
defaultTheme,
|
|
10319
10319
|
themeId
|
|
10320
10320
|
}));
|
|
10321
|
-
const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ?
|
|
10321
|
+
const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;
|
|
10322
10322
|
return processStyleArg({
|
|
10323
10323
|
variants: themeVariants
|
|
10324
10324
|
}, (0, _extends2.default)({}, props, {
|
|
@@ -10416,7 +10416,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
10416
10416
|
}
|
|
10417
10417
|
|
|
10418
10418
|
function _assertThisInitialized(self) {
|
|
10419
|
-
if (self ===
|
|
10419
|
+
if (self === void 0) {
|
|
10420
10420
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10421
10421
|
}
|
|
10422
10422
|
|
|
@@ -10754,7 +10754,7 @@ function create$3(definition) {
|
|
|
10754
10754
|
return cache[key];
|
|
10755
10755
|
}
|
|
10756
10756
|
|
|
10757
|
-
const NEBULA_VERSION_HASH = "
|
|
10757
|
+
const NEBULA_VERSION_HASH = "0b93";
|
|
10758
10758
|
ClassNameGenerator.configure(componentName => {
|
|
10759
10759
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
10760
10760
|
});
|
|
@@ -10986,7 +10986,7 @@ function boot(_ref2) {
|
|
|
10986
10986
|
const appRef = React__default.createRef();
|
|
10987
10987
|
const element = document.createElement('div');
|
|
10988
10988
|
element.style.display = 'none';
|
|
10989
|
-
element.setAttribute('data-nebulajs-version', "5.
|
|
10989
|
+
element.setAttribute('data-nebulajs-version', "5.10.0");
|
|
10990
10990
|
element.setAttribute('data-app-id', app.id);
|
|
10991
10991
|
document.body.appendChild(element);
|
|
10992
10992
|
if (context) {
|
|
@@ -11799,7 +11799,7 @@ const rowColClasses = {
|
|
|
11799
11799
|
|
|
11800
11800
|
/* eslint-disable no-underscore-dangle */
|
|
11801
11801
|
const dataItemSelector = ".".concat(rowColClasses.fieldRoot);
|
|
11802
|
-
const getKeyAsToggleSelected = event => !(event !== null && event !==
|
|
11802
|
+
const getKeyAsToggleSelected = event => !(event !== null && event !== void 0 && event.metaKey || event !== null && event !== void 0 && event.ctrlKey);
|
|
11803
11803
|
function useSelectionsInteractions(_ref) {
|
|
11804
11804
|
var _loaderRef$current2;
|
|
11805
11805
|
let {
|
|
@@ -11820,7 +11820,7 @@ function useSelectionsInteractions(_ref) {
|
|
|
11820
11820
|
});
|
|
11821
11821
|
useEffect$1(() => {
|
|
11822
11822
|
var _loaderRef$current;
|
|
11823
|
-
if (!((_loaderRef$current = loaderRef.current) !== null && _loaderRef$current !==
|
|
11823
|
+
if (!((_loaderRef$current = loaderRef.current) !== null && _loaderRef$current !== void 0 && (_loaderRef$current = _loaderRef$current._listRef) !== null && _loaderRef$current !== void 0 && _loaderRef$current._outerRef)) {
|
|
11824
11824
|
return undefined;
|
|
11825
11825
|
}
|
|
11826
11826
|
const preventGestureStart = e => e.preventDefault();
|
|
@@ -11835,12 +11835,12 @@ function useSelectionsInteractions(_ref) {
|
|
|
11835
11835
|
listRef.removeEventListener('gesturechange', preventGestureChange);
|
|
11836
11836
|
listRef.removeEventListener('gestureend', preventGestureEnd);
|
|
11837
11837
|
};
|
|
11838
|
-
}, [(_loaderRef$current2 = loaderRef.current) === null || _loaderRef$current2 ===
|
|
11838
|
+
}, [(_loaderRef$current2 = loaderRef.current) === null || _loaderRef$current2 === void 0 || (_loaderRef$current2 = _loaderRef$current2._listRef) === null || _loaderRef$current2 === void 0 ? void 0 : _loaderRef$current2._outerRef]);
|
|
11839
11839
|
|
|
11840
11840
|
// eslint-disable-next-line arrow-body-style
|
|
11841
11841
|
const doSelect = async () => {
|
|
11842
11842
|
var _selectionState$selec;
|
|
11843
|
-
if ((_selectionState$selec = selectionState.selectDisabled) !== null && _selectionState$selec !==
|
|
11843
|
+
if ((_selectionState$selec = selectionState.selectDisabled) !== null && _selectionState$selec !== void 0 && _selectionState$selec.call(selectionState)) {
|
|
11844
11844
|
return false;
|
|
11845
11845
|
}
|
|
11846
11846
|
selectionState.setSelectableValuesUpdating();
|
|
@@ -11870,10 +11870,10 @@ function useSelectionsInteractions(_ref) {
|
|
|
11870
11870
|
let elementIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
11871
11871
|
let additive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
11872
11872
|
let event = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
11873
|
-
if ((_selectionState$selec2 = selectionState.selectDisabled) !== null && _selectionState$selec2 !==
|
|
11873
|
+
if ((_selectionState$selec2 = selectionState.selectDisabled) !== null && _selectionState$selec2 !== void 0 && _selectionState$selec2.call(selectionState)) {
|
|
11874
11874
|
return false;
|
|
11875
11875
|
}
|
|
11876
|
-
const toggle = !selectionState.isSingleSelect && getKeyAsToggleSelected(event === null || event ===
|
|
11876
|
+
const toggle = !selectionState.isSingleSelect && getKeyAsToggleSelected(event === null || event === void 0 ? void 0 : event.nativeEvent);
|
|
11877
11877
|
if (!toggle) {
|
|
11878
11878
|
selectionState.clearItemStates(true);
|
|
11879
11879
|
}
|
|
@@ -11972,8 +11972,8 @@ function useSelectionsInteractions(_ref) {
|
|
|
11972
11972
|
doSelect();
|
|
11973
11973
|
return;
|
|
11974
11974
|
}
|
|
11975
|
-
const startTouchElemNumber = Number((_event$touches$0$targ = event.touches[0].target) === null || _event$touches$0$targ ===
|
|
11976
|
-
const endTouchElemNumber = Number((_event$touches$1$targ = event.touches[1].target) === null || _event$touches$1$targ ===
|
|
11975
|
+
const startTouchElemNumber = Number((_event$touches$0$targ = event.touches[0].target) === null || _event$touches$0$targ === void 0 || (_event$touches$0$targ = _event$touches$0$targ.closest(dataItemSelector)) === null || _event$touches$0$targ === void 0 ? void 0 : _event$touches$0$targ.getAttribute('data-n'));
|
|
11976
|
+
const endTouchElemNumber = Number((_event$touches$1$targ = event.touches[1].target) === null || _event$touches$1$targ === void 0 || (_event$touches$1$targ = _event$touches$1$targ.closest(dataItemSelector)) === null || _event$touches$1$targ === void 0 ? void 0 : _event$touches$1$targ.getAttribute('data-n'));
|
|
11977
11977
|
if (Number.isNaN(startTouchElemNumber) || Number.isNaN(startTouchElemNumber)) {
|
|
11978
11978
|
doSelect();
|
|
11979
11979
|
return;
|
|
@@ -12872,7 +12872,7 @@ function Frequency(_ref) {
|
|
|
12872
12872
|
dense,
|
|
12873
12873
|
showGray
|
|
12874
12874
|
} = _ref;
|
|
12875
|
-
const frequencyText = getFrequencyText(cell === null || cell ===
|
|
12875
|
+
const frequencyText = getFrequencyText(cell === null || cell === void 0 ? void 0 : cell.qFrequency);
|
|
12876
12876
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
12877
12877
|
item: true,
|
|
12878
12878
|
style: {
|
|
@@ -12999,17 +12999,17 @@ const KEYS = Object.freeze({
|
|
|
12999
12999
|
});
|
|
13000
13000
|
|
|
13001
13001
|
function removeInnnerTabStops(container) {
|
|
13002
|
-
container === null || container ===
|
|
13002
|
+
container === null || container === void 0 || container.querySelectorAll('[tabIndex="0"]').forEach(elm => {
|
|
13003
13003
|
elm.setAttribute('tabIndex', -1);
|
|
13004
13004
|
});
|
|
13005
13005
|
}
|
|
13006
13006
|
function removeLastFocused(container) {
|
|
13007
|
-
container === null || container ===
|
|
13007
|
+
container === null || container === void 0 || container.querySelectorAll('.last-focused').forEach(elm => {
|
|
13008
13008
|
elm.classList.remove('last-focused');
|
|
13009
13009
|
});
|
|
13010
13010
|
}
|
|
13011
13011
|
function getVizCell(container) {
|
|
13012
|
-
return (container === null || container ===
|
|
13012
|
+
return (container === null || container === void 0 ? void 0 : container.closest('.njs-cell')) || (container === null || container === void 0 ? void 0 : container.closest('.qv-gridcell')) || (container === null || container === void 0 ? void 0 : container.closest('.qv-gs-listbox'));
|
|
13013
13013
|
}
|
|
13014
13014
|
|
|
13015
13015
|
// Emulate the keyboard hook, until we support it in the Listbox.
|
|
@@ -13032,7 +13032,7 @@ function useTempKeyboard(_ref) {
|
|
|
13032
13032
|
return;
|
|
13033
13033
|
}
|
|
13034
13034
|
setKeyboardActive(false);
|
|
13035
|
-
const vizCell = getVizCell(containerRef.current) || ((_containerRef$current = containerRef.current) === null || _containerRef$current ===
|
|
13035
|
+
const vizCell = getVizCell(containerRef.current) || ((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.parentElement);
|
|
13036
13036
|
removeInnnerTabStops(containerRef.current);
|
|
13037
13037
|
removeLastFocused(containerRef.current);
|
|
13038
13038
|
if (resetFocus && vizCell) {
|
|
@@ -13048,22 +13048,22 @@ function useTempKeyboard(_ref) {
|
|
|
13048
13048
|
}
|
|
13049
13049
|
setKeyboardActive(true);
|
|
13050
13050
|
const c = containerRef.current;
|
|
13051
|
-
const searchField = c === null || c ===
|
|
13052
|
-
const lastSelectedRow = c === null || c ===
|
|
13053
|
-
const firstRowElement = c === null || c ===
|
|
13054
|
-
const confirmButton = c === null || c ===
|
|
13055
|
-
const unlockCoverButton = c === null || c ===
|
|
13056
|
-
const cyclicButton = c === null || c ===
|
|
13051
|
+
const searchField = c === null || c === void 0 ? void 0 : c.querySelector('.search input');
|
|
13052
|
+
const lastSelectedRow = c === null || c === void 0 ? void 0 : c.querySelector('.value.last-focused');
|
|
13053
|
+
const firstRowElement = c === null || c === void 0 ? void 0 : c.querySelector('.value.selector, .value');
|
|
13054
|
+
const confirmButton = c === null || c === void 0 ? void 0 : c.querySelector('.actions-toolbar-default-actions .actions-toolbar-confirm');
|
|
13055
|
+
const unlockCoverButton = c === null || c === void 0 ? void 0 : c.querySelector('#listbox-unlock-button');
|
|
13056
|
+
const cyclicButton = c === null || c === void 0 ? void 0 : c.querySelector('.listbox-cyclic-button');
|
|
13057
13057
|
const elementToFocus = cyclicButton || searchField || lastSelectedRow || firstRowElement || unlockCoverButton || confirmButton;
|
|
13058
|
-
elementToFocus === null || elementToFocus ===
|
|
13059
|
-
elementToFocus === null || elementToFocus ===
|
|
13058
|
+
elementToFocus === null || elementToFocus === void 0 || elementToFocus.setAttribute('tabIndex', 0);
|
|
13059
|
+
elementToFocus === null || elementToFocus === void 0 || elementToFocus.focus();
|
|
13060
13060
|
},
|
|
13061
13061
|
focusSelection() {
|
|
13062
13062
|
const unlockCoverButton = document.querySelector('#listbox-unlock-button');
|
|
13063
13063
|
const confirmButton = document.querySelector('.actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)');
|
|
13064
13064
|
const btnToFocus = unlockCoverButton || confirmButton;
|
|
13065
|
-
btnToFocus === null || btnToFocus ===
|
|
13066
|
-
btnToFocus === null || btnToFocus ===
|
|
13065
|
+
btnToFocus === null || btnToFocus === void 0 || btnToFocus.setAttribute('tabIndex', 0);
|
|
13066
|
+
btnToFocus === null || btnToFocus === void 0 || btnToFocus.focus();
|
|
13067
13067
|
return btnToFocus;
|
|
13068
13068
|
}
|
|
13069
13069
|
};
|
|
@@ -13072,24 +13072,24 @@ function useTempKeyboard(_ref) {
|
|
|
13072
13072
|
|
|
13073
13073
|
const getElementIndex = currentTarget => +currentTarget.getAttribute('data-n');
|
|
13074
13074
|
const focusSearch = container => {
|
|
13075
|
-
const searchField = container === null || container ===
|
|
13076
|
-
searchField === null || searchField ===
|
|
13075
|
+
const searchField = container === null || container === void 0 ? void 0 : container.querySelector('.search input');
|
|
13076
|
+
searchField === null || searchField === void 0 || searchField.focus();
|
|
13077
13077
|
return searchField;
|
|
13078
13078
|
};
|
|
13079
13079
|
const focusRow = container => {
|
|
13080
|
-
const lastFocusedRow = container === null || container ===
|
|
13081
|
-
const selectorRow = container === null || container ===
|
|
13082
|
-
const row = container === null || container ===
|
|
13080
|
+
const lastFocusedRow = container === null || container === void 0 ? void 0 : container.querySelector('.value.last-focused');
|
|
13081
|
+
const selectorRow = container === null || container === void 0 ? void 0 : container.querySelector('.value.selector');
|
|
13082
|
+
const row = container === null || container === void 0 ? void 0 : container.querySelector('.value');
|
|
13083
13083
|
const rowToFocus = lastFocusedRow || selectorRow || row;
|
|
13084
|
-
rowToFocus === null || rowToFocus ===
|
|
13085
|
-
rowToFocus === null || rowToFocus ===
|
|
13084
|
+
rowToFocus === null || rowToFocus === void 0 || rowToFocus.setAttribute('tabIndex', 0);
|
|
13085
|
+
rowToFocus === null || rowToFocus === void 0 || rowToFocus.focus();
|
|
13086
13086
|
removeLastFocused(container);
|
|
13087
13087
|
return rowToFocus;
|
|
13088
13088
|
};
|
|
13089
13089
|
const focusCyclicButton = container => {
|
|
13090
|
-
const button = container === null || container ===
|
|
13091
|
-
button === null || button ===
|
|
13092
|
-
button === null || button ===
|
|
13090
|
+
const button = container === null || container === void 0 ? void 0 : container.querySelector('.listbox-cyclic-button:not(:disabled)');
|
|
13091
|
+
button === null || button === void 0 || button.setAttribute('tabIndex', 0);
|
|
13092
|
+
button === null || button === void 0 || button.focus();
|
|
13093
13093
|
return button;
|
|
13094
13094
|
};
|
|
13095
13095
|
const blur$1 = (event, keyboard) => {
|
|
@@ -13101,7 +13101,7 @@ const blur$1 = (event, keyboard) => {
|
|
|
13101
13101
|
const isFocusedOnListbox = target.classList.contains('listbox-container');
|
|
13102
13102
|
const container = currentTarget.closest('.listbox-container');
|
|
13103
13103
|
const vizCell = getVizCell(container);
|
|
13104
|
-
const isSingleListbox = (vizCell === null || vizCell ===
|
|
13104
|
+
const isSingleListbox = (vizCell === null || vizCell === void 0 ? void 0 : vizCell.querySelectorAll('.listbox-container').length) === 1;
|
|
13105
13105
|
if (isFocusedOnListbox || isSingleListbox) {
|
|
13106
13106
|
// Move the focus from listbox container to the viz container.
|
|
13107
13107
|
keyboard.blur(true);
|
|
@@ -13118,7 +13118,7 @@ const blur$1 = (event, keyboard) => {
|
|
|
13118
13118
|
keyboard.blur();
|
|
13119
13119
|
const c = currentTarget.closest('.listbox-container');
|
|
13120
13120
|
c.setAttribute('tabIndex', -1);
|
|
13121
|
-
c === null || c ===
|
|
13121
|
+
c === null || c === void 0 || c.focus();
|
|
13122
13122
|
}
|
|
13123
13123
|
};
|
|
13124
13124
|
|
|
@@ -13191,11 +13191,11 @@ function getRowsKeyboardNavigation(_ref) {
|
|
|
13191
13191
|
const getElement = function (keyCode, elm) {
|
|
13192
13192
|
let next = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
13193
13193
|
if (keyCode === KEYS.ARROW_LEFT || keyCode === KEYS.ARROW_RIGHT || !(typeof rowIndex === 'number' && typeof columnIndex === 'number')) {
|
|
13194
|
-
const parentElm = elm === null || elm ===
|
|
13195
|
-
return parentElm === null || parentElm ===
|
|
13194
|
+
const parentElm = elm === null || elm === void 0 ? void 0 : elm.parentElement[next ? 'nextElementSibling' : 'previousElementSibling'];
|
|
13195
|
+
return parentElm === null || parentElm === void 0 ? void 0 : parentElm.querySelector('[role]');
|
|
13196
13196
|
}
|
|
13197
|
-
const gridElm = elm === null || elm ===
|
|
13198
|
-
const numCells = gridElm === null || gridElm ===
|
|
13197
|
+
const gridElm = elm === null || elm === void 0 ? void 0 : elm.parentElement.parentElement;
|
|
13198
|
+
const numCells = gridElm === null || gridElm === void 0 ? void 0 : gridElm.childElementCount;
|
|
13199
13199
|
if (numCells) {
|
|
13200
13200
|
const nextIndex = findNextItemIndex({
|
|
13201
13201
|
rowIndex,
|
|
@@ -13206,8 +13206,8 @@ function getRowsKeyboardNavigation(_ref) {
|
|
|
13206
13206
|
keyCode,
|
|
13207
13207
|
numCells
|
|
13208
13208
|
});
|
|
13209
|
-
const nextElm = elm === null || elm ===
|
|
13210
|
-
return nextElm === null || nextElm ===
|
|
13209
|
+
const nextElm = elm === null || elm === void 0 ? void 0 : elm.parentElement.parentElement.children[nextIndex];
|
|
13210
|
+
return nextElm === null || nextElm === void 0 ? void 0 : nextElm.querySelector('[role]');
|
|
13211
13211
|
}
|
|
13212
13212
|
return undefined;
|
|
13213
13213
|
};
|
|
@@ -13236,7 +13236,7 @@ function getRowsKeyboardNavigation(_ref) {
|
|
|
13236
13236
|
// TODO: use a store to keep track of this row.
|
|
13237
13237
|
currentTarget.classList.add('last-focused'); // so that we can go back here when we tab back
|
|
13238
13238
|
|
|
13239
|
-
const useDefaultBrowserSupport = !(keyboard !== null && keyboard !==
|
|
13239
|
+
const useDefaultBrowserSupport = !(keyboard !== null && keyboard !== void 0 && keyboard.enabled);
|
|
13240
13240
|
if (useDefaultBrowserSupport) {
|
|
13241
13241
|
if (!inSelection) return;
|
|
13242
13242
|
keyboard.focusSelection();
|
|
@@ -13311,18 +13311,18 @@ function getRowsKeyboardNavigation(_ref) {
|
|
|
13311
13311
|
case KEYS.HOME:
|
|
13312
13312
|
focusListItems.setFirst(true);
|
|
13313
13313
|
if (ctrlKey) {
|
|
13314
|
-
setScrollPosition === null || setScrollPosition ===
|
|
13314
|
+
setScrollPosition === null || setScrollPosition === void 0 || setScrollPosition('overflowStart');
|
|
13315
13315
|
break;
|
|
13316
13316
|
}
|
|
13317
|
-
setScrollPosition === null || setScrollPosition ===
|
|
13317
|
+
setScrollPosition === null || setScrollPosition === void 0 || setScrollPosition('start');
|
|
13318
13318
|
break;
|
|
13319
13319
|
case KEYS.END:
|
|
13320
13320
|
focusListItems.setLast(true);
|
|
13321
13321
|
if (ctrlKey) {
|
|
13322
|
-
setScrollPosition === null || setScrollPosition ===
|
|
13322
|
+
setScrollPosition === null || setScrollPosition === void 0 || setScrollPosition('overflowEnd');
|
|
13323
13323
|
break;
|
|
13324
13324
|
}
|
|
13325
|
-
setScrollPosition === null || setScrollPosition ===
|
|
13325
|
+
setScrollPosition === null || setScrollPosition === void 0 || setScrollPosition('end');
|
|
13326
13326
|
break;
|
|
13327
13327
|
case KEYS.A:
|
|
13328
13328
|
if (ctrlKey || metaKey) {
|
|
@@ -13355,7 +13355,7 @@ function getValueTextAlign(_ref) {
|
|
|
13355
13355
|
cell,
|
|
13356
13356
|
textAlign
|
|
13357
13357
|
} = _ref;
|
|
13358
|
-
const isNumeric = !['NaN', undefined].includes(cell === null || cell ===
|
|
13358
|
+
const isNumeric = !['NaN', undefined].includes(cell === null || cell === void 0 ? void 0 : cell.qNum);
|
|
13359
13359
|
let valueTextAlign;
|
|
13360
13360
|
const isAutoTextAlign = !textAlign || textAlign.auto;
|
|
13361
13361
|
const dirToTextAlignMap = {
|
|
@@ -13369,7 +13369,7 @@ function getValueTextAlign(_ref) {
|
|
|
13369
13369
|
valueTextAlign = direction === 'rtl' ? 'left' : 'right';
|
|
13370
13370
|
}
|
|
13371
13371
|
} else {
|
|
13372
|
-
valueTextAlign = (textAlign === null || textAlign ===
|
|
13372
|
+
valueTextAlign = (textAlign === null || textAlign === void 0 ? void 0 : textAlign.align) || 'left';
|
|
13373
13373
|
}
|
|
13374
13374
|
const ALLOWED_OPTIONS = ['left', 'center', 'right'];
|
|
13375
13375
|
return ALLOWED_OPTIONS.includes(valueTextAlign) ? valueTextAlign : 'left';
|
|
@@ -13515,18 +13515,18 @@ function RowColumn(_ref) {
|
|
|
13515
13515
|
rowIndex,
|
|
13516
13516
|
columnIndex,
|
|
13517
13517
|
layoutOrder
|
|
13518
|
-
})), [actions, keyboard === null || keyboard ===
|
|
13518
|
+
})), [actions, keyboard === null || keyboard === void 0 ? void 0 : keyboard.innerTabStops, rowCount, columnCount, rowIndex, columnIndex, layoutOrder]);
|
|
13519
13519
|
const cell = useMemo$1(() => getCellFromPages({
|
|
13520
13520
|
pages,
|
|
13521
13521
|
cellIndex
|
|
13522
13522
|
}), [pages, cellIndex]);
|
|
13523
|
-
const isSelected = (cell === null || cell ===
|
|
13523
|
+
const isSelected = (cell === null || cell === void 0 ? void 0 : cell.qState) === 'S' || (cell === null || cell === void 0 ? void 0 : cell.qState) === 'XS' || (cell === null || cell === void 0 ? void 0 : cell.qState) === 'L' || (cell === null || cell === void 0 ? void 0 : cell.qState) === 'XL';
|
|
13524
13524
|
const classArr = useMemo$1(() => getValueStateClasses({
|
|
13525
13525
|
column,
|
|
13526
13526
|
histogram,
|
|
13527
13527
|
cell,
|
|
13528
13528
|
showGray
|
|
13529
|
-
}), [cell === null || cell ===
|
|
13529
|
+
}), [cell === null || cell === void 0 ? void 0 : cell.qState, histogram, dense]);
|
|
13530
13530
|
const preventContextMenu = useCallback(event => {
|
|
13531
13531
|
event.preventDefault();
|
|
13532
13532
|
}, [checkboxes]);
|
|
@@ -13539,11 +13539,11 @@ function RowColumn(_ref) {
|
|
|
13539
13539
|
return null; // prevent rendering empty rows
|
|
13540
13540
|
}
|
|
13541
13541
|
const isGridCol = dataLayout === 'grid' && layoutOrder === 'column';
|
|
13542
|
-
const label = (_cell$qText = cell === null || cell ===
|
|
13542
|
+
const label = (_cell$qText = cell === null || cell === void 0 ? void 0 : cell.qText) !== null && _cell$qText !== void 0 ? _cell$qText : '';
|
|
13543
13543
|
// Search highlights. Split up labelText span into several and add the highlighted class to matching sub-strings.
|
|
13544
13544
|
|
|
13545
13545
|
let labels;
|
|
13546
|
-
if ((_cell$qHighlightRange = cell.qHighlightRanges) !== null && _cell$qHighlightRange !==
|
|
13546
|
+
if ((_cell$qHighlightRange = cell.qHighlightRanges) !== null && _cell$qHighlightRange !== void 0 && (_cell$qHighlightRange = _cell$qHighlightRange.qRanges) !== null && _cell$qHighlightRange !== void 0 && _cell$qHighlightRange.length) {
|
|
13547
13547
|
const ranges = cell.qHighlightRanges.qRanges.sort((a, b) => a.qCharPos - b.qCharPos) || [];
|
|
13548
13548
|
labels = getSegmentsFromRanges(label, ranges);
|
|
13549
13549
|
}
|
|
@@ -13616,11 +13616,11 @@ function RowColumn(_ref) {
|
|
|
13616
13616
|
onTouchEnd: onTouchEnd,
|
|
13617
13617
|
onContextMenu: preventContextMenu,
|
|
13618
13618
|
tabIndex: isFirstElement && keyboard.innerTabStops ? 0 : -1,
|
|
13619
|
-
"data-n": cell === null || cell ===
|
|
13619
|
+
"data-n": cell === null || cell === void 0 ? void 0 : cell.qElemNumber,
|
|
13620
13620
|
direction: direction,
|
|
13621
13621
|
fillHeight: fillHeight
|
|
13622
|
-
}, (cell === null || cell ===
|
|
13623
|
-
qFrequency: cell === null || cell ===
|
|
13622
|
+
}, (cell === null || cell === void 0 ? void 0 : cell.qFrequency) && /*#__PURE__*/React__default.createElement(Histogram, {
|
|
13623
|
+
qFrequency: cell === null || cell === void 0 ? void 0 : cell.qFrequency,
|
|
13624
13624
|
histogram: histogram,
|
|
13625
13625
|
checkboxes: checkboxes,
|
|
13626
13626
|
isSelected: isSelected,
|
|
@@ -13740,7 +13740,7 @@ function areInputsEqual(newInputs, lastInputs) {
|
|
|
13740
13740
|
}
|
|
13741
13741
|
|
|
13742
13742
|
function memoizeOne(resultFn, isEqual) {
|
|
13743
|
-
if (isEqual ===
|
|
13743
|
+
if (isEqual === void 0) { isEqual = areInputsEqual; }
|
|
13744
13744
|
var lastThis;
|
|
13745
13745
|
var lastArgs = [];
|
|
13746
13746
|
var lastResult;
|
|
@@ -13793,7 +13793,7 @@ function requestTimeout(callback, delay) {
|
|
|
13793
13793
|
var size = -1; // This utility copied from "dom-helpers" package.
|
|
13794
13794
|
|
|
13795
13795
|
function getScrollbarSize(recalculate) {
|
|
13796
|
-
if (recalculate ===
|
|
13796
|
+
if (recalculate === void 0) {
|
|
13797
13797
|
recalculate = false;
|
|
13798
13798
|
}
|
|
13799
13799
|
|
|
@@ -13818,7 +13818,7 @@ var cachedRTLResult = null; // TRICKY According to the spec, scrollLeft should b
|
|
|
13818
13818
|
// If it does not match, then we can assume a non-standard RTL scroll implementation.
|
|
13819
13819
|
|
|
13820
13820
|
function getRTLOffsetType(recalculate) {
|
|
13821
|
-
if (recalculate ===
|
|
13821
|
+
if (recalculate === void 0) {
|
|
13822
13822
|
recalculate = false;
|
|
13823
13823
|
}
|
|
13824
13824
|
|
|
@@ -13894,7 +13894,7 @@ function createGridComponent(_ref2) {
|
|
|
13894
13894
|
_this = _PureComponent.call(this, props) || this;
|
|
13895
13895
|
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
|
|
13896
13896
|
_this._resetIsScrollingTimeoutId = null;
|
|
13897
|
-
_this._outerRef =
|
|
13897
|
+
_this._outerRef = void 0;
|
|
13898
13898
|
_this.state = {
|
|
13899
13899
|
instance: _assertThisInitialized(_this),
|
|
13900
13900
|
isScrolling: false,
|
|
@@ -13904,7 +13904,7 @@ function createGridComponent(_ref2) {
|
|
|
13904
13904
|
scrollUpdateWasRequested: false,
|
|
13905
13905
|
verticalScrollDirection: 'forward'
|
|
13906
13906
|
};
|
|
13907
|
-
_this._callOnItemsRendered =
|
|
13907
|
+
_this._callOnItemsRendered = void 0;
|
|
13908
13908
|
_this._callOnItemsRendered = memoizeOne(function (overscanColumnStartIndex, overscanColumnStopIndex, overscanRowStartIndex, overscanRowStopIndex, visibleColumnStartIndex, visibleColumnStopIndex, visibleRowStartIndex, visibleRowStopIndex) {
|
|
13909
13909
|
return _this.props.onItemsRendered({
|
|
13910
13910
|
overscanColumnStartIndex: overscanColumnStartIndex,
|
|
@@ -13917,7 +13917,7 @@ function createGridComponent(_ref2) {
|
|
|
13917
13917
|
visibleRowStopIndex: visibleRowStopIndex
|
|
13918
13918
|
});
|
|
13919
13919
|
});
|
|
13920
|
-
_this._callOnScroll =
|
|
13920
|
+
_this._callOnScroll = void 0;
|
|
13921
13921
|
_this._callOnScroll = memoizeOne(function (scrollLeft, scrollTop, horizontalScrollDirection, verticalScrollDirection, scrollUpdateWasRequested) {
|
|
13922
13922
|
return _this.props.onScroll({
|
|
13923
13923
|
horizontalScrollDirection: horizontalScrollDirection,
|
|
@@ -13927,7 +13927,7 @@ function createGridComponent(_ref2) {
|
|
|
13927
13927
|
scrollUpdateWasRequested: scrollUpdateWasRequested
|
|
13928
13928
|
});
|
|
13929
13929
|
});
|
|
13930
|
-
_this._getItemStyle =
|
|
13930
|
+
_this._getItemStyle = void 0;
|
|
13931
13931
|
|
|
13932
13932
|
_this._getItemStyle = function (rowIndex, columnIndex) {
|
|
13933
13933
|
var _this$props = _this.props,
|
|
@@ -13959,7 +13959,7 @@ function createGridComponent(_ref2) {
|
|
|
13959
13959
|
return style;
|
|
13960
13960
|
};
|
|
13961
13961
|
|
|
13962
|
-
_this._getItemStyleCache =
|
|
13962
|
+
_this._getItemStyleCache = void 0;
|
|
13963
13963
|
_this._getItemStyleCache = memoizeOne(function (_, __, ___) {
|
|
13964
13964
|
return {};
|
|
13965
13965
|
});
|
|
@@ -14093,7 +14093,7 @@ function createGridComponent(_ref2) {
|
|
|
14093
14093
|
|
|
14094
14094
|
_proto.scrollToItem = function scrollToItem(_ref4) {
|
|
14095
14095
|
var _ref4$align = _ref4.align,
|
|
14096
|
-
align = _ref4$align ===
|
|
14096
|
+
align = _ref4$align === void 0 ? 'auto' : _ref4$align,
|
|
14097
14097
|
columnIndex = _ref4.columnIndex,
|
|
14098
14098
|
rowIndex = _ref4.rowIndex;
|
|
14099
14099
|
var _this$props2 = this.props,
|
|
@@ -14204,7 +14204,7 @@ function createGridComponent(_ref2) {
|
|
|
14204
14204
|
innerTagName = _this$props4.innerTagName,
|
|
14205
14205
|
itemData = _this$props4.itemData,
|
|
14206
14206
|
_this$props4$itemKey = _this$props4.itemKey,
|
|
14207
|
-
itemKey = _this$props4$itemKey ===
|
|
14207
|
+
itemKey = _this$props4$itemKey === void 0 ? defaultItemKey : _this$props4$itemKey,
|
|
14208
14208
|
outerElementType = _this$props4.outerElementType,
|
|
14209
14209
|
outerTagName = _this$props4.outerTagName,
|
|
14210
14210
|
rowCount = _this$props4.rowCount,
|
|
@@ -14413,7 +14413,7 @@ function createListComponent(_ref) {
|
|
|
14413
14413
|
|
|
14414
14414
|
_this = _PureComponent.call(this, props) || this;
|
|
14415
14415
|
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
|
|
14416
|
-
_this._outerRef =
|
|
14416
|
+
_this._outerRef = void 0;
|
|
14417
14417
|
_this._resetIsScrollingTimeoutId = null;
|
|
14418
14418
|
_this.state = {
|
|
14419
14419
|
instance: _assertThisInitialized(_this),
|
|
@@ -14422,7 +14422,7 @@ function createListComponent(_ref) {
|
|
|
14422
14422
|
scrollOffset: typeof _this.props.initialScrollOffset === 'number' ? _this.props.initialScrollOffset : 0,
|
|
14423
14423
|
scrollUpdateWasRequested: false
|
|
14424
14424
|
};
|
|
14425
|
-
_this._callOnItemsRendered =
|
|
14425
|
+
_this._callOnItemsRendered = void 0;
|
|
14426
14426
|
_this._callOnItemsRendered = memoizeOne(function (overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
|
|
14427
14427
|
return _this.props.onItemsRendered({
|
|
14428
14428
|
overscanStartIndex: overscanStartIndex,
|
|
@@ -14431,7 +14431,7 @@ function createListComponent(_ref) {
|
|
|
14431
14431
|
visibleStopIndex: visibleStopIndex
|
|
14432
14432
|
});
|
|
14433
14433
|
});
|
|
14434
|
-
_this._callOnScroll =
|
|
14434
|
+
_this._callOnScroll = void 0;
|
|
14435
14435
|
_this._callOnScroll = memoizeOne(function (scrollDirection, scrollOffset, scrollUpdateWasRequested) {
|
|
14436
14436
|
return _this.props.onScroll({
|
|
14437
14437
|
scrollDirection: scrollDirection,
|
|
@@ -14439,7 +14439,7 @@ function createListComponent(_ref) {
|
|
|
14439
14439
|
scrollUpdateWasRequested: scrollUpdateWasRequested
|
|
14440
14440
|
});
|
|
14441
14441
|
});
|
|
14442
|
-
_this._getItemStyle =
|
|
14442
|
+
_this._getItemStyle = void 0;
|
|
14443
14443
|
|
|
14444
14444
|
_this._getItemStyle = function (index) {
|
|
14445
14445
|
var _this$props = _this.props,
|
|
@@ -14474,7 +14474,7 @@ function createListComponent(_ref) {
|
|
|
14474
14474
|
return style;
|
|
14475
14475
|
};
|
|
14476
14476
|
|
|
14477
|
-
_this._getItemStyleCache =
|
|
14477
|
+
_this._getItemStyleCache = void 0;
|
|
14478
14478
|
_this._getItemStyleCache = memoizeOne(function (_, __, ___) {
|
|
14479
14479
|
return {};
|
|
14480
14480
|
});
|
|
@@ -14606,7 +14606,7 @@ function createListComponent(_ref) {
|
|
|
14606
14606
|
};
|
|
14607
14607
|
|
|
14608
14608
|
_proto.scrollToItem = function scrollToItem(index, align) {
|
|
14609
|
-
if (align ===
|
|
14609
|
+
if (align === void 0) {
|
|
14610
14610
|
align = 'auto';
|
|
14611
14611
|
}
|
|
14612
14612
|
|
|
@@ -14712,7 +14712,7 @@ function createListComponent(_ref) {
|
|
|
14712
14712
|
itemCount = _this$props5.itemCount,
|
|
14713
14713
|
itemData = _this$props5.itemData,
|
|
14714
14714
|
_this$props5$itemKey = _this$props5.itemKey,
|
|
14715
|
-
itemKey = _this$props5$itemKey ===
|
|
14715
|
+
itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey,
|
|
14716
14716
|
layout = _this$props5.layout,
|
|
14717
14717
|
outerElementType = _this$props5.outerElementType,
|
|
14718
14718
|
outerTagName = _this$props5.outerTagName,
|
|
@@ -15164,13 +15164,13 @@ function getStyledComponents() {
|
|
|
15164
15164
|
}
|
|
15165
15165
|
|
|
15166
15166
|
const getIndex = (renderProps, isColumnLayout) => {
|
|
15167
|
-
if ((renderProps === null || renderProps ===
|
|
15167
|
+
if ((renderProps === null || renderProps === void 0 ? void 0 : renderProps.visibleRowStopIndex) !== undefined || renderProps.visibleColumnStopIndex !== undefined) {
|
|
15168
15168
|
return isColumnLayout ? renderProps.visibleColumnStopIndex : renderProps.visibleRowStopIndex;
|
|
15169
15169
|
}
|
|
15170
15170
|
return renderProps.visibleStopIndex;
|
|
15171
15171
|
};
|
|
15172
15172
|
const getIsScrollTop = (renderProps, isColumnLayout) => {
|
|
15173
|
-
if ((renderProps === null || renderProps ===
|
|
15173
|
+
if ((renderProps === null || renderProps === void 0 ? void 0 : renderProps.visibleRowStartIndex) !== undefined || renderProps.visibleColumnStartIndex !== undefined) {
|
|
15174
15174
|
return isColumnLayout ? renderProps.visibleColumnStartIndex === 0 : renderProps.visibleRowStartIndex === 0;
|
|
15175
15175
|
}
|
|
15176
15176
|
return renderProps.visibleStartIndex === 0;
|
|
@@ -15187,7 +15187,7 @@ function handleSetOverflowDisclaimer(_ref) {
|
|
|
15187
15187
|
qCardinal,
|
|
15188
15188
|
dataOffset
|
|
15189
15189
|
} = _ref;
|
|
15190
|
-
const isColumnLayout = (layoutOptions === null || layoutOptions ===
|
|
15190
|
+
const isColumnLayout = (layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.layoutOrder) === 'column' && layoutOptions.dataLayout !== 'singleColumn';
|
|
15191
15191
|
const index = getIndex(renderProps, isColumnLayout);
|
|
15192
15192
|
const stopIndex = isColumnLayout ? maxCount.column : maxCount.row;
|
|
15193
15193
|
const count = isColumnLayout ? columnCount : rowCount;
|
|
@@ -15257,7 +15257,7 @@ function getListBoxComponents(_ref) {
|
|
|
15257
15257
|
useIsScrolling: true,
|
|
15258
15258
|
className: classes$9.styledScrollbars
|
|
15259
15259
|
};
|
|
15260
|
-
const isLocked = layout === null || layout ===
|
|
15260
|
+
const isLocked = layout === null || layout === void 0 ? void 0 : layout.qListObject.qDimensionInfo.qLocked;
|
|
15261
15261
|
const fillHeight = listHeight <= itemHeight;
|
|
15262
15262
|
|
|
15263
15263
|
// Item data common for List and Grid.
|
|
@@ -15275,8 +15275,8 @@ function getListBoxComponents(_ref) {
|
|
|
15275
15275
|
sizes,
|
|
15276
15276
|
actions: {
|
|
15277
15277
|
select,
|
|
15278
|
-
confirm: () => selections === null || selections ===
|
|
15279
|
-
cancel: () => selections === null || selections ===
|
|
15278
|
+
confirm: () => selections === null || selections === void 0 ? void 0 : selections.confirm.call(selections),
|
|
15279
|
+
cancel: () => selections === null || selections === void 0 ? void 0 : selections.cancel.call(selections),
|
|
15280
15280
|
setScrollPosition,
|
|
15281
15281
|
selectAll,
|
|
15282
15282
|
onCtrlF
|
|
@@ -15306,7 +15306,7 @@ function getListBoxComponents(_ref) {
|
|
|
15306
15306
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
15307
15307
|
, _extends$6({}, commonComponentOptions, {
|
|
15308
15308
|
dataTestid: "fixed-size-list",
|
|
15309
|
-
scrollDisabled: constraints === null || constraints ===
|
|
15309
|
+
scrollDisabled: constraints === null || constraints === void 0 ? void 0 : constraints.active,
|
|
15310
15310
|
height: listHeight,
|
|
15311
15311
|
width: width,
|
|
15312
15312
|
itemCount: listCount,
|
|
@@ -15330,7 +15330,7 @@ function getListBoxComponents(_ref) {
|
|
|
15330
15330
|
columnCount,
|
|
15331
15331
|
rowCount,
|
|
15332
15332
|
overflowDisclaimer,
|
|
15333
|
-
qCardinal: layout === null || layout ===
|
|
15333
|
+
qCardinal: layout === null || layout === void 0 || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === void 0 || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === void 0 ? void 0 : _layout$qListObject.qCardinal,
|
|
15334
15334
|
dataOffset: local.current.dataOffset
|
|
15335
15335
|
});
|
|
15336
15336
|
onItemsRendered(_objectSpread2({}, renderProps));
|
|
@@ -15374,7 +15374,7 @@ function getListBoxComponents(_ref) {
|
|
|
15374
15374
|
columnCount,
|
|
15375
15375
|
rowCount,
|
|
15376
15376
|
overflowDisclaimer,
|
|
15377
|
-
qCardinal: layout === null || layout ===
|
|
15377
|
+
qCardinal: layout === null || layout === void 0 || (_layout$qListObject2 = layout.qListObject) === null || _layout$qListObject2 === void 0 || (_layout$qListObject2 = _layout$qListObject2.qDimensionInfo) === null || _layout$qListObject2 === void 0 ? void 0 : _layout$qListObject2.qCardinal,
|
|
15378
15378
|
dataOffset: local.current.dataOffset
|
|
15379
15379
|
});
|
|
15380
15380
|
onItemsRendered(renderOptions);
|
|
@@ -15383,7 +15383,7 @@ function getListBoxComponents(_ref) {
|
|
|
15383
15383
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
15384
15384
|
, _extends$6({}, commonComponentOptions, {
|
|
15385
15385
|
dataTestid: "fixed-size-grid",
|
|
15386
|
-
scrollDisabled: constraints === null || constraints ===
|
|
15386
|
+
scrollDisabled: constraints === null || constraints === void 0 ? void 0 : constraints.active,
|
|
15387
15387
|
height: gridHeight,
|
|
15388
15388
|
width: width,
|
|
15389
15389
|
columnCount: columnCount,
|
|
@@ -15417,7 +15417,7 @@ function calculateColumnMode(_ref) {
|
|
|
15417
15417
|
itemMinWidth
|
|
15418
15418
|
} = _ref;
|
|
15419
15419
|
let rowCount;
|
|
15420
|
-
const maxRows = (maxVisibleRows === null || maxVisibleRows ===
|
|
15420
|
+
const maxRows = (maxVisibleRows === null || maxVisibleRows === void 0 ? void 0 : maxVisibleRows.maxRows) || 3;
|
|
15421
15421
|
const autoRowCount = Math.floor(listHeight / itemHeight);
|
|
15422
15422
|
if (maxVisibleRows.auto !== false) {
|
|
15423
15423
|
rowCount = autoRowCount;
|
|
@@ -15442,11 +15442,11 @@ function calculateRowMode(_ref) {
|
|
|
15442
15442
|
columnAutoWidth,
|
|
15443
15443
|
itemMinWidth
|
|
15444
15444
|
} = _ref;
|
|
15445
|
-
const maxColumns = (maxVisibleColumns === null || maxVisibleColumns ===
|
|
15445
|
+
const maxColumns = (maxVisibleColumns === null || maxVisibleColumns === void 0 ? void 0 : maxVisibleColumns.maxColumns) || 3;
|
|
15446
15446
|
const innerWidth = containerWidth - SCROLL_BAR_WIDTH;
|
|
15447
15447
|
let columnCount;
|
|
15448
15448
|
const autoColumnCount = Math.min(listCount, Math.max(1, Math.round(innerWidth / Math.max(itemMinWidth, columnAutoWidth)))); // TODO: smarter sizing... based on glyph count + font size etc...??
|
|
15449
|
-
if ((maxVisibleColumns === null || maxVisibleColumns ===
|
|
15449
|
+
if ((maxVisibleColumns === null || maxVisibleColumns === void 0 ? void 0 : maxVisibleColumns.auto) !== false) {
|
|
15450
15450
|
columnCount = autoColumnCount;
|
|
15451
15451
|
} else {
|
|
15452
15452
|
columnCount = Math.min(listCount, maxColumns, autoColumnCount);
|
|
@@ -15529,7 +15529,7 @@ function useListSizes(_ref) {
|
|
|
15529
15529
|
const {
|
|
15530
15530
|
fontSize = '12px',
|
|
15531
15531
|
fontFamily = 'Source sans pro'
|
|
15532
|
-
} = (styles === null || styles ===
|
|
15532
|
+
} = (styles === null || styles === void 0 ? void 0 : styles.content) || {};
|
|
15533
15533
|
const font = "".concat(fontSize, " ").concat(fontFamily); // font format as supported by HTML canvas
|
|
15534
15534
|
const textWidth = useTextWidth({
|
|
15535
15535
|
text: getMeasureText(layout),
|
|
@@ -15564,7 +15564,7 @@ function useListSizes(_ref) {
|
|
|
15564
15564
|
isGridMode,
|
|
15565
15565
|
dense
|
|
15566
15566
|
});
|
|
15567
|
-
const listHeight = height !== null && height !==
|
|
15567
|
+
const listHeight = height !== null && height !== void 0 ? height : 8 * itemHeight;
|
|
15568
15568
|
if (layoutOrder) {
|
|
15569
15569
|
// Modify container width to achieve the exact design with 8px margins on each side (left and right).
|
|
15570
15570
|
let containerWidth = width;
|
|
@@ -15743,7 +15743,7 @@ function getListCount(_ref2) {
|
|
|
15743
15743
|
count,
|
|
15744
15744
|
calculatePagesHeight = false
|
|
15745
15745
|
} = _ref2;
|
|
15746
|
-
const listCount = pages !== null && pages !==
|
|
15746
|
+
const listCount = pages !== null && pages !== void 0 && pages.length && calculatePagesHeight ? getCalculatedHeight({
|
|
15747
15747
|
pages,
|
|
15748
15748
|
minimumBatchSize,
|
|
15749
15749
|
count
|
|
@@ -15865,19 +15865,19 @@ const SvgIconRoot = styled('svg', {
|
|
|
15865
15865
|
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
15866
15866
|
fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
|
|
15867
15867
|
flexShrink: 0,
|
|
15868
|
-
transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ?
|
|
15869
|
-
duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ?
|
|
15868
|
+
transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
|
|
15869
|
+
duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter
|
|
15870
15870
|
}),
|
|
15871
15871
|
fontSize: {
|
|
15872
15872
|
inherit: 'inherit',
|
|
15873
|
-
small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ?
|
|
15874
|
-
medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ?
|
|
15875
|
-
large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ?
|
|
15873
|
+
small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
|
|
15874
|
+
medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
|
|
15875
|
+
large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
|
|
15876
15876
|
}[ownerState.fontSize],
|
|
15877
15877
|
// TODO v5 deprecate, v6 remove for sx
|
|
15878
|
-
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ?
|
|
15879
|
-
action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ?
|
|
15880
|
-
disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ?
|
|
15878
|
+
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {
|
|
15879
|
+
action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,
|
|
15880
|
+
disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,
|
|
15881
15881
|
inherit: undefined
|
|
15882
15882
|
}[ownerState.color]
|
|
15883
15883
|
};
|
|
@@ -16008,7 +16008,7 @@ function requireClose () {
|
|
|
16008
16008
|
Object.defineProperty(Close$1, "__esModule", {
|
|
16009
16009
|
value: true
|
|
16010
16010
|
});
|
|
16011
|
-
Close$1.default =
|
|
16011
|
+
Close$1.default = void 0;
|
|
16012
16012
|
var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
|
|
16013
16013
|
var _jsxRuntime = requireJsxRuntime();
|
|
16014
16014
|
Close$1.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
@@ -16095,7 +16095,7 @@ function getScrollIndex(_ref) {
|
|
|
16095
16095
|
} = _ref;
|
|
16096
16096
|
let scrollIndex;
|
|
16097
16097
|
let triggerRerender = false;
|
|
16098
|
-
let newOffset = offset !== null && offset !==
|
|
16098
|
+
let newOffset = offset !== null && offset !== void 0 ? offset : 0;
|
|
16099
16099
|
switch (position) {
|
|
16100
16100
|
case 'start':
|
|
16101
16101
|
scrollIndex = 0;
|
|
@@ -16131,7 +16131,7 @@ function getFrequencyAllowed(_ref) {
|
|
|
16131
16131
|
const widthPermitsFreq = itemWidth > FREQUENCY_MIN_SHOW_WIDTH;
|
|
16132
16132
|
const {
|
|
16133
16133
|
frequencyEnabled = false
|
|
16134
|
-
} = (layout === null || layout ===
|
|
16134
|
+
} = (layout === null || layout === void 0 ? void 0 : layout.qListObject) || {};
|
|
16135
16135
|
const hasValidFreqOption = !['N', undefined].includes(frequencyMode);
|
|
16136
16136
|
return !!(widthPermitsFreq && (hasValidFreqOption || frequencyEnabled));
|
|
16137
16137
|
}
|
|
@@ -16145,7 +16145,7 @@ const escapeField = field => {
|
|
|
16145
16145
|
}
|
|
16146
16146
|
return "[".concat(field.replace(/\]/g, ']]'), "]");
|
|
16147
16147
|
};
|
|
16148
|
-
const needToFetchFrequencyMax = layout => (layout === null || layout ===
|
|
16148
|
+
const needToFetchFrequencyMax = layout => (layout === null || layout === void 0 ? void 0 : layout.frequencyMax) === 'fetch';
|
|
16149
16149
|
const getFrequencyMaxExpression = field => {
|
|
16150
16150
|
const escapedField = escapeField(field);
|
|
16151
16151
|
return "Max(AGGR(Count(".concat(escapedField, "), ").concat(escapedField, "))");
|
|
@@ -16174,7 +16174,7 @@ const useFrequencyMax = (app, layout) => {
|
|
|
16174
16174
|
fetch();
|
|
16175
16175
|
}, [needFetch && layout]);
|
|
16176
16176
|
return {
|
|
16177
|
-
frequencyMax: needFetch ? frequencyMax : layout === null || layout ===
|
|
16177
|
+
frequencyMax: needFetch ? frequencyMax : layout === null || layout === void 0 ? void 0 : layout.frequencyMax,
|
|
16178
16178
|
awaitingFrequencyMax
|
|
16179
16179
|
};
|
|
16180
16180
|
};
|
|
@@ -16194,7 +16194,7 @@ function getSRForSelectedState(_ref) {
|
|
|
16194
16194
|
} = _ref;
|
|
16195
16195
|
const {
|
|
16196
16196
|
qStateCounts: s = {}
|
|
16197
|
-
} = (layout === null || layout ===
|
|
16197
|
+
} = (layout === null || layout === void 0 || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === void 0 ? void 0 : _layout$qListObject.qDimensionInfo) || {};
|
|
16198
16198
|
const count = s.qSelected + s.qSelectedExcluded + s.qLocked + s.qLockedExcluded;
|
|
16199
16199
|
let t;
|
|
16200
16200
|
switch (count) {
|
|
@@ -16236,7 +16236,7 @@ function getScreenReaderAssertiveText(_ref2) {
|
|
|
16236
16236
|
translator: translatorDynamic
|
|
16237
16237
|
} = useContext(InstanceContext);
|
|
16238
16238
|
const finalStringArr = [];
|
|
16239
|
-
if (searchInputText !== null && searchInputText !==
|
|
16239
|
+
if (searchInputText !== null && searchInputText !== void 0 && searchInputText.length) {
|
|
16240
16240
|
// Add search result text.
|
|
16241
16241
|
const srSearchTranslationString = getSearchTranslationString(listCount);
|
|
16242
16242
|
const srSearchString = translatorDynamic.get(srSearchTranslationString, [listCount]);
|
|
@@ -16251,7 +16251,7 @@ function getScreenReaderAssertiveText(_ref2) {
|
|
|
16251
16251
|
finalStringArr.push(srSelectionValueText);
|
|
16252
16252
|
|
|
16253
16253
|
// Merge texts into one text string, targeting the assertive screen reader.
|
|
16254
|
-
const finalString = finalStringArr.filter(v => !!(v !== null && v !==
|
|
16254
|
+
const finalString = finalStringArr.filter(v => !!(v !== null && v !== void 0 && v.length)).join('. ');
|
|
16255
16255
|
return finalString;
|
|
16256
16256
|
}
|
|
16257
16257
|
|
|
@@ -16263,7 +16263,7 @@ function deduceFrequencyMode(pages) {
|
|
|
16263
16263
|
return qMatrix.some(_ref2 => {
|
|
16264
16264
|
var _item$qFrequency;
|
|
16265
16265
|
let [item] = _ref2;
|
|
16266
|
-
return !!((_item$qFrequency = item.qFrequency) !== null && _item$qFrequency !==
|
|
16266
|
+
return !!((_item$qFrequency = item.qFrequency) !== null && _item$qFrequency !== void 0 && _item$qFrequency.match('%'));
|
|
16267
16267
|
});
|
|
16268
16268
|
});
|
|
16269
16269
|
const OTHER = '-'; // treat all other as '-' (change later if we need to identify other modes)
|
|
@@ -16322,7 +16322,7 @@ function ListBox(_ref) {
|
|
|
16322
16322
|
const {
|
|
16323
16323
|
checkboxes = checkboxOption,
|
|
16324
16324
|
histogram
|
|
16325
|
-
} = layout !== null && layout !==
|
|
16325
|
+
} = layout !== null && layout !== void 0 ? layout : {};
|
|
16326
16326
|
const loaderRef = useRef$1(null);
|
|
16327
16327
|
const local = useRef$1({
|
|
16328
16328
|
queue: [],
|
|
@@ -16365,7 +16365,7 @@ function ListBox(_ref) {
|
|
|
16365
16365
|
show
|
|
16366
16366
|
}));
|
|
16367
16367
|
const [pages, setPages] = useState$1([]);
|
|
16368
|
-
if (itemsLoader !== null && itemsLoader !==
|
|
16368
|
+
if (itemsLoader !== null && itemsLoader !== void 0 && itemsLoader.pages) {
|
|
16369
16369
|
selectionState.update({
|
|
16370
16370
|
setPages,
|
|
16371
16371
|
pages: itemsLoader.pages,
|
|
@@ -16373,13 +16373,13 @@ function ListBox(_ref) {
|
|
|
16373
16373
|
layout
|
|
16374
16374
|
});
|
|
16375
16375
|
}
|
|
16376
|
-
const cardinal = layout === null || layout ===
|
|
16377
|
-
if (itemsLoader !== null && itemsLoader !==
|
|
16376
|
+
const cardinal = layout === null || layout === void 0 ? void 0 : layout.qListObject.qDimensionInfo.qCardinal;
|
|
16377
|
+
if (itemsLoader !== null && itemsLoader !== void 0 && itemsLoader.pages.length && !awaitingFrequencyMax || cardinal === 0) {
|
|
16378
16378
|
// All necessary data fetching done - signal rendering done!
|
|
16379
|
-
renderedCallback === null || renderedCallback ===
|
|
16379
|
+
renderedCallback === null || renderedCallback === void 0 || renderedCallback();
|
|
16380
16380
|
}
|
|
16381
16381
|
const isItemLoaded = useCallback(index => {
|
|
16382
|
-
if (!(pages !== null && pages !==
|
|
16382
|
+
if (!(pages !== null && pages !== void 0 && pages.length) || !local.current.validPages) {
|
|
16383
16383
|
return false;
|
|
16384
16384
|
}
|
|
16385
16385
|
local.current.checkIdx = index;
|
|
@@ -16402,9 +16402,9 @@ function ListBox(_ref) {
|
|
|
16402
16402
|
} = layout || {};
|
|
16403
16403
|
let isRow = true;
|
|
16404
16404
|
if (layoutOptions.dataLayout) {
|
|
16405
|
-
isRow = layoutOptions.dataLayout === 'singleColumn' ? true : (layoutOptions === null || layoutOptions ===
|
|
16405
|
+
isRow = layoutOptions.dataLayout === 'singleColumn' ? true : (layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.layoutOrder) === 'row';
|
|
16406
16406
|
}
|
|
16407
|
-
const isGrid = (layoutOptions === null || layoutOptions ===
|
|
16407
|
+
const isGrid = (layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.dataLayout) === 'grid';
|
|
16408
16408
|
const scrollToIndex = index => {
|
|
16409
16409
|
const gridIndex = _objectSpread2({}, isRow ? {
|
|
16410
16410
|
rowIndex: index
|
|
@@ -16446,7 +16446,7 @@ function ListBox(_ref) {
|
|
|
16446
16446
|
}, [layout, local.current.dataOffset]);
|
|
16447
16447
|
let minimumBatchSize = DEFAULT_MIN_BATCH_SIZE;
|
|
16448
16448
|
const isVertical = layoutOptions.dataLayout !== 'grid';
|
|
16449
|
-
const count = layout === null || layout ===
|
|
16449
|
+
const count = layout === null || layout === void 0 || (_layout$qListObject$q = layout.qListObject.qSize) === null || _layout$qListObject$q === void 0 ? void 0 : _layout$qListObject$q.qcy;
|
|
16450
16450
|
const unlimitedListCount = getListCount({
|
|
16451
16451
|
pages,
|
|
16452
16452
|
minimumBatchSize,
|
|
@@ -16520,7 +16520,7 @@ function ListBox(_ref) {
|
|
|
16520
16520
|
}, [keyScroll.state.up, keyScroll.state.down, keyScroll.state.scrollPosition]);
|
|
16521
16521
|
const {
|
|
16522
16522
|
textAlign
|
|
16523
|
-
} = (layout === null || layout ===
|
|
16523
|
+
} = (layout === null || layout === void 0 ? void 0 : layout.qListObject.qDimensionInfo) || {};
|
|
16524
16524
|
const [focusListItem, setFocusListItem] = useState$1({
|
|
16525
16525
|
first: false,
|
|
16526
16526
|
last: false
|
|
@@ -16615,8 +16615,8 @@ function ListBox(_ref) {
|
|
|
16615
16615
|
dismiss: () => setOverflowDisclaimer(state => _objectSpread2(_objectSpread2({}, state), {}, {
|
|
16616
16616
|
dismissed: true
|
|
16617
16617
|
})),
|
|
16618
|
-
parentWidth: loaderRef === null || loaderRef ===
|
|
16619
|
-
dense: layoutOptions === null || layoutOptions ===
|
|
16618
|
+
parentWidth: loaderRef === null || loaderRef === void 0 || (_loaderRef$current = loaderRef.current) === null || _loaderRef$current === void 0 || (_loaderRef$current = _loaderRef$current._listRef) === null || _loaderRef$current === void 0 || (_loaderRef$current = _loaderRef$current.props) === null || _loaderRef$current === void 0 ? void 0 : _loaderRef$current.width,
|
|
16619
|
+
dense: layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.dense
|
|
16620
16620
|
}));
|
|
16621
16621
|
}
|
|
16622
16622
|
|
|
@@ -16977,12 +16977,12 @@ const More$1 = React__default.forwardRef((_ref3, ref) => {
|
|
|
16977
16977
|
|
|
16978
16978
|
const getActionButtonIndex = btn => {
|
|
16979
16979
|
const toolbar = btn.closest('#actions-toolbar');
|
|
16980
|
-
const nodeList = toolbar === null || toolbar ===
|
|
16980
|
+
const nodeList = toolbar === null || toolbar === void 0 ? void 0 : toolbar.querySelectorAll('.njs-cell-action');
|
|
16981
16981
|
return Array.from(nodeList).indexOf(btn);
|
|
16982
16982
|
};
|
|
16983
16983
|
const focusButton = index => {
|
|
16984
16984
|
const toolbar = document.querySelector('#actions-toolbar');
|
|
16985
|
-
const nodeList = toolbar === null || toolbar ===
|
|
16985
|
+
const nodeList = toolbar === null || toolbar === void 0 ? void 0 : toolbar.querySelectorAll('.njs-cell-action');
|
|
16986
16986
|
if (!nodeList.length) {
|
|
16987
16987
|
return;
|
|
16988
16988
|
}
|
|
@@ -17027,7 +17027,7 @@ function getActionsKeyDownHandler(_ref) {
|
|
|
17027
17027
|
evt.preventDefault(); // prevent scrolling in listbox
|
|
17028
17028
|
break;
|
|
17029
17029
|
case KEYS.TAB:
|
|
17030
|
-
if (keyboardNavigation && focusHandler !== null && focusHandler !==
|
|
17030
|
+
if (keyboardNavigation && focusHandler !== null && focusHandler !== void 0 && focusHandler.refocusContent) {
|
|
17031
17031
|
const isTabbingOut = evt.shiftKey && getEnabledButton(false) === evt.target || !evt.shiftKey && getEnabledButton(true) === evt.target;
|
|
17032
17032
|
if (isTabbingOut) {
|
|
17033
17033
|
evt.preventDefault();
|
|
@@ -17151,7 +17151,7 @@ function ActionsToolbar(_ref3) {
|
|
|
17151
17151
|
const [showMoreItems, setShowMoreItems] = useState$1(false);
|
|
17152
17152
|
const popoverAnchorOrigin = {
|
|
17153
17153
|
vertical: 12,
|
|
17154
|
-
horizontal: ((_popover$anchorEl$cli = (_popover$anchorEl = popover.anchorEl) === null || _popover$anchorEl ===
|
|
17154
|
+
horizontal: ((_popover$anchorEl$cli = (_popover$anchorEl = popover.anchorEl) === null || _popover$anchorEl === void 0 ? void 0 : _popover$anchorEl.clientWidth) !== null && _popover$anchorEl$cli !== void 0 ? _popover$anchorEl$cli : 0) - 7
|
|
17155
17155
|
};
|
|
17156
17156
|
const actionsRef = useRef$1();
|
|
17157
17157
|
const moreRef = useRef$1();
|
|
@@ -17179,11 +17179,11 @@ function ActionsToolbar(_ref3) {
|
|
|
17179
17179
|
if (!focusHandler) return;
|
|
17180
17180
|
const focusFirst = () => {
|
|
17181
17181
|
const enabledButton = getEnabledButton(false);
|
|
17182
|
-
enabledButton === null || enabledButton ===
|
|
17182
|
+
enabledButton === null || enabledButton === void 0 || enabledButton.focus();
|
|
17183
17183
|
};
|
|
17184
17184
|
const focusLast = () => {
|
|
17185
17185
|
const enabledButton = getEnabledButton(true);
|
|
17186
|
-
enabledButton === null || enabledButton ===
|
|
17186
|
+
enabledButton === null || enabledButton === void 0 || enabledButton.focus();
|
|
17187
17187
|
};
|
|
17188
17188
|
focusHandler.on('focus_toolbar_first', focusFirst);
|
|
17189
17189
|
focusHandler.on('focus_toolbar_last', focusLast);
|
|
@@ -17228,7 +17228,7 @@ function ActionsToolbar(_ref3) {
|
|
|
17228
17228
|
sx: {
|
|
17229
17229
|
flexDirection: isRtl ? 'row-reverse' : 'row'
|
|
17230
17230
|
}
|
|
17231
|
-
}, (extraItems === null || extraItems ===
|
|
17231
|
+
}, (extraItems === null || extraItems === void 0 ? void 0 : extraItems.length) && /*#__PURE__*/React__default.createElement(ActionsGroup, {
|
|
17232
17232
|
className: "actions-toolbar-extra-actions",
|
|
17233
17233
|
actions: extraItems,
|
|
17234
17234
|
isRtl: isRtl
|
|
@@ -17300,7 +17300,7 @@ var SearchIcon = props => SvgIcon$1(search(props));
|
|
|
17300
17300
|
const MAX_SEARCH_LENGTH = 64000;
|
|
17301
17301
|
const TREE_PATH = '/qListObjectDef';
|
|
17302
17302
|
const WILDCARD = '**';
|
|
17303
|
-
const limitSearchLength = val => val === null || val ===
|
|
17303
|
+
const limitSearchLength = val => val === null || val === void 0 ? void 0 : val.substring(0, MAX_SEARCH_LENGTH);
|
|
17304
17304
|
const StyledOutlinedInput = styled(OutlinedInput, {
|
|
17305
17305
|
shouldForwardProp: p => !['styles', 'dense', 'isRtl'].includes(p)
|
|
17306
17306
|
})(_ref => {
|
|
@@ -17518,7 +17518,7 @@ function ListBoxSearch(_ref2, ref) {
|
|
|
17518
17518
|
};
|
|
17519
17519
|
const focusOnInput = () => {
|
|
17520
17520
|
var _inputRef$current;
|
|
17521
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current ===
|
|
17521
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
17522
17522
|
};
|
|
17523
17523
|
const onClearSearch = () => {
|
|
17524
17524
|
abortSearch();
|
|
@@ -17633,7 +17633,7 @@ function createAppSelections(_ref) {
|
|
|
17633
17633
|
objectSelections
|
|
17634
17634
|
} = _ref2;
|
|
17635
17635
|
// Quick return if it's already in modal
|
|
17636
|
-
if (objectSelections === ((_modalObjectStore$get = modalObjectStore.get(key)) === null || _modalObjectStore$get ===
|
|
17636
|
+
if (objectSelections === ((_modalObjectStore$get = modalObjectStore.get(key)) === null || _modalObjectStore$get === void 0 ? void 0 : _modalObjectStore$get.objectSelections)) {
|
|
17637
17637
|
return;
|
|
17638
17638
|
}
|
|
17639
17639
|
|
|
@@ -17682,7 +17682,7 @@ function createAppSelections(_ref) {
|
|
|
17682
17682
|
isModal(objectSelections) {
|
|
17683
17683
|
var _modalObjectStore$get2;
|
|
17684
17684
|
// TODO check model state
|
|
17685
|
-
return objectSelections ? ((_modalObjectStore$get2 = modalObjectStore.get(key)) === null || _modalObjectStore$get2 ===
|
|
17685
|
+
return objectSelections ? ((_modalObjectStore$get2 = modalObjectStore.get(key)) === null || _modalObjectStore$get2 === void 0 ? void 0 : _modalObjectStore$get2.objectSelections) === objectSelections : !!modalObjectStore.get(key);
|
|
17686
17686
|
},
|
|
17687
17687
|
forward() {
|
|
17688
17688
|
return appModal.end().then(() => app.forward());
|
|
@@ -17755,7 +17755,7 @@ function createHandler(_ref) {
|
|
|
17755
17755
|
|
|
17756
17756
|
// Resolve elements and filter out containers which do not exist.
|
|
17757
17757
|
const containers = elements.map(item => {
|
|
17758
|
-
const elm = typeof item === 'string' ? document.querySelector(item) : item === null || item ===
|
|
17758
|
+
const elm = typeof item === 'string' ? document.querySelector(item) : item === null || item === void 0 ? void 0 : item.current;
|
|
17759
17759
|
return elm;
|
|
17760
17760
|
}).filter(elm => !!elm && !!document.contains(elm));
|
|
17761
17761
|
if (!containers.length) {
|
|
@@ -17953,12 +17953,12 @@ const getClickOutFuncs = _ref3 => {
|
|
|
17953
17953
|
activateClickOut() {
|
|
17954
17954
|
var _options$onSelectionA;
|
|
17955
17955
|
document.addEventListener('mousedown', handler);
|
|
17956
|
-
options === null || options ===
|
|
17956
|
+
options === null || options === void 0 || (_options$onSelectionA = options.onSelectionActivated) === null || _options$onSelectionA === void 0 || _options$onSelectionA.call(options);
|
|
17957
17957
|
},
|
|
17958
17958
|
deactivateClickOut() {
|
|
17959
17959
|
var _options$onSelectionD;
|
|
17960
17960
|
document.removeEventListener('mousedown', handler);
|
|
17961
|
-
options === null || options ===
|
|
17961
|
+
options === null || options === void 0 || (_options$onSelectionD = options.onSelectionDeactivated) === null || _options$onSelectionD === void 0 || _options$onSelectionD.call(options);
|
|
17962
17962
|
}
|
|
17963
17963
|
};
|
|
17964
17964
|
};
|
|
@@ -18042,14 +18042,14 @@ function selectionState() {
|
|
|
18042
18042
|
this.clearItemStates(false);
|
|
18043
18043
|
}
|
|
18044
18044
|
if (state.enginePages !== pages && pages !== undefined) {
|
|
18045
|
-
state.enginePages = pages !== null && pages !==
|
|
18045
|
+
state.enginePages = pages !== null && pages !== void 0 ? pages : [];
|
|
18046
18046
|
state.selectedInEngine = getSelectedValues(pages);
|
|
18047
18047
|
state.selectableValuesUpdating = false;
|
|
18048
18048
|
state.triggerStateChanged();
|
|
18049
18049
|
}
|
|
18050
18050
|
state.isSingleSelect = isSingleSelect;
|
|
18051
18051
|
state.selectDisabled = selectDisabled || state.selectDisabled;
|
|
18052
|
-
state.isDimCalculated = (_layout$qListObject$q = layout === null || layout ===
|
|
18052
|
+
state.isDimCalculated = (_layout$qListObject$q = layout === null || layout === void 0 || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === void 0 || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === void 0 ? void 0 : _layout$qListObject.qIsCalculated) !== null && _layout$qListObject$q !== void 0 ? _layout$qListObject$q : false;
|
|
18053
18053
|
},
|
|
18054
18054
|
allowedToSelect() {
|
|
18055
18055
|
if (state.selectDisabled()) {
|
|
@@ -18088,7 +18088,7 @@ function selectionState() {
|
|
|
18088
18088
|
if (selected && !additive) {
|
|
18089
18089
|
state.itemStates[elementNumber] = false;
|
|
18090
18090
|
} else if (!selected) {
|
|
18091
|
-
selectedValues === null || selectedValues ===
|
|
18091
|
+
selectedValues === null || selectedValues === void 0 || selectedValues.push(elementNumber);
|
|
18092
18092
|
state.itemStates[elementNumber] = true;
|
|
18093
18093
|
}
|
|
18094
18094
|
},
|
|
@@ -18134,10 +18134,10 @@ function selectionState() {
|
|
|
18134
18134
|
const getValue$1 = function (obj, prop) {
|
|
18135
18135
|
var _obj$prop;
|
|
18136
18136
|
let defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
18137
|
-
return (_obj$prop = obj === null || obj ===
|
|
18137
|
+
return (_obj$prop = obj === null || obj === void 0 ? void 0 : obj[prop]) !== null && _obj$prop !== void 0 ? _obj$prop : defaultValue;
|
|
18138
18138
|
};
|
|
18139
18139
|
function hasSelections(layout) {
|
|
18140
|
-
const counts = (layout === null || layout ===
|
|
18140
|
+
const counts = (layout === null || layout === void 0 ? void 0 : layout.qListObject.qDimensionInfo.qStateCounts) || {};
|
|
18141
18141
|
const totalCounts = getValue$1(counts, 'qSelected', 0) + getValue$1(counts, 'qSelectedExcluded', 0) + getValue$1(counts, 'qLocked', 0) + getValue$1(counts, 'qLockedExcluded', 0);
|
|
18142
18142
|
return totalCounts > 0;
|
|
18143
18143
|
}
|
|
@@ -18148,7 +18148,7 @@ function hasSelections(layout) {
|
|
|
18148
18148
|
* Released under the MIT license.
|
|
18149
18149
|
*/
|
|
18150
18150
|
|
|
18151
|
-
function e(e){return "number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(1===n.length&&e(n[0]))return (n[0].r<<16)+(n[0].g<<8)+n[0].b;var i=0,o=0,a=0;if(1===n.length&&"string"==typeof n[0]){var l,s=n[0];(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))?(i=parseInt(l[1],10),o=parseInt(l[2],10),a=parseInt(l[3],10)):(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(s))?(i=parseInt(l[1],16),o=parseInt(l[2],16),a=parseInt(l[3],16)):(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))&&(i=parseInt(l[1]+l[1],16),o=parseInt(l[2]+l[2],16),a=parseInt(l[3]+l[3],16));}return (i<<16)+(o<<8)+a}function o(e,t,n){return (t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(undefined!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===t?String:Number)(e)}(e,"string");return "symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r);}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),true).forEach((function(t){o(e,t,n[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));}));}return e}var h={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},m="qcm-color";function v(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o,a,s,c,u,f,d,p,v={type:m,r:0,g:0,b:0,a:1,l:undefined,invalid:false,spaces:{}},g=0,y=0,b=0,x=1;if((null===(e=n[0])||undefined===e?undefined:e.type)===m){var q=n[0];g=q.r,y=q.g,b=q.b,x=q.a,v.invalid=n[0].invalid,v.spaces=l({},n[0].spaces);}else if(n.length<3)if("string"==typeof n[0]){var w,k=n[0];if(w=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10);else if(w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10),x=parseFloat(w[4]);else if(w=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))x=parseInt(w[1],10)/255,g=parseInt(w[2],10),y=parseInt(w[3],10),b=parseInt(w[4],10);else if(w=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(k))g=parseInt(w[1],16),y=parseInt(w[2],16),b=parseInt(w[3],16),x=1;else if(w=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(k))g=parseInt(w[1]+w[1],16),y=parseInt(w[2]+w[2],16),b=parseInt(w[3]+w[3],16),x=1;else if(w=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var C=[];switch(f=Math.floor(f)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0];}p=s-.5*u,g=C[0]+p,y=C[1]+p,b=C[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(w=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),x=parseFloat(w[7]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var M=[];switch(f=Math.floor(f)){case 0:M=[u,d,0];break;case 1:M=[d,u,0];break;case 2:M=[0,u,d];break;case 3:M=[0,d,u];break;case 4:M=[d,0,u];break;case 5:M=[u,0,d];break;default:M=[0,0,0];}p=s-.5*u,g=M[0]+p,y=M[1]+p,b=M[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b);}else if(w=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),c=parseFloat(w[5]),f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(c=(c/=100)<0?0:c>1?1:c)*(o=(o/=100)<0?0:o>1?1:o))*(1-Math.abs(f%2-1));var S=[];switch(f=Math.floor(f)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0];}p=c-u,g=S[0]+p,y=S[1]+p,b=S[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(h[k.toLowerCase()]){a=k.toLowerCase();var D=h[a];g=D.r,y=D.g,b=D.b,x="number"==typeof h[a].a?h[a].a:1;}else v.invalid=true;}else "number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(x=(4278190080&n[0])>>>24,x/=255,g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):v.invalid=true;else n.length>=3&&n.length<=4?(g=n[0],y=n[1],b=n[2],x=arguments.length>=4?n[3]:1):v.invalid=true;return Number.isNaN(+g+y+b+x)&&(v.invalid=true),v.r=Math.floor(g),v.g=Math.floor(y),v.b=Math.floor(b),v.a=x,v.l=s,v}function g(n){var r,i,o;if(e(n))return r=n.r.toString(16),i=n.g.toString(16),o=n.b.toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat([r,i,o].join(""));var a="string"==typeof n?t(n):n;return r=((16711680&a)>>16).toString(16),i=((65280&a)>>8).toString(16),o=(255&a).toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat(r).concat(i).concat(o)}function y(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=(s+c)/2;if(s===c)t=0,r=0;else {switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsl(".concat(360*r,", ").concat(100*t,", ").concat(100*u,")")}function b(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=i.a,c=Math.max(o,a,l),u=Math.min(o,a,l),f=(c+u)/2;if(c===u)t=0,r=0;else {switch(n=c-u,t=f>.5?n/(2-c-u):n/(c+u),c){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsla(".concat(360*r,", ").concat(100*t,", ").concat(100*f,", ").concat(s,")")}function x(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=s;if(s===c)t=0,r=0;else {switch(t=0===(n=s-c)?0:n/u,s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return {h:360*r%360,s:100*t,v:100*u}}function q(e){var t=x(e),n=t.h,r=t.s,i=t.v;return "hsv(".concat(n,", ").concat(r,", ").concat(i,")")}function w(n){if(e(n))return "rgb(".concat([n.r,n.g,n.b].join(", "),")");var r="string"==typeof n?t(n):n,i=(65280&r)>>8,o=255&r;return "rgb(".concat((16711680&r)>>16,", ").concat(i,", ").concat(o,")")}function k(t,n){return e(t)?"rgba(".concat([t.r,t.g,t.b,t.a].join(", "),")"):k(v(t))}function C(t){return e(t)?1===t.a?w(t):k(t):C(v(t))}var M=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function S(e){return .2126*M(e.r)+.7152*M(e.g)+.0722*M(e.b)}function D(){var e=v.apply(undefined,arguments);return e.invalid||S(e)<.4}function O(){var e=v.apply(undefined,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},n=function(){return t.spaces.hsla||(t.spaces.hsla=b(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),i=parseFloat(r[1]),o=parseFloat(r[3]),a=parseFloat(r[7]),l=parseFloat(r[5]),s=Math.max(0,Math.min(l+e,100));return "hsla(".concat(i,", ").concat(o,", ").concat(s,", ").concat(a,")")};return {get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={};},isEqualTo:function(e){var n=e.type===t.type?e:v(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return D(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=w(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=k(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=C(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=g(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=y(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=q(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=x(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),i=Math.floor(t.g+(e.g-t.g)*n),o=Math.floor(t.b+(e.b-t.b)*n),a=Math.floor(t.a+(e.getAlpha()-t.a)*n);return "rgba(".concat([r,i,o,a].join(", "),")")},getBrightenedColor:function(){var e=arguments.length>0&&undefined!==arguments[0]?arguments[0]:1;return O(r(18*e))},getDarkenedColor:function(){var e=arguments.length>0&&undefined!==arguments[0]?arguments[0]:1;return O(r(18*-e))}}}function I(e,t){if(e&&t){var n=S(e),r=S(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}function A(e,t){var n=O("#FFFFFF"),r=O(e),i=O(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;var o=I(n,r),a=I(i,r),l=o>a||o>4.5;return !l&&a>3?t:l?"#FFFFFF":"#000000"}var K,$;function ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oe=function(){if($)return K;$=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return "function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return false;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return false;for(r in n);return undefined===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:true,configurable:true,value:t.newValue,writable:true}):e[t.name]=t.newValue;},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return K=function e(){var t,n,r,s,c,u,f=arguments[0],d=1,p=arguments.length,h=false;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=l(f,n),f!==(s=l(t,n))&&(h&&s&&(o(s)||(c=i(s)))?(c?(c=false,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(f,{name:n,newValue:e(h,u,s)})):undefined!==s&&a(f,{name:n,newValue:s}));return f},K}();ie(oe);function de(e,t,n){e.prototype=t.prototype=n,n.constructor=e;}function pe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function he(){}var me=1/.7,ve="\\s*([+-]?\\d+)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",be=/^#([0-9a-f]{3,8})$/,xe=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),qe=new RegExp(`^rgb\\(${ye},${ye},${ye}\\)$`),we=new RegExp(`^rgba\\(${ve},${ve},${ve},${ge}\\)$`),ke=new RegExp(`^rgba\\(${ye},${ye},${ye},${ge}\\)$`),Ce=new RegExp(`^hsl\\(${ge},${ye},${ye}\\)$`),Me=new RegExp(`^hsla\\(${ge},${ye},${ye},${ge}\\)$`),Se={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function De(){return this.rgb().formatHex()}function Oe(){return this.rgb().formatRgb()}function Ie(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=be.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ee(t):3===n?new Ne(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ae(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=xe.exec(e))?new Ne(t[1],t[2],t[3],1):(t=qe.exec(e))?new Ne(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=we.exec(e))?Ae(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?Ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ce.exec(e))?Re(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Re(t[1],t[2]/100,t[3]/100,t[4]):Se.hasOwnProperty(e)?Ee(Se[e]):"transparent"===e?new Ne(NaN,NaN,NaN,0):null}function Ee(e){return new Ne(e>>16&255,e>>8&255,255&e,1)}function Ae(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ne(e,t,n,r)}function Te(e){return e instanceof he||(e=Ie(e)),e?new Ne((e=e.rgb()).r,e.g,e.b,e.opacity):new Ne}function Le(e,t,n,r){return 1===arguments.length?Te(e):new Ne(e,t,n,null==r?1:r)}function Ne(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r;}function Pe(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}`}function je(){const e=Fe(this.opacity);return `${1===e?"rgb(":"rgba("}${He(this.r)}, ${He(this.g)}, ${He(this.b)}${1===e?")":`, ${e})`}`}function Fe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function He(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ze(e){return ((e=He(e))<16?"0":"")+e.toString(16)}function Re(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _e(e,t,n,r)}function Ve(e){if(e instanceof _e)return new _e(e.h,e.s,e.l,e.opacity);if(e instanceof he||(e=Ie(e)),!e)return new _e;if(e instanceof _e)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,s=(o+i)/2;return l?(a=t===o?(n-r)/l+6*(n<r):n===o?(r-t)/l+2:(t-n)/l+4,l/=s<.5?o+i:2-o-i,a*=60):l=s>0&&s<1?0:a,new _e(a,l,s,e.opacity)}function _e(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r;}function Be(e){return (e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function $e(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}de(he,Ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:De,formatHex:De,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ve(this).formatHsl()},formatRgb:Oe,toString:Oe}),de(Ne,Le,pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ne(He(this.r),He(this.g),He(this.b),Fe(this.opacity))},displayable(){return -0.5<=this.r&&this.r<255.5&&-0.5<=this.g&&this.g<255.5&&-0.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pe,formatHex:Pe,formatHex8:function(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}${ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:je,toString:je})),de(_e,(function(e,t,n,r){return 1===arguments.length?Ve(e):new _e(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new _e(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _e(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Ne($e(e>=240?e-240:e+120,i,r),$e(e,i,r),$e(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _e(Be(this.h),Ke(this.s),Ke(this.l),Fe(this.opacity))},displayable(){return (0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Fe(this.opacity);return `${1===e?"hsl(":"hsla("}${Be(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Ye=Math.PI/180,Ue=180/Math.PI,Ge=4/29,We=6/29,Xe=3*We*We;function Ze(e){if(e instanceof Je)return new Je(e.l,e.a,e.b,e.opacity);if(e instanceof ot)return at(e);e instanceof Ne||(e=Te(e));var t,n,r=nt(e.r),i=nt(e.g),o=nt(e.b),a=Qe((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Qe((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Qe((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Je(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Je(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r;}function Qe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Xe+Ge}function et(e){return e>We?e*e*e:Xe*(e-Ge)}function tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nt(e){return (e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function rt(e){if(e instanceof ot)return new ot(e.h,e.c,e.l,e.opacity);if(e instanceof Je||(e=Ze(e)),0===e.a&&0===e.b)return new ot(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ue;return new ot(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function it(e,t,n,r){return 1===arguments.length?rt(e):new ot(e,t,n,null==r?1:r)}function ot(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r;}function at(e){if(isNaN(e.h))return new Je(e.l,0,0,e.opacity);var t=e.h*Ye;return new Je(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}de(Je,(function(e,t,n,r){return 1===arguments.length?Ze(e):new Je(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return new Je(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Je(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ne(tt(3.1338561*(t=.96422*et(t))-1.6168667*(e=1*et(e))-.4906146*(n=.82521*et(n))),tt(-0.9787684*t+1.9161415*e+.033454*n),tt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),de(ot,it,pe(he,{brighter(e){return new ot(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ot(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return at(this).rgb()}}));var lt=e=>()=>e;function st(e){return 1==(e=+e)?ct:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):lt(isNaN(t)?n:t)}}function ct(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):lt(isNaN(e)?t:e)}(function e(t){var n=st(t);function r(e,t){var r=n((e=Le(e)).r,(t=Le(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=ct(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r})(1);var Ut="center",Gt="bottom";[{key:"NoDataExist",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return false;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;return !!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return "NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return false;if(!t.meta.isContinuous)return false;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ut},{key:"DataRangeIncludingZero",alignment:Gt},{key:"LimitedData",alignment:Gt},{key:"NegativeOrZeroValues",alignment:Gt}].reduce((function(e,t){return e[t.key]=t,e}),{});function Vn(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t;}function _n(e,t){e instanceof Map?(e=[undefined,e],undefined===t&&(t=Kn)):undefined===t&&(t=Bn);for(var n,r,i,o,a,l=new Un(e),s=[l];n=s.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new Un(i[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Yn)}function Bn(e){return e.children}function Kn(e){return Array.isArray(e)?e[1]:null}function $n(e){ undefined!==e.data.value&&(e.value=e.data.value),e.data=e.data.data;}function Yn(e){var t=0;do{e.height=t;}while((e=e.parent)&&e.height<++t)}function Un(e){this.data=e,this.depth=this.height=0,this.parent=null;}Un.prototype=_n.prototype={constructor:Un,count:function(){return this.eachAfter(Vn)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],l=[],s=-1;o=a.pop();)if(l.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=l.pop();)e.call(t,o,++s,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n;}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e);}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t);})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n});})),t},copy:function(){return _n(this).eachBefore($n)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);}while(o.length)}};var qr,wr;(qr=function(e){
|
|
18151
|
+
function e(e){return "number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(1===n.length&&e(n[0]))return (n[0].r<<16)+(n[0].g<<8)+n[0].b;var i=0,o=0,a=0;if(1===n.length&&"string"==typeof n[0]){var l,s=n[0];(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))?(i=parseInt(l[1],10),o=parseInt(l[2],10),a=parseInt(l[3],10)):(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(s))?(i=parseInt(l[1],16),o=parseInt(l[2],16),a=parseInt(l[3],16)):(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))&&(i=parseInt(l[1]+l[1],16),o=parseInt(l[2]+l[2],16),a=parseInt(l[3]+l[3],16));}return (i<<16)+(o<<8)+a}function o(e,t,n){return (t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===t?String:Number)(e)}(e,"string");return "symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r);}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),true).forEach((function(t){o(e,t,n[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));}));}return e}var h={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},m="qcm-color";function v(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o,a,s,c,u,f,d,p,v={type:m,r:0,g:0,b:0,a:1,l:void 0,invalid:false,spaces:{}},g=0,y=0,b=0,x=1;if((null===(e=n[0])||void 0===e?void 0:e.type)===m){var q=n[0];g=q.r,y=q.g,b=q.b,x=q.a,v.invalid=n[0].invalid,v.spaces=l({},n[0].spaces);}else if(n.length<3)if("string"==typeof n[0]){var w,k=n[0];if(w=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10);else if(w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10),x=parseFloat(w[4]);else if(w=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))x=parseInt(w[1],10)/255,g=parseInt(w[2],10),y=parseInt(w[3],10),b=parseInt(w[4],10);else if(w=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(k))g=parseInt(w[1],16),y=parseInt(w[2],16),b=parseInt(w[3],16),x=1;else if(w=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(k))g=parseInt(w[1]+w[1],16),y=parseInt(w[2]+w[2],16),b=parseInt(w[3]+w[3],16),x=1;else if(w=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var C=[];switch(f=Math.floor(f)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0];}p=s-.5*u,g=C[0]+p,y=C[1]+p,b=C[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(w=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),x=parseFloat(w[7]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var M=[];switch(f=Math.floor(f)){case 0:M=[u,d,0];break;case 1:M=[d,u,0];break;case 2:M=[0,u,d];break;case 3:M=[0,d,u];break;case 4:M=[d,0,u];break;case 5:M=[u,0,d];break;default:M=[0,0,0];}p=s-.5*u,g=M[0]+p,y=M[1]+p,b=M[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b);}else if(w=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),c=parseFloat(w[5]),f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(c=(c/=100)<0?0:c>1?1:c)*(o=(o/=100)<0?0:o>1?1:o))*(1-Math.abs(f%2-1));var S=[];switch(f=Math.floor(f)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0];}p=c-u,g=S[0]+p,y=S[1]+p,b=S[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(h[k.toLowerCase()]){a=k.toLowerCase();var D=h[a];g=D.r,y=D.g,b=D.b,x="number"==typeof h[a].a?h[a].a:1;}else v.invalid=true;}else "number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(x=(4278190080&n[0])>>>24,x/=255,g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):v.invalid=true;else n.length>=3&&n.length<=4?(g=n[0],y=n[1],b=n[2],x=arguments.length>=4?n[3]:1):v.invalid=true;return Number.isNaN(+g+y+b+x)&&(v.invalid=true),v.r=Math.floor(g),v.g=Math.floor(y),v.b=Math.floor(b),v.a=x,v.l=s,v}function g(n){var r,i,o;if(e(n))return r=n.r.toString(16),i=n.g.toString(16),o=n.b.toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat([r,i,o].join(""));var a="string"==typeof n?t(n):n;return r=((16711680&a)>>16).toString(16),i=((65280&a)>>8).toString(16),o=(255&a).toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat(r).concat(i).concat(o)}function y(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=(s+c)/2;if(s===c)t=0,r=0;else {switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsl(".concat(360*r,", ").concat(100*t,", ").concat(100*u,")")}function b(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=i.a,c=Math.max(o,a,l),u=Math.min(o,a,l),f=(c+u)/2;if(c===u)t=0,r=0;else {switch(n=c-u,t=f>.5?n/(2-c-u):n/(c+u),c){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsla(".concat(360*r,", ").concat(100*t,", ").concat(100*f,", ").concat(s,")")}function x(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=s;if(s===c)t=0,r=0;else {switch(t=0===(n=s-c)?0:n/u,s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return {h:360*r%360,s:100*t,v:100*u}}function q(e){var t=x(e),n=t.h,r=t.s,i=t.v;return "hsv(".concat(n,", ").concat(r,", ").concat(i,")")}function w(n){if(e(n))return "rgb(".concat([n.r,n.g,n.b].join(", "),")");var r="string"==typeof n?t(n):n,i=(65280&r)>>8,o=255&r;return "rgb(".concat((16711680&r)>>16,", ").concat(i,", ").concat(o,")")}function k(t,n){return e(t)?"rgba(".concat([t.r,t.g,t.b,t.a].join(", "),")"):k(v(t))}function C(t){return e(t)?1===t.a?w(t):k(t):C(v(t))}var M=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function S(e){return .2126*M(e.r)+.7152*M(e.g)+.0722*M(e.b)}function D(){var e=v.apply(void 0,arguments);return e.invalid||S(e)<.4}function O(){var e=v.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},n=function(){return t.spaces.hsla||(t.spaces.hsla=b(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),i=parseFloat(r[1]),o=parseFloat(r[3]),a=parseFloat(r[7]),l=parseFloat(r[5]),s=Math.max(0,Math.min(l+e,100));return "hsla(".concat(i,", ").concat(o,", ").concat(s,", ").concat(a,")")};return {get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={};},isEqualTo:function(e){var n=e.type===t.type?e:v(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return D(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=w(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=k(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=C(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=g(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=y(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=q(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=x(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),i=Math.floor(t.g+(e.g-t.g)*n),o=Math.floor(t.b+(e.b-t.b)*n),a=Math.floor(t.a+(e.getAlpha()-t.a)*n);return "rgba(".concat([r,i,o,a].join(", "),")")},getBrightenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return O(r(18*e))},getDarkenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return O(r(18*-e))}}}function I(e,t){if(e&&t){var n=S(e),r=S(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}function A(e,t){var n=O("#FFFFFF"),r=O(e),i=O(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;var o=I(n,r),a=I(i,r),l=o>a||o>4.5;return !l&&a>3?t:l?"#FFFFFF":"#000000"}var K,$;function ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oe=function(){if($)return K;$=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return "function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return false;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return false;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:true,configurable:true,value:t.newValue,writable:true}):e[t.name]=t.newValue;},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return K=function e(){var t,n,r,s,c,u,f=arguments[0],d=1,p=arguments.length,h=false;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=l(f,n),f!==(s=l(t,n))&&(h&&s&&(o(s)||(c=i(s)))?(c?(c=false,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(f,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(f,{name:n,newValue:s}));return f},K}();ie(oe);function de(e,t,n){e.prototype=t.prototype=n,n.constructor=e;}function pe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function he(){}var me=1/.7,ve="\\s*([+-]?\\d+)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",be=/^#([0-9a-f]{3,8})$/,xe=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),qe=new RegExp(`^rgb\\(${ye},${ye},${ye}\\)$`),we=new RegExp(`^rgba\\(${ve},${ve},${ve},${ge}\\)$`),ke=new RegExp(`^rgba\\(${ye},${ye},${ye},${ge}\\)$`),Ce=new RegExp(`^hsl\\(${ge},${ye},${ye}\\)$`),Me=new RegExp(`^hsla\\(${ge},${ye},${ye},${ge}\\)$`),Se={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function De(){return this.rgb().formatHex()}function Oe(){return this.rgb().formatRgb()}function Ie(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=be.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ee(t):3===n?new Ne(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ae(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=xe.exec(e))?new Ne(t[1],t[2],t[3],1):(t=qe.exec(e))?new Ne(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=we.exec(e))?Ae(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?Ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ce.exec(e))?Re(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Re(t[1],t[2]/100,t[3]/100,t[4]):Se.hasOwnProperty(e)?Ee(Se[e]):"transparent"===e?new Ne(NaN,NaN,NaN,0):null}function Ee(e){return new Ne(e>>16&255,e>>8&255,255&e,1)}function Ae(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ne(e,t,n,r)}function Te(e){return e instanceof he||(e=Ie(e)),e?new Ne((e=e.rgb()).r,e.g,e.b,e.opacity):new Ne}function Le(e,t,n,r){return 1===arguments.length?Te(e):new Ne(e,t,n,null==r?1:r)}function Ne(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r;}function Pe(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}`}function je(){const e=Fe(this.opacity);return `${1===e?"rgb(":"rgba("}${He(this.r)}, ${He(this.g)}, ${He(this.b)}${1===e?")":`, ${e})`}`}function Fe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function He(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ze(e){return ((e=He(e))<16?"0":"")+e.toString(16)}function Re(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _e(e,t,n,r)}function Ve(e){if(e instanceof _e)return new _e(e.h,e.s,e.l,e.opacity);if(e instanceof he||(e=Ie(e)),!e)return new _e;if(e instanceof _e)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,s=(o+i)/2;return l?(a=t===o?(n-r)/l+6*(n<r):n===o?(r-t)/l+2:(t-n)/l+4,l/=s<.5?o+i:2-o-i,a*=60):l=s>0&&s<1?0:a,new _e(a,l,s,e.opacity)}function _e(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r;}function Be(e){return (e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function $e(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}de(he,Ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:De,formatHex:De,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ve(this).formatHsl()},formatRgb:Oe,toString:Oe}),de(Ne,Le,pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ne(He(this.r),He(this.g),He(this.b),Fe(this.opacity))},displayable(){return -0.5<=this.r&&this.r<255.5&&-0.5<=this.g&&this.g<255.5&&-0.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pe,formatHex:Pe,formatHex8:function(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}${ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:je,toString:je})),de(_e,(function(e,t,n,r){return 1===arguments.length?Ve(e):new _e(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new _e(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _e(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Ne($e(e>=240?e-240:e+120,i,r),$e(e,i,r),$e(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _e(Be(this.h),Ke(this.s),Ke(this.l),Fe(this.opacity))},displayable(){return (0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Fe(this.opacity);return `${1===e?"hsl(":"hsla("}${Be(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Ye=Math.PI/180,Ue=180/Math.PI,Ge=4/29,We=6/29,Xe=3*We*We;function Ze(e){if(e instanceof Je)return new Je(e.l,e.a,e.b,e.opacity);if(e instanceof ot)return at(e);e instanceof Ne||(e=Te(e));var t,n,r=nt(e.r),i=nt(e.g),o=nt(e.b),a=Qe((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Qe((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Qe((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Je(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Je(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r;}function Qe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Xe+Ge}function et(e){return e>We?e*e*e:Xe*(e-Ge)}function tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nt(e){return (e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function rt(e){if(e instanceof ot)return new ot(e.h,e.c,e.l,e.opacity);if(e instanceof Je||(e=Ze(e)),0===e.a&&0===e.b)return new ot(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ue;return new ot(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function it(e,t,n,r){return 1===arguments.length?rt(e):new ot(e,t,n,null==r?1:r)}function ot(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r;}function at(e){if(isNaN(e.h))return new Je(e.l,0,0,e.opacity);var t=e.h*Ye;return new Je(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}de(Je,(function(e,t,n,r){return 1===arguments.length?Ze(e):new Je(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return new Je(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Je(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ne(tt(3.1338561*(t=.96422*et(t))-1.6168667*(e=1*et(e))-.4906146*(n=.82521*et(n))),tt(-0.9787684*t+1.9161415*e+.033454*n),tt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),de(ot,it,pe(he,{brighter(e){return new ot(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ot(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return at(this).rgb()}}));var lt=e=>()=>e;function st(e){return 1==(e=+e)?ct:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):lt(isNaN(t)?n:t)}}function ct(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):lt(isNaN(e)?t:e)}(function e(t){var n=st(t);function r(e,t){var r=n((e=Le(e)).r,(t=Le(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=ct(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r})(1);var Ut="center",Gt="bottom";[{key:"NoDataExist",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return false;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;return !!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return "NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return false;if(!t.meta.isContinuous)return false;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ut},{key:"DataRangeIncludingZero",alignment:Gt},{key:"LimitedData",alignment:Gt},{key:"NegativeOrZeroValues",alignment:Gt}].reduce((function(e,t){return e[t.key]=t,e}),{});function Vn(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t;}function _n(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Kn)):void 0===t&&(t=Bn);for(var n,r,i,o,a,l=new Un(e),s=[l];n=s.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new Un(i[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Yn)}function Bn(e){return e.children}function Kn(e){return Array.isArray(e)?e[1]:null}function $n(e){ void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data;}function Yn(e){var t=0;do{e.height=t;}while((e=e.parent)&&e.height<++t)}function Un(e){this.data=e,this.depth=this.height=0,this.parent=null;}Un.prototype=_n.prototype={constructor:Un,count:function(){return this.eachAfter(Vn)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],l=[],s=-1;o=a.pop();)if(l.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=l.pop();)e.call(t,o,++s,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n;}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e);}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t);})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n});})),t},copy:function(){return _n(this).eachBefore($n)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);}while(o.length)}};var qr,wr;(qr=function(e){
|
|
18152
18152
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
18153
18153
|
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,l,s,c,u,f,d=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),v=m.search(/[0-9\-\+#]/),g=d-v,y=e.substring(g,g+1),b=g+("."===y||","===y?1:0),x=v>0?e.substring(b,d):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],s=u[1]&&u[u.length-1].length){for(m="",g=(f=t[0]).length%s,d=f.length,b=0;b<d;b++)m+=f.charAt(b),!((b-g+1)%s)&&b<d-s&&(m+=o);t[0]=m;}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=false),h+(n?"-":"")+r+x};},qr(wr={exports:{}},wr.exports),wr.exports);
|
|
18154
18154
|
|
|
@@ -18260,7 +18260,7 @@ function getSenseServerUrl(app) {
|
|
|
18260
18260
|
let wsUrl;
|
|
18261
18261
|
let protocol;
|
|
18262
18262
|
let isSecure;
|
|
18263
|
-
if (app !== null && app !==
|
|
18263
|
+
if (app !== null && app !== void 0 && (_app$session = app.session) !== null && _app$session !== void 0 && _app$session.config) {
|
|
18264
18264
|
config = app.session.config;
|
|
18265
18265
|
wsUrl = new URL(config.url);
|
|
18266
18266
|
isSecure = wsUrl.protocol === 'wss:';
|
|
@@ -18272,7 +18272,7 @@ function getSenseServerUrl(app) {
|
|
|
18272
18272
|
function getBackgroundPosition(bgComp) {
|
|
18273
18273
|
var _bgComp$bgImage;
|
|
18274
18274
|
let bkgImagePosition = 'center center';
|
|
18275
|
-
if (bgComp !== null && bgComp !==
|
|
18275
|
+
if (bgComp !== null && bgComp !== void 0 && (_bgComp$bgImage = bgComp.bgImage) !== null && _bgComp$bgImage !== void 0 && _bgComp$bgImage.position) {
|
|
18276
18276
|
bkgImagePosition = positionToCss[bgComp.bgImage.position];
|
|
18277
18277
|
}
|
|
18278
18278
|
return bkgImagePosition;
|
|
@@ -18280,7 +18280,7 @@ function getBackgroundPosition(bgComp) {
|
|
|
18280
18280
|
function getBackgroundSize(bgComp) {
|
|
18281
18281
|
var _bgComp$bgImage2;
|
|
18282
18282
|
let bkgImageSize = imageSizingToCssProperty.originalSize;
|
|
18283
|
-
const size = bgComp === null || bgComp ===
|
|
18283
|
+
const size = bgComp === null || bgComp === void 0 || (_bgComp$bgImage2 = bgComp.bgImage) === null || _bgComp$bgImage2 === void 0 ? void 0 : _bgComp$bgImage2.sizing;
|
|
18284
18284
|
if (size) {
|
|
18285
18285
|
bkgImageSize = imageSizingToCssProperty[size];
|
|
18286
18286
|
}
|
|
@@ -18290,14 +18290,14 @@ function resolveImageUrl(app, relativeUrl) {
|
|
|
18290
18290
|
return relativeUrl ? getSenseServerUrl(app) + relativeUrl : undefined;
|
|
18291
18291
|
}
|
|
18292
18292
|
function resolveBgImage(bgComp, app) {
|
|
18293
|
-
const bgImageDef = bgComp === null || bgComp ===
|
|
18293
|
+
const bgImageDef = bgComp === null || bgComp === void 0 ? void 0 : bgComp.bgImage;
|
|
18294
18294
|
if (bgImageDef) {
|
|
18295
18295
|
let url = '';
|
|
18296
18296
|
if (bgImageDef.mode === 'media' || bgComp.useImage === 'media') {
|
|
18297
|
-
const urlObj = bgImageDef === null || bgImageDef ===
|
|
18297
|
+
const urlObj = bgImageDef === null || bgImageDef === void 0 ? void 0 : bgImageDef.mediaUrl;
|
|
18298
18298
|
const {
|
|
18299
18299
|
qUrl
|
|
18300
|
-
} = (urlObj === null || urlObj ===
|
|
18300
|
+
} = (urlObj === null || urlObj === void 0 ? void 0 : urlObj.qStaticContentUrl) || {};
|
|
18301
18301
|
url = qUrl ? decodeURIComponent(qUrl) : undefined;
|
|
18302
18302
|
url = resolveImageUrl(app, url);
|
|
18303
18303
|
}
|
|
@@ -18315,27 +18315,27 @@ function resolveBgImage(bgComp, app) {
|
|
|
18315
18315
|
return undefined;
|
|
18316
18316
|
}
|
|
18317
18317
|
function resolveBgColor(comp, theme, objectType) {
|
|
18318
|
-
const bgColor = comp === null || comp ===
|
|
18318
|
+
const bgColor = comp === null || comp === void 0 ? void 0 : comp.bgColor;
|
|
18319
18319
|
if (bgColor && theme) {
|
|
18320
18320
|
if (bgColor.useExpression || bgColor.useColorExpression) {
|
|
18321
18321
|
return theme.validateColor(bgColor.colorExpression);
|
|
18322
18322
|
}
|
|
18323
18323
|
}
|
|
18324
|
-
return resolveColor(bgColor === null || bgColor ===
|
|
18324
|
+
return resolveColor(bgColor === null || bgColor === void 0 ? void 0 : bgColor.color, '', 'backgroundColor', theme, objectType);
|
|
18325
18325
|
}
|
|
18326
18326
|
function resolveBorder(comp, theme, objectType) {
|
|
18327
|
-
const borderColor = resolveColor(comp === null || comp ===
|
|
18328
|
-
const borderWidth = (comp === null || comp ===
|
|
18327
|
+
const borderColor = resolveColor(comp === null || comp === void 0 ? void 0 : comp.borderColor, '', 'borderColor', theme, objectType);
|
|
18328
|
+
const borderWidth = (comp === null || comp === void 0 ? void 0 : comp.borderWidth) || resolveProperty('', 'borderWidth', theme, objectType);
|
|
18329
18329
|
return borderWidth && borderColor ? "".concat(borderWidth, " solid ").concat(borderColor) : undefined;
|
|
18330
18330
|
}
|
|
18331
18331
|
function resolveBorderRadius(comp, theme, objectType) {
|
|
18332
|
-
return (comp === null || comp ===
|
|
18332
|
+
return (comp === null || comp === void 0 ? void 0 : comp.borderRadius) || resolveProperty('', 'borderRadius', theme, objectType);
|
|
18333
18333
|
}
|
|
18334
18334
|
function resolveBoxShadow(comp, theme, objectType) {
|
|
18335
18335
|
var _comp$shadow, _comp$shadow2;
|
|
18336
18336
|
const themeBoxShadow = resolveProperty('shadow', 'boxShadow', theme, objectType);
|
|
18337
|
-
const boxShadow = (comp === null || comp ===
|
|
18338
|
-
const boxShadowColor = resolveColor(comp === null || comp ===
|
|
18337
|
+
const boxShadow = (comp === null || comp === void 0 || (_comp$shadow = comp.shadow) === null || _comp$shadow === void 0 ? void 0 : _comp$shadow.boxShadow) || themeBoxShadow;
|
|
18338
|
+
const boxShadowColor = resolveColor(comp === null || comp === void 0 || (_comp$shadow2 = comp.shadow) === null || _comp$shadow2 === void 0 ? void 0 : _comp$shadow2.boxShadowColor, 'shadow', 'boxShadowColor', theme, objectType);
|
|
18339
18339
|
return getFullBoxShadow(boxShadow, themeBoxShadow, boxShadowColor);
|
|
18340
18340
|
}
|
|
18341
18341
|
function unfurlFontStyle(fontStyle, target) {
|
|
@@ -18346,7 +18346,7 @@ function unfurlFontStyle(fontStyle, target) {
|
|
|
18346
18346
|
}
|
|
18347
18347
|
function resolveTextStyle(textComp, target, theme, objectType) {
|
|
18348
18348
|
var _textComp$title;
|
|
18349
|
-
const textProps = (textComp === null || textComp ===
|
|
18349
|
+
const textProps = (textComp === null || textComp === void 0 || (_textComp$title = textComp.title) === null || _textComp$title === void 0 ? void 0 : _textComp$title[target]) || {};
|
|
18350
18350
|
const fontStyle = unfurlFontStyle(textProps.fontStyle, target);
|
|
18351
18351
|
return {
|
|
18352
18352
|
fontFamily: textProps.fontFamily || theme.getStyle("object.".concat(objectType), "title.".concat(target), 'fontFamily'),
|
|
@@ -18371,7 +18371,7 @@ function getOverridesAsObject() {
|
|
|
18371
18371
|
// Currently supporting components "theme" and "selections".
|
|
18372
18372
|
const overrides = {};
|
|
18373
18373
|
components.forEach(c => {
|
|
18374
|
-
const k = c === null || c ===
|
|
18374
|
+
const k = c === null || c === void 0 ? void 0 : c.key;
|
|
18375
18375
|
if (SUPPORTED_COMPONENTS.includes(k)) {
|
|
18376
18376
|
overrides[k] = c;
|
|
18377
18377
|
}
|
|
@@ -18387,19 +18387,19 @@ function getSelectionColors(_ref) {
|
|
|
18387
18387
|
overrides,
|
|
18388
18388
|
checkboxes
|
|
18389
18389
|
} = _ref;
|
|
18390
|
-
const componentContentTextColor = (_overrides$theme = overrides.theme) === null || _overrides$theme ===
|
|
18390
|
+
const componentContentTextColor = (_overrides$theme = overrides.theme) === null || _overrides$theme === void 0 || (_overrides$theme = _overrides$theme.content) === null || _overrides$theme === void 0 ? void 0 : _overrides$theme.fontColor;
|
|
18391
18391
|
|
|
18392
18392
|
// color priority: layout.component > theme content color > MUI theme
|
|
18393
|
-
const desiredTextColor = getColorPickerColor(componentContentTextColor) || getListboxStyle('content', 'color') || ((_theme$palette = theme.palette) === null || _theme$palette ===
|
|
18394
|
-
const useContrastTextColor = !checkboxes && ((_overrides$theme$cont = (_overrides$theme2 = overrides.theme) === null || _overrides$theme2 ===
|
|
18395
|
-
const componentSelectionColors = ((_overrides$selections = overrides.selections) === null || _overrides$selections ===
|
|
18393
|
+
const desiredTextColor = getColorPickerColor(componentContentTextColor) || getListboxStyle('content', 'color') || ((_theme$palette = theme.palette) === null || _theme$palette === void 0 ? void 0 : _theme$palette.text.primary);
|
|
18394
|
+
const useContrastTextColor = !checkboxes && ((_overrides$theme$cont = (_overrides$theme2 = overrides.theme) === null || _overrides$theme2 === void 0 || (_overrides$theme2 = _overrides$theme2.content) === null || _overrides$theme2 === void 0 ? void 0 : _overrides$theme2.useContrastColor) !== null && _overrides$theme$cont !== void 0 ? _overrides$theme$cont : true);
|
|
18395
|
+
const componentSelectionColors = ((_overrides$selections = overrides.selections) === null || _overrides$selections === void 0 ? void 0 : _overrides$selections.colors) || {};
|
|
18396
18396
|
const getSelectionStateColors = state => {
|
|
18397
18397
|
var _theme$palette2, _theme$palette3;
|
|
18398
18398
|
const paletteState = state === 'selected' ? 'main' : state;
|
|
18399
18399
|
const contrastState = "".concat(state, "Contrast");
|
|
18400
18400
|
// color priority: layout.component > theme dataColors > theme background (only for 'possible') > MUI theme > hardcoded default
|
|
18401
|
-
const color = getColorPickerColor(componentSelectionColors[state]) || getListboxStyle('', "dataColors.".concat(state)) || state === 'possible' && getListboxStyle('', 'backgroundColor') || ((_theme$palette2 = theme.palette) === null || _theme$palette2 ===
|
|
18402
|
-
const contrastColor = useContrastTextColor ? A(color, desiredTextColor) : desiredTextColor || ((_theme$palette3 = theme.palette) === null || _theme$palette3 ===
|
|
18401
|
+
const color = getColorPickerColor(componentSelectionColors[state]) || getListboxStyle('', "dataColors.".concat(state)) || state === 'possible' && getListboxStyle('', 'backgroundColor') || ((_theme$palette2 = theme.palette) === null || _theme$palette2 === void 0 || (_theme$palette2 = _theme$palette2.selected) === null || _theme$palette2 === void 0 ? void 0 : _theme$palette2[paletteState]) || DEFAULT_SELECTION_COLORS[state];
|
|
18402
|
+
const contrastColor = useContrastTextColor ? A(color, desiredTextColor) : desiredTextColor || ((_theme$palette3 = theme.palette) === null || _theme$palette3 === void 0 ? void 0 : _theme$palette3.selected["".concat(contrastState, "Text}")]);
|
|
18403
18403
|
return {
|
|
18404
18404
|
[state]: color,
|
|
18405
18405
|
[contrastState]: contrastColor
|
|
@@ -18413,16 +18413,16 @@ function getBackgroundColor(_ref2) {
|
|
|
18413
18413
|
themeOverrides
|
|
18414
18414
|
} = _ref2;
|
|
18415
18415
|
let color;
|
|
18416
|
-
const bgColor = themeOverrides === null || themeOverrides ===
|
|
18416
|
+
const bgColor = themeOverrides === null || themeOverrides === void 0 ? void 0 : themeOverrides.background;
|
|
18417
18417
|
if (!bgColor) {
|
|
18418
18418
|
return color;
|
|
18419
18419
|
}
|
|
18420
|
-
if (bgColor !== null && bgColor !==
|
|
18420
|
+
if (bgColor !== null && bgColor !== void 0 && bgColor.useExpression) {
|
|
18421
18421
|
color = resolveBgColor({
|
|
18422
18422
|
bgColor
|
|
18423
18423
|
}, themeApi, 'listBox');
|
|
18424
18424
|
} else {
|
|
18425
|
-
color = themeApi.getColorPickerColor(bgColor === null || bgColor ===
|
|
18425
|
+
color = themeApi.getColorPickerColor(bgColor === null || bgColor === void 0 ? void 0 : bgColor.color, false);
|
|
18426
18426
|
}
|
|
18427
18427
|
return color;
|
|
18428
18428
|
}
|
|
@@ -18447,7 +18447,7 @@ function getStyles(_ref3) {
|
|
|
18447
18447
|
} = _ref3;
|
|
18448
18448
|
const overrides = getOverridesAsObject(components);
|
|
18449
18449
|
const getListboxStyle = (path, prop) => themeApi.getStyle('object.listBox', path, prop);
|
|
18450
|
-
const getColorPickerColor = c => (c === null || c ===
|
|
18450
|
+
const getColorPickerColor = c => (c === null || c === void 0 ? void 0 : c.index) > 0 || c !== null && c !== void 0 && c.color ? themeApi.getColorPickerColor(c, false) : undefined;
|
|
18451
18451
|
const selections = getSelectionColors({
|
|
18452
18452
|
getColorPickerColor,
|
|
18453
18453
|
theme,
|
|
@@ -18456,34 +18456,34 @@ function getStyles(_ref3) {
|
|
|
18456
18456
|
checkboxes
|
|
18457
18457
|
});
|
|
18458
18458
|
const themeOverrides = overrides.theme || {};
|
|
18459
|
-
const headerColor = getColorPickerColor((_themeOverrides$heade = themeOverrides.header) === null || _themeOverrides$heade ===
|
|
18459
|
+
const headerColor = getColorPickerColor((_themeOverrides$heade = themeOverrides.header) === null || _themeOverrides$heade === void 0 ? void 0 : _themeOverrides$heade.fontColor) || getListboxStyle('title.main', 'color');
|
|
18460
18460
|
const bgComponentColor = getBackgroundColor({
|
|
18461
18461
|
themeApi,
|
|
18462
18462
|
themeOverrides
|
|
18463
18463
|
});
|
|
18464
|
-
const bgImage = (_themeOverrides$backg = themeOverrides.background) !== null && _themeOverrides$backg !==
|
|
18464
|
+
const bgImage = (_themeOverrides$backg = themeOverrides.background) !== null && _themeOverrides$backg !== void 0 && _themeOverrides$backg.image ? resolveBgImage({
|
|
18465
18465
|
bgImage: themeOverrides.background.image
|
|
18466
18466
|
}, app) : undefined;
|
|
18467
18467
|
const bgColor = bgComponentColor || getListboxStyle('', 'backgroundColor') || theme.palette.background.default;
|
|
18468
18468
|
const searchBgColor = getSearchBGColor(bgColor, getListboxStyle);
|
|
18469
18469
|
const searchColor = getSearchColor(getListboxStyle);
|
|
18470
|
-
const headerFontStyle = ((_themeOverrides$heade2 = themeOverrides.header) === null || _themeOverrides$heade2 ===
|
|
18471
|
-
const contentFontStyle = ((_themeOverrides$conte = themeOverrides.content) === null || _themeOverrides$conte ===
|
|
18470
|
+
const headerFontStyle = ((_themeOverrides$heade2 = themeOverrides.header) === null || _themeOverrides$heade2 === void 0 ? void 0 : _themeOverrides$heade2.fontStyle) || {};
|
|
18471
|
+
const contentFontStyle = ((_themeOverrides$conte = themeOverrides.content) === null || _themeOverrides$conte === void 0 ? void 0 : _themeOverrides$conte.fontStyle) || {};
|
|
18472
18472
|
|
|
18473
18473
|
// Ensure we only return falseValue when the component is used, and thus has a false value.
|
|
18474
18474
|
const getWithFallback = (value, trueValue, falseValue) => value === true && trueValue || value === false && falseValue || undefined;
|
|
18475
18475
|
return {
|
|
18476
18476
|
background: {
|
|
18477
18477
|
backgroundColor: bgColor,
|
|
18478
|
-
backgroundImage: bgImage !== null && bgImage !==
|
|
18478
|
+
backgroundImage: bgImage !== null && bgImage !== void 0 && bgImage.url && !(bgImage !== null && bgImage !== void 0 && bgImage.url.startsWith('url(')) ? "url('".concat(bgImage.url, "')") : undefined,
|
|
18479
18479
|
backgroundRepeat: 'no-repeat',
|
|
18480
|
-
backgroundSize: bgImage === null || bgImage ===
|
|
18481
|
-
backgroundPosition: bgImage === null || bgImage ===
|
|
18480
|
+
backgroundSize: bgImage === null || bgImage === void 0 ? void 0 : bgImage.size,
|
|
18481
|
+
backgroundPosition: bgImage === null || bgImage === void 0 ? void 0 : bgImage.pos
|
|
18482
18482
|
},
|
|
18483
18483
|
header: {
|
|
18484
18484
|
color: headerColor,
|
|
18485
|
-
fontSize: ((_themeOverrides$heade3 = themeOverrides.header) === null || _themeOverrides$heade3 ===
|
|
18486
|
-
fontFamily: ((_themeOverrides$heade4 = themeOverrides.header) === null || _themeOverrides$heade4 ===
|
|
18485
|
+
fontSize: ((_themeOverrides$heade3 = themeOverrides.header) === null || _themeOverrides$heade3 === void 0 ? void 0 : _themeOverrides$heade3.fontSize) || getListboxStyle('title.main', 'fontSize'),
|
|
18486
|
+
fontFamily: ((_themeOverrides$heade4 = themeOverrides.header) === null || _themeOverrides$heade4 === void 0 ? void 0 : _themeOverrides$heade4.fontFamily) || getListboxStyle('title.main', 'fontFamily'),
|
|
18487
18487
|
fontWeight: getWithFallback(headerFontStyle.bold, 'bold', 'normal') || getListboxStyle('title.main', 'fontWeight') || 'bold',
|
|
18488
18488
|
textDecoration: headerFontStyle.underline ? 'underline' : 'initial',
|
|
18489
18489
|
fontStyle: getWithFallback(headerFontStyle.italic, 'italic', 'normal') || getListboxStyle('title.main', 'fontStyle') || 'initial'
|
|
@@ -18491,8 +18491,8 @@ function getStyles(_ref3) {
|
|
|
18491
18491
|
content: {
|
|
18492
18492
|
backgroundColor: checkboxes ? undefined : selections.possible,
|
|
18493
18493
|
color: selections.possibleContrast || getListboxStyle('content', 'color'),
|
|
18494
|
-
fontSize: ((_themeOverrides$conte2 = themeOverrides.content) === null || _themeOverrides$conte2 ===
|
|
18495
|
-
fontFamily: ((_themeOverrides$conte3 = themeOverrides.content) === null || _themeOverrides$conte3 ===
|
|
18494
|
+
fontSize: ((_themeOverrides$conte2 = themeOverrides.content) === null || _themeOverrides$conte2 === void 0 ? void 0 : _themeOverrides$conte2.fontSize) || getListboxStyle('content', 'fontSize'),
|
|
18495
|
+
fontFamily: ((_themeOverrides$conte3 = themeOverrides.content) === null || _themeOverrides$conte3 === void 0 ? void 0 : _themeOverrides$conte3.fontFamily) || getListboxStyle('content', 'fontFamily'),
|
|
18496
18496
|
fontWeight: getWithFallback(contentFontStyle.bold, 'bold', 'normal') || getListboxStyle('content', 'fontWeight') || 'normal',
|
|
18497
18497
|
textDecoration: contentFontStyle.underline ? 'underline' : 'initial',
|
|
18498
18498
|
fontStyle: getWithFallback(contentFontStyle.italic, 'italic', 'normal') || getListboxStyle('content', 'fontStyle') || 'initial'
|
|
@@ -18536,7 +18536,7 @@ function ListBoxPopover(_ref) {
|
|
|
18536
18536
|
}],
|
|
18537
18537
|
direction = 'ltr'
|
|
18538
18538
|
} = _ref;
|
|
18539
|
-
const isMasterDim = Boolean(fieldName === null || fieldName ===
|
|
18539
|
+
const isMasterDim = Boolean(fieldName === null || fieldName === void 0 ? void 0 : fieldName.qLibraryId);
|
|
18540
18540
|
const open = show && Boolean(alignTo.current);
|
|
18541
18541
|
const [listCount, setListCount] = useState$1(0);
|
|
18542
18542
|
const theme = useTheme$1();
|
|
@@ -18707,7 +18707,7 @@ function ListBoxPopover(_ref) {
|
|
|
18707
18707
|
innerTabStops: true,
|
|
18708
18708
|
focusSelection: keyboard.focusSelection
|
|
18709
18709
|
},
|
|
18710
|
-
autoFocus: autoFocus !== null && autoFocus !==
|
|
18710
|
+
autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : true,
|
|
18711
18711
|
direction: direction
|
|
18712
18712
|
})), /*#__PURE__*/React__default.createElement(ListBox, {
|
|
18713
18713
|
model: model,
|
|
@@ -19218,7 +19218,7 @@ function getItems(layout) {
|
|
|
19218
19218
|
var _selection$qDimension;
|
|
19219
19219
|
currentField = {
|
|
19220
19220
|
name,
|
|
19221
|
-
label: ((_selection$qDimension = selection.qDimensionReferences) === null || _selection$qDimension ===
|
|
19221
|
+
label: ((_selection$qDimension = selection.qDimensionReferences) === null || _selection$qDimension === void 0 || (_selection$qDimension = _selection$qDimension.find(element => element.qLabel)) === null || _selection$qDimension === void 0 ? void 0 : _selection$qDimension.qLabel) || selection.qReadableName || name,
|
|
19222
19222
|
states: [],
|
|
19223
19223
|
selections: []
|
|
19224
19224
|
};
|
|
@@ -19257,7 +19257,7 @@ function SelectedFields(_ref) {
|
|
|
19257
19257
|
const {
|
|
19258
19258
|
model
|
|
19259
19259
|
} = modalObjectStore.get(app.id) || {};
|
|
19260
|
-
return (model === null || model ===
|
|
19260
|
+
return (model === null || model === void 0 ? void 0 : model.genericType) === 'njsListbox';
|
|
19261
19261
|
};
|
|
19262
19262
|
useEffect$1(() => {
|
|
19263
19263
|
if (!containerRect) return;
|
|
@@ -19942,7 +19942,7 @@ function getListboxContainerKeyboardNavigation(_ref) {
|
|
|
19942
19942
|
}
|
|
19943
19943
|
};
|
|
19944
19944
|
const focusOnHoverDisabled = () => {
|
|
19945
|
-
const selectNotAllowed = (constraints === null || constraints ===
|
|
19945
|
+
const selectNotAllowed = (constraints === null || constraints === void 0 ? void 0 : constraints.select) || (constraints === null || constraints === void 0 ? void 0 : constraints.active);
|
|
19946
19946
|
const appInModal = isModal();
|
|
19947
19947
|
return selectNotAllowed || appInModal;
|
|
19948
19948
|
};
|
|
@@ -20028,7 +20028,7 @@ function isDirectQueryEnabled(_ref) {
|
|
|
20028
20028
|
let {
|
|
20029
20029
|
appLayout
|
|
20030
20030
|
} = _ref;
|
|
20031
|
-
const isDQ = !!(appLayout !== null && appLayout !==
|
|
20031
|
+
const isDQ = !!(appLayout !== null && appLayout !== void 0 && appLayout.qIsDirectQueryMode);
|
|
20032
20032
|
return isDQ;
|
|
20033
20033
|
}
|
|
20034
20034
|
|
|
@@ -20070,10 +20070,10 @@ function showToolbarDetached(_ref) {
|
|
|
20070
20070
|
const containerWidth = containerRect.width;
|
|
20071
20071
|
const preventTruncation = 2;
|
|
20072
20072
|
const padding = paddingLeft + paddingRight;
|
|
20073
|
-
const contentWidth = ((_titleRef$current$cli = titleRef === null || titleRef ===
|
|
20073
|
+
const contentWidth = ((_titleRef$current$cli = titleRef === null || titleRef === void 0 || (_titleRef$current = titleRef.current) === null || _titleRef$current === void 0 ? void 0 : _titleRef$current.clientWidth) !== null && _titleRef$current$cli !== void 0 ? _titleRef$current$cli : 0) + iconsWidth + padding + preventTruncation;
|
|
20074
20074
|
const actionToolbarWidth = 128;
|
|
20075
20075
|
const notSufficientSpace = containerWidth < contentWidth + actionToolbarWidth;
|
|
20076
|
-
const isTruncated = (titleRef === null || titleRef ===
|
|
20076
|
+
const isTruncated = (titleRef === null || titleRef === void 0 || (_titleRef$current2 = titleRef.current) === null || _titleRef$current2 === void 0 ? void 0 : _titleRef$current2.scrollWidth) > (titleRef === null || titleRef === void 0 || (_titleRef$current3 = titleRef.current) === null || _titleRef$current3 === void 0 ? void 0 : _titleRef$current3.offsetWidth);
|
|
20077
20077
|
const isDetached = !!(notSufficientSpace || isTruncated);
|
|
20078
20078
|
return isDetached;
|
|
20079
20079
|
}
|
|
@@ -20116,10 +20116,10 @@ function getListboxActionProps(_ref) {
|
|
|
20116
20116
|
show: showToolbar,
|
|
20117
20117
|
api: selections,
|
|
20118
20118
|
onConfirm: () => {
|
|
20119
|
-
keyboard === null || keyboard ===
|
|
20119
|
+
keyboard === null || keyboard === void 0 || keyboard.focus();
|
|
20120
20120
|
},
|
|
20121
20121
|
onCancel: () => {
|
|
20122
|
-
keyboard === null || keyboard ===
|
|
20122
|
+
keyboard === null || keyboard === void 0 || keyboard.focus();
|
|
20123
20123
|
}
|
|
20124
20124
|
}
|
|
20125
20125
|
};
|
|
@@ -20432,19 +20432,19 @@ function ListBoxHeader(_ref2) {
|
|
|
20432
20432
|
disablePortal
|
|
20433
20433
|
} = _ref2;
|
|
20434
20434
|
const [isToolbarDetached, setIsToolbarDetached] = useState$1(showDetachedToolbarOnly);
|
|
20435
|
-
const [isLocked, setLocked] = useState$1(layout === null || layout ===
|
|
20435
|
+
const [isLocked, setLocked] = useState$1(layout === null || layout === void 0 || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === void 0 || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === void 0 ? void 0 : _layout$qListObject.qLocked);
|
|
20436
20436
|
const [settingLockedState, setSettingLockedState] = useState$1(false);
|
|
20437
20437
|
useEffect$1(() => {
|
|
20438
20438
|
var _layout$qListObject2;
|
|
20439
|
-
setLocked(layout === null || layout ===
|
|
20440
|
-
}, [layout === null || layout ===
|
|
20439
|
+
setLocked(layout === null || layout === void 0 || (_layout$qListObject2 = layout.qListObject) === null || _layout$qListObject2 === void 0 || (_layout$qListObject2 = _layout$qListObject2.qDimensionInfo) === null || _layout$qListObject2 === void 0 ? void 0 : _layout$qListObject2.qLocked);
|
|
20440
|
+
}, [layout === null || layout === void 0 || (_layout$qListObject3 = layout.qListObject) === null || _layout$qListObject3 === void 0 || (_layout$qListObject3 = _layout$qListObject3.qDimensionInfo) === null || _layout$qListObject3 === void 0 ? void 0 : _layout$qListObject3.qLocked]);
|
|
20441
20441
|
const titleRef = useRef$1(null);
|
|
20442
20442
|
const iconData = iconUtils.createDimensionIconData({
|
|
20443
|
-
dimInfo: layout === null || layout ===
|
|
20443
|
+
dimInfo: layout === null || layout === void 0 || (_layout$qListObject4 = layout.qListObject) === null || _layout$qListObject4 === void 0 ? void 0 : _layout$qListObject4.qDimensionInfo,
|
|
20444
20444
|
app,
|
|
20445
20445
|
selections,
|
|
20446
20446
|
isPopover,
|
|
20447
|
-
active: !(constraints !== null && constraints !==
|
|
20447
|
+
active: !(constraints !== null && constraints !== void 0 && constraints.active),
|
|
20448
20448
|
keyboard
|
|
20449
20449
|
});
|
|
20450
20450
|
const showUnlock = showLock && isLocked;
|
|
@@ -20479,7 +20479,7 @@ function ListBoxHeader(_ref2) {
|
|
|
20479
20479
|
enabled: () => !settingLockedState && !selectionState.selectDisabled() && hasSelections(layout),
|
|
20480
20480
|
action: toggleLock
|
|
20481
20481
|
}];
|
|
20482
|
-
const searchIconComp = constraints !== null && constraints !==
|
|
20482
|
+
const searchIconComp = constraints !== null && constraints !== void 0 && constraints.active ? /*#__PURE__*/React__default.createElement(SearchIcon, {
|
|
20483
20483
|
title: translator.get('Listbox.Search'),
|
|
20484
20484
|
size: "large",
|
|
20485
20485
|
style: _objectSpread2(_objectSpread2({}, iconStyle), {}, {
|
|
@@ -20628,7 +20628,7 @@ const isModal = _ref2 => {
|
|
|
20628
20628
|
app,
|
|
20629
20629
|
appSelections
|
|
20630
20630
|
} = _ref2;
|
|
20631
|
-
return (_app$isInModalSelecti = (_app$isInModalSelecti2 = app.isInModalSelection) === null || _app$isInModalSelecti2 ===
|
|
20631
|
+
return (_app$isInModalSelecti = (_app$isInModalSelecti2 = app.isInModalSelection) === null || _app$isInModalSelecti2 === void 0 ? void 0 : _app$isInModalSelecti2.call(app)) !== null && _app$isInModalSelecti !== void 0 ? _app$isInModalSelecti : appSelections.isInModal();
|
|
20632
20632
|
};
|
|
20633
20633
|
function ListBoxInline(_ref3) {
|
|
20634
20634
|
var _layout$qListObject, _layout$title, _layoutOptions$dense, _containerRef$current;
|
|
@@ -20678,7 +20678,7 @@ function ListBoxInline(_ref3) {
|
|
|
20678
20678
|
checkboxes
|
|
20679
20679
|
});
|
|
20680
20680
|
const isDirectQuery = isDirectQueryEnabled({
|
|
20681
|
-
appLayout: app === null || app ===
|
|
20681
|
+
appLayout: app === null || app === void 0 ? void 0 : app.layout
|
|
20682
20682
|
});
|
|
20683
20683
|
const containerRef = useRef$1();
|
|
20684
20684
|
const searchInputRef = useRef$1();
|
|
@@ -20708,7 +20708,7 @@ function ListBoxInline(_ref3) {
|
|
|
20708
20708
|
app,
|
|
20709
20709
|
appSelections
|
|
20710
20710
|
}), [app, appSelections]);
|
|
20711
|
-
const isInvalid = layout === null || layout ===
|
|
20711
|
+
const isInvalid = layout === null || layout === void 0 ? void 0 : layout.qListObject.qDimensionInfo.qError;
|
|
20712
20712
|
const errorText = isInvalid && constraints.active ? 'Visualization.Invalid.Dimension' : 'Visualization.Incomplete';
|
|
20713
20713
|
const {
|
|
20714
20714
|
handleKeyDown,
|
|
@@ -20770,10 +20770,10 @@ function ListBoxInline(_ref3) {
|
|
|
20770
20770
|
searchEnabled,
|
|
20771
20771
|
autoConfirm = false,
|
|
20772
20772
|
layoutOptions = {}
|
|
20773
|
-
} = layout !== null && layout !==
|
|
20774
|
-
const isLocked = layout === null || layout ===
|
|
20773
|
+
} = layout !== null && layout !== void 0 ? layout : {};
|
|
20774
|
+
const isLocked = layout === null || layout === void 0 || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === void 0 || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === void 0 ? void 0 : _layout$qListObject.qLocked;
|
|
20775
20775
|
const showSearchIcon = searchEnabled !== false && search === 'toggle' && !isLocked;
|
|
20776
|
-
const canShowTitle = (layout === null || layout ===
|
|
20776
|
+
const canShowTitle = (layout === null || layout === void 0 || (_layout$title = layout.title) === null || _layout$title === void 0 ? void 0 : _layout$title.length) && (layout === null || layout === void 0 ? void 0 : layout.showTitle) !== false;
|
|
20777
20777
|
const showDetachedToolbarOnly = toolbar && !canShowTitle && !isPopover;
|
|
20778
20778
|
const showAttachedToolbar = toolbar && canShowTitle || isPopover;
|
|
20779
20779
|
const isRtl = direction === 'rtl';
|
|
@@ -20782,7 +20782,7 @@ function ListBoxInline(_ref3) {
|
|
|
20782
20782
|
}
|
|
20783
20783
|
const showSearchToggle = search === 'toggle' && showSearch;
|
|
20784
20784
|
const searchVisible = search === true || showSearchToggle && searchEnabled !== false;
|
|
20785
|
-
const dense = (_layoutOptions$dense = layoutOptions.dense) !== null && _layoutOptions$dense !==
|
|
20785
|
+
const dense = (_layoutOptions$dense = layoutOptions.dense) !== null && _layoutOptions$dense !== void 0 ? _layoutOptions$dense : false;
|
|
20786
20786
|
const handleShowSearch = () => {
|
|
20787
20787
|
const newValue = !showSearch;
|
|
20788
20788
|
setShowSearch(newValue);
|
|
@@ -20797,15 +20797,15 @@ function ListBoxInline(_ref3) {
|
|
|
20797
20797
|
const shouldAutoFocus = searchVisible && (search === 'toggle' || focusSearch);
|
|
20798
20798
|
|
|
20799
20799
|
// Add a container padding for grid mode to harmonize with the grid item margins (should sum to 8px).
|
|
20800
|
-
const isGridMode = (layoutOptions === null || layoutOptions ===
|
|
20800
|
+
const isGridMode = (layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.dataLayout) === 'grid';
|
|
20801
20801
|
const containerPadding = getContainerPadding({
|
|
20802
20802
|
isGridMode,
|
|
20803
20803
|
dense,
|
|
20804
|
-
height: (_containerRef$current = containerRef.current) === null || _containerRef$current ===
|
|
20804
|
+
height: (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.clientHeight,
|
|
20805
20805
|
layoutOrder: layoutOptions.layoutOrder
|
|
20806
20806
|
});
|
|
20807
20807
|
if (isInvalid) {
|
|
20808
|
-
renderedCallback === null || renderedCallback ===
|
|
20808
|
+
renderedCallback === null || renderedCallback === void 0 || renderedCallback();
|
|
20809
20809
|
}
|
|
20810
20810
|
const listBoxMinHeight = showAttachedToolbar ? DENSE_ROW_HEIGHT + SCROLL_BAR_WIDTH : 0;
|
|
20811
20811
|
const listBoxHeader = /*#__PURE__*/React__default.createElement(ListBoxHeader, {
|
|
@@ -21175,7 +21175,7 @@ function useOnTheFlyModel(_ref) {
|
|
|
21175
21175
|
const [isFetching, setIsFetching] = useState$1(true);
|
|
21176
21176
|
const [model, setModel] = useState$1();
|
|
21177
21177
|
const [fallbackTitle, setFallbackTitle] = useState$1();
|
|
21178
|
-
const title = (_options$title = options.title) !== null && _options$title !==
|
|
21178
|
+
const title = (_options$title = options.title) !== null && _options$title !== void 0 ? _options$title : fallbackTitle;
|
|
21179
21179
|
let {
|
|
21180
21180
|
histogram = false,
|
|
21181
21181
|
frequencyMode = 'N'
|
|
@@ -21265,7 +21265,7 @@ function useOnTheFlyModel(_ref) {
|
|
|
21265
21265
|
fieldName = fieldIdentifier;
|
|
21266
21266
|
}
|
|
21267
21267
|
if (frequencyMode !== 'P' && histogram) {
|
|
21268
|
-
if (fieldDef !== null && fieldDef !==
|
|
21268
|
+
if (fieldDef !== null && fieldDef !== void 0 && fieldDef.multiFieldDim) {
|
|
21269
21269
|
listdef$1.frequencyMax = 'fetch';
|
|
21270
21270
|
// maybe for all lib dimension to handle if it properties change
|
|
21271
21271
|
} else {
|
|
@@ -21740,7 +21740,7 @@ function filterpaneHandler(_ref) {
|
|
|
21740
21740
|
}
|
|
21741
21741
|
} else {
|
|
21742
21742
|
var _dimension$qDef$qFiel, _dimension$qDef$qFiel2;
|
|
21743
|
-
listboxProps.title = dimension.qDef.title || ((_dimension$qDef$qFiel = dimension.qDef.qFieldLabels) === null || _dimension$qDef$qFiel ===
|
|
21743
|
+
listboxProps.title = dimension.qDef.title || ((_dimension$qDef$qFiel = dimension.qDef.qFieldLabels) === null || _dimension$qDef$qFiel === void 0 ? void 0 : _dimension$qDef$qFiel[0]) || ((_dimension$qDef$qFiel2 = dimension.qDef.qFieldDefs) === null || _dimension$qDef$qFiel2 === void 0 ? void 0 : _dimension$qDef$qFiel2[0]);
|
|
21744
21744
|
}
|
|
21745
21745
|
}
|
|
21746
21746
|
// def.dimensions.added(dimension, properties, listboxProps);
|
|
@@ -23883,7 +23883,7 @@ const Cell = forwardRef((_ref6, ref) => {
|
|
|
23883
23883
|
setModel,
|
|
23884
23884
|
getImperativeHandle() {
|
|
23885
23885
|
var _state$sn;
|
|
23886
|
-
if ((_state$sn = state.sn) !== null && _state$sn !==
|
|
23886
|
+
if ((_state$sn = state.sn) !== null && _state$sn !== void 0 && _state$sn.component && typeof state.sn.component.getImperativeHandle === 'function') {
|
|
23887
23887
|
return state.sn.component.getImperativeHandle();
|
|
23888
23888
|
}
|
|
23889
23889
|
return {};
|
|
@@ -24121,7 +24121,7 @@ function validatePlugins(plugins) {
|
|
|
24121
24121
|
|
|
24122
24122
|
const canSetProperties = layout => {
|
|
24123
24123
|
var _layout$qMeta;
|
|
24124
|
-
return !!(layout && !layout.qHasSoftPatches && !layout.qExtendsId && (((_layout$qMeta = layout.qMeta) === null || _layout$qMeta ===
|
|
24124
|
+
return !!(layout && !layout.qHasSoftPatches && !layout.qExtendsId && (((_layout$qMeta = layout.qMeta) === null || _layout$qMeta === void 0 ? void 0 : _layout$qMeta.privileges) || []).indexOf('update') > -1);
|
|
24125
24125
|
};
|
|
24126
24126
|
|
|
24127
24127
|
/* eslint-disable no-underscore-dangle */
|
|
@@ -26468,7 +26468,7 @@ function viz() {
|
|
|
26468
26468
|
onRenderResolve = resolve;
|
|
26469
26469
|
});
|
|
26470
26470
|
const createOnInitialRender = override => () => {
|
|
26471
|
-
override === null || override ===
|
|
26471
|
+
override === null || override === void 0 || override(); // from options.onInitialRender
|
|
26472
26472
|
onRenderResolve(); // internal promise in viz to wait for render
|
|
26473
26473
|
onRender(); // from RenderConfig
|
|
26474
26474
|
};
|
|
@@ -27105,7 +27105,7 @@ const Sheet = forwardRef((_ref, ref) => {
|
|
|
27105
27105
|
const [bgColor, setBgColor] = useState$1(undefined);
|
|
27106
27106
|
const [bgImage, setBgImage] = useState$1(undefined);
|
|
27107
27107
|
const [deepHash, setDeepHash] = useState$1('');
|
|
27108
|
-
navigation === null || navigation ===
|
|
27108
|
+
navigation === null || navigation === void 0 || (_navigation$setCurren = navigation.setCurrentSheetId) === null || _navigation$setCurren === void 0 || _navigation$setCurren.call(navigation, model.id);
|
|
27109
27109
|
/// For each object
|
|
27110
27110
|
useEffect$1(() => {
|
|
27111
27111
|
if (layout) {
|
|
@@ -27171,7 +27171,7 @@ const Sheet = forwardRef((_ref, ref) => {
|
|
|
27171
27171
|
}, [model]);
|
|
27172
27172
|
const cellRenderers = useMemo$1(() => cells ? cells.map(c => getCellRenderer(c, halo, initialSnOptions, initialSnPlugins, initialError, c.mounted, navigation)) : [], [cells]);
|
|
27173
27173
|
useEffect$1(() => {
|
|
27174
|
-
const bgComp = layout !== null && layout !==
|
|
27174
|
+
const bgComp = layout !== null && layout !== void 0 && layout.components ? layout.components.find(comp => comp.key === 'general') : null;
|
|
27175
27175
|
setBgColor(resolveBgColor(bgComp, halo.public.theme));
|
|
27176
27176
|
setBgImage(resolveBgImage(bgComp, halo.app));
|
|
27177
27177
|
}, [layout, halo.public.theme, halo.app, themeName]);
|
|
@@ -27409,9 +27409,9 @@ function createNavigationApi(halo, store, model) {
|
|
|
27409
27409
|
const {
|
|
27410
27410
|
galaxy
|
|
27411
27411
|
} = halo.public;
|
|
27412
|
-
if ((_galaxy$anything = galaxy.anything) !== null && _galaxy$anything !==
|
|
27412
|
+
if ((_galaxy$anything = galaxy.anything) !== null && _galaxy$anything !== void 0 && (_galaxy$anything = _galaxy$anything.sense) !== null && _galaxy$anything !== void 0 && _galaxy$anything.navigation) {
|
|
27413
27413
|
var _galaxy$anything2;
|
|
27414
|
-
return (_galaxy$anything2 = galaxy.anything) === null || _galaxy$anything2 ===
|
|
27414
|
+
return (_galaxy$anything2 = galaxy.anything) === null || _galaxy$anything2 === void 0 || (_galaxy$anything2 = _galaxy$anything2.sense) === null || _galaxy$anything2 === void 0 ? void 0 : _galaxy$anything2.navigation;
|
|
27415
27415
|
}
|
|
27416
27416
|
const State = {
|
|
27417
27417
|
model
|
|
@@ -27477,7 +27477,7 @@ function createNavigationApi(halo, store, model) {
|
|
|
27477
27477
|
return;
|
|
27478
27478
|
}
|
|
27479
27479
|
modelStore.set(key, newModel);
|
|
27480
|
-
(_State$sheetRef = State.sheetRef) === null || _State$sheetRef ===
|
|
27480
|
+
(_State$sheetRef = State.sheetRef) === null || _State$sheetRef === void 0 || (_State$sheetRef = _State$sheetRef.current) === null || _State$sheetRef === void 0 || (_State$sheetRef$setMo = _State$sheetRef.setModel) === null || _State$sheetRef$setMo === void 0 || _State$sheetRef$setMo.call(_State$sheetRef, newModel);
|
|
27481
27481
|
State.model = newModel;
|
|
27482
27482
|
navigationAPI.emit('sheetChanged');
|
|
27483
27483
|
},
|
|
@@ -29662,7 +29662,7 @@ function nuked() {
|
|
|
29662
29662
|
var _fieldSels$_ref;
|
|
29663
29663
|
const onSelectionActivated = () => fieldSels.emit('selectionActivated');
|
|
29664
29664
|
const onSelectionDeactivated = () => fieldSels.emit('selectionDeactivated');
|
|
29665
|
-
if ((_fieldSels$_ref = fieldSels._ref) !== null && _fieldSels$_ref !==
|
|
29665
|
+
if ((_fieldSels$_ref = fieldSels._ref) !== null && _fieldSels$_ref !== void 0 && _fieldSels$_ref.current) {
|
|
29666
29666
|
const options = getOptions$1(_objectSpread2({
|
|
29667
29667
|
onSelectionActivated,
|
|
29668
29668
|
onSelectionDeactivated
|