Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@dreamworld/dw-date-range-select

Package Overview
Dependencies
Maintainers
4
Versions
187
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/dw-date-range-select

Lit Web Component for Material Design Date Range Select

latest
Source
npmnpm
Version
4.1.0
Version published
Maintainers
4
Created
Source

<dw-date-range-select> Published on npm

Date range input control is used to input a custom duration.

Behaviour

  • It extends dw-select, so It overrides all the beahviors of dw-select input control.

value providers

Usage

// TODO

valueProviders

NameReturnsDescription
all()undefinedTo get all time duration
thisMonth()(Object): {start, end}An object whose start & end is the current month’s first & last date.
lastMonth()(Object): {start, end}An object whose start & end is the last month’s first & last date.

valueProvidersFactory

NameArgumentsReturnsDescription
lastNMonths(n)(Number): number of last months(Function): which acts as a valueProviderFactory Function which returns last N months start and end date
thisQuarter(fyStartsFrom)(String): finacial year start from date. in the format dd/mm.(Function): which acts as a valueProviderFactory Function which returns this quater start and end date
lastQuarter(fyStartsFrom)(String): finacial year start from date. in the format dd/mm.(Function): which acts as a valueProviderFactory Function which returns last quater start and end date
thisFinancialYear(startsFrom)(String): finacial year start from date. in the format dd/mm.(Function): which acts as a valueProviderFactory Function which returns current finacial year start and end date
lastFinancialYear(startsFrom)(String): finacial year start from date. in the format dd/mm.(Function): which acts as a valueProviderFactory Function which returns last finacial year start and end date

API

Properties

Inherited from dw-select

NameType
outlinedfalse
namestring
valueobject|object[]
originalValueobject
labelstring
placeholderstring
helperstring
readOnlyboolean
requiredboolean
errorMessagestring
requiredMessagestring
validityValidityState (readonly)
disabledboolean
itemsDateRangeItem[]
dialogWidthnumber

DateRangeItem

KeyTypeDescription
labelstringText to be shown in the list item and for the selected value.
valueProviderfunctionReturns: object which contains start and end date

Keywords

lit

FAQs

Package last updated on 13 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts