@onereach/ui-components 4.12.1-beta.2984.0 → 4.12.1-beta.2986.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 (205) hide show
  1. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +62 -26
  2. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +25 -2
  3. package/dist/bundled/v2/components/OrCardCollectionV3/index.js +4 -6
  4. package/dist/bundled/v2/components/OrCardCollectionV3/styles.js +5 -3
  5. package/dist/bundled/v2/components/OrCardCollectionV3/types.d.ts +4 -0
  6. package/dist/bundled/v2/components/OrCode/OrCode.js +3 -3
  7. package/dist/bundled/v2/components/OrCode/index.js +3 -3
  8. package/dist/bundled/v2/components/OrCode/lang.js +2 -2
  9. package/dist/bundled/v2/components/OrCode/theme.js +1 -1
  10. package/dist/bundled/v2/components/OrCodeV3/OrCode.js +3 -3
  11. package/dist/bundled/v2/components/OrCodeV3/index.js +3 -3
  12. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +1 -1
  13. package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -1
  14. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
  15. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -1
  16. package/dist/bundled/v2/components/OrInputV3/OrInput.js +17 -9
  17. package/dist/bundled/v2/components/OrMenuItemV3/styles.js +1 -3
  18. package/dist/bundled/v2/components/OrSortHeaderV3/OrSortHeader.js +109 -0
  19. package/dist/bundled/v2/components/OrSortHeaderV3/OrSortHeader.vue.d.ts +46 -0
  20. package/dist/bundled/v2/components/OrSortHeaderV3/index.d.ts +2 -0
  21. package/dist/bundled/v2/components/OrSortHeaderV3/index.js +8 -0
  22. package/dist/bundled/v2/components/OrSortHeaderV3/styles.d.ts +1 -0
  23. package/dist/bundled/v2/components/OrSortHeaderV3/styles.js +15 -0
  24. package/dist/bundled/v2/components/OrSortHeaderV3/types.d.ts +4 -0
  25. package/dist/bundled/v2/components/index.d.ts +1 -1
  26. package/dist/bundled/v2/components/index.js +6 -6
  27. package/dist/bundled/v2/{index-9c1d2908.js → index-00991c6e.js} +2 -2
  28. package/dist/bundled/v2/{index-11e9d6f2.js → index-40a6d6e0.js} +1 -1
  29. package/dist/bundled/v2/{index-451f3d87.js → index-51f352b6.js} +9 -2
  30. package/dist/bundled/v2/index.js +7 -7
  31. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-4d117d30.js → OrCardCollection.vue_vue_type_script_lang-5c2977af.js} +30 -5
  32. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-005a6380.js → OrCode.vue_vue_type_script_lang-69d5cba5.js} +3 -3
  33. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-ce5a4f02.js → OrCode.vue_vue_type_script_lang-f3f122bf.js} +2 -2
  34. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-1ce271f7.js → OrConfirm.vue_vue_type_script_lang-110e7d1e.js} +1 -1
  35. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-04af0e24.js → OrDatePicker.vue_vue_type_script_lang-d94c33ca.js} +1 -1
  36. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-ec06a304.js → OrDateTimePicker.vue_vue_type_script_lang-46b1735a.js} +1 -1
  37. package/dist/bundled/v3/{OrDateTimePickerMonthSelect-1e284be4.js → OrDateTimePickerMonthSelect-57340c1e.js} +1 -1
  38. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-9696e091.js → OrInput.vue_vue_type_script_lang-a2f740af.js} +1 -1
  39. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-f4c61af9.js → OrPagination.vue_vue_type_script_lang-32a27808.js} +1 -1
  40. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-9d98ed4d.js → OrSearch.vue_vue_type_script_lang-8c2943c2.js} +1 -1
  41. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-fe9a7e7c.js → OrSelect.vue_vue_type_script_lang-62ba72f1.js} +2 -2
  42. package/dist/bundled/v3/OrSortHeader.vue_vue_type_script_lang-a444d88b.js +57 -0
  43. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-366b95d9.js → OrTabs.vue_vue_type_script_lang-e9ea6c28.js} +1 -1
  44. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +53 -28
  45. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +5 -2
  46. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +9 -12
  47. package/dist/bundled/v3/components/OrCardCollectionV3/styles.js +5 -3
  48. package/dist/bundled/v3/components/OrCardCollectionV3/types.d.ts +4 -0
  49. package/dist/bundled/v3/components/OrCode/OrCode.js +5 -5
  50. package/dist/bundled/v3/components/OrCode/index.js +4 -4
  51. package/dist/bundled/v3/components/OrCode/lang.js +2 -2
  52. package/dist/bundled/v3/components/OrCode/theme.js +1 -1
  53. package/dist/bundled/v3/components/OrCodeV3/OrCode.js +5 -5
  54. package/dist/bundled/v3/components/OrCodeV3/index.js +4 -4
  55. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +3 -3
  56. package/dist/bundled/v3/components/OrConfirmV3/index.js +2 -2
  57. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +4 -4
  58. package/dist/bundled/v3/components/OrDatePickerV3/index.js +3 -3
  59. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -4
  60. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +3 -3
  61. package/dist/bundled/v3/components/OrInputV3/OrInput.js +9 -8
  62. package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +2 -1
  63. package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
  64. package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.js +2 -2
  65. package/dist/bundled/v3/components/OrMenuItemV3/index.js +1 -1
  66. package/dist/bundled/v3/components/OrMenuItemV3/styles.js +1 -3
  67. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +3 -3
  68. package/dist/bundled/v3/components/OrPaginationV3/index.js +2 -2
  69. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +3 -3
  70. package/dist/bundled/v3/components/OrSearchV3/index.js +2 -2
  71. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +4 -4
  72. package/dist/bundled/v3/components/OrSelectV3/index.js +3 -3
  73. package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.js +30 -0
  74. package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.vue.d.ts +34 -0
  75. package/dist/bundled/v3/components/OrSortHeaderV3/index.d.ts +2 -0
  76. package/dist/bundled/v3/components/OrSortHeaderV3/index.js +9 -0
  77. package/dist/bundled/v3/components/OrSortHeaderV3/styles.d.ts +1 -0
  78. package/dist/bundled/v3/components/OrSortHeaderV3/styles.js +15 -0
  79. package/dist/bundled/v3/components/OrSortHeaderV3/types.d.ts +4 -0
  80. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +3 -3
  81. package/dist/bundled/v3/components/OrTabsV3/index.js +2 -2
  82. package/dist/bundled/v3/components/index.d.ts +1 -1
  83. package/dist/bundled/v3/components/index.js +19 -20
  84. package/dist/bundled/v3/{index-9c1d2908.js → index-00991c6e.js} +2 -2
  85. package/dist/bundled/v3/{index-11e9d6f2.js → index-40a6d6e0.js} +1 -1
  86. package/dist/bundled/v3/{index-451f3d87.js → index-51f352b6.js} +9 -2
  87. package/dist/bundled/v3/index.js +23 -23
  88. package/dist/esm/v2/{OrCardCollection-ce309f6d.js → OrCardCollection-d7c65f96.js} +65 -21
  89. package/dist/esm/v2/{OrConfirm-d8d3b5e1.js → OrConfirm-b291abcc.js} +1 -1
  90. package/dist/esm/v2/{OrDatePicker-078c3498.js → OrDatePicker-365c393c.js} +1 -1
  91. package/dist/esm/v2/{OrDateTimePicker-22febde1.js → OrDateTimePicker-665b1585.js} +1 -1
  92. package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-f843a18d.js → OrDateTimePicker.vue_rollup-plugin-vue_script-a59d2087.js} +1 -1
  93. package/dist/esm/v2/{OrDateTimePickerPopoverHeader-f4dabe74.js → OrDateTimePickerPopoverHeader-3a99a29d.js} +1 -1
  94. package/dist/esm/v2/{OrInput-386e9352.js → OrInput-6d9a67fd.js} +17 -9
  95. package/dist/esm/v2/{OrMenuItem-8af38fc8.js → OrMenuItem-b5bb6e11.js} +1 -3
  96. package/dist/esm/v2/{OrPagination-05a1c01b.js → OrPagination-b9a941dd.js} +1 -1
  97. package/dist/esm/v2/{OrSearch-7f444d5c.js → OrSearch-b36e30b6.js} +1 -1
  98. package/dist/esm/v2/{OrSelect-925d2b50.js → OrSelect-fbf7a44f.js} +2 -2
  99. package/dist/esm/v2/OrSortHeader-46a92f09.js +123 -0
  100. package/dist/esm/v2/{OrTabs-e5b6986c.js → OrTabs-80db5b36.js} +1 -1
  101. package/dist/esm/v2/{OrTimePicker-3860cda8.js → OrTimePicker-13232692.js} +2 -2
  102. package/dist/esm/v2/components/index.d.ts +1 -1
  103. package/dist/esm/v2/components/index.js +14 -14
  104. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +25 -2
  105. package/dist/esm/v2/components/or-card-collection-v3/index.js +9 -10
  106. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +4 -0
  107. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  108. package/dist/esm/v2/components/or-date-picker-v3/index.js +3 -3
  109. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +4 -4
  110. package/dist/esm/v2/components/or-input-v3/index.js +1 -1
  111. package/dist/esm/v2/components/or-menu-item-v3/index.js +1 -1
  112. package/dist/esm/v2/components/or-pagination-v3/index.js +2 -2
  113. package/dist/esm/v2/components/or-search-v3/index.js +2 -2
  114. package/dist/esm/v2/components/or-select-v3/index.js +3 -3
  115. package/dist/esm/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +46 -0
  116. package/dist/esm/v2/components/or-sort-header-v3/index.d.ts +2 -0
  117. package/dist/esm/v2/components/or-sort-header-v3/index.js +8 -0
  118. package/dist/esm/v2/components/or-sort-header-v3/styles.d.ts +1 -0
  119. package/dist/esm/v2/components/or-sort-header-v3/types.d.ts +4 -0
  120. package/dist/esm/v2/components/or-tabs-v3/index.js +2 -2
  121. package/dist/esm/v2/components/or-time-picker-v3/index.js +4 -4
  122. package/dist/esm/v2/index.js +14 -14
  123. package/dist/esm/v3/{OrCardCollection-0a02c9da.js → OrCardCollection-8fbc1ed0.js} +75 -22
  124. package/dist/esm/v3/{OrConfirm-438e906e.js → OrConfirm-e49cd1b2.js} +1 -1
  125. package/dist/esm/v3/{OrDatePicker-4b5a93ad.js → OrDatePicker-aac79bce.js} +1 -1
  126. package/dist/esm/v3/{OrDateTimePicker-091fe6ac.js → OrDateTimePicker-5a1af2fe.js} +1 -1
  127. package/dist/esm/v3/{OrDateTimePickerPopoverHeader-be89989e.js → OrDateTimePickerPopoverHeader-a478e254.js} +1 -1
  128. package/dist/esm/v3/{OrInput-05ac6369.js → OrInput-7ba56536.js} +8 -7
  129. package/dist/esm/v3/{OrMenuItem-e2344d0e.js → OrMenuItem-331cb96b.js} +1 -3
  130. package/dist/esm/v3/{OrPagination-a3904a4d.js → OrPagination-1018acbc.js} +1 -1
  131. package/dist/esm/v3/{OrSearch-daab0e0b.js → OrSearch-e268ceb2.js} +1 -1
  132. package/dist/esm/v3/{OrSelect-0ef072dc.js → OrSelect-451e1fd7.js} +2 -2
  133. package/dist/esm/v3/OrSortHeader-21a443f9.js +93 -0
  134. package/dist/esm/v3/{OrTabs-3457d575.js → OrTabs-328f5a69.js} +1 -1
  135. package/dist/esm/v3/{OrTimePicker-c4b02958.js → OrTimePicker-aaf59858.js} +2 -2
  136. package/dist/esm/v3/components/index.d.ts +1 -1
  137. package/dist/esm/v3/components/index.js +13 -13
  138. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +5 -2
  139. package/dist/esm/v3/components/or-card-collection-v3/index.js +9 -10
  140. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +4 -0
  141. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  142. package/dist/esm/v3/components/or-date-picker-v3/index.js +3 -3
  143. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +3 -3
  144. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +2 -1
  145. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  146. package/dist/esm/v3/components/or-menu-item-v3/index.js +1 -1
  147. package/dist/esm/v3/components/or-pagination-v3/index.js +2 -2
  148. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  149. package/dist/esm/v3/components/or-select-v3/index.js +3 -3
  150. package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +34 -0
  151. package/dist/esm/v3/components/or-sort-header-v3/index.d.ts +2 -0
  152. package/dist/esm/v3/components/or-sort-header-v3/index.js +8 -0
  153. package/dist/esm/v3/components/or-sort-header-v3/styles.d.ts +1 -0
  154. package/dist/esm/v3/components/or-sort-header-v3/types.d.ts +4 -0
  155. package/dist/esm/v3/components/or-tabs-v3/index.js +2 -2
  156. package/dist/esm/v3/components/or-time-picker-v3/index.js +4 -4
  157. package/dist/esm/v3/index.js +13 -13
  158. package/package.json +1 -1
  159. package/src/components/index.ts +1 -1
  160. package/src/components/or-card-collection-v3/OrCardCollection.vue +58 -17
  161. package/src/components/or-card-collection-v3/styles.ts +8 -6
  162. package/src/components/or-card-collection-v3/types.ts +5 -0
  163. package/src/components/or-input-v3/OrInput.vue +2 -1
  164. package/src/components/or-menu-item-v3/styles.ts +0 -3
  165. package/src/components/or-sort-header-v3/OrSortHeader.docs.mdx +3 -0
  166. package/src/components/or-sort-header-v3/OrSortHeader.stories3.ts +125 -0
  167. package/src/components/or-sort-header-v3/OrSortHeader.vue +95 -0
  168. package/src/components/or-sort-header-v3/index.ts +2 -0
  169. package/src/components/or-sort-header-v3/styles.ts +21 -0
  170. package/src/components/or-sort-header-v3/types.ts +4 -0
  171. package/dist/bundled/v2/components/OrSortingV3/OrSortingV3.js +0 -160
  172. package/dist/bundled/v2/components/OrSortingV3/OrSortingV3.vue.d.ts +0 -69
  173. package/dist/bundled/v2/components/OrSortingV3/index.d.ts +0 -2
  174. package/dist/bundled/v2/components/OrSortingV3/index.js +0 -34
  175. package/dist/bundled/v2/components/OrSortingV3/styles.d.ts +0 -2
  176. package/dist/bundled/v2/components/OrSortingV3/styles.js +0 -6
  177. package/dist/bundled/v2/components/OrSortingV3/types.d.ts +0 -4
  178. package/dist/bundled/v3/OrSortingV3.vue_vue_type_script_lang-1bb22099.js +0 -68
  179. package/dist/bundled/v3/components/OrSortingV3/OrSortingV3.js +0 -88
  180. package/dist/bundled/v3/components/OrSortingV3/OrSortingV3.vue.d.ts +0 -36
  181. package/dist/bundled/v3/components/OrSortingV3/index.d.ts +0 -2
  182. package/dist/bundled/v3/components/OrSortingV3/index.js +0 -42
  183. package/dist/bundled/v3/components/OrSortingV3/styles.d.ts +0 -2
  184. package/dist/bundled/v3/components/OrSortingV3/styles.js +0 -6
  185. package/dist/bundled/v3/components/OrSortingV3/types.d.ts +0 -4
  186. package/dist/esm/v2/OrSortingV3-6b5f1b51.js +0 -139
  187. package/dist/esm/v2/components/or-sorting-v3/OrSortingV3.vue.d.ts +0 -69
  188. package/dist/esm/v2/components/or-sorting-v3/index.d.ts +0 -2
  189. package/dist/esm/v2/components/or-sorting-v3/index.js +0 -20
  190. package/dist/esm/v2/components/or-sorting-v3/styles.d.ts +0 -2
  191. package/dist/esm/v2/components/or-sorting-v3/types.d.ts +0 -4
  192. package/dist/esm/v3/OrSortingV3-1ac9a2d5.js +0 -115
  193. package/dist/esm/v3/components/or-sorting-v3/OrSortingV3.vue.d.ts +0 -36
  194. package/dist/esm/v3/components/or-sorting-v3/index.d.ts +0 -2
  195. package/dist/esm/v3/components/or-sorting-v3/index.js +0 -19
  196. package/dist/esm/v3/components/or-sorting-v3/styles.d.ts +0 -2
  197. package/dist/esm/v3/components/or-sorting-v3/types.d.ts +0 -4
  198. package/src/components/or-sorting-v3/OrSortingV3.vue +0 -116
  199. package/src/components/or-sorting-v3/index.ts +0 -2
  200. package/src/components/or-sorting-v3/styles.ts +0 -5
  201. package/src/components/or-sorting-v3/types.ts +0 -4
  202. /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-2e61ba21.js → OrDateTimePickerMonthSelect-232c4dda.js} +0 -0
  203. /package/dist/bundled/v2/components/{OrSortingV3 → OrSortHeaderV3}/types.js +0 -0
  204. /package/dist/bundled/v3/{OrMenuItem.vue_vue_type_script_lang-8f6994d5.js → OrMenuItem.vue_vue_type_script_lang-f35dcab4.js} +0 -0
  205. /package/dist/bundled/v3/components/{OrSortingV3 → OrSortHeaderV3}/types.js +0 -0
@@ -3,13 +3,14 @@ import { CardCollectionContent, CardCollectionContentViews, CardCollectionRoot,
3
3
  import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
4
4
  import { gridView, defaultViewModes } from './props.js';
5
5
  import __vue_component__$2 from '../OrIconButtonV3/OrIconButton.js';
6
- import __vue_component__$3 from '../OrSortingV3/OrSortingV3.js';
7
- import __vue_component__$4 from '../OrSearchV3/OrSearch.js';
6
+ import __vue_component__$3 from '../OrButtonV3/OrButton.js';
7
+ import __vue_component__$4 from '../OrMenuV3/OrMenu.js';
8
+ import __vue_component__$5 from '../OrMenuItemV3/OrMenuItem.js';
9
+ import __vue_component__$6 from '../OrIconV3/OrIcon.js';
10
+ import __vue_component__$7 from '../OrSearchV3/OrSearch.js';
8
11
  import '../OrIconButtonV3/props.js';
9
12
  import '../OrIconV3/props.js';
10
13
  import '../OrIconButtonV3/styles.js';
11
- import '../OrIconV3/OrIcon.js';
12
- import '../OrIconV3/styles.js';
13
14
  import '../OrTooltipV3/OrTooltip.js';
14
15
  import '../OrTooltipV3/styles.js';
15
16
  import '../OrPopoverV3/OrPopover.js';
@@ -29,17 +30,14 @@ import '../../hooks/useElevation.js';
29
30
  import '../../utils/isVisible.js';
30
31
  import '../../hooks/usePopoverState.js';
31
32
  import '../../hooks/useResponsive/useResponsive.js';
32
- import '../OrSortingV3/styles.js';
33
- import '../OrMenuV3/OrMenu.js';
34
- import '../OrMenuV3/styles.js';
35
- import '../OrMenuItemV3/OrMenuItem.js';
36
- import '../OrMenuItemV3/styles.js';
37
- import '../OrButtonV3/OrButton.js';
38
33
  import '../OrButtonV3/props.js';
39
34
  import '../OrButtonV3/styles.js';
40
35
  import '../OrLoaderV3/OrLoader.js';
41
36
  import '../OrLoaderV3/props.js';
42
37
  import '../OrLoaderV3/styles.js';
38
+ import '../OrMenuV3/styles.js';
39
+ import '../OrMenuItemV3/styles.js';
40
+ import '../OrIconV3/styles.js';
43
41
  import '../OrInputV3/OrInput.js';
44
42
  import '../OrInputV3/props.js';
45
43
  import '../OrInputBoxV3/props.js';
@@ -125,8 +123,11 @@ var script = defineComponent({
125
123
  components: {
126
124
  OrCardCollectionView,
127
125
  OrIconButton: __vue_component__$2,
128
- OrSorting: __vue_component__$3,
129
- OrSearch: __vue_component__$4
126
+ OrButton: __vue_component__$3,
127
+ OrMenu: __vue_component__$4,
128
+ OrMenuItem: __vue_component__$5,
129
+ OrIcon: __vue_component__$6,
130
+ OrSearch: __vue_component__$7
130
131
  },
131
132
  props: {
132
133
  items: {
@@ -167,6 +168,8 @@ var script = defineComponent({
167
168
  setup(props, context) {
168
169
  // Refs
169
170
  const root = ref();
171
+ const sortMenu = ref();
172
+ const sortButton = ref();
170
173
  // Styles
171
174
  const rootStyles = computed(() => ['or-card-collection-v3', ...CardCollectionRoot]);
172
175
  const toolbarStyles = computed(() => [...CardCollectionToolbar]);
@@ -177,11 +180,15 @@ var script = defineComponent({
177
180
  });
178
181
  // State
179
182
  const proxyView = ref(props.view);
183
+ const proxySort = ref(props.sort);
180
184
  const proxySearch = ref(props.search);
181
185
  // Methods
182
186
  function switchView(view) {
183
187
  proxyView.value = view;
184
188
  }
189
+ function handleSort(sort) {
190
+ proxySort.value = sort;
191
+ }
185
192
  function handleSearch(search) {
186
193
  proxySearch.value = search;
187
194
  }
@@ -192,6 +199,12 @@ var script = defineComponent({
192
199
  watch(proxyView, value => {
193
200
  context.emit('viewChange', value);
194
201
  });
202
+ watch(() => props.sort, value => {
203
+ proxySort.value = value;
204
+ });
205
+ watch(proxySort, value => {
206
+ context.emit('sortChange', value);
207
+ });
195
208
  watch(() => props.search, value => {
196
209
  proxySearch.value = value;
197
210
  });
@@ -200,13 +213,17 @@ var script = defineComponent({
200
213
  });
201
214
  return {
202
215
  root,
216
+ sortMenu,
217
+ sortButton,
203
218
  rootStyles,
204
219
  toolbarStyles,
205
220
  toolbarPanelStyles,
206
221
  proxyView,
222
+ proxySort,
207
223
  proxySearch,
208
224
  sortLabel,
209
225
  switchView,
226
+ handleSort,
210
227
  handleSearch
211
228
  };
212
229
  }
@@ -227,39 +244,58 @@ var __vue_render__ = function () {
227
244
  class: _vm.toolbarStyles
228
245
  }, [_c('div', {
229
246
  class: _vm.toolbarPanelStyles
230
- }, [_vm.sortOptions.length ? [_c('OrSorting', {
247
+ }, [_vm.sortOptions.length ? [_c('OrButton', {
248
+ ref: "sortButton",
231
249
  attrs: {
232
- "sort": _vm.sort,
233
- "options": _vm.sortOptions
250
+ "variant": "link",
251
+ "color": "inherit"
234
252
  },
235
253
  on: {
236
- "change": function ($event) {
237
- return _vm.$emit('sortChange', $event);
254
+ "click": function ($event) {
255
+ return _vm.sortMenu.toggle();
238
256
  }
239
257
  }
240
- })] : _vm._e()], 2), _vm._v(" "), _c('div', {
258
+ }, [_vm._v("\n " + _vm._s(_vm.sortLabel) + "\n "), _vm.sortMenu ? _c('OrIcon', {
259
+ attrs: {
260
+ "icon": _vm.sortMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'
261
+ }
262
+ }) : _vm._e()], 1), _vm._v(" "), _c('OrMenu', {
263
+ ref: "sortMenu",
264
+ attrs: {
265
+ "trigger": _vm.sortButton && _vm.sortButton.root
266
+ }
267
+ }, _vm._l(_vm.sortOptions, function (sortItem) {
268
+ return _c('OrMenuItem', {
269
+ key: sortItem,
270
+ on: {
271
+ "click": function ($event) {
272
+ return _vm.handleSort(sortItem.value);
273
+ }
274
+ }
275
+ }, [_vm._v("\n " + _vm._s(sortItem.label) + "\n ")]);
276
+ }), 1)] : _vm._e()], 2), _vm._v(" "), _c('div', {
241
277
  class: _vm.toolbarPanelStyles
242
278
  }, [_c('OrSearch', {
243
279
  staticClass: "md:w-[350px]",
244
280
  attrs: {
245
281
  "model-value": _vm.proxySearch,
246
282
  "placeholder": _vm.searchPlaceholder,
247
- "debounce": _vm.searchDebounce
283
+ "debounce": _vm.searchDebounce,
284
+ "size": "s"
248
285
  },
249
286
  on: {
250
287
  "search": _vm.handleSearch
251
288
  }
252
- }), _vm._v(" "), _vm.viewModes.length > 1 ? [_c('div', {
289
+ }), _vm._v(" "), _c('div', {
253
290
  staticClass: "layout-row gap-sm"
254
- }, _vm._l(_vm.viewModes, function (viewOption) {
291
+ }, [_vm.viewModes.length > 1 ? _vm._l(_vm.viewModes, function (viewOption) {
255
292
  return _c('OrIconButton', {
256
293
  key: viewOption.view,
257
294
  attrs: {
258
- "size": "l",
259
295
  "icon": {
260
- icon: viewOption.icon
261
- },
262
- "selected": viewOption.view === _vm.proxyView
296
+ icon: viewOption.icon,
297
+ variant: viewOption.view === _vm.proxyView ? 'filled' : 'outlined'
298
+ }
263
299
  },
264
300
  on: {
265
301
  "click": function ($event) {
@@ -267,7 +303,7 @@ var __vue_render__ = function () {
267
303
  }
268
304
  }
269
305
  });
270
- }), 1)] : _vm._e(), _vm._v(" "), _vm._t("addon")], 2)]), _vm._v(" "), _vm._t("header", null, null, {
306
+ }) : _vm._e(), _vm._v(" "), _vm._t("addon")], 2)], 1)]), _vm._v(" "), _vm._t("header", null, null, {
271
307
  items: _vm.items,
272
308
  mode: _vm.proxyView
273
309
  }), _vm._v(" "), _vm.items.length ? _vm._t(_vm.proxyView, function () {
@@ -1,15 +1,26 @@
1
1
  import { PropType } from 'vue-demi';
2
- import { SortOption } from '../or-sorting-v3';
3
- import { CardCollectionItem, ViewMode } from './types';
2
+ import { CardCollectionItem, SortOption, ViewMode } from './types';
4
3
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
4
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
5
+ sortMenu: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
6
+ [x: string]: ((...args: any[]) => any) | null;
7
+ } | string[], {} & {}, {
8
+ [x: number]: string;
9
+ } | {}, true>)) | undefined>;
10
+ sortButton: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
11
+ [x: string]: ((...args: any[]) => any) | null;
12
+ } | string[], {} & {}, {
13
+ [x: number]: string;
14
+ } | {}, true>)) | undefined>;
6
15
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
7
16
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
8
17
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
9
18
  proxyView: import("@vue/composition-api").Ref<string>;
19
+ proxySort: import("@vue/composition-api").Ref<string>;
10
20
  proxySearch: import("@vue/composition-api").Ref<string>;
11
21
  sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
12
22
  switchView: (view: string) => void;
23
+ handleSort: (sort: string) => void;
13
24
  handleSearch: (search: string) => void;
14
25
  }> & import("@vue/composition-api").Data, {}, {}, {
15
26
  items: {
@@ -90,13 +101,25 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
90
101
  [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
91
102
  }, import("@vue/composition-api").ShallowUnwrapRef<{
92
103
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
104
+ sortMenu: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
105
+ [x: string]: ((...args: any[]) => any) | null;
106
+ } | string[], {} & {}, {
107
+ [x: number]: string;
108
+ } | {}, true>)) | undefined>;
109
+ sortButton: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
110
+ [x: string]: ((...args: any[]) => any) | null;
111
+ } | string[], {} & {}, {
112
+ [x: number]: string;
113
+ } | {}, true>)) | undefined>;
93
114
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
94
115
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
95
116
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
96
117
  proxyView: import("@vue/composition-api").Ref<string>;
118
+ proxySort: import("@vue/composition-api").Ref<string>;
97
119
  proxySearch: import("@vue/composition-api").Ref<string>;
98
120
  sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
99
121
  switchView: (view: string) => void;
122
+ handleSort: (sort: string) => void;
100
123
  handleSearch: (search: string) => void;
101
124
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
102
125
  sort: string;
@@ -28,18 +28,16 @@ import '../../hooks/useElevation.js';
28
28
  import '../../utils/isVisible.js';
29
29
  import '../../hooks/usePopoverState.js';
30
30
  import '../../hooks/useResponsive/useResponsive.js';
31
- import '../OrSortingV3/OrSortingV3.js';
32
- import '../OrSortingV3/styles.js';
33
- import '../OrMenuV3/OrMenu.js';
34
- import '../OrMenuV3/styles.js';
35
- import '../OrMenuItemV3/OrMenuItem.js';
36
- import '../OrMenuItemV3/styles.js';
37
31
  import '../OrButtonV3/OrButton.js';
38
32
  import '../OrButtonV3/props.js';
39
33
  import '../OrButtonV3/styles.js';
40
34
  import '../OrLoaderV3/OrLoader.js';
41
35
  import '../OrLoaderV3/props.js';
42
36
  import '../OrLoaderV3/styles.js';
37
+ import '../OrMenuV3/OrMenu.js';
38
+ import '../OrMenuV3/styles.js';
39
+ import '../OrMenuItemV3/OrMenuItem.js';
40
+ import '../OrMenuItemV3/styles.js';
43
41
  import '../OrSearchV3/OrSearch.js';
44
42
  import '../OrInputV3/OrInput.js';
45
43
  import '../OrInputV3/props.js';
@@ -2,7 +2,9 @@ const CardCollectionRoot = [
2
2
  // Layout
3
3
  'layout-column',
4
4
  // Spacing
5
- 'gap-md', 'max-h-full'];
5
+ 'gap-md', 'max-h-full',
6
+ // Overflow
7
+ 'overflow-hidden'];
6
8
  const CardCollectionToolbar = [
7
9
  // Layout
8
10
  'layout-row justify-between',
@@ -21,11 +23,11 @@ const CardCollectionContent = [
21
23
  // Spacing
22
24
  'gap-sm md:gap-md',
23
25
  // Overflow
24
- 'overflow-y-auto', 'p-xs*', '-m-xs*', '-mr-[7px]'];
26
+ 'overflow-auto'];
25
27
  const CardCollectionContentViews = {
26
28
  'grid': [
27
29
  // Layout
28
- 'grid-cols-1', 'md:grid-cols-5'],
30
+ 'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
29
31
  'list': ['grid-cols-1']
30
32
  };
31
33
 
@@ -6,3 +6,7 @@ export interface ViewMode {
6
6
  view: string;
7
7
  icon: string;
8
8
  }
9
+ export interface SortOption {
10
+ label: string;
11
+ value: string;
12
+ }
@@ -1,5 +1,5 @@
1
- import { E as EditorView, a as EditorState, k as keymap } from '../../index-451f3d87.js';
2
- import { b as basicSetup, i as indentWithTab } from '../../index-9c1d2908.js';
1
+ import { E as EditorView, a as EditorState, k as keymap } from '../../index-51f352b6.js';
2
+ import { b as basicSetup, i as indentWithTab } from '../../index-00991c6e.js';
3
3
  import { u as useElementHover } from '../../index-760079e7.js';
4
4
  import { defineComponent, ref } from 'vue-demi';
5
5
  import __vue_component__$3 from '../OrTeleport/OrTeleport.js';
@@ -13,7 +13,7 @@ import __vue_component__$5 from '../OrHint/OrHint.js';
13
13
  import __vue_component__$6 from '../OrLabel/OrLabel.js';
14
14
  import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
15
15
  import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
16
- import '../../index-11e9d6f2.js';
16
+ import '../../index-40a6d6e0.js';
17
17
  import '../../index-ec92055d.js';
18
18
  import 'vue';
19
19
  import '../OrTeleport/constants.js';
@@ -1,8 +1,8 @@
1
1
  export { default as OrCode } from './OrCode.js';
2
2
  export { OrCodeLanguages } from './constants.js';
3
- import '../../index-451f3d87.js';
4
- import '../../index-9c1d2908.js';
5
- import '../../index-11e9d6f2.js';
3
+ import '../../index-51f352b6.js';
4
+ import '../../index-00991c6e.js';
5
+ import '../../index-40a6d6e0.js';
6
6
  import '../../index-760079e7.js';
7
7
  import '../../index-ec92055d.js';
8
8
  import 'vue-demi';
@@ -1,6 +1,6 @@
1
- import { a as javascript, c as css, h as html, j as json, m as markdown } from '../../index-11e9d6f2.js';
1
+ import { a as javascript, c as css, h as html, j as json, m as markdown } from '../../index-40a6d6e0.js';
2
2
  import { OrCodeLanguages } from './constants.js';
3
- import '../../index-451f3d87.js';
3
+ import '../../index-51f352b6.js';
4
4
 
5
5
  const JS = javascript({
6
6
  typescript: false
@@ -1,4 +1,4 @@
1
- import { E as EditorView, Z as HighlightStyle, _ as tags, L as syntaxHighlighting } from '../../index-451f3d87.js';
1
+ import { E as EditorView, Z as HighlightStyle, _ as tags, L as syntaxHighlighting } from '../../index-51f352b6.js';
2
2
 
3
3
  // Using https://github.com/one-dark/vscode-one-dark-theme/ as reference for the colors
4
4
  const chalky = 'var(--c-warning-darken-20)',
@@ -1,6 +1,6 @@
1
- import { b as basicSetup, i as indentWithTab } from '../../index-9c1d2908.js';
2
- import { m as markdown, j as json, a as javascript, c as css, h as html } from '../../index-11e9d6f2.js';
3
- import { E as EditorView, k as keymap, a as EditorState } from '../../index-451f3d87.js';
1
+ import { b as basicSetup, i as indentWithTab } from '../../index-00991c6e.js';
2
+ import { m as markdown, j as json, a as javascript, c as css, h as html } from '../../index-40a6d6e0.js';
3
+ import { E as EditorView, k as keymap, a as EditorState } from '../../index-51f352b6.js';
4
4
  import { defineComponent, ref, computed, reactive, toRef, watch, onMounted, onUnmounted } from 'vue-demi';
5
5
  import { CodeLanguage } from './props.js';
6
6
  import { Code, CodeControl } from './styles.js';
@@ -1,8 +1,8 @@
1
1
  export { default as OrCodeV3 } from './OrCode.js';
2
2
  export { CodeLanguage } from './props.js';
3
- import '../../index-9c1d2908.js';
4
- import '../../index-451f3d87.js';
5
- import '../../index-11e9d6f2.js';
3
+ import '../../index-00991c6e.js';
4
+ import '../../index-51f352b6.js';
5
+ import '../../index-40a6d6e0.js';
6
6
  import 'vue-demi';
7
7
  import './styles.js';
8
8
  import '../OrErrorV3/OrError.js';
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
2
2
  import { useCurrentDate } from '../OrDateTimePickerV3/hooks/useCurrentDate.js';
3
- import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-2e61ba21.js';
3
+ import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-232c4dda.js';
4
4
  import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-52a99e6a.js';
5
5
  import { DatePicker, DatePickerPopover } from './styles.js';
6
6
  import __vue_component__$1 from '../OrErrorV3/OrError.js';
@@ -2,7 +2,7 @@ export { default as OrDatePickerV3 } from './OrDatePicker.js';
2
2
  export { InputBoxSize as DatePickerSize } from '../OrInputBoxV3/props.js';
3
3
  import 'vue-demi';
4
4
  import '../OrDateTimePickerV3/hooks/useCurrentDate.js';
5
- import '../../OrDateTimePickerMonthSelect-2e61ba21.js';
5
+ import '../../OrDateTimePickerMonthSelect-232c4dda.js';
6
6
  import '../OrDateTimePickerV3/hooks/useDatePlaceholder.js';
7
7
  import '../../hooks/useProxyModelValue.js';
8
8
  import '../../normalize-component-6e8e3d80.js';
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
2
2
  import { useCurrentDate } from './hooks/useCurrentDate.js';
3
- import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-2e61ba21.js';
3
+ import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-232c4dda.js';
4
4
  import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-52a99e6a.js';
5
5
  import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-8851268e.js';
6
6
  import { DateTimePickerTimeFormat } from './props.js';
@@ -3,7 +3,7 @@ export { DateTimePickerTimeFormat } from './props.js';
3
3
  export { InputBoxSize as DateTimePickerSize } from '../OrInputBoxV3/props.js';
4
4
  import 'vue-demi';
5
5
  import './hooks/useCurrentDate.js';
6
- import '../../OrDateTimePickerMonthSelect-2e61ba21.js';
6
+ import '../../OrDateTimePickerMonthSelect-232c4dda.js';
7
7
  import './hooks/useDatePlaceholder.js';
8
8
  import '../../hooks/useProxyModelValue.js';
9
9
  import '../../normalize-component-6e8e3d80.js';
@@ -115,7 +115,7 @@ var script = defineComponent({
115
115
  default: false
116
116
  }
117
117
  },
118
- emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
118
+ emits: ['update:modelValue', 'input', 'keydown', 'keyup', 'focus', 'blur'],
119
119
  expose: ['root', 'focus', 'blur'],
120
120
  setup(props, context) {
121
121
  // Refs
@@ -166,7 +166,7 @@ var script = defineComponent({
166
166
  }
167
167
  });
168
168
 
169
- var css_248z = "input[data-v-1ec35d5c]{min-width:0;background:0 0;outline:0}input[type=number][data-v-1ec35d5c]::-webkit-inner-spin-button{display:none}input[type=search][data-v-1ec35d5c]::-webkit-search-cancel-button{display:none}";
169
+ var css_248z = "input[data-v-78bc5cde]{min-width:0;background:0 0;outline:0}input[type=number][data-v-78bc5cde]::-webkit-inner-spin-button{display:none}input[type=search][data-v-78bc5cde]::-webkit-search-cancel-button{display:none}";
170
170
  styleInject(css_248z);
171
171
 
172
172
  /* script */
@@ -267,6 +267,9 @@ var __vue_render__ = function () {
267
267
  "checked": Array.isArray(_vm.proxyModelValue) ? _vm._i(_vm.proxyModelValue, null) > -1 : _vm.proxyModelValue
268
268
  },
269
269
  on: {
270
+ "input": function ($event) {
271
+ return _vm.$emit('input', $event);
272
+ },
270
273
  "keydown": function ($event) {
271
274
  return _vm.$emit('keydown', $event);
272
275
  },
@@ -317,6 +320,9 @@ var __vue_render__ = function () {
317
320
  "checked": _vm._q(_vm.proxyModelValue, null)
318
321
  },
319
322
  on: {
323
+ "input": function ($event) {
324
+ return _vm.$emit('input', $event);
325
+ },
320
326
  "keydown": function ($event) {
321
327
  return _vm.$emit('keydown', $event);
322
328
  },
@@ -354,6 +360,14 @@ var __vue_render__ = function () {
354
360
  "value": _vm.proxyModelValue
355
361
  },
356
362
  on: {
363
+ "input": [function ($event) {
364
+ if ($event.target.composing) {
365
+ return;
366
+ }
367
+ _vm.proxyModelValue = $event.target.value;
368
+ }, function ($event) {
369
+ return _vm.$emit('input', $event);
370
+ }],
357
371
  "keydown": function ($event) {
358
372
  return _vm.$emit('keydown', $event);
359
373
  },
@@ -365,12 +379,6 @@ var __vue_render__ = function () {
365
379
  },
366
380
  "blur": function ($event) {
367
381
  return _vm.$emit('blur', $event);
368
- },
369
- "input": function ($event) {
370
- if ($event.target.composing) {
371
- return;
372
- }
373
- _vm.proxyModelValue = $event.target.value;
374
382
  }
375
383
  }
376
384
  }, 'input', _vm.controlAttributes, false))]), _vm._v(" "), _c('div', {
@@ -418,7 +426,7 @@ var __vue_staticRenderFns__ = [];
418
426
  /* style */
419
427
  const __vue_inject_styles__ = undefined;
420
428
  /* scoped */
421
- const __vue_scope_id__ = "data-v-1ec35d5c";
429
+ const __vue_scope_id__ = "data-v-78bc5cde";
422
430
  /* module identifier */
423
431
  const __vue_module_identifier__ = undefined;
424
432
  /* functional template */
@@ -14,8 +14,6 @@ const MenuItemRoot = [
14
14
  // Theme (hover)
15
15
  'hover:md:theme-foreground-default', 'dark:hover:md:theme-foreground-default-dark',
16
16
  // Theme (active)
17
- 'active:theme-foreground-default', 'dark:active:theme-foreground-default-dark',
18
- // Theme (selected)
19
- 'selected:text-on-background dark:selected:text-on-background-dark'];
17
+ 'active:theme-foreground-default', 'dark:active:theme-foreground-default-dark'];
20
18
 
21
19
  export { MenuItemRoot };
@@ -0,0 +1,109 @@
1
+ import { defineComponent, ref, computed, toRef } from 'vue-demi';
2
+ import { SortHeaderRoot } from './styles.js';
3
+ import __vue_component__$1 from '../OrIconV3/OrIcon.js';
4
+ import { useProxyModelValue } from '../../hooks/useProxyModelValue.js';
5
+ import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
6
+ import '../OrIconV3/props.js';
7
+ import '../OrIconV3/styles.js';
8
+
9
+ var script = defineComponent({
10
+ name: 'OrSortHeader',
11
+ components: {
12
+ OrIcon: __vue_component__$1
13
+ },
14
+ model: {
15
+ prop: 'modelValue',
16
+ event: 'update:modelValue'
17
+ },
18
+ props: {
19
+ modelValue: {
20
+ type: Object,
21
+ default: undefined
22
+ },
23
+ value: {
24
+ type: String,
25
+ required: true
26
+ }
27
+ },
28
+ emits: ['update:modelValue', 'focus', 'blur'],
29
+ expose: ['root'],
30
+ setup(props, context) {
31
+ // Refs
32
+ const root = ref();
33
+ // Styles
34
+ const rootStyles = computed(() => ['or-sort-header-v3', ...SortHeaderRoot]);
35
+ // State
36
+ const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
37
+ const activated = computed(() => {
38
+ var _a;
39
+ return ((_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.column) === props.value;
40
+ });
41
+ // Methods
42
+ function toggleDirection() {
43
+ var _a;
44
+ proxyModelValue.value = {
45
+ column: props.value,
46
+ direction: ((_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.direction) === 'asc' ? 'desc' : 'asc'
47
+ };
48
+ }
49
+ return {
50
+ root,
51
+ rootStyles,
52
+ proxyModelValue,
53
+ activated,
54
+ toggleDirection
55
+ };
56
+ }
57
+ });
58
+
59
+ /* script */
60
+ const __vue_script__ = script;
61
+
62
+ /* template */
63
+ var __vue_render__ = function () {
64
+ var _vm = this;
65
+ var _h = _vm.$createElement;
66
+ var _c = _vm._self._c || _h;
67
+ return _c('div', {
68
+ ref: "root",
69
+ class: _vm.rootStyles,
70
+ attrs: {
71
+ "activated": _vm.activated ? '' : null
72
+ },
73
+ on: {
74
+ "click": function ($event) {
75
+ $event.stopPropagation();
76
+ return _vm.toggleDirection();
77
+ }
78
+ }
79
+ }, [_vm._t("default"), _vm._v(" "), _vm.activated ? [_c('OrIcon', {
80
+ class: {
81
+ 'rotate-180': _vm.proxyModelValue.direction === 'asc'
82
+ },
83
+ attrs: {
84
+ "icon": 'arrow_downward'
85
+ }
86
+ })] : _vm._e()], 2);
87
+ };
88
+ var __vue_staticRenderFns__ = [];
89
+
90
+ /* style */
91
+ const __vue_inject_styles__ = undefined;
92
+ /* scoped */
93
+ const __vue_scope_id__ = undefined;
94
+ /* module identifier */
95
+ const __vue_module_identifier__ = undefined;
96
+ /* functional template */
97
+ const __vue_is_functional_template__ = false;
98
+ /* style inject */
99
+
100
+ /* style inject SSR */
101
+
102
+ /* style inject shadow dom */
103
+
104
+ const __vue_component__ = /*#__PURE__*/normalizeComponent({
105
+ render: __vue_render__,
106
+ staticRenderFns: __vue_staticRenderFns__
107
+ }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
108
+
109
+ export { __vue_component__ as default };