@protobase/cli 0.22.3 → 0.22.4
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/doctor/view-shapes.js +20 -6
- package/dist/package.js +1 -1
- package/package.json +6 -6
|
@@ -212,6 +212,25 @@ const recentShapes = (model, view) => {
|
|
|
212
212
|
}
|
|
213
213
|
}];
|
|
214
214
|
};
|
|
215
|
+
const openingShape = (model, view, list, sort) => {
|
|
216
|
+
const source = view.list?.filter;
|
|
217
|
+
if (!source) return {
|
|
218
|
+
resource: model.name,
|
|
219
|
+
request: request(model.name, void 0, sort),
|
|
220
|
+
from: `${list}'s order`,
|
|
221
|
+
query: { sort }
|
|
222
|
+
};
|
|
223
|
+
const filter = configFilter(model, source);
|
|
224
|
+
return {
|
|
225
|
+
resource: model.name,
|
|
226
|
+
request: request(model.name, source, sort),
|
|
227
|
+
from: `${list} as it opens`,
|
|
228
|
+
query: {
|
|
229
|
+
...filter && { filter },
|
|
230
|
+
sort
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
};
|
|
215
234
|
/**
|
|
216
235
|
* The reads a view's pages make: its list in its order, the filter widgets and their counts, its chart per value, its displays' maps,
|
|
217
236
|
* board columns and photos, the records of its related sections and the photos of its galleries, the recent records in the sidebar, a saved search's new records and the records sorted by hand.
|
|
@@ -222,12 +241,7 @@ const viewShapes = (view, models) => {
|
|
|
222
241
|
const sort = listSort(model, view);
|
|
223
242
|
const list = view.roles ? `the ${model.name} list for ${view.roles.join(", ")}` : `the ${model.name} list`;
|
|
224
243
|
return [
|
|
225
|
-
|
|
226
|
-
resource: model.name,
|
|
227
|
-
request: request(model.name, void 0, sort),
|
|
228
|
-
from: `${list}'s order`,
|
|
229
|
-
query: { sort }
|
|
230
|
-
},
|
|
244
|
+
openingShape(model, view, list, sort),
|
|
231
245
|
...view.filters.flatMap((widget) => widgetShapes(model, widget, `${list}'s ${widget.kind === "dateRange" ? "date range" : widget.kind} filter`)),
|
|
232
246
|
...displayShapes(model, view, models),
|
|
233
247
|
...chartShapes(model, view, list),
|
package/dist/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/cli",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.4",
|
|
4
4
|
"description": "The protobase command: scaffold, doctor, dev, build and serve a Protobase project.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@hono/node-server": "^2.1.3",
|
|
36
36
|
"@hono/vite-dev-server": "^0.26.1",
|
|
37
|
-
"@protobase/layout": "0.22.
|
|
38
|
-
"@protobase/query": "0.22.
|
|
39
|
-
"@protobase/schema": "0.22.
|
|
40
|
-
"@protobase/server": "0.22.
|
|
41
|
-
"@protobase/ui": "0.22.
|
|
37
|
+
"@protobase/layout": "0.22.4",
|
|
38
|
+
"@protobase/query": "0.22.4",
|
|
39
|
+
"@protobase/schema": "0.22.4",
|
|
40
|
+
"@protobase/server": "0.22.4",
|
|
41
|
+
"@protobase/ui": "0.22.4",
|
|
42
42
|
"@react-email/render": "^2.1.0",
|
|
43
43
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
44
44
|
"@tailwindcss/vite": "^4.3.3",
|