Skip to content

Commit b65c1c8

Browse files
authored
feat(formatter): added new formats (#UIM-806) (#752)
* deleted SECONDS_AGO * deleted MINUTES_AGO * changed TODAY format * deleted depricated methods * added new formats * moved tests from adapter to formatter * added tests for new formats * deleted unused code and added examples in docs * fixed tests
1 parent 439f1b6 commit b65c1c8

File tree

25 files changed

+1773
-4875
lines changed

25 files changed

+1773
-4875
lines changed

packages/cdk/datetime/date-adapter.ts

Lines changed: 0 additions & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -274,114 +274,6 @@ export abstract class DateAdapter<D> {
274274

275275
abstract diffNow(date: D, unit): number;
276276

277-
/**
278-
* @deprecated Moved in `DateFormatter`.
279-
* @breaking-change 13.0.0
280-
*/
281-
abstract relativeDate(date: D, template): string;
282-
283-
/**
284-
* @deprecated Moved in `DateFormatter`.
285-
* @breaking-change 13.0.0
286-
*/
287-
abstract relativeShortDate(date: D): string;
288-
289-
/**
290-
* @deprecated Moved in `DateFormatter`.
291-
* @breaking-change 13.0.0
292-
*/
293-
abstract relativeLongDate(date: D): string;
294-
295-
/**
296-
* @deprecated Moved in `DateFormatter`.
297-
* @breaking-change 13.0.0
298-
*/
299-
abstract absoluteDate(
300-
date: D,
301-
params,
302-
datetime: boolean,
303-
milliseconds: boolean,
304-
microseconds: boolean
305-
): string;
306-
307-
/**
308-
* @deprecated Moved in `DateFormatter`.
309-
* @breaking-change 13.0.0
310-
*/
311-
abstract absoluteShortDate(date: D): string;
312-
313-
/**
314-
* @deprecated Moved in `DateFormatter`.
315-
* @breaking-change 13.0.0
316-
*/
317-
abstract absoluteShortDateTime(date: D, options?): string;
318-
319-
/**
320-
* @deprecated Moved in `DateFormatter`.
321-
* @breaking-change 13.0.0
322-
*/
323-
abstract absoluteLongDate(date: D): string;
324-
325-
/**
326-
* @deprecated Moved in `DateFormatter`.
327-
* @breaking-change 13.0.0
328-
*/
329-
abstract openedRangeDate(startDate: D, endDate: D, template): string;
330-
331-
/**
332-
* @deprecated Moved in `DateFormatter`.
333-
* @breaking-change 13.0.0
334-
*/
335-
abstract openedRangeDateTime(startDate: D, endDate: D, template): string;
336-
337-
/**
338-
* @deprecated Moved in `DateFormatter`.
339-
* @breaking-change 13.0.0
340-
*/
341-
abstract absoluteLongDateTime(date: D, options?): string;
342-
343-
/**
344-
* @deprecated Moved in `DateFormatter`.
345-
* @breaking-change 13.0.0
346-
*/
347-
abstract rangeDate(startDate: D, endDate: D, template): string;
348-
349-
/**
350-
* @deprecated Moved in `DateFormatter`.
351-
* @breaking-change 13.0.0
352-
*/
353-
abstract rangeDateTime(startDate: D, endDate: D, template): string;
354-
355-
/**
356-
* @deprecated Moved in `DateFormatter`.
357-
* @breaking-change 13.0.0
358-
*/
359-
abstract rangeShortDate(startDate: D, endDate: D): string;
360-
361-
/**
362-
* @deprecated Moved in `DateFormatter`.
363-
* @breaking-change 13.0.0
364-
*/
365-
abstract rangeShortDateTime(startDate: D, endDate: D): string;
366-
367-
/**
368-
* @deprecated Moved in `DateFormatter`.
369-
* @breaking-change 13.0.0
370-
*/
371-
abstract rangeLongDate(startDate: D, endDate: D): string;
372-
373-
/**
374-
* @deprecated Moved in `DateFormatter`.
375-
* @breaking-change 13.0.0
376-
*/
377-
abstract rangeLongDateTime(startDate: D, endDate: D): string;
378-
379-
/**
380-
* @deprecated Moved in `DateFormatter`.
381-
* @breaking-change 13.0.0
382-
*/
383-
abstract rangeMiddleDateTime(startDate: D, endDate: D): string;
384-
385277
/**
386278
* Attempts to deserialize a value to a valid date object. This is different from parsing in that
387279
* deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601

packages/mosaic-dev/date-formatter-luxon/main.ts

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)