|
|
@@ -5,29 +5,29 @@ import './index.css'
|
|
|
|
|
|
export const version: string = '<%= version %>' // important to type it, so .d.ts has generic string
|
|
|
|
|
|
-export { Calendar } from './Calendar'
|
|
|
+export { Calendar } from './Calendar.js'
|
|
|
|
|
|
// TODO: audit all exports. will not need many after combining core+common
|
|
|
|
|
|
// explicit API
|
|
|
-export { EventSourceApi } from './api/EventSourceApi'
|
|
|
-export { EventApi, buildEventApis } from './api/EventApi'
|
|
|
-export { CalendarApi } from './CalendarApi'
|
|
|
-export { formatDate, formatRange, FormatDateOptions, FormatRangeOptions } from './formatting-api'
|
|
|
-export { ViewApi } from './ViewApi'
|
|
|
-export * from './api-type-deps'
|
|
|
+export { EventSourceApi } from './api/EventSourceApi.js'
|
|
|
+export { EventApi, buildEventApis } from './api/EventApi.js'
|
|
|
+export { CalendarApi } from './CalendarApi.js'
|
|
|
+export { formatDate, formatRange, FormatDateOptions, FormatRangeOptions } from './formatting-api.js'
|
|
|
+export { ViewApi } from './ViewApi.js'
|
|
|
+export * from './api-type-deps.js'
|
|
|
|
|
|
export { // things for plugins. everything else is exported in api-type-deps
|
|
|
BASE_OPTION_DEFAULTS, BASE_OPTION_REFINERS, identity, Identity, Dictionary, refineProps,
|
|
|
BaseOptionRefiners, BaseOptionsRefined, CalendarOptionRefiners, CalendarOptionsRefined,
|
|
|
ViewOptionRefiners, ViewOptionsRefined, RawOptionsFromRefiners, RefinedOptionsFromRefiners,
|
|
|
CalendarListenerRefiners,
|
|
|
-} from './options'
|
|
|
+} from './options.js'
|
|
|
|
|
|
-export { EventDef, EventDefHash } from './structs/event-def'
|
|
|
-export { EventInstance, EventInstanceHash, createEventInstance } from './structs/event-instance'
|
|
|
-export { EventInput, EventRefined, parseEventDef, EventTuple, EventRefiners, refineEventDef } from './structs/event-parse'
|
|
|
-export { BusinessHoursInput, parseBusinessHours } from './structs/business-hours'
|
|
|
+export { EventDef, EventDefHash } from './structs/event-def.js'
|
|
|
+export { EventInstance, EventInstanceHash, createEventInstance } from './structs/event-instance.js'
|
|
|
+export { EventInput, EventRefined, parseEventDef, EventTuple, EventRefiners, refineEventDef } from './structs/event-parse.js'
|
|
|
+export { BusinessHoursInput, parseBusinessHours } from './structs/business-hours.js'
|
|
|
|
|
|
export {
|
|
|
padStart,
|
|
|
@@ -41,20 +41,20 @@ export {
|
|
|
guid,
|
|
|
computeSmallestCellWidth,
|
|
|
OrderSpec,
|
|
|
-} from './util/misc'
|
|
|
+} from './util/misc.js'
|
|
|
|
|
|
export {
|
|
|
computeVisibleDayRange,
|
|
|
isMultiDayRange,
|
|
|
diffDates,
|
|
|
-} from './util/date'
|
|
|
+} from './util/date.js'
|
|
|
|
|
|
export {
|
|
|
removeExact,
|
|
|
isArraysEqual,
|
|
|
-} from './util/array'
|
|
|
+} from './util/array.js'
|
|
|
|
|
|
-export { memoize, memoizeObjArg, memoizeArraylike, memoizeHashlike, MemoizeHashFunc, MemoiseArrayFunc } from './util/memoize'
|
|
|
+export { memoize, memoizeObjArg, memoizeArraylike, memoizeHashlike, MemoizeHashFunc, MemoiseArrayFunc } from './util/memoize.js'
|
|
|
|
|
|
export {
|
|
|
intersectRects,
|
|
|
@@ -62,9 +62,9 @@ export {
|
|
|
constrainPoint,
|
|
|
getRectCenter, diffPoints, Point,
|
|
|
translateRect,
|
|
|
-} from './util/geom'
|
|
|
+} from './util/geom.js'
|
|
|
|
|
|
-export { mapHash, filterHash, isPropsEqual, compareObjs, buildHashFromArray, collectFromHash, getUnequalProps } from './util/object'
|
|
|
+export { mapHash, filterHash, isPropsEqual, compareObjs, buildHashFromArray, collectFromHash, getUnequalProps } from './util/object.js'
|
|
|
|
|
|
export {
|
|
|
findElements,
|
|
|
@@ -77,10 +77,10 @@ export {
|
|
|
getElRoot,
|
|
|
getEventTargetViaRoot,
|
|
|
getUniqueDomId,
|
|
|
-} from './util/dom-manip'
|
|
|
-export { parseClassNames } from './util/html'
|
|
|
+} from './util/dom-manip.js'
|
|
|
+export { parseClassNames } from './util/html.js'
|
|
|
|
|
|
-export { getCanVGrowWithinCell } from './util/table-styling'
|
|
|
+export { getCanVGrowWithinCell } from './util/table-styling.js'
|
|
|
|
|
|
export {
|
|
|
EventStore,
|
|
|
@@ -89,18 +89,18 @@ export {
|
|
|
mergeEventStores,
|
|
|
getRelevantEvents,
|
|
|
eventTupleToStore,
|
|
|
-} from './structs/event-store'
|
|
|
-export { EventUiHash, EventUi, combineEventUis, createEventUi } from './component/event-ui'
|
|
|
-export { Splitter, SplittableProps } from './component/event-splitting'
|
|
|
-export { getDayClassNames, getDateMeta, DateMeta, getSlotClassNames } from './component/date-rendering'
|
|
|
-export { buildNavLinkAttrs } from './common/nav-link'
|
|
|
+} from './structs/event-store.js'
|
|
|
+export { EventUiHash, EventUi, combineEventUis, createEventUi } from './component/event-ui.js'
|
|
|
+export { Splitter, SplittableProps } from './component/event-splitting.js'
|
|
|
+export { getDayClassNames, getDateMeta, DateMeta, getSlotClassNames } from './component/date-rendering.js'
|
|
|
+export { buildNavLinkAttrs } from './common/nav-link.js'
|
|
|
|
|
|
export {
|
|
|
preventDefault,
|
|
|
listenBySelector,
|
|
|
whenTransitionDone,
|
|
|
createAriaClickAttrs,
|
|
|
-} from './util/dom-event'
|
|
|
+} from './util/dom-event.js'
|
|
|
|
|
|
export {
|
|
|
computeInnerRect,
|
|
|
@@ -108,26 +108,26 @@ export {
|
|
|
computeHeightAndMargins,
|
|
|
getClippingParents,
|
|
|
computeRect,
|
|
|
-} from './util/dom-geom'
|
|
|
-
|
|
|
-export { unpromisify } from './util/promise'
|
|
|
-
|
|
|
-export { Emitter } from './common/Emitter'
|
|
|
-export { DateRange, rangeContainsMarker, intersectRanges, rangesEqual, rangesIntersect, rangeContainsRange } from './datelib/date-range'
|
|
|
-export { PositionCache } from './common/PositionCache'
|
|
|
-export { ScrollController, ElementScrollController, WindowScrollController } from './common/scroll-controller'
|
|
|
-export { Theme } from './theme/Theme'
|
|
|
-export { ViewContext, ViewContextType } from './ViewContext'
|
|
|
-export { DateComponent, Seg, EventSegUiInteractionState } from './component/DateComponent'
|
|
|
-export { CalendarData } from './reducers/data-types'
|
|
|
-export { CalendarDataManager } from './reducers/CalendarDataManager'
|
|
|
-export { CalendarDataProvider, CalendarDataProviderProps } from './component/CalendarDataProvider'
|
|
|
-export { ViewProps, sliceEvents } from './View'
|
|
|
-
|
|
|
-export { DateProfileGenerator, DateProfile } from './DateProfileGenerator'
|
|
|
-export { ViewDef } from './structs/view-def'
|
|
|
-export { ViewSpec } from './structs/view-spec'
|
|
|
-export { DateSpan, DateSpanApi, DatePointApi, isDateSpansEqual } from './structs/date-span'
|
|
|
+} from './util/dom-geom.js'
|
|
|
+
|
|
|
+export { unpromisify } from './util/promise.js'
|
|
|
+
|
|
|
+export { Emitter } from './common/Emitter.js'
|
|
|
+export { DateRange, rangeContainsMarker, intersectRanges, rangesEqual, rangesIntersect, rangeContainsRange } from './datelib/date-range.js'
|
|
|
+export { PositionCache } from './common/PositionCache.js'
|
|
|
+export { ScrollController, ElementScrollController, WindowScrollController } from './common/scroll-controller.js'
|
|
|
+export { Theme } from './theme/Theme.js'
|
|
|
+export { ViewContext, ViewContextType } from './ViewContext.js'
|
|
|
+export { DateComponent, Seg, EventSegUiInteractionState } from './component/DateComponent.js'
|
|
|
+export { CalendarData } from './reducers/data-types.js'
|
|
|
+export { CalendarDataManager } from './reducers/CalendarDataManager.js'
|
|
|
+export { CalendarDataProvider, CalendarDataProviderProps } from './component/CalendarDataProvider.js'
|
|
|
+export { ViewProps, sliceEvents } from './View.js'
|
|
|
+
|
|
|
+export { DateProfileGenerator, DateProfile } from './DateProfileGenerator.js'
|
|
|
+export { ViewDef } from './structs/view-def.js'
|
|
|
+export { ViewSpec } from './structs/view-spec.js'
|
|
|
+export { DateSpan, DateSpanApi, DatePointApi, isDateSpansEqual } from './structs/date-span.js'
|
|
|
|
|
|
export {
|
|
|
DateMarker,
|
|
|
@@ -141,41 +141,41 @@ export {
|
|
|
diffDayAndTime,
|
|
|
diffDays,
|
|
|
isValidDate,
|
|
|
-} from './datelib/marker'
|
|
|
+} from './datelib/marker.js'
|
|
|
export {
|
|
|
Duration, createDuration,
|
|
|
asCleanDays, multiplyDuration, addDurations,
|
|
|
asRoughMinutes, asRoughSeconds, asRoughMs,
|
|
|
wholeDivideDurations, greatestDurationDenominator,
|
|
|
-} from './datelib/duration'
|
|
|
-export { DateEnv, DateMarkerMeta } from './datelib/env'
|
|
|
+} from './datelib/duration.js'
|
|
|
+export { DateEnv, DateMarkerMeta } from './datelib/env.js'
|
|
|
|
|
|
export {
|
|
|
createFormatter,
|
|
|
FormatterInput,
|
|
|
-} from './datelib/formatting'
|
|
|
+} from './datelib/formatting.js'
|
|
|
export {
|
|
|
DateFormatter,
|
|
|
VerboseFormattingArg,
|
|
|
-} from './datelib/DateFormatter'
|
|
|
+} from './datelib/DateFormatter.js'
|
|
|
export {
|
|
|
formatIsoTimeString,
|
|
|
formatDayString,
|
|
|
buildIsoString,
|
|
|
-} from './datelib/formatting-utils'
|
|
|
-export { NamedTimeZoneImpl } from './datelib/timezone'
|
|
|
-export { parse as parseMarker } from './datelib/parsing'
|
|
|
-export { LocaleInput } from './datelib/locale'
|
|
|
+} from './datelib/formatting-utils.js'
|
|
|
+export { NamedTimeZoneImpl } from './datelib/timezone.js'
|
|
|
+export { parse as parseMarker } from './datelib/parsing.js'
|
|
|
+export { LocaleInput } from './datelib/locale.js'
|
|
|
|
|
|
-export { EventSourceDef } from './structs/event-source-def'
|
|
|
-export { EventSource, EventSourceHash } from './structs/event-source'
|
|
|
-export { EventSourceRefiners, EventSourceRefined } from './structs/event-source-parse'
|
|
|
+export { EventSourceDef } from './structs/event-source-def.js'
|
|
|
+export { EventSource, EventSourceHash } from './structs/event-source.js'
|
|
|
+export { EventSourceRefiners, EventSourceRefined } from './structs/event-source-parse.js'
|
|
|
|
|
|
export {
|
|
|
SegSpan, SegRect, SegHierarchy, SegEntry, SegInsertion, buildEntryKey,
|
|
|
getEntrySpanEnd, binarySearch, SegEntryGroup, groupIntersectingEntries,
|
|
|
joinSpans, intersectSpans,
|
|
|
-} from './seg-hierarchy'
|
|
|
+} from './seg-hierarchy.js'
|
|
|
|
|
|
export {
|
|
|
Interaction,
|
|
|
@@ -183,35 +183,35 @@ export {
|
|
|
interactionSettingsToStore,
|
|
|
interactionSettingsStore,
|
|
|
InteractionSettingsStore,
|
|
|
-} from './interactions/interaction'
|
|
|
-export { PointerDragEvent } from './interactions/pointer'
|
|
|
-export { Hit } from './interactions/hit'
|
|
|
-export { dateSelectionJoinTransformer } from './interactions/date-selecting'
|
|
|
-export { eventDragMutationMassager, EventDropTransformers } from './interactions/event-dragging'
|
|
|
-export { ElementDragging } from './interactions/ElementDragging'
|
|
|
+} from './interactions/interaction.js'
|
|
|
+export { PointerDragEvent } from './interactions/pointer.js'
|
|
|
+export { Hit } from './interactions/hit.js'
|
|
|
+export { dateSelectionJoinTransformer } from './interactions/date-selecting.js'
|
|
|
+export { eventDragMutationMassager, EventDropTransformers } from './interactions/event-dragging.js'
|
|
|
+export { ElementDragging } from './interactions/ElementDragging.js'
|
|
|
|
|
|
-export { config } from './global-config'
|
|
|
-export { globalLocales } from './global-locales'
|
|
|
+export { config } from './global-config.js'
|
|
|
+export { globalLocales } from './global-locales.js'
|
|
|
|
|
|
-export { RecurringType, ParsedRecurring } from './structs/recurring-event'
|
|
|
+export { RecurringType, ParsedRecurring } from './structs/recurring-event.js'
|
|
|
|
|
|
-export { DragMetaInput, DragMeta, parseDragMeta } from './structs/drag-meta'
|
|
|
+export { DragMetaInput, DragMeta, parseDragMeta } from './structs/drag-meta.js'
|
|
|
|
|
|
-export { PluginDef, PluginDefInput, ViewPropsTransformer, ViewContainerAppend } from './plugin-system-struct'
|
|
|
-export { createPlugin } from './plugin-system'
|
|
|
-export { Action } from './reducers/Action'
|
|
|
-export { CalendarContext } from './CalendarContext'
|
|
|
-export { CalendarContentProps, CalendarContent } from './CalendarContent'
|
|
|
-export { CalendarRoot } from './CalendarRoot'
|
|
|
+export { PluginDef, PluginDefInput, ViewPropsTransformer, ViewContainerAppend } from './plugin-system-struct.js'
|
|
|
+export { createPlugin } from './plugin-system.js'
|
|
|
+export { Action } from './reducers/Action.js'
|
|
|
+export { CalendarContext } from './CalendarContext.js'
|
|
|
+export { CalendarContentProps, CalendarContent } from './CalendarContent.js'
|
|
|
+export { CalendarRoot } from './CalendarRoot.js'
|
|
|
|
|
|
-export { DayHeader } from './common/DayHeader'
|
|
|
-export { computeFallbackHeaderFormat } from './common/table-utils'
|
|
|
-export { TableDateCell } from './common/TableDateCell'
|
|
|
-export { TableDowCell } from './common/TableDowCell'
|
|
|
+export { DayHeader } from './common/DayHeader.js'
|
|
|
+export { computeFallbackHeaderFormat } from './common/table-utils.js'
|
|
|
+export { TableDateCell } from './common/TableDateCell.js'
|
|
|
+export { TableDowCell } from './common/TableDowCell.js'
|
|
|
|
|
|
-export { DaySeriesModel } from './common/DaySeriesModel'
|
|
|
+export { DaySeriesModel } from './common/DaySeriesModel.js'
|
|
|
|
|
|
-export { EventInteractionState } from './interactions/event-interaction-state'
|
|
|
+export { EventInteractionState } from './interactions/event-interaction-state.js'
|
|
|
export {
|
|
|
EventRenderRange, sliceEventStore, hasBgRendering, setElSeg, getElSeg,
|
|
|
computeSegDraggable, computeSegStartResizable, computeSegEndResizable,
|
|
|
@@ -219,20 +219,20 @@ export {
|
|
|
buildSegCompareObj, sortEventSegs,
|
|
|
getSegMeta, EventContentArg, buildEventRangeKey,
|
|
|
getSegAnchorAttrs,
|
|
|
-} from './component/event-rendering'
|
|
|
+} from './component/event-rendering.js'
|
|
|
|
|
|
-export { DayTableModel, DayTableSeg, DayTableCell } from './common/DayTableModel'
|
|
|
+export { DayTableModel, DayTableSeg, DayTableCell } from './common/DayTableModel.js'
|
|
|
|
|
|
-export { Slicer, SlicedProps } from './common/slicing-utils'
|
|
|
+export { Slicer, SlicedProps } from './common/slicing-utils.js'
|
|
|
|
|
|
-export { EventMutation, applyMutationToEventStore } from './structs/event-mutation'
|
|
|
-export { Constraint, ConstraintInput, AllowFunc } from './structs/constraint'
|
|
|
-export { isPropsValid, isInteractionValid, isDateSelectionValid } from './validation'
|
|
|
+export { EventMutation, applyMutationToEventStore } from './structs/event-mutation.js'
|
|
|
+export { Constraint, ConstraintInput, AllowFunc } from './structs/constraint.js'
|
|
|
+export { isPropsValid, isInteractionValid, isDateSelectionValid } from './validation.js'
|
|
|
|
|
|
-export { requestJson } from './util/requestJson'
|
|
|
+export { requestJson } from './util/requestJson.js'
|
|
|
|
|
|
-export { BaseComponent, setRef } from './vdom-util'
|
|
|
-export { DelayedRunner } from './util/DelayedRunner'
|
|
|
+export { BaseComponent, setRef } from './vdom-util.js'
|
|
|
+export { DelayedRunner } from './util/DelayedRunner.js'
|
|
|
|
|
|
export {
|
|
|
ScrollGridProps,
|
|
|
@@ -240,8 +240,8 @@ export {
|
|
|
ColGroupConfig,
|
|
|
ScrollGridImpl,
|
|
|
ScrollGridChunkConfig,
|
|
|
-} from './scrollgrid/ScrollGridImpl'
|
|
|
-export { SimpleScrollGrid, SimpleScrollGridSection } from './scrollgrid/SimpleScrollGrid'
|
|
|
+} from './scrollgrid/ScrollGridImpl.js'
|
|
|
+export { SimpleScrollGrid, SimpleScrollGridSection } from './scrollgrid/SimpleScrollGrid.js'
|
|
|
export {
|
|
|
CssDimValue, ScrollerLike, SectionConfig, ColProps, ChunkConfig, hasShrinkWidth, renderMicroColGroup,
|
|
|
getScrollGridClassNames, getSectionClassNames, getSectionHasLiquidHeight, getAllowYScrolling, renderChunkContent, computeShrinkWidth,
|
|
|
@@ -252,28 +252,28 @@ export {
|
|
|
renderScrollShim,
|
|
|
getStickyFooterScrollbar,
|
|
|
getStickyHeaderDates,
|
|
|
-} from './scrollgrid/util'
|
|
|
-export { Scroller, ScrollerProps, OverflowValue } from './scrollgrid/Scroller'
|
|
|
-export { getScrollbarWidths } from './util/scrollbar-width'
|
|
|
-export { RefMap } from './util/RefMap'
|
|
|
-export { getIsRtlScrollbarOnLeft } from './util/scrollbar-side'
|
|
|
-
|
|
|
-export { NowTimer } from './NowTimer'
|
|
|
-export { ScrollResponder, ScrollRequest } from './ScrollResponder'
|
|
|
-export { globalPlugins } from './global-plugins'
|
|
|
+} from './scrollgrid/util.js'
|
|
|
+export { Scroller, ScrollerProps, OverflowValue } from './scrollgrid/Scroller.js'
|
|
|
+export { getScrollbarWidths } from './util/scrollbar-width.js'
|
|
|
+export { RefMap } from './util/RefMap.js'
|
|
|
+export { getIsRtlScrollbarOnLeft } from './util/scrollbar-side.js'
|
|
|
+
|
|
|
+export { NowTimer } from './NowTimer.js'
|
|
|
+export { ScrollResponder, ScrollRequest } from './ScrollResponder.js'
|
|
|
+export { globalPlugins } from './global-plugins.js'
|
|
|
export {
|
|
|
RenderHook, RenderHookProps, RenderHookPropsChildren, MountHook, MountHookProps, buildClassNameNormalizer, ContentHook,
|
|
|
CustomContentRenderContext, ClassNamesGenerator, CustomContentGenerator, DidMountHandler, WillUnmountHandler, MountArg,
|
|
|
-} from './common/render-hook'
|
|
|
-export { StandardEvent, StandardEventProps } from './common/StandardEvent'
|
|
|
-export { NowIndicatorRoot, NowIndicatorRootProps } from './common/NowIndicatorRoot'
|
|
|
-
|
|
|
-export { DayCellRoot, DayCellRootProps, DayCellContentArg } from './common/DayCellRoot'
|
|
|
-export { DayCellContent, DayCellContentProps } from './common/DayCellContent'
|
|
|
-export { EventRoot, MinimalEventProps } from './common/EventRoot'
|
|
|
-export { renderFill, BgEvent, BgEventProps } from './common/bg-fill'
|
|
|
-export { WeekNumberRoot, WeekNumberRootProps } from './common/WeekNumberRoot'
|
|
|
-export { MoreLinkRoot, MoreLinkRootProps, MoreLinkContentArg, MoreLinkMountArg, computeEarliestSegStart } from './common/MoreLinkRoot'
|
|
|
-
|
|
|
-export { ViewRoot, ViewRootProps } from './common/ViewRoot'
|
|
|
-export { triggerDateSelect, DatePointTransform, DateSpanTransform, DateSelectionApi, getDefaultEventEnd } from './calendar-utils'
|
|
|
+} from './common/render-hook.js'
|
|
|
+export { StandardEvent, StandardEventProps } from './common/StandardEvent.js'
|
|
|
+export { NowIndicatorRoot, NowIndicatorRootProps } from './common/NowIndicatorRoot.js'
|
|
|
+
|
|
|
+export { DayCellRoot, DayCellRootProps, DayCellContentArg } from './common/DayCellRoot.js'
|
|
|
+export { DayCellContent, DayCellContentProps } from './common/DayCellContent.js'
|
|
|
+export { EventRoot, MinimalEventProps } from './common/EventRoot.js'
|
|
|
+export { renderFill, BgEvent, BgEventProps } from './common/bg-fill.js'
|
|
|
+export { WeekNumberRoot, WeekNumberRootProps } from './common/WeekNumberRoot.js'
|
|
|
+export { MoreLinkRoot, MoreLinkRootProps, MoreLinkContentArg, MoreLinkMountArg, computeEarliestSegStart } from './common/MoreLinkRoot.js'
|
|
|
+
|
|
|
+export { ViewRoot, ViewRootProps } from './common/ViewRoot.js'
|
|
|
+export { triggerDateSelect, DatePointTransform, DateSpanTransform, DateSelectionApi, getDefaultEventEnd } from './calendar-utils.js'
|