@onereach/ui-components 3.1.0-beta.2483.0 → 3.1.0-beta.2496.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/OrAvatar-1d385f65.js +193 -0
- package/dist/bundled/v2/OrAvatar-a54d87f6.js +115 -0
- package/dist/bundled/v2/OrBottomSheet-08c7ec73.js +174 -0
- package/dist/bundled/v2/OrButton-28addda1.js +201 -0
- package/dist/bundled/v2/OrButton-979a5e9c.js +197 -0
- package/dist/bundled/v2/OrButton-e812d1f7.js +175 -0
- package/dist/bundled/v2/OrCard-cea07ac1.js +69 -0
- package/dist/bundled/v2/OrCard-e07c7e8c.js +67 -0
- package/dist/bundled/v2/OrCardCollection-19b22ac0.js +222 -0
- package/dist/bundled/v2/OrCardCollection-a7706585.js +347 -0
- package/dist/bundled/v2/OrCarouselItem-5ba1d0d3.js +2921 -0
- package/dist/bundled/v2/OrCheckbox-445ed5cf.js +215 -0
- package/dist/bundled/v2/OrCheckbox-76849460.js +183 -0
- package/dist/bundled/v2/OrChip-ce81b0c6.js +93 -0
- package/dist/bundled/v2/OrChips-bd939cdf.js +321 -0
- package/dist/bundled/v2/OrCode-e1d5b058.js +4420 -0
- package/dist/bundled/v2/OrCollapse-f7cbcd25.js +170 -0
- package/dist/bundled/v2/OrColorPicker-8fa65edd.js +494 -0
- package/dist/bundled/v2/OrConfirm-4d08c38d.js +260 -0
- package/dist/bundled/v2/OrConfirm-f14ac69d.js +331 -0
- package/dist/bundled/v2/OrDateTimePicker-def82ca4.js +767 -0
- package/dist/bundled/v2/OrEmptyState-a38727b9.js +160 -0
- package/dist/bundled/v2/OrError-1186b62f.js +90 -0
- package/dist/bundled/v2/OrError-29f0ce95.js +54 -0
- package/dist/bundled/v2/OrErrorTag-79922468.js +80 -0
- package/dist/bundled/v2/OrExpansionPanel-7cd552fa.js +206 -0
- package/dist/bundled/v2/OrFab-c2321877.js +105 -0
- package/dist/bundled/v2/OrFloating-507e8028.js +208 -0
- package/dist/bundled/v2/OrHint-29b31ba4.js +90 -0
- package/dist/bundled/v2/OrHint-664117aa.js +57 -0
- package/dist/bundled/v2/OrIcon-05d29a78.js +130 -0
- package/dist/bundled/v2/OrIcon-90adc2bd.js +177 -0
- package/dist/bundled/v2/OrIconButton-d427d121.js +169 -0
- package/dist/bundled/v2/OrIconButton-e28d129f.js +207 -0
- package/dist/bundled/v2/OrInlineInput-916fd2b8.js +384 -0
- package/dist/bundled/v2/OrInlineInputBox-fbc52d40.js +96 -0
- package/dist/bundled/v2/OrInlineTextEdit-96469839.js +399 -0
- package/dist/bundled/v2/OrInlineTextarea-f26824e4.js +288 -0
- package/dist/bundled/v2/OrInput-059a67b6.js +427 -0
- package/dist/bundled/v2/OrInput-1589dca0.js +331 -0
- package/dist/bundled/v2/OrInputBox-4d265915.js +127 -0
- package/dist/bundled/v2/OrLabel-761500d5.js +123 -0
- package/dist/bundled/v2/OrLabel-f19ccb5f.js +80 -0
- package/dist/bundled/v2/OrLink-a407bb0d.js +123 -0
- package/dist/bundled/v2/OrList-8339eb4c.js +2875 -0
- package/dist/bundled/v2/OrListOfInputs-752b6998.js +221 -0
- package/dist/bundled/v2/OrLoader-5cfd67fb.js +114 -0
- package/dist/bundled/v2/OrLoader-dc73d8ee.js +203 -0
- package/dist/bundled/v2/OrMenu-e1cf47b8.js +142 -0
- package/dist/bundled/v2/OrMenuItem-7eb9d387.js +110 -0
- package/dist/bundled/v2/OrModal-c08c3e67.js +160 -0
- package/dist/bundled/v2/OrModal-d1cb603e.js +1462 -0
- package/dist/bundled/v2/OrNotification-50be557d.js +142 -0
- package/dist/bundled/v2/OrNotification-8695c59e.js +168 -0
- package/dist/bundled/v2/OrNumberInput-6b183931.js +227 -0
- package/dist/bundled/v2/OrOverflowMenu-243d4723.js +246 -0
- package/dist/bundled/v2/OrOverlay-4b923676.js +87 -0
- package/dist/bundled/v2/OrOverlay-5263b088.js +73 -0
- package/dist/bundled/v2/OrPagination-203a86f1.js +336 -0
- package/dist/bundled/v2/OrPassword-1867d029.js +224 -0
- package/dist/bundled/v2/OrPopover-06448d74.js +292 -0
- package/dist/bundled/v2/OrProgress-5880025c.js +226 -0
- package/dist/bundled/v2/OrProgress-e967daed.js +320 -0
- package/dist/bundled/v2/OrRadio-787e3386.js +197 -0
- package/dist/bundled/v2/OrRadio-c3655202.js +143 -0
- package/dist/bundled/v2/OrRadioGroup-fbe23f97.js +89 -0
- package/dist/bundled/v2/OrRichTextEditor-569c9cdb.js +30049 -0
- package/dist/bundled/v2/OrSearch-a8d4cf95.js +146 -0
- package/dist/bundled/v2/OrSearch-c75656ff.js +245 -0
- package/dist/bundled/v2/OrSegmentedControl-8b551ef0.js +233 -0
- package/dist/bundled/v2/OrSelect-0b9b27e9.js +544 -0
- package/dist/bundled/v2/OrSelect-39dedeb9.js +1101 -0
- package/dist/bundled/v2/OrSidebar-0d6177e2.js +351 -0
- package/dist/bundled/v2/OrSidebar-9e7fe79c.js +149 -0
- package/dist/bundled/v2/OrSidebarCollapseButton-730a948a.js +125 -0
- package/dist/bundled/v2/OrSkeletonText-1bf08dbc.js +253 -0
- package/dist/bundled/v2/OrSkeletonText-e51ca60e.js +300 -0
- package/dist/bundled/v2/OrSlider-e1408560.js +370 -0
- package/dist/bundled/v2/OrSortHeader-c39b82c5.js +126 -0
- package/dist/bundled/v2/OrStepper-24841eea.js +650 -0
- package/dist/bundled/v2/OrSwitch-855e133d.js +249 -0
- package/dist/bundled/v2/OrSwitch-d421b4d3.js +154 -0
- package/dist/bundled/v2/OrTab-4c61cad9.js +109 -0
- package/dist/bundled/v2/OrTab-f47594ad.js +95 -0
- package/dist/bundled/v2/OrTabHeaderItem-38275146.js +112 -0
- package/dist/bundled/v2/OrTabs-251baec9.js +113 -0
- package/dist/bundled/v2/OrTabs-85d7036a.js +227 -0
- package/dist/bundled/v2/OrTag-4af70bdb.js +116 -0
- package/dist/bundled/v2/OrTag-7879a9fa.js +161 -0
- package/dist/bundled/v2/OrTeleport.vue2-90147f16.js +67 -0
- package/dist/bundled/v2/OrTeleport.vue2-e9ba3054.js +61 -0
- package/dist/bundled/v2/OrText-7887212a.js +134 -0
- package/dist/bundled/v2/OrTextarea-5027c642.js +260 -0
- package/dist/bundled/v2/OrTextarea-8653f1b4.js +327 -0
- package/dist/bundled/v2/OrTextbox-dbd1eae6.js +528 -0
- package/dist/bundled/v2/OrToastContainer-a021147e.js +336 -0
- package/dist/bundled/v2/OrTooltip-e34783de.js +167 -0
- package/dist/bundled/v2/OrTooltip-e62cdd46.js +157 -0
- package/dist/bundled/v2/OrTooltipContent-592eeb27.js +73 -0
- package/dist/bundled/v2/codemirrorView-ed4b4348.js +7136 -0
- package/dist/bundled/v2/color-1f348774.js +60 -0
- package/dist/bundled/v2/components/index.d.ts +1 -1
- package/dist/bundled/v2/components/index.js +124 -230
- package/dist/bundled/v2/components/or-avatar/index.js +15 -0
- package/dist/bundled/v2/components/or-avatar-v3/index.js +7 -0
- package/dist/bundled/v2/components/or-bottom-sheet-v3/index.js +10 -0
- package/dist/bundled/v2/components/or-button/index.js +8 -0
- package/dist/bundled/v2/components/or-button-v2/OrIconButton.vue.d.ts +132 -0
- package/dist/bundled/v2/components/or-button-v2/OrTooltipWrapper.vue.d.ts +32 -0
- package/dist/bundled/v2/components/or-button-v2/index.d.ts +3 -0
- package/dist/bundled/v2/components/or-button-v2/index.js +19 -0
- package/dist/bundled/v2/components/or-button-v3/index.js +7 -0
- package/dist/bundled/v2/components/or-card/index.js +6 -0
- package/dist/bundled/v2/components/or-card-collection/index.js +27 -0
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +31 -0
- package/dist/bundled/v2/components/or-card-v3/index.js +5 -0
- package/dist/bundled/v2/components/or-carousel/index.d.ts +3 -0
- package/dist/bundled/v2/components/or-carousel/index.js +15 -0
- package/dist/bundled/v2/components/or-checkbox/index.js +15 -0
- package/dist/bundled/v2/components/or-checkbox-v3/index.js +8 -0
- package/dist/bundled/v2/components/or-chips/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-chips/index.js +18 -0
- package/dist/bundled/v2/components/or-code/index.js +27 -0
- package/dist/bundled/v2/components/or-collapse/index.js +9 -0
- package/dist/bundled/v2/components/or-color-picker/index.js +13 -0
- package/dist/bundled/v2/components/or-combined-input-v3/index.js +162 -0
- package/dist/bundled/v2/components/or-confirm/index.js +29 -0
- package/dist/bundled/v2/components/or-confirm-v3/index.js +29 -0
- package/dist/bundled/v2/components/or-date-time-picker/OrDateTimePickerCalendarItem.vue.d.ts +92 -0
- package/dist/bundled/v2/components/or-date-time-picker/index.js +24 -0
- package/dist/bundled/v2/components/or-empty-state-v3/index.js +5 -0
- package/dist/bundled/v2/components/or-error/index.js +6 -0
- package/dist/bundled/v2/components/or-error-tag-v3/index.js +6 -0
- package/dist/bundled/v2/components/or-error-v3/index.js +5 -0
- package/dist/bundled/v2/components/or-expansion-panel-v3/index.js +6 -0
- package/dist/bundled/v2/components/or-fab-v3/index.js +6 -0
- package/dist/bundled/v2/components/or-floating/index.js +11 -0
- package/dist/bundled/v2/components/or-hint/index.js +7 -0
- package/dist/bundled/v2/components/or-hint-v3/index.js +5 -0
- package/dist/bundled/v2/components/or-icon/index.js +14 -0
- package/dist/bundled/v2/components/or-icon-button-v3/index.js +16 -0
- package/dist/bundled/v2/components/or-icon-v3/index.js +5 -0
- package/dist/bundled/v2/components/or-inline-input-box-v3/index.js +5 -0
- package/dist/bundled/v2/components/or-inline-input-v3/index.js +23 -0
- package/dist/bundled/v2/components/or-inline-text-edit/index.js +22 -0
- package/dist/bundled/v2/components/or-inline-textarea-v3/index.js +23 -0
- package/dist/bundled/v2/components/or-input/index.js +13 -0
- package/dist/bundled/v2/components/or-input-box-v3/index.js +6 -0
- package/dist/bundled/v2/components/or-input-v3/index.js +26 -0
- package/dist/bundled/v2/components/or-label/index.js +7 -0
- package/dist/bundled/v2/components/or-label-v3/index.js +5 -0
- package/dist/bundled/v2/components/or-link-v3/index.js +5 -0
- package/dist/bundled/v2/components/or-list/index.js +23 -0
- package/dist/bundled/v2/components/or-list-of-inputs/index.js +27 -0
- package/dist/bundled/v2/components/or-loader/index.js +7 -0
- package/dist/bundled/v2/components/or-loader-v3/index.js +6 -0
- package/dist/bundled/v2/components/or-menu-item-v3/index.js +6 -0
- package/dist/bundled/v2/components/or-menu-v3/index.js +14 -0
- package/dist/bundled/v2/components/or-modal/index.js +21 -0
- package/dist/bundled/v2/components/or-modal-v3/index.js +17 -0
- package/dist/bundled/v2/components/or-notification/index.js +19 -0
- package/dist/bundled/v2/components/or-notification-v3/index.js +17 -0
- package/dist/bundled/v2/components/or-number-input/index.js +14 -0
- package/dist/bundled/v2/components/or-overflow-menu/index.js +21 -0
- package/dist/bundled/v2/components/or-overlay/index.js +6 -0
- package/dist/bundled/v2/components/or-overlay-v3/index.js +9 -0
- package/dist/bundled/v2/components/or-pagination-v3/index.js +19 -0
- package/dist/bundled/v2/components/or-password/index.js +26 -0
- package/dist/bundled/v2/components/or-popover-v3/OrPopover.vue.d.ts +108 -0
- package/dist/bundled/v2/components/or-popover-v3/index.js +13 -0
- package/dist/bundled/v2/components/or-progress/index.js +7 -0
- package/dist/bundled/v2/components/or-progress-v3/index.js +8 -0
- package/dist/bundled/v2/components/or-radio/index.js +7 -0
- package/dist/bundled/v2/components/or-radio-group/index.js +6 -0
- package/dist/bundled/v2/components/or-radio-v3/index.js +8 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +181 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/index.js +35 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/styles.d.ts +7 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +2 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
- package/dist/bundled/v2/components/or-search/index.js +25 -0
- package/dist/bundled/v2/components/or-search-v3/index.js +27 -0
- package/dist/bundled/v2/components/or-segmented-control-v3/index.js +5 -0
- package/dist/bundled/v2/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +49 -0
- package/dist/bundled/v2/components/or-segmented-control-v3/partials/or-segmented-control-item/styles.d.ts +3 -0
- package/dist/bundled/v2/components/or-select/OrSelect.vue.d.ts +238 -0
- package/dist/bundled/v2/components/or-select/OrSelectContent.vue.d.ts +114 -0
- package/dist/bundled/v2/components/or-select/OrSelectContentOptions.vue.d.ts +87 -0
- package/dist/bundled/v2/components/or-select/OrSelectInput.vue.d.ts +81 -0
- package/dist/bundled/v2/components/or-select/OrSelectInputValue.vue.d.ts +58 -0
- package/dist/bundled/v2/components/or-select/OrSelectMain.vue.d.ts +158 -0
- package/dist/bundled/v2/components/or-select/OrSelectOption.vue.d.ts +37 -0
- package/dist/bundled/v2/components/or-select/index.js +21 -0
- package/dist/bundled/v2/components/or-select-v3/index.js +33 -0
- package/dist/bundled/v2/components/or-sidebar/index.js +8 -0
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +19 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +18 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +18 -0
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/bundled/v2/components/or-skeleton/OrSkeletonText.vue.d.ts +73 -0
- package/dist/bundled/v2/components/or-skeleton/index.d.ts +4 -0
- package/dist/bundled/v2/components/or-skeleton/index.js +8 -0
- package/dist/bundled/v2/components/or-skeleton-v3/index.d.ts +3 -0
- package/dist/bundled/v2/components/or-skeleton-v3/index.js +7 -0
- package/dist/bundled/v2/components/or-slider/index.js +16 -0
- package/dist/bundled/v2/components/or-sort-header-v3/index.js +6 -0
- package/dist/bundled/v2/components/or-stepper/index.js +18 -0
- package/dist/bundled/v2/components/or-switch/index.js +8 -0
- package/dist/bundled/v2/components/or-switch-v3/index.js +10 -0
- package/dist/bundled/v2/components/or-tab/index.js +8 -0
- package/dist/bundled/v2/components/or-tab-header-item/index.js +7 -0
- package/dist/bundled/v2/components/or-tab-v3/index.js +5 -0
- package/dist/bundled/v2/components/or-tabs/index.js +8 -0
- package/dist/bundled/v2/components/or-tabs-v3/index.js +18 -0
- package/dist/bundled/v2/components/or-tag/index.js +16 -0
- package/dist/bundled/v2/components/or-tag-v3/index.js +17 -0
- package/dist/bundled/v2/components/or-teleport/index.js +6 -0
- package/dist/bundled/v2/components/or-teleport-v3/index.js +6 -0
- package/dist/bundled/v2/components/or-text-v3/index.js +5 -0
- package/dist/bundled/v2/components/or-textarea/index.js +13 -0
- package/dist/bundled/v2/components/or-textarea-v3/index.js +13 -0
- package/dist/bundled/v2/components/or-textbox/index.js +24 -0
- package/dist/bundled/v2/components/or-toast/OrToastContainer.vue.d.ts +93 -0
- package/dist/bundled/v2/components/or-toast/composable/index.js +5 -0
- package/dist/bundled/v2/components/or-toast/index.d.ts +6 -0
- package/dist/bundled/v2/components/or-toast/index.js +22 -0
- package/dist/bundled/v2/components/or-toast-v3/OrToastContainer.vue.d.ts +85 -0
- package/dist/bundled/v2/components/or-toast-v3/composable/index.js +5 -0
- package/dist/bundled/v2/components/or-toast-v3/index.d.ts +6 -0
- package/dist/bundled/v2/components/or-toast-v3/index.js +20 -0
- package/dist/bundled/v2/components/or-tooltip/index.d.ts +2 -0
- package/dist/bundled/v2/components/or-tooltip/index.js +13 -0
- package/dist/bundled/v2/components/or-tooltip-v3/index.js +14 -0
- package/dist/bundled/v2/constants-c5d1139f.js +43 -0
- package/dist/bundled/v2/directives/index.js +4 -3
- package/dist/bundled/v2/dom-7a41831b.js +58 -0
- package/dist/bundled/v2/dropdown-open-e2a93aaf.js +28 -0
- package/dist/bundled/v2/hooks/index.js +9 -9
- package/dist/bundled/v2/hooks/useResponsive/index.js +4 -2
- package/dist/bundled/v2/index-17f264f9.js +16 -0
- package/dist/bundled/v2/index-606dc30d.js +13307 -0
- package/dist/bundled/v2/index-dbb62f5c.js +12186 -0
- package/dist/bundled/v2/index-fa6eb4ca.js +11 -0
- package/dist/bundled/v2/index.js +133 -232
- package/dist/bundled/v2/props-78496a2d.js +12 -0
- package/dist/bundled/v2/px-to-rem-0b26b83e.js +3 -0
- package/dist/bundled/v2/types-79c4992b.js +435 -0
- package/dist/bundled/v2/useElevation-b6e7590a.js +26 -0
- package/dist/bundled/v2/useIdAttribute-cf61643f.js +22 -0
- package/dist/bundled/v2/useOverflow-bae6342f.js +65 -0
- package/dist/bundled/v2/useResponsive-e13dfbb0.js +14 -0
- package/dist/bundled/v2/useToast-1faa828c.js +189 -0
- package/dist/bundled/v2/useToast-3a3d4280.js +197 -0
- package/dist/bundled/v2/useToggle-6166bd53.js +23 -0
- package/dist/bundled/v2/useValidationAttributes-6df7bcf9.js +17 -0
- package/dist/bundled/v3/OrAvatar.vue_vue_type_script_lang-45732c41.js +144 -0
- package/dist/bundled/v3/OrAvatar.vue_vue_type_script_lang-a013315b.js +63 -0
- package/dist/bundled/v3/OrBottomSheet.vue_vue_type_script_lang-e3ef075b.js +145 -0
- package/dist/bundled/v3/OrButton-192156e6.js +41 -0
- package/dist/bundled/v3/OrButton-7b1eac5d.js +35 -0
- package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-17f34bec.js +99 -0
- package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-c0800f20.js +122 -0
- package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-ed1524cf.js +140 -0
- package/dist/bundled/v3/OrCard.vue_vue_type_script_lang-061e43c7.js +32 -0
- package/dist/bundled/v3/OrCard.vue_vue_type_script_lang-90ba001b.js +21 -0
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-4b239b01.js +190 -0
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-dda3f349.js +232 -0
- package/dist/bundled/v3/OrCarouselItem-361cd007.js +55 -0
- package/dist/bundled/v3/OrCarouselItem.vue_vue_type_script_lang-cc31281a.js +2822 -0
- package/dist/bundled/v3/OrCheckbox.vue_vue_type_script_lang-04690001.js +117 -0
- package/dist/bundled/v3/OrCheckbox.vue_vue_type_script_lang-87143106.js +88 -0
- package/dist/bundled/v3/OrChip-f8874fb2.js +67 -0
- package/dist/bundled/v3/OrChips.vue_vue_type_script_lang-3c26c28f.js +196 -0
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-e77ee0c0.js +4302 -0
- package/dist/bundled/v3/OrCollapse-d2564011.js +35 -0
- package/dist/bundled/v3/OrCollapse.vue_vue_type_script_lang-04ffe655.js +114 -0
- package/dist/bundled/v3/OrColorPicker.vue_vue_type_script_lang-3b58e79f.js +389 -0
- package/dist/bundled/v3/OrConfirm.vue_vue_type_script_lang-3eb862c3.js +160 -0
- package/dist/bundled/v3/OrConfirm.vue_vue_type_script_lang-f8a75cf0.js +237 -0
- package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-d7344d80.js +463 -0
- package/dist/bundled/v3/OrEmptyState.vue_vue_type_script_lang-4dc955fd.js +111 -0
- package/dist/bundled/v3/OrError-b43ebad8.js +17 -0
- package/dist/bundled/v3/OrError.vue_vue_type_script_lang-7305a1d9.js +46 -0
- package/dist/bundled/v3/OrError.vue_vue_type_script_lang-7c39e012.js +13 -0
- package/dist/bundled/v3/OrErrorTag.vue_vue_type_script_lang-26bd7e9a.js +37 -0
- package/dist/bundled/v3/OrExpansionPanel.vue_vue_type_script_lang-60d86e7b.js +136 -0
- package/dist/bundled/v3/OrFab.vue_vue_type_script_lang-1bc958da.js +60 -0
- package/dist/bundled/v3/OrFloating-c13f0eae.js +23 -0
- package/dist/bundled/v3/OrFloating.vue_vue_type_script_lang-c7bbb811.js +168 -0
- package/dist/bundled/v3/OrHint-c9114268.js +17 -0
- package/dist/bundled/v3/OrHint-fcd2563e.js +35 -0
- package/dist/bundled/v3/OrHint.vue_vue_type_script_lang-47d9b9ed.js +46 -0
- package/dist/bundled/v3/OrHint.vue_vue_type_script_lang-78598c8e.js +16 -0
- package/dist/bundled/v3/OrIcon-a670d8e9.js +12 -0
- package/dist/bundled/v3/OrIcon-e8ea87d0.js +39 -0
- package/dist/bundled/v3/OrIcon.vue_vue_type_script_lang-4af1b391.js +115 -0
- package/dist/bundled/v3/OrIcon.vue_vue_type_script_lang-859d76fb.js +93 -0
- package/dist/bundled/v3/OrIconButton-71a8da96.js +42 -0
- package/dist/bundled/v3/OrIconButton-b3e4997b.js +34 -0
- package/dist/bundled/v3/OrIconButton.vue_vue_type_script_lang-60d2d34d.js +163 -0
- package/dist/bundled/v3/OrIconButton.vue_vue_type_script_lang-de03b47c.js +135 -0
- package/dist/bundled/v3/OrInlineInput.vue_vue_type_script_lang-3d76b4b8.js +178 -0
- package/dist/bundled/v3/OrInlineInputBox-019a5579.js +14 -0
- package/dist/bundled/v3/OrInlineInputBox.vue_vue_type_script_lang-aff0fced.js +56 -0
- package/dist/bundled/v3/OrInlineTextEdit.vue_vue_type_script_lang-af562778.js +243 -0
- package/dist/bundled/v3/OrInlineTextarea.vue_vue_type_script_lang-5b87295b.js +156 -0
- package/dist/bundled/v3/OrInput-0141dbad.js +121 -0
- package/dist/bundled/v3/OrInput-d95faac1.js +110 -0
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-831761b8.js +166 -0
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-a415817b.js +190 -0
- package/dist/bundled/v3/OrInputBox-66241142.js +16 -0
- package/dist/bundled/v3/OrInputBox.vue_vue_type_script_lang-d07fa3ad.js +85 -0
- package/dist/bundled/v3/OrLabel-4da10c50.js +22 -0
- package/dist/bundled/v3/OrLabel-e412c532.js +20 -0
- package/dist/bundled/v3/OrLabel.vue_vue_type_script_lang-27f8b12d.js +37 -0
- package/dist/bundled/v3/OrLabel.vue_vue_type_script_lang-5ba2b33c.js +74 -0
- package/dist/bundled/v3/OrLink.vue_vue_type_script_lang-4506e3b2.js +82 -0
- package/dist/bundled/v3/OrList.vue_vue_type_script_lang-e9c5f2b1.js +2759 -0
- package/dist/bundled/v3/OrListOfInputs.vue_vue_type_script_lang-3d17ccac.js +167 -0
- package/dist/bundled/v3/OrLoader-41de68e0.js +64 -0
- package/dist/bundled/v3/OrLoader-ee97fef4.js +42 -0
- package/dist/bundled/v3/OrLoader.vue_vue_type_script_lang-1378ab8e.js +54 -0
- package/dist/bundled/v3/OrLoader.vue_vue_type_script_lang-9f6ed71f.js +111 -0
- package/dist/bundled/v3/OrMenu-97b74f43.js +27 -0
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-bff59dcb.js +86 -0
- package/dist/bundled/v3/OrMenuItem-a90b0369.js +27 -0
- package/dist/bundled/v3/OrMenuItem.vue_vue_type_script_lang-d65eec51.js +54 -0
- package/dist/bundled/v3/OrModal-0f2cb8c9.js +51 -0
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-87032cf0.js +104 -0
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-a60d4580.js +1391 -0
- package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-10b7460c.js +113 -0
- package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-e063adb5.js +82 -0
- package/dist/bundled/v3/OrNumberInput.vue_vue_type_script_lang-a25274f5.js +113 -0
- package/dist/bundled/v3/OrOverflowMenu.vue_vue_type_script_lang-794aebbb.js +135 -0
- package/dist/bundled/v3/OrOverlay.vue_vue_type_script_lang-b9bf5e50.js +33 -0
- package/dist/bundled/v3/OrOverlay.vue_vue_type_script_lang-c298c8cd.js +56 -0
- package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-8ec07f21.js +194 -0
- package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-61f6df6b.js +99 -0
- package/dist/bundled/v3/OrPopover-f09c1ad2.js +34 -0
- package/dist/bundled/v3/OrPopover.vue_vue_type_script_lang-1caf28d1.js +266 -0
- package/dist/bundled/v3/OrProgress.vue_vue_type_script_lang-3f9ec654.js +146 -0
- package/dist/bundled/v3/OrProgress.vue_vue_type_script_lang-d725e281.js +210 -0
- package/dist/bundled/v3/OrRadio.vue_vue_type_script_lang-23f050a2.js +113 -0
- package/dist/bundled/v3/OrRadio.vue_vue_type_script_lang-c956b54b.js +85 -0
- package/dist/bundled/v3/OrRadioGroup.vue_vue_type_script_lang-caea7bcb.js +47 -0
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-fe8342f6.js +29907 -0
- package/dist/bundled/v3/OrSearch.vue_vue_type_script_lang-afb27ea5.js +78 -0
- package/dist/bundled/v3/OrSearch.vue_vue_type_script_lang-f4a3f989.js +122 -0
- package/dist/bundled/v3/OrSegmentedControl.vue_vue_type_script_lang-b3069c12.js +151 -0
- package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-1574d816.js +395 -0
- package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-2016ac4e.js +815 -0
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-7c55ac0a.js +94 -0
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-bfaee185.js +291 -0
- package/dist/bundled/v3/OrSidebarCollapseButton.vue_vue_type_script_lang-15f995a0.js +75 -0
- package/dist/bundled/v3/OrSkeletonText.vue_vue_type_script_lang-5d63c696.js +184 -0
- package/dist/bundled/v3/OrSkeletonText.vue_vue_type_script_lang-f3f989c3.js +131 -0
- package/dist/bundled/v3/OrSlider.vue_vue_type_script_lang-a5a10569.js +227 -0
- package/dist/bundled/v3/OrSortHeader.vue_vue_type_script_lang-73335917.js +74 -0
- package/dist/bundled/v3/OrStepper.vue_vue_type_script_lang-c8f92d93.js +376 -0
- package/dist/bundled/v3/OrSwitch.vue_vue_type_script_lang-c995850e.js +142 -0
- package/dist/bundled/v3/OrSwitch.vue_vue_type_script_lang-f55d33f4.js +81 -0
- package/dist/bundled/v3/OrTab.vue_vue_type_script_lang-045eb56a.js +43 -0
- package/dist/bundled/v3/OrTab.vue_vue_type_script_lang-de7c7063.js +61 -0
- package/dist/bundled/v3/OrTabHeaderItem.vue_vue_type_script_lang-e1f29563.js +63 -0
- package/dist/bundled/v3/OrTabs.vue_vue_type_script_lang-40e2a6e9.js +66 -0
- package/dist/bundled/v3/OrTabs.vue_vue_type_script_lang-4b181fc5.js +167 -0
- package/dist/bundled/v3/OrTag.vue_vue_type_script_lang-429e76ad.js +94 -0
- package/dist/bundled/v3/OrTag.vue_vue_type_script_lang-6677064d.js +58 -0
- package/dist/bundled/v3/OrTeleport.vue3-12636ac0.js +33 -0
- package/dist/bundled/v3/OrTeleport.vue3.vue_vue_type_script_lang-4dc70cf1.js +17 -0
- package/dist/bundled/v3/OrText.vue_vue_type_script_lang-c12f7b15.js +93 -0
- package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-0ae5cda3.js +126 -0
- package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-13c5e976.js +187 -0
- package/dist/bundled/v3/OrTextbox.vue_vue_type_script_lang-bda20419.js +363 -0
- package/dist/bundled/v3/OrToastContainer-056470e4.js +40 -0
- package/dist/bundled/v3/OrToastContainer-0b16a650.js +41 -0
- package/dist/bundled/v3/OrToastContainer.vue_vue_type_script_lang-e495902f.js +301 -0
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-ce2158d0.js +115 -0
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-eb8ad0e1.js +87 -0
- package/dist/bundled/v3/OrTooltipContent-b0dcb862.js +43 -0
- package/dist/bundled/v3/codemirrorView-be4f561d.js +7136 -0
- package/dist/bundled/v3/color-1f348774.js +60 -0
- package/dist/bundled/v3/components/index.d.ts +1 -1
- package/dist/bundled/v3/components/index.js +144 -273
- package/dist/bundled/v3/components/or-avatar/index.js +13 -0
- package/dist/bundled/v3/components/or-avatar-v3/index.js +5 -0
- package/dist/bundled/v3/components/or-bottom-sheet-v3/index.js +6 -0
- package/dist/bundled/v3/components/or-button/index.js +6 -0
- package/dist/bundled/v3/components/or-button-v2/OrIconButton.vue.d.ts +132 -0
- package/dist/bundled/v3/components/or-button-v2/OrTooltipWrapper.vue.d.ts +32 -0
- package/dist/bundled/v3/components/or-button-v2/index.d.ts +3 -0
- package/dist/bundled/v3/components/or-button-v2/index.js +18 -0
- package/dist/bundled/v3/components/or-button-v3/index.js +5 -0
- package/dist/bundled/v3/components/or-card/index.js +2 -0
- package/dist/bundled/v3/components/or-card-collection/index.js +32 -0
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +38 -0
- package/dist/bundled/v3/components/or-card-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-carousel/index.d.ts +3 -0
- package/dist/bundled/v3/components/or-carousel/index.js +14 -0
- package/dist/bundled/v3/components/or-checkbox/index.js +13 -0
- package/dist/bundled/v3/components/or-checkbox-v3/index.js +5 -0
- package/dist/bundled/v3/components/or-chips/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-chips/index.js +18 -0
- package/dist/bundled/v3/components/or-code/index.js +31 -0
- package/dist/bundled/v3/components/or-collapse/index.js +5 -0
- package/dist/bundled/v3/components/or-color-picker/index.js +10 -0
- package/dist/bundled/v3/components/or-combined-input-v3/index.js +131 -0
- package/dist/bundled/v3/components/or-confirm/index.js +36 -0
- package/dist/bundled/v3/components/or-confirm-v3/index.js +34 -0
- package/dist/bundled/v3/components/or-date-time-picker/OrDateTimePickerCalendarItem.vue.d.ts +92 -0
- package/dist/bundled/v3/components/or-date-time-picker/index.js +28 -0
- package/dist/bundled/v3/components/or-empty-state-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-error/index.js +2 -0
- package/dist/bundled/v3/components/or-error-tag-v3/index.js +4 -0
- package/dist/bundled/v3/components/or-error-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-expansion-panel-v3/index.js +4 -0
- package/dist/bundled/v3/components/or-fab-v3/index.js +4 -0
- package/dist/bundled/v3/components/or-floating/index.js +6 -0
- package/dist/bundled/v3/components/or-hint/index.js +3 -0
- package/dist/bundled/v3/components/or-hint-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-icon/index.js +11 -0
- package/dist/bundled/v3/components/or-icon-button-v3/index.js +14 -0
- package/dist/bundled/v3/components/or-icon-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-inline-input-box-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-inline-input-v3/index.js +23 -0
- package/dist/bundled/v3/components/or-inline-text-edit/index.js +24 -0
- package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +23 -0
- package/dist/bundled/v3/components/or-input/index.js +14 -0
- package/dist/bundled/v3/components/or-input-box-v3/index.js +3 -0
- package/dist/bundled/v3/components/or-input-v3/index.js +28 -0
- package/dist/bundled/v3/components/or-label/index.js +3 -0
- package/dist/bundled/v3/components/or-label-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-link-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-list/index.js +26 -0
- package/dist/bundled/v3/components/or-list-of-inputs/index.js +33 -0
- package/dist/bundled/v3/components/or-loader/index.js +3 -0
- package/dist/bundled/v3/components/or-loader-v3/index.js +3 -0
- package/dist/bundled/v3/components/or-menu-item-v3/index.js +4 -0
- package/dist/bundled/v3/components/or-menu-v3/index.js +11 -0
- package/dist/bundled/v3/components/or-modal/index.js +21 -0
- package/dist/bundled/v3/components/or-modal-v3/index.js +16 -0
- package/dist/bundled/v3/components/or-notification/index.js +19 -0
- package/dist/bundled/v3/components/or-notification-v3/index.js +16 -0
- package/dist/bundled/v3/components/or-number-input/index.js +16 -0
- package/dist/bundled/v3/components/or-overflow-menu/index.js +22 -0
- package/dist/bundled/v3/components/or-overlay/index.js +2 -0
- package/dist/bundled/v3/components/or-overlay-v3/index.js +5 -0
- package/dist/bundled/v3/components/or-pagination-v3/index.js +21 -0
- package/dist/bundled/v3/components/or-password/index.js +31 -0
- package/dist/bundled/v3/components/or-popover-v3/OrPopover.vue.d.ts +108 -0
- package/dist/bundled/v3/components/or-popover-v3/index.js +9 -0
- package/dist/bundled/v3/components/or-progress/index.js +3 -0
- package/dist/bundled/v3/components/or-progress-v3/index.js +5 -0
- package/dist/bundled/v3/components/or-radio/index.js +3 -0
- package/dist/bundled/v3/components/or-radio-group/index.js +2 -0
- package/dist/bundled/v3/components/or-radio-v3/index.js +5 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +181 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/index.js +42 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/styles.d.ts +7 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +2 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
- package/dist/bundled/v3/components/or-search/index.js +30 -0
- package/dist/bundled/v3/components/or-search-v3/index.js +31 -0
- package/dist/bundled/v3/components/or-segmented-control-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +49 -0
- package/dist/bundled/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/styles.d.ts +3 -0
- package/dist/bundled/v3/components/or-select/OrSelect.vue.d.ts +230 -0
- package/dist/bundled/v3/components/or-select/OrSelectContent.vue.d.ts +114 -0
- package/dist/bundled/v3/components/or-select/OrSelectContentOptions.vue.d.ts +87 -0
- package/dist/bundled/v3/components/or-select/OrSelectInput.vue.d.ts +81 -0
- package/dist/bundled/v3/components/or-select/OrSelectInputValue.vue.d.ts +58 -0
- package/dist/bundled/v3/components/or-select/OrSelectMain.vue.d.ts +158 -0
- package/dist/bundled/v3/components/or-select/OrSelectOption.vue.d.ts +37 -0
- package/dist/bundled/v3/components/or-select/index.js +22 -0
- package/dist/bundled/v3/components/or-select-v3/index.js +38 -0
- package/dist/bundled/v3/components/or-sidebar/index.js +4 -0
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +18 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +17 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +53 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +1 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +17 -0
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +2 -0
- package/dist/bundled/v3/components/or-skeleton/OrSkeletonText.vue.d.ts +73 -0
- package/dist/bundled/v3/components/or-skeleton/index.d.ts +4 -0
- package/dist/bundled/v3/components/or-skeleton/index.js +4 -0
- package/dist/bundled/v3/components/or-skeleton-v3/index.d.ts +3 -0
- package/dist/bundled/v3/components/or-skeleton-v3/index.js +4 -0
- package/dist/bundled/v3/components/or-slider/index.js +14 -0
- package/dist/bundled/v3/components/or-sort-header-v3/index.js +4 -0
- package/dist/bundled/v3/components/or-stepper/index.js +18 -0
- package/dist/bundled/v3/components/or-switch/index.js +6 -0
- package/dist/bundled/v3/components/or-switch-v3/index.js +8 -0
- package/dist/bundled/v3/components/or-tab/index.js +4 -0
- package/dist/bundled/v3/components/or-tab-header-item/index.js +3 -0
- package/dist/bundled/v3/components/or-tab-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-tabs/index.js +5 -0
- package/dist/bundled/v3/components/or-tabs-v3/index.js +18 -0
- package/dist/bundled/v3/components/or-tag/index.js +14 -0
- package/dist/bundled/v3/components/or-tag-v3/index.js +16 -0
- package/dist/bundled/v3/components/or-teleport/index.js +2 -0
- package/dist/bundled/v3/components/or-teleport-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-text-v3/index.js +2 -0
- package/dist/bundled/v3/components/or-textarea/index.js +14 -0
- package/dist/bundled/v3/components/or-textarea-v3/index.js +12 -0
- package/dist/bundled/v3/components/or-textbox/index.js +28 -0
- package/dist/bundled/v3/components/or-toast/OrToastContainer.vue.d.ts +93 -0
- package/dist/bundled/v3/components/or-toast/composable/index.js +3 -0
- package/dist/bundled/v3/components/or-toast/index.d.ts +6 -0
- package/dist/bundled/v3/components/or-toast/index.js +23 -0
- package/dist/bundled/v3/components/or-toast-v3/OrToastContainer.vue.d.ts +85 -0
- package/dist/bundled/v3/components/or-toast-v3/composable/index.js +3 -0
- package/dist/bundled/v3/components/or-toast-v3/index.d.ts +6 -0
- package/dist/bundled/v3/components/or-toast-v3/index.js +21 -0
- package/dist/bundled/v3/components/or-tooltip/index.d.ts +2 -0
- package/dist/bundled/v3/components/or-tooltip/index.js +10 -0
- package/dist/bundled/v3/components/or-tooltip-v3/index.js +11 -0
- package/dist/bundled/v3/constants-c5d1139f.js +43 -0
- package/dist/bundled/v3/directives/index.js +2 -3
- package/dist/bundled/v3/dom-4f424b9d.js +58 -0
- package/dist/bundled/v3/dropdown-open-293d2de2.js +28 -0
- package/dist/bundled/v3/hooks/index.js +7 -9
- package/dist/bundled/v3/hooks/useResponsive/index.js +2 -2
- package/dist/bundled/v3/index-01519e46.js +15 -0
- package/dist/bundled/v3/index-d8b799f5.js +12186 -0
- package/dist/bundled/v3/index-e8bdb625.js +13307 -0
- package/dist/bundled/v3/index.js +3211 -335
- package/dist/bundled/v3/props-78496a2d.js +12 -0
- package/dist/bundled/v3/px-to-rem-0b26b83e.js +3 -0
- package/dist/bundled/v3/types-f428a884.js +343 -0
- package/dist/bundled/v3/useElevation-e8a2ce89.js +25 -0
- package/dist/bundled/v3/useIdAttribute-b2e42f31.js +21 -0
- package/dist/bundled/v3/useOverflow-6dce216b.js +64 -0
- package/dist/bundled/v3/useResponsive-9d397e2a.js +13 -0
- package/dist/bundled/v3/useToast-4d4329cd.js +196 -0
- package/dist/bundled/v3/useToast-d5b3c109.js +188 -0
- package/dist/bundled/v3/useToggle-09b6cb90.js +22 -0
- package/dist/bundled/v3/useValidationAttributes-5428d8fa.js +16 -0
- package/dist/esm/v2/OrAvatar-b75af823.js +113 -0
- package/dist/esm/v2/OrButton-12d5d556.js +75 -0
- package/dist/esm/v2/OrCardCollection-1583425b.js +221 -0
- package/dist/esm/v2/OrCardCollection-f4c27d14.js +346 -0
- package/dist/esm/v2/OrCarouselItem-d20717ec.js +281 -0
- package/dist/esm/v2/OrCheckbox-63d444f1.js +181 -0
- package/dist/esm/v2/OrChips-7f85a4ba.js +82 -0
- package/dist/esm/v2/OrChips.vue_rollup-plugin-vue_styles.0-8d277377.js +325 -0
- package/dist/esm/v2/OrCode-fd7c026c.js +556 -0
- package/dist/esm/v2/OrConfirm-216060ac.js +329 -0
- package/dist/esm/v2/OrConfirm-64e815c7.js +258 -0
- package/dist/esm/v2/OrDateTimePicker-85e5e03e.js +765 -0
- package/dist/esm/v2/OrIcon-dd72b52f.js +175 -0
- package/dist/esm/v2/OrIconButton-0984afde.js +64 -0
- package/dist/esm/v2/OrIconButton-5c4ef664.js +168 -0
- package/dist/esm/v2/OrIconButton.vue_rollup-plugin-vue_styles.0-acd57933.js +294 -0
- package/dist/esm/v2/OrInlineInput-46e7f140.js +383 -0
- package/dist/esm/v2/OrInlineTextEdit-f950e6d2.js +398 -0
- package/dist/esm/v2/OrInlineTextarea-d016f618.js +287 -0
- package/dist/esm/v2/OrInput-9e6040e4.js +426 -0
- package/dist/esm/v2/OrList-160e60f2.js +296 -0
- package/dist/esm/v2/OrListOfInputs-9a08a3ee.js +220 -0
- package/dist/esm/v2/OrMenu-fb119a7b.js +140 -0
- package/dist/esm/v2/OrModal-195ae7b6.js +198 -0
- package/dist/esm/v2/OrModal-b759863f.js +158 -0
- package/dist/esm/v2/OrNotification-48cd0779.js +141 -0
- package/dist/esm/v2/OrNotification-f9e48250.js +166 -0
- package/dist/esm/v2/OrOverflowMenu-1a82785c.js +244 -0
- package/dist/esm/v2/OrPagination-dc27788c.js +336 -0
- package/dist/esm/v2/OrPassword-239dfa7a.js +222 -0
- package/dist/esm/v2/OrPopover-aa9f4918.js +290 -0
- package/dist/esm/v2/OrRichTextEditor-52fb3942.js +676 -0
- package/dist/esm/v2/OrSearch-2fbdbec9.js +243 -0
- package/dist/esm/v2/OrSearch-da9725b4.js +144 -0
- package/dist/esm/v2/OrSelect-03e79c4b.js +1091 -0
- package/dist/esm/v2/OrSelect-8307ad20.js +543 -0
- package/dist/esm/v2/OrSidebar-5ca2144a.js +349 -0
- package/dist/esm/v2/OrSidebarCollapseButton-b8e678d4.js +123 -0
- package/dist/esm/v2/OrSkeletonText-6a6f285d.js +249 -0
- package/dist/esm/v2/OrSkeletonText-ee42a9e9.js +296 -0
- package/dist/esm/v2/OrSlider-ded83b5c.js +368 -0
- package/dist/esm/v2/OrStepper-5286720c.js +644 -0
- package/dist/esm/v2/OrTabs-32d46f77.js +226 -0
- package/dist/esm/v2/OrTag-0153f01d.js +159 -0
- package/dist/esm/v2/OrTag-2845a49f.js +114 -0
- package/dist/esm/v2/OrTextbox-cd85a59f.js +528 -0
- package/dist/esm/v2/OrToastContainer-41b56042.js +334 -0
- package/dist/esm/v2/OrTooltip-cefc51f9.js +68 -0
- package/dist/esm/v2/OrTooltip-f5d1e4f0.js +165 -0
- package/dist/esm/v2/OrTooltip.vue_rollup-plugin-vue_styles.0-154aac4c.js +155 -0
- package/dist/esm/v2/codemirrorView-2e87c938.js +184 -0
- package/dist/esm/v2/components/index.d.ts +1 -1
- package/dist/esm/v2/components/index.js +74 -60
- package/dist/esm/v2/components/or-avatar/index.js +3 -4
- package/dist/esm/v2/components/or-button-v2/OrIconButton.vue.d.ts +132 -0
- package/dist/esm/v2/components/or-button-v2/OrTooltipWrapper.vue.d.ts +32 -0
- package/dist/esm/v2/components/or-button-v2/index.d.ts +1 -1
- package/dist/esm/v2/components/or-button-v2/index.js +7 -9
- package/dist/esm/v2/components/or-card-collection/index.js +7 -9
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/esm/v2/components/or-card-collection-v3/index.js +7 -7
- package/dist/esm/v2/components/or-carousel/index.d.ts +3 -2
- package/dist/esm/v2/components/or-carousel/index.js +3 -5
- package/dist/esm/v2/components/or-checkbox/index.js +3 -4
- package/dist/esm/v2/components/or-chips/OrChipsInput.vue.d.ts +82 -0
- package/dist/esm/v2/components/or-chips/index.d.ts +1 -1
- package/dist/esm/v2/components/or-chips/index.js +4 -6
- package/dist/esm/v2/components/or-code/index.js +7 -9
- package/dist/esm/v2/components/or-confirm/index.js +8 -10
- package/dist/esm/v2/components/or-confirm-v3/index.js +5 -5
- package/dist/esm/v2/components/or-date-time-picker/OrDateTimePickerCalendarItem.vue.d.ts +92 -0
- package/dist/esm/v2/components/or-date-time-picker/index.js +6 -8
- package/dist/esm/v2/components/or-icon/index.js +2 -3
- package/dist/esm/v2/components/or-icon-button-v3/index.js +3 -3
- package/dist/esm/v2/components/or-inline-input-v3/index.js +4 -4
- package/dist/esm/v2/components/or-inline-text-edit/index.js +6 -8
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +4 -4
- package/dist/esm/v2/components/or-input-v3/index.js +4 -4
- package/dist/esm/v2/components/or-list/index.js +7 -9
- package/dist/esm/v2/components/or-list-of-inputs/index.js +8 -10
- package/dist/esm/v2/components/or-menu-v3/index.js +2 -2
- package/dist/esm/v2/components/or-modal/index.js +6 -8
- package/dist/esm/v2/components/or-modal-v3/index.js +4 -4
- package/dist/esm/v2/components/or-notification/index.js +6 -8
- package/dist/esm/v2/components/or-notification-v3/index.js +4 -4
- package/dist/esm/v2/components/or-overflow-menu/OrOverflowMenuItem.vue.d.ts +75 -0
- package/dist/esm/v2/components/or-overflow-menu/index.js +7 -9
- package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v2/components/or-password/index.js +6 -8
- package/dist/esm/v2/components/or-popover-v3/OrPopover.vue.d.ts +0 -11
- package/dist/esm/v2/components/or-popover-v3/index.js +1 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +181 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +56 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +7 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +5 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
- package/dist/esm/v2/components/or-search/index.js +6 -8
- package/dist/esm/v2/components/or-search-v3/index.js +5 -5
- package/dist/esm/v2/components/or-select/OrSelect.vue.d.ts +16 -20
- package/dist/esm/v2/components/or-select/OrSelectContent.vue.d.ts +114 -0
- package/dist/esm/v2/components/or-select/OrSelectContentEmpty.vue.d.ts +63 -0
- package/dist/esm/v2/components/or-select/OrSelectContentOptions.vue.d.ts +87 -0
- package/dist/esm/v2/components/or-select/OrSelectInput.vue.d.ts +81 -0
- package/dist/esm/v2/components/or-select/OrSelectInputValue.vue.d.ts +58 -0
- package/dist/esm/v2/components/or-select/OrSelectMain.vue.d.ts +158 -0
- package/dist/esm/v2/components/or-select/OrSelectOption.vue.d.ts +37 -0
- package/dist/esm/v2/components/or-select/OrSelectSearchOptions.vue.d.ts +38 -0
- package/dist/esm/v2/components/or-select/index.js +5 -7
- package/dist/esm/v2/components/or-select-v3/index.js +6 -6
- package/dist/esm/v2/components/or-sidebar-v3/index.js +5 -5
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +4 -4
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +4 -4
- package/dist/esm/v2/components/or-skeleton/OrSkeletonText.vue.d.ts +73 -0
- package/dist/esm/v2/components/or-skeleton/index.d.ts +3 -3
- package/dist/esm/v2/components/or-skeleton/index.js +1 -4
- package/dist/esm/v2/components/or-skeleton-v3/index.d.ts +3 -3
- package/dist/esm/v2/components/or-skeleton-v3/index.js +1 -4
- package/dist/esm/v2/components/or-slider/index.js +3 -4
- package/dist/esm/v2/components/or-stepper/OrStepperButtonOptions.vue.d.ts +73 -0
- package/dist/esm/v2/components/or-stepper/OrStepperOptionHorizontal.vue.d.ts +106 -0
- package/dist/esm/v2/components/or-stepper/OrStepperOptionVertical.vue.d.ts +106 -0
- package/dist/esm/v2/components/or-stepper/OrStepperTitle.vue.d.ts +66 -0
- package/dist/esm/v2/components/or-stepper/StatusIcon.vue.d.ts +22 -0
- package/dist/esm/v2/components/or-stepper/index.js +6 -8
- package/dist/esm/v2/components/or-tabs-v3/index.js +3 -3
- package/dist/esm/v2/components/or-tag/index.js +3 -4
- package/dist/esm/v2/components/or-tag-v3/index.js +4 -4
- package/dist/esm/v2/components/or-textbox/index.js +6 -8
- package/dist/esm/v2/components/or-toast/OrToastContainer.vue.d.ts +93 -0
- package/dist/esm/v2/components/or-toast/index.d.ts +3 -2
- package/dist/esm/v2/components/or-toast/index.js +6 -8
- package/dist/esm/v2/components/or-toast-v3/OrToastContainer.vue.d.ts +85 -0
- package/dist/esm/v2/components/or-toast-v3/index.d.ts +3 -2
- package/dist/esm/v2/components/or-toast-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tooltip/index.d.ts +1 -1
- package/dist/esm/v2/components/or-tooltip/index.js +4 -5
- package/dist/esm/v2/components/or-tooltip-v3/index.js +2 -2
- package/dist/esm/v2/index.js +74 -60
- package/dist/esm/v2/types-1e607d9c.js +432 -0
- package/dist/esm/v3/OrAvatar-986baa65.js +89 -0
- package/dist/esm/v3/OrCardCollection-70131a12.js +189 -0
- package/dist/esm/v3/OrCardCollection-8bdbf9b7.js +293 -0
- package/dist/esm/v3/OrCarouselItem-a3a855e8.js +238 -0
- package/dist/esm/v3/OrCheckbox-8d8887ea.js +149 -0
- package/dist/esm/v3/OrChips-d6227d21.js +301 -0
- package/dist/esm/v3/OrCode-b5822f4e.js +522 -0
- package/dist/esm/v3/OrConfirm-8067c5c4.js +299 -0
- package/dist/esm/v3/OrConfirm-f408faf5.js +214 -0
- package/dist/esm/v3/OrDateTimePicker-30749526.js +680 -0
- package/dist/esm/v3/OrIcon-ed3e10b4.js +152 -0
- package/dist/esm/v3/OrIconButton-41ee266c.js +142 -0
- package/dist/esm/v3/OrIconButton-e6e83eae.js +345 -0
- package/dist/esm/v3/OrInlineInput-0ebb39b5.js +255 -0
- package/dist/esm/v3/OrInlineTextEdit-328c89ca.js +338 -0
- package/dist/esm/v3/OrInlineTextarea-9fe81d0c.js +232 -0
- package/dist/esm/v3/OrInput-18a1b41a.js +280 -0
- package/dist/esm/v3/OrList-3c73e593.js +257 -0
- package/dist/esm/v3/OrListOfInputs-5a834c95.js +163 -0
- package/dist/esm/v3/OrMenu-693b2bb8.js +111 -0
- package/dist/esm/v3/OrModal-18b6a0d2.js +135 -0
- package/dist/esm/v3/OrModal-f3b2e0f4.js +163 -0
- package/dist/esm/v3/OrNotification-6d2e0cf5.js +114 -0
- package/dist/esm/v3/OrNotification-b8a59ce3.js +137 -0
- package/dist/esm/v3/OrOverflowMenu-08626d66.js +185 -0
- package/dist/esm/v3/OrPagination-9f8380a9.js +297 -0
- package/dist/esm/v3/OrPassword-4a37f3ac.js +162 -0
- package/dist/esm/v3/OrPopover-52250a03.js +273 -0
- package/dist/esm/v3/OrRichTextEditor-e3177077.js +636 -0
- package/dist/esm/v3/OrSearch-1f80760e.js +188 -0
- package/dist/esm/v3/OrSearch-b6a0f0e6.js +105 -0
- package/dist/esm/v3/OrSelect-88e5dfaf.js +803 -0
- package/dist/esm/v3/OrSelect-c3a50846.js +507 -0
- package/dist/esm/v3/OrSidebar-22253d76.js +313 -0
- package/dist/esm/v3/OrSidebarCollapseButton-5154e452.js +94 -0
- package/dist/esm/v3/OrSkeletonText-0546754d.js +180 -0
- package/dist/esm/v3/OrSkeletonText-718a89f0.js +224 -0
- package/dist/esm/v3/OrSlider-858576e2.js +310 -0
- package/dist/esm/v3/OrStepper-cf0598d6.js +426 -0
- package/dist/esm/v3/OrTabs-6ee4b984.js +205 -0
- package/dist/esm/v3/OrTag-2192a3cf.js +86 -0
- package/dist/esm/v3/OrTag-43ca7029.js +123 -0
- package/dist/esm/v3/OrTextbox-b025d6e4.js +493 -0
- package/dist/esm/v3/OrToastContainer-70cd8d1d.js +280 -0
- package/dist/esm/v3/OrTooltip-02f07fa2.js +141 -0
- package/dist/esm/v3/OrTooltip-8d7385bc.js +165 -0
- package/dist/esm/v3/codemirrorView-2e87c938.js +184 -0
- package/dist/esm/v3/components/index.d.ts +1 -1
- package/dist/esm/v3/components/index.js +70 -56
- package/dist/esm/v3/components/or-avatar/index.js +3 -4
- package/dist/esm/v3/components/or-button-v2/OrIconButton.vue.d.ts +132 -0
- package/dist/esm/v3/components/or-button-v2/OrTooltipWrapper.vue.d.ts +32 -0
- package/dist/esm/v3/components/or-button-v2/index.d.ts +1 -1
- package/dist/esm/v3/components/or-button-v2/index.js +3 -5
- package/dist/esm/v3/components/or-card-collection/index.js +5 -7
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/esm/v3/components/or-card-collection-v3/index.js +7 -7
- package/dist/esm/v3/components/or-carousel/index.d.ts +3 -2
- package/dist/esm/v3/components/or-carousel/index.js +3 -5
- package/dist/esm/v3/components/or-checkbox/index.js +3 -4
- package/dist/esm/v3/components/or-chips/OrChipsInput.vue.d.ts +82 -0
- package/dist/esm/v3/components/or-chips/index.d.ts +1 -1
- package/dist/esm/v3/components/or-chips/index.js +3 -5
- package/dist/esm/v3/components/or-code/index.js +5 -7
- package/dist/esm/v3/components/or-confirm/index.js +5 -7
- package/dist/esm/v3/components/or-confirm-v3/index.js +5 -5
- package/dist/esm/v3/components/or-date-time-picker/OrDateTimePickerCalendarItem.vue.d.ts +92 -0
- package/dist/esm/v3/components/or-date-time-picker/index.js +4 -6
- package/dist/esm/v3/components/or-icon/index.js +2 -3
- package/dist/esm/v3/components/or-icon-button-v3/index.js +3 -3
- package/dist/esm/v3/components/or-inline-input-v3/index.js +4 -4
- package/dist/esm/v3/components/or-inline-text-edit/index.js +4 -6
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +4 -4
- package/dist/esm/v3/components/or-input-v3/index.js +4 -4
- package/dist/esm/v3/components/or-list/index.js +4 -6
- package/dist/esm/v3/components/or-list-of-inputs/index.js +5 -7
- package/dist/esm/v3/components/or-menu-v3/index.js +2 -2
- package/dist/esm/v3/components/or-modal/index.js +4 -6
- package/dist/esm/v3/components/or-modal-v3/index.js +4 -4
- package/dist/esm/v3/components/or-notification/index.js +4 -6
- package/dist/esm/v3/components/or-notification-v3/index.js +4 -4
- package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenuItem.vue.d.ts +75 -0
- package/dist/esm/v3/components/or-overflow-menu/index.js +4 -6
- package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
- package/dist/esm/v3/components/or-password/index.js +4 -6
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +0 -11
- package/dist/esm/v3/components/or-popover-v3/index.js +1 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +181 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +54 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +7 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +5 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
- package/dist/esm/v3/components/or-search/index.js +4 -6
- package/dist/esm/v3/components/or-search-v3/index.js +5 -5
- package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +2 -2
- package/dist/esm/v3/components/or-select/OrSelectContent.vue.d.ts +114 -0
- package/dist/esm/v3/components/or-select/OrSelectContentEmpty.vue.d.ts +63 -0
- package/dist/esm/v3/components/or-select/OrSelectContentOptions.vue.d.ts +87 -0
- package/dist/esm/v3/components/or-select/OrSelectInput.vue.d.ts +81 -0
- package/dist/esm/v3/components/or-select/OrSelectInputValue.vue.d.ts +58 -0
- package/dist/esm/v3/components/or-select/OrSelectMain.vue.d.ts +158 -0
- package/dist/esm/v3/components/or-select/OrSelectOption.vue.d.ts +37 -0
- package/dist/esm/v3/components/or-select/OrSelectSearchOptions.vue.d.ts +38 -0
- package/dist/esm/v3/components/or-select/index.js +5 -7
- package/dist/esm/v3/components/or-select-v3/index.js +6 -6
- package/dist/esm/v3/components/or-sidebar-v3/index.js +5 -5
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +4 -4
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +4 -4
- package/dist/esm/v3/components/or-skeleton/OrSkeletonText.vue.d.ts +73 -0
- package/dist/esm/v3/components/or-skeleton/index.d.ts +3 -3
- package/dist/esm/v3/components/or-skeleton/index.js +1 -4
- package/dist/esm/v3/components/or-skeleton-v3/index.d.ts +3 -3
- package/dist/esm/v3/components/or-skeleton-v3/index.js +1 -4
- package/dist/esm/v3/components/or-slider/index.js +3 -4
- package/dist/esm/v3/components/or-stepper/OrStepperButtonOptions.vue.d.ts +73 -0
- package/dist/esm/v3/components/or-stepper/OrStepperOptionHorizontal.vue.d.ts +106 -0
- package/dist/esm/v3/components/or-stepper/OrStepperOptionVertical.vue.d.ts +106 -0
- package/dist/esm/v3/components/or-stepper/OrStepperTitle.vue.d.ts +66 -0
- package/dist/esm/v3/components/or-stepper/StatusIcon.vue.d.ts +22 -0
- package/dist/esm/v3/components/or-stepper/index.js +4 -6
- package/dist/esm/v3/components/or-tabs-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tag/index.js +3 -4
- package/dist/esm/v3/components/or-tag-v3/index.js +4 -4
- package/dist/esm/v3/components/or-textbox/index.js +4 -6
- package/dist/esm/v3/components/or-toast/OrToastContainer.vue.d.ts +93 -0
- package/dist/esm/v3/components/or-toast/index.d.ts +3 -2
- package/dist/esm/v3/components/or-toast/index.js +4 -6
- package/dist/esm/v3/components/or-toast-v3/OrToastContainer.vue.d.ts +85 -0
- package/dist/esm/v3/components/or-toast-v3/index.d.ts +3 -2
- package/dist/esm/v3/components/or-toast-v3/index.js +4 -4
- package/dist/esm/v3/components/or-tooltip/index.d.ts +1 -1
- package/dist/esm/v3/components/or-tooltip/index.js +3 -4
- package/dist/esm/v3/components/or-tooltip-v3/index.js +2 -2
- package/dist/esm/v3/index.js +70 -56
- package/dist/esm/v3/types-9ab3399d.js +378 -0
- package/package.json +27 -35
- package/src/components/index.ts +1 -1
- package/src/components/or-button-v2/OrIconButton.stories.ts +134 -0
- package/src/components/or-button-v2/OrIconButton.vue +257 -0
- package/src/components/or-button-v2/OrTooltipWrapper.vue +49 -0
- package/src/components/or-button-v2/index.ts +1 -1
- package/src/components/or-card-collection-v3/OrCardCollection.vue +1 -1
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +41 -0
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +42 -0
- package/src/components/or-carousel/OrCarousel.stories.ts +1 -1
- package/src/components/or-carousel/index.ts +4 -2
- package/src/components/or-chips/OrChip.vue +109 -0
- package/src/components/or-chips/OrChips.vue +1 -1
- package/src/components/or-chips/OrChipsInput.vue +140 -0
- package/src/components/or-chips/index.ts +1 -1
- package/src/components/or-date-time-picker/OrDateTimePicker.vue +22 -22
- package/src/components/or-date-time-picker/OrDateTimePickerCalendarItem.vue +112 -0
- package/src/components/or-overflow-menu/OrOverflowMenu.vue +1 -1
- package/src/components/or-overflow-menu/OrOverflowMenuItem.vue +77 -0
- package/src/components/or-popover-v3/OrPopover.vue +0 -6
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +7 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +79 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +577 -0
- package/src/components/or-rich-text-editor-v3/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +72 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +252 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +110 -0
- package/src/components/or-select/OrSelect.vue +1 -1
- package/src/components/or-select/OrSelectContent.stories.ts +192 -0
- package/src/components/or-select/OrSelectContent.vue +165 -0
- package/src/components/or-select/OrSelectContentEmpty.vue +62 -0
- package/src/components/or-select/OrSelectContentOptions.vue +64 -0
- package/src/components/or-select/OrSelectInput.stories.ts +116 -0
- package/src/components/or-select/OrSelectInput.vue +167 -0
- package/src/components/or-select/OrSelectInputValue.vue +111 -0
- package/src/components/or-select/OrSelectMain.vue +203 -0
- package/src/components/or-select/OrSelectOption.vue +80 -0
- package/src/components/or-select/OrSelectSearchOptions.vue +101 -0
- package/src/components/or-select-v3/OrSelect.vue +1 -1
- package/src/components/or-skeleton/OrSkeleton.stories.ts +3 -4
- package/src/components/or-skeleton/OrSkeletonCircle.stories.ts +35 -0
- package/src/components/or-skeleton/OrSkeletonCircle.vue +56 -0
- package/src/components/or-skeleton/OrSkeletonRect.stories.ts +53 -0
- package/src/components/or-skeleton/OrSkeletonRect.vue +59 -0
- package/src/components/or-skeleton/OrSkeletonText.stories.ts +52 -0
- package/src/components/or-skeleton/OrSkeletonText.vue +105 -0
- package/src/components/or-skeleton/index.ts +3 -3
- package/src/components/or-skeleton-v3/OrSkeleton.stories3.ts +3 -3
- package/src/components/or-skeleton-v3/OrSkeletonCircle.vue +68 -0
- package/src/components/or-skeleton-v3/OrSkeletonRect.vue +72 -0
- package/src/components/or-skeleton-v3/OrSkeletonText.vue +110 -0
- package/src/components/or-skeleton-v3/index.ts +3 -3
- package/src/components/or-stepper/OrStepper.vue +3 -3
- package/src/components/or-stepper/OrStepperButtonOptions.vue +72 -0
- package/src/components/or-stepper/StatusIcon.vue +80 -0
- package/src/components/or-toast/OrToastContainer.stories.ts +66 -0
- package/src/components/or-toast/OrToastContainer.vue +247 -0
- package/src/components/or-toast/index.ts +3 -2
- package/src/components/or-toast-v3/OrToastContainer.stories3.ts +75 -0
- package/src/components/or-toast-v3/OrToastContainer.vue +211 -0
- package/src/components/or-toast-v3/index.ts +3 -2
- package/src/components/or-tooltip/OrTooltip.vue +1 -1
- package/src/components/or-tooltip/index.ts +1 -1
- package/dist/bundled/v2/components/OrAvatar/OrAvatar.js +0 -117
- package/dist/bundled/v2/components/OrAvatar/constants.js +0 -8
- package/dist/bundled/v2/components/OrAvatar/index.js +0 -17
- package/dist/bundled/v2/components/OrAvatarV3/OrAvatar.js +0 -118
- package/dist/bundled/v2/components/OrAvatarV3/index.js +0 -12
- package/dist/bundled/v2/components/OrAvatarV3/props.js +0 -19
- package/dist/bundled/v2/components/OrAvatarV3/styles.js +0 -65
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +0 -142
- package/dist/bundled/v2/components/OrBottomSheetV3/index.js +0 -11
- package/dist/bundled/v2/components/OrBottomSheetV3/styles.js +0 -37
- package/dist/bundled/v2/components/OrButton/OrButton.js +0 -174
- package/dist/bundled/v2/components/OrButton/constants.js +0 -25
- package/dist/bundled/v2/components/OrButton/index.js +0 -8
- package/dist/bundled/v2/components/OrButtonV2/OrButton.js +0 -185
- package/dist/bundled/v2/components/OrButtonV2/constants.js +0 -43
- package/dist/bundled/v2/components/OrButtonV2/index.d.ts +0 -3
- package/dist/bundled/v2/components/OrButtonV2/index.js +0 -21
- package/dist/bundled/v2/components/OrButtonV3/OrButton.js +0 -118
- package/dist/bundled/v2/components/OrButtonV3/index.js +0 -9
- package/dist/bundled/v2/components/OrButtonV3/props.js +0 -21
- package/dist/bundled/v2/components/OrButtonV3/styles.js +0 -67
- package/dist/bundled/v2/components/OrCard/OrCard.js +0 -65
- package/dist/bundled/v2/components/OrCard/index.js +0 -4
- package/dist/bundled/v2/components/OrCardCollection/OrCardCollection.js +0 -236
- package/dist/bundled/v2/components/OrCardCollection/constants.js +0 -7
- package/dist/bundled/v2/components/OrCardCollection/index.js +0 -30
- package/dist/bundled/v2/components/OrCardCollection/types.js +0 -1
- package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +0 -347
- package/dist/bundled/v2/components/OrCardCollectionV3/index.js +0 -55
- package/dist/bundled/v2/components/OrCardCollectionV3/props.js +0 -16
- package/dist/bundled/v2/components/OrCardCollectionV3/styles.js +0 -30
- package/dist/bundled/v2/components/OrCardCollectionV3/types.js +0 -1
- package/dist/bundled/v2/components/OrCardV3/OrCard.js +0 -54
- package/dist/bundled/v2/components/OrCardV3/index.js +0 -4
- package/dist/bundled/v2/components/OrCardV3/styles.js +0 -15
- package/dist/bundled/v2/components/OrCarousel/OrCarousel.js +0 -2873
- package/dist/bundled/v2/components/OrCarousel/constants.js +0 -21
- package/dist/bundled/v2/components/OrCarousel/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrCarousel/index.js +0 -18
- package/dist/bundled/v2/components/OrCarouselItem/OrCarouselItem.js +0 -41
- package/dist/bundled/v2/components/OrCarouselItem/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrCarouselItem/index.js +0 -3
- package/dist/bundled/v2/components/OrCheckbox/OrCheckbox.js +0 -191
- package/dist/bundled/v2/components/OrCheckbox/index.js +0 -16
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +0 -187
- package/dist/bundled/v2/components/OrCheckboxV3/index.js +0 -10
- package/dist/bundled/v2/components/OrCheckboxV3/styles.js +0 -31
- package/dist/bundled/v2/components/OrChip/OrChip.js +0 -102
- package/dist/bundled/v2/components/OrChip/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrChip/index.js +0 -16
- package/dist/bundled/v2/components/OrChips/OrChips.js +0 -323
- package/dist/bundled/v2/components/OrChips/constants.js +0 -10
- package/dist/bundled/v2/components/OrChips/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrChips/index.js +0 -20
- package/dist/bundled/v2/components/OrCode/OrCode.js +0 -4094
- package/dist/bundled/v2/components/OrCode/constants.js +0 -11
- package/dist/bundled/v2/components/OrCode/index.js +0 -32
- package/dist/bundled/v2/components/OrCode/lang.js +0 -3
- package/dist/bundled/v2/components/OrCode/theme.js +0 -189
- package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +0 -168
- package/dist/bundled/v2/components/OrCollapse/index.js +0 -7
- package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +0 -167
- package/dist/bundled/v2/components/OrColorPicker/constants.js +0 -323
- package/dist/bundled/v2/components/OrColorPicker/index.js +0 -15
- package/dist/bundled/v2/components/OrColorPicker/types.js +0 -1
- package/dist/bundled/v2/components/OrColorPicker/utils/defultPalette.js +0 -15
- package/dist/bundled/v2/components/OrCombinedInputV3/OrCombinedInput.js +0 -148
- package/dist/bundled/v2/components/OrCombinedInputV3/index.js +0 -12
- package/dist/bundled/v2/components/OrCombinedInputV3/props.js +0 -1
- package/dist/bundled/v2/components/OrCombinedInputV3/styles.js +0 -16
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +0 -280
- package/dist/bundled/v2/components/OrConfirm/index.js +0 -32
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +0 -322
- package/dist/bundled/v2/components/OrConfirmV3/index.js +0 -51
- package/dist/bundled/v2/components/OrConfirmV3/props.js +0 -7
- package/dist/bundled/v2/components/OrConfirmV3/styles.js +0 -47
- package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +0 -759
- package/dist/bundled/v2/components/OrDateTimePicker/constants.js +0 -20
- package/dist/bundled/v2/components/OrDateTimePicker/index.js +0 -27
- package/dist/bundled/v2/components/OrEmptyStateV3/OrEmptyState.js +0 -111
- package/dist/bundled/v2/components/OrEmptyStateV3/index.js +0 -5
- package/dist/bundled/v2/components/OrEmptyStateV3/props.js +0 -7
- package/dist/bundled/v2/components/OrEmptyStateV3/styles.js +0 -46
- package/dist/bundled/v2/components/OrEmptyStateV3/types.js +0 -1
- package/dist/bundled/v2/components/OrError/OrError.js +0 -52
- package/dist/bundled/v2/components/OrError/index.js +0 -4
- package/dist/bundled/v2/components/OrErrorTagV3/OrErrorTag.js +0 -67
- package/dist/bundled/v2/components/OrErrorTagV3/index.js +0 -7
- package/dist/bundled/v2/components/OrErrorTagV3/styles.js +0 -15
- package/dist/bundled/v2/components/OrErrorV3/OrError.js +0 -71
- package/dist/bundled/v2/components/OrErrorV3/index.js +0 -4
- package/dist/bundled/v2/components/OrErrorV3/styles.js +0 -19
- package/dist/bundled/v2/components/OrExpansionPanelV3/OrExpansionPanel.js +0 -147
- package/dist/bundled/v2/components/OrExpansionPanelV3/index.js +0 -8
- package/dist/bundled/v2/components/OrExpansionPanelV3/props.js +0 -12
- package/dist/bundled/v2/components/OrExpansionPanelV3/styles.js +0 -51
- package/dist/bundled/v2/components/OrFabV3/OrFab.js +0 -83
- package/dist/bundled/v2/components/OrFabV3/index.js +0 -8
- package/dist/bundled/v2/components/OrFabV3/props.js +0 -7
- package/dist/bundled/v2/components/OrFabV3/styles.js +0 -19
- package/dist/bundled/v2/components/OrFloating/OrFloating.js +0 -189
- package/dist/bundled/v2/components/OrFloating/constants.js +0 -22
- package/dist/bundled/v2/components/OrFloating/index.js +0 -11
- package/dist/bundled/v2/components/OrHint/OrHint.js +0 -55
- package/dist/bundled/v2/components/OrHint/index.js +0 -5
- package/dist/bundled/v2/components/OrHintV3/OrHint.js +0 -71
- package/dist/bundled/v2/components/OrHintV3/index.js +0 -4
- package/dist/bundled/v2/components/OrHintV3/styles.js +0 -19
- package/dist/bundled/v2/components/OrIcon/OrIcon.js +0 -159
- package/dist/bundled/v2/components/OrIcon/constants.js +0 -24
- package/dist/bundled/v2/components/OrIcon/index.js +0 -15
- package/dist/bundled/v2/components/OrIconButtonV2/OrIconButton.js +0 -230
- package/dist/bundled/v2/components/OrIconButtonV2/OrIconButton.vue.d.ts +0 -132
- package/dist/bundled/v2/components/OrIconButtonV2/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrIconButtonV2/index.js +0 -20
- package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +0 -130
- package/dist/bundled/v2/components/OrIconButtonV3/index.js +0 -24
- package/dist/bundled/v2/components/OrIconButtonV3/props.js +0 -10
- package/dist/bundled/v2/components/OrIconButtonV3/styles.js +0 -50
- package/dist/bundled/v2/components/OrIconV3/OrIcon.js +0 -69
- package/dist/bundled/v2/components/OrIconV3/index.js +0 -5
- package/dist/bundled/v2/components/OrIconV3/props.js +0 -17
- package/dist/bundled/v2/components/OrIconV3/styles.js +0 -46
- package/dist/bundled/v2/components/OrInlineInputBoxV3/OrInlineInputBox.js +0 -68
- package/dist/bundled/v2/components/OrInlineInputBoxV3/index.js +0 -5
- package/dist/bundled/v2/components/OrInlineInputBoxV3/props.js +0 -7
- package/dist/bundled/v2/components/OrInlineInputBoxV3/styles.js +0 -23
- package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +0 -376
- package/dist/bundled/v2/components/OrInlineInputV3/index.js +0 -38
- package/dist/bundled/v2/components/OrInlineInputV3/props.js +0 -9
- package/dist/bundled/v2/components/OrInlineInputV3/styles.js +0 -29
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +0 -400
- package/dist/bundled/v2/components/OrInlineTextEdit/constants.js +0 -13
- package/dist/bundled/v2/components/OrInlineTextEdit/index.js +0 -25
- package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +0 -293
- package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +0 -37
- package/dist/bundled/v2/components/OrInlineTextareaV3/styles.js +0 -21
- package/dist/bundled/v2/components/OrInput/OrInput.js +0 -330
- package/dist/bundled/v2/components/OrInput/index.js +0 -11
- package/dist/bundled/v2/components/OrInputBoxV3/OrInputBox.js +0 -82
- package/dist/bundled/v2/components/OrInputBoxV3/index.js +0 -5
- package/dist/bundled/v2/components/OrInputBoxV3/props.js +0 -12
- package/dist/bundled/v2/components/OrInputBoxV3/styles.js +0 -45
- package/dist/bundled/v2/components/OrInputV3/OrInput.js +0 -433
- package/dist/bundled/v2/components/OrInputV3/index.js +0 -44
- package/dist/bundled/v2/components/OrInputV3/props.js +0 -11
- package/dist/bundled/v2/components/OrInputV3/styles.js +0 -14
- package/dist/bundled/v2/components/OrLabel/OrLabel.js +0 -78
- package/dist/bundled/v2/components/OrLabel/index.js +0 -5
- package/dist/bundled/v2/components/OrLabelV3/OrLabel.js +0 -89
- package/dist/bundled/v2/components/OrLabelV3/index.js +0 -5
- package/dist/bundled/v2/components/OrLabelV3/props.js +0 -7
- package/dist/bundled/v2/components/OrLabelV3/styles.js +0 -29
- package/dist/bundled/v2/components/OrLinkV3/OrLink.js +0 -85
- package/dist/bundled/v2/components/OrLinkV3/index.js +0 -5
- package/dist/bundled/v2/components/OrLinkV3/props.js +0 -10
- package/dist/bundled/v2/components/OrLinkV3/styles.js +0 -30
- package/dist/bundled/v2/components/OrList/OrList.js +0 -2887
- package/dist/bundled/v2/components/OrList/index.js +0 -25
- package/dist/bundled/v2/components/OrListOfInputs/OrListOfInputs.js +0 -239
- package/dist/bundled/v2/components/OrListOfInputs/index.js +0 -29
- package/dist/bundled/v2/components/OrLoader/OrLoader.js +0 -106
- package/dist/bundled/v2/components/OrLoader/constants.js +0 -8
- package/dist/bundled/v2/components/OrLoader/index.js +0 -6
- package/dist/bundled/v2/components/OrLoader/types.js +0 -1
- package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +0 -170
- package/dist/bundled/v2/components/OrLoaderV3/index.js +0 -6
- package/dist/bundled/v2/components/OrLoaderV3/props.js +0 -18
- package/dist/bundled/v2/components/OrLoaderV3/styles.js +0 -17
- package/dist/bundled/v2/components/OrMenuItemV3/OrMenuItem.js +0 -95
- package/dist/bundled/v2/components/OrMenuItemV3/index.js +0 -7
- package/dist/bundled/v2/components/OrMenuItemV3/styles.js +0 -17
- package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +0 -148
- package/dist/bundled/v2/components/OrMenuV3/index.js +0 -18
- package/dist/bundled/v2/components/OrMenuV3/props.js +0 -1
- package/dist/bundled/v2/components/OrMenuV3/styles.js +0 -7
- package/dist/bundled/v2/components/OrModal/OrModal.js +0 -1467
- package/dist/bundled/v2/components/OrModal/constants.js +0 -10
- package/dist/bundled/v2/components/OrModal/index.js +0 -24
- package/dist/bundled/v2/components/OrModalV3/OrModal.js +0 -141
- package/dist/bundled/v2/components/OrModalV3/index.js +0 -27
- package/dist/bundled/v2/components/OrModalV3/props.js +0 -8
- package/dist/bundled/v2/components/OrModalV3/styles.js +0 -33
- package/dist/bundled/v2/components/OrNotification/OrNotification.js +0 -143
- package/dist/bundled/v2/components/OrNotification/constants.js +0 -14
- package/dist/bundled/v2/components/OrNotification/index.js +0 -22
- package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +0 -127
- package/dist/bundled/v2/components/OrNotificationV3/index.js +0 -27
- package/dist/bundled/v2/components/OrNotificationV3/props.js +0 -9
- package/dist/bundled/v2/components/OrNotificationV3/styles.js +0 -54
- package/dist/bundled/v2/components/OrNumberInput/OrNumberInput.js +0 -233
- package/dist/bundled/v2/components/OrNumberInput/index.js +0 -12
- package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +0 -259
- package/dist/bundled/v2/components/OrOverflowMenu/index.js +0 -23
- package/dist/bundled/v2/components/OrOverflowMenu/types.js +0 -1
- package/dist/bundled/v2/components/OrOverlay/OrOverlay.js +0 -71
- package/dist/bundled/v2/components/OrOverlay/index.js +0 -4
- package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +0 -80
- package/dist/bundled/v2/components/OrOverlayV3/index.js +0 -9
- package/dist/bundled/v2/components/OrOverlayV3/styles.js +0 -9
- package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +0 -332
- package/dist/bundled/v2/components/OrPaginationV3/index.js +0 -31
- package/dist/bundled/v2/components/OrPaginationV3/styles.js +0 -26
- package/dist/bundled/v2/components/OrPaginationV3/types.js +0 -1
- package/dist/bundled/v2/components/OrPassword/OrPassword.js +0 -241
- package/dist/bundled/v2/components/OrPassword/index.js +0 -28
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +0 -236
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.vue.d.ts +0 -119
- package/dist/bundled/v2/components/OrPopoverV3/index.js +0 -16
- package/dist/bundled/v2/components/OrPopoverV3/props.js +0 -23
- package/dist/bundled/v2/components/OrPopoverV3/styles.js +0 -44
- package/dist/bundled/v2/components/OrProgress/OrProgress.js +0 -211
- package/dist/bundled/v2/components/OrProgress/constants.js +0 -15
- package/dist/bundled/v2/components/OrProgress/index.js +0 -6
- package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +0 -246
- package/dist/bundled/v2/components/OrProgressV3/index.js +0 -8
- package/dist/bundled/v2/components/OrProgressV3/props.js +0 -15
- package/dist/bundled/v2/components/OrProgressV3/styles.js +0 -63
- package/dist/bundled/v2/components/OrRadio/OrRadio.js +0 -141
- package/dist/bundled/v2/components/OrRadio/index.js +0 -5
- package/dist/bundled/v2/components/OrRadioGroup/OrRadioGroup.js +0 -87
- package/dist/bundled/v2/components/OrRadioGroup/index.js +0 -4
- package/dist/bundled/v2/components/OrRadioV3/OrRadio.js +0 -169
- package/dist/bundled/v2/components/OrRadioV3/index.js +0 -10
- package/dist/bundled/v2/components/OrRadioV3/styles.js +0 -31
- package/dist/bundled/v2/components/OrSearch/OrSearch.js +0 -262
- package/dist/bundled/v2/components/OrSearch/index.js +0 -27
- package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +0 -183
- package/dist/bundled/v2/components/OrSearchV3/index.js +0 -45
- package/dist/bundled/v2/components/OrSearchV3/props.js +0 -1
- package/dist/bundled/v2/components/OrSegmentedControlV3/OrSegmentedControl.js +0 -213
- package/dist/bundled/v2/components/OrSegmentedControlV3/index.js +0 -5
- package/dist/bundled/v2/components/OrSegmentedControlV3/props.js +0 -7
- package/dist/bundled/v2/components/OrSegmentedControlV3/styles.js +0 -15
- package/dist/bundled/v2/components/OrSegmentedControlV3/types.js +0 -1
- package/dist/bundled/v2/components/OrSelect/OrSelect.js +0 -1061
- package/dist/bundled/v2/components/OrSelect/OrSelect.vue.d.ts +0 -242
- package/dist/bundled/v2/components/OrSelect/constants.js +0 -50
- package/dist/bundled/v2/components/OrSelect/index.js +0 -24
- package/dist/bundled/v2/components/OrSelect/types.js +0 -1
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +0 -542
- package/dist/bundled/v2/components/OrSelectV3/index.js +0 -59
- package/dist/bundled/v2/components/OrSelectV3/props.js +0 -1
- package/dist/bundled/v2/components/OrSelectV3/styles.js +0 -43
- package/dist/bundled/v2/components/OrSelectV3/types.js +0 -1
- package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +0 -142
- package/dist/bundled/v2/components/OrSidebar/constants.js +0 -7
- package/dist/bundled/v2/components/OrSidebar/index.js +0 -7
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +0 -368
- package/dist/bundled/v2/components/OrSidebarV3/index.js +0 -28
- package/dist/bundled/v2/components/OrSidebarV3/props.js +0 -7
- package/dist/bundled/v2/components/OrSidebarV3/styles.js +0 -118
- package/dist/bundled/v2/components/OrSkeleton/constants.js +0 -12
- package/dist/bundled/v2/components/OrSkeleton/index.d.ts +0 -4
- package/dist/bundled/v2/components/OrSkeleton/index.js +0 -9
- package/dist/bundled/v2/components/OrSkeletonCircle/OrSkeletonCircle.js +0 -78
- package/dist/bundled/v2/components/OrSkeletonCircle/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrSkeletonCircle/index.js +0 -7
- package/dist/bundled/v2/components/OrSkeletonCircleV3/OrSkeletonCircle.js +0 -81
- package/dist/bundled/v2/components/OrSkeletonCircleV3/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrSkeletonCircleV3/index.js +0 -6
- package/dist/bundled/v2/components/OrSkeletonRect/OrSkeletonRect.js +0 -81
- package/dist/bundled/v2/components/OrSkeletonRect/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrSkeletonRect/index.js +0 -7
- package/dist/bundled/v2/components/OrSkeletonRectV3/OrSkeletonRect.js +0 -84
- package/dist/bundled/v2/components/OrSkeletonRectV3/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrSkeletonRectV3/index.js +0 -6
- package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +0 -94
- package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.vue.d.ts +0 -73
- package/dist/bundled/v2/components/OrSkeletonText/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrSkeletonText/index.js +0 -7
- package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +0 -113
- package/dist/bundled/v2/components/OrSkeletonTextV3/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrSkeletonTextV3/index.js +0 -6
- package/dist/bundled/v2/components/OrSkeletonV3/index.d.ts +0 -3
- package/dist/bundled/v2/components/OrSkeletonV3/index.js +0 -8
- package/dist/bundled/v2/components/OrSkeletonV3/styles.js +0 -34
- package/dist/bundled/v2/components/OrSlider/OrSlider.js +0 -378
- package/dist/bundled/v2/components/OrSlider/index.js +0 -17
- package/dist/bundled/v2/components/OrSortHeaderV3/OrSortHeader.js +0 -113
- package/dist/bundled/v2/components/OrSortHeaderV3/index.js +0 -7
- package/dist/bundled/v2/components/OrSortHeaderV3/styles.js +0 -15
- package/dist/bundled/v2/components/OrSortHeaderV3/types.js +0 -1
- package/dist/bundled/v2/components/OrStepper/OrStepper.js +0 -663
- package/dist/bundled/v2/components/OrStepper/index.js +0 -20
- package/dist/bundled/v2/components/OrSwitch/OrSwitch.js +0 -153
- package/dist/bundled/v2/components/OrSwitch/index.js +0 -7
- package/dist/bundled/v2/components/OrSwitchV3/OrSwitch.js +0 -204
- package/dist/bundled/v2/components/OrSwitchV3/index.js +0 -14
- package/dist/bundled/v2/components/OrSwitchV3/styles.js +0 -51
- package/dist/bundled/v2/components/OrTab/OrTab.js +0 -107
- package/dist/bundled/v2/components/OrTab/index.js +0 -6
- package/dist/bundled/v2/components/OrTabHeaderItem/OrTabHeaderItem.js +0 -110
- package/dist/bundled/v2/components/OrTabHeaderItem/index.js +0 -5
- package/dist/bundled/v2/components/OrTabV3/OrTab.js +0 -76
- package/dist/bundled/v2/components/OrTabV3/index.js +0 -4
- package/dist/bundled/v2/components/OrTabV3/styles.js +0 -19
- package/dist/bundled/v2/components/OrTabs/OrTabs.js +0 -112
- package/dist/bundled/v2/components/OrTabs/index.js +0 -6
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +0 -221
- package/dist/bundled/v2/components/OrTabsV3/index.js +0 -28
- package/dist/bundled/v2/components/OrTabsV3/props.js +0 -7
- package/dist/bundled/v2/components/OrTabsV3/styles.js +0 -19
- package/dist/bundled/v2/components/OrTabsV3/types.js +0 -1
- package/dist/bundled/v2/components/OrTag/OrTag.js +0 -128
- package/dist/bundled/v2/components/OrTag/index.js +0 -20
- package/dist/bundled/v2/components/OrTagV3/OrTag.js +0 -141
- package/dist/bundled/v2/components/OrTagV3/index.js +0 -27
- package/dist/bundled/v2/components/OrTagV3/props.js +0 -13
- package/dist/bundled/v2/components/OrTagV3/styles.js +0 -30
- package/dist/bundled/v2/components/OrTeleport/OrTeleport.js +0 -51
- package/dist/bundled/v2/components/OrTeleport/constants.js +0 -16
- package/dist/bundled/v2/components/OrTeleport/index.js +0 -5
- package/dist/bundled/v2/components/OrTeleportV3/OrTeleport.js +0 -59
- package/dist/bundled/v2/components/OrTeleportV3/index.js +0 -4
- package/dist/bundled/v2/components/OrTextV3/OrText.js +0 -117
- package/dist/bundled/v2/components/OrTextV3/index.js +0 -4
- package/dist/bundled/v2/components/OrTextV3/styles.js +0 -17
- package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +0 -326
- package/dist/bundled/v2/components/OrTextarea/index.js +0 -11
- package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.js +0 -252
- package/dist/bundled/v2/components/OrTextareaV3/index.js +0 -18
- package/dist/bundled/v2/components/OrTextareaV3/props.js +0 -1
- package/dist/bundled/v2/components/OrTextareaV3/styles.js +0 -14
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +0 -530
- package/dist/bundled/v2/components/OrTextbox/constants.js +0 -11
- package/dist/bundled/v2/components/OrTextbox/index.js +0 -27
- package/dist/bundled/v2/components/OrToast/OrToast.js +0 -158
- package/dist/bundled/v2/components/OrToast/Timer.js +0 -37
- package/dist/bundled/v2/components/OrToast/composable/index.js +0 -7
- package/dist/bundled/v2/components/OrToast/composable/useQueue.js +0 -33
- package/dist/bundled/v2/components/OrToast/composable/useToast.js +0 -82
- package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +0 -24
- package/dist/bundled/v2/components/OrToast/constants.js +0 -24
- package/dist/bundled/v2/components/OrToast/index.d.ts +0 -5
- package/dist/bundled/v2/components/OrToast/index.js +0 -30
- package/dist/bundled/v2/components/OrToast/types.js +0 -1
- package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +0 -219
- package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.vue.d.ts +0 -93
- package/dist/bundled/v2/components/OrToastContainer/index.d.ts +0 -4
- package/dist/bundled/v2/components/OrToastContainer/index.js +0 -30
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +0 -232
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.vue.d.ts +0 -85
- package/dist/bundled/v2/components/OrToastContainerV3/index.d.ts +0 -4
- package/dist/bundled/v2/components/OrToastContainerV3/index.js +0 -37
- package/dist/bundled/v2/components/OrToastV3/OrToast.js +0 -195
- package/dist/bundled/v2/components/OrToastV3/Timer.js +0 -37
- package/dist/bundled/v2/components/OrToastV3/composable/index.js +0 -7
- package/dist/bundled/v2/components/OrToastV3/composable/useQueue.js +0 -33
- package/dist/bundled/v2/components/OrToastV3/composable/useToast.js +0 -82
- package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +0 -24
- package/dist/bundled/v2/components/OrToastV3/index.d.ts +0 -5
- package/dist/bundled/v2/components/OrToastV3/index.js +0 -37
- package/dist/bundled/v2/components/OrToastV3/props.js +0 -1
- package/dist/bundled/v2/components/OrToastV3/styles.js +0 -59
- package/dist/bundled/v2/components/OrToastV3/types.js +0 -1
- package/dist/bundled/v2/components/OrTooltip/OrTooltip.js +0 -161
- package/dist/bundled/v2/components/OrTooltip/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrTooltip/index.js +0 -13
- package/dist/bundled/v2/components/OrTooltipContent/OrTooltipContent.js +0 -71
- package/dist/bundled/v2/components/OrTooltipContent/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrTooltipContent/index.js +0 -5
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +0 -133
- package/dist/bundled/v2/components/OrTooltipV3/index.js +0 -18
- package/dist/bundled/v2/components/OrTooltipV3/props.js +0 -1
- package/dist/bundled/v2/components/OrTooltipV3/styles.js +0 -46
- package/dist/bundled/v2/directives/dropdown-close.js +0 -15
- package/dist/bundled/v2/directives/dropdown-open.js +0 -16
- package/dist/bundled/v2/hooks/useControlAttributes.js +0 -12
- package/dist/bundled/v2/hooks/useElevation.js +0 -22
- package/dist/bundled/v2/hooks/useIdAttribute.js +0 -12
- package/dist/bundled/v2/hooks/useOverflow.js +0 -64
- package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +0 -13
- package/dist/bundled/v2/hooks/useToggle.js +0 -22
- package/dist/bundled/v2/hooks/useValidationAttributes.js +0 -16
- package/dist/bundled/v2/index-63e094a0.js +0 -15
- package/dist/bundled/v2/index-6976c52a.js +0 -17838
- package/dist/bundled/v2/lang-02d2bb2d.js +0 -7811
- package/dist/bundled/v2/props-7be029c7.js +0 -32
- package/dist/bundled/v2/types-668300dd.js +0 -5
- package/dist/bundled/v2/utils/constants/color.js +0 -16
- package/dist/bundled/v2/utils/constants/key-codes.js +0 -16
- package/dist/bundled/v2/utils/constants/poper.js +0 -10
- package/dist/bundled/v2/utils/constants/regex.js +0 -49
- package/dist/bundled/v2/utils/functions/color.js +0 -39
- package/dist/bundled/v2/utils/functions/dom.js +0 -166
- package/dist/bundled/v2/utils/functions/hash.js +0 -8
- package/dist/bundled/v2/utils/functions/px-to-rem.js +0 -3
- package/dist/bundled/v2/utils/functions/text.js +0 -9
- package/dist/bundled/v2/utils/isVisible.js +0 -5
- package/dist/bundled/v3/OrAvatar.vue_vue_type_script_lang-29e8ad0e.js +0 -57
- package/dist/bundled/v3/OrAvatar.vue_vue_type_script_lang-623c32a1.js +0 -66
- package/dist/bundled/v3/OrBottomSheet.vue_vue_type_script_lang-1489a97d.js +0 -93
- package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-0bdd0e1a.js +0 -56
- package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-e768a47a.js +0 -100
- package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-ed520a05.js +0 -100
- package/dist/bundled/v3/OrCard.vue_vue_type_script_lang-81561dd8.js +0 -21
- package/dist/bundled/v3/OrCard.vue_vue_type_script_lang-b204e541.js +0 -19
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-24a8a534.js +0 -102
- package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-c7106197.js +0 -165
- package/dist/bundled/v3/OrCarousel.vue_vue_type_script_lang-0e87c56b.js +0 -2799
- package/dist/bundled/v3/OrCarouselItem.vue_vue_type_script_lang-42da2f4a.js +0 -7
- package/dist/bundled/v3/OrCheckbox.vue_vue_type_script_lang-60cefcbd.js +0 -90
- package/dist/bundled/v3/OrCheckbox.vue_vue_type_script_lang-6ff51af9.js +0 -88
- package/dist/bundled/v3/OrChip.vue_vue_type_script_lang-ceebbd82.js +0 -43
- package/dist/bundled/v3/OrChips.vue_vue_type_script_lang-94b456c7.js +0 -190
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-f4385be0.js +0 -3960
- package/dist/bundled/v3/OrCollapse.vue_vue_type_script_lang-5137ca99.js +0 -114
- package/dist/bundled/v3/OrColorPicker.vue_vue_type_script_lang-3a799e23.js +0 -58
- package/dist/bundled/v3/OrConfirm.vue_vue_type_script_lang-f25e8792.js +0 -161
- package/dist/bundled/v3/OrConfirm.vue_vue_type_script_lang-f5b7e94c.js +0 -190
- package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-c4174322.js +0 -446
- package/dist/bundled/v3/OrEmptyState.vue_vue_type_script_lang-2c1f09ef.js +0 -64
- package/dist/bundled/v3/OrError.vue_vue_type_script_lang-450321b8.js +0 -13
- package/dist/bundled/v3/OrError.vue_vue_type_script_lang-df7b5e32.js +0 -29
- package/dist/bundled/v3/OrErrorTag.vue_vue_type_script_lang-a4be8f6a.js +0 -24
- package/dist/bundled/v3/OrExpansionPanel.vue_vue_type_script_lang-f1b6ff7d.js +0 -77
- package/dist/bundled/v3/OrFab.vue_vue_type_script_lang-fc0a7cff.js +0 -38
- package/dist/bundled/v3/OrFloating.vue_vue_type_script_lang-d64ad4a7.js +0 -148
- package/dist/bundled/v3/OrHint.vue_vue_type_script_lang-0f5e8377.js +0 -29
- package/dist/bundled/v3/OrHint.vue_vue_type_script_lang-5d628c6c.js +0 -16
- package/dist/bundled/v3/OrIcon.vue_vue_type_script_lang-73f9cc63.js +0 -34
- package/dist/bundled/v3/OrIcon.vue_vue_type_script_lang-e3152dc5.js +0 -95
- package/dist/bundled/v3/OrIconButton.vue_vue_type_script_lang-4a3f6358.js +0 -137
- package/dist/bundled/v3/OrIconButton.vue_vue_type_script_lang-df67baa2.js +0 -57
- package/dist/bundled/v3/OrInlineInput.vue_vue_type_script_lang-a952a74e.js +0 -149
- package/dist/bundled/v3/OrInlineInputBox.vue_vue_type_script_lang-fe99c485.js +0 -30
- package/dist/bundled/v3/OrInlineTextEdit.vue_vue_type_script_lang-48e2d027.js +0 -232
- package/dist/bundled/v3/OrInlineTextarea.vue_vue_type_script_lang-4211f16b.js +0 -139
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-996299af.js +0 -149
- package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-ad995b35.js +0 -190
- package/dist/bundled/v3/OrInputBox.vue_vue_type_script_lang-e3bba923.js +0 -42
- package/dist/bundled/v3/OrLabel.vue_vue_type_script_lang-3e11ab8a.js +0 -42
- package/dist/bundled/v3/OrLabel.vue_vue_type_script_lang-95601b40.js +0 -37
- package/dist/bundled/v3/OrLink.vue_vue_type_script_lang-2d66ea4d.js +0 -46
- package/dist/bundled/v3/OrList.vue_vue_type_script_lang-e6d957ea.js +0 -2759
- package/dist/bundled/v3/OrListOfInputs.vue_vue_type_script_lang-3a34b998.js +0 -87
- package/dist/bundled/v3/OrLoader.vue_vue_type_script_lang-49907820.js +0 -80
- package/dist/bundled/v3/OrLoader.vue_vue_type_script_lang-b48715a3.js +0 -48
- package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-2676b9cc.js +0 -82
- package/dist/bundled/v3/OrMenuItem.vue_vue_type_script_lang-b338d68a.js +0 -39
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-631858eb.js +0 -1370
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-e0b6203f.js +0 -67
- package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-1e784b30.js +0 -70
- package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-fcdf4cb9.js +0 -54
- package/dist/bundled/v3/OrNumberInput.vue_vue_type_script_lang-1d469d1f.js +0 -113
- package/dist/bundled/v3/OrOverflowMenu.vue_vue_type_script_lang-7daa3596.js +0 -137
- package/dist/bundled/v3/OrOverlay.vue_vue_type_script_lang-2f5d626d.js +0 -33
- package/dist/bundled/v3/OrOverlay.vue_vue_type_script_lang-30f62546.js +0 -40
- package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-75c7b788.js +0 -170
- package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-8f8ad07d.js +0 -99
- package/dist/bundled/v3/OrPopover.vue_vue_type_script_lang-a9419b58.js +0 -183
- package/dist/bundled/v3/OrProgress.vue_vue_type_script_lang-0edde459.js +0 -138
- package/dist/bundled/v3/OrProgress.vue_vue_type_script_lang-26d7b3da.js +0 -133
- package/dist/bundled/v3/OrRadio.vue_vue_type_script_lang-99b109c4.js +0 -86
- package/dist/bundled/v3/OrRadio.vue_vue_type_script_lang-cc11200c.js +0 -85
- package/dist/bundled/v3/OrRadioGroup.vue_vue_type_script_lang-75b6c81b.js +0 -47
- package/dist/bundled/v3/OrSearch.vue_vue_type_script_lang-df4b51d8.js +0 -122
- package/dist/bundled/v3/OrSearch.vue_vue_type_script_lang-ef4517b0.js +0 -78
- package/dist/bundled/v3/OrSegmentedControl.vue_vue_type_script_lang-d1b4694c.js +0 -137
- package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-ab5ba260.js +0 -259
- package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-d2fecd97.js +0 -710
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-00e9cda7.js +0 -89
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-367d0854.js +0 -243
- package/dist/bundled/v3/OrSkeletonCircle.vue_vue_type_script_lang-aa467e8d.js +0 -39
- package/dist/bundled/v3/OrSkeletonCircle.vue_vue_type_script_lang-c8b71588.js +0 -45
- package/dist/bundled/v3/OrSkeletonRect.vue_vue_type_script_lang-5032a7de.js +0 -48
- package/dist/bundled/v3/OrSkeletonRect.vue_vue_type_script_lang-659fb605.js +0 -42
- package/dist/bundled/v3/OrSkeletonText.vue_vue_type_script_lang-5028961c.js +0 -50
- package/dist/bundled/v3/OrSkeletonText.vue_vue_type_script_lang-97d92578.js +0 -71
- package/dist/bundled/v3/OrSlider.vue_vue_type_script_lang-900036a2.js +0 -227
- package/dist/bundled/v3/OrSortHeader.vue_vue_type_script_lang-424696e5.js +0 -61
- package/dist/bundled/v3/OrStepper.vue_vue_type_script_lang-fa155b91.js +0 -377
- package/dist/bundled/v3/OrSwitch.vue_vue_type_script_lang-1c079a74.js +0 -81
- package/dist/bundled/v3/OrSwitch.vue_vue_type_script_lang-53f0c8b1.js +0 -95
- package/dist/bundled/v3/OrTab.vue_vue_type_script_lang-4a262fa3.js +0 -26
- package/dist/bundled/v3/OrTab.vue_vue_type_script_lang-71e4fa50.js +0 -61
- package/dist/bundled/v3/OrTabHeaderItem.vue_vue_type_script_lang-0a67721f.js +0 -63
- package/dist/bundled/v3/OrTabs.vue_vue_type_script_lang-06a89286.js +0 -45
- package/dist/bundled/v3/OrTabs.vue_vue_type_script_lang-b723fa78.js +0 -130
- package/dist/bundled/v3/OrTag.vue_vue_type_script_lang-885a2194.js +0 -55
- package/dist/bundled/v3/OrTag.vue_vue_type_script_lang-f06b54a2.js +0 -58
- package/dist/bundled/v3/OrTeleport.vue3.vue_vue_type_script_lang-a6ce162e.js +0 -17
- package/dist/bundled/v3/OrText.vue_vue_type_script_lang-23ff666f.js +0 -78
- package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-1236e04a.js +0 -187
- package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-2e216875.js +0 -116
- package/dist/bundled/v3/OrTextbox.vue_vue_type_script_lang-5657d588.js +0 -354
- package/dist/bundled/v3/OrToastContainer.vue_vue_type_script_lang-089b5e9b.js +0 -147
- package/dist/bundled/v3/OrToastContainer.vue_vue_type_script_lang-c5bf66be.js +0 -135
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-703eaacb.js +0 -72
- package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-b8594f7e.js +0 -89
- package/dist/bundled/v3/OrTooltipContent.vue_vue_type_script_lang-969c20ed.js +0 -22
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +0 -45
- package/dist/bundled/v3/components/OrAvatar/constants.js +0 -8
- package/dist/bundled/v3/components/OrAvatar/index.js +0 -19
- package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.js +0 -35
- package/dist/bundled/v3/components/OrAvatarV3/index.js +0 -13
- package/dist/bundled/v3/components/OrAvatarV3/props.js +0 -19
- package/dist/bundled/v3/components/OrAvatarV3/styles.js +0 -65
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +0 -38
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +0 -12
- package/dist/bundled/v3/components/OrBottomSheetV3/styles.js +0 -37
- package/dist/bundled/v3/components/OrButton/OrButton.js +0 -49
- package/dist/bundled/v3/components/OrButton/constants.js +0 -25
- package/dist/bundled/v3/components/OrButton/index.js +0 -9
- package/dist/bundled/v3/components/OrButtonV2/OrButton.js +0 -61
- package/dist/bundled/v3/components/OrButtonV2/constants.js +0 -43
- package/dist/bundled/v3/components/OrButtonV2/index.d.ts +0 -3
- package/dist/bundled/v3/components/OrButtonV2/index.js +0 -25
- package/dist/bundled/v3/components/OrButtonV3/OrButton.js +0 -44
- package/dist/bundled/v3/components/OrButtonV3/index.js +0 -10
- package/dist/bundled/v3/components/OrButtonV3/props.js +0 -21
- package/dist/bundled/v3/components/OrButtonV3/styles.js +0 -67
- package/dist/bundled/v3/components/OrCard/OrCard.js +0 -22
- package/dist/bundled/v3/components/OrCard/index.js +0 -2
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +0 -127
- package/dist/bundled/v3/components/OrCardCollection/constants.js +0 -7
- package/dist/bundled/v3/components/OrCardCollection/index.js +0 -42
- package/dist/bundled/v3/components/OrCardCollection/types.js +0 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +0 -162
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +0 -71
- package/dist/bundled/v3/components/OrCardCollectionV3/props.js +0 -16
- package/dist/bundled/v3/components/OrCardCollectionV3/styles.js +0 -30
- package/dist/bundled/v3/components/OrCardCollectionV3/types.js +0 -1
- package/dist/bundled/v3/components/OrCardV3/OrCard.js +0 -15
- package/dist/bundled/v3/components/OrCardV3/index.js +0 -3
- package/dist/bundled/v3/components/OrCardV3/styles.js +0 -15
- package/dist/bundled/v3/components/OrCarousel/OrCarousel.js +0 -62
- package/dist/bundled/v3/components/OrCarousel/constants.js +0 -21
- package/dist/bundled/v3/components/OrCarousel/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrCarousel/index.js +0 -20
- package/dist/bundled/v3/components/OrCarouselItem/OrCarouselItem.js +0 -14
- package/dist/bundled/v3/components/OrCarouselItem/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrCarouselItem/index.js +0 -2
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +0 -79
- package/dist/bundled/v3/components/OrCheckbox/index.js +0 -18
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +0 -51
- package/dist/bundled/v3/components/OrCheckboxV3/index.js +0 -10
- package/dist/bundled/v3/components/OrCheckboxV3/styles.js +0 -31
- package/dist/bundled/v3/components/OrChip/OrChip.js +0 -42
- package/dist/bundled/v3/components/OrChip/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrChip/index.js +0 -18
- package/dist/bundled/v3/components/OrChips/OrChips.js +0 -71
- package/dist/bundled/v3/components/OrChips/constants.js +0 -10
- package/dist/bundled/v3/components/OrChips/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrChips/index.js +0 -25
- package/dist/bundled/v3/components/OrCode/OrCode.js +0 -130
- package/dist/bundled/v3/components/OrCode/constants.js +0 -11
- package/dist/bundled/v3/components/OrCode/index.js +0 -42
- package/dist/bundled/v3/components/OrCode/lang.js +0 -3
- package/dist/bundled/v3/components/OrCode/theme.js +0 -189
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +0 -40
- package/dist/bundled/v3/components/OrCollapse/index.js +0 -5
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +0 -86
- package/dist/bundled/v3/components/OrColorPicker/constants.js +0 -323
- package/dist/bundled/v3/components/OrColorPicker/index.js +0 -15
- package/dist/bundled/v3/components/OrColorPicker/types.js +0 -1
- package/dist/bundled/v3/components/OrColorPicker/utils/defultPalette.js +0 -15
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.js +0 -122
- package/dist/bundled/v3/components/OrCombinedInputV3/index.js +0 -15
- package/dist/bundled/v3/components/OrCombinedInputV3/props.js +0 -1
- package/dist/bundled/v3/components/OrCombinedInputV3/styles.js +0 -16
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +0 -102
- package/dist/bundled/v3/components/OrConfirm/index.js +0 -45
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +0 -129
- package/dist/bundled/v3/components/OrConfirmV3/index.js +0 -64
- package/dist/bundled/v3/components/OrConfirmV3/props.js +0 -7
- package/dist/bundled/v3/components/OrConfirmV3/styles.js +0 -47
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +0 -259
- package/dist/bundled/v3/components/OrDateTimePicker/constants.js +0 -20
- package/dist/bundled/v3/components/OrDateTimePicker/index.js +0 -36
- package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.js +0 -29
- package/dist/bundled/v3/components/OrEmptyStateV3/index.js +0 -4
- package/dist/bundled/v3/components/OrEmptyStateV3/props.js +0 -7
- package/dist/bundled/v3/components/OrEmptyStateV3/styles.js +0 -46
- package/dist/bundled/v3/components/OrEmptyStateV3/types.js +0 -1
- package/dist/bundled/v3/components/OrError/OrError.js +0 -19
- package/dist/bundled/v3/components/OrError/index.js +0 -2
- package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.js +0 -26
- package/dist/bundled/v3/components/OrErrorTagV3/index.js +0 -8
- package/dist/bundled/v3/components/OrErrorTagV3/styles.js +0 -15
- package/dist/bundled/v3/components/OrErrorV3/OrError.js +0 -21
- package/dist/bundled/v3/components/OrErrorV3/index.js +0 -3
- package/dist/bundled/v3/components/OrErrorV3/styles.js +0 -19
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +0 -41
- package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +0 -9
- package/dist/bundled/v3/components/OrExpansionPanelV3/props.js +0 -12
- package/dist/bundled/v3/components/OrExpansionPanelV3/styles.js +0 -51
- package/dist/bundled/v3/components/OrFabV3/OrFab.js +0 -27
- package/dist/bundled/v3/components/OrFabV3/index.js +0 -9
- package/dist/bundled/v3/components/OrFabV3/props.js +0 -7
- package/dist/bundled/v3/components/OrFabV3/styles.js +0 -19
- package/dist/bundled/v3/components/OrFloating/OrFloating.js +0 -31
- package/dist/bundled/v3/components/OrFloating/constants.js +0 -22
- package/dist/bundled/v3/components/OrFloating/index.js +0 -9
- package/dist/bundled/v3/components/OrHint/OrHint.js +0 -20
- package/dist/bundled/v3/components/OrHint/index.js +0 -3
- package/dist/bundled/v3/components/OrHintV3/OrHint.js +0 -21
- package/dist/bundled/v3/components/OrHintV3/index.js +0 -3
- package/dist/bundled/v3/components/OrHintV3/styles.js +0 -19
- package/dist/bundled/v3/components/OrIcon/OrIcon.js +0 -53
- package/dist/bundled/v3/components/OrIcon/constants.js +0 -24
- package/dist/bundled/v3/components/OrIcon/index.js +0 -16
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +0 -64
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +0 -132
- package/dist/bundled/v3/components/OrIconButtonV2/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrIconButtonV2/index.js +0 -24
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +0 -62
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +0 -29
- package/dist/bundled/v3/components/OrIconButtonV3/props.js +0 -10
- package/dist/bundled/v3/components/OrIconButtonV3/styles.js +0 -50
- package/dist/bundled/v3/components/OrIconV3/OrIcon.js +0 -16
- package/dist/bundled/v3/components/OrIconV3/index.js +0 -4
- package/dist/bundled/v3/components/OrIconV3/props.js +0 -17
- package/dist/bundled/v3/components/OrIconV3/styles.js +0 -46
- package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.js +0 -18
- package/dist/bundled/v3/components/OrInlineInputBoxV3/index.js +0 -4
- package/dist/bundled/v3/components/OrInlineInputBoxV3/props.js +0 -7
- package/dist/bundled/v3/components/OrInlineInputBoxV3/styles.js +0 -23
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +0 -125
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +0 -46
- package/dist/bundled/v3/components/OrInlineInputV3/props.js +0 -9
- package/dist/bundled/v3/components/OrInlineInputV3/styles.js +0 -29
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +0 -129
- package/dist/bundled/v3/components/OrInlineTextEdit/constants.js +0 -13
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +0 -32
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +0 -123
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +0 -45
- package/dist/bundled/v3/components/OrInlineTextareaV3/styles.js +0 -21
- package/dist/bundled/v3/components/OrInput/OrInput.js +0 -123
- package/dist/bundled/v3/components/OrInput/index.js +0 -15
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.js +0 -20
- package/dist/bundled/v3/components/OrInputBoxV3/index.js +0 -4
- package/dist/bundled/v3/components/OrInputBoxV3/props.js +0 -12
- package/dist/bundled/v3/components/OrInputBoxV3/styles.js +0 -45
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +0 -174
- package/dist/bundled/v3/components/OrInputV3/index.js +0 -54
- package/dist/bundled/v3/components/OrInputV3/props.js +0 -11
- package/dist/bundled/v3/components/OrInputV3/styles.js +0 -14
- package/dist/bundled/v3/components/OrLabel/OrLabel.js +0 -23
- package/dist/bundled/v3/components/OrLabel/index.js +0 -3
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.js +0 -26
- package/dist/bundled/v3/components/OrLabelV3/index.js +0 -4
- package/dist/bundled/v3/components/OrLabelV3/props.js +0 -7
- package/dist/bundled/v3/components/OrLabelV3/styles.js +0 -29
- package/dist/bundled/v3/components/OrLinkV3/OrLink.js +0 -23
- package/dist/bundled/v3/components/OrLinkV3/index.js +0 -4
- package/dist/bundled/v3/components/OrLinkV3/props.js +0 -10
- package/dist/bundled/v3/components/OrLinkV3/styles.js +0 -30
- package/dist/bundled/v3/components/OrList/OrList.js +0 -114
- package/dist/bundled/v3/components/OrList/index.js +0 -33
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +0 -120
- package/dist/bundled/v3/components/OrListOfInputs/index.js +0 -41
- package/dist/bundled/v3/components/OrLoader/OrLoader.js +0 -46
- package/dist/bundled/v3/components/OrLoader/constants.js +0 -8
- package/dist/bundled/v3/components/OrLoader/index.js +0 -4
- package/dist/bundled/v3/components/OrLoader/types.js +0 -1
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +0 -69
- package/dist/bundled/v3/components/OrLoaderV3/index.js +0 -5
- package/dist/bundled/v3/components/OrLoaderV3/props.js +0 -18
- package/dist/bundled/v3/components/OrLoaderV3/styles.js +0 -17
- package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.js +0 -34
- package/dist/bundled/v3/components/OrMenuItemV3/index.js +0 -8
- package/dist/bundled/v3/components/OrMenuItemV3/styles.js +0 -17
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +0 -47
- package/dist/bundled/v3/components/OrMenuV3/index.js +0 -21
- package/dist/bundled/v3/components/OrMenuV3/props.js +0 -1
- package/dist/bundled/v3/components/OrMenuV3/styles.js +0 -7
- package/dist/bundled/v3/components/OrModal/OrModal.js +0 -79
- package/dist/bundled/v3/components/OrModal/constants.js +0 -10
- package/dist/bundled/v3/components/OrModal/index.js +0 -30
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +0 -66
- package/dist/bundled/v3/components/OrModalV3/index.js +0 -33
- package/dist/bundled/v3/components/OrModalV3/props.js +0 -8
- package/dist/bundled/v3/components/OrModalV3/styles.js +0 -33
- package/dist/bundled/v3/components/OrNotification/OrNotification.js +0 -60
- package/dist/bundled/v3/components/OrNotification/constants.js +0 -14
- package/dist/bundled/v3/components/OrNotification/index.js +0 -27
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +0 -59
- package/dist/bundled/v3/components/OrNotificationV3/index.js +0 -33
- package/dist/bundled/v3/components/OrNotificationV3/props.js +0 -9
- package/dist/bundled/v3/components/OrNotificationV3/styles.js +0 -54
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +0 -75
- package/dist/bundled/v3/components/OrNumberInput/index.js +0 -17
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +0 -83
- package/dist/bundled/v3/components/OrOverflowMenu/index.js +0 -29
- package/dist/bundled/v3/components/OrOverflowMenu/types.js +0 -1
- package/dist/bundled/v3/components/OrOverlay/OrOverlay.js +0 -18
- package/dist/bundled/v3/components/OrOverlay/index.js +0 -2
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +0 -28
- package/dist/bundled/v3/components/OrOverlayV3/index.js +0 -9
- package/dist/bundled/v3/components/OrOverlayV3/styles.js +0 -9
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +0 -144
- package/dist/bundled/v3/components/OrPaginationV3/index.js +0 -39
- package/dist/bundled/v3/components/OrPaginationV3/styles.js +0 -26
- package/dist/bundled/v3/components/OrPaginationV3/types.js +0 -1
- package/dist/bundled/v3/components/OrPassword/OrPassword.js +0 -103
- package/dist/bundled/v3/components/OrPassword/index.js +0 -38
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +0 -51
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +0 -119
- package/dist/bundled/v3/components/OrPopoverV3/index.js +0 -18
- package/dist/bundled/v3/components/OrPopoverV3/props.js +0 -23
- package/dist/bundled/v3/components/OrPopoverV3/styles.js +0 -44
- package/dist/bundled/v3/components/OrProgress/OrProgress.js +0 -66
- package/dist/bundled/v3/components/OrProgress/constants.js +0 -15
- package/dist/bundled/v3/components/OrProgress/index.js +0 -4
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +0 -84
- package/dist/bundled/v3/components/OrProgressV3/index.js +0 -7
- package/dist/bundled/v3/components/OrProgressV3/props.js +0 -15
- package/dist/bundled/v3/components/OrProgressV3/styles.js +0 -63
- package/dist/bundled/v3/components/OrRadio/OrRadio.js +0 -34
- package/dist/bundled/v3/components/OrRadio/index.js +0 -3
- package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.js +0 -19
- package/dist/bundled/v3/components/OrRadioGroup/index.js +0 -2
- package/dist/bundled/v3/components/OrRadioV3/OrRadio.js +0 -50
- package/dist/bundled/v3/components/OrRadioV3/index.js +0 -10
- package/dist/bundled/v3/components/OrRadioV3/styles.js +0 -31
- package/dist/bundled/v3/components/OrSearch/OrSearch.js +0 -105
- package/dist/bundled/v3/components/OrSearch/index.js +0 -37
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +0 -85
- package/dist/bundled/v3/components/OrSearchV3/index.js +0 -57
- package/dist/bundled/v3/components/OrSearchV3/props.js +0 -1
- package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.js +0 -29
- package/dist/bundled/v3/components/OrSegmentedControlV3/index.js +0 -5
- package/dist/bundled/v3/components/OrSegmentedControlV3/props.js +0 -7
- package/dist/bundled/v3/components/OrSegmentedControlV3/styles.js +0 -15
- package/dist/bundled/v3/components/OrSegmentedControlV3/types.js +0 -1
- package/dist/bundled/v3/components/OrSelect/OrSelect.js +0 -84
- package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +0 -230
- package/dist/bundled/v3/components/OrSelect/constants.js +0 -50
- package/dist/bundled/v3/components/OrSelect/index.js +0 -31
- package/dist/bundled/v3/components/OrSelect/types.js +0 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +0 -294
- package/dist/bundled/v3/components/OrSelectV3/index.js +0 -75
- package/dist/bundled/v3/components/OrSelectV3/props.js +0 -1
- package/dist/bundled/v3/components/OrSelectV3/styles.js +0 -43
- package/dist/bundled/v3/components/OrSelectV3/types.js +0 -1
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +0 -41
- package/dist/bundled/v3/components/OrSidebar/constants.js +0 -7
- package/dist/bundled/v3/components/OrSidebar/index.js +0 -5
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +0 -75
- package/dist/bundled/v3/components/OrSidebarV3/index.js +0 -34
- package/dist/bundled/v3/components/OrSidebarV3/props.js +0 -7
- package/dist/bundled/v3/components/OrSidebarV3/styles.js +0 -118
- package/dist/bundled/v3/components/OrSkeleton/constants.js +0 -12
- package/dist/bundled/v3/components/OrSkeleton/index.d.ts +0 -4
- package/dist/bundled/v3/components/OrSkeleton/index.js +0 -7
- package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.js +0 -21
- package/dist/bundled/v3/components/OrSkeletonCircle/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrSkeletonCircle/index.js +0 -5
- package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.js +0 -18
- package/dist/bundled/v3/components/OrSkeletonCircleV3/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrSkeletonCircleV3/index.js +0 -5
- package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.js +0 -21
- package/dist/bundled/v3/components/OrSkeletonRect/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrSkeletonRect/index.js +0 -5
- package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.js +0 -18
- package/dist/bundled/v3/components/OrSkeletonRectV3/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrSkeletonRectV3/index.js +0 -5
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +0 -27
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +0 -73
- package/dist/bundled/v3/components/OrSkeletonText/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrSkeletonText/index.js +0 -5
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +0 -24
- package/dist/bundled/v3/components/OrSkeletonTextV3/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +0 -5
- package/dist/bundled/v3/components/OrSkeletonV3/index.d.ts +0 -3
- package/dist/bundled/v3/components/OrSkeletonV3/index.js +0 -7
- package/dist/bundled/v3/components/OrSkeletonV3/styles.js +0 -34
- package/dist/bundled/v3/components/OrSlider/OrSlider.js +0 -102
- package/dist/bundled/v3/components/OrSlider/index.js +0 -19
- package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.js +0 -29
- package/dist/bundled/v3/components/OrSortHeaderV3/index.js +0 -8
- package/dist/bundled/v3/components/OrSortHeaderV3/styles.js +0 -15
- package/dist/bundled/v3/components/OrSortHeaderV3/types.js +0 -1
- package/dist/bundled/v3/components/OrStepper/OrStepper.js +0 -75
- package/dist/bundled/v3/components/OrStepper/index.js +0 -24
- package/dist/bundled/v3/components/OrSwitch/OrSwitch.js +0 -52
- package/dist/bundled/v3/components/OrSwitch/index.js +0 -8
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +0 -66
- package/dist/bundled/v3/components/OrSwitchV3/index.js +0 -15
- package/dist/bundled/v3/components/OrSwitchV3/styles.js +0 -51
- package/dist/bundled/v3/components/OrTab/OrTab.js +0 -22
- package/dist/bundled/v3/components/OrTab/index.js +0 -4
- package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.js +0 -27
- package/dist/bundled/v3/components/OrTabHeaderItem/index.js +0 -3
- package/dist/bundled/v3/components/OrTabV3/OrTab.js +0 -21
- package/dist/bundled/v3/components/OrTabV3/index.js +0 -3
- package/dist/bundled/v3/components/OrTabV3/styles.js +0 -19
- package/dist/bundled/v3/components/OrTabs/OrTabs.js +0 -47
- package/dist/bundled/v3/components/OrTabs/index.js +0 -7
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +0 -91
- package/dist/bundled/v3/components/OrTabsV3/index.js +0 -35
- package/dist/bundled/v3/components/OrTabsV3/props.js +0 -7
- package/dist/bundled/v3/components/OrTabsV3/styles.js +0 -19
- package/dist/bundled/v3/components/OrTabsV3/types.js +0 -1
- package/dist/bundled/v3/components/OrTag/OrTag.js +0 -50
- package/dist/bundled/v3/components/OrTag/index.js +0 -22
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +0 -63
- package/dist/bundled/v3/components/OrTagV3/index.js +0 -33
- package/dist/bundled/v3/components/OrTagV3/props.js +0 -13
- package/dist/bundled/v3/components/OrTagV3/styles.js +0 -30
- package/dist/bundled/v3/components/OrTeleport/OrTeleport.js +0 -20
- package/dist/bundled/v3/components/OrTeleport/constants.js +0 -16
- package/dist/bundled/v3/components/OrTeleport/index.js +0 -4
- package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.js +0 -14
- package/dist/bundled/v3/components/OrTeleportV3/index.js +0 -2
- package/dist/bundled/v3/components/OrTextV3/OrText.js +0 -19
- package/dist/bundled/v3/components/OrTextV3/index.js +0 -3
- package/dist/bundled/v3/components/OrTextV3/styles.js +0 -17
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +0 -121
- package/dist/bundled/v3/components/OrTextarea/index.js +0 -15
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +0 -103
- package/dist/bundled/v3/components/OrTextareaV3/index.js +0 -21
- package/dist/bundled/v3/components/OrTextareaV3/props.js +0 -1
- package/dist/bundled/v3/components/OrTextareaV3/styles.js +0 -14
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +0 -169
- package/dist/bundled/v3/components/OrTextbox/constants.js +0 -11
- package/dist/bundled/v3/components/OrTextbox/index.js +0 -36
- package/dist/bundled/v3/components/OrToast/OrToast.js +0 -137
- package/dist/bundled/v3/components/OrToast/Timer.js +0 -37
- package/dist/bundled/v3/components/OrToast/composable/index.js +0 -7
- package/dist/bundled/v3/components/OrToast/composable/useQueue.js +0 -33
- package/dist/bundled/v3/components/OrToast/composable/useToast.js +0 -82
- package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +0 -24
- package/dist/bundled/v3/components/OrToast/constants.js +0 -24
- package/dist/bundled/v3/components/OrToast/index.d.ts +0 -5
- package/dist/bundled/v3/components/OrToast/index.js +0 -36
- package/dist/bundled/v3/components/OrToast/types.js +0 -1
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +0 -73
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +0 -93
- package/dist/bundled/v3/components/OrToastContainer/index.d.ts +0 -4
- package/dist/bundled/v3/components/OrToastContainer/index.js +0 -36
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +0 -79
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +0 -85
- package/dist/bundled/v3/components/OrToastContainerV3/index.d.ts +0 -4
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +0 -44
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +0 -172
- package/dist/bundled/v3/components/OrToastV3/Timer.js +0 -37
- package/dist/bundled/v3/components/OrToastV3/composable/index.js +0 -7
- package/dist/bundled/v3/components/OrToastV3/composable/useQueue.js +0 -33
- package/dist/bundled/v3/components/OrToastV3/composable/useToast.js +0 -82
- package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +0 -24
- package/dist/bundled/v3/components/OrToastV3/index.d.ts +0 -5
- package/dist/bundled/v3/components/OrToastV3/index.js +0 -44
- package/dist/bundled/v3/components/OrToastV3/props.js +0 -1
- package/dist/bundled/v3/components/OrToastV3/styles.js +0 -59
- package/dist/bundled/v3/components/OrToastV3/types.js +0 -1
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +0 -55
- package/dist/bundled/v3/components/OrTooltip/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrTooltip/index.js +0 -14
- package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.js +0 -26
- package/dist/bundled/v3/components/OrTooltipContent/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrTooltipContent/index.js +0 -3
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +0 -48
- package/dist/bundled/v3/components/OrTooltipV3/index.js +0 -21
- package/dist/bundled/v3/components/OrTooltipV3/props.js +0 -1
- package/dist/bundled/v3/components/OrTooltipV3/styles.js +0 -46
- package/dist/bundled/v3/directives/dropdown-close.js +0 -15
- package/dist/bundled/v3/directives/dropdown-open.js +0 -16
- package/dist/bundled/v3/hooks/useControlAttributes.js +0 -12
- package/dist/bundled/v3/hooks/useElevation.js +0 -22
- package/dist/bundled/v3/hooks/useIdAttribute.js +0 -12
- package/dist/bundled/v3/hooks/useOverflow.js +0 -64
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +0 -13
- package/dist/bundled/v3/hooks/useToggle.js +0 -22
- package/dist/bundled/v3/hooks/useValidationAttributes.js +0 -16
- package/dist/bundled/v3/index-63e094a0.js +0 -15
- package/dist/bundled/v3/index-6976c52a.js +0 -17838
- package/dist/bundled/v3/lang-02d2bb2d.js +0 -7811
- package/dist/bundled/v3/props-7be029c7.js +0 -32
- package/dist/bundled/v3/types-668300dd.js +0 -5
- package/dist/bundled/v3/utils/constants/color.js +0 -16
- package/dist/bundled/v3/utils/constants/key-codes.js +0 -16
- package/dist/bundled/v3/utils/constants/poper.js +0 -10
- package/dist/bundled/v3/utils/constants/regex.js +0 -49
- package/dist/bundled/v3/utils/functions/color.js +0 -39
- package/dist/bundled/v3/utils/functions/dom.js +0 -166
- package/dist/bundled/v3/utils/functions/hash.js +0 -8
- package/dist/bundled/v3/utils/functions/px-to-rem.js +0 -3
- package/dist/bundled/v3/utils/functions/text.js +0 -9
- package/dist/bundled/v3/utils/isVisible.js +0 -5
- package/dist/esm/v2/OrAvatar-da5cba16.js +0 -113
- package/dist/esm/v2/OrButton-86c800fe.js +0 -75
- package/dist/esm/v2/OrButton.vue_rollup-plugin-vue_styles.0-03013ef7.js +0 -101
- package/dist/esm/v2/OrCardCollection-d9206990.js +0 -222
- package/dist/esm/v2/OrCardCollection-fcc2bec5.js +0 -346
- package/dist/esm/v2/OrCarousel-3c809a13.js +0 -244
- package/dist/esm/v2/OrCarouselItem-c614bab9.js +0 -41
- package/dist/esm/v2/OrCheckbox-bf34eb0f.js +0 -181
- package/dist/esm/v2/OrChip-416e848e.js +0 -91
- package/dist/esm/v2/OrChips-77e789e9.js +0 -82
- package/dist/esm/v2/OrChips.vue_rollup-plugin-vue_styles.0-e05c5ca8.js +0 -240
- package/dist/esm/v2/OrCode-90e15e84.js +0 -557
- package/dist/esm/v2/OrConfirm-360884f6.js +0 -258
- package/dist/esm/v2/OrConfirm-7eee1481.js +0 -329
- package/dist/esm/v2/OrDateTimePicker-0a5dfc88.js +0 -766
- package/dist/esm/v2/OrIcon-8a6d663a.js +0 -176
- package/dist/esm/v2/OrIconButton-729fe6a2.js +0 -64
- package/dist/esm/v2/OrIconButton-ec2e21aa.js +0 -168
- package/dist/esm/v2/OrIconButton.vue_rollup-plugin-vue_styles.0-affe3331.js +0 -200
- package/dist/esm/v2/OrInlineInput-34f28593.js +0 -383
- package/dist/esm/v2/OrInlineTextEdit-24870b6d.js +0 -399
- package/dist/esm/v2/OrInlineTextarea-07a2cdc1.js +0 -287
- package/dist/esm/v2/OrInput-a7903c0f.js +0 -426
- package/dist/esm/v2/OrList-74216118.js +0 -296
- package/dist/esm/v2/OrListOfInputs-14c510e6.js +0 -221
- package/dist/esm/v2/OrMenu-47b319a6.js +0 -140
- package/dist/esm/v2/OrModal-69791114.js +0 -158
- package/dist/esm/v2/OrModal-beff61df.js +0 -199
- package/dist/esm/v2/OrNotification-5e98ac28.js +0 -166
- package/dist/esm/v2/OrNotification-d0da833a.js +0 -142
- package/dist/esm/v2/OrOverflowMenu-abb6883b.js +0 -245
- package/dist/esm/v2/OrPagination-4d330d4f.js +0 -336
- package/dist/esm/v2/OrPassword-028c657f.js +0 -223
- package/dist/esm/v2/OrPopover-83c885d0.js +0 -294
- package/dist/esm/v2/OrSearch-5eba1989.js +0 -144
- package/dist/esm/v2/OrSearch-68a6f290.js +0 -244
- package/dist/esm/v2/OrSelect-2d48ddee.js +0 -543
- package/dist/esm/v2/OrSelect-eb5cc918.js +0 -1092
- package/dist/esm/v2/OrSidebar-6431f9f0.js +0 -349
- package/dist/esm/v2/OrSidebarCollapseButton-fbbac5f0.js +0 -123
- package/dist/esm/v2/OrSkeletonCircle-287fb8bb.js +0 -81
- package/dist/esm/v2/OrSkeletonCircle-db96ddb6.js +0 -78
- package/dist/esm/v2/OrSkeletonRect-0f06777f.js +0 -84
- package/dist/esm/v2/OrSkeletonRect-8df5791c.js +0 -81
- package/dist/esm/v2/OrSkeletonText-5529bcd1.js +0 -113
- package/dist/esm/v2/OrSkeletonText-8063af02.js +0 -94
- package/dist/esm/v2/OrSlider-32a14ca4.js +0 -368
- package/dist/esm/v2/OrStepper-1856df54.js +0 -644
- package/dist/esm/v2/OrTabs-f0e4db08.js +0 -226
- package/dist/esm/v2/OrTag-335525e6.js +0 -159
- package/dist/esm/v2/OrTag-a1fff567.js +0 -114
- package/dist/esm/v2/OrTextbox-639f07a1.js +0 -529
- package/dist/esm/v2/OrToastContainer-05c306b2.js +0 -335
- package/dist/esm/v2/OrTooltip-2c09dcaf.js +0 -165
- package/dist/esm/v2/OrTooltip-cfb56e8f.js +0 -68
- package/dist/esm/v2/OrTooltip.vue_rollup-plugin-vue_styles.0-122f7804.js +0 -90
- package/dist/esm/v2/OrTooltipContent-c9540548.js +0 -71
- package/dist/esm/v2/components/or-card-collection-v3/partials/OrCardCollectionView.vue2.vue.d.ts +0 -35
- package/dist/esm/v2/components/or-carousel/or-carousel-item/index.d.ts +0 -1
- package/dist/esm/v2/components/or-carousel/or-carousel-item/index.js +0 -3
- package/dist/esm/v2/components/or-chips/or-chip/index.d.ts +0 -1
- package/dist/esm/v2/components/or-chips/or-chip/index.js +0 -14
- package/dist/esm/v2/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +0 -92
- package/dist/esm/v2/components/or-icon-button-v2/OrIconButton.vue.d.ts +0 -132
- package/dist/esm/v2/components/or-icon-button-v2/index.d.ts +0 -1
- package/dist/esm/v2/components/or-icon-button-v2/index.js +0 -17
- package/dist/esm/v2/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +0 -32
- package/dist/esm/v2/components/or-select/partials/OrSelectContent.vue.d.ts +0 -114
- package/dist/esm/v2/components/or-select/partials/OrSelectContentOptions.vue.d.ts +0 -87
- package/dist/esm/v2/components/or-select/partials/OrSelectInput.vue.d.ts +0 -81
- package/dist/esm/v2/components/or-select/partials/OrSelectInputValue.vue.d.ts +0 -58
- package/dist/esm/v2/components/or-select/partials/OrSelectMain.vue.d.ts +0 -158
- package/dist/esm/v2/components/or-select/partials/OrSelectOption.vue.d.ts +0 -37
- package/dist/esm/v2/components/or-skeleton/or-skeleton-circle/index.d.ts +0 -2
- package/dist/esm/v2/components/or-skeleton/or-skeleton-circle/index.js +0 -7
- package/dist/esm/v2/components/or-skeleton/or-skeleton-rect/index.d.ts +0 -2
- package/dist/esm/v2/components/or-skeleton/or-skeleton-rect/index.js +0 -7
- package/dist/esm/v2/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +0 -73
- package/dist/esm/v2/components/or-skeleton/or-skeleton-text/index.d.ts +0 -2
- package/dist/esm/v2/components/or-skeleton/or-skeleton-text/index.js +0 -7
- package/dist/esm/v2/components/or-skeleton-v3/or-skeleton-circle-v3/index.d.ts +0 -1
- package/dist/esm/v2/components/or-skeleton-v3/or-skeleton-circle-v3/index.js +0 -6
- package/dist/esm/v2/components/or-skeleton-v3/or-skeleton-rect-v3/index.d.ts +0 -1
- package/dist/esm/v2/components/or-skeleton-v3/or-skeleton-rect-v3/index.js +0 -6
- package/dist/esm/v2/components/or-skeleton-v3/or-skeleton-text-v3/index.d.ts +0 -1
- package/dist/esm/v2/components/or-skeleton-v3/or-skeleton-text-v3/index.js +0 -6
- package/dist/esm/v2/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +0 -93
- package/dist/esm/v2/components/or-toast/or-toast-container/index.d.ts +0 -4
- package/dist/esm/v2/components/or-toast/or-toast-container/index.js +0 -22
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +0 -85
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.d.ts +0 -4
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +0 -18
- package/dist/esm/v2/components/or-tooltip/or-tooltip-content/index.d.ts +0 -1
- package/dist/esm/v2/components/or-tooltip/or-tooltip-content/index.js +0 -5
- package/dist/esm/v2/constants-0a28d818.js +0 -12
- package/dist/esm/v2/styles-ed564e39.js +0 -34
- package/dist/esm/v2/types-f189ecd7.js +0 -432
- package/dist/esm/v3/OrAvatar-b18f2208.js +0 -89
- package/dist/esm/v3/OrButton-1e1b44e1.js +0 -137
- package/dist/esm/v3/OrCardCollection-283c9cfe.js +0 -293
- package/dist/esm/v3/OrCardCollection-f7eff96c.js +0 -190
- package/dist/esm/v3/OrCarousel-8de5d65b.js +0 -224
- package/dist/esm/v3/OrCarouselItem-8c7ccd0f.js +0 -18
- package/dist/esm/v3/OrCheckbox-c2d9cf53.js +0 -149
- package/dist/esm/v3/OrChip-ccd4b331.js +0 -67
- package/dist/esm/v3/OrChips-9a19aa03.js +0 -240
- package/dist/esm/v3/OrCode-b77df76f.js +0 -523
- package/dist/esm/v3/OrConfirm-5e9a3a4a.js +0 -215
- package/dist/esm/v3/OrConfirm-b74191d6.js +0 -299
- package/dist/esm/v3/OrDateTimePicker-01a7ffb1.js +0 -681
- package/dist/esm/v3/OrIcon-9b3d24cc.js +0 -153
- package/dist/esm/v3/OrIconButton-b8042604.js +0 -217
- package/dist/esm/v3/OrIconButton-e3f4d060.js +0 -142
- package/dist/esm/v3/OrInlineInput-c0e61e6b.js +0 -255
- package/dist/esm/v3/OrInlineTextEdit-4b719869.js +0 -339
- package/dist/esm/v3/OrInlineTextarea-6d5e7ceb.js +0 -232
- package/dist/esm/v3/OrInput-f0748c95.js +0 -280
- package/dist/esm/v3/OrList-b085648b.js +0 -258
- package/dist/esm/v3/OrListOfInputs-4b8a2152.js +0 -164
- package/dist/esm/v3/OrMenu-053a9ab7.js +0 -111
- package/dist/esm/v3/OrModal-6ec31764.js +0 -164
- package/dist/esm/v3/OrModal-7d4158d1.js +0 -135
- package/dist/esm/v3/OrNotification-9e00aa97.js +0 -137
- package/dist/esm/v3/OrNotification-ba04259f.js +0 -115
- package/dist/esm/v3/OrOverflowMenu-8b2a4324.js +0 -186
- package/dist/esm/v3/OrPagination-f2d104d9.js +0 -297
- package/dist/esm/v3/OrPassword-f0c62eba.js +0 -163
- package/dist/esm/v3/OrPopover-3ac8f589.js +0 -277
- package/dist/esm/v3/OrSearch-5718a2b1.js +0 -189
- package/dist/esm/v3/OrSearch-6673c583.js +0 -105
- package/dist/esm/v3/OrSelect-3d923250.js +0 -804
- package/dist/esm/v3/OrSelect-b9d45ab4.js +0 -507
- package/dist/esm/v3/OrSidebar-c4dfb35c.js +0 -313
- package/dist/esm/v3/OrSidebarCollapseButton-e4b2eedb.js +0 -94
- package/dist/esm/v3/OrSkeletonCircle-1aa63444.js +0 -55
- package/dist/esm/v3/OrSkeletonCircle-d59d0e13.js +0 -57
- package/dist/esm/v3/OrSkeletonRect-813bc73a.js +0 -58
- package/dist/esm/v3/OrSkeletonRect-b0845041.js +0 -60
- package/dist/esm/v3/OrSkeletonText-205898e9.js +0 -89
- package/dist/esm/v3/OrSkeletonText-6de38947.js +0 -71
- package/dist/esm/v3/OrSlider-ae7b8a11.js +0 -310
- package/dist/esm/v3/OrStepper-de6f7fa0.js +0 -427
- package/dist/esm/v3/OrTabs-d9e2a07e.js +0 -205
- package/dist/esm/v3/OrTag-1b49531d.js +0 -123
- package/dist/esm/v3/OrTag-38d1ba92.js +0 -86
- package/dist/esm/v3/OrTextbox-abe576c3.js +0 -494
- package/dist/esm/v3/OrToastContainer-adb8f47d.js +0 -281
- package/dist/esm/v3/OrTooltip-be7209e5.js +0 -128
- package/dist/esm/v3/OrTooltip-d91128f4.js +0 -141
- package/dist/esm/v3/OrTooltipContent-68c34911.js +0 -44
- package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +0 -35
- package/dist/esm/v3/components/or-carousel/or-carousel-item/index.d.ts +0 -1
- package/dist/esm/v3/components/or-carousel/or-carousel-item/index.js +0 -3
- package/dist/esm/v3/components/or-chips/or-chip/index.d.ts +0 -1
- package/dist/esm/v3/components/or-chips/or-chip/index.js +0 -13
- package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +0 -92
- package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +0 -132
- package/dist/esm/v3/components/or-icon-button-v2/index.d.ts +0 -1
- package/dist/esm/v3/components/or-icon-button-v2/index.js +0 -14
- package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +0 -32
- package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +0 -114
- package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +0 -87
- package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +0 -81
- package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +0 -58
- package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +0 -158
- package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +0 -37
- package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/index.d.ts +0 -2
- package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/index.js +0 -7
- package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/index.d.ts +0 -2
- package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/index.js +0 -7
- package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +0 -73
- package/dist/esm/v3/components/or-skeleton/or-skeleton-text/index.d.ts +0 -2
- package/dist/esm/v3/components/or-skeleton/or-skeleton-text/index.js +0 -7
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/index.d.ts +0 -1
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/index.js +0 -6
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/index.d.ts +0 -1
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/index.js +0 -6
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/index.d.ts +0 -1
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/index.js +0 -6
- package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +0 -93
- package/dist/esm/v3/components/or-toast/or-toast-container/index.d.ts +0 -4
- package/dist/esm/v3/components/or-toast/or-toast-container/index.js +0 -19
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +0 -85
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.d.ts +0 -4
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +0 -17
- package/dist/esm/v3/components/or-tooltip/or-tooltip-content/index.d.ts +0 -1
- package/dist/esm/v3/components/or-tooltip/or-tooltip-content/index.js +0 -5
- package/dist/esm/v3/constants-0a28d818.js +0 -12
- package/dist/esm/v3/styles-ed564e39.js +0 -34
- package/dist/esm/v3/types-fb41724f.js +0 -378
- package/src/components/or-card-collection-v3/partials/OrCardCollectionView.vue2.vue +0 -41
- package/src/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue +0 -42
- package/src/components/or-carousel/or-carousel-item/index.ts +0 -1
- package/src/components/or-chips/or-chip/OrChip.vue +0 -109
- package/src/components/or-chips/or-chip/index.ts +0 -1
- package/src/components/or-chips/partials/OrChipsInput.vue +0 -140
- package/src/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue +0 -112
- package/src/components/or-icon-button-v2/OrIconButton.stories.ts +0 -134
- package/src/components/or-icon-button-v2/OrIconButton.vue +0 -257
- package/src/components/or-icon-button-v2/index.ts +0 -1
- package/src/components/or-icon-button-v2/partials/OrTooltipWrapper.vue +0 -49
- package/src/components/or-overflow-menu/partials/OrOverflowMenuItem.vue +0 -77
- package/src/components/or-select/partials/OrSelectContent.stories.ts +0 -192
- package/src/components/or-select/partials/OrSelectContent.vue +0 -165
- package/src/components/or-select/partials/OrSelectContentEmpty.vue +0 -62
- package/src/components/or-select/partials/OrSelectContentOptions.vue +0 -64
- package/src/components/or-select/partials/OrSelectInput.stories.ts +0 -116
- package/src/components/or-select/partials/OrSelectInput.vue +0 -167
- package/src/components/or-select/partials/OrSelectInputValue.vue +0 -111
- package/src/components/or-select/partials/OrSelectMain.vue +0 -203
- package/src/components/or-select/partials/OrSelectOption.vue +0 -80
- package/src/components/or-select/partials/OrSelectSearchOptions.vue +0 -101
- package/src/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.stories.ts +0 -35
- package/src/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue +0 -56
- package/src/components/or-skeleton/or-skeleton-circle/index.ts +0 -3
- package/src/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.stories.ts +0 -53
- package/src/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue +0 -59
- package/src/components/or-skeleton/or-skeleton-rect/index.ts +0 -3
- package/src/components/or-skeleton/or-skeleton-text/OrSkeletonText.stories.ts +0 -52
- package/src/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue +0 -105
- package/src/components/or-skeleton/or-skeleton-text/index.ts +0 -3
- package/src/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue +0 -68
- package/src/components/or-skeleton-v3/or-skeleton-circle-v3/index.ts +0 -1
- package/src/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue +0 -72
- package/src/components/or-skeleton-v3/or-skeleton-rect-v3/index.ts +0 -1
- package/src/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue +0 -110
- package/src/components/or-skeleton-v3/or-skeleton-text-v3/index.ts +0 -1
- package/src/components/or-stepper/partials/OrStepperButtonOptions.vue +0 -71
- package/src/components/or-stepper/partials/StatusIcon.vue +0 -80
- package/src/components/or-toast/or-toast-container/OrToastContainer.stories.ts +0 -65
- package/src/components/or-toast/or-toast-container/OrToastContainer.vue +0 -247
- package/src/components/or-toast/or-toast-container/index.ts +0 -5
- package/src/components/or-toast-v3/or-toast-container-v3/OrToastContainer.stories3.ts +0 -76
- package/src/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue +0 -211
- package/src/components/or-toast-v3/or-toast-container-v3/index.ts +0 -5
- package/src/components/or-tooltip/or-tooltip-content/index.ts +0 -1
- /package/dist/bundled/v2/components/{OrAvatar → or-avatar}/OrAvatar.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrAvatar → or-avatar}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrAvatar → or-avatar}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrAvatarV3 → or-avatar-v3}/OrAvatar.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrAvatarV3 → or-avatar-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrAvatarV3 → or-avatar-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrAvatarV3 → or-avatar-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrBottomSheetV3 → or-bottom-sheet-v3}/OrBottomSheet.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrBottomSheetV3 → or-bottom-sheet-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrBottomSheetV3 → or-bottom-sheet-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrButton → or-button}/OrButton.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrButton → or-button}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrButton → or-button}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrButtonV2 → or-button-v2}/OrButton.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrButtonV2 → or-button-v2}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrButtonV3 → or-button-v3}/OrButton.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrButtonV3 → or-button-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrButtonV3 → or-button-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrButtonV3 → or-button-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCard → or-card}/OrCard.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCard → or-card}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardCollection → or-card-collection}/OrCardCollection.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardCollection → or-card-collection}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardCollection → or-card-collection}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardCollection → or-card-collection}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardCollectionV3 → or-card-collection-v3}/OrCardCollection.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardCollectionV3 → or-card-collection-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardCollectionV3 → or-card-collection-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardCollectionV3 → or-card-collection-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardCollectionV3 → or-card-collection-v3}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardV3 → or-card-v3}/OrCard.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardV3 → or-card-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCardV3 → or-card-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCarousel → or-carousel}/OrCarousel.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCarouselItem → or-carousel}/OrCarouselItem.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCarousel → or-carousel}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCheckbox → or-checkbox}/OrCheckbox.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCheckbox → or-checkbox}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCheckboxV3 → or-checkbox-v3}/OrCheckbox.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCheckboxV3 → or-checkbox-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCheckboxV3 → or-checkbox-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrChip → or-chips}/OrChip.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrChips → or-chips}/OrChips.vue.d.ts +0 -0
- /package/dist/{esm/v2/components/or-chips/partials → bundled/v2/components/or-chips}/OrChipsInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrChips → or-chips}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCode → or-code}/OrCode.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCode → or-code}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCode → or-code}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCode → or-code}/lang.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCode → or-code}/theme.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCollapse → or-collapse}/OrCollapse.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCollapse → or-collapse}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrColorPicker → or-color-picker}/OrColorPicker.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrColorPicker → or-color-picker}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrColorPicker → or-color-picker}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrColorPicker → or-color-picker}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrColorPicker → or-color-picker}/utils/defultPalette.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCombinedInputV3 → or-combined-input-v3}/OrCombinedInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCombinedInputV3 → or-combined-input-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCombinedInputV3 → or-combined-input-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrCombinedInputV3 → or-combined-input-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrConfirm → or-confirm}/OrConfirm.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrConfirm → or-confirm}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrConfirmV3 → or-confirm-v3}/OrConfirm.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrConfirmV3 → or-confirm-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrConfirmV3 → or-confirm-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrConfirmV3 → or-confirm-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrDateTimePicker → or-date-time-picker}/OrDateTimePicker.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrDateTimePicker → or-date-time-picker}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrDateTimePicker → or-date-time-picker}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrEmptyStateV3 → or-empty-state-v3}/OrEmptyState.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrEmptyStateV3 → or-empty-state-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrEmptyStateV3 → or-empty-state-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrEmptyStateV3 → or-empty-state-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrEmptyStateV3 → or-empty-state-v3}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrError → or-error}/OrError.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrError → or-error}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrErrorTagV3 → or-error-tag-v3}/OrErrorTag.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrErrorTagV3 → or-error-tag-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrErrorTagV3 → or-error-tag-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrErrorV3 → or-error-v3}/OrError.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrErrorV3 → or-error-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrErrorV3 → or-error-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrExpansionPanelV3 → or-expansion-panel-v3}/OrExpansionPanel.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrExpansionPanelV3 → or-expansion-panel-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrExpansionPanelV3 → or-expansion-panel-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrExpansionPanelV3 → or-expansion-panel-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrFabV3 → or-fab-v3}/OrFab.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrFabV3 → or-fab-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrFabV3 → or-fab-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrFabV3 → or-fab-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrFloating → or-floating}/OrFloating.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrFloating → or-floating}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrFloating → or-floating}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrHint → or-hint}/OrHint.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrHint → or-hint}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrHintV3 → or-hint-v3}/OrHint.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrHintV3 → or-hint-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrHintV3 → or-hint-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrIcon → or-icon}/OrIcon.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrIcon → or-icon}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrIcon → or-icon}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrIconButtonV3 → or-icon-button-v3}/OrIconButton.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrIconButtonV3 → or-icon-button-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrIconButtonV3 → or-icon-button-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrIconButtonV3 → or-icon-button-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrIconV3 → or-icon-v3}/OrIcon.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrIconV3 → or-icon-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrIconV3 → or-icon-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrIconV3 → or-icon-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineInputBoxV3 → or-inline-input-box-v3}/OrInlineInputBox.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineInputBoxV3 → or-inline-input-box-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineInputBoxV3 → or-inline-input-box-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineInputBoxV3 → or-inline-input-box-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineInputV3 → or-inline-input-v3}/OrInlineInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineInputV3 → or-inline-input-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineInputV3 → or-inline-input-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineInputV3 → or-inline-input-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineTextEdit → or-inline-text-edit}/OrInlineTextEdit.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineTextEdit → or-inline-text-edit}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineTextEdit → or-inline-text-edit}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineTextareaV3 → or-inline-textarea-v3}/OrInlineTextarea.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineTextareaV3 → or-inline-textarea-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInlineTextareaV3 → or-inline-textarea-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInput → or-input}/OrInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInput → or-input}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInputBoxV3 → or-input-box-v3}/OrInputBox.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInputBoxV3 → or-input-box-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInputBoxV3 → or-input-box-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInputBoxV3 → or-input-box-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInputV3 → or-input-v3}/OrInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInputV3 → or-input-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInputV3 → or-input-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrInputV3 → or-input-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLabel → or-label}/OrLabel.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLabel → or-label}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLabelV3 → or-label-v3}/OrLabel.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLabelV3 → or-label-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLabelV3 → or-label-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLabelV3 → or-label-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLinkV3 → or-link-v3}/OrLink.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLinkV3 → or-link-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLinkV3 → or-link-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLinkV3 → or-link-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrList → or-list}/OrList.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrList → or-list}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrListOfInputs → or-list-of-inputs}/OrListOfInputs.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrListOfInputs → or-list-of-inputs}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLoader → or-loader}/OrLoader.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLoader → or-loader}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLoader → or-loader}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLoader → or-loader}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLoaderV3 → or-loader-v3}/OrLoader.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLoaderV3 → or-loader-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLoaderV3 → or-loader-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrLoaderV3 → or-loader-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrMenuItemV3 → or-menu-item-v3}/OrMenuItem.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrMenuItemV3 → or-menu-item-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrMenuItemV3 → or-menu-item-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrMenuV3 → or-menu-v3}/OrMenu.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrMenuV3 → or-menu-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrMenuV3 → or-menu-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrMenuV3 → or-menu-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrModal → or-modal}/OrModal.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrModal → or-modal}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrModal → or-modal}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrModalV3 → or-modal-v3}/OrModal.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrModalV3 → or-modal-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrModalV3 → or-modal-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrModalV3 → or-modal-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrNotification → or-notification}/OrNotification.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrNotification → or-notification}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrNotification → or-notification}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrNotificationV3 → or-notification-v3}/OrNotification.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrNotificationV3 → or-notification-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrNotificationV3 → or-notification-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrNotificationV3 → or-notification-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrNumberInput → or-number-input}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrNumberInput → or-number-input}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrOverflowMenu → or-overflow-menu}/OrOverflowMenu.vue.d.ts +0 -0
- /package/dist/{esm/v2/components/or-overflow-menu/partials → bundled/v2/components/or-overflow-menu}/OrOverflowMenuItem.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrOverflowMenu → or-overflow-menu}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrOverflowMenu → or-overflow-menu}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrOverlay → or-overlay}/OrOverlay.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrOverlay → or-overlay}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrOverlayV3 → or-overlay-v3}/OrOverlay.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrOverlayV3 → or-overlay-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrOverlayV3 → or-overlay-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrPaginationV3 → or-pagination-v3}/OrPagination.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrPaginationV3 → or-pagination-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrPaginationV3 → or-pagination-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrPaginationV3 → or-pagination-v3}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrPassword → or-password}/OrPassword.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrPassword → or-password}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrPopoverV3 → or-popover-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrPopoverV3 → or-popover-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrPopoverV3 → or-popover-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrProgress → or-progress}/OrProgress.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrProgress → or-progress}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrProgress → or-progress}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrProgressV3 → or-progress-v3}/OrProgress.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrProgressV3 → or-progress-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrProgressV3 → or-progress-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrProgressV3 → or-progress-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrRadio → or-radio}/OrRadio.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrRadio → or-radio}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrRadioGroup → or-radio-group}/OrRadioGroup.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrRadioGroup → or-radio-group}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrRadioV3 → or-radio-v3}/OrRadio.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrRadioV3 → or-radio-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrRadioV3 → or-radio-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSearch → or-search}/OrSearch.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSearch → or-search}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSearchV3 → or-search-v3}/OrSearch.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSearchV3 → or-search-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSearchV3 → or-search-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSegmentedControlV3 → or-segmented-control-v3}/OrSegmentedControl.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSegmentedControlV3 → or-segmented-control-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSegmentedControlV3 → or-segmented-control-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSegmentedControlV3 → or-segmented-control-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSegmentedControlV3 → or-segmented-control-v3}/types.d.ts +0 -0
- /package/dist/{esm/v2/components/or-select/partials → bundled/v2/components/or-select}/OrSelectContentEmpty.vue.d.ts +0 -0
- /package/dist/{esm/v2/components/or-select/partials → bundled/v2/components/or-select}/OrSelectSearchOptions.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSelect → or-select}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSelect → or-select}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSelect → or-select}/stories.helpers.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSelect → or-select}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSelectV3 → or-select-v3}/OrSelect.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSelectV3 → or-select-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSelectV3 → or-select-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSelectV3 → or-select-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSelectV3 → or-select-v3}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSidebar → or-sidebar}/OrSidebar.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSidebar → or-sidebar}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSidebar → or-sidebar}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSidebarV3 → or-sidebar-v3}/OrSidebar.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSidebarV3 → or-sidebar-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSidebarV3 → or-sidebar-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSidebarV3 → or-sidebar-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSkeletonCircle → or-skeleton}/OrSkeletonCircle.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSkeletonRect → or-skeleton}/OrSkeletonRect.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSkeleton → or-skeleton}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSkeletonCircleV3 → or-skeleton-v3}/OrSkeletonCircle.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSkeletonRectV3 → or-skeleton-v3}/OrSkeletonRect.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSkeletonTextV3 → or-skeleton-v3}/OrSkeletonText.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSkeletonV3 → or-skeleton-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSlider → or-slider}/OrSlider.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSlider → or-slider}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSortHeaderV3 → or-sort-header-v3}/OrSortHeader.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSortHeaderV3 → or-sort-header-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSortHeaderV3 → or-sort-header-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSortHeaderV3 → or-sort-header-v3}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrStepper → or-stepper}/OrStepper.vue.d.ts +0 -0
- /package/dist/{esm/v2/components/or-stepper/partials → bundled/v2/components/or-stepper}/OrStepperButtonOptions.vue.d.ts +0 -0
- /package/dist/{esm/v2/components/or-stepper/partials → bundled/v2/components/or-stepper}/OrStepperOptionHorizontal.vue.d.ts +0 -0
- /package/dist/{esm/v2/components/or-stepper/partials → bundled/v2/components/or-stepper}/OrStepperOptionVertical.vue.d.ts +0 -0
- /package/dist/{esm/v2/components/or-stepper/partials → bundled/v2/components/or-stepper}/OrStepperTitle.vue.d.ts +0 -0
- /package/dist/{esm/v2/components/or-stepper/partials → bundled/v2/components/or-stepper}/StatusIcon.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrStepper → or-stepper}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSwitch → or-switch}/OrSwitch.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSwitch → or-switch}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSwitchV3 → or-switch-v3}/OrSwitch.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSwitchV3 → or-switch-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrSwitchV3 → or-switch-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTab → or-tab}/OrTab.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTab → or-tab}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabHeaderItem → or-tab-header-item}/OrTabHeaderItem.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabHeaderItem → or-tab-header-item}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabV3 → or-tab-v3}/OrTab.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabV3 → or-tab-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabV3 → or-tab-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabs → or-tabs}/OrTabs.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabs → or-tabs}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabsV3 → or-tabs-v3}/OrTabs.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabsV3 → or-tabs-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabsV3 → or-tabs-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabsV3 → or-tabs-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTabsV3 → or-tabs-v3}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTag → or-tag}/OrTag.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTag → or-tag}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTagV3 → or-tag-v3}/OrTag.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTagV3 → or-tag-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTagV3 → or-tag-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTagV3 → or-tag-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTeleport → or-teleport}/OrTeleport.vue2.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTeleport → or-teleport}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTeleport → or-teleport}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTeleportV3 → or-teleport-v3}/OrTeleport.vue2.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTeleportV3 → or-teleport-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextV3 → or-text-v3}/OrText.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextV3 → or-text-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextV3 → or-text-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextarea → or-textarea}/OrTextarea.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextarea → or-textarea}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextareaV3 → or-textarea-v3}/OrTextarea.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextareaV3 → or-textarea-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextareaV3 → or-textarea-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextareaV3 → or-textarea-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextbox → or-textbox}/OrTextbox.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextbox → or-textbox}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTextbox → or-textbox}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToast → or-toast}/OrToast.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToastV3 → or-toast}/Timer.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToast → or-toast}/composable/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToastV3 → or-toast}/composable/useQueue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToastV3 → or-toast}/composable/useToast.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToastV3 → or-toast}/composable/useToastEventBus.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToast → or-toast}/constants.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToast → or-toast}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToastV3 → or-toast-v3}/OrToast.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToast → or-toast-v3}/Timer.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToastV3 → or-toast-v3}/composable/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToast → or-toast-v3}/composable/useQueue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToast → or-toast-v3}/composable/useToast.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToast → or-toast-v3}/composable/useToastEventBus.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToastV3 → or-toast-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToastV3 → or-toast-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrToastV3 → or-toast-v3}/types.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTooltip → or-tooltip}/OrTooltip.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTooltipContent → or-tooltip}/OrTooltipContent.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTooltipV3 → or-tooltip-v3}/OrTooltip.vue.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTooltipV3 → or-tooltip-v3}/index.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTooltipV3 → or-tooltip-v3}/props.d.ts +0 -0
- /package/dist/bundled/v2/components/{OrTooltipV3 → or-tooltip-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrAvatar → or-avatar}/OrAvatar.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrAvatar → or-avatar}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrAvatar → or-avatar}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrAvatarV3 → or-avatar-v3}/OrAvatar.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrAvatarV3 → or-avatar-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrAvatarV3 → or-avatar-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrAvatarV3 → or-avatar-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrBottomSheetV3 → or-bottom-sheet-v3}/OrBottomSheet.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrBottomSheetV3 → or-bottom-sheet-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrBottomSheetV3 → or-bottom-sheet-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrButton → or-button}/OrButton.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrButton → or-button}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrButton → or-button}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrButtonV2 → or-button-v2}/OrButton.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrButtonV2 → or-button-v2}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrButtonV3 → or-button-v3}/OrButton.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrButtonV3 → or-button-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrButtonV3 → or-button-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrButtonV3 → or-button-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCard → or-card}/OrCard.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCard → or-card}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardCollection → or-card-collection}/OrCardCollection.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardCollection → or-card-collection}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardCollection → or-card-collection}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardCollection → or-card-collection}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardCollectionV3 → or-card-collection-v3}/OrCardCollection.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardCollectionV3 → or-card-collection-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardCollectionV3 → or-card-collection-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardCollectionV3 → or-card-collection-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardCollectionV3 → or-card-collection-v3}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardV3 → or-card-v3}/OrCard.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardV3 → or-card-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCardV3 → or-card-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCarousel → or-carousel}/OrCarousel.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCarouselItem → or-carousel}/OrCarouselItem.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCarousel → or-carousel}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCheckbox → or-checkbox}/OrCheckbox.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCheckbox → or-checkbox}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCheckboxV3 → or-checkbox-v3}/OrCheckbox.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCheckboxV3 → or-checkbox-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCheckboxV3 → or-checkbox-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrChip → or-chips}/OrChip.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrChips → or-chips}/OrChips.vue.d.ts +0 -0
- /package/dist/{esm/v3/components/or-chips/partials → bundled/v3/components/or-chips}/OrChipsInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrChips → or-chips}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCode → or-code}/OrCode.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCode → or-code}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCode → or-code}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCode → or-code}/lang.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCode → or-code}/theme.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCollapse → or-collapse}/OrCollapse.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCollapse → or-collapse}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrColorPicker → or-color-picker}/OrColorPicker.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrColorPicker → or-color-picker}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrColorPicker → or-color-picker}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrColorPicker → or-color-picker}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrColorPicker → or-color-picker}/utils/defultPalette.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCombinedInputV3 → or-combined-input-v3}/OrCombinedInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCombinedInputV3 → or-combined-input-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCombinedInputV3 → or-combined-input-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrCombinedInputV3 → or-combined-input-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrConfirm → or-confirm}/OrConfirm.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrConfirm → or-confirm}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrConfirmV3 → or-confirm-v3}/OrConfirm.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrConfirmV3 → or-confirm-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrConfirmV3 → or-confirm-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrConfirmV3 → or-confirm-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrDateTimePicker → or-date-time-picker}/OrDateTimePicker.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrDateTimePicker → or-date-time-picker}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrDateTimePicker → or-date-time-picker}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrEmptyStateV3 → or-empty-state-v3}/OrEmptyState.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrEmptyStateV3 → or-empty-state-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrEmptyStateV3 → or-empty-state-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrEmptyStateV3 → or-empty-state-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrEmptyStateV3 → or-empty-state-v3}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrError → or-error}/OrError.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrError → or-error}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrErrorTagV3 → or-error-tag-v3}/OrErrorTag.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrErrorTagV3 → or-error-tag-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrErrorTagV3 → or-error-tag-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrErrorV3 → or-error-v3}/OrError.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrErrorV3 → or-error-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrErrorV3 → or-error-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrExpansionPanelV3 → or-expansion-panel-v3}/OrExpansionPanel.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrExpansionPanelV3 → or-expansion-panel-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrExpansionPanelV3 → or-expansion-panel-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrExpansionPanelV3 → or-expansion-panel-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrFabV3 → or-fab-v3}/OrFab.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrFabV3 → or-fab-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrFabV3 → or-fab-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrFabV3 → or-fab-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrFloating → or-floating}/OrFloating.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrFloating → or-floating}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrFloating → or-floating}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrHint → or-hint}/OrHint.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrHint → or-hint}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrHintV3 → or-hint-v3}/OrHint.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrHintV3 → or-hint-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrHintV3 → or-hint-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrIcon → or-icon}/OrIcon.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrIcon → or-icon}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrIcon → or-icon}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrIconButtonV3 → or-icon-button-v3}/OrIconButton.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrIconButtonV3 → or-icon-button-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrIconButtonV3 → or-icon-button-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrIconButtonV3 → or-icon-button-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrIconV3 → or-icon-v3}/OrIcon.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrIconV3 → or-icon-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrIconV3 → or-icon-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrIconV3 → or-icon-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineInputBoxV3 → or-inline-input-box-v3}/OrInlineInputBox.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineInputBoxV3 → or-inline-input-box-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineInputBoxV3 → or-inline-input-box-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineInputBoxV3 → or-inline-input-box-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineInputV3 → or-inline-input-v3}/OrInlineInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineInputV3 → or-inline-input-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineInputV3 → or-inline-input-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineInputV3 → or-inline-input-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineTextEdit → or-inline-text-edit}/OrInlineTextEdit.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineTextEdit → or-inline-text-edit}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineTextEdit → or-inline-text-edit}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineTextareaV3 → or-inline-textarea-v3}/OrInlineTextarea.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineTextareaV3 → or-inline-textarea-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInlineTextareaV3 → or-inline-textarea-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInput → or-input}/OrInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInput → or-input}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInputBoxV3 → or-input-box-v3}/OrInputBox.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInputBoxV3 → or-input-box-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInputBoxV3 → or-input-box-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInputBoxV3 → or-input-box-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInputV3 → or-input-v3}/OrInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInputV3 → or-input-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInputV3 → or-input-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrInputV3 → or-input-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLabel → or-label}/OrLabel.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLabel → or-label}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLabelV3 → or-label-v3}/OrLabel.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLabelV3 → or-label-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLabelV3 → or-label-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLabelV3 → or-label-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLinkV3 → or-link-v3}/OrLink.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLinkV3 → or-link-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLinkV3 → or-link-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLinkV3 → or-link-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrList → or-list}/OrList.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrList → or-list}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrListOfInputs → or-list-of-inputs}/OrListOfInputs.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrListOfInputs → or-list-of-inputs}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLoader → or-loader}/OrLoader.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLoader → or-loader}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLoader → or-loader}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLoader → or-loader}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLoaderV3 → or-loader-v3}/OrLoader.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLoaderV3 → or-loader-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLoaderV3 → or-loader-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrLoaderV3 → or-loader-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrMenuItemV3 → or-menu-item-v3}/OrMenuItem.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrMenuItemV3 → or-menu-item-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrMenuItemV3 → or-menu-item-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrMenuV3 → or-menu-v3}/OrMenu.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrMenuV3 → or-menu-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrMenuV3 → or-menu-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrMenuV3 → or-menu-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrModal → or-modal}/OrModal.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrModal → or-modal}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrModal → or-modal}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrModalV3 → or-modal-v3}/OrModal.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrModalV3 → or-modal-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrModalV3 → or-modal-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrModalV3 → or-modal-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrNotification → or-notification}/OrNotification.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrNotification → or-notification}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrNotification → or-notification}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrNotificationV3 → or-notification-v3}/OrNotification.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrNotificationV3 → or-notification-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrNotificationV3 → or-notification-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrNotificationV3 → or-notification-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrNumberInput → or-number-input}/OrNumberInput.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrNumberInput → or-number-input}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrOverflowMenu → or-overflow-menu}/OrOverflowMenu.vue.d.ts +0 -0
- /package/dist/{esm/v3/components/or-overflow-menu/partials → bundled/v3/components/or-overflow-menu}/OrOverflowMenuItem.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrOverflowMenu → or-overflow-menu}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrOverflowMenu → or-overflow-menu}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrOverlay → or-overlay}/OrOverlay.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrOverlay → or-overlay}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrOverlayV3 → or-overlay-v3}/OrOverlay.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrOverlayV3 → or-overlay-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrOverlayV3 → or-overlay-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrPaginationV3 → or-pagination-v3}/OrPagination.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrPaginationV3 → or-pagination-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrPaginationV3 → or-pagination-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrPaginationV3 → or-pagination-v3}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrPassword → or-password}/OrPassword.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrPassword → or-password}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrPopoverV3 → or-popover-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrPopoverV3 → or-popover-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrPopoverV3 → or-popover-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrProgress → or-progress}/OrProgress.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrProgress → or-progress}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrProgress → or-progress}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrProgressV3 → or-progress-v3}/OrProgress.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrProgressV3 → or-progress-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrProgressV3 → or-progress-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrProgressV3 → or-progress-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrRadio → or-radio}/OrRadio.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrRadio → or-radio}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrRadioGroup → or-radio-group}/OrRadioGroup.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrRadioGroup → or-radio-group}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrRadioV3 → or-radio-v3}/OrRadio.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrRadioV3 → or-radio-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrRadioV3 → or-radio-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSearch → or-search}/OrSearch.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSearch → or-search}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSearchV3 → or-search-v3}/OrSearch.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSearchV3 → or-search-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSearchV3 → or-search-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSegmentedControlV3 → or-segmented-control-v3}/OrSegmentedControl.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSegmentedControlV3 → or-segmented-control-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSegmentedControlV3 → or-segmented-control-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSegmentedControlV3 → or-segmented-control-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSegmentedControlV3 → or-segmented-control-v3}/types.d.ts +0 -0
- /package/dist/{esm/v3/components/or-select/partials → bundled/v3/components/or-select}/OrSelectContentEmpty.vue.d.ts +0 -0
- /package/dist/{esm/v3/components/or-select/partials → bundled/v3/components/or-select}/OrSelectSearchOptions.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSelect → or-select}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSelect → or-select}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSelect → or-select}/stories.helpers.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSelect → or-select}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSelectV3 → or-select-v3}/OrSelect.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSelectV3 → or-select-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSelectV3 → or-select-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSelectV3 → or-select-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSelectV3 → or-select-v3}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSidebar → or-sidebar}/OrSidebar.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSidebar → or-sidebar}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSidebar → or-sidebar}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSidebarV3 → or-sidebar-v3}/OrSidebar.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSidebarV3 → or-sidebar-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSidebarV3 → or-sidebar-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSidebarV3 → or-sidebar-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSkeletonCircle → or-skeleton}/OrSkeletonCircle.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSkeletonRect → or-skeleton}/OrSkeletonRect.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSkeleton → or-skeleton}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSkeletonCircleV3 → or-skeleton-v3}/OrSkeletonCircle.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSkeletonRectV3 → or-skeleton-v3}/OrSkeletonRect.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSkeletonTextV3 → or-skeleton-v3}/OrSkeletonText.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSkeletonV3 → or-skeleton-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSlider → or-slider}/OrSlider.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSlider → or-slider}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSortHeaderV3 → or-sort-header-v3}/OrSortHeader.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSortHeaderV3 → or-sort-header-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSortHeaderV3 → or-sort-header-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSortHeaderV3 → or-sort-header-v3}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrStepper → or-stepper}/OrStepper.vue.d.ts +0 -0
- /package/dist/{esm/v3/components/or-stepper/partials → bundled/v3/components/or-stepper}/OrStepperButtonOptions.vue.d.ts +0 -0
- /package/dist/{esm/v3/components/or-stepper/partials → bundled/v3/components/or-stepper}/OrStepperOptionHorizontal.vue.d.ts +0 -0
- /package/dist/{esm/v3/components/or-stepper/partials → bundled/v3/components/or-stepper}/OrStepperOptionVertical.vue.d.ts +0 -0
- /package/dist/{esm/v3/components/or-stepper/partials → bundled/v3/components/or-stepper}/OrStepperTitle.vue.d.ts +0 -0
- /package/dist/{esm/v3/components/or-stepper/partials → bundled/v3/components/or-stepper}/StatusIcon.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrStepper → or-stepper}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSwitch → or-switch}/OrSwitch.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSwitch → or-switch}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSwitchV3 → or-switch-v3}/OrSwitch.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSwitchV3 → or-switch-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrSwitchV3 → or-switch-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTab → or-tab}/OrTab.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTab → or-tab}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabHeaderItem → or-tab-header-item}/OrTabHeaderItem.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabHeaderItem → or-tab-header-item}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabV3 → or-tab-v3}/OrTab.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabV3 → or-tab-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabV3 → or-tab-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabs → or-tabs}/OrTabs.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabs → or-tabs}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabsV3 → or-tabs-v3}/OrTabs.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabsV3 → or-tabs-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabsV3 → or-tabs-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabsV3 → or-tabs-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTabsV3 → or-tabs-v3}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTag → or-tag}/OrTag.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTag → or-tag}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTagV3 → or-tag-v3}/OrTag.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTagV3 → or-tag-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTagV3 → or-tag-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTagV3 → or-tag-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTeleport → or-teleport}/OrTeleport.vue3.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTeleport → or-teleport}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTeleport → or-teleport}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTeleportV3 → or-teleport-v3}/OrTeleport.vue3.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTeleportV3 → or-teleport-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextV3 → or-text-v3}/OrText.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextV3 → or-text-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextV3 → or-text-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextarea → or-textarea}/OrTextarea.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextarea → or-textarea}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextareaV3 → or-textarea-v3}/OrTextarea.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextareaV3 → or-textarea-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextareaV3 → or-textarea-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextareaV3 → or-textarea-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextbox → or-textbox}/OrTextbox.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextbox → or-textbox}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTextbox → or-textbox}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToast → or-toast}/OrToast.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToastV3 → or-toast}/Timer.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToast → or-toast}/composable/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToastV3 → or-toast}/composable/useQueue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToastV3 → or-toast}/composable/useToast.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToastV3 → or-toast}/composable/useToastEventBus.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToast → or-toast}/constants.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToast → or-toast}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToastV3 → or-toast-v3}/OrToast.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToast → or-toast-v3}/Timer.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToastV3 → or-toast-v3}/composable/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToast → or-toast-v3}/composable/useQueue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToast → or-toast-v3}/composable/useToast.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToast → or-toast-v3}/composable/useToastEventBus.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToastV3 → or-toast-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToastV3 → or-toast-v3}/styles.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrToastV3 → or-toast-v3}/types.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTooltip → or-tooltip}/OrTooltip.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTooltipContent → or-tooltip}/OrTooltipContent.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTooltipV3 → or-tooltip-v3}/OrTooltip.vue.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTooltipV3 → or-tooltip-v3}/index.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTooltipV3 → or-tooltip-v3}/props.d.ts +0 -0
- /package/dist/bundled/v3/components/{OrTooltipV3 → or-tooltip-v3}/styles.d.ts +0 -0
- /package/dist/esm/v2/components/or-carousel/{or-carousel-item/OrCarouselItem.vue.d.ts → OrCarouselItem.vue.d.ts} +0 -0
- /package/dist/esm/v2/components/or-chips/{or-chip/OrChip.vue.d.ts → OrChip.vue.d.ts} +0 -0
- /package/dist/esm/v2/components/or-skeleton/{or-skeleton-circle/OrSkeletonCircle.vue.d.ts → OrSkeletonCircle.vue.d.ts} +0 -0
- /package/dist/esm/v2/components/or-skeleton/{or-skeleton-rect/OrSkeletonRect.vue.d.ts → OrSkeletonRect.vue.d.ts} +0 -0
- /package/dist/esm/v2/components/or-skeleton-v3/{or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts → OrSkeletonCircle.vue.d.ts} +0 -0
- /package/dist/esm/v2/components/or-skeleton-v3/{or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts → OrSkeletonRect.vue.d.ts} +0 -0
- /package/dist/esm/v2/components/or-skeleton-v3/{or-skeleton-text-v3/OrSkeletonText.vue.d.ts → OrSkeletonText.vue.d.ts} +0 -0
- /package/dist/esm/v2/components/or-tooltip/{or-tooltip-content/OrTooltipContent.vue.d.ts → OrTooltipContent.vue.d.ts} +0 -0
- /package/dist/esm/v3/components/or-carousel/{or-carousel-item/OrCarouselItem.vue.d.ts → OrCarouselItem.vue.d.ts} +0 -0
- /package/dist/esm/v3/components/or-chips/{or-chip/OrChip.vue.d.ts → OrChip.vue.d.ts} +0 -0
- /package/dist/esm/v3/components/or-skeleton/{or-skeleton-circle/OrSkeletonCircle.vue.d.ts → OrSkeletonCircle.vue.d.ts} +0 -0
- /package/dist/esm/v3/components/or-skeleton/{or-skeleton-rect/OrSkeletonRect.vue.d.ts → OrSkeletonRect.vue.d.ts} +0 -0
- /package/dist/esm/v3/components/or-skeleton-v3/{or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts → OrSkeletonCircle.vue.d.ts} +0 -0
- /package/dist/esm/v3/components/or-skeleton-v3/{or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts → OrSkeletonRect.vue.d.ts} +0 -0
- /package/dist/esm/v3/components/or-skeleton-v3/{or-skeleton-text-v3/OrSkeletonText.vue.d.ts → OrSkeletonText.vue.d.ts} +0 -0
- /package/dist/esm/v3/components/or-tooltip/{or-tooltip-content/OrTooltipContent.vue.d.ts → OrTooltipContent.vue.d.ts} +0 -0
- /package/src/components/or-carousel/{or-carousel-item/OrCarouselItem.vue → OrCarouselItem.vue} +0 -0
- /package/src/components/or-chips/{or-chip/OrChip.stories.ts → OrChip.stories.ts} +0 -0
- /package/src/components/or-skeleton-v3/{or-skeleton-circle-v3/OrSkeletonCircle.docs.mdx → OrSkeletonCircle.docs.mdx} +0 -0
- /package/src/components/or-skeleton-v3/{or-skeleton-circle-v3/OrSkeletonCircle.stories3.ts → OrSkeletonCircle.stories3.ts} +0 -0
- /package/src/components/or-skeleton-v3/{or-skeleton-rect-v3/OrSkeletonRect.docs.mdx → OrSkeletonRect.docs.mdx} +0 -0
- /package/src/components/or-skeleton-v3/{or-skeleton-rect-v3/OrSkeletonRect.stories3.ts → OrSkeletonRect.stories3.ts} +0 -0
- /package/src/components/or-skeleton-v3/{or-skeleton-text-v3/OrSkeletonText.docs.mdx → OrSkeletonText.docs.mdx} +0 -0
- /package/src/components/or-skeleton-v3/{or-skeleton-text-v3/OrSkeletonText.stories3.ts → OrSkeletonText.stories3.ts} +0 -0
- /package/src/components/or-stepper/{partials/OrStepperOptionHorizontal.vue → OrStepperOptionHorizontal.vue} +0 -0
- /package/src/components/or-stepper/{partials/OrStepperOptionVertical.vue → OrStepperOptionVertical.vue} +0 -0
- /package/src/components/or-stepper/{partials/OrStepperTitle.vue → OrStepperTitle.vue} +0 -0
- /package/src/components/or-toast/{or-toast-container/OrToastContainer.stories.mdx → OrToastContainer.stories.mdx} +0 -0
- /package/src/components/or-toast-v3/{or-toast-container-v3/OrToastContainer.docs.mdx → OrToastContainer.docs.mdx} +0 -0
- /package/src/components/or-tooltip/{or-tooltip-content/OrTooltipContent.vue → OrTooltipContent.vue} +0 -0
|
@@ -1,3960 +0,0 @@
|
|
|
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
|
-
import { useElementHover } from '@vueuse/core';
|
|
4
|
-
import { defineComponent, ref } from 'vue-demi';
|
|
5
|
-
import script$3 from './components/OrTeleport/OrTeleport.js';
|
|
6
|
-
import { OrCodeLanguages } from './components/OrCode/constants.js';
|
|
7
|
-
import theme from './components/OrCode/theme.js';
|
|
8
|
-
import './components/OrIconButtonV2/OrIconButton.js';
|
|
9
|
-
import './components/OrModal/OrModal.js';
|
|
10
|
-
import { s as script$2 } from './OrModal.vue_vue_type_script_lang-631858eb.js';
|
|
11
|
-
import './components/OrError/OrError.js';
|
|
12
|
-
import './components/OrHint/OrHint.js';
|
|
13
|
-
import './components/OrLabel/OrLabel.js';
|
|
14
|
-
import { s as script$1 } from './OrIconButton.vue_vue_type_script_lang-4a3f6358.js';
|
|
15
|
-
import { s as script$4 } from './OrError.vue_vue_type_script_lang-450321b8.js';
|
|
16
|
-
import { s as script$5 } from './OrHint.vue_vue_type_script_lang-5d628c6c.js';
|
|
17
|
-
import { s as script$6 } from './OrLabel.vue_vue_type_script_lang-95601b40.js';
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
Comment or uncomment the current selection. Will use line comments
|
|
21
|
-
if available, otherwise falling back to block comments.
|
|
22
|
-
*/
|
|
23
|
-
const toggleComment = target => {
|
|
24
|
-
let {
|
|
25
|
-
state
|
|
26
|
-
} = target,
|
|
27
|
-
line = state.doc.lineAt(state.selection.main.head),
|
|
28
|
-
config = getConfig(target.state, line.from);
|
|
29
|
-
return config.line ? toggleLineComment(target) : config.block ? toggleBlockCommentByLine(target) : false;
|
|
30
|
-
};
|
|
31
|
-
function command(f, option) {
|
|
32
|
-
return ({
|
|
33
|
-
state,
|
|
34
|
-
dispatch
|
|
35
|
-
}) => {
|
|
36
|
-
if (state.readOnly) return false;
|
|
37
|
-
let tr = f(option, state);
|
|
38
|
-
if (!tr) return false;
|
|
39
|
-
dispatch(state.update(tr));
|
|
40
|
-
return true;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
Comment or uncomment the current selection using line comments.
|
|
45
|
-
The line comment syntax is taken from the
|
|
46
|
-
[`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language
|
|
47
|
-
data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).
|
|
48
|
-
*/
|
|
49
|
-
const toggleLineComment = /*@__PURE__*/command(changeLineComment, 0 /* CommentOption.Toggle */);
|
|
50
|
-
/**
|
|
51
|
-
Comment or uncomment the current selection using block comments.
|
|
52
|
-
The block comment syntax is taken from the
|
|
53
|
-
[`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language
|
|
54
|
-
data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).
|
|
55
|
-
*/
|
|
56
|
-
const toggleBlockComment = /*@__PURE__*/command(changeBlockComment, 0 /* CommentOption.Toggle */);
|
|
57
|
-
/**
|
|
58
|
-
Comment or uncomment the lines around the current selection using
|
|
59
|
-
block comments.
|
|
60
|
-
*/
|
|
61
|
-
const toggleBlockCommentByLine = /*@__PURE__*/command((o, s) => changeBlockComment(o, s, selectedLineRanges(s)), 0 /* CommentOption.Toggle */);
|
|
62
|
-
function getConfig(state, pos) {
|
|
63
|
-
let data = state.languageDataAt("commentTokens", pos);
|
|
64
|
-
return data.length ? data[0] : {};
|
|
65
|
-
}
|
|
66
|
-
const SearchMargin = 50;
|
|
67
|
-
/**
|
|
68
|
-
Determines if the given range is block-commented in the given
|
|
69
|
-
state.
|
|
70
|
-
*/
|
|
71
|
-
function findBlockComment(state, {
|
|
72
|
-
open,
|
|
73
|
-
close
|
|
74
|
-
}, from, to) {
|
|
75
|
-
let textBefore = state.sliceDoc(from - SearchMargin, from);
|
|
76
|
-
let textAfter = state.sliceDoc(to, to + SearchMargin);
|
|
77
|
-
let spaceBefore = /\s*$/.exec(textBefore)[0].length,
|
|
78
|
-
spaceAfter = /^\s*/.exec(textAfter)[0].length;
|
|
79
|
-
let beforeOff = textBefore.length - spaceBefore;
|
|
80
|
-
if (textBefore.slice(beforeOff - open.length, beforeOff) == open && textAfter.slice(spaceAfter, spaceAfter + close.length) == close) {
|
|
81
|
-
return {
|
|
82
|
-
open: {
|
|
83
|
-
pos: from - spaceBefore,
|
|
84
|
-
margin: spaceBefore && 1
|
|
85
|
-
},
|
|
86
|
-
close: {
|
|
87
|
-
pos: to + spaceAfter,
|
|
88
|
-
margin: spaceAfter && 1
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
let startText, endText;
|
|
93
|
-
if (to - from <= 2 * SearchMargin) {
|
|
94
|
-
startText = endText = state.sliceDoc(from, to);
|
|
95
|
-
} else {
|
|
96
|
-
startText = state.sliceDoc(from, from + SearchMargin);
|
|
97
|
-
endText = state.sliceDoc(to - SearchMargin, to);
|
|
98
|
-
}
|
|
99
|
-
let startSpace = /^\s*/.exec(startText)[0].length,
|
|
100
|
-
endSpace = /\s*$/.exec(endText)[0].length;
|
|
101
|
-
let endOff = endText.length - endSpace - close.length;
|
|
102
|
-
if (startText.slice(startSpace, startSpace + open.length) == open && endText.slice(endOff, endOff + close.length) == close) {
|
|
103
|
-
return {
|
|
104
|
-
open: {
|
|
105
|
-
pos: from + startSpace + open.length,
|
|
106
|
-
margin: /\s/.test(startText.charAt(startSpace + open.length)) ? 1 : 0
|
|
107
|
-
},
|
|
108
|
-
close: {
|
|
109
|
-
pos: to - endSpace - close.length,
|
|
110
|
-
margin: /\s/.test(endText.charAt(endOff - 1)) ? 1 : 0
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
return null;
|
|
115
|
-
}
|
|
116
|
-
function selectedLineRanges(state) {
|
|
117
|
-
let ranges = [];
|
|
118
|
-
for (let r of state.selection.ranges) {
|
|
119
|
-
let fromLine = state.doc.lineAt(r.from);
|
|
120
|
-
let toLine = r.to <= fromLine.to ? fromLine : state.doc.lineAt(r.to);
|
|
121
|
-
let last = ranges.length - 1;
|
|
122
|
-
if (last >= 0 && ranges[last].to > fromLine.from) ranges[last].to = toLine.to;else ranges.push({
|
|
123
|
-
from: fromLine.from,
|
|
124
|
-
to: toLine.to
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
return ranges;
|
|
128
|
-
}
|
|
129
|
-
// Performs toggle, comment and uncomment of block comments in
|
|
130
|
-
// languages that support them.
|
|
131
|
-
function changeBlockComment(option, state, ranges = state.selection.ranges) {
|
|
132
|
-
let tokens = ranges.map(r => getConfig(state, r.from).block);
|
|
133
|
-
if (!tokens.every(c => c)) return null;
|
|
134
|
-
let comments = ranges.map((r, i) => findBlockComment(state, tokens[i], r.from, r.to));
|
|
135
|
-
if (option != 2 /* CommentOption.Uncomment */ && !comments.every(c => c)) {
|
|
136
|
-
return {
|
|
137
|
-
changes: state.changes(ranges.map((range, i) => {
|
|
138
|
-
if (comments[i]) return [];
|
|
139
|
-
return [{
|
|
140
|
-
from: range.from,
|
|
141
|
-
insert: tokens[i].open + " "
|
|
142
|
-
}, {
|
|
143
|
-
from: range.to,
|
|
144
|
-
insert: " " + tokens[i].close
|
|
145
|
-
}];
|
|
146
|
-
}))
|
|
147
|
-
};
|
|
148
|
-
} else if (option != 1 /* CommentOption.Comment */ && comments.some(c => c)) {
|
|
149
|
-
let changes = [];
|
|
150
|
-
for (let i = 0, comment; i < comments.length; i++) if (comment = comments[i]) {
|
|
151
|
-
let token = tokens[i],
|
|
152
|
-
{
|
|
153
|
-
open,
|
|
154
|
-
close
|
|
155
|
-
} = comment;
|
|
156
|
-
changes.push({
|
|
157
|
-
from: open.pos - token.open.length,
|
|
158
|
-
to: open.pos + open.margin
|
|
159
|
-
}, {
|
|
160
|
-
from: close.pos - close.margin,
|
|
161
|
-
to: close.pos + token.close.length
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
return {
|
|
165
|
-
changes
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
return null;
|
|
169
|
-
}
|
|
170
|
-
// Performs toggle, comment and uncomment of line comments.
|
|
171
|
-
function changeLineComment(option, state, ranges = state.selection.ranges) {
|
|
172
|
-
let lines = [];
|
|
173
|
-
let prevLine = -1;
|
|
174
|
-
for (let {
|
|
175
|
-
from,
|
|
176
|
-
to
|
|
177
|
-
} of ranges) {
|
|
178
|
-
let startI = lines.length,
|
|
179
|
-
minIndent = 1e9;
|
|
180
|
-
for (let pos = from; pos <= to;) {
|
|
181
|
-
let line = state.doc.lineAt(pos);
|
|
182
|
-
if (line.from > prevLine && (from == to || to > line.from)) {
|
|
183
|
-
prevLine = line.from;
|
|
184
|
-
let token = getConfig(state, line.from).line;
|
|
185
|
-
if (!token) continue;
|
|
186
|
-
let indent = /^\s*/.exec(line.text)[0].length;
|
|
187
|
-
let empty = indent == line.length;
|
|
188
|
-
let comment = line.text.slice(indent, indent + token.length) == token ? indent : -1;
|
|
189
|
-
if (indent < line.text.length && indent < minIndent) minIndent = indent;
|
|
190
|
-
lines.push({
|
|
191
|
-
line,
|
|
192
|
-
comment,
|
|
193
|
-
token,
|
|
194
|
-
indent,
|
|
195
|
-
empty,
|
|
196
|
-
single: false
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
pos = line.to + 1;
|
|
200
|
-
}
|
|
201
|
-
if (minIndent < 1e9) for (let i = startI; i < lines.length; i++) if (lines[i].indent < lines[i].line.text.length) lines[i].indent = minIndent;
|
|
202
|
-
if (lines.length == startI + 1) lines[startI].single = true;
|
|
203
|
-
}
|
|
204
|
-
if (option != 2 /* CommentOption.Uncomment */ && lines.some(l => l.comment < 0 && (!l.empty || l.single))) {
|
|
205
|
-
let changes = [];
|
|
206
|
-
for (let {
|
|
207
|
-
line,
|
|
208
|
-
token,
|
|
209
|
-
indent,
|
|
210
|
-
empty,
|
|
211
|
-
single
|
|
212
|
-
} of lines) if (single || !empty) changes.push({
|
|
213
|
-
from: line.from + indent,
|
|
214
|
-
insert: token + " "
|
|
215
|
-
});
|
|
216
|
-
let changeSet = state.changes(changes);
|
|
217
|
-
return {
|
|
218
|
-
changes: changeSet,
|
|
219
|
-
selection: state.selection.map(changeSet, 1)
|
|
220
|
-
};
|
|
221
|
-
} else if (option != 1 /* CommentOption.Comment */ && lines.some(l => l.comment >= 0)) {
|
|
222
|
-
let changes = [];
|
|
223
|
-
for (let {
|
|
224
|
-
line,
|
|
225
|
-
comment,
|
|
226
|
-
token
|
|
227
|
-
} of lines) if (comment >= 0) {
|
|
228
|
-
let from = line.from + comment,
|
|
229
|
-
to = from + token.length;
|
|
230
|
-
if (line.text[to - line.from] == " ") to++;
|
|
231
|
-
changes.push({
|
|
232
|
-
from,
|
|
233
|
-
to
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
return {
|
|
237
|
-
changes
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
return null;
|
|
241
|
-
}
|
|
242
|
-
const fromHistory = /*@__PURE__*/Annotation.define();
|
|
243
|
-
/**
|
|
244
|
-
Transaction annotation that will prevent that transaction from
|
|
245
|
-
being combined with other transactions in the undo history. Given
|
|
246
|
-
`"before"`, it'll prevent merging with previous transactions. With
|
|
247
|
-
`"after"`, subsequent transactions won't be combined with this
|
|
248
|
-
one. With `"full"`, the transaction is isolated on both sides.
|
|
249
|
-
*/
|
|
250
|
-
const isolateHistory = /*@__PURE__*/Annotation.define();
|
|
251
|
-
/**
|
|
252
|
-
This facet provides a way to register functions that, given a
|
|
253
|
-
transaction, provide a set of effects that the history should
|
|
254
|
-
store when inverting the transaction. This can be used to
|
|
255
|
-
integrate some kinds of effects in the history, so that they can
|
|
256
|
-
be undone (and redone again).
|
|
257
|
-
*/
|
|
258
|
-
const invertedEffects = /*@__PURE__*/Facet.define();
|
|
259
|
-
const historyConfig = /*@__PURE__*/Facet.define({
|
|
260
|
-
combine(configs) {
|
|
261
|
-
return combineConfig(configs, {
|
|
262
|
-
minDepth: 100,
|
|
263
|
-
newGroupDelay: 500,
|
|
264
|
-
joinToEvent: (_t, isAdjacent) => isAdjacent
|
|
265
|
-
}, {
|
|
266
|
-
minDepth: Math.max,
|
|
267
|
-
newGroupDelay: Math.min,
|
|
268
|
-
joinToEvent: (a, b) => (tr, adj) => a(tr, adj) || b(tr, adj)
|
|
269
|
-
});
|
|
270
|
-
}
|
|
271
|
-
});
|
|
272
|
-
function changeEnd(changes) {
|
|
273
|
-
let end = 0;
|
|
274
|
-
changes.iterChangedRanges((_, to) => end = to);
|
|
275
|
-
return end;
|
|
276
|
-
}
|
|
277
|
-
const historyField_ = /*@__PURE__*/StateField.define({
|
|
278
|
-
create() {
|
|
279
|
-
return HistoryState.empty;
|
|
280
|
-
},
|
|
281
|
-
update(state, tr) {
|
|
282
|
-
let config = tr.state.facet(historyConfig);
|
|
283
|
-
let fromHist = tr.annotation(fromHistory);
|
|
284
|
-
if (fromHist) {
|
|
285
|
-
let selection = tr.docChanged ? EditorSelection.single(changeEnd(tr.changes)) : undefined;
|
|
286
|
-
let item = HistEvent.fromTransaction(tr, selection),
|
|
287
|
-
from = fromHist.side;
|
|
288
|
-
let other = from == 0 /* BranchName.Done */ ? state.undone : state.done;
|
|
289
|
-
if (item) other = updateBranch(other, other.length, config.minDepth, item);else other = addSelection(other, tr.startState.selection);
|
|
290
|
-
return new HistoryState(from == 0 /* BranchName.Done */ ? fromHist.rest : other, from == 0 /* BranchName.Done */ ? other : fromHist.rest);
|
|
291
|
-
}
|
|
292
|
-
let isolate = tr.annotation(isolateHistory);
|
|
293
|
-
if (isolate == "full" || isolate == "before") state = state.isolate();
|
|
294
|
-
if (tr.annotation(Transaction.addToHistory) === false) return !tr.changes.empty ? state.addMapping(tr.changes.desc) : state;
|
|
295
|
-
let event = HistEvent.fromTransaction(tr);
|
|
296
|
-
let time = tr.annotation(Transaction.time),
|
|
297
|
-
userEvent = tr.annotation(Transaction.userEvent);
|
|
298
|
-
if (event) state = state.addChanges(event, time, userEvent, config, tr);else if (tr.selection) state = state.addSelection(tr.startState.selection, time, userEvent, config.newGroupDelay);
|
|
299
|
-
if (isolate == "full" || isolate == "after") state = state.isolate();
|
|
300
|
-
return state;
|
|
301
|
-
},
|
|
302
|
-
toJSON(value) {
|
|
303
|
-
return {
|
|
304
|
-
done: value.done.map(e => e.toJSON()),
|
|
305
|
-
undone: value.undone.map(e => e.toJSON())
|
|
306
|
-
};
|
|
307
|
-
},
|
|
308
|
-
fromJSON(json) {
|
|
309
|
-
return new HistoryState(json.done.map(HistEvent.fromJSON), json.undone.map(HistEvent.fromJSON));
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
|
-
/**
|
|
313
|
-
Create a history extension with the given configuration.
|
|
314
|
-
*/
|
|
315
|
-
function history(config = {}) {
|
|
316
|
-
return [historyField_, historyConfig.of(config), EditorView.domEventHandlers({
|
|
317
|
-
beforeinput(e, view) {
|
|
318
|
-
let command = e.inputType == "historyUndo" ? undo : e.inputType == "historyRedo" ? redo : null;
|
|
319
|
-
if (!command) return false;
|
|
320
|
-
e.preventDefault();
|
|
321
|
-
return command(view);
|
|
322
|
-
}
|
|
323
|
-
})];
|
|
324
|
-
}
|
|
325
|
-
function cmd(side, selection) {
|
|
326
|
-
return function ({
|
|
327
|
-
state,
|
|
328
|
-
dispatch
|
|
329
|
-
}) {
|
|
330
|
-
if (!selection && state.readOnly) return false;
|
|
331
|
-
let historyState = state.field(historyField_, false);
|
|
332
|
-
if (!historyState) return false;
|
|
333
|
-
let tr = historyState.pop(side, state, selection);
|
|
334
|
-
if (!tr) return false;
|
|
335
|
-
dispatch(tr);
|
|
336
|
-
return true;
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
Undo a single group of history events. Returns false if no group
|
|
341
|
-
was available.
|
|
342
|
-
*/
|
|
343
|
-
const undo = /*@__PURE__*/cmd(0 /* BranchName.Done */, false);
|
|
344
|
-
/**
|
|
345
|
-
Redo a group of history events. Returns false if no group was
|
|
346
|
-
available.
|
|
347
|
-
*/
|
|
348
|
-
const redo = /*@__PURE__*/cmd(1 /* BranchName.Undone */, false);
|
|
349
|
-
/**
|
|
350
|
-
Undo a change or selection change.
|
|
351
|
-
*/
|
|
352
|
-
const undoSelection = /*@__PURE__*/cmd(0 /* BranchName.Done */, true);
|
|
353
|
-
/**
|
|
354
|
-
Redo a change or selection change.
|
|
355
|
-
*/
|
|
356
|
-
const redoSelection = /*@__PURE__*/cmd(1 /* BranchName.Undone */, true);
|
|
357
|
-
// History events store groups of changes or effects that need to be
|
|
358
|
-
// undone/redone together.
|
|
359
|
-
class HistEvent {
|
|
360
|
-
constructor(
|
|
361
|
-
// The changes in this event. Normal events hold at least one
|
|
362
|
-
// change or effect. But it may be necessary to store selection
|
|
363
|
-
// events before the first change, in which case a special type of
|
|
364
|
-
// instance is created which doesn't hold any changes, with
|
|
365
|
-
// changes == startSelection == undefined
|
|
366
|
-
changes,
|
|
367
|
-
// The effects associated with this event
|
|
368
|
-
effects,
|
|
369
|
-
// Accumulated mapping (from addToHistory==false) that should be
|
|
370
|
-
// applied to events below this one.
|
|
371
|
-
mapped,
|
|
372
|
-
// The selection before this event
|
|
373
|
-
startSelection,
|
|
374
|
-
// Stores selection changes after this event, to be used for
|
|
375
|
-
// selection undo/redo.
|
|
376
|
-
selectionsAfter) {
|
|
377
|
-
this.changes = changes;
|
|
378
|
-
this.effects = effects;
|
|
379
|
-
this.mapped = mapped;
|
|
380
|
-
this.startSelection = startSelection;
|
|
381
|
-
this.selectionsAfter = selectionsAfter;
|
|
382
|
-
}
|
|
383
|
-
setSelAfter(after) {
|
|
384
|
-
return new HistEvent(this.changes, this.effects, this.mapped, this.startSelection, after);
|
|
385
|
-
}
|
|
386
|
-
toJSON() {
|
|
387
|
-
var _a, _b, _c;
|
|
388
|
-
return {
|
|
389
|
-
changes: (_a = this.changes) === null || _a === void 0 ? void 0 : _a.toJSON(),
|
|
390
|
-
mapped: (_b = this.mapped) === null || _b === void 0 ? void 0 : _b.toJSON(),
|
|
391
|
-
startSelection: (_c = this.startSelection) === null || _c === void 0 ? void 0 : _c.toJSON(),
|
|
392
|
-
selectionsAfter: this.selectionsAfter.map(s => s.toJSON())
|
|
393
|
-
};
|
|
394
|
-
}
|
|
395
|
-
static fromJSON(json) {
|
|
396
|
-
return new HistEvent(json.changes && ChangeSet.fromJSON(json.changes), [], json.mapped && ChangeDesc.fromJSON(json.mapped), json.startSelection && EditorSelection.fromJSON(json.startSelection), json.selectionsAfter.map(EditorSelection.fromJSON));
|
|
397
|
-
}
|
|
398
|
-
// This does not check `addToHistory` and such, it assumes the
|
|
399
|
-
// transaction needs to be converted to an item. Returns null when
|
|
400
|
-
// there are no changes or effects in the transaction.
|
|
401
|
-
static fromTransaction(tr, selection) {
|
|
402
|
-
let effects = none;
|
|
403
|
-
for (let invert of tr.startState.facet(invertedEffects)) {
|
|
404
|
-
let result = invert(tr);
|
|
405
|
-
if (result.length) effects = effects.concat(result);
|
|
406
|
-
}
|
|
407
|
-
if (!effects.length && tr.changes.empty) return null;
|
|
408
|
-
return new HistEvent(tr.changes.invert(tr.startState.doc), effects, undefined, selection || tr.startState.selection, none);
|
|
409
|
-
}
|
|
410
|
-
static selection(selections) {
|
|
411
|
-
return new HistEvent(undefined, none, undefined, undefined, selections);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
function updateBranch(branch, to, maxLen, newEvent) {
|
|
415
|
-
let start = to + 1 > maxLen + 20 ? to - maxLen - 1 : 0;
|
|
416
|
-
let newBranch = branch.slice(start, to);
|
|
417
|
-
newBranch.push(newEvent);
|
|
418
|
-
return newBranch;
|
|
419
|
-
}
|
|
420
|
-
function isAdjacent(a, b) {
|
|
421
|
-
let ranges = [],
|
|
422
|
-
isAdjacent = false;
|
|
423
|
-
a.iterChangedRanges((f, t) => ranges.push(f, t));
|
|
424
|
-
b.iterChangedRanges((_f, _t, f, t) => {
|
|
425
|
-
for (let i = 0; i < ranges.length;) {
|
|
426
|
-
let from = ranges[i++],
|
|
427
|
-
to = ranges[i++];
|
|
428
|
-
if (t >= from && f <= to) isAdjacent = true;
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
return isAdjacent;
|
|
432
|
-
}
|
|
433
|
-
function eqSelectionShape(a, b) {
|
|
434
|
-
return a.ranges.length == b.ranges.length && a.ranges.filter((r, i) => r.empty != b.ranges[i].empty).length === 0;
|
|
435
|
-
}
|
|
436
|
-
function conc(a, b) {
|
|
437
|
-
return !a.length ? b : !b.length ? a : a.concat(b);
|
|
438
|
-
}
|
|
439
|
-
const none = [];
|
|
440
|
-
const MaxSelectionsPerEvent = 200;
|
|
441
|
-
function addSelection(branch, selection) {
|
|
442
|
-
if (!branch.length) {
|
|
443
|
-
return [HistEvent.selection([selection])];
|
|
444
|
-
} else {
|
|
445
|
-
let lastEvent = branch[branch.length - 1];
|
|
446
|
-
let sels = lastEvent.selectionsAfter.slice(Math.max(0, lastEvent.selectionsAfter.length - MaxSelectionsPerEvent));
|
|
447
|
-
if (sels.length && sels[sels.length - 1].eq(selection)) return branch;
|
|
448
|
-
sels.push(selection);
|
|
449
|
-
return updateBranch(branch, branch.length - 1, 1e9, lastEvent.setSelAfter(sels));
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
// Assumes the top item has one or more selectionAfter values
|
|
453
|
-
function popSelection(branch) {
|
|
454
|
-
let last = branch[branch.length - 1];
|
|
455
|
-
let newBranch = branch.slice();
|
|
456
|
-
newBranch[branch.length - 1] = last.setSelAfter(last.selectionsAfter.slice(0, last.selectionsAfter.length - 1));
|
|
457
|
-
return newBranch;
|
|
458
|
-
}
|
|
459
|
-
// Add a mapping to the top event in the given branch. If this maps
|
|
460
|
-
// away all the changes and effects in that item, drop it and
|
|
461
|
-
// propagate the mapping to the next item.
|
|
462
|
-
function addMappingToBranch(branch, mapping) {
|
|
463
|
-
if (!branch.length) return branch;
|
|
464
|
-
let length = branch.length,
|
|
465
|
-
selections = none;
|
|
466
|
-
while (length) {
|
|
467
|
-
let event = mapEvent(branch[length - 1], mapping, selections);
|
|
468
|
-
if (event.changes && !event.changes.empty || event.effects.length) {
|
|
469
|
-
// Event survived mapping
|
|
470
|
-
let result = branch.slice(0, length);
|
|
471
|
-
result[length - 1] = event;
|
|
472
|
-
return result;
|
|
473
|
-
} else {
|
|
474
|
-
// Drop this event, since there's no changes or effects left
|
|
475
|
-
mapping = event.mapped;
|
|
476
|
-
length--;
|
|
477
|
-
selections = event.selectionsAfter;
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
return selections.length ? [HistEvent.selection(selections)] : none;
|
|
481
|
-
}
|
|
482
|
-
function mapEvent(event, mapping, extraSelections) {
|
|
483
|
-
let selections = conc(event.selectionsAfter.length ? event.selectionsAfter.map(s => s.map(mapping)) : none, extraSelections);
|
|
484
|
-
// Change-less events don't store mappings (they are always the last event in a branch)
|
|
485
|
-
if (!event.changes) return HistEvent.selection(selections);
|
|
486
|
-
let mappedChanges = event.changes.map(mapping),
|
|
487
|
-
before = mapping.mapDesc(event.changes, true);
|
|
488
|
-
let fullMapping = event.mapped ? event.mapped.composeDesc(before) : before;
|
|
489
|
-
return new HistEvent(mappedChanges, StateEffect.mapEffects(event.effects, mapping), fullMapping, event.startSelection.map(before), selections);
|
|
490
|
-
}
|
|
491
|
-
const joinableUserEvent = /^(input\.type|delete)($|\.)/;
|
|
492
|
-
class HistoryState {
|
|
493
|
-
constructor(done, undone, prevTime = 0, prevUserEvent = undefined) {
|
|
494
|
-
this.done = done;
|
|
495
|
-
this.undone = undone;
|
|
496
|
-
this.prevTime = prevTime;
|
|
497
|
-
this.prevUserEvent = prevUserEvent;
|
|
498
|
-
}
|
|
499
|
-
isolate() {
|
|
500
|
-
return this.prevTime ? new HistoryState(this.done, this.undone) : this;
|
|
501
|
-
}
|
|
502
|
-
addChanges(event, time, userEvent, config, tr) {
|
|
503
|
-
let done = this.done,
|
|
504
|
-
lastEvent = done[done.length - 1];
|
|
505
|
-
if (lastEvent && lastEvent.changes && !lastEvent.changes.empty && event.changes && (!userEvent || joinableUserEvent.test(userEvent)) && (!lastEvent.selectionsAfter.length && time - this.prevTime < config.newGroupDelay && config.joinToEvent(tr, isAdjacent(lastEvent.changes, event.changes)) ||
|
|
506
|
-
// For compose (but not compose.start) events, always join with previous event
|
|
507
|
-
userEvent == "input.type.compose")) {
|
|
508
|
-
done = updateBranch(done, done.length - 1, config.minDepth, new HistEvent(event.changes.compose(lastEvent.changes), conc(event.effects, lastEvent.effects), lastEvent.mapped, lastEvent.startSelection, none));
|
|
509
|
-
} else {
|
|
510
|
-
done = updateBranch(done, done.length, config.minDepth, event);
|
|
511
|
-
}
|
|
512
|
-
return new HistoryState(done, none, time, userEvent);
|
|
513
|
-
}
|
|
514
|
-
addSelection(selection, time, userEvent, newGroupDelay) {
|
|
515
|
-
let last = this.done.length ? this.done[this.done.length - 1].selectionsAfter : none;
|
|
516
|
-
if (last.length > 0 && time - this.prevTime < newGroupDelay && userEvent == this.prevUserEvent && userEvent && /^select($|\.)/.test(userEvent) && eqSelectionShape(last[last.length - 1], selection)) return this;
|
|
517
|
-
return new HistoryState(addSelection(this.done, selection), this.undone, time, userEvent);
|
|
518
|
-
}
|
|
519
|
-
addMapping(mapping) {
|
|
520
|
-
return new HistoryState(addMappingToBranch(this.done, mapping), addMappingToBranch(this.undone, mapping), this.prevTime, this.prevUserEvent);
|
|
521
|
-
}
|
|
522
|
-
pop(side, state, selection) {
|
|
523
|
-
let branch = side == 0 /* BranchName.Done */ ? this.done : this.undone;
|
|
524
|
-
if (branch.length == 0) return null;
|
|
525
|
-
let event = branch[branch.length - 1];
|
|
526
|
-
if (selection && event.selectionsAfter.length) {
|
|
527
|
-
return state.update({
|
|
528
|
-
selection: event.selectionsAfter[event.selectionsAfter.length - 1],
|
|
529
|
-
annotations: fromHistory.of({
|
|
530
|
-
side,
|
|
531
|
-
rest: popSelection(branch)
|
|
532
|
-
}),
|
|
533
|
-
userEvent: side == 0 /* BranchName.Done */ ? "select.undo" : "select.redo",
|
|
534
|
-
scrollIntoView: true
|
|
535
|
-
});
|
|
536
|
-
} else if (!event.changes) {
|
|
537
|
-
return null;
|
|
538
|
-
} else {
|
|
539
|
-
let rest = branch.length == 1 ? none : branch.slice(0, branch.length - 1);
|
|
540
|
-
if (event.mapped) rest = addMappingToBranch(rest, event.mapped);
|
|
541
|
-
return state.update({
|
|
542
|
-
changes: event.changes,
|
|
543
|
-
selection: event.startSelection,
|
|
544
|
-
effects: event.effects,
|
|
545
|
-
annotations: fromHistory.of({
|
|
546
|
-
side,
|
|
547
|
-
rest
|
|
548
|
-
}),
|
|
549
|
-
filter: false,
|
|
550
|
-
userEvent: side == 0 /* BranchName.Done */ ? "undo" : "redo",
|
|
551
|
-
scrollIntoView: true
|
|
552
|
-
});
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
}
|
|
556
|
-
HistoryState.empty = /*@__PURE__*/new HistoryState(none, none);
|
|
557
|
-
/**
|
|
558
|
-
Default key bindings for the undo history.
|
|
559
|
-
|
|
560
|
-
- Mod-z: [`undo`](https://codemirror.net/6/docs/ref/#commands.undo).
|
|
561
|
-
- Mod-y (Mod-Shift-z on macOS) + Ctrl-Shift-z on Linux: [`redo`](https://codemirror.net/6/docs/ref/#commands.redo).
|
|
562
|
-
- Mod-u: [`undoSelection`](https://codemirror.net/6/docs/ref/#commands.undoSelection).
|
|
563
|
-
- Alt-u (Mod-Shift-u on macOS): [`redoSelection`](https://codemirror.net/6/docs/ref/#commands.redoSelection).
|
|
564
|
-
*/
|
|
565
|
-
const historyKeymap = [{
|
|
566
|
-
key: "Mod-z",
|
|
567
|
-
run: undo,
|
|
568
|
-
preventDefault: true
|
|
569
|
-
}, {
|
|
570
|
-
key: "Mod-y",
|
|
571
|
-
mac: "Mod-Shift-z",
|
|
572
|
-
run: redo,
|
|
573
|
-
preventDefault: true
|
|
574
|
-
}, {
|
|
575
|
-
linux: "Ctrl-Shift-z",
|
|
576
|
-
run: redo,
|
|
577
|
-
preventDefault: true
|
|
578
|
-
}, {
|
|
579
|
-
key: "Mod-u",
|
|
580
|
-
run: undoSelection,
|
|
581
|
-
preventDefault: true
|
|
582
|
-
}, {
|
|
583
|
-
key: "Alt-u",
|
|
584
|
-
mac: "Mod-Shift-u",
|
|
585
|
-
run: redoSelection,
|
|
586
|
-
preventDefault: true
|
|
587
|
-
}];
|
|
588
|
-
function updateSel(sel, by) {
|
|
589
|
-
return EditorSelection.create(sel.ranges.map(by), sel.mainIndex);
|
|
590
|
-
}
|
|
591
|
-
function setSel(state, selection) {
|
|
592
|
-
return state.update({
|
|
593
|
-
selection,
|
|
594
|
-
scrollIntoView: true,
|
|
595
|
-
userEvent: "select"
|
|
596
|
-
});
|
|
597
|
-
}
|
|
598
|
-
function moveSel({
|
|
599
|
-
state,
|
|
600
|
-
dispatch
|
|
601
|
-
}, how) {
|
|
602
|
-
let selection = updateSel(state.selection, how);
|
|
603
|
-
if (selection.eq(state.selection)) return false;
|
|
604
|
-
dispatch(setSel(state, selection));
|
|
605
|
-
return true;
|
|
606
|
-
}
|
|
607
|
-
function rangeEnd(range, forward) {
|
|
608
|
-
return EditorSelection.cursor(forward ? range.to : range.from);
|
|
609
|
-
}
|
|
610
|
-
function cursorByChar(view, forward) {
|
|
611
|
-
return moveSel(view, range => range.empty ? view.moveByChar(range, forward) : rangeEnd(range, forward));
|
|
612
|
-
}
|
|
613
|
-
function ltrAtCursor(view) {
|
|
614
|
-
return view.textDirectionAt(view.state.selection.main.head) == Direction.LTR;
|
|
615
|
-
}
|
|
616
|
-
/**
|
|
617
|
-
Move the selection one character to the left (which is backward in
|
|
618
|
-
left-to-right text, forward in right-to-left text).
|
|
619
|
-
*/
|
|
620
|
-
const cursorCharLeft = view => cursorByChar(view, !ltrAtCursor(view));
|
|
621
|
-
/**
|
|
622
|
-
Move the selection one character to the right.
|
|
623
|
-
*/
|
|
624
|
-
const cursorCharRight = view => cursorByChar(view, ltrAtCursor(view));
|
|
625
|
-
function cursorByGroup(view, forward) {
|
|
626
|
-
return moveSel(view, range => range.empty ? view.moveByGroup(range, forward) : rangeEnd(range, forward));
|
|
627
|
-
}
|
|
628
|
-
/**
|
|
629
|
-
Move the selection to the left across one group of word or
|
|
630
|
-
non-word (but also non-space) characters.
|
|
631
|
-
*/
|
|
632
|
-
const cursorGroupLeft = view => cursorByGroup(view, !ltrAtCursor(view));
|
|
633
|
-
/**
|
|
634
|
-
Move the selection one group to the right.
|
|
635
|
-
*/
|
|
636
|
-
const cursorGroupRight = view => cursorByGroup(view, ltrAtCursor(view));
|
|
637
|
-
function interestingNode(state, node, bracketProp) {
|
|
638
|
-
if (node.type.prop(bracketProp)) return true;
|
|
639
|
-
let len = node.to - node.from;
|
|
640
|
-
return len && (len > 2 || /[^\s,.;:]/.test(state.sliceDoc(node.from, node.to))) || node.firstChild;
|
|
641
|
-
}
|
|
642
|
-
function moveBySyntax(state, start, forward) {
|
|
643
|
-
let pos = syntaxTree(state).resolveInner(start.head);
|
|
644
|
-
let bracketProp = forward ? NodeProp.closedBy : NodeProp.openedBy;
|
|
645
|
-
// Scan forward through child nodes to see if there's an interesting
|
|
646
|
-
// node ahead.
|
|
647
|
-
for (let at = start.head;;) {
|
|
648
|
-
let next = forward ? pos.childAfter(at) : pos.childBefore(at);
|
|
649
|
-
if (!next) break;
|
|
650
|
-
if (interestingNode(state, next, bracketProp)) pos = next;else at = forward ? next.to : next.from;
|
|
651
|
-
}
|
|
652
|
-
let bracket = pos.type.prop(bracketProp),
|
|
653
|
-
match,
|
|
654
|
-
newPos;
|
|
655
|
-
if (bracket && (match = forward ? matchBrackets(state, pos.from, 1) : matchBrackets(state, pos.to, -1)) && match.matched) newPos = forward ? match.end.to : match.end.from;else newPos = forward ? pos.to : pos.from;
|
|
656
|
-
return EditorSelection.cursor(newPos, forward ? -1 : 1);
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
Move the cursor over the next syntactic element to the left.
|
|
660
|
-
*/
|
|
661
|
-
const cursorSyntaxLeft = view => moveSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));
|
|
662
|
-
/**
|
|
663
|
-
Move the cursor over the next syntactic element to the right.
|
|
664
|
-
*/
|
|
665
|
-
const cursorSyntaxRight = view => moveSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));
|
|
666
|
-
function cursorByLine(view, forward) {
|
|
667
|
-
return moveSel(view, range => {
|
|
668
|
-
if (!range.empty) return rangeEnd(range, forward);
|
|
669
|
-
let moved = view.moveVertically(range, forward);
|
|
670
|
-
return moved.head != range.head ? moved : view.moveToLineBoundary(range, forward);
|
|
671
|
-
});
|
|
672
|
-
}
|
|
673
|
-
/**
|
|
674
|
-
Move the selection one line up.
|
|
675
|
-
*/
|
|
676
|
-
const cursorLineUp = view => cursorByLine(view, false);
|
|
677
|
-
/**
|
|
678
|
-
Move the selection one line down.
|
|
679
|
-
*/
|
|
680
|
-
const cursorLineDown = view => cursorByLine(view, true);
|
|
681
|
-
function pageInfo(view) {
|
|
682
|
-
let selfScroll = view.scrollDOM.clientHeight < view.scrollDOM.scrollHeight - 2;
|
|
683
|
-
let marginTop = 0,
|
|
684
|
-
marginBottom = 0,
|
|
685
|
-
height;
|
|
686
|
-
if (selfScroll) {
|
|
687
|
-
for (let source of view.state.facet(EditorView.scrollMargins)) {
|
|
688
|
-
let margins = source(view);
|
|
689
|
-
if (margins === null || margins === void 0 ? void 0 : margins.top) marginTop = Math.max(margins === null || margins === void 0 ? void 0 : margins.top, marginTop);
|
|
690
|
-
if (margins === null || margins === void 0 ? void 0 : margins.bottom) marginBottom = Math.max(margins === null || margins === void 0 ? void 0 : margins.bottom, marginBottom);
|
|
691
|
-
}
|
|
692
|
-
height = view.scrollDOM.clientHeight - marginTop - marginBottom;
|
|
693
|
-
} else {
|
|
694
|
-
height = (view.dom.ownerDocument.defaultView || window).innerHeight;
|
|
695
|
-
}
|
|
696
|
-
return {
|
|
697
|
-
marginTop,
|
|
698
|
-
marginBottom,
|
|
699
|
-
selfScroll,
|
|
700
|
-
height: Math.max(view.defaultLineHeight, height - 5)
|
|
701
|
-
};
|
|
702
|
-
}
|
|
703
|
-
function cursorByPage(view, forward) {
|
|
704
|
-
let page = pageInfo(view);
|
|
705
|
-
let {
|
|
706
|
-
state
|
|
707
|
-
} = view,
|
|
708
|
-
selection = updateSel(state.selection, range => {
|
|
709
|
-
return range.empty ? view.moveVertically(range, forward, page.height) : rangeEnd(range, forward);
|
|
710
|
-
});
|
|
711
|
-
if (selection.eq(state.selection)) return false;
|
|
712
|
-
let effect;
|
|
713
|
-
if (page.selfScroll) {
|
|
714
|
-
let startPos = view.coordsAtPos(state.selection.main.head);
|
|
715
|
-
let scrollRect = view.scrollDOM.getBoundingClientRect();
|
|
716
|
-
let scrollTop = scrollRect.top + page.marginTop,
|
|
717
|
-
scrollBottom = scrollRect.bottom - page.marginBottom;
|
|
718
|
-
if (startPos && startPos.top > scrollTop && startPos.bottom < scrollBottom) effect = EditorView.scrollIntoView(selection.main.head, {
|
|
719
|
-
y: "start",
|
|
720
|
-
yMargin: startPos.top - scrollTop
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
view.dispatch(setSel(state, selection), {
|
|
724
|
-
effects: effect
|
|
725
|
-
});
|
|
726
|
-
return true;
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
Move the selection one page up.
|
|
730
|
-
*/
|
|
731
|
-
const cursorPageUp = view => cursorByPage(view, false);
|
|
732
|
-
/**
|
|
733
|
-
Move the selection one page down.
|
|
734
|
-
*/
|
|
735
|
-
const cursorPageDown = view => cursorByPage(view, true);
|
|
736
|
-
function moveByLineBoundary(view, start, forward) {
|
|
737
|
-
let line = view.lineBlockAt(start.head),
|
|
738
|
-
moved = view.moveToLineBoundary(start, forward);
|
|
739
|
-
if (moved.head == start.head && moved.head != (forward ? line.to : line.from)) moved = view.moveToLineBoundary(start, forward, false);
|
|
740
|
-
if (!forward && moved.head == line.from && line.length) {
|
|
741
|
-
let space = /^\s*/.exec(view.state.sliceDoc(line.from, Math.min(line.from + 100, line.to)))[0].length;
|
|
742
|
-
if (space && start.head != line.from + space) moved = EditorSelection.cursor(line.from + space);
|
|
743
|
-
}
|
|
744
|
-
return moved;
|
|
745
|
-
}
|
|
746
|
-
/**
|
|
747
|
-
Move the selection to the next line wrap point, or to the end of
|
|
748
|
-
the line if there isn't one left on this line.
|
|
749
|
-
*/
|
|
750
|
-
const cursorLineBoundaryForward = view => moveSel(view, range => moveByLineBoundary(view, range, true));
|
|
751
|
-
/**
|
|
752
|
-
Move the selection to previous line wrap point, or failing that to
|
|
753
|
-
the start of the line. If the line is indented, and the cursor
|
|
754
|
-
isn't already at the end of the indentation, this will move to the
|
|
755
|
-
end of the indentation instead of the start of the line.
|
|
756
|
-
*/
|
|
757
|
-
const cursorLineBoundaryBackward = view => moveSel(view, range => moveByLineBoundary(view, range, false));
|
|
758
|
-
/**
|
|
759
|
-
Move the selection one line wrap point to the left.
|
|
760
|
-
*/
|
|
761
|
-
const cursorLineBoundaryLeft = view => moveSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));
|
|
762
|
-
/**
|
|
763
|
-
Move the selection one line wrap point to the right.
|
|
764
|
-
*/
|
|
765
|
-
const cursorLineBoundaryRight = view => moveSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));
|
|
766
|
-
/**
|
|
767
|
-
Move the selection to the start of the line.
|
|
768
|
-
*/
|
|
769
|
-
const cursorLineStart = view => moveSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).from, 1));
|
|
770
|
-
/**
|
|
771
|
-
Move the selection to the end of the line.
|
|
772
|
-
*/
|
|
773
|
-
const cursorLineEnd = view => moveSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).to, -1));
|
|
774
|
-
function toMatchingBracket(state, dispatch, extend) {
|
|
775
|
-
let found = false,
|
|
776
|
-
selection = updateSel(state.selection, range => {
|
|
777
|
-
let matching = matchBrackets(state, range.head, -1) || matchBrackets(state, range.head, 1) || range.head > 0 && matchBrackets(state, range.head - 1, 1) || range.head < state.doc.length && matchBrackets(state, range.head + 1, -1);
|
|
778
|
-
if (!matching || !matching.end) return range;
|
|
779
|
-
found = true;
|
|
780
|
-
let head = matching.start.from == range.head ? matching.end.to : matching.end.from;
|
|
781
|
-
return extend ? EditorSelection.range(range.anchor, head) : EditorSelection.cursor(head);
|
|
782
|
-
});
|
|
783
|
-
if (!found) return false;
|
|
784
|
-
dispatch(setSel(state, selection));
|
|
785
|
-
return true;
|
|
786
|
-
}
|
|
787
|
-
/**
|
|
788
|
-
Move the selection to the bracket matching the one it is currently
|
|
789
|
-
on, if any.
|
|
790
|
-
*/
|
|
791
|
-
const cursorMatchingBracket = ({
|
|
792
|
-
state,
|
|
793
|
-
dispatch
|
|
794
|
-
}) => toMatchingBracket(state, dispatch, false);
|
|
795
|
-
function extendSel(view, how) {
|
|
796
|
-
let selection = updateSel(view.state.selection, range => {
|
|
797
|
-
let head = how(range);
|
|
798
|
-
return EditorSelection.range(range.anchor, head.head, head.goalColumn, head.bidiLevel || undefined);
|
|
799
|
-
});
|
|
800
|
-
if (selection.eq(view.state.selection)) return false;
|
|
801
|
-
view.dispatch(setSel(view.state, selection));
|
|
802
|
-
return true;
|
|
803
|
-
}
|
|
804
|
-
function selectByChar(view, forward) {
|
|
805
|
-
return extendSel(view, range => view.moveByChar(range, forward));
|
|
806
|
-
}
|
|
807
|
-
/**
|
|
808
|
-
Move the selection head one character to the left, while leaving
|
|
809
|
-
the anchor in place.
|
|
810
|
-
*/
|
|
811
|
-
const selectCharLeft = view => selectByChar(view, !ltrAtCursor(view));
|
|
812
|
-
/**
|
|
813
|
-
Move the selection head one character to the right.
|
|
814
|
-
*/
|
|
815
|
-
const selectCharRight = view => selectByChar(view, ltrAtCursor(view));
|
|
816
|
-
function selectByGroup(view, forward) {
|
|
817
|
-
return extendSel(view, range => view.moveByGroup(range, forward));
|
|
818
|
-
}
|
|
819
|
-
/**
|
|
820
|
-
Move the selection head one [group](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) to
|
|
821
|
-
the left.
|
|
822
|
-
*/
|
|
823
|
-
const selectGroupLeft = view => selectByGroup(view, !ltrAtCursor(view));
|
|
824
|
-
/**
|
|
825
|
-
Move the selection head one group to the right.
|
|
826
|
-
*/
|
|
827
|
-
const selectGroupRight = view => selectByGroup(view, ltrAtCursor(view));
|
|
828
|
-
/**
|
|
829
|
-
Move the selection head over the next syntactic element to the left.
|
|
830
|
-
*/
|
|
831
|
-
const selectSyntaxLeft = view => extendSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));
|
|
832
|
-
/**
|
|
833
|
-
Move the selection head over the next syntactic element to the right.
|
|
834
|
-
*/
|
|
835
|
-
const selectSyntaxRight = view => extendSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));
|
|
836
|
-
function selectByLine(view, forward) {
|
|
837
|
-
return extendSel(view, range => view.moveVertically(range, forward));
|
|
838
|
-
}
|
|
839
|
-
/**
|
|
840
|
-
Move the selection head one line up.
|
|
841
|
-
*/
|
|
842
|
-
const selectLineUp = view => selectByLine(view, false);
|
|
843
|
-
/**
|
|
844
|
-
Move the selection head one line down.
|
|
845
|
-
*/
|
|
846
|
-
const selectLineDown = view => selectByLine(view, true);
|
|
847
|
-
function selectByPage(view, forward) {
|
|
848
|
-
return extendSel(view, range => view.moveVertically(range, forward, pageInfo(view).height));
|
|
849
|
-
}
|
|
850
|
-
/**
|
|
851
|
-
Move the selection head one page up.
|
|
852
|
-
*/
|
|
853
|
-
const selectPageUp = view => selectByPage(view, false);
|
|
854
|
-
/**
|
|
855
|
-
Move the selection head one page down.
|
|
856
|
-
*/
|
|
857
|
-
const selectPageDown = view => selectByPage(view, true);
|
|
858
|
-
/**
|
|
859
|
-
Move the selection head to the next line boundary.
|
|
860
|
-
*/
|
|
861
|
-
const selectLineBoundaryForward = view => extendSel(view, range => moveByLineBoundary(view, range, true));
|
|
862
|
-
/**
|
|
863
|
-
Move the selection head to the previous line boundary.
|
|
864
|
-
*/
|
|
865
|
-
const selectLineBoundaryBackward = view => extendSel(view, range => moveByLineBoundary(view, range, false));
|
|
866
|
-
/**
|
|
867
|
-
Move the selection head one line boundary to the left.
|
|
868
|
-
*/
|
|
869
|
-
const selectLineBoundaryLeft = view => extendSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));
|
|
870
|
-
/**
|
|
871
|
-
Move the selection head one line boundary to the right.
|
|
872
|
-
*/
|
|
873
|
-
const selectLineBoundaryRight = view => extendSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));
|
|
874
|
-
/**
|
|
875
|
-
Move the selection head to the start of the line.
|
|
876
|
-
*/
|
|
877
|
-
const selectLineStart = view => extendSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).from));
|
|
878
|
-
/**
|
|
879
|
-
Move the selection head to the end of the line.
|
|
880
|
-
*/
|
|
881
|
-
const selectLineEnd = view => extendSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).to));
|
|
882
|
-
/**
|
|
883
|
-
Move the selection to the start of the document.
|
|
884
|
-
*/
|
|
885
|
-
const cursorDocStart = ({
|
|
886
|
-
state,
|
|
887
|
-
dispatch
|
|
888
|
-
}) => {
|
|
889
|
-
dispatch(setSel(state, {
|
|
890
|
-
anchor: 0
|
|
891
|
-
}));
|
|
892
|
-
return true;
|
|
893
|
-
};
|
|
894
|
-
/**
|
|
895
|
-
Move the selection to the end of the document.
|
|
896
|
-
*/
|
|
897
|
-
const cursorDocEnd = ({
|
|
898
|
-
state,
|
|
899
|
-
dispatch
|
|
900
|
-
}) => {
|
|
901
|
-
dispatch(setSel(state, {
|
|
902
|
-
anchor: state.doc.length
|
|
903
|
-
}));
|
|
904
|
-
return true;
|
|
905
|
-
};
|
|
906
|
-
/**
|
|
907
|
-
Move the selection head to the start of the document.
|
|
908
|
-
*/
|
|
909
|
-
const selectDocStart = ({
|
|
910
|
-
state,
|
|
911
|
-
dispatch
|
|
912
|
-
}) => {
|
|
913
|
-
dispatch(setSel(state, {
|
|
914
|
-
anchor: state.selection.main.anchor,
|
|
915
|
-
head: 0
|
|
916
|
-
}));
|
|
917
|
-
return true;
|
|
918
|
-
};
|
|
919
|
-
/**
|
|
920
|
-
Move the selection head to the end of the document.
|
|
921
|
-
*/
|
|
922
|
-
const selectDocEnd = ({
|
|
923
|
-
state,
|
|
924
|
-
dispatch
|
|
925
|
-
}) => {
|
|
926
|
-
dispatch(setSel(state, {
|
|
927
|
-
anchor: state.selection.main.anchor,
|
|
928
|
-
head: state.doc.length
|
|
929
|
-
}));
|
|
930
|
-
return true;
|
|
931
|
-
};
|
|
932
|
-
/**
|
|
933
|
-
Select the entire document.
|
|
934
|
-
*/
|
|
935
|
-
const selectAll = ({
|
|
936
|
-
state,
|
|
937
|
-
dispatch
|
|
938
|
-
}) => {
|
|
939
|
-
dispatch(state.update({
|
|
940
|
-
selection: {
|
|
941
|
-
anchor: 0,
|
|
942
|
-
head: state.doc.length
|
|
943
|
-
},
|
|
944
|
-
userEvent: "select"
|
|
945
|
-
}));
|
|
946
|
-
return true;
|
|
947
|
-
};
|
|
948
|
-
/**
|
|
949
|
-
Expand the selection to cover entire lines.
|
|
950
|
-
*/
|
|
951
|
-
const selectLine = ({
|
|
952
|
-
state,
|
|
953
|
-
dispatch
|
|
954
|
-
}) => {
|
|
955
|
-
let ranges = selectedLineBlocks(state).map(({
|
|
956
|
-
from,
|
|
957
|
-
to
|
|
958
|
-
}) => EditorSelection.range(from, Math.min(to + 1, state.doc.length)));
|
|
959
|
-
dispatch(state.update({
|
|
960
|
-
selection: EditorSelection.create(ranges),
|
|
961
|
-
userEvent: "select"
|
|
962
|
-
}));
|
|
963
|
-
return true;
|
|
964
|
-
};
|
|
965
|
-
/**
|
|
966
|
-
Select the next syntactic construct that is larger than the
|
|
967
|
-
selection. Note that this will only work insofar as the language
|
|
968
|
-
[provider](https://codemirror.net/6/docs/ref/#language.language) you use builds up a full
|
|
969
|
-
syntax tree.
|
|
970
|
-
*/
|
|
971
|
-
const selectParentSyntax = ({
|
|
972
|
-
state,
|
|
973
|
-
dispatch
|
|
974
|
-
}) => {
|
|
975
|
-
let selection = updateSel(state.selection, range => {
|
|
976
|
-
var _a;
|
|
977
|
-
let context = syntaxTree(state).resolveInner(range.head, 1);
|
|
978
|
-
while (!(context.from < range.from && context.to >= range.to || context.to > range.to && context.from <= range.from || !((_a = context.parent) === null || _a === void 0 ? void 0 : _a.parent))) context = context.parent;
|
|
979
|
-
return EditorSelection.range(context.to, context.from);
|
|
980
|
-
});
|
|
981
|
-
dispatch(setSel(state, selection));
|
|
982
|
-
return true;
|
|
983
|
-
};
|
|
984
|
-
/**
|
|
985
|
-
Simplify the current selection. When multiple ranges are selected,
|
|
986
|
-
reduce it to its main range. Otherwise, if the selection is
|
|
987
|
-
non-empty, convert it to a cursor selection.
|
|
988
|
-
*/
|
|
989
|
-
const simplifySelection = ({
|
|
990
|
-
state,
|
|
991
|
-
dispatch
|
|
992
|
-
}) => {
|
|
993
|
-
let cur = state.selection,
|
|
994
|
-
selection = null;
|
|
995
|
-
if (cur.ranges.length > 1) selection = EditorSelection.create([cur.main]);else if (!cur.main.empty) selection = EditorSelection.create([EditorSelection.cursor(cur.main.head)]);
|
|
996
|
-
if (!selection) return false;
|
|
997
|
-
dispatch(setSel(state, selection));
|
|
998
|
-
return true;
|
|
999
|
-
};
|
|
1000
|
-
function deleteBy(target, by) {
|
|
1001
|
-
if (target.state.readOnly) return false;
|
|
1002
|
-
let event = "delete.selection",
|
|
1003
|
-
{
|
|
1004
|
-
state
|
|
1005
|
-
} = target;
|
|
1006
|
-
let changes = state.changeByRange(range => {
|
|
1007
|
-
let {
|
|
1008
|
-
from,
|
|
1009
|
-
to
|
|
1010
|
-
} = range;
|
|
1011
|
-
if (from == to) {
|
|
1012
|
-
let towards = by(from);
|
|
1013
|
-
if (towards < from) {
|
|
1014
|
-
event = "delete.backward";
|
|
1015
|
-
towards = skipAtomic(target, towards, false);
|
|
1016
|
-
} else if (towards > from) {
|
|
1017
|
-
event = "delete.forward";
|
|
1018
|
-
towards = skipAtomic(target, towards, true);
|
|
1019
|
-
}
|
|
1020
|
-
from = Math.min(from, towards);
|
|
1021
|
-
to = Math.max(to, towards);
|
|
1022
|
-
} else {
|
|
1023
|
-
from = skipAtomic(target, from, false);
|
|
1024
|
-
to = skipAtomic(target, to, true);
|
|
1025
|
-
}
|
|
1026
|
-
return from == to ? {
|
|
1027
|
-
range
|
|
1028
|
-
} : {
|
|
1029
|
-
changes: {
|
|
1030
|
-
from,
|
|
1031
|
-
to
|
|
1032
|
-
},
|
|
1033
|
-
range: EditorSelection.cursor(from)
|
|
1034
|
-
};
|
|
1035
|
-
});
|
|
1036
|
-
if (changes.changes.empty) return false;
|
|
1037
|
-
target.dispatch(state.update(changes, {
|
|
1038
|
-
scrollIntoView: true,
|
|
1039
|
-
userEvent: event,
|
|
1040
|
-
effects: event == "delete.selection" ? EditorView.announce.of(state.phrase("Selection deleted")) : undefined
|
|
1041
|
-
}));
|
|
1042
|
-
return true;
|
|
1043
|
-
}
|
|
1044
|
-
function skipAtomic(target, pos, forward) {
|
|
1045
|
-
if (target instanceof EditorView) for (let ranges of target.state.facet(EditorView.atomicRanges).map(f => f(target))) ranges.between(pos, pos, (from, to) => {
|
|
1046
|
-
if (from < pos && to > pos) pos = forward ? to : from;
|
|
1047
|
-
});
|
|
1048
|
-
return pos;
|
|
1049
|
-
}
|
|
1050
|
-
const deleteByChar = (target, forward) => deleteBy(target, pos => {
|
|
1051
|
-
let {
|
|
1052
|
-
state
|
|
1053
|
-
} = target,
|
|
1054
|
-
line = state.doc.lineAt(pos),
|
|
1055
|
-
before,
|
|
1056
|
-
targetPos;
|
|
1057
|
-
if (!forward && pos > line.from && pos < line.from + 200 && !/[^ \t]/.test(before = line.text.slice(0, pos - line.from))) {
|
|
1058
|
-
if (before[before.length - 1] == "\t") return pos - 1;
|
|
1059
|
-
let col = countColumn(before, state.tabSize),
|
|
1060
|
-
drop = col % getIndentUnit(state) || getIndentUnit(state);
|
|
1061
|
-
for (let i = 0; i < drop && before[before.length - 1 - i] == " "; i++) pos--;
|
|
1062
|
-
targetPos = pos;
|
|
1063
|
-
} else {
|
|
1064
|
-
targetPos = findClusterBreak(line.text, pos - line.from, forward, forward) + line.from;
|
|
1065
|
-
if (targetPos == pos && line.number != (forward ? state.doc.lines : 1)) targetPos += forward ? 1 : -1;
|
|
1066
|
-
}
|
|
1067
|
-
return targetPos;
|
|
1068
|
-
});
|
|
1069
|
-
/**
|
|
1070
|
-
Delete the selection, or, for cursor selections, the character
|
|
1071
|
-
before the cursor.
|
|
1072
|
-
*/
|
|
1073
|
-
const deleteCharBackward = view => deleteByChar(view, false);
|
|
1074
|
-
/**
|
|
1075
|
-
Delete the selection or the character after the cursor.
|
|
1076
|
-
*/
|
|
1077
|
-
const deleteCharForward = view => deleteByChar(view, true);
|
|
1078
|
-
const deleteByGroup = (target, forward) => deleteBy(target, start => {
|
|
1079
|
-
let pos = start,
|
|
1080
|
-
{
|
|
1081
|
-
state
|
|
1082
|
-
} = target,
|
|
1083
|
-
line = state.doc.lineAt(pos);
|
|
1084
|
-
let categorize = state.charCategorizer(pos);
|
|
1085
|
-
for (let cat = null;;) {
|
|
1086
|
-
if (pos == (forward ? line.to : line.from)) {
|
|
1087
|
-
if (pos == start && line.number != (forward ? state.doc.lines : 1)) pos += forward ? 1 : -1;
|
|
1088
|
-
break;
|
|
1089
|
-
}
|
|
1090
|
-
let next = findClusterBreak(line.text, pos - line.from, forward) + line.from;
|
|
1091
|
-
let nextChar = line.text.slice(Math.min(pos, next) - line.from, Math.max(pos, next) - line.from);
|
|
1092
|
-
let nextCat = categorize(nextChar);
|
|
1093
|
-
if (cat != null && nextCat != cat) break;
|
|
1094
|
-
if (nextChar != " " || pos != start) cat = nextCat;
|
|
1095
|
-
pos = next;
|
|
1096
|
-
}
|
|
1097
|
-
return pos;
|
|
1098
|
-
});
|
|
1099
|
-
/**
|
|
1100
|
-
Delete the selection or backward until the end of the next
|
|
1101
|
-
[group](https://codemirror.net/6/docs/ref/#view.EditorView.moveByGroup), only skipping groups of
|
|
1102
|
-
whitespace when they consist of a single space.
|
|
1103
|
-
*/
|
|
1104
|
-
const deleteGroupBackward = target => deleteByGroup(target, false);
|
|
1105
|
-
/**
|
|
1106
|
-
Delete the selection or forward until the end of the next group.
|
|
1107
|
-
*/
|
|
1108
|
-
const deleteGroupForward = target => deleteByGroup(target, true);
|
|
1109
|
-
/**
|
|
1110
|
-
Delete the selection, or, if it is a cursor selection, delete to
|
|
1111
|
-
the end of the line. If the cursor is directly at the end of the
|
|
1112
|
-
line, delete the line break after it.
|
|
1113
|
-
*/
|
|
1114
|
-
const deleteToLineEnd = view => deleteBy(view, pos => {
|
|
1115
|
-
let lineEnd = view.lineBlockAt(pos).to;
|
|
1116
|
-
return pos < lineEnd ? lineEnd : Math.min(view.state.doc.length, pos + 1);
|
|
1117
|
-
});
|
|
1118
|
-
/**
|
|
1119
|
-
Delete the selection, or, if it is a cursor selection, delete to
|
|
1120
|
-
the start of the line. If the cursor is directly at the start of the
|
|
1121
|
-
line, delete the line break before it.
|
|
1122
|
-
*/
|
|
1123
|
-
const deleteToLineStart = view => deleteBy(view, pos => {
|
|
1124
|
-
let lineStart = view.lineBlockAt(pos).from;
|
|
1125
|
-
return pos > lineStart ? lineStart : Math.max(0, pos - 1);
|
|
1126
|
-
});
|
|
1127
|
-
/**
|
|
1128
|
-
Replace each selection range with a line break, leaving the cursor
|
|
1129
|
-
on the line before the break.
|
|
1130
|
-
*/
|
|
1131
|
-
const splitLine = ({
|
|
1132
|
-
state,
|
|
1133
|
-
dispatch
|
|
1134
|
-
}) => {
|
|
1135
|
-
if (state.readOnly) return false;
|
|
1136
|
-
let changes = state.changeByRange(range => {
|
|
1137
|
-
return {
|
|
1138
|
-
changes: {
|
|
1139
|
-
from: range.from,
|
|
1140
|
-
to: range.to,
|
|
1141
|
-
insert: Text.of(["", ""])
|
|
1142
|
-
},
|
|
1143
|
-
range: EditorSelection.cursor(range.from)
|
|
1144
|
-
};
|
|
1145
|
-
});
|
|
1146
|
-
dispatch(state.update(changes, {
|
|
1147
|
-
scrollIntoView: true,
|
|
1148
|
-
userEvent: "input"
|
|
1149
|
-
}));
|
|
1150
|
-
return true;
|
|
1151
|
-
};
|
|
1152
|
-
/**
|
|
1153
|
-
Flip the characters before and after the cursor(s).
|
|
1154
|
-
*/
|
|
1155
|
-
const transposeChars = ({
|
|
1156
|
-
state,
|
|
1157
|
-
dispatch
|
|
1158
|
-
}) => {
|
|
1159
|
-
if (state.readOnly) return false;
|
|
1160
|
-
let changes = state.changeByRange(range => {
|
|
1161
|
-
if (!range.empty || range.from == 0 || range.from == state.doc.length) return {
|
|
1162
|
-
range
|
|
1163
|
-
};
|
|
1164
|
-
let pos = range.from,
|
|
1165
|
-
line = state.doc.lineAt(pos);
|
|
1166
|
-
let from = pos == line.from ? pos - 1 : findClusterBreak(line.text, pos - line.from, false) + line.from;
|
|
1167
|
-
let to = pos == line.to ? pos + 1 : findClusterBreak(line.text, pos - line.from, true) + line.from;
|
|
1168
|
-
return {
|
|
1169
|
-
changes: {
|
|
1170
|
-
from,
|
|
1171
|
-
to,
|
|
1172
|
-
insert: state.doc.slice(pos, to).append(state.doc.slice(from, pos))
|
|
1173
|
-
},
|
|
1174
|
-
range: EditorSelection.cursor(to)
|
|
1175
|
-
};
|
|
1176
|
-
});
|
|
1177
|
-
if (changes.changes.empty) return false;
|
|
1178
|
-
dispatch(state.update(changes, {
|
|
1179
|
-
scrollIntoView: true,
|
|
1180
|
-
userEvent: "move.character"
|
|
1181
|
-
}));
|
|
1182
|
-
return true;
|
|
1183
|
-
};
|
|
1184
|
-
function selectedLineBlocks(state) {
|
|
1185
|
-
let blocks = [],
|
|
1186
|
-
upto = -1;
|
|
1187
|
-
for (let range of state.selection.ranges) {
|
|
1188
|
-
let startLine = state.doc.lineAt(range.from),
|
|
1189
|
-
endLine = state.doc.lineAt(range.to);
|
|
1190
|
-
if (!range.empty && range.to == endLine.from) endLine = state.doc.lineAt(range.to - 1);
|
|
1191
|
-
if (upto >= startLine.number) {
|
|
1192
|
-
let prev = blocks[blocks.length - 1];
|
|
1193
|
-
prev.to = endLine.to;
|
|
1194
|
-
prev.ranges.push(range);
|
|
1195
|
-
} else {
|
|
1196
|
-
blocks.push({
|
|
1197
|
-
from: startLine.from,
|
|
1198
|
-
to: endLine.to,
|
|
1199
|
-
ranges: [range]
|
|
1200
|
-
});
|
|
1201
|
-
}
|
|
1202
|
-
upto = endLine.number + 1;
|
|
1203
|
-
}
|
|
1204
|
-
return blocks;
|
|
1205
|
-
}
|
|
1206
|
-
function moveLine(state, dispatch, forward) {
|
|
1207
|
-
if (state.readOnly) return false;
|
|
1208
|
-
let changes = [],
|
|
1209
|
-
ranges = [];
|
|
1210
|
-
for (let block of selectedLineBlocks(state)) {
|
|
1211
|
-
if (forward ? block.to == state.doc.length : block.from == 0) continue;
|
|
1212
|
-
let nextLine = state.doc.lineAt(forward ? block.to + 1 : block.from - 1);
|
|
1213
|
-
let size = nextLine.length + 1;
|
|
1214
|
-
if (forward) {
|
|
1215
|
-
changes.push({
|
|
1216
|
-
from: block.to,
|
|
1217
|
-
to: nextLine.to
|
|
1218
|
-
}, {
|
|
1219
|
-
from: block.from,
|
|
1220
|
-
insert: nextLine.text + state.lineBreak
|
|
1221
|
-
});
|
|
1222
|
-
for (let r of block.ranges) ranges.push(EditorSelection.range(Math.min(state.doc.length, r.anchor + size), Math.min(state.doc.length, r.head + size)));
|
|
1223
|
-
} else {
|
|
1224
|
-
changes.push({
|
|
1225
|
-
from: nextLine.from,
|
|
1226
|
-
to: block.from
|
|
1227
|
-
}, {
|
|
1228
|
-
from: block.to,
|
|
1229
|
-
insert: state.lineBreak + nextLine.text
|
|
1230
|
-
});
|
|
1231
|
-
for (let r of block.ranges) ranges.push(EditorSelection.range(r.anchor - size, r.head - size));
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
if (!changes.length) return false;
|
|
1235
|
-
dispatch(state.update({
|
|
1236
|
-
changes,
|
|
1237
|
-
scrollIntoView: true,
|
|
1238
|
-
selection: EditorSelection.create(ranges, state.selection.mainIndex),
|
|
1239
|
-
userEvent: "move.line"
|
|
1240
|
-
}));
|
|
1241
|
-
return true;
|
|
1242
|
-
}
|
|
1243
|
-
/**
|
|
1244
|
-
Move the selected lines up one line.
|
|
1245
|
-
*/
|
|
1246
|
-
const moveLineUp = ({
|
|
1247
|
-
state,
|
|
1248
|
-
dispatch
|
|
1249
|
-
}) => moveLine(state, dispatch, false);
|
|
1250
|
-
/**
|
|
1251
|
-
Move the selected lines down one line.
|
|
1252
|
-
*/
|
|
1253
|
-
const moveLineDown = ({
|
|
1254
|
-
state,
|
|
1255
|
-
dispatch
|
|
1256
|
-
}) => moveLine(state, dispatch, true);
|
|
1257
|
-
function copyLine(state, dispatch, forward) {
|
|
1258
|
-
if (state.readOnly) return false;
|
|
1259
|
-
let changes = [];
|
|
1260
|
-
for (let block of selectedLineBlocks(state)) {
|
|
1261
|
-
if (forward) changes.push({
|
|
1262
|
-
from: block.from,
|
|
1263
|
-
insert: state.doc.slice(block.from, block.to) + state.lineBreak
|
|
1264
|
-
});else changes.push({
|
|
1265
|
-
from: block.to,
|
|
1266
|
-
insert: state.lineBreak + state.doc.slice(block.from, block.to)
|
|
1267
|
-
});
|
|
1268
|
-
}
|
|
1269
|
-
dispatch(state.update({
|
|
1270
|
-
changes,
|
|
1271
|
-
scrollIntoView: true,
|
|
1272
|
-
userEvent: "input.copyline"
|
|
1273
|
-
}));
|
|
1274
|
-
return true;
|
|
1275
|
-
}
|
|
1276
|
-
/**
|
|
1277
|
-
Create a copy of the selected lines. Keep the selection in the top copy.
|
|
1278
|
-
*/
|
|
1279
|
-
const copyLineUp = ({
|
|
1280
|
-
state,
|
|
1281
|
-
dispatch
|
|
1282
|
-
}) => copyLine(state, dispatch, false);
|
|
1283
|
-
/**
|
|
1284
|
-
Create a copy of the selected lines. Keep the selection in the bottom copy.
|
|
1285
|
-
*/
|
|
1286
|
-
const copyLineDown = ({
|
|
1287
|
-
state,
|
|
1288
|
-
dispatch
|
|
1289
|
-
}) => copyLine(state, dispatch, true);
|
|
1290
|
-
/**
|
|
1291
|
-
Delete selected lines.
|
|
1292
|
-
*/
|
|
1293
|
-
const deleteLine = view => {
|
|
1294
|
-
if (view.state.readOnly) return false;
|
|
1295
|
-
let {
|
|
1296
|
-
state
|
|
1297
|
-
} = view,
|
|
1298
|
-
changes = state.changes(selectedLineBlocks(state).map(({
|
|
1299
|
-
from,
|
|
1300
|
-
to
|
|
1301
|
-
}) => {
|
|
1302
|
-
if (from > 0) from--;else if (to < state.doc.length) to++;
|
|
1303
|
-
return {
|
|
1304
|
-
from,
|
|
1305
|
-
to
|
|
1306
|
-
};
|
|
1307
|
-
}));
|
|
1308
|
-
let selection = updateSel(state.selection, range => view.moveVertically(range, true)).map(changes);
|
|
1309
|
-
view.dispatch({
|
|
1310
|
-
changes,
|
|
1311
|
-
selection,
|
|
1312
|
-
scrollIntoView: true,
|
|
1313
|
-
userEvent: "delete.line"
|
|
1314
|
-
});
|
|
1315
|
-
return true;
|
|
1316
|
-
};
|
|
1317
|
-
function isBetweenBrackets(state, pos) {
|
|
1318
|
-
if (/\(\)|\[\]|\{\}/.test(state.sliceDoc(pos - 1, pos + 1))) return {
|
|
1319
|
-
from: pos,
|
|
1320
|
-
to: pos
|
|
1321
|
-
};
|
|
1322
|
-
let context = syntaxTree(state).resolveInner(pos);
|
|
1323
|
-
let before = context.childBefore(pos),
|
|
1324
|
-
after = context.childAfter(pos),
|
|
1325
|
-
closedBy;
|
|
1326
|
-
if (before && after && before.to <= pos && after.from >= pos && (closedBy = before.type.prop(NodeProp.closedBy)) && closedBy.indexOf(after.name) > -1 && state.doc.lineAt(before.to).from == state.doc.lineAt(after.from).from) return {
|
|
1327
|
-
from: before.to,
|
|
1328
|
-
to: after.from
|
|
1329
|
-
};
|
|
1330
|
-
return null;
|
|
1331
|
-
}
|
|
1332
|
-
/**
|
|
1333
|
-
Replace the selection with a newline and indent the newly created
|
|
1334
|
-
line(s). If the current line consists only of whitespace, this
|
|
1335
|
-
will also delete that whitespace. When the cursor is between
|
|
1336
|
-
matching brackets, an additional newline will be inserted after
|
|
1337
|
-
the cursor.
|
|
1338
|
-
*/
|
|
1339
|
-
const insertNewlineAndIndent = /*@__PURE__*/newlineAndIndent(false);
|
|
1340
|
-
/**
|
|
1341
|
-
Create a blank, indented line below the current line.
|
|
1342
|
-
*/
|
|
1343
|
-
const insertBlankLine = /*@__PURE__*/newlineAndIndent(true);
|
|
1344
|
-
function newlineAndIndent(atEof) {
|
|
1345
|
-
return ({
|
|
1346
|
-
state,
|
|
1347
|
-
dispatch
|
|
1348
|
-
}) => {
|
|
1349
|
-
if (state.readOnly) return false;
|
|
1350
|
-
let changes = state.changeByRange(range => {
|
|
1351
|
-
let {
|
|
1352
|
-
from,
|
|
1353
|
-
to
|
|
1354
|
-
} = range,
|
|
1355
|
-
line = state.doc.lineAt(from);
|
|
1356
|
-
let explode = !atEof && from == to && isBetweenBrackets(state, from);
|
|
1357
|
-
if (atEof) from = to = (to <= line.to ? line : state.doc.lineAt(to)).to;
|
|
1358
|
-
let cx = new IndentContext(state, {
|
|
1359
|
-
simulateBreak: from,
|
|
1360
|
-
simulateDoubleBreak: !!explode
|
|
1361
|
-
});
|
|
1362
|
-
let indent = getIndentation(cx, from);
|
|
1363
|
-
if (indent == null) indent = /^\s*/.exec(state.doc.lineAt(from).text)[0].length;
|
|
1364
|
-
while (to < line.to && /\s/.test(line.text[to - line.from])) to++;
|
|
1365
|
-
if (explode) ({
|
|
1366
|
-
from,
|
|
1367
|
-
to
|
|
1368
|
-
} = explode);else if (from > line.from && from < line.from + 100 && !/\S/.test(line.text.slice(0, from))) from = line.from;
|
|
1369
|
-
let insert = ["", indentString(state, indent)];
|
|
1370
|
-
if (explode) insert.push(indentString(state, cx.lineIndent(line.from, -1)));
|
|
1371
|
-
return {
|
|
1372
|
-
changes: {
|
|
1373
|
-
from,
|
|
1374
|
-
to,
|
|
1375
|
-
insert: Text.of(insert)
|
|
1376
|
-
},
|
|
1377
|
-
range: EditorSelection.cursor(from + 1 + insert[1].length)
|
|
1378
|
-
};
|
|
1379
|
-
});
|
|
1380
|
-
dispatch(state.update(changes, {
|
|
1381
|
-
scrollIntoView: true,
|
|
1382
|
-
userEvent: "input"
|
|
1383
|
-
}));
|
|
1384
|
-
return true;
|
|
1385
|
-
};
|
|
1386
|
-
}
|
|
1387
|
-
function changeBySelectedLine(state, f) {
|
|
1388
|
-
let atLine = -1;
|
|
1389
|
-
return state.changeByRange(range => {
|
|
1390
|
-
let changes = [];
|
|
1391
|
-
for (let pos = range.from; pos <= range.to;) {
|
|
1392
|
-
let line = state.doc.lineAt(pos);
|
|
1393
|
-
if (line.number > atLine && (range.empty || range.to > line.from)) {
|
|
1394
|
-
f(line, changes, range);
|
|
1395
|
-
atLine = line.number;
|
|
1396
|
-
}
|
|
1397
|
-
pos = line.to + 1;
|
|
1398
|
-
}
|
|
1399
|
-
let changeSet = state.changes(changes);
|
|
1400
|
-
return {
|
|
1401
|
-
changes,
|
|
1402
|
-
range: EditorSelection.range(changeSet.mapPos(range.anchor, 1), changeSet.mapPos(range.head, 1))
|
|
1403
|
-
};
|
|
1404
|
-
});
|
|
1405
|
-
}
|
|
1406
|
-
/**
|
|
1407
|
-
Auto-indent the selected lines. This uses the [indentation service
|
|
1408
|
-
facet](https://codemirror.net/6/docs/ref/#language.indentService) as source for auto-indent
|
|
1409
|
-
information.
|
|
1410
|
-
*/
|
|
1411
|
-
const indentSelection = ({
|
|
1412
|
-
state,
|
|
1413
|
-
dispatch
|
|
1414
|
-
}) => {
|
|
1415
|
-
if (state.readOnly) return false;
|
|
1416
|
-
let updated = Object.create(null);
|
|
1417
|
-
let context = new IndentContext(state, {
|
|
1418
|
-
overrideIndentation: start => {
|
|
1419
|
-
let found = updated[start];
|
|
1420
|
-
return found == null ? -1 : found;
|
|
1421
|
-
}
|
|
1422
|
-
});
|
|
1423
|
-
let changes = changeBySelectedLine(state, (line, changes, range) => {
|
|
1424
|
-
let indent = getIndentation(context, line.from);
|
|
1425
|
-
if (indent == null) return;
|
|
1426
|
-
if (!/\S/.test(line.text)) indent = 0;
|
|
1427
|
-
let cur = /^\s*/.exec(line.text)[0];
|
|
1428
|
-
let norm = indentString(state, indent);
|
|
1429
|
-
if (cur != norm || range.from < line.from + cur.length) {
|
|
1430
|
-
updated[line.from] = indent;
|
|
1431
|
-
changes.push({
|
|
1432
|
-
from: line.from,
|
|
1433
|
-
to: line.from + cur.length,
|
|
1434
|
-
insert: norm
|
|
1435
|
-
});
|
|
1436
|
-
}
|
|
1437
|
-
});
|
|
1438
|
-
if (!changes.changes.empty) dispatch(state.update(changes, {
|
|
1439
|
-
userEvent: "indent"
|
|
1440
|
-
}));
|
|
1441
|
-
return true;
|
|
1442
|
-
};
|
|
1443
|
-
/**
|
|
1444
|
-
Add a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation to all selected
|
|
1445
|
-
lines.
|
|
1446
|
-
*/
|
|
1447
|
-
const indentMore = ({
|
|
1448
|
-
state,
|
|
1449
|
-
dispatch
|
|
1450
|
-
}) => {
|
|
1451
|
-
if (state.readOnly) return false;
|
|
1452
|
-
dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
|
|
1453
|
-
changes.push({
|
|
1454
|
-
from: line.from,
|
|
1455
|
-
insert: state.facet(indentUnit)
|
|
1456
|
-
});
|
|
1457
|
-
}), {
|
|
1458
|
-
userEvent: "input.indent"
|
|
1459
|
-
}));
|
|
1460
|
-
return true;
|
|
1461
|
-
};
|
|
1462
|
-
/**
|
|
1463
|
-
Remove a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation from all
|
|
1464
|
-
selected lines.
|
|
1465
|
-
*/
|
|
1466
|
-
const indentLess = ({
|
|
1467
|
-
state,
|
|
1468
|
-
dispatch
|
|
1469
|
-
}) => {
|
|
1470
|
-
if (state.readOnly) return false;
|
|
1471
|
-
dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
|
|
1472
|
-
let space = /^\s*/.exec(line.text)[0];
|
|
1473
|
-
if (!space) return;
|
|
1474
|
-
let col = countColumn(space, state.tabSize),
|
|
1475
|
-
keep = 0;
|
|
1476
|
-
let insert = indentString(state, Math.max(0, col - getIndentUnit(state)));
|
|
1477
|
-
while (keep < space.length && keep < insert.length && space.charCodeAt(keep) == insert.charCodeAt(keep)) keep++;
|
|
1478
|
-
changes.push({
|
|
1479
|
-
from: line.from + keep,
|
|
1480
|
-
to: line.from + space.length,
|
|
1481
|
-
insert: insert.slice(keep)
|
|
1482
|
-
});
|
|
1483
|
-
}), {
|
|
1484
|
-
userEvent: "delete.dedent"
|
|
1485
|
-
}));
|
|
1486
|
-
return true;
|
|
1487
|
-
};
|
|
1488
|
-
/**
|
|
1489
|
-
Array of key bindings containing the Emacs-style bindings that are
|
|
1490
|
-
available on macOS by default.
|
|
1491
|
-
|
|
1492
|
-
- Ctrl-b: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)
|
|
1493
|
-
- Ctrl-f: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)
|
|
1494
|
-
- Ctrl-p: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)
|
|
1495
|
-
- Ctrl-n: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)
|
|
1496
|
-
- Ctrl-a: [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)
|
|
1497
|
-
- Ctrl-e: [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)
|
|
1498
|
-
- Ctrl-d: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)
|
|
1499
|
-
- Ctrl-h: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)
|
|
1500
|
-
- Ctrl-k: [`deleteToLineEnd`](https://codemirror.net/6/docs/ref/#commands.deleteToLineEnd)
|
|
1501
|
-
- Ctrl-Alt-h: [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)
|
|
1502
|
-
- Ctrl-o: [`splitLine`](https://codemirror.net/6/docs/ref/#commands.splitLine)
|
|
1503
|
-
- Ctrl-t: [`transposeChars`](https://codemirror.net/6/docs/ref/#commands.transposeChars)
|
|
1504
|
-
- Ctrl-v: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown)
|
|
1505
|
-
- Alt-v: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp)
|
|
1506
|
-
*/
|
|
1507
|
-
const emacsStyleKeymap = [{
|
|
1508
|
-
key: "Ctrl-b",
|
|
1509
|
-
run: cursorCharLeft,
|
|
1510
|
-
shift: selectCharLeft,
|
|
1511
|
-
preventDefault: true
|
|
1512
|
-
}, {
|
|
1513
|
-
key: "Ctrl-f",
|
|
1514
|
-
run: cursorCharRight,
|
|
1515
|
-
shift: selectCharRight
|
|
1516
|
-
}, {
|
|
1517
|
-
key: "Ctrl-p",
|
|
1518
|
-
run: cursorLineUp,
|
|
1519
|
-
shift: selectLineUp
|
|
1520
|
-
}, {
|
|
1521
|
-
key: "Ctrl-n",
|
|
1522
|
-
run: cursorLineDown,
|
|
1523
|
-
shift: selectLineDown
|
|
1524
|
-
}, {
|
|
1525
|
-
key: "Ctrl-a",
|
|
1526
|
-
run: cursorLineStart,
|
|
1527
|
-
shift: selectLineStart
|
|
1528
|
-
}, {
|
|
1529
|
-
key: "Ctrl-e",
|
|
1530
|
-
run: cursorLineEnd,
|
|
1531
|
-
shift: selectLineEnd
|
|
1532
|
-
}, {
|
|
1533
|
-
key: "Ctrl-d",
|
|
1534
|
-
run: deleteCharForward
|
|
1535
|
-
}, {
|
|
1536
|
-
key: "Ctrl-h",
|
|
1537
|
-
run: deleteCharBackward
|
|
1538
|
-
}, {
|
|
1539
|
-
key: "Ctrl-k",
|
|
1540
|
-
run: deleteToLineEnd
|
|
1541
|
-
}, {
|
|
1542
|
-
key: "Ctrl-Alt-h",
|
|
1543
|
-
run: deleteGroupBackward
|
|
1544
|
-
}, {
|
|
1545
|
-
key: "Ctrl-o",
|
|
1546
|
-
run: splitLine
|
|
1547
|
-
}, {
|
|
1548
|
-
key: "Ctrl-t",
|
|
1549
|
-
run: transposeChars
|
|
1550
|
-
}, {
|
|
1551
|
-
key: "Ctrl-v",
|
|
1552
|
-
run: cursorPageDown
|
|
1553
|
-
}];
|
|
1554
|
-
/**
|
|
1555
|
-
An array of key bindings closely sticking to platform-standard or
|
|
1556
|
-
widely used bindings. (This includes the bindings from
|
|
1557
|
-
[`emacsStyleKeymap`](https://codemirror.net/6/docs/ref/#commands.emacsStyleKeymap), with their `key`
|
|
1558
|
-
property changed to `mac`.)
|
|
1559
|
-
|
|
1560
|
-
- ArrowLeft: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)
|
|
1561
|
-
- ArrowRight: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)
|
|
1562
|
-
- Ctrl-ArrowLeft (Alt-ArrowLeft on macOS): [`cursorGroupLeft`](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) ([`selectGroupLeft`](https://codemirror.net/6/docs/ref/#commands.selectGroupLeft) with Shift)
|
|
1563
|
-
- Ctrl-ArrowRight (Alt-ArrowRight on macOS): [`cursorGroupRight`](https://codemirror.net/6/docs/ref/#commands.cursorGroupRight) ([`selectGroupRight`](https://codemirror.net/6/docs/ref/#commands.selectGroupRight) with Shift)
|
|
1564
|
-
- Cmd-ArrowLeft (on macOS): [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)
|
|
1565
|
-
- Cmd-ArrowRight (on macOS): [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)
|
|
1566
|
-
- ArrowUp: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)
|
|
1567
|
-
- ArrowDown: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)
|
|
1568
|
-
- Cmd-ArrowUp (on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)
|
|
1569
|
-
- Cmd-ArrowDown (on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)
|
|
1570
|
-
- Ctrl-ArrowUp (on macOS): [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)
|
|
1571
|
-
- Ctrl-ArrowDown (on macOS): [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)
|
|
1572
|
-
- PageUp: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)
|
|
1573
|
-
- PageDown: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)
|
|
1574
|
-
- Home: [`cursorLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryBackward) ([`selectLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryBackward) with Shift)
|
|
1575
|
-
- End: [`cursorLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryForward) ([`selectLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryForward) with Shift)
|
|
1576
|
-
- Ctrl-Home (Cmd-Home on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)
|
|
1577
|
-
- Ctrl-End (Cmd-Home on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)
|
|
1578
|
-
- Enter: [`insertNewlineAndIndent`](https://codemirror.net/6/docs/ref/#commands.insertNewlineAndIndent)
|
|
1579
|
-
- Ctrl-a (Cmd-a on macOS): [`selectAll`](https://codemirror.net/6/docs/ref/#commands.selectAll)
|
|
1580
|
-
- Backspace: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)
|
|
1581
|
-
- Delete: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)
|
|
1582
|
-
- Ctrl-Backspace (Alt-Backspace on macOS): [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)
|
|
1583
|
-
- Ctrl-Delete (Alt-Delete on macOS): [`deleteGroupForward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupForward)
|
|
1584
|
-
- Cmd-Backspace (macOS): [`deleteToLineStart`](https://codemirror.net/6/docs/ref/#commands.deleteToLineStart).
|
|
1585
|
-
- Cmd-Delete (macOS): [`deleteToLineEnd`](https://codemirror.net/6/docs/ref/#commands.deleteToLineEnd).
|
|
1586
|
-
*/
|
|
1587
|
-
const standardKeymap = /*@__PURE__*/[{
|
|
1588
|
-
key: "ArrowLeft",
|
|
1589
|
-
run: cursorCharLeft,
|
|
1590
|
-
shift: selectCharLeft,
|
|
1591
|
-
preventDefault: true
|
|
1592
|
-
}, {
|
|
1593
|
-
key: "Mod-ArrowLeft",
|
|
1594
|
-
mac: "Alt-ArrowLeft",
|
|
1595
|
-
run: cursorGroupLeft,
|
|
1596
|
-
shift: selectGroupLeft,
|
|
1597
|
-
preventDefault: true
|
|
1598
|
-
}, {
|
|
1599
|
-
mac: "Cmd-ArrowLeft",
|
|
1600
|
-
run: cursorLineBoundaryLeft,
|
|
1601
|
-
shift: selectLineBoundaryLeft,
|
|
1602
|
-
preventDefault: true
|
|
1603
|
-
}, {
|
|
1604
|
-
key: "ArrowRight",
|
|
1605
|
-
run: cursorCharRight,
|
|
1606
|
-
shift: selectCharRight,
|
|
1607
|
-
preventDefault: true
|
|
1608
|
-
}, {
|
|
1609
|
-
key: "Mod-ArrowRight",
|
|
1610
|
-
mac: "Alt-ArrowRight",
|
|
1611
|
-
run: cursorGroupRight,
|
|
1612
|
-
shift: selectGroupRight,
|
|
1613
|
-
preventDefault: true
|
|
1614
|
-
}, {
|
|
1615
|
-
mac: "Cmd-ArrowRight",
|
|
1616
|
-
run: cursorLineBoundaryRight,
|
|
1617
|
-
shift: selectLineBoundaryRight,
|
|
1618
|
-
preventDefault: true
|
|
1619
|
-
}, {
|
|
1620
|
-
key: "ArrowUp",
|
|
1621
|
-
run: cursorLineUp,
|
|
1622
|
-
shift: selectLineUp,
|
|
1623
|
-
preventDefault: true
|
|
1624
|
-
}, {
|
|
1625
|
-
mac: "Cmd-ArrowUp",
|
|
1626
|
-
run: cursorDocStart,
|
|
1627
|
-
shift: selectDocStart
|
|
1628
|
-
}, {
|
|
1629
|
-
mac: "Ctrl-ArrowUp",
|
|
1630
|
-
run: cursorPageUp,
|
|
1631
|
-
shift: selectPageUp
|
|
1632
|
-
}, {
|
|
1633
|
-
key: "ArrowDown",
|
|
1634
|
-
run: cursorLineDown,
|
|
1635
|
-
shift: selectLineDown,
|
|
1636
|
-
preventDefault: true
|
|
1637
|
-
}, {
|
|
1638
|
-
mac: "Cmd-ArrowDown",
|
|
1639
|
-
run: cursorDocEnd,
|
|
1640
|
-
shift: selectDocEnd
|
|
1641
|
-
}, {
|
|
1642
|
-
mac: "Ctrl-ArrowDown",
|
|
1643
|
-
run: cursorPageDown,
|
|
1644
|
-
shift: selectPageDown
|
|
1645
|
-
}, {
|
|
1646
|
-
key: "PageUp",
|
|
1647
|
-
run: cursorPageUp,
|
|
1648
|
-
shift: selectPageUp
|
|
1649
|
-
}, {
|
|
1650
|
-
key: "PageDown",
|
|
1651
|
-
run: cursorPageDown,
|
|
1652
|
-
shift: selectPageDown
|
|
1653
|
-
}, {
|
|
1654
|
-
key: "Home",
|
|
1655
|
-
run: cursorLineBoundaryBackward,
|
|
1656
|
-
shift: selectLineBoundaryBackward,
|
|
1657
|
-
preventDefault: true
|
|
1658
|
-
}, {
|
|
1659
|
-
key: "Mod-Home",
|
|
1660
|
-
run: cursorDocStart,
|
|
1661
|
-
shift: selectDocStart
|
|
1662
|
-
}, {
|
|
1663
|
-
key: "End",
|
|
1664
|
-
run: cursorLineBoundaryForward,
|
|
1665
|
-
shift: selectLineBoundaryForward,
|
|
1666
|
-
preventDefault: true
|
|
1667
|
-
}, {
|
|
1668
|
-
key: "Mod-End",
|
|
1669
|
-
run: cursorDocEnd,
|
|
1670
|
-
shift: selectDocEnd
|
|
1671
|
-
}, {
|
|
1672
|
-
key: "Enter",
|
|
1673
|
-
run: insertNewlineAndIndent
|
|
1674
|
-
}, {
|
|
1675
|
-
key: "Mod-a",
|
|
1676
|
-
run: selectAll
|
|
1677
|
-
}, {
|
|
1678
|
-
key: "Backspace",
|
|
1679
|
-
run: deleteCharBackward,
|
|
1680
|
-
shift: deleteCharBackward
|
|
1681
|
-
}, {
|
|
1682
|
-
key: "Delete",
|
|
1683
|
-
run: deleteCharForward
|
|
1684
|
-
}, {
|
|
1685
|
-
key: "Mod-Backspace",
|
|
1686
|
-
mac: "Alt-Backspace",
|
|
1687
|
-
run: deleteGroupBackward
|
|
1688
|
-
}, {
|
|
1689
|
-
key: "Mod-Delete",
|
|
1690
|
-
mac: "Alt-Delete",
|
|
1691
|
-
run: deleteGroupForward
|
|
1692
|
-
}, {
|
|
1693
|
-
mac: "Mod-Backspace",
|
|
1694
|
-
run: deleteToLineStart
|
|
1695
|
-
}, {
|
|
1696
|
-
mac: "Mod-Delete",
|
|
1697
|
-
run: deleteToLineEnd
|
|
1698
|
-
}].concat( /*@__PURE__*/emacsStyleKeymap.map(b => ({
|
|
1699
|
-
mac: b.key,
|
|
1700
|
-
run: b.run,
|
|
1701
|
-
shift: b.shift
|
|
1702
|
-
})));
|
|
1703
|
-
/**
|
|
1704
|
-
The default keymap. Includes all bindings from
|
|
1705
|
-
[`standardKeymap`](https://codemirror.net/6/docs/ref/#commands.standardKeymap) plus the following:
|
|
1706
|
-
|
|
1707
|
-
- Alt-ArrowLeft (Ctrl-ArrowLeft on macOS): [`cursorSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxLeft) ([`selectSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxLeft) with Shift)
|
|
1708
|
-
- Alt-ArrowRight (Ctrl-ArrowRight on macOS): [`cursorSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxRight) ([`selectSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxRight) with Shift)
|
|
1709
|
-
- Alt-ArrowUp: [`moveLineUp`](https://codemirror.net/6/docs/ref/#commands.moveLineUp)
|
|
1710
|
-
- Alt-ArrowDown: [`moveLineDown`](https://codemirror.net/6/docs/ref/#commands.moveLineDown)
|
|
1711
|
-
- Shift-Alt-ArrowUp: [`copyLineUp`](https://codemirror.net/6/docs/ref/#commands.copyLineUp)
|
|
1712
|
-
- Shift-Alt-ArrowDown: [`copyLineDown`](https://codemirror.net/6/docs/ref/#commands.copyLineDown)
|
|
1713
|
-
- Escape: [`simplifySelection`](https://codemirror.net/6/docs/ref/#commands.simplifySelection)
|
|
1714
|
-
- Ctrl-Enter (Comd-Enter on macOS): [`insertBlankLine`](https://codemirror.net/6/docs/ref/#commands.insertBlankLine)
|
|
1715
|
-
- Alt-l (Ctrl-l on macOS): [`selectLine`](https://codemirror.net/6/docs/ref/#commands.selectLine)
|
|
1716
|
-
- Ctrl-i (Cmd-i on macOS): [`selectParentSyntax`](https://codemirror.net/6/docs/ref/#commands.selectParentSyntax)
|
|
1717
|
-
- Ctrl-[ (Cmd-[ on macOS): [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess)
|
|
1718
|
-
- Ctrl-] (Cmd-] on macOS): [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore)
|
|
1719
|
-
- Ctrl-Alt-\\ (Cmd-Alt-\\ on macOS): [`indentSelection`](https://codemirror.net/6/docs/ref/#commands.indentSelection)
|
|
1720
|
-
- Shift-Ctrl-k (Shift-Cmd-k on macOS): [`deleteLine`](https://codemirror.net/6/docs/ref/#commands.deleteLine)
|
|
1721
|
-
- Shift-Ctrl-\\ (Shift-Cmd-\\ on macOS): [`cursorMatchingBracket`](https://codemirror.net/6/docs/ref/#commands.cursorMatchingBracket)
|
|
1722
|
-
- Ctrl-/ (Cmd-/ on macOS): [`toggleComment`](https://codemirror.net/6/docs/ref/#commands.toggleComment).
|
|
1723
|
-
- Shift-Alt-a: [`toggleBlockComment`](https://codemirror.net/6/docs/ref/#commands.toggleBlockComment).
|
|
1724
|
-
*/
|
|
1725
|
-
const defaultKeymap = /*@__PURE__*/[{
|
|
1726
|
-
key: "Alt-ArrowLeft",
|
|
1727
|
-
mac: "Ctrl-ArrowLeft",
|
|
1728
|
-
run: cursorSyntaxLeft,
|
|
1729
|
-
shift: selectSyntaxLeft
|
|
1730
|
-
}, {
|
|
1731
|
-
key: "Alt-ArrowRight",
|
|
1732
|
-
mac: "Ctrl-ArrowRight",
|
|
1733
|
-
run: cursorSyntaxRight,
|
|
1734
|
-
shift: selectSyntaxRight
|
|
1735
|
-
}, {
|
|
1736
|
-
key: "Alt-ArrowUp",
|
|
1737
|
-
run: moveLineUp
|
|
1738
|
-
}, {
|
|
1739
|
-
key: "Shift-Alt-ArrowUp",
|
|
1740
|
-
run: copyLineUp
|
|
1741
|
-
}, {
|
|
1742
|
-
key: "Alt-ArrowDown",
|
|
1743
|
-
run: moveLineDown
|
|
1744
|
-
}, {
|
|
1745
|
-
key: "Shift-Alt-ArrowDown",
|
|
1746
|
-
run: copyLineDown
|
|
1747
|
-
}, {
|
|
1748
|
-
key: "Escape",
|
|
1749
|
-
run: simplifySelection
|
|
1750
|
-
}, {
|
|
1751
|
-
key: "Mod-Enter",
|
|
1752
|
-
run: insertBlankLine
|
|
1753
|
-
}, {
|
|
1754
|
-
key: "Alt-l",
|
|
1755
|
-
mac: "Ctrl-l",
|
|
1756
|
-
run: selectLine
|
|
1757
|
-
}, {
|
|
1758
|
-
key: "Mod-i",
|
|
1759
|
-
run: selectParentSyntax,
|
|
1760
|
-
preventDefault: true
|
|
1761
|
-
}, {
|
|
1762
|
-
key: "Mod-[",
|
|
1763
|
-
run: indentLess
|
|
1764
|
-
}, {
|
|
1765
|
-
key: "Mod-]",
|
|
1766
|
-
run: indentMore
|
|
1767
|
-
}, {
|
|
1768
|
-
key: "Mod-Alt-\\",
|
|
1769
|
-
run: indentSelection
|
|
1770
|
-
}, {
|
|
1771
|
-
key: "Shift-Mod-k",
|
|
1772
|
-
run: deleteLine
|
|
1773
|
-
}, {
|
|
1774
|
-
key: "Shift-Mod-\\",
|
|
1775
|
-
run: cursorMatchingBracket
|
|
1776
|
-
}, {
|
|
1777
|
-
key: "Mod-/",
|
|
1778
|
-
run: toggleComment
|
|
1779
|
-
}, {
|
|
1780
|
-
key: "Alt-A",
|
|
1781
|
-
run: toggleBlockComment
|
|
1782
|
-
}].concat(standardKeymap);
|
|
1783
|
-
/**
|
|
1784
|
-
A binding that binds Tab to [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore) and
|
|
1785
|
-
Shift-Tab to [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess).
|
|
1786
|
-
Please see the [Tab example](../../examples/tab/) before using
|
|
1787
|
-
this.
|
|
1788
|
-
*/
|
|
1789
|
-
const indentWithTab = {
|
|
1790
|
-
key: "Tab",
|
|
1791
|
-
run: indentMore,
|
|
1792
|
-
shift: indentLess
|
|
1793
|
-
};
|
|
1794
|
-
|
|
1795
|
-
function crelt() {
|
|
1796
|
-
var elt = arguments[0];
|
|
1797
|
-
if (typeof elt == "string") elt = document.createElement(elt);
|
|
1798
|
-
var i = 1,
|
|
1799
|
-
next = arguments[1];
|
|
1800
|
-
if (next && typeof next == "object" && next.nodeType == null && !Array.isArray(next)) {
|
|
1801
|
-
for (var name in next) if (Object.prototype.hasOwnProperty.call(next, name)) {
|
|
1802
|
-
var value = next[name];
|
|
1803
|
-
if (typeof value == "string") elt.setAttribute(name, value);else if (value != null) elt[name] = value;
|
|
1804
|
-
}
|
|
1805
|
-
i++;
|
|
1806
|
-
}
|
|
1807
|
-
for (; i < arguments.length; i++) add(elt, arguments[i]);
|
|
1808
|
-
return elt;
|
|
1809
|
-
}
|
|
1810
|
-
function add(elt, child) {
|
|
1811
|
-
if (typeof child == "string") {
|
|
1812
|
-
elt.appendChild(document.createTextNode(child));
|
|
1813
|
-
} else if (child == null) ; else if (child.nodeType != null) {
|
|
1814
|
-
elt.appendChild(child);
|
|
1815
|
-
} else if (Array.isArray(child)) {
|
|
1816
|
-
for (var i = 0; i < child.length; i++) add(elt, child[i]);
|
|
1817
|
-
} else {
|
|
1818
|
-
throw new RangeError("Unsupported child node: " + child);
|
|
1819
|
-
}
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
const basicNormalize = typeof String.prototype.normalize == "function" ? x => x.normalize("NFKD") : x => x;
|
|
1823
|
-
/**
|
|
1824
|
-
A search cursor provides an iterator over text matches in a
|
|
1825
|
-
document.
|
|
1826
|
-
*/
|
|
1827
|
-
class SearchCursor {
|
|
1828
|
-
/**
|
|
1829
|
-
Create a text cursor. The query is the search string, `from` to
|
|
1830
|
-
`to` provides the region to search.
|
|
1831
|
-
|
|
1832
|
-
When `normalize` is given, it will be called, on both the query
|
|
1833
|
-
string and the content it is matched against, before comparing.
|
|
1834
|
-
You can, for example, create a case-insensitive search by
|
|
1835
|
-
passing `s => s.toLowerCase()`.
|
|
1836
|
-
|
|
1837
|
-
Text is always normalized with
|
|
1838
|
-
[`.normalize("NFKD")`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize)
|
|
1839
|
-
(when supported).
|
|
1840
|
-
*/
|
|
1841
|
-
constructor(text, query, from = 0, to = text.length, normalize, test) {
|
|
1842
|
-
this.test = test;
|
|
1843
|
-
/**
|
|
1844
|
-
The current match (only holds a meaningful value after
|
|
1845
|
-
[`next`](https://codemirror.net/6/docs/ref/#search.SearchCursor.next) has been called and when
|
|
1846
|
-
`done` is false).
|
|
1847
|
-
*/
|
|
1848
|
-
this.value = {
|
|
1849
|
-
from: 0,
|
|
1850
|
-
to: 0
|
|
1851
|
-
};
|
|
1852
|
-
/**
|
|
1853
|
-
Whether the end of the iterated region has been reached.
|
|
1854
|
-
*/
|
|
1855
|
-
this.done = false;
|
|
1856
|
-
this.matches = [];
|
|
1857
|
-
this.buffer = "";
|
|
1858
|
-
this.bufferPos = 0;
|
|
1859
|
-
this.iter = text.iterRange(from, to);
|
|
1860
|
-
this.bufferStart = from;
|
|
1861
|
-
this.normalize = normalize ? x => normalize(basicNormalize(x)) : basicNormalize;
|
|
1862
|
-
this.query = this.normalize(query);
|
|
1863
|
-
}
|
|
1864
|
-
peek() {
|
|
1865
|
-
if (this.bufferPos == this.buffer.length) {
|
|
1866
|
-
this.bufferStart += this.buffer.length;
|
|
1867
|
-
this.iter.next();
|
|
1868
|
-
if (this.iter.done) return -1;
|
|
1869
|
-
this.bufferPos = 0;
|
|
1870
|
-
this.buffer = this.iter.value;
|
|
1871
|
-
}
|
|
1872
|
-
return codePointAt(this.buffer, this.bufferPos);
|
|
1873
|
-
}
|
|
1874
|
-
/**
|
|
1875
|
-
Look for the next match. Updates the iterator's
|
|
1876
|
-
[`value`](https://codemirror.net/6/docs/ref/#search.SearchCursor.value) and
|
|
1877
|
-
[`done`](https://codemirror.net/6/docs/ref/#search.SearchCursor.done) properties. Should be called
|
|
1878
|
-
at least once before using the cursor.
|
|
1879
|
-
*/
|
|
1880
|
-
next() {
|
|
1881
|
-
while (this.matches.length) this.matches.pop();
|
|
1882
|
-
return this.nextOverlapping();
|
|
1883
|
-
}
|
|
1884
|
-
/**
|
|
1885
|
-
The `next` method will ignore matches that partially overlap a
|
|
1886
|
-
previous match. This method behaves like `next`, but includes
|
|
1887
|
-
such matches.
|
|
1888
|
-
*/
|
|
1889
|
-
nextOverlapping() {
|
|
1890
|
-
for (;;) {
|
|
1891
|
-
let next = this.peek();
|
|
1892
|
-
if (next < 0) {
|
|
1893
|
-
this.done = true;
|
|
1894
|
-
return this;
|
|
1895
|
-
}
|
|
1896
|
-
let str = fromCodePoint(next),
|
|
1897
|
-
start = this.bufferStart + this.bufferPos;
|
|
1898
|
-
this.bufferPos += codePointSize(next);
|
|
1899
|
-
let norm = this.normalize(str);
|
|
1900
|
-
for (let i = 0, pos = start;; i++) {
|
|
1901
|
-
let code = norm.charCodeAt(i);
|
|
1902
|
-
let match = this.match(code, pos);
|
|
1903
|
-
if (match) {
|
|
1904
|
-
this.value = match;
|
|
1905
|
-
return this;
|
|
1906
|
-
}
|
|
1907
|
-
if (i == norm.length - 1) break;
|
|
1908
|
-
if (pos == start && i < str.length && str.charCodeAt(i) == code) pos++;
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1912
|
-
match(code, pos) {
|
|
1913
|
-
let match = null;
|
|
1914
|
-
for (let i = 0; i < this.matches.length; i += 2) {
|
|
1915
|
-
let index = this.matches[i],
|
|
1916
|
-
keep = false;
|
|
1917
|
-
if (this.query.charCodeAt(index) == code) {
|
|
1918
|
-
if (index == this.query.length - 1) {
|
|
1919
|
-
match = {
|
|
1920
|
-
from: this.matches[i + 1],
|
|
1921
|
-
to: pos + 1
|
|
1922
|
-
};
|
|
1923
|
-
} else {
|
|
1924
|
-
this.matches[i]++;
|
|
1925
|
-
keep = true;
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
if (!keep) {
|
|
1929
|
-
this.matches.splice(i, 2);
|
|
1930
|
-
i -= 2;
|
|
1931
|
-
}
|
|
1932
|
-
}
|
|
1933
|
-
if (this.query.charCodeAt(0) == code) {
|
|
1934
|
-
if (this.query.length == 1) match = {
|
|
1935
|
-
from: pos,
|
|
1936
|
-
to: pos + 1
|
|
1937
|
-
};else this.matches.push(1, pos);
|
|
1938
|
-
}
|
|
1939
|
-
if (match && this.test && !this.test(match.from, match.to, this.buffer, this.bufferPos)) match = null;
|
|
1940
|
-
return match;
|
|
1941
|
-
}
|
|
1942
|
-
}
|
|
1943
|
-
if (typeof Symbol != "undefined") SearchCursor.prototype[Symbol.iterator] = function () {
|
|
1944
|
-
return this;
|
|
1945
|
-
};
|
|
1946
|
-
const empty = {
|
|
1947
|
-
from: -1,
|
|
1948
|
-
to: -1,
|
|
1949
|
-
match: /*@__PURE__*/ /.*/.exec("")
|
|
1950
|
-
};
|
|
1951
|
-
const baseFlags = "gm" + (/x/.unicode == null ? "" : "u");
|
|
1952
|
-
/**
|
|
1953
|
-
This class is similar to [`SearchCursor`](https://codemirror.net/6/docs/ref/#search.SearchCursor)
|
|
1954
|
-
but searches for a regular expression pattern instead of a plain
|
|
1955
|
-
string.
|
|
1956
|
-
*/
|
|
1957
|
-
class RegExpCursor {
|
|
1958
|
-
/**
|
|
1959
|
-
Create a cursor that will search the given range in the given
|
|
1960
|
-
document. `query` should be the raw pattern (as you'd pass it to
|
|
1961
|
-
`new RegExp`).
|
|
1962
|
-
*/
|
|
1963
|
-
constructor(text, query, options, from = 0, to = text.length) {
|
|
1964
|
-
this.text = text;
|
|
1965
|
-
this.to = to;
|
|
1966
|
-
this.curLine = "";
|
|
1967
|
-
/**
|
|
1968
|
-
Set to `true` when the cursor has reached the end of the search
|
|
1969
|
-
range.
|
|
1970
|
-
*/
|
|
1971
|
-
this.done = false;
|
|
1972
|
-
/**
|
|
1973
|
-
Will contain an object with the extent of the match and the
|
|
1974
|
-
match object when [`next`](https://codemirror.net/6/docs/ref/#search.RegExpCursor.next)
|
|
1975
|
-
sucessfully finds a match.
|
|
1976
|
-
*/
|
|
1977
|
-
this.value = empty;
|
|
1978
|
-
if (/\\[sWDnr]|\n|\r|\[\^/.test(query)) return new MultilineRegExpCursor(text, query, options, from, to);
|
|
1979
|
-
this.re = new RegExp(query, baseFlags + ((options === null || options === void 0 ? void 0 : options.ignoreCase) ? "i" : ""));
|
|
1980
|
-
this.test = options === null || options === void 0 ? void 0 : options.test;
|
|
1981
|
-
this.iter = text.iter();
|
|
1982
|
-
let startLine = text.lineAt(from);
|
|
1983
|
-
this.curLineStart = startLine.from;
|
|
1984
|
-
this.matchPos = toCharEnd(text, from);
|
|
1985
|
-
this.getLine(this.curLineStart);
|
|
1986
|
-
}
|
|
1987
|
-
getLine(skip) {
|
|
1988
|
-
this.iter.next(skip);
|
|
1989
|
-
if (this.iter.lineBreak) {
|
|
1990
|
-
this.curLine = "";
|
|
1991
|
-
} else {
|
|
1992
|
-
this.curLine = this.iter.value;
|
|
1993
|
-
if (this.curLineStart + this.curLine.length > this.to) this.curLine = this.curLine.slice(0, this.to - this.curLineStart);
|
|
1994
|
-
this.iter.next();
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
nextLine() {
|
|
1998
|
-
this.curLineStart = this.curLineStart + this.curLine.length + 1;
|
|
1999
|
-
if (this.curLineStart > this.to) this.curLine = "";else this.getLine(0);
|
|
2000
|
-
}
|
|
2001
|
-
/**
|
|
2002
|
-
Move to the next match, if there is one.
|
|
2003
|
-
*/
|
|
2004
|
-
next() {
|
|
2005
|
-
for (let off = this.matchPos - this.curLineStart;;) {
|
|
2006
|
-
this.re.lastIndex = off;
|
|
2007
|
-
let match = this.matchPos <= this.to && this.re.exec(this.curLine);
|
|
2008
|
-
if (match) {
|
|
2009
|
-
let from = this.curLineStart + match.index,
|
|
2010
|
-
to = from + match[0].length;
|
|
2011
|
-
this.matchPos = toCharEnd(this.text, to + (from == to ? 1 : 0));
|
|
2012
|
-
if (from == this.curLineStart + this.curLine.length) this.nextLine();
|
|
2013
|
-
if ((from < to || from > this.value.to) && (!this.test || this.test(from, to, match))) {
|
|
2014
|
-
this.value = {
|
|
2015
|
-
from,
|
|
2016
|
-
to,
|
|
2017
|
-
match
|
|
2018
|
-
};
|
|
2019
|
-
return this;
|
|
2020
|
-
}
|
|
2021
|
-
off = this.matchPos - this.curLineStart;
|
|
2022
|
-
} else if (this.curLineStart + this.curLine.length < this.to) {
|
|
2023
|
-
this.nextLine();
|
|
2024
|
-
off = 0;
|
|
2025
|
-
} else {
|
|
2026
|
-
this.done = true;
|
|
2027
|
-
return this;
|
|
2028
|
-
}
|
|
2029
|
-
}
|
|
2030
|
-
}
|
|
2031
|
-
}
|
|
2032
|
-
const flattened = /*@__PURE__*/new WeakMap();
|
|
2033
|
-
// Reusable (partially) flattened document strings
|
|
2034
|
-
class FlattenedDoc {
|
|
2035
|
-
constructor(from, text) {
|
|
2036
|
-
this.from = from;
|
|
2037
|
-
this.text = text;
|
|
2038
|
-
}
|
|
2039
|
-
get to() {
|
|
2040
|
-
return this.from + this.text.length;
|
|
2041
|
-
}
|
|
2042
|
-
static get(doc, from, to) {
|
|
2043
|
-
let cached = flattened.get(doc);
|
|
2044
|
-
if (!cached || cached.from >= to || cached.to <= from) {
|
|
2045
|
-
let flat = new FlattenedDoc(from, doc.sliceString(from, to));
|
|
2046
|
-
flattened.set(doc, flat);
|
|
2047
|
-
return flat;
|
|
2048
|
-
}
|
|
2049
|
-
if (cached.from == from && cached.to == to) return cached;
|
|
2050
|
-
let {
|
|
2051
|
-
text,
|
|
2052
|
-
from: cachedFrom
|
|
2053
|
-
} = cached;
|
|
2054
|
-
if (cachedFrom > from) {
|
|
2055
|
-
text = doc.sliceString(from, cachedFrom) + text;
|
|
2056
|
-
cachedFrom = from;
|
|
2057
|
-
}
|
|
2058
|
-
if (cached.to < to) text += doc.sliceString(cached.to, to);
|
|
2059
|
-
flattened.set(doc, new FlattenedDoc(cachedFrom, text));
|
|
2060
|
-
return new FlattenedDoc(from, text.slice(from - cachedFrom, to - cachedFrom));
|
|
2061
|
-
}
|
|
2062
|
-
}
|
|
2063
|
-
class MultilineRegExpCursor {
|
|
2064
|
-
constructor(text, query, options, from, to) {
|
|
2065
|
-
this.text = text;
|
|
2066
|
-
this.to = to;
|
|
2067
|
-
this.done = false;
|
|
2068
|
-
this.value = empty;
|
|
2069
|
-
this.matchPos = toCharEnd(text, from);
|
|
2070
|
-
this.re = new RegExp(query, baseFlags + ((options === null || options === void 0 ? void 0 : options.ignoreCase) ? "i" : ""));
|
|
2071
|
-
this.test = options === null || options === void 0 ? void 0 : options.test;
|
|
2072
|
-
this.flat = FlattenedDoc.get(text, from, this.chunkEnd(from + 5000 /* Chunk.Base */));
|
|
2073
|
-
}
|
|
2074
|
-
|
|
2075
|
-
chunkEnd(pos) {
|
|
2076
|
-
return pos >= this.to ? this.to : this.text.lineAt(pos).to;
|
|
2077
|
-
}
|
|
2078
|
-
next() {
|
|
2079
|
-
for (;;) {
|
|
2080
|
-
let off = this.re.lastIndex = this.matchPos - this.flat.from;
|
|
2081
|
-
let match = this.re.exec(this.flat.text);
|
|
2082
|
-
// Skip empty matches directly after the last match
|
|
2083
|
-
if (match && !match[0] && match.index == off) {
|
|
2084
|
-
this.re.lastIndex = off + 1;
|
|
2085
|
-
match = this.re.exec(this.flat.text);
|
|
2086
|
-
}
|
|
2087
|
-
if (match) {
|
|
2088
|
-
let from = this.flat.from + match.index,
|
|
2089
|
-
to = from + match[0].length;
|
|
2090
|
-
// If a match goes almost to the end of a noncomplete chunk, try
|
|
2091
|
-
// again, since it'll likely be able to match more
|
|
2092
|
-
if ((this.flat.to >= this.to || match.index + match[0].length <= this.flat.text.length - 10) && (!this.test || this.test(from, to, match))) {
|
|
2093
|
-
this.value = {
|
|
2094
|
-
from,
|
|
2095
|
-
to,
|
|
2096
|
-
match
|
|
2097
|
-
};
|
|
2098
|
-
this.matchPos = toCharEnd(this.text, to + (from == to ? 1 : 0));
|
|
2099
|
-
return this;
|
|
2100
|
-
}
|
|
2101
|
-
}
|
|
2102
|
-
if (this.flat.to == this.to) {
|
|
2103
|
-
this.done = true;
|
|
2104
|
-
return this;
|
|
2105
|
-
}
|
|
2106
|
-
// Grow the flattened doc
|
|
2107
|
-
this.flat = FlattenedDoc.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
|
|
2108
|
-
}
|
|
2109
|
-
}
|
|
2110
|
-
}
|
|
2111
|
-
if (typeof Symbol != "undefined") {
|
|
2112
|
-
RegExpCursor.prototype[Symbol.iterator] = MultilineRegExpCursor.prototype[Symbol.iterator] = function () {
|
|
2113
|
-
return this;
|
|
2114
|
-
};
|
|
2115
|
-
}
|
|
2116
|
-
function validRegExp(source) {
|
|
2117
|
-
try {
|
|
2118
|
-
new RegExp(source, baseFlags);
|
|
2119
|
-
return true;
|
|
2120
|
-
} catch (_a) {
|
|
2121
|
-
return false;
|
|
2122
|
-
}
|
|
2123
|
-
}
|
|
2124
|
-
function toCharEnd(text, pos) {
|
|
2125
|
-
if (pos >= text.length) return pos;
|
|
2126
|
-
let line = text.lineAt(pos),
|
|
2127
|
-
next;
|
|
2128
|
-
while (pos < line.to && (next = line.text.charCodeAt(pos - line.from)) >= 0xDC00 && next < 0xE000) pos++;
|
|
2129
|
-
return pos;
|
|
2130
|
-
}
|
|
2131
|
-
function createLineDialog(view) {
|
|
2132
|
-
let input = crelt("input", {
|
|
2133
|
-
class: "cm-textfield",
|
|
2134
|
-
name: "line"
|
|
2135
|
-
});
|
|
2136
|
-
let dom = crelt("form", {
|
|
2137
|
-
class: "cm-gotoLine",
|
|
2138
|
-
onkeydown: event => {
|
|
2139
|
-
if (event.keyCode == 27) {
|
|
2140
|
-
// Escape
|
|
2141
|
-
event.preventDefault();
|
|
2142
|
-
view.dispatch({
|
|
2143
|
-
effects: dialogEffect.of(false)
|
|
2144
|
-
});
|
|
2145
|
-
view.focus();
|
|
2146
|
-
} else if (event.keyCode == 13) {
|
|
2147
|
-
// Enter
|
|
2148
|
-
event.preventDefault();
|
|
2149
|
-
go();
|
|
2150
|
-
}
|
|
2151
|
-
},
|
|
2152
|
-
onsubmit: event => {
|
|
2153
|
-
event.preventDefault();
|
|
2154
|
-
go();
|
|
2155
|
-
}
|
|
2156
|
-
}, crelt("label", view.state.phrase("Go to line"), ": ", input), " ", crelt("button", {
|
|
2157
|
-
class: "cm-button",
|
|
2158
|
-
type: "submit"
|
|
2159
|
-
}, view.state.phrase("go")));
|
|
2160
|
-
function go() {
|
|
2161
|
-
let match = /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(input.value);
|
|
2162
|
-
if (!match) return;
|
|
2163
|
-
let {
|
|
2164
|
-
state
|
|
2165
|
-
} = view,
|
|
2166
|
-
startLine = state.doc.lineAt(state.selection.main.head);
|
|
2167
|
-
let [, sign, ln, cl, percent] = match;
|
|
2168
|
-
let col = cl ? +cl.slice(1) : 0;
|
|
2169
|
-
let line = ln ? +ln : startLine.number;
|
|
2170
|
-
if (ln && percent) {
|
|
2171
|
-
let pc = line / 100;
|
|
2172
|
-
if (sign) pc = pc * (sign == "-" ? -1 : 1) + startLine.number / state.doc.lines;
|
|
2173
|
-
line = Math.round(state.doc.lines * pc);
|
|
2174
|
-
} else if (ln && sign) {
|
|
2175
|
-
line = line * (sign == "-" ? -1 : 1) + startLine.number;
|
|
2176
|
-
}
|
|
2177
|
-
let docLine = state.doc.line(Math.max(1, Math.min(state.doc.lines, line)));
|
|
2178
|
-
view.dispatch({
|
|
2179
|
-
effects: dialogEffect.of(false),
|
|
2180
|
-
selection: EditorSelection.cursor(docLine.from + Math.max(0, Math.min(col, docLine.length))),
|
|
2181
|
-
scrollIntoView: true
|
|
2182
|
-
});
|
|
2183
|
-
view.focus();
|
|
2184
|
-
}
|
|
2185
|
-
return {
|
|
2186
|
-
dom
|
|
2187
|
-
};
|
|
2188
|
-
}
|
|
2189
|
-
const dialogEffect = /*@__PURE__*/StateEffect.define();
|
|
2190
|
-
const dialogField = /*@__PURE__*/StateField.define({
|
|
2191
|
-
create() {
|
|
2192
|
-
return true;
|
|
2193
|
-
},
|
|
2194
|
-
update(value, tr) {
|
|
2195
|
-
for (let e of tr.effects) if (e.is(dialogEffect)) value = e.value;
|
|
2196
|
-
return value;
|
|
2197
|
-
},
|
|
2198
|
-
provide: f => showPanel.from(f, val => val ? createLineDialog : null)
|
|
2199
|
-
});
|
|
2200
|
-
/**
|
|
2201
|
-
Command that shows a dialog asking the user for a line number, and
|
|
2202
|
-
when a valid position is provided, moves the cursor to that line.
|
|
2203
|
-
|
|
2204
|
-
Supports line numbers, relative line offsets prefixed with `+` or
|
|
2205
|
-
`-`, document percentages suffixed with `%`, and an optional
|
|
2206
|
-
column position by adding `:` and a second number after the line
|
|
2207
|
-
number.
|
|
2208
|
-
|
|
2209
|
-
The dialog can be styled with the `panel.gotoLine` theme
|
|
2210
|
-
selector.
|
|
2211
|
-
*/
|
|
2212
|
-
const gotoLine = view => {
|
|
2213
|
-
let panel = getPanel(view, createLineDialog);
|
|
2214
|
-
if (!panel) {
|
|
2215
|
-
let effects = [dialogEffect.of(true)];
|
|
2216
|
-
if (view.state.field(dialogField, false) == null) effects.push(StateEffect.appendConfig.of([dialogField, baseTheme$1]));
|
|
2217
|
-
view.dispatch({
|
|
2218
|
-
effects
|
|
2219
|
-
});
|
|
2220
|
-
panel = getPanel(view, createLineDialog);
|
|
2221
|
-
}
|
|
2222
|
-
if (panel) panel.dom.querySelector("input").focus();
|
|
2223
|
-
return true;
|
|
2224
|
-
};
|
|
2225
|
-
const baseTheme$1 = /*@__PURE__*/EditorView.baseTheme({
|
|
2226
|
-
".cm-panel.cm-gotoLine": {
|
|
2227
|
-
padding: "2px 6px 4px",
|
|
2228
|
-
"& label": {
|
|
2229
|
-
fontSize: "80%"
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
|
-
});
|
|
2233
|
-
const defaultHighlightOptions = {
|
|
2234
|
-
highlightWordAroundCursor: false,
|
|
2235
|
-
minSelectionLength: 1,
|
|
2236
|
-
maxMatches: 100,
|
|
2237
|
-
wholeWords: false
|
|
2238
|
-
};
|
|
2239
|
-
const highlightConfig = /*@__PURE__*/Facet.define({
|
|
2240
|
-
combine(options) {
|
|
2241
|
-
return combineConfig(options, defaultHighlightOptions, {
|
|
2242
|
-
highlightWordAroundCursor: (a, b) => a || b,
|
|
2243
|
-
minSelectionLength: Math.min,
|
|
2244
|
-
maxMatches: Math.min
|
|
2245
|
-
});
|
|
2246
|
-
}
|
|
2247
|
-
});
|
|
2248
|
-
/**
|
|
2249
|
-
This extension highlights text that matches the selection. It uses
|
|
2250
|
-
the `"cm-selectionMatch"` class for the highlighting. When
|
|
2251
|
-
`highlightWordAroundCursor` is enabled, the word at the cursor
|
|
2252
|
-
itself will be highlighted with `"cm-selectionMatch-main"`.
|
|
2253
|
-
*/
|
|
2254
|
-
function highlightSelectionMatches(options) {
|
|
2255
|
-
let ext = [defaultTheme, matchHighlighter];
|
|
2256
|
-
if (options) ext.push(highlightConfig.of(options));
|
|
2257
|
-
return ext;
|
|
2258
|
-
}
|
|
2259
|
-
const matchDeco = /*@__PURE__*/Decoration.mark({
|
|
2260
|
-
class: "cm-selectionMatch"
|
|
2261
|
-
});
|
|
2262
|
-
const mainMatchDeco = /*@__PURE__*/Decoration.mark({
|
|
2263
|
-
class: "cm-selectionMatch cm-selectionMatch-main"
|
|
2264
|
-
});
|
|
2265
|
-
// Whether the characters directly outside the given positions are non-word characters
|
|
2266
|
-
function insideWordBoundaries(check, state, from, to) {
|
|
2267
|
-
return (from == 0 || check(state.sliceDoc(from - 1, from)) != CharCategory.Word) && (to == state.doc.length || check(state.sliceDoc(to, to + 1)) != CharCategory.Word);
|
|
2268
|
-
}
|
|
2269
|
-
// Whether the characters directly at the given positions are word characters
|
|
2270
|
-
function insideWord(check, state, from, to) {
|
|
2271
|
-
return check(state.sliceDoc(from, from + 1)) == CharCategory.Word && check(state.sliceDoc(to - 1, to)) == CharCategory.Word;
|
|
2272
|
-
}
|
|
2273
|
-
const matchHighlighter = /*@__PURE__*/ViewPlugin.fromClass(class {
|
|
2274
|
-
constructor(view) {
|
|
2275
|
-
this.decorations = this.getDeco(view);
|
|
2276
|
-
}
|
|
2277
|
-
update(update) {
|
|
2278
|
-
if (update.selectionSet || update.docChanged || update.viewportChanged) this.decorations = this.getDeco(update.view);
|
|
2279
|
-
}
|
|
2280
|
-
getDeco(view) {
|
|
2281
|
-
let conf = view.state.facet(highlightConfig);
|
|
2282
|
-
let {
|
|
2283
|
-
state
|
|
2284
|
-
} = view,
|
|
2285
|
-
sel = state.selection;
|
|
2286
|
-
if (sel.ranges.length > 1) return Decoration.none;
|
|
2287
|
-
let range = sel.main,
|
|
2288
|
-
query,
|
|
2289
|
-
check = null;
|
|
2290
|
-
if (range.empty) {
|
|
2291
|
-
if (!conf.highlightWordAroundCursor) return Decoration.none;
|
|
2292
|
-
let word = state.wordAt(range.head);
|
|
2293
|
-
if (!word) return Decoration.none;
|
|
2294
|
-
check = state.charCategorizer(range.head);
|
|
2295
|
-
query = state.sliceDoc(word.from, word.to);
|
|
2296
|
-
} else {
|
|
2297
|
-
let len = range.to - range.from;
|
|
2298
|
-
if (len < conf.minSelectionLength || len > 200) return Decoration.none;
|
|
2299
|
-
if (conf.wholeWords) {
|
|
2300
|
-
query = state.sliceDoc(range.from, range.to); // TODO: allow and include leading/trailing space?
|
|
2301
|
-
check = state.charCategorizer(range.head);
|
|
2302
|
-
if (!(insideWordBoundaries(check, state, range.from, range.to) && insideWord(check, state, range.from, range.to))) return Decoration.none;
|
|
2303
|
-
} else {
|
|
2304
|
-
query = state.sliceDoc(range.from, range.to).trim();
|
|
2305
|
-
if (!query) return Decoration.none;
|
|
2306
|
-
}
|
|
2307
|
-
}
|
|
2308
|
-
let deco = [];
|
|
2309
|
-
for (let part of view.visibleRanges) {
|
|
2310
|
-
let cursor = new SearchCursor(state.doc, query, part.from, part.to);
|
|
2311
|
-
while (!cursor.next().done) {
|
|
2312
|
-
let {
|
|
2313
|
-
from,
|
|
2314
|
-
to
|
|
2315
|
-
} = cursor.value;
|
|
2316
|
-
if (!check || insideWordBoundaries(check, state, from, to)) {
|
|
2317
|
-
if (range.empty && from <= range.from && to >= range.to) deco.push(mainMatchDeco.range(from, to));else if (from >= range.to || to <= range.from) deco.push(matchDeco.range(from, to));
|
|
2318
|
-
if (deco.length > conf.maxMatches) return Decoration.none;
|
|
2319
|
-
}
|
|
2320
|
-
}
|
|
2321
|
-
}
|
|
2322
|
-
return Decoration.set(deco);
|
|
2323
|
-
}
|
|
2324
|
-
}, {
|
|
2325
|
-
decorations: v => v.decorations
|
|
2326
|
-
});
|
|
2327
|
-
const defaultTheme = /*@__PURE__*/EditorView.baseTheme({
|
|
2328
|
-
".cm-selectionMatch": {
|
|
2329
|
-
backgroundColor: "#99ff7780"
|
|
2330
|
-
},
|
|
2331
|
-
".cm-searchMatch .cm-selectionMatch": {
|
|
2332
|
-
backgroundColor: "transparent"
|
|
2333
|
-
}
|
|
2334
|
-
});
|
|
2335
|
-
// Select the words around the cursors.
|
|
2336
|
-
const selectWord = ({
|
|
2337
|
-
state,
|
|
2338
|
-
dispatch
|
|
2339
|
-
}) => {
|
|
2340
|
-
let {
|
|
2341
|
-
selection
|
|
2342
|
-
} = state;
|
|
2343
|
-
let newSel = EditorSelection.create(selection.ranges.map(range => state.wordAt(range.head) || EditorSelection.cursor(range.head)), selection.mainIndex);
|
|
2344
|
-
if (newSel.eq(selection)) return false;
|
|
2345
|
-
dispatch(state.update({
|
|
2346
|
-
selection: newSel
|
|
2347
|
-
}));
|
|
2348
|
-
return true;
|
|
2349
|
-
};
|
|
2350
|
-
// Find next occurrence of query relative to last cursor. Wrap around
|
|
2351
|
-
// the document if there are no more matches.
|
|
2352
|
-
function findNextOccurrence(state, query) {
|
|
2353
|
-
let {
|
|
2354
|
-
main,
|
|
2355
|
-
ranges
|
|
2356
|
-
} = state.selection;
|
|
2357
|
-
let word = state.wordAt(main.head),
|
|
2358
|
-
fullWord = word && word.from == main.from && word.to == main.to;
|
|
2359
|
-
for (let cycled = false, cursor = new SearchCursor(state.doc, query, ranges[ranges.length - 1].to);;) {
|
|
2360
|
-
cursor.next();
|
|
2361
|
-
if (cursor.done) {
|
|
2362
|
-
if (cycled) return null;
|
|
2363
|
-
cursor = new SearchCursor(state.doc, query, 0, Math.max(0, ranges[ranges.length - 1].from - 1));
|
|
2364
|
-
cycled = true;
|
|
2365
|
-
} else {
|
|
2366
|
-
if (cycled && ranges.some(r => r.from == cursor.value.from)) continue;
|
|
2367
|
-
if (fullWord) {
|
|
2368
|
-
let word = state.wordAt(cursor.value.from);
|
|
2369
|
-
if (!word || word.from != cursor.value.from || word.to != cursor.value.to) continue;
|
|
2370
|
-
}
|
|
2371
|
-
return cursor.value;
|
|
2372
|
-
}
|
|
2373
|
-
}
|
|
2374
|
-
}
|
|
2375
|
-
/**
|
|
2376
|
-
Select next occurrence of the current selection. Expand selection
|
|
2377
|
-
to the surrounding word when the selection is empty.
|
|
2378
|
-
*/
|
|
2379
|
-
const selectNextOccurrence = ({
|
|
2380
|
-
state,
|
|
2381
|
-
dispatch
|
|
2382
|
-
}) => {
|
|
2383
|
-
let {
|
|
2384
|
-
ranges
|
|
2385
|
-
} = state.selection;
|
|
2386
|
-
if (ranges.some(sel => sel.from === sel.to)) return selectWord({
|
|
2387
|
-
state,
|
|
2388
|
-
dispatch
|
|
2389
|
-
});
|
|
2390
|
-
let searchedText = state.sliceDoc(ranges[0].from, ranges[0].to);
|
|
2391
|
-
if (state.selection.ranges.some(r => state.sliceDoc(r.from, r.to) != searchedText)) return false;
|
|
2392
|
-
let range = findNextOccurrence(state, searchedText);
|
|
2393
|
-
if (!range) return false;
|
|
2394
|
-
dispatch(state.update({
|
|
2395
|
-
selection: state.selection.addRange(EditorSelection.range(range.from, range.to), false),
|
|
2396
|
-
effects: EditorView.scrollIntoView(range.to)
|
|
2397
|
-
}));
|
|
2398
|
-
return true;
|
|
2399
|
-
};
|
|
2400
|
-
const searchConfigFacet = /*@__PURE__*/Facet.define({
|
|
2401
|
-
combine(configs) {
|
|
2402
|
-
return combineConfig(configs, {
|
|
2403
|
-
top: false,
|
|
2404
|
-
caseSensitive: false,
|
|
2405
|
-
literal: false,
|
|
2406
|
-
wholeWord: false,
|
|
2407
|
-
createPanel: view => new SearchPanel(view)
|
|
2408
|
-
});
|
|
2409
|
-
}
|
|
2410
|
-
});
|
|
2411
|
-
/**
|
|
2412
|
-
A search query. Part of the editor's search state.
|
|
2413
|
-
*/
|
|
2414
|
-
class SearchQuery {
|
|
2415
|
-
/**
|
|
2416
|
-
Create a query object.
|
|
2417
|
-
*/
|
|
2418
|
-
constructor(config) {
|
|
2419
|
-
this.search = config.search;
|
|
2420
|
-
this.caseSensitive = !!config.caseSensitive;
|
|
2421
|
-
this.literal = !!config.literal;
|
|
2422
|
-
this.regexp = !!config.regexp;
|
|
2423
|
-
this.replace = config.replace || "";
|
|
2424
|
-
this.valid = !!this.search && (!this.regexp || validRegExp(this.search));
|
|
2425
|
-
this.unquoted = this.unquote(this.search);
|
|
2426
|
-
this.wholeWord = !!config.wholeWord;
|
|
2427
|
-
}
|
|
2428
|
-
/**
|
|
2429
|
-
@internal
|
|
2430
|
-
*/
|
|
2431
|
-
unquote(text) {
|
|
2432
|
-
return this.literal ? text : text.replace(/\\([nrt\\])/g, (_, ch) => ch == "n" ? "\n" : ch == "r" ? "\r" : ch == "t" ? "\t" : "\\");
|
|
2433
|
-
}
|
|
2434
|
-
/**
|
|
2435
|
-
Compare this query to another query.
|
|
2436
|
-
*/
|
|
2437
|
-
eq(other) {
|
|
2438
|
-
return this.search == other.search && this.replace == other.replace && this.caseSensitive == other.caseSensitive && this.regexp == other.regexp && this.wholeWord == other.wholeWord;
|
|
2439
|
-
}
|
|
2440
|
-
/**
|
|
2441
|
-
@internal
|
|
2442
|
-
*/
|
|
2443
|
-
create() {
|
|
2444
|
-
return this.regexp ? new RegExpQuery(this) : new StringQuery(this);
|
|
2445
|
-
}
|
|
2446
|
-
/**
|
|
2447
|
-
Get a search cursor for this query, searching through the given
|
|
2448
|
-
range in the given state.
|
|
2449
|
-
*/
|
|
2450
|
-
getCursor(state, from = 0, to) {
|
|
2451
|
-
let st = state.doc ? state : EditorState.create({
|
|
2452
|
-
doc: state
|
|
2453
|
-
});
|
|
2454
|
-
if (to == null) to = st.doc.length;
|
|
2455
|
-
return this.regexp ? regexpCursor(this, st, from, to) : stringCursor(this, st, from, to);
|
|
2456
|
-
}
|
|
2457
|
-
}
|
|
2458
|
-
class QueryType {
|
|
2459
|
-
constructor(spec) {
|
|
2460
|
-
this.spec = spec;
|
|
2461
|
-
}
|
|
2462
|
-
}
|
|
2463
|
-
function stringCursor(spec, state, from, to) {
|
|
2464
|
-
return new SearchCursor(state.doc, spec.unquoted, from, to, spec.caseSensitive ? undefined : x => x.toLowerCase(), spec.wholeWord ? stringWordTest(state.doc, state.charCategorizer(state.selection.main.head)) : undefined);
|
|
2465
|
-
}
|
|
2466
|
-
function stringWordTest(doc, categorizer) {
|
|
2467
|
-
return (from, to, buf, bufPos) => {
|
|
2468
|
-
if (bufPos > from || bufPos + buf.length < to) {
|
|
2469
|
-
bufPos = Math.max(0, from - 2);
|
|
2470
|
-
buf = doc.sliceString(bufPos, Math.min(doc.length, to + 2));
|
|
2471
|
-
}
|
|
2472
|
-
return (categorizer(charBefore(buf, from - bufPos)) != CharCategory.Word || categorizer(charAfter(buf, from - bufPos)) != CharCategory.Word) && (categorizer(charAfter(buf, to - bufPos)) != CharCategory.Word || categorizer(charBefore(buf, to - bufPos)) != CharCategory.Word);
|
|
2473
|
-
};
|
|
2474
|
-
}
|
|
2475
|
-
class StringQuery extends QueryType {
|
|
2476
|
-
constructor(spec) {
|
|
2477
|
-
super(spec);
|
|
2478
|
-
}
|
|
2479
|
-
nextMatch(state, curFrom, curTo) {
|
|
2480
|
-
let cursor = stringCursor(this.spec, state, curTo, state.doc.length).nextOverlapping();
|
|
2481
|
-
if (cursor.done) cursor = stringCursor(this.spec, state, 0, curFrom).nextOverlapping();
|
|
2482
|
-
return cursor.done ? null : cursor.value;
|
|
2483
|
-
}
|
|
2484
|
-
// Searching in reverse is, rather than implementing inverted search
|
|
2485
|
-
// cursor, done by scanning chunk after chunk forward.
|
|
2486
|
-
prevMatchInRange(state, from, to) {
|
|
2487
|
-
for (let pos = to;;) {
|
|
2488
|
-
let start = Math.max(from, pos - 10000 /* FindPrev.ChunkSize */ - this.spec.unquoted.length);
|
|
2489
|
-
let cursor = stringCursor(this.spec, state, start, pos),
|
|
2490
|
-
range = null;
|
|
2491
|
-
while (!cursor.nextOverlapping().done) range = cursor.value;
|
|
2492
|
-
if (range) return range;
|
|
2493
|
-
if (start == from) return null;
|
|
2494
|
-
pos -= 10000 /* FindPrev.ChunkSize */;
|
|
2495
|
-
}
|
|
2496
|
-
}
|
|
2497
|
-
|
|
2498
|
-
prevMatch(state, curFrom, curTo) {
|
|
2499
|
-
return this.prevMatchInRange(state, 0, curFrom) || this.prevMatchInRange(state, curTo, state.doc.length);
|
|
2500
|
-
}
|
|
2501
|
-
getReplacement(_result) {
|
|
2502
|
-
return this.spec.unquote(this.spec.replace);
|
|
2503
|
-
}
|
|
2504
|
-
matchAll(state, limit) {
|
|
2505
|
-
let cursor = stringCursor(this.spec, state, 0, state.doc.length),
|
|
2506
|
-
ranges = [];
|
|
2507
|
-
while (!cursor.next().done) {
|
|
2508
|
-
if (ranges.length >= limit) return null;
|
|
2509
|
-
ranges.push(cursor.value);
|
|
2510
|
-
}
|
|
2511
|
-
return ranges;
|
|
2512
|
-
}
|
|
2513
|
-
highlight(state, from, to, add) {
|
|
2514
|
-
let cursor = stringCursor(this.spec, state, Math.max(0, from - this.spec.unquoted.length), Math.min(to + this.spec.unquoted.length, state.doc.length));
|
|
2515
|
-
while (!cursor.next().done) add(cursor.value.from, cursor.value.to);
|
|
2516
|
-
}
|
|
2517
|
-
}
|
|
2518
|
-
function regexpCursor(spec, state, from, to) {
|
|
2519
|
-
return new RegExpCursor(state.doc, spec.search, {
|
|
2520
|
-
ignoreCase: !spec.caseSensitive,
|
|
2521
|
-
test: spec.wholeWord ? regexpWordTest(state.charCategorizer(state.selection.main.head)) : undefined
|
|
2522
|
-
}, from, to);
|
|
2523
|
-
}
|
|
2524
|
-
function charBefore(str, index) {
|
|
2525
|
-
return str.slice(findClusterBreak(str, index, false), index);
|
|
2526
|
-
}
|
|
2527
|
-
function charAfter(str, index) {
|
|
2528
|
-
return str.slice(index, findClusterBreak(str, index));
|
|
2529
|
-
}
|
|
2530
|
-
function regexpWordTest(categorizer) {
|
|
2531
|
-
return (_from, _to, match) => !match[0].length || (categorizer(charBefore(match.input, match.index)) != CharCategory.Word || categorizer(charAfter(match.input, match.index)) != CharCategory.Word) && (categorizer(charAfter(match.input, match.index + match[0].length)) != CharCategory.Word || categorizer(charBefore(match.input, match.index + match[0].length)) != CharCategory.Word);
|
|
2532
|
-
}
|
|
2533
|
-
class RegExpQuery extends QueryType {
|
|
2534
|
-
nextMatch(state, curFrom, curTo) {
|
|
2535
|
-
let cursor = regexpCursor(this.spec, state, curTo, state.doc.length).next();
|
|
2536
|
-
if (cursor.done) cursor = regexpCursor(this.spec, state, 0, curFrom).next();
|
|
2537
|
-
return cursor.done ? null : cursor.value;
|
|
2538
|
-
}
|
|
2539
|
-
prevMatchInRange(state, from, to) {
|
|
2540
|
-
for (let size = 1;; size++) {
|
|
2541
|
-
let start = Math.max(from, to - size * 10000 /* FindPrev.ChunkSize */);
|
|
2542
|
-
let cursor = regexpCursor(this.spec, state, start, to),
|
|
2543
|
-
range = null;
|
|
2544
|
-
while (!cursor.next().done) range = cursor.value;
|
|
2545
|
-
if (range && (start == from || range.from > start + 10)) return range;
|
|
2546
|
-
if (start == from) return null;
|
|
2547
|
-
}
|
|
2548
|
-
}
|
|
2549
|
-
prevMatch(state, curFrom, curTo) {
|
|
2550
|
-
return this.prevMatchInRange(state, 0, curFrom) || this.prevMatchInRange(state, curTo, state.doc.length);
|
|
2551
|
-
}
|
|
2552
|
-
getReplacement(result) {
|
|
2553
|
-
return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g, (m, i) => i == "$" ? "$" : i == "&" ? result.match[0] : i != "0" && +i < result.match.length ? result.match[i] : m));
|
|
2554
|
-
}
|
|
2555
|
-
matchAll(state, limit) {
|
|
2556
|
-
let cursor = regexpCursor(this.spec, state, 0, state.doc.length),
|
|
2557
|
-
ranges = [];
|
|
2558
|
-
while (!cursor.next().done) {
|
|
2559
|
-
if (ranges.length >= limit) return null;
|
|
2560
|
-
ranges.push(cursor.value);
|
|
2561
|
-
}
|
|
2562
|
-
return ranges;
|
|
2563
|
-
}
|
|
2564
|
-
highlight(state, from, to, add) {
|
|
2565
|
-
let cursor = regexpCursor(this.spec, state, Math.max(0, from - 250 /* RegExp.HighlightMargin */), Math.min(to + 250 /* RegExp.HighlightMargin */, state.doc.length));
|
|
2566
|
-
while (!cursor.next().done) add(cursor.value.from, cursor.value.to);
|
|
2567
|
-
}
|
|
2568
|
-
}
|
|
2569
|
-
/**
|
|
2570
|
-
A state effect that updates the current search query. Note that
|
|
2571
|
-
this only has an effect if the search state has been initialized
|
|
2572
|
-
(by including [`search`](https://codemirror.net/6/docs/ref/#search.search) in your configuration or
|
|
2573
|
-
by running [`openSearchPanel`](https://codemirror.net/6/docs/ref/#search.openSearchPanel) at least
|
|
2574
|
-
once).
|
|
2575
|
-
*/
|
|
2576
|
-
const setSearchQuery = /*@__PURE__*/StateEffect.define();
|
|
2577
|
-
const togglePanel$1 = /*@__PURE__*/StateEffect.define();
|
|
2578
|
-
const searchState = /*@__PURE__*/StateField.define({
|
|
2579
|
-
create(state) {
|
|
2580
|
-
return new SearchState(defaultQuery(state).create(), null);
|
|
2581
|
-
},
|
|
2582
|
-
update(value, tr) {
|
|
2583
|
-
for (let effect of tr.effects) {
|
|
2584
|
-
if (effect.is(setSearchQuery)) value = new SearchState(effect.value.create(), value.panel);else if (effect.is(togglePanel$1)) value = new SearchState(value.query, effect.value ? createSearchPanel : null);
|
|
2585
|
-
}
|
|
2586
|
-
return value;
|
|
2587
|
-
},
|
|
2588
|
-
provide: f => showPanel.from(f, val => val.panel)
|
|
2589
|
-
});
|
|
2590
|
-
class SearchState {
|
|
2591
|
-
constructor(query, panel) {
|
|
2592
|
-
this.query = query;
|
|
2593
|
-
this.panel = panel;
|
|
2594
|
-
}
|
|
2595
|
-
}
|
|
2596
|
-
const matchMark = /*@__PURE__*/Decoration.mark({
|
|
2597
|
-
class: "cm-searchMatch"
|
|
2598
|
-
}),
|
|
2599
|
-
selectedMatchMark = /*@__PURE__*/Decoration.mark({
|
|
2600
|
-
class: "cm-searchMatch cm-searchMatch-selected"
|
|
2601
|
-
});
|
|
2602
|
-
const searchHighlighter = /*@__PURE__*/ViewPlugin.fromClass(class {
|
|
2603
|
-
constructor(view) {
|
|
2604
|
-
this.view = view;
|
|
2605
|
-
this.decorations = this.highlight(view.state.field(searchState));
|
|
2606
|
-
}
|
|
2607
|
-
update(update) {
|
|
2608
|
-
let state = update.state.field(searchState);
|
|
2609
|
-
if (state != update.startState.field(searchState) || update.docChanged || update.selectionSet || update.viewportChanged) this.decorations = this.highlight(state);
|
|
2610
|
-
}
|
|
2611
|
-
highlight({
|
|
2612
|
-
query,
|
|
2613
|
-
panel
|
|
2614
|
-
}) {
|
|
2615
|
-
if (!panel || !query.spec.valid) return Decoration.none;
|
|
2616
|
-
let {
|
|
2617
|
-
view
|
|
2618
|
-
} = this;
|
|
2619
|
-
let builder = new RangeSetBuilder();
|
|
2620
|
-
for (let i = 0, ranges = view.visibleRanges, l = ranges.length; i < l; i++) {
|
|
2621
|
-
let {
|
|
2622
|
-
from,
|
|
2623
|
-
to
|
|
2624
|
-
} = ranges[i];
|
|
2625
|
-
while (i < l - 1 && to > ranges[i + 1].from - 2 * 250 /* RegExp.HighlightMargin */) to = ranges[++i].to;
|
|
2626
|
-
query.highlight(view.state, from, to, (from, to) => {
|
|
2627
|
-
let selected = view.state.selection.ranges.some(r => r.from == from && r.to == to);
|
|
2628
|
-
builder.add(from, to, selected ? selectedMatchMark : matchMark);
|
|
2629
|
-
});
|
|
2630
|
-
}
|
|
2631
|
-
return builder.finish();
|
|
2632
|
-
}
|
|
2633
|
-
}, {
|
|
2634
|
-
decorations: v => v.decorations
|
|
2635
|
-
});
|
|
2636
|
-
function searchCommand(f) {
|
|
2637
|
-
return view => {
|
|
2638
|
-
let state = view.state.field(searchState, false);
|
|
2639
|
-
return state && state.query.spec.valid ? f(view, state) : openSearchPanel(view);
|
|
2640
|
-
};
|
|
2641
|
-
}
|
|
2642
|
-
/**
|
|
2643
|
-
Open the search panel if it isn't already open, and move the
|
|
2644
|
-
selection to the first match after the current main selection.
|
|
2645
|
-
Will wrap around to the start of the document when it reaches the
|
|
2646
|
-
end.
|
|
2647
|
-
*/
|
|
2648
|
-
const findNext = /*@__PURE__*/searchCommand((view, {
|
|
2649
|
-
query
|
|
2650
|
-
}) => {
|
|
2651
|
-
let {
|
|
2652
|
-
to
|
|
2653
|
-
} = view.state.selection.main;
|
|
2654
|
-
let next = query.nextMatch(view.state, to, to);
|
|
2655
|
-
if (!next) return false;
|
|
2656
|
-
view.dispatch({
|
|
2657
|
-
selection: {
|
|
2658
|
-
anchor: next.from,
|
|
2659
|
-
head: next.to
|
|
2660
|
-
},
|
|
2661
|
-
scrollIntoView: true,
|
|
2662
|
-
effects: announceMatch(view, next),
|
|
2663
|
-
userEvent: "select.search"
|
|
2664
|
-
});
|
|
2665
|
-
return true;
|
|
2666
|
-
});
|
|
2667
|
-
/**
|
|
2668
|
-
Move the selection to the previous instance of the search query,
|
|
2669
|
-
before the current main selection. Will wrap past the start
|
|
2670
|
-
of the document to start searching at the end again.
|
|
2671
|
-
*/
|
|
2672
|
-
const findPrevious = /*@__PURE__*/searchCommand((view, {
|
|
2673
|
-
query
|
|
2674
|
-
}) => {
|
|
2675
|
-
let {
|
|
2676
|
-
state
|
|
2677
|
-
} = view,
|
|
2678
|
-
{
|
|
2679
|
-
from
|
|
2680
|
-
} = state.selection.main;
|
|
2681
|
-
let range = query.prevMatch(state, from, from);
|
|
2682
|
-
if (!range) return false;
|
|
2683
|
-
view.dispatch({
|
|
2684
|
-
selection: {
|
|
2685
|
-
anchor: range.from,
|
|
2686
|
-
head: range.to
|
|
2687
|
-
},
|
|
2688
|
-
scrollIntoView: true,
|
|
2689
|
-
effects: announceMatch(view, range),
|
|
2690
|
-
userEvent: "select.search"
|
|
2691
|
-
});
|
|
2692
|
-
return true;
|
|
2693
|
-
});
|
|
2694
|
-
/**
|
|
2695
|
-
Select all instances of the search query.
|
|
2696
|
-
*/
|
|
2697
|
-
const selectMatches = /*@__PURE__*/searchCommand((view, {
|
|
2698
|
-
query
|
|
2699
|
-
}) => {
|
|
2700
|
-
let ranges = query.matchAll(view.state, 1000);
|
|
2701
|
-
if (!ranges || !ranges.length) return false;
|
|
2702
|
-
view.dispatch({
|
|
2703
|
-
selection: EditorSelection.create(ranges.map(r => EditorSelection.range(r.from, r.to))),
|
|
2704
|
-
userEvent: "select.search.matches"
|
|
2705
|
-
});
|
|
2706
|
-
return true;
|
|
2707
|
-
});
|
|
2708
|
-
/**
|
|
2709
|
-
Select all instances of the currently selected text.
|
|
2710
|
-
*/
|
|
2711
|
-
const selectSelectionMatches = ({
|
|
2712
|
-
state,
|
|
2713
|
-
dispatch
|
|
2714
|
-
}) => {
|
|
2715
|
-
let sel = state.selection;
|
|
2716
|
-
if (sel.ranges.length > 1 || sel.main.empty) return false;
|
|
2717
|
-
let {
|
|
2718
|
-
from,
|
|
2719
|
-
to
|
|
2720
|
-
} = sel.main;
|
|
2721
|
-
let ranges = [],
|
|
2722
|
-
main = 0;
|
|
2723
|
-
for (let cur = new SearchCursor(state.doc, state.sliceDoc(from, to)); !cur.next().done;) {
|
|
2724
|
-
if (ranges.length > 1000) return false;
|
|
2725
|
-
if (cur.value.from == from) main = ranges.length;
|
|
2726
|
-
ranges.push(EditorSelection.range(cur.value.from, cur.value.to));
|
|
2727
|
-
}
|
|
2728
|
-
dispatch(state.update({
|
|
2729
|
-
selection: EditorSelection.create(ranges, main),
|
|
2730
|
-
userEvent: "select.search.matches"
|
|
2731
|
-
}));
|
|
2732
|
-
return true;
|
|
2733
|
-
};
|
|
2734
|
-
/**
|
|
2735
|
-
Replace the current match of the search query.
|
|
2736
|
-
*/
|
|
2737
|
-
const replaceNext = /*@__PURE__*/searchCommand((view, {
|
|
2738
|
-
query
|
|
2739
|
-
}) => {
|
|
2740
|
-
let {
|
|
2741
|
-
state
|
|
2742
|
-
} = view,
|
|
2743
|
-
{
|
|
2744
|
-
from,
|
|
2745
|
-
to
|
|
2746
|
-
} = state.selection.main;
|
|
2747
|
-
if (state.readOnly) return false;
|
|
2748
|
-
let next = query.nextMatch(state, from, from);
|
|
2749
|
-
if (!next) return false;
|
|
2750
|
-
let changes = [],
|
|
2751
|
-
selection,
|
|
2752
|
-
replacement;
|
|
2753
|
-
let announce = [];
|
|
2754
|
-
if (next.from == from && next.to == to) {
|
|
2755
|
-
replacement = state.toText(query.getReplacement(next));
|
|
2756
|
-
changes.push({
|
|
2757
|
-
from: next.from,
|
|
2758
|
-
to: next.to,
|
|
2759
|
-
insert: replacement
|
|
2760
|
-
});
|
|
2761
|
-
next = query.nextMatch(state, next.from, next.to);
|
|
2762
|
-
announce.push(EditorView.announce.of(state.phrase("replaced match on line $", state.doc.lineAt(from).number) + "."));
|
|
2763
|
-
}
|
|
2764
|
-
if (next) {
|
|
2765
|
-
let off = changes.length == 0 || changes[0].from >= next.to ? 0 : next.to - next.from - replacement.length;
|
|
2766
|
-
selection = {
|
|
2767
|
-
anchor: next.from - off,
|
|
2768
|
-
head: next.to - off
|
|
2769
|
-
};
|
|
2770
|
-
announce.push(announceMatch(view, next));
|
|
2771
|
-
}
|
|
2772
|
-
view.dispatch({
|
|
2773
|
-
changes,
|
|
2774
|
-
selection,
|
|
2775
|
-
scrollIntoView: !!selection,
|
|
2776
|
-
effects: announce,
|
|
2777
|
-
userEvent: "input.replace"
|
|
2778
|
-
});
|
|
2779
|
-
return true;
|
|
2780
|
-
});
|
|
2781
|
-
/**
|
|
2782
|
-
Replace all instances of the search query with the given
|
|
2783
|
-
replacement.
|
|
2784
|
-
*/
|
|
2785
|
-
const replaceAll = /*@__PURE__*/searchCommand((view, {
|
|
2786
|
-
query
|
|
2787
|
-
}) => {
|
|
2788
|
-
if (view.state.readOnly) return false;
|
|
2789
|
-
let changes = query.matchAll(view.state, 1e9).map(match => {
|
|
2790
|
-
let {
|
|
2791
|
-
from,
|
|
2792
|
-
to
|
|
2793
|
-
} = match;
|
|
2794
|
-
return {
|
|
2795
|
-
from,
|
|
2796
|
-
to,
|
|
2797
|
-
insert: query.getReplacement(match)
|
|
2798
|
-
};
|
|
2799
|
-
});
|
|
2800
|
-
if (!changes.length) return false;
|
|
2801
|
-
let announceText = view.state.phrase("replaced $ matches", changes.length) + ".";
|
|
2802
|
-
view.dispatch({
|
|
2803
|
-
changes,
|
|
2804
|
-
effects: EditorView.announce.of(announceText),
|
|
2805
|
-
userEvent: "input.replace.all"
|
|
2806
|
-
});
|
|
2807
|
-
return true;
|
|
2808
|
-
});
|
|
2809
|
-
function createSearchPanel(view) {
|
|
2810
|
-
return view.state.facet(searchConfigFacet).createPanel(view);
|
|
2811
|
-
}
|
|
2812
|
-
function defaultQuery(state, fallback) {
|
|
2813
|
-
var _a, _b, _c, _d;
|
|
2814
|
-
let sel = state.selection.main;
|
|
2815
|
-
let selText = sel.empty || sel.to > sel.from + 100 ? "" : state.sliceDoc(sel.from, sel.to);
|
|
2816
|
-
if (fallback && !selText) return fallback;
|
|
2817
|
-
let config = state.facet(searchConfigFacet);
|
|
2818
|
-
return new SearchQuery({
|
|
2819
|
-
search: ((_a = fallback === null || fallback === void 0 ? void 0 : fallback.literal) !== null && _a !== void 0 ? _a : config.literal) ? selText : selText.replace(/\n/g, "\\n"),
|
|
2820
|
-
caseSensitive: (_b = fallback === null || fallback === void 0 ? void 0 : fallback.caseSensitive) !== null && _b !== void 0 ? _b : config.caseSensitive,
|
|
2821
|
-
literal: (_c = fallback === null || fallback === void 0 ? void 0 : fallback.literal) !== null && _c !== void 0 ? _c : config.literal,
|
|
2822
|
-
wholeWord: (_d = fallback === null || fallback === void 0 ? void 0 : fallback.wholeWord) !== null && _d !== void 0 ? _d : config.wholeWord
|
|
2823
|
-
});
|
|
2824
|
-
}
|
|
2825
|
-
/**
|
|
2826
|
-
Make sure the search panel is open and focused.
|
|
2827
|
-
*/
|
|
2828
|
-
const openSearchPanel = view => {
|
|
2829
|
-
let state = view.state.field(searchState, false);
|
|
2830
|
-
if (state && state.panel) {
|
|
2831
|
-
let panel = getPanel(view, createSearchPanel);
|
|
2832
|
-
if (!panel) return false;
|
|
2833
|
-
let searchInput = panel.dom.querySelector("[main-field]");
|
|
2834
|
-
if (searchInput && searchInput != view.root.activeElement) {
|
|
2835
|
-
let query = defaultQuery(view.state, state.query.spec);
|
|
2836
|
-
if (query.valid) view.dispatch({
|
|
2837
|
-
effects: setSearchQuery.of(query)
|
|
2838
|
-
});
|
|
2839
|
-
searchInput.focus();
|
|
2840
|
-
searchInput.select();
|
|
2841
|
-
}
|
|
2842
|
-
} else {
|
|
2843
|
-
view.dispatch({
|
|
2844
|
-
effects: [togglePanel$1.of(true), state ? setSearchQuery.of(defaultQuery(view.state, state.query.spec)) : StateEffect.appendConfig.of(searchExtensions)]
|
|
2845
|
-
});
|
|
2846
|
-
}
|
|
2847
|
-
return true;
|
|
2848
|
-
};
|
|
2849
|
-
/**
|
|
2850
|
-
Close the search panel.
|
|
2851
|
-
*/
|
|
2852
|
-
const closeSearchPanel = view => {
|
|
2853
|
-
let state = view.state.field(searchState, false);
|
|
2854
|
-
if (!state || !state.panel) return false;
|
|
2855
|
-
let panel = getPanel(view, createSearchPanel);
|
|
2856
|
-
if (panel && panel.dom.contains(view.root.activeElement)) view.focus();
|
|
2857
|
-
view.dispatch({
|
|
2858
|
-
effects: togglePanel$1.of(false)
|
|
2859
|
-
});
|
|
2860
|
-
return true;
|
|
2861
|
-
};
|
|
2862
|
-
/**
|
|
2863
|
-
Default search-related key bindings.
|
|
2864
|
-
|
|
2865
|
-
- Mod-f: [`openSearchPanel`](https://codemirror.net/6/docs/ref/#search.openSearchPanel)
|
|
2866
|
-
- F3, Mod-g: [`findNext`](https://codemirror.net/6/docs/ref/#search.findNext)
|
|
2867
|
-
- Shift-F3, Shift-Mod-g: [`findPrevious`](https://codemirror.net/6/docs/ref/#search.findPrevious)
|
|
2868
|
-
- Alt-g: [`gotoLine`](https://codemirror.net/6/docs/ref/#search.gotoLine)
|
|
2869
|
-
- Mod-d: [`selectNextOccurrence`](https://codemirror.net/6/docs/ref/#search.selectNextOccurrence)
|
|
2870
|
-
*/
|
|
2871
|
-
const searchKeymap = [{
|
|
2872
|
-
key: "Mod-f",
|
|
2873
|
-
run: openSearchPanel,
|
|
2874
|
-
scope: "editor search-panel"
|
|
2875
|
-
}, {
|
|
2876
|
-
key: "F3",
|
|
2877
|
-
run: findNext,
|
|
2878
|
-
shift: findPrevious,
|
|
2879
|
-
scope: "editor search-panel",
|
|
2880
|
-
preventDefault: true
|
|
2881
|
-
}, {
|
|
2882
|
-
key: "Mod-g",
|
|
2883
|
-
run: findNext,
|
|
2884
|
-
shift: findPrevious,
|
|
2885
|
-
scope: "editor search-panel",
|
|
2886
|
-
preventDefault: true
|
|
2887
|
-
}, {
|
|
2888
|
-
key: "Escape",
|
|
2889
|
-
run: closeSearchPanel,
|
|
2890
|
-
scope: "editor search-panel"
|
|
2891
|
-
}, {
|
|
2892
|
-
key: "Mod-Shift-l",
|
|
2893
|
-
run: selectSelectionMatches
|
|
2894
|
-
}, {
|
|
2895
|
-
key: "Alt-g",
|
|
2896
|
-
run: gotoLine
|
|
2897
|
-
}, {
|
|
2898
|
-
key: "Mod-d",
|
|
2899
|
-
run: selectNextOccurrence,
|
|
2900
|
-
preventDefault: true
|
|
2901
|
-
}];
|
|
2902
|
-
class SearchPanel {
|
|
2903
|
-
constructor(view) {
|
|
2904
|
-
this.view = view;
|
|
2905
|
-
let query = this.query = view.state.field(searchState).query.spec;
|
|
2906
|
-
this.commit = this.commit.bind(this);
|
|
2907
|
-
this.searchField = crelt("input", {
|
|
2908
|
-
value: query.search,
|
|
2909
|
-
placeholder: phrase(view, "Find"),
|
|
2910
|
-
"aria-label": phrase(view, "Find"),
|
|
2911
|
-
class: "cm-textfield",
|
|
2912
|
-
name: "search",
|
|
2913
|
-
form: "",
|
|
2914
|
-
"main-field": "true",
|
|
2915
|
-
onchange: this.commit,
|
|
2916
|
-
onkeyup: this.commit
|
|
2917
|
-
});
|
|
2918
|
-
this.replaceField = crelt("input", {
|
|
2919
|
-
value: query.replace,
|
|
2920
|
-
placeholder: phrase(view, "Replace"),
|
|
2921
|
-
"aria-label": phrase(view, "Replace"),
|
|
2922
|
-
class: "cm-textfield",
|
|
2923
|
-
name: "replace",
|
|
2924
|
-
form: "",
|
|
2925
|
-
onchange: this.commit,
|
|
2926
|
-
onkeyup: this.commit
|
|
2927
|
-
});
|
|
2928
|
-
this.caseField = crelt("input", {
|
|
2929
|
-
type: "checkbox",
|
|
2930
|
-
name: "case",
|
|
2931
|
-
form: "",
|
|
2932
|
-
checked: query.caseSensitive,
|
|
2933
|
-
onchange: this.commit
|
|
2934
|
-
});
|
|
2935
|
-
this.reField = crelt("input", {
|
|
2936
|
-
type: "checkbox",
|
|
2937
|
-
name: "re",
|
|
2938
|
-
form: "",
|
|
2939
|
-
checked: query.regexp,
|
|
2940
|
-
onchange: this.commit
|
|
2941
|
-
});
|
|
2942
|
-
this.wordField = crelt("input", {
|
|
2943
|
-
type: "checkbox",
|
|
2944
|
-
name: "word",
|
|
2945
|
-
form: "",
|
|
2946
|
-
checked: query.wholeWord,
|
|
2947
|
-
onchange: this.commit
|
|
2948
|
-
});
|
|
2949
|
-
function button(name, onclick, content) {
|
|
2950
|
-
return crelt("button", {
|
|
2951
|
-
class: "cm-button",
|
|
2952
|
-
name,
|
|
2953
|
-
onclick,
|
|
2954
|
-
type: "button"
|
|
2955
|
-
}, content);
|
|
2956
|
-
}
|
|
2957
|
-
this.dom = crelt("div", {
|
|
2958
|
-
onkeydown: e => this.keydown(e),
|
|
2959
|
-
class: "cm-search"
|
|
2960
|
-
}, [this.searchField, button("next", () => findNext(view), [phrase(view, "next")]), button("prev", () => findPrevious(view), [phrase(view, "previous")]), button("select", () => selectMatches(view), [phrase(view, "all")]), crelt("label", null, [this.caseField, phrase(view, "match case")]), crelt("label", null, [this.reField, phrase(view, "regexp")]), crelt("label", null, [this.wordField, phrase(view, "by word")]), ...(view.state.readOnly ? [] : [crelt("br"), this.replaceField, button("replace", () => replaceNext(view), [phrase(view, "replace")]), button("replaceAll", () => replaceAll(view), [phrase(view, "replace all")])]), crelt("button", {
|
|
2961
|
-
name: "close",
|
|
2962
|
-
onclick: () => closeSearchPanel(view),
|
|
2963
|
-
"aria-label": phrase(view, "close"),
|
|
2964
|
-
type: "button"
|
|
2965
|
-
}, ["×"])]);
|
|
2966
|
-
}
|
|
2967
|
-
commit() {
|
|
2968
|
-
let query = new SearchQuery({
|
|
2969
|
-
search: this.searchField.value,
|
|
2970
|
-
caseSensitive: this.caseField.checked,
|
|
2971
|
-
regexp: this.reField.checked,
|
|
2972
|
-
wholeWord: this.wordField.checked,
|
|
2973
|
-
replace: this.replaceField.value
|
|
2974
|
-
});
|
|
2975
|
-
if (!query.eq(this.query)) {
|
|
2976
|
-
this.query = query;
|
|
2977
|
-
this.view.dispatch({
|
|
2978
|
-
effects: setSearchQuery.of(query)
|
|
2979
|
-
});
|
|
2980
|
-
}
|
|
2981
|
-
}
|
|
2982
|
-
keydown(e) {
|
|
2983
|
-
if (runScopeHandlers(this.view, e, "search-panel")) {
|
|
2984
|
-
e.preventDefault();
|
|
2985
|
-
} else if (e.keyCode == 13 && e.target == this.searchField) {
|
|
2986
|
-
e.preventDefault();
|
|
2987
|
-
(e.shiftKey ? findPrevious : findNext)(this.view);
|
|
2988
|
-
} else if (e.keyCode == 13 && e.target == this.replaceField) {
|
|
2989
|
-
e.preventDefault();
|
|
2990
|
-
replaceNext(this.view);
|
|
2991
|
-
}
|
|
2992
|
-
}
|
|
2993
|
-
update(update) {
|
|
2994
|
-
for (let tr of update.transactions) for (let effect of tr.effects) {
|
|
2995
|
-
if (effect.is(setSearchQuery) && !effect.value.eq(this.query)) this.setQuery(effect.value);
|
|
2996
|
-
}
|
|
2997
|
-
}
|
|
2998
|
-
setQuery(query) {
|
|
2999
|
-
this.query = query;
|
|
3000
|
-
this.searchField.value = query.search;
|
|
3001
|
-
this.replaceField.value = query.replace;
|
|
3002
|
-
this.caseField.checked = query.caseSensitive;
|
|
3003
|
-
this.reField.checked = query.regexp;
|
|
3004
|
-
this.wordField.checked = query.wholeWord;
|
|
3005
|
-
}
|
|
3006
|
-
mount() {
|
|
3007
|
-
this.searchField.select();
|
|
3008
|
-
}
|
|
3009
|
-
get pos() {
|
|
3010
|
-
return 80;
|
|
3011
|
-
}
|
|
3012
|
-
get top() {
|
|
3013
|
-
return this.view.state.facet(searchConfigFacet).top;
|
|
3014
|
-
}
|
|
3015
|
-
}
|
|
3016
|
-
function phrase(view, phrase) {
|
|
3017
|
-
return view.state.phrase(phrase);
|
|
3018
|
-
}
|
|
3019
|
-
const AnnounceMargin = 30;
|
|
3020
|
-
const Break = /[\s\.,:;?!]/;
|
|
3021
|
-
function announceMatch(view, {
|
|
3022
|
-
from,
|
|
3023
|
-
to
|
|
3024
|
-
}) {
|
|
3025
|
-
let line = view.state.doc.lineAt(from),
|
|
3026
|
-
lineEnd = view.state.doc.lineAt(to).to;
|
|
3027
|
-
let start = Math.max(line.from, from - AnnounceMargin),
|
|
3028
|
-
end = Math.min(lineEnd, to + AnnounceMargin);
|
|
3029
|
-
let text = view.state.sliceDoc(start, end);
|
|
3030
|
-
if (start != line.from) {
|
|
3031
|
-
for (let i = 0; i < AnnounceMargin; i++) if (!Break.test(text[i + 1]) && Break.test(text[i])) {
|
|
3032
|
-
text = text.slice(i);
|
|
3033
|
-
break;
|
|
3034
|
-
}
|
|
3035
|
-
}
|
|
3036
|
-
if (end != lineEnd) {
|
|
3037
|
-
for (let i = text.length - 1; i > text.length - AnnounceMargin; i--) if (!Break.test(text[i - 1]) && Break.test(text[i])) {
|
|
3038
|
-
text = text.slice(0, i);
|
|
3039
|
-
break;
|
|
3040
|
-
}
|
|
3041
|
-
}
|
|
3042
|
-
return EditorView.announce.of(`${view.state.phrase("current match")}. ${text} ${view.state.phrase("on line")} ${line.number}.`);
|
|
3043
|
-
}
|
|
3044
|
-
const baseTheme$2 = /*@__PURE__*/EditorView.baseTheme({
|
|
3045
|
-
".cm-panel.cm-search": {
|
|
3046
|
-
padding: "2px 6px 4px",
|
|
3047
|
-
position: "relative",
|
|
3048
|
-
"& [name=close]": {
|
|
3049
|
-
position: "absolute",
|
|
3050
|
-
top: "0",
|
|
3051
|
-
right: "4px",
|
|
3052
|
-
backgroundColor: "inherit",
|
|
3053
|
-
border: "none",
|
|
3054
|
-
font: "inherit",
|
|
3055
|
-
padding: 0,
|
|
3056
|
-
margin: 0
|
|
3057
|
-
},
|
|
3058
|
-
"& input, & button, & label": {
|
|
3059
|
-
margin: ".2em .6em .2em 0"
|
|
3060
|
-
},
|
|
3061
|
-
"& input[type=checkbox]": {
|
|
3062
|
-
marginRight: ".2em"
|
|
3063
|
-
},
|
|
3064
|
-
"& label": {
|
|
3065
|
-
fontSize: "80%",
|
|
3066
|
-
whiteSpace: "pre"
|
|
3067
|
-
}
|
|
3068
|
-
},
|
|
3069
|
-
"&light .cm-searchMatch": {
|
|
3070
|
-
backgroundColor: "#ffff0054"
|
|
3071
|
-
},
|
|
3072
|
-
"&dark .cm-searchMatch": {
|
|
3073
|
-
backgroundColor: "#00ffff8a"
|
|
3074
|
-
},
|
|
3075
|
-
"&light .cm-searchMatch-selected": {
|
|
3076
|
-
backgroundColor: "#ff6a0054"
|
|
3077
|
-
},
|
|
3078
|
-
"&dark .cm-searchMatch-selected": {
|
|
3079
|
-
backgroundColor: "#ff00ff8a"
|
|
3080
|
-
}
|
|
3081
|
-
});
|
|
3082
|
-
const searchExtensions = [searchState, /*@__PURE__*/Prec.lowest(searchHighlighter), baseTheme$2];
|
|
3083
|
-
|
|
3084
|
-
class SelectedDiagnostic {
|
|
3085
|
-
constructor(from, to, diagnostic) {
|
|
3086
|
-
this.from = from;
|
|
3087
|
-
this.to = to;
|
|
3088
|
-
this.diagnostic = diagnostic;
|
|
3089
|
-
}
|
|
3090
|
-
}
|
|
3091
|
-
class LintState {
|
|
3092
|
-
constructor(diagnostics, panel, selected) {
|
|
3093
|
-
this.diagnostics = diagnostics;
|
|
3094
|
-
this.panel = panel;
|
|
3095
|
-
this.selected = selected;
|
|
3096
|
-
}
|
|
3097
|
-
static init(diagnostics, panel, state) {
|
|
3098
|
-
// Filter the list of diagnostics for which to create markers
|
|
3099
|
-
let markedDiagnostics = diagnostics;
|
|
3100
|
-
let diagnosticFilter = state.facet(lintConfig).markerFilter;
|
|
3101
|
-
if (diagnosticFilter) markedDiagnostics = diagnosticFilter(markedDiagnostics);
|
|
3102
|
-
let ranges = Decoration.set(markedDiagnostics.map(d => {
|
|
3103
|
-
// For zero-length ranges or ranges covering only a line break, create a widget
|
|
3104
|
-
return d.from == d.to || d.from == d.to - 1 && state.doc.lineAt(d.from).to == d.from ? Decoration.widget({
|
|
3105
|
-
widget: new DiagnosticWidget(d),
|
|
3106
|
-
diagnostic: d
|
|
3107
|
-
}).range(d.from) : Decoration.mark({
|
|
3108
|
-
attributes: {
|
|
3109
|
-
class: "cm-lintRange cm-lintRange-" + d.severity
|
|
3110
|
-
},
|
|
3111
|
-
diagnostic: d
|
|
3112
|
-
}).range(d.from, d.to);
|
|
3113
|
-
}), true);
|
|
3114
|
-
return new LintState(ranges, panel, findDiagnostic(ranges));
|
|
3115
|
-
}
|
|
3116
|
-
}
|
|
3117
|
-
function findDiagnostic(diagnostics, diagnostic = null, after = 0) {
|
|
3118
|
-
let found = null;
|
|
3119
|
-
diagnostics.between(after, 1e9, (from, to, {
|
|
3120
|
-
spec
|
|
3121
|
-
}) => {
|
|
3122
|
-
if (diagnostic && spec.diagnostic != diagnostic) return;
|
|
3123
|
-
found = new SelectedDiagnostic(from, to, spec.diagnostic);
|
|
3124
|
-
return false;
|
|
3125
|
-
});
|
|
3126
|
-
return found;
|
|
3127
|
-
}
|
|
3128
|
-
function hideTooltip(tr, tooltip) {
|
|
3129
|
-
return !!(tr.effects.some(e => e.is(setDiagnosticsEffect)) || tr.changes.touchesRange(tooltip.pos));
|
|
3130
|
-
}
|
|
3131
|
-
function maybeEnableLint(state, effects) {
|
|
3132
|
-
return state.field(lintState, false) ? effects : effects.concat(StateEffect.appendConfig.of([lintState, EditorView.decorations.compute([lintState], state => {
|
|
3133
|
-
let {
|
|
3134
|
-
selected,
|
|
3135
|
-
panel
|
|
3136
|
-
} = state.field(lintState);
|
|
3137
|
-
return !selected || !panel || selected.from == selected.to ? Decoration.none : Decoration.set([activeMark.range(selected.from, selected.to)]);
|
|
3138
|
-
}), hoverTooltip(lintTooltip, {
|
|
3139
|
-
hideOn: hideTooltip
|
|
3140
|
-
}), baseTheme]));
|
|
3141
|
-
}
|
|
3142
|
-
/**
|
|
3143
|
-
Returns a transaction spec which updates the current set of
|
|
3144
|
-
diagnostics, and enables the lint extension if if wasn't already
|
|
3145
|
-
active.
|
|
3146
|
-
*/
|
|
3147
|
-
function setDiagnostics(state, diagnostics) {
|
|
3148
|
-
return {
|
|
3149
|
-
effects: maybeEnableLint(state, [setDiagnosticsEffect.of(diagnostics)])
|
|
3150
|
-
};
|
|
3151
|
-
}
|
|
3152
|
-
/**
|
|
3153
|
-
The state effect that updates the set of active diagnostics. Can
|
|
3154
|
-
be useful when writing an extension that needs to track these.
|
|
3155
|
-
*/
|
|
3156
|
-
const setDiagnosticsEffect = /*@__PURE__*/StateEffect.define();
|
|
3157
|
-
const togglePanel = /*@__PURE__*/StateEffect.define();
|
|
3158
|
-
const movePanelSelection = /*@__PURE__*/StateEffect.define();
|
|
3159
|
-
const lintState = /*@__PURE__*/StateField.define({
|
|
3160
|
-
create() {
|
|
3161
|
-
return new LintState(Decoration.none, null, null);
|
|
3162
|
-
},
|
|
3163
|
-
update(value, tr) {
|
|
3164
|
-
if (tr.docChanged) {
|
|
3165
|
-
let mapped = value.diagnostics.map(tr.changes),
|
|
3166
|
-
selected = null;
|
|
3167
|
-
if (value.selected) {
|
|
3168
|
-
let selPos = tr.changes.mapPos(value.selected.from, 1);
|
|
3169
|
-
selected = findDiagnostic(mapped, value.selected.diagnostic, selPos) || findDiagnostic(mapped, null, selPos);
|
|
3170
|
-
}
|
|
3171
|
-
value = new LintState(mapped, value.panel, selected);
|
|
3172
|
-
}
|
|
3173
|
-
for (let effect of tr.effects) {
|
|
3174
|
-
if (effect.is(setDiagnosticsEffect)) {
|
|
3175
|
-
value = LintState.init(effect.value, value.panel, tr.state);
|
|
3176
|
-
} else if (effect.is(togglePanel)) {
|
|
3177
|
-
value = new LintState(value.diagnostics, effect.value ? LintPanel.open : null, value.selected);
|
|
3178
|
-
} else if (effect.is(movePanelSelection)) {
|
|
3179
|
-
value = new LintState(value.diagnostics, value.panel, effect.value);
|
|
3180
|
-
}
|
|
3181
|
-
}
|
|
3182
|
-
return value;
|
|
3183
|
-
},
|
|
3184
|
-
provide: f => [showPanel.from(f, val => val.panel), EditorView.decorations.from(f, s => s.diagnostics)]
|
|
3185
|
-
});
|
|
3186
|
-
const activeMark = /*@__PURE__*/Decoration.mark({
|
|
3187
|
-
class: "cm-lintRange cm-lintRange-active"
|
|
3188
|
-
});
|
|
3189
|
-
function lintTooltip(view, pos, side) {
|
|
3190
|
-
let {
|
|
3191
|
-
diagnostics
|
|
3192
|
-
} = view.state.field(lintState);
|
|
3193
|
-
let found = [],
|
|
3194
|
-
stackStart = 2e8,
|
|
3195
|
-
stackEnd = 0;
|
|
3196
|
-
diagnostics.between(pos - (side < 0 ? 1 : 0), pos + (side > 0 ? 1 : 0), (from, to, {
|
|
3197
|
-
spec
|
|
3198
|
-
}) => {
|
|
3199
|
-
if (pos >= from && pos <= to && (from == to || (pos > from || side > 0) && (pos < to || side < 0))) {
|
|
3200
|
-
found.push(spec.diagnostic);
|
|
3201
|
-
stackStart = Math.min(from, stackStart);
|
|
3202
|
-
stackEnd = Math.max(to, stackEnd);
|
|
3203
|
-
}
|
|
3204
|
-
});
|
|
3205
|
-
let diagnosticFilter = view.state.facet(lintConfig).tooltipFilter;
|
|
3206
|
-
if (diagnosticFilter) found = diagnosticFilter(found);
|
|
3207
|
-
if (!found.length) return null;
|
|
3208
|
-
return {
|
|
3209
|
-
pos: stackStart,
|
|
3210
|
-
end: stackEnd,
|
|
3211
|
-
above: view.state.doc.lineAt(stackStart).to < stackEnd,
|
|
3212
|
-
create() {
|
|
3213
|
-
return {
|
|
3214
|
-
dom: diagnosticsTooltip(view, found)
|
|
3215
|
-
};
|
|
3216
|
-
}
|
|
3217
|
-
};
|
|
3218
|
-
}
|
|
3219
|
-
function diagnosticsTooltip(view, diagnostics) {
|
|
3220
|
-
return crelt("ul", {
|
|
3221
|
-
class: "cm-tooltip-lint"
|
|
3222
|
-
}, diagnostics.map(d => renderDiagnostic(view, d, false)));
|
|
3223
|
-
}
|
|
3224
|
-
/**
|
|
3225
|
-
Command to open and focus the lint panel.
|
|
3226
|
-
*/
|
|
3227
|
-
const openLintPanel = view => {
|
|
3228
|
-
let field = view.state.field(lintState, false);
|
|
3229
|
-
if (!field || !field.panel) view.dispatch({
|
|
3230
|
-
effects: maybeEnableLint(view.state, [togglePanel.of(true)])
|
|
3231
|
-
});
|
|
3232
|
-
let panel = getPanel(view, LintPanel.open);
|
|
3233
|
-
if (panel) panel.dom.querySelector(".cm-panel-lint ul").focus();
|
|
3234
|
-
return true;
|
|
3235
|
-
};
|
|
3236
|
-
/**
|
|
3237
|
-
Command to close the lint panel, when open.
|
|
3238
|
-
*/
|
|
3239
|
-
const closeLintPanel = view => {
|
|
3240
|
-
let field = view.state.field(lintState, false);
|
|
3241
|
-
if (!field || !field.panel) return false;
|
|
3242
|
-
view.dispatch({
|
|
3243
|
-
effects: togglePanel.of(false)
|
|
3244
|
-
});
|
|
3245
|
-
return true;
|
|
3246
|
-
};
|
|
3247
|
-
/**
|
|
3248
|
-
Move the selection to the next diagnostic.
|
|
3249
|
-
*/
|
|
3250
|
-
const nextDiagnostic = view => {
|
|
3251
|
-
let field = view.state.field(lintState, false);
|
|
3252
|
-
if (!field) return false;
|
|
3253
|
-
let sel = view.state.selection.main,
|
|
3254
|
-
next = field.diagnostics.iter(sel.to + 1);
|
|
3255
|
-
if (!next.value) {
|
|
3256
|
-
next = field.diagnostics.iter(0);
|
|
3257
|
-
if (!next.value || next.from == sel.from && next.to == sel.to) return false;
|
|
3258
|
-
}
|
|
3259
|
-
view.dispatch({
|
|
3260
|
-
selection: {
|
|
3261
|
-
anchor: next.from,
|
|
3262
|
-
head: next.to
|
|
3263
|
-
},
|
|
3264
|
-
scrollIntoView: true
|
|
3265
|
-
});
|
|
3266
|
-
return true;
|
|
3267
|
-
};
|
|
3268
|
-
/**
|
|
3269
|
-
A set of default key bindings for the lint functionality.
|
|
3270
|
-
|
|
3271
|
-
- Ctrl-Shift-m (Cmd-Shift-m on macOS): [`openLintPanel`](https://codemirror.net/6/docs/ref/#lint.openLintPanel)
|
|
3272
|
-
- F8: [`nextDiagnostic`](https://codemirror.net/6/docs/ref/#lint.nextDiagnostic)
|
|
3273
|
-
*/
|
|
3274
|
-
const lintKeymap = [{
|
|
3275
|
-
key: "Mod-Shift-m",
|
|
3276
|
-
run: openLintPanel,
|
|
3277
|
-
preventDefault: true
|
|
3278
|
-
}, {
|
|
3279
|
-
key: "F8",
|
|
3280
|
-
run: nextDiagnostic
|
|
3281
|
-
}];
|
|
3282
|
-
const lintPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {
|
|
3283
|
-
constructor(view) {
|
|
3284
|
-
this.view = view;
|
|
3285
|
-
this.timeout = -1;
|
|
3286
|
-
this.set = true;
|
|
3287
|
-
let {
|
|
3288
|
-
delay
|
|
3289
|
-
} = view.state.facet(lintConfig);
|
|
3290
|
-
this.lintTime = Date.now() + delay;
|
|
3291
|
-
this.run = this.run.bind(this);
|
|
3292
|
-
this.timeout = setTimeout(this.run, delay);
|
|
3293
|
-
}
|
|
3294
|
-
run() {
|
|
3295
|
-
let now = Date.now();
|
|
3296
|
-
if (now < this.lintTime - 10) {
|
|
3297
|
-
setTimeout(this.run, this.lintTime - now);
|
|
3298
|
-
} else {
|
|
3299
|
-
this.set = false;
|
|
3300
|
-
let {
|
|
3301
|
-
state
|
|
3302
|
-
} = this.view,
|
|
3303
|
-
{
|
|
3304
|
-
sources
|
|
3305
|
-
} = state.facet(lintConfig);
|
|
3306
|
-
Promise.all(sources.map(source => Promise.resolve(source(this.view)))).then(annotations => {
|
|
3307
|
-
let all = annotations.reduce((a, b) => a.concat(b));
|
|
3308
|
-
if (this.view.state.doc == state.doc) this.view.dispatch(setDiagnostics(this.view.state, all));
|
|
3309
|
-
}, error => {
|
|
3310
|
-
logException(this.view.state, error);
|
|
3311
|
-
});
|
|
3312
|
-
}
|
|
3313
|
-
}
|
|
3314
|
-
update(update) {
|
|
3315
|
-
let config = update.state.facet(lintConfig);
|
|
3316
|
-
if (update.docChanged || config != update.startState.facet(lintConfig)) {
|
|
3317
|
-
this.lintTime = Date.now() + config.delay;
|
|
3318
|
-
if (!this.set) {
|
|
3319
|
-
this.set = true;
|
|
3320
|
-
this.timeout = setTimeout(this.run, config.delay);
|
|
3321
|
-
}
|
|
3322
|
-
}
|
|
3323
|
-
}
|
|
3324
|
-
force() {
|
|
3325
|
-
if (this.set) {
|
|
3326
|
-
this.lintTime = Date.now();
|
|
3327
|
-
this.run();
|
|
3328
|
-
}
|
|
3329
|
-
}
|
|
3330
|
-
destroy() {
|
|
3331
|
-
clearTimeout(this.timeout);
|
|
3332
|
-
}
|
|
3333
|
-
});
|
|
3334
|
-
const lintConfig = /*@__PURE__*/Facet.define({
|
|
3335
|
-
combine(input) {
|
|
3336
|
-
return Object.assign({
|
|
3337
|
-
sources: input.map(i => i.source)
|
|
3338
|
-
}, combineConfig(input.map(i => i.config), {
|
|
3339
|
-
delay: 750,
|
|
3340
|
-
markerFilter: null,
|
|
3341
|
-
tooltipFilter: null
|
|
3342
|
-
}));
|
|
3343
|
-
},
|
|
3344
|
-
enables: lintPlugin
|
|
3345
|
-
});
|
|
3346
|
-
function assignKeys(actions) {
|
|
3347
|
-
let assigned = [];
|
|
3348
|
-
if (actions) actions: for (let {
|
|
3349
|
-
name
|
|
3350
|
-
} of actions) {
|
|
3351
|
-
for (let i = 0; i < name.length; i++) {
|
|
3352
|
-
let ch = name[i];
|
|
3353
|
-
if (/[a-zA-Z]/.test(ch) && !assigned.some(c => c.toLowerCase() == ch.toLowerCase())) {
|
|
3354
|
-
assigned.push(ch);
|
|
3355
|
-
continue actions;
|
|
3356
|
-
}
|
|
3357
|
-
}
|
|
3358
|
-
assigned.push("");
|
|
3359
|
-
}
|
|
3360
|
-
return assigned;
|
|
3361
|
-
}
|
|
3362
|
-
function renderDiagnostic(view, diagnostic, inPanel) {
|
|
3363
|
-
var _a;
|
|
3364
|
-
let keys = inPanel ? assignKeys(diagnostic.actions) : [];
|
|
3365
|
-
return crelt("li", {
|
|
3366
|
-
class: "cm-diagnostic cm-diagnostic-" + diagnostic.severity
|
|
3367
|
-
}, crelt("span", {
|
|
3368
|
-
class: "cm-diagnosticText"
|
|
3369
|
-
}, diagnostic.renderMessage ? diagnostic.renderMessage() : diagnostic.message), (_a = diagnostic.actions) === null || _a === void 0 ? void 0 : _a.map((action, i) => {
|
|
3370
|
-
let click = e => {
|
|
3371
|
-
e.preventDefault();
|
|
3372
|
-
let found = findDiagnostic(view.state.field(lintState).diagnostics, diagnostic);
|
|
3373
|
-
if (found) action.apply(view, found.from, found.to);
|
|
3374
|
-
};
|
|
3375
|
-
let {
|
|
3376
|
-
name
|
|
3377
|
-
} = action,
|
|
3378
|
-
keyIndex = keys[i] ? name.indexOf(keys[i]) : -1;
|
|
3379
|
-
let nameElt = keyIndex < 0 ? name : [name.slice(0, keyIndex), crelt("u", name.slice(keyIndex, keyIndex + 1)), name.slice(keyIndex + 1)];
|
|
3380
|
-
return crelt("button", {
|
|
3381
|
-
type: "button",
|
|
3382
|
-
class: "cm-diagnosticAction",
|
|
3383
|
-
onclick: click,
|
|
3384
|
-
onmousedown: click,
|
|
3385
|
-
"aria-label": ` Action: ${name}${keyIndex < 0 ? "" : ` (access key "${keys[i]})"`}.`
|
|
3386
|
-
}, nameElt);
|
|
3387
|
-
}), diagnostic.source && crelt("div", {
|
|
3388
|
-
class: "cm-diagnosticSource"
|
|
3389
|
-
}, diagnostic.source));
|
|
3390
|
-
}
|
|
3391
|
-
class DiagnosticWidget extends WidgetType {
|
|
3392
|
-
constructor(diagnostic) {
|
|
3393
|
-
super();
|
|
3394
|
-
this.diagnostic = diagnostic;
|
|
3395
|
-
}
|
|
3396
|
-
eq(other) {
|
|
3397
|
-
return other.diagnostic == this.diagnostic;
|
|
3398
|
-
}
|
|
3399
|
-
toDOM() {
|
|
3400
|
-
return crelt("span", {
|
|
3401
|
-
class: "cm-lintPoint cm-lintPoint-" + this.diagnostic.severity
|
|
3402
|
-
});
|
|
3403
|
-
}
|
|
3404
|
-
}
|
|
3405
|
-
class PanelItem {
|
|
3406
|
-
constructor(view, diagnostic) {
|
|
3407
|
-
this.diagnostic = diagnostic;
|
|
3408
|
-
this.id = "item_" + Math.floor(Math.random() * 0xffffffff).toString(16);
|
|
3409
|
-
this.dom = renderDiagnostic(view, diagnostic, true);
|
|
3410
|
-
this.dom.id = this.id;
|
|
3411
|
-
this.dom.setAttribute("role", "option");
|
|
3412
|
-
}
|
|
3413
|
-
}
|
|
3414
|
-
class LintPanel {
|
|
3415
|
-
constructor(view) {
|
|
3416
|
-
this.view = view;
|
|
3417
|
-
this.items = [];
|
|
3418
|
-
let onkeydown = event => {
|
|
3419
|
-
if (event.keyCode == 27) {
|
|
3420
|
-
// Escape
|
|
3421
|
-
closeLintPanel(this.view);
|
|
3422
|
-
this.view.focus();
|
|
3423
|
-
} else if (event.keyCode == 38 || event.keyCode == 33) {
|
|
3424
|
-
// ArrowUp, PageUp
|
|
3425
|
-
this.moveSelection((this.selectedIndex - 1 + this.items.length) % this.items.length);
|
|
3426
|
-
} else if (event.keyCode == 40 || event.keyCode == 34) {
|
|
3427
|
-
// ArrowDown, PageDown
|
|
3428
|
-
this.moveSelection((this.selectedIndex + 1) % this.items.length);
|
|
3429
|
-
} else if (event.keyCode == 36) {
|
|
3430
|
-
// Home
|
|
3431
|
-
this.moveSelection(0);
|
|
3432
|
-
} else if (event.keyCode == 35) {
|
|
3433
|
-
// End
|
|
3434
|
-
this.moveSelection(this.items.length - 1);
|
|
3435
|
-
} else if (event.keyCode == 13) {
|
|
3436
|
-
// Enter
|
|
3437
|
-
this.view.focus();
|
|
3438
|
-
} else if (event.keyCode >= 65 && event.keyCode <= 90 && this.selectedIndex >= 0) {
|
|
3439
|
-
// A-Z
|
|
3440
|
-
let {
|
|
3441
|
-
diagnostic
|
|
3442
|
-
} = this.items[this.selectedIndex],
|
|
3443
|
-
keys = assignKeys(diagnostic.actions);
|
|
3444
|
-
for (let i = 0; i < keys.length; i++) if (keys[i].toUpperCase().charCodeAt(0) == event.keyCode) {
|
|
3445
|
-
let found = findDiagnostic(this.view.state.field(lintState).diagnostics, diagnostic);
|
|
3446
|
-
if (found) diagnostic.actions[i].apply(view, found.from, found.to);
|
|
3447
|
-
}
|
|
3448
|
-
} else {
|
|
3449
|
-
return;
|
|
3450
|
-
}
|
|
3451
|
-
event.preventDefault();
|
|
3452
|
-
};
|
|
3453
|
-
let onclick = event => {
|
|
3454
|
-
for (let i = 0; i < this.items.length; i++) {
|
|
3455
|
-
if (this.items[i].dom.contains(event.target)) this.moveSelection(i);
|
|
3456
|
-
}
|
|
3457
|
-
};
|
|
3458
|
-
this.list = crelt("ul", {
|
|
3459
|
-
tabIndex: 0,
|
|
3460
|
-
role: "listbox",
|
|
3461
|
-
"aria-label": this.view.state.phrase("Diagnostics"),
|
|
3462
|
-
onkeydown,
|
|
3463
|
-
onclick
|
|
3464
|
-
});
|
|
3465
|
-
this.dom = crelt("div", {
|
|
3466
|
-
class: "cm-panel-lint"
|
|
3467
|
-
}, this.list, crelt("button", {
|
|
3468
|
-
type: "button",
|
|
3469
|
-
name: "close",
|
|
3470
|
-
"aria-label": this.view.state.phrase("close"),
|
|
3471
|
-
onclick: () => closeLintPanel(this.view)
|
|
3472
|
-
}, "×"));
|
|
3473
|
-
this.update();
|
|
3474
|
-
}
|
|
3475
|
-
get selectedIndex() {
|
|
3476
|
-
let selected = this.view.state.field(lintState).selected;
|
|
3477
|
-
if (!selected) return -1;
|
|
3478
|
-
for (let i = 0; i < this.items.length; i++) if (this.items[i].diagnostic == selected.diagnostic) return i;
|
|
3479
|
-
return -1;
|
|
3480
|
-
}
|
|
3481
|
-
update() {
|
|
3482
|
-
let {
|
|
3483
|
-
diagnostics,
|
|
3484
|
-
selected
|
|
3485
|
-
} = this.view.state.field(lintState);
|
|
3486
|
-
let i = 0,
|
|
3487
|
-
needsSync = false,
|
|
3488
|
-
newSelectedItem = null;
|
|
3489
|
-
diagnostics.between(0, this.view.state.doc.length, (_start, _end, {
|
|
3490
|
-
spec
|
|
3491
|
-
}) => {
|
|
3492
|
-
let found = -1,
|
|
3493
|
-
item;
|
|
3494
|
-
for (let j = i; j < this.items.length; j++) if (this.items[j].diagnostic == spec.diagnostic) {
|
|
3495
|
-
found = j;
|
|
3496
|
-
break;
|
|
3497
|
-
}
|
|
3498
|
-
if (found < 0) {
|
|
3499
|
-
item = new PanelItem(this.view, spec.diagnostic);
|
|
3500
|
-
this.items.splice(i, 0, item);
|
|
3501
|
-
needsSync = true;
|
|
3502
|
-
} else {
|
|
3503
|
-
item = this.items[found];
|
|
3504
|
-
if (found > i) {
|
|
3505
|
-
this.items.splice(i, found - i);
|
|
3506
|
-
needsSync = true;
|
|
3507
|
-
}
|
|
3508
|
-
}
|
|
3509
|
-
if (selected && item.diagnostic == selected.diagnostic) {
|
|
3510
|
-
if (!item.dom.hasAttribute("aria-selected")) {
|
|
3511
|
-
item.dom.setAttribute("aria-selected", "true");
|
|
3512
|
-
newSelectedItem = item;
|
|
3513
|
-
}
|
|
3514
|
-
} else if (item.dom.hasAttribute("aria-selected")) {
|
|
3515
|
-
item.dom.removeAttribute("aria-selected");
|
|
3516
|
-
}
|
|
3517
|
-
i++;
|
|
3518
|
-
});
|
|
3519
|
-
while (i < this.items.length && !(this.items.length == 1 && this.items[0].diagnostic.from < 0)) {
|
|
3520
|
-
needsSync = true;
|
|
3521
|
-
this.items.pop();
|
|
3522
|
-
}
|
|
3523
|
-
if (this.items.length == 0) {
|
|
3524
|
-
this.items.push(new PanelItem(this.view, {
|
|
3525
|
-
from: -1,
|
|
3526
|
-
to: -1,
|
|
3527
|
-
severity: "info",
|
|
3528
|
-
message: this.view.state.phrase("No diagnostics")
|
|
3529
|
-
}));
|
|
3530
|
-
needsSync = true;
|
|
3531
|
-
}
|
|
3532
|
-
if (newSelectedItem) {
|
|
3533
|
-
this.list.setAttribute("aria-activedescendant", newSelectedItem.id);
|
|
3534
|
-
this.view.requestMeasure({
|
|
3535
|
-
key: this,
|
|
3536
|
-
read: () => ({
|
|
3537
|
-
sel: newSelectedItem.dom.getBoundingClientRect(),
|
|
3538
|
-
panel: this.list.getBoundingClientRect()
|
|
3539
|
-
}),
|
|
3540
|
-
write: ({
|
|
3541
|
-
sel,
|
|
3542
|
-
panel
|
|
3543
|
-
}) => {
|
|
3544
|
-
if (sel.top < panel.top) this.list.scrollTop -= panel.top - sel.top;else if (sel.bottom > panel.bottom) this.list.scrollTop += sel.bottom - panel.bottom;
|
|
3545
|
-
}
|
|
3546
|
-
});
|
|
3547
|
-
} else if (this.selectedIndex < 0) {
|
|
3548
|
-
this.list.removeAttribute("aria-activedescendant");
|
|
3549
|
-
}
|
|
3550
|
-
if (needsSync) this.sync();
|
|
3551
|
-
}
|
|
3552
|
-
sync() {
|
|
3553
|
-
let domPos = this.list.firstChild;
|
|
3554
|
-
function rm() {
|
|
3555
|
-
let prev = domPos;
|
|
3556
|
-
domPos = prev.nextSibling;
|
|
3557
|
-
prev.remove();
|
|
3558
|
-
}
|
|
3559
|
-
for (let item of this.items) {
|
|
3560
|
-
if (item.dom.parentNode == this.list) {
|
|
3561
|
-
while (domPos != item.dom) rm();
|
|
3562
|
-
domPos = item.dom.nextSibling;
|
|
3563
|
-
} else {
|
|
3564
|
-
this.list.insertBefore(item.dom, domPos);
|
|
3565
|
-
}
|
|
3566
|
-
}
|
|
3567
|
-
while (domPos) rm();
|
|
3568
|
-
}
|
|
3569
|
-
moveSelection(selectedIndex) {
|
|
3570
|
-
if (this.selectedIndex < 0) return;
|
|
3571
|
-
let field = this.view.state.field(lintState);
|
|
3572
|
-
let selection = findDiagnostic(field.diagnostics, this.items[selectedIndex].diagnostic);
|
|
3573
|
-
if (!selection) return;
|
|
3574
|
-
this.view.dispatch({
|
|
3575
|
-
selection: {
|
|
3576
|
-
anchor: selection.from,
|
|
3577
|
-
head: selection.to
|
|
3578
|
-
},
|
|
3579
|
-
scrollIntoView: true,
|
|
3580
|
-
effects: movePanelSelection.of(selection)
|
|
3581
|
-
});
|
|
3582
|
-
}
|
|
3583
|
-
static open(view) {
|
|
3584
|
-
return new LintPanel(view);
|
|
3585
|
-
}
|
|
3586
|
-
}
|
|
3587
|
-
function svg(content, attrs = `viewBox="0 0 40 40"`) {
|
|
3588
|
-
return `url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${attrs}>${encodeURIComponent(content)}</svg>')`;
|
|
3589
|
-
}
|
|
3590
|
-
function underline(color) {
|
|
3591
|
-
return svg(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${color}" fill="none" stroke-width=".7"/>`, `width="6" height="3"`);
|
|
3592
|
-
}
|
|
3593
|
-
const baseTheme = /*@__PURE__*/EditorView.baseTheme({
|
|
3594
|
-
".cm-diagnostic": {
|
|
3595
|
-
padding: "3px 6px 3px 8px",
|
|
3596
|
-
marginLeft: "-1px",
|
|
3597
|
-
display: "block",
|
|
3598
|
-
whiteSpace: "pre-wrap"
|
|
3599
|
-
},
|
|
3600
|
-
".cm-diagnostic-error": {
|
|
3601
|
-
borderLeft: "5px solid #d11"
|
|
3602
|
-
},
|
|
3603
|
-
".cm-diagnostic-warning": {
|
|
3604
|
-
borderLeft: "5px solid orange"
|
|
3605
|
-
},
|
|
3606
|
-
".cm-diagnostic-info": {
|
|
3607
|
-
borderLeft: "5px solid #999"
|
|
3608
|
-
},
|
|
3609
|
-
".cm-diagnosticAction": {
|
|
3610
|
-
font: "inherit",
|
|
3611
|
-
border: "none",
|
|
3612
|
-
padding: "2px 4px",
|
|
3613
|
-
backgroundColor: "#444",
|
|
3614
|
-
color: "white",
|
|
3615
|
-
borderRadius: "3px",
|
|
3616
|
-
marginLeft: "8px"
|
|
3617
|
-
},
|
|
3618
|
-
".cm-diagnosticSource": {
|
|
3619
|
-
fontSize: "70%",
|
|
3620
|
-
opacity: .7
|
|
3621
|
-
},
|
|
3622
|
-
".cm-lintRange": {
|
|
3623
|
-
backgroundPosition: "left bottom",
|
|
3624
|
-
backgroundRepeat: "repeat-x",
|
|
3625
|
-
paddingBottom: "0.7px"
|
|
3626
|
-
},
|
|
3627
|
-
".cm-lintRange-error": {
|
|
3628
|
-
backgroundImage: /*@__PURE__*/underline("#d11")
|
|
3629
|
-
},
|
|
3630
|
-
".cm-lintRange-warning": {
|
|
3631
|
-
backgroundImage: /*@__PURE__*/underline("orange")
|
|
3632
|
-
},
|
|
3633
|
-
".cm-lintRange-info": {
|
|
3634
|
-
backgroundImage: /*@__PURE__*/underline("#999")
|
|
3635
|
-
},
|
|
3636
|
-
".cm-lintRange-active": {
|
|
3637
|
-
backgroundColor: "#ffdd9980"
|
|
3638
|
-
},
|
|
3639
|
-
".cm-tooltip-lint": {
|
|
3640
|
-
padding: 0,
|
|
3641
|
-
margin: 0
|
|
3642
|
-
},
|
|
3643
|
-
".cm-lintPoint": {
|
|
3644
|
-
position: "relative",
|
|
3645
|
-
"&:after": {
|
|
3646
|
-
content: '""',
|
|
3647
|
-
position: "absolute",
|
|
3648
|
-
bottom: 0,
|
|
3649
|
-
left: "-2px",
|
|
3650
|
-
borderLeft: "3px solid transparent",
|
|
3651
|
-
borderRight: "3px solid transparent",
|
|
3652
|
-
borderBottom: "4px solid #d11"
|
|
3653
|
-
}
|
|
3654
|
-
},
|
|
3655
|
-
".cm-lintPoint-warning": {
|
|
3656
|
-
"&:after": {
|
|
3657
|
-
borderBottomColor: "orange"
|
|
3658
|
-
}
|
|
3659
|
-
},
|
|
3660
|
-
".cm-lintPoint-info": {
|
|
3661
|
-
"&:after": {
|
|
3662
|
-
borderBottomColor: "#999"
|
|
3663
|
-
}
|
|
3664
|
-
},
|
|
3665
|
-
".cm-panel.cm-panel-lint": {
|
|
3666
|
-
position: "relative",
|
|
3667
|
-
"& ul": {
|
|
3668
|
-
maxHeight: "100px",
|
|
3669
|
-
overflowY: "auto",
|
|
3670
|
-
"& [aria-selected]": {
|
|
3671
|
-
backgroundColor: "#ddd",
|
|
3672
|
-
"& u": {
|
|
3673
|
-
textDecoration: "underline"
|
|
3674
|
-
}
|
|
3675
|
-
},
|
|
3676
|
-
"&:focus [aria-selected]": {
|
|
3677
|
-
background_fallback: "#bdf",
|
|
3678
|
-
backgroundColor: "Highlight",
|
|
3679
|
-
color_fallback: "white",
|
|
3680
|
-
color: "HighlightText"
|
|
3681
|
-
},
|
|
3682
|
-
"& u": {
|
|
3683
|
-
textDecoration: "none"
|
|
3684
|
-
},
|
|
3685
|
-
padding: 0,
|
|
3686
|
-
margin: 0
|
|
3687
|
-
},
|
|
3688
|
-
"& [name=close]": {
|
|
3689
|
-
position: "absolute",
|
|
3690
|
-
top: "0",
|
|
3691
|
-
right: "2px",
|
|
3692
|
-
background: "inherit",
|
|
3693
|
-
border: "none",
|
|
3694
|
-
font: "inherit",
|
|
3695
|
-
padding: 0,
|
|
3696
|
-
margin: 0
|
|
3697
|
-
}
|
|
3698
|
-
}
|
|
3699
|
-
});
|
|
3700
|
-
|
|
3701
|
-
// (The superfluous function calls around the list of extensions work
|
|
3702
|
-
// around current limitations in tree-shaking software.)
|
|
3703
|
-
/**
|
|
3704
|
-
This is an extension value that just pulls together a number of
|
|
3705
|
-
extensions that you might want in a basic editor. It is meant as a
|
|
3706
|
-
convenient helper to quickly set up CodeMirror without installing
|
|
3707
|
-
and importing a lot of separate packages.
|
|
3708
|
-
|
|
3709
|
-
Specifically, it includes...
|
|
3710
|
-
|
|
3711
|
-
- [the default command bindings](https://codemirror.net/6/docs/ref/#commands.defaultKeymap)
|
|
3712
|
-
- [line numbers](https://codemirror.net/6/docs/ref/#view.lineNumbers)
|
|
3713
|
-
- [special character highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars)
|
|
3714
|
-
- [the undo history](https://codemirror.net/6/docs/ref/#commands.history)
|
|
3715
|
-
- [a fold gutter](https://codemirror.net/6/docs/ref/#language.foldGutter)
|
|
3716
|
-
- [custom selection drawing](https://codemirror.net/6/docs/ref/#view.drawSelection)
|
|
3717
|
-
- [drop cursor](https://codemirror.net/6/docs/ref/#view.dropCursor)
|
|
3718
|
-
- [multiple selections](https://codemirror.net/6/docs/ref/#state.EditorState^allowMultipleSelections)
|
|
3719
|
-
- [reindentation on input](https://codemirror.net/6/docs/ref/#language.indentOnInput)
|
|
3720
|
-
- [the default highlight style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle) (as fallback)
|
|
3721
|
-
- [bracket matching](https://codemirror.net/6/docs/ref/#language.bracketMatching)
|
|
3722
|
-
- [bracket closing](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets)
|
|
3723
|
-
- [autocompletion](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion)
|
|
3724
|
-
- [rectangular selection](https://codemirror.net/6/docs/ref/#view.rectangularSelection) and [crosshair cursor](https://codemirror.net/6/docs/ref/#view.crosshairCursor)
|
|
3725
|
-
- [active line highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLine)
|
|
3726
|
-
- [active line gutter highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLineGutter)
|
|
3727
|
-
- [selection match highlighting](https://codemirror.net/6/docs/ref/#search.highlightSelectionMatches)
|
|
3728
|
-
- [search](https://codemirror.net/6/docs/ref/#search.searchKeymap)
|
|
3729
|
-
- [linting](https://codemirror.net/6/docs/ref/#lint.lintKeymap)
|
|
3730
|
-
|
|
3731
|
-
(You'll probably want to add some language package to your setup
|
|
3732
|
-
too.)
|
|
3733
|
-
|
|
3734
|
-
This extension does not allow customization. The idea is that,
|
|
3735
|
-
once you decide you want to configure your editor more precisely,
|
|
3736
|
-
you take this package's source (which is just a bunch of imports
|
|
3737
|
-
and an array literal), copy it into your own code, and adjust it
|
|
3738
|
-
as desired.
|
|
3739
|
-
*/
|
|
3740
|
-
const basicSetup = /*@__PURE__*/(() => [lineNumbers(), highlightActiveLineGutter(), highlightSpecialChars(), history(), foldGutter(), drawSelection(), dropCursor(), EditorState.allowMultipleSelections.of(true), indentOnInput(), syntaxHighlighting(defaultHighlightStyle, {
|
|
3741
|
-
fallback: true
|
|
3742
|
-
}), bracketMatching(), closeBrackets(), autocompletion(), rectangularSelection(), crosshairCursor(), highlightActiveLine(), highlightSelectionMatches(), keymap.of([...closeBracketsKeymap, ...defaultKeymap, ...searchKeymap, ...historyKeymap, ...foldKeymap, ...completionKeymap, ...lintKeymap])])();
|
|
3743
|
-
|
|
3744
|
-
//partially based on https://github.com/logue/vue-codemirror6/blob/master/src/components/CodeMirror.vue
|
|
3745
|
-
var script = defineComponent({
|
|
3746
|
-
name: 'OrCode',
|
|
3747
|
-
components: {
|
|
3748
|
-
OrIconButton: script$1,
|
|
3749
|
-
OrModal: script$2,
|
|
3750
|
-
OrTeleport: script$3,
|
|
3751
|
-
OrError: script$4,
|
|
3752
|
-
OrHint: script$5,
|
|
3753
|
-
OrLabel: script$6
|
|
3754
|
-
},
|
|
3755
|
-
model: {
|
|
3756
|
-
prop: 'modelValue',
|
|
3757
|
-
event: 'update:modelValue'
|
|
3758
|
-
},
|
|
3759
|
-
props: {
|
|
3760
|
-
label: {
|
|
3761
|
-
type: String,
|
|
3762
|
-
default: '',
|
|
3763
|
-
required: false
|
|
3764
|
-
},
|
|
3765
|
-
modelValue: {
|
|
3766
|
-
type: String,
|
|
3767
|
-
default: '',
|
|
3768
|
-
required: false
|
|
3769
|
-
},
|
|
3770
|
-
language: {
|
|
3771
|
-
type: [Object, String],
|
|
3772
|
-
required: false,
|
|
3773
|
-
default: OrCodeLanguages.JS
|
|
3774
|
-
},
|
|
3775
|
-
isReadonly: {
|
|
3776
|
-
type: Boolean,
|
|
3777
|
-
required: false,
|
|
3778
|
-
default: false
|
|
3779
|
-
},
|
|
3780
|
-
extensions: {
|
|
3781
|
-
type: Array,
|
|
3782
|
-
required: false,
|
|
3783
|
-
default: () => [basicSetup]
|
|
3784
|
-
},
|
|
3785
|
-
phrases: {
|
|
3786
|
-
type: Object,
|
|
3787
|
-
required: false,
|
|
3788
|
-
default: null
|
|
3789
|
-
},
|
|
3790
|
-
isShowingFullscreen: {
|
|
3791
|
-
type: Boolean,
|
|
3792
|
-
default: true,
|
|
3793
|
-
required: false
|
|
3794
|
-
},
|
|
3795
|
-
isInvalid: {
|
|
3796
|
-
type: Boolean,
|
|
3797
|
-
default: false,
|
|
3798
|
-
required: false
|
|
3799
|
-
},
|
|
3800
|
-
error: {
|
|
3801
|
-
type: String,
|
|
3802
|
-
default: '',
|
|
3803
|
-
required: false
|
|
3804
|
-
},
|
|
3805
|
-
hint: {
|
|
3806
|
-
type: String,
|
|
3807
|
-
default: '',
|
|
3808
|
-
required: false
|
|
3809
|
-
},
|
|
3810
|
-
allowPaste: {
|
|
3811
|
-
type: Boolean,
|
|
3812
|
-
default: true
|
|
3813
|
-
},
|
|
3814
|
-
allowDrop: {
|
|
3815
|
-
type: Boolean,
|
|
3816
|
-
default: true
|
|
3817
|
-
},
|
|
3818
|
-
lineWrapping: {
|
|
3819
|
-
type: Boolean,
|
|
3820
|
-
default: false
|
|
3821
|
-
}
|
|
3822
|
-
},
|
|
3823
|
-
emits: ['update:modelValue', 'focus', 'blur'],
|
|
3824
|
-
setup(props, {
|
|
3825
|
-
emit
|
|
3826
|
-
}) {
|
|
3827
|
-
// editor config
|
|
3828
|
-
const root = ref();
|
|
3829
|
-
const target = ref();
|
|
3830
|
-
const fullscreenTarget = ref();
|
|
3831
|
-
const isHovered = useElementHover(root);
|
|
3832
|
-
const editor = new EditorView({
|
|
3833
|
-
state: EditorState.create({
|
|
3834
|
-
doc: props.modelValue
|
|
3835
|
-
}),
|
|
3836
|
-
dispatch: tr => {
|
|
3837
|
-
editor.update([tr]);
|
|
3838
|
-
if (tr.changes.empty) return;
|
|
3839
|
-
emit('update:modelValue', editor.state.doc.toString());
|
|
3840
|
-
}
|
|
3841
|
-
});
|
|
3842
|
-
return {
|
|
3843
|
-
root,
|
|
3844
|
-
target,
|
|
3845
|
-
fullscreenTarget,
|
|
3846
|
-
editor,
|
|
3847
|
-
isHovered
|
|
3848
|
-
};
|
|
3849
|
-
},
|
|
3850
|
-
data() {
|
|
3851
|
-
return {
|
|
3852
|
-
isFullscreen: false
|
|
3853
|
-
};
|
|
3854
|
-
},
|
|
3855
|
-
computed: {
|
|
3856
|
-
localLanguage() {
|
|
3857
|
-
if (Object.values(OrCodeLanguages).includes(this.language)) {
|
|
3858
|
-
return languages[this.language];
|
|
3859
|
-
} else {
|
|
3860
|
-
return this.language;
|
|
3861
|
-
}
|
|
3862
|
-
},
|
|
3863
|
-
localExtensions() {
|
|
3864
|
-
const {
|
|
3865
|
-
allowDrop,
|
|
3866
|
-
allowPaste,
|
|
3867
|
-
lineWrapping,
|
|
3868
|
-
extensions
|
|
3869
|
-
} = this;
|
|
3870
|
-
let ext = [theme, EditorView.baseTheme({}),
|
|
3871
|
-
// locale settings
|
|
3872
|
-
this.phrases ? EditorState.phrases.of(this.phrases) : undefined,
|
|
3873
|
-
// Parser language setting
|
|
3874
|
-
this.localLanguage,
|
|
3875
|
-
// Editable option
|
|
3876
|
-
EditorView.editable.of(!this.isReadonly),
|
|
3877
|
-
// Focus and blur listener
|
|
3878
|
-
EditorView.updateListener.of(viewUpdate => {
|
|
3879
|
-
if (viewUpdate.focusChanged) {
|
|
3880
|
-
viewUpdate.view.hasFocus ? this.$emit('focus') : this.$emit('blur', viewUpdate.state.doc.toString());
|
|
3881
|
-
}
|
|
3882
|
-
}), EditorView.domEventHandlers({
|
|
3883
|
-
drop(event) {
|
|
3884
|
-
if (!allowDrop) {
|
|
3885
|
-
event.preventDefault();
|
|
3886
|
-
return true;
|
|
3887
|
-
}
|
|
3888
|
-
},
|
|
3889
|
-
paste(event) {
|
|
3890
|
-
if (!allowPaste) {
|
|
3891
|
-
event.preventDefault();
|
|
3892
|
-
return true;
|
|
3893
|
-
}
|
|
3894
|
-
}
|
|
3895
|
-
}),
|
|
3896
|
-
// line wrapping
|
|
3897
|
-
lineWrapping ? EditorView.lineWrapping : undefined, keymap.of([indentWithTab])];
|
|
3898
|
-
if (Array.isArray(extensions)) {
|
|
3899
|
-
ext = [...ext, ...extensions];
|
|
3900
|
-
}
|
|
3901
|
-
ext = ext.filter(Boolean);
|
|
3902
|
-
return ext;
|
|
3903
|
-
},
|
|
3904
|
-
isShowingError() {
|
|
3905
|
-
return !!this.error && this.isInvalid;
|
|
3906
|
-
},
|
|
3907
|
-
isShowingHint() {
|
|
3908
|
-
return !!this.hint && !this.isShowingError;
|
|
3909
|
-
},
|
|
3910
|
-
isShowingHeader() {
|
|
3911
|
-
var _a;
|
|
3912
|
-
return this.isShowingFullscreen || this.$slots.label || this.$slots.actions || ((_a = this.$scopedSlots) === null || _a === void 0 ? void 0 : _a.actions);
|
|
3913
|
-
}
|
|
3914
|
-
},
|
|
3915
|
-
watch: {
|
|
3916
|
-
modelValue(value) {
|
|
3917
|
-
if (this.editor.composing) return;
|
|
3918
|
-
if (this.editor.state.doc.toString() === value) return;
|
|
3919
|
-
const previous = this.editor.state.selection;
|
|
3920
|
-
this.editor.setState(EditorState.create({
|
|
3921
|
-
doc: value,
|
|
3922
|
-
extensions: this.localExtensions,
|
|
3923
|
-
selection: previous.ranges.some(range => range.to > value.length) ? {
|
|
3924
|
-
anchor: value.length
|
|
3925
|
-
} : previous
|
|
3926
|
-
}));
|
|
3927
|
-
},
|
|
3928
|
-
isFullscreen(value) {
|
|
3929
|
-
if (value) {
|
|
3930
|
-
this.fullscreenTarget.append(this.editor.dom);
|
|
3931
|
-
} else {
|
|
3932
|
-
this.target.append(this.editor.dom);
|
|
3933
|
-
}
|
|
3934
|
-
},
|
|
3935
|
-
localExtensions() {
|
|
3936
|
-
this.updateEditorState();
|
|
3937
|
-
}
|
|
3938
|
-
},
|
|
3939
|
-
mounted() {
|
|
3940
|
-
this.updateEditorState();
|
|
3941
|
-
this.target.append(this.editor.dom);
|
|
3942
|
-
},
|
|
3943
|
-
beforeUnmount() {
|
|
3944
|
-
var _a;
|
|
3945
|
-
(_a = this.editor) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
3946
|
-
},
|
|
3947
|
-
methods: {
|
|
3948
|
-
updateEditorState() {
|
|
3949
|
-
this.editor.setState(EditorState.create({
|
|
3950
|
-
doc: this.modelValue,
|
|
3951
|
-
extensions: this.localExtensions
|
|
3952
|
-
}));
|
|
3953
|
-
},
|
|
3954
|
-
toggleFullscreen(value) {
|
|
3955
|
-
this.isFullscreen = value === undefined ? !this.isFullscreen : value;
|
|
3956
|
-
}
|
|
3957
|
-
}
|
|
3958
|
-
});
|
|
3959
|
-
|
|
3960
|
-
export { script as s };
|