@plasmicpkgs/plasmic-rich-components 1.0.77 → 1.0.79
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.
|
@@ -199,10 +199,11 @@ function buildFieldsPropType(opts) {
|
|
|
199
199
|
displayName: displayName,
|
|
200
200
|
control: control,
|
|
201
201
|
argNames: ["currentItem", "currentValue"],
|
|
202
|
-
argValues: function (_props, ctx) {
|
|
203
|
-
var
|
|
204
|
-
var
|
|
205
|
-
var
|
|
202
|
+
argValues: function (_props, ctx, _a) {
|
|
203
|
+
var _b;
|
|
204
|
+
var item = _a.item;
|
|
205
|
+
var row = (_b = ctx === null || ctx === void 0 ? void 0 : ctx.data) === null || _b === void 0 ? void 0 : _b[0];
|
|
206
|
+
var cell = item.fieldId ? row === null || row === void 0 ? void 0 : row[item.fieldId] : undefined;
|
|
206
207
|
return [row, cell];
|
|
207
208
|
},
|
|
208
209
|
});
|
|
@@ -249,7 +250,7 @@ function buildFieldsPropType(opts) {
|
|
|
249
250
|
type: "string",
|
|
250
251
|
displayName: "Title",
|
|
251
252
|
defaultValueHint: getDefaultValueHint("title"),
|
|
252
|
-
}, expr: rowDataType("Customize data"), isHidden: {
|
|
253
|
+
}, expr: rowDataType("Customize cell data"), isHidden: {
|
|
253
254
|
type: "boolean",
|
|
254
255
|
displayName: "Is hidden",
|
|
255
256
|
defaultValueHint: getDefaultValueHint("isHidden"),
|
|
@@ -863,7 +864,10 @@ function useColumnDefinitions$1(data, props) {
|
|
|
863
864
|
return defaultRender(_);
|
|
864
865
|
},
|
|
865
866
|
render: function (value, record, rowIndex) {
|
|
866
|
-
|
|
867
|
+
var cellValue = cconfig.fieldId
|
|
868
|
+
? record[cconfig.fieldId]
|
|
869
|
+
: undefined;
|
|
870
|
+
return renderValue(cellValue, record, cconfig);
|
|
867
871
|
},
|
|
868
872
|
};
|
|
869
873
|
return columnDefinition;
|
|
@@ -1013,7 +1017,7 @@ function generateNavMenuType(remainingDepth, displayName, defaultValue) {
|
|
|
1013
1017
|
nameFunc: function (item) {
|
|
1014
1018
|
return item.name || (!displayName ? "Unnamed nested item" : "Unnamed item");
|
|
1015
1019
|
},
|
|
1016
|
-
fields: __assign({ path: "
|
|
1020
|
+
fields: __assign({ path: "href", name: "string" }, (remainingDepth === 0
|
|
1017
1021
|
? {}
|
|
1018
1022
|
: {
|
|
1019
1023
|
routes: generateNavMenuType(remainingDepth - 1),
|
|
@@ -1298,7 +1302,10 @@ function useColumnDefinitions(data, props) {
|
|
|
1298
1302
|
return defaultRender(_);
|
|
1299
1303
|
},
|
|
1300
1304
|
render: function (value, record, rowIndex) {
|
|
1301
|
-
|
|
1305
|
+
var cellValue = cconfig.fieldId
|
|
1306
|
+
? record[cconfig.fieldId]
|
|
1307
|
+
: undefined;
|
|
1308
|
+
return renderValue(cellValue, record, cconfig);
|
|
1302
1309
|
},
|
|
1303
1310
|
};
|
|
1304
1311
|
return columnDefinition;
|