Socket
Socket
Sign inDemoInstall

@anglr/datetime

Package Overview
Dependencies
0
Maintainers
2
Versions
90
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
9Next

8.0.1-beta.20240626060858

Diff

kukjevov
published 8.0.0 •

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 •

2345
9Next
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc