@almoamendev/ngx-md3 0.7.2 → 0.7.3

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": "@almoamendev/ngx-md3",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "MD3-style Angular components & style library",
5
5
  "author": "Murtadha (Hussain) Almoamen",
6
6
  "license": "MIT",
@@ -182,13 +182,6 @@ interface DialogContainer {
182
182
  recaptureFocus(): void;
183
183
  }
184
184
 
185
- /**
186
- * Configuration of a full screen dialog. It is the dialog configuration without
187
- * `previousDialog`: a full screen dialog always replaces the one that is open,
188
- * because only one of them can be open at a time.
189
- */
190
- type FullScreenDialogConfig<D = unknown> = Omit<DialogConfig<D>, 'previousDialog'>;
191
-
192
185
  type MenuPositionX = 'start' | 'end' | 'before' | 'after' | 'center';
193
186
  type MenuPositionY = 'above' | 'below' | 'center';
194
187
  type MenuScrollStrategy = 'reposition' | 'block' | 'close' | 'noop';
@@ -1890,8 +1883,10 @@ declare class DialogService {
1890
1883
  * Opens a dialog that covers the whole screen. Only one can be open at a
1891
1884
  * time, so it replaces whatever is open, and while it is up the side sheet
1892
1885
  * outlets belong to it: side sheets open inside the dialog, not behind it.
1886
+ * `previousDialog` decides what happens to the dialogs it replaces, the
1887
+ * same way it does for a regular dialog.
1893
1888
  */
1894
- openFullScreen<T, D = unknown, R = unknown>(component: Type<T>, config?: FullScreenDialogConfig<D>): DialogRef<T, R>;
1889
+ openFullScreen<T, D = unknown, R = unknown>(component: Type<T>, config?: DialogConfig<D>): DialogRef<T, R>;
1895
1890
  /** Wires a freshly created dialog into the stack and starts its animation. */
1896
1891
  private registerDialog;
1897
1892
  /**
@@ -1919,6 +1914,13 @@ declare class DialogService {
1919
1914
  * brightens between the two dialogs.
1920
1915
  */
1921
1916
  private dismissPrevious;
1917
+ /**
1918
+ * The same choice for a full screen dialog, applied to everything that is
1919
+ * on screen: what it takes over from is a whole context, a full screen
1920
+ * dialog of its own included. `hide` keeps that context alive, and it comes
1921
+ * back as it was once this dialog closes.
1922
+ */
1923
+ private dismissPreviousContext;
1922
1924
  private startOpenAnimation;
1923
1925
  /** Opening animation for a dialog that took the place of another one. */
1924
1926
  private startReplacingAnimation;
@@ -1941,6 +1943,13 @@ declare class DialogService {
1941
1943
  */
1942
1944
  private topRegularRef;
1943
1945
  private restorePreviousDialog;
1946
+ /**
1947
+ * Brings back the full screen dialog a restored dialog sits in. The two are
1948
+ * hidden together when a full screen dialog takes over with
1949
+ * `previousDialog: 'hide'`, so the context has to be on screen again before
1950
+ * the dialog that sits on top of it, exactly as showAll() puts them back.
1951
+ */
1952
+ private showHostFullScreenDialog;
1944
1953
  private removeRef;
1945
1954
  /**
1946
1955
  * State that belongs to the dialogs as a whole rather than to one of them:
@@ -2457,4 +2466,4 @@ declare class SnackbarService {
2457
2466
  }
2458
2467
 
2459
2468
  export { AppBar, AppBarLogo, Avatar, BOTTOM_SHEET_COMPONENT, BOTTOM_SHEET_CONFIG, BOTTOM_SHEET_DATA, Badge, BottomSheetRef, BottomSheetService, Button, ButtonGroup, CAROUSEL_STRATEGIES, Card, Carousel, CarouselItem, Checkbox, ChipAvatar, Chips, CircularProgressIndicator, DIALOG_COMPONENT, DIALOG_CONFIG, DIALOG_DATA, Dialog, DialogActions, DialogBody, DialogHeader, DialogRef, DialogService, Divider, FloatingActionButton, FullScreenDialog, Grid, GridItem, IconButton, IconElement, InputElement, Layout, LayoutService, LinearProgressIndicator, List, ListItem, ListItemPrimaryAction, ListLeading, ListSlot, LoadingIndicator, MENU_COMPONENT, MENU_CONFIG, MENU_DATA, MaterialIcon, Menu, MenuGroup, MenuItem, MenuRef, MenuService, ModalBottomSheetRef, NavigationBar, NavigationGroup, NavigationItem, NavigationRail, RadioButton, SIDE_SHEET_COMPONENT, SIDE_SHEET_CONFIG, SIDE_SHEET_DATA, SNACKBAR_ACTION_LABEL, SNACKBAR_CONFIG, SNACKBAR_MESSAGE, Scaffold, ScaffoldBar, ScaffoldPane, ScaffoldRail, SheetsService, SideSheetActions, SideSheetBody, SideSheetHeader, SideSheetRef, Slider, Snackbar, SnackbarRef, SnackbarService, SplitButton, StandardBottomSheetRef, StateComponent, SupportingText, Switch, TextField, Toolbar, ToolbarItem, TypeBody, TypeDisplay, TypeHeadline, TypeLabel, TypeTitle, ViewportService, buildGeometry, clampIndex, indexForScrollOffset, multiBrowseStrategy, parseCarouselAspectRatio, resolveItemGeometry, resolveState, scrollOffsetForIndex, sizeBandFor };
2460
- export type { AppBarScrollingStyle, AppBarType, BottomSheetConfig, BottomSheetContainer, BottomSheetState, BottomSheetSurfaceHost, BottomSheetType, ButtonGroupSelection, ButtonGroupType, ButtonSize, ButtonType, CardType, CarouselAlignment, CarouselArrangement, CarouselGeometry, CarouselItemGeometry, CarouselItemSize, CarouselKeyline, CarouselKeylineState, CarouselLayout, CarouselOrientation, CarouselStrategy, CarouselStrategyContext, ChipStyle, ChipType, DialogConfig, DialogContainer, DialogRole, FabSize, FabType, FloatingBarSide, FloatingInset, FullScreenDialogConfig, IconButtonType, IconButtonWidth, ListLeadingSize, ListLeadingType, Md3NavigationMode, MenuConfig, MenuPositionOrigin, MenuPositionX, MenuPositionY, MenuScrollStrategy, PreviousDialog, SideSheetConfig, SideSheetContainer, SideSheetSide, SideSheetType, SliderSize, SnackbarConfig, SnackbarDismiss, SnackbarDismissReason, SnackbarPoliteness, SplitButtonType, StandardBottomSheetHost, TextColor, TextSize, ToolbarAlignment, ToolbarColor, ToolbarOrientation, ToolbarRegion, ToolbarScrollAction, ToolbarType };
2469
+ export type { AppBarScrollingStyle, AppBarType, BottomSheetConfig, BottomSheetContainer, BottomSheetState, BottomSheetSurfaceHost, BottomSheetType, ButtonGroupSelection, ButtonGroupType, ButtonSize, ButtonType, CardType, CarouselAlignment, CarouselArrangement, CarouselGeometry, CarouselItemGeometry, CarouselItemSize, CarouselKeyline, CarouselKeylineState, CarouselLayout, CarouselOrientation, CarouselStrategy, CarouselStrategyContext, ChipStyle, ChipType, DialogConfig, DialogContainer, DialogRole, FabSize, FabType, FloatingBarSide, FloatingInset, IconButtonType, IconButtonWidth, ListLeadingSize, ListLeadingType, Md3NavigationMode, MenuConfig, MenuPositionOrigin, MenuPositionX, MenuPositionY, MenuScrollStrategy, PreviousDialog, SideSheetConfig, SideSheetContainer, SideSheetSide, SideSheetType, SliderSize, SnackbarConfig, SnackbarDismiss, SnackbarDismissReason, SnackbarPoliteness, SplitButtonType, StandardBottomSheetHost, TextColor, TextSize, ToolbarAlignment, ToolbarColor, ToolbarOrientation, ToolbarRegion, ToolbarScrollAction, ToolbarType };