@idea-ionic/agenda 5.29.3 → 6.0.2

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