@propbinder/mobile-design 0.4.0 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -63
- package/assets/fonts/brockmann-medium-webfont.woff2 +0 -0
- package/assets/fonts/brockmann-mediumitalic-webfont.woff2 +0 -0
- package/assets/fonts/brockmann-regular-webfont.woff2 +0 -0
- package/assets/fonts/brockmann-regularitalic-webfont.woff2 +0 -0
- package/assets/fonts/brockmann-semibold-webfont.woff2 +0 -0
- package/assets/fonts/brockmann-semibolditalic-webfont.woff2 +0 -0
- package/fesm2022/{propbinder-mobile-design-ds-mobile-days-sheet-BsahIVaB.mjs → propbinder-mobile-design-ds-mobile-days-sheet-Bf7hxhB6.mjs} +51 -51
- package/fesm2022/propbinder-mobile-design-ds-mobile-days-sheet-Bf7hxhB6.mjs.map +1 -0
- package/fesm2022/{propbinder-mobile-design-ds-mobile-duration-sheet-Dun-o-dR.mjs → propbinder-mobile-design-ds-mobile-duration-sheet-BHTlCfU7.mjs} +173 -173
- package/fesm2022/propbinder-mobile-design-ds-mobile-duration-sheet-BHTlCfU7.mjs.map +1 -0
- package/fesm2022/{propbinder-mobile-design-ds-mobile-time-sheet-B9Ny4wM7.mjs → propbinder-mobile-design-ds-mobile-time-sheet-CrUB7zl-.mjs} +69 -69
- package/fesm2022/propbinder-mobile-design-ds-mobile-time-sheet-CrUB7zl-.mjs.map +1 -0
- package/fesm2022/propbinder-mobile-design.mjs +14770 -14770
- package/fesm2022/propbinder-mobile-design.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
- package/styles/ionic.css +989 -989
- package/styles/mobile-common.css +155 -155
- package/styles/mobile-page-base.css +338 -338
- package/fesm2022/propbinder-mobile-design-ds-mobile-days-sheet-BsahIVaB.mjs.map +0 -1
- package/fesm2022/propbinder-mobile-design-ds-mobile-duration-sheet-Dun-o-dR.mjs.map +0 -1
- package/fesm2022/propbinder-mobile-design-ds-mobile-time-sheet-B9Ny4wM7.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
# MobileDesignLib
|
|
2
|
-
|
|
3
|
-
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
ng generate component component-name
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
ng generate --help
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Building
|
|
20
|
-
|
|
21
|
-
To build the library, run:
|
|
22
|
-
|
|
23
|
-
```bash
|
|
24
|
-
ng build mobile-design-lib
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
-
|
|
29
|
-
### Publishing the Library
|
|
30
|
-
|
|
31
|
-
Once the project is built, you can publish your library by following these steps:
|
|
32
|
-
|
|
33
|
-
1. Navigate to the `dist` directory:
|
|
34
|
-
```bash
|
|
35
|
-
cd dist/mobile-design-lib
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
-
```bash
|
|
40
|
-
npm publish
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Running unit tests
|
|
44
|
-
|
|
45
|
-
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
ng test
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## Running end-to-end tests
|
|
52
|
-
|
|
53
|
-
For end-to-end (e2e) testing, run:
|
|
54
|
-
|
|
55
|
-
```bash
|
|
56
|
-
ng e2e
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
60
|
-
|
|
61
|
-
## Additional Resources
|
|
62
|
-
|
|
63
|
-
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
1
|
+
# MobileDesignLib
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 20.3.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build mobile-design-lib
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
+
|
|
29
|
+
### Publishing the Library
|
|
30
|
+
|
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
|
32
|
+
|
|
33
|
+
1. Navigate to the `dist` directory:
|
|
34
|
+
```bash
|
|
35
|
+
cd dist/mobile-design-lib
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
+
```bash
|
|
40
|
+
npm publish
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Running unit tests
|
|
44
|
+
|
|
45
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
ng test
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Running end-to-end tests
|
|
52
|
+
|
|
53
|
+
For end-to-end (e2e) testing, run:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ng e2e
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
60
|
+
|
|
61
|
+
## Additional Resources
|
|
62
|
+
|
|
63
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -47,31 +47,31 @@ class DsMobileDaysSheetComponent {
|
|
|
47
47
|
this.modalController.dismiss(null, 'cancel');
|
|
48
48
|
}
|
|
49
49
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DsMobileDaysSheetComponent, deps: [{ token: i1.ModalController }], target: i0.ɵɵFactoryTarget.Component });
|
|
50
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.23", type: DsMobileDaysSheetComponent, isStandalone: true, selector: "ds-mobile-days-sheet", inputs: { initialDays: "initialDays" }, ngImport: i0, template: `
|
|
51
|
-
<ds-mobile-bottom-sheet-wrapper>
|
|
52
|
-
<ds-mobile-bottom-sheet-header
|
|
53
|
-
title="Dagene"
|
|
54
|
-
leftButtonLabel="Annuller"
|
|
55
|
-
rightButtonLabel="Gem"
|
|
56
|
-
[rightButtonDisabled]="!isValid()"
|
|
57
|
-
(leftButtonClick)="dismiss()"
|
|
58
|
-
(rightButtonClick)="confirmSelection()">
|
|
59
|
-
</ds-mobile-bottom-sheet-header>
|
|
60
|
-
|
|
61
|
-
<div class="sheet-content">
|
|
62
|
-
<div class="day-grid">
|
|
63
|
-
@for (day of days; track day.full) {
|
|
64
|
-
<button
|
|
65
|
-
type="button"
|
|
66
|
-
class="day-chip"
|
|
67
|
-
[class.active]="selectedDays().has(day.full)"
|
|
68
|
-
(click)="toggleDay(day.full)">
|
|
69
|
-
{{ day.full }}
|
|
70
|
-
</button>
|
|
71
|
-
}
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
</ds-mobile-bottom-sheet-wrapper>
|
|
50
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.23", type: DsMobileDaysSheetComponent, isStandalone: true, selector: "ds-mobile-days-sheet", inputs: { initialDays: "initialDays" }, ngImport: i0, template: `
|
|
51
|
+
<ds-mobile-bottom-sheet-wrapper>
|
|
52
|
+
<ds-mobile-bottom-sheet-header
|
|
53
|
+
title="Dagene"
|
|
54
|
+
leftButtonLabel="Annuller"
|
|
55
|
+
rightButtonLabel="Gem"
|
|
56
|
+
[rightButtonDisabled]="!isValid()"
|
|
57
|
+
(leftButtonClick)="dismiss()"
|
|
58
|
+
(rightButtonClick)="confirmSelection()">
|
|
59
|
+
</ds-mobile-bottom-sheet-header>
|
|
60
|
+
|
|
61
|
+
<div class="sheet-content">
|
|
62
|
+
<div class="day-grid">
|
|
63
|
+
@for (day of days; track day.full) {
|
|
64
|
+
<button
|
|
65
|
+
type="button"
|
|
66
|
+
class="day-chip"
|
|
67
|
+
[class.active]="selectedDays().has(day.full)"
|
|
68
|
+
(click)="toggleDay(day.full)">
|
|
69
|
+
{{ day.full }}
|
|
70
|
+
</button>
|
|
71
|
+
}
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</ds-mobile-bottom-sheet-wrapper>
|
|
75
75
|
`, isInline: true, styles: [".sheet-content{padding:16px}.day-grid{display:flex;flex-wrap:wrap;gap:8px}.day-chip{display:flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border-radius:99px;border:none;background:var(--color-background-neutral-secondary, #f6f7f8);font-family:Brockmann,sans-serif;font-size:var(--font-size-sm, 14px);font-weight:500;line-height:18px;letter-spacing:-.56px;color:var(--text-color-default-primary, #202227);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s ease,color .15s ease}.day-chip:hover:not(.active){background:var(--color-background-neutral-secondary-hover, #ebebeb)}.day-chip:active{opacity:.7}.day-chip:focus-visible{outline:2px solid var(--color-brand-primary, #5d5fef);outline-offset:2px}.day-chip.active{background:var(--color-accent, #6b5ff5);color:#fff}\n"], dependencies: [{ kind: "component", type: DsMobileBottomSheetWrapperComponent, selector: "ds-mobile-bottom-sheet-wrapper", inputs: ["showDragHandle"] }, { kind: "component", type: DsMobileBottomSheetHeaderComponent, selector: "ds-mobile-bottom-sheet-header", inputs: ["title", "leftButtonLabel", "rightButtonLabel", "rightButtonDisabled", "rightButtonLoading", "showLeftButton", "showRightButton"], outputs: ["leftButtonClick", "rightButtonClick"] }] });
|
|
76
76
|
}
|
|
77
77
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: DsMobileDaysSheetComponent, decorators: [{
|
|
@@ -79,31 +79,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImpo
|
|
|
79
79
|
args: [{ selector: 'ds-mobile-days-sheet', standalone: true, schemas: [CUSTOM_ELEMENTS_SCHEMA], imports: [
|
|
80
80
|
DsMobileBottomSheetWrapperComponent,
|
|
81
81
|
DsMobileBottomSheetHeaderComponent,
|
|
82
|
-
], template: `
|
|
83
|
-
<ds-mobile-bottom-sheet-wrapper>
|
|
84
|
-
<ds-mobile-bottom-sheet-header
|
|
85
|
-
title="Dagene"
|
|
86
|
-
leftButtonLabel="Annuller"
|
|
87
|
-
rightButtonLabel="Gem"
|
|
88
|
-
[rightButtonDisabled]="!isValid()"
|
|
89
|
-
(leftButtonClick)="dismiss()"
|
|
90
|
-
(rightButtonClick)="confirmSelection()">
|
|
91
|
-
</ds-mobile-bottom-sheet-header>
|
|
92
|
-
|
|
93
|
-
<div class="sheet-content">
|
|
94
|
-
<div class="day-grid">
|
|
95
|
-
@for (day of days; track day.full) {
|
|
96
|
-
<button
|
|
97
|
-
type="button"
|
|
98
|
-
class="day-chip"
|
|
99
|
-
[class.active]="selectedDays().has(day.full)"
|
|
100
|
-
(click)="toggleDay(day.full)">
|
|
101
|
-
{{ day.full }}
|
|
102
|
-
</button>
|
|
103
|
-
}
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
</ds-mobile-bottom-sheet-wrapper>
|
|
82
|
+
], template: `
|
|
83
|
+
<ds-mobile-bottom-sheet-wrapper>
|
|
84
|
+
<ds-mobile-bottom-sheet-header
|
|
85
|
+
title="Dagene"
|
|
86
|
+
leftButtonLabel="Annuller"
|
|
87
|
+
rightButtonLabel="Gem"
|
|
88
|
+
[rightButtonDisabled]="!isValid()"
|
|
89
|
+
(leftButtonClick)="dismiss()"
|
|
90
|
+
(rightButtonClick)="confirmSelection()">
|
|
91
|
+
</ds-mobile-bottom-sheet-header>
|
|
92
|
+
|
|
93
|
+
<div class="sheet-content">
|
|
94
|
+
<div class="day-grid">
|
|
95
|
+
@for (day of days; track day.full) {
|
|
96
|
+
<button
|
|
97
|
+
type="button"
|
|
98
|
+
class="day-chip"
|
|
99
|
+
[class.active]="selectedDays().has(day.full)"
|
|
100
|
+
(click)="toggleDay(day.full)">
|
|
101
|
+
{{ day.full }}
|
|
102
|
+
</button>
|
|
103
|
+
}
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</ds-mobile-bottom-sheet-wrapper>
|
|
107
107
|
`, styles: [".sheet-content{padding:16px}.day-grid{display:flex;flex-wrap:wrap;gap:8px}.day-chip{display:flex;align-items:center;justify-content:center;height:40px;padding:0 16px;border-radius:99px;border:none;background:var(--color-background-neutral-secondary, #f6f7f8);font-family:Brockmann,sans-serif;font-size:var(--font-size-sm, 14px);font-weight:500;line-height:18px;letter-spacing:-.56px;color:var(--text-color-default-primary, #202227);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background .15s ease,color .15s ease}.day-chip:hover:not(.active){background:var(--color-background-neutral-secondary-hover, #ebebeb)}.day-chip:active{opacity:.7}.day-chip:focus-visible{outline:2px solid var(--color-brand-primary, #5d5fef);outline-offset:2px}.day-chip.active{background:var(--color-accent, #6b5ff5);color:#fff}\n"] }]
|
|
108
108
|
}], ctorParameters: () => [{ type: i1.ModalController }], propDecorators: { initialDays: [{
|
|
109
109
|
type: Input
|
|
@@ -145,4 +145,4 @@ function formatDaysLabel(keys) {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
export { DsMobileDaysSheetComponent, formatDaysLabel };
|
|
148
|
-
//# sourceMappingURL=propbinder-mobile-design-ds-mobile-days-sheet-
|
|
148
|
+
//# sourceMappingURL=propbinder-mobile-design-ds-mobile-days-sheet-Bf7hxhB6.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propbinder-mobile-design-ds-mobile-days-sheet-Bf7hxhB6.mjs","sources":["../../../projects/mobile-design-lib/src/components/facility-creation-modal/sheets/ds-mobile-days-sheet.ts"],"sourcesContent":["import { Component, signal, computed, Input, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\nimport { ModalController } from '@ionic/angular/standalone';\nimport { DsMobileBottomSheetWrapperComponent } from '../../bottom-sheet/ds-mobile-bottom-sheet-wrapper';\nimport { DsMobileBottomSheetHeaderComponent } from '../../bottom-sheet/ds-mobile-bottom-sheet-header';\n\nconst ALL_DAYS = [\n { full: 'Mandag', short: 'Man', key: 'man' },\n { full: 'Tirsdag', short: 'Tir', key: 'tir' },\n { full: 'Onsdag', short: 'Ons', key: 'ons' },\n { full: 'Torsdag', short: 'Tor', key: 'tor' },\n { full: 'Fredag', short: 'Fre', key: 'fre' },\n { full: 'Lørdag', short: 'Lør', key: 'lør' },\n { full: 'Søndag', short: 'Søn', key: 'søn' },\n];\n\nconst WEEKDAY_KEYS = new Set(['man', 'tir', 'ons', 'tor', 'fre']);\nconst WEEKEND_KEYS = new Set(['lør', 'søn']);\n\n@Component({\n selector: 'ds-mobile-days-sheet',\n standalone: true,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n imports: [\n DsMobileBottomSheetWrapperComponent,\n DsMobileBottomSheetHeaderComponent,\n ],\n template: `\n <ds-mobile-bottom-sheet-wrapper>\n <ds-mobile-bottom-sheet-header\n title=\"Dagene\"\n leftButtonLabel=\"Annuller\"\n rightButtonLabel=\"Gem\"\n [rightButtonDisabled]=\"!isValid()\"\n (leftButtonClick)=\"dismiss()\"\n (rightButtonClick)=\"confirmSelection()\">\n </ds-mobile-bottom-sheet-header>\n\n <div class=\"sheet-content\">\n <div class=\"day-grid\">\n @for (day of days; track day.full) {\n <button\n type=\"button\"\n class=\"day-chip\"\n [class.active]=\"selectedDays().has(day.full)\"\n (click)=\"toggleDay(day.full)\">\n {{ day.full }}\n </button>\n }\n </div>\n </div>\n </ds-mobile-bottom-sheet-wrapper>\n `,\n styles: [`\n .sheet-content {\n padding: 16px;\n }\n\n .day-grid {\n display: flex;\n flex-wrap: wrap;\n gap: 8px;\n }\n\n .day-chip {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 40px;\n padding: 0 16px;\n border-radius: 99px;\n border: none;\n background: var(--color-background-neutral-secondary, #f6f7f8);\n font-family: 'Brockmann', sans-serif;\n font-size: var(--font-size-sm, 14px);\n font-weight: 500;\n line-height: 18px;\n letter-spacing: -0.56px;\n color: var(--text-color-default-primary, #202227);\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n transition: background 0.15s ease, color 0.15s ease;\n }\n\n .day-chip:hover:not(.active) {\n background: var(--color-background-neutral-secondary-hover, #ebebeb);\n }\n\n .day-chip:active {\n opacity: 0.7;\n }\n\n .day-chip:focus-visible {\n outline: 2px solid var(--color-brand-primary, #5d5fef);\n outline-offset: 2px;\n }\n\n .day-chip.active {\n background: var(--color-accent, #6b5ff5);\n color: white;\n }\n `],\n})\nexport class DsMobileDaysSheetComponent {\n @Input() initialDays?: string[];\n\n days = ALL_DAYS;\n selectedDays = signal<Set<string>>(new Set());\n\n isValid = computed(() => this.selectedDays().size > 0);\n\n constructor(private modalController: ModalController) {}\n\n ngOnInit(): void {\n if (this.initialDays?.length) {\n const fullNames = this.initialDays.map(\n (short) => ALL_DAYS.find((d) => d.short === short || d.full === short)?.full\n ).filter(Boolean) as string[];\n this.selectedDays.set(new Set(fullNames));\n } else {\n this.selectedDays.set(new Set(['Fredag', 'Lørdag', 'Søndag']));\n }\n }\n\n toggleDay(day: string): void {\n const current = new Set(this.selectedDays());\n current.has(day) ? current.delete(day) : current.add(day);\n this.selectedDays.set(current);\n }\n\n confirmSelection(): void {\n const selected = this.selectedDays();\n const days = ALL_DAYS.filter((d) => selected.has(d.full)).map((d) => d.short);\n const label = formatDaysLabel(days.map((s) => s.toLowerCase()));\n this.modalController.dismiss({ label, days }, 'select');\n }\n\n dismiss(): void {\n this.modalController.dismiss(null, 'cancel');\n }\n}\n\nconst CANONICAL_ORDER = ['man', 'tir', 'ons', 'tor', 'fre', 'lør', 'søn'];\n\nconst FULL_NAME: Record<string, string> = {\n man: 'Mandag', tir: 'Tirsdag', ons: 'Onsdag', tor: 'Torsdag',\n fre: 'Fredag', lør: 'Lørdag', søn: 'Søndag',\n};\n\nfunction capitalize(s: string): string {\n return s.charAt(0).toUpperCase() + s.slice(1);\n}\n\n/**\n * Given an array of lowercase weekday keys (e.g. [\"fre\",\"lør\",\"søn\"]),\n * returns a concise Danish label for display.\n */\nexport function formatDaysLabel(keys: string[]): string {\n const set = new Set(keys);\n\n if (set.size === 7) return 'Alle dage';\n\n if (set.size === 5 && [...WEEKDAY_KEYS].every((k) => set.has(k))) return 'Hverdage';\n\n if (set.size === 2 && [...WEEKEND_KEYS].every((k) => set.has(k))) return 'Weekend';\n\n if (set.size === 1) return FULL_NAME[keys[0]] ?? capitalize(keys[0]);\n\n const indices = CANONICAL_ORDER\n .map((d, i) => (set.has(d) ? i : -1))\n .filter((i) => i !== -1);\n\n if (indices.length >= 2) {\n const isConsecutive = indices.every(\n (val, i) => i === 0 || val === indices[i - 1] + 1\n );\n if (isConsecutive) {\n const start = capitalize(CANONICAL_ORDER[indices[0]]);\n const end = CANONICAL_ORDER[indices[indices.length - 1]];\n return `${start}\\u2013${end}`;\n }\n }\n\n return 'Udvalgte dage';\n}\n"],"names":[],"mappings":";;;;;AAKA,MAAM,QAAQ,GAAG;IACf,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE;IAC5C,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE;IAC7C,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE;IAC5C,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE;IAC7C,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE;IAC5C,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE;IAC5C,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE;CAC7C;AAED,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AACjE,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;MAsF/B,0BAA0B,CAAA;AAQjB,IAAA,eAAA;AAPX,IAAA,WAAW;IAEpB,IAAI,GAAG,QAAQ;AACf,IAAA,YAAY,GAAG,MAAM,CAAc,IAAI,GAAG,EAAE,wDAAC;AAE7C,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,YAAY,EAAE,CAAC,IAAI,GAAG,CAA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