@ember-joinery/carousel 0.0.0-stage → 1.1.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/CHANGELOG.md +175 -0
- package/LICENSE.md +9 -0
- package/NOTICE +532 -0
- package/README.md +41 -2
- package/addon-main.cjs +4 -0
- package/declarations/-private/direction.d.ts +7 -0
- package/declarations/-private/direction.d.ts.map +1 -0
- package/declarations/-private/waiter.d.ts +12 -0
- package/declarations/-private/waiter.d.ts.map +1 -0
- package/declarations/components/carousel/content.d.ts +28 -0
- package/declarations/components/carousel/content.d.ts.map +1 -0
- package/declarations/components/carousel/index.d.ts +104 -0
- package/declarations/components/carousel/index.d.ts.map +1 -0
- package/declarations/components/carousel/item.d.ts +33 -0
- package/declarations/components/carousel/item.d.ts.map +1 -0
- package/declarations/components/carousel/state.d.ts +58 -0
- package/declarations/components/carousel/state.d.ts.map +1 -0
- package/declarations/components/carousel/step.d.ts +59 -0
- package/declarations/components/carousel/step.d.ts.map +1 -0
- package/declarations/components/carousel.d.ts +3 -0
- package/declarations/embla.d.ts +49 -0
- package/declarations/embla.d.ts.map +1 -0
- package/declarations/index.d.ts +5 -0
- package/declarations/index.d.ts.map +1 -0
- package/declarations/messages.d.ts +30 -0
- package/declarations/messages.d.ts.map +1 -0
- package/declarations/test-support/carousel.d.ts +84 -0
- package/declarations/test-support/carousel.d.ts.map +1 -0
- package/declarations/test-support/index.d.ts +2 -0
- package/declarations/test-support/index.d.ts.map +1 -0
- package/declarations/test-support.d.ts +2 -0
- package/dist/components/carousel.js +383 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/embla-C9buOK_5.js +186 -0
- package/dist/embla-C9buOK_5.js.map +1 -0
- package/dist/embla.js +7 -0
- package/dist/embla.js.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/messages.js +32 -0
- package/dist/messages.js.map +1 -0
- package/dist/test-support.js +215 -0
- package/dist/test-support.js.map +1 -0
- package/package.json +116 -3
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type Owner from '@ember/owner';
|
|
3
|
+
import type { WithBoundArgs } from '@glint/template';
|
|
4
|
+
import type { EmblaCarouselType, EmblaOptionsType, EmblaPluginType } from 'embla-carousel';
|
|
5
|
+
import { type TagName } from '@ember-joinery/primitives/as';
|
|
6
|
+
import type { PartModifier } from '@ember-joinery/primitives/part';
|
|
7
|
+
import { CarouselContent } from './content';
|
|
8
|
+
import { CarouselItem } from './item';
|
|
9
|
+
import { CarouselState, type CarouselOrientation, type CarouselSlideLabel } from './state.ts';
|
|
10
|
+
import { CarouselNext, CarouselPrevious, type CarouselStepOptions } from './step';
|
|
11
|
+
export type { CarouselOrientation, CarouselSlideLabel, CarouselStepOptions };
|
|
12
|
+
/** Embla's API, as `@setApi` hands it over and `c.api` yields it: upstream's `CarouselApi`. */
|
|
13
|
+
export type CarouselApi = EmblaCarouselType;
|
|
14
|
+
/** Embla's options, as `@opts` takes them: upstream's `CarouselOptions`. */
|
|
15
|
+
export type CarouselOptions = EmblaOptionsType;
|
|
16
|
+
/** An Embla plugin, as `@plugins` takes them: upstream's `CarouselPlugin`. */
|
|
17
|
+
export type CarouselPlugin = EmblaPluginType;
|
|
18
|
+
/** What `<Carousel>` yields: its parts, their modifiers, and its state, as upstream's `useCarousel()`. */
|
|
19
|
+
export interface CarouselYield {
|
|
20
|
+
/** The slides: `<c.Content>…</c.Content>`, around the `c.Item`s. */
|
|
21
|
+
Content: WithBoundArgs<typeof CarouselContent, 'carousel'>;
|
|
22
|
+
/** A slide: `<c.Item class="basis-1/3">…</c.Item>`. */
|
|
23
|
+
Item: WithBoundArgs<typeof CarouselItem, 'carousel'>;
|
|
24
|
+
/** The previous slide's button. */
|
|
25
|
+
Previous: WithBoundArgs<typeof CarouselPrevious, 'carousel'>;
|
|
26
|
+
/** The next slide's button. */
|
|
27
|
+
Next: WithBoundArgs<typeof CarouselNext, 'carousel'>;
|
|
28
|
+
/** A slide, as a modifier on your own element: `<section {{c.item}}>`. */
|
|
29
|
+
item: PartModifier<HTMLElement>;
|
|
30
|
+
/**
|
|
31
|
+
* The previous slide's button, as a modifier on a button of your own, with the same classes
|
|
32
|
+
* and attributes as `c.Previous`: `<button type="button" {{c.previous variant="ghost"}}>`.
|
|
33
|
+
*/
|
|
34
|
+
previous: PartModifier<HTMLElement, CarouselStepOptions>;
|
|
35
|
+
/** The next slide's button, as a modifier on a button of your own. */
|
|
36
|
+
next: PartModifier<HTMLElement, CarouselStepOptions>;
|
|
37
|
+
/** Embla's API, once the content has rendered; `undefined` until then. */
|
|
38
|
+
api: CarouselApi | undefined;
|
|
39
|
+
/** Which way the slides run. */
|
|
40
|
+
orientation: CarouselOrientation;
|
|
41
|
+
/** Whether there is a slide before the current one. */
|
|
42
|
+
canScrollPrev: boolean;
|
|
43
|
+
/** Whether there is a slide after the current one. */
|
|
44
|
+
canScrollNext: boolean;
|
|
45
|
+
/** Scrolls to the previous slide. */
|
|
46
|
+
scrollPrev: () => void;
|
|
47
|
+
/** Scrolls to the next slide. */
|
|
48
|
+
scrollNext: () => void;
|
|
49
|
+
/** Scrolls to a slide (a snap) by index: `{{on "click" (fn c.scrollTo 2)}}`. */
|
|
50
|
+
scrollTo: (index: number) => void;
|
|
51
|
+
}
|
|
52
|
+
export interface CarouselSignature {
|
|
53
|
+
Args: {
|
|
54
|
+
/** Which way the slides run, and so Embla's axis. Default `horizontal`. */
|
|
55
|
+
orientation?: CarouselOrientation;
|
|
56
|
+
/**
|
|
57
|
+
* Embla's options (`align`, `loop`, `startIndex`…; see embla-carousel.com/api/options).
|
|
58
|
+
* Without a `direction`, the carousel takes the text direction from the nearest `dir`.
|
|
59
|
+
*/
|
|
60
|
+
opts?: CarouselOptions;
|
|
61
|
+
/** Embla plugins, such as `Autoplay()` from `embla-carousel-autoplay`. */
|
|
62
|
+
plugins?: CarouselPlugin[];
|
|
63
|
+
/** Called with Embla's API once the carousel exists, to listen to its events or drive it. */
|
|
64
|
+
setApi?: (api: CarouselApi) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Each slide's accessible name, from its place among them (from 1) and their count.
|
|
67
|
+
* Default `2 of 5`. A slide with an `aria-label` or `aria-labelledby` of its own keeps it.
|
|
68
|
+
*/
|
|
69
|
+
slideLabel?: CarouselSlideLabel;
|
|
70
|
+
/** The tag to render instead of `div`. */
|
|
71
|
+
as?: TagName;
|
|
72
|
+
/** Its name, for `CarouselHarness` (`data-test-jn-name`). */
|
|
73
|
+
name?: string;
|
|
74
|
+
};
|
|
75
|
+
Blocks: {
|
|
76
|
+
default: [CarouselYield];
|
|
77
|
+
};
|
|
78
|
+
Element: HTMLElement;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* A carousel with motion and swipe built using Embla: shadcn's Carousel, on the
|
|
82
|
+
* framework-agnostic `embla-carousel`.
|
|
83
|
+
*
|
|
84
|
+
* <Carousel class="w-full max-w-xs" as |c|>
|
|
85
|
+
* <c.Content>
|
|
86
|
+
* <c.Item>…</c.Item>
|
|
87
|
+
* <c.Item>…</c.Item>
|
|
88
|
+
* </c.Content>
|
|
89
|
+
* <c.Previous />
|
|
90
|
+
* <c.Next />
|
|
91
|
+
* </Carousel>
|
|
92
|
+
*
|
|
93
|
+
* It is a region described as a carousel, its slides are groups described as slides and named
|
|
94
|
+
* by their place (`2 of 5`), and the arrow keys anywhere inside it move between them (flipped
|
|
95
|
+
* right to left). Give it an `aria-label` to name it.
|
|
96
|
+
*/
|
|
97
|
+
export default class Carousel extends Component<CarouselSignature> {
|
|
98
|
+
state: CarouselState;
|
|
99
|
+
item: PartModifier<HTMLElement>;
|
|
100
|
+
previous: PartModifier<HTMLElement, CarouselStepOptions>;
|
|
101
|
+
next: PartModifier<HTMLElement, CarouselStepOptions>;
|
|
102
|
+
constructor(owner: Owner, args: CarouselSignature['Args']);
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -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,EAAE,WAAW,CAAA;CACrB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IAChE,KAAK,EAAE,aAAa,CAAA;IAEpB,IAAI,EAAE,YAAY,CAAC,WAAW,CAAC,CAAA;IAC/B,QAAQ,EAAE,YAAY,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAA;IACxD,IAAI,EAAE,YAAY,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAAA;gBAExC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,iBAAiB,CAAC,MAAM,CAAC;CAsE1D"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { TOC } from '@ember/component/template-only';
|
|
2
|
+
import { type TagName } from '@ember-joinery/primitives/as';
|
|
3
|
+
import { type PartModifier } from '@ember-joinery/primitives/part';
|
|
4
|
+
import type { CarouselOrientation, CarouselState } from './state.ts';
|
|
5
|
+
/**
|
|
6
|
+
* The attributes a slide renders: upstream's role, role description and `data-slot`, and the
|
|
7
|
+
* orientation its rules key on. Its name (`2 of 5`) comes from the carousel once Embla has
|
|
8
|
+
* counted the slides.
|
|
9
|
+
*/
|
|
10
|
+
export declare function itemAttributes(orientation: CarouselOrientation, context: object): Record<string, string>;
|
|
11
|
+
/** A slide as a modifier, for an element of your own (`<section {{c.item}}>`). */
|
|
12
|
+
export declare function itemModifier(carousel: CarouselState): PartModifier<HTMLElement>;
|
|
13
|
+
export interface CarouselItemSignature {
|
|
14
|
+
Args: {
|
|
15
|
+
/**
|
|
16
|
+
* The tag to render instead of `div`, one that may be a group (`section`): a
|
|
17
|
+
* slide's role is `group`, so not `li`.
|
|
18
|
+
*/
|
|
19
|
+
as?: TagName;
|
|
20
|
+
/** @internal Bound by `<Carousel>`. */
|
|
21
|
+
carousel: CarouselState;
|
|
22
|
+
};
|
|
23
|
+
Blocks: {
|
|
24
|
+
default: [];
|
|
25
|
+
};
|
|
26
|
+
Element: HTMLElement;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* A slide, yielded as `c.Item`: as wide as the carousel by default (`basis-full`); give it a
|
|
30
|
+
* `basis-*` class to show several at once.
|
|
31
|
+
*/
|
|
32
|
+
export declare const CarouselItem: TOC<CarouselItemSignature>;
|
|
33
|
+
//# sourceMappingURL=item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../src/components/carousel/item.gts"],"names":[],"mappings":"AAmEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAA;AAEzD,OAAO,EAAM,KAAK,OAAO,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,EAAQ,KAAK,YAAY,EAAE,MAAM,gCAAgC,CAAA;AACxE,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAIpE;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,WAAW,EAAE,mBAAmB,EAChC,OAAO,EAAE,MAAM,GACd,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQxB;AAED,kFAAkF;AAClF,wBAAgB,YAAY,CAAC,QAAQ,EAAE,aAAa,GAAG,YAAY,CAAC,WAAW,CAAC,CAK/E;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE;QACJ;;;WAGG;QACH,EAAE,CAAC,EAAE,OAAO,CAAA;QACZ,uCAAuC;QACvC,QAAQ,EAAE,aAAa,CAAA;KACxB,CAAA;IACD,MAAM,EAAE;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAA;IACvB,OAAO,EAAE,WAAW,CAAA;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,qBAAqB,CAqClD,CAAA"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { EmblaCarouselType, EmblaOptionsType, EmblaPluginType } from 'embla-carousel';
|
|
2
|
+
/** Which way the slides run. */
|
|
3
|
+
export type CarouselOrientation = 'horizontal' | 'vertical';
|
|
4
|
+
/** A slide's accessible name, from its position: `(3, 5)` gives `3 of 5` by default. */
|
|
5
|
+
export type CarouselSlideLabel = (index: number, count: number) => string;
|
|
6
|
+
/** What a carousel's state reads from its component's arguments, each time it needs one. */
|
|
7
|
+
export interface CarouselStateArgs {
|
|
8
|
+
orientation: () => CarouselOrientation | undefined;
|
|
9
|
+
opts: () => EmblaOptionsType | undefined;
|
|
10
|
+
plugins: () => EmblaPluginType[] | undefined;
|
|
11
|
+
setApi: () => ((api: EmblaCarouselType) => void) | undefined;
|
|
12
|
+
slideLabel: () => CarouselSlideLabel | undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A carousel's state: Embla's API once it exists, whether it can scroll either way, and the
|
|
16
|
+
* actions its parts share. `<Carousel>` owns one and hands it to each part, as upstream's
|
|
17
|
+
* context does.
|
|
18
|
+
*/
|
|
19
|
+
export declare class CarouselState {
|
|
20
|
+
#private;
|
|
21
|
+
/** Embla's API, once the carousel's content has rendered. */
|
|
22
|
+
api: EmblaCarouselType | undefined;
|
|
23
|
+
/** Whether there is a slide (or snap) before the current one. */
|
|
24
|
+
canScrollPrev: boolean;
|
|
25
|
+
/** Whether there is a slide (or snap) after the current one. */
|
|
26
|
+
canScrollNext: boolean;
|
|
27
|
+
constructor(args: CarouselStateArgs);
|
|
28
|
+
get orientation(): CarouselOrientation;
|
|
29
|
+
/** Embla's options: the caller's `@opts`, with the axis the orientation gives, as upstream's. */
|
|
30
|
+
get options(): EmblaOptionsType;
|
|
31
|
+
get plugins(): EmblaPluginType[];
|
|
32
|
+
/** The id of the content, the element holding the slides, which the buttons control. */
|
|
33
|
+
get contentId(): string;
|
|
34
|
+
/** Embla made the carousel: keep its state current, and hand its API to `@setApi`. */
|
|
35
|
+
onInit: (api: EmblaCarouselType) => void;
|
|
36
|
+
scrollPrev: () => void;
|
|
37
|
+
scrollNext: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* Scrolls to a snap by index (a slide's, unless several show at once). It takes nothing
|
|
40
|
+
* else, so `{{on "click" (fn c.scrollTo 2)}}` works; to jump there without the animation,
|
|
41
|
+
* use the API: `c.api.scrollTo(2, true)`.
|
|
42
|
+
*/
|
|
43
|
+
scrollTo: (index: number) => void;
|
|
44
|
+
/**
|
|
45
|
+
* The arrow keys, anywhere inside the carousel (upstream listens in the capture phase too):
|
|
46
|
+
* the left arrow scrolls back and the right arrow forward, the other way round right to left;
|
|
47
|
+
* a vertical carousel takes the up and down arrows as well. Keys typed into a field are left
|
|
48
|
+
* to it.
|
|
49
|
+
*/
|
|
50
|
+
onKeyDown: (event: KeyboardEvent) => void;
|
|
51
|
+
/**
|
|
52
|
+
* Names each slide by its place (`2 of 5`), as the APG's carousel pattern asks, unless it has
|
|
53
|
+
* a name of the caller's own (`aria-label` or `aria-labelledby`). It reads the translator's
|
|
54
|
+
* tracked locale, so the carousel's modifier runs it again when the language changes.
|
|
55
|
+
*/
|
|
56
|
+
labelSlides(): void;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["../../../src/components/carousel/state.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAO1F,gCAAgC;AAChC,MAAM,MAAM,mBAAmB,GAAG,YAAY,GAAG,UAAU,CAAA;AAE3D,wFAAwF;AACxF,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAA;AAEzE,4FAA4F;AAC5F,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,mBAAmB,GAAG,SAAS,CAAA;IAClD,IAAI,EAAE,MAAM,gBAAgB,GAAG,SAAS,CAAA;IACxC,OAAO,EAAE,MAAM,eAAe,EAAE,GAAG,SAAS,CAAA;IAC5C,MAAM,EAAE,MAAM,CAAC,CAAC,GAAG,EAAE,iBAAiB,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IAC5D,UAAU,EAAE,MAAM,kBAAkB,GAAG,SAAS,CAAA;CACjD;AAWD;;;;GAIG;AACH,qBAAa,aAAa;;IACxB,6DAA6D;IACpD,GAAG,EAAE,iBAAiB,GAAG,SAAS,CAAA;IAC3C,iEAAiE;IACxD,aAAa,UAAQ;IAC9B,gEAAgE;IACvD,aAAa,UAAQ;gBAKlB,IAAI,EAAE,iBAAiB;IAInC,IAAI,WAAW,IAAI,mBAAmB,CAErC;IAED,iGAAiG;IACjG,IAAI,OAAO,IAAI,gBAAgB,CAE9B;IAED,IAAI,OAAO,IAAI,eAAe,EAAE,CAE/B;IAED,wFAAwF;IACxF,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,sFAAsF;IACtF,MAAM,GAAI,KAAK,iBAAiB,KAAG,IAAI,CAatC;IAED,UAAU,QAAO,IAAI,CAEpB;IAED,UAAU,QAAO,IAAI,CAEpB;IAED;;;;OAIG;IACH,QAAQ,GAAI,OAAO,MAAM,KAAG,IAAI,CAE/B;IAED;;;;;OAKG;IACH,SAAS,GAAI,OAAO,aAAa,KAAG,IAAI,CAavC;IAuBD;;;;OAIG;IACH,WAAW,IAAI,IAAI;CAiBpB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { TOC } from '@ember/component/template-only';
|
|
2
|
+
import { type PartModifier } from '@ember-joinery/primitives/part';
|
|
3
|
+
import { type ButtonSize, type ButtonVariant } from '@ember-joinery/ember/components/button';
|
|
4
|
+
import { type IconNode } from '@ember-joinery/ember/components/icon';
|
|
5
|
+
import type { CarouselOrientation, CarouselState } from './state.ts';
|
|
6
|
+
/** Which way a step button goes: to the previous slide, or the next. */
|
|
7
|
+
export type CarouselStep = 'previous' | 'next';
|
|
8
|
+
/** A step button's look: what both `<c.Previous>` and the `c.previous` modifier take. */
|
|
9
|
+
export interface CarouselStepOptions {
|
|
10
|
+
/** Default `outline`, as upstream's. */
|
|
11
|
+
variant?: ButtonVariant;
|
|
12
|
+
/** Default `icon-sm`, as upstream's. */
|
|
13
|
+
size?: ButtonSize;
|
|
14
|
+
/** The button's name, for `ButtonHarness` (`data-test-jn-name`). */
|
|
15
|
+
name?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The classes a step button renders: a Button's (`outline`, `icon-sm` by default), then
|
|
19
|
+
* upstream's `cn-carousel-previous` or `cn-carousel-next`, renamed `jn-`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function stepClasses(step: CarouselStep, options?: CarouselStepOptions): string;
|
|
22
|
+
/**
|
|
23
|
+
* The attributes a step button renders: a Button's, with upstream's `data-slot`, the
|
|
24
|
+
* orientation its rules key on, the content it controls, and `disabled` when there is nowhere
|
|
25
|
+
* to go.
|
|
26
|
+
*/
|
|
27
|
+
export declare function stepAttributes(step: CarouselStep, options: CarouselStepOptions, state: {
|
|
28
|
+
orientation: CarouselOrientation;
|
|
29
|
+
contentId: string;
|
|
30
|
+
canScroll: boolean;
|
|
31
|
+
}): Record<string, string | boolean | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* A step button as a modifier, for a `<button>` (or button component) of your own, with the
|
|
34
|
+
* same classes and attributes as `<c.Previous>` or `<c.Next>`, and a click that steps.
|
|
35
|
+
*/
|
|
36
|
+
export declare function stepModifier(carousel: CarouselState, step: CarouselStep): PartModifier<HTMLElement, CarouselStepOptions>;
|
|
37
|
+
export interface CarouselStepSignature {
|
|
38
|
+
Args: CarouselStepOptions & {
|
|
39
|
+
/** The arrow: one from `lucide`. Default lucide's `chevron-left` or `chevron-right`. */
|
|
40
|
+
icon?: IconNode;
|
|
41
|
+
/** Its name for assistive technology, visually hidden. Default `Previous slide` or `Next slide`. */
|
|
42
|
+
label?: string;
|
|
43
|
+
/** @internal Bound by `<Carousel>`. */
|
|
44
|
+
carousel: CarouselState;
|
|
45
|
+
};
|
|
46
|
+
/** A `<button>` (a Button, which could be a link; the carousel's never is). */
|
|
47
|
+
Element: HTMLButtonElement | HTMLAnchorElement;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* The previous slide's button, yielded as `c.Previous`: an outline icon Button, outside the
|
|
51
|
+
* slides at their start (above them, vertically), disabled when there is no slide before.
|
|
52
|
+
*/
|
|
53
|
+
export declare const CarouselPrevious: TOC<CarouselStepSignature>;
|
|
54
|
+
/**
|
|
55
|
+
* The next slide's button, yielded as `c.Next`: an outline icon Button, outside the slides at
|
|
56
|
+
* their end (below them, vertically), disabled when there is no slide after.
|
|
57
|
+
*/
|
|
58
|
+
export declare const CarouselNext: TOC<CarouselStepSignature>;
|
|
59
|
+
//# sourceMappingURL=step.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../src/components/carousel/step.gts"],"names":[],"mappings":"AA2JA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAA;AAIzD,OAAO,EAAQ,KAAK,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAExE,OAAe,EAGb,KAAK,UAAU,EACf,KAAK,aAAa,EACnB,MAAM,wCAAwC,CAAA;AAC/C,OAAa,EAAE,KAAK,QAAQ,EAAE,MAAM,sCAAsC,CAAA;AAC1E,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAIpE,wEAAwE;AACxE,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,MAAM,CAAA;AAE9C,yFAAyF;AACzF,MAAM,WAAW,mBAAmB;IAClC,wCAAwC;IACxC,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,wCAAwC;IACxC,IAAI,CAAC,EAAE,UAAU,CAAA;IACjB,oEAAoE;IACpE,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,YAAY,EAAE,OAAO,GAAE,mBAAwB,GAAG,MAAM,CAGzF;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,mBAAmB,EAC5B,KAAK,EAAE;IAAE,WAAW,EAAE,mBAAmB,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GACjF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAU9C;AAWD;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,aAAa,EACvB,IAAI,EAAE,YAAY,GACjB,YAAY,CAAC,WAAW,EAAE,mBAAmB,CAAC,CAMhD;AAED,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,mBAAmB,GAAG;QAC1B,wFAAwF;QACxF,IAAI,CAAC,EAAE,QAAQ,CAAA;QACf,oGAAoG;QACpG,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,uCAAuC;QACvC,QAAQ,EAAE,aAAa,CAAA;KACxB,CAAA;IACD,+EAA+E;IAC/E,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CAAA;CAC/C;AASD;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,GAAG,CAAC,qBAAqB,CAuDtD,CAAA;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,GAAG,CAAC,qBAAqB,CAuDlD,CAAA"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import Modifier, { type ArgsFor, type NamedArgs } from 'ember-modifier';
|
|
2
|
+
import type Owner from '@ember/owner';
|
|
3
|
+
import { type EmblaCarouselType, type EmblaOptionsType, type EmblaPluginType } from 'embla-carousel';
|
|
4
|
+
/** What `{{embla}}` takes. */
|
|
5
|
+
export interface EmblaOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Embla's options (`align`, `loop`, `axis`…; see embla-carousel.com/api/options). Without a
|
|
8
|
+
* `direction`, the carousel takes the text direction at its element, from the nearest `dir`,
|
|
9
|
+
* and follows it when it changes.
|
|
10
|
+
*/
|
|
11
|
+
options?: EmblaOptionsType;
|
|
12
|
+
/** Embla plugins, such as `embla-carousel-autoplay`'s `Autoplay()`. */
|
|
13
|
+
plugins?: EmblaPluginType[];
|
|
14
|
+
/**
|
|
15
|
+
* Called with the carousel's API once it exists, after the render that made it, so it may
|
|
16
|
+
* set tracked state.
|
|
17
|
+
*/
|
|
18
|
+
onInit?: (api: EmblaCarouselType) => void;
|
|
19
|
+
}
|
|
20
|
+
export interface EmblaSignature {
|
|
21
|
+
Element: HTMLElement;
|
|
22
|
+
Args: {
|
|
23
|
+
Named: EmblaOptions;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Makes an element an Embla carousel's viewport, the way `embla-carousel-react`'s
|
|
28
|
+
* `useEmblaCarousel` does: the element clips, its first child is the track Embla moves, and
|
|
29
|
+
* that child's children are the slides. It is the headless part of `<Carousel>`, for a
|
|
30
|
+
* carousel with markup of your own:
|
|
31
|
+
*
|
|
32
|
+
* <div class="overflow-hidden" {{embla options=(hash loop=true) onInit=this.setApi}}>
|
|
33
|
+
* <div class="flex">
|
|
34
|
+
* {{#each this.slides as |slide|}}<div class="min-w-0 shrink-0 basis-full">…</div>{{/each}}
|
|
35
|
+
* </div>
|
|
36
|
+
* </div>
|
|
37
|
+
*
|
|
38
|
+
* When `options` or `plugins` change to something different, the carousel reinitializes and
|
|
39
|
+
* keeps its place (`api.reInit`), as the React hook does; it goes when the element does. While
|
|
40
|
+
* it moves to a slide, or is dragged, `settled()` waits for it in tests.
|
|
41
|
+
*/
|
|
42
|
+
declare class EmblaModifier extends Modifier<EmblaSignature> {
|
|
43
|
+
#private;
|
|
44
|
+
constructor(owner: Owner, args: ArgsFor<EmblaSignature>);
|
|
45
|
+
modify(element: HTMLElement, _positional: [], named: NamedArgs<EmblaSignature>): void;
|
|
46
|
+
}
|
|
47
|
+
/** The `{{embla}}` modifier: see `EmblaModifier`. */
|
|
48
|
+
export { EmblaModifier as embla };
|
|
49
|
+
//# sourceMappingURL=embla.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embla.d.ts","sourceRoot":"","sources":["../src/embla.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAE,KAAK,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAEvE,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AACrC,OAAsB,EACpB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACrB,MAAM,gBAAgB,CAAA;AAMvB,8BAA8B;AAC9B,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,gBAAgB,CAAA;IAC1B,uEAAuE;IACvE,OAAO,CAAC,EAAE,eAAe,EAAE,CAAA;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,EAAE,iBAAiB,KAAK,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,WAAW,CAAA;IACpB,IAAI,EAAE;QAAE,KAAK,EAAE,YAAY,CAAA;KAAE,CAAA;CAC9B;AAED;;;;;;;;;;;;;;;GAeG;AACH,cAAM,aAAc,SAAQ,QAAQ,CAAC,cAAc,CAAC;;gBAUtC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,cAAc,CAAC;IAYvD,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,cAAc,CAAC,GAAG,IAAI;CAkCtF;AAED,qDAAqD;AACrD,OAAO,EAAE,aAAa,IAAI,KAAK,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AACrE,cAAc,iCAAiC,CAAA;AAC/C,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every string `@ember-joinery/carousel` shows or announces itself, in English, for a
|
|
3
|
+
* translation catalog. An argument (`@label`, `@slideLabel`) still beats each one.
|
|
4
|
+
*/
|
|
5
|
+
export declare const messages: {
|
|
6
|
+
carousel: {
|
|
7
|
+
id: string;
|
|
8
|
+
message: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
slide: {
|
|
12
|
+
id: string;
|
|
13
|
+
message: string;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
slideLabel: {
|
|
17
|
+
id: string;
|
|
18
|
+
message: string;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
previous: {
|
|
22
|
+
id: string;
|
|
23
|
+
message: string;
|
|
24
|
+
};
|
|
25
|
+
next: {
|
|
26
|
+
id: string;
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;CAkBc,CAAA"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { Harness } from '@ember-joinery/test-support';
|
|
2
|
+
/**
|
|
3
|
+
* Drives a `<Carousel>` from `@ember-joinery/carousel`. It reads the slides, which of them are
|
|
4
|
+
* in view (from where they are drawn, as a user sees them), the orientation and each slide's
|
|
5
|
+
* name, and moves the carousel the ways a user does: with its buttons, the arrow keys, or a
|
|
6
|
+
* swipe.
|
|
7
|
+
*
|
|
8
|
+
* const carousel = new CarouselHarness('gallery') // <Carousel @name="gallery">
|
|
9
|
+
* assert.deepEqual(carousel.slidesInView, [0])
|
|
10
|
+
* await carousel.scrollNext()
|
|
11
|
+
* assert.deepEqual(carousel.slidesInView, [1])
|
|
12
|
+
* assert.false(carousel.canScrollNext)
|
|
13
|
+
*
|
|
14
|
+
* Every action waits for the carousel to come to rest, so a test reads the slides where they
|
|
15
|
+
* stop.
|
|
16
|
+
*/
|
|
17
|
+
export declare class CarouselHarness extends Harness {
|
|
18
|
+
#private;
|
|
19
|
+
static component: string;
|
|
20
|
+
/** `horizontal` or `vertical`. */
|
|
21
|
+
get orientation(): 'horizontal' | 'vertical';
|
|
22
|
+
/** The text direction the slides run in: `ltr` or `rtl`. */
|
|
23
|
+
get direction(): 'ltr' | 'rtl';
|
|
24
|
+
/** How assistive technology describes it (`aria-roledescription`): `carousel`. */
|
|
25
|
+
get roleDescription(): string | null;
|
|
26
|
+
/** Its accessible name: `aria-label`, or the text of what `aria-labelledby` names; `''` without. */
|
|
27
|
+
get label(): string;
|
|
28
|
+
/** The content: Embla's viewport, which clips the slides. */
|
|
29
|
+
get content(): HTMLElement;
|
|
30
|
+
/** The row (or column) of slides inside the content, which Embla moves. */
|
|
31
|
+
get container(): HTMLElement;
|
|
32
|
+
/** The slides, in order. */
|
|
33
|
+
get slides(): HTMLElement[];
|
|
34
|
+
/** How many slides it has. */
|
|
35
|
+
get slideCount(): number;
|
|
36
|
+
/** Each slide's accessible name (`1 of 5` by default), in order. */
|
|
37
|
+
get slideLabels(): string[];
|
|
38
|
+
/** Each slide's text, whitespace collapsed, in order. */
|
|
39
|
+
get slideTexts(): string[];
|
|
40
|
+
/**
|
|
41
|
+
* The slides in view, by index: those with at least half of their box inside the content,
|
|
42
|
+
* where they are drawn now.
|
|
43
|
+
*/
|
|
44
|
+
get slidesInView(): number[];
|
|
45
|
+
/** The first slide in view, by index, or `-1` when none is. */
|
|
46
|
+
get currentSlide(): number;
|
|
47
|
+
/** The previous slide's button, or `null` without one. */
|
|
48
|
+
get previous(): HTMLButtonElement | null;
|
|
49
|
+
/** The next slide's button, or `null` without one. */
|
|
50
|
+
get next(): HTMLButtonElement | null;
|
|
51
|
+
/** Whether the previous button can be used (it is disabled at the first slide). */
|
|
52
|
+
get canScrollPrev(): boolean;
|
|
53
|
+
/** Whether the next button can be used (it is disabled at the last slide). */
|
|
54
|
+
get canScrollNext(): boolean;
|
|
55
|
+
/** Clicks the previous button, and waits for the carousel to come to rest. */
|
|
56
|
+
scrollPrev(): Promise<void>;
|
|
57
|
+
/** Clicks the next button, and waits for the carousel to come to rest. */
|
|
58
|
+
scrollNext(): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Presses a key inside the carousel, as a keyboard user does once they have tabbed into it:
|
|
61
|
+
* when focus is outside, it first moves to a button (or anything else) inside that can take
|
|
62
|
+
* it. Returns whether the carousel called `preventDefault()`.
|
|
63
|
+
*/
|
|
64
|
+
press(key: string): Promise<boolean>;
|
|
65
|
+
/**
|
|
66
|
+
* Drags the slides with a mouse, `distance` pixels along the carousel's axis (negative is
|
|
67
|
+
* left, or up), and lets go, then waits for the carousel to come to rest.
|
|
68
|
+
*/
|
|
69
|
+
drag(distance: number): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Swipes to the next or previous slide: drags the slides most of the content's length, the
|
|
72
|
+
* way that brings that slide in (to the left for the next, or up; to the right right to
|
|
73
|
+
* left), and waits for them to come to rest.
|
|
74
|
+
*/
|
|
75
|
+
swipe(to: 'next' | 'previous'): Promise<void>;
|
|
76
|
+
/**
|
|
77
|
+
* Waits until the slide at `index` is in view, as when a plugin (autoplay) moves the
|
|
78
|
+
* carousel on its own. Fails after `timeout` milliseconds (default 5000).
|
|
79
|
+
*/
|
|
80
|
+
waitForSlide(index: number, { timeout }?: {
|
|
81
|
+
timeout?: number;
|
|
82
|
+
}): Promise<void>;
|
|
83
|
+
}
|
|
84
|
+
//# sourceMapp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