Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@anglr/datetime

Package Overview
Dependencies
Maintainers
2
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anglr/datetime - npm Package Versions

1
11

8.0.0

Diff

Changelog

Source

Version 8.0.0 (2024-01-25)

Features

  • updated DateTimeValueFormat enum
    • new value DataString formatted date as string value, custom string format for date time value, different from displayed string format
  • updated DateTimeSADirective directive
    • new inputs
      • dataFormat represents data format that is used as value of date time when DateTimeValueFormat.DataString is set to valueFormat
  • updated DateTimeValidationArgs interface
    • new properties
      • dataFormat format of data string value
  • updated DateTime decorator
    • new arguments
      • dataFormat format of data string value

BREAKING CHANGES

  • minimal supported version of NodeJs is 18.13
  • minimal supported version of @angular is 17.0.1
  • minimal supported version of @jscrpt/common is 6.0.0
  • minimal supported version of @anglr/common is 19.0.0
  • minimal supported version of tslib is 2.6.2
  • updated parseDateTime function, has new argument
    • dataFormat string format for parsing string dates, required only for string dates, has higher priority than stringFormat
  • updated formatDateTime function, has new argument
    • dataFormat string format for formatting string dates, required only for string dates, has higher priority than stringFormat
  • updated datetimeMaxValidator validator function, has new argument
    • dataFormat optional string data format of value
  • updated datetimeMinValidator validator function, has new argument
    • dataFormat optional string data format of value
  • updated datetimeValidator validator function, has new argument
    • dataFormat optional string data format of value
kukjevov
published 8.0.0-beta.20240125101313 •

kukjevov
published 8.0.0-beta.20240125080204 •

kukjevov
published 7.0.0 •

Changelog

Source

Version 7.0.0 (2023-08-17)

Features

  • new ButtonDateTimeInputSADirective directive, that is used for setting up date time input for button
    • extends DateTimeBase
    • implements
      • DateTimeInput
      • OnDestroy
    • inputs
      • value current value of date time, could be string, unix timestamp, Date, TDate object, or ranged DateTimeValue
    • properties
      • rawValue value of date time, raw string value which is visible to user
      • disabled indication whether is date time disabled1
      • element html element that represents input itself
      • focus occurs when input gains focus
      • blur occurs when input loses focus
  • updated DateTimePickerDirectiveOptions interface
    • new properties
      • targetElement string that defines element in which should be picker rendered, if not specified, body is used, working only with absolute set to true

BREAKING CHANGES

  • minimal supported version of @angular is 16.0.3
  • minimal supported version of @anglr/common is 17.0.0
  • minimal supported version of @jscrpt/common is 4.0.0
  • minimal supported version of @rxjs is 7.5.7
  • minimal supported version of date-fns is 2.30.0
  • minimal supported version of tslib is 2.6.1
  • dropped support of NodeJs lower than 16.14
kukjevov
published 7.0.0-beta.20230817115956 •

kukjevov
published 7.0.0-beta.20230817095054 •

kukjevov
published 7.0.0-beta.20230815120707 •

kukjevov
published 6.1.0 •

Changelog

Source

Version 6.1.0 (2023-01-04)

Bug Fixes

  • fixed WithTodaySADirective
    • now correctly sets value of date time to start of a current day

Features

  • new WithNowSADirective directive, that sets current date and time as day and time for empty date time on focus
  • new DateTimeInputHandlerSADirective directive, that adds handler for date time input, which allows navigation using keyboard and checking restriction of value
  • new DatePickerInputSADirective directive, that combines date picker with date input
  • new DateTimePickerInputSADirective directive, that combines date time picker with date time input
  • new parseRawInput function, that parses raw value into internal value and value
  • new getInternalValue function, gets internal value and fix lowest time difference
  • updated DateTimeSADirective directive
    • new properties
      • customFormatChanges occurs when there are changes in custom format value
kukjevov
published 6.1.0-beta.20230104111018 •

kukjevov
published 6.0.0 •

Changelog

Source

Version 6.0.0 (2022-12-23)

Features

  • new DateObject type, that represents date object, either as date api or plain
  • new EventParser service, that is used for parsing events into events to requested period
    • methods
      • getEventsPerDay gets events parsed per day
  • new MonthCalendarComponent component, that is used for displaying month calendar
    • implements
      • OnInit
      • OnChanges
    • inputs
      • showWeekNumber indication that week number should be displayed
      • display date that should be displayed in month calendar
      • weekDayName format for displaying week day names
      • dayAspectRatio aspect ratio for displayed calendar day cell
      • events array of events that should be displayed
    • content children
      • child CalendarDayTemplateDirective
  • new CalendarDayTemplateContext interface, that is context passed to template of calendar day
    • properties
      • $implicit data that are used for displaying calendar day
  • new CalendarDayTemplateDirective directive, that is used for obtaining custom calendar day template
    • properties
      • template template obtained by this structural directive
  • new MonthCalendarModule module, that is used for calendar displaying month
    • exports
      • MonthCalendarComponent
      • CalendarDayTemplateDirective
  • new SimpleDatePickerInputSADirective directive, that combines date picker with simple date input
  • new SimpleDateTimePickerInputSADirective directive, that combines date time picker with simple date time input
  • new SimpleDateTimeInputHandlerSADirective directive, that adds simple handler for date time input, which allows simple navigation using keyboard
  • new CalendarDayAspectRatio enum, that represents available aspect ratios for displaying calendar days
    • OneToOne aspect ratio of width to height is 1:1 (square)
    • ThreeToTwo aspect ratio of width to height is 3:2
    • FourToThree aspect ratio of width to height is 4:3
    • SixteenToTen aspect ratio of width to height is 16:10
    • SixteenToNine aspect ratio of width to height is 16:9
  • new MonthCalendarDayFormat enum, that represents available day formats for calendar day
    • None no week day name displayed
    • Short short version of week day name
    • Full full version of week day name
  • new CalendarDayData interface, that represents data for day for calendar
    • properties
      • events thin array of events array for day
      • date date of day
      • day number of day of month
      • isWeekend indication whether is this day weekend day
      • isCurrentMonth indication whether is this day for currently displayed month
      • week week number of year for day
  • new CalendarEventDayMetadata interface, that represents event metadata for day
    • extends
      • EventData
      • WithDateApiFromTo
    • properties
      • allDay indication whether is event all day event
      • onGoingFrom indication that event is ongoing from previous date
      • onGoingTo indication that event is ongoing to next date
  • new EventData interface, that represents data for event that are passed to calendar
    • properties
      • data data for event
      • dateFrom date when event starts
      • dateTo date when event ends
  • new WithDateApiFromTo interface, that represents object that holds date api object for dateFrom and dateTo
    • properties
      • dateApiFrom date api for date when event starts
      • dateApiTo date api for date when event ends
  • updated DateApiObject interface
    • new isSame method which, compares whether is date same as provided date
    • new formatISO method which, formats date value as ISO string representation
    • all following methods now accepts DateObject<TDate> instead of just TDate as argument
      • isBefore
      • isAfter
      • diffDays
      • isSameWeek
      • isSameDecade
      • isSameYear
      • isSameMonth
      • isSameDay
  • updated DateTimeSADirective directive
    • now is standalone directive
  • updated DateTimeControlValueAccessorSADirective directive
    • now is standalone directive
  • updated DateTimeInputSADirective directive
    • now is standalone directive
  • updated DateTimeMaxValidatorSADirective directive
    • now is standalone directive
  • updated DateTimeMinValidatorSADirective directive
    • now is standalone directive
  • updated DateTimeValidatorSADirective directive
    • now is standalone directive
  • updated DateTimePickerSADirective directive
    • now is standalone directive
  • subpackage @anglr/datetime/moment
    • updated MomentDateApi
      • now implements also new isSame and formatISO methods, and supports new DateObject<TDate> argument
  • subpackage @anglr/datetime/date-fns
    • updated DateFnsDateApi
      • now implements also new isSame and formatISO methods, and supports new DateObject<TDate> argument

BREAKING CHANGES

  • updated minimal version requirements for Node.js (14.20.0 or 16.13.0 or 18.10.0)
  • minimal supported version of @angular is now 15.0.4
  • minimal supported version of @jscrpt/common is now 3.3.0
  • minimal supported version of @anglr/common is now 15.0.1
  • minimal supported version of tslib is now 2.4.1
  • removed old stylings and themes
  • most of generic default any replaced by unknown
  • updated DateApiObjectCtor interface
    • switched order of generic arguments
  • renamed DateTimeDirective to DateTimeSADirective directive
  • renamed DateTimeControlValueAccessorDirective to DateTimeControlValueAccessorSADirective directive
  • renamed DateTimeInputDirective to DateTimeInputSADirective directive
  • renamed DateTimeMaxValidatorDirective to DateTimeMaxValidatorSADirective directive
  • renamed DateTimeMinValidatorDirective to DateTimeMinValidatorSADirective directive
  • renamed DateTimeValidatorDirective to DateTimeValidatorSADirective directive
  • renamed DateTimePickerDirective to DateTimePickerSADirective directive
  • renamed LoopScrollDataDirective to LoopScrollDataSADirective directive
  • renamed LoopScrollDirective to LoopScrollSADirective directive
  • removed PickerBaseComponent legacy component
  • removed PickerImplBaseComponent legacy component
  • removed DateTimeDayPickerComponent legacy component
  • removed DayPickerCssClasses legacy interface
  • removed DateTimeMonthPickerComponent legacy component
  • removed MonthPickerCssClasses legacy interface
  • removed scaleUpDownTrigger legacy animation
  • removed DateTimePickerLegacyComponent legacy component
  • removed DateTimeRollerTimePickerComponent legacy component
  • removed RollerTimePickerCssClasses legacy interface
  • removed YearPickerCssClasses legacy component
  • removed CommonPickerCssClasses legacy interface
  • removed DateTimePickerCssClasses legacy interface
  • removed DateTimePickerLegacyOptions legacy interface
  • removed DateTimeLegacyPicker legacy interface
  • removed DATE_TIME_PICKER_CONFIGURATION legacy token
  • removed DateTimeLegacyPickerModule legacy module
  • removed enterLeaveAnimateChildTrigger legacy animation
  • removed DateTimeSelectorComponent legacy component
  • removed DatetimeMaxValidatorDirective legacy directive
  • removed DatetimeMinValidatorDirective legacy directive
  • removed DateTimePickerRendererDirective legacy directive
  • removed DatetimeValidatorDirective legacy directive
  • removed DateTimeSelectorControlValueAccessor legacy directive
  • removed DateTimeSelectorOptions legacy interface
  • removed DateTimeSelector legacy interface
  • removed DATE_TIME_SELECTOR_CONFIGURATION legacy token
  • removed DateTimeBasicSelectorModule legacy module
  • removed DateTimeSelectorModule legacy module
  • removed maxDatetime legacy validator function
  • removed minDatetime legacy validator function
  • removed datetime legacy validator function
  • removed Validators legacy validators class
  • removed DateTimeValueObject legacy interface
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc