@datarails-ai/dr-appspace-cli 0.12.52 → 0.12.54
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/cli.js +13 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import { fileURLToPath as fileURLToPath6 } from "url";
|
|
|
13
13
|
// package.json
|
|
14
14
|
var package_default = {
|
|
15
15
|
name: "@datarails-ai/dr-appspace-cli",
|
|
16
|
-
version: "0.12.
|
|
16
|
+
version: "0.12.54",
|
|
17
17
|
description: "Datarails App Space CLI \u2014 build, try, push and publish App Space apps",
|
|
18
18
|
type: "module",
|
|
19
19
|
engines: {
|
|
@@ -57,7 +57,7 @@ var package_default = {
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
// src/buildInfo.ts
|
|
60
|
-
var BUILD_TIME = "2026-10-
|
|
60
|
+
var BUILD_TIME = "2026-10-29T10:02:22.680Z";
|
|
61
61
|
function formatBuildTime(iso) {
|
|
62
62
|
if (iso === "") return "";
|
|
63
63
|
const d = new Date(iso);
|
|
@@ -11406,12 +11406,18 @@ function cardOf(element, uid, path3, handlerName, sections, refuse2, parent = nu
|
|
|
11406
11406
|
if (kind !== "") out.kind = kind;
|
|
11407
11407
|
for (const key of RUNTIME_CARD_WORDS) if (named5(props[key])) out[key] = props[key];
|
|
11408
11408
|
for (const key of KEPT_CARD_PROPS) if (props[key] !== void 0 && props[key] !== null && props[key] !== "") out[key] = props[key];
|
|
11409
|
+
const row = rows2[spec ?? uid];
|
|
11410
|
+
const stated2 = Array.isArray(props.params) ? props.params.filter(named5) : [];
|
|
11411
|
+
const declared = props.params === void 0 && named5(props.card) && isPlainObject7(row) && isPlainObject7(row.params) ? Object.keys(row.params).filter(named5) : [];
|
|
11412
|
+
const params = stated2.length > 0 ? stated2 : declared;
|
|
11413
|
+
if (params.length > 0) out.params = params;
|
|
11414
|
+
const kpi = kind === "kpi" || kind === "" && isPlainObject7(row) && row.kind === "kpi";
|
|
11409
11415
|
let frame2 = isPlainObject7(element.card) ? element.card : {};
|
|
11410
|
-
|
|
11416
|
+
const filledIn = kpi && Object.keys(frame2).every((key) => (key === "title" || key === "subtitle") && frame2[key] === props[key]);
|
|
11417
|
+
if (Object.keys(frame2).length === 0 || filledIn) {
|
|
11411
11418
|
frame2 = {};
|
|
11412
|
-
const
|
|
11413
|
-
const labelled
|
|
11414
|
-
for (const key of labelled ? ["subtitle"] : ["title", "subtitle"]) if (named5(props[key])) frame2[key] = props[key];
|
|
11419
|
+
const labelled = kpi && specLabel(row) !== null;
|
|
11420
|
+
for (const key of labelled ? [] : kpi ? ["title"] : ["title", "subtitle"]) if (named5(props[key])) frame2[key] = props[key];
|
|
11415
11421
|
}
|
|
11416
11422
|
const section = named5(element.section) && sections.some((entry) => entry.id === element.section) ? element.section : void 0;
|
|
11417
11423
|
return {
|
|
@@ -17720,6 +17726,7 @@ function attrsOf(element) {
|
|
|
17720
17726
|
if (card !== "") out.push(["card", card]);
|
|
17721
17727
|
if (named5(element.emphasis)) out.push(["emphasis", element.emphasis]);
|
|
17722
17728
|
if (isRuntimeCard(element)) {
|
|
17729
|
+
if (Array.isArray(props.params) && props.params.length > 0) out.push(["widget-params", props.params.join(" ")]);
|
|
17723
17730
|
for (const key of RUNTIME_CARD_WORDS) if (named5(props[key])) out.push([`widget-${key}`, props[key]]);
|
|
17724
17731
|
}
|
|
17725
17732
|
return gridAttrs(element) + out.map(([key, value]) => ` ${ATTR_NAME.get(key) ?? `data-dr-${key}`}="${attr2(value)}"`).join("");
|