@sectile/vue 0.11.1 → 0.13.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/dist/calendar.js +1 -1
- package/dist/calendar.js.map +1 -1
- package/dist/chart.d.ts +542 -0
- package/dist/chart.js +2 -0
- package/dist/chart.js.map +1 -0
- package/dist/data-grid.d.ts +2 -2
- package/dist/data-grid.js +1 -1
- package/dist/data-grid.js.map +1 -1
- package/dist/data-table.js +1 -1
- package/dist/data-table.js.map +1 -1
- package/dist/data-tree-grid.d.ts +2 -2
- package/dist/data-tree-grid.js +1 -1
- package/dist/data-tree-grid.js.map +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/date-range-picker.js.map +1 -1
- package/dist/date-time-picker.js +1 -1
- package/dist/date-time-picker.js.map +1 -1
- package/dist/date-time-range-picker.js +1 -1
- package/dist/date-time-range-picker.js.map +1 -1
- package/dist/form.d.ts +45 -23
- package/dist/form.js +1 -1
- package/dist/form.js.map +1 -1
- package/dist/internal/calendar-capability.d.ts +1 -0
- package/dist/internal/calendar-capability.js +2 -0
- package/dist/internal/calendar-capability.js.map +1 -0
- package/dist/internal/date-picker-capability.d.ts +1 -0
- package/dist/internal/date-picker-capability.js +2 -0
- package/dist/internal/date-picker-capability.js.map +1 -0
- package/dist/internal/date-picker.d.ts +8 -7
- package/dist/internal/date-picker.js +1 -1
- package/dist/internal/date-picker.js.map +1 -1
- package/dist/internal/date-range-picker-capability.d.ts +1 -0
- package/dist/internal/date-range-picker-capability.js +2 -0
- package/dist/internal/date-range-picker-capability.js.map +1 -0
- package/dist/internal/date-time-picker-capability.d.ts +1 -0
- package/dist/internal/date-time-picker-capability.js +2 -0
- package/dist/internal/date-time-picker-capability.js.map +1 -0
- package/dist/internal/date-time-range-picker-capability.d.ts +1 -0
- package/dist/internal/date-time-range-picker-capability.js +2 -0
- package/dist/internal/date-time-range-picker-capability.js.map +1 -0
- package/dist/internal/month-picker-capability.d.ts +1 -0
- package/dist/internal/month-picker-capability.js +2 -0
- package/dist/internal/month-picker-capability.js.map +1 -0
- package/dist/internal/month-range-picker-capability.d.ts +1 -0
- package/dist/internal/month-range-picker-capability.js +2 -0
- package/dist/internal/month-range-picker-capability.js.map +1 -0
- package/dist/internal/picker-capability.d.ts +27 -0
- package/dist/internal/picker-capability.js +2 -0
- package/dist/internal/picker-capability.js.map +1 -0
- package/dist/internal/range-calendar-capability.d.ts +1 -0
- package/dist/internal/range-calendar-capability.js +2 -0
- package/dist/internal/range-calendar-capability.js.map +1 -0
- package/dist/internal/tabular-parts.d.ts +4 -0
- package/dist/internal/tabular-parts.js +1 -1
- package/dist/internal/tabular-parts.js.map +1 -1
- package/dist/internal/tabular-profile.d.ts +4 -4
- package/dist/internal/tabular-profile.js.map +1 -1
- package/dist/internal/virtual-core.d.ts +4 -9
- package/dist/internal/virtual-core.js.map +1 -1
- package/dist/internal/virtual-list.js +1 -1
- package/dist/internal/virtual-list.js.map +1 -1
- package/dist/internal/year-picker-capability.d.ts +1 -0
- package/dist/internal/year-picker-capability.js +2 -0
- package/dist/internal/year-picker-capability.js.map +1 -0
- package/dist/internal/year-range-picker-capability.d.ts +1 -0
- package/dist/internal/year-range-picker-capability.js +2 -0
- package/dist/internal/year-range-picker-capability.js.map +1 -0
- package/dist/month-picker.js +1 -1
- package/dist/month-picker.js.map +1 -1
- package/dist/month-range-picker.js +1 -1
- package/dist/month-range-picker.js.map +1 -1
- package/dist/range-calendar.js +1 -1
- package/dist/range-calendar.js.map +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tabs.js.map +1 -1
- package/dist/text.js +1 -1
- package/dist/text.js.map +1 -1
- package/dist/year-picker.js +1 -1
- package/dist/year-picker.js.map +1 -1
- package/dist/year-range-picker.js +1 -1
- package/dist/year-range-picker.js.map +1 -1
- package/package.json +22 -11
package/dist/calendar.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{defineComponent,h,mergeProps}from'vue';import{PickerCell,PickerContent,PickerGrid,PickerMonthCell,createPickerInput,createPickerMove,createPickerRoot,createPickerViewTrigger,specializePickerRootPart}from'./internal/date-picker.js';const CalendarProviderRoot=/* @__PURE__ */createPickerRoot(
|
|
1
|
+
import{defineComponent,h,mergeProps}from'vue';import{PickerCell,PickerContent,PickerGrid,PickerMonthCell,createPickerInput,createPickerMove,createPickerRoot,createPickerViewTrigger,specializePickerRootPart}from'./internal/date-picker.js';import{calendarCapability}from'./internal/calendar-capability.js';const CalendarProviderRoot=/* @__PURE__ */createPickerRoot(calendarCapability,'SectileCalendarProviderRoot',{scope:'calendar',defaultOpen:true,defaultView:'month',inline:true});export const CalendarRoot=/* @__PURE__ */defineComponent({name:'SectileCalendarRoot',inheritAttrs:false,props:{modelValue:{type:Object,default:undefined},defaultValue:{type:Object,default:null},highlightedValue:{type:Object,default:undefined},defaultHighlightedValue:{type:Object,default:undefined},defaultView:{type:String,default:'month'},disabled:{type:Boolean,default:false},readonly:{type:Boolean,default:false},required:{type:Boolean,default:false},label:{type:String,default:undefined},policies:{type:Object,default:undefined}},emits:{'update:modelValue':_value=>true,'update:highlightedValue':_value=>true},slots:Object,setup(props,{attrs,emit,slots}){return()=>h(CalendarProviderRoot,mergeProps(attrs,props,{'onUpdate:modelValue':value=>emit('update:modelValue',value),'onUpdate:highlightedValue':value=>emit('update:highlightedValue',value)}),slots)}});export const CalendarContent=/* @__PURE__ */specializePickerRootPart('calendar',PickerContent);export const CalendarGrid=/* @__PURE__ */specializePickerRootPart('calendar',PickerGrid);export const CalendarCell=PickerCell;export const CalendarMonthCell=PickerMonthCell;export const CalendarInput=/* @__PURE__ */createPickerInput('input','SectileCalendarInput','hidden');export const CalendarPreviousWeek=/* @__PURE__ */specializePickerRootPart('calendar',createPickerMove('week',-1,'SectileCalendarPreviousWeek'));export const CalendarNextWeek=/* @__PURE__ */specializePickerRootPart('calendar',createPickerMove('week',1,'SectileCalendarNextWeek'));export const CalendarPreviousMonth=/* @__PURE__ */specializePickerRootPart('calendar',createPickerMove('month',-1,'SectileCalendarPreviousMonth'));export const CalendarNextMonth=/* @__PURE__ */specializePickerRootPart('calendar',createPickerMove('month',1,'SectileCalendarNextMonth'));export const CalendarPreviousYear=/* @__PURE__ */specializePickerRootPart('calendar',createPickerMove('year',-1,'SectileCalendarPreviousYear'));export const CalendarNextYear=/* @__PURE__ */specializePickerRootPart('calendar',createPickerMove('year',1,'SectileCalendarNextYear'));export const CalendarWeekViewTrigger=/* @__PURE__ */specializePickerRootPart('calendar',createPickerViewTrigger('week','SectileCalendarWeekViewTrigger'));export const CalendarMonthViewTrigger=/* @__PURE__ */specializePickerRootPart('calendar',createPickerViewTrigger('month','SectileCalendarMonthViewTrigger'));export const CalendarYearViewTrigger=/* @__PURE__ */specializePickerRootPart('calendar',createPickerViewTrigger('year','SectileCalendarYearViewTrigger'));
|
|
2
2
|
//# sourceMappingURL=calendar.js.map
|
package/dist/calendar.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.js","names":["defineComponent","h","mergeProps","PickerCell","PickerContent","PickerGrid","PickerMonthCell","createPickerInput","createPickerMove","createPickerRoot","createPickerViewTrigger","specializePickerRootPart","CalendarProviderRoot","scope","defaultOpen","defaultView","inline","CalendarRoot","name","inheritAttrs","props","modelValue","type","Object","default","undefined","defaultValue","highlightedValue","defaultHighlightedValue","String","disabled","Boolean","readonly","required","label","policies","emits","_value","slots","setup","attrs","emit","value","CalendarContent","CalendarGrid","CalendarCell","CalendarMonthCell","CalendarInput","CalendarPreviousWeek","CalendarNextWeek","CalendarPreviousMonth","CalendarNextMonth","CalendarPreviousYear","CalendarNextYear","CalendarWeekViewTrigger","CalendarMonthViewTrigger","CalendarYearViewTrigger"],"sources":["../src/calendar.ts"],"mappings":"OAOEA,gBACAC,EACAC,eAIK,aAELC,WACAC,cACAC,WACAC,gBACAC,kBACAC,iBACAC,iBACAC,wBACAC,6BAKK,
|
|
1
|
+
{"version":3,"file":"calendar.js","names":["defineComponent","h","mergeProps","PickerCell","PickerContent","PickerGrid","PickerMonthCell","createPickerInput","createPickerMove","createPickerRoot","createPickerViewTrigger","specializePickerRootPart","calendarCapability","CalendarProviderRoot","scope","defaultOpen","defaultView","inline","CalendarRoot","name","inheritAttrs","props","modelValue","type","Object","default","undefined","defaultValue","highlightedValue","defaultHighlightedValue","String","disabled","Boolean","readonly","required","label","policies","emits","_value","slots","setup","attrs","emit","value","CalendarContent","CalendarGrid","CalendarCell","CalendarMonthCell","CalendarInput","CalendarPreviousWeek","CalendarNextWeek","CalendarPreviousMonth","CalendarNextMonth","CalendarPreviousYear","CalendarNextYear","CalendarWeekViewTrigger","CalendarMonthViewTrigger","CalendarYearViewTrigger"],"sources":["../src/calendar.ts"],"mappings":"OAOEA,gBACAC,EACAC,eAIK,aAELC,WACAC,cACAC,WACAC,gBACAC,kBACAC,iBACAC,iBACAC,wBACAC,6BAKK,mCACEC,uBAA0B,oCA2BnC,MAAMC,oCAAuCJ,iBAAiBG,mBAAoB,8BAA+B,CAC/GE,MAAO,WACPC,YAAa,KACbC,YAAa,QACbC,OAAQ,cAGH,MAAMC,4BAA+BlB,gBAAgB,CAC1DmB,KAAM,sBACNC,aAAc,MACdC,MAAO,CACLC,WAAY,CAAEC,KAAMC,OAAsCC,QAASC,WACnEC,aAAc,CAAEJ,KAAMC,OAAsCC,QAAS,MACrEG,iBAAkB,CAAEL,KAAMC,OAA+BC,QAASC,WAClEG,wBAAyB,CAAEN,KAAMC,OAA+BC,QAASC,WACzEV,YAAa,CAAEO,KAAMO,OAAsCL,QAAS,SACpEM,SAAU,CAAER,KAAMS,QAASP,QAAS,OACpCQ,SAAU,CAAEV,KAAMS,QAASP,QAAS,OACpCS,SAAU,CAAEX,KAAMS,QAASP,QAAS,OACpCU,MAAO,CAAEZ,KAAMO,OAAQL,QAASC,WAChCU,SAAU,CAAEb,KAAMC,OAAsCC,QAASC,YAEnEW,MAAO,CACL,oBAAsBC,QAAsC,KAC5D,0BAA4BA,QAA+B,MAE7DC,MAAOf,OACP,KAAAgB,CAAMnB,OAAOoB,MAAOC,KAAMH,QACxB,MAAO,IAAkBtC,EAAEY,qBAAsBX,WAAWuC,MAAOpB,MAAO,CACxE,sBAAwBsB,OAA0DD,KAAK,oBAAqBC,OAC5G,4BAA8BA,OAAqBD,KAAK,0BAA2BC,SACjFJ,MACN,WAIK,MAAMK,+BAAkCjC,yBAAyB,WAAYP,sBAC7E,MAAMyC,4BAA+BlC,yBAAyB,WAAYN,mBAC1E,MAAMyC,aAAe3C,kBACrB,MAAM4C,kBAAoBzC,uBAC1B,MAAM0C,6BAAgCzC,kBAAkB,QAAS,uBAAwB,iBACzF,MAAM0C,oCAAuCtC,yBAAyB,WAAYH,iBAAiB,QAAS,EAAG,uCAC/G,MAAM0C,gCAAmCvC,yBAAyB,WAAYH,iBAAiB,OAAQ,EAAG,mCAC1G,MAAM2C,qCAAwCxC,yBAAyB,WAAYH,iBAAiB,SAAU,EAAG,wCACjH,MAAM4C,iCAAoCzC,yBAAyB,WAAYH,iBAAiB,QAAS,EAAG,oCAC5G,MAAM6C,oCAAuC1C,yBAAyB,WAAYH,iBAAiB,QAAS,EAAG,uCAC/G,MAAM8C,gCAAmC3C,yBAAyB,WAAYH,iBAAiB,OAAQ,EAAG,mCAC1G,MAAM+C,uCAA0C5C,yBAAyB,WAAYD,wBAAwB,OAAQ,0CACrH,MAAM8C,wCAA2C7C,yBAAyB,WAAYD,wBAAwB,QAAS,2CACvH,MAAM+C,uCAA0C9C,yBAAyB,WAAYD,wBAAwB,OAAQ","ignoreList":[]}
|
package/dist/chart.d.ts
ADDED
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import type { StableID } from '@sectile/core';
|
|
2
|
+
import type { RevisionSnapshot } from '@sectile/core/revision';
|
|
3
|
+
import type { UnitID } from '@sectile/core/units';
|
|
4
|
+
import { type ChartController } from '@sectile/chart/controller';
|
|
5
|
+
import type { ChartAccessor, ChartAxisDomainInput, ChartAxisInputValue, ChartAxisViewUpdateMode, ChartAxisViewWindow, ChartHeatmapReduction, ChartViewState } from '@sectile/chart/contract';
|
|
6
|
+
import type { ChartDefinition, ChartDefinitionState, ResolvedChartLayer } from '@sectile/chart/definition';
|
|
7
|
+
import type { ChartCommand, ChartEvent, ChartSelection, ChartState } from '@sectile/chart/interaction';
|
|
8
|
+
import type { ChartLimits, ChartModel, ChartPatch } from '@sectile/chart/model';
|
|
9
|
+
import type { ChartProjection } from '@sectile/chart/projection';
|
|
10
|
+
import type { ChartResult } from '@sectile/chart/result';
|
|
11
|
+
import type { ChartScaleKind } from '@sectile/chart/scale';
|
|
12
|
+
import type { ChartAxisViewCapability } from '@sectile/chart/view';
|
|
13
|
+
import type { ResolvedChartAxis } from '@sectile/chart/layout';
|
|
14
|
+
import { type DOMChartConnection, type DOMChartDragMode, type DOMChartOptions, type DOMChartWheelMode, type DOMChartWheelModifier } from '@sectile/dom/chart';
|
|
15
|
+
import { type AllowedComponentProps, type ComponentCustomProps, type MaybeRefOrGetter, type PropType, type ShallowRef, type VNodeChild, type VNodeProps } from 'vue';
|
|
16
|
+
export interface ChartWritableRef<T> {
|
|
17
|
+
value: T;
|
|
18
|
+
}
|
|
19
|
+
export type ChartReactiveModel<ID extends StableID = StableID> = MaybeRefOrGetter<ChartModel<ID>>;
|
|
20
|
+
export type ChartReactiveDefinition<ID extends StableID = StableID> = MaybeRefOrGetter<ChartDefinition<any, ID>>;
|
|
21
|
+
interface UseChartStateOptions<ID extends StableID> {
|
|
22
|
+
readonly limits?: ChartLimits;
|
|
23
|
+
readonly activeDatum?: ChartWritableRef<ID | null>;
|
|
24
|
+
readonly defaultActiveDatum?: ID | null;
|
|
25
|
+
readonly cursor?: ChartWritableRef<ID | null>;
|
|
26
|
+
readonly defaultCursor?: ID | null;
|
|
27
|
+
readonly selection?: ChartWritableRef<ChartSelection<ID>>;
|
|
28
|
+
readonly defaultSelection?: ChartSelection<ID>;
|
|
29
|
+
readonly view?: ChartWritableRef<ChartViewState<ID> | null>;
|
|
30
|
+
readonly defaultView?: ChartViewState<ID> | null;
|
|
31
|
+
readonly onActiveDatumChange?: (value: ID | null) => void;
|
|
32
|
+
readonly onCursorChange?: (value: ID | null) => void;
|
|
33
|
+
readonly onSelectionChange?: (value: ChartSelection<ID>) => void;
|
|
34
|
+
readonly onViewChange?: (value: ChartViewState<ID> | null) => void;
|
|
35
|
+
readonly onCommand?: (command: ChartCommand<ID>) => void;
|
|
36
|
+
}
|
|
37
|
+
export type UseChartOptions<ID extends StableID = StableID> = UseChartStateOptions<ID> & ({
|
|
38
|
+
readonly model: ChartReactiveModel<ID>;
|
|
39
|
+
readonly definition?: never;
|
|
40
|
+
readonly viewCapabilities?: never;
|
|
41
|
+
} | {
|
|
42
|
+
readonly model?: never;
|
|
43
|
+
readonly definition: ChartReactiveDefinition<ID>;
|
|
44
|
+
readonly viewCapabilities?: MaybeRefOrGetter<readonly ChartAxisViewCapability<ID>[]>;
|
|
45
|
+
});
|
|
46
|
+
export interface UseChartResult<ID extends StableID = StableID> {
|
|
47
|
+
readonly controller: ChartController<ID>;
|
|
48
|
+
readonly snapshot: ShallowRef<RevisionSnapshot<ChartState<ID>>>;
|
|
49
|
+
readonly projection: ShallowRef<ChartProjection<ID> | null>;
|
|
50
|
+
readonly connection: ShallowRef<DOMChartConnection<ID> | null>;
|
|
51
|
+
replaceModel(model: ChartModel<ID>, expectedRevision?: number): ChartResult<RevisionSnapshot<ChartState<ID>>>;
|
|
52
|
+
replaceDefinition<Datum>(definition: ChartDefinition<Datum, ID>, viewCapabilities?: readonly ChartAxisViewCapability<ID>[], expectedRevision?: number): ChartResult<RevisionSnapshot<ChartState<ID>>>;
|
|
53
|
+
applyPatch(patch: ChartPatch<ID>, expectedRevision?: number): ChartResult<RevisionSnapshot<ChartState<ID>>>;
|
|
54
|
+
dispatch(event: ChartEvent<ID>, expectedRevision?: number): ChartResult<{
|
|
55
|
+
readonly snapshot: RevisionSnapshot<ChartState<ID>>;
|
|
56
|
+
readonly commands: readonly ChartCommand<ID>[];
|
|
57
|
+
}>;
|
|
58
|
+
syncControlledValues(): ChartResult<RevisionSnapshot<ChartState<ID>>>;
|
|
59
|
+
dispose(): void;
|
|
60
|
+
}
|
|
61
|
+
export interface ChartContext<ID extends StableID = StableID> {
|
|
62
|
+
readonly controller: Readonly<ShallowRef<ChartController<ID> | null>>;
|
|
63
|
+
readonly snapshot: Readonly<ShallowRef<RevisionSnapshot<ChartState<ID>> | null>>;
|
|
64
|
+
dispatch(event: ChartEvent<ID>): ChartResult<RevisionSnapshot<ChartState<ID>> | null>;
|
|
65
|
+
applyPatch(patch: ChartPatch<ID>): ChartResult<RevisionSnapshot<ChartState<ID>> | null>;
|
|
66
|
+
}
|
|
67
|
+
export declare function useChart<ID extends StableID>(options: UseChartOptions<ID>): UseChartResult<ID>;
|
|
68
|
+
export interface ChartRootProps<ID extends StableID = StableID> {
|
|
69
|
+
readonly limits?: ChartLimits;
|
|
70
|
+
readonly modelValue?: ChartSelection<ID>;
|
|
71
|
+
readonly defaultModelValue?: ChartSelection<ID>;
|
|
72
|
+
readonly activeDatum?: ID | null;
|
|
73
|
+
readonly defaultActiveDatum?: ID | null;
|
|
74
|
+
readonly cursor?: ID | null;
|
|
75
|
+
readonly defaultCursor?: ID | null;
|
|
76
|
+
readonly view?: ChartViewState<ID> | null;
|
|
77
|
+
readonly defaultView?: ChartViewState<ID> | null;
|
|
78
|
+
readonly patch?: ChartPatch<ID> | null;
|
|
79
|
+
readonly dom?: Omit<DOMChartOptions<ID>, 'root' | 'canvas' | 'controller' | 'navigation'>;
|
|
80
|
+
readonly onError?: (error: unknown) => void;
|
|
81
|
+
}
|
|
82
|
+
export interface ChartRootSlotProps<ID extends StableID = StableID> {
|
|
83
|
+
readonly controller: ChartController<ID> | null;
|
|
84
|
+
readonly snapshot: RevisionSnapshot<ChartState<ID>> | null;
|
|
85
|
+
readonly state: ChartState<ID> | null;
|
|
86
|
+
readonly projection: ChartProjection<ID> | null;
|
|
87
|
+
readonly definition: ChartDefinitionState<ID> | null;
|
|
88
|
+
}
|
|
89
|
+
export interface ChartDeclarationDiagnostics {
|
|
90
|
+
readonly registeredRecords: number;
|
|
91
|
+
readonly publications: number;
|
|
92
|
+
readonly readRecords: number;
|
|
93
|
+
}
|
|
94
|
+
export type ChartRootPublicProps<ID extends StableID = StableID> = ChartRootProps<ID> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
95
|
+
readonly 'onUpdate:modelValue'?: (value: ChartSelection<ID>) => unknown;
|
|
96
|
+
readonly 'onUpdate:activeDatum'?: (value: ID | null) => unknown;
|
|
97
|
+
readonly 'onUpdate:cursor'?: (value: ID | null) => unknown;
|
|
98
|
+
readonly 'onUpdate:view'?: (value: ChartViewState<ID> | null) => unknown;
|
|
99
|
+
readonly onCommand?: (command: ChartCommand<ID>) => unknown;
|
|
100
|
+
};
|
|
101
|
+
export interface ChartRootComponent {
|
|
102
|
+
new <ID extends StableID = StableID>(props: ChartRootPublicProps<ID>): {
|
|
103
|
+
$props: ChartRootPublicProps<ID>;
|
|
104
|
+
$slots: {
|
|
105
|
+
default?: (props: ChartRootSlotProps<ID>) => VNodeChild;
|
|
106
|
+
};
|
|
107
|
+
readonly controller: ShallowRef<ChartController<ID> | null>;
|
|
108
|
+
getDeclarationDiagnostics(): ChartDeclarationDiagnostics;
|
|
109
|
+
refresh(): void;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
export declare function useChartContext<ID extends StableID = StableID>(): ChartContext<ID>;
|
|
113
|
+
export interface ChartProviderProps<ID extends StableID = StableID> {
|
|
114
|
+
readonly controller: ChartController<ID>;
|
|
115
|
+
}
|
|
116
|
+
export interface ChartProviderSlotProps<ID extends StableID = StableID> {
|
|
117
|
+
readonly controller: ChartController<ID>;
|
|
118
|
+
readonly snapshot: RevisionSnapshot<ChartState<ID>>;
|
|
119
|
+
readonly state: ChartState<ID>;
|
|
120
|
+
readonly definition: ChartDefinitionState<ID> | null;
|
|
121
|
+
}
|
|
122
|
+
export interface ChartProviderComponent {
|
|
123
|
+
new <ID extends StableID = StableID>(props: ChartProviderProps<ID>): {
|
|
124
|
+
$props: ChartProviderProps<ID>;
|
|
125
|
+
$slots: {
|
|
126
|
+
default?: (props: ChartProviderSlotProps<ID>) => VNodeChild;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export declare const ChartProvider: ChartProviderComponent;
|
|
131
|
+
export type ChartSelectorFunction<ID extends StableID, Selected> = (state: ChartState<ID> | null) => Selected;
|
|
132
|
+
export type ChartLayerSelectorFunction<ID extends StableID, Selected> = (layer: ResolvedChartLayer<ID> | null) => Selected;
|
|
133
|
+
export type ChartAxisSelectorFunction<ID extends StableID, Selected> = (axis: ResolvedChartAxis<ID> | null) => Selected;
|
|
134
|
+
export interface ChartSelectorOptions<Selected> {
|
|
135
|
+
readonly equals?: (previous: Selected, next: Selected) => boolean;
|
|
136
|
+
}
|
|
137
|
+
export declare function useChartSelector<ID extends StableID, Selected>(selector: ChartSelectorFunction<ID, Selected>, options?: ChartSelectorOptions<Selected>): Readonly<ShallowRef<Selected>>;
|
|
138
|
+
export declare function useChartLayerSelector<ID extends StableID, Selected>(id: ID, selector: ChartLayerSelectorFunction<ID, Selected>, options?: ChartSelectorOptions<Selected>): Readonly<ShallowRef<Selected>>;
|
|
139
|
+
export declare function useChartAxisSelector<ID extends StableID, Selected>(id: ID, selector: ChartAxisSelectorFunction<ID, Selected>, options?: ChartSelectorOptions<Selected>): Readonly<ShallowRef<Selected>>;
|
|
140
|
+
export declare const ChartRoot: ChartRootComponent;
|
|
141
|
+
export declare const ChartCartesian: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
142
|
+
export declare const ChartRadial: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
143
|
+
export interface ChartAxisProps<ID extends StableID = StableID> {
|
|
144
|
+
readonly id: ID;
|
|
145
|
+
readonly scale?: ChartScaleKind;
|
|
146
|
+
readonly domain?: ChartAxisDomainInput;
|
|
147
|
+
readonly field?: string;
|
|
148
|
+
readonly getValue?: ChartAccessor<any, ChartAxisInputValue>;
|
|
149
|
+
readonly ticks?: number;
|
|
150
|
+
readonly label?: string;
|
|
151
|
+
readonly unit?: UnitID;
|
|
152
|
+
}
|
|
153
|
+
export declare const ChartXAxis: GenericSemanticComponent<ChartAxisProps>;
|
|
154
|
+
export declare const ChartYAxis: GenericSemanticComponent<ChartAxisProps>;
|
|
155
|
+
interface GenericSemanticComponent<Props> {
|
|
156
|
+
new <ID extends StableID = StableID>(props: Props & {
|
|
157
|
+
readonly id: ID;
|
|
158
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps): {
|
|
159
|
+
$props: Props & {
|
|
160
|
+
readonly id: ID;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
interface ChartLayerBaseProps<Datum, ID extends StableID> {
|
|
165
|
+
readonly id: ID;
|
|
166
|
+
readonly data: readonly Datum[];
|
|
167
|
+
readonly getId?: ChartAccessor<Datum, ID>;
|
|
168
|
+
readonly label?: string;
|
|
169
|
+
}
|
|
170
|
+
export interface ChartCartesianLayerProps<Datum = unknown, ID extends StableID = StableID> extends ChartLayerBaseProps<Datum, ID> {
|
|
171
|
+
readonly xAxis: ID;
|
|
172
|
+
readonly yAxis: ID;
|
|
173
|
+
readonly getX?: ChartAccessor<Datum, ChartAxisInputValue>;
|
|
174
|
+
readonly getY?: ChartAccessor<Datum, ChartAxisInputValue>;
|
|
175
|
+
}
|
|
176
|
+
export interface ChartScatterProps<Datum = unknown, ID extends StableID = StableID> extends ChartCartesianLayerProps<Datum, ID> {
|
|
177
|
+
readonly projection?: 'raw' | 'density';
|
|
178
|
+
}
|
|
179
|
+
export interface ChartBarProps<Datum = unknown, ID extends StableID = StableID> extends ChartCartesianLayerProps<Datum, ID> {
|
|
180
|
+
readonly orientation?: 'vertical' | 'horizontal';
|
|
181
|
+
}
|
|
182
|
+
export interface ChartHeatmapProps<Datum = unknown, ID extends StableID = StableID> extends ChartCartesianLayerProps<Datum, ID> {
|
|
183
|
+
readonly getValue?: ChartAccessor<Datum, number>;
|
|
184
|
+
readonly valueField?: string;
|
|
185
|
+
readonly projection?: 'raw' | {
|
|
186
|
+
readonly kind: 'aggregate';
|
|
187
|
+
readonly reduction: ChartHeatmapReduction;
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
export interface ChartRadialLayerProps<Datum = unknown, ID extends StableID = StableID> extends ChartLayerBaseProps<Datum, ID> {
|
|
191
|
+
readonly getValue?: ChartAccessor<Datum, number>;
|
|
192
|
+
readonly valueField?: string;
|
|
193
|
+
readonly getLabel?: ChartAccessor<Datum, string>;
|
|
194
|
+
readonly labelField?: string;
|
|
195
|
+
}
|
|
196
|
+
export interface ChartDonutProps<Datum = unknown, ID extends StableID = StableID> extends ChartRadialLayerProps<Datum, ID> {
|
|
197
|
+
readonly innerRadius?: number;
|
|
198
|
+
readonly outerRadius?: number;
|
|
199
|
+
}
|
|
200
|
+
type ChartSemanticPublicProps<Props> = Props & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
201
|
+
export interface ChartLineComponent {
|
|
202
|
+
new <Datum = unknown, ID extends StableID = StableID>(props: ChartSemanticPublicProps<ChartCartesianLayerProps<Datum, ID>>): {
|
|
203
|
+
$props: ChartCartesianLayerProps<Datum, ID>;
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
export interface ChartScatterComponent {
|
|
207
|
+
new <Datum = unknown, ID extends StableID = StableID>(props: ChartSemanticPublicProps<ChartScatterProps<Datum, ID>>): {
|
|
208
|
+
$props: ChartScatterProps<Datum, ID>;
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
export interface ChartBarComponent {
|
|
212
|
+
new <Datum = unknown, ID extends StableID = StableID>(props: ChartSemanticPublicProps<ChartBarProps<Datum, ID>>): {
|
|
213
|
+
$props: ChartBarProps<Datum, ID>;
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
export interface ChartHeatmapComponent {
|
|
217
|
+
new <Datum = unknown, ID extends StableID = StableID>(props: ChartSemanticPublicProps<ChartHeatmapProps<Datum, ID>>): {
|
|
218
|
+
$props: ChartHeatmapProps<Datum, ID>;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
export interface ChartPieComponent {
|
|
222
|
+
new <Datum = unknown, ID extends StableID = StableID>(props: ChartSemanticPublicProps<ChartRadialLayerProps<Datum, ID>>): {
|
|
223
|
+
$props: ChartRadialLayerProps<Datum, ID>;
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
export interface ChartDonutComponent {
|
|
227
|
+
new <Datum = unknown, ID extends StableID = StableID>(props: ChartSemanticPublicProps<ChartDonutProps<Datum, ID>>): {
|
|
228
|
+
$props: ChartDonutProps<Datum, ID>;
|
|
229
|
+
};
|
|
230
|
+
}
|
|
231
|
+
export declare const ChartLine: ChartLineComponent;
|
|
232
|
+
export declare const ChartScatter: ChartScatterComponent;
|
|
233
|
+
export declare const ChartBar: ChartBarComponent;
|
|
234
|
+
export declare const ChartBars: ChartBarComponent;
|
|
235
|
+
export declare const ChartHeatmap: ChartHeatmapComponent;
|
|
236
|
+
export declare const ChartPie: ChartPieComponent;
|
|
237
|
+
export declare const ChartDonut: ChartDonutComponent;
|
|
238
|
+
export interface ChartAxisViewProps<ID extends StableID = StableID> {
|
|
239
|
+
readonly axis?: ID;
|
|
240
|
+
readonly initial?: ChartAxisViewWindow;
|
|
241
|
+
readonly minimumSpan?: number;
|
|
242
|
+
readonly maximumSpan?: number;
|
|
243
|
+
readonly update?: ChartAxisViewUpdateMode;
|
|
244
|
+
}
|
|
245
|
+
export declare const ChartAxisView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
246
|
+
axis: {
|
|
247
|
+
type: PropType<StableID>;
|
|
248
|
+
default: undefined;
|
|
249
|
+
};
|
|
250
|
+
initial: {
|
|
251
|
+
type: PropType<ChartAxisViewWindow>;
|
|
252
|
+
default: undefined;
|
|
253
|
+
};
|
|
254
|
+
minimumSpan: {
|
|
255
|
+
type: NumberConstructor;
|
|
256
|
+
default: undefined;
|
|
257
|
+
};
|
|
258
|
+
maximumSpan: {
|
|
259
|
+
type: NumberConstructor;
|
|
260
|
+
default: undefined;
|
|
261
|
+
};
|
|
262
|
+
update: {
|
|
263
|
+
type: PropType<ChartAxisViewUpdateMode>;
|
|
264
|
+
default: string;
|
|
265
|
+
};
|
|
266
|
+
}>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
267
|
+
axis: {
|
|
268
|
+
type: PropType<StableID>;
|
|
269
|
+
default: undefined;
|
|
270
|
+
};
|
|
271
|
+
initial: {
|
|
272
|
+
type: PropType<ChartAxisViewWindow>;
|
|
273
|
+
default: undefined;
|
|
274
|
+
};
|
|
275
|
+
minimumSpan: {
|
|
276
|
+
type: NumberConstructor;
|
|
277
|
+
default: undefined;
|
|
278
|
+
};
|
|
279
|
+
maximumSpan: {
|
|
280
|
+
type: NumberConstructor;
|
|
281
|
+
default: undefined;
|
|
282
|
+
};
|
|
283
|
+
update: {
|
|
284
|
+
type: PropType<ChartAxisViewUpdateMode>;
|
|
285
|
+
default: string;
|
|
286
|
+
};
|
|
287
|
+
}>> & Readonly<{}>, {
|
|
288
|
+
axis: StableID;
|
|
289
|
+
initial: ChartAxisViewWindow;
|
|
290
|
+
minimumSpan: number;
|
|
291
|
+
maximumSpan: number;
|
|
292
|
+
update: ChartAxisViewUpdateMode;
|
|
293
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
294
|
+
export interface ChartNavigationProps<ID extends StableID = StableID> {
|
|
295
|
+
readonly axes?: readonly ID[];
|
|
296
|
+
readonly drag?: DOMChartDragMode;
|
|
297
|
+
readonly wheel?: DOMChartWheelMode;
|
|
298
|
+
readonly wheelModifier?: DOMChartWheelModifier;
|
|
299
|
+
readonly pinch?: boolean;
|
|
300
|
+
readonly keyboard?: boolean;
|
|
301
|
+
}
|
|
302
|
+
export declare const ChartNavigation: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
303
|
+
axes: {
|
|
304
|
+
type: PropType<readonly StableID[]>;
|
|
305
|
+
default: undefined;
|
|
306
|
+
};
|
|
307
|
+
drag: {
|
|
308
|
+
type: PropType<DOMChartDragMode>;
|
|
309
|
+
default: string;
|
|
310
|
+
};
|
|
311
|
+
wheel: {
|
|
312
|
+
type: PropType<DOMChartWheelMode>;
|
|
313
|
+
default: string;
|
|
314
|
+
};
|
|
315
|
+
wheelModifier: {
|
|
316
|
+
type: PropType<DOMChartWheelModifier>;
|
|
317
|
+
default: string;
|
|
318
|
+
};
|
|
319
|
+
pinch: {
|
|
320
|
+
type: BooleanConstructor;
|
|
321
|
+
default: boolean;
|
|
322
|
+
};
|
|
323
|
+
keyboard: {
|
|
324
|
+
type: BooleanConstructor;
|
|
325
|
+
default: boolean;
|
|
326
|
+
};
|
|
327
|
+
}>, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
328
|
+
axes: {
|
|
329
|
+
type: PropType<readonly StableID[]>;
|
|
330
|
+
default: undefined;
|
|
331
|
+
};
|
|
332
|
+
drag: {
|
|
333
|
+
type: PropType<DOMChartDragMode>;
|
|
334
|
+
default: string;
|
|
335
|
+
};
|
|
336
|
+
wheel: {
|
|
337
|
+
type: PropType<DOMChartWheelMode>;
|
|
338
|
+
default: string;
|
|
339
|
+
};
|
|
340
|
+
wheelModifier: {
|
|
341
|
+
type: PropType<DOMChartWheelModifier>;
|
|
342
|
+
default: string;
|
|
343
|
+
};
|
|
344
|
+
pinch: {
|
|
345
|
+
type: BooleanConstructor;
|
|
346
|
+
default: boolean;
|
|
347
|
+
};
|
|
348
|
+
keyboard: {
|
|
349
|
+
type: BooleanConstructor;
|
|
350
|
+
default: boolean;
|
|
351
|
+
};
|
|
352
|
+
}>> & Readonly<{}>, {
|
|
353
|
+
axes: readonly StableID[];
|
|
354
|
+
drag: DOMChartDragMode;
|
|
355
|
+
wheel: DOMChartWheelMode;
|
|
356
|
+
wheelModifier: DOMChartWheelModifier;
|
|
357
|
+
pinch: boolean;
|
|
358
|
+
keyboard: boolean;
|
|
359
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
360
|
+
export declare const ChartViewControls: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
361
|
+
axis: {
|
|
362
|
+
type: PropType<StableID>;
|
|
363
|
+
default: undefined;
|
|
364
|
+
};
|
|
365
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
366
|
+
axis: {
|
|
367
|
+
type: PropType<StableID>;
|
|
368
|
+
default: undefined;
|
|
369
|
+
};
|
|
370
|
+
}>> & Readonly<{}>, {
|
|
371
|
+
axis: StableID;
|
|
372
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
373
|
+
export declare const ChartExternalViewControls: import("vue").DefineComponent<{}, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
374
|
+
export declare const ChartPanControl: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
375
|
+
axis: {
|
|
376
|
+
type: PropType<StableID>;
|
|
377
|
+
default: undefined;
|
|
378
|
+
};
|
|
379
|
+
label: {
|
|
380
|
+
type: StringConstructor;
|
|
381
|
+
default: undefined;
|
|
382
|
+
};
|
|
383
|
+
direction: {
|
|
384
|
+
type: PropType<'backward' | 'forward'>;
|
|
385
|
+
required: true;
|
|
386
|
+
};
|
|
387
|
+
step: {
|
|
388
|
+
type: NumberConstructor;
|
|
389
|
+
default: number;
|
|
390
|
+
};
|
|
391
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
392
|
+
axis: {
|
|
393
|
+
type: PropType<StableID>;
|
|
394
|
+
default: undefined;
|
|
395
|
+
};
|
|
396
|
+
label: {
|
|
397
|
+
type: StringConstructor;
|
|
398
|
+
default: undefined;
|
|
399
|
+
};
|
|
400
|
+
direction: {
|
|
401
|
+
type: PropType<'backward' | 'forward'>;
|
|
402
|
+
required: true;
|
|
403
|
+
};
|
|
404
|
+
step: {
|
|
405
|
+
type: NumberConstructor;
|
|
406
|
+
default: number;
|
|
407
|
+
};
|
|
408
|
+
}>> & Readonly<{}>, {
|
|
409
|
+
axis: StableID;
|
|
410
|
+
label: string;
|
|
411
|
+
step: number;
|
|
412
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
413
|
+
export declare const ChartZoomControl: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
414
|
+
axis: {
|
|
415
|
+
type: PropType<StableID>;
|
|
416
|
+
default: undefined;
|
|
417
|
+
};
|
|
418
|
+
label: {
|
|
419
|
+
type: StringConstructor;
|
|
420
|
+
default: undefined;
|
|
421
|
+
};
|
|
422
|
+
direction: {
|
|
423
|
+
type: PropType<'in' | 'out'>;
|
|
424
|
+
required: true;
|
|
425
|
+
};
|
|
426
|
+
factor: {
|
|
427
|
+
type: NumberConstructor;
|
|
428
|
+
default: number;
|
|
429
|
+
};
|
|
430
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
431
|
+
axis: {
|
|
432
|
+
type: PropType<StableID>;
|
|
433
|
+
default: undefined;
|
|
434
|
+
};
|
|
435
|
+
label: {
|
|
436
|
+
type: StringConstructor;
|
|
437
|
+
default: undefined;
|
|
438
|
+
};
|
|
439
|
+
direction: {
|
|
440
|
+
type: PropType<'in' | 'out'>;
|
|
441
|
+
required: true;
|
|
442
|
+
};
|
|
443
|
+
factor: {
|
|
444
|
+
type: NumberConstructor;
|
|
445
|
+
default: number;
|
|
446
|
+
};
|
|
447
|
+
}>> & Readonly<{}>, {
|
|
448
|
+
axis: StableID;
|
|
449
|
+
label: string;
|
|
450
|
+
factor: number;
|
|
451
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
452
|
+
export declare const ChartResetView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
453
|
+
axis: {
|
|
454
|
+
type: PropType<StableID>;
|
|
455
|
+
default: undefined;
|
|
456
|
+
};
|
|
457
|
+
label: {
|
|
458
|
+
type: StringConstructor;
|
|
459
|
+
default: undefined;
|
|
460
|
+
};
|
|
461
|
+
to: {
|
|
462
|
+
type: PropType<'initial' | 'latest'>;
|
|
463
|
+
default: string;
|
|
464
|
+
};
|
|
465
|
+
}>, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
466
|
+
axis: {
|
|
467
|
+
type: PropType<StableID>;
|
|
468
|
+
default: undefined;
|
|
469
|
+
};
|
|
470
|
+
label: {
|
|
471
|
+
type: StringConstructor;
|
|
472
|
+
default: undefined;
|
|
473
|
+
};
|
|
474
|
+
to: {
|
|
475
|
+
type: PropType<'initial' | 'latest'>;
|
|
476
|
+
default: string;
|
|
477
|
+
};
|
|
478
|
+
}>> & Readonly<{}>, {
|
|
479
|
+
axis: StableID;
|
|
480
|
+
label: string;
|
|
481
|
+
to: "initial" | "latest";
|
|
482
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
483
|
+
export declare const ChartPlot: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
484
|
+
export declare const ChartRenderer: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
485
|
+
export declare const ChartCanvas: import("vue").DefineComponent<{}, () => VNodeChild, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
486
|
+
export declare const ChartGrid: import("vue").DefineComponent<{}, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
487
|
+
export declare const ChartGridLines: import("vue").DefineComponent<{}, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
488
|
+
export declare const ChartLegend: import("vue").DefineComponent<{}, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
489
|
+
export declare const ChartAxisTicks: import("vue").DefineComponent<{}, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
490
|
+
export declare const ChartTicks: import("vue").DefineComponent<{}, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
491
|
+
export type ChartBoundProviderPublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
492
|
+
export interface ChartBoundProviderComponent<ID extends StableID = StableID> {
|
|
493
|
+
new (props: ChartBoundProviderPublicProps): {
|
|
494
|
+
$props: ChartBoundProviderPublicProps;
|
|
495
|
+
$slots: {
|
|
496
|
+
default?: (props: ChartProviderSlotProps<ID>) => VNodeChild;
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
export interface ChartBoundRootComponent<ID extends StableID = StableID> {
|
|
501
|
+
new (props: ChartRootPublicProps<ID>): {
|
|
502
|
+
$props: ChartRootPublicProps<ID>;
|
|
503
|
+
$slots: {
|
|
504
|
+
default?: (props: ChartRootSlotProps<ID>) => VNodeChild;
|
|
505
|
+
};
|
|
506
|
+
readonly controller: ShallowRef<ChartController<ID> | null>;
|
|
507
|
+
getDeclarationDiagnostics(): ChartDeclarationDiagnostics;
|
|
508
|
+
refresh(): void;
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
export interface ChartComponents<ID extends StableID = StableID> {
|
|
512
|
+
readonly Provider: ChartBoundProviderComponent<ID>;
|
|
513
|
+
readonly Root: ChartBoundRootComponent<ID>;
|
|
514
|
+
readonly Cartesian: typeof ChartCartesian;
|
|
515
|
+
readonly Radial: typeof ChartRadial;
|
|
516
|
+
readonly XAxis: typeof ChartXAxis;
|
|
517
|
+
readonly YAxis: typeof ChartYAxis;
|
|
518
|
+
readonly AxisView: typeof ChartAxisView;
|
|
519
|
+
readonly Line: typeof ChartLine;
|
|
520
|
+
readonly Scatter: typeof ChartScatter;
|
|
521
|
+
readonly Bar: typeof ChartBar;
|
|
522
|
+
readonly Bars: typeof ChartBars;
|
|
523
|
+
readonly Heatmap: typeof ChartHeatmap;
|
|
524
|
+
readonly Pie: typeof ChartPie;
|
|
525
|
+
readonly Donut: typeof ChartDonut;
|
|
526
|
+
readonly Navigation: typeof ChartNavigation;
|
|
527
|
+
readonly ViewControls: typeof ChartViewControls;
|
|
528
|
+
readonly ExternalViewControls: typeof ChartExternalViewControls;
|
|
529
|
+
readonly PanControl: typeof ChartPanControl;
|
|
530
|
+
readonly ZoomControl: typeof ChartZoomControl;
|
|
531
|
+
readonly ResetView: typeof ChartResetView;
|
|
532
|
+
readonly Plot: typeof ChartPlot;
|
|
533
|
+
readonly Renderer: typeof ChartRenderer;
|
|
534
|
+
readonly Canvas: typeof ChartCanvas;
|
|
535
|
+
readonly Grid: typeof ChartGrid;
|
|
536
|
+
readonly GridLines: typeof ChartGridLines;
|
|
537
|
+
readonly Legend: typeof ChartLegend;
|
|
538
|
+
readonly AxisTicks: typeof ChartAxisTicks;
|
|
539
|
+
readonly Ticks: typeof ChartTicks;
|
|
540
|
+
}
|
|
541
|
+
export declare function createChartComponents<ID extends StableID>(controller: ChartController<ID>): ChartComponents<ID>;
|
|
542
|
+
export {};
|