@onereach/ui-components 4.11.1-beta.2967.0 → 4.11.1
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/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 +1 -6
- package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.vue.d.ts +0 -11
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +20 -21
- 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 +12 -10
- package/dist/bundled/v2/components/OrTreeV3/OrTree.js +431 -0
- package/dist/bundled/v2/components/OrTreeV3/OrTree.vue.d.ts +41 -0
- package/dist/bundled/v2/components/OrTreeV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrTreeV3/index.js +15 -0
- package/dist/bundled/v2/components/OrTreeV3/types.d.ts +15 -0
- package/dist/bundled/v2/components/OrTreeV3/types.js +8 -0
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +3 -1
- package/dist/bundled/v2/index.js +4 -2
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-297d0c7d.js → OrCardCollection.vue_vue_type_script_lang-c7d9f452.js} +2 -2
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-ec51e1e8.js → OrCode.vue_vue_type_script_lang-22c66c0d.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-2f107000.js → OrConfirm.vue_vue_type_script_lang-88d3aeda.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-ae872dbe.js → OrDatePicker.vue_vue_type_script_lang-80de9d3a.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-0ba15573.js → OrDateTimePicker.vue_vue_type_script_lang-300f009d.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-cee437fb.js → OrDateTimePickerMonthSelect-44038b6b.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-42887e92.js → OrIconButton.vue_vue_type_script_lang-41792494.js} +0 -5
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-13269054.js → OrInlineInput.vue_vue_type_script_lang-fec60585.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-3a251a7b.js → OrInlineTextarea.vue_vue_type_script_lang-4265a2a2.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-73c33e2e.js → OrInput.vue_vue_type_script_lang-0b8a2b69.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-5397e0dd.js → OrModal.vue_vue_type_script_lang-e00165f1.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-a0b4041e.js → OrNotification.vue_vue_type_script_lang-9d3dd0d9.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-143806cd.js → OrSearch.vue_vue_type_script_lang-3fa2209d.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-4045ecbe.js → OrSelect.vue_vue_type_script_lang-b11ea2e9.js} +2 -2
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-9298b6e0.js → OrSidebar.vue_vue_type_script_lang-55f0db3b.js} +22 -22
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-47c6bbdc.js → OrTag.vue_vue_type_script_lang-640a19c4.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-c2fc7f9a.js → OrTagInput.vue_vue_type_script_lang-67c8d12f.js} +2 -2
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-425bb731.js → OrTags.vue_vue_type_script_lang-18b7221b.js} +1 -1
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-c00997fc.js → OrTimePicker.vue_vue_type_script_lang-5c88aee4.js} +1 -1
- package/dist/bundled/v3/OrTree.vue_vue_type_script_lang-99197964.js +310 -0
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +5 -5
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +4 -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 +4 -4
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +3 -3
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -4
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +3 -3
- 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 +0 -9
- 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/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/OrSearchV3/OrSearch.js +4 -4
- package/dist/bundled/v3/components/OrSearchV3/index.js +3 -3
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +5 -5
- package/dist/bundled/v3/components/OrSelectV3/index.js +4 -4
- 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 +12 -10
- 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/OrTreeV3/OrTree.js +47 -0
- package/dist/bundled/v3/components/OrTreeV3/OrTree.vue.d.ts +35 -0
- package/dist/bundled/v3/components/OrTreeV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrTreeV3/index.js +18 -0
- package/dist/bundled/v3/components/OrTreeV3/types.d.ts +15 -0
- package/dist/bundled/v3/components/OrTreeV3/types.js +8 -0
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +22 -20
- package/dist/bundled/v3/index.js +24 -21
- package/dist/esm/v2/{OrCardCollection-b9e8e1ee.js → OrCardCollection-779ba7ca.js} +2 -2
- package/dist/esm/v2/{OrCode-8d30c597.js → OrCode-26295220.js} +2 -2
- package/dist/esm/v2/{OrConfirm-1cf67ea8.js → OrConfirm-cda74328.js} +1 -1
- package/dist/esm/v2/{OrDatePicker-527c8f20.js → OrDatePicker-a4f95898.js} +2 -2
- package/dist/esm/v2/{OrDateTimePicker-87d551a3.js → OrDateTimePicker-99d3445b.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-87492dc6.js → OrDateTimePicker.vue_rollup-plugin-vue_script-729b254d.js} +2 -2
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-c8cfa29a.js → OrDateTimePickerPopoverHeader-5fa89936.js} +1 -1
- package/dist/esm/v2/{OrIconButton-e7517e6d.js → OrIconButton-2ab8fa02.js} +1 -6
- package/dist/esm/v2/{OrInlineInput-82238b67.js → OrInlineInput-0c62b3a6.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-e79cfec1.js → OrInlineTextarea-c24708a7.js} +1 -1
- package/dist/esm/v2/{OrInput-1517ccef.js → OrInput-dcb61699.js} +1 -1
- package/dist/esm/v2/{OrModal-af72eb54.js → OrModal-abc3b1d9.js} +1 -1
- package/dist/esm/v2/{OrNotification-eaf8a4b4.js → OrNotification-5b7028d7.js} +1 -1
- package/dist/esm/v2/{OrSearch-f5258a9f.js → OrSearch-879c7656.js} +1 -1
- package/dist/esm/v2/{OrSelect-fd7740ad.js → OrSelect-01d61a9a.js} +2 -2
- package/dist/esm/v2/{OrSidebar-15fc8f69.js → OrSidebar-bd385865.js} +22 -19
- package/dist/esm/v2/{OrSidebarCollapseButton-6a8079ea.js → OrSidebarCollapseButton-49da331a.js} +12 -16
- package/dist/esm/v2/{OrTag-d619ed2b.js → OrTag-2b9e664b.js} +1 -1
- package/dist/esm/v2/{OrTagInput-32ad4c5e.js → OrTagInput-1548f007.js} +2 -2
- package/dist/esm/v2/{OrTags-cf65a7fa.js → OrTags-25a70212.js} +1 -1
- package/dist/esm/v2/{OrTimePicker-8f551fcb.js → OrTimePicker-9c9a44bc.js} +3 -3
- package/dist/esm/v2/OrTree-dcacd695.js +428 -0
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +23 -22
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -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 +3 -3
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +4 -4
- 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 +0 -11
- 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-modal-v3/index.js +2 -2
- package/dist/esm/v2/components/or-notification-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 +4 -4
- 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/index.d.ts +1 -0
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +18 -0
- 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-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 +4 -4
- 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/components/or-tree-v3/OrTree.vue.d.ts +41 -0
- package/dist/esm/v2/components/or-tree-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-tree-v3/index.js +7 -0
- package/dist/esm/v2/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +120 -0
- package/dist/esm/v2/components/or-tree-v3/partials/or-tree-node/styles.d.ts +6 -0
- package/dist/esm/v2/components/or-tree-v3/partials/or-tree-node/utils.d.ts +3 -0
- package/dist/esm/v2/components/or-tree-v3/types.d.ts +15 -0
- package/dist/esm/v2/index.js +23 -22
- package/dist/esm/v2/{types-f010f8b9.js → types-a74e1e20.js} +1 -1
- package/dist/esm/v3/{OrCardCollection-b362d47e.js → OrCardCollection-4516594a.js} +2 -2
- package/dist/esm/v3/{OrCode-d36e4b44.js → OrCode-0c2310e5.js} +2 -2
- package/dist/esm/v3/{OrConfirm-6c4a7b89.js → OrConfirm-240cfe0a.js} +1 -1
- package/dist/esm/v3/{OrDatePicker-9937fe56.js → OrDatePicker-f4470d79.js} +2 -2
- package/dist/esm/v3/{OrDateTimePicker-0969233f.js → OrDateTimePicker-546c15ec.js} +2 -2
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-dda25608.js → OrDateTimePickerPopoverHeader-96a38b4b.js} +1 -1
- package/dist/esm/v3/{OrIconButton-0edf0894.js → OrIconButton-00f8f0c7.js} +1 -6
- package/dist/esm/v3/{OrInlineInput-b88c01a6.js → OrInlineInput-4d47d731.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-71e96e67.js → OrInlineTextarea-1415bed9.js} +1 -1
- package/dist/esm/v3/{OrInput-1fc808c0.js → OrInput-f0e12c81.js} +1 -1
- package/dist/esm/v3/{OrModal-53d4af81.js → OrModal-6a90ea79.js} +1 -1
- package/dist/esm/v3/{OrNotification-42c3a0ec.js → OrNotification-117f2dcb.js} +1 -1
- package/dist/esm/v3/{OrSearch-e690aff6.js → OrSearch-051adc07.js} +1 -1
- package/dist/esm/v3/{OrSelect-5fa11fde.js → OrSelect-b3885148.js} +2 -2
- package/dist/esm/v3/{OrSidebar-dd7c025b.js → OrSidebar-47f9d02a.js} +21 -18
- package/dist/esm/v3/{OrSidebarCollapseButton-2792a2b4.js → OrSidebarCollapseButton-86dafbbc.js} +16 -19
- package/dist/esm/v3/{OrTag-51add0ef.js → OrTag-9adef1cd.js} +1 -1
- package/dist/esm/v3/{OrTagInput-ca1811f7.js → OrTagInput-63d0f5fb.js} +2 -2
- package/dist/esm/v3/{OrTags-f6ecdb32.js → OrTags-d7a90658.js} +1 -1
- package/dist/esm/v3/{OrTimePicker-547bce61.js → OrTimePicker-98c00a9b.js} +3 -3
- package/dist/esm/v3/OrTree-3b655a7a.js +342 -0
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +22 -21
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -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 +3 -3
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +3 -3
- 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 +0 -9
- 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-modal-v3/index.js +2 -2
- package/dist/esm/v3/components/or-notification-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 +4 -4
- 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/index.d.ts +1 -0
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +17 -0
- 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-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 +4 -4
- 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/components/or-tree-v3/OrTree.vue.d.ts +35 -0
- package/dist/esm/v3/components/or-tree-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-tree-v3/index.js +7 -0
- package/dist/esm/v3/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +88 -0
- package/dist/esm/v3/components/or-tree-v3/partials/or-tree-node/styles.d.ts +6 -0
- package/dist/esm/v3/components/or-tree-v3/partials/or-tree-node/utils.d.ts +3 -0
- package/dist/esm/v3/components/or-tree-v3/types.d.ts +15 -0
- package/dist/esm/v3/index.js +22 -21
- package/dist/esm/v3/{types-8d61f1d7.js → types-c78924f3.js} +1 -1
- package/package.json +3 -2
- package/src/components/index.ts +1 -0
- package/src/components/or-fab-v3/OrFab.vue +1 -1
- package/src/components/or-icon-button-v3/OrIconButton.vue +1 -7
- package/src/components/or-sidebar-v3/OrSidebar.vue +13 -21
- package/src/components/or-sidebar-v3/partials/index.ts +1 -1
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.ts +48 -0
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue +14 -21
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.ts +1 -0
- 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 +10 -15
- package/src/components/or-tree-v3/OrTree.vue +65 -0
- package/src/components/or-tree-v3/index.ts +2 -0
- package/src/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue +235 -0
- package/src/components/or-tree-v3/partials/or-tree-node/styles.ts +60 -0
- package/src/components/or-tree-v3/partials/or-tree-node/utils.ts +26 -0
- package/src/components/or-tree-v3/types.ts +16 -0
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-30a43007.js → OrDateTimePickerMonthSelect-88a629fe.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-b2b61918.js → OrToastContainer.vue_vue_type_script_lang-7d44207e.js} +0 -0
|
@@ -11,8 +11,8 @@ import './components/OrMenuItemV3/OrMenuItem.js';
|
|
|
11
11
|
import { s as script$5 } from './OrMenuItem.vue_vue_type_script_lang-b338d68a.js';
|
|
12
12
|
import './components/OrIconV3/OrIcon.js';
|
|
13
13
|
import './components/OrSearchV3/OrSearch.js';
|
|
14
|
-
import { s as script$7 } from './OrSearch.vue_vue_type_script_lang-
|
|
15
|
-
import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-
|
|
14
|
+
import { s as script$7 } from './OrSearch.vue_vue_type_script_lang-3fa2209d.js';
|
|
15
|
+
import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
16
16
|
import { s as script$6 } from './OrIcon.vue_vue_type_script_lang-73f9cc63.js';
|
|
17
17
|
|
|
18
18
|
var script$1 = defineComponent({
|
|
@@ -10,11 +10,11 @@ import './components/OrIconButtonV3/OrIconButton.js';
|
|
|
10
10
|
import './components/OrInputBoxV3/OrInputBox.js';
|
|
11
11
|
import './components/OrLabelV3/OrLabel.js';
|
|
12
12
|
import './components/OrModalV3/OrModal.js';
|
|
13
|
-
import { s as script$6 } from './OrModal.vue_vue_type_script_lang-
|
|
13
|
+
import { s as script$6 } from './OrModal.vue_vue_type_script_lang-e00165f1.js';
|
|
14
14
|
import { useTheme } from './hooks/useTheme.js';
|
|
15
15
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-df7b5e32.js';
|
|
16
16
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-0f5e8377.js';
|
|
17
|
-
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-
|
|
17
|
+
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
18
18
|
import { s as script$4 } from './OrInputBox.vue_vue_type_script_lang-49fb179a.js';
|
|
19
19
|
import { s as script$5 } from './OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
20
20
|
import { useIdAttribute } from './hooks/useIdAttribute.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-9036d75d.js';
|
|
11
11
|
import { s as script$2 } from './OrButton.vue_vue_type_script_lang-7370e903.js';
|
|
12
|
-
import { s as script$3 } from './OrInput.vue_vue_type_script_lang-
|
|
12
|
+
import { s as script$3 } from './OrInput.vue_vue_type_script_lang-0b8a2b69.js';
|
|
13
13
|
import { usePopoverState } from './hooks/usePopoverState.js';
|
|
14
14
|
import { w as whenever } from './index-f4d8e24c.js';
|
|
15
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
2
|
import { useCurrentDate } from './components/OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
3
|
-
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-
|
|
3
|
+
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-44038b6b.js';
|
|
4
4
|
import { s as script$3, a as script$5, b as script$6 } from './OrDateTimePickerPopoverHeader-4959231c.js';
|
|
5
5
|
import { DatePicker, DatePickerPopover } from './components/OrDatePickerV3/styles.js';
|
|
6
6
|
import './components/OrErrorV3/OrError.js';
|
|
@@ -15,7 +15,7 @@ import { DropdownOpen } from './directives/dropdown-open.js';
|
|
|
15
15
|
import { s as script$7 } from './OrError.vue_vue_type_script_lang-df7b5e32.js';
|
|
16
16
|
import { s as script$8 } from './OrHint.vue_vue_type_script_lang-0f5e8377.js';
|
|
17
17
|
import { s as script$9 } from './OrIcon.vue_vue_type_script_lang-73f9cc63.js';
|
|
18
|
-
import { s as script$a } from './OrIconButton.vue_vue_type_script_lang-
|
|
18
|
+
import { s as script$a } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
19
19
|
import { s as script$b } from './OrInputBox.vue_vue_type_script_lang-49fb179a.js';
|
|
20
20
|
import { s as script$c } from './OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
21
21
|
import { s as script$d } from './OrPopover.vue_vue_type_script_lang-d15ec5cb.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
2
|
import { useCurrentDate } from './components/OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
3
|
-
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-
|
|
3
|
+
import { s as script$1, a as script$2, b as script$4 } from './OrDateTimePickerMonthSelect-44038b6b.js';
|
|
4
4
|
import { s as script$3, a as script$5, b as script$6 } from './OrDateTimePickerPopoverHeader-4959231c.js';
|
|
5
5
|
import { s as script$7, a as script$8 } from './OrDateTimePickerTimeSelect-b8cc72af.js';
|
|
6
6
|
import { DateTimePickerTimeFormat } from './components/OrDateTimePickerV3/props.js';
|
|
@@ -15,7 +15,7 @@ import './components/OrPopoverV3/OrPopover.js';
|
|
|
15
15
|
import { s as script$9 } from './OrError.vue_vue_type_script_lang-df7b5e32.js';
|
|
16
16
|
import { s as script$a } from './OrHint.vue_vue_type_script_lang-0f5e8377.js';
|
|
17
17
|
import { s as script$b } from './OrIcon.vue_vue_type_script_lang-73f9cc63.js';
|
|
18
|
-
import { s as script$c } from './OrIconButton.vue_vue_type_script_lang-
|
|
18
|
+
import { s as script$c } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
19
19
|
import { s as script$d } from './OrInputBox.vue_vue_type_script_lang-49fb179a.js';
|
|
20
20
|
import { s as script$e } from './OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
21
21
|
import { s as script$f } from './OrPopover.vue_vue_type_script_lang-d15ec5cb.js';
|
|
@@ -9,7 +9,7 @@ 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-73f9cc63.js';
|
|
12
|
-
import { s as script$5 } from './OrIconButton.vue_vue_type_script_lang-
|
|
12
|
+
import { s as script$5 } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
13
13
|
import { s as script$6 } from './OrMenu.vue_vue_type_script_lang-f8611f9d.js';
|
|
14
14
|
import { s as script$7 } from './OrMenuItem.vue_vue_type_script_lang-b338d68a.js';
|
|
15
15
|
|
|
@@ -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-df7b5e32.js';
|
|
11
11
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-0f5e8377.js';
|
|
12
|
-
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-
|
|
12
|
+
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-41792494.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-df7b5e32.js';
|
|
8
8
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-0f5e8377.js';
|
|
9
|
-
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-
|
|
9
|
+
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-41792494.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-0f5e8377.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-
|
|
10
|
+
import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
11
11
|
import './components/OrInputBoxV3/OrInputBox.js';
|
|
12
12
|
import { s as script$5 } from './OrInputBox.vue_vue_type_script_lang-49fb179a.js';
|
|
13
13
|
import './components/OrLabelV3/OrLabel.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef } from 'vue-demi';
|
|
2
2
|
import { openBlock, createElementBlock, normalizeClass, renderSlot, resolveComponent, createElementVNode, createVNode, withModifiers } from 'vue';
|
|
3
3
|
import './components/OrIconButtonV3/OrIconButton.js';
|
|
4
|
-
import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-
|
|
4
|
+
import { s as script$4 } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
5
5
|
import { ModalSize } from './components/OrModalV3/props.js';
|
|
6
6
|
import { ModalRoot, ModalRootSizes } from './components/OrModalV3/styles.js';
|
|
7
7
|
import './components/OrOverlayV3/OrOverlay.js';
|
|
@@ -4,7 +4,7 @@ import { NotificationRoot, NotificationRootVariants, NotificationIcon, Notificat
|
|
|
4
4
|
import './components/OrIconV3/OrIcon.js';
|
|
5
5
|
import './components/OrIconButtonV3/OrIconButton.js';
|
|
6
6
|
import { s as script$1 } from './OrIcon.vue_vue_type_script_lang-73f9cc63.js';
|
|
7
|
-
import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-
|
|
7
|
+
import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
8
8
|
|
|
9
9
|
var script = defineComponent({
|
|
10
10
|
name: 'OrNotification',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import './components/OrInputV3/OrInput.js';
|
|
3
|
-
import { s as script$1 } from './OrInput.vue_vue_type_script_lang-
|
|
3
|
+
import { s as script$1 } from './OrInput.vue_vue_type_script_lang-0b8a2b69.js';
|
|
4
4
|
import { InputBoxSize } from './components/OrInputBoxV3/props.js';
|
|
5
5
|
import { a as watchDebounced } from './index-f4d8e24c.js';
|
|
6
6
|
|
|
@@ -13,13 +13,13 @@ import './components/OrLabelV3/OrLabel.js';
|
|
|
13
13
|
import './components/OrMenuItemV3/OrMenuItem.js';
|
|
14
14
|
import './components/OrPopoverV3/OrPopover.js';
|
|
15
15
|
import './components/OrTagV3/OrTag.js';
|
|
16
|
-
import { s as script$b } from './OrTag.vue_vue_type_script_lang-
|
|
16
|
+
import { s as script$b } from './OrTag.vue_vue_type_script_lang-640a19c4.js';
|
|
17
17
|
import { useOverflow } from './hooks/useOverflow.js';
|
|
18
18
|
import { s as script$1 } from './OrCheckbox.vue_vue_type_script_lang-a27167e0.js';
|
|
19
19
|
import { s as script$2 } from './OrError.vue_vue_type_script_lang-df7b5e32.js';
|
|
20
20
|
import { s as script$4 } from './OrHint.vue_vue_type_script_lang-0f5e8377.js';
|
|
21
21
|
import { s as script$5 } from './OrIcon.vue_vue_type_script_lang-73f9cc63.js';
|
|
22
|
-
import { s as script$6 } from './OrInput.vue_vue_type_script_lang-
|
|
22
|
+
import { s as script$6 } from './OrInput.vue_vue_type_script_lang-0b8a2b69.js';
|
|
23
23
|
import { s as script$7 } from './OrInputBox.vue_vue_type_script_lang-49fb179a.js';
|
|
24
24
|
import { s as script$8 } from './OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
25
25
|
import { s as script$9 } from './OrMenuItem.vue_vue_type_script_lang-b338d68a.js';
|
|
@@ -2,16 +2,16 @@ import { e as useDraggable, d as useElementBounding } from './index-e11e05e2.js'
|
|
|
2
2
|
import { defineComponent, ref, computed, useSlots, watch } from 'vue-demi';
|
|
3
3
|
import { OrSidebarPlacement } from './components/OrSidebarV3/props.js';
|
|
4
4
|
import './components/OrIconButtonV3/OrIconButton.js';
|
|
5
|
-
import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-
|
|
6
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode
|
|
5
|
+
import { s as script$2 } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
6
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode } from 'vue';
|
|
7
7
|
import { SidebarRoot, SidebarBar, SidebarSides, SidebarToolbar, CollapsibleSidebarToolbar, SidebarToolbarSides, SidebarResize, SidebarResizeSides, SidebarResizingSides, SidebarCollapseButton, SidebarCollapseButtonSides, SidebarMain, SidebarHeader, SidebarContent, SidebarFooter } from './components/OrSidebarV3/styles.js';
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const CollapseButtonContainer = [
|
|
10
10
|
// Box
|
|
11
11
|
'w-[24px]', 'h-[24px]', 'rounded-full',
|
|
12
12
|
// Theme
|
|
13
13
|
'text-primary dark:text-primary-dark', 'bg-background dark:bg-background-dark'];
|
|
14
|
-
const
|
|
14
|
+
const CollapseButton = [
|
|
15
15
|
// Box
|
|
16
16
|
'w-[24px]', 'h-[24px]', 'rounded-full',
|
|
17
17
|
// Typography
|
|
@@ -48,7 +48,7 @@ var script$1 = defineComponent({
|
|
|
48
48
|
},
|
|
49
49
|
side: {
|
|
50
50
|
type: String,
|
|
51
|
-
default: OrSidebarPlacement.
|
|
51
|
+
default: OrSidebarPlacement.right
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
emits: ['update:modelValue'],
|
|
@@ -56,12 +56,9 @@ var script$1 = defineComponent({
|
|
|
56
56
|
setup(props) {
|
|
57
57
|
// Refs
|
|
58
58
|
const root = ref();
|
|
59
|
-
const rootStyles = computed(() => ['or-sidebar-collapse-button-v3', ...
|
|
60
|
-
const buttonStyles = computed(() => [...
|
|
61
|
-
|
|
62
|
-
const icon = computed(() => {
|
|
63
|
-
return props.side === OrSidebarPlacement.Left !== props.modelValue ? 'keyboard_arrow_left' : 'keyboard_arrow_right';
|
|
64
|
-
});
|
|
59
|
+
const rootStyles = computed(() => ['or-sidebar-collapse-button-v3', ...CollapseButtonContainer]);
|
|
60
|
+
const buttonStyles = computed(() => [...CollapseButton]);
|
|
61
|
+
const icon = computed(() => props.side === OrSidebarPlacement.left !== props.modelValue ? 'keyboard_arrow_left' : 'keyboard_arrow_right');
|
|
65
62
|
return {
|
|
66
63
|
root,
|
|
67
64
|
rootStyles,
|
|
@@ -72,19 +69,19 @@ var script$1 = defineComponent({
|
|
|
72
69
|
});
|
|
73
70
|
|
|
74
71
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75
|
-
const
|
|
72
|
+
const _component_or_icon_button = resolveComponent("or-icon-button");
|
|
76
73
|
return openBlock(), createElementBlock("div", {
|
|
77
74
|
ref: "root",
|
|
78
75
|
class: normalizeClass(_ctx.rootStyles)
|
|
79
|
-
}, [createVNode(
|
|
80
|
-
|
|
76
|
+
}, [createVNode(_component_or_icon_button, {
|
|
77
|
+
class: normalizeClass(_ctx.buttonStyles),
|
|
81
78
|
icon: {
|
|
82
79
|
icon: _ctx.icon,
|
|
83
80
|
size: 'inherit'
|
|
84
81
|
},
|
|
85
|
-
color:
|
|
86
|
-
onClick: _cache[0] || (_cache[0] =
|
|
87
|
-
}, null, 8 /* PROPS */, ["
|
|
82
|
+
color: "inherit",
|
|
83
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('update:modelValue', !_ctx.modelValue))
|
|
84
|
+
}, null, 8 /* PROPS */, ["class", "icon"])], 2 /* CLASS */);
|
|
88
85
|
}
|
|
89
86
|
|
|
90
87
|
script$1.render = render;
|
|
@@ -117,7 +114,7 @@ var script = defineComponent({
|
|
|
117
114
|
*/
|
|
118
115
|
side: {
|
|
119
116
|
type: String,
|
|
120
|
-
default: OrSidebarPlacement.
|
|
117
|
+
default: OrSidebarPlacement.right
|
|
121
118
|
},
|
|
122
119
|
draggable: {
|
|
123
120
|
type: Boolean,
|
|
@@ -130,7 +127,10 @@ var script = defineComponent({
|
|
|
130
127
|
},
|
|
131
128
|
emits: ['change:width', 'open', 'close'],
|
|
132
129
|
expose: ['root', 'open', 'close'],
|
|
133
|
-
setup(props,
|
|
130
|
+
setup(props, _ref) {
|
|
131
|
+
let {
|
|
132
|
+
emit
|
|
133
|
+
} = _ref;
|
|
134
134
|
// Refs
|
|
135
135
|
const root = ref();
|
|
136
136
|
const resizeBar = ref(null);
|
|
@@ -172,7 +172,7 @@ var script = defineComponent({
|
|
|
172
172
|
isResizing.value = true;
|
|
173
173
|
},
|
|
174
174
|
onMove: position => {
|
|
175
|
-
const delta = (position.x - startPositionX.value) * (props.side === OrSidebarPlacement.
|
|
175
|
+
const delta = (position.x - startPositionX.value) * (props.side === OrSidebarPlacement.left ? -1 : 1);
|
|
176
176
|
const newWidth = localWidth.value - delta;
|
|
177
177
|
localWidth.value = newWidth > maximumWidth.value ? maximumWidth.value : newWidth < props.minimumWidth ? props.minimumWidth : newWidth;
|
|
178
178
|
startPositionX.value = position.x;
|
|
@@ -210,8 +210,8 @@ var script = defineComponent({
|
|
|
210
210
|
watch(maximumWidth, newMaximum => {
|
|
211
211
|
if (newMaximum < localWidth.value) localWidth.value = newMaximum;
|
|
212
212
|
});
|
|
213
|
-
watch(localWidth, val =>
|
|
214
|
-
watch(isCollapsed, val =>
|
|
213
|
+
watch(localWidth, val => emit('change:width', val));
|
|
214
|
+
watch(isCollapsed, val => emit(val ? 'close' : 'open'));
|
|
215
215
|
return {
|
|
216
216
|
root,
|
|
217
217
|
resizeBar,
|
|
@@ -2,7 +2,7 @@ import { defineComponent, ref, computed, watchPostEffect, unref } from 'vue-demi
|
|
|
2
2
|
import { TagVariant, TagColor } from './components/OrTagV3/props.js';
|
|
3
3
|
import { TagRoot, TagRootVariants, TagRootColors } from './components/OrTagV3/styles.js';
|
|
4
4
|
import './components/OrIconButtonV3/OrIconButton.js';
|
|
5
|
-
import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-
|
|
5
|
+
import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
6
6
|
|
|
7
7
|
var script = defineComponent({
|
|
8
8
|
name: 'OrTag',
|
|
@@ -6,10 +6,10 @@ import './components/OrIconButtonV3/OrIconButton.js';
|
|
|
6
6
|
import './components/OrInputBoxV3/OrInputBox.js';
|
|
7
7
|
import './components/OrLabelV3/OrLabel.js';
|
|
8
8
|
import './components/OrTagsV3/OrTags.js';
|
|
9
|
-
import { s as script$6 } from './OrTags.vue_vue_type_script_lang-
|
|
9
|
+
import { s as script$6 } from './OrTags.vue_vue_type_script_lang-18b7221b.js';
|
|
10
10
|
import { s as script$1 } from './OrError.vue_vue_type_script_lang-df7b5e32.js';
|
|
11
11
|
import { s as script$2 } from './OrHint.vue_vue_type_script_lang-0f5e8377.js';
|
|
12
|
-
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-
|
|
12
|
+
import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
13
13
|
import { s as script$4 } from './OrInputBox.vue_vue_type_script_lang-49fb179a.js';
|
|
14
14
|
import { s as script$5 } from './OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
15
15
|
import { InputBoxSize } from './components/OrInputBoxV3/props.js';
|
|
@@ -5,7 +5,7 @@ import './components/OrPopoverV3/OrPopover.js';
|
|
|
5
5
|
import './components/OrTagV3/OrTag.js';
|
|
6
6
|
import { s as script$1 } from './OrButton.vue_vue_type_script_lang-7370e903.js';
|
|
7
7
|
import { s as script$2 } from './OrPopover.vue_vue_type_script_lang-d15ec5cb.js';
|
|
8
|
-
import { s as script$3 } from './OrTag.vue_vue_type_script_lang-
|
|
8
|
+
import { s as script$3 } from './OrTag.vue_vue_type_script_lang-640a19c4.js';
|
|
9
9
|
import { useOverflow } from './hooks/useOverflow.js';
|
|
10
10
|
|
|
11
11
|
var script = defineComponent({
|
|
@@ -14,7 +14,7 @@ import { DateTimePickerTimeFormat } from './components/OrDateTimePickerV3/props.
|
|
|
14
14
|
import { s as script$6 } from './OrError.vue_vue_type_script_lang-df7b5e32.js';
|
|
15
15
|
import { s as script$7 } from './OrHint.vue_vue_type_script_lang-0f5e8377.js';
|
|
16
16
|
import { s as script$8 } from './OrIcon.vue_vue_type_script_lang-73f9cc63.js';
|
|
17
|
-
import { s as script$9 } from './OrIconButton.vue_vue_type_script_lang-
|
|
17
|
+
import { s as script$9 } from './OrIconButton.vue_vue_type_script_lang-41792494.js';
|
|
18
18
|
import { s as script$a } from './OrInputBox.vue_vue_type_script_lang-49fb179a.js';
|
|
19
19
|
import { s as script$b } from './OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
20
20
|
import { s as script$c } from './OrPopover.vue_vue_type_script_lang-d15ec5cb.js';
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch, unref, onMounted } from 'vue-demi';
|
|
2
|
+
import { TreeNodeDropPosition } from './components/OrTreeV3/types.js';
|
|
3
|
+
import './components/OrButtonV3/OrButton.js';
|
|
4
|
+
import './components/OrIconV3/OrIcon.js';
|
|
5
|
+
import { s as script$2 } from './OrButton.vue_vue_type_script_lang-7370e903.js';
|
|
6
|
+
import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-73f9cc63.js';
|
|
7
|
+
import { u as useToggle } from './index-f4d8e24c.js';
|
|
8
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, withModifiers, createBlock, withCtx, createVNode, createCommentVNode, renderSlot, normalizeProps, guardReactiveProps, createTextVNode, toDisplayString, Fragment, renderList } from 'vue';
|
|
9
|
+
|
|
10
|
+
function inRange(num, min, max) {
|
|
11
|
+
return num >= min && num <= max;
|
|
12
|
+
}
|
|
13
|
+
function getDropOffset(e) {
|
|
14
|
+
let canMiddleDrop = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
15
|
+
const {
|
|
16
|
+
clientY
|
|
17
|
+
} = e;
|
|
18
|
+
const {
|
|
19
|
+
top,
|
|
20
|
+
height
|
|
21
|
+
} = e.target.getBoundingClientRect();
|
|
22
|
+
const offset = Math.max((clientY - top) / height, 0); // sometimes offset is negative
|
|
23
|
+
if (canMiddleDrop && inRange(offset, 0.4, 0.7)) {
|
|
24
|
+
return TreeNodeDropPosition.Middle;
|
|
25
|
+
} else if (inRange(offset, 0, 0.5)) {
|
|
26
|
+
return TreeNodeDropPosition.Top;
|
|
27
|
+
}
|
|
28
|
+
return TreeNodeDropPosition.Bottom;
|
|
29
|
+
}
|
|
30
|
+
function applyPadding(element, level, hasCollapseTrigger) {
|
|
31
|
+
const padding = level * 20 - (hasCollapseTrigger ? 20 : 0);
|
|
32
|
+
Object.assign(element.style, {
|
|
33
|
+
paddingLeft: `${padding}px`
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const TreeNodeRoot = [];
|
|
38
|
+
const TreeNodeItemRoot = [
|
|
39
|
+
// Layout
|
|
40
|
+
'layout-row', 'py-xs', '!items-start', 'relative',
|
|
41
|
+
// Theme
|
|
42
|
+
'hover:bg-primary-opacity-0-08', 'dark:hover:bg-primary-opacity-0-08-dark', 'selected:bg-primary-opacity-0-16', 'dark:selected:bg-primary-opacity-0-16-dark', 'selected:hover:bg-primary-opacity-0-16', 'dark:selected:hover:bg-primary-opacity-0-16-dark'];
|
|
43
|
+
const TreeNodeItemRootParentSelected = [
|
|
44
|
+
// Theme
|
|
45
|
+
'bg-primary-opacity-0-08', 'bg-primary-opacity-0-08-dark', 'hover:bg-primary-opacity-0-16', 'dark:hover:bg-primary-opacity-0-16-dark'];
|
|
46
|
+
const TreeNodeDragIndicator = [
|
|
47
|
+
// Layout
|
|
48
|
+
'absolute h-[2px] w-full left-[0px]',
|
|
49
|
+
// Theme
|
|
50
|
+
'bg-primary',
|
|
51
|
+
// Interaction
|
|
52
|
+
'pointer-events-none'];
|
|
53
|
+
const TreeNodeDragIndicatorPosition = {
|
|
54
|
+
top: ['top-[-1px]'],
|
|
55
|
+
middle: ['top-[-1px]', 'left-[0px]', 'w-full', '!h-[calc(100%+2px)]',
|
|
56
|
+
// Theme
|
|
57
|
+
'bg-transparent', 'border-x-0', 'border-y-2', 'border-primary', 'dark:border-primary-dark'],
|
|
58
|
+
bottom: ['bottom-[-1px]']
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var script$1 = defineComponent({
|
|
62
|
+
name: 'OrTreeNode',
|
|
63
|
+
components: {
|
|
64
|
+
OrButton: script$2,
|
|
65
|
+
OrIcon: script$3
|
|
66
|
+
},
|
|
67
|
+
props: {
|
|
68
|
+
node: {
|
|
69
|
+
type: Object,
|
|
70
|
+
required: true
|
|
71
|
+
},
|
|
72
|
+
selected: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: undefined
|
|
75
|
+
},
|
|
76
|
+
parentSelected: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: undefined
|
|
79
|
+
},
|
|
80
|
+
expanded: {
|
|
81
|
+
type: Boolean,
|
|
82
|
+
default: true
|
|
83
|
+
},
|
|
84
|
+
depth: {
|
|
85
|
+
type: Number,
|
|
86
|
+
default: 1
|
|
87
|
+
},
|
|
88
|
+
draggable: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: false
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
emits: ['drop', 'dragstart', 'click', 'expand', 'collapse', 'contextmenu'],
|
|
94
|
+
setup(props, _ref) {
|
|
95
|
+
let {
|
|
96
|
+
emit
|
|
97
|
+
} = _ref;
|
|
98
|
+
// Refs
|
|
99
|
+
const root = ref();
|
|
100
|
+
const nodeRoot = ref();
|
|
101
|
+
// State
|
|
102
|
+
const isDragOver = ref(false);
|
|
103
|
+
const isDrag = ref(false);
|
|
104
|
+
const dragPosition = ref('top');
|
|
105
|
+
const hasChildren = computed(() => !!props.node.children && props.node.children.length > 0);
|
|
106
|
+
const [isOpen, setIsOpen] = useToggle(props.expanded);
|
|
107
|
+
const hasCollapseTrigger = computed(() => props.node.collapsible || hasChildren.value);
|
|
108
|
+
const isLeaf = computed(() => !hasChildren.value);
|
|
109
|
+
const canDrag = computed(() => props.draggable !== false && props.node.draggable !== false);
|
|
110
|
+
// Effects
|
|
111
|
+
watch(() => props.depth, value => {
|
|
112
|
+
applyPadding(unref(nodeRoot), value, hasCollapseTrigger.value);
|
|
113
|
+
});
|
|
114
|
+
watch(() => props.expanded, value => {
|
|
115
|
+
if (value !== undefined) {
|
|
116
|
+
setIsOpen(value);
|
|
117
|
+
}
|
|
118
|
+
}, {
|
|
119
|
+
immediate: true
|
|
120
|
+
});
|
|
121
|
+
onMounted(() => {
|
|
122
|
+
applyPadding(unref(nodeRoot), props.depth, hasCollapseTrigger.value);
|
|
123
|
+
});
|
|
124
|
+
// Methods
|
|
125
|
+
const handleDrop = e => {
|
|
126
|
+
var _a;
|
|
127
|
+
const nodeKey = (_a = e === null || e === void 0 ? void 0 : e.dataTransfer) === null || _a === void 0 ? void 0 : _a.getData('node-key');
|
|
128
|
+
isDragOver.value = false;
|
|
129
|
+
emit('drop', {
|
|
130
|
+
dropKey: props.node.key,
|
|
131
|
+
dragKey: nodeKey,
|
|
132
|
+
dropPosition: dragPosition.value
|
|
133
|
+
});
|
|
134
|
+
};
|
|
135
|
+
const handleDragStart = e => {
|
|
136
|
+
var _a;
|
|
137
|
+
isDrag.value = true;
|
|
138
|
+
setIsOpen(false);
|
|
139
|
+
(_a = e === null || e === void 0 ? void 0 : e.dataTransfer) === null || _a === void 0 ? void 0 : _a.setData('node-key', props.node.key);
|
|
140
|
+
emit('dragstart', props.node.key);
|
|
141
|
+
};
|
|
142
|
+
const handleDragOver = e => {
|
|
143
|
+
e.preventDefault();
|
|
144
|
+
e.stopPropagation();
|
|
145
|
+
dragPosition.value = getDropOffset(e, props.node.canMiddleDrop || props.node.collapsible || hasChildren.value);
|
|
146
|
+
isDragOver.value = true;
|
|
147
|
+
};
|
|
148
|
+
const handleDragLeave = e => {
|
|
149
|
+
e.preventDefault();
|
|
150
|
+
e.stopPropagation();
|
|
151
|
+
isDragOver.value = false;
|
|
152
|
+
};
|
|
153
|
+
const handleContextMenu = e => {
|
|
154
|
+
emit('contextmenu', Object.assign(e, {
|
|
155
|
+
nodeKey: props.node.key
|
|
156
|
+
}));
|
|
157
|
+
};
|
|
158
|
+
const handleClick = e => {
|
|
159
|
+
e.preventDefault();
|
|
160
|
+
emit('click', props.node.key);
|
|
161
|
+
};
|
|
162
|
+
const handleCollapse = () => {
|
|
163
|
+
if (isOpen.value) {
|
|
164
|
+
setIsOpen(false);
|
|
165
|
+
emit('collapse', props.node.key);
|
|
166
|
+
} else {
|
|
167
|
+
setIsOpen(true);
|
|
168
|
+
emit('expand', props.node.key);
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
// Styles
|
|
172
|
+
const rootStyles = computed(() => ['or-tree-node-v3', ...TreeNodeRoot]);
|
|
173
|
+
const nodeStyles = computed(() => [...TreeNodeItemRoot, ...(props.parentSelected ? TreeNodeItemRootParentSelected : [])]);
|
|
174
|
+
const dragIndicatorStyles = computed(() => [...TreeNodeDragIndicator, ...TreeNodeDragIndicatorPosition[dragPosition.value]]);
|
|
175
|
+
return {
|
|
176
|
+
root,
|
|
177
|
+
isOpen,
|
|
178
|
+
isLeaf,
|
|
179
|
+
rootStyles,
|
|
180
|
+
nodeStyles,
|
|
181
|
+
dragIndicatorStyles,
|
|
182
|
+
setIsOpen,
|
|
183
|
+
nodeRoot,
|
|
184
|
+
isDrag,
|
|
185
|
+
canDrag,
|
|
186
|
+
dragPosition,
|
|
187
|
+
handleDragStart,
|
|
188
|
+
handleDrop,
|
|
189
|
+
handleCollapse,
|
|
190
|
+
handleContextMenu,
|
|
191
|
+
handleClick,
|
|
192
|
+
handleDragOver,
|
|
193
|
+
handleDragLeave,
|
|
194
|
+
hasCollapseTrigger,
|
|
195
|
+
isDragOver
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
const _hoisted_1 = ["draggable", "selected"];
|
|
201
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
202
|
+
const _component_OrIcon = resolveComponent("OrIcon");
|
|
203
|
+
const _component_OrButton = resolveComponent("OrButton");
|
|
204
|
+
const _component_OrTreeNode = resolveComponent("OrTreeNode", true);
|
|
205
|
+
return openBlock(), createElementBlock("div", {
|
|
206
|
+
ref: "root",
|
|
207
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
208
|
+
}, [createElementVNode("div", {
|
|
209
|
+
ref: "nodeRoot",
|
|
210
|
+
class: normalizeClass(_ctx.nodeStyles),
|
|
211
|
+
draggable: _ctx.canDrag ? true : undefined,
|
|
212
|
+
selected: _ctx.selected ? true : undefined,
|
|
213
|
+
onDragend: _cache[0] || (_cache[0] = $event => _ctx.isDrag = false),
|
|
214
|
+
onDragstart: _cache[1] || (_cache[1] = withModifiers(function () {
|
|
215
|
+
return _ctx.handleDragStart && _ctx.handleDragStart(...arguments);
|
|
216
|
+
}, ["stop"])),
|
|
217
|
+
onDragover: _cache[2] || (_cache[2] = withModifiers(function () {
|
|
218
|
+
return _ctx.handleDragOver && _ctx.handleDragOver(...arguments);
|
|
219
|
+
}, ["prevent"])),
|
|
220
|
+
onDragenter: _cache[3] || (_cache[3] = withModifiers(function () {
|
|
221
|
+
return _ctx.handleDragOver && _ctx.handleDragOver(...arguments);
|
|
222
|
+
}, ["prevent"])),
|
|
223
|
+
onDragleave: _cache[4] || (_cache[4] = function () {
|
|
224
|
+
return _ctx.handleDragLeave && _ctx.handleDragLeave(...arguments);
|
|
225
|
+
}),
|
|
226
|
+
onDrop: _cache[5] || (_cache[5] = function () {
|
|
227
|
+
return _ctx.handleDrop && _ctx.handleDrop(...arguments);
|
|
228
|
+
}),
|
|
229
|
+
onClick: _cache[6] || (_cache[6] = function () {
|
|
230
|
+
return _ctx.handleClick && _ctx.handleClick(...arguments);
|
|
231
|
+
}),
|
|
232
|
+
onContextmenu: _cache[7] || (_cache[7] = function () {
|
|
233
|
+
return _ctx.handleContextMenu && _ctx.handleContextMenu(...arguments);
|
|
234
|
+
})
|
|
235
|
+
}, [_ctx.hasCollapseTrigger ? (openBlock(), createBlock(_component_OrButton, {
|
|
236
|
+
key: 0,
|
|
237
|
+
variant: "link",
|
|
238
|
+
onClick: withModifiers(_ctx.handleCollapse, ["stop"])
|
|
239
|
+
}, {
|
|
240
|
+
default: withCtx(() => [createVNode(_component_OrIcon, {
|
|
241
|
+
class: normalizeClass([_ctx.isOpen ? 'rotate-90' : 'rotate-0']),
|
|
242
|
+
icon: "arrow_right",
|
|
243
|
+
size: "l"
|
|
244
|
+
}, null, 8 /* PROPS */, ["class"])]),
|
|
245
|
+
_: 1 /* STABLE */
|
|
246
|
+
}, 8 /* PROPS */, ["onClick"])) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "node", normalizeProps(guardReactiveProps({
|
|
247
|
+
node: _ctx.node,
|
|
248
|
+
isOpen: _ctx.isOpen,
|
|
249
|
+
isLeaf: _ctx.isLeaf,
|
|
250
|
+
isDrag: _ctx.isDrag,
|
|
251
|
+
isDragOver: _ctx.isDragOver,
|
|
252
|
+
depth: _ctx.depth
|
|
253
|
+
})), () => [createTextVNode(toDisplayString(_ctx.node.key), 1 /* TEXT */)]), _ctx.isDragOver && !_ctx.isDrag ? (openBlock(), createElementBlock("div", {
|
|
254
|
+
key: 1,
|
|
255
|
+
class: normalizeClass(_ctx.dragIndicatorStyles)
|
|
256
|
+
}, null, 2 /* CLASS */)) : createCommentVNode("v-if", true)], 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_1), !_ctx.isLeaf && _ctx.isOpen ? (openBlock(true), createElementBlock(Fragment, {
|
|
257
|
+
key: 0
|
|
258
|
+
}, renderList(_ctx.node.children, child => {
|
|
259
|
+
return openBlock(), createBlock(_component_OrTreeNode, {
|
|
260
|
+
key: child.key,
|
|
261
|
+
"parent-selected": _ctx.selected || undefined,
|
|
262
|
+
node: child,
|
|
263
|
+
depth: _ctx.depth + 1,
|
|
264
|
+
selected: child.selected,
|
|
265
|
+
draggable: _ctx.draggable,
|
|
266
|
+
onDrop: _cache[8] || (_cache[8] = $event => _ctx.$emit('drop', $event)),
|
|
267
|
+
onDragstart: _cache[9] || (_cache[9] = $event => _ctx.$emit('dragstart', $event)),
|
|
268
|
+
onClick: _cache[10] || (_cache[10] = $event => _ctx.$emit('click', $event)),
|
|
269
|
+
onExpand: _cache[11] || (_cache[11] = $event => _ctx.$emit('expand', $event)),
|
|
270
|
+
onCollapse: _cache[12] || (_cache[12] = $event => _ctx.$emit('collapse', $event)),
|
|
271
|
+
onContextmenu: _cache[13] || (_cache[13] = (e, key) => _ctx.$emit('contextmenu', e, key))
|
|
272
|
+
}, {
|
|
273
|
+
node: withCtx(props => [renderSlot(_ctx.$slots, "node", normalizeProps(guardReactiveProps(props)))]),
|
|
274
|
+
_: 2 /* DYNAMIC */
|
|
275
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["parent-selected", "node", "depth", "selected", "draggable"]);
|
|
276
|
+
}), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
script$1.render = render;
|
|
280
|
+
script$1.__file = "src/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue";
|
|
281
|
+
|
|
282
|
+
var script = defineComponent({
|
|
283
|
+
name: 'OrTree',
|
|
284
|
+
components: {
|
|
285
|
+
OrTreeNode: script$1
|
|
286
|
+
},
|
|
287
|
+
props: {
|
|
288
|
+
nodes: {
|
|
289
|
+
type: Array,
|
|
290
|
+
default: () => []
|
|
291
|
+
},
|
|
292
|
+
draggable: {
|
|
293
|
+
type: Boolean,
|
|
294
|
+
default: false
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
emits: ['drop', 'dragstart', 'click', 'expand', 'collapse', 'contextmenu'],
|
|
298
|
+
setup() {
|
|
299
|
+
// Refs
|
|
300
|
+
const root = ref(null);
|
|
301
|
+
// Styles
|
|
302
|
+
const rootStyles = computed(() => ['or-tree-v3']);
|
|
303
|
+
return {
|
|
304
|
+
root,
|
|
305
|
+
rootStyles
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
|
|
310
|
+
export { script as s };
|