@semantic-components/ui 0.37.0 → 0.38.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/fesm2022/semantic-components-ui.mjs +5625 -2997
- package/fesm2022/semantic-components-ui.mjs.map +1 -1
- package/index.d.ts +13 -3
- package/lib/components/aspect-ratio/aspect-ratio.d.ts +2 -2
- package/lib/components/calendar/calendar-header.d.ts +14 -0
- package/lib/components/calendar/calendar-utils.d.ts +6 -0
- package/lib/components/calendar/calendar.d.ts +32 -27
- package/lib/components/calendar/day-button.d.ts +9 -0
- package/lib/components/calendar/day-selector.d.ts +16 -0
- package/lib/components/calendar/month-selector.d.ts +12 -0
- package/lib/components/calendar/types.d.ts +6 -0
- package/lib/components/calendar/utils.d.ts +6 -0
- package/lib/components/calendar/year-selector.d.ts +10 -0
- package/lib/components/carousel/carousel-next.d.ts +6 -6
- package/lib/components/carousel/carousel-previous.d.ts +6 -6
- package/lib/components/carousel/carousel.d.ts +9 -6
- package/lib/components/checkbox/checkbox2.d.ts +6 -19
- package/lib/components/{progress → circular-progress}/circular-progress.d.ts +6 -10
- package/lib/components/circular-progress/index.d.ts +1 -0
- package/lib/components/clock-picker/clock-picker.d.ts +3 -3
- package/lib/components/code-highlighter/shiki.service.d.ts +4 -0
- package/lib/components/color-picker/color-picker.d.ts +2 -2
- package/lib/components/combobox/combobox.d.ts +3 -3
- package/lib/components/date-picker/date-picker-toggle.d.ts +10 -0
- package/lib/components/date-picker/date-picker.d.ts +28 -20
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/date-range-picker/date-range-picker.d.ts +47 -0
- package/lib/components/date-range-picker/index.d.ts +1 -0
- package/lib/components/dual-range-slider/dual-range-slider.d.ts +15 -0
- package/lib/components/dual-range-slider/index.d.ts +1 -0
- package/lib/components/file-upload/file-upload.d.ts +28 -5
- package/lib/components/file-upload/index.d.ts +0 -2
- package/lib/components/full-calendar/full-calendar.d.ts +1 -1
- package/lib/components/input/input.d.ts +2 -0
- package/lib/components/input/plain-input.d.ts +1 -1
- package/lib/components/input-number/index.d.ts +3 -0
- package/lib/components/input-number/input-number-decrementer.d.ts +9 -0
- package/lib/components/input-number/input-number-incrementer.d.ts +9 -0
- package/lib/components/input-number/input-number.d.ts +11 -0
- package/lib/components/input-number-group/index.d.ts +1 -0
- package/lib/components/input-number-group/input-number-group.d.ts +11 -0
- package/lib/components/input-otp/input-otp-slot.d.ts +19 -11
- package/lib/components/input-otp/input-otp.d.ts +19 -21
- package/lib/components/input-password/input-password.d.ts +8 -8
- package/lib/components/multi-select/index.d.ts +1 -0
- package/lib/components/multi-select/multi-select.d.ts +41 -0
- package/lib/components/on-this-page/index.d.ts +1 -0
- package/lib/components/on-this-page/on-this-page.d.ts +31 -0
- package/lib/components/progress/index.d.ts +0 -1
- package/lib/components/progress/progress.d.ts +1 -3
- package/lib/components/range-calendar/days-selector.d.ts +19 -0
- package/lib/components/range-calendar/index.d.ts +1 -0
- package/lib/components/range-calendar/range-calendar.d.ts +41 -0
- package/lib/components/range-calendar/types.d.ts +5 -0
- package/lib/components/range-slider/index.d.ts +1 -0
- package/lib/components/range-slider/range-slider.d.ts +10 -0
- package/lib/components/rating/index.d.ts +1 -0
- package/lib/components/rating/rating.d.ts +23 -0
- package/lib/components/scroll-area/hover-scrollbar.component.d.ts +14 -0
- package/lib/components/scroll-area/index.d.ts +1 -0
- package/lib/components/scroll-area/scroll-area.d.ts +4 -4
- package/lib/components/scroll-spy/scroll-spy.d.ts +4 -4
- package/lib/components/scroll-to-top/index.d.ts +2 -0
- package/lib/components/scroll-to-top/scroll-to-top-button.d.ts +10 -0
- package/lib/components/scroll-to-top/scroll-to-top-button2.d.ts +11 -0
- package/lib/components/scroll-to-top/scroll-to-top.d.ts +18 -0
- package/lib/components/select/option.d.ts +1 -2
- package/lib/components/sheet/sheet-close.d.ts +5 -6
- package/lib/components/sheet/sheet-container.d.ts +4 -4
- package/lib/components/sheet/sheet-trigger.d.ts +5 -5
- package/lib/components/sheet/sheet.d.ts +6 -7
- package/lib/components/sidebar/index.d.ts +1 -0
- package/lib/components/sidebar/sidebar-content.d.ts +7 -0
- package/lib/components/sidebar/sidebar-mobile.d.ts +10 -9
- package/lib/components/sidebar/sidebar-toggler.d.ts +7 -5
- package/lib/components/sidebar/sidebar.d.ts +4 -0
- package/lib/components/slider/slider.d.ts +2 -1
- package/lib/components/stepper/index.d.ts +2 -0
- package/lib/components/stepper/step.d.ts +9 -0
- package/lib/components/stepper/stepper.d.ts +11 -0
- package/lib/components/switch/switch.d.ts +1 -11
- package/lib/components/table/index.d.ts +2 -2
- package/lib/components/table/table-header-group.d.ts +7 -0
- package/lib/components/table/table-header.d.ts +1 -1
- package/lib/components/table-of-contents/index.d.ts +1 -0
- package/lib/components/table-of-contents/table-of-contents.d.ts +21 -0
- package/lib/components/time-picker/time-picker2.d.ts +2 -2
- package/lib/components/toast/index.d.ts +5 -1
- package/lib/components/toast/toast-action.d.ts +3 -3
- package/lib/components/toast/toast-close.d.ts +5 -3
- package/lib/components/toast/toast-container.d.ts +10 -0
- package/lib/components/toast/toast-content.d.ts +3 -3
- package/lib/components/toast/toast-description.d.ts +3 -3
- package/lib/components/toast/toast-id.d.ts +2 -0
- package/lib/components/toast/toast-title.d.ts +3 -3
- package/lib/components/toast/toast.d.ts +16 -5
- package/lib/components/toast/toast.service.d.ts +9 -0
- package/lib/components/toast/toaster.d.ts +23 -5
- package/package.json +4 -4
- package/styles/shiki-styles.css +1 -1
- package/styles/typography-styles.css +304 -0
- package/lib/components/calendar/month-days.d.ts +0 -19
- package/lib/components/calendar/month-year-header.d.ts +0 -9
- package/lib/components/calendar/util.d.ts +0 -5
- package/lib/components/chat/chat.d.ts +0 -5
- package/lib/components/chat/index.d.ts +0 -1
- package/lib/components/date-picker/date-input.d.ts +0 -9
- package/lib/components/file-upload/drop-zone.d.ts +0 -11
- package/lib/components/file-upload/file-card.d.ts +0 -12
- package/lib/components/file-upload/file-preview.d.ts +0 -7
- package/lib/components/file-upload/file-uploader.d.ts +0 -16
- package/lib/components/file-upload/file.d.ts +0 -4
- package/lib/components/file-upload/image.d.ts +0 -7
- package/lib/components/file-upload/single-file-uploader.d.ts +0 -18
- package/lib/components/file-upload/utils.d.ts +0 -4
- package/lib/components/input-otp/input-otp-handler.d.ts +0 -7
- package/lib/components/rtl/index.d.ts +0 -1
- package/lib/components/rtl/rtl.d.ts +0 -9
- package/lib/components/table/table-head.d.ts +0 -7
- package/lib/components/tel-input/form-field-custom-control.component.d.ts +0 -9
- package/lib/components/tel-input/index.d.ts +0 -2
- package/lib/components/tel-input/tel-input.component.d.ts +0 -70
- package/lib/components/toast/toast-example.d.ts +0 -5
package/index.d.ts
CHANGED
|
@@ -3,21 +3,27 @@ export * from './lib/components/editor';
|
|
|
3
3
|
export * from './lib/components/tooltip';
|
|
4
4
|
export * from './lib/components/paginator';
|
|
5
5
|
export * from './lib/components/calendar';
|
|
6
|
+
export * from './lib/components/range-calendar';
|
|
6
7
|
export * from './lib/components/full-calendar';
|
|
7
8
|
export * from './lib/components/date-picker';
|
|
9
|
+
export * from './lib/components/date-range-picker';
|
|
8
10
|
export * from './lib/components/nav';
|
|
9
11
|
export * from './lib/components/theme-toggler';
|
|
10
12
|
export * from './lib/components/link';
|
|
11
13
|
export * from './lib/components/button';
|
|
12
14
|
export * from './lib/components/input';
|
|
15
|
+
export * from './lib/components/input-number';
|
|
16
|
+
export * from './lib/components/input-number-group';
|
|
13
17
|
export * from './lib/components/input-group';
|
|
14
18
|
export * from './lib/components/input-password';
|
|
15
19
|
export * from './lib/components/input-otp';
|
|
16
|
-
export * from './lib/components/tel-input';
|
|
17
20
|
export * from './lib/components/label';
|
|
18
21
|
export * from './lib/components/textarea';
|
|
19
22
|
export * from './lib/components/select';
|
|
23
|
+
export * from './lib/components/multi-select';
|
|
24
|
+
export * from './lib/components/scroll-to-top';
|
|
20
25
|
export * from './lib/components/progress';
|
|
26
|
+
export * from './lib/components/circular-progress';
|
|
21
27
|
export * from './lib/components/sheet';
|
|
22
28
|
export * from './lib/components/breadcrumb';
|
|
23
29
|
export * from './lib/components/toggle';
|
|
@@ -64,11 +70,15 @@ export * from './lib/components/tags';
|
|
|
64
70
|
export * from './lib/components/combobox';
|
|
65
71
|
export * from './lib/components/clock-picker';
|
|
66
72
|
export * from './lib/components/code-highlighter';
|
|
67
|
-
export * from './lib/components/chat';
|
|
68
73
|
export * from './lib/components/image-placeholder';
|
|
69
|
-
export * from './lib/components/rtl';
|
|
70
74
|
export * from './lib/components/fieldset';
|
|
71
75
|
export * from './lib/components/touch-area';
|
|
72
76
|
export * from './lib/components/scroll-spy';
|
|
73
77
|
export * from './lib/components/color-picker';
|
|
74
78
|
export * from './lib/components/toggle-switch';
|
|
79
|
+
export * from './lib/components/range-slider';
|
|
80
|
+
export * from './lib/components/dual-range-slider';
|
|
81
|
+
export * from './lib/components/table-of-contents';
|
|
82
|
+
export * from './lib/components/stepper';
|
|
83
|
+
export * from './lib/components/rating';
|
|
84
|
+
export * from './lib/components/on-this-page';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ScAspectRatio {
|
|
3
|
-
readonly ratio: import("@angular/core").InputSignal<
|
|
3
|
+
readonly ratio: import("@angular/core").InputSignal<number>;
|
|
4
4
|
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
5
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
-
|
|
6
|
+
calculatePadding(): string;
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScAspectRatio, never>;
|
|
8
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScAspectRatio, "div[sc-aspect-ratio]", never, { "ratio": { "alias": "ratio"; "required": false; "isSignal": true; }; "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
9
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScCalendarHeader {
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
readonly currentMonth: import("@angular/core").InputSignal<Temporal.PlainYearMonth>;
|
|
7
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
readonly monthYearChange: import("@angular/core").OutputEmitterRef<number>;
|
|
9
|
+
readonly viewToggled: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
+
private readonly localeId;
|
|
11
|
+
protected readonly monthName: import("@angular/core").Signal<string>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScCalendarHeader, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCalendarHeader, "sc-calendar-header", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "currentMonth": { "alias": "currentMonth"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": true; "isSignal": true; }; }, { "monthYearChange": "monthYearChange"; "viewToggled": "viewToggled"; }, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
3
|
+
import { CalendarDay } from './types';
|
|
4
|
+
export declare function isToday(date: Temporal.PlainDate): boolean;
|
|
5
|
+
export declare function isDateDisabled(minDate: Signal<Temporal.PlainDate>, maxDate: Signal<Temporal.PlainDate>, date: Temporal.PlainDate): boolean;
|
|
6
|
+
export declare function generateCalendarDays(localeId: string, currentMonth: Signal<Temporal.PlainYearMonth>): Signal<CalendarDay[]>;
|
|
@@ -1,37 +1,42 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import {
|
|
2
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ScCalendar implements
|
|
6
|
-
|
|
4
|
+
export declare class ScCalendar implements ControlValueAccessor {
|
|
5
|
+
readonly value: import("@angular/core").ModelSignal<Temporal.PlainDate | undefined>;
|
|
6
|
+
readonly minDate: import("@angular/core").InputSignal<Temporal.PlainDate | undefined>;
|
|
7
|
+
readonly maxDate: import("@angular/core").InputSignal<Temporal.PlainDate | undefined>;
|
|
7
8
|
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
8
9
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
10
|
+
private readonly today;
|
|
11
|
+
protected readonly focusedDate: import("@angular/core").WritableSignal<Temporal.PlainDate | undefined>;
|
|
12
|
+
protected readonly currentYear: import("@angular/core").WritableSignal<number>;
|
|
13
|
+
protected readonly currentMonth: import("@angular/core").WritableSignal<Temporal.PlainYearMonth>;
|
|
14
|
+
private readonly firstDayOfMonth;
|
|
15
|
+
private readonly lastDayOfMonth;
|
|
9
16
|
private readonly localeId;
|
|
10
|
-
readonly
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
protected readonly calendarDays: import("@angular/core").Signal<import("./types").CalendarDay[]>;
|
|
18
|
+
isToday(date: Temporal.PlainDate): boolean;
|
|
19
|
+
isDateDisabled(date: Temporal.PlainDate): boolean;
|
|
20
|
+
selectDate(date: Temporal.PlainDate): void;
|
|
21
|
+
moveFocus(delta: number): void;
|
|
22
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
23
|
+
prevMonth(): void;
|
|
24
|
+
nextMonth(): void;
|
|
25
|
+
protected readonly view: import("@angular/core").WritableSignal<"months" | "years" | "days">;
|
|
26
|
+
protected toggleView(): void;
|
|
27
|
+
weekdays: string[];
|
|
28
|
+
private readonly scYearSelector;
|
|
29
|
+
protected setMonthYear(n: number): void;
|
|
30
|
+
protected selectYear(year: number): void;
|
|
31
|
+
protected selectMonth(month: Temporal.PlainYearMonth): void;
|
|
32
|
+
onChange: (value: Temporal.PlainDate) => void;
|
|
21
33
|
onTouched: () => void;
|
|
22
|
-
writeValue(value:
|
|
23
|
-
registerOnChange(fn: (value:
|
|
34
|
+
writeValue(value: Temporal.PlainDate): void;
|
|
35
|
+
registerOnChange(fn: (value: Temporal.PlainDate) => void): void;
|
|
24
36
|
registerOnTouched(fn: () => void): void;
|
|
25
|
-
|
|
37
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
38
|
+
readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
26
39
|
setDisabledState?(isDisabled: boolean): void;
|
|
27
|
-
ngOnInit(): void;
|
|
28
|
-
private setLocaleDayNames;
|
|
29
|
-
private getFirstDayOfWeek;
|
|
30
|
-
setMonthYear(n: number): void;
|
|
31
|
-
twoDigits(n: number): string;
|
|
32
|
-
handleKeydown(event: KeyboardEvent): void;
|
|
33
|
-
getDateString(date: Date): string;
|
|
34
|
-
addDays(days: number): string;
|
|
35
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCalendar, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCalendar, "sc-calendar", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCalendar, "sc-calendar", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
37
42
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ScButtonBase } from '../button';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScDayButton extends ScButtonBase {
|
|
4
|
+
private readonly host;
|
|
5
|
+
readonly isFocused: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
constructor();
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDayButton, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDayButton, "button[sc-day-button]", never, { "isFocused": { "alias": "isFocused"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
import { CalendarDay } from './types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ScDaySelector {
|
|
5
|
+
readonly calendarDays: import("@angular/core").InputSignal<CalendarDay[]>;
|
|
6
|
+
readonly weekdays: import("@angular/core").InputSignal<string[]>;
|
|
7
|
+
readonly dateSelected: import("@angular/core").OutputEmitterRef<Temporal.PlainDate>;
|
|
8
|
+
readonly selectedDate: import("@angular/core").InputSignal<Temporal.PlainDate | undefined>;
|
|
9
|
+
readonly focusedDate: import("@angular/core").InputSignal<Temporal.PlainDate | undefined>;
|
|
10
|
+
protected getVariant(day: CalendarDay): "primary" | "outline" | "secondary" | "ghost";
|
|
11
|
+
protected selectDay(day: CalendarDay): void;
|
|
12
|
+
isSelected(date: Temporal.PlainDate): boolean;
|
|
13
|
+
isFocused(date: Temporal.PlainDate): boolean;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDaySelector, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDaySelector, "sc-day-selector", never, { "calendarDays": { "alias": "calendarDays"; "required": true; "isSignal": true; }; "weekdays": { "alias": "weekdays"; "required": true; "isSignal": true; }; "selectedDate": { "alias": "selectedDate"; "required": false; "isSignal": true; }; "focusedDate": { "alias": "focusedDate"; "required": false; "isSignal": true; }; }, { "dateSelected": "dateSelected"; }, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScMonthSelector {
|
|
4
|
+
readonly currentMonth: import("@angular/core").InputSignal<Temporal.PlainYearMonth>;
|
|
5
|
+
protected months: string[];
|
|
6
|
+
private readonly localeId;
|
|
7
|
+
constructor();
|
|
8
|
+
readonly monthSelected: import("@angular/core").OutputEmitterRef<Temporal.PlainYearMonth>;
|
|
9
|
+
protected selectMonth(monthIndex: number): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScMonthSelector, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScMonthSelector, "sc-month-selector", never, { "currentMonth": { "alias": "currentMonth"; "required": true; "isSignal": true; }; }, { "monthSelected": "monthSelected"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
|
+
export declare function getFirstDayOfWeek(localeId: string): number;
|
|
3
|
+
export declare function formatDate(locale: string, date: Temporal.PlainDate): string;
|
|
4
|
+
export declare function getLocalizedDayNames(locale: string, format?: 'long' | 'short' | 'narrow'): string[];
|
|
5
|
+
export declare function getLocalizedMonthNames(locale: string): string[];
|
|
6
|
+
export declare function getMonthName(locale: string, yearMonth: Temporal.PlainYearMonth): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScYearSelector {
|
|
3
|
+
readonly currentYear: import("@angular/core").InputSignal<number>;
|
|
4
|
+
readonly year: import("@angular/core").WritableSignal<number>;
|
|
5
|
+
protected readonly years: import("@angular/core").Signal<number[]>;
|
|
6
|
+
readonly yearSelected: import("@angular/core").OutputEmitterRef<number>;
|
|
7
|
+
protected selectYear(year: number): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScYearSelector, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScYearSelector, "sc-year-selector", never, { "currentYear": { "alias": "currentYear"; "required": true; "isSignal": true; }; }, { "yearSelected": "yearSelected"; }, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { ScButtonBase } from '../button';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ScCarouselNext {
|
|
3
|
+
export declare class ScCarouselNext extends ScButtonBase {
|
|
3
4
|
private readonly scCarousel;
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
readonly variantInput: import("@angular/core").InputSignal<"outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined>;
|
|
6
|
+
readonly sizeInput: import("@angular/core").InputSignal<"default" | "sm" | "lg" | "icon" | null | undefined>;
|
|
7
7
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
8
|
-
protected readonly disabled: import("@angular/core").
|
|
8
|
+
protected readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
9
9
|
protected scrollNext(): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCarouselNext, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCarouselNext, "button[sc-carousel-next]", never, { "
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCarouselNext, "button[sc-carousel-next]", never, { "variantInput": { "alias": "variantInput"; "required": false; "isSignal": true; }; "sizeInput": { "alias": "sizeInput"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
12
12
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import { ScButtonBase } from '../button';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ScCarouselPrevious {
|
|
3
|
+
export declare class ScCarouselPrevious extends ScButtonBase {
|
|
3
4
|
private readonly scCarousel;
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
readonly variantInput: import("@angular/core").InputSignal<"outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined>;
|
|
6
|
+
readonly sizeInput: import("@angular/core").InputSignal<"default" | "sm" | "lg" | "icon" | null | undefined>;
|
|
7
7
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
8
|
-
protected readonly disabled: import("@angular/core").
|
|
8
|
+
protected readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
9
9
|
protected scrollPrev(): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCarouselPrevious, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCarouselPrevious, "button[sc-carousel-previous]", never, { "
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCarouselPrevious, "button[sc-carousel-previous]", never, { "variantInput": { "alias": "variantInput"; "required": false; "isSignal": true; }; "sizeInput": { "alias": "sizeInput"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
12
12
|
}
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
1
2
|
import { EmblaCarouselType } from 'embla-carousel';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ScCarousel {
|
|
4
|
-
private readonly
|
|
4
|
+
export declare class ScCarousel implements OnDestroy {
|
|
5
|
+
private readonly host;
|
|
5
6
|
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
6
7
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
7
|
-
readonly
|
|
8
|
+
readonly orientation: import("@angular/core").InputSignal<"horizontal" | "vertical">;
|
|
9
|
+
readonly optionsInput: import("@angular/core").InputSignal<Partial<import("embla-carousel/components/Options").OptionsType>>;
|
|
10
|
+
readonly options: import("@angular/core").Signal<Partial<import("embla-carousel/components/Options").OptionsType>>;
|
|
8
11
|
readonly plugins: import("@angular/core").InputSignal<import("embla-carousel").CreatePluginType<import("embla-carousel/components/Plugins").LoosePluginType, {}>[]>;
|
|
9
12
|
readonly canScrollPrev: import("@angular/core").WritableSignal<boolean>;
|
|
10
13
|
readonly canScrollNext: import("@angular/core").WritableSignal<boolean>;
|
|
11
14
|
private emblaApi;
|
|
12
|
-
get
|
|
13
|
-
readonly orientation: import("@angular/core").Signal<"horizontal" | "vertical">;
|
|
15
|
+
get api(): EmblaCarouselType;
|
|
14
16
|
constructor();
|
|
15
17
|
togglePrevNextBtnsState: () => void;
|
|
16
18
|
handleKeydown(event: KeyboardEvent): void;
|
|
17
19
|
private scrollPrev;
|
|
18
20
|
private scrollNext;
|
|
21
|
+
ngOnDestroy(): void;
|
|
19
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCarousel, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCarousel, "div[sc-carousel]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCarousel, "div[sc-carousel]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "optionsInput": { "alias": "options"; "required": false; "isSignal": true; }; "plugins": { "alias": "plugins"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
21
24
|
}
|
|
@@ -1,30 +1,17 @@
|
|
|
1
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ScCheckbox2
|
|
2
|
+
export declare class ScCheckbox2 {
|
|
3
|
+
private readonly hostRef;
|
|
4
4
|
readonly idInput: import("@angular/core").InputSignal<string>;
|
|
5
5
|
readonly id: import("@angular/core").WritableSignal<string>;
|
|
6
|
-
|
|
7
|
-
private readonly changeDetectorRef;
|
|
6
|
+
readonly type: import("@angular/core").InputSignal<"checkbox">;
|
|
8
7
|
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
9
8
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
10
|
-
readonly
|
|
11
|
-
readonly indeterminateInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
|
-
protected readonly indeterminate: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
readonly indeterminate: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13
10
|
readonly checkedInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
11
|
protected readonly checked: import("@angular/core").WritableSignal<boolean>;
|
|
15
12
|
readonly checkedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
16
|
-
readonly
|
|
17
|
-
protected readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
18
|
-
protected readonly state: import("@angular/core").Signal<"indeterminate" | "checked" | "unchecked">;
|
|
13
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
19
14
|
constructor();
|
|
20
|
-
protected toggle(): void;
|
|
21
|
-
writeValue(checked: boolean): void;
|
|
22
|
-
onChange: any;
|
|
23
|
-
onTouch: any;
|
|
24
|
-
registerOnChange(fn: any): void;
|
|
25
|
-
registerOnTouched(fn: any): void;
|
|
26
|
-
setDisabledState(isDisabled: boolean): void;
|
|
27
|
-
protected onInteractionEvent(event: Event): void;
|
|
28
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCheckbox2, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCheckbox2, "input[sc-checkbox2]", never, { "idInput": { "alias": "id"; "required": false; "isSignal": true; }; "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCheckbox2, "input[sc-checkbox2]", never, { "idInput": { "alias": "id"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": true; "isSignal": true; }; "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "checkedInput": { "alias": "checked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; }, never, ["*"], true, never>;
|
|
30
17
|
}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { OnChanges, OnInit } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ScCircularProgress
|
|
2
|
+
export declare class ScCircularProgress {
|
|
4
3
|
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
4
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
5
|
readonly value: import("@angular/core").InputSignalWithTransform<number, unknown>;
|
|
7
|
-
radius: number
|
|
8
|
-
stroke: number
|
|
9
|
-
normalizedRadius: number
|
|
10
|
-
circumference: number
|
|
11
|
-
strokeDashoffset: number
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
ngOnChanges(): void;
|
|
14
|
-
updateProgress(): void;
|
|
6
|
+
protected readonly radius: import("@angular/core").WritableSignal<number>;
|
|
7
|
+
protected readonly stroke: import("@angular/core").WritableSignal<number>;
|
|
8
|
+
protected readonly normalizedRadius: import("@angular/core").Signal<number>;
|
|
9
|
+
protected readonly circumference: import("@angular/core").Signal<number>;
|
|
10
|
+
protected readonly strokeDashoffset: import("@angular/core").Signal<number>;
|
|
15
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCircularProgress, never>;
|
|
16
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScCircularProgress, "sc-circular-progress", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
13
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './circular-progress';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementRef,
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ScClockPicker implements OnInit {
|
|
4
|
-
clockFace: ElementRef
|
|
4
|
+
readonly clockFace: import("@angular/core").Signal<ElementRef<any>>;
|
|
5
5
|
readonly initialTime: import("@angular/core").InputSignal<string | undefined>;
|
|
6
|
-
timeSelected:
|
|
6
|
+
readonly timeSelected: import("@angular/core").OutputEmitterRef<string>;
|
|
7
7
|
hours: number[];
|
|
8
8
|
periods: string[];
|
|
9
9
|
selectedHour: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ScColorPicker implements OnInit {
|
|
4
4
|
initialColor: string;
|
|
5
|
-
colorChange:
|
|
5
|
+
readonly colorChange: import("@angular/core").OutputEmitterRef<string>;
|
|
6
6
|
red: number;
|
|
7
7
|
green: number;
|
|
8
8
|
blue: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ScCombobox implements OnInit {
|
|
@@ -10,8 +10,8 @@ export declare class ScCombobox implements OnInit {
|
|
|
10
10
|
readonly optionTemplate: import("@angular/core").InputSignal<any>;
|
|
11
11
|
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
12
12
|
readonly labelKey: import("@angular/core").InputSignal<string>;
|
|
13
|
-
optionSelected:
|
|
14
|
-
search:
|
|
13
|
+
readonly optionSelected: import("@angular/core").OutputEmitterRef<any>;
|
|
14
|
+
readonly search: import("@angular/core").OutputEmitterRef<string>;
|
|
15
15
|
searchControl: FormControl<string | null>;
|
|
16
16
|
isOpen: boolean;
|
|
17
17
|
activeIndex: number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ScButtonBase } from '../button';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScDatePickerToggle extends ScButtonBase {
|
|
4
|
+
readonly variantInput: import("@angular/core").InputSignal<"outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
readonly toggled: import("@angular/core").OutputEmitterRef<void>;
|
|
7
|
+
protected toggle(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDatePickerToggle, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDatePickerToggle, "button[sc-date-picker-toggle]", never, { "variantInput": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "toggled": "toggled"; }, never, ["*"], true, never>;
|
|
10
|
+
}
|
|
@@ -1,30 +1,38 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ScDatePicker {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
export declare class ScDatePicker implements ControlValueAccessor {
|
|
5
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
6
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
7
|
+
readonly value: import("@angular/core").ModelSignal<Temporal.PlainDate | undefined>;
|
|
8
|
+
readonly minDate: import("@angular/core").InputSignal<Temporal.PlainDate | undefined>;
|
|
9
|
+
readonly maxDate: import("@angular/core").InputSignal<Temporal.PlainDate | undefined>;
|
|
10
|
+
private readonly localeId;
|
|
6
11
|
private readonly host;
|
|
7
|
-
private readonly
|
|
8
|
-
private readonly
|
|
9
|
-
private readonly
|
|
10
|
-
private
|
|
11
|
-
private
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
|
|
15
|
-
readonly opened: OutputEmitterRef<void>;
|
|
16
|
-
/** Emits when the datepicker is closed. */
|
|
17
|
-
readonly closed: OutputEmitterRef<void>;
|
|
18
|
-
/** Emits when the user selects a date. */
|
|
19
|
-
readonly selected: OutputEmitterRef<string>;
|
|
12
|
+
private readonly dir;
|
|
13
|
+
private readonly overlay;
|
|
14
|
+
private readonly isOpen;
|
|
15
|
+
private overlayRef;
|
|
16
|
+
private portal;
|
|
17
|
+
private readonly scDatePickerToggle;
|
|
18
|
+
private readonly scInput;
|
|
19
|
+
constructor();
|
|
20
20
|
/** Opens the datepicker. */
|
|
21
21
|
open(): void;
|
|
22
22
|
/** Closes the datepicker. */
|
|
23
23
|
close(): void;
|
|
24
24
|
/** Creates an overlay reference for the datepicker panel. */
|
|
25
|
-
private
|
|
25
|
+
private getOverlayRef;
|
|
26
26
|
/** Selects a specific date value. */
|
|
27
|
-
protected
|
|
27
|
+
protected selectValue(value: Temporal.PlainDate): void;
|
|
28
|
+
onChange: (value: Temporal.PlainDate) => void;
|
|
29
|
+
onTouched: () => void;
|
|
30
|
+
writeValue(value: Temporal.PlainDate): void;
|
|
31
|
+
registerOnChange(fn: (value: Temporal.PlainDate) => void): void;
|
|
32
|
+
registerOnTouched(fn: () => void): void;
|
|
33
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
34
|
+
readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
35
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
28
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScDatePicker, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScDatePicker, "sc-date-picker", never, { "
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDatePicker, "sc-date-picker", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, ["scDatePickerToggle", "scInput"], ["*"], true, never>;
|
|
30
38
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Temporal } from '@js-temporal/polyfill';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ScDateRangePicker implements OnInit {
|
|
5
|
+
startDate: Temporal.PlainDate;
|
|
6
|
+
endDate: Temporal.PlainDate;
|
|
7
|
+
minDate: Temporal.PlainDate | null;
|
|
8
|
+
maxDate: Temporal.PlainDate | null;
|
|
9
|
+
dateRangeSelected: EventEmitter<{
|
|
10
|
+
startDate: Temporal.PlainDate;
|
|
11
|
+
endDate: Temporal.PlainDate;
|
|
12
|
+
}>;
|
|
13
|
+
currentMonth: Temporal.PlainYearMonth;
|
|
14
|
+
calendarDays: Array<{
|
|
15
|
+
date: Temporal.PlainDate;
|
|
16
|
+
isCurrentMonth: boolean;
|
|
17
|
+
isToday: boolean;
|
|
18
|
+
isSelected: boolean;
|
|
19
|
+
isInRange: boolean;
|
|
20
|
+
isDisabled: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
weekdays: string[];
|
|
23
|
+
months: string[];
|
|
24
|
+
years: number[];
|
|
25
|
+
selectedStartDate: Temporal.PlainDate | null;
|
|
26
|
+
selectedEndDate: Temporal.PlainDate | null;
|
|
27
|
+
isSelectingEndDate: boolean;
|
|
28
|
+
showCalendar: boolean;
|
|
29
|
+
today: Temporal.PlainDate;
|
|
30
|
+
constructor();
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
toggleCalendar(): void;
|
|
33
|
+
generateCalendarDays(): void;
|
|
34
|
+
prevMonth(): void;
|
|
35
|
+
nextMonth(): void;
|
|
36
|
+
setMonth(month: number): void;
|
|
37
|
+
setYear(year: number): void;
|
|
38
|
+
selectDate(date: Temporal.PlainDate, isDisabled: boolean): void;
|
|
39
|
+
applyDateRange(): void;
|
|
40
|
+
cancelSelection(): void;
|
|
41
|
+
setLastWeek(): void;
|
|
42
|
+
setLastMonth(): void;
|
|
43
|
+
setLastThreeMonths(): void;
|
|
44
|
+
formatDate(date: Temporal.PlainDate | null): string;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDateRangePicker, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDateRangePicker, "sc-date-range-picker", never, { "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, { "dateRangeSelected": "dateRangeSelected"; }, never, never, true, never>;
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './date-range-picker';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScDualRangeSlider {
|
|
3
|
+
readonly min: import("@angular/core").InputSignal<number>;
|
|
4
|
+
readonly max: import("@angular/core").InputSignal<number>;
|
|
5
|
+
minValue: number;
|
|
6
|
+
maxValue: number;
|
|
7
|
+
readonly minValueChange: import("@angular/core").OutputEmitterRef<number>;
|
|
8
|
+
readonly maxValueChange: import("@angular/core").OutputEmitterRef<number>;
|
|
9
|
+
get minPercentage(): number;
|
|
10
|
+
get maxPercentage(): number;
|
|
11
|
+
onMinChange(event: Event): void;
|
|
12
|
+
onMaxChange(event: Event): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDualRangeSlider, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDualRangeSlider, "sc-dual-range-slider", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; }, { "minValueChange": "minValueChange"; "maxValueChange": "maxValueChange"; }, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dual-range-slider';
|