@cosmicdrift/kumiko-types 0.384.0 → 0.386.0
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/db-connection.d.ts +2 -2
- package/dist/handlers.d.ts +3 -1
- package/dist/handlers.js +13 -1
- package/dist/screen-action-form.d.ts +302 -0
- package/dist/screen-action-form.js +1 -0
- package/dist/screen-custom-config.d.ts +122 -0
- package/dist/screen-custom-config.js +1 -0
- package/dist/screen-dashboard.d.ts +348 -0
- package/dist/screen-dashboard.js +10 -0
- package/dist/screen-entity-edit.d.ts +493 -0
- package/dist/screen-entity-edit.js +8 -0
- package/dist/screen-entity-list.d.ts +427 -0
- package/dist/screen-entity-list.js +1 -0
- package/dist/screen-projection.d.ts +217 -0
- package/dist/screen-projection.js +1 -0
- package/dist/screen.d.ts +15 -1877
- package/dist/screen.js +2 -18
- package/dist/where-clause-types.d.ts +1 -0
- package/package.json +1 -1
- package/src/changes.json +12 -0
package/dist/screen.js
CHANGED
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// is translated), `subField` optionally at a sub line (string | DashboardI18nText), `toneField` optionally at
|
|
4
|
-
// "default" | "positive" | "ok" | "warn" | "negative".
|
|
5
|
-
// `visibleWhen` only on a top-level stat; the boot validator rejects it on a
|
|
6
|
-
// stat-group child (gate the whole group instead).
|
|
7
|
-
export const DASHBOARD_STAT_TONES = ["default", "positive", "ok", "warn", "negative"];
|
|
8
|
-
/** Minimum polling interval of `DashboardScreenDefinition.refresh`; shorter values are rejected
|
|
9
|
-
* at boot (`seconds`) or raised at runtime (`field`). */
|
|
10
|
-
export const DASHBOARD_MIN_REFRESH_SECONDS = 5;
|
|
11
|
-
/** Group key of a field value; `collapsedWhen` and row values both go through it. */
|
|
12
|
-
export function relatedListGroupKey(value) {
|
|
13
|
-
return value === undefined || value === null ? "" : String(value);
|
|
14
|
-
}
|
|
15
|
-
export function relatedListGroupHeaderLabel(groupBy, groupKey) {
|
|
16
|
-
const labels = groupBy.labels;
|
|
17
|
-
return labels !== undefined && Object.hasOwn(labels, groupKey) ? labels[groupKey] : groupBy.label;
|
|
18
|
-
}
|
|
1
|
+
export { DASHBOARD_MIN_REFRESH_SECONDS, DASHBOARD_STAT_TONES } from "./screen-dashboard.js";
|
|
2
|
+
export { relatedListGroupHeaderLabel, relatedListGroupKey } from "./screen-entity-edit.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.386.0",
|
|
4
4
|
"description": "Framework-Type-Definitions für Kumiko — FeatureDefinition, BootCheck-Types und die reinen Engine-Types. Erlaubt Downstream-Konsumenten, gegen die Type-Contracts zu bauen, ohne das ganze Framework-Package zu importieren. Enthaelt keine identitaets-sensitiven Runtime-Werte mehr (Error-Klassen leben seit #1629 in kumiko-framework, Brand-Symbole nutzen Symbol.for) und ist deshalb eine plain dependency, keine peerDependency.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
package/src/changes.json
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.386.0",
|
|
4
|
+
"type": "improvement",
|
|
5
|
+
"title": "RawDbClient is typed instead of any",
|
|
6
|
+
"detail": "`RawDbClient.unsafe` and `begin` have real signatures, so `db.unsafe(...)` on a `DbConnection` no longer collapses to `any`. A hand-built fake runner needs `unsafe(sql, params?)` returning rows and a `begin` that takes a callback."
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"version": "0.385.0",
|
|
10
|
+
"type": "improvement",
|
|
11
|
+
"title": "SelectOptions.distinctOn and split screen types",
|
|
12
|
+
"detail": "SelectOptions gains the optional distinctOn field. The screen type definitions are split into several files below 2000 lines; the import paths of the exported types are unchanged."
|
|
13
|
+
},
|
|
2
14
|
{
|
|
3
15
|
"version": "0.383.0",
|
|
4
16
|
"type": "breaking",
|