intergalactic 15.65.3-prerelease-d76cc7b9 → 15.66.0-prerelease-0004a874
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/CHANGELOG.md +73 -9
- package/animation/index.d.ts +1 -1
- package/animation/lib/cjs/Collapse.js +29 -29
- package/animation/lib/cjs/Collapse.js.map +1 -1
- package/animation/lib/cjs/FadeInOut.js +28 -28
- package/animation/lib/cjs/Scale.js +28 -28
- package/animation/lib/cjs/Slide.js +28 -28
- package/animation/lib/cjs/Transform.js +28 -28
- package/animation/lib/cjs/index.d.js.map +1 -1
- package/animation/lib/cjs/style/keyframes.shadow.css +53 -5
- package/animation/lib/es6/Collapse.js +29 -29
- package/animation/lib/es6/Collapse.js.map +1 -1
- package/animation/lib/es6/FadeInOut.js +28 -28
- package/animation/lib/es6/Scale.js +28 -28
- package/animation/lib/es6/Slide.js +28 -28
- package/animation/lib/es6/Transform.js +28 -28
- package/animation/lib/es6/index.d.js.map +1 -1
- package/animation/lib/es6/style/keyframes.shadow.css +53 -5
- package/animation/lib/types/index.d.ts +1 -1
- package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
- package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
- package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
- package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
- package/base-trigger/lib/es6/BaseTrigger.js +18 -18
- package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
- package/base-trigger/lib/es6/FilterTrigger.js +7 -7
- package/base-trigger/lib/es6/LinkTrigger.js +12 -12
- package/button/lib/cjs/Button.js +26 -26
- package/button/lib/cjs/style/button.shadow.css +10 -11
- package/button/lib/es6/Button.js +26 -26
- package/button/lib/es6/style/button.shadow.css +10 -11
- package/card/index.d.ts +10 -1
- package/card/lib/cjs/Card.js +10 -3
- package/card/lib/cjs/Card.js.map +1 -1
- package/card/lib/cjs/index.d.js.map +1 -1
- package/card/lib/es6/Card.js +10 -3
- package/card/lib/es6/Card.js.map +1 -1
- package/card/lib/es6/index.d.js.map +1 -1
- package/card/lib/types/index.d.ts +10 -1
- package/carousel/lib/cjs/Carousel.js +18 -7
- package/carousel/lib/cjs/Carousel.js.map +1 -1
- package/carousel/lib/es6/Carousel.js +18 -7
- package/carousel/lib/es6/Carousel.js.map +1 -1
- package/components.json +6 -6
- package/d3-chart/Area.d.ts +2 -2
- package/d3-chart/Line.d.ts +2 -2
- package/d3-chart/lib/cjs/Area.js +11 -11
- package/d3-chart/lib/cjs/Axis.js +14 -14
- package/d3-chart/lib/cjs/Bar.js +10 -10
- package/d3-chart/lib/cjs/Bubble.js +12 -12
- package/d3-chart/lib/cjs/Donut.js +9 -9
- package/d3-chart/lib/cjs/Dots.js +9 -9
- package/d3-chart/lib/cjs/Dots.js.map +1 -1
- package/d3-chart/lib/cjs/HorizontalBar.js +10 -10
- package/d3-chart/lib/cjs/Hover.js +3 -3
- package/d3-chart/lib/cjs/Line.js +12 -10
- package/d3-chart/lib/cjs/Line.js.map +1 -1
- package/d3-chart/lib/cjs/Plot.js +3 -3
- package/d3-chart/lib/cjs/Radar.js +19 -19
- package/d3-chart/lib/cjs/RadialTree.js +11 -11
- package/d3-chart/lib/cjs/ReferenceLine.js +9 -9
- package/d3-chart/lib/cjs/ScatterPlot.js +9 -9
- package/d3-chart/lib/cjs/Tooltip.js +9 -9
- package/d3-chart/lib/cjs/Venn.js +9 -9
- package/d3-chart/lib/cjs/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/cjs/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/cjs/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/cjs/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/cjs/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/cjs/types/Area.d.js.map +1 -1
- package/d3-chart/lib/cjs/types/Line.d.js.map +1 -1
- package/d3-chart/lib/es6/Area.js +11 -11
- package/d3-chart/lib/es6/Axis.js +14 -14
- package/d3-chart/lib/es6/Bar.js +10 -10
- package/d3-chart/lib/es6/Bubble.js +12 -12
- package/d3-chart/lib/es6/Donut.js +9 -9
- package/d3-chart/lib/es6/Dots.js +9 -9
- package/d3-chart/lib/es6/Dots.js.map +1 -1
- package/d3-chart/lib/es6/HorizontalBar.js +10 -10
- package/d3-chart/lib/es6/Hover.js +3 -3
- package/d3-chart/lib/es6/Line.js +12 -10
- package/d3-chart/lib/es6/Line.js.map +1 -1
- package/d3-chart/lib/es6/Plot.js +3 -3
- package/d3-chart/lib/es6/Radar.js +19 -19
- package/d3-chart/lib/es6/RadialTree.js +11 -11
- package/d3-chart/lib/es6/ReferenceLine.js +9 -9
- package/d3-chart/lib/es6/ScatterPlot.js +9 -9
- package/d3-chart/lib/es6/Tooltip.js +9 -9
- package/d3-chart/lib/es6/Venn.js +9 -9
- package/d3-chart/lib/es6/a11y/PlotA11yModule.js +2 -2
- package/d3-chart/lib/es6/a11y/PlotA11yView.js +2 -2
- package/d3-chart/lib/es6/component/ChartLegend/LegendFlex/LegendFlex.js +4 -4
- package/d3-chart/lib/es6/component/ChartLegend/LegendItem/LegendItem.js +17 -17
- package/d3-chart/lib/es6/component/ChartLegend/LegendTable/LegendTable.js +6 -6
- package/d3-chart/lib/es6/types/Area.d.js.map +1 -1
- package/d3-chart/lib/es6/types/Line.d.js.map +1 -1
- package/d3-chart/lib/types/Area.d.ts +2 -2
- package/d3-chart/lib/types/Line.d.ts +2 -2
- package/data-table/lib/cjs/DataTable.js +5 -0
- package/data-table/lib/cjs/DataTable.js.map +1 -1
- package/data-table/lib/es6/DataTable.js +5 -0
- package/data-table/lib/es6/DataTable.js.map +1 -1
- package/date-picker/lib/cjs/DatePicker.js +1 -1
- package/date-picker/lib/cjs/DatePicker.js.map +1 -1
- package/date-picker/lib/cjs/DateRangeComparator.js +11 -8
- package/date-picker/lib/cjs/DateRangeComparator.js.map +1 -1
- package/date-picker/lib/cjs/MonthDateRangeComparator.js +7 -6
- package/date-picker/lib/cjs/MonthDateRangeComparator.js.map +1 -1
- package/date-picker/lib/cjs/components/Calendar.js +156 -72
- package/date-picker/lib/cjs/components/Calendar.js.map +1 -1
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +206 -123
- package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js.map +1 -1
- package/date-picker/lib/cjs/components/InputTrigger.js +50 -38
- package/date-picker/lib/cjs/components/InputTrigger.js.map +1 -1
- package/date-picker/lib/cjs/components/PickerAbstract.js +38 -29
- package/date-picker/lib/cjs/components/PickerAbstract.js.map +1 -1
- package/date-picker/lib/cjs/components/RangePickerAbstract.js +105 -79
- package/date-picker/lib/cjs/components/RangePickerAbstract.js.map +1 -1
- package/date-picker/lib/cjs/components/index.js +4 -4
- package/date-picker/lib/cjs/components/index.js.map +1 -1
- package/date-picker/lib/cjs/style/calendar.shadow.css +7 -3
- package/date-picker/lib/cjs/translations/en.json +8 -1
- package/date-picker/lib/cjs/utils/formatDate.js +19 -7
- package/date-picker/lib/cjs/utils/formatDate.js.map +1 -1
- package/date-picker/lib/es6/DatePicker.js +2 -2
- package/date-picker/lib/es6/DatePicker.js.map +1 -1
- package/date-picker/lib/es6/DateRangeComparator.js +11 -8
- package/date-picker/lib/es6/DateRangeComparator.js.map +1 -1
- package/date-picker/lib/es6/MonthDateRangeComparator.js +7 -6
- package/date-picker/lib/es6/MonthDateRangeComparator.js.map +1 -1
- package/date-picker/lib/es6/components/Calendar.js +157 -73
- package/date-picker/lib/es6/components/Calendar.js.map +1 -1
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +206 -123
- package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/InputTrigger.js +50 -38
- package/date-picker/lib/es6/components/InputTrigger.js.map +1 -1
- package/date-picker/lib/es6/components/PickerAbstract.js +38 -29
- package/date-picker/lib/es6/components/PickerAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/RangePickerAbstract.js +105 -79
- package/date-picker/lib/es6/components/RangePickerAbstract.js.map +1 -1
- package/date-picker/lib/es6/components/index.js +4 -4
- package/date-picker/lib/es6/components/index.js.map +1 -1
- package/date-picker/lib/es6/style/calendar.shadow.css +7 -3
- package/date-picker/lib/es6/translations/en.json +8 -1
- package/date-picker/lib/es6/utils/formatDate.js +16 -5
- package/date-picker/lib/es6/utils/formatDate.js.map +1 -1
- package/dropdown-menu/lib/cjs/DropdownMenu.js +46 -19
- package/dropdown-menu/lib/cjs/DropdownMenu.js.map +1 -1
- package/dropdown-menu/lib/es6/DropdownMenu.js +47 -20
- package/dropdown-menu/lib/es6/DropdownMenu.js.map +1 -1
- package/icon/Check/l/index.js +1 -1
- package/icon/Check/l/index.mjs +1 -1
- package/icon/CheckDouble/l/index.d.ts +6 -0
- package/icon/CheckDouble/l/index.js +36 -0
- package/icon/CheckDouble/l/index.mjs +24 -0
- package/icon/CheckDouble/m/index.d.ts +6 -0
- package/icon/CheckDouble/m/index.js +36 -0
- package/icon/CheckDouble/m/index.mjs +24 -0
- package/icon/CollapseAlt/l/index.d.ts +6 -0
- package/icon/CollapseAlt/l/index.js +36 -0
- package/icon/CollapseAlt/l/index.mjs +24 -0
- package/icon/CollapseAlt/m/index.d.ts +6 -0
- package/icon/CollapseAlt/m/index.js +36 -0
- package/icon/CollapseAlt/m/index.mjs +24 -0
- package/icon/ExpandAlt/l/index.d.ts +6 -0
- package/icon/ExpandAlt/l/index.js +36 -0
- package/icon/ExpandAlt/l/index.mjs +24 -0
- package/icon/ExpandAlt/m/index.d.ts +6 -0
- package/icon/ExpandAlt/m/index.js +36 -0
- package/icon/ExpandAlt/m/index.mjs +24 -0
- package/package.json +26 -2
- package/pagination/lib/cjs/Pagination.js +10 -10
- package/pagination/lib/es6/Pagination.js +10 -10
- package/pills/index.d.ts +3 -3
- package/pills/lib/cjs/Pills.js +19 -18
- package/pills/lib/cjs/Pills.js.map +1 -1
- package/pills/lib/cjs/index.d.js.map +1 -1
- package/pills/lib/cjs/style/pills.shadow.css +6 -1
- package/pills/lib/es6/Pills.js +19 -18
- package/pills/lib/es6/Pills.js.map +1 -1
- package/pills/lib/es6/index.d.js.map +1 -1
- package/pills/lib/es6/style/pills.shadow.css +6 -1
- package/pills/lib/types/index.d.ts +3 -3
- package/select/lib/cjs/InputSearch.js +6 -6
- package/select/lib/cjs/Select.js +9 -9
- package/select/lib/es6/InputSearch.js +6 -6
- package/select/lib/es6/Select.js +9 -9
- package/tag/lib/cjs/Tag.js +20 -20
- package/tag/lib/cjs/style/tag.shadow.css +2 -1
- package/tag/lib/es6/Tag.js +20 -20
- package/tag/lib/es6/style/tag.shadow.css +2 -1
- package/time-picker/lib/cjs/PickerInput.js +3 -1
- package/time-picker/lib/cjs/PickerInput.js.map +1 -1
- package/time-picker/lib/cjs/TimePicker.js +12 -12
- package/time-picker/lib/es6/PickerInput.js +3 -1
- package/time-picker/lib/es6/PickerInput.js.map +1 -1
- package/time-picker/lib/es6/TimePicker.js +12 -12
- package/utils/lib/propsForElement.js +1 -1
- package/utils/lib/propsForElement.js.map +1 -1
- package/utils/lib/propsForElement.mjs +1 -1
- package/utils/lib/propsForElement.mjs.map +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Line.js","names":["React","curveLinear","line","d3Line","area","d3Area","curveCardinal","Component","sstyled","uniqueIDEnhancement","useUID","createElement","definedData","definedNullData","scaleOfBandwidth","getNullData","interpolateValue","getChartDefaultColorName","Dots","AnimatedClipPath","resolvePatternDasharray","style","_sstyled","insert","LineRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getDotsProps","_this$asProps","asProps","x","y","d3","color","resolveColor","duration","transparent","patterns","getNullProps","_this$asProps2","data","filter","item","getAreaProps","_this$asProps3","hide","scale","render","_ref","SLine","Element","_this$asProps4","styles","uid","size","dataHintsHandler","specifyDataRowFields","establishDataType","patternKey","Fragment","cn","concat","undefined","_defineProperty","_ref4","$rootProps","_ref4$curve","curve","_ref5","_ref6","_slicedToArray","xScale","yScale","defined","p","Null","props","_ref2","SNull","Area","_ref3","SAria","y0","y1","_props$curve","_scale","dataToArea"],"sources":["../../src/Line.jsx"],"sourcesContent":["import React from 'react';\nimport { curveLinear, line as d3Line, area as d3Area, curveCardinal } from 'd3-shape';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement, { useUID } from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport {\n definedData,\n definedNullData,\n scaleOfBandwidth,\n getNullData,\n interpolateValue,\n getChartDefaultColorName,\n} from './utils';\nimport Dots from './Dots';\nimport AnimatedClipPath from './AnimatedClipPath';\nimport { resolvePatternDasharray } from './Pattern';\n\nimport style from './style/line.shadow.css';\n\nclass LineRoot extends Component {\n static displayName = 'Line';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = ({ x, y, $rootProps, curve = curveLinear, scale }) => {\n const [xScale, yScale] = scale || $rootProps.scale;\n return {\n d3: d3Line()\n .defined(definedData(x, y))\n .curve(curve)\n .x((p) => scaleOfBandwidth(xScale, p[x]))\n .y((p) => scaleOfBandwidth(yScale, p[y])),\n duration: 500,\n };\n };\n\n getDotsProps() {\n const { x, y, d3, color, resolveColor, duration, transparent, patterns } = this.asProps;\n return {\n x,\n y,\n d3,\n color,\n resolveColor,\n duration,\n transparent,\n patterns,\n };\n }\n\n getNullProps() {\n const { x, y, d3, color, resolveColor } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n return {\n d3,\n // TODO: vertical\n data: getNullData(data, definedNullData(x, y), y),\n color,\n resolveColor,\n };\n }\n\n getAreaProps() {\n const { x, y, color, hide, duration, scale } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n return {\n x,\n y,\n data,\n color,\n hide,\n duration,\n scale,\n };\n }\n\n render() {\n const SLine = this.Element;\n const {\n styles,\n hide,\n color,\n resolveColor,\n uid,\n size,\n d3,\n duration,\n x,\n y,\n transparent,\n patterns,\n } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n this.asProps.dataHintsHandler.specifyDataRowFields(x, y);\n this.asProps.dataHintsHandler.establishDataType('time-series');\n\n const patternKey = color || getChartDefaultColorName(0);\n\n return sstyled(styles)(\n <>\n <SLine\n aria-hidden\n clipPath={`url(#${uid})`}\n render='path'\n hide={hide}\n color={resolveColor(color)}\n transparent={transparent}\n d={d3(data)}\n use:duration={`${duration}ms`}\n strokeDasharray={patterns ? resolvePatternDasharray(patternKey, patterns) : undefined}\n />\n {duration && (\n <AnimatedClipPath\n aria-hidden\n duration={duration}\n id={uid}\n x='0'\n y='0'\n width={0}\n height={size[1]}\n />\n )}\n </>,\n );\n }\n}\n\nfunction Null(props) {\n const { Element: SNull, styles, d3, data, hide } = props;\n return sstyled(styles)(<SNull render='path' d={d3(data)} hide={hide} />);\n}\n\nfunction Area(props) {\n const uid = useUID();\n const {\n Element: SAria,\n styles,\n data,\n hide,\n duration,\n color,\n scale,\n x,\n y0,\n y1,\n curve = curveCardinal,\n area,\n patterns,\n } = props;\n const [xScale, yScale] = scale;\n const dataToArea = area ?? data;\n\n const d3 = d3Area()\n .curve(curve)\n .x((data) => xScale(data[x]))\n .y0((data) => yScale(data[y0]))\n .y1((data) => yScale(data[y1]));\n\n return sstyled(styles)(\n <SAria\n aria-hidden\n clipPath={`url(#${uid})`}\n render='path'\n hide={hide}\n color={color}\n d={d3(dataToArea)}\n use:duration={`${duration}ms`}\n patterns={patterns}\n />,\n );\n}\n\nexport default createElement(LineRoot, {\n Dots,\n Null,\n Area,\n});\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,EAAEC,IAAI,IAAIC,MAAM,EAAEC,IAAI,IAAIC,MAAM,EAAEC,aAAa,QAAQ,UAAU;AACrF,SAASC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AAClD,OAAOC,mBAAmB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ACd,MAAM;IAAA,QACPR,IAAI;IAAA,SACHZ,KAAK;IAAA,KACTD,EAAE,CAACsD,UAAU,CAAC;IAAA,mBAAAzB,MAAA,CACA1B,QAAQ;IAAA,YACfE;EAAQ,GAClB;AAEN;AAEA,eAAelC,aAAa,CAACa,QAAQ,EAAE;EACrCN,IAAI,EAAJA,IAAI;EACJiE,IAAI,EAAJA,IAAI;EACJI,IAAI,EAAJA;AACF,CAAC,CAAC"}
|
1
|
+
{"version":3,"file":"Line.js","names":["React","curveLinear","line","d3Line","area","d3Area","curveCardinal","Component","sstyled","uniqueIDEnhancement","useUID","createElement","definedData","definedNullData","scaleOfBandwidth","getNullData","interpolateValue","getChartDefaultColorName","Dots","AnimatedClipPath","resolvePatternDasharray","style","_sstyled","insert","LineRoot","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getDotsProps","_this$asProps","asProps","x","y","d3","color","resolveColor","duration","transparent","patterns","getNullProps","_this$asProps2","data","filter","item","getAreaProps","_this$asProps3","hide","scale","render","_ref","SLine","Element","_this$asProps4","styles","uid","size","dataHintsHandler","specifyDataRowFields","establishDataType","patternKey","Fragment","cn","concat","undefined","_defineProperty","_ref4","$rootProps","_ref4$curve","curve","_ref5","_ref6","_slicedToArray","xScale","yScale","defined","p","Null","props","_ref2","SNull","Area","_ref3","SAria","y0","y1","_props$curve","_scale","dataToArea","d"],"sources":["../../src/Line.jsx"],"sourcesContent":["import React from 'react';\nimport { curveLinear, line as d3Line, area as d3Area, curveCardinal } from 'd3-shape';\nimport { Component, sstyled } from '@semcore/core';\nimport uniqueIDEnhancement, { useUID } from '@semcore/utils/lib/uniqueID';\nimport createElement from './createElement';\nimport {\n definedData,\n definedNullData,\n scaleOfBandwidth,\n getNullData,\n interpolateValue,\n getChartDefaultColorName,\n} from './utils';\nimport Dots from './Dots';\nimport AnimatedClipPath from './AnimatedClipPath';\nimport { resolvePatternDasharray } from './Pattern';\n\nimport style from './style/line.shadow.css';\n\nclass LineRoot extends Component {\n static displayName = 'Line';\n static style = style;\n static enhance = [uniqueIDEnhancement()];\n\n static defaultProps = ({ x, y, $rootProps, curve = curveLinear, scale }) => {\n const [xScale, yScale] = scale || $rootProps.scale;\n return {\n d3: d3Line()\n .defined(definedData(x, y))\n .curve(curve)\n .x((p) => scaleOfBandwidth(xScale, p[x]))\n .y((p) => scaleOfBandwidth(yScale, p[y])),\n duration: 500,\n };\n };\n\n getDotsProps() {\n const { x, y, d3, color, resolveColor, duration, transparent, patterns } = this.asProps;\n return {\n x,\n y,\n d3,\n color,\n resolveColor,\n duration,\n transparent,\n patterns,\n };\n }\n\n getNullProps() {\n const { x, y, d3, color, resolveColor } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n return {\n d3,\n // TODO: vertical\n data: getNullData(data, definedNullData(x, y), y),\n color,\n resolveColor,\n };\n }\n\n getAreaProps() {\n const { x, y, color, hide, duration, scale } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n return {\n x,\n y,\n data,\n color,\n hide,\n duration,\n scale,\n };\n }\n\n render() {\n const SLine = this.Element;\n const {\n styles,\n hide,\n color,\n resolveColor,\n uid,\n size,\n d3,\n duration,\n x,\n y,\n transparent,\n patterns,\n } = this.asProps;\n const data = this.asProps.data.filter((item) => item[y] !== interpolateValue);\n\n this.asProps.dataHintsHandler.specifyDataRowFields(x, y);\n this.asProps.dataHintsHandler.establishDataType('time-series');\n\n const patternKey = color || getChartDefaultColorName(0);\n\n return sstyled(styles)(\n <>\n <SLine\n aria-hidden\n clipPath={`url(#${uid})`}\n render='path'\n hide={hide}\n color={resolveColor(color)}\n transparent={transparent}\n d={d3(data)}\n use:duration={`${duration}ms`}\n strokeDasharray={patterns ? resolvePatternDasharray(patternKey, patterns) : undefined}\n />\n {duration && (\n <AnimatedClipPath\n aria-hidden\n duration={duration}\n id={uid}\n x='0'\n y='0'\n width={0}\n height={size[1]}\n />\n )}\n </>,\n );\n }\n}\n\nfunction Null(props) {\n const { Element: SNull, styles, d3, data, hide } = props;\n return sstyled(styles)(<SNull render='path' d={d3(data)} hide={hide} />);\n}\n\nfunction Area(props) {\n const uid = useUID();\n const {\n Element: SAria,\n styles,\n data,\n hide,\n duration,\n color,\n scale,\n x,\n y0,\n y1,\n curve = curveCardinal,\n area,\n patterns,\n } = props;\n const [xScale, yScale] = scale;\n const dataToArea = area ?? data.filter((d) => definedData(y0, y1)(d));\n\n const d3 = d3Area()\n .curve(curve)\n .x((data) => xScale(data[x]))\n .y0((data) => yScale(data[y0]))\n .y1((data) => yScale(data[y1]));\n\n return sstyled(styles)(\n <SAria\n aria-hidden\n clipPath={`url(#${uid})`}\n render='path'\n hide={hide}\n color={color}\n d={d3(dataToArea)}\n use:duration={`${duration}ms`}\n patterns={patterns}\n />,\n );\n}\n\nexport default createElement(LineRoot, {\n Dots,\n Null,\n Area,\n});\n"],"mappings":";;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,EAAEC,IAAI,IAAIC,MAAM,EAAEC,IAAI,IAAIC,MAAM,EAAEC,aAAa,QAAQ,UAAU;AACrF,SAASC,SAAS,EAAEC,OAAO,QAAQ,eAAe;AAClD,OAAOC,mBAAmB,IAAIC,MAAM,QAAQ,6BAA6B;AACzE,OAAOC,aAAa,MAAM,iBAAiB;AAC3C,SACEC,WAAW,EACXC,eAAe,EACfC,gBAAgB,EAChBC,WAAW,EACXC,gBAAgB,EAChBC,wBAAwB,QACnB,SAAS;AAChB,OAAOC,IAAI,MAAM,QAAQ;AACzB,OAAOC,gBAAgB,MAAM,oBAAoB;AACjD,SAASC,uBAAuB,QAAQ,WAAW;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAI9CC,QAAQ,0BAAAC,UAAA;EAAAC,SAAA,CAAAF,QAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,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y/PlotA11yModule';
|
|
18
18
|
import { makeDataHintsHandlers, makeDataHintsContainer } from './a11y/hints';
|
19
19
|
import colorResolverEnhance from 'intergalactic/utils/lib/enhances/resolveColorEnhance';
|
20
20
|
/*__reshadow-styles__:"./style/plot.shadow.css"*/
|
21
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
22
|
-
"__SPlot": "
|
23
|
-
"_keyboardFocused": "
|
21
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlot_1np9z_gg_{overflow:hidden}.___SPlot_1np9z_gg_:active,.___SPlot_1np9z_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}foreignObject[data-aria-only]{pointer-events:none}.___SPlot_1np9z_gg_.__keyboardFocused_1np9z_gg_{border:1px solid var(--intergalactic-chart-palette-order-9, #008ff8);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}" /*__inner_css_end__*/, "1np9z_gg_") /*__reshadow_css_end__*/, {
|
22
|
+
"__SPlot": "___SPlot_1np9z_gg_",
|
23
|
+
"_keyboardFocused": "__keyboardFocused_1np9z_gg_"
|
24
24
|
});
|
25
25
|
var PlotRoot = /*#__PURE__*/function (_Component) {
|
26
26
|
_inherits(PlotRoot, _Component);
|
@@ -22,25 +22,25 @@ import { CONSTANT, eventToPoint, getChartDefaultColorName, measureText } from '.
|
|
22
22
|
import Tooltip from './Tooltip';
|
23
23
|
import { PatternFill, PatternSymbol, getPatternSymbolSize } from './Pattern';
|
24
24
|
/*__reshadow-styles__:"./style/radar.shadow.css"*/
|
25
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
26
|
-
"__SAxis": "
|
27
|
-
"__SAxisLine": "
|
28
|
-
"__SAxisTick": "
|
29
|
-
"_active": "
|
30
|
-
"__SAxisLabel": "
|
31
|
-
"_xDirection": "
|
32
|
-
"--xDirection": "--
|
33
|
-
"_yDirection": "
|
34
|
-
"--yDirection": "--
|
35
|
-
"__SPolygon": "
|
36
|
-
"_color": "
|
37
|
-
"--color": "--
|
38
|
-
"_pattern": "
|
39
|
-
"--pattern": "--
|
40
|
-
"__SPolygonDot": "
|
41
|
-
"_transparent": "
|
42
|
-
"__SPolygonLine": "
|
43
|
-
"__SPieRect": "
|
25
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SAxisLine_d71gd_gg_,.___SAxisTick_d71gd_gg_,.___SAxis_d71gd_gg_{stroke:var(--intergalactic-chart-grid-line, #e0e1e9);stroke-width:1;fill:transparent}.___SAxisLine_d71gd_gg_,.___SAxisTick_d71gd_gg_{stroke-dasharray:2}.___SAxisLine_d71gd_gg_.__active_d71gd_gg_{stroke:var(--intergalactic-chart-grid-y-accent-hover-line, #a9abb6)}.___SAxisLabel_d71gd_gg_{text-anchor:middle;dominant-baseline:central;font-size:12px}.___SAxisLabel_d71gd_gg_.__xDirection_d71gd_gg_{text-anchor:var(--xDirection_d71gd)}.___SAxisLabel_d71gd_gg_.__yDirection_d71gd_gg_{dominant-baseline:var(--yDirection_d71gd)}.___SPolygonDot_d71gd_gg_,.___SPolygon_d71gd_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff)}.___SPolygon_d71gd_gg_{opacity:.2}.___SPolygon_d71gd_gg_.__color_d71gd_gg_{fill:var(--color_d71gd)}.___SPolygon_d71gd_gg_.__pattern_d71gd_gg_.__color_d71gd_gg_{fill:var(--pattern_d71gd);stroke:var(--color_d71gd);stroke-width:1px}.___SPolygonDot_d71gd_gg_{stroke-width:2px;stroke:var(--intergalactic-chart-grid-border, #ffffff);r:6px}.___SPolygonDot_d71gd_gg_.__transparent_d71gd_gg_{opacity:.3}.___SPolygonDot_d71gd_gg_.__color_d71gd_gg_{fill:var(--color_d71gd)}.___SPolygonLine_d71gd_gg_{stroke:var(--intergalactic-chart-palette-order-1, #2bb3ff);stroke-width:3;fill:transparent}.___SPolygonLine_d71gd_gg_.__transparent_d71gd_gg_{opacity:.3}.___SPolygonLine_d71gd_gg_.__color_d71gd_gg_{stroke:var(--color_d71gd)}.___SPieRect_d71gd_gg_{fill:var(--intergalactic-chart-grid-bar-chart-hover, rgba(196, 199, 207, 0.3))}" /*__inner_css_end__*/, "d71gd_gg_") /*__reshadow_css_end__*/, {
|
26
|
+
"__SAxis": "___SAxis_d71gd_gg_",
|
27
|
+
"__SAxisLine": "___SAxisLine_d71gd_gg_",
|
28
|
+
"__SAxisTick": "___SAxisTick_d71gd_gg_",
|
29
|
+
"_active": "__active_d71gd_gg_",
|
30
|
+
"__SAxisLabel": "___SAxisLabel_d71gd_gg_",
|
31
|
+
"_xDirection": "__xDirection_d71gd_gg_",
|
32
|
+
"--xDirection": "--xDirection_d71gd",
|
33
|
+
"_yDirection": "__yDirection_d71gd_gg_",
|
34
|
+
"--yDirection": "--yDirection_d71gd",
|
35
|
+
"__SPolygon": "___SPolygon_d71gd_gg_",
|
36
|
+
"_color": "__color_d71gd_gg_",
|
37
|
+
"--color": "--color_d71gd",
|
38
|
+
"_pattern": "__pattern_d71gd_gg_",
|
39
|
+
"--pattern": "--pattern_d71gd",
|
40
|
+
"__SPolygonDot": "___SPolygonDot_d71gd_gg_",
|
41
|
+
"_transparent": "__transparent_d71gd_gg_",
|
42
|
+
"__SPolygonLine": "___SPolygonLine_d71gd_gg_",
|
43
|
+
"__SPieRect": "___SPieRect_d71gd_gg_"
|
44
44
|
});
|
45
45
|
var clampAngle = function clampAngle(angle) {
|
46
46
|
angle = angle % (2 * Math.PI);
|
@@ -21,17 +21,17 @@ import createElement from './createElement';
|
|
21
21
|
import { getChartDefaultColorName, measureText } from './utils';
|
22
22
|
import { PatternSymbol, getPatternSymbolSize } from './Pattern';
|
23
23
|
/*__reshadow-styles__:"./style/radial-tree.shadow.css"*/
|
24
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
25
|
-
"__SRadian": "
|
26
|
-
"__SLine": "
|
27
|
-
"_color": "
|
28
|
-
"--color": "--
|
29
|
-
"_transparent": "
|
30
|
-
"__SCap": "
|
31
|
-
"_pattern": "
|
32
|
-
"__SIcon": "
|
33
|
-
"__SLabel": "
|
34
|
-
"__SLineCap": "
|
24
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SRadian_1fb4g_gg_{cursor:pointer;fill:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1fb4g_gg_{stroke:var(--intergalactic-text-large-info, #008ff8)}.___SLine_1fb4g_gg_.__color_1fb4g_gg_{stroke:var(--color_1fb4g)}.___SLine_1fb4g_gg_.__transparent_1fb4g_gg_{opacity:.3}.___SCap_1fb4g_gg_{transition:r .1s}.___SCap_1fb4g_gg_.__pattern_1fb4g_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:1px}.___SCap_1fb4g_gg_.__transparent_1fb4g_gg_,.___SIcon_1fb4g_gg_.__transparent_1fb4g_gg_,.___SLabel_1fb4g_gg_.__transparent_1fb4g_gg_{opacity:.3}.___SLabel_1fb4g_gg_{fill:var(--color_1fb4g)}@media (hover:hover){.___SRadian_1fb4g_gg_:hover .___SLabel_1fb4g_gg_{cursor:pointer;filter:brightness(.6)}}@media (prefers-reduced-motion){.___SLineCap_1fb4g_gg_{transition:none}}" /*__inner_css_end__*/, "1fb4g_gg_") /*__reshadow_css_end__*/, {
|
25
|
+
"__SRadian": "___SRadian_1fb4g_gg_",
|
26
|
+
"__SLine": "___SLine_1fb4g_gg_",
|
27
|
+
"_color": "__color_1fb4g_gg_",
|
28
|
+
"--color": "--color_1fb4g",
|
29
|
+
"_transparent": "__transparent_1fb4g_gg_",
|
30
|
+
"__SCap": "___SCap_1fb4g_gg_",
|
31
|
+
"_pattern": "__pattern_1fb4g_gg_",
|
32
|
+
"__SIcon": "___SIcon_1fb4g_gg_",
|
33
|
+
"__SLabel": "___SLabel_1fb4g_gg_",
|
34
|
+
"__SLineCap": "___SLineCap_1fb4g_gg_"
|
35
35
|
});
|
36
36
|
var baseAngle = -Math.PI / 2; // The top vertical line
|
37
37
|
var RadialTreeBase = /*#__PURE__*/function (_Component) {
|
@@ -11,15 +11,15 @@ import { Component, sstyled } from 'intergalactic/core';
|
|
11
11
|
import createElement from './createElement';
|
12
12
|
import { scaleOfBandwidth } from './utils';
|
13
13
|
/*__reshadow-styles__:"./style/reference-line.shadow.css"*/
|
14
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
15
|
-
"__SReferenceLine": "
|
16
|
-
"__STitle": "
|
17
|
-
"--transform-origin": "--transform-
|
18
|
-
"_position_top": "
|
19
|
-
"_position_bottom": "
|
20
|
-
"_position_right": "
|
21
|
-
"_position_left": "
|
22
|
-
"__SBackground": "
|
14
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SReferenceLine_1umhw_gg_{fill:none;stroke:var(--intergalactic-chart-grid-x-axis, #c4c7cf)}.___STitle_1umhw_gg_{font-size:var(--intergalactic-fs-100, 12px);fill:var(--intergalactic-chart-grid-text-label, #6c6e79);transform-origin:var(--transform-origin_1umhw)}.___STitle_1umhw_gg_._position_top_1umhw_gg_{text-anchor:middle}.___STitle_1umhw_gg_._position_bottom_1umhw_gg_{text-anchor:middle;dominant-baseline:hanging}.___STitle_1umhw_gg_._position_left_1umhw_gg_,.___STitle_1umhw_gg_._position_right_1umhw_gg_{transform:rotate(-90deg);text-anchor:middle;dominant-baseline:middle}.___SBackground_1umhw_gg_{fill:var(--intergalactic-chart-grid-period-bg, rgba(196, 199, 207, 0.2))}" /*__inner_css_end__*/, "1umhw_gg_") /*__reshadow_css_end__*/, {
|
15
|
+
"__SReferenceLine": "___SReferenceLine_1umhw_gg_",
|
16
|
+
"__STitle": "___STitle_1umhw_gg_",
|
17
|
+
"--transform-origin": "--transform-origin_1umhw",
|
18
|
+
"_position_top": "_position_top_1umhw_gg_",
|
19
|
+
"_position_bottom": "_position_bottom_1umhw_gg_",
|
20
|
+
"_position_right": "_position_right_1umhw_gg_",
|
21
|
+
"_position_left": "_position_left_1umhw_gg_",
|
22
|
+
"__SBackground": "___SBackground_1umhw_gg_"
|
23
23
|
});
|
24
24
|
var side2direction = {
|
25
25
|
left: 'vertical',
|
@@ -18,15 +18,15 @@ import { CONSTANT, getScatterPlotRadius } from './utils';
|
|
18
18
|
import Tooltip from './Tooltip';
|
19
19
|
import { PatternFill } from './Pattern';
|
20
20
|
/*__reshadow-styles__:"./style/scatterplot.shadow.css"*/
|
21
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
22
|
-
"__SScatterPlot": "
|
23
|
-
"_color": "
|
24
|
-
"--color": "--
|
25
|
-
"_pattern": "
|
26
|
-
"--pattern": "--
|
27
|
-
"_transparent": "
|
28
|
-
"__SValue": "
|
29
|
-
"--duration": "--
|
21
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SScatterPlot_1p1si_gg_{fill:var(--intergalactic-chart-palette-order-1, #2bb3ff);transition-property:cx,cy;transition-duration:var(--duration_1p1si);transition-timing-function:ease-in-out;opacity:.5}@media (hover:hover){.___SScatterPlot_1p1si_gg_:hover{opacity:.8}}.___SScatterPlot_1p1si_gg_.__color_1p1si_gg_{fill:var(--color_1p1si)}.___SScatterPlot_1p1si_gg_.__pattern_1p1si_gg_.__color_1p1si_gg_{fill:var(--pattern_1p1si);stroke:var(--color_1p1si);stroke-width:1px}.___SScatterPlot_1p1si_gg_.__transparent_1p1si_gg_{opacity:.3}.___SValue_1p1si_gg_{text-anchor:middle;font-size:var(--intergalactic-fs-50, 10px);stroke:var(--intergalactic-chart-palette-order-9, #008ff8)}.___SValue_1p1si_gg_.__color_1p1si_gg_{stroke:var(--color_1p1si)}.___SValue_1p1si_gg_.__transparent_1p1si_gg_{opacity:.3}" /*__inner_css_end__*/, "1p1si_gg_") /*__reshadow_css_end__*/, {
|
22
|
+
"__SScatterPlot": "___SScatterPlot_1p1si_gg_",
|
23
|
+
"_color": "__color_1p1si_gg_",
|
24
|
+
"--color": "--color_1p1si",
|
25
|
+
"_pattern": "__pattern_1p1si_gg_",
|
26
|
+
"--pattern": "--pattern_1p1si",
|
27
|
+
"_transparent": "__transparent_1p1si_gg_",
|
28
|
+
"__SValue": "___SValue_1p1si_gg_",
|
29
|
+
"--duration": "--duration_1p1si"
|
30
30
|
});
|
31
31
|
var ScatterPlotRoot = /*#__PURE__*/function (_Component) {
|
32
32
|
_inherits(ScatterPlotRoot, _Component);
|
@@ -21,15 +21,15 @@ import createElement from './createElement';
|
|
21
21
|
import { CONSTANT, getChartDefaultColorName } from './utils';
|
22
22
|
import { useColorResolver } from 'intergalactic/utils/lib/use/useColorResolver';
|
23
23
|
/*__reshadow-styles__:"./style/tooltip.shadow.css"*/
|
24
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
25
|
-
"__STooltip": "
|
26
|
-
"__STitle": "
|
27
|
-
"__SDotGroup": "
|
28
|
-
"__SDot": "
|
29
|
-
"__SDotCircle": "
|
30
|
-
"_color": "
|
31
|
-
"--color": "--
|
32
|
-
"__SFooter": "
|
24
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___STooltip_12ob0_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%);position:relative;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);border-radius:var(--intergalactic-popper-rounded, 6px);border:1px solid var(--intergalactic-border-secondary, #e0e1e9);box-sizing:border-box;box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));padding:var(--intergalactic-spacing-3x, 12px)}.___STitle_12ob0_gg_{color:var(--intergalactic-text-secondary, #6c6e79);margin-bottom:var(--intergalactic-spacing-2x, 8px)}.___SDotGroup_12ob0_gg_{display:flex;align-items:center}.___SDot_12ob0_gg_{margin-right:var(--intergalactic-spacing-2x, 8px)}.___SDotCircle_12ob0_gg_.__color_12ob0_gg_{background-color:var(--color_12ob0);width:12px;height:12px;border-radius:50%}.___SFooter_12ob0_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9);padding:var(--intergalactic-spacing-1x, 4px) var(--intergalactic-spacing-3x, 12px);border-radius:0 0 var(--intergalactic-rounded-medium, 6px) var(--intergalactic-rounded-medium, 6px);margin:var(--intergalactic-spacing-3x, 12px) calc(-1*var(--intergalactic-spacing-3x, 12px)) calc(-1*var(--intergalactic-spacing-3x, 12px))}" /*__inner_css_end__*/, "12ob0_gg_") /*__reshadow_css_end__*/, {
|
25
|
+
"__STooltip": "___STooltip_12ob0_gg_",
|
26
|
+
"__STitle": "___STitle_12ob0_gg_",
|
27
|
+
"__SDotGroup": "___SDotGroup_12ob0_gg_",
|
28
|
+
"__SDot": "___SDot_12ob0_gg_",
|
29
|
+
"__SDotCircle": "___SDotCircle_12ob0_gg_",
|
30
|
+
"_color": "__color_12ob0_gg_",
|
31
|
+
"--color": "--color_12ob0",
|
32
|
+
"__SFooter": "___SFooter_12ob0_gg_"
|
33
33
|
});
|
34
34
|
import { PatternSymbol } from './Pattern';
|
35
35
|
|
package/d3-chart/lib/es6/Venn.js
CHANGED
@@ -20,15 +20,15 @@ import Tooltip from './Tooltip';
|
|
20
20
|
import { PatternFill } from './Pattern';
|
21
21
|
import uniqueIDEnhancement from 'intergalactic/utils/lib/uniqueID';
|
22
22
|
/*__reshadow-styles__:"./style/venn.shadow.css"*/
|
23
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
24
|
-
"__SCircle": "
|
25
|
-
"_color": "
|
26
|
-
"--color": "--
|
27
|
-
"_transparent": "
|
28
|
-
"__SIntersection": "
|
29
|
-
"--duration": "--
|
30
|
-
"_pattern": "
|
31
|
-
"--pattern": "--
|
23
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SCircle_1quyc_gg_,.___SIntersection_1quyc_gg_{stroke:var(--intergalactic-chart-grid-border, #ffffff);stroke-width:2px}.___SCircle_1quyc_gg_{fill:var(--intergalactic-chart-palette-order-2, #59ddaa);fill-opacity:.5;transition-property:cx,cy;transition-duration:var(--duration_1quyc);transition-timing-function:ease-in-out}@media (hover:hover){.___SCircle_1quyc_gg_:hover{fill-opacity:.7}}.___SCircle_1quyc_gg_.__color_1quyc_gg_{fill:var(--color_1quyc)}.___SCircle_1quyc_gg_.__pattern_1quyc_gg_.__color_1quyc_gg_{fill:var(--pattern_1quyc);fill-opacity:.7;stroke:var(--color_1quyc);stroke-width:1px}@media (hover:hover){.___SCircle_1quyc_gg_.__pattern_1quyc_gg_.__color_1quyc_gg_:hover{fill-opacity:.85}}.___SCircle_1quyc_gg_.__transparent_1quyc_gg_{opacity:.3}.___SIntersection_1quyc_gg_{fill-opacity:0}@media (hover:hover){.___SIntersection_1quyc_gg_:hover{fill-opacity:.1}}.___SIntersection_1quyc_gg_.__transparent_1quyc_gg_{opacity:.3}" /*__inner_css_end__*/, "1quyc_gg_") /*__reshadow_css_end__*/, {
|
24
|
+
"__SCircle": "___SCircle_1quyc_gg_",
|
25
|
+
"_color": "__color_1quyc_gg_",
|
26
|
+
"--color": "--color_1quyc",
|
27
|
+
"_transparent": "__transparent_1quyc_gg_",
|
28
|
+
"__SIntersection": "___SIntersection_1quyc_gg_",
|
29
|
+
"--duration": "--duration_1quyc",
|
30
|
+
"_pattern": "__pattern_1quyc_gg_",
|
31
|
+
"--pattern": "--pattern_1quyc"
|
32
32
|
});
|
33
33
|
var VennRoot = /*#__PURE__*/function (_Component) {
|
34
34
|
_inherits(VennRoot, _Component);
|
@@ -10,8 +10,8 @@ import { normalizeLocale } from './locale';
|
|
10
10
|
import { localizedMessages } from './translations/module/__intergalactic-dynamic-locales';
|
11
11
|
import { Root, sstyled } from 'intergalactic/core';
|
12
12
|
/*__reshadow-styles__:"../style/plotA11yModule.shadow.css"*/
|
13
|
-
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
14
|
-
"__SPlotA11yModule": "
|
13
|
+
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yModule_1cmzo_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0}.___SPlotA11yModule_1cmzo_gg_:focus{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1}" /*__inner_css_end__*/, "1cmzo_gg_") /*__reshadow_css_end__*/, {
|
14
|
+
"__SPlotA11yModule": "___SPlotA11yModule_1cmzo_gg_"
|
15
15
|
});
|
16
16
|
import { Context as I18nContext, useI18n } from 'intergalactic/utils/lib/enhances/WithI18n';
|
17
17
|
import { Box } from 'intergalactic/flex-box';
|
@@ -13,8 +13,8 @@ import { getIntl } from './intl';
|
|
13
13
|
import { summarize } from './summarize';
|
14
14
|
import { Root, sstyled } from 'intergalactic/core';
|
15
15
|
/*__reshadow-styles__:"../style/plotA11yView.shadow.css"*/
|
16
|
-
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
17
|
-
"__SPlotA11yView": "
|
16
|
+
var styles = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SPlotA11yView_tg0cl_gg_{-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;opacity:0;background-color:var(--intergalactic-bg-primary-neutral, #ffffff);color:var(--intergalactic-text-primary, #191b23);border:3px solid var(--intergalactic-border-primary, #c4c7cf);font-size:var(--intergalactic-fs-50, 10px);padding:2px;width:200px;height:200px;max-width:80%;max-height:80%;overflow:auto}.___SPlotA11yView_tg0cl_gg_:focus,.___SPlotA11yView_tg0cl_gg_:focus-within{-webkit-user-select:all;-moz-user-select:all;user-select:all;pointer-events:all;opacity:1;z-index:var(--intergalactic-z-index-overlay, 500);position:relative;display:block}.___SPlotA11yView_tg0cl_gg_ a{cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline;margin-bottom:var(--intergalactic-spacing-2x, 8px);display:block}.___SPlotA11yView_tg0cl_gg_ table,.___SPlotA11yView_tg0cl_gg_ td,.___SPlotA11yView_tg0cl_gg_ th{border:1px solid var(--intergalactic-border-primary, #c4c7cf)}" /*__inner_css_end__*/, "tg0cl_gg_") /*__reshadow_css_end__*/, {
|
17
|
+
"__SPlotA11yView": "___SPlotA11yView_tg0cl_gg_"
|
18
18
|
});
|
19
19
|
import { Box } from 'intergalactic/flex-box';
|
20
20
|
import { useAsyncI18nMessages } from 'intergalactic/utils/lib/enhances/i18nEnhance';
|
@@ -10,10 +10,10 @@ import React from 'react';
|
|
10
10
|
import createComponent, { sstyled, Root } from 'intergalactic/core';
|
11
11
|
import { Flex } from 'intergalactic/flex-box';
|
12
12
|
/*__reshadow-styles__:"./legend-flex.shadow.css"*/
|
13
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
14
|
-
"__SLegendFlex": "
|
15
|
-
"_direction_row": "
|
16
|
-
"_direction_column": "
|
13
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendFlex_12wpo_gg_._direction_row_12wpo_gg_{align-items:center;flex-wrap:wrap;gap:8px 16px}.___SLegendFlex_12wpo_gg_._direction_column_12wpo_gg_{align-items:flex-start;flex-wrap:wrap;gap:8px}" /*__inner_css_end__*/, "12wpo_gg_") /*__reshadow_css_end__*/, {
|
14
|
+
"__SLegendFlex": "___SLegendFlex_12wpo_gg_",
|
15
|
+
"_direction_row": "_direction_row_12wpo_gg_",
|
16
|
+
"_direction_column": "_direction_column_12wpo_gg_"
|
17
17
|
});
|
18
18
|
import { LegendItemComponent } from '../LegendItem/LegendItem';
|
19
19
|
import Divider from 'intergalactic/divider';
|
@@ -19,23 +19,23 @@ import { Flex, Box } from 'intergalactic/flex-box';
|
|
19
19
|
import Checkbox from 'intergalactic/checkbox';
|
20
20
|
import { Text as TypographyText } from 'intergalactic/typography';
|
21
21
|
/*__reshadow-styles__:"./legend-item.shadow.css"*/
|
22
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
23
|
-
"__SLegendItem": "
|
24
|
-
"_disabled": "
|
25
|
-
"__SPointShape": "
|
26
|
-
"_color": "
|
27
|
-
"--color": "--
|
28
|
-
"_shape_Circle": "
|
29
|
-
"_size_l": "
|
30
|
-
"_size_m": "
|
31
|
-
"_shape_Line": "
|
32
|
-
"_shape_Square": "
|
33
|
-
"_shape_Pattern": "
|
34
|
-
"__SIcon": "
|
35
|
-
"__SLabel": "
|
36
|
-
"__SAdditionalLabel": "
|
37
|
-
"__SCount": "
|
38
|
-
"__SPatternSymbol": "
|
22
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendItem_1w0pc_gg_{min-width:0;align-items:flex-start}@media (hover:hover){.___SLegendItem_1w0pc_gg_:hover{cursor:pointer}.___SLegendItem_1w0pc_gg_.__disabled_1w0pc_gg_:hover{cursor:default}}.___SPointShape_1w0pc_gg_.__color_1w0pc_gg_{background-color:var(--color_1w0pc);margin-right:8px;flex-shrink:0}.___SPointShape_1w0pc_gg_._shape_Circle_1w0pc_gg_._size_l_1w0pc_gg_{width:16px;height:16px;border-radius:8px;margin-top:4px}.___SPointShape_1w0pc_gg_._shape_Circle_1w0pc_gg_._size_m_1w0pc_gg_{width:12px;height:12px;border-radius:6px;margin-top:4px}.___SPointShape_1w0pc_gg_._shape_Line_1w0pc_gg_._size_l_1w0pc_gg_{width:16px;height:4px;border-radius:3px;margin-top:9px}.___SPointShape_1w0pc_gg_._shape_Line_1w0pc_gg_._size_m_1w0pc_gg_{width:12px;height:4px;border-radius:3px;margin-top:8px}.___SPointShape_1w0pc_gg_._shape_Square_1w0pc_gg_._size_l_1w0pc_gg_{width:16px;height:16px;border-radius:2px;margin-top:4px}.___SPointShape_1w0pc_gg_._shape_Square_1w0pc_gg_._size_m_1w0pc_gg_{width:12px;height:12px;border-radius:2px;margin-top:4px}.___SPointShape_1w0pc_gg_._shape_Pattern_1w0pc_gg_{background-color:transparent;margin-right:4px}.___SIcon_1w0pc_gg_{line-height:0;margin-right:4px}.___SIcon_1w0pc_gg_._size_l_1w0pc_gg_{margin-top:4px}.___SIcon_1w0pc_gg_._size_m_1w0pc_gg_{margin-top:2px}.___SLabel_1w0pc_gg_{min-width:0}.___SAdditionalLabel_1w0pc_gg_._size_l_1w0pc_gg_,.___SCount_1w0pc_gg_._size_l_1w0pc_gg_,.___SLabel_1w0pc_gg_._size_l_1w0pc_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SAdditionalLabel_1w0pc_gg_._size_m_1w0pc_gg_,.___SCount_1w0pc_gg_._size_m_1w0pc_gg_,.___SLabel_1w0pc_gg_._size_m_1w0pc_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SAdditionalLabel_1w0pc_gg_,.___SCount_1w0pc_gg_{margin-left:4px}.___SAdditionalLabel_1w0pc_gg_{white-space:nowrap;display:flex;align-items:flex-start}.___SAdditionalLabel_1w0pc_gg_::before{content:\"\";display:inline-block;background-color:var(--intergalactic-text-secondary, #6c6e79);height:4px;width:4px;border-radius:2px;margin-right:4px}.___SAdditionalLabel_1w0pc_gg_._size_l_1w0pc_gg_::before{margin-top:10px}.___SAdditionalLabel_1w0pc_gg_._size_m_1w0pc_gg_::before{margin-top:8px}.___SPatternSymbol_1w0pc_gg_{transform:scale(.8)}" /*__inner_css_end__*/, "1w0pc_gg_") /*__reshadow_css_end__*/, {
|
23
|
+
"__SLegendItem": "___SLegendItem_1w0pc_gg_",
|
24
|
+
"_disabled": "__disabled_1w0pc_gg_",
|
25
|
+
"__SPointShape": "___SPointShape_1w0pc_gg_",
|
26
|
+
"_color": "__color_1w0pc_gg_",
|
27
|
+
"--color": "--color_1w0pc",
|
28
|
+
"_shape_Circle": "_shape_Circle_1w0pc_gg_",
|
29
|
+
"_size_l": "_size_l_1w0pc_gg_",
|
30
|
+
"_size_m": "_size_m_1w0pc_gg_",
|
31
|
+
"_shape_Line": "_shape_Line_1w0pc_gg_",
|
32
|
+
"_shape_Square": "_shape_Square_1w0pc_gg_",
|
33
|
+
"_shape_Pattern": "_shape_Pattern_1w0pc_gg_",
|
34
|
+
"__SIcon": "___SIcon_1w0pc_gg_",
|
35
|
+
"__SLabel": "___SLabel_1w0pc_gg_",
|
36
|
+
"__SAdditionalLabel": "___SAdditionalLabel_1w0pc_gg_",
|
37
|
+
"__SCount": "___SCount_1w0pc_gg_",
|
38
|
+
"__SPatternSymbol": "___SPatternSymbol_1w0pc_gg_"
|
39
39
|
});
|
40
40
|
import { StaticShapes } from './LegendItem.type';
|
41
41
|
import resolveColorEnhance from 'intergalactic/utils/lib/enhances/resolveColorEnhance';
|
@@ -11,12 +11,12 @@ import React from 'react';
|
|
11
11
|
import createComponent, { sstyled, Root } from 'intergalactic/core';
|
12
12
|
import { Box } from 'intergalactic/flex-box';
|
13
13
|
/*__reshadow-styles__:"./legend-table.shadow.css"*/
|
14
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
15
|
-
"__SLegendTable": "
|
16
|
-
"_columns-count": "__columns-
|
17
|
-
"__SColumnItem": "
|
18
|
-
"_size_l": "
|
19
|
-
"_size_m": "
|
14
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLegendTable_yxgux_gg_.__columns-count_yxgux_gg_{font-feature-settings:\"tnum\";font-variant-numeric:tabular-nums;display:grid;grid-template-columns:auto .2fr;align-items:center;height:-moz-fit-content;height:fit-content;grid-column-gap:16px;grid-row-gap:8px}.___SColumnItem_yxgux_gg_._size_l_yxgux_gg_{font-size:var(--intergalactic-fs-300, 16px);text-align:right}.___SColumnItem_yxgux_gg_._size_m_yxgux_gg_{font-size:var(--intergalactic-fs-200, 14px);text-align:right}" /*__inner_css_end__*/, "yxgux_gg_") /*__reshadow_css_end__*/, {
|
15
|
+
"__SLegendTable": "___SLegendTable_yxgux_gg_",
|
16
|
+
"_columns-count": "__columns-count_yxgux_gg_",
|
17
|
+
"__SColumnItem": "___SColumnItem_yxgux_gg_",
|
18
|
+
"_size_l": "_size_l_yxgux_gg_",
|
19
|
+
"_size_m": "_size_m_yxgux_gg_"
|
20
20
|
});
|
21
21
|
import { LegendItemComponent } from '../LegendItem/LegendItem';
|
22
22
|
import { BaseLegend } from '../BaseLegend';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IAreaProps extends AreaProps, UnknownProperties {}\nexport type AreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis*/\n y?: string;\n /** Line color */\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IAreaDotsProps extends AreaDotsProps, UnknownProperties {}\nexport type AreaDotsProps = Context & {\n /** Show
|
1
|
+
{"version":3,"file":"Area.d.js","names":[],"sources":["../../../src/types/Area.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { CurveFactory } from 'd3-shape';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface IAreaProps extends AreaProps, UnknownProperties {}\nexport type AreaProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis*/\n y?: string;\n /** Line color */\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface IAreaDotsProps extends AreaDotsProps, UnknownProperties {}\nexport type AreaDotsProps = Context & {\n /** Show dots */\n display?: boolean | ((index: number, active: boolean, single: boolean) => boolean);\n /** Hide property */\n hide?: boolean;\n /** Enables element transparency */\n transparent?: boolean;\n};\n\n/** @deprecated */\nexport interface IAreaDotsContext extends AreaDotsContext, UnknownProperties {}\nexport type AreaDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface IAreaNullProps extends AreaNullProps, UnknownProperties {}\nexport type AreaNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\ndeclare const Area: IntergalacticD3Component<'path', AreaProps, Context> & {\n Dots: IntergalacticD3Component<'circle', AreaDotsProps, AreaDotsContext>;\n Null: IntergalacticD3Component<'path', AreaNullProps, Context>;\n Line: IntergalacticD3Component<'path', Context, Context>;\n};\n\nexport default Area;\n"],"mappings":""}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Line.d.js","names":[],"sources":["../../../src/types/Line.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { curveCardinal, CurveFactory } from 'd3-shape';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface ILineProps extends LineProps, UnknownProperties {}\nexport type LineProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface ILineDotsProps extends LineDotsProps, UnknownProperties {}\nexport type LineDotsProps = Context &\n Omit<FadeInOutProps, 'display'> & {\n /** Show
|
1
|
+
{"version":3,"file":"Line.d.js","names":[],"sources":["../../../src/types/Line.d.ts"],"sourcesContent":["import { UnknownProperties } from '@semcore/core';\nimport { Context } from './context';\nimport { curveCardinal, CurveFactory } from 'd3-shape';\nimport { FadeInOutProps } from '@semcore/animation';\nimport { IntergalacticD3Component } from './Plot';\nimport { PatternsConfig } from './Pattern';\n\n/** @deprecated */\nexport interface ILineProps extends LineProps, UnknownProperties {}\nexport type LineProps = Context & {\n /** Field name from `data` array item for the XAxis */\n x?: string;\n /** Field name from `data` array item for the YAxis */\n y?: string;\n /** Line color */\n color?: string;\n /** Element hide property */\n hide?: boolean;\n /** Curve method */\n curve?: CurveFactory;\n /** Animation duration in ms\n * @default 500\n */\n duration?: number;\n /** Enables element transparency */\n transparent?: boolean;\n /** Enables charts patterns that enhances charts accessability */\n patterns?: PatternsConfig;\n};\n\n/** @deprecated */\nexport interface ILineDotsProps extends LineDotsProps, UnknownProperties {}\nexport type LineDotsProps = Context &\n Omit<FadeInOutProps, 'display'> & {\n /** Show dots */\n display?: boolean | ((index: number, active: boolean, single: boolean) => boolean);\n /** Hide property */\n hide?: boolean;\n /** Index active of element */\n activeIndex?: number;\n /** Dot radius, radius of active dot is 4/3 times larger\n * @default 6\n */\n radius?: number;\n };\n\n/** @deprecated */\nexport interface ILineDotsContext extends LineDotsContext, UnknownProperties {}\nexport type LineDotsContext = {\n /** Value element of data */\n /** @deprecated */\n value?: any;\n /** Index element of data */\n index?: number;\n};\n\n/** @deprecated */\nexport interface ILineNullProps extends LineNullProps, UnknownProperties {}\nexport type LineNullProps = Context & {\n /** Hide property */\n hide?: boolean;\n};\n\nexport type LineAreaProps = Omit<LineProps, 'transparent'> & {\n /**\n * Field name from `data` (or from `area`, if passed) array for y0 point by the YAxis for the Area\n */\n y0: string;\n /**\n * Field name from `data` (or from `area`, if passed) array for y1 point by the YAxis for the Area\n */\n y1: string;\n\n /**\n * Optional data for render area\n */\n area?: Array<{ [key: string]: number }>;\n};\n\ndeclare const Line: IntergalacticD3Component<'line', LineProps, Context> & {\n Dots: IntergalacticD3Component<'circle', LineDotsProps, LineDotsContext>;\n Null: IntergalacticD3Component<'path', LineNullProps>;\n Area: IntergalacticD3Component<'path', LineAreaProps>;\n};\n\nexport default Line;\n"],"mappings":""}
|
@@ -30,8 +30,8 @@ export type AreaProps = Context & {
|
|
30
30
|
/** @deprecated */
|
31
31
|
export interface IAreaDotsProps extends AreaDotsProps, UnknownProperties {}
|
32
32
|
export type AreaDotsProps = Context & {
|
33
|
-
/** Show
|
34
|
-
display?: boolean;
|
33
|
+
/** Show dots */
|
34
|
+
display?: boolean | ((index: number, active: boolean, single: boolean) => boolean);
|
35
35
|
/** Hide property */
|
36
36
|
hide?: boolean;
|
37
37
|
/** Enables element transparency */
|
@@ -32,8 +32,8 @@ export type LineProps = Context & {
|
|
32
32
|
export interface ILineDotsProps extends LineDotsProps, UnknownProperties {}
|
33
33
|
export type LineDotsProps = Context &
|
34
34
|
Omit<FadeInOutProps, 'display'> & {
|
35
|
-
/** Show
|
36
|
-
display?: boolean;
|
35
|
+
/** Show dots */
|
36
|
+
display?: boolean | ((index: number, active: boolean, single: boolean) => boolean);
|
37
37
|
/** Hide property */
|
38
38
|
hide?: boolean;
|
39
39
|
/** Index active of element */
|
@@ -381,6 +381,11 @@ var RootDefinitionTable = /*#__PURE__*/function (_Component) {
|
|
381
381
|
};
|
382
382
|
return parseData(data, {});
|
383
383
|
}
|
384
|
+
}, {
|
385
|
+
key: "componentDidMount",
|
386
|
+
value: function componentDidMount() {
|
387
|
+
this.setVarStyle(this.columns);
|
388
|
+
}
|
384
389
|
}, {
|
385
390
|
key: "componentDidUpdate",
|
386
391
|
value: function componentDidUpdate() {
|