dp-widgets-framework 1.4.1 → 1.4.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.esm.js CHANGED
@@ -16603,7 +16603,6 @@ var plugin$1 = {
16603
16603
  Chart$1.register(CategoryScale, LinearScale, PointElement, LineElement, plugin_title, plugin_tooltip, plugin_legend);
16604
16604
  function SeriesLineChart({ orientation, title, data, options, className, units, content, x_axis_title, y_axis_title }) {
16605
16605
  var _a, _b;
16606
- console.log('x_axis_title==>', x_axis_title);
16607
16606
  const formatValue = (value) => {
16608
16607
  const numValue = typeof value === 'string' ? parseFloat(value) : value;
16609
16608
  if (!isNaN(numValue)) {
@@ -17651,6 +17650,8 @@ function LineChart({ title, data, options, className, units, content }) {
17651
17650
  function DataGrid({ title, data, className }) {
17652
17651
  var _a;
17653
17652
  const { columns, rows, units, grouped = false, grouping } = data;
17653
+ console.log('title==>', title);
17654
+ console.log('grouping==>', grouping);
17654
17655
  const [expandedGroups, setExpandedGroups] = useState(new Set(((_a = grouping === null || grouping === void 0 ? void 0 : grouping.sections) === null || _a === void 0 ? void 0 : _a.filter(s => s.expanded).map(s => s.group_value)) || []));
17655
17656
  const toggleGroup = (groupValue) => {
17656
17657
  const newExpanded = new Set(expandedGroups);
@@ -39377,7 +39378,6 @@ function CopilotKitPieChart({ widget, showHeader, styles, onResetReady, widgetBa
39377
39378
  const isFirstLoad = (_a = widget.config) === null || _a === void 0 ? void 0 : _a.isFirstLoad;
39378
39379
  const content = (_b = widget.config) === null || _b === void 0 ? void 0 : _b.content;
39379
39380
  const widget_data = (_c = widget.widget_data) === null || _c === void 0 ? void 0 : _c.pie_chart_data;
39380
- console.log('widget_data===>', widget_data);
39381
39381
  const { threadId, setThreadId } = useCopilotContext();
39382
39382
  const timeoutRef = useRef(null);
39383
39383
  const [apiCallCount, setApiCallCount] = useState(0);
@@ -39689,7 +39689,6 @@ function CopilotKitSeriesBarChart$1({ widget, showHeader, styles, onResetReady,
39689
39689
  const isFirstLoad = (_b = widget.config) === null || _b === void 0 ? void 0 : _b.isFirstLoad;
39690
39690
  const content = (_c = widget.config) === null || _c === void 0 ? void 0 : _c.content;
39691
39691
  const widget_data = (_d = widget.widget_data) === null || _d === void 0 ? void 0 : _d.series_bar_chart_data;
39692
- console.log('widget_data===>', widget_data);
39693
39692
  const { threadId, setThreadId } = useCopilotContext();
39694
39693
  const timeoutRef = useRef(null);
39695
39694
  const [apiCallCount, setApiCallCount] = useState(0);
@@ -40001,7 +40000,6 @@ function CopilotKitSeriesBarChart({ widget, showHeader, styles, onResetReady, wi
40001
40000
  const isFirstLoad = (_b = widget.config) === null || _b === void 0 ? void 0 : _b.isFirstLoad;
40002
40001
  const content = (_c = widget.config) === null || _c === void 0 ? void 0 : _c.content;
40003
40002
  const widget_data = (_d = widget.widget_data) === null || _d === void 0 ? void 0 : _d.series_bar_chart_data;
40004
- console.log('widget_data===>', widget_data);
40005
40003
  const { threadId, setThreadId } = useCopilotContext();
40006
40004
  const timeoutRef = useRef(null);
40007
40005
  const [apiCallCount, setApiCallCount] = useState(0);
@@ -40161,7 +40159,8 @@ const createInitialChartState = (datasetId, dataGridState) => {
40161
40159
  total_rows: (dataGridState === null || dataGridState === void 0 ? void 0 : dataGridState.metadata.total_rows) || 0,
40162
40160
  total_columns: (dataGridState === null || dataGridState === void 0 ? void 0 : dataGridState.metadata.total_columns) || 0,
40163
40161
  numeric_columns: (dataGridState === null || dataGridState === void 0 ? void 0 : dataGridState.metadata.numeric_columns) || []
40164
- }
40162
+ },
40163
+ grouping: (dataGridState === null || dataGridState === void 0 ? void 0 : dataGridState.grouping) || undefined
40165
40164
  },
40166
40165
  dataset_id: datasetId || "home_generation_dataset"
40167
40166
  };
@@ -40295,7 +40294,6 @@ function CopilotKitDataGrid({ widget, showHeader, styles, onResetReady, widgetBa
40295
40294
  const isFirstLoad = (_a = widget.config) === null || _a === void 0 ? void 0 : _a.isFirstLoad;
40296
40295
  const content = (_b = widget.config) === null || _b === void 0 ? void 0 : _b.content;
40297
40296
  const widget_data = (_c = widget.widget_data) === null || _c === void 0 ? void 0 : _c.matrix_grid_data;
40298
- console.log('widget_data===>', widget_data);
40299
40297
  const { threadId, setThreadId } = useCopilotContext();
40300
40298
  const timeoutRef = useRef(null);
40301
40299
  const [apiCallCount, setApiCallCount] = useState(0);
package/dist/index.js CHANGED
@@ -16630,7 +16630,6 @@ var plugin$1 = {
16630
16630
  Chart$1.register(CategoryScale, LinearScale, PointElement, LineElement, plugin_title, plugin_tooltip, plugin_legend);
16631
16631
  function SeriesLineChart({ orientation, title, data, options, className, units, content, x_axis_title, y_axis_title }) {
16632
16632
  var _a, _b;
16633
- console.log('x_axis_title==>', x_axis_title);
16634
16633
  const formatValue = (value) => {
16635
16634
  const numValue = typeof value === 'string' ? parseFloat(value) : value;
16636
16635
  if (!isNaN(numValue)) {
@@ -17678,6 +17677,8 @@ function LineChart({ title, data, options, className, units, content }) {
17678
17677
  function DataGrid({ title, data, className }) {
17679
17678
  var _a;
17680
17679
  const { columns, rows, units, grouped = false, grouping } = data;
17680
+ console.log('title==>', title);
17681
+ console.log('grouping==>', grouping);
17681
17682
  const [expandedGroups, setExpandedGroups] = React.useState(new Set(((_a = grouping === null || grouping === void 0 ? void 0 : grouping.sections) === null || _a === void 0 ? void 0 : _a.filter(s => s.expanded).map(s => s.group_value)) || []));
17682
17683
  const toggleGroup = (groupValue) => {
17683
17684
  const newExpanded = new Set(expandedGroups);
@@ -39404,7 +39405,6 @@ function CopilotKitPieChart({ widget, showHeader, styles, onResetReady, widgetBa
39404
39405
  const isFirstLoad = (_a = widget.config) === null || _a === void 0 ? void 0 : _a.isFirstLoad;
39405
39406
  const content = (_b = widget.config) === null || _b === void 0 ? void 0 : _b.content;
39406
39407
  const widget_data = (_c = widget.widget_data) === null || _c === void 0 ? void 0 : _c.pie_chart_data;
39407
- console.log('widget_data===>', widget_data);
39408
39408
  const { threadId, setThreadId } = reactCore.useCopilotContext();
39409
39409
  const timeoutRef = React.useRef(null);
39410
39410
  const [apiCallCount, setApiCallCount] = React.useState(0);
@@ -39716,7 +39716,6 @@ function CopilotKitSeriesBarChart$1({ widget, showHeader, styles, onResetReady,
39716
39716
  const isFirstLoad = (_b = widget.config) === null || _b === void 0 ? void 0 : _b.isFirstLoad;
39717
39717
  const content = (_c = widget.config) === null || _c === void 0 ? void 0 : _c.content;
39718
39718
  const widget_data = (_d = widget.widget_data) === null || _d === void 0 ? void 0 : _d.series_bar_chart_data;
39719
- console.log('widget_data===>', widget_data);
39720
39719
  const { threadId, setThreadId } = reactCore.useCopilotContext();
39721
39720
  const timeoutRef = React.useRef(null);
39722
39721
  const [apiCallCount, setApiCallCount] = React.useState(0);
@@ -40028,7 +40027,6 @@ function CopilotKitSeriesBarChart({ widget, showHeader, styles, onResetReady, wi
40028
40027
  const isFirstLoad = (_b = widget.config) === null || _b === void 0 ? void 0 : _b.isFirstLoad;
40029
40028
  const content = (_c = widget.config) === null || _c === void 0 ? void 0 : _c.content;
40030
40029
  const widget_data = (_d = widget.widget_data) === null || _d === void 0 ? void 0 : _d.series_bar_chart_data;
40031
- console.log('widget_data===>', widget_data);
40032
40030
  const { threadId, setThreadId } = reactCore.useCopilotContext();
40033
40031
  const timeoutRef = React.useRef(null);
40034
40032
  const [apiCallCount, setApiCallCount] = React.useState(0);
@@ -40188,7 +40186,8 @@ const createInitialChartState = (datasetId, dataGridState) => {
40188
40186
  total_rows: (dataGridState === null || dataGridState === void 0 ? void 0 : dataGridState.metadata.total_rows) || 0,
40189
40187
  total_columns: (dataGridState === null || dataGridState === void 0 ? void 0 : dataGridState.metadata.total_columns) || 0,
40190
40188
  numeric_columns: (dataGridState === null || dataGridState === void 0 ? void 0 : dataGridState.metadata.numeric_columns) || []
40191
- }
40189
+ },
40190
+ grouping: (dataGridState === null || dataGridState === void 0 ? void 0 : dataGridState.grouping) || undefined
40192
40191
  },
40193
40192
  dataset_id: datasetId || "home_generation_dataset"
40194
40193
  };
@@ -40322,7 +40321,6 @@ function CopilotKitDataGrid({ widget, showHeader, styles, onResetReady, widgetBa
40322
40321
  const isFirstLoad = (_a = widget.config) === null || _a === void 0 ? void 0 : _a.isFirstLoad;
40323
40322
  const content = (_b = widget.config) === null || _b === void 0 ? void 0 : _b.content;
40324
40323
  const widget_data = (_c = widget.widget_data) === null || _c === void 0 ? void 0 : _c.matrix_grid_data;
40325
- console.log('widget_data===>', widget_data);
40326
40324
  const { threadId, setThreadId } = reactCore.useCopilotContext();
40327
40325
  const timeoutRef = React.useRef(null);
40328
40326
  const [apiCallCount, setApiCallCount] = React.useState(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dp-widgets-framework",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org"