vanilla-jui 1.5.24 → 1.5.26
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 +39 -36
- package/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/form.ts +3 -4
- package/src/components/menu.ts +2 -3
- package/src/components/modal.ts +2 -4
- package/src/components/pagination.ts +17 -25
- package/src/css/accordion.css +1 -1
- package/src/css/editor.css +697 -1
- package/src/css/form.css +0 -5
- package/src/css/index.css +2 -4
- package/src/css/pagination.css +1 -5
- package/src/css/swiper.css +42 -7
- package/src/css/themes/default/editor.css +59 -1
- package/src/css/themes/default/index.css +0 -1
- package/src/css/themes/default/swiper.css +1 -1
- package/src/css/toc.css +0 -4
- package/src/css/tokens.css +1 -1
- package/src/index.ts +3 -2
- package/src/locales/index.ts +2 -0
- package/src/primitives/theme.ts +1 -4
- package/src/primitives/toast.ts +4 -8
- package/src/utilities/browser.ts +2 -3
- package/src/utilities/locale.ts +6 -0
- package/src/css/content.css +0 -692
- package/src/css/themes/default/content.css +0 -59
package/dist/index.d.ts
CHANGED
|
@@ -229,30 +229,8 @@ declare const restUrl: string;
|
|
|
229
229
|
*/
|
|
230
230
|
declare function postJson<T = unknown>(url: string, body: unknown, options?: Omit<RequestInit, 'method' | 'body'>): Promise<T>;
|
|
231
231
|
//#endregion
|
|
232
|
-
//#region src/
|
|
233
|
-
|
|
234
|
-
interface TransitionDefinition {
|
|
235
|
-
keyframes: Keyframe[] | PropertyIndexedKeyframes;
|
|
236
|
-
options?: KeyframeAnimationOptions;
|
|
237
|
-
respectReducedMotion?: boolean;
|
|
238
|
-
}
|
|
239
|
-
interface MotionController {
|
|
240
|
-
enter: (signal?: AbortSignal) => Promise<void>;
|
|
241
|
-
leave: (signal?: AbortSignal) => Promise<void>;
|
|
242
|
-
cancel: () => void;
|
|
243
|
-
}
|
|
244
|
-
interface CollapseTransitionDefinition {
|
|
245
|
-
axis?: 'vertical' | 'horizontal';
|
|
246
|
-
options?: KeyframeAnimationOptions;
|
|
247
|
-
fade?: boolean;
|
|
248
|
-
respectReducedMotion?: boolean;
|
|
249
|
-
}
|
|
250
|
-
interface CollapseMotionController extends MotionController {
|
|
251
|
-
setExpanded: (expanded: boolean) => void;
|
|
252
|
-
}
|
|
253
|
-
declare function createMotionGroup(...motions: readonly MotionController[]): MotionController;
|
|
254
|
-
declare function createTransition(target: TransitionTarget, definition: TransitionDefinition): MotionController;
|
|
255
|
-
declare function createCollapseTransition(target: () => HTMLElement | null | undefined, definition?: CollapseTransitionDefinition): CollapseMotionController;
|
|
232
|
+
//#region src/utilities/locale.d.ts
|
|
233
|
+
declare function translate(key: string): string;
|
|
256
234
|
//#endregion
|
|
257
235
|
//#region src/utilities/object.d.ts
|
|
258
236
|
declare function isPlainObject(value: unknown): boolean;
|
|
@@ -316,15 +294,6 @@ type ResolvedProps<TSchema extends object> = LooseRecord & { [Key in keyof TSche
|
|
|
316
294
|
declare function validateParam<TInput extends LooseRecord = LooseRecord>(name: string, value: unknown, rule?: ParamRuleInput<TInput>, namespace?: string): unknown;
|
|
317
295
|
declare function resolveProps<TInput extends LooseRecord, TSchema extends ResolveSchema<TInput>>(input?: TInput | null | undefined, schema?: TSchema, namespace?: string): TInput & ResolvedProps<TSchema>;
|
|
318
296
|
//#endregion
|
|
319
|
-
//#region src/core/scheduler.d.ts
|
|
320
|
-
interface ScheduledTask {
|
|
321
|
-
schedule: () => void;
|
|
322
|
-
flush: () => void;
|
|
323
|
-
cancel: () => void;
|
|
324
|
-
dispose: () => void;
|
|
325
|
-
}
|
|
326
|
-
declare function createScheduledTask(run: () => void): ScheduledTask;
|
|
327
|
-
//#endregion
|
|
328
297
|
//#region src/utilities/state.d.ts
|
|
329
298
|
interface StateSyncOptions {
|
|
330
299
|
deferInitial?: boolean;
|
|
@@ -356,6 +325,15 @@ interface KeyedElementRefs<TKey, TElement extends Element> {
|
|
|
356
325
|
}
|
|
357
326
|
declare function createKeyedElementRefs<TKey, TElement extends Element>(): KeyedElementRefs<TKey, TElement>;
|
|
358
327
|
//#endregion
|
|
328
|
+
//#region src/core/scheduler.d.ts
|
|
329
|
+
interface ScheduledTask {
|
|
330
|
+
schedule: () => void;
|
|
331
|
+
flush: () => void;
|
|
332
|
+
cancel: () => void;
|
|
333
|
+
dispose: () => void;
|
|
334
|
+
}
|
|
335
|
+
declare function createScheduledTask(run: () => void): ScheduledTask;
|
|
336
|
+
//#endregion
|
|
359
337
|
//#region src/core/view.d.ts
|
|
360
338
|
interface OwnedView<TElement extends Element> {
|
|
361
339
|
element: TElement;
|
|
@@ -371,6 +349,31 @@ interface OwnedViewOptions {
|
|
|
371
349
|
*/
|
|
372
350
|
declare function createOwnedView<TElement extends Element>(factory: () => TElement, options?: OwnedViewOptions): OwnedView<TElement>;
|
|
373
351
|
//#endregion
|
|
352
|
+
//#region src/core/motion.d.ts
|
|
353
|
+
type TransitionTarget = () => Element | null | undefined;
|
|
354
|
+
interface TransitionDefinition {
|
|
355
|
+
keyframes: Keyframe[] | PropertyIndexedKeyframes;
|
|
356
|
+
options?: KeyframeAnimationOptions;
|
|
357
|
+
respectReducedMotion?: boolean;
|
|
358
|
+
}
|
|
359
|
+
interface MotionController {
|
|
360
|
+
enter: (signal?: AbortSignal) => Promise<void>;
|
|
361
|
+
leave: (signal?: AbortSignal) => Promise<void>;
|
|
362
|
+
cancel: () => void;
|
|
363
|
+
}
|
|
364
|
+
interface CollapseTransitionDefinition {
|
|
365
|
+
axis?: 'vertical' | 'horizontal';
|
|
366
|
+
options?: KeyframeAnimationOptions;
|
|
367
|
+
fade?: boolean;
|
|
368
|
+
respectReducedMotion?: boolean;
|
|
369
|
+
}
|
|
370
|
+
interface CollapseMotionController extends MotionController {
|
|
371
|
+
setExpanded: (expanded: boolean) => void;
|
|
372
|
+
}
|
|
373
|
+
declare function createMotionGroup(...motions: readonly MotionController[]): MotionController;
|
|
374
|
+
declare function createTransition(target: TransitionTarget, definition: TransitionDefinition): MotionController;
|
|
375
|
+
declare function createCollapseTransition(target: () => HTMLElement | null | undefined, definition?: CollapseTransitionDefinition): CollapseMotionController;
|
|
376
|
+
//#endregion
|
|
374
377
|
//#region src/core/presence.d.ts
|
|
375
378
|
type PresencePhase = 'hidden' | 'entering' | 'visible' | 'leaving';
|
|
376
379
|
interface PresenceOptions {
|
|
@@ -1683,9 +1686,9 @@ interface PaginationClassNames {
|
|
|
1683
1686
|
root: string;
|
|
1684
1687
|
list: string;
|
|
1685
1688
|
item: string;
|
|
1686
|
-
more: string;
|
|
1687
1689
|
button: string;
|
|
1688
|
-
|
|
1690
|
+
moreBtn: string;
|
|
1691
|
+
currentBtn: string;
|
|
1689
1692
|
loading: string;
|
|
1690
1693
|
}
|
|
1691
1694
|
type PaginationClassNameConfig = Partial<PaginationClassNames>;
|
|
@@ -1769,4 +1772,4 @@ interface MenuState extends Record<string, unknown> {
|
|
|
1769
1772
|
type Menu = FunctionalComponent<ResolvedMenuProps, MenuState, HTMLElement>;
|
|
1770
1773
|
declare function createMenu(input?: MenuProps): Menu;
|
|
1771
1774
|
//#endregion
|
|
1772
|
-
export { ClassNameToken, CleanupFunction, CollapseMotionController, CollapseTransitionDefinition, ComponentCleanup, ComponentContext, ComponentController, ComponentDefinition, ComponentLifecycleEvent, ComponentListener, ComponentPlugin, ComponentPluginOptions, ComponentProps, ComponentRuntime, ComponentState, ContainerExpect, DOMReference, DropInstance, ElementRef, FieldOption, Flow, FlowAction, FlowBusyHook, FlowBusyStrategy, FlowChangeHook, FlowClassNameConfig, FlowClassNames, FlowCleanup, FlowContext, FlowData, FlowDirection, FlowErrorHook, FlowFinishHook, FlowGoToOptions, FlowGuardHook, FlowLifecycleHook, FlowMoveHook, FlowPayload, FlowProps, FlowRenderContext, FlowSlot, FlowSlotName, FlowSnapshot, FlowState, FlowStep, FlowStepResult, FlowSubscriber, FlowTarget, FlowText, Form, FormButtons, FormClassNameConfig, FormClassNames, FormDataRecord, FormDataValue, FormField, FormItem, FormItemNext, FormItemType, FormOption, FormProps, FormText, FormTextConfig, FormValidatorConfig, FunctionalComponent, IEventManager, IconAttributeValue, IconName, IconPathMap, IconProps, KeyedElementRefs, LazyRenderCallback, LazyRenderOptions, LazyRenderTarget, Menu, MenuClassNameConfig, MenuClassNames, MenuItem, MenuItemId, MenuItemRenderType, MenuProps, MenuType, Modal, ModalClassNameConfig, ModalClassNames, ModalProps, ModalText, MotionController, NormalizeContext, Offcanvas, OffcanvasAnimate, OffcanvasClassNameConfig, OffcanvasClassNames, OffcanvasContent, OffcanvasDirection, OffcanvasProps, OwnedView, OwnedViewOptions, Pagination, PaginationClassNameConfig, PaginationClassNames, PaginationCount, PaginationPage, PaginationProps, ParabolaInstance, ParamRule, ParamRuleInput, PopupProps, PresenceController, PresenceOptions, PresencePhase, PublicFlowStep, QueryContext, RenderableContent, RequireContainerResult, ResolveContainerResult, ResolveSchema, ResolvedProps, StateSyncOptions, SupportES2022, Swiper, SwiperClassNameConfig, SwiperClassNames, SwiperDataItem, SwiperDataLoader, SwiperDataSource, SwiperProps, SwiperSlideContext, TabContent, TabItem, Tabs, TabsClassNameConfig, TabsClassNames, TabsDirection, TabsDisabled, TabsPanelContext, TabsProps, TabsValue, ThemeClassNameConfig, ThemeClassNames, ThemeConfigKey, ThemeInstance, ThemeOptions, ThemePanelGroup, ThemeResolvedOptions, Toast, ToastClassNameConfig, ToastClassNameOptions, ToastClassNames, ToastConfirmProps, ToastOptions, ToastTheme, ToastThemeOptions, TocCurrent, TocItem, TooltipInstance, TransitionDefinition, TransitionTarget, ValidateCondition, ValidatorClassNameConfig, ValidatorClassNames, ValidatorInstance, addIcons, all, asRenderable, checkModernBrowser, copy, createAccordion, createCollapseTransition, createDrop, createElementRef, createEventManager, createFlow, createForm, createKeyedElementRefs, createLoading, createMenu, createModal, createMotionGroup, createOffcanvas, createOwnedView, createPagination, createParabola, createPopup, createPresence, createScheduledTask, createStateSync, createSticky, createSwiper, createTabs, createTheme, createToc, createTooltip, createTransition, createValidator, defineComponent, flexPosition, getRegistedIconPath, getStoreVersion, getType, icon, iconHtml, iconMarkup, isDomElementValue, isDomNodeValue, isElement, isHtmlElementValue, isMobile, isModernBrowser, isNilValue, isNode, isPlainObject, isRenderableContent, isRenderablePrimitive, isRenderableValue, joinClasses, lazyRender, listen, postJson, q, randomId, removeComponentPlugin, requireContainer, resolveContainer, resolveElement, resolveNode, resolveNodeList, resolveProps, restUrl, stateSnapshot, timer, trackStoreVersion, useComponentPlugin, uuid, validateParam, waitForMotion };
|
|
1775
|
+
export { ClassNameToken, CleanupFunction, CollapseMotionController, CollapseTransitionDefinition, ComponentCleanup, ComponentContext, ComponentController, ComponentDefinition, ComponentLifecycleEvent, ComponentListener, ComponentPlugin, ComponentPluginOptions, ComponentProps, ComponentRuntime, ComponentState, ContainerExpect, DOMReference, DropInstance, ElementRef, FieldOption, Flow, FlowAction, FlowBusyHook, FlowBusyStrategy, FlowChangeHook, FlowClassNameConfig, FlowClassNames, FlowCleanup, FlowContext, FlowData, FlowDirection, FlowErrorHook, FlowFinishHook, FlowGoToOptions, FlowGuardHook, FlowLifecycleHook, FlowMoveHook, FlowPayload, FlowProps, FlowRenderContext, FlowSlot, FlowSlotName, FlowSnapshot, FlowState, FlowStep, FlowStepResult, FlowSubscriber, FlowTarget, FlowText, Form, FormButtons, FormClassNameConfig, FormClassNames, FormDataRecord, FormDataValue, FormField, FormItem, FormItemNext, FormItemType, FormOption, FormProps, FormText, FormTextConfig, FormValidatorConfig, FunctionalComponent, IEventManager, IconAttributeValue, IconName, IconPathMap, IconProps, KeyedElementRefs, LazyRenderCallback, LazyRenderOptions, LazyRenderTarget, Menu, MenuClassNameConfig, MenuClassNames, MenuItem, MenuItemId, MenuItemRenderType, MenuProps, MenuType, Modal, ModalClassNameConfig, ModalClassNames, ModalProps, ModalText, MotionController, NormalizeContext, Offcanvas, OffcanvasAnimate, OffcanvasClassNameConfig, OffcanvasClassNames, OffcanvasContent, OffcanvasDirection, OffcanvasProps, OwnedView, OwnedViewOptions, Pagination, PaginationClassNameConfig, PaginationClassNames, PaginationCount, PaginationPage, PaginationProps, ParabolaInstance, ParamRule, ParamRuleInput, PopupProps, PresenceController, PresenceOptions, PresencePhase, PublicFlowStep, QueryContext, RenderableContent, RequireContainerResult, ResolveContainerResult, ResolveSchema, ResolvedProps, StateSyncOptions, SupportES2022, Swiper, SwiperClassNameConfig, SwiperClassNames, SwiperDataItem, SwiperDataLoader, SwiperDataSource, SwiperProps, SwiperSlideContext, TabContent, TabItem, Tabs, TabsClassNameConfig, TabsClassNames, TabsDirection, TabsDisabled, TabsPanelContext, TabsProps, TabsValue, ThemeClassNameConfig, ThemeClassNames, ThemeConfigKey, ThemeInstance, ThemeOptions, ThemePanelGroup, ThemeResolvedOptions, Toast, ToastClassNameConfig, ToastClassNameOptions, ToastClassNames, ToastConfirmProps, ToastOptions, ToastTheme, ToastThemeOptions, TocCurrent, TocItem, TooltipInstance, TransitionDefinition, TransitionTarget, ValidateCondition, ValidatorClassNameConfig, ValidatorClassNames, ValidatorInstance, addIcons, all, asRenderable, checkModernBrowser, copy, createAccordion, createCollapseTransition, createDrop, createElementRef, createEventManager, createFlow, createForm, createKeyedElementRefs, createLoading, createMenu, createModal, createMotionGroup, createOffcanvas, createOwnedView, createPagination, createParabola, createPopup, createPresence, createScheduledTask, createStateSync, createSticky, createSwiper, createTabs, createTheme, createToc, createTooltip, createTransition, createValidator, defineComponent, flexPosition, getRegistedIconPath, getStoreVersion, getType, icon, iconHtml, iconMarkup, isDomElementValue, isDomNodeValue, isElement, isHtmlElementValue, isMobile, isModernBrowser, isNilValue, isNode, isPlainObject, isRenderableContent, isRenderablePrimitive, isRenderableValue, joinClasses, lazyRender, listen, postJson, q, randomId, removeComponentPlugin, requireContainer, resolveContainer, resolveElement, resolveNode, resolveNodeList, resolveProps, restUrl, stateSnapshot, timer, trackStoreVersion, translate, useComponentPlugin, uuid, validateParam, waitForMotion };
|