You are here

smart_date.schema.yml in Smart Date 3.2.x

config/schema/smart_date.schema.yml

File

config/schema/smart_date.schema.yml
View source
  1. # Schema for the configuration files of the Smart Date module.
  2. # smartdate field type.
  3. field.storage_settings.smartdate:
  4. type: field.storage_settings.datetime
  5. label: 'Smart date settings'
  6. field.field_settings.smartdate:
  7. type: field.field_settings.datetime
  8. label: 'Smart date settings'
  9. field.value.smartdate:
  10. type: mapping
  11. label: 'Default value'
  12. mapping:
  13. default_time_type:
  14. type: string
  15. label: 'Default start time type'
  16. default_time:
  17. type: string
  18. label: 'Default start time value'
  19. default_end_time_type:
  20. type: string
  21. label: 'Default end time type'
  22. default_end_time:
  23. type: string
  24. label: 'Default end time value'
  25. default_duration:
  26. type: integer
  27. label: 'Default duration'
  28. default_duration_increments:
  29. type: string
  30. label: 'Duration options made available to the user'
  31. default_date_type:
  32. type: string
  33. label: 'Default start date type'
  34. default_date:
  35. type: string
  36. label: 'Default start date value'
  37. field.formatter.settings.smartdate_default:
  38. type: field.formatter.settings.datetime_default
  39. label: 'Smart date default display format settings'
  40. mapping:
  41. timezone_override:
  42. type: string
  43. label: 'Time zone override'
  44. translation context: 'Smart date display'
  45. format:
  46. type: string
  47. label: 'Format'
  48. translation context: 'Smart date display'
  49. force_chronological:
  50. type: boolean
  51. label: 'Force chronological'
  52. translation context: 'Smart date display'
  53. format_type:
  54. type: string
  55. label: 'Format Type'
  56. translation context: 'Smart date display'
  57. add_classes:
  58. type: boolean
  59. label: 'Add Classes'
  60. translation context: 'Smart date display'
  61. time_wrapper:
  62. type: boolean
  63. label: 'Add time wrapper'
  64. translation context: 'Smart date display'
  65. field.formatter.settings.smartdate_duration:
  66. type: field.formatter.settings.smartdate_duration
  67. label: 'Smart date duration display format settings'
  68. mapping:
  69. timezone_override:
  70. type: string
  71. label: 'Time zone override'
  72. translation context: 'Smart date display'
  73. format:
  74. type: string
  75. label: 'Format'
  76. translation context: 'Smart date display'
  77. force_chronological:
  78. type: boolean
  79. label: 'Force chronological'
  80. translation context: 'Smart date display'
  81. format_type:
  82. type: string
  83. label: 'Format Type'
  84. translation context: 'Smart date display'
  85. add_classes:
  86. type: boolean
  87. label: 'Add Classes'
  88. translation context: 'Smart date display'
  89. time_wrapper:
  90. type: boolean
  91. label: 'Add time wrapper'
  92. translation context: 'Smart date display'
  93. duration_separator:
  94. type: string
  95. label: 'Duration Separator'
  96. translation context: 'Smart date display'
  97. field.formatter.settings.smartdate_plain:
  98. type: field.formatter.settings.datetime_plain
  99. label: 'Smart date plain display format settings'
  100. mapping:
  101. separator:
  102. type: label
  103. label: 'Separator'
  104. translation context: 'Smart date display'
  105. field.formatter.settings.smartdate_custom:
  106. type: field.formatter.settings.datetime_custom
  107. label: 'Smart date custom display format settings'
  108. mapping:
  109. separator:
  110. type: label
  111. label: 'Separator'
  112. translation context: 'Smart date display'
  113. field.widget.settings.smartdate_datelist:
  114. type: mapping
  115. label: 'Smart date select list display format settings'
  116. mapping:
  117. increment:
  118. type: integer
  119. label: 'Time increments'
  120. date_order:
  121. type: string
  122. label: 'Date part order'
  123. time_type:
  124. type: string
  125. label: 'Time type'
  126. show_extra:
  127. type: boolean
  128. label: 'Show extra'
  129. field.widget.settings.smartdate_default:
  130. type: mapping
  131. label: 'Smart date default display format settings'
  132. mapping:
  133. modal:
  134. type: boolean
  135. label: 'Use modal for managing instances'
  136. default_duration:
  137. type: integer
  138. label: 'Default duration'
  139. default_duration_increments:
  140. type: string
  141. label: 'Duration options made available to the user'
  142. show_extra:
  143. type: boolean
  144. label: 'Show extra'
  145. hide_date:
  146. type: boolean
  147. label: 'Hide end date unless different'
  148. field.widget.settings.smartdate_timezone:
  149. type: mapping
  150. label: 'Smart date timezone display format settings'
  151. mapping:
  152. modal:
  153. type: boolean
  154. label: 'Use modal for managing instances'
  155. default_tz:
  156. type: string
  157. label: 'Default timezone'
  158. custom_tz:
  159. type: string
  160. label: 'Custom timezone'
  161. allowed_timezones:
  162. type: sequence
  163. label: 'Allowed timezones'
  164. sequence:
  165. type: string
  166. label: 'Timezone'
  167. default_duration:
  168. type: integer
  169. label: 'Default duration'
  170. default_duration_increments:
  171. type: string
  172. label: 'Duration options made available to the user'
  173. show_extra:
  174. type: boolean
  175. label: 'Show extra'
  176. hide_date:
  177. type: boolean
  178. label: 'Hide end date unless different'
  179. smart_date.smart_date_format.*:
  180. type: config_entity
  181. label: 'Smart date format'
  182. mapping:
  183. id:
  184. type: string
  185. label: 'ID'
  186. label:
  187. type: label
  188. label: 'Label'
  189. date_format:
  190. type: string
  191. translatable: true
  192. form_element_class: \Drupal\config_translation\FormElement\DateFormat
  193. label: 'Date Format String'
  194. translation context: 'Smart date format'
  195. time_format:
  196. type: string
  197. translatable: true
  198. form_element_class: \Drupal\config_translation\FormElement\Textfield
  199. label: 'Time Format String'
  200. translation context: 'Smart date format'
  201. time_hour_format:
  202. type: string
  203. translatable: true
  204. form_element_class: \Drupal\config_translation\FormElement\Textfield
  205. label: 'Time Hour Format String'
  206. translation context: 'Smart date format'
  207. allday_label:
  208. type: string
  209. translatable: true
  210. form_element_class: \Drupal\config_translation\FormElement\Textfield
  211. label: 'All day label'
  212. translation context: 'Smart date format'
  213. separator:
  214. type: string
  215. translatable: true
  216. form_element_class: \Drupal\config_translation\FormElement\Textfield
  217. label: 'Separator'
  218. translation context: 'Smart date format'
  219. join:
  220. type: string
  221. translatable: true
  222. form_element_class: \Drupal\config_translation\FormElement\Textfield
  223. label: 'Join'
  224. translation context: 'Smart date format'
  225. ampm_reduce:
  226. type: string
  227. translatable: true
  228. form_element_class: \Drupal\smart_date\FormElement\Boolean
  229. label: 'Reduce AM/PM display'
  230. date_first:
  231. type: string
  232. translatable: true
  233. form_element_class: \Drupal\smart_date\FormElement\Boolean
  234. label: 'Date First (if unchecked, will show time first)'
  235. site_time_toggle:
  236. type: string
  237. translatable: true
  238. form_element_class: \Drupal\smart_date\FormElement\Boolean
  239. label: 'Site Time display'