0.1.1 • Published 4 years ago

aw-business-hours v0.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

AW Business hours

Consists of two components 1. Timezone - Helps select the timezone 2. BusinesHours - Helps configure business hours

Installation

npm install --save aw-business-hours

Timezone Props

PropDescriptionTypeRequired / optional
titleTitleStringRequired
descriptionAbout TimezoneStringRequired
timezoneList of timezonesObjectRequired
timezoneDefaultDefault timezone valueStringRequired
onChangeUpdates selected timezoneFunctionRequired

Business hours props

PropDescriptionTypeRequired / optional
titleTitleStringRequired
descriptionAbout TimezoneStringRequired
selectedTypeType of working hours selectedStringRequired
updateSelectedTypeUpdate selected working hoursFunctionRequired
workingHoursDays and time configurationObjectRequired
updateWorkingDaysUpdate selected working daysFunctionRequired
showTimePickerInitially Hide/show business hours configurationBooleanRequired
toggleBusinessHrsViewToggle business hours configuration viewFunctionRequired
onHoursChangeupdate selected timeFunctionRequired
validatevalidate selected timeFunctionRequired
onApplyAllApply configuration of first day to all daysFunctionRequired
options - multipleTimerangeAdd multiple shiftsObjectOptional
onAddAction on click of addFunctionOptional
onDeleteAction on click of deleteFunctionOptional
onAppointmentAction on click of appointmentFunctionOptional

Set up instructions

git clone https://github.com/Adaptavant/frontoffice-commons.git
cd packages/aw-business-hours
npm install
npm start

Open http://localhost:8880/