@fullcalendar/core 6.1.15 → 7.0.0-beta.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/index.cjs +48 -110
- package/index.d.ts +2 -1
- package/index.global.js +1558 -1794
- package/index.global.min.js +2 -2
- package/index.js +51 -113
- package/internal-common.cjs +1919 -2093
- package/internal-common.d.ts +176 -288
- package/internal-common.js +1905 -2073
- package/internal.cjs +16 -22
- package/internal.d.ts +2 -1
- package/internal.js +1 -1
- package/locales/af.global.js +1 -1
- package/locales/af.global.min.js +1 -1
- package/locales/ar-dz.global.js +1 -1
- package/locales/ar-dz.global.min.js +1 -1
- package/locales/ar-kw.global.js +1 -1
- package/locales/ar-kw.global.min.js +1 -1
- package/locales/ar-ly.global.js +1 -1
- package/locales/ar-ly.global.min.js +1 -1
- package/locales/ar-ma.global.js +1 -1
- package/locales/ar-ma.global.min.js +1 -1
- package/locales/ar-sa.global.js +1 -1
- package/locales/ar-sa.global.min.js +1 -1
- package/locales/ar-tn.global.js +1 -1
- package/locales/ar-tn.global.min.js +1 -1
- package/locales/ar.global.js +1 -1
- package/locales/ar.global.min.js +1 -1
- package/locales/az.global.js +1 -1
- package/locales/az.global.min.js +1 -1
- package/locales/bg.global.js +1 -1
- package/locales/bg.global.min.js +1 -1
- package/locales/bn.global.js +1 -1
- package/locales/bn.global.min.js +1 -1
- package/locales/bs.global.js +1 -1
- package/locales/bs.global.min.js +1 -1
- package/locales/ca.global.js +1 -1
- package/locales/ca.global.min.js +1 -1
- package/locales/cs.global.js +1 -1
- package/locales/cs.global.min.js +1 -1
- package/locales/cy.global.js +1 -1
- package/locales/cy.global.min.js +1 -1
- package/locales/da.global.js +1 -1
- package/locales/da.global.min.js +1 -1
- package/locales/de-at.global.js +1 -1
- package/locales/de-at.global.min.js +1 -1
- package/locales/de.global.js +1 -1
- package/locales/de.global.min.js +1 -1
- package/locales/el.global.js +1 -1
- package/locales/el.global.min.js +1 -1
- package/locales/en-au.global.js +1 -1
- package/locales/en-au.global.min.js +1 -1
- package/locales/en-gb.global.js +1 -1
- package/locales/en-gb.global.min.js +1 -1
- package/locales/en-nz.global.js +1 -1
- package/locales/en-nz.global.min.js +1 -1
- package/locales/eo.global.js +1 -1
- package/locales/eo.global.min.js +1 -1
- package/locales/es-us.global.js +1 -1
- package/locales/es-us.global.min.js +1 -1
- package/locales/es.global.js +1 -1
- package/locales/es.global.min.js +1 -1
- package/locales/et.global.js +1 -1
- package/locales/et.global.min.js +1 -1
- package/locales/eu.global.js +1 -1
- package/locales/eu.global.min.js +1 -1
- package/locales/fa.global.js +1 -1
- package/locales/fa.global.min.js +1 -1
- package/locales/fi.global.js +1 -1
- package/locales/fi.global.min.js +1 -1
- package/locales/fr-ca.global.js +1 -1
- package/locales/fr-ca.global.min.js +1 -1
- package/locales/fr-ch.global.js +1 -1
- package/locales/fr-ch.global.min.js +1 -1
- package/locales/fr.global.js +1 -1
- package/locales/fr.global.min.js +1 -1
- package/locales/gl.global.js +1 -1
- package/locales/gl.global.min.js +1 -1
- package/locales/he.global.js +1 -1
- package/locales/he.global.min.js +1 -1
- package/locales/hi.global.js +1 -1
- package/locales/hi.global.min.js +1 -1
- package/locales/hr.global.js +1 -1
- package/locales/hr.global.min.js +1 -1
- package/locales/hu.global.js +1 -1
- package/locales/hu.global.min.js +1 -1
- package/locales/hy-am.global.js +1 -1
- package/locales/hy-am.global.min.js +1 -1
- package/locales/id.global.js +1 -1
- package/locales/id.global.min.js +1 -1
- package/locales/is.global.js +1 -1
- package/locales/is.global.min.js +1 -1
- package/locales/it.global.js +1 -1
- package/locales/it.global.min.js +1 -1
- package/locales/ja.global.js +1 -1
- package/locales/ja.global.min.js +1 -1
- package/locales/ka.global.js +1 -1
- package/locales/ka.global.min.js +1 -1
- package/locales/kk.global.js +1 -1
- package/locales/kk.global.min.js +1 -1
- package/locales/km.global.js +1 -1
- package/locales/km.global.min.js +1 -1
- package/locales/ko.global.js +1 -1
- package/locales/ko.global.min.js +1 -1
- package/locales/ku.global.js +1 -1
- package/locales/ku.global.min.js +1 -1
- package/locales/lb.global.js +1 -1
- package/locales/lb.global.min.js +1 -1
- package/locales/lt.global.js +1 -1
- package/locales/lt.global.min.js +1 -1
- package/locales/lv.global.js +1 -1
- package/locales/lv.global.min.js +1 -1
- package/locales/mk.global.js +1 -1
- package/locales/mk.global.min.js +1 -1
- package/locales/ms.global.js +1 -1
- package/locales/ms.global.min.js +1 -1
- package/locales/nb.global.js +1 -1
- package/locales/nb.global.min.js +1 -1
- package/locales/ne.global.js +1 -1
- package/locales/ne.global.min.js +1 -1
- package/locales/nl.global.js +1 -1
- package/locales/nl.global.min.js +1 -1
- package/locales/nn.global.js +1 -1
- package/locales/nn.global.min.js +1 -1
- package/locales/pl.global.js +1 -1
- package/locales/pl.global.min.js +1 -1
- package/locales/pt-br.global.js +1 -1
- package/locales/pt-br.global.min.js +1 -1
- package/locales/pt.global.js +1 -1
- package/locales/pt.global.min.js +1 -1
- package/locales/ro.global.js +1 -1
- package/locales/ro.global.min.js +1 -1
- package/locales/ru.global.js +1 -1
- package/locales/ru.global.min.js +1 -1
- package/locales/si-lk.global.js +1 -1
- package/locales/si-lk.global.min.js +1 -1
- package/locales/sk.global.js +1 -1
- package/locales/sk.global.min.js +1 -1
- package/locales/sl.global.js +1 -1
- package/locales/sl.global.min.js +1 -1
- package/locales/sm.global.js +1 -1
- package/locales/sm.global.min.js +1 -1
- package/locales/sq.global.js +1 -1
- package/locales/sq.global.min.js +1 -1
- package/locales/sr-cyrl.global.js +1 -1
- package/locales/sr-cyrl.global.min.js +1 -1
- package/locales/sr.global.js +1 -1
- package/locales/sr.global.min.js +1 -1
- package/locales/sv.global.js +1 -1
- package/locales/sv.global.min.js +1 -1
- package/locales/ta-in.global.js +1 -1
- package/locales/ta-in.global.min.js +1 -1
- package/locales/th.global.js +1 -1
- package/locales/th.global.min.js +1 -1
- package/locales/tr.global.js +1 -1
- package/locales/tr.global.min.js +1 -1
- package/locales/ug.global.js +1 -1
- package/locales/ug.global.min.js +1 -1
- package/locales/uk.global.js +1 -1
- package/locales/uk.global.min.js +1 -1
- package/locales/uz-cy.global.js +1 -1
- package/locales/uz-cy.global.min.js +1 -1
- package/locales/uz.global.js +1 -1
- package/locales/uz.global.min.js +1 -1
- package/locales/vi.global.js +1 -1
- package/locales/vi.global.min.js +1 -1
- package/locales/zh-cn.global.js +1 -1
- package/locales/zh-cn.global.min.js +1 -1
- package/locales/zh-tw.global.js +1 -1
- package/locales/zh-tw.global.min.js +1 -1
- package/locales-all.global.js +1 -1
- package/locales-all.global.min.js +1 -1
- package/package.json +2 -2
- package/preact.d.ts +6 -0
- package/preact.js +1 -1
package/internal-common.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as preact from 'preact';
|
|
2
|
-
import { ComponentChildren, ComponentType, Context, Ref, Component,
|
|
2
|
+
import { ComponentChildren, ComponentType, Context, Ref, Component, JSX, ComponentChild, FunctionalComponent, createElement, RefObject } from './preact.js';
|
|
3
3
|
import { ViewApi as ViewApi$1 } from './index.js';
|
|
4
|
+
import { DateComponent as DateComponent$1, Dictionary as Dictionary$1 } from './internal.js';
|
|
4
5
|
|
|
5
6
|
type DurationInput = DurationObjectInput | string | number;
|
|
6
7
|
interface DurationObjectInput {
|
|
@@ -476,7 +477,6 @@ interface ViewProps {
|
|
|
476
477
|
eventSelection: string;
|
|
477
478
|
eventDrag: EventInteractionState | null;
|
|
478
479
|
eventResize: EventInteractionState | null;
|
|
479
|
-
isHeightAuto: boolean;
|
|
480
480
|
forPrint: boolean;
|
|
481
481
|
}
|
|
482
482
|
declare function sliceEvents(props: ViewProps & {
|
|
@@ -486,6 +486,7 @@ declare function sliceEvents(props: ViewProps & {
|
|
|
486
486
|
|
|
487
487
|
type ClassNamesInput = string | string[];
|
|
488
488
|
declare function parseClassNames(raw: ClassNamesInput): string[];
|
|
489
|
+
declare function fracToCssDim(frac: number): string;
|
|
489
490
|
|
|
490
491
|
type MountArg<ContentArg> = ContentArg & {
|
|
491
492
|
el: HTMLElement;
|
|
@@ -870,27 +871,7 @@ interface DateUnselectArg {
|
|
|
870
871
|
}
|
|
871
872
|
declare function getDefaultEventEnd(allDay: boolean, marker: DateMarker, context: CalendarContext): DateMarker;
|
|
872
873
|
|
|
873
|
-
interface ScrollRequest {
|
|
874
|
-
time?: Duration;
|
|
875
|
-
[otherProp: string]: any;
|
|
876
|
-
}
|
|
877
|
-
type ScrollRequestHandler = (request: ScrollRequest) => boolean;
|
|
878
|
-
declare class ScrollResponder {
|
|
879
|
-
private execFunc;
|
|
880
|
-
private emitter;
|
|
881
|
-
private scrollTime;
|
|
882
|
-
private scrollTimeReset;
|
|
883
|
-
queuedRequest: ScrollRequest;
|
|
884
|
-
constructor(execFunc: ScrollRequestHandler, emitter: Emitter<CalendarListeners>, scrollTime: Duration, scrollTimeReset: boolean);
|
|
885
|
-
detach(): void;
|
|
886
|
-
update(isDatesNew: boolean): void;
|
|
887
|
-
private fireInitialScroll;
|
|
888
|
-
private handleScrollRequest;
|
|
889
|
-
private drain;
|
|
890
|
-
}
|
|
891
|
-
|
|
892
874
|
declare const ViewContextType: Context<any>;
|
|
893
|
-
type ResizeHandler = (force: boolean) => void;
|
|
894
875
|
interface ViewContext extends CalendarContext {
|
|
895
876
|
options: ViewOptionsRefined;
|
|
896
877
|
theme: Theme;
|
|
@@ -898,9 +879,6 @@ interface ViewContext extends CalendarContext {
|
|
|
898
879
|
dateProfileGenerator: DateProfileGenerator;
|
|
899
880
|
viewSpec: ViewSpec;
|
|
900
881
|
viewApi: ViewImpl;
|
|
901
|
-
addResizeHandler: (handler: ResizeHandler) => void;
|
|
902
|
-
removeResizeHandler: (handler: ResizeHandler) => void;
|
|
903
|
-
createScrollResponder: (execFunc: ScrollRequestHandler) => ScrollResponder;
|
|
904
882
|
registerInteractiveComponent: (component: DateComponent<any>, settingsInput: InteractionSettingsInput) => void;
|
|
905
883
|
unregisterInteractiveComponent: (component: DateComponent<any>) => void;
|
|
906
884
|
}
|
|
@@ -978,16 +956,13 @@ interface Hit {
|
|
|
978
956
|
}
|
|
979
957
|
|
|
980
958
|
interface Seg {
|
|
981
|
-
|
|
959
|
+
eventRange?: EventRenderRange;
|
|
982
960
|
isStart: boolean;
|
|
983
961
|
isEnd: boolean;
|
|
984
|
-
eventRange?: EventRenderRange;
|
|
985
|
-
[otherProp: string]: any;
|
|
986
|
-
el?: never;
|
|
987
962
|
}
|
|
988
|
-
interface EventSegUiInteractionState {
|
|
963
|
+
interface EventSegUiInteractionState<S = Seg> {
|
|
989
964
|
affectedInstances: EventInstanceHash;
|
|
990
|
-
segs:
|
|
965
|
+
segs: S[];
|
|
991
966
|
isEvent: boolean;
|
|
992
967
|
}
|
|
993
968
|
declare abstract class DateComponent<Props = Dictionary, State = Dictionary> extends BaseComponent<Props, State> {
|
|
@@ -1026,26 +1001,8 @@ declare function interactionSettingsToStore(settings: InteractionSettings): {
|
|
|
1026
1001
|
};
|
|
1027
1002
|
declare const interactionSettingsStore: InteractionSettingsStore;
|
|
1028
1003
|
|
|
1029
|
-
declare class DelayedRunner {
|
|
1030
|
-
private drainedOption?;
|
|
1031
|
-
private isRunning;
|
|
1032
|
-
private isDirty;
|
|
1033
|
-
private pauseDepths;
|
|
1034
|
-
private timeoutId;
|
|
1035
|
-
constructor(drainedOption?: () => void);
|
|
1036
|
-
request(delay?: number): void;
|
|
1037
|
-
pause(scope?: string): void;
|
|
1038
|
-
resume(scope?: string, force?: boolean): void;
|
|
1039
|
-
isPaused(): number;
|
|
1040
|
-
tryDrain(): void;
|
|
1041
|
-
clear(): void;
|
|
1042
|
-
private clearTimeout;
|
|
1043
|
-
protected drained(): void;
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
1004
|
interface CalendarContentProps extends CalendarData {
|
|
1047
1005
|
forPrint: boolean;
|
|
1048
|
-
isHeightAuto: boolean;
|
|
1049
1006
|
}
|
|
1050
1007
|
|
|
1051
1008
|
type eventDragMutationMassager = (mutation: EventMutation, hit0: Hit, hit1: Hit) => void;
|
|
@@ -1139,86 +1096,24 @@ type ElementDraggingClass = {
|
|
|
1139
1096
|
new (el: HTMLElement, selector?: string): ElementDragging;
|
|
1140
1097
|
};
|
|
1141
1098
|
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
className?: string;
|
|
1152
|
-
maxHeight?: number;
|
|
1153
|
-
liquid?: boolean;
|
|
1154
|
-
expandRows?: boolean;
|
|
1155
|
-
syncRowHeights?: boolean;
|
|
1156
|
-
isSticky?: boolean;
|
|
1157
|
-
}
|
|
1158
|
-
type ChunkConfigContent = (contentProps: ChunkContentCallbackArgs) => VNode;
|
|
1159
|
-
type ChunkConfigRowContent = VNode | ChunkConfigContent;
|
|
1160
|
-
interface ChunkConfig {
|
|
1161
|
-
elRef?: Ref<HTMLTableCellElement>;
|
|
1162
|
-
outerContent?: VNode;
|
|
1163
|
-
content?: ChunkConfigContent;
|
|
1164
|
-
rowContent?: ChunkConfigRowContent;
|
|
1165
|
-
scrollerElRef?: Ref<HTMLDivElement>;
|
|
1166
|
-
tableClassName?: string;
|
|
1167
|
-
}
|
|
1168
|
-
interface ChunkContentCallbackArgs {
|
|
1169
|
-
tableColGroupNode: VNode;
|
|
1170
|
-
tableMinWidth: CssDimValue;
|
|
1171
|
-
clientWidth: number | null;
|
|
1172
|
-
clientHeight: number | null;
|
|
1173
|
-
expandRows: boolean;
|
|
1174
|
-
syncRowHeights: boolean;
|
|
1175
|
-
rowSyncHeights: number[];
|
|
1176
|
-
reportRowHeightChange: (rowEl: HTMLElement, isStable: boolean) => void;
|
|
1177
|
-
}
|
|
1178
|
-
declare function computeShrinkWidth(chunkEls: HTMLElement[]): number;
|
|
1179
|
-
interface ScrollerLike {
|
|
1180
|
-
needsYScrolling(): boolean;
|
|
1181
|
-
needsXScrolling(): boolean;
|
|
1182
|
-
}
|
|
1183
|
-
declare function getSectionHasLiquidHeight(props: {
|
|
1184
|
-
liquid: boolean;
|
|
1185
|
-
}, sectionConfig: SectionConfig): boolean;
|
|
1186
|
-
declare function getAllowYScrolling(props: {
|
|
1187
|
-
liquid: boolean;
|
|
1188
|
-
}, sectionConfig: SectionConfig): boolean;
|
|
1189
|
-
declare function renderChunkContent(sectionConfig: SectionConfig, chunkConfig: ChunkConfig, arg: ChunkContentCallbackArgs, isHeader: boolean): VNode<{}>;
|
|
1190
|
-
declare function isColPropsEqual(cols0: ColProps[], cols1: ColProps[]): boolean;
|
|
1191
|
-
declare function renderMicroColGroup(cols: ColProps[], shrinkWidth?: number): VNode;
|
|
1192
|
-
declare function sanitizeShrinkWidth(shrinkWidth?: number): number;
|
|
1193
|
-
declare function hasShrinkWidth(cols: ColProps[]): boolean;
|
|
1194
|
-
declare function getScrollGridClassNames(liquid: boolean, context: ViewContext): any[];
|
|
1195
|
-
declare function getSectionClassNames(sectionConfig: SectionConfig, wholeTableVGrow: boolean): string[];
|
|
1196
|
-
declare function renderScrollShim(arg: ChunkContentCallbackArgs): createElement.JSX.Element;
|
|
1197
|
-
declare function getStickyHeaderDates(options: BaseOptionsRefined): boolean;
|
|
1198
|
-
declare function getStickyFooterScrollbar(options: BaseOptionsRefined): boolean;
|
|
1199
|
-
|
|
1200
|
-
interface ScrollGridProps {
|
|
1201
|
-
elRef?: Ref<any>;
|
|
1202
|
-
colGroups?: ColGroupConfig[];
|
|
1203
|
-
sections: ScrollGridSectionConfig[];
|
|
1204
|
-
liquid: boolean;
|
|
1205
|
-
forPrint: boolean;
|
|
1206
|
-
collapsibleWidth: boolean;
|
|
1207
|
-
}
|
|
1208
|
-
interface ScrollGridSectionConfig extends SectionConfig {
|
|
1209
|
-
key: string;
|
|
1210
|
-
chunks?: ScrollGridChunkConfig[];
|
|
1099
|
+
interface ScrollerInterface {
|
|
1100
|
+
x: number;
|
|
1101
|
+
y: number;
|
|
1102
|
+
scrollTo(options: {
|
|
1103
|
+
x?: number;
|
|
1104
|
+
y?: number;
|
|
1105
|
+
}): void;
|
|
1106
|
+
addScrollEndListener(handler: (x: number, y: number) => void): void;
|
|
1107
|
+
removeScrollEndListener(handler: (x: number, y: number) => void): void;
|
|
1211
1108
|
}
|
|
1212
|
-
|
|
1213
|
-
|
|
1109
|
+
|
|
1110
|
+
interface ScrollerSyncerClass {
|
|
1111
|
+
new (horizontal?: boolean): ScrollerSyncerInterface;
|
|
1214
1112
|
}
|
|
1215
|
-
interface
|
|
1216
|
-
|
|
1217
|
-
|
|
1113
|
+
interface ScrollerSyncerInterface extends ScrollerInterface {
|
|
1114
|
+
handleChildren(scrollers: ScrollerInterface[]): void;
|
|
1115
|
+
destroy(): void;
|
|
1218
1116
|
}
|
|
1219
|
-
type ScrollGridImpl = {
|
|
1220
|
-
new (props: ScrollGridProps, context: ViewContext): Component<ScrollGridProps>;
|
|
1221
|
-
};
|
|
1222
1117
|
|
|
1223
1118
|
interface PluginDefInput {
|
|
1224
1119
|
name: string;
|
|
@@ -1254,7 +1149,7 @@ interface PluginDefInput {
|
|
|
1254
1149
|
initialView?: string;
|
|
1255
1150
|
elementDraggingImpl?: ElementDraggingClass;
|
|
1256
1151
|
optionChangeHandlers?: OptionChangeHandlerMap;
|
|
1257
|
-
|
|
1152
|
+
scrollerSyncerClass?: ScrollerSyncerClass;
|
|
1258
1153
|
listenerRefiners?: GenericListenerRefiners;
|
|
1259
1154
|
optionRefiners?: GenericRefiners;
|
|
1260
1155
|
propSetHandlers?: {
|
|
@@ -1293,7 +1188,7 @@ interface PluginHooks {
|
|
|
1293
1188
|
initialView: string;
|
|
1294
1189
|
elementDraggingImpl?: ElementDraggingClass;
|
|
1295
1190
|
optionChangeHandlers: OptionChangeHandlerMap;
|
|
1296
|
-
|
|
1191
|
+
scrollerSyncerClass: ScrollerSyncerClass | null;
|
|
1297
1192
|
listenerRefiners: GenericListenerRefiners;
|
|
1298
1193
|
optionRefiners: GenericRefiners;
|
|
1299
1194
|
propSetHandlers: {
|
|
@@ -1371,9 +1266,9 @@ interface SplittableProps {
|
|
|
1371
1266
|
dateSelection: DateSpan | null;
|
|
1372
1267
|
eventStore: EventStore;
|
|
1373
1268
|
eventUiBases: EventUiHash;
|
|
1374
|
-
eventSelection: string;
|
|
1375
1269
|
eventDrag: EventInteractionState | null;
|
|
1376
1270
|
eventResize: EventInteractionState | null;
|
|
1271
|
+
eventSelection: string;
|
|
1377
1272
|
}
|
|
1378
1273
|
declare abstract class Splitter<PropsType extends SplittableProps = SplittableProps> {
|
|
1379
1274
|
private getKeysForEventDefs;
|
|
@@ -1478,8 +1373,8 @@ declare function sliceEventStore(eventStore: EventStore, eventUiBases: EventUiHa
|
|
|
1478
1373
|
fg: EventRenderRange[];
|
|
1479
1374
|
};
|
|
1480
1375
|
declare function hasBgRendering(def: EventDef): boolean;
|
|
1481
|
-
declare function
|
|
1482
|
-
declare function sortEventSegs(segs:
|
|
1376
|
+
declare function getElEventRange(el: HTMLElement): EventRenderRange | null;
|
|
1377
|
+
declare function sortEventSegs<S extends Seg>(segs: S[], eventOrderSpecs: OrderSpec<EventImpl>[]): S[];
|
|
1483
1378
|
interface EventContentArg {
|
|
1484
1379
|
event: EventImpl;
|
|
1485
1380
|
timeText: string;
|
|
@@ -1501,16 +1396,16 @@ interface EventContentArg {
|
|
|
1501
1396
|
view: ViewApi;
|
|
1502
1397
|
}
|
|
1503
1398
|
type EventMountArg = MountArg<EventContentArg>;
|
|
1504
|
-
declare function
|
|
1399
|
+
declare function buildEventRangeTimeText(eventRange: EventRenderRange, timeFormat: DateFormatter, context: ViewContext, defaultDisplayEventTime?: boolean, // defaults to true
|
|
1505
1400
|
defaultDisplayEventEnd?: boolean, // defaults to true
|
|
1506
1401
|
startOverride?: DateMarker, endOverride?: DateMarker): string;
|
|
1507
|
-
declare function
|
|
1402
|
+
declare function getEventRangeMeta(eventRange: EventRenderRange, todayRange: DateRange, nowDate?: DateMarker): {
|
|
1508
1403
|
isPast: boolean;
|
|
1509
1404
|
isFuture: boolean;
|
|
1510
1405
|
isToday: boolean;
|
|
1511
1406
|
};
|
|
1512
1407
|
declare function buildEventRangeKey(eventRange: EventRenderRange): string;
|
|
1513
|
-
declare function
|
|
1408
|
+
declare function getEventRangeAnchorAttrs(eventRange: EventRenderRange, context: ViewContext): {
|
|
1514
1409
|
tabIndex: number;
|
|
1515
1410
|
onKeyDown(ev: KeyboardEvent): void;
|
|
1516
1411
|
} | {
|
|
@@ -1556,6 +1451,25 @@ interface DatePointApi {
|
|
|
1556
1451
|
}
|
|
1557
1452
|
declare function isDateSpansEqual(span0: DateSpan, span1: DateSpan): boolean;
|
|
1558
1453
|
|
|
1454
|
+
type CssDimValue = string | number;
|
|
1455
|
+
declare function getIsHeightAuto(options: {
|
|
1456
|
+
height?: CssDimValue;
|
|
1457
|
+
viewHeight?: CssDimValue;
|
|
1458
|
+
}): boolean;
|
|
1459
|
+
declare function getStickyHeaderDates(options: {
|
|
1460
|
+
height?: CssDimValue;
|
|
1461
|
+
viewHeight?: CssDimValue;
|
|
1462
|
+
stickyHeaderDates?: boolean | 'auto';
|
|
1463
|
+
}): boolean;
|
|
1464
|
+
declare function getStickyFooterScrollbar(options: {
|
|
1465
|
+
height?: CssDimValue;
|
|
1466
|
+
viewHeight?: CssDimValue;
|
|
1467
|
+
stickyFooterScrollbar?: boolean | 'auto';
|
|
1468
|
+
}): boolean;
|
|
1469
|
+
declare function getScrollerSyncerClass(pluginHooks: {
|
|
1470
|
+
scrollerSyncerClass: ScrollerSyncerClass | null;
|
|
1471
|
+
}): ScrollerSyncerClass;
|
|
1472
|
+
|
|
1559
1473
|
type BusinessHoursInput = boolean | EventInput | EventInput[];
|
|
1560
1474
|
declare function parseBusinessHours(input: BusinessHoursInput, context: CalendarContext): EventStore;
|
|
1561
1475
|
|
|
@@ -1635,8 +1549,7 @@ interface MoreLinkContainerProps extends Partial<ElProps> {
|
|
|
1635
1549
|
dateProfile: DateProfile;
|
|
1636
1550
|
todayRange: DateRange;
|
|
1637
1551
|
allDayDate: DateMarker | null;
|
|
1638
|
-
|
|
1639
|
-
allSegs: Seg[];
|
|
1552
|
+
segs: Seg[];
|
|
1640
1553
|
hiddenSegs: Seg[];
|
|
1641
1554
|
extraDateSpan?: Dictionary;
|
|
1642
1555
|
alignmentElRef?: RefObject<HTMLElement>;
|
|
@@ -2041,8 +1954,6 @@ declare const BASE_OPTION_REFINERS: {
|
|
|
2041
1954
|
dropAccept: Identity<string | ((this: CalendarApi, draggable: any) => boolean)>;
|
|
2042
1955
|
eventOrder: typeof parseFieldSpecs;
|
|
2043
1956
|
eventOrderStrict: BooleanConstructor;
|
|
2044
|
-
handleWindowResize: BooleanConstructor;
|
|
2045
|
-
windowResizeDelay: NumberConstructor;
|
|
2046
1957
|
longPressDelay: NumberConstructor;
|
|
2047
1958
|
eventDragMinDistance: NumberConstructor;
|
|
2048
1959
|
expandRows: BooleanConstructor;
|
|
@@ -2200,8 +2111,6 @@ declare const BASE_OPTION_DEFAULTS: {
|
|
|
2200
2111
|
day: string;
|
|
2201
2112
|
year: string;
|
|
2202
2113
|
};
|
|
2203
|
-
handleWindowResize: boolean;
|
|
2204
|
-
windowResizeDelay: number;
|
|
2205
2114
|
longPressDelay: number;
|
|
2206
2115
|
eventDragMinDistance: number;
|
|
2207
2116
|
expandRows: boolean;
|
|
@@ -2223,9 +2132,6 @@ declare const CALENDAR_LISTENER_REFINERS: {
|
|
|
2223
2132
|
eventAdd: Identity<(arg: EventAddArg) => void>;
|
|
2224
2133
|
eventChange: Identity<(arg: EventChangeArg) => void>;
|
|
2225
2134
|
eventRemove: Identity<(arg: EventRemoveArg) => void>;
|
|
2226
|
-
windowResize: Identity<(arg: {
|
|
2227
|
-
view: ViewApi;
|
|
2228
|
-
}) => void>;
|
|
2229
2135
|
eventClick: Identity<(arg: EventClickArg) => void>;
|
|
2230
2136
|
eventMouseEnter: Identity<(arg: EventHoveringArg) => void>;
|
|
2231
2137
|
eventMouseLeave: Identity<(arg: EventHoveringArg) => void>;
|
|
@@ -2237,8 +2143,7 @@ declare const CALENDAR_LISTENER_REFINERS: {
|
|
|
2237
2143
|
_afterprint: Identity<() => void>;
|
|
2238
2144
|
_noEventDrop: Identity<() => void>;
|
|
2239
2145
|
_noEventResize: Identity<() => void>;
|
|
2240
|
-
|
|
2241
|
-
_scrollRequest: Identity<(arg: any) => void>;
|
|
2146
|
+
_timeScrollRequest: Identity<(time: Duration) => void>;
|
|
2242
2147
|
};
|
|
2243
2148
|
type BuiltInCalendarListenerRefiners = typeof CALENDAR_LISTENER_REFINERS;
|
|
2244
2149
|
interface CalendarListenerRefiners extends BuiltInCalendarListenerRefiners {
|
|
@@ -2324,7 +2229,20 @@ declare function applyStyle(el: HTMLElement, props: Dictionary): void;
|
|
|
2324
2229
|
declare function getEventTargetViaRoot(ev: Event): EventTarget;
|
|
2325
2230
|
declare function getUniqueDomId(): string;
|
|
2326
2231
|
|
|
2327
|
-
declare function
|
|
2232
|
+
declare function setStateDimMap<State>(component: Component<unknown, State>, key: keyof State, newMap: {
|
|
2233
|
+
[key: string]: number;
|
|
2234
|
+
}): void;
|
|
2235
|
+
declare function isDimMapsEqual(oldMap: {
|
|
2236
|
+
[key: string]: number;
|
|
2237
|
+
}, newMap: {
|
|
2238
|
+
[key: string]: number;
|
|
2239
|
+
}): boolean;
|
|
2240
|
+
declare function isDimsEqual(v0: number | undefined, v1: number): boolean;
|
|
2241
|
+
|
|
2242
|
+
declare function watchSize(el: HTMLElement, callback: (width: number, height: number) => void): () => void;
|
|
2243
|
+
declare function watchWidth(el: HTMLElement, callback: (width: number) => void): () => void;
|
|
2244
|
+
declare function watchHeight(el: HTMLElement, callback: (height: number) => void): () => void;
|
|
2245
|
+
declare function afterSize(callback: () => void): void;
|
|
2328
2246
|
|
|
2329
2247
|
declare function buildNavLinkAttrs(context: ViewContext, dateMarker: DateMarker, viewType?: string, isTabbable?: boolean): {
|
|
2330
2248
|
tabIndex: number;
|
|
@@ -2445,8 +2363,10 @@ interface SegSpan {
|
|
|
2445
2363
|
}
|
|
2446
2364
|
interface SegEntry {
|
|
2447
2365
|
index: number;
|
|
2448
|
-
|
|
2366
|
+
seg?: Seg;
|
|
2367
|
+
segGroup?: SegGroup;
|
|
2449
2368
|
span: SegSpan;
|
|
2369
|
+
thickness?: number;
|
|
2450
2370
|
}
|
|
2451
2371
|
interface SegInsertion {
|
|
2452
2372
|
level: number;
|
|
@@ -2461,9 +2381,10 @@ interface SegRect extends SegEntry {
|
|
|
2461
2381
|
thickness: number;
|
|
2462
2382
|
levelCoord: number;
|
|
2463
2383
|
}
|
|
2464
|
-
interface
|
|
2465
|
-
|
|
2384
|
+
interface SegGroup {
|
|
2385
|
+
key: string;
|
|
2466
2386
|
span: SegSpan;
|
|
2387
|
+
segs: Seg[];
|
|
2467
2388
|
}
|
|
2468
2389
|
declare class SegHierarchy {
|
|
2469
2390
|
private getEntryThickness;
|
|
@@ -2476,19 +2397,19 @@ declare class SegHierarchy {
|
|
|
2476
2397
|
stackCnts: {
|
|
2477
2398
|
[entryId: string]: number;
|
|
2478
2399
|
};
|
|
2479
|
-
constructor(getEntryThickness?: (entry: SegEntry) => number);
|
|
2400
|
+
constructor(getEntryThickness?: (entry: SegEntry) => number | undefined);
|
|
2480
2401
|
addSegs(inputs: SegEntry[]): SegEntry[];
|
|
2481
2402
|
insertEntry(entry: SegEntry, hiddenEntries: SegEntry[]): void;
|
|
2482
|
-
isInsertionValid(insertion: SegInsertion, entry: SegEntry): boolean;
|
|
2403
|
+
isInsertionValid(insertion: SegInsertion, entry: SegEntry, entryThickness: number): boolean;
|
|
2483
2404
|
handleInvalidInsertion(insertion: SegInsertion, entry: SegEntry, hiddenEntries: SegEntry[]): void;
|
|
2484
2405
|
splitEntry(entry: SegEntry, barrier: SegEntry, hiddenEntries: SegEntry[]): void;
|
|
2485
2406
|
insertEntryAt(entry: SegEntry, insertion: SegInsertion): void;
|
|
2486
|
-
findInsertion(newEntry: SegEntry): SegInsertion;
|
|
2407
|
+
findInsertion(newEntry: SegEntry, newEntryThickness: number): SegInsertion;
|
|
2487
2408
|
toRects(): SegRect[];
|
|
2488
2409
|
}
|
|
2489
2410
|
declare function getEntrySpanEnd(entry: SegEntry): number;
|
|
2490
2411
|
declare function buildEntryKey(entry: SegEntry): string;
|
|
2491
|
-
declare function groupIntersectingEntries(entries: SegEntry[]):
|
|
2412
|
+
declare function groupIntersectingEntries(entries: SegEntry[]): SegGroup[];
|
|
2492
2413
|
declare function intersectSpans(span0: SegSpan, span1: SegSpan): SegSpan | null;
|
|
2493
2414
|
declare function binarySearch<Item>(a: Item[], searchVal: number, getItemVal: (item: Item) => number): [number, number];
|
|
2494
2415
|
|
|
@@ -2498,15 +2419,13 @@ interface CalendarRootProps {
|
|
|
2498
2419
|
options: CalendarOptions;
|
|
2499
2420
|
theme: Theme;
|
|
2500
2421
|
emitter: Emitter<CalendarListeners>;
|
|
2501
|
-
children: (classNames: string[], height: CssDimValue
|
|
2422
|
+
children: (classNames: string[], height: CssDimValue | undefined, forPrint: boolean) => ComponentChildren;
|
|
2502
2423
|
}
|
|
2503
2424
|
interface CalendarRootState {
|
|
2504
2425
|
forPrint: boolean;
|
|
2505
2426
|
}
|
|
2506
2427
|
declare class CalendarRoot extends BaseComponent<CalendarRootProps, CalendarRootState> {
|
|
2507
|
-
state:
|
|
2508
|
-
forPrint: boolean;
|
|
2509
|
-
};
|
|
2428
|
+
state: CalendarRootState;
|
|
2510
2429
|
render(): ComponentChildren;
|
|
2511
2430
|
componentDidMount(): void;
|
|
2512
2431
|
componentWillUnmount(): void;
|
|
@@ -2514,47 +2433,6 @@ declare class CalendarRoot extends BaseComponent<CalendarRootProps, CalendarRoot
|
|
|
2514
2433
|
handleAfterPrint: () => void;
|
|
2515
2434
|
}
|
|
2516
2435
|
|
|
2517
|
-
interface DayHeaderProps {
|
|
2518
|
-
dateProfile: DateProfile;
|
|
2519
|
-
dates: DateMarker[];
|
|
2520
|
-
datesRepDistinctDays: boolean;
|
|
2521
|
-
renderIntro?: (rowKey: string) => VNode;
|
|
2522
|
-
}
|
|
2523
|
-
declare class DayHeader extends BaseComponent<DayHeaderProps> {
|
|
2524
|
-
createDayHeaderFormatter: (explicitFormat: DateFormatter, datesRepDistinctDays: any, dateCnt: any) => DateFormatter;
|
|
2525
|
-
render(): createElement.JSX.Element;
|
|
2526
|
-
}
|
|
2527
|
-
|
|
2528
|
-
declare function computeFallbackHeaderFormat(datesRepDistinctDays: boolean, dayCnt: number): DateFormatter;
|
|
2529
|
-
|
|
2530
|
-
interface TableDateCellProps {
|
|
2531
|
-
date: DateMarker;
|
|
2532
|
-
dateProfile: DateProfile;
|
|
2533
|
-
todayRange: DateRange;
|
|
2534
|
-
colCnt: number;
|
|
2535
|
-
dayHeaderFormat: DateFormatter;
|
|
2536
|
-
colSpan?: number;
|
|
2537
|
-
isSticky?: boolean;
|
|
2538
|
-
extraDataAttrs?: Dictionary;
|
|
2539
|
-
extraRenderProps?: Dictionary;
|
|
2540
|
-
}
|
|
2541
|
-
declare class TableDateCell extends BaseComponent<TableDateCellProps> {
|
|
2542
|
-
render(): createElement.JSX.Element;
|
|
2543
|
-
}
|
|
2544
|
-
|
|
2545
|
-
interface TableDowCellProps {
|
|
2546
|
-
dow: number;
|
|
2547
|
-
dayHeaderFormat: DateFormatter;
|
|
2548
|
-
colSpan?: number;
|
|
2549
|
-
isSticky?: boolean;
|
|
2550
|
-
extraRenderProps?: Dictionary;
|
|
2551
|
-
extraDataAttrs?: Dictionary;
|
|
2552
|
-
extraClassNames?: string[];
|
|
2553
|
-
}
|
|
2554
|
-
declare class TableDowCell extends BaseComponent<TableDowCellProps> {
|
|
2555
|
-
render(): createElement.JSX.Element;
|
|
2556
|
-
}
|
|
2557
|
-
|
|
2558
2436
|
interface DaySeriesSeg {
|
|
2559
2437
|
firstIndex: number;
|
|
2560
2438
|
lastIndex: number;
|
|
@@ -2586,16 +2464,75 @@ interface DayTableCell {
|
|
|
2586
2464
|
declare class DayTableModel {
|
|
2587
2465
|
rowCnt: number;
|
|
2588
2466
|
colCnt: number;
|
|
2589
|
-
|
|
2467
|
+
cellRows: DayTableCell[][];
|
|
2590
2468
|
headerDates: DateMarker[];
|
|
2591
2469
|
private daySeries;
|
|
2592
2470
|
constructor(daySeries: DaySeriesModel, breakOnWeeks: boolean);
|
|
2593
|
-
|
|
2471
|
+
buildCells(): any[];
|
|
2594
2472
|
private buildCell;
|
|
2595
2473
|
private buildHeaderDates;
|
|
2596
2474
|
sliceRange(range: DateRange): DayTableSeg[];
|
|
2597
2475
|
}
|
|
2598
2476
|
|
|
2477
|
+
declare class ScrollListener {
|
|
2478
|
+
el: HTMLElement;
|
|
2479
|
+
emitter: Emitter<any>;
|
|
2480
|
+
private isScrolling;
|
|
2481
|
+
private isTouching;
|
|
2482
|
+
private isRecentlyWheeled;
|
|
2483
|
+
private isRecentlyScrolled;
|
|
2484
|
+
private wheelWaiter;
|
|
2485
|
+
private scrollWaiter;
|
|
2486
|
+
constructor(el: HTMLElement);
|
|
2487
|
+
destroy(): void;
|
|
2488
|
+
private startScroll;
|
|
2489
|
+
endScroll(): void;
|
|
2490
|
+
private handleScroll;
|
|
2491
|
+
private _handleScrollWaited;
|
|
2492
|
+
private handleWheel;
|
|
2493
|
+
private _handleWheelWaited;
|
|
2494
|
+
private handleTouchStart;
|
|
2495
|
+
private handleTouchEnd;
|
|
2496
|
+
}
|
|
2497
|
+
|
|
2498
|
+
interface ScrollerProps {
|
|
2499
|
+
vertical?: boolean;
|
|
2500
|
+
horizontal?: boolean;
|
|
2501
|
+
hideScrollbars?: boolean;
|
|
2502
|
+
children: ComponentChildren;
|
|
2503
|
+
elClassNames?: string[];
|
|
2504
|
+
elStyle?: Dictionary$1;
|
|
2505
|
+
widthRef?: Ref<number>;
|
|
2506
|
+
heightRef?: Ref<number>;
|
|
2507
|
+
leftScrollbarWidthRef?: Ref<number>;
|
|
2508
|
+
rightScrollbarWidthRef?: Ref<number>;
|
|
2509
|
+
bottomScrollbarWidthRef?: Ref<number>;
|
|
2510
|
+
}
|
|
2511
|
+
declare class Scroller extends DateComponent$1<ScrollerProps> implements ScrollerInterface {
|
|
2512
|
+
private elRef;
|
|
2513
|
+
listener: ScrollListener;
|
|
2514
|
+
private disconnectSize?;
|
|
2515
|
+
private currentWidth;
|
|
2516
|
+
private currentHeight;
|
|
2517
|
+
private currentLeftScrollbarWidth;
|
|
2518
|
+
private currentRightScrollbarWidth;
|
|
2519
|
+
private currentBottomScrollbarWidth;
|
|
2520
|
+
render(): createElement.JSX.Element;
|
|
2521
|
+
componentDidMount(): void;
|
|
2522
|
+
componentWillUnmount(): void;
|
|
2523
|
+
endScroll(): void;
|
|
2524
|
+
get x(): number;
|
|
2525
|
+
get y(): number;
|
|
2526
|
+
scrollTo({ x, y }: {
|
|
2527
|
+
x?: number;
|
|
2528
|
+
y?: number;
|
|
2529
|
+
}): void;
|
|
2530
|
+
addScrollEndListener(handler: (x: number, y: number) => void): void;
|
|
2531
|
+
removeScrollEndListener(handler: (x: number, y: number) => void): void;
|
|
2532
|
+
}
|
|
2533
|
+
declare function getNormalizedScrollX(el: HTMLElement, isRtl: boolean): number;
|
|
2534
|
+
declare function setNormalizedScrollX(el: HTMLElement, isRtl: boolean, x: number): void;
|
|
2535
|
+
|
|
2599
2536
|
interface SliceableProps {
|
|
2600
2537
|
dateSelection: DateSpan;
|
|
2601
2538
|
businessHours: EventStore;
|
|
@@ -2610,8 +2547,8 @@ interface SlicedProps<SegType extends Seg> {
|
|
|
2610
2547
|
businessHourSegs: SegType[];
|
|
2611
2548
|
fgEventSegs: SegType[];
|
|
2612
2549
|
bgEventSegs: SegType[];
|
|
2613
|
-
eventDrag: EventSegUiInteractionState | null;
|
|
2614
|
-
eventResize: EventSegUiInteractionState | null;
|
|
2550
|
+
eventDrag: EventSegUiInteractionState<SegType> | null;
|
|
2551
|
+
eventResize: EventSegUiInteractionState<SegType> | null;
|
|
2615
2552
|
eventSelection: string;
|
|
2616
2553
|
}
|
|
2617
2554
|
declare abstract class Slicer<SegType extends Seg, ExtraArgs extends any[] = []> {
|
|
@@ -2637,88 +2574,21 @@ declare function isInteractionValid(interaction: EventInteractionState, dateProf
|
|
|
2637
2574
|
declare function isDateSelectionValid(dateSelection: DateSpan, dateProfile: DateProfile, context: CalendarContext): boolean;
|
|
2638
2575
|
declare function isPropsValid(state: SplittableProps, context: CalendarContext, dateSpanMeta?: {}, filterConfig?: any): boolean;
|
|
2639
2576
|
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
render(): createElement.JSX.Element;
|
|
2656
|
-
handleEl: (el: HTMLElement) => void;
|
|
2657
|
-
needsXScrolling(): boolean;
|
|
2658
|
-
needsYScrolling(): boolean;
|
|
2659
|
-
getXScrollbarWidth(): number;
|
|
2660
|
-
getYScrollbarWidth(): number;
|
|
2661
|
-
}
|
|
2662
|
-
|
|
2663
|
-
declare class RefMap<RefType> {
|
|
2664
|
-
masterCallback?: (val: RefType | null, key: string) => void;
|
|
2665
|
-
currentMap: {
|
|
2666
|
-
[key: string]: RefType;
|
|
2667
|
-
};
|
|
2668
|
-
private depths;
|
|
2669
|
-
private callbackMap;
|
|
2670
|
-
constructor(masterCallback?: (val: RefType | null, key: string) => void);
|
|
2671
|
-
createRef(key: string | number): (val: RefType) => void;
|
|
2672
|
-
handleValue: (val: RefType | null, key: string) => void;
|
|
2673
|
-
collect(startIndex?: number, endIndex?: number, step?: number): RefType[];
|
|
2674
|
-
getAll(): RefType[];
|
|
2675
|
-
}
|
|
2676
|
-
|
|
2677
|
-
interface SimpleScrollGridProps {
|
|
2678
|
-
cols: ColProps[];
|
|
2679
|
-
sections: SimpleScrollGridSection[];
|
|
2680
|
-
liquid: boolean;
|
|
2681
|
-
collapsibleWidth: boolean;
|
|
2682
|
-
height?: CssDimValue;
|
|
2683
|
-
}
|
|
2684
|
-
interface SimpleScrollGridSection extends SectionConfig {
|
|
2685
|
-
key: string;
|
|
2686
|
-
chunk?: ChunkConfig;
|
|
2687
|
-
}
|
|
2688
|
-
interface SimpleScrollGridState {
|
|
2689
|
-
shrinkWidth: number | null;
|
|
2690
|
-
forceYScrollbars: boolean;
|
|
2691
|
-
scrollerClientWidths: {
|
|
2692
|
-
[key: string]: number;
|
|
2693
|
-
};
|
|
2694
|
-
scrollerClientHeights: {
|
|
2695
|
-
[key: string]: number;
|
|
2696
|
-
};
|
|
2697
|
-
}
|
|
2698
|
-
declare class SimpleScrollGrid extends BaseComponent<SimpleScrollGridProps, SimpleScrollGridState> {
|
|
2699
|
-
processCols: (a: any) => any;
|
|
2700
|
-
renderMicroColGroup: typeof renderMicroColGroup;
|
|
2701
|
-
scrollerRefs: RefMap<Scroller>;
|
|
2702
|
-
scrollerElRefs: RefMap<HTMLElement>;
|
|
2703
|
-
state: SimpleScrollGridState;
|
|
2704
|
-
render(): VNode;
|
|
2705
|
-
renderSection(sectionConfig: SimpleScrollGridSection, microColGroupNode: VNode, isHeader: boolean): createElement.JSX.Element;
|
|
2706
|
-
renderChunkTd(sectionConfig: SimpleScrollGridSection, microColGroupNode: VNode, chunkConfig: ChunkConfig, isHeader: boolean): createElement.JSX.Element;
|
|
2707
|
-
_handleScrollerEl(scrollerEl: HTMLElement | null, key: string): void;
|
|
2708
|
-
handleSizing: () => void;
|
|
2709
|
-
componentDidMount(): void;
|
|
2710
|
-
componentDidUpdate(): void;
|
|
2711
|
-
componentWillUnmount(): void;
|
|
2712
|
-
computeShrinkWidth(): number;
|
|
2713
|
-
computeScrollerDims(): {
|
|
2714
|
-
forceYScrollbars: boolean;
|
|
2715
|
-
scrollerClientWidths: {
|
|
2716
|
-
[index: string]: number;
|
|
2717
|
-
};
|
|
2718
|
-
scrollerClientHeights: {
|
|
2719
|
-
[index: string]: number;
|
|
2720
|
-
};
|
|
2721
|
-
};
|
|
2577
|
+
declare class DelayedRunner {
|
|
2578
|
+
private drainedOption?;
|
|
2579
|
+
private isRunning;
|
|
2580
|
+
private isDirty;
|
|
2581
|
+
private pauseDepths;
|
|
2582
|
+
private timeoutId;
|
|
2583
|
+
constructor(drainedOption?: () => void);
|
|
2584
|
+
request(delay?: number): void;
|
|
2585
|
+
pause(scope?: string): void;
|
|
2586
|
+
resume(scope?: string, force?: boolean): void;
|
|
2587
|
+
isPaused(): number;
|
|
2588
|
+
tryDrain(): void;
|
|
2589
|
+
clear(): void;
|
|
2590
|
+
private clearTimeout;
|
|
2591
|
+
protected drained(): void;
|
|
2722
2592
|
}
|
|
2723
2593
|
|
|
2724
2594
|
interface ScrollbarWidths {
|
|
@@ -2727,6 +2597,16 @@ interface ScrollbarWidths {
|
|
|
2727
2597
|
}
|
|
2728
2598
|
declare function getScrollbarWidths(): ScrollbarWidths;
|
|
2729
2599
|
|
|
2600
|
+
declare class RefMap<K, V> {
|
|
2601
|
+
masterCallback?: (val: V, key: K) => void;
|
|
2602
|
+
rev: string;
|
|
2603
|
+
current: Map<K, V>;
|
|
2604
|
+
private callbacks;
|
|
2605
|
+
constructor(masterCallback?: (val: V, key: K) => void);
|
|
2606
|
+
createRef(key: K): (val: V) => void;
|
|
2607
|
+
handleValue: (val: V, key: K) => void;
|
|
2608
|
+
}
|
|
2609
|
+
|
|
2730
2610
|
declare function getIsRtlScrollbarOnLeft(): boolean;
|
|
2731
2611
|
|
|
2732
2612
|
interface NowTimerProps {
|
|
@@ -2756,7 +2636,9 @@ declare class NowTimer extends Component<NowTimerProps, NowTimerState> {
|
|
|
2756
2636
|
interface StandardEventProps {
|
|
2757
2637
|
elRef?: ElRef;
|
|
2758
2638
|
elClasses?: string[];
|
|
2759
|
-
|
|
2639
|
+
eventRange: EventRenderRange;
|
|
2640
|
+
isStart: boolean;
|
|
2641
|
+
isEnd: boolean;
|
|
2760
2642
|
isDragging: boolean;
|
|
2761
2643
|
isResizing: boolean;
|
|
2762
2644
|
isDateSelecting: boolean;
|
|
@@ -2769,13 +2651,17 @@ interface StandardEventProps {
|
|
|
2769
2651
|
defaultTimeFormat: DateFormatter;
|
|
2770
2652
|
defaultDisplayEventTime?: boolean;
|
|
2771
2653
|
defaultDisplayEventEnd?: boolean;
|
|
2654
|
+
startOverride?: DateMarker;
|
|
2655
|
+
endOverride?: DateMarker;
|
|
2772
2656
|
}
|
|
2773
2657
|
declare class StandardEvent extends BaseComponent<StandardEventProps> {
|
|
2774
2658
|
render(): createElement.JSX.Element;
|
|
2775
2659
|
}
|
|
2776
2660
|
|
|
2777
2661
|
interface MinimalEventProps {
|
|
2778
|
-
|
|
2662
|
+
eventRange: EventRenderRange;
|
|
2663
|
+
isStart: boolean;
|
|
2664
|
+
isEnd: boolean;
|
|
2779
2665
|
isDragging: boolean;
|
|
2780
2666
|
isResizing: boolean;
|
|
2781
2667
|
isDateSelecting: boolean;
|
|
@@ -2799,7 +2685,9 @@ declare class EventContainer extends BaseComponent<EventContainerProps> {
|
|
|
2799
2685
|
}
|
|
2800
2686
|
|
|
2801
2687
|
interface BgEventProps {
|
|
2802
|
-
|
|
2688
|
+
eventRange: EventRenderRange;
|
|
2689
|
+
isStart: boolean;
|
|
2690
|
+
isEnd: boolean;
|
|
2803
2691
|
isPast: boolean;
|
|
2804
2692
|
isFuture: boolean;
|
|
2805
2693
|
isToday: boolean;
|
|
@@ -2811,4 +2699,4 @@ declare function renderFill(fillType: string): createElement.JSX.Element;
|
|
|
2811
2699
|
|
|
2812
2700
|
declare function injectStyles(styleText: string): void;
|
|
2813
2701
|
|
|
2814
|
-
export {
|
|
2702
|
+
export { DayCellMountArg as $, AllowFunc as A, BusinessHoursInput as B, CalendarImpl as C, DateInput as D, EventSourceApi as E, FormatterInput as F, WeekNumberContentArg as G, WeekNumberMountArg as H, MoreLinkMountArg as I, JsonRequestError as J, SlotLaneContentArg as K, LocaleInput as L, MoreLinkContentArg as M, NativeFormatterOptions as N, OverlapFunc as O, PluginDefInput as P, SlotLaneMountArg as Q, SlotLabelContentArg as R, SpecificViewContentArg as S, SlotLabelMountArg as T, AllDayContentArg as U, ViewApi as V, WillUnmountHandler as W, AllDayMountArg as X, DayHeaderContentArg as Y, DayHeaderMountArg as Z, DayCellContentArg as _, CalendarOptions as a, enableCursor as a$, ViewContentArg as a0, ViewMountArg as a1, EventClickArg as a2, EventHoveringArg as a3, DateSelectArg as a4, DateUnselectArg as a5, WeekNumberCalculation as a6, ToolbarInput as a7, CustomButtonInput as a8, ButtonIconsInput as a9, RefinedOptionsFromRefiners as aA, CalendarListenerRefiners as aB, BASE_OPTION_DEFAULTS as aC, identity as aD, refineProps as aE, EventDef as aF, EventDefHash as aG, EventInstance as aH, EventInstanceHash as aI, createEventInstance as aJ, EventRefined as aK, EventTuple as aL, EventRefiners as aM, parseEventDef as aN, refineEventDef as aO, parseBusinessHours as aP, OrderSpec as aQ, padStart as aR, isInt as aS, parseFieldSpecs as aT, compareByFieldSpecs as aU, flexibleCompare as aV, preventSelection as aW, allowSelection as aX, preventContextMenu as aY, allowContextMenu as aZ, compareNumbers as a_, ButtonTextCompoundInput as aa, EventContentArg as ab, EventMountArg as ac, DatesSetArg as ad, EventAddArg as ae, EventChangeArg as af, EventDropArg as ag, EventRemoveArg as ah, ButtonHintCompoundInput as ai, CustomRenderingHandler as aj, CustomRenderingStore as ak, DateSpanApi as al, DatePointApi as am, DateSelectionApi as an, Duration as ao, EventSegment as ap, MoreLinkAction as aq, MoreLinkSimpleAction as ar, MoreLinkArg as as, MoreLinkHandler as at, Identity as au, Dictionary as av, BaseOptionRefiners as aw, BaseOptionsRefined as ax, ViewOptionsRefined as ay, RawOptionsFromRefiners as az, PluginDef as b, getClippingParents as b$, disableCursor as b0, guid as b1, computeVisibleDayRange as b2, isMultiDayRange as b3, diffDates as b4, removeExact as b5, isArraysEqual as b6, MemoizeHashFunc as b7, MemoiseArrayFunc as b8, memoize as b9, EventStore as bA, createEmptyEventStore as bB, mergeEventStores as bC, getRelevantEvents as bD, eventTupleToStore as bE, EventUiHash as bF, EventUi as bG, combineEventUis as bH, createEventUi as bI, SplittableProps as bJ, Splitter as bK, getDayClassNames as bL, getDateMeta as bM, getSlotClassNames as bN, DateMeta as bO, setStateDimMap as bP, isDimMapsEqual as bQ, isDimsEqual as bR, watchSize as bS, watchWidth as bT, watchHeight as bU, afterSize as bV, buildNavLinkAttrs as bW, preventDefault as bX, whenTransitionDone as bY, computeInnerRect as bZ, computeEdges as b_, memoizeObjArg as ba, memoizeArraylike as bb, memoizeHashlike as bc, Rect as bd, Point as be, intersectRects as bf, pointInsideRect as bg, constrainPoint as bh, getRectCenter as bi, diffPoints as bj, translateRect as bk, mapHash as bl, filterHash as bm, isPropsEqual as bn, compareObjs as bo, collectFromHash as bp, findElements as bq, findDirectChildren as br, removeElement as bs, applyStyle as bt, elementMatches as bu, elementClosest as bv, getEventTargetViaRoot as bw, getUniqueDomId as bx, parseClassNames as by, fracToCssDim as bz, CalendarApi as c, SegGroup as c$, computeRect as c0, unpromisify as c1, Emitter as c2, DateRange as c3, rangeContainsMarker as c4, intersectRanges as c5, rangesEqual as c6, rangesIntersect as c7, rangeContainsRange as c8, PositionCache as c9, isValidDate as cA, createDuration as cB, asCleanDays as cC, multiplyDuration as cD, addDurations as cE, asRoughMinutes as cF, asRoughSeconds as cG, asRoughMs as cH, wholeDivideDurations as cI, greatestDurationDenominator as cJ, DateEnv as cK, createFormatter as cL, DateFormatter as cM, VerboseFormattingArg as cN, formatIsoTimeString as cO, formatDayString as cP, buildIsoString as cQ, formatIsoMonthStr as cR, NamedTimeZoneImpl as cS, parse as cT, EventSourceDef as cU, EventSourceRefined as cV, EventSourceRefiners as cW, SegSpan as cX, SegRect as cY, SegEntry as cZ, SegInsertion as c_, ScrollController as ca, ElementScrollController as cb, WindowScrollController as cc, Theme as cd, ViewContext as ce, ViewContextType as cf, Seg as cg, EventSegUiInteractionState as ch, DateComponent as ci, CalendarData as cj, ViewProps as ck, DateProfile as cl, DateProfileGenerator as cm, ViewSpec as cn, DateSpan as co, isDateSpansEqual as cp, DateMarker as cq, addDays as cr, startOfDay as cs, addMs as ct, addWeeks as cu, diffWeeks as cv, diffWholeWeeks as cw, diffWholeDays as cx, diffDayAndTime as cy, diffDays as cz, EventApi as d, getIsRtlScrollbarOnLeft as d$, SegHierarchy as d0, buildEntryKey as d1, getEntrySpanEnd as d2, binarySearch as d3, groupIntersectingEntries as d4, intersectSpans as d5, InteractionSettings as d6, InteractionSettingsStore as d7, Interaction as d8, interactionSettingsToStore as d9, buildEventRangeKey as dA, getEventRangeAnchorAttrs as dB, DayTableCell as dC, DayTableModel as dD, Scroller as dE, getNormalizedScrollX as dF, setNormalizedScrollX as dG, SlicedProps as dH, Slicer as dI, EventMutation as dJ, applyMutationToEventStore as dK, Constraint as dL, isPropsValid as dM, isInteractionValid as dN, isDateSelectionValid as dO, requestJson as dP, BaseComponent as dQ, setRef as dR, DelayedRunner as dS, getStickyFooterScrollbar as dT, getStickyHeaderDates as dU, getIsHeightAuto as dV, getScrollerSyncerClass as dW, ScrollerInterface as dX, ScrollerSyncerInterface as dY, getScrollbarWidths as dZ, RefMap as d_, interactionSettingsStore as da, PointerDragEvent as db, Hit as dc, dateSelectionJoinTransformer as dd, eventDragMutationMassager as de, EventDropTransformers as df, ElementDragging as dg, config as dh, RecurringType as di, DragMetaInput as dj, DragMeta as dk, parseDragMeta as dl, ViewPropsTransformer as dm, Action as dn, CalendarContext as dp, CalendarContentProps as dq, CalendarRoot as dr, DaySeriesModel as ds, EventInteractionState as dt, sliceEventStore as du, hasBgRendering as dv, getElEventRange as dw, buildEventRangeTimeText as dx, sortEventSegs as dy, getEventRangeMeta as dz, EventRenderRange as e, NowTimer as e0, MountArg as e1, StandardEvent as e2, NowIndicatorContainer as e3, DayCellContainer as e4, hasCustomDayCellContent as e5, MinimalEventProps as e6, EventContainer as e7, renderFill as e8, BgEvent as e9, WeekNumberContainerProps as ea, WeekNumberContainer as eb, MoreLinkContainer as ec, computeEarliestSegStart as ed, ViewContainerProps as ee, ViewContainer as ef, DatePointTransform as eg, DateSpanTransform as eh, triggerDateSelect as ei, getDefaultEventEnd as ej, injectStyles as ek, EventImpl as el, buildEventApis as em, ElProps as en, buildElAttrs as eo, InnerContainerFunc as ep, ContentContainer as eq, CustomRendering as er, CalendarListeners as f, ViewOptions as g, DurationInput as h, DateSpanInput as i, DateRangeInput as j, EventSourceInput as k, EventSourceFunc as l, EventSourceFuncArg as m, EventInput as n, EventInputTransformer as o, CssDimValue as p, LocaleSingularArg as q, ConstraintInput as r, sliceEvents as s, ViewComponentType as t, SpecificViewMountArg as u, ClassNamesGenerator as v, CustomContentGenerator as w, DidMountHandler as x, NowIndicatorContentArg as y, NowIndicatorMountArg as z };
|