@molecule/app-exif-panel-angular 0.0.0-stage → 1.1.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/dist/format.js ADDED
@@ -0,0 +1,164 @@
1
+ /**
2
+ * Pure string-formatting helpers for EXIF values.
3
+ *
4
+ * Kept separate from the React component so they can be unit-tested
5
+ * without a DOM and reused by callers that want the formatted strings
6
+ * for non-rendering purposes (alt text, share captions, etc.).
7
+ *
8
+ * @module
9
+ */
10
+ import { formatApertureNumber, formatFocalLengthNumber, formatIsoNumber, formatShutterNumber, } from './format-parts.js';
11
+ /**
12
+ * Format an aperture f-number as `f/N` with one decimal place dropped
13
+ * when whole.
14
+ *
15
+ * @param fNumber - The aperture value (e.g. `2.8`, `5.6`, `8`).
16
+ * @returns A display string like `"f/2.8"` or `"f/8"`, or `null` when
17
+ * the input is missing / invalid.
18
+ */
19
+ export function formatAperture(fNumber) {
20
+ const digits = formatApertureNumber(fNumber);
21
+ return digits === null ? null : `f/${digits}`;
22
+ }
23
+ /**
24
+ * Format a shutter / exposure time in seconds as a human-readable
25
+ * string. Sub-second times are rendered as a `1/x s` reciprocal with
26
+ * the denominator rounded; longer exposures stay in seconds.
27
+ *
28
+ * @param seconds - Exposure time in seconds.
29
+ * @returns A display string like `"1/125 s"` or `"2 s"`, or `null` when
30
+ * the input is missing / invalid.
31
+ */
32
+ export function formatShutter(seconds) {
33
+ const digits = formatShutterNumber(seconds);
34
+ return digits === null ? null : `${digits} s`;
35
+ }
36
+ /**
37
+ * Format an ISO sensitivity as `ISO N`.
38
+ *
39
+ * @param iso - The ISO value (e.g. `100`, `1600`).
40
+ * @returns A display string like `"ISO 1600"`, or `null` when missing.
41
+ */
42
+ export function formatIso(iso) {
43
+ const digits = formatIsoNumber(iso);
44
+ return digits === null ? null : `ISO ${digits}`;
45
+ }
46
+ /**
47
+ * Format a focal length value as `N mm`.
48
+ *
49
+ * @param mm - Focal length in millimetres.
50
+ * @returns A display string like `"50 mm"`, or `null` when missing.
51
+ */
52
+ export function formatFocalLength(mm) {
53
+ const digits = formatFocalLengthNumber(mm);
54
+ return digits === null ? null : `${digits} mm`;
55
+ }
56
+ /**
57
+ * Format a single GPS coordinate (latitude or longitude) as
58
+ * deg/min/sec with a hemisphere suffix.
59
+ *
60
+ * @param value - Signed decimal degrees.
61
+ * @param axis - Which axis the value represents — picks `N`/`S` vs `E`/`W`.
62
+ * @returns A string like `"37° 25' 19.07" N"`, or `null` when missing.
63
+ */
64
+ export function formatDms(value, axis) {
65
+ if (value === undefined || value === null)
66
+ return null;
67
+ if (!Number.isFinite(value))
68
+ return null;
69
+ const positiveLabel = axis === 'lat' ? 'N' : 'E';
70
+ const negativeLabel = axis === 'lat' ? 'S' : 'W';
71
+ const hemisphere = value >= 0 ? positiveLabel : negativeLabel;
72
+ const abs = Math.abs(value);
73
+ const deg = Math.floor(abs);
74
+ const minutesFloat = (abs - deg) * 60;
75
+ const min = Math.floor(minutesFloat);
76
+ const seconds = (minutesFloat - min) * 60;
77
+ const secText = (Math.round(seconds * 100) / 100).toFixed(2);
78
+ return `${deg}° ${min}' ${secText}" ${hemisphere}`;
79
+ }
80
+ /**
81
+ * Format a GPS coordinate pair as a single deg/min/sec string.
82
+ *
83
+ * @param latitude - Latitude in signed decimal degrees.
84
+ * @param longitude - Longitude in signed decimal degrees.
85
+ * @returns A combined string like `"37° 25' 19.07" N, 122° 5' 4.16" W"`,
86
+ * or `null` if either value is missing.
87
+ */
88
+ export function formatGps(latitude, longitude) {
89
+ const lat = formatDms(latitude, 'lat');
90
+ const lon = formatDms(longitude, 'lon');
91
+ if (!lat || !lon)
92
+ return null;
93
+ return `${lat}, ${lon}`;
94
+ }
95
+ /**
96
+ * Build an OpenStreetMap link URL for a GPS coordinate pair.
97
+ *
98
+ * @param latitude - Latitude in signed decimal degrees.
99
+ * @param longitude - Longitude in signed decimal degrees.
100
+ * @returns An `https://www.openstreetmap.org/?...` URL, or `null` when
101
+ * either input is missing.
102
+ */
103
+ export function buildMapLink(latitude, longitude) {
104
+ if (latitude === undefined || longitude === undefined)
105
+ return null;
106
+ if (!Number.isFinite(latitude) || !Number.isFinite(longitude))
107
+ return null;
108
+ const lat = latitude.toFixed(6);
109
+ const lon = longitude.toFixed(6);
110
+ return `https://www.openstreetmap.org/?mlat=${lat}&mlon=${lon}#map=15/${lat}/${lon}`;
111
+ }
112
+ /**
113
+ * Format an EXIF capture timestamp. Accepts `Date`, ISO string, or
114
+ * epoch milliseconds and renders via `toLocaleString` so the result
115
+ * respects the given locale and the host environment's timezone — pass
116
+ * the app's active locale so the text follows a locale switch.
117
+ *
118
+ * @param value - The timestamp value pulled from EXIF.
119
+ * @param locale - The locale to format in (an `Intl` locale code); the
120
+ * host environment's locale when omitted.
121
+ * @returns A locale-formatted date/time string, or `null` when missing
122
+ * or unparseable.
123
+ */
124
+ export function formatTimestamp(value, locale) {
125
+ if (value === undefined || value === null)
126
+ return null;
127
+ let date;
128
+ if (value instanceof Date) {
129
+ date = value;
130
+ }
131
+ else if (typeof value === 'number') {
132
+ date = new Date(value);
133
+ }
134
+ else {
135
+ date = new Date(value);
136
+ }
137
+ if (Number.isNaN(date.getTime()))
138
+ return null;
139
+ return date.toLocaleString(locale);
140
+ }
141
+ /**
142
+ * Compose camera make + model into a single `"Make Model"` string,
143
+ * collapsing duplication when the model already starts with the make
144
+ * (Sony often does this).
145
+ *
146
+ * @param make - Camera manufacturer.
147
+ * @param model - Camera model.
148
+ * @returns The combined label, or `null` when both inputs are missing.
149
+ */
150
+ export function formatCamera(make, model) {
151
+ const m = make?.trim();
152
+ const md = model?.trim();
153
+ if (!m && !md)
154
+ return null;
155
+ if (!md)
156
+ return m ?? null;
157
+ if (!m)
158
+ return md;
159
+ // Avoid "Sony Sony a7 III" when model already starts with make.
160
+ if (md.toLowerCase().startsWith(m.toLowerCase()))
161
+ return md;
162
+ return `${m} ${md}`;
163
+ }
164
+ //# sourceMappingURL=format.js.map
@@ -0,0 +1 @@
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;IACtB,MAAM,EAAE,GAAG,KAAK,EAAE,IAAI,EAAE,CAAA;IACxB,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE;QAAE,OAAO,IAAI,CAAA;IAC1B,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,IAAI,IAAI,CAAA;IACzB,IAAI,CAAC,CAAC;QAAE,OAAO,EAAE,CAAA;IACjB,gEAAgE;IAChE,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QAAE,OAAO,EAAE,CAAA;IAC3D,OAAO,GAAG,CAAC,IAAI,EAAE,EAAE,CAAA;AACrB,CAAC"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Angular EXIF metadata panel for photo-sharing apps — the counterpart of
3
+ * `@molecule/app-exif-panel-react`: the same props (React names) and the same
4
+ * DOM for the same input.
5
+ *
6
+ * Exports `<ExifPanel>` — a structured renderer for already-parsed EXIF data
7
+ * (camera, lens, aperture, shutter, ISO, focal length, GPS, timestamp,
8
+ * software, copyright). The caller is responsible for decoding the raw EXIF
9
+ * payload (e.g. via the `exifr` library); this package is a
10
+ * styling-agnostic, i18n-aware renderer only.
11
+ *
12
+ * Also exports the `ExifData` and `ExifPanelProps` types and the pure
13
+ * formatting helpers (`formatAperture`, `formatShutter`, `formatIso`,
14
+ * `formatFocalLength`, `formatGps`, `formatTimestamp`, `formatCamera`,
15
+ * `buildMapLink`, `formatDms`).
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * import { Component } from '@angular/core'
20
+ * import { ExifPanel, type ExifData } from '@molecule/app-exif-panel-angular'
21
+ *
22
+ * @Component({
23
+ * selector: 'app-photo-metadata',
24
+ * standalone: true,
25
+ * imports: [ExifPanel],
26
+ * template: `<aside mol-exif-panel [exif]="exif" [showGps]="true" [compact]="false"></aside>`,
27
+ * })
28
+ * export class PhotoMetadata {
29
+ * exif: ExifData = {}
30
+ * }
31
+ * ```
32
+ *
33
+ * @remarks
34
+ * Requires a bonded ClassMap (`getClassMap()`) and the binding's i18n
35
+ * provider (`provideI18n` or `provideMolecule`) for `useTranslation()`. All
36
+ * user-facing text resolves through `t()` with React's keys and English
37
+ * `defaultValue`s.
38
+ *
39
+ * @module
40
+ */
41
+ export * from './exif-panel.component.js';
42
+ export * from './format.js';
43
+ export * from './types.js';
44
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,cAAc,2BAA2B,CAAA;AACzC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Angular EXIF metadata panel for photo-sharing apps — the counterpart of
3
+ * `@molecule/app-exif-panel-react`: the same props (React names) and the same
4
+ * DOM for the same input.
5
+ *
6
+ * Exports `<ExifPanel>` — a structured renderer for already-parsed EXIF data
7
+ * (camera, lens, aperture, shutter, ISO, focal length, GPS, timestamp,
8
+ * software, copyright). The caller is responsible for decoding the raw EXIF
9
+ * payload (e.g. via the `exifr` library); this package is a
10
+ * styling-agnostic, i18n-aware renderer only.
11
+ *
12
+ * Also exports the `ExifData` and `ExifPanelProps` types and the pure
13
+ * formatting helpers (`formatAperture`, `formatShutter`, `formatIso`,
14
+ * `formatFocalLength`, `formatGps`, `formatTimestamp`, `formatCamera`,
15
+ * `buildMapLink`, `formatDms`).
16
+ *
17
+ * @example
18
+ * ```ts
19
+ * import { Component } from '@angular/core'
20
+ * import { ExifPanel, type ExifData } from '@molecule/app-exif-panel-angular'
21
+ *
22
+ * @Component({
23
+ * selector: 'app-photo-metadata',
24
+ * standalone: true,
25
+ * imports: [ExifPanel],
26
+ * template: `<aside mol-exif-panel [exif]="exif" [showGps]="true" [compact]="false"></aside>`,
27
+ * })
28
+ * export class PhotoMetadata {
29
+ * exif: ExifData = {}
30
+ * }
31
+ * ```
32
+ *
33
+ * @remarks
34
+ * Requires a bonded ClassMap (`getClassMap()`) and the binding's i18n
35
+ * provider (`provideI18n` or `provideMolecule`) for `useTranslation()`. All
36
+ * user-facing text resolves through `t()` with React's keys and English
37
+ * `defaultValue`s.
38
+ *
39
+ * @module
40
+ */
41
+ export * from './exif-panel.component.js';
42
+ export * from './format.js';
43
+ export * from './types.js';
44
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,cAAc,2BAA2B,CAAA;AACzC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA"}
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Type definitions for the EXIF panel renderer.
3
+ *
4
+ * The caller is responsible for parsing the EXIF metadata (e.g. via the
5
+ * `exifr` library) — this package only renders an already-parsed object
6
+ * with normalized field names.
7
+ *
8
+ * @module
9
+ */
10
+ /**
11
+ * Parsed EXIF metadata. Every field is optional — extra fields are
12
+ * permitted (the renderer ignores them) so callers can pass through the
13
+ * full output of their EXIF parser without filtering.
14
+ */
15
+ export interface ExifData {
16
+ /** Camera manufacturer (e.g. `"Canon"`, `"Sony"`, `"Apple"`). */
17
+ make?: string;
18
+ /** Camera model (e.g. `"EOS R5"`, `"a7 III"`, `"iPhone 15 Pro"`). */
19
+ model?: string;
20
+ /** Lens model description (e.g. `"RF 24-70mm F2.8 L IS USM"`). */
21
+ lensModel?: string;
22
+ /** Aperture as an f-number (the `N` in `f/N`). */
23
+ fNumber?: number;
24
+ /** Exposure / shutter time in seconds (e.g. `0.008` ≈ `1/125 s`). */
25
+ exposureTime?: number;
26
+ /** ISO sensitivity (e.g. `100`, `1600`). */
27
+ iso?: number;
28
+ /** Focal length in millimetres. */
29
+ focalLength?: number;
30
+ /** 35 mm-equivalent focal length, when supplied by the camera. */
31
+ focalLength35mm?: number;
32
+ /** Capture timestamp — `Date`, ISO 8601 string, or epoch millis. */
33
+ dateTimeOriginal?: Date | string | number;
34
+ /** GPS latitude in signed decimal degrees. */
35
+ gpsLatitude?: number;
36
+ /** GPS longitude in signed decimal degrees. */
37
+ gpsLongitude?: number;
38
+ /** EXIF orientation tag (1–8). */
39
+ orientation?: number;
40
+ /** Software / firmware that produced the file. */
41
+ software?: string;
42
+ /** Copyright statement embedded in the file. */
43
+ copyright?: string;
44
+ /** Pass-through for parser-specific extras the renderer ignores. */
45
+ [key: string]: unknown;
46
+ }
47
+ /**
48
+ * Props for the `<ExifPanel>` component.
49
+ */
50
+ export interface ExifPanelProps {
51
+ /** Parsed EXIF metadata. */
52
+ exif: ExifData;
53
+ /**
54
+ * Compact mode collapses the panel into a single condensed grid with
55
+ * smaller type and tighter spacing. Defaults to `false`.
56
+ */
57
+ compact?: boolean;
58
+ /**
59
+ * Whether to render the GPS coordinates row when latitude / longitude
60
+ * are present. Defaults to `true`.
61
+ */
62
+ showGps?: boolean;
63
+ /** Optional heading override. */
64
+ heading?: string;
65
+ /** Extra classes appended to the panel root. */
66
+ className?: string;
67
+ }
68
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,qEAAqE;IACrE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,kEAAkE;IAClE,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,qEAAqE;IACrE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4CAA4C;IAC5C,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,mCAAmC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kEAAkE;IAClE,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,oEAAoE;IACpE,gBAAgB,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,CAAA;IACzC,8CAA8C;IAC9C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,oEAAoE;IACpE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAA;IACd;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,gDAAgD;IAChD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
package/dist/types.js ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Type definitions for the EXIF panel renderer.
3
+ *
4
+ * The caller is responsible for parsing the EXIF metadata (e.g. via the
5
+ * `exifr` library) — this package only renders an already-parsed object
6
+ * with normalized field names.
7
+ *
8
+ * @module
9
+ */
10
+ export {};
11
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
package/package.json CHANGED
@@ -1,6 +1,74 @@
1
1
  {
2
2
  "name": "@molecule/app-exif-panel-angular",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.1.0",
4
+ "description": "EXIF metadata renderer for photo-sharing apps — camera, lens, aperture, shutter, ISO, focal length, GPS, timestamp",
5
+ "homepage": "https://www.molecule.dev/packages/app-exif-panel-angular",
6
+ "type": "module",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js"
13
+ }
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md"
18
+ ],
19
+ "scripts": {
20
+ "build": "ngc",
21
+ "dev": "ngc --watch",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest"
24
+ },
25
+ "keywords": [
26
+ "molecule",
27
+ "exif",
28
+ "photo",
29
+ "metadata",
30
+ "angular"
31
+ ],
32
+ "author": "Molecule Dev, Inc. (https://molecule.dev)",
33
+ "license": "Apache-2.0",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "https://github.com/molecule-dev/molecule.git",
37
+ "directory": "packages/app/features/exif-panel-angular"
38
+ },
39
+ "engines": {
40
+ "node": ">=20"
41
+ },
42
+ "bugs": "https://github.com/molecule-dev/molecule/issues",
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "peerDependencies": {
47
+ "@angular/common": "^22.0.0",
48
+ "@angular/core": "^22.0.0",
49
+ "@angular/platform-browser": "^22.0.0",
50
+ "@molecule/app-angular": "^3.5.0",
51
+ "@molecule/app-i18n": "^1.0.1",
52
+ "@molecule/app-ui": "^1.0.1",
53
+ "@molecule/app-ui-angular": "^1.1.0"
54
+ },
55
+ "devDependencies": {
56
+ "@angular/common": "22.2.3",
57
+ "@angular/compiler": "22.2.3",
58
+ "@angular/compiler-cli": "22.2.3",
59
+ "@angular/core": "22.2.3",
60
+ "@angular/platform-browser": "22.2.3",
61
+ "@molecule/app-angular": "3.7.1",
62
+ "@molecule/app-framework-conformance": "0.0.0",
63
+ "@molecule/app-i18n": "1.2.2",
64
+ "@molecule/app-icons": "1.0.4",
65
+ "@molecule/app-ui": "1.4.0",
66
+ "@molecule/app-ui-angular": "1.2.0",
67
+ "@types/node": "26.6.5",
68
+ "jsdom": "30.1.3",
69
+ "rxjs": "7.8.2",
70
+ "typescript": "6.0.3",
71
+ "vitest": "4.1.12",
72
+ "zone.js": "0.16.3"
73
+ }
74
+ }