You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

@angular/material-moment-adapter

Package Overview
Dependencies
Maintainers
2
Versions
553
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/material-moment-adapter - npm Package Compare versions

Comparing version

to
20.0.0-next.1

47

index.d.ts

@@ -1,18 +0,8 @@

import { DateAdapter } from '@angular/material/core';
import * as i0 from '@angular/core';
import { InjectionToken } from '@angular/core';
import { MatDateFormats } from '@angular/material/core';
import { InjectionToken, Provider } from '@angular/core';
import { DateAdapter, MatDateFormats } from '@angular/material/core';
import { Moment } from 'moment';
import { Provider } from '@angular/core';
/** InjectionToken for moment date adapter to configure options. */
export declare const MAT_MOMENT_DATE_ADAPTER_OPTIONS: InjectionToken<MatMomentDateAdapterOptions>;
/** @docs-private */
export declare function MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY(): MatMomentDateAdapterOptions;
export declare const MAT_MOMENT_DATE_FORMATS: MatDateFormats;
/** Configurable options for MomentDateAdapter. */
export declare interface MatMomentDateAdapterOptions {
interface MatMomentDateAdapterOptions {
/**

@@ -30,11 +20,12 @@ * When enabled, the dates have to match the format exactly.

}
export declare class MatMomentDateModule {
static ɵfac: i0.ɵɵFactoryDeclaration<MatMomentDateModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<MatMomentDateModule, never, never, never>;
static ɵinj: i0.ɵɵInjectorDeclaration<MatMomentDateModule>;
}
/** InjectionToken for moment date adapter to configure options. */
declare const MAT_MOMENT_DATE_ADAPTER_OPTIONS: InjectionToken<MatMomentDateAdapterOptions>;
/**
* @docs-private
* @deprecated No longer used, will be removed.
* @breaking-change 21.0.0
*/
declare function MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY(): MatMomentDateAdapterOptions;
/** Adapts Moment.js Dates for use with Angular Material. */
export declare class MomentDateAdapter extends DateAdapter<Moment> {
declare class MomentDateAdapter extends DateAdapter<Moment> {
private _options;

@@ -84,3 +75,5 @@ private _localeData;

export declare class MomentDateModule {
declare const MAT_MOMENT_DATE_FORMATS: MatDateFormats;
declare class MomentDateModule {
static ɵfac: i0.ɵɵFactoryDeclaration<MomentDateModule, never>;

@@ -90,5 +83,9 @@ static ɵmod: i0.ɵɵNgModuleDeclaration<MomentDateModule, never, never, never>;

}
declare class MatMomentDateModule {
static ɵfac: i0.ɵɵFactoryDeclaration<MatMomentDateModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<MatMomentDateModule, never, never, never>;
static ɵinj: i0.ɵɵInjectorDeclaration<MatMomentDateModule>;
}
declare function provideMomentDateAdapter(formats?: MatDateFormats, options?: MatMomentDateAdapterOptions): Provider[];
export declare function provideMomentDateAdapter(formats?: MatDateFormats, options?: MatMomentDateAdapterOptions): Provider[];
export { }
export { MAT_MOMENT_DATE_ADAPTER_OPTIONS, MAT_MOMENT_DATE_ADAPTER_OPTIONS_FACTORY, MAT_MOMENT_DATE_FORMATS, type MatMomentDateAdapterOptions, MatMomentDateModule, MomentDateAdapter, MomentDateModule, provideMomentDateAdapter };
{
"name": "@angular/material-moment-adapter",
"version": "20.0.0-next.0",
"version": "20.0.0-next.1",
"description": "Angular Material Moment Adapter",

@@ -15,3 +15,3 @@ "repository": {

"peerDependencies": {
"@angular/material": "20.0.0-next.0",
"@angular/material": "20.0.0-next.1",
"@angular/core": "^20.0.0-0 || ^20.1.0-0 || ^20.2.0-0 || ^20.3.0-0 || ^21.0.0-0",

@@ -18,0 +18,0 @@ "moment": "^2.18.1"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet