@plasmicpkgs/plasmic-rich-components 1.0.148 → 1.0.150
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.
|
@@ -6,7 +6,7 @@ import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
|
6
6
|
import React, { useState, useEffect, useRef, useMemo } from 'react';
|
|
7
7
|
import { Result, Checkbox, Switch, Empty, Descriptions, theme, ConfigProvider, Dropdown, Button, Input, List, Tag, Card, Calendar, Badge } from 'antd';
|
|
8
8
|
import 'lodash/get';
|
|
9
|
-
import {
|
|
9
|
+
import { useNormalizedData, deriveFieldConfigs } from '@plasmicapp/data-sources';
|
|
10
10
|
import { tinycolor } from '@ctrl/tinycolor';
|
|
11
11
|
import { LogoutOutlined, PlusOutlined, EllipsisOutlined } from '@ant-design/icons';
|
|
12
12
|
import { ProLayout, ProConfigProvider, ProTable } from '@ant-design/pro-components';
|
|
@@ -780,7 +780,7 @@ function RichDetails(props) {
|
|
|
780
780
|
layout,
|
|
781
781
|
column = 2
|
|
782
782
|
} = props;
|
|
783
|
-
const data =
|
|
783
|
+
const data = useNormalizedData(rawData);
|
|
784
784
|
const { columnDefinitions } = useColumnDefinitions$1(data, props);
|
|
785
785
|
if (!data || !((_a = data.data) == null ? void 0 : _a[0])) {
|
|
786
786
|
return /* @__PURE__ */ React.createElement(Empty, { className, image: Empty.PRESENTED_IMAGE_SIMPLE });
|
|
@@ -1511,7 +1511,7 @@ function RichTable(props) {
|
|
|
1511
1511
|
rowKey,
|
|
1512
1512
|
scopeClassName
|
|
1513
1513
|
} = props;
|
|
1514
|
-
const data =
|
|
1514
|
+
const data = useNormalizedData(rawData);
|
|
1515
1515
|
const { columnDefinitions, normalized } = useColumnDefinitions(data, props);
|
|
1516
1516
|
const actionRef = useRef();
|
|
1517
1517
|
const { finalData, search, setSearch, setSortState } = useSortedFilteredData(
|
|
@@ -2274,7 +2274,7 @@ function RichList(props) {
|
|
|
2274
2274
|
"pagination",
|
|
2275
2275
|
"onRowClick"
|
|
2276
2276
|
]);
|
|
2277
|
-
const data =
|
|
2277
|
+
const data = useNormalizedData(rawData);
|
|
2278
2278
|
const { normalized, finalRoles: roleConfigs } = useRoleDefinitions$1(
|
|
2279
2279
|
data,
|
|
2280
2280
|
props
|
|
@@ -2769,7 +2769,7 @@ function RichCalendar(props) {
|
|
|
2769
2769
|
"monthCellRender",
|
|
2770
2770
|
"monthFullCellRender"
|
|
2771
2771
|
]);
|
|
2772
|
-
const data =
|
|
2772
|
+
const data = useNormalizedData(rawData);
|
|
2773
2773
|
const { normalized, finalRoles: roleConfigs } = useRoleDefinitions(
|
|
2774
2774
|
data,
|
|
2775
2775
|
props
|