@nebula.js/stardust 5.8.1 → 5.9.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 +377 -320
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +6 -6
- package/core/esm/index.js.map +1 -1
- package/core/package.json +4 -4
- package/dist/stardust.dev.js +879 -1165
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +15 -15
- package/dist/stardust.js.map +1 -1
- package/package.json +19 -19
package/core/esm/dev.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v5.
|
|
3
|
-
* Copyright (c)
|
|
2
|
+
* @nebula.js/stardust v5.9.0
|
|
3
|
+
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -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 === undefined) 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) {
|
|
@@ -720,9 +720,9 @@ requireRuntime();
|
|
|
720
720
|
function _defineProperty(e, r, t) {
|
|
721
721
|
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
722
722
|
value: t,
|
|
723
|
-
enumerable:
|
|
724
|
-
configurable:
|
|
725
|
-
writable:
|
|
723
|
+
enumerable: true,
|
|
724
|
+
configurable: true,
|
|
725
|
+
writable: true
|
|
726
726
|
}) : e[r] = t, e;
|
|
727
727
|
}
|
|
728
728
|
function _extends$6() {
|
|
@@ -747,7 +747,7 @@ function ownKeys(e, r) {
|
|
|
747
747
|
function _objectSpread2(e) {
|
|
748
748
|
for (var r = 1; r < arguments.length; r++) {
|
|
749
749
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
750
|
-
r % 2 ? ownKeys(Object(t),
|
|
750
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function (r) {
|
|
751
751
|
_defineProperty(e, r, t[r]);
|
|
752
752
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
753
753
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
@@ -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 (undefined !== e) {
|
|
782
782
|
var i = e.call(t, r || "default");
|
|
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 === undefined;
|
|
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 undefined;
|
|
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 === undefined ? undefined : c.index) === 'number' && !Number.isNaN(c === null || c === undefined ? undefined : c.index);
|
|
4875
|
+
const colorIsValid = typeof (c === null || c === undefined ? undefined : 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 === undefined ? undefined : c.index) < 0 || typeof (c === null || c === undefined ? undefined : c.index) === 'undefined') {
|
|
4884
4884
|
return c.color;
|
|
4885
4885
|
}
|
|
4886
4886
|
if (typeof uiPalette === 'undefined') {
|
|
@@ -5225,12 +5225,13 @@ styleResolver.resolveRawTheme = raw => {
|
|
|
5225
5225
|
};
|
|
5226
5226
|
|
|
5227
5227
|
function luminance(colStr) {
|
|
5228
|
-
const c = color$3(colStr)
|
|
5228
|
+
const c = color$3(colStr); // this needs to handle bad colors
|
|
5229
|
+
if (!c) return 0;
|
|
5229
5230
|
const {
|
|
5230
5231
|
r,
|
|
5231
5232
|
g,
|
|
5232
5233
|
b
|
|
5233
|
-
} = c;
|
|
5234
|
+
} = c.rgb();
|
|
5234
5235
|
|
|
5235
5236
|
// https://www.w3.org/TR/WCAG20/#relativeluminancedef
|
|
5236
5237
|
const [sR, sG, sB] = [r, g, b].map(v => v / 255);
|
|
@@ -6339,6 +6340,8 @@ function memoize$1(fn) {
|
|
|
6339
6340
|
};
|
|
6340
6341
|
}
|
|
6341
6342
|
|
|
6343
|
+
var isBrowser = typeof document !== 'undefined';
|
|
6344
|
+
|
|
6342
6345
|
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
6343
6346
|
var previous = 0;
|
|
6344
6347
|
var character = 0;
|
|
@@ -6676,7 +6679,20 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
|
6676
6679
|
}
|
|
6677
6680
|
};
|
|
6678
6681
|
|
|
6679
|
-
|
|
6682
|
+
/* import type { StylisPlugin } from './types' */
|
|
6683
|
+
|
|
6684
|
+
/*
|
|
6685
|
+
export type Options = {
|
|
6686
|
+
nonce?: string,
|
|
6687
|
+
stylisPlugins?: StylisPlugin[],
|
|
6688
|
+
key: string,
|
|
6689
|
+
container?: HTMLElement,
|
|
6690
|
+
speedy?: boolean,
|
|
6691
|
+
prepend?: boolean,
|
|
6692
|
+
insertionPoint?: HTMLElement
|
|
6693
|
+
}
|
|
6694
|
+
*/
|
|
6695
|
+
|
|
6680
6696
|
var getServerStylisCache = isBrowser ? undefined : weakMemoize(function () {
|
|
6681
6697
|
return memoize$1(function () {
|
|
6682
6698
|
var cache = {};
|
|
@@ -6687,7 +6703,11 @@ var getServerStylisCache = isBrowser ? undefined : weakMemoize(function () {
|
|
|
6687
6703
|
});
|
|
6688
6704
|
var defaultStylisPlugins = [prefixer];
|
|
6689
6705
|
|
|
6690
|
-
var createCache = function
|
|
6706
|
+
var createCache = function
|
|
6707
|
+
/*: EmotionCache */
|
|
6708
|
+
createCache(options
|
|
6709
|
+
/*: Options */
|
|
6710
|
+
) {
|
|
6691
6711
|
var key = options.key;
|
|
6692
6712
|
|
|
6693
6713
|
if (isBrowser && key === 'css') {
|
|
@@ -6696,7 +6716,9 @@ var createCache = function createCache(options) {
|
|
|
6696
6716
|
// note this very very intentionally targets all style elements regardless of the key to ensure
|
|
6697
6717
|
// that creating a cache works inside of render of a React component
|
|
6698
6718
|
|
|
6699
|
-
Array.prototype.forEach.call(ssrStyles, function (node
|
|
6719
|
+
Array.prototype.forEach.call(ssrStyles, function (node
|
|
6720
|
+
/*: HTMLStyleElement */
|
|
6721
|
+
) {
|
|
6700
6722
|
// we want to only move elements which have a space in the data-emotion attribute value
|
|
6701
6723
|
// because that indicates that it is an Emotion 11 server-side rendered style elements
|
|
6702
6724
|
// while we will already ignore Emotion 11 client-side inserted styles because of the :not([data-s]) part in the selector
|
|
@@ -6708,6 +6730,7 @@ var createCache = function createCache(options) {
|
|
|
6708
6730
|
if (dataEmotionAttribute.indexOf(' ') === -1) {
|
|
6709
6731
|
return;
|
|
6710
6732
|
}
|
|
6733
|
+
|
|
6711
6734
|
document.head.appendChild(node);
|
|
6712
6735
|
node.setAttribute('data-s', '');
|
|
6713
6736
|
});
|
|
@@ -6717,14 +6740,18 @@ var createCache = function createCache(options) {
|
|
|
6717
6740
|
|
|
6718
6741
|
var inserted = {};
|
|
6719
6742
|
var container;
|
|
6743
|
+
/* : Node */
|
|
6744
|
+
|
|
6720
6745
|
var nodesToHydrate = [];
|
|
6721
6746
|
|
|
6722
6747
|
if (isBrowser) {
|
|
6723
6748
|
container = options.container || document.head;
|
|
6724
6749
|
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
|
6725
6750
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
6726
|
-
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
|
6727
|
-
|
|
6751
|
+
document.querySelectorAll("style[data-emotion^=\"" + key + " \"]"), function (node
|
|
6752
|
+
/*: HTMLStyleElement */
|
|
6753
|
+
) {
|
|
6754
|
+
var attrib = node.getAttribute("data-emotion").split(' ');
|
|
6728
6755
|
|
|
6729
6756
|
for (var i = 1; i < attrib.length; i++) {
|
|
6730
6757
|
inserted[attrib[i]] = true;
|
|
@@ -6735,6 +6762,13 @@ var createCache = function createCache(options) {
|
|
|
6735
6762
|
}
|
|
6736
6763
|
|
|
6737
6764
|
var _insert;
|
|
6765
|
+
/*: (
|
|
6766
|
+
selector: string,
|
|
6767
|
+
serialized: SerializedStyles,
|
|
6768
|
+
sheet: StyleSheet,
|
|
6769
|
+
shouldCache: boolean
|
|
6770
|
+
) => string | void */
|
|
6771
|
+
|
|
6738
6772
|
|
|
6739
6773
|
var omnipresentPlugins = [compat, removeLabel];
|
|
6740
6774
|
|
|
@@ -6749,7 +6783,17 @@ var createCache = function createCache(options) {
|
|
|
6749
6783
|
return serialize(compile(styles), serializer);
|
|
6750
6784
|
};
|
|
6751
6785
|
|
|
6752
|
-
_insert = function
|
|
6786
|
+
_insert = function
|
|
6787
|
+
/*: void */
|
|
6788
|
+
insert(selector
|
|
6789
|
+
/*: string */
|
|
6790
|
+
, serialized
|
|
6791
|
+
/*: SerializedStyles */
|
|
6792
|
+
, sheet
|
|
6793
|
+
/*: StyleSheet */
|
|
6794
|
+
, shouldCache
|
|
6795
|
+
/*: boolean */
|
|
6796
|
+
) {
|
|
6753
6797
|
currentSheet = sheet;
|
|
6754
6798
|
|
|
6755
6799
|
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
@@ -6765,12 +6809,17 @@ var createCache = function createCache(options) {
|
|
|
6765
6809
|
|
|
6766
6810
|
var _stylis = function _stylis(styles) {
|
|
6767
6811
|
return serialize(compile(styles), _serializer);
|
|
6768
|
-
};
|
|
6769
|
-
|
|
6812
|
+
};
|
|
6770
6813
|
|
|
6771
6814
|
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
|
6772
6815
|
|
|
6773
|
-
var getRules = function
|
|
6816
|
+
var getRules = function
|
|
6817
|
+
/*: string */
|
|
6818
|
+
getRules(selector
|
|
6819
|
+
/*: string */
|
|
6820
|
+
, serialized
|
|
6821
|
+
/*: SerializedStyles */
|
|
6822
|
+
) {
|
|
6774
6823
|
var name = serialized.name;
|
|
6775
6824
|
|
|
6776
6825
|
if (serverStylisCache[name] === undefined) {
|
|
@@ -6780,7 +6829,17 @@ var createCache = function createCache(options) {
|
|
|
6780
6829
|
return serverStylisCache[name];
|
|
6781
6830
|
};
|
|
6782
6831
|
|
|
6783
|
-
_insert = function
|
|
6832
|
+
_insert = function
|
|
6833
|
+
/*: string | void */
|
|
6834
|
+
_insert(selector
|
|
6835
|
+
/*: string */
|
|
6836
|
+
, serialized
|
|
6837
|
+
/*: SerializedStyles */
|
|
6838
|
+
, sheet
|
|
6839
|
+
/*: StyleSheet */
|
|
6840
|
+
, shouldCache
|
|
6841
|
+
/*: boolean */
|
|
6842
|
+
) {
|
|
6784
6843
|
var name = serialized.name;
|
|
6785
6844
|
var rules = getRules(selector, serialized);
|
|
6786
6845
|
|
|
@@ -6810,7 +6869,9 @@ var createCache = function createCache(options) {
|
|
|
6810
6869
|
};
|
|
6811
6870
|
}
|
|
6812
6871
|
|
|
6813
|
-
var cache
|
|
6872
|
+
var cache
|
|
6873
|
+
/*: EmotionCache */
|
|
6874
|
+
= {
|
|
6814
6875
|
key: key,
|
|
6815
6876
|
sheet: new StyleSheet({
|
|
6816
6877
|
key: key,
|
|
@@ -6848,8 +6909,8 @@ var hasRequiredReactJsxRuntime_production_min;
|
|
|
6848
6909
|
function requireReactJsxRuntime_production_min () {
|
|
6849
6910
|
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
6850
6911
|
hasRequiredReactJsxRuntime_production_min = 1;
|
|
6851
|
-
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
|
|
6852
|
-
function q(c,a,g){var b,d={},e=null,h=null;
|
|
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;undefined!==g&&(e=""+g);undefined!==a.key&&(e=""+a.key);undefined!==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)undefined===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;
|
|
6853
6914
|
return reactJsxRuntime_production_min;
|
|
6854
6915
|
}
|
|
6855
6916
|
|
|
@@ -6900,7 +6961,7 @@ function GlobalStyles(props) {
|
|
|
6900
6961
|
}
|
|
6901
6962
|
|
|
6902
6963
|
/**
|
|
6903
|
-
* @mui/styled-engine v5.16.
|
|
6964
|
+
* @mui/styled-engine v5.16.14
|
|
6904
6965
|
*
|
|
6905
6966
|
* @license MIT
|
|
6906
6967
|
* This source code is licensed under the MIT license found in the
|
|
@@ -6983,7 +7044,7 @@ function isPlainObject(item) {
|
|
|
6983
7044
|
return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);
|
|
6984
7045
|
}
|
|
6985
7046
|
function deepClone(source) {
|
|
6986
|
-
if (!isPlainObject(source)) {
|
|
7047
|
+
if ( /*#__PURE__*/React.isValidElement(source) || !isPlainObject(source)) {
|
|
6987
7048
|
return source;
|
|
6988
7049
|
}
|
|
6989
7050
|
const output = {};
|
|
@@ -6998,7 +7059,9 @@ function deepmerge$1(target, source, options = {
|
|
|
6998
7059
|
const output = options.clone ? _extends$3({}, target) : target;
|
|
6999
7060
|
if (isPlainObject(target) && isPlainObject(source)) {
|
|
7000
7061
|
Object.keys(source).forEach(key => {
|
|
7001
|
-
if (
|
|
7062
|
+
if ( /*#__PURE__*/React.isValidElement(source[key])) {
|
|
7063
|
+
output[key] = source[key];
|
|
7064
|
+
} else if (isPlainObject(source[key]) &&
|
|
7002
7065
|
// Avoid prototype pollution
|
|
7003
7066
|
Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {
|
|
7004
7067
|
// Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.
|
|
@@ -7157,7 +7220,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
|
|
|
7157
7220
|
}
|
|
7158
7221
|
function createEmptyBreakpointObject(breakpointsInput = {}) {
|
|
7159
7222
|
var _breakpointsInput$key;
|
|
7160
|
-
const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ?
|
|
7223
|
+
const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? undefined : _breakpointsInput$key.reduce((acc, key) => {
|
|
7161
7224
|
const breakpointStyleKey = breakpointsInput.up(key);
|
|
7162
7225
|
acc[breakpointStyleKey] = {};
|
|
7163
7226
|
return acc;
|
|
@@ -7582,13 +7645,13 @@ const maxWidth = props => {
|
|
|
7582
7645
|
if (props.maxWidth !== undefined && props.maxWidth !== null) {
|
|
7583
7646
|
const styleFromPropValue = propValue => {
|
|
7584
7647
|
var _props$theme, _props$theme2;
|
|
7585
|
-
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 ? undefined : _props$theme[propValue]) || values[propValue];
|
|
7586
7649
|
if (!breakpoint) {
|
|
7587
7650
|
return {
|
|
7588
7651
|
maxWidth: sizingTransform(propValue)
|
|
7589
7652
|
};
|
|
7590
7653
|
}
|
|
7591
|
-
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 ? undefined : _props$theme2.unit) !== 'px') {
|
|
7592
7655
|
return {
|
|
7593
7656
|
maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
|
|
7594
7657
|
};
|
|
@@ -8140,7 +8203,7 @@ function createTheme$2(options = {}, ...args) {
|
|
|
8140
8203
|
}, other);
|
|
8141
8204
|
muiTheme.applyStyles = applyStyles;
|
|
8142
8205
|
muiTheme = args.reduce((acc, argument) => deepmerge$1(acc, argument), muiTheme);
|
|
8143
|
-
muiTheme.unstable_sxConfig = _extends$4({}, defaultSxConfig, other == null ?
|
|
8206
|
+
muiTheme.unstable_sxConfig = _extends$4({}, defaultSxConfig, other == null ? undefined : other.unstable_sxConfig);
|
|
8144
8207
|
muiTheme.unstable_sx = function sx(props) {
|
|
8145
8208
|
return styleFunctionSx$1({
|
|
8146
8209
|
sx: props,
|
|
@@ -8177,7 +8240,7 @@ const splitProps = props => {
|
|
|
8177
8240
|
systemProps: {},
|
|
8178
8241
|
otherProps: {}
|
|
8179
8242
|
};
|
|
8180
|
-
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 ? undefined : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;
|
|
8181
8244
|
Object.keys(props).forEach(prop => {
|
|
8182
8245
|
if (config[prop]) {
|
|
8183
8246
|
result.systemProps[prop] = props[prop];
|
|
@@ -8290,9 +8353,9 @@ function requireReactIs_production_min () {
|
|
|
8290
8353
|
hasRequiredReactIs_production_min = 1;
|
|
8291
8354
|
var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");
|
|
8292
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;
|
|
8293
|
-
reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return
|
|
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};
|
|
8294
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};
|
|
8295
|
-
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||undefined!==a.getModuleId)?true:false};reactIs_production_min.typeOf=v;
|
|
8296
8359
|
return reactIs_production_min;
|
|
8297
8360
|
}
|
|
8298
8361
|
|
|
@@ -8476,7 +8539,7 @@ function isMuiElement(element, muiNames) {
|
|
|
8476
8539
|
return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName
|
|
8477
8540
|
// relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
|
|
8478
8541
|
// eslint-disable-next-line no-underscore-dangle
|
|
8479
|
-
(_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 ? undefined : _element$type.muiName) !== -1;
|
|
8480
8543
|
}
|
|
8481
8544
|
|
|
8482
8545
|
function ownerDocument(node) {
|
|
@@ -8956,7 +9019,7 @@ function ThemeProvider$1(props) {
|
|
|
8956
9019
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(RtlProvider, {
|
|
8957
9020
|
value: rtlValue,
|
|
8958
9021
|
children: /*#__PURE__*/jsxRuntimeExports.jsx(DefaultPropsProvider, {
|
|
8959
|
-
value: engineTheme == null ?
|
|
9022
|
+
value: engineTheme == null ? undefined : engineTheme.components,
|
|
8960
9023
|
children: children
|
|
8961
9024
|
})
|
|
8962
9025
|
})
|
|
@@ -9092,7 +9155,7 @@ function requireColorManipulator () {
|
|
|
9092
9155
|
});
|
|
9093
9156
|
colorManipulator.alpha = alpha;
|
|
9094
9157
|
colorManipulator.blend = blend;
|
|
9095
|
-
colorManipulator.colorChannel =
|
|
9158
|
+
colorManipulator.colorChannel = undefined;
|
|
9096
9159
|
colorManipulator.darken = darken;
|
|
9097
9160
|
colorManipulator.decomposeColor = decomposeColor;
|
|
9098
9161
|
colorManipulator.emphasize = emphasize;
|
|
@@ -9102,7 +9165,7 @@ function requireColorManipulator () {
|
|
|
9102
9165
|
colorManipulator.hslToRgb = hslToRgb;
|
|
9103
9166
|
colorManipulator.lighten = lighten;
|
|
9104
9167
|
colorManipulator.private_safeAlpha = private_safeAlpha;
|
|
9105
|
-
colorManipulator.private_safeColorChannel =
|
|
9168
|
+
colorManipulator.private_safeColorChannel = undefined;
|
|
9106
9169
|
colorManipulator.private_safeDarken = private_safeDarken;
|
|
9107
9170
|
colorManipulator.private_safeEmphasize = private_safeEmphasize;
|
|
9108
9171
|
colorManipulator.private_safeLighten = private_safeLighten;
|
|
@@ -9201,9 +9264,6 @@ function requireColorManipulator () {
|
|
|
9201
9264
|
try {
|
|
9202
9265
|
return colorChannel(color);
|
|
9203
9266
|
} catch (error) {
|
|
9204
|
-
if (warning && "production" !== 'production') {
|
|
9205
|
-
console.warn(warning);
|
|
9206
|
-
}
|
|
9207
9267
|
return color;
|
|
9208
9268
|
}
|
|
9209
9269
|
};
|
|
@@ -9341,9 +9401,6 @@ function requireColorManipulator () {
|
|
|
9341
9401
|
try {
|
|
9342
9402
|
return alpha(color, value);
|
|
9343
9403
|
} catch (error) {
|
|
9344
|
-
if (warning && "production" !== 'production') {
|
|
9345
|
-
console.warn(warning);
|
|
9346
|
-
}
|
|
9347
9404
|
return color;
|
|
9348
9405
|
}
|
|
9349
9406
|
}
|
|
@@ -9370,9 +9427,6 @@ function requireColorManipulator () {
|
|
|
9370
9427
|
try {
|
|
9371
9428
|
return darken(color, coefficient);
|
|
9372
9429
|
} catch (error) {
|
|
9373
|
-
if (warning && "production" !== 'production') {
|
|
9374
|
-
console.warn(warning);
|
|
9375
|
-
}
|
|
9376
9430
|
return color;
|
|
9377
9431
|
}
|
|
9378
9432
|
}
|
|
@@ -9403,9 +9457,6 @@ function requireColorManipulator () {
|
|
|
9403
9457
|
try {
|
|
9404
9458
|
return lighten(color, coefficient);
|
|
9405
9459
|
} catch (error) {
|
|
9406
|
-
if (warning && "production" !== 'production') {
|
|
9407
|
-
console.warn(warning);
|
|
9408
|
-
}
|
|
9409
9460
|
return color;
|
|
9410
9461
|
}
|
|
9411
9462
|
}
|
|
@@ -9424,9 +9475,6 @@ function requireColorManipulator () {
|
|
|
9424
9475
|
try {
|
|
9425
9476
|
return emphasize(color, coefficient);
|
|
9426
9477
|
} catch (error) {
|
|
9427
|
-
if (warning && "production" !== 'production') {
|
|
9428
|
-
console.warn(warning);
|
|
9429
|
-
}
|
|
9430
9478
|
return color;
|
|
9431
9479
|
}
|
|
9432
9480
|
}
|
|
@@ -10037,7 +10085,7 @@ function createTheme(options = {}, ...args) {
|
|
|
10037
10085
|
});
|
|
10038
10086
|
muiTheme = deepmerge$1(muiTheme, other);
|
|
10039
10087
|
muiTheme = args.reduce((acc, argument) => deepmerge$1(acc, argument), muiTheme);
|
|
10040
|
-
muiTheme.unstable_sxConfig = _extends$5({}, defaultSxConfig, other == null ?
|
|
10088
|
+
muiTheme.unstable_sxConfig = _extends$5({}, defaultSxConfig, other == null ? undefined : other.unstable_sxConfig);
|
|
10041
10089
|
muiTheme.unstable_sx = function sx(props) {
|
|
10042
10090
|
return styleFunctionSx$1({
|
|
10043
10091
|
sx: props,
|
|
@@ -10132,7 +10180,7 @@ function requireCreateStyled () {
|
|
|
10132
10180
|
});
|
|
10133
10181
|
createStyled$1.default = createStyled;
|
|
10134
10182
|
createStyled$1.shouldForwardProp = shouldForwardProp;
|
|
10135
|
-
createStyled$1.systemDefaultTheme =
|
|
10183
|
+
createStyled$1.systemDefaultTheme = undefined;
|
|
10136
10184
|
var _extends2 = _interopRequireDefault(require_extends());
|
|
10137
10185
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(requireObjectWithoutPropertiesLoose());
|
|
10138
10186
|
var _styledEngine = _interopRequireWildcard(require$$3);
|
|
@@ -10211,7 +10259,7 @@ function requireCreateStyled () {
|
|
|
10211
10259
|
}, props, ownerState));
|
|
10212
10260
|
} else {
|
|
10213
10261
|
Object.keys(variant.props).forEach(key => {
|
|
10214
|
-
if ((ownerState == null ?
|
|
10262
|
+
if ((ownerState == null ? undefined : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {
|
|
10215
10263
|
isMatch = false;
|
|
10216
10264
|
}
|
|
10217
10265
|
});
|
|
@@ -10328,7 +10376,7 @@ function requireCreateStyled () {
|
|
|
10328
10376
|
defaultTheme,
|
|
10329
10377
|
themeId
|
|
10330
10378
|
}));
|
|
10331
|
-
const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ?
|
|
10379
|
+
const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? undefined : _theme$components.variants;
|
|
10332
10380
|
return processStyleArg({
|
|
10333
10381
|
variants: themeVariants
|
|
10334
10382
|
}, (0, _extends2.default)({}, props, {
|
|
@@ -10426,7 +10474,7 @@ function _inheritsLoose(subClass, superClass) {
|
|
|
10426
10474
|
}
|
|
10427
10475
|
|
|
10428
10476
|
function _assertThisInitialized(self) {
|
|
10429
|
-
if (self ===
|
|
10477
|
+
if (self === undefined) {
|
|
10430
10478
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
10431
10479
|
}
|
|
10432
10480
|
|
|
@@ -10772,7 +10820,7 @@ function create$3(definition) {
|
|
|
10772
10820
|
return cache[key];
|
|
10773
10821
|
}
|
|
10774
10822
|
|
|
10775
|
-
const NEBULA_VERSION_HASH = "
|
|
10823
|
+
const NEBULA_VERSION_HASH = "3166";
|
|
10776
10824
|
ClassNameGenerator.configure(componentName => {
|
|
10777
10825
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
10778
10826
|
});
|
|
@@ -11004,7 +11052,7 @@ function boot(_ref2) {
|
|
|
11004
11052
|
const appRef = React__default.createRef();
|
|
11005
11053
|
const element = document.createElement('div');
|
|
11006
11054
|
element.style.display = 'none';
|
|
11007
|
-
element.setAttribute('data-nebulajs-version', "5.
|
|
11055
|
+
element.setAttribute('data-nebulajs-version', "5.9.0");
|
|
11008
11056
|
element.setAttribute('data-app-id', app.id);
|
|
11009
11057
|
document.body.appendChild(element);
|
|
11010
11058
|
if (context) {
|
|
@@ -11817,7 +11865,7 @@ const rowColClasses = {
|
|
|
11817
11865
|
|
|
11818
11866
|
/* eslint-disable no-underscore-dangle */
|
|
11819
11867
|
const dataItemSelector = ".".concat(rowColClasses.fieldRoot);
|
|
11820
|
-
const getKeyAsToggleSelected = event => !(event !== null && event !==
|
|
11868
|
+
const getKeyAsToggleSelected = event => !(event !== null && event !== undefined && event.metaKey || event !== null && event !== undefined && event.ctrlKey);
|
|
11821
11869
|
function useSelectionsInteractions(_ref) {
|
|
11822
11870
|
var _loaderRef$current2;
|
|
11823
11871
|
let {
|
|
@@ -11838,7 +11886,7 @@ function useSelectionsInteractions(_ref) {
|
|
|
11838
11886
|
});
|
|
11839
11887
|
useEffect$1(() => {
|
|
11840
11888
|
var _loaderRef$current;
|
|
11841
|
-
if (!((_loaderRef$current = loaderRef.current) !== null && _loaderRef$current !==
|
|
11889
|
+
if (!((_loaderRef$current = loaderRef.current) !== null && _loaderRef$current !== undefined && (_loaderRef$current = _loaderRef$current._listRef) !== null && _loaderRef$current !== undefined && _loaderRef$current._outerRef)) {
|
|
11842
11890
|
return undefined;
|
|
11843
11891
|
}
|
|
11844
11892
|
const preventGestureStart = e => e.preventDefault();
|
|
@@ -11853,12 +11901,12 @@ function useSelectionsInteractions(_ref) {
|
|
|
11853
11901
|
listRef.removeEventListener('gesturechange', preventGestureChange);
|
|
11854
11902
|
listRef.removeEventListener('gestureend', preventGestureEnd);
|
|
11855
11903
|
};
|
|
11856
|
-
}, [(_loaderRef$current2 = loaderRef.current) === null || _loaderRef$current2 ===
|
|
11904
|
+
}, [(_loaderRef$current2 = loaderRef.current) === null || _loaderRef$current2 === undefined || (_loaderRef$current2 = _loaderRef$current2._listRef) === null || _loaderRef$current2 === undefined ? undefined : _loaderRef$current2._outerRef]);
|
|
11857
11905
|
|
|
11858
11906
|
// eslint-disable-next-line arrow-body-style
|
|
11859
11907
|
const doSelect = async () => {
|
|
11860
11908
|
var _selectionState$selec;
|
|
11861
|
-
if ((_selectionState$selec = selectionState.selectDisabled) !== null && _selectionState$selec !==
|
|
11909
|
+
if ((_selectionState$selec = selectionState.selectDisabled) !== null && _selectionState$selec !== undefined && _selectionState$selec.call(selectionState)) {
|
|
11862
11910
|
return false;
|
|
11863
11911
|
}
|
|
11864
11912
|
selectionState.setSelectableValuesUpdating();
|
|
@@ -11888,10 +11936,10 @@ function useSelectionsInteractions(_ref) {
|
|
|
11888
11936
|
let elementIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
11889
11937
|
let additive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
11890
11938
|
let event = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
11891
|
-
if ((_selectionState$selec2 = selectionState.selectDisabled) !== null && _selectionState$selec2 !==
|
|
11939
|
+
if ((_selectionState$selec2 = selectionState.selectDisabled) !== null && _selectionState$selec2 !== undefined && _selectionState$selec2.call(selectionState)) {
|
|
11892
11940
|
return false;
|
|
11893
11941
|
}
|
|
11894
|
-
const toggle = !selectionState.isSingleSelect && getKeyAsToggleSelected(event === null || event ===
|
|
11942
|
+
const toggle = !selectionState.isSingleSelect && getKeyAsToggleSelected(event === null || event === undefined ? undefined : event.nativeEvent);
|
|
11895
11943
|
if (!toggle) {
|
|
11896
11944
|
selectionState.clearItemStates(true);
|
|
11897
11945
|
}
|
|
@@ -11990,8 +12038,8 @@ function useSelectionsInteractions(_ref) {
|
|
|
11990
12038
|
doSelect();
|
|
11991
12039
|
return;
|
|
11992
12040
|
}
|
|
11993
|
-
const startTouchElemNumber = Number((_event$touches$0$targ = event.touches[0].target) === null || _event$touches$0$targ ===
|
|
11994
|
-
const endTouchElemNumber = Number((_event$touches$1$targ = event.touches[1].target) === null || _event$touches$1$targ ===
|
|
12041
|
+
const startTouchElemNumber = Number((_event$touches$0$targ = event.touches[0].target) === null || _event$touches$0$targ === undefined || (_event$touches$0$targ = _event$touches$0$targ.closest(dataItemSelector)) === null || _event$touches$0$targ === undefined ? undefined : _event$touches$0$targ.getAttribute('data-n'));
|
|
12042
|
+
const endTouchElemNumber = Number((_event$touches$1$targ = event.touches[1].target) === null || _event$touches$1$targ === undefined || (_event$touches$1$targ = _event$touches$1$targ.closest(dataItemSelector)) === null || _event$touches$1$targ === undefined ? undefined : _event$touches$1$targ.getAttribute('data-n'));
|
|
11995
12043
|
if (Number.isNaN(startTouchElemNumber) || Number.isNaN(startTouchElemNumber)) {
|
|
11996
12044
|
doSelect();
|
|
11997
12045
|
return;
|
|
@@ -12325,9 +12373,6 @@ const RowColRoot = styled('div', {
|
|
|
12325
12373
|
styles
|
|
12326
12374
|
} = _ref4;
|
|
12327
12375
|
const _styles$content = styles.content,
|
|
12328
|
-
{
|
|
12329
|
-
backgroundColor: _
|
|
12330
|
-
} = _styles$content,
|
|
12331
12376
|
contentFontStyles = _objectWithoutProperties(_styles$content, _excluded$6);
|
|
12332
12377
|
const rowSelectionStyle = getRowSelectionStyle({
|
|
12333
12378
|
theme,
|
|
@@ -12873,6 +12918,7 @@ function Histogram(_ref) {
|
|
|
12873
12918
|
}
|
|
12874
12919
|
const width = getBarWidth({
|
|
12875
12920
|
qFrequency,
|
|
12921
|
+
checkboxes,
|
|
12876
12922
|
frequencyMax
|
|
12877
12923
|
});
|
|
12878
12924
|
return /*#__PURE__*/React__default.createElement(Box, {
|
|
@@ -12890,7 +12936,7 @@ function Frequency(_ref) {
|
|
|
12890
12936
|
dense,
|
|
12891
12937
|
showGray
|
|
12892
12938
|
} = _ref;
|
|
12893
|
-
const frequencyText = getFrequencyText(cell === null || cell ===
|
|
12939
|
+
const frequencyText = getFrequencyText(cell === null || cell === undefined ? undefined : cell.qFrequency);
|
|
12894
12940
|
return /*#__PURE__*/React__default.createElement(Grid, {
|
|
12895
12941
|
item: true,
|
|
12896
12942
|
style: {
|
|
@@ -13017,17 +13063,17 @@ const KEYS = Object.freeze({
|
|
|
13017
13063
|
});
|
|
13018
13064
|
|
|
13019
13065
|
function removeInnnerTabStops(container) {
|
|
13020
|
-
container === null || container ===
|
|
13066
|
+
container === null || container === undefined || container.querySelectorAll('[tabIndex="0"]').forEach(elm => {
|
|
13021
13067
|
elm.setAttribute('tabIndex', -1);
|
|
13022
13068
|
});
|
|
13023
13069
|
}
|
|
13024
13070
|
function removeLastFocused(container) {
|
|
13025
|
-
container === null || container ===
|
|
13071
|
+
container === null || container === undefined || container.querySelectorAll('.last-focused').forEach(elm => {
|
|
13026
13072
|
elm.classList.remove('last-focused');
|
|
13027
13073
|
});
|
|
13028
13074
|
}
|
|
13029
13075
|
function getVizCell(container) {
|
|
13030
|
-
return (container === null || container ===
|
|
13076
|
+
return (container === null || container === undefined ? undefined : container.closest('.njs-cell')) || (container === null || container === undefined ? undefined : container.closest('.qv-gridcell')) || (container === null || container === undefined ? undefined : container.closest('.qv-gs-listbox'));
|
|
13031
13077
|
}
|
|
13032
13078
|
|
|
13033
13079
|
// Emulate the keyboard hook, until we support it in the Listbox.
|
|
@@ -13050,7 +13096,7 @@ function useTempKeyboard(_ref) {
|
|
|
13050
13096
|
return;
|
|
13051
13097
|
}
|
|
13052
13098
|
setKeyboardActive(false);
|
|
13053
|
-
const vizCell = getVizCell(containerRef.current) || ((_containerRef$current = containerRef.current) === null || _containerRef$current ===
|
|
13099
|
+
const vizCell = getVizCell(containerRef.current) || ((_containerRef$current = containerRef.current) === null || _containerRef$current === undefined ? undefined : _containerRef$current.parentElement);
|
|
13054
13100
|
removeInnnerTabStops(containerRef.current);
|
|
13055
13101
|
removeLastFocused(containerRef.current);
|
|
13056
13102
|
if (resetFocus && vizCell) {
|
|
@@ -13066,22 +13112,22 @@ function useTempKeyboard(_ref) {
|
|
|
13066
13112
|
}
|
|
13067
13113
|
setKeyboardActive(true);
|
|
13068
13114
|
const c = containerRef.current;
|
|
13069
|
-
const searchField = c === null || c ===
|
|
13070
|
-
const lastSelectedRow = c === null || c ===
|
|
13071
|
-
const firstRowElement = c === null || c ===
|
|
13072
|
-
const confirmButton = c === null || c ===
|
|
13073
|
-
const unlockCoverButton = c === null || c ===
|
|
13074
|
-
const cyclicButton = c === null || c ===
|
|
13115
|
+
const searchField = c === null || c === undefined ? undefined : c.querySelector('.search input');
|
|
13116
|
+
const lastSelectedRow = c === null || c === undefined ? undefined : c.querySelector('.value.last-focused');
|
|
13117
|
+
const firstRowElement = c === null || c === undefined ? undefined : c.querySelector('.value.selector, .value');
|
|
13118
|
+
const confirmButton = c === null || c === undefined ? undefined : c.querySelector('.actions-toolbar-default-actions .actions-toolbar-confirm');
|
|
13119
|
+
const unlockCoverButton = c === null || c === undefined ? undefined : c.querySelector('#listbox-unlock-button');
|
|
13120
|
+
const cyclicButton = c === null || c === undefined ? undefined : c.querySelector('.listbox-cyclic-button');
|
|
13075
13121
|
const elementToFocus = cyclicButton || searchField || lastSelectedRow || firstRowElement || unlockCoverButton || confirmButton;
|
|
13076
|
-
elementToFocus === null || elementToFocus ===
|
|
13077
|
-
elementToFocus === null || elementToFocus ===
|
|
13122
|
+
elementToFocus === null || elementToFocus === undefined || elementToFocus.setAttribute('tabIndex', 0);
|
|
13123
|
+
elementToFocus === null || elementToFocus === undefined || elementToFocus.focus();
|
|
13078
13124
|
},
|
|
13079
13125
|
focusSelection() {
|
|
13080
13126
|
const unlockCoverButton = document.querySelector('#listbox-unlock-button');
|
|
13081
13127
|
const confirmButton = document.querySelector('.actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)');
|
|
13082
13128
|
const btnToFocus = unlockCoverButton || confirmButton;
|
|
13083
|
-
btnToFocus === null || btnToFocus ===
|
|
13084
|
-
btnToFocus === null || btnToFocus ===
|
|
13129
|
+
btnToFocus === null || btnToFocus === undefined || btnToFocus.setAttribute('tabIndex', 0);
|
|
13130
|
+
btnToFocus === null || btnToFocus === undefined || btnToFocus.focus();
|
|
13085
13131
|
return btnToFocus;
|
|
13086
13132
|
}
|
|
13087
13133
|
};
|
|
@@ -13090,24 +13136,24 @@ function useTempKeyboard(_ref) {
|
|
|
13090
13136
|
|
|
13091
13137
|
const getElementIndex = currentTarget => +currentTarget.getAttribute('data-n');
|
|
13092
13138
|
const focusSearch = container => {
|
|
13093
|
-
const searchField = container === null || container ===
|
|
13094
|
-
searchField === null || searchField ===
|
|
13139
|
+
const searchField = container === null || container === undefined ? undefined : container.querySelector('.search input');
|
|
13140
|
+
searchField === null || searchField === undefined || searchField.focus();
|
|
13095
13141
|
return searchField;
|
|
13096
13142
|
};
|
|
13097
13143
|
const focusRow = container => {
|
|
13098
|
-
const lastFocusedRow = container === null || container ===
|
|
13099
|
-
const selectorRow = container === null || container ===
|
|
13100
|
-
const row = container === null || container ===
|
|
13144
|
+
const lastFocusedRow = container === null || container === undefined ? undefined : container.querySelector('.value.last-focused');
|
|
13145
|
+
const selectorRow = container === null || container === undefined ? undefined : container.querySelector('.value.selector');
|
|
13146
|
+
const row = container === null || container === undefined ? undefined : container.querySelector('.value');
|
|
13101
13147
|
const rowToFocus = lastFocusedRow || selectorRow || row;
|
|
13102
|
-
rowToFocus === null || rowToFocus ===
|
|
13103
|
-
rowToFocus === null || rowToFocus ===
|
|
13148
|
+
rowToFocus === null || rowToFocus === undefined || rowToFocus.setAttribute('tabIndex', 0);
|
|
13149
|
+
rowToFocus === null || rowToFocus === undefined || rowToFocus.focus();
|
|
13104
13150
|
removeLastFocused(container);
|
|
13105
13151
|
return rowToFocus;
|
|
13106
13152
|
};
|
|
13107
13153
|
const focusCyclicButton = container => {
|
|
13108
|
-
const button = container === null || container ===
|
|
13109
|
-
button === null || button ===
|
|
13110
|
-
button === null || button ===
|
|
13154
|
+
const button = container === null || container === undefined ? undefined : container.querySelector('.listbox-cyclic-button:not(:disabled)');
|
|
13155
|
+
button === null || button === undefined || button.setAttribute('tabIndex', 0);
|
|
13156
|
+
button === null || button === undefined || button.focus();
|
|
13111
13157
|
return button;
|
|
13112
13158
|
};
|
|
13113
13159
|
const blur$1 = (event, keyboard) => {
|
|
@@ -13119,7 +13165,7 @@ const blur$1 = (event, keyboard) => {
|
|
|
13119
13165
|
const isFocusedOnListbox = target.classList.contains('listbox-container');
|
|
13120
13166
|
const container = currentTarget.closest('.listbox-container');
|
|
13121
13167
|
const vizCell = getVizCell(container);
|
|
13122
|
-
const isSingleListbox = (vizCell === null || vizCell ===
|
|
13168
|
+
const isSingleListbox = (vizCell === null || vizCell === undefined ? undefined : vizCell.querySelectorAll('.listbox-container').length) === 1;
|
|
13123
13169
|
if (isFocusedOnListbox || isSingleListbox) {
|
|
13124
13170
|
// Move the focus from listbox container to the viz container.
|
|
13125
13171
|
keyboard.blur(true);
|
|
@@ -13136,7 +13182,7 @@ const blur$1 = (event, keyboard) => {
|
|
|
13136
13182
|
keyboard.blur();
|
|
13137
13183
|
const c = currentTarget.closest('.listbox-container');
|
|
13138
13184
|
c.setAttribute('tabIndex', -1);
|
|
13139
|
-
c === null || c ===
|
|
13185
|
+
c === null || c === undefined || c.focus();
|
|
13140
13186
|
}
|
|
13141
13187
|
};
|
|
13142
13188
|
|
|
@@ -13209,11 +13255,11 @@ function getRowsKeyboardNavigation(_ref) {
|
|
|
13209
13255
|
const getElement = function (keyCode, elm) {
|
|
13210
13256
|
let next = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
13211
13257
|
if (keyCode === KEYS.ARROW_LEFT || keyCode === KEYS.ARROW_RIGHT || !(typeof rowIndex === 'number' && typeof columnIndex === 'number')) {
|
|
13212
|
-
const parentElm = elm === null || elm ===
|
|
13213
|
-
return parentElm === null || parentElm ===
|
|
13258
|
+
const parentElm = elm === null || elm === undefined ? undefined : elm.parentElement[next ? 'nextElementSibling' : 'previousElementSibling'];
|
|
13259
|
+
return parentElm === null || parentElm === undefined ? undefined : parentElm.querySelector('[role]');
|
|
13214
13260
|
}
|
|
13215
|
-
const gridElm = elm === null || elm ===
|
|
13216
|
-
const numCells = gridElm === null || gridElm ===
|
|
13261
|
+
const gridElm = elm === null || elm === undefined ? undefined : elm.parentElement.parentElement;
|
|
13262
|
+
const numCells = gridElm === null || gridElm === undefined ? undefined : gridElm.childElementCount;
|
|
13217
13263
|
if (numCells) {
|
|
13218
13264
|
const nextIndex = findNextItemIndex({
|
|
13219
13265
|
rowIndex,
|
|
@@ -13224,8 +13270,8 @@ function getRowsKeyboardNavigation(_ref) {
|
|
|
13224
13270
|
keyCode,
|
|
13225
13271
|
numCells
|
|
13226
13272
|
});
|
|
13227
|
-
const nextElm = elm === null || elm ===
|
|
13228
|
-
return nextElm === null || nextElm ===
|
|
13273
|
+
const nextElm = elm === null || elm === undefined ? undefined : elm.parentElement.parentElement.children[nextIndex];
|
|
13274
|
+
return nextElm === null || nextElm === undefined ? undefined : nextElm.querySelector('[role]');
|
|
13229
13275
|
}
|
|
13230
13276
|
return undefined;
|
|
13231
13277
|
};
|
|
@@ -13254,7 +13300,7 @@ function getRowsKeyboardNavigation(_ref) {
|
|
|
13254
13300
|
// TODO: use a store to keep track of this row.
|
|
13255
13301
|
currentTarget.classList.add('last-focused'); // so that we can go back here when we tab back
|
|
13256
13302
|
|
|
13257
|
-
const useDefaultBrowserSupport = !(keyboard !== null && keyboard !==
|
|
13303
|
+
const useDefaultBrowserSupport = !(keyboard !== null && keyboard !== undefined && keyboard.enabled);
|
|
13258
13304
|
if (useDefaultBrowserSupport) {
|
|
13259
13305
|
if (!inSelection) return;
|
|
13260
13306
|
keyboard.focusSelection();
|
|
@@ -13329,18 +13375,18 @@ function getRowsKeyboardNavigation(_ref) {
|
|
|
13329
13375
|
case KEYS.HOME:
|
|
13330
13376
|
focusListItems.setFirst(true);
|
|
13331
13377
|
if (ctrlKey) {
|
|
13332
|
-
setScrollPosition === null || setScrollPosition ===
|
|
13378
|
+
setScrollPosition === null || setScrollPosition === undefined || setScrollPosition('overflowStart');
|
|
13333
13379
|
break;
|
|
13334
13380
|
}
|
|
13335
|
-
setScrollPosition === null || setScrollPosition ===
|
|
13381
|
+
setScrollPosition === null || setScrollPosition === undefined || setScrollPosition('start');
|
|
13336
13382
|
break;
|
|
13337
13383
|
case KEYS.END:
|
|
13338
13384
|
focusListItems.setLast(true);
|
|
13339
13385
|
if (ctrlKey) {
|
|
13340
|
-
setScrollPosition === null || setScrollPosition ===
|
|
13386
|
+
setScrollPosition === null || setScrollPosition === undefined || setScrollPosition('overflowEnd');
|
|
13341
13387
|
break;
|
|
13342
13388
|
}
|
|
13343
|
-
setScrollPosition === null || setScrollPosition ===
|
|
13389
|
+
setScrollPosition === null || setScrollPosition === undefined || setScrollPosition('end');
|
|
13344
13390
|
break;
|
|
13345
13391
|
case KEYS.A:
|
|
13346
13392
|
if (ctrlKey || metaKey) {
|
|
@@ -13373,7 +13419,7 @@ function getValueTextAlign(_ref) {
|
|
|
13373
13419
|
cell,
|
|
13374
13420
|
textAlign
|
|
13375
13421
|
} = _ref;
|
|
13376
|
-
const isNumeric = !['NaN', undefined].includes(cell === null || cell ===
|
|
13422
|
+
const isNumeric = !['NaN', undefined].includes(cell === null || cell === undefined ? undefined : cell.qNum);
|
|
13377
13423
|
let valueTextAlign;
|
|
13378
13424
|
const isAutoTextAlign = !textAlign || textAlign.auto;
|
|
13379
13425
|
const dirToTextAlignMap = {
|
|
@@ -13387,7 +13433,7 @@ function getValueTextAlign(_ref) {
|
|
|
13387
13433
|
valueTextAlign = direction === 'rtl' ? 'left' : 'right';
|
|
13388
13434
|
}
|
|
13389
13435
|
} else {
|
|
13390
|
-
valueTextAlign = (textAlign === null || textAlign ===
|
|
13436
|
+
valueTextAlign = (textAlign === null || textAlign === undefined ? undefined : textAlign.align) || 'left';
|
|
13391
13437
|
}
|
|
13392
13438
|
const ALLOWED_OPTIONS = ['left', 'center', 'right'];
|
|
13393
13439
|
return ALLOWED_OPTIONS.includes(valueTextAlign) ? valueTextAlign : 'left';
|
|
@@ -13533,18 +13579,18 @@ function RowColumn(_ref) {
|
|
|
13533
13579
|
rowIndex,
|
|
13534
13580
|
columnIndex,
|
|
13535
13581
|
layoutOrder
|
|
13536
|
-
})), [actions, keyboard === null || keyboard ===
|
|
13582
|
+
})), [actions, keyboard === null || keyboard === undefined ? undefined : keyboard.innerTabStops, rowCount, columnCount, rowIndex, columnIndex, layoutOrder]);
|
|
13537
13583
|
const cell = useMemo$1(() => getCellFromPages({
|
|
13538
13584
|
pages,
|
|
13539
13585
|
cellIndex
|
|
13540
13586
|
}), [pages, cellIndex]);
|
|
13541
|
-
const isSelected = (cell === null || cell ===
|
|
13587
|
+
const isSelected = (cell === null || cell === undefined ? undefined : cell.qState) === 'S' || (cell === null || cell === undefined ? undefined : cell.qState) === 'XS' || (cell === null || cell === undefined ? undefined : cell.qState) === 'L' || (cell === null || cell === undefined ? undefined : cell.qState) === 'XL';
|
|
13542
13588
|
const classArr = useMemo$1(() => getValueStateClasses({
|
|
13543
13589
|
column,
|
|
13544
13590
|
histogram,
|
|
13545
13591
|
cell,
|
|
13546
13592
|
showGray
|
|
13547
|
-
}), [cell === null || cell ===
|
|
13593
|
+
}), [cell === null || cell === undefined ? undefined : cell.qState, histogram, dense]);
|
|
13548
13594
|
const preventContextMenu = useCallback(event => {
|
|
13549
13595
|
event.preventDefault();
|
|
13550
13596
|
}, [checkboxes]);
|
|
@@ -13557,11 +13603,11 @@ function RowColumn(_ref) {
|
|
|
13557
13603
|
return null; // prevent rendering empty rows
|
|
13558
13604
|
}
|
|
13559
13605
|
const isGridCol = dataLayout === 'grid' && layoutOrder === 'column';
|
|
13560
|
-
const label = (_cell$qText = cell === null || cell ===
|
|
13606
|
+
const label = (_cell$qText = cell === null || cell === undefined ? undefined : cell.qText) !== null && _cell$qText !== undefined ? _cell$qText : '';
|
|
13561
13607
|
// Search highlights. Split up labelText span into several and add the highlighted class to matching sub-strings.
|
|
13562
13608
|
|
|
13563
13609
|
let labels;
|
|
13564
|
-
if ((_cell$qHighlightRange = cell.qHighlightRanges) !== null && _cell$qHighlightRange !==
|
|
13610
|
+
if ((_cell$qHighlightRange = cell.qHighlightRanges) !== null && _cell$qHighlightRange !== undefined && (_cell$qHighlightRange = _cell$qHighlightRange.qRanges) !== null && _cell$qHighlightRange !== undefined && _cell$qHighlightRange.length) {
|
|
13565
13611
|
const ranges = cell.qHighlightRanges.qRanges.sort((a, b) => a.qCharPos - b.qCharPos) || [];
|
|
13566
13612
|
labels = getSegmentsFromRanges(label, ranges);
|
|
13567
13613
|
}
|
|
@@ -13634,11 +13680,11 @@ function RowColumn(_ref) {
|
|
|
13634
13680
|
onTouchEnd: onTouchEnd,
|
|
13635
13681
|
onContextMenu: preventContextMenu,
|
|
13636
13682
|
tabIndex: isFirstElement && keyboard.innerTabStops ? 0 : -1,
|
|
13637
|
-
"data-n": cell === null || cell ===
|
|
13683
|
+
"data-n": cell === null || cell === undefined ? undefined : cell.qElemNumber,
|
|
13638
13684
|
direction: direction,
|
|
13639
13685
|
fillHeight: fillHeight
|
|
13640
|
-
}, (cell === null || cell ===
|
|
13641
|
-
qFrequency: cell === null || cell ===
|
|
13686
|
+
}, (cell === null || cell === undefined ? undefined : cell.qFrequency) && /*#__PURE__*/React__default.createElement(Histogram, {
|
|
13687
|
+
qFrequency: cell === null || cell === undefined ? undefined : cell.qFrequency,
|
|
13642
13688
|
histogram: histogram,
|
|
13643
13689
|
checkboxes: checkboxes,
|
|
13644
13690
|
isSelected: isSelected,
|
|
@@ -13758,7 +13804,7 @@ function areInputsEqual(newInputs, lastInputs) {
|
|
|
13758
13804
|
}
|
|
13759
13805
|
|
|
13760
13806
|
function memoizeOne(resultFn, isEqual) {
|
|
13761
|
-
if (isEqual ===
|
|
13807
|
+
if (isEqual === undefined) { isEqual = areInputsEqual; }
|
|
13762
13808
|
var lastThis;
|
|
13763
13809
|
var lastArgs = [];
|
|
13764
13810
|
var lastResult;
|
|
@@ -13811,7 +13857,7 @@ function requestTimeout(callback, delay) {
|
|
|
13811
13857
|
var size = -1; // This utility copied from "dom-helpers" package.
|
|
13812
13858
|
|
|
13813
13859
|
function getScrollbarSize(recalculate) {
|
|
13814
|
-
if (recalculate ===
|
|
13860
|
+
if (recalculate === undefined) {
|
|
13815
13861
|
recalculate = false;
|
|
13816
13862
|
}
|
|
13817
13863
|
|
|
@@ -13836,7 +13882,7 @@ var cachedRTLResult = null; // TRICKY According to the spec, scrollLeft should b
|
|
|
13836
13882
|
// If it does not match, then we can assume a non-standard RTL scroll implementation.
|
|
13837
13883
|
|
|
13838
13884
|
function getRTLOffsetType(recalculate) {
|
|
13839
|
-
if (recalculate ===
|
|
13885
|
+
if (recalculate === undefined) {
|
|
13840
13886
|
recalculate = false;
|
|
13841
13887
|
}
|
|
13842
13888
|
|
|
@@ -13912,7 +13958,7 @@ function createGridComponent(_ref2) {
|
|
|
13912
13958
|
_this = _PureComponent.call(this, props) || this;
|
|
13913
13959
|
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
|
|
13914
13960
|
_this._resetIsScrollingTimeoutId = null;
|
|
13915
|
-
_this._outerRef =
|
|
13961
|
+
_this._outerRef = undefined;
|
|
13916
13962
|
_this.state = {
|
|
13917
13963
|
instance: _assertThisInitialized(_this),
|
|
13918
13964
|
isScrolling: false,
|
|
@@ -13922,7 +13968,7 @@ function createGridComponent(_ref2) {
|
|
|
13922
13968
|
scrollUpdateWasRequested: false,
|
|
13923
13969
|
verticalScrollDirection: 'forward'
|
|
13924
13970
|
};
|
|
13925
|
-
_this._callOnItemsRendered =
|
|
13971
|
+
_this._callOnItemsRendered = undefined;
|
|
13926
13972
|
_this._callOnItemsRendered = memoizeOne(function (overscanColumnStartIndex, overscanColumnStopIndex, overscanRowStartIndex, overscanRowStopIndex, visibleColumnStartIndex, visibleColumnStopIndex, visibleRowStartIndex, visibleRowStopIndex) {
|
|
13927
13973
|
return _this.props.onItemsRendered({
|
|
13928
13974
|
overscanColumnStartIndex: overscanColumnStartIndex,
|
|
@@ -13935,7 +13981,7 @@ function createGridComponent(_ref2) {
|
|
|
13935
13981
|
visibleRowStopIndex: visibleRowStopIndex
|
|
13936
13982
|
});
|
|
13937
13983
|
});
|
|
13938
|
-
_this._callOnScroll =
|
|
13984
|
+
_this._callOnScroll = undefined;
|
|
13939
13985
|
_this._callOnScroll = memoizeOne(function (scrollLeft, scrollTop, horizontalScrollDirection, verticalScrollDirection, scrollUpdateWasRequested) {
|
|
13940
13986
|
return _this.props.onScroll({
|
|
13941
13987
|
horizontalScrollDirection: horizontalScrollDirection,
|
|
@@ -13945,7 +13991,7 @@ function createGridComponent(_ref2) {
|
|
|
13945
13991
|
scrollUpdateWasRequested: scrollUpdateWasRequested
|
|
13946
13992
|
});
|
|
13947
13993
|
});
|
|
13948
|
-
_this._getItemStyle =
|
|
13994
|
+
_this._getItemStyle = undefined;
|
|
13949
13995
|
|
|
13950
13996
|
_this._getItemStyle = function (rowIndex, columnIndex) {
|
|
13951
13997
|
var _this$props = _this.props,
|
|
@@ -13977,7 +14023,7 @@ function createGridComponent(_ref2) {
|
|
|
13977
14023
|
return style;
|
|
13978
14024
|
};
|
|
13979
14025
|
|
|
13980
|
-
_this._getItemStyleCache =
|
|
14026
|
+
_this._getItemStyleCache = undefined;
|
|
13981
14027
|
_this._getItemStyleCache = memoizeOne(function (_, __, ___) {
|
|
13982
14028
|
return {};
|
|
13983
14029
|
});
|
|
@@ -14111,7 +14157,7 @@ function createGridComponent(_ref2) {
|
|
|
14111
14157
|
|
|
14112
14158
|
_proto.scrollToItem = function scrollToItem(_ref4) {
|
|
14113
14159
|
var _ref4$align = _ref4.align,
|
|
14114
|
-
align = _ref4$align ===
|
|
14160
|
+
align = _ref4$align === undefined ? 'auto' : _ref4$align,
|
|
14115
14161
|
columnIndex = _ref4.columnIndex,
|
|
14116
14162
|
rowIndex = _ref4.rowIndex;
|
|
14117
14163
|
var _this$props2 = this.props,
|
|
@@ -14222,7 +14268,7 @@ function createGridComponent(_ref2) {
|
|
|
14222
14268
|
innerTagName = _this$props4.innerTagName,
|
|
14223
14269
|
itemData = _this$props4.itemData,
|
|
14224
14270
|
_this$props4$itemKey = _this$props4.itemKey,
|
|
14225
|
-
itemKey = _this$props4$itemKey ===
|
|
14271
|
+
itemKey = _this$props4$itemKey === undefined ? defaultItemKey : _this$props4$itemKey,
|
|
14226
14272
|
outerElementType = _this$props4.outerElementType,
|
|
14227
14273
|
outerTagName = _this$props4.outerTagName,
|
|
14228
14274
|
rowCount = _this$props4.rowCount,
|
|
@@ -14431,7 +14477,7 @@ function createListComponent(_ref) {
|
|
|
14431
14477
|
|
|
14432
14478
|
_this = _PureComponent.call(this, props) || this;
|
|
14433
14479
|
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
|
|
14434
|
-
_this._outerRef =
|
|
14480
|
+
_this._outerRef = undefined;
|
|
14435
14481
|
_this._resetIsScrollingTimeoutId = null;
|
|
14436
14482
|
_this.state = {
|
|
14437
14483
|
instance: _assertThisInitialized(_this),
|
|
@@ -14440,7 +14486,7 @@ function createListComponent(_ref) {
|
|
|
14440
14486
|
scrollOffset: typeof _this.props.initialScrollOffset === 'number' ? _this.props.initialScrollOffset : 0,
|
|
14441
14487
|
scrollUpdateWasRequested: false
|
|
14442
14488
|
};
|
|
14443
|
-
_this._callOnItemsRendered =
|
|
14489
|
+
_this._callOnItemsRendered = undefined;
|
|
14444
14490
|
_this._callOnItemsRendered = memoizeOne(function (overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
|
|
14445
14491
|
return _this.props.onItemsRendered({
|
|
14446
14492
|
overscanStartIndex: overscanStartIndex,
|
|
@@ -14449,7 +14495,7 @@ function createListComponent(_ref) {
|
|
|
14449
14495
|
visibleStopIndex: visibleStopIndex
|
|
14450
14496
|
});
|
|
14451
14497
|
});
|
|
14452
|
-
_this._callOnScroll =
|
|
14498
|
+
_this._callOnScroll = undefined;
|
|
14453
14499
|
_this._callOnScroll = memoizeOne(function (scrollDirection, scrollOffset, scrollUpdateWasRequested) {
|
|
14454
14500
|
return _this.props.onScroll({
|
|
14455
14501
|
scrollDirection: scrollDirection,
|
|
@@ -14457,7 +14503,7 @@ function createListComponent(_ref) {
|
|
|
14457
14503
|
scrollUpdateWasRequested: scrollUpdateWasRequested
|
|
14458
14504
|
});
|
|
14459
14505
|
});
|
|
14460
|
-
_this._getItemStyle =
|
|
14506
|
+
_this._getItemStyle = undefined;
|
|
14461
14507
|
|
|
14462
14508
|
_this._getItemStyle = function (index) {
|
|
14463
14509
|
var _this$props = _this.props,
|
|
@@ -14492,7 +14538,7 @@ function createListComponent(_ref) {
|
|
|
14492
14538
|
return style;
|
|
14493
14539
|
};
|
|
14494
14540
|
|
|
14495
|
-
_this._getItemStyleCache =
|
|
14541
|
+
_this._getItemStyleCache = undefined;
|
|
14496
14542
|
_this._getItemStyleCache = memoizeOne(function (_, __, ___) {
|
|
14497
14543
|
return {};
|
|
14498
14544
|
});
|
|
@@ -14624,7 +14670,7 @@ function createListComponent(_ref) {
|
|
|
14624
14670
|
};
|
|
14625
14671
|
|
|
14626
14672
|
_proto.scrollToItem = function scrollToItem(index, align) {
|
|
14627
|
-
if (align ===
|
|
14673
|
+
if (align === undefined) {
|
|
14628
14674
|
align = 'auto';
|
|
14629
14675
|
}
|
|
14630
14676
|
|
|
@@ -14730,7 +14776,7 @@ function createListComponent(_ref) {
|
|
|
14730
14776
|
itemCount = _this$props5.itemCount,
|
|
14731
14777
|
itemData = _this$props5.itemData,
|
|
14732
14778
|
_this$props5$itemKey = _this$props5.itemKey,
|
|
14733
|
-
itemKey = _this$props5$itemKey ===
|
|
14779
|
+
itemKey = _this$props5$itemKey === undefined ? defaultItemKey$1 : _this$props5$itemKey,
|
|
14734
14780
|
layout = _this$props5.layout,
|
|
14735
14781
|
outerElementType = _this$props5.outerElementType,
|
|
14736
14782
|
outerTagName = _this$props5.outerTagName,
|
|
@@ -15182,13 +15228,13 @@ function getStyledComponents() {
|
|
|
15182
15228
|
}
|
|
15183
15229
|
|
|
15184
15230
|
const getIndex = (renderProps, isColumnLayout) => {
|
|
15185
|
-
if ((renderProps === null || renderProps ===
|
|
15231
|
+
if ((renderProps === null || renderProps === undefined ? undefined : renderProps.visibleRowStopIndex) !== undefined || renderProps.visibleColumnStopIndex !== undefined) {
|
|
15186
15232
|
return isColumnLayout ? renderProps.visibleColumnStopIndex : renderProps.visibleRowStopIndex;
|
|
15187
15233
|
}
|
|
15188
15234
|
return renderProps.visibleStopIndex;
|
|
15189
15235
|
};
|
|
15190
15236
|
const getIsScrollTop = (renderProps, isColumnLayout) => {
|
|
15191
|
-
if ((renderProps === null || renderProps ===
|
|
15237
|
+
if ((renderProps === null || renderProps === undefined ? undefined : renderProps.visibleRowStartIndex) !== undefined || renderProps.visibleColumnStartIndex !== undefined) {
|
|
15192
15238
|
return isColumnLayout ? renderProps.visibleColumnStartIndex === 0 : renderProps.visibleRowStartIndex === 0;
|
|
15193
15239
|
}
|
|
15194
15240
|
return renderProps.visibleStartIndex === 0;
|
|
@@ -15205,7 +15251,7 @@ function handleSetOverflowDisclaimer(_ref) {
|
|
|
15205
15251
|
qCardinal,
|
|
15206
15252
|
dataOffset
|
|
15207
15253
|
} = _ref;
|
|
15208
|
-
const isColumnLayout = (layoutOptions === null || layoutOptions ===
|
|
15254
|
+
const isColumnLayout = (layoutOptions === null || layoutOptions === undefined ? undefined : layoutOptions.layoutOrder) === 'column' && layoutOptions.dataLayout !== 'singleColumn';
|
|
15209
15255
|
const index = getIndex(renderProps, isColumnLayout);
|
|
15210
15256
|
const stopIndex = isColumnLayout ? maxCount.column : maxCount.row;
|
|
15211
15257
|
const count = isColumnLayout ? columnCount : rowCount;
|
|
@@ -15275,7 +15321,7 @@ function getListBoxComponents(_ref) {
|
|
|
15275
15321
|
useIsScrolling: true,
|
|
15276
15322
|
className: classes$9.styledScrollbars
|
|
15277
15323
|
};
|
|
15278
|
-
const isLocked = layout === null || layout ===
|
|
15324
|
+
const isLocked = layout === null || layout === undefined ? undefined : layout.qListObject.qDimensionInfo.qLocked;
|
|
15279
15325
|
const fillHeight = listHeight <= itemHeight;
|
|
15280
15326
|
|
|
15281
15327
|
// Item data common for List and Grid.
|
|
@@ -15293,8 +15339,8 @@ function getListBoxComponents(_ref) {
|
|
|
15293
15339
|
sizes,
|
|
15294
15340
|
actions: {
|
|
15295
15341
|
select,
|
|
15296
|
-
confirm: () => selections === null || selections ===
|
|
15297
|
-
cancel: () => selections === null || selections ===
|
|
15342
|
+
confirm: () => selections === null || selections === undefined ? undefined : selections.confirm.call(selections),
|
|
15343
|
+
cancel: () => selections === null || selections === undefined ? undefined : selections.cancel.call(selections),
|
|
15298
15344
|
setScrollPosition,
|
|
15299
15345
|
selectAll,
|
|
15300
15346
|
onCtrlF
|
|
@@ -15324,7 +15370,7 @@ function getListBoxComponents(_ref) {
|
|
|
15324
15370
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
15325
15371
|
, _extends$6({}, commonComponentOptions, {
|
|
15326
15372
|
dataTestid: "fixed-size-list",
|
|
15327
|
-
scrollDisabled: constraints === null || constraints ===
|
|
15373
|
+
scrollDisabled: constraints === null || constraints === undefined ? undefined : constraints.active,
|
|
15328
15374
|
height: listHeight,
|
|
15329
15375
|
width: width,
|
|
15330
15376
|
itemCount: listCount,
|
|
@@ -15348,7 +15394,7 @@ function getListBoxComponents(_ref) {
|
|
|
15348
15394
|
columnCount,
|
|
15349
15395
|
rowCount,
|
|
15350
15396
|
overflowDisclaimer,
|
|
15351
|
-
qCardinal: layout === null || layout ===
|
|
15397
|
+
qCardinal: layout === null || layout === undefined || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === undefined || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === undefined ? undefined : _layout$qListObject.qCardinal,
|
|
15352
15398
|
dataOffset: local.current.dataOffset
|
|
15353
15399
|
});
|
|
15354
15400
|
onItemsRendered(_objectSpread2({}, renderProps));
|
|
@@ -15392,7 +15438,7 @@ function getListBoxComponents(_ref) {
|
|
|
15392
15438
|
columnCount,
|
|
15393
15439
|
rowCount,
|
|
15394
15440
|
overflowDisclaimer,
|
|
15395
|
-
qCardinal: layout === null || layout ===
|
|
15441
|
+
qCardinal: layout === null || layout === undefined || (_layout$qListObject2 = layout.qListObject) === null || _layout$qListObject2 === undefined || (_layout$qListObject2 = _layout$qListObject2.qDimensionInfo) === null || _layout$qListObject2 === undefined ? undefined : _layout$qListObject2.qCardinal,
|
|
15396
15442
|
dataOffset: local.current.dataOffset
|
|
15397
15443
|
});
|
|
15398
15444
|
onItemsRendered(renderOptions);
|
|
@@ -15401,7 +15447,7 @@ function getListBoxComponents(_ref) {
|
|
|
15401
15447
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
15402
15448
|
, _extends$6({}, commonComponentOptions, {
|
|
15403
15449
|
dataTestid: "fixed-size-grid",
|
|
15404
|
-
scrollDisabled: constraints === null || constraints ===
|
|
15450
|
+
scrollDisabled: constraints === null || constraints === undefined ? undefined : constraints.active,
|
|
15405
15451
|
height: gridHeight,
|
|
15406
15452
|
width: width,
|
|
15407
15453
|
columnCount: columnCount,
|
|
@@ -15435,7 +15481,7 @@ function calculateColumnMode(_ref) {
|
|
|
15435
15481
|
itemMinWidth
|
|
15436
15482
|
} = _ref;
|
|
15437
15483
|
let rowCount;
|
|
15438
|
-
const maxRows = (maxVisibleRows === null || maxVisibleRows ===
|
|
15484
|
+
const maxRows = (maxVisibleRows === null || maxVisibleRows === undefined ? undefined : maxVisibleRows.maxRows) || 3;
|
|
15439
15485
|
const autoRowCount = Math.floor(listHeight / itemHeight);
|
|
15440
15486
|
if (maxVisibleRows.auto !== false) {
|
|
15441
15487
|
rowCount = autoRowCount;
|
|
@@ -15460,11 +15506,11 @@ function calculateRowMode(_ref) {
|
|
|
15460
15506
|
columnAutoWidth,
|
|
15461
15507
|
itemMinWidth
|
|
15462
15508
|
} = _ref;
|
|
15463
|
-
const maxColumns = (maxVisibleColumns === null || maxVisibleColumns ===
|
|
15509
|
+
const maxColumns = (maxVisibleColumns === null || maxVisibleColumns === undefined ? undefined : maxVisibleColumns.maxColumns) || 3;
|
|
15464
15510
|
const innerWidth = containerWidth - SCROLL_BAR_WIDTH;
|
|
15465
15511
|
let columnCount;
|
|
15466
15512
|
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...??
|
|
15467
|
-
if ((maxVisibleColumns === null || maxVisibleColumns ===
|
|
15513
|
+
if ((maxVisibleColumns === null || maxVisibleColumns === undefined ? undefined : maxVisibleColumns.auto) !== false) {
|
|
15468
15514
|
columnCount = autoColumnCount;
|
|
15469
15515
|
} else {
|
|
15470
15516
|
columnCount = Math.min(listCount, maxColumns, autoColumnCount);
|
|
@@ -15547,7 +15593,7 @@ function useListSizes(_ref) {
|
|
|
15547
15593
|
const {
|
|
15548
15594
|
fontSize = '12px',
|
|
15549
15595
|
fontFamily = 'Source sans pro'
|
|
15550
|
-
} = (styles === null || styles ===
|
|
15596
|
+
} = (styles === null || styles === undefined ? undefined : styles.content) || {};
|
|
15551
15597
|
const font = "".concat(fontSize, " ").concat(fontFamily); // font format as supported by HTML canvas
|
|
15552
15598
|
const textWidth = useTextWidth({
|
|
15553
15599
|
text: getMeasureText(layout),
|
|
@@ -15582,7 +15628,7 @@ function useListSizes(_ref) {
|
|
|
15582
15628
|
isGridMode,
|
|
15583
15629
|
dense
|
|
15584
15630
|
});
|
|
15585
|
-
const listHeight = height !== null && height !==
|
|
15631
|
+
const listHeight = height !== null && height !== undefined ? height : 8 * itemHeight;
|
|
15586
15632
|
if (layoutOrder) {
|
|
15587
15633
|
// Modify container width to achieve the exact design with 8px margins on each side (left and right).
|
|
15588
15634
|
let containerWidth = width;
|
|
@@ -15761,7 +15807,7 @@ function getListCount(_ref2) {
|
|
|
15761
15807
|
count,
|
|
15762
15808
|
calculatePagesHeight = false
|
|
15763
15809
|
} = _ref2;
|
|
15764
|
-
const listCount = pages !== null && pages !==
|
|
15810
|
+
const listCount = pages !== null && pages !== undefined && pages.length && calculatePagesHeight ? getCalculatedHeight({
|
|
15765
15811
|
pages,
|
|
15766
15812
|
minimumBatchSize,
|
|
15767
15813
|
count
|
|
@@ -15883,19 +15929,19 @@ const SvgIconRoot = styled('svg', {
|
|
|
15883
15929
|
// for example heroicons uses fill="none" and stroke="currentColor"
|
|
15884
15930
|
fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
|
|
15885
15931
|
flexShrink: 0,
|
|
15886
|
-
transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ?
|
|
15887
|
-
duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ?
|
|
15932
|
+
transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? undefined : _theme$transitions$cr.call(_theme$transitions, 'fill', {
|
|
15933
|
+
duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? undefined : _theme$transitions2.shorter
|
|
15888
15934
|
}),
|
|
15889
15935
|
fontSize: {
|
|
15890
15936
|
inherit: 'inherit',
|
|
15891
|
-
small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ?
|
|
15892
|
-
medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ?
|
|
15893
|
-
large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ?
|
|
15937
|
+
small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? undefined : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
|
|
15938
|
+
medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? undefined : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
|
|
15939
|
+
large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? undefined : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
|
|
15894
15940
|
}[ownerState.fontSize],
|
|
15895
15941
|
// TODO v5 deprecate, v6 remove for sx
|
|
15896
|
-
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ?
|
|
15897
|
-
action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ?
|
|
15898
|
-
disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ?
|
|
15942
|
+
color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? undefined : _palette.main) != null ? _palette$ownerState$c : {
|
|
15943
|
+
action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? undefined : _palette2.active,
|
|
15944
|
+
disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? undefined : _palette3.disabled,
|
|
15899
15945
|
inherit: undefined
|
|
15900
15946
|
}[ownerState.color]
|
|
15901
15947
|
};
|
|
@@ -16026,7 +16072,7 @@ function requireClose () {
|
|
|
16026
16072
|
Object.defineProperty(Close$1, "__esModule", {
|
|
16027
16073
|
value: true
|
|
16028
16074
|
});
|
|
16029
|
-
Close$1.default =
|
|
16075
|
+
Close$1.default = undefined;
|
|
16030
16076
|
var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
|
|
16031
16077
|
var _jsxRuntime = requireJsxRuntime();
|
|
16032
16078
|
Close$1.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
@@ -16113,7 +16159,7 @@ function getScrollIndex(_ref) {
|
|
|
16113
16159
|
} = _ref;
|
|
16114
16160
|
let scrollIndex;
|
|
16115
16161
|
let triggerRerender = false;
|
|
16116
|
-
let newOffset = offset !== null && offset !==
|
|
16162
|
+
let newOffset = offset !== null && offset !== undefined ? offset : 0;
|
|
16117
16163
|
switch (position) {
|
|
16118
16164
|
case 'start':
|
|
16119
16165
|
scrollIndex = 0;
|
|
@@ -16149,7 +16195,7 @@ function getFrequencyAllowed(_ref) {
|
|
|
16149
16195
|
const widthPermitsFreq = itemWidth > FREQUENCY_MIN_SHOW_WIDTH;
|
|
16150
16196
|
const {
|
|
16151
16197
|
frequencyEnabled = false
|
|
16152
|
-
} = (layout === null || layout ===
|
|
16198
|
+
} = (layout === null || layout === undefined ? undefined : layout.qListObject) || {};
|
|
16153
16199
|
const hasValidFreqOption = !['N', undefined].includes(frequencyMode);
|
|
16154
16200
|
return !!(widthPermitsFreq && (hasValidFreqOption || frequencyEnabled));
|
|
16155
16201
|
}
|
|
@@ -16163,7 +16209,7 @@ const escapeField = field => {
|
|
|
16163
16209
|
}
|
|
16164
16210
|
return "[".concat(field.replace(/\]/g, ']]'), "]");
|
|
16165
16211
|
};
|
|
16166
|
-
const needToFetchFrequencyMax = layout => (layout === null || layout ===
|
|
16212
|
+
const needToFetchFrequencyMax = layout => (layout === null || layout === undefined ? undefined : layout.frequencyMax) === 'fetch';
|
|
16167
16213
|
const getFrequencyMaxExpression = field => {
|
|
16168
16214
|
const escapedField = escapeField(field);
|
|
16169
16215
|
return "Max(AGGR(Count(".concat(escapedField, "), ").concat(escapedField, "))");
|
|
@@ -16192,7 +16238,7 @@ const useFrequencyMax = (app, layout) => {
|
|
|
16192
16238
|
fetch();
|
|
16193
16239
|
}, [needFetch && layout]);
|
|
16194
16240
|
return {
|
|
16195
|
-
frequencyMax: needFetch ? frequencyMax : layout === null || layout ===
|
|
16241
|
+
frequencyMax: needFetch ? frequencyMax : layout === null || layout === undefined ? undefined : layout.frequencyMax,
|
|
16196
16242
|
awaitingFrequencyMax
|
|
16197
16243
|
};
|
|
16198
16244
|
};
|
|
@@ -16212,7 +16258,7 @@ function getSRForSelectedState(_ref) {
|
|
|
16212
16258
|
} = _ref;
|
|
16213
16259
|
const {
|
|
16214
16260
|
qStateCounts: s = {}
|
|
16215
|
-
} = (layout === null || layout ===
|
|
16261
|
+
} = (layout === null || layout === undefined || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === undefined ? undefined : _layout$qListObject.qDimensionInfo) || {};
|
|
16216
16262
|
const count = s.qSelected + s.qSelectedExcluded + s.qLocked + s.qLockedExcluded;
|
|
16217
16263
|
let t;
|
|
16218
16264
|
switch (count) {
|
|
@@ -16254,7 +16300,7 @@ function getScreenReaderAssertiveText(_ref2) {
|
|
|
16254
16300
|
translator: translatorDynamic
|
|
16255
16301
|
} = useContext(InstanceContext);
|
|
16256
16302
|
const finalStringArr = [];
|
|
16257
|
-
if (searchInputText !== null && searchInputText !==
|
|
16303
|
+
if (searchInputText !== null && searchInputText !== undefined && searchInputText.length) {
|
|
16258
16304
|
// Add search result text.
|
|
16259
16305
|
const srSearchTranslationString = getSearchTranslationString(listCount);
|
|
16260
16306
|
const srSearchString = translatorDynamic.get(srSearchTranslationString, [listCount]);
|
|
@@ -16269,7 +16315,7 @@ function getScreenReaderAssertiveText(_ref2) {
|
|
|
16269
16315
|
finalStringArr.push(srSelectionValueText);
|
|
16270
16316
|
|
|
16271
16317
|
// Merge texts into one text string, targeting the assertive screen reader.
|
|
16272
|
-
const finalString = finalStringArr.filter(v => !!(v !== null && v !==
|
|
16318
|
+
const finalString = finalStringArr.filter(v => !!(v !== null && v !== undefined && v.length)).join('. ');
|
|
16273
16319
|
return finalString;
|
|
16274
16320
|
}
|
|
16275
16321
|
|
|
@@ -16281,7 +16327,7 @@ function deduceFrequencyMode(pages) {
|
|
|
16281
16327
|
return qMatrix.some(_ref2 => {
|
|
16282
16328
|
var _item$qFrequency;
|
|
16283
16329
|
let [item] = _ref2;
|
|
16284
|
-
return !!((_item$qFrequency = item.qFrequency) !== null && _item$qFrequency !==
|
|
16330
|
+
return !!((_item$qFrequency = item.qFrequency) !== null && _item$qFrequency !== undefined && _item$qFrequency.match('%'));
|
|
16285
16331
|
});
|
|
16286
16332
|
});
|
|
16287
16333
|
const OTHER = '-'; // treat all other as '-' (change later if we need to identify other modes)
|
|
@@ -16340,7 +16386,7 @@ function ListBox(_ref) {
|
|
|
16340
16386
|
const {
|
|
16341
16387
|
checkboxes = checkboxOption,
|
|
16342
16388
|
histogram
|
|
16343
|
-
} = layout !== null && layout !==
|
|
16389
|
+
} = layout !== null && layout !== undefined ? layout : {};
|
|
16344
16390
|
const loaderRef = useRef$1(null);
|
|
16345
16391
|
const local = useRef$1({
|
|
16346
16392
|
queue: [],
|
|
@@ -16366,9 +16412,6 @@ function ListBox(_ref) {
|
|
|
16366
16412
|
postProcessPages,
|
|
16367
16413
|
listData
|
|
16368
16414
|
}),
|
|
16369
|
-
{
|
|
16370
|
-
isLoadingData
|
|
16371
|
-
} = _useItemsLoader,
|
|
16372
16415
|
itemsLoader = _objectWithoutProperties(_useItemsLoader, _excluded$4);
|
|
16373
16416
|
const {
|
|
16374
16417
|
getStoreValue,
|
|
@@ -16383,7 +16426,7 @@ function ListBox(_ref) {
|
|
|
16383
16426
|
show
|
|
16384
16427
|
}));
|
|
16385
16428
|
const [pages, setPages] = useState$1([]);
|
|
16386
|
-
if (itemsLoader !== null && itemsLoader !==
|
|
16429
|
+
if (itemsLoader !== null && itemsLoader !== undefined && itemsLoader.pages) {
|
|
16387
16430
|
selectionState.update({
|
|
16388
16431
|
setPages,
|
|
16389
16432
|
pages: itemsLoader.pages,
|
|
@@ -16391,13 +16434,13 @@ function ListBox(_ref) {
|
|
|
16391
16434
|
layout
|
|
16392
16435
|
});
|
|
16393
16436
|
}
|
|
16394
|
-
const cardinal = layout === null || layout ===
|
|
16395
|
-
if (itemsLoader !== null && itemsLoader !==
|
|
16437
|
+
const cardinal = layout === null || layout === undefined ? undefined : layout.qListObject.qDimensionInfo.qCardinal;
|
|
16438
|
+
if (itemsLoader !== null && itemsLoader !== undefined && itemsLoader.pages.length && !awaitingFrequencyMax || cardinal === 0) {
|
|
16396
16439
|
// All necessary data fetching done - signal rendering done!
|
|
16397
|
-
renderedCallback === null || renderedCallback ===
|
|
16440
|
+
renderedCallback === null || renderedCallback === undefined || renderedCallback();
|
|
16398
16441
|
}
|
|
16399
16442
|
const isItemLoaded = useCallback(index => {
|
|
16400
|
-
if (!(pages !== null && pages !==
|
|
16443
|
+
if (!(pages !== null && pages !== undefined && pages.length) || !local.current.validPages) {
|
|
16401
16444
|
return false;
|
|
16402
16445
|
}
|
|
16403
16446
|
local.current.checkIdx = index;
|
|
@@ -16420,9 +16463,9 @@ function ListBox(_ref) {
|
|
|
16420
16463
|
} = layout || {};
|
|
16421
16464
|
let isRow = true;
|
|
16422
16465
|
if (layoutOptions.dataLayout) {
|
|
16423
|
-
isRow = layoutOptions.dataLayout === 'singleColumn' ? true : (layoutOptions === null || layoutOptions ===
|
|
16466
|
+
isRow = layoutOptions.dataLayout === 'singleColumn' ? true : (layoutOptions === null || layoutOptions === undefined ? undefined : layoutOptions.layoutOrder) === 'row';
|
|
16424
16467
|
}
|
|
16425
|
-
const isGrid = (layoutOptions === null || layoutOptions ===
|
|
16468
|
+
const isGrid = (layoutOptions === null || layoutOptions === undefined ? undefined : layoutOptions.dataLayout) === 'grid';
|
|
16426
16469
|
const scrollToIndex = index => {
|
|
16427
16470
|
const gridIndex = _objectSpread2({}, isRow ? {
|
|
16428
16471
|
rowIndex: index
|
|
@@ -16464,12 +16507,15 @@ function ListBox(_ref) {
|
|
|
16464
16507
|
}, [layout, local.current.dataOffset]);
|
|
16465
16508
|
let minimumBatchSize = DEFAULT_MIN_BATCH_SIZE;
|
|
16466
16509
|
const isVertical = layoutOptions.dataLayout !== 'grid';
|
|
16467
|
-
const count = layout === null || layout ===
|
|
16510
|
+
const count = layout === null || layout === undefined || (_layout$qListObject$q = layout.qListObject.qSize) === null || _layout$qListObject$q === undefined ? undefined : _layout$qListObject$q.qcy;
|
|
16468
16511
|
const unlimitedListCount = getListCount({
|
|
16469
16512
|
pages,
|
|
16470
16513
|
minimumBatchSize,
|
|
16471
16514
|
count,
|
|
16472
|
-
calculatePagesHeight
|
|
16515
|
+
calculatePagesHeight,
|
|
16516
|
+
layoutOptions,
|
|
16517
|
+
model
|
|
16518
|
+
});
|
|
16473
16519
|
let freqIsAllowed = getFrequencyAllowed({
|
|
16474
16520
|
itemWidth: width,
|
|
16475
16521
|
layout,
|
|
@@ -16538,7 +16584,7 @@ function ListBox(_ref) {
|
|
|
16538
16584
|
}, [keyScroll.state.up, keyScroll.state.down, keyScroll.state.scrollPosition]);
|
|
16539
16585
|
const {
|
|
16540
16586
|
textAlign
|
|
16541
|
-
} = (layout === null || layout ===
|
|
16587
|
+
} = (layout === null || layout === undefined ? undefined : layout.qListObject.qDimensionInfo) || {};
|
|
16542
16588
|
const [focusListItem, setFocusListItem] = useState$1({
|
|
16543
16589
|
first: false,
|
|
16544
16590
|
last: false
|
|
@@ -16563,6 +16609,7 @@ function ListBox(_ref) {
|
|
|
16563
16609
|
} = getListBoxComponents({
|
|
16564
16610
|
direction,
|
|
16565
16611
|
layout,
|
|
16612
|
+
height,
|
|
16566
16613
|
width,
|
|
16567
16614
|
checkboxes,
|
|
16568
16615
|
deducedFrequencyMode,
|
|
@@ -16602,7 +16649,7 @@ function ListBox(_ref) {
|
|
|
16602
16649
|
columnWidth,
|
|
16603
16650
|
listHeight,
|
|
16604
16651
|
itemHeight
|
|
16605
|
-
} = sizes
|
|
16652
|
+
} = sizes;
|
|
16606
16653
|
if (!isVertical) {
|
|
16607
16654
|
minimumBatchSize = getHorizontalMinBatchSize({
|
|
16608
16655
|
width,
|
|
@@ -16633,8 +16680,8 @@ function ListBox(_ref) {
|
|
|
16633
16680
|
dismiss: () => setOverflowDisclaimer(state => _objectSpread2(_objectSpread2({}, state), {}, {
|
|
16634
16681
|
dismissed: true
|
|
16635
16682
|
})),
|
|
16636
|
-
parentWidth: loaderRef === null || loaderRef ===
|
|
16637
|
-
dense: layoutOptions === null || layoutOptions ===
|
|
16683
|
+
parentWidth: loaderRef === null || loaderRef === undefined || (_loaderRef$current = loaderRef.current) === null || _loaderRef$current === undefined || (_loaderRef$current = _loaderRef$current._listRef) === null || _loaderRef$current === undefined || (_loaderRef$current = _loaderRef$current.props) === null || _loaderRef$current === undefined ? undefined : _loaderRef$current.width,
|
|
16684
|
+
dense: layoutOptions === null || layoutOptions === undefined ? undefined : layoutOptions.dense
|
|
16638
16685
|
}));
|
|
16639
16686
|
}
|
|
16640
16687
|
|
|
@@ -16995,12 +17042,12 @@ const More$1 = React__default.forwardRef((_ref3, ref) => {
|
|
|
16995
17042
|
|
|
16996
17043
|
const getActionButtonIndex = btn => {
|
|
16997
17044
|
const toolbar = btn.closest('#actions-toolbar');
|
|
16998
|
-
const nodeList = toolbar === null || toolbar ===
|
|
17045
|
+
const nodeList = toolbar === null || toolbar === undefined ? undefined : toolbar.querySelectorAll('.njs-cell-action');
|
|
16999
17046
|
return Array.from(nodeList).indexOf(btn);
|
|
17000
17047
|
};
|
|
17001
17048
|
const focusButton = index => {
|
|
17002
17049
|
const toolbar = document.querySelector('#actions-toolbar');
|
|
17003
|
-
const nodeList = toolbar === null || toolbar ===
|
|
17050
|
+
const nodeList = toolbar === null || toolbar === undefined ? undefined : toolbar.querySelectorAll('.njs-cell-action');
|
|
17004
17051
|
if (!nodeList.length) {
|
|
17005
17052
|
return;
|
|
17006
17053
|
}
|
|
@@ -17045,7 +17092,7 @@ function getActionsKeyDownHandler(_ref) {
|
|
|
17045
17092
|
evt.preventDefault(); // prevent scrolling in listbox
|
|
17046
17093
|
break;
|
|
17047
17094
|
case KEYS.TAB:
|
|
17048
|
-
if (keyboardNavigation && focusHandler !== null && focusHandler !==
|
|
17095
|
+
if (keyboardNavigation && focusHandler !== null && focusHandler !== undefined && focusHandler.refocusContent) {
|
|
17049
17096
|
const isTabbingOut = evt.shiftKey && getEnabledButton(false) === evt.target || !evt.shiftKey && getEnabledButton(true) === evt.target;
|
|
17050
17097
|
if (isTabbingOut) {
|
|
17051
17098
|
evt.preventDefault();
|
|
@@ -17169,7 +17216,7 @@ function ActionsToolbar(_ref3) {
|
|
|
17169
17216
|
const [showMoreItems, setShowMoreItems] = useState$1(false);
|
|
17170
17217
|
const popoverAnchorOrigin = {
|
|
17171
17218
|
vertical: 12,
|
|
17172
|
-
horizontal: ((_popover$anchorEl$cli = (_popover$anchorEl = popover.anchorEl) === null || _popover$anchorEl ===
|
|
17219
|
+
horizontal: ((_popover$anchorEl$cli = (_popover$anchorEl = popover.anchorEl) === null || _popover$anchorEl === undefined ? undefined : _popover$anchorEl.clientWidth) !== null && _popover$anchorEl$cli !== undefined ? _popover$anchorEl$cli : 0) - 7
|
|
17173
17220
|
};
|
|
17174
17221
|
const actionsRef = useRef$1();
|
|
17175
17222
|
const moreRef = useRef$1();
|
|
@@ -17197,11 +17244,11 @@ function ActionsToolbar(_ref3) {
|
|
|
17197
17244
|
if (!focusHandler) return;
|
|
17198
17245
|
const focusFirst = () => {
|
|
17199
17246
|
const enabledButton = getEnabledButton(false);
|
|
17200
|
-
enabledButton === null || enabledButton ===
|
|
17247
|
+
enabledButton === null || enabledButton === undefined || enabledButton.focus();
|
|
17201
17248
|
};
|
|
17202
17249
|
const focusLast = () => {
|
|
17203
17250
|
const enabledButton = getEnabledButton(true);
|
|
17204
|
-
enabledButton === null || enabledButton ===
|
|
17251
|
+
enabledButton === null || enabledButton === undefined || enabledButton.focus();
|
|
17205
17252
|
};
|
|
17206
17253
|
focusHandler.on('focus_toolbar_first', focusFirst);
|
|
17207
17254
|
focusHandler.on('focus_toolbar_last', focusLast);
|
|
@@ -17246,7 +17293,7 @@ function ActionsToolbar(_ref3) {
|
|
|
17246
17293
|
sx: {
|
|
17247
17294
|
flexDirection: isRtl ? 'row-reverse' : 'row'
|
|
17248
17295
|
}
|
|
17249
|
-
}, (extraItems === null || extraItems ===
|
|
17296
|
+
}, (extraItems === null || extraItems === undefined ? undefined : extraItems.length) && /*#__PURE__*/React__default.createElement(ActionsGroup, {
|
|
17250
17297
|
className: "actions-toolbar-extra-actions",
|
|
17251
17298
|
actions: extraItems,
|
|
17252
17299
|
isRtl: isRtl
|
|
@@ -17318,7 +17365,7 @@ var SearchIcon = props => SvgIcon$1(search(props));
|
|
|
17318
17365
|
const MAX_SEARCH_LENGTH = 64000;
|
|
17319
17366
|
const TREE_PATH = '/qListObjectDef';
|
|
17320
17367
|
const WILDCARD = '**';
|
|
17321
|
-
const limitSearchLength = val => val === null || val ===
|
|
17368
|
+
const limitSearchLength = val => val === null || val === undefined ? undefined : val.substring(0, MAX_SEARCH_LENGTH);
|
|
17322
17369
|
const StyledOutlinedInput = styled(OutlinedInput, {
|
|
17323
17370
|
shouldForwardProp: p => !['styles', 'dense', 'isRtl'].includes(p)
|
|
17324
17371
|
})(_ref => {
|
|
@@ -17536,7 +17583,7 @@ function ListBoxSearch(_ref2, ref) {
|
|
|
17536
17583
|
};
|
|
17537
17584
|
const focusOnInput = () => {
|
|
17538
17585
|
var _inputRef$current;
|
|
17539
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current ===
|
|
17586
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === undefined || _inputRef$current.focus();
|
|
17540
17587
|
};
|
|
17541
17588
|
const onClearSearch = () => {
|
|
17542
17589
|
abortSearch();
|
|
@@ -17651,7 +17698,7 @@ function createAppSelections(_ref) {
|
|
|
17651
17698
|
objectSelections
|
|
17652
17699
|
} = _ref2;
|
|
17653
17700
|
// Quick return if it's already in modal
|
|
17654
|
-
if (objectSelections === ((_modalObjectStore$get = modalObjectStore.get(key)) === null || _modalObjectStore$get ===
|
|
17701
|
+
if (objectSelections === ((_modalObjectStore$get = modalObjectStore.get(key)) === null || _modalObjectStore$get === undefined ? undefined : _modalObjectStore$get.objectSelections)) {
|
|
17655
17702
|
return;
|
|
17656
17703
|
}
|
|
17657
17704
|
|
|
@@ -17700,7 +17747,7 @@ function createAppSelections(_ref) {
|
|
|
17700
17747
|
isModal(objectSelections) {
|
|
17701
17748
|
var _modalObjectStore$get2;
|
|
17702
17749
|
// TODO check model state
|
|
17703
|
-
return objectSelections ? ((_modalObjectStore$get2 = modalObjectStore.get(key)) === null || _modalObjectStore$get2 ===
|
|
17750
|
+
return objectSelections ? ((_modalObjectStore$get2 = modalObjectStore.get(key)) === null || _modalObjectStore$get2 === undefined ? undefined : _modalObjectStore$get2.objectSelections) === objectSelections : !!modalObjectStore.get(key);
|
|
17704
17751
|
},
|
|
17705
17752
|
forward() {
|
|
17706
17753
|
return appModal.end().then(() => app.forward());
|
|
@@ -17773,7 +17820,7 @@ function createHandler(_ref) {
|
|
|
17773
17820
|
|
|
17774
17821
|
// Resolve elements and filter out containers which do not exist.
|
|
17775
17822
|
const containers = elements.map(item => {
|
|
17776
|
-
const elm = typeof item === 'string' ? document.querySelector(item) : item === null || item ===
|
|
17823
|
+
const elm = typeof item === 'string' ? document.querySelector(item) : item === null || item === undefined ? undefined : item.current;
|
|
17777
17824
|
return elm;
|
|
17778
17825
|
}).filter(elm => !!elm && !!document.contains(elm));
|
|
17779
17826
|
if (!containers.length) {
|
|
@@ -17971,12 +18018,12 @@ const getClickOutFuncs = _ref3 => {
|
|
|
17971
18018
|
activateClickOut() {
|
|
17972
18019
|
var _options$onSelectionA;
|
|
17973
18020
|
document.addEventListener('mousedown', handler);
|
|
17974
|
-
options === null || options ===
|
|
18021
|
+
options === null || options === undefined || (_options$onSelectionA = options.onSelectionActivated) === null || _options$onSelectionA === undefined || _options$onSelectionA.call(options);
|
|
17975
18022
|
},
|
|
17976
18023
|
deactivateClickOut() {
|
|
17977
18024
|
var _options$onSelectionD;
|
|
17978
18025
|
document.removeEventListener('mousedown', handler);
|
|
17979
|
-
options === null || options ===
|
|
18026
|
+
options === null || options === undefined || (_options$onSelectionD = options.onSelectionDeactivated) === null || _options$onSelectionD === undefined || _options$onSelectionD.call(options);
|
|
17980
18027
|
}
|
|
17981
18028
|
};
|
|
17982
18029
|
};
|
|
@@ -18060,14 +18107,14 @@ function selectionState() {
|
|
|
18060
18107
|
this.clearItemStates(false);
|
|
18061
18108
|
}
|
|
18062
18109
|
if (state.enginePages !== pages && pages !== undefined) {
|
|
18063
|
-
state.enginePages = pages !== null && pages !==
|
|
18110
|
+
state.enginePages = pages !== null && pages !== undefined ? pages : [];
|
|
18064
18111
|
state.selectedInEngine = getSelectedValues(pages);
|
|
18065
18112
|
state.selectableValuesUpdating = false;
|
|
18066
18113
|
state.triggerStateChanged();
|
|
18067
18114
|
}
|
|
18068
18115
|
state.isSingleSelect = isSingleSelect;
|
|
18069
18116
|
state.selectDisabled = selectDisabled || state.selectDisabled;
|
|
18070
|
-
state.isDimCalculated = (_layout$qListObject$q = layout === null || layout ===
|
|
18117
|
+
state.isDimCalculated = (_layout$qListObject$q = layout === null || layout === undefined || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === undefined || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === undefined ? undefined : _layout$qListObject.qIsCalculated) !== null && _layout$qListObject$q !== undefined ? _layout$qListObject$q : false;
|
|
18071
18118
|
},
|
|
18072
18119
|
allowedToSelect() {
|
|
18073
18120
|
if (state.selectDisabled()) {
|
|
@@ -18106,7 +18153,7 @@ function selectionState() {
|
|
|
18106
18153
|
if (selected && !additive) {
|
|
18107
18154
|
state.itemStates[elementNumber] = false;
|
|
18108
18155
|
} else if (!selected) {
|
|
18109
|
-
selectedValues === null || selectedValues ===
|
|
18156
|
+
selectedValues === null || selectedValues === undefined || selectedValues.push(elementNumber);
|
|
18110
18157
|
state.itemStates[elementNumber] = true;
|
|
18111
18158
|
}
|
|
18112
18159
|
},
|
|
@@ -18152,10 +18199,10 @@ function selectionState() {
|
|
|
18152
18199
|
const getValue$1 = function (obj, prop) {
|
|
18153
18200
|
var _obj$prop;
|
|
18154
18201
|
let defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
18155
|
-
return (_obj$prop = obj === null || obj ===
|
|
18202
|
+
return (_obj$prop = obj === null || obj === undefined ? undefined : obj[prop]) !== null && _obj$prop !== undefined ? _obj$prop : defaultValue;
|
|
18156
18203
|
};
|
|
18157
18204
|
function hasSelections(layout) {
|
|
18158
|
-
const counts = (layout === null || layout ===
|
|
18205
|
+
const counts = (layout === null || layout === undefined ? undefined : layout.qListObject.qDimensionInfo.qStateCounts) || {};
|
|
18159
18206
|
const totalCounts = getValue$1(counts, 'qSelected', 0) + getValue$1(counts, 'qSelectedExcluded', 0) + getValue$1(counts, 'qLocked', 0) + getValue$1(counts, 'qLockedExcluded', 0);
|
|
18160
18207
|
return totalCounts > 0;
|
|
18161
18208
|
}
|
|
@@ -18166,9 +18213,9 @@ function hasSelections(layout) {
|
|
|
18166
18213
|
* Released under the MIT license.
|
|
18167
18214
|
*/
|
|
18168
18215
|
|
|
18169
|
-
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||"default");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:!0,configurable:!0,writable:!0}):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),!0).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:!1,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=!0;}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=!0;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=!0;return Number.isNaN(+g+y+b+x)&&(v.invalid=!0),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 !1;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 !1;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:!0,configurable:!0,value:t.newValue,writable:!0}):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=!1;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=!1,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 -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.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(-.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 !1;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 !1;if(!t.meta.isContinuous)return !1;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){
|
|
18216
|
+
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||"default");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){
|
|
18170
18217
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
18171
|
-
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
|
|
18218
|
+
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);
|
|
18172
18219
|
|
|
18173
18220
|
const MULTI_REG = /,(?![^(]*\))/;
|
|
18174
18221
|
const SINGLE_REG = /\s(?![^(]*\))/;
|
|
@@ -18278,7 +18325,7 @@ function getSenseServerUrl(app) {
|
|
|
18278
18325
|
let wsUrl;
|
|
18279
18326
|
let protocol;
|
|
18280
18327
|
let isSecure;
|
|
18281
|
-
if (app !== null && app !==
|
|
18328
|
+
if (app !== null && app !== undefined && (_app$session = app.session) !== null && _app$session !== undefined && _app$session.config) {
|
|
18282
18329
|
config = app.session.config;
|
|
18283
18330
|
wsUrl = new URL(config.url);
|
|
18284
18331
|
isSecure = wsUrl.protocol === 'wss:';
|
|
@@ -18290,7 +18337,7 @@ function getSenseServerUrl(app) {
|
|
|
18290
18337
|
function getBackgroundPosition(bgComp) {
|
|
18291
18338
|
var _bgComp$bgImage;
|
|
18292
18339
|
let bkgImagePosition = 'center center';
|
|
18293
|
-
if (bgComp !== null && bgComp !==
|
|
18340
|
+
if (bgComp !== null && bgComp !== undefined && (_bgComp$bgImage = bgComp.bgImage) !== null && _bgComp$bgImage !== undefined && _bgComp$bgImage.position) {
|
|
18294
18341
|
bkgImagePosition = positionToCss[bgComp.bgImage.position];
|
|
18295
18342
|
}
|
|
18296
18343
|
return bkgImagePosition;
|
|
@@ -18298,7 +18345,7 @@ function getBackgroundPosition(bgComp) {
|
|
|
18298
18345
|
function getBackgroundSize(bgComp) {
|
|
18299
18346
|
var _bgComp$bgImage2;
|
|
18300
18347
|
let bkgImageSize = imageSizingToCssProperty.originalSize;
|
|
18301
|
-
const size = bgComp === null || bgComp ===
|
|
18348
|
+
const size = bgComp === null || bgComp === undefined || (_bgComp$bgImage2 = bgComp.bgImage) === null || _bgComp$bgImage2 === undefined ? undefined : _bgComp$bgImage2.sizing;
|
|
18302
18349
|
if (size) {
|
|
18303
18350
|
bkgImageSize = imageSizingToCssProperty[size];
|
|
18304
18351
|
}
|
|
@@ -18308,14 +18355,14 @@ function resolveImageUrl(app, relativeUrl) {
|
|
|
18308
18355
|
return relativeUrl ? getSenseServerUrl(app) + relativeUrl : undefined;
|
|
18309
18356
|
}
|
|
18310
18357
|
function resolveBgImage(bgComp, app) {
|
|
18311
|
-
const bgImageDef = bgComp === null || bgComp ===
|
|
18358
|
+
const bgImageDef = bgComp === null || bgComp === undefined ? undefined : bgComp.bgImage;
|
|
18312
18359
|
if (bgImageDef) {
|
|
18313
18360
|
let url = '';
|
|
18314
18361
|
if (bgImageDef.mode === 'media' || bgComp.useImage === 'media') {
|
|
18315
|
-
const urlObj = bgImageDef === null || bgImageDef ===
|
|
18362
|
+
const urlObj = bgImageDef === null || bgImageDef === undefined ? undefined : bgImageDef.mediaUrl;
|
|
18316
18363
|
const {
|
|
18317
18364
|
qUrl
|
|
18318
|
-
} = (urlObj === null || urlObj ===
|
|
18365
|
+
} = (urlObj === null || urlObj === undefined ? undefined : urlObj.qStaticContentUrl) || {};
|
|
18319
18366
|
url = qUrl ? decodeURIComponent(qUrl) : undefined;
|
|
18320
18367
|
url = resolveImageUrl(app, url);
|
|
18321
18368
|
}
|
|
@@ -18333,27 +18380,27 @@ function resolveBgImage(bgComp, app) {
|
|
|
18333
18380
|
return undefined;
|
|
18334
18381
|
}
|
|
18335
18382
|
function resolveBgColor(comp, theme, objectType) {
|
|
18336
|
-
const bgColor = comp === null || comp ===
|
|
18383
|
+
const bgColor = comp === null || comp === undefined ? undefined : comp.bgColor;
|
|
18337
18384
|
if (bgColor && theme) {
|
|
18338
18385
|
if (bgColor.useExpression || bgColor.useColorExpression) {
|
|
18339
18386
|
return theme.validateColor(bgColor.colorExpression);
|
|
18340
18387
|
}
|
|
18341
18388
|
}
|
|
18342
|
-
return resolveColor(bgColor === null || bgColor ===
|
|
18389
|
+
return resolveColor(bgColor === null || bgColor === undefined ? undefined : bgColor.color, '', 'backgroundColor', theme, objectType);
|
|
18343
18390
|
}
|
|
18344
18391
|
function resolveBorder(comp, theme, objectType) {
|
|
18345
|
-
const borderColor = resolveColor(comp === null || comp ===
|
|
18346
|
-
const borderWidth = (comp === null || comp ===
|
|
18392
|
+
const borderColor = resolveColor(comp === null || comp === undefined ? undefined : comp.borderColor, '', 'borderColor', theme, objectType);
|
|
18393
|
+
const borderWidth = (comp === null || comp === undefined ? undefined : comp.borderWidth) || resolveProperty('', 'borderWidth', theme, objectType);
|
|
18347
18394
|
return borderWidth && borderColor ? "".concat(borderWidth, " solid ").concat(borderColor) : undefined;
|
|
18348
18395
|
}
|
|
18349
18396
|
function resolveBorderRadius(comp, theme, objectType) {
|
|
18350
|
-
return (comp === null || comp ===
|
|
18397
|
+
return (comp === null || comp === undefined ? undefined : comp.borderRadius) || resolveProperty('', 'borderRadius', theme, objectType);
|
|
18351
18398
|
}
|
|
18352
18399
|
function resolveBoxShadow(comp, theme, objectType) {
|
|
18353
18400
|
var _comp$shadow, _comp$shadow2;
|
|
18354
18401
|
const themeBoxShadow = resolveProperty('shadow', 'boxShadow', theme, objectType);
|
|
18355
|
-
const boxShadow = (comp === null || comp ===
|
|
18356
|
-
const boxShadowColor = resolveColor(comp === null || comp ===
|
|
18402
|
+
const boxShadow = (comp === null || comp === undefined || (_comp$shadow = comp.shadow) === null || _comp$shadow === undefined ? undefined : _comp$shadow.boxShadow) || themeBoxShadow;
|
|
18403
|
+
const boxShadowColor = resolveColor(comp === null || comp === undefined || (_comp$shadow2 = comp.shadow) === null || _comp$shadow2 === undefined ? undefined : _comp$shadow2.boxShadowColor, 'shadow', 'boxShadowColor', theme, objectType);
|
|
18357
18404
|
return getFullBoxShadow(boxShadow, themeBoxShadow, boxShadowColor);
|
|
18358
18405
|
}
|
|
18359
18406
|
function unfurlFontStyle(fontStyle, target) {
|
|
@@ -18364,7 +18411,7 @@ function unfurlFontStyle(fontStyle, target) {
|
|
|
18364
18411
|
}
|
|
18365
18412
|
function resolveTextStyle(textComp, target, theme, objectType) {
|
|
18366
18413
|
var _textComp$title;
|
|
18367
|
-
const textProps = (textComp === null || textComp ===
|
|
18414
|
+
const textProps = (textComp === null || textComp === undefined || (_textComp$title = textComp.title) === null || _textComp$title === undefined ? undefined : _textComp$title[target]) || {};
|
|
18368
18415
|
const fontStyle = unfurlFontStyle(textProps.fontStyle, target);
|
|
18369
18416
|
return {
|
|
18370
18417
|
fontFamily: textProps.fontFamily || theme.getStyle("object.".concat(objectType), "title.".concat(target), 'fontFamily'),
|
|
@@ -18389,7 +18436,7 @@ function getOverridesAsObject() {
|
|
|
18389
18436
|
// Currently supporting components "theme" and "selections".
|
|
18390
18437
|
const overrides = {};
|
|
18391
18438
|
components.forEach(c => {
|
|
18392
|
-
const k = c === null || c ===
|
|
18439
|
+
const k = c === null || c === undefined ? undefined : c.key;
|
|
18393
18440
|
if (SUPPORTED_COMPONENTS.includes(k)) {
|
|
18394
18441
|
overrides[k] = c;
|
|
18395
18442
|
}
|
|
@@ -18403,23 +18450,21 @@ function getSelectionColors(_ref) {
|
|
|
18403
18450
|
theme,
|
|
18404
18451
|
getListboxStyle,
|
|
18405
18452
|
overrides,
|
|
18406
|
-
checkboxes
|
|
18407
|
-
themeSelectionColorsEnabled
|
|
18453
|
+
checkboxes
|
|
18408
18454
|
} = _ref;
|
|
18409
|
-
const componentContentTextColor = (_overrides$theme = overrides.theme) === null || _overrides$theme ===
|
|
18455
|
+
const componentContentTextColor = (_overrides$theme = overrides.theme) === null || _overrides$theme === undefined || (_overrides$theme = _overrides$theme.content) === null || _overrides$theme === undefined ? undefined : _overrides$theme.fontColor;
|
|
18410
18456
|
|
|
18411
18457
|
// color priority: layout.component > theme content color > MUI theme
|
|
18412
|
-
const desiredTextColor = getColorPickerColor(componentContentTextColor) || getListboxStyle('content', 'color') || ((_theme$palette = theme.palette) === null || _theme$palette ===
|
|
18413
|
-
const useContrastTextColor = !checkboxes && ((_overrides$theme$cont = (_overrides$theme2 = overrides.theme) === null || _overrides$theme2 ===
|
|
18414
|
-
const
|
|
18415
|
-
const componentSelectionColors = ((_overrides$selections = overrides.selections) === null || _overrides$selections === void 0 ? void 0 : _overrides$selections.colors) || {};
|
|
18458
|
+
const desiredTextColor = getColorPickerColor(componentContentTextColor) || getListboxStyle('content', 'color') || ((_theme$palette = theme.palette) === null || _theme$palette === undefined ? undefined : _theme$palette.text.primary);
|
|
18459
|
+
const useContrastTextColor = !checkboxes && ((_overrides$theme$cont = (_overrides$theme2 = overrides.theme) === null || _overrides$theme2 === undefined || (_overrides$theme2 = _overrides$theme2.content) === null || _overrides$theme2 === undefined ? undefined : _overrides$theme2.useContrastColor) !== null && _overrides$theme$cont !== undefined ? _overrides$theme$cont : true);
|
|
18460
|
+
const componentSelectionColors = ((_overrides$selections = overrides.selections) === null || _overrides$selections === undefined ? undefined : _overrides$selections.colors) || {};
|
|
18416
18461
|
const getSelectionStateColors = state => {
|
|
18417
18462
|
var _theme$palette2, _theme$palette3;
|
|
18418
18463
|
const paletteState = state === 'selected' ? 'main' : state;
|
|
18419
18464
|
const contrastState = "".concat(state, "Contrast");
|
|
18420
18465
|
// color priority: layout.component > theme dataColors > theme background (only for 'possible') > MUI theme > hardcoded default
|
|
18421
|
-
const color = getColorPickerColor(componentSelectionColors[state]) ||
|
|
18422
|
-
const contrastColor = useContrastTextColor ? A(color, desiredTextColor) : desiredTextColor || ((_theme$palette3 = theme.palette) === null || _theme$palette3 ===
|
|
18466
|
+
const color = getColorPickerColor(componentSelectionColors[state]) || getListboxStyle('', "dataColors.".concat(state)) || state === 'possible' && getListboxStyle('', 'backgroundColor') || ((_theme$palette2 = theme.palette) === null || _theme$palette2 === undefined || (_theme$palette2 = _theme$palette2.selected) === null || _theme$palette2 === undefined ? undefined : _theme$palette2[paletteState]) || DEFAULT_SELECTION_COLORS[state];
|
|
18467
|
+
const contrastColor = useContrastTextColor ? A(color, desiredTextColor) : desiredTextColor || ((_theme$palette3 = theme.palette) === null || _theme$palette3 === undefined ? undefined : _theme$palette3.selected["".concat(contrastState, "Text}")]);
|
|
18423
18468
|
return {
|
|
18424
18469
|
[state]: color,
|
|
18425
18470
|
[contrastState]: contrastColor
|
|
@@ -18433,16 +18478,16 @@ function getBackgroundColor(_ref2) {
|
|
|
18433
18478
|
themeOverrides
|
|
18434
18479
|
} = _ref2;
|
|
18435
18480
|
let color;
|
|
18436
|
-
const bgColor = themeOverrides === null || themeOverrides ===
|
|
18481
|
+
const bgColor = themeOverrides === null || themeOverrides === undefined ? undefined : themeOverrides.background;
|
|
18437
18482
|
if (!bgColor) {
|
|
18438
18483
|
return color;
|
|
18439
18484
|
}
|
|
18440
|
-
if (bgColor !== null && bgColor !==
|
|
18485
|
+
if (bgColor !== null && bgColor !== undefined && bgColor.useExpression) {
|
|
18441
18486
|
color = resolveBgColor({
|
|
18442
18487
|
bgColor
|
|
18443
18488
|
}, themeApi, 'listBox');
|
|
18444
18489
|
} else {
|
|
18445
|
-
color = themeApi.getColorPickerColor(bgColor === null || bgColor ===
|
|
18490
|
+
color = themeApi.getColorPickerColor(bgColor === null || bgColor === undefined ? undefined : bgColor.color, false);
|
|
18446
18491
|
}
|
|
18447
18492
|
return color;
|
|
18448
18493
|
}
|
|
@@ -18463,49 +18508,47 @@ function getStyles(_ref3) {
|
|
|
18463
18508
|
themeApi,
|
|
18464
18509
|
theme,
|
|
18465
18510
|
components = [],
|
|
18466
|
-
checkboxes = false
|
|
18467
|
-
themeSelectionColorsEnabled = false
|
|
18511
|
+
checkboxes = false
|
|
18468
18512
|
} = _ref3;
|
|
18469
18513
|
const overrides = getOverridesAsObject(components);
|
|
18470
18514
|
const getListboxStyle = (path, prop) => themeApi.getStyle('object.listBox', path, prop);
|
|
18471
|
-
const getColorPickerColor = c => (c === null || c ===
|
|
18515
|
+
const getColorPickerColor = c => (c === null || c === undefined ? undefined : c.index) > 0 || c !== null && c !== undefined && c.color ? themeApi.getColorPickerColor(c, false) : undefined;
|
|
18472
18516
|
const selections = getSelectionColors({
|
|
18473
18517
|
getColorPickerColor,
|
|
18474
18518
|
theme,
|
|
18475
18519
|
getListboxStyle,
|
|
18476
18520
|
overrides,
|
|
18477
|
-
checkboxes
|
|
18478
|
-
themeSelectionColorsEnabled
|
|
18521
|
+
checkboxes
|
|
18479
18522
|
});
|
|
18480
18523
|
const themeOverrides = overrides.theme || {};
|
|
18481
|
-
const headerColor = getColorPickerColor((_themeOverrides$heade = themeOverrides.header) === null || _themeOverrides$heade ===
|
|
18524
|
+
const headerColor = getColorPickerColor((_themeOverrides$heade = themeOverrides.header) === null || _themeOverrides$heade === undefined ? undefined : _themeOverrides$heade.fontColor) || getListboxStyle('title.main', 'color');
|
|
18482
18525
|
const bgComponentColor = getBackgroundColor({
|
|
18483
18526
|
themeApi,
|
|
18484
18527
|
themeOverrides
|
|
18485
18528
|
});
|
|
18486
|
-
const bgImage = (_themeOverrides$backg = themeOverrides.background) !== null && _themeOverrides$backg !==
|
|
18529
|
+
const bgImage = (_themeOverrides$backg = themeOverrides.background) !== null && _themeOverrides$backg !== undefined && _themeOverrides$backg.image ? resolveBgImage({
|
|
18487
18530
|
bgImage: themeOverrides.background.image
|
|
18488
18531
|
}, app) : undefined;
|
|
18489
18532
|
const bgColor = bgComponentColor || getListboxStyle('', 'backgroundColor') || theme.palette.background.default;
|
|
18490
18533
|
const searchBgColor = getSearchBGColor(bgColor, getListboxStyle);
|
|
18491
18534
|
const searchColor = getSearchColor(getListboxStyle);
|
|
18492
|
-
const headerFontStyle = ((_themeOverrides$heade2 = themeOverrides.header) === null || _themeOverrides$heade2 ===
|
|
18493
|
-
const contentFontStyle = ((_themeOverrides$conte = themeOverrides.content) === null || _themeOverrides$conte ===
|
|
18535
|
+
const headerFontStyle = ((_themeOverrides$heade2 = themeOverrides.header) === null || _themeOverrides$heade2 === undefined ? undefined : _themeOverrides$heade2.fontStyle) || {};
|
|
18536
|
+
const contentFontStyle = ((_themeOverrides$conte = themeOverrides.content) === null || _themeOverrides$conte === undefined ? undefined : _themeOverrides$conte.fontStyle) || {};
|
|
18494
18537
|
|
|
18495
18538
|
// Ensure we only return falseValue when the component is used, and thus has a false value.
|
|
18496
18539
|
const getWithFallback = (value, trueValue, falseValue) => value === true && trueValue || value === false && falseValue || undefined;
|
|
18497
18540
|
return {
|
|
18498
18541
|
background: {
|
|
18499
18542
|
backgroundColor: bgColor,
|
|
18500
|
-
backgroundImage: bgImage !== null && bgImage !==
|
|
18543
|
+
backgroundImage: bgImage !== null && bgImage !== undefined && bgImage.url && !(bgImage !== null && bgImage !== undefined && bgImage.url.startsWith('url(')) ? "url('".concat(bgImage.url, "')") : undefined,
|
|
18501
18544
|
backgroundRepeat: 'no-repeat',
|
|
18502
|
-
backgroundSize: bgImage === null || bgImage ===
|
|
18503
|
-
backgroundPosition: bgImage === null || bgImage ===
|
|
18545
|
+
backgroundSize: bgImage === null || bgImage === undefined ? undefined : bgImage.size,
|
|
18546
|
+
backgroundPosition: bgImage === null || bgImage === undefined ? undefined : bgImage.pos
|
|
18504
18547
|
},
|
|
18505
18548
|
header: {
|
|
18506
18549
|
color: headerColor,
|
|
18507
|
-
fontSize: ((_themeOverrides$heade3 = themeOverrides.header) === null || _themeOverrides$heade3 ===
|
|
18508
|
-
fontFamily: ((_themeOverrides$heade4 = themeOverrides.header) === null || _themeOverrides$heade4 ===
|
|
18550
|
+
fontSize: ((_themeOverrides$heade3 = themeOverrides.header) === null || _themeOverrides$heade3 === undefined ? undefined : _themeOverrides$heade3.fontSize) || getListboxStyle('title.main', 'fontSize'),
|
|
18551
|
+
fontFamily: ((_themeOverrides$heade4 = themeOverrides.header) === null || _themeOverrides$heade4 === undefined ? undefined : _themeOverrides$heade4.fontFamily) || getListboxStyle('title.main', 'fontFamily'),
|
|
18509
18552
|
fontWeight: getWithFallback(headerFontStyle.bold, 'bold', 'normal') || getListboxStyle('title.main', 'fontWeight') || 'bold',
|
|
18510
18553
|
textDecoration: headerFontStyle.underline ? 'underline' : 'initial',
|
|
18511
18554
|
fontStyle: getWithFallback(headerFontStyle.italic, 'italic', 'normal') || getListboxStyle('title.main', 'fontStyle') || 'initial'
|
|
@@ -18513,8 +18556,8 @@ function getStyles(_ref3) {
|
|
|
18513
18556
|
content: {
|
|
18514
18557
|
backgroundColor: checkboxes ? undefined : selections.possible,
|
|
18515
18558
|
color: selections.possibleContrast || getListboxStyle('content', 'color'),
|
|
18516
|
-
fontSize: ((_themeOverrides$conte2 = themeOverrides.content) === null || _themeOverrides$conte2 ===
|
|
18517
|
-
fontFamily: ((_themeOverrides$conte3 = themeOverrides.content) === null || _themeOverrides$conte3 ===
|
|
18559
|
+
fontSize: ((_themeOverrides$conte2 = themeOverrides.content) === null || _themeOverrides$conte2 === undefined ? undefined : _themeOverrides$conte2.fontSize) || getListboxStyle('content', 'fontSize'),
|
|
18560
|
+
fontFamily: ((_themeOverrides$conte3 = themeOverrides.content) === null || _themeOverrides$conte3 === undefined ? undefined : _themeOverrides$conte3.fontFamily) || getListboxStyle('content', 'fontFamily'),
|
|
18518
18561
|
fontWeight: getWithFallback(contentFontStyle.bold, 'bold', 'normal') || getListboxStyle('content', 'fontWeight') || 'normal',
|
|
18519
18562
|
textDecoration: contentFontStyle.underline ? 'underline' : 'initial',
|
|
18520
18563
|
fontStyle: getWithFallback(contentFontStyle.italic, 'italic', 'normal') || getListboxStyle('content', 'fontStyle') || 'initial'
|
|
@@ -18550,7 +18593,6 @@ function ListBoxPopover(_ref) {
|
|
|
18550
18593
|
components,
|
|
18551
18594
|
checkboxes: checkboxesOption,
|
|
18552
18595
|
selectDisabled = () => false,
|
|
18553
|
-
flags,
|
|
18554
18596
|
sortCriteria = [{
|
|
18555
18597
|
qSortByState: 1,
|
|
18556
18598
|
qSortByAscii: 1,
|
|
@@ -18558,7 +18600,7 @@ function ListBoxPopover(_ref) {
|
|
|
18558
18600
|
qSortByLoadOrder: 1
|
|
18559
18601
|
}]
|
|
18560
18602
|
} = _ref;
|
|
18561
|
-
const isMasterDim = Boolean(fieldName === null || fieldName ===
|
|
18603
|
+
const isMasterDim = Boolean(fieldName === null || fieldName === undefined ? undefined : fieldName.qLibraryId);
|
|
18562
18604
|
const open = show && Boolean(alignTo.current);
|
|
18563
18605
|
const [listCount, setListCount] = useState$1(0);
|
|
18564
18606
|
const theme = useTheme$1();
|
|
@@ -18608,13 +18650,11 @@ function ListBoxPopover(_ref) {
|
|
|
18608
18650
|
const {
|
|
18609
18651
|
checkboxes = checkboxesOption
|
|
18610
18652
|
} = layout || {};
|
|
18611
|
-
const themeSelectionColorsEnabled = flags === null || flags === void 0 ? void 0 : flags.isEnabled('PS_22149_THEME_SELECTION_COLORS');
|
|
18612
18653
|
const styles = getStyles({
|
|
18613
18654
|
themeApi,
|
|
18614
18655
|
theme,
|
|
18615
18656
|
components,
|
|
18616
|
-
checkboxes
|
|
18617
|
-
themeSelectionColorsEnabled
|
|
18657
|
+
checkboxes
|
|
18618
18658
|
});
|
|
18619
18659
|
useEffect$1(() => {
|
|
18620
18660
|
if (selections && open) {
|
|
@@ -18729,7 +18769,7 @@ function ListBoxPopover(_ref) {
|
|
|
18729
18769
|
innerTabStops: true,
|
|
18730
18770
|
focusSelection: keyboard.focusSelection
|
|
18731
18771
|
},
|
|
18732
|
-
autoFocus: autoFocus !== null && autoFocus !==
|
|
18772
|
+
autoFocus: autoFocus !== null && autoFocus !== undefined ? autoFocus : true
|
|
18733
18773
|
})), /*#__PURE__*/React__default.createElement(ListBox, {
|
|
18734
18774
|
model: model,
|
|
18735
18775
|
app: app,
|
|
@@ -19239,7 +19279,7 @@ function getItems(layout) {
|
|
|
19239
19279
|
var _selection$qDimension;
|
|
19240
19280
|
currentField = {
|
|
19241
19281
|
name,
|
|
19242
|
-
label: ((_selection$qDimension = selection.qDimensionReferences) === null || _selection$qDimension ===
|
|
19282
|
+
label: ((_selection$qDimension = selection.qDimensionReferences) === null || _selection$qDimension === undefined || (_selection$qDimension = _selection$qDimension.find(element => element.qLabel)) === null || _selection$qDimension === undefined ? undefined : _selection$qDimension.qLabel) || selection.qReadableName || name,
|
|
19243
19283
|
states: [],
|
|
19244
19284
|
selections: []
|
|
19245
19285
|
};
|
|
@@ -19278,7 +19318,7 @@ function SelectedFields(_ref) {
|
|
|
19278
19318
|
const {
|
|
19279
19319
|
model
|
|
19280
19320
|
} = modalObjectStore.get(app.id) || {};
|
|
19281
|
-
return (model === null || model ===
|
|
19321
|
+
return (model === null || model === undefined ? undefined : model.genericType) === 'njsListbox';
|
|
19282
19322
|
};
|
|
19283
19323
|
useEffect$1(() => {
|
|
19284
19324
|
if (!containerRect) return;
|
|
@@ -19963,7 +20003,7 @@ function getListboxContainerKeyboardNavigation(_ref) {
|
|
|
19963
20003
|
}
|
|
19964
20004
|
};
|
|
19965
20005
|
const focusOnHoverDisabled = () => {
|
|
19966
|
-
const selectNotAllowed = (constraints === null || constraints ===
|
|
20006
|
+
const selectNotAllowed = (constraints === null || constraints === undefined ? undefined : constraints.select) || (constraints === null || constraints === undefined ? undefined : constraints.active);
|
|
19967
20007
|
const appInModal = isModal();
|
|
19968
20008
|
return selectNotAllowed || appInModal;
|
|
19969
20009
|
};
|
|
@@ -20049,7 +20089,7 @@ function isDirectQueryEnabled(_ref) {
|
|
|
20049
20089
|
let {
|
|
20050
20090
|
appLayout
|
|
20051
20091
|
} = _ref;
|
|
20052
|
-
const isDQ = !!(appLayout !== null && appLayout !==
|
|
20092
|
+
const isDQ = !!(appLayout !== null && appLayout !== undefined && appLayout.qIsDirectQueryMode);
|
|
20053
20093
|
return isDQ;
|
|
20054
20094
|
}
|
|
20055
20095
|
|
|
@@ -20091,10 +20131,10 @@ function showToolbarDetached(_ref) {
|
|
|
20091
20131
|
const containerWidth = containerRect.width;
|
|
20092
20132
|
const preventTruncation = 2;
|
|
20093
20133
|
const padding = paddingLeft + paddingRight;
|
|
20094
|
-
const contentWidth = ((_titleRef$current$cli = titleRef === null || titleRef ===
|
|
20134
|
+
const contentWidth = ((_titleRef$current$cli = titleRef === null || titleRef === undefined || (_titleRef$current = titleRef.current) === null || _titleRef$current === undefined ? undefined : _titleRef$current.clientWidth) !== null && _titleRef$current$cli !== undefined ? _titleRef$current$cli : 0) + iconsWidth + padding + preventTruncation;
|
|
20095
20135
|
const actionToolbarWidth = 128;
|
|
20096
20136
|
const notSufficientSpace = containerWidth < contentWidth + actionToolbarWidth;
|
|
20097
|
-
const isTruncated = (titleRef === null || titleRef ===
|
|
20137
|
+
const isTruncated = (titleRef === null || titleRef === undefined || (_titleRef$current2 = titleRef.current) === null || _titleRef$current2 === undefined ? undefined : _titleRef$current2.scrollWidth) > (titleRef === null || titleRef === undefined || (_titleRef$current3 = titleRef.current) === null || _titleRef$current3 === undefined ? undefined : _titleRef$current3.offsetWidth);
|
|
20098
20138
|
const isDetached = !!(notSufficientSpace || isTruncated);
|
|
20099
20139
|
return isDetached;
|
|
20100
20140
|
}
|
|
@@ -20137,10 +20177,10 @@ function getListboxActionProps(_ref) {
|
|
|
20137
20177
|
show: showToolbar,
|
|
20138
20178
|
api: selections,
|
|
20139
20179
|
onConfirm: () => {
|
|
20140
|
-
keyboard === null || keyboard ===
|
|
20180
|
+
keyboard === null || keyboard === undefined || keyboard.focus();
|
|
20141
20181
|
},
|
|
20142
20182
|
onCancel: () => {
|
|
20143
|
-
keyboard === null || keyboard ===
|
|
20183
|
+
keyboard === null || keyboard === undefined || keyboard.focus();
|
|
20144
20184
|
}
|
|
20145
20185
|
}
|
|
20146
20186
|
};
|
|
@@ -20267,6 +20307,7 @@ const reload = props => _objectSpread2(_objectSpread2({}, props), {}, {
|
|
|
20267
20307
|
var ReloadIcon = props => SvgIcon$1(reload(props));
|
|
20268
20308
|
|
|
20269
20309
|
const dimensionTypes = {
|
|
20310
|
+
single: 'N',
|
|
20270
20311
|
drillDown: 'H',
|
|
20271
20312
|
cyclic: 'C'
|
|
20272
20313
|
};
|
|
@@ -20453,19 +20494,19 @@ function ListBoxHeader(_ref2) {
|
|
|
20453
20494
|
disablePortal
|
|
20454
20495
|
} = _ref2;
|
|
20455
20496
|
const [isToolbarDetached, setIsToolbarDetached] = useState$1(showDetachedToolbarOnly);
|
|
20456
|
-
const [isLocked, setLocked] = useState$1(layout === null || layout ===
|
|
20497
|
+
const [isLocked, setLocked] = useState$1(layout === null || layout === undefined || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === undefined || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === undefined ? undefined : _layout$qListObject.qLocked);
|
|
20457
20498
|
const [settingLockedState, setSettingLockedState] = useState$1(false);
|
|
20458
20499
|
useEffect$1(() => {
|
|
20459
20500
|
var _layout$qListObject2;
|
|
20460
|
-
setLocked(layout === null || layout ===
|
|
20461
|
-
}, [layout === null || layout ===
|
|
20501
|
+
setLocked(layout === null || layout === undefined || (_layout$qListObject2 = layout.qListObject) === null || _layout$qListObject2 === undefined || (_layout$qListObject2 = _layout$qListObject2.qDimensionInfo) === null || _layout$qListObject2 === undefined ? undefined : _layout$qListObject2.qLocked);
|
|
20502
|
+
}, [layout === null || layout === undefined || (_layout$qListObject3 = layout.qListObject) === null || _layout$qListObject3 === undefined || (_layout$qListObject3 = _layout$qListObject3.qDimensionInfo) === null || _layout$qListObject3 === undefined ? undefined : _layout$qListObject3.qLocked]);
|
|
20462
20503
|
const titleRef = useRef$1(null);
|
|
20463
20504
|
const iconData = iconUtils.createDimensionIconData({
|
|
20464
|
-
dimInfo: layout === null || layout ===
|
|
20505
|
+
dimInfo: layout === null || layout === undefined || (_layout$qListObject4 = layout.qListObject) === null || _layout$qListObject4 === undefined ? undefined : _layout$qListObject4.qDimensionInfo,
|
|
20465
20506
|
app,
|
|
20466
20507
|
selections,
|
|
20467
20508
|
isPopover,
|
|
20468
|
-
active: !(constraints !== null && constraints !==
|
|
20509
|
+
active: !(constraints !== null && constraints !== undefined && constraints.active),
|
|
20469
20510
|
keyboard
|
|
20470
20511
|
});
|
|
20471
20512
|
const showUnlock = showLock && isLocked;
|
|
@@ -20500,7 +20541,7 @@ function ListBoxHeader(_ref2) {
|
|
|
20500
20541
|
enabled: () => !settingLockedState && !selectionState.selectDisabled() && hasSelections(layout),
|
|
20501
20542
|
action: toggleLock
|
|
20502
20543
|
}];
|
|
20503
|
-
const searchIconComp = constraints !== null && constraints !==
|
|
20544
|
+
const searchIconComp = constraints !== null && constraints !== undefined && constraints.active ? /*#__PURE__*/React__default.createElement(SearchIcon, {
|
|
20504
20545
|
title: translator.get('Listbox.Search'),
|
|
20505
20546
|
size: "large",
|
|
20506
20547
|
style: _objectSpread2(_objectSpread2({}, iconStyle), {}, {
|
|
@@ -20534,6 +20575,7 @@ function ListBoxHeader(_ref2) {
|
|
|
20534
20575
|
isDetached: isPopover ? false : isToolbarDetached,
|
|
20535
20576
|
showToolbar,
|
|
20536
20577
|
containerRef,
|
|
20578
|
+
isPopover,
|
|
20537
20579
|
isLocked,
|
|
20538
20580
|
extraItems,
|
|
20539
20581
|
listboxSelectionToolbarItems,
|
|
@@ -20649,7 +20691,7 @@ const isModal = _ref2 => {
|
|
|
20649
20691
|
app,
|
|
20650
20692
|
appSelections
|
|
20651
20693
|
} = _ref2;
|
|
20652
|
-
return (_app$isInModalSelecti = (_app$isInModalSelecti2 = app.isInModalSelection) === null || _app$isInModalSelecti2 ===
|
|
20694
|
+
return (_app$isInModalSelecti = (_app$isInModalSelecti2 = app.isInModalSelection) === null || _app$isInModalSelecti2 === undefined ? undefined : _app$isInModalSelecti2.call(app)) !== null && _app$isInModalSelecti !== undefined ? _app$isInModalSelecti : appSelections.isInModal();
|
|
20653
20695
|
};
|
|
20654
20696
|
function ListBoxInline(_ref3) {
|
|
20655
20697
|
var _layout$qListObject, _layout$title, _layoutOptions$dense, _containerRef$current;
|
|
@@ -20679,7 +20721,6 @@ function ListBoxInline(_ref3) {
|
|
|
20679
20721
|
showLock = false,
|
|
20680
20722
|
components,
|
|
20681
20723
|
selectDisabled = () => false,
|
|
20682
|
-
flags,
|
|
20683
20724
|
disablePortal = true
|
|
20684
20725
|
} = options;
|
|
20685
20726
|
const theme = useTheme$1();
|
|
@@ -20692,17 +20733,15 @@ function ListBoxInline(_ref3) {
|
|
|
20692
20733
|
const {
|
|
20693
20734
|
checkboxes = checkboxesOption
|
|
20694
20735
|
} = layout || {};
|
|
20695
|
-
const themeSelectionColorsEnabled = flags === null || flags === void 0 ? void 0 : flags.isEnabled('PS_22149_THEME_SELECTION_COLORS');
|
|
20696
20736
|
const styles = getStyles({
|
|
20697
20737
|
app,
|
|
20698
20738
|
themeApi,
|
|
20699
20739
|
theme,
|
|
20700
20740
|
components,
|
|
20701
|
-
checkboxes
|
|
20702
|
-
themeSelectionColorsEnabled
|
|
20741
|
+
checkboxes
|
|
20703
20742
|
});
|
|
20704
20743
|
const isDirectQuery = isDirectQueryEnabled({
|
|
20705
|
-
appLayout: app === null || app ===
|
|
20744
|
+
appLayout: app === null || app === undefined ? undefined : app.layout
|
|
20706
20745
|
});
|
|
20707
20746
|
const containerRef = useRef$1();
|
|
20708
20747
|
const searchInputRef = useRef$1();
|
|
@@ -20732,7 +20771,7 @@ function ListBoxInline(_ref3) {
|
|
|
20732
20771
|
app,
|
|
20733
20772
|
appSelections
|
|
20734
20773
|
}), [app, appSelections]);
|
|
20735
|
-
const isInvalid = layout === null || layout ===
|
|
20774
|
+
const isInvalid = layout === null || layout === undefined ? undefined : layout.qListObject.qDimensionInfo.qError;
|
|
20736
20775
|
const errorText = isInvalid && constraints.active ? 'Visualization.Invalid.Dimension' : 'Visualization.Incomplete';
|
|
20737
20776
|
const {
|
|
20738
20777
|
handleKeyDown,
|
|
@@ -20743,7 +20782,10 @@ function ListBoxInline(_ref3) {
|
|
|
20743
20782
|
keyboard,
|
|
20744
20783
|
hovering,
|
|
20745
20784
|
updateKeyScroll,
|
|
20785
|
+
containerRef,
|
|
20746
20786
|
currentScrollIndex,
|
|
20787
|
+
app,
|
|
20788
|
+
appSelections,
|
|
20747
20789
|
constraints,
|
|
20748
20790
|
isModal: isModalMode,
|
|
20749
20791
|
selections
|
|
@@ -20794,10 +20836,10 @@ function ListBoxInline(_ref3) {
|
|
|
20794
20836
|
searchEnabled,
|
|
20795
20837
|
autoConfirm = false,
|
|
20796
20838
|
layoutOptions = {}
|
|
20797
|
-
} = layout !== null && layout !==
|
|
20798
|
-
const isLocked = layout === null || layout ===
|
|
20839
|
+
} = layout !== null && layout !== undefined ? layout : {};
|
|
20840
|
+
const isLocked = layout === null || layout === undefined || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === undefined || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === undefined ? undefined : _layout$qListObject.qLocked;
|
|
20799
20841
|
const showSearchIcon = searchEnabled !== false && search === 'toggle' && !isLocked;
|
|
20800
|
-
const canShowTitle = (layout === null || layout ===
|
|
20842
|
+
const canShowTitle = (layout === null || layout === undefined || (_layout$title = layout.title) === null || _layout$title === undefined ? undefined : _layout$title.length) && (layout === null || layout === undefined ? undefined : layout.showTitle) !== false;
|
|
20801
20843
|
const showDetachedToolbarOnly = toolbar && !canShowTitle && !isPopover;
|
|
20802
20844
|
const showAttachedToolbar = toolbar && canShowTitle || isPopover;
|
|
20803
20845
|
const isRtl = direction === 'rtl';
|
|
@@ -20806,7 +20848,7 @@ function ListBoxInline(_ref3) {
|
|
|
20806
20848
|
}
|
|
20807
20849
|
const showSearchToggle = search === 'toggle' && showSearch;
|
|
20808
20850
|
const searchVisible = search === true || showSearchToggle && searchEnabled !== false;
|
|
20809
|
-
const dense = (_layoutOptions$dense = layoutOptions.dense) !== null && _layoutOptions$dense !==
|
|
20851
|
+
const dense = (_layoutOptions$dense = layoutOptions.dense) !== null && _layoutOptions$dense !== undefined ? _layoutOptions$dense : false;
|
|
20810
20852
|
const handleShowSearch = () => {
|
|
20811
20853
|
const newValue = !showSearch;
|
|
20812
20854
|
setShowSearch(newValue);
|
|
@@ -20821,15 +20863,15 @@ function ListBoxInline(_ref3) {
|
|
|
20821
20863
|
const shouldAutoFocus = searchVisible && (search === 'toggle' || focusSearch);
|
|
20822
20864
|
|
|
20823
20865
|
// Add a container padding for grid mode to harmonize with the grid item margins (should sum to 8px).
|
|
20824
|
-
const isGridMode = (layoutOptions === null || layoutOptions ===
|
|
20866
|
+
const isGridMode = (layoutOptions === null || layoutOptions === undefined ? undefined : layoutOptions.dataLayout) === 'grid';
|
|
20825
20867
|
const containerPadding = getContainerPadding({
|
|
20826
20868
|
isGridMode,
|
|
20827
20869
|
dense,
|
|
20828
|
-
height: (_containerRef$current = containerRef.current) === null || _containerRef$current ===
|
|
20870
|
+
height: (_containerRef$current = containerRef.current) === null || _containerRef$current === undefined ? undefined : _containerRef$current.clientHeight,
|
|
20829
20871
|
layoutOrder: layoutOptions.layoutOrder
|
|
20830
20872
|
});
|
|
20831
20873
|
if (isInvalid) {
|
|
20832
|
-
renderedCallback === null || renderedCallback ===
|
|
20874
|
+
renderedCallback === null || renderedCallback === undefined || renderedCallback();
|
|
20833
20875
|
}
|
|
20834
20876
|
const listBoxMinHeight = showAttachedToolbar ? DENSE_ROW_HEIGHT + SCROLL_BAR_WIDTH : 0;
|
|
20835
20877
|
const listBoxHeader = /*#__PURE__*/React__default.createElement(ListBoxHeader, {
|
|
@@ -21199,7 +21241,7 @@ function useOnTheFlyModel(_ref) {
|
|
|
21199
21241
|
const [isFetching, setIsFetching] = useState$1(true);
|
|
21200
21242
|
const [model, setModel] = useState$1();
|
|
21201
21243
|
const [fallbackTitle, setFallbackTitle] = useState$1();
|
|
21202
|
-
const title = (_options$title = options.title) !== null && _options$title !==
|
|
21244
|
+
const title = (_options$title = options.title) !== null && _options$title !== undefined ? _options$title : fallbackTitle;
|
|
21203
21245
|
let {
|
|
21204
21246
|
histogram = false,
|
|
21205
21247
|
frequencyMode = 'N'
|
|
@@ -21289,7 +21331,7 @@ function useOnTheFlyModel(_ref) {
|
|
|
21289
21331
|
fieldName = fieldIdentifier;
|
|
21290
21332
|
}
|
|
21291
21333
|
if (frequencyMode !== 'P' && histogram) {
|
|
21292
|
-
if (fieldDef !== null && fieldDef !==
|
|
21334
|
+
if (fieldDef !== null && fieldDef !== undefined && fieldDef.multiFieldDim) {
|
|
21293
21335
|
listdef$1.frequencyMax = 'fetch';
|
|
21294
21336
|
// maybe for all lib dimension to handle if it properties change
|
|
21295
21337
|
} else {
|
|
@@ -21389,17 +21431,17 @@ const getOptions$1 = function () {
|
|
|
21389
21431
|
const squashedOptions = _objectSpread2(_objectSpread2(_objectSpread2({}, exposedOptions), DO_NOT_USE_DEFAULTS), __DO_NOT_USE__);
|
|
21390
21432
|
return squashedOptions;
|
|
21391
21433
|
};
|
|
21392
|
-
|
|
21434
|
+
const ListBoxWrapper = forwardRef((_ref, ref) => {
|
|
21393
21435
|
let {
|
|
21394
21436
|
app,
|
|
21395
21437
|
fieldIdentifier,
|
|
21396
21438
|
qId,
|
|
21397
21439
|
stateName,
|
|
21398
21440
|
element,
|
|
21399
|
-
|
|
21400
|
-
renderedCallback
|
|
21401
|
-
flags
|
|
21441
|
+
initialOptions,
|
|
21442
|
+
renderedCallback
|
|
21402
21443
|
} = _ref;
|
|
21444
|
+
const [options, setOptions] = useState$1(initialOptions);
|
|
21403
21445
|
const {
|
|
21404
21446
|
isExistingObject,
|
|
21405
21447
|
hasExternalSelectionsApi
|
|
@@ -21435,16 +21477,18 @@ function ListBoxWrapper(_ref) {
|
|
|
21435
21477
|
selections,
|
|
21436
21478
|
model,
|
|
21437
21479
|
app,
|
|
21438
|
-
renderedCallback
|
|
21439
|
-
flags
|
|
21480
|
+
renderedCallback
|
|
21440
21481
|
}), [options, selections, model, app]);
|
|
21482
|
+
useImperativeHandle$1(ref, () => ({
|
|
21483
|
+
setOptions: newOptions => setOptions(newOptions)
|
|
21484
|
+
}), []);
|
|
21441
21485
|
if (!selections || !model) {
|
|
21442
21486
|
return null;
|
|
21443
21487
|
}
|
|
21444
21488
|
return /*#__PURE__*/React__default.createElement(IsolateUseLayoutWrapper, {
|
|
21445
21489
|
options: opts
|
|
21446
21490
|
});
|
|
21447
|
-
}
|
|
21491
|
+
});
|
|
21448
21492
|
function ListBoxPortal(_ref2) {
|
|
21449
21493
|
let {
|
|
21450
21494
|
element,
|
|
@@ -21453,19 +21497,20 @@ function ListBoxPortal(_ref2) {
|
|
|
21453
21497
|
qId,
|
|
21454
21498
|
stateName = '$',
|
|
21455
21499
|
options = {},
|
|
21456
|
-
renderedCallback
|
|
21457
|
-
flags
|
|
21500
|
+
renderedCallback
|
|
21458
21501
|
} = _ref2;
|
|
21459
|
-
|
|
21502
|
+
const listRef = React__default.createRef();
|
|
21503
|
+
const portal = ReactDOM$1.createPortal(/*#__PURE__*/React__default.createElement(ListBoxWrapper, {
|
|
21504
|
+
ref: listRef,
|
|
21460
21505
|
app: app,
|
|
21461
21506
|
element: element,
|
|
21462
21507
|
fieldIdentifier: fieldIdentifier,
|
|
21463
21508
|
qId: qId,
|
|
21464
21509
|
stateName: stateName,
|
|
21465
|
-
|
|
21466
|
-
renderedCallback: renderedCallback
|
|
21467
|
-
flags: flags
|
|
21510
|
+
initialOptions: options,
|
|
21511
|
+
renderedCallback: renderedCallback
|
|
21468
21512
|
}), element, uid());
|
|
21513
|
+
return [portal, listRef];
|
|
21469
21514
|
}
|
|
21470
21515
|
|
|
21471
21516
|
const DEFAULTS = {
|
|
@@ -21491,8 +21536,7 @@ function ListBoxPopoverWrapper(_ref) {
|
|
|
21491
21536
|
fieldIdentifier,
|
|
21492
21537
|
stateName,
|
|
21493
21538
|
element,
|
|
21494
|
-
options = {}
|
|
21495
|
-
flags
|
|
21539
|
+
options = {}
|
|
21496
21540
|
} = _ref;
|
|
21497
21541
|
const [showState, setShowstate] = useState$1(!!options.show);
|
|
21498
21542
|
const handleCloseShowState = () => {
|
|
@@ -21514,7 +21558,6 @@ function ListBoxPopoverWrapper(_ref) {
|
|
|
21514
21558
|
stateName: stateName,
|
|
21515
21559
|
autoFocus: options.autoFocus,
|
|
21516
21560
|
components: options.components,
|
|
21517
|
-
flags: flags,
|
|
21518
21561
|
sortCriteria: options.sortCriteria
|
|
21519
21562
|
});
|
|
21520
21563
|
}
|
|
@@ -21762,7 +21805,7 @@ function filterpaneHandler(_ref) {
|
|
|
21762
21805
|
}
|
|
21763
21806
|
} else {
|
|
21764
21807
|
var _dimension$qDef$qFiel, _dimension$qDef$qFiel2;
|
|
21765
|
-
listboxProps.title = dimension.qDef.title || ((_dimension$qDef$qFiel = dimension.qDef.qFieldLabels) === null || _dimension$qDef$qFiel ===
|
|
21808
|
+
listboxProps.title = dimension.qDef.title || ((_dimension$qDef$qFiel = dimension.qDef.qFieldLabels) === null || _dimension$qDef$qFiel === undefined ? undefined : _dimension$qDef$qFiel[0]) || ((_dimension$qDef$qFiel2 = dimension.qDef.qFieldDefs) === null || _dimension$qDef$qFiel2 === undefined ? undefined : _dimension$qDef$qFiel2[0]);
|
|
21766
21809
|
}
|
|
21767
21810
|
}
|
|
21768
21811
|
// def.dimensions.added(dimension, properties, listboxProps);
|
|
@@ -23905,7 +23948,7 @@ const Cell = forwardRef((_ref6, ref) => {
|
|
|
23905
23948
|
setModel,
|
|
23906
23949
|
getImperativeHandle() {
|
|
23907
23950
|
var _state$sn;
|
|
23908
|
-
if ((_state$sn = state.sn) !== null && _state$sn !==
|
|
23951
|
+
if ((_state$sn = state.sn) !== null && _state$sn !== undefined && _state$sn.component && typeof state.sn.component.getImperativeHandle === 'function') {
|
|
23909
23952
|
return state.sn.component.getImperativeHandle();
|
|
23910
23953
|
}
|
|
23911
23954
|
return {};
|
|
@@ -24143,7 +24186,7 @@ function validatePlugins(plugins) {
|
|
|
24143
24186
|
|
|
24144
24187
|
const canSetProperties = layout => {
|
|
24145
24188
|
var _layout$qMeta;
|
|
24146
|
-
return !!(layout && !layout.qHasSoftPatches && !layout.qExtendsId && (((_layout$qMeta = layout.qMeta) === null || _layout$qMeta ===
|
|
24189
|
+
return !!(layout && !layout.qHasSoftPatches && !layout.qExtendsId && (((_layout$qMeta = layout.qMeta) === null || _layout$qMeta === undefined ? undefined : _layout$qMeta.privileges) || []).indexOf('update') > -1);
|
|
24147
24190
|
};
|
|
24148
24191
|
|
|
24149
24192
|
/* eslint-disable no-underscore-dangle */
|
|
@@ -26490,7 +26533,7 @@ function viz() {
|
|
|
26490
26533
|
onRenderResolve = resolve;
|
|
26491
26534
|
});
|
|
26492
26535
|
const createOnInitialRender = override => () => {
|
|
26493
|
-
override === null || override ===
|
|
26536
|
+
override === null || override === undefined || override(); // from options.onInitialRender
|
|
26494
26537
|
onRenderResolve(); // internal promise in viz to wait for render
|
|
26495
26538
|
onRender(); // from RenderConfig
|
|
26496
26539
|
};
|
|
@@ -27127,7 +27170,7 @@ const Sheet = forwardRef((_ref, ref) => {
|
|
|
27127
27170
|
const [bgColor, setBgColor] = useState$1(undefined);
|
|
27128
27171
|
const [bgImage, setBgImage] = useState$1(undefined);
|
|
27129
27172
|
const [deepHash, setDeepHash] = useState$1('');
|
|
27130
|
-
navigation === null || navigation ===
|
|
27173
|
+
navigation === null || navigation === undefined || (_navigation$setCurren = navigation.setCurrentSheetId) === null || _navigation$setCurren === undefined || _navigation$setCurren.call(navigation, model.id);
|
|
27131
27174
|
/// For each object
|
|
27132
27175
|
useEffect$1(() => {
|
|
27133
27176
|
if (layout) {
|
|
@@ -27193,7 +27236,7 @@ const Sheet = forwardRef((_ref, ref) => {
|
|
|
27193
27236
|
}, [model]);
|
|
27194
27237
|
const cellRenderers = useMemo$1(() => cells ? cells.map(c => getCellRenderer(c, halo, initialSnOptions, initialSnPlugins, initialError, c.mounted, navigation)) : [], [cells]);
|
|
27195
27238
|
useEffect$1(() => {
|
|
27196
|
-
const bgComp = layout !== null && layout !==
|
|
27239
|
+
const bgComp = layout !== null && layout !== undefined && layout.components ? layout.components.find(comp => comp.key === 'general') : null;
|
|
27197
27240
|
setBgColor(resolveBgColor(bgComp, halo.public.theme));
|
|
27198
27241
|
setBgImage(resolveBgImage(bgComp, halo.app));
|
|
27199
27242
|
}, [layout, halo.public.theme, halo.app, themeName]);
|
|
@@ -27431,9 +27474,9 @@ function createNavigationApi(halo, store, model) {
|
|
|
27431
27474
|
const {
|
|
27432
27475
|
galaxy
|
|
27433
27476
|
} = halo.public;
|
|
27434
|
-
if ((_galaxy$anything = galaxy.anything) !== null && _galaxy$anything !==
|
|
27477
|
+
if ((_galaxy$anything = galaxy.anything) !== null && _galaxy$anything !== undefined && (_galaxy$anything = _galaxy$anything.sense) !== null && _galaxy$anything !== undefined && _galaxy$anything.navigation) {
|
|
27435
27478
|
var _galaxy$anything2;
|
|
27436
|
-
return (_galaxy$anything2 = galaxy.anything) === null || _galaxy$anything2 ===
|
|
27479
|
+
return (_galaxy$anything2 = galaxy.anything) === null || _galaxy$anything2 === undefined || (_galaxy$anything2 = _galaxy$anything2.sense) === null || _galaxy$anything2 === undefined ? undefined : _galaxy$anything2.navigation;
|
|
27437
27480
|
}
|
|
27438
27481
|
const State = {
|
|
27439
27482
|
model
|
|
@@ -27499,7 +27542,7 @@ function createNavigationApi(halo, store, model) {
|
|
|
27499
27542
|
return;
|
|
27500
27543
|
}
|
|
27501
27544
|
modelStore.set(key, newModel);
|
|
27502
|
-
(_State$sheetRef = State.sheetRef) === null || _State$sheetRef ===
|
|
27545
|
+
(_State$sheetRef = State.sheetRef) === null || _State$sheetRef === undefined || (_State$sheetRef = _State$sheetRef.current) === null || _State$sheetRef === undefined || (_State$sheetRef$setMo = _State$sheetRef.setModel) === null || _State$sheetRef$setMo === undefined || _State$sheetRef$setMo.call(_State$sheetRef, newModel);
|
|
27503
27546
|
State.model = newModel;
|
|
27504
27547
|
navigationAPI.emit('sheetChanged');
|
|
27505
27548
|
},
|
|
@@ -29630,7 +29673,7 @@ function nuked() {
|
|
|
29630
29673
|
const onSelectionActivated = () => fieldSels.emit('selectionActivated');
|
|
29631
29674
|
const onSelectionDeactivated = () => fieldSels.emit('selectionDeactivated');
|
|
29632
29675
|
return new Promise(resolve => {
|
|
29633
|
-
this._instance = ListBoxPortal({
|
|
29676
|
+
[this._instance, this._ref] = ListBoxPortal({
|
|
29634
29677
|
element,
|
|
29635
29678
|
app,
|
|
29636
29679
|
fieldIdentifier,
|
|
@@ -29640,8 +29683,7 @@ function nuked() {
|
|
|
29640
29683
|
onSelectionDeactivated
|
|
29641
29684
|
}, options)),
|
|
29642
29685
|
stateName: options.stateName || '$',
|
|
29643
|
-
renderedCallback: resolve
|
|
29644
|
-
flags: halo.public.galaxy.flags
|
|
29686
|
+
renderedCallback: resolve
|
|
29645
29687
|
});
|
|
29646
29688
|
root.add(this._instance);
|
|
29647
29689
|
});
|
|
@@ -29657,6 +29699,22 @@ function nuked() {
|
|
|
29657
29699
|
if (this._instance) {
|
|
29658
29700
|
root.remove(this._instance);
|
|
29659
29701
|
this._instance = null;
|
|
29702
|
+
this._ref = null;
|
|
29703
|
+
}
|
|
29704
|
+
},
|
|
29705
|
+
// ===== unexposed experimental API - use at own risk ======
|
|
29706
|
+
__DO_NOT_USE__: {
|
|
29707
|
+
options(opts) {
|
|
29708
|
+
var _fieldSels$_ref;
|
|
29709
|
+
const onSelectionActivated = () => fieldSels.emit('selectionActivated');
|
|
29710
|
+
const onSelectionDeactivated = () => fieldSels.emit('selectionDeactivated');
|
|
29711
|
+
if ((_fieldSels$_ref = fieldSels._ref) !== null && _fieldSels$_ref !== undefined && _fieldSels$_ref.current) {
|
|
29712
|
+
const options = getOptions$1(_objectSpread2({
|
|
29713
|
+
onSelectionActivated,
|
|
29714
|
+
onSelectionDeactivated
|
|
29715
|
+
}, opts));
|
|
29716
|
+
fieldSels._ref.current.setOptions(options);
|
|
29717
|
+
}
|
|
29660
29718
|
}
|
|
29661
29719
|
}
|
|
29662
29720
|
};
|
|
@@ -29695,8 +29753,7 @@ function nuked() {
|
|
|
29695
29753
|
app,
|
|
29696
29754
|
fieldIdentifier,
|
|
29697
29755
|
options: opts,
|
|
29698
|
-
stateName: options.stateName || '$'
|
|
29699
|
-
flags: halo.public.galaxy.flags
|
|
29756
|
+
stateName: options.stateName || '$'
|
|
29700
29757
|
});
|
|
29701
29758
|
root.add(api._popoverInstance);
|
|
29702
29759
|
}
|