@smallwebco/tinypivot-react 1.0.25 → 1.0.26
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 +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1194,7 +1194,6 @@ function PivotConfig({
|
|
|
1194
1194
|
onRemoveCalculatedField,
|
|
1195
1195
|
onUpdateCalculatedField
|
|
1196
1196
|
}) {
|
|
1197
|
-
const { showWatermark } = useLicense();
|
|
1198
1197
|
const [fieldSearch, setFieldSearch] = useState7("");
|
|
1199
1198
|
const [showCalcModal, setShowCalcModal] = useState7(false);
|
|
1200
1199
|
const [editingCalcField, setEditingCalcField] = useState7(null);
|
|
@@ -1533,7 +1532,6 @@ function PivotConfig({
|
|
|
1533
1532
|
/* @__PURE__ */ jsx3("span", { children: "+ Calc" })
|
|
1534
1533
|
] })
|
|
1535
1534
|
] }),
|
|
1536
|
-
showWatermark && /* @__PURE__ */ jsx3("div", { className: "vpg-watermark", children: /* @__PURE__ */ jsx3("a", { href: "https://tiny-pivot.com", target: "_blank", rel: "noopener noreferrer", children: "TinyPivot" }) }),
|
|
1537
1535
|
/* @__PURE__ */ jsx3(
|
|
1538
1536
|
CalculatedFieldModal,
|
|
1539
1537
|
{
|
|
@@ -2197,6 +2195,7 @@ function DataGrid({
|
|
|
2197
2195
|
valueFields: pivotValueFields,
|
|
2198
2196
|
showRowTotals: pivotShowRowTotals,
|
|
2199
2197
|
showColumnTotals: pivotShowColumnTotals,
|
|
2198
|
+
calculatedFields: pivotCalculatedFields,
|
|
2200
2199
|
availableFields: pivotAvailableFields,
|
|
2201
2200
|
isConfigured: pivotIsConfigured,
|
|
2202
2201
|
pivotResult,
|
|
@@ -2212,7 +2211,9 @@ function DataGrid({
|
|
|
2212
2211
|
setShowRowTotals: setPivotShowRowTotals,
|
|
2213
2212
|
setShowColumnTotals: setPivotShowColumnTotals,
|
|
2214
2213
|
setRowFields,
|
|
2215
|
-
setColumnFields
|
|
2214
|
+
setColumnFields,
|
|
2215
|
+
addCalculatedField,
|
|
2216
|
+
removeCalculatedField
|
|
2216
2217
|
} = usePivotTable(filteredDataForPivot);
|
|
2217
2218
|
const activeFilterInfo = useMemo9(() => {
|
|
2218
2219
|
if (activeFilters.length === 0) return null;
|
|
@@ -2993,6 +2994,7 @@ function DataGrid({
|
|
|
2993
2994
|
valueFields: pivotValueFields,
|
|
2994
2995
|
showRowTotals: pivotShowRowTotals,
|
|
2995
2996
|
showColumnTotals: pivotShowColumnTotals,
|
|
2997
|
+
calculatedFields: pivotCalculatedFields,
|
|
2996
2998
|
onShowRowTotalsChange: setPivotShowRowTotals,
|
|
2997
2999
|
onShowColumnTotalsChange: setPivotShowColumnTotals,
|
|
2998
3000
|
onClearConfig: clearPivotConfig,
|
|
@@ -3005,7 +3007,10 @@ function DataGrid({
|
|
|
3005
3007
|
onAddColumnField: addColumnField,
|
|
3006
3008
|
onRemoveColumnField: removeColumnField,
|
|
3007
3009
|
onAddValueField: addValueField,
|
|
3008
|
-
onRemoveValueField: removeValueField
|
|
3010
|
+
onRemoveValueField: removeValueField,
|
|
3011
|
+
onAddCalculatedField: addCalculatedField,
|
|
3012
|
+
onRemoveCalculatedField: removeCalculatedField,
|
|
3013
|
+
onUpdateCalculatedField: addCalculatedField
|
|
3009
3014
|
}
|
|
3010
3015
|
) }),
|
|
3011
3016
|
/* @__PURE__ */ jsx5("div", { className: `vpg-pivot-main ${!showPivotConfig ? "vpg-full-width" : ""}`, children: /* @__PURE__ */ jsx5(
|