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

availability-scheduler

Package Overview
Dependencies
Maintainers
1
Versions
762
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

availability-scheduler

Availability Scheduler - React Component

  • 1.0.19
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
84
decreased by-26.32%
Maintainers
1
Weekly downloads
 
Created
Source

availability-scheduler

A React component for editing availability time schedules

I18N tokens:

'availability_duringopenhours', 'During Open Hours'
'availability_apply', 'Apply'
'availability_cancel', 'Cancel'
'availability_available', 'Available'
'availability_unavailable', 'Unavailable'
'availability_empty_error'
'availability_newevent'
'availability_eventname', 'Event Name:'
'availability_customerscansee', '* Customers can see this info'
'openrest_menubuilderdishmodal_wix_availability', 'Availability:'
'availability_starttime', 'Start Time:'
'availability_endtime', 'End Time:'
'availability_available_warning', 'Note that between ${params.start} and ${params.end} you are open continuously, regardless of your regular hours.'
'availability_newevent', 'New Event'
'availability_regularhours', 'Regular Hours'
'availability_event_desc', 'Need to change your hours for a short time?'
'availability_upcomingevents', 'Upcoming Events'
'availability_now', 'now'
'availability_moreexceptionscount', '+ ${params.count} more'
'availability_edit', 'Edit'
'availability_endson', 'ends on ${params.day}'
'availability_to', 'to'
'availability_allday', 'all day'
'openrest_chargepane_duplicate'
'openrest_chargepane_delete'
'availability_duringopenhours', 'During Open Hours'
'availability_customhours', 'Custom Hours'
'availability_clear', 'Clear'
'availability_pasteopenhours', 'Paste open hours'
'availability_open24h', 'Open 24/7'

Usage

$ npm i -S availability-scheduler
Props
{
    rtl: PropTypes.bool,
    i18n: PropTypes.shape({
        getLocale: PropTypes.func.isRequired,
        getDir: PropTypes.func.isRequired,
        get: PropTypes.func.isRequired
    }),
    scheduleAlways: PropTypes.string,
    availability: PropTypes.shape({
        weekly: PropTypes.object,
        exceptions: PropTypes.object
    }),
    onAccept: PropTypes.func.isRequired,
    modalTitle: PropTypes.string,
    source: PropTypes.string,
    customOnly: PropTypes.bool,
    availableText: React.PropTypes.string,
    unavailableText: React.PropTypes.string,
    openTimes: React.PropTypes.object,
    timezone: React.PropTypes.string.isRequired
}
Instantiation
import {AvailabilityEditor} from 'availability-scheduler';

<AvailabilityEditor
  rtl={false}
  timezone='Europe/London'
  availability={availability}
  onAccept={availability => console.log('accepted', availability)}
  i18n={{
  	getLocale: () => 'en_US',
    getDir: () => 'ltr',
    get: (token, fallback, params) => fallback
  }}
/>

FAQs

Package last updated on 30 Nov 2017

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

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