@ethlete/components 1.0.0-next.84 → 1.0.0-next.85

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethlete/components",
3
- "version": "1.0.0-next.84",
3
+ "version": "1.0.0-next.85",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ethlete-io/ethdk",
@@ -111,4 +111,8 @@
111
111
  justify-content: flex-end;
112
112
  gap: var(--et-dropzone-gap, 10px);
113
113
  }
114
+
115
+ .et-dropzone-crop-step {
116
+ display: contents;
117
+ }
114
118
  }
@@ -9627,7 +9627,7 @@ export type OverlayConfig = {
9627
9627
  backdropClass?: string | string[];
9628
9628
  panelClass?: string | string[];
9629
9629
  mode?: OverlayMode;
9630
- closeOnOutsidePointer?: boolean;
9630
+ closeOnOutsidePointer?: boolean | 'except-origin';
9631
9631
  closeOnEscape?: boolean;
9632
9632
  /**
9633
9633
  * Closes the overlay with the source `'navigation'` when an Angular Router navigation to another path
@@ -14324,6 +14324,14 @@ export declare const dropzoneLabelsForLocale: (locale: string) => DropzoneLabels
14324
14324
  export declare const provideDropzoneLabels: (labels: import("@ethlete/core").LabelsSource<DropzoneLabels>) => import("@angular/core").Provider;
14325
14325
  export declare const injectDropzoneLabels: () => import("@angular/core").Signal<DropzoneLabels>;
14326
14326
  export declare const DROPZONE_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<DropzoneLabels>>;
14327
+ /**
14328
+ * Turns on the crop step of `et-dropzone`: with it imported, `<et-dropzone [crop]="{ aspectRatio: 1 }">` sends
14329
+ * picked images through the crop step before they upload. Import it via `DROPZONE_CROP_IMPORTS`.
14330
+ */
14331
+ export declare class DropzoneCropStepDirective {
14332
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropzoneCropStepDirective, never>;
14333
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DropzoneCropStepDirective, "et-dropzone[crop]", never, {}, {}, never, never, true, never>;
14334
+ }
14327
14335
  type DropzoneCropConfig = {
14328
14336
  /** Width divided by height of the crop, e.g. `1` for a square or `16 / 9`. */
14329
14337
  aspectRatio: number;
@@ -15052,6 +15060,8 @@ export declare class DropzoneComponent<TValue = unknown> {
15052
15060
  private renderer;
15053
15061
  private prefersReducedMotion;
15054
15062
  private formatUploadedAt;
15063
+ private hostElement;
15064
+ protected cropStep: import("@angular/core").Type<unknown> | null;
15055
15065
  /**
15056
15066
  * The upload workflow configuration. Create it via `createDropzoneUpload()`. Its value type is the
15057
15067
  * type the upload and delete outputs emit.
@@ -15176,11 +15186,13 @@ export declare class DropzoneComponent<TValue = unknown> {
15176
15186
  }]>;
15177
15187
  }
15178
15188
  export declare const DROPZONE_IMPORTS: readonly [typeof DropzoneComponent, typeof DropzoneDirective];
15189
+ export declare const DROPZONE_CROP_IMPORTS: readonly [typeof DropzoneCropStepDirective];
15179
15190
  export declare const DROPZONE_ERROR_CODES: {
15180
15191
  readonly INVALID_UPLOAD_CONFIG: 2400;
15181
15192
  readonly MISSING_EXISTING_RESOLVER: 2401;
15182
15193
  readonly VALUE_MODE_MISMATCH: 2402;
15183
15194
  readonly CROP_EXPORT_FAILED: 2403;
15195
+ readonly MISSING_CROP_STEP: 2404;
15184
15196
  };
15185
15197
  export type FocusFirstInvalidFieldOptions = {
15186
15198
  /** Where the field lands in its scroll container. @default 'center' */
@@ -36737,5 +36749,5 @@ export declare const provideUnsavedChangesLabels: (labels: import("@ethlete/core
36737
36749
  export declare const injectUnsavedChangesLabels: () => import("@angular/core").Signal<UnsavedChangesLabels>;
36738
36750
  export declare const UNSAVED_CHANGES_LABELS: import("@angular/core").InjectionToken<import("@ethlete/core").LabelsSource<UnsavedChangesLabels>>;
36739
36751
  /** The version of `@ethlete/components` this build was cut from. */
36740
- export declare const COMPONENTS_VERSION = "1.0.0-next.84";
36752
+ export declare const COMPONENTS_VERSION = "1.0.0-next.85";
36741
36753
  export { type AppointmentTreeNode, BRACKET_DATA_LAYOUT, BRACKET_ERROR_CODES, BRACKET_ROUND_MIRROR_TYPE, BRACKET_SWISS_GROUP_COLOR_TYPE, type Bracket, type BracketByeSlotSource, type BracketComponents, type BracketContinueComponent, type BracketDataLayout, type BracketDataSource, type BracketDrawing, type BracketEdge, type BracketExternalSlotSource, type BracketGradient, type BracketGradientStop, type BracketLayoutSettings, BracketMap, type BracketMatch, type BracketMatchComponent, type BracketMatchFactor, type BracketMatchId, type BracketMatchInputs, type BracketMatchOutcomeSlotSource, type BracketMatchParticipant, type BracketMatchPosition, type BracketMatchRelation, type BracketMatchRelationNone, type BracketMatchRelationNothingToOne, type BracketMatchRelationOneToNothing, type BracketMatchRelationOneToOne, type BracketMatchRelationTwoToNothing, type BracketMatchRelationTwoToOne, type BracketMatchShortId, type BracketMatchSlot, type BracketMatchSource, type BracketMatchStatus, type BracketParticipant, type BracketParticipantMatch, type BracketPickMigration, type BracketPickMigrationOptions, type BracketPickSet, type BracketRect, type BracketRound, type BracketRoundHeaderComponent, type BracketRoundId, type BracketRoundMapWithSwissData, type BracketRoundMirrorType, type BracketRoundPosition, type BracketRoundRelation, type BracketRoundRelationNone, type BracketRoundRelationNothingToOne, type BracketRoundRelationOneToNothing, type BracketRoundRelationOneToOne, type BracketRoundRelationTwoToNothing, type BracketRoundRelationTwoToOne, type BracketRoundShortId, type BracketRoundSource, type BracketRoundSwissData, type BracketRoundSwissGroup, type BracketRoundSwissGroupId, type BracketRoundSwissGroupMap, type BracketRoundType, BracketRuntimeError, type BracketSeedSlotSource, type BracketSlotResolutionPolicy, type BracketSlotSource, type BracketSlotSourceKind, type BracketStandingRankSide, type BracketStandingRankSlotSource, type BracketSwissBucketSlotSource, type BracketSwissColors, type BracketSwissGroupColorType, type BracketWarning, COMMON_BRACKET_ROUND_TYPE, type CalendarBandPosition, type CalendarInterval, type CalendarPrecision, type CalendarSelectionFlags, type CalendarView, type CalendarWeekStartsOn, type CascaderCompareWith, type CascaderDataSource, type CascaderNode, type CommonBracketRoundType, type ComputedBracketGrid, type CreateBracketGridConfig, type CreateBracketOptions, type CreateGridAdapterOptions, DOUBLE_ELIMINATION_BRACKET_ROUND_TYPE, type DateRangeSide, type DateRangeSide as TimeRangeInputSide, type DateRangeValue, type DateRangeValue as DateTimeRangeValue, type DateRangeValue as TimeRangeValue, type DoubleEliminationBracketRoundType, type DropzoneCropConfig, type DropzoneCropCorner, type DropzoneCropRect, type DurationFormatSpec, type DurationSegment, type DurationUnit, GROUP_BRACKET_ROUND_TYPE, type GridAdapter, type GridAdapterBreakpoints, type GridConfig, type GroupBracketRoundType, type MatchParticipantId, type MatchParticipantShortId, type MatchParticipantSide, type ParticipantMatchResult, type PlaceholderBracketShape, type RichTextEditorHeadingLevel, type RichTextEditorImageFailure, type RichTextEditorImageFailureReason, type RichTextEditorImageUpload, type RichTextEditorImageUploadContext, type RichTextEditorImageUploadFn, type RichTextEditorTokenChip, type RichTextEditorTokenCodec, SINGLE_ELIMINATION_BRACKET_ROUND_TYPE, SWISS_BRACKET_ROUND_TYPE, type SchedulerAgendaDay, type SchedulerMonthDayCell, type SchedulerTimeGridAllDayEntry, type SchedulerTimeGridBlock, type SchedulerTimeGridDay, type SchedulerTimeGridSegment, type ScrollableActiveChildRef, type ScrollableButtonPosition, type ScrollableButtonsConfig, type ScrollableChrome, type ScrollableChromeSlot, type ScrollableDirection, type ScrollableIntersectionChange, type ScrollableItemSize, type ScrollableLoadingTemplatePosition, type ScrollableLoadingTemplateRef, type ScrollableMaskVariant, type ScrollableNavigation, type ScrollableNavigationConfig, type ScrollableNavigationItem, type ScrollableScrollMode, type ScrollableScrollOrigin, type ScrollableScrollState, type ScrollbarGeometry, type ScrollbarOrientation, type ScrollbarTarget, type SerializeOptions, type SingleEliminationBracketRoundType, type StandingPick, type StandingPickOutcome, type SwissBracketRoundType, TOURNAMENT_MODE, type TournamentMode, bracketSlot, createBracket, createPlaceholderBracketSource, injectRichTextEditorTools, isBracketSlotPredictable, migrateBracketPicks, resolveBracketSlot, standingRankSides, swapStandingRank, validateBracketSource };