|
| 1 | +import { pb, pt } from '../helpers' |
| 2 | + |
| 3 | +export default () => [ |
| 4 | + pt('timeFormat', 'Time Format', 'Time format, see <a class="external text-color-blue" target="_blank" href="https://day.js.org/docs/en/display/format">dayjs docs</a>').o([ |
| 5 | + { value: 'LTS', label: 'Localized time including seconds (\'LTS\', e.g. \'8:02:18 PM\')' }, |
| 6 | + { value: 'LT', label: 'Localized time (\'LT\'. e.g. \'8:02 PM\')' }, |
| 7 | + { value: 'HH:mm:ss', label: 'Current time (\'HH:mm:ss\')' } |
| 8 | + ], false), |
| 9 | + pt('background', 'Background style', 'Background style (in CSS "background" attribute format)'), |
| 10 | + pt('timeFontSize', 'Time Font Size', 'Time font size (e.g. "34px")'), |
| 11 | + pt('timeFontWeight', 'Time Font Weight', 'Time font weight (e.g. "normal" or "bold")'), |
| 12 | + pb('showDate', 'Show the date', 'Show the current date in addition to the time'), |
| 13 | + pt('dateFormat', 'Date Format', 'Date format, see <a class="external text-color-blue" target="_blank" href="https://day.js.org/docs/en/display/format">dayjs docs</a>').o([ |
| 14 | + { value: 'LL', label: 'Localized long date (\'LL\', e.g. \'August 16, 2018\')' }, |
| 15 | + { value: 'L', label: 'Localized short date (\'L\', e.g. \'08/16/2018\')' }, |
| 16 | + { value: 'MM/DD/YYYY', label: 'Current date (\'MM/DD/YYYY\')' } |
| 17 | + ], false).v((value, configuration, configDescription, parameters) => { |
| 18 | + return configuration.showDate === true |
| 19 | + }), |
| 20 | + pt('datePos', 'Date Position', 'Where to show the date').o([ |
| 21 | + { value: 'above', label: 'Above time' }, |
| 22 | + { value: 'below', label: 'Below time' } |
| 23 | + ]).v((value, configuration, configDescription, parameters) => { |
| 24 | + return configuration.showDate === true |
| 25 | + }), |
| 26 | + pt('dateFontSize', 'Date Font Size', 'Date font size (e.g. "34px")') |
| 27 | + .v((value, configuration, configDescription, parameters) => { |
| 28 | + return configuration.showDate === true |
| 29 | + }), |
| 30 | + pt('dateFontWeight', 'Date Font Weight', 'Date font weight (e.g. "normal" or "bold")') |
| 31 | + .v((value, configuration, configDescription, parameters) => { |
| 32 | + return configuration.showDate === true |
| 33 | + }) |
| 34 | +] |
0 commit comments