@nebula.js/stardust 4.7.0 → 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 +420 -338
- 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 +498 -417
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +9 -9
- package/dist/stardust.js.map +1 -1
- package/package.json +12 -12
- package/types/index.d.ts +0 -2
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);
|
|
@@ -15654,7 +15654,7 @@
|
|
|
15654
15654
|
};
|
|
15655
15655
|
}
|
|
15656
15656
|
|
|
15657
|
-
const _excluded$
|
|
15657
|
+
const _excluded$w = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
15658
15658
|
function getStyleValue(value) {
|
|
15659
15659
|
return parseInt(value, 10) || 0;
|
|
15660
15660
|
}
|
|
@@ -15696,7 +15696,7 @@
|
|
|
15696
15696
|
style,
|
|
15697
15697
|
value
|
|
15698
15698
|
} = props,
|
|
15699
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15699
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$w);
|
|
15700
15700
|
const {
|
|
15701
15701
|
current: isControlled
|
|
15702
15702
|
} = reactExports.useRef(value != null);
|
|
@@ -15865,7 +15865,7 @@
|
|
|
15865
15865
|
});
|
|
15866
15866
|
});
|
|
15867
15867
|
|
|
15868
|
-
const _excluded$
|
|
15868
|
+
const _excluded$v = ["anchorEl", "component", "components", "componentsProps", "container", "disablePortal", "keepMounted", "modifiers", "open", "placement", "popperOptions", "popperRef", "transition", "slots", "slotProps"];
|
|
15869
15869
|
const PopperRoot = styled$1(Popper$2, {
|
|
15870
15870
|
name: 'MuiPopper',
|
|
15871
15871
|
slot: 'Root',
|
|
@@ -15908,7 +15908,7 @@
|
|
|
15908
15908
|
slots,
|
|
15909
15909
|
slotProps
|
|
15910
15910
|
} = props,
|
|
15911
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
15911
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$v);
|
|
15912
15912
|
const RootComponent = (_slots$root = slots == null ? void 0 : slots.root) != null ? _slots$root : components == null ? void 0 : components.Root;
|
|
15913
15913
|
const otherProps = _extends$5({
|
|
15914
15914
|
anchorEl,
|
|
@@ -15995,7 +15995,7 @@
|
|
|
15995
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']);
|
|
15996
15996
|
var inputBaseClasses$1 = inputBaseClasses;
|
|
15997
15997
|
|
|
15998
|
-
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"];
|
|
15999
15999
|
const rootOverridesResolver = (props, styles) => {
|
|
16000
16000
|
const {
|
|
16001
16001
|
ownerState
|
|
@@ -16226,7 +16226,7 @@
|
|
|
16226
16226
|
type = 'text',
|
|
16227
16227
|
value: valueProp
|
|
16228
16228
|
} = props,
|
|
16229
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
16229
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$u);
|
|
16230
16230
|
const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
|
|
16231
16231
|
const {
|
|
16232
16232
|
current: isControlled
|
|
@@ -16439,7 +16439,7 @@
|
|
|
16439
16439
|
const outlinedInputClasses = _extends$5({}, inputBaseClasses$1, generateUtilityClasses('MuiOutlinedInput', ['root', 'notchedOutline', 'input']));
|
|
16440
16440
|
var outlinedInputClasses$1 = outlinedInputClasses;
|
|
16441
16441
|
|
|
16442
|
-
const _excluded$
|
|
16442
|
+
const _excluded$t = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
16443
16443
|
const styles$1 = {
|
|
16444
16444
|
entering: {
|
|
16445
16445
|
opacity: 1
|
|
@@ -16476,7 +16476,7 @@
|
|
|
16476
16476
|
// eslint-disable-next-line react/prop-types
|
|
16477
16477
|
TransitionComponent = Transition$1
|
|
16478
16478
|
} = props,
|
|
16479
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
16479
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$t);
|
|
16480
16480
|
const nodeRef = reactExports.useRef(null);
|
|
16481
16481
|
const handleRef = useForkRef(nodeRef, children.ref, ref);
|
|
16482
16482
|
const normalizedTransitionCallback = callback => maybeIsAppearing => {
|
|
@@ -16562,7 +16562,7 @@
|
|
|
16562
16562
|
}
|
|
16563
16563
|
generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
|
16564
16564
|
|
|
16565
|
-
const _excluded$
|
|
16565
|
+
const _excluded$s = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
|
|
16566
16566
|
const useUtilityClasses$j = ownerState => {
|
|
16567
16567
|
const {
|
|
16568
16568
|
classes,
|
|
@@ -16617,7 +16617,7 @@
|
|
|
16617
16617
|
TransitionComponent = Fade$1,
|
|
16618
16618
|
transitionDuration
|
|
16619
16619
|
} = props,
|
|
16620
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
16620
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$s);
|
|
16621
16621
|
const ownerState = _extends$5({}, props, {
|
|
16622
16622
|
component,
|
|
16623
16623
|
invisible
|
|
@@ -16650,7 +16650,7 @@
|
|
|
16650
16650
|
'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']);
|
|
16651
16651
|
var badgeClasses$1 = badgeClasses;
|
|
16652
16652
|
|
|
16653
|
-
const _excluded$
|
|
16653
|
+
const _excluded$r = ["anchorOrigin", "className", "classes", "component", "components", "componentsProps", "children", "overlap", "color", "invisible", "max", "badgeContent", "slots", "slotProps", "showZero", "variant"];
|
|
16654
16654
|
const RADIUS_STANDARD = 10;
|
|
16655
16655
|
const RADIUS_DOT = 4;
|
|
16656
16656
|
const useUtilityClasses$i = ownerState => {
|
|
@@ -16818,7 +16818,7 @@
|
|
|
16818
16818
|
showZero = false,
|
|
16819
16819
|
variant: variantProp = 'standard'
|
|
16820
16820
|
} = props,
|
|
16821
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
16821
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$r);
|
|
16822
16822
|
const {
|
|
16823
16823
|
badgeContent,
|
|
16824
16824
|
invisible: invisibleFromHook,
|
|
@@ -16902,7 +16902,7 @@
|
|
|
16902
16902
|
}
|
|
16903
16903
|
generateUtilityClasses('PrivateSwitchBase', ['root', 'checked', 'disabled', 'input', 'edgeStart', 'edgeEnd']);
|
|
16904
16904
|
|
|
16905
|
-
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"];
|
|
16906
16906
|
const useUtilityClasses$h = ownerState => {
|
|
16907
16907
|
const {
|
|
16908
16908
|
classes,
|
|
@@ -16968,7 +16968,7 @@
|
|
|
16968
16968
|
type,
|
|
16969
16969
|
value
|
|
16970
16970
|
} = props,
|
|
16971
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
16971
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$q);
|
|
16972
16972
|
const [checked, setCheckedState] = useControlled({
|
|
16973
16973
|
controlled: checkedProp,
|
|
16974
16974
|
default: Boolean(defaultChecked),
|
|
@@ -17071,7 +17071,7 @@
|
|
|
17071
17071
|
const checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium']);
|
|
17072
17072
|
var checkboxClasses$1 = checkboxClasses;
|
|
17073
17073
|
|
|
17074
|
-
const _excluded$
|
|
17074
|
+
const _excluded$p = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"];
|
|
17075
17075
|
const useUtilityClasses$g = ownerState => {
|
|
17076
17076
|
const {
|
|
17077
17077
|
classes,
|
|
@@ -17135,7 +17135,7 @@
|
|
|
17135
17135
|
size = 'medium',
|
|
17136
17136
|
className
|
|
17137
17137
|
} = props,
|
|
17138
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
17138
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$p);
|
|
17139
17139
|
const icon = indeterminate ? indeterminateIconProp : iconProp;
|
|
17140
17140
|
const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
|
17141
17141
|
const ownerState = _extends$5({}, props, {
|
|
@@ -17169,7 +17169,7 @@
|
|
|
17169
17169
|
}
|
|
17170
17170
|
generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
|
|
17171
17171
|
|
|
17172
|
-
const _excluded$
|
|
17172
|
+
const _excluded$o = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
|
17173
17173
|
let _ = t => t,
|
|
17174
17174
|
_t,
|
|
17175
17175
|
_t2,
|
|
@@ -17294,7 +17294,7 @@
|
|
|
17294
17294
|
value = 0,
|
|
17295
17295
|
variant = 'indeterminate'
|
|
17296
17296
|
} = props,
|
|
17297
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
17297
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$o);
|
|
17298
17298
|
const ownerState = _extends$5({}, props, {
|
|
17299
17299
|
color,
|
|
17300
17300
|
disableShrink,
|
|
@@ -17348,7 +17348,7 @@
|
|
|
17348
17348
|
}
|
|
17349
17349
|
generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
|
|
17350
17350
|
|
|
17351
|
-
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"];
|
|
17352
17352
|
const useUtilityClasses$e = ownerState => {
|
|
17353
17353
|
const {
|
|
17354
17354
|
open,
|
|
@@ -17436,7 +17436,7 @@
|
|
|
17436
17436
|
slots
|
|
17437
17437
|
// eslint-disable-next-line react/prop-types
|
|
17438
17438
|
} = props,
|
|
17439
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
17439
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$n);
|
|
17440
17440
|
const propsWithDefaults = _extends$5({}, props, {
|
|
17441
17441
|
closeAfterTransition,
|
|
17442
17442
|
disableAutoFocus,
|
|
@@ -17539,7 +17539,7 @@
|
|
|
17539
17539
|
const dividerClasses = generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
|
|
17540
17540
|
var dividerClasses$1 = dividerClasses;
|
|
17541
17541
|
|
|
17542
|
-
const _excluded$
|
|
17542
|
+
const _excluded$m = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"];
|
|
17543
17543
|
const useUtilityClasses$d = ownerState => {
|
|
17544
17544
|
const {
|
|
17545
17545
|
absolute,
|
|
@@ -17681,7 +17681,7 @@
|
|
|
17681
17681
|
textAlign = 'center',
|
|
17682
17682
|
variant = 'fullWidth'
|
|
17683
17683
|
} = props,
|
|
17684
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
17684
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$m);
|
|
17685
17685
|
const ownerState = _extends$5({}, props, {
|
|
17686
17686
|
absolute,
|
|
17687
17687
|
component,
|
|
@@ -17734,7 +17734,7 @@
|
|
|
17734
17734
|
const formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error', 'required', 'asterisk']);
|
|
17735
17735
|
var formControlLabelClasses$1 = formControlLabelClasses;
|
|
17736
17736
|
|
|
17737
|
-
const _excluded$
|
|
17737
|
+
const _excluded$l = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "required", "slotProps", "value"];
|
|
17738
17738
|
const useUtilityClasses$c = ownerState => {
|
|
17739
17739
|
const {
|
|
17740
17740
|
classes,
|
|
@@ -17828,7 +17828,7 @@
|
|
|
17828
17828
|
required: requiredProp,
|
|
17829
17829
|
slotProps = {}
|
|
17830
17830
|
} = props,
|
|
17831
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
17831
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$l);
|
|
17832
17832
|
const muiFormControl = useFormControl();
|
|
17833
17833
|
const disabled = (_ref = disabledProp != null ? disabledProp : control.props.disabled) != null ? _ref : muiFormControl == null ? void 0 : muiFormControl.disabled;
|
|
17834
17834
|
const required = requiredProp != null ? requiredProp : control.props.required;
|
|
@@ -17869,8 +17869,7 @@
|
|
|
17869
17869
|
ref: ref
|
|
17870
17870
|
}, other, {
|
|
17871
17871
|
children: [/*#__PURE__*/reactExports.cloneElement(control, controlProps), required ? /*#__PURE__*/jsxRuntimeExports.jsxs(Stack$1, {
|
|
17872
|
-
|
|
17873
|
-
alignItems: "center",
|
|
17872
|
+
display: "block",
|
|
17874
17873
|
children: [label, /*#__PURE__*/jsxRuntimeExports.jsxs(AsteriskComponent, {
|
|
17875
17874
|
ownerState: ownerState,
|
|
17876
17875
|
"aria-hidden": true,
|
|
@@ -17905,7 +17904,7 @@
|
|
|
17905
17904
|
// grid sizes for all breakpoints
|
|
17906
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}`)]);
|
|
17907
17906
|
|
|
17908
|
-
const _excluded$
|
|
17907
|
+
const _excluded$k = ["className", "columns", "columnSpacing", "component", "container", "direction", "item", "rowSpacing", "spacing", "wrap", "zeroMinWidth"];
|
|
17909
17908
|
function getOffset$1(val) {
|
|
17910
17909
|
const parse = parseFloat(val);
|
|
17911
17910
|
return `${parse}${String(val).replace(String(parse), '') || 'px'}`;
|
|
@@ -18265,7 +18264,7 @@
|
|
|
18265
18264
|
wrap = 'wrap',
|
|
18266
18265
|
zeroMinWidth = false
|
|
18267
18266
|
} = props,
|
|
18268
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18267
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$k);
|
|
18269
18268
|
const rowSpacing = rowSpacingProp || spacing;
|
|
18270
18269
|
const columnSpacing = columnSpacingProp || spacing;
|
|
18271
18270
|
const columnsContext = reactExports.useContext(GridContext$1);
|
|
@@ -18306,7 +18305,7 @@
|
|
|
18306
18305
|
});
|
|
18307
18306
|
var Grid$1 = Grid;
|
|
18308
18307
|
|
|
18309
|
-
const _excluded$
|
|
18308
|
+
const _excluded$j = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
18310
18309
|
function getScale(value) {
|
|
18311
18310
|
return `scale(${value}, ${value ** 2})`;
|
|
18312
18311
|
}
|
|
@@ -18350,7 +18349,7 @@
|
|
|
18350
18349
|
// eslint-disable-next-line react/prop-types
|
|
18351
18350
|
TransitionComponent = Transition$1
|
|
18352
18351
|
} = props,
|
|
18353
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18352
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$j);
|
|
18354
18353
|
const timer = reactExports.useRef();
|
|
18355
18354
|
const autoTimeout = reactExports.useRef();
|
|
18356
18355
|
const theme = useTheme$1();
|
|
@@ -18485,7 +18484,7 @@
|
|
|
18485
18484
|
}
|
|
18486
18485
|
generateUtilityClasses('MuiIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
|
18487
18486
|
|
|
18488
|
-
const _excluded$
|
|
18487
|
+
const _excluded$i = ["baseClassName", "className", "color", "component", "fontSize"];
|
|
18489
18488
|
const useUtilityClasses$a = ownerState => {
|
|
18490
18489
|
const {
|
|
18491
18490
|
color,
|
|
@@ -18552,7 +18551,7 @@
|
|
|
18552
18551
|
component: Component = 'span',
|
|
18553
18552
|
fontSize = 'medium'
|
|
18554
18553
|
} = props,
|
|
18555
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18554
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$i);
|
|
18556
18555
|
const ownerState = _extends$5({}, props, {
|
|
18557
18556
|
baseClassName,
|
|
18558
18557
|
color,
|
|
@@ -18581,7 +18580,7 @@
|
|
|
18581
18580
|
var inputAdornmentClasses$1 = inputAdornmentClasses;
|
|
18582
18581
|
|
|
18583
18582
|
var _span$1;
|
|
18584
|
-
const _excluded$
|
|
18583
|
+
const _excluded$h = ["children", "className", "component", "disablePointerEvents", "disableTypography", "position", "variant"];
|
|
18585
18584
|
const overridesResolver$2 = (props, styles) => {
|
|
18586
18585
|
const {
|
|
18587
18586
|
ownerState
|
|
@@ -18646,7 +18645,7 @@
|
|
|
18646
18645
|
position,
|
|
18647
18646
|
variant: variantProp
|
|
18648
18647
|
} = props,
|
|
18649
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18648
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$h);
|
|
18650
18649
|
const muiFormControl = useFormControl() || {};
|
|
18651
18650
|
let variant = variantProp;
|
|
18652
18651
|
if (variantProp && muiFormControl.variant) ;
|
|
@@ -18694,7 +18693,7 @@
|
|
|
18694
18693
|
}
|
|
18695
18694
|
generateUtilityClasses('MuiList', ['root', 'padding', 'dense', 'subheader']);
|
|
18696
18695
|
|
|
18697
|
-
const _excluded$
|
|
18696
|
+
const _excluded$g = ["children", "className", "component", "dense", "disablePadding", "subheader"];
|
|
18698
18697
|
const useUtilityClasses$8 = ownerState => {
|
|
18699
18698
|
const {
|
|
18700
18699
|
classes,
|
|
@@ -18742,7 +18741,7 @@
|
|
|
18742
18741
|
disablePadding = false,
|
|
18743
18742
|
subheader
|
|
18744
18743
|
} = props,
|
|
18745
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18744
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$g);
|
|
18746
18745
|
const context = reactExports.useMemo(() => ({
|
|
18747
18746
|
dense
|
|
18748
18747
|
}), [dense]);
|
|
@@ -18780,7 +18779,7 @@
|
|
|
18780
18779
|
}
|
|
18781
18780
|
generateUtilityClasses('MuiListItemSecondaryAction', ['root', 'disableGutters']);
|
|
18782
18781
|
|
|
18783
|
-
const _excluded$
|
|
18782
|
+
const _excluded$f = ["className"];
|
|
18784
18783
|
const useUtilityClasses$7 = ownerState => {
|
|
18785
18784
|
const {
|
|
18786
18785
|
disableGutters,
|
|
@@ -18822,7 +18821,7 @@
|
|
|
18822
18821
|
const {
|
|
18823
18822
|
className
|
|
18824
18823
|
} = props,
|
|
18825
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
18824
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$f);
|
|
18826
18825
|
const context = reactExports.useContext(ListContext$1);
|
|
18827
18826
|
const ownerState = _extends$5({}, props, {
|
|
18828
18827
|
disableGutters: context.disableGutters
|
|
@@ -18837,7 +18836,7 @@
|
|
|
18837
18836
|
ListItemSecondaryAction.muiName = 'ListItemSecondaryAction';
|
|
18838
18837
|
var ListItemSecondaryAction$1 = ListItemSecondaryAction;
|
|
18839
18838
|
|
|
18840
|
-
const _excluded$
|
|
18839
|
+
const _excluded$e = ["className"],
|
|
18841
18840
|
_excluded2$2 = ["alignItems", "autoFocus", "button", "children", "className", "component", "components", "componentsProps", "ContainerComponent", "ContainerProps", "dense", "disabled", "disableGutters", "disablePadding", "divider", "focusVisibleClassName", "secondaryAction", "selected", "slotProps", "slots"];
|
|
18842
18841
|
const overridesResolver$1 = (props, styles) => {
|
|
18843
18842
|
const {
|
|
@@ -18979,7 +18978,7 @@
|
|
|
18979
18978
|
slotProps = {},
|
|
18980
18979
|
slots = {}
|
|
18981
18980
|
} = props,
|
|
18982
|
-
ContainerProps = _objectWithoutPropertiesLoose$3(props.ContainerProps, _excluded$
|
|
18981
|
+
ContainerProps = _objectWithoutPropertiesLoose$3(props.ContainerProps, _excluded$e),
|
|
18983
18982
|
other = _objectWithoutPropertiesLoose$3(props, _excluded2$2);
|
|
18984
18983
|
const context = reactExports.useContext(ListContext$1);
|
|
18985
18984
|
const childContext = reactExports.useMemo(() => ({
|
|
@@ -19078,7 +19077,7 @@
|
|
|
19078
19077
|
const listItemIconClasses = generateUtilityClasses('MuiListItemIcon', ['root', 'alignItemsFlexStart']);
|
|
19079
19078
|
var listItemIconClasses$1 = listItemIconClasses;
|
|
19080
19079
|
|
|
19081
|
-
const _excluded$
|
|
19080
|
+
const _excluded$d = ["className"];
|
|
19082
19081
|
const useUtilityClasses$5 = ownerState => {
|
|
19083
19082
|
const {
|
|
19084
19083
|
alignItems,
|
|
@@ -19121,7 +19120,7 @@
|
|
|
19121
19120
|
const {
|
|
19122
19121
|
className
|
|
19123
19122
|
} = props,
|
|
19124
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
19123
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$d);
|
|
19125
19124
|
const context = reactExports.useContext(ListContext$1);
|
|
19126
19125
|
const ownerState = _extends$5({}, props, {
|
|
19127
19126
|
alignItems: context.alignItems
|
|
@@ -19138,7 +19137,7 @@
|
|
|
19138
19137
|
const listItemTextClasses = generateUtilityClasses('MuiListItemText', ['root', 'multiline', 'dense', 'inset', 'primary', 'secondary']);
|
|
19139
19138
|
var listItemTextClasses$1 = listItemTextClasses;
|
|
19140
19139
|
|
|
19141
|
-
const _excluded$
|
|
19140
|
+
const _excluded$c = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
|
|
19142
19141
|
function nextItem(list, item, disableListWrap) {
|
|
19143
19142
|
if (list === item) {
|
|
19144
19143
|
return list.firstChild;
|
|
@@ -19220,7 +19219,7 @@
|
|
|
19220
19219
|
onKeyDown,
|
|
19221
19220
|
variant = 'selectedMenu'
|
|
19222
19221
|
} = props,
|
|
19223
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
19222
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$c);
|
|
19224
19223
|
const listRef = reactExports.useRef(null);
|
|
19225
19224
|
const textCriteriaRef = reactExports.useRef({
|
|
19226
19225
|
keys: [],
|
|
@@ -19363,7 +19362,7 @@
|
|
|
19363
19362
|
}
|
|
19364
19363
|
generateUtilityClasses('MuiPopover', ['root', 'paper']);
|
|
19365
19364
|
|
|
19366
|
-
const _excluded$
|
|
19365
|
+
const _excluded$b = ["onEntering"],
|
|
19367
19366
|
_excluded2$1 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "slots", "slotProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps", "disableScrollLock"],
|
|
19368
19367
|
_excluded3 = ["slotProps"];
|
|
19369
19368
|
function getOffsetTop(rect, vertical) {
|
|
@@ -19461,7 +19460,7 @@
|
|
|
19461
19460
|
} = {},
|
|
19462
19461
|
disableScrollLock = false
|
|
19463
19462
|
} = props,
|
|
19464
|
-
TransitionProps = _objectWithoutPropertiesLoose$3(props.TransitionProps, _excluded$
|
|
19463
|
+
TransitionProps = _objectWithoutPropertiesLoose$3(props.TransitionProps, _excluded$b),
|
|
19465
19464
|
other = _objectWithoutPropertiesLoose$3(props, _excluded2$1);
|
|
19466
19465
|
const externalPaperSlotProps = (_slotProps$paper = slotProps == null ? void 0 : slotProps.paper) != null ? _slotProps$paper : PaperPropsProp;
|
|
19467
19466
|
const paperRef = reactExports.useRef();
|
|
@@ -19688,7 +19687,7 @@
|
|
|
19688
19687
|
const menuItemClasses = generateUtilityClasses('MuiMenuItem', ['root', 'focusVisible', 'dense', 'disabled', 'divider', 'gutters', 'selected']);
|
|
19689
19688
|
var menuItemClasses$1 = menuItemClasses;
|
|
19690
19689
|
|
|
19691
|
-
const _excluded$
|
|
19690
|
+
const _excluded$a = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex", "className"];
|
|
19692
19691
|
const overridesResolver = (props, styles) => {
|
|
19693
19692
|
const {
|
|
19694
19693
|
ownerState
|
|
@@ -19810,7 +19809,7 @@
|
|
|
19810
19809
|
tabIndex: tabIndexProp,
|
|
19811
19810
|
className
|
|
19812
19811
|
} = props,
|
|
19813
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
19812
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$a);
|
|
19814
19813
|
const context = reactExports.useContext(ListContext$1);
|
|
19815
19814
|
const childContext = reactExports.useMemo(() => ({
|
|
19816
19815
|
dense: dense || context.dense || false,
|
|
@@ -19853,7 +19852,7 @@
|
|
|
19853
19852
|
var MenuItem$1 = MenuItem;
|
|
19854
19853
|
|
|
19855
19854
|
var _span;
|
|
19856
|
-
const _excluded$
|
|
19855
|
+
const _excluded$9 = ["children", "classes", "className", "label", "notched"];
|
|
19857
19856
|
const NotchedOutlineRoot$1 = styled$1('fieldset', {
|
|
19858
19857
|
shouldForwardProp: rootShouldForwardProp
|
|
19859
19858
|
})({
|
|
@@ -19930,7 +19929,7 @@
|
|
|
19930
19929
|
label,
|
|
19931
19930
|
notched
|
|
19932
19931
|
} = props,
|
|
19933
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
19932
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$9);
|
|
19934
19933
|
const withLabel = label != null && label !== '';
|
|
19935
19934
|
const ownerState = _extends$5({}, props, {
|
|
19936
19935
|
notched,
|
|
@@ -19954,7 +19953,7 @@
|
|
|
19954
19953
|
}));
|
|
19955
19954
|
}
|
|
19956
19955
|
|
|
19957
|
-
const _excluded$
|
|
19956
|
+
const _excluded$8 = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
|
|
19958
19957
|
const useUtilityClasses$2 = ownerState => {
|
|
19959
19958
|
const {
|
|
19960
19959
|
classes
|
|
@@ -20073,7 +20072,7 @@
|
|
|
20073
20072
|
slots = {},
|
|
20074
20073
|
type = 'text'
|
|
20075
20074
|
} = props,
|
|
20076
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
20075
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$8);
|
|
20077
20076
|
const classes = useUtilityClasses$2(props);
|
|
20078
20077
|
const muiFormControl = useFormControl();
|
|
20079
20078
|
const fcs = formControlState({
|
|
@@ -20202,7 +20201,7 @@
|
|
|
20202
20201
|
const radioClasses = generateUtilityClasses('MuiRadio', ['root', 'checked', 'disabled', 'colorPrimary', 'colorSecondary', 'sizeSmall']);
|
|
20203
20202
|
var radioClasses$1 = radioClasses;
|
|
20204
20203
|
|
|
20205
|
-
const _excluded$
|
|
20204
|
+
const _excluded$7 = ["checked", "checkedIcon", "color", "icon", "name", "onChange", "size", "className"];
|
|
20206
20205
|
const useUtilityClasses$1 = ownerState => {
|
|
20207
20206
|
const {
|
|
20208
20207
|
classes,
|
|
@@ -20274,7 +20273,7 @@
|
|
|
20274
20273
|
size = 'medium',
|
|
20275
20274
|
className
|
|
20276
20275
|
} = props,
|
|
20277
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
20276
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$7);
|
|
20278
20277
|
const ownerState = _extends$5({}, props, {
|
|
20279
20278
|
color,
|
|
20280
20279
|
size
|
|
@@ -20317,7 +20316,7 @@
|
|
|
20317
20316
|
const tooltipClasses = generateUtilityClasses('MuiTooltip', ['popper', 'popperInteractive', 'popperArrow', 'popperClose', 'tooltip', 'tooltipArrow', 'touch', 'tooltipPlacementLeft', 'tooltipPlacementRight', 'tooltipPlacementTop', 'tooltipPlacementBottom', 'arrow']);
|
|
20318
20317
|
var tooltipClasses$1 = tooltipClasses;
|
|
20319
20318
|
|
|
20320
|
-
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"];
|
|
20321
20320
|
function round$1(value) {
|
|
20322
20321
|
return Math.round(value * 1e5) / 1e5;
|
|
20323
20322
|
}
|
|
@@ -20539,7 +20538,7 @@
|
|
|
20539
20538
|
TransitionComponent: TransitionComponentProp = Grow$1,
|
|
20540
20539
|
TransitionProps
|
|
20541
20540
|
} = props,
|
|
20542
|
-
other = _objectWithoutPropertiesLoose$3(props, _excluded$
|
|
20541
|
+
other = _objectWithoutPropertiesLoose$3(props, _excluded$6);
|
|
20543
20542
|
|
|
20544
20543
|
// to prevent runtime errors, developers will need to provide a child as a React element anyway.
|
|
20545
20544
|
const children = /*#__PURE__*/reactExports.isValidElement(childrenProp) ? childrenProp : /*#__PURE__*/jsxRuntimeExports.jsx("span", {
|
|
@@ -22000,6 +21999,7 @@
|
|
|
22000
21999
|
};
|
|
22001
22000
|
const getFrequencyText = qFrequency => qFrequency || frequencyTextNone;
|
|
22002
22001
|
|
|
22002
|
+
const _excluded$5 = ["backgroundColor"];
|
|
22003
22003
|
const getFreqFlexBasis = _ref => {
|
|
22004
22004
|
let {
|
|
22005
22005
|
sizes,
|
|
@@ -22081,8 +22081,8 @@
|
|
|
22081
22081
|
freqHitsValue,
|
|
22082
22082
|
styles
|
|
22083
22083
|
} = _ref4;
|
|
22084
|
-
const
|
|
22085
|
-
|
|
22084
|
+
const _styles$content = styles.content,
|
|
22085
|
+
contentFontStyles = _objectWithoutProperties(_styles$content, _excluded$5);
|
|
22086
22086
|
const selectStyle = getSelectedStyle({
|
|
22087
22087
|
theme,
|
|
22088
22088
|
styles,
|
|
@@ -22108,20 +22108,17 @@
|
|
|
22108
22108
|
outline: 'none'
|
|
22109
22109
|
}
|
|
22110
22110
|
},
|
|
22111
|
-
["& .".concat(rowColClasses.row)]: {
|
|
22112
|
-
flexWrap: 'nowrap'
|
|
22113
|
-
|
|
22114
|
-
backgroundColor: rowBackgroundColor
|
|
22115
|
-
},
|
|
22111
|
+
["& .".concat(rowColClasses.row)]: _objectSpread2({
|
|
22112
|
+
flexWrap: 'nowrap'
|
|
22113
|
+
}, styles.content),
|
|
22116
22114
|
["& .".concat(rowColClasses.rowBorderBottom)]: {
|
|
22117
22115
|
borderBottom: isGridCol ? 'none' : "1px solid ".concat(theme.palette.divider),
|
|
22118
22116
|
borderLeft: isGridCol ? "1px solid ".concat(theme.palette.divider) : 'none'
|
|
22119
22117
|
},
|
|
22120
|
-
["& .".concat(rowColClasses.column)]: {
|
|
22118
|
+
["& .".concat(rowColClasses.column)]: _objectSpread2({
|
|
22121
22119
|
flexWrap: 'nowrap',
|
|
22122
|
-
borderRight: "1px solid ".concat(theme.palette.divider)
|
|
22123
|
-
|
|
22124
|
-
},
|
|
22120
|
+
borderRight: "1px solid ".concat(theme.palette.divider)
|
|
22121
|
+
}, styles.content),
|
|
22125
22122
|
// The interior wrapper for all field content.
|
|
22126
22123
|
["& .".concat(rowColClasses.cell)]: {
|
|
22127
22124
|
zIndex: 2,
|
|
@@ -22140,11 +22137,7 @@
|
|
|
22140
22137
|
lineHeight: '16px',
|
|
22141
22138
|
userSelect: 'none',
|
|
22142
22139
|
paddingRight: '1px'
|
|
22143
|
-
}, ellipsis),
|
|
22144
|
-
fontSize: styles.content.fontSize,
|
|
22145
|
-
fontFamily: styles.content.fontFamily,
|
|
22146
|
-
color: rowFontColor
|
|
22147
|
-
}),
|
|
22140
|
+
}, ellipsis), contentFontStyles),
|
|
22148
22141
|
["& .".concat(rowColClasses.labelDense)]: {
|
|
22149
22142
|
fontSize: 12
|
|
22150
22143
|
},
|
|
@@ -22178,7 +22171,7 @@
|
|
|
22178
22171
|
width: iconWidth,
|
|
22179
22172
|
minWidth: iconWidth,
|
|
22180
22173
|
maxWidth: iconWidth,
|
|
22181
|
-
color:
|
|
22174
|
+
color: contentFontStyles.color
|
|
22182
22175
|
},
|
|
22183
22176
|
// Selection styles (S=Selected, XS=ExcludedSelected, A=Alternative, X=Excluded).
|
|
22184
22177
|
["& .".concat(rowColClasses.S)]: _objectSpread2(_objectSpread2({}, selectStyle), {}, {
|
|
@@ -26327,7 +26320,7 @@
|
|
|
26327
26320
|
return {
|
|
26328
26321
|
// Set here to allow clicking through the modals container
|
|
26329
26322
|
pointerEvents: 'none',
|
|
26330
|
-
["& .".concat(classes$8.icon)]: {
|
|
26323
|
+
["& .".concat(classes$8.icon, " *")]: {
|
|
26331
26324
|
color: theme.palette.text.primary
|
|
26332
26325
|
}
|
|
26333
26326
|
};
|
|
@@ -26385,6 +26378,12 @@
|
|
|
26385
26378
|
slotProps: {
|
|
26386
26379
|
root: {
|
|
26387
26380
|
className: ActionsToolbarMoreElement.className
|
|
26381
|
+
},
|
|
26382
|
+
paper: {
|
|
26383
|
+
style: _objectSpread2({
|
|
26384
|
+
pointerEvents: 'auto',
|
|
26385
|
+
maxWidth: '250px'
|
|
26386
|
+
}, popoverPaperStyle)
|
|
26388
26387
|
}
|
|
26389
26388
|
},
|
|
26390
26389
|
anchorOrigin: {
|
|
@@ -26394,12 +26393,6 @@
|
|
|
26394
26393
|
transformOrigin: {
|
|
26395
26394
|
vertical: 'top',
|
|
26396
26395
|
horizontal: 'right'
|
|
26397
|
-
},
|
|
26398
|
-
PaperProps: {
|
|
26399
|
-
style: _objectSpread2({
|
|
26400
|
-
pointerEvents: 'auto',
|
|
26401
|
-
maxWidth: '250px'
|
|
26402
|
-
}, popoverPaperStyle)
|
|
26403
26396
|
}
|
|
26404
26397
|
}), /*#__PURE__*/React.createElement(MenuList$1, {
|
|
26405
26398
|
id: "moreMenuList"
|
|
@@ -26723,30 +26716,53 @@
|
|
|
26723
26716
|
|
|
26724
26717
|
const TREE_PATH = '/qListObjectDef';
|
|
26725
26718
|
const WILDCARD = '**';
|
|
26726
|
-
const
|
|
26727
|
-
shouldForwardProp: p =>
|
|
26719
|
+
const StyledOutlinedInput = styled$1(OutlinedInput$1, {
|
|
26720
|
+
shouldForwardProp: p => !['styles', 'dense', 'isRtl'].includes(p)
|
|
26728
26721
|
})(_ref => {
|
|
26729
26722
|
let {
|
|
26730
|
-
|
|
26723
|
+
theme,
|
|
26724
|
+
styles,
|
|
26725
|
+
dense,
|
|
26726
|
+
isRtl
|
|
26731
26727
|
} = _ref;
|
|
26732
|
-
|
|
26733
|
-
|
|
26734
|
-
|
|
26735
|
-
|
|
26736
|
-
|
|
26737
|
-
|
|
26738
|
-
|
|
26739
|
-
|
|
26740
|
-
|
|
26741
|
-
|
|
26742
|
-
|
|
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({
|
|
26743
26740
|
display: 'flex',
|
|
26744
|
-
|
|
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
|
+
'& *': {
|
|
26745
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")
|
|
26746
26762
|
}
|
|
26747
|
-
};
|
|
26763
|
+
}, denseProps);
|
|
26748
26764
|
});
|
|
26749
|
-
function ListBoxSearch(
|
|
26765
|
+
function ListBoxSearch(_ref2) {
|
|
26750
26766
|
let {
|
|
26751
26767
|
selections,
|
|
26752
26768
|
selectionState,
|
|
@@ -26760,20 +26776,18 @@
|
|
|
26760
26776
|
direction,
|
|
26761
26777
|
hide,
|
|
26762
26778
|
styles
|
|
26763
|
-
} =
|
|
26779
|
+
} = _ref2;
|
|
26764
26780
|
const {
|
|
26765
26781
|
translator
|
|
26766
26782
|
} = reactExports.useContext(InstanceContext);
|
|
26767
26783
|
const [value, setValue] = reactExports.useState('');
|
|
26768
26784
|
const [wildcardOn, setWildcardOn] = reactExports.useState(false);
|
|
26769
26785
|
const inputRef = reactExports.useRef();
|
|
26770
|
-
const theme = useTheme$1();
|
|
26771
26786
|
const {
|
|
26772
26787
|
getStoreValue,
|
|
26773
26788
|
setStoreValue
|
|
26774
26789
|
} = useDataStore(model);
|
|
26775
26790
|
const isRtl = direction === 'rtl';
|
|
26776
|
-
const inpuTextAlign = isRtl ? 'right' : 'left';
|
|
26777
26791
|
const cancel = () => selections.isActive() && selections.cancel();
|
|
26778
26792
|
const abortSearch = async () => {
|
|
26779
26793
|
if (!selections.isModal()) {
|
|
@@ -26897,37 +26911,14 @@
|
|
|
26897
26911
|
}
|
|
26898
26912
|
return /*#__PURE__*/React.createElement(StyledOutlinedInput, {
|
|
26899
26913
|
styles: styles,
|
|
26900
|
-
|
|
26901
|
-
|
|
26902
|
-
|
|
26914
|
+
dense: dense,
|
|
26915
|
+
isRtl: isRtl,
|
|
26916
|
+
startAdornment: /*#__PURE__*/React.createElement(InputAdornment$1, {
|
|
26917
|
+
position: "start"
|
|
26903
26918
|
}, /*#__PURE__*/React.createElement(SearchIcon, {
|
|
26904
26919
|
size: dense ? 'small' : 'normal'
|
|
26905
26920
|
})),
|
|
26906
26921
|
className: "search",
|
|
26907
|
-
sx: [{
|
|
26908
|
-
border: 'none',
|
|
26909
|
-
fontSize: 14,
|
|
26910
|
-
borderRadius: 0,
|
|
26911
|
-
backgroundColor: 'transparent',
|
|
26912
|
-
'& fieldset': {
|
|
26913
|
-
border: "1px solid ".concat(theme.palette.divider),
|
|
26914
|
-
borderWidth: '1px 0 1px 0',
|
|
26915
|
-
borderRadius: 0
|
|
26916
|
-
},
|
|
26917
|
-
'&:hover': {
|
|
26918
|
-
border: 'none'
|
|
26919
|
-
},
|
|
26920
|
-
paddingLeft: "".concat(CELL_PADDING_LEFT, "px")
|
|
26921
|
-
}, dense && {
|
|
26922
|
-
fontSize: 12,
|
|
26923
|
-
paddingLeft: theme.spacing(1),
|
|
26924
|
-
'& input': {
|
|
26925
|
-
paddingTop: '5px',
|
|
26926
|
-
paddingBottom: '5px'
|
|
26927
|
-
}
|
|
26928
|
-
}, {
|
|
26929
|
-
flexDirection: isRtl ? 'row-reverse' : 'row'
|
|
26930
|
-
}],
|
|
26931
26922
|
inputRef: inputRef,
|
|
26932
26923
|
size: "small",
|
|
26933
26924
|
fullWidth: true,
|
|
@@ -26939,9 +26930,6 @@
|
|
|
26939
26930
|
autoFocus: autoFocus,
|
|
26940
26931
|
inputProps: {
|
|
26941
26932
|
tabIndex: keyboard.innerTabStops ? 0 : -1,
|
|
26942
|
-
style: {
|
|
26943
|
-
textAlign: "".concat(inpuTextAlign)
|
|
26944
|
-
},
|
|
26945
26933
|
'data-testid': 'search-input-field',
|
|
26946
26934
|
'aria-label': translator.get('Listbox.Search.ScreenReaderInstructions')
|
|
26947
26935
|
}
|
|
@@ -28139,7 +28127,7 @@
|
|
|
28139
28127
|
* @class
|
|
28140
28128
|
* @classdesc Class which provides color transformation functionality
|
|
28141
28129
|
* @description This is a constructor.
|
|
28142
|
-
* @private
|
|
28130
|
+
* @private
|
|
28143
28131
|
* @param {object} - Parameters to create a color from different notations
|
|
28144
28132
|
* @example
|
|
28145
28133
|
* // a few ways of instantiating a red color
|
|
@@ -28932,6 +28920,211 @@
|
|
|
28932
28920
|
}
|
|
28933
28921
|
}
|
|
28934
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
|
+
|
|
28935
29128
|
const LIGHT = '#FFF';
|
|
28936
29129
|
const DARK = '#000';
|
|
28937
29130
|
const CONTRAST_THRESHOLD = 1.5;
|
|
@@ -29033,14 +29226,40 @@
|
|
|
29033
29226
|
possibleContrast
|
|
29034
29227
|
};
|
|
29035
29228
|
}
|
|
29036
|
-
function
|
|
29037
|
-
|
|
29229
|
+
function getBackgroundColor(_ref2) {
|
|
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;
|
|
29038
29256
|
let {
|
|
29257
|
+
app,
|
|
29039
29258
|
themeApi,
|
|
29040
29259
|
theme,
|
|
29041
29260
|
components = [],
|
|
29042
29261
|
checkboxes = false
|
|
29043
|
-
} =
|
|
29262
|
+
} = _ref3;
|
|
29044
29263
|
const overrides = getOverridesAsObject(components);
|
|
29045
29264
|
const getListboxStyle = (path, prop) => themeApi.getStyle('object.listBox', path, prop);
|
|
29046
29265
|
const selections = getSelectionColors({
|
|
@@ -29050,22 +29269,51 @@
|
|
|
29050
29269
|
checkboxes
|
|
29051
29270
|
});
|
|
29052
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;
|
|
29053
29287
|
return {
|
|
29054
|
-
|
|
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
|
+
},
|
|
29055
29295
|
header: {
|
|
29056
|
-
color:
|
|
29057
|
-
fontSize: ((_themeOverrides$
|
|
29058
|
-
fontFamily: getListboxStyle('title.main', 'fontFamily'),
|
|
29059
|
-
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'
|
|
29060
29302
|
},
|
|
29061
29303
|
content: {
|
|
29062
29304
|
backgroundColor: checkboxes ? undefined : selections.possible,
|
|
29063
29305
|
color: selections.possibleContrast || getListboxStyle('content', 'color'),
|
|
29064
|
-
fontSize: ((_themeOverrides$
|
|
29065
|
-
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'
|
|
29066
29311
|
},
|
|
29067
29312
|
search: {
|
|
29068
|
-
color:
|
|
29313
|
+
color: searchColor,
|
|
29314
|
+
borderColor: theme.palette.divider,
|
|
29315
|
+
highlightBorderColor: theme.palette.primary.main,
|
|
29316
|
+
backgroundColor: searchBgColor
|
|
29069
29317
|
},
|
|
29070
29318
|
selections
|
|
29071
29319
|
};
|
|
@@ -30739,8 +30987,8 @@
|
|
|
30739
30987
|
isGridMode,
|
|
30740
30988
|
styles
|
|
30741
30989
|
} = _ref;
|
|
30742
|
-
return {
|
|
30743
|
-
background
|
|
30990
|
+
return _objectSpread2(_objectSpread2({}, styles.background), {}, {
|
|
30991
|
+
// sets background color and image of listbox
|
|
30744
30992
|
["& .".concat(classes$4.listBoxHeader)]: {
|
|
30745
30993
|
alignSelf: 'center',
|
|
30746
30994
|
display: 'flex'
|
|
@@ -30763,33 +31011,50 @@
|
|
|
30763
31011
|
'&:focus-visible': {
|
|
30764
31012
|
outline: 'none'
|
|
30765
31013
|
}
|
|
30766
|
-
};
|
|
31014
|
+
});
|
|
30767
31015
|
});
|
|
30768
|
-
const
|
|
31016
|
+
const StyledGridHeader = styled$1(Grid$1, {
|
|
31017
|
+
shouldForwardProp: p => !['styles', 'isRtl'].includes(p)
|
|
31018
|
+
})(_ref2 => {
|
|
30769
31019
|
let {
|
|
30770
|
-
styles
|
|
31020
|
+
styles,
|
|
31021
|
+
isRtl
|
|
30771
31022
|
} = _ref2;
|
|
30772
|
-
return {
|
|
30773
|
-
|
|
30774
|
-
|
|
30775
|
-
|
|
30776
|
-
|
|
30777
|
-
}
|
|
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
|
+
});
|
|
31034
|
+
});
|
|
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
|
+
});
|
|
30778
31042
|
});
|
|
30779
|
-
|
|
31043
|
+
|
|
31044
|
+
const isModal = _ref4 => {
|
|
30780
31045
|
var _app$isInModalSelecti, _app$isInModalSelecti2;
|
|
30781
31046
|
let {
|
|
30782
31047
|
app,
|
|
30783
31048
|
appSelections
|
|
30784
|
-
} =
|
|
31049
|
+
} = _ref4;
|
|
30785
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();
|
|
30786
31051
|
};
|
|
30787
|
-
function ListBoxInline(
|
|
31052
|
+
function ListBoxInline(_ref5) {
|
|
30788
31053
|
var _layout$qListObject, _layout$qListObject2, _layoutOptions$dense;
|
|
30789
31054
|
let {
|
|
30790
31055
|
options,
|
|
30791
31056
|
layout
|
|
30792
|
-
} =
|
|
31057
|
+
} = _ref5;
|
|
30793
31058
|
const {
|
|
30794
31059
|
app,
|
|
30795
31060
|
direction,
|
|
@@ -30838,6 +31103,7 @@
|
|
|
30838
31103
|
checkboxes = checkboxesOption
|
|
30839
31104
|
} = layout || {};
|
|
30840
31105
|
const styles = getStyles({
|
|
31106
|
+
app,
|
|
30841
31107
|
themeApi,
|
|
30842
31108
|
theme,
|
|
30843
31109
|
components,
|
|
@@ -30983,7 +31249,6 @@
|
|
|
30983
31249
|
const showSearchToggle = search === 'toggle' && showSearch;
|
|
30984
31250
|
const searchVisible = (search === true || showSearchToggle) && !selectDisabled() && searchEnabled !== false;
|
|
30985
31251
|
const dense = (_layoutOptions$dense = layoutOptions.dense) !== null && _layoutOptions$dense !== void 0 ? _layoutOptions$dense : false;
|
|
30986
|
-
const headerHeight = 32;
|
|
30987
31252
|
const onShowSearch = () => {
|
|
30988
31253
|
const newValue = !showSearch;
|
|
30989
31254
|
setShowSearch(newValue);
|
|
@@ -31077,15 +31342,14 @@
|
|
|
31077
31342
|
},
|
|
31078
31343
|
isGridMode: isGridMode,
|
|
31079
31344
|
"aria-label": keyboard.active ? translator.get('Listbox.ScreenReaderInstructions') : ''
|
|
31080
|
-
}, showToolbarWithTitle && /*#__PURE__*/React.createElement(
|
|
31345
|
+
}, showToolbarWithTitle && /*#__PURE__*/React.createElement(StyledGridHeader, {
|
|
31081
31346
|
item: true,
|
|
31082
31347
|
container: true,
|
|
31083
|
-
|
|
31084
|
-
|
|
31348
|
+
styles: styles,
|
|
31349
|
+
isRtl: isRtl,
|
|
31085
31350
|
marginY: 1,
|
|
31086
31351
|
paddingLeft: "".concat(headerPaddingLeft, "px"),
|
|
31087
|
-
paddingRight: "".concat(headerPaddingRight, "px")
|
|
31088
|
-
wrap: "nowrap"
|
|
31352
|
+
paddingRight: "".concat(headerPaddingRight, "px")
|
|
31089
31353
|
}, showIcons && /*#__PURE__*/React.createElement(Grid$1, {
|
|
31090
31354
|
item: true,
|
|
31091
31355
|
container: true,
|
|
@@ -31112,7 +31376,8 @@
|
|
|
31112
31376
|
title: layout.title,
|
|
31113
31377
|
styles: styles
|
|
31114
31378
|
}, layout.title)), /*#__PURE__*/React.createElement(Grid$1, {
|
|
31115
|
-
item: true
|
|
31379
|
+
item: true,
|
|
31380
|
+
display: "flex"
|
|
31116
31381
|
}, /*#__PURE__*/React.createElement(ActionsToolbar, _extends$7({
|
|
31117
31382
|
direction: direction
|
|
31118
31383
|
}, getActionToolbarProps(isToolbarDetached))))), /*#__PURE__*/React.createElement(Grid$1, {
|
|
@@ -31148,11 +31413,11 @@
|
|
|
31148
31413
|
className: classes$4.listboxWrapper
|
|
31149
31414
|
}, isInvalid ? /*#__PURE__*/React.createElement(ListBoxError, {
|
|
31150
31415
|
text: errorText
|
|
31151
|
-
}) : /*#__PURE__*/React.createElement(AutoSizer, null,
|
|
31416
|
+
}) : /*#__PURE__*/React.createElement(AutoSizer, null, _ref6 => {
|
|
31152
31417
|
let {
|
|
31153
31418
|
height,
|
|
31154
31419
|
width
|
|
31155
|
-
} =
|
|
31420
|
+
} = _ref6;
|
|
31156
31421
|
return /*#__PURE__*/React.createElement(ListBox, {
|
|
31157
31422
|
model: model,
|
|
31158
31423
|
app: app,
|
|
@@ -31194,10 +31459,10 @@
|
|
|
31194
31459
|
})))));
|
|
31195
31460
|
}
|
|
31196
31461
|
const ListBoxInlineMemoed = React.memo(ListBoxInline);
|
|
31197
|
-
function IsolateUseLayoutWrapper(
|
|
31462
|
+
function IsolateUseLayoutWrapper(_ref7) {
|
|
31198
31463
|
let {
|
|
31199
31464
|
options = {}
|
|
31200
|
-
} =
|
|
31465
|
+
} = _ref7;
|
|
31201
31466
|
const {
|
|
31202
31467
|
model
|
|
31203
31468
|
} = options;
|
|
@@ -33612,205 +33877,6 @@
|
|
|
33612
33877
|
}));
|
|
33613
33878
|
}
|
|
33614
33879
|
|
|
33615
|
-
const MULTI_REG = /,(?![^(]*\))/;
|
|
33616
|
-
const SINGLE_REG = /\s(?![^(]*\))/;
|
|
33617
|
-
const LENGTH_REG = /^[0-9]+[a-zA-Z%]+?$/;
|
|
33618
|
-
const PREDEFINED_STRINGS = ['none', 'inset', 'initial', 'inherit'];
|
|
33619
|
-
const isLength = v => v === '0' || LENGTH_REG.test(v);
|
|
33620
|
-
const getColor = singleShadowString => {
|
|
33621
|
-
if (!singleShadowString) return undefined;
|
|
33622
|
-
const parts = singleShadowString.split(SINGLE_REG).filter(part => !PREDEFINED_STRINGS.includes(part.toLowerCase()));
|
|
33623
|
-
const last = parts.at(-1);
|
|
33624
|
-
const color = last && !isLength(last) && !PREDEFINED_STRINGS.includes(last.toLowerCase()) ? last : undefined;
|
|
33625
|
-
return color;
|
|
33626
|
-
};
|
|
33627
|
-
const getShadows = shadowString => {
|
|
33628
|
-
if (!shadowString) return [];
|
|
33629
|
-
return shadowString.split(MULTI_REG).map(s => s.trim());
|
|
33630
|
-
};
|
|
33631
|
-
|
|
33632
|
-
/**
|
|
33633
|
-
* Combine box shadow with box shadow color.
|
|
33634
|
-
* @param {string} boxShadow - Box shadow which may include color
|
|
33635
|
-
* @param {string} themeBoxShadow - Box shadow from theme which may include color
|
|
33636
|
-
* @param {string | undefined} boxShadowColor - Box shadow color
|
|
33637
|
-
* @returns {string} Returns the combined box shadow and box shadow color
|
|
33638
|
-
*
|
|
33639
|
-
* If boxShadow is a single shadow and has a color then this color will be replaced by boxShadowColor and then
|
|
33640
|
-
* returned as the result,otherwise boxShadowColor will be added to boxShadow and then returned as the result.
|
|
33641
|
-
* If boxShadow is multiple shadows or an empty string then it will be returned as the result.
|
|
33642
|
-
*
|
|
33643
|
-
* @example getFullBoxShadow('none', '', 'red') returns 'none'
|
|
33644
|
-
*
|
|
33645
|
-
* @example getFullBoxShadow('initial', '', 'red') returns 'initial'
|
|
33646
|
-
*
|
|
33647
|
-
* @example getFullBoxShadow('inherit', '', 'red') returns 'inherit'
|
|
33648
|
-
*
|
|
33649
|
-
* @example getFullBoxShadow('', '', 'red') returns ''
|
|
33650
|
-
*
|
|
33651
|
-
* @example getFullBoxShadow('1px 2px blue, 3px 6px green', '', 'red') returns '1px 2px blue, 3px 6px green'
|
|
33652
|
-
*
|
|
33653
|
-
* @example getFullBoxShadow('1px 2px blue', '', 'red') returns '1px 2px red'
|
|
33654
|
-
*
|
|
33655
|
-
* @example getFullBoxShadow('1px 2px', '', 'red') returns '1px 2px red'
|
|
33656
|
-
*
|
|
33657
|
-
* @example getFullBoxShadow('1px 2px', '2px 5px green', undefined) returns '1px 2px green'
|
|
33658
|
-
*
|
|
33659
|
-
* @example getFullBoxShadow('1px 2px', '2px 5px', undefined) returns '1px 2px'
|
|
33660
|
-
*/
|
|
33661
|
-
const getFullBoxShadow = (boxShadow, themeBoxShadow, boxShadowColor) => {
|
|
33662
|
-
if (boxShadow && PREDEFINED_STRINGS.includes(boxShadow.toLowerCase())) return boxShadow.toLowerCase();
|
|
33663
|
-
const shadowArray = getShadows(boxShadow);
|
|
33664
|
-
if (shadowArray.length !== 1) return boxShadow;
|
|
33665
|
-
let shadowColor = boxShadowColor;
|
|
33666
|
-
if (!shadowColor) {
|
|
33667
|
-
const themeShadowArray = getShadows(themeBoxShadow);
|
|
33668
|
-
if (themeShadowArray.length !== 1) return boxShadow;
|
|
33669
|
-
shadowColor = getColor(themeShadowArray[0]);
|
|
33670
|
-
}
|
|
33671
|
-
if (!shadowColor) return boxShadow;
|
|
33672
|
-
const color = getColor(shadowArray[0]);
|
|
33673
|
-
if (color) return boxShadow.replace(color, shadowColor);
|
|
33674
|
-
return "".concat(boxShadow, " ").concat(shadowColor);
|
|
33675
|
-
};
|
|
33676
|
-
|
|
33677
|
-
function resolveProperty(path, attribute, theme, objectType) {
|
|
33678
|
-
if (theme && objectType) {
|
|
33679
|
-
return theme.getStyle("object.".concat(objectType), path, attribute);
|
|
33680
|
-
}
|
|
33681
|
-
if (theme) {
|
|
33682
|
-
return theme.getStyle('', path, attribute);
|
|
33683
|
-
}
|
|
33684
|
-
return undefined;
|
|
33685
|
-
}
|
|
33686
|
-
|
|
33687
|
-
function resolveColor(colorObj, path, attribute, theme, objectType) {
|
|
33688
|
-
if (colorObj && theme) {
|
|
33689
|
-
return colorObj.color !== 'none' ? theme.getColorPickerColor(colorObj, true) : undefined;
|
|
33690
|
-
}
|
|
33691
|
-
return resolveProperty(path, attribute, theme, objectType);
|
|
33692
|
-
}
|
|
33693
|
-
|
|
33694
|
-
const imageSizingToCssProperty = {
|
|
33695
|
-
originalSize: 'auto auto',
|
|
33696
|
-
alwaysFit: 'contain',
|
|
33697
|
-
fitWidth: '100% auto',
|
|
33698
|
-
fitHeight: 'auto 100%',
|
|
33699
|
-
stretchFit: '100% 100%',
|
|
33700
|
-
alwaysFill: 'cover'
|
|
33701
|
-
};
|
|
33702
|
-
const positionToCss = {
|
|
33703
|
-
'top-left': 'top left',
|
|
33704
|
-
'top-center': 'top center',
|
|
33705
|
-
'top-right': 'top right',
|
|
33706
|
-
'center-left': 'center left',
|
|
33707
|
-
'center-center': 'center center',
|
|
33708
|
-
'center-right': 'center right',
|
|
33709
|
-
'bottom-left': 'bottom left',
|
|
33710
|
-
'bottom-center': 'bottom center',
|
|
33711
|
-
'bottom-right': 'bottom right'
|
|
33712
|
-
};
|
|
33713
|
-
|
|
33714
|
-
// TODO: this needs some proper verification
|
|
33715
|
-
function getSenseServerUrl(app) {
|
|
33716
|
-
var _app$session;
|
|
33717
|
-
let config;
|
|
33718
|
-
let wsUrl;
|
|
33719
|
-
let protocol;
|
|
33720
|
-
let isSecure;
|
|
33721
|
-
if (app !== null && app !== void 0 && (_app$session = app.session) !== null && _app$session !== void 0 && _app$session.config) {
|
|
33722
|
-
config = app.session.config;
|
|
33723
|
-
wsUrl = new URL(config.url);
|
|
33724
|
-
isSecure = wsUrl.protocol === 'wss:';
|
|
33725
|
-
protocol = isSecure ? 'https://' : 'http://';
|
|
33726
|
-
return protocol + wsUrl.host;
|
|
33727
|
-
}
|
|
33728
|
-
return '';
|
|
33729
|
-
}
|
|
33730
|
-
function getBackgroundPosition(bgComp) {
|
|
33731
|
-
var _bgComp$bgImage;
|
|
33732
|
-
let bkgImagePosition = 'center center';
|
|
33733
|
-
if (bgComp !== null && bgComp !== void 0 && (_bgComp$bgImage = bgComp.bgImage) !== null && _bgComp$bgImage !== void 0 && _bgComp$bgImage.position) {
|
|
33734
|
-
bkgImagePosition = positionToCss[bgComp.bgImage.position];
|
|
33735
|
-
}
|
|
33736
|
-
return bkgImagePosition;
|
|
33737
|
-
}
|
|
33738
|
-
function getBackgroundSize(bgComp) {
|
|
33739
|
-
var _bgComp$bgImage2;
|
|
33740
|
-
let bkgImageSize = imageSizingToCssProperty.originalSize;
|
|
33741
|
-
if (bgComp !== null && bgComp !== void 0 && (_bgComp$bgImage2 = bgComp.bgImage) !== null && _bgComp$bgImage2 !== void 0 && _bgComp$bgImage2.sizing) {
|
|
33742
|
-
bkgImageSize = imageSizingToCssProperty[bgComp.bgImage.sizing];
|
|
33743
|
-
}
|
|
33744
|
-
return bkgImageSize;
|
|
33745
|
-
}
|
|
33746
|
-
function resolveImageUrl(app, relativeUrl) {
|
|
33747
|
-
return relativeUrl ? getSenseServerUrl(app) + relativeUrl : undefined;
|
|
33748
|
-
}
|
|
33749
|
-
function resolveBgImage(bgComp, app) {
|
|
33750
|
-
const bgImageDef = bgComp === null || bgComp === void 0 ? void 0 : bgComp.bgImage;
|
|
33751
|
-
if (bgImageDef) {
|
|
33752
|
-
let url = '';
|
|
33753
|
-
if (bgImageDef.mode === 'media' || bgComp.useImage === 'media') {
|
|
33754
|
-
var _bgImageDef$mediaUrl;
|
|
33755
|
-
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;
|
|
33756
|
-
url = resolveImageUrl(app, url);
|
|
33757
|
-
}
|
|
33758
|
-
if (bgImageDef.mode === 'expression') {
|
|
33759
|
-
url = bgImageDef.expressionUrl ? decodeURIComponent(bgImageDef.expressionUrl) : undefined;
|
|
33760
|
-
}
|
|
33761
|
-
const pos = getBackgroundPosition(bgComp);
|
|
33762
|
-
const size = getBackgroundSize(bgComp);
|
|
33763
|
-
return url ? {
|
|
33764
|
-
url,
|
|
33765
|
-
pos,
|
|
33766
|
-
size
|
|
33767
|
-
} : undefined;
|
|
33768
|
-
}
|
|
33769
|
-
return undefined;
|
|
33770
|
-
}
|
|
33771
|
-
function resolveBgColor(comp, theme, objectType) {
|
|
33772
|
-
const bgColor = comp === null || comp === void 0 ? void 0 : comp.bgColor;
|
|
33773
|
-
if (bgColor && theme) {
|
|
33774
|
-
if (bgColor.useExpression) {
|
|
33775
|
-
return theme.validateColor(bgColor.colorExpression);
|
|
33776
|
-
}
|
|
33777
|
-
}
|
|
33778
|
-
return resolveColor(bgColor === null || bgColor === void 0 ? void 0 : bgColor.color, '', 'backgroundColor', theme, objectType);
|
|
33779
|
-
}
|
|
33780
|
-
function resolveBorder(comp, theme, objectType) {
|
|
33781
|
-
const borderColor = resolveColor(comp === null || comp === void 0 ? void 0 : comp.borderColor, '', 'borderColor', theme, objectType);
|
|
33782
|
-
const borderWidth = (comp === null || comp === void 0 ? void 0 : comp.borderWidth) || resolveProperty('', 'borderWidth', theme, objectType);
|
|
33783
|
-
return borderWidth && borderColor ? "".concat(borderWidth, " solid ").concat(borderColor) : undefined;
|
|
33784
|
-
}
|
|
33785
|
-
function resolveBorderRadius(comp, theme, objectType) {
|
|
33786
|
-
return (comp === null || comp === void 0 ? void 0 : comp.borderRadius) || resolveProperty('', 'borderRadius', theme, objectType);
|
|
33787
|
-
}
|
|
33788
|
-
function resolveBoxShadow(comp, theme, objectType) {
|
|
33789
|
-
var _comp$shadow, _comp$shadow2;
|
|
33790
|
-
const themeBoxShadow = resolveProperty('shadow', 'boxShadow', theme, objectType);
|
|
33791
|
-
const boxShadow = (comp === null || comp === void 0 || (_comp$shadow = comp.shadow) === null || _comp$shadow === void 0 ? void 0 : _comp$shadow.boxShadow) || themeBoxShadow;
|
|
33792
|
-
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);
|
|
33793
|
-
return getFullBoxShadow(boxShadow, themeBoxShadow, boxShadowColor);
|
|
33794
|
-
}
|
|
33795
|
-
function unfurlFontStyle(fontStyle, target) {
|
|
33796
|
-
if (fontStyle && Array.isArray(fontStyle)) {
|
|
33797
|
-
return fontStyle;
|
|
33798
|
-
}
|
|
33799
|
-
return target === 'main' ? ['bold'] : [];
|
|
33800
|
-
}
|
|
33801
|
-
function resolveTextStyle(textComp, target, theme, objectType) {
|
|
33802
|
-
var _textComp$title;
|
|
33803
|
-
const textProps = (textComp === null || textComp === void 0 || (_textComp$title = textComp.title) === null || _textComp$title === void 0 ? void 0 : _textComp$title[target]) || {};
|
|
33804
|
-
const fontStyle = unfurlFontStyle(textProps.fontStyle, target);
|
|
33805
|
-
return {
|
|
33806
|
-
fontFamily: textProps.fontFamily || theme.getStyle("object.".concat(objectType), "title.".concat(target), 'fontFamily'),
|
|
33807
|
-
color: textProps.color && textProps.color.color !== 'none' ? theme.getColorPickerColor(textProps.color, true) : theme.getStyle("object.".concat(objectType), target, 'color'),
|
|
33808
|
-
fontWeight: fontStyle.includes('bold') ? 'bold' : 'normal',
|
|
33809
|
-
fontStyle: fontStyle.includes('italic') ? 'italic' : 'normal',
|
|
33810
|
-
textDecoration: fontStyle.includes('underline') ? 'underline' : 'initial'
|
|
33811
|
-
};
|
|
33812
|
-
}
|
|
33813
|
-
|
|
33814
33880
|
const useStyling = (layout, theme, app, themeName) => {
|
|
33815
33881
|
const styling = reactExports.useMemo(() => {
|
|
33816
33882
|
if (layout && theme) {
|
|
@@ -37321,6 +37387,17 @@
|
|
|
37321
37387
|
onMount: onMount
|
|
37322
37388
|
}));
|
|
37323
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
|
+
}
|
|
37324
37401
|
function Sheet(_ref) {
|
|
37325
37402
|
let {
|
|
37326
37403
|
model,
|
|
@@ -37361,6 +37438,10 @@
|
|
|
37361
37438
|
root.removeCell(c.currentId);
|
|
37362
37439
|
});
|
|
37363
37440
|
const lCells = layout.cells;
|
|
37441
|
+
const {
|
|
37442
|
+
columns,
|
|
37443
|
+
rows
|
|
37444
|
+
} = layout;
|
|
37364
37445
|
// TODO - should try reuse existing objects on subsequent renders
|
|
37365
37446
|
// Non-id updates should only change the "css"
|
|
37366
37447
|
const cs = await Promise.all(lCells.map(async c => {
|
|
@@ -37370,7 +37451,7 @@
|
|
|
37370
37451
|
});
|
|
37371
37452
|
const cell = cells.find(ce => ce.id === c.name);
|
|
37372
37453
|
if (cell) {
|
|
37373
|
-
cell.bounds = c
|
|
37454
|
+
cell.bounds = getBounds(c, columns, rows);
|
|
37374
37455
|
delete cell.mountedPromise;
|
|
37375
37456
|
return cell;
|
|
37376
37457
|
}
|
|
@@ -37380,7 +37461,7 @@
|
|
|
37380
37461
|
return {
|
|
37381
37462
|
model: vs.model,
|
|
37382
37463
|
id: c.name,
|
|
37383
|
-
bounds: c
|
|
37464
|
+
bounds: getBounds(c, columns, rows),
|
|
37384
37465
|
cellRef: React.createRef(),
|
|
37385
37466
|
currentId: uid(),
|
|
37386
37467
|
mounted,
|