@semantic-components/ui 0.36.0 → 0.37.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 +2152 -1721
- package/fesm2022/semantic-components-ui.mjs.map +1 -1
- package/index.d.ts +5 -0
- package/lib/components/aspect-ratio/aspect-ratio.d.ts +5 -13
- package/lib/components/badge/badge.d.ts +4 -4
- package/lib/components/button/button-base.d.ts +7 -5
- package/lib/components/button/index.d.ts +0 -1
- package/lib/components/card/card-content.d.ts +3 -3
- package/lib/components/card/card-description.d.ts +3 -3
- package/lib/components/card/card-footer.d.ts +3 -3
- package/lib/components/card/card-header.d.ts +3 -3
- package/lib/components/card/card-title.d.ts +3 -3
- package/lib/components/card/card.d.ts +3 -3
- package/lib/components/checkbox/checkbox-container.d.ts +7 -0
- package/lib/components/checkbox/checkbox-field.d.ts +13 -0
- package/lib/components/checkbox/checkbox.d.ts +3 -8
- package/lib/components/checkbox/checkbox2.d.ts +30 -0
- package/lib/components/checkbox/index.d.ts +3 -0
- package/lib/components/code-highlighter/code-highlighter.d.ts +6 -7
- package/lib/components/color-picker/color-picker.d.ts +18 -0
- package/lib/components/color-picker/index.d.ts +1 -0
- package/lib/components/comments/comment.d.ts +1 -1
- package/lib/components/comments/comments.d.ts +3 -3
- package/lib/components/editor/editor.d.ts +1 -1
- package/lib/components/editor/index.d.ts +27 -0
- package/lib/components/fieldset/description.d.ts +7 -0
- package/lib/components/fieldset/error-message.d.ts +5 -0
- package/lib/components/fieldset/field.d.ts +13 -0
- package/lib/components/fieldset/fieldset.d.ts +7 -0
- package/lib/components/fieldset/index.d.ts +5 -0
- package/lib/components/fieldset/legend.d.ts +7 -0
- package/lib/components/input/input.d.ts +3 -1
- package/lib/components/label/label.d.ts +3 -1
- package/lib/components/link/link.d.ts +2 -1
- package/lib/components/paginator/index.d.ts +10 -0
- package/lib/components/paginator/page-size-select.d.ts +7 -0
- package/lib/components/paginator/pagination-ellipsis.d.ts +7 -0
- package/lib/components/paginator/pagination-first.d.ts +11 -0
- package/lib/components/paginator/pagination-last.d.ts +10 -0
- package/lib/components/paginator/pagination-link.d.ts +14 -0
- package/lib/components/paginator/pagination-list.d.ts +7 -0
- package/lib/components/paginator/pagination-next.d.ts +11 -0
- package/lib/components/paginator/pagination-previous.d.ts +12 -0
- package/lib/components/paginator/paginator-container.d.ts +7 -0
- package/lib/components/paginator/paginator.d.ts +8 -18
- package/lib/components/paginator/paginator.service.d.ts +27 -0
- package/lib/components/scroll-spy/index.d.ts +1 -0
- package/lib/components/scroll-spy/scroll-spy.d.ts +12 -0
- package/lib/components/slider/slider.d.ts +7 -9
- package/lib/components/switch/switch.d.ts +13 -13
- package/lib/components/toggle-switch/index.d.ts +1 -0
- package/lib/components/toggle-switch/toggle-switch.d.ts +7 -0
- package/lib/components/touch-area/index.d.ts +1 -0
- package/lib/components/touch-area/touch-area.d.ts +7 -0
- package/package.json +1 -1
- package/styles/shiki-styles.css +1 -1
- package/lib/components/button/cursor.d.ts +0 -10
- package/lib/components/paginator/page-item.d.ts +0 -10
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
2
|
import { ScPageEvent } from './page-event';
|
|
3
|
+
import { PaginatorService } from './paginator.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ScPaginator implements OnInit {
|
|
6
|
+
protected readonly paginatorService: PaginatorService;
|
|
6
7
|
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
7
8
|
protected readonly class: import("@angular/core").Signal<string>;
|
|
8
9
|
/** The one-based page index of the displayed list of items. Defaulted to 1. */
|
|
@@ -13,27 +14,16 @@ export declare class ScPaginator implements OnInit {
|
|
|
13
14
|
readonly pageSizeOptions: import("@angular/core").InputSignal<number[]>;
|
|
14
15
|
/** Number of items to display on a page. By default, set to 10. */
|
|
15
16
|
readonly pageSize: import("@angular/core").InputSignal<number>;
|
|
16
|
-
|
|
17
|
-
readonly
|
|
18
|
-
/** Whether to show the first/last buttons UI to the user. */
|
|
19
|
-
readonly showFirstLastLinks: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
readonly paginationLinkVariant: import("@angular/core").InputSignal<"outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined>;
|
|
18
|
+
readonly paginationActiveLinkVariant: import("@angular/core").InputSignal<"outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined>;
|
|
20
19
|
/** Event emitted when the paginator changes the page index. */
|
|
21
20
|
readonly pageChanged: import("@angular/core").OutputEmitterRef<ScPageEvent>;
|
|
22
21
|
constructor();
|
|
23
22
|
ngOnInit(): void;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
range
|
|
23
|
+
readonly firstItemPage: import("@angular/core").Signal<number>;
|
|
24
|
+
readonly lastItemPage: import("@angular/core").Signal<number>;
|
|
25
|
+
private range;
|
|
27
26
|
pageRanges: import("@angular/core").Signal<(number | "...")[]>;
|
|
28
|
-
firstItemPage: import("@angular/core").Signal<number>;
|
|
29
|
-
lastItemPage: import("@angular/core").Signal<number>;
|
|
30
|
-
firstPage(): void;
|
|
31
|
-
nextPage(): void;
|
|
32
|
-
isNextPageDisabled: import("@angular/core").Signal<boolean>;
|
|
33
|
-
lastPage(): void;
|
|
34
|
-
prevPage(): void;
|
|
35
|
-
isPrevPageDisabled: import("@angular/core").Signal<boolean>;
|
|
36
|
-
changePage(page: number): void;
|
|
37
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScPaginator, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScPaginator, "sc-paginator",
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScPaginator, "div[sc-paginator]", ["scPaginator"], { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "currentPage": { "alias": "currentPage"; "required": false; "isSignal": true; }; "totalSize": { "alias": "totalSize"; "required": true; "isSignal": true; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "paginationLinkVariant": { "alias": "paginationLinkVariant"; "required": false; "isSignal": true; }; "paginationActiveLinkVariant": { "alias": "paginationActiveLinkVariant"; "required": false; "isSignal": true; }; }, { "pageChanged": "pageChanged"; }, never, ["*"], true, never>;
|
|
39
29
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { ScPageEvent } from './page-event';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** The default page size if there is no page size and there are no provided page size options. */
|
|
5
|
+
export declare const DEFAULT_PAGE_SIZE = 10;
|
|
6
|
+
export declare class PaginatorService {
|
|
7
|
+
/** The one-based page index of the displayed list of items. Defaulted to 1. */
|
|
8
|
+
readonly currentPage: import("@angular/core").WritableSignal<number>;
|
|
9
|
+
/** The total number of items that are being paginated. */
|
|
10
|
+
readonly totalSize: import("@angular/core").WritableSignal<number>;
|
|
11
|
+
/** The set of provided page size options to display to the user. */
|
|
12
|
+
readonly pageSizeOptions: import("@angular/core").WritableSignal<number[]>;
|
|
13
|
+
/** Number of items to display on a page. By default, set to 10. */
|
|
14
|
+
readonly pageSize: import("@angular/core").WritableSignal<number>;
|
|
15
|
+
/** Event emitted when the paginator changes the page index. */
|
|
16
|
+
readonly pageChanged: import("@angular/core").WritableSignal<ScPageEvent>;
|
|
17
|
+
readonly pageSizeFormControl: FormControl<number | null>;
|
|
18
|
+
readonly numberOfPages: import("@angular/core").Signal<number>;
|
|
19
|
+
readonly firstItemPage: import("@angular/core").Signal<number>;
|
|
20
|
+
readonly lastItemPage: import("@angular/core").Signal<number>;
|
|
21
|
+
readonly isNextPageDisabled: import("@angular/core").Signal<boolean>;
|
|
22
|
+
readonly isPrevPageDisabled: import("@angular/core").Signal<boolean>;
|
|
23
|
+
readonly paginationLinkVariant: import("@angular/core").WritableSignal<"outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined>;
|
|
24
|
+
readonly paginationActiveLinkVariant: import("@angular/core").WritableSignal<"outline" | "link" | "primary" | "destructive" | "secondary" | "ghost" | null | undefined>;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginatorService, never>;
|
|
26
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PaginatorService>;
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './scroll-spy';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ScScrollSpy implements OnInit {
|
|
4
|
+
private readonly el;
|
|
5
|
+
spySections: string[];
|
|
6
|
+
sectionChange: EventEmitter<string>;
|
|
7
|
+
private observer;
|
|
8
|
+
constructor(el: ElementRef);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScScrollSpy, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ScScrollSpy, "[scScrollSpy]", never, { "spySections": { "alias": "spySections"; "required": false; }; }, { "sectionChange": "sectionChange"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ScSlider {
|
|
3
3
|
private readonly host;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
min: import("@angular/core").InputSignal<number>;
|
|
10
|
-
max: import("@angular/core").InputSignal<number>;
|
|
4
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
5
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
6
|
+
readonly value: import("@angular/core").ModelSignal<number>;
|
|
7
|
+
readonly min: import("@angular/core").InputSignal<number>;
|
|
8
|
+
readonly max: import("@angular/core").InputSignal<number>;
|
|
11
9
|
constructor();
|
|
12
|
-
handleInput(event: KeyboardEvent): void;
|
|
10
|
+
protected handleInput(event: KeyboardEvent): void;
|
|
13
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScSlider, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScSlider, "input[sc-slider]", never, { "
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSlider, "input[sc-slider]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, ["*"], true, never>;
|
|
15
13
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
1
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class ScSwitch implements ControlValueAccessor {
|
|
5
|
-
private readonly
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
checked: import("@angular/core").
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
private readonly changeDetectorRef;
|
|
5
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
6
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
7
|
+
readonly idInput: import("@angular/core").InputSignal<string>;
|
|
8
|
+
readonly id: import("@angular/core").WritableSignal<string>;
|
|
9
|
+
readonly checkedInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
10
|
+
protected readonly checked: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
readonly checkedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
12
|
+
readonly disabledInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
protected readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
+
protected readonly state: import("@angular/core").Signal<"checked" | "unchecked">;
|
|
15
|
+
protected toggle(): void;
|
|
16
16
|
writeValue(value: boolean): void;
|
|
17
17
|
onChange: any;
|
|
18
18
|
onTouch: any;
|
|
@@ -20,5 +20,5 @@ export declare class ScSwitch implements ControlValueAccessor {
|
|
|
20
20
|
registerOnTouched(fn: any): void;
|
|
21
21
|
setDisabledState?(isDisabled: boolean): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScSwitch, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScSwitch, "sc-switch", never, { "
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScSwitch, "input[sc-switch]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; "idInput": { "alias": "id"; "required": false; "isSignal": true; }; "checkedInput": { "alias": "checked"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "checkedChange": "checkedChange"; }, never, ["*"], true, never>;
|
|
24
24
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './toggle-switch';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScToggleSwitch {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScToggleSwitch, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScToggleSwitch, "button[sc-toggle-switch]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './touch-area';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ScTouchArea {
|
|
3
|
+
readonly classInput: import("@angular/core").InputSignal<string>;
|
|
4
|
+
protected readonly class: import("@angular/core").Signal<string>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ScTouchArea, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ScTouchArea, "span[sc-touch-area]", never, { "classInput": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
|
+
}
|
package/package.json
CHANGED
package/styles/shiki-styles.css
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ScCursor {
|
|
3
|
-
private readonly isPlatformBrowser;
|
|
4
|
-
private readonly hostRef;
|
|
5
|
-
private readonly renderer;
|
|
6
|
-
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7
|
-
constructor();
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScCursor, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ScCursor, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ScPageItem {
|
|
3
|
-
readonly currentPage: import("@angular/core").InputSignal<number>;
|
|
4
|
-
readonly page: import("@angular/core").InputSignal<number | "...">;
|
|
5
|
-
readonly pageChanged: import("@angular/core").OutputEmitterRef<number>;
|
|
6
|
-
protected readonly isActive: import("@angular/core").Signal<boolean>;
|
|
7
|
-
protected selectPage(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ScPageItem, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ScPageItem, "sc-page-item", never, { "currentPage": { "alias": "currentPage"; "required": true; "isSignal": true; }; "page": { "alias": "page"; "required": true; "isSignal": true; }; }, { "pageChanged": "pageChanged"; }, never, never, true, never>;
|
|
10
|
-
}
|