@plasmicpkgs/plasmic-rich-components 1.0.178 → 1.0.180
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/.tsbuildinfo +1 -1
- package/dist/field-mappings.d.ts +2 -2
- package/dist/index.js +11 -3
- package/dist/index.js.map +1 -1
- package/dist/plasmic-rich-components.esm.js +11 -3
- package/dist/plasmic-rich-components.esm.js.map +1 -1
- package/package.json +3 -3
- package/skinny/{common-prop-types-5f1fd4b0.cjs.js → common-prop-types-193ce561.cjs.js} +2 -2
- package/skinny/{common-prop-types-5f1fd4b0.cjs.js.map → common-prop-types-193ce561.cjs.js.map} +1 -1
- package/skinny/{common-prop-types-686c49fe.esm.js → common-prop-types-988c65db.esm.js} +2 -2
- package/skinny/{common-prop-types-686c49fe.esm.js.map → common-prop-types-988c65db.esm.js.map} +1 -1
- package/skinny/field-mappings.d.ts +2 -2
- package/skinny/{formatting-aff39488.esm.js → formatting-0acc57f5.esm.js} +2 -2
- package/skinny/{formatting-aff39488.esm.js.map → formatting-0acc57f5.esm.js.map} +1 -1
- package/skinny/{formatting-327e0658.cjs.js → formatting-6dc71cdd.cjs.js} +2 -2
- package/skinny/{formatting-327e0658.cjs.js.map → formatting-6dc71cdd.cjs.js.map} +1 -1
- package/skinny/rich-calendar/index.cjs.js +2 -2
- package/skinny/rich-calendar/index.esm.js +2 -2
- package/skinny/rich-details/index.cjs.js +1 -1
- package/skinny/rich-details/index.esm.js +1 -1
- package/skinny/rich-list/index.cjs.js +2 -2
- package/skinny/rich-list/index.esm.js +2 -2
- package/skinny/rich-table/index.cjs.js +12 -4
- package/skinny/rich-table/index.cjs.js.map +1 -1
- package/skinny/rich-table/index.esm.js +12 -4
- package/skinny/rich-table/index.esm.js.map +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'lodash/get';
|
|
1
2
|
import registerComponent from '@plasmicapp/host/registerComponent';
|
|
2
3
|
import '@plasmicapp/host/registerGlobalContext';
|
|
3
4
|
import { parseDate } from '@plasmicpkgs/luxon-parser';
|
|
@@ -5,7 +6,6 @@ import dayjs from 'dayjs';
|
|
|
5
6
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
6
7
|
import React, { useRef, useState, useEffect, useMemo } from 'react';
|
|
7
8
|
import { Result, Checkbox, Switch, Empty, Descriptions, theme, ConfigProvider, Dropdown, Button, Input, List, Tag, Card, Calendar, Badge } from 'antd';
|
|
8
|
-
import 'lodash/get';
|
|
9
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';
|
|
@@ -1868,7 +1868,7 @@ function useColumnDefinitions(data, props) {
|
|
|
1868
1868
|
valueType: deriveValueType(cconfig),
|
|
1869
1869
|
// To come later
|
|
1870
1870
|
readonly: false,
|
|
1871
|
-
sorter:
|
|
1871
|
+
sorter: !cconfig.disableSorting,
|
|
1872
1872
|
copyable: false,
|
|
1873
1873
|
ellipsis: false,
|
|
1874
1874
|
tip: void 0,
|
|
@@ -2068,7 +2068,15 @@ const dataTableMeta = {
|
|
|
2068
2068
|
},
|
|
2069
2069
|
props: __spreadProps$2(__spreadValues$4({
|
|
2070
2070
|
data: dataProp(),
|
|
2071
|
-
fields: buildFieldsPropType({
|
|
2071
|
+
fields: buildFieldsPropType({
|
|
2072
|
+
fieldTypes: {
|
|
2073
|
+
disableSorting: {
|
|
2074
|
+
type: "boolean",
|
|
2075
|
+
displayName: "Disable sorting?",
|
|
2076
|
+
defaultValueHint: false
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
}),
|
|
2072
2080
|
canSelectRows: {
|
|
2073
2081
|
type: "choice",
|
|
2074
2082
|
displayName: "Select rows?",
|