-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.yaml
160 lines (114 loc) · 5.92 KB
/
settings.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
# enabled: true or false to disable the plugin
enabled: true
# Plugin priority
priority: 41
# Place to load
assetsLoadOnAdmin: true
assetsLoadOnSite: false
# Blocks
blocks:
Flatpickr:
type: Flatpickr
properties:
name: flatpickr
# Flatpickr options
options:
# Allows the user to enter a date directly input the input field. By default, direct entry is disabled.
allowInput: false
# Allow preloading of invalid date
allowInvalidPreload: false
# Exactly the same as date format, but for the altInput field
altFormat: "F j, Y"
# Show the user a readable date (as per altFormat), but return something totally different to the server.
altInput: false
# This class will be added to the input element created by the altInput option.
# Note that altInput already inherits classes from the original input.
altInputClass: ""
# Whether to enable animations, such as month transitions
animate: true
# Defines how the date will be formatted in the aria-label for calendar days, using the same tokens as dateFormat.
# If you change this, you should choose a value that will make sense if a screen reader reads it out loud.
ariaDateFormat: "F j, Y"
# Whether the default time should be auto-filled when the input is empty and gains or loses focus.
autoFillDefaultTime: true
# Whether clicking on the input should open the picker.
# Set it to false if you only want to open the calendar programmatically
clickOpens: true
# Whether calendar should close after date selection
closeOnSelect: true
# If "mode" is "multiple", this string will be used to join
# selected dates together for the date input value.
conjunction: null
# A string of characters which are used to define how the date will be displayed in the input box.
# See https://chmln.github.io/flatpickr/formatting
dateFormat: "d-m-Y H:i"
# The initial selected date(s).
defaultDate: null
# Initial value of the hour element, when no date is selected
defaultHour: 12
# Initial value of the minute element, when no date is selected
defaultMinute: 0
# Initial value of the seconds element, when no date is selected
defaultSeconds: 0
# Set this to true to always use the non-native picker on mobile devices.
# By default, Flatpickr utilizes native datetime widgets unless certain options (e.g. disable) are used.
disableMobile: false
# Disables all dates except these specified.
# See https://chmln.github.io/flatpickr/examples/#disabling-all-dates-except-select-few
#enable: []
# Disables certain dates, preventing them from being selected.
# See https://chmln.github.io/flatpickr/examples/#disabling-specific-dates
#disable: []
# Enables seconds selection in the time picker.
enableSeconds: false
# Enables the time picker
enableTime: true
# Adjusts the step for the hour input (incl. scrolling)
hourIncrement: 1
# By default, clicking anywhere outside of calendar/input will close the calendar.
# Clicking on elements specified in this option will not close the calendar
ignoredFocusElements: []
# Displays the calendar inline
inline: false
# The locale, either as a string (e.g. "ru", "en") or as an object.
# See https://chmln.github.io/flatpickr/localization/
locale: "default"
# Adjusts the step for the minute input (incl. scrolling)
minuteIncrement: 5
# Date selection mode, defaults to "single"
# variants: single, multiple, or range
mode: "single"
# How the month selector in the calendar should be shown
# variants: dropdown, static
monthSelectorType: "static"
# HTML for the right arrow icon, used to switch months.
nextArrow: "<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>"
# Hides the day selection in calendar.
# Use it along with "enableTime" to create a time picker.
noCalendar: false
# A custom datestring parser
parseDate: false
# Plugins.
# See https://chmln.github.io/flatpickr/plugins/
# plugins: []
# How the calendar should be positioned with regards to the input.
# variants: auto, above, below, auto left, auto center, above right, below left, below center, below right
position: "auto"
# The element off of which the calendar will be positioned.
# Defaults to the date input
positionElement: null
# HTML for the left arrow icon, used to switch months.
prevArrow: "<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>"
# Whether to display the current month name in shorthand mode, e.g. "Sep" instead "September"
shorthandCurrentMonth: false
# Creates a wrapper to position the calendar. Use this if the input is inside a scrollable element
static: false
# Sets the number of months to show
showMonths: 1
# Displays time picker in 24 hour mode without AM/PM selection when enabled.
time_24hr: false
# Display week numbers left of the calendar.
weekNumbers: false
# See https://chmln.github.io/flatpickr/examples/#flatpickr-external-elements
wrap: false
template: plugins/flatpickr/blocks/Flatpickr/block.html