@semantic-components/ui 0.30.0 → 0.32.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 +7317 -4462
- package/fesm2022/semantic-components-ui.mjs.map +1 -1
- package/index.d.ts +11 -2
- package/lib/components/button/button.d.ts +2 -1
- package/lib/components/button/cursor.d.ts +10 -0
- package/lib/components/button/index.d.ts +1 -0
- package/lib/components/calendar/calendar.d.ts +18 -14
- package/lib/components/calendar/month-days.d.ts +6 -2
- package/lib/components/carousel/carousel.d.ts +1 -1
- package/lib/components/chat/chat.d.ts +5 -0
- package/lib/components/chat/index.d.ts +1 -0
- package/lib/components/checkbox/checkbox.d.ts +2 -2
- package/lib/components/clock-picker/clock-picker.d.ts +31 -0
- package/lib/components/clock-picker/clock-picker2.d.ts +20 -0
- package/lib/components/clock-picker/index.d.ts +2 -0
- package/lib/components/code-highlighter/code-highlighter.d.ts +14 -0
- package/lib/components/code-highlighter/index.d.ts +1 -0
- package/lib/components/code-highlighter/shiki.service.d.ts +9 -0
- package/lib/components/combobox/combobox.d.ts +44 -0
- package/lib/components/combobox/index.d.ts +1 -0
- package/lib/components/comments/comment-model.d.ts +14 -0
- package/lib/components/comments/comment.d.ts +9 -0
- package/lib/components/comments/comments.d.ts +13 -0
- package/lib/components/comments/index.d.ts +2 -0
- package/lib/components/confirmation-dialog/confirmation-dialog-content.d.ts +8 -2
- package/lib/components/full-calendar/day-view.d.ts +13 -0
- package/lib/components/full-calendar/full-calendar.d.ts +27 -4
- package/lib/components/full-calendar/index.d.ts +2 -0
- package/lib/components/full-calendar/mobile-calendar.d.ts +19 -0
- package/lib/components/full-calendar/week-view.d.ts +14 -0
- package/lib/components/image-placeholder/image-placeholder.d.ts +13 -0
- package/lib/components/image-placeholder/image-placeholder.service.d.ts +6 -0
- package/lib/components/image-placeholder/index.d.ts +1 -0
- package/lib/components/input/auto-resize-input.d.ts +33 -0
- package/lib/components/input/index.d.ts +2 -0
- package/lib/components/input/input.d.ts +3 -1
- package/lib/components/input/plain-input.d.ts +8 -0
- package/lib/components/input-password/index.d.ts +1 -0
- package/lib/components/input-password/input-password.d.ts +28 -0
- package/lib/components/progress/circular-progress.d.ts +17 -0
- package/lib/components/progress/index.d.ts +1 -0
- package/lib/components/progress/progress.d.ts +10 -5
- package/lib/components/rtl/index.d.ts +1 -0
- package/lib/components/rtl/rtl.d.ts +9 -0
- package/lib/components/tags/index.d.ts +1 -0
- package/lib/components/tags/tags.d.ts +19 -0
- package/lib/components/time-picker/index.d.ts +1 -0
- package/lib/components/time-picker/time-picker2.d.ts +23 -0
- package/package.json +4 -2
package/index.d.ts
CHANGED
|
@@ -9,6 +9,9 @@ export * from './lib/components/nav';
|
|
|
9
9
|
export * from './lib/components/theme-toggler';
|
|
10
10
|
export * from './lib/components/button';
|
|
11
11
|
export * from './lib/components/input';
|
|
12
|
+
export * from './lib/components/input-password';
|
|
13
|
+
export * from './lib/components/input-otp';
|
|
14
|
+
export * from './lib/components/tel-input';
|
|
12
15
|
export * from './lib/components/label';
|
|
13
16
|
export * from './lib/components/textarea';
|
|
14
17
|
export * from './lib/components/select';
|
|
@@ -34,8 +37,6 @@ export * from './lib/components/checkbox-group';
|
|
|
34
37
|
export * from './lib/components/accordion';
|
|
35
38
|
export * from './lib/components/switch';
|
|
36
39
|
export * from './lib/components/radio-group';
|
|
37
|
-
export * from './lib/components/input-otp';
|
|
38
|
-
export * from './lib/components/tel-input';
|
|
39
40
|
export * from './lib/components/hover-card';
|
|
40
41
|
export * from './lib/components/avatar';
|
|
41
42
|
export * from './lib/components/aspect-ratio';
|
|
@@ -56,3 +57,11 @@ export * from './lib/components/file-upload';
|
|
|
56
57
|
export * from './lib/components/page';
|
|
57
58
|
export * from './lib/components/typography';
|
|
58
59
|
export * from './lib/components/cookie-consent';
|
|
60
|
+
export * from './lib/components/comments';
|
|
61
|
+
export * from './lib/components/tags';
|
|
62
|
+
export * from './lib/components/combobox';
|
|
63
|
+
export * from './lib/components/clock-picker';
|
|
64
|
+
export * from './lib/components/code-highlighter';
|
|
65
|
+
export * from './lib/components/chat';
|
|
66
|
+
export * from './lib/components/image-placeholder';
|
|
67
|
+
export * from './lib/components/rtl';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./cursor";
|
|
3
4
|
export declare const buttonVariants: (props?: ({
|
|
4
5
|
variant?: "outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined;
|
|
5
6
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
@@ -12,5 +13,5 @@ export declare class ScButton {
|
|
|
12
13
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
13
14
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScButton, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScButton, "button[sc-button], a[sc-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true,
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScButton, "button[sc-button], a[sc-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.ScCursor; inputs: {}; outputs: {}; }]>;
|
|
16
17
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScCursor implements OnInit {
|
|
4
|
+
private readonly isPlatformBrowser;
|
|
5
|
+
private readonly hostRef;
|
|
6
|
+
private readonly renderer;
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScCursor, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScCursor, "button[sc-cursor], a[sc-cursor]", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -3,21 +3,22 @@ import { ControlValueAccessor } from '@angular/forms';
|
|
|
3
3
|
import { WeekDayName } from './util';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ScCalendar implements OnInit, ControlValueAccessor {
|
|
6
|
-
private readonly
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
private readonly changeDetectorRef;
|
|
7
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
8
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
9
9
|
private readonly localeId;
|
|
10
|
-
date: import("@angular/core").Signal<Date>;
|
|
11
|
-
year: import("@angular/core").WritableSignal<number>;
|
|
12
|
-
month: import("@angular/core").WritableSignal<number>;
|
|
13
|
-
weekDaysNames: import("@angular/core").WritableSignal<WeekDayName[]>;
|
|
14
|
-
monthYear: import("@angular/core").Signal<string>;
|
|
15
|
-
monthDays: import("@angular/core").Signal<string[]>;
|
|
16
|
-
firstDayMonth: import("@angular/core").Signal<number>;
|
|
17
|
-
value: import("@angular/core").ModelSignal<string>;
|
|
10
|
+
readonly date: import("@angular/core").Signal<Date>;
|
|
11
|
+
readonly year: import("@angular/core").WritableSignal<number>;
|
|
12
|
+
readonly month: import("@angular/core").WritableSignal<number>;
|
|
13
|
+
readonly weekDaysNames: import("@angular/core").WritableSignal<WeekDayName[]>;
|
|
14
|
+
readonly monthYear: import("@angular/core").Signal<string>;
|
|
15
|
+
readonly monthDays: import("@angular/core").Signal<string[]>;
|
|
16
|
+
readonly firstDayMonth: import("@angular/core").Signal<number>;
|
|
17
|
+
readonly value: import("@angular/core").ModelSignal<string>;
|
|
18
|
+
readonly focusedDate: import("@angular/core").WritableSignal<string>;
|
|
18
19
|
setSelectedDay(day: string): void;
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
onChange: (value: string) => void;
|
|
21
|
+
onTouched: () => void;
|
|
21
22
|
writeValue(value: string): void;
|
|
22
23
|
registerOnChange(fn: (value: string) => void): void;
|
|
23
24
|
registerOnTouched(fn: () => void): void;
|
|
@@ -28,6 +29,9 @@ export declare class ScCalendar implements OnInit, ControlValueAccessor {
|
|
|
28
29
|
private getFirstDayOfWeek;
|
|
29
30
|
setMonthYear(n: number): void;
|
|
30
31
|
twoDigits(n: number): string;
|
|
32
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
33
|
+
getDateString(date: Date): string;
|
|
34
|
+
addDays(days: number): string;
|
|
31
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCalendar, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCalendar, "sc-calendar", never, { "
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCalendar, "sc-calendar", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
33
37
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
1
2
|
import { WeekDayName } from './util';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class ScMonthDays {
|
|
@@ -9,7 +10,10 @@ export declare class ScMonthDays {
|
|
|
9
10
|
selectedDay: import("@angular/core").InputSignal<string>;
|
|
10
11
|
selectedDayChange: import("@angular/core").OutputEmitterRef<string>;
|
|
11
12
|
isSelected(day: string): boolean;
|
|
12
|
-
setSelectedDay(event:
|
|
13
|
+
setSelectedDay(event: Event): void;
|
|
14
|
+
focusedDate: import("@angular/core").InputSignal<string>;
|
|
15
|
+
btns: import("@angular/core").Signal<readonly ElementRef<any>[]>;
|
|
16
|
+
constructor();
|
|
13
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScMonthDays, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScMonthDays, "sc-month-days", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "weekDaysNames": { "alias": "weekDaysNames"; "required": true; "isSignal": true; }; "days": { "alias": "days"; "required": true; "isSignal": true; }; "firstDayMonth": { "alias": "firstDayMonth"; "required": true; "isSignal": true; }; "selectedDay": { "alias": "selectedDay"; "required": false; "isSignal": true; }; }, { "selectedDayChange": "selectedDayChange"; }, never, never, true, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScMonthDays, "sc-month-days", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "weekDaysNames": { "alias": "weekDaysNames"; "required": true; "isSignal": true; }; "days": { "alias": "days"; "required": true; "isSignal": true; }; "firstDayMonth": { "alias": "firstDayMonth"; "required": true; "isSignal": true; }; "selectedDay": { "alias": "selectedDay"; "required": false; "isSignal": true; }; "focusedDate": { "alias": "focusedDate"; "required": false; "isSignal": true; }; }, { "selectedDayChange": "selectedDayChange"; }, never, never, true, never>;
|
|
15
19
|
}
|
|
@@ -13,7 +13,7 @@ export declare class ScCarousel {
|
|
|
13
13
|
readonly orientation: import("@angular/core").Signal<"horizontal" | "vertical">;
|
|
14
14
|
constructor();
|
|
15
15
|
togglePrevNextBtnsState: () => void;
|
|
16
|
-
|
|
16
|
+
handleKeydown(event: KeyboardEvent): void;
|
|
17
17
|
private scrollPrev;
|
|
18
18
|
private scrollNext;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCarousel, never>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './chat';
|
|
@@ -19,9 +19,9 @@ export declare class ScCheckbox implements ControlValueAccessor {
|
|
|
19
19
|
protected readonly indeterminate: import("@angular/core").WritableSignal<boolean>;
|
|
20
20
|
readonly checkedInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
21
21
|
protected readonly checked: import("@angular/core").WritableSignal<boolean>;
|
|
22
|
+
readonly checkedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
22
23
|
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
23
24
|
protected readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
24
|
-
readonly change: import("@angular/core").OutputEmitterRef<boolean>;
|
|
25
25
|
protected readonly state: import("@angular/core").Signal<"indeterminate" | "checked" | "unchecked">;
|
|
26
26
|
constructor();
|
|
27
27
|
protected toggle(): void;
|
|
@@ -33,5 +33,5 @@ export declare class ScCheckbox implements ControlValueAccessor {
|
|
|
33
33
|
setDisabledState(isDisabled: boolean): void;
|
|
34
34
|
protected onInteractionEvent(event: Event): void;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScCheckbox, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScCheckbox, "sc-checkbox", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "wrapperClassInput": { "alias": "wrapperClass"; "required": false; "isSignal": true; }; "checkboxClassInput": { "alias": "checkboxClass"; "required": false; "isSignal": true; }; "svgClassInput": { "alias": "svgClass"; "required": false; "isSignal": true; }; "labelClassInput": { "alias": "labelClass"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "indeterminateInput": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "checkedInput": { "alias": "checked"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCheckbox, "sc-checkbox", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "wrapperClassInput": { "alias": "wrapperClass"; "required": false; "isSignal": true; }; "checkboxClassInput": { "alias": "checkboxClass"; "required": false; "isSignal": true; }; "svgClassInput": { "alias": "svgClass"; "required": false; "isSignal": true; }; "labelClassInput": { "alias": "labelClass"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "indeterminateInput": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "checkedInput": { "alias": "checked"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; }, never, ["*"], true, never>;
|
|
37
37
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScClockPicker implements OnInit {
|
|
4
|
+
clockFace: ElementRef;
|
|
5
|
+
readonly initialTime: import("@angular/core").InputSignal<string | undefined>;
|
|
6
|
+
timeSelected: EventEmitter<string>;
|
|
7
|
+
hours: number[];
|
|
8
|
+
periods: string[];
|
|
9
|
+
selectedHour: number;
|
|
10
|
+
selectedMinute: number;
|
|
11
|
+
selectedPeriod: string;
|
|
12
|
+
isDragging: boolean;
|
|
13
|
+
isHourMode: boolean;
|
|
14
|
+
private readonly moveHandler;
|
|
15
|
+
private readonly endHandler;
|
|
16
|
+
constructor();
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
parseInitialTime(time: string): void;
|
|
19
|
+
startHourDrag(event: MouseEvent | TouchEvent): void;
|
|
20
|
+
startMinuteDrag(event: MouseEvent | TouchEvent): void;
|
|
21
|
+
private startDrag;
|
|
22
|
+
private handleMove;
|
|
23
|
+
private stopDrag;
|
|
24
|
+
getHourDegrees(): number;
|
|
25
|
+
getMinuteDegrees(): number;
|
|
26
|
+
selectPeriod(period: string): void;
|
|
27
|
+
formatTime(hour: number, minute: number, period: string): string;
|
|
28
|
+
emitTimeChange(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScClockPicker, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScClockPicker, "sc-clock-picker", never, { "initialTime": { "alias": "initialTime"; "required": false; "isSignal": true; }; }, { "timeSelected": "timeSelected"; }, never, never, true, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScClockPicker2 {
|
|
3
|
+
protected readonly isHourMode: import("@angular/core").WritableSignal<boolean>;
|
|
4
|
+
protected readonly selectedHour: import("@angular/core").WritableSignal<number>;
|
|
5
|
+
protected readonly selectedMinute: import("@angular/core").WritableSignal<number>;
|
|
6
|
+
protected numToDisplay(number: number): number;
|
|
7
|
+
protected readonly formattedHour: import("@angular/core").Signal<string>;
|
|
8
|
+
protected readonly formattedMinute: import("@angular/core").Signal<string>;
|
|
9
|
+
generateClockNumbers: import("@angular/core").Signal<{
|
|
10
|
+
number: number;
|
|
11
|
+
style: {
|
|
12
|
+
left: string;
|
|
13
|
+
top: string;
|
|
14
|
+
};
|
|
15
|
+
}[]>;
|
|
16
|
+
handleNumberClick: (num: number) => void;
|
|
17
|
+
getHandRotation: import("@angular/core").Signal<string>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScClockPicker2, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScClockPicker2, "sc-clock-picker2", never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { SafeHtml } from '@angular/platform-browser';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ScCodeHighlighter implements OnInit {
|
|
5
|
+
private readonly shikiService;
|
|
6
|
+
private readonly sanitizer;
|
|
7
|
+
code: import("@angular/core").InputSignal<string>;
|
|
8
|
+
language: import("@angular/core").InputSignal<string>;
|
|
9
|
+
theme: import("@angular/core").InputSignal<string>;
|
|
10
|
+
highlightedCode: import("@angular/core").WritableSignal<SafeHtml>;
|
|
11
|
+
ngOnInit(): Promise<void>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScCodeHighlighter, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCodeHighlighter, "sc-code-highlighter", never, { "code": { "alias": "code"; "required": true; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './code-highlighter';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Highlighter } from 'shiki';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ShikiService {
|
|
4
|
+
private highlighter;
|
|
5
|
+
initializeHighlighter(): Promise<Highlighter>;
|
|
6
|
+
highlightCode(code: string, language: string): Promise<string>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ShikiService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ShikiService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ScCombobox implements OnInit {
|
|
5
|
+
private readonly elementRef;
|
|
6
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
7
|
+
readonly label: import("@angular/core").InputSignal<string | undefined>;
|
|
8
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
9
|
+
readonly options: import("@angular/core").InputSignal<any[]>;
|
|
10
|
+
readonly optionTemplate: import("@angular/core").InputSignal<any>;
|
|
11
|
+
readonly loading: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
readonly labelKey: import("@angular/core").InputSignal<string>;
|
|
13
|
+
optionSelected: EventEmitter<any>;
|
|
14
|
+
search: EventEmitter<string>;
|
|
15
|
+
searchControl: FormControl<string | null>;
|
|
16
|
+
isOpen: boolean;
|
|
17
|
+
activeIndex: number;
|
|
18
|
+
filteredOptions: any[];
|
|
19
|
+
listboxId: string;
|
|
20
|
+
private closeTimeout?;
|
|
21
|
+
get activeId(): string;
|
|
22
|
+
constructor();
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
handleButtonInteraction(event: MouseEvent): void;
|
|
25
|
+
onButtonKeyDown(event: KeyboardEvent): void;
|
|
26
|
+
handleOptionClick(event: MouseEvent, option: any): void;
|
|
27
|
+
onOptionKeyDown(event: KeyboardEvent, option: any): void;
|
|
28
|
+
moveActiveIndex(delta: number): void;
|
|
29
|
+
setActiveIndex(index: number): void;
|
|
30
|
+
onClickOutside(event: Event): void;
|
|
31
|
+
toggleDropdown(): void;
|
|
32
|
+
open(): void;
|
|
33
|
+
close(): void;
|
|
34
|
+
onFocus(): void;
|
|
35
|
+
onBlur(): void;
|
|
36
|
+
onSearch(query: string): void;
|
|
37
|
+
filterOptions(): void;
|
|
38
|
+
selectOption(option: any): void;
|
|
39
|
+
getOptionLabel(option: any): string;
|
|
40
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
41
|
+
private scrollActiveOptionIntoView;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScCombobox, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScCombobox, "sc-combobox", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "labelKey": { "alias": "labelKey"; "required": false; "isSignal": true; }; }, { "optionSelected": "optionSelected"; "search": "search"; }, never, never, true, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './combobox';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ScUserModel {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
avatar: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ScCommentModel {
|
|
7
|
+
id: number;
|
|
8
|
+
author: string;
|
|
9
|
+
avatar: string;
|
|
10
|
+
content: string;
|
|
11
|
+
timestamp: Date;
|
|
12
|
+
likes: number;
|
|
13
|
+
replies: ScCommentModel[];
|
|
14
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ScCommentModel } from './comment-model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScComment {
|
|
4
|
+
comment: import("@angular/core").InputSignal<ScCommentModel>;
|
|
5
|
+
likeComment(comment: ScCommentModel): void;
|
|
6
|
+
toggleReplyForm(comment: ScCommentModel): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScComment, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScComment, "sc-comment", never, { "comment": { "alias": "comment"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { ScCommentModel, ScUserModel } from './comment-model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ScComments {
|
|
5
|
+
private readonly fb;
|
|
6
|
+
comments: import("@angular/core").InputSignal<ScCommentModel[]>;
|
|
7
|
+
currentUser: import("@angular/core").InputSignal<ScUserModel>;
|
|
8
|
+
commentForm: FormGroup;
|
|
9
|
+
constructor();
|
|
10
|
+
onSubmit(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScComments, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScComments, "sc-comments", never, { "comments": { "alias": "comments"; "required": true; "isSignal": true; }; "currentUser": { "alias": "currentUser"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { DialogRef } from '@angular/cdk/dialog';
|
|
2
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ScConfirmationDialogContent {
|
|
4
|
+
export declare class ScConfirmationDialogContent implements AfterViewInit {
|
|
4
5
|
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
6
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
-
readonly state
|
|
7
|
+
private readonly state;
|
|
8
|
+
private readonly response;
|
|
9
|
+
private readonly animationEnd;
|
|
7
10
|
readonly dialogRef: DialogRef<any, any>;
|
|
8
11
|
readonly data: any;
|
|
9
12
|
constructor();
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
close(b: boolean): void;
|
|
15
|
+
animationend(): void;
|
|
10
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScConfirmationDialogContent, never>;
|
|
11
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScConfirmationDialogContent, "sc-confirmation-dialog-content", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
18
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScDayView implements OnInit {
|
|
4
|
+
readonly date: import("@angular/core").InputSignal<Date>;
|
|
5
|
+
hoursInDay: number[];
|
|
6
|
+
constructor();
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
addEvent(hour: number): void;
|
|
9
|
+
isNow(hour: number): boolean;
|
|
10
|
+
onKeydown(event: KeyboardEvent, hour: number): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScDayView, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScDayView, "sc-day-view", never, { "date": { "alias": "date"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -1,7 +1,30 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ScFullCalendar {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
export declare class ScFullCalendar implements OnInit {
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
currentDate: Date;
|
|
7
|
+
currentMonth: number;
|
|
8
|
+
currentYear: number;
|
|
9
|
+
currentView: 'month' | 'week' | 'day';
|
|
10
|
+
daysInMonth: number[];
|
|
11
|
+
weekdays: string[];
|
|
12
|
+
events: {
|
|
13
|
+
date: string;
|
|
14
|
+
title: string;
|
|
15
|
+
}[];
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
generateCalendar(): void;
|
|
18
|
+
goToPreviousMonth(): void;
|
|
19
|
+
goToNextMonth(): void;
|
|
20
|
+
setView(view: 'month' | 'week' | 'day'): void;
|
|
21
|
+
formatDate(day: number | null): string;
|
|
22
|
+
addEvent(date: string): void;
|
|
23
|
+
isToday(day: number | null): boolean;
|
|
24
|
+
getEventsForDate(day: number | null): {
|
|
25
|
+
date: string;
|
|
26
|
+
title: string;
|
|
27
|
+
}[];
|
|
5
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScFullCalendar, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScFullCalendar, "sc-full-calendar", never, { "
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScFullCalendar, "sc-full-calendar", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
30
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScMobileCalendar implements OnInit {
|
|
4
|
+
currentDate: Date;
|
|
5
|
+
hoursInDay: number[];
|
|
6
|
+
events: {
|
|
7
|
+
[key: string]: string[];
|
|
8
|
+
};
|
|
9
|
+
constructor();
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
goToPreviousDay(): void;
|
|
12
|
+
goToNextDay(): void;
|
|
13
|
+
onKeydown(event: KeyboardEvent, direction: string): void;
|
|
14
|
+
addEvent(hour: number): void;
|
|
15
|
+
getEventsForTime(hour: number): string[];
|
|
16
|
+
isNow(hour: number): boolean;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScMobileCalendar, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScMobileCalendar, "sc-mobile-calendar", never, {}, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScWeekView implements OnInit {
|
|
4
|
+
currentDate: Date;
|
|
5
|
+
weekDays: Date[];
|
|
6
|
+
constructor();
|
|
7
|
+
ngOnInit(): void;
|
|
8
|
+
getWeekDays(date: Date): Date[];
|
|
9
|
+
goToPreviousWeek(): void;
|
|
10
|
+
goToNextWeek(): void;
|
|
11
|
+
onKeydown(event: KeyboardEvent, direction: string): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScWeekView, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScWeekView, "sc-week-view", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScImagePlaceholder {
|
|
3
|
+
private readonly placeholderService;
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
readonly width: import("@angular/core").InputSignal<number>;
|
|
7
|
+
readonly height: import("@angular/core").InputSignal<number>;
|
|
8
|
+
readonly alt: import("@angular/core").InputSignal<string>;
|
|
9
|
+
readonly text: import("@angular/core").InputSignal<string>;
|
|
10
|
+
protected readonly placeholderSrc: import("@angular/core").Signal<string>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScImagePlaceholder, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScImagePlaceholder, "img[sc-image-placeholder]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ImagePlaceholderService {
|
|
3
|
+
generatePlaceholder(width: number, height: number, text?: string): string;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePlaceholderService, never>;
|
|
5
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ImagePlaceholderService>;
|
|
6
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './image-placeholder';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ScAutoResizeInput implements ControlValueAccessor {
|
|
5
|
+
private readonly changeDetectorRef;
|
|
6
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
7
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
8
|
+
readonly input: import("@angular/core").Signal<ElementRef<HTMLInputElement>>;
|
|
9
|
+
readonly sizer: import("@angular/core").Signal<ElementRef<HTMLSpanElement>>;
|
|
10
|
+
readonly type: import("@angular/core").InputSignal<string>;
|
|
11
|
+
readonly placeholder: import("@angular/core").InputSignal<string>;
|
|
12
|
+
readonly minWidth: import("@angular/core").InputSignal<number>;
|
|
13
|
+
readonly maxWidth: import("@angular/core").InputSignal<number>;
|
|
14
|
+
readonly inputClass: import("@angular/core").InputSignal<string>;
|
|
15
|
+
readonly value: import("@angular/core").ModelSignal<string>;
|
|
16
|
+
protected readonly sizerWidth: import("@angular/core").WritableSignal<number>;
|
|
17
|
+
setSizerWidth(): void;
|
|
18
|
+
width: import("@angular/core").Signal<number>;
|
|
19
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
protected readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
21
|
+
constructor();
|
|
22
|
+
onChange: any;
|
|
23
|
+
onTouch: any;
|
|
24
|
+
getFont(): string;
|
|
25
|
+
onInput(event: Event): void;
|
|
26
|
+
onBlur(): void;
|
|
27
|
+
writeValue(value: string): void;
|
|
28
|
+
registerOnChange(fn: any): void;
|
|
29
|
+
registerOnTouched(fn: any): void;
|
|
30
|
+
setDisabledState(isDisabled: boolean): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScAutoResizeInput, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScAutoResizeInput, "sc-auto-resize-input", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; "inputClass": { "alias": "inputClass"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
33
|
+
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./plain-input";
|
|
2
3
|
export declare const scInputStyles: import("@angular/core").WritableSignal<string>;
|
|
3
4
|
export declare class ScInput {
|
|
4
5
|
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
6
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
7
|
+
readonly value: import("@angular/core").ModelSignal<string | undefined>;
|
|
6
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScInput, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScInput, "input[sc-input]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScInput, "input[sc-input]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*"], true, [{ directive: typeof i1.ScPlainInput; inputs: { "value": "value"; }; outputs: { "valueChange": "valueChange"; }; }]>;
|
|
8
10
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScPlainInput {
|
|
3
|
+
private readonly hostRef;
|
|
4
|
+
readonly value: import("@angular/core").ModelSignal<string | undefined>;
|
|
5
|
+
handleInput(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScPlainInput, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScPlainInput, "input[sc-plain-input]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './input-password';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ScInputPassword implements OnInit {
|
|
5
|
+
protected readonly id: string;
|
|
6
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
7
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
8
|
+
protected control: FormControl<any>;
|
|
9
|
+
private destroyRef;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
readonly password: import("@angular/core").WritableSignal<string>;
|
|
12
|
+
readonly isVisible: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
requirements: {
|
|
14
|
+
regex: RegExp;
|
|
15
|
+
text: string;
|
|
16
|
+
}[];
|
|
17
|
+
strength: import("@angular/core").Signal<{
|
|
18
|
+
met: boolean;
|
|
19
|
+
text: string;
|
|
20
|
+
}[]>;
|
|
21
|
+
strengthScore: import("@angular/core").Signal<number>;
|
|
22
|
+
protected readonly indicatorClass: import("@angular/core").Signal<string>;
|
|
23
|
+
strengthColor: import("@angular/core").Signal<"bg-border" | "bg-red-500" | "bg-orange-500" | "bg-amber-500" | "bg-emerald-500">;
|
|
24
|
+
strengthText: import("@angular/core").Signal<"Enter a password" | "Weak password" | "Medium password" | "Strong password">;
|
|
25
|
+
toggleVisibility(): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScInputPassword, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScInputPassword, "sc-input-password", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnChanges, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScCircularProgress implements OnInit, OnChanges {
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
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;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScCircularProgress, never>;
|
|
16
|
+
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
|
+
}
|