@agile-team/mach-table-vue 0.13.0 → 0.14.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/README.md +13 -3
- package/dist/MachTable-BRFSPNPU.js +2 -0
- package/dist/MachTable-DH0offab.d.cts +34 -0
- package/dist/MachTable-DH0offab.d.ts +34 -0
- package/dist/MachTable-QMK4VFAQ.cjs +2 -0
- package/dist/{MachTable-ESOIV4CZ.cjs.map → MachTable-QMK4VFAQ.cjs.map} +1 -1
- package/dist/MachTableToolbar-CDkTtitl.d.cts +97 -0
- package/dist/MachTableToolbar-CDkTtitl.d.ts +97 -0
- package/dist/async.cjs +1 -1
- package/dist/async.d.cts +6 -5
- package/dist/async.d.ts +6 -5
- package/dist/async.js +1 -1
- package/dist/chunk-2PKCB3CZ.js +2 -0
- package/dist/chunk-2PKCB3CZ.js.map +1 -0
- package/dist/chunk-4SM5YZDC.js +2 -0
- package/dist/chunk-4SM5YZDC.js.map +1 -0
- package/dist/chunk-6WNTYC5G.js +2 -0
- package/dist/chunk-6WNTYC5G.js.map +1 -0
- package/dist/{chunk-BE4RGLUC.cjs → chunk-C7C5I2H4.cjs} +2 -2
- package/dist/{chunk-BE4RGLUC.cjs.map → chunk-C7C5I2H4.cjs.map} +1 -1
- package/dist/{chunk-7U5IML5K.js → chunk-H75IY5SP.js} +2 -2
- package/dist/chunk-H75IY5SP.js.map +1 -0
- package/dist/chunk-L6HN564Y.cjs +2 -0
- package/dist/chunk-L6HN564Y.cjs.map +1 -0
- package/dist/chunk-OMEMLONJ.cjs +2 -0
- package/dist/chunk-OMEMLONJ.cjs.map +1 -0
- package/dist/chunk-YN3M2NPO.cjs +2 -0
- package/dist/{chunk-Z6YS22CL.cjs.map → chunk-YN3M2NPO.cjs.map} +1 -1
- package/dist/globalRegistration-BhAR-B5k.d.cts +19 -0
- package/dist/globalRegistration-DTWLNxPI.d.ts +19 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/mach-table.css +107 -0
- package/dist/ui.cjs +2 -0
- package/dist/ui.cjs.map +1 -0
- package/dist/ui.d.cts +10 -0
- package/dist/ui.d.ts +10 -0
- package/dist/ui.js +2 -0
- package/dist/ui.js.map +1 -0
- package/dist/{workflows-Dg6KsN85.d.cts → workflows-BXccx4zn.d.cts} +29 -4
- package/dist/{workflows-Dg6KsN85.d.ts → workflows-CvAptGOH.d.ts} +29 -4
- package/dist/workflows.cjs +1 -1
- package/dist/workflows.cjs.map +1 -1
- package/dist/workflows.d.cts +2 -1
- package/dist/workflows.d.ts +2 -1
- package/dist/workflows.js +1 -1
- package/package.json +12 -2
- package/dist/MachTable-ESOIV4CZ.cjs +0 -2
- package/dist/MachTable-USYTNQV5.js +0 -2
- package/dist/chunk-7U5IML5K.js.map +0 -1
- package/dist/chunk-E7KTBMM6.js +0 -2
- package/dist/chunk-E7KTBMM6.js.map +0 -1
- package/dist/chunk-ICHFPO5U.js +0 -2
- package/dist/chunk-ICHFPO5U.js.map +0 -1
- package/dist/chunk-MVK2O7FM.cjs +0 -2
- package/dist/chunk-MVK2O7FM.cjs.map +0 -1
- package/dist/chunk-Y6OAV3U4.cjs +0 -2
- package/dist/chunk-Y6OAV3U4.cjs.map +0 -1
- package/dist/chunk-Z6YS22CL.cjs +0 -2
- package/dist/chunk-ZUOKB5ID.js +0 -2
- package/dist/chunk-ZUOKB5ID.js.map +0 -1
- package/dist/globalRegistration-ySQgs7aA.d.cts +0 -86
- package/dist/globalRegistration-ySQgs7aA.d.ts +0 -86
- /package/dist/{MachTable-USYTNQV5.js.map → MachTable-BRFSPNPU.js.map} +0 -0
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { DefineComponent } from 'vue';
|
|
2
|
-
import { GridOptions, ColDef, GridComponents } from '@agile-team/mach-table';
|
|
3
|
-
|
|
4
|
-
type MachTablePresetSelection = string | readonly string[] | false | null;
|
|
5
|
-
interface MachTableConfigWarning {
|
|
6
|
-
code: "UNKNOWN_PRESET";
|
|
7
|
-
message: string;
|
|
8
|
-
preset?: string;
|
|
9
|
-
}
|
|
10
|
-
interface MachTableRuntimeConfig {
|
|
11
|
-
/** Defaults inherited by every table in this application or subtree. */
|
|
12
|
-
defaults?: Partial<GridOptions<any>>;
|
|
13
|
-
/** Application-wide semantic column types. Kept separate for config readability. */
|
|
14
|
-
columnTypes?: Readonly<Record<string, Partial<ColDef<any>>>>;
|
|
15
|
-
/** Application-wide renderer/editor registry. Per-table components can override it. */
|
|
16
|
-
components?: GridComponents;
|
|
17
|
-
/** Named, reusable behavior profiles such as `list`, `crud` or `picker`. */
|
|
18
|
-
presets?: Readonly<Record<string, Partial<GridOptions<any>>>>;
|
|
19
|
-
/** Preset used when a table does not declare its own `preset`. Set false to disable. */
|
|
20
|
-
defaultPreset?: MachTablePresetSelection;
|
|
21
|
-
/** Receives non-fatal configuration diagnostics. */
|
|
22
|
-
onConfigWarning?: (warning: MachTableConfigWarning) => void;
|
|
23
|
-
}
|
|
24
|
-
interface ResolvedMachTableConfig {
|
|
25
|
-
readonly defaults: Partial<GridOptions<any>>;
|
|
26
|
-
readonly presets: Readonly<Record<string, Partial<GridOptions<any>>>>;
|
|
27
|
-
readonly defaultPreset: MachTablePresetSelection;
|
|
28
|
-
readonly onConfigWarning?: (warning: MachTableConfigWarning) => void;
|
|
29
|
-
}
|
|
30
|
-
interface MachTableOptionExplanation {
|
|
31
|
-
readonly key: keyof GridOptions<any> | string;
|
|
32
|
-
readonly value: unknown;
|
|
33
|
-
/** The most specific layer that declared the option. */
|
|
34
|
-
readonly source: string;
|
|
35
|
-
readonly layers: readonly {
|
|
36
|
-
name: string;
|
|
37
|
-
value: unknown;
|
|
38
|
-
}[];
|
|
39
|
-
}
|
|
40
|
-
interface ResolvedMachTableGridOptions<TData = any> {
|
|
41
|
-
readonly options: GridOptions<TData>;
|
|
42
|
-
explain(key: keyof GridOptions<TData> | string): MachTableOptionExplanation;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Type-checks an application configuration without adding runtime work.
|
|
46
|
-
* Put the result in a dedicated `mach-table.config.ts` and pass it to app.use().
|
|
47
|
-
*/
|
|
48
|
-
declare function defineMachTableConfig<const TConfig extends MachTableRuntimeConfig>(config: TConfig): TConfig;
|
|
49
|
-
declare function normalizeMachTableConfig(config?: MachTableRuntimeConfig): ResolvedMachTableConfig;
|
|
50
|
-
/** Merges an app/route configuration while preserving parent preset definitions. */
|
|
51
|
-
declare function mergeMachTableConfig(parent: ResolvedMachTableConfig, child: MachTableRuntimeConfig): ResolvedMachTableConfig;
|
|
52
|
-
declare function resolveMachTableGridOptions<TData>(config: ResolvedMachTableConfig, requestedPreset: MachTablePresetSelection | undefined, explicit: Partial<GridOptions<TData>>, reportWarning?: (warning: MachTableConfigWarning) => void): ResolvedMachTableGridOptions<TData>;
|
|
53
|
-
|
|
54
|
-
type AdapterOnlyGridOption = "className" | "ariaLabel" | "ariaLabelledBy" | "ariaDescribedBy";
|
|
55
|
-
type MachTableVueProps<TData = any> = Omit<GridOptions<TData>, AdapterOnlyGridOption> & {
|
|
56
|
-
/** Named application preset(s). Explicit table props still win. */
|
|
57
|
-
preset?: MachTablePresetSelection;
|
|
58
|
-
/** CSS class applied to the Vue host element. */
|
|
59
|
-
className?: string;
|
|
60
|
-
/** CSS class forwarded to MachTable's inner grid root. */
|
|
61
|
-
gridClassName?: string;
|
|
62
|
-
/** Accessible name forwarded to MachTable's inner role=grid element. */
|
|
63
|
-
gridAriaLabel?: string;
|
|
64
|
-
gridAriaLabelledBy?: string;
|
|
65
|
-
gridAriaDescribedBy?: string;
|
|
66
|
-
};
|
|
67
|
-
declare const MachTable: DefineComponent<MachTableVueProps<any>>;
|
|
68
|
-
/** @deprecated Use MachTable. Kept as a source-compatible alias through 0.x. */
|
|
69
|
-
declare const RobotGrid: DefineComponent<MachTableVueProps<any>>;
|
|
70
|
-
/** @deprecated Use MachTableVueProps. */
|
|
71
|
-
type RobotGridVueProps<TData = any> = MachTableVueProps<TData>;
|
|
72
|
-
|
|
73
|
-
declare module "vue" {
|
|
74
|
-
interface GlobalComponents {
|
|
75
|
-
MachTable: typeof MachTable;
|
|
76
|
-
RobotGrid: typeof MachTable;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
interface MachTablePluginOptions extends MachTableRuntimeConfig {
|
|
80
|
-
/** Global component name. Defaults to `MachTable`. */
|
|
81
|
-
componentName?: string;
|
|
82
|
-
/** Also register the backwards-compatible `RobotGrid` name. Defaults to true. */
|
|
83
|
-
registerRobotGridAlias?: boolean;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export { type MachTableVueProps as M, type ResolvedMachTableConfig as R, type MachTablePluginOptions as a, type MachTableRuntimeConfig as b, MachTable as c, type MachTableConfigWarning as d, type MachTableOptionExplanation as e, type MachTablePresetSelection as f, type ResolvedMachTableGridOptions as g, RobotGrid as h, type RobotGridVueProps as i, defineMachTableConfig as j, mergeMachTableConfig as m, normalizeMachTableConfig as n, resolveMachTableGridOptions as r };
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { DefineComponent } from 'vue';
|
|
2
|
-
import { GridOptions, ColDef, GridComponents } from '@agile-team/mach-table';
|
|
3
|
-
|
|
4
|
-
type MachTablePresetSelection = string | readonly string[] | false | null;
|
|
5
|
-
interface MachTableConfigWarning {
|
|
6
|
-
code: "UNKNOWN_PRESET";
|
|
7
|
-
message: string;
|
|
8
|
-
preset?: string;
|
|
9
|
-
}
|
|
10
|
-
interface MachTableRuntimeConfig {
|
|
11
|
-
/** Defaults inherited by every table in this application or subtree. */
|
|
12
|
-
defaults?: Partial<GridOptions<any>>;
|
|
13
|
-
/** Application-wide semantic column types. Kept separate for config readability. */
|
|
14
|
-
columnTypes?: Readonly<Record<string, Partial<ColDef<any>>>>;
|
|
15
|
-
/** Application-wide renderer/editor registry. Per-table components can override it. */
|
|
16
|
-
components?: GridComponents;
|
|
17
|
-
/** Named, reusable behavior profiles such as `list`, `crud` or `picker`. */
|
|
18
|
-
presets?: Readonly<Record<string, Partial<GridOptions<any>>>>;
|
|
19
|
-
/** Preset used when a table does not declare its own `preset`. Set false to disable. */
|
|
20
|
-
defaultPreset?: MachTablePresetSelection;
|
|
21
|
-
/** Receives non-fatal configuration diagnostics. */
|
|
22
|
-
onConfigWarning?: (warning: MachTableConfigWarning) => void;
|
|
23
|
-
}
|
|
24
|
-
interface ResolvedMachTableConfig {
|
|
25
|
-
readonly defaults: Partial<GridOptions<any>>;
|
|
26
|
-
readonly presets: Readonly<Record<string, Partial<GridOptions<any>>>>;
|
|
27
|
-
readonly defaultPreset: MachTablePresetSelection;
|
|
28
|
-
readonly onConfigWarning?: (warning: MachTableConfigWarning) => void;
|
|
29
|
-
}
|
|
30
|
-
interface MachTableOptionExplanation {
|
|
31
|
-
readonly key: keyof GridOptions<any> | string;
|
|
32
|
-
readonly value: unknown;
|
|
33
|
-
/** The most specific layer that declared the option. */
|
|
34
|
-
readonly source: string;
|
|
35
|
-
readonly layers: readonly {
|
|
36
|
-
name: string;
|
|
37
|
-
value: unknown;
|
|
38
|
-
}[];
|
|
39
|
-
}
|
|
40
|
-
interface ResolvedMachTableGridOptions<TData = any> {
|
|
41
|
-
readonly options: GridOptions<TData>;
|
|
42
|
-
explain(key: keyof GridOptions<TData> | string): MachTableOptionExplanation;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Type-checks an application configuration without adding runtime work.
|
|
46
|
-
* Put the result in a dedicated `mach-table.config.ts` and pass it to app.use().
|
|
47
|
-
*/
|
|
48
|
-
declare function defineMachTableConfig<const TConfig extends MachTableRuntimeConfig>(config: TConfig): TConfig;
|
|
49
|
-
declare function normalizeMachTableConfig(config?: MachTableRuntimeConfig): ResolvedMachTableConfig;
|
|
50
|
-
/** Merges an app/route configuration while preserving parent preset definitions. */
|
|
51
|
-
declare function mergeMachTableConfig(parent: ResolvedMachTableConfig, child: MachTableRuntimeConfig): ResolvedMachTableConfig;
|
|
52
|
-
declare function resolveMachTableGridOptions<TData>(config: ResolvedMachTableConfig, requestedPreset: MachTablePresetSelection | undefined, explicit: Partial<GridOptions<TData>>, reportWarning?: (warning: MachTableConfigWarning) => void): ResolvedMachTableGridOptions<TData>;
|
|
53
|
-
|
|
54
|
-
type AdapterOnlyGridOption = "className" | "ariaLabel" | "ariaLabelledBy" | "ariaDescribedBy";
|
|
55
|
-
type MachTableVueProps<TData = any> = Omit<GridOptions<TData>, AdapterOnlyGridOption> & {
|
|
56
|
-
/** Named application preset(s). Explicit table props still win. */
|
|
57
|
-
preset?: MachTablePresetSelection;
|
|
58
|
-
/** CSS class applied to the Vue host element. */
|
|
59
|
-
className?: string;
|
|
60
|
-
/** CSS class forwarded to MachTable's inner grid root. */
|
|
61
|
-
gridClassName?: string;
|
|
62
|
-
/** Accessible name forwarded to MachTable's inner role=grid element. */
|
|
63
|
-
gridAriaLabel?: string;
|
|
64
|
-
gridAriaLabelledBy?: string;
|
|
65
|
-
gridAriaDescribedBy?: string;
|
|
66
|
-
};
|
|
67
|
-
declare const MachTable: DefineComponent<MachTableVueProps<any>>;
|
|
68
|
-
/** @deprecated Use MachTable. Kept as a source-compatible alias through 0.x. */
|
|
69
|
-
declare const RobotGrid: DefineComponent<MachTableVueProps<any>>;
|
|
70
|
-
/** @deprecated Use MachTableVueProps. */
|
|
71
|
-
type RobotGridVueProps<TData = any> = MachTableVueProps<TData>;
|
|
72
|
-
|
|
73
|
-
declare module "vue" {
|
|
74
|
-
interface GlobalComponents {
|
|
75
|
-
MachTable: typeof MachTable;
|
|
76
|
-
RobotGrid: typeof MachTable;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
interface MachTablePluginOptions extends MachTableRuntimeConfig {
|
|
80
|
-
/** Global component name. Defaults to `MachTable`. */
|
|
81
|
-
componentName?: string;
|
|
82
|
-
/** Also register the backwards-compatible `RobotGrid` name. Defaults to true. */
|
|
83
|
-
registerRobotGridAlias?: boolean;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export { type MachTableVueProps as M, type ResolvedMachTableConfig as R, type MachTablePluginOptions as a, type MachTableRuntimeConfig as b, MachTable as c, type MachTableConfigWarning as d, type MachTableOptionExplanation as e, type MachTablePresetSelection as f, type ResolvedMachTableGridOptions as g, RobotGrid as h, type RobotGridVueProps as i, defineMachTableConfig as j, mergeMachTableConfig as m, normalizeMachTableConfig as n, resolveMachTableGridOptions as r };
|
|
File without changes
|