@ks-digital/designsystem-angular 0.0.1-alpha.8 → 0.0.1-alpha.80

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.
Files changed (104) hide show
  1. package/README.md +29 -12
  2. package/__internals/README.md +3 -0
  3. package/alert/README.md +3 -0
  4. package/breadcrumbs/README.md +3 -0
  5. package/button/README.md +3 -0
  6. package/card/README.md +3 -0
  7. package/details/README.md +3 -0
  8. package/dialog/README.md +3 -0
  9. package/dropdown/README.md +3 -0
  10. package/error-summary/README.md +3 -0
  11. package/fesm2022/ks-digital-designsystem-angular-__internals.mjs +152 -0
  12. package/fesm2022/ks-digital-designsystem-angular-__internals.mjs.map +1 -0
  13. package/fesm2022/ks-digital-designsystem-angular-alert.mjs +60 -0
  14. package/fesm2022/ks-digital-designsystem-angular-alert.mjs.map +1 -0
  15. package/fesm2022/ks-digital-designsystem-angular-breadcrumbs.mjs +87 -0
  16. package/fesm2022/ks-digital-designsystem-angular-breadcrumbs.mjs.map +1 -0
  17. package/fesm2022/ks-digital-designsystem-angular-button.mjs +200 -0
  18. package/fesm2022/ks-digital-designsystem-angular-button.mjs.map +1 -0
  19. package/fesm2022/ks-digital-designsystem-angular-card.mjs +137 -0
  20. package/fesm2022/ks-digital-designsystem-angular-card.mjs.map +1 -0
  21. package/fesm2022/ks-digital-designsystem-angular-chip.mjs +77 -0
  22. package/fesm2022/ks-digital-designsystem-angular-chip.mjs.map +1 -0
  23. package/fesm2022/ks-digital-designsystem-angular-details.mjs +149 -0
  24. package/fesm2022/ks-digital-designsystem-angular-details.mjs.map +1 -0
  25. package/fesm2022/ks-digital-designsystem-angular-dialog.mjs +107 -0
  26. package/fesm2022/ks-digital-designsystem-angular-dialog.mjs.map +1 -0
  27. package/fesm2022/ks-digital-designsystem-angular-dropdown.mjs +148 -0
  28. package/fesm2022/ks-digital-designsystem-angular-dropdown.mjs.map +1 -0
  29. package/fesm2022/ks-digital-designsystem-angular-error-summary.mjs +84 -0
  30. package/fesm2022/ks-digital-designsystem-angular-error-summary.mjs.map +1 -0
  31. package/fesm2022/ks-digital-designsystem-angular-forms.mjs +514 -0
  32. package/fesm2022/ks-digital-designsystem-angular-forms.mjs.map +1 -0
  33. package/fesm2022/ks-digital-designsystem-angular-heading.mjs +70 -0
  34. package/fesm2022/ks-digital-designsystem-angular-heading.mjs.map +1 -0
  35. package/fesm2022/ks-digital-designsystem-angular-link.mjs +60 -0
  36. package/fesm2022/ks-digital-designsystem-angular-link.mjs.map +1 -0
  37. package/fesm2022/ks-digital-designsystem-angular-pagination.mjs +471 -0
  38. package/fesm2022/ks-digital-designsystem-angular-pagination.mjs.map +1 -0
  39. package/fesm2022/ks-digital-designsystem-angular-paragraph.mjs +42 -0
  40. package/fesm2022/ks-digital-designsystem-angular-paragraph.mjs.map +1 -0
  41. package/fesm2022/ks-digital-designsystem-angular-popover.mjs +148 -0
  42. package/fesm2022/ks-digital-designsystem-angular-popover.mjs.map +1 -0
  43. package/fesm2022/ks-digital-designsystem-angular-search.mjs +281 -0
  44. package/fesm2022/ks-digital-designsystem-angular-search.mjs.map +1 -0
  45. package/fesm2022/ks-digital-designsystem-angular-skeleton.mjs +79 -0
  46. package/fesm2022/ks-digital-designsystem-angular-skeleton.mjs.map +1 -0
  47. package/fesm2022/ks-digital-designsystem-angular-spinner.mjs +183 -0
  48. package/fesm2022/ks-digital-designsystem-angular-spinner.mjs.map +1 -0
  49. package/fesm2022/ks-digital-designsystem-angular-suggestion.mjs +639 -0
  50. package/fesm2022/ks-digital-designsystem-angular-suggestion.mjs.map +1 -0
  51. package/fesm2022/ks-digital-designsystem-angular-table.mjs +248 -0
  52. package/fesm2022/ks-digital-designsystem-angular-table.mjs.map +1 -0
  53. package/fesm2022/ks-digital-designsystem-angular-tabs.mjs +325 -0
  54. package/fesm2022/ks-digital-designsystem-angular-tabs.mjs.map +1 -0
  55. package/fesm2022/ks-digital-designsystem-angular-tag.mjs +85 -0
  56. package/fesm2022/ks-digital-designsystem-angular-tag.mjs.map +1 -0
  57. package/fesm2022/ks-digital-designsystem-angular-validation-message.mjs +43 -0
  58. package/fesm2022/ks-digital-designsystem-angular-validation-message.mjs.map +1 -0
  59. package/fesm2022/ks-digital-designsystem-angular.mjs +2 -0
  60. package/fesm2022/ks-digital-designsystem-angular.mjs.map +1 -0
  61. package/forms/README.md +3 -0
  62. package/heading/README.md +3 -0
  63. package/link/README.md +3 -0
  64. package/package.json +114 -28
  65. package/pagination/README.md +3 -0
  66. package/paragraph/README.md +3 -0
  67. package/popover/README.md +3 -0
  68. package/search/README.md +3 -0
  69. package/skeleton/README.md +3 -0
  70. package/spinner/README.md +3 -0
  71. package/suggestion/README.md +3 -0
  72. package/table/README.md +3 -0
  73. package/tabs/README.md +3 -0
  74. package/tag/README.md +3 -0
  75. package/types/ks-digital-designsystem-angular-__internals.d.ts +64 -0
  76. package/types/ks-digital-designsystem-angular-alert.d.ts +21 -0
  77. package/types/ks-digital-designsystem-angular-breadcrumbs.d.ts +29 -0
  78. package/types/ks-digital-designsystem-angular-button.d.ts +67 -0
  79. package/types/ks-digital-designsystem-angular-card.d.ts +39 -0
  80. package/types/ks-digital-designsystem-angular-chip.d.ts +30 -0
  81. package/types/ks-digital-designsystem-angular-details.d.ts +34 -0
  82. package/types/ks-digital-designsystem-angular-dialog.d.ts +40 -0
  83. package/types/ks-digital-designsystem-angular-dropdown.d.ts +44 -0
  84. package/types/ks-digital-designsystem-angular-error-summary.d.ts +17 -0
  85. package/types/ks-digital-designsystem-angular-forms.d.ts +146 -0
  86. package/types/ks-digital-designsystem-angular-heading.d.ts +22 -0
  87. package/types/ks-digital-designsystem-angular-link.d.ts +18 -0
  88. package/types/ks-digital-designsystem-angular-pagination.d.ts +141 -0
  89. package/types/ks-digital-designsystem-angular-paragraph.d.ts +5 -0
  90. package/types/ks-digital-designsystem-angular-popover.d.ts +44 -0
  91. package/types/ks-digital-designsystem-angular-search.d.ts +100 -0
  92. package/types/ks-digital-designsystem-angular-skeleton.d.ts +21 -0
  93. package/types/ks-digital-designsystem-angular-spinner.d.ts +42 -0
  94. package/types/ks-digital-designsystem-angular-suggestion.d.ts +198 -0
  95. package/types/ks-digital-designsystem-angular-table.d.ts +68 -0
  96. package/types/ks-digital-designsystem-angular-tabs.d.ts +105 -0
  97. package/types/ks-digital-designsystem-angular-tag.d.ts +30 -0
  98. package/types/ks-digital-designsystem-angular-validation-message.d.ts +5 -0
  99. package/types/ks-digital-designsystem-angular.d.ts +2 -0
  100. package/validation-message/README.md +3 -0
  101. package/dist/README.md +0 -43
  102. package/dist/fesm2022/ks-digital-designsystem-angular.mjs +0 -195
  103. package/dist/fesm2022/ks-digital-designsystem-angular.mjs.map +0 -1
  104. package/dist/index.d.ts +0 -75
@@ -0,0 +1,84 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component, ElementRef, contentChild, effect, inject, signal } from "@angular/core";
3
+ import * as i1 from "@ks-digital/designsystem-angular/__internals";
4
+ import { HostSize, randomId } from "@ks-digital/designsystem-angular/__internals";
5
+ import { Heading } from "@ks-digital/designsystem-angular/heading";
6
+ var ErrorSummary = class ErrorSummary {
7
+ id = signal(randomId(), ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
8
+ heading = contentChild(Heading, ...ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []);
9
+ el = inject(ElementRef);
10
+ constructor() {
11
+ effect(() => {
12
+ if (this.heading()) this.heading()?.setId(this.id());
13
+ });
14
+ }
15
+ focus() {
16
+ this.el.nativeElement.focus();
17
+ }
18
+ static ɵfac = i0.ɵɵngDeclareFactory({
19
+ minVersion: "12.0.0",
20
+ version: "22.2.2",
21
+ ngImport: i0,
22
+ type: ErrorSummary,
23
+ deps: [],
24
+ target: i0.ɵɵFactoryTarget.Component
25
+ });
26
+ static ɵcmp = i0.ɵɵngDeclareComponent({
27
+ minVersion: "17.2.0",
28
+ version: "22.2.2",
29
+ type: ErrorSummary,
30
+ isStandalone: true,
31
+ selector: "[ksd-error-summary]",
32
+ host: {
33
+ attributes: { "tabindex": "-1" },
34
+ properties: { "attr.aria-labelledby": "id()" },
35
+ classAttribute: "ds-error-summary"
36
+ },
37
+ queries: [{
38
+ propertyName: "heading",
39
+ first: true,
40
+ predicate: Heading,
41
+ descendants: true,
42
+ isSignal: true
43
+ }],
44
+ hostDirectives: [{
45
+ directive: i1.HostSize,
46
+ inputs: ["data-size", "data-size"]
47
+ }],
48
+ ngImport: i0,
49
+ template: ` <ng-content /> `,
50
+ isInline: true,
51
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
52
+ });
53
+ };
54
+ i0.ɵɵngDeclareClassMetadata({
55
+ minVersion: "12.0.0",
56
+ version: "22.2.2",
57
+ ngImport: i0,
58
+ type: ErrorSummary,
59
+ decorators: [{
60
+ type: Component,
61
+ args: [{
62
+ selector: "[ksd-error-summary]",
63
+ changeDetection: ChangeDetectionStrategy.OnPush,
64
+ template: ` <ng-content /> `,
65
+ hostDirectives: [{
66
+ directive: HostSize,
67
+ inputs: ["data-size"]
68
+ }],
69
+ host: {
70
+ class: "ds-error-summary",
71
+ tabindex: "-1",
72
+ "[attr.aria-labelledby]": "id()"
73
+ }
74
+ }]
75
+ }],
76
+ ctorParameters: () => [],
77
+ propDecorators: { heading: [{
78
+ type: i0.ContentChild,
79
+ args: [i0.forwardRef(() => Heading), { isSignal: true }]
80
+ }] }
81
+ });
82
+ export { ErrorSummary };
83
+
84
+ //# sourceMappingURL=ks-digital-designsystem-angular-error-summary.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ks-digital-designsystem-angular-error-summary.mjs","names":[],"sources":["../../../../packages/angular/error-summary/src/error-summary.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n contentChild,\n effect,\n ElementRef,\n inject,\n signal,\n} from '@angular/core'\nimport {\n HostSize,\n randomId,\n} from '@ks-digital/designsystem-angular/__internals'\nimport { Heading } from '@ks-digital/designsystem-angular/heading'\n\n@Component({\n selector: '[ksd-error-summary]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: ` <ng-content /> `,\n hostDirectives: [\n {\n directive: HostSize,\n inputs: ['data-size'],\n },\n ],\n host: {\n class: 'ds-error-summary',\n tabindex: '-1',\n '[attr.aria-labelledby]': 'id()',\n },\n})\nexport class ErrorSummary {\n protected id = signal(randomId())\n private heading = contentChild(Heading)\n private el = inject(ElementRef)\n\n constructor() {\n effect(() => {\n if (this.heading()) {\n this.heading()?.setId(this.id())\n }\n })\n }\n\n focus() {\n this.el.nativeElement.focus()\n }\n}\n"],"mappings":";;;;;AA+BA,IAAa,eAAb,MAAa,aAAY;CACb,KAAK,OAAO,SAAQ,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CACzB,UAAU,aAAa,SAAQ,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAC/B,KAAK,OAAO,UAAU;CAE9B,cAAA;EACE,aAAY;GACV,IAAI,KAAK,QAAO,GACd,KAAK,QAAO,CAAE,EAAE,MAAM,KAAK,GAAE,CAAE;EAEnC,CAAC;CACH;CAEA,QAAK;EACH,KAAK,GAAG,cAAc,MAAK;CAC7B;CAfW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAY,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAZ,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAY,cAAA;EAAA,UAAA;EAAA,MAAA;GAAA,YAAA,EAAA,YAAA,KAAA;GAAA,YAAA,EAAA,wBAAA,OAAA;GAAA,gBAAA;EAAA;EAAA,SAAA,CAAA;GAAA,cAAA;GAAA,OAAA;GAAA,WAEQ;GAAO,aAAA;GAAA,UAAA;EAAA,CAAA;EAAA,gBAAA,CAAA;GAAA,WAAA,GAAA;GAAA,QAAA,CAAA,aAAA,WAAA;EAAA,CAAA;EAAA,UAAA;EAAA,UAf5B;EAAkB,UAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAajB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAY,YAAA,CAAA;EAhBxB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,iBAAiB,wBAAwB;GACzC,UAAU;GACV,gBAAgB,CACd;IACE,WAAW;IACX,QAAQ,CAAC,WAAW;GACrB,CACF;GACD,MAAM;IACJ,OAAO;IACP,UAAU;IACV,0BAA0B;GAC3B;EACF,CAAA;CAGgC,CAAA;CAAA,sBAAA,CAAA;CAAA,gBAAA,EAAA,SAAA,CAAA;EAAA,MAAA,GAAA;EAAA,MAAA,CAAA,GAAA,iBAAA,OAAO,GAAA,EAAA,UAAA,KAAA,CAAA;CAAA,CAAA,EAAA;AAAA,CAAA"}
@@ -0,0 +1,514 @@
1
+ import * as i0 from "@angular/core";
2
+ import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Component, Directive, booleanAttribute, input, signal } from "@angular/core";
3
+ import "@digdir/designsystemet-web/ds-field";
4
+ import * as i1$1 from "@ks-digital/designsystem-angular/__internals";
5
+ import { HostColor, HostSize } from "@ks-digital/designsystem-angular/__internals";
6
+ import * as i1 from "@ks-digital/designsystem-angular/validation-message";
7
+ import { ValidationMessage } from "@ks-digital/designsystem-angular/validation-message";
8
+ import "@digdir/designsystemet-web/fieldset";
9
+ import "@digdir/designsystemet-web/readonly";
10
+ var Field = class Field {
11
+ dataPosition = input(void 0, {
12
+ ...ngDevMode ? { debugName: "dataPosition" } : /* istanbul ignore next */ {},
13
+ alias: "data-position"
14
+ });
15
+ position = input(void 0, ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
16
+ dataVariant = input(void 0, {
17
+ ...ngDevMode ? { debugName: "dataVariant" } : /* istanbul ignore next */ {},
18
+ alias: "data-variant"
19
+ });
20
+ static ɵfac = i0.ɵɵngDeclareFactory({
21
+ minVersion: "12.0.0",
22
+ version: "22.2.2",
23
+ ngImport: i0,
24
+ type: Field,
25
+ deps: [],
26
+ target: i0.ɵɵFactoryTarget.Component
27
+ });
28
+ static ɵcmp = i0.ɵɵngDeclareComponent({
29
+ minVersion: "17.1.0",
30
+ version: "22.2.2",
31
+ type: Field,
32
+ isStandalone: true,
33
+ selector: "ksd-field",
34
+ inputs: {
35
+ dataPosition: {
36
+ classPropertyName: "dataPosition",
37
+ publicName: "data-position",
38
+ isSignal: true,
39
+ isRequired: false,
40
+ transformFunction: null
41
+ },
42
+ position: {
43
+ classPropertyName: "position",
44
+ publicName: "position",
45
+ isSignal: true,
46
+ isRequired: false,
47
+ transformFunction: null
48
+ },
49
+ dataVariant: {
50
+ classPropertyName: "dataVariant",
51
+ publicName: "data-variant",
52
+ isSignal: true,
53
+ isRequired: false,
54
+ transformFunction: null
55
+ }
56
+ },
57
+ hostDirectives: [{
58
+ directive: i1$1.HostSize,
59
+ inputs: ["data-size", "data-size"]
60
+ }, {
61
+ directive: i1$1.HostColor,
62
+ inputs: ["data-color", "data-color"]
63
+ }],
64
+ ngImport: i0,
65
+ template: `
66
+ <ds-field
67
+ class="ds-field"
68
+ [attr.data-position]="dataPosition() ?? position() ?? 'start'"
69
+ [attr.data-variant]="dataVariant()"
70
+ >
71
+ <ng-content />
72
+ </ds-field>
73
+ `,
74
+ isInline: true,
75
+ styles: [":host{display:grid}\n"],
76
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
77
+ });
78
+ };
79
+ i0.ɵɵngDeclareClassMetadata({
80
+ minVersion: "12.0.0",
81
+ version: "22.2.2",
82
+ ngImport: i0,
83
+ type: Field,
84
+ decorators: [{
85
+ type: Component,
86
+ args: [{
87
+ selector: "ksd-field",
88
+ changeDetection: ChangeDetectionStrategy.OnPush,
89
+ hostDirectives: [{
90
+ directive: HostSize,
91
+ inputs: ["data-size"]
92
+ }, {
93
+ directive: HostColor,
94
+ inputs: ["data-color"]
95
+ }],
96
+ template: `
97
+ <ds-field
98
+ class="ds-field"
99
+ [attr.data-position]="dataPosition() ?? position() ?? 'start'"
100
+ [attr.data-variant]="dataVariant()"
101
+ >
102
+ <ng-content />
103
+ </ds-field>
104
+ `,
105
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
106
+ styles: [":host{display:grid}\n"]
107
+ }]
108
+ }],
109
+ propDecorators: {
110
+ dataPosition: [{
111
+ type: i0.Input,
112
+ args: [{
113
+ isSignal: true,
114
+ alias: "data-position",
115
+ required: false
116
+ }]
117
+ }],
118
+ position: [{
119
+ type: i0.Input,
120
+ args: [{
121
+ isSignal: true,
122
+ alias: "position",
123
+ required: false
124
+ }]
125
+ }],
126
+ dataVariant: [{
127
+ type: i0.Input,
128
+ args: [{
129
+ isSignal: true,
130
+ alias: "data-variant",
131
+ required: false
132
+ }]
133
+ }]
134
+ }
135
+ });
136
+ var FieldDescription = class FieldDescription {
137
+ static ɵfac = i0.ɵɵngDeclareFactory({
138
+ minVersion: "12.0.0",
139
+ version: "22.2.2",
140
+ ngImport: i0,
141
+ type: FieldDescription,
142
+ deps: [],
143
+ target: i0.ɵɵFactoryTarget.Component
144
+ });
145
+ static ɵcmp = i0.ɵɵngDeclareComponent({
146
+ minVersion: "14.0.0",
147
+ version: "22.2.2",
148
+ type: FieldDescription,
149
+ isStandalone: true,
150
+ selector: "[ksd-field-description]",
151
+ host: { attributes: { "data-field": "description" } },
152
+ ngImport: i0,
153
+ template: `<ng-content />`,
154
+ isInline: true,
155
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
156
+ });
157
+ };
158
+ i0.ɵɵngDeclareClassMetadata({
159
+ minVersion: "12.0.0",
160
+ version: "22.2.2",
161
+ ngImport: i0,
162
+ type: FieldDescription,
163
+ decorators: [{
164
+ type: Component,
165
+ args: [{
166
+ selector: "[ksd-field-description]",
167
+ changeDetection: ChangeDetectionStrategy.OnPush,
168
+ host: { "data-field": "description" },
169
+ template: `<ng-content />`
170
+ }]
171
+ }]
172
+ });
173
+ var FieldError = class FieldError {
174
+ static ɵfac = i0.ɵɵngDeclareFactory({
175
+ minVersion: "12.0.0",
176
+ version: "22.2.2",
177
+ ngImport: i0,
178
+ type: FieldError,
179
+ deps: [],
180
+ target: i0.ɵɵFactoryTarget.Component
181
+ });
182
+ static ɵcmp = i0.ɵɵngDeclareComponent({
183
+ minVersion: "14.0.0",
184
+ version: "22.2.2",
185
+ type: FieldError,
186
+ isStandalone: true,
187
+ selector: "ksd-error, [ksd-error]",
188
+ hostDirectives: [{ directive: i1.ValidationMessage }],
189
+ ngImport: i0,
190
+ template: `<ng-content />`,
191
+ isInline: true,
192
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
193
+ });
194
+ };
195
+ i0.ɵɵngDeclareClassMetadata({
196
+ minVersion: "12.0.0",
197
+ version: "22.2.2",
198
+ ngImport: i0,
199
+ type: FieldError,
200
+ decorators: [{
201
+ type: Component,
202
+ args: [{
203
+ selector: "ksd-error, [ksd-error]",
204
+ changeDetection: ChangeDetectionStrategy.OnPush,
205
+ template: `<ng-content />`,
206
+ hostDirectives: [{ directive: ValidationMessage }]
207
+ }]
208
+ }]
209
+ });
210
+ var Fieldset = class Fieldset {
211
+ static ɵfac = i0.ɵɵngDeclareFactory({
212
+ minVersion: "12.0.0",
213
+ version: "22.2.2",
214
+ ngImport: i0,
215
+ type: Fieldset,
216
+ deps: [],
217
+ target: i0.ɵɵFactoryTarget.Component
218
+ });
219
+ static ɵcmp = i0.ɵɵngDeclareComponent({
220
+ minVersion: "14.0.0",
221
+ version: "22.2.2",
222
+ type: Fieldset,
223
+ isStandalone: true,
224
+ selector: "fieldset[ksd-fieldset]",
225
+ host: { classAttribute: "ds-fieldset" },
226
+ ngImport: i0,
227
+ template: ` <ng-content /> `,
228
+ isInline: true,
229
+ styles: [":host>::ng-deep ksd-field+ksd-field{margin-block-start:var(--ds-size-4)}\n"],
230
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
231
+ });
232
+ };
233
+ i0.ɵɵngDeclareClassMetadata({
234
+ minVersion: "12.0.0",
235
+ version: "22.2.2",
236
+ ngImport: i0,
237
+ type: Fieldset,
238
+ decorators: [{
239
+ type: Component,
240
+ args: [{
241
+ selector: "fieldset[ksd-fieldset]",
242
+ changeDetection: ChangeDetectionStrategy.OnPush,
243
+ host: { class: "ds-fieldset" },
244
+ template: ` <ng-content /> `,
245
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
246
+ styles: [":host>::ng-deep ksd-field+ksd-field{margin-block-start:var(--ds-size-4)}\n"]
247
+ }]
248
+ }]
249
+ });
250
+ var FieldsetDescription = class FieldsetDescription {
251
+ static ɵfac = i0.ɵɵngDeclareFactory({
252
+ minVersion: "12.0.0",
253
+ version: "22.2.2",
254
+ ngImport: i0,
255
+ type: FieldsetDescription,
256
+ deps: [],
257
+ target: i0.ɵɵFactoryTarget.Component
258
+ });
259
+ static ɵcmp = i0.ɵɵngDeclareComponent({
260
+ minVersion: "14.0.0",
261
+ version: "22.2.2",
262
+ type: FieldsetDescription,
263
+ isStandalone: true,
264
+ selector: "p[ksd-fieldset-description]",
265
+ ngImport: i0,
266
+ template: `<ng-content />`,
267
+ isInline: true,
268
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
269
+ });
270
+ };
271
+ i0.ɵɵngDeclareClassMetadata({
272
+ minVersion: "12.0.0",
273
+ version: "22.2.2",
274
+ ngImport: i0,
275
+ type: FieldsetDescription,
276
+ decorators: [{
277
+ type: Component,
278
+ args: [{
279
+ selector: "p[ksd-fieldset-description]",
280
+ changeDetection: ChangeDetectionStrategy.OnPush,
281
+ template: `<ng-content />`,
282
+ host: {}
283
+ }]
284
+ }]
285
+ });
286
+ var FieldsetLegend = class FieldsetLegend {
287
+ static ɵfac = i0.ɵɵngDeclareFactory({
288
+ minVersion: "12.0.0",
289
+ version: "22.2.2",
290
+ ngImport: i0,
291
+ type: FieldsetLegend,
292
+ deps: [],
293
+ target: i0.ɵɵFactoryTarget.Component
294
+ });
295
+ static ɵcmp = i0.ɵɵngDeclareComponent({
296
+ minVersion: "14.0.0",
297
+ version: "22.2.2",
298
+ type: FieldsetLegend,
299
+ isStandalone: true,
300
+ selector: "legend[ksd-fieldset-legend]",
301
+ host: { classAttribute: "ds-label" },
302
+ ngImport: i0,
303
+ template: ` <ng-content /> `,
304
+ isInline: true,
305
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
306
+ });
307
+ };
308
+ i0.ɵɵngDeclareClassMetadata({
309
+ minVersion: "12.0.0",
310
+ version: "22.2.2",
311
+ ngImport: i0,
312
+ type: FieldsetLegend,
313
+ decorators: [{
314
+ type: Component,
315
+ args: [{
316
+ selector: "legend[ksd-fieldset-legend]",
317
+ changeDetection: ChangeDetectionStrategy.OnPush,
318
+ host: { class: "ds-label" },
319
+ template: ` <ng-content /> `
320
+ }]
321
+ }]
322
+ });
323
+ var Input = class Input {
324
+ value = signal("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
325
+ readonly = input(false, {
326
+ ...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
327
+ transform: booleanAttribute
328
+ });
329
+ disabled = input(false, {
330
+ ...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
331
+ transform: booleanAttribute
332
+ });
333
+ ariaInvalid = input(false, {
334
+ ...ngDevMode ? { debugName: "ariaInvalid" } : /* istanbul ignore next */ {},
335
+ transform: booleanAttribute,
336
+ alias: "aria-invalid"
337
+ });
338
+ onClick(event) {
339
+ if (this.readonly()) event.preventDefault();
340
+ }
341
+ onInput(event) {
342
+ const val = event.target?.value;
343
+ this.value.set(val ?? "");
344
+ }
345
+ static ɵfac = i0.ɵɵngDeclareFactory({
346
+ minVersion: "12.0.0",
347
+ version: "22.2.2",
348
+ ngImport: i0,
349
+ type: Input,
350
+ deps: [],
351
+ target: i0.ɵɵFactoryTarget.Directive
352
+ });
353
+ static ɵdir = i0.ɵɵngDeclareDirective({
354
+ minVersion: "17.1.0",
355
+ version: "22.2.2",
356
+ type: Input,
357
+ isStandalone: true,
358
+ selector: "input[ksd-input], textarea[ksd-input], select[ksd-input]",
359
+ inputs: {
360
+ readonly: {
361
+ classPropertyName: "readonly",
362
+ publicName: "readonly",
363
+ isSignal: true,
364
+ isRequired: false,
365
+ transformFunction: null
366
+ },
367
+ disabled: {
368
+ classPropertyName: "disabled",
369
+ publicName: "disabled",
370
+ isSignal: true,
371
+ isRequired: false,
372
+ transformFunction: null
373
+ },
374
+ ariaInvalid: {
375
+ classPropertyName: "ariaInvalid",
376
+ publicName: "aria-invalid",
377
+ isSignal: true,
378
+ isRequired: false,
379
+ transformFunction: null
380
+ }
381
+ },
382
+ host: {
383
+ listeners: {
384
+ "click": "onClick($event)",
385
+ "input": "onInput($event)"
386
+ },
387
+ properties: {
388
+ "attr.readonly": "readonly() ? true : null",
389
+ "attr.disabled": "disabled() ? true : null",
390
+ "attr.aria-invalid": "ariaInvalid() ? true : null"
391
+ },
392
+ classAttribute: "ds-input"
393
+ },
394
+ hostDirectives: [{
395
+ directive: i1$1.HostSize,
396
+ inputs: ["data-size", "data-size"]
397
+ }, {
398
+ directive: i1$1.HostColor,
399
+ inputs: ["data-color", "data-color"]
400
+ }],
401
+ ngImport: i0
402
+ });
403
+ };
404
+ i0.ɵɵngDeclareClassMetadata({
405
+ minVersion: "12.0.0",
406
+ version: "22.2.2",
407
+ ngImport: i0,
408
+ type: Input,
409
+ decorators: [{
410
+ type: Directive,
411
+ args: [{
412
+ selector: "input[ksd-input], textarea[ksd-input], select[ksd-input]",
413
+ hostDirectives: [{
414
+ directive: HostSize,
415
+ inputs: ["data-size"]
416
+ }, {
417
+ directive: HostColor,
418
+ inputs: ["data-color"]
419
+ }],
420
+ host: {
421
+ class: "ds-input",
422
+ "[attr.readonly]": "readonly() ? true : null",
423
+ "[attr.disabled]": "disabled() ? true : null",
424
+ "[attr.aria-invalid]": "ariaInvalid() ? true : null",
425
+ "(click)": "onClick($event)",
426
+ "(input)": "onInput($event)"
427
+ }
428
+ }]
429
+ }],
430
+ propDecorators: {
431
+ readonly: [{
432
+ type: i0.Input,
433
+ args: [{
434
+ isSignal: true,
435
+ alias: "readonly",
436
+ required: false
437
+ }]
438
+ }],
439
+ disabled: [{
440
+ type: i0.Input,
441
+ args: [{
442
+ isSignal: true,
443
+ alias: "disabled",
444
+ required: false
445
+ }]
446
+ }],
447
+ ariaInvalid: [{
448
+ type: i0.Input,
449
+ args: [{
450
+ isSignal: true,
451
+ alias: "aria-invalid",
452
+ required: false
453
+ }]
454
+ }]
455
+ }
456
+ });
457
+ var Label = class Label {
458
+ static ɵfac = i0.ɵɵngDeclareFactory({
459
+ minVersion: "12.0.0",
460
+ version: "22.2.2",
461
+ ngImport: i0,
462
+ type: Label,
463
+ deps: [],
464
+ target: i0.ɵɵFactoryTarget.Component
465
+ });
466
+ static ɵcmp = i0.ɵɵngDeclareComponent({
467
+ minVersion: "14.0.0",
468
+ version: "22.2.2",
469
+ type: Label,
470
+ isStandalone: true,
471
+ selector: "ksd-label",
472
+ hostDirectives: [{
473
+ directive: i1$1.HostSize,
474
+ inputs: ["data-size", "data-size"]
475
+ }, {
476
+ directive: i1$1.HostColor,
477
+ inputs: ["data-color", "data-color"]
478
+ }],
479
+ ngImport: i0,
480
+ template: `
481
+ <!-- eslint-disable @angular-eslint/template/label-has-associated-control -- Fieldobserver handles binding the label to the input -->
482
+ <label class="ds-label"><ng-content /></label>
483
+ `,
484
+ isInline: true,
485
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
486
+ });
487
+ };
488
+ i0.ɵɵngDeclareClassMetadata({
489
+ minVersion: "12.0.0",
490
+ version: "22.2.2",
491
+ ngImport: i0,
492
+ type: Label,
493
+ decorators: [{
494
+ type: Component,
495
+ args: [{
496
+ selector: "ksd-label",
497
+ changeDetection: ChangeDetectionStrategy.OnPush,
498
+ hostDirectives: [{
499
+ directive: HostSize,
500
+ inputs: ["data-size"]
501
+ }, {
502
+ directive: HostColor,
503
+ inputs: ["data-color"]
504
+ }],
505
+ template: `
506
+ <!-- eslint-disable @angular-eslint/template/label-has-associated-control -- Fieldobserver handles binding the label to the input -->
507
+ <label class="ds-label"><ng-content /></label>
508
+ `
509
+ }]
510
+ }]
511
+ });
512
+ export { Field, FieldDescription, FieldError, Fieldset, FieldsetDescription, FieldsetLegend, Input, Label };
513
+
514
+ //# sourceMappingURL=ks-digital-designsystem-angular-forms.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ks-digital-designsystem-angular-forms.mjs","names":["i1","i1","i1"],"sources":["../../../../packages/angular/forms/src/field/field.ts","../../../../packages/angular/forms/src/field/field-description.ts","../../../../packages/angular/forms/src/field/field-error.ts","../../../../packages/angular/forms/src/fieldset/fieldset.ts","../../../../packages/angular/forms/src/fieldset/fieldset-description.ts","../../../../packages/angular/forms/src/fieldset/fieldset-legend.ts","../../../../packages/angular/forms/src/input/input.ts","../../../../packages/angular/forms/src/label/label.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n input,\n} from '@angular/core'\nimport '@digdir/designsystemet-web/ds-field'\nimport {\n HostColor,\n HostSize,\n} from '@ks-digital/designsystem-angular/__internals'\n\n/**\n * Use the Field component to connect inputs and labels\n */\n@Component({\n selector: 'ksd-field',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: HostSize,\n inputs: ['data-size'],\n },\n {\n directive: HostColor,\n inputs: ['data-color'],\n },\n ],\n template: `\n <ds-field\n class=\"ds-field\"\n [attr.data-position]=\"dataPosition() ?? position() ?? 'start'\"\n [attr.data-variant]=\"dataVariant()\"\n >\n <ng-content />\n </ds-field>\n `,\n styles: `\n :host {\n display: grid;\n }\n `,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class Field {\n /**\n * Preferred position input for toggle inputs (radio, checkbox, switch) in field.\n * @default start\n */\n dataPosition = input<'start' | 'end' | undefined>(undefined, {\n alias: 'data-position',\n })\n\n /**\n * Legacy position input kept for backward compatibility.\n * @deprecated Use data-position instead.\n * @default start\n */\n position = input<'start' | 'end' | undefined>(undefined)\n\n /**\n * Variant forwarded to ds-field.\n */\n dataVariant = input<'outline' | undefined>(undefined, {\n alias: 'data-variant',\n })\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core'\n\n@Component({\n selector: '[ksd-field-description]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'data-field': 'description',\n },\n template: `<ng-content />`,\n})\nexport class FieldDescription {}\n","import { ChangeDetectionStrategy, Component } from '@angular/core'\nimport { ValidationMessage } from '@ks-digital/designsystem-angular/validation-message'\n\n@Component({\n selector: 'ksd-error, [ksd-error]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n hostDirectives: [\n {\n directive: ValidationMessage,\n },\n ],\n})\nexport class FieldError {}\n","import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n} from '@angular/core'\nimport '@digdir/designsystemet-web/fieldset'\n\n@Component({\n selector: 'fieldset[ksd-fieldset]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ds-fieldset',\n },\n template: ` <ng-content /> `,\n styles: `\n :host > ::ng-deep ksd-field + ksd-field {\n margin-block-start: var(--ds-size-4);\n }\n `,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class Fieldset {}\n","import { ChangeDetectionStrategy, Component } from '@angular/core'\n\n@Component({\n selector: 'p[ksd-fieldset-description]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {},\n})\nexport class FieldsetDescription {}\n","import { ChangeDetectionStrategy, Component } from '@angular/core'\n\n@Component({\n selector: 'legend[ksd-fieldset-legend]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'ds-label',\n },\n template: ` <ng-content /> `,\n})\nexport class FieldsetLegend {}\n","import { booleanAttribute, Directive, input, signal } from '@angular/core'\nimport '@digdir/designsystemet-web/readonly'\nimport {\n HostColor,\n HostSize,\n} from '@ks-digital/designsystem-angular/__internals'\n\n@Directive({\n // eslint-disable-next-line @angular-eslint/directive-selector\n selector: 'input[ksd-input], textarea[ksd-input], select[ksd-input]',\n hostDirectives: [\n {\n directive: HostSize,\n inputs: ['data-size'],\n },\n {\n directive: HostColor,\n inputs: ['data-color'],\n },\n ],\n host: {\n class: 'ds-input',\n '[attr.readonly]': 'readonly() ? true : null',\n '[attr.disabled]': 'disabled() ? true : null',\n '[attr.aria-invalid]': 'ariaInvalid() ? true : null',\n '(click)': 'onClick($event)',\n '(input)': 'onInput($event)',\n },\n})\nexport class Input {\n /**\n * The value of the input\n */\n value = signal<string | undefined>('')\n\n /**\n * Whether the input is readonly\n */\n readonly readonly = input(false, { transform: booleanAttribute })\n\n /**\n * Disables element\n */\n readonly disabled = input(false, { transform: booleanAttribute })\n\n /**\n * Whether the element is invalid.\n */\n readonly ariaInvalid = input(false, {\n transform: booleanAttribute,\n alias: 'aria-invalid',\n })\n\n onClick(event: Event) {\n if (this.readonly()) {\n event.preventDefault()\n }\n }\n\n onInput(event: Event) {\n const target = event.target as\n | HTMLInputElement\n | HTMLTextAreaElement\n | HTMLSelectElement\n | null\n const val = target?.value\n this.value.set(val ?? '')\n }\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core'\nimport {\n HostColor,\n HostSize,\n} from '@ks-digital/designsystem-angular/__internals'\n\n@Component({\n selector: 'ksd-label',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [\n {\n directive: HostSize,\n inputs: ['data-size'],\n },\n {\n directive: HostColor,\n inputs: ['data-color'],\n },\n ],\n template: `\n <!-- eslint-disable @angular-eslint/template/label-has-associated-control -- Fieldobserver handles binding the label to the input -->\n <label class=\"ds-label\"><ng-content /></label>\n `,\n})\nexport class Label {}\n"],"mappings":";;;;;;;;;AA4CA,IAAa,QAAb,MAAa,MAAK;CAKhB,eAAe,MAAmC,QAAS;EAA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A,SAAA;EAAA,UAAA;EAAA,MAAA;EAAK,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAL,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAK,cAAA;EAAA,UAAA;EAAA,gBAAA,CAAA;GAAA,WAAAC,KAAA;GAAA,QAAA,CAAA,aAAA,WAAA;EAAA,GAAA;GAAA,WAAAA,KAAA;GAAA,QAAA,CAAA,cAAA,YAAA;EAAA,CAAA;EAAA,UAAA;EAAA,UALN;;;;EAGT,UAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAEU,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAK,YAAA,CAAA;EAlBjB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,iBAAiB,wBAAwB;GACzC,gBAAgB,CACd;IACE,WAAW;IACX,QAAQ,CAAC,WAAW;GACrB,GACD;IACE,WAAW;IACX,QAAQ,CAAC,YAAY;GACtB,CACF;GACD,UAAU;;;;EAIX,CAAA"}
@@ -0,0 +1,70 @@
1
+ import * as i0 from "@angular/core";
2
+ import { Directive, input, signal } from "@angular/core";
3
+ var Heading = class Heading {
4
+ id = signal(void 0, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
5
+ dataSize = input(void 0, {
6
+ ...ngDevMode ? { debugName: "dataSize" } : /* istanbul ignore next */ {},
7
+ alias: "data-size"
8
+ });
9
+ setId(id) {
10
+ this.id.set(id);
11
+ }
12
+ static ɵfac = i0.ɵɵngDeclareFactory({
13
+ minVersion: "12.0.0",
14
+ version: "22.2.2",
15
+ ngImport: i0,
16
+ type: Heading,
17
+ deps: [],
18
+ target: i0.ɵɵFactoryTarget.Directive
19
+ });
20
+ static ɵdir = i0.ɵɵngDeclareDirective({
21
+ minVersion: "17.1.0",
22
+ version: "22.2.2",
23
+ type: Heading,
24
+ isStandalone: true,
25
+ selector: "h1[ksd-heading], h2[ksd-heading], h3[ksd-heading], h4[ksd-heading], h5[ksd-heading], h6[ksd-heading]",
26
+ inputs: { dataSize: {
27
+ classPropertyName: "dataSize",
28
+ publicName: "data-size",
29
+ isSignal: true,
30
+ isRequired: false,
31
+ transformFunction: null
32
+ } },
33
+ host: {
34
+ properties: {
35
+ "attr.data-size": "dataSize() || null",
36
+ "attr.id": "id() || null"
37
+ },
38
+ classAttribute: "ds-heading"
39
+ },
40
+ ngImport: i0
41
+ });
42
+ };
43
+ i0.ɵɵngDeclareClassMetadata({
44
+ minVersion: "12.0.0",
45
+ version: "22.2.2",
46
+ ngImport: i0,
47
+ type: Heading,
48
+ decorators: [{
49
+ type: Directive,
50
+ args: [{
51
+ selector: "h1[ksd-heading], h2[ksd-heading], h3[ksd-heading], h4[ksd-heading], h5[ksd-heading], h6[ksd-heading]",
52
+ host: {
53
+ class: "ds-heading",
54
+ "[attr.data-size]": "dataSize() || null",
55
+ "[attr.id]": "id() || null"
56
+ }
57
+ }]
58
+ }],
59
+ propDecorators: { dataSize: [{
60
+ type: i0.Input,
61
+ args: [{
62
+ isSignal: true,
63
+ alias: "data-size",
64
+ required: false
65
+ }]
66
+ }] }
67
+ });
68
+ export { Heading };
69
+
70
+ //# sourceMappingURL=ks-digital-designsystem-angular-heading.mjs.map