@onereach/ui-components 4.3.2-beta.2618.0 → 4.3.3-beta.2627.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/{OrDateTimePickerMonthSelect-e20fd8dc.js → OrDateTimePickerMonthSelect-11e7596d.js} +4 -3
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +8 -4
- package/dist/bundled/v2/components/OrButton/OrButton.js +1 -1
- package/dist/bundled/v2/components/OrButtonV2/OrButton.js +1 -1
- package/dist/bundled/v2/components/OrCardCollection/OrCardCollection.js +4 -3
- package/dist/bundled/v2/components/OrCarousel/OrCarousel.js +7 -1
- package/dist/bundled/v2/components/OrCheckbox/OrCheckbox.js +4 -3
- package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.js +4 -3
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +4 -3
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +4 -3
- package/dist/bundled/v2/components/OrCode/OrCode.js +263 -197
- package/dist/bundled/v2/components/OrCode/index.js +2 -2
- package/dist/bundled/v2/components/OrCode/lang.js +2 -2
- package/dist/bundled/v2/components/OrCode/theme.js +1 -1
- package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +6 -4
- package/dist/bundled/v2/components/OrColorPicker/utils/defultPalette.js +2 -1
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +5 -4
- package/dist/bundled/v2/components/OrConfirm/index.js +1 -1
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +5 -4
- package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -1
- 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/OrIconButtonV2/OrIconButton.js +5 -4
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +4 -3
- package/dist/bundled/v2/components/OrList/OrList.js +5 -4
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +11 -5
- package/dist/bundled/v2/components/OrModal/OrModal.js +101 -20
- package/dist/bundled/v2/components/OrNumberInput/OrNumberInput.js +4 -3
- package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +4 -3
- package/dist/bundled/v2/components/OrPassword/OrPassword.js +4 -3
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +8 -4
- package/dist/bundled/v2/components/OrRadio/OrRadio.js +4 -3
- package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +4 -3
- package/dist/bundled/v2/components/OrSearch/OrSearch.js +4 -3
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +8 -4
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +4 -3
- package/dist/bundled/v2/components/OrSwitch/OrSwitch.js +4 -3
- package/dist/bundled/v2/components/OrTabHeaderItem/OrTabHeaderItem.js +4 -3
- package/dist/bundled/v2/components/OrTabs/OrTabs.js +5 -4
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +8 -4
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +5 -4
- package/dist/bundled/v2/components/OrToast/OrToast.js +1 -1
- package/dist/bundled/v2/components/OrToast/composable/useToast.js +10 -5
- package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +1 -1
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +6 -3
- package/dist/bundled/v2/components/OrToastV3/composable/useToast.js +10 -5
- package/dist/bundled/v2/components/index.js +6 -6
- package/dist/bundled/v2/hooks/useElevation.js +2 -1
- package/dist/bundled/v2/hooks/useOverflow.js +5 -4
- package/dist/bundled/v2/hooks/useToggle.js +2 -1
- package/dist/bundled/{v3/index-6976c52a.js → v2/index-e0b25cea.js} +1229 -715
- package/dist/bundled/v2/index.js +6 -6
- package/dist/bundled/{v3/lang-02d2bb2d.js → v2/lang-973a418e.js} +275 -196
- package/dist/bundled/v2/utils/functions/color.js +2 -1
- package/dist/bundled/v2/utils/functions/flattenDeep.js +2 -1
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-1e5544b0.js → OrBottomSheet.vue_vue_type_script_lang-4d344331.js} +9 -5
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-7d15b872.js → OrCardCollection.vue_vue_type_script_lang-53ff464f.js} +3 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-7a2e1332.js → OrCardCollection.vue_vue_type_script_lang-d3f43900.js} +6 -5
- package/dist/bundled/v3/{OrCarousel.vue_vue_type_script_lang-6976844a.js → OrCarousel.vue_vue_type_script_lang-188ca513.js} +7 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-1cf06290.js → OrCheckbox.vue_vue_type_script_lang-75c6053a.js} +4 -3
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-11b16d93.js → OrCheckbox.vue_vue_type_script_lang-ba11d80f.js} +4 -3
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-4042ef27.js → OrCheckboxTree.vue_vue_type_script_lang-528dd4d5.js} +5 -4
- package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-d4bb44eb.js → OrChips.vue_vue_type_script_lang-211e03a1.js} +4 -2
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-5397df6a.js → OrCode.vue_vue_type_script_lang-ea34c576.js} +265 -199
- package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-5137ca99.js → OrCollapse.vue_vue_type_script_lang-45b18baf.js} +6 -4
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-89febea7.js → OrConfirm.vue_vue_type_script_lang-64d9dd5f.js} +8 -7
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-5ee20884.js → OrConfirm.vue_vue_type_script_lang-cb05ea27.js} +7 -6
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-8c1c9c3e.js → OrDatePicker.vue_vue_type_script_lang-2dec05d3.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-cba80c1c.js → OrDateTimePicker.vue_vue_type_script_lang-365d6597.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-8ff54abd.js → OrDateTimePicker.vue_vue_type_script_lang-6fd7c75e.js} +5 -3
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-a9634fe9.js → OrDateTimePickerMonthSelect-c42a6517.js} +6 -5
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-c2534846.js → OrIconButton.vue_vue_type_script_lang-e30d0a1f.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-96cb5b59.js → OrIconButton.vue_vue_type_script_lang-fb99a3ea.js} +4 -3
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-a8c0670a.js → OrInlineInput.vue_vue_type_script_lang-aee9bc3b.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-45987769.js → OrInlineTextEdit.vue_vue_type_script_lang-869c7772.js} +6 -5
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-03708ef8.js → OrInlineTextarea.vue_vue_type_script_lang-82570af3.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-ad995b35.js → OrInput.vue_vue_type_script_lang-4067879f.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-f9fef480.js → OrInput.vue_vue_type_script_lang-75e02556.js} +1 -1
- package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-2c7537cc.js → OrList.vue_vue_type_script_lang-47bafed1.js} +7 -6
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-009f62a5.js → OrListOfInputs.vue_vue_type_script_lang-006e0106.js} +3 -3
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-d3ea7d1e.js → OrMenu.vue_vue_type_script_lang-50c154c4.js} +12 -6
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-07955a9f.js → OrModal.vue_vue_type_script_lang-08019fc7.js} +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-c53617ae.js → OrModal.vue_vue_type_script_lang-ae842e5b.js} +102 -21
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-5a62577f.js → OrNotification.vue_vue_type_script_lang-81fca13f.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-efb05bb2.js → OrNotification.vue_vue_type_script_lang-cf2e272c.js} +1 -1
- package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-1d469d1f.js → OrNumberInput.vue_vue_type_script_lang-55c5ea8f.js} +5 -4
- package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-ba50133f.js → OrOverflowMenu.vue_vue_type_script_lang-fe2d0395.js} +6 -5
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-60000de8.js → OrPagination.vue_vue_type_script_lang-a1b05723.js} +1 -1
- package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-37f52611.js → OrPassword.vue_vue_type_script_lang-1f5d2a91.js} +6 -5
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-65598970.js → OrPopover.vue_vue_type_script_lang-f159bc50.js} +9 -5
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-cc11200c.js → OrRadio.vue_vue_type_script_lang-e1617a0e.js} +4 -3
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-2726e332.js → OrSearch.vue_vue_type_script_lang-0d161f08.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-bcb935c3.js → OrSearch.vue_vue_type_script_lang-7ac93e50.js} +6 -5
- package/dist/bundled/v3/{OrSegmentedControl.vue_vue_type_script_lang-d1b4694c.js → OrSegmentedControl.vue_vue_type_script_lang-ed0d9fe7.js} +3 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c82d8f58.js → OrSelect.vue_vue_type_script_lang-29a48259.js} +8 -4
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c232523a.js → OrSelect.vue_vue_type_script_lang-9ebf93f2.js} +12 -8
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-0f22b364.js → OrSidebar.vue_vue_type_script_lang-e2579a69.js} +5 -4
- package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-975a4df6.js → OrStepper.vue_vue_type_script_lang-d230260e.js} +1 -1
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-1c079a74.js → OrSwitch.vue_vue_type_script_lang-c986f062.js} +4 -3
- package/dist/bundled/v3/{OrTabHeaderItem.vue_vue_type_script_lang-0a67721f.js → OrTabHeaderItem.vue_vue_type_script_lang-29f331ec.js} +4 -3
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-06a89286.js → OrTabs.vue_vue_type_script_lang-5836b8bd.js} +6 -5
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-ff032e95.js → OrTabs.vue_vue_type_script_lang-b6d7c643.js} +9 -5
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-e3ba4ecb.js → OrTag.vue_vue_type_script_lang-32301d9c.js} +1 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-1236e04a.js → OrTextarea.vue_vue_type_script_lang-048cb245.js} +1 -1
- package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-812f302d.js → OrTextbox.vue_vue_type_script_lang-dad835c3.js} +7 -6
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-34c2901e.js → OrTimePicker.vue_vue_type_script_lang-7e1bbe0e.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-16a49a54.js → OrToastContainer.vue_vue_type_script_lang-0a4977d5.js} +6 -3
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-cd7c37c3.js → OrTooltip.vue_vue_type_script_lang-9ec302b4.js} +1 -1
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +8 -4
- package/dist/bundled/v3/components/OrAvatar/index.js +1 -1
- package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.js +2 -2
- package/dist/bundled/v3/components/OrAvatarV3/index.js +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +3 -3
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +2 -2
- package/dist/bundled/v3/components/OrButton/OrButton.js +1 -1
- package/dist/bundled/v3/components/OrButtonV2/OrButton.js +3 -3
- package/dist/bundled/v3/components/OrButtonV2/index.js +2 -2
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +6 -6
- package/dist/bundled/v3/components/OrCardCollection/index.js +5 -5
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +10 -10
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +9 -9
- package/dist/bundled/v3/components/OrCarousel/OrCarousel.js +2 -2
- package/dist/bundled/v3/components/OrCarousel/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +8 -4
- package/dist/bundled/v3/components/OrCheckbox/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +6 -5
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +3 -3
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +5 -3
- package/dist/bundled/v3/components/OrCheckboxV3/index.js +1 -1
- package/dist/bundled/v3/components/OrChip/OrChip.js +5 -3
- package/dist/bundled/v3/components/OrChip/index.js +1 -1
- package/dist/bundled/v3/components/OrChips/OrChips.js +3 -3
- package/dist/bundled/v3/components/OrChips/index.js +2 -2
- package/dist/bundled/v3/components/OrCode/OrCode.js +6 -6
- package/dist/bundled/v3/components/OrCode/index.js +5 -5
- package/dist/bundled/v3/components/OrCode/lang.js +2 -2
- package/dist/bundled/v3/components/OrCode/theme.js +1 -1
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +2 -2
- package/dist/bundled/v3/components/OrCollapse/index.js +1 -1
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +5 -3
- package/dist/bundled/v3/components/OrColorPicker/index.js +1 -1
- package/dist/bundled/v3/components/OrColorPicker/utils/defultPalette.js +2 -1
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +8 -8
- package/dist/bundled/v3/components/OrConfirm/index.js +7 -7
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +9 -9
- package/dist/bundled/v3/components/OrConfirmV3/index.js +8 -8
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +9 -9
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +8 -8
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +7 -5
- package/dist/bundled/v3/components/OrDateTimePicker/index.js +3 -3
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +9 -9
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +8 -8
- package/dist/bundled/v3/components/OrIcon/OrIcon.js +6 -2
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +3 -3
- package/dist/bundled/v3/components/OrIconButtonV2/index.js +1 -1
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +6 -6
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +5 -5
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +13 -9
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +6 -6
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +28 -12
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +3 -3
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +13 -9
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +6 -6
- package/dist/bundled/v3/components/OrInput/OrInput.js +12 -6
- package/dist/bundled/v3/components/OrInput/index.js +2 -2
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +7 -7
- package/dist/bundled/v3/components/OrInputV3/index.js +6 -6
- package/dist/bundled/v3/components/OrList/OrList.js +4 -4
- package/dist/bundled/v3/components/OrList/index.js +3 -3
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +63 -54
- package/dist/bundled/v3/components/OrListOfInputs/index.js +6 -6
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +8 -6
- package/dist/bundled/v3/components/OrMenuV3/index.js +4 -4
- package/dist/bundled/v3/components/OrModal/OrModal.js +3 -3
- package/dist/bundled/v3/components/OrModal/index.js +2 -2
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +7 -7
- package/dist/bundled/v3/components/OrModalV3/index.js +6 -6
- package/dist/bundled/v3/components/OrNotification/OrNotification.js +3 -3
- package/dist/bundled/v3/components/OrNotification/index.js +2 -2
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +7 -7
- package/dist/bundled/v3/components/OrNotificationV3/index.js +6 -6
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +4 -4
- package/dist/bundled/v3/components/OrNumberInput/index.js +3 -3
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +4 -4
- package/dist/bundled/v3/components/OrOverflowMenu/index.js +3 -3
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +6 -6
- package/dist/bundled/v3/components/OrPaginationV3/index.js +5 -5
- package/dist/bundled/v3/components/OrPassword/OrPassword.js +5 -5
- package/dist/bundled/v3/components/OrPassword/index.js +4 -4
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +4 -4
- package/dist/bundled/v3/components/OrPopoverV3/index.js +3 -3
- package/dist/bundled/v3/components/OrRadio/OrRadio.js +5 -3
- package/dist/bundled/v3/components/OrRadio/index.js +1 -1
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +4 -3
- package/dist/bundled/v3/components/OrSearch/OrSearch.js +5 -5
- package/dist/bundled/v3/components/OrSearch/index.js +4 -4
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +8 -8
- package/dist/bundled/v3/components/OrSearchV3/index.js +7 -7
- package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.js +2 -2
- package/dist/bundled/v3/components/OrSegmentedControlV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSelect/OrSelect.js +4 -4
- package/dist/bundled/v3/components/OrSelect/index.js +3 -3
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +10 -10
- package/dist/bundled/v3/components/OrSelectV3/index.js +9 -9
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +7 -7
- package/dist/bundled/v3/components/OrSidebarV3/index.js +6 -6
- package/dist/bundled/v3/components/OrSlider/OrSlider.js +17 -5
- package/dist/bundled/v3/components/OrSlider/index.js +1 -1
- package/dist/bundled/v3/components/OrStepper/OrStepper.js +3 -3
- package/dist/bundled/v3/components/OrStepper/index.js +2 -2
- package/dist/bundled/v3/components/OrSwitch/OrSwitch.js +5 -3
- package/dist/bundled/v3/components/OrSwitch/index.js +1 -1
- package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.js +5 -3
- package/dist/bundled/v3/components/OrTabHeaderItem/index.js +1 -1
- package/dist/bundled/v3/components/OrTabs/OrTabs.js +3 -3
- package/dist/bundled/v3/components/OrTabs/index.js +2 -2
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +6 -6
- package/dist/bundled/v3/components/OrTabsV3/index.js +5 -5
- package/dist/bundled/v3/components/OrTag/OrTag.js +5 -3
- package/dist/bundled/v3/components/OrTag/index.js +1 -1
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +7 -7
- package/dist/bundled/v3/components/OrTagV3/index.js +6 -6
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +12 -6
- package/dist/bundled/v3/components/OrTextarea/index.js +2 -2
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +22 -10
- package/dist/bundled/v3/components/OrTextbox/index.js +3 -3
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +7 -7
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +6 -6
- package/dist/bundled/v3/components/OrToast/OrToast.js +5 -3
- package/dist/bundled/v3/components/OrToast/composable/useToast.js +10 -5
- package/dist/bundled/v3/components/OrToast/index.js +2 -2
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +4 -4
- package/dist/bundled/v3/components/OrToastContainer/index.js +2 -2
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +7 -7
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +6 -6
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +8 -6
- package/dist/bundled/v3/components/OrToastV3/composable/useToast.js +10 -5
- package/dist/bundled/v3/components/OrToastV3/index.js +6 -6
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +6 -2
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +5 -5
- package/dist/bundled/v3/components/OrTooltipV3/index.js +4 -4
- package/dist/bundled/v3/components/index.js +66 -66
- package/dist/bundled/v3/hooks/useElevation.js +2 -1
- package/dist/bundled/v3/hooks/useOverflow.js +5 -4
- package/dist/bundled/v3/hooks/useToggle.js +2 -1
- package/dist/bundled/{v2/index-6976c52a.js → v3/index-e0b25cea.js} +1229 -715
- package/dist/bundled/v3/index.js +66 -66
- package/dist/bundled/{v2/lang-02d2bb2d.js → v3/lang-973a418e.js} +275 -196
- package/dist/bundled/v3/utils/functions/color.js +2 -1
- package/dist/bundled/v3/utils/functions/flattenDeep.js +2 -1
- package/dist/esm/v2/{OrAvatar-12b0e276.js → OrAvatar-3df48865.js} +1 -1
- package/dist/esm/v2/{OrBottomSheet-0938dbde.js → OrBottomSheet-6b875223.js} +9 -5
- package/dist/esm/v2/OrButton-b4a39652.js +195 -0
- package/dist/esm/v2/{OrButton-4e532ddb.js → OrButton-dbf0efe7.js} +1 -1
- package/dist/esm/v2/OrButton.vue_rollup-plugin-vue_styles.0-83b5a752.js +106 -0
- package/dist/esm/v2/{OrCardCollection-ead1d063.js → OrCardCollection-7a8cd067.js} +4 -4
- package/dist/esm/v2/{OrCardCollection-9bf513b7.js → OrCardCollection-fe8a1a88.js} +8 -7
- package/dist/esm/v2/{OrCarousel-e0c2e387.js → OrCarousel-5c2b2d10.js} +7 -1
- package/dist/esm/v2/{OrCheckbox-7b98fc08.js → OrCheckbox-03e5eaff.js} +4 -3
- package/dist/esm/v2/{OrCheckbox-60e4456b.js → OrCheckbox-59332f84.js} +4 -3
- package/dist/esm/v2/{OrCheckboxTree-85f8ec89.js → OrCheckboxTree-df80d4ab.js} +6 -5
- package/dist/esm/v2/{OrCode-e54e09f7.js → OrCode-0288dd2d.js} +8 -7
- package/dist/esm/v2/{OrCollapse-50e3914c.js → OrCollapse-57c64292.js} +6 -4
- package/dist/esm/v2/{OrColorPicker-fa92b4fa.js → OrColorPicker-ca470d10.js} +2 -1
- package/dist/esm/v2/{OrConfirm-d1572223.js → OrConfirm-09bb952d.js} +6 -5
- package/dist/esm/v2/{OrConfirm-5d5dd9bc.js → OrConfirm-b62d9ce4.js} +8 -7
- package/dist/esm/v2/{OrDatePicker-ff4cebfb.js → OrDatePicker-8603b729.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-6e2853ec.js → OrDateTimePicker-77ef1975.js} +4 -4
- package/dist/esm/v2/{OrDateTimePicker-da3d6d4d.js → OrDateTimePicker-f270e639.js} +3 -3
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-7803ed9e.js → OrDateTimePickerMonthSelect-58303f9d.js} +7 -6
- package/dist/esm/v2/{OrIconButton-23972f7d.js → OrIconButton-83608cbc.js} +1 -1
- package/dist/esm/v2/{OrIconButton-0ec2cda6.js → OrIconButton-e13b8108.js} +2 -2
- package/dist/esm/v2/OrIconButton.vue_rollup-plugin-vue_styles.0-20b054cc.js +206 -0
- package/dist/esm/v2/{OrInlineInput-7a60a995.js → OrInlineInput-3ad8d3e5.js} +1 -1
- package/dist/esm/v2/{OrInlineTextEdit-9541b625.js → OrInlineTextEdit-a129aaf1.js} +8 -7
- package/dist/esm/v2/{OrInlineTextarea-56d8f558.js → OrInlineTextarea-968008cc.js} +1 -1
- package/dist/esm/v2/{OrInput-c005a759.js → OrInput-bc2371b6.js} +1 -1
- package/dist/esm/v2/{OrInput-884b6686.js → OrInput-d73d9322.js} +1 -1
- package/dist/esm/v2/{OrList-61c7b8ea.js → OrList-7de293f5.js} +8 -7
- package/dist/esm/v2/{OrListOfInputs-e1b09290.js → OrListOfInputs-fa926159.js} +5 -5
- package/dist/esm/v2/{OrMenu-55befbc8.js → OrMenu-2f823afc.js} +12 -6
- package/dist/esm/v2/{OrModal-b9cfb8ec.js → OrModal-3f09ae47.js} +7 -6
- package/dist/esm/v2/{OrModal-b0a470f9.js → OrModal-4d570c2f.js} +2 -2
- package/dist/esm/v2/{OrNotification-4497b02f.js → OrNotification-855e31ad.js} +1 -1
- package/dist/esm/v2/{OrNotification-fdb88eec.js → OrNotification-bfa97981.js} +3 -3
- package/dist/esm/v2/{OrNumberInput-eb0e7087.js → OrNumberInput-5b1135df.js} +5 -4
- package/dist/esm/v2/{OrOverflowMenu-83540c76.js → OrOverflowMenu-13fac7a3.js} +8 -7
- package/dist/esm/v2/{OrOverlay-b1609eef.js → OrOverlay-2b61ec26.js} +1 -1
- package/dist/esm/v2/{OrPagination-67b30f14.js → OrPagination-a333b8a2.js} +2 -2
- package/dist/esm/v2/{OrPassword-022e10fd.js → OrPassword-82877067.js} +9 -8
- package/dist/esm/v2/{OrPopover-c902e2fd.js → OrPopover-d7fc7c17.js} +10 -6
- package/dist/esm/v2/{OrRadio-514e8de8.js → OrRadio-f53c0944.js} +4 -3
- package/dist/esm/v2/{OrSearch-620d5d76.js → OrSearch-330e9af0.js} +8 -7
- package/dist/esm/v2/{OrSearch-dea30353.js → OrSearch-d5202cd2.js} +1 -1
- package/dist/esm/v2/{OrSelect-d887118b.js → OrSelect-22eea9cc.js} +1 -1
- package/dist/esm/v2/{OrSelect-7266296e.js → OrSelect-c5e6f9ee.js} +13 -9
- package/dist/esm/v2/{OrSidebar-82a4c03f.js → OrSidebar-00b1be87.js} +5 -4
- package/dist/esm/v2/{OrSidebarCollapseButton-c41c688a.js → OrSidebarCollapseButton-ace90e38.js} +1 -1
- package/dist/esm/v2/{OrStepper-b00f7531.js → OrStepper-2ae3fc21.js} +2 -2
- package/dist/esm/v2/{OrSwitch-cd24ee40.js → OrSwitch-e7fe2b86.js} +4 -3
- package/dist/esm/v2/{OrTabHeaderItem-6a08756e.js → OrTabHeaderItem-46947417.js} +4 -3
- package/dist/esm/v2/{OrTabs-12138346.js → OrTabs-1b314eeb.js} +6 -5
- package/dist/esm/v2/{OrTabs-a8008116.js → OrTabs-c383bde4.js} +10 -6
- package/dist/esm/v2/{OrTag-6349049b.js → OrTag-8ded4261.js} +1 -1
- package/dist/esm/v2/{OrTag-213bc082.js → OrTag-a36ef302.js} +1 -1
- package/dist/esm/v2/{OrTextarea-724a4d6f.js → OrTextarea-226ab7a2.js} +1 -1
- package/dist/esm/v2/{OrTextbox-0373bd6a.js → OrTextbox-90badc95.js} +10 -9
- package/dist/esm/v2/{OrTimePicker-038ceb81.js → OrTimePicker-fc6fa5ab.js} +2 -2
- package/dist/esm/v2/{OrToastContainer-1625b803.js → OrToastContainer-2f530752.js} +4 -4
- package/dist/esm/v2/{OrTooltip-b7290ed1.js → OrTooltip-6add8ee9.js} +1 -1
- package/dist/esm/{v3/color-1f348774.js → v2/color-40b7fe6b.js} +2 -1
- package/dist/esm/v2/components/index.js +66 -66
- package/dist/esm/v2/components/or-avatar-v3/index.js +2 -2
- package/dist/esm/v2/components/or-bottom-sheet-v3/index.js +3 -3
- package/dist/esm/v2/components/or-button/index.js +1 -1
- package/dist/esm/v2/components/or-button-v2/index.js +4 -4
- package/dist/esm/v2/components/or-card-collection/index.js +7 -7
- package/dist/esm/v2/components/or-card-collection-v3/index.js +10 -10
- package/dist/esm/v2/components/or-carousel/index.js +1 -1
- package/dist/esm/v2/components/or-checkbox/index.js +1 -1
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +7 -6
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +3 -3
- package/dist/esm/v2/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v2/components/or-code/index.js +5 -5
- package/dist/esm/v2/components/or-collapse/index.js +1 -1
- package/dist/esm/v2/components/or-color-picker/index.js +1 -1
- package/dist/esm/v2/components/or-confirm/index.js +8 -8
- package/dist/esm/v2/components/or-confirm-v3/index.js +8 -8
- package/dist/esm/v2/components/or-date-picker-v3/index.js +9 -9
- package/dist/esm/v2/components/or-date-time-picker/index.js +5 -5
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +9 -9
- package/dist/esm/v2/components/or-icon-button-v2/index.js +2 -2
- package/dist/esm/v2/components/or-icon-button-v3/index.js +6 -6
- package/dist/esm/v2/components/or-inline-input-v3/index.js +7 -7
- package/dist/esm/v2/components/or-inline-text-edit/index.js +5 -5
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +7 -7
- package/dist/esm/v2/components/or-input/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +7 -7
- package/dist/esm/v2/components/or-list/index.js +5 -5
- package/dist/esm/v2/components/or-list-of-inputs/index.js +8 -8
- package/dist/esm/v2/components/or-menu-v3/index.js +5 -5
- package/dist/esm/v2/components/or-modal/index.js +4 -4
- package/dist/esm/v2/components/or-modal-v3/index.js +7 -7
- package/dist/esm/v2/components/or-notification/index.js +4 -4
- package/dist/esm/v2/components/or-notification-v3/index.js +7 -7
- package/dist/esm/v2/components/or-number-input/index.js +3 -3
- package/dist/esm/v2/components/or-overflow-menu/index.js +5 -5
- package/dist/esm/v2/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v2/components/or-pagination-v3/index.js +6 -6
- package/dist/esm/v2/components/or-password/index.js +7 -7
- package/dist/esm/v2/components/or-popover-v3/index.js +4 -4
- package/dist/esm/v2/components/or-radio/index.js +1 -1
- package/dist/esm/v2/components/or-radio-group-v3/index.js +4 -3
- package/dist/esm/v2/components/or-search/index.js +6 -6
- package/dist/esm/v2/components/or-search-v3/index.js +8 -8
- package/dist/esm/v2/components/or-select/index.js +2 -2
- package/dist/esm/v2/components/or-select-v3/index.js +11 -11
- package/dist/esm/v2/components/or-sidebar-v3/index.js +8 -8
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +7 -7
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +7 -7
- package/dist/esm/v2/components/or-stepper/index.js +4 -4
- package/dist/esm/v2/components/or-switch/index.js +1 -1
- package/dist/esm/v2/components/or-tab-header-item/index.js +1 -1
- package/dist/esm/v2/components/or-tabs/index.js +2 -2
- package/dist/esm/v2/components/or-tabs-v3/index.js +6 -6
- package/dist/esm/v2/components/or-tag/index.js +2 -2
- package/dist/esm/v2/components/or-tag-v3/index.js +7 -7
- package/dist/esm/v2/components/or-textarea/index.js +2 -2
- package/dist/esm/v2/components/or-textbox/index.js +6 -6
- package/dist/esm/v2/components/or-time-picker-v3/index.js +7 -7
- package/dist/esm/v2/components/or-toast/composable/index.js +1 -1
- package/dist/esm/v2/components/or-toast/index.js +5 -5
- package/dist/esm/v2/components/or-toast/or-toast-container/index.js +5 -5
- package/dist/esm/v2/components/or-toast-v3/composable/index.js +1 -1
- package/dist/esm/v2/components/or-toast-v3/index.js +8 -8
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +8 -8
- package/dist/esm/v2/components/or-tooltip-v3/index.js +5 -5
- package/dist/esm/{v3/flattenDeep-e7a8b995.js → v2/flattenDeep-fe0af413.js} +2 -1
- package/dist/esm/v2/hooks/index.js +3 -3
- package/dist/esm/v2/index.js +67 -67
- package/dist/esm/v2/{types-b674518e.js → types-8fffa58d.js} +8 -5
- package/dist/esm/{v3/useElevation-df91fa50.js → v2/useElevation-b5a49746.js} +2 -1
- package/dist/esm/{v3/useOverflow-af6161c8.js → v2/useOverflow-c856b7b7.js} +5 -4
- package/dist/esm/{v3/useToast-0665462d.js → v2/useToast-a1332cc2.js} +10 -5
- package/dist/esm/{v3/useToast-4fbe0e5a.js → v2/useToast-b5ea5cb2.js} +10 -5
- package/dist/esm/v2/{useToggle-29e4d7c7.js → useToggle-c04fc920.js} +2 -1
- package/dist/esm/v3/{OrAvatar-1ebca2e8.js → OrAvatar-3ccb5f60.js} +1 -1
- package/dist/esm/v3/{OrAvatar-14a5c5f0.js → OrAvatar-8a73221d.js} +7 -3
- package/dist/esm/v3/{OrBottomSheet-6538d9c3.js → OrBottomSheet-67a0d6b5.js} +9 -5
- package/dist/esm/v3/OrButton-49605f5c.js +162 -0
- package/dist/esm/v3/OrButton-d6834ea0.js +142 -0
- package/dist/esm/v3/{OrCardCollection-b7d73647.js → OrCardCollection-d217f7af.js} +4 -4
- package/dist/esm/v3/{OrCardCollection-ffbb9eda.js → OrCardCollection-d79dac85.js} +8 -7
- package/dist/esm/v3/{OrCarousel-03597740.js → OrCarousel-4fb775f8.js} +8 -2
- package/dist/esm/v3/{OrCheckbox-247ce27b.js → OrCheckbox-56d7b6eb.js} +7 -4
- package/dist/esm/v3/{OrCheckbox-7efd5f26.js → OrCheckbox-ab457011.js} +11 -6
- package/dist/esm/v3/{OrCheckboxTree-ed8b5f53.js → OrCheckboxTree-4a85b9b3.js} +6 -5
- package/dist/esm/v3/{OrChip-97a85e10.js → OrChip-1b479371.js} +4 -2
- package/dist/esm/v3/{OrChips-64b86761.js → OrChips-544a35b3.js} +4 -2
- package/dist/esm/v3/{OrCode-6f2e4d99.js → OrCode-48281fc0.js} +7 -6
- package/dist/esm/v3/{OrCollapse-37a52e8f.js → OrCollapse-2b31de04.js} +6 -4
- package/dist/esm/v3/{OrColorPicker-9a149e6b.js → OrColorPicker-ffaaf14f.js} +5 -2
- package/dist/esm/v3/{OrConfirm-ab04201f.js → OrConfirm-1a94bdea.js} +8 -7
- package/dist/esm/v3/{OrConfirm-14cefbad.js → OrConfirm-e57bd854.js} +6 -5
- package/dist/esm/v3/{OrDatePicker-748c8f09.js → OrDatePicker-2533a646.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-014f7819.js → OrDateTimePicker-2af19719.js} +9 -5
- package/dist/esm/v3/{OrDateTimePicker-10f2eb69.js → OrDateTimePicker-94776158.js} +3 -3
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-7e13dcca.js → OrDateTimePickerMonthSelect-13300c6e.js} +7 -6
- package/dist/esm/v3/{OrIcon-925c5413.js → OrIcon-b566a871.js} +7 -3
- package/dist/esm/v3/{OrIconButton-46b3c1e2.js → OrIconButton-025fb2de.js} +2 -2
- package/dist/esm/v3/OrIconButton-049a3bd2.js +223 -0
- package/dist/esm/v3/{OrInlineInput-63b1d245.js → OrInlineInput-11ed65f7.js} +7 -3
- package/dist/esm/v3/{OrInlineTextEdit-6f97629f.js → OrInlineTextEdit-4f4ecba4.js} +31 -14
- package/dist/esm/v3/{OrInlineTextarea-d03f81c4.js → OrInlineTextarea-05769204.js} +7 -3
- package/dist/esm/v3/{OrInput-0dbd5a01.js → OrInput-53a32706.js} +10 -4
- package/dist/esm/v3/{OrInput-cc1991ff.js → OrInput-c7763e63.js} +1 -1
- package/dist/esm/v3/{OrList-b8799cf4.js → OrList-0543a645.js} +8 -7
- package/dist/esm/v3/{OrListOfInputs-16ba8358.js → OrListOfInputs-2fc8087c.js} +61 -52
- package/dist/esm/v3/{OrMenu-03a8a492.js → OrMenu-054e0d2e.js} +15 -7
- package/dist/esm/v3/{OrModal-28d273a8.js → OrModal-0173d0ff.js} +2 -2
- package/dist/esm/v3/{OrModal-e6513e8c.js → OrModal-c420594e.js} +6 -5
- package/dist/esm/v3/{OrNotification-16190cf5.js → OrNotification-26bdb1ca.js} +1 -1
- package/dist/esm/v3/{OrNotification-4c56f7ea.js → OrNotification-9a696585.js} +3 -3
- package/dist/esm/v3/{OrNumberInput-dca5e850.js → OrNumberInput-a80859d1.js} +5 -4
- package/dist/esm/v3/{OrOverflowMenu-fe77e22c.js → OrOverflowMenu-4b2d2950.js} +6 -5
- package/dist/esm/v3/{OrOverlay-d63d39c3.js → OrOverlay-bf72f582.js} +1 -1
- package/dist/esm/v3/{OrPagination-6bf44eec.js → OrPagination-a7fa36ad.js} +2 -2
- package/dist/esm/v3/{OrPassword-9c8a458d.js → OrPassword-35c5775f.js} +8 -7
- package/dist/esm/v3/{OrPopover-e34e8f6c.js → OrPopover-986f867f.js} +10 -6
- package/dist/esm/v3/{OrRadio-c3ab11f2.js → OrRadio-dfd0f0c9.js} +7 -4
- package/dist/esm/v3/{OrSearch-7277ebfd.js → OrSearch-bb3a3acc.js} +1 -1
- package/dist/esm/v3/{OrSearch-c4caf04e.js → OrSearch-f4ad73db.js} +7 -6
- package/dist/esm/v3/{OrSegmentedControl-4587c7a9.js → OrSegmentedControl-359fbf3a.js} +3 -1
- package/dist/esm/v3/{OrSelect-d8a78242.js → OrSelect-6ff34196.js} +10 -6
- package/dist/esm/v3/{OrSelect-9c7044f8.js → OrSelect-93b70fcc.js} +13 -9
- package/dist/esm/v3/{OrSidebar-0f4629bf.js → OrSidebar-fede2b0e.js} +5 -4
- package/dist/esm/v3/{OrSidebarCollapseButton-a384cd37.js → OrSidebarCollapseButton-5c64c1b0.js} +1 -1
- package/dist/esm/v3/{OrSlider-80e0f2e6.js → OrSlider-c3778aa7.js} +16 -4
- package/dist/esm/v3/{OrStepper-3a586401.js → OrStepper-fedc1cca.js} +2 -2
- package/dist/esm/v3/{OrSwitch-c333ee32.js → OrSwitch-3fca7e24.js} +7 -4
- package/dist/esm/v3/{OrTabHeaderItem-d668cc59.js → OrTabHeaderItem-3bb0b711.js} +7 -4
- package/dist/esm/v3/{OrTabs-d3812c11.js → OrTabs-35a376a3.js} +6 -5
- package/dist/esm/v3/{OrTabs-9e29eeec.js → OrTabs-b2bbc82a.js} +10 -6
- package/dist/esm/v3/{OrTag-e7adb078.js → OrTag-2d9eacf8.js} +5 -3
- package/dist/esm/v3/{OrTag-b508f25f.js → OrTag-930d11c3.js} +1 -1
- package/dist/esm/v3/{OrTextarea-de1ecb0f.js → OrTextarea-f6722edc.js} +10 -4
- package/dist/esm/v3/{OrTextbox-f7388a30.js → OrTextbox-6e585202.js} +27 -14
- package/dist/esm/v3/{OrTimePicker-2fe3c573.js → OrTimePicker-cd206930.js} +2 -2
- package/dist/esm/v3/{OrToastContainer-94ba2803.js → OrToastContainer-24839efd.js} +6 -4
- package/dist/esm/v3/{OrTooltip-618ce7c9.js → OrTooltip-89ce98e8.js} +6 -2
- package/dist/esm/v3/{OrTooltip-e3c85390.js → OrTooltip-ace3359f.js} +1 -1
- package/dist/esm/{v2/color-1f348774.js → v3/color-40b7fe6b.js} +2 -1
- package/dist/esm/v3/components/index.js +71 -71
- package/dist/esm/v3/components/or-avatar/index.js +3 -3
- package/dist/esm/v3/components/or-avatar-v3/index.js +2 -2
- package/dist/esm/v3/components/or-bottom-sheet-v3/index.js +3 -3
- package/dist/esm/v3/components/or-button/index.js +1 -1
- package/dist/esm/v3/components/or-button-v2/index.js +4 -4
- package/dist/esm/v3/components/or-card-collection/index.js +8 -8
- package/dist/esm/v3/components/or-card-collection-v3/index.js +10 -10
- package/dist/esm/v3/components/or-carousel/index.js +3 -3
- package/dist/esm/v3/components/or-checkbox/index.js +3 -3
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +7 -6
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +3 -3
- package/dist/esm/v3/components/or-checkbox-v3/index.js +1 -1
- package/dist/esm/v3/components/or-chips/index.js +4 -4
- package/dist/esm/v3/components/or-chips/or-chip/index.js +3 -3
- package/dist/esm/v3/components/or-code/index.js +6 -6
- package/dist/esm/v3/components/or-collapse/index.js +1 -1
- package/dist/esm/v3/components/or-color-picker/index.js +1 -1
- package/dist/esm/v3/components/or-confirm/index.js +8 -8
- package/dist/esm/v3/components/or-confirm-v3/index.js +8 -8
- package/dist/esm/v3/components/or-date-picker-v3/index.js +9 -9
- package/dist/esm/v3/components/or-date-time-picker/index.js +6 -6
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +9 -9
- package/dist/esm/v3/components/or-icon/index.js +2 -2
- package/dist/esm/v3/components/or-icon-button-v2/index.js +3 -3
- package/dist/esm/v3/components/or-icon-button-v3/index.js +6 -6
- package/dist/esm/v3/components/or-inline-input-v3/index.js +7 -7
- package/dist/esm/v3/components/or-inline-text-edit/index.js +6 -6
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +7 -7
- package/dist/esm/v3/components/or-input/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +7 -7
- package/dist/esm/v3/components/or-list/index.js +5 -5
- package/dist/esm/v3/components/or-list-of-inputs/index.js +8 -8
- package/dist/esm/v3/components/or-menu-v3/index.js +5 -5
- package/dist/esm/v3/components/or-modal/index.js +5 -5
- package/dist/esm/v3/components/or-modal-v3/index.js +7 -7
- package/dist/esm/v3/components/or-notification/index.js +5 -5
- package/dist/esm/v3/components/or-notification-v3/index.js +7 -7
- package/dist/esm/v3/components/or-number-input/index.js +3 -3
- package/dist/esm/v3/components/or-overflow-menu/index.js +5 -5
- package/dist/esm/v3/components/or-overlay-v3/index.js +2 -2
- package/dist/esm/v3/components/or-pagination-v3/index.js +6 -6
- package/dist/esm/v3/components/or-password/index.js +8 -8
- package/dist/esm/v3/components/or-popover-v3/index.js +4 -4
- package/dist/esm/v3/components/or-radio/index.js +1 -1
- package/dist/esm/v3/components/or-radio-group-v3/index.js +4 -3
- package/dist/esm/v3/components/or-search/index.js +7 -7
- package/dist/esm/v3/components/or-search-v3/index.js +8 -8
- package/dist/esm/v3/components/or-segmented-control-v3/index.js +1 -1
- package/dist/esm/v3/components/or-select/index.js +6 -6
- package/dist/esm/v3/components/or-select-v3/index.js +11 -11
- package/dist/esm/v3/components/or-sidebar-v3/index.js +8 -8
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +7 -7
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +7 -7
- package/dist/esm/v3/components/or-slider/index.js +3 -3
- package/dist/esm/v3/components/or-stepper/index.js +5 -5
- package/dist/esm/v3/components/or-switch/index.js +1 -1
- package/dist/esm/v3/components/or-tab-header-item/index.js +1 -1
- package/dist/esm/v3/components/or-tabs/index.js +2 -2
- package/dist/esm/v3/components/or-tabs-v3/index.js +6 -6
- package/dist/esm/v3/components/or-tag/index.js +4 -4
- package/dist/esm/v3/components/or-tag-v3/index.js +7 -7
- package/dist/esm/v3/components/or-textarea/index.js +2 -2
- package/dist/esm/v3/components/or-textbox/index.js +7 -7
- package/dist/esm/v3/components/or-time-picker-v3/index.js +7 -7
- package/dist/esm/v3/components/or-toast/composable/index.js +1 -1
- package/dist/esm/v3/components/or-toast/index.js +6 -6
- package/dist/esm/v3/components/or-toast/or-toast-container/index.js +6 -6
- package/dist/esm/v3/components/or-toast-v3/composable/index.js +1 -1
- package/dist/esm/v3/components/or-toast-v3/index.js +8 -8
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +8 -8
- package/dist/esm/v3/components/or-tooltip/index.js +1 -1
- package/dist/esm/v3/components/or-tooltip-v3/index.js +5 -5
- package/dist/esm/{v2/flattenDeep-e7a8b995.js → v3/flattenDeep-fe0af413.js} +2 -1
- package/dist/esm/v3/hooks/index.js +3 -3
- package/dist/esm/v3/index.js +72 -72
- package/dist/esm/v3/{types-9034029d.js → types-b64c7e13.js} +11 -6
- package/dist/esm/{v2/useElevation-df91fa50.js → v3/useElevation-b5a49746.js} +2 -1
- package/dist/esm/{v2/useOverflow-af6161c8.js → v3/useOverflow-c856b7b7.js} +5 -4
- package/dist/esm/{v2/useToast-0665462d.js → v3/useToast-a1332cc2.js} +10 -5
- package/dist/esm/{v2/useToast-4fbe0e5a.js → v3/useToast-b5ea5cb2.js} +10 -5
- package/dist/esm/v3/{useToggle-29e4d7c7.js → useToggle-c04fc920.js} +2 -1
- package/package.json +7 -6
- package/dist/esm/v2/OrButton-549e8852.js +0 -195
- package/dist/esm/v2/OrButton.vue_rollup-plugin-vue_styles.0-48c5883e.js +0 -106
- package/dist/esm/v2/OrIconButton.vue_rollup-plugin-vue_styles.0-277ce06c.js +0 -205
- package/dist/esm/v3/OrButton-f8b10d79.js +0 -142
- package/dist/esm/v3/OrButton-fca9019a.js +0 -162
- package/dist/esm/v3/OrIconButton-5387fd59.js +0 -222
- /package/dist/bundled/v2/{index-63e094a0.js → index-1301ac7b.js} +0 -0
- /package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-6511e348.js → OrAvatar.vue_vue_type_script_lang-2d5de9d4.js} +0 -0
- /package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-623c32a1.js → OrAvatar.vue_vue_type_script_lang-8d7ce473.js} +0 -0
- /package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-da7f7ed0.js → OrButton.vue_vue_type_script_lang-4f44f547.js} +0 -0
- /package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-5a390853.js → OrChip.vue_vue_type_script_lang-185d8d45.js} +0 -0
- /package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-3a799e23.js → OrColorPicker.vue_vue_type_script_lang-d8588b52.js} +0 -0
- /package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-47004a50.js → OrOverlay.vue_vue_type_script_lang-86c7b93a.js} +0 -0
- /package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-45ecddbe.js → OrSlider.vue_vue_type_script_lang-7234ab75.js} +0 -0
- /package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-621e9307.js → OrTag.vue_vue_type_script_lang-4e98d8a0.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-70cc38be.js → OrToastContainer.vue_vue_type_script_lang-45713d6c.js} +0 -0
- /package/dist/bundled/v3/{index-63e094a0.js → index-1301ac7b.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { E as EditorView, F as Facet, c as combineConfig, S as StateField, a as EditorSelection, T as Transaction, C as ChangeSet, b as ChangeDesc, I as IndentContext, g as getIndentation, i as indentString, d as Text, e as indentUnit, f as countColumn, h as getIndentUnit, A as Annotation, j as StateEffect, m as matchBrackets, s as syntaxTree, N as NodeProp, D as Direction, k as findClusterBreak, V as ViewPlugin, l as Decoration, n as codePointAt, o as codePointSize, p as getPanel, q as CharCategory, P as Prec, r as fromCodePoint, t as showPanel, R as RangeSetBuilder, u as EditorState, v as runScopeHandlers, w as hoverTooltip, W as WidgetType, x as logException, y as lineNumbers, z as highlightActiveLineGutter, B as highlightSpecialChars, G as foldGutter, H as drawSelection, J as dropCursor, K as indentOnInput, L as syntaxHighlighting, M as defaultHighlightStyle, O as bracketMatching, Q as rectangularSelection, U as crosshairCursor, X as highlightActiveLine, Y as keymap, Z as foldKeymap } from './index-
|
|
2
|
-
import { c as closeBrackets, a as autocompletion, b as closeBracketsKeymap, d as completionKeymap, l as languages } from './lang-
|
|
1
|
+
import { E as EditorView, F as Facet, c as combineConfig, S as StateField, a as EditorSelection, T as Transaction, C as ChangeSet, b as ChangeDesc, I as IndentContext, g as getIndentation, i as indentString, d as Text, e as indentUnit, f as countColumn, h as getIndentUnit, A as Annotation, j as StateEffect, m as matchBrackets, s as syntaxTree, N as NodeProp, D as Direction, k as findClusterBreak, V as ViewPlugin, l as Decoration, n as codePointAt, o as codePointSize, p as getPanel, q as CharCategory, P as Prec, r as fromCodePoint, t as showPanel, R as RangeSetBuilder, u as EditorState, v as runScopeHandlers, w as hoverTooltip, W as WidgetType, x as logException, y as lineNumbers, z as highlightActiveLineGutter, B as highlightSpecialChars, G as foldGutter, H as drawSelection, J as dropCursor, K as indentOnInput, L as syntaxHighlighting, M as defaultHighlightStyle, O as bracketMatching, Q as rectangularSelection, U as crosshairCursor, X as highlightActiveLine, Y as keymap, Z as foldKeymap } from './index-e0b25cea.js';
|
|
2
|
+
import { c as closeBrackets, a as autocompletion, b as closeBracketsKeymap, d as completionKeymap, l as languages } from './lang-973a418e.js';
|
|
3
3
|
import { useElementHover } from '@vueuse/core';
|
|
4
4
|
import { defineComponent, ref } from 'vue-demi';
|
|
5
5
|
import script$3 from './components/OrTeleport/OrTeleport.js';
|
|
@@ -7,11 +7,11 @@ import { OrCodeLanguages } from './components/OrCode/constants.js';
|
|
|
7
7
|
import theme from './components/OrCode/theme.js';
|
|
8
8
|
import './components/OrIconButtonV2/OrIconButton.js';
|
|
9
9
|
import './components/OrModal/OrModal.js';
|
|
10
|
-
import { s as script$2 } from './OrModal.vue_vue_type_script_lang-
|
|
10
|
+
import { s as script$2 } from './OrModal.vue_vue_type_script_lang-ae842e5b.js';
|
|
11
11
|
import './components/OrError/OrError.js';
|
|
12
12
|
import './components/OrHint/OrHint.js';
|
|
13
13
|
import './components/OrLabel/OrLabel.js';
|
|
14
|
-
import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-
|
|
14
|
+
import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-fb99a3ea.js';
|
|
15
15
|
import { s as script$4 } from './OrError.vue_vue_type_script_lang-450321b8.js';
|
|
16
16
|
import { s as script$5 } from './OrHint.vue_vue_type_script_lang-5d628c6c.js';
|
|
17
17
|
import { s as script$6 } from './OrLabel.vue_vue_type_script_lang-95601b40.js';
|
|
@@ -29,10 +29,11 @@ const toggleComment = target => {
|
|
|
29
29
|
return config.line ? toggleLineComment(target) : config.block ? toggleBlockCommentByLine(target) : false;
|
|
30
30
|
};
|
|
31
31
|
function command(f, option) {
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
return _ref => {
|
|
33
|
+
let {
|
|
34
|
+
state,
|
|
35
|
+
dispatch
|
|
36
|
+
} = _ref;
|
|
36
37
|
if (state.readOnly) return false;
|
|
37
38
|
let tr = f(option, state);
|
|
38
39
|
if (!tr) return false;
|
|
@@ -68,10 +69,11 @@ const SearchMargin = 50;
|
|
|
68
69
|
Determines if the given range is block-commented in the given
|
|
69
70
|
state.
|
|
70
71
|
*/
|
|
71
|
-
function findBlockComment(state, {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
function findBlockComment(state, _ref2, from, to) {
|
|
73
|
+
let {
|
|
74
|
+
open,
|
|
75
|
+
close
|
|
76
|
+
} = _ref2;
|
|
75
77
|
let textBefore = state.sliceDoc(from - SearchMargin, from);
|
|
76
78
|
let textAfter = state.sliceDoc(to, to + SearchMargin);
|
|
77
79
|
let spaceBefore = /\s*$/.exec(textBefore)[0].length,
|
|
@@ -128,7 +130,8 @@ function selectedLineRanges(state) {
|
|
|
128
130
|
}
|
|
129
131
|
// Performs toggle, comment and uncomment of block comments in
|
|
130
132
|
// languages that support them.
|
|
131
|
-
function changeBlockComment(option, state
|
|
133
|
+
function changeBlockComment(option, state) {
|
|
134
|
+
let ranges = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : state.selection.ranges;
|
|
132
135
|
let tokens = ranges.map(r => getConfig(state, r.from).block);
|
|
133
136
|
if (!tokens.every(c => c)) return null;
|
|
134
137
|
let comments = ranges.map((r, i) => findBlockComment(state, tokens[i], r.from, r.to));
|
|
@@ -168,7 +171,8 @@ function changeBlockComment(option, state, ranges = state.selection.ranges) {
|
|
|
168
171
|
return null;
|
|
169
172
|
}
|
|
170
173
|
// Performs toggle, comment and uncomment of line comments.
|
|
171
|
-
function changeLineComment(option, state
|
|
174
|
+
function changeLineComment(option, state) {
|
|
175
|
+
let ranges = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : state.selection.ranges;
|
|
172
176
|
let lines = [];
|
|
173
177
|
let prevLine = -1;
|
|
174
178
|
for (let {
|
|
@@ -312,7 +316,8 @@ const historyField_ = /*@__PURE__*/StateField.define({
|
|
|
312
316
|
/**
|
|
313
317
|
Create a history extension with the given configuration.
|
|
314
318
|
*/
|
|
315
|
-
function history(
|
|
319
|
+
function history() {
|
|
320
|
+
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
316
321
|
return [historyField_, historyConfig.of(config), EditorView.domEventHandlers({
|
|
317
322
|
beforeinput(e, view) {
|
|
318
323
|
let command = e.inputType == "historyUndo" ? undo : e.inputType == "historyRedo" ? redo : null;
|
|
@@ -323,10 +328,11 @@ function history(config = {}) {
|
|
|
323
328
|
})];
|
|
324
329
|
}
|
|
325
330
|
function cmd(side, selection) {
|
|
326
|
-
return function ({
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
331
|
+
return function (_ref3) {
|
|
332
|
+
let {
|
|
333
|
+
state,
|
|
334
|
+
dispatch
|
|
335
|
+
} = _ref3;
|
|
330
336
|
if (!selection && state.readOnly) return false;
|
|
331
337
|
let historyState = state.field(historyField_, false);
|
|
332
338
|
if (!historyState) return false;
|
|
@@ -490,7 +496,9 @@ function mapEvent(event, mapping, extraSelections) {
|
|
|
490
496
|
}
|
|
491
497
|
const joinableUserEvent = /^(input\.type|delete)($|\.)/;
|
|
492
498
|
class HistoryState {
|
|
493
|
-
constructor(done, undone
|
|
499
|
+
constructor(done, undone) {
|
|
500
|
+
let prevTime = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
501
|
+
let prevUserEvent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
494
502
|
this.done = done;
|
|
495
503
|
this.undone = undone;
|
|
496
504
|
this.prevTime = prevTime;
|
|
@@ -595,10 +603,11 @@ function setSel(state, selection) {
|
|
|
595
603
|
userEvent: "select"
|
|
596
604
|
});
|
|
597
605
|
}
|
|
598
|
-
function moveSel({
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
606
|
+
function moveSel(_ref4, how) {
|
|
607
|
+
let {
|
|
608
|
+
state,
|
|
609
|
+
dispatch
|
|
610
|
+
} = _ref4;
|
|
602
611
|
let selection = updateSel(state.selection, how);
|
|
603
612
|
if (selection.eq(state.selection)) return false;
|
|
604
613
|
dispatch(setSel(state, selection));
|
|
@@ -788,10 +797,13 @@ function toMatchingBracket(state, dispatch, extend) {
|
|
|
788
797
|
Move the selection to the bracket matching the one it is currently
|
|
789
798
|
on, if any.
|
|
790
799
|
*/
|
|
791
|
-
const cursorMatchingBracket =
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
800
|
+
const cursorMatchingBracket = _ref5 => {
|
|
801
|
+
let {
|
|
802
|
+
state,
|
|
803
|
+
dispatch
|
|
804
|
+
} = _ref5;
|
|
805
|
+
return toMatchingBracket(state, dispatch, false);
|
|
806
|
+
};
|
|
795
807
|
function extendSel(view, how) {
|
|
796
808
|
let selection = updateSel(view.state.selection, range => {
|
|
797
809
|
let head = how(range);
|
|
@@ -882,10 +894,11 @@ const selectLineEnd = view => extendSel(view, range => EditorSelection.cursor(vi
|
|
|
882
894
|
/**
|
|
883
895
|
Move the selection to the start of the document.
|
|
884
896
|
*/
|
|
885
|
-
const cursorDocStart =
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
897
|
+
const cursorDocStart = _ref7 => {
|
|
898
|
+
let {
|
|
899
|
+
state,
|
|
900
|
+
dispatch
|
|
901
|
+
} = _ref7;
|
|
889
902
|
dispatch(setSel(state, {
|
|
890
903
|
anchor: 0
|
|
891
904
|
}));
|
|
@@ -894,10 +907,11 @@ const cursorDocStart = ({
|
|
|
894
907
|
/**
|
|
895
908
|
Move the selection to the end of the document.
|
|
896
909
|
*/
|
|
897
|
-
const cursorDocEnd =
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
910
|
+
const cursorDocEnd = _ref8 => {
|
|
911
|
+
let {
|
|
912
|
+
state,
|
|
913
|
+
dispatch
|
|
914
|
+
} = _ref8;
|
|
901
915
|
dispatch(setSel(state, {
|
|
902
916
|
anchor: state.doc.length
|
|
903
917
|
}));
|
|
@@ -906,10 +920,11 @@ const cursorDocEnd = ({
|
|
|
906
920
|
/**
|
|
907
921
|
Move the selection head to the start of the document.
|
|
908
922
|
*/
|
|
909
|
-
const selectDocStart =
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
923
|
+
const selectDocStart = _ref9 => {
|
|
924
|
+
let {
|
|
925
|
+
state,
|
|
926
|
+
dispatch
|
|
927
|
+
} = _ref9;
|
|
913
928
|
dispatch(setSel(state, {
|
|
914
929
|
anchor: state.selection.main.anchor,
|
|
915
930
|
head: 0
|
|
@@ -919,10 +934,11 @@ const selectDocStart = ({
|
|
|
919
934
|
/**
|
|
920
935
|
Move the selection head to the end of the document.
|
|
921
936
|
*/
|
|
922
|
-
const selectDocEnd =
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
937
|
+
const selectDocEnd = _ref10 => {
|
|
938
|
+
let {
|
|
939
|
+
state,
|
|
940
|
+
dispatch
|
|
941
|
+
} = _ref10;
|
|
926
942
|
dispatch(setSel(state, {
|
|
927
943
|
anchor: state.selection.main.anchor,
|
|
928
944
|
head: state.doc.length
|
|
@@ -932,10 +948,11 @@ const selectDocEnd = ({
|
|
|
932
948
|
/**
|
|
933
949
|
Select the entire document.
|
|
934
950
|
*/
|
|
935
|
-
const selectAll =
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
951
|
+
const selectAll = _ref11 => {
|
|
952
|
+
let {
|
|
953
|
+
state,
|
|
954
|
+
dispatch
|
|
955
|
+
} = _ref11;
|
|
939
956
|
dispatch(state.update({
|
|
940
957
|
selection: {
|
|
941
958
|
anchor: 0,
|
|
@@ -948,14 +965,18 @@ const selectAll = ({
|
|
|
948
965
|
/**
|
|
949
966
|
Expand the selection to cover entire lines.
|
|
950
967
|
*/
|
|
951
|
-
const selectLine =
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
968
|
+
const selectLine = _ref12 => {
|
|
969
|
+
let {
|
|
970
|
+
state,
|
|
971
|
+
dispatch
|
|
972
|
+
} = _ref12;
|
|
973
|
+
let ranges = selectedLineBlocks(state).map(_ref13 => {
|
|
974
|
+
let {
|
|
975
|
+
from,
|
|
976
|
+
to
|
|
977
|
+
} = _ref13;
|
|
978
|
+
return EditorSelection.range(from, Math.min(to + 1, state.doc.length));
|
|
979
|
+
});
|
|
959
980
|
dispatch(state.update({
|
|
960
981
|
selection: EditorSelection.create(ranges),
|
|
961
982
|
userEvent: "select"
|
|
@@ -968,10 +989,11 @@ selection. Note that this will only work insofar as the language
|
|
|
968
989
|
[provider](https://codemirror.net/6/docs/ref/#language.language) you use builds up a full
|
|
969
990
|
syntax tree.
|
|
970
991
|
*/
|
|
971
|
-
const selectParentSyntax =
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
992
|
+
const selectParentSyntax = _ref14 => {
|
|
993
|
+
let {
|
|
994
|
+
state,
|
|
995
|
+
dispatch
|
|
996
|
+
} = _ref14;
|
|
975
997
|
let selection = updateSel(state.selection, range => {
|
|
976
998
|
var _a;
|
|
977
999
|
let context = syntaxTree(state).resolveInner(range.head, 1);
|
|
@@ -986,10 +1008,11 @@ Simplify the current selection. When multiple ranges are selected,
|
|
|
986
1008
|
reduce it to its main range. Otherwise, if the selection is
|
|
987
1009
|
non-empty, convert it to a cursor selection.
|
|
988
1010
|
*/
|
|
989
|
-
const simplifySelection =
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1011
|
+
const simplifySelection = _ref15 => {
|
|
1012
|
+
let {
|
|
1013
|
+
state,
|
|
1014
|
+
dispatch
|
|
1015
|
+
} = _ref15;
|
|
993
1016
|
let cur = state.selection,
|
|
994
1017
|
selection = null;
|
|
995
1018
|
if (cur.ranges.length > 1) selection = EditorSelection.create([cur.main]);else if (!cur.main.empty) selection = EditorSelection.create([EditorSelection.cursor(cur.main.head)]);
|
|
@@ -1128,10 +1151,11 @@ const deleteToLineStart = view => deleteBy(view, pos => {
|
|
|
1128
1151
|
Replace each selection range with a line break, leaving the cursor
|
|
1129
1152
|
on the line before the break.
|
|
1130
1153
|
*/
|
|
1131
|
-
const splitLine =
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1154
|
+
const splitLine = _ref17 => {
|
|
1155
|
+
let {
|
|
1156
|
+
state,
|
|
1157
|
+
dispatch
|
|
1158
|
+
} = _ref17;
|
|
1135
1159
|
if (state.readOnly) return false;
|
|
1136
1160
|
let changes = state.changeByRange(range => {
|
|
1137
1161
|
return {
|
|
@@ -1152,10 +1176,11 @@ const splitLine = ({
|
|
|
1152
1176
|
/**
|
|
1153
1177
|
Flip the characters before and after the cursor(s).
|
|
1154
1178
|
*/
|
|
1155
|
-
const transposeChars =
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1179
|
+
const transposeChars = _ref18 => {
|
|
1180
|
+
let {
|
|
1181
|
+
state,
|
|
1182
|
+
dispatch
|
|
1183
|
+
} = _ref18;
|
|
1159
1184
|
if (state.readOnly) return false;
|
|
1160
1185
|
let changes = state.changeByRange(range => {
|
|
1161
1186
|
if (!range.empty || range.from == 0 || range.from == state.doc.length) return {
|
|
@@ -1243,17 +1268,23 @@ function moveLine(state, dispatch, forward) {
|
|
|
1243
1268
|
/**
|
|
1244
1269
|
Move the selected lines up one line.
|
|
1245
1270
|
*/
|
|
1246
|
-
const moveLineUp =
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1271
|
+
const moveLineUp = _ref19 => {
|
|
1272
|
+
let {
|
|
1273
|
+
state,
|
|
1274
|
+
dispatch
|
|
1275
|
+
} = _ref19;
|
|
1276
|
+
return moveLine(state, dispatch, false);
|
|
1277
|
+
};
|
|
1250
1278
|
/**
|
|
1251
1279
|
Move the selected lines down one line.
|
|
1252
1280
|
*/
|
|
1253
|
-
const moveLineDown =
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1281
|
+
const moveLineDown = _ref20 => {
|
|
1282
|
+
let {
|
|
1283
|
+
state,
|
|
1284
|
+
dispatch
|
|
1285
|
+
} = _ref20;
|
|
1286
|
+
return moveLine(state, dispatch, true);
|
|
1287
|
+
};
|
|
1257
1288
|
function copyLine(state, dispatch, forward) {
|
|
1258
1289
|
if (state.readOnly) return false;
|
|
1259
1290
|
let changes = [];
|
|
@@ -1276,17 +1307,23 @@ function copyLine(state, dispatch, forward) {
|
|
|
1276
1307
|
/**
|
|
1277
1308
|
Create a copy of the selected lines. Keep the selection in the top copy.
|
|
1278
1309
|
*/
|
|
1279
|
-
const copyLineUp =
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1310
|
+
const copyLineUp = _ref21 => {
|
|
1311
|
+
let {
|
|
1312
|
+
state,
|
|
1313
|
+
dispatch
|
|
1314
|
+
} = _ref21;
|
|
1315
|
+
return copyLine(state, dispatch, false);
|
|
1316
|
+
};
|
|
1283
1317
|
/**
|
|
1284
1318
|
Create a copy of the selected lines. Keep the selection in the bottom copy.
|
|
1285
1319
|
*/
|
|
1286
|
-
const copyLineDown =
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1320
|
+
const copyLineDown = _ref22 => {
|
|
1321
|
+
let {
|
|
1322
|
+
state,
|
|
1323
|
+
dispatch
|
|
1324
|
+
} = _ref22;
|
|
1325
|
+
return copyLine(state, dispatch, true);
|
|
1326
|
+
};
|
|
1290
1327
|
/**
|
|
1291
1328
|
Delete selected lines.
|
|
1292
1329
|
*/
|
|
@@ -1295,10 +1332,11 @@ const deleteLine = view => {
|
|
|
1295
1332
|
let {
|
|
1296
1333
|
state
|
|
1297
1334
|
} = view,
|
|
1298
|
-
changes = state.changes(selectedLineBlocks(state).map(
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1335
|
+
changes = state.changes(selectedLineBlocks(state).map(_ref23 => {
|
|
1336
|
+
let {
|
|
1337
|
+
from,
|
|
1338
|
+
to
|
|
1339
|
+
} = _ref23;
|
|
1302
1340
|
if (from > 0) from--;else if (to < state.doc.length) to++;
|
|
1303
1341
|
return {
|
|
1304
1342
|
from,
|
|
@@ -1342,10 +1380,11 @@ Create a blank, indented line below the current line.
|
|
|
1342
1380
|
*/
|
|
1343
1381
|
const insertBlankLine = /*@__PURE__*/newlineAndIndent(true);
|
|
1344
1382
|
function newlineAndIndent(atEof) {
|
|
1345
|
-
return
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1383
|
+
return _ref25 => {
|
|
1384
|
+
let {
|
|
1385
|
+
state,
|
|
1386
|
+
dispatch
|
|
1387
|
+
} = _ref25;
|
|
1349
1388
|
if (state.readOnly) return false;
|
|
1350
1389
|
let changes = state.changeByRange(range => {
|
|
1351
1390
|
let {
|
|
@@ -1408,10 +1447,11 @@ Auto-indent the selected lines. This uses the [indentation service
|
|
|
1408
1447
|
facet](https://codemirror.net/6/docs/ref/#language.indentService) as source for auto-indent
|
|
1409
1448
|
information.
|
|
1410
1449
|
*/
|
|
1411
|
-
const indentSelection =
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1450
|
+
const indentSelection = _ref26 => {
|
|
1451
|
+
let {
|
|
1452
|
+
state,
|
|
1453
|
+
dispatch
|
|
1454
|
+
} = _ref26;
|
|
1415
1455
|
if (state.readOnly) return false;
|
|
1416
1456
|
let updated = Object.create(null);
|
|
1417
1457
|
let context = new IndentContext(state, {
|
|
@@ -1444,10 +1484,11 @@ const indentSelection = ({
|
|
|
1444
1484
|
Add a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation to all selected
|
|
1445
1485
|
lines.
|
|
1446
1486
|
*/
|
|
1447
|
-
const indentMore =
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1487
|
+
const indentMore = _ref27 => {
|
|
1488
|
+
let {
|
|
1489
|
+
state,
|
|
1490
|
+
dispatch
|
|
1491
|
+
} = _ref27;
|
|
1451
1492
|
if (state.readOnly) return false;
|
|
1452
1493
|
dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
|
|
1453
1494
|
changes.push({
|
|
@@ -1463,10 +1504,11 @@ const indentMore = ({
|
|
|
1463
1504
|
Remove a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation from all
|
|
1464
1505
|
selected lines.
|
|
1465
1506
|
*/
|
|
1466
|
-
const indentLess =
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1507
|
+
const indentLess = _ref28 => {
|
|
1508
|
+
let {
|
|
1509
|
+
state,
|
|
1510
|
+
dispatch
|
|
1511
|
+
} = _ref28;
|
|
1470
1512
|
if (state.readOnly) return false;
|
|
1471
1513
|
dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
|
|
1472
1514
|
let space = /^\s*/.exec(line.text)[0];
|
|
@@ -1838,7 +1880,11 @@ class SearchCursor {
|
|
|
1838
1880
|
[`.normalize("NFKD")`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize)
|
|
1839
1881
|
(when supported).
|
|
1840
1882
|
*/
|
|
1841
|
-
constructor(text, query
|
|
1883
|
+
constructor(text, query) {
|
|
1884
|
+
let from = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
1885
|
+
let to = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : text.length;
|
|
1886
|
+
let normalize = arguments.length > 4 ? arguments[4] : undefined;
|
|
1887
|
+
let test = arguments.length > 5 ? arguments[5] : undefined;
|
|
1842
1888
|
this.test = test;
|
|
1843
1889
|
/**
|
|
1844
1890
|
The current match (only holds a meaningful value after
|
|
@@ -1960,7 +2006,9 @@ class RegExpCursor {
|
|
|
1960
2006
|
document. `query` should be the raw pattern (as you'd pass it to
|
|
1961
2007
|
`new RegExp`).
|
|
1962
2008
|
*/
|
|
1963
|
-
constructor(text, query, options
|
|
2009
|
+
constructor(text, query, options) {
|
|
2010
|
+
let from = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
2011
|
+
let to = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : text.length;
|
|
1964
2012
|
this.text = text;
|
|
1965
2013
|
this.to = to;
|
|
1966
2014
|
this.curLine = "";
|
|
@@ -2205,9 +2253,6 @@ Supports line numbers, relative line offsets prefixed with `+` or
|
|
|
2205
2253
|
`-`, document percentages suffixed with `%`, and an optional
|
|
2206
2254
|
column position by adding `:` and a second number after the line
|
|
2207
2255
|
number.
|
|
2208
|
-
|
|
2209
|
-
The dialog can be styled with the `panel.gotoLine` theme
|
|
2210
|
-
selector.
|
|
2211
2256
|
*/
|
|
2212
2257
|
const gotoLine = view => {
|
|
2213
2258
|
let panel = getPanel(view, createLineDialog);
|
|
@@ -2333,10 +2378,11 @@ const defaultTheme = /*@__PURE__*/EditorView.baseTheme({
|
|
|
2333
2378
|
}
|
|
2334
2379
|
});
|
|
2335
2380
|
// Select the words around the cursors.
|
|
2336
|
-
const selectWord =
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2381
|
+
const selectWord = _ref => {
|
|
2382
|
+
let {
|
|
2383
|
+
state,
|
|
2384
|
+
dispatch
|
|
2385
|
+
} = _ref;
|
|
2340
2386
|
let {
|
|
2341
2387
|
selection
|
|
2342
2388
|
} = state;
|
|
@@ -2376,10 +2422,11 @@ function findNextOccurrence(state, query) {
|
|
|
2376
2422
|
Select next occurrence of the current selection. Expand selection
|
|
2377
2423
|
to the surrounding word when the selection is empty.
|
|
2378
2424
|
*/
|
|
2379
|
-
const selectNextOccurrence =
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2425
|
+
const selectNextOccurrence = _ref2 => {
|
|
2426
|
+
let {
|
|
2427
|
+
state,
|
|
2428
|
+
dispatch
|
|
2429
|
+
} = _ref2;
|
|
2383
2430
|
let {
|
|
2384
2431
|
ranges
|
|
2385
2432
|
} = state.selection;
|
|
@@ -2404,7 +2451,8 @@ const searchConfigFacet = /*@__PURE__*/Facet.define({
|
|
|
2404
2451
|
caseSensitive: false,
|
|
2405
2452
|
literal: false,
|
|
2406
2453
|
wholeWord: false,
|
|
2407
|
-
createPanel: view => new SearchPanel(view)
|
|
2454
|
+
createPanel: view => new SearchPanel(view),
|
|
2455
|
+
scrollToMatch: range => EditorView.scrollIntoView(range)
|
|
2408
2456
|
});
|
|
2409
2457
|
}
|
|
2410
2458
|
});
|
|
@@ -2447,7 +2495,9 @@ class SearchQuery {
|
|
|
2447
2495
|
Get a search cursor for this query, searching through the given
|
|
2448
2496
|
range in the given state.
|
|
2449
2497
|
*/
|
|
2450
|
-
getCursor(state
|
|
2498
|
+
getCursor(state) {
|
|
2499
|
+
let from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
2500
|
+
let to = arguments.length > 2 ? arguments[2] : undefined;
|
|
2451
2501
|
let st = state.doc ? state : EditorState.create({
|
|
2452
2502
|
doc: state
|
|
2453
2503
|
});
|
|
@@ -2608,10 +2658,11 @@ const searchHighlighter = /*@__PURE__*/ViewPlugin.fromClass(class {
|
|
|
2608
2658
|
let state = update.state.field(searchState);
|
|
2609
2659
|
if (state != update.startState.field(searchState) || update.docChanged || update.selectionSet || update.viewportChanged) this.decorations = this.highlight(state);
|
|
2610
2660
|
}
|
|
2611
|
-
highlight({
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2661
|
+
highlight(_ref3) {
|
|
2662
|
+
let {
|
|
2663
|
+
query,
|
|
2664
|
+
panel
|
|
2665
|
+
} = _ref3;
|
|
2615
2666
|
if (!panel || !query.spec.valid) return Decoration.none;
|
|
2616
2667
|
let {
|
|
2617
2668
|
view
|
|
@@ -2645,21 +2696,20 @@ selection to the first match after the current main selection.
|
|
|
2645
2696
|
Will wrap around to the start of the document when it reaches the
|
|
2646
2697
|
end.
|
|
2647
2698
|
*/
|
|
2648
|
-
const findNext = /*@__PURE__*/searchCommand((view, {
|
|
2649
|
-
|
|
2650
|
-
|
|
2699
|
+
const findNext = /*@__PURE__*/searchCommand((view, _ref4) => {
|
|
2700
|
+
let {
|
|
2701
|
+
query
|
|
2702
|
+
} = _ref4;
|
|
2651
2703
|
let {
|
|
2652
2704
|
to
|
|
2653
2705
|
} = view.state.selection.main;
|
|
2654
2706
|
let next = query.nextMatch(view.state, to, to);
|
|
2655
2707
|
if (!next) return false;
|
|
2708
|
+
let selection = EditorSelection.single(next.from, next.to);
|
|
2709
|
+
let config = view.state.facet(searchConfigFacet);
|
|
2656
2710
|
view.dispatch({
|
|
2657
|
-
selection
|
|
2658
|
-
|
|
2659
|
-
head: next.to
|
|
2660
|
-
},
|
|
2661
|
-
scrollIntoView: true,
|
|
2662
|
-
effects: announceMatch(view, next),
|
|
2711
|
+
selection,
|
|
2712
|
+
effects: [announceMatch(view, next), config.scrollToMatch(selection.main)],
|
|
2663
2713
|
userEvent: "select.search"
|
|
2664
2714
|
});
|
|
2665
2715
|
return true;
|
|
@@ -2669,24 +2719,23 @@ Move the selection to the previous instance of the search query,
|
|
|
2669
2719
|
before the current main selection. Will wrap past the start
|
|
2670
2720
|
of the document to start searching at the end again.
|
|
2671
2721
|
*/
|
|
2672
|
-
const findPrevious = /*@__PURE__*/searchCommand((view, {
|
|
2673
|
-
|
|
2674
|
-
|
|
2722
|
+
const findPrevious = /*@__PURE__*/searchCommand((view, _ref5) => {
|
|
2723
|
+
let {
|
|
2724
|
+
query
|
|
2725
|
+
} = _ref5;
|
|
2675
2726
|
let {
|
|
2676
2727
|
state
|
|
2677
2728
|
} = view,
|
|
2678
2729
|
{
|
|
2679
2730
|
from
|
|
2680
2731
|
} = state.selection.main;
|
|
2681
|
-
let
|
|
2682
|
-
if (!
|
|
2732
|
+
let prev = query.prevMatch(state, from, from);
|
|
2733
|
+
if (!prev) return false;
|
|
2734
|
+
let selection = EditorSelection.single(prev.from, prev.to);
|
|
2735
|
+
let config = view.state.facet(searchConfigFacet);
|
|
2683
2736
|
view.dispatch({
|
|
2684
|
-
selection
|
|
2685
|
-
|
|
2686
|
-
head: range.to
|
|
2687
|
-
},
|
|
2688
|
-
scrollIntoView: true,
|
|
2689
|
-
effects: announceMatch(view, range),
|
|
2737
|
+
selection,
|
|
2738
|
+
effects: [announceMatch(view, prev), config.scrollToMatch(selection.main)],
|
|
2690
2739
|
userEvent: "select.search"
|
|
2691
2740
|
});
|
|
2692
2741
|
return true;
|
|
@@ -2694,9 +2743,10 @@ const findPrevious = /*@__PURE__*/searchCommand((view, {
|
|
|
2694
2743
|
/**
|
|
2695
2744
|
Select all instances of the search query.
|
|
2696
2745
|
*/
|
|
2697
|
-
const selectMatches = /*@__PURE__*/searchCommand((view, {
|
|
2698
|
-
|
|
2699
|
-
|
|
2746
|
+
const selectMatches = /*@__PURE__*/searchCommand((view, _ref6) => {
|
|
2747
|
+
let {
|
|
2748
|
+
query
|
|
2749
|
+
} = _ref6;
|
|
2700
2750
|
let ranges = query.matchAll(view.state, 1000);
|
|
2701
2751
|
if (!ranges || !ranges.length) return false;
|
|
2702
2752
|
view.dispatch({
|
|
@@ -2708,10 +2758,11 @@ const selectMatches = /*@__PURE__*/searchCommand((view, {
|
|
|
2708
2758
|
/**
|
|
2709
2759
|
Select all instances of the currently selected text.
|
|
2710
2760
|
*/
|
|
2711
|
-
const selectSelectionMatches =
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2761
|
+
const selectSelectionMatches = _ref7 => {
|
|
2762
|
+
let {
|
|
2763
|
+
state,
|
|
2764
|
+
dispatch
|
|
2765
|
+
} = _ref7;
|
|
2715
2766
|
let sel = state.selection;
|
|
2716
2767
|
if (sel.ranges.length > 1 || sel.main.empty) return false;
|
|
2717
2768
|
let {
|
|
@@ -2734,9 +2785,10 @@ const selectSelectionMatches = ({
|
|
|
2734
2785
|
/**
|
|
2735
2786
|
Replace the current match of the search query.
|
|
2736
2787
|
*/
|
|
2737
|
-
const replaceNext = /*@__PURE__*/searchCommand((view, {
|
|
2738
|
-
|
|
2739
|
-
|
|
2788
|
+
const replaceNext = /*@__PURE__*/searchCommand((view, _ref8) => {
|
|
2789
|
+
let {
|
|
2790
|
+
query
|
|
2791
|
+
} = _ref8;
|
|
2740
2792
|
let {
|
|
2741
2793
|
state
|
|
2742
2794
|
} = view,
|
|
@@ -2750,7 +2802,7 @@ const replaceNext = /*@__PURE__*/searchCommand((view, {
|
|
|
2750
2802
|
let changes = [],
|
|
2751
2803
|
selection,
|
|
2752
2804
|
replacement;
|
|
2753
|
-
let
|
|
2805
|
+
let effects = [];
|
|
2754
2806
|
if (next.from == from && next.to == to) {
|
|
2755
2807
|
replacement = state.toText(query.getReplacement(next));
|
|
2756
2808
|
changes.push({
|
|
@@ -2759,21 +2811,18 @@ const replaceNext = /*@__PURE__*/searchCommand((view, {
|
|
|
2759
2811
|
insert: replacement
|
|
2760
2812
|
});
|
|
2761
2813
|
next = query.nextMatch(state, next.from, next.to);
|
|
2762
|
-
|
|
2814
|
+
effects.push(EditorView.announce.of(state.phrase("replaced match on line $", state.doc.lineAt(from).number) + "."));
|
|
2763
2815
|
}
|
|
2764
2816
|
if (next) {
|
|
2765
2817
|
let off = changes.length == 0 || changes[0].from >= next.to ? 0 : next.to - next.from - replacement.length;
|
|
2766
|
-
selection =
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
};
|
|
2770
|
-
announce.push(announceMatch(view, next));
|
|
2818
|
+
selection = EditorSelection.single(next.from - off, next.to - off);
|
|
2819
|
+
effects.push(announceMatch(view, next));
|
|
2820
|
+
effects.push(state.facet(searchConfigFacet).scrollToMatch(selection.main));
|
|
2771
2821
|
}
|
|
2772
2822
|
view.dispatch({
|
|
2773
2823
|
changes,
|
|
2774
2824
|
selection,
|
|
2775
|
-
|
|
2776
|
-
effects: announce,
|
|
2825
|
+
effects,
|
|
2777
2826
|
userEvent: "input.replace"
|
|
2778
2827
|
});
|
|
2779
2828
|
return true;
|
|
@@ -2782,9 +2831,10 @@ const replaceNext = /*@__PURE__*/searchCommand((view, {
|
|
|
2782
2831
|
Replace all instances of the search query with the given
|
|
2783
2832
|
replacement.
|
|
2784
2833
|
*/
|
|
2785
|
-
const replaceAll = /*@__PURE__*/searchCommand((view, {
|
|
2786
|
-
|
|
2787
|
-
|
|
2834
|
+
const replaceAll = /*@__PURE__*/searchCommand((view, _ref9) => {
|
|
2835
|
+
let {
|
|
2836
|
+
query
|
|
2837
|
+
} = _ref9;
|
|
2788
2838
|
if (view.state.readOnly) return false;
|
|
2789
2839
|
let changes = query.matchAll(view.state, 1e9).map(match => {
|
|
2790
2840
|
let {
|
|
@@ -3018,10 +3068,11 @@ function phrase(view, phrase) {
|
|
|
3018
3068
|
}
|
|
3019
3069
|
const AnnounceMargin = 30;
|
|
3020
3070
|
const Break = /[\s\.,:;?!]/;
|
|
3021
|
-
function announceMatch(view, {
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3071
|
+
function announceMatch(view, _ref10) {
|
|
3072
|
+
let {
|
|
3073
|
+
from,
|
|
3074
|
+
to
|
|
3075
|
+
} = _ref10;
|
|
3025
3076
|
let line = view.state.doc.lineAt(from),
|
|
3026
3077
|
lineEnd = view.state.doc.lineAt(to).to;
|
|
3027
3078
|
let start = Math.max(line.from, from - AnnounceMargin),
|
|
@@ -3114,11 +3165,14 @@ class LintState {
|
|
|
3114
3165
|
return new LintState(ranges, panel, findDiagnostic(ranges));
|
|
3115
3166
|
}
|
|
3116
3167
|
}
|
|
3117
|
-
function findDiagnostic(diagnostics
|
|
3168
|
+
function findDiagnostic(diagnostics) {
|
|
3169
|
+
let diagnostic = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
3170
|
+
let after = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
3118
3171
|
let found = null;
|
|
3119
|
-
diagnostics.between(after, 1e9, (from, to, {
|
|
3120
|
-
|
|
3121
|
-
|
|
3172
|
+
diagnostics.between(after, 1e9, (from, to, _ref) => {
|
|
3173
|
+
let {
|
|
3174
|
+
spec
|
|
3175
|
+
} = _ref;
|
|
3122
3176
|
if (diagnostic && spec.diagnostic != diagnostic) return;
|
|
3123
3177
|
found = new SelectedDiagnostic(from, to, spec.diagnostic);
|
|
3124
3178
|
return false;
|
|
@@ -3193,9 +3247,10 @@ function lintTooltip(view, pos, side) {
|
|
|
3193
3247
|
let found = [],
|
|
3194
3248
|
stackStart = 2e8,
|
|
3195
3249
|
stackEnd = 0;
|
|
3196
|
-
diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, {
|
|
3197
|
-
|
|
3198
|
-
|
|
3250
|
+
diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, _ref2) => {
|
|
3251
|
+
let {
|
|
3252
|
+
spec
|
|
3253
|
+
} = _ref2;
|
|
3199
3254
|
if (pos >= from && pos <= to && (from == to || (pos > from || side > 0) && (pos < to || side < 0))) {
|
|
3200
3255
|
found.push(spec.diagnostic);
|
|
3201
3256
|
stackStart = Math.min(from, stackStart);
|
|
@@ -3313,7 +3368,7 @@ const lintPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {
|
|
|
3313
3368
|
}
|
|
3314
3369
|
update(update) {
|
|
3315
3370
|
let config = update.state.facet(lintConfig);
|
|
3316
|
-
if (update.docChanged || config != update.startState.facet(lintConfig)) {
|
|
3371
|
+
if (update.docChanged || config != update.startState.facet(lintConfig) || config.needsRefresh && config.needsRefresh(update)) {
|
|
3317
3372
|
this.lintTime = Date.now() + config.delay;
|
|
3318
3373
|
if (!this.set) {
|
|
3319
3374
|
this.set = true;
|
|
@@ -3338,7 +3393,10 @@ const lintConfig = /*@__PURE__*/Facet.define({
|
|
|
3338
3393
|
}, combineConfig(input.map(i => i.config), {
|
|
3339
3394
|
delay: 750,
|
|
3340
3395
|
markerFilter: null,
|
|
3341
|
-
tooltipFilter: null
|
|
3396
|
+
tooltipFilter: null,
|
|
3397
|
+
needsRefresh: null
|
|
3398
|
+
}, {
|
|
3399
|
+
needsRefresh: (a, b) => !a ? b : !b ? a : u => a(u) || b(u)
|
|
3342
3400
|
}));
|
|
3343
3401
|
},
|
|
3344
3402
|
enables: lintPlugin
|
|
@@ -3367,11 +3425,14 @@ function renderDiagnostic(view, diagnostic, inPanel) {
|
|
|
3367
3425
|
}, crelt("span", {
|
|
3368
3426
|
class: "cm-diagnosticText"
|
|
3369
3427
|
}, diagnostic.renderMessage ? diagnostic.renderMessage() : diagnostic.message), (_a = diagnostic.actions) === null || _a === void 0 ? void 0 : _a.map((action, i) => {
|
|
3370
|
-
let
|
|
3371
|
-
e
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3428
|
+
let fired = false,
|
|
3429
|
+
click = e => {
|
|
3430
|
+
e.preventDefault();
|
|
3431
|
+
if (fired) return;
|
|
3432
|
+
fired = true;
|
|
3433
|
+
let found = findDiagnostic(view.state.field(lintState).diagnostics, diagnostic);
|
|
3434
|
+
if (found) action.apply(view, found.from, found.to);
|
|
3435
|
+
};
|
|
3375
3436
|
let {
|
|
3376
3437
|
name
|
|
3377
3438
|
} = action,
|
|
@@ -3486,9 +3547,10 @@ class LintPanel {
|
|
|
3486
3547
|
let i = 0,
|
|
3487
3548
|
needsSync = false,
|
|
3488
3549
|
newSelectedItem = null;
|
|
3489
|
-
diagnostics.between(0, this.view.state.doc.length, (_start, _end, {
|
|
3490
|
-
|
|
3491
|
-
|
|
3550
|
+
diagnostics.between(0, this.view.state.doc.length, (_start, _end, _ref3) => {
|
|
3551
|
+
let {
|
|
3552
|
+
spec
|
|
3553
|
+
} = _ref3;
|
|
3492
3554
|
let found = -1,
|
|
3493
3555
|
item;
|
|
3494
3556
|
for (let j = i; j < this.items.length; j++) if (this.items[j].diagnostic == spec.diagnostic) {
|
|
@@ -3537,10 +3599,11 @@ class LintPanel {
|
|
|
3537
3599
|
sel: newSelectedItem.dom.getBoundingClientRect(),
|
|
3538
3600
|
panel: this.list.getBoundingClientRect()
|
|
3539
3601
|
}),
|
|
3540
|
-
write:
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3602
|
+
write: _ref4 => {
|
|
3603
|
+
let {
|
|
3604
|
+
sel,
|
|
3605
|
+
panel
|
|
3606
|
+
} = _ref4;
|
|
3544
3607
|
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;
|
|
3545
3608
|
}
|
|
3546
3609
|
});
|
|
@@ -3584,7 +3647,8 @@ class LintPanel {
|
|
|
3584
3647
|
return new LintPanel(view);
|
|
3585
3648
|
}
|
|
3586
3649
|
}
|
|
3587
|
-
function svg(content
|
|
3650
|
+
function svg(content) {
|
|
3651
|
+
let attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : `viewBox="0 0 40 40"`;
|
|
3588
3652
|
return `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${attrs}>${encodeURIComponent(content)}</svg>')`;
|
|
3589
3653
|
}
|
|
3590
3654
|
function underline(color) {
|
|
@@ -3613,7 +3677,8 @@ const baseTheme = /*@__PURE__*/EditorView.baseTheme({
|
|
|
3613
3677
|
backgroundColor: "#444",
|
|
3614
3678
|
color: "white",
|
|
3615
3679
|
borderRadius: "3px",
|
|
3616
|
-
marginLeft: "8px"
|
|
3680
|
+
marginLeft: "8px",
|
|
3681
|
+
cursor: "pointer"
|
|
3617
3682
|
},
|
|
3618
3683
|
".cm-diagnosticSource": {
|
|
3619
3684
|
fontSize: "70%",
|
|
@@ -3821,9 +3886,10 @@ var script = defineComponent({
|
|
|
3821
3886
|
}
|
|
3822
3887
|
},
|
|
3823
3888
|
emits: ['update:modelValue', 'focus', 'blur'],
|
|
3824
|
-
setup(props, {
|
|
3825
|
-
|
|
3826
|
-
|
|
3889
|
+
setup(props, _ref) {
|
|
3890
|
+
let {
|
|
3891
|
+
emit
|
|
3892
|
+
} = _ref;
|
|
3827
3893
|
// editor config
|
|
3828
3894
|
const root = ref();
|
|
3829
3895
|
const target = ref();
|