@ssa-ui-kit/core 3.4.0 → 3.6.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/dist/components/Charts/BarGaugeChart/types.d.ts +1 -1
- package/dist/components/Charts/BarLineComplexChart/constants.d.ts +0 -15
- package/dist/components/Charts/BarLineComplexChart/types.d.ts +1 -1
- package/dist/components/Charts/BigNumberChart/BigNumberChart.d.ts +1 -1
- package/dist/components/Charts/CandlestickChart/CandlestickChart.d.ts +1 -1
- package/dist/components/Charts/GaugeChart/GaugeChart.d.ts +1 -1
- package/dist/components/Charts/RadarChart/RadarChart.d.ts +1 -1
- package/dist/components/Charts/TreeMapChart/TreeMapChart.d.ts +1 -1
- package/dist/components/Counter/Counter.d.ts +60 -0
- package/dist/components/Counter/index.d.ts +1 -0
- package/dist/components/Counter/styles.d.ts +15 -0
- package/dist/components/Counter/types.d.ts +57 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +264 -97
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7980,6 +7980,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
7980
7980
|
CollapsibleNavBarItemProvider: () => (/* reexport */ CollapsibleNavBarItemProvider),
|
|
7981
7981
|
CollapsibleNavBarProvider: () => (/* reexport */ CollapsibleNavBarProvider),
|
|
7982
7982
|
ColorPicker: () => (/* reexport */ ColorPicker),
|
|
7983
|
+
Counter: () => (/* reexport */ Counter),
|
|
7983
7984
|
DEFAULT_EUROPEAN_MASK_FORMAT: () => (/* reexport */ DEFAULT_EUROPEAN_MASK_FORMAT),
|
|
7984
7985
|
DEFAULT_MASK_FORMAT: () => (/* reexport */ constants_DEFAULT_MASK_FORMAT),
|
|
7985
7986
|
DEFAULT_MONTH_MASK_FORMAT: () => (/* reexport */ constants_DEFAULT_MONTH_MASK_FORMAT),
|
|
@@ -15239,7 +15240,7 @@ const TextareaBase = /*#__PURE__*/base_default()('textarea', true ? {
|
|
|
15239
15240
|
status = 'basic'
|
|
15240
15241
|
}) => getStatusBoxShadow(theme, status, 'rest'), ";color:", ({
|
|
15241
15242
|
theme
|
|
15242
|
-
}) => theme.colors.greyDarker, ";width:100%;min-height:114px;padding:14px;font-weight:400;font-size:0.875rem;line-height:1rem;&::placeholder{color:", ({
|
|
15243
|
+
}) => theme.colors.greyDarker, ";width:100%;max-width:100%;max-height:100%;box-sizing:border-box;min-height:114px;padding:14px;font-weight:400;font-size:0.875rem;line-height:1rem;&::placeholder{color:", ({
|
|
15243
15244
|
theme
|
|
15244
15245
|
}) => theme.colors.greyDarker60, ";}&[readonly]{cursor:default;}&:disabled{color:", ({
|
|
15245
15246
|
theme
|
|
@@ -15247,7 +15248,7 @@ const TextareaBase = /*#__PURE__*/base_default()('textarea', true ? {
|
|
|
15247
15248
|
theme
|
|
15248
15249
|
}) => `inset 0 0 1.5px 0 ${theme.colors.grey}`, ";background:", ({
|
|
15249
15250
|
theme
|
|
15250
|
-
}) => theme.colors.greyLighter, ";&::placeholder{color:", ({
|
|
15251
|
+
}) => theme.colors.greyLighter, ";resize:none;&::placeholder{color:", ({
|
|
15251
15252
|
theme
|
|
15252
15253
|
}) => theme.colors.grey, ";}}&:hover:not(:disabled, [readonly]){box-shadow:", ({
|
|
15253
15254
|
theme,
|
|
@@ -15357,7 +15358,8 @@ const Textarea = /*#__PURE__*/external_react_default().forwardRef(function Texta
|
|
|
15357
15358
|
onPaste,
|
|
15358
15359
|
register,
|
|
15359
15360
|
setCountChar,
|
|
15360
|
-
status = 'basic'
|
|
15361
|
+
status = 'basic',
|
|
15362
|
+
...rest
|
|
15361
15363
|
}, ref) {
|
|
15362
15364
|
(0,external_react_namespaceObject.useEffect)(() => {
|
|
15363
15365
|
if (!register) {
|
|
@@ -15376,6 +15378,7 @@ const Textarea = /*#__PURE__*/external_react_default().forwardRef(function Texta
|
|
|
15376
15378
|
onPaste: onPaste,
|
|
15377
15379
|
title: title,
|
|
15378
15380
|
status: status,
|
|
15381
|
+
...rest,
|
|
15379
15382
|
...registerResult,
|
|
15380
15383
|
onChange: (0,utils_namespaceObject.callAll)(setCountChar, onChange),
|
|
15381
15384
|
ref: (0,external_floating_ui_react_namespaceObject.useMergeRefs)([registerResult?.ref, ref])
|
|
@@ -28538,6 +28541,154 @@ const CardList = ({
|
|
|
28538
28541
|
;// ./src/components/CardList/index.ts
|
|
28539
28542
|
|
|
28540
28543
|
|
|
28544
|
+
;// ./src/components/Counter/types.ts
|
|
28545
|
+
let CounterVariants = /*#__PURE__*/function (CounterVariants) {
|
|
28546
|
+
CounterVariants["primary"] = "primary";
|
|
28547
|
+
CounterVariants["secondary"] = "secondary";
|
|
28548
|
+
CounterVariants["error"] = "error";
|
|
28549
|
+
CounterVariants["warning"] = "warning";
|
|
28550
|
+
CounterVariants["success"] = "success";
|
|
28551
|
+
return CounterVariants;
|
|
28552
|
+
}({});
|
|
28553
|
+
|
|
28554
|
+
/**
|
|
28555
|
+
* Extends `MainSizes` with a `dot` slot used internally when `count` is
|
|
28556
|
+
* undefined — renders a small dot with no label as a presence indicator.
|
|
28557
|
+
*/
|
|
28558
|
+
;// ./src/components/Counter/styles.tsx
|
|
28559
|
+
|
|
28560
|
+
function Counter_styles_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
28561
|
+
|
|
28562
|
+
|
|
28563
|
+
/** Resolves a variant key to its `theme.palette` background + white text. */
|
|
28564
|
+
const makeVariantStyle = (theme, key) => /*#__PURE__*/(0,react_namespaceObject.css)("color:", theme.colors.white, ";background:", theme.palette[key].main, ";" + ( true ? "" : 0), true ? "" : 0);
|
|
28565
|
+
const styles_variantStyles = {
|
|
28566
|
+
primary: theme => makeVariantStyle(theme, CounterVariants.primary),
|
|
28567
|
+
secondary: theme => makeVariantStyle(theme, CounterVariants.secondary),
|
|
28568
|
+
error: theme => makeVariantStyle(theme, CounterVariants.error),
|
|
28569
|
+
warning: theme => makeVariantStyle(theme, CounterVariants.warning),
|
|
28570
|
+
success: theme => makeVariantStyle(theme, CounterVariants.success)
|
|
28571
|
+
};
|
|
28572
|
+
const styles_sizeStyles = {
|
|
28573
|
+
dot: true ? {
|
|
28574
|
+
name: "9e7m57",
|
|
28575
|
+
styles: "width:8px;height:8px"
|
|
28576
|
+
} : 0,
|
|
28577
|
+
small: true ? {
|
|
28578
|
+
name: "14h28tx",
|
|
28579
|
+
styles: "height:24px;font-size:12px;padding:4px 9px"
|
|
28580
|
+
} : 0,
|
|
28581
|
+
medium: true ? {
|
|
28582
|
+
name: "fy8gxb",
|
|
28583
|
+
styles: "padding:4px 13px;height:32px;font-size:14px"
|
|
28584
|
+
} : 0,
|
|
28585
|
+
large: true ? {
|
|
28586
|
+
name: "irp62o",
|
|
28587
|
+
styles: "font-size:16px;height:44px;padding:4px 19px"
|
|
28588
|
+
} : 0
|
|
28589
|
+
};
|
|
28590
|
+
|
|
28591
|
+
/**
|
|
28592
|
+
* Builds a background override from a `color` string.
|
|
28593
|
+
* If `color` matches a key in `theme.colors` the design token is used;
|
|
28594
|
+
* otherwise the value is passed through as a raw CSS color string.
|
|
28595
|
+
*/
|
|
28596
|
+
const makeColorOverride = (theme, color) => /*#__PURE__*/(0,react_namespaceObject.css)("background:", color in theme.colors ? theme.colors[color] : color, ";" + ( true ? "" : 0), true ? "" : 0);
|
|
28597
|
+
const CounterBase = /*#__PURE__*/base_default()("div", true ? {
|
|
28598
|
+
target: "eg7ht9z0"
|
|
28599
|
+
} : 0)( true ? {
|
|
28600
|
+
name: "1tmyl78",
|
|
28601
|
+
styles: "display:flex;align-items:center;justify-content:center;border:none;font:inherit;border-radius:50px;font-family:Manrope,sans-serif;width:min-content;font-style:normal;font-weight:700"
|
|
28602
|
+
} : 0);
|
|
28603
|
+
;// ./src/components/Counter/Counter.tsx
|
|
28604
|
+
|
|
28605
|
+
|
|
28606
|
+
|
|
28607
|
+
|
|
28608
|
+
const MAX_COUNT = 99;
|
|
28609
|
+
|
|
28610
|
+
/**
|
|
28611
|
+
* Counter - Compact numeric indicator for displaying counts or notification badges.
|
|
28612
|
+
*
|
|
28613
|
+
* ### Sizing
|
|
28614
|
+
* Accepts `'small' | 'medium' | 'large'` via the `size` prop (default `'medium'`).
|
|
28615
|
+
* When `count` is omitted the counter shrinks to a small dot (`dot` size) — useful
|
|
28616
|
+
* as a presence indicator with no number shown.
|
|
28617
|
+
*
|
|
28618
|
+
* ### Color
|
|
28619
|
+
* Background is driven by `theme.palette[variant].main` for the five semantic variants.
|
|
28620
|
+
* Pass `color` to override: a `theme.colors` key resolves to the design token value,
|
|
28621
|
+
* any other string is used as a raw CSS color.
|
|
28622
|
+
*
|
|
28623
|
+
* ### CSS override
|
|
28624
|
+
* Pass `css` to apply one-off Emotion styles on top of all internal styles
|
|
28625
|
+
* (size → variant → color → css). Useful for margins, positioning, or shape tweaks.
|
|
28626
|
+
*
|
|
28627
|
+
* ### Overflow
|
|
28628
|
+
* Values above 99 are automatically clamped to `"99+"`.
|
|
28629
|
+
*
|
|
28630
|
+
* @example
|
|
28631
|
+
* ```tsx
|
|
28632
|
+
* // Basic usage — primary variant, medium size
|
|
28633
|
+
* <Counter count={5} />
|
|
28634
|
+
* ```
|
|
28635
|
+
*
|
|
28636
|
+
* @example
|
|
28637
|
+
* ```tsx
|
|
28638
|
+
* // Overflow label
|
|
28639
|
+
* <Counter count={120} variant={CounterVariants.error} size="large" />
|
|
28640
|
+
* // renders "99+"
|
|
28641
|
+
* ```
|
|
28642
|
+
*
|
|
28643
|
+
* @example
|
|
28644
|
+
* ```tsx
|
|
28645
|
+
* // Raw hex color override
|
|
28646
|
+
* <Counter count={3} color="#F7931A" />
|
|
28647
|
+
* ```
|
|
28648
|
+
*
|
|
28649
|
+
* @example
|
|
28650
|
+
* ```tsx
|
|
28651
|
+
* // theme.colors key as color
|
|
28652
|
+
* <Counter count={7} color="purple" />
|
|
28653
|
+
* ```
|
|
28654
|
+
*
|
|
28655
|
+
* @example
|
|
28656
|
+
* ```tsx
|
|
28657
|
+
* // Empty dot indicator (no count)
|
|
28658
|
+
* <Counter variant={CounterVariants.error} />
|
|
28659
|
+
* ```
|
|
28660
|
+
*
|
|
28661
|
+
* @example
|
|
28662
|
+
* ```tsx
|
|
28663
|
+
* // CSS override for layout / shape
|
|
28664
|
+
* <Counter count={3} css={{ marginLeft: 8, borderRadius: 4 }} />
|
|
28665
|
+
* ```
|
|
28666
|
+
*/
|
|
28667
|
+
const Counter = ({
|
|
28668
|
+
count,
|
|
28669
|
+
variant = CounterVariants.primary,
|
|
28670
|
+
size = 'medium',
|
|
28671
|
+
color,
|
|
28672
|
+
className,
|
|
28673
|
+
css,
|
|
28674
|
+
ref
|
|
28675
|
+
}) => {
|
|
28676
|
+
const theme = (0,react_namespaceObject.useTheme)();
|
|
28677
|
+
const isEmpty = count === undefined;
|
|
28678
|
+
const label = !isEmpty && count > MAX_COUNT ? `${MAX_COUNT}+` : count;
|
|
28679
|
+
const appliedVariantStyle = styles_variantStyles[variant](theme);
|
|
28680
|
+
const appliedSizeStyle = styles_sizeStyles[!isEmpty ? size : 'dot'];
|
|
28681
|
+
const colorOverride = color ? makeColorOverride(theme, color) : undefined;
|
|
28682
|
+
return (0,jsx_runtime_namespaceObject.jsx)(CounterBase, {
|
|
28683
|
+
ref: ref,
|
|
28684
|
+
css: [appliedSizeStyle, appliedVariantStyle, colorOverride, css, true ? "" : 0, true ? "" : 0],
|
|
28685
|
+
className: className,
|
|
28686
|
+
children: label
|
|
28687
|
+
});
|
|
28688
|
+
};
|
|
28689
|
+
/* harmony default export */ const Counter_Counter = ((/* unused pure expression or super */ null && (Counter)));
|
|
28690
|
+
;// ./src/components/Counter/index.ts
|
|
28691
|
+
|
|
28541
28692
|
;// ./src/components/Tag/styles.ts
|
|
28542
28693
|
|
|
28543
28694
|
|
|
@@ -40385,21 +40536,6 @@ const BarLineComplexChartTooltip = /*#__PURE__*/(0,external_react_namespaceObjec
|
|
|
40385
40536
|
});
|
|
40386
40537
|
;// ./src/components/Charts/BarLineComplexChart/constants.ts
|
|
40387
40538
|
const FONT_FAMILY = 'Manrope, sans-serif';
|
|
40388
|
-
const TITLE_PADDING_LEFT = {
|
|
40389
|
-
mobile: 10,
|
|
40390
|
-
md: 10,
|
|
40391
|
-
other: 20
|
|
40392
|
-
};
|
|
40393
|
-
const TITLE_PADDING_TOP = {
|
|
40394
|
-
mobile: 13,
|
|
40395
|
-
md: 18,
|
|
40396
|
-
other: 20
|
|
40397
|
-
};
|
|
40398
|
-
const TITLE_FONT_SIZE = {
|
|
40399
|
-
mobile: 16,
|
|
40400
|
-
md: 16,
|
|
40401
|
-
other: 20
|
|
40402
|
-
};
|
|
40403
40539
|
;// ./src/components/Charts/hooks/usePlotlyDefaultConfig.ts
|
|
40404
40540
|
|
|
40405
40541
|
const usePlotlyDefaultConfig = () => {
|
|
@@ -40444,6 +40580,7 @@ function BarLineComplexChartView_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You
|
|
|
40444
40580
|
|
|
40445
40581
|
|
|
40446
40582
|
|
|
40583
|
+
|
|
40447
40584
|
var BarLineComplexChartView_ref = true ? {
|
|
40448
40585
|
name: "sj7adp",
|
|
40449
40586
|
styles: "background:#fff;border-radius:8px;box-shadow:-2px 2px 8px 0px rgba(43, 45, 49, 0.24);padding:4px 8px"
|
|
@@ -40462,7 +40599,6 @@ const BarLineComplexChartView = ({
|
|
|
40462
40599
|
const theme = (0,react_namespaceObject.useTheme)();
|
|
40463
40600
|
const plotlyWrapperRef = (0,external_react_namespaceObject.useRef)(null);
|
|
40464
40601
|
const plotlyDefaultLayoutConfig = usePlotlyDefaultConfig();
|
|
40465
|
-
const deviceType = (0,hooks_namespaceObject.useDeviceType)();
|
|
40466
40602
|
const {
|
|
40467
40603
|
data
|
|
40468
40604
|
} = useBarLineComplexChartContext();
|
|
@@ -40477,6 +40613,9 @@ const BarLineComplexChartView = ({
|
|
|
40477
40613
|
const {
|
|
40478
40614
|
setIsOpen
|
|
40479
40615
|
} = useTooltipContext();
|
|
40616
|
+
const {
|
|
40617
|
+
features
|
|
40618
|
+
} = useBarLineComplexChartContext();
|
|
40480
40619
|
const {
|
|
40481
40620
|
layout = {},
|
|
40482
40621
|
config = {},
|
|
@@ -40484,8 +40623,6 @@ const BarLineComplexChartView = ({
|
|
|
40484
40623
|
} = props;
|
|
40485
40624
|
const {
|
|
40486
40625
|
margin = {},
|
|
40487
|
-
title = {},
|
|
40488
|
-
titlefont = {},
|
|
40489
40626
|
yaxis = {},
|
|
40490
40627
|
yaxis2 = {},
|
|
40491
40628
|
xaxis = {},
|
|
@@ -40498,9 +40635,6 @@ const BarLineComplexChartView = ({
|
|
|
40498
40635
|
size: isFullscreenMode ? 16 : 12,
|
|
40499
40636
|
weight: 500
|
|
40500
40637
|
};
|
|
40501
|
-
if (typeof props.cardProps?.title === 'string' && typeof title !== 'string' && typeof title.text !== 'string') {
|
|
40502
|
-
title.text = props.cardProps.title;
|
|
40503
|
-
}
|
|
40504
40638
|
const formattedTicks = timestamps.map((timestamp, index) => {
|
|
40505
40639
|
const dateTime = new Date(timestamp);
|
|
40506
40640
|
const monthYear = dateTime.toLocaleDateString('en-US', {
|
|
@@ -40570,11 +40704,15 @@ const BarLineComplexChartView = ({
|
|
|
40570
40704
|
window.removeEventListener('resize', handleDebouncedFn, false);
|
|
40571
40705
|
};
|
|
40572
40706
|
}, []);
|
|
40707
|
+
// title is rendered as an absolutely positioned overlay so it shares the same
|
|
40708
|
+
// visual row as Plotly's mode bar buttons, matching the original Plotly title behavior.
|
|
40709
|
+
// Plotly does not support JSX in layout.title, so this DOM overlay is used instead.
|
|
40710
|
+
// The Wrapper is kept `position: relative` so the overlay coordinates are relative to the chart.
|
|
40573
40711
|
return (0,jsx_runtime_namespaceObject.jsxs)(Wrapper_Wrapper, {
|
|
40574
40712
|
className: "bar-line-complex-chart-wrapper",
|
|
40575
40713
|
ref: plotlyWrapperRef,
|
|
40576
40714
|
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
40577
|
-
position: isFullscreenMode ? 'fixed' : '
|
|
40715
|
+
position: isFullscreenMode ? 'fixed' : 'relative',
|
|
40578
40716
|
top: isFullscreenMode ? '2.5%' : 'unset',
|
|
40579
40717
|
left: isFullscreenMode ? '2.5%' : 'unset',
|
|
40580
40718
|
width: isFullscreenMode ? '95%' : width,
|
|
@@ -40582,6 +40720,7 @@ const BarLineComplexChartView = ({
|
|
|
40582
40720
|
borderRadius: 20,
|
|
40583
40721
|
zIndex: isFullscreenMode ? 2 : 1,
|
|
40584
40722
|
overflow: 'hidden',
|
|
40723
|
+
background: theme.colors.white,
|
|
40585
40724
|
boxShadow: 'rgba(42, 48, 57, 0.08) 0px 10px 40px 0px',
|
|
40586
40725
|
'& .plotly': {
|
|
40587
40726
|
'& > div': isFullscreenMode && {
|
|
@@ -40595,7 +40734,28 @@ const BarLineComplexChartView = ({
|
|
|
40595
40734
|
}
|
|
40596
40735
|
}
|
|
40597
40736
|
}, true ? "" : 0, true ? "" : 0),
|
|
40598
|
-
children: [(0,jsx_runtime_namespaceObject.jsx)(
|
|
40737
|
+
children: [features?.includes('header') && props.cardProps?.title && (0,jsx_runtime_namespaceObject.jsx)(CardHeader_CardHeader, {
|
|
40738
|
+
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
40739
|
+
position: 'absolute',
|
|
40740
|
+
top: isFullscreenMode ? '13px' : '10px',
|
|
40741
|
+
left: '10px',
|
|
40742
|
+
width: 'auto',
|
|
40743
|
+
marginBottom: 0,
|
|
40744
|
+
zIndex: 1
|
|
40745
|
+
}, true ? "" : 0, true ? "" : 0),
|
|
40746
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(WidgetCardTitle, {
|
|
40747
|
+
variant: "h3",
|
|
40748
|
+
weight: "bold",
|
|
40749
|
+
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
40750
|
+
flexDirection: 'row',
|
|
40751
|
+
fontSize: isFullscreenMode ? '24px' : '12px',
|
|
40752
|
+
[theme.mediaQueries.md]: {
|
|
40753
|
+
fontSize: isFullscreenMode ? '24px' : '16px'
|
|
40754
|
+
}
|
|
40755
|
+
}, true ? "" : 0, true ? "" : 0),
|
|
40756
|
+
children: props.cardProps.title
|
|
40757
|
+
})
|
|
40758
|
+
}), (0,jsx_runtime_namespaceObject.jsx)((external_react_plotly_js_default()), {
|
|
40599
40759
|
divId: 'bar-line-complex-chart-graph',
|
|
40600
40760
|
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
40601
40761
|
width: isFullscreenMode ? '100%' : width,
|
|
@@ -40615,27 +40775,12 @@ const BarLineComplexChartView = ({
|
|
|
40615
40775
|
orientation: 1,
|
|
40616
40776
|
margin: {
|
|
40617
40777
|
b: isFullscreenMode ? 15 : 0,
|
|
40618
|
-
l: orientation === 'v' ?
|
|
40778
|
+
l: orientation === 'v' ? 10 : isFullscreenMode ? 30 : 15,
|
|
40619
40779
|
r: orientation === 'v' ? 40 : 0,
|
|
40620
|
-
t: (
|
|
40780
|
+
t: features?.includes('header') && props.cardProps?.title ? isFullscreenMode ? 45 : 43 : 10,
|
|
40621
40781
|
pad: 10,
|
|
40622
40782
|
...margin
|
|
40623
40783
|
},
|
|
40624
|
-
title: typeof title === 'string' ? title : {
|
|
40625
|
-
x: 0,
|
|
40626
|
-
y: 1,
|
|
40627
|
-
font: {
|
|
40628
|
-
size: isFullscreenMode ? 24 : (0,utils_namespaceObject.propOr)(TITLE_FONT_SIZE.other, deviceType)(TITLE_FONT_SIZE),
|
|
40629
|
-
weight: 700,
|
|
40630
|
-
family: FONT_FAMILY,
|
|
40631
|
-
...titlefont
|
|
40632
|
-
},
|
|
40633
|
-
pad: {
|
|
40634
|
-
l: (0,utils_namespaceObject.propOr)(TITLE_PADDING_LEFT.other, deviceType)(TITLE_PADDING_LEFT),
|
|
40635
|
-
t: (0,utils_namespaceObject.propOr)(TITLE_PADDING_TOP.other, deviceType)(TITLE_PADDING_TOP)
|
|
40636
|
-
},
|
|
40637
|
-
...title
|
|
40638
|
-
},
|
|
40639
40784
|
barmode: 'group',
|
|
40640
40785
|
autosize: false,
|
|
40641
40786
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
@@ -40785,6 +40930,8 @@ const BarLineComplexChartComponent = ({
|
|
|
40785
40930
|
onFullscreenModeChange,
|
|
40786
40931
|
...rest
|
|
40787
40932
|
}) => {
|
|
40933
|
+
const effectiveTitle = cardProps?.title ?? title;
|
|
40934
|
+
const effectiveFeatures = effectiveTitle && !features.includes('header') ? [...features, 'header'] : features;
|
|
40788
40935
|
const tooltip = useTooltip();
|
|
40789
40936
|
const {
|
|
40790
40937
|
isFullscreenMode,
|
|
@@ -40807,14 +40954,14 @@ const BarLineComplexChartComponent = ({
|
|
|
40807
40954
|
lineShape: lineShape,
|
|
40808
40955
|
maxVisibleBars: maxVisibleBars,
|
|
40809
40956
|
maxVisibleLines: maxVisibleLines,
|
|
40810
|
-
features:
|
|
40957
|
+
features: effectiveFeatures,
|
|
40811
40958
|
children: (0,jsx_runtime_namespaceObject.jsx)(TooltipContext.Provider, {
|
|
40812
40959
|
value: tooltip,
|
|
40813
40960
|
children: (0,jsx_runtime_namespaceObject.jsx)(BarLineComplexChartInternal, {
|
|
40814
40961
|
...rest,
|
|
40815
40962
|
cardProps: {
|
|
40816
40963
|
...cardProps,
|
|
40817
|
-
title:
|
|
40964
|
+
title: effectiveTitle
|
|
40818
40965
|
}
|
|
40819
40966
|
})
|
|
40820
40967
|
})
|
|
@@ -47802,6 +47949,7 @@ const getCandlestickPlotData = (style, data, increasingColor, decreasingColor) =
|
|
|
47802
47949
|
}];
|
|
47803
47950
|
};
|
|
47804
47951
|
;// ./src/components/Charts/CandlestickChart/CandlestickChart.tsx
|
|
47952
|
+
|
|
47805
47953
|
function CandlestickChart_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
|
|
47806
47954
|
|
|
47807
47955
|
|
|
@@ -47812,14 +47960,23 @@ function CandlestickChart_EMOTION_STRINGIFIED_CSS_ERROR_() { return "You have tr
|
|
|
47812
47960
|
|
|
47813
47961
|
|
|
47814
47962
|
|
|
47963
|
+
|
|
47815
47964
|
var CandlestickChart_ref = true ? {
|
|
47965
|
+
name: "zxsb69",
|
|
47966
|
+
styles: "position:relative;width:100%;height:100%"
|
|
47967
|
+
} : 0;
|
|
47968
|
+
var CandlestickChart_ref2 = true ? {
|
|
47969
|
+
name: "1j8nx2m",
|
|
47970
|
+
styles: "position:absolute;top:1px;left:10px;width:auto;margin-bottom:0;z-index:1"
|
|
47971
|
+
} : 0;
|
|
47972
|
+
var CandlestickChart_ref3 = true ? {
|
|
47816
47973
|
name: "w1atjl",
|
|
47817
47974
|
styles: "width:100%;height:100%"
|
|
47818
47975
|
} : 0;
|
|
47819
47976
|
const CandlestickChartComponent = ({
|
|
47820
47977
|
title,
|
|
47821
47978
|
data,
|
|
47822
|
-
features,
|
|
47979
|
+
features = [],
|
|
47823
47980
|
widgetCardProps,
|
|
47824
47981
|
style = 'hollow',
|
|
47825
47982
|
...plotParams
|
|
@@ -47851,57 +48008,66 @@ const CandlestickChartComponent = ({
|
|
|
47851
48008
|
gravity: '1'
|
|
47852
48009
|
});
|
|
47853
48010
|
}
|
|
47854
|
-
return (
|
|
47855
|
-
|
|
47856
|
-
|
|
47857
|
-
|
|
47858
|
-
|
|
47859
|
-
|
|
47860
|
-
|
|
47861
|
-
...
|
|
47862
|
-
title: {
|
|
47863
|
-
text: title,
|
|
47864
|
-
x: 0,
|
|
47865
|
-
y: 1,
|
|
47866
|
-
pad: {
|
|
47867
|
-
l: 10,
|
|
47868
|
-
t: 5
|
|
47869
|
-
},
|
|
47870
|
-
font: {
|
|
47871
|
-
size: 24,
|
|
47872
|
-
weight: 700,
|
|
47873
|
-
family: 'Manrope, sans-serif'
|
|
47874
|
-
}
|
|
47875
|
-
},
|
|
47876
|
-
dragmode: 'zoom',
|
|
47877
|
-
xaxis: {
|
|
47878
|
-
rangeslider: {
|
|
47879
|
-
visible: false
|
|
47880
|
-
}
|
|
47881
|
-
},
|
|
47882
|
-
yaxis: {
|
|
47883
|
-
side: 'right'
|
|
47884
|
-
},
|
|
47885
|
-
margin: {
|
|
47886
|
-
t: 20,
|
|
47887
|
-
b: 40,
|
|
47888
|
-
l: 20,
|
|
47889
|
-
r: 20
|
|
47890
|
-
},
|
|
47891
|
-
showlegend: false,
|
|
47892
|
-
...layout
|
|
47893
|
-
},
|
|
47894
|
-
css: CandlestickChart_ref,
|
|
47895
|
-
useResizeHandler: true,
|
|
47896
|
-
data: plotData,
|
|
47897
|
-
config: {
|
|
47898
|
-
...plotlyDefaultLayoutConfig.config,
|
|
47899
|
-
modeBarButtons: [extraModeBarButtons, ['zoom2d', 'pan2d', 'select2d', 'zoomIn2d', 'zoomOut2d', 'autoScale2d', 'resetScale2d']],
|
|
47900
|
-
...config
|
|
48011
|
+
return (
|
|
48012
|
+
// title is rendered as an absolutely positioned overlay so it shares the same
|
|
48013
|
+
// visual row as Plotly's mode bar buttons, matching the original Plotly title behavior.
|
|
48014
|
+
// Plotly does not support JSX in layout.title, so this DOM overlay is used instead.
|
|
48015
|
+
(0,jsx_runtime_namespaceObject.jsx)(WithWidgetCard, {
|
|
48016
|
+
features: features,
|
|
48017
|
+
cardProps: {
|
|
48018
|
+
...widgetCardProps
|
|
47901
48019
|
},
|
|
47902
|
-
|
|
48020
|
+
children: (0,jsx_runtime_namespaceObject.jsxs)("div", {
|
|
48021
|
+
css: CandlestickChart_ref,
|
|
48022
|
+
children: [title && (0,jsx_runtime_namespaceObject.jsx)(CardHeader_CardHeader, {
|
|
48023
|
+
css: CandlestickChart_ref2,
|
|
48024
|
+
children: (0,jsx_runtime_namespaceObject.jsx)(WidgetCardTitle, {
|
|
48025
|
+
variant: "h3",
|
|
48026
|
+
weight: "bold",
|
|
48027
|
+
css: /*#__PURE__*/(0,react_namespaceObject.css)({
|
|
48028
|
+
flexDirection: 'row',
|
|
48029
|
+
lineHeight: 1,
|
|
48030
|
+
fontSize: '24px',
|
|
48031
|
+
[theme.mediaQueries.md]: {
|
|
48032
|
+
fontSize: '24px'
|
|
48033
|
+
}
|
|
48034
|
+
}, true ? "" : 0, true ? "" : 0),
|
|
48035
|
+
children: title
|
|
48036
|
+
})
|
|
48037
|
+
}), (0,jsx_runtime_namespaceObject.jsx)((external_react_plotly_js_default()), {
|
|
48038
|
+
layout: {
|
|
48039
|
+
...plotlyDefaultLayoutConfig.layout,
|
|
48040
|
+
dragmode: 'zoom',
|
|
48041
|
+
xaxis: {
|
|
48042
|
+
rangeslider: {
|
|
48043
|
+
visible: false
|
|
48044
|
+
}
|
|
48045
|
+
},
|
|
48046
|
+
yaxis: {
|
|
48047
|
+
side: 'right'
|
|
48048
|
+
},
|
|
48049
|
+
margin: {
|
|
48050
|
+
t: 20,
|
|
48051
|
+
b: 40,
|
|
48052
|
+
l: 20,
|
|
48053
|
+
r: 20
|
|
48054
|
+
},
|
|
48055
|
+
showlegend: false,
|
|
48056
|
+
...layout
|
|
48057
|
+
},
|
|
48058
|
+
css: CandlestickChart_ref3,
|
|
48059
|
+
useResizeHandler: true,
|
|
48060
|
+
data: plotData,
|
|
48061
|
+
config: {
|
|
48062
|
+
...plotlyDefaultLayoutConfig.config,
|
|
48063
|
+
modeBarButtons: [extraModeBarButtons, ['zoom2d', 'pan2d', 'select2d', 'zoomIn2d', 'zoomOut2d', 'autoScale2d', 'resetScale2d']],
|
|
48064
|
+
...config
|
|
48065
|
+
},
|
|
48066
|
+
...restPlotParams
|
|
48067
|
+
})]
|
|
48068
|
+
})
|
|
47903
48069
|
})
|
|
47904
|
-
|
|
48070
|
+
);
|
|
47905
48071
|
};
|
|
47906
48072
|
const CandlestickChart = WithFullscreenMode(CandlestickChartComponent);
|
|
47907
48073
|
;// ./src/components/Charts/CandlestickChart/index.ts
|
|
@@ -51231,7 +51397,7 @@ const ValueWithCounter = /*#__PURE__*/base_default()("div", true ? {
|
|
|
51231
51397
|
name: "1j5vobt",
|
|
51232
51398
|
styles: "display:flex;align-items:center;gap:4px"
|
|
51233
51399
|
} : 0);
|
|
51234
|
-
const
|
|
51400
|
+
const styles_Counter = /*#__PURE__*/base_default()(TextBase.withComponent('span', true ? {
|
|
51235
51401
|
target: "ej2kihb16"
|
|
51236
51402
|
} : 0), true ? {
|
|
51237
51403
|
target: "ej2kihb7"
|
|
@@ -51490,7 +51656,7 @@ const PersonInfoCounter = ({
|
|
|
51490
51656
|
children: user.name
|
|
51491
51657
|
}, user.id))
|
|
51492
51658
|
});
|
|
51493
|
-
const counterNode = (0,jsx_runtime_namespaceObject.jsx)(
|
|
51659
|
+
const counterNode = (0,jsx_runtime_namespaceObject.jsx)(styles_Counter, {
|
|
51494
51660
|
css: css,
|
|
51495
51661
|
"data-testid": "person-info-counter",
|
|
51496
51662
|
children: counterValue
|
|
@@ -51939,6 +52105,7 @@ const UserProfile = ({
|
|
|
51939
52105
|
|
|
51940
52106
|
|
|
51941
52107
|
|
|
52108
|
+
|
|
51942
52109
|
|
|
51943
52110
|
|
|
51944
52111
|
// ============================================================================
|