@plasmicpkgs/plasmic-rich-components 1.0.53 → 1.0.55
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/plasmic-rich-components.cjs.development.js +23 -48
- package/dist/plasmic-rich-components.cjs.development.js.map +1 -1
- package/dist/plasmic-rich-components.cjs.production.min.js +1 -1
- package/dist/plasmic-rich-components.cjs.production.min.js.map +1 -1
- package/dist/plasmic-rich-components.esm.js +23 -48
- package/dist/plasmic-rich-components.esm.js.map +1 -1
- package/dist/rich-table/RichTable.d.ts +2 -0
- package/package.json +4 -4
|
@@ -219,53 +219,11 @@ var richLayoutMeta = {
|
|
|
219
219
|
defaultValue: "https://www.plasmic.app/favicon.ico"
|
|
220
220
|
},
|
|
221
221
|
navMenuItems: /*#__PURE__*/generateNavMenuType(2, "Nav menu items", [{
|
|
222
|
-
path: "/
|
|
223
|
-
name: "
|
|
222
|
+
path: "/",
|
|
223
|
+
name: "Link 1"
|
|
224
224
|
}, {
|
|
225
|
-
path: "/
|
|
226
|
-
name: "
|
|
227
|
-
// icon: <CrownFilled />,
|
|
228
|
-
// access: "canAdmin",
|
|
229
|
-
// component: "./Admin",
|
|
230
|
-
routes: [{
|
|
231
|
-
path: "/admin/sub-page1",
|
|
232
|
-
name: "Sub page 1"
|
|
233
|
-
}, {
|
|
234
|
-
path: "/admin/sub-page2",
|
|
235
|
-
name: "Sub page 2"
|
|
236
|
-
}, {
|
|
237
|
-
path: "/admin/sub-page3",
|
|
238
|
-
name: "Sub page 3"
|
|
239
|
-
}]
|
|
240
|
-
}, {
|
|
241
|
-
name: "List",
|
|
242
|
-
// icon: <TabletFilled />,
|
|
243
|
-
path: "/list",
|
|
244
|
-
// component: "./ListTableList",
|
|
245
|
-
routes: [{
|
|
246
|
-
path: "/list/sub-page",
|
|
247
|
-
name: "Page group",
|
|
248
|
-
// icon: <CrownFilled />,
|
|
249
|
-
routes: [{
|
|
250
|
-
path: "sub-sub-page1",
|
|
251
|
-
name: "Sub sub page 1"
|
|
252
|
-
}, {
|
|
253
|
-
path: "sub-sub-page2",
|
|
254
|
-
name: "Sub sub page 2"
|
|
255
|
-
}, {
|
|
256
|
-
path: "sub-sub-page3",
|
|
257
|
-
name: "Sub sub page 3"
|
|
258
|
-
}]
|
|
259
|
-
}, {
|
|
260
|
-
path: "/list/sub-page2",
|
|
261
|
-
name: "Sub page 2"
|
|
262
|
-
}, {
|
|
263
|
-
path: "/list/sub-page3",
|
|
264
|
-
name: "Sub page 3"
|
|
265
|
-
}]
|
|
266
|
-
}, {
|
|
267
|
-
path: "https://ant.design",
|
|
268
|
-
name: "Extern link"
|
|
225
|
+
path: "/",
|
|
226
|
+
name: "Link 2"
|
|
269
227
|
}]),
|
|
270
228
|
layout: {
|
|
271
229
|
displayName: "Layout",
|
|
@@ -1210,7 +1168,10 @@ function RichTable(props) {
|
|
|
1210
1168
|
actions = props.actions,
|
|
1211
1169
|
customActionChildren = props.customActionChildren,
|
|
1212
1170
|
_props$pageSize = props.pageSize,
|
|
1213
|
-
pageSize = _props$pageSize === void 0 ?
|
|
1171
|
+
pageSize = _props$pageSize === void 0 ? 10 : _props$pageSize,
|
|
1172
|
+
_props$scrollX = props.scrollX,
|
|
1173
|
+
scrollX = _props$scrollX === void 0 ? true : _props$scrollX,
|
|
1174
|
+
scrollHeight = props.scrollHeight,
|
|
1214
1175
|
hideSearch = props.hideSearch,
|
|
1215
1176
|
hideDensity = props.hideDensity,
|
|
1216
1177
|
hideColumnPicker = props.hideColumnPicker,
|
|
@@ -1389,6 +1350,11 @@ function RichTable(props) {
|
|
|
1389
1350
|
} : false,
|
|
1390
1351
|
dateFormatter: "string",
|
|
1391
1352
|
headerTitle: title,
|
|
1353
|
+
// TODO in the future, figure out how to make this responsive to the CSS height
|
|
1354
|
+
scroll: {
|
|
1355
|
+
x: scrollX || undefined,
|
|
1356
|
+
y: scrollHeight
|
|
1357
|
+
},
|
|
1392
1358
|
toolbar: {
|
|
1393
1359
|
search: !hideSearch ? {
|
|
1394
1360
|
value: search,
|
|
@@ -1522,7 +1488,7 @@ var dataTableMeta = {
|
|
|
1522
1488
|
},
|
|
1523
1489
|
pageSize: {
|
|
1524
1490
|
type: "number",
|
|
1525
|
-
defaultValueHint:
|
|
1491
|
+
defaultValueHint: 10
|
|
1526
1492
|
},
|
|
1527
1493
|
fields: {
|
|
1528
1494
|
type: "array",
|
|
@@ -1604,6 +1570,15 @@ var dataTableMeta = {
|
|
|
1604
1570
|
advanced: true,
|
|
1605
1571
|
defaultValueHint: true
|
|
1606
1572
|
},
|
|
1573
|
+
scrollX: {
|
|
1574
|
+
type: "boolean",
|
|
1575
|
+
advanced: true,
|
|
1576
|
+
defaultValueHint: true
|
|
1577
|
+
},
|
|
1578
|
+
scrollHeight: {
|
|
1579
|
+
type: "number",
|
|
1580
|
+
advanced: true
|
|
1581
|
+
},
|
|
1607
1582
|
hideSearch: {
|
|
1608
1583
|
type: "boolean",
|
|
1609
1584
|
advanced: true
|