@raqm/ui 0.1.2 → 0.2.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 +19 -0
- package/README.md +87 -126
- package/fesm2022/raqm-ui-badge.mjs +3 -1
- package/fesm2022/raqm-ui-badge.mjs.map +1 -1
- package/fesm2022/raqm-ui-calendar.mjs +79 -12
- package/fesm2022/raqm-ui-calendar.mjs.map +1 -1
- package/fesm2022/raqm-ui-combobox.mjs +47 -23
- package/fesm2022/raqm-ui-combobox.mjs.map +1 -1
- package/fesm2022/raqm-ui-command.mjs +60 -12
- package/fesm2022/raqm-ui-command.mjs.map +1 -1
- package/fesm2022/raqm-ui-dialog.mjs +1 -3
- package/fesm2022/raqm-ui-dialog.mjs.map +1 -1
- package/fesm2022/raqm-ui-icon.mjs +160 -0
- package/fesm2022/raqm-ui-icon.mjs.map +1 -0
- package/fesm2022/raqm-ui-input-otp.mjs +7 -4
- package/fesm2022/raqm-ui-input-otp.mjs.map +1 -1
- package/fesm2022/raqm-ui-overlay-internal.mjs +15 -5
- package/fesm2022/raqm-ui-overlay-internal.mjs.map +1 -1
- package/fesm2022/raqm-ui-popover.mjs +51 -19
- package/fesm2022/raqm-ui-popover.mjs.map +1 -1
- package/fesm2022/raqm-ui-resizable.mjs +14 -4
- package/fesm2022/raqm-ui-resizable.mjs.map +1 -1
- package/fesm2022/raqm-ui-scroll-area.mjs +85 -29
- package/fesm2022/raqm-ui-scroll-area.mjs.map +1 -1
- package/fesm2022/raqm-ui-select.mjs +46 -19
- package/fesm2022/raqm-ui-select.mjs.map +1 -1
- package/fesm2022/raqm-ui-sidebar.mjs +13 -3
- package/fesm2022/raqm-ui-sidebar.mjs.map +1 -1
- package/fesm2022/raqm-ui-slider.mjs +59 -12
- package/fesm2022/raqm-ui-slider.mjs.map +1 -1
- package/fesm2022/raqm-ui-toast.mjs +60 -20
- package/fesm2022/raqm-ui-toast.mjs.map +1 -1
- package/fesm2022/raqm-ui-tooltip.mjs +28 -3
- package/fesm2022/raqm-ui-tooltip.mjs.map +1 -1
- package/fesm2022/raqm-ui.mjs +1 -0
- package/package.json +52 -18
- package/styles/accordion.css +1 -0
- package/styles/alert-dialog.css +1 -0
- package/styles/alert.css +1 -0
- package/styles/attachment.css +1 -0
- package/styles/avatar.css +1 -0
- package/styles/badge.css +1 -0
- package/styles/base.css +1 -0
- package/styles/button-group.css +1 -0
- package/styles/button.css +1 -0
- package/styles/checkbox.css +1 -0
- package/styles/combobox.css +1 -0
- package/styles/command.css +1 -0
- package/styles/common.css +17 -0
- package/styles/context-menu.css +1 -0
- package/styles/dialog.css +1 -0
- package/styles/drawer.css +1 -0
- package/styles/dropdown-menu.css +1 -0
- package/styles/empty.css +1 -0
- package/styles/field-parts.css +1 -0
- package/styles/field-relationships.css +1 -0
- package/styles/input-group-button.css +1 -0
- package/styles/input-group-relationships.css +1 -0
- package/styles/input-otp.css +1 -0
- package/styles/input.css +1 -0
- package/styles/item.css +1 -0
- package/styles/kbd.css +1 -0
- package/styles/menubar.css +1 -0
- package/styles/native-select.css +1 -0
- package/styles/navigation-menu.css +1 -0
- package/styles/overlay.css +1 -0
- package/styles/pagination.css +1 -0
- package/styles/popover.css +1 -0
- package/styles/questionnaire.css +1 -0
- package/styles/radio-group.css +1 -0
- package/styles/resizable.css +1 -0
- package/styles/sheet.css +1 -0
- package/styles/sidebar.css +1 -0
- package/styles/spinner.css +1 -0
- package/styles/switch.css +1 -0
- package/styles/table.css +1 -0
- package/styles/tabs.css +1 -0
- package/styles/textarea.css +1 -0
- package/styles/theme.css +50 -4324
- package/styles/toggle-group.css +1 -0
- package/styles/toggle.css +1 -0
- package/styles/tooltip.css +1 -0
- package/types/raqm-ui-calendar.d.ts +1 -0
- package/types/raqm-ui-combobox.d.ts +8 -4
- package/types/raqm-ui-command.d.ts +4 -0
- package/types/raqm-ui-dialog.d.ts +7 -1
- package/types/raqm-ui-icon.d.ts +65 -0
- package/types/raqm-ui-input-otp.d.ts +1 -0
- package/types/raqm-ui-resizable.d.ts +4 -0
- package/types/raqm-ui-scroll-area.d.ts +11 -0
- package/types/raqm-ui-slider.d.ts +1 -1
- package/types/raqm-ui-toast.d.ts +6 -0
- package/types/raqm-ui.d.ts +1 -0
- package/fesm2022/raqm-ui-carousel.mjs +0 -410
- package/fesm2022/raqm-ui-carousel.mjs.map +0 -1
- package/types/raqm-ui-carousel.d.ts +0 -81
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raqm-ui-carousel.mjs","names":[],"sources":["../../../projects/ui/carousel/carousel.ts","../../../projects/ui/carousel/public-api.ts"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n Component,\r\n Directive,\r\n ElementRef,\r\n afterRenderEffect,\r\n booleanAttribute,\r\n computed,\r\n contentChild,\r\n inject,\r\n input,\r\n InputSignal,\r\n output,\r\n signal,\r\n untracked,\r\n OnDestroy,\r\n} from '@angular/core';\r\nimport EmblaCarousel, {\r\n type EmblaCarouselType,\r\n type EmblaOptionsType,\r\n type EmblaPluginType,\r\n} from 'embla-carousel';\r\n\r\nexport type RaqmCarouselOptions = EmblaOptionsType;\r\n\r\n/** Raqm carousel item — a slide carrying `role=\"group\"` and `aria-roledescription=\"slide\"`; the app authors its accessible name. */\r\n@Directive({\r\n selector: '[raqm-carousel-item]',\r\n host: { class: 'raqm-carousel-item', role: 'group', 'aria-roledescription': 'slide' },\r\n})\r\nexport class RaqmCarouselItemDirective {}\r\n\r\n/** Raqm carousel content — the viewport that clips the track; track rules ship from the relationship partial. */\r\n@Component({\r\n selector: '[raqm-carousel-content]',\r\n template: '<div class=\"raqm-carousel-track\"><ng-content /></div>',\r\n styles: [\r\n `\r\n :host {\r\n display: block;\r\n overflow: hidden;\r\n }\r\n\r\n .raqm-carousel-track {\r\n display: flex;\r\n touch-action: pan-y pinch-zoom;\r\n }\r\n `,\r\n ],\r\n host: { class: 'raqm-carousel-content' },\r\n})\r\nexport class RaqmCarouselContentComponent {\r\n readonly element = inject<ElementRef<HTMLElement>>(ElementRef);\r\n}\r\n\r\n/** Carousel root; `role=\"region\"` with an app-authored accessible name, and an authored `disabled` is never cleared. */\r\n@Component({\r\n selector: 'raqm-carousel',\r\n template: '<ng-content />',\r\n styleUrl: './carousel.scss',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: {\r\n class: 'raqm-carousel',\r\n role: 'region',\r\n 'aria-roledescription': 'carousel',\r\n '[attr.data-raqm-vertical]': 'vertical() ? \"\" : null',\r\n '(keydown)': 'onKey($event)',\r\n },\r\n})\r\nexport class RaqmCarouselComponent implements OnDestroy {\r\n /** A horizontal track by default; a bare `vertical` attribute selects the Y axis. */\r\n readonly vertical = input(false, { transform: booleanAttribute });\r\n readonly options: InputSignal<RaqmCarouselOptions> = input<RaqmCarouselOptions>({});\r\n readonly plugins: InputSignal<EmblaPluginType[]> = input<EmblaPluginType[]>([]);\r\n readonly apiReady = output<EmblaCarouselType>();\r\n readonly selectedIndexChange = output<number>();\r\n readonly content = contentChild(RaqmCarouselContentComponent, { descendants: true });\r\n readonly api = signal<EmblaCarouselType | undefined>(undefined);\r\n readonly index = signal(0);\r\n private readonly previousAvailable = signal(false);\r\n private readonly nextAvailable = signal(false);\r\n private viewport: HTMLElement | undefined;\r\n private readonly update = (api: EmblaCarouselType) => {\r\n const index = api.selectedScrollSnap();\r\n if (index !== this.index()) {\r\n this.index.set(index);\r\n this.selectedIndexChange.emit(index);\r\n }\r\n this.previousAvailable.set(api.canScrollPrev());\r\n this.nextAvailable.set(api.canScrollNext());\r\n };\r\n constructor() {\r\n afterRenderEffect(() => {\r\n const content = this.content();\r\n const options = this.options();\r\n const plugins = this.plugins();\r\n const vertical = this.vertical();\r\n const element = content?.element.nativeElement;\r\n if (!element) {\r\n untracked(() => {\r\n this.api()?.destroy();\r\n this.api.set(undefined);\r\n this.viewport = undefined;\r\n this.previousAvailable.set(false);\r\n this.nextAvailable.set(false);\r\n this.index.set(0);\r\n });\r\n return;\r\n }\r\n const direction =\r\n options.direction ?? (getComputedStyle(element).direction === 'rtl' ? 'rtl' : 'ltr');\r\n const effectiveOptions: EmblaOptionsType = {\r\n ...options,\r\n axis: vertical ? 'y' : 'x',\r\n direction,\r\n };\r\n untracked(() => {\r\n const existing = this.api();\r\n if (existing && this.viewport === element) {\r\n existing.reInit(effectiveOptions, plugins);\r\n } else {\r\n existing?.destroy();\r\n const api = EmblaCarousel(element, effectiveOptions, plugins);\r\n this.viewport = element;\r\n api.on('select', this.update).on('reInit', this.update);\r\n this.api.set(api);\r\n this.update(api);\r\n this.apiReady.emit(api);\r\n }\r\n });\r\n });\r\n }\r\n ngOnDestroy(): void {\r\n this.api()?.destroy();\r\n }\r\n canPrevious(): boolean {\r\n return this.previousAvailable();\r\n }\r\n canNext(): boolean {\r\n return this.nextAvailable();\r\n }\r\n previous(): void {\r\n this.api()?.scrollPrev();\r\n }\r\n next(): void {\r\n this.api()?.scrollNext();\r\n }\r\n go(index: number): void {\r\n this.api()?.scrollTo(index);\r\n }\r\n selectedScrollSnap(): number {\r\n return this.api()?.selectedScrollSnap() ?? 0;\r\n }\r\n scrollSnapList(): number[] {\r\n return this.api()?.scrollSnapList() ?? [];\r\n }\r\n protected onKey(event: KeyboardEvent): void {\r\n if (\r\n event.target instanceof HTMLElement &&\r\n (/^(INPUT|TEXTAREA|SELECT)$/.test(event.target.tagName) || event.target.isContentEditable)\r\n )\r\n return;\r\n const rtl =\r\n (this.api()?.internalEngine().options.direction ??\r\n getComputedStyle(event.currentTarget as HTMLElement).direction) === 'rtl';\r\n const previous = this.vertical() ? 'ArrowUp' : rtl ? 'ArrowRight' : 'ArrowLeft';\r\n const next = this.vertical() ? 'ArrowDown' : rtl ? 'ArrowLeft' : 'ArrowRight';\r\n if (event.key === previous || event.key === next) {\r\n event.preventDefault();\r\n if (event.key === next) this.next();\r\n else this.previous();\r\n }\r\n }\r\n}\r\n/** Raqm carousel previous — adds `type=\"button\"` and availability only; an authored `disabled` is never cleared and the accessible name stays app-owned. */\r\n@Directive({\r\n selector: 'button[raqm-carousel-previous]',\r\n host: {\r\n type: 'button',\r\n '[disabled]': 'unavailable()',\r\n '(click)': 'carousel.previous()',\r\n },\r\n})\r\nexport class RaqmCarouselPreviousDirective {\r\n protected readonly carousel = inject(RaqmCarouselComponent);\r\n private readonly host = inject<ElementRef<HTMLButtonElement>>(ElementRef);\r\n // Read at creation: availability can add to it but never removes it.\r\n private readonly authoredDisabled = this.host.nativeElement.disabled;\r\n protected readonly unavailable = computed(\r\n () => this.authoredDisabled || !this.carousel.canPrevious(),\r\n );\r\n}\r\n\r\n@Directive({\r\n selector: 'button[raqm-carousel-next]',\r\n host: { type: 'button', '[disabled]': 'unavailable()', '(click)': 'carousel.next()' },\r\n})\r\nexport class RaqmCarouselNextDirective {\r\n protected readonly carousel = inject(RaqmCarouselComponent);\r\n private readonly host = inject<ElementRef<HTMLButtonElement>>(ElementRef);\r\n private readonly authoredDisabled = this.host.nativeElement.disabled;\r\n protected readonly unavailable = computed(\r\n () => this.authoredDisabled || !this.carousel.canNext(),\r\n );\r\n}\r\n","import {\r\n RaqmCarouselComponent,\r\n RaqmCarouselContentComponent,\r\n RaqmCarouselItemDirective,\r\n RaqmCarouselPreviousDirective,\r\n RaqmCarouselNextDirective,\r\n} from './carousel';\r\n\r\nexport {\r\n RaqmCarouselComponent,\r\n RaqmCarouselContentComponent,\r\n RaqmCarouselItemDirective,\r\n RaqmCarouselPreviousDirective,\r\n RaqmCarouselNextDirective,\r\n};\r\nexport type { RaqmCarouselOptions } from './carousel';\r\n\r\nexport const RaqmCarousel = [\r\n RaqmCarouselComponent,\r\n RaqmCarouselContentComponent,\r\n RaqmCarouselItemDirective,\r\n RaqmCarouselPreviousDirective,\r\n RaqmCarouselNextDirective,\r\n] as const;\r\n"],"mappings":";;;AA8BA,IAAa,4BAAb,MAAa,0BAAyB;CAAzB,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,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;IAAE,MAAM;IAAU,cAAc;IAAiB,WAAW;GAAiB;EACpF,CAAA;;;ACnLD,MAAa,eAAe;CAC1B;CACA;CACA;CACA;CACA;AACQ"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import { ElementRef, InputSignal, OnDestroy } from "@angular/core";
|
|
3
|
-
import { EmblaCarouselType, EmblaOptionsType, EmblaPluginType } from "embla-carousel";
|
|
4
|
-
type RaqmCarouselOptions = EmblaOptionsType;
|
|
5
|
-
/** Raqm carousel item — a slide carrying `role="group"` and `aria-roledescription="slide"`; the app authors its accessible name. */
|
|
6
|
-
export declare class RaqmCarouselItemDirective {
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RaqmCarouselItemDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmCarouselItemDirective, "[raqm-carousel-item]", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
10
|
-
/** Raqm carousel content — the viewport that clips the track; track rules ship from the relationship partial. */
|
|
11
|
-
export declare class RaqmCarouselContentComponent {
|
|
12
|
-
readonly element: ElementRef<HTMLElement>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RaqmCarouselContentComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RaqmCarouselContentComponent, "[raqm-carousel-content]", never, {}, {}, never, ["*"], true, never>;
|
|
15
|
-
}
|
|
16
|
-
/** Carousel root; `role="region"` with an app-authored accessible name, and an authored `disabled` is never cleared. */
|
|
17
|
-
export declare class RaqmCarouselComponent implements OnDestroy {
|
|
18
|
-
/** A horizontal track by default; a bare `vertical` attribute selects the Y axis. */
|
|
19
|
-
readonly vertical: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
|
-
readonly options: InputSignal<RaqmCarouselOptions>;
|
|
21
|
-
readonly plugins: InputSignal<EmblaPluginType[]>;
|
|
22
|
-
readonly apiReady: import("@angular/core").OutputEmitterRef<EmblaCarouselType>;
|
|
23
|
-
readonly selectedIndexChange: import("@angular/core").OutputEmitterRef<number>;
|
|
24
|
-
readonly content: import("@angular/core").Signal<RaqmCarouselContentComponent | undefined>;
|
|
25
|
-
readonly api: import("@angular/core").WritableSignal<EmblaCarouselType | undefined>;
|
|
26
|
-
readonly index: import("@angular/core").WritableSignal<number>;
|
|
27
|
-
private readonly previousAvailable;
|
|
28
|
-
private readonly nextAvailable;
|
|
29
|
-
private viewport;
|
|
30
|
-
private readonly update;
|
|
31
|
-
constructor();
|
|
32
|
-
ngOnDestroy(): void;
|
|
33
|
-
canPrevious(): boolean;
|
|
34
|
-
canNext(): boolean;
|
|
35
|
-
previous(): void;
|
|
36
|
-
next(): void;
|
|
37
|
-
go(index: number): void;
|
|
38
|
-
selectedScrollSnap(): number;
|
|
39
|
-
scrollSnapList(): number[];
|
|
40
|
-
protected onKey(event: KeyboardEvent): void;
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RaqmCarouselComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RaqmCarouselComponent, "raqm-carousel", never, {
|
|
43
|
-
"vertical": {
|
|
44
|
-
"alias": "vertical";
|
|
45
|
-
"required": false;
|
|
46
|
-
"isSignal": true;
|
|
47
|
-
};
|
|
48
|
-
"options": {
|
|
49
|
-
"alias": "options";
|
|
50
|
-
"required": false;
|
|
51
|
-
"isSignal": true;
|
|
52
|
-
};
|
|
53
|
-
"plugins": {
|
|
54
|
-
"alias": "plugins";
|
|
55
|
-
"required": false;
|
|
56
|
-
"isSignal": true;
|
|
57
|
-
};
|
|
58
|
-
}, {
|
|
59
|
-
"apiReady": "apiReady";
|
|
60
|
-
"selectedIndexChange": "selectedIndexChange";
|
|
61
|
-
}, ["content"], ["*"], true, never>;
|
|
62
|
-
}
|
|
63
|
-
/** Raqm carousel previous — adds `type="button"` and availability only; an authored `disabled` is never cleared and the accessible name stays app-owned. */
|
|
64
|
-
export declare class RaqmCarouselPreviousDirective {
|
|
65
|
-
protected readonly carousel: RaqmCarouselComponent;
|
|
66
|
-
private readonly host;
|
|
67
|
-
private readonly authoredDisabled;
|
|
68
|
-
protected readonly unavailable: import("@angular/core").Signal<boolean>;
|
|
69
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RaqmCarouselPreviousDirective, never>;
|
|
70
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmCarouselPreviousDirective, "button[raqm-carousel-previous]", never, {}, {}, never, never, true, never>;
|
|
71
|
-
}
|
|
72
|
-
export declare class RaqmCarouselNextDirective {
|
|
73
|
-
protected readonly carousel: RaqmCarouselComponent;
|
|
74
|
-
private readonly host;
|
|
75
|
-
private readonly authoredDisabled;
|
|
76
|
-
protected readonly unavailable: import("@angular/core").Signal<boolean>;
|
|
77
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RaqmCarouselNextDirective, never>;
|
|
78
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RaqmCarouselNextDirective, "button[raqm-carousel-next]", never, {}, {}, never, never, true, never>;
|
|
79
|
-
}
|
|
80
|
-
export declare const RaqmCarousel: readonly [typeof RaqmCarouselComponent, typeof RaqmCarouselContentComponent, typeof RaqmCarouselItemDirective, typeof RaqmCarouselPreviousDirective, typeof RaqmCarouselNextDirective];
|
|
81
|
-
export type { RaqmCarouselOptions };
|