@ks-digital/designsystem-angular 0.0.1-alpha.5 → 0.0.1-alpha.7

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 (41) hide show
  1. package/dist/fesm2022/ks-digital-designsystem-angular.mjs +195 -0
  2. package/dist/fesm2022/ks-digital-designsystem-angular.mjs.map +1 -0
  3. package/dist/index.d.ts +75 -7
  4. package/package.json +13 -15
  5. package/dist/components/checkbox/checkbox.d.ts +0 -4
  6. package/dist/components/checkbox/checkbox.d.ts.map +0 -1
  7. package/dist/components/checkbox/index.d.ts +0 -2
  8. package/dist/components/checkbox/index.d.ts.map +0 -1
  9. package/dist/components/colors.d.ts +0 -27
  10. package/dist/components/colors.d.ts.map +0 -1
  11. package/dist/components/common-inputs.d.ts +0 -15
  12. package/dist/components/common-inputs.d.ts.map +0 -1
  13. package/dist/components/field/field.d.ts +0 -15
  14. package/dist/components/field/field.d.ts.map +0 -1
  15. package/dist/components/field/index.d.ts +0 -2
  16. package/dist/components/field/index.d.ts.map +0 -1
  17. package/dist/components/fieldset/fieldset-description.d.ts +0 -3
  18. package/dist/components/fieldset/fieldset-description.d.ts.map +0 -1
  19. package/dist/components/fieldset/fieldset-legend.d.ts +0 -3
  20. package/dist/components/fieldset/fieldset-legend.d.ts.map +0 -1
  21. package/dist/components/fieldset/fieldset.d.ts +0 -3
  22. package/dist/components/fieldset/fieldset.d.ts.map +0 -1
  23. package/dist/components/fieldset/index.d.ts +0 -4
  24. package/dist/components/fieldset/index.d.ts.map +0 -1
  25. package/dist/components/label/index.d.ts +0 -2
  26. package/dist/components/label/index.d.ts.map +0 -1
  27. package/dist/components/label/label.d.ts +0 -4
  28. package/dist/components/label/label.d.ts.map +0 -1
  29. package/dist/components/paragraph/index.d.ts +0 -2
  30. package/dist/components/paragraph/index.d.ts.map +0 -1
  31. package/dist/components/paragraph/paragraph.d.ts +0 -3
  32. package/dist/components/paragraph/paragraph.d.ts.map +0 -1
  33. package/dist/components/validation-message/index.d.ts +0 -2
  34. package/dist/components/validation-message/index.d.ts.map +0 -1
  35. package/dist/components/validation-message/validation-message.d.ts +0 -3
  36. package/dist/components/validation-message/validation-message.d.ts.map +0 -1
  37. package/dist/index.d.ts.map +0 -1
  38. package/dist/index.js +0 -1
  39. package/dist/package.json +0 -48
  40. package/dist/utils/random-id.d.ts +0 -2
  41. package/dist/utils/random-id.d.ts.map +0 -1
@@ -0,0 +1,195 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, Directive, model, Component, contentChild, signal, afterNextRender, isDevMode } from '@angular/core';
3
+
4
+ /* eslint-disable @angular-eslint/no-input-rename */
5
+ /**
6
+ * We use input aliasing to bridge the gap between Angular's camelCase property naming convention and our HTML data attributes.
7
+ * This approach allows us to use valid HTML data attributes as documented by Designsystemet while maintaining
8
+ * proper TypeScript intellisense support.
9
+ */
10
+ class CommonInputs {
11
+ /**
12
+ * Changes size for descendant Designsystemet components. Select from predefined sizes.
13
+ * @attribute data-size
14
+ */
15
+ dataSize = input(undefined, { alias: 'data-size' });
16
+ /**
17
+ * Changes color for descendant Designsystemet components.
18
+ * Select from predefined colors and colors defined using theme.designsystemet.no.
19
+ * @attribute data-color
20
+ */
21
+ dataColor = input(undefined, { alias: 'data-color' });
22
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: CommonInputs, deps: [], target: i0.ɵɵFactoryTarget.Directive });
23
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.0.3", type: CommonInputs, isStandalone: true, inputs: { dataSize: { classPropertyName: "dataSize", publicName: "data-size", isSignal: true, isRequired: false, transformFunction: null }, dataColor: { classPropertyName: "dataColor", publicName: "data-color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
24
+ }
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: CommonInputs, decorators: [{
26
+ type: Directive
27
+ }] });
28
+
29
+ class Checkbox {
30
+ id = model();
31
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: Checkbox, deps: [], target: i0.ɵɵFactoryTarget.Component });
32
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.3", type: Checkbox, isStandalone: true, selector: "input[ksd-checkbox]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { id: "idChange" }, host: { attributes: { "type": "checkbox" }, properties: { "attr.id": "id()" }, classAttribute: "ds-input" }, hostDirectives: [{ directive: CommonInputs, inputs: ["data-size", "data-size", "data-color", "data-color"] }], ngImport: i0, template: ``, isInline: true });
33
+ }
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: Checkbox, decorators: [{
35
+ type: Component,
36
+ args: [{
37
+ selector: 'input[ksd-checkbox]',
38
+ hostDirectives: [{
39
+ directive: CommonInputs,
40
+ inputs: ['data-size', 'data-color']
41
+ }],
42
+ host: {
43
+ type: 'checkbox',
44
+ class: 'ds-input',
45
+ '[attr.id]': 'id()',
46
+ },
47
+ template: ``,
48
+ }]
49
+ }] });
50
+
51
+ const randomId = () => {
52
+ return Math.random().toString(36).slice(2, 7);
53
+ };
54
+
55
+ class Label {
56
+ for = model();
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: Label, deps: [], target: i0.ɵɵFactoryTarget.Component });
58
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.0.3", type: Label, isStandalone: true, selector: "ksd-label", inputs: { for: { classPropertyName: "for", publicName: "for", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { for: "forChange" }, hostDirectives: [{ directive: CommonInputs, inputs: ["data-size", "data-size", "data-color", "data-color"] }], ngImport: i0, template: `<label class="ds-label" [for]="for()"><ng-content /></label>`, isInline: true });
59
+ }
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: Label, decorators: [{
61
+ type: Component,
62
+ args: [{
63
+ selector: 'ksd-label',
64
+ hostDirectives: [{
65
+ directive: CommonInputs,
66
+ inputs: ['data-size', 'data-color']
67
+ }],
68
+ template: `<label class="ds-label" [for]="for()"><ng-content /></label>`,
69
+ }]
70
+ }] });
71
+
72
+ /**
73
+ * Use the Field component to connect inputs and labels
74
+ */
75
+ class Field {
76
+ /**
77
+ * Position of toggle inputs (radio, checkbox, switch) in field
78
+ * @default start
79
+ */
80
+ position = input('start');
81
+ input = contentChild(Checkbox);
82
+ label = contentChild(Label);
83
+ id = signal(randomId());
84
+ constructor() {
85
+ afterNextRender(() => {
86
+ if (isDevMode() && (!this.label() || !this.input())) {
87
+ console.error('[Field] Missing required elements: ksd-label and ksd-input must be provided as children');
88
+ }
89
+ this.input()?.id.set(this.id());
90
+ this.label()?.for.set(this.id());
91
+ });
92
+ }
93
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: Field, deps: [], target: i0.ɵɵFactoryTarget.Component });
94
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.0.3", type: Field, isStandalone: true, selector: "ksd-field", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.dataPosition": "position()" }, classAttribute: "ds-field" }, queries: [{ propertyName: "input", first: true, predicate: Checkbox, descendants: true, isSignal: true }, { propertyName: "label", first: true, predicate: Label, descendants: true, isSignal: true }], hostDirectives: [{ directive: CommonInputs, inputs: ["data-size", "data-size", "data-color", "data-color"] }], ngImport: i0, template: ` <ng-content /> `, isInline: true });
95
+ }
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: Field, decorators: [{
97
+ type: Component,
98
+ args: [{
99
+ selector: 'ksd-field',
100
+ hostDirectives: [
101
+ {
102
+ directive: CommonInputs,
103
+ inputs: ['data-size', 'data-color'],
104
+ },
105
+ ],
106
+ host: {
107
+ class: 'ds-field',
108
+ '[attr.dataPosition]': 'position()',
109
+ },
110
+ template: ` <ng-content /> `,
111
+ }]
112
+ }], ctorParameters: () => [] });
113
+
114
+ class Fieldset {
115
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: Fieldset, deps: [], target: i0.ɵɵFactoryTarget.Component });
116
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", type: Fieldset, isStandalone: true, selector: "fieldset[ksd-fieldset]", host: { attributes: { "role": "fieldset" }, classAttribute: "ds-fieldset" }, ngImport: i0, template: ` <ng-content /> `, isInline: true });
117
+ }
118
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: Fieldset, decorators: [{
119
+ type: Component,
120
+ args: [{
121
+ selector: 'fieldset[ksd-fieldset]',
122
+ host: {
123
+ role: 'fieldset',
124
+ class: 'ds-fieldset',
125
+ },
126
+ template: ` <ng-content /> `,
127
+ }]
128
+ }] });
129
+
130
+ class FieldsetDescription {
131
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: FieldsetDescription, deps: [], target: i0.ɵɵFactoryTarget.Component });
132
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", type: FieldsetDescription, isStandalone: true, selector: "p[ksd-fieldset-description]", ngImport: i0, template: `<ng-content />`, isInline: true });
133
+ }
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: FieldsetDescription, decorators: [{
135
+ type: Component,
136
+ args: [{
137
+ selector: 'p[ksd-fieldset-description]',
138
+ template: `<ng-content />`,
139
+ host: {}
140
+ }]
141
+ }] });
142
+
143
+ class FieldsetLegend {
144
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: FieldsetLegend, deps: [], target: i0.ɵɵFactoryTarget.Component });
145
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", type: FieldsetLegend, isStandalone: true, selector: "legend[ksd-fieldset-legend]", host: { attributes: { "role": "legend" }, classAttribute: "ds-label" }, ngImport: i0, template: ` <ng-content /> `, isInline: true });
146
+ }
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: FieldsetLegend, decorators: [{
148
+ type: Component,
149
+ args: [{
150
+ selector: 'legend[ksd-fieldset-legend]',
151
+ host: {
152
+ role: 'legend',
153
+ class: 'ds-label',
154
+ },
155
+ template: ` <ng-content /> `,
156
+ }]
157
+ }] });
158
+
159
+ class Paragraph {
160
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: Paragraph, deps: [], target: i0.ɵɵFactoryTarget.Component });
161
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", type: Paragraph, isStandalone: true, selector: "ksd-paragraph", host: { classAttribute: "ds-paragraph" }, ngImport: i0, template: `<ng-content />`, isInline: true });
162
+ }
163
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: Paragraph, decorators: [{
164
+ type: Component,
165
+ args: [{
166
+ selector: 'ksd-paragraph',
167
+ template: `<ng-content />`,
168
+ host: {
169
+ class: 'ds-paragraph',
170
+ },
171
+ }]
172
+ }] });
173
+
174
+ class ValidationMessage {
175
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: ValidationMessage, deps: [], target: i0.ɵɵFactoryTarget.Component });
176
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.0.3", type: ValidationMessage, isStandalone: true, selector: "p[ksd-validation-message]", host: { attributes: { "data-field": "validation" }, classAttribute: "ds-validation-message" }, ngImport: i0, template: `<ng-content />`, isInline: true });
177
+ }
178
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.3", ngImport: i0, type: ValidationMessage, decorators: [{
179
+ type: Component,
180
+ args: [{
181
+ selector: 'p[ksd-validation-message]',
182
+ template: `<ng-content />`,
183
+ host: {
184
+ class: 'ds-validation-message',
185
+ 'data-field': 'validation',
186
+ },
187
+ }]
188
+ }] });
189
+
190
+ /**
191
+ * Generated bundle index. Do not edit.
192
+ */
193
+
194
+ export { Checkbox, CommonInputs, Field, Fieldset, FieldsetDescription, FieldsetLegend, Label, Paragraph, ValidationMessage };
195
+ //# sourceMappingURL=ks-digital-designsystem-angular.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ks-digital-designsystem-angular.mjs","sources":["../../src/components/common-inputs.ts","../../src/components/checkbox/checkbox.ts","../../src/utils/random-id.ts","../../src/components/label/label.ts","../../src/components/field/field.ts","../../src/components/fieldset/fieldset.ts","../../src/components/fieldset/fieldset-description.ts","../../src/components/fieldset/fieldset-legend.ts","../../src/components/paragraph/paragraph.ts","../../src/components/validation-message/validation-message.ts","../../src/ks-digital-designsystem-angular.ts"],"sourcesContent":["/* eslint-disable @angular-eslint/no-input-rename */\n\n/**\n * We use input aliasing to bridge the gap between Angular's camelCase property naming convention and our HTML data attributes.\n * This approach allows us to use valid HTML data attributes as documented by Designsystemet while maintaining\n * proper TypeScript intellisense support.\n */\n\nimport { Directive, input } from '@angular/core'\nimport { Color } from './colors'\n\nexport type Size = 'sm' | 'md' | 'lg' | 'xl'\n\n@Directive()\nexport class CommonInputs {\n /**\n * Changes size for descendant Designsystemet components. Select from predefined sizes.\n * @attribute data-size\n */\n dataSize = input<Size>(undefined, { alias: 'data-size' })\n\n /**\n * Changes color for descendant Designsystemet components.\n * Select from predefined colors and colors defined using theme.designsystemet.no.\n * @attribute data-color\n */\n dataColor = input<Color>(undefined, { alias: 'data-color' })\n}\n","import { Component, model } from '@angular/core'\nimport { CommonInputs } from '../common-inputs'\n\n@Component({\n selector: 'input[ksd-checkbox]',\n hostDirectives: [{\n directive: CommonInputs,\n inputs: ['data-size', 'data-color']\n }],\n host: {\n type: 'checkbox',\n class: 'ds-input',\n '[attr.id]': 'id()',\n },\n template: ``,\n})\nexport class Checkbox {\n id = model<string>()\n}\n","export const randomId = () => {\n return Math.random().toString(36).slice(2, 7)\n}\n","import { Component, model } from '@angular/core'\nimport { CommonInputs } from '../common-inputs'\n\n@Component({\n selector: 'ksd-label',\n hostDirectives: [{\n directive: CommonInputs,\n inputs: ['data-size', 'data-color']\n }],\n template: `<label class=\"ds-label\" [for]=\"for()\"><ng-content /></label>`,\n})\nexport class Label {\n for = model<string>()\n}\n","import {\n afterNextRender,\n Component,\n contentChild,\n input,\n isDevMode,\n signal,\n} from '@angular/core'\nimport { randomId } from '../../utils/random-id'\nimport { Checkbox } from '../checkbox/checkbox'\nimport { CommonInputs } from '../common-inputs'\nimport { Label } from '../label/label'\n\n/**\n * Use the Field component to connect inputs and labels\n */\n@Component({\n selector: 'ksd-field',\n hostDirectives: [\n {\n directive: CommonInputs,\n inputs: ['data-size', 'data-color'],\n },\n ],\n host: {\n class: 'ds-field',\n '[attr.dataPosition]': 'position()',\n },\n template: ` <ng-content /> `,\n})\nexport class Field {\n /**\n * Position of toggle inputs (radio, checkbox, switch) in field\n * @default start\n */\n position = input<'start' | 'end'>('start')\n\n private input = contentChild(Checkbox)\n private label = contentChild(Label)\n private readonly id = signal(randomId())\n\n constructor() {\n afterNextRender(() => {\n if (isDevMode() && (!this.label() || !this.input())) {\n console.error(\n '[Field] Missing required elements: ksd-label and ksd-input must be provided as children',\n )\n }\n\n this.input()?.id.set(this.id())\n this.label()?.for.set(this.id())\n })\n }\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'fieldset[ksd-fieldset]',\n host: {\n role: 'fieldset',\n class: 'ds-fieldset',\n },\n template: ` <ng-content /> `,\n})\nexport class Fieldset { }\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'p[ksd-fieldset-description]',\n template: `<ng-content />`,\n host: {}\n})\nexport class FieldsetDescription {\n}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'legend[ksd-fieldset-legend]',\n host: {\n role: 'legend',\n class: 'ds-label',\n },\n template: ` <ng-content /> `,\n})\nexport class FieldsetLegend { }\n","import { Component } from '@angular/core'\n\n@Component({\n selector: 'ksd-paragraph',\n template: `<ng-content />`,\n host: {\n class: 'ds-paragraph',\n },\n})\nexport class Paragraph {}\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'p[ksd-validation-message]',\n template: `<ng-content />`,\n host: {\n class: 'ds-validation-message',\n 'data-field': 'validation',\n },\n})\nexport class ValidationMessage { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAAA;AAEA;;;;AAIG;MAQU,YAAY,CAAA;AACrB;;;AAGG;IACH,QAAQ,GAAG,KAAK,CAAO,SAAS,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;AAEzD;;;;AAIG;IACH,SAAS,GAAG,KAAK,CAAQ,SAAS,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;uGAZnD,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAZ,YAAY,EAAA,YAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UA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,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA;;2FAMf,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAR7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,QAAQ,EAAE,CAAgB,cAAA,CAAA;AAC1B,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,uBAAuB;AAC9B,wBAAA,YAAY,EAAE,YAAY;AAC3B,qBAAA;AACF,iBAAA;;;ACTD;;AAEG;;;;"}
package/dist/index.d.ts CHANGED
@@ -1,7 +1,75 @@
1
- export * from './components/checkbox';
2
- export * from './components/field';
3
- export * from './components/fieldset';
4
- export * from './components/label';
5
- export * from './components/paragraph';
6
- export * from './components/validation-message';
7
- //# sourceMappingURL=index.d.ts.map
1
+ import * as i0 from '@angular/core';
2
+
3
+ type Size = 'sm' | 'md' | 'lg' | 'xl';
4
+ declare class CommonInputs {
5
+ /**
6
+ * Changes size for descendant Designsystemet components. Select from predefined sizes.
7
+ * @attribute data-size
8
+ */
9
+ dataSize: i0.InputSignal<Size>;
10
+ /**
11
+ * Changes color for descendant Designsystemet components.
12
+ * Select from predefined colors and colors defined using theme.designsystemet.no.
13
+ * @attribute data-color
14
+ */
15
+ dataColor: i0.InputSignal<string>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<CommonInputs, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CommonInputs, never, never, { "dataSize": { "alias": "data-size"; "required": false; "isSignal": true; }; "dataColor": { "alias": "data-color"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
18
+ }
19
+
20
+ declare class Checkbox {
21
+ id: i0.ModelSignal<string>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<Checkbox, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<Checkbox, "input[ksd-checkbox]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, { "id": "idChange"; }, never, never, true, [{ directive: typeof CommonInputs; inputs: { "data-size": "data-size"; "data-color": "data-color"; }; outputs: {}; }]>;
24
+ }
25
+
26
+ /**
27
+ * Use the Field component to connect inputs and labels
28
+ */
29
+ declare class Field {
30
+ /**
31
+ * Position of toggle inputs (radio, checkbox, switch) in field
32
+ * @default start
33
+ */
34
+ position: i0.InputSignal<"start" | "end">;
35
+ private input;
36
+ private label;
37
+ private readonly id;
38
+ constructor();
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<Field, never>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<Field, "ksd-field", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; }, {}, ["input", "label"], ["*"], true, [{ directive: typeof CommonInputs; inputs: { "data-size": "data-size"; "data-color": "data-color"; }; outputs: {}; }]>;
41
+ }
42
+
43
+ declare class Fieldset {
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<Fieldset, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<Fieldset, "fieldset[ksd-fieldset]", never, {}, {}, never, ["*"], true, never>;
46
+ }
47
+
48
+ declare class FieldsetDescription {
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldsetDescription, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldsetDescription, "p[ksd-fieldset-description]", never, {}, {}, never, ["*"], true, never>;
51
+ }
52
+
53
+ declare class FieldsetLegend {
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldsetLegend, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<FieldsetLegend, "legend[ksd-fieldset-legend]", never, {}, {}, never, ["*"], true, never>;
56
+ }
57
+
58
+ declare class Label {
59
+ for: i0.ModelSignal<string>;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<Label, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<Label, "ksd-label", never, { "for": { "alias": "for"; "required": false; "isSignal": true; }; }, { "for": "forChange"; }, never, ["*"], true, [{ directive: typeof CommonInputs; inputs: { "data-size": "data-size"; "data-color": "data-color"; }; outputs: {}; }]>;
62
+ }
63
+
64
+ declare class Paragraph {
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<Paragraph, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<Paragraph, "ksd-paragraph", never, {}, {}, never, ["*"], true, never>;
67
+ }
68
+
69
+ declare class ValidationMessage {
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValidationMessage, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<ValidationMessage, "p[ksd-validation-message]", never, {}, {}, never, ["*"], true, never>;
72
+ }
73
+
74
+ export { Checkbox, CommonInputs, Field, Fieldset, FieldsetDescription, FieldsetLegend, Label, Paragraph, ValidationMessage };
75
+ export type { Size };
package/package.json CHANGED
@@ -5,33 +5,26 @@
5
5
  "url": "https://github.com/ks-no/designsystem.git",
6
6
  "directory": "packages/angular"
7
7
  },
8
- "version": "0.0.1-alpha.5",
8
+ "version": "0.0.1-alpha.7",
9
9
  "license": "MIT",
10
10
  "private": false,
11
11
  "publishConfig": {
12
12
  "access": "public"
13
13
  },
14
14
  "type": "module",
15
- "main": "./dist/index.js",
16
- "types": "./dist/index.d.ts",
17
- "exports": {
18
- ".": {
19
- "types": "./dist/index.d.ts",
20
- "import": "./dist/index.js",
21
- "require": "./dist/index.js"
22
- }
23
- },
24
15
  "files": [
25
16
  "./dist"
26
17
  ],
18
+ "main": "./dist/index.js",
19
+ "types": "./dist/index.d.ts",
27
20
  "dependencies": {
28
21
  "@digdir/designsystemet-css": "1.0.5"
29
22
  },
30
23
  "peerDependencies": {
31
- "@angular/common": ">=19.0.0",
32
- "@angular/core": ">=19.0.0",
33
- "@angular/platform-browser": ">=19.0.0",
34
- "@angular/platform-server": ">=19.0.0"
24
+ "@angular/common": ">=20.0.0",
25
+ "@angular/core": ">=20.0.0",
26
+ "@angular/platform-browser": ">=20.0.0",
27
+ "@angular/platform-server": ">=20.0.0"
35
28
  },
36
29
  "devDependencies": {
37
30
  "@analogjs/vite-plugin-angular": "~1.17.1",
@@ -43,6 +36,11 @@
43
36
  "@angular-eslint/schematics": "^20.0.0",
44
37
  "@angular-eslint/template-parser": "^20.0.0",
45
38
  "@testing-library/angular": "^17.4.0",
46
- "angular-eslint": "^20.0.0"
39
+ "angular-eslint": "^20.0.0",
40
+ "jsdom": "~22.1.0",
41
+ "ng-packagr": "^20.0.1"
42
+ },
43
+ "scripts": {
44
+ "build": "ng-packagr -p ng-package.json"
47
45
  }
48
46
  }
@@ -1,4 +0,0 @@
1
- export declare class Checkbox {
2
- id: import('@angular/core').ModelSignal<string | undefined>;
3
- }
4
- //# sourceMappingURL=checkbox.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.ts"],"names":[],"mappings":"AAGA,qBAaa,QAAQ;IACnB,EAAE,0DAAkB;CACrB"}
@@ -1,2 +0,0 @@
1
- export { Checkbox } from './checkbox';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
@@ -1,27 +0,0 @@
1
- /**
2
- Lifted from https://github.com/digdir/designsystemet/blob/main/packages/react/src/colors.ts
3
- **/
4
- declare const emptyObjectSymbol: unique symbol;
5
- type EmptyObject = {
6
- [emptyObjectSymbol]?: never;
7
- };
8
- /**
9
- * Base interface for available colors in the design system.
10
- * The CLI will generate augmentations of this interface to allow
11
- * type safety of custom color names.
12
- */
13
- export interface MainAndSupportColors {
14
- }
15
- /**
16
- * If {@link MainAndSupportColors} has been extended to include color names, return T,
17
- * otherwise return the arbitrary string type.
18
- */
19
- type ColorWithFallback<T> = MainAndSupportColors extends EmptyObject ? string : T;
20
- export type SeverityInfo = 'info';
21
- export type SeveritySuccess = 'success';
22
- export type SeverityWarning = 'warning';
23
- export type SeverityDanger = 'danger';
24
- export type SeverityColors = SeverityInfo | SeveritySuccess | SeverityWarning | SeverityDanger;
25
- export type Color = ColorWithFallback<'neutral' | keyof MainAndSupportColors>;
26
- export {};
27
- //# sourceMappingURL=colors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../src/components/colors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,CAAC,MAAM,iBAAiB,EAAE,OAAO,MAAM,CAAA;AAC9C,KAAK,WAAW,GAAG;IAAE,CAAC,iBAAiB,CAAC,CAAC,EAAE,KAAK,CAAA;CAAE,CAAA;AAElD;;;;GAIG;AAGH,MAAM,WAAW,oBAAoB;CAAI;AAEzC;;;GAGG;AACH,KAAK,iBAAiB,CAAC,CAAC,IAAI,oBAAoB,SAAS,WAAW,GAChE,MAAM,GACN,CAAC,CAAA;AAEL,MAAM,MAAM,YAAY,GAAG,MAAM,CAAA;AACjC,MAAM,MAAM,eAAe,GAAG,SAAS,CAAA;AACvC,MAAM,MAAM,eAAe,GAAG,SAAS,CAAA;AACvC,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAA;AACrC,MAAM,MAAM,cAAc,GACtB,YAAY,GACZ,eAAe,GACf,eAAe,GACf,cAAc,CAAA;AAElB,MAAM,MAAM,KAAK,GAAG,iBAAiB,CAAC,SAAS,GAAG,MAAM,oBAAoB,CAAC,CAAA"}
@@ -1,15 +0,0 @@
1
- export type Size = 'sm' | 'md' | 'lg' | 'xl';
2
- export declare class CommonInputs {
3
- /**
4
- * Changes size for descendant Designsystemet components. Select from predefined sizes.
5
- * @attribute data-size
6
- */
7
- dataSize: import('@angular/core').InputSignal<Size | undefined>;
8
- /**
9
- * Changes color for descendant Designsystemet components.
10
- * Select from predefined colors and colors defined using theme.designsystemet.no.
11
- * @attribute data-color
12
- */
13
- dataColor: import('@angular/core').InputSignal<string | undefined>;
14
- }
15
- //# sourceMappingURL=common-inputs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common-inputs.d.ts","sourceRoot":"","sources":["../../src/components/common-inputs.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;AAE5C,qBACa,YAAY;IACrB;;;OAGG;IACH,QAAQ,wDAAiD;IAEzD;;;;OAIG;IACH,SAAS,0DAAmD;CAC/D"}
@@ -1,15 +0,0 @@
1
- /**
2
- * Use the Field component to connect inputs and labels
3
- */
4
- export declare class Field {
5
- /**
6
- * Position of toggle inputs (radio, checkbox, switch) in field
7
- * @default start
8
- */
9
- position: import('@angular/core').InputSignal<"start" | "end">;
10
- private input;
11
- private label;
12
- private readonly id;
13
- constructor();
14
- }
15
- //# sourceMappingURL=field.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"field.d.ts","sourceRoot":"","sources":["../../../src/components/field/field.ts"],"names":[],"mappings":"AAaA;;GAEG;AACH,qBAca,KAAK;IACd;;;OAGG;IACH,QAAQ,uDAAkC;IAE1C,OAAO,CAAC,KAAK,CAAyB;IACtC,OAAO,CAAC,KAAK,CAAsB;IACnC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAqB;;CAc3C"}
@@ -1,2 +0,0 @@
1
- export { Field } from './field';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare class FieldsetDescription {
2
- }
3
- //# sourceMappingURL=fieldset-description.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fieldset-description.d.ts","sourceRoot":"","sources":["../../../src/components/fieldset/fieldset-description.ts"],"names":[],"mappings":"AAEA,qBAKa,mBAAmB;CAC/B"}
@@ -1,3 +0,0 @@
1
- export declare class FieldsetLegend {
2
- }
3
- //# sourceMappingURL=fieldset-legend.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fieldset-legend.d.ts","sourceRoot":"","sources":["../../../src/components/fieldset/fieldset-legend.ts"],"names":[],"mappings":"AAEA,qBAQa,cAAc;CAAI"}
@@ -1,3 +0,0 @@
1
- export declare class Fieldset {
2
- }
3
- //# sourceMappingURL=fieldset.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fieldset.d.ts","sourceRoot":"","sources":["../../../src/components/fieldset/fieldset.ts"],"names":[],"mappings":"AAEA,qBAQa,QAAQ;CAAI"}
@@ -1,4 +0,0 @@
1
- export { Fieldset } from './fieldset';
2
- export { FieldsetDescription } from './fieldset-description';
3
- export { FieldsetLegend } from './fieldset-legend';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/fieldset/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,2 +0,0 @@
1
- export { Label } from './label';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/label/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare class Label {
2
- for: import('@angular/core').ModelSignal<string | undefined>;
3
- }
4
- //# sourceMappingURL=label.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../src/components/label/label.ts"],"names":[],"mappings":"AAGA,qBAQa,KAAK;IAChB,GAAG,0DAAkB;CACtB"}
@@ -1,2 +0,0 @@
1
- export { Paragraph } from './paragraph';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/paragraph/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare class Paragraph {
2
- }
3
- //# sourceMappingURL=paragraph.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/paragraph/paragraph.ts"],"names":[],"mappings":"AAEA,qBAOa,SAAS;CAAG"}
@@ -1,2 +0,0 @@
1
- export { ValidationMessage } from './validation-message';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/validation-message/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -1,3 +0,0 @@
1
- export declare class ValidationMessage {
2
- }
3
- //# sourceMappingURL=validation-message.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"validation-message.d.ts","sourceRoot":"","sources":["../../../src/components/validation-message/validation-message.ts"],"names":[],"mappings":"AAEA,qBAQa,iBAAiB;CAAI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,uBAAuB,CAAA;AACrC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iCAAiC,CAAA"}
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
-
package/dist/package.json DELETED
@@ -1,48 +0,0 @@
1
- {
2
- "name": "@ks-digital/designsystem-angular",
3
- "repository": {
4
- "type": "git",
5
- "url": "https://github.com/ks-no/designsystem.git",
6
- "directory": "packages/angular"
7
- },
8
- "version": "0.0.1-alpha.5",
9
- "license": "MIT",
10
- "private": false,
11
- "publishConfig": {
12
- "access": "public"
13
- },
14
- "type": "module",
15
- "main": "./dist/index.js",
16
- "types": "./dist/index.d.ts",
17
- "exports": {
18
- ".": {
19
- "types": "./dist/index.d.ts",
20
- "import": "./dist/index.js",
21
- "require": "./dist/index.js"
22
- }
23
- },
24
- "files": [
25
- "./dist"
26
- ],
27
- "dependencies": {
28
- "@digdir/designsystemet-css": "1.0.5"
29
- },
30
- "peerDependencies": {
31
- "@angular/common": ">=19.0.0",
32
- "@angular/core": ">=19.0.0",
33
- "@angular/platform-browser": ">=19.0.0",
34
- "@angular/platform-server": ">=19.0.0"
35
- },
36
- "devDependencies": {
37
- "@analogjs/vite-plugin-angular": "~1.17.1",
38
- "@analogjs/vitest-angular": "~1.17.1",
39
- "@angular-eslint/builder": "^20.0.0",
40
- "@angular-eslint/bundled-angular-compiler": "^20.0.0",
41
- "@angular-eslint/eslint-plugin": "^20.0.0",
42
- "@angular-eslint/eslint-plugin-template": "^20.0.0",
43
- "@angular-eslint/schematics": "^20.0.0",
44
- "@angular-eslint/template-parser": "^20.0.0",
45
- "@testing-library/angular": "^17.4.0",
46
- "angular-eslint": "^20.0.0"
47
- }
48
- }
@@ -1,2 +0,0 @@
1
- export declare const randomId: () => string;
2
- //# sourceMappingURL=random-id.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"random-id.d.ts","sourceRoot":"","sources":["../../src/utils/random-id.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,cAEpB,CAAA"}