You are here

smart_date.schema.yml in Smart Date 3.4.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_default
  67. label: 'Smart date duration display format settings'
  68. mapping:
  69. duration_separator:
  70. type: string
  71. label: 'Duration Separator'
  72. translation context: 'Smart date display'
  73. field.formatter.settings.smartdate_plain:
  74. type: field.formatter.settings.datetime_base
  75. label: 'Smart date plain display format settings'
  76. mapping:
  77. separator:
  78. type: label
  79. label: 'Separator'
  80. translation context: 'Smart date display'
  81. field.formatter.settings.smartdate_custom:
  82. type: field.formatter.settings.datetime_base
  83. label: 'Smart date custom display format settings'
  84. mapping:
  85. separator:
  86. type: label
  87. label: 'Separator'
  88. translation context: 'Smart date display'
  89. field.widget.settings.smartdate_datelist:
  90. type: mapping
  91. label: 'Smart date select list display format settings'
  92. mapping:
  93. increment:
  94. type: integer
  95. label: 'Time increments'
  96. date_order:
  97. type: string
  98. label: 'Date part order'
  99. time_type:
  100. type: string
  101. label: 'Time type'
  102. show_extra:
  103. type: boolean
  104. label: 'Show extra'
  105. field.widget.settings.smartdate_default:
  106. type: mapping
  107. label: 'Smart date default display format settings'
  108. mapping:
  109. modal:
  110. type: boolean
  111. label: 'Use modal for managing instances'
  112. default_duration:
  113. type: integer
  114. label: 'Default duration'
  115. default_duration_increments:
  116. type: string
  117. label: 'Duration options made available to the user'
  118. show_extra:
  119. type: boolean
  120. label: 'Show extra'
  121. hide_date:
  122. type: boolean
  123. label: 'Hide end date unless different'
  124. field.widget.settings.smartdate_timezone:
  125. type: mapping
  126. label: 'Smart date timezone display format settings'
  127. mapping:
  128. modal:
  129. type: boolean
  130. label: 'Use modal for managing instances'
  131. default_tz:
  132. type: string
  133. label: 'Default timezone'
  134. custom_tz:
  135. type: string
  136. label: 'Custom timezone'
  137. allowed_timezones:
  138. type: sequence
  139. label: 'Allowed timezones'
  140. sequence:
  141. type: string
  142. label: 'Timezone'
  143. default_duration:
  144. type: integer
  145. label: 'Default duration'
  146. default_duration_increments:
  147. type: string
  148. label: 'Duration options made available to the user'
  149. show_extra:
  150. type: boolean
  151. label: 'Show extra'
  152. hide_date:
  153. type: boolean
  154. label: 'Hide end date unless different'
  155. smart_date.smart_date_format.*:
  156. type: config_entity
  157. label: 'Smart date format'
  158. mapping:
  159. id:
  160. type: string
  161. label: 'ID'
  162. label:
  163. type: label
  164. label: 'Label'
  165. date_format:
  166. type: string
  167. translatable: true
  168. form_element_class: \Drupal\config_translation\FormElement\DateFormat
  169. label: 'Date Format String'
  170. translation context: 'Smart date format'
  171. time_format:
  172. type: string
  173. translatable: true
  174. form_element_class: \Drupal\config_translation\FormElement\Textfield
  175. label: 'Time Format String'
  176. translation context: 'Smart date format'
  177. time_hour_format:
  178. type: string
  179. translatable: true
  180. form_element_class: \Drupal\config_translation\FormElement\Textfield
  181. label: 'Time Hour Format String'
  182. translation context: 'Smart date format'
  183. allday_label:
  184. type: string
  185. translatable: true
  186. form_element_class: \Drupal\config_translation\FormElement\Textfield
  187. label: 'All day label'
  188. translation context: 'Smart date format'
  189. separator:
  190. type: string
  191. translatable: true
  192. form_element_class: \Drupal\config_translation\FormElement\Textfield
  193. label: 'Separator'
  194. translation context: 'Smart date format'
  195. join:
  196. type: string
  197. translatable: true
  198. form_element_class: \Drupal\config_translation\FormElement\Textfield
  199. label: 'Join'
  200. translation context: 'Smart date format'
  201. ampm_reduce:
  202. type: string
  203. translatable: true
  204. form_element_class: \Drupal\smart_date\FormElement\Boolean
  205. label: 'Reduce AM/PM display'
  206. date_first:
  207. type: string
  208. translatable: true
  209. form_element_class: \Drupal\smart_date\FormElement\Boolean
  210. label: 'Date First (if unchecked, will show time first)'
  211. site_time_toggle:
  212. type: string
  213. translatable: true
  214. form_element_class: \Drupal\smart_date\FormElement\Boolean
  215. label: 'Site Time display'