@canvas-components/react-pivot-table 0.2.2 → 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 CHANGED
@@ -370,7 +370,7 @@ function PivotFieldPanel(props) {
370
370
  }
371
371
  )
372
372
  ] }),
373
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-pivot-field-panel__field-list", children: [
373
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-pivot-field-panel__field-list canvas-react-scrollbar", children: [
374
374
  visibleFields.map((field) => {
375
375
  const fieldKey = pivotTable.resolvePivotDimensionKey(field);
376
376
  const area = pivotTable.findPivotFieldArea(props.layout, fieldKey);
@@ -497,7 +497,7 @@ function FieldArea(props) {
497
497
  /* @__PURE__ */ jsxRuntime.jsxs(
498
498
  "div",
499
499
  {
500
- className: "react-pivot-field-panel__area",
500
+ className: "react-pivot-field-panel__area canvas-react-scrollbar",
501
501
  "data-dragging": props.dragging || void 0,
502
502
  onDragOver: (event) => event.preventDefault(),
503
503
  onDragEnter: props.onDragEnter,
@@ -1177,19 +1177,26 @@ function SettingsIcon() {
1177
1177
  // src/features/chart/pivot-chart-panel.css
1178
1178
  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');
1179
1179
  function PivotChartPanel(props) {
1180
- return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "react-pivot-chart-panel", "aria-label": "\u900F\u89C6\u56FE\u8868", children: props.charts.map((chart, index) => /* @__PURE__ */ jsxRuntime.jsx(
1181
- PivotChartCard,
1180
+ return /* @__PURE__ */ jsxRuntime.jsx(
1181
+ "section",
1182
1182
  {
1183
- chart,
1184
- index,
1185
- model: props.model,
1186
- rows: props.rows,
1187
- columns: props.columns,
1188
- indicators: props.indicators,
1189
- onRemove: props.onRemove
1190
- },
1191
- chart.id
1192
- )) });
1183
+ className: "react-pivot-chart-panel canvas-react-scrollbar",
1184
+ "aria-label": "\u900F\u89C6\u56FE\u8868",
1185
+ children: props.charts.map((chart, index) => /* @__PURE__ */ jsxRuntime.jsx(
1186
+ PivotChartCard,
1187
+ {
1188
+ chart,
1189
+ index,
1190
+ model: props.model,
1191
+ rows: props.rows,
1192
+ columns: props.columns,
1193
+ indicators: props.indicators,
1194
+ onRemove: props.onRemove
1195
+ },
1196
+ chart.id
1197
+ ))
1198
+ }
1199
+ );
1193
1200
  }
1194
1201
  function PivotChartCard(props) {
1195
1202
  const option = react.useMemo(