@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 @@
1
+ {"version":3,"file":"ks-digital-designsystem-angular-heading.mjs","names":[],"sources":["../../../../packages/angular/heading/src/heading.ts"],"sourcesContent":["import { Directive, input, signal } from '@angular/core'\n\n@Directive({\n selector:\n // eslint-disable-next-line @angular-eslint/directive-selector\n 'h1[ksd-heading], h2[ksd-heading], h3[ksd-heading], h4[ksd-heading], h5[ksd-heading], h6[ksd-heading]',\n host: {\n class: 'ds-heading',\n '[attr.data-size]': 'dataSize() || null',\n '[attr.id]': 'id() || null',\n },\n})\nexport class Heading {\n public id = signal<string | undefined>(undefined)\n /**\n * Changes text sizing\n * @default 'md'\n */\n readonly dataSize = input<'2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl'>(\n undefined,\n {\n alias: 'data-size',\n },\n )\n\n /**\n * Set the id of the heading\n * @param id\n */\n setId(id: string) {\n this.id.set(id)\n }\n}\n"],"mappings":";;AAYA,IAAa,UAAb,MAAa,QAAO;CACX,KAAK,OAA2B,QAAU,GAAA,YAAA,CAAA,EAAA,WAAA,KAAA,CAAA,+BAAA,CAAA,CAAA;CAKxC,WAAW,MAClB,QAAS;EAAA,GAAA,YAAA,EAAA,WAAA,WAAA,+BAAA,CAAA;EAEP,OAAO;CAAW,CAAA;CAQtB,MAAM,IAAU;EACd,KAAK,GAAG,IAAI,EAAE;CAChB;CAnBW,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAO,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAP,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAO,cAAA;EAAA,UAAA;EAAA,QAAA,EAAA,UAAA;GAAA,mBAAA;GAAA,YAAA;GAAA,UAAA;GAAA,YAAA;GAAA,mBAAA;EAAA,EAAA;EAAA,MAAA;GAAA,YAAA;IAAA,kBAAA;IAAA,WAAA;GAAA;GAAA,gBAAA;EAAA;EAAA,UAAA;CAAA,CAAA;;AAAP,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAO,YAAA,CAAA;EAVnB,MAAA;EAAU,MAAA,CAAA;GACT,UAEE;GACF,MAAM;IACJ,OAAO;IACP,oBAAoB;IACpB,aAAa;GACd;EACF,CAAA"}
@@ -0,0 +1,60 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component } from "@angular/core";
3
+ import * as i1 from "@ks-digital/designsystem-angular/__internals";
4
+ import { HostColor, HostSize } from "@ks-digital/designsystem-angular/__internals";
5
+ var Link = class Link {
6
+ static ɵfac = i0.ɵɵngDeclareFactory({
7
+ minVersion: "12.0.0",
8
+ version: "22.2.2",
9
+ ngImport: i0,
10
+ type: Link,
11
+ deps: [],
12
+ target: i0.ɵɵFactoryTarget.Component
13
+ });
14
+ static ɵcmp = i0.ɵɵngDeclareComponent({
15
+ minVersion: "14.0.0",
16
+ version: "22.2.2",
17
+ type: Link,
18
+ isStandalone: true,
19
+ selector: "a[ksd-link]",
20
+ host: { classAttribute: "ds-link" },
21
+ hostDirectives: [{
22
+ directive: i1.HostSize,
23
+ inputs: ["data-size", "data-size"]
24
+ }, {
25
+ directive: i1.HostColor,
26
+ inputs: ["data-color", "data-color"]
27
+ }],
28
+ ngImport: i0,
29
+ template: ` <ng-content /> `,
30
+ isInline: true,
31
+ styles: [":host:has(>span)>::ng-deep :is(ng-icon,svg){margin-inline:var(--ds-size-1);margin-inline-start:0}:host ::ng-deep ng-icon,:host>::ng-deep svg{display:inline-flex;vertical-align:middle;font-size:var(--ng-glyph__size, 1.3em)}:host ::ng-deep svg{width:1em;height:1em}\n"],
32
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
33
+ });
34
+ };
35
+ i0.ɵɵngDeclareClassMetadata({
36
+ minVersion: "12.0.0",
37
+ version: "22.2.2",
38
+ ngImport: i0,
39
+ type: Link,
40
+ decorators: [{
41
+ type: Component,
42
+ args: [{
43
+ selector: "a[ksd-link]",
44
+ changeDetection: ChangeDetectionStrategy.OnPush,
45
+ template: ` <ng-content /> `,
46
+ hostDirectives: [{
47
+ directive: HostSize,
48
+ inputs: ["data-size"]
49
+ }, {
50
+ directive: HostColor,
51
+ inputs: ["data-color"]
52
+ }],
53
+ host: { class: "ds-link" },
54
+ styles: [":host:has(>span)>::ng-deep :is(ng-icon,svg){margin-inline:var(--ds-size-1);margin-inline-start:0}:host ::ng-deep ng-icon,:host>::ng-deep svg{display:inline-flex;vertical-align:middle;font-size:var(--ng-glyph__size, 1.3em)}:host ::ng-deep svg{width:1em;height:1em}\n"]
55
+ }]
56
+ }]
57
+ });
58
+ export { Link };
59
+
60
+ //# sourceMappingURL=ks-digital-designsystem-angular-link.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ks-digital-designsystem-angular-link.mjs","names":[],"sources":["../../../../packages/angular/link/src/link.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core'\nimport {\n HostColor,\n HostSize,\n} from '@ks-digital/designsystem-angular/__internals'\n\n@Component({\n selector: 'a[ksd-link]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: ` <ng-content /> `,\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-link',\n },\n styles: `\n /* Transcluded icons need ::ng-deep: they carry the consumer's scoping attribute */\n :host:has(> span) > ::ng-deep :is(ng-icon, svg) {\n margin-inline: var(--ds-size-1);\n margin-inline-start: 0;\n }\n\n :host ::ng-deep ng-icon,\n :host > ::ng-deep svg {\n display: inline-flex;\n vertical-align: middle;\n font-size: var(--ng-glyph__size, 1.3em);\n }\n\n :host ::ng-deep svg {\n width: 1em;\n height: 1em;\n }\n `,\n})\nexport class Link {}\n"],"mappings":";;;;AA2CA,IAAa,OAAb,MAAa,KAAI;CAAJ,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAI,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAJ,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAI,cAAA;EAAA,UAAA;EAAA,MAAA,EAAA,gBAAA,UAAA;EAAA,gBAAA,CAAA;GAAA,WAAA,GAAA;GAAA,QAAA,CAAA,aAAA,WAAA;EAAA,GAAA;GAAA,WAAA,GAAA;GAAA,QAAA,CAAA,cAAA,YAAA;EAAA,CAAA;EAAA,UAAA;EAAA,UAlCL;EAAkB,UAAA;EAAA,QAAA,CAAA,2QAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAkCjB,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAI,YAAA,CAAA;EArChB,MAAA;EACW,MAAA,CAAA;GAAA,UAAA;GAAa,iBACN,wBAAwB;GAAM,UACrC;GAAkB,gBACZ,CACd;IACE,WAAW;IACX,QAAQ,CAAC,WAAW;GACrB,GACD;IACE,WAAW;IACX,QAAQ,CAAC,YAAY;GACtB,CACF;GAAA,MACK,EACJ,OAAO,UACR;GAAA,QAAA,CAAA,2QAAA;EAAA,CAAA"}
@@ -0,0 +1,471 @@
1
+ import * as i0 from "@angular/core";
2
+ import { CUSTOM_ELEMENTS_SCHEMA, ChangeDetectionStrategy, Component, Directive, computed, input, numberAttribute, output } from "@angular/core";
3
+ import { pagination } from "@digdir/designsystemet-web/ds-pagination";
4
+ import * as i1 from "@ks-digital/designsystem-angular/__internals";
5
+ import { HostColor, HostSize } from "@ks-digital/designsystem-angular/__internals";
6
+ var PaginationButton = class PaginationButton {
7
+ page = input(null, {
8
+ ...ngDevMode ? { debugName: "page" } : /* istanbul ignore next */ {},
9
+ alias: "ksdPaginationButton"
10
+ });
11
+ pageNumber = computed(() => {
12
+ const value = this.page();
13
+ if (typeof value === "number") return value || null;
14
+ if (typeof value === "object" && value?.type === "page") return value.page;
15
+ return null;
16
+ }, ...ngDevMode ? [{ debugName: "pageNumber" }] : /* istanbul ignore next */ []);
17
+ isCurrent = computed(() => {
18
+ const value = this.page();
19
+ return typeof value === "object" && value?.type === "page" && value.current;
20
+ }, ...ngDevMode ? [{ debugName: "isCurrent" }] : /* istanbul ignore next */ []);
21
+ static ɵfac = i0.ɵɵngDeclareFactory({
22
+ minVersion: "12.0.0",
23
+ version: "22.2.2",
24
+ ngImport: i0,
25
+ type: PaginationButton,
26
+ deps: [],
27
+ target: i0.ɵɵFactoryTarget.Directive
28
+ });
29
+ static ɵdir = i0.ɵɵngDeclareDirective({
30
+ minVersion: "17.1.0",
31
+ version: "22.2.2",
32
+ type: PaginationButton,
33
+ isStandalone: true,
34
+ selector: "[ksdPaginationButton]",
35
+ inputs: { page: {
36
+ classPropertyName: "page",
37
+ publicName: "ksdPaginationButton",
38
+ isSignal: true,
39
+ isRequired: false,
40
+ transformFunction: null
41
+ } },
42
+ host: {
43
+ attributes: { "data-variant": "tertiary" },
44
+ properties: {
45
+ "attr.data-page": "pageNumber()",
46
+ "attr.aria-current": "isCurrent() ? \"true\" : null"
47
+ },
48
+ classAttribute: "ds-button"
49
+ },
50
+ ngImport: i0
51
+ });
52
+ };
53
+ i0.ɵɵngDeclareClassMetadata({
54
+ minVersion: "12.0.0",
55
+ version: "22.2.2",
56
+ ngImport: i0,
57
+ type: PaginationButton,
58
+ decorators: [{
59
+ type: Directive,
60
+ args: [{
61
+ selector: "[ksdPaginationButton]",
62
+ host: {
63
+ class: "ds-button",
64
+ "data-variant": "tertiary",
65
+ "[attr.data-page]": "pageNumber()",
66
+ "[attr.aria-current]": "isCurrent() ? \"true\" : null"
67
+ }
68
+ }]
69
+ }],
70
+ propDecorators: { page: [{
71
+ type: i0.Input,
72
+ args: [{
73
+ isSignal: true,
74
+ alias: "ksdPaginationButton",
75
+ required: false
76
+ }]
77
+ }] }
78
+ });
79
+ const isModifiedClick = (e) => e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey;
80
+ var Pagination = class Pagination {
81
+ current = input.required({
82
+ ...ngDevMode ? { debugName: "current" } : /* istanbul ignore next */ {},
83
+ transform: numberAttribute
84
+ });
85
+ total = input.required({
86
+ ...ngDevMode ? { debugName: "total" } : /* istanbul ignore next */ {},
87
+ transform: numberAttribute
88
+ });
89
+ ariaLabel = input("Bla i sider", {
90
+ ...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
91
+ alias: "aria-label"
92
+ });
93
+ show = input(7, {
94
+ ...ngDevMode ? { debugName: "show" } : /* istanbul ignore next */ {},
95
+ transform: (value) => numberAttribute(value, 7)
96
+ });
97
+ href = input(...ngDevMode ? [void 0, { debugName: "href" }] : /* istanbul ignore next */ []);
98
+ previousLabel = input("Forrige", ...ngDevMode ? [{ debugName: "previousLabel" }] : /* istanbul ignore next */ []);
99
+ nextLabel = input("Neste", ...ngDevMode ? [{ debugName: "nextLabel" }] : /* istanbul ignore next */ []);
100
+ pageLabel = input("Side %d", ...ngDevMode ? [{ debugName: "pageLabel" }] : /* istanbul ignore next */ []);
101
+ pageClicked = output();
102
+ pages = computed(() => {
103
+ const result = pagination({
104
+ current: this.current(),
105
+ total: this.total(),
106
+ show: this.show()
107
+ });
108
+ return {
109
+ pages: result.pages.map((p) => p.page === 0 ? {
110
+ type: "ellipsis",
111
+ key: p.key
112
+ } : {
113
+ type: "page",
114
+ page: p.page,
115
+ current: p.current === "page",
116
+ key: p.key
117
+ }),
118
+ prev: result.prev,
119
+ next: result.next
120
+ };
121
+ }, ...ngDevMode ? [{ debugName: "pages" }] : /* istanbul ignore next */ []);
122
+ hrefFor(page) {
123
+ return page ? this.href()?.replace("%d", String(page)) ?? null : null;
124
+ }
125
+ labelFor(page) {
126
+ return this.pageLabel().replace("%d", String(page));
127
+ }
128
+ onClick(e) {
129
+ const root = e.currentTarget;
130
+ const target = e.target.closest("button,a");
131
+ if (!target || !root.contains(target)) return;
132
+ if (target.matches("a[href]") && isModifiedClick(e)) return;
133
+ const page = Number(target.getAttribute("data-page"));
134
+ if (!page || page === this.current()) return;
135
+ e.preventDefault();
136
+ this.pageClicked.emit(page);
137
+ }
138
+ static ɵfac = i0.ɵɵngDeclareFactory({
139
+ minVersion: "12.0.0",
140
+ version: "22.2.2",
141
+ ngImport: i0,
142
+ type: Pagination,
143
+ deps: [],
144
+ target: i0.ɵɵFactoryTarget.Component
145
+ });
146
+ static ɵcmp = i0.ɵɵngDeclareComponent({
147
+ minVersion: "17.0.0",
148
+ version: "22.2.2",
149
+ type: Pagination,
150
+ isStandalone: true,
151
+ selector: "ksd-pagination",
152
+ inputs: {
153
+ current: {
154
+ classPropertyName: "current",
155
+ publicName: "current",
156
+ isSignal: true,
157
+ isRequired: true,
158
+ transformFunction: null
159
+ },
160
+ total: {
161
+ classPropertyName: "total",
162
+ publicName: "total",
163
+ isSignal: true,
164
+ isRequired: true,
165
+ transformFunction: null
166
+ },
167
+ ariaLabel: {
168
+ classPropertyName: "ariaLabel",
169
+ publicName: "aria-label",
170
+ isSignal: true,
171
+ isRequired: false,
172
+ transformFunction: null
173
+ },
174
+ show: {
175
+ classPropertyName: "show",
176
+ publicName: "show",
177
+ isSignal: true,
178
+ isRequired: false,
179
+ transformFunction: null
180
+ },
181
+ href: {
182
+ classPropertyName: "href",
183
+ publicName: "href",
184
+ isSignal: true,
185
+ isRequired: false,
186
+ transformFunction: null
187
+ },
188
+ previousLabel: {
189
+ classPropertyName: "previousLabel",
190
+ publicName: "previousLabel",
191
+ isSignal: true,
192
+ isRequired: false,
193
+ transformFunction: null
194
+ },
195
+ nextLabel: {
196
+ classPropertyName: "nextLabel",
197
+ publicName: "nextLabel",
198
+ isSignal: true,
199
+ isRequired: false,
200
+ transformFunction: null
201
+ },
202
+ pageLabel: {
203
+ classPropertyName: "pageLabel",
204
+ publicName: "pageLabel",
205
+ isSignal: true,
206
+ isRequired: false,
207
+ transformFunction: null
208
+ }
209
+ },
210
+ outputs: { pageClicked: "pageClicked" },
211
+ hostDirectives: [{
212
+ directive: i1.HostSize,
213
+ inputs: ["data-size", "data-size"]
214
+ }, {
215
+ directive: i1.HostColor,
216
+ inputs: ["data-color", "data-color"]
217
+ }],
218
+ ngImport: i0,
219
+ template: `
220
+ <ds-pagination
221
+ class="ds-pagination"
222
+ [attr.aria-label]="ariaLabel()"
223
+ (click)="onClick($event)"
224
+ >
225
+ <ng-content>
226
+ <ol>
227
+ <li>
228
+ @if (href()) {
229
+ <a
230
+ [ksdPaginationButton]="pages().prev"
231
+ [attr.href]="hrefFor(pages().prev)"
232
+ [attr.aria-hidden]="pages().prev ? null : 'true'"
233
+ >{{ previousLabel() }}</a
234
+ >
235
+ } @else {
236
+ <button
237
+ type="button"
238
+ [ksdPaginationButton]="pages().prev"
239
+ [disabled]="!pages().prev"
240
+ [attr.aria-hidden]="pages().prev ? null : 'true'"
241
+ >
242
+ {{ previousLabel() }}
243
+ </button>
244
+ }
245
+ </li>
246
+ @for (page of pages().pages; track page.key) {
247
+ @if (page.type === 'page') {
248
+ <li>
249
+ @if (href()) {
250
+ <a
251
+ [ksdPaginationButton]="page"
252
+ [attr.href]="hrefFor(page.page)"
253
+ [attr.aria-label]="labelFor(page.page)"
254
+ >{{ page.page }}</a
255
+ >
256
+ } @else {
257
+ <button
258
+ type="button"
259
+ [ksdPaginationButton]="page"
260
+ [attr.aria-label]="labelFor(page.page)"
261
+ >
262
+ {{ page.page }}
263
+ </button>
264
+ }
265
+ </li>
266
+ } @else {
267
+ <li></li>
268
+ }
269
+ }
270
+ <li>
271
+ @if (href()) {
272
+ <a
273
+ [ksdPaginationButton]="pages().next"
274
+ [attr.href]="hrefFor(pages().next)"
275
+ [attr.aria-hidden]="pages().next ? null : 'true'"
276
+ >{{ nextLabel() }}</a
277
+ >
278
+ } @else {
279
+ <button
280
+ type="button"
281
+ [ksdPaginationButton]="pages().next"
282
+ [disabled]="!pages().next"
283
+ [attr.aria-hidden]="pages().next ? null : 'true'"
284
+ >
285
+ {{ nextLabel() }}
286
+ </button>
287
+ }
288
+ </li>
289
+ </ol>
290
+ </ng-content>
291
+ </ds-pagination>
292
+ `,
293
+ isInline: true,
294
+ dependencies: [{
295
+ kind: "directive",
296
+ type: PaginationButton,
297
+ selector: "[ksdPaginationButton]",
298
+ inputs: ["ksdPaginationButton"]
299
+ }],
300
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
301
+ });
302
+ };
303
+ i0.ɵɵngDeclareClassMetadata({
304
+ minVersion: "12.0.0",
305
+ version: "22.2.2",
306
+ ngImport: i0,
307
+ type: Pagination,
308
+ decorators: [{
309
+ type: Component,
310
+ args: [{
311
+ selector: "ksd-pagination",
312
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
313
+ imports: [PaginationButton],
314
+ changeDetection: ChangeDetectionStrategy.OnPush,
315
+ template: `
316
+ <ds-pagination
317
+ class="ds-pagination"
318
+ [attr.aria-label]="ariaLabel()"
319
+ (click)="onClick($event)"
320
+ >
321
+ <ng-content>
322
+ <ol>
323
+ <li>
324
+ @if (href()) {
325
+ <a
326
+ [ksdPaginationButton]="pages().prev"
327
+ [attr.href]="hrefFor(pages().prev)"
328
+ [attr.aria-hidden]="pages().prev ? null : 'true'"
329
+ >{{ previousLabel() }}</a
330
+ >
331
+ } @else {
332
+ <button
333
+ type="button"
334
+ [ksdPaginationButton]="pages().prev"
335
+ [disabled]="!pages().prev"
336
+ [attr.aria-hidden]="pages().prev ? null : 'true'"
337
+ >
338
+ {{ previousLabel() }}
339
+ </button>
340
+ }
341
+ </li>
342
+ @for (page of pages().pages; track page.key) {
343
+ @if (page.type === 'page') {
344
+ <li>
345
+ @if (href()) {
346
+ <a
347
+ [ksdPaginationButton]="page"
348
+ [attr.href]="hrefFor(page.page)"
349
+ [attr.aria-label]="labelFor(page.page)"
350
+ >{{ page.page }}</a
351
+ >
352
+ } @else {
353
+ <button
354
+ type="button"
355
+ [ksdPaginationButton]="page"
356
+ [attr.aria-label]="labelFor(page.page)"
357
+ >
358
+ {{ page.page }}
359
+ </button>
360
+ }
361
+ </li>
362
+ } @else {
363
+ <li></li>
364
+ }
365
+ }
366
+ <li>
367
+ @if (href()) {
368
+ <a
369
+ [ksdPaginationButton]="pages().next"
370
+ [attr.href]="hrefFor(pages().next)"
371
+ [attr.aria-hidden]="pages().next ? null : 'true'"
372
+ >{{ nextLabel() }}</a
373
+ >
374
+ } @else {
375
+ <button
376
+ type="button"
377
+ [ksdPaginationButton]="pages().next"
378
+ [disabled]="!pages().next"
379
+ [attr.aria-hidden]="pages().next ? null : 'true'"
380
+ >
381
+ {{ nextLabel() }}
382
+ </button>
383
+ }
384
+ </li>
385
+ </ol>
386
+ </ng-content>
387
+ </ds-pagination>
388
+ `,
389
+ hostDirectives: [{
390
+ directive: HostSize,
391
+ inputs: ["data-size"]
392
+ }, {
393
+ directive: HostColor,
394
+ inputs: ["data-color"]
395
+ }]
396
+ }]
397
+ }],
398
+ propDecorators: {
399
+ current: [{
400
+ type: i0.Input,
401
+ args: [{
402
+ isSignal: true,
403
+ alias: "current",
404
+ required: true
405
+ }]
406
+ }],
407
+ total: [{
408
+ type: i0.Input,
409
+ args: [{
410
+ isSignal: true,
411
+ alias: "total",
412
+ required: true
413
+ }]
414
+ }],
415
+ ariaLabel: [{
416
+ type: i0.Input,
417
+ args: [{
418
+ isSignal: true,
419
+ alias: "aria-label",
420
+ required: false
421
+ }]
422
+ }],
423
+ show: [{
424
+ type: i0.Input,
425
+ args: [{
426
+ isSignal: true,
427
+ alias: "show",
428
+ required: false
429
+ }]
430
+ }],
431
+ href: [{
432
+ type: i0.Input,
433
+ args: [{
434
+ isSignal: true,
435
+ alias: "href",
436
+ required: false
437
+ }]
438
+ }],
439
+ previousLabel: [{
440
+ type: i0.Input,
441
+ args: [{
442
+ isSignal: true,
443
+ alias: "previousLabel",
444
+ required: false
445
+ }]
446
+ }],
447
+ nextLabel: [{
448
+ type: i0.Input,
449
+ args: [{
450
+ isSignal: true,
451
+ alias: "nextLabel",
452
+ required: false
453
+ }]
454
+ }],
455
+ pageLabel: [{
456
+ type: i0.Input,
457
+ args: [{
458
+ isSignal: true,
459
+ alias: "pageLabel",
460
+ required: false
461
+ }]
462
+ }],
463
+ pageClicked: [{
464
+ type: i0.Output,
465
+ args: ["pageClicked"]
466
+ }]
467
+ }
468
+ });
469
+ export { Pagination, PaginationButton };
470
+
471
+ //# sourceMappingURL=ks-digital-designsystem-angular-pagination.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ks-digital-designsystem-angular-pagination.mjs","names":[],"sources":["../../../../packages/angular/pagination/src/pagination.button.ts","../../../../packages/angular/pagination/src/pagination.ts"],"sourcesContent":["import { computed, Directive, input } from '@angular/core'\nimport type { PaginationPage } from './pagination'\n\n/** Accepts a string so the valueless `<button ksdPaginationButton>` form still type-checks. */\ntype PageInput = PaginationPage | number | string | null | undefined\n\n@Directive({\n selector: '[ksdPaginationButton]',\n host: {\n class: 'ds-button',\n // The pagination CSS restores the primary look for [aria-current=true].\n 'data-variant': 'tertiary',\n '[attr.data-page]': 'pageNumber()',\n '[attr.aria-current]': 'isCurrent() ? \"true\" : null',\n },\n})\nexport class PaginationButton {\n /**\n * The page this control targets. Pass an entry from `pages().pages`, or a\n * number for the previous/next controls.\n */\n readonly page = input<PageInput>(null, { alias: 'ksdPaginationButton' })\n\n protected readonly pageNumber = computed(() => {\n const value = this.page()\n if (typeof value === 'number') return value || null\n if (typeof value === 'object' && value?.type === 'page') return value.page\n return null\n })\n\n protected readonly isCurrent = computed(() => {\n const value = this.page()\n return typeof value === 'object' && value?.type === 'page' && value.current\n })\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n input,\n numberAttribute,\n output,\n} from '@angular/core'\nimport { pagination } from '@digdir/designsystemet-web/ds-pagination'\nimport {\n HostColor,\n HostSize,\n} from '@ks-digital/designsystem-angular/__internals'\nimport { PaginationButton } from './pagination.button'\n\n/**\n * A page entry, or an ellipsis placeholder that renders as an empty `<li>`.\n */\nexport type PaginationPage =\n | { type: 'page'; page: number; current: boolean; key: string }\n | { type: 'ellipsis'; key: string }\n\nexport interface PaginationPages {\n pages: PaginationPage[]\n prev: number\n next: number\n}\n\n/** Open-in-new-tab and similar, which the browser should handle itself. */\nconst isModifiedClick = (e: MouseEvent) =>\n e.button !== 0 || e.ctrlKey || e.metaKey || e.shiftKey || e.altKey\n\n@Component({\n selector: 'ksd-pagination',\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n imports: [PaginationButton],\n changeDetection: ChangeDetectionStrategy.OnPush,\n // Deliberately no data-current/data-total. Those put <ds-pagination> into the\n // mode where it rewrites aria-label, role, tabindex, value and href on every\n // button/a child. We render the accessible markup ourselves instead.\n template: `\n <ds-pagination\n class=\"ds-pagination\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"onClick($event)\"\n >\n <ng-content>\n <ol>\n <li>\n @if (href()) {\n <a\n [ksdPaginationButton]=\"pages().prev\"\n [attr.href]=\"hrefFor(pages().prev)\"\n [attr.aria-hidden]=\"pages().prev ? null : 'true'\"\n >{{ previousLabel() }}</a\n >\n } @else {\n <button\n type=\"button\"\n [ksdPaginationButton]=\"pages().prev\"\n [disabled]=\"!pages().prev\"\n [attr.aria-hidden]=\"pages().prev ? null : 'true'\"\n >\n {{ previousLabel() }}\n </button>\n }\n </li>\n @for (page of pages().pages; track page.key) {\n @if (page.type === 'page') {\n <li>\n @if (href()) {\n <a\n [ksdPaginationButton]=\"page\"\n [attr.href]=\"hrefFor(page.page)\"\n [attr.aria-label]=\"labelFor(page.page)\"\n >{{ page.page }}</a\n >\n } @else {\n <button\n type=\"button\"\n [ksdPaginationButton]=\"page\"\n [attr.aria-label]=\"labelFor(page.page)\"\n >\n {{ page.page }}\n </button>\n }\n </li>\n } @else {\n <li></li>\n }\n }\n <li>\n @if (href()) {\n <a\n [ksdPaginationButton]=\"pages().next\"\n [attr.href]=\"hrefFor(pages().next)\"\n [attr.aria-hidden]=\"pages().next ? null : 'true'\"\n >{{ nextLabel() }}</a\n >\n } @else {\n <button\n type=\"button\"\n [ksdPaginationButton]=\"pages().next\"\n [disabled]=\"!pages().next\"\n [attr.aria-hidden]=\"pages().next ? null : 'true'\"\n >\n {{ nextLabel() }}\n </button>\n }\n </li>\n </ol>\n </ng-content>\n </ds-pagination>\n `,\n hostDirectives: [\n {\n directive: HostSize,\n inputs: ['data-size'],\n },\n {\n directive: HostColor,\n inputs: ['data-color'],\n },\n ],\n})\nexport class Pagination {\n /**\n * The current page\n */\n readonly current = input.required<number, string | number>({\n transform: numberAttribute,\n })\n\n /**\n * The total number of pages\n */\n readonly total = input.required<number, string | number>({\n transform: numberAttribute,\n })\n\n /**\n * Sets the screen reader label for the pagination\n */\n readonly ariaLabel = input<string>('Bla i sider', { alias: 'aria-label' })\n\n /**\n * How many pages to show. Default is 7\n */\n readonly show = input(7, {\n // numberAttribute defaults to NaN, which would collapse the page list.\n transform: (value: unknown) => numberAttribute(value, 7),\n })\n\n /**\n * E.g if \"?page=%d\" all the links will set href to \"?page=1\", \"?page=2\".\n */\n readonly href = input<string>()\n\n /**\n * Label for the previous button. Only used when no content is projected.\n */\n readonly previousLabel = input('Forrige')\n\n /**\n * Label for the next button. Only used when no content is projected.\n */\n readonly nextLabel = input('Neste')\n\n /**\n * Screen reader label for each page. Only used when no content is projected.\n */\n readonly pageLabel = input('Side %d')\n\n /**\n * Emits the page number when a page is clicked\n */\n readonly pageClicked = output<number>()\n\n /**\n * Exposes pagination data for consumer use\n */\n readonly pages = computed<PaginationPages>(() => {\n const result = pagination({\n current: this.current(),\n total: this.total(),\n show: this.show(),\n })\n return {\n pages: result.pages.map((p) =>\n // The page helper uses 0 as the ellipsis sentinel.\n p.page === 0\n ? { type: 'ellipsis', key: p.key }\n : {\n type: 'page',\n page: p.page,\n current: p.current === 'page',\n key: p.key,\n },\n ),\n prev: result.prev,\n next: result.next,\n }\n })\n\n protected hrefFor(page: number) {\n return page ? (this.href()?.replace('%d', String(page)) ?? null) : null\n }\n\n protected labelFor(page: number) {\n return this.pageLabel().replace('%d', String(page))\n }\n\n protected onClick(e: MouseEvent) {\n const root = e.currentTarget as HTMLElement\n const target = (e.target as HTMLElement).closest('button,a')\n if (!target || !root.contains(target)) return\n\n if (target.matches('a[href]') && isModifiedClick(e)) return\n\n const page = Number(target.getAttribute('data-page'))\n if (!page || page === this.current()) return\n\n e.preventDefault()\n this.pageClicked.emit(page)\n }\n}\n"],"mappings":";;;;;AAgBA,IAAa,mBAAb,MAAa,iBAAgB;CAKlB,OAAO,MAAiB,MAAI;EAAA,GAAA,YAAA,EAAA,WAAA,OAAA,+BAAA,CAAA;EAAI,OAAO;CAAqB,CAAA;CAElD,aAAa,eAAc;EAC5C,MAAM,QAAQ,KAAK,KAAI;EACvB,IAAI,OAAO,UAAU,UAAU,OAAO,SAAS;EAC/C,IAAI,OAAO,UAAU,YAAY,OAAO,SAAS,QAAQ,OAAO,MAAM;EACtE,OAAO;CACT,GAAE,GAAA,YAAA,CAAA,EAAA,WAAA,aAAA,CAAA,+BAAA,CAAA,CAAA;CAEiB,YAAY,eAAc;EAC3C,MAAM,QAAQ,KAAK,KAAI;EACvB,OAAO,OAAO,UAAU,YAAY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;GAAA,WAAA,GAAA;GAAA,QAAA,CAAA,cAAA,YAAA;EAAA,CAAA;EAAA,UAAA;EAAA,UArFX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyET,UAAA;EAAA,cAAA,CAAA;GAAA,MAAA;GAAA,MA9ES;GAAgB,UAAA;GAAA,QAAA,CAAA,qBAAA;EAAA,CAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AA0Ff,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAU,YAAA,CAAA;EA7FtB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,SAAS,CAAC,sBAAsB;GAChC,SAAS,CAAC,gBAAgB;GAC1B,iBAAiB,wBAAwB;GAIzC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EV,gBAAgB,CACd;IACE,WAAW;IACX,QAAQ,CAAC,WAAW;GACrB,GACD;IACE,WAAW;IACX,QAAQ,CAAC,YAAY;GACtB,CACF;EACF,CAAA"}
@@ -0,0 +1,42 @@
1
+ import * as i0 from "@angular/core";
2
+ import { ChangeDetectionStrategy, Component } from "@angular/core";
3
+ var Paragraph = class Paragraph {
4
+ static ɵfac = i0.ɵɵngDeclareFactory({
5
+ minVersion: "12.0.0",
6
+ version: "22.2.2",
7
+ ngImport: i0,
8
+ type: Paragraph,
9
+ deps: [],
10
+ target: i0.ɵɵFactoryTarget.Component
11
+ });
12
+ static ɵcmp = i0.ɵɵngDeclareComponent({
13
+ minVersion: "14.0.0",
14
+ version: "22.2.2",
15
+ type: Paragraph,
16
+ isStandalone: true,
17
+ selector: "p[ksd-paragraph]",
18
+ host: { classAttribute: "ds-paragraph" },
19
+ ngImport: i0,
20
+ template: `<ng-content />`,
21
+ isInline: true,
22
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
23
+ });
24
+ };
25
+ i0.ɵɵngDeclareClassMetadata({
26
+ minVersion: "12.0.0",
27
+ version: "22.2.2",
28
+ ngImport: i0,
29
+ type: Paragraph,
30
+ decorators: [{
31
+ type: Component,
32
+ args: [{
33
+ selector: "p[ksd-paragraph]",
34
+ changeDetection: ChangeDetectionStrategy.OnPush,
35
+ template: `<ng-content />`,
36
+ host: { class: "ds-paragraph" }
37
+ }]
38
+ }]
39
+ });
40
+ export { Paragraph };
41
+
42
+ //# sourceMappingURL=ks-digital-designsystem-angular-paragraph.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ks-digital-designsystem-angular-paragraph.mjs","names":[],"sources":["../../../../packages/angular/paragraph/src/paragraph.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component } from '@angular/core'\n\n@Component({\n selector: 'p[ksd-paragraph]',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `<ng-content />`,\n host: {\n class: 'ds-paragraph',\n },\n})\nexport class Paragraph {}\n"],"mappings":";;AAUA,IAAa,YAAb,MAAa,UAAS;CAAT,OAAA,OAAA,GAAA,mBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,UAAA;EAAA,MAAA;EAAS,MAAA,CAAA;EAAA,QAAA,GAAA,gBAAA;CAAA,CAAA;CAAT,OAAA,OAAA,GAAA,qBAAA;EAAA,YAAA;EAAA,SAAA;EAAA,MAAA;EAAS,cAAA;EAAA,UAAA;EAAA,MAAA,EAAA,gBAAA,eAAA;EAAA,UAAA;EAAA,UALV;EAAgB,UAAA;EAAA,iBAAA,GAAA,wBAAA;CAAA,CAAA;;AAKf,GAAA,yBAAA;CAAA,YAAA;CAAA,SAAA;CAAA,UAAA;CAAA,MAAA;CAAS,YAAA,CAAA;EARrB,MAAA;EAAU,MAAA,CAAA;GACT,UAAU;GACV,iBAAiB,wBAAwB;GACzC,UAAU;GACV,MAAM,EACJ,OAAO,eACR;EACF,CAAA"}