@malloydata/render 0.0.163-dev240807210504 → 0.0.163-dev240808193357
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/component/render-link.d.ts +2 -0
- package/dist/component/util.d.ts +1 -1
- package/dist/module/index.mjs +9 -9
- package/dist/module/index.umd.js +2 -2
- package/dist/register/register.mjs +4023 -3974
- package/dist/register/register.umd.js +198 -198
- package/dist/stories/link-legacy.stories.d.ts +31 -0
- package/dist/stories/link.stories.d.ts +6 -8
- package/dist/webcomponent/malloy-render.mjs +4023 -3974
- package/dist/webcomponent/malloy-render.umd.js +198 -198
- package/package.json +2 -2
package/dist/component/util.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export declare function valueIsNumber(f: Field, v: unknown): v is number;
|
|
|
5
5
|
export declare function valueIsString(f: Field, s: unknown): s is string;
|
|
6
6
|
export declare function getTextWidth(text: string, font: string, canvasToUse?: HTMLCanvasElement): number;
|
|
7
7
|
export declare function clamp(s: number, e: number, v: number): number;
|
|
8
|
-
export declare function shouldRenderAs(f: Field | Explore, tagOverride?: Tag): "table" | "cell" | "chart";
|
|
8
|
+
export declare function shouldRenderAs(f: Field | Explore, tagOverride?: Tag): "table" | "cell" | "link" | "chart";
|
|
9
9
|
export declare function getFieldKey(f: Field | Explore): string;
|
package/dist/module/index.mjs
CHANGED
|
@@ -6217,17 +6217,17 @@ class Yr extends qW {
|
|
|
6217
6217
|
};
|
|
6218
6218
|
}
|
|
6219
6219
|
arguments() {
|
|
6220
|
-
var e
|
|
6220
|
+
var e;
|
|
6221
6221
|
if (this._arguments !== void 0)
|
|
6222
6222
|
return this._arguments;
|
|
6223
6223
|
this._arguments = {};
|
|
6224
|
-
const
|
|
6225
|
-
for (const
|
|
6226
|
-
this._arguments[
|
|
6227
|
-
const
|
|
6228
|
-
for (const
|
|
6229
|
-
const
|
|
6230
|
-
this._arguments[
|
|
6224
|
+
const n = (e = this.fieldDef.parameters) !== null && e !== void 0 ? e : {};
|
|
6225
|
+
for (const i in n)
|
|
6226
|
+
this._arguments[i] = n[i];
|
|
6227
|
+
const r = { ...this.fieldDef.arguments, ...this.sourceArguments };
|
|
6228
|
+
for (const i in r) {
|
|
6229
|
+
const s = r[i];
|
|
6230
|
+
this._arguments[i] = this.resolveParentParameterReferences(s);
|
|
6231
6231
|
}
|
|
6232
6232
|
return this._arguments;
|
|
6233
6233
|
}
|
|
@@ -39636,7 +39636,7 @@ class Rve extends Sve.Source {
|
|
|
39636
39636
|
}
|
|
39637
39637
|
}
|
|
39638
39638
|
for (const a in n)
|
|
39639
|
-
a in o || (0, jO.paramHasValue)(n[a])
|
|
39639
|
+
a in o || ((0, jO.paramHasValue)(n[a]) ? o[a] = { ...n[a] } : this.refLog(`Argument not provided for required parameter \`${a}\``));
|
|
39640
39640
|
return o;
|
|
39641
39641
|
}
|
|
39642
39642
|
structDef(e) {
|