@onereach/ui-components 3.0.3 → 3.0.4-beta.2487.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 (234) hide show
  1. package/dist/bundled/v2/{OrCardCollection-6e29db50.js → OrCardCollection-a10920a3.js} +2 -2
  2. package/dist/bundled/v2/{OrConfirm-98d9a7b0.js → OrConfirm-d548aac0.js} +1 -1
  3. package/dist/bundled/v2/OrDateTimePicker-11b6d4dd.js +1179 -0
  4. package/dist/bundled/v2/{OrInput-900df60c.js → OrInput-ae333c94.js} +2 -2
  5. package/dist/bundled/v2/{OrInputBox-4d265915.js → OrInputBox-11b6ac9f.js} +1 -1
  6. package/dist/bundled/v2/{OrMenu-cbb0c2c8.js → OrMenu-0c2c348c.js} +6 -1
  7. package/dist/bundled/v2/{OrPagination-cf47d71c.js → OrPagination-00ab6954.js} +1 -1
  8. package/dist/bundled/v2/{OrSearch-22e60302.js → OrSearch-86a009af.js} +2 -2
  9. package/dist/bundled/v2/{OrSelect-0675a404.js → OrSelect-2834d2bc.js} +4 -4
  10. package/dist/bundled/v2/{OrTabs-10f7e668.js → OrTabs-f7c9f754.js} +1 -1
  11. package/dist/bundled/v2/{OrTextarea-5027c642.js → OrTextarea-8d35e641.js} +2 -2
  12. package/dist/bundled/v2/components/index.d.ts +4 -3
  13. package/dist/bundled/v2/components/index.js +15 -14
  14. package/dist/bundled/v2/components/or-card-collection-v3/index.js +6 -6
  15. package/dist/bundled/v2/components/or-combined-input-v3/index.js +2 -2
  16. package/dist/bundled/v2/components/or-confirm-v3/index.js +4 -4
  17. package/dist/bundled/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +186 -0
  18. package/dist/bundled/v2/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +1 -0
  19. package/dist/bundled/v2/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +1 -0
  20. package/dist/bundled/v2/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +1 -0
  21. package/dist/bundled/v2/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +1 -0
  22. package/dist/bundled/v2/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +1 -0
  23. package/dist/bundled/v2/components/or-date-time-picker-v3/index.d.ts +2 -0
  24. package/dist/bundled/v2/components/or-date-time-picker-v3/index.js +30 -0
  25. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +38 -0
  26. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +3 -0
  27. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +24 -0
  28. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.d.ts +2 -0
  29. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +90 -0
  30. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.d.ts +1 -0
  31. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +12 -0
  32. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.d.ts +1 -0
  33. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +8 -0
  34. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.d.ts +1 -0
  35. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +42 -0
  36. package/dist/bundled/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.d.ts +3 -0
  37. package/dist/bundled/v2/components/or-date-time-picker-v3/props.d.ts +1 -0
  38. package/dist/bundled/v2/components/or-date-time-picker-v3/styles.d.ts +2 -0
  39. package/dist/bundled/v2/components/or-input-box-v3/index.js +2 -2
  40. package/dist/bundled/v2/components/or-input-v3/index.js +3 -3
  41. package/dist/bundled/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  42. package/dist/bundled/v2/components/or-menu-v3/index.js +1 -1
  43. package/dist/bundled/v2/components/or-pagination-v3/index.js +2 -2
  44. package/dist/bundled/v2/components/or-search-v3/index.js +4 -4
  45. package/dist/bundled/v2/components/or-select-v3/index.js +5 -5
  46. package/dist/bundled/v2/components/or-tabs-v3/index.js +2 -2
  47. package/dist/bundled/v2/components/or-textarea-v3/index.js +3 -3
  48. package/dist/bundled/v2/directives/index.js +1 -1
  49. package/dist/bundled/v2/{dropdown-open-e2a93aaf.js → dropdown-open-10460fec.js} +7 -1
  50. package/dist/bundled/v2/index.js +15 -14
  51. package/dist/bundled/v2/{props-78496a2d.js → props-c966ae5f.js} +1 -1
  52. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-518bff34.js → OrCardCollection.vue_vue_type_script_lang-93c84377.js} +3 -3
  53. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-9bfe8cdd.js → OrConfirm.vue_vue_type_script_lang-6bf48817.js} +2 -2
  54. package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-b9bc77aa.js +798 -0
  55. package/dist/bundled/v3/{OrInput-d23f9223.js → OrInput-8171968f.js} +1 -1
  56. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-fde0f78f.js → OrInput.vue_vue_type_script_lang-862ecd79.js} +3 -3
  57. package/dist/bundled/v3/{OrInputBox-66241142.js → OrInputBox-688eb48b.js} +1 -1
  58. package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-d07fa3ad.js → OrInputBox.vue_vue_type_script_lang-0e3ff329.js} +1 -1
  59. package/dist/bundled/v3/{OrMenu-89afef68.js → OrMenu-101f1c62.js} +1 -1
  60. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-f6748a99.js → OrMenu.vue_vue_type_script_lang-7ba15d1d.js} +6 -1
  61. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-7673a00e.js → OrPagination.vue_vue_type_script_lang-d3e6732f.js} +2 -2
  62. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-2ac19dad.js → OrSearch.vue_vue_type_script_lang-b6e99b50.js} +3 -3
  63. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-ee304265.js → OrSelect.vue_vue_type_script_lang-e497af2d.js} +6 -6
  64. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ebd2a59d.js → OrTabs.vue_vue_type_script_lang-513b1e98.js} +2 -2
  65. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-0ae5cda3.js → OrTextarea.vue_vue_type_script_lang-e5ae9a33.js} +3 -3
  66. package/dist/bundled/v3/components/index.d.ts +4 -3
  67. package/dist/bundled/v3/components/index.js +20 -19
  68. package/dist/bundled/v3/components/or-card-collection-v3/index.js +9 -9
  69. package/dist/bundled/v3/components/or-combined-input-v3/index.js +2 -2
  70. package/dist/bundled/v3/components/or-confirm-v3/index.js +6 -6
  71. package/dist/bundled/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +186 -0
  72. package/dist/bundled/v3/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +1 -0
  73. package/dist/bundled/v3/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +1 -0
  74. package/dist/bundled/v3/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +1 -0
  75. package/dist/bundled/v3/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +1 -0
  76. package/dist/bundled/v3/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +1 -0
  77. package/dist/bundled/v3/components/or-date-time-picker-v3/index.d.ts +2 -0
  78. package/dist/bundled/v3/components/or-date-time-picker-v3/index.js +35 -0
  79. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +38 -0
  80. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +3 -0
  81. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +24 -0
  82. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.d.ts +2 -0
  83. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +90 -0
  84. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.d.ts +1 -0
  85. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +12 -0
  86. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.d.ts +1 -0
  87. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +8 -0
  88. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.d.ts +1 -0
  89. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +42 -0
  90. package/dist/bundled/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.d.ts +3 -0
  91. package/dist/bundled/v3/components/or-date-time-picker-v3/props.d.ts +1 -0
  92. package/dist/bundled/v3/components/or-date-time-picker-v3/styles.d.ts +2 -0
  93. package/dist/bundled/v3/components/or-input-box-v3/index.js +2 -2
  94. package/dist/bundled/v3/components/or-input-v3/index.js +4 -4
  95. package/dist/bundled/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  96. package/dist/bundled/v3/components/or-menu-v3/index.js +1 -1
  97. package/dist/bundled/v3/components/or-pagination-v3/index.js +3 -3
  98. package/dist/bundled/v3/components/or-search-v3/index.js +6 -6
  99. package/dist/bundled/v3/components/or-select-v3/index.js +7 -7
  100. package/dist/bundled/v3/components/or-tabs-v3/index.js +3 -3
  101. package/dist/bundled/v3/components/or-textarea-v3/index.js +4 -4
  102. package/dist/bundled/v3/directives/index.js +1 -1
  103. package/dist/bundled/v3/{dropdown-open-293d2de2.js → dropdown-open-0a494cc1.js} +7 -1
  104. package/dist/bundled/v3/index.js +496 -328
  105. package/dist/bundled/v3/{props-78496a2d.js → props-c966ae5f.js} +1 -1
  106. package/dist/esm/v2/{OrCardCollection-708ac4b5.js → OrCardCollection-54079e79.js} +3 -3
  107. package/dist/esm/v2/{OrConfirm-7eee1481.js → OrConfirm-1be17f86.js} +1 -1
  108. package/dist/esm/v2/OrDateTimePicker-7411ea1f.js +1172 -0
  109. package/dist/esm/v2/{OrInput-a7903c0f.js → OrInput-5efcb134.js} +2 -2
  110. package/dist/esm/v2/{OrInputBox-6b1aec08.js → OrInputBox-0f4e8500.js} +1 -1
  111. package/dist/esm/v2/{OrInputBox.vue_rollup-plugin-vue_script-23426690.js → OrInputBox.vue_rollup-plugin-vue_script-b2d0c353.js} +1 -1
  112. package/dist/esm/v2/{OrMenu-47b319a6.js → OrMenu-18a7f179.js} +6 -1
  113. package/dist/esm/v2/{OrPagination-4d330d4f.js → OrPagination-16f6d75b.js} +1 -1
  114. package/dist/esm/v2/{OrSearch-97a701b0.js → OrSearch-12782f78.js} +2 -2
  115. package/dist/esm/v2/{OrSelect-2d48ddee.js → OrSelect-78c2adc6.js} +4 -4
  116. package/dist/esm/v2/{OrTabs-f0e4db08.js → OrTabs-18df1ce9.js} +1 -1
  117. package/dist/esm/v2/{OrTextarea-2d5d0be6.js → OrTextarea-839a422d.js} +2 -2
  118. package/dist/esm/v2/components/index.d.ts +4 -3
  119. package/dist/esm/v2/components/index.js +15 -14
  120. package/dist/esm/v2/components/or-card-collection-v3/index.js +6 -6
  121. package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
  122. package/dist/esm/v2/components/or-confirm-v3/index.js +4 -4
  123. package/dist/esm/v2/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +186 -0
  124. package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +1 -0
  125. package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +1 -0
  126. package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +1 -0
  127. package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +1 -0
  128. package/dist/esm/v2/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +1 -0
  129. package/dist/esm/v2/components/or-date-time-picker-v3/index.d.ts +2 -0
  130. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +28 -0
  131. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +38 -0
  132. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +3 -0
  133. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +24 -0
  134. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.d.ts +2 -0
  135. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +90 -0
  136. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.d.ts +1 -0
  137. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +12 -0
  138. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.d.ts +1 -0
  139. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +8 -0
  140. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.d.ts +1 -0
  141. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +42 -0
  142. package/dist/esm/v2/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.d.ts +3 -0
  143. package/dist/esm/v2/components/or-date-time-picker-v3/props.d.ts +1 -0
  144. package/dist/esm/v2/components/or-date-time-picker-v3/styles.d.ts +2 -0
  145. package/dist/esm/v2/components/or-input-box-v3/index.js +2 -2
  146. package/dist/esm/v2/components/or-input-v3/index.js +3 -3
  147. package/dist/esm/v2/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  148. package/dist/esm/v2/components/or-menu-v3/index.js +1 -1
  149. package/dist/esm/v2/components/or-pagination-v3/index.js +2 -2
  150. package/dist/esm/v2/components/or-search-v3/index.js +4 -4
  151. package/dist/esm/v2/components/or-select-v3/index.js +5 -5
  152. package/dist/esm/v2/components/or-tabs-v3/index.js +2 -2
  153. package/dist/esm/v2/components/or-textarea-v3/index.js +3 -3
  154. package/dist/esm/v2/directives/index.js +1 -1
  155. package/dist/esm/v2/{dropdown-open-0d314aa4.js → dropdown-open-e1f90e0a.js} +7 -1
  156. package/dist/esm/v2/index.js +14 -13
  157. package/dist/esm/v3/{OrCardCollection-62d1d8d5.js → OrCardCollection-b937aa7a.js} +3 -3
  158. package/dist/esm/v3/{OrConfirm-b74191d6.js → OrConfirm-ecb8c576.js} +1 -1
  159. package/dist/esm/v3/OrDateTimePicker-966d5b1d.js +957 -0
  160. package/dist/esm/v3/{OrInput-f0748c95.js → OrInput-dae6e478.js} +1 -1
  161. package/dist/esm/v3/{OrInputBox-11389afd.js → OrInputBox-901887a1.js} +1 -1
  162. package/dist/esm/v3/{OrMenu-053a9ab7.js → OrMenu-70cee836.js} +6 -1
  163. package/dist/esm/v3/{OrPagination-f2d104d9.js → OrPagination-7f4ed166.js} +1 -1
  164. package/dist/esm/v3/{OrSearch-81b75244.js → OrSearch-9989bb31.js} +2 -2
  165. package/dist/esm/v3/{OrSelect-b9d45ab4.js → OrSelect-bb3c30ec.js} +3 -3
  166. package/dist/esm/v3/{OrTabs-d9e2a07e.js → OrTabs-0a5c80be.js} +1 -1
  167. package/dist/esm/v3/{OrTextarea-08b22d36.js → OrTextarea-2002e190.js} +1 -1
  168. package/dist/esm/v3/components/index.d.ts +4 -3
  169. package/dist/esm/v3/components/index.js +14 -13
  170. package/dist/esm/v3/components/or-card-collection-v3/index.js +5 -5
  171. package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
  172. package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
  173. package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +186 -0
  174. package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultDate.d.ts +1 -0
  175. package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultHours.d.ts +1 -0
  176. package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultMinutes.d.ts +1 -0
  177. package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultMonth.d.ts +1 -0
  178. package/dist/esm/v3/components/or-date-time-picker-v3/hooks/useDefaultYear.d.ts +1 -0
  179. package/dist/esm/v3/components/or-date-time-picker-v3/index.d.ts +2 -0
  180. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +26 -0
  181. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue.d.ts +38 -0
  182. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.d.ts +3 -0
  183. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +24 -0
  184. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.d.ts +2 -0
  185. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +90 -0
  186. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.d.ts +1 -0
  187. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +12 -0
  188. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.d.ts +1 -0
  189. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +8 -0
  190. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.d.ts +1 -0
  191. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +42 -0
  192. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.d.ts +3 -0
  193. package/dist/esm/v3/components/or-date-time-picker-v3/props.d.ts +1 -0
  194. package/dist/esm/v3/components/or-date-time-picker-v3/styles.d.ts +2 -0
  195. package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
  196. package/dist/esm/v3/components/or-input-v3/index.js +2 -2
  197. package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +2 -0
  198. package/dist/esm/v3/components/or-menu-v3/index.js +1 -1
  199. package/dist/esm/v3/components/or-pagination-v3/index.js +2 -2
  200. package/dist/esm/v3/components/or-search-v3/index.js +3 -3
  201. package/dist/esm/v3/components/or-select-v3/index.js +4 -4
  202. package/dist/esm/v3/components/or-tabs-v3/index.js +2 -2
  203. package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
  204. package/dist/esm/v3/directives/index.js +1 -1
  205. package/dist/esm/v3/{dropdown-open-0d314aa4.js → dropdown-open-e1f90e0a.js} +7 -1
  206. package/dist/esm/v3/index.js +13 -12
  207. package/package.json +3 -4
  208. package/src/components/index.ts +4 -3
  209. package/src/components/or-date-time-picker-v3/OrDateTimePicker.docs.mdx +7 -0
  210. package/src/components/or-date-time-picker-v3/OrDateTimePicker.stories3.ts +156 -0
  211. package/src/components/or-date-time-picker-v3/OrDateTimePicker.vue +382 -0
  212. package/src/components/or-date-time-picker-v3/hooks/useDefaultDate.ts +3 -0
  213. package/src/components/or-date-time-picker-v3/hooks/useDefaultHours.ts +3 -0
  214. package/src/components/or-date-time-picker-v3/hooks/useDefaultMinutes.ts +3 -0
  215. package/src/components/or-date-time-picker-v3/hooks/useDefaultMonth.ts +3 -0
  216. package/src/components/or-date-time-picker-v3/hooks/useDefaultYear.ts +3 -0
  217. package/src/components/or-date-time-picker-v3/index.ts +2 -0
  218. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue +162 -0
  219. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/styles.ts +28 -0
  220. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue +58 -0
  221. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/styles.ts +16 -0
  222. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue +232 -0
  223. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/styles.ts +10 -0
  224. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue +59 -0
  225. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/styles.ts +13 -0
  226. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue +37 -0
  227. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/styles.ts +10 -0
  228. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue +162 -0
  229. package/src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/styles.ts +34 -0
  230. package/src/components/or-date-time-picker-v3/props.ts +1 -0
  231. package/src/components/or-date-time-picker-v3/styles.ts +16 -0
  232. package/src/components/or-menu-v3/OrMenu.vue +3 -0
  233. package/src/directives/dropdown-close.ts +1 -0
  234. package/src/directives/dropdown-open.ts +7 -1
@@ -0,0 +1,798 @@
1
+ import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, createBlock, withModifiers, withCtx, createTextVNode, toDisplayString, createVNode, renderSlot, reactive, watch } from 'vue';
2
+ import './OrButton-7b1eac5d.js';
3
+ import { s as script$7 } from './OrButton.vue_vue_type_script_lang-ed1524cf.js';
4
+ import './OrLabel-4da10c50.js';
5
+ import { s as script$8 } from './OrLabel.vue_vue_type_script_lang-5ba2b33c.js';
6
+ import './OrIcon-a670d8e9.js';
7
+ import './OrIconButton-55238a89.js';
8
+ import './OrMenu-101f1c62.js';
9
+ import './OrMenuItem-a90b0369.js';
10
+ import { s as script$9 } from './OrIcon.vue_vue_type_script_lang-859d76fb.js';
11
+ import { s as script$a } from './OrIconButton.vue_vue_type_script_lang-3aeb76ac.js';
12
+ import { s as script$b } from './OrMenu.vue_vue_type_script_lang-7ba15d1d.js';
13
+ import { s as script$c } from './OrMenuItem.vue_vue_type_script_lang-d65eec51.js';
14
+ import './OrHint-fcd2563e.js';
15
+ import './OrInputBox-688eb48b.js';
16
+ import './OrPopover-40d53b57.js';
17
+ import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0a494cc1.js';
18
+ import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-b2e42f31.js';
19
+ import { u as useValidationAttributes } from './useValidationAttributes-5428d8fa.js';
20
+ import { s as script$d } from './OrError.vue_vue_type_script_lang-7305a1d9.js';
21
+ import { s as script$e } from './OrHint.vue_vue_type_script_lang-47d9b9ed.js';
22
+ import { s as script$f } from './OrInputBox.vue_vue_type_script_lang-0e3ff329.js';
23
+ import { s as script$g } from './OrPopover.vue_vue_type_script_lang-9bf2361c.js';
24
+ import { I as InputBoxSize } from './props-c966ae5f.js';
25
+
26
+ function useDefaultDate() {
27
+ return new Date().getUTCDate();
28
+ }
29
+
30
+ function useDefaultHours() {
31
+ return 0;
32
+ }
33
+
34
+ function useDefaultMinutes() {
35
+ return 0;
36
+ }
37
+
38
+ function useDefaultMonth() {
39
+ return new Date().getUTCMonth();
40
+ }
41
+
42
+ function useDefaultYear() {
43
+ return new Date().getUTCFullYear();
44
+ }
45
+
46
+ const DateTimePickerDaySelect = [
47
+ // Layout
48
+ 'layout-column',
49
+ // Spacing
50
+ 'px-md', 'py-md', 'gap-sm'];
51
+ const DateTimePickerDaySelectButtonGroup = [
52
+ // Layout
53
+ 'grid', 'grid-cols-7'];
54
+ const DateTimePickerDaySelectButtonGroupItem = [
55
+ // Box
56
+ 'min-w-fit',
57
+ // Spacing
58
+ '!px-sm', '!py-sm',
59
+ // Typography
60
+ 'typography-caption-regular'];
61
+
62
+ var script$6 = defineComponent({
63
+ name: 'OrDateTimePickerDaySelect',
64
+ components: {
65
+ OrButton: script$7
66
+ },
67
+ model: {
68
+ prop: 'modelValue',
69
+ event: 'update:modelValue'
70
+ },
71
+ props: {
72
+ modelValue: {
73
+ type: Date,
74
+ default: undefined
75
+ }
76
+ },
77
+ emits: ['update:modelValue'],
78
+ expose: ['root'],
79
+ setup(props, context) {
80
+ // Refs
81
+ const root = ref();
82
+ // Styles
83
+ const rootStyles = computed(() => ['or-date-time-picker-day-select', ...DateTimePickerDaySelect]);
84
+ const buttonGroupStyles = computed(() => [...DateTimePickerDaySelectButtonGroup]);
85
+ const buttonGroupItemStyles = computed(() => [...DateTimePickerDaySelectButtonGroupItem]);
86
+ // State
87
+ const proxyModelValue = computed({
88
+ get: () => {
89
+ var _a;
90
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
91
+ },
92
+ set: value => {
93
+ context.emit('update:modelValue', value);
94
+ }
95
+ });
96
+ const dayOptions = computed(() => {
97
+ const monthStartDate = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), 1, proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
98
+ const monthEndDate = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() + 1, 0, proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
99
+ const calendarStartDate = new Date(Date.UTC(monthStartDate.getUTCFullYear(), monthStartDate.getUTCMonth(), 1 - (monthStartDate.getUTCDay() + 6) % 7, monthStartDate.getUTCHours(), monthStartDate.getUTCMinutes()));
100
+ const calendarEndDate = new Date(Date.UTC(monthEndDate.getUTCFullYear(), monthEndDate.getUTCMonth() + 1, (7 - monthEndDate.getUTCDay()) % 7, monthEndDate.getUTCHours(), monthEndDate.getUTCMinutes()));
101
+ return (() => {
102
+ let options = [],
103
+ value = calendarStartDate;
104
+ while (Number(value) !== Number(calendarEndDate)) {
105
+ options = [...options, value];
106
+ value = new Date(Date.UTC(value.getUTCFullYear(), value.getUTCMonth(), value.getUTCDate() + 1, value.getUTCHours(), value.getUTCMinutes()));
107
+ }
108
+ return options;
109
+ })();
110
+ });
111
+ // Methods
112
+ function formatDay(value) {
113
+ return value.toLocaleString('default', {
114
+ day: 'numeric',
115
+ timeZone: 'UTC'
116
+ });
117
+ }
118
+ return {
119
+ root,
120
+ rootStyles,
121
+ buttonGroupStyles,
122
+ buttonGroupItemStyles,
123
+ proxyModelValue,
124
+ dayOptions,
125
+ formatDay
126
+ };
127
+ }
128
+ });
129
+
130
+ function render$5(_ctx, _cache, $props, $setup, $data, $options) {
131
+ const _component_OrButton = resolveComponent("OrButton");
132
+ return openBlock(), createElementBlock("div", {
133
+ ref: "root",
134
+ class: normalizeClass(_ctx.rootStyles)
135
+ }, [createElementVNode("div", {
136
+ class: normalizeClass(_ctx.buttonGroupStyles)
137
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dayOptions, value => {
138
+ return openBlock(), createBlock(_component_OrButton, {
139
+ key: Number(value),
140
+ class: normalizeClass(_ctx.buttonGroupItemStyles),
141
+ variant: Number(value) === Number(_ctx.proxyModelValue) ? 'contained' : 'text',
142
+ color: Number(value) === Number(_ctx.proxyModelValue) ? 'primary' : 'inherit',
143
+ onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
144
+ }, {
145
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatDay(value)), 1 /* TEXT */)]),
146
+
147
+ _: 2 /* DYNAMIC */
148
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "onClick"]);
149
+ }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 2 /* CLASS */);
150
+ }
151
+
152
+ script$6.render = render$5;
153
+ script$6.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-day-select/OrDateTimePickerDaySelect.vue";
154
+
155
+ const DateTimePickerMobileControl = [
156
+ // Layout
157
+ 'layout-column',
158
+ // Spacing
159
+ 'gap-xs'];
160
+ const DateTimePickerMobileControlContent = [
161
+ // Typography
162
+ 'typography-headline-1',
163
+ // Theme
164
+ 'theme-foreground-outline', 'dark:theme-foreground-outline-dark'];
165
+
166
+ var script$5 = defineComponent({
167
+ name: 'OrDateTimePickerMobileControl',
168
+ components: {
169
+ OrLabel: script$8
170
+ },
171
+ props: {
172
+ label: {
173
+ type: String,
174
+ required: true
175
+ }
176
+ },
177
+ expose: ['root'],
178
+ setup() {
179
+ // Refs
180
+ const root = ref();
181
+ // Styles
182
+ const rootStyles = computed(() => ['or-date-time-picker-mobile-control', ...DateTimePickerMobileControl]);
183
+ const contentStyles = computed(() => [...DateTimePickerMobileControlContent]);
184
+ return {
185
+ root,
186
+ rootStyles,
187
+ contentStyles
188
+ };
189
+ }
190
+ });
191
+
192
+ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
193
+ const _component_OrLabel = resolveComponent("OrLabel");
194
+ return openBlock(), createElementBlock("div", {
195
+ ref: "root",
196
+ class: normalizeClass(_ctx.rootStyles)
197
+ }, [createVNode(_component_OrLabel, null, {
198
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.label), 1 /* TEXT */)]),
199
+
200
+ _: 1 /* STABLE */
201
+ }), createElementVNode("div", {
202
+ class: normalizeClass(_ctx.contentStyles)
203
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)], 2 /* CLASS */);
204
+ }
205
+
206
+ script$5.render = render$4;
207
+ script$5.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue";
208
+
209
+ const DateTimePickerMonthSelect = [
210
+ // Layout
211
+ 'layout-row justify-between',
212
+ // Spacing
213
+ 'px-md', 'py-md', 'gap-md'];
214
+
215
+ var script$4 = defineComponent({
216
+ name: 'OrDateTimePickerMonthSelect',
217
+ components: {
218
+ OrButton: script$7,
219
+ OrIcon: script$9,
220
+ OrIconButton: script$a,
221
+ OrMenu: script$b,
222
+ OrMenuItem: script$c
223
+ },
224
+ model: {
225
+ prop: 'modelValue',
226
+ event: 'update:modelValue'
227
+ },
228
+ props: {
229
+ modelValue: {
230
+ type: Date,
231
+ default: undefined
232
+ }
233
+ },
234
+ emits: ['update:modelValue'],
235
+ expose: ['root'],
236
+ setup(props, context) {
237
+ // Refs
238
+ const root = ref();
239
+ const yearButton = ref();
240
+ const monthButton = ref();
241
+ const yearButtonRoot = computed(() => {
242
+ var _a;
243
+ return (_a = yearButton.value) === null || _a === void 0 ? void 0 : _a.root;
244
+ });
245
+ const monthButtonRoot = computed(() => {
246
+ var _a;
247
+ return (_a = monthButton.value) === null || _a === void 0 ? void 0 : _a.root;
248
+ });
249
+ const yearMenu = ref();
250
+ const monthMenu = ref();
251
+ const yearMenuState = computed(() => {
252
+ var _a;
253
+ return (_a = yearMenu.value) === null || _a === void 0 ? void 0 : _a.state;
254
+ });
255
+ const monthMenuState = computed(() => {
256
+ var _a;
257
+ return (_a = monthMenu.value) === null || _a === void 0 ? void 0 : _a.state;
258
+ });
259
+ // Styles
260
+ const rootStyles = computed(() => ['or-date-time-picker-month-select', ...DateTimePickerMonthSelect]);
261
+ // State
262
+ const proxyModelValue = computed({
263
+ get: () => {
264
+ var _a;
265
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
266
+ },
267
+ set: value => {
268
+ context.emit('update:modelValue', value);
269
+ }
270
+ });
271
+ const yearOptions = computed(() => {
272
+ return Array.from({
273
+ length: 11
274
+ }).map((_value, index, {
275
+ length
276
+ }) => {
277
+ const value = proxyModelValue.value.getUTCFullYear() - Math.floor(length / 2) + index;
278
+ return new Date(Date.UTC(value, proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
279
+ });
280
+ });
281
+ const monthOptions = computed(() => {
282
+ return Array.from({
283
+ length: 12
284
+ }, (_value, index) => {
285
+ const value = index;
286
+ return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), value, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
287
+ });
288
+ });
289
+ // Methods
290
+ function goToNextMonth() {
291
+ proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() + 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
292
+ }
293
+ function goToPreviousMonth() {
294
+ proxyModelValue.value = new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth() - 1, proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), proxyModelValue.value.getUTCMinutes()));
295
+ }
296
+ function formatYear(value) {
297
+ return value.toLocaleString('default', {
298
+ year: 'numeric',
299
+ timeZone: 'UTC'
300
+ });
301
+ }
302
+ function formatMonth(value) {
303
+ return value.toLocaleString('default', {
304
+ month: 'long',
305
+ timeZone: 'UTC'
306
+ });
307
+ }
308
+ return {
309
+ root,
310
+ yearButton,
311
+ monthButton,
312
+ yearButtonRoot,
313
+ monthButtonRoot,
314
+ yearMenu,
315
+ monthMenu,
316
+ yearMenuState,
317
+ monthMenuState,
318
+ rootStyles,
319
+ proxyModelValue,
320
+ yearOptions,
321
+ monthOptions,
322
+ goToNextMonth,
323
+ goToPreviousMonth,
324
+ formatYear,
325
+ formatMonth
326
+ };
327
+ }
328
+ });
329
+
330
+ const _hoisted_1 = {
331
+ class: /*#__PURE__*/normalizeClass(['layout-row-reverse', 'gap-md'])
332
+ };
333
+ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
334
+ const _component_OrIconButton = resolveComponent("OrIconButton");
335
+ const _component_OrIcon = resolveComponent("OrIcon");
336
+ const _component_OrButton = resolveComponent("OrButton");
337
+ const _component_OrMenuItem = resolveComponent("OrMenuItem");
338
+ const _component_OrMenu = resolveComponent("OrMenu");
339
+ return openBlock(), createElementBlock("div", {
340
+ ref: "root",
341
+ class: normalizeClass(_ctx.rootStyles)
342
+ }, [createVNode(_component_OrIconButton, {
343
+ icon: 'chevron_left',
344
+ onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.goToPreviousMonth(), ["stop"]))
345
+ }), createElementVNode("div", _hoisted_1, [createVNode(_component_OrButton, {
346
+ ref: "yearButton",
347
+ variant: 'link',
348
+ color: 'inherit',
349
+ onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.yearMenu.open(), ["stop"]))
350
+ }, {
351
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatYear(_ctx.proxyModelValue)) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
352
+ icon: _ctx.yearMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
353
+ }, null, 8 /* PROPS */, ["icon"])]),
354
+ _: 1 /* STABLE */
355
+ }, 512 /* NEED_PATCH */), createVNode(_component_OrButton, {
356
+ ref: "monthButton",
357
+ variant: 'link',
358
+ color: 'inherit',
359
+ onClick: _cache[2] || (_cache[2] = withModifiers($event => _ctx.monthMenu.open(), ["stop"]))
360
+ }, {
361
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMonth(_ctx.proxyModelValue)) + " ", 1 /* TEXT */), createVNode(_component_OrIcon, {
362
+ icon: _ctx.monthMenuState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
363
+ }, null, 8 /* PROPS */, ["icon"])]),
364
+ _: 1 /* STABLE */
365
+ }, 512 /* NEED_PATCH */), createVNode(_component_OrMenu, {
366
+ ref: "yearMenu",
367
+ trigger: _ctx.yearButtonRoot
368
+ }, {
369
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.yearOptions, value => {
370
+ return openBlock(), createBlock(_component_OrMenuItem, {
371
+ key: Number(value),
372
+ selected: Number(value) === Number(_ctx.proxyModelValue),
373
+ onClick: withModifiers($event => {
374
+ _ctx.proxyModelValue = value;
375
+ _ctx.yearMenu.close();
376
+ }, ["stop"])
377
+ }, {
378
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatYear(value)), 1 /* TEXT */)]),
379
+
380
+ _: 2 /* DYNAMIC */
381
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "onClick"]);
382
+ }), 128 /* KEYED_FRAGMENT */))]),
383
+
384
+ _: 1 /* STABLE */
385
+ }, 8 /* PROPS */, ["trigger"]), createVNode(_component_OrMenu, {
386
+ ref: "monthMenu",
387
+ trigger: _ctx.monthButtonRoot
388
+ }, {
389
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.monthOptions, value => {
390
+ return openBlock(), createBlock(_component_OrMenuItem, {
391
+ key: Number(value),
392
+ selected: Number(value) === Number(_ctx.proxyModelValue),
393
+ onClick: withModifiers($event => {
394
+ _ctx.proxyModelValue = value;
395
+ _ctx.monthMenu.close();
396
+ }, ["stop"])
397
+ }, {
398
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMonth(value)), 1 /* TEXT */)]),
399
+
400
+ _: 2 /* DYNAMIC */
401
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["selected", "onClick"]);
402
+ }), 128 /* KEYED_FRAGMENT */))]),
403
+
404
+ _: 1 /* STABLE */
405
+ }, 8 /* PROPS */, ["trigger"])]), createVNode(_component_OrIconButton, {
406
+ icon: 'chevron_right',
407
+ onClick: _cache[3] || (_cache[3] = withModifiers($event => _ctx.goToNextMonth(), ["stop"]))
408
+ })], 2 /* CLASS */);
409
+ }
410
+
411
+ script$4.render = render$3;
412
+ script$4.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue";
413
+
414
+ const DateTimePickerPopoverFooter = [
415
+ // Layout
416
+ 'layout-row-reverse',
417
+ // Layout (children)
418
+ 'children:grow',
419
+ // Spacing
420
+ 'px-md md:px-sm', 'py-md md:py-sm', 'gap-md md:gap-sm'];
421
+
422
+ var script$3 = defineComponent({
423
+ name: 'OrDateTimePickerPopoverFooter',
424
+ components: {
425
+ OrButton: script$7
426
+ },
427
+ emits: ['resolve', 'reject'],
428
+ expose: ['root'],
429
+ setup() {
430
+ // Refs
431
+ const root = ref();
432
+ // Styles
433
+ const rootStyles = computed(() => ['or-date-time-picker-popover-footer', ...DateTimePickerPopoverFooter]);
434
+ return {
435
+ root,
436
+ rootStyles
437
+ };
438
+ }
439
+ });
440
+
441
+ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
442
+ const _component_OrButton = resolveComponent("OrButton");
443
+ return openBlock(), createElementBlock("footer", {
444
+ ref: "root",
445
+ class: normalizeClass(_ctx.rootStyles)
446
+ }, [createVNode(_component_OrButton, {
447
+ variant: 'outlined',
448
+ onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.$emit('resolve'), ["stop"]))
449
+ }, {
450
+ default: withCtx(() => [createTextVNode(" Done ")]),
451
+ _: 1 /* STABLE */
452
+ }), createVNode(_component_OrButton, {
453
+ variant: 'text',
454
+ onClick: _cache[1] || (_cache[1] = withModifiers($event => _ctx.$emit('reject'), ["stop"]))
455
+ }, {
456
+ default: withCtx(() => [createTextVNode(" Cancel ")]),
457
+ _: 1 /* STABLE */
458
+ })], 2 /* CLASS */);
459
+ }
460
+
461
+ script$3.render = render$2;
462
+ script$3.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue";
463
+
464
+ const DateTimePickerPopoverHeader = [
465
+ // Layout
466
+ 'layout-row md:hidden',
467
+ // Spacing
468
+ 'px-md', 'py-md', 'gap-xl'];
469
+
470
+ var script$2 = defineComponent({
471
+ name: 'OrDateTimePickerPopoverHeader',
472
+ expose: ['root'],
473
+ setup() {
474
+ // Refs
475
+ const root = ref();
476
+ // Styles
477
+ const rootStyles = computed(() => ['or-date-time-picker-popover-header', ...DateTimePickerPopoverHeader]);
478
+ return {
479
+ root,
480
+ rootStyles
481
+ };
482
+ }
483
+ });
484
+
485
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
486
+ return openBlock(), createElementBlock("header", {
487
+ ref: "root",
488
+ class: normalizeClass(_ctx.rootStyles)
489
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */);
490
+ }
491
+
492
+ script$2.render = render$1;
493
+ script$2.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue";
494
+
495
+ const DateTimePickerTimeSelect = [
496
+ // Layout
497
+ 'layout-row justify-center',
498
+ // Spacing
499
+ 'px-md', 'py-md', 'gap-sm',
500
+ // Typography
501
+ 'typography-body-2-regular',
502
+ // Theme
503
+ 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
504
+ const DateTimePickerTimeSelectButtonGroup = [
505
+ // Layout
506
+ 'layout-column',
507
+ // Box
508
+ 'max-h-[224px]',
509
+ // Overflow
510
+ 'overflow-x-hidden', 'overflow-y-auto'];
511
+ const DateTimePickerTimeSelectButtonGroupItem = [
512
+ // Typography
513
+ 'typography-caption-regular'];
514
+
515
+ var script$1 = defineComponent({
516
+ name: 'OrDateTimePickerTimeSelect',
517
+ components: {
518
+ OrButton: script$7
519
+ },
520
+ model: {
521
+ prop: 'modelValue',
522
+ event: 'update:modelValue'
523
+ },
524
+ props: {
525
+ modelValue: {
526
+ type: Date,
527
+ default: undefined
528
+ }
529
+ },
530
+ emits: ['update:modelValue'],
531
+ expose: ['root'],
532
+ setup(props, context) {
533
+ // Refs
534
+ const root = ref();
535
+ // Styles
536
+ const rootStyles = computed(() => ['or-date-time-picker-time-select', ...DateTimePickerTimeSelect]);
537
+ const buttonGroupStyles = computed(() => [...DateTimePickerTimeSelectButtonGroup]);
538
+ const buttonGroupItemStyles = computed(() => [...DateTimePickerTimeSelectButtonGroupItem]);
539
+ // State
540
+ const proxyModelValue = computed({
541
+ get: () => {
542
+ var _a;
543
+ return (_a = props.modelValue) !== null && _a !== void 0 ? _a : new Date(Date.UTC(useDefaultYear(), useDefaultMonth(), useDefaultDate(), useDefaultHours(), useDefaultMinutes()));
544
+ },
545
+ set: value => {
546
+ context.emit('update:modelValue', value);
547
+ }
548
+ });
549
+ const hoursOptions = computed(() => {
550
+ return Array.from({
551
+ length: 24
552
+ }, (_value, index) => {
553
+ const value = index;
554
+ return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), value, proxyModelValue.value.getUTCMinutes()));
555
+ });
556
+ });
557
+ const minutesOptions = computed(() => {
558
+ return Array.from({
559
+ length: 60
560
+ }, (_value, index) => {
561
+ const value = index;
562
+ return new Date(Date.UTC(proxyModelValue.value.getUTCFullYear(), proxyModelValue.value.getUTCMonth(), proxyModelValue.value.getUTCDate(), proxyModelValue.value.getUTCHours(), value));
563
+ });
564
+ });
565
+ // Methods
566
+ function formatHours(value) {
567
+ return value.toLocaleString('default', {
568
+ hour: '2-digit',
569
+ timeZone: 'UTC'
570
+ });
571
+ }
572
+ function formatMinutes(value) {
573
+ return value.toLocaleString('default', {
574
+ minute: '2-digit',
575
+ timeZone: 'UTC'
576
+ });
577
+ }
578
+ return {
579
+ root,
580
+ rootStyles,
581
+ buttonGroupStyles,
582
+ buttonGroupItemStyles,
583
+ proxyModelValue,
584
+ hoursOptions,
585
+ minutesOptions,
586
+ formatHours,
587
+ formatMinutes
588
+ };
589
+ }
590
+ });
591
+
592
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
593
+ const _component_OrButton = resolveComponent("OrButton");
594
+ return openBlock(), createElementBlock("div", {
595
+ ref: "root",
596
+ class: normalizeClass(_ctx.rootStyles)
597
+ }, [createElementVNode("div", {
598
+ class: normalizeClass(_ctx.buttonGroupStyles)
599
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.hoursOptions, value => {
600
+ return openBlock(), createBlock(_component_OrButton, {
601
+ key: Number(value),
602
+ class: normalizeClass(_ctx.buttonGroupItemStyles),
603
+ variant: Number(value) === Number(_ctx.proxyModelValue) ? 'contained' : 'text',
604
+ color: Number(value) === Number(_ctx.proxyModelValue) ? 'primary' : 'inherit',
605
+ onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
606
+ }, {
607
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatHours(value)), 1 /* TEXT */)]),
608
+
609
+ _: 2 /* DYNAMIC */
610
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "onClick"]);
611
+ }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */), createTextVNode(" : "), createElementVNode("div", {
612
+ class: normalizeClass(_ctx.buttonGroupStyles)
613
+ }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.minutesOptions, value => {
614
+ return openBlock(), createBlock(_component_OrButton, {
615
+ key: Number(value),
616
+ class: normalizeClass(_ctx.buttonGroupItemStyles),
617
+ variant: Number(value) === Number(_ctx.proxyModelValue) ? 'contained' : 'text',
618
+ color: Number(value) === Number(_ctx.proxyModelValue) ? 'primary' : 'inherit',
619
+ onClick: withModifiers($event => _ctx.proxyModelValue = value, ["stop"])
620
+ }, {
621
+ default: withCtx(() => [createTextVNode(toDisplayString(_ctx.formatMinutes(value)), 1 /* TEXT */)]),
622
+
623
+ _: 2 /* DYNAMIC */
624
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["class", "variant", "color", "onClick"]);
625
+ }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)], 2 /* CLASS */);
626
+ }
627
+
628
+ script$1.render = render;
629
+ script$1.__file = "src/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue";
630
+
631
+ const DateTimePicker = [
632
+ // Layout
633
+ 'layout-column',
634
+ // Spacing
635
+ 'gap-xs'];
636
+ const DateTimePickerControl = [
637
+ // Theme (focus)
638
+ 'focus:theme-border-1-current', 'dark:focus:theme-border-1-current-dark', 'focus:theme-border-underline', 'dark:focus:theme-border-underline'];
639
+
640
+ var script = defineComponent({
641
+ name: 'OrDateTimePicker',
642
+ components: {
643
+ OrDateTimePickerDaySelect: script$6,
644
+ OrDateTimePickerMobileControl: script$5,
645
+ OrDateTimePickerMonthSelect: script$4,
646
+ OrDateTimePickerPopoverFooter: script$3,
647
+ OrDateTimePickerPopoverHeader: script$2,
648
+ OrDateTimePickerTimeSelect: script$1,
649
+ OrError: script$d,
650
+ OrHint: script$e,
651
+ OrIconButton: script$a,
652
+ OrInputBox: script$f,
653
+ OrLabel: script$8,
654
+ OrPopover: script$g
655
+ },
656
+ directives: {
657
+ DropdownClose,
658
+ DropdownOpen
659
+ },
660
+ model: {
661
+ prop: 'modelValue',
662
+ event: 'update:modelValue'
663
+ },
664
+ props: {
665
+ modelValue: {
666
+ type: Date,
667
+ default: undefined
668
+ },
669
+ size: {
670
+ type: String,
671
+ default: InputBoxSize.M
672
+ },
673
+ label: {
674
+ type: String,
675
+ default: undefined
676
+ },
677
+ hint: {
678
+ type: String,
679
+ default: undefined
680
+ },
681
+ error: {
682
+ type: [String, Boolean],
683
+ default: undefined
684
+ },
685
+ required: {
686
+ type: Boolean,
687
+ default: false
688
+ },
689
+ readonly: {
690
+ type: Boolean,
691
+ default: false
692
+ },
693
+ disabled: {
694
+ type: Boolean,
695
+ default: false
696
+ },
697
+ disableDefaultStyles: {
698
+ type: Boolean,
699
+ default: false
700
+ }
701
+ },
702
+ emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
703
+ expose: ['root', 'focus', 'blur'],
704
+ setup(props, context) {
705
+ // Refs
706
+ const root = ref();
707
+ const dateControl = ref();
708
+ const timeControl = ref();
709
+ const datePopover = ref();
710
+ const timePopover = ref();
711
+ const datePopoverState = computed(() => {
712
+ var _a;
713
+ return (_a = datePopover.value) === null || _a === void 0 ? void 0 : _a.state;
714
+ });
715
+ const timePopoverState = computed(() => {
716
+ var _a;
717
+ return (_a = timePopover.value) === null || _a === void 0 ? void 0 : _a.state;
718
+ });
719
+ // Styles
720
+ const rootStyles = computed(() => ['or-date-time-picker', ...DateTimePicker]);
721
+ const controlStyles = computed(() => [...DateTimePickerControl]);
722
+ // State
723
+ const controlAttributes = reactive({
724
+ id: useIdAttribute(),
725
+ ...useControlAttributes(),
726
+ ...useValidationAttributes()
727
+ });
728
+ const proxyModelValue = computed({
729
+ get: () => props.modelValue,
730
+ set: value => {
731
+ context.emit('update:modelValue', value);
732
+ }
733
+ });
734
+ const draftModelValue = ref();
735
+ watch(proxyModelValue, value => {
736
+ draftModelValue.value = value;
737
+ }, {
738
+ immediate: true
739
+ });
740
+ // Methods
741
+ function toggleDatePopover() {
742
+ if (!props.readonly && !props.disabled) {
743
+ const popoverInstance = datePopover.value;
744
+ if (popoverInstance) {
745
+ if (datePopoverState.value === 'open') {
746
+ popoverInstance.close();
747
+ } else {
748
+ popoverInstance.open();
749
+ }
750
+ }
751
+ }
752
+ }
753
+ function toggleTimePopover() {
754
+ if (!props.readonly && !props.disabled) {
755
+ const popoverInstance = timePopover.value;
756
+ if (popoverInstance) {
757
+ if (timePopoverState.value === 'open') {
758
+ popoverInstance.close();
759
+ } else {
760
+ popoverInstance.open();
761
+ }
762
+ }
763
+ }
764
+ }
765
+ function closeDatePopover() {
766
+ const popoverInstance = datePopover.value;
767
+ if (popoverInstance) {
768
+ popoverInstance.close();
769
+ }
770
+ }
771
+ function closeTimePopover() {
772
+ const popoverInstance = timePopover.value;
773
+ if (popoverInstance) {
774
+ popoverInstance.close();
775
+ }
776
+ }
777
+ return {
778
+ root,
779
+ dateControl,
780
+ timeControl,
781
+ datePopover,
782
+ timePopover,
783
+ datePopoverState,
784
+ timePopoverState,
785
+ rootStyles,
786
+ controlStyles,
787
+ controlAttributes,
788
+ proxyModelValue,
789
+ draftModelValue,
790
+ toggleDatePopover,
791
+ toggleTimePopover,
792
+ closeDatePopover,
793
+ closeTimePopover
794
+ };
795
+ }
796
+ });
797
+
798
+ export { script as s };