@dosgato/templating 0.0.141 → 0.0.143
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/uitemplate.d.ts +11 -8
- package/package.json +1 -1
package/dist/uitemplate.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentData, DataData, PageData
|
|
1
|
+
import type { ComponentData, DataData, PageData } from './component.js';
|
|
2
2
|
interface IconifyIcon {
|
|
3
3
|
body: string;
|
|
4
4
|
rotate?: number;
|
|
@@ -128,7 +128,7 @@ export interface UITemplateData extends UITemplateBase {
|
|
|
128
128
|
* If given a function, the result of the function will be placed inside the field
|
|
129
129
|
* without html-encoding, so that you can write your own HTML. Do the encoding yourself.
|
|
130
130
|
*/
|
|
131
|
-
get: string | ((data:
|
|
131
|
+
get: string | ((data: DataData) => string);
|
|
132
132
|
/**
|
|
133
133
|
* An icon for the cell in all regular rows (not the header).
|
|
134
134
|
*/
|
|
@@ -147,14 +147,17 @@ export interface UITemplateData extends UITemplateBase {
|
|
|
147
147
|
grow?: number;
|
|
148
148
|
}[];
|
|
149
149
|
/**
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* showing the name in the data tree.
|
|
150
|
+
* It may be preferred to show the computeName source (e.g. title) instead of
|
|
151
|
+
* showing the computed name itself in the leftmost column of the data tree.
|
|
153
152
|
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
153
|
+
* Provide this option to control the name column. Everything is optional in
|
|
154
|
+
* case, for example, you only want to control the icon.
|
|
156
155
|
*/
|
|
157
|
-
|
|
156
|
+
nameColumn?: {
|
|
157
|
+
title?: string;
|
|
158
|
+
icon?: (data: DataData) => IconOrSVG | undefined;
|
|
159
|
+
get?: string | ((data: DataData) => string);
|
|
160
|
+
};
|
|
158
161
|
}
|
|
159
162
|
/**
|
|
160
163
|
* This is a type for the data that will be passed to dialog Svelte components as
|