@globalpayments/vega 2.16.0 → 2.17.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 (260) hide show
  1. package/dist/cjs/{app-globals-5e074c5e.js → app-globals-4e0416c1.js} +2 -2
  2. package/dist/cjs/{childNodesEventPreventSlimmer-7e1895d7.js → childNodesEventPreventSlimmer-6848c3cf.js} +1 -1
  3. package/dist/cjs/{eventEmitSlimmer-ea57144a.js → eventEmitSlimmer-1d70a720.js} +1 -1
  4. package/dist/cjs/{formFieldControllerSlimmer-9271a8b8.js → formFieldControllerSlimmer-8b54f14d.js} +1 -1
  5. package/dist/cjs/index.cjs.js +3 -3
  6. package/dist/cjs/{internalVegaEventManager-543c20cb.js → internalVegaEventManager-743a124d.js} +2 -2
  7. package/dist/cjs/loader.cjs.js +5 -5
  8. package/dist/cjs/{subStateObserverSlimmer-48ad20a1.js → subStateObserverSlimmer-60e4d6da.js} +28 -14
  9. package/dist/cjs/vega-accordion.cjs.entry.js +4 -4
  10. package/dist/cjs/vega-app-header-button.cjs.entry.js +4 -4
  11. package/dist/cjs/vega-banner.cjs.entry.js +3 -3
  12. package/dist/cjs/vega-breadcrumb.cjs.entry.js +4 -4
  13. package/dist/cjs/vega-button-circle.cjs.entry.js +4 -4
  14. package/dist/cjs/vega-button-group_2.cjs.entry.js +6 -6
  15. package/dist/cjs/vega-button-link.cjs.entry.js +4 -4
  16. package/dist/cjs/vega-button.cjs.entry.js +57 -12
  17. package/dist/cjs/vega-calendar_2.cjs.entry.js +830 -90
  18. package/dist/cjs/vega-carousel.cjs.entry.js +3 -3
  19. package/dist/cjs/vega-checkbox_2.cjs.entry.js +6 -6
  20. package/dist/cjs/vega-chip.cjs.entry.js +4 -4
  21. package/dist/cjs/vega-color-picker.cjs.entry.js +5 -5
  22. package/dist/cjs/vega-combo-box.cjs.entry.js +6 -6
  23. package/dist/cjs/vega-date-picker_2.cjs.entry.js +6 -6
  24. package/dist/cjs/vega-dialog_2.cjs.entry.js +4 -4
  25. package/dist/cjs/vega-dropdown_5.cjs.entry.js +308 -183
  26. package/dist/cjs/vega-field-label.cjs.entry.js +4 -4
  27. package/dist/cjs/vega-form.cjs.entry.js +6 -6
  28. package/dist/cjs/vega-image-uploader.cjs.entry.js +6 -6
  29. package/dist/cjs/vega-input-credit-card.cjs.entry.js +6 -6
  30. package/dist/cjs/vega-input-range.cjs.entry.js +6 -6
  31. package/dist/cjs/vega-input-select.cjs.entry.js +168 -58
  32. package/dist/cjs/vega-input.cjs.entry.js +5 -5
  33. package/dist/cjs/vega-item-toggle.cjs.entry.js +3 -3
  34. package/dist/cjs/vega-left-nav_5.cjs.entry.js +4 -4
  35. package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +1 -1
  36. package/dist/cjs/vega-page-notification_2.cjs.entry.js +1 -1
  37. package/dist/cjs/vega-pagination.cjs.entry.js +4 -4
  38. package/dist/cjs/vega-popover_2.cjs.entry.js +3 -3
  39. package/dist/cjs/vega-progress-tracker.cjs.entry.js +3 -3
  40. package/dist/cjs/vega-radio_2.cjs.entry.js +6 -6
  41. package/dist/cjs/vega-segment-control.cjs.entry.js +3 -3
  42. package/dist/cjs/vega-selection-tile_2.cjs.entry.js +7 -7
  43. package/dist/cjs/{vega-skeleton-loader-controller-bac82c82.js → vega-skeleton-loader-controller-8932c0ed.js} +3 -3
  44. package/dist/cjs/vega-stepper.cjs.entry.js +6 -6
  45. package/dist/cjs/vega-tab-group_2.cjs.entry.js +4 -4
  46. package/dist/cjs/vega-table_8.cjs.entry.js +6 -6
  47. package/dist/cjs/vega-textarea.cjs.entry.js +6 -6
  48. package/dist/cjs/vega-time-picker_2.cjs.entry.js +6 -6
  49. package/dist/cjs/vega-toggle-switch.cjs.entry.js +3 -3
  50. package/dist/cjs/vega.cjs.js +5 -5
  51. package/dist/cjs/{vegaEventId-d7774262.js → vegaEventId-f375a6a3.js} +2 -0
  52. package/dist/cjs/{vegaInternalEventId-173c4941.js → vegaInternalEventId-ac38dd4b.js} +2 -0
  53. package/dist/collection/components/vega-button/slimmers/renderers/vega-button-loading-renderer.js +24 -0
  54. package/dist/collection/components/vega-button/vega-button.css +9 -1
  55. package/dist/collection/components/vega-button/vega-button.js +49 -7
  56. package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-current-period-controller.js +38 -24
  57. package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-controller.js +54 -1
  58. package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-view-controller.js +13 -21
  59. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeatPattern/baseRepeatPattern.js +61 -0
  60. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeatPattern/calendarEventDailyRepeatPattern.js +70 -0
  61. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeatPattern/calendarEventMonthlyRepeatPattern.js +90 -0
  62. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeatPattern/calendarEventRepeatPatternFactory.js +60 -0
  63. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeatPattern/calendarEventWeeklyRepeatPattern.js +163 -0
  64. package/dist/collection/components/vega-calendar/slimmers/common/helpers/repeatPattern/calendarEventYearlyRepeatPattern.js +92 -0
  65. package/dist/collection/components/vega-calendar/slimmers/common/helpers/test/calendarEventRepeatPatternFactory.test.js +105 -0
  66. package/dist/collection/components/vega-calendar/slimmers/common/layout/test/longEventLayoutGenerator.test.js +0 -5
  67. package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-switch-panel.js +1 -1
  68. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/timed-event/layout/test/dayViewEventLayoutGenerator.test.js +0 -5
  69. package/dist/collection/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.js +21 -4
  70. package/dist/collection/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.js +45 -2
  71. package/dist/collection/components/vega-calendar/vega-calendar.css +0 -1
  72. package/dist/collection/components/vega-calendar/vega-calendar.js +51 -4
  73. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.js +0 -4
  74. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-children-controller.js +14 -1
  75. package/dist/collection/components/vega-dropdown/slimmers/controllers/vega-dropdown-scrollable-controller.js +142 -0
  76. package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.js +16 -50
  77. package/dist/collection/components/vega-dropdown/slimmers/renderers/vega-dropdown-renderer.js +6 -1
  78. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/controllers/vega-dropdown-item-state-controller.js +1 -0
  79. package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +7 -5
  80. package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.js +1 -1
  81. package/dist/collection/components/vega-dropdown/vega-dropdown.js +5 -2
  82. package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-dropdown-controller.js +23 -0
  83. package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-items-slot-controler.js +62 -0
  84. package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.js +11 -0
  85. package/dist/collection/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.js +7 -10
  86. package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +18 -2
  87. package/dist/collection/components/vega-input-select/vega-input-select.js +5 -0
  88. package/dist/collection/components/vega-loading-indicator/vega-loading-indicator.js +2 -2
  89. package/dist/collection/constants/ui.js +1 -1
  90. package/dist/collection/helpers/calendar/calendar-date.js +11 -0
  91. package/dist/collection/helpers/calendar/calendar-event.js +73 -24
  92. package/dist/collection/helpers/calendar/calendar-period/calendar-period.abstract.js +8 -0
  93. package/dist/collection/helpers/calendar/calendar-period/day-period.js +1 -0
  94. package/dist/collection/helpers/calendar/calendar-period/month-period.js +16 -3
  95. package/dist/collection/helpers/calendar/calendar-period/week-period.js +1 -0
  96. package/dist/collection/helpers/calendar/test/calendar-event.test.js +23 -20
  97. package/dist/collection/helpers/event-manager/eventID/componentEventIdMap.js +2 -2
  98. package/dist/collection/helpers/event-manager/eventID/vegaEventId.js +1 -1
  99. package/dist/collection/helpers/event-manager/eventID/vegaInternalEventId.js +1 -0
  100. package/dist/collection/helpers/slimmers/sub-state/subStateObserverSlimmer.js +27 -13
  101. package/dist/collection/helpers/slimmers/sub-state/test/sub-state-observer-slimmer.test.js +15 -3
  102. package/dist/collection/helpers/vega-telemetry-helper/test/vegaEnvManager.test.js +1 -1
  103. package/dist/collection/helpers/vega-telemetry-helper/vegaEnvManager.js +2 -2
  104. package/dist/esm/{app-globals-032d6105.js → app-globals-ba85a900.js} +2 -2
  105. package/dist/esm/{childNodesEventPreventSlimmer-b9c50cc4.js → childNodesEventPreventSlimmer-d0da4527.js} +1 -1
  106. package/dist/esm/{eventEmitSlimmer-9c33f04e.js → eventEmitSlimmer-7b16eef9.js} +1 -1
  107. package/dist/esm/{formFieldControllerSlimmer-85ff874e.js → formFieldControllerSlimmer-ea050a17.js} +1 -1
  108. package/dist/esm/index.js +3 -3
  109. package/dist/esm/{internalVegaEventManager-e1501923.js → internalVegaEventManager-71d00966.js} +2 -2
  110. package/dist/esm/loader.js +5 -5
  111. package/dist/esm/{subStateObserverSlimmer-354b33f6.js → subStateObserverSlimmer-2a8a615e.js} +28 -14
  112. package/dist/esm/vega-accordion.entry.js +4 -4
  113. package/dist/esm/vega-app-header-button.entry.js +4 -4
  114. package/dist/esm/vega-banner.entry.js +3 -3
  115. package/dist/esm/vega-breadcrumb.entry.js +4 -4
  116. package/dist/esm/vega-button-circle.entry.js +4 -4
  117. package/dist/esm/vega-button-group_2.entry.js +6 -6
  118. package/dist/esm/vega-button-link.entry.js +4 -4
  119. package/dist/esm/vega-button.entry.js +59 -14
  120. package/dist/esm/vega-calendar_2.entry.js +830 -90
  121. package/dist/esm/vega-carousel.entry.js +3 -3
  122. package/dist/esm/vega-checkbox_2.entry.js +6 -6
  123. package/dist/esm/vega-chip.entry.js +4 -4
  124. package/dist/esm/vega-color-picker.entry.js +5 -5
  125. package/dist/esm/vega-combo-box.entry.js +6 -6
  126. package/dist/esm/vega-date-picker_2.entry.js +6 -6
  127. package/dist/esm/vega-dialog_2.entry.js +4 -4
  128. package/dist/esm/vega-dropdown_5.entry.js +308 -183
  129. package/dist/esm/vega-field-label.entry.js +4 -4
  130. package/dist/esm/vega-form.entry.js +6 -6
  131. package/dist/esm/vega-image-uploader.entry.js +6 -6
  132. package/dist/esm/vega-input-credit-card.entry.js +6 -6
  133. package/dist/esm/vega-input-range.entry.js +6 -6
  134. package/dist/esm/vega-input-select.entry.js +168 -58
  135. package/dist/esm/vega-input.entry.js +5 -5
  136. package/dist/esm/vega-item-toggle.entry.js +3 -3
  137. package/dist/esm/vega-left-nav_5.entry.js +4 -4
  138. package/dist/esm/vega-loader-wrapper_2.entry.js +1 -1
  139. package/dist/esm/vega-page-notification_2.entry.js +1 -1
  140. package/dist/esm/vega-pagination.entry.js +4 -4
  141. package/dist/esm/vega-popover_2.entry.js +3 -3
  142. package/dist/esm/vega-progress-tracker.entry.js +3 -3
  143. package/dist/esm/vega-radio_2.entry.js +6 -6
  144. package/dist/esm/vega-segment-control.entry.js +3 -3
  145. package/dist/esm/vega-selection-tile_2.entry.js +7 -7
  146. package/dist/esm/{vega-skeleton-loader-controller-3f5500e5.js → vega-skeleton-loader-controller-778b12be.js} +3 -3
  147. package/dist/esm/vega-stepper.entry.js +6 -6
  148. package/dist/esm/vega-tab-group_2.entry.js +4 -4
  149. package/dist/esm/vega-table_8.entry.js +6 -6
  150. package/dist/esm/vega-textarea.entry.js +6 -6
  151. package/dist/esm/vega-time-picker_2.entry.js +6 -6
  152. package/dist/esm/vega-toggle-switch.entry.js +3 -3
  153. package/dist/esm/vega.js +5 -5
  154. package/dist/esm/{vegaEventId-680887e1.js → vegaEventId-f279bb62.js} +2 -1
  155. package/dist/esm/{vegaInternalEventId-600b3751.js → vegaInternalEventId-bde5d617.js} +2 -1
  156. package/dist/types/components/vega-button/slimmers/renderers/vega-button-loading-renderer.d.ts +13 -0
  157. package/dist/types/components/vega-button/vega-button.d.ts +16 -0
  158. package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-current-period-controller.d.ts +12 -9
  159. package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-event-controller.d.ts +20 -0
  160. package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-view-controller.d.ts +8 -12
  161. package/dist/types/components/vega-calendar/slimmers/common/helpers/repeatPattern/baseRepeatPattern.d.ts +50 -0
  162. package/dist/types/components/vega-calendar/slimmers/common/helpers/repeatPattern/calendarEventDailyRepeatPattern.d.ts +43 -0
  163. package/dist/types/components/vega-calendar/slimmers/common/helpers/repeatPattern/calendarEventMonthlyRepeatPattern.d.ts +55 -0
  164. package/dist/types/components/vega-calendar/slimmers/common/helpers/repeatPattern/calendarEventRepeatPatternFactory.d.ts +34 -0
  165. package/dist/types/components/vega-calendar/slimmers/common/helpers/repeatPattern/calendarEventWeeklyRepeatPattern.d.ts +99 -0
  166. package/dist/types/components/vega-calendar/slimmers/common/helpers/repeatPattern/calendarEventYearlyRepeatPattern.d.ts +57 -0
  167. package/dist/types/components/vega-calendar/slimmers/common/helpers/test/calendarEventRepeatPatternFactory.test.d.ts +1 -0
  168. package/dist/types/components/vega-calendar/slimmers/day-view/renderers/vega-calendar-view-with-time-renderer.d.ts +8 -0
  169. package/dist/types/components/vega-calendar/slimmers/month-view/renderers/vega-calendar-month-view-renderer.d.ts +23 -0
  170. package/dist/types/components/vega-calendar/types.d.ts +14 -2
  171. package/dist/types/components/vega-calendar/vega-calendar.d.ts +15 -3
  172. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-appender-controller.d.ts +0 -1
  173. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-children-controller.d.ts +4 -0
  174. package/dist/types/components/vega-dropdown/slimmers/controllers/vega-dropdown-scrollable-controller.d.ts +57 -0
  175. package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-list-renderer.d.ts +7 -17
  176. package/dist/types/components/vega-dropdown/slimmers/renderers/vega-dropdown-renderer.d.ts +3 -0
  177. package/dist/types/components/vega-dropdown/vega-dropdown.d.ts +2 -1
  178. package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-dropdown-controller.d.ts +2 -0
  179. package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-items-slot-controler.d.ts +19 -0
  180. package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-source-controller.d.ts +11 -1
  181. package/dist/types/components/vega-input-select/slimmers/controllers/vega-input-select-value-controller.d.ts +1 -1
  182. package/dist/types/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.d.ts +6 -0
  183. package/dist/types/components/vega-input-select/vega-input-select.d.ts +2 -0
  184. package/dist/types/components.d.ts +17 -1
  185. package/dist/types/constants/ui.d.ts +1 -1
  186. package/dist/types/helpers/calendar/calendar-date.d.ts +8 -0
  187. package/dist/types/helpers/calendar/calendar-event.d.ts +44 -2
  188. package/dist/types/helpers/calendar/calendar-period/calendar-period.abstract.d.ts +10 -2
  189. package/dist/types/helpers/calendar/calendar-period/day-period.d.ts +1 -0
  190. package/dist/types/helpers/calendar/calendar-period/month-period.d.ts +12 -0
  191. package/dist/types/helpers/calendar/calendar-period/week-period.d.ts +1 -0
  192. package/dist/types/helpers/event-manager/eventID/vegaEventId.d.ts +1 -1
  193. package/dist/types/helpers/event-manager/eventID/vegaInternalEventId.d.ts +1 -0
  194. package/dist/types/helpers/slimmers/sub-state/subStateObserverSlimmer.d.ts +9 -0
  195. package/dist/types/types/components.type.d.ts +1 -0
  196. package/dist/vega/index.esm.js +1 -1
  197. package/dist/vega/{p-0f88130f.entry.js → p-0ef3d3fd.entry.js} +1 -1
  198. package/dist/vega/p-1080d80a.js +1 -0
  199. package/dist/vega/{p-9d9f7c25.entry.js → p-154a3145.entry.js} +1 -1
  200. package/dist/vega/{p-cbb90cf6.entry.js → p-1bc3348e.entry.js} +1 -1
  201. package/dist/vega/{p-86d3e5eb.entry.js → p-255aa39b.entry.js} +1 -1
  202. package/dist/vega/p-29654e12.entry.js +1 -0
  203. package/dist/vega/{p-77b39fe7.entry.js → p-2f905e6f.entry.js} +1 -1
  204. package/dist/vega/p-3490dd8a.entry.js +1 -0
  205. package/dist/vega/p-3fee5d7e.entry.js +1 -0
  206. package/dist/vega/p-44f4924b.js +1 -0
  207. package/dist/vega/p-4546cd3d.entry.js +1 -0
  208. package/dist/vega/{p-77ff7c72.js → p-5141bcac.js} +1 -1
  209. package/dist/vega/{p-16608c5a.js → p-51e2c836.js} +1 -1
  210. package/dist/vega/{p-d7cb0227.entry.js → p-52bf3ce1.entry.js} +1 -1
  211. package/dist/vega/{p-cd05ab96.entry.js → p-5611cf4c.entry.js} +1 -1
  212. package/dist/vega/{p-40db8b33.entry.js → p-5e3f5e8e.entry.js} +1 -1
  213. package/dist/vega/p-642d58ff.js +1 -0
  214. package/dist/vega/{p-9b5e858e.entry.js → p-6470d034.entry.js} +1 -1
  215. package/dist/vega/{p-8e63fc54.entry.js → p-6877dc17.entry.js} +1 -1
  216. package/dist/vega/{p-1dfddf03.entry.js → p-69cf5269.entry.js} +1 -1
  217. package/dist/vega/{p-21675b8e.entry.js → p-70af1334.entry.js} +1 -1
  218. package/dist/vega/{p-bd1bc019.entry.js → p-7115c145.entry.js} +1 -1
  219. package/dist/vega/{p-7d22c459.entry.js → p-795927c4.entry.js} +1 -1
  220. package/dist/vega/{p-6ad96891.entry.js → p-7c1d2dcf.entry.js} +1 -1
  221. package/dist/vega/p-7f9cb4c0.entry.js +1 -0
  222. package/dist/vega/p-82fd348b.entry.js +1 -0
  223. package/dist/vega/p-8543f9c3.entry.js +1 -0
  224. package/dist/vega/{p-12e93c00.entry.js → p-8771bf66.entry.js} +1 -1
  225. package/dist/vega/{p-84787f59.entry.js → p-88cf7e56.entry.js} +1 -1
  226. package/dist/vega/{p-d7f7e2df.entry.js → p-8e7d6700.entry.js} +1 -1
  227. package/dist/vega/p-9119ad95.entry.js +1 -0
  228. package/dist/vega/p-9799f3d8.entry.js +1 -0
  229. package/dist/vega/{p-61c96c79.entry.js → p-a6c43909.entry.js} +1 -1
  230. package/dist/vega/{p-ceb5067a.entry.js → p-b23ad436.entry.js} +1 -1
  231. package/dist/vega/{p-c8e1b56d.entry.js → p-b570e6c7.entry.js} +1 -1
  232. package/dist/vega/{p-ba37eaad.entry.js → p-b6f68efd.entry.js} +1 -1
  233. package/dist/vega/{p-25f60a0b.entry.js → p-b8a47375.entry.js} +1 -1
  234. package/dist/vega/{p-7fd253e0.entry.js → p-b8d45e28.entry.js} +1 -1
  235. package/dist/vega/{p-9e5f7b82.js → p-bba06111.js} +1 -1
  236. package/dist/vega/{p-2066e3eb.entry.js → p-c1401fab.entry.js} +1 -1
  237. package/dist/vega/{p-a9f61d9e.entry.js → p-cafe75e8.entry.js} +1 -1
  238. package/dist/vega/{p-7d9934ee.entry.js → p-cf40587e.entry.js} +1 -1
  239. package/dist/vega/{p-7706a169.js → p-d126407a.js} +1 -1
  240. package/dist/vega/{p-fb34de30.entry.js → p-e373bc4d.entry.js} +1 -1
  241. package/dist/vega/p-eacf64be.js +1 -0
  242. package/dist/vega/{p-1d628d23.entry.js → p-ec4afdaa.entry.js} +1 -1
  243. package/dist/vega/{p-a9d3ea86.js → p-f0330fcc.js} +1 -1
  244. package/dist/vega/{p-c0ca1a1c.entry.js → p-f8a97354.entry.js} +1 -1
  245. package/dist/vega/{p-f5d3d49f.entry.js → p-f96ee751.entry.js} +1 -1
  246. package/dist/vega/vega.esm.js +1 -1
  247. package/package.json +1 -1
  248. package/dist/vega/p-1092a8ce.entry.js +0 -1
  249. package/dist/vega/p-43515fe4.entry.js +0 -1
  250. package/dist/vega/p-592e755b.entry.js +0 -1
  251. package/dist/vega/p-76265c0e.entry.js +0 -1
  252. package/dist/vega/p-9316cd6d.entry.js +0 -1
  253. package/dist/vega/p-a9c3e9fd.js +0 -1
  254. package/dist/vega/p-aae8855d.js +0 -1
  255. package/dist/vega/p-bb845e70.entry.js +0 -1
  256. package/dist/vega/p-c47d4933.js +0 -1
  257. package/dist/vega/p-c9f922bf.entry.js +0 -1
  258. package/dist/vega/p-ca1fae74.entry.js +0 -1
  259. package/dist/vega/p-eb461dad.entry.js +0 -1
  260. package/dist/vega/p-f1d8fd1c.js +0 -1
@@ -25,5 +25,6 @@ const VegaInternalLeftNavLinkClick = new VegaInternalEventID('leftNavLinkClick')
25
25
  const VegaInternalSubStatePull = new VegaInternalEventID('subStatePull');
26
26
  const VegaInternalSubStatePush = new VegaInternalEventID('subStatePush');
27
27
  const VegaInternalCalendarMonthEventsChange = new VegaInternalEventID('monthEventsChange');
28
+ const VegaInternalDropdownTemplateItemsChange = new VegaInternalEventID('dropdownTemplateItemsChange');
28
29
 
29
- export { VegaInternalFieldErrorStateChange as V, VegaInternalValid as a, VegaInternalVirtualScrollToBottom as b, VegaInternalButtonGroupClick as c, VegaInternalSubStatePull as d, VegaInternalSubStatePush as e, VegaInternalCalendarMonthEventsChange as f, VegaInternalLeftNavLinkClick as g };
30
+ export { VegaInternalFieldErrorStateChange as V, VegaInternalValid as a, VegaInternalDropdownTemplateItemsChange as b, VegaInternalVirtualScrollToBottom as c, VegaInternalButtonGroupClick as d, VegaInternalSubStatePull as e, VegaInternalSubStatePush as f, VegaInternalCalendarMonthEventsChange as g, VegaInternalLeftNavLinkClick as h };
@@ -0,0 +1,13 @@
1
+ import { VegaSlimmer } from '../../../../vega-slimmer/vega-slimmer-core';
2
+ import { VegaButton } from '../../vega-button';
3
+ import { Nullable } from '../../../../types/general';
4
+ /** This code snippet defines a TypeScript class named `VegaButtonLoadingRenderer` that extends `VegaSlimmer`. It includes several class properties (`loading`, `loadingMode`, `size`, `danger`) that are mapped to fields of a `VegaButton` component. The `render` method of this class is responsible for rendering a loading indicator component (`vega-loading-indicator`) based on the values of the class properties. */
5
+ export declare class VegaButtonLoadingRenderer extends VegaSlimmer {
6
+ protected loading: VegaButton['loading'];
7
+ /**
8
+ * renders a loading indicator component based on the values of certain properties (`loading`) of the class instance.
9
+ *
10
+ * @returns {Nullable<HTMLVegaLoadingIndicatorElement>} Loading element if the property loading set to true
11
+ */
12
+ render(): Nullable<HTMLVegaLoadingIndicatorElement>;
13
+ }
@@ -7,6 +7,7 @@ import { PageResizeObserverSlimmer } from '../../helpers/slimmers/pageResizeObse
7
7
  import { EventEmitSlimmerBase } from '../../helpers/event-manager/slimmers/eventEmitSlimmer';
8
8
  import { ChildNodesEventPreventSlimmer } from '../../helpers/event-manager/slimmers/childNodesEventPreventSlimmer';
9
9
  import { VegaComponentUsageRuntimeMetricsSlimmer } from '../../helpers/slimmers/componentUsageRuntimeMetrics';
10
+ import { VegaButtonLoadingRenderer } from './slimmers/renderers/vega-button-loading-renderer';
10
11
  export declare class VegaButton {
11
12
  protected readonly globalSlimmers: GlobalSlimmers;
12
13
  /**
@@ -17,6 +18,7 @@ export declare class VegaButton {
17
18
  protected clickEventEmitter: EventEmitSlimmerBase;
18
19
  protected eventPrevent: ChildNodesEventPreventSlimmer;
19
20
  protected vegaComponentUsageRuntimeMetricsSlimmer: VegaComponentUsageRuntimeMetricsSlimmer<HTMLVegaButtonElement>;
21
+ protected vegaButtonLoadingRenderer: VegaButtonLoadingRenderer;
20
22
  host: HTMLVegaButtonElement;
21
23
  currentBreakpoint: BreakpointsTokenType;
22
24
  /**
@@ -62,6 +64,12 @@ export declare class VegaButton {
62
64
  * form submission and data reset.
63
65
  */
64
66
  type: VegaButtonType;
67
+ /**
68
+ * Specifies whether the button is in a loading state. When `true`,
69
+ * the button is disabled and an indeterminate loading indicator
70
+ * is displayed within the button.
71
+ */
72
+ loading: boolean;
65
73
  /**
66
74
  * An event emitter notifying the click event of the button.
67
75
  */
@@ -78,4 +86,12 @@ export declare class VegaButton {
78
86
  private renderLabel;
79
87
  private renderIcon;
80
88
  private handleClick;
89
+ /**
90
+ * The function `isDisabledButton` returns true if either the `disabled` or `loading` property is true.
91
+ *
92
+ * @returns {boolean} The method `isDisabledButton()` is returning a boolean value, which is determined by the
93
+ * logical OR operation between `this.disabled` and `this.loading`. If either `this.disabled` or
94
+ * `this.loading` is true, the method will return `true`, indicating that the button is disabled.
95
+ */
96
+ private isDisabledButton;
81
97
  }
@@ -1,6 +1,6 @@
1
1
  import { VegaSlimmer } from '../../../../../vega-slimmer/vega-slimmer-core';
2
2
  import { VegaCalendar } from '../../../vega-calendar';
3
- import { CalendarPeriod } from '../../../../../helpers/calendar';
3
+ import { CalendarDate, CalendarPeriod } from '../../../../../helpers/calendar';
4
4
  import { VegaCalendarViewModeType } from '../../../types';
5
5
  /** This TypeScript class `VegaCalendarCurrentPeriodController` updates the current period based on the view mode in a calendar component. */
6
6
  export declare class VegaCalendarCurrentPeriodController extends VegaSlimmer {
@@ -13,6 +13,13 @@ export declare class VegaCalendarCurrentPeriodController extends VegaSlimmer {
13
13
  * @param {CalendarPeriod} newPeriod new value
14
14
  */
15
15
  setCurrentPeriod(newPeriod: CalendarPeriod): void;
16
+ /**
17
+ * set new current period by the view mode and the current date
18
+ *
19
+ * @param {VegaCalendarViewModeType} viewMode view mode value
20
+ * @param {CalendarDate} date current date
21
+ */
22
+ updateCalendarPeriod(viewMode: VegaCalendarViewModeType, date: CalendarDate): void;
16
23
  /**
17
24
  * default current period is month period, re-create period if the default view mode is not month
18
25
  * set default calendar view
@@ -20,8 +27,11 @@ export declare class VegaCalendarCurrentPeriodController extends VegaSlimmer {
20
27
  protected initialCurrentPeriod(): void;
21
28
  /**
22
29
  * emit period change event
30
+ *
31
+ * @param {CalendarPeriod} newValue the new calendar period
32
+ * @param {CalendarPeriod} oldValue the prev calendar period
23
33
  */
24
- protected emitChangeEvent(): void;
34
+ protected emitChangeEvent(newValue: CalendarPeriod, oldValue: CalendarPeriod): void;
25
35
  /**
26
36
  * update the current period when view mode change
27
37
  *
@@ -35,11 +45,4 @@ export declare class VegaCalendarCurrentPeriodController extends VegaSlimmer {
35
45
  * start date and end date.
36
46
  */
37
47
  private getCurrentPeriodSummary;
38
- /**
39
- * set new current period by the view mode and the current date
40
- *
41
- * @param {VegaCalendarViewModeType} viewMode view mode value
42
- * @param {CalendarDate} date current date
43
- */
44
- private initCalendarPeriod;
45
48
  }
@@ -6,7 +6,9 @@ import { CalendarDate } from '../../../../../helpers/calendar';
6
6
  /** The `VegaCalendarEventController` class in TypeScript manages calendar events, initializes event layouts, retrieves events for the current date, and checks if a date falls within the range of a calendar event. */
7
7
  export declare class VegaCalendarEventController extends VegaSlimmer {
8
8
  protected calendarEvents: VegaCalendar['calendarEvents'];
9
+ protected currentPeriod: VegaCalendar['currentPeriod'];
9
10
  protected events: VegaCalendar['events'];
11
+ private repeatEventMap;
10
12
  /**
11
13
  * The function `getCurrentDateEvent` returns an array of calendar events for the current date, including both normal events and group events.
12
14
  *
@@ -33,4 +35,22 @@ export declare class VegaCalendarEventController extends VegaSlimmer {
33
35
  * @param {VegaCalendarRawEvent[]} newEvents new event options array
34
36
  */
35
37
  private initCalendarEvents;
38
+ /**
39
+ * We need generate new calendar event from the full-day repeat calendar event, so we can render those event as normal full-day event
40
+ *
41
+ * @returns {CalendarEvent[]} The `handleRepeatEvents` method returns an array of `CalendarEvent` objects.
42
+ */
43
+ private createRepeatEvents;
44
+ /**
45
+ * This function generates a calendar event based on a repeat series and stores it in a map to avoid duplicate creation.
46
+ *
47
+ * @param {CalendarEvent} calendarEvent - The `calendarEvent` parameter represents a single event on
48
+ * a calendar. It contains information such as the event's start date, end date, and other details.
49
+ * @param {CalendarDate} series - The repeat start date
50
+ * @returns {CalendarEvent} The function `generateCalendarEventByRepeatSeries` returns a `CalendarEvent` object. If
51
+ * the event key already exists in the `repeatEventMap`, it returns the corresponding `CalendarEvent`
52
+ * object from the map. Otherwise, it creates a new `CalendarEvent` object based on the input
53
+ * `calendarEvent` and `series` parameters, adds it to the `repeatEventMap`, and then
54
+ */
55
+ private generateCalendarEventByRepeatSeries;
36
56
  }
@@ -1,35 +1,31 @@
1
1
  import { VegaSlimmer } from '../../../../../vega-slimmer/vega-slimmer-core';
2
2
  import { VegaCalendar } from '../../../vega-calendar';
3
- import { VegaCalendarViewModeType } from '../../../types';
3
+ import { CalendarPeriod } from '../../../../../helpers/calendar';
4
4
  /** The `VegaCalendarViewController` class manages the calendar view based on the current period and view mode in TypeScript. */
5
5
  export declare class VegaCalendarViewController extends VegaSlimmer {
6
6
  calendarView: VegaCalendar['calendarView'];
7
- viewMode: VegaCalendar['viewMode'];
8
7
  currentPeriod: VegaCalendar['currentPeriod'];
9
8
  currentPeriodController: VegaCalendar['currentPeriodController'];
10
9
  private monthViewGenerator;
11
10
  private weekViewGenerator;
12
11
  private dayViewGenerator;
13
- /**
14
- * Update the view mode by param
15
- *
16
- * @param {VegaCalendarViewModeType} viewMode view mode string
17
- */
18
- setViewMode(viewMode: VegaCalendarViewModeType): void;
19
12
  /**
20
13
  * set default calendar view
21
14
  */
22
15
  protected initialCalendarView(): void;
23
16
  /**
24
17
  * generator new calendar view if the calendar current period changes
18
+ *
19
+ * @param {CalendarPeriod} newValue the new calendar period
25
20
  */
26
- protected generateCalendarView(): void;
21
+ protected generateCalendarView(newValue: CalendarPeriod): void;
27
22
  /**
28
- * The function `getCalendarViewByViewMode` returns a specific calendar view based on the current view mode.
23
+ * The function `getCalendarViewByPeriod` returns a specific calendar view based on the current period.
29
24
  *
30
- * @returns {CalendarView} get the match calendar view by the view mode
25
+ * @param {CalendarPeriod} newPeriod the new period
26
+ * @returns {CalendarView} get the match calendar view by the period
31
27
  */
32
- private getCalendarViewByViewMode;
28
+ private getCalendarViewByPeriod;
33
29
  /**
34
30
  * update the calendar view
35
31
  *
@@ -0,0 +1,50 @@
1
+ import { CalendarDate, CalendarPeriod } from '../../../../../../helpers/calendar';
2
+ import { Nullable } from '../../../../../../types/general';
3
+ /** The above code defines an abstract class `CalendarEventBaseRepeatPattern` in TypeScript that represents a repeat pattern for calendar events. Here is a summary of what the code is doing: */
4
+ export declare abstract class CalendarEventBaseRepeatPattern {
5
+ protected static daySeconds: number;
6
+ protected repeatStartDate: CalendarDate;
7
+ protected interval: number;
8
+ protected count: Nullable<number>;
9
+ protected until: Nullable<CalendarDate>;
10
+ protected cache: (CalendarDate | CalendarDate[])[];
11
+ /**
12
+ * The constructor initializes the current date for a given date range and interval.
13
+ *
14
+ * @param {CalendarDate} repeatStartDate - The `repeatStartDate` parameter represents the starting date of a
15
+ * calendar event or interval. It is of type `CalendarDate`, which likely contains information such as
16
+ * the year, month, and day of the event.
17
+ * @param {number} interval - The `interval` parameter represents the frequency at which the event
18
+ * occurs. For example, if the interval is set to 2, it means the event occurs every 2 units of time
19
+ * (e.g., every 2 days, weeks, months, etc.).
20
+ * @param {Nullable<number>} count - The `count` parameter specifies the number of occurrences of the event. If `count`
21
+ * is provided, the event will repeat `count` times within the specified interval. If `count` is
22
+ * `null`, the event will repeat indefinitely until the `until` date is reached.
23
+ * @param {Nullable<CalendarDate>} until - The `until` parameter in the constructor represents a date until which the recurring
24
+ * event will occur. If this date is reached, the recurring event will stop.
25
+ */
26
+ constructor(repeatStartDate: CalendarDate, interval: number, count: Nullable<number>, until: Nullable<CalendarDate>);
27
+ /**
28
+ * The function `getRepeatSeries` retrieves a series of repeated events within a specified calendar period.
29
+ *
30
+ * @param {CalendarPeriod} period - The `period` parameter in the `getRepeatSeries` method represents
31
+ * a specific time period in the form of a `CalendarPeriod` object. This object typically contains a
32
+ * `startDate` and an `endDate`, which define the range of dates for which you want to generate repeat series.
33
+ * @param {number} eventSpansDays - the current repeat series cross days, default value is one
34
+ * @returns {CalendarDate[]} repeat start date array
35
+ */
36
+ getRepeatSeries(period: CalendarPeriod, eventSpansDays?: number): CalendarDate[];
37
+ /**
38
+ * The function `isSeriesInPeriod` checks if a series of dates falls within a specified date range.
39
+ *
40
+ * @param {CalendarDate} series - The `series` parameter represents a specific date in the form of a
41
+ * `CalendarDate` object.
42
+ * @param {number} seriesSpansDays - The `seriesSpansDays` parameter represents the number of days
43
+ * that the series spans. It is used to calculate the end date of the series based on the start date.
44
+ * @param {CalendarPeriod} period - Date period
45
+ * @returns {boolean} a boolean value indicating whether the given series falls within the specified date
46
+ * range.
47
+ */
48
+ protected isSeriesInPeriod(series: CalendarDate, seriesSpansDays: number, period: CalendarPeriod): boolean;
49
+ protected abstract generateRepeatDateCacheUntilEndDate(date: CalendarDate): void;
50
+ }
@@ -0,0 +1,43 @@
1
+ import { CalendarDate } from '../../../../../../helpers/calendar';
2
+ import { Nullable } from '../../../../../../types/general';
3
+ import { CalendarEventBaseRepeatPattern } from './baseRepeatPattern';
4
+ /** The `CalendarEventDailyRepeatPattern` class in TypeScript represents a daily repeating pattern for calendar events. */
5
+ export declare class CalendarEventDailyRepeatPattern extends CalendarEventBaseRepeatPattern {
6
+ /**
7
+ * The constructor initializes the current date for a given date range and interval.
8
+ *
9
+ * @param {CalendarDate} startDate - The `startDate` parameter is of type `CalendarDate` and represents the starting date for a specific interval or range.
10
+ * @param {number} interval - The `interval` parameter represents the frequency at which the event
11
+ * occurs. For example, if the interval is set to 1, it means the event occurs every day. If the
12
+ * interval is set to 2, it means the event occurs every other day.
13
+ * @param {Nullable<number>} count - The `count` parameter specifies the number of occurrences of the event. If `count`
14
+ * is provided, the event will repeat `count` times within the specified interval. If `count` is
15
+ * `null`, the event will repeat indefinitely until the `until` date is reached.
16
+ * @param {Nullable<CalendarDate>} until - The `until` parameter in the constructor is of type `Nullable<CalendarDate>`, which
17
+ * means it can either accept a `CalendarDate` object or be `null`. This parameter is used to specify
18
+ * a date until which the recurring event should repeat. If `until` is provided, the event
19
+ */
20
+ constructor(startDate: CalendarDate, interval: number, count: Nullable<number>, until: Nullable<CalendarDate>);
21
+ /**
22
+ * The function generates and caches repeated dates before a specified end date.
23
+ *
24
+ * @param {CalendarDate} endDate - The `endDate` parameter represents the date until which you want to
25
+ * generate repeat dates in the cache. The function `generateRepeatDateCacheBeforeEndDate` is
26
+ * responsible for populating the cache with repeat dates until the specified `endDate`. It checks the
27
+ * last date in the cache and generates subsequent repeat dates until
28
+ */
29
+ protected generateRepeatDateCacheUntilEndDate(endDate: CalendarDate): void;
30
+ /**
31
+ * The function `initCache` initializes a cache array with the `startDate` value.
32
+ */
33
+ private initCache;
34
+ /**
35
+ * The function getNextRepeatStartDate calculates the next repeat start date based on a given date and certain conditions.
36
+ *
37
+ * @param {CalendarDate} date - The `date` parameter represents the current date for which you want to
38
+ * calculate the next repeat start date. It is an instance of the `CalendarDate` class.
39
+ * @returns {Nullable<CalendarDate>} The function `getNextRepeatStartDate` returns either a `CalendarDate` object if certain
40
+ * conditions are met, or `null` if the conditions are not met.
41
+ */
42
+ private getNextRepeatStartDate;
43
+ }
@@ -0,0 +1,55 @@
1
+ import { CalendarDate } from '../../../../../../helpers/calendar';
2
+ import { Nullable } from '../../../../../../types/general';
3
+ import { CalendarEventBaseRepeatPattern } from './baseRepeatPattern';
4
+ /** The `CalendarEventMonthlyRepeatPattern` class in TypeScript represents a monthly repeat pattern for calendar events. */
5
+ export declare class CalendarEventMonthlyRepeatPattern extends CalendarEventBaseRepeatPattern {
6
+ private byMonthDay;
7
+ /**
8
+ * The constructor initializes the event with specified start and end dates, interval, count, and until date, and sets the byMonthDay property to the start date's day.
9
+ *
10
+ * @param {CalendarDate} startDate - The `startDate` parameter represents the starting date of the
11
+ * event or interval. It is of type `CalendarDate`, which likely includes the year, month, and day
12
+ * components of the date.
13
+ * @param {number} interval - The `interval` parameter specifies the frequency of the recurring
14
+ * events. For example, if the interval is set to 2, the event will occur every 2 units of time (days,
15
+ * weeks, months, etc.).
16
+ * @param {Nullable<number>} count - The `count` parameter specifies the number of occurrences of the event. If `count`
17
+ * is provided, the event will repeat `count` times within the specified interval. If `count` is not
18
+ * provided (or is `null`), the event will repeat indefinitely based on the other parameters like `
19
+ * @param {Nullable<CalendarDate>} until - The `until` parameter is a nullable `CalendarDate` that specifies the end date for
20
+ * the recurring event. If provided, the event will repeat until this date. If not provided, the event
21
+ * will repeat indefinitely based on the other parameters like `count` or `endDate`.
22
+ */
23
+ constructor(startDate: CalendarDate, interval: number, count: Nullable<number>, until: Nullable<CalendarDate>);
24
+ /**
25
+ * This function generates and caches repeated dates before a specified end date.
26
+ *
27
+ * @param {CalendarDate} endDate - The `endDate` parameter in the
28
+ * `generateRepeatDateCacheUntilEndDate` function is a CalendarDate object that represents the end
29
+ * date until which the repeat dates need to be generated and cached. The function checks if the last
30
+ * cached date is before the `endDate` and generates additional repeat dates until it reaches
31
+ */
32
+ protected generateRepeatDateCacheUntilEndDate(endDate: CalendarDate): void;
33
+ /**
34
+ * The function `initCache` initializes a cache array with the startDate value.
35
+ */
36
+ private initCache;
37
+ /**
38
+ * The getNextRepeatStartDate function calculates the next start date based on a given date and interval, considering constraints such as end date and count limit.
39
+ *
40
+ * @param {CalendarDate} date - The `date` parameter represents the current date for which you want to
41
+ * calculate the next repeat start date. It is of type `CalendarDate`.
42
+ * @returns {Nullable<CalendarDate>} The function `getNextRepeatStartDate` returns a nullable `CalendarDate`. It either returns
43
+ * the next calculated `CalendarDate` based on the input date and interval, or it returns `null` if
44
+ * certain conditions are met (such as reaching the specified end date or count limit).
45
+ */
46
+ private getNextRepeatStartDate;
47
+ /**
48
+ * get the new date with fixed date, if the date.getDate() not equal the fixed date, find the next month
49
+ *
50
+ * @param {number} year year
51
+ * @param {number} month month
52
+ * @returns {Date} the new date
53
+ */
54
+ private getNextStartDate;
55
+ }
@@ -0,0 +1,34 @@
1
+ import { VegaCalendarEventRepeatOptions } from '../../../../types';
2
+ import { CalendarEventBaseRepeatPattern } from '../repeatPattern/baseRepeatPattern';
3
+ /** This code snippet defines a TypeScript class `CalendarEventRepeatPatternFactory` that serves as a factory for creating different types of repeat patterns for calendar events. Here's a breakdown of what the class and its methods are doing: */
4
+ declare class CalendarEventRepeatPatternFactory {
5
+ /**
6
+ * This `getPattern` method within the `CalendarEventRepeatPatternFactory` class is a public method that is responsible for creating and returning a specific type of repeat pattern for a calendar event based on the input parameters provided. Here's a breakdown of what this method is doing:
7
+ *
8
+ * @param {Date} startDate repeat start date
9
+ * @param {VegaCalendarEventRepeatOptions|undefined} repeatOptions repeat options
10
+ * @returns {CalendarEventBaseRepeatPattern} the match repeat pattern
11
+ */
12
+ getPattern(startDate: Date, repeatOptions: VegaCalendarEventRepeatOptions): CalendarEventBaseRepeatPattern;
13
+ /**
14
+ * The `initDate` function initializes a `CalendarDate` object based on the input date string or Date object provided.
15
+ *
16
+ * @param {Nullable<string | Date>} date - The `date` parameter can be either a string or a Date object.
17
+ * @returns {Nullable<CalendarDate>} The function `initDate` returns a `Nullable<CalendarDate>`, which means it can return either a `CalendarDate` object or `null`.
18
+ */
19
+ private initDate;
20
+ /**
21
+ * The function `initRepeatPattern` initializes a repeat pattern based on the frequency specified for a calendar event.
22
+ *
23
+ * @param {VegaCalendarEventRepeatType} frequency event frequency
24
+ * @param {CalendarDate} repeatStartDate event start date
25
+ * @param {number} interval event repeat interval
26
+ * @param {Nullable<number>} count the event repeat count
27
+ * @param {Nullable<CalendarDate>} repeatEndDate repeat end date
28
+ * @param {Nullable<VegaCalendarWeekDayType[]>} byWeekDay weekly week days
29
+ * @returns {CalendarEventBaseRepeatPattern} calendar event repeat pattern instance
30
+ */
31
+ private initRepeatPattern;
32
+ }
33
+ declare const _default: CalendarEventRepeatPatternFactory;
34
+ export default _default;
@@ -0,0 +1,99 @@
1
+ import { CalendarDate, CalendarPeriod } from '../../../../../../helpers/calendar';
2
+ import { Nullable } from '../../../../../../types/general';
3
+ import { VegaCalendarWeekDayType } from '../../../../types';
4
+ import { CalendarEventBaseRepeatPattern } from './baseRepeatPattern';
5
+ /** The `CalendarEventWeeklyRepeatPattern` class in TypeScript represents a weekly repeat pattern for calendar events, allowing for matching dates based on specific weekdays and generating future dates with optional constraints. */
6
+ export declare class CalendarEventWeeklyRepeatPattern extends CalendarEventBaseRepeatPattern {
7
+ private static weekDay;
8
+ private byWeekDay;
9
+ /**
10
+ * This TypeScript constructor initializes a calendar date range with specified parameters including start date, end date, interval, count, until date, and an array of week days.
11
+ *
12
+ * @param {CalendarDate} startDate - The `startDate` parameter represents the starting date of the
13
+ * calendar event or schedule. It is of type `CalendarDate`, which likely includes the year, month, and day components of a date.
14
+ * @param {number} interval - The `interval` parameter represents the frequency of the recurrence. For
15
+ * example, if `interval` is set to 1, the event will occur every week. If it's set to 2, the event
16
+ * will occur every two weeks.
17
+ * @param {Nullable<number>} count - The `count` parameter specifies the number of occurrences of the rule. If `count` is
18
+ * provided, the recurrence will generate at most that many occurrences. If `count` is not provided,
19
+ * the recurrence will continue indefinitely based on other parameters like `endDate` or `until`.
20
+ * @param {Nullable<CalendarDate>} until - The `until` parameter specifies the end date for the recurrence rule. If provided,
21
+ * the recurrence will continue until this date. If not provided, the recurrence will continue
22
+ * indefinitely based on other parameters like `count` or `interval`.
23
+ * @param {Nullable<VegaCalendarWeekDayType[]>} byWeekDay - The `byWeekDay` parameter is an array of
24
+ * `VegaCalendarWeekDayType` values, which represent the days of the week for which the event should occur.
25
+ */
26
+ constructor(startDate: CalendarDate, interval: number, count: Nullable<number>, until: Nullable<CalendarDate>, byWeekDay: Nullable<VegaCalendarWeekDayType[]>);
27
+ /**
28
+ * The function `getRepeatSeries` retrieves a series of repeated events within a specified calendar period.
29
+ *
30
+ * @param {CalendarPeriod} period - The `period` parameter in the `getRepeatSeries` method represents
31
+ * a specific time period in the form of a `CalendarPeriod` object. This object typically contains a
32
+ * `startDate` and an `endDate`, which define the range of dates for which you want to generate repeat series.
33
+ * @param {number} eventSpansDays - the current repeat series cross days, default value is one
34
+ * @returns {CalendarDate[]} repeat start date array
35
+ */
36
+ getRepeatSeries(period: CalendarPeriod, eventSpansDays?: number): CalendarDate[];
37
+ /**
38
+ * This function generates repeated dates and caches them until a specified end date.
39
+ *
40
+ * @param {CalendarDate} endDate - The `endDate` parameter is a `CalendarDate` object that represents
41
+ * the date until which the repeat date cache needs to be generated. The function
42
+ * `generateRepeatDateCacheUntilEndDate` generates repeat dates until this specified end date.
43
+ */
44
+ protected generateRepeatDateCacheUntilEndDate(endDate: CalendarDate): void;
45
+ /**
46
+ * The function getNextRepeatStartDate calculates the next start dates based on a given array of CalendarDate objects and returns them if certain conditions are met.
47
+ *
48
+ * @param {CalendarDate[]} dates - The `dates` parameter is an array of `CalendarDate` objects.
49
+ * @returns {Nullable<CalendarDate[]>} The `getNextRepeatStartDate` function returns a nullable array of `CalendarDate` objects.
50
+ * If there are no next dates available or if the cache count exceeds a specified limit, it returns
51
+ * `null`. Otherwise, it returns an array of `CalendarDate` objects representing the next start dates.
52
+ */
53
+ private getNextRepeatStartDate;
54
+ /**
55
+ * The function `getNextStartDates` takes an array of `CalendarDate` objects, calculates the next dates based on a specified interval, and filters out dates that are after a specified end date.
56
+ *
57
+ * @param {CalendarDate[]} dates - The `dates` parameter is an array of `CalendarDate` objects
58
+ * representing specific dates in a calendar. Each `CalendarDate` object has properties for the year,
59
+ * month, and date.
60
+ * @returns {Date[]} The `getNextStartDates` function returns an array of `Date` objects representing the next
61
+ * start dates based on the input `CalendarDate` array. The function calculates the next start dates
62
+ * by adding a specific interval (multiplied by 7 to represent weeks) to each date in the input array.
63
+ * Finally, it filters out any dates that are after a specified `until` date, if provided.
64
+ */
65
+ private getNextStartDates;
66
+ /**
67
+ * The `initCache` function initializes a cache of calendar dates based on the start date and weekly repeat pattern.
68
+ */
69
+ private initCache;
70
+ /**
71
+ * The function `sortWeekDay` sorts an array of week days based on their position in a predefined list.
72
+ *
73
+ * @param {boolean} weekDay - The `weekDay` parameter is an array of week day values that need to be sorted in a
74
+ * specific order. The function `sortWeekDay` takes this array and sorts it based on a predefined
75
+ * order specified in `CalendarEventWeeklyRepeatPattern.weekDay`.
76
+ * @returns {VegaCalendarWeekDayType[]} The `sortWeekDay` function is returning the `weekDay` array sorted based on the index of
77
+ * each `VegaCalendarWeekDayType` item in the `CalendarEventWeeklyRepeatPattern.weekDay` array.
78
+ */
79
+ private sortWeekDay;
80
+ /**
81
+ * This function returns the index of the current day in a week, with Sunday represented as 0.
82
+ *
83
+ * @param {CalendarDate} date - The `date` parameter in the `getCurrentDayIndex` function is of type
84
+ * `CalendarDate`, which is a custom data type representing a date in a calendar.
85
+ * @returns {number} The function `getCurrentDayIndex` returns the index of the current day in the week, with
86
+ * Sunday being represented as 0 and Saturday being represented as 6.
87
+ */
88
+ private getCurrentDayIndex;
89
+ /**
90
+ * The function `getValidCache` returns a filtered and concatenated array of CalendarDate objects from the cache based on a start date.
91
+ *
92
+ * @returns {CalendarDate[]} The `getValidCache` method returns an array of `CalendarDate` objects that meet the
93
+ * condition of having a date greater than or equal to the `startDate` property. The method first
94
+ * flattens a nested array of `CalendarDate` objects stored in the `cache` property, then filters out
95
+ * the `CalendarDate` objects that do not meet the condition, and finally concatenates the filtered
96
+ * array
97
+ */
98
+ private getValidCache;
99
+ }
@@ -0,0 +1,57 @@
1
+ import { CalendarDate } from '../../../../../../helpers/calendar';
2
+ import { Nullable } from '../../../../../../types/general';
3
+ import { CalendarEventBaseRepeatPattern } from './baseRepeatPattern';
4
+ /** The `CalendarEventYearlyRepeatPattern` class defines a yearly repeat pattern for calendar events, checking for matches and generating future dates based on specified criteria. */
5
+ export declare class CalendarEventYearlyRepeatPattern extends CalendarEventBaseRepeatPattern {
6
+ private matchMonth;
7
+ private matchDay;
8
+ /**
9
+ * The constructor initializes a new instance with specified start and end dates, interval, count, and until date.
10
+ *
11
+ * @param {CalendarDate} startDate - The `startDate` parameter is of type `CalendarDate` and
12
+ * represents the starting date of a calendar event or interval.
13
+ * @param {number} interval - The `interval` parameter represents the frequency at which the event
14
+ * occurs. For example, if the interval is set to 2, the event will occur every 2 units of time (days,
15
+ * weeks, months, etc.).
16
+ * @param {Nullable<number>} count - The `count` parameter specifies the number of occurrences of the event. If `count`
17
+ * is provided, the event will repeat `count` times within the specified interval. If `count` is not
18
+ * provided, the event will repeat indefinitely based on the other parameters like `endDate` or
19
+ * `until`.
20
+ * @param {Nullable<CalendarDate>} until - The `until` parameter in the constructor is of type `Nullable<CalendarDate>`. This
21
+ * means that it can either accept a `CalendarDate` object or be `null`. It is used to specify a date
22
+ * until which the recurring event should repeat. If `until` is provided, the event
23
+ */
24
+ constructor(startDate: CalendarDate, interval: number, count: Nullable<number>, until: Nullable<CalendarDate>);
25
+ /**
26
+ * The function generates repeat dates and caches them until reaching the specified end date.
27
+ *
28
+ * @param {CalendarDate} endDate - The `endDate` parameter in the
29
+ * `generateRepeatDateCacheUntilEndDate` function is a CalendarDate object that represents the date
30
+ * until which the repeat date cache should be generated. The function checks if the last date in the
31
+ * cache is before the `endDate`, and if so, it generates additional repeat dates
32
+ */
33
+ protected generateRepeatDateCacheUntilEndDate(endDate: CalendarDate): void;
34
+ /**
35
+ * The function getNextRepeatStartDate calculates the next repeat start date based on a given date and certain conditions.
36
+ *
37
+ * @param {CalendarDate} date - The `date` parameter represents the current date for which you want to
38
+ * calculate the next repeat start date. It is of type `CalendarDate`, which seems to be a custom
39
+ * class or structure that holds year, month, and day information.
40
+ * @returns {Nullable<CalendarDate>} The function `getNextRepeatStartDate` returns either a `CalendarDate` object or `null`
41
+ * based on certain conditions. If the next date exceeds the `until` date or the count limit has been
42
+ * reached, it returns `null`. Otherwise, it adds the next date to the cache and returns it as a
43
+ * `CalendarDate`.
44
+ */
45
+ private getNextRepeatStartDate;
46
+ /**
47
+ * get the new date with fixed month and fixed date, if the date.getDate() not equal the fixed date or fixed month, find the next year
48
+ *
49
+ * @param {number} year year
50
+ * @returns {Date} the new date
51
+ */
52
+ private getNextStartDate;
53
+ /**
54
+ * The function `initCache` initializes a cache array with the `startDate` value.
55
+ */
56
+ private initCache;
57
+ }
@@ -8,6 +8,7 @@ export declare class VegaCalendarViewWithTimeRenderer extends VegaSlimmer {
8
8
  protected dayViewFullDayEventRenderer: VegaCalendar['dayViewFullDayEventRenderer'];
9
9
  protected calendarView: VegaCalendar['calendarView'];
10
10
  protected calendarViewController: VegaCalendar['calendarViewController'];
11
+ protected dateDblClickEmitter: VegaCalendar['dateDblClickEmitter'];
11
12
  /**
12
13
  * The render function in TypeScript React returns an array of HTMLElements containing the week calendar view for a specific day.
13
14
  *
@@ -31,7 +32,14 @@ export declare class VegaCalendarViewWithTimeRenderer extends VegaSlimmer {
31
32
  /**
32
33
  * The function `renderHourBlock` returns an array of HTML elements representing hour blocks with time information.
33
34
  *
35
+ * @param {CalendarDate} calendarDate then current calendar date object
34
36
  * @returns {HTMLElement[]} An array of HTMLElements is being returned. Each HTMLElement represents an hour block with a time value inside a div element.
35
37
  */
36
38
  private renderHourBlock;
39
+ /**
40
+ * emit vega click event when click the date block
41
+ *
42
+ * @param {CalendarDate} calendarDate the calendar date object
43
+ */
44
+ private handleDateBlockClick;
37
45
  }
@@ -6,7 +6,9 @@ export declare class VegaCalendarMonthViewRenderer extends VegaSlimmer {
6
6
  protected calendarView: VegaCalendar['calendarView'];
7
7
  protected currentPeriod: VegaCalendar['currentPeriod'];
8
8
  protected calendarViewController: VegaCalendar['calendarViewController'];
9
+ protected currentPeriodController: VegaCalendar['currentPeriodController'];
9
10
  protected monthEventRenderer: VegaCalendar['monthEventRenderer'];
11
+ protected dateDblClickEmitter: VegaCalendar['dateDblClickEmitter'];
10
12
  /**
11
13
  * the HTML elements that represent the month view of a calendar component.
12
14
  *
@@ -26,4 +28,25 @@ export declare class VegaCalendarMonthViewRenderer extends VegaSlimmer {
26
28
  * @returns {HTMLElement} the date block element
27
29
  */
28
30
  private renderDateBlock;
31
+ /**
32
+ * switch to current date day view
33
+ *
34
+ * @param {MouseEvent} e the double click event object
35
+ * @param {CalendarDate} calendarDate the calendar date object
36
+ */
37
+ private goToCurrentDayView;
38
+ /**
39
+ * emit vega click event when click the date block
40
+ *
41
+ * @param {MouseEvent} e the mouse event object
42
+ * @param {CalendarDate} calendarDate the calendar date object
43
+ */
44
+ private handleDateBlockClick;
45
+ /**
46
+ * determine if the clicked element is blank area
47
+ *
48
+ * @param {HTMLElement} element the target element
49
+ * @returns {boolean} true or false
50
+ */
51
+ private isMonthBlockBlankArea;
29
52
  }
@@ -19,7 +19,7 @@ export type VegaCalendarChangeEventType = {
19
19
  viewMode: VegaCalendarViewModeType;
20
20
  };
21
21
 
22
- export type VegaCalendarEventRepeatType = 'none' | 'daily' | 'weekly' | 'monthly' | 'yearly';
22
+ export type VegaCalendarEventRepeatType = 'daily' | 'weekly' | 'monthly' | 'yearly';
23
23
 
24
24
  export type VegaCalendarEventVariantType = 'primary' | 'secondary' | 'tertiary';
25
25
 
@@ -32,15 +32,17 @@ export interface VegaCalendarRawEvent {
32
32
  startTime?: string;
33
33
  endTime?: string;
34
34
  isAllDay?: boolean;
35
- repeat?: VegaCalendarEventRepeatType;
36
35
  color?: string | BackgroundColorsTokenType;
37
36
  disabled?: boolean;
37
+ repeatOptions?: VegaCalendarEventRepeatOptions;
38
38
  }
39
39
 
40
40
  export type VegaCalendarEventClickInfo = {
41
41
  rawEvent: VegaCalendarRawEvent;
42
42
  };
43
43
 
44
+ export type VegaCalendarDateClickInfo = VegaCalendarDateType & { hour: number };
45
+
44
46
  export type VegaCalendarEventStyle = {
45
47
  position: 'absolute';
46
48
  left: string;
@@ -56,3 +58,13 @@ export type VegaCalendarFullDayEventView = {
56
58
  start: number;
57
59
  end: number;
58
60
  };
61
+
62
+ export type VegaCalendarWeekDayType = 'Sun' | 'Mon' | 'Tue' | 'Wed' | 'Thu' | 'Fri' | 'Sat';
63
+
64
+ export type VegaCalendarEventRepeatOptions = {
65
+ frequency: VegaCalendarEventRepeatType;
66
+ interval?: number;
67
+ count?: number;
68
+ until?: string | Date;
69
+ byWeekDay?: VegaCalendarWeekDayType[];
70
+ };