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.8KB

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