@ace-grid/wc 1.0.7
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 +36 -0
- package/dist/wc.cjs +6776 -0
- package/dist/wc.d.ts +60 -0
- package/dist/wc.js +9551 -0
- package/package.json +47 -0
package/dist/wc.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare const ACE_GRID_CUSTOM_EVENT_PREFIX: string;
|
|
2
|
+
export declare const ACE_GRID_CUSTOM_EVENTS: Record<string, string>;
|
|
3
|
+
export type AceGridCustomEventName = string;
|
|
4
|
+
export interface AceGridCustomEventDetail {
|
|
5
|
+
path: string[];
|
|
6
|
+
callback: string;
|
|
7
|
+
args: unknown[];
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}
|
|
10
|
+
export interface AceGridCustomElement<TProps extends Record<string, unknown> = Record<string, unknown>> extends HTMLElement {
|
|
11
|
+
props: TProps;
|
|
12
|
+
gridProps: TProps;
|
|
13
|
+
templates: AceGridTemplateRegistry;
|
|
14
|
+
setProps(partial: Partial<TProps>): void;
|
|
15
|
+
getProps(): TProps;
|
|
16
|
+
setTemplates(partial: Partial<AceGridTemplateRegistry>): void;
|
|
17
|
+
getTemplates(): AceGridTemplateRegistry;
|
|
18
|
+
rerender(): void;
|
|
19
|
+
}
|
|
20
|
+
export interface AceGridDomTemplateContext<TArgs = unknown> {
|
|
21
|
+
host: HTMLElement;
|
|
22
|
+
props: TArgs;
|
|
23
|
+
renderDefault?: () => Node | null;
|
|
24
|
+
}
|
|
25
|
+
export type AceGridDomTemplate<TArgs = unknown> = (context: AceGridDomTemplateContext<TArgs>) => unknown;
|
|
26
|
+
export type AceGridIconTemplateRegistry = Record<string, AceGridDomTemplate>;
|
|
27
|
+
export interface AceGridColumnTemplateRegistry {
|
|
28
|
+
cell?: AceGridDomTemplate;
|
|
29
|
+
header?: AceGridDomTemplate;
|
|
30
|
+
editor?: AceGridDomTemplate;
|
|
31
|
+
}
|
|
32
|
+
export interface AceGridTemplateRegistry {
|
|
33
|
+
columns?: Record<string, AceGridColumnTemplateRegistry>;
|
|
34
|
+
icons?: AceGridIconTemplateRegistry;
|
|
35
|
+
[key: string]: unknown;
|
|
36
|
+
}
|
|
37
|
+
export interface AceGridHookElement<
|
|
38
|
+
TGridProps extends Record<string, unknown> = Record<string, unknown>,
|
|
39
|
+
THookOptions = Record<string, unknown>,
|
|
40
|
+
TRows = unknown,
|
|
41
|
+
TActions = unknown
|
|
42
|
+
> extends AceGridCustomElement<TGridProps> {
|
|
43
|
+
hookOptions: THookOptions;
|
|
44
|
+
rows: TRows | null;
|
|
45
|
+
actions: TActions | null;
|
|
46
|
+
api: TActions | null;
|
|
47
|
+
setHookOptions(partial: Partial<THookOptions>): void;
|
|
48
|
+
getHookOptions(): THookOptions;
|
|
49
|
+
getRows(): TRows | null;
|
|
50
|
+
getActions(): TActions | null;
|
|
51
|
+
getApi(): TActions | null;
|
|
52
|
+
}
|
|
53
|
+
export interface AceGridUseGridElement extends AceGridHookElement {}
|
|
54
|
+
export declare function getAceGridCustomEventName(callbackName: string): AceGridCustomEventName;
|
|
55
|
+
export declare function createAceGridElementClass(...args: unknown[]): unknown;
|
|
56
|
+
export declare function defineAceGridElement(...args: unknown[]): unknown;
|
|
57
|
+
export declare function createAceGridHookElementClass(...args: unknown[]): unknown;
|
|
58
|
+
export declare function defineAceGridHookElement(...args: unknown[]): unknown;
|
|
59
|
+
export declare function createAceGridUseGridElementClass(...args: unknown[]): unknown;
|
|
60
|
+
export declare function defineAceGridUseGridElement(...args: unknown[]): unknown;
|