@canvas-components/react-pivot-table 0.2.1 → 0.2.3
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/index.cjs +21 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +21 -14
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -368,7 +368,7 @@ function PivotFieldPanel(props) {
|
|
|
368
368
|
}
|
|
369
369
|
)
|
|
370
370
|
] }),
|
|
371
|
-
/* @__PURE__ */ jsxs("div", { className: "react-pivot-field-panel__field-list", children: [
|
|
371
|
+
/* @__PURE__ */ jsxs("div", { className: "react-pivot-field-panel__field-list canvas-react-scrollbar", children: [
|
|
372
372
|
visibleFields.map((field) => {
|
|
373
373
|
const fieldKey = resolvePivotDimensionKey(field);
|
|
374
374
|
const area = findPivotFieldArea(props.layout, fieldKey);
|
|
@@ -495,7 +495,7 @@ function FieldArea(props) {
|
|
|
495
495
|
/* @__PURE__ */ jsxs(
|
|
496
496
|
"div",
|
|
497
497
|
{
|
|
498
|
-
className: "react-pivot-field-panel__area",
|
|
498
|
+
className: "react-pivot-field-panel__area canvas-react-scrollbar",
|
|
499
499
|
"data-dragging": props.dragging || void 0,
|
|
500
500
|
onDragOver: (event) => event.preventDefault(),
|
|
501
501
|
onDragEnter: props.onDragEnter,
|
|
@@ -1175,19 +1175,26 @@ function SettingsIcon() {
|
|
|
1175
1175
|
// src/features/chart/pivot-chart-panel.css
|
|
1176
1176
|
styleInject('.react-pivot-chart-panel {\n display: flex;\n width: 100%;\n min-width: 0;\n height: 100%;\n min-height: 0;\n flex-direction: column;\n gap: 8px;\n padding: 0;\n overflow: auto;\n background: #fff;\n box-sizing: border-box;\n}\n.react-pivot-chart-card {\n display: flex;\n min-width: 0;\n min-height: 240px;\n flex: 0 0 260px;\n flex-direction: column;\n overflow: hidden;\n border-radius: 0;\n background: #fff;\n box-sizing: border-box;\n}\n.react-pivot-chart-card:only-child {\n min-height: 240px;\n flex: 1 1 auto;\n}\n.react-pivot-chart-card__header {\n display: flex;\n height: 42px;\n flex: 0 0 42px;\n align-items: center;\n justify-content: space-between;\n padding: 0 10px 0 14px;\n border-bottom: 1px solid #edf0f2;\n color: #1f2329;\n font-size: 13px;\n box-sizing: border-box;\n}\n.react-pivot-chart-card__remove {\n display: inline-flex;\n width: 24px;\n height: 24px;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: 0;\n background: transparent;\n color: #646a73;\n cursor: pointer;\n font: 18px/24px "Segoe UI", sans-serif;\n}\n.react-pivot-chart-card__remove:hover {\n background: #f2f3f5;\n color: #d14343;\n}\n.react-pivot-chart-card__canvas {\n min-width: 0;\n min-height: 0;\n flex: 1 1 auto;\n}\n.react-pivot-chart-card__empty {\n display: grid;\n min-height: 0;\n flex: 1 1 auto;\n place-items: center;\n color: #8f959e;\n font-size: 12px;\n}\n');
|
|
1177
1177
|
function PivotChartPanel(props) {
|
|
1178
|
-
return /* @__PURE__ */ jsx(
|
|
1179
|
-
|
|
1178
|
+
return /* @__PURE__ */ jsx(
|
|
1179
|
+
"section",
|
|
1180
1180
|
{
|
|
1181
|
-
chart,
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1181
|
+
className: "react-pivot-chart-panel canvas-react-scrollbar",
|
|
1182
|
+
"aria-label": "\u900F\u89C6\u56FE\u8868",
|
|
1183
|
+
children: props.charts.map((chart, index) => /* @__PURE__ */ jsx(
|
|
1184
|
+
PivotChartCard,
|
|
1185
|
+
{
|
|
1186
|
+
chart,
|
|
1187
|
+
index,
|
|
1188
|
+
model: props.model,
|
|
1189
|
+
rows: props.rows,
|
|
1190
|
+
columns: props.columns,
|
|
1191
|
+
indicators: props.indicators,
|
|
1192
|
+
onRemove: props.onRemove
|
|
1193
|
+
},
|
|
1194
|
+
chart.id
|
|
1195
|
+
))
|
|
1196
|
+
}
|
|
1197
|
+
);
|
|
1191
1198
|
}
|
|
1192
1199
|
function PivotChartCard(props) {
|
|
1193
1200
|
const option = useMemo(
|