@idea-ionic/agenda 5.29.1 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (302) hide show
  1. package/environment.d.ts +3 -0
  2. package/esm2020/environment.mjs +20 -0
  3. package/esm2020/idea-ionic-agenda.mjs +5 -0
  4. package/{esm2015/public-api.js → esm2020/public-api.mjs} +0 -0
  5. package/esm2020/src/agenda.component.mjs +248 -0
  6. package/esm2020/src/agenda.module.mjs +57 -0
  7. package/esm2020/src/calendar.component.mjs +125 -0
  8. package/esm2020/src/calendarCreation.component.mjs +142 -0
  9. package/esm2020/src/calendarItem.component.mjs +136 -0
  10. package/esm2020/src/calendars.service.mjs +255 -0
  11. package/esm2020/src/dateFormatter.provider.mjs +38 -0
  12. package/fesm2015/idea-ionic-agenda.mjs +974 -0
  13. package/fesm2015/idea-ionic-agenda.mjs.map +1 -0
  14. package/fesm2020/idea-ionic-agenda.mjs +967 -0
  15. package/fesm2020/idea-ionic-agenda.mjs.map +1 -0
  16. package/idea-ionic-agenda.d.ts +4 -0
  17. package/package.json +31 -19
  18. package/src/agenda.component.d.ts +127 -2
  19. package/src/agenda.module.d.ts +13 -0
  20. package/src/calendar.component.d.ts +41 -1
  21. package/src/calendarCreation.component.d.ts +41 -1
  22. package/src/calendarItem.component.d.ts +25 -0
  23. package/src/calendars.service.d.ts +50 -0
  24. package/src/dateFormatter.provider.d.ts +3 -0
  25. package/bundles/idea-ionic-agenda.umd.js +0 -1141
  26. package/bundles/idea-ionic-agenda.umd.js.map +0 -1
  27. package/bundles/idea-ionic-agenda.umd.min.js +0 -16
  28. package/bundles/idea-ionic-agenda.umd.min.js.map +0 -1
  29. package/esm2015/environment.js +0 -17
  30. package/esm2015/environment.ngsummary.json +0 -1
  31. package/esm2015/idea-ionic-agenda.js +0 -2
  32. package/esm2015/idea-ionic-agenda.ngsummary.json +0 -1
  33. package/esm2015/node_modules/@angular/animations/animations.ngsummary.json +0 -1
  34. package/esm2015/node_modules/@angular/common/common.ngfactory.js +0 -5
  35. package/esm2015/node_modules/@angular/common/common.ngsummary.json +0 -1
  36. package/esm2015/node_modules/@angular/common/http/http.ngsummary.json +0 -1
  37. package/esm2015/node_modules/@angular/core/core.ngfactory.js +0 -4
  38. package/esm2015/node_modules/@angular/core/core.ngsummary.json +0 -1
  39. package/esm2015/node_modules/@angular/forms/forms.ngfactory.js +0 -9
  40. package/esm2015/node_modules/@angular/forms/forms.ngsummary.json +0 -1
  41. package/esm2015/node_modules/@angular/router/router.ngfactory.js +0 -12
  42. package/esm2015/node_modules/@angular/router/router.ngsummary.json +0 -1
  43. package/esm2015/node_modules/@capacitor/core/dist/esm/core-plugin-definitions.ngsummary.json +0 -1
  44. package/esm2015/node_modules/@capacitor/core/dist/esm/definitions.ngsummary.json +0 -1
  45. package/esm2015/node_modules/@capacitor/core/dist/esm/global.ngsummary.json +0 -1
  46. package/esm2015/node_modules/@capacitor/core/dist/esm/index.ngsummary.json +0 -1
  47. package/esm2015/node_modules/@capacitor/core/dist/esm/web/accessibility.ngsummary.json +0 -1
  48. package/esm2015/node_modules/@capacitor/core/dist/esm/web/app.ngsummary.json +0 -1
  49. package/esm2015/node_modules/@capacitor/core/dist/esm/web/browser.ngsummary.json +0 -1
  50. package/esm2015/node_modules/@capacitor/core/dist/esm/web/camera.ngsummary.json +0 -1
  51. package/esm2015/node_modules/@capacitor/core/dist/esm/web/clipboard.ngsummary.json +0 -1
  52. package/esm2015/node_modules/@capacitor/core/dist/esm/web/device.ngsummary.json +0 -1
  53. package/esm2015/node_modules/@capacitor/core/dist/esm/web/filesystem.ngsummary.json +0 -1
  54. package/esm2015/node_modules/@capacitor/core/dist/esm/web/geolocation.ngsummary.json +0 -1
  55. package/esm2015/node_modules/@capacitor/core/dist/esm/web/index.ngsummary.json +0 -1
  56. package/esm2015/node_modules/@capacitor/core/dist/esm/web/local-notifications.ngsummary.json +0 -1
  57. package/esm2015/node_modules/@capacitor/core/dist/esm/web/modals.ngsummary.json +0 -1
  58. package/esm2015/node_modules/@capacitor/core/dist/esm/web/motion.ngsummary.json +0 -1
  59. package/esm2015/node_modules/@capacitor/core/dist/esm/web/network.ngsummary.json +0 -1
  60. package/esm2015/node_modules/@capacitor/core/dist/esm/web/permissions.ngsummary.json +0 -1
  61. package/esm2015/node_modules/@capacitor/core/dist/esm/web/share.ngsummary.json +0 -1
  62. package/esm2015/node_modules/@capacitor/core/dist/esm/web/splash-screen.ngsummary.json +0 -1
  63. package/esm2015/node_modules/@capacitor/core/dist/esm/web/storage.ngsummary.json +0 -1
  64. package/esm2015/node_modules/@capacitor/core/dist/esm/web/toast.ngsummary.json +0 -1
  65. package/esm2015/node_modules/@capacitor/core/dist/esm/web-plugins.ngsummary.json +0 -1
  66. package/esm2015/node_modules/@idea-ionic/common/idea-ionic-common.ngfactory.js +0 -1546
  67. package/esm2015/node_modules/@idea-ionic/common/idea-ionic-common.ngsummary.json +0 -1
  68. package/esm2015/node_modules/@ionic/angular/ionic-angular.ngfactory.js +0 -524
  69. package/esm2015/node_modules/@ionic/angular/ionic-angular.ngsummary.json +0 -1
  70. package/esm2015/node_modules/@ionic/angular/node_modules/tslib/tslib.ngsummary.json +0 -1
  71. package/esm2015/node_modules/@ionic/core/dist/types/components/action-sheet/action-sheet-interface.ngsummary.json +0 -1
  72. package/esm2015/node_modules/@ionic/core/dist/types/components/alert/alert-interface.ngsummary.json +0 -1
  73. package/esm2015/node_modules/@ionic/core/dist/types/components/checkbox/checkbox-interface.ngsummary.json +0 -1
  74. package/esm2015/node_modules/@ionic/core/dist/types/components/content/content-interface.ngsummary.json +0 -1
  75. package/esm2015/node_modules/@ionic/core/dist/types/components/datetime/datetime-interface.ngsummary.json +0 -1
  76. package/esm2015/node_modules/@ionic/core/dist/types/components/input/input-interface.ngsummary.json +0 -1
  77. package/esm2015/node_modules/@ionic/core/dist/types/components/loading/loading-interface.ngsummary.json +0 -1
  78. package/esm2015/node_modules/@ionic/core/dist/types/components/menu/menu-interface.ngsummary.json +0 -1
  79. package/esm2015/node_modules/@ionic/core/dist/types/components/modal/modal-interface.ngsummary.json +0 -1
  80. package/esm2015/node_modules/@ionic/core/dist/types/components/nav/constants.ngsummary.json +0 -1
  81. package/esm2015/node_modules/@ionic/core/dist/types/components/nav/nav-interface.ngsummary.json +0 -1
  82. package/esm2015/node_modules/@ionic/core/dist/types/components/nav/view-controller.ngsummary.json +0 -1
  83. package/esm2015/node_modules/@ionic/core/dist/types/components/picker/picker-interface.ngsummary.json +0 -1
  84. package/esm2015/node_modules/@ionic/core/dist/types/components/popover/popover-interface.ngsummary.json +0 -1
  85. package/esm2015/node_modules/@ionic/core/dist/types/components/radio-group/radio-group-interface.ngsummary.json +0 -1
  86. package/esm2015/node_modules/@ionic/core/dist/types/components/range/range-interface.ngsummary.json +0 -1
  87. package/esm2015/node_modules/@ionic/core/dist/types/components/refresher/refresher-interface.ngsummary.json +0 -1
  88. package/esm2015/node_modules/@ionic/core/dist/types/components/reorder-group/reorder-group-interface.ngsummary.json +0 -1
  89. package/esm2015/node_modules/@ionic/core/dist/types/components/route/route-interface.ngsummary.json +0 -1
  90. package/esm2015/node_modules/@ionic/core/dist/types/components/router/utils/interface.ngsummary.json +0 -1
  91. package/esm2015/node_modules/@ionic/core/dist/types/components/searchbar/searchbar-interface.ngsummary.json +0 -1
  92. package/esm2015/node_modules/@ionic/core/dist/types/components/segment/segment-interface.ngsummary.json +0 -1
  93. package/esm2015/node_modules/@ionic/core/dist/types/components/select/select-interface.ngsummary.json +0 -1
  94. package/esm2015/node_modules/@ionic/core/dist/types/components/select-popover/select-popover-interface.ngsummary.json +0 -1
  95. package/esm2015/node_modules/@ionic/core/dist/types/components/spinner/spinner-configs.ngsummary.json +0 -1
  96. package/esm2015/node_modules/@ionic/core/dist/types/components/spinner/spinner-interface.ngsummary.json +0 -1
  97. package/esm2015/node_modules/@ionic/core/dist/types/components/tab-bar/tab-bar-interface.ngsummary.json +0 -1
  98. package/esm2015/node_modules/@ionic/core/dist/types/components/textarea/textarea-interface.ngsummary.json +0 -1
  99. package/esm2015/node_modules/@ionic/core/dist/types/components/toast/toast-interface.ngsummary.json +0 -1
  100. package/esm2015/node_modules/@ionic/core/dist/types/components/toggle/toggle-interface.ngsummary.json +0 -1
  101. package/esm2015/node_modules/@ionic/core/dist/types/components/virtual-scroll/virtual-scroll-interface.ngsummary.json +0 -1
  102. package/esm2015/node_modules/@ionic/core/dist/types/components.ngsummary.json +0 -1
  103. package/esm2015/node_modules/@ionic/core/dist/types/global/config.ngsummary.json +0 -1
  104. package/esm2015/node_modules/@ionic/core/dist/types/index.ngsummary.json +0 -1
  105. package/esm2015/node_modules/@ionic/core/dist/types/interface.ngsummary.json +0 -1
  106. package/esm2015/node_modules/@ionic/core/dist/types/stencil-public-runtime.ngsummary.json +0 -1
  107. package/esm2015/node_modules/@ionic/core/dist/types/utils/animation/animation-interface.ngsummary.json +0 -1
  108. package/esm2015/node_modules/@ionic/core/dist/types/utils/animation/animation.ngsummary.json +0 -1
  109. package/esm2015/node_modules/@ionic/core/dist/types/utils/animation/cubic-bezier.ngsummary.json +0 -1
  110. package/esm2015/node_modules/@ionic/core/dist/types/utils/config.ngsummary.json +0 -1
  111. package/esm2015/node_modules/@ionic/core/dist/types/utils/gesture/gesture-controller.ngsummary.json +0 -1
  112. package/esm2015/node_modules/@ionic/core/dist/types/utils/gesture/index.ngsummary.json +0 -1
  113. package/esm2015/node_modules/@ionic/core/dist/types/utils/menu-controller/index.ngsummary.json +0 -1
  114. package/esm2015/node_modules/@ionic/core/dist/types/utils/overlays-interface.ngsummary.json +0 -1
  115. package/esm2015/node_modules/@ionic/core/dist/types/utils/overlays.ngsummary.json +0 -1
  116. package/esm2015/node_modules/@ionic/core/dist/types/utils/platform.ngsummary.json +0 -1
  117. package/esm2015/node_modules/@ionic/core/dist/types/utils/sanitization/index.ngsummary.json +0 -1
  118. package/esm2015/node_modules/@ionic/core/dist/types/utils/transition/index.ngsummary.json +0 -1
  119. package/esm2015/node_modules/@ionic/core/dist/types/utils/transition/ios.transition.ngsummary.json +0 -1
  120. package/esm2015/node_modules/@ionic/core/dist/types/utils/transition/md.transition.ngsummary.json +0 -1
  121. package/esm2015/node_modules/@ionic/storage/ionic-storage.ngsummary.json +0 -1
  122. package/esm2015/node_modules/@ionic/storage/node_modules/tslib/tslib.ngsummary.json +0 -1
  123. package/esm2015/node_modules/angular-calendar/angular-calendar.ngfactory.js +0 -397
  124. package/esm2015/node_modules/angular-calendar/angular-calendar.ngsummary.json +0 -1
  125. package/esm2015/node_modules/angular-calendar/date-adapters/date-fns/index.ngsummary.json +0 -1
  126. package/esm2015/node_modules/angular-calendar/node_modules/tslib/tslib.ngsummary.json +0 -1
  127. package/esm2015/node_modules/angular-draggable-droppable/angular-draggable-droppable.ngfactory.js +0 -5
  128. package/esm2015/node_modules/angular-draggable-droppable/angular-draggable-droppable.ngsummary.json +0 -1
  129. package/esm2015/node_modules/angular-draggable-droppable/node_modules/tslib/tslib.ngsummary.json +0 -1
  130. package/esm2015/node_modules/angular-resizable-element/angular-resizable-element.ngfactory.js +0 -5
  131. package/esm2015/node_modules/angular-resizable-element/angular-resizable-element.ngsummary.json +0 -1
  132. package/esm2015/node_modules/angular-resizable-element/node_modules/tslib/tslib.ngsummary.json +0 -1
  133. package/esm2015/node_modules/calendar-utils/calendar-utils.ngsummary.json +0 -1
  134. package/esm2015/node_modules/calendar-utils/date-adapters/date-adapter/index.ngsummary.json +0 -1
  135. package/esm2015/node_modules/date-fns/typings.ngsummary.json +0 -1
  136. package/esm2015/node_modules/idea-toolbox/dist/APIRequestLog.model.ngsummary.json +0 -1
  137. package/esm2015/node_modules/idea-toolbox/dist/RCAttachedResource.model.ngsummary.json +0 -1
  138. package/esm2015/node_modules/idea-toolbox/dist/RCConfiguredFolder.model.ngsummary.json +0 -1
  139. package/esm2015/node_modules/idea-toolbox/dist/RCFolder.model.ngsummary.json +0 -1
  140. package/esm2015/node_modules/idea-toolbox/dist/RCResource.model.ngsummary.json +0 -1
  141. package/esm2015/node_modules/idea-toolbox/dist/address.model.ngsummary.json +0 -1
  142. package/esm2015/node_modules/idea-toolbox/dist/amazonTranslateLanguages.enum.ngsummary.json +0 -1
  143. package/esm2015/node_modules/idea-toolbox/dist/announcement.model.ngsummary.json +0 -1
  144. package/esm2015/node_modules/idea-toolbox/dist/appointment.model.ngsummary.json +0 -1
  145. package/esm2015/node_modules/idea-toolbox/dist/attachment.model.ngsummary.json +0 -1
  146. package/esm2015/node_modules/idea-toolbox/dist/booleanChoices.enum.ngsummary.json +0 -1
  147. package/esm2015/node_modules/idea-toolbox/dist/cacheable.model.ngsummary.json +0 -1
  148. package/esm2015/node_modules/idea-toolbox/dist/cacheableResource.model.ngsummary.json +0 -1
  149. package/esm2015/node_modules/idea-toolbox/dist/calendar.model.ngsummary.json +0 -1
  150. package/esm2015/node_modules/idea-toolbox/dist/check.model.ngsummary.json +0 -1
  151. package/esm2015/node_modules/idea-toolbox/dist/clientInfo.model.ngsummary.json +0 -1
  152. package/esm2015/node_modules/idea-toolbox/dist/contactRequest.model.ngsummary.json +0 -1
  153. package/esm2015/node_modules/idea-toolbox/dist/contacts.model.ngsummary.json +0 -1
  154. package/esm2015/node_modules/idea-toolbox/dist/countries.enum.ngsummary.json +0 -1
  155. package/esm2015/node_modules/idea-toolbox/dist/customBlockMeta.model.ngsummary.json +0 -1
  156. package/esm2015/node_modules/idea-toolbox/dist/customFieldMeta.model.ngsummary.json +0 -1
  157. package/esm2015/node_modules/idea-toolbox/dist/customFieldTypes.enum.ngsummary.json +0 -1
  158. package/esm2015/node_modules/idea-toolbox/dist/customSectionMeta.model.ngsummary.json +0 -1
  159. package/esm2015/node_modules/idea-toolbox/dist/delta.model.ngsummary.json +0 -1
  160. package/esm2015/node_modules/idea-toolbox/dist/emailChangeRequest.model.ngsummary.json +0 -1
  161. package/esm2015/node_modules/idea-toolbox/dist/emailData.model.ngsummary.json +0 -1
  162. package/esm2015/node_modules/idea-toolbox/dist/epoch.ngsummary.json +0 -1
  163. package/esm2015/node_modules/idea-toolbox/dist/errorReport.model.ngsummary.json +0 -1
  164. package/esm2015/node_modules/idea-toolbox/dist/errorWhitelisted.model.ngsummary.json +0 -1
  165. package/esm2015/node_modules/idea-toolbox/dist/index.ngsummary.json +0 -1
  166. package/esm2015/node_modules/idea-toolbox/dist/invitation.model.ngsummary.json +0 -1
  167. package/esm2015/node_modules/idea-toolbox/dist/ionicons.enum.ngsummary.json +0 -1
  168. package/esm2015/node_modules/idea-toolbox/dist/label.model.ngsummary.json +0 -1
  169. package/esm2015/node_modules/idea-toolbox/dist/labelVariable.model.ngsummary.json +0 -1
  170. package/esm2015/node_modules/idea-toolbox/dist/languages.enum.ngsummary.json +0 -1
  171. package/esm2015/node_modules/idea-toolbox/dist/languages.model.ngsummary.json +0 -1
  172. package/esm2015/node_modules/idea-toolbox/dist/limitCounter.model.ngsummary.json +0 -1
  173. package/esm2015/node_modules/idea-toolbox/dist/markdown.ngsummary.json +0 -1
  174. package/esm2015/node_modules/idea-toolbox/dist/membership.model.ngsummary.json +0 -1
  175. package/esm2015/node_modules/idea-toolbox/dist/notification.model.ngsummary.json +0 -1
  176. package/esm2015/node_modules/idea-toolbox/dist/pdfTemplate.model.ngsummary.json +0 -1
  177. package/esm2015/node_modules/idea-toolbox/dist/projectPlan.model.ngsummary.json +0 -1
  178. package/esm2015/node_modules/idea-toolbox/dist/projectSubscription.model.ngsummary.json +0 -1
  179. package/esm2015/node_modules/idea-toolbox/dist/pushNotificationsDevice.model.ngsummary.json +0 -1
  180. package/esm2015/node_modules/idea-toolbox/dist/pushNotificationsPlatforms.enum.ngsummary.json +0 -1
  181. package/esm2015/node_modules/idea-toolbox/dist/resource.model.ngsummary.json +0 -1
  182. package/esm2015/node_modules/idea-toolbox/dist/sentiment.enum.ngsummary.json +0 -1
  183. package/esm2015/node_modules/idea-toolbox/dist/signature.model.ngsummary.json +0 -1
  184. package/esm2015/node_modules/idea-toolbox/dist/signedURL.model.ngsummary.json +0 -1
  185. package/esm2015/node_modules/idea-toolbox/dist/stringVariable.model.ngsummary.json +0 -1
  186. package/esm2015/node_modules/idea-toolbox/dist/suggestion.model.ngsummary.json +0 -1
  187. package/esm2015/node_modules/idea-toolbox/dist/team.model.ngsummary.json +0 -1
  188. package/esm2015/node_modules/idea-toolbox/dist/teamModules.model.ngsummary.json +0 -1
  189. package/esm2015/node_modules/idea-toolbox/dist/timeInterval.model.ngsummary.json +0 -1
  190. package/esm2015/node_modules/idea-toolbox/dist/user.model.ngsummary.json +0 -1
  191. package/esm2015/node_modules/idea-toolbox/dist/utils.ngsummary.json +0 -1
  192. package/esm2015/node_modules/ionicons/dist/types/components/icon/icon.ngsummary.json +0 -1
  193. package/esm2015/node_modules/ionicons/dist/types/components/icon/utils.ngsummary.json +0 -1
  194. package/esm2015/node_modules/ionicons/dist/types/components.ngsummary.json +0 -1
  195. package/esm2015/node_modules/ionicons/dist/types/index.ngsummary.json +0 -1
  196. package/esm2015/node_modules/ionicons/dist/types/stencil-public-runtime.ngsummary.json +0 -1
  197. package/esm2015/node_modules/localforage/typings/localforage.ngsummary.json +0 -1
  198. package/esm2015/node_modules/positioning/dist/entry.ngsummary.json +0 -1
  199. package/esm2015/node_modules/positioning/dist/positioning.ngsummary.json +0 -1
  200. package/esm2015/node_modules/rxjs/index.ngsummary.json +0 -1
  201. package/esm2015/node_modules/rxjs/internal/AsyncSubject.ngsummary.json +0 -1
  202. package/esm2015/node_modules/rxjs/internal/BehaviorSubject.ngsummary.json +0 -1
  203. package/esm2015/node_modules/rxjs/internal/InnerSubscriber.ngsummary.json +0 -1
  204. package/esm2015/node_modules/rxjs/internal/Notification.ngsummary.json +0 -1
  205. package/esm2015/node_modules/rxjs/internal/Observable.ngsummary.json +0 -1
  206. package/esm2015/node_modules/rxjs/internal/Operator.ngsummary.json +0 -1
  207. package/esm2015/node_modules/rxjs/internal/OuterSubscriber.ngsummary.json +0 -1
  208. package/esm2015/node_modules/rxjs/internal/ReplaySubject.ngsummary.json +0 -1
  209. package/esm2015/node_modules/rxjs/internal/Scheduler.ngsummary.json +0 -1
  210. package/esm2015/node_modules/rxjs/internal/Subject.ngsummary.json +0 -1
  211. package/esm2015/node_modules/rxjs/internal/Subscriber.ngsummary.json +0 -1
  212. package/esm2015/node_modules/rxjs/internal/Subscription.ngsummary.json +0 -1
  213. package/esm2015/node_modules/rxjs/internal/config.ngsummary.json +0 -1
  214. package/esm2015/node_modules/rxjs/internal/observable/ConnectableObservable.ngsummary.json +0 -1
  215. package/esm2015/node_modules/rxjs/internal/observable/bindCallback.ngsummary.json +0 -1
  216. package/esm2015/node_modules/rxjs/internal/observable/bindNodeCallback.ngsummary.json +0 -1
  217. package/esm2015/node_modules/rxjs/internal/observable/combineLatest.ngsummary.json +0 -1
  218. package/esm2015/node_modules/rxjs/internal/observable/concat.ngsummary.json +0 -1
  219. package/esm2015/node_modules/rxjs/internal/observable/defer.ngsummary.json +0 -1
  220. package/esm2015/node_modules/rxjs/internal/observable/empty.ngsummary.json +0 -1
  221. package/esm2015/node_modules/rxjs/internal/observable/forkJoin.ngsummary.json +0 -1
  222. package/esm2015/node_modules/rxjs/internal/observable/from.ngsummary.json +0 -1
  223. package/esm2015/node_modules/rxjs/internal/observable/fromEvent.ngsummary.json +0 -1
  224. package/esm2015/node_modules/rxjs/internal/observable/fromEventPattern.ngsummary.json +0 -1
  225. package/esm2015/node_modules/rxjs/internal/observable/generate.ngsummary.json +0 -1
  226. package/esm2015/node_modules/rxjs/internal/observable/iif.ngsummary.json +0 -1
  227. package/esm2015/node_modules/rxjs/internal/observable/interval.ngsummary.json +0 -1
  228. package/esm2015/node_modules/rxjs/internal/observable/merge.ngsummary.json +0 -1
  229. package/esm2015/node_modules/rxjs/internal/observable/never.ngsummary.json +0 -1
  230. package/esm2015/node_modules/rxjs/internal/observable/of.ngsummary.json +0 -1
  231. package/esm2015/node_modules/rxjs/internal/observable/onErrorResumeNext.ngsummary.json +0 -1
  232. package/esm2015/node_modules/rxjs/internal/observable/pairs.ngsummary.json +0 -1
  233. package/esm2015/node_modules/rxjs/internal/observable/partition.ngsummary.json +0 -1
  234. package/esm2015/node_modules/rxjs/internal/observable/race.ngsummary.json +0 -1
  235. package/esm2015/node_modules/rxjs/internal/observable/range.ngsummary.json +0 -1
  236. package/esm2015/node_modules/rxjs/internal/observable/throwError.ngsummary.json +0 -1
  237. package/esm2015/node_modules/rxjs/internal/observable/timer.ngsummary.json +0 -1
  238. package/esm2015/node_modules/rxjs/internal/observable/using.ngsummary.json +0 -1
  239. package/esm2015/node_modules/rxjs/internal/observable/zip.ngsummary.json +0 -1
  240. package/esm2015/node_modules/rxjs/internal/operators/groupBy.ngsummary.json +0 -1
  241. package/esm2015/node_modules/rxjs/internal/scheduled/scheduled.ngsummary.json +0 -1
  242. package/esm2015/node_modules/rxjs/internal/scheduler/Action.ngsummary.json +0 -1
  243. package/esm2015/node_modules/rxjs/internal/scheduler/AnimationFrameScheduler.ngsummary.json +0 -1
  244. package/esm2015/node_modules/rxjs/internal/scheduler/AsapScheduler.ngsummary.json +0 -1
  245. package/esm2015/node_modules/rxjs/internal/scheduler/AsyncAction.ngsummary.json +0 -1
  246. package/esm2015/node_modules/rxjs/internal/scheduler/AsyncScheduler.ngsummary.json +0 -1
  247. package/esm2015/node_modules/rxjs/internal/scheduler/QueueScheduler.ngsummary.json +0 -1
  248. package/esm2015/node_modules/rxjs/internal/scheduler/VirtualTimeScheduler.ngsummary.json +0 -1
  249. package/esm2015/node_modules/rxjs/internal/scheduler/animationFrame.ngsummary.json +0 -1
  250. package/esm2015/node_modules/rxjs/internal/scheduler/asap.ngsummary.json +0 -1
  251. package/esm2015/node_modules/rxjs/internal/scheduler/async.ngsummary.json +0 -1
  252. package/esm2015/node_modules/rxjs/internal/scheduler/queue.ngsummary.json +0 -1
  253. package/esm2015/node_modules/rxjs/internal/symbol/observable.ngsummary.json +0 -1
  254. package/esm2015/node_modules/rxjs/internal/types.ngsummary.json +0 -1
  255. package/esm2015/node_modules/rxjs/internal/util/ArgumentOutOfRangeError.ngsummary.json +0 -1
  256. package/esm2015/node_modules/rxjs/internal/util/EmptyError.ngsummary.json +0 -1
  257. package/esm2015/node_modules/rxjs/internal/util/ObjectUnsubscribedError.ngsummary.json +0 -1
  258. package/esm2015/node_modules/rxjs/internal/util/TimeoutError.ngsummary.json +0 -1
  259. package/esm2015/node_modules/rxjs/internal/util/UnsubscriptionError.ngsummary.json +0 -1
  260. package/esm2015/node_modules/rxjs/internal/util/identity.ngsummary.json +0 -1
  261. package/esm2015/node_modules/rxjs/internal/util/isObservable.ngsummary.json +0 -1
  262. package/esm2015/node_modules/rxjs/internal/util/noop.ngsummary.json +0 -1
  263. package/esm2015/node_modules/rxjs/internal/util/pipe.ngsummary.json +0 -1
  264. package/esm2015/node_modules/signature_pad/dist/types/point.ngsummary.json +0 -1
  265. package/esm2015/node_modules/signature_pad/dist/types/signature_pad.ngsummary.json +0 -1
  266. package/esm2015/node_modules/tslib/tslib.ngsummary.json +0 -1
  267. package/esm2015/public-api.ngsummary.json +0 -1
  268. package/esm2015/src/agenda.component.js +0 -142
  269. package/esm2015/src/agenda.component.ngfactory.js +0 -120
  270. package/esm2015/src/agenda.component.ngsummary.json +0 -1
  271. package/esm2015/src/agenda.component.scss.shim.ngstyle.js +0 -3
  272. package/esm2015/src/agenda.module.js +0 -40
  273. package/esm2015/src/agenda.module.ngfactory.js +0 -20
  274. package/esm2015/src/agenda.module.ngsummary.json +0 -1
  275. package/esm2015/src/calendar.component.js +0 -111
  276. package/esm2015/src/calendar.component.ngfactory.js +0 -54
  277. package/esm2015/src/calendar.component.ngsummary.json +0 -1
  278. package/esm2015/src/calendar.component.scss.shim.ngstyle.js +0 -3
  279. package/esm2015/src/calendarCreation.component.js +0 -116
  280. package/esm2015/src/calendarCreation.component.ngfactory.js +0 -43
  281. package/esm2015/src/calendarCreation.component.ngsummary.json +0 -1
  282. package/esm2015/src/calendarCreation.component.scss.shim.ngstyle.js +0 -3
  283. package/esm2015/src/calendarItem.component.js +0 -119
  284. package/esm2015/src/calendarItem.component.ngfactory.js +0 -24
  285. package/esm2015/src/calendarItem.component.ngsummary.json +0 -1
  286. package/esm2015/src/calendarItem.component.scss.shim.ngstyle.js +0 -3
  287. package/esm2015/src/calendars.service.js +0 -209
  288. package/esm2015/src/calendars.service.ngsummary.json +0 -1
  289. package/esm2015/src/dateFormatter.provider.js +0 -32
  290. package/esm2015/src/dateFormatter.provider.ngsummary.json +0 -1
  291. package/fesm2015/idea-ionic-agenda.js +0 -736
  292. package/fesm2015/idea-ionic-agenda.js.map +0 -1
  293. package/idea-ionic-agenda.metadata.json +0 -1
  294. package/src/agenda.component.ngfactory.d.ts +0 -1
  295. package/src/agenda.component.scss.shim.ngstyle.d.ts +0 -1
  296. package/src/agenda.module.ngfactory.d.ts +0 -3
  297. package/src/calendar.component.ngfactory.d.ts +0 -1
  298. package/src/calendar.component.scss.shim.ngstyle.d.ts +0 -1
  299. package/src/calendarCreation.component.ngfactory.d.ts +0 -1
  300. package/src/calendarCreation.component.scss.shim.ngstyle.d.ts +0 -1
  301. package/src/calendarItem.component.ngfactory.d.ts +0 -1
  302. package/src/calendarItem.component.scss.shim.ngstyle.d.ts +0 -1
@@ -1,1141 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@ionic/angular'), require('angular-calendar'), require('angular-calendar/date-adapters/date-fns'), require('@idea-ionic/common'), require('rxjs'), require('date-fns'), require('color-parse'), require('idea-toolbox'), require('@capacitor/core'), require('@env')) :
3
- typeof define === 'function' && define.amd ? define('@idea-ionic/agenda', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@ionic/angular', 'angular-calendar', 'angular-calendar/date-adapters/date-fns', '@idea-ionic/common', 'rxjs', 'date-fns', 'color-parse', 'idea-toolbox', '@capacitor/core', '@env'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['idea-ionic'] = global['idea-ionic'] || {}, global['idea-ionic'].agenda = {}), global.ng.core, global.ng.common, global.ng.forms, global['@ionic/angular'], global['angular-calendar'], global['angular-calendar/date-adapters/date-fns'], global['@idea-ionic/common'], global.rxjs, global['date-fns'], global['color-parse'], global['idea-toolbox'], global['@capacitor/core'], global['@env']));
5
- }(this, (function (exports, core, common, forms, angular, angularCalendar, dateFns$1, common$1, rxjs, dateFns, ColorParse, ideaToolbox, core$1, _env) { 'use strict';
6
-
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
-
9
- var ColorParse__default = /*#__PURE__*/_interopDefaultLegacy(ColorParse);
10
-
11
- /*! *****************************************************************************
12
- Copyright (c) Microsoft Corporation.
13
-
14
- Permission to use, copy, modify, and/or distribute this software for any
15
- purpose with or without fee is hereby granted.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
18
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
19
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
20
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
21
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
22
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
23
- PERFORMANCE OF THIS SOFTWARE.
24
- ***************************************************************************** */
25
- /* global Reflect, Promise */
26
- var extendStatics = function (d, b) {
27
- extendStatics = Object.setPrototypeOf ||
28
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
29
- function (d, b) { for (var p in b)
30
- if (Object.prototype.hasOwnProperty.call(b, p))
31
- d[p] = b[p]; };
32
- return extendStatics(d, b);
33
- };
34
- function __extends(d, b) {
35
- extendStatics(d, b);
36
- function __() { this.constructor = d; }
37
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
38
- }
39
- var __assign = function () {
40
- __assign = Object.assign || function __assign(t) {
41
- for (var s, i = 1, n = arguments.length; i < n; i++) {
42
- s = arguments[i];
43
- for (var p in s)
44
- if (Object.prototype.hasOwnProperty.call(s, p))
45
- t[p] = s[p];
46
- }
47
- return t;
48
- };
49
- return __assign.apply(this, arguments);
50
- };
51
- function __rest(s, e) {
52
- var t = {};
53
- for (var p in s)
54
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
55
- t[p] = s[p];
56
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
57
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
58
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
59
- t[p[i]] = s[p[i]];
60
- }
61
- return t;
62
- }
63
- function __decorate(decorators, target, key, desc) {
64
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
65
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
66
- r = Reflect.decorate(decorators, target, key, desc);
67
- else
68
- for (var i = decorators.length - 1; i >= 0; i--)
69
- if (d = decorators[i])
70
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
71
- return c > 3 && r && Object.defineProperty(target, key, r), r;
72
- }
73
- function __param(paramIndex, decorator) {
74
- return function (target, key) { decorator(target, key, paramIndex); };
75
- }
76
- function __metadata(metadataKey, metadataValue) {
77
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
78
- return Reflect.metadata(metadataKey, metadataValue);
79
- }
80
- function __awaiter(thisArg, _arguments, P, generator) {
81
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
82
- return new (P || (P = Promise))(function (resolve, reject) {
83
- function fulfilled(value) { try {
84
- step(generator.next(value));
85
- }
86
- catch (e) {
87
- reject(e);
88
- } }
89
- function rejected(value) { try {
90
- step(generator["throw"](value));
91
- }
92
- catch (e) {
93
- reject(e);
94
- } }
95
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
96
- step((generator = generator.apply(thisArg, _arguments || [])).next());
97
- });
98
- }
99
- function __generator(thisArg, body) {
100
- var _ = { label: 0, sent: function () { if (t[0] & 1)
101
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
102
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
103
- function verb(n) { return function (v) { return step([n, v]); }; }
104
- function step(op) {
105
- if (f)
106
- throw new TypeError("Generator is already executing.");
107
- while (_)
108
- try {
109
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
110
- return t;
111
- if (y = 0, t)
112
- op = [op[0] & 2, t.value];
113
- switch (op[0]) {
114
- case 0:
115
- case 1:
116
- t = op;
117
- break;
118
- case 4:
119
- _.label++;
120
- return { value: op[1], done: false };
121
- case 5:
122
- _.label++;
123
- y = op[1];
124
- op = [0];
125
- continue;
126
- case 7:
127
- op = _.ops.pop();
128
- _.trys.pop();
129
- continue;
130
- default:
131
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
132
- _ = 0;
133
- continue;
134
- }
135
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
136
- _.label = op[1];
137
- break;
138
- }
139
- if (op[0] === 6 && _.label < t[1]) {
140
- _.label = t[1];
141
- t = op;
142
- break;
143
- }
144
- if (t && _.label < t[2]) {
145
- _.label = t[2];
146
- _.ops.push(op);
147
- break;
148
- }
149
- if (t[2])
150
- _.ops.pop();
151
- _.trys.pop();
152
- continue;
153
- }
154
- op = body.call(thisArg, _);
155
- }
156
- catch (e) {
157
- op = [6, e];
158
- y = 0;
159
- }
160
- finally {
161
- f = t = 0;
162
- }
163
- if (op[0] & 5)
164
- throw op[1];
165
- return { value: op[0] ? op[1] : void 0, done: true };
166
- }
167
- }
168
- var __createBinding = Object.create ? (function (o, m, k, k2) {
169
- if (k2 === undefined)
170
- k2 = k;
171
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
172
- }) : (function (o, m, k, k2) {
173
- if (k2 === undefined)
174
- k2 = k;
175
- o[k2] = m[k];
176
- });
177
- function __exportStar(m, o) {
178
- for (var p in m)
179
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
180
- __createBinding(o, m, p);
181
- }
182
- function __values(o) {
183
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
184
- if (m)
185
- return m.call(o);
186
- if (o && typeof o.length === "number")
187
- return {
188
- next: function () {
189
- if (o && i >= o.length)
190
- o = void 0;
191
- return { value: o && o[i++], done: !o };
192
- }
193
- };
194
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
195
- }
196
- function __read(o, n) {
197
- var m = typeof Symbol === "function" && o[Symbol.iterator];
198
- if (!m)
199
- return o;
200
- var i = m.call(o), r, ar = [], e;
201
- try {
202
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
203
- ar.push(r.value);
204
- }
205
- catch (error) {
206
- e = { error: error };
207
- }
208
- finally {
209
- try {
210
- if (r && !r.done && (m = i["return"]))
211
- m.call(i);
212
- }
213
- finally {
214
- if (e)
215
- throw e.error;
216
- }
217
- }
218
- return ar;
219
- }
220
- function __spread() {
221
- for (var ar = [], i = 0; i < arguments.length; i++)
222
- ar = ar.concat(__read(arguments[i]));
223
- return ar;
224
- }
225
- function __spreadArrays() {
226
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
227
- s += arguments[i].length;
228
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
229
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
230
- r[k] = a[j];
231
- return r;
232
- }
233
- ;
234
- function __await(v) {
235
- return this instanceof __await ? (this.v = v, this) : new __await(v);
236
- }
237
- function __asyncGenerator(thisArg, _arguments, generator) {
238
- if (!Symbol.asyncIterator)
239
- throw new TypeError("Symbol.asyncIterator is not defined.");
240
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
241
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
242
- function verb(n) { if (g[n])
243
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
244
- function resume(n, v) { try {
245
- step(g[n](v));
246
- }
247
- catch (e) {
248
- settle(q[0][3], e);
249
- } }
250
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
251
- function fulfill(value) { resume("next", value); }
252
- function reject(value) { resume("throw", value); }
253
- function settle(f, v) { if (f(v), q.shift(), q.length)
254
- resume(q[0][0], q[0][1]); }
255
- }
256
- function __asyncDelegator(o) {
257
- var i, p;
258
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
259
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
260
- }
261
- function __asyncValues(o) {
262
- if (!Symbol.asyncIterator)
263
- throw new TypeError("Symbol.asyncIterator is not defined.");
264
- var m = o[Symbol.asyncIterator], i;
265
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
266
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
267
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
268
- }
269
- function __makeTemplateObject(cooked, raw) {
270
- if (Object.defineProperty) {
271
- Object.defineProperty(cooked, "raw", { value: raw });
272
- }
273
- else {
274
- cooked.raw = raw;
275
- }
276
- return cooked;
277
- }
278
- ;
279
- var __setModuleDefault = Object.create ? (function (o, v) {
280
- Object.defineProperty(o, "default", { enumerable: true, value: v });
281
- }) : function (o, v) {
282
- o["default"] = v;
283
- };
284
- function __importStar(mod) {
285
- if (mod && mod.__esModule)
286
- return mod;
287
- var result = {};
288
- if (mod != null)
289
- for (var k in mod)
290
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
291
- __createBinding(result, mod, k);
292
- __setModuleDefault(result, mod);
293
- return result;
294
- }
295
- function __importDefault(mod) {
296
- return (mod && mod.__esModule) ? mod : { default: mod };
297
- }
298
- function __classPrivateFieldGet(receiver, privateMap) {
299
- if (!privateMap.has(receiver)) {
300
- throw new TypeError("attempted to get private field on non-instance");
301
- }
302
- return privateMap.get(receiver);
303
- }
304
- function __classPrivateFieldSet(receiver, privateMap, value) {
305
- if (!privateMap.has(receiver)) {
306
- throw new TypeError("attempted to set private field on non-instance");
307
- }
308
- privateMap.set(receiver, value);
309
- return value;
310
- }
311
-
312
- var CustomDateFormatter = /** @class */ (function (_super) {
313
- __extends(CustomDateFormatter, _super);
314
- function CustomDateFormatter() {
315
- return _super !== null && _super.apply(this, arguments) || this;
316
- }
317
- CustomDateFormatter.prototype.monthViewColumnHeader = function (_a) {
318
- var date = _a.date, locale = _a.locale;
319
- return common.formatDate(date, 'EEE', locale);
320
- };
321
- CustomDateFormatter.prototype.monthViewTitle = function (_a) {
322
- var date = _a.date, locale = _a.locale;
323
- return common.formatDate(date, 'MMMM y', locale);
324
- };
325
- CustomDateFormatter.prototype.weekViewHour = function (_a) {
326
- var date = _a.date, locale = _a.locale;
327
- return locale === 'it' ? common.formatDate(date, 'HH:mm', locale) : common.formatDate(date, 'h aa', locale);
328
- };
329
- CustomDateFormatter.prototype.weekViewColumnHeader = function (_a) {
330
- var date = _a.date, locale = _a.locale;
331
- return common.formatDate(date, 'EEE', locale);
332
- };
333
- CustomDateFormatter.prototype.weekViewTitle = function (_a) {
334
- var date = _a.date, locale = _a.locale;
335
- return common.formatDate(date, 'MMMM yyyy', locale);
336
- };
337
- CustomDateFormatter.prototype.dayViewHour = function (_a) {
338
- var date = _a.date, locale = _a.locale;
339
- return locale === 'it' ? common.formatDate(date, 'HH:mm', locale) : common.formatDate(date, 'h aa', locale);
340
- };
341
- CustomDateFormatter.prototype.dayViewTitle = function (_a) {
342
- var date = _a.date, locale = _a.locale;
343
- return locale === 'it'
344
- ? common.formatDate(date, 'EEEE, dd MMM yyyy', locale)
345
- : common.formatDate(date, 'EEEE, MMM dd, yyyy', locale);
346
- };
347
- return CustomDateFormatter;
348
- }(angularCalendar.CalendarDateFormatter));
349
- CustomDateFormatter.decorators = [
350
- { type: core.Injectable }
351
- ];
352
-
353
- var AVATAR_FALLBACK_URL = './assets/imgs/no-avatar.jpg';
354
- var IDEAAgendaComponent = /** @class */ (function () {
355
- function IDEAAgendaComponent(platform, tc, t) {
356
- this.platform = platform;
357
- this.tc = tc;
358
- this.t = t;
359
- this.events = [];
360
- this.excludeDays = [];
361
- this.dayStartHour = 0;
362
- this.dayEndHour = 23;
363
- this.hourSegments = 2;
364
- this.activeDayIsOpen = false;
365
- this.view = angularCalendar.CalendarView.Week;
366
- this.onlyFuture = false;
367
- this.selectEvent = new core.EventEmitter();
368
- this.selectDay = new core.EventEmitter();
369
- this.selectSlot = new core.EventEmitter();
370
- this.changeEvent = new core.EventEmitter();
371
- this.changeDate = new core.EventEmitter();
372
- this.CalendarView = angularCalendar.CalendarView;
373
- this.viewDate = new Date();
374
- this.refresh = new rxjs.Subject();
375
- this.Attendance = exports.EventAttendance;
376
- }
377
- IDEAAgendaComponent.prototype.ngOnInit = function () {
378
- this.locale = this.t.getCurrentLang();
379
- this.weekStartsOn = this.locale === 'it' ? 1 : 0;
380
- };
381
- IDEAAgendaComponent.prototype.beforeMonthViewRender = function (_a) {
382
- var _this = this;
383
- var body = _a.body;
384
- body.forEach(function (day) {
385
- if (!_this.dateIsValid(day.date, true))
386
- day.cssClass = 'cal-disabled';
387
- });
388
- };
389
- IDEAAgendaComponent.prototype.beforeWeekOrDayViewRender = function (_a) {
390
- var _this = this;
391
- var header = _a.header;
392
- header.forEach(function (day) {
393
- if (!_this.dateIsValid(day.date, true))
394
- day.cssClass = 'cal-disabled';
395
- });
396
- };
397
- IDEAAgendaComponent.prototype.dateIsValid = function (date, sameDayIsValid) {
398
- if (!this.onlyFuture)
399
- return true;
400
- return dateFns.isFuture(date) || (sameDayIsValid ? dateFns.isToday(date) : false);
401
- };
402
- IDEAAgendaComponent.prototype.setView = function (view) {
403
- this.view = view;
404
- };
405
- IDEAAgendaComponent.prototype.viewDateChanged = function (newDate) {
406
- if (this.view === angularCalendar.CalendarView.Month)
407
- this.activeDayIsOpen = false;
408
- this.changeDate.emit(newDate);
409
- };
410
- IDEAAgendaComponent.prototype.changeDay = function (_a) {
411
- var date = _a.date, events = _a.events;
412
- if (!this.dateIsValid(date, true))
413
- return;
414
- if ((dateFns.isSameDay(this.viewDate, date) && this.activeDayIsOpen === true) || !events || events.length === 0)
415
- this.activeDayIsOpen = false;
416
- else
417
- this.activeDayIsOpen = true;
418
- this.viewDate = date;
419
- };
420
- IDEAAgendaComponent.prototype.eventTimesChanged = function (_a) {
421
- var event = _a.event, newStart = _a.newStart, newEnd = _a.newEnd;
422
- event.start = newStart;
423
- event.end = newEnd;
424
- this.events = this.events.slice();
425
- this.changeEvent.emit(event);
426
- };
427
- IDEAAgendaComponent.prototype.getAlternateColor = function (color, amount, opacity) {
428
- var alt = ColorParse__default['default'](color);
429
- var r = Math.max(Math.min(255, Number(alt.values[0]) + amount), 0);
430
- var g = Math.max(Math.min(255, Number(alt.values[1]) + amount), 0);
431
- var b = Math.max(Math.min(255, Number(alt.values[2]) + amount), 0);
432
- return "rgba(" + r + ", " + g + ", " + b + ", " + (opacity || 1) + ")";
433
- };
434
- IDEAAgendaComponent.prototype.getTooltipContent = function (event) {
435
- if (!event)
436
- return '';
437
- var str = event.title ? '<b>' + event.title + '</b>' : '';
438
- if (event.description)
439
- str = str.concat('<br>', event.description);
440
- if (event.icons)
441
- event.icons.forEach(function (x) { return (str = str.concat('<br>', '<i>', x.title, '</i>')); });
442
- if (event.avatars && event.avatars.length) {
443
- str = str.concat('<br><br>~');
444
- event.avatars.forEach(function (x) { return (str = str.concat('<br>', x.title)); });
445
- }
446
- return str;
447
- };
448
- IDEAAgendaComponent.prototype.getPreviewDescription = function (description) {
449
- return description && description.length > 100 ? description.slice(0, 100).concat('...') : description;
450
- };
451
- IDEAAgendaComponent.prototype.loadFallbackAvatar = function (targetImg) {
452
- var fallback = this.fallbackAvatar || AVATAR_FALLBACK_URL;
453
- if (targetImg && targetImg.src !== fallback)
454
- targetImg.src = fallback;
455
- };
456
- return IDEAAgendaComponent;
457
- }());
458
- IDEAAgendaComponent.decorators = [
459
- { type: core.Component, args: [{
460
- selector: 'idea-agenda',
461
- changeDetection: core.ChangeDetectionStrategy.OnPush,
462
- template: "<div class=\"agenda\">\n <!-- TOOLBAR -->\n <ion-row class=\"ion-align-items-center\">\n <ion-col\n class=\"ion-align-self-center ion-text-right\"\n [size]=\"5\"\n [sizeSm]=\"3\"\n [pushSm]=\"5\"\n [sizeLg]=\"2\"\n [pushLg]=\"8\"\n >\n <ion-item lines=\"none\" class=\"calendarViewSelector\">\n <ion-select\n interface=\"popover\"\n [value]=\"view\"\n (ionChange)=\"$event?.detail ? setView($event.detail.value) : null\"\n >\n <ion-select-option [value]=\"CalendarView.Month\">{{ 'IDEA_AGENDA.MONTH' | translate }}</ion-select-option>\n <ion-select-option [value]=\"CalendarView.Week\">{{ 'IDEA_AGENDA.WEEK' | translate }}</ion-select-option>\n <ion-select-option [value]=\"CalendarView.Day\">{{ 'IDEA_AGENDA.DAY' | translate }}</ion-select-option>\n </ion-select>\n </ion-item>\n </ion-col>\n <ion-col\n class=\"ion-align-self-center ion-text-right\"\n [size]=\"7\"\n [sizeSm]=\"4\"\n [pushSm]=\"5\"\n [sizeLg]=\"2\"\n [pushLg]=\"8\"\n >\n <ion-button\n fill=\"clear\"\n color=\"dark\"\n size=\"small\"\n mwlCalendarPreviousView\n [view]=\"view\"\n [(viewDate)]=\"viewDate\"\n (viewDateChange)=\"viewDateChanged($event)\"\n >\n <ion-icon name=\"chevron-back-outline\" slot=\"icon-only\"></ion-icon>\n </ion-button>\n <ion-button\n fill=\"clear\"\n color=\"dark\"\n size=\"small\"\n mwlCalendarToday\n [(viewDate)]=\"viewDate\"\n (viewDateChange)=\"viewDateChanged($event)\"\n >\n <ion-icon name=\"today-outline\" slot=\"icon-only\"></ion-icon>\n </ion-button>\n <ion-button\n fill=\"clear\"\n color=\"dark\"\n size=\"small\"\n mwlCalendarNextView\n [view]=\"view\"\n [(viewDate)]=\"viewDate\"\n (viewDateChange)=\"viewDateChanged($event)\"\n >\n <ion-icon name=\"chevron-forward-outline\" slot=\"icon-only\"></ion-icon>\n </ion-button>\n </ion-col>\n <ion-col class=\"ion-align-self-center\" [size]=\"12\" [sizeSm]=\"5\" [pullSm]=\"7\" [sizeLg]=\"8\" [pullLg]=\"4\">\n <h2>{{ viewDate | calendarDate: view + 'ViewTitle':t.getCurrentLang() }}</h2>\n </ion-col>\n </ion-row>\n <!-- TEMPLATES (touch only what's necessary and leave everything else as it is) -->\n <ng-template #eventTitleTemplate let-event=\"event\" let-view=\"view\">\n <span\n class=\"cal-event-title\"\n [class.noWrap]=\"event.allDay\"\n [attr.aria-hidden]=\"{} | calendarA11y: 'hideEventTitle'\"\n >\n {{ event.title | calendarEventTitle: view:event }}\n <p *ngIf=\"!event.allDay\">{{ getPreviewDescription(event.description) }}</p>\n </span>\n </ng-template>\n <ng-template\n #eventTemplate\n let-weekEvent=\"weekEvent\"\n let-tooltipPlacement=\"tooltipPlacement\"\n let-eventClicked=\"eventClicked\"\n let-tooltipTemplate=\"tooltipTemplate\"\n let-tooltipAppendToBody=\"tooltipAppendToBody\"\n let-tooltipDisabled=\"tooltipDisabled\"\n let-tooltipDelay=\"tooltipDelay\"\n let-column=\"column\"\n let-daysInWeek=\"daysInWeek\"\n >\n <div\n class=\"cal-event\"\n [class.external]=\"weekEvent.event.external\"\n [class.needsAction]=\"Attendance.NEEDS_ACTION === weekEvent.event.attendance\"\n [class.declined]=\"Attendance.DECLINED === weekEvent.event.attendance\"\n [class.tentative]=\"Attendance.TENTATIVE === weekEvent.event.attendance\"\n [style.border-left-color]=\"weekEvent.event.color.primary\"\n [style.color]=\"getAlternateColor(weekEvent.event.color.primary, tc.get('darkMode') ? 80 : -40)\"\n [style.background-color]=\"getAlternateColor(weekEvent.event.color.primary, tc.get('darkMode') ? 60 : 80, 0.2)\"\n [mwlCalendarTooltip]=\"!tooltipDisabled && !platform.is('mobile') ? getTooltipContent(weekEvent.event) : ''\"\n [tooltipPlacement]=\"tooltipPlacement\"\n [tooltipEvent]=\"weekEvent.tempEvent || weekEvent.event\"\n [tooltipTemplate]=\"tooltipTemplate\"\n [tooltipAppendToBody]=\"tooltipAppendToBody\"\n [tooltipDelay]=\"tooltipDelay\"\n (mwlClick)=\"eventClicked.emit({ sourceEvent: $event })\"\n (mwlKeydownEnter)=\"eventClicked.emit({ sourceEvent: $event })\"\n tabindex=\"0\"\n role=\"application\"\n [attr.aria-label]=\"\n { event: weekEvent.tempEvent || weekEvent.event, locale: locale } | calendarA11y: 'eventDescription'\n \"\n >\n <mwl-calendar-event-actions [event]=\"weekEvent.tempEvent || weekEvent.event\"> </mwl-calendar-event-actions>\n &ngsp;\n <mwl-calendar-event-title\n [event]=\"weekEvent.tempEvent || weekEvent.event\"\n [customTemplate]=\"eventTitleTemplate\"\n [view]=\"daysInWeek === 1 ? 'day' : 'week'\"\n >\n </mwl-calendar-event-title>\n <div class=\"eventGadgets\" *ngIf=\"!weekEvent.event.allDay\">\n <ion-icon *ngFor=\"let icon of weekEvent.event.icons\" [name]=\"icon.name\" [title]=\"icon.title\"></ion-icon>\n <ion-avatar *ngFor=\"let avatar of weekEvent.event.avatars\" [title]=\"avatar.title\">\n <ion-img [src]=\"avatar.url\" (ionError)=\"loadFallbackAvatar($event?.target)\"></ion-img>\n </ion-avatar>\n </div>\n </div>\n </ng-template>\n <!-- VIEWS -->\n <div [ngSwitch]=\"view\">\n <mwl-calendar-month-view\n *ngSwitchCase=\"CalendarView.Month\"\n [viewDate]=\"viewDate\"\n [events]=\"events\"\n [refresh]=\"refresh\"\n [activeDayIsOpen]=\"activeDayIsOpen\"\n [locale]=\"locale\"\n [excludeDays]=\"excludeDays\"\n [weekStartsOn]=\"weekStartsOn\"\n [eventTitleTemplate]=\"eventTitleTemplate\"\n (eventClicked)=\"selectEvent.emit($event.event)\"\n (eventTimesChanged)=\"eventTimesChanged($event)\"\n (dayClicked)=\"changeDay($event.day)\"\n (beforeViewRender)=\"beforeMonthViewRender($event)\"\n >\n </mwl-calendar-month-view>\n <mwl-calendar-week-view\n *ngSwitchCase=\"CalendarView.Week\"\n [viewDate]=\"viewDate\"\n [events]=\"events\"\n [refresh]=\"refresh\"\n [locale]=\"locale\"\n [excludeDays]=\"excludeDays\"\n [weekStartsOn]=\"weekStartsOn\"\n [dayStartHour]=\"dayStartHour\"\n [dayEndHour]=\"dayEndHour\"\n [hourSegments]=\"hourSegments\"\n [eventTemplate]=\"eventTemplate\"\n (eventClicked)=\"selectEvent.emit($event.event)\"\n (eventTimesChanged)=\"eventTimesChanged($event)\"\n (dayHeaderClicked)=\"dateIsValid($event.day.date) ? selectDay.emit($event.day.date) : null\"\n (hourSegmentClicked)=\"dateIsValid($event.date) ? selectSlot.emit($event.date) : null\"\n (beforeViewRender)=\"beforeWeekOrDayViewRender($event)\"\n >\n </mwl-calendar-week-view>\n <mwl-calendar-day-view\n *ngSwitchCase=\"CalendarView.Day\"\n [viewDate]=\"viewDate\"\n [events]=\"events\"\n [refresh]=\"refresh\"\n [locale]=\"locale\"\n [dayStartHour]=\"dayStartHour\"\n [dayEndHour]=\"dayEndHour\"\n [hourSegments]=\"hourSegments\"\n [eventTemplate]=\"eventTemplate\"\n (eventClicked)=\"selectEvent.emit($event.event)\"\n (eventTimesChanged)=\"eventTimesChanged($event)\"\n (hourSegmentClicked)=\"dateIsValid($event.date) ? selectSlot.emit($event.date) : null\"\n (beforeViewRender)=\"beforeWeekOrDayViewRender($event)\"\n >\n </mwl-calendar-day-view>\n </div>\n</div>\n",
463
- styles: [".agenda{margin-top:15px}.agenda h2{margin:6px 10px;font-size:1.2em}.agenda .calendarViewSelector{--ion-item-background:transparent}.agenda .calendarViewSelector ion-select{max-width:100%;width:100%;padding-left:0;font-weight:500}.agenda .eventGadgets{margin-top:4px;margin-left:5px;text-align:right}.agenda .eventGadgets ion-avatar{display:block;float:left;margin:2px 1px;width:14px;height:14px}.agenda .eventGadgets ion-icon{padding-right:2px;opacity:.7;font-size:1.15em}@media only screen and (max-width:575px){.agenda h2{margin:0 8px 12px;text-align:center}}"]
464
- },] }
465
- ];
466
- IDEAAgendaComponent.ctorParameters = function () { return [
467
- { type: angular.Platform },
468
- { type: common$1.IDEATinCanService },
469
- { type: common$1.IDEATranslationsService }
470
- ]; };
471
- IDEAAgendaComponent.propDecorators = {
472
- events: [{ type: core.Input }],
473
- excludeDays: [{ type: core.Input }],
474
- dayStartHour: [{ type: core.Input }],
475
- dayEndHour: [{ type: core.Input }],
476
- hourSegments: [{ type: core.Input }],
477
- activeDayIsOpen: [{ type: core.Input }],
478
- view: [{ type: core.Input }],
479
- onlyFuture: [{ type: core.Input }],
480
- fallbackAvatar: [{ type: core.Input }],
481
- selectEvent: [{ type: core.Output }],
482
- selectDay: [{ type: core.Output }],
483
- selectSlot: [{ type: core.Output }],
484
- changeEvent: [{ type: core.Output }],
485
- changeDate: [{ type: core.Output }]
486
- };
487
- exports.EventAttendance = void 0;
488
- (function (EventAttendance) {
489
- EventAttendance[EventAttendance["DECLINED"] = -1] = "DECLINED";
490
- EventAttendance[EventAttendance["NEEDS_ACTION"] = 0] = "NEEDS_ACTION";
491
- EventAttendance[EventAttendance["TENTATIVE"] = 1] = "TENTATIVE";
492
- EventAttendance[EventAttendance["ACCEPTED"] = 2] = "ACCEPTED";
493
- })(exports.EventAttendance || (exports.EventAttendance = {}));
494
-
495
- var Browser = core$1.Plugins.Browser;
496
- var IDEACalendarsService = /** @class */ (function () {
497
- function IDEACalendarsService(modalCtrl, alertCtrl, message, loading, API, t) {
498
- this.modalCtrl = modalCtrl;
499
- this.alertCtrl = alertCtrl;
500
- this.message = message;
501
- this.loading = loading;
502
- this.API = API;
503
- this.t = t;
504
- }
505
- IDEACalendarsService.prototype.getServiceIcon = function (service) {
506
- switch (service) {
507
- case ideaToolbox.ExternalCalendarSources.GOOGLE:
508
- return 'logo-google';
509
- case ideaToolbox.ExternalCalendarSources.MICROSOFT:
510
- return 'logo-windows';
511
- default:
512
- return 'help';
513
- }
514
- };
515
- IDEACalendarsService.prototype.getRequestURL = function (calendar) {
516
- return (calendar.teamId ? "teams/" + calendar.teamId + "/" : '').concat('calendars');
517
- };
518
- IDEACalendarsService.prototype.postCalendar = function (cal) {
519
- var _this = this;
520
- return new Promise(function (resolve, reject) {
521
- _this.API.postResource(_this.getRequestURL(cal), { idea: true, body: cal })
522
- .then(function (res) { return resolve(new ideaToolbox.Calendar(res)); })
523
- .catch(function (err) { return reject(err); });
524
- });
525
- };
526
- IDEACalendarsService.prototype.putCalendar = function (cal) {
527
- var _this = this;
528
- return new Promise(function (resolve, reject) {
529
- _this.API.putResource(_this.getRequestURL(cal), { idea: true, resourceId: cal.calendarId, body: cal })
530
- .then(function (res) { return resolve(new ideaToolbox.Calendar(res)); })
531
- .catch(function (err) { return reject(err); });
532
- });
533
- };
534
- IDEACalendarsService.prototype.deleteCalendar = function (cal) {
535
- var _this = this;
536
- return new Promise(function (resolve, reject) {
537
- _this.API.deleteResource(_this.getRequestURL(cal), { idea: true, resourceId: cal.calendarId })
538
- .then(function () { return resolve(); })
539
- .catch(function (err) { return reject(err); });
540
- });
541
- };
542
- IDEACalendarsService.prototype.setExternalCalendar = function (cal, externalId) {
543
- var _this = this;
544
- return new Promise(function (resolve, reject) {
545
- _this.API.patchResource(_this.getRequestURL(cal), {
546
- idea: true,
547
- resourceId: cal.calendarId,
548
- body: { action: 'SET_EXTERNAL_CALENDAR', externalId: externalId }
549
- })
550
- .then(function (res) { return resolve(new ideaToolbox.Calendar(res)); })
551
- .catch(function (err) { return reject(err); });
552
- });
553
- };
554
- IDEACalendarsService.prototype.linkExtService = function (cal) {
555
- var _this = this;
556
- return new Promise(function (resolve, reject) {
557
- if (!cal.external)
558
- return reject(new Error('NOT_EXTERNAL'));
559
- var url;
560
- switch (cal.external.service) {
561
- case ideaToolbox.ExternalCalendarSources.GOOGLE:
562
- url =
563
- 'https://accounts.google.com/o/oauth2/v2/auth?' +
564
- ("client_id=" + encodeURIComponent(_env.environment.google.apiClientId)) +
565
- '&response_type=code' +
566
- ("&redirect_uri=" + encodeURIComponent(_env.environment.idea.app.url.concat('/echo/google-calendars-integration'))) +
567
- '&include_granted_scopes=true' +
568
- '&access_type=offline&prompt=consent' +
569
- ("&scope=" + encodeURIComponent(_env.environment.google.apiScope)) +
570
- ("&state=" + encodeURIComponent(cal.calendarId));
571
- break;
572
- case ideaToolbox.ExternalCalendarSources.MICROSOFT:
573
- url =
574
- 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize?' +
575
- ("client_id=" + encodeURIComponent(_env.environment.microsoft.apiClientId)) +
576
- '&response_type=code' +
577
- ("&redirect_uri=" + encodeURIComponent(_env.environment.idea.app.url.concat('/echo/microsoft-calendars-integration'))) +
578
- '&response_mode=query' +
579
- ("&scope=" + encodeURIComponent(_env.environment.microsoft.apiScope)) +
580
- ("&state=" + encodeURIComponent(cal.calendarId));
581
- break;
582
- }
583
- if (!url)
584
- return reject(new Error('INVALID_SERVICE'));
585
- Browser.open({ url: url }).then(function () {
586
- _this.alertCtrl
587
- .create({
588
- header: _this.t._('IDEA_AGENDA.CALENDARS.LINKING_CALENDAR'),
589
- message: _this.t._('IDEA_AGENDA.CALENDARS.LINKING_CALENDAR_CONFIRM_ONCE_DONE'),
590
- backdropDismiss: false,
591
- buttons: [{ text: _this.t._('COMMON.DONE'), handler: function () { return resolve(); } }]
592
- })
593
- .then(function (alert) { return alert.present(); });
594
- });
595
- });
596
- };
597
- IDEACalendarsService.prototype.getExternalCalendars = function (cal) {
598
- var _this = this;
599
- return new Promise(function (resolve, reject) {
600
- if (!cal.external)
601
- return reject(new Error('NOT_EXTERNAL'));
602
- _this.API.patchResource(_this.getRequestURL(cal), {
603
- idea: true,
604
- resourceId: cal.calendarId,
605
- body: { action: 'GET_ACCESS_TOKEN' }
606
- })
607
- .then(function (result) {
608
- var headers = { Authorization: 'Bearer '.concat(result.token) };
609
- switch (cal.external.service) {
610
- case ideaToolbox.ExternalCalendarSources.GOOGLE:
611
- _this.API.rawRequest()
612
- .get('https://www.googleapis.com/calendar/v3/users/me/calendarList', { headers: headers })
613
- .toPromise()
614
- .then(function (res) { return resolve(res.items.map(function (c) { return ({ name: c.summary, id: c.id }); })); })
615
- .catch(function (err) { return reject(err); });
616
- break;
617
- case ideaToolbox.ExternalCalendarSources.MICROSOFT:
618
- _this.API.rawRequest()
619
- .get('https://graph.microsoft.com/v1.0/me/calendars', { headers: headers })
620
- .toPromise()
621
- .then(function (res) { return resolve(res.value.map(function (c) { return ({ name: c.name, id: c.id }); })); })
622
- .catch(function (err) { return reject(err); });
623
- break;
624
- }
625
- })
626
- .catch(function (err) { return reject(err); });
627
- });
628
- };
629
- IDEACalendarsService.prototype.chooseAndSetExternalCalendar = function (cal) {
630
- var _this = this;
631
- return new Promise(function (resolve, reject) {
632
- _this.openModalAndPickExternalCalendar(cal)
633
- .then(function (extCalId) {
634
- if (!extCalId)
635
- return resolve(null);
636
- _this.setExternalCalendar(cal, extCalId)
637
- .then(function (res) { return resolve(res); })
638
- .catch(function (err) { return reject(err); });
639
- })
640
- .catch(function (err) { return reject(err); });
641
- });
642
- };
643
- IDEACalendarsService.prototype.openModalAndPickExternalCalendar = function (cal) {
644
- return __awaiter(this, void 0, void 0, function () {
645
- var _this = this;
646
- return __generator(this, function (_a) {
647
- switch (_a.label) {
648
- case 0: return [4 /*yield*/, this.loading.show()];
649
- case 1:
650
- _a.sent();
651
- return [2 /*return*/, new Promise(function (resolve, reject) {
652
- _this.getExternalCalendars(cal)
653
- .then(function (extCals) {
654
- if (!extCals.length)
655
- return reject(new Error('NO_EXTERNAL_CALENDARS'));
656
- _this.modalCtrl
657
- .create({
658
- component: common$1.IDEASuggestionsComponent,
659
- componentProps: {
660
- data: extCals.map(function (c) { return new ideaToolbox.Suggestion({ value: c.id, name: c.name }); }),
661
- searchPlaceholder: _this.t._('IDEA_AGENDA.CALENDARS.CHOOSE_AN_EXTERNAL_CALENDAR_TO_LINK'),
662
- sortData: true,
663
- hideIdFromUI: true,
664
- hideClearButton: true,
665
- mustChoose: true
666
- },
667
- backdropDismiss: false
668
- })
669
- .then(function (modal) {
670
- modal.onDidDismiss().then(function (res) { return resolve(res.data ? res.data.value : null); });
671
- modal.present();
672
- });
673
- })
674
- .catch(function (err) { return reject(err); })
675
- .finally(function () { return _this.loading.hide(); });
676
- })];
677
- }
678
- });
679
- });
680
- };
681
- IDEACalendarsService.prototype.syncCalendar = function (cal) {
682
- var _this = this;
683
- return new Promise(function (resolve, reject) { return _this.syncCalendarHelper(cal, function (err) { return (err ? reject(err) : resolve()); }); });
684
- };
685
- IDEACalendarsService.prototype.syncCalendarHelper = function (cal, done) {
686
- var _this = this;
687
- this.API.patchResource(this.getRequestURL(cal), {
688
- idea: true,
689
- resourceId: cal.calendarId,
690
- body: { action: 'SYNC_EXTERNAL_CALENDAR', firstSync: true }
691
- })
692
- .then(function (res) {
693
- if (res.moreData)
694
- _this.syncCalendarHelper(cal, done);
695
- else
696
- done();
697
- })
698
- .catch(function (err) { return done(err); });
699
- };
700
- return IDEACalendarsService;
701
- }());
702
- IDEACalendarsService.decorators = [
703
- { type: core.Injectable }
704
- ];
705
- IDEACalendarsService.ctorParameters = function () { return [
706
- { type: angular.ModalController },
707
- { type: angular.AlertController },
708
- { type: common$1.IDEAMessageService },
709
- { type: common$1.IDEALoadingService },
710
- { type: common$1.IDEAAWSAPIService },
711
- { type: common$1.IDEATranslationsService }
712
- ]; };
713
-
714
- var IDEACalendarComponent = /** @class */ (function () {
715
- function IDEACalendarComponent(calendars, modalCtrl, alertCtrl, tc, loading, message, API, t) {
716
- this.calendars = calendars;
717
- this.modalCtrl = modalCtrl;
718
- this.alertCtrl = alertCtrl;
719
- this.tc = tc;
720
- this.loading = loading;
721
- this.message = message;
722
- this.API = API;
723
- this.t = t;
724
- this.errors = new Set();
725
- this.DEFAULT_COLOR = '#555';
726
- }
727
- IDEACalendarComponent.prototype.ngOnInit = function () {
728
- var _this = this;
729
- this.membership = this.tc.get('membership');
730
- this._calendar = new ideaToolbox.Calendar(this.calendar);
731
- this.API.getResource("teams/" + this.membership.teamId + "/memberships")
732
- .then(function (memberships) { return (_this.membershipsChecks = memberships.map(function (m) { return new ideaToolbox.Check({
733
- value: m.userId,
734
- name: m.name,
735
- checked: (_this._calendar.usersCanManageAppointments || []).some(function (x) { return x === m.userId; })
736
- }); })); })
737
- .catch(function () { });
738
- };
739
- IDEACalendarComponent.prototype.hasFieldAnError = function (field) {
740
- return this.errors.has(field);
741
- };
742
- IDEACalendarComponent.prototype.save = function () {
743
- return __awaiter(this, void 0, void 0, function () {
744
- var _this = this;
745
- return __generator(this, function (_a) {
746
- switch (_a.label) {
747
- case 0:
748
- if (!this._calendar.color)
749
- this._calendar.color = this.DEFAULT_COLOR;
750
- if (this._calendar.isShared() && this.advancedPermissions)
751
- this._calendar.usersCanManageAppointments = this.membershipsChecks
752
- .filter(function (x) { return x.checked; })
753
- .map(function (x) { return String(x.value); });
754
- else
755
- delete this._calendar.usersCanManageAppointments;
756
- this.errors = new Set(this._calendar.validate());
757
- if (this.errors.size)
758
- return [2 /*return*/, this.message.error('COMMON.FORM_HAS_ERROR_TO_CHECK')];
759
- return [4 /*yield*/, this.loading.show()];
760
- case 1:
761
- _a.sent();
762
- this.calendars
763
- .putCalendar(this._calendar)
764
- .then(function (res) {
765
- _this.calendar.load(res);
766
- _this.message.success('IDEA_AGENDA.CALENDARS.CALENDAR_SAVED');
767
- _this.modalCtrl.dismiss(_this.calendar);
768
- })
769
- .catch(function () { return _this.message.error('COMMON.OPERATION_FAILED'); })
770
- .finally(function () { return _this.loading.hide(); });
771
- return [2 /*return*/];
772
- }
773
- });
774
- });
775
- };
776
- IDEACalendarComponent.prototype.delete = function () {
777
- var _this = this;
778
- this.alertCtrl
779
- .create({
780
- header: this.t._('COMMON.ARE_YOU_SURE'),
781
- subHeader: this.t._('IDEA_AGENDA.CALENDARS.DELETE_CALENDAR'),
782
- message: this.t._('IDEA_AGENDA.CALENDARS.DELETE_CALENDAR_HINT'),
783
- buttons: [
784
- { text: this.t._('COMMON.CANCEL'), role: 'cancel' },
785
- {
786
- text: this.t._('COMMON.DELETE'),
787
- handler: function () { return __awaiter(_this, void 0, void 0, function () {
788
- var _this = this;
789
- return __generator(this, function (_a) {
790
- switch (_a.label) {
791
- case 0: return [4 /*yield*/, this.loading.show()];
792
- case 1:
793
- _a.sent();
794
- this.calendars
795
- .deleteCalendar(this._calendar)
796
- .then(function () {
797
- _this.message.success('IDEA_AGENDA.CALENDARS.CALENDAR_DELETED');
798
- _this.modalCtrl.dismiss(true);
799
- })
800
- .catch(function () { return _this.message.error('COMMON.OPERATION_FAILED'); })
801
- .finally(function () { return _this.loading.hide(); });
802
- return [2 /*return*/];
803
- }
804
- });
805
- }); }
806
- }
807
- ]
808
- })
809
- .then(function (alert) { return alert.present(); });
810
- };
811
- IDEACalendarComponent.prototype.close = function () {
812
- this.modalCtrl.dismiss();
813
- };
814
- return IDEACalendarComponent;
815
- }());
816
- IDEACalendarComponent.decorators = [
817
- { type: core.Component, args: [{
818
- selector: 'idea-calendar',
819
- template: "<ion-header>\n <ion-toolbar color=\"ideaToolbar\">\n <ion-buttons slot=\"start\">\n <ion-button [title]=\"t._('COMMON.CLOSE')\" (click)=\"close()\">\n <ion-icon name=\"close-circle\" slot=\"icon-only\"></ion-icon>\n </ion-button>\n </ion-buttons>\n <ion-title>{{ 'IDEA_AGENDA.CALENDARS.EDIT_CALENDAR' | translate }}</ion-title>\n <ion-buttons slot=\"end\">\n <ion-button [title]=\"t._('COMMON.SAVE')\" (click)=\"save()\">\n <ion-icon name=\"checkmark-circle\" slot=\"icon-only\"></ion-icon>\n </ion-button>\n </ion-buttons>\n </ion-toolbar>\n</ion-header>\n<ion-content>\n <div class=\"maxWidthContainer\" *ngIf=\"_calendar\">\n <ion-list class=\"aList\">\n <ion-item\n lines=\"inset\"\n [class.fieldHasError]=\"hasFieldAnError('name')\"\n [title]=\"t._('IDEA_AGENDA.CALENDARS.NAME_HINT')\"\n >\n <ion-label position=\"stacked\">{{ 'IDEA_AGENDA.CALENDARS.NAME' | translate }} </ion-label>\n <ion-input [placeholder]=\"t._('IDEA_AGENDA.CALENDARS.NAME_HINT')\" [(ngModel)]=\"_calendar.name\"></ion-input>\n </ion-item>\n <ion-item\n lines=\"inset\"\n [class.fieldHasError]=\"hasFieldAnError('description')\"\n [title]=\"t._('IDEA_AGENDA.CALENDARS.DESCRIPTION_HINT')\"\n >\n <ion-label position=\"stacked\">{{ 'IDEA_AGENDA.CALENDARS.DESCRIPTION' | translate }} </ion-label>\n <ion-input\n [placeholder]=\"t._('IDEA_AGENDA.CALENDARS.DESCRIPTION_HINT')\"\n [(ngModel)]=\"_calendar.description\"\n ></ion-input>\n </ion-item>\n <idea-color-picker\n *ngIf=\"!hideColor\"\n [lines]=\"'inset'\"\n [current]=\"_calendar.color\"\n [label]=\"t._('IDEA_AGENDA.CALENDARS.COLOR')\"\n [class.fieldHasError]=\"hasFieldAnError('color')\"\n (select)=\"$event ? (_calendar.color = $event) : null\"\n ></idea-color-picker>\n <idea-checker\n *ngIf=\"membershipsChecks && _calendar.isShared() && advancedPermissions\"\n [data]=\"membershipsChecks\"\n [label]=\"t._('IDEA_AGENDA.CALENDARS.USERS_ALLOWED_TO_MANAGE_APPOINTMENTS')\"\n [searchPlaceholder]=\"t._('IDEA_AGENDA.CALENDARS.WHO_CAN_MANAGE_APPOINTMENTS')\"\n [noneText]=\"t._('IDEA_AGENDA.CALENDARS.NOBODY')\"\n [allText]=\"t._('IDEA_AGENDA.CALENDARS.EVERYONE')\"\n [allowSelectDeselectAll]=\"true\"\n [lines]=\"'inset'\"\n ></idea-checker>\n </ion-list>\n <ion-list class=\"aList\" *ngIf=\"_calendar.external?.service\">\n <ion-list-header>\n <ion-label>\n <h2>{{ 'IDEA_AGENDA.CALENDARS.INFO_ON_CALENDAR' | translate }}</h2>\n </ion-label>\n </ion-list-header>\n <ion-item lines=\"inset\" *ngIf=\"calendar.userId\">\n <ion-label>\n {{ 'IDEA_AGENDA.CALENDARS.PRIVATE_CALENDAR' | translate }}\n <p>{{ 'IDEA_AGENDA.CALENDARS.PRIVATE_CALENDAR_HINT' | translate }}</p>\n </ion-label>\n <ion-icon slot=\"end\" name=\"person\"></ion-icon>\n </ion-item>\n <ion-item lines=\"inset\" *ngIf=\"calendar.teamId\">\n <ion-label>\n {{ 'IDEA_AGENDA.CALENDARS.TEAM_CALENDAR' | translate }}\n <p>{{ 'IDEA_AGENDA.CALENDARS.TEAM_CALENDAR_HINT' | translate }}</p>\n </ion-label>\n <ion-icon slot=\"end\" name=\"people\"></ion-icon>\n </ion-item>\n <ion-item lines=\"inset\">\n <ion-label>\n {{ 'IDEA_AGENDA.CALENDARS.LINKED_TO' | translate }}\n {{ 'IDEA_AGENDA.CALENDARS.SERVICES.' + _calendar.external.service | translate }}\n <p>{{ _calendar.external.name }} ({{ _calendar.external.email }})</p>\n </ion-label>\n <ion-icon slot=\"end\" [name]=\"calendars.getServiceIcon(_calendar.external.service)\"></ion-icon>\n </ion-item>\n <ion-item lines=\"inset\">\n <ion-label>\n {{ 'IDEA_AGENDA.CALENDARS.ACCESS_LEVELS.' + _calendar.external.userAccess | translate }}\n <p>{{ 'IDEA_AGENDA.CALENDARS.BASED_ON_EXTERNAL_SERVICE_SHARING_PERMISSION' | translate }}</p>\n </ion-label>\n <ion-icon slot=\"end\" name=\"shield\"></ion-icon>\n </ion-item>\n </ion-list>\n <ion-list class=\"aList\">\n <ion-list-header>\n <ion-label color=\"danger\">\n <h2>{{ 'IDEA_AGENDA.CALENDARS.DANGEROUS_ZONE' | translate }}</h2>\n </ion-label>\n </ion-list-header>\n <ion-item lines=\"inset\">\n <ion-label class=\"ion-text-wrap\">\n {{ 'IDEA_AGENDA.CALENDARS.DELETE_CALENDAR' | translate }}\n <p>{{ 'IDEA_AGENDA.CALENDARS.DELETE_CALENDAR_HINT' | translate }}</p>\n </ion-label>\n <ion-button color=\"danger\" [title]=\"t._('IDEA_AGENDA.CALENDARS.DELETE_CALENDAR_HINT')\" (click)=\"delete()\">\n {{ 'COMMON.DELETE' | translate }}\n </ion-button>\n </ion-item>\n </ion-list>\n </div>\n</ion-content>\n",
820
- styles: [".maxWidthContainer{max-width:500px;padding-top:20px}"]
821
- },] }
822
- ];
823
- IDEACalendarComponent.ctorParameters = function () { return [
824
- { type: IDEACalendarsService },
825
- { type: angular.ModalController },
826
- { type: angular.AlertController },
827
- { type: common$1.IDEATinCanService },
828
- { type: common$1.IDEALoadingService },
829
- { type: common$1.IDEAMessageService },
830
- { type: common$1.IDEAAWSAPIService },
831
- { type: common$1.IDEATranslationsService }
832
- ]; };
833
- IDEACalendarComponent.propDecorators = {
834
- calendar: [{ type: core.Input }],
835
- advancedPermissions: [{ type: core.Input }],
836
- hideColor: [{ type: core.Input }]
837
- };
838
-
839
- var IDEACalendarItemComponent = /** @class */ (function () {
840
- function IDEACalendarItemComponent(calendars, alertCtrl, modalCtrl, message, loading, t) {
841
- this.calendars = calendars;
842
- this.alertCtrl = alertCtrl;
843
- this.modalCtrl = modalCtrl;
844
- this.message = message;
845
- this.loading = loading;
846
- this.t = t;
847
- this.somethingChanged = new core.EventEmitter();
848
- }
849
- IDEACalendarItemComponent.prototype.manageCalendar = function () {
850
- var _this = this;
851
- if (this.disabled)
852
- return;
853
- this.modalCtrl
854
- .create({
855
- component: IDEACalendarComponent,
856
- componentProps: {
857
- calendar: this.calendar,
858
- advancedPermissions: this.advancedPermissions,
859
- hideColor: this.hideColor
860
- }
861
- })
862
- .then(function (modal) {
863
- modal.onDidDismiss().then(function (res) {
864
- var cal = res.data;
865
- if (cal === undefined)
866
- return;
867
- else if (cal === null)
868
- _this.calendar = null;
869
- else
870
- _this.calendar.load(cal);
871
- _this.somethingChanged.emit();
872
- });
873
- modal.present();
874
- });
875
- };
876
- IDEACalendarItemComponent.prototype.linkExtCalendarOrDelete = function () {
877
- var _this = this;
878
- if (this.disabled)
879
- return;
880
- this.calendars
881
- .chooseAndSetExternalCalendar(this.calendar)
882
- .then(function (cal) { return __awaiter(_this, void 0, void 0, function () {
883
- var _this = this;
884
- return __generator(this, function (_a) {
885
- switch (_a.label) {
886
- case 0:
887
- if (!cal)
888
- return [2 /*return*/, new Error('NO_EXTERNAL_CALENDAR_CHOSEN')];
889
- this.calendar.load(cal);
890
- this.message.success('IDEA_AGENDA.CALENDARS.CALENDAR_LINKED');
891
- return [4 /*yield*/, this.loading.show(this.t._('IDEA_AGENDA.CALENDARS.FIRST_SYNC_MAY_TAKE_A_WHILE'))];
892
- case 1:
893
- _a.sent();
894
- this.calendars
895
- .syncCalendar(this.calendar)
896
- .then(function () { return _this.message.success('IDEA_AGENDA.CALENDARS.FIRST_SYNC_COMPLETED'); })
897
- .catch(function () { return _this.message.error('COMMON.OPERATION_FAILED'); })
898
- .finally(function () {
899
- _this.loading.hide();
900
- _this.somethingChanged.emit();
901
- });
902
- return [2 /*return*/];
903
- }
904
- });
905
- }); })
906
- .catch(function () {
907
- _this.alertCtrl
908
- .create({
909
- header: _this.t._('IDEA_AGENDA.CALENDARS.CALENDAR_NOT_YET_LINKED'),
910
- message: _this.t._('IDEA_AGENDA.CALENDARS.DO_YOU_WANT_PROCEED_LINKING_OR_DELETE'),
911
- buttons: [
912
- {
913
- text: _this.t._('COMMON.DELETE'),
914
- handler: function () { return __awaiter(_this, void 0, void 0, function () {
915
- var _this = this;
916
- return __generator(this, function (_a) {
917
- switch (_a.label) {
918
- case 0: return [4 /*yield*/, this.loading.show()];
919
- case 1:
920
- _a.sent();
921
- this.calendars
922
- .deleteCalendar(this.calendar)
923
- .then(function () {
924
- _this.message.success('COMMON.OPERATION_COMPLETED');
925
- _this.somethingChanged.emit();
926
- })
927
- .catch(function () { return _this.message.error('COMMON.OPERATION_FAILED'); })
928
- .finally(function () { return _this.loading.hide(); });
929
- return [2 /*return*/];
930
- }
931
- });
932
- }); }
933
- },
934
- {
935
- text: _this.t._('IDEA_AGENDA.CALENDARS.LINK'),
936
- handler: function () { return _this.calendars
937
- .linkExtService(_this.calendar)
938
- .then(function () { return _this.linkExtCalendarOrDelete(); })
939
- .catch(function () { return _this.message.error('COMMON.OPERATION_FAILED'); }); }
940
- }
941
- ]
942
- })
943
- .then(function (alert) { return alert.present(); });
944
- });
945
- };
946
- return IDEACalendarItemComponent;
947
- }());
948
- IDEACalendarItemComponent.decorators = [
949
- { type: core.Component, args: [{
950
- selector: 'idea-calendar-item',
951
- template: "<ion-item\n class=\"calendarItem\"\n *ngIf=\"calendar\"\n [button]=\"!disabled\"\n [title]=\"t._('IDEA_AGENDA.CALENDARS.EDIT_CALENDAR')\"\n (click)=\"calendar.external && !calendar.external.calendarId ? linkExtCalendarOrDelete() : manageCalendar()\"\n>\n <ion-avatar\n slot=\"start\"\n class=\"colorCircle\"\n *ngIf=\"!hideColor\"\n [style.background-color]=\"calendar.color\"\n ></ion-avatar>\n <ion-label>\n {{ calendar.name }}\n <p>\n <ion-text color=\"danger\" *ngIf=\"calendar.external && !calendar.external.calendarId\">\n {{ 'IDEA_AGENDA.CALENDARS.TAP_TO_CONFIGURE' | translate }}\n </ion-text>\n {{ calendar.description }}\n </p>\n </ion-label>\n <ion-icon\n slot=\"end\"\n color=\"danger\"\n name=\"flash-off\"\n *ngIf=\"calendar.external && !calendar.external.calendarId\"\n [title]=\"t._('IDEA_AGENDA.CALENDARS.CALENDAR_NOT_YET_LINKED_HINT')\"\n ></ion-icon>\n <ion-icon\n slot=\"end\"\n *ngIf=\"calendar.external?.service\"\n [name]=\"calendars.getServiceIcon(calendar.external.service)\"\n [title]=\"\n t._('IDEA_AGENDA.CALENDARS.LINKED_TO') + ' ' + t._('IDEA_AGENDA.CALENDARS.SERVICES.' + calendar.external.service)\n \"\n ></ion-icon>\n</ion-item>\n",
952
- styles: [".calendarItem ion-avatar.colorCircle{width:20px;height:20px;background-color:#555}"]
953
- },] }
954
- ];
955
- IDEACalendarItemComponent.ctorParameters = function () { return [
956
- { type: IDEACalendarsService },
957
- { type: angular.AlertController },
958
- { type: angular.ModalController },
959
- { type: common$1.IDEAMessageService },
960
- { type: common$1.IDEALoadingService },
961
- { type: common$1.IDEATranslationsService }
962
- ]; };
963
- IDEACalendarItemComponent.propDecorators = {
964
- calendar: [{ type: core.Input }],
965
- disabled: [{ type: core.Input }],
966
- advancedPermissions: [{ type: core.Input }],
967
- hideColor: [{ type: core.Input }],
968
- somethingChanged: [{ type: core.Output }]
969
- };
970
-
971
- var IDEACalendarCreationComponent = /** @class */ (function () {
972
- function IDEACalendarCreationComponent(calendars, modalCtrl, tc, loading, message, API, t) {
973
- this.calendars = calendars;
974
- this.modalCtrl = modalCtrl;
975
- this.tc = tc;
976
- this.loading = loading;
977
- this.message = message;
978
- this.API = API;
979
- this.t = t;
980
- this.DEFAULT_COLOR = '#555';
981
- this.SOURCES = Object.keys(ideaToolbox.ExternalCalendarSources);
982
- }
983
- IDEACalendarCreationComponent.prototype.ngOnInit = function () {
984
- this.calendar = new ideaToolbox.Calendar();
985
- this.membership = this.tc.get('membership');
986
- if (this.fixScope === exports.CalendarScopes.SHARED)
987
- this.calendar.teamId = this.membership.teamId;
988
- if (this.fixScope === exports.CalendarScopes.PRIVATE)
989
- this.calendar.userId = this.membership.userId;
990
- };
991
- IDEACalendarCreationComponent.prototype.resetScope = function () {
992
- if (this.canChangeScope())
993
- this.calendar.teamId = this.calendar.userId = null;
994
- };
995
- IDEACalendarCreationComponent.prototype.canChangeScope = function () {
996
- return !this.fixScope && this.scopeIsSet();
997
- };
998
- IDEACalendarCreationComponent.prototype.scopeIsSet = function () {
999
- return Boolean(this.calendar.userId) || Boolean(this.calendar.teamId);
1000
- };
1001
- IDEACalendarCreationComponent.prototype.saveNewCalendar = function (service) {
1002
- return __awaiter(this, void 0, void 0, function () {
1003
- var _this = this;
1004
- return __generator(this, function (_a) {
1005
- switch (_a.label) {
1006
- case 0:
1007
- if (!this.scopeIsSet())
1008
- return [2 /*return*/];
1009
- if (!service && this.onlyExternalCalendars)
1010
- return [2 /*return*/];
1011
- if (service) {
1012
- this.calendar.external = new ideaToolbox.ExternalCalendarInfo({ service: service });
1013
- this.calendar.name = '-';
1014
- }
1015
- else {
1016
- this.calendar.name = this.calendar.userId
1017
- ? this.t._('IDEA_AGENDA.CALENDARS.DEFAULT_PERSONAL_CALENDAR_NAME')
1018
- : this.t._('IDEA_AGENDA.CALENDARS.DEFAULT_TEAM_CALENDAR_NAME');
1019
- this.calendar.color = this.DEFAULT_COLOR;
1020
- }
1021
- return [4 /*yield*/, this.loading.show()];
1022
- case 1:
1023
- _a.sent();
1024
- this.calendars
1025
- .postCalendar(this.calendar)
1026
- .then(function (cal) {
1027
- _this.calendar.load(cal);
1028
- _this.message.success('IDEA_AGENDA.CALENDARS.CALENDAR_CREATED');
1029
- if (!cal.external)
1030
- return _this.modalCtrl.dismiss(_this.calendar);
1031
- _this.calendars
1032
- .linkExtService(_this.calendar)
1033
- .then(function () { return _this.calendars.chooseAndSetExternalCalendar(_this.calendar); })
1034
- .then(function (res) { return __awaiter(_this, void 0, void 0, function () {
1035
- var _this = this;
1036
- return __generator(this, function (_a) {
1037
- switch (_a.label) {
1038
- case 0:
1039
- if (!res)
1040
- return [2 /*return*/, this.modalCtrl.dismiss(this.calendar)];
1041
- this.calendar.load(res);
1042
- return [4 /*yield*/, this.loading.show(this.t._('IDEA_AGENDA.CALENDARS.FIRST_SYNC_MAY_TAKE_A_WHILE'))];
1043
- case 1:
1044
- _a.sent();
1045
- this.calendars
1046
- .syncCalendar(this.calendar)
1047
- .then(function () { return _this.message.success('IDEA_AGENDA.CALENDARS.FIRST_SYNC_COMPLETED'); })
1048
- .catch(function () { return _this.message.error('COMMON.OPERATION_FAILED'); })
1049
- .finally(function () {
1050
- _this.loading.hide();
1051
- _this.modalCtrl.dismiss(_this.calendar);
1052
- });
1053
- return [2 /*return*/];
1054
- }
1055
- });
1056
- }); })
1057
- .catch(function () {
1058
- _this.message.error('COMMON.OPERATION_FAILED');
1059
- _this.modalCtrl.dismiss(_this.calendar);
1060
- });
1061
- })
1062
- .catch(function () { return _this.message.error('COMMON.OPERATION_FAILED'); })
1063
- .finally(function () { return _this.loading.hide(); });
1064
- return [2 /*return*/];
1065
- }
1066
- });
1067
- });
1068
- };
1069
- IDEACalendarCreationComponent.prototype.close = function () {
1070
- this.modalCtrl.dismiss();
1071
- };
1072
- return IDEACalendarCreationComponent;
1073
- }());
1074
- IDEACalendarCreationComponent.decorators = [
1075
- { type: core.Component, args: [{
1076
- selector: 'idea-calendar-creation',
1077
- template: "<ion-header>\n <ion-toolbar color=\"ideaToolbar\">\n <ion-buttons slot=\"start\">\n <ion-button *ngIf=\"!canChangeScope()\" [title]=\"t._('COMMON.CLOSE')\" (click)=\"close()\">\n <ion-icon name=\"close\" slot=\"icon-only\"></ion-icon>\n </ion-button>\n <ion-button *ngIf=\"canChangeScope()\" (click)=\"resetScope()\">\n <ion-icon name=\"arrow-back\" slot=\"icon-only\"></ion-icon>\n </ion-button>\n </ion-buttons>\n <ion-title>\n <span *ngIf=\"!scopeIsSet()\">{{ 'IDEA_AGENDA.CALENDARS.ADD_A_CALENDAR' | translate }}</span>\n <span *ngIf=\"calendar.userId\">{{ 'IDEA_AGENDA.CALENDARS.PERSONAL_CALENDAR' | translate }}</span>\n <span *ngIf=\"calendar.teamId\">\n {{ 'IDEA_AGENDA.CALENDARS.TEAM_CALENDAR' | translate: { team: tc.get('team').name } }}\n </span>\n </ion-title>\n </ion-toolbar>\n</ion-header>\n<ion-content>\n <!-- 1st STEP -->\n <ion-grid class=\"ion-padding choiceGrid\" *ngIf=\"!scopeIsSet()\">\n <ion-row>\n <ion-col class=\"ion-text-center\">\n <h1>{{ 'IDEA_AGENDA.CALENDARS.CREATE_PRIVATE_OR_TEAM' | translate }}</h1>\n </ion-col>\n </ion-row>\n <ion-row class=\"ion-align-items-center\">\n <ion-col class=\"ion-text-center\" [size]=\"12\" [sizeSm]=\"6\">\n <ion-card [button]=\"true\" (click)=\"calendar.userId = membership.userId\">\n <ion-card-header>\n <ion-card-title>\n <ion-icon name=\"person\"></ion-icon>\n </ion-card-title>\n </ion-card-header>\n <ion-card-content>\n <h1>{{ 'IDEA_AGENDA.CALENDARS.PERSONAL_CALENDAR' | translate }}</h1>\n <p>{{ 'IDEA_AGENDA.CALENDARS.PERSONAL_CALENDAR_HINT' | translate }}</p>\n </ion-card-content>\n </ion-card>\n </ion-col>\n <ion-col class=\"ion-text-center\" [size]=\"12\" [sizeSm]=\"6\">\n <ion-card [button]=\"true\" (click)=\"calendar.teamId = membership.teamId\">\n <ion-card-header>\n <ion-card-title>\n <ion-icon name=\"people\"></ion-icon>\n </ion-card-title>\n </ion-card-header>\n <ion-card-content>\n <h1>{{ 'IDEA_AGENDA.CALENDARS.TEAM_CALENDAR' | translate }}</h1>\n <p>{{ 'IDEA_AGENDA.CALENDARS.TEAM_CALENDAR_HINT' | translate }}</p>\n </ion-card-content>\n </ion-card>\n </ion-col>\n </ion-row>\n </ion-grid>\n <!-- 2nd STEP -->\n <ion-grid class=\"ion-padding choiceGrid\" *ngIf=\"scopeIsSet()\">\n <ion-row>\n <ion-col class=\"ion-text-center\">\n <h1>{{ 'IDEA_AGENDA.CALENDARS.WHICH_EXTERNAL_SERVICE_TO_LINK' | translate }}</h1>\n <p>{{ 'IDEA_AGENDA.CALENDARS.WHICH_EXTERNAL_SERVICE_TO_LINK_HINT' | translate }}</p>\n </ion-col>\n </ion-row>\n <ion-row class=\"ion-align-items-center\">\n <ion-col class=\"ion-text-center\" [size]=\"12\" *ngIf=\"!onlyExternalCalendars\">\n <ion-card class=\"step2\" [button]=\"true\" (click)=\"saveNewCalendar()\">\n <ion-card-header>\n <ion-card-title>\n <ion-icon name=\"remove\"></ion-icon>\n </ion-card-title>\n </ion-card-header>\n <ion-card-content>\n <h1>{{ 'IDEA_AGENDA.CALENDARS.DONT_LINK' | translate }}</h1>\n <p>{{ 'IDEA_AGENDA.CALENDARS.DONT_LINK_HINT' | translate }}</p>\n </ion-card-content>\n </ion-card>\n </ion-col>\n <ion-col class=\"ion-text-center\" *ngFor=\"let s of SOURCES\" [size]=\"12\">\n <ion-card class=\"step2\" [button]=\"true\" (click)=\"saveNewCalendar(s)\">\n <ion-card-header>\n <ion-card-title>\n <ion-icon [name]=\"calendars.getServiceIcon(s)\"></ion-icon>\n </ion-card-title>\n </ion-card-header>\n <ion-card-content>\n <h1>\n {{ 'IDEA_AGENDA.CALENDARS.LINK_TO' | translate }}\n {{ 'IDEA_AGENDA.CALENDARS.SERVICES.' + s | translate }}\n </h1>\n <p>{{ 'IDEA_AGENDA.CALENDARS.LINK_TO_HINT' | translate }}</p>\n </ion-card-content>\n </ion-card>\n </ion-col>\n </ion-row>\n </ion-grid>\n</ion-content>\n",
1078
- styles: ["ion-content{--background:var(--ion-color-white-shade)}.choiceGrid ion-row ion-col>h1{margin:10px 0 0;font-size:1.1em}.choiceGrid ion-row ion-col>p{margin-top:0;margin-bottom:0;font-size:.9em}.choiceGrid ion-row:first-child ion-col{padding-bottom:25px}.choiceGrid ion-card{--ion-item-background:var(--ion-color-white);--color:var(--ion-color-dark-tint);height:240px;margin:0 auto;text-align:center}.choiceGrid ion-card ion-card-header{padding-bottom:10px}.choiceGrid ion-card ion-card-header ion-card-title{font-size:2.5em}.choiceGrid ion-card ion-card-content h1{font-size:1.4em;height:60px}.choiceGrid ion-card.step2{height:135px}.choiceGrid ion-card.step2 ion-card-header{padding-top:10px;padding-bottom:0}.choiceGrid ion-card.step2 ion-card-content h1{height:auto}"]
1079
- },] }
1080
- ];
1081
- IDEACalendarCreationComponent.ctorParameters = function () { return [
1082
- { type: IDEACalendarsService },
1083
- { type: angular.ModalController },
1084
- { type: common$1.IDEATinCanService },
1085
- { type: common$1.IDEALoadingService },
1086
- { type: common$1.IDEAMessageService },
1087
- { type: common$1.IDEAAWSAPIService },
1088
- { type: common$1.IDEATranslationsService }
1089
- ]; };
1090
- IDEACalendarCreationComponent.propDecorators = {
1091
- fixScope: [{ type: core.Input }],
1092
- onlyExternalCalendars: [{ type: core.Input }]
1093
- };
1094
- exports.CalendarScopes = void 0;
1095
- (function (CalendarScopes) {
1096
- CalendarScopes["SHARED"] = "shared";
1097
- CalendarScopes["PRIVATE"] = "private";
1098
- })(exports.CalendarScopes || (exports.CalendarScopes = {}));
1099
-
1100
- var ɵ0 = dateFns$1.adapterFactory;
1101
- var IDEAAgendaModule = /** @class */ (function () {
1102
- function IDEAAgendaModule() {
1103
- }
1104
- return IDEAAgendaModule;
1105
- }());
1106
- IDEAAgendaModule.decorators = [
1107
- { type: core.NgModule, args: [{
1108
- imports: [
1109
- common.CommonModule,
1110
- forms.FormsModule,
1111
- angular.IonicModule,
1112
- common$1.IDEATranslationsModule,
1113
- common$1.IDEAColorPickerModule,
1114
- common$1.IDEACheckerModule,
1115
- angularCalendar.CalendarModule.forRoot({ provide: angularCalendar.DateAdapter, useFactory: ɵ0 })
1116
- ],
1117
- declarations: [IDEAAgendaComponent, IDEACalendarComponent, IDEACalendarItemComponent, IDEACalendarCreationComponent],
1118
- entryComponents: [
1119
- IDEAAgendaComponent,
1120
- IDEACalendarComponent,
1121
- IDEACalendarItemComponent,
1122
- IDEACalendarCreationComponent
1123
- ],
1124
- exports: [IDEAAgendaComponent, IDEACalendarComponent, IDEACalendarItemComponent, IDEACalendarCreationComponent],
1125
- providers: [{ provide: angularCalendar.CalendarDateFormatter, useClass: CustomDateFormatter }, IDEACalendarsService]
1126
- },] }
1127
- ];
1128
-
1129
- exports.CustomDateFormatter = CustomDateFormatter;
1130
- exports.IDEAAgendaComponent = IDEAAgendaComponent;
1131
- exports.IDEAAgendaModule = IDEAAgendaModule;
1132
- exports.IDEACalendarComponent = IDEACalendarComponent;
1133
- exports.IDEACalendarCreationComponent = IDEACalendarCreationComponent;
1134
- exports.IDEACalendarItemComponent = IDEACalendarItemComponent;
1135
- exports.IDEACalendarsService = IDEACalendarsService;
1136
- exports.ɵ0 = ɵ0;
1137
-
1138
- Object.defineProperty(exports, '__esModule', { value: true });
1139
-
1140
- })));
1141
- //# sourceMappingURL=idea-ionic-agenda.umd.js.map