@plasmicpkgs/plasmic-rich-components 1.0.178 → 1.0.179

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.
Files changed (26) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/field-mappings.d.ts +2 -2
  3. package/dist/index.js +11 -3
  4. package/dist/index.js.map +1 -1
  5. package/dist/plasmic-rich-components.esm.js +11 -3
  6. package/dist/plasmic-rich-components.esm.js.map +1 -1
  7. package/package.json +2 -2
  8. package/skinny/{common-prop-types-5f1fd4b0.cjs.js → common-prop-types-193ce561.cjs.js} +2 -2
  9. package/skinny/{common-prop-types-5f1fd4b0.cjs.js.map → common-prop-types-193ce561.cjs.js.map} +1 -1
  10. package/skinny/{common-prop-types-686c49fe.esm.js → common-prop-types-988c65db.esm.js} +2 -2
  11. package/skinny/{common-prop-types-686c49fe.esm.js.map → common-prop-types-988c65db.esm.js.map} +1 -1
  12. package/skinny/field-mappings.d.ts +2 -2
  13. package/skinny/{formatting-aff39488.esm.js → formatting-0acc57f5.esm.js} +2 -2
  14. package/skinny/{formatting-aff39488.esm.js.map → formatting-0acc57f5.esm.js.map} +1 -1
  15. package/skinny/{formatting-327e0658.cjs.js → formatting-6dc71cdd.cjs.js} +2 -2
  16. package/skinny/{formatting-327e0658.cjs.js.map → formatting-6dc71cdd.cjs.js.map} +1 -1
  17. package/skinny/rich-calendar/index.cjs.js +2 -2
  18. package/skinny/rich-calendar/index.esm.js +2 -2
  19. package/skinny/rich-details/index.cjs.js +1 -1
  20. package/skinny/rich-details/index.esm.js +1 -1
  21. package/skinny/rich-list/index.cjs.js +2 -2
  22. package/skinny/rich-list/index.esm.js +2 -2
  23. package/skinny/rich-table/index.cjs.js +12 -4
  24. package/skinny/rich-table/index.cjs.js.map +1 -1
  25. package/skinny/rich-table/index.esm.js +12 -4
  26. package/skinny/rich-table/index.esm.js.map +1 -1
@@ -1,6 +1,6 @@
1
- import { TableSchema, QueryResult } from "@plasmicapp/data-sources";
2
- import { PropType } from "@plasmicapp/host/registerComponent";
1
+ import { QueryResult, TableSchema } from "@plasmicapp/data-sources";
3
2
  import { ContextDependentConfig } from "@plasmicapp/host";
3
+ import { PropType } from "@plasmicapp/host/registerComponent";
4
4
  export interface AutoSettings {
5
5
  dataType: "auto";
6
6
  }
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ require('lodash/get');
3
4
  var registerComponent = require('@plasmicapp/host/registerComponent');
4
5
  require('@plasmicapp/host/registerGlobalContext');
5
6
  var luxonParser = require('@plasmicpkgs/luxon-parser');
@@ -7,7 +8,6 @@ var dayjs = require('dayjs');
7
8
  var customParseFormat = require('dayjs/plugin/customParseFormat');
8
9
  var React = require('react');
9
10
  var antd = require('antd');
10
- require('lodash/get');
11
11
  var dataSources = require('@plasmicapp/data-sources');
12
12
  var tinycolor = require('@ctrl/tinycolor');
13
13
  var icons = require('@ant-design/icons');
@@ -1882,7 +1882,7 @@ function useColumnDefinitions(data, props) {
1882
1882
  valueType: deriveValueType(cconfig),
1883
1883
  // To come later
1884
1884
  readonly: false,
1885
- sorter: true,
1885
+ sorter: !cconfig.disableSorting,
1886
1886
  copyable: false,
1887
1887
  ellipsis: false,
1888
1888
  tip: void 0,
@@ -2082,7 +2082,15 @@ const dataTableMeta = {
2082
2082
  },
2083
2083
  props: __spreadProps$2(__spreadValues$4({
2084
2084
  data: dataProp(),
2085
- fields: buildFieldsPropType({}),
2085
+ fields: buildFieldsPropType({
2086
+ fieldTypes: {
2087
+ disableSorting: {
2088
+ type: "boolean",
2089
+ displayName: "Disable sorting?",
2090
+ defaultValueHint: false
2091
+ }
2092
+ }
2093
+ }),
2086
2094
  canSelectRows: {
2087
2095
  type: "choice",
2088
2096
  displayName: "Select rows?",