@nebula.js/stardust 4.6.2 → 4.8.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 +480 -271
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +4 -4
- package/core/esm/index.js.map +1 -1
- package/core/package.json +2 -2
- package/dist/stardust.dev.js +561 -351
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +8 -8
- package/dist/stardust.js.map +1 -1
- package/package.json +13 -13
package/dist/stardust.dev.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v4.
|
|
2
|
+
* @nebula.js/stardust v4.8.0
|
|
3
3
|
* Copyright (c) 2023 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -6952,7 +6952,7 @@
|
|
|
6952
6952
|
}
|
|
6953
6953
|
|
|
6954
6954
|
/**
|
|
6955
|
-
* @mui/styled-engine v5.14.
|
|
6955
|
+
* @mui/styled-engine v5.14.18
|
|
6956
6956
|
*
|
|
6957
6957
|
* @license MIT
|
|
6958
6958
|
* This source code is licensed under the MIT license found in the
|
|
@@ -7000,7 +7000,7 @@
|
|
|
7000
7000
|
return target;
|
|
7001
7001
|
}
|
|
7002
7002
|
|
|
7003
|
-
const _excluded$
|
|
7003
|
+
const _excluded$S = ["values", "unit", "step"];
|
|
7004
7004
|
const sortBreakpointsValues = values => {
|
|
7005
7005
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
7006
7006
|
key,
|
|
@@ -7035,7 +7035,7 @@
|
|
|
7035
7035
|
unit = 'px',
|
|
7036
7036
|
step = 5
|
|
7037
7037
|
} = breakpoints,
|
|
7038
|
-
other = _objectWithoutPropertiesLoose$2(breakpoints, _excluded$
|
|
7038
|
+
other = _objectWithoutPropertiesLoose$2(breakpoints, _excluded$S);
|
|
7039
7039
|
const sortedValues = sortBreakpointsValues(values);
|
|
7040
7040
|
const keys = Object.keys(sortedValues);
|
|
7041
7041
|
function up(key) {
|
|
@@ -8088,7 +8088,7 @@
|
|
|
8088
8088
|
styleFunctionSx.filterProps = ['sx'];
|
|
8089
8089
|
var styleFunctionSx$1 = styleFunctionSx;
|
|
8090
8090
|
|
|
8091
|
-
const _excluded$
|
|
8091
|
+
const _excluded$R = ["breakpoints", "palette", "spacing", "shape"];
|
|
8092
8092
|
function createTheme$1(options = {}, ...args) {
|
|
8093
8093
|
const {
|
|
8094
8094
|
breakpoints: breakpointsInput = {},
|
|
@@ -8096,7 +8096,7 @@
|
|
|
8096
8096
|
spacing: spacingInput,
|
|
8097
8097
|
shape: shapeInput = {}
|
|
8098
8098
|
} = options,
|
|
8099
|
-
other = _objectWithoutPropertiesLoose$2(options, _excluded$
|
|
8099
|
+
other = _objectWithoutPropertiesLoose$2(options, _excluded$R);
|
|
8100
8100
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
8101
8101
|
const spacing = createSpacing(spacingInput);
|
|
8102
8102
|
let muiTheme = deepmerge({
|
|
@@ -8146,7 +8146,7 @@
|
|
|
8146
8146
|
});
|
|
8147
8147
|
}
|
|
8148
8148
|
|
|
8149
|
-
const _excluded$
|
|
8149
|
+
const _excluded$Q = ["sx"];
|
|
8150
8150
|
const splitProps = props => {
|
|
8151
8151
|
var _props$theme$unstable, _props$theme;
|
|
8152
8152
|
const result = {
|
|
@@ -8167,7 +8167,7 @@
|
|
|
8167
8167
|
const {
|
|
8168
8168
|
sx: inSx
|
|
8169
8169
|
} = props,
|
|
8170
|
-
other = _objectWithoutPropertiesLoose$2(props, _excluded$
|
|
8170
|
+
other = _objectWithoutPropertiesLoose$2(props, _excluded$Q);
|
|
8171
8171
|
const {
|
|
8172
8172
|
systemProps,
|
|
8173
8173
|
otherProps
|
|
@@ -8193,7 +8193,7 @@
|
|
|
8193
8193
|
|
|
8194
8194
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
8195
8195
|
|
|
8196
|
-
const _excluded$
|
|
8196
|
+
const _excluded$P = ["className", "component"];
|
|
8197
8197
|
function createBox(options = {}) {
|
|
8198
8198
|
const {
|
|
8199
8199
|
themeId,
|
|
@@ -8211,7 +8211,7 @@
|
|
|
8211
8211
|
className,
|
|
8212
8212
|
component = 'div'
|
|
8213
8213
|
} = _extendSxProp,
|
|
8214
|
-
other = _objectWithoutPropertiesLoose$2(_extendSxProp, _excluded$
|
|
8214
|
+
other = _objectWithoutPropertiesLoose$2(_extendSxProp, _excluded$P);
|
|
8215
8215
|
return /*#__PURE__*/jsxRuntimeExports.jsx(BoxRoot, _extends$3({
|
|
8216
8216
|
as: component,
|
|
8217
8217
|
ref: ref,
|
|
@@ -8222,7 +8222,7 @@
|
|
|
8222
8222
|
return Box;
|
|
8223
8223
|
}
|
|
8224
8224
|
|
|
8225
|
-
const _excluded$
|
|
8225
|
+
const _excluded$O = ["variant"];
|
|
8226
8226
|
function isEmpty$3(string) {
|
|
8227
8227
|
return string.length === 0;
|
|
8228
8228
|
}
|
|
@@ -8236,7 +8236,7 @@
|
|
|
8236
8236
|
const {
|
|
8237
8237
|
variant
|
|
8238
8238
|
} = props,
|
|
8239
|
-
other = _objectWithoutPropertiesLoose$2(props, _excluded$
|
|
8239
|
+
other = _objectWithoutPropertiesLoose$2(props, _excluded$O);
|
|
8240
8240
|
let classKey = variant || '';
|
|
8241
8241
|
Object.keys(other).sort().forEach(key => {
|
|
8242
8242
|
if (key === 'color') {
|
|
@@ -8248,7 +8248,7 @@
|
|
|
8248
8248
|
return classKey;
|
|
8249
8249
|
}
|
|
8250
8250
|
|
|
8251
|
-
const _excluded$
|
|
8251
|
+
const _excluded$N = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
8252
8252
|
function isEmpty$2(obj) {
|
|
8253
8253
|
return Object.keys(obj).length === 0;
|
|
8254
8254
|
}
|
|
@@ -8385,7 +8385,7 @@
|
|
|
8385
8385
|
// For more details: https://github.com/mui/material-ui/pull/37908
|
|
8386
8386
|
overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))
|
|
8387
8387
|
} = inputOptions,
|
|
8388
|
-
options = _objectWithoutPropertiesLoose$2(inputOptions, _excluded$
|
|
8388
|
+
options = _objectWithoutPropertiesLoose$2(inputOptions, _excluded$N);
|
|
8389
8389
|
|
|
8390
8390
|
// if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
|
8391
8391
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :
|
|
@@ -8888,7 +8888,7 @@
|
|
|
8888
8888
|
});
|
|
8889
8889
|
}
|
|
8890
8890
|
|
|
8891
|
-
const _excluded$
|
|
8891
|
+
const _excluded$M = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
|
|
8892
8892
|
const defaultTheme$3 = createTheme$1();
|
|
8893
8893
|
// widening Theme to any so that the consumer can own the theme structure.
|
|
8894
8894
|
const defaultCreateStyledComponent = systemStyled('div', {
|
|
@@ -9021,7 +9021,7 @@
|
|
|
9021
9021
|
className,
|
|
9022
9022
|
useFlexGap = false
|
|
9023
9023
|
} = props,
|
|
9024
|
-
other = _objectWithoutPropertiesLoose$2(props, _excluded$
|
|
9024
|
+
other = _objectWithoutPropertiesLoose$2(props, _excluded$M);
|
|
9025
9025
|
const ownerState = {
|
|
9026
9026
|
direction,
|
|
9027
9027
|
spacing,
|
|
@@ -9040,7 +9040,7 @@
|
|
|
9040
9040
|
return Stack;
|
|
9041
9041
|
}
|
|
9042
9042
|
|
|
9043
|
-
const _excluded$
|
|
9043
|
+
const _excluded$L = ["defaultProps", "mixins", "overrides", "palette", "props", "styleOverrides"],
|
|
9044
9044
|
_excluded2$4 = ["type", "mode"];
|
|
9045
9045
|
function adaptV4Theme(inputTheme) {
|
|
9046
9046
|
const {
|
|
@@ -9051,7 +9051,7 @@
|
|
|
9051
9051
|
props = {},
|
|
9052
9052
|
styleOverrides = {}
|
|
9053
9053
|
} = inputTheme,
|
|
9054
|
-
other = _objectWithoutPropertiesLoose$3(inputTheme, _excluded$
|
|
9054
|
+
other = _objectWithoutPropertiesLoose$3(inputTheme, _excluded$L);
|
|
9055
9055
|
const theme = _extends$5({}, other, {
|
|
9056
9056
|
components: {}
|
|
9057
9057
|
});
|
|
@@ -9264,7 +9264,7 @@
|
|
|
9264
9264
|
};
|
|
9265
9265
|
var green$1 = green;
|
|
9266
9266
|
|
|
9267
|
-
const _excluded$
|
|
9267
|
+
const _excluded$K = ["mode", "contrastThreshold", "tonalOffset"];
|
|
9268
9268
|
const light$1 = {
|
|
9269
9269
|
// The colors used to style the text.
|
|
9270
9270
|
text: {
|
|
@@ -9433,7 +9433,7 @@
|
|
|
9433
9433
|
contrastThreshold = 3,
|
|
9434
9434
|
tonalOffset = 0.2
|
|
9435
9435
|
} = palette,
|
|
9436
|
-
other = _objectWithoutPropertiesLoose$3(palette, _excluded$
|
|
9436
|
+
other = _objectWithoutPropertiesLoose$3(palette, _excluded$K);
|
|
9437
9437
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
9438
9438
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
9439
9439
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -9532,7 +9532,7 @@
|
|
|
9532
9532
|
return paletteOutput;
|
|
9533
9533
|
}
|
|
9534
9534
|
|
|
9535
|
-
const _excluded$
|
|
9535
|
+
const _excluded$J = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
9536
9536
|
function round$3(value) {
|
|
9537
9537
|
return Math.round(value * 1e5) / 1e5;
|
|
9538
9538
|
}
|
|
@@ -9563,7 +9563,7 @@
|
|
|
9563
9563
|
allVariants,
|
|
9564
9564
|
pxToRem: pxToRem2
|
|
9565
9565
|
} = _ref,
|
|
9566
|
-
other = _objectWithoutPropertiesLoose$3(_ref, _excluded$
|
|
9566
|
+
other = _objectWithoutPropertiesLoose$3(_ref, _excluded$J);
|
|
9567
9567
|
const coef = fontSize / 14;
|
|
9568
9568
|
const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);
|
|
9569
9569
|
const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => _extends$5({
|
|
@@ -9623,7 +9623,7 @@
|
|
|
9623
9623
|
const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
|
9624
9624
|
var shadows$1 = shadows;
|
|
9625
9625
|
|
|
9626
|
-
const _excluded$
|
|
9626
|
+
const _excluded$I = ["duration", "easing", "delay"];
|
|
9627
9627
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
|
9628
9628
|
// to learn the context in which each easing should be used.
|
|
9629
9629
|
const easing = {
|
|
@@ -9674,7 +9674,7 @@
|
|
|
9674
9674
|
easing: easingOption = mergedEasing.easeInOut,
|
|
9675
9675
|
delay = 0
|
|
9676
9676
|
} = options;
|
|
9677
|
-
_objectWithoutPropertiesLoose$3(options, _excluded$
|
|
9677
|
+
_objectWithoutPropertiesLoose$3(options, _excluded$I);
|
|
9678
9678
|
return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');
|
|
9679
9679
|
};
|
|
9680
9680
|
return _extends$5({
|
|
@@ -9700,7 +9700,7 @@
|
|
|
9700
9700
|
};
|
|
9701
9701
|
var zIndex$1 = zIndex;
|
|
9702
9702
|
|
|
9703
|
-
const _excluded$
|
|
9703
|
+
const _excluded$H = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
9704
9704
|
function createTheme(options = {}, ...args) {
|
|
9705
9705
|
const {
|
|
9706
9706
|
mixins: mixinsInput = {},
|
|
@@ -9708,7 +9708,7 @@
|
|
|
9708
9708
|
transitions: transitionsInput = {},
|
|
9709
9709
|
typography: typographyInput = {}
|
|
9710
9710
|
} = options,
|
|
9711
|
-
other = _objectWithoutPropertiesLoose$3(options, _excluded$
|
|
9711
|
+
other = _objectWithoutPropertiesLoose$3(options, _excluded$H);
|
|
9712
9712
|
if (options.vars) {
|
|
9713
9713
|
throw new Error(formatMuiErrorMessage(18));
|
|
9714
9714
|
}
|
|
@@ -9763,12 +9763,12 @@
|
|
|
9763
9763
|
});
|
|
9764
9764
|
var styled$1 = styled;
|
|
9765
9765
|
|
|
9766
|
-
const _excluded$
|
|
9766
|
+
const _excluded$G = ["theme"];
|
|
9767
9767
|
function ThemeProvider(_ref) {
|
|
9768
9768
|
let {
|
|
9769
9769
|
theme: themeInput
|
|
9770
9770
|
} = _ref,
|
|
9771
|
-
props = _objectWithoutPropertiesLoose$3(_ref, _excluded$
|
|
9771
|
+
props = _objectWithoutPropertiesLoose$3(_ref, _excluded$G);
|
|
9772
9772
|
const scopedTheme = themeInput[THEME_ID];
|
|
9773
9773
|
return /*#__PURE__*/jsxRuntimeExports.jsx(ThemeProvider$1, _extends$5({}, props, {
|
|
9774
9774
|
themeId: scopedTheme ? THEME_ID : undefined,
|
|
@@ -10593,7 +10593,7 @@
|
|
|
10593
10593
|
const touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);
|
|
10594
10594
|
var touchRippleClasses$1 = touchRippleClasses;
|
|
10595
10595
|
|
|
10596
|
-
const _excluded$
|
|
10596
|
+
const _excluded$F = ["center", "classes", "className"];
|
|
10597
10597
|
let _$1 = t => t,
|
|
10598
10598
|
_t$1,
|
|
10599
10599
|
_t2$1,
|
|
@@ -10722,7 +10722,7 @@
|
|
|
10722
10722
|
classes = {},
|
|
10723
10723
|
className
|
|
10724
10724
|
} = props,
|
|
10725
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
10725
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$F);
|
|
10726
10726
|
const [ripples, setRipples] = reactExports.useState([]);
|
|
10727
10727
|
const nextKey = reactExports.useRef(0);
|
|
10728
10728
|
const rippleCallback = reactExports.useRef(null);
|
|
@@ -10909,7 +10909,7 @@
|
|
|
10909
10909
|
const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
|
|
10910
10910
|
var buttonBaseClasses$1 = buttonBaseClasses;
|
|
10911
10911
|
|
|
10912
|
-
const _excluded$
|
|
10912
|
+
const _excluded$E = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
|
|
10913
10913
|
const useUtilityClasses$r = ownerState => {
|
|
10914
10914
|
const {
|
|
10915
10915
|
disabled,
|
|
@@ -11011,7 +11011,7 @@
|
|
|
11011
11011
|
touchRippleRef,
|
|
11012
11012
|
type
|
|
11013
11013
|
} = props,
|
|
11014
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
11014
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$E);
|
|
11015
11015
|
const buttonRef = reactExports.useRef(null);
|
|
11016
11016
|
const rippleRef = reactExports.useRef(null);
|
|
11017
11017
|
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
|
@@ -11221,7 +11221,7 @@
|
|
|
11221
11221
|
const ButtonGroupButtonContext = /*#__PURE__*/reactExports.createContext(undefined);
|
|
11222
11222
|
var ButtonGroupButtonContext$1 = ButtonGroupButtonContext;
|
|
11223
11223
|
|
|
11224
|
-
const _excluded$
|
|
11224
|
+
const _excluded$D = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
11225
11225
|
const useUtilityClasses$q = ownerState => {
|
|
11226
11226
|
const {
|
|
11227
11227
|
color,
|
|
@@ -11448,7 +11448,7 @@
|
|
|
11448
11448
|
type,
|
|
11449
11449
|
variant = 'text'
|
|
11450
11450
|
} = props,
|
|
11451
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
11451
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$D);
|
|
11452
11452
|
const ownerState = _extends$5({}, props, {
|
|
11453
11453
|
color,
|
|
11454
11454
|
component,
|
|
@@ -11820,7 +11820,7 @@
|
|
|
11820
11820
|
return cache[key];
|
|
11821
11821
|
}
|
|
11822
11822
|
|
|
11823
|
-
const NEBULA_VERSION_HASH = "
|
|
11823
|
+
const NEBULA_VERSION_HASH = "f910" ;
|
|
11824
11824
|
ClassNameGenerator$1.configure(componentName => {
|
|
11825
11825
|
return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
|
|
11826
11826
|
});
|
|
@@ -12081,7 +12081,7 @@
|
|
|
12081
12081
|
const appRef = React.createRef();
|
|
12082
12082
|
const element = document.createElement('div');
|
|
12083
12083
|
element.style.display = 'none';
|
|
12084
|
-
element.setAttribute('data-nebulajs-version', "4.
|
|
12084
|
+
element.setAttribute('data-nebulajs-version', "4.8.0" );
|
|
12085
12085
|
element.setAttribute('data-app-id', app.id);
|
|
12086
12086
|
document.body.appendChild(element);
|
|
12087
12087
|
if (context) {
|
|
@@ -12154,7 +12154,7 @@
|
|
|
12154
12154
|
}
|
|
12155
12155
|
generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
|
12156
12156
|
|
|
12157
|
-
const _excluded$
|
|
12157
|
+
const _excluded$C = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
12158
12158
|
const useUtilityClasses$p = ownerState => {
|
|
12159
12159
|
const {
|
|
12160
12160
|
color,
|
|
@@ -12222,7 +12222,7 @@
|
|
|
12222
12222
|
titleAccess,
|
|
12223
12223
|
viewBox = '0 0 24 24'
|
|
12224
12224
|
} = props,
|
|
12225
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
12225
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$C);
|
|
12226
12226
|
const hasSvgAsChild = /*#__PURE__*/reactExports.isValidElement(children) && children.type === 'svg';
|
|
12227
12227
|
const ownerState = _extends$5({}, props, {
|
|
12228
12228
|
color,
|
|
@@ -12319,7 +12319,7 @@
|
|
|
12319
12319
|
}
|
|
12320
12320
|
generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
|
|
12321
12321
|
|
|
12322
|
-
const _excluded$
|
|
12322
|
+
const _excluded$B = ["className", "component", "elevation", "square", "variant"];
|
|
12323
12323
|
const useUtilityClasses$o = ownerState => {
|
|
12324
12324
|
const {
|
|
12325
12325
|
square,
|
|
@@ -12374,7 +12374,7 @@
|
|
|
12374
12374
|
square = false,
|
|
12375
12375
|
variant = 'elevation'
|
|
12376
12376
|
} = props,
|
|
12377
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
12377
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$B);
|
|
12378
12378
|
const ownerState = _extends$5({}, props, {
|
|
12379
12379
|
component,
|
|
12380
12380
|
elevation,
|
|
@@ -12397,7 +12397,7 @@
|
|
|
12397
12397
|
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
12398
12398
|
var iconButtonClasses$1 = iconButtonClasses;
|
|
12399
12399
|
|
|
12400
|
-
const _excluded$
|
|
12400
|
+
const _excluded$A = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
|
|
12401
12401
|
const useUtilityClasses$n = ownerState => {
|
|
12402
12402
|
const {
|
|
12403
12403
|
classes,
|
|
@@ -12498,7 +12498,7 @@
|
|
|
12498
12498
|
disableFocusRipple = false,
|
|
12499
12499
|
size = 'medium'
|
|
12500
12500
|
} = props,
|
|
12501
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
12501
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$A);
|
|
12502
12502
|
const ownerState = _extends$5({}, props, {
|
|
12503
12503
|
edge,
|
|
12504
12504
|
color,
|
|
@@ -12525,7 +12525,7 @@
|
|
|
12525
12525
|
}
|
|
12526
12526
|
generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);
|
|
12527
12527
|
|
|
12528
|
-
const _excluded$
|
|
12528
|
+
const _excluded$z = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
|
|
12529
12529
|
const useUtilityClasses$m = ownerState => {
|
|
12530
12530
|
const {
|
|
12531
12531
|
align,
|
|
@@ -12612,7 +12612,7 @@
|
|
|
12612
12612
|
variant = 'body1',
|
|
12613
12613
|
variantMapping = defaultVariantMapping
|
|
12614
12614
|
} = props,
|
|
12615
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
12615
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$z);
|
|
12616
12616
|
const ownerState = _extends$5({}, props, {
|
|
12617
12617
|
align,
|
|
12618
12618
|
color,
|
|
@@ -12829,7 +12829,7 @@
|
|
|
12829
12829
|
};
|
|
12830
12830
|
}
|
|
12831
12831
|
|
|
12832
|
-
const _excluded$
|
|
12832
|
+
const _excluded$y = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
|
|
12833
12833
|
/**
|
|
12834
12834
|
* @ignore - do not document.
|
|
12835
12835
|
* Builds the props to be passed into the slot of an unstyled component.
|
|
@@ -12846,7 +12846,7 @@
|
|
|
12846
12846
|
ownerState,
|
|
12847
12847
|
skipResolvingSlotProps = false
|
|
12848
12848
|
} = parameters,
|
|
12849
|
-
rest = _objectWithoutPropertiesLoose(parameters, _excluded$
|
|
12849
|
+
rest = _objectWithoutPropertiesLoose(parameters, _excluded$y);
|
|
12850
12850
|
const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);
|
|
12851
12851
|
const {
|
|
12852
12852
|
props: mergedProps,
|
|
@@ -15021,7 +15021,7 @@
|
|
|
15021
15021
|
}
|
|
15022
15022
|
generateUtilityClasses('MuiPopper', ['root']);
|
|
15023
15023
|
|
|
15024
|
-
const _excluded$
|
|
15024
|
+
const _excluded$x = ["anchorEl", "children", "direction", "disablePortal", "modifiers", "open", "placement", "popperOptions", "popperRef", "slotProps", "slots", "TransitionProps", "ownerState"],
|
|
15025
15025
|
_excluded2$3 = ["anchorEl", "children", "container", "direction", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "style", "transition", "slotProps", "slots"];
|
|
15026
15026
|
function flipPlacement(placement, direction) {
|
|
15027
15027
|
if (direction === 'ltr') {
|
|
@@ -15071,7 +15071,7 @@
|
|
|
15071
15071
|
// @ts-ignore internal logic
|
|
15072
15072
|
// prevent from spreading to DOM, it can come from the parent component e.g. Select.
|
|
15073
15073
|
} = props,
|
|
15074
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15074
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$x);
|
|
15075
15075
|
const tooltipRef = reactExports.useRef(null);
|
|
15076
15076
|
const ownRef = useForkRef(tooltipRef, forwardedRef);
|
|
15077
15077
|
const popperRef = reactExports.useRef(null);
|
|
@@ -15575,7 +15575,9 @@
|
|
|
15575
15575
|
// clicking a checkbox to check it, hitting a button to submit a form,
|
|
15576
15576
|
// and hitting left arrow to move the cursor in a text input etc.
|
|
15577
15577
|
// Only special HTML elements have these default behaviors.
|
|
15578
|
-
if (event.key !== 'Escape' ||
|
|
15578
|
+
if (event.key !== 'Escape' || event.which === 229 ||
|
|
15579
|
+
// Wait until IME is settled.
|
|
15580
|
+
!isTopModal()) {
|
|
15579
15581
|
return;
|
|
15580
15582
|
}
|
|
15581
15583
|
if (!disableEscapeKeyDown) {
|
|
@@ -15652,7 +15654,7 @@
|
|
|
15652
15654
|
};
|
|
15653
15655
|
}
|
|
15654
15656
|
|
|
15655
|
-
const _excluded$
|
|
15657
|
+
const _excluded$w = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
15656
15658
|
function getStyleValue(value) {
|
|
15657
15659
|
return parseInt(value, 10) || 0;
|
|
15658
15660
|
}
|
|
@@ -15694,7 +15696,7 @@
|
|
|
15694
15696
|
style,
|
|
15695
15697
|
value
|
|
15696
15698
|
} = props,
|
|
15697
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15699
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$w);
|
|
15698
15700
|
const {
|
|
15699
15701
|
current: isControlled
|
|
15700
15702
|
} = reactExports.useRef(value != null);
|
|
@@ -15863,7 +15865,7 @@
|
|
|
15863
15865
|
});
|
|
15864
15866
|
});
|
|
15865
15867
|
|
|
15866
|
-
const _excluded$
|
|
15868
|
+
const _excluded$v = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"];
|
|
15867
15869
|
const PopperRoot = styled$1(Popper$2, {
|
|
15868
15870
|
name: 'MuiPopper',
|
|
15869
15871
|
slot: 'Root',
|
|
@@ -15906,7 +15908,7 @@
|
|
|
15906
15908
|
slots,
|
|
15907
15909
|
slotProps
|
|
15908
15910
|
} = props,
|
|
15909
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
15911
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$v);
|
|
15910
15912
|
const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
|
|
15911
15913
|
const otherProps = _extends$5({
|
|
15912
15914
|
anchorEl,
|
|
@@ -15993,7 +15995,7 @@
|
|
|
15993
15995
|
const inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
|
|
15994
15996
|
var inputBaseClasses$1 = inputBaseClasses;
|
|
15995
15997
|
|
|
15996
|
-
const _excluded$
|
|
15998
|
+
const _excluded$u = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"];
|
|
15997
15999
|
const rootOverridesResolver = (props, styles) => {
|
|
15998
16000
|
const {
|
|
15999
16001
|
ownerState
|
|
@@ -16224,7 +16226,7 @@
|
|
|
16224
16226
|
type = 'text',
|
|
16225
16227
|
value: valueProp
|
|
16226
16228
|
} = props,
|
|
16227
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
16229
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$u);
|
|
16228
16230
|
const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
|
|
16229
16231
|
const {
|
|
16230
16232
|
current: isControlled
|
|
@@ -16437,7 +16439,7 @@
|
|
|
16437
16439
|
const outlinedInputClasses = _extends$5({}, inputBaseClasses$1, generateUtilityClasses('MuiOutlinedInput', ['root', 'notchedOutline', 'input']));
|
|
16438
16440
|
var outlinedInputClasses$1 = outlinedInputClasses;
|
|
16439
16441
|
|
|
16440
|
-
const _excluded$
|
|
16442
|
+
const _excluded$t = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
16441
16443
|
const styles$1 = {
|
|
16442
16444
|
entering: {
|
|
16443
16445
|
opacity: 1
|
|
@@ -16474,7 +16476,7 @@
|
|
|
16474
16476
|
// eslint-disable-next-line react/prop-types
|
|
16475
16477
|
TransitionComponent = Transition$1
|
|
16476
16478
|
} = props,
|
|
16477
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
16479
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$t);
|
|
16478
16480
|
const nodeRef = reactExports.useRef(null);
|
|
16479
16481
|
const handleRef = useForkRef(nodeRef, children.ref, ref);
|
|
16480
16482
|
const normalizedTransitionCallback = callback => maybeIsAppearing => {
|
|
@@ -16560,7 +16562,7 @@
|
|
|
16560
16562
|
}
|
|
16561
16563
|
generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
|
16562
16564
|
|
|
16563
|
-
const _excluded$
|
|
16565
|
+
const _excluded$s = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
|
|
16564
16566
|
const useUtilityClasses$j = ownerState => {
|
|
16565
16567
|
const {
|
|
16566
16568
|
classes,
|
|
@@ -16615,7 +16617,7 @@
|
|
|
16615
16617
|
TransitionComponent = Fade$1,
|
|
16616
16618
|
transitionDuration
|
|
16617
16619
|
} = props,
|
|
16618
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
16620
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$s);
|
|
16619
16621
|
const ownerState = _extends$5({}, props, {
|
|
16620
16622
|
component,
|
|
16621
16623
|
invisible
|
|
@@ -16648,7 +16650,7 @@
|
|
|
16648
16650
|
'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']);
|
|
16649
16651
|
var badgeClasses$1 = badgeClasses;
|
|
16650
16652
|
|
|
16651
|
-
const _excluded$
|
|
16653
|
+
const _excluded$r = ["anchorOrigin", "className", "classes", "component", "components", "componentsProps", "children", "overlap", "color", "invisible", "max", "badgeContent", "slots", "slotProps", "showZero", "variant"];
|
|
16652
16654
|
const RADIUS_STANDARD = 10;
|
|
16653
16655
|
const RADIUS_DOT = 4;
|
|
16654
16656
|
const useUtilityClasses$i = ownerState => {
|
|
@@ -16816,7 +16818,7 @@
|
|
|
16816
16818
|
showZero = false,
|
|
16817
16819
|
variant: variantProp = 'standard'
|
|
16818
16820
|
} = props,
|
|
16819
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
16821
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$r);
|
|
16820
16822
|
const {
|
|
16821
16823
|
badgeContent,
|
|
16822
16824
|
invisible: invisibleFromHook,
|
|
@@ -16900,7 +16902,7 @@
|
|
|
16900
16902
|
}
|
|
16901
16903
|
generateUtilityClasses('PrivateSwitchBase', ['root', 'checked', 'disabled', 'input', 'edgeStart', 'edgeEnd']);
|
|
16902
16904
|
|
|
16903
|
-
const _excluded$
|
|
16905
|
+
const _excluded$q = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"];
|
|
16904
16906
|
const useUtilityClasses$h = ownerState => {
|
|
16905
16907
|
const {
|
|
16906
16908
|
classes,
|
|
@@ -16966,7 +16968,7 @@
|
|
|
16966
16968
|
type,
|
|
16967
16969
|
value
|
|
16968
16970
|
} = props,
|
|
16969
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
16971
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$q);
|
|
16970
16972
|
const [checked, setCheckedState] = useControlled({
|
|
16971
16973
|
controlled: checkedProp,
|
|
16972
16974
|
default: Boolean(defaultChecked),
|
|
@@ -17069,7 +17071,7 @@
|
|
|
17069
17071
|
const checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium']);
|
|
17070
17072
|
var checkboxClasses$1 = checkboxClasses;
|
|
17071
17073
|
|
|
17072
|
-
const _excluded$
|
|
17074
|
+
const _excluded$p = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"];
|
|
17073
17075
|
const useUtilityClasses$g = ownerState => {
|
|
17074
17076
|
const {
|
|
17075
17077
|
classes,
|
|
@@ -17133,7 +17135,7 @@
|
|
|
17133
17135
|
size = 'medium',
|
|
17134
17136
|
className
|
|
17135
17137
|
} = props,
|
|
17136
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
17138
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$p);
|
|
17137
17139
|
const icon = indeterminate ? indeterminateIconProp : iconProp;
|
|
17138
17140
|
const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
|
17139
17141
|
const ownerState = _extends$5({}, props, {
|
|
@@ -17167,7 +17169,7 @@
|
|
|
17167
17169
|
}
|
|
17168
17170
|
generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
|
|
17169
17171
|
|
|
17170
|
-
const _excluded$
|
|
17172
|
+
const _excluded$o = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
17171
17173
|
let _ = t => t,
|
|
17172
17174
|
_t,
|
|
17173
17175
|
_t2,
|
|
@@ -17292,7 +17294,7 @@
|
|
|
17292
17294
|
value = 0,
|
|
17293
17295
|
variant = 'indeterminate'
|
|
17294
17296
|
} = props,
|
|
17295
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
17297
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$o);
|
|
17296
17298
|
const ownerState = _extends$5({}, props, {
|
|
17297
17299
|
color,
|
|
17298
17300
|
disableShrink,
|
|
@@ -17346,7 +17348,7 @@
|
|
|
17346
17348
|
}
|
|
17347
17349
|
generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
|
|
17348
17350
|
|
|
17349
|
-
const _excluded$
|
|
17351
|
+
const _excluded$n = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"];
|
|
17350
17352
|
const useUtilityClasses$e = ownerState => {
|
|
17351
17353
|
const {
|
|
17352
17354
|
open,
|
|
@@ -17434,7 +17436,7 @@
|
|
|
17434
17436
|
slots
|
|
17435
17437
|
// eslint-disable-next-line react/prop-types
|
|
17436
17438
|
} = props,
|
|
17437
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
17439
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$n);
|
|
17438
17440
|
const propsWithDefaults = _extends$5({}, props, {
|
|
17439
17441
|
closeAfterTransition,
|
|
17440
17442
|
disableAutoFocus,
|
|
@@ -17537,7 +17539,7 @@
|
|
|
17537
17539
|
const dividerClasses = generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
|
|
17538
17540
|
var dividerClasses$1 = dividerClasses;
|
|
17539
17541
|
|
|
17540
|
-
const _excluded$
|
|
17542
|
+
const _excluded$m = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"];
|
|
17541
17543
|
const useUtilityClasses$d = ownerState => {
|
|
17542
17544
|
const {
|
|
17543
17545
|
absolute,
|
|
@@ -17679,7 +17681,7 @@
|
|
|
17679
17681
|
textAlign = 'center',
|
|
17680
17682
|
variant = 'fullWidth'
|
|
17681
17683
|
} = props,
|
|
17682
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
17684
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$m);
|
|
17683
17685
|
const ownerState = _extends$5({}, props, {
|
|
17684
17686
|
absolute,
|
|
17685
17687
|
component,
|
|
@@ -17732,7 +17734,7 @@
|
|
|
17732
17734
|
const formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk']);
|
|
17733
17735
|
var formControlLabelClasses$1 = formControlLabelClasses;
|
|
17734
17736
|
|
|
17735
|
-
const _excluded$
|
|
17737
|
+
const _excluded$l = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"];
|
|
17736
17738
|
const useUtilityClasses$c = ownerState => {
|
|
17737
17739
|
const {
|
|
17738
17740
|
classes,
|
|
@@ -17826,7 +17828,7 @@
|
|
|
17826
17828
|
required: requiredProp,
|
|
17827
17829
|
slotProps = {}
|
|
17828
17830
|
} = props,
|
|
17829
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
17831
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$l);
|
|
17830
17832
|
const muiFormControl = useFormControl();
|
|
17831
17833
|
const disabled = (_ref = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref : muiFormControl == null ? void 0 : muiFormControl.disabled;
|
|
17832
17834
|
const required = requiredProp != null ? requiredProp : control.props.required;
|
|
@@ -17867,8 +17869,7 @@
|
|
|
17867
17869
|
ref: ref
|
|
17868
17870
|
}, other, {
|
|
17869
17871
|
children: [/*#__PURE__*/reactExports.cloneElement(control, controlProps), required ? /*#__PURE__*/jsxRuntimeExports.jsxs(Stack$1, {
|
|
17870
|
-
|
|
17871
|
-
alignItems: "center",
|
|
17872
|
+
display: "block",
|
|
17872
17873
|
children: [label, /*#__PURE__*/jsxRuntimeExports.jsxs(AsteriskComponent, {
|
|
17873
17874
|
ownerState: ownerState,
|
|
17874
17875
|
"aria-hidden": true,
|
|
@@ -17903,7 +17904,7 @@
|
|
|
17903
17904
|
// grid sizes for all breakpoints
|
|
17904
17905
|
...GRID_SIZES.map(size => `grid-xs-${size}`), ...GRID_SIZES.map(size => `grid-sm-${size}`), ...GRID_SIZES.map(size => `grid-md-${size}`), ...GRID_SIZES.map(size => `grid-lg-${size}`), ...GRID_SIZES.map(size => `grid-xl-${size}`)]);
|
|
17905
17906
|
|
|
17906
|
-
const _excluded$
|
|
17907
|
+
const _excluded$k = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
17907
17908
|
function getOffset$1(val) {
|
|
17908
17909
|
const parse = parseFloat(val);
|
|
17909
17910
|
return `${parse}${String(val).replace(String(parse), '') || 'px'}`;
|
|
@@ -18263,7 +18264,7 @@
|
|
|
18263
18264
|
wrap = 'wrap',
|
|
18264
18265
|
zeroMinWidth = false
|
|
18265
18266
|
} = props,
|
|
18266
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18267
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$k);
|
|
18267
18268
|
const rowSpacing = rowSpacingProp || spacing;
|
|
18268
18269
|
const columnSpacing = columnSpacingProp || spacing;
|
|
18269
18270
|
const columnsContext = reactExports.useContext(GridContext$1);
|
|
@@ -18304,7 +18305,7 @@
|
|
|
18304
18305
|
});
|
|
18305
18306
|
var Grid$1 = Grid;
|
|
18306
18307
|
|
|
18307
|
-
const _excluded$
|
|
18308
|
+
const _excluded$j = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
18308
18309
|
function getScale(value) {
|
|
18309
18310
|
return `scale(${value}, ${value ** 2})`;
|
|
18310
18311
|
}
|
|
@@ -18348,7 +18349,7 @@
|
|
|
18348
18349
|
// eslint-disable-next-line react/prop-types
|
|
18349
18350
|
TransitionComponent = Transition$1
|
|
18350
18351
|
} = props,
|
|
18351
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18352
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$j);
|
|
18352
18353
|
const timer = reactExports.useRef();
|
|
18353
18354
|
const autoTimeout = reactExports.useRef();
|
|
18354
18355
|
const theme = useTheme$1();
|
|
@@ -18483,7 +18484,7 @@
|
|
|
18483
18484
|
}
|
|
18484
18485
|
generateUtilityClasses('MuiIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
|
18485
18486
|
|
|
18486
|
-
const _excluded$
|
|
18487
|
+
const _excluded$i = ["baseClassName", "className", "color", "component", "fontSize"];
|
|
18487
18488
|
const useUtilityClasses$a = ownerState => {
|
|
18488
18489
|
const {
|
|
18489
18490
|
color,
|
|
@@ -18550,7 +18551,7 @@
|
|
|
18550
18551
|
component: Component = 'span',
|
|
18551
18552
|
fontSize = 'medium'
|
|
18552
18553
|
} = props,
|
|
18553
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18554
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$i);
|
|
18554
18555
|
const ownerState = _extends$5({}, props, {
|
|
18555
18556
|
baseClassName,
|
|
18556
18557
|
color,
|
|
@@ -18579,7 +18580,7 @@
|
|
|
18579
18580
|
var inputAdornmentClasses$1 = inputAdornmentClasses;
|
|
18580
18581
|
|
|
18581
18582
|
var _span$1;
|
|
18582
|
-
const _excluded$
|
|
18583
|
+
const _excluded$h = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"];
|
|
18583
18584
|
const overridesResolver$2 = (props, styles) => {
|
|
18584
18585
|
const {
|
|
18585
18586
|
ownerState
|
|
@@ -18644,7 +18645,7 @@
|
|
|
18644
18645
|
position,
|
|
18645
18646
|
variant: variantProp
|
|
18646
18647
|
} = props,
|
|
18647
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18648
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$h);
|
|
18648
18649
|
const muiFormControl = useFormControl() || {};
|
|
18649
18650
|
let variant = variantProp;
|
|
18650
18651
|
if (variantProp && muiFormControl.variant) ;
|
|
@@ -18692,7 +18693,7 @@
|
|
|
18692
18693
|
}
|
|
18693
18694
|
generateUtilityClasses('MuiList', ['root', 'padding', 'dense', 'subheader']);
|
|
18694
18695
|
|
|
18695
|
-
const _excluded$
|
|
18696
|
+
const _excluded$g = ["children", "className", "component", "dense", "disablePadding", "subheader"];
|
|
18696
18697
|
const useUtilityClasses$8 = ownerState => {
|
|
18697
18698
|
const {
|
|
18698
18699
|
classes,
|
|
@@ -18740,7 +18741,7 @@
|
|
|
18740
18741
|
disablePadding = false,
|
|
18741
18742
|
subheader
|
|
18742
18743
|
} = props,
|
|
18743
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18744
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$g);
|
|
18744
18745
|
const context = reactExports.useMemo(() => ({
|
|
18745
18746
|
dense
|
|
18746
18747
|
}), [dense]);
|
|
@@ -18778,7 +18779,7 @@
|
|
|
18778
18779
|
}
|
|
18779
18780
|
generateUtilityClasses('MuiListItemSecondaryAction', ['root', 'disableGutters']);
|
|
18780
18781
|
|
|
18781
|
-
const _excluded$
|
|
18782
|
+
const _excluded$f = ["className"];
|
|
18782
18783
|
const useUtilityClasses$7 = ownerState => {
|
|
18783
18784
|
const {
|
|
18784
18785
|
disableGutters,
|
|
@@ -18820,7 +18821,7 @@
|
|
|
18820
18821
|
const {
|
|
18821
18822
|
className
|
|
18822
18823
|
} = props,
|
|
18823
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18824
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$f);
|
|
18824
18825
|
const context = reactExports.useContext(ListContext$1);
|
|
18825
18826
|
const ownerState = _extends$5({}, props, {
|
|
18826
18827
|
disableGutters: context.disableGutters
|
|
@@ -18835,7 +18836,7 @@
|
|
|
18835
18836
|
ListItemSecondaryAction.muiName = 'ListItemSecondaryAction';
|
|
18836
18837
|
var ListItemSecondaryAction$1 = ListItemSecondaryAction;
|
|
18837
18838
|
|
|
18838
|
-
const _excluded$
|
|
18839
|
+
const _excluded$e = ["className"],
|
|
18839
18840
|
_excluded2$2 = ["alignItems", "autoFocus", "button", "children", "className", "component", "components", "componentsProps", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "disablePadding", "divider", "focusVisibleClassName", "secondaryAction", "selected", "slotProps", "slots"];
|
|
18840
18841
|
const overridesResolver$1 = (props, styles) => {
|
|
18841
18842
|
const {
|
|
@@ -18977,7 +18978,7 @@
|
|
|
18977
18978
|
slotProps = {},
|
|
18978
18979
|
slots = {}
|
|
18979
18980
|
} = props,
|
|
18980
|
-
ContainerProps = _objectWithoutPropertiesLoose$3(props.ContainerProps, _excluded$
|
|
18981
|
+
ContainerProps = _objectWithoutPropertiesLoose$3(props.ContainerProps, _excluded$e),
|
|
18981
18982
|
other = _objectWithoutPropertiesLoose$3(props, _excluded2$2);
|
|
18982
18983
|
const context = reactExports.useContext(ListContext$1);
|
|
18983
18984
|
const childContext = reactExports.useMemo(() => ({
|
|
@@ -19076,7 +19077,7 @@
|
|
|
19076
19077
|
const listItemIconClasses = generateUtilityClasses('MuiListItemIcon', ['root', 'alignItemsFlexStart']);
|
|
19077
19078
|
var listItemIconClasses$1 = listItemIconClasses;
|
|
19078
19079
|
|
|
19079
|
-
const _excluded$
|
|
19080
|
+
const _excluded$d = ["className"];
|
|
19080
19081
|
const useUtilityClasses$5 = ownerState => {
|
|
19081
19082
|
const {
|
|
19082
19083
|
alignItems,
|
|
@@ -19119,7 +19120,7 @@
|
|
|
19119
19120
|
const {
|
|
19120
19121
|
className
|
|
19121
19122
|
} = props,
|
|
19122
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
19123
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$d);
|
|
19123
19124
|
const context = reactExports.useContext(ListContext$1);
|
|
19124
19125
|
const ownerState = _extends$5({}, props, {
|
|
19125
19126
|
alignItems: context.alignItems
|
|
@@ -19136,7 +19137,7 @@
|
|
|
19136
19137
|
const listItemTextClasses = generateUtilityClasses('MuiListItemText', ['root', 'multiline', 'dense', 'inset', 'primary', 'secondary']);
|
|
19137
19138
|
var listItemTextClasses$1 = listItemTextClasses;
|
|
19138
19139
|
|
|
19139
|
-
const _excluded$
|
|
19140
|
+
const _excluded$c = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
|
|
19140
19141
|
function nextItem(list, item, disableListWrap) {
|
|
19141
19142
|
if (list === item) {
|
|
19142
19143
|
return list.firstChild;
|
|
@@ -19218,7 +19219,7 @@
|
|
|
19218
19219
|
onKeyDown,
|
|
19219
19220
|
variant = 'selectedMenu'
|
|
19220
19221
|
} = props,
|
|
19221
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
19222
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$c);
|
|
19222
19223
|
const listRef = reactExports.useRef(null);
|
|
19223
19224
|
const textCriteriaRef = reactExports.useRef({
|
|
19224
19225
|
keys: [],
|
|
@@ -19361,7 +19362,7 @@
|
|
|
19361
19362
|
}
|
|
19362
19363
|
generateUtilityClasses('MuiPopover', ['root', 'paper']);
|
|
19363
19364
|
|
|
19364
|
-
const _excluded$
|
|
19365
|
+
const _excluded$b = ["onEntering"],
|
|
19365
19366
|
_excluded2$1 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"],
|
|
19366
19367
|
_excluded3 = ["slotProps"];
|
|
19367
19368
|
function getOffsetTop(rect, vertical) {
|
|
@@ -19459,7 +19460,7 @@
|
|
|
19459
19460
|
} = {},
|
|
19460
19461
|
disableScrollLock = false
|
|
19461
19462
|
} = props,
|
|
19462
|
-
TransitionProps = _objectWithoutPropertiesLoose$3(props.TransitionProps, _excluded$
|
|
19463
|
+
TransitionProps = _objectWithoutPropertiesLoose$3(props.TransitionProps, _excluded$b),
|
|
19463
19464
|
other = _objectWithoutPropertiesLoose$3(props, _excluded2$1);
|
|
19464
19465
|
const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
|
|
19465
19466
|
const paperRef = reactExports.useRef();
|
|
@@ -19686,7 +19687,7 @@
|
|
|
19686
19687
|
const menuItemClasses = generateUtilityClasses('MuiMenuItem', ['root', 'focusVisible', 'dense', 'disabled', 'divider', 'gutters', 'selected']);
|
|
19687
19688
|
var menuItemClasses$1 = menuItemClasses;
|
|
19688
19689
|
|
|
19689
|
-
const _excluded$
|
|
19690
|
+
const _excluded$a = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex", "className"];
|
|
19690
19691
|
const overridesResolver = (props, styles) => {
|
|
19691
19692
|
const {
|
|
19692
19693
|
ownerState
|
|
@@ -19808,7 +19809,7 @@
|
|
|
19808
19809
|
tabIndex: tabIndexProp,
|
|
19809
19810
|
className
|
|
19810
19811
|
} = props,
|
|
19811
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
19812
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$a);
|
|
19812
19813
|
const context = reactExports.useContext(ListContext$1);
|
|
19813
19814
|
const childContext = reactExports.useMemo(() => ({
|
|
19814
19815
|
dense: dense || context.dense || false,
|
|
@@ -19851,7 +19852,7 @@
|
|
|
19851
19852
|
var MenuItem$1 = MenuItem;
|
|
19852
19853
|
|
|
19853
19854
|
var _span;
|
|
19854
|
-
const _excluded$
|
|
19855
|
+
const _excluded$9 = ["children", "classes", "className", "label", "notched"];
|
|
19855
19856
|
const NotchedOutlineRoot$1 = styled$1('fieldset', {
|
|
19856
19857
|
shouldForwardProp: rootShouldForwardProp
|
|
19857
19858
|
})({
|
|
@@ -19928,7 +19929,7 @@
|
|
|
19928
19929
|
label,
|
|
19929
19930
|
notched
|
|
19930
19931
|
} = props,
|
|
19931
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
19932
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$9);
|
|
19932
19933
|
const withLabel = label != null && label !== '';
|
|
19933
19934
|
const ownerState = _extends$5({}, props, {
|
|
19934
19935
|
notched,
|
|
@@ -19952,7 +19953,7 @@
|
|
|
19952
19953
|
}));
|
|
19953
19954
|
}
|
|
19954
19955
|
|
|
19955
|
-
const _excluded$
|
|
19956
|
+
const _excluded$8 = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
|
|
19956
19957
|
const useUtilityClasses$2 = ownerState => {
|
|
19957
19958
|
const {
|
|
19958
19959
|
classes
|
|
@@ -20071,7 +20072,7 @@
|
|
|
20071
20072
|
slots = {},
|
|
20072
20073
|
type = 'text'
|
|
20073
20074
|
} = props,
|
|
20074
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
20075
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$8);
|
|
20075
20076
|
const classes = useUtilityClasses$2(props);
|
|
20076
20077
|
const muiFormControl = useFormControl();
|
|
20077
20078
|
const fcs = formControlState({
|
|
@@ -20200,7 +20201,7 @@
|
|
|
20200
20201
|
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);
|
|
20201
20202
|
var radioClasses$1 = radioClasses;
|
|
20202
20203
|
|
|
20203
|
-
const _excluded$
|
|
20204
|
+
const _excluded$7 = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"];
|
|
20204
20205
|
const useUtilityClasses$1 = ownerState => {
|
|
20205
20206
|
const {
|
|
20206
20207
|
classes,
|
|
@@ -20272,7 +20273,7 @@
|
|
|
20272
20273
|
size = 'medium',
|
|
20273
20274
|
className
|
|
20274
20275
|
} = props,
|
|
20275
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
20276
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$7);
|
|
20276
20277
|
const ownerState = _extends$5({}, props, {
|
|
20277
20278
|
color,
|
|
20278
20279
|
size
|
|
@@ -20315,7 +20316,7 @@
|
|
|
20315
20316
|
const tooltipClasses = generateUtilityClasses('MuiTooltip', ['popper', 'popperInteractive', 'popperArrow', 'popperClose', 'tooltip', 'tooltipArrow', 'touch', 'tooltipPlacementLeft', 'tooltipPlacementRight', 'tooltipPlacementTop', 'tooltipPlacementBottom', 'arrow']);
|
|
20316
20317
|
var tooltipClasses$1 = tooltipClasses;
|
|
20317
20318
|
|
|
20318
|
-
const _excluded$
|
|
20319
|
+
const _excluded$6 = ["arrow", "children", "classes", "components", "componentsProps", "describeChild", "disableFocusListener", "disableHoverListener", "disableInteractive", "disableTouchListener", "enterDelay", "enterNextDelay", "enterTouchDelay", "followCursor", "id", "leaveDelay", "leaveTouchDelay", "onClose", "onOpen", "open", "placement", "PopperComponent", "PopperProps", "slotProps", "slots", "title", "TransitionComponent", "TransitionProps"];
|
|
20319
20320
|
function round$1(value) {
|
|
20320
20321
|
return Math.round(value * 1e5) / 1e5;
|
|
20321
20322
|
}
|
|
@@ -20537,7 +20538,7 @@
|
|
|
20537
20538
|
TransitionComponent: TransitionComponentProp = Grow$1,
|
|
20538
20539
|
TransitionProps
|
|
20539
20540
|
} = props,
|
|
20540
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
20541
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$6);
|
|
20541
20542
|
|
|
20542
20543
|
// to prevent runtime errors, developers will need to provide a child as a React element anyway.
|
|
20543
20544
|
const children = /*#__PURE__*/reactExports.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
@@ -21998,6 +21999,7 @@
|
|
|
21998
21999
|
};
|
|
21999
22000
|
const getFrequencyText = qFrequency => qFrequency || frequencyTextNone;
|
|
22000
22001
|
|
|
22002
|
+
const _excluded$5 = ["backgroundColor"];
|
|
22001
22003
|
const getFreqFlexBasis = _ref => {
|
|
22002
22004
|
let {
|
|
22003
22005
|
sizes,
|
|
@@ -22079,8 +22081,8 @@
|
|
|
22079
22081
|
freqHitsValue,
|
|
22080
22082
|
styles
|
|
22081
22083
|
} = _ref4;
|
|
22082
|
-
const
|
|
22083
|
-
|
|
22084
|
+
const _styles$content = styles.content,
|
|
22085
|
+
contentFontStyles = _objectWithoutProperties(_styles$content, _excluded$5);
|
|
22084
22086
|
const selectStyle = getSelectedStyle({
|
|
22085
22087
|
theme,
|
|
22086
22088
|
styles,
|
|
@@ -22106,20 +22108,17 @@
|
|
|
22106
22108
|
outline: 'none'
|
|
22107
22109
|
}
|
|
22108
22110
|
},
|
|
22109
|
-
["& .".concat(rowColClasses.row)]: {
|
|
22110
|
-
flexWrap: 'nowrap'
|
|
22111
|
-
|
|
22112
|
-
backgroundColor: rowBackgroundColor
|
|
22113
|
-
},
|
|
22111
|
+
["& .".concat(rowColClasses.row)]: _objectSpread2({
|
|
22112
|
+
flexWrap: 'nowrap'
|
|
22113
|
+
}, styles.content),
|
|
22114
22114
|
["& .".concat(rowColClasses.rowBorderBottom)]: {
|
|
22115
22115
|
borderBottom: isGridCol ? 'none' : "1px solid ".concat(theme.palette.divider),
|
|
22116
22116
|
borderLeft: isGridCol ? "1px solid ".concat(theme.palette.divider) : 'none'
|
|
22117
22117
|
},
|
|
22118
|
-
["& .".concat(rowColClasses.column)]: {
|
|
22118
|
+
["& .".concat(rowColClasses.column)]: _objectSpread2({
|
|
22119
22119
|
flexWrap: 'nowrap',
|
|
22120
|
-
borderRight: "1px solid ".concat(theme.palette.divider)
|
|
22121
|
-
|
|
22122
|
-
},
|
|
22120
|
+
borderRight: "1px solid ".concat(theme.palette.divider)
|
|
22121
|
+
}, styles.content),
|
|
22123
22122
|
// The interior wrapper for all field content.
|
|
22124
22123
|
["& .".concat(rowColClasses.cell)]: {
|
|
22125
22124
|
zIndex: 2,
|
|
@@ -22138,11 +22137,7 @@
|
|
|
22138
22137
|
lineHeight: '16px',
|
|
22139
22138
|
userSelect: 'none',
|
|
22140
22139
|
paddingRight: '1px'
|
|
22141
|
-
}, ellipsis),
|
|
22142
|
-
fontSize: styles.content.fontSize,
|
|
22143
|
-
fontFamily: styles.content.fontFamily,
|
|
22144
|
-
color: rowFontColor
|
|
22145
|
-
}),
|
|
22140
|
+
}, ellipsis), contentFontStyles),
|
|
22146
22141
|
["& .".concat(rowColClasses.labelDense)]: {
|
|
22147
22142
|
fontSize: 12
|
|
22148
22143
|
},
|
|
@@ -22176,7 +22171,7 @@
|
|
|
22176
22171
|
width: iconWidth,
|
|
22177
22172
|
minWidth: iconWidth,
|
|
22178
22173
|
maxWidth: iconWidth,
|
|
22179
|
-
color:
|
|
22174
|
+
color: contentFontStyles.color
|
|
22180
22175
|
},
|
|
22181
22176
|
// Selection styles (S=Selected, XS=ExcludedSelected, A=Alternative, X=Excluded).
|
|
22182
22177
|
["& .".concat(rowColClasses.S)]: _objectSpread2(_objectSpread2({}, selectStyle), {}, {
|
|
@@ -22283,7 +22278,6 @@
|
|
|
22283
22278
|
shouldForwardProp: p => p !== 'styles'
|
|
22284
22279
|
})(_ref => {
|
|
22285
22280
|
let {
|
|
22286
|
-
theme,
|
|
22287
22281
|
styles
|
|
22288
22282
|
} = _ref;
|
|
22289
22283
|
return {
|
|
@@ -22314,13 +22308,13 @@
|
|
|
22314
22308
|
borderRadius: borderRadius - 1,
|
|
22315
22309
|
width: 12,
|
|
22316
22310
|
height: 12,
|
|
22317
|
-
backgroundColor:
|
|
22311
|
+
backgroundColor: styles.selections.excluded
|
|
22318
22312
|
},
|
|
22319
22313
|
["& .".concat(classes$b.cbIconAlternative)]: {
|
|
22320
22314
|
borderRadius: borderRadius - 1,
|
|
22321
22315
|
width: 12,
|
|
22322
22316
|
height: 12,
|
|
22323
|
-
backgroundColor:
|
|
22317
|
+
backgroundColor: styles.selections.alternative
|
|
22324
22318
|
},
|
|
22325
22319
|
["&.".concat(classes$b.checkbox)]: {
|
|
22326
22320
|
margin: 0,
|
|
@@ -26326,7 +26320,7 @@
|
|
|
26326
26320
|
return {
|
|
26327
26321
|
// Set here to allow clicking through the modals container
|
|
26328
26322
|
pointerEvents: 'none',
|
|
26329
|
-
["& .".concat(classes$8.icon)]: {
|
|
26323
|
+
["& .".concat(classes$8.icon, " *")]: {
|
|
26330
26324
|
color: theme.palette.text.primary
|
|
26331
26325
|
}
|
|
26332
26326
|
};
|
|
@@ -26384,6 +26378,12 @@
|
|
|
26384
26378
|
slotProps: {
|
|
26385
26379
|
root: {
|
|
26386
26380
|
className: ActionsToolbarMoreElement.className
|
|
26381
|
+
},
|
|
26382
|
+
paper: {
|
|
26383
|
+
style: _objectSpread2({
|
|
26384
|
+
pointerEvents: 'auto',
|
|
26385
|
+
maxWidth: '250px'
|
|
26386
|
+
}, popoverPaperStyle)
|
|
26387
26387
|
}
|
|
26388
26388
|
},
|
|
26389
26389
|
anchorOrigin: {
|
|
@@ -26393,12 +26393,6 @@
|
|
|
26393
26393
|
transformOrigin: {
|
|
26394
26394
|
vertical: 'top',
|
|
26395
26395
|
horizontal: 'right'
|
|
26396
|
-
},
|
|
26397
|
-
PaperProps: {
|
|
26398
|
-
style: _objectSpread2({
|
|
26399
|
-
pointerEvents: 'auto',
|
|
26400
|
-
maxWidth: '250px'
|
|
26401
|
-
}, popoverPaperStyle)
|
|
26402
26396
|
}
|
|
26403
26397
|
}), /*#__PURE__*/React.createElement(MenuList$1, {
|
|
26404
26398
|
id: "moreMenuList"
|
|
@@ -26722,28 +26716,53 @@
|
|
|
26722
26716
|
|
|
26723
26717
|
const TREE_PATH = '/qListObjectDef';
|
|
26724
26718
|
const WILDCARD = '**';
|
|
26725
|
-
const
|
|
26726
|
-
shouldForwardProp: p =>
|
|
26719
|
+
const StyledOutlinedInput = styled$1(OutlinedInput$1, {
|
|
26720
|
+
shouldForwardProp: p => !['styles', 'dense', 'isRtl'].includes(p)
|
|
26727
26721
|
})(_ref => {
|
|
26728
26722
|
let {
|
|
26729
|
-
|
|
26723
|
+
theme,
|
|
26724
|
+
styles,
|
|
26725
|
+
dense,
|
|
26726
|
+
isRtl
|
|
26730
26727
|
} = _ref;
|
|
26731
|
-
|
|
26732
|
-
|
|
26733
|
-
|
|
26734
|
-
|
|
26735
|
-
|
|
26736
|
-
|
|
26737
|
-
|
|
26738
|
-
|
|
26739
|
-
|
|
26740
|
-
|
|
26741
|
-
|
|
26742
|
-
|
|
26743
|
-
display: 'flex'
|
|
26744
|
-
|
|
26728
|
+
let denseProps = {};
|
|
26729
|
+
if (dense) {
|
|
26730
|
+
denseProps = {
|
|
26731
|
+
fontSize: 12,
|
|
26732
|
+
paddingLeft: theme.spacing(1),
|
|
26733
|
+
'& input': {
|
|
26734
|
+
paddingTop: '5px',
|
|
26735
|
+
paddingBottom: '5px'
|
|
26736
|
+
}
|
|
26737
|
+
};
|
|
26738
|
+
}
|
|
26739
|
+
return _objectSpread2({
|
|
26740
|
+
display: 'flex',
|
|
26741
|
+
border: 'none',
|
|
26742
|
+
fontSize: 14,
|
|
26743
|
+
borderRadius: 0,
|
|
26744
|
+
backgroundColor: styles.search.backgroundColor,
|
|
26745
|
+
paddingLeft: "".concat(CELL_PADDING_LEFT, "px"),
|
|
26746
|
+
flexDirection: isRtl ? 'row-reverse' : 'row',
|
|
26747
|
+
'& fieldset': {
|
|
26748
|
+
borderColor: "".concat(styles.search.borderColor),
|
|
26749
|
+
borderWidth: '1px 0 1px 0',
|
|
26750
|
+
borderRadius: 0
|
|
26751
|
+
},
|
|
26752
|
+
'& .MuiInputBase-root': _objectSpread2({}, styles.search),
|
|
26753
|
+
'& *': {
|
|
26754
|
+
color: styles.search.color
|
|
26755
|
+
},
|
|
26756
|
+
'& input': {
|
|
26757
|
+
color: styles.search.color,
|
|
26758
|
+
textAlign: isRtl ? 'right' : 'left'
|
|
26759
|
+
},
|
|
26760
|
+
'&.Mui-focused fieldset.OutlinedInput-notchedOutline': {
|
|
26761
|
+
borderColor: "".concat(styles.search.highlightBorderColor, " !important")
|
|
26762
|
+
}
|
|
26763
|
+
}, denseProps);
|
|
26745
26764
|
});
|
|
26746
|
-
function ListBoxSearch(
|
|
26765
|
+
function ListBoxSearch(_ref2) {
|
|
26747
26766
|
let {
|
|
26748
26767
|
selections,
|
|
26749
26768
|
selectionState,
|
|
@@ -26757,20 +26776,18 @@
|
|
|
26757
26776
|
direction,
|
|
26758
26777
|
hide,
|
|
26759
26778
|
styles
|
|
26760
|
-
} =
|
|
26779
|
+
} = _ref2;
|
|
26761
26780
|
const {
|
|
26762
26781
|
translator
|
|
26763
26782
|
} = reactExports.useContext(InstanceContext);
|
|
26764
26783
|
const [value, setValue] = reactExports.useState('');
|
|
26765
26784
|
const [wildcardOn, setWildcardOn] = reactExports.useState(false);
|
|
26766
26785
|
const inputRef = reactExports.useRef();
|
|
26767
|
-
const theme = useTheme$1();
|
|
26768
26786
|
const {
|
|
26769
26787
|
getStoreValue,
|
|
26770
26788
|
setStoreValue
|
|
26771
26789
|
} = useDataStore(model);
|
|
26772
26790
|
const isRtl = direction === 'rtl';
|
|
26773
|
-
const inpuTextAlign = isRtl ? 'right' : 'left';
|
|
26774
26791
|
const cancel = () => selections.isActive() && selections.cancel();
|
|
26775
26792
|
const abortSearch = async () => {
|
|
26776
26793
|
if (!selections.isModal()) {
|
|
@@ -26894,37 +26911,14 @@
|
|
|
26894
26911
|
}
|
|
26895
26912
|
return /*#__PURE__*/React.createElement(StyledOutlinedInput, {
|
|
26896
26913
|
styles: styles,
|
|
26897
|
-
|
|
26898
|
-
|
|
26899
|
-
|
|
26914
|
+
dense: dense,
|
|
26915
|
+
isRtl: isRtl,
|
|
26916
|
+
startAdornment: /*#__PURE__*/React.createElement(InputAdornment$1, {
|
|
26917
|
+
position: "start"
|
|
26900
26918
|
}, /*#__PURE__*/React.createElement(SearchIcon, {
|
|
26901
26919
|
size: dense ? 'small' : 'normal'
|
|
26902
26920
|
})),
|
|
26903
26921
|
className: "search",
|
|
26904
|
-
sx: [{
|
|
26905
|
-
border: 'none',
|
|
26906
|
-
fontSize: 14,
|
|
26907
|
-
borderRadius: 0,
|
|
26908
|
-
backgroundColor: 'transparent',
|
|
26909
|
-
'& fieldset': {
|
|
26910
|
-
border: "1px solid ".concat(theme.palette.divider),
|
|
26911
|
-
borderWidth: '1px 0 1px 0',
|
|
26912
|
-
borderRadius: 0
|
|
26913
|
-
},
|
|
26914
|
-
'&:hover': {
|
|
26915
|
-
border: 'none'
|
|
26916
|
-
},
|
|
26917
|
-
paddingLeft: "".concat(CELL_PADDING_LEFT, "px")
|
|
26918
|
-
}, dense && {
|
|
26919
|
-
fontSize: 12,
|
|
26920
|
-
paddingLeft: theme.spacing(1),
|
|
26921
|
-
'& input': {
|
|
26922
|
-
paddingTop: '5px',
|
|
26923
|
-
paddingBottom: '5px'
|
|
26924
|
-
}
|
|
26925
|
-
}, {
|
|
26926
|
-
flexDirection: isRtl ? 'row-reverse' : 'row'
|
|
26927
|
-
}],
|
|
26928
26922
|
inputRef: inputRef,
|
|
26929
26923
|
size: "small",
|
|
26930
26924
|
fullWidth: true,
|
|
@@ -26936,9 +26930,6 @@
|
|
|
26936
26930
|
autoFocus: autoFocus,
|
|
26937
26931
|
inputProps: {
|
|
26938
26932
|
tabIndex: keyboard.innerTabStops ? 0 : -1,
|
|
26939
|
-
style: {
|
|
26940
|
-
textAlign: "".concat(inpuTextAlign)
|
|
26941
|
-
},
|
|
26942
26933
|
'data-testid': 'search-input-field',
|
|
26943
26934
|
'aria-label': translator.get('Listbox.Search.ScreenReaderInstructions')
|
|
26944
26935
|
}
|
|
@@ -28136,7 +28127,7 @@
|
|
|
28136
28127
|
* @class
|
|
28137
28128
|
* @classdesc Class which provides color transformation functionality
|
|
28138
28129
|
* @description This is a constructor.
|
|
28139
|
-
* @private
|
|
28130
|
+
* @private
|
|
28140
28131
|
* @param {object} - Parameters to create a color from different notations
|
|
28141
28132
|
* @example
|
|
28142
28133
|
* // a few ways of instantiating a red color
|
|
@@ -28929,6 +28920,211 @@
|
|
|
28929
28920
|
}
|
|
28930
28921
|
}
|
|
28931
28922
|
|
|
28923
|
+
const MULTI_REG = /,(?![^(]*\))/;
|
|
28924
|
+
const SINGLE_REG = /\s(?![^(]*\))/;
|
|
28925
|
+
const LENGTH_REG = /^[0-9]+[a-zA-Z%]+?$/;
|
|
28926
|
+
const PREDEFINED_STRINGS = ['none', 'inset', 'initial', 'inherit'];
|
|
28927
|
+
const isLength = v => v === '0' || LENGTH_REG.test(v);
|
|
28928
|
+
const getColor = singleShadowString => {
|
|
28929
|
+
if (!singleShadowString) return undefined;
|
|
28930
|
+
const parts = singleShadowString.split(SINGLE_REG).filter(part => !PREDEFINED_STRINGS.includes(part.toLowerCase()));
|
|
28931
|
+
const last = parts.at(-1);
|
|
28932
|
+
const color = last && !isLength(last) && !PREDEFINED_STRINGS.includes(last.toLowerCase()) ? last : undefined;
|
|
28933
|
+
return color;
|
|
28934
|
+
};
|
|
28935
|
+
const getShadows = shadowString => {
|
|
28936
|
+
if (!shadowString) return [];
|
|
28937
|
+
return shadowString.split(MULTI_REG).map(s => s.trim());
|
|
28938
|
+
};
|
|
28939
|
+
|
|
28940
|
+
/**
|
|
28941
|
+
* Combine box shadow with box shadow color.
|
|
28942
|
+
* @private
|
|
28943
|
+
* @param {string} boxShadow - Box shadow which may include color
|
|
28944
|
+
* @param {string} themeBoxShadow - Box shadow from theme which may include color
|
|
28945
|
+
* @param {string | undefined} boxShadowColor - Box shadow color
|
|
28946
|
+
* @returns {string} Returns the combined box shadow and box shadow color
|
|
28947
|
+
*
|
|
28948
|
+
* If boxShadow is a single shadow and has a color then this color will be replaced by boxShadowColor and then
|
|
28949
|
+
* returned as the result,otherwise boxShadowColor will be added to boxShadow and then returned as the result.
|
|
28950
|
+
* If boxShadow is multiple shadows or an empty string then it will be returned as the result.
|
|
28951
|
+
*
|
|
28952
|
+
* @example getFullBoxShadow('none', '', 'red') returns 'none'
|
|
28953
|
+
*
|
|
28954
|
+
* @example getFullBoxShadow('initial', '', 'red') returns 'initial'
|
|
28955
|
+
*
|
|
28956
|
+
* @example getFullBoxShadow('inherit', '', 'red') returns 'inherit'
|
|
28957
|
+
*
|
|
28958
|
+
* @example getFullBoxShadow('', '', 'red') returns ''
|
|
28959
|
+
*
|
|
28960
|
+
* @example getFullBoxShadow('1px 2px blue, 3px 6px green', '', 'red') returns '1px 2px blue, 3px 6px green'
|
|
28961
|
+
*
|
|
28962
|
+
* @example getFullBoxShadow('1px 2px blue', '', 'red') returns '1px 2px red'
|
|
28963
|
+
*
|
|
28964
|
+
* @example getFullBoxShadow('1px 2px', '', 'red') returns '1px 2px red'
|
|
28965
|
+
*
|
|
28966
|
+
* @example getFullBoxShadow('1px 2px', '2px 5px green', undefined) returns '1px 2px green'
|
|
28967
|
+
*
|
|
28968
|
+
* @example getFullBoxShadow('1px 2px', '2px 5px', undefined) returns '1px 2px'
|
|
28969
|
+
*/
|
|
28970
|
+
const getFullBoxShadow = (boxShadow, themeBoxShadow, boxShadowColor) => {
|
|
28971
|
+
if (boxShadow && PREDEFINED_STRINGS.includes(boxShadow.toLowerCase())) return boxShadow.toLowerCase();
|
|
28972
|
+
const shadowArray = getShadows(boxShadow);
|
|
28973
|
+
if (shadowArray.length !== 1) return boxShadow;
|
|
28974
|
+
let shadowColor = boxShadowColor;
|
|
28975
|
+
if (!shadowColor) {
|
|
28976
|
+
const themeShadowArray = getShadows(themeBoxShadow);
|
|
28977
|
+
if (themeShadowArray.length !== 1) return boxShadow;
|
|
28978
|
+
shadowColor = getColor(themeShadowArray[0]);
|
|
28979
|
+
}
|
|
28980
|
+
if (!shadowColor) return boxShadow;
|
|
28981
|
+
const color = getColor(shadowArray[0]);
|
|
28982
|
+
if (color) return boxShadow.replace(color, shadowColor);
|
|
28983
|
+
return "".concat(boxShadow, " ").concat(shadowColor);
|
|
28984
|
+
};
|
|
28985
|
+
|
|
28986
|
+
function resolveProperty(path, attribute, theme, objectType) {
|
|
28987
|
+
if (theme && objectType) {
|
|
28988
|
+
return theme.getStyle("object.".concat(objectType), path, attribute);
|
|
28989
|
+
}
|
|
28990
|
+
if (theme) {
|
|
28991
|
+
return theme.getStyle('', path, attribute);
|
|
28992
|
+
}
|
|
28993
|
+
return undefined;
|
|
28994
|
+
}
|
|
28995
|
+
|
|
28996
|
+
const supportNone = true;
|
|
28997
|
+
function resolveColor(colorObj, path, attribute, theme, objectType) {
|
|
28998
|
+
if (colorObj && theme) {
|
|
28999
|
+
return colorObj.color !== 'none' ? theme.getColorPickerColor(colorObj, supportNone) : undefined;
|
|
29000
|
+
}
|
|
29001
|
+
return resolveProperty(path, attribute, theme, objectType);
|
|
29002
|
+
}
|
|
29003
|
+
|
|
29004
|
+
const imageSizingToCssProperty = {
|
|
29005
|
+
originalSize: 'auto auto',
|
|
29006
|
+
alwaysFit: 'contain',
|
|
29007
|
+
fitWidth: '100% auto',
|
|
29008
|
+
fitHeight: 'auto 100%',
|
|
29009
|
+
stretchFit: '100% 100%',
|
|
29010
|
+
alwaysFill: 'cover'
|
|
29011
|
+
};
|
|
29012
|
+
const positionToCss = {
|
|
29013
|
+
'top-left': 'top left',
|
|
29014
|
+
'top-center': 'top center',
|
|
29015
|
+
'top-right': 'top right',
|
|
29016
|
+
'center-left': 'center left',
|
|
29017
|
+
'center-center': 'center center',
|
|
29018
|
+
'center-right': 'center right',
|
|
29019
|
+
'bottom-left': 'bottom left',
|
|
29020
|
+
'bottom-center': 'bottom center',
|
|
29021
|
+
'bottom-right': 'bottom right'
|
|
29022
|
+
};
|
|
29023
|
+
|
|
29024
|
+
// TODO: this needs some proper verification
|
|
29025
|
+
function getSenseServerUrl(app) {
|
|
29026
|
+
var _app$session;
|
|
29027
|
+
let config;
|
|
29028
|
+
let wsUrl;
|
|
29029
|
+
let protocol;
|
|
29030
|
+
let isSecure;
|
|
29031
|
+
if (app !== null && app !== void 0 && (_app$session = app.session) !== null && _app$session !== void 0 && _app$session.config) {
|
|
29032
|
+
config = app.session.config;
|
|
29033
|
+
wsUrl = new URL(config.url);
|
|
29034
|
+
isSecure = wsUrl.protocol === 'wss:';
|
|
29035
|
+
protocol = isSecure ? 'https://' : 'http://';
|
|
29036
|
+
return protocol + wsUrl.host;
|
|
29037
|
+
}
|
|
29038
|
+
return '';
|
|
29039
|
+
}
|
|
29040
|
+
function getBackgroundPosition(bgComp) {
|
|
29041
|
+
var _bgComp$bgImage;
|
|
29042
|
+
let bkgImagePosition = 'center center';
|
|
29043
|
+
if (bgComp !== null && bgComp !== void 0 && (_bgComp$bgImage = bgComp.bgImage) !== null && _bgComp$bgImage !== void 0 && _bgComp$bgImage.position) {
|
|
29044
|
+
bkgImagePosition = positionToCss[bgComp.bgImage.position];
|
|
29045
|
+
}
|
|
29046
|
+
return bkgImagePosition;
|
|
29047
|
+
}
|
|
29048
|
+
function getBackgroundSize(bgComp) {
|
|
29049
|
+
var _bgComp$bgImage2;
|
|
29050
|
+
let bkgImageSize = imageSizingToCssProperty.originalSize;
|
|
29051
|
+
const size = bgComp === null || bgComp === void 0 || (_bgComp$bgImage2 = bgComp.bgImage) === null || _bgComp$bgImage2 === void 0 ? void 0 : _bgComp$bgImage2.sizing;
|
|
29052
|
+
if (size) {
|
|
29053
|
+
bkgImageSize = imageSizingToCssProperty[size];
|
|
29054
|
+
}
|
|
29055
|
+
return bkgImageSize;
|
|
29056
|
+
}
|
|
29057
|
+
function resolveImageUrl(app, relativeUrl) {
|
|
29058
|
+
return relativeUrl ? getSenseServerUrl(app) + relativeUrl : undefined;
|
|
29059
|
+
}
|
|
29060
|
+
function resolveBgImage(bgComp, app) {
|
|
29061
|
+
const bgImageDef = bgComp === null || bgComp === void 0 ? void 0 : bgComp.bgImage;
|
|
29062
|
+
if (bgImageDef) {
|
|
29063
|
+
let url = '';
|
|
29064
|
+
if (bgImageDef.mode === 'media' || bgComp.useImage === 'media') {
|
|
29065
|
+
const urlObj = bgImageDef === null || bgImageDef === void 0 ? void 0 : bgImageDef.mediaUrl;
|
|
29066
|
+
const {
|
|
29067
|
+
qUrl
|
|
29068
|
+
} = (urlObj === null || urlObj === void 0 ? void 0 : urlObj.qStaticContentUrl) || {};
|
|
29069
|
+
url = qUrl ? decodeURIComponent(qUrl) : undefined;
|
|
29070
|
+
url = resolveImageUrl(app, url);
|
|
29071
|
+
}
|
|
29072
|
+
if (bgImageDef.mode === 'expression') {
|
|
29073
|
+
url = bgImageDef.expressionUrl ? decodeURIComponent(bgImageDef.expressionUrl) : undefined;
|
|
29074
|
+
}
|
|
29075
|
+
const pos = getBackgroundPosition(bgComp);
|
|
29076
|
+
const size = getBackgroundSize(bgComp);
|
|
29077
|
+
return url ? {
|
|
29078
|
+
url,
|
|
29079
|
+
pos,
|
|
29080
|
+
size
|
|
29081
|
+
} : undefined;
|
|
29082
|
+
}
|
|
29083
|
+
return undefined;
|
|
29084
|
+
}
|
|
29085
|
+
function resolveBgColor(comp, theme, objectType) {
|
|
29086
|
+
const bgColor = comp === null || comp === void 0 ? void 0 : comp.bgColor;
|
|
29087
|
+
if (bgColor && theme) {
|
|
29088
|
+
if (bgColor.useExpression) {
|
|
29089
|
+
return theme.validateColor(bgColor.colorExpression);
|
|
29090
|
+
}
|
|
29091
|
+
}
|
|
29092
|
+
return resolveColor(bgColor === null || bgColor === void 0 ? void 0 : bgColor.color, '', 'backgroundColor', theme, objectType);
|
|
29093
|
+
}
|
|
29094
|
+
function resolveBorder(comp, theme, objectType) {
|
|
29095
|
+
const borderColor = resolveColor(comp === null || comp === void 0 ? void 0 : comp.borderColor, '', 'borderColor', theme, objectType);
|
|
29096
|
+
const borderWidth = (comp === null || comp === void 0 ? void 0 : comp.borderWidth) || resolveProperty('', 'borderWidth', theme, objectType);
|
|
29097
|
+
return borderWidth && borderColor ? "".concat(borderWidth, " solid ").concat(borderColor) : undefined;
|
|
29098
|
+
}
|
|
29099
|
+
function resolveBorderRadius(comp, theme, objectType) {
|
|
29100
|
+
return (comp === null || comp === void 0 ? void 0 : comp.borderRadius) || resolveProperty('', 'borderRadius', theme, objectType);
|
|
29101
|
+
}
|
|
29102
|
+
function resolveBoxShadow(comp, theme, objectType) {
|
|
29103
|
+
var _comp$shadow, _comp$shadow2;
|
|
29104
|
+
const themeBoxShadow = resolveProperty('shadow', 'boxShadow', theme, objectType);
|
|
29105
|
+
const boxShadow = (comp === null || comp === void 0 || (_comp$shadow = comp.shadow) === null || _comp$shadow === void 0 ? void 0 : _comp$shadow.boxShadow) || themeBoxShadow;
|
|
29106
|
+
const boxShadowColor = resolveColor(comp === null || comp === void 0 || (_comp$shadow2 = comp.shadow) === null || _comp$shadow2 === void 0 ? void 0 : _comp$shadow2.boxShadowColor, 'shadow', 'boxShadowColor', theme, objectType);
|
|
29107
|
+
return getFullBoxShadow(boxShadow, themeBoxShadow, boxShadowColor);
|
|
29108
|
+
}
|
|
29109
|
+
function unfurlFontStyle(fontStyle, target) {
|
|
29110
|
+
if (fontStyle && Array.isArray(fontStyle)) {
|
|
29111
|
+
return fontStyle;
|
|
29112
|
+
}
|
|
29113
|
+
return target === 'main' ? ['bold'] : [];
|
|
29114
|
+
}
|
|
29115
|
+
function resolveTextStyle(textComp, target, theme, objectType) {
|
|
29116
|
+
var _textComp$title;
|
|
29117
|
+
const textProps = (textComp === null || textComp === void 0 || (_textComp$title = textComp.title) === null || _textComp$title === void 0 ? void 0 : _textComp$title[target]) || {};
|
|
29118
|
+
const fontStyle = unfurlFontStyle(textProps.fontStyle, target);
|
|
29119
|
+
return {
|
|
29120
|
+
fontFamily: textProps.fontFamily || theme.getStyle("object.".concat(objectType), "title.".concat(target), 'fontFamily'),
|
|
29121
|
+
color: textProps.color && textProps.color.color !== 'none' ? theme.getColorPickerColor(textProps.color, true) : theme.getStyle("object.".concat(objectType), target, 'color'),
|
|
29122
|
+
fontWeight: fontStyle.includes('bold') ? 'bold' : 'normal',
|
|
29123
|
+
fontStyle: fontStyle.includes('italic') ? 'italic' : 'normal',
|
|
29124
|
+
textDecoration: fontStyle.includes('underline') ? 'underline' : 'initial'
|
|
29125
|
+
};
|
|
29126
|
+
}
|
|
29127
|
+
|
|
28932
29128
|
const LIGHT = '#FFF';
|
|
28933
29129
|
const DARK = '#000';
|
|
28934
29130
|
const CONTRAST_THRESHOLD = 1.5;
|
|
@@ -28983,11 +29179,17 @@
|
|
|
28983
29179
|
});
|
|
28984
29180
|
return overrides;
|
|
28985
29181
|
}
|
|
28986
|
-
function getSelectionColors(
|
|
29182
|
+
function getSelectionColors(_ref) {
|
|
28987
29183
|
var _overrides$theme, _theme$palette, _overrides$theme$cont, _overrides$theme2, _overrides$selections, _selectionColors$sele, _theme$palette2, _selectionColors$alte, _theme$palette3, _selectionColors$excl, _theme$palette4, _selectionColors$sele2, _theme$palette5, _selectionColors$poss, _theme$palette6, _theme$palette7, _theme$palette8, _theme$palette9, _theme$palette10, _theme$palette11;
|
|
29184
|
+
let {
|
|
29185
|
+
theme,
|
|
29186
|
+
getListboxStyle,
|
|
29187
|
+
overrides,
|
|
29188
|
+
checkboxes
|
|
29189
|
+
} = _ref;
|
|
28988
29190
|
const componentContentTextColor = (_overrides$theme = overrides.theme) === null || _overrides$theme === void 0 || (_overrides$theme = _overrides$theme.content) === null || _overrides$theme === void 0 || (_overrides$theme = _overrides$theme.fontColor) === null || _overrides$theme === void 0 ? void 0 : _overrides$theme.color;
|
|
28989
29191
|
const desiredTextColor = componentContentTextColor || getListboxStyle('content', 'color') || ((_theme$palette = theme.palette) === null || _theme$palette === void 0 ? void 0 : _theme$palette.text.primary);
|
|
28990
|
-
const useContrastTextColor = (_overrides$theme$cont = (_overrides$theme2 = overrides.theme) === null || _overrides$theme2 === void 0 || (_overrides$theme2 = _overrides$theme2.content) === null || _overrides$theme2 === void 0 ? void 0 : _overrides$theme2.useContrastColor) !== null && _overrides$theme$cont !== void 0 ? _overrides$theme$cont : true;
|
|
29192
|
+
const useContrastTextColor = !checkboxes && ((_overrides$theme$cont = (_overrides$theme2 = overrides.theme) === null || _overrides$theme2 === void 0 || (_overrides$theme2 = _overrides$theme2.content) === null || _overrides$theme2 === void 0 ? void 0 : _overrides$theme2.useContrastColor) !== null && _overrides$theme$cont !== void 0 ? _overrides$theme$cont : true);
|
|
28991
29193
|
|
|
28992
29194
|
// Background colors
|
|
28993
29195
|
const selectionColors = ((_overrides$selections = overrides.selections) === null || _overrides$selections === void 0 ? void 0 : _overrides$selections.colors) || {};
|
|
@@ -29024,31 +29226,94 @@
|
|
|
29024
29226
|
possibleContrast
|
|
29025
29227
|
};
|
|
29026
29228
|
}
|
|
29027
|
-
function
|
|
29028
|
-
var _themeOverrides$heade, _themeOverrides$heade2, _themeOverrides$conte;
|
|
29229
|
+
function getBackgroundColor(_ref2) {
|
|
29029
29230
|
let {
|
|
29231
|
+
themeApi,
|
|
29232
|
+
themeOverrides
|
|
29233
|
+
} = _ref2;
|
|
29234
|
+
let color;
|
|
29235
|
+
const bgColor = themeOverrides === null || themeOverrides === void 0 ? void 0 : themeOverrides.background;
|
|
29236
|
+
if (!bgColor) {
|
|
29237
|
+
return color;
|
|
29238
|
+
}
|
|
29239
|
+
if (bgColor !== null && bgColor !== void 0 && bgColor.useExpression) {
|
|
29240
|
+
color = resolveBgColor({
|
|
29241
|
+
bgColor
|
|
29242
|
+
}, themeApi, 'listBox');
|
|
29243
|
+
} else {
|
|
29244
|
+
var _themeApi$getColorPic;
|
|
29245
|
+
color = (_themeApi$getColorPic = themeApi.getColorPickerColor(bgColor, true)) === null || _themeApi$getColorPic === void 0 ? void 0 : _themeApi$getColorPic.color;
|
|
29246
|
+
}
|
|
29247
|
+
return color;
|
|
29248
|
+
}
|
|
29249
|
+
function getSearchColor(getListboxStyle) {
|
|
29250
|
+
const desiredTextColor = getListboxStyle('content', 'color');
|
|
29251
|
+
const color = getContrastingColor('#fff', desiredTextColor);
|
|
29252
|
+
return color;
|
|
29253
|
+
}
|
|
29254
|
+
function getStyles(_ref3) {
|
|
29255
|
+
var _themeOverrides$heade, _themeOverrides$backg, _themeOverrides$heade2, _themeOverrides$conte, _themeOverrides$heade3, _themeOverrides$heade4, _themeOverrides$conte2, _themeOverrides$conte3;
|
|
29256
|
+
let {
|
|
29257
|
+
app,
|
|
29030
29258
|
themeApi,
|
|
29031
29259
|
theme,
|
|
29032
29260
|
components = [],
|
|
29033
29261
|
checkboxes = false
|
|
29034
|
-
} =
|
|
29262
|
+
} = _ref3;
|
|
29035
29263
|
const overrides = getOverridesAsObject(components);
|
|
29036
29264
|
const getListboxStyle = (path, prop) => themeApi.getStyle('object.listBox', path, prop);
|
|
29037
|
-
const selections = getSelectionColors(
|
|
29265
|
+
const selections = getSelectionColors({
|
|
29266
|
+
theme,
|
|
29267
|
+
getListboxStyle,
|
|
29268
|
+
overrides,
|
|
29269
|
+
checkboxes
|
|
29270
|
+
});
|
|
29038
29271
|
const themeOverrides = overrides.theme || {};
|
|
29272
|
+
const headerColor = ((_themeOverrides$heade = themeOverrides.header) === null || _themeOverrides$heade === void 0 || (_themeOverrides$heade = _themeOverrides$heade.fontColor) === null || _themeOverrides$heade === void 0 ? void 0 : _themeOverrides$heade.color) || getListboxStyle('title.main', 'color');
|
|
29273
|
+
const bgComponentColor = getBackgroundColor({
|
|
29274
|
+
themeApi,
|
|
29275
|
+
themeOverrides
|
|
29276
|
+
});
|
|
29277
|
+
const bgImage = (_themeOverrides$backg = themeOverrides.background) !== null && _themeOverrides$backg !== void 0 && _themeOverrides$backg.image ? resolveBgImage({
|
|
29278
|
+
bgImage: themeOverrides.background.image
|
|
29279
|
+
}, app) : undefined;
|
|
29280
|
+
const searchBgColor = 'rgba(255, 255, 255, 0.7)';
|
|
29281
|
+
const searchColor = getSearchColor(getListboxStyle);
|
|
29282
|
+
const headerFontStyle = ((_themeOverrides$heade2 = themeOverrides.header) === null || _themeOverrides$heade2 === void 0 ? void 0 : _themeOverrides$heade2.fontStyle) || {};
|
|
29283
|
+
const contentFontStyle = ((_themeOverrides$conte = themeOverrides.content) === null || _themeOverrides$conte === void 0 ? void 0 : _themeOverrides$conte.fontStyle) || {};
|
|
29284
|
+
|
|
29285
|
+
// Ensure we only return falseValue when the component is used, and thus has a false value.
|
|
29286
|
+
const getWithFallback = (value, trueValue, falseValue) => value === true && trueValue || value === false && falseValue || undefined;
|
|
29039
29287
|
return {
|
|
29040
|
-
|
|
29288
|
+
background: {
|
|
29289
|
+
backgroundColor: bgComponentColor || getListboxStyle('', 'backgroundColor') || theme.palette.background.default,
|
|
29290
|
+
backgroundImage: bgImage !== null && bgImage !== void 0 && bgImage.url && !(bgImage !== null && bgImage !== void 0 && bgImage.url.startsWith('url(')) ? "url('".concat(bgImage.url, "')") : undefined,
|
|
29291
|
+
backgroundRepeat: 'no-repeat',
|
|
29292
|
+
backgroundSize: bgImage === null || bgImage === void 0 ? void 0 : bgImage.size,
|
|
29293
|
+
backgroundPosition: bgImage === null || bgImage === void 0 ? void 0 : bgImage.pos
|
|
29294
|
+
},
|
|
29041
29295
|
header: {
|
|
29042
|
-
color:
|
|
29043
|
-
fontSize: ((_themeOverrides$
|
|
29044
|
-
fontFamily: getListboxStyle('title.main', 'fontFamily'),
|
|
29045
|
-
fontWeight: getListboxStyle('title.main', 'fontWeight') || 'bold'
|
|
29296
|
+
color: headerColor,
|
|
29297
|
+
fontSize: ((_themeOverrides$heade3 = themeOverrides.header) === null || _themeOverrides$heade3 === void 0 ? void 0 : _themeOverrides$heade3.fontSize) || getListboxStyle('title.main', 'fontSize'),
|
|
29298
|
+
fontFamily: ((_themeOverrides$heade4 = themeOverrides.header) === null || _themeOverrides$heade4 === void 0 ? void 0 : _themeOverrides$heade4.fontFamily) || getListboxStyle('title.main', 'fontFamily'),
|
|
29299
|
+
fontWeight: getWithFallback(headerFontStyle.bold, 'bold', 'normal') || getListboxStyle('title.main', 'fontWeight') || 'bold',
|
|
29300
|
+
textDecoration: headerFontStyle.underline ? 'underline' : 'initial',
|
|
29301
|
+
fontStyle: getWithFallback(headerFontStyle.italic, 'italic', 'normal') || getListboxStyle('title.main', 'fontStyle') || 'initial'
|
|
29046
29302
|
},
|
|
29047
29303
|
content: {
|
|
29048
29304
|
backgroundColor: checkboxes ? undefined : selections.possible,
|
|
29049
29305
|
color: selections.possibleContrast || getListboxStyle('content', 'color'),
|
|
29050
|
-
fontSize: ((_themeOverrides$
|
|
29051
|
-
fontFamily: getListboxStyle('content', 'fontFamily')
|
|
29306
|
+
fontSize: ((_themeOverrides$conte2 = themeOverrides.content) === null || _themeOverrides$conte2 === void 0 ? void 0 : _themeOverrides$conte2.fontSize) || getListboxStyle('content', 'fontSize'),
|
|
29307
|
+
fontFamily: ((_themeOverrides$conte3 = themeOverrides.content) === null || _themeOverrides$conte3 === void 0 ? void 0 : _themeOverrides$conte3.fontFamily) || getListboxStyle('content', 'fontFamily'),
|
|
29308
|
+
fontWeight: getWithFallback(contentFontStyle.bold, 'bold', 'normal') || getListboxStyle('content', 'fontWeight') || 'normal',
|
|
29309
|
+
textDecoration: contentFontStyle.underline ? 'underline' : 'initial',
|
|
29310
|
+
fontStyle: getWithFallback(contentFontStyle.italic, 'italic', 'normal') || getListboxStyle('content', 'fontStyle') || 'initial'
|
|
29311
|
+
},
|
|
29312
|
+
search: {
|
|
29313
|
+
color: searchColor,
|
|
29314
|
+
borderColor: theme.palette.divider,
|
|
29315
|
+
highlightBorderColor: theme.palette.primary.main,
|
|
29316
|
+
backgroundColor: searchBgColor
|
|
29052
29317
|
},
|
|
29053
29318
|
selections
|
|
29054
29319
|
};
|
|
@@ -30722,8 +30987,8 @@
|
|
|
30722
30987
|
isGridMode,
|
|
30723
30988
|
styles
|
|
30724
30989
|
} = _ref;
|
|
30725
|
-
return {
|
|
30726
|
-
background
|
|
30990
|
+
return _objectSpread2(_objectSpread2({}, styles.background), {}, {
|
|
30991
|
+
// sets background color and image of listbox
|
|
30727
30992
|
["& .".concat(classes$4.listBoxHeader)]: {
|
|
30728
30993
|
alignSelf: 'center',
|
|
30729
30994
|
display: 'flex'
|
|
@@ -30746,33 +31011,50 @@
|
|
|
30746
31011
|
'&:focus-visible': {
|
|
30747
31012
|
outline: 'none'
|
|
30748
31013
|
}
|
|
30749
|
-
};
|
|
31014
|
+
});
|
|
30750
31015
|
});
|
|
30751
|
-
const
|
|
31016
|
+
const StyledGridHeader = styled$1(Grid$1, {
|
|
31017
|
+
shouldForwardProp: p => !['styles', 'isRtl'].includes(p)
|
|
31018
|
+
})(_ref2 => {
|
|
30752
31019
|
let {
|
|
30753
|
-
styles
|
|
31020
|
+
styles,
|
|
31021
|
+
isRtl
|
|
30754
31022
|
} = _ref2;
|
|
30755
|
-
return {
|
|
30756
|
-
|
|
30757
|
-
|
|
30758
|
-
|
|
30759
|
-
|
|
30760
|
-
}
|
|
31023
|
+
return _objectSpread2(_objectSpread2({
|
|
31024
|
+
flexDirection: isRtl ? 'row-reverse' : 'row',
|
|
31025
|
+
wrap: 'nowrap',
|
|
31026
|
+
minHeight: 32,
|
|
31027
|
+
alignContent: 'center'
|
|
31028
|
+
}, styles.header), {}, {
|
|
31029
|
+
'& *': {
|
|
31030
|
+
// Assign the styles color as defaul color for all elements in the header
|
|
31031
|
+
color: styles.header.color
|
|
31032
|
+
}
|
|
31033
|
+
});
|
|
30761
31034
|
});
|
|
30762
|
-
const
|
|
31035
|
+
const Title = styled$1(Typography$1)(_ref3 => {
|
|
31036
|
+
let {
|
|
31037
|
+
styles
|
|
31038
|
+
} = _ref3;
|
|
31039
|
+
return _objectSpread2(_objectSpread2({}, styles.header), {}, {
|
|
31040
|
+
paddingRight: '1px' // make place for italic font style
|
|
31041
|
+
});
|
|
31042
|
+
});
|
|
31043
|
+
|
|
31044
|
+
const isModal = _ref4 => {
|
|
30763
31045
|
var _app$isInModalSelecti, _app$isInModalSelecti2;
|
|
30764
31046
|
let {
|
|
30765
31047
|
app,
|
|
30766
31048
|
appSelections
|
|
30767
|
-
} =
|
|
31049
|
+
} = _ref4;
|
|
30768
31050
|
return (_app$isInModalSelecti = (_app$isInModalSelecti2 = app.isInModalSelection) === null || _app$isInModalSelecti2 === void 0 ? void 0 : _app$isInModalSelecti2.call(app)) !== null && _app$isInModalSelecti !== void 0 ? _app$isInModalSelecti : appSelections.isInModal();
|
|
30769
31051
|
};
|
|
30770
|
-
function ListBoxInline(
|
|
31052
|
+
function ListBoxInline(_ref5) {
|
|
30771
31053
|
var _layout$qListObject, _layout$qListObject2, _layoutOptions$dense;
|
|
30772
31054
|
let {
|
|
30773
31055
|
options,
|
|
30774
31056
|
layout
|
|
30775
|
-
} =
|
|
31057
|
+
} = _ref5;
|
|
30776
31058
|
const {
|
|
30777
31059
|
app,
|
|
30778
31060
|
direction,
|
|
@@ -30821,6 +31103,7 @@
|
|
|
30821
31103
|
checkboxes = checkboxesOption
|
|
30822
31104
|
} = layout || {};
|
|
30823
31105
|
const styles = getStyles({
|
|
31106
|
+
app,
|
|
30824
31107
|
themeApi,
|
|
30825
31108
|
theme,
|
|
30826
31109
|
components,
|
|
@@ -30966,7 +31249,6 @@
|
|
|
30966
31249
|
const showSearchToggle = search === 'toggle' && showSearch;
|
|
30967
31250
|
const searchVisible = (search === true || showSearchToggle) && !selectDisabled() && searchEnabled !== false;
|
|
30968
31251
|
const dense = (_layoutOptions$dense = layoutOptions.dense) !== null && _layoutOptions$dense !== void 0 ? _layoutOptions$dense : false;
|
|
30969
|
-
const headerHeight = 32;
|
|
30970
31252
|
const onShowSearch = () => {
|
|
30971
31253
|
const newValue = !showSearch;
|
|
30972
31254
|
setShowSearch(newValue);
|
|
@@ -31060,15 +31342,14 @@
|
|
|
31060
31342
|
},
|
|
31061
31343
|
isGridMode: isGridMode,
|
|
31062
31344
|
"aria-label": keyboard.active ? translator.get('Listbox.ScreenReaderInstructions') : ''
|
|
31063
|
-
}, showToolbarWithTitle && /*#__PURE__*/React.createElement(
|
|
31345
|
+
}, showToolbarWithTitle && /*#__PURE__*/React.createElement(StyledGridHeader, {
|
|
31064
31346
|
item: true,
|
|
31065
31347
|
container: true,
|
|
31066
|
-
|
|
31067
|
-
|
|
31348
|
+
styles: styles,
|
|
31349
|
+
isRtl: isRtl,
|
|
31068
31350
|
marginY: 1,
|
|
31069
31351
|
paddingLeft: "".concat(headerPaddingLeft, "px"),
|
|
31070
|
-
paddingRight: "".concat(headerPaddingRight, "px")
|
|
31071
|
-
wrap: "nowrap"
|
|
31352
|
+
paddingRight: "".concat(headerPaddingRight, "px")
|
|
31072
31353
|
}, showIcons && /*#__PURE__*/React.createElement(Grid$1, {
|
|
31073
31354
|
item: true,
|
|
31074
31355
|
container: true,
|
|
@@ -31095,7 +31376,8 @@
|
|
|
31095
31376
|
title: layout.title,
|
|
31096
31377
|
styles: styles
|
|
31097
31378
|
}, layout.title)), /*#__PURE__*/React.createElement(Grid$1, {
|
|
31098
|
-
item: true
|
|
31379
|
+
item: true,
|
|
31380
|
+
display: "flex"
|
|
31099
31381
|
}, /*#__PURE__*/React.createElement(ActionsToolbar, _extends$7({
|
|
31100
31382
|
direction: direction
|
|
31101
31383
|
}, getActionToolbarProps(isToolbarDetached))))), /*#__PURE__*/React.createElement(Grid$1, {
|
|
@@ -31131,11 +31413,11 @@
|
|
|
31131
31413
|
className: classes$4.listboxWrapper
|
|
31132
31414
|
}, isInvalid ? /*#__PURE__*/React.createElement(ListBoxError, {
|
|
31133
31415
|
text: errorText
|
|
31134
|
-
}) : /*#__PURE__*/React.createElement(AutoSizer, null,
|
|
31416
|
+
}) : /*#__PURE__*/React.createElement(AutoSizer, null, _ref6 => {
|
|
31135
31417
|
let {
|
|
31136
31418
|
height,
|
|
31137
31419
|
width
|
|
31138
|
-
} =
|
|
31420
|
+
} = _ref6;
|
|
31139
31421
|
return /*#__PURE__*/React.createElement(ListBox, {
|
|
31140
31422
|
model: model,
|
|
31141
31423
|
app: app,
|
|
@@ -31177,10 +31459,10 @@
|
|
|
31177
31459
|
})))));
|
|
31178
31460
|
}
|
|
31179
31461
|
const ListBoxInlineMemoed = React.memo(ListBoxInline);
|
|
31180
|
-
function IsolateUseLayoutWrapper(
|
|
31462
|
+
function IsolateUseLayoutWrapper(_ref7) {
|
|
31181
31463
|
let {
|
|
31182
31464
|
options = {}
|
|
31183
|
-
} =
|
|
31465
|
+
} = _ref7;
|
|
31184
31466
|
const {
|
|
31185
31467
|
model
|
|
31186
31468
|
} = options;
|
|
@@ -33595,117 +33877,33 @@
|
|
|
33595
33877
|
}));
|
|
33596
33878
|
}
|
|
33597
33879
|
|
|
33598
|
-
const
|
|
33599
|
-
|
|
33600
|
-
|
|
33601
|
-
|
|
33602
|
-
|
|
33603
|
-
|
|
33604
|
-
|
|
33605
|
-
|
|
33606
|
-
|
|
33607
|
-
|
|
33608
|
-
|
|
33609
|
-
|
|
33610
|
-
|
|
33611
|
-
|
|
33612
|
-
|
|
33613
|
-
|
|
33614
|
-
|
|
33615
|
-
|
|
33616
|
-
|
|
33617
|
-
|
|
33618
|
-
|
|
33619
|
-
|
|
33620
|
-
var _app$session;
|
|
33621
|
-
let config;
|
|
33622
|
-
let wsUrl;
|
|
33623
|
-
let protocol;
|
|
33624
|
-
let isSecure;
|
|
33625
|
-
if (app !== null && app !== void 0 && (_app$session = app.session) !== null && _app$session !== void 0 && _app$session.config) {
|
|
33626
|
-
config = app.session.config;
|
|
33627
|
-
wsUrl = new URL(config.url);
|
|
33628
|
-
isSecure = wsUrl.protocol === 'wss:';
|
|
33629
|
-
protocol = isSecure ? 'https://' : 'http://';
|
|
33630
|
-
return protocol + wsUrl.host;
|
|
33631
|
-
}
|
|
33632
|
-
return '';
|
|
33633
|
-
}
|
|
33634
|
-
function getBackgroundPosition(bgComp) {
|
|
33635
|
-
var _bgComp$bgImage;
|
|
33636
|
-
let bkgImagePosition = 'center center';
|
|
33637
|
-
if (bgComp !== null && bgComp !== void 0 && (_bgComp$bgImage = bgComp.bgImage) !== null && _bgComp$bgImage !== void 0 && _bgComp$bgImage.position) {
|
|
33638
|
-
bkgImagePosition = positionToCss[bgComp.bgImage.position];
|
|
33639
|
-
}
|
|
33640
|
-
return bkgImagePosition;
|
|
33641
|
-
}
|
|
33642
|
-
function getBackgroundSize(bgComp) {
|
|
33643
|
-
var _bgComp$bgImage2;
|
|
33644
|
-
let bkgImageSize = imageSizingToCssProperty.originalSize;
|
|
33645
|
-
if (bgComp !== null && bgComp !== void 0 && (_bgComp$bgImage2 = bgComp.bgImage) !== null && _bgComp$bgImage2 !== void 0 && _bgComp$bgImage2.sizing) {
|
|
33646
|
-
bkgImageSize = imageSizingToCssProperty[bgComp.bgImage.sizing];
|
|
33647
|
-
}
|
|
33648
|
-
return bkgImageSize;
|
|
33649
|
-
}
|
|
33650
|
-
function resolveImageUrl(app, relativeUrl) {
|
|
33651
|
-
return relativeUrl ? getSenseServerUrl(app) + relativeUrl : undefined;
|
|
33652
|
-
}
|
|
33653
|
-
function resolveBgImage(bgComp, app) {
|
|
33654
|
-
const bgImageDef = bgComp === null || bgComp === void 0 ? void 0 : bgComp.bgImage;
|
|
33655
|
-
if (bgImageDef) {
|
|
33656
|
-
let url = '';
|
|
33657
|
-
if (bgImageDef.mode === 'media' || bgComp.useImage === 'media') {
|
|
33658
|
-
var _bgImageDef$mediaUrl;
|
|
33659
|
-
url = bgImageDef !== null && bgImageDef !== void 0 && (_bgImageDef$mediaUrl = bgImageDef.mediaUrl) !== null && _bgImageDef$mediaUrl !== void 0 && (_bgImageDef$mediaUrl = _bgImageDef$mediaUrl.qStaticContentUrl) !== null && _bgImageDef$mediaUrl !== void 0 && _bgImageDef$mediaUrl.qUrl ? decodeURIComponent(bgImageDef.mediaUrl.qStaticContentUrl.qUrl) : undefined;
|
|
33660
|
-
url = resolveImageUrl(app, url);
|
|
33661
|
-
}
|
|
33662
|
-
if (bgImageDef.mode === 'expression') {
|
|
33663
|
-
url = bgImageDef.expressionUrl ? decodeURIComponent(bgImageDef.expressionUrl) : undefined;
|
|
33664
|
-
}
|
|
33665
|
-
const pos = getBackgroundPosition(bgComp);
|
|
33666
|
-
const size = getBackgroundSize(bgComp);
|
|
33667
|
-
return url ? {
|
|
33668
|
-
url,
|
|
33669
|
-
pos,
|
|
33670
|
-
size
|
|
33671
|
-
} : undefined;
|
|
33672
|
-
}
|
|
33673
|
-
return undefined;
|
|
33674
|
-
}
|
|
33675
|
-
function resolveBgColor(bgComp, theme, objectType) {
|
|
33676
|
-
const bgColor = bgComp === null || bgComp === void 0 ? void 0 : bgComp.bgColor;
|
|
33677
|
-
if (bgColor && theme) {
|
|
33678
|
-
if (bgColor.useExpression) {
|
|
33679
|
-
return theme.validateColor(bgColor.colorExpression);
|
|
33880
|
+
const useStyling = (layout, theme, app, themeName) => {
|
|
33881
|
+
const styling = reactExports.useMemo(() => {
|
|
33882
|
+
if (layout && theme) {
|
|
33883
|
+
const generalComp = layout.components ? layout.components.find(comp => comp.key === 'general') : null;
|
|
33884
|
+
const titleStyles = {
|
|
33885
|
+
main: resolveTextStyle(generalComp, 'main', theme, layout.visualization),
|
|
33886
|
+
footer: resolveTextStyle(generalComp, 'footer', theme, layout.visualization),
|
|
33887
|
+
subTitle: resolveTextStyle(generalComp, 'subTitle', theme, layout.visualization)
|
|
33888
|
+
};
|
|
33889
|
+
const bgColor = resolveBgColor(generalComp, theme, layout.visualization);
|
|
33890
|
+
const bgImage = resolveBgImage(generalComp, app);
|
|
33891
|
+
const border = resolveBorder(generalComp, theme, layout.visualization);
|
|
33892
|
+
const borderRadius = resolveBorderRadius(generalComp, theme, layout.visualization);
|
|
33893
|
+
const boxShadow = resolveBoxShadow(generalComp, theme, layout.visualization);
|
|
33894
|
+
return {
|
|
33895
|
+
titleStyles,
|
|
33896
|
+
bgColor,
|
|
33897
|
+
bgImage,
|
|
33898
|
+
border,
|
|
33899
|
+
borderRadius,
|
|
33900
|
+
boxShadow
|
|
33901
|
+
};
|
|
33680
33902
|
}
|
|
33681
|
-
return
|
|
33682
|
-
}
|
|
33683
|
-
|
|
33684
|
-
|
|
33685
|
-
}
|
|
33686
|
-
if (theme) {
|
|
33687
|
-
return theme.getStyle('', '', 'backgroundColor');
|
|
33688
|
-
}
|
|
33689
|
-
return undefined;
|
|
33690
|
-
}
|
|
33691
|
-
function unfurlFontStyle(fontStyle, target) {
|
|
33692
|
-
if (fontStyle && Array.isArray(fontStyle)) {
|
|
33693
|
-
return fontStyle;
|
|
33694
|
-
}
|
|
33695
|
-
return target === 'main' ? ['bold'] : [];
|
|
33696
|
-
}
|
|
33697
|
-
function resolveTextStyle(textComp, target, theme, objectType) {
|
|
33698
|
-
var _textComp$title;
|
|
33699
|
-
const textProps = (textComp === null || textComp === void 0 || (_textComp$title = textComp.title) === null || _textComp$title === void 0 ? void 0 : _textComp$title[target]) || {};
|
|
33700
|
-
const fontStyle = unfurlFontStyle(textProps.fontStyle, target);
|
|
33701
|
-
return {
|
|
33702
|
-
fontFamily: textProps.fontFamily || theme.getStyle("object.".concat(objectType), "title.".concat(target), 'fontFamily'),
|
|
33703
|
-
color: textProps.color && textProps.color.color !== 'none' ? theme.getColorPickerColor(textProps.color, true) : theme.getStyle("object.".concat(objectType), target, 'color'),
|
|
33704
|
-
fontWeight: fontStyle.includes('bold') ? 'bold' : 'normal',
|
|
33705
|
-
fontStyle: fontStyle.includes('italic') ? 'italic' : 'normal',
|
|
33706
|
-
textDecoration: fontStyle.includes('underline') ? 'underline' : 'initial'
|
|
33707
|
-
};
|
|
33708
|
-
}
|
|
33903
|
+
return {};
|
|
33904
|
+
}, [layout, theme, app, themeName]);
|
|
33905
|
+
return styling;
|
|
33906
|
+
};
|
|
33709
33907
|
|
|
33710
33908
|
/**
|
|
33711
33909
|
* @interface
|
|
@@ -34036,9 +34234,14 @@
|
|
|
34036
34234
|
enter: null,
|
|
34037
34235
|
leave: null
|
|
34038
34236
|
});
|
|
34039
|
-
const
|
|
34040
|
-
|
|
34041
|
-
|
|
34237
|
+
const {
|
|
34238
|
+
titleStyles,
|
|
34239
|
+
bgColor,
|
|
34240
|
+
bgImage,
|
|
34241
|
+
border,
|
|
34242
|
+
borderRadius,
|
|
34243
|
+
boxShadow
|
|
34244
|
+
} = useStyling(layout, halo.public.theme, halo.app, themeName);
|
|
34042
34245
|
const focusHandler = reactExports.useRef({
|
|
34043
34246
|
focusToolbarButton(last) {
|
|
34044
34247
|
// eslint-disable-next-line react/no-this-in-sfc
|
|
@@ -34048,18 +34251,6 @@
|
|
|
34048
34251
|
reactExports.useEffect(() => {
|
|
34049
34252
|
eventmixin(focusHandler.current);
|
|
34050
34253
|
}, []);
|
|
34051
|
-
reactExports.useEffect(() => {
|
|
34052
|
-
if (layout && halo.public.theme) {
|
|
34053
|
-
const bgComp = layout.components ? layout.components.find(comp => comp.key === 'general') : null;
|
|
34054
|
-
setTitleStyles({
|
|
34055
|
-
main: resolveTextStyle(bgComp, 'main', halo.public.theme, layout.visualization),
|
|
34056
|
-
footer: resolveTextStyle(bgComp, 'footer', halo.public.theme, layout.visualization),
|
|
34057
|
-
subTitle: resolveTextStyle(bgComp, 'subTitle', halo.public.theme, layout.visualization)
|
|
34058
|
-
});
|
|
34059
|
-
setBgColor(resolveBgColor(bgComp, halo.public.theme, layout.visualization));
|
|
34060
|
-
setBgImage(resolveBgImage(bgComp, halo.app));
|
|
34061
|
-
}
|
|
34062
|
-
}, [layout, halo.public.theme, halo.app, themeName]);
|
|
34063
34254
|
focusHandler.current.blurCallback = resetFocus => {
|
|
34064
34255
|
halo.root.toggleFocusOfCells();
|
|
34065
34256
|
if (resetFocus && contentNode) {
|
|
@@ -34250,7 +34441,11 @@
|
|
|
34250
34441
|
backgroundImage: bgImage && bgImage.url ? "url(".concat(bgImage.url, ")") : undefined,
|
|
34251
34442
|
backgroundRepeat: 'no-repeat',
|
|
34252
34443
|
backgroundSize: bgImage && bgImage.size,
|
|
34253
|
-
backgroundPosition: bgImage && bgImage.pos
|
|
34444
|
+
backgroundPosition: bgImage && bgImage.pos,
|
|
34445
|
+
border,
|
|
34446
|
+
borderRadius,
|
|
34447
|
+
boxShadow,
|
|
34448
|
+
boxSizing: 'border-box'
|
|
34254
34449
|
},
|
|
34255
34450
|
elevation: 0,
|
|
34256
34451
|
square: true,
|
|
@@ -37192,6 +37387,17 @@
|
|
|
37192
37387
|
onMount: onMount
|
|
37193
37388
|
}));
|
|
37194
37389
|
}
|
|
37390
|
+
function getBounds(pos, columns, rows) {
|
|
37391
|
+
if (pos.bounds) {
|
|
37392
|
+
return pos.bounds;
|
|
37393
|
+
}
|
|
37394
|
+
return {
|
|
37395
|
+
y: pos.row / rows * 100,
|
|
37396
|
+
x: pos.col / columns * 100,
|
|
37397
|
+
width: pos.colspan / columns * 100,
|
|
37398
|
+
height: pos.rowspan / rows * 100
|
|
37399
|
+
};
|
|
37400
|
+
}
|
|
37195
37401
|
function Sheet(_ref) {
|
|
37196
37402
|
let {
|
|
37197
37403
|
model,
|
|
@@ -37232,6 +37438,10 @@
|
|
|
37232
37438
|
root.removeCell(c.currentId);
|
|
37233
37439
|
});
|
|
37234
37440
|
const lCells = layout.cells;
|
|
37441
|
+
const {
|
|
37442
|
+
columns,
|
|
37443
|
+
rows
|
|
37444
|
+
} = layout;
|
|
37235
37445
|
// TODO - should try reuse existing objects on subsequent renders
|
|
37236
37446
|
// Non-id updates should only change the "css"
|
|
37237
37447
|
const cs = await Promise.all(lCells.map(async c => {
|
|
@@ -37241,7 +37451,7 @@
|
|
|
37241
37451
|
});
|
|
37242
37452
|
const cell = cells.find(ce => ce.id === c.name);
|
|
37243
37453
|
if (cell) {
|
|
37244
|
-
cell.bounds = c
|
|
37454
|
+
cell.bounds = getBounds(c, columns, rows);
|
|
37245
37455
|
delete cell.mountedPromise;
|
|
37246
37456
|
return cell;
|
|
37247
37457
|
}
|
|
@@ -37251,7 +37461,7 @@
|
|
|
37251
37461
|
return {
|
|
37252
37462
|
model: vs.model,
|
|
37253
37463
|
id: c.name,
|
|
37254
|
-
bounds: c
|
|
37464
|
+
bounds: getBounds(c, columns, rows),
|
|
37255
37465
|
cellRef: React.createRef(),
|
|
37256
37466
|
currentId: uid(),
|
|
37257
37467
|
mounted,
|