@ks-digital/designsystem-angular 0.0.1-alpha.67 → 0.0.1-alpha.69
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 +1 -1
- package/fesm2022/ks-digital-designsystem-angular-__internals.mjs +9 -9
- package/fesm2022/ks-digital-designsystem-angular-alert.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-breadcrumbs.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-button.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-card.mjs +6 -6
- package/fesm2022/ks-digital-designsystem-angular-chip.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-details.mjs +9 -9
- package/fesm2022/ks-digital-designsystem-angular-dialog.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-dropdown.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-error-summary.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-forms.mjs +24 -24
- package/fesm2022/ks-digital-designsystem-angular-heading.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-link.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-pagination.mjs +6 -6
- package/fesm2022/ks-digital-designsystem-angular-paragraph.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-popover.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-search.mjs +12 -12
- 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 +3 -3
- package/fesm2022/ks-digital-designsystem-angular-suggestion.mjs +142 -42
- package/fesm2022/ks-digital-designsystem-angular-suggestion.mjs.map +1 -1
- package/fesm2022/ks-digital-designsystem-angular-table.mjs +6 -6
- package/fesm2022/ks-digital-designsystem-angular-tabs.mjs +12 -12
- package/fesm2022/ks-digital-designsystem-angular-tag.mjs +3 -3
- package/fesm2022/ks-digital-designsystem-angular-validation-message.mjs +3 -3
- package/package.json +7 -2
- package/skeleton/README.md +3 -0
- package/types/ks-digital-designsystem-angular-skeleton.d.ts +18 -0
- package/types/ks-digital-designsystem-angular-suggestion.d.ts +42 -7
|
@@ -27,10 +27,10 @@ class TabsTab {
|
|
|
27
27
|
emitTabClicked(event) {
|
|
28
28
|
this.tabClicked.emit(event);
|
|
29
29
|
}
|
|
30
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
31
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TabsTab, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: TabsTab, isStandalone: true, selector: "ksd-tabs-tab", inputs: { tabId: { classPropertyName: "tabId", publicName: "tabId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { tabClicked: "tabClicked" }, viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["tpl"], descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.HostSize, inputs: ["data-size", "data-size"] }, { directive: i1.HostColor, inputs: ["data-color", "data-color"] }], ngImport: i0, template: ` <ng-template #tpl><ng-content /></ng-template> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
32
32
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TabsTab, decorators: [{
|
|
34
34
|
type: Component,
|
|
35
35
|
args: [{
|
|
36
36
|
selector: `ksd-tabs-tab`,
|
|
@@ -65,8 +65,8 @@ class Tabs {
|
|
|
65
65
|
this.tabClicked.emit(event);
|
|
66
66
|
tab.emitTabClicked(event);
|
|
67
67
|
}
|
|
68
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
69
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
68
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Tabs, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
69
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: Tabs, isStandalone: true, selector: "ksd-tabs", outputs: { tabClicked: "tabClicked" }, queries: [{ propertyName: "tabs", predicate: TabsTab, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.HostSize, inputs: ["data-size", "data-size"] }, { directive: i1.HostColor, inputs: ["data-color", "data-color"] }], ngImport: i0, template: `
|
|
70
70
|
<ds-tabs class="ds-tabs">
|
|
71
71
|
<ds-tablist>
|
|
72
72
|
@for (tab of tabs(); track tab; let index = $index) {
|
|
@@ -79,7 +79,7 @@ class Tabs {
|
|
|
79
79
|
</ds-tabs>
|
|
80
80
|
`, isInline: true, styles: [":host ::ng-deep :is(.ds-tabs [role=tab],.ds-tabs ds-tab,.ds-tabs u-tab)>:where(ng-icon,svg,img){font-size:1.25em;width:1em;height:1em}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
81
81
|
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Tabs, decorators: [{
|
|
83
83
|
type: Component,
|
|
84
84
|
args: [{ selector: `ksd-tabs`, imports: [NgTemplateOutlet], schemas: [CUSTOM_ELEMENTS_SCHEMA], template: `
|
|
85
85
|
<ds-tabs class="ds-tabs">
|
|
@@ -105,10 +105,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
105
105
|
}], propDecorators: { tabClicked: [{ type: i0.Output, args: ["tabClicked"] }], tabs: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => TabsTab), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
106
106
|
|
|
107
107
|
class TabsList {
|
|
108
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
109
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
108
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TabsList, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
109
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: TabsList, isStandalone: true, selector: "ksd-tabs-list", ngImport: i0, template: `<ng-content /> `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
110
110
|
}
|
|
111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TabsList, decorators: [{
|
|
112
112
|
type: Component,
|
|
113
113
|
args: [{
|
|
114
114
|
selector: `ksd-tabs-list`,
|
|
@@ -118,14 +118,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImpor
|
|
|
118
118
|
}] });
|
|
119
119
|
|
|
120
120
|
class TabsPanel {
|
|
121
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
122
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
121
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TabsPanel, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
122
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: TabsPanel, isStandalone: true, selector: "ksd-tabs-panel", ngImport: i0, template: `
|
|
123
123
|
<ds-tabpanel>
|
|
124
124
|
<ng-content />
|
|
125
125
|
</ds-tabpanel>
|
|
126
126
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
127
127
|
}
|
|
128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
128
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: TabsPanel, decorators: [{
|
|
129
129
|
type: Component,
|
|
130
130
|
args: [{
|
|
131
131
|
selector: `ksd-tabs-panel`,
|
|
@@ -10,10 +10,10 @@ class Tag {
|
|
|
10
10
|
* @default 'default'
|
|
11
11
|
*/
|
|
12
12
|
variant = input('default', { ...(ngDevMode ? { debugName: "variant" } : /* istanbul ignore next */ {}), alias: 'data-variant' });
|
|
13
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Tag, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: Tag, isStandalone: true, selector: "ksd-tag", inputs: { variant: { classPropertyName: "variant", publicName: "data-variant", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-variant": "variant()" }, classAttribute: "ds-tag" }, hostDirectives: [{ directive: i1.HostSize, inputs: ["data-size", "data-size"] }, { directive: i1.HostColor, inputs: ["data-color", "data-color"] }], ngImport: i0, template: ` <ng-content /> `, isInline: true, styles: [":host ::ng-deep>*{margin-inline-end:var(--ds-size-1)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
15
15
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: Tag, decorators: [{
|
|
17
17
|
type: Component,
|
|
18
18
|
args: [{ selector: 'ksd-tag', changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [
|
|
19
19
|
{
|
|
@@ -2,10 +2,10 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Directive } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
class ValidationMessage {
|
|
5
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ValidationMessage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: ValidationMessage, isStandalone: true, selector: "[ksd-validation-message]", host: { attributes: { "data-field": "validation" }, classAttribute: "ds-validation-message" }, ngImport: i0 });
|
|
7
7
|
}
|
|
8
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: ValidationMessage, decorators: [{
|
|
9
9
|
type: Directive,
|
|
10
10
|
args: [{
|
|
11
11
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "https://github.com/ks-no/designsystem.git",
|
|
6
6
|
"directory": "packages/angular"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.0.1-alpha.
|
|
8
|
+
"version": "0.0.1-alpha.69",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"private": false,
|
|
11
11
|
"publishConfig": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@angular/common": ">= 21.0.0 < 22.0.0",
|
|
20
|
-
"@angular/core": ">= 21.0.0 < 22.0.0"
|
|
20
|
+
"@angular/core": ">= 21.0.0 < 22.0.0",
|
|
21
|
+
"@angular/forms": ">= 21.0.0 < 22.0.0"
|
|
21
22
|
},
|
|
22
23
|
"module": "fesm2022/ks-digital-designsystem-angular.mjs",
|
|
23
24
|
"typings": "types/ks-digital-designsystem-angular.d.ts",
|
|
@@ -97,6 +98,10 @@
|
|
|
97
98
|
"types": "./types/ks-digital-designsystem-angular-search.d.ts",
|
|
98
99
|
"default": "./fesm2022/ks-digital-designsystem-angular-search.mjs"
|
|
99
100
|
},
|
|
101
|
+
"./skeleton": {
|
|
102
|
+
"types": "./types/ks-digital-designsystem-angular-skeleton.d.ts",
|
|
103
|
+
"default": "./fesm2022/ks-digital-designsystem-angular-skeleton.mjs"
|
|
104
|
+
},
|
|
100
105
|
"./spinner": {
|
|
101
106
|
"types": "./types/ks-digital-designsystem-angular-spinner.d.ts",
|
|
102
107
|
"default": "./fesm2022/ks-digital-designsystem-angular-spinner.mjs"
|
|
@@ -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 };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import * as _ks_digital_designsystem_angular_suggestion from '@ks-digital/designsystem-angular/suggestion';
|
|
1
2
|
import * as _angular_core from '@angular/core';
|
|
2
3
|
import { TemplateRef } from '@angular/core';
|
|
4
|
+
import { FormValueControl } from '@angular/forms/signals';
|
|
3
5
|
import * as i1 from '@ks-digital/designsystem-angular/__internals';
|
|
4
6
|
|
|
5
7
|
declare class SuggestionListEmpty {
|
|
@@ -46,6 +48,12 @@ type SuggestionItem = {
|
|
|
46
48
|
label: string;
|
|
47
49
|
value: string;
|
|
48
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;
|
|
49
57
|
type SuggestionFilterArgs = {
|
|
50
58
|
index: number;
|
|
51
59
|
label: string;
|
|
@@ -56,7 +64,8 @@ type SuggestionFilterArgs = {
|
|
|
56
64
|
};
|
|
57
65
|
type SuggestionFilter = (args: SuggestionFilterArgs) => boolean;
|
|
58
66
|
|
|
59
|
-
declare
|
|
67
|
+
declare const UNSET: unique symbol;
|
|
68
|
+
declare class Suggestion implements FormValueControl<SuggestionValue> {
|
|
60
69
|
/**
|
|
61
70
|
* Allows the user to select multiple items
|
|
62
71
|
*
|
|
@@ -76,22 +85,48 @@ declare class Suggestion {
|
|
|
76
85
|
*/
|
|
77
86
|
filter: _angular_core.InputSignal<boolean | SuggestionFilter>;
|
|
78
87
|
/**
|
|
79
|
-
*
|
|
88
|
+
* Current value, as primitive option values. Bound by Angular signal forms.
|
|
80
89
|
*
|
|
81
90
|
* @default undefined
|
|
82
91
|
*/
|
|
83
|
-
|
|
84
|
-
|
|
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[]>;
|
|
85
116
|
private readonly suggestionElement;
|
|
117
|
+
private readonly labels;
|
|
118
|
+
private readonly query;
|
|
86
119
|
protected readonly suggestionList: _angular_core.Signal<SuggestionList | undefined>;
|
|
87
120
|
constructor();
|
|
88
121
|
protected onSelect(event: Event): void;
|
|
89
|
-
protected
|
|
122
|
+
protected onFocusOut(event: FocusEvent): void;
|
|
90
123
|
protected onInput(event: Event): void;
|
|
124
|
+
private setValue;
|
|
125
|
+
private learnLabels;
|
|
91
126
|
private syncOptions;
|
|
92
127
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Suggestion, never>;
|
|
93
|
-
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; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; }, { "
|
|
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: {}; }]>;
|
|
94
129
|
}
|
|
95
130
|
|
|
96
131
|
export { Suggestion, SuggestionList, SuggestionListEmpty, SuggestionListOption };
|
|
97
|
-
export type { SuggestionFilter, SuggestionFilterArgs, SuggestionItem };
|
|
132
|
+
export type { SuggestionFilter, SuggestionFilterArgs, SuggestionItem, SuggestionSelected, SuggestionSelectedInput, SuggestionValue };
|