@onereach/ui-components 6.2.0-beta.3286.0 → 6.2.0-beta.3294.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/OrBottomSheetV3/OrBottomSheet.js +1 -1
- package/dist/bundled/v2/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +1 -1
- package/dist/bundled/v2/components/OrCode/OrCode.js +3 -3
- package/dist/bundled/v2/components/OrCode/index.js +5 -4
- package/dist/bundled/v2/components/OrCode/lang.js +5 -5
- package/dist/bundled/v2/components/OrCode/libs.js +5 -4
- package/dist/bundled/v2/components/OrCode/theme.js +1 -1
- package/dist/bundled/v2/components/OrCodeV3/OrCode.js +8 -8
- package/dist/bundled/v2/components/OrCodeV3/index.js +3 -2
- package/dist/bundled/v2/components/OrCodeV3/libs.d.ts +2 -1
- package/dist/bundled/v2/components/OrCodeV3/libs.js +3 -2
- package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +2 -2
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +3 -3
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +3 -3
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -3
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +1 -1
- package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +1 -1
- package/dist/bundled/v2/components/OrModal/OrModal.js +2 -2
- package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
- package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +1 -1
- package/dist/bundled/v2/components/OrPassword/OrPassword.js +1 -1
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +1 -1
- package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +1 -1
- package/dist/bundled/v2/components/OrSearch/OrSearch.js +1 -1
- package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -1
- package/dist/bundled/v2/components/OrSelect/OrSelect.js +1 -1
- package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +1 -1
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +1 -1
- package/dist/bundled/v2/components/OrSlider/OrSlider.js +1 -1
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +1 -1
- package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextarea/OrTextarea.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToast/OrToast.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToast/Timer.js +1 -1
- package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +1 -1
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +1 -1
- package/dist/bundled/v2/components/OrToastV3/OrToast.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToastV3/Timer.js +1 -1
- package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v2/components/OrTooltip/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTreeV3/OrTree.js +1 -1
- package/dist/bundled/v2/components/OrTreeV3/OrTree.vue.d.ts +2 -2
- package/dist/bundled/v2/components/index.js +6 -5
- package/dist/bundled/v2/hooks/useOverflow.js +1 -1
- package/dist/bundled/v2/hooks/usePopoverState.js +1 -1
- package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +1 -1
- package/dist/bundled/v2/{index-509d77a1.js → index-048e41ad.js} +1 -1
- package/dist/bundled/v2/{index-5ee42d1f.js → index-0789b976.js} +2 -2
- package/dist/bundled/v2/index-0ad0f605.js +826 -0
- package/dist/bundled/v2/{index-5ce3ef85.js → index-379ec85d.js} +10 -831
- package/dist/bundled/{v3/index-22f7d3aa.js → v2/index-5e5d18d5.js} +3 -3
- package/dist/bundled/{v3/index-792c62f6.js → v2/index-7211e1c5.js} +2 -2
- package/dist/bundled/{v3/index-500b3ace.js → v2/index-82718479.js} +1 -1
- package/dist/bundled/v2/{index-f31843f4.js → index-9e0bdde8.js} +2 -2
- package/dist/bundled/v2/{index-61aeae22.js → index-b261a47e.js} +348 -292
- package/dist/bundled/v2/{index-c26082b9.js → index-c321391a.js} +1 -1
- package/dist/bundled/v2/{index-648acd9e.js → index-d02cdc81.js} +1 -1
- package/dist/bundled/{v3/index-84ea2fc8.js → v2/index-ea7a689d.js} +4 -4
- package/dist/bundled/v2/index.js +6 -5
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-4adbc880.js → OrBottomSheet.vue_vue_type_script_lang-33bfe3c4.js} +2 -2
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-22b24f8b.js → OrButton.vue_vue_type_script_lang-85f1cb3f.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3c786697.js → OrCardCollection.vue_vue_type_script_lang-0ba13713.js} +3 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-ac7e801f.js → OrCardCollection.vue_vue_type_script_lang-fe769106.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-ca6ba786.js → OrCheckboxGroup.vue_vue_type_script_lang-c05088ee.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-d3ed803b.js → OrCheckboxTree.vue_vue_type_script_lang-bd0fa916.js} +2 -2
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-8c5b4f6e.js → OrCode.vue_vue_type_script_lang-1df17839.js} +4 -4
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-b46a0f8a.js → OrCode.vue_vue_type_script_lang-ad985f8f.js} +10 -10
- package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-7b6d1e64.js → OrColorPicker.vue_vue_type_script_lang-153ef60d.js} +2 -2
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-1c8833a9.js → OrConfirm.vue_vue_type_script_lang-808367f7.js} +4 -4
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-cd1e7075.js → OrConfirm.vue_vue_type_script_lang-cf909881.js} +6 -6
- package/dist/bundled/v3/{OrContextMenu.vue_vue_type_script_lang-db980d2e.js → OrContextMenu.vue_vue_type_script_lang-b4e0569b.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-715f99d5.js → OrDatePicker.vue_vue_type_script_lang-b1130337.js} +4 -4
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-94d71788.js → OrDateTimePicker.vue_vue_type_script_lang-37b1996e.js} +5 -5
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-2a292787.js → OrDateTimePicker.vue_vue_type_script_lang-98f80113.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-f2744b4e.js → OrDateTimePickerMonthSelect-7fcfccdf.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-daa7e47b.js → OrDateTimePickerPopoverHeader-78fe6852.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-96c4d657.js → OrDateTimePickerTimeSelect-56bff361.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-e11abdcc.js → OrIconButton.vue_vue_type_script_lang-20210ebe.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-120b4dae.js → OrInlineInput.vue_vue_type_script_lang-e78cacec.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-e5151109.js → OrInlineTextEdit.vue_vue_type_script_lang-d7f24fd6.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-ebe8d51d.js → OrInlineTextarea.vue_vue_type_script_lang-e69604e1.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-7d7ad741.js → OrInput.vue_vue_type_script_lang-4c9af1b9.js} +2 -2
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-0395ad21.js → OrLoader.vue_vue_type_script_lang-b0347c70.js} +1 -1
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-97b33dae.js → OrMenu.vue_vue_type_script_lang-80d3a47b.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-7f46b47e.js → OrModal.vue_vue_type_script_lang-22ca96e3.js} +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-8d01d297.js → OrModal.vue_vue_type_script_lang-fe9b0d62.js} +2 -2
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-2bf01716.js → OrNotification.vue_vue_type_script_lang-bb93ca64.js} +1 -1
- package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-f8e4a5b8.js → OrOverflowMenu.vue_vue_type_script_lang-ab2d6d33.js} +2 -2
- package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-2da128a3.js → OrOverlay.vue_vue_type_script_lang-7e9b1817.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-729c913f.js → OrPagination.vue_vue_type_script_lang-6e3a561d.js} +2 -2
- package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-e85c91c4.js → OrPassword.vue_vue_type_script_lang-fc8438a8.js} +1 -1
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-3aed1b31.js → OrPopover.vue_vue_type_script_lang-b6dba09f.js} +2 -2
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-32e6da23.js → OrProgress.vue_vue_type_script_lang-78c933d7.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-57162ecf.js → OrSearch.vue_vue_type_script_lang-981f3cf0.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-8470f57f.js → OrSearch.vue_vue_type_script_lang-9e5da97d.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-e2818b8e.js → OrSelect.vue_vue_type_script_lang-d496bc7b.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-d95a1d66.js → OrSelect.vue_vue_type_script_lang-f651614d.js} +5 -5
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-b12bca44.js → OrSidebar.vue_vue_type_script_lang-3ea9752f.js} +2 -2
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-81941fe6.js → OrSidebar.vue_vue_type_script_lang-f5d46ede.js} +1 -1
- package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-1632008b.js → OrSlider.vue_vue_type_script_lang-ef8699ca.js} +1 -1
- package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-115be0a4.js → OrSorting.vue_vue_type_script_lang-7496f136.js} +2 -2
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-a2f28112.js → OrSwitch.vue_vue_type_script_lang-51b857e2.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-e90c3291.js → OrTabs.vue_vue_type_script_lang-2e57804a.js} +2 -2
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-8fc22835.js → OrTag.vue_vue_type_script_lang-b66887dd.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-f453ac36.js → OrTagInput.vue_vue_type_script_lang-a00eb885.js} +2 -2
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-422cbf86.js → OrTags.vue_vue_type_script_lang-938b34b7.js} +3 -3
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-59a1b975.js → OrTimePicker.vue_vue_type_script_lang-8c297fdd.js} +4 -4
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-8544ff72.js → OrToastContainer.vue_vue_type_script_lang-07b75b00.js} +1 -1
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-71a39d2d.js → OrToastContainer.vue_vue_type_script_lang-8d3ed93a.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-fbacc740.js → OrTooltip.vue_vue_type_script_lang-81dbde5d.js} +1 -1
- package/dist/bundled/v3/{OrTree.vue_vue_type_script_lang-ffd5fbc3.js → OrTree.vue_vue_type_script_lang-bd439beb.js} +2 -2
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +26 -11
- package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +22 -7
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +568 -25
- package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.d.ts +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +1 -1
- package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +51 -16
- package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +57 -20
- package/dist/bundled/v3/components/OrButtonV3/OrButton.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +35 -15
- package/dist/bundled/v3/components/OrButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +15 -7
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +47 -21
- package/dist/bundled/v3/components/OrCardCollection/index.js +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +44 -17
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +7 -4
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +35 -15
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +24 -6
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +43 -17
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +53 -23
- package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +25 -9
- package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +51 -24
- package/dist/bundled/v3/components/OrCode/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +69 -24
- package/dist/bundled/v3/components/OrCode/index.js +6 -5
- package/dist/bundled/v3/components/OrCode/lang.js +5 -5
- package/dist/bundled/v3/components/OrCode/libs.js +5 -4
- package/dist/bundled/v3/components/OrCode/theme.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +83 -33
- package/dist/bundled/v3/components/OrCodeV3/index.js +4 -3
- package/dist/bundled/v3/components/OrCodeV3/libs.d.ts +2 -1
- package/dist/bundled/v3/components/OrCodeV3/libs.js +3 -2
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +39 -17
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +2 -2
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +31 -13
- package/dist/bundled/v3/components/OrColorPicker/index.js +1 -1
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +30 -8
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +84 -23
- package/dist/bundled/v3/components/OrConfirm/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +91 -30
- package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +2 -2
- package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.vue.d.ts +27 -13
- package/dist/bundled/v3/components/OrContextMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +83 -88
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +177 -68
- package/dist/bundled/v3/components/OrDateTimePicker/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +109 -94
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +28 -11
- package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +8 -4
- package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +7 -4
- package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +18 -9
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +2 -2
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +39 -16
- package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +20 -8
- package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +46 -15
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +30 -10
- package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +8 -4
- package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +18 -9
- package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +44 -16
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +43 -13
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +54 -16
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +18 -7
- package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +16 -7
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +83 -39
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +95 -43
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +79 -39
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +87 -36
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +22 -7
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +2 -2
- package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +88 -38
- package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +26 -9
- package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +24 -7
- package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +47 -21
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +27 -11
- package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +26 -10
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +2 -2
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +34 -13
- package/dist/bundled/v3/components/OrLoaderV3/index.js +1 -1
- package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +34 -13
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +2 -2
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +33 -15
- package/dist/bundled/v3/components/OrMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrModal/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +38 -14
- package/dist/bundled/v3/components/OrModal/index.js +1 -1
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +25 -13
- package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
- package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +27 -9
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +2 -2
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrNotificationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +70 -24
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +31 -13
- package/dist/bundled/v3/components/OrOverflowMenu/index.js +1 -1
- package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +16 -6
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +14 -7
- package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +2 -2
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +75 -27
- package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPassword/OrPassword.js +2 -2
- package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +63 -22
- package/dist/bundled/v3/components/OrPassword/index.js +1 -1
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +2 -2
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +92 -32
- package/dist/bundled/v3/components/OrPopoverV3/index.js +1 -1
- package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +56 -20
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +2 -2
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +62 -25
- package/dist/bundled/v3/components/OrProgressV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +35 -13
- package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +26 -9
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +32 -6
- package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +49 -21
- package/dist/bundled/v3/components/OrSearch/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +65 -23
- package/dist/bundled/v3/components/OrSearch/index.js +1 -1
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +41 -17
- package/dist/bundled/v3/components/OrSearchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +25 -9
- package/dist/bundled/v3/components/OrSelect/OrSelect.js +2 -2
- package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +77 -28
- package/dist/bundled/v3/components/OrSelect/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -2
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +133 -44
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +33 -14
- package/dist/bundled/v3/components/OrSidebar/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +63 -28
- package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +28 -13
- package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +22 -9
- package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +26 -11
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +26 -10
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +40 -16
- package/dist/bundled/v3/components/OrSlider/OrSlider.js +2 -2
- package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +91 -35
- package/dist/bundled/v3/components/OrSlider/index.js +1 -1
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +2 -2
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.vue.d.ts +45 -13
- package/dist/bundled/v3/components/OrSortingV3/index.js +1 -1
- package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +43 -16
- package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +33 -12
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +2 -2
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +53 -22
- package/dist/bundled/v3/components/OrSwitchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +22 -9
- package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +29 -13
- package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +17 -10
- package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +17 -4
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +73 -26
- package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +27 -10
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +2 -2
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +85 -37
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +2 -2
- package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +23 -12
- package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +2 -2
- package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +68 -23
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +24 -11
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +85 -37
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +73 -32
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +137 -55
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +83 -88
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +31 -11
- package/dist/bundled/v3/components/OrToast/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToast/index.js +1 -1
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +55 -25
- package/dist/bundled/v3/components/OrToastContainer/index.js +1 -1
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +54 -24
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +38 -16
- package/dist/bundled/v3/components/OrToastV3/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +33 -14
- package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +2 -2
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +33 -15
- package/dist/bundled/v3/components/OrTooltipV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTreeV3/OrTree.js +2 -2
- package/dist/bundled/v3/components/OrTreeV3/OrTree.vue.d.ts +19 -13
- package/dist/bundled/v3/components/OrTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/index.js +56 -55
- package/dist/bundled/v3/directives/dropdown-close.d.ts +1 -3
- package/dist/bundled/v3/directives/dropdown-open.d.ts +1 -3
- package/dist/bundled/v3/hooks/useOverflow.js +1 -1
- package/dist/bundled/v3/hooks/usePopoverState.js +1 -1
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +1 -1
- package/dist/bundled/v3/index-168d8a72.js +826 -0
- package/dist/bundled/v3/{index-929e224a.js → index-2db1212e.js} +1 -1
- package/dist/bundled/v3/{index-f92296d7.js → index-3074ab3c.js} +10 -831
- package/dist/bundled/{v2/index-e72fe4a8.js → v3/index-3de4069f.js} +2 -2
- package/dist/bundled/{v2/index-15e8c1f3.js → v3/index-51eb57bd.js} +1 -1
- package/dist/bundled/v3/{index-bb6d92dd.js → index-540ed5cb.js} +1 -1
- package/dist/bundled/v3/{index-929b54f2.js → index-73699920.js} +348 -292
- package/dist/bundled/v3/{index-19d70079.js → index-a59e89b4.js} +2 -2
- package/dist/bundled/{v2/index-64a3a364.js → v3/index-c661340a.js} +3 -3
- package/dist/bundled/v3/{index-df2529d7.js → index-ce11b31b.js} +1 -1
- package/dist/bundled/v3/{index-b71d76f4.js → index-e0aaa8dc.js} +2 -2
- package/dist/bundled/{v2/index-5dd41049.js → v3/index-fdffd536.js} +4 -4
- package/dist/bundled/v3/index.js +56 -55
- package/dist/esm/v2/components/or-code-v3/index.js +2 -1
- package/dist/esm/v2/components/or-code-v3/libs.d.ts +2 -1
- package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textarea/OrTextarea.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textbox/OrTextbox.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast/OrToast.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tree-v3/OrTree.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-avatar/OrAvatar.vue.d.ts +26 -11
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +22 -7
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +568 -25
- package/dist/esm/v3/components/or-bottom-sheet-v3/hooks/useBottomSheetSwipeState.d.ts +1 -1
- package/dist/esm/v3/components/or-button/OrButton.vue.d.ts +51 -16
- package/dist/esm/v3/components/or-button-v2/OrButton.vue.d.ts +57 -20
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +35 -15
- package/dist/esm/v3/components/or-card/OrCard.vue.d.ts +15 -7
- package/dist/esm/v3/components/or-card-collection/OrCardCollection.vue.d.ts +47 -21
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +44 -17
- package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +14 -6
- package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-checkbox/OrCheckbox.vue.d.ts +35 -15
- package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +24 -6
- package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +43 -17
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +53 -23
- package/dist/esm/v3/components/or-chips/OrChips.vue.d.ts +51 -24
- package/dist/esm/v3/components/or-chips/or-chip/OrChip.vue.d.ts +25 -9
- package/dist/esm/v3/components/or-chips/partials/OrChipsInput.vue.d.ts +37 -17
- package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +69 -24
- package/dist/esm/v3/components/or-code-v3/OrCode.vue.d.ts +83 -33
- package/dist/esm/v3/components/or-code-v3/index.js +2 -1
- package/dist/esm/v3/components/or-code-v3/libs.d.ts +2 -1
- package/dist/esm/v3/components/or-collapse/OrCollapse.vue.d.ts +39 -17
- package/dist/esm/v3/components/or-color-picker/OrColorPicker.vue.d.ts +31 -13
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +30 -8
- package/dist/esm/v3/components/or-confirm/OrConfirm.vue.d.ts +84 -23
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +91 -30
- package/dist/esm/v3/components/or-context-menu-v3/OrContextMenu.vue.d.ts +27 -13
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +83 -88
- package/dist/esm/v3/components/or-date-time-picker/OrDateTimePicker.vue.d.ts +177 -68
- package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +33 -12
- package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +109 -94
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +39 -17
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +15 -7
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +85 -23
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +17 -9
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +30 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +43 -17
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-error/OrError.vue.d.ts +8 -4
- package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +18 -9
- package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +39 -16
- package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +20 -8
- package/dist/esm/v3/components/or-floating/OrFloating.vue.d.ts +46 -15
- package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +30 -10
- package/dist/esm/v3/components/or-hint/OrHint.vue.d.ts +8 -4
- package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +18 -9
- package/dist/esm/v3/components/or-icon/OrIcon.vue.d.ts +44 -16
- package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +43 -13
- package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +10 -8
- package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +54 -16
- package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +18 -7
- package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +16 -7
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +83 -39
- package/dist/esm/v3/components/or-inline-text-edit/OrInlineTextEdit.vue.d.ts +95 -43
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +79 -39
- package/dist/esm/v3/components/or-input/OrInput.vue.d.ts +87 -36
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +22 -7
- package/dist/esm/v3/components/or-input-box-v3/partials/or-input-box-addon/OrInputBoxAddon.vue.d.ts +18 -7
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +88 -38
- package/dist/esm/v3/components/or-label/OrLabel.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +26 -9
- package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +24 -7
- package/dist/esm/v3/components/or-list/OrList.vue.d.ts +47 -21
- package/dist/esm/v3/components/or-list-of-inputs/OrListOfInputs.vue.d.ts +27 -11
- package/dist/esm/v3/components/or-loader/OrLoader.vue.d.ts +26 -10
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +34 -13
- package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +34 -13
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +33 -15
- package/dist/esm/v3/components/or-modal/OrModal.vue.d.ts +38 -14
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +25 -13
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +11 -6
- package/dist/esm/v3/components/or-notification/OrNotification.vue.d.ts +27 -9
- package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-number-input/OrNumberInput.vue.d.ts +70 -24
- package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenu.vue.d.ts +31 -13
- package/dist/esm/v3/components/or-overflow-menu/partials/OrOverflowMenuItem.vue.d.ts +23 -7
- package/dist/esm/v3/components/or-overlay/OrOverlay.vue.d.ts +16 -6
- package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +14 -7
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +75 -27
- package/dist/esm/v3/components/or-password/OrPassword.vue.d.ts +63 -22
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +92 -32
- package/dist/esm/v3/components/or-progress/OrProgress.vue.d.ts +56 -20
- package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +62 -25
- package/dist/esm/v3/components/or-radio/OrRadio.vue.d.ts +35 -13
- package/dist/esm/v3/components/or-radio-group/OrRadioGroup.vue.d.ts +26 -9
- package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +32 -6
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +49 -21
- package/dist/esm/v3/components/or-search/OrSearch.vue.d.ts +65 -23
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +41 -17
- package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +25 -9
- package/dist/esm/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +20 -8
- package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +77 -28
- package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +49 -18
- package/dist/esm/v3/components/or-select/partials/OrSelectContentEmpty.vue.d.ts +16 -4
- package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +67 -13
- package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +41 -16
- package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +35 -16
- package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +71 -24
- package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +19 -7
- package/dist/esm/v3/components/or-select/partials/OrSelectSearchOptions.vue.d.ts +24 -11
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +133 -44
- package/dist/esm/v3/components/or-select-v3/partials/or-select-placeholder/OrSelectPlaceholder.vue.d.ts +14 -7
- package/dist/esm/v3/components/or-sidebar/OrSidebar.vue.d.ts +33 -14
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +63 -28
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +23 -10
- package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue.d.ts +22 -9
- package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +26 -10
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +28 -13
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +26 -11
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +40 -16
- package/dist/esm/v3/components/or-slider/OrSlider.vue.d.ts +91 -35
- package/dist/esm/v3/components/or-sorting-v3/OrSorting.vue.d.ts +45 -13
- package/dist/esm/v3/components/or-stepper/OrStepper.vue.d.ts +43 -16
- package/dist/esm/v3/components/or-stepper/partials/OrStepperButtonOptions.vue.d.ts +20 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionHorizontal.vue.d.ts +26 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionVertical.vue.d.ts +26 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperTitle.vue.d.ts +22 -6
- package/dist/esm/v3/components/or-stepper/partials/StatusIcon.vue.d.ts +12 -6
- package/dist/esm/v3/components/or-switch/OrSwitch.vue.d.ts +33 -12
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +53 -22
- package/dist/esm/v3/components/or-tab/OrTab.vue.d.ts +22 -9
- package/dist/esm/v3/components/or-tab-header-item/OrTabHeaderItem.vue.d.ts +29 -13
- package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +17 -10
- package/dist/esm/v3/components/or-tabs/OrTabs.vue.d.ts +17 -4
- package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +73 -26
- package/dist/esm/v3/components/or-tag/OrTag.vue.d.ts +27 -10
- package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +85 -37
- package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +23 -12
- package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +68 -23
- package/dist/esm/v3/components/or-teleport/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +24 -11
- package/dist/esm/v3/components/or-textarea/OrTextarea.vue.d.ts +85 -37
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +73 -32
- package/dist/esm/v3/components/or-textbox/OrTextbox.vue.d.ts +137 -55
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +83 -88
- package/dist/esm/v3/components/or-toast/OrToast.vue.d.ts +31 -11
- package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +55 -25
- package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +38 -16
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +54 -24
- package/dist/esm/v3/components/or-tooltip/OrTooltip.vue.d.ts +33 -14
- package/dist/esm/v3/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +33 -15
- package/dist/esm/v3/components/or-tree-v3/OrTree.vue.d.ts +19 -13
- package/dist/esm/v3/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +63 -31
- package/dist/esm/v3/directives/dropdown-close.d.ts +1 -3
- package/dist/esm/v3/directives/dropdown-open.d.ts +1 -3
- package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/package.json +4 -1
- package/src/components/or-code-v3/libs.ts +5 -1
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-e7037d50.js → OrDateTimePickerMonthSelect-5c7d6cc7.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-2c7e113b.js → OrDateTimePickerPopoverHeader-922f203c.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-7fd83e23.js → OrDateTimePickerTimeSelect-fc9d4e29.js} +0 -0
- /package/dist/bundled/v2/{index-ec92055d.js → index-8a1b5b9c.js} +0 -0
- /package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-de05b51f.js → OrExpansionPanel.vue_vue_type_script_lang-e09daea9.js} +0 -0
- /package/dist/bundled/v3/{index-f4d8e24c.js → index-5e8e7a46.js} +0 -0
|
@@ -0,0 +1,826 @@
|
|
|
1
|
+
import { E as EditorView, p as Decoration, Y as hoverTooltip, S as StateField, w as showPanel, V as ViewPlugin, Z as logException, F as Facet, c as combineConfig, _ as gutter, $ as RangeSet, a0 as showTooltip, m as StateEffect, t as getPanel, a1 as WidgetType, a2 as GutterMarker } from './index-b261a47e.js';
|
|
2
|
+
|
|
3
|
+
function crelt() {
|
|
4
|
+
var elt = arguments[0];
|
|
5
|
+
if (typeof elt == "string") elt = document.createElement(elt);
|
|
6
|
+
var i = 1,
|
|
7
|
+
next = arguments[1];
|
|
8
|
+
if (next && typeof next == "object" && next.nodeType == null && !Array.isArray(next)) {
|
|
9
|
+
for (var name in next) if (Object.prototype.hasOwnProperty.call(next, name)) {
|
|
10
|
+
var value = next[name];
|
|
11
|
+
if (typeof value == "string") elt.setAttribute(name, value);else if (value != null) elt[name] = value;
|
|
12
|
+
}
|
|
13
|
+
i++;
|
|
14
|
+
}
|
|
15
|
+
for (; i < arguments.length; i++) add(elt, arguments[i]);
|
|
16
|
+
return elt;
|
|
17
|
+
}
|
|
18
|
+
function add(elt, child) {
|
|
19
|
+
if (typeof child == "string") {
|
|
20
|
+
elt.appendChild(document.createTextNode(child));
|
|
21
|
+
} else if (child == null) ; else if (child.nodeType != null) {
|
|
22
|
+
elt.appendChild(child);
|
|
23
|
+
} else if (Array.isArray(child)) {
|
|
24
|
+
for (var i = 0; i < child.length; i++) add(elt, child[i]);
|
|
25
|
+
} else {
|
|
26
|
+
throw new RangeError("Unsupported child node: " + child);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
class SelectedDiagnostic {
|
|
31
|
+
constructor(from, to, diagnostic) {
|
|
32
|
+
this.from = from;
|
|
33
|
+
this.to = to;
|
|
34
|
+
this.diagnostic = diagnostic;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
class LintState {
|
|
38
|
+
constructor(diagnostics, panel, selected) {
|
|
39
|
+
this.diagnostics = diagnostics;
|
|
40
|
+
this.panel = panel;
|
|
41
|
+
this.selected = selected;
|
|
42
|
+
}
|
|
43
|
+
static init(diagnostics, panel, state) {
|
|
44
|
+
// Filter the list of diagnostics for which to create markers
|
|
45
|
+
let markedDiagnostics = diagnostics;
|
|
46
|
+
let diagnosticFilter = state.facet(lintConfig).markerFilter;
|
|
47
|
+
if (diagnosticFilter) markedDiagnostics = diagnosticFilter(markedDiagnostics);
|
|
48
|
+
let ranges = Decoration.set(markedDiagnostics.map(d => {
|
|
49
|
+
// For zero-length ranges or ranges covering only a line break, create a widget
|
|
50
|
+
return d.from == d.to || d.from == d.to - 1 && state.doc.lineAt(d.from).to == d.from ? Decoration.widget({
|
|
51
|
+
widget: new DiagnosticWidget(d),
|
|
52
|
+
diagnostic: d
|
|
53
|
+
}).range(d.from) : Decoration.mark({
|
|
54
|
+
attributes: {
|
|
55
|
+
class: "cm-lintRange cm-lintRange-" + d.severity
|
|
56
|
+
},
|
|
57
|
+
diagnostic: d
|
|
58
|
+
}).range(d.from, d.to);
|
|
59
|
+
}), true);
|
|
60
|
+
return new LintState(ranges, panel, findDiagnostic(ranges));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
function findDiagnostic(diagnostics) {
|
|
64
|
+
let diagnostic = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
65
|
+
let after = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
66
|
+
let found = null;
|
|
67
|
+
diagnostics.between(after, 1e9, (from, to, _ref) => {
|
|
68
|
+
let {
|
|
69
|
+
spec
|
|
70
|
+
} = _ref;
|
|
71
|
+
if (diagnostic && spec.diagnostic != diagnostic) return;
|
|
72
|
+
found = new SelectedDiagnostic(from, to, spec.diagnostic);
|
|
73
|
+
return false;
|
|
74
|
+
});
|
|
75
|
+
return found;
|
|
76
|
+
}
|
|
77
|
+
function hideTooltip(tr, tooltip) {
|
|
78
|
+
let line = tr.startState.doc.lineAt(tooltip.pos);
|
|
79
|
+
return !!(tr.effects.some(e => e.is(setDiagnosticsEffect)) || tr.changes.touchesRange(line.from, line.to));
|
|
80
|
+
}
|
|
81
|
+
function maybeEnableLint(state, effects) {
|
|
82
|
+
return state.field(lintState, false) ? effects : effects.concat(StateEffect.appendConfig.of(lintExtensions));
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
Returns a transaction spec which updates the current set of
|
|
86
|
+
diagnostics, and enables the lint extension if if wasn't already
|
|
87
|
+
active.
|
|
88
|
+
*/
|
|
89
|
+
function setDiagnostics(state, diagnostics) {
|
|
90
|
+
return {
|
|
91
|
+
effects: maybeEnableLint(state, [setDiagnosticsEffect.of(diagnostics)])
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
The state effect that updates the set of active diagnostics. Can
|
|
96
|
+
be useful when writing an extension that needs to track these.
|
|
97
|
+
*/
|
|
98
|
+
const setDiagnosticsEffect = /*@__PURE__*/StateEffect.define();
|
|
99
|
+
const togglePanel = /*@__PURE__*/StateEffect.define();
|
|
100
|
+
const movePanelSelection = /*@__PURE__*/StateEffect.define();
|
|
101
|
+
const lintState = /*@__PURE__*/StateField.define({
|
|
102
|
+
create() {
|
|
103
|
+
return new LintState(Decoration.none, null, null);
|
|
104
|
+
},
|
|
105
|
+
update(value, tr) {
|
|
106
|
+
if (tr.docChanged) {
|
|
107
|
+
let mapped = value.diagnostics.map(tr.changes),
|
|
108
|
+
selected = null;
|
|
109
|
+
if (value.selected) {
|
|
110
|
+
let selPos = tr.changes.mapPos(value.selected.from, 1);
|
|
111
|
+
selected = findDiagnostic(mapped, value.selected.diagnostic, selPos) || findDiagnostic(mapped, null, selPos);
|
|
112
|
+
}
|
|
113
|
+
value = new LintState(mapped, value.panel, selected);
|
|
114
|
+
}
|
|
115
|
+
for (let effect of tr.effects) {
|
|
116
|
+
if (effect.is(setDiagnosticsEffect)) {
|
|
117
|
+
value = LintState.init(effect.value, value.panel, tr.state);
|
|
118
|
+
} else if (effect.is(togglePanel)) {
|
|
119
|
+
value = new LintState(value.diagnostics, effect.value ? LintPanel.open : null, value.selected);
|
|
120
|
+
} else if (effect.is(movePanelSelection)) {
|
|
121
|
+
value = new LintState(value.diagnostics, value.panel, effect.value);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return value;
|
|
125
|
+
},
|
|
126
|
+
provide: f => [showPanel.from(f, val => val.panel), EditorView.decorations.from(f, s => s.diagnostics)]
|
|
127
|
+
});
|
|
128
|
+
const activeMark = /*@__PURE__*/Decoration.mark({
|
|
129
|
+
class: "cm-lintRange cm-lintRange-active"
|
|
130
|
+
});
|
|
131
|
+
function lintTooltip(view, pos, side) {
|
|
132
|
+
let {
|
|
133
|
+
diagnostics
|
|
134
|
+
} = view.state.field(lintState);
|
|
135
|
+
let found = [],
|
|
136
|
+
stackStart = 2e8,
|
|
137
|
+
stackEnd = 0;
|
|
138
|
+
diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, _ref2) => {
|
|
139
|
+
let {
|
|
140
|
+
spec
|
|
141
|
+
} = _ref2;
|
|
142
|
+
if (pos >= from && pos <= to && (from == to || (pos > from || side > 0) && (pos < to || side < 0))) {
|
|
143
|
+
found.push(spec.diagnostic);
|
|
144
|
+
stackStart = Math.min(from, stackStart);
|
|
145
|
+
stackEnd = Math.max(to, stackEnd);
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
let diagnosticFilter = view.state.facet(lintConfig).tooltipFilter;
|
|
149
|
+
if (diagnosticFilter) found = diagnosticFilter(found);
|
|
150
|
+
if (!found.length) return null;
|
|
151
|
+
return {
|
|
152
|
+
pos: stackStart,
|
|
153
|
+
end: stackEnd,
|
|
154
|
+
above: view.state.doc.lineAt(stackStart).to < stackEnd,
|
|
155
|
+
create() {
|
|
156
|
+
return {
|
|
157
|
+
dom: diagnosticsTooltip(view, found)
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function diagnosticsTooltip(view, diagnostics) {
|
|
163
|
+
return crelt("ul", {
|
|
164
|
+
class: "cm-tooltip-lint"
|
|
165
|
+
}, diagnostics.map(d => renderDiagnostic(view, d, false)));
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
Command to open and focus the lint panel.
|
|
169
|
+
*/
|
|
170
|
+
const openLintPanel = view => {
|
|
171
|
+
let field = view.state.field(lintState, false);
|
|
172
|
+
if (!field || !field.panel) view.dispatch({
|
|
173
|
+
effects: maybeEnableLint(view.state, [togglePanel.of(true)])
|
|
174
|
+
});
|
|
175
|
+
let panel = getPanel(view, LintPanel.open);
|
|
176
|
+
if (panel) panel.dom.querySelector(".cm-panel-lint ul").focus();
|
|
177
|
+
return true;
|
|
178
|
+
};
|
|
179
|
+
/**
|
|
180
|
+
Command to close the lint panel, when open.
|
|
181
|
+
*/
|
|
182
|
+
const closeLintPanel = view => {
|
|
183
|
+
let field = view.state.field(lintState, false);
|
|
184
|
+
if (!field || !field.panel) return false;
|
|
185
|
+
view.dispatch({
|
|
186
|
+
effects: togglePanel.of(false)
|
|
187
|
+
});
|
|
188
|
+
return true;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
Move the selection to the next diagnostic.
|
|
192
|
+
*/
|
|
193
|
+
const nextDiagnostic = view => {
|
|
194
|
+
let field = view.state.field(lintState, false);
|
|
195
|
+
if (!field) return false;
|
|
196
|
+
let sel = view.state.selection.main,
|
|
197
|
+
next = field.diagnostics.iter(sel.to + 1);
|
|
198
|
+
if (!next.value) {
|
|
199
|
+
next = field.diagnostics.iter(0);
|
|
200
|
+
if (!next.value || next.from == sel.from && next.to == sel.to) return false;
|
|
201
|
+
}
|
|
202
|
+
view.dispatch({
|
|
203
|
+
selection: {
|
|
204
|
+
anchor: next.from,
|
|
205
|
+
head: next.to
|
|
206
|
+
},
|
|
207
|
+
scrollIntoView: true
|
|
208
|
+
});
|
|
209
|
+
return true;
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
A set of default key bindings for the lint functionality.
|
|
213
|
+
|
|
214
|
+
- Ctrl-Shift-m (Cmd-Shift-m on macOS): [`openLintPanel`](https://codemirror.net/6/docs/ref/#lint.openLintPanel)
|
|
215
|
+
- F8: [`nextDiagnostic`](https://codemirror.net/6/docs/ref/#lint.nextDiagnostic)
|
|
216
|
+
*/
|
|
217
|
+
const lintKeymap = [{
|
|
218
|
+
key: "Mod-Shift-m",
|
|
219
|
+
run: openLintPanel,
|
|
220
|
+
preventDefault: true
|
|
221
|
+
}, {
|
|
222
|
+
key: "F8",
|
|
223
|
+
run: nextDiagnostic
|
|
224
|
+
}];
|
|
225
|
+
const lintPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {
|
|
226
|
+
constructor(view) {
|
|
227
|
+
this.view = view;
|
|
228
|
+
this.timeout = -1;
|
|
229
|
+
this.set = true;
|
|
230
|
+
let {
|
|
231
|
+
delay
|
|
232
|
+
} = view.state.facet(lintConfig);
|
|
233
|
+
this.lintTime = Date.now() + delay;
|
|
234
|
+
this.run = this.run.bind(this);
|
|
235
|
+
this.timeout = setTimeout(this.run, delay);
|
|
236
|
+
}
|
|
237
|
+
run() {
|
|
238
|
+
let now = Date.now();
|
|
239
|
+
if (now < this.lintTime - 10) {
|
|
240
|
+
setTimeout(this.run, this.lintTime - now);
|
|
241
|
+
} else {
|
|
242
|
+
this.set = false;
|
|
243
|
+
let {
|
|
244
|
+
state
|
|
245
|
+
} = this.view,
|
|
246
|
+
{
|
|
247
|
+
sources
|
|
248
|
+
} = state.facet(lintConfig);
|
|
249
|
+
Promise.all(sources.map(source => Promise.resolve(source(this.view)))).then(annotations => {
|
|
250
|
+
let all = annotations.reduce((a, b) => a.concat(b));
|
|
251
|
+
if (this.view.state.doc == state.doc) this.view.dispatch(setDiagnostics(this.view.state, all));
|
|
252
|
+
}, error => {
|
|
253
|
+
logException(this.view.state, error);
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
update(update) {
|
|
258
|
+
let config = update.state.facet(lintConfig);
|
|
259
|
+
if (update.docChanged || config != update.startState.facet(lintConfig) || config.needsRefresh && config.needsRefresh(update)) {
|
|
260
|
+
this.lintTime = Date.now() + config.delay;
|
|
261
|
+
if (!this.set) {
|
|
262
|
+
this.set = true;
|
|
263
|
+
this.timeout = setTimeout(this.run, config.delay);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
force() {
|
|
268
|
+
if (this.set) {
|
|
269
|
+
this.lintTime = Date.now();
|
|
270
|
+
this.run();
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
destroy() {
|
|
274
|
+
clearTimeout(this.timeout);
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
const lintConfig = /*@__PURE__*/Facet.define({
|
|
278
|
+
combine(input) {
|
|
279
|
+
return Object.assign({
|
|
280
|
+
sources: input.map(i => i.source)
|
|
281
|
+
}, combineConfig(input.map(i => i.config), {
|
|
282
|
+
delay: 750,
|
|
283
|
+
markerFilter: null,
|
|
284
|
+
tooltipFilter: null,
|
|
285
|
+
needsRefresh: null
|
|
286
|
+
}, {
|
|
287
|
+
needsRefresh: (a, b) => !a ? b : !b ? a : u => a(u) || b(u)
|
|
288
|
+
}));
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
/**
|
|
292
|
+
Given a diagnostic source, this function returns an extension that
|
|
293
|
+
enables linting with that source. It will be called whenever the
|
|
294
|
+
editor is idle (after its content changed).
|
|
295
|
+
*/
|
|
296
|
+
function linter(source) {
|
|
297
|
+
let config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
298
|
+
return [lintConfig.of({
|
|
299
|
+
source,
|
|
300
|
+
config
|
|
301
|
+
}), lintPlugin, lintExtensions];
|
|
302
|
+
}
|
|
303
|
+
function assignKeys(actions) {
|
|
304
|
+
let assigned = [];
|
|
305
|
+
if (actions) actions: for (let {
|
|
306
|
+
name
|
|
307
|
+
} of actions) {
|
|
308
|
+
for (let i = 0; i < name.length; i++) {
|
|
309
|
+
let ch = name[i];
|
|
310
|
+
if (/[a-zA-Z]/.test(ch) && !assigned.some(c => c.toLowerCase() == ch.toLowerCase())) {
|
|
311
|
+
assigned.push(ch);
|
|
312
|
+
continue actions;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
assigned.push("");
|
|
316
|
+
}
|
|
317
|
+
return assigned;
|
|
318
|
+
}
|
|
319
|
+
function renderDiagnostic(view, diagnostic, inPanel) {
|
|
320
|
+
var _a;
|
|
321
|
+
let keys = inPanel ? assignKeys(diagnostic.actions) : [];
|
|
322
|
+
return crelt("li", {
|
|
323
|
+
class: "cm-diagnostic cm-diagnostic-" + diagnostic.severity
|
|
324
|
+
}, crelt("span", {
|
|
325
|
+
class: "cm-diagnosticText"
|
|
326
|
+
}, diagnostic.renderMessage ? diagnostic.renderMessage() : diagnostic.message), (_a = diagnostic.actions) === null || _a === void 0 ? void 0 : _a.map((action, i) => {
|
|
327
|
+
let fired = false,
|
|
328
|
+
click = e => {
|
|
329
|
+
e.preventDefault();
|
|
330
|
+
if (fired) return;
|
|
331
|
+
fired = true;
|
|
332
|
+
let found = findDiagnostic(view.state.field(lintState).diagnostics, diagnostic);
|
|
333
|
+
if (found) action.apply(view, found.from, found.to);
|
|
334
|
+
};
|
|
335
|
+
let {
|
|
336
|
+
name
|
|
337
|
+
} = action,
|
|
338
|
+
keyIndex = keys[i] ? name.indexOf(keys[i]) : -1;
|
|
339
|
+
let nameElt = keyIndex < 0 ? name : [name.slice(0, keyIndex), crelt("u", name.slice(keyIndex, keyIndex + 1)), name.slice(keyIndex + 1)];
|
|
340
|
+
return crelt("button", {
|
|
341
|
+
type: "button",
|
|
342
|
+
class: "cm-diagnosticAction",
|
|
343
|
+
onclick: click,
|
|
344
|
+
onmousedown: click,
|
|
345
|
+
"aria-label": ` Action: ${name}${keyIndex < 0 ? "" : ` (access key "${keys[i]})"`}.`
|
|
346
|
+
}, nameElt);
|
|
347
|
+
}), diagnostic.source && crelt("div", {
|
|
348
|
+
class: "cm-diagnosticSource"
|
|
349
|
+
}, diagnostic.source));
|
|
350
|
+
}
|
|
351
|
+
class DiagnosticWidget extends WidgetType {
|
|
352
|
+
constructor(diagnostic) {
|
|
353
|
+
super();
|
|
354
|
+
this.diagnostic = diagnostic;
|
|
355
|
+
}
|
|
356
|
+
eq(other) {
|
|
357
|
+
return other.diagnostic == this.diagnostic;
|
|
358
|
+
}
|
|
359
|
+
toDOM() {
|
|
360
|
+
return crelt("span", {
|
|
361
|
+
class: "cm-lintPoint cm-lintPoint-" + this.diagnostic.severity
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
class PanelItem {
|
|
366
|
+
constructor(view, diagnostic) {
|
|
367
|
+
this.diagnostic = diagnostic;
|
|
368
|
+
this.id = "item_" + Math.floor(Math.random() * 0xffffffff).toString(16);
|
|
369
|
+
this.dom = renderDiagnostic(view, diagnostic, true);
|
|
370
|
+
this.dom.id = this.id;
|
|
371
|
+
this.dom.setAttribute("role", "option");
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
class LintPanel {
|
|
375
|
+
constructor(view) {
|
|
376
|
+
this.view = view;
|
|
377
|
+
this.items = [];
|
|
378
|
+
let onkeydown = event => {
|
|
379
|
+
if (event.keyCode == 27) {
|
|
380
|
+
// Escape
|
|
381
|
+
closeLintPanel(this.view);
|
|
382
|
+
this.view.focus();
|
|
383
|
+
} else if (event.keyCode == 38 || event.keyCode == 33) {
|
|
384
|
+
// ArrowUp, PageUp
|
|
385
|
+
this.moveSelection((this.selectedIndex - 1 + this.items.length) % this.items.length);
|
|
386
|
+
} else if (event.keyCode == 40 || event.keyCode == 34) {
|
|
387
|
+
// ArrowDown, PageDown
|
|
388
|
+
this.moveSelection((this.selectedIndex + 1) % this.items.length);
|
|
389
|
+
} else if (event.keyCode == 36) {
|
|
390
|
+
// Home
|
|
391
|
+
this.moveSelection(0);
|
|
392
|
+
} else if (event.keyCode == 35) {
|
|
393
|
+
// End
|
|
394
|
+
this.moveSelection(this.items.length - 1);
|
|
395
|
+
} else if (event.keyCode == 13) {
|
|
396
|
+
// Enter
|
|
397
|
+
this.view.focus();
|
|
398
|
+
} else if (event.keyCode >= 65 && event.keyCode <= 90 && this.selectedIndex >= 0) {
|
|
399
|
+
// A-Z
|
|
400
|
+
let {
|
|
401
|
+
diagnostic
|
|
402
|
+
} = this.items[this.selectedIndex],
|
|
403
|
+
keys = assignKeys(diagnostic.actions);
|
|
404
|
+
for (let i = 0; i < keys.length; i++) if (keys[i].toUpperCase().charCodeAt(0) == event.keyCode) {
|
|
405
|
+
let found = findDiagnostic(this.view.state.field(lintState).diagnostics, diagnostic);
|
|
406
|
+
if (found) diagnostic.actions[i].apply(view, found.from, found.to);
|
|
407
|
+
}
|
|
408
|
+
} else {
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
event.preventDefault();
|
|
412
|
+
};
|
|
413
|
+
let onclick = event => {
|
|
414
|
+
for (let i = 0; i < this.items.length; i++) {
|
|
415
|
+
if (this.items[i].dom.contains(event.target)) this.moveSelection(i);
|
|
416
|
+
}
|
|
417
|
+
};
|
|
418
|
+
this.list = crelt("ul", {
|
|
419
|
+
tabIndex: 0,
|
|
420
|
+
role: "listbox",
|
|
421
|
+
"aria-label": this.view.state.phrase("Diagnostics"),
|
|
422
|
+
onkeydown,
|
|
423
|
+
onclick
|
|
424
|
+
});
|
|
425
|
+
this.dom = crelt("div", {
|
|
426
|
+
class: "cm-panel-lint"
|
|
427
|
+
}, this.list, crelt("button", {
|
|
428
|
+
type: "button",
|
|
429
|
+
name: "close",
|
|
430
|
+
"aria-label": this.view.state.phrase("close"),
|
|
431
|
+
onclick: () => closeLintPanel(this.view)
|
|
432
|
+
}, "×"));
|
|
433
|
+
this.update();
|
|
434
|
+
}
|
|
435
|
+
get selectedIndex() {
|
|
436
|
+
let selected = this.view.state.field(lintState).selected;
|
|
437
|
+
if (!selected) return -1;
|
|
438
|
+
for (let i = 0; i < this.items.length; i++) if (this.items[i].diagnostic == selected.diagnostic) return i;
|
|
439
|
+
return -1;
|
|
440
|
+
}
|
|
441
|
+
update() {
|
|
442
|
+
let {
|
|
443
|
+
diagnostics,
|
|
444
|
+
selected
|
|
445
|
+
} = this.view.state.field(lintState);
|
|
446
|
+
let i = 0,
|
|
447
|
+
needsSync = false,
|
|
448
|
+
newSelectedItem = null;
|
|
449
|
+
diagnostics.between(0, this.view.state.doc.length, (_start, _end, _ref3) => {
|
|
450
|
+
let {
|
|
451
|
+
spec
|
|
452
|
+
} = _ref3;
|
|
453
|
+
let found = -1,
|
|
454
|
+
item;
|
|
455
|
+
for (let j = i; j < this.items.length; j++) if (this.items[j].diagnostic == spec.diagnostic) {
|
|
456
|
+
found = j;
|
|
457
|
+
break;
|
|
458
|
+
}
|
|
459
|
+
if (found < 0) {
|
|
460
|
+
item = new PanelItem(this.view, spec.diagnostic);
|
|
461
|
+
this.items.splice(i, 0, item);
|
|
462
|
+
needsSync = true;
|
|
463
|
+
} else {
|
|
464
|
+
item = this.items[found];
|
|
465
|
+
if (found > i) {
|
|
466
|
+
this.items.splice(i, found - i);
|
|
467
|
+
needsSync = true;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
if (selected && item.diagnostic == selected.diagnostic) {
|
|
471
|
+
if (!item.dom.hasAttribute("aria-selected")) {
|
|
472
|
+
item.dom.setAttribute("aria-selected", "true");
|
|
473
|
+
newSelectedItem = item;
|
|
474
|
+
}
|
|
475
|
+
} else if (item.dom.hasAttribute("aria-selected")) {
|
|
476
|
+
item.dom.removeAttribute("aria-selected");
|
|
477
|
+
}
|
|
478
|
+
i++;
|
|
479
|
+
});
|
|
480
|
+
while (i < this.items.length && !(this.items.length == 1 && this.items[0].diagnostic.from < 0)) {
|
|
481
|
+
needsSync = true;
|
|
482
|
+
this.items.pop();
|
|
483
|
+
}
|
|
484
|
+
if (this.items.length == 0) {
|
|
485
|
+
this.items.push(new PanelItem(this.view, {
|
|
486
|
+
from: -1,
|
|
487
|
+
to: -1,
|
|
488
|
+
severity: "info",
|
|
489
|
+
message: this.view.state.phrase("No diagnostics")
|
|
490
|
+
}));
|
|
491
|
+
needsSync = true;
|
|
492
|
+
}
|
|
493
|
+
if (newSelectedItem) {
|
|
494
|
+
this.list.setAttribute("aria-activedescendant", newSelectedItem.id);
|
|
495
|
+
this.view.requestMeasure({
|
|
496
|
+
key: this,
|
|
497
|
+
read: () => ({
|
|
498
|
+
sel: newSelectedItem.dom.getBoundingClientRect(),
|
|
499
|
+
panel: this.list.getBoundingClientRect()
|
|
500
|
+
}),
|
|
501
|
+
write: _ref4 => {
|
|
502
|
+
let {
|
|
503
|
+
sel,
|
|
504
|
+
panel
|
|
505
|
+
} = _ref4;
|
|
506
|
+
if (sel.top < panel.top) this.list.scrollTop -= panel.top - sel.top;else if (sel.bottom > panel.bottom) this.list.scrollTop += sel.bottom - panel.bottom;
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
} else if (this.selectedIndex < 0) {
|
|
510
|
+
this.list.removeAttribute("aria-activedescendant");
|
|
511
|
+
}
|
|
512
|
+
if (needsSync) this.sync();
|
|
513
|
+
}
|
|
514
|
+
sync() {
|
|
515
|
+
let domPos = this.list.firstChild;
|
|
516
|
+
function rm() {
|
|
517
|
+
let prev = domPos;
|
|
518
|
+
domPos = prev.nextSibling;
|
|
519
|
+
prev.remove();
|
|
520
|
+
}
|
|
521
|
+
for (let item of this.items) {
|
|
522
|
+
if (item.dom.parentNode == this.list) {
|
|
523
|
+
while (domPos != item.dom) rm();
|
|
524
|
+
domPos = item.dom.nextSibling;
|
|
525
|
+
} else {
|
|
526
|
+
this.list.insertBefore(item.dom, domPos);
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
while (domPos) rm();
|
|
530
|
+
}
|
|
531
|
+
moveSelection(selectedIndex) {
|
|
532
|
+
if (this.selectedIndex < 0) return;
|
|
533
|
+
let field = this.view.state.field(lintState);
|
|
534
|
+
let selection = findDiagnostic(field.diagnostics, this.items[selectedIndex].diagnostic);
|
|
535
|
+
if (!selection) return;
|
|
536
|
+
this.view.dispatch({
|
|
537
|
+
selection: {
|
|
538
|
+
anchor: selection.from,
|
|
539
|
+
head: selection.to
|
|
540
|
+
},
|
|
541
|
+
scrollIntoView: true,
|
|
542
|
+
effects: movePanelSelection.of(selection)
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
static open(view) {
|
|
546
|
+
return new LintPanel(view);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
function svg(content) {
|
|
550
|
+
let attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : `viewBox="0 0 40 40"`;
|
|
551
|
+
return `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${attrs}>${encodeURIComponent(content)}</svg>')`;
|
|
552
|
+
}
|
|
553
|
+
function underline(color) {
|
|
554
|
+
return svg(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${color}" fill="none" stroke-width=".7"/>`, `width="6" height="3"`);
|
|
555
|
+
}
|
|
556
|
+
const baseTheme = /*@__PURE__*/EditorView.baseTheme({
|
|
557
|
+
".cm-diagnostic": {
|
|
558
|
+
padding: "3px 6px 3px 8px",
|
|
559
|
+
marginLeft: "-1px",
|
|
560
|
+
display: "block",
|
|
561
|
+
whiteSpace: "pre-wrap"
|
|
562
|
+
},
|
|
563
|
+
".cm-diagnostic-error": {
|
|
564
|
+
borderLeft: "5px solid #d11"
|
|
565
|
+
},
|
|
566
|
+
".cm-diagnostic-warning": {
|
|
567
|
+
borderLeft: "5px solid orange"
|
|
568
|
+
},
|
|
569
|
+
".cm-diagnostic-info": {
|
|
570
|
+
borderLeft: "5px solid #999"
|
|
571
|
+
},
|
|
572
|
+
".cm-diagnosticAction": {
|
|
573
|
+
font: "inherit",
|
|
574
|
+
border: "none",
|
|
575
|
+
padding: "2px 4px",
|
|
576
|
+
backgroundColor: "#444",
|
|
577
|
+
color: "white",
|
|
578
|
+
borderRadius: "3px",
|
|
579
|
+
marginLeft: "8px",
|
|
580
|
+
cursor: "pointer"
|
|
581
|
+
},
|
|
582
|
+
".cm-diagnosticSource": {
|
|
583
|
+
fontSize: "70%",
|
|
584
|
+
opacity: .7
|
|
585
|
+
},
|
|
586
|
+
".cm-lintRange": {
|
|
587
|
+
backgroundPosition: "left bottom",
|
|
588
|
+
backgroundRepeat: "repeat-x",
|
|
589
|
+
paddingBottom: "0.7px"
|
|
590
|
+
},
|
|
591
|
+
".cm-lintRange-error": {
|
|
592
|
+
backgroundImage: /*@__PURE__*/underline("#d11")
|
|
593
|
+
},
|
|
594
|
+
".cm-lintRange-warning": {
|
|
595
|
+
backgroundImage: /*@__PURE__*/underline("orange")
|
|
596
|
+
},
|
|
597
|
+
".cm-lintRange-info": {
|
|
598
|
+
backgroundImage: /*@__PURE__*/underline("#999")
|
|
599
|
+
},
|
|
600
|
+
".cm-lintRange-active": {
|
|
601
|
+
backgroundColor: "#ffdd9980"
|
|
602
|
+
},
|
|
603
|
+
".cm-tooltip-lint": {
|
|
604
|
+
padding: 0,
|
|
605
|
+
margin: 0
|
|
606
|
+
},
|
|
607
|
+
".cm-lintPoint": {
|
|
608
|
+
position: "relative",
|
|
609
|
+
"&:after": {
|
|
610
|
+
content: '""',
|
|
611
|
+
position: "absolute",
|
|
612
|
+
bottom: 0,
|
|
613
|
+
left: "-2px",
|
|
614
|
+
borderLeft: "3px solid transparent",
|
|
615
|
+
borderRight: "3px solid transparent",
|
|
616
|
+
borderBottom: "4px solid #d11"
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
".cm-lintPoint-warning": {
|
|
620
|
+
"&:after": {
|
|
621
|
+
borderBottomColor: "orange"
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
".cm-lintPoint-info": {
|
|
625
|
+
"&:after": {
|
|
626
|
+
borderBottomColor: "#999"
|
|
627
|
+
}
|
|
628
|
+
},
|
|
629
|
+
".cm-panel.cm-panel-lint": {
|
|
630
|
+
position: "relative",
|
|
631
|
+
"& ul": {
|
|
632
|
+
maxHeight: "100px",
|
|
633
|
+
overflowY: "auto",
|
|
634
|
+
"& [aria-selected]": {
|
|
635
|
+
backgroundColor: "#ddd",
|
|
636
|
+
"& u": {
|
|
637
|
+
textDecoration: "underline"
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"&:focus [aria-selected]": {
|
|
641
|
+
background_fallback: "#bdf",
|
|
642
|
+
backgroundColor: "Highlight",
|
|
643
|
+
color_fallback: "white",
|
|
644
|
+
color: "HighlightText"
|
|
645
|
+
},
|
|
646
|
+
"& u": {
|
|
647
|
+
textDecoration: "none"
|
|
648
|
+
},
|
|
649
|
+
padding: 0,
|
|
650
|
+
margin: 0
|
|
651
|
+
},
|
|
652
|
+
"& [name=close]": {
|
|
653
|
+
position: "absolute",
|
|
654
|
+
top: "0",
|
|
655
|
+
right: "2px",
|
|
656
|
+
background: "inherit",
|
|
657
|
+
border: "none",
|
|
658
|
+
font: "inherit",
|
|
659
|
+
padding: 0,
|
|
660
|
+
margin: 0
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
});
|
|
664
|
+
class LintGutterMarker extends GutterMarker {
|
|
665
|
+
constructor(diagnostics) {
|
|
666
|
+
super();
|
|
667
|
+
this.diagnostics = diagnostics;
|
|
668
|
+
this.severity = diagnostics.reduce((max, d) => {
|
|
669
|
+
let s = d.severity;
|
|
670
|
+
return s == "error" || s == "warning" && max == "info" ? s : max;
|
|
671
|
+
}, "info");
|
|
672
|
+
}
|
|
673
|
+
toDOM(view) {
|
|
674
|
+
let elt = document.createElement("div");
|
|
675
|
+
elt.className = "cm-lint-marker cm-lint-marker-" + this.severity;
|
|
676
|
+
let diagnostics = this.diagnostics;
|
|
677
|
+
let diagnosticsFilter = view.state.facet(lintGutterConfig).tooltipFilter;
|
|
678
|
+
if (diagnosticsFilter) diagnostics = diagnosticsFilter(diagnostics);
|
|
679
|
+
if (diagnostics.length) elt.onmouseover = () => gutterMarkerMouseOver(view, elt, diagnostics);
|
|
680
|
+
return elt;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
function trackHoverOn(view, marker) {
|
|
684
|
+
let mousemove = event => {
|
|
685
|
+
let rect = marker.getBoundingClientRect();
|
|
686
|
+
if (event.clientX > rect.left - 10 /* Margin */ && event.clientX < rect.right + 10 /* Margin */ && event.clientY > rect.top - 10 /* Margin */ && event.clientY < rect.bottom + 10 /* Margin */) return;
|
|
687
|
+
for (let target = event.target; target; target = target.parentNode) {
|
|
688
|
+
if (target.nodeType == 1 && target.classList.contains("cm-tooltip-lint")) return;
|
|
689
|
+
}
|
|
690
|
+
window.removeEventListener("mousemove", mousemove);
|
|
691
|
+
if (view.state.field(lintGutterTooltip)) view.dispatch({
|
|
692
|
+
effects: setLintGutterTooltip.of(null)
|
|
693
|
+
});
|
|
694
|
+
};
|
|
695
|
+
window.addEventListener("mousemove", mousemove);
|
|
696
|
+
}
|
|
697
|
+
function gutterMarkerMouseOver(view, marker, diagnostics) {
|
|
698
|
+
function hovered() {
|
|
699
|
+
let line = view.elementAtHeight(marker.getBoundingClientRect().top + 5 - view.documentTop);
|
|
700
|
+
const linePos = view.coordsAtPos(line.from);
|
|
701
|
+
if (linePos) {
|
|
702
|
+
view.dispatch({
|
|
703
|
+
effects: setLintGutterTooltip.of({
|
|
704
|
+
pos: line.from,
|
|
705
|
+
above: false,
|
|
706
|
+
create() {
|
|
707
|
+
return {
|
|
708
|
+
dom: diagnosticsTooltip(view, diagnostics),
|
|
709
|
+
getCoords: () => marker.getBoundingClientRect()
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
})
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
marker.onmouseout = marker.onmousemove = null;
|
|
716
|
+
trackHoverOn(view, marker);
|
|
717
|
+
}
|
|
718
|
+
let {
|
|
719
|
+
hoverTime
|
|
720
|
+
} = view.state.facet(lintGutterConfig);
|
|
721
|
+
let hoverTimeout = setTimeout(hovered, hoverTime);
|
|
722
|
+
marker.onmouseout = () => {
|
|
723
|
+
clearTimeout(hoverTimeout);
|
|
724
|
+
marker.onmouseout = marker.onmousemove = null;
|
|
725
|
+
};
|
|
726
|
+
marker.onmousemove = () => {
|
|
727
|
+
clearTimeout(hoverTimeout);
|
|
728
|
+
hoverTimeout = setTimeout(hovered, hoverTime);
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
function markersForDiagnostics(doc, diagnostics) {
|
|
732
|
+
let byLine = Object.create(null);
|
|
733
|
+
for (let diagnostic of diagnostics) {
|
|
734
|
+
let line = doc.lineAt(diagnostic.from);
|
|
735
|
+
(byLine[line.from] || (byLine[line.from] = [])).push(diagnostic);
|
|
736
|
+
}
|
|
737
|
+
let markers = [];
|
|
738
|
+
for (let line in byLine) {
|
|
739
|
+
markers.push(new LintGutterMarker(byLine[line]).range(+line));
|
|
740
|
+
}
|
|
741
|
+
return RangeSet.of(markers, true);
|
|
742
|
+
}
|
|
743
|
+
const lintGutterExtension = /*@__PURE__*/gutter({
|
|
744
|
+
class: "cm-gutter-lint",
|
|
745
|
+
markers: view => view.state.field(lintGutterMarkers)
|
|
746
|
+
});
|
|
747
|
+
const lintGutterMarkers = /*@__PURE__*/StateField.define({
|
|
748
|
+
create() {
|
|
749
|
+
return RangeSet.empty;
|
|
750
|
+
},
|
|
751
|
+
update(markers, tr) {
|
|
752
|
+
markers = markers.map(tr.changes);
|
|
753
|
+
let diagnosticFilter = tr.state.facet(lintGutterConfig).markerFilter;
|
|
754
|
+
for (let effect of tr.effects) {
|
|
755
|
+
if (effect.is(setDiagnosticsEffect)) {
|
|
756
|
+
let diagnostics = effect.value;
|
|
757
|
+
if (diagnosticFilter) diagnostics = diagnosticFilter(diagnostics || []);
|
|
758
|
+
markers = markersForDiagnostics(tr.state.doc, diagnostics.slice(0));
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
return markers;
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
const setLintGutterTooltip = /*@__PURE__*/StateEffect.define();
|
|
765
|
+
const lintGutterTooltip = /*@__PURE__*/StateField.define({
|
|
766
|
+
create() {
|
|
767
|
+
return null;
|
|
768
|
+
},
|
|
769
|
+
update(tooltip, tr) {
|
|
770
|
+
if (tooltip && tr.docChanged) tooltip = hideTooltip(tr, tooltip) ? null : Object.assign(Object.assign({}, tooltip), {
|
|
771
|
+
pos: tr.changes.mapPos(tooltip.pos)
|
|
772
|
+
});
|
|
773
|
+
return tr.effects.reduce((t, e) => e.is(setLintGutterTooltip) ? e.value : t, tooltip);
|
|
774
|
+
},
|
|
775
|
+
provide: field => showTooltip.from(field)
|
|
776
|
+
});
|
|
777
|
+
const lintGutterTheme = /*@__PURE__*/EditorView.baseTheme({
|
|
778
|
+
".cm-gutter-lint": {
|
|
779
|
+
width: "1.4em",
|
|
780
|
+
"& .cm-gutterElement": {
|
|
781
|
+
padding: ".2em"
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
".cm-lint-marker": {
|
|
785
|
+
width: "1em",
|
|
786
|
+
height: "1em"
|
|
787
|
+
},
|
|
788
|
+
".cm-lint-marker-info": {
|
|
789
|
+
content: /*@__PURE__*/svg(`<path fill="#aaf" stroke="#77e" stroke-width="6" stroke-linejoin="round" d="M5 5L35 5L35 35L5 35Z"/>`)
|
|
790
|
+
},
|
|
791
|
+
".cm-lint-marker-warning": {
|
|
792
|
+
content: /*@__PURE__*/svg(`<path fill="#fe8" stroke="#fd7" stroke-width="6" stroke-linejoin="round" d="M20 6L37 35L3 35Z"/>`)
|
|
793
|
+
},
|
|
794
|
+
".cm-lint-marker-error": {
|
|
795
|
+
content: /*@__PURE__*/svg(`<circle cx="20" cy="20" r="15" fill="#f87" stroke="#f43" stroke-width="6"/>`)
|
|
796
|
+
}
|
|
797
|
+
});
|
|
798
|
+
const lintExtensions = [lintState, /*@__PURE__*/EditorView.decorations.compute([lintState], state => {
|
|
799
|
+
let {
|
|
800
|
+
selected,
|
|
801
|
+
panel
|
|
802
|
+
} = state.field(lintState);
|
|
803
|
+
return !selected || !panel || selected.from == selected.to ? Decoration.none : Decoration.set([activeMark.range(selected.from, selected.to)]);
|
|
804
|
+
}), /*@__PURE__*/hoverTooltip(lintTooltip, {
|
|
805
|
+
hideOn: hideTooltip
|
|
806
|
+
}), baseTheme];
|
|
807
|
+
const lintGutterConfig = /*@__PURE__*/Facet.define({
|
|
808
|
+
combine(configs) {
|
|
809
|
+
return combineConfig(configs, {
|
|
810
|
+
hoverTime: 300 /* Time */,
|
|
811
|
+
markerFilter: null,
|
|
812
|
+
tooltipFilter: null
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
});
|
|
816
|
+
/**
|
|
817
|
+
Returns an extension that installs a gutter showing markers for
|
|
818
|
+
each line that has diagnostics, which can be hovered over to see
|
|
819
|
+
the diagnostics.
|
|
820
|
+
*/
|
|
821
|
+
function lintGutter() {
|
|
822
|
+
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
823
|
+
return [lintGutterConfig.of(config), lintGutterMarkers, lintGutterExtension, lintGutterTheme, lintGutterTooltip];
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export { lintGutter as a, lintKeymap as b, crelt as c, linter as l };
|