@onereach/ui-components 7.1.1-beta.3553.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/dist/bundled/v2/{OrList-1bb8cbb1.js → OrList-e25dc45f.js} +129 -65
  2. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +1 -1
  3. package/dist/bundled/v2/components/OrDateRangePickerV3/OrDateRangePicker.js +1 -1
  4. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
  5. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -1
  6. package/dist/bundled/v2/components/OrList/OrList.js +3 -2581
  7. package/dist/bundled/v2/components/OrListV3/OrList.js +1 -1
  8. package/dist/bundled/v2/components/OrListV3/OrList.vue.d.ts +30 -26
  9. package/dist/bundled/v2/components/OrListV3/index.d.ts +1 -0
  10. package/dist/bundled/v2/components/OrListV3/index.js +1 -1
  11. package/dist/bundled/v2/components/OrListV3/styles.d.ts +1 -0
  12. package/dist/bundled/v2/components/OrListV3/styles.js +2 -1
  13. package/dist/bundled/v2/components/OrListV3/types.d.ts +4 -0
  14. package/dist/bundled/v2/components/OrListV3/types.js +1 -0
  15. package/dist/bundled/v2/components/index.js +2 -2
  16. package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +2 -0
  17. package/dist/bundled/v2/index.js +3 -3
  18. package/dist/bundled/{v3/OrList.vue_vue_type_script_lang-bc49c1ff.js → v2/sortable.esm-11705107.js} +1 -1007
  19. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-79c15c42.js → OrCardCollection.vue_vue_type_script_lang-2ce06287.js} +3 -3
  20. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-c1b79f15.js → OrCode.vue_vue_type_script_lang-ed0c782e.js} +2 -2
  21. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-ac0e29e9.js → OrConfirm.vue_vue_type_script_lang-3717bdc9.js} +1 -1
  22. package/dist/bundled/v3/{OrContextMenu.vue_vue_type_script_lang-9965a7ee.js → OrContextMenu.vue_vue_type_script_lang-faabc0aa.js} +1 -1
  23. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-38ecba3a.js → OrDatePicker.vue_vue_type_script_lang-3cb0cf6b.js} +4 -4
  24. package/dist/bundled/v3/{OrDateRangePicker.vue_vue_type_script_lang-6c57d848.js → OrDateRangePicker.vue_vue_type_script_lang-8fc45f7e.js} +3 -3
  25. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-0b1559d3.js → OrDateTimePicker.vue_vue_type_script_lang-8e1cb539.js} +4 -4
  26. package/dist/bundled/v3/{OrDateTimePickerMonthSelect.vue_vue_type_script_lang-0c826945.js → OrDateTimePickerMonthSelect.vue_vue_type_script_lang-944f5be2.js} +2 -2
  27. package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-f08110c4.js → OrDateTimePickerPopoverHeader-adf15a04.js} +1 -1
  28. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-90648210.js → OrIconButton.vue_vue_type_script_lang-14f36240.js} +1 -1
  29. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-eafbf015.js → OrInlineInput.vue_vue_type_script_lang-a657b7b4.js} +1 -1
  30. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-6b88499a.js → OrInlineTextarea.vue_vue_type_script_lang-d0007d91.js} +1 -1
  31. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-7e02f424.js → OrInput.vue_vue_type_script_lang-bbf2d591.js} +1 -1
  32. package/dist/bundled/v3/OrList.vue_vue_type_script_lang-6a8befb2.js +208 -0
  33. package/dist/bundled/v3/OrList.vue_vue_type_script_lang-8df85a8d.js +1008 -0
  34. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-3d17e3d2.js → OrListOfInputs.vue_vue_type_script_lang-34a006d0.js} +1 -1
  35. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-af4f2a40.js → OrMenu.vue_vue_type_script_lang-bb8832d7.js} +1 -1
  36. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-0d3b5147.js → OrModal.vue_vue_type_script_lang-051dddcb.js} +1 -1
  37. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-dddec4de.js → OrNotification.vue_vue_type_script_lang-d95be0bc.js} +1 -1
  38. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-8eb1510b.js → OrPagination.vue_vue_type_script_lang-9cbebadb.js} +1 -1
  39. package/dist/bundled/v3/{OrResizeablePanel.vue_vue_type_script_lang-f121c786.js → OrResizeablePanel.vue_vue_type_script_lang-15321cdb.js} +1 -1
  40. package/dist/bundled/v3/{OrRichTextEditor.vue_vue_type_script_lang-2d4d62a7.js → OrRichTextEditor.vue_vue_type_script_lang-d35ab507.js} +5 -5
  41. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-63479512.js → OrSearch.vue_vue_type_script_lang-d5d5ced4.js} +1 -1
  42. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-2848dfcb.js → OrSelect.vue_vue_type_script_lang-4ce1aad8.js} +4 -4
  43. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-8b27f24b.js → OrSidebar.vue_vue_type_script_lang-a2b5ddd8.js} +1 -1
  44. package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-9f514be8.js → OrSorting.vue_vue_type_script_lang-5f90a4ca.js} +1 -1
  45. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-4675145f.js → OrTabs.vue_vue_type_script_lang-27819312.js} +1 -1
  46. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-0658354d.js → OrTag.vue_vue_type_script_lang-afc42fba.js} +1 -1
  47. package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-7d758cdd.js → OrTagInput.vue_vue_type_script_lang-79062a86.js} +2 -2
  48. package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-2804af4c.js → OrTags.vue_vue_type_script_lang-41446a34.js} +2 -2
  49. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-2031ee3a.js → OrTimePicker.vue_vue_type_script_lang-1f50fb53.js} +2 -2
  50. package/dist/bundled/v3/{OrTimeRangePicker.vue_vue_type_script_lang-4a548281.js → OrTimeRangePicker.vue_vue_type_script_lang-864b4f86.js} +2 -2
  51. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-8af0ce75.js → OrTooltip.vue_vue_type_script_lang-46e8aa97.js} +1 -1
  52. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +2 -2
  53. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
  54. package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
  55. package/dist/bundled/v3/components/OrCodeV3/index.js +1 -1
  56. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +2 -2
  57. package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
  58. package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +2 -2
  59. package/dist/bundled/v3/components/OrContextMenuV3/index.js +1 -1
  60. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +2 -2
  61. package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
  62. package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.js +2 -2
  63. package/dist/bundled/v3/components/OrDateRangePickerV3/index.js +1 -1
  64. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
  65. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +2 -2
  66. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +2 -2
  67. package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
  68. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
  69. package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
  70. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
  71. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
  72. package/dist/bundled/v3/components/OrInputV3/OrInput.js +2 -2
  73. package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
  74. package/dist/bundled/v3/components/OrList/OrList.js +2 -2
  75. package/dist/bundled/v3/components/OrList/index.js +1 -1
  76. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +2 -2
  77. package/dist/bundled/v3/components/OrListOfInputs/index.js +1 -1
  78. package/dist/bundled/v3/components/OrListV3/OrList.js +19 -22
  79. package/dist/bundled/v3/components/OrListV3/OrList.vue.d.ts +25 -16
  80. package/dist/bundled/v3/components/OrListV3/index.d.ts +1 -0
  81. package/dist/bundled/v3/components/OrListV3/index.js +1 -1
  82. package/dist/bundled/v3/components/OrListV3/styles.d.ts +1 -0
  83. package/dist/bundled/v3/components/OrListV3/styles.js +2 -1
  84. package/dist/bundled/v3/components/OrListV3/types.d.ts +4 -0
  85. package/dist/bundled/v3/components/OrListV3/types.js +1 -0
  86. package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +2 -2
  87. package/dist/bundled/v3/components/OrMenuV3/index.js +1 -1
  88. package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
  89. package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
  90. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +2 -2
  91. package/dist/bundled/v3/components/OrNotificationV3/index.js +1 -1
  92. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +2 -2
  93. package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
  94. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +2 -2
  95. package/dist/bundled/v3/components/OrPopoverV3/index.js +1 -1
  96. package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +2 -2
  97. package/dist/bundled/v3/components/OrProgressV3/index.js +1 -1
  98. package/dist/bundled/v3/components/OrResizeablePanelV3/OrResizeablePanel.js +2 -2
  99. package/dist/bundled/v3/components/OrResizeablePanelV3/index.js +1 -1
  100. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +2 -2
  101. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +1 -1
  102. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +2 -2
  103. package/dist/bundled/v3/components/OrSearchV3/index.js +1 -1
  104. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -2
  105. package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
  106. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
  107. package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
  108. package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +2 -2
  109. package/dist/bundled/v3/components/OrSortingV3/index.js +1 -1
  110. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
  111. package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
  112. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +2 -2
  113. package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
  114. package/dist/bundled/v3/components/OrTagV3/OrTag.js +2 -2
  115. package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
  116. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +2 -2
  117. package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
  118. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +2 -2
  119. package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
  120. package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.js +2 -2
  121. package/dist/bundled/v3/components/OrTimeRangePickerV3/index.js +1 -1
  122. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +2 -2
  123. package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
  124. package/dist/bundled/v3/components/OrToastV3/OrToast.js +1 -1
  125. package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
  126. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +2 -2
  127. package/dist/bundled/v3/components/OrTooltipV3/index.js +1 -1
  128. package/dist/bundled/v3/components/index.js +35 -35
  129. package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +2 -0
  130. package/dist/bundled/v3/index.js +36 -36
  131. package/dist/bundled/v3/sortable.esm-11705107.js +2580 -0
  132. package/dist/esm/v2/{OrList-5c383b3c.js → OrList-bf420a7c.js} +88 -62
  133. package/dist/esm/v2/{OrListItem-c6b0dd77.js → OrListItem-534e8e9d.js} +43 -4
  134. package/dist/esm/v2/components/index.js +2 -2
  135. package/dist/esm/v2/components/or-list-v3/OrList.vue.d.ts +30 -26
  136. package/dist/esm/v2/components/or-list-v3/index.d.ts +1 -0
  137. package/dist/esm/v2/components/or-list-v3/index.js +3 -2
  138. package/dist/esm/v2/components/or-list-v3/partials/index.js +1 -1
  139. package/dist/esm/v2/components/or-list-v3/partials/or-list-item/OrListItem.vue.d.ts +42 -2
  140. package/dist/esm/v2/components/or-list-v3/partials/or-list-item/styles.d.ts +1 -0
  141. package/dist/esm/v2/components/or-list-v3/styles.d.ts +1 -0
  142. package/dist/esm/v2/components/or-list-v3/types.d.ts +4 -0
  143. package/dist/esm/v2/index.js +2 -2
  144. package/dist/esm/v3/OrList-f846aad7.js +211 -0
  145. package/dist/esm/v3/OrListItem-2ed9a12f.js +70 -0
  146. package/dist/esm/v3/components/index.js +2 -2
  147. package/dist/esm/v3/components/or-list-v3/OrList.vue.d.ts +25 -16
  148. package/dist/esm/v3/components/or-list-v3/index.d.ts +1 -0
  149. package/dist/esm/v3/components/or-list-v3/index.js +3 -2
  150. package/dist/esm/v3/components/or-list-v3/partials/index.js +1 -1
  151. package/dist/esm/v3/components/or-list-v3/partials/or-list-item/OrListItem.vue.d.ts +33 -2
  152. package/dist/esm/v3/components/or-list-v3/partials/or-list-item/styles.d.ts +1 -0
  153. package/dist/esm/v3/components/or-list-v3/styles.d.ts +1 -0
  154. package/dist/esm/v3/components/or-list-v3/types.d.ts +4 -0
  155. package/dist/esm/v3/index.js +2 -2
  156. package/package.json +4 -3
  157. package/src/components/or-list-v3/OrList.vue +118 -78
  158. package/src/components/or-list-v3/index.ts +1 -0
  159. package/src/components/or-list-v3/partials/or-list-item/OrListItem.vue +32 -2
  160. package/src/components/or-list-v3/partials/or-list-item/styles.ts +27 -0
  161. package/src/components/or-list-v3/styles.ts +2 -0
  162. package/src/components/or-list-v3/types.ts +4 -0
  163. package/dist/bundled/v3/OrList.vue_vue_type_script_lang-8f6fa1e3.js +0 -141
  164. package/dist/esm/v3/OrList-f2ad37ed.js +0 -182
  165. package/dist/esm/v3/OrListItem-d89cd659.js +0 -33
  166. /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-c7959782.js → OrDateTimePickerMonthSelect-9870c649.js} +0 -0
  167. /package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-62552b5d.js → OrPopover.vue_vue_type_script_lang-f80a7a1b.js} +0 -0
  168. /package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-9f7dcc82.js → OrProgress.vue_vue_type_script_lang-aa3d9804.js} +0 -0
  169. /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-a932333f.js → OrToastContainer.vue_vue_type_script_lang-1f10ba7f.js} +0 -0
@@ -4,10 +4,10 @@ import { openBlock, createElementBlock, normalizeClass, Fragment, renderList, re
4
4
  import { gridView, defaultViewModes } from './components/OrCardCollectionV3/props.js';
5
5
  import './components/OrIconButtonV3/OrIconButton.js';
6
6
  import './components/OrSortingV3/OrSorting.js';
7
- import { s as script$3 } from './OrSorting.vue_vue_type_script_lang-9f514be8.js';
7
+ import { s as script$3 } from './OrSorting.vue_vue_type_script_lang-5f90a4ca.js';
8
8
  import './components/OrSearchV3/OrSearch.js';
9
- import { s as script$4 } from './OrSearch.vue_vue_type_script_lang-63479512.js';
10
- import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-90648210.js';
9
+ import { s as script$4 } from './OrSearch.vue_vue_type_script_lang-d5d5ced4.js';
10
+ import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-14f36240.js';
11
11
 
12
12
  var script$1 = defineComponent({
13
13
  name: 'OrCardCollectionView',
@@ -13,9 +13,9 @@ import { s as script$4 } from './OrInputBox.vue_vue_type_script_lang-989d5ee6.js
13
13
  import { s as script$5 } from './OrLabel.vue_vue_type_script_lang-e2bcff17.js';
14
14
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, renderSlot, createTextVNode, toDisplayString, createElementVNode, withDirectives, createBlock, createCommentVNode, vShow } from 'vue';
15
15
  import './components/OrModalV3/OrModal.js';
16
- import { s as script$6 } from './OrModal.vue_vue_type_script_lang-0d3b5147.js';
16
+ import { s as script$6 } from './OrModal.vue_vue_type_script_lang-051dddcb.js';
17
17
  import './components/OrIconButtonV3/OrIconButton.js';
18
- import { s as script$7 } from './OrIconButton.vue_vue_type_script_lang-90648210.js';
18
+ import { s as script$7 } from './OrIconButton.vue_vue_type_script_lang-14f36240.js';
19
19
  import { useIdAttribute } from './hooks/useIdAttribute.js';
20
20
  import { useControlAttributes } from './hooks/useControlAttributes.js';
21
21
  import { useValidationAttributes } from './hooks/useValidationAttributes.js';
@@ -9,7 +9,7 @@ import './components/OrInputV3/OrInput.js';
9
9
  import { ButtonColor } from './components/OrButtonV3/props.js';
10
10
  import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-5b1f4a36.js';
11
11
  import { s as script$2 } from './OrButton.vue_vue_type_script_lang-0f7bda53.js';
12
- import { s as script$3 } from './OrInput.vue_vue_type_script_lang-7e02f424.js';
12
+ import { s as script$3 } from './OrInput.vue_vue_type_script_lang-bbf2d591.js';
13
13
  import { usePopoverState } from './hooks/usePopoverState.js';
14
14
  import { w as whenever } from './index-6cbf1493.js';
15
15
 
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, watch } from 'vue-demi';
2
2
  import './components/OrMenuV3/OrMenu.js';
3
- import { s as script$1 } from './OrMenu.vue_vue_type_script_lang-af4f2a40.js';
3
+ import { s as script$1 } from './OrMenu.vue_vue_type_script_lang-bb8832d7.js';
4
4
  import { PopoverPlacement } from './components/OrPopoverV3/props.js';
5
5
  import { usePopoverState } from './hooks/usePopoverState.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, watch, toRef } from 'vue-demi';
2
2
  import { DatePicker, DatePickerPopover } from './components/OrDatePickerV3/styles.js';
3
- import './OrDateTimePickerPopoverHeader-f08110c4.js';
3
+ import './OrDateTimePickerPopoverHeader-adf15a04.js';
4
4
  import './components/OrErrorV3/OrError.js';
5
5
  import './components/OrHintV3/OrHint.js';
6
6
  import './components/OrIconV3/OrIcon.js';
@@ -8,15 +8,15 @@ import './components/OrIconButtonV3/OrIconButton.js';
8
8
  import './components/OrInputBoxV3/OrInputBox.js';
9
9
  import './components/OrLabelV3/OrLabel.js';
10
10
  import './components/OrPopoverV3/OrPopover.js';
11
- import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect.vue_vue_type_script_lang-0c826945.js';
11
+ import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect.vue_vue_type_script_lang-944f5be2.js';
12
12
  import { s as script$3, a as script$5, b as script$6 } from './OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-1f596d82.js';
13
13
  import { s as script$7 } from './OrError.vue_vue_type_script_lang-fcf91781.js';
14
14
  import { s as script$8 } from './OrHint.vue_vue_type_script_lang-0ab8b932.js';
15
15
  import { s as script$9 } from './OrIcon.vue_vue_type_script_lang-bc674d9e.js';
16
- import { s as script$a } from './OrIconButton.vue_vue_type_script_lang-90648210.js';
16
+ import { s as script$a } from './OrIconButton.vue_vue_type_script_lang-14f36240.js';
17
17
  import { s as script$b } from './OrInputBox.vue_vue_type_script_lang-989d5ee6.js';
18
18
  import { s as script$c } from './OrLabel.vue_vue_type_script_lang-e2bcff17.js';
19
- import { s as script$d } from './OrPopover.vue_vue_type_script_lang-62552b5d.js';
19
+ import { s as script$d } from './OrPopover.vue_vue_type_script_lang-f80a7a1b.js';
20
20
  import { DropdownClose } from './directives/dropdown-close.js';
21
21
  import { DropdownOpen } from './directives/dropdown-open.js';
22
22
  import { InputBoxSize } from './components/OrInputBoxV3/props.js';
@@ -8,15 +8,15 @@ import './components/OrInputBoxV3/OrInputBox.js';
8
8
  import './components/OrLabelV3/OrLabel.js';
9
9
  import './components/OrPopoverV3/OrPopover.js';
10
10
  import { getNextMonthDate } from './components/OrDateTimePickerV3/utils/getNextMonthDate.js';
11
- import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect.vue_vue_type_script_lang-0c826945.js';
11
+ import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect.vue_vue_type_script_lang-944f5be2.js';
12
12
  import { s as script$3, a as script$5, b as script$6 } from './OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-1f596d82.js';
13
13
  import { s as script$7 } from './OrError.vue_vue_type_script_lang-fcf91781.js';
14
14
  import { s as script$8 } from './OrHint.vue_vue_type_script_lang-0ab8b932.js';
15
15
  import { s as script$9 } from './OrIcon.vue_vue_type_script_lang-bc674d9e.js';
16
- import { s as script$a } from './OrIconButton.vue_vue_type_script_lang-90648210.js';
16
+ import { s as script$a } from './OrIconButton.vue_vue_type_script_lang-14f36240.js';
17
17
  import { s as script$b } from './OrInputBox.vue_vue_type_script_lang-989d5ee6.js';
18
18
  import { s as script$c } from './OrLabel.vue_vue_type_script_lang-e2bcff17.js';
19
- import { s as script$d } from './OrPopover.vue_vue_type_script_lang-62552b5d.js';
19
+ import { s as script$d } from './OrPopover.vue_vue_type_script_lang-f80a7a1b.js';
20
20
  import { DropdownClose } from './directives/dropdown-close.js';
21
21
  import { DropdownOpen } from './directives/dropdown-open.js';
22
22
  import { InputBoxSize } from './components/OrInputBoxV3/props.js';
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, ref, computed, watch, toRef } from 'vue-demi';
2
- import './OrDateTimePickerPopoverHeader-f08110c4.js';
2
+ import './OrDateTimePickerPopoverHeader-adf15a04.js';
3
3
  import './OrDateTimePickerTimeSelect-2f107e35.js';
4
4
  import { DateTimePickerTimeFormat } from './components/OrDateTimePickerV3/props.js';
5
5
  import { DateTimePicker, DateTimePickerDatePopover, DateTimePickerTimePopover } from './components/OrDateTimePickerV3/styles.js';
6
- import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect.vue_vue_type_script_lang-0c826945.js';
6
+ import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect.vue_vue_type_script_lang-944f5be2.js';
7
7
  import { s as script$3, a as script$5, b as script$6 } from './OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-1f596d82.js';
8
8
  import { s as script$7, a as script$8 } from './OrDateTimePickerTimeSelect.vue_vue_type_script_lang-c8d018a1.js';
9
9
  import './components/OrErrorV3/OrError.js';
@@ -19,10 +19,10 @@ import { getCurrentDate } from './components/OrDateTimePickerV3/utils/getCurrent
19
19
  import { s as script$9 } from './OrError.vue_vue_type_script_lang-fcf91781.js';
20
20
  import { s as script$a } from './OrHint.vue_vue_type_script_lang-0ab8b932.js';
21
21
  import { s as script$b } from './OrIcon.vue_vue_type_script_lang-bc674d9e.js';
22
- import { s as script$c } from './OrIconButton.vue_vue_type_script_lang-90648210.js';
22
+ import { s as script$c } from './OrIconButton.vue_vue_type_script_lang-14f36240.js';
23
23
  import { s as script$d } from './OrInputBox.vue_vue_type_script_lang-989d5ee6.js';
24
24
  import { s as script$e } from './OrLabel.vue_vue_type_script_lang-e2bcff17.js';
25
- import { s as script$f } from './OrPopover.vue_vue_type_script_lang-62552b5d.js';
25
+ import { s as script$f } from './OrPopover.vue_vue_type_script_lang-f80a7a1b.js';
26
26
  import { InputBoxSize } from './components/OrInputBoxV3/props.js';
27
27
  import { useProxyModelValue } from './hooks/useProxyModelValue.js';
28
28
 
@@ -9,8 +9,8 @@ import './components/OrIconButtonV3/OrIconButton.js';
9
9
  import './components/OrMenuV3/OrMenu.js';
10
10
  import './components/OrMenuItemV3/OrMenuItem.js';
11
11
  import { s as script$4 } from './OrIcon.vue_vue_type_script_lang-bc674d9e.js';
12
- import { s as script$5 } from './OrIconButton.vue_vue_type_script_lang-90648210.js';
13
- import { s as script$6 } from './OrMenu.vue_vue_type_script_lang-af4f2a40.js';
12
+ import { s as script$5 } from './OrIconButton.vue_vue_type_script_lang-14f36240.js';
13
+ import { s as script$6 } from './OrMenu.vue_vue_type_script_lang-bb8832d7.js';
14
14
  import { s as script$7 } from './OrMenuItem.vue_vue_type_script_lang-1e9ee207.js';
15
15
 
16
16
  const DateTimePickerDateControl = [
@@ -1,4 +1,4 @@
1
- import { s as script, a as script$1, b as script$3 } from './OrDateTimePickerMonthSelect.vue_vue_type_script_lang-0c826945.js';
1
+ import { s as script, a as script$1, b as script$3 } from './OrDateTimePickerMonthSelect.vue_vue_type_script_lang-944f5be2.js';
2
2
  import { openBlock, createElementBlock, normalizeClass, Fragment, createTextVNode, toDisplayString, resolveComponent, createElementVNode, renderList, createBlock, withModifiers, withCtx, createVNode, renderSlot } from 'vue';
3
3
  import { s as script$2, a as script$4, b as script$5 } from './OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-1f596d82.js';
4
4
 
@@ -3,7 +3,7 @@ import { IconButtonColor } from './components/OrIconButtonV3/props.js';
3
3
  import { IconButton, IconButtonColors } from './components/OrIconButtonV3/styles.js';
4
4
  import './components/OrIconV3/OrIcon.js';
5
5
  import './components/OrTooltipV3/OrTooltip.js';
6
- import { s as script$2 } from './OrTooltip.vue_vue_type_script_lang-8af0ce75.js';
6
+ import { s as script$2 } from './OrTooltip.vue_vue_type_script_lang-46e8aa97.js';
7
7
  import { IconSize, IconVariant } from './components/OrIconV3/props.js';
8
8
  import { s as script$1 } from './OrIcon.vue_vue_type_script_lang-bc674d9e.js';
9
9
 
@@ -9,7 +9,7 @@ import { s as script$4 } from './OrInlineInputBox.vue_vue_type_script_lang-fe99c
9
9
  import { InlineInputBoxSize } from './components/OrInlineInputBoxV3/props.js';
10
10
  import { s as script$1 } from './OrError.vue_vue_type_script_lang-fcf91781.js';
11
11
  import { s as script$2 } from './OrHint.vue_vue_type_script_lang-0ab8b932.js';
12
- import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-90648210.js';
12
+ import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-14f36240.js';
13
13
  import { useIdAttribute } from './hooks/useIdAttribute.js';
14
14
  import { useControlAttributes } from './hooks/useControlAttributes.js';
15
15
  import { useValidationAttributes } from './hooks/useValidationAttributes.js';
@@ -6,7 +6,7 @@ import './components/OrIconButtonV3/OrIconButton.js';
6
6
  import './components/OrInlineInputBoxV3/OrInlineInputBox.js';
7
7
  import { s as script$1 } from './OrError.vue_vue_type_script_lang-fcf91781.js';
8
8
  import { s as script$2 } from './OrHint.vue_vue_type_script_lang-0ab8b932.js';
9
- import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-90648210.js';
9
+ import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-14f36240.js';
10
10
  import { s as script$4 } from './OrInlineInputBox.vue_vue_type_script_lang-fe99c485.js';
11
11
  import { useIdAttribute } from './hooks/useIdAttribute.js';
12
12
  import { useControlAttributes } from './hooks/useControlAttributes.js';
@@ -7,7 +7,7 @@ import './components/OrHintV3/OrHint.js';
7
7
  import { s as script$2 } from './OrHint.vue_vue_type_script_lang-0ab8b932.js';
8
8
  import './components/OrIconV3/OrIcon.js';
9
9
  import './components/OrIconButtonV3/OrIconButton.js';
10
- import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-90648210.js';
10
+ import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-14f36240.js';
11
11
  import './components/OrInputBoxV3/OrInputBox.js';
12
12
  import { s as script$5 } from './OrInputBox.vue_vue_type_script_lang-989d5ee6.js';
13
13
  import './components/OrLabelV3/OrLabel.js';
@@ -0,0 +1,208 @@
1
+ import { S as Sortable } from './sortable.esm-11705107.js';
2
+ import { v as v4 } from './v4-cf8987a3.js';
3
+ import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
4
+ import { openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot } from 'vue';
5
+ import { List, ListContent } from './components/OrListV3/styles.js';
6
+ import './components/OrIconButtonV3/OrIconButton.js';
7
+ import './components/OrLabelV3/OrLabel.js';
8
+ import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-14f36240.js';
9
+ import { s as script$3 } from './OrLabel.vue_vue_type_script_lang-e2bcff17.js';
10
+ import { useProxyModelValue } from './hooks/useProxyModelValue.js';
11
+
12
+ const ListItem = [
13
+ // Interactivity (draggable)
14
+ 'draggable:interactivity-drag',
15
+ // Spacing
16
+ 'px-md md:px-sm', 'py-md md:py-sm',
17
+ // Shape
18
+ 'rounded-md',
19
+ // Theme (hover)
20
+ 'hover:theme-background-primary-translucent-1', 'dark:hover:theme-background-primary-translucent-1-dark',
21
+ // Theme (focus)
22
+ 'focus-within:theme-outline-2-primary', 'dark:focus-within:theme-outline-2-primary-dark',
23
+ // Theme (selected)
24
+ 'selected:theme-background-primary-translucent-3', 'dark:selected:theme-background-primary-translucent-3-dark'];
25
+ const ListItemContent = [
26
+ // Layout
27
+ 'layout-row',
28
+ // Spacing
29
+ 'px-md md:px-sm', 'py-md md:py-sm', 'gap-sm'];
30
+
31
+ var script$1 = defineComponent({
32
+ props: {
33
+ selected: {
34
+ type: Boolean,
35
+ default: false
36
+ },
37
+ disabled: {
38
+ type: Boolean,
39
+ default: false
40
+ },
41
+ draggable: {
42
+ type: Boolean,
43
+ default: false
44
+ }
45
+ },
46
+ setup() {
47
+ // Refs
48
+ const root = ref();
49
+ // Styles
50
+ const rootStyles = computed(() => ['or-list-item-v3', ...ListItem]);
51
+ const contentStyles = computed(() => [...ListItemContent]);
52
+ return {
53
+ root,
54
+ rootStyles,
55
+ contentStyles
56
+ };
57
+ }
58
+ });
59
+
60
+ const _hoisted_1 = ["selected", "disabled", "draggable"];
61
+ const _hoisted_2 = ["disabled"];
62
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
63
+ return openBlock(), createElementBlock("div", {
64
+ ref: "root",
65
+ class: normalizeClass(_ctx.rootStyles),
66
+ selected: _ctx.selected,
67
+ disabled: _ctx.disabled,
68
+ draggable: _ctx.draggable
69
+ }, [createElementVNode("div", {
70
+ class: normalizeClass(_ctx.contentStyles),
71
+ disabled: _ctx.disabled
72
+ }, [renderSlot(_ctx.$slots, "default")], 10 /* CLASS, PROPS */, _hoisted_2)], 10 /* CLASS, PROPS */, _hoisted_1);
73
+ }
74
+
75
+ script$1.render = render;
76
+ script$1.__file = "src/components/or-list-v3/partials/or-list-item/OrListItem.vue";
77
+
78
+ var script = defineComponent({
79
+ components: {
80
+ OrIconButton: script$2,
81
+ OrLabel: script$3,
82
+ OrListItem: script$1
83
+ },
84
+ model: {
85
+ prop: 'modelValue',
86
+ event: 'update:modelValue'
87
+ },
88
+ props: {
89
+ modelValue: {
90
+ type: Array,
91
+ default: () => []
92
+ },
93
+ selection: {
94
+ type: Array,
95
+ default: () => []
96
+ },
97
+ itemFactory: {
98
+ type: Function,
99
+ default: () => ({})
100
+ },
101
+ label: {
102
+ type: String,
103
+ default: undefined
104
+ },
105
+ disabled: {
106
+ type: Boolean,
107
+ default: false
108
+ },
109
+ canAdd: {
110
+ type: Boolean,
111
+ default: true
112
+ },
113
+ canDelete: {
114
+ type: Boolean,
115
+ default: true
116
+ },
117
+ canReorder: {
118
+ type: Boolean,
119
+ default: true
120
+ }
121
+ },
122
+ emits: ['update:modelValue', 'before:add', 'before:delete', 'before:reorder', 'add', 'delete', 'reorder'],
123
+ expose: ['root'],
124
+ setup(props, context) {
125
+ // Refs
126
+ const root = ref();
127
+ const content = ref();
128
+ // Styles
129
+ const rootStyles = computed(() => ['or-list-v3', ...List]);
130
+ const contentStyles = computed(() => [...ListContent]);
131
+ // State
132
+ const proxyModelValue = useProxyModelValue(toRef(props, 'modelValue'), context.emit);
133
+ // Effects
134
+ // #region Sortable
135
+ let sortable;
136
+ watch([content, () => props.canReorder], _ref => {
137
+ let [content, canReorder] = _ref;
138
+ sortable === null || sortable === void 0 ? void 0 : sortable.destroy();
139
+ sortable = undefined;
140
+ if (content && canReorder) {
141
+ sortable = Sortable.create(content, {
142
+ disabled: props.disabled,
143
+ onUpdate: event => {
144
+ context.emit('before:reorder', proxyModelValue.value);
145
+ const nextModelValue = [...proxyModelValue.value];
146
+ const reorderedItem = nextModelValue.splice(event.oldIndex, 1)[0];
147
+ nextModelValue.splice(event.newIndex, 0, reorderedItem);
148
+ context.emit('reorder', reorderedItem, event.newIndex, event.oldIndex, proxyModelValue.value = nextModelValue);
149
+ }
150
+ });
151
+ }
152
+ });
153
+ watch(() => props.disabled, value => {
154
+ sortable === null || sortable === void 0 ? void 0 : sortable.option('disabled', value);
155
+ });
156
+ // #endregion
157
+ // Methods
158
+ function addItem() {
159
+ context.emit('before:add', proxyModelValue.value);
160
+ const addedItem = props.itemFactory();
161
+ const nextModelValue = [...proxyModelValue.value, addedItem];
162
+ context.emit('add', addedItem, nextModelValue.indexOf(addedItem), proxyModelValue.value = nextModelValue);
163
+ }
164
+ function deleteItem(index) {
165
+ context.emit('before:delete', proxyModelValue.value);
166
+ const deletedItem = proxyModelValue.value[index];
167
+ const nextModelValue = proxyModelValue.value.filter(item => item !== deletedItem);
168
+ context.emit('delete', deletedItem, index, proxyModelValue.value = nextModelValue);
169
+ }
170
+ // Handlers
171
+ // function onDragStart(event: DragEvent): void {
172
+ // console.log('dragstart', event);
173
+ // }
174
+ // function onDragEnter(event: DragEvent): void {
175
+ // console.log('dragenter', event);
176
+ // }
177
+ // function onDragOver(event: DragEvent): void {
178
+ // console.log('dragover', event);
179
+ // }
180
+ // function onDragLeave(event: DragEvent): void {
181
+ // console.log('dragleave', event);
182
+ // }
183
+ // function onDragEnd(event: DragEvent): void {
184
+ // console.log('dragend', event);
185
+ // }
186
+ // function onDrop(event: DragEvent): void {
187
+ // console.log('drop', event);
188
+ // }
189
+ return {
190
+ root,
191
+ content,
192
+ rootStyles,
193
+ contentStyles,
194
+ proxyModelValue,
195
+ addItem,
196
+ deleteItem,
197
+ // onDragStart,
198
+ // onDragEnter,
199
+ // onDragOver,
200
+ // onDragLeave,
201
+ // onDragEnd,
202
+ // onDrop,
203
+ uuid: v4
204
+ };
205
+ }
206
+ });
207
+
208
+ export { script$1 as a, script as s };