@ks-digital/designsystem-angular 0.0.1-alpha.7 → 0.0.1-alpha.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -11
- package/__internals/README.md +3 -0
- package/alert/README.md +3 -0
- package/breadcrumbs/README.md +3 -0
- package/button/README.md +3 -0
- package/card/README.md +3 -0
- package/details/README.md +3 -0
- package/dialog/README.md +3 -0
- package/dropdown/README.md +3 -0
- package/error-summary/README.md +3 -0
- package/fesm2022/ks-digital-designsystem-angular-__internals.mjs +82 -0
- package/fesm2022/ks-digital-designsystem-angular-__internals.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-alert.mjs +34 -0
- package/fesm2022/ks-digital-designsystem-angular-alert.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-breadcrumbs.mjs +51 -0
- package/fesm2022/ks-digital-designsystem-angular-breadcrumbs.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-button.mjs +74 -0
- package/fesm2022/ks-digital-designsystem-angular-button.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-card.mjs +86 -0
- package/fesm2022/ks-digital-designsystem-angular-card.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-chip.mjs +43 -0
- package/fesm2022/ks-digital-designsystem-angular-chip.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-details.mjs +64 -0
- package/fesm2022/ks-digital-designsystem-angular-details.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-dialog.mjs +48 -0
- package/fesm2022/ks-digital-designsystem-angular-dialog.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-dropdown.mjs +46 -0
- package/fesm2022/ks-digital-designsystem-angular-dropdown.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-error-summary.mjs +49 -0
- package/fesm2022/ks-digital-designsystem-angular-error-summary.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-forms.mjs +227 -0
- package/fesm2022/ks-digital-designsystem-angular-forms.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-heading.mjs +40 -0
- package/fesm2022/ks-digital-designsystem-angular-heading.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-link.mjs +31 -0
- package/fesm2022/ks-digital-designsystem-angular-link.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-pagination.mjs +143 -0
- package/fesm2022/ks-digital-designsystem-angular-pagination.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-paragraph.mjs +25 -0
- package/fesm2022/ks-digital-designsystem-angular-paragraph.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-popover.mjs +46 -0
- package/fesm2022/ks-digital-designsystem-angular-popover.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-search.mjs +159 -0
- package/fesm2022/ks-digital-designsystem-angular-search.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-skeleton.mjs +35 -0
- package/fesm2022/ks-digital-designsystem-angular-skeleton.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-spinner.mjs +104 -0
- package/fesm2022/ks-digital-designsystem-angular-spinner.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-suggestion.mjs +375 -0
- package/fesm2022/ks-digital-designsystem-angular-suggestion.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-table.mjs +105 -0
- package/fesm2022/ks-digital-designsystem-angular-table.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-tabs.mjs +148 -0
- package/fesm2022/ks-digital-designsystem-angular-tabs.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-tag.mjs +38 -0
- package/fesm2022/ks-digital-designsystem-angular-tag.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular-validation-message.mjs +25 -0
- package/fesm2022/ks-digital-designsystem-angular-validation-message.mjs.map +1 -0
- package/fesm2022/ks-digital-designsystem-angular.mjs +7 -0
- package/fesm2022/ks-digital-designsystem-angular.mjs.map +1 -0
- package/forms/README.md +3 -0
- package/heading/README.md +3 -0
- package/link/README.md +3 -0
- package/package.json +113 -28
- package/pagination/README.md +3 -0
- package/paragraph/README.md +3 -0
- package/popover/README.md +3 -0
- package/search/README.md +3 -0
- package/skeleton/README.md +3 -0
- package/spinner/README.md +3 -0
- package/suggestion/README.md +3 -0
- package/table/README.md +3 -0
- package/tabs/README.md +3 -0
- package/tag/README.md +3 -0
- package/types/ks-digital-designsystem-angular-__internals.d.ts +50 -0
- package/types/ks-digital-designsystem-angular-alert.d.ts +12 -0
- package/types/ks-digital-designsystem-angular-breadcrumbs.d.ts +13 -0
- package/types/ks-digital-designsystem-angular-button.d.ts +32 -0
- package/types/ks-digital-designsystem-angular-card.d.ts +24 -0
- package/types/ks-digital-designsystem-angular-chip.d.ts +15 -0
- package/types/ks-digital-designsystem-angular-details.d.ts +20 -0
- package/types/ks-digital-designsystem-angular-dialog.d.ts +18 -0
- package/types/ks-digital-designsystem-angular-dropdown.d.ts +13 -0
- package/types/ks-digital-designsystem-angular-error-summary.d.ts +14 -0
- package/types/ks-digital-designsystem-angular-forms.d.ts +81 -0
- package/types/ks-digital-designsystem-angular-heading.d.ts +19 -0
- package/types/ks-digital-designsystem-angular-link.d.ts +9 -0
- package/types/ks-digital-designsystem-angular-pagination.d.ts +58 -0
- package/types/ks-digital-designsystem-angular-paragraph.d.ts +8 -0
- package/types/ks-digital-designsystem-angular-popover.d.ts +13 -0
- package/types/ks-digital-designsystem-angular-search.d.ts +76 -0
- package/types/ks-digital-designsystem-angular-skeleton.d.ts +18 -0
- package/types/ks-digital-designsystem-angular-spinner.d.ts +23 -0
- package/types/ks-digital-designsystem-angular-suggestion.d.ts +132 -0
- package/types/ks-digital-designsystem-angular-table.d.ts +43 -0
- package/types/ks-digital-designsystem-angular-tabs.d.ts +65 -0
- package/types/ks-digital-designsystem-angular-tag.d.ts +15 -0
- package/types/ks-digital-designsystem-angular-validation-message.d.ts +8 -0
- package/types/ks-digital-designsystem-angular.d.ts +2 -0
- package/validation-message/README.md +3 -0
- package/dist/README.md +0 -43
- package/dist/fesm2022/ks-digital-designsystem-angular.mjs +0 -195
- package/dist/fesm2022/ks-digital-designsystem-angular.mjs.map +0 -1
- package/dist/index.d.ts +0 -75
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
3
|
+
|
|
4
|
+
declare class Chip {
|
|
5
|
+
/**
|
|
6
|
+
* Whether the chip is removable or not. If true, a remove icon will be displayed.
|
|
7
|
+
* If using this, you should add an aria-label as well, e.g "Slett {item}"
|
|
8
|
+
* @attribute data-removable
|
|
9
|
+
*/
|
|
10
|
+
dataRemovable: i0.InputSignal<boolean>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Chip, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Chip, "label[ksd-chip], button[ksd-chip]", never, { "dataRemovable": { "alias": "data-removable"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { Chip };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
3
|
+
|
|
4
|
+
declare class Details {
|
|
5
|
+
readonly dataVariant: i0.InputSignal<"default" | "tinted">;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Details, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Details, "details[ksd-details]", never, { "dataVariant": { "alias": "data-variant"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare class DetailsContent {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetailsContent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsContent, "ksd-details-content", never, {}, {}, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class DetailsSummary {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DetailsSummary, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DetailsSummary, "ksd-details-summary", never, {}, {}, never, ["*"], true, never>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export { Details, DetailsContent, DetailsSummary };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
3
|
+
|
|
4
|
+
declare class Dialog {
|
|
5
|
+
/** Controls where the dialog appears relative to the viewport edge. Useful for drawer/side-panel variants. */
|
|
6
|
+
readonly placement: _angular_core.InputSignal<"bottom" | "top" | "left" | "right" | undefined>;
|
|
7
|
+
/**
|
|
8
|
+
* Controls which interactions close the dialog.
|
|
9
|
+
* - `any` — closes on backdrop click or Escape key
|
|
10
|
+
* - `closerequest` — closes on Escape key only
|
|
11
|
+
* - `none` — the dialog cannot be closed by the user without an explicit close button
|
|
12
|
+
*/
|
|
13
|
+
readonly closedBy: _angular_core.InputSignal<"any" | "closerequest" | "none" | undefined>;
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Dialog, never>;
|
|
15
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Dialog, "dialog[ksd-dialog]", never, { "placement": { "alias": "data-placement"; "required": false; "isSignal": true; }; "closedBy": { "alias": "closedby"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Dialog };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
3
|
+
|
|
4
|
+
declare class Dropdown {
|
|
5
|
+
readonly autoPlacement: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6
|
+
readonly variant: _angular_core.InputSignal<"tinted" | "default">;
|
|
7
|
+
readonly placement: _angular_core.InputSignal<"bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start">;
|
|
8
|
+
readonly popover: _angular_core.InputSignal<"auto" | "manual">;
|
|
9
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Dropdown, never>;
|
|
10
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Dropdown, "[ksd-dropdown]", never, { "autoPlacement": { "alias": "autoPlacement"; "required": false; "isSignal": true; }; "variant": { "alias": "data-variant"; "required": false; "isSignal": true; }; "placement": { "alias": "data-placement"; "required": false; "isSignal": true; }; "popover": { "alias": "popover"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { Dropdown };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
3
|
+
|
|
4
|
+
declare class ErrorSummary {
|
|
5
|
+
protected id: i0.WritableSignal<string>;
|
|
6
|
+
private heading;
|
|
7
|
+
private el;
|
|
8
|
+
constructor();
|
|
9
|
+
focus(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorSummary, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ErrorSummary, "[ksd-error-summary]", never, {}, {}, ["heading"], ["*"], true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }]>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { ErrorSummary };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
3
|
+
import * as i1$1 from '@ks-digital/designsystem-angular/validation-message';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Use the Field component to connect inputs and labels
|
|
7
|
+
*/
|
|
8
|
+
declare class Field {
|
|
9
|
+
/**
|
|
10
|
+
* Preferred position input for toggle inputs (radio, checkbox, switch) in field.
|
|
11
|
+
* @default start
|
|
12
|
+
*/
|
|
13
|
+
dataPosition: i0.InputSignal<"start" | "end" | undefined>;
|
|
14
|
+
/**
|
|
15
|
+
* Legacy position input kept for backward compatibility.
|
|
16
|
+
* @deprecated Use data-position instead.
|
|
17
|
+
* @default start
|
|
18
|
+
*/
|
|
19
|
+
position: i0.InputSignal<"start" | "end" | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* Variant forwarded to ds-field.
|
|
22
|
+
*/
|
|
23
|
+
dataVariant: i0.InputSignal<"outline" | undefined>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Field, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Field, "ksd-field", never, { "dataPosition": { "alias": "data-position"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "dataVariant": { "alias": "data-variant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class FieldDescription {
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldDescription, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldDescription, "[ksd-field-description]", never, {}, {}, never, ["*"], true, never>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare class FieldError {
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldError, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldError, "ksd-error, [ksd-error]", never, {}, {}, never, ["*"], true, [{ directive: typeof i1$1.ValidationMessage; inputs: {}; outputs: {}; }]>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class Fieldset {
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Fieldset, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Fieldset, "fieldset[ksd-fieldset]", never, {}, {}, never, ["*"], true, never>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare class FieldsetDescription {
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsetDescription, never>;
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldsetDescription, "p[ksd-fieldset-description]", never, {}, {}, never, ["*"], true, never>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class FieldsetLegend {
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsetLegend, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldsetLegend, "legend[ksd-fieldset-legend]", never, {}, {}, never, ["*"], true, never>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare class Input {
|
|
54
|
+
/**
|
|
55
|
+
* The value of the input
|
|
56
|
+
*/
|
|
57
|
+
value: i0.WritableSignal<string | undefined>;
|
|
58
|
+
/**
|
|
59
|
+
* Whether the input is readonly
|
|
60
|
+
*/
|
|
61
|
+
readonly readonly: i0.InputSignalWithTransform<boolean, unknown>;
|
|
62
|
+
/**
|
|
63
|
+
* Disables element
|
|
64
|
+
*/
|
|
65
|
+
readonly disabled: i0.InputSignalWithTransform<boolean, unknown>;
|
|
66
|
+
/**
|
|
67
|
+
* Whether the element is invalid.
|
|
68
|
+
*/
|
|
69
|
+
readonly ariaInvalid: i0.InputSignalWithTransform<boolean, unknown>;
|
|
70
|
+
onClick(event: Event): void;
|
|
71
|
+
onInput(event: Event): void;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Input, never>;
|
|
73
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Input, "input[ksd-input], textarea[ksd-input], select[ksd-input]", never, { "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "ariaInvalid": { "alias": "aria-invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare class Label {
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Label, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Label, "ksd-label", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export { Field, FieldDescription, FieldError, Fieldset, FieldsetDescription, FieldsetLegend, Input, Label };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class Heading {
|
|
4
|
+
id: _angular_core.WritableSignal<string | undefined>;
|
|
5
|
+
/**
|
|
6
|
+
* Changes text sizing
|
|
7
|
+
* @default 'md'
|
|
8
|
+
*/
|
|
9
|
+
readonly dataSize: _angular_core.InputSignal<"2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined>;
|
|
10
|
+
/**
|
|
11
|
+
* Set the id of the heading
|
|
12
|
+
* @param id
|
|
13
|
+
*/
|
|
14
|
+
setId(id: string): void;
|
|
15
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Heading, never>;
|
|
16
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Heading, "h1[ksd-heading], h2[ksd-heading], h3[ksd-heading], h4[ksd-heading], h5[ksd-heading], h6[ksd-heading]", never, { "dataSize": { "alias": "data-size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { Heading };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
3
|
+
|
|
4
|
+
declare class Link {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Link, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Link, "a[ksd-link]", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { Link };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
3
|
+
|
|
4
|
+
interface PaginationPage {
|
|
5
|
+
page: number;
|
|
6
|
+
current: boolean;
|
|
7
|
+
key: string;
|
|
8
|
+
}
|
|
9
|
+
interface PaginationPages {
|
|
10
|
+
pages: PaginationPage[];
|
|
11
|
+
prev: number;
|
|
12
|
+
next: number;
|
|
13
|
+
}
|
|
14
|
+
declare class Pagination {
|
|
15
|
+
/**
|
|
16
|
+
* The current page
|
|
17
|
+
*/
|
|
18
|
+
readonly current: _angular_core.InputSignalWithTransform<number, string | number>;
|
|
19
|
+
/**
|
|
20
|
+
* The total number of pages
|
|
21
|
+
*/
|
|
22
|
+
readonly total: _angular_core.InputSignalWithTransform<number, string | number>;
|
|
23
|
+
/**
|
|
24
|
+
* Sets the screen reader label for the pagination
|
|
25
|
+
*/
|
|
26
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
27
|
+
/**
|
|
28
|
+
* How many pages to show. Default is 7
|
|
29
|
+
*/
|
|
30
|
+
readonly show: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
31
|
+
/**
|
|
32
|
+
* E.g if "?page=%d" all the links will set href to "?page=1", "?page=2".
|
|
33
|
+
*/
|
|
34
|
+
readonly href: _angular_core.InputSignal<string | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Emits the page number when a page is clicked
|
|
37
|
+
*/
|
|
38
|
+
readonly pageClicked: _angular_core.OutputEmitterRef<number>;
|
|
39
|
+
/**
|
|
40
|
+
* Exposes pagination data for consumer use
|
|
41
|
+
*/
|
|
42
|
+
readonly pages: _angular_core.Signal<PaginationPages>;
|
|
43
|
+
protected onClick(e: Event): void;
|
|
44
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Pagination, never>;
|
|
45
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Pagination, "ksd-pagination", never, { "current": { "alias": "current"; "required": true; "isSignal": true; }; "total": { "alias": "total"; "required": true; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "show": { "alias": "show"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; }, { "pageClicked": "pageClicked"; }, never, ["*"], true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class PaginationButton {
|
|
49
|
+
private el;
|
|
50
|
+
private destroyRef;
|
|
51
|
+
constructor();
|
|
52
|
+
private updateVariant;
|
|
53
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PaginationButton, never>;
|
|
54
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PaginationButton, "[ksdPaginationButton]", never, {}, {}, never, never, true, never>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { Pagination, PaginationButton };
|
|
58
|
+
export type { PaginationPage, PaginationPages };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class Paragraph {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Paragraph, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Paragraph, "p[ksd-paragraph]", never, {}, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { Paragraph };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
3
|
+
|
|
4
|
+
declare class Popover {
|
|
5
|
+
readonly autoPlacement: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6
|
+
readonly variant: _angular_core.InputSignal<"tinted" | "default">;
|
|
7
|
+
readonly placement: _angular_core.InputSignal<"bottom" | "bottom-end" | "bottom-start" | "left" | "left-end" | "left-start" | "right" | "right-end" | "right-start" | "top" | "top-end" | "top-start">;
|
|
8
|
+
readonly popover: _angular_core.InputSignal<"auto" | "manual">;
|
|
9
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Popover, never>;
|
|
10
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Popover, "[ksd-popover]", never, { "autoPlacement": { "alias": "autoPlacement"; "required": false; "isSignal": true; }; "variant": { "alias": "data-variant"; "required": false; "isSignal": true; }; "placement": { "alias": "data-placement"; "required": false; "isSignal": true; }; "popover": { "alias": "popover"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { Popover };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Search Component
|
|
6
|
+
*
|
|
7
|
+
* Use to contain the search input and buttons.
|
|
8
|
+
* Only `SearchInput` is required, while `SearchClear` and `SearchButton` are optional.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <div ksd-search>
|
|
12
|
+
* <input ksd-search-input />
|
|
13
|
+
* <button ksd-search-clear></button>
|
|
14
|
+
* <button ksd-search-button></button>
|
|
15
|
+
* </div>
|
|
16
|
+
*/
|
|
17
|
+
declare class Search {
|
|
18
|
+
private readonly input;
|
|
19
|
+
constructor();
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Search, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Search, "ksd-search", never, {}, {}, ["input"], ["[ksd-search-input]", "[ksd-search-clear]", "[ksd-search-button]"], true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Search button
|
|
26
|
+
*
|
|
27
|
+
* Used within Search to provide a submit button.
|
|
28
|
+
*
|
|
29
|
+
* @param {('primary' | 'secondary')} [variant] - Specify which button variant to use
|
|
30
|
+
* @param {string} [aria-label] - Aria label for the button
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
declare class SearchButton {
|
|
34
|
+
/**
|
|
35
|
+
* Specify which button variant to use
|
|
36
|
+
*
|
|
37
|
+
* @default 'primary'
|
|
38
|
+
*/
|
|
39
|
+
readonly variant: i0.InputSignal<"primary" | "secondary">;
|
|
40
|
+
/**
|
|
41
|
+
* Aria label for the button
|
|
42
|
+
*/
|
|
43
|
+
readonly ariaLabel: i0.InputSignal<string>;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchButton, never>;
|
|
45
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SearchButton, "button[ksd-search-button]", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Search clear button
|
|
50
|
+
*
|
|
51
|
+
* Used within Search to provide a clear button.
|
|
52
|
+
* ds-suggestion clears and refocuses the input, and fires an `input` event on it.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} [aria-label] - Aria label for the button.
|
|
55
|
+
*/
|
|
56
|
+
declare class SearchClear {
|
|
57
|
+
/**
|
|
58
|
+
* Aria label for the button
|
|
59
|
+
* @default 'Tøm'
|
|
60
|
+
*/
|
|
61
|
+
readonly ariaLabel: i0.InputSignal<string>;
|
|
62
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchClear, never>;
|
|
63
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SearchClear, "button[ksd-search-clear]", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Search input
|
|
68
|
+
*
|
|
69
|
+
* Used within Search to provide a search input.
|
|
70
|
+
*/
|
|
71
|
+
declare class SearchInput {
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchInput, never>;
|
|
73
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SearchInput, "input[ksd-search-input]", never, {}, {}, never, never, true, never>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { Search, SearchButton, SearchClear, SearchInput };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Skeleton is used to represent a draft of a page while the content loads.
|
|
5
|
+
*/
|
|
6
|
+
declare class Skeleton {
|
|
7
|
+
/**
|
|
8
|
+
* Specify which variant to use
|
|
9
|
+
* @default 'rectangle'
|
|
10
|
+
*/
|
|
11
|
+
readonly variant: _angular_core.InputSignal<"rectangle" | "circle" | "text">;
|
|
12
|
+
readonly isText: _angular_core.Signal<boolean>;
|
|
13
|
+
readonly dataText: _angular_core.Signal<"-" | null>;
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Skeleton, never>;
|
|
15
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Skeleton, "ksd-skeleton", never, { "variant": { "alias": "data-variant"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Skeleton };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
3
|
+
|
|
4
|
+
declare class Spinner {
|
|
5
|
+
/**
|
|
6
|
+
* Aria-label for the spinner
|
|
7
|
+
*/
|
|
8
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* Aria-hidden for the spinner
|
|
11
|
+
*/
|
|
12
|
+
readonly ariaHidden: _angular_core.InputSignalWithTransform<boolean | undefined, unknown>;
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Changes size for descendant Designsystemet components. Select from predefined sizes.
|
|
16
|
+
* @attribute data-size
|
|
17
|
+
*/
|
|
18
|
+
readonly dataSize: _angular_core.InputSignal<any>;
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Spinner, never>;
|
|
20
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Spinner, "ksd-spinner", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaHidden": { "alias": "aria-hidden"; "required": false; "isSignal": true; }; "dataSize": { "alias": "data-size"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { Spinner };
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import * as _ks_digital_designsystem_angular_suggestion from '@ks-digital/designsystem-angular/suggestion';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { TemplateRef } from '@angular/core';
|
|
4
|
+
import { FormValueControl } from '@angular/forms/signals';
|
|
5
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
6
|
+
|
|
7
|
+
declare class SuggestionListEmpty {
|
|
8
|
+
/**
|
|
9
|
+
* Hack to get the content from parent component so that we can
|
|
10
|
+
* keep the dom structure needed without additional host elements
|
|
11
|
+
*/
|
|
12
|
+
templateRef: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
13
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SuggestionListEmpty, never>;
|
|
14
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SuggestionListEmpty, "ksd-suggestion-list-empty", never, {}, {}, never, ["*"], true, never>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
declare class SuggestionListOption {
|
|
18
|
+
/**
|
|
19
|
+
* Hack to get the content from parent component so that we can
|
|
20
|
+
* keep the dom structure needed without additional host elements
|
|
21
|
+
*/
|
|
22
|
+
templateRef: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
23
|
+
value: _angular_core.InputSignal<string>;
|
|
24
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SuggestionListOption, never>;
|
|
25
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SuggestionListOption, "ksd-suggestion-list-option", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class SuggestionList {
|
|
29
|
+
/**
|
|
30
|
+
* Screen reader announcement template for singular result count.
|
|
31
|
+
*
|
|
32
|
+
* @default '%d forslag'
|
|
33
|
+
*/
|
|
34
|
+
readonly singular: _angular_core.InputSignal<string>;
|
|
35
|
+
/**
|
|
36
|
+
* Screen reader announcement template for plural result count.
|
|
37
|
+
*
|
|
38
|
+
* @default '%d forslag'
|
|
39
|
+
*/
|
|
40
|
+
readonly plural: _angular_core.InputSignal<string>;
|
|
41
|
+
readonly options: _angular_core.Signal<readonly SuggestionListOption[]>;
|
|
42
|
+
readonly empty: _angular_core.Signal<SuggestionListEmpty | undefined>;
|
|
43
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SuggestionList, never>;
|
|
44
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SuggestionList, "ksd-suggestion-list", never, { "singular": { "alias": "singular"; "required": false; "isSignal": true; }; "plural": { "alias": "plural"; "required": false; "isSignal": true; }; }, {}, ["options", "empty"], never, true, never>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
type SuggestionItem = {
|
|
48
|
+
label: string;
|
|
49
|
+
value: string;
|
|
50
|
+
};
|
|
51
|
+
/** Value of the `value` model and Angular signal forms. Always primitive. */
|
|
52
|
+
type SuggestionValue = string | string[] | undefined;
|
|
53
|
+
/** Accepted by `[selected]`; items and raw option values are both allowed. */
|
|
54
|
+
type SuggestionSelectedInput = SuggestionItem | SuggestionItem[] | string | string[] | null | undefined;
|
|
55
|
+
/** Emitted by `(selectedChange)`. Always resolved items. */
|
|
56
|
+
type SuggestionSelected = SuggestionItem | SuggestionItem[] | undefined;
|
|
57
|
+
type SuggestionFilterArgs = {
|
|
58
|
+
index: number;
|
|
59
|
+
label: string;
|
|
60
|
+
text: string;
|
|
61
|
+
value: string;
|
|
62
|
+
optionElement: HTMLOptionElement;
|
|
63
|
+
input: HTMLInputElement;
|
|
64
|
+
};
|
|
65
|
+
type SuggestionFilter = (args: SuggestionFilterArgs) => boolean;
|
|
66
|
+
|
|
67
|
+
declare const UNSET: unique symbol;
|
|
68
|
+
declare class Suggestion implements FormValueControl<SuggestionValue> {
|
|
69
|
+
/**
|
|
70
|
+
* Allows the user to select multiple items
|
|
71
|
+
*
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
75
|
+
/**
|
|
76
|
+
* Allows the user to create new items
|
|
77
|
+
*
|
|
78
|
+
* @default false
|
|
79
|
+
*/
|
|
80
|
+
creatable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
81
|
+
/**
|
|
82
|
+
* Filter options; boolean or a custom callback.
|
|
83
|
+
*
|
|
84
|
+
* @default true
|
|
85
|
+
*/
|
|
86
|
+
filter: _angular_core.InputSignal<boolean | SuggestionFilter>;
|
|
87
|
+
/**
|
|
88
|
+
* Current value, as primitive option values. Bound by Angular signal forms.
|
|
89
|
+
*
|
|
90
|
+
* @default undefined
|
|
91
|
+
*/
|
|
92
|
+
readonly value: _angular_core.ModelSignal<SuggestionValue>;
|
|
93
|
+
/**
|
|
94
|
+
* Controlled selection. Accepts items or raw option values.
|
|
95
|
+
*
|
|
96
|
+
* @default undefined
|
|
97
|
+
*/
|
|
98
|
+
readonly selected: _angular_core.InputSignal<SuggestionSelectedInput | typeof UNSET>;
|
|
99
|
+
/**
|
|
100
|
+
* Emits the resolved selection whenever the user changes it.
|
|
101
|
+
*/
|
|
102
|
+
readonly selectedChange: _angular_core.OutputEmitterRef<SuggestionSelected>;
|
|
103
|
+
/**
|
|
104
|
+
* Form-control dirty state.
|
|
105
|
+
*
|
|
106
|
+
* @default false
|
|
107
|
+
*/
|
|
108
|
+
readonly dirty: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
109
|
+
/**
|
|
110
|
+
* Whether the control has been touched. Synced with Angular signal forms.
|
|
111
|
+
*
|
|
112
|
+
* @default false
|
|
113
|
+
*/
|
|
114
|
+
readonly touched: _angular_core.ModelSignal<boolean>;
|
|
115
|
+
protected selectedArray: _angular_core.Signal<_ks_digital_designsystem_angular_suggestion.SuggestionItem[]>;
|
|
116
|
+
private readonly suggestionElement;
|
|
117
|
+
private readonly labels;
|
|
118
|
+
private readonly query;
|
|
119
|
+
protected readonly suggestionList: _angular_core.Signal<SuggestionList | undefined>;
|
|
120
|
+
constructor();
|
|
121
|
+
protected onSelect(event: Event): void;
|
|
122
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
123
|
+
protected onInput(event: Event): void;
|
|
124
|
+
private setValue;
|
|
125
|
+
private learnLabels;
|
|
126
|
+
private syncOptions;
|
|
127
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Suggestion, never>;
|
|
128
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Suggestion, "ksd-suggestion", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "creatable": { "alias": "creatable"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "dirty": { "alias": "dirty"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "selectedChange": "selectedChange"; "touched": "touchedChange"; }, ["suggestionList"], ["*"], true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export { Suggestion, SuggestionList, SuggestionListEmpty, SuggestionListOption };
|
|
132
|
+
export type { SuggestionFilter, SuggestionFilterArgs, SuggestionItem, SuggestionSelected, SuggestionSelectedInput, SuggestionValue };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class Table {
|
|
4
|
+
/**
|
|
5
|
+
* Will give the table a hover effect on rows
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
readonly hover: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
9
|
+
/**
|
|
10
|
+
* Will give the table a rounded border
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
readonly border: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
14
|
+
/**
|
|
15
|
+
* Will make the table header sticky
|
|
16
|
+
* @default false
|
|
17
|
+
*/
|
|
18
|
+
readonly stickyHeader: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
19
|
+
/**
|
|
20
|
+
* Will give the table zebra striping
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
readonly zebra: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Table, never>;
|
|
25
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Table, "table[ksd-table]", never, { "hover": { "alias": "data-hover"; "required": false; "isSignal": true; }; "border": { "alias": "data-border"; "required": false; "isSignal": true; }; "stickyHeader": { "alias": "data-sticky-header"; "required": false; "isSignal": true; }; "zebra": { "alias": "data-zebra"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare class TableHeaderCell {
|
|
29
|
+
/**
|
|
30
|
+
* If 'none' | 'ascending' | 'descending' will add a button to the header cell and change aria-sort and icon
|
|
31
|
+
* @default undefined
|
|
32
|
+
*/
|
|
33
|
+
readonly sort: _angular_core.InputSignal<"none" | "ascending" | "descending" | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* Emitted when the sort button is clicked
|
|
36
|
+
* @emits void
|
|
37
|
+
*/
|
|
38
|
+
readonly sortChange: _angular_core.OutputEmitterRef<void>;
|
|
39
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableHeaderCell, never>;
|
|
40
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableHeaderCell, "th[ksd-header-cell]", never, { "sort": { "alias": "aria-sort"; "required": false; "isSignal": true; }; }, { "sortChange": "sortChange"; }, never, ["*"], true, never>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { Table, TableHeaderCell };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Payload emitted from `tabClicked` on both `ksd-tabs` and `ksd-tabs-tab`.
|
|
7
|
+
*/
|
|
8
|
+
interface TabClickEvent {
|
|
9
|
+
/**
|
|
10
|
+
* Zero-based index of the clicked tab in its current render order.
|
|
11
|
+
*/
|
|
12
|
+
index: number;
|
|
13
|
+
/**
|
|
14
|
+
* Consumer-provided stable tab identifier from `tabId`.
|
|
15
|
+
*
|
|
16
|
+
* `undefined` when `tabId` is not provided.
|
|
17
|
+
*/
|
|
18
|
+
tabId: string | undefined;
|
|
19
|
+
}
|
|
20
|
+
declare class TabsTab {
|
|
21
|
+
/**
|
|
22
|
+
* Stable identifier for this tab.
|
|
23
|
+
*
|
|
24
|
+
* Recommended for logic such as analytics, routing and persisted state.
|
|
25
|
+
*
|
|
26
|
+
* If omitted, `tabClicked` emits `tabId: undefined`.
|
|
27
|
+
*/
|
|
28
|
+
readonly tabId: i0.InputSignal<string | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Emits tab click details when this tab is clicked.
|
|
31
|
+
*/
|
|
32
|
+
readonly tabClicked: i0.OutputEmitterRef<TabClickEvent>;
|
|
33
|
+
/**
|
|
34
|
+
* Hack to get the content of the tab from outside so that we can
|
|
35
|
+
* keep the dom structure needed without additional host elements
|
|
36
|
+
*/
|
|
37
|
+
templateRef: i0.Signal<TemplateRef<unknown> | undefined>;
|
|
38
|
+
emitTabClicked(event: TabClickEvent): void;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsTab, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsTab, "ksd-tabs-tab", never, { "tabId": { "alias": "tabId"; "required": false; "isSignal": true; }; }, { "tabClicked": "tabClicked"; }, never, ["*"], true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare class Tabs {
|
|
44
|
+
/**
|
|
45
|
+
* Emits tab click details when any tab is clicked.
|
|
46
|
+
*/
|
|
47
|
+
readonly tabClicked: i0.OutputEmitterRef<TabClickEvent>;
|
|
48
|
+
readonly tabs: i0.Signal<readonly TabsTab[]>;
|
|
49
|
+
protected onTabClick(index: number, tab: TabsTab): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Tabs, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Tabs, "ksd-tabs", never, {}, { "tabClicked": "tabClicked"; }, ["tabs"], ["ksd-tabs-panel"], true, [{ directive: typeof i1.HostSize; inputs: { "data-size": "data-size"; }; outputs: {}; }, { directive: typeof i1.HostColor; inputs: { "data-color": "data-color"; }; outputs: {}; }]>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare class TabsList {
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsList, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsList, "ksd-tabs-list", never, {}, {}, never, ["*"], true, never>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare class TabsPanel {
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsPanel, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabsPanel, "ksd-tabs-panel", never, {}, {}, never, ["*"], true, never>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { Tabs, TabsList, TabsPanel, TabsTab };
|
|
65
|
+
export type { TabClickEvent };
|