@onereach/ui-components 4.11.1 → 4.11.3-beta.2972.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.
- package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +22 -59
- package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +2 -25
- package/dist/bundled/v2/components/OrCardCollectionV3/index.js +5 -4
- package/dist/bundled/v2/components/OrCardCollectionV3/styles.js +6 -5
- package/dist/bundled/v2/components/OrCardCollectionV3/types.d.ts +0 -4
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +1 -1
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrFabV3/OrFab.vue.d.ts +5 -5
- package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +6 -1
- package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.vue.d.ts +11 -0
- package/dist/bundled/v2/components/OrMenuItemV3/styles.js +3 -1
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +21 -20
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.vue.d.ts +5 -5
- package/dist/bundled/v2/components/OrSidebarV3/props.d.ts +2 -2
- package/dist/bundled/v2/components/OrSidebarV3/props.js +2 -2
- package/dist/bundled/v2/components/OrSidebarV3/styles.js +10 -12
- package/dist/bundled/v2/components/OrSortingV3/OrSortingV3.js +148 -0
- package/dist/bundled/v2/components/OrSortingV3/OrSortingV3.vue.d.ts +63 -0
- package/dist/bundled/v2/components/OrSortingV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrSortingV3/index.js +33 -0
- package/dist/bundled/v2/components/OrSortingV3/types.d.ts +4 -0
- package/dist/bundled/v2/components/OrSortingV3/types.js +1 -0
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +2 -1
- package/dist/bundled/v2/index.js +3 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-c7d9f452.js → OrCardCollection.vue_vue_type_script_lang-a833fe48.js} +6 -31
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-22c66c0d.js → OrCode.vue_vue_type_script_lang-ec51e1e8.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-88d3aeda.js → OrConfirm.vue_vue_type_script_lang-2f107000.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-80de9d3a.js → OrDatePicker.vue_vue_type_script_lang-17a4f0de.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-300f009d.js → OrDateTimePicker.vue_vue_type_script_lang-eae6683b.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-44038b6b.js → OrDateTimePickerMonthSelect-14136fbd.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-41792494.js → OrIconButton.vue_vue_type_script_lang-42887e92.js} +5 -0
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-fec60585.js → OrInlineInput.vue_vue_type_script_lang-13269054.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-4265a2a2.js → OrInlineTextarea.vue_vue_type_script_lang-3a251a7b.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-0b8a2b69.js → OrInput.vue_vue_type_script_lang-73c33e2e.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-e00165f1.js → OrModal.vue_vue_type_script_lang-5397e0dd.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-9d3dd0d9.js → OrNotification.vue_vue_type_script_lang-a0b4041e.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-cf545aab.js → OrPagination.vue_vue_type_script_lang-29423a33.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-3fa2209d.js → OrSearch.vue_vue_type_script_lang-143806cd.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-b11ea2e9.js → OrSelect.vue_vue_type_script_lang-cd8928f7.js} +3 -3
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-55f0db3b.js → OrSidebar.vue_vue_type_script_lang-9298b6e0.js} +22 -22
- package/dist/bundled/v3/OrSortingV3.vue_vue_type_script_lang-9e8ccd25.js +61 -0
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-9072248f.js → OrTabs.vue_vue_type_script_lang-ca608c74.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-640a19c4.js → OrTag.vue_vue_type_script_lang-47c6bbdc.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-67c8d12f.js → OrTagInput.vue_vue_type_script_lang-c2fc7f9a.js} +2 -2
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-18b7221b.js → OrTags.vue_vue_type_script_lang-425bb731.js} +1 -1
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-5c88aee4.js → OrTimePicker.vue_vue_type_script_lang-c00997fc.js} +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +25 -50
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +2 -5
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +12 -10
- package/dist/bundled/v3/components/OrCardCollectionV3/styles.js +6 -5
- package/dist/bundled/v3/components/OrCardCollectionV3/types.d.ts +0 -4
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +4 -4
- package/dist/bundled/v3/components/OrCodeV3/index.js +3 -3
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +4 -4
- package/dist/bundled/v3/components/OrConfirmV3/index.js +3 -3
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +5 -5
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +4 -4
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +5 -5
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +4 -4
- package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +3 -3
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +3 -3
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +9 -0
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +3 -3
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +3 -3
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +2 -2
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +3 -3
- package/dist/bundled/v3/components/OrInputV3/index.js +2 -2
- package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.js +2 -2
- package/dist/bundled/v3/components/OrMenuItemV3/index.js +1 -1
- package/dist/bundled/v3/components/OrMenuItemV3/styles.js +3 -1
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +3 -3
- package/dist/bundled/v3/components/OrModalV3/index.js +2 -2
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +3 -3
- package/dist/bundled/v3/components/OrNotificationV3/index.js +2 -2
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +3 -3
- package/dist/bundled/v3/components/OrPaginationV3/index.js +2 -2
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +4 -4
- package/dist/bundled/v3/components/OrSearchV3/index.js +3 -3
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +6 -6
- package/dist/bundled/v3/components/OrSelectV3/index.js +5 -5
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +5 -5
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +3 -3
- package/dist/bundled/v3/components/OrSidebarV3/index.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/props.d.ts +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/props.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/styles.js +10 -12
- package/dist/bundled/v3/components/OrSortingV3/OrSortingV3.js +82 -0
- package/dist/bundled/v3/components/OrSortingV3/OrSortingV3.vue.d.ts +33 -0
- package/dist/bundled/v3/components/OrSortingV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrSortingV3/index.js +41 -0
- package/dist/bundled/v3/components/OrSortingV3/types.d.ts +4 -0
- package/dist/bundled/v3/components/OrSortingV3/types.js +1 -0
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +3 -3
- package/dist/bundled/v3/components/OrTabsV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +5 -5
- package/dist/bundled/v3/components/OrTagInputV3/index.js +4 -4
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +3 -3
- package/dist/bundled/v3/components/OrTagV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +4 -4
- package/dist/bundled/v3/components/OrTagsV3/index.js +3 -3
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +3 -3
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +2 -2
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +3 -3
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/index.js +2 -2
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +26 -24
- package/dist/bundled/v3/index.js +29 -27
- package/dist/esm/v2/{OrCardCollection-779ba7ca.js → OrCardCollection-ad88e198.js} +22 -63
- package/dist/esm/v2/{OrCode-26295220.js → OrCode-8d30c597.js} +2 -2
- package/dist/esm/v2/{OrConfirm-cda74328.js → OrConfirm-1cf67ea8.js} +1 -1
- package/dist/esm/v2/{OrDatePicker-a4f95898.js → OrDatePicker-a4f4a69b.js} +2 -2
- package/dist/esm/v2/{OrDateTimePicker-99d3445b.js → OrDateTimePicker-42a90a27.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-729b254d.js → OrDateTimePicker.vue_rollup-plugin-vue_script-ee1a0777.js} +2 -2
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-5fa89936.js → OrDateTimePickerPopoverHeader-482d6094.js} +2 -2
- package/dist/esm/v2/{OrIconButton-2ab8fa02.js → OrIconButton-e7517e6d.js} +6 -1
- package/dist/esm/v2/{OrInlineInput-0c62b3a6.js → OrInlineInput-82238b67.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-c24708a7.js → OrInlineTextarea-e79cfec1.js} +1 -1
- package/dist/esm/v2/{OrInput-dcb61699.js → OrInput-1517ccef.js} +1 -1
- package/dist/esm/v2/{OrMenuItem-6f9b8a93.js → OrMenuItem-c70cff8b.js} +3 -1
- package/dist/esm/v2/{OrModal-abc3b1d9.js → OrModal-af72eb54.js} +1 -1
- package/dist/esm/v2/{OrNotification-5b7028d7.js → OrNotification-eaf8a4b4.js} +1 -1
- package/dist/esm/v2/{OrPagination-4ece4568.js → OrPagination-fe81f687.js} +1 -1
- package/dist/esm/v2/{OrSearch-879c7656.js → OrSearch-f5258a9f.js} +1 -1
- package/dist/esm/v2/{OrSelect-01d61a9a.js → OrSelect-2a1e2171.js} +3 -3
- package/dist/esm/v2/{OrSidebar-bd385865.js → OrSidebar-15fc8f69.js} +19 -22
- package/dist/esm/v2/{OrSidebarCollapseButton-49da331a.js → OrSidebarCollapseButton-6a8079ea.js} +16 -12
- package/dist/esm/v2/OrSortingV3-0c8d3268.js +123 -0
- package/dist/esm/v2/{OrTabs-f9c88893.js → OrTabs-1f6ce605.js} +1 -1
- package/dist/esm/v2/{OrTag-2b9e664b.js → OrTag-d619ed2b.js} +1 -1
- package/dist/esm/v2/{OrTagInput-1548f007.js → OrTagInput-32ad4c5e.js} +2 -2
- package/dist/esm/v2/{OrTags-25a70212.js → OrTags-cf65a7fa.js} +1 -1
- package/dist/esm/v2/{OrTimePicker-9c9a44bc.js → OrTimePicker-6a9e6c50.js} +3 -3
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +26 -25
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +2 -25
- package/dist/esm/v2/components/or-card-collection-v3/index.js +11 -10
- package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +0 -4
- package/dist/esm/v2/components/or-code-v3/index.js +3 -3
- package/dist/esm/v2/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-picker-v3/index.js +4 -4
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +5 -5
- package/dist/esm/v2/components/or-fab-v3/OrFab.vue.d.ts +5 -5
- package/dist/esm/v2/components/or-icon-button-v3/OrIconButton.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-icon-button-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-menu-item-v3/index.js +1 -1
- package/dist/esm/v2/components/or-modal-v3/index.js +2 -2
- package/dist/esm/v2/components/or-notification-v3/index.js +2 -2
- package/dist/esm/v2/components/or-pagination-v3/index.js +2 -2
- package/dist/esm/v2/components/or-search-v3/index.js +3 -3
- package/dist/esm/v2/components/or-select-v3/index.js +5 -5
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +5 -5
- package/dist/esm/v2/components/or-sidebar-v3/index.js +3 -3
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.d.ts +1 -1
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +2 -2
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +1 -1
- package/dist/esm/v2/components/or-sidebar-v3/props.d.ts +2 -2
- package/dist/esm/v2/components/or-sorting-v3/OrSortingV3.vue.d.ts +63 -0
- package/dist/esm/v2/components/or-sorting-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-sorting-v3/index.js +20 -0
- package/dist/esm/v2/components/or-sorting-v3/types.d.ts +4 -0
- package/dist/esm/v2/components/or-tabs-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-input-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tag-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tags-v3/index.js +3 -3
- package/dist/esm/v2/components/or-time-picker-v3/index.js +5 -5
- package/dist/esm/v2/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +2 -2
- package/dist/esm/v2/index.js +26 -25
- package/dist/esm/v2/{types-a74e1e20.js → types-f010f8b9.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-4516594a.js → OrCardCollection-655431a8.js} +23 -72
- package/dist/esm/v3/{OrCode-0c2310e5.js → OrCode-d36e4b44.js} +2 -2
- package/dist/esm/v3/{OrConfirm-240cfe0a.js → OrConfirm-6c4a7b89.js} +1 -1
- package/dist/esm/v3/{OrDatePicker-f4470d79.js → OrDatePicker-0d01feb7.js} +2 -2
- package/dist/esm/v3/{OrDateTimePicker-546c15ec.js → OrDateTimePicker-2c5de2e5.js} +2 -2
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-96a38b4b.js → OrDateTimePickerPopoverHeader-774c3a4f.js} +2 -2
- package/dist/esm/v3/{OrIconButton-00f8f0c7.js → OrIconButton-0edf0894.js} +6 -1
- package/dist/esm/v3/{OrInlineInput-4d47d731.js → OrInlineInput-b88c01a6.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-1415bed9.js → OrInlineTextarea-71e96e67.js} +1 -1
- package/dist/esm/v3/{OrInput-f0e12c81.js → OrInput-1fc808c0.js} +1 -1
- package/dist/esm/v3/{OrMenuItem-dbee450f.js → OrMenuItem-5d14ee25.js} +3 -1
- package/dist/esm/v3/{OrModal-6a90ea79.js → OrModal-53d4af81.js} +1 -1
- package/dist/esm/v3/{OrNotification-117f2dcb.js → OrNotification-42c3a0ec.js} +1 -1
- package/dist/esm/v3/{OrPagination-858337d1.js → OrPagination-98319a31.js} +1 -1
- package/dist/esm/v3/{OrSearch-051adc07.js → OrSearch-e690aff6.js} +1 -1
- package/dist/esm/v3/{OrSelect-b3885148.js → OrSelect-66a6aae2.js} +3 -3
- package/dist/esm/v3/{OrSidebar-47f9d02a.js → OrSidebar-dd7c025b.js} +18 -21
- package/dist/esm/v3/{OrSidebarCollapseButton-86dafbbc.js → OrSidebarCollapseButton-2792a2b4.js} +19 -16
- package/dist/esm/v3/OrSortingV3-bbf11809.js +99 -0
- package/dist/esm/v3/{OrTabs-52e49d84.js → OrTabs-7024930f.js} +1 -1
- package/dist/esm/v3/{OrTag-9adef1cd.js → OrTag-51add0ef.js} +1 -1
- package/dist/esm/v3/{OrTagInput-63d0f5fb.js → OrTagInput-ca1811f7.js} +2 -2
- package/dist/esm/v3/{OrTags-d7a90658.js → OrTags-f6ecdb32.js} +1 -1
- package/dist/esm/v3/{OrTimePicker-98c00a9b.js → OrTimePicker-8b9c0ad6.js} +3 -3
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +25 -24
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +2 -5
- package/dist/esm/v3/components/or-card-collection-v3/index.js +11 -10
- package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +0 -4
- package/dist/esm/v3/components/or-code-v3/index.js +3 -3
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-picker-v3/index.js +4 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +4 -4
- package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +3 -3
- package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +9 -0
- package/dist/esm/v3/components/or-icon-button-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-menu-item-v3/index.js +1 -1
- package/dist/esm/v3/components/or-modal-v3/index.js +2 -2
- package/dist/esm/v3/components/or-notification-v3/index.js +2 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +2 -2
- package/dist/esm/v3/components/or-search-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/index.js +5 -5
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +3 -3
- package/dist/esm/v3/components/or-sidebar-v3/index.js +3 -3
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.d.ts +1 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +2 -2
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +1 -1
- package/dist/esm/v3/components/or-sidebar-v3/props.d.ts +2 -2
- package/dist/esm/v3/components/or-sorting-v3/OrSortingV3.vue.d.ts +33 -0
- package/dist/esm/v3/components/or-sorting-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-sorting-v3/index.js +19 -0
- package/dist/esm/v3/components/or-sorting-v3/types.d.ts +4 -0
- package/dist/esm/v3/components/or-tabs-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-input-v3/index.js +4 -4
- package/dist/esm/v3/components/or-tag-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tags-v3/index.js +3 -3
- package/dist/esm/v3/components/or-time-picker-v3/index.js +5 -5
- package/dist/esm/v3/components/or-toast-v3/index.js +2 -2
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +2 -2
- package/dist/esm/v3/index.js +25 -24
- package/dist/esm/v3/{types-c78924f3.js → types-8d61f1d7.js} +1 -1
- package/package.json +2 -3
- package/src/components/index.ts +1 -0
- package/src/components/or-card-collection-v3/OrCardCollection.vue +11 -53
- package/src/components/or-card-collection-v3/styles.ts +6 -8
- package/src/components/or-card-collection-v3/types.ts +0 -5
- package/src/components/or-fab-v3/OrFab.vue +1 -1
- package/src/components/or-icon-button-v3/OrIconButton.vue +7 -1
- package/src/components/or-menu-item-v3/styles.ts +4 -0
- package/src/components/or-sidebar-v3/OrSidebar.vue +21 -13
- package/src/components/or-sidebar-v3/partials/index.ts +1 -1
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue +21 -14
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.ts +2 -2
- package/src/components/or-sidebar-v3/props.ts +2 -2
- package/src/components/or-sidebar-v3/styles.ts +15 -10
- package/src/components/or-sorting-v3/OrSortingV3.vue +95 -0
- package/src/components/or-sorting-v3/index.ts +2 -0
- package/src/components/or-sorting-v3/types.ts +4 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +0 -1
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +0 -18
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +0 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +0 -17
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.ts +0 -48
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.ts +0 -1
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-88a629fe.js → OrDateTimePickerMonthSelect-c2fc09bb.js} +0 -0
- /package/dist/bundled/v3/{OrMenuItem.vue_vue_type_script_lang-b338d68a.js → OrMenuItem.vue_vue_type_script_lang-aed2c8e6.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-7d44207e.js → OrToastContainer.vue_vue_type_script_lang-b2b61918.js} +0 -0
|
@@ -6,30 +6,11 @@
|
|
|
6
6
|
<div :class="toolbarStyles">
|
|
7
7
|
<div :class="toolbarPanelStyles">
|
|
8
8
|
<template v-if="sortOptions.length">
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
>
|
|
15
|
-
{{ sortLabel }}
|
|
16
|
-
<OrIcon
|
|
17
|
-
v-if="sortMenu"
|
|
18
|
-
:icon="sortMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'"
|
|
19
|
-
/>
|
|
20
|
-
</OrButton>
|
|
21
|
-
<OrMenu
|
|
22
|
-
ref="sortMenu"
|
|
23
|
-
:trigger="sortButton && sortButton.root"
|
|
24
|
-
>
|
|
25
|
-
<OrMenuItem
|
|
26
|
-
v-for="sortItem in sortOptions"
|
|
27
|
-
:key="sortItem"
|
|
28
|
-
@click="handleSort(sortItem.value)"
|
|
29
|
-
>
|
|
30
|
-
{{ sortItem.label }}
|
|
31
|
-
</OrMenuItem>
|
|
32
|
-
</OrMenu>
|
|
9
|
+
<OrSorting
|
|
10
|
+
:sort="sort"
|
|
11
|
+
:options="sortOptions"
|
|
12
|
+
@change="$emit('sortChange', $event)"
|
|
13
|
+
/>
|
|
33
14
|
</template>
|
|
34
15
|
</div>
|
|
35
16
|
<div
|
|
@@ -40,7 +21,6 @@
|
|
|
40
21
|
class="md:w-[350px]"
|
|
41
22
|
:placeholder="searchPlaceholder"
|
|
42
23
|
:debounce="searchDebounce"
|
|
43
|
-
size="s"
|
|
44
24
|
@search="handleSearch"
|
|
45
25
|
/>
|
|
46
26
|
<div class="layout-row gap-sm">
|
|
@@ -48,7 +28,9 @@
|
|
|
48
28
|
<OrIconButton
|
|
49
29
|
v-for="viewOption in viewModes"
|
|
50
30
|
:key="viewOption.view"
|
|
51
|
-
|
|
31
|
+
size="l"
|
|
32
|
+
:icon="{icon: viewOption.icon}"
|
|
33
|
+
:selected="viewOption.view === proxyView"
|
|
52
34
|
@click="switchView(viewOption.view)"
|
|
53
35
|
/>
|
|
54
36
|
</template>
|
|
@@ -95,16 +77,13 @@
|
|
|
95
77
|
|
|
96
78
|
<script lang="ts">
|
|
97
79
|
import { computed, defineComponent, PropType, ref, watch } from 'vue-demi';
|
|
98
|
-
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
99
80
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
100
|
-
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
101
|
-
import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
102
|
-
import { OrMenuV3 as OrMenu } from '../or-menu-v3';
|
|
103
81
|
import { OrSearchV3 as OrSearch } from '../or-search-v3';
|
|
104
82
|
import OrCardCollectionView from './partials/OrCardCollectionView.vue3.vue';
|
|
83
|
+
import { OrSortingV3 as OrSorting, SortOption } from '../or-sorting-v3';
|
|
105
84
|
import { defaultViewModes, gridView } from './props';
|
|
106
85
|
import { CardCollectionRoot, CardCollectionToolbar, CardCollectionToolbarPanel } from './styles';
|
|
107
|
-
import { CardCollectionItem,
|
|
86
|
+
import { CardCollectionItem, ViewMode } from './types';
|
|
108
87
|
|
|
109
88
|
export default defineComponent({
|
|
110
89
|
name: 'OrCardCollection',
|
|
@@ -112,10 +91,7 @@ export default defineComponent({
|
|
|
112
91
|
components: {
|
|
113
92
|
OrCardCollectionView,
|
|
114
93
|
OrIconButton,
|
|
115
|
-
|
|
116
|
-
OrMenu,
|
|
117
|
-
OrMenuItem,
|
|
118
|
-
OrIcon,
|
|
94
|
+
OrSorting,
|
|
119
95
|
OrSearch,
|
|
120
96
|
},
|
|
121
97
|
|
|
@@ -174,8 +150,6 @@ export default defineComponent({
|
|
|
174
150
|
setup(props, context) {
|
|
175
151
|
// Refs
|
|
176
152
|
const root = ref<HTMLElement>();
|
|
177
|
-
const sortMenu = ref<typeof OrMenu>();
|
|
178
|
-
const sortButton = ref<typeof OrButton>();
|
|
179
153
|
|
|
180
154
|
// Styles
|
|
181
155
|
const rootStyles = computed(() => [
|
|
@@ -197,16 +171,12 @@ export default defineComponent({
|
|
|
197
171
|
|
|
198
172
|
// State
|
|
199
173
|
const proxyView = ref(props.view);
|
|
200
|
-
const proxySort = ref(props.sort);
|
|
201
174
|
const proxySearch = ref(props.search);
|
|
202
175
|
|
|
203
176
|
// Methods
|
|
204
177
|
function switchView(view: string): void {
|
|
205
178
|
proxyView.value = view;
|
|
206
179
|
}
|
|
207
|
-
function handleSort(sort: string) {
|
|
208
|
-
proxySort.value = sort;
|
|
209
|
-
}
|
|
210
180
|
|
|
211
181
|
function handleSearch(search: string) {
|
|
212
182
|
proxySearch.value = search;
|
|
@@ -221,14 +191,6 @@ export default defineComponent({
|
|
|
221
191
|
context.emit('viewChange', value);
|
|
222
192
|
});
|
|
223
193
|
|
|
224
|
-
watch(() => props.sort, (value) => {
|
|
225
|
-
proxySort.value = value;
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
watch(proxySort, (value) => {
|
|
229
|
-
context.emit('sortChange', value);
|
|
230
|
-
});
|
|
231
|
-
|
|
232
194
|
watch(() => props.search, (value) => {
|
|
233
195
|
proxySearch.value = value;
|
|
234
196
|
});
|
|
@@ -239,17 +201,13 @@ export default defineComponent({
|
|
|
239
201
|
|
|
240
202
|
return {
|
|
241
203
|
root,
|
|
242
|
-
sortMenu,
|
|
243
|
-
sortButton,
|
|
244
204
|
rootStyles,
|
|
245
205
|
toolbarStyles,
|
|
246
206
|
toolbarPanelStyles,
|
|
247
207
|
proxyView,
|
|
248
|
-
proxySort,
|
|
249
208
|
proxySearch,
|
|
250
209
|
sortLabel,
|
|
251
210
|
switchView,
|
|
252
|
-
handleSort,
|
|
253
211
|
handleSearch,
|
|
254
212
|
};
|
|
255
213
|
},
|
|
@@ -7,9 +7,6 @@ export const CardCollectionRoot: string[] = [
|
|
|
7
7
|
// Spacing
|
|
8
8
|
'gap-md',
|
|
9
9
|
'max-h-full',
|
|
10
|
-
|
|
11
|
-
// Overflow
|
|
12
|
-
'overflow-hidden',
|
|
13
10
|
];
|
|
14
11
|
|
|
15
12
|
export const CardCollectionToolbar: string[] = [
|
|
@@ -40,16 +37,17 @@ export const CardCollectionContent: string[] = [
|
|
|
40
37
|
'gap-sm md:gap-md',
|
|
41
38
|
|
|
42
39
|
// Overflow
|
|
43
|
-
'overflow-auto',
|
|
40
|
+
'overflow-y-auto',
|
|
41
|
+
'p-xs*',
|
|
42
|
+
'-m-xs*',
|
|
43
|
+
// '-mr-sm*',
|
|
44
44
|
];
|
|
45
45
|
|
|
46
46
|
export const CardCollectionContentViews: Record<DefaultCardCollectionViews, string[]> = {
|
|
47
47
|
'grid': [
|
|
48
48
|
// Layout
|
|
49
|
-
'
|
|
50
|
-
'md:grid-cols-
|
|
51
|
-
'lg:grid-cols-4',
|
|
52
|
-
'xl:grid-cols-6',
|
|
49
|
+
'grid-cols-1',
|
|
50
|
+
'md:grid-cols-5',
|
|
53
51
|
],
|
|
54
52
|
|
|
55
53
|
'list': [
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<button
|
|
4
4
|
ref="root"
|
|
5
5
|
v-bind="$attrs"
|
|
6
|
-
:class="rootStyles"
|
|
6
|
+
:class="[rootStyles, ...additionalStyles]"
|
|
7
7
|
:type="'button'"
|
|
8
8
|
:selected="selected ? '' : null"
|
|
9
9
|
:disabled="disabled"
|
|
@@ -41,6 +41,12 @@ export default defineComponent({
|
|
|
41
41
|
inheritAttrs: false,
|
|
42
42
|
|
|
43
43
|
props: {
|
|
44
|
+
// TODO: Remove after migration to Vue 3
|
|
45
|
+
additionalStyles: {
|
|
46
|
+
type: Array as PropType<string[]>,
|
|
47
|
+
default: () => [],
|
|
48
|
+
},
|
|
49
|
+
|
|
44
50
|
icon: {
|
|
45
51
|
type: [String, Object] as PropType<string | Omit<InstanceType<typeof OrIcon>['$props'], 'size'>>,
|
|
46
52
|
required: true,
|
|
@@ -18,12 +18,15 @@
|
|
|
18
18
|
ref="resizeBar"
|
|
19
19
|
:class="resizeStyles"
|
|
20
20
|
/>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
|
|
22
|
+
<template v-if="collapsible">
|
|
23
|
+
<OrSidebarCollapseButton
|
|
24
|
+
v-model="isCollapsed"
|
|
25
|
+
:class="collapsibleButtonStyles"
|
|
26
|
+
:side="side"
|
|
27
|
+
/>
|
|
28
|
+
</template>
|
|
29
|
+
|
|
27
30
|
<div
|
|
28
31
|
v-show="!isCollapsed"
|
|
29
32
|
:class="mainStyles"
|
|
@@ -57,7 +60,7 @@
|
|
|
57
60
|
|
|
58
61
|
<script lang="ts">
|
|
59
62
|
import { useDraggable, useElementBounding } from '@vueuse/core';
|
|
60
|
-
import { computed, defineComponent,
|
|
63
|
+
import { PropType, computed, defineComponent, ref, useSlots, watch } from 'vue-demi';
|
|
61
64
|
import { OrSidebarCollapseButton } from './partials';
|
|
62
65
|
import { OrSidebarPlacement } from './props';
|
|
63
66
|
import { CollapsibleSidebarToolbar, SidebarBar, SidebarCollapseButton, SidebarCollapseButtonSides, SidebarContent, SidebarFooter, SidebarHeader, SidebarMain, SidebarResize, SidebarResizeSides, SidebarResizingSides, SidebarRoot, SidebarSides, SidebarToolbar, SidebarToolbarSides } from './styles';
|
|
@@ -74,14 +77,17 @@ export default defineComponent({
|
|
|
74
77
|
type: Number,
|
|
75
78
|
default: 320,
|
|
76
79
|
},
|
|
80
|
+
|
|
77
81
|
minimumWidth: {
|
|
78
82
|
type: Number,
|
|
79
83
|
default: 256,
|
|
80
84
|
},
|
|
85
|
+
|
|
81
86
|
maximumWidth: {
|
|
82
87
|
type: Number,
|
|
83
88
|
default: 384,
|
|
84
89
|
},
|
|
90
|
+
|
|
85
91
|
/**
|
|
86
92
|
* User may put the component on the right or the left side of a container.
|
|
87
93
|
* This property mirrors the resizing behavior (drag direction) and styling (horizontal border) of the sidebar.
|
|
@@ -90,13 +96,15 @@ export default defineComponent({
|
|
|
90
96
|
* @values left, right
|
|
91
97
|
*/
|
|
92
98
|
side: {
|
|
93
|
-
type: String as PropType
|
|
94
|
-
default: OrSidebarPlacement.
|
|
99
|
+
type: String as PropType<`${OrSidebarPlacement}`>,
|
|
100
|
+
default: OrSidebarPlacement.Right,
|
|
95
101
|
},
|
|
102
|
+
|
|
96
103
|
draggable: {
|
|
97
104
|
type: Boolean,
|
|
98
105
|
default: true,
|
|
99
106
|
},
|
|
107
|
+
|
|
100
108
|
collapsible: {
|
|
101
109
|
type: Boolean,
|
|
102
110
|
default: false,
|
|
@@ -115,7 +123,7 @@ export default defineComponent({
|
|
|
115
123
|
'close',
|
|
116
124
|
],
|
|
117
125
|
|
|
118
|
-
setup(props,
|
|
126
|
+
setup(props, context) {
|
|
119
127
|
// Refs
|
|
120
128
|
const root = ref<HTMLElement>();
|
|
121
129
|
const resizeBar = ref<HTMLElement | null>(null);
|
|
@@ -184,7 +192,7 @@ export default defineComponent({
|
|
|
184
192
|
isResizing.value = true;
|
|
185
193
|
},
|
|
186
194
|
onMove: (position => {
|
|
187
|
-
const delta = (position.x - startPositionX.value) * (props.side === OrSidebarPlacement.
|
|
195
|
+
const delta = (position.x - startPositionX.value) * (props.side === OrSidebarPlacement.Left ? -1 : 1);
|
|
188
196
|
const newWidth = localWidth.value - delta;
|
|
189
197
|
localWidth.value = newWidth > maximumWidth.value ? maximumWidth.value :
|
|
190
198
|
newWidth < props.minimumWidth ? props.minimumWidth : newWidth;
|
|
@@ -231,9 +239,9 @@ export default defineComponent({
|
|
|
231
239
|
if (newMaximum < localWidth.value) localWidth.value = newMaximum;
|
|
232
240
|
});
|
|
233
241
|
|
|
234
|
-
watch(localWidth, (val: number) => emit('change:width', val));
|
|
242
|
+
watch(localWidth, (val: number) => context.emit('change:width', val));
|
|
235
243
|
|
|
236
|
-
watch(isCollapsed, (val: boolean) => emit(val ? 'close' : 'open'));
|
|
244
|
+
watch(isCollapsed, (val: boolean) => context.emit(val ? 'close' : 'open'));
|
|
237
245
|
|
|
238
246
|
return {
|
|
239
247
|
root,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { default as OrSidebarCollapseButton } from './or-sidebar-collapse-button/OrSidebarCollapseButton.vue';
|
package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
ref="root"
|
|
4
4
|
:class="rootStyles"
|
|
5
5
|
>
|
|
6
|
-
<
|
|
7
|
-
:
|
|
6
|
+
<OrIconButton
|
|
7
|
+
:additional-styles="buttonStyles"
|
|
8
8
|
:icon="{ icon, size: 'inherit' }"
|
|
9
|
-
color="inherit"
|
|
10
|
-
@click="$emit('update:modelValue', !modelValue)"
|
|
9
|
+
:color="'inherit'"
|
|
10
|
+
@click.stop="$emit('update:modelValue', !modelValue)"
|
|
11
11
|
/>
|
|
12
12
|
</div>
|
|
13
13
|
</template>
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import { computed, defineComponent, PropType, ref } from 'vue-demi';
|
|
17
17
|
import { OrIconButtonV3 as OrIconButton } from '../../../or-icon-button-v3';
|
|
18
18
|
import { OrSidebarPlacement } from '../../props';
|
|
19
|
-
import { CollapseButton,
|
|
19
|
+
import { CollapseButton, CollapseButtonButton } from './styles';
|
|
20
20
|
|
|
21
21
|
export default defineComponent({
|
|
22
22
|
name: 'OrSidebarCollapseButton',
|
|
@@ -38,15 +38,20 @@ export default defineComponent({
|
|
|
38
38
|
type: Boolean,
|
|
39
39
|
default: false,
|
|
40
40
|
},
|
|
41
|
+
|
|
41
42
|
side: {
|
|
42
43
|
type: String as PropType<OrSidebarPlacement>,
|
|
43
|
-
default: OrSidebarPlacement.
|
|
44
|
+
default: OrSidebarPlacement.Right,
|
|
44
45
|
},
|
|
45
46
|
},
|
|
46
47
|
|
|
47
|
-
emits: [
|
|
48
|
+
emits: [
|
|
49
|
+
'update:modelValue',
|
|
50
|
+
],
|
|
48
51
|
|
|
49
|
-
expose: [
|
|
52
|
+
expose: [
|
|
53
|
+
'root',
|
|
54
|
+
],
|
|
50
55
|
|
|
51
56
|
setup(props) {
|
|
52
57
|
// Refs
|
|
@@ -54,17 +59,19 @@ export default defineComponent({
|
|
|
54
59
|
|
|
55
60
|
const rootStyles = computed(() => [
|
|
56
61
|
'or-sidebar-collapse-button-v3',
|
|
57
|
-
...
|
|
62
|
+
...CollapseButton,
|
|
58
63
|
]);
|
|
59
64
|
|
|
60
65
|
const buttonStyles = computed(() => [
|
|
61
|
-
...
|
|
66
|
+
...CollapseButtonButton,
|
|
62
67
|
]);
|
|
63
68
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
69
|
+
// State
|
|
70
|
+
const icon = computed(() => {
|
|
71
|
+
return props.side === OrSidebarPlacement.Left !== props.modelValue
|
|
72
|
+
? 'keyboard_arrow_left'
|
|
73
|
+
: 'keyboard_arrow_right';
|
|
74
|
+
});
|
|
68
75
|
|
|
69
76
|
return {
|
|
70
77
|
root,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const
|
|
1
|
+
export const CollapseButton: string[] = [
|
|
2
2
|
// Box
|
|
3
3
|
'w-[24px]',
|
|
4
4
|
'h-[24px]',
|
|
@@ -9,7 +9,7 @@ export const CollapseButtonContainer: string[] = [
|
|
|
9
9
|
'bg-background dark:bg-background-dark',
|
|
10
10
|
];
|
|
11
11
|
|
|
12
|
-
export const
|
|
12
|
+
export const CollapseButtonButton: string[] = [
|
|
13
13
|
// Box
|
|
14
14
|
'w-[24px]',
|
|
15
15
|
'h-[24px]',
|
|
@@ -72,13 +72,14 @@ export const CollapsibleSidebarToolbar: string[] = [
|
|
|
72
72
|
];
|
|
73
73
|
|
|
74
74
|
export const SidebarSides: Record<OrSidebarPlacement, string[]> = {
|
|
75
|
-
|
|
75
|
+
'left': [
|
|
76
76
|
// Borders
|
|
77
77
|
'border-r-[1px]',
|
|
78
78
|
'border-r-solid',
|
|
79
79
|
'border-r-outline-variant dark:border-r-outline-variant-dark',
|
|
80
80
|
],
|
|
81
|
-
|
|
81
|
+
|
|
82
|
+
'right': [
|
|
82
83
|
// Borders
|
|
83
84
|
'border-l-[1px]',
|
|
84
85
|
'border-l-solid',
|
|
@@ -87,13 +88,14 @@ export const SidebarSides: Record<OrSidebarPlacement, string[]> = {
|
|
|
87
88
|
};
|
|
88
89
|
|
|
89
90
|
export const SidebarToolbarSides: Record<OrSidebarPlacement, string[]> = {
|
|
90
|
-
|
|
91
|
+
'left': [
|
|
91
92
|
// Borders
|
|
92
93
|
'border-r-[1px]',
|
|
93
94
|
'border-r-solid',
|
|
94
95
|
'border-r-outline-variant dark:border-r-outline-variant-dark',
|
|
95
96
|
],
|
|
96
|
-
|
|
97
|
+
|
|
98
|
+
'right': [
|
|
97
99
|
// Borders
|
|
98
100
|
'border-l-[1px]',
|
|
99
101
|
'border-l-solid',
|
|
@@ -116,7 +118,7 @@ export const SidebarResize: string[] = [
|
|
|
116
118
|
];
|
|
117
119
|
|
|
118
120
|
export const SidebarResizeSides: Record<OrSidebarPlacement, string[]> = {
|
|
119
|
-
|
|
121
|
+
'left': [
|
|
120
122
|
// Position
|
|
121
123
|
'-right-[1px]',
|
|
122
124
|
|
|
@@ -127,7 +129,8 @@ export const SidebarResizeSides: Record<OrSidebarPlacement, string[]> = {
|
|
|
127
129
|
// Transition
|
|
128
130
|
'transition-[border-right]',
|
|
129
131
|
],
|
|
130
|
-
|
|
132
|
+
|
|
133
|
+
'right': [
|
|
131
134
|
// Position
|
|
132
135
|
'-left-[1px]',
|
|
133
136
|
|
|
@@ -149,23 +152,25 @@ export const SidebarCollapseButton: string[] = [
|
|
|
149
152
|
];
|
|
150
153
|
|
|
151
154
|
export const SidebarCollapseButtonSides: Record<OrSidebarPlacement, string[]> = {
|
|
152
|
-
|
|
155
|
+
'left': [
|
|
153
156
|
// Position
|
|
154
157
|
'-right-[12px]',
|
|
155
158
|
],
|
|
156
|
-
|
|
159
|
+
|
|
160
|
+
'right': [
|
|
157
161
|
// Position
|
|
158
162
|
'-left-[12px]',
|
|
159
163
|
],
|
|
160
164
|
};
|
|
161
165
|
|
|
162
166
|
export const SidebarResizingSides: Record<OrSidebarPlacement, string[]> = {
|
|
163
|
-
|
|
167
|
+
'left': [
|
|
164
168
|
// Borders
|
|
165
169
|
'border-r-2',
|
|
166
170
|
'border-r-primary-hover dark:border-r-primary-hover-dark',
|
|
167
171
|
],
|
|
168
|
-
|
|
172
|
+
|
|
173
|
+
'right': [
|
|
169
174
|
// Borders
|
|
170
175
|
'border-l-2',
|
|
171
176
|
'border-l-primary-hover dark:border-l-primary-hover-dark',
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<OrButton
|
|
4
|
+
ref="sortButton"
|
|
5
|
+
variant="link"
|
|
6
|
+
color="inherit"
|
|
7
|
+
@click="sortMenu.toggle()"
|
|
8
|
+
>
|
|
9
|
+
{{ sortLabel }}
|
|
10
|
+
<OrIcon
|
|
11
|
+
v-if="sortMenu"
|
|
12
|
+
:icon="sortMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'"
|
|
13
|
+
/>
|
|
14
|
+
</OrButton>
|
|
15
|
+
<OrMenu
|
|
16
|
+
ref="sortMenu"
|
|
17
|
+
:trigger="sortButton && sortButton.root"
|
|
18
|
+
placement="bottom-start"
|
|
19
|
+
>
|
|
20
|
+
<OrMenuItem
|
|
21
|
+
v-for="item in options"
|
|
22
|
+
:key="item.value"
|
|
23
|
+
:selected="item.value === proxySort"
|
|
24
|
+
@click="handleSort(item.value)"
|
|
25
|
+
>
|
|
26
|
+
{{ item.label }}
|
|
27
|
+
</OrMenuItem>
|
|
28
|
+
</OrMenu>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
<script lang="ts">
|
|
32
|
+
import { defineComponent, ref, PropType, computed, watch } from 'vue-demi';
|
|
33
|
+
import { OrMenuV3 as OrMenu } from '../or-menu-v3';
|
|
34
|
+
import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
35
|
+
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
36
|
+
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
37
|
+
import { SortOption } from './types';
|
|
38
|
+
|
|
39
|
+
export default defineComponent({
|
|
40
|
+
name: 'OrSorting',
|
|
41
|
+
components: {
|
|
42
|
+
OrMenu,
|
|
43
|
+
OrMenuItem,
|
|
44
|
+
OrButton,
|
|
45
|
+
OrIcon,
|
|
46
|
+
},
|
|
47
|
+
props: {
|
|
48
|
+
sort: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: undefined,
|
|
51
|
+
},
|
|
52
|
+
options: {
|
|
53
|
+
type: Array as PropType<SortOption[]>,
|
|
54
|
+
default: () => [],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
emits: [
|
|
58
|
+
'change',
|
|
59
|
+
],
|
|
60
|
+
setup(props, context) {
|
|
61
|
+
// Refs
|
|
62
|
+
const sortMenu = ref<typeof OrMenu>();
|
|
63
|
+
const sortButton = ref<typeof OrButton>();
|
|
64
|
+
|
|
65
|
+
// State
|
|
66
|
+
const proxySort = ref(props.sort);
|
|
67
|
+
const sortLabel = computed(() => {
|
|
68
|
+
return props.options.find(item => item.value === props.sort)?.label;
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
// Methods
|
|
72
|
+
function handleSort(sort: string) {
|
|
73
|
+
proxySort.value = sort;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Effects
|
|
77
|
+
watch(() => props.sort, (value) => {
|
|
78
|
+
proxySort.value = value;
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
watch(proxySort, (value) => {
|
|
82
|
+
context.emit('change', value);
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
sortMenu,
|
|
87
|
+
sortButton,
|
|
88
|
+
sortLabel,
|
|
89
|
+
proxySort,
|
|
90
|
+
handleSort,
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as OrSidebarCollapseButton } from './OrSidebarCollapseButton.vue';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export { _ as OrSidebarCollapseButton } from '../../../../OrSidebarCollapseButton-49da331a.js';
|
|
2
|
-
import 'vue-demi';
|
|
3
|
-
import '../../../../OrIconButton-2ab8fa02.js';
|
|
4
|
-
import '../../../../OrIcon-d35a84d8.js';
|
|
5
|
-
import '../../../../normalize-component-6e8e3d80.js';
|
|
6
|
-
import '../../../../OrTooltip-a32c182a.js';
|
|
7
|
-
import '@vueuse/core';
|
|
8
|
-
import '../../../../usePopoverState-b92c698b.js';
|
|
9
|
-
import '@onereach/styles/tailwind.config';
|
|
10
|
-
import 'tailwindcss/resolveConfig';
|
|
11
|
-
import '../../../../OrPopover-71380b24.js';
|
|
12
|
-
import '@floating-ui/dom';
|
|
13
|
-
import '../../../../useElevation-a50ec347.js';
|
|
14
|
-
import '../../../../useResponsive-a02e95b7.js';
|
|
15
|
-
import '../../../../OrBottomSheet-6bc632c4.js';
|
|
16
|
-
import '../../../../OrOverlay-948346df.js';
|
|
17
|
-
import '../../../../OrTeleport.vue2-424c7f33.js';
|
|
18
|
-
import 'portal-vue';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as OrSidebarCollapseButton } from './OrSidebarCollapseButton.vue';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export { s as OrSidebarCollapseButton } from '../../../../OrSidebarCollapseButton-86dafbbc.js';
|
|
2
|
-
import 'vue-demi';
|
|
3
|
-
import '../../../../OrIconButton-00f8f0c7.js';
|
|
4
|
-
import '../../../../OrIcon-62793572.js';
|
|
5
|
-
import 'vue';
|
|
6
|
-
import '../../../../OrTooltip-d7d40e38.js';
|
|
7
|
-
import '@vueuse/core';
|
|
8
|
-
import '../../../../usePopoverState-b92c698b.js';
|
|
9
|
-
import '@onereach/styles/tailwind.config';
|
|
10
|
-
import 'tailwindcss/resolveConfig';
|
|
11
|
-
import '../../../../OrPopover-94dc1203.js';
|
|
12
|
-
import '@floating-ui/dom';
|
|
13
|
-
import '../../../../useElevation-a50ec347.js';
|
|
14
|
-
import '../../../../useResponsive-a02e95b7.js';
|
|
15
|
-
import '../../../../OrBottomSheet-79db2626.js';
|
|
16
|
-
import '../../../../OrOverlay-489fdf76.js';
|
|
17
|
-
import '../../../../OrTeleport.vue3-8099178c.js';
|