@stoa-dev/kit 0.1.3 → 1.0.0
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/CHANGELOG.md +64 -0
- package/README.md +23 -2
- package/dist/display/BarChart/index.js +70 -0
- package/dist/display/BarChart/index.js.map +1 -0
- package/dist/display/Marginalia/index.js +16 -0
- package/dist/display/Marginalia/index.js.map +1 -0
- package/dist/display/MarginaliaFramed/index.js +19 -0
- package/dist/display/MarginaliaFramed/index.js.map +1 -0
- package/dist/display/MarginaliaPair/index.js +32 -0
- package/dist/display/MarginaliaPair/index.js.map +1 -0
- package/dist/display/ProgressBar/index.js +72 -0
- package/dist/display/ProgressBar/index.js.map +1 -0
- package/dist/display/TimeMeasured/index.js +38 -0
- package/dist/display/TimeMeasured/index.js.map +1 -0
- package/dist/display/index.js +16 -0
- package/dist/display/index.js.map +1 -0
- package/dist/i18n/locales/at.json.js +8 -4
- package/dist/i18n/locales/at.json.js.map +1 -1
- package/dist/i18n/locales/de.json.js +8 -4
- package/dist/i18n/locales/de.json.js.map +1 -1
- package/dist/i18n/locales/en.json.js +8 -4
- package/dist/i18n/locales/en.json.js.map +1 -1
- package/dist/i18n/locales/it.json.js +10 -6
- package/dist/i18n/locales/it.json.js.map +1 -1
- package/dist/shell/AnimatedSwap/index.js +61 -0
- package/dist/shell/AnimatedSwap/index.js.map +1 -0
- package/dist/shell/AppNavigation/index.js +62 -43
- package/dist/shell/AppNavigation/index.js.map +1 -1
- package/dist/shell/BrandLines/index.js +14 -12
- package/dist/shell/BrandLines/index.js.map +1 -1
- package/dist/shell/DatePicker/index.js +134 -127
- package/dist/shell/DatePicker/index.js.map +1 -1
- package/dist/shell/ExternalLink/index.js +30 -0
- package/dist/shell/ExternalLink/index.js.map +1 -0
- package/dist/shell/PageHeading/index.js +15 -8
- package/dist/shell/PageHeading/index.js.map +1 -1
- package/dist/shell/SaveStatus/index.js +61 -0
- package/dist/shell/SaveStatus/index.js.map +1 -0
- package/dist/shell/SectionNavigation/index.js +29 -27
- package/dist/shell/SectionNavigation/index.js.map +1 -1
- package/dist/shell/StartupAnimation/index.js +88 -0
- package/dist/shell/StartupAnimation/index.js.map +1 -0
- package/dist/shell/StartupProvider/index.js +37 -0
- package/dist/shell/StartupProvider/index.js.map +1 -0
- package/dist/shell/TagInput/index.js +93 -0
- package/dist/shell/TagInput/index.js.map +1 -0
- package/dist/shell/ValidatedInput/index.js +31 -0
- package/dist/shell/ValidatedInput/index.js.map +1 -0
- package/dist/shell/index.js +41 -24
- package/dist/shell/index.js.map +1 -1
- package/dist/types/display/BarChart/index.d.ts +25 -0
- package/dist/types/display/BarChart/index.d.ts.map +1 -0
- package/dist/types/display/Marginalia/index.d.ts +8 -0
- package/dist/types/display/Marginalia/index.d.ts.map +1 -0
- package/dist/types/display/MarginaliaFramed/index.d.ts +8 -0
- package/dist/types/display/MarginaliaFramed/index.d.ts.map +1 -0
- package/dist/types/display/MarginaliaPair/index.d.ts +9 -0
- package/dist/types/display/MarginaliaPair/index.d.ts.map +1 -0
- package/dist/types/display/ProgressBar/index.d.ts +19 -0
- package/dist/types/display/ProgressBar/index.d.ts.map +1 -0
- package/dist/types/display/TimeMeasured/index.d.ts +16 -0
- package/dist/types/display/TimeMeasured/index.d.ts.map +1 -0
- package/dist/types/display/index.d.ts +7 -0
- package/dist/types/display/index.d.ts.map +1 -0
- package/dist/types/i18n/index.d.ts +44 -0
- package/dist/types/i18n/index.d.ts.map +1 -1
- package/dist/types/shell/AnimatedSwap/index.d.ts +13 -0
- package/dist/types/shell/AnimatedSwap/index.d.ts.map +1 -0
- package/dist/types/shell/AppNavigation/index.d.ts.map +1 -1
- package/dist/types/shell/BrandLines/index.d.ts.map +1 -1
- package/dist/types/shell/DatePicker/index.d.ts +5 -1
- package/dist/types/shell/DatePicker/index.d.ts.map +1 -1
- package/dist/types/shell/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/shell/ExternalLink/index.d.ts +10 -0
- package/dist/types/shell/ExternalLink/index.d.ts.map +1 -0
- package/dist/types/shell/PageHeading/index.d.ts.map +1 -1
- package/dist/types/shell/SaveStatus/index.d.ts +15 -0
- package/dist/types/shell/SaveStatus/index.d.ts.map +1 -0
- package/dist/types/shell/SectionNavigation/index.d.ts.map +1 -1
- package/dist/types/shell/StartupAnimation/index.d.ts +26 -0
- package/dist/types/shell/StartupAnimation/index.d.ts.map +1 -0
- package/dist/types/shell/StartupProvider/index.d.ts +22 -0
- package/dist/types/shell/StartupProvider/index.d.ts.map +1 -0
- package/dist/types/shell/TagInput/index.d.ts +20 -0
- package/dist/types/shell/TagInput/index.d.ts.map +1 -0
- package/dist/types/shell/ValidatedInput/index.d.ts +17 -0
- package/dist/types/shell/ValidatedInput/index.d.ts.map +1 -0
- package/dist/types/shell/index.d.ts +7 -0
- package/dist/types/shell/index.d.ts.map +1 -1
- package/dist/types/ui/field/index.d.ts +1 -1
- package/dist/types/ui/input-group/index.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/saveFeedback.d.ts +35 -0
- package/dist/types/utils/saveFeedback.d.ts.map +1 -0
- package/dist/ui/input-group/index.js +25 -24
- package/dist/ui/input-group/index.js.map +1 -1
- package/dist/utils/index.js +5 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/saveFeedback.js +54 -0
- package/dist/utils/saveFeedback.js.map +1 -0
- package/package.json +8 -2
- package/styles/instrument.css +705 -0
- package/styles/theme.css +1 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# Changelog — @stoa-dev/kit
|
|
2
|
+
|
|
3
|
+
## 1.0.0
|
|
4
|
+
|
|
5
|
+
Erste stabile Version: neues Design, neue Anzeige-Bausteine und die gemeinsamen
|
|
6
|
+
Teile der Apps im Kit.
|
|
7
|
+
|
|
8
|
+
### Neu
|
|
9
|
+
|
|
10
|
+
- **Skin „Instrument“** (`@stoa-dev/kit/instrument.css`, Klasse `stoa-instrument` auf
|
|
11
|
+
`<html>`, hell und dunkel): ruhige, papiergraue Flächen mit großen Rundungen,
|
|
12
|
+
kräftige Linien, Mono-Versalien für Beschriftungen und Buttons, Schwarz für aktive
|
|
13
|
+
Zustände, die App-Akzentfarbe nur als kleiner Indikator. Schriften: Mona Sans und
|
|
14
|
+
Mona Sans Mono.
|
|
15
|
+
- **`@stoa-dev/kit/display`**: `MarginaliaPair`, `Marginalia`, `MarginaliaFramed`,
|
|
16
|
+
`TimeMeasured`, `ProgressBar`, `BarChart`/`BarChartItem` (vertikal und horizontal).
|
|
17
|
+
- **Aus den Apps übernommen** (`@stoa-dev/kit/shell`): `StartupProvider`/`useStartup`,
|
|
18
|
+
`StartupAnimation`, `SaveStatus`, `TagInput`, `ValidatedInput` (+ `fieldFeedback`),
|
|
19
|
+
`ExternalLink`, `AnimatedSwap`; in `@stoa-dev/kit/utils`: `SaveFeedback`.
|
|
20
|
+
- Kit-Texte für Laden der Einstellungen, Autosave, Schlagwörter und „Erneut versuchen“
|
|
21
|
+
(de, de-AT, en, it).
|
|
22
|
+
- Stabile `data-slot`-Attribute an AppNavigation, PageHeading, BrandLines und
|
|
23
|
+
SectionNavigation.
|
|
24
|
+
|
|
25
|
+
### Geändert
|
|
26
|
+
|
|
27
|
+
- `DatePickerInput`: Der Kalender zeigt immer sechs Wochenzeilen; Höhe und
|
|
28
|
+
Monatspfeile bleiben beim Blättern stabil.
|
|
29
|
+
- Theme: `font-mono` ist Mona Sans Mono (Fallback: System-Monospace).
|
|
30
|
+
|
|
31
|
+
### Umstieg von 0.1.x
|
|
32
|
+
|
|
33
|
+
Keine entfernten oder umbenannten Exporte; bestehende Apps bauen unverändert.
|
|
34
|
+
Empfohlen beim Integrieren:
|
|
35
|
+
|
|
36
|
+
1. App-eigene Kopien von StartupAnimation/StartupProvider, SaveStatus, TagInput,
|
|
37
|
+
ValidatedInput, ExternalLink und AnimatedActionRow durch die Kit-Versionen ersetzen.
|
|
38
|
+
2. Für den Skin `@stoa-dev/kit/instrument.css` nach `theme.css` importieren und
|
|
39
|
+
`stoa-instrument` auf `<html>` setzen.
|
|
40
|
+
3. Mona Sans Mono einbinden (github.com/github/mona-sans, SIL OFL), sonst greift die
|
|
41
|
+
System-Monospace.
|
|
42
|
+
|
|
43
|
+
## 0.1.4
|
|
44
|
+
|
|
45
|
+
- `DatePickerInput`: Auswahllisten für Monat und Jahr (100 Jahre zurück, 10 voraus,
|
|
46
|
+
per `startMonth`/`endMonth` änderbar).
|
|
47
|
+
- `InputGroupAddon`: Klicks aus Portalen (z. B. dem Kalender-Popover) setzen den Fokus
|
|
48
|
+
nicht mehr ins Feld.
|
|
49
|
+
|
|
50
|
+
## 0.1.3
|
|
51
|
+
|
|
52
|
+
- Dropdown-Menüs passen sich dem Inhalt an: mindestens 12rem, höchstens 20rem.
|
|
53
|
+
|
|
54
|
+
## 0.1.2
|
|
55
|
+
|
|
56
|
+
- App-spezifische Link-Hover-Farbe aus dem gemeinsamen Theme entfernt.
|
|
57
|
+
|
|
58
|
+
## 0.1.1
|
|
59
|
+
|
|
60
|
+
- Repository-Metadaten, stabile CSS-Modul-Klassennamen.
|
|
61
|
+
|
|
62
|
+
## 0.1.0
|
|
63
|
+
|
|
64
|
+
- Erste Veröffentlichung.
|
package/README.md
CHANGED
|
@@ -5,12 +5,14 @@ Gemeinsame React-Komponenten, Hooks, Hilfsfunktionen, Lizenz-UI und Theme der ST
|
|
|
5
5
|
| Import | Inhalt |
|
|
6
6
|
|---|---|
|
|
7
7
|
| `@stoa-dev/kit/ui` | shadcn-Primitives (Button, Dialog, Select, Calendar, …) |
|
|
8
|
-
| `@stoa-dev/kit/shell` | AppNavigation, SectionNavigation, PageHeading, BrandLines, Spinner, BackHomeButton, ErrorBoundary, ConfirmDialog, DatePickerInput, NativeSelect, UploadButton |
|
|
8
|
+
| `@stoa-dev/kit/shell` | AppNavigation, SectionNavigation, PageHeading, BrandLines, Spinner, BackHomeButton, ErrorBoundary, ConfirmDialog, DatePickerInput, NativeSelect, UploadButton, StartupProvider/`useStartup`, StartupAnimation, SaveStatus, TagInput, ValidatedInput, ExternalLink, AnimatedSwap |
|
|
9
|
+
| `@stoa-dev/kit/display` | MarginaliaPair, Marginalia, MarginaliaFramed, TimeMeasured, ProgressBar, BarChart/BarChartItem |
|
|
9
10
|
| `@stoa-dev/kit/licensing` | LicenseProvider/`useLicense`, LicenseGate, LicenseCard, LicenseActivation, LicenseStatusBanner, Tauri-API |
|
|
10
11
|
| `@stoa-dev/kit/hooks` | `useOnlineStatus`, `useRouting<Route>()` |
|
|
11
|
-
| `@stoa-dev/kit/utils` | `cn`, `formatDate`, `formatTimestamp`, `parseHexColor`, … |
|
|
12
|
+
| `@stoa-dev/kit/utils` | `cn`, `formatDate`, `formatTimestamp`, `parseHexColor`, `SaveFeedback`, … |
|
|
12
13
|
| `@stoa-dev/kit/i18n` | `registerStoaLocales`, `supportedLanguages`, Namespace `stoa` (de, de-AT, en, it) |
|
|
13
14
|
| `@stoa-dev/kit/theme.css` | Tailwind-4-Tokens (shadcn-Variablen + STOA-Extras), Quelle für die App-Tailwind |
|
|
15
|
+
| `@stoa-dev/kit/instrument.css` | Skin „Instrument“ (siehe unten) |
|
|
14
16
|
| `@stoa-dev/kit/styles.css` | Kompilierte SCSS-Module der Komponenten |
|
|
15
17
|
| `@stoa-dev/kit/scss` | SCSS-Werkzeuge (`reduced-motion`, `dark`, `accent-mix`, …) für App-Module |
|
|
16
18
|
|
|
@@ -79,3 +81,22 @@ cd ../practicr && npm link ../stoa-dev/packages/kit
|
|
|
79
81
|
|
|
80
82
|
Vite: Bei verlinkten Paketen `resolve.dedupe: ['react', 'react-dom', 'react-router', 'i18next', 'react-i18next']`
|
|
81
83
|
setzen, damit Kontext-Provider (Router, i18n) nicht doppelt geladen werden.
|
|
84
|
+
|
|
85
|
+
## Skin „Instrument“
|
|
86
|
+
|
|
87
|
+
Ruhiges, monochromes Instrumenten-Design: papiergraue, stark gerundete Flächen mit viel Luft,
|
|
88
|
+
kräftige Linien, Mono-Versalien für Beschriftungen und Buttons, Pillen-Buttons und Schwarz
|
|
89
|
+
für aktive Zustände (auch die hervorgehobene Zeile im Kontextmenü).
|
|
90
|
+
Die App-Akzentfarbe bleibt nur als kleiner Indikator erhalten.
|
|
91
|
+
|
|
92
|
+
```css
|
|
93
|
+
@import "@stoa-dev/kit/theme.css";
|
|
94
|
+
@import "@stoa-dev/kit/instrument.css";
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Aktiv wird er mit der Klasse `stoa-instrument` auf `<html>` (zusammen mit `dark` für die dunkle
|
|
98
|
+
Variante). Der Skin greift nur über `data-slot`-Attribute und braucht für die Beschriftungen
|
|
99
|
+
die Schriften „Mona Sans“ und „Mona Sans Mono“ (github.com/github/mona-sans, SIL OFL; sonst
|
|
100
|
+
Fallback auf Geist bzw. die System-Monospace). Im Storybook über die
|
|
101
|
+
Toolbar „Design“ umschaltbar.
|
|
102
|
+
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as a, jsxs as i } from "react/jsx-runtime";
|
|
2
|
+
import { Children as c, useContext as d, isValidElement as u, createContext as h } from "react";
|
|
3
|
+
import { cn as f } from "../../utils/cn.js";
|
|
4
|
+
const m = h({
|
|
5
|
+
max: 1,
|
|
6
|
+
variant: "vertical"
|
|
7
|
+
});
|
|
8
|
+
function g(t) {
|
|
9
|
+
return u(t) && Number(t.props.value) || 0;
|
|
10
|
+
}
|
|
11
|
+
function N({
|
|
12
|
+
children: t,
|
|
13
|
+
variant: e = "vertical",
|
|
14
|
+
max: n,
|
|
15
|
+
label: s,
|
|
16
|
+
className: l
|
|
17
|
+
}) {
|
|
18
|
+
const r = n ?? Math.max(1, ...c.map(t, g) ?? []);
|
|
19
|
+
return /* @__PURE__ */ a(m.Provider, { value: { max: r, variant: e }, children: /* @__PURE__ */ a(
|
|
20
|
+
"ul",
|
|
21
|
+
{
|
|
22
|
+
"data-slot": "bar-chart",
|
|
23
|
+
"data-variant": e,
|
|
24
|
+
"aria-label": s,
|
|
25
|
+
className: f(
|
|
26
|
+
e === "vertical" ? "grid auto-cols-fr grid-flow-col items-end gap-4" : "grid gap-3",
|
|
27
|
+
l
|
|
28
|
+
),
|
|
29
|
+
children: t
|
|
30
|
+
}
|
|
31
|
+
) });
|
|
32
|
+
}
|
|
33
|
+
function C({ label: t, value: e, display: n }) {
|
|
34
|
+
const { max: s, variant: l } = d(m), r = Math.min(1, Math.max(0, e / s)), o = n ?? e;
|
|
35
|
+
return l === "horizontal" ? /* @__PURE__ */ i(
|
|
36
|
+
"li",
|
|
37
|
+
{
|
|
38
|
+
"data-slot": "bar-chart-item",
|
|
39
|
+
className: "grid grid-cols-[minmax(4rem,auto)_1fr_auto] items-center gap-4",
|
|
40
|
+
children: [
|
|
41
|
+
/* @__PURE__ */ a("span", { className: "font-mono text-[0.6875rem] font-semibold uppercase tracking-[0.12em] text-muted-foreground", children: t }),
|
|
42
|
+
/* @__PURE__ */ a("span", { className: "h-1.5 rounded-full bg-border/60", children: /* @__PURE__ */ a(
|
|
43
|
+
"span",
|
|
44
|
+
{
|
|
45
|
+
"data-slot": "bar-chart-bar",
|
|
46
|
+
className: "block h-full rounded-full bg-foreground",
|
|
47
|
+
style: { width: `${r * 100}%` }
|
|
48
|
+
}
|
|
49
|
+
) }),
|
|
50
|
+
/* @__PURE__ */ a("span", { className: "text-lg font-light tabular-nums", children: o })
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
) : /* @__PURE__ */ i("li", { "data-slot": "bar-chart-item", className: "grid justify-items-center gap-2", children: [
|
|
54
|
+
/* @__PURE__ */ a("span", { className: "flex h-28 items-end", "aria-hidden": "true", children: /* @__PURE__ */ a(
|
|
55
|
+
"span",
|
|
56
|
+
{
|
|
57
|
+
"data-slot": "bar-chart-bar",
|
|
58
|
+
className: "block w-1.5 rounded-full bg-foreground",
|
|
59
|
+
style: { height: `${r * 100}%` }
|
|
60
|
+
}
|
|
61
|
+
) }),
|
|
62
|
+
/* @__PURE__ */ a("span", { className: "text-xl font-light tabular-nums", children: o }),
|
|
63
|
+
/* @__PURE__ */ a("span", { className: "font-mono text-[0.6875rem] font-semibold uppercase tracking-[0.12em] text-muted-foreground", children: t })
|
|
64
|
+
] });
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
N as BarChart,
|
|
68
|
+
C as BarChartItem
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/display/BarChart/index.tsx"],"sourcesContent":["import {\n\tChildren,\n\tcreateContext,\n\tisValidElement,\n\ttype ReactElement,\n\ttype ReactNode,\n\tuseContext,\n} from 'react'\nimport { cn } from '../../utils/cn'\n\ntype Variant = 'vertical' | 'horizontal'\n\nconst ChartContext = createContext<{ max: number; variant: Variant }>({\n\tmax: 1,\n\tvariant: 'vertical',\n})\n\nexport interface BarChartItemProps {\n\tlabel: ReactNode\n\tvalue: number\n\t/** Text for the figure; defaults to the value. */\n\tdisplay?: ReactNode\n}\n\nexport interface BarChartProps {\n\tchildren: ReactNode\n\tvariant?: Variant\n\t/** Scale maximum; defaults to the largest item value. */\n\tmax?: number\n\t/** Accessible name of the chart. */\n\tlabel?: string\n\tclassName?: string\n}\n\nfunction itemValue(child: ReactNode) {\n\treturn isValidElement(child)\n\t\t? Number((child as ReactElement<BarChartItemProps>).props.value) || 0\n\t\t: 0\n}\n\n/**\n * Bars as firm rounded strokes. `vertical`: columns with figure and label\n * below; `horizontal`: rows with label, bar and figure.\n */\nexport function BarChart({\n\tchildren,\n\tvariant = 'vertical',\n\tmax,\n\tlabel,\n\tclassName,\n}: BarChartProps) {\n\tconst scale = max ?? Math.max(1, ...(Children.map(children, itemValue) ?? []))\n\n\treturn (\n\t\t<ChartContext.Provider value={{ max: scale, variant }}>\n\t\t\t<ul\n\t\t\t\tdata-slot='bar-chart'\n\t\t\t\tdata-variant={variant}\n\t\t\t\taria-label={label}\n\t\t\t\tclassName={cn(\n\t\t\t\t\tvariant === 'vertical'\n\t\t\t\t\t\t? 'grid auto-cols-fr grid-flow-col items-end gap-4'\n\t\t\t\t\t\t: 'grid gap-3',\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</ul>\n\t\t</ChartContext.Provider>\n\t)\n}\n\nexport function BarChartItem({ label, value, display }: BarChartItemProps) {\n\tconst { max, variant } = useContext(ChartContext)\n\tconst share = Math.min(1, Math.max(0, value / max))\n\tconst figure = display ?? value\n\n\tif (variant === 'horizontal')\n\t\treturn (\n\t\t\t<li\n\t\t\t\tdata-slot='bar-chart-item'\n\t\t\t\tclassName='grid grid-cols-[minmax(4rem,auto)_1fr_auto] items-center gap-4'\n\t\t\t>\n\t\t\t\t<span className='font-mono text-[0.6875rem] font-semibold uppercase tracking-[0.12em] text-muted-foreground'>\n\t\t\t\t\t{label}\n\t\t\t\t</span>\n\t\t\t\t<span className='h-1.5 rounded-full bg-border/60'>\n\t\t\t\t\t<span\n\t\t\t\t\t\tdata-slot='bar-chart-bar'\n\t\t\t\t\t\tclassName='block h-full rounded-full bg-foreground'\n\t\t\t\t\t\tstyle={{ width: `${share * 100}%` }}\n\t\t\t\t\t/>\n\t\t\t\t</span>\n\t\t\t\t<span className='text-lg font-light tabular-nums'>{figure}</span>\n\t\t\t</li>\n\t\t)\n\n\treturn (\n\t\t<li data-slot='bar-chart-item' className='grid justify-items-center gap-2'>\n\t\t\t<span className='flex h-28 items-end' aria-hidden='true'>\n\t\t\t\t<span\n\t\t\t\t\tdata-slot='bar-chart-bar'\n\t\t\t\t\tclassName='block w-1.5 rounded-full bg-foreground'\n\t\t\t\t\tstyle={{ height: `${share * 100}%` }}\n\t\t\t\t/>\n\t\t\t</span>\n\t\t\t<span className='text-xl font-light tabular-nums'>{figure}</span>\n\t\t\t<span className='font-mono text-[0.6875rem] font-semibold uppercase tracking-[0.12em] text-muted-foreground'>\n\t\t\t\t{label}\n\t\t\t</span>\n\t\t</li>\n\t)\n}\n"],"names":["ChartContext","createContext","itemValue","child","isValidElement","BarChart","children","variant","max","label","className","scale","Children","jsx","cn","BarChartItem","value","display","useContext","share","figure","jsxs"],"mappings":";;;AAYA,MAAMA,IAAeC,EAAiD;AAAA,EACrE,KAAK;AAAA,EACL,SAAS;AACV,CAAC;AAmBD,SAASC,EAAUC,GAAkB;AACpC,SAAOC,EAAeD,CAAK,KACxB,OAAQA,EAA0C,MAAM,KAAK,KAAK;AAEtE;AAMO,SAASE,EAAS;AAAA,EACxB,UAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,KAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AACD,GAAkB;AACjB,QAAMC,IAAQH,KAAO,KAAK,IAAI,GAAG,GAAII,EAAS,IAAIN,GAAUJ,CAAS,KAAK,CAAA,CAAG;AAE7E,SACC,gBAAAW,EAACb,EAAa,UAAb,EAAsB,OAAO,EAAE,KAAKW,GAAO,SAAAJ,KAC3C,UAAA,gBAAAM;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,gBAAcN;AAAA,MACd,cAAYE;AAAA,MACZ,WAAWK;AAAA,QACVP,MAAY,aACT,oDACA;AAAA,QACHG;AAAA,MAAA;AAAA,MAGA,UAAAJ;AAAA,IAAA;AAAA,EAAA,GAEH;AAEF;AAEO,SAASS,EAAa,EAAE,OAAAN,GAAO,OAAAO,GAAO,SAAAC,KAA8B;AAC1E,QAAM,EAAE,KAAAT,GAAK,SAAAD,MAAYW,EAAWlB,CAAY,GAC1CmB,IAAQ,KAAK,IAAI,GAAG,KAAK,IAAI,GAAGH,IAAQR,CAAG,CAAC,GAC5CY,IAASH,KAAWD;AAE1B,SAAIT,MAAY,eAEd,gBAAAc;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAU;AAAA,MAEV,UAAA;AAAA,QAAA,gBAAAR,EAAC,QAAA,EAAK,WAAU,8FACd,UAAAJ,GACF;AAAA,QACA,gBAAAI,EAAC,QAAA,EAAK,WAAU,mCACf,UAAA,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,aAAU;AAAA,YACV,WAAU;AAAA,YACV,OAAO,EAAE,OAAO,GAAGM,IAAQ,GAAG,IAAA;AAAA,UAAI;AAAA,QAAA,GAEpC;AAAA,QACA,gBAAAN,EAAC,QAAA,EAAK,WAAU,mCAAmC,UAAAO,EAAA,CAAO;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA,IAK5D,gBAAAC,EAAC,MAAA,EAAG,aAAU,kBAAiB,WAAU,mCACxC,UAAA;AAAA,IAAA,gBAAAR,EAAC,QAAA,EAAK,WAAU,uBAAsB,eAAY,QACjD,UAAA,gBAAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,aAAU;AAAA,QACV,WAAU;AAAA,QACV,OAAO,EAAE,QAAQ,GAAGM,IAAQ,GAAG,IAAA;AAAA,MAAI;AAAA,IAAA,GAErC;AAAA,IACA,gBAAAN,EAAC,QAAA,EAAK,WAAU,mCAAmC,UAAAO,GAAO;AAAA,IAC1D,gBAAAP,EAAC,QAAA,EAAK,WAAU,8FACd,UAAAJ,EAAA,CACF;AAAA,EAAA,GACD;AAEF;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { cn as m } from "../../utils/cn.js";
|
|
3
|
+
function o({ value: a, className: r }) {
|
|
4
|
+
return /* @__PURE__ */ t(
|
|
5
|
+
"p",
|
|
6
|
+
{
|
|
7
|
+
"data-slot": "marginalia",
|
|
8
|
+
className: m("text-sm font-medium tabular-nums", r),
|
|
9
|
+
children: a
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
o as Marginalia
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/display/Marginalia/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { cn } from '../../utils/cn'\n\nexport interface MarginaliaProps {\n\tvalue: ReactNode\n\tclassName?: string\n}\n\n/** A single margin note in the same type as MarginaliaPair, e.g. the year. */\nexport function Marginalia({ value, className }: MarginaliaProps) {\n\treturn (\n\t\t<p\n\t\t\tdata-slot='marginalia'\n\t\t\tclassName={cn('text-sm font-medium tabular-nums', className)}\n\t\t>\n\t\t\t{value}\n\t\t</p>\n\t)\n}\n"],"names":["Marginalia","value","className","jsx","cn"],"mappings":";;AASO,SAASA,EAAW,EAAE,OAAAC,GAAO,WAAAC,KAA8B;AACjE,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC,EAAG,oCAAoCF,CAAS;AAAA,MAE1D,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGJ;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cn as a } from "../../utils/cn.js";
|
|
3
|
+
function i({ value: r, className: n }) {
|
|
4
|
+
return /* @__PURE__ */ e(
|
|
5
|
+
"span",
|
|
6
|
+
{
|
|
7
|
+
"data-slot": "marginalia-framed",
|
|
8
|
+
className: a(
|
|
9
|
+
"inline-flex items-center border-[1.5px] border-current px-2 py-1 font-mono text-xs leading-none tabular-nums",
|
|
10
|
+
n
|
|
11
|
+
),
|
|
12
|
+
children: r
|
|
13
|
+
}
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
i as MarginaliaFramed
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/display/MarginaliaFramed/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { cn } from '../../utils/cn'\n\nexport interface MarginaliaFramedProps {\n\tvalue: ReactNode\n\tclassName?: string\n}\n\n/** A short code or index in a thin frame, e.g. a page number like \"013\". */\nexport function MarginaliaFramed({ value, className }: MarginaliaFramedProps) {\n\treturn (\n\t\t<span\n\t\t\tdata-slot='marginalia-framed'\n\t\t\tclassName={cn(\n\t\t\t\t'inline-flex items-center border-[1.5px] border-current px-2 py-1 font-mono text-xs leading-none tabular-nums',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t{value}\n\t\t</span>\n\t)\n}\n"],"names":["MarginaliaFramed","value","className","jsx","cn"],"mappings":";;AASO,SAASA,EAAiB,EAAE,OAAAC,GAAO,WAAAC,KAAoC;AAC7E,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAF;AAAA,MAAA;AAAA,MAGA,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGJ;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsxs as e, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "../../utils/cn.js";
|
|
3
|
+
function m({
|
|
4
|
+
left: r,
|
|
5
|
+
right: i,
|
|
6
|
+
className: n
|
|
7
|
+
}) {
|
|
8
|
+
return /* @__PURE__ */ e(
|
|
9
|
+
"p",
|
|
10
|
+
{
|
|
11
|
+
"data-slot": "marginalia-pair",
|
|
12
|
+
className: l("flex items-center gap-4 text-sm font-medium", n),
|
|
13
|
+
children: [
|
|
14
|
+
r,
|
|
15
|
+
/* @__PURE__ */ a("span", { className: "sr-only", children: ", " }),
|
|
16
|
+
/* @__PURE__ */ a(
|
|
17
|
+
"span",
|
|
18
|
+
{
|
|
19
|
+
"aria-hidden": "true",
|
|
20
|
+
"data-slot": "marginalia-pair-rule",
|
|
21
|
+
className: "inline-block h-[1.5px] w-10 shrink-0 rounded-full bg-current"
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
i
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
m as MarginaliaPair
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/display/MarginaliaPair/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { cn } from '../../utils/cn'\n\nexport interface MarginaliaPairProps {\n\tleft: ReactNode\n\tright: ReactNode\n\tclassName?: string\n}\n\n/** Margin note of two values joined by a long rule, e.g. weekday —— date. */\nexport function MarginaliaPair({\n\tleft,\n\tright,\n\tclassName,\n}: MarginaliaPairProps) {\n\treturn (\n\t\t<p\n\t\t\tdata-slot='marginalia-pair'\n\t\t\tclassName={cn('flex items-center gap-4 text-sm font-medium', className)}\n\t\t>\n\t\t\t{left}\n\t\t\t<span className='sr-only'>, </span>\n\t\t\t<span\n\t\t\t\taria-hidden='true'\n\t\t\t\tdata-slot='marginalia-pair-rule'\n\t\t\t\tclassName='inline-block h-[1.5px] w-10 shrink-0 rounded-full bg-current'\n\t\t\t/>\n\t\t\t{right}\n\t\t</p>\n\t)\n}\n"],"names":["MarginaliaPair","left","right","className","jsxs","cn","jsx"],"mappings":";;AAUO,SAASA,EAAe;AAAA,EAC9B,MAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AACD,GAAwB;AACvB,SACC,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC,EAAG,+CAA+CF,CAAS;AAAA,MAErE,UAAA;AAAA,QAAAF;AAAA,QACD,gBAAAK,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,MAAE;AAAA,QAC5B,gBAAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,eAAY;AAAA,YACZ,aAAU;AAAA,YACV,WAAU;AAAA,UAAA;AAAA,QAAA;AAAA,QAEVJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGJ;"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { cn as d } from "../../utils/cn.js";
|
|
3
|
+
import { getRuntimeLocale as u } from "../../utils/dates.js";
|
|
4
|
+
function c(e) {
|
|
5
|
+
return Number.isFinite(e) ? Math.min(1, Math.max(0, e)) : 0;
|
|
6
|
+
}
|
|
7
|
+
function b({
|
|
8
|
+
label: e,
|
|
9
|
+
value: a,
|
|
10
|
+
total: s,
|
|
11
|
+
progress: i,
|
|
12
|
+
completed: l = !1,
|
|
13
|
+
className: m
|
|
14
|
+
}) {
|
|
15
|
+
const t = c(
|
|
16
|
+
l ? 1 : a !== void 0 && s ? a / s : i ?? 0
|
|
17
|
+
), o = new Intl.NumberFormat(u(), {
|
|
18
|
+
style: "percent",
|
|
19
|
+
maximumFractionDigits: 0
|
|
20
|
+
}).format(t);
|
|
21
|
+
return /* @__PURE__ */ n("div", { "data-slot": "progress-bar", className: d("grid gap-2", m), children: [
|
|
22
|
+
/* @__PURE__ */ n("div", { className: "flex items-baseline justify-between gap-4", children: [
|
|
23
|
+
/* @__PURE__ */ r(
|
|
24
|
+
"span",
|
|
25
|
+
{
|
|
26
|
+
"data-slot": "progress-bar-label",
|
|
27
|
+
className: "font-mono text-[0.6875rem] font-semibold uppercase tracking-[0.12em] text-muted-foreground",
|
|
28
|
+
children: e
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
a !== void 0 ? /* @__PURE__ */ r(
|
|
32
|
+
"span",
|
|
33
|
+
{
|
|
34
|
+
"data-slot": "progress-bar-value",
|
|
35
|
+
className: "text-2xl font-light tabular-nums",
|
|
36
|
+
children: a
|
|
37
|
+
}
|
|
38
|
+
) : /* @__PURE__ */ r(
|
|
39
|
+
"span",
|
|
40
|
+
{
|
|
41
|
+
"data-slot": "progress-bar-value",
|
|
42
|
+
className: "font-mono text-[0.6875rem] font-semibold tracking-[0.12em] text-muted-foreground tabular-nums",
|
|
43
|
+
children: o
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
] }),
|
|
47
|
+
/* @__PURE__ */ r(
|
|
48
|
+
"div",
|
|
49
|
+
{
|
|
50
|
+
role: "progressbar",
|
|
51
|
+
"aria-valuemin": 0,
|
|
52
|
+
"aria-valuemax": 100,
|
|
53
|
+
"aria-valuenow": Math.round(t * 100),
|
|
54
|
+
"aria-valuetext": o,
|
|
55
|
+
"data-slot": "progress-bar-track",
|
|
56
|
+
className: "h-[1.5px] rounded-full bg-border",
|
|
57
|
+
children: /* @__PURE__ */ r(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
"data-slot": "progress-bar-fill",
|
|
61
|
+
className: "h-full rounded-full bg-foreground transition-[width] duration-300 motion-reduce:transition-none",
|
|
62
|
+
style: { width: `${t * 100}%` }
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
] });
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
b as ProgressBar
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/display/ProgressBar/index.tsx"],"sourcesContent":["import type { ReactNode } from 'react'\nimport { cn } from '../../utils/cn'\nimport { getRuntimeLocale } from '../../utils/dates'\n\nexport interface ProgressBarProps {\n\tlabel: ReactNode\n\t/** Count shown on the right, e.g. the number of items in this state. */\n\tvalue?: number\n\t/** With `value`: progress becomes `value / total`. */\n\ttotal?: number\n\t/** Share from 0 to 1. Shown as a percentage when no `value` is given. */\n\tprogress?: number\n\t/** Full bar. Combines with `value`, e.g. the number of finished items. */\n\tcompleted?: boolean\n\tclassName?: string\n}\n\nfunction clamp(value: number) {\n\treturn Number.isFinite(value) ? Math.min(1, Math.max(0, value)) : 0\n}\n\n/**\n * A captioned progress line: label left, figure right, thin bar below.\n * The share comes from `completed`, `value / total` or `progress`, in this order.\n */\nexport function ProgressBar({\n\tlabel,\n\tvalue,\n\ttotal,\n\tprogress,\n\tcompleted = false,\n\tclassName,\n}: ProgressBarProps) {\n\tconst share = clamp(\n\t\tcompleted\n\t\t\t? 1\n\t\t\t: value !== undefined && total\n\t\t\t\t? value / total\n\t\t\t\t: (progress ?? 0),\n\t)\n\tconst percent = new Intl.NumberFormat(getRuntimeLocale(), {\n\t\tstyle: 'percent',\n\t\tmaximumFractionDigits: 0,\n\t}).format(share)\n\n\treturn (\n\t\t<div data-slot='progress-bar' className={cn('grid gap-2', className)}>\n\t\t\t<div className='flex items-baseline justify-between gap-4'>\n\t\t\t\t<span\n\t\t\t\t\tdata-slot='progress-bar-label'\n\t\t\t\t\tclassName='font-mono text-[0.6875rem] font-semibold uppercase tracking-[0.12em] text-muted-foreground'\n\t\t\t\t>\n\t\t\t\t\t{label}\n\t\t\t\t</span>\n\t\t\t\t{value !== undefined ? (\n\t\t\t\t\t<span\n\t\t\t\t\t\tdata-slot='progress-bar-value'\n\t\t\t\t\t\tclassName='text-2xl font-light tabular-nums'\n\t\t\t\t\t>\n\t\t\t\t\t\t{value}\n\t\t\t\t\t</span>\n\t\t\t\t) : (\n\t\t\t\t\t<span\n\t\t\t\t\t\tdata-slot='progress-bar-value'\n\t\t\t\t\t\tclassName='font-mono text-[0.6875rem] font-semibold tracking-[0.12em] text-muted-foreground tabular-nums'\n\t\t\t\t\t>\n\t\t\t\t\t\t{percent}\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\trole='progressbar'\n\t\t\t\taria-valuemin={0}\n\t\t\t\taria-valuemax={100}\n\t\t\t\taria-valuenow={Math.round(share * 100)}\n\t\t\t\taria-valuetext={percent}\n\t\t\t\tdata-slot='progress-bar-track'\n\t\t\t\tclassName='h-[1.5px] rounded-full bg-border'\n\t\t\t>\n\t\t\t\t<div\n\t\t\t\t\tdata-slot='progress-bar-fill'\n\t\t\t\t\tclassName='h-full rounded-full bg-foreground transition-[width] duration-300 motion-reduce:transition-none'\n\t\t\t\t\tstyle={{ width: `${share * 100}%` }}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</div>\n\t)\n}\n"],"names":["clamp","value","ProgressBar","label","total","progress","completed","className","share","percent","getRuntimeLocale","jsxs","cn","jsx"],"mappings":";;;AAiBA,SAASA,EAAMC,GAAe;AAC7B,SAAO,OAAO,SAASA,CAAK,IAAI,KAAK,IAAI,GAAG,KAAK,IAAI,GAAGA,CAAK,CAAC,IAAI;AACnE;AAMO,SAASC,EAAY;AAAA,EAC3B,OAAAC;AAAA,EACA,OAAAF;AAAA,EACA,OAAAG;AAAA,EACA,UAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,WAAAC;AACD,GAAqB;AACpB,QAAMC,IAAQR;AAAA,IACbM,IACG,IACAL,MAAU,UAAaG,IACtBH,IAAQG,IACPC,KAAY;AAAA,EAAA,GAEZI,IAAU,IAAI,KAAK,aAAaC,KAAoB;AAAA,IACzD,OAAO;AAAA,IACP,uBAAuB;AAAA,EAAA,CACvB,EAAE,OAAOF,CAAK;AAEf,SACC,gBAAAG,EAAC,SAAI,aAAU,gBAAe,WAAWC,EAAG,cAAcL,CAAS,GAClE,UAAA;AAAA,IAAA,gBAAAI,EAAC,OAAA,EAAI,WAAU,6CACd,UAAA;AAAA,MAAA,gBAAAE;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,aAAU;AAAA,UACV,WAAU;AAAA,UAET,UAAAV;AAAA,QAAA;AAAA,MAAA;AAAA,MAEDF,MAAU,SACV,gBAAAY;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,aAAU;AAAA,UACV,WAAU;AAAA,UAET,UAAAZ;AAAA,QAAA;AAAA,MAAA,IAGF,gBAAAY;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,aAAU;AAAA,UACV,WAAU;AAAA,UAET,UAAAJ;AAAA,QAAA;AAAA,MAAA;AAAA,IACF,GAEF;AAAA,IACA,gBAAAI;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,MAAK;AAAA,QACL,iBAAe;AAAA,QACf,iBAAe;AAAA,QACf,iBAAe,KAAK,MAAML,IAAQ,GAAG;AAAA,QACrC,kBAAgBC;AAAA,QAChB,aAAU;AAAA,QACV,WAAU;AAAA,QAEV,UAAA,gBAAAI;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,aAAU;AAAA,YACV,WAAU;AAAA,YACV,OAAO,EAAE,OAAO,GAAGL,IAAQ,GAAG,IAAA;AAAA,UAAI;AAAA,QAAA;AAAA,MACnC;AAAA,IAAA;AAAA,EACD,GACD;AAEF;"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsxs as r, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { cn as l } from "../../utils/cn.js";
|
|
3
|
+
const s = (t) => String(t).padStart(2, "0");
|
|
4
|
+
function d(t) {
|
|
5
|
+
const { unit: m = "H", className: o } = t, a = Math.max(
|
|
6
|
+
0,
|
|
7
|
+
Math.round(t.value ?? (t.hours ?? 0) * 60 + (t.minutes ?? 0))
|
|
8
|
+
), e = Math.floor(a / 60), n = a % 60;
|
|
9
|
+
return /* @__PURE__ */ r(
|
|
10
|
+
"p",
|
|
11
|
+
{
|
|
12
|
+
"data-slot": "time-measured",
|
|
13
|
+
className: l(
|
|
14
|
+
"flex items-start text-7xl font-extralight leading-none tracking-tight tabular-nums",
|
|
15
|
+
o
|
|
16
|
+
),
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ r("time", { dateTime: `PT${e}H${n}M`, children: [
|
|
19
|
+
s(e),
|
|
20
|
+
":",
|
|
21
|
+
s(n)
|
|
22
|
+
] }),
|
|
23
|
+
/* @__PURE__ */ i(
|
|
24
|
+
"span",
|
|
25
|
+
{
|
|
26
|
+
"data-slot": "time-measured-unit",
|
|
27
|
+
className: "ml-2 text-sm font-normal tracking-normal text-muted-foreground",
|
|
28
|
+
children: m
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
d as TimeMeasured
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/display/TimeMeasured/index.tsx"],"sourcesContent":["import { cn } from '../../utils/cn'\n\nexport type TimeMeasuredProps = {\n\t/** Unit shown after the figure. Defaults to `H`. */\n\tunit?: string\n\tclassName?: string\n} & (\n\t| { hours?: number; minutes?: number; value?: never }\n\t| {\n\t\t\t/** Total duration in minutes. */ value: number\n\t\t\thours?: never\n\t\t\tminutes?: never\n\t }\n)\n\nconst pad = (value: number) => String(value).padStart(2, '0')\n\n/** A large readout of a duration as `HH:MM`, e.g. practice time. */\nexport function TimeMeasured(props: TimeMeasuredProps) {\n\tconst { unit = 'H', className } = props\n\tconst total = Math.max(\n\t\t0,\n\t\tMath.round(props.value ?? (props.hours ?? 0) * 60 + (props.minutes ?? 0)),\n\t)\n\tconst hours = Math.floor(total / 60)\n\tconst minutes = total % 60\n\n\treturn (\n\t\t<p\n\t\t\tdata-slot='time-measured'\n\t\t\tclassName={cn(\n\t\t\t\t'flex items-start text-7xl font-extralight leading-none tracking-tight tabular-nums',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<time dateTime={`PT${hours}H${minutes}M`}>\n\t\t\t\t{pad(hours)}:{pad(minutes)}\n\t\t\t</time>\n\t\t\t<span\n\t\t\t\tdata-slot='time-measured-unit'\n\t\t\t\tclassName='ml-2 text-sm font-normal tracking-normal text-muted-foreground'\n\t\t\t>\n\t\t\t\t{unit}\n\t\t\t</span>\n\t\t</p>\n\t)\n}\n"],"names":["pad","value","TimeMeasured","props","unit","className","total","hours","minutes","jsxs","cn","jsx"],"mappings":";;AAeA,MAAMA,IAAM,CAACC,MAAkB,OAAOA,CAAK,EAAE,SAAS,GAAG,GAAG;AAGrD,SAASC,EAAaC,GAA0B;AACtD,QAAM,EAAE,MAAAC,IAAO,KAAK,WAAAC,EAAA,IAAcF,GAC5BG,IAAQ,KAAK;AAAA,IAClB;AAAA,IACA,KAAK,MAAMH,EAAM,UAAUA,EAAM,SAAS,KAAK,MAAMA,EAAM,WAAW,EAAE;AAAA,EAAA,GAEnEI,IAAQ,KAAK,MAAMD,IAAQ,EAAE,GAC7BE,IAAUF,IAAQ;AAExB,SACC,gBAAAG;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,aAAU;AAAA,MACV,WAAWC;AAAA,QACV;AAAA,QACAL;AAAA,MAAA;AAAA,MAGD,UAAA;AAAA,QAAA,gBAAAI,EAAC,UAAK,UAAU,KAAKF,CAAK,IAAIC,CAAO,KACnC,UAAA;AAAA,UAAAR,EAAIO,CAAK;AAAA,UAAE;AAAA,UAAEP,EAAIQ,CAAO;AAAA,QAAA,GAC1B;AAAA,QACA,gBAAAG;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,aAAU;AAAA,YACV,WAAU;AAAA,YAET,UAAAP;AAAA,UAAA;AAAA,QAAA;AAAA,MACF;AAAA,IAAA;AAAA,EAAA;AAGH;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BarChart as o, BarChartItem as e } from "./BarChart/index.js";
|
|
2
|
+
import { Marginalia as t } from "./Marginalia/index.js";
|
|
3
|
+
import { MarginaliaFramed as f } from "./MarginaliaFramed/index.js";
|
|
4
|
+
import { MarginaliaPair as x } from "./MarginaliaPair/index.js";
|
|
5
|
+
import { ProgressBar as M } from "./ProgressBar/index.js";
|
|
6
|
+
import { TimeMeasured as n } from "./TimeMeasured/index.js";
|
|
7
|
+
export {
|
|
8
|
+
o as BarChart,
|
|
9
|
+
e as BarChartItem,
|
|
10
|
+
t as Marginalia,
|
|
11
|
+
f as MarginaliaFramed,
|
|
12
|
+
x as MarginaliaPair,
|
|
13
|
+
M as ProgressBar,
|
|
14
|
+
n as TimeMeasured
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
const e = { cancel: "Obbrechn", close: "Zumachn" }, n = { back: "Zruck zur Startseitn", errorDescription: "Start de Oberfläche neu und probier’s no amoi.", errorTitle: "Do is wos schiefganga.", loadingApp: "App vorbereitn …", navigation: "Hauptnavigation", restart: "Neu ladn", switchTheme: "Aussehn wechseln" }, i = { selectDate: "Datum aussuachn", today: "Heit", nextMonth: "Nächster Monat", previousMonth: "Voriger Monat", chooseMonth: "Monat aussuachn", chooseYear: "Joahr aussuachn", navigation: "Kalendernavigation", selected: "ausgsuacht" }, r = { checking: "Wird grad prüft …", checkAgain: "No amoi prüfen", gate: { loading: "Lizenz und Gerätestatus werdn grad prüft …", failed: "De Lizenzprüfung hat ned funktioniert.", activationRequired: "De bisherige Aktivierung is nimmer gültig. Aktivier de Installation bitte no amoi. Dei Daten bleiben erhalten.", readOnly: "Vorhandene Daten anschaun und exportieren" }, activation: { title: "App aktivieren", renew: "Aktivierung erneuern", description: "Gib deinen Aktivierungscode ein, damit de Installation mit deiner Lizenz verbunden wird.", replacementDescription: "Gib an neichen Aktivierungscode für de bisherige oder a andere gültige Lizenz ein. Dei Daten bleiben erhalten. De bisherige Aktivierung wird erst nach erfolgreicher Aktivierung ersetzt.", replacementNotice: "De bestehende Aktivierung wird erst nach erfolgreicher Prüfung ersetzt.", code: "Aktivierungscode", deviceName: "Gerätename", devicePlaceholder: "Mein Gerät", defaultDeviceName: "Mein Gerät", pending: "Aktivierung lauft …", submit: "Lizenz aktivieren" }, banner: { readOnlyTitle: "Schreibgschützter Modus", refreshFailed: "Lizenzaktualisierung geht grad ned", retryStorage: "Speichern no amoi probiern", readOnlyDescription: "Du kannst vorhandene Daten weiter anschaun und exportieren. Neich anlegen und Ändern san gsperrt.", persistencePending: "Da gsperrte Lizenzstatus hat si no ned vollständig speichern lassn. Des Gerät bleibt gsperrt. Probier’s Speichern bitte no amoi." }, errors: { activationRequired: "De bisherige Aktivierung is am Lizenzserver nimmer gültig. Gib bitte an neichen Aktivierungscode ein.", network: "Da Lizenzserver is grad ned erreichbar. De lokale Gültigkeit bleibt unverändert.", deviceRevoked: "De Aktivierung von dem Gerät is widerrufen worden.", licenseRevoked: "De Lizenz is widerrufen worden.", storage: "Da lokale Lizenzstatus hat si ned sicher lesen oder speichern lassn.", certificate: "Da Lizenznachweis is ungültig.", alreadyActivated: "De Installation is scho aktiviert.", api: "Da Lizenzserver hat d’Aktivierung oder Aktualisierung abglehnt. Prüf den Code und den Status von da Lizenz.", protocol: "De Antwort vom Lizenzserver hat si ned verarbeiten lassn.", unactivated: "De Installation is no ned aktiviert.", stateChanged: "Da Lizenzstatus hat si inzwischen gändert. Prüf ihn bitte no amoi.", synchronization: "De Lizenzsynchronisierung is grad ned verfügbar. Probier’s bitte no amoi.", readOnly: "Für de Aktion brauchst a gültige Aktivierung. Vorhandene Daten kannst weiter anschaun und exportieren.", featureDenied: "De Funktion is in deiner Lizenz ned freigschaltet.", unknown: "De Lizenzprüfung hat ned funktioniert. Probier’s bitte no amoi." } }, t = { title: "Lizenz", checking: "Lizenz wird grad prüft …", unknown: "Ned verfügbar", plan: "Tarif", licenseTerm: "Laufzeit von da kauften Lizenz", termUnknown: "Vom Server ned mitgschickt", certificateExpires: "Aktueller Nachweis gültig bis", nextSync: "Nächste Synchronisierung", syncDue: "Fällig seit {{date}}", noSyncScheduled: "Grad ka automatischer Termin", features: "Funktionen laut Lizenznachweis", noFeatures: "Im aktuellen Nachweis san kane Funktionen verfügbar.", validityHint: "De Gültigkeit vom Nachweis begrenzt d’Offline-Nutzung. Sein Ablaufdatum heißt ned automatisch, dass dei kaufte Lizenz endet. De tatsächliche Lizenzlaufzeit wird grad ned extra mitgschickt.", synchronize: "Lizenz synchronisieren", syncing: "Wird synchronisiert …", synchronized: "Lizenzstatus aktualisiert.", persistencePending: "Da gsperrte Lizenzstatus hat si no ned vollständig speichern lassn. Bitte synchronisier no amoi.", deviceDetails: "Erweiterte Gerätedetails", deviceId: "Aktuelle Geräte-ID", noDevice: "No ka Geräteaktivierung vorhanden.", deviceReleaseHint: "A Gerätefreigabe gibt’s in da App no ned. Wennst lokale Lizenzdaten löschst, wird am Server ka Geräteplatz frei.", status: { active: { label: "Aktiv", description: "Dei signierter Lizenznachweis is gültig. Du kannst d’App ganz normal verwenden." }, offline_grace: { label: "Offline gültig", description: "Da vorhandene Nachweis erlaubt weiter d’lokale Nutzung. A Synchronisierung is fällig; verlängert wird da Nachweis erst nach erfolgreicher Serverprüfung." }, expired: { label: "Nachweis abglaufen", description: "Dei lokaler Lizenznachweis is abglaufen. Synchronisier, damitst an neichen kriagst. Ob dei kaufte Lizenz aa abglaufen is, lässt si daraus allein ned sagen. Vorhandene Daten kannst weiter anschaun und exportieren." }, revoked: { label: "Geräteaktivierung widerrufen", description: "De Aktivierung von dem Gerät is widerrufen worden. Änderungen san gsperrt; vorhandene Daten kannst weiter anschaun und exportieren." }, license_revoked: { label: "Lizenz widerrufen", description: "Da Server hat den Widerruf von dera Lizenz bestätigt. Änderungen san gsperrt; vorhandene Daten kannst weiter anschaun und exportieren." }, unactivated: { label: "Ned aktiviert", description: "De Installation is no kana Lizenz zugeordnet. Zum Verwenden brauchst an Aktivierungscode." }, activation_required: { label: "Aktivierung nötig", description: "De bisherige Zuordnung am Server fehlt oder passt nimmer zu dera Installation. Erneuer d’Aktivierung. Dei vorhandenen Daten bleiben erhalten." }, invalid: { label: "Ned überprüfbar", description: "Da lokale Nachweis lässt si grad ned zuverlässig prüfen. Änderungen bleiben gsperrt. Synchronisier, damit da Lizenzstatus no amoi prüft wird." } }, plans: { trial: "Testversion", personal: "Personal", professional: "Professional", lifetime: "Lifetime" }, featureLabels: { all_features: "Alle Funktionen", core: "Grundfunktionen" } }, a = {
|
|
1
|
+
const e = { cancel: "Obbrechn", close: "Zumachn", retry: "No amoi probiern" }, n = { back: "Zruck zur Startseitn", errorDescription: "Start de Oberfläche neu und probier’s no amoi.", errorTitle: "Do is wos schiefganga.", loadingApp: "App vorbereitn …", navigation: "Hauptnavigation", restart: "Neu ladn", switchTheme: "Aussehn wechseln", loadingSettings: "Einstöllungen ladn …" }, i = { selectDate: "Datum aussuachn", today: "Heit", nextMonth: "Nächster Monat", previousMonth: "Voriger Monat", chooseMonth: "Monat aussuachn", chooseYear: "Joahr aussuachn", navigation: "Kalendernavigation", selected: "ausgsuacht" }, r = { checking: "Wird grad prüft …", checkAgain: "No amoi prüfen", gate: { loading: "Lizenz und Gerätestatus werdn grad prüft …", failed: "De Lizenzprüfung hat ned funktioniert.", activationRequired: "De bisherige Aktivierung is nimmer gültig. Aktivier de Installation bitte no amoi. Dei Daten bleiben erhalten.", readOnly: "Vorhandene Daten anschaun und exportieren" }, activation: { title: "App aktivieren", renew: "Aktivierung erneuern", description: "Gib deinen Aktivierungscode ein, damit de Installation mit deiner Lizenz verbunden wird.", replacementDescription: "Gib an neichen Aktivierungscode für de bisherige oder a andere gültige Lizenz ein. Dei Daten bleiben erhalten. De bisherige Aktivierung wird erst nach erfolgreicher Aktivierung ersetzt.", replacementNotice: "De bestehende Aktivierung wird erst nach erfolgreicher Prüfung ersetzt.", code: "Aktivierungscode", deviceName: "Gerätename", devicePlaceholder: "Mein Gerät", defaultDeviceName: "Mein Gerät", pending: "Aktivierung lauft …", submit: "Lizenz aktivieren" }, banner: { readOnlyTitle: "Schreibgschützter Modus", refreshFailed: "Lizenzaktualisierung geht grad ned", retryStorage: "Speichern no amoi probiern", readOnlyDescription: "Du kannst vorhandene Daten weiter anschaun und exportieren. Neich anlegen und Ändern san gsperrt.", persistencePending: "Da gsperrte Lizenzstatus hat si no ned vollständig speichern lassn. Des Gerät bleibt gsperrt. Probier’s Speichern bitte no amoi." }, errors: { activationRequired: "De bisherige Aktivierung is am Lizenzserver nimmer gültig. Gib bitte an neichen Aktivierungscode ein.", network: "Da Lizenzserver is grad ned erreichbar. De lokale Gültigkeit bleibt unverändert.", deviceRevoked: "De Aktivierung von dem Gerät is widerrufen worden.", licenseRevoked: "De Lizenz is widerrufen worden.", storage: "Da lokale Lizenzstatus hat si ned sicher lesen oder speichern lassn.", certificate: "Da Lizenznachweis is ungültig.", alreadyActivated: "De Installation is scho aktiviert.", api: "Da Lizenzserver hat d’Aktivierung oder Aktualisierung abglehnt. Prüf den Code und den Status von da Lizenz.", protocol: "De Antwort vom Lizenzserver hat si ned verarbeiten lassn.", unactivated: "De Installation is no ned aktiviert.", stateChanged: "Da Lizenzstatus hat si inzwischen gändert. Prüf ihn bitte no amoi.", synchronization: "De Lizenzsynchronisierung is grad ned verfügbar. Probier’s bitte no amoi.", readOnly: "Für de Aktion brauchst a gültige Aktivierung. Vorhandene Daten kannst weiter anschaun und exportieren.", featureDenied: "De Funktion is in deiner Lizenz ned freigschaltet.", unknown: "De Lizenzprüfung hat ned funktioniert. Probier’s bitte no amoi." } }, t = { title: "Lizenz", checking: "Lizenz wird grad prüft …", unknown: "Ned verfügbar", plan: "Tarif", licenseTerm: "Laufzeit von da kauften Lizenz", termUnknown: "Vom Server ned mitgschickt", certificateExpires: "Aktueller Nachweis gültig bis", nextSync: "Nächste Synchronisierung", syncDue: "Fällig seit {{date}}", noSyncScheduled: "Grad ka automatischer Termin", features: "Funktionen laut Lizenznachweis", noFeatures: "Im aktuellen Nachweis san kane Funktionen verfügbar.", validityHint: "De Gültigkeit vom Nachweis begrenzt d’Offline-Nutzung. Sein Ablaufdatum heißt ned automatisch, dass dei kaufte Lizenz endet. De tatsächliche Lizenzlaufzeit wird grad ned extra mitgschickt.", synchronize: "Lizenz synchronisieren", syncing: "Wird synchronisiert …", synchronized: "Lizenzstatus aktualisiert.", persistencePending: "Da gsperrte Lizenzstatus hat si no ned vollständig speichern lassn. Bitte synchronisier no amoi.", deviceDetails: "Erweiterte Gerätedetails", deviceId: "Aktuelle Geräte-ID", noDevice: "No ka Geräteaktivierung vorhanden.", deviceReleaseHint: "A Gerätefreigabe gibt’s in da App no ned. Wennst lokale Lizenzdaten löschst, wird am Server ka Geräteplatz frei.", status: { active: { label: "Aktiv", description: "Dei signierter Lizenznachweis is gültig. Du kannst d’App ganz normal verwenden." }, offline_grace: { label: "Offline gültig", description: "Da vorhandene Nachweis erlaubt weiter d’lokale Nutzung. A Synchronisierung is fällig; verlängert wird da Nachweis erst nach erfolgreicher Serverprüfung." }, expired: { label: "Nachweis abglaufen", description: "Dei lokaler Lizenznachweis is abglaufen. Synchronisier, damitst an neichen kriagst. Ob dei kaufte Lizenz aa abglaufen is, lässt si daraus allein ned sagen. Vorhandene Daten kannst weiter anschaun und exportieren." }, revoked: { label: "Geräteaktivierung widerrufen", description: "De Aktivierung von dem Gerät is widerrufen worden. Änderungen san gsperrt; vorhandene Daten kannst weiter anschaun und exportieren." }, license_revoked: { label: "Lizenz widerrufen", description: "Da Server hat den Widerruf von dera Lizenz bestätigt. Änderungen san gsperrt; vorhandene Daten kannst weiter anschaun und exportieren." }, unactivated: { label: "Ned aktiviert", description: "De Installation is no kana Lizenz zugeordnet. Zum Verwenden brauchst an Aktivierungscode." }, activation_required: { label: "Aktivierung nötig", description: "De bisherige Zuordnung am Server fehlt oder passt nimmer zu dera Installation. Erneuer d’Aktivierung. Dei vorhandenen Daten bleiben erhalten." }, invalid: { label: "Ned überprüfbar", description: "Da lokale Nachweis lässt si grad ned zuverlässig prüfen. Änderungen bleiben gsperrt. Synchronisier, damit da Lizenzstatus no amoi prüft wird." } }, plans: { trial: "Testversion", personal: "Personal", professional: "Professional", lifetime: "Lifetime" }, featureLabels: { all_features: "Alle Funktionen", core: "Grundfunktionen" } }, a = { saving: "Wird gespeichert …", saved: "Änderungen gespeichert", error: "Speichern fehlgeschlagen." }, s = { placeholder: "Schlagwort eingeben, mit Enter bestätigen", remove: "Schlagwort „{{tag}}“ entfernen" }, o = {
|
|
2
2
|
actions: e,
|
|
3
3
|
app: n,
|
|
4
4
|
datePicker: i,
|
|
5
5
|
licensing: r,
|
|
6
|
-
licenseProfile: t
|
|
6
|
+
licenseProfile: t,
|
|
7
|
+
autosave: a,
|
|
8
|
+
tags: s
|
|
7
9
|
};
|
|
8
10
|
export {
|
|
9
11
|
e as actions,
|
|
10
12
|
n as app,
|
|
13
|
+
a as autosave,
|
|
11
14
|
i as datePicker,
|
|
12
|
-
|
|
15
|
+
o as default,
|
|
13
16
|
t as licenseProfile,
|
|
14
|
-
r as licensing
|
|
17
|
+
r as licensing,
|
|
18
|
+
s as tags
|
|
15
19
|
};
|
|
16
20
|
//# sourceMappingURL=at.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"at.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"at.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
const e = { cancel: "Abbrechen", close: "Schließen" }, i = { back: "Zurück zur Startseite", errorDescription: "Starte die Oberfläche neu und versuche es erneut.", errorTitle: "Etwas ist schiefgelaufen.", loadingApp: "App vorbereiten …", navigation: "Hauptnavigation", restart: "Neu laden", switchTheme: "Darstellung wechseln" }, n = { selectDate: "Datum auswählen", today: "Heute", nextMonth: "Nächster Monat", previousMonth: "Vorheriger Monat", chooseMonth: "Monat auswählen", chooseYear: "Jahr auswählen", navigation: "Kalendernavigation", selected: "ausgewählt" }, r = { checking: "Wird geprüft …", checkAgain: "Erneut prüfen", gate: { loading: "Lizenz und Gerätestatus werden geprüft …", failed: "Die Lizenzprüfung ist fehlgeschlagen.", activationRequired: "Die bisherige Aktivierung ist nicht mehr gültig. Bitte aktiviere diese Installation erneut. Deine Daten bleiben erhalten.", readOnly: "Vorhandene Daten ansehen und exportieren" }, activation: { title: "App aktivieren", renew: "Aktivierung erneuern", description: "Gib deinen Aktivierungscode ein, um diese Installation mit deiner Lizenz zu verbinden.", replacementDescription: "Gib einen neuen Aktivierungscode für die bisherige oder eine andere gültige Lizenz ein. Deine Daten bleiben erhalten. Erst nach erfolgreicher Aktivierung wird die bisherige Aktivierung ersetzt.", replacementNotice: "Die bestehende Aktivierung wird erst nach erfolgreicher Prüfung ersetzt.", code: "Aktivierungscode", deviceName: "Gerätename", devicePlaceholder: "Mein Gerät", defaultDeviceName: "Mein Gerät", pending: "Aktivierung läuft …", submit: "Lizenz aktivieren" }, banner: { readOnlyTitle: "Schreibgeschützter Modus", refreshFailed: "Lizenzaktualisierung nicht möglich", retryStorage: "Speicherung erneut versuchen", readOnlyDescription: "Du kannst vorhandene Daten weiterhin ansehen und exportieren. Das Erstellen und Ändern ist gesperrt.", persistencePending: "Der gesperrte Lizenzstatus konnte noch nicht vollständig gespeichert werden. Dieses Gerät bleibt gesperrt. Bitte versuche die Speicherung erneut." }, errors: { activationRequired: "Die bisherige Aktivierung ist auf dem Lizenzserver nicht mehr gültig. Bitte gib einen neuen Aktivierungscode ein.", network: "Der Lizenzserver ist derzeit nicht erreichbar. Die lokale Gültigkeit bleibt unverändert.", deviceRevoked: "Die Aktivierung dieses Geräts wurde widerrufen.", licenseRevoked: "Diese Lizenz wurde widerrufen.", storage: "Der lokale Lizenzzustand konnte nicht sicher gelesen oder gespeichert werden.", certificate: "Der Lizenznachweis ist ungültig.", alreadyActivated: "Diese Installation ist bereits aktiviert.", api: "Der Lizenzserver hat die Aktivierung oder Aktualisierung abgelehnt. Prüfe den Code und den Status der Lizenz.", protocol: "Die Antwort des Lizenzservers konnte nicht verarbeitet werden.", unactivated: "Diese Installation ist noch nicht aktiviert.", stateChanged: "Der Lizenzzustand wurde inzwischen geändert. Bitte prüfe ihn erneut.", synchronization: "Die Lizenzsynchronisierung ist derzeit nicht verfügbar. Bitte versuche es erneut.", readOnly: "Für diese Aktion ist eine gültige Aktivierung erforderlich. Vorhandene Daten bleiben lesbar und exportierbar.", featureDenied: "Diese Funktion ist in deiner Lizenz nicht freigeschaltet.", unknown: "Die Lizenzprüfung ist fehlgeschlagen. Bitte versuche es erneut." } }, t = { title: "Lizenz", checking: "Lizenz wird geprüft …", unknown: "Nicht verfügbar", plan: "Tarif", licenseTerm: "Laufzeit der gekauften Lizenz", termUnknown: "Vom Server nicht übermittelt", certificateExpires: "Aktueller Nachweis gültig bis", nextSync: "Nächste Synchronisierung", syncDue: "Fällig seit {{date}}", noSyncScheduled: "Derzeit kein automatischer Termin", features: "Funktionen laut Lizenznachweis", noFeatures: "Keine Funktionen im aktuellen Nachweis verfügbar.", validityHint: "Die Gültigkeit des Nachweises begrenzt die Offline-Nutzung. Sein Ablaufdatum ist nicht automatisch das Ende deiner gekauften Lizenz. Die tatsächliche Lizenzlaufzeit wird derzeit nicht separat übermittelt.", synchronize: "Lizenz synchronisieren", syncing: "Wird synchronisiert …", synchronized: "Lizenzstatus aktualisiert.", persistencePending: "Der gesperrte Lizenzstatus konnte noch nicht vollständig gespeichert werden. Bitte synchronisiere erneut.", deviceDetails: "Erweiterte Gerätedetails", deviceId: "Aktuelle Geräte-ID", noDevice: "Noch keine Geräteaktivierung vorhanden.", deviceReleaseHint: "Eine Gerätefreigabe ist in dieser App noch nicht verfügbar. Das Löschen lokaler Lizenzdaten gibt keinen Geräteplatz auf dem Server frei.", status: { active: { label: "Aktiv", description: "Dein signierter Lizenznachweis ist gültig. Die App kann regulär genutzt werden." }, offline_grace: { label: "Offline gültig", description: "Der vorhandene Nachweis erlaubt weiterhin die lokale Nutzung. Eine Synchronisierung ist fällig; sie verlängert den Nachweis nur nach erfolgreicher Serverprüfung." }, expired: { label: "Nachweis abgelaufen", description: "Der lokale Lizenznachweis ist abgelaufen. Synchronisiere, um einen neuen Nachweis zu erhalten. Ob deine gekaufte Lizenz ebenfalls abgelaufen ist, lässt sich daraus allein nicht ableiten. Vorhandene Daten bleiben lesbar und exportierbar." }, revoked: { label: "Geräteaktivierung widerrufen", description: "Die Aktivierung dieses Geräts wurde widerrufen. Änderungen sind gesperrt; vorhandene Daten bleiben lesbar und exportierbar." }, license_revoked: { label: "Lizenz widerrufen", description: "Der Server hat den Widerruf dieser Lizenz bestätigt. Änderungen sind gesperrt; vorhandene Daten bleiben lesbar und exportierbar." }, unactivated: { label: "Nicht aktiviert", description: "Diese Installation ist noch keiner Lizenz zugeordnet. Für die Nutzung ist ein Aktivierungscode erforderlich." }, activation_required: { label: "Aktivierung erforderlich", description: "Die bisherige Zuordnung auf dem Server fehlt oder passt nicht mehr zu dieser Installation. Erneuere die Aktivierung. Vorhandene Daten bleiben erhalten." }, invalid: { label: "Nicht überprüfbar", description: "Der lokale Nachweis kann derzeit nicht zuverlässig geprüft werden. Änderungen bleiben gesperrt. Synchronisiere, um den Lizenzstatus erneut zu prüfen." } }, plans: { trial: "Testversion", personal: "Personal", professional: "Professional", lifetime: "Lifetime" }, featureLabels: { all_features: "Alle Funktionen", core: "Grundfunktionen" } }, a = {
|
|
1
|
+
const e = { cancel: "Abbrechen", close: "Schließen", retry: "Erneut versuchen" }, i = { back: "Zurück zur Startseite", errorDescription: "Starte die Oberfläche neu und versuche es erneut.", errorTitle: "Etwas ist schiefgelaufen.", loadingApp: "App vorbereiten …", navigation: "Hauptnavigation", restart: "Neu laden", switchTheme: "Darstellung wechseln", loadingSettings: "Einstellungen laden …" }, n = { selectDate: "Datum auswählen", today: "Heute", nextMonth: "Nächster Monat", previousMonth: "Vorheriger Monat", chooseMonth: "Monat auswählen", chooseYear: "Jahr auswählen", navigation: "Kalendernavigation", selected: "ausgewählt" }, r = { checking: "Wird geprüft …", checkAgain: "Erneut prüfen", gate: { loading: "Lizenz und Gerätestatus werden geprüft …", failed: "Die Lizenzprüfung ist fehlgeschlagen.", activationRequired: "Die bisherige Aktivierung ist nicht mehr gültig. Bitte aktiviere diese Installation erneut. Deine Daten bleiben erhalten.", readOnly: "Vorhandene Daten ansehen und exportieren" }, activation: { title: "App aktivieren", renew: "Aktivierung erneuern", description: "Gib deinen Aktivierungscode ein, um diese Installation mit deiner Lizenz zu verbinden.", replacementDescription: "Gib einen neuen Aktivierungscode für die bisherige oder eine andere gültige Lizenz ein. Deine Daten bleiben erhalten. Erst nach erfolgreicher Aktivierung wird die bisherige Aktivierung ersetzt.", replacementNotice: "Die bestehende Aktivierung wird erst nach erfolgreicher Prüfung ersetzt.", code: "Aktivierungscode", deviceName: "Gerätename", devicePlaceholder: "Mein Gerät", defaultDeviceName: "Mein Gerät", pending: "Aktivierung läuft …", submit: "Lizenz aktivieren" }, banner: { readOnlyTitle: "Schreibgeschützter Modus", refreshFailed: "Lizenzaktualisierung nicht möglich", retryStorage: "Speicherung erneut versuchen", readOnlyDescription: "Du kannst vorhandene Daten weiterhin ansehen und exportieren. Das Erstellen und Ändern ist gesperrt.", persistencePending: "Der gesperrte Lizenzstatus konnte noch nicht vollständig gespeichert werden. Dieses Gerät bleibt gesperrt. Bitte versuche die Speicherung erneut." }, errors: { activationRequired: "Die bisherige Aktivierung ist auf dem Lizenzserver nicht mehr gültig. Bitte gib einen neuen Aktivierungscode ein.", network: "Der Lizenzserver ist derzeit nicht erreichbar. Die lokale Gültigkeit bleibt unverändert.", deviceRevoked: "Die Aktivierung dieses Geräts wurde widerrufen.", licenseRevoked: "Diese Lizenz wurde widerrufen.", storage: "Der lokale Lizenzzustand konnte nicht sicher gelesen oder gespeichert werden.", certificate: "Der Lizenznachweis ist ungültig.", alreadyActivated: "Diese Installation ist bereits aktiviert.", api: "Der Lizenzserver hat die Aktivierung oder Aktualisierung abgelehnt. Prüfe den Code und den Status der Lizenz.", protocol: "Die Antwort des Lizenzservers konnte nicht verarbeitet werden.", unactivated: "Diese Installation ist noch nicht aktiviert.", stateChanged: "Der Lizenzzustand wurde inzwischen geändert. Bitte prüfe ihn erneut.", synchronization: "Die Lizenzsynchronisierung ist derzeit nicht verfügbar. Bitte versuche es erneut.", readOnly: "Für diese Aktion ist eine gültige Aktivierung erforderlich. Vorhandene Daten bleiben lesbar und exportierbar.", featureDenied: "Diese Funktion ist in deiner Lizenz nicht freigeschaltet.", unknown: "Die Lizenzprüfung ist fehlgeschlagen. Bitte versuche es erneut." } }, t = { title: "Lizenz", checking: "Lizenz wird geprüft …", unknown: "Nicht verfügbar", plan: "Tarif", licenseTerm: "Laufzeit der gekauften Lizenz", termUnknown: "Vom Server nicht übermittelt", certificateExpires: "Aktueller Nachweis gültig bis", nextSync: "Nächste Synchronisierung", syncDue: "Fällig seit {{date}}", noSyncScheduled: "Derzeit kein automatischer Termin", features: "Funktionen laut Lizenznachweis", noFeatures: "Keine Funktionen im aktuellen Nachweis verfügbar.", validityHint: "Die Gültigkeit des Nachweises begrenzt die Offline-Nutzung. Sein Ablaufdatum ist nicht automatisch das Ende deiner gekauften Lizenz. Die tatsächliche Lizenzlaufzeit wird derzeit nicht separat übermittelt.", synchronize: "Lizenz synchronisieren", syncing: "Wird synchronisiert …", synchronized: "Lizenzstatus aktualisiert.", persistencePending: "Der gesperrte Lizenzstatus konnte noch nicht vollständig gespeichert werden. Bitte synchronisiere erneut.", deviceDetails: "Erweiterte Gerätedetails", deviceId: "Aktuelle Geräte-ID", noDevice: "Noch keine Geräteaktivierung vorhanden.", deviceReleaseHint: "Eine Gerätefreigabe ist in dieser App noch nicht verfügbar. Das Löschen lokaler Lizenzdaten gibt keinen Geräteplatz auf dem Server frei.", status: { active: { label: "Aktiv", description: "Dein signierter Lizenznachweis ist gültig. Die App kann regulär genutzt werden." }, offline_grace: { label: "Offline gültig", description: "Der vorhandene Nachweis erlaubt weiterhin die lokale Nutzung. Eine Synchronisierung ist fällig; sie verlängert den Nachweis nur nach erfolgreicher Serverprüfung." }, expired: { label: "Nachweis abgelaufen", description: "Der lokale Lizenznachweis ist abgelaufen. Synchronisiere, um einen neuen Nachweis zu erhalten. Ob deine gekaufte Lizenz ebenfalls abgelaufen ist, lässt sich daraus allein nicht ableiten. Vorhandene Daten bleiben lesbar und exportierbar." }, revoked: { label: "Geräteaktivierung widerrufen", description: "Die Aktivierung dieses Geräts wurde widerrufen. Änderungen sind gesperrt; vorhandene Daten bleiben lesbar und exportierbar." }, license_revoked: { label: "Lizenz widerrufen", description: "Der Server hat den Widerruf dieser Lizenz bestätigt. Änderungen sind gesperrt; vorhandene Daten bleiben lesbar und exportierbar." }, unactivated: { label: "Nicht aktiviert", description: "Diese Installation ist noch keiner Lizenz zugeordnet. Für die Nutzung ist ein Aktivierungscode erforderlich." }, activation_required: { label: "Aktivierung erforderlich", description: "Die bisherige Zuordnung auf dem Server fehlt oder passt nicht mehr zu dieser Installation. Erneuere die Aktivierung. Vorhandene Daten bleiben erhalten." }, invalid: { label: "Nicht überprüfbar", description: "Der lokale Nachweis kann derzeit nicht zuverlässig geprüft werden. Änderungen bleiben gesperrt. Synchronisiere, um den Lizenzstatus erneut zu prüfen." } }, plans: { trial: "Testversion", personal: "Personal", professional: "Professional", lifetime: "Lifetime" }, featureLabels: { all_features: "Alle Funktionen", core: "Grundfunktionen" } }, a = { saving: "Wird gespeichert …", saved: "Änderungen gespeichert", error: "Speichern fehlgeschlagen." }, s = { placeholder: "Schlagwort eingeben, mit Enter bestätigen", remove: "Schlagwort „{{tag}}“ entfernen" }, l = {
|
|
2
2
|
actions: e,
|
|
3
3
|
app: i,
|
|
4
4
|
datePicker: n,
|
|
5
5
|
licensing: r,
|
|
6
|
-
licenseProfile: t
|
|
6
|
+
licenseProfile: t,
|
|
7
|
+
autosave: a,
|
|
8
|
+
tags: s
|
|
7
9
|
};
|
|
8
10
|
export {
|
|
9
11
|
e as actions,
|
|
10
12
|
i as app,
|
|
13
|
+
a as autosave,
|
|
11
14
|
n as datePicker,
|
|
12
|
-
|
|
15
|
+
l as default,
|
|
13
16
|
t as licenseProfile,
|
|
14
|
-
r as licensing
|
|
17
|
+
r as licensing,
|
|
18
|
+
s as tags
|
|
15
19
|
};
|
|
16
20
|
//# sourceMappingURL=de.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"de.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
const e = { cancel: "Cancel", close: "Close" }, i = { back: "Back to home", errorDescription: "Reload the interface and try again.", errorTitle: "Something went wrong.", loadingApp: "Preparing app …", navigation: "Main navigation", restart: "Reload", switchTheme: "Change appearance" }, a = { selectDate: "Select date", today: "Today", nextMonth: "Next month", previousMonth: "Previous month", chooseMonth: "Choose month", chooseYear: "Choose year", navigation: "Calendar navigation", selected: "selected" }, t = { checking: "Checking …", checkAgain: "Check again", gate: { loading: "Checking license and device status …", failed: "The license check failed.", activationRequired: "The previous activation is no longer valid. Please activate this installation again. Your data will be preserved.", readOnly: "View and export existing data" }, activation: { title: "Activate App", renew: "Renew activation", description: "Enter your activation code to link this installation to your license.", replacementDescription: "Enter a new activation code for the current license or another valid license. Your data will be preserved. The previous activation is replaced only after successful activation.", replacementNotice: "The existing activation is replaced only after successful verification.", code: "Activation code", deviceName: "Device name", devicePlaceholder: "My device", defaultDeviceName: "My device", pending: "Activating …", submit: "Activate license" }, banner: { readOnlyTitle: "Read-only mode", refreshFailed: "License update unavailable", retryStorage: "Retry saving", readOnlyDescription: "You can still view and export existing data. Creating and editing are blocked.", persistencePending: "The blocked license state could not yet be fully saved. This device remains blocked. Please try saving again." }, errors: { activationRequired: "The previous activation is no longer valid on the license server. Please enter a new activation code.", network: "The license server is currently unreachable. Local validity remains unchanged.", deviceRevoked: "The activation of this device has been revoked.", licenseRevoked: "This license has been revoked.", storage: "The local license state could not be read or saved safely.", certificate: "The license certificate is invalid.", alreadyActivated: "This installation is already activated.", api: "The license server rejected the activation or update. Check the code and the license status.", protocol: "The license server response could not be processed.", unactivated: "This installation is not activated yet.", stateChanged: "The license state has changed. Please check it again.", synchronization: "License synchronization is currently unavailable. Please try again.", readOnly: "This action requires a valid activation. Existing data remains readable and exportable.", featureDenied: "This feature is not enabled in your license.", unknown: "The license check failed. Please try again." } }, n = { title: "License", checking: "Checking license …", unknown: "Unavailable", plan: "Plan", licenseTerm: "Purchased license term", termUnknown: "Not provided by the server", certificateExpires: "Current certificate valid until", nextSync: "Next synchronization", syncDue: "Due since {{date}}", noSyncScheduled: "No automatic synchronization currently scheduled", features: "Features listed in the certificate", noFeatures: "No features available in the current certificate.", validityHint: "The certificate validity limits offline use. Its expiration does not automatically mean your purchased license has ended. The actual license term is not currently provided separately.", synchronize: "Synchronize license", syncing: "Synchronizing …", synchronized: "License status updated.", persistencePending: "The blocked license state could not yet be fully saved. Please synchronize again.", deviceDetails: "Advanced device details", deviceId: "Current device ID", noDevice: "No device activation yet.", deviceReleaseHint: "Releasing a device is not yet available in this app. Deleting local license data does not free a device slot on the server.", status: { active: { label: "Active", description: "Your signed license certificate is valid. The app can be used normally." }, offline_grace: { label: "Valid offline", description: "Your existing certificate still permits local use. Synchronization is due; the certificate is renewed only after successful server verification." }, expired: { label: "Certificate expired", description: "Your local certificate has expired. Synchronize to obtain a new one. This alone does not tell us whether your purchased license has also expired. Existing data remains readable and exportable." }, revoked: { label: "Device activation revoked", description: "This device activation has been revoked. Editing is blocked; existing data remains readable and exportable." }, license_revoked: { label: "License revoked", description: "The server has confirmed that this license was revoked. Editing is blocked; existing data remains readable and exportable." }, unactivated: { label: "Not activated", description: "This installation is not associated with a license yet. An activation code is required to use it." }, activation_required: { label: "Activation required", description: "The previous server association is missing or no longer matches this installation. Renew the activation. Existing data is preserved." }, invalid: { label: "Cannot be verified", description: "The local certificate cannot currently be verified reliably. Editing remains blocked. Synchronize to check the license status again." } }, plans: { trial: "Trial", personal: "Personal", professional: "Professional", lifetime: "Lifetime" }, featureLabels: { all_features: "All features", core: "Core features" } }, s = {
|
|
1
|
+
const e = { cancel: "Cancel", close: "Close", retry: "Try again" }, i = { back: "Back to home", errorDescription: "Reload the interface and try again.", errorTitle: "Something went wrong.", loadingApp: "Preparing app …", navigation: "Main navigation", restart: "Reload", switchTheme: "Change appearance", loadingSettings: "Loading settings …" }, a = { selectDate: "Select date", today: "Today", nextMonth: "Next month", previousMonth: "Previous month", chooseMonth: "Choose month", chooseYear: "Choose year", navigation: "Calendar navigation", selected: "selected" }, t = { checking: "Checking …", checkAgain: "Check again", gate: { loading: "Checking license and device status …", failed: "The license check failed.", activationRequired: "The previous activation is no longer valid. Please activate this installation again. Your data will be preserved.", readOnly: "View and export existing data" }, activation: { title: "Activate App", renew: "Renew activation", description: "Enter your activation code to link this installation to your license.", replacementDescription: "Enter a new activation code for the current license or another valid license. Your data will be preserved. The previous activation is replaced only after successful activation.", replacementNotice: "The existing activation is replaced only after successful verification.", code: "Activation code", deviceName: "Device name", devicePlaceholder: "My device", defaultDeviceName: "My device", pending: "Activating …", submit: "Activate license" }, banner: { readOnlyTitle: "Read-only mode", refreshFailed: "License update unavailable", retryStorage: "Retry saving", readOnlyDescription: "You can still view and export existing data. Creating and editing are blocked.", persistencePending: "The blocked license state could not yet be fully saved. This device remains blocked. Please try saving again." }, errors: { activationRequired: "The previous activation is no longer valid on the license server. Please enter a new activation code.", network: "The license server is currently unreachable. Local validity remains unchanged.", deviceRevoked: "The activation of this device has been revoked.", licenseRevoked: "This license has been revoked.", storage: "The local license state could not be read or saved safely.", certificate: "The license certificate is invalid.", alreadyActivated: "This installation is already activated.", api: "The license server rejected the activation or update. Check the code and the license status.", protocol: "The license server response could not be processed.", unactivated: "This installation is not activated yet.", stateChanged: "The license state has changed. Please check it again.", synchronization: "License synchronization is currently unavailable. Please try again.", readOnly: "This action requires a valid activation. Existing data remains readable and exportable.", featureDenied: "This feature is not enabled in your license.", unknown: "The license check failed. Please try again." } }, n = { title: "License", checking: "Checking license …", unknown: "Unavailable", plan: "Plan", licenseTerm: "Purchased license term", termUnknown: "Not provided by the server", certificateExpires: "Current certificate valid until", nextSync: "Next synchronization", syncDue: "Due since {{date}}", noSyncScheduled: "No automatic synchronization currently scheduled", features: "Features listed in the certificate", noFeatures: "No features available in the current certificate.", validityHint: "The certificate validity limits offline use. Its expiration does not automatically mean your purchased license has ended. The actual license term is not currently provided separately.", synchronize: "Synchronize license", syncing: "Synchronizing …", synchronized: "License status updated.", persistencePending: "The blocked license state could not yet be fully saved. Please synchronize again.", deviceDetails: "Advanced device details", deviceId: "Current device ID", noDevice: "No device activation yet.", deviceReleaseHint: "Releasing a device is not yet available in this app. Deleting local license data does not free a device slot on the server.", status: { active: { label: "Active", description: "Your signed license certificate is valid. The app can be used normally." }, offline_grace: { label: "Valid offline", description: "Your existing certificate still permits local use. Synchronization is due; the certificate is renewed only after successful server verification." }, expired: { label: "Certificate expired", description: "Your local certificate has expired. Synchronize to obtain a new one. This alone does not tell us whether your purchased license has also expired. Existing data remains readable and exportable." }, revoked: { label: "Device activation revoked", description: "This device activation has been revoked. Editing is blocked; existing data remains readable and exportable." }, license_revoked: { label: "License revoked", description: "The server has confirmed that this license was revoked. Editing is blocked; existing data remains readable and exportable." }, unactivated: { label: "Not activated", description: "This installation is not associated with a license yet. An activation code is required to use it." }, activation_required: { label: "Activation required", description: "The previous server association is missing or no longer matches this installation. Renew the activation. Existing data is preserved." }, invalid: { label: "Cannot be verified", description: "The local certificate cannot currently be verified reliably. Editing remains blocked. Synchronize to check the license status again." } }, plans: { trial: "Trial", personal: "Personal", professional: "Professional", lifetime: "Lifetime" }, featureLabels: { all_features: "All features", core: "Core features" } }, s = { saving: "Saving …", saved: "Changes saved", error: "Saving failed." }, c = { placeholder: "Type a tag and press Enter", remove: "Remove tag “{{tag}}”" }, o = {
|
|
2
2
|
actions: e,
|
|
3
3
|
app: i,
|
|
4
4
|
datePicker: a,
|
|
5
5
|
licensing: t,
|
|
6
|
-
licenseProfile: n
|
|
6
|
+
licenseProfile: n,
|
|
7
|
+
autosave: s,
|
|
8
|
+
tags: c
|
|
7
9
|
};
|
|
8
10
|
export {
|
|
9
11
|
e as actions,
|
|
10
12
|
i as app,
|
|
13
|
+
s as autosave,
|
|
11
14
|
a as datePicker,
|
|
12
|
-
|
|
15
|
+
o as default,
|
|
13
16
|
n as licenseProfile,
|
|
14
|
-
t as licensing
|
|
17
|
+
t as licensing,
|
|
18
|
+
c as tags
|
|
15
19
|
};
|
|
16
20
|
//# sourceMappingURL=en.json.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|