@edsis/ui 0.0.2
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/README.md +40 -0
- package/accordion/README.md +195 -0
- package/alert/README.md +177 -0
- package/alert-dialog/README.md +239 -0
- package/aspect-ratio/README.md +112 -0
- package/avatar/README.md +176 -0
- package/badge/README.md +133 -0
- package/breadcrumb/README.md +216 -0
- package/button/README.md +139 -0
- package/button-group/README.md +204 -0
- package/calendar/README.md +132 -0
- package/card/README.md +220 -0
- package/carousel/README.md +276 -0
- package/chart/README.md +249 -0
- package/checkbox/README.md +149 -0
- package/collapsible/README.md +191 -0
- package/combobox/README.md +198 -0
- package/command/README.md +275 -0
- package/composer/README.md +235 -0
- package/context-menu/README.md +267 -0
- package/date-picker/README.md +177 -0
- package/dialog/README.md +237 -0
- package/drawer/README.md +145 -0
- package/dropdown-menu/README.md +311 -0
- package/editor/README.md +136 -0
- package/empty/README.md +183 -0
- package/fesm2022/edsis-ui-accordion.mjs +174 -0
- package/fesm2022/edsis-ui-accordion.mjs.map +1 -0
- package/fesm2022/edsis-ui-alert-dialog.mjs +242 -0
- package/fesm2022/edsis-ui-alert-dialog.mjs.map +1 -0
- package/fesm2022/edsis-ui-alert.mjs +90 -0
- package/fesm2022/edsis-ui-alert.mjs.map +1 -0
- package/fesm2022/edsis-ui-aspect-ratio.mjs +33 -0
- package/fesm2022/edsis-ui-aspect-ratio.mjs.map +1 -0
- package/fesm2022/edsis-ui-avatar.mjs +123 -0
- package/fesm2022/edsis-ui-avatar.mjs.map +1 -0
- package/fesm2022/edsis-ui-badge.mjs +47 -0
- package/fesm2022/edsis-ui-badge.mjs.map +1 -0
- package/fesm2022/edsis-ui-breadcrumb.mjs +186 -0
- package/fesm2022/edsis-ui-breadcrumb.mjs.map +1 -0
- package/fesm2022/edsis-ui-button-group.mjs +95 -0
- package/fesm2022/edsis-ui-button-group.mjs.map +1 -0
- package/fesm2022/edsis-ui-button.mjs +64 -0
- package/fesm2022/edsis-ui-button.mjs.map +1 -0
- package/fesm2022/edsis-ui-calendar.mjs +78 -0
- package/fesm2022/edsis-ui-calendar.mjs.map +1 -0
- package/fesm2022/edsis-ui-card.mjs +137 -0
- package/fesm2022/edsis-ui-card.mjs.map +1 -0
- package/fesm2022/edsis-ui-carousel.mjs +310 -0
- package/fesm2022/edsis-ui-carousel.mjs.map +1 -0
- package/fesm2022/edsis-ui-chart-area.mjs +6 -0
- package/fesm2022/edsis-ui-chart-area.mjs.map +1 -0
- package/fesm2022/edsis-ui-chart-bar.mjs +6 -0
- package/fesm2022/edsis-ui-chart-bar.mjs.map +1 -0
- package/fesm2022/edsis-ui-chart-line.mjs +6 -0
- package/fesm2022/edsis-ui-chart-line.mjs.map +1 -0
- package/fesm2022/edsis-ui-chart-pie.mjs +6 -0
- package/fesm2022/edsis-ui-chart-pie.mjs.map +1 -0
- package/fesm2022/edsis-ui-chart-radar.mjs +6 -0
- package/fesm2022/edsis-ui-chart-radar.mjs.map +1 -0
- package/fesm2022/edsis-ui-chart-radial.mjs +6 -0
- package/fesm2022/edsis-ui-chart-radial.mjs.map +1 -0
- package/fesm2022/edsis-ui-chart-scatter.mjs +6 -0
- package/fesm2022/edsis-ui-chart-scatter.mjs.map +1 -0
- package/fesm2022/edsis-ui-chart.mjs +3714 -0
- package/fesm2022/edsis-ui-chart.mjs.map +1 -0
- package/fesm2022/edsis-ui-checkbox.mjs +104 -0
- package/fesm2022/edsis-ui-checkbox.mjs.map +1 -0
- package/fesm2022/edsis-ui-collapsible.mjs +116 -0
- package/fesm2022/edsis-ui-collapsible.mjs.map +1 -0
- package/fesm2022/edsis-ui-combobox.mjs +263 -0
- package/fesm2022/edsis-ui-combobox.mjs.map +1 -0
- package/fesm2022/edsis-ui-command.mjs +268 -0
- package/fesm2022/edsis-ui-command.mjs.map +1 -0
- package/fesm2022/edsis-ui-composer.mjs +329 -0
- package/fesm2022/edsis-ui-composer.mjs.map +1 -0
- package/fesm2022/edsis-ui-context-menu.mjs +100 -0
- package/fesm2022/edsis-ui-context-menu.mjs.map +1 -0
- package/fesm2022/edsis-ui-date-picker.mjs +155 -0
- package/fesm2022/edsis-ui-date-picker.mjs.map +1 -0
- package/fesm2022/edsis-ui-dialog.mjs +262 -0
- package/fesm2022/edsis-ui-dialog.mjs.map +1 -0
- package/fesm2022/edsis-ui-drawer.mjs +6 -0
- package/fesm2022/edsis-ui-drawer.mjs.map +1 -0
- package/fesm2022/edsis-ui-dropdown-menu.mjs +466 -0
- package/fesm2022/edsis-ui-dropdown-menu.mjs.map +1 -0
- package/fesm2022/edsis-ui-editor.mjs +692 -0
- package/fesm2022/edsis-ui-editor.mjs.map +1 -0
- package/fesm2022/edsis-ui-empty.mjs +132 -0
- package/fesm2022/edsis-ui-empty.mjs.map +1 -0
- package/fesm2022/edsis-ui-form.mjs +334 -0
- package/fesm2022/edsis-ui-form.mjs.map +1 -0
- package/fesm2022/edsis-ui-hover-card.mjs +284 -0
- package/fesm2022/edsis-ui-hover-card.mjs.map +1 -0
- package/fesm2022/edsis-ui-input-group.mjs +164 -0
- package/fesm2022/edsis-ui-input-group.mjs.map +1 -0
- package/fesm2022/edsis-ui-input-otp.mjs +485 -0
- package/fesm2022/edsis-ui-input-otp.mjs.map +1 -0
- package/fesm2022/edsis-ui-input.mjs +43 -0
- package/fesm2022/edsis-ui-input.mjs.map +1 -0
- package/fesm2022/edsis-ui-item.mjs +241 -0
- package/fesm2022/edsis-ui-item.mjs.map +1 -0
- package/fesm2022/edsis-ui-kanban.mjs +289 -0
- package/fesm2022/edsis-ui-kanban.mjs.map +1 -0
- package/fesm2022/edsis-ui-kbd.mjs +51 -0
- package/fesm2022/edsis-ui-kbd.mjs.map +1 -0
- package/fesm2022/edsis-ui-label.mjs +30 -0
- package/fesm2022/edsis-ui-label.mjs.map +1 -0
- package/fesm2022/edsis-ui-menubar.mjs +302 -0
- package/fesm2022/edsis-ui-menubar.mjs.map +1 -0
- package/fesm2022/edsis-ui-native-select.mjs +61 -0
- package/fesm2022/edsis-ui-native-select.mjs.map +1 -0
- package/fesm2022/edsis-ui-navigation-menu.mjs +399 -0
- package/fesm2022/edsis-ui-navigation-menu.mjs.map +1 -0
- package/fesm2022/edsis-ui-pagination.mjs +216 -0
- package/fesm2022/edsis-ui-pagination.mjs.map +1 -0
- package/fesm2022/edsis-ui-pillbox.mjs +777 -0
- package/fesm2022/edsis-ui-pillbox.mjs.map +1 -0
- package/fesm2022/edsis-ui-popover.mjs +163 -0
- package/fesm2022/edsis-ui-popover.mjs.map +1 -0
- package/fesm2022/edsis-ui-progress.mjs +53 -0
- package/fesm2022/edsis-ui-progress.mjs.map +1 -0
- package/fesm2022/edsis-ui-radio.mjs +111 -0
- package/fesm2022/edsis-ui-radio.mjs.map +1 -0
- package/fesm2022/edsis-ui-resizable.mjs +454 -0
- package/fesm2022/edsis-ui-resizable.mjs.map +1 -0
- package/fesm2022/edsis-ui-scroll-area.mjs +48 -0
- package/fesm2022/edsis-ui-scroll-area.mjs.map +1 -0
- package/fesm2022/edsis-ui-select.mjs +164 -0
- package/fesm2022/edsis-ui-select.mjs.map +1 -0
- package/fesm2022/edsis-ui-separator.mjs +33 -0
- package/fesm2022/edsis-ui-separator.mjs.map +1 -0
- package/fesm2022/edsis-ui-sheet.mjs +264 -0
- package/fesm2022/edsis-ui-sheet.mjs.map +1 -0
- package/fesm2022/edsis-ui-skeleton.mjs +29 -0
- package/fesm2022/edsis-ui-skeleton.mjs.map +1 -0
- package/fesm2022/edsis-ui-slider.mjs +405 -0
- package/fesm2022/edsis-ui-slider.mjs.map +1 -0
- package/fesm2022/edsis-ui-spinner.mjs +58 -0
- package/fesm2022/edsis-ui-spinner.mjs.map +1 -0
- package/fesm2022/edsis-ui-switch.mjs +107 -0
- package/fesm2022/edsis-ui-switch.mjs.map +1 -0
- package/fesm2022/edsis-ui-table.mjs +139 -0
- package/fesm2022/edsis-ui-table.mjs.map +1 -0
- package/fesm2022/edsis-ui-tabs.mjs +252 -0
- package/fesm2022/edsis-ui-tabs.mjs.map +1 -0
- package/fesm2022/edsis-ui-textarea.mjs +37 -0
- package/fesm2022/edsis-ui-textarea.mjs.map +1 -0
- package/fesm2022/edsis-ui-timeline.mjs +213 -0
- package/fesm2022/edsis-ui-timeline.mjs.map +1 -0
- package/fesm2022/edsis-ui-toast.mjs +71 -0
- package/fesm2022/edsis-ui-toast.mjs.map +1 -0
- package/fesm2022/edsis-ui-toggle-group.mjs +269 -0
- package/fesm2022/edsis-ui-toggle-group.mjs.map +1 -0
- package/fesm2022/edsis-ui-toggle.mjs +76 -0
- package/fesm2022/edsis-ui-toggle.mjs.map +1 -0
- package/fesm2022/edsis-ui-tooltip.mjs +339 -0
- package/fesm2022/edsis-ui-tooltip.mjs.map +1 -0
- package/fesm2022/edsis-ui-utils.mjs +13 -0
- package/fesm2022/edsis-ui-utils.mjs.map +1 -0
- package/fesm2022/edsis-ui.mjs +11 -0
- package/fesm2022/edsis-ui.mjs.map +1 -0
- package/form/README.md +210 -0
- package/hover-card/README.md +146 -0
- package/input/README.md +159 -0
- package/input-group/README.md +234 -0
- package/input-otp/README.md +273 -0
- package/item/README.md +247 -0
- package/kanban/README.md +81 -0
- package/kbd/README.md +139 -0
- package/label/README.md +136 -0
- package/menubar/README.md +269 -0
- package/native-select/README.md +176 -0
- package/navigation-menu/README.md +160 -0
- package/package.json +310 -0
- package/pagination/README.md +144 -0
- package/pillbox/README.md +67 -0
- package/popover/README.md +43 -0
- package/progress/README.md +160 -0
- package/radio/README.md +209 -0
- package/resizable/README.md +164 -0
- package/scroll-area/README.md +143 -0
- package/select/README.md +174 -0
- package/separator/README.md +170 -0
- package/sheet/README.md +183 -0
- package/skeleton/README.md +158 -0
- package/slider/README.md +207 -0
- package/spinner/README.md +160 -0
- package/switch/README.md +166 -0
- package/table/README.md +291 -0
- package/tabs/README.md +214 -0
- package/textarea/README.md +154 -0
- package/timeline/README.md +94 -0
- package/toast/README.md +321 -0
- package/toggle/README.md +131 -0
- package/toggle-group/README.md +206 -0
- package/tooltip/README.md +211 -0
- package/types/edsis-ui-accordion.d.ts +51 -0
- package/types/edsis-ui-alert-dialog.d.ts +93 -0
- package/types/edsis-ui-alert.d.ts +37 -0
- package/types/edsis-ui-aspect-ratio.d.ts +12 -0
- package/types/edsis-ui-avatar.d.ts +51 -0
- package/types/edsis-ui-badge.d.ts +19 -0
- package/types/edsis-ui-breadcrumb.d.ts +46 -0
- package/types/edsis-ui-button-group.d.ts +26 -0
- package/types/edsis-ui-button.d.ts +22 -0
- package/types/edsis-ui-calendar.d.ts +33 -0
- package/types/edsis-ui-card.d.ts +60 -0
- package/types/edsis-ui-carousel.d.ts +86 -0
- package/types/edsis-ui-chart-area.d.ts +1 -0
- package/types/edsis-ui-chart-bar.d.ts +1 -0
- package/types/edsis-ui-chart-line.d.ts +1 -0
- package/types/edsis-ui-chart-pie.d.ts +1 -0
- package/types/edsis-ui-chart-radar.d.ts +1 -0
- package/types/edsis-ui-chart-radial.d.ts +1 -0
- package/types/edsis-ui-chart-scatter.d.ts +1 -0
- package/types/edsis-ui-chart.d.ts +1094 -0
- package/types/edsis-ui-checkbox.d.ts +35 -0
- package/types/edsis-ui-collapsible.d.ts +42 -0
- package/types/edsis-ui-combobox.d.ts +51 -0
- package/types/edsis-ui-command.d.ts +99 -0
- package/types/edsis-ui-composer.d.ts +90 -0
- package/types/edsis-ui-context-menu.d.ts +35 -0
- package/types/edsis-ui-date-picker.d.ts +41 -0
- package/types/edsis-ui-dialog.d.ts +87 -0
- package/types/edsis-ui-drawer.d.ts +1 -0
- package/types/edsis-ui-dropdown-menu.d.ts +136 -0
- package/types/edsis-ui-editor.d.ts +123 -0
- package/types/edsis-ui-empty.d.ts +50 -0
- package/types/edsis-ui-form.d.ts +141 -0
- package/types/edsis-ui-hover-card.d.ts +74 -0
- package/types/edsis-ui-input-group.d.ts +51 -0
- package/types/edsis-ui-input-otp.d.ts +136 -0
- package/types/edsis-ui-input.d.ts +16 -0
- package/types/edsis-ui-item.d.ts +88 -0
- package/types/edsis-ui-kanban.d.ts +70 -0
- package/types/edsis-ui-kbd.d.ts +16 -0
- package/types/edsis-ui-label.d.ts +11 -0
- package/types/edsis-ui-menubar.d.ts +67 -0
- package/types/edsis-ui-native-select.d.ts +26 -0
- package/types/edsis-ui-navigation-menu.d.ts +96 -0
- package/types/edsis-ui-pagination.d.ts +34 -0
- package/types/edsis-ui-pillbox.d.ts +157 -0
- package/types/edsis-ui-popover.d.ts +43 -0
- package/types/edsis-ui-progress.d.ts +17 -0
- package/types/edsis-ui-radio.d.ts +40 -0
- package/types/edsis-ui-resizable.d.ts +99 -0
- package/types/edsis-ui-scroll-area.d.ts +19 -0
- package/types/edsis-ui-select.d.ts +57 -0
- package/types/edsis-ui-separator.d.ts +14 -0
- package/types/edsis-ui-sheet.d.ts +76 -0
- package/types/edsis-ui-skeleton.d.ts +10 -0
- package/types/edsis-ui-slider.d.ts +74 -0
- package/types/edsis-ui-spinner.d.ts +13 -0
- package/types/edsis-ui-switch.d.ts +40 -0
- package/types/edsis-ui-table.d.ts +52 -0
- package/types/edsis-ui-tabs.d.ts +92 -0
- package/types/edsis-ui-textarea.d.ts +12 -0
- package/types/edsis-ui-timeline.d.ts +63 -0
- package/types/edsis-ui-toast.d.ts +38 -0
- package/types/edsis-ui-toggle-group.d.ts +89 -0
- package/types/edsis-ui-toggle.d.ts +25 -0
- package/types/edsis-ui-tooltip.d.ts +89 -0
- package/types/edsis-ui-utils.d.ts +5 -0
- package/types/edsis-ui.d.ts +2 -0
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, ElementRef, input, computed, ChangeDetectionStrategy, Component, viewChild, numberAttribute, booleanAttribute, output, signal, effect, untracked } from '@angular/core';
|
|
3
|
+
import { cn } from '@edsis/ui/utils';
|
|
4
|
+
import { DOCUMENT } from '@angular/common';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Styled native range input. Works with `ngModel` / `FormControl` via
|
|
8
|
+
* Angular's built-in `RangeValueAccessor`. Keyboard + ARIA handled by the browser.
|
|
9
|
+
*/
|
|
10
|
+
class SliderComponent {
|
|
11
|
+
el = inject(ElementRef);
|
|
12
|
+
class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
13
|
+
classes = computed(() => cn('ui-slider relative w-full appearance-none bg-transparent', 'focus-visible:outline-none', 'disabled:pointer-events-none disabled:opacity-50', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
14
|
+
focus() {
|
|
15
|
+
this.el.nativeElement.focus();
|
|
16
|
+
}
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: SliderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: SliderComponent, isStandalone: true, selector: "input[type=range][ui-slider]", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: '', isInline: true, styles: [":host.ui-slider{height:1.25rem;cursor:pointer}:host.ui-slider::-webkit-slider-runnable-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-moz-range-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-.25rem;width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider::-moz-range-thumb{width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:disabled::-webkit-slider-thumb{cursor:not-allowed}:host.ui-slider:disabled::-moz-range-thumb{cursor:not-allowed}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: SliderComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{ selector: 'input[type=range][ui-slider]', changeDetection: ChangeDetectionStrategy.OnPush, host: { '[class]': 'classes()' }, template: '', styles: [":host.ui-slider{height:1.25rem;cursor:pointer}:host.ui-slider::-webkit-slider-runnable-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-moz-range-track{height:.5rem;border-radius:var(--radius-lg);background:hsl(var(--secondary))}:host.ui-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;margin-top:-.25rem;width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider::-moz-range-thumb{width:1rem;height:1rem;border-radius:var(--radius-lg);background:hsl(var(--background));border:var(--border-width) solid hsl(var(--primary));transition:box-shadow .15s cubic-bezier(.4,0,.2,1)}:host.ui-slider:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:focus-visible::-moz-range-thumb{box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host.ui-slider:disabled::-webkit-slider-thumb{cursor:not-allowed}:host.ui-slider:disabled::-moz-range-thumb{cursor:not-allowed}\n"] }]
|
|
23
|
+
}], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
|
|
24
|
+
|
|
25
|
+
class SliderRootComponent {
|
|
26
|
+
host = inject(ElementRef);
|
|
27
|
+
document = inject(DOCUMENT);
|
|
28
|
+
track = viewChild.required('track');
|
|
29
|
+
value = input([0], ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
30
|
+
min = input(0, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
31
|
+
max = input(100, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
32
|
+
step = input(1, { ...(ngDevMode ? { debugName: "step" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
33
|
+
minStepsBetweenThumbs = input(0, { ...(ngDevMode ? { debugName: "minStepsBetweenThumbs" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
34
|
+
orientation = input('horizontal', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
35
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
36
|
+
thumbLabels = input(null, ...(ngDevMode ? [{ debugName: "thumbLabels" }] : /* istanbul ignore next */ []));
|
|
37
|
+
ariaLabel = input(null, { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
|
|
38
|
+
ariaDescribedby = input(null, { ...(ngDevMode ? { debugName: "ariaDescribedby" } : /* istanbul ignore next */ {}), alias: 'aria-describedby' });
|
|
39
|
+
ariaLabelledby = input(null, { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
|
|
40
|
+
class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
41
|
+
valueChange = output();
|
|
42
|
+
disabledState = signal(false, ...(ngDevMode ? [{ debugName: "disabledState" }] : /* istanbul ignore next */ []));
|
|
43
|
+
valueState = signal([0], ...(ngDevMode ? [{ debugName: "valueState" }] : /* istanbul ignore next */ []));
|
|
44
|
+
activeThumbIndex = signal(0, ...(ngDevMode ? [{ debugName: "activeThumbIndex" }] : /* istanbul ignore next */ []));
|
|
45
|
+
draggedThumbIndex = signal(null, ...(ngDevMode ? [{ debugName: "draggedThumbIndex" }] : /* istanbul ignore next */ []));
|
|
46
|
+
pointerId = signal(null, ...(ngDevMode ? [{ debugName: "pointerId" }] : /* istanbul ignore next */ []));
|
|
47
|
+
config = computed(() => ({
|
|
48
|
+
min: Math.min(this.min(), this.max()),
|
|
49
|
+
max: Math.max(this.min(), this.max()),
|
|
50
|
+
step: this.step() > 0 ? this.step() : 1,
|
|
51
|
+
minStepsBetweenThumbs: Math.max(0, Math.floor(this.minStepsBetweenThumbs())),
|
|
52
|
+
}), ...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
|
|
53
|
+
isDisabled = computed(() => this.disabled() || this.disabledState(), ...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
54
|
+
hostClasses = computed(() => cn('ui-slider-root relative flex touch-none select-none', this.orientation() === 'horizontal' ? 'h-5 w-full items-center' : 'h-32 w-5 justify-center', this.isDisabled() ? 'opacity-50' : '', this.class()), ...(ngDevMode ? [{ debugName: "hostClasses" }] : /* istanbul ignore next */ []));
|
|
55
|
+
thumbs = computed(() => {
|
|
56
|
+
const values = this.valueState();
|
|
57
|
+
const config = this.config();
|
|
58
|
+
return values.map((value, index) => {
|
|
59
|
+
const bounds = thumbBounds(values, index, config);
|
|
60
|
+
return {
|
|
61
|
+
index,
|
|
62
|
+
value,
|
|
63
|
+
position: this.positionPercent(value),
|
|
64
|
+
min: bounds.min,
|
|
65
|
+
max: bounds.max,
|
|
66
|
+
label: this.thumbLabel(index, values.length),
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
}, ...(ngDevMode ? [{ debugName: "thumbs" }] : /* istanbul ignore next */ []));
|
|
70
|
+
rangeOffset = computed(() => {
|
|
71
|
+
const span = this.rangeSpan();
|
|
72
|
+
return span.start;
|
|
73
|
+
}, ...(ngDevMode ? [{ debugName: "rangeOffset" }] : /* istanbul ignore next */ []));
|
|
74
|
+
rangeSize = computed(() => {
|
|
75
|
+
const span = this.rangeSpan();
|
|
76
|
+
return span.end - span.start;
|
|
77
|
+
}, ...(ngDevMode ? [{ debugName: "rangeSize" }] : /* istanbul ignore next */ []));
|
|
78
|
+
syncExternalValue = effect(() => {
|
|
79
|
+
const normalized = normalizeSliderValues(this.value(), this.config());
|
|
80
|
+
untracked(() => {
|
|
81
|
+
if (!sameValues(normalized, this.valueState())) {
|
|
82
|
+
this.valueState.set(normalized);
|
|
83
|
+
}
|
|
84
|
+
this.activeThumbIndex.set(clampIndex(this.activeThumbIndex(), normalized.length));
|
|
85
|
+
});
|
|
86
|
+
}, ...(ngDevMode ? [{ debugName: "syncExternalValue" }] : /* istanbul ignore next */ []));
|
|
87
|
+
onTrackPointerDown(event) {
|
|
88
|
+
if (this.isDisabled() || event.button !== 0) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
event.preventDefault();
|
|
92
|
+
const nextValue = this.valueFromPointer(event);
|
|
93
|
+
if (nextValue == null) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
const thumbIndex = this.closestThumbIndex(nextValue);
|
|
97
|
+
this.activeThumbIndex.set(thumbIndex);
|
|
98
|
+
this.updateThumbValue(thumbIndex, nextValue);
|
|
99
|
+
this.beginDrag(event, thumbIndex);
|
|
100
|
+
}
|
|
101
|
+
onThumbPointerDown(event, index) {
|
|
102
|
+
if (this.isDisabled() || event.button !== 0) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
event.preventDefault();
|
|
106
|
+
event.stopPropagation();
|
|
107
|
+
this.activeThumbIndex.set(index);
|
|
108
|
+
this.beginDrag(event, index);
|
|
109
|
+
}
|
|
110
|
+
onWindowPointerMove(event) {
|
|
111
|
+
if (this.pointerId() !== event.pointerId) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
const thumbIndex = this.draggedThumbIndex();
|
|
115
|
+
if (thumbIndex == null) {
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
const nextValue = this.valueFromPointer(event);
|
|
119
|
+
if (nextValue == null) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
event.preventDefault();
|
|
123
|
+
this.updateThumbValue(thumbIndex, nextValue);
|
|
124
|
+
}
|
|
125
|
+
onWindowPointerUp(event) {
|
|
126
|
+
if (this.pointerId() !== event.pointerId) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
this.draggedThumbIndex.set(null);
|
|
130
|
+
this.pointerId.set(null);
|
|
131
|
+
}
|
|
132
|
+
onThumbFocus(index) {
|
|
133
|
+
this.activeThumbIndex.set(index);
|
|
134
|
+
}
|
|
135
|
+
onThumbKeydown(event, index) {
|
|
136
|
+
if (this.isDisabled()) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
const current = this.valueState()[index];
|
|
140
|
+
const config = this.config();
|
|
141
|
+
const pageStep = config.step * 10;
|
|
142
|
+
const direction = this.resolvedDirection();
|
|
143
|
+
let nextValue = null;
|
|
144
|
+
switch (event.key) {
|
|
145
|
+
case 'ArrowRight':
|
|
146
|
+
nextValue = current + (direction === 'rtl' && this.orientation() === 'horizontal' ? -config.step : config.step);
|
|
147
|
+
break;
|
|
148
|
+
case 'ArrowLeft':
|
|
149
|
+
nextValue = current + (direction === 'rtl' && this.orientation() === 'horizontal' ? config.step : -config.step);
|
|
150
|
+
break;
|
|
151
|
+
case 'ArrowUp':
|
|
152
|
+
nextValue = current + config.step;
|
|
153
|
+
break;
|
|
154
|
+
case 'ArrowDown':
|
|
155
|
+
nextValue = current - config.step;
|
|
156
|
+
break;
|
|
157
|
+
case 'PageUp':
|
|
158
|
+
nextValue = current + pageStep;
|
|
159
|
+
break;
|
|
160
|
+
case 'PageDown':
|
|
161
|
+
nextValue = current - pageStep;
|
|
162
|
+
break;
|
|
163
|
+
case 'Home':
|
|
164
|
+
nextValue = thumbBounds(this.valueState(), index, config).min;
|
|
165
|
+
break;
|
|
166
|
+
case 'End':
|
|
167
|
+
nextValue = thumbBounds(this.valueState(), index, config).max;
|
|
168
|
+
break;
|
|
169
|
+
default:
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
event.preventDefault();
|
|
173
|
+
this.activeThumbIndex.set(index);
|
|
174
|
+
this.updateThumbValue(index, nextValue);
|
|
175
|
+
}
|
|
176
|
+
beginDrag(event, index) {
|
|
177
|
+
this.pointerId.set(event.pointerId);
|
|
178
|
+
this.draggedThumbIndex.set(index);
|
|
179
|
+
this.focusThumb(index);
|
|
180
|
+
}
|
|
181
|
+
updateThumbValue(index, rawValue) {
|
|
182
|
+
const current = this.valueState();
|
|
183
|
+
const bounds = thumbBounds(current, index, this.config());
|
|
184
|
+
const nextValues = current.slice();
|
|
185
|
+
nextValues[index] = snapWithinBounds(rawValue, bounds.min, bounds.max, this.config());
|
|
186
|
+
if (sameValues(nextValues, current)) {
|
|
187
|
+
return;
|
|
188
|
+
}
|
|
189
|
+
this.valueState.set(nextValues);
|
|
190
|
+
this.valueChange.emit(nextValues);
|
|
191
|
+
}
|
|
192
|
+
valueFromPointer(event) {
|
|
193
|
+
const track = this.track().nativeElement;
|
|
194
|
+
const rect = track.getBoundingClientRect();
|
|
195
|
+
const config = this.config();
|
|
196
|
+
if (rect.width <= 0 || rect.height <= 0) {
|
|
197
|
+
return null;
|
|
198
|
+
}
|
|
199
|
+
let ratio = 0;
|
|
200
|
+
if (this.orientation() === 'horizontal') {
|
|
201
|
+
const physicalRatio = clamp((event.clientX - rect.left) / rect.width, 0, 1);
|
|
202
|
+
ratio = this.resolvedDirection() === 'rtl' ? 1 - physicalRatio : physicalRatio;
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
ratio = clamp((rect.bottom - event.clientY) / rect.height, 0, 1);
|
|
206
|
+
}
|
|
207
|
+
return config.min + ratio * (config.max - config.min);
|
|
208
|
+
}
|
|
209
|
+
closestThumbIndex(nextValue) {
|
|
210
|
+
const values = this.valueState();
|
|
211
|
+
let bestIndex = 0;
|
|
212
|
+
let bestDistance = Number.POSITIVE_INFINITY;
|
|
213
|
+
values.forEach((value, index) => {
|
|
214
|
+
const distance = Math.abs(value - nextValue);
|
|
215
|
+
if (distance < bestDistance) {
|
|
216
|
+
bestDistance = distance;
|
|
217
|
+
bestIndex = index;
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
return bestIndex;
|
|
221
|
+
}
|
|
222
|
+
rangeSpan() {
|
|
223
|
+
const positions = this.valueState().map((value) => this.positionPercent(value));
|
|
224
|
+
if (!positions.length) {
|
|
225
|
+
return { start: 0, end: 0 };
|
|
226
|
+
}
|
|
227
|
+
if (positions.length === 1) {
|
|
228
|
+
const minBoundary = this.positionPercent(this.config().min);
|
|
229
|
+
return {
|
|
230
|
+
start: Math.min(minBoundary, positions[0]),
|
|
231
|
+
end: Math.max(minBoundary, positions[0]),
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
return {
|
|
235
|
+
start: Math.min(...positions),
|
|
236
|
+
end: Math.max(...positions),
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
positionPercent(value) {
|
|
240
|
+
const config = this.config();
|
|
241
|
+
const range = config.max - config.min;
|
|
242
|
+
if (range <= 0) {
|
|
243
|
+
return this.orientation() === 'horizontal' && this.resolvedDirection() === 'rtl' ? 100 : 0;
|
|
244
|
+
}
|
|
245
|
+
const logicalRatio = (value - config.min) / range;
|
|
246
|
+
const physicalRatio = this.orientation() === 'horizontal' && this.resolvedDirection() === 'rtl' ? 1 - logicalRatio : logicalRatio;
|
|
247
|
+
return clamp(physicalRatio * 100, 0, 100);
|
|
248
|
+
}
|
|
249
|
+
thumbLabel(index, count) {
|
|
250
|
+
const labels = this.thumbLabels();
|
|
251
|
+
if (labels?.[index]) {
|
|
252
|
+
return labels[index] ?? null;
|
|
253
|
+
}
|
|
254
|
+
if (count === 1) {
|
|
255
|
+
return this.ariaLabel();
|
|
256
|
+
}
|
|
257
|
+
return this.ariaLabel() ? `${this.ariaLabel()} ${index + 1}` : `Slider thumb ${index + 1}`;
|
|
258
|
+
}
|
|
259
|
+
focusThumb(index) {
|
|
260
|
+
const thumb = this.host.nativeElement.querySelector(`.ui-slider__thumb[data-index="${index}"]`);
|
|
261
|
+
thumb?.focus();
|
|
262
|
+
}
|
|
263
|
+
resolvedDirection() {
|
|
264
|
+
const host = this.host.nativeElement;
|
|
265
|
+
if (host.dir === 'ltr' || host.dir === 'rtl') {
|
|
266
|
+
return host.dir;
|
|
267
|
+
}
|
|
268
|
+
const view = this.document.defaultView;
|
|
269
|
+
if (!view) {
|
|
270
|
+
return 'ltr';
|
|
271
|
+
}
|
|
272
|
+
return view.getComputedStyle(host).direction === 'rtl' ? 'rtl' : 'ltr';
|
|
273
|
+
}
|
|
274
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: SliderRootComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
275
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: SliderRootComponent, isStandalone: true, selector: "ui-slider", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, minStepsBetweenThumbs: { classPropertyName: "minStepsBetweenThumbs", publicName: "minStepsBetweenThumbs", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, thumbLabels: { classPropertyName: "thumbLabels", publicName: "thumbLabels", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "aria-describedby", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { listeners: { "window:pointermove": "onWindowPointerMove($event)", "window:pointerup": "onWindowPointerUp($event)", "window:pointercancel": "onWindowPointerUp($event)" }, properties: { "class": "hostClasses()", "attr.data-disabled": "isDisabled() ? \"\" : null", "attr.data-orientation": "orientation()" } }, viewQueries: [{ propertyName: "track", first: true, predicate: ["track"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
276
|
+
<div #track class="ui-slider__track" (pointerdown)="onTrackPointerDown($event)">
|
|
277
|
+
<div
|
|
278
|
+
class="ui-slider__range"
|
|
279
|
+
[style.left.%]="orientation() === 'horizontal' ? rangeOffset() : null"
|
|
280
|
+
[style.width.%]="orientation() === 'horizontal' ? rangeSize() : null"
|
|
281
|
+
[style.bottom.%]="orientation() === 'vertical' ? rangeOffset() : null"
|
|
282
|
+
[style.height.%]="orientation() === 'vertical' ? rangeSize() : null"></div>
|
|
283
|
+
|
|
284
|
+
@for (thumb of thumbs(); track thumb.index) {
|
|
285
|
+
<button
|
|
286
|
+
type="button"
|
|
287
|
+
class="ui-slider__thumb"
|
|
288
|
+
[style.left.%]="orientation() === 'horizontal' ? thumb.position : 50"
|
|
289
|
+
[style.top.%]="orientation() === 'horizontal' ? 50 : null"
|
|
290
|
+
[style.bottom.%]="orientation() === 'vertical' ? thumb.position : null"
|
|
291
|
+
[attr.aria-describedby]="ariaDescribedby()"
|
|
292
|
+
[attr.aria-disabled]="isDisabled() ? 'true' : null"
|
|
293
|
+
[attr.aria-label]="thumb.label"
|
|
294
|
+
[attr.aria-labelledby]="thumb.label ? null : ariaLabelledby()"
|
|
295
|
+
[attr.aria-orientation]="orientation()"
|
|
296
|
+
[attr.aria-valuemax]="thumb.max"
|
|
297
|
+
[attr.aria-valuemin]="thumb.min"
|
|
298
|
+
[attr.aria-valuenow]="thumb.value"
|
|
299
|
+
[attr.data-index]="thumb.index"
|
|
300
|
+
[attr.data-state]="isDisabled() ? 'disabled' : 'active'"
|
|
301
|
+
[tabIndex]="isDisabled() ? -1 : activeThumbIndex() === thumb.index ? 0 : -1"
|
|
302
|
+
role="slider"
|
|
303
|
+
(focus)="onThumbFocus(thumb.index)"
|
|
304
|
+
(keydown)="onThumbKeydown($event, thumb.index)"
|
|
305
|
+
(pointerdown)="onThumbPointerDown($event, thumb.index)"></button>
|
|
306
|
+
}
|
|
307
|
+
</div>
|
|
308
|
+
`, isInline: true, styles: [":host.ui-slider-root{--ui-slider-thumb-size: 1rem;--ui-slider-track-size: .5rem;display:block}.ui-slider__track{position:relative;flex:1 1 auto;border-radius:9999px;background:hsl(var(--secondary))}:host[data-orientation=horizontal] .ui-slider__track{height:var(--ui-slider-track-size);width:100%}:host[data-orientation=vertical] .ui-slider__track{height:100%;width:var(--ui-slider-track-size)}.ui-slider__range{position:absolute;border-radius:inherit;background:hsl(var(--primary))}:host[data-orientation=horizontal] .ui-slider__range{top:0;height:100%}:host[data-orientation=vertical] .ui-slider__range{left:0;width:100%}.ui-slider__thumb{position:absolute;height:var(--ui-slider-thumb-size);width:var(--ui-slider-thumb-size);border:var(--border-width) solid hsl(var(--primary));border-radius:9999px;background:hsl(var(--background));box-shadow:0 1px 2px hsl(var(--foreground) / .14);transition:box-shadow .15s cubic-bezier(.4,0,.2,1),border-color .15s cubic-bezier(.4,0,.2,1),background-color .15s cubic-bezier(.4,0,.2,1)}:host[data-orientation=horizontal] .ui-slider__thumb{transform:translate(-50%,-50%)}:host[data-orientation=vertical] .ui-slider__thumb{transform:translate(-50%,50%)}.ui-slider__thumb:focus-visible{outline:none;box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host[data-disabled] .ui-slider__track,:host[data-disabled] .ui-slider__thumb{cursor:not-allowed}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
309
|
+
}
|
|
310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: SliderRootComponent, decorators: [{
|
|
311
|
+
type: Component,
|
|
312
|
+
args: [{ selector: 'ui-slider', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
313
|
+
'[class]': 'hostClasses()',
|
|
314
|
+
'[attr.data-disabled]': 'isDisabled() ? "" : null',
|
|
315
|
+
'[attr.data-orientation]': 'orientation()',
|
|
316
|
+
'(window:pointermove)': 'onWindowPointerMove($event)',
|
|
317
|
+
'(window:pointerup)': 'onWindowPointerUp($event)',
|
|
318
|
+
'(window:pointercancel)': 'onWindowPointerUp($event)',
|
|
319
|
+
}, template: `
|
|
320
|
+
<div #track class="ui-slider__track" (pointerdown)="onTrackPointerDown($event)">
|
|
321
|
+
<div
|
|
322
|
+
class="ui-slider__range"
|
|
323
|
+
[style.left.%]="orientation() === 'horizontal' ? rangeOffset() : null"
|
|
324
|
+
[style.width.%]="orientation() === 'horizontal' ? rangeSize() : null"
|
|
325
|
+
[style.bottom.%]="orientation() === 'vertical' ? rangeOffset() : null"
|
|
326
|
+
[style.height.%]="orientation() === 'vertical' ? rangeSize() : null"></div>
|
|
327
|
+
|
|
328
|
+
@for (thumb of thumbs(); track thumb.index) {
|
|
329
|
+
<button
|
|
330
|
+
type="button"
|
|
331
|
+
class="ui-slider__thumb"
|
|
332
|
+
[style.left.%]="orientation() === 'horizontal' ? thumb.position : 50"
|
|
333
|
+
[style.top.%]="orientation() === 'horizontal' ? 50 : null"
|
|
334
|
+
[style.bottom.%]="orientation() === 'vertical' ? thumb.position : null"
|
|
335
|
+
[attr.aria-describedby]="ariaDescribedby()"
|
|
336
|
+
[attr.aria-disabled]="isDisabled() ? 'true' : null"
|
|
337
|
+
[attr.aria-label]="thumb.label"
|
|
338
|
+
[attr.aria-labelledby]="thumb.label ? null : ariaLabelledby()"
|
|
339
|
+
[attr.aria-orientation]="orientation()"
|
|
340
|
+
[attr.aria-valuemax]="thumb.max"
|
|
341
|
+
[attr.aria-valuemin]="thumb.min"
|
|
342
|
+
[attr.aria-valuenow]="thumb.value"
|
|
343
|
+
[attr.data-index]="thumb.index"
|
|
344
|
+
[attr.data-state]="isDisabled() ? 'disabled' : 'active'"
|
|
345
|
+
[tabIndex]="isDisabled() ? -1 : activeThumbIndex() === thumb.index ? 0 : -1"
|
|
346
|
+
role="slider"
|
|
347
|
+
(focus)="onThumbFocus(thumb.index)"
|
|
348
|
+
(keydown)="onThumbKeydown($event, thumb.index)"
|
|
349
|
+
(pointerdown)="onThumbPointerDown($event, thumb.index)"></button>
|
|
350
|
+
}
|
|
351
|
+
</div>
|
|
352
|
+
`, styles: [":host.ui-slider-root{--ui-slider-thumb-size: 1rem;--ui-slider-track-size: .5rem;display:block}.ui-slider__track{position:relative;flex:1 1 auto;border-radius:9999px;background:hsl(var(--secondary))}:host[data-orientation=horizontal] .ui-slider__track{height:var(--ui-slider-track-size);width:100%}:host[data-orientation=vertical] .ui-slider__track{height:100%;width:var(--ui-slider-track-size)}.ui-slider__range{position:absolute;border-radius:inherit;background:hsl(var(--primary))}:host[data-orientation=horizontal] .ui-slider__range{top:0;height:100%}:host[data-orientation=vertical] .ui-slider__range{left:0;width:100%}.ui-slider__thumb{position:absolute;height:var(--ui-slider-thumb-size);width:var(--ui-slider-thumb-size);border:var(--border-width) solid hsl(var(--primary));border-radius:9999px;background:hsl(var(--background));box-shadow:0 1px 2px hsl(var(--foreground) / .14);transition:box-shadow .15s cubic-bezier(.4,0,.2,1),border-color .15s cubic-bezier(.4,0,.2,1),background-color .15s cubic-bezier(.4,0,.2,1)}:host[data-orientation=horizontal] .ui-slider__thumb{transform:translate(-50%,-50%)}:host[data-orientation=vertical] .ui-slider__thumb{transform:translate(-50%,50%)}.ui-slider__thumb:focus-visible{outline:none;box-shadow:0 0 0 calc(var(--border-width) + 3px) hsl(var(--ring) / .3)}:host[data-disabled] .ui-slider__track,:host[data-disabled] .ui-slider__thumb{cursor:not-allowed}\n"] }]
|
|
353
|
+
}], propDecorators: { track: [{ type: i0.ViewChild, args: ['track', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], minStepsBetweenThumbs: [{ type: i0.Input, args: [{ isSignal: true, alias: "minStepsBetweenThumbs", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], thumbLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "thumbLabels", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-describedby", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }], class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
|
|
354
|
+
function clamp(value, min, max) {
|
|
355
|
+
return Math.min(Math.max(value, min), max);
|
|
356
|
+
}
|
|
357
|
+
function clampIndex(index, length) {
|
|
358
|
+
return clamp(index, 0, Math.max(length - 1, 0));
|
|
359
|
+
}
|
|
360
|
+
function decimalPlaces(value) {
|
|
361
|
+
const text = `${value}`;
|
|
362
|
+
const fraction = text.split('.')[1];
|
|
363
|
+
return fraction?.length ?? 0;
|
|
364
|
+
}
|
|
365
|
+
function normalizeSliderValues(values, config) {
|
|
366
|
+
const incoming = values.length ? [...values] : [config.min];
|
|
367
|
+
const sorted = incoming.map((value) => snapToStep(value, config)).sort((left, right) => left - right);
|
|
368
|
+
const gap = config.step * config.minStepsBetweenThumbs;
|
|
369
|
+
const normalized = [];
|
|
370
|
+
sorted.forEach((value, index) => {
|
|
371
|
+
const remaining = sorted.length - index - 1;
|
|
372
|
+
const min = index === 0 ? config.min : normalized[index - 1] + gap;
|
|
373
|
+
const max = Math.max(min, config.max - remaining * gap);
|
|
374
|
+
normalized.push(snapWithinBounds(value, min, max, config));
|
|
375
|
+
});
|
|
376
|
+
return normalized;
|
|
377
|
+
}
|
|
378
|
+
function sameValues(left, right) {
|
|
379
|
+
return left.length === right.length && left.every((value, index) => value === right[index]);
|
|
380
|
+
}
|
|
381
|
+
function snapToStep(value, config) {
|
|
382
|
+
const ratio = (value - config.min) / config.step;
|
|
383
|
+
const snapped = config.min + Math.round(ratio) * config.step;
|
|
384
|
+
const precision = Math.max(decimalPlaces(config.step), decimalPlaces(config.min));
|
|
385
|
+
return Number(snapped.toFixed(precision));
|
|
386
|
+
}
|
|
387
|
+
function snapWithinBounds(value, min, max, config) {
|
|
388
|
+
const boundedMin = Math.min(min, max);
|
|
389
|
+
const boundedMax = Math.max(min, max);
|
|
390
|
+
const snapped = snapToStep(value, config);
|
|
391
|
+
return clamp(snapped, boundedMin, boundedMax);
|
|
392
|
+
}
|
|
393
|
+
function thumbBounds(values, index, config) {
|
|
394
|
+
const gap = config.step * config.minStepsBetweenThumbs;
|
|
395
|
+
const min = index === 0 ? config.min : values[index - 1] + gap;
|
|
396
|
+
const max = index === values.length - 1 ? config.max : values[index + 1] - gap;
|
|
397
|
+
return { min: Math.min(min, max), max: Math.max(min, max) };
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Generated bundle index. Do not edit.
|
|
402
|
+
*/
|
|
403
|
+
|
|
404
|
+
export { SliderComponent, SliderComponent as SliderInputDirective, SliderRootComponent };
|
|
405
|
+
//# sourceMappingURL=edsis-ui-slider.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edsis-ui-slider.mjs","sources":["../../../library/ui/slider/slider.component.ts","../../../library/ui/slider/slider-root.component.ts","../../../library/ui/slider/edsis-ui-slider.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ElementRef, computed, inject, input } from '@angular/core';\nimport { cn } from '@edsis/ui/utils';\n\n/**\n * Styled native range input. Works with `ngModel` / `FormControl` via\n * Angular's built-in `RangeValueAccessor`. Keyboard + ARIA handled by the browser.\n */\n@Component({\n selector: 'input[type=range][ui-slider]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { '[class]': 'classes()' },\n template: '',\n styleUrl: './slider.component.css',\n})\nexport class SliderComponent {\n private readonly el = inject<ElementRef<HTMLInputElement>>(ElementRef);\n readonly class = input<string>('');\n\n protected readonly classes = computed(() =>\n cn(\n 'ui-slider relative w-full appearance-none bg-transparent',\n 'focus-visible:outline-none',\n 'disabled:pointer-events-none disabled:opacity-50',\n this.class(),\n ),\n );\n\n focus(): void {\n this.el.nativeElement.focus();\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport { cn } from '@edsis/ui/utils';\n\nexport type SliderOrientation = 'horizontal' | 'vertical';\n\ninterface SliderConfig {\n readonly min: number;\n readonly max: number;\n readonly step: number;\n readonly minStepsBetweenThumbs: number;\n}\n\ninterface SliderThumbState {\n readonly index: number;\n readonly value: number;\n readonly position: number;\n readonly min: number;\n readonly max: number;\n readonly label: string | null;\n}\n\n@Component({\n selector: 'ui-slider',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'hostClasses()',\n '[attr.data-disabled]': 'isDisabled() ? \"\" : null',\n '[attr.data-orientation]': 'orientation()',\n '(window:pointermove)': 'onWindowPointerMove($event)',\n '(window:pointerup)': 'onWindowPointerUp($event)',\n '(window:pointercancel)': 'onWindowPointerUp($event)',\n },\n template: `\n <div #track class=\"ui-slider__track\" (pointerdown)=\"onTrackPointerDown($event)\">\n <div\n class=\"ui-slider__range\"\n [style.left.%]=\"orientation() === 'horizontal' ? rangeOffset() : null\"\n [style.width.%]=\"orientation() === 'horizontal' ? rangeSize() : null\"\n [style.bottom.%]=\"orientation() === 'vertical' ? rangeOffset() : null\"\n [style.height.%]=\"orientation() === 'vertical' ? rangeSize() : null\"></div>\n\n @for (thumb of thumbs(); track thumb.index) {\n <button\n type=\"button\"\n class=\"ui-slider__thumb\"\n [style.left.%]=\"orientation() === 'horizontal' ? thumb.position : 50\"\n [style.top.%]=\"orientation() === 'horizontal' ? 50 : null\"\n [style.bottom.%]=\"orientation() === 'vertical' ? thumb.position : null\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.aria-disabled]=\"isDisabled() ? 'true' : null\"\n [attr.aria-label]=\"thumb.label\"\n [attr.aria-labelledby]=\"thumb.label ? null : ariaLabelledby()\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-valuemax]=\"thumb.max\"\n [attr.aria-valuemin]=\"thumb.min\"\n [attr.aria-valuenow]=\"thumb.value\"\n [attr.data-index]=\"thumb.index\"\n [attr.data-state]=\"isDisabled() ? 'disabled' : 'active'\"\n [tabIndex]=\"isDisabled() ? -1 : activeThumbIndex() === thumb.index ? 0 : -1\"\n role=\"slider\"\n (focus)=\"onThumbFocus(thumb.index)\"\n (keydown)=\"onThumbKeydown($event, thumb.index)\"\n (pointerdown)=\"onThumbPointerDown($event, thumb.index)\"></button>\n }\n </div>\n `,\n styleUrl: './slider-root.component.css',\n})\nexport class SliderRootComponent {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly document = inject(DOCUMENT);\n private readonly track = viewChild.required<ElementRef<HTMLElement>>('track');\n\n readonly value = input<readonly number[]>([0]);\n readonly min = input(0, { transform: numberAttribute });\n readonly max = input(100, { transform: numberAttribute });\n readonly step = input(1, { transform: numberAttribute });\n readonly minStepsBetweenThumbs = input(0, { transform: numberAttribute });\n readonly orientation = input<SliderOrientation>('horizontal');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly thumbLabels = input<readonly string[] | null>(null);\n readonly ariaLabel = input<string | null>(null, { alias: 'aria-label' });\n readonly ariaDescribedby = input<string | null>(null, { alias: 'aria-describedby' });\n readonly ariaLabelledby = input<string | null>(null, { alias: 'aria-labelledby' });\n readonly class = input<string>('');\n\n readonly valueChange = output<readonly number[]>();\n\n private readonly disabledState = signal(false);\n private readonly valueState = signal<number[]>([0]);\n protected readonly activeThumbIndex = signal(0);\n private readonly draggedThumbIndex = signal<number | null>(null);\n private readonly pointerId = signal<number | null>(null);\n\n private readonly config = computed<SliderConfig>(() => ({\n min: Math.min(this.min(), this.max()),\n max: Math.max(this.min(), this.max()),\n step: this.step() > 0 ? this.step() : 1,\n minStepsBetweenThumbs: Math.max(0, Math.floor(this.minStepsBetweenThumbs())),\n }));\n\n protected readonly isDisabled = computed(() => this.disabled() || this.disabledState());\n protected readonly hostClasses = computed(() =>\n cn(\n 'ui-slider-root relative flex touch-none select-none',\n this.orientation() === 'horizontal' ? 'h-5 w-full items-center' : 'h-32 w-5 justify-center',\n this.isDisabled() ? 'opacity-50' : '',\n this.class(),\n ),\n );\n\n protected readonly thumbs = computed<readonly SliderThumbState[]>(() => {\n const values = this.valueState();\n const config = this.config();\n\n return values.map((value, index) => {\n const bounds = thumbBounds(values, index, config);\n\n return {\n index,\n value,\n position: this.positionPercent(value),\n min: bounds.min,\n max: bounds.max,\n label: this.thumbLabel(index, values.length),\n };\n });\n });\n\n protected readonly rangeOffset = computed(() => {\n const span = this.rangeSpan();\n return span.start;\n });\n\n protected readonly rangeSize = computed(() => {\n const span = this.rangeSpan();\n return span.end - span.start;\n });\n\n private readonly syncExternalValue = effect(() => {\n const normalized = normalizeSliderValues(this.value(), this.config());\n\n untracked(() => {\n if (!sameValues(normalized, this.valueState())) {\n this.valueState.set(normalized);\n }\n\n this.activeThumbIndex.set(clampIndex(this.activeThumbIndex(), normalized.length));\n });\n });\n\n onTrackPointerDown(event: PointerEvent): void {\n if (this.isDisabled() || event.button !== 0) {\n return;\n }\n\n event.preventDefault();\n\n const nextValue = this.valueFromPointer(event);\n if (nextValue == null) {\n return;\n }\n\n const thumbIndex = this.closestThumbIndex(nextValue);\n this.activeThumbIndex.set(thumbIndex);\n this.updateThumbValue(thumbIndex, nextValue);\n this.beginDrag(event, thumbIndex);\n }\n\n onThumbPointerDown(event: PointerEvent, index: number): void {\n if (this.isDisabled() || event.button !== 0) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n\n this.activeThumbIndex.set(index);\n this.beginDrag(event, index);\n }\n\n onWindowPointerMove(event: PointerEvent): void {\n if (this.pointerId() !== event.pointerId) {\n return;\n }\n\n const thumbIndex = this.draggedThumbIndex();\n if (thumbIndex == null) {\n return;\n }\n\n const nextValue = this.valueFromPointer(event);\n if (nextValue == null) {\n return;\n }\n\n event.preventDefault();\n this.updateThumbValue(thumbIndex, nextValue);\n }\n\n onWindowPointerUp(event: PointerEvent): void {\n if (this.pointerId() !== event.pointerId) {\n return;\n }\n\n this.draggedThumbIndex.set(null);\n this.pointerId.set(null);\n }\n\n onThumbFocus(index: number): void {\n this.activeThumbIndex.set(index);\n }\n\n onThumbKeydown(event: KeyboardEvent, index: number): void {\n if (this.isDisabled()) {\n return;\n }\n\n const current = this.valueState()[index];\n const config = this.config();\n const pageStep = config.step * 10;\n const direction = this.resolvedDirection();\n let nextValue: number | null = null;\n\n switch (event.key) {\n case 'ArrowRight':\n nextValue = current + (direction === 'rtl' && this.orientation() === 'horizontal' ? -config.step : config.step);\n break;\n case 'ArrowLeft':\n nextValue = current + (direction === 'rtl' && this.orientation() === 'horizontal' ? config.step : -config.step);\n break;\n case 'ArrowUp':\n nextValue = current + config.step;\n break;\n case 'ArrowDown':\n nextValue = current - config.step;\n break;\n case 'PageUp':\n nextValue = current + pageStep;\n break;\n case 'PageDown':\n nextValue = current - pageStep;\n break;\n case 'Home':\n nextValue = thumbBounds(this.valueState(), index, config).min;\n break;\n case 'End':\n nextValue = thumbBounds(this.valueState(), index, config).max;\n break;\n default:\n return;\n }\n\n event.preventDefault();\n this.activeThumbIndex.set(index);\n this.updateThumbValue(index, nextValue);\n }\n\n private beginDrag(event: PointerEvent, index: number): void {\n this.pointerId.set(event.pointerId);\n this.draggedThumbIndex.set(index);\n this.focusThumb(index);\n }\n\n private updateThumbValue(index: number, rawValue: number): void {\n const current = this.valueState();\n const bounds = thumbBounds(current, index, this.config());\n const nextValues = current.slice();\n\n nextValues[index] = snapWithinBounds(rawValue, bounds.min, bounds.max, this.config());\n\n if (sameValues(nextValues, current)) {\n return;\n }\n\n this.valueState.set(nextValues);\n this.valueChange.emit(nextValues);\n }\n\n private valueFromPointer(event: PointerEvent): number | null {\n const track = this.track().nativeElement;\n const rect = track.getBoundingClientRect();\n const config = this.config();\n\n if (rect.width <= 0 || rect.height <= 0) {\n return null;\n }\n\n let ratio = 0;\n\n if (this.orientation() === 'horizontal') {\n const physicalRatio = clamp((event.clientX - rect.left) / rect.width, 0, 1);\n ratio = this.resolvedDirection() === 'rtl' ? 1 - physicalRatio : physicalRatio;\n } else {\n ratio = clamp((rect.bottom - event.clientY) / rect.height, 0, 1);\n }\n\n return config.min + ratio * (config.max - config.min);\n }\n\n private closestThumbIndex(nextValue: number): number {\n const values = this.valueState();\n let bestIndex = 0;\n let bestDistance = Number.POSITIVE_INFINITY;\n\n values.forEach((value, index) => {\n const distance = Math.abs(value - nextValue);\n if (distance < bestDistance) {\n bestDistance = distance;\n bestIndex = index;\n }\n });\n\n return bestIndex;\n }\n\n private rangeSpan(): { start: number; end: number } {\n const positions = this.valueState().map((value) => this.positionPercent(value));\n\n if (!positions.length) {\n return { start: 0, end: 0 };\n }\n\n if (positions.length === 1) {\n const minBoundary = this.positionPercent(this.config().min);\n return {\n start: Math.min(minBoundary, positions[0]),\n end: Math.max(minBoundary, positions[0]),\n };\n }\n\n return {\n start: Math.min(...positions),\n end: Math.max(...positions),\n };\n }\n\n private positionPercent(value: number): number {\n const config = this.config();\n const range = config.max - config.min;\n\n if (range <= 0) {\n return this.orientation() === 'horizontal' && this.resolvedDirection() === 'rtl' ? 100 : 0;\n }\n\n const logicalRatio = (value - config.min) / range;\n const physicalRatio =\n this.orientation() === 'horizontal' && this.resolvedDirection() === 'rtl' ? 1 - logicalRatio : logicalRatio;\n\n return clamp(physicalRatio * 100, 0, 100);\n }\n\n private thumbLabel(index: number, count: number): string | null {\n const labels = this.thumbLabels();\n\n if (labels?.[index]) {\n return labels[index] ?? null;\n }\n\n if (count === 1) {\n return this.ariaLabel();\n }\n\n return this.ariaLabel() ? `${this.ariaLabel()} ${index + 1}` : `Slider thumb ${index + 1}`;\n }\n\n private focusThumb(index: number): void {\n const thumb = this.host.nativeElement.querySelector<HTMLButtonElement>(`.ui-slider__thumb[data-index=\"${index}\"]`);\n thumb?.focus();\n }\n\n private resolvedDirection(): 'ltr' | 'rtl' {\n const host = this.host.nativeElement;\n\n if (host.dir === 'ltr' || host.dir === 'rtl') {\n return host.dir;\n }\n\n const view = this.document.defaultView;\n if (!view) {\n return 'ltr';\n }\n\n return view.getComputedStyle(host).direction === 'rtl' ? 'rtl' : 'ltr';\n }\n}\n\nfunction clamp(value: number, min: number, max: number): number {\n return Math.min(Math.max(value, min), max);\n}\n\nfunction clampIndex(index: number, length: number): number {\n return clamp(index, 0, Math.max(length - 1, 0));\n}\n\nfunction decimalPlaces(value: number): number {\n const text = `${value}`;\n const fraction = text.split('.')[1];\n return fraction?.length ?? 0;\n}\n\nfunction normalizeSliderValues(values: readonly number[], config: SliderConfig): number[] {\n const incoming = values.length ? [...values] : [config.min];\n const sorted = incoming.map((value) => snapToStep(value, config)).sort((left, right) => left - right);\n const gap = config.step * config.minStepsBetweenThumbs;\n const normalized: number[] = [];\n\n sorted.forEach((value, index) => {\n const remaining = sorted.length - index - 1;\n const min = index === 0 ? config.min : normalized[index - 1] + gap;\n const max = Math.max(min, config.max - remaining * gap);\n normalized.push(snapWithinBounds(value, min, max, config));\n });\n\n return normalized;\n}\n\nfunction sameValues(left: readonly number[], right: readonly number[]): boolean {\n return left.length === right.length && left.every((value, index) => value === right[index]);\n}\n\nfunction snapToStep(value: number, config: SliderConfig): number {\n const ratio = (value - config.min) / config.step;\n const snapped = config.min + Math.round(ratio) * config.step;\n const precision = Math.max(decimalPlaces(config.step), decimalPlaces(config.min));\n return Number(snapped.toFixed(precision));\n}\n\nfunction snapWithinBounds(value: number, min: number, max: number, config: SliderConfig): number {\n const boundedMin = Math.min(min, max);\n const boundedMax = Math.max(min, max);\n const snapped = snapToStep(value, config);\n return clamp(snapped, boundedMin, boundedMax);\n}\n\nfunction thumbBounds(values: readonly number[], index: number, config: SliderConfig): { min: number; max: number } {\n const gap = config.step * config.minStepsBetweenThumbs;\n const min = index === 0 ? config.min : values[index - 1] + gap;\n const max = index === values.length - 1 ? config.max : values[index + 1] - gap;\n return { min: Math.min(min, max), max: Math.max(min, max) };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGA;;;AAGG;MAQU,eAAe,CAAA;AACT,IAAA,EAAE,GAAG,MAAM,CAA+B,UAAU,CAAC;AAC7D,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;IAEf,OAAO,GAAG,QAAQ,CAAC,MACpC,EAAE,CACA,0DAA0D,EAC1D,4BAA4B,EAC5B,kDAAkD,EAClD,IAAI,CAAC,KAAK,EAAE,CACb,8EACF;IAED,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE;IAC/B;wGAfW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA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/core';
|
|
3
|
+
import { cn } from '@edsis/ui/utils';
|
|
4
|
+
|
|
5
|
+
class SpinnerComponent {
|
|
6
|
+
class = input('', ...(ngDevMode ? [{ debugName: "class" }] : /* istanbul ignore next */ []));
|
|
7
|
+
decorative = input(false, { ...(ngDevMode ? { debugName: "decorative" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
8
|
+
ariaLabel = input('Loading', { ...(ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {}), alias: 'aria-label' });
|
|
9
|
+
ariaLabelledby = input(null, { ...(ngDevMode ? { debugName: "ariaLabelledby" } : /* istanbul ignore next */ {}), alias: 'aria-labelledby' });
|
|
10
|
+
classes = computed(() => cn('inline-flex size-4 shrink-0 items-center justify-center align-middle text-current', this.class()), ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.14", type: SpinnerComponent, isStandalone: true, selector: "ui-spinner", inputs: { class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledby: { classPropertyName: "ariaLabelledby", publicName: "aria-labelledby", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "spinner" }, properties: { "class": "classes()", "attr.role": "decorative() ? null : \"status\"", "attr.aria-hidden": "decorative() ? \"true\" : null", "attr.aria-label": "decorative() || ariaLabelledby() ? null : ariaLabel()", "attr.aria-labelledby": "decorative() ? null : ariaLabelledby()" } }, ngImport: i0, template: `
|
|
13
|
+
<svg
|
|
14
|
+
aria-hidden="true"
|
|
15
|
+
class="size-full animate-spin motion-reduce:animate-none"
|
|
16
|
+
viewBox="0 0 24 24"
|
|
17
|
+
fill="none"
|
|
18
|
+
stroke="currentColor"
|
|
19
|
+
stroke-width="2">
|
|
20
|
+
<circle cx="12" cy="12" r="9" class="opacity-20" />
|
|
21
|
+
<path d="M21 12a9 9 0 0 0-9-9" stroke-linecap="round" />
|
|
22
|
+
</svg>
|
|
23
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
24
|
+
}
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: SpinnerComponent, decorators: [{
|
|
26
|
+
type: Component,
|
|
27
|
+
args: [{
|
|
28
|
+
selector: 'ui-spinner',
|
|
29
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
|
+
host: {
|
|
31
|
+
'[class]': 'classes()',
|
|
32
|
+
'[attr.role]': 'decorative() ? null : "status"',
|
|
33
|
+
'[attr.aria-hidden]': 'decorative() ? "true" : null',
|
|
34
|
+
'[attr.aria-label]': 'decorative() || ariaLabelledby() ? null : ariaLabel()',
|
|
35
|
+
'[attr.aria-labelledby]': 'decorative() ? null : ariaLabelledby()',
|
|
36
|
+
'data-slot': 'spinner',
|
|
37
|
+
},
|
|
38
|
+
template: `
|
|
39
|
+
<svg
|
|
40
|
+
aria-hidden="true"
|
|
41
|
+
class="size-full animate-spin motion-reduce:animate-none"
|
|
42
|
+
viewBox="0 0 24 24"
|
|
43
|
+
fill="none"
|
|
44
|
+
stroke="currentColor"
|
|
45
|
+
stroke-width="2">
|
|
46
|
+
<circle cx="12" cy="12" r="9" class="opacity-20" />
|
|
47
|
+
<path d="M21 12a9 9 0 0 0-9-9" stroke-linecap="round" />
|
|
48
|
+
</svg>
|
|
49
|
+
`,
|
|
50
|
+
}]
|
|
51
|
+
}], propDecorators: { class: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-label", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "aria-labelledby", required: false }] }] } });
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Generated bundle index. Do not edit.
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
export { SpinnerComponent };
|
|
58
|
+
//# sourceMappingURL=edsis-ui-spinner.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edsis-ui-spinner.mjs","sources":["../../../library/ui/spinner/spinner.component.ts","../../../library/ui/spinner/edsis-ui-spinner.ts"],"sourcesContent":["import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { cn } from '@edsis/ui/utils';\n\n@Component({\n selector: 'ui-spinner',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class]': 'classes()',\n '[attr.role]': 'decorative() ? null : \"status\"',\n '[attr.aria-hidden]': 'decorative() ? \"true\" : null',\n '[attr.aria-label]': 'decorative() || ariaLabelledby() ? null : ariaLabel()',\n '[attr.aria-labelledby]': 'decorative() ? null : ariaLabelledby()',\n 'data-slot': 'spinner',\n },\n template: `\n <svg\n aria-hidden=\"true\"\n class=\"size-full animate-spin motion-reduce:animate-none\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\">\n <circle cx=\"12\" cy=\"12\" r=\"9\" class=\"opacity-20\" />\n <path d=\"M21 12a9 9 0 0 0-9-9\" stroke-linecap=\"round\" />\n </svg>\n `,\n})\nexport class SpinnerComponent {\n readonly class = input<string>('');\n readonly decorative = input(false, { transform: booleanAttribute });\n readonly ariaLabel = input<string>('Loading', { alias: 'aria-label' });\n readonly ariaLabelledby = input<string | null>(null, { alias: 'aria-labelledby' });\n\n protected readonly classes = computed(() =>\n cn('inline-flex size-4 shrink-0 items-center justify-center align-middle text-current', this.class()),\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MA2Ba,gBAAgB,CAAA;AAClB,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,4EAAC;IACzB,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAC1D,SAAS,GAAG,KAAK,CAAS,SAAS,iFAAI,KAAK,EAAE,YAAY,EAAA,CAAG;IAC7D,cAAc,GAAG,KAAK,CAAgB,IAAI,sFAAI,KAAK,EAAE,iBAAiB,EAAA,CAAG;AAE/D,IAAA,OAAO,GAAG,QAAQ,CAAC,MACpC,EAAE,CAAC,mFAAmF,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,8EACtG;wGARU,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAhB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,MAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,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