@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 __vue_component__$3 from '../OrTeleport/OrTeleport.js';
|
|
@@ -43,10 +43,11 @@ const toggleComment = target => {
|
|
|
43
43
|
return config.line ? toggleLineComment(target) : config.block ? toggleBlockCommentByLine(target) : false;
|
|
44
44
|
};
|
|
45
45
|
function command(f, option) {
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
return _ref => {
|
|
47
|
+
let {
|
|
48
|
+
state,
|
|
49
|
+
dispatch
|
|
50
|
+
} = _ref;
|
|
50
51
|
if (state.readOnly) return false;
|
|
51
52
|
let tr = f(option, state);
|
|
52
53
|
if (!tr) return false;
|
|
@@ -82,10 +83,11 @@ const SearchMargin = 50;
|
|
|
82
83
|
Determines if the given range is block-commented in the given
|
|
83
84
|
state.
|
|
84
85
|
*/
|
|
85
|
-
function findBlockComment(state, {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
function findBlockComment(state, _ref2, from, to) {
|
|
87
|
+
let {
|
|
88
|
+
open,
|
|
89
|
+
close
|
|
90
|
+
} = _ref2;
|
|
89
91
|
let textBefore = state.sliceDoc(from - SearchMargin, from);
|
|
90
92
|
let textAfter = state.sliceDoc(to, to + SearchMargin);
|
|
91
93
|
let spaceBefore = /\s*$/.exec(textBefore)[0].length,
|
|
@@ -142,7 +144,8 @@ function selectedLineRanges(state) {
|
|
|
142
144
|
}
|
|
143
145
|
// Performs toggle, comment and uncomment of block comments in
|
|
144
146
|
// languages that support them.
|
|
145
|
-
function changeBlockComment(option, state
|
|
147
|
+
function changeBlockComment(option, state) {
|
|
148
|
+
let ranges = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : state.selection.ranges;
|
|
146
149
|
let tokens = ranges.map(r => getConfig(state, r.from).block);
|
|
147
150
|
if (!tokens.every(c => c)) return null;
|
|
148
151
|
let comments = ranges.map((r, i) => findBlockComment(state, tokens[i], r.from, r.to));
|
|
@@ -182,7 +185,8 @@ function changeBlockComment(option, state, ranges = state.selection.ranges) {
|
|
|
182
185
|
return null;
|
|
183
186
|
}
|
|
184
187
|
// Performs toggle, comment and uncomment of line comments.
|
|
185
|
-
function changeLineComment(option, state
|
|
188
|
+
function changeLineComment(option, state) {
|
|
189
|
+
let ranges = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : state.selection.ranges;
|
|
186
190
|
let lines = [];
|
|
187
191
|
let prevLine = -1;
|
|
188
192
|
for (let {
|
|
@@ -326,7 +330,8 @@ const historyField_ = /*@__PURE__*/StateField.define({
|
|
|
326
330
|
/**
|
|
327
331
|
Create a history extension with the given configuration.
|
|
328
332
|
*/
|
|
329
|
-
function history(
|
|
333
|
+
function history() {
|
|
334
|
+
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
330
335
|
return [historyField_, historyConfig.of(config), EditorView.domEventHandlers({
|
|
331
336
|
beforeinput(e, view) {
|
|
332
337
|
let command = e.inputType == "historyUndo" ? undo : e.inputType == "historyRedo" ? redo : null;
|
|
@@ -337,10 +342,11 @@ function history(config = {}) {
|
|
|
337
342
|
})];
|
|
338
343
|
}
|
|
339
344
|
function cmd(side, selection) {
|
|
340
|
-
return function ({
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
345
|
+
return function (_ref3) {
|
|
346
|
+
let {
|
|
347
|
+
state,
|
|
348
|
+
dispatch
|
|
349
|
+
} = _ref3;
|
|
344
350
|
if (!selection && state.readOnly) return false;
|
|
345
351
|
let historyState = state.field(historyField_, false);
|
|
346
352
|
if (!historyState) return false;
|
|
@@ -504,7 +510,9 @@ function mapEvent(event, mapping, extraSelections) {
|
|
|
504
510
|
}
|
|
505
511
|
const joinableUserEvent = /^(input\.type|delete)($|\.)/;
|
|
506
512
|
class HistoryState {
|
|
507
|
-
constructor(done, undone
|
|
513
|
+
constructor(done, undone) {
|
|
514
|
+
let prevTime = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
515
|
+
let prevUserEvent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
|
|
508
516
|
this.done = done;
|
|
509
517
|
this.undone = undone;
|
|
510
518
|
this.prevTime = prevTime;
|
|
@@ -609,10 +617,11 @@ function setSel(state, selection) {
|
|
|
609
617
|
userEvent: "select"
|
|
610
618
|
});
|
|
611
619
|
}
|
|
612
|
-
function moveSel({
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
620
|
+
function moveSel(_ref4, how) {
|
|
621
|
+
let {
|
|
622
|
+
state,
|
|
623
|
+
dispatch
|
|
624
|
+
} = _ref4;
|
|
616
625
|
let selection = updateSel(state.selection, how);
|
|
617
626
|
if (selection.eq(state.selection)) return false;
|
|
618
627
|
dispatch(setSel(state, selection));
|
|
@@ -802,10 +811,13 @@ function toMatchingBracket(state, dispatch, extend) {
|
|
|
802
811
|
Move the selection to the bracket matching the one it is currently
|
|
803
812
|
on, if any.
|
|
804
813
|
*/
|
|
805
|
-
const cursorMatchingBracket =
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
814
|
+
const cursorMatchingBracket = _ref5 => {
|
|
815
|
+
let {
|
|
816
|
+
state,
|
|
817
|
+
dispatch
|
|
818
|
+
} = _ref5;
|
|
819
|
+
return toMatchingBracket(state, dispatch, false);
|
|
820
|
+
};
|
|
809
821
|
function extendSel(view, how) {
|
|
810
822
|
let selection = updateSel(view.state.selection, range => {
|
|
811
823
|
let head = how(range);
|
|
@@ -896,10 +908,11 @@ const selectLineEnd = view => extendSel(view, range => EditorSelection.cursor(vi
|
|
|
896
908
|
/**
|
|
897
909
|
Move the selection to the start of the document.
|
|
898
910
|
*/
|
|
899
|
-
const cursorDocStart =
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
911
|
+
const cursorDocStart = _ref7 => {
|
|
912
|
+
let {
|
|
913
|
+
state,
|
|
914
|
+
dispatch
|
|
915
|
+
} = _ref7;
|
|
903
916
|
dispatch(setSel(state, {
|
|
904
917
|
anchor: 0
|
|
905
918
|
}));
|
|
@@ -908,10 +921,11 @@ const cursorDocStart = ({
|
|
|
908
921
|
/**
|
|
909
922
|
Move the selection to the end of the document.
|
|
910
923
|
*/
|
|
911
|
-
const cursorDocEnd =
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
924
|
+
const cursorDocEnd = _ref8 => {
|
|
925
|
+
let {
|
|
926
|
+
state,
|
|
927
|
+
dispatch
|
|
928
|
+
} = _ref8;
|
|
915
929
|
dispatch(setSel(state, {
|
|
916
930
|
anchor: state.doc.length
|
|
917
931
|
}));
|
|
@@ -920,10 +934,11 @@ const cursorDocEnd = ({
|
|
|
920
934
|
/**
|
|
921
935
|
Move the selection head to the start of the document.
|
|
922
936
|
*/
|
|
923
|
-
const selectDocStart =
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
937
|
+
const selectDocStart = _ref9 => {
|
|
938
|
+
let {
|
|
939
|
+
state,
|
|
940
|
+
dispatch
|
|
941
|
+
} = _ref9;
|
|
927
942
|
dispatch(setSel(state, {
|
|
928
943
|
anchor: state.selection.main.anchor,
|
|
929
944
|
head: 0
|
|
@@ -933,10 +948,11 @@ const selectDocStart = ({
|
|
|
933
948
|
/**
|
|
934
949
|
Move the selection head to the end of the document.
|
|
935
950
|
*/
|
|
936
|
-
const selectDocEnd =
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
951
|
+
const selectDocEnd = _ref10 => {
|
|
952
|
+
let {
|
|
953
|
+
state,
|
|
954
|
+
dispatch
|
|
955
|
+
} = _ref10;
|
|
940
956
|
dispatch(setSel(state, {
|
|
941
957
|
anchor: state.selection.main.anchor,
|
|
942
958
|
head: state.doc.length
|
|
@@ -946,10 +962,11 @@ const selectDocEnd = ({
|
|
|
946
962
|
/**
|
|
947
963
|
Select the entire document.
|
|
948
964
|
*/
|
|
949
|
-
const selectAll =
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
965
|
+
const selectAll = _ref11 => {
|
|
966
|
+
let {
|
|
967
|
+
state,
|
|
968
|
+
dispatch
|
|
969
|
+
} = _ref11;
|
|
953
970
|
dispatch(state.update({
|
|
954
971
|
selection: {
|
|
955
972
|
anchor: 0,
|
|
@@ -962,14 +979,18 @@ const selectAll = ({
|
|
|
962
979
|
/**
|
|
963
980
|
Expand the selection to cover entire lines.
|
|
964
981
|
*/
|
|
965
|
-
const selectLine =
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
982
|
+
const selectLine = _ref12 => {
|
|
983
|
+
let {
|
|
984
|
+
state,
|
|
985
|
+
dispatch
|
|
986
|
+
} = _ref12;
|
|
987
|
+
let ranges = selectedLineBlocks(state).map(_ref13 => {
|
|
988
|
+
let {
|
|
989
|
+
from,
|
|
990
|
+
to
|
|
991
|
+
} = _ref13;
|
|
992
|
+
return EditorSelection.range(from, Math.min(to + 1, state.doc.length));
|
|
993
|
+
});
|
|
973
994
|
dispatch(state.update({
|
|
974
995
|
selection: EditorSelection.create(ranges),
|
|
975
996
|
userEvent: "select"
|
|
@@ -982,10 +1003,11 @@ selection. Note that this will only work insofar as the language
|
|
|
982
1003
|
[provider](https://codemirror.net/6/docs/ref/#language.language) you use builds up a full
|
|
983
1004
|
syntax tree.
|
|
984
1005
|
*/
|
|
985
|
-
const selectParentSyntax =
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
1006
|
+
const selectParentSyntax = _ref14 => {
|
|
1007
|
+
let {
|
|
1008
|
+
state,
|
|
1009
|
+
dispatch
|
|
1010
|
+
} = _ref14;
|
|
989
1011
|
let selection = updateSel(state.selection, range => {
|
|
990
1012
|
var _a;
|
|
991
1013
|
let context = syntaxTree(state).resolveInner(range.head, 1);
|
|
@@ -1000,10 +1022,11 @@ Simplify the current selection. When multiple ranges are selected,
|
|
|
1000
1022
|
reduce it to its main range. Otherwise, if the selection is
|
|
1001
1023
|
non-empty, convert it to a cursor selection.
|
|
1002
1024
|
*/
|
|
1003
|
-
const simplifySelection =
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1025
|
+
const simplifySelection = _ref15 => {
|
|
1026
|
+
let {
|
|
1027
|
+
state,
|
|
1028
|
+
dispatch
|
|
1029
|
+
} = _ref15;
|
|
1007
1030
|
let cur = state.selection,
|
|
1008
1031
|
selection = null;
|
|
1009
1032
|
if (cur.ranges.length > 1) selection = EditorSelection.create([cur.main]);else if (!cur.main.empty) selection = EditorSelection.create([EditorSelection.cursor(cur.main.head)]);
|
|
@@ -1142,10 +1165,11 @@ const deleteToLineStart = view => deleteBy(view, pos => {
|
|
|
1142
1165
|
Replace each selection range with a line break, leaving the cursor
|
|
1143
1166
|
on the line before the break.
|
|
1144
1167
|
*/
|
|
1145
|
-
const splitLine =
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1168
|
+
const splitLine = _ref17 => {
|
|
1169
|
+
let {
|
|
1170
|
+
state,
|
|
1171
|
+
dispatch
|
|
1172
|
+
} = _ref17;
|
|
1149
1173
|
if (state.readOnly) return false;
|
|
1150
1174
|
let changes = state.changeByRange(range => {
|
|
1151
1175
|
return {
|
|
@@ -1166,10 +1190,11 @@ const splitLine = ({
|
|
|
1166
1190
|
/**
|
|
1167
1191
|
Flip the characters before and after the cursor(s).
|
|
1168
1192
|
*/
|
|
1169
|
-
const transposeChars =
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1193
|
+
const transposeChars = _ref18 => {
|
|
1194
|
+
let {
|
|
1195
|
+
state,
|
|
1196
|
+
dispatch
|
|
1197
|
+
} = _ref18;
|
|
1173
1198
|
if (state.readOnly) return false;
|
|
1174
1199
|
let changes = state.changeByRange(range => {
|
|
1175
1200
|
if (!range.empty || range.from == 0 || range.from == state.doc.length) return {
|
|
@@ -1257,17 +1282,23 @@ function moveLine(state, dispatch, forward) {
|
|
|
1257
1282
|
/**
|
|
1258
1283
|
Move the selected lines up one line.
|
|
1259
1284
|
*/
|
|
1260
|
-
const moveLineUp =
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1285
|
+
const moveLineUp = _ref19 => {
|
|
1286
|
+
let {
|
|
1287
|
+
state,
|
|
1288
|
+
dispatch
|
|
1289
|
+
} = _ref19;
|
|
1290
|
+
return moveLine(state, dispatch, false);
|
|
1291
|
+
};
|
|
1264
1292
|
/**
|
|
1265
1293
|
Move the selected lines down one line.
|
|
1266
1294
|
*/
|
|
1267
|
-
const moveLineDown =
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1295
|
+
const moveLineDown = _ref20 => {
|
|
1296
|
+
let {
|
|
1297
|
+
state,
|
|
1298
|
+
dispatch
|
|
1299
|
+
} = _ref20;
|
|
1300
|
+
return moveLine(state, dispatch, true);
|
|
1301
|
+
};
|
|
1271
1302
|
function copyLine(state, dispatch, forward) {
|
|
1272
1303
|
if (state.readOnly) return false;
|
|
1273
1304
|
let changes = [];
|
|
@@ -1290,17 +1321,23 @@ function copyLine(state, dispatch, forward) {
|
|
|
1290
1321
|
/**
|
|
1291
1322
|
Create a copy of the selected lines. Keep the selection in the top copy.
|
|
1292
1323
|
*/
|
|
1293
|
-
const copyLineUp =
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1324
|
+
const copyLineUp = _ref21 => {
|
|
1325
|
+
let {
|
|
1326
|
+
state,
|
|
1327
|
+
dispatch
|
|
1328
|
+
} = _ref21;
|
|
1329
|
+
return copyLine(state, dispatch, false);
|
|
1330
|
+
};
|
|
1297
1331
|
/**
|
|
1298
1332
|
Create a copy of the selected lines. Keep the selection in the bottom copy.
|
|
1299
1333
|
*/
|
|
1300
|
-
const copyLineDown =
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1334
|
+
const copyLineDown = _ref22 => {
|
|
1335
|
+
let {
|
|
1336
|
+
state,
|
|
1337
|
+
dispatch
|
|
1338
|
+
} = _ref22;
|
|
1339
|
+
return copyLine(state, dispatch, true);
|
|
1340
|
+
};
|
|
1304
1341
|
/**
|
|
1305
1342
|
Delete selected lines.
|
|
1306
1343
|
*/
|
|
@@ -1309,10 +1346,11 @@ const deleteLine = view => {
|
|
|
1309
1346
|
let {
|
|
1310
1347
|
state
|
|
1311
1348
|
} = view,
|
|
1312
|
-
changes = state.changes(selectedLineBlocks(state).map(
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1349
|
+
changes = state.changes(selectedLineBlocks(state).map(_ref23 => {
|
|
1350
|
+
let {
|
|
1351
|
+
from,
|
|
1352
|
+
to
|
|
1353
|
+
} = _ref23;
|
|
1316
1354
|
if (from > 0) from--;else if (to < state.doc.length) to++;
|
|
1317
1355
|
return {
|
|
1318
1356
|
from,
|
|
@@ -1356,10 +1394,11 @@ Create a blank, indented line below the current line.
|
|
|
1356
1394
|
*/
|
|
1357
1395
|
const insertBlankLine = /*@__PURE__*/newlineAndIndent(true);
|
|
1358
1396
|
function newlineAndIndent(atEof) {
|
|
1359
|
-
return
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1397
|
+
return _ref25 => {
|
|
1398
|
+
let {
|
|
1399
|
+
state,
|
|
1400
|
+
dispatch
|
|
1401
|
+
} = _ref25;
|
|
1363
1402
|
if (state.readOnly) return false;
|
|
1364
1403
|
let changes = state.changeByRange(range => {
|
|
1365
1404
|
let {
|
|
@@ -1422,10 +1461,11 @@ Auto-indent the selected lines. This uses the [indentation service
|
|
|
1422
1461
|
facet](https://codemirror.net/6/docs/ref/#language.indentService) as source for auto-indent
|
|
1423
1462
|
information.
|
|
1424
1463
|
*/
|
|
1425
|
-
const indentSelection =
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1464
|
+
const indentSelection = _ref26 => {
|
|
1465
|
+
let {
|
|
1466
|
+
state,
|
|
1467
|
+
dispatch
|
|
1468
|
+
} = _ref26;
|
|
1429
1469
|
if (state.readOnly) return false;
|
|
1430
1470
|
let updated = Object.create(null);
|
|
1431
1471
|
let context = new IndentContext(state, {
|
|
@@ -1458,10 +1498,11 @@ const indentSelection = ({
|
|
|
1458
1498
|
Add a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation to all selected
|
|
1459
1499
|
lines.
|
|
1460
1500
|
*/
|
|
1461
|
-
const indentMore =
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1501
|
+
const indentMore = _ref27 => {
|
|
1502
|
+
let {
|
|
1503
|
+
state,
|
|
1504
|
+
dispatch
|
|
1505
|
+
} = _ref27;
|
|
1465
1506
|
if (state.readOnly) return false;
|
|
1466
1507
|
dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
|
|
1467
1508
|
changes.push({
|
|
@@ -1477,10 +1518,11 @@ const indentMore = ({
|
|
|
1477
1518
|
Remove a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation from all
|
|
1478
1519
|
selected lines.
|
|
1479
1520
|
*/
|
|
1480
|
-
const indentLess =
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1521
|
+
const indentLess = _ref28 => {
|
|
1522
|
+
let {
|
|
1523
|
+
state,
|
|
1524
|
+
dispatch
|
|
1525
|
+
} = _ref28;
|
|
1484
1526
|
if (state.readOnly) return false;
|
|
1485
1527
|
dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
|
|
1486
1528
|
let space = /^\s*/.exec(line.text)[0];
|
|
@@ -1852,7 +1894,11 @@ class SearchCursor {
|
|
|
1852
1894
|
[`.normalize("NFKD")`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize)
|
|
1853
1895
|
(when supported).
|
|
1854
1896
|
*/
|
|
1855
|
-
constructor(text, query
|
|
1897
|
+
constructor(text, query) {
|
|
1898
|
+
let from = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
1899
|
+
let to = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : text.length;
|
|
1900
|
+
let normalize = arguments.length > 4 ? arguments[4] : undefined;
|
|
1901
|
+
let test = arguments.length > 5 ? arguments[5] : undefined;
|
|
1856
1902
|
this.test = test;
|
|
1857
1903
|
/**
|
|
1858
1904
|
The current match (only holds a meaningful value after
|
|
@@ -1974,7 +2020,9 @@ class RegExpCursor {
|
|
|
1974
2020
|
document. `query` should be the raw pattern (as you'd pass it to
|
|
1975
2021
|
`new RegExp`).
|
|
1976
2022
|
*/
|
|
1977
|
-
constructor(text, query, options
|
|
2023
|
+
constructor(text, query, options) {
|
|
2024
|
+
let from = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
2025
|
+
let to = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : text.length;
|
|
1978
2026
|
this.text = text;
|
|
1979
2027
|
this.to = to;
|
|
1980
2028
|
this.curLine = "";
|
|
@@ -2219,9 +2267,6 @@ Supports line numbers, relative line offsets prefixed with `+` or
|
|
|
2219
2267
|
`-`, document percentages suffixed with `%`, and an optional
|
|
2220
2268
|
column position by adding `:` and a second number after the line
|
|
2221
2269
|
number.
|
|
2222
|
-
|
|
2223
|
-
The dialog can be styled with the `panel.gotoLine` theme
|
|
2224
|
-
selector.
|
|
2225
2270
|
*/
|
|
2226
2271
|
const gotoLine = view => {
|
|
2227
2272
|
let panel = getPanel(view, createLineDialog);
|
|
@@ -2347,10 +2392,11 @@ const defaultTheme = /*@__PURE__*/EditorView.baseTheme({
|
|
|
2347
2392
|
}
|
|
2348
2393
|
});
|
|
2349
2394
|
// Select the words around the cursors.
|
|
2350
|
-
const selectWord =
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2395
|
+
const selectWord = _ref => {
|
|
2396
|
+
let {
|
|
2397
|
+
state,
|
|
2398
|
+
dispatch
|
|
2399
|
+
} = _ref;
|
|
2354
2400
|
let {
|
|
2355
2401
|
selection
|
|
2356
2402
|
} = state;
|
|
@@ -2390,10 +2436,11 @@ function findNextOccurrence(state, query) {
|
|
|
2390
2436
|
Select next occurrence of the current selection. Expand selection
|
|
2391
2437
|
to the surrounding word when the selection is empty.
|
|
2392
2438
|
*/
|
|
2393
|
-
const selectNextOccurrence =
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2439
|
+
const selectNextOccurrence = _ref2 => {
|
|
2440
|
+
let {
|
|
2441
|
+
state,
|
|
2442
|
+
dispatch
|
|
2443
|
+
} = _ref2;
|
|
2397
2444
|
let {
|
|
2398
2445
|
ranges
|
|
2399
2446
|
} = state.selection;
|
|
@@ -2418,7 +2465,8 @@ const searchConfigFacet = /*@__PURE__*/Facet.define({
|
|
|
2418
2465
|
caseSensitive: false,
|
|
2419
2466
|
literal: false,
|
|
2420
2467
|
wholeWord: false,
|
|
2421
|
-
createPanel: view => new SearchPanel(view)
|
|
2468
|
+
createPanel: view => new SearchPanel(view),
|
|
2469
|
+
scrollToMatch: range => EditorView.scrollIntoView(range)
|
|
2422
2470
|
});
|
|
2423
2471
|
}
|
|
2424
2472
|
});
|
|
@@ -2461,7 +2509,9 @@ class SearchQuery {
|
|
|
2461
2509
|
Get a search cursor for this query, searching through the given
|
|
2462
2510
|
range in the given state.
|
|
2463
2511
|
*/
|
|
2464
|
-
getCursor(state
|
|
2512
|
+
getCursor(state) {
|
|
2513
|
+
let from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
2514
|
+
let to = arguments.length > 2 ? arguments[2] : undefined;
|
|
2465
2515
|
let st = state.doc ? state : EditorState.create({
|
|
2466
2516
|
doc: state
|
|
2467
2517
|
});
|
|
@@ -2622,10 +2672,11 @@ const searchHighlighter = /*@__PURE__*/ViewPlugin.fromClass(class {
|
|
|
2622
2672
|
let state = update.state.field(searchState);
|
|
2623
2673
|
if (state != update.startState.field(searchState) || update.docChanged || update.selectionSet || update.viewportChanged) this.decorations = this.highlight(state);
|
|
2624
2674
|
}
|
|
2625
|
-
highlight({
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2675
|
+
highlight(_ref3) {
|
|
2676
|
+
let {
|
|
2677
|
+
query,
|
|
2678
|
+
panel
|
|
2679
|
+
} = _ref3;
|
|
2629
2680
|
if (!panel || !query.spec.valid) return Decoration.none;
|
|
2630
2681
|
let {
|
|
2631
2682
|
view
|
|
@@ -2659,21 +2710,20 @@ selection to the first match after the current main selection.
|
|
|
2659
2710
|
Will wrap around to the start of the document when it reaches the
|
|
2660
2711
|
end.
|
|
2661
2712
|
*/
|
|
2662
|
-
const findNext = /*@__PURE__*/searchCommand((view, {
|
|
2663
|
-
|
|
2664
|
-
|
|
2713
|
+
const findNext = /*@__PURE__*/searchCommand((view, _ref4) => {
|
|
2714
|
+
let {
|
|
2715
|
+
query
|
|
2716
|
+
} = _ref4;
|
|
2665
2717
|
let {
|
|
2666
2718
|
to
|
|
2667
2719
|
} = view.state.selection.main;
|
|
2668
2720
|
let next = query.nextMatch(view.state, to, to);
|
|
2669
2721
|
if (!next) return false;
|
|
2722
|
+
let selection = EditorSelection.single(next.from, next.to);
|
|
2723
|
+
let config = view.state.facet(searchConfigFacet);
|
|
2670
2724
|
view.dispatch({
|
|
2671
|
-
selection
|
|
2672
|
-
|
|
2673
|
-
head: next.to
|
|
2674
|
-
},
|
|
2675
|
-
scrollIntoView: true,
|
|
2676
|
-
effects: announceMatch(view, next),
|
|
2725
|
+
selection,
|
|
2726
|
+
effects: [announceMatch(view, next), config.scrollToMatch(selection.main)],
|
|
2677
2727
|
userEvent: "select.search"
|
|
2678
2728
|
});
|
|
2679
2729
|
return true;
|
|
@@ -2683,24 +2733,23 @@ Move the selection to the previous instance of the search query,
|
|
|
2683
2733
|
before the current main selection. Will wrap past the start
|
|
2684
2734
|
of the document to start searching at the end again.
|
|
2685
2735
|
*/
|
|
2686
|
-
const findPrevious = /*@__PURE__*/searchCommand((view, {
|
|
2687
|
-
|
|
2688
|
-
|
|
2736
|
+
const findPrevious = /*@__PURE__*/searchCommand((view, _ref5) => {
|
|
2737
|
+
let {
|
|
2738
|
+
query
|
|
2739
|
+
} = _ref5;
|
|
2689
2740
|
let {
|
|
2690
2741
|
state
|
|
2691
2742
|
} = view,
|
|
2692
2743
|
{
|
|
2693
2744
|
from
|
|
2694
2745
|
} = state.selection.main;
|
|
2695
|
-
let
|
|
2696
|
-
if (!
|
|
2746
|
+
let prev = query.prevMatch(state, from, from);
|
|
2747
|
+
if (!prev) return false;
|
|
2748
|
+
let selection = EditorSelection.single(prev.from, prev.to);
|
|
2749
|
+
let config = view.state.facet(searchConfigFacet);
|
|
2697
2750
|
view.dispatch({
|
|
2698
|
-
selection
|
|
2699
|
-
|
|
2700
|
-
head: range.to
|
|
2701
|
-
},
|
|
2702
|
-
scrollIntoView: true,
|
|
2703
|
-
effects: announceMatch(view, range),
|
|
2751
|
+
selection,
|
|
2752
|
+
effects: [announceMatch(view, prev), config.scrollToMatch(selection.main)],
|
|
2704
2753
|
userEvent: "select.search"
|
|
2705
2754
|
});
|
|
2706
2755
|
return true;
|
|
@@ -2708,9 +2757,10 @@ const findPrevious = /*@__PURE__*/searchCommand((view, {
|
|
|
2708
2757
|
/**
|
|
2709
2758
|
Select all instances of the search query.
|
|
2710
2759
|
*/
|
|
2711
|
-
const selectMatches = /*@__PURE__*/searchCommand((view, {
|
|
2712
|
-
|
|
2713
|
-
|
|
2760
|
+
const selectMatches = /*@__PURE__*/searchCommand((view, _ref6) => {
|
|
2761
|
+
let {
|
|
2762
|
+
query
|
|
2763
|
+
} = _ref6;
|
|
2714
2764
|
let ranges = query.matchAll(view.state, 1000);
|
|
2715
2765
|
if (!ranges || !ranges.length) return false;
|
|
2716
2766
|
view.dispatch({
|
|
@@ -2722,10 +2772,11 @@ const selectMatches = /*@__PURE__*/searchCommand((view, {
|
|
|
2722
2772
|
/**
|
|
2723
2773
|
Select all instances of the currently selected text.
|
|
2724
2774
|
*/
|
|
2725
|
-
const selectSelectionMatches =
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2775
|
+
const selectSelectionMatches = _ref7 => {
|
|
2776
|
+
let {
|
|
2777
|
+
state,
|
|
2778
|
+
dispatch
|
|
2779
|
+
} = _ref7;
|
|
2729
2780
|
let sel = state.selection;
|
|
2730
2781
|
if (sel.ranges.length > 1 || sel.main.empty) return false;
|
|
2731
2782
|
let {
|
|
@@ -2748,9 +2799,10 @@ const selectSelectionMatches = ({
|
|
|
2748
2799
|
/**
|
|
2749
2800
|
Replace the current match of the search query.
|
|
2750
2801
|
*/
|
|
2751
|
-
const replaceNext = /*@__PURE__*/searchCommand((view, {
|
|
2752
|
-
|
|
2753
|
-
|
|
2802
|
+
const replaceNext = /*@__PURE__*/searchCommand((view, _ref8) => {
|
|
2803
|
+
let {
|
|
2804
|
+
query
|
|
2805
|
+
} = _ref8;
|
|
2754
2806
|
let {
|
|
2755
2807
|
state
|
|
2756
2808
|
} = view,
|
|
@@ -2764,7 +2816,7 @@ const replaceNext = /*@__PURE__*/searchCommand((view, {
|
|
|
2764
2816
|
let changes = [],
|
|
2765
2817
|
selection,
|
|
2766
2818
|
replacement;
|
|
2767
|
-
let
|
|
2819
|
+
let effects = [];
|
|
2768
2820
|
if (next.from == from && next.to == to) {
|
|
2769
2821
|
replacement = state.toText(query.getReplacement(next));
|
|
2770
2822
|
changes.push({
|
|
@@ -2773,21 +2825,18 @@ const replaceNext = /*@__PURE__*/searchCommand((view, {
|
|
|
2773
2825
|
insert: replacement
|
|
2774
2826
|
});
|
|
2775
2827
|
next = query.nextMatch(state, next.from, next.to);
|
|
2776
|
-
|
|
2828
|
+
effects.push(EditorView.announce.of(state.phrase("replaced match on line $", state.doc.lineAt(from).number) + "."));
|
|
2777
2829
|
}
|
|
2778
2830
|
if (next) {
|
|
2779
2831
|
let off = changes.length == 0 || changes[0].from >= next.to ? 0 : next.to - next.from - replacement.length;
|
|
2780
|
-
selection =
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
};
|
|
2784
|
-
announce.push(announceMatch(view, next));
|
|
2832
|
+
selection = EditorSelection.single(next.from - off, next.to - off);
|
|
2833
|
+
effects.push(announceMatch(view, next));
|
|
2834
|
+
effects.push(state.facet(searchConfigFacet).scrollToMatch(selection.main));
|
|
2785
2835
|
}
|
|
2786
2836
|
view.dispatch({
|
|
2787
2837
|
changes,
|
|
2788
2838
|
selection,
|
|
2789
|
-
|
|
2790
|
-
effects: announce,
|
|
2839
|
+
effects,
|
|
2791
2840
|
userEvent: "input.replace"
|
|
2792
2841
|
});
|
|
2793
2842
|
return true;
|
|
@@ -2796,9 +2845,10 @@ const replaceNext = /*@__PURE__*/searchCommand((view, {
|
|
|
2796
2845
|
Replace all instances of the search query with the given
|
|
2797
2846
|
replacement.
|
|
2798
2847
|
*/
|
|
2799
|
-
const replaceAll = /*@__PURE__*/searchCommand((view, {
|
|
2800
|
-
|
|
2801
|
-
|
|
2848
|
+
const replaceAll = /*@__PURE__*/searchCommand((view, _ref9) => {
|
|
2849
|
+
let {
|
|
2850
|
+
query
|
|
2851
|
+
} = _ref9;
|
|
2802
2852
|
if (view.state.readOnly) return false;
|
|
2803
2853
|
let changes = query.matchAll(view.state, 1e9).map(match => {
|
|
2804
2854
|
let {
|
|
@@ -3032,10 +3082,11 @@ function phrase(view, phrase) {
|
|
|
3032
3082
|
}
|
|
3033
3083
|
const AnnounceMargin = 30;
|
|
3034
3084
|
const Break = /[\s\.,:;?!]/;
|
|
3035
|
-
function announceMatch(view, {
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3085
|
+
function announceMatch(view, _ref10) {
|
|
3086
|
+
let {
|
|
3087
|
+
from,
|
|
3088
|
+
to
|
|
3089
|
+
} = _ref10;
|
|
3039
3090
|
let line = view.state.doc.lineAt(from),
|
|
3040
3091
|
lineEnd = view.state.doc.lineAt(to).to;
|
|
3041
3092
|
let start = Math.max(line.from, from - AnnounceMargin),
|
|
@@ -3128,11 +3179,14 @@ class LintState {
|
|
|
3128
3179
|
return new LintState(ranges, panel, findDiagnostic(ranges));
|
|
3129
3180
|
}
|
|
3130
3181
|
}
|
|
3131
|
-
function findDiagnostic(diagnostics
|
|
3182
|
+
function findDiagnostic(diagnostics) {
|
|
3183
|
+
let diagnostic = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
3184
|
+
let after = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
3132
3185
|
let found = null;
|
|
3133
|
-
diagnostics.between(after, 1e9, (from, to, {
|
|
3134
|
-
|
|
3135
|
-
|
|
3186
|
+
diagnostics.between(after, 1e9, (from, to, _ref) => {
|
|
3187
|
+
let {
|
|
3188
|
+
spec
|
|
3189
|
+
} = _ref;
|
|
3136
3190
|
if (diagnostic && spec.diagnostic != diagnostic) return;
|
|
3137
3191
|
found = new SelectedDiagnostic(from, to, spec.diagnostic);
|
|
3138
3192
|
return false;
|
|
@@ -3207,9 +3261,10 @@ function lintTooltip(view, pos, side) {
|
|
|
3207
3261
|
let found = [],
|
|
3208
3262
|
stackStart = 2e8,
|
|
3209
3263
|
stackEnd = 0;
|
|
3210
|
-
diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, {
|
|
3211
|
-
|
|
3212
|
-
|
|
3264
|
+
diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, _ref2) => {
|
|
3265
|
+
let {
|
|
3266
|
+
spec
|
|
3267
|
+
} = _ref2;
|
|
3213
3268
|
if (pos >= from && pos <= to && (from == to || (pos > from || side > 0) && (pos < to || side < 0))) {
|
|
3214
3269
|
found.push(spec.diagnostic);
|
|
3215
3270
|
stackStart = Math.min(from, stackStart);
|
|
@@ -3327,7 +3382,7 @@ const lintPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {
|
|
|
3327
3382
|
}
|
|
3328
3383
|
update(update) {
|
|
3329
3384
|
let config = update.state.facet(lintConfig);
|
|
3330
|
-
if (update.docChanged || config != update.startState.facet(lintConfig)) {
|
|
3385
|
+
if (update.docChanged || config != update.startState.facet(lintConfig) || config.needsRefresh && config.needsRefresh(update)) {
|
|
3331
3386
|
this.lintTime = Date.now() + config.delay;
|
|
3332
3387
|
if (!this.set) {
|
|
3333
3388
|
this.set = true;
|
|
@@ -3352,7 +3407,10 @@ const lintConfig = /*@__PURE__*/Facet.define({
|
|
|
3352
3407
|
}, combineConfig(input.map(i => i.config), {
|
|
3353
3408
|
delay: 750,
|
|
3354
3409
|
markerFilter: null,
|
|
3355
|
-
tooltipFilter: null
|
|
3410
|
+
tooltipFilter: null,
|
|
3411
|
+
needsRefresh: null
|
|
3412
|
+
}, {
|
|
3413
|
+
needsRefresh: (a, b) => !a ? b : !b ? a : u => a(u) || b(u)
|
|
3356
3414
|
}));
|
|
3357
3415
|
},
|
|
3358
3416
|
enables: lintPlugin
|
|
@@ -3381,11 +3439,14 @@ function renderDiagnostic(view, diagnostic, inPanel) {
|
|
|
3381
3439
|
}, crelt("span", {
|
|
3382
3440
|
class: "cm-diagnosticText"
|
|
3383
3441
|
}, diagnostic.renderMessage ? diagnostic.renderMessage() : diagnostic.message), (_a = diagnostic.actions) === null || _a === void 0 ? void 0 : _a.map((action, i) => {
|
|
3384
|
-
let
|
|
3385
|
-
e
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3442
|
+
let fired = false,
|
|
3443
|
+
click = e => {
|
|
3444
|
+
e.preventDefault();
|
|
3445
|
+
if (fired) return;
|
|
3446
|
+
fired = true;
|
|
3447
|
+
let found = findDiagnostic(view.state.field(lintState).diagnostics, diagnostic);
|
|
3448
|
+
if (found) action.apply(view, found.from, found.to);
|
|
3449
|
+
};
|
|
3389
3450
|
let {
|
|
3390
3451
|
name
|
|
3391
3452
|
} = action,
|
|
@@ -3500,9 +3561,10 @@ class LintPanel {
|
|
|
3500
3561
|
let i = 0,
|
|
3501
3562
|
needsSync = false,
|
|
3502
3563
|
newSelectedItem = null;
|
|
3503
|
-
diagnostics.between(0, this.view.state.doc.length, (_start, _end, {
|
|
3504
|
-
|
|
3505
|
-
|
|
3564
|
+
diagnostics.between(0, this.view.state.doc.length, (_start, _end, _ref3) => {
|
|
3565
|
+
let {
|
|
3566
|
+
spec
|
|
3567
|
+
} = _ref3;
|
|
3506
3568
|
let found = -1,
|
|
3507
3569
|
item;
|
|
3508
3570
|
for (let j = i; j < this.items.length; j++) if (this.items[j].diagnostic == spec.diagnostic) {
|
|
@@ -3551,10 +3613,11 @@ class LintPanel {
|
|
|
3551
3613
|
sel: newSelectedItem.dom.getBoundingClientRect(),
|
|
3552
3614
|
panel: this.list.getBoundingClientRect()
|
|
3553
3615
|
}),
|
|
3554
|
-
write:
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3616
|
+
write: _ref4 => {
|
|
3617
|
+
let {
|
|
3618
|
+
sel,
|
|
3619
|
+
panel
|
|
3620
|
+
} = _ref4;
|
|
3558
3621
|
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;
|
|
3559
3622
|
}
|
|
3560
3623
|
});
|
|
@@ -3598,7 +3661,8 @@ class LintPanel {
|
|
|
3598
3661
|
return new LintPanel(view);
|
|
3599
3662
|
}
|
|
3600
3663
|
}
|
|
3601
|
-
function svg(content
|
|
3664
|
+
function svg(content) {
|
|
3665
|
+
let attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : `viewBox="0 0 40 40"`;
|
|
3602
3666
|
return `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${attrs}>${encodeURIComponent(content)}</svg>')`;
|
|
3603
3667
|
}
|
|
3604
3668
|
function underline(color) {
|
|
@@ -3627,7 +3691,8 @@ const baseTheme = /*@__PURE__*/EditorView.baseTheme({
|
|
|
3627
3691
|
backgroundColor: "#444",
|
|
3628
3692
|
color: "white",
|
|
3629
3693
|
borderRadius: "3px",
|
|
3630
|
-
marginLeft: "8px"
|
|
3694
|
+
marginLeft: "8px",
|
|
3695
|
+
cursor: "pointer"
|
|
3631
3696
|
},
|
|
3632
3697
|
".cm-diagnosticSource": {
|
|
3633
3698
|
fontSize: "70%",
|
|
@@ -3835,9 +3900,10 @@ var script = defineComponent({
|
|
|
3835
3900
|
}
|
|
3836
3901
|
},
|
|
3837
3902
|
emits: ['update:modelValue', 'focus', 'blur'],
|
|
3838
|
-
setup(props, {
|
|
3839
|
-
|
|
3840
|
-
|
|
3903
|
+
setup(props, _ref) {
|
|
3904
|
+
let {
|
|
3905
|
+
emit
|
|
3906
|
+
} = _ref;
|
|
3841
3907
|
// editor config
|
|
3842
3908
|
const root = ref();
|
|
3843
3909
|
const target = ref();
|