Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

props.js 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. import { validateTimestamp, parseDate } from './timestamp';
  2. export default {
  3. base: {
  4. start: {
  5. type: String,
  6. validate: validateTimestamp,
  7. default: function _default() {
  8. return parseDate(new Date()).date;
  9. }
  10. },
  11. end: {
  12. type: String,
  13. validate: validateTimestamp,
  14. default: '0000-00-00'
  15. },
  16. weekdays: {
  17. type: Array,
  18. default: function _default() {
  19. return [0, 1, 2, 3, 4, 5, 6];
  20. }
  21. },
  22. hideHeader: {
  23. type: Boolean,
  24. default: false
  25. },
  26. shortWeekdays: {
  27. type: Boolean,
  28. default: true
  29. },
  30. weekdayFormat: {
  31. type: Function,
  32. default: null
  33. },
  34. dayFormat: {
  35. type: Function,
  36. default: null
  37. },
  38. locale: {
  39. type: String,
  40. default: 'en-us'
  41. }
  42. },
  43. intervals: {
  44. maxDays: {
  45. type: Number,
  46. default: 7
  47. },
  48. shortIntervals: {
  49. type: Boolean,
  50. default: true
  51. },
  52. intervalHeight: {
  53. type: [Number, String],
  54. default: 40,
  55. validate: validateNumber
  56. },
  57. intervalMinutes: {
  58. type: [Number, String],
  59. default: 60,
  60. validate: validateNumber
  61. },
  62. firstInterval: {
  63. type: [Number, String],
  64. default: 0,
  65. validate: validateNumber
  66. },
  67. intervalCount: {
  68. type: [Number, String],
  69. default: 24,
  70. validate: validateNumber
  71. },
  72. intervalFormat: {
  73. type: Function,
  74. default: null
  75. },
  76. intervalStyle: {
  77. type: Function,
  78. default: null
  79. },
  80. showIntervalLabel: {
  81. type: Function,
  82. default: null
  83. }
  84. },
  85. weeks: {
  86. minWeeks: {
  87. validate: validateNumber,
  88. default: 1
  89. },
  90. shortMonths: {
  91. type: Boolean,
  92. default: true
  93. },
  94. showMonthOnFirst: {
  95. type: Boolean,
  96. default: true
  97. },
  98. monthFormat: {
  99. type: Function,
  100. default: null
  101. }
  102. },
  103. calendar: {
  104. type: {
  105. type: String,
  106. default: 'month'
  107. },
  108. value: {
  109. type: String,
  110. validate: validateTimestamp
  111. }
  112. }
  113. };
  114. function validateNumber(input) {
  115. return isFinite(parseInt(input));
  116. }
  117. //# sourceMappingURL=props.js.map