@onereach/ui-components 4.3.3-beta.2627.0 → 4.3.3
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-11e7596d.js → OrDateTimePickerMonthSelect-e20fd8dc.js} +3 -4
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +4 -8
- 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 +3 -4
- package/dist/bundled/v2/components/OrCarousel/OrCarousel.js +1 -7
- package/dist/bundled/v2/components/OrCheckbox/OrCheckbox.js +3 -4
- package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.js +3 -4
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +3 -4
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +3 -4
- package/dist/bundled/v2/components/OrCode/OrCode.js +197 -263
- 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 +4 -6
- package/dist/bundled/v2/components/OrColorPicker/utils/defultPalette.js +1 -2
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +4 -5
- package/dist/bundled/v2/components/OrConfirm/index.js +1 -1
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +4 -5
- 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 +4 -5
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +3 -4
- package/dist/bundled/v2/components/OrList/OrList.js +4 -5
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +5 -11
- package/dist/bundled/v2/components/OrModal/OrModal.js +20 -101
- package/dist/bundled/v2/components/OrNumberInput/OrNumberInput.js +3 -4
- package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +3 -4
- package/dist/bundled/v2/components/OrPassword/OrPassword.js +3 -4
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +4 -8
- package/dist/bundled/v2/components/OrRadio/OrRadio.js +3 -4
- package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +3 -4
- package/dist/bundled/v2/components/OrSearch/OrSearch.js +3 -4
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +4 -8
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +3 -4
- package/dist/bundled/v2/components/OrSwitch/OrSwitch.js +3 -4
- package/dist/bundled/v2/components/OrTabHeaderItem/OrTabHeaderItem.js +3 -4
- package/dist/bundled/v2/components/OrTabs/OrTabs.js +4 -5
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +4 -8
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +4 -5
- package/dist/bundled/v2/components/OrToast/OrToast.js +1 -1
- package/dist/bundled/v2/components/OrToast/composable/useToast.js +5 -10
- package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +1 -1
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +3 -6
- package/dist/bundled/v2/components/OrToastV3/composable/useToast.js +5 -10
- package/dist/bundled/v2/components/index.js +6 -6
- package/dist/bundled/v2/hooks/useElevation.js +1 -2
- package/dist/bundled/v2/hooks/useOverflow.js +4 -5
- package/dist/bundled/v2/hooks/useToggle.js +1 -2
- package/dist/bundled/{v3/index-e0b25cea.js → v2/index-6976c52a.js} +715 -1229
- package/dist/bundled/v2/index.js +6 -6
- package/dist/bundled/{v3/lang-973a418e.js → v2/lang-02d2bb2d.js} +196 -275
- package/dist/bundled/v2/utils/functions/color.js +1 -2
- package/dist/bundled/v2/utils/functions/flattenDeep.js +1 -2
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-4d344331.js → OrBottomSheet.vue_vue_type_script_lang-1e5544b0.js} +5 -9
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-d3f43900.js → OrCardCollection.vue_vue_type_script_lang-7a2e1332.js} +5 -6
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-53ff464f.js → OrCardCollection.vue_vue_type_script_lang-7d15b872.js} +3 -3
- package/dist/bundled/v3/{OrCarousel.vue_vue_type_script_lang-188ca513.js → OrCarousel.vue_vue_type_script_lang-6976844a.js} +1 -7
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-ba11d80f.js → OrCheckbox.vue_vue_type_script_lang-11b16d93.js} +3 -4
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-75c6053a.js → OrCheckbox.vue_vue_type_script_lang-1cf06290.js} +3 -4
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-528dd4d5.js → OrCheckboxTree.vue_vue_type_script_lang-4042ef27.js} +4 -5
- package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-211e03a1.js → OrChips.vue_vue_type_script_lang-d4bb44eb.js} +2 -4
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-ea34c576.js → OrCode.vue_vue_type_script_lang-5397df6a.js} +199 -265
- package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-45b18baf.js → OrCollapse.vue_vue_type_script_lang-5137ca99.js} +4 -6
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-cb05ea27.js → OrConfirm.vue_vue_type_script_lang-5ee20884.js} +6 -7
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-64d9dd5f.js → OrConfirm.vue_vue_type_script_lang-89febea7.js} +7 -8
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-2dec05d3.js → OrDatePicker.vue_vue_type_script_lang-8c1c9c3e.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-6fd7c75e.js → OrDateTimePicker.vue_vue_type_script_lang-8ff54abd.js} +3 -5
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-365d6597.js → OrDateTimePicker.vue_vue_type_script_lang-cba80c1c.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-c42a6517.js → OrDateTimePickerMonthSelect-a9634fe9.js} +5 -6
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-fb99a3ea.js → OrIconButton.vue_vue_type_script_lang-96cb5b59.js} +3 -4
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-e30d0a1f.js → OrIconButton.vue_vue_type_script_lang-c2534846.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-aee9bc3b.js → OrInlineInput.vue_vue_type_script_lang-a8c0670a.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-869c7772.js → OrInlineTextEdit.vue_vue_type_script_lang-45987769.js} +5 -6
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-82570af3.js → OrInlineTextarea.vue_vue_type_script_lang-03708ef8.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-4067879f.js → OrInput.vue_vue_type_script_lang-ad995b35.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-75e02556.js → OrInput.vue_vue_type_script_lang-f9fef480.js} +1 -1
- package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-47bafed1.js → OrList.vue_vue_type_script_lang-2c7537cc.js} +6 -7
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-006e0106.js → OrListOfInputs.vue_vue_type_script_lang-009f62a5.js} +3 -3
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-50c154c4.js → OrMenu.vue_vue_type_script_lang-d3ea7d1e.js} +6 -12
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-08019fc7.js → OrModal.vue_vue_type_script_lang-07955a9f.js} +2 -2
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-ae842e5b.js → OrModal.vue_vue_type_script_lang-c53617ae.js} +21 -102
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-81fca13f.js → OrNotification.vue_vue_type_script_lang-5a62577f.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-cf2e272c.js → OrNotification.vue_vue_type_script_lang-efb05bb2.js} +1 -1
- package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-55c5ea8f.js → OrNumberInput.vue_vue_type_script_lang-1d469d1f.js} +4 -5
- package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-fe2d0395.js → OrOverflowMenu.vue_vue_type_script_lang-ba50133f.js} +5 -6
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-a1b05723.js → OrPagination.vue_vue_type_script_lang-60000de8.js} +1 -1
- package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-1f5d2a91.js → OrPassword.vue_vue_type_script_lang-37f52611.js} +5 -6
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-f159bc50.js → OrPopover.vue_vue_type_script_lang-65598970.js} +5 -9
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-e1617a0e.js → OrRadio.vue_vue_type_script_lang-cc11200c.js} +3 -4
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0d161f08.js → OrSearch.vue_vue_type_script_lang-2726e332.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-7ac93e50.js → OrSearch.vue_vue_type_script_lang-bcb935c3.js} +5 -6
- package/dist/bundled/v3/{OrSegmentedControl.vue_vue_type_script_lang-ed0d9fe7.js → OrSegmentedControl.vue_vue_type_script_lang-d1b4694c.js} +1 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-9ebf93f2.js → OrSelect.vue_vue_type_script_lang-c232523a.js} +8 -12
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-29a48259.js → OrSelect.vue_vue_type_script_lang-c82d8f58.js} +4 -8
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-e2579a69.js → OrSidebar.vue_vue_type_script_lang-0f22b364.js} +4 -5
- package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-d230260e.js → OrStepper.vue_vue_type_script_lang-975a4df6.js} +1 -1
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-c986f062.js → OrSwitch.vue_vue_type_script_lang-1c079a74.js} +3 -4
- package/dist/bundled/v3/{OrTabHeaderItem.vue_vue_type_script_lang-29f331ec.js → OrTabHeaderItem.vue_vue_type_script_lang-0a67721f.js} +3 -4
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-5836b8bd.js → OrTabs.vue_vue_type_script_lang-06a89286.js} +5 -6
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-b6d7c643.js → OrTabs.vue_vue_type_script_lang-ff032e95.js} +5 -9
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-32301d9c.js → OrTag.vue_vue_type_script_lang-e3ba4ecb.js} +1 -1
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-048cb245.js → OrTextarea.vue_vue_type_script_lang-1236e04a.js} +1 -1
- package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-dad835c3.js → OrTextbox.vue_vue_type_script_lang-812f302d.js} +6 -7
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-7e1bbe0e.js → OrTimePicker.vue_vue_type_script_lang-34c2901e.js} +2 -2
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-0a4977d5.js → OrToastContainer.vue_vue_type_script_lang-16a49a54.js} +3 -6
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-9ec302b4.js → OrTooltip.vue_vue_type_script_lang-cd7c37c3.js} +1 -1
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +4 -8
- 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 +4 -8
- package/dist/bundled/v3/components/OrCheckbox/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +5 -6
- 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 +3 -5
- package/dist/bundled/v3/components/OrCheckboxV3/index.js +1 -1
- package/dist/bundled/v3/components/OrChip/OrChip.js +3 -5
- 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 +3 -5
- package/dist/bundled/v3/components/OrColorPicker/index.js +1 -1
- package/dist/bundled/v3/components/OrColorPicker/utils/defultPalette.js +1 -2
- 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 +5 -7
- 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 +2 -6
- 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 +9 -13
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +6 -6
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +12 -28
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +3 -3
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +9 -13
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +6 -6
- package/dist/bundled/v3/components/OrInput/OrInput.js +6 -12
- 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 +54 -63
- package/dist/bundled/v3/components/OrListOfInputs/index.js +6 -6
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +6 -8
- 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 +3 -5
- package/dist/bundled/v3/components/OrRadio/index.js +1 -1
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +3 -4
- 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 +5 -17
- 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 +3 -5
- package/dist/bundled/v3/components/OrSwitch/index.js +1 -1
- package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.js +3 -5
- 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 +3 -5
- 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 +6 -12
- package/dist/bundled/v3/components/OrTextarea/index.js +2 -2
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +10 -22
- 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 +3 -5
- package/dist/bundled/v3/components/OrToast/composable/useToast.js +5 -10
- 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 +6 -8
- package/dist/bundled/v3/components/OrToastV3/composable/useToast.js +5 -10
- package/dist/bundled/v3/components/OrToastV3/index.js +6 -6
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +2 -6
- 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 +1 -2
- package/dist/bundled/v3/hooks/useOverflow.js +4 -5
- package/dist/bundled/v3/hooks/useToggle.js +1 -2
- package/dist/bundled/{v2/index-e0b25cea.js → v3/index-6976c52a.js} +715 -1229
- package/dist/bundled/v3/index.js +66 -66
- package/dist/bundled/{v2/lang-973a418e.js → v3/lang-02d2bb2d.js} +196 -275
- package/dist/bundled/v3/utils/functions/color.js +1 -2
- package/dist/bundled/v3/utils/functions/flattenDeep.js +1 -2
- package/dist/esm/v2/{OrAvatar-3df48865.js → OrAvatar-12b0e276.js} +1 -1
- package/dist/esm/v2/{OrBottomSheet-6b875223.js → OrBottomSheet-0938dbde.js} +5 -9
- package/dist/esm/v2/{OrButton-dbf0efe7.js → OrButton-4e532ddb.js} +1 -1
- package/dist/esm/v2/OrButton-549e8852.js +195 -0
- package/dist/esm/v2/OrButton.vue_rollup-plugin-vue_styles.0-48c5883e.js +106 -0
- package/dist/esm/v2/{OrCardCollection-fe8a1a88.js → OrCardCollection-9bf513b7.js} +7 -8
- package/dist/esm/v2/{OrCardCollection-7a8cd067.js → OrCardCollection-ead1d063.js} +4 -4
- package/dist/esm/v2/{OrCarousel-5c2b2d10.js → OrCarousel-e0c2e387.js} +1 -7
- package/dist/esm/v2/{OrCheckbox-59332f84.js → OrCheckbox-60e4456b.js} +3 -4
- package/dist/esm/v2/{OrCheckbox-03e5eaff.js → OrCheckbox-7b98fc08.js} +3 -4
- package/dist/esm/v2/{OrCheckboxTree-df80d4ab.js → OrCheckboxTree-85f8ec89.js} +5 -6
- package/dist/esm/v2/{OrCode-0288dd2d.js → OrCode-e54e09f7.js} +7 -8
- package/dist/esm/v2/{OrCollapse-57c64292.js → OrCollapse-50e3914c.js} +4 -6
- package/dist/esm/v2/{OrColorPicker-ca470d10.js → OrColorPicker-fa92b4fa.js} +1 -2
- package/dist/esm/v2/{OrConfirm-b62d9ce4.js → OrConfirm-5d5dd9bc.js} +7 -8
- package/dist/esm/v2/{OrConfirm-09bb952d.js → OrConfirm-d1572223.js} +5 -6
- package/dist/esm/v2/{OrDatePicker-8603b729.js → OrDatePicker-ff4cebfb.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-77ef1975.js → OrDateTimePicker-6e2853ec.js} +4 -4
- package/dist/esm/v2/{OrDateTimePicker-f270e639.js → OrDateTimePicker-da3d6d4d.js} +3 -3
- package/dist/esm/v2/{OrDateTimePickerMonthSelect-58303f9d.js → OrDateTimePickerMonthSelect-7803ed9e.js} +6 -7
- package/dist/esm/v2/{OrIconButton-e13b8108.js → OrIconButton-0ec2cda6.js} +2 -2
- package/dist/esm/v2/{OrIconButton-83608cbc.js → OrIconButton-23972f7d.js} +1 -1
- package/dist/esm/v2/OrIconButton.vue_rollup-plugin-vue_styles.0-277ce06c.js +205 -0
- package/dist/esm/v2/{OrInlineInput-3ad8d3e5.js → OrInlineInput-7a60a995.js} +1 -1
- package/dist/esm/v2/{OrInlineTextEdit-a129aaf1.js → OrInlineTextEdit-9541b625.js} +7 -8
- package/dist/esm/v2/{OrInlineTextarea-968008cc.js → OrInlineTextarea-56d8f558.js} +1 -1
- package/dist/esm/v2/{OrInput-d73d9322.js → OrInput-884b6686.js} +1 -1
- package/dist/esm/v2/{OrInput-bc2371b6.js → OrInput-c005a759.js} +1 -1
- package/dist/esm/v2/{OrList-7de293f5.js → OrList-61c7b8ea.js} +7 -8
- package/dist/esm/v2/{OrListOfInputs-fa926159.js → OrListOfInputs-e1b09290.js} +5 -5
- package/dist/esm/v2/{OrMenu-2f823afc.js → OrMenu-55befbc8.js} +6 -12
- package/dist/esm/v2/{OrModal-4d570c2f.js → OrModal-b0a470f9.js} +2 -2
- package/dist/esm/v2/{OrModal-3f09ae47.js → OrModal-b9cfb8ec.js} +6 -7
- package/dist/esm/v2/{OrNotification-855e31ad.js → OrNotification-4497b02f.js} +1 -1
- package/dist/esm/v2/{OrNotification-bfa97981.js → OrNotification-fdb88eec.js} +3 -3
- package/dist/esm/v2/{OrNumberInput-5b1135df.js → OrNumberInput-eb0e7087.js} +4 -5
- package/dist/esm/v2/{OrOverflowMenu-13fac7a3.js → OrOverflowMenu-83540c76.js} +7 -8
- package/dist/esm/v2/{OrOverlay-2b61ec26.js → OrOverlay-b1609eef.js} +1 -1
- package/dist/esm/v2/{OrPagination-a333b8a2.js → OrPagination-67b30f14.js} +2 -2
- package/dist/esm/v2/{OrPassword-82877067.js → OrPassword-022e10fd.js} +8 -9
- package/dist/esm/v2/{OrPopover-d7fc7c17.js → OrPopover-c902e2fd.js} +6 -10
- package/dist/esm/v2/{OrRadio-f53c0944.js → OrRadio-514e8de8.js} +3 -4
- package/dist/esm/v2/{OrSearch-330e9af0.js → OrSearch-620d5d76.js} +7 -8
- package/dist/esm/v2/{OrSearch-d5202cd2.js → OrSearch-dea30353.js} +1 -1
- package/dist/esm/v2/{OrSelect-c5e6f9ee.js → OrSelect-7266296e.js} +9 -13
- package/dist/esm/v2/{OrSelect-22eea9cc.js → OrSelect-d887118b.js} +1 -1
- package/dist/esm/v2/{OrSidebar-00b1be87.js → OrSidebar-82a4c03f.js} +4 -5
- package/dist/esm/v2/{OrSidebarCollapseButton-ace90e38.js → OrSidebarCollapseButton-c41c688a.js} +1 -1
- package/dist/esm/v2/{OrStepper-2ae3fc21.js → OrStepper-b00f7531.js} +2 -2
- package/dist/esm/v2/{OrSwitch-e7fe2b86.js → OrSwitch-cd24ee40.js} +3 -4
- package/dist/esm/v2/{OrTabHeaderItem-46947417.js → OrTabHeaderItem-6a08756e.js} +3 -4
- package/dist/esm/v2/{OrTabs-1b314eeb.js → OrTabs-12138346.js} +5 -6
- package/dist/esm/v2/{OrTabs-c383bde4.js → OrTabs-a8008116.js} +6 -10
- package/dist/esm/v2/{OrTag-a36ef302.js → OrTag-213bc082.js} +1 -1
- package/dist/esm/v2/{OrTag-8ded4261.js → OrTag-6349049b.js} +1 -1
- package/dist/esm/v2/{OrTextarea-226ab7a2.js → OrTextarea-724a4d6f.js} +1 -1
- package/dist/esm/v2/{OrTextbox-90badc95.js → OrTextbox-0373bd6a.js} +9 -10
- package/dist/esm/v2/{OrTimePicker-fc6fa5ab.js → OrTimePicker-038ceb81.js} +2 -2
- package/dist/esm/v2/{OrToastContainer-2f530752.js → OrToastContainer-1625b803.js} +4 -4
- package/dist/esm/v2/{OrTooltip-6add8ee9.js → OrTooltip-b7290ed1.js} +1 -1
- package/dist/esm/{v3/color-40b7fe6b.js → v2/color-1f348774.js} +1 -2
- 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 +6 -7
- 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 +3 -4
- 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/v2/{flattenDeep-fe0af413.js → flattenDeep-e7a8b995.js} +1 -2
- package/dist/esm/v2/hooks/index.js +3 -3
- package/dist/esm/v2/index.js +67 -67
- package/dist/esm/v2/{types-8fffa58d.js → types-b674518e.js} +5 -8
- package/dist/esm/{v3/useElevation-b5a49746.js → v2/useElevation-df91fa50.js} +1 -2
- package/dist/esm/{v3/useOverflow-c856b7b7.js → v2/useOverflow-af6161c8.js} +4 -5
- package/dist/esm/{v3/useToast-a1332cc2.js → v2/useToast-0665462d.js} +5 -10
- package/dist/esm/{v3/useToast-b5ea5cb2.js → v2/useToast-4fbe0e5a.js} +5 -10
- package/dist/esm/{v3/useToggle-c04fc920.js → v2/useToggle-29e4d7c7.js} +1 -2
- package/dist/esm/v3/{OrAvatar-8a73221d.js → OrAvatar-14a5c5f0.js} +3 -7
- package/dist/esm/v3/{OrAvatar-3ccb5f60.js → OrAvatar-1ebca2e8.js} +1 -1
- package/dist/esm/v3/{OrBottomSheet-67a0d6b5.js → OrBottomSheet-6538d9c3.js} +5 -9
- package/dist/esm/v3/OrButton-f8b10d79.js +142 -0
- package/dist/esm/v3/OrButton-fca9019a.js +162 -0
- package/dist/esm/v3/{OrCardCollection-d217f7af.js → OrCardCollection-b7d73647.js} +4 -4
- package/dist/esm/v3/{OrCardCollection-d79dac85.js → OrCardCollection-ffbb9eda.js} +7 -8
- package/dist/esm/v3/{OrCarousel-4fb775f8.js → OrCarousel-03597740.js} +2 -8
- package/dist/esm/v3/{OrCheckbox-56d7b6eb.js → OrCheckbox-247ce27b.js} +4 -7
- package/dist/esm/v3/{OrCheckbox-ab457011.js → OrCheckbox-7efd5f26.js} +6 -11
- package/dist/esm/v3/{OrCheckboxTree-4a85b9b3.js → OrCheckboxTree-ed8b5f53.js} +5 -6
- package/dist/esm/v3/{OrChip-1b479371.js → OrChip-97a85e10.js} +2 -4
- package/dist/esm/v3/{OrChips-544a35b3.js → OrChips-64b86761.js} +2 -4
- package/dist/esm/v3/{OrCode-48281fc0.js → OrCode-6f2e4d99.js} +6 -7
- package/dist/esm/v3/{OrCollapse-2b31de04.js → OrCollapse-37a52e8f.js} +4 -6
- package/dist/esm/v3/{OrColorPicker-ffaaf14f.js → OrColorPicker-9a149e6b.js} +2 -5
- package/dist/esm/v3/{OrConfirm-e57bd854.js → OrConfirm-14cefbad.js} +5 -6
- package/dist/esm/v3/{OrConfirm-1a94bdea.js → OrConfirm-ab04201f.js} +7 -8
- package/dist/esm/v3/{OrDatePicker-2533a646.js → OrDatePicker-748c8f09.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-2af19719.js → OrDateTimePicker-014f7819.js} +5 -9
- package/dist/esm/v3/{OrDateTimePicker-94776158.js → OrDateTimePicker-10f2eb69.js} +3 -3
- package/dist/esm/v3/{OrDateTimePickerMonthSelect-13300c6e.js → OrDateTimePickerMonthSelect-7e13dcca.js} +6 -7
- package/dist/esm/v3/{OrIcon-b566a871.js → OrIcon-925c5413.js} +3 -7
- package/dist/esm/v3/{OrIconButton-025fb2de.js → OrIconButton-46b3c1e2.js} +2 -2
- package/dist/esm/v3/OrIconButton-5387fd59.js +222 -0
- package/dist/esm/v3/{OrInlineInput-11ed65f7.js → OrInlineInput-63b1d245.js} +3 -7
- package/dist/esm/v3/{OrInlineTextEdit-4f4ecba4.js → OrInlineTextEdit-6f97629f.js} +14 -31
- package/dist/esm/v3/{OrInlineTextarea-05769204.js → OrInlineTextarea-d03f81c4.js} +3 -7
- package/dist/esm/v3/{OrInput-53a32706.js → OrInput-0dbd5a01.js} +4 -10
- package/dist/esm/v3/{OrInput-c7763e63.js → OrInput-cc1991ff.js} +1 -1
- package/dist/esm/v3/{OrList-0543a645.js → OrList-b8799cf4.js} +7 -8
- package/dist/esm/v3/{OrListOfInputs-2fc8087c.js → OrListOfInputs-16ba8358.js} +52 -61
- package/dist/esm/v3/{OrMenu-054e0d2e.js → OrMenu-03a8a492.js} +7 -15
- package/dist/esm/v3/{OrModal-0173d0ff.js → OrModal-28d273a8.js} +2 -2
- package/dist/esm/v3/{OrModal-c420594e.js → OrModal-e6513e8c.js} +5 -6
- package/dist/esm/v3/{OrNotification-26bdb1ca.js → OrNotification-16190cf5.js} +1 -1
- package/dist/esm/v3/{OrNotification-9a696585.js → OrNotification-4c56f7ea.js} +3 -3
- package/dist/esm/v3/{OrNumberInput-a80859d1.js → OrNumberInput-dca5e850.js} +4 -5
- package/dist/esm/v3/{OrOverflowMenu-4b2d2950.js → OrOverflowMenu-fe77e22c.js} +5 -6
- package/dist/esm/v3/{OrOverlay-bf72f582.js → OrOverlay-d63d39c3.js} +1 -1
- package/dist/esm/v3/{OrPagination-a7fa36ad.js → OrPagination-6bf44eec.js} +2 -2
- package/dist/esm/v3/{OrPassword-35c5775f.js → OrPassword-9c8a458d.js} +7 -8
- package/dist/esm/v3/{OrPopover-986f867f.js → OrPopover-e34e8f6c.js} +6 -10
- package/dist/esm/v3/{OrRadio-dfd0f0c9.js → OrRadio-c3ab11f2.js} +4 -7
- package/dist/esm/v3/{OrSearch-bb3a3acc.js → OrSearch-7277ebfd.js} +1 -1
- package/dist/esm/v3/{OrSearch-f4ad73db.js → OrSearch-c4caf04e.js} +6 -7
- package/dist/esm/v3/{OrSegmentedControl-359fbf3a.js → OrSegmentedControl-4587c7a9.js} +1 -3
- package/dist/esm/v3/{OrSelect-93b70fcc.js → OrSelect-9c7044f8.js} +9 -13
- package/dist/esm/v3/{OrSelect-6ff34196.js → OrSelect-d8a78242.js} +6 -10
- package/dist/esm/v3/{OrSidebar-fede2b0e.js → OrSidebar-0f4629bf.js} +4 -5
- package/dist/esm/v3/{OrSidebarCollapseButton-5c64c1b0.js → OrSidebarCollapseButton-a384cd37.js} +1 -1
- package/dist/esm/v3/{OrSlider-c3778aa7.js → OrSlider-80e0f2e6.js} +4 -16
- package/dist/esm/v3/{OrStepper-fedc1cca.js → OrStepper-3a586401.js} +2 -2
- package/dist/esm/v3/{OrSwitch-3fca7e24.js → OrSwitch-c333ee32.js} +4 -7
- package/dist/esm/v3/{OrTabHeaderItem-3bb0b711.js → OrTabHeaderItem-d668cc59.js} +4 -7
- package/dist/esm/v3/{OrTabs-b2bbc82a.js → OrTabs-9e29eeec.js} +6 -10
- package/dist/esm/v3/{OrTabs-35a376a3.js → OrTabs-d3812c11.js} +5 -6
- package/dist/esm/v3/{OrTag-930d11c3.js → OrTag-b508f25f.js} +1 -1
- package/dist/esm/v3/{OrTag-2d9eacf8.js → OrTag-e7adb078.js} +3 -5
- package/dist/esm/v3/{OrTextarea-f6722edc.js → OrTextarea-de1ecb0f.js} +4 -10
- package/dist/esm/v3/{OrTextbox-6e585202.js → OrTextbox-f7388a30.js} +14 -27
- package/dist/esm/v3/{OrTimePicker-cd206930.js → OrTimePicker-2fe3c573.js} +2 -2
- package/dist/esm/v3/{OrToastContainer-24839efd.js → OrToastContainer-94ba2803.js} +4 -6
- package/dist/esm/v3/{OrTooltip-89ce98e8.js → OrTooltip-618ce7c9.js} +2 -6
- package/dist/esm/v3/{OrTooltip-ace3359f.js → OrTooltip-e3c85390.js} +1 -1
- package/dist/esm/{v2/color-40b7fe6b.js → v3/color-1f348774.js} +1 -2
- 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 +6 -7
- 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 +3 -4
- 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/v3/{flattenDeep-fe0af413.js → flattenDeep-e7a8b995.js} +1 -2
- package/dist/esm/v3/hooks/index.js +3 -3
- package/dist/esm/v3/index.js +72 -72
- package/dist/esm/v3/{types-b64c7e13.js → types-9034029d.js} +6 -11
- package/dist/esm/{v2/useElevation-b5a49746.js → v3/useElevation-df91fa50.js} +1 -2
- package/dist/esm/{v2/useOverflow-c856b7b7.js → v3/useOverflow-af6161c8.js} +4 -5
- package/dist/esm/{v2/useToast-a1332cc2.js → v3/useToast-0665462d.js} +5 -10
- package/dist/esm/{v2/useToast-b5ea5cb2.js → v3/useToast-4fbe0e5a.js} +5 -10
- package/dist/esm/{v2/useToggle-c04fc920.js → v3/useToggle-29e4d7c7.js} +1 -2
- package/package.json +8 -8
- package/dist/esm/v2/OrButton-b4a39652.js +0 -195
- package/dist/esm/v2/OrButton.vue_rollup-plugin-vue_styles.0-83b5a752.js +0 -106
- package/dist/esm/v2/OrIconButton.vue_rollup-plugin-vue_styles.0-20b054cc.js +0 -206
- package/dist/esm/v3/OrButton-49605f5c.js +0 -162
- package/dist/esm/v3/OrButton-d6834ea0.js +0 -142
- package/dist/esm/v3/OrIconButton-049a3bd2.js +0 -223
- /package/dist/bundled/v2/{index-1301ac7b.js → index-63e094a0.js} +0 -0
- /package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-8d7ce473.js → OrAvatar.vue_vue_type_script_lang-623c32a1.js} +0 -0
- /package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-2d5de9d4.js → OrAvatar.vue_vue_type_script_lang-6511e348.js} +0 -0
- /package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-4f44f547.js → OrButton.vue_vue_type_script_lang-da7f7ed0.js} +0 -0
- /package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-185d8d45.js → OrChip.vue_vue_type_script_lang-5a390853.js} +0 -0
- /package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-d8588b52.js → OrColorPicker.vue_vue_type_script_lang-3a799e23.js} +0 -0
- /package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-86c7b93a.js → OrOverlay.vue_vue_type_script_lang-47004a50.js} +0 -0
- /package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-7234ab75.js → OrSlider.vue_vue_type_script_lang-45ecddbe.js} +0 -0
- /package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-4e98d8a0.js → OrTag.vue_vue_type_script_lang-621e9307.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-45713d6c.js → OrToastContainer.vue_vue_type_script_lang-70cc38be.js} +0 -0
- /package/dist/bundled/v3/{index-1301ac7b.js → index-63e094a0.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-6976c52a.js';
|
|
2
|
+
import { c as closeBrackets, a as autocompletion, b as closeBracketsKeymap, d as completionKeymap, l as languages } from '../../lang-02d2bb2d.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,11 +43,10 @@ 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
|
-
|
|
50
|
-
} = _ref;
|
|
46
|
+
return ({
|
|
47
|
+
state,
|
|
48
|
+
dispatch
|
|
49
|
+
}) => {
|
|
51
50
|
if (state.readOnly) return false;
|
|
52
51
|
let tr = f(option, state);
|
|
53
52
|
if (!tr) return false;
|
|
@@ -83,11 +82,10 @@ const SearchMargin = 50;
|
|
|
83
82
|
Determines if the given range is block-commented in the given
|
|
84
83
|
state.
|
|
85
84
|
*/
|
|
86
|
-
function findBlockComment(state,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
} = _ref2;
|
|
85
|
+
function findBlockComment(state, {
|
|
86
|
+
open,
|
|
87
|
+
close
|
|
88
|
+
}, from, to) {
|
|
91
89
|
let textBefore = state.sliceDoc(from - SearchMargin, from);
|
|
92
90
|
let textAfter = state.sliceDoc(to, to + SearchMargin);
|
|
93
91
|
let spaceBefore = /\s*$/.exec(textBefore)[0].length,
|
|
@@ -144,8 +142,7 @@ function selectedLineRanges(state) {
|
|
|
144
142
|
}
|
|
145
143
|
// Performs toggle, comment and uncomment of block comments in
|
|
146
144
|
// languages that support them.
|
|
147
|
-
function changeBlockComment(option, state) {
|
|
148
|
-
let ranges = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : state.selection.ranges;
|
|
145
|
+
function changeBlockComment(option, state, ranges = state.selection.ranges) {
|
|
149
146
|
let tokens = ranges.map(r => getConfig(state, r.from).block);
|
|
150
147
|
if (!tokens.every(c => c)) return null;
|
|
151
148
|
let comments = ranges.map((r, i) => findBlockComment(state, tokens[i], r.from, r.to));
|
|
@@ -185,8 +182,7 @@ function changeBlockComment(option, state) {
|
|
|
185
182
|
return null;
|
|
186
183
|
}
|
|
187
184
|
// Performs toggle, comment and uncomment of line comments.
|
|
188
|
-
function changeLineComment(option, state) {
|
|
189
|
-
let ranges = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : state.selection.ranges;
|
|
185
|
+
function changeLineComment(option, state, ranges = state.selection.ranges) {
|
|
190
186
|
let lines = [];
|
|
191
187
|
let prevLine = -1;
|
|
192
188
|
for (let {
|
|
@@ -330,8 +326,7 @@ const historyField_ = /*@__PURE__*/StateField.define({
|
|
|
330
326
|
/**
|
|
331
327
|
Create a history extension with the given configuration.
|
|
332
328
|
*/
|
|
333
|
-
function history() {
|
|
334
|
-
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
329
|
+
function history(config = {}) {
|
|
335
330
|
return [historyField_, historyConfig.of(config), EditorView.domEventHandlers({
|
|
336
331
|
beforeinput(e, view) {
|
|
337
332
|
let command = e.inputType == "historyUndo" ? undo : e.inputType == "historyRedo" ? redo : null;
|
|
@@ -342,11 +337,10 @@ function history() {
|
|
|
342
337
|
})];
|
|
343
338
|
}
|
|
344
339
|
function cmd(side, selection) {
|
|
345
|
-
return function (
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
} = _ref3;
|
|
340
|
+
return function ({
|
|
341
|
+
state,
|
|
342
|
+
dispatch
|
|
343
|
+
}) {
|
|
350
344
|
if (!selection && state.readOnly) return false;
|
|
351
345
|
let historyState = state.field(historyField_, false);
|
|
352
346
|
if (!historyState) return false;
|
|
@@ -510,9 +504,7 @@ function mapEvent(event, mapping, extraSelections) {
|
|
|
510
504
|
}
|
|
511
505
|
const joinableUserEvent = /^(input\.type|delete)($|\.)/;
|
|
512
506
|
class HistoryState {
|
|
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;
|
|
507
|
+
constructor(done, undone, prevTime = 0, prevUserEvent = undefined) {
|
|
516
508
|
this.done = done;
|
|
517
509
|
this.undone = undone;
|
|
518
510
|
this.prevTime = prevTime;
|
|
@@ -617,11 +609,10 @@ function setSel(state, selection) {
|
|
|
617
609
|
userEvent: "select"
|
|
618
610
|
});
|
|
619
611
|
}
|
|
620
|
-
function moveSel(
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
} = _ref4;
|
|
612
|
+
function moveSel({
|
|
613
|
+
state,
|
|
614
|
+
dispatch
|
|
615
|
+
}, how) {
|
|
625
616
|
let selection = updateSel(state.selection, how);
|
|
626
617
|
if (selection.eq(state.selection)) return false;
|
|
627
618
|
dispatch(setSel(state, selection));
|
|
@@ -811,13 +802,10 @@ function toMatchingBracket(state, dispatch, extend) {
|
|
|
811
802
|
Move the selection to the bracket matching the one it is currently
|
|
812
803
|
on, if any.
|
|
813
804
|
*/
|
|
814
|
-
const cursorMatchingBracket =
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
} = _ref5;
|
|
819
|
-
return toMatchingBracket(state, dispatch, false);
|
|
820
|
-
};
|
|
805
|
+
const cursorMatchingBracket = ({
|
|
806
|
+
state,
|
|
807
|
+
dispatch
|
|
808
|
+
}) => toMatchingBracket(state, dispatch, false);
|
|
821
809
|
function extendSel(view, how) {
|
|
822
810
|
let selection = updateSel(view.state.selection, range => {
|
|
823
811
|
let head = how(range);
|
|
@@ -908,11 +896,10 @@ const selectLineEnd = view => extendSel(view, range => EditorSelection.cursor(vi
|
|
|
908
896
|
/**
|
|
909
897
|
Move the selection to the start of the document.
|
|
910
898
|
*/
|
|
911
|
-
const cursorDocStart =
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
} = _ref7;
|
|
899
|
+
const cursorDocStart = ({
|
|
900
|
+
state,
|
|
901
|
+
dispatch
|
|
902
|
+
}) => {
|
|
916
903
|
dispatch(setSel(state, {
|
|
917
904
|
anchor: 0
|
|
918
905
|
}));
|
|
@@ -921,11 +908,10 @@ const cursorDocStart = _ref7 => {
|
|
|
921
908
|
/**
|
|
922
909
|
Move the selection to the end of the document.
|
|
923
910
|
*/
|
|
924
|
-
const cursorDocEnd =
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
} = _ref8;
|
|
911
|
+
const cursorDocEnd = ({
|
|
912
|
+
state,
|
|
913
|
+
dispatch
|
|
914
|
+
}) => {
|
|
929
915
|
dispatch(setSel(state, {
|
|
930
916
|
anchor: state.doc.length
|
|
931
917
|
}));
|
|
@@ -934,11 +920,10 @@ const cursorDocEnd = _ref8 => {
|
|
|
934
920
|
/**
|
|
935
921
|
Move the selection head to the start of the document.
|
|
936
922
|
*/
|
|
937
|
-
const selectDocStart =
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
} = _ref9;
|
|
923
|
+
const selectDocStart = ({
|
|
924
|
+
state,
|
|
925
|
+
dispatch
|
|
926
|
+
}) => {
|
|
942
927
|
dispatch(setSel(state, {
|
|
943
928
|
anchor: state.selection.main.anchor,
|
|
944
929
|
head: 0
|
|
@@ -948,11 +933,10 @@ const selectDocStart = _ref9 => {
|
|
|
948
933
|
/**
|
|
949
934
|
Move the selection head to the end of the document.
|
|
950
935
|
*/
|
|
951
|
-
const selectDocEnd =
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
} = _ref10;
|
|
936
|
+
const selectDocEnd = ({
|
|
937
|
+
state,
|
|
938
|
+
dispatch
|
|
939
|
+
}) => {
|
|
956
940
|
dispatch(setSel(state, {
|
|
957
941
|
anchor: state.selection.main.anchor,
|
|
958
942
|
head: state.doc.length
|
|
@@ -962,11 +946,10 @@ const selectDocEnd = _ref10 => {
|
|
|
962
946
|
/**
|
|
963
947
|
Select the entire document.
|
|
964
948
|
*/
|
|
965
|
-
const selectAll =
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
} = _ref11;
|
|
949
|
+
const selectAll = ({
|
|
950
|
+
state,
|
|
951
|
+
dispatch
|
|
952
|
+
}) => {
|
|
970
953
|
dispatch(state.update({
|
|
971
954
|
selection: {
|
|
972
955
|
anchor: 0,
|
|
@@ -979,18 +962,14 @@ const selectAll = _ref11 => {
|
|
|
979
962
|
/**
|
|
980
963
|
Expand the selection to cover entire lines.
|
|
981
964
|
*/
|
|
982
|
-
const selectLine =
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
to
|
|
991
|
-
} = _ref13;
|
|
992
|
-
return EditorSelection.range(from, Math.min(to + 1, state.doc.length));
|
|
993
|
-
});
|
|
965
|
+
const selectLine = ({
|
|
966
|
+
state,
|
|
967
|
+
dispatch
|
|
968
|
+
}) => {
|
|
969
|
+
let ranges = selectedLineBlocks(state).map(({
|
|
970
|
+
from,
|
|
971
|
+
to
|
|
972
|
+
}) => EditorSelection.range(from, Math.min(to + 1, state.doc.length)));
|
|
994
973
|
dispatch(state.update({
|
|
995
974
|
selection: EditorSelection.create(ranges),
|
|
996
975
|
userEvent: "select"
|
|
@@ -1003,11 +982,10 @@ selection. Note that this will only work insofar as the language
|
|
|
1003
982
|
[provider](https://codemirror.net/6/docs/ref/#language.language) you use builds up a full
|
|
1004
983
|
syntax tree.
|
|
1005
984
|
*/
|
|
1006
|
-
const selectParentSyntax =
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
} = _ref14;
|
|
985
|
+
const selectParentSyntax = ({
|
|
986
|
+
state,
|
|
987
|
+
dispatch
|
|
988
|
+
}) => {
|
|
1011
989
|
let selection = updateSel(state.selection, range => {
|
|
1012
990
|
var _a;
|
|
1013
991
|
let context = syntaxTree(state).resolveInner(range.head, 1);
|
|
@@ -1022,11 +1000,10 @@ Simplify the current selection. When multiple ranges are selected,
|
|
|
1022
1000
|
reduce it to its main range. Otherwise, if the selection is
|
|
1023
1001
|
non-empty, convert it to a cursor selection.
|
|
1024
1002
|
*/
|
|
1025
|
-
const simplifySelection =
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
} = _ref15;
|
|
1003
|
+
const simplifySelection = ({
|
|
1004
|
+
state,
|
|
1005
|
+
dispatch
|
|
1006
|
+
}) => {
|
|
1030
1007
|
let cur = state.selection,
|
|
1031
1008
|
selection = null;
|
|
1032
1009
|
if (cur.ranges.length > 1) selection = EditorSelection.create([cur.main]);else if (!cur.main.empty) selection = EditorSelection.create([EditorSelection.cursor(cur.main.head)]);
|
|
@@ -1165,11 +1142,10 @@ const deleteToLineStart = view => deleteBy(view, pos => {
|
|
|
1165
1142
|
Replace each selection range with a line break, leaving the cursor
|
|
1166
1143
|
on the line before the break.
|
|
1167
1144
|
*/
|
|
1168
|
-
const splitLine =
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
} = _ref17;
|
|
1145
|
+
const splitLine = ({
|
|
1146
|
+
state,
|
|
1147
|
+
dispatch
|
|
1148
|
+
}) => {
|
|
1173
1149
|
if (state.readOnly) return false;
|
|
1174
1150
|
let changes = state.changeByRange(range => {
|
|
1175
1151
|
return {
|
|
@@ -1190,11 +1166,10 @@ const splitLine = _ref17 => {
|
|
|
1190
1166
|
/**
|
|
1191
1167
|
Flip the characters before and after the cursor(s).
|
|
1192
1168
|
*/
|
|
1193
|
-
const transposeChars =
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
} = _ref18;
|
|
1169
|
+
const transposeChars = ({
|
|
1170
|
+
state,
|
|
1171
|
+
dispatch
|
|
1172
|
+
}) => {
|
|
1198
1173
|
if (state.readOnly) return false;
|
|
1199
1174
|
let changes = state.changeByRange(range => {
|
|
1200
1175
|
if (!range.empty || range.from == 0 || range.from == state.doc.length) return {
|
|
@@ -1282,23 +1257,17 @@ function moveLine(state, dispatch, forward) {
|
|
|
1282
1257
|
/**
|
|
1283
1258
|
Move the selected lines up one line.
|
|
1284
1259
|
*/
|
|
1285
|
-
const moveLineUp =
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
} = _ref19;
|
|
1290
|
-
return moveLine(state, dispatch, false);
|
|
1291
|
-
};
|
|
1260
|
+
const moveLineUp = ({
|
|
1261
|
+
state,
|
|
1262
|
+
dispatch
|
|
1263
|
+
}) => moveLine(state, dispatch, false);
|
|
1292
1264
|
/**
|
|
1293
1265
|
Move the selected lines down one line.
|
|
1294
1266
|
*/
|
|
1295
|
-
const moveLineDown =
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
} = _ref20;
|
|
1300
|
-
return moveLine(state, dispatch, true);
|
|
1301
|
-
};
|
|
1267
|
+
const moveLineDown = ({
|
|
1268
|
+
state,
|
|
1269
|
+
dispatch
|
|
1270
|
+
}) => moveLine(state, dispatch, true);
|
|
1302
1271
|
function copyLine(state, dispatch, forward) {
|
|
1303
1272
|
if (state.readOnly) return false;
|
|
1304
1273
|
let changes = [];
|
|
@@ -1321,23 +1290,17 @@ function copyLine(state, dispatch, forward) {
|
|
|
1321
1290
|
/**
|
|
1322
1291
|
Create a copy of the selected lines. Keep the selection in the top copy.
|
|
1323
1292
|
*/
|
|
1324
|
-
const copyLineUp =
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
} = _ref21;
|
|
1329
|
-
return copyLine(state, dispatch, false);
|
|
1330
|
-
};
|
|
1293
|
+
const copyLineUp = ({
|
|
1294
|
+
state,
|
|
1295
|
+
dispatch
|
|
1296
|
+
}) => copyLine(state, dispatch, false);
|
|
1331
1297
|
/**
|
|
1332
1298
|
Create a copy of the selected lines. Keep the selection in the bottom copy.
|
|
1333
1299
|
*/
|
|
1334
|
-
const copyLineDown =
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
} = _ref22;
|
|
1339
|
-
return copyLine(state, dispatch, true);
|
|
1340
|
-
};
|
|
1300
|
+
const copyLineDown = ({
|
|
1301
|
+
state,
|
|
1302
|
+
dispatch
|
|
1303
|
+
}) => copyLine(state, dispatch, true);
|
|
1341
1304
|
/**
|
|
1342
1305
|
Delete selected lines.
|
|
1343
1306
|
*/
|
|
@@ -1346,11 +1309,10 @@ const deleteLine = view => {
|
|
|
1346
1309
|
let {
|
|
1347
1310
|
state
|
|
1348
1311
|
} = view,
|
|
1349
|
-
changes = state.changes(selectedLineBlocks(state).map(
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
} = _ref23;
|
|
1312
|
+
changes = state.changes(selectedLineBlocks(state).map(({
|
|
1313
|
+
from,
|
|
1314
|
+
to
|
|
1315
|
+
}) => {
|
|
1354
1316
|
if (from > 0) from--;else if (to < state.doc.length) to++;
|
|
1355
1317
|
return {
|
|
1356
1318
|
from,
|
|
@@ -1394,11 +1356,10 @@ Create a blank, indented line below the current line.
|
|
|
1394
1356
|
*/
|
|
1395
1357
|
const insertBlankLine = /*@__PURE__*/newlineAndIndent(true);
|
|
1396
1358
|
function newlineAndIndent(atEof) {
|
|
1397
|
-
return
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
} = _ref25;
|
|
1359
|
+
return ({
|
|
1360
|
+
state,
|
|
1361
|
+
dispatch
|
|
1362
|
+
}) => {
|
|
1402
1363
|
if (state.readOnly) return false;
|
|
1403
1364
|
let changes = state.changeByRange(range => {
|
|
1404
1365
|
let {
|
|
@@ -1461,11 +1422,10 @@ Auto-indent the selected lines. This uses the [indentation service
|
|
|
1461
1422
|
facet](https://codemirror.net/6/docs/ref/#language.indentService) as source for auto-indent
|
|
1462
1423
|
information.
|
|
1463
1424
|
*/
|
|
1464
|
-
const indentSelection =
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
} = _ref26;
|
|
1425
|
+
const indentSelection = ({
|
|
1426
|
+
state,
|
|
1427
|
+
dispatch
|
|
1428
|
+
}) => {
|
|
1469
1429
|
if (state.readOnly) return false;
|
|
1470
1430
|
let updated = Object.create(null);
|
|
1471
1431
|
let context = new IndentContext(state, {
|
|
@@ -1498,11 +1458,10 @@ const indentSelection = _ref26 => {
|
|
|
1498
1458
|
Add a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation to all selected
|
|
1499
1459
|
lines.
|
|
1500
1460
|
*/
|
|
1501
|
-
const indentMore =
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
} = _ref27;
|
|
1461
|
+
const indentMore = ({
|
|
1462
|
+
state,
|
|
1463
|
+
dispatch
|
|
1464
|
+
}) => {
|
|
1506
1465
|
if (state.readOnly) return false;
|
|
1507
1466
|
dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
|
|
1508
1467
|
changes.push({
|
|
@@ -1518,11 +1477,10 @@ const indentMore = _ref27 => {
|
|
|
1518
1477
|
Remove a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation from all
|
|
1519
1478
|
selected lines.
|
|
1520
1479
|
*/
|
|
1521
|
-
const indentLess =
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
} = _ref28;
|
|
1480
|
+
const indentLess = ({
|
|
1481
|
+
state,
|
|
1482
|
+
dispatch
|
|
1483
|
+
}) => {
|
|
1526
1484
|
if (state.readOnly) return false;
|
|
1527
1485
|
dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
|
|
1528
1486
|
let space = /^\s*/.exec(line.text)[0];
|
|
@@ -1894,11 +1852,7 @@ class SearchCursor {
|
|
|
1894
1852
|
[`.normalize("NFKD")`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize)
|
|
1895
1853
|
(when supported).
|
|
1896
1854
|
*/
|
|
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;
|
|
1855
|
+
constructor(text, query, from = 0, to = text.length, normalize, test) {
|
|
1902
1856
|
this.test = test;
|
|
1903
1857
|
/**
|
|
1904
1858
|
The current match (only holds a meaningful value after
|
|
@@ -2020,9 +1974,7 @@ class RegExpCursor {
|
|
|
2020
1974
|
document. `query` should be the raw pattern (as you'd pass it to
|
|
2021
1975
|
`new RegExp`).
|
|
2022
1976
|
*/
|
|
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;
|
|
1977
|
+
constructor(text, query, options, from = 0, to = text.length) {
|
|
2026
1978
|
this.text = text;
|
|
2027
1979
|
this.to = to;
|
|
2028
1980
|
this.curLine = "";
|
|
@@ -2267,6 +2219,9 @@ Supports line numbers, relative line offsets prefixed with `+` or
|
|
|
2267
2219
|
`-`, document percentages suffixed with `%`, and an optional
|
|
2268
2220
|
column position by adding `:` and a second number after the line
|
|
2269
2221
|
number.
|
|
2222
|
+
|
|
2223
|
+
The dialog can be styled with the `panel.gotoLine` theme
|
|
2224
|
+
selector.
|
|
2270
2225
|
*/
|
|
2271
2226
|
const gotoLine = view => {
|
|
2272
2227
|
let panel = getPanel(view, createLineDialog);
|
|
@@ -2392,11 +2347,10 @@ const defaultTheme = /*@__PURE__*/EditorView.baseTheme({
|
|
|
2392
2347
|
}
|
|
2393
2348
|
});
|
|
2394
2349
|
// Select the words around the cursors.
|
|
2395
|
-
const selectWord =
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
} = _ref;
|
|
2350
|
+
const selectWord = ({
|
|
2351
|
+
state,
|
|
2352
|
+
dispatch
|
|
2353
|
+
}) => {
|
|
2400
2354
|
let {
|
|
2401
2355
|
selection
|
|
2402
2356
|
} = state;
|
|
@@ -2436,11 +2390,10 @@ function findNextOccurrence(state, query) {
|
|
|
2436
2390
|
Select next occurrence of the current selection. Expand selection
|
|
2437
2391
|
to the surrounding word when the selection is empty.
|
|
2438
2392
|
*/
|
|
2439
|
-
const selectNextOccurrence =
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
} = _ref2;
|
|
2393
|
+
const selectNextOccurrence = ({
|
|
2394
|
+
state,
|
|
2395
|
+
dispatch
|
|
2396
|
+
}) => {
|
|
2444
2397
|
let {
|
|
2445
2398
|
ranges
|
|
2446
2399
|
} = state.selection;
|
|
@@ -2465,8 +2418,7 @@ const searchConfigFacet = /*@__PURE__*/Facet.define({
|
|
|
2465
2418
|
caseSensitive: false,
|
|
2466
2419
|
literal: false,
|
|
2467
2420
|
wholeWord: false,
|
|
2468
|
-
createPanel: view => new SearchPanel(view)
|
|
2469
|
-
scrollToMatch: range => EditorView.scrollIntoView(range)
|
|
2421
|
+
createPanel: view => new SearchPanel(view)
|
|
2470
2422
|
});
|
|
2471
2423
|
}
|
|
2472
2424
|
});
|
|
@@ -2509,9 +2461,7 @@ class SearchQuery {
|
|
|
2509
2461
|
Get a search cursor for this query, searching through the given
|
|
2510
2462
|
range in the given state.
|
|
2511
2463
|
*/
|
|
2512
|
-
getCursor(state) {
|
|
2513
|
-
let from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
2514
|
-
let to = arguments.length > 2 ? arguments[2] : undefined;
|
|
2464
|
+
getCursor(state, from = 0, to) {
|
|
2515
2465
|
let st = state.doc ? state : EditorState.create({
|
|
2516
2466
|
doc: state
|
|
2517
2467
|
});
|
|
@@ -2672,11 +2622,10 @@ const searchHighlighter = /*@__PURE__*/ViewPlugin.fromClass(class {
|
|
|
2672
2622
|
let state = update.state.field(searchState);
|
|
2673
2623
|
if (state != update.startState.field(searchState) || update.docChanged || update.selectionSet || update.viewportChanged) this.decorations = this.highlight(state);
|
|
2674
2624
|
}
|
|
2675
|
-
highlight(
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
} = _ref3;
|
|
2625
|
+
highlight({
|
|
2626
|
+
query,
|
|
2627
|
+
panel
|
|
2628
|
+
}) {
|
|
2680
2629
|
if (!panel || !query.spec.valid) return Decoration.none;
|
|
2681
2630
|
let {
|
|
2682
2631
|
view
|
|
@@ -2710,20 +2659,21 @@ selection to the first match after the current main selection.
|
|
|
2710
2659
|
Will wrap around to the start of the document when it reaches the
|
|
2711
2660
|
end.
|
|
2712
2661
|
*/
|
|
2713
|
-
const findNext = /*@__PURE__*/searchCommand((view,
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
} = _ref4;
|
|
2662
|
+
const findNext = /*@__PURE__*/searchCommand((view, {
|
|
2663
|
+
query
|
|
2664
|
+
}) => {
|
|
2717
2665
|
let {
|
|
2718
2666
|
to
|
|
2719
2667
|
} = view.state.selection.main;
|
|
2720
2668
|
let next = query.nextMatch(view.state, to, to);
|
|
2721
2669
|
if (!next) return false;
|
|
2722
|
-
let selection = EditorSelection.single(next.from, next.to);
|
|
2723
|
-
let config = view.state.facet(searchConfigFacet);
|
|
2724
2670
|
view.dispatch({
|
|
2725
|
-
selection
|
|
2726
|
-
|
|
2671
|
+
selection: {
|
|
2672
|
+
anchor: next.from,
|
|
2673
|
+
head: next.to
|
|
2674
|
+
},
|
|
2675
|
+
scrollIntoView: true,
|
|
2676
|
+
effects: announceMatch(view, next),
|
|
2727
2677
|
userEvent: "select.search"
|
|
2728
2678
|
});
|
|
2729
2679
|
return true;
|
|
@@ -2733,23 +2683,24 @@ Move the selection to the previous instance of the search query,
|
|
|
2733
2683
|
before the current main selection. Will wrap past the start
|
|
2734
2684
|
of the document to start searching at the end again.
|
|
2735
2685
|
*/
|
|
2736
|
-
const findPrevious = /*@__PURE__*/searchCommand((view,
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
} = _ref5;
|
|
2686
|
+
const findPrevious = /*@__PURE__*/searchCommand((view, {
|
|
2687
|
+
query
|
|
2688
|
+
}) => {
|
|
2740
2689
|
let {
|
|
2741
2690
|
state
|
|
2742
2691
|
} = view,
|
|
2743
2692
|
{
|
|
2744
2693
|
from
|
|
2745
2694
|
} = state.selection.main;
|
|
2746
|
-
let
|
|
2747
|
-
if (!
|
|
2748
|
-
let selection = EditorSelection.single(prev.from, prev.to);
|
|
2749
|
-
let config = view.state.facet(searchConfigFacet);
|
|
2695
|
+
let range = query.prevMatch(state, from, from);
|
|
2696
|
+
if (!range) return false;
|
|
2750
2697
|
view.dispatch({
|
|
2751
|
-
selection
|
|
2752
|
-
|
|
2698
|
+
selection: {
|
|
2699
|
+
anchor: range.from,
|
|
2700
|
+
head: range.to
|
|
2701
|
+
},
|
|
2702
|
+
scrollIntoView: true,
|
|
2703
|
+
effects: announceMatch(view, range),
|
|
2753
2704
|
userEvent: "select.search"
|
|
2754
2705
|
});
|
|
2755
2706
|
return true;
|
|
@@ -2757,10 +2708,9 @@ const findPrevious = /*@__PURE__*/searchCommand((view, _ref5) => {
|
|
|
2757
2708
|
/**
|
|
2758
2709
|
Select all instances of the search query.
|
|
2759
2710
|
*/
|
|
2760
|
-
const selectMatches = /*@__PURE__*/searchCommand((view,
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
} = _ref6;
|
|
2711
|
+
const selectMatches = /*@__PURE__*/searchCommand((view, {
|
|
2712
|
+
query
|
|
2713
|
+
}) => {
|
|
2764
2714
|
let ranges = query.matchAll(view.state, 1000);
|
|
2765
2715
|
if (!ranges || !ranges.length) return false;
|
|
2766
2716
|
view.dispatch({
|
|
@@ -2772,11 +2722,10 @@ const selectMatches = /*@__PURE__*/searchCommand((view, _ref6) => {
|
|
|
2772
2722
|
/**
|
|
2773
2723
|
Select all instances of the currently selected text.
|
|
2774
2724
|
*/
|
|
2775
|
-
const selectSelectionMatches =
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
} = _ref7;
|
|
2725
|
+
const selectSelectionMatches = ({
|
|
2726
|
+
state,
|
|
2727
|
+
dispatch
|
|
2728
|
+
}) => {
|
|
2780
2729
|
let sel = state.selection;
|
|
2781
2730
|
if (sel.ranges.length > 1 || sel.main.empty) return false;
|
|
2782
2731
|
let {
|
|
@@ -2799,10 +2748,9 @@ const selectSelectionMatches = _ref7 => {
|
|
|
2799
2748
|
/**
|
|
2800
2749
|
Replace the current match of the search query.
|
|
2801
2750
|
*/
|
|
2802
|
-
const replaceNext = /*@__PURE__*/searchCommand((view,
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
} = _ref8;
|
|
2751
|
+
const replaceNext = /*@__PURE__*/searchCommand((view, {
|
|
2752
|
+
query
|
|
2753
|
+
}) => {
|
|
2806
2754
|
let {
|
|
2807
2755
|
state
|
|
2808
2756
|
} = view,
|
|
@@ -2816,7 +2764,7 @@ const replaceNext = /*@__PURE__*/searchCommand((view, _ref8) => {
|
|
|
2816
2764
|
let changes = [],
|
|
2817
2765
|
selection,
|
|
2818
2766
|
replacement;
|
|
2819
|
-
let
|
|
2767
|
+
let announce = [];
|
|
2820
2768
|
if (next.from == from && next.to == to) {
|
|
2821
2769
|
replacement = state.toText(query.getReplacement(next));
|
|
2822
2770
|
changes.push({
|
|
@@ -2825,18 +2773,21 @@ const replaceNext = /*@__PURE__*/searchCommand((view, _ref8) => {
|
|
|
2825
2773
|
insert: replacement
|
|
2826
2774
|
});
|
|
2827
2775
|
next = query.nextMatch(state, next.from, next.to);
|
|
2828
|
-
|
|
2776
|
+
announce.push(EditorView.announce.of(state.phrase("replaced match on line $", state.doc.lineAt(from).number) + "."));
|
|
2829
2777
|
}
|
|
2830
2778
|
if (next) {
|
|
2831
2779
|
let off = changes.length == 0 || changes[0].from >= next.to ? 0 : next.to - next.from - replacement.length;
|
|
2832
|
-
selection =
|
|
2833
|
-
|
|
2834
|
-
|
|
2780
|
+
selection = {
|
|
2781
|
+
anchor: next.from - off,
|
|
2782
|
+
head: next.to - off
|
|
2783
|
+
};
|
|
2784
|
+
announce.push(announceMatch(view, next));
|
|
2835
2785
|
}
|
|
2836
2786
|
view.dispatch({
|
|
2837
2787
|
changes,
|
|
2838
2788
|
selection,
|
|
2839
|
-
|
|
2789
|
+
scrollIntoView: !!selection,
|
|
2790
|
+
effects: announce,
|
|
2840
2791
|
userEvent: "input.replace"
|
|
2841
2792
|
});
|
|
2842
2793
|
return true;
|
|
@@ -2845,10 +2796,9 @@ const replaceNext = /*@__PURE__*/searchCommand((view, _ref8) => {
|
|
|
2845
2796
|
Replace all instances of the search query with the given
|
|
2846
2797
|
replacement.
|
|
2847
2798
|
*/
|
|
2848
|
-
const replaceAll = /*@__PURE__*/searchCommand((view,
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
} = _ref9;
|
|
2799
|
+
const replaceAll = /*@__PURE__*/searchCommand((view, {
|
|
2800
|
+
query
|
|
2801
|
+
}) => {
|
|
2852
2802
|
if (view.state.readOnly) return false;
|
|
2853
2803
|
let changes = query.matchAll(view.state, 1e9).map(match => {
|
|
2854
2804
|
let {
|
|
@@ -3082,11 +3032,10 @@ function phrase(view, phrase) {
|
|
|
3082
3032
|
}
|
|
3083
3033
|
const AnnounceMargin = 30;
|
|
3084
3034
|
const Break = /[\s\.,:;?!]/;
|
|
3085
|
-
function announceMatch(view,
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
} = _ref10;
|
|
3035
|
+
function announceMatch(view, {
|
|
3036
|
+
from,
|
|
3037
|
+
to
|
|
3038
|
+
}) {
|
|
3090
3039
|
let line = view.state.doc.lineAt(from),
|
|
3091
3040
|
lineEnd = view.state.doc.lineAt(to).to;
|
|
3092
3041
|
let start = Math.max(line.from, from - AnnounceMargin),
|
|
@@ -3179,14 +3128,11 @@ class LintState {
|
|
|
3179
3128
|
return new LintState(ranges, panel, findDiagnostic(ranges));
|
|
3180
3129
|
}
|
|
3181
3130
|
}
|
|
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;
|
|
3131
|
+
function findDiagnostic(diagnostics, diagnostic = null, after = 0) {
|
|
3185
3132
|
let found = null;
|
|
3186
|
-
diagnostics.between(after, 1e9, (from, to,
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
} = _ref;
|
|
3133
|
+
diagnostics.between(after, 1e9, (from, to, {
|
|
3134
|
+
spec
|
|
3135
|
+
}) => {
|
|
3190
3136
|
if (diagnostic && spec.diagnostic != diagnostic) return;
|
|
3191
3137
|
found = new SelectedDiagnostic(from, to, spec.diagnostic);
|
|
3192
3138
|
return false;
|
|
@@ -3261,10 +3207,9 @@ function lintTooltip(view, pos, side) {
|
|
|
3261
3207
|
let found = [],
|
|
3262
3208
|
stackStart = 2e8,
|
|
3263
3209
|
stackEnd = 0;
|
|
3264
|
-
diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to,
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
} = _ref2;
|
|
3210
|
+
diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, {
|
|
3211
|
+
spec
|
|
3212
|
+
}) => {
|
|
3268
3213
|
if (pos >= from && pos <= to && (from == to || (pos > from || side > 0) && (pos < to || side < 0))) {
|
|
3269
3214
|
found.push(spec.diagnostic);
|
|
3270
3215
|
stackStart = Math.min(from, stackStart);
|
|
@@ -3382,7 +3327,7 @@ const lintPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {
|
|
|
3382
3327
|
}
|
|
3383
3328
|
update(update) {
|
|
3384
3329
|
let config = update.state.facet(lintConfig);
|
|
3385
|
-
if (update.docChanged || config != update.startState.facet(lintConfig)
|
|
3330
|
+
if (update.docChanged || config != update.startState.facet(lintConfig)) {
|
|
3386
3331
|
this.lintTime = Date.now() + config.delay;
|
|
3387
3332
|
if (!this.set) {
|
|
3388
3333
|
this.set = true;
|
|
@@ -3407,10 +3352,7 @@ const lintConfig = /*@__PURE__*/Facet.define({
|
|
|
3407
3352
|
}, combineConfig(input.map(i => i.config), {
|
|
3408
3353
|
delay: 750,
|
|
3409
3354
|
markerFilter: null,
|
|
3410
|
-
tooltipFilter: null
|
|
3411
|
-
needsRefresh: null
|
|
3412
|
-
}, {
|
|
3413
|
-
needsRefresh: (a, b) => !a ? b : !b ? a : u => a(u) || b(u)
|
|
3355
|
+
tooltipFilter: null
|
|
3414
3356
|
}));
|
|
3415
3357
|
},
|
|
3416
3358
|
enables: lintPlugin
|
|
@@ -3439,14 +3381,11 @@ function renderDiagnostic(view, diagnostic, inPanel) {
|
|
|
3439
3381
|
}, crelt("span", {
|
|
3440
3382
|
class: "cm-diagnosticText"
|
|
3441
3383
|
}, diagnostic.renderMessage ? diagnostic.renderMessage() : diagnostic.message), (_a = diagnostic.actions) === null || _a === void 0 ? void 0 : _a.map((action, i) => {
|
|
3442
|
-
let
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
let found = findDiagnostic(view.state.field(lintState).diagnostics, diagnostic);
|
|
3448
|
-
if (found) action.apply(view, found.from, found.to);
|
|
3449
|
-
};
|
|
3384
|
+
let click = e => {
|
|
3385
|
+
e.preventDefault();
|
|
3386
|
+
let found = findDiagnostic(view.state.field(lintState).diagnostics, diagnostic);
|
|
3387
|
+
if (found) action.apply(view, found.from, found.to);
|
|
3388
|
+
};
|
|
3450
3389
|
let {
|
|
3451
3390
|
name
|
|
3452
3391
|
} = action,
|
|
@@ -3561,10 +3500,9 @@ class LintPanel {
|
|
|
3561
3500
|
let i = 0,
|
|
3562
3501
|
needsSync = false,
|
|
3563
3502
|
newSelectedItem = null;
|
|
3564
|
-
diagnostics.between(0, this.view.state.doc.length, (_start, _end,
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
} = _ref3;
|
|
3503
|
+
diagnostics.between(0, this.view.state.doc.length, (_start, _end, {
|
|
3504
|
+
spec
|
|
3505
|
+
}) => {
|
|
3568
3506
|
let found = -1,
|
|
3569
3507
|
item;
|
|
3570
3508
|
for (let j = i; j < this.items.length; j++) if (this.items[j].diagnostic == spec.diagnostic) {
|
|
@@ -3613,11 +3551,10 @@ class LintPanel {
|
|
|
3613
3551
|
sel: newSelectedItem.dom.getBoundingClientRect(),
|
|
3614
3552
|
panel: this.list.getBoundingClientRect()
|
|
3615
3553
|
}),
|
|
3616
|
-
write:
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
} = _ref4;
|
|
3554
|
+
write: ({
|
|
3555
|
+
sel,
|
|
3556
|
+
panel
|
|
3557
|
+
}) => {
|
|
3621
3558
|
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;
|
|
3622
3559
|
}
|
|
3623
3560
|
});
|
|
@@ -3661,8 +3598,7 @@ class LintPanel {
|
|
|
3661
3598
|
return new LintPanel(view);
|
|
3662
3599
|
}
|
|
3663
3600
|
}
|
|
3664
|
-
function svg(content) {
|
|
3665
|
-
let attrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : `viewBox="0 0 40 40"`;
|
|
3601
|
+
function svg(content, attrs = `viewBox="0 0 40 40"`) {
|
|
3666
3602
|
return `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${attrs}>${encodeURIComponent(content)}</svg>')`;
|
|
3667
3603
|
}
|
|
3668
3604
|
function underline(color) {
|
|
@@ -3691,8 +3627,7 @@ const baseTheme = /*@__PURE__*/EditorView.baseTheme({
|
|
|
3691
3627
|
backgroundColor: "#444",
|
|
3692
3628
|
color: "white",
|
|
3693
3629
|
borderRadius: "3px",
|
|
3694
|
-
marginLeft: "8px"
|
|
3695
|
-
cursor: "pointer"
|
|
3630
|
+
marginLeft: "8px"
|
|
3696
3631
|
},
|
|
3697
3632
|
".cm-diagnosticSource": {
|
|
3698
3633
|
fontSize: "70%",
|
|
@@ -3900,10 +3835,9 @@ var script = defineComponent({
|
|
|
3900
3835
|
}
|
|
3901
3836
|
},
|
|
3902
3837
|
emits: ['update:modelValue', 'focus', 'blur'],
|
|
3903
|
-
setup(props,
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
} = _ref;
|
|
3838
|
+
setup(props, {
|
|
3839
|
+
emit
|
|
3840
|
+
}) {
|
|
3907
3841
|
// editor config
|
|
3908
3842
|
const root = ref();
|
|
3909
3843
|
const target = ref();
|