@soybeanjs/ui 0.15.5 → 0.16.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/components/autocomplete/variants.js +1 -1
- package/dist/components/calendar/calendar.js +1 -0
- package/dist/components/calendar/calendar.vue.d.ts +24 -0
- package/dist/components/calendar/index.d.ts +4 -0
- package/dist/components/calendar/index.js +1 -0
- package/dist/components/calendar/types.d.ts +13 -0
- package/dist/components/calendar/variants.js +1 -0
- package/dist/components/card/card.js +1 -1
- package/dist/components/card/types.d.ts +2 -10
- package/dist/components/carousel/carousel.vue.d.ts +12 -1
- package/dist/components/carousel/index.d.ts +3 -3
- package/dist/components/color-picker/color-picker.vue.d.ts +2 -2
- package/dist/components/date-field/date-field.js +1 -0
- package/dist/components/date-field/date-field.vue.d.ts +15 -0
- package/dist/components/date-field/index.d.ts +4 -0
- package/dist/components/date-field/index.js +1 -0
- package/dist/components/date-field/types.d.ts +13 -0
- package/dist/components/date-field/variants.js +1 -0
- package/dist/components/date-picker/date-picker.js +1 -0
- package/dist/components/date-picker/date-picker.vue.d.ts +24 -0
- package/dist/components/date-picker/index.d.ts +4 -0
- package/dist/components/date-picker/index.js +1 -0
- package/dist/components/date-picker/types.d.ts +24 -0
- package/dist/components/date-picker/variants.js +1 -0
- package/dist/components/date-range-field/date-range-field.js +1 -0
- package/dist/components/date-range-field/date-range-field.vue.d.ts +29 -0
- package/dist/components/date-range-field/index.d.ts +4 -0
- package/dist/components/date-range-field/index.js +1 -0
- package/dist/components/date-range-field/types.d.ts +31 -0
- package/dist/components/date-range-field/variants.js +1 -0
- package/dist/components/date-range-picker/date-range-picker.js +1 -0
- package/dist/components/date-range-picker/date-range-picker.vue.d.ts +29 -0
- package/dist/components/date-range-picker/index.d.ts +4 -0
- package/dist/components/date-range-picker/index.js +1 -0
- package/dist/components/date-range-picker/types.d.ts +31 -0
- package/dist/components/date-range-picker/variants.js +1 -0
- package/dist/components/month-picker/index.d.ts +4 -0
- package/dist/components/month-picker/index.js +1 -0
- package/dist/components/month-picker/month-picker.js +1 -0
- package/dist/components/month-picker/month-picker.vue.d.ts +24 -0
- package/dist/components/month-picker/types.d.ts +44 -0
- package/dist/components/month-picker/variants.js +1 -0
- package/dist/components/month-range-picker/index.d.ts +4 -0
- package/dist/components/month-range-picker/index.js +1 -0
- package/dist/components/month-range-picker/month-range-picker.js +1 -0
- package/dist/components/month-range-picker/month-range-picker.vue.d.ts +29 -0
- package/dist/components/month-range-picker/types.d.ts +47 -0
- package/dist/components/month-range-picker/variants.js +1 -0
- package/dist/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/dist/components/range-calendar/index.d.ts +4 -0
- package/dist/components/range-calendar/index.js +1 -0
- package/dist/components/range-calendar/range-calendar.js +1 -0
- package/dist/components/range-calendar/range-calendar.vue.d.ts +25 -0
- package/dist/components/range-calendar/types.d.ts +62 -0
- package/dist/components/range-calendar/variants.js +1 -0
- package/dist/components/time-field/index.d.ts +4 -0
- package/dist/components/time-field/index.js +1 -0
- package/dist/components/time-field/time-field.js +1 -0
- package/dist/components/time-field/time-field.vue.d.ts +22 -0
- package/dist/components/time-field/types.d.ts +25 -0
- package/dist/components/time-field/variants.js +1 -0
- package/dist/components/time-picker/index.d.ts +4 -0
- package/dist/components/time-picker/index.js +1 -0
- package/dist/components/time-picker/time-picker.js +1 -0
- package/dist/components/time-picker/time-picker.vue.d.ts +24 -0
- package/dist/components/time-picker/types.d.ts +35 -0
- package/dist/components/time-picker/variants.js +1 -0
- package/dist/components/time-range-field/index.d.ts +4 -0
- package/dist/components/time-range-field/index.js +1 -0
- package/dist/components/time-range-field/time-range-field.js +1 -0
- package/dist/components/time-range-field/time-range-field.vue.d.ts +28 -0
- package/dist/components/time-range-field/types.d.ts +31 -0
- package/dist/components/time-range-field/variants.js +1 -0
- package/dist/components/time-range-picker/index.d.ts +4 -0
- package/dist/components/time-range-picker/index.js +1 -0
- package/dist/components/time-range-picker/time-range-picker.js +1 -0
- package/dist/components/time-range-picker/time-range-picker.vue.d.ts +28 -0
- package/dist/components/time-range-picker/types.d.ts +38 -0
- package/dist/components/time-range-picker/variants.js +1 -0
- package/dist/components/year-picker/index.d.ts +4 -0
- package/dist/components/year-picker/index.js +1 -0
- package/dist/components/year-picker/types.d.ts +44 -0
- package/dist/components/year-picker/variants.js +1 -0
- package/dist/components/year-picker/year-picker.js +1 -0
- package/dist/components/year-picker/year-picker.vue.d.ts +24 -0
- package/dist/components/year-range-picker/index.d.ts +4 -0
- package/dist/components/year-range-picker/index.js +1 -0
- package/dist/components/year-range-picker/types.d.ts +48 -0
- package/dist/components/year-range-picker/variants.js +1 -0
- package/dist/components/year-range-picker/year-range-picker.js +1 -0
- package/dist/components/year-range-picker/year-range-picker.vue.d.ts +29 -0
- package/dist/constants/components.d.ts +14 -0
- package/dist/constants/components.js +1 -1
- package/dist/index.d.ts +138 -96
- package/dist/index.js +1 -1
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Alignment.d.ts +4 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Animations.d.ts +11 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Axis.d.ts +16 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Counter.d.ts +9 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragHandler.d.ts +13 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragTracker.d.ts +4 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EmblaCarousel.d.ts +31 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Engine.d.ts +67 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventHandler.d.ts +29 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventStore.d.ts +10 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Limit.d.ts +13 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/NodeRects.d.ts +11 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Options.d.ts +43 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/OptionsHandler.d.ts +11 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/PercentOfView.d.ts +6 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Plugins.d.ts +20 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ResizeHandler.d.ts +11 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBody.d.ts +14 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBounds.d.ts +8 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollContain.d.ts +4 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollLooper.d.ts +6 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollProgress.d.ts +6 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTarget.d.ts +12 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTo.d.ts +7 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideFocus.d.ts +10 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideLooper.d.ts +19 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideRegistry.d.ts +6 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesHandler.d.ts +11 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesInView.d.ts +9 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesToScroll.d.ts +7 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Translate.d.ts +8 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Vector1d.d.ts +9 -0
- package/dist/node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/utils.d.ts +4 -0
- package/dist/styles.css +99 -27
- package/dist/theme/shared.js +1 -1
- package/package.json +11 -10
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { NodeRectType } from "./NodeRects.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Axis.d.ts
|
|
4
|
+
type AxisOptionType = 'x' | 'y';
|
|
5
|
+
type AxisDirectionOptionType = 'ltr' | 'rtl';
|
|
6
|
+
type AxisEdgeType = 'top' | 'right' | 'bottom' | 'left';
|
|
7
|
+
type AxisType = {
|
|
8
|
+
scroll: AxisOptionType;
|
|
9
|
+
cross: AxisOptionType;
|
|
10
|
+
startEdge: AxisEdgeType;
|
|
11
|
+
endEdge: AxisEdgeType;
|
|
12
|
+
measureSize: (nodeRect: NodeRectType) => number;
|
|
13
|
+
direction: (n: number) => number;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AxisDirectionOptionType, AxisOptionType, AxisType };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Counter.d.ts
|
|
2
|
+
type CounterType = {
|
|
3
|
+
get: () => number;
|
|
4
|
+
set: (n: number) => CounterType;
|
|
5
|
+
add: (n: number) => CounterType;
|
|
6
|
+
clone: () => CounterType;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { CounterType };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PointerEventType } from "./DragTracker.js";
|
|
2
|
+
import { EmblaCarouselType } from "./EmblaCarousel.js";
|
|
3
|
+
|
|
4
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/DragHandler.d.ts
|
|
5
|
+
type DragHandlerCallbackType = (emblaApi: EmblaCarouselType, evt: PointerEventType) => boolean | void;
|
|
6
|
+
type DragHandlerOptionType = boolean | DragHandlerCallbackType;
|
|
7
|
+
type DragHandlerType = {
|
|
8
|
+
init: (emblaApi: EmblaCarouselType) => void;
|
|
9
|
+
destroy: () => void;
|
|
10
|
+
pointerDown: () => boolean;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { DragHandlerOptionType, DragHandlerType };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EventHandlerType } from "./EventHandler.js";
|
|
2
|
+
import { EngineType } from "./Engine.js";
|
|
3
|
+
import { EmblaPluginType, EmblaPluginsType } from "./Plugins.js";
|
|
4
|
+
import { EmblaOptionsType } from "./Options.js";
|
|
5
|
+
|
|
6
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EmblaCarousel.d.ts
|
|
7
|
+
type EmblaCarouselType = {
|
|
8
|
+
canScrollNext: () => boolean;
|
|
9
|
+
canScrollPrev: () => boolean;
|
|
10
|
+
containerNode: () => HTMLElement;
|
|
11
|
+
internalEngine: () => EngineType;
|
|
12
|
+
destroy: () => void;
|
|
13
|
+
off: EventHandlerType['off'];
|
|
14
|
+
on: EventHandlerType['on'];
|
|
15
|
+
emit: EventHandlerType['emit'];
|
|
16
|
+
plugins: () => EmblaPluginsType;
|
|
17
|
+
previousScrollSnap: () => number;
|
|
18
|
+
reInit: (options?: EmblaOptionsType, plugins?: EmblaPluginType[]) => void;
|
|
19
|
+
rootNode: () => HTMLElement;
|
|
20
|
+
scrollNext: (jump?: boolean) => void;
|
|
21
|
+
scrollPrev: (jump?: boolean) => void;
|
|
22
|
+
scrollProgress: () => number;
|
|
23
|
+
scrollSnapList: () => number[];
|
|
24
|
+
scrollTo: (index: number, jump?: boolean) => void;
|
|
25
|
+
selectedScrollSnap: () => number;
|
|
26
|
+
slideNodes: () => HTMLElement[];
|
|
27
|
+
slidesInView: () => number[];
|
|
28
|
+
slidesNotInView: () => number[];
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { EmblaCarouselType };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { NodeRectType } from "./NodeRects.js";
|
|
2
|
+
import { AxisType } from "./Axis.js";
|
|
3
|
+
import { SlidesToScrollType } from "./SlidesToScroll.js";
|
|
4
|
+
import { LimitType } from "./Limit.js";
|
|
5
|
+
import { WindowType } from "./utils.js";
|
|
6
|
+
import { AnimationsType } from "./Animations.js";
|
|
7
|
+
import { CounterType } from "./Counter.js";
|
|
8
|
+
import { EventHandlerType } from "./EventHandler.js";
|
|
9
|
+
import { EventStoreType } from "./EventStore.js";
|
|
10
|
+
import { PercentOfViewType } from "./PercentOfView.js";
|
|
11
|
+
import { ResizeHandlerType } from "./ResizeHandler.js";
|
|
12
|
+
import { Vector1DType } from "./Vector1d.js";
|
|
13
|
+
import { ScrollBodyType } from "./ScrollBody.js";
|
|
14
|
+
import { ScrollBoundsType } from "./ScrollBounds.js";
|
|
15
|
+
import { ScrollLooperType } from "./ScrollLooper.js";
|
|
16
|
+
import { ScrollProgressType } from "./ScrollProgress.js";
|
|
17
|
+
import { SlideRegistryType } from "./SlideRegistry.js";
|
|
18
|
+
import { ScrollTargetType } from "./ScrollTarget.js";
|
|
19
|
+
import { ScrollToType } from "./ScrollTo.js";
|
|
20
|
+
import { SlideFocusType } from "./SlideFocus.js";
|
|
21
|
+
import { TranslateType } from "./Translate.js";
|
|
22
|
+
import { SlideLooperType } from "./SlideLooper.js";
|
|
23
|
+
import { SlidesHandlerType } from "./SlidesHandler.js";
|
|
24
|
+
import { SlidesInViewType } from "./SlidesInView.js";
|
|
25
|
+
import { DragHandlerType } from "./DragHandler.js";
|
|
26
|
+
import { OptionsType } from "./Options.js";
|
|
27
|
+
|
|
28
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Engine.d.ts
|
|
29
|
+
type EngineType = {
|
|
30
|
+
ownerDocument: Document;
|
|
31
|
+
ownerWindow: WindowType;
|
|
32
|
+
eventHandler: EventHandlerType;
|
|
33
|
+
axis: AxisType;
|
|
34
|
+
animation: AnimationsType;
|
|
35
|
+
scrollBounds: ScrollBoundsType;
|
|
36
|
+
scrollLooper: ScrollLooperType;
|
|
37
|
+
scrollProgress: ScrollProgressType;
|
|
38
|
+
index: CounterType;
|
|
39
|
+
indexPrevious: CounterType;
|
|
40
|
+
limit: LimitType;
|
|
41
|
+
location: Vector1DType;
|
|
42
|
+
offsetLocation: Vector1DType;
|
|
43
|
+
previousLocation: Vector1DType;
|
|
44
|
+
options: OptionsType;
|
|
45
|
+
percentOfView: PercentOfViewType;
|
|
46
|
+
scrollBody: ScrollBodyType;
|
|
47
|
+
dragHandler: DragHandlerType;
|
|
48
|
+
eventStore: EventStoreType;
|
|
49
|
+
slideLooper: SlideLooperType;
|
|
50
|
+
slidesInView: SlidesInViewType;
|
|
51
|
+
slidesToScroll: SlidesToScrollType;
|
|
52
|
+
target: Vector1DType;
|
|
53
|
+
translate: TranslateType;
|
|
54
|
+
resizeHandler: ResizeHandlerType;
|
|
55
|
+
slidesHandler: SlidesHandlerType;
|
|
56
|
+
scrollTo: ScrollToType;
|
|
57
|
+
scrollTarget: ScrollTargetType;
|
|
58
|
+
scrollSnapList: number[];
|
|
59
|
+
scrollSnaps: number[];
|
|
60
|
+
slideIndexes: number[];
|
|
61
|
+
slideFocus: SlideFocusType;
|
|
62
|
+
slideRegistry: SlideRegistryType['slideRegistry'];
|
|
63
|
+
containerRect: NodeRectType;
|
|
64
|
+
slideRects: NodeRectType[];
|
|
65
|
+
};
|
|
66
|
+
//#endregion
|
|
67
|
+
export { EngineType };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EmblaCarouselType } from "./EmblaCarousel.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventHandler.d.ts
|
|
4
|
+
type CallbackType = (emblaApi: EmblaCarouselType, evt: EmblaEventType) => void;
|
|
5
|
+
type EmblaEventType = EmblaEventListType[keyof EmblaEventListType];
|
|
6
|
+
interface EmblaEventListType {
|
|
7
|
+
init: 'init';
|
|
8
|
+
pointerDown: 'pointerDown';
|
|
9
|
+
pointerUp: 'pointerUp';
|
|
10
|
+
slidesChanged: 'slidesChanged';
|
|
11
|
+
slidesInView: 'slidesInView';
|
|
12
|
+
scroll: 'scroll';
|
|
13
|
+
select: 'select';
|
|
14
|
+
settle: 'settle';
|
|
15
|
+
destroy: 'destroy';
|
|
16
|
+
reInit: 'reInit';
|
|
17
|
+
resize: 'resize';
|
|
18
|
+
slideFocusStart: 'slideFocusStart';
|
|
19
|
+
slideFocus: 'slideFocus';
|
|
20
|
+
}
|
|
21
|
+
type EventHandlerType = {
|
|
22
|
+
init: (emblaApi: EmblaCarouselType) => void;
|
|
23
|
+
emit: (evt: EmblaEventType) => EventHandlerType;
|
|
24
|
+
on: (evt: EmblaEventType, cb: CallbackType) => EventHandlerType;
|
|
25
|
+
off: (evt: EmblaEventType, cb: CallbackType) => EventHandlerType;
|
|
26
|
+
clear: () => void;
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { EventHandlerType };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/EventStore.d.ts
|
|
2
|
+
type EventNameType = keyof DocumentEventMap | keyof WindowEventMap;
|
|
3
|
+
type EventHandlerType = (evt: any) => void;
|
|
4
|
+
type EventOptionsType = boolean | AddEventListenerOptions | undefined;
|
|
5
|
+
type EventStoreType = {
|
|
6
|
+
add: (node: EventTarget, type: EventNameType, handler: EventHandlerType, options?: EventOptionsType) => EventStoreType;
|
|
7
|
+
clear: () => void;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { EventStoreType };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Limit.d.ts
|
|
2
|
+
type LimitType = {
|
|
3
|
+
min: number;
|
|
4
|
+
max: number;
|
|
5
|
+
length: number;
|
|
6
|
+
constrain: (n: number) => number;
|
|
7
|
+
reachedAny: (n: number) => boolean;
|
|
8
|
+
reachedMax: (n: number) => boolean;
|
|
9
|
+
reachedMin: (n: number) => boolean;
|
|
10
|
+
removeOffset: (n: number) => number;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { LimitType };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/NodeRects.d.ts
|
|
2
|
+
type NodeRectType = {
|
|
3
|
+
top: number;
|
|
4
|
+
right: number;
|
|
5
|
+
bottom: number;
|
|
6
|
+
left: number;
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { NodeRectType };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AlignmentOptionType } from "./Alignment.js";
|
|
2
|
+
import { AxisDirectionOptionType, AxisOptionType } from "./Axis.js";
|
|
3
|
+
import { SlidesToScrollOptionType } from "./SlidesToScroll.js";
|
|
4
|
+
import { ScrollContainOptionType } from "./ScrollContain.js";
|
|
5
|
+
import { ResizeHandlerOptionType } from "./ResizeHandler.js";
|
|
6
|
+
import { FocusHandlerOptionType } from "./SlideFocus.js";
|
|
7
|
+
import { SlidesHandlerOptionType } from "./SlidesHandler.js";
|
|
8
|
+
import { SlidesInViewOptionsType } from "./SlidesInView.js";
|
|
9
|
+
import { DragHandlerOptionType } from "./DragHandler.js";
|
|
10
|
+
|
|
11
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Options.d.ts
|
|
12
|
+
type LooseOptionsType = {
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
};
|
|
15
|
+
type CreateOptionsType<Type extends LooseOptionsType> = Type & {
|
|
16
|
+
active: boolean;
|
|
17
|
+
breakpoints: {
|
|
18
|
+
[key: string]: Omit<Partial<CreateOptionsType<Type>>, 'breakpoints'>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
type OptionsType = CreateOptionsType<{
|
|
22
|
+
align: AlignmentOptionType;
|
|
23
|
+
axis: AxisOptionType;
|
|
24
|
+
container: string | HTMLElement | null;
|
|
25
|
+
slides: string | HTMLElement[] | NodeListOf<HTMLElement> | null;
|
|
26
|
+
containScroll: ScrollContainOptionType;
|
|
27
|
+
direction: AxisDirectionOptionType;
|
|
28
|
+
slidesToScroll: SlidesToScrollOptionType;
|
|
29
|
+
dragFree: boolean;
|
|
30
|
+
dragThreshold: number;
|
|
31
|
+
inViewThreshold: SlidesInViewOptionsType;
|
|
32
|
+
loop: boolean;
|
|
33
|
+
skipSnaps: boolean;
|
|
34
|
+
duration: number;
|
|
35
|
+
startIndex: number;
|
|
36
|
+
watchDrag: DragHandlerOptionType;
|
|
37
|
+
watchResize: ResizeHandlerOptionType;
|
|
38
|
+
watchSlides: SlidesHandlerOptionType;
|
|
39
|
+
watchFocus: FocusHandlerOptionType;
|
|
40
|
+
}>;
|
|
41
|
+
type EmblaOptionsType = Partial<OptionsType>;
|
|
42
|
+
//#endregion
|
|
43
|
+
export { CreateOptionsType, EmblaOptionsType, LooseOptionsType, OptionsType };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CreateOptionsType, LooseOptionsType } from "./Options.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/OptionsHandler.d.ts
|
|
4
|
+
type OptionsType = Partial<CreateOptionsType<LooseOptionsType>>;
|
|
5
|
+
type OptionsHandlerType = {
|
|
6
|
+
mergeOptions: <TypeA extends OptionsType, TypeB extends OptionsType>(optionsA: TypeA, optionsB?: TypeB) => TypeA;
|
|
7
|
+
optionsAtMedia: <Type extends OptionsType>(options: Type) => Type;
|
|
8
|
+
optionsMediaQueries: (optionsList: OptionsType[]) => MediaQueryList[];
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { OptionsHandlerType };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OptionsHandlerType } from "./OptionsHandler.js";
|
|
2
|
+
import { EmblaCarouselType } from "./EmblaCarousel.js";
|
|
3
|
+
import { CreateOptionsType, LooseOptionsType } from "./Options.js";
|
|
4
|
+
|
|
5
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Plugins.d.ts
|
|
6
|
+
type LoosePluginType = {
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
};
|
|
9
|
+
type CreatePluginType<TypeA extends LoosePluginType, TypeB extends LooseOptionsType> = TypeA & {
|
|
10
|
+
name: string;
|
|
11
|
+
options: Partial<CreateOptionsType<TypeB>>;
|
|
12
|
+
init: (embla: EmblaCarouselType, OptionsHandler: OptionsHandlerType) => void;
|
|
13
|
+
destroy: () => void;
|
|
14
|
+
};
|
|
15
|
+
interface EmblaPluginsType {
|
|
16
|
+
[key: string]: CreatePluginType<LoosePluginType, {}>;
|
|
17
|
+
}
|
|
18
|
+
type EmblaPluginType = EmblaPluginsType[keyof EmblaPluginsType];
|
|
19
|
+
//#endregion
|
|
20
|
+
export { EmblaPluginType, EmblaPluginsType };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EmblaCarouselType } from "./EmblaCarousel.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ResizeHandler.d.ts
|
|
4
|
+
type ResizeHandlerCallbackType = (emblaApi: EmblaCarouselType, entries: ResizeObserverEntry[]) => boolean | void;
|
|
5
|
+
type ResizeHandlerOptionType = boolean | ResizeHandlerCallbackType;
|
|
6
|
+
type ResizeHandlerType = {
|
|
7
|
+
init: (emblaApi: EmblaCarouselType) => void;
|
|
8
|
+
destroy: () => void;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ResizeHandlerOptionType, ResizeHandlerType };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBody.d.ts
|
|
2
|
+
type ScrollBodyType = {
|
|
3
|
+
direction: () => number;
|
|
4
|
+
duration: () => number;
|
|
5
|
+
velocity: () => number;
|
|
6
|
+
seek: () => ScrollBodyType;
|
|
7
|
+
settled: () => boolean;
|
|
8
|
+
useBaseFriction: () => ScrollBodyType;
|
|
9
|
+
useBaseDuration: () => ScrollBodyType;
|
|
10
|
+
useFriction: (n: number) => ScrollBodyType;
|
|
11
|
+
useDuration: (n: number) => ScrollBodyType;
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ScrollBodyType };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollBounds.d.ts
|
|
2
|
+
type ScrollBoundsType = {
|
|
3
|
+
shouldConstrain: () => boolean;
|
|
4
|
+
constrain: (pointerDown: boolean) => void;
|
|
5
|
+
toggleActive: (active: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { ScrollBoundsType };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTarget.d.ts
|
|
2
|
+
type TargetType = {
|
|
3
|
+
distance: number;
|
|
4
|
+
index: number;
|
|
5
|
+
};
|
|
6
|
+
type ScrollTargetType = {
|
|
7
|
+
byIndex: (target: number, direction: number) => TargetType;
|
|
8
|
+
byDistance: (force: number, snap: boolean) => TargetType;
|
|
9
|
+
shortcut: (target: number, direction: number) => number;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ScrollTargetType };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/ScrollTo.d.ts
|
|
2
|
+
type ScrollToType = {
|
|
3
|
+
distance: (n: number, snap: boolean) => void;
|
|
4
|
+
index: (n: number, direction: number) => void;
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { ScrollToType };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EmblaCarouselType } from "./EmblaCarousel.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideFocus.d.ts
|
|
4
|
+
type FocusHandlerCallbackType = (emblaApi: EmblaCarouselType, evt: FocusEvent) => boolean | void;
|
|
5
|
+
type FocusHandlerOptionType = boolean | FocusHandlerCallbackType;
|
|
6
|
+
type SlideFocusType = {
|
|
7
|
+
init: (emblaApi: EmblaCarouselType) => void;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { FocusHandlerOptionType, SlideFocusType };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Vector1DType } from "./Vector1d.js";
|
|
2
|
+
import { TranslateType } from "./Translate.js";
|
|
3
|
+
|
|
4
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlideLooper.d.ts
|
|
5
|
+
type LoopPointType = {
|
|
6
|
+
loopPoint: number;
|
|
7
|
+
index: number;
|
|
8
|
+
translate: TranslateType;
|
|
9
|
+
slideLocation: Vector1DType;
|
|
10
|
+
target: () => number;
|
|
11
|
+
};
|
|
12
|
+
type SlideLooperType = {
|
|
13
|
+
canLoop: () => boolean;
|
|
14
|
+
clear: () => void;
|
|
15
|
+
loop: () => void;
|
|
16
|
+
loopPoints: LoopPointType[];
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { SlideLooperType };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EmblaCarouselType } from "./EmblaCarousel.js";
|
|
2
|
+
|
|
3
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesHandler.d.ts
|
|
4
|
+
type SlidesHandlerCallbackType = (emblaApi: EmblaCarouselType, mutations: MutationRecord[]) => boolean | void;
|
|
5
|
+
type SlidesHandlerOptionType = boolean | SlidesHandlerCallbackType;
|
|
6
|
+
type SlidesHandlerType = {
|
|
7
|
+
init: (emblaApi: EmblaCarouselType) => void;
|
|
8
|
+
destroy: () => void;
|
|
9
|
+
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { SlidesHandlerOptionType, SlidesHandlerType };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesInView.d.ts
|
|
2
|
+
type SlidesInViewOptionsType = IntersectionObserverInit['threshold'];
|
|
3
|
+
type SlidesInViewType = {
|
|
4
|
+
init: () => void;
|
|
5
|
+
destroy: () => void;
|
|
6
|
+
get: (inView?: boolean) => number[];
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { SlidesInViewOptionsType, SlidesInViewType };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/SlidesToScroll.d.ts
|
|
2
|
+
type SlidesToScrollOptionType = 'auto' | number;
|
|
3
|
+
type SlidesToScrollType = {
|
|
4
|
+
groupSlides: <Type>(array: Type[]) => Type[][];
|
|
5
|
+
};
|
|
6
|
+
//#endregion
|
|
7
|
+
export { SlidesToScrollOptionType, SlidesToScrollType };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Translate.d.ts
|
|
2
|
+
type TranslateType = {
|
|
3
|
+
clear: () => void;
|
|
4
|
+
to: (target: number) => void;
|
|
5
|
+
toggleActive: (active: boolean) => void;
|
|
6
|
+
};
|
|
7
|
+
//#endregion
|
|
8
|
+
export { TranslateType };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/embla-carousel@8.6.0/node_modules/embla-carousel/esm/components/Vector1d.d.ts
|
|
2
|
+
type Vector1DType = {
|
|
3
|
+
get: () => number;
|
|
4
|
+
set: (n: Vector1DType | number) => void;
|
|
5
|
+
add: (n: Vector1DType | number) => void;
|
|
6
|
+
subtract: (n: Vector1DType | number) => void;
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { Vector1DType };
|