@agile-team/mach-table 0.42.0 → 0.42.1
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/README.md +3 -1
- package/dist/index.cjs +5 -5
- package/dist/index.d.cts +16 -14
- package/dist/index.d.ts +16 -14
- package/dist/index.js +5 -5
- package/dist/mach-table.css +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -178,20 +178,7 @@ declare function createMachTableCommands<TData = any>(options: MachTableCommandO
|
|
|
178
178
|
|
|
179
179
|
declare function sanitizeFormulaCell(value: any): any;
|
|
180
180
|
|
|
181
|
-
|
|
182
|
-
interface StatusTagConfig {
|
|
183
|
-
variantMap?: Record<string, TagVariant>;
|
|
184
|
-
labelMap?: Record<string, string>;
|
|
185
|
-
}
|
|
186
|
-
declare function resolveTagVariant(value: any, variantMap?: Record<string, TagVariant>, formatted?: string): TagVariant;
|
|
187
|
-
declare function createStatusTagRenderer(config?: StatusTagConfig): CellRendererFn;
|
|
188
|
-
interface ProgressConfig {
|
|
189
|
-
showValue?: boolean;
|
|
190
|
-
unit?: string;
|
|
191
|
-
color?: string;
|
|
192
|
-
}
|
|
193
|
-
declare function createProgressBarRenderer(config?: ProgressConfig): CellRendererFn;
|
|
194
|
-
declare function linkRenderer(params: CellRendererParams): string | HTMLElement;
|
|
181
|
+
/** Internal action glyphs shared by row actions and editing controls. */
|
|
195
182
|
declare const ICON_PATHS: {
|
|
196
183
|
readonly edit: "<path d=\"M11.5 2.5l2 2L5 13H3v-2l8.5-8.5z\"/>";
|
|
197
184
|
readonly delete: "<path d=\"M3 5h10M6 5V3h4v2M5 5l.7 8h4.6L11 5\"/>";
|
|
@@ -206,6 +193,21 @@ declare const ICON_PATHS: {
|
|
|
206
193
|
readonly more: "<circle cx=\"3\" cy=\"8\" r=\".9\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"8\" cy=\"8\" r=\".9\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"13\" cy=\"8\" r=\".9\" fill=\"currentColor\" stroke=\"none\"/>";
|
|
207
194
|
};
|
|
208
195
|
type BuiltInActionIcon = keyof typeof ICON_PATHS;
|
|
196
|
+
|
|
197
|
+
type TagVariant = "success" | "warning" | "danger" | "info" | "neutral";
|
|
198
|
+
interface StatusTagConfig {
|
|
199
|
+
variantMap?: Record<string, TagVariant>;
|
|
200
|
+
labelMap?: Record<string, string>;
|
|
201
|
+
}
|
|
202
|
+
declare function resolveTagVariant(value: any, variantMap?: Record<string, TagVariant>, formatted?: string): TagVariant;
|
|
203
|
+
declare function createStatusTagRenderer(config?: StatusTagConfig): CellRendererFn;
|
|
204
|
+
interface ProgressConfig {
|
|
205
|
+
showValue?: boolean;
|
|
206
|
+
unit?: string;
|
|
207
|
+
color?: string;
|
|
208
|
+
}
|
|
209
|
+
declare function createProgressBarRenderer(config?: ProgressConfig): CellRendererFn;
|
|
210
|
+
declare function linkRenderer(params: CellRendererParams): string | HTMLElement;
|
|
209
211
|
type ActionVariant = "default" | "primary" | "warning" | "success" | "danger";
|
|
210
212
|
type ActionOverflowMode = "menu" | "drawer" | "inline";
|
|
211
213
|
interface ActionItem<TData = any> {
|
package/dist/index.d.ts
CHANGED
|
@@ -178,20 +178,7 @@ declare function createMachTableCommands<TData = any>(options: MachTableCommandO
|
|
|
178
178
|
|
|
179
179
|
declare function sanitizeFormulaCell(value: any): any;
|
|
180
180
|
|
|
181
|
-
|
|
182
|
-
interface StatusTagConfig {
|
|
183
|
-
variantMap?: Record<string, TagVariant>;
|
|
184
|
-
labelMap?: Record<string, string>;
|
|
185
|
-
}
|
|
186
|
-
declare function resolveTagVariant(value: any, variantMap?: Record<string, TagVariant>, formatted?: string): TagVariant;
|
|
187
|
-
declare function createStatusTagRenderer(config?: StatusTagConfig): CellRendererFn;
|
|
188
|
-
interface ProgressConfig {
|
|
189
|
-
showValue?: boolean;
|
|
190
|
-
unit?: string;
|
|
191
|
-
color?: string;
|
|
192
|
-
}
|
|
193
|
-
declare function createProgressBarRenderer(config?: ProgressConfig): CellRendererFn;
|
|
194
|
-
declare function linkRenderer(params: CellRendererParams): string | HTMLElement;
|
|
181
|
+
/** Internal action glyphs shared by row actions and editing controls. */
|
|
195
182
|
declare const ICON_PATHS: {
|
|
196
183
|
readonly edit: "<path d=\"M11.5 2.5l2 2L5 13H3v-2l8.5-8.5z\"/>";
|
|
197
184
|
readonly delete: "<path d=\"M3 5h10M6 5V3h4v2M5 5l.7 8h4.6L11 5\"/>";
|
|
@@ -206,6 +193,21 @@ declare const ICON_PATHS: {
|
|
|
206
193
|
readonly more: "<circle cx=\"3\" cy=\"8\" r=\".9\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"8\" cy=\"8\" r=\".9\" fill=\"currentColor\" stroke=\"none\"/><circle cx=\"13\" cy=\"8\" r=\".9\" fill=\"currentColor\" stroke=\"none\"/>";
|
|
207
194
|
};
|
|
208
195
|
type BuiltInActionIcon = keyof typeof ICON_PATHS;
|
|
196
|
+
|
|
197
|
+
type TagVariant = "success" | "warning" | "danger" | "info" | "neutral";
|
|
198
|
+
interface StatusTagConfig {
|
|
199
|
+
variantMap?: Record<string, TagVariant>;
|
|
200
|
+
labelMap?: Record<string, string>;
|
|
201
|
+
}
|
|
202
|
+
declare function resolveTagVariant(value: any, variantMap?: Record<string, TagVariant>, formatted?: string): TagVariant;
|
|
203
|
+
declare function createStatusTagRenderer(config?: StatusTagConfig): CellRendererFn;
|
|
204
|
+
interface ProgressConfig {
|
|
205
|
+
showValue?: boolean;
|
|
206
|
+
unit?: string;
|
|
207
|
+
color?: string;
|
|
208
|
+
}
|
|
209
|
+
declare function createProgressBarRenderer(config?: ProgressConfig): CellRendererFn;
|
|
210
|
+
declare function linkRenderer(params: CellRendererParams): string | HTMLElement;
|
|
209
211
|
type ActionVariant = "default" | "primary" | "warning" | "success" | "danger";
|
|
210
212
|
type ActionOverflowMode = "menu" | "drawer" | "inline";
|
|
211
213
|
interface ActionItem<TData = any> {
|