@molecule/app-file-dropzone-angular 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,7 +3,7 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-11-16T12:54:27.578Z
6
+ Generated: 2026-11-23T18:23:07.075Z
7
7
  -->
8
8
 
9
9
  # @molecule/app-file-dropzone-angular
@@ -114,6 +114,7 @@ is projected.
114
114
  @Component({
115
115
  selector: 'div[mol-file-dropzone]',
116
116
  standalone: true,
117
+ hostDirectives: [MolPlacement],
117
118
  inputs: ['onFiles', 'accept', 'multiple', 'maxSize', 'onRejected', 'disabled', 'className'],
118
119
  host: {
119
120
  role: 'button',
@@ -131,47 +132,59 @@ is projected.
131
132
  '(click)': 'onClick()',
132
133
  '(keydown)': 'onKeyDown($event)',
133
134
  },
134
- template: `<input
135
- #fileInput
136
- type="file"
137
- [attr.accept]="accept ?? null"
138
- [attr.multiple]="multiple ? '' : null"
139
- [attr.disabled]="disabled ? '' : null"
140
- (change)="onInputChange($event)"
141
- style="display: none"
142
- /><ng-content></ng-content>
143
- @if (!childrenProjected()) {
144
- <p #defaultDropHere [class]="dropHereClasses()">{{ dropHereText() }}</p>
145
- @if (accept) {
146
- <p #defaultAccepts [class]="acceptsClasses()">{{ acceptsText() }}</p>
147
- }
148
- }`,
135
+ // prettier-ignore
136
+ template: `<input #fileInput type="file" [attr.accept]="accept ?? null" [attr.multiple]="multiple ? '' : null" [attr.disabled]="disabled ? '' : null" (change)="onInputChange($event)" style="display: none" /><span #contentSlot><ng-content></ng-content></span>@if (defaultCopyShown()) {<p [class]="dropHereClasses()">{{ dropHereText() }}</p>@if (accept) {<p [class]="acceptsClasses()">{{ acceptsText() }}</p>}}`,
149
137
  })
150
- export class FileDropzone implements AfterViewInit, DoCheck {
138
+ export class FileDropzone {
139
+ /** Called with the File[] the user selected or dropped. */
151
140
  onFiles?: (files: File[]) => void
141
+ /** Accept attribute (e.g. `'image/*'` or `'.pdf,.docx'`). */
152
142
  accept?: string
143
+ /** Allow multi-file selection. Defaults to false. */
153
144
  multiple?: boolean
145
+ /** Max file size in bytes. Files exceeding are rejected. */
154
146
  maxSize?: number
147
+ /** Called with rejected files (wrong type or size). */
155
148
  onRejected?: (files: File[]) => void
149
+ /** Disabled state. */
156
150
  disabled?: boolean
151
+ /** Extra classes on the dropzone wrapper. */
157
152
  className?: string
158
153
 
154
+ /** The hidden file input (opened by a click or Enter/Space on the zone). */
159
155
  @ViewChild('fileInput') private fileInput?: ElementRef<HTMLInputElement>
160
- @ViewChild('defaultDropHere') private defaultDropHere?: ElementRef<HTMLParagraphElement>
161
- @ViewChild('defaultAccepts') private defaultAccepts?: ElementRef<HTMLParagraphElement>
156
+ /** The projected-content capture (its span never renders; `placeContentBefore` stands in its place). */
157
+ @ViewChild('contentSlot', { static: true }) private contentSlot?: ElementRef<HTMLSpanElement>
162
158
 
159
+ /** The i18n handle (locale-reactive), read in an injection context. */
163
160
  private readonly i18n = useTranslation()
164
- private readonly el = inject(ElementRef)
161
+ /** Whether a drag is over the zone (React's `useState`). */
165
162
  private readonly dragging = signal(false)
166
- private readonly projected = signal(false)
167
- private viewReady = false
163
+ /** Whether the default copy renders (React's `children ?? default`). */
164
+ readonly defaultCopyShown = signal(true)
165
+
166
+ /** Renders the projected content in the capture's place and withdraws the capture, then shows the default copy only while nothing is projected, as React's `childr… */
167
+ constructor() {
168
+ usePlacement((hasContent) => {
169
+ const slot = this.contentSlot?.nativeElement
170
+ placeContentBefore(slot, slot)
171
+ setElementPresent(slot, false)
172
+ this.defaultCopyShown.set(!(slot ? hasContent(slot) : false))
173
+ })
174
+ }
168
175
 
176
+ /** The drag-over fill, a theme token mixed into transparency. */
169
177
  readonly backgroundStyle = 'color-mix(in srgb, var(--mol-color-primary, #3366ff) 6%, transparent)'
170
178
 
179
+ /**
180
+ * The current class map.
181
+ * @returns The UIClassMap.
182
+ */
171
183
  cm(): UIClassMap {
172
184
  return getClassMap()
173
185
  }
174
186
 
187
+ /** The wrapper class list (React's `cm.cn(cm.flex({…}), cm.sp('p', 6), cm.textCenter, !disabled ? cm.cursorPointer : undefined, className)`). */
175
188
  classes(): string {
176
189
  return this.cm().cn(
177
190
  this.cm().flex({ direction: 'col', align: 'center', justify: 'center' }),
@@ -182,20 +195,24 @@ export class FileDropzone implements AfterViewInit, DoCheck {
182
195
  )
183
196
  }
184
197
 
198
+ /** The dashed drop-surface border (React's `border`), thick in the primary colour while a drag is over the zone and muted otherwise. */
185
199
  borderStyle(): string {
186
200
  return this.dragging()
187
201
  ? '2px dashed var(--mol-color-primary, #3366ff)'
188
202
  : '2px dashed var(--mol-color-border, rgba(128,128,128,0.35))'
189
203
  }
190
204
 
205
+ /** The default "drop here" paragraph's class (React's `cm.cn(cm.textSize('sm'), cm.fontWeight('semibold'))`). */
191
206
  dropHereClasses(): string {
192
207
  return this.cm().cn(this.cm().textSize('sm'), this.cm().fontWeight('semibold'))
193
208
  }
194
209
 
210
+ /** The accept-hint paragraph's class (React's `cm.cn(cm.textSize('xs'), cm.sp('mt', 1))`). */
195
211
  acceptsClasses(): string {
196
212
  return this.cm().cn(this.cm().textSize('xs'), this.cm().sp('mt', 1))
197
213
  }
198
214
 
215
+ /** The default copy's first line (React's `fileDropzone.dropHere`). */
199
216
  dropHereText(): string {
200
217
  return this.i18n.t(
201
218
  'fileDropzone.dropHere',
@@ -204,6 +221,7 @@ export class FileDropzone implements AfterViewInit, DoCheck {
204
221
  )
205
222
  }
206
223
 
224
+ /** The accept hint (React's `fileDropzone.accepts`). */
207
225
  acceptsText(): string {
208
226
  return this.i18n.t(
209
227
  'fileDropzone.accepts',
@@ -212,10 +230,7 @@ export class FileDropzone implements AfterViewInit, DoCheck {
212
230
  )
213
231
  }
214
232
 
215
- childrenProjected(): boolean {
216
- return this.projected()
217
- }
218
-
233
+ /** Filters a file list into kept and rejected files, exactly as React does: a file over `maxSize` is rejected, then a file matching neither the accept extension n… */
219
234
  filter(raw: FileList | File[]): { kept: File[]; rejected: File[] } {
220
235
  const arr = Array.from(raw)
221
236
  const kept: File[] = []
@@ -225,6 +240,7 @@ export class FileDropzone implements AfterViewInit, DoCheck {
225
240
  rejected.push(f)
226
241
  continue
227
242
  }
243
+ // cheap accept check
228
244
  if (this.accept) {
229
245
  const okByExt = this.accept
230
246
  .split(',')
@@ -251,16 +267,19 @@ export class FileDropzone implements AfterViewInit, DoCheck {
251
267
  return { kept, rejected }
252
268
  }
253
269
 
270
+ /** Filters the given file list and dispatches kept/rejected files to the callbacks — only the first kept file unless `multiple` is set. */
254
271
  dispatch(list: FileList | File[]): void {
255
272
  const { kept, rejected } = this.filter(list)
256
273
  if (kept.length > 0) this.onFiles?.(this.multiple ? kept : [kept[0]!])
257
274
  if (rejected.length > 0) this.onRejected?.(rejected)
258
275
  }
259
276
 
277
+ /** Opens the native file dialog through the hidden input. */
260
278
  openDialog(): void {
261
279
  this.fileInput?.nativeElement.click()
262
280
  }
263
281
 
282
+ /** React's `onDragOver`: prevents the browser's default (which would open the dropped file) and highlights the zone, unless disabled. */
264
283
  onDragOver(event: DragEvent): void {
265
284
  if (!this.disabled) {
266
285
  event.preventDefault()
@@ -268,20 +287,24 @@ export class FileDropzone implements AfterViewInit, DoCheck {
268
287
  }
269
288
  }
270
289
 
290
+ /** React's `onDragLeave`: clears the highlight. */
271
291
  onDragLeave(): void {
272
292
  this.dragging.set(false)
273
293
  }
274
294
 
295
+ /** React's `onDrop`: always prevents the browser's default, clears the highlight, and dispatches the dropped files unless disabled. */
275
296
  onDrop(event: DragEvent): void {
276
297
  event.preventDefault()
277
298
  this.dragging.set(false)
278
299
  if (!this.disabled && event.dataTransfer?.files) this.dispatch(event.dataTransfer.files)
279
300
  }
280
301
 
302
+ /** React's `onClick`: opens the file dialog unless disabled. */
281
303
  onClick(): void {
282
304
  if (!this.disabled) this.openDialog()
283
305
  }
284
306
 
307
+ /** React's `onKeyDown`: `role="button"` gets no native keyboard activation — Enter/Space open the file dialog and prevent their defaults (Space would otherwise sc… */
285
308
  onKeyDown(event: KeyboardEvent): void {
286
309
  if (this.disabled) return
287
310
  if (event.key === 'Enter' || event.key === ' ' || event.key === 'Spacebar') {
@@ -290,36 +313,15 @@ export class FileDropzone implements AfterViewInit, DoCheck {
290
313
  }
291
314
  }
292
315
 
316
+ /** React's hidden input `onChange`: dispatches the picked files. */
293
317
  onInputChange(event: Event): void {
294
318
  const files = (event.target as HTMLInputElement).files
295
319
  if (files) this.dispatch(files)
296
320
  }
297
-
298
- syncProjection(): void {
299
- if (!this.viewReady || this.projected()) return
300
- const host = this.el.nativeElement as HTMLElement
301
- const own = new Set<Node>()
302
- if (this.fileInput) own.add(this.fileInput.nativeElement)
303
- if (this.defaultDropHere) own.add(this.defaultDropHere.nativeElement)
304
- if (this.defaultAccepts) own.add(this.defaultAccepts.nativeElement)
305
- const projected = Array.from(host.childNodes).some(
306
- (node) => !own.has(node) && hasRenderable(node),
307
- )
308
- if (projected) this.projected.set(true)
309
- }
310
-
311
- ngAfterViewInit(): void {
312
- this.viewReady = true
313
- this.syncProjection()
314
- }
315
-
316
- ngDoCheck(): void {
317
- this.syncProjection()
318
- }
319
321
  }
320
322
  ```
321
323
 
322
- _(Member comments are left out to fit; the full declaration is in `node_modules/@molecule/app-file-dropzone-angular/dist/file-dropzone.component.d.ts`.)_
324
+ _(The 13 longest member comments are shortened to their first sentence to fit; the full declaration is in `node_modules/@molecule/app-file-dropzone-angular/dist/file-dropzone.component.d.ts`.)_
323
325
 
324
326
  ## Injection Notes
325
327
 
@@ -330,7 +332,7 @@ Peer dependencies:
330
332
  - `@angular/common` ^22.0.0
331
333
  - `@angular/core` ^22.0.0
332
334
  - `@angular/platform-browser` ^22.0.0
333
- - `@molecule/app-angular` ^3.5.0
335
+ - `@molecule/app-angular` ^3.13.0
334
336
  - `@molecule/app-ui` ^1.0.1
335
337
  - `@molecule/app-ui-angular` ^1.1.0
336
338
 
@@ -1,11 +1,6 @@
1
- /**
2
- * FileDropzone component (React parity).
3
- *
4
- * @module
5
- */
6
- import { type AfterViewInit, type DoCheck } from '@angular/core';
7
1
  import type { UIClassMap } from '@molecule/app-ui';
8
2
  import * as i0 from "@angular/core";
3
+ import * as i1 from "@molecule/app-angular";
9
4
  /**
10
5
  * FileDropzone component.
11
6
  *
@@ -21,11 +16,11 @@ import * as i0 from "@angular/core";
21
16
  *
22
17
  * @remarks
23
18
  * Angular projection needs the `<ng-content>` capture point mounted, so the
24
- * default copy renders optimistically and {@link FileDropzone} withdraws it
25
- * once it sees that the caller projected content (React renders one or the
26
- * other, never both).
19
+ * projected content's capture span stays in the template and its content
20
+ * renders in the span's place; the default copy renders only while nothing is
21
+ * projected, and comes back when projected content is taken away.
27
22
  */
28
- export declare class FileDropzone implements AfterViewInit, DoCheck {
23
+ export declare class FileDropzone {
29
24
  /** Called with the File[] the user selected or dropped. */
30
25
  onFiles?: (files: File[]) => void;
31
26
  /** Accept attribute (e.g. `'image/*'` or `'.pdf,.docx'`). */
@@ -42,20 +37,21 @@ export declare class FileDropzone implements AfterViewInit, DoCheck {
42
37
  className?: string;
43
38
  /** The hidden file input (opened by a click or Enter/Space on the zone). */
44
39
  private fileInput?;
45
- /** The default "drop here" paragraph, while it renders. */
46
- private defaultDropHere?;
47
- /** The default accept-hint paragraph, while it renders. */
48
- private defaultAccepts?;
40
+ /** The projected-content capture (its span never renders; `placeContentBefore` stands in its place). */
41
+ private contentSlot?;
49
42
  /** The i18n handle (locale-reactive), read in an injection context. */
50
43
  private readonly i18n;
51
- /** The host element (the root `<div>`). */
52
- private readonly el;
53
44
  /** Whether a drag is over the zone (React's `useState`). */
54
45
  private readonly dragging;
55
- /** Whether the caller projected content (React's `children`). */
56
- private readonly projected;
57
- /** Whether the view (and its template nodes / queries) exists yet. */
58
- private viewReady;
46
+ /** Whether the default copy renders (React's `children ?? default`). */
47
+ readonly defaultCopyShown: import("@angular/core").WritableSignal<boolean>;
48
+ /**
49
+ * Renders the projected content in the capture's place and withdraws the
50
+ * capture, then shows the default copy only while nothing is projected, as
51
+ * React's `children ?? default` does — re-decided whenever the content
52
+ * changes (children taken away and given back included).
53
+ */
54
+ constructor();
59
55
  /** The drag-over fill, a theme token mixed into transparency. */
60
56
  readonly backgroundStyle = "color-mix(in srgb, var(--mol-color-primary, #3366ff) 6%, transparent)";
61
57
  /**
@@ -98,12 +94,6 @@ export declare class FileDropzone implements AfterViewInit, DoCheck {
98
94
  * @returns The translated text.
99
95
  */
100
96
  acceptsText(): string;
101
- /**
102
- * Whether the default copy is withdrawn because the caller projected
103
- * content.
104
- * @returns True when projected content replaces the default copy.
105
- */
106
- childrenProjected(): boolean;
107
97
  /**
108
98
  * Filters a file list into kept and rejected files, exactly as React does: a
109
99
  * file over `maxSize` is rejected, then a file matching neither the accept
@@ -157,22 +147,7 @@ export declare class FileDropzone implements AfterViewInit, DoCheck {
157
147
  * @param event - The native change event.
158
148
  */
159
149
  onInputChange(event: Event): void;
160
- /**
161
- * Whether the caller projected any content (React's `children ?? default`).
162
- * Latching: children cannot change after mount, so the first answer stands —
163
- * without the latch, withdrawing the default copy would leave no node to
164
- * compare against and the answer would oscillate.
165
- *
166
- * Runs only once the view is initialized: an earlier `ngDoCheck` runs before
167
- * the template's nodes and the view queries exist, so every node would look
168
- * like the caller's projection.
169
- */
170
- syncProjection(): void;
171
- /** Reads the first render's projection once the view (and its content) exist. */
172
- ngAfterViewInit(): void;
173
- /** Re-reconciles the default copy with the projection after input writes. */
174
- ngDoCheck(): void;
175
150
  static ɵfac: i0.ɵɵFactoryDeclaration<FileDropzone, never>;
176
- static ɵcmp: i0.ɵɵComponentDeclaration<FileDropzone, "div[mol-file-dropzone]", never, { "onFiles": { "alias": "onFiles"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "onRejected": { "alias": "onRejected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, never>;
151
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileDropzone, "div[mol-file-dropzone]", never, { "onFiles": { "alias": "onFiles"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "onRejected": { "alias": "onRejected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, ["*"], true, [{ directive: typeof i1.MolPlacement; inputs: {}; outputs: {}; }]>;
177
152
  }
178
153
  //# sourceMappingURL=file-dropzone.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-dropzone.component.d.ts","sourceRoot":"","sources":["../src/file-dropzone.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,OAAO,EAKb,MAAM,eAAe,CAAA;AAGtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;;AAclD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAuBa,YAAa,YAAW,aAAa,EAAE,OAAO;IACzD,2DAA2D;IAC3D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IACjC,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,qDAAqD;IACrD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,uDAAuD;IACvD,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IACpC,sBAAsB;IACtB,QAAQ,CAAC,EAA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AA4D;IAC5D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAgB;IACzC,wEAAwE;IACxE,QAAQ,CAAC,gBAAgB,kDAAe;IAExC;;;;;OAKG;;IAUH,iEAAiE;IACjE,QAAQ,CAAC,eAAe,2EAA0E;IAElG;;;OAGG;IACH,EAAE,IAAI,UAAU;IAIhB;;;;OAIG;IACH,OAAO,IAAI,MAAM;IAUjB;;;;OAIG;IACH,WAAW,IAAI,MAAM;IAMrB;;;;OAIG;IACH,eAAe,IAAI,MAAM;IAIzB;;;;OAIG;IACH,cAAc,IAAI,MAAM;IAIxB;;;OAGG;IACH,YAAY,IAAI,MAAM;IAQtB;;;;OAIG;IACH,WAAW,IAAI,MAAM;IAQrB;;;;;;;OAOG;IACH,MAAM,CAAC,GAAG,EAAE,QAAQ,GAAG,IAAI,EAAE,GAAG;QAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QAAC,QAAQ,EAAE,IAAI,EAAE,CAAA;KAAE;IAoClE;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,EAAE,GAAG,IAAI;IAMvC,6DAA6D;IAC7D,UAAU,IAAI,IAAI;IAIlB;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAOlC,mDAAmD;IACnD,WAAW,IAAI,IAAI;IAInB;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAM9B,gEAAgE;IAChE,OAAO,IAAI,IAAI;IAIf;;;;;;OAMG;IACH,SAAS,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAQrC;;;;OAIG;IACH,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCA/OtB,YAAY;2CAAZ,YAAY;CAmPxB"}
@@ -3,46 +3,37 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import { Component, ElementRef, inject, signal, ViewChild, } from '@angular/core';
7
- import { useTranslation } from '@molecule/app-angular';
6
+ import { Component, signal, ViewChild } from '@angular/core';
7
+ import { MolPlacement, placeContentBefore, setElementPresent, usePlacement, useTranslation, } from '@molecule/app-angular';
8
8
  import { getClassMap } from '@molecule/app-ui';
9
9
  import * as i0 from "@angular/core";
10
+ import * as i1 from "@molecule/app-angular";
10
11
  const _c0 = ["fileInput"];
11
- const _c1 = ["defaultDropHere"];
12
- const _c2 = ["defaultAccepts"];
13
- const _c3 = ["*"];
14
- function FileDropzone_Conditional_3_Conditional_3_Template(rf, ctx) { if (rf & 1) {
15
- i0.ɵɵdomElementStart(0, "p", null, 2);
16
- i0.ɵɵtext(2);
12
+ const _c1 = ["contentSlot"];
13
+ const _c2 = ["*"];
14
+ function FileDropzone_Conditional_5_Conditional_2_Template(rf, ctx) { if (rf & 1) {
15
+ i0.ɵɵdomElementStart(0, "p");
16
+ i0.ɵɵtext(1);
17
17
  i0.ɵɵdomElementEnd();
18
18
  } if (rf & 2) {
19
19
  const ctx_r0 = i0.ɵɵnextContext(2);
20
20
  i0.ɵɵclassMap(ctx_r0.acceptsClasses());
21
- i0.ɵɵadvance(2);
21
+ i0.ɵɵadvance();
22
22
  i0.ɵɵtextInterpolate(ctx_r0.acceptsText());
23
23
  } }
24
- function FileDropzone_Conditional_3_Template(rf, ctx) { if (rf & 1) {
25
- i0.ɵɵdomElementStart(0, "p", null, 1);
26
- i0.ɵɵtext(2);
24
+ function FileDropzone_Conditional_5_Template(rf, ctx) { if (rf & 1) {
25
+ i0.ɵɵdomElementStart(0, "p");
26
+ i0.ɵɵtext(1);
27
27
  i0.ɵɵdomElementEnd();
28
- i0.ɵɵconditionalCreate(3, FileDropzone_Conditional_3_Conditional_3_Template, 3, 3, "p", 4);
28
+ i0.ɵɵconditionalCreate(2, FileDropzone_Conditional_5_Conditional_2_Template, 2, 3, "p", 3);
29
29
  } if (rf & 2) {
30
30
  const ctx_r0 = i0.ɵɵnextContext();
31
31
  i0.ɵɵclassMap(ctx_r0.dropHereClasses());
32
- i0.ɵɵadvance(2);
32
+ i0.ɵɵadvance();
33
33
  i0.ɵɵtextInterpolate(ctx_r0.dropHereText());
34
34
  i0.ɵɵadvance();
35
- i0.ɵɵconditional(ctx_r0.accept ? 3 : -1);
35
+ i0.ɵɵconditional(ctx_r0.accept ? 2 : -1);
36
36
  } }
37
- /**
38
- * Whether a node is something a caller can see (an element, or a non-blank
39
- * text node).
40
- *
41
- * @param node - The DOM node.
42
- * @returns True when it renders anything.
43
- */
44
- const hasRenderable = (node) => node.nodeType === Node.ELEMENT_NODE ||
45
- (node.nodeType === Node.TEXT_NODE && (node.textContent ?? '').trim().length > 0);
46
37
  /**
47
38
  * FileDropzone component.
48
39
  *
@@ -58,9 +49,9 @@ const hasRenderable = (node) => node.nodeType === Node.ELEMENT_NODE ||
58
49
  *
59
50
  * @remarks
60
51
  * Angular projection needs the `<ng-content>` capture point mounted, so the
61
- * default copy renders optimistically and {@link FileDropzone} withdraws it
62
- * once it sees that the caller projected content (React renders one or the
63
- * other, never both).
52
+ * projected content's capture span stays in the template and its content
53
+ * renders in the span's place; the default copy renders only while nothing is
54
+ * projected, and comes back when projected content is taken away.
64
55
  */
65
56
  export class FileDropzone {
66
57
  /** Called with the File[] the user selected or dropped. */
@@ -79,22 +70,30 @@ export class FileDropzone {
79
70
  className;
80
71
  /** The hidden file input (opened by a click or Enter/Space on the zone). */
81
72
  fileInput;
82
- /** The default "drop here" paragraph, while it renders. */
83
- defaultDropHere;
84
- /** The default accept-hint paragraph, while it renders. */
85
- defaultAccepts;
73
+ /** The projected-content capture (its span never renders; `placeContentBefore` stands in its place). */
74
+ contentSlot;
86
75
  /** The i18n handle (locale-reactive), read in an injection context. */
87
76
  i18n = useTranslation();
88
- /** The host element (the root `<div>`). */
89
- el = inject(ElementRef);
90
77
  /** Whether a drag is over the zone (React's `useState`). */
91
78
  dragging = signal(false, /* @ts-ignore */
92
79
  ...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
93
- /** Whether the caller projected content (React's `children`). */
94
- projected = signal(false, /* @ts-ignore */
95
- ...(ngDevMode ? [{ debugName: "projected" }] : /* istanbul ignore next */ []));
96
- /** Whether the view (and its template nodes / queries) exists yet. */
97
- viewReady = false;
80
+ /** Whether the default copy renders (React's `children ?? default`). */
81
+ defaultCopyShown = signal(true, /* @ts-ignore */
82
+ ...(ngDevMode ? [{ debugName: "defaultCopyShown" }] : /* istanbul ignore next */ []));
83
+ /**
84
+ * Renders the projected content in the capture's place and withdraws the
85
+ * capture, then shows the default copy only while nothing is projected, as
86
+ * React's `children ?? default` does — re-decided whenever the content
87
+ * changes (children taken away and given back included).
88
+ */
89
+ constructor() {
90
+ usePlacement((hasContent) => {
91
+ const slot = this.contentSlot?.nativeElement;
92
+ placeContentBefore(slot, slot);
93
+ setElementPresent(slot, false);
94
+ this.defaultCopyShown.set(!(slot ? hasContent(slot) : false));
95
+ });
96
+ }
98
97
  /** The drag-over fill, a theme token mixed into transparency. */
99
98
  backgroundStyle = 'color-mix(in srgb, var(--mol-color-primary, #3366ff) 6%, transparent)';
100
99
  /**
@@ -153,14 +152,6 @@ export class FileDropzone {
153
152
  acceptsText() {
154
153
  return this.i18n.t('fileDropzone.accepts', { accept: this.accept ?? '' }, { defaultValue: 'Accepts: {{accept}}' });
155
154
  }
156
- /**
157
- * Whether the default copy is withdrawn because the caller projected
158
- * content.
159
- * @returns True when projected content replaces the default copy.
160
- */
161
- childrenProjected() {
162
- return this.projected();
163
- }
164
155
  /**
165
156
  * Filters a file list into kept and rejected files, exactly as React does: a
166
157
  * file over `maxSize` is rejected, then a file matching neither the accept
@@ -273,65 +264,32 @@ export class FileDropzone {
273
264
  if (files)
274
265
  this.dispatch(files);
275
266
  }
276
- /**
277
- * Whether the caller projected any content (React's `children ?? default`).
278
- * Latching: children cannot change after mount, so the first answer stands —
279
- * without the latch, withdrawing the default copy would leave no node to
280
- * compare against and the answer would oscillate.
281
- *
282
- * Runs only once the view is initialized: an earlier `ngDoCheck` runs before
283
- * the template's nodes and the view queries exist, so every node would look
284
- * like the caller's projection.
285
- */
286
- syncProjection() {
287
- if (!this.viewReady || this.projected())
288
- return;
289
- const host = this.el.nativeElement;
290
- const own = new Set();
291
- if (this.fileInput)
292
- own.add(this.fileInput.nativeElement);
293
- if (this.defaultDropHere)
294
- own.add(this.defaultDropHere.nativeElement);
295
- if (this.defaultAccepts)
296
- own.add(this.defaultAccepts.nativeElement);
297
- const projected = Array.from(host.childNodes).some((node) => !own.has(node) && hasRenderable(node));
298
- if (projected)
299
- this.projected.set(true);
300
- }
301
- /** Reads the first render's projection once the view (and its content) exist. */
302
- ngAfterViewInit() {
303
- this.viewReady = true;
304
- this.syncProjection();
305
- }
306
- /** Re-reconciles the default copy with the projection after input writes. */
307
- ngDoCheck() {
308
- this.syncProjection();
309
- }
310
267
  static ɵfac = function FileDropzone_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FileDropzone)(); };
311
268
  static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileDropzone, selectors: [["div", "mol-file-dropzone", ""]], viewQuery: function FileDropzone_Query(rf, ctx) { if (rf & 1) {
312
- i0.ɵɵviewQuery(_c0, 5)(_c1, 5)(_c2, 5);
269
+ i0.ɵɵviewQuery(_c0, 5)(_c1, 7);
313
270
  } if (rf & 2) {
314
271
  let _t;
315
272
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
316
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.defaultDropHere = _t.first);
317
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.defaultAccepts = _t.first);
273
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.contentSlot = _t.first);
318
274
  } }, hostAttrs: ["role", "button", "tabindex", "0", "data-mol-id", "file-dropzone"], hostVars: 11, hostBindings: function FileDropzone_HostBindings(rf, ctx) { if (rf & 1) {
319
275
  i0.ɵɵlistener("dragover", function FileDropzone_dragover_HostBindingHandler($event) { return ctx.onDragOver($event); })("dragleave", function FileDropzone_dragleave_HostBindingHandler() { return ctx.onDragLeave(); })("drop", function FileDropzone_drop_HostBindingHandler($event) { return ctx.onDrop($event); })("click", function FileDropzone_click_HostBindingHandler() { return ctx.onClick(); })("keydown", function FileDropzone_keydown_HostBindingHandler($event) { return ctx.onKeyDown($event); });
320
276
  } if (rf & 2) {
321
277
  i0.ɵɵattribute("aria-disabled", ctx.disabled ?? null);
322
278
  i0.ɵɵclassMap(ctx.classes());
323
279
  i0.ɵɵstyleProp("border", ctx.borderStyle())("border-radius", "12px")("min-height", "140px")("background", ctx.dragging() ? ctx.backgroundStyle : null);
324
- } }, inputs: { onFiles: "onFiles", accept: "accept", multiple: "multiple", maxSize: "maxSize", onRejected: "onRejected", disabled: "disabled", className: "className" }, ngContentSelectors: _c3, decls: 4, vars: 4, consts: [["fileInput", ""], ["defaultDropHere", ""], ["defaultAccepts", ""], ["type", "file", 2, "display", "none", 3, "change"], [3, "class"]], template: function FileDropzone_Template(rf, ctx) { if (rf & 1) {
280
+ } }, inputs: { onFiles: "onFiles", accept: "accept", multiple: "multiple", maxSize: "maxSize", onRejected: "onRejected", disabled: "disabled", className: "className" }, features: [i0.ɵɵHostDirectivesFeature([i1.MolPlacement])], ngContentSelectors: _c2, decls: 6, vars: 4, consts: [["fileInput", ""], ["contentSlot", ""], ["type", "file", 2, "display", "none", 3, "change"], [3, "class"]], template: function FileDropzone_Template(rf, ctx) { if (rf & 1) {
325
281
  i0.ɵɵprojectionDef();
326
- i0.ɵɵdomElementStart(0, "input", 3, 0);
282
+ i0.ɵɵdomElementStart(0, "input", 2, 0);
327
283
  i0.ɵɵdomListener("change", function FileDropzone_Template_input_change_0_listener($event) { return ctx.onInputChange($event); });
328
284
  i0.ɵɵdomElementEnd();
329
- i0.ɵɵprojection(2);
330
- i0.ɵɵconditionalCreate(3, FileDropzone_Conditional_3_Template, 4, 4);
285
+ i0.ɵɵdomElementStart(2, "span", null, 1);
286
+ i0.ɵɵprojection(4);
287
+ i0.ɵɵdomElementEnd();
288
+ i0.ɵɵconditionalCreate(5, FileDropzone_Conditional_5_Template, 3, 4);
331
289
  } if (rf & 2) {
332
290
  i0.ɵɵattribute("accept", ctx.accept ?? null)("multiple", ctx.multiple ? "" : null)("disabled", ctx.disabled ? "" : null);
333
- i0.ɵɵadvance(3);
334
- i0.ɵɵconditional(!ctx.childrenProjected() ? 3 : -1);
291
+ i0.ɵɵadvance(5);
292
+ i0.ɵɵconditional(ctx.defaultCopyShown() ? 5 : -1);
335
293
  } }, encapsulation: 2 });
336
294
  }
337
295
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileDropzone, [{
@@ -339,6 +297,7 @@ export class FileDropzone {
339
297
  args: [{
340
298
  selector: 'div[mol-file-dropzone]',
341
299
  standalone: true,
300
+ hostDirectives: [MolPlacement],
342
301
  inputs: ['onFiles', 'accept', 'multiple', 'maxSize', 'onRejected', 'disabled', 'className'],
343
302
  host: {
344
303
  role: 'button',
@@ -357,17 +316,14 @@ export class FileDropzone {
357
316
  '(keydown)': 'onKeyDown($event)',
358
317
  },
359
318
  // prettier-ignore
360
- template: `<input #fileInput type="file" [attr.accept]="accept ?? null" [attr.multiple]="multiple ? '' : null" [attr.disabled]="disabled ? '' : null" (change)="onInputChange($event)" style="display: none" /><ng-content></ng-content>@if (!childrenProjected()) {<p #defaultDropHere [class]="dropHereClasses()">{{ dropHereText() }}</p>@if (accept) {<p #defaultAccepts [class]="acceptsClasses()">{{ acceptsText() }}</p>}}`,
319
+ template: `<input #fileInput type="file" [attr.accept]="accept ?? null" [attr.multiple]="multiple ? '' : null" [attr.disabled]="disabled ? '' : null" (change)="onInputChange($event)" style="display: none" /><span #contentSlot><ng-content></ng-content></span>@if (defaultCopyShown()) {<p [class]="dropHereClasses()">{{ dropHereText() }}</p>@if (accept) {<p [class]="acceptsClasses()">{{ acceptsText() }}</p>}}`,
361
320
  }]
362
- }], null, { fileInput: [{
321
+ }], () => [], { fileInput: [{
363
322
  type: ViewChild,
364
323
  args: ['fileInput']
365
- }], defaultDropHere: [{
366
- type: ViewChild,
367
- args: ['defaultDropHere']
368
- }], defaultAccepts: [{
324
+ }], contentSlot: [{
369
325
  type: ViewChild,
370
- args: ['defaultAccepts']
326
+ args: ['contentSlot', { static: true }]
371
327
  }] }); })();
372
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileDropzone, { className: "FileDropzone", filePath: "file-dropzone.component.ts", lineNumber: 74 }); })();
328
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileDropzone, { className: "FileDropzone", filePath: "file-dropzone.component.ts", lineNumber: 62 }); })();
373
329
  //# sourceMappingURL=file-dropzone.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"file-dropzone.component.js","sourceRoot":"","sources":["../src/file-dropzone.component.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAEL,SAAS,EAET,UAAU,EACV,MAAM,EACN,MAAM,EACN,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;;;;;;;IAqD8S,qCAA8C;IAAA,YAAmB;IAAA,oBAAI;;;IAAlD,sCAA0B;IAAC,eAAmB;IAAnB,0CAAmB;;;IAAvJ,qCAAgD;IAAA,YAAoB;IAAA,oBAAI;IAAA,0FAAc;;;IAAlE,uCAA2B;IAAC,eAAoB;IAApB,2CAAoB;IAAI,cAAoF;IAApF,wCAAoF;;AAnDla;;;;;;GAMG;AACH,MAAM,aAAa,GAAG,CAAC,IAAU,EAAW,EAAE,CAC5C,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,YAAY;IACnC,CAAC,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,E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QAAQ;oBACd,QAAQ,EAAE,GAAG;oBACb,aAAa,EAAE,eAAe;oBAC9B,sBAAsB,EAAE,kBAAkB;oBAC1C,SAAS,EAAE,WAAW;oBACtB,gBAAgB,EAAE,eAAe;oBACjC,uBAAuB,EAAE,QAAQ;oBACjC,oBAAoB,EAAE,SAAS;oBAC/B,oBAAoB,EAAE,qCAAqC;oBAC3D,YAAY,EAAE,oBAAoB;oBAClC,aAAa,EAAE,eAAe;oBAC9B,QAAQ,EAAE,gBAAgB;oBAC1B,SAAS,EAAE,WAAW;oBACtB,WAAW,EAAE,mBAAmB;iBACjC;gBACD,kBAAkB;gBAClB,QAAQ,EAAE,+YAA+Y;aAC1Z;;kBAkBE,SAAS;mBAAC,WAAW;;kBAErB,SAAS;mBAAC,aAAa,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE;;kFAnB/B,YAAY"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/app-file-dropzone-angular",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Drag-drop file upload area with click-to-browse, accept/size filtering, and a content slot",
5
5
  "homepage": "https://www.molecule.dev/packages/app-file-dropzone-angular",
6
6
  "type": "module",
@@ -45,7 +45,7 @@
45
45
  "@angular/common": "^22.0.0",
46
46
  "@angular/core": "^22.0.0",
47
47
  "@angular/platform-browser": "^22.0.0",
48
- "@molecule/app-angular": "^3.5.0",
48
+ "@molecule/app-angular": "^3.13.0",
49
49
  "@molecule/app-ui": "^1.0.1",
50
50
  "@molecule/app-ui-angular": "^1.1.0"
51
51
  },
@@ -55,14 +55,14 @@
55
55
  "@angular/compiler-cli": "22.2.3",
56
56
  "@angular/core": "22.2.3",
57
57
  "@angular/platform-browser": "22.2.3",
58
- "@molecule/app-angular": "3.7.1",
58
+ "@molecule/app-angular": "3.13.0",
59
59
  "@molecule/app-framework-conformance": "0.0.0",
60
60
  "@molecule/app-i18n": "1.2.2",
61
61
  "@molecule/app-icons": "1.0.4",
62
- "@molecule/app-ui": "1.4.0",
63
- "@molecule/app-ui-angular": "1.2.0",
62
+ "@molecule/app-ui": "1.5.0",
63
+ "@molecule/app-ui-angular": "1.5.1",
64
64
  "@types/node": "26.6.5",
65
- "jsdom": "30.1.3",
65
+ "jsdom": "31.0.1",
66
66
  "rxjs": "7.8.2",
67
67
  "typescript": "6.0.3",
68
68
  "vitest": "4.1.12",