vanilla-jui 1.4.7 → 1.4.8
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/index.d.ts +24 -1
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/accordion.ts +25 -23
- package/src/components/form.ts +1 -1
- package/src/components/menu.ts +14 -17
- package/src/components/offcanvas.ts +6 -20
- package/src/components/pagination.ts +9 -16
- package/src/components/swiper.ts +84 -22
- package/src/components/tabs.ts +48 -39
- package/src/index.ts +1 -0
- package/src/utilities/scheduler.ts +156 -0
package/dist/index.d.ts
CHANGED
|
@@ -316,6 +316,24 @@ type ResolvedProps<TSchema extends object> = LooseRecord & { [Key in keyof TSche
|
|
|
316
316
|
declare function validateParam<TInput extends LooseRecord = LooseRecord>(name: string, value: unknown, rule?: ParamRuleInput<TInput>, namespace?: string): unknown;
|
|
317
317
|
declare function resolveProps<TInput extends LooseRecord, TSchema extends ResolveSchema<TInput>>(input?: TInput | null | undefined, schema?: TSchema, namespace?: string): TInput & ResolvedProps<TSchema>;
|
|
318
318
|
//#endregion
|
|
319
|
+
//#region src/utilities/scheduler.d.ts
|
|
320
|
+
interface ScheduledTask {
|
|
321
|
+
schedule: () => void;
|
|
322
|
+
flush: () => void;
|
|
323
|
+
cancel: () => void;
|
|
324
|
+
dispose: () => void;
|
|
325
|
+
}
|
|
326
|
+
interface StateSyncOptions {
|
|
327
|
+
deferInitial?: boolean;
|
|
328
|
+
flushInitial?: boolean;
|
|
329
|
+
flush?: 'microtask' | 'sync';
|
|
330
|
+
}
|
|
331
|
+
declare function createScheduledTask(run: () => void): ScheduledTask;
|
|
332
|
+
declare function getStoreVersion(value: unknown): number;
|
|
333
|
+
declare function trackStoreVersion<T>(value: T): T;
|
|
334
|
+
declare function stateSnapshot<T>(value: T): T;
|
|
335
|
+
declare function createStateSync<TSnapshot>(read: () => TSnapshot, sync: (snapshot: TSnapshot) => void | Promise<void>, { deferInitial, flushInitial, flush }?: StateSyncOptions): () => void;
|
|
336
|
+
//#endregion
|
|
319
337
|
//#region src/primitives/icons.d.ts
|
|
320
338
|
type IconPathMap = Record<string, string>;
|
|
321
339
|
type IconName = string;
|
|
@@ -1807,6 +1825,7 @@ interface SwiperRuntime extends ComponentRuntime {
|
|
|
1807
1825
|
swiping: boolean;
|
|
1808
1826
|
clickPrevented: boolean;
|
|
1809
1827
|
timer: ReturnType<typeof setInterval> | null;
|
|
1828
|
+
mountRefreshId: number | null;
|
|
1810
1829
|
imageCleanups: Set<() => void>;
|
|
1811
1830
|
realCount: number;
|
|
1812
1831
|
}
|
|
@@ -1854,6 +1873,10 @@ declare class SwiperComponent extends Component<ResolvedSwiperProps, SwiperState
|
|
|
1854
1873
|
protected onDestroy(): void;
|
|
1855
1874
|
private updateSize;
|
|
1856
1875
|
refresh(): this;
|
|
1876
|
+
private hasLayout;
|
|
1877
|
+
private syncLayout;
|
|
1878
|
+
private queueMountRefresh;
|
|
1879
|
+
private cancelMountRefresh;
|
|
1857
1880
|
private refreshSlides;
|
|
1858
1881
|
private initLoop;
|
|
1859
1882
|
private setupStyles;
|
|
@@ -2288,4 +2311,4 @@ declare class MenuComponent extends Component<ResolvedMenuProps, MenuState, Menu
|
|
|
2288
2311
|
type Menu = MenuComponent;
|
|
2289
2312
|
declare function createMenu(input?: MenuProps): Menu;
|
|
2290
2313
|
//#endregion
|
|
2291
|
-
export { CleanupFunction, Component, ContainerExpect, DOMReference, type DebounceSettings, type DebouncedFunc, FlowAction, FlowBusyHook, FlowBusyStrategy, FlowChangeHook, FlowClassNameConfig, FlowClassNames, FlowCleanup, FlowContext, FlowData, FlowDirection, FlowErrorHook, FlowFinishHook, FlowGuardHook, FlowLifecycleHook, FlowMoveHook, FlowPayload, FlowProps, FlowRenderContext, FlowSlot, FlowSlotName, FlowSnapshot, FlowState, FlowStep, FlowStepResult, FlowSubscriber, FlowTarget, FlowText, FormButton, FormClassNameConfig, FormClassNames, FormDataRecord, FormDataValue, FormField, FormOption, FormProps, FormValidatorConfig, IEventManager, IconAttributeValue, IconName, IconPathMap, IconProps, LazyRenderCallback, LazyRenderOptions, LazyRenderTarget, Menu, MenuClassNameConfig, MenuClassNames, MenuItem, MenuItemId, MenuProps, MenuType, Modal, ModalClassNameConfig, ModalClassNames, ModalMode, ModalProps, ModalText, NormalizeContext, Offcanvas, OffcanvasAnimate, OffcanvasClassNameConfig, OffcanvasClassNames, OffcanvasContent, OffcanvasDirection, OffcanvasProps, Pagination, PaginationClassNameConfig, PaginationClassNames, PaginationCount, PaginationPage, PaginationProps, ParamRule, ParamRuleInput, PopupProps, PublicFlowStep, QueryContext, RenderableContent, RequireContainerResult, ResolveContainerResult, ResolveSchema, ResolvedProps, Swiper, SwiperClassNameConfig, SwiperClassNames, SwiperDataItem, SwiperProps, SwiperSlideContext, TabItem, TabPanel, TabTitleContext, Tabs, TabsClassNameConfig, TabsClassNames, TabsDirection, TabsDisabled, TabsPanelContext, TabsProps, TabsValue, ThemeClassNameConfig, ThemeClassNames, ThemeConfigKey, ThemeInstance, ThemeOptions, ThemePanelGroup, ThemeResolvedOptions, type ThrottleSettings, Toast, ToastActionProps, ToastClassNameConfig, ToastClassNames, ToastOptions, ToastType, ValidateCondition, addIcons, all, copy, createAccordion, createDrop, createEventManager, createFlow, createForm, createLoading, createMenu, createModal, createOffcanvas, createPagination, createParabola, createPopup, createSticky, createSwiper, createTabs, createTheme, createToc, createTooltip, createValidator, debounce, getRegistedIconPath, getType, icon, iconHtml, iconMarkup, isDomElementValue, isDomNodeValue, isElement, isHtmlElementValue, isMobile, isNilValue, isNode, isPlainObject, isRenderableContent, isRenderablePrimitive, isRenderableValue, lazyRender, listen, normalizeContentNodes, normalizeRenderableContentNodes, postJson, q, randomId, requireContainer, resolveContainer, resolveElement, resolveNode, resolveNodeList, resolveProps, restUrl, throttle, timer, uuid, validateParam };
|
|
2314
|
+
export { CleanupFunction, Component, ContainerExpect, DOMReference, type DebounceSettings, type DebouncedFunc, FlowAction, FlowBusyHook, FlowBusyStrategy, FlowChangeHook, FlowClassNameConfig, FlowClassNames, FlowCleanup, FlowContext, FlowData, FlowDirection, FlowErrorHook, FlowFinishHook, FlowGuardHook, FlowLifecycleHook, FlowMoveHook, FlowPayload, FlowProps, FlowRenderContext, FlowSlot, FlowSlotName, FlowSnapshot, FlowState, FlowStep, FlowStepResult, FlowSubscriber, FlowTarget, FlowText, FormButton, FormClassNameConfig, FormClassNames, FormDataRecord, FormDataValue, FormField, FormOption, FormProps, FormValidatorConfig, IEventManager, IconAttributeValue, IconName, IconPathMap, IconProps, LazyRenderCallback, LazyRenderOptions, LazyRenderTarget, Menu, MenuClassNameConfig, MenuClassNames, MenuItem, MenuItemId, MenuProps, MenuType, Modal, ModalClassNameConfig, ModalClassNames, ModalMode, ModalProps, ModalText, NormalizeContext, Offcanvas, OffcanvasAnimate, OffcanvasClassNameConfig, OffcanvasClassNames, OffcanvasContent, OffcanvasDirection, OffcanvasProps, Pagination, PaginationClassNameConfig, PaginationClassNames, PaginationCount, PaginationPage, PaginationProps, ParamRule, ParamRuleInput, PopupProps, PublicFlowStep, QueryContext, RenderableContent, RequireContainerResult, ResolveContainerResult, ResolveSchema, ResolvedProps, Swiper, SwiperClassNameConfig, SwiperClassNames, SwiperDataItem, SwiperProps, SwiperSlideContext, TabItem, TabPanel, TabTitleContext, Tabs, TabsClassNameConfig, TabsClassNames, TabsDirection, TabsDisabled, TabsPanelContext, TabsProps, TabsValue, ThemeClassNameConfig, ThemeClassNames, ThemeConfigKey, ThemeInstance, ThemeOptions, ThemePanelGroup, ThemeResolvedOptions, type ThrottleSettings, Toast, ToastActionProps, ToastClassNameConfig, ToastClassNames, ToastOptions, ToastType, ValidateCondition, addIcons, all, copy, createAccordion, createDrop, createEventManager, createFlow, createForm, createLoading, createMenu, createModal, createOffcanvas, createPagination, createParabola, createPopup, createScheduledTask, createStateSync, createSticky, createSwiper, createTabs, createTheme, createToc, createTooltip, createValidator, debounce, getRegistedIconPath, getStoreVersion, getType, icon, iconHtml, iconMarkup, isDomElementValue, isDomNodeValue, isElement, isHtmlElementValue, isMobile, isNilValue, isNode, isPlainObject, isRenderableContent, isRenderablePrimitive, isRenderableValue, lazyRender, listen, normalizeContentNodes, normalizeRenderableContentNodes, postJson, q, randomId, requireContainer, resolveContainer, resolveElement, resolveNode, resolveNodeList, resolveProps, restUrl, stateSnapshot, throttle, timer, trackStoreVersion, uuid, validateParam };
|