1. 1 : /**
  2. 2 : * Contient les données constantes des différentes parties de la vue.
  3. 3 : * @module EventView/Parts/Constants
  4. 4 : */
  5. 5 :
  6. 6 : import { ID_SELECTOR } from "../event_view.constants.js";
  7. 7 :
  8. 8 : /**
  9. 9 : * Tag avant les catégories de l'agenda pour celles qui sont lié à un espace de travail.
  10. 10 : * @constant
  11. 11 : * @default 'ws#'
  12. 12 : * @type {string}
  13. 13 : */
  14. 14 : export const TAG_WSP_CATEGORY = 'ws#';
  15. 15 : /**
  16. 16 : * Participant optionnel dans un évènement
  17. 17 : * @constant
  18. 18 : * @default 'OPT-PARTICIPANT'
  19. 19 : * @type {string}
  20. 20 : */
  21. 21 : export const ROLE_ATTENDEE_OPTIONNAL = 'OPT-PARTICIPANT';
  22. 22 : /**
  23. 23 : * Nombre de créneaux horaires qui seront affichés
  24. 24 : * @constant
  25. 25 : * @type {number}
  26. 26 : * @default 3
  27. 27 : */
  28. 28 : export const MAX_SLOT = 3;
  29. 29 : /**
  30. 30 : * Charactère de remplacement.
  31. 31 : *
  32. 32 : * Il remplace des charactères problématique lors d'une convertion.
  33. 33 : * @constant
  34. 34 : * @type {string}
  35. 35 : * @default '¤'
  36. 36 : */
  37. 37 : export const REPLACE_CHAR = '¤';
  38. 38 : /**
  39. 39 : * Sépare les participants dans une chaine de caractère.
  40. 40 : * @constant
  41. 41 : * @type {string}
  42. 42 : * @default ','
  43. 43 : */
  44. 44 : export const GUEST_SEPARATOR = ',';
  45. 45 : /**
  46. 46 : * @constant
  47. 47 : * @type {string}
  48. 48 : * @default 'manually-changed'
  49. 49 : */
  50. 50 : export const CLASS_MANUALLY_CHANGED = 'manually-changed';
  51. 51 : /**
  52. 52 : * @constant
  53. 53 : * @type {string}
  54. 54 : * @default 'edit-attendees-donotify'
  55. 55 : */
  56. 56 : export const CHECK_BOX_NOTIFY = 'edit-attendees-donotify';
  57. 57 : /**
  58. 58 : * @constant
  59. 59 : * @type {string}
  60. 60 : * @default '#edit-attendees-donotify'
  61. 61 : */
  62. 62 : export const SELECTOR_CHECKBOX_NOTIFY = `${ID_SELECTOR}${CHECK_BOX_NOTIFY}`;
  63. 63 : /**
  64. 64 : * @constant
  65. 65 : * @type {string}
  66. 66 : * @default String.fromCharCode('8199')
  67. 67 : */
  68. 68 : export const LOCATION_SEPARATOR = String.fromCharCode('8199');
  69. 69 : /**
  70. 70 : * @constant
  71. 71 : * @type {string}
  72. 72 : * @default 'visio'
  73. 73 : */
  74. 74 : export const LOCATION_VISIO_OPTION_VALUE = 'visio';
  75. 75 : /**
  76. 76 : * @constant
  77. 77 : * @type {string}
  78. 78 : * @default 'visio-internal'
  79. 79 : */
  80. 80 : export const LOCATION_VISIO_INTERNAL_OPTION_VALUE = 'visio-internal';
  81. 81 : /**
  82. 82 : * @constant
  83. 83 : * @type {string}
  84. 84 : * @default 'visio-external'
  85. 85 : */
  86. 86 : export const LOCATION_VISIO_EXTERNAL_OPTION_VALUE = 'visio-external';
  87. 87 : /**
  88. 88 : * @constant
  89. 89 : * @type {string}
  90. 90 : * @default 'audio'
  91. 91 : */
  92. 92 : export const LOCATION_AUDIO_OPTION_VALUE = 'audio';
  93. 93 : /**
  94. 94 : * @constant
  95. 95 : * @type {string}
  96. 96 : * @default 'location'
  97. 97 : */
  98. 98 : export const LOCATION_OPTION_VALUE = 'location';
  99. 99 : /**
  100. 100 : * @constant
  101. 101 : * @type {string}
  102. 102 : * @default ' ('
  103. 103 : */
  104. 104 : export const SEPARATOR_LOCATION_VISIO_INTEGRATED_PHONE = ' (';
  105. 105 : /**
  106. 106 : * @constant
  107. 107 : * @type {string}
  108. 108 : * @default ')'
  109. 109 : */
  110. 110 : export const SEPARATOR_END_LOCATION_VISIO_INTEGRATED_PHONE = ')';
  111. 111 : /**
  112. 112 : * @constant
  113. 113 : * @type {string}
  114. 114 : * @default ' | '
  115. 115 : */
  116. 116 : export const SEPARATOR_LOCATION_VISIO_INTEGRATED_PIN_PHONE = ' | ';
  117. 117 : /**
  118. 118 : * @constant
  119. 119 : * @type {number}
  120. 120 : * @default 10
  121. 121 : */
  122. 122 : export const INTEGRATED_VISIO_MIN_SIZE = 10;
  123. 123 : /**
  124. 124 : * @constant
  125. 125 : * @type {number}
  126. 126 : * @default 3
  127. 127 : */
  128. 128 : export const INTEGRATED_VISIO_MIN_NUMBER_COUNT = 3;
  129. 129 : /**
  130. 130 : * @constant
  131. 131 : * @type {string}
  132. 132 : * @default ' : '
  133. 133 : */
  134. 134 : export const SEPARATOR_AUDIO_URL_LOCATION = ' : ';
  135. 135 : /**
  136. 136 : * @constant
  137. 137 : * @type {string}
  138. 138 : * @default ' | '
  139. 139 : */
  140. 140 : export const SEPARATOR_AUDIO_PIN = SEPARATOR_LOCATION_VISIO_INTEGRATED_PIN_PHONE;
  141. 141 : /**
  142. 142 : * @constant
  143. 143 : * @type {string}
  144. 144 : * @default 'add-day'
  145. 145 : */
  146. 146 : export const CLASS_ALL_DAY = 'all-day';