@plasmicpkgs/plasmic-rich-components 1.0.80 → 1.0.81
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.
|
@@ -186,9 +186,10 @@ function deriveValueType(cconfig) {
|
|
|
186
186
|
}
|
|
187
187
|
function buildFieldsPropType(opts) {
|
|
188
188
|
function getDefaultValueHint(field) {
|
|
189
|
-
return function (
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
return function (_props, contextData, _a) {
|
|
190
|
+
var item = _a.item;
|
|
191
|
+
if (item.fieldId) {
|
|
192
|
+
var fieldSetting = contextData === null || contextData === void 0 ? void 0 : contextData.mergedFields.find(function (f) { return f.fieldId === item.fieldId; });
|
|
192
193
|
return fieldSetting === null || fieldSetting === void 0 ? void 0 : fieldSetting[field];
|
|
193
194
|
}
|
|
194
195
|
return undefined;
|
|
@@ -1655,7 +1656,10 @@ var dataTableMeta = {
|
|
|
1655
1656
|
displayName: "Row key",
|
|
1656
1657
|
helpText: "Column key to use as row key; can also be a function that takes in a row and returns a key value",
|
|
1657
1658
|
hidden: function (ps) { return !ps.canSelectRows || ps.canSelectRows === "none"; },
|
|
1658
|
-
defaultValueHint: function (ps) {
|
|
1659
|
+
defaultValueHint: function (ps) {
|
|
1660
|
+
var derivedRowKey = deriveRowKey(ps.data, ps.rowKey);
|
|
1661
|
+
return derivedRowKey !== undefined ? "".concat(derivedRowKey) : undefined;
|
|
1662
|
+
},
|
|
1659
1663
|
},
|
|
1660
1664
|
selectedRowKey: {
|
|
1661
1665
|
type: "string",
|