@onereach/ui-components 6.1.2 → 6.2.0-beta.3261.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/{v3/_baseAssignValue-22e630c1.js → v2/_baseAssignValue-2250dbc9.js} +1 -1
- package/dist/bundled/v2/{_baseIsEqual-a1cc156c.js → _baseIsEqual-fe2002b6.js} +5 -5
- package/dist/bundled/v2/_commonjsHelpers-1789f0cf.js +7 -0
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +1 -1
- package/dist/bundled/v2/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +1 -1
- package/dist/bundled/v2/components/OrCode/OrCode.js +3 -3
- package/dist/bundled/v2/components/OrCode/index.js +3 -2
- package/dist/bundled/v2/components/OrCode/lang.js +3 -2
- package/dist/bundled/v2/components/OrCode/libs.js +3 -2
- package/dist/bundled/v2/components/OrCode/theme.js +1 -1
- package/dist/bundled/v2/components/OrCodeV3/OrCode.js +5 -4
- package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +1 -1
- package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +2 -2
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +3 -3
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +3 -3
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +4 -4
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -3
- package/dist/bundled/v2/components/OrFloating/OrFloating.js +1 -1
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
- package/dist/bundled/v2/components/OrInput/OrInput.js +1 -1
- package/dist/bundled/v2/components/OrList/OrList.js +8 -8
- package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +1 -1
- package/dist/bundled/v2/components/OrModal/OrModal.js +3 -1347
- package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
- package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +1 -1
- package/dist/bundled/v2/components/OrPassword/OrPassword.js +1 -1
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +2 -2
- package/dist/bundled/v2/components/OrProgress/OrProgress.js +1 -1
- package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +2 -2
- package/dist/bundled/v2/components/OrRadio/OrRadio.js +2 -2
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2169 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +194 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +2 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +5 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +7 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +6 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +38 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +42 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +183 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +17 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +199 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +2 -0
- package/dist/bundled/v2/components/OrSearch/OrSearch.js +1 -1
- package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -1
- package/dist/bundled/v2/components/OrSelect/OrSelect.js +7 -7
- package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +1 -1
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +1 -1
- package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +1 -1
- package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +1 -1
- package/dist/bundled/v2/components/OrSlider/OrSlider.js +2 -2
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +1 -1
- package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +1 -1
- package/dist/bundled/v2/components/OrTextarea/OrTextarea.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +1 -1
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToast/OrToast.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToast/Timer.js +1 -1
- package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +1 -1
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +1 -1
- package/dist/bundled/v2/components/OrToastV3/OrToast.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToastV3/Timer.js +1 -1
- package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v2/components/OrTooltip/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTreeV3/OrTree.js +1 -1
- package/dist/bundled/v2/components/OrTreeV3/OrTree.vue.d.ts +2 -2
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +5 -2
- package/dist/bundled/{v3/dom-bb55b42a.js → v2/dom-cec392f3.js} +2 -2
- package/dist/bundled/v2/{eq-95cd2573.js → eq-44ea4d70.js} +1 -1
- package/dist/bundled/{v3/get-ab1b7d93.js → v2/get-34aa21f4.js} +3 -3
- package/dist/bundled/v2/hooks/useOverflow.js +1 -1
- package/dist/bundled/v2/hooks/usePopoverState.js +1 -1
- package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +1 -1
- package/dist/bundled/v2/{index-ec92055d.js → index-06f6bbe4.js} +1 -1
- package/dist/bundled/{v3/index-3d38888c.js → v2/index-0c287ab6.js} +2 -2
- package/dist/bundled/v2/index-1b2cfcc1.js +9715 -0
- package/dist/bundled/v2/{index-509d77a1.js → index-2b20f5f5.js} +2 -2
- package/dist/bundled/v2/{index-6617e2a7.js → index-3cae2d25.js} +2 -114
- package/dist/bundled/v2/index-3e178101.js +1817 -0
- package/dist/bundled/v2/{index-5915e78f.js → index-666dfe59.js} +70 -1882
- package/dist/bundled/v2/index-9444e0d2.js +115 -0
- package/dist/bundled/v2/{index-15e8c1f3.js → index-dac0fb7c.js} +1 -1
- package/dist/bundled/v2/{index-02646e58.js → index-de4975a3.js} +14 -3
- package/dist/bundled/v2/index-f671afe5.js +7127 -0
- package/dist/bundled/v2/index.js +7 -4
- package/dist/bundled/v2/{isArrayLike-e46b8eac.js → isArrayLike-e7fb5cae.js} +1 -1
- package/dist/bundled/v2/{isEqual-44382965.js → isEqual-7a8e6106.js} +1 -1
- package/dist/bundled/{v3/isObject-fe8b81fd.js → v2/isObject-b7415fc1.js} +1 -1
- package/dist/bundled/v2/markdown-119394e1.js +15365 -0
- package/dist/bundled/{v3/range-6f26eda4.js → v2/range-82efa3d4.js} +4 -4
- package/dist/bundled/{v3/round-f34440f4.js → v2/round-567ede34.js} +4 -4
- package/dist/bundled/{v3/toFinite-74227610.js → v2/toFinite-bc59ffb0.js} +1 -1
- package/dist/bundled/v2/{toInteger-2fd112a9.js → toInteger-9fa0151c.js} +1 -1
- package/dist/bundled/{v3/toString-f3196832.js → v2/toString-b6e4472a.js} +1 -1
- package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-089dd5fd.js → v2/useFocusTrap-d1b2c0b4.js} +4 -100
- package/dist/bundled/v2/utils/functions/dom.js +2 -2
- package/dist/bundled/v2/utils/index.js +1 -1
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-058f42b8.js → OrAvatar.vue_vue_type_script_lang-9024e842.js} +1 -1
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-4adbc880.js → OrBottomSheet.vue_vue_type_script_lang-aca902f2.js} +2 -2
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-04789919.js → OrButton.vue_vue_type_script_lang-34c69de5.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-22b24f8b.js → OrButton.vue_vue_type_script_lang-db6595f6.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-b49e1183.js → OrCardCollection.vue_vue_type_script_lang-d0d332ba.js} +3 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-084e3a6c.js → OrCardCollection.vue_vue_type_script_lang-df1b372d.js} +3 -3
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-ab56a97e.js → OrCheckbox.vue_vue_type_script_lang-2d3ae971.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-ca6ba786.js → OrCheckboxGroup.vue_vue_type_script_lang-2d4980de.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-d3ed803b.js → OrCheckboxTree.vue_vue_type_script_lang-8d9ed718.js} +2 -2
- package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-1f55d1a7.js → OrChip.vue_vue_type_script_lang-bcdb6058.js} +1 -1
- package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-be1e7c30.js → OrChips.vue_vue_type_script_lang-8f63c2f0.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-28b94dd1.js → OrCode.vue_vue_type_script_lang-5666b26f.js} +7 -6
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-dce07d9f.js → OrCode.vue_vue_type_script_lang-81ea5cf0.js} +5 -5
- package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-69503c45.js → OrCollapse.vue_vue_type_script_lang-be1c8c66.js} +1 -1
- package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-250f679e.js → OrColorPicker.vue_vue_type_script_lang-1fe11508.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-5218eed6.js → OrConfirm.vue_vue_type_script_lang-ac0a345b.js} +6 -6
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-05c54fee.js → OrConfirm.vue_vue_type_script_lang-bd01b878.js} +6 -6
- package/dist/bundled/v3/{OrContextMenu.vue_vue_type_script_lang-f9c94c76.js → OrContextMenu.vue_vue_type_script_lang-8fa8823b.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-f0c601e9.js → OrDatePicker.vue_vue_type_script_lang-f5a656f1.js} +4 -4
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-65c11848.js → OrDateTimePicker.vue_vue_type_script_lang-187e1c2b.js} +5 -5
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-3329d4d8.js → OrDateTimePicker.vue_vue_type_script_lang-1b953be7.js} +7 -7
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-3d1478af.js → OrDateTimePickerMonthSelect-12b65874.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-daa7e47b.js → OrDateTimePickerPopoverHeader-135da975.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-96c4d657.js → OrDateTimePickerTimeSelect-fe701e75.js} +1 -1
- package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-6be13add.js → OrFloating.vue_vue_type_script_lang-3fa1df9f.js} +1 -1
- package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-ac8f9d3e.js → OrIcon.vue_vue_type_script_lang-78ac61a5.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-7c9e5033.js → OrIconButton.vue_vue_type_script_lang-85f1498b.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-e6c61cfd.js → OrIconButton.vue_vue_type_script_lang-d8ff36fb.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-47e464e3.js → OrInlineInput.vue_vue_type_script_lang-709c00b7.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-c9474fbe.js → OrInlineTextEdit.vue_vue_type_script_lang-1f854f02.js} +4 -4
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-2785a182.js → OrInlineTextarea.vue_vue_type_script_lang-3db49cfa.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-caf9e3f3.js → OrInput.vue_vue_type_script_lang-28e2c7b8.js} +2 -2
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-863d3195.js → OrInput.vue_vue_type_script_lang-515ff78a.js} +2 -2
- package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-8622ae68.js → OrList.vue_vue_type_script_lang-9e670b9d.js} +11 -11
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-43cf4a6e.js → OrListOfInputs.vue_vue_type_script_lang-2705c3b7.js} +4 -4
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-0395ad21.js → OrLoader.vue_vue_type_script_lang-0ea76e45.js} +1 -1
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-fa75c5f9.js → OrMenu.vue_vue_type_script_lang-d3fd1507.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-46c6e9a0.js → OrModal.vue_vue_type_script_lang-59146f56.js} +2 -2
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-896a12c0.js +101 -0
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-e8d9e29d.js → OrNotification.vue_vue_type_script_lang-2d1d8063.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-d5cd06d6.js → OrNotification.vue_vue_type_script_lang-f7a1bedd.js} +2 -2
- package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-4cc194fc.js → OrNumberInput.vue_vue_type_script_lang-b832e611.js} +1 -1
- package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-8976c7cb.js → OrOverflowMenu.vue_vue_type_script_lang-d1162f59.js} +5 -5
- package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-2da128a3.js → OrOverlay.vue_vue_type_script_lang-2b256188.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-f203e797.js → OrPagination.vue_vue_type_script_lang-7d1fbc59.js} +2 -2
- package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-801df81f.js → OrPassword.vue_vue_type_script_lang-69655c43.js} +3 -3
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-1b2cb592.js → OrPopover.vue_vue_type_script_lang-8b17e94e.js} +3 -3
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-32e6da23.js → OrProgress.vue_vue_type_script_lang-56b4a5da.js} +2 -2
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-a99362ae.js → OrProgress.vue_vue_type_script_lang-c4bd7133.js} +1 -1
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-3a551734.js → OrRadio.vue_vue_type_script_lang-a4f043e9.js} +2 -2
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-0b0d7afe.js +1909 -0
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-db238842.js → OrSearch.vue_vue_type_script_lang-09597177.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-a1d47bfb.js → OrSearch.vue_vue_type_script_lang-ccd97657.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-6bdb35b4.js → OrSelect.vue_vue_type_script_lang-16b3f823.js} +5 -5
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-0e16c49d.js → OrSelect.vue_vue_type_script_lang-5e93d6de.js} +11 -11
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-5e39e11c.js → OrSidebar.vue_vue_type_script_lang-8c24f12e.js} +2 -2
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-81941fe6.js → OrSidebar.vue_vue_type_script_lang-bd864765.js} +1 -1
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-26b3cfd1.js → OrSkeletonText.vue_vue_type_script_lang-502607ef.js} +1 -1
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-c2a5ab96.js → OrSkeletonText.vue_vue_type_script_lang-cfe360bb.js} +1 -1
- package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-ddeb981a.js → OrSlider.vue_vue_type_script_lang-137b7a6d.js} +3 -3
- package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-a47a6c7c.js → OrSorting.vue_vue_type_script_lang-4b045a2f.js} +2 -2
- package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-35b3f789.js → OrStepper.vue_vue_type_script_lang-51a6aac8.js} +1 -1
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-a2f28112.js → OrSwitch.vue_vue_type_script_lang-fe6a5512.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-d53cdbc8.js → OrTabs.vue_vue_type_script_lang-3334d9cd.js} +2 -2
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-db85a592.js → OrTag.vue_vue_type_script_lang-36747a19.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-e3c6c3ea.js → OrTag.vue_vue_type_script_lang-4059630f.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-aad1679e.js → OrTagInput.vue_vue_type_script_lang-276c07eb.js} +2 -2
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-34c8b8ea.js → OrTags.vue_vue_type_script_lang-d2e076f1.js} +3 -3
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-325050eb.js → OrTextarea.vue_vue_type_script_lang-5624556c.js} +2 -2
- package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-12a5099f.js → OrTextbox.vue_vue_type_script_lang-fdb184f3.js} +3 -3
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-ffafa6f3.js → OrTimePicker.vue_vue_type_script_lang-c64c8efc.js} +4 -4
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-4b586b65.js → OrToastContainer.vue_vue_type_script_lang-33eb865e.js} +1 -1
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-619af0a2.js → OrToastContainer.vue_vue_type_script_lang-e66ec8a5.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-e18e400d.js → OrTooltip.vue_vue_type_script_lang-21382d48.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-d59653b0.js → OrTooltip.vue_vue_type_script_lang-5e53867b.js} +1 -1
- package/dist/bundled/v3/{OrTree.vue_vue_type_script_lang-ffd5fbc3.js → OrTree.vue_vue_type_script_lang-ce5b0577.js} +2 -2
- package/dist/bundled/{v2/_baseAssignValue-22e630c1.js → v3/_baseAssignValue-2250dbc9.js} +1 -1
- package/dist/bundled/v3/{_baseIsEqual-a1cc156c.js → _baseIsEqual-fe2002b6.js} +5 -5
- package/dist/bundled/v3/_commonjsHelpers-1789f0cf.js +7 -0
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +2 -2
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +26 -11
- package/dist/bundled/v3/components/OrAvatar/index.js +1 -1
- package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +22 -7
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +568 -25
- package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.d.ts +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +1 -1
- package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +51 -16
- package/dist/bundled/v3/components/OrButtonV2/OrButton.js +2 -2
- package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +57 -20
- package/dist/bundled/v3/components/OrButtonV2/index.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/OrButton.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +35 -15
- package/dist/bundled/v3/components/OrButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +15 -7
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +47 -21
- package/dist/bundled/v3/components/OrCardCollection/index.js +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +44 -17
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +7 -4
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +2 -2
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +35 -15
- package/dist/bundled/v3/components/OrCheckbox/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +24 -6
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +43 -17
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +53 -23
- package/dist/bundled/v3/components/OrChip/OrChip.js +2 -2
- package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +25 -9
- package/dist/bundled/v3/components/OrChip/index.js +1 -1
- package/dist/bundled/v3/components/OrChips/OrChips.js +2 -2
- package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +51 -24
- package/dist/bundled/v3/components/OrChips/index.js +2 -2
- package/dist/bundled/v3/components/OrCode/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +69 -24
- package/dist/bundled/v3/components/OrCode/index.js +4 -3
- package/dist/bundled/v3/components/OrCode/lang.js +3 -2
- package/dist/bundled/v3/components/OrCode/libs.js +3 -2
- package/dist/bundled/v3/components/OrCode/theme.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +83 -33
- package/dist/bundled/v3/components/OrCodeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +2 -2
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +39 -17
- package/dist/bundled/v3/components/OrCollapse/index.js +1 -1
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +2 -2
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +31 -13
- package/dist/bundled/v3/components/OrColorPicker/index.js +1 -1
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +30 -8
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +84 -23
- package/dist/bundled/v3/components/OrConfirm/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +91 -30
- package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +2 -2
- package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.vue.d.ts +27 -13
- package/dist/bundled/v3/components/OrContextMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +83 -88
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +177 -68
- package/dist/bundled/v3/components/OrDateTimePicker/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +109 -94
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +28 -11
- package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +8 -4
- package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +7 -4
- package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +18 -9
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +2 -2
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +39 -16
- package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +20 -8
- package/dist/bundled/v3/components/OrFloating/OrFloating.js +2 -2
- package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +46 -15
- package/dist/bundled/v3/components/OrFloating/index.js +1 -1
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +30 -10
- package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +8 -4
- package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +18 -9
- package/dist/bundled/v3/components/OrIcon/OrIcon.js +2 -2
- package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +44 -16
- package/dist/bundled/v3/components/OrIcon/index.js +1 -1
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +43 -13
- package/dist/bundled/v3/components/OrIconButtonV2/index.js +1 -1
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +54 -16
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +18 -7
- package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +16 -7
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +83 -39
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +95 -43
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +79 -39
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInput/OrInput.js +2 -2
- package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +87 -36
- package/dist/bundled/v3/components/OrInput/index.js +1 -1
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +22 -7
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +2 -2
- package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +88 -38
- package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +26 -9
- package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +24 -7
- package/dist/bundled/v3/components/OrList/OrList.js +2 -2
- package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +47 -21
- package/dist/bundled/v3/components/OrList/index.js +1 -1
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +2 -2
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +27 -11
- package/dist/bundled/v3/components/OrListOfInputs/index.js +1 -1
- package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +26 -10
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +2 -2
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +34 -13
- package/dist/bundled/v3/components/OrLoaderV3/index.js +1 -1
- package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +34 -13
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +2 -2
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +33 -15
- package/dist/bundled/v3/components/OrMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrModal/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +38 -14
- package/dist/bundled/v3/components/OrModal/index.js +1 -1
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +25 -13
- package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
- package/dist/bundled/v3/components/OrNotification/OrNotification.js +2 -2
- package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +27 -9
- package/dist/bundled/v3/components/OrNotification/index.js +1 -1
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +2 -2
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrNotificationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +2 -2
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +70 -24
- package/dist/bundled/v3/components/OrNumberInput/index.js +1 -1
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +31 -13
- package/dist/bundled/v3/components/OrOverflowMenu/index.js +1 -1
- package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +16 -6
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +14 -7
- package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +2 -2
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +75 -27
- package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPassword/OrPassword.js +2 -2
- package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +63 -22
- package/dist/bundled/v3/components/OrPassword/index.js +1 -1
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +2 -2
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +78 -25
- package/dist/bundled/v3/components/OrPopoverV3/index.js +1 -1
- package/dist/bundled/v3/components/OrProgress/OrProgress.js +2 -2
- package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +56 -20
- package/dist/bundled/v3/components/OrProgress/index.js +1 -1
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +2 -2
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +62 -25
- package/dist/bundled/v3/components/OrProgressV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRadio/OrRadio.js +2 -2
- package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +35 -13
- package/dist/bundled/v3/components/OrRadio/index.js +1 -1
- package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +26 -9
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +32 -6
- package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +49 -21
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +202 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +194 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +2 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +5 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +7 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +6 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +38 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +42 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +183 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +17 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +199 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +2 -0
- package/dist/bundled/v3/components/OrSearch/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +65 -23
- package/dist/bundled/v3/components/OrSearch/index.js +1 -1
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +41 -17
- package/dist/bundled/v3/components/OrSearchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +25 -9
- package/dist/bundled/v3/components/OrSelect/OrSelect.js +2 -2
- package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +77 -28
- package/dist/bundled/v3/components/OrSelect/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -2
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +133 -44
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +33 -14
- package/dist/bundled/v3/components/OrSidebar/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +63 -28
- package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeleton/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +28 -13
- package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +22 -9
- package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +26 -11
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +2 -2
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +26 -10
- package/dist/bundled/v3/components/OrSkeletonText/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +2 -2
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +40 -16
- package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeletonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSlider/OrSlider.js +2 -2
- package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +91 -35
- package/dist/bundled/v3/components/OrSlider/index.js +1 -1
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +2 -2
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.vue.d.ts +45 -13
- package/dist/bundled/v3/components/OrSortingV3/index.js +1 -1
- package/dist/bundled/v3/components/OrStepper/OrStepper.js +2 -2
- package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +43 -16
- package/dist/bundled/v3/components/OrStepper/index.js +1 -1
- package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +33 -12
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +2 -2
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +53 -22
- package/dist/bundled/v3/components/OrSwitchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +22 -9
- package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +29 -13
- package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +17 -10
- package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +17 -4
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +73 -26
- package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTag/OrTag.js +2 -2
- package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +27 -10
- package/dist/bundled/v3/components/OrTag/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +2 -2
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +85 -37
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +2 -2
- package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +23 -12
- package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +2 -2
- package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +68 -23
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +24 -11
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +2 -2
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +85 -37
- package/dist/bundled/v3/components/OrTextarea/index.js +1 -1
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +73 -32
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +2 -2
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +137 -55
- package/dist/bundled/v3/components/OrTextbox/index.js +1 -1
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +83 -88
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToast/OrToast.js +2 -2
- package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +31 -11
- package/dist/bundled/v3/components/OrToast/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToast/index.js +1 -1
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +55 -25
- package/dist/bundled/v3/components/OrToastContainer/index.js +1 -1
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +54 -24
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +38 -16
- package/dist/bundled/v3/components/OrToastV3/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +2 -2
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +33 -14
- package/dist/bundled/v3/components/OrTooltip/index.js +1 -1
- package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +2 -2
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +33 -15
- package/dist/bundled/v3/components/OrTooltipV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTreeV3/OrTree.js +2 -2
- package/dist/bundled/v3/components/OrTreeV3/OrTree.vue.d.ts +19 -13
- package/dist/bundled/v3/components/OrTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +78 -75
- package/dist/bundled/v3/directives/dropdown-close.d.ts +1 -3
- package/dist/bundled/v3/directives/dropdown-open.d.ts +1 -3
- package/dist/bundled/{v2/dom-bb55b42a.js → v3/dom-cec392f3.js} +2 -2
- package/dist/bundled/v3/{eq-95cd2573.js → eq-44ea4d70.js} +1 -1
- package/dist/bundled/{v2/get-ab1b7d93.js → v3/get-34aa21f4.js} +3 -3
- package/dist/bundled/v3/hooks/useOverflow.js +1 -1
- package/dist/bundled/v3/hooks/usePopoverState.js +1 -1
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +1 -1
- package/dist/bundled/v3/{index-929e224a.js → index-0a01982b.js} +2 -2
- package/dist/bundled/{v2/index-3d38888c.js → v3/index-0c287ab6.js} +2 -2
- package/dist/bundled/v3/index-1b2cfcc1.js +9715 -0
- package/dist/bundled/v3/{index-6617e2a7.js → index-3cae2d25.js} +2 -114
- package/dist/bundled/v3/index-3e178101.js +1817 -0
- package/dist/bundled/v3/{index-f4d8e24c.js → index-40b35d94.js} +1 -1
- package/dist/bundled/v3/{index-5915e78f.js → index-666dfe59.js} +70 -1882
- package/dist/bundled/v3/{index-500b3ace.js → index-749f3444.js} +1 -1
- package/dist/bundled/v3/index-9444e0d2.js +115 -0
- package/dist/bundled/v3/{index-02646e58.js → index-de4975a3.js} +14 -3
- package/dist/bundled/v3/index-f671afe5.js +7127 -0
- package/dist/bundled/v3/index.js +81 -77
- package/dist/bundled/v3/{isArrayLike-e46b8eac.js → isArrayLike-e7fb5cae.js} +1 -1
- package/dist/bundled/v3/{isEqual-44382965.js → isEqual-7a8e6106.js} +1 -1
- package/dist/bundled/{v2/isObject-fe8b81fd.js → v3/isObject-b7415fc1.js} +1 -1
- package/dist/bundled/v3/markdown-119394e1.js +15365 -0
- package/dist/bundled/{v2/range-6f26eda4.js → v3/range-82efa3d4.js} +4 -4
- package/dist/bundled/{v2/round-f34440f4.js → v3/round-567ede34.js} +4 -4
- package/dist/bundled/{v2/toFinite-74227610.js → v3/toFinite-bc59ffb0.js} +1 -1
- package/dist/bundled/v3/{toInteger-2fd112a9.js → toInteger-9fa0151c.js} +1 -1
- package/dist/bundled/{v2/toString-f3196832.js → v3/toString-b6e4472a.js} +1 -1
- package/dist/bundled/v3/useFocusTrap-2302b843.js +1349 -0
- package/dist/bundled/v3/utils/functions/dom.js +2 -2
- package/dist/bundled/v3/utils/index.js +1 -1
- package/dist/esm/v2/OrRichTextEditor-ade23e24.js +980 -0
- package/dist/esm/v2/codemirrorView-020fe885.js +357 -0
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +23 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +194 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +66 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +5 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -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 +9 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +17 -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-text-v3/OrText.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textarea/OrTextarea.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textbox/OrTextbox.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast/OrToast.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tree-v3/OrTree.vue.d.ts +2 -2
- package/dist/esm/v2/index.js +23 -0
- package/dist/esm/v3/OrRichTextEditor-d59ba053.js +912 -0
- package/dist/esm/v3/codemirrorView-020fe885.js +357 -0
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +23 -0
- package/dist/esm/v3/components/or-avatar/OrAvatar.vue.d.ts +26 -11
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +22 -7
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +568 -25
- package/dist/esm/v3/components/or-bottom-sheet-v3/hooks/useBottomSheetSwipeState.d.ts +1 -1
- package/dist/esm/v3/components/or-button/OrButton.vue.d.ts +51 -16
- package/dist/esm/v3/components/or-button-v2/OrButton.vue.d.ts +57 -20
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +35 -15
- package/dist/esm/v3/components/or-card/OrCard.vue.d.ts +15 -7
- package/dist/esm/v3/components/or-card-collection/OrCardCollection.vue.d.ts +47 -21
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +44 -17
- package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +14 -6
- package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-checkbox/OrCheckbox.vue.d.ts +35 -15
- package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +24 -6
- package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +43 -17
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +53 -23
- package/dist/esm/v3/components/or-chips/OrChips.vue.d.ts +51 -24
- package/dist/esm/v3/components/or-chips/or-chip/OrChip.vue.d.ts +25 -9
- package/dist/esm/v3/components/or-chips/partials/OrChipsInput.vue.d.ts +37 -17
- package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +69 -24
- package/dist/esm/v3/components/or-code-v3/OrCode.vue.d.ts +83 -33
- package/dist/esm/v3/components/or-collapse/OrCollapse.vue.d.ts +39 -17
- package/dist/esm/v3/components/or-color-picker/OrColorPicker.vue.d.ts +31 -13
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +30 -8
- package/dist/esm/v3/components/or-confirm/OrConfirm.vue.d.ts +84 -23
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +91 -30
- package/dist/esm/v3/components/or-context-menu-v3/OrContextMenu.vue.d.ts +27 -13
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +83 -88
- package/dist/esm/v3/components/or-date-time-picker/OrDateTimePicker.vue.d.ts +177 -68
- package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +33 -12
- package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +109 -94
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +39 -17
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +15 -7
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +85 -23
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +17 -9
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +30 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +43 -17
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-error/OrError.vue.d.ts +8 -4
- package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +18 -9
- package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +39 -16
- package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +20 -8
- package/dist/esm/v3/components/or-floating/OrFloating.vue.d.ts +46 -15
- package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +30 -10
- package/dist/esm/v3/components/or-hint/OrHint.vue.d.ts +8 -4
- package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +18 -9
- package/dist/esm/v3/components/or-icon/OrIcon.vue.d.ts +44 -16
- package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +43 -13
- package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +10 -8
- package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +54 -16
- package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +18 -7
- package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +16 -7
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +83 -39
- package/dist/esm/v3/components/or-inline-text-edit/OrInlineTextEdit.vue.d.ts +95 -43
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +79 -39
- package/dist/esm/v3/components/or-input/OrInput.vue.d.ts +87 -36
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +22 -7
- package/dist/esm/v3/components/or-input-box-v3/partials/or-input-box-addon/OrInputBoxAddon.vue.d.ts +18 -7
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +88 -38
- package/dist/esm/v3/components/or-label/OrLabel.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +26 -9
- package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +24 -7
- package/dist/esm/v3/components/or-list/OrList.vue.d.ts +47 -21
- package/dist/esm/v3/components/or-list-of-inputs/OrListOfInputs.vue.d.ts +27 -11
- package/dist/esm/v3/components/or-loader/OrLoader.vue.d.ts +26 -10
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +34 -13
- package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +34 -13
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +33 -15
- package/dist/esm/v3/components/or-modal/OrModal.vue.d.ts +38 -14
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +25 -13
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +11 -6
- package/dist/esm/v3/components/or-notification/OrNotification.vue.d.ts +27 -9
- package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-number-input/OrNumberInput.vue.d.ts +70 -24
- package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenu.vue.d.ts +31 -13
- package/dist/esm/v3/components/or-overflow-menu/partials/OrOverflowMenuItem.vue.d.ts +23 -7
- package/dist/esm/v3/components/or-overlay/OrOverlay.vue.d.ts +16 -6
- package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +14 -7
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +75 -27
- package/dist/esm/v3/components/or-password/OrPassword.vue.d.ts +63 -22
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +78 -25
- package/dist/esm/v3/components/or-progress/OrProgress.vue.d.ts +56 -20
- package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +62 -25
- package/dist/esm/v3/components/or-radio/OrRadio.vue.d.ts +35 -13
- package/dist/esm/v3/components/or-radio-group/OrRadioGroup.vue.d.ts +26 -9
- package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +32 -6
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +49 -21
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +194 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +64 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +5 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -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 +9 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +17 -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/OrSearch.vue.d.ts +65 -23
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +41 -17
- package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +25 -9
- package/dist/esm/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +20 -8
- package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +77 -28
- package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +49 -18
- package/dist/esm/v3/components/or-select/partials/OrSelectContentEmpty.vue.d.ts +16 -4
- package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +67 -13
- package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +41 -16
- package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +35 -16
- package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +71 -24
- package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +19 -7
- package/dist/esm/v3/components/or-select/partials/OrSelectSearchOptions.vue.d.ts +24 -11
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +133 -44
- package/dist/esm/v3/components/or-select-v3/partials/or-select-placeholder/OrSelectPlaceholder.vue.d.ts +14 -7
- package/dist/esm/v3/components/or-sidebar/OrSidebar.vue.d.ts +33 -14
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +63 -28
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +23 -10
- package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue.d.ts +22 -9
- package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +26 -10
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +28 -13
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +26 -11
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +40 -16
- package/dist/esm/v3/components/or-slider/OrSlider.vue.d.ts +91 -35
- package/dist/esm/v3/components/or-sorting-v3/OrSorting.vue.d.ts +45 -13
- package/dist/esm/v3/components/or-stepper/OrStepper.vue.d.ts +43 -16
- package/dist/esm/v3/components/or-stepper/partials/OrStepperButtonOptions.vue.d.ts +20 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionHorizontal.vue.d.ts +26 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionVertical.vue.d.ts +26 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperTitle.vue.d.ts +22 -6
- package/dist/esm/v3/components/or-stepper/partials/StatusIcon.vue.d.ts +12 -6
- package/dist/esm/v3/components/or-switch/OrSwitch.vue.d.ts +33 -12
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +53 -22
- package/dist/esm/v3/components/or-tab/OrTab.vue.d.ts +22 -9
- package/dist/esm/v3/components/or-tab-header-item/OrTabHeaderItem.vue.d.ts +29 -13
- package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +17 -10
- package/dist/esm/v3/components/or-tabs/OrTabs.vue.d.ts +17 -4
- package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +73 -26
- package/dist/esm/v3/components/or-tag/OrTag.vue.d.ts +27 -10
- package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +85 -37
- package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +23 -12
- package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +68 -23
- package/dist/esm/v3/components/or-teleport/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +24 -11
- package/dist/esm/v3/components/or-textarea/OrTextarea.vue.d.ts +85 -37
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +73 -32
- package/dist/esm/v3/components/or-textbox/OrTextbox.vue.d.ts +137 -55
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +83 -88
- package/dist/esm/v3/components/or-toast/OrToast.vue.d.ts +31 -11
- package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +55 -25
- package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +38 -16
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +54 -24
- package/dist/esm/v3/components/or-tooltip/OrTooltip.vue.d.ts +33 -14
- package/dist/esm/v3/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +33 -15
- package/dist/esm/v3/components/or-tree-v3/OrTree.vue.d.ts +19 -13
- package/dist/esm/v3/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +63 -31
- package/dist/esm/v3/directives/dropdown-close.d.ts +1 -3
- package/dist/esm/v3/directives/dropdown-open.d.ts +1 -3
- package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/esm/v3/index.js +23 -0
- package/package.json +23 -5
- package/src/components/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +743 -0
- package/src/components/or-rich-text-editor-v3/index.ts +2 -0
- package/src/components/or-rich-text-editor-v3/props.ts +6 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +53 -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 +254 -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/theme.ts +238 -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 +172 -0
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-31a5687d.js → OrDateTimePickerMonthSelect-cc8c2a84.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-2c7e113b.js → OrDateTimePickerPopoverHeader-146c2f16.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-7fd83e23.js → OrDateTimePickerTimeSelect-7286977a.js} +0 -0
- /package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-de05b51f.js → OrExpansionPanel.vue_vue_type_script_lang-94976ae9.js} +0 -0
|
@@ -0,0 +1,1817 @@
|
|
|
1
|
+
import { L as LRParser, C as ContextTracker, E as ExternalTokenizer, t as typescriptLanguage, e as jsxLanguage, f as tsxLanguage, g as javascriptLanguage, j as javascript } from './index-666dfe59.js';
|
|
2
|
+
import { ab as styleTags, ac as tags$1, ad as LanguageSupport, ae as LRLanguage, af as indentNodeProp, ag as continuedIndent, aj as foldNodeProp, ak as foldInside, ao as parseMixed, s as syntaxTree, aa as IterMode, an as NodeWeakMap, E as EditorView, b as EditorSelection, ap as bracketMatchingHandle } from './index-3cae2d25.js';
|
|
3
|
+
|
|
4
|
+
const jsonHighlighting = styleTags({
|
|
5
|
+
String: tags$1.string,
|
|
6
|
+
Number: tags$1.number,
|
|
7
|
+
"True False": tags$1.bool,
|
|
8
|
+
PropertyName: tags$1.propertyName,
|
|
9
|
+
Null: tags$1.null,
|
|
10
|
+
",": tags$1.separator,
|
|
11
|
+
"[ ]": tags$1.squareBracket,
|
|
12
|
+
"{ }": tags$1.brace
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
16
|
+
const parser$2 = LRParser.deserialize({
|
|
17
|
+
version: 14,
|
|
18
|
+
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",
|
|
19
|
+
stateData: "#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",
|
|
20
|
+
goto: "!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
|
|
21
|
+
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",
|
|
22
|
+
maxTerm: 25,
|
|
23
|
+
nodeProps: [["openedBy", 7, "{", 12, "["], ["closedBy", 8, "}", 13, "]"]],
|
|
24
|
+
propSources: [jsonHighlighting],
|
|
25
|
+
skippedNodes: [0],
|
|
26
|
+
repeatNodeCount: 2,
|
|
27
|
+
tokenData: "(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",
|
|
28
|
+
tokenizers: [0],
|
|
29
|
+
topRules: {
|
|
30
|
+
"JsonText": [0, 1]
|
|
31
|
+
},
|
|
32
|
+
tokenPrec: 0
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
Calls
|
|
37
|
+
[`JSON.parse`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse)
|
|
38
|
+
on the document and, if that throws an error, reports it as a
|
|
39
|
+
single diagnostic.
|
|
40
|
+
*/
|
|
41
|
+
const jsonParseLinter = () => view => {
|
|
42
|
+
try {
|
|
43
|
+
JSON.parse(view.state.doc.toString());
|
|
44
|
+
} catch (e) {
|
|
45
|
+
if (!(e instanceof SyntaxError)) throw e;
|
|
46
|
+
const pos = getErrorPosition(e, view.state.doc);
|
|
47
|
+
return [{
|
|
48
|
+
from: pos,
|
|
49
|
+
message: e.message,
|
|
50
|
+
severity: 'error',
|
|
51
|
+
to: pos
|
|
52
|
+
}];
|
|
53
|
+
}
|
|
54
|
+
return [];
|
|
55
|
+
};
|
|
56
|
+
function getErrorPosition(error, doc) {
|
|
57
|
+
let m;
|
|
58
|
+
if (m = error.message.match(/at position (\d+)/)) return Math.min(+m[1], doc.length);
|
|
59
|
+
if (m = error.message.match(/at line (\d+) column (\d+)/)) return Math.min(doc.line(+m[1]).from + +m[2] - 1, doc.length);
|
|
60
|
+
return 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
A language provider that provides JSON parsing.
|
|
65
|
+
*/
|
|
66
|
+
const jsonLanguage = /*@__PURE__*/LRLanguage.define({
|
|
67
|
+
name: "json",
|
|
68
|
+
parser: /*@__PURE__*/parser$2.configure({
|
|
69
|
+
props: [/*@__PURE__*/indentNodeProp.add({
|
|
70
|
+
Object: /*@__PURE__*/continuedIndent({
|
|
71
|
+
except: /^\s*\}/
|
|
72
|
+
}),
|
|
73
|
+
Array: /*@__PURE__*/continuedIndent({
|
|
74
|
+
except: /^\s*\]/
|
|
75
|
+
})
|
|
76
|
+
}), /*@__PURE__*/foldNodeProp.add({
|
|
77
|
+
"Object Array": foldInside
|
|
78
|
+
})]
|
|
79
|
+
}),
|
|
80
|
+
languageData: {
|
|
81
|
+
closeBrackets: {
|
|
82
|
+
brackets: ["[", "{", '"']
|
|
83
|
+
},
|
|
84
|
+
indentOnInput: /^\s*[\}\]]$/
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
/**
|
|
88
|
+
JSON language support.
|
|
89
|
+
*/
|
|
90
|
+
function json() {
|
|
91
|
+
return new LanguageSupport(jsonLanguage);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
95
|
+
const scriptText = 54,
|
|
96
|
+
StartCloseScriptTag = 1,
|
|
97
|
+
styleText = 55,
|
|
98
|
+
StartCloseStyleTag = 2,
|
|
99
|
+
textareaText = 56,
|
|
100
|
+
StartCloseTextareaTag = 3,
|
|
101
|
+
EndTag = 4,
|
|
102
|
+
SelfClosingEndTag = 5,
|
|
103
|
+
StartTag = 6,
|
|
104
|
+
StartScriptTag = 7,
|
|
105
|
+
StartStyleTag = 8,
|
|
106
|
+
StartTextareaTag = 9,
|
|
107
|
+
StartSelfClosingTag = 10,
|
|
108
|
+
StartCloseTag = 11,
|
|
109
|
+
NoMatchStartCloseTag = 12,
|
|
110
|
+
MismatchedStartCloseTag = 13,
|
|
111
|
+
missingCloseTag = 57,
|
|
112
|
+
IncompleteCloseTag = 14,
|
|
113
|
+
commentContent$1 = 58,
|
|
114
|
+
Element = 20,
|
|
115
|
+
TagName = 22,
|
|
116
|
+
Attribute = 23,
|
|
117
|
+
AttributeName = 24,
|
|
118
|
+
AttributeValue = 26,
|
|
119
|
+
UnquotedAttributeValue = 27,
|
|
120
|
+
ScriptText = 28,
|
|
121
|
+
StyleText = 31,
|
|
122
|
+
TextareaText = 34,
|
|
123
|
+
OpenTag = 36,
|
|
124
|
+
CloseTag = 37,
|
|
125
|
+
Dialect_noMatch = 0,
|
|
126
|
+
Dialect_selfClosing = 1;
|
|
127
|
+
|
|
128
|
+
/* Hand-written tokenizers for HTML. */
|
|
129
|
+
|
|
130
|
+
const selfClosers$1 = {
|
|
131
|
+
area: true,
|
|
132
|
+
base: true,
|
|
133
|
+
br: true,
|
|
134
|
+
col: true,
|
|
135
|
+
command: true,
|
|
136
|
+
embed: true,
|
|
137
|
+
frame: true,
|
|
138
|
+
hr: true,
|
|
139
|
+
img: true,
|
|
140
|
+
input: true,
|
|
141
|
+
keygen: true,
|
|
142
|
+
link: true,
|
|
143
|
+
meta: true,
|
|
144
|
+
param: true,
|
|
145
|
+
source: true,
|
|
146
|
+
track: true,
|
|
147
|
+
wbr: true,
|
|
148
|
+
menuitem: true
|
|
149
|
+
};
|
|
150
|
+
const implicitlyClosed = {
|
|
151
|
+
dd: true,
|
|
152
|
+
li: true,
|
|
153
|
+
optgroup: true,
|
|
154
|
+
option: true,
|
|
155
|
+
p: true,
|
|
156
|
+
rp: true,
|
|
157
|
+
rt: true,
|
|
158
|
+
tbody: true,
|
|
159
|
+
td: true,
|
|
160
|
+
tfoot: true,
|
|
161
|
+
th: true,
|
|
162
|
+
tr: true
|
|
163
|
+
};
|
|
164
|
+
const closeOnOpen = {
|
|
165
|
+
dd: {
|
|
166
|
+
dd: true,
|
|
167
|
+
dt: true
|
|
168
|
+
},
|
|
169
|
+
dt: {
|
|
170
|
+
dd: true,
|
|
171
|
+
dt: true
|
|
172
|
+
},
|
|
173
|
+
li: {
|
|
174
|
+
li: true
|
|
175
|
+
},
|
|
176
|
+
option: {
|
|
177
|
+
option: true,
|
|
178
|
+
optgroup: true
|
|
179
|
+
},
|
|
180
|
+
optgroup: {
|
|
181
|
+
optgroup: true
|
|
182
|
+
},
|
|
183
|
+
p: {
|
|
184
|
+
address: true,
|
|
185
|
+
article: true,
|
|
186
|
+
aside: true,
|
|
187
|
+
blockquote: true,
|
|
188
|
+
dir: true,
|
|
189
|
+
div: true,
|
|
190
|
+
dl: true,
|
|
191
|
+
fieldset: true,
|
|
192
|
+
footer: true,
|
|
193
|
+
form: true,
|
|
194
|
+
h1: true,
|
|
195
|
+
h2: true,
|
|
196
|
+
h3: true,
|
|
197
|
+
h4: true,
|
|
198
|
+
h5: true,
|
|
199
|
+
h6: true,
|
|
200
|
+
header: true,
|
|
201
|
+
hgroup: true,
|
|
202
|
+
hr: true,
|
|
203
|
+
menu: true,
|
|
204
|
+
nav: true,
|
|
205
|
+
ol: true,
|
|
206
|
+
p: true,
|
|
207
|
+
pre: true,
|
|
208
|
+
section: true,
|
|
209
|
+
table: true,
|
|
210
|
+
ul: true
|
|
211
|
+
},
|
|
212
|
+
rp: {
|
|
213
|
+
rp: true,
|
|
214
|
+
rt: true
|
|
215
|
+
},
|
|
216
|
+
rt: {
|
|
217
|
+
rp: true,
|
|
218
|
+
rt: true
|
|
219
|
+
},
|
|
220
|
+
tbody: {
|
|
221
|
+
tbody: true,
|
|
222
|
+
tfoot: true
|
|
223
|
+
},
|
|
224
|
+
td: {
|
|
225
|
+
td: true,
|
|
226
|
+
th: true
|
|
227
|
+
},
|
|
228
|
+
tfoot: {
|
|
229
|
+
tbody: true
|
|
230
|
+
},
|
|
231
|
+
th: {
|
|
232
|
+
td: true,
|
|
233
|
+
th: true
|
|
234
|
+
},
|
|
235
|
+
thead: {
|
|
236
|
+
tbody: true,
|
|
237
|
+
tfoot: true
|
|
238
|
+
},
|
|
239
|
+
tr: {
|
|
240
|
+
tr: true
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
function nameChar(ch) {
|
|
244
|
+
return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161;
|
|
245
|
+
}
|
|
246
|
+
function isSpace(ch) {
|
|
247
|
+
return ch == 9 || ch == 10 || ch == 13 || ch == 32;
|
|
248
|
+
}
|
|
249
|
+
let cachedName = null,
|
|
250
|
+
cachedInput = null,
|
|
251
|
+
cachedPos = 0;
|
|
252
|
+
function tagNameAfter(input, offset) {
|
|
253
|
+
let pos = input.pos + offset;
|
|
254
|
+
if (cachedPos == pos && cachedInput == input) return cachedName;
|
|
255
|
+
let next = input.peek(offset);
|
|
256
|
+
while (isSpace(next)) next = input.peek(++offset);
|
|
257
|
+
let name = "";
|
|
258
|
+
for (;;) {
|
|
259
|
+
if (!nameChar(next)) break;
|
|
260
|
+
name += String.fromCharCode(next);
|
|
261
|
+
next = input.peek(++offset);
|
|
262
|
+
}
|
|
263
|
+
// Undefined to signal there's a <? or <!, null for just missing
|
|
264
|
+
cachedInput = input;
|
|
265
|
+
cachedPos = pos;
|
|
266
|
+
return cachedName = name ? name.toLowerCase() : next == question || next == bang ? undefined : null;
|
|
267
|
+
}
|
|
268
|
+
const lessThan = 60,
|
|
269
|
+
greaterThan = 62,
|
|
270
|
+
slash = 47,
|
|
271
|
+
question = 63,
|
|
272
|
+
bang = 33,
|
|
273
|
+
dash$1 = 45;
|
|
274
|
+
function ElementContext(name, parent) {
|
|
275
|
+
this.name = name;
|
|
276
|
+
this.parent = parent;
|
|
277
|
+
this.hash = parent ? parent.hash : 0;
|
|
278
|
+
for (let i = 0; i < name.length; i++) this.hash += (this.hash << 4) + name.charCodeAt(i) + (name.charCodeAt(i) << 8);
|
|
279
|
+
}
|
|
280
|
+
const startTagTerms = [StartTag, StartSelfClosingTag, StartScriptTag, StartStyleTag, StartTextareaTag];
|
|
281
|
+
const elementContext = new ContextTracker({
|
|
282
|
+
start: null,
|
|
283
|
+
shift(context, term, stack, input) {
|
|
284
|
+
return startTagTerms.indexOf(term) > -1 ? new ElementContext(tagNameAfter(input, 1) || "", context) : context;
|
|
285
|
+
},
|
|
286
|
+
reduce(context, term) {
|
|
287
|
+
return term == Element && context ? context.parent : context;
|
|
288
|
+
},
|
|
289
|
+
reuse(context, node, stack, input) {
|
|
290
|
+
let type = node.type.id;
|
|
291
|
+
return type == StartTag || type == OpenTag ? new ElementContext(tagNameAfter(input, 1) || "", context) : context;
|
|
292
|
+
},
|
|
293
|
+
hash(context) {
|
|
294
|
+
return context ? context.hash : 0;
|
|
295
|
+
},
|
|
296
|
+
strict: false
|
|
297
|
+
});
|
|
298
|
+
const tagStart = new ExternalTokenizer((input, stack) => {
|
|
299
|
+
if (input.next != lessThan) {
|
|
300
|
+
// End of file, close any open tags
|
|
301
|
+
if (input.next < 0 && stack.context) input.acceptToken(missingCloseTag);
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
input.advance();
|
|
305
|
+
let close = input.next == slash;
|
|
306
|
+
if (close) input.advance();
|
|
307
|
+
let name = tagNameAfter(input, 0);
|
|
308
|
+
if (name === undefined) return;
|
|
309
|
+
if (!name) return input.acceptToken(close ? IncompleteCloseTag : StartTag);
|
|
310
|
+
let parent = stack.context ? stack.context.name : null;
|
|
311
|
+
if (close) {
|
|
312
|
+
if (name == parent) return input.acceptToken(StartCloseTag);
|
|
313
|
+
if (parent && implicitlyClosed[parent]) return input.acceptToken(missingCloseTag, -2);
|
|
314
|
+
if (stack.dialectEnabled(Dialect_noMatch)) return input.acceptToken(NoMatchStartCloseTag);
|
|
315
|
+
for (let cx = stack.context; cx; cx = cx.parent) if (cx.name == name) return;
|
|
316
|
+
input.acceptToken(MismatchedStartCloseTag);
|
|
317
|
+
} else {
|
|
318
|
+
if (name == "script") return input.acceptToken(StartScriptTag);
|
|
319
|
+
if (name == "style") return input.acceptToken(StartStyleTag);
|
|
320
|
+
if (name == "textarea") return input.acceptToken(StartTextareaTag);
|
|
321
|
+
if (selfClosers$1.hasOwnProperty(name)) return input.acceptToken(StartSelfClosingTag);
|
|
322
|
+
if (parent && closeOnOpen[parent] && closeOnOpen[parent][name]) input.acceptToken(missingCloseTag, -1);else input.acceptToken(StartTag);
|
|
323
|
+
}
|
|
324
|
+
}, {
|
|
325
|
+
contextual: true
|
|
326
|
+
});
|
|
327
|
+
const commentContent = new ExternalTokenizer(input => {
|
|
328
|
+
for (let dashes = 0, i = 0;; i++) {
|
|
329
|
+
if (input.next < 0) {
|
|
330
|
+
if (i) input.acceptToken(commentContent$1);
|
|
331
|
+
break;
|
|
332
|
+
}
|
|
333
|
+
if (input.next == dash$1) {
|
|
334
|
+
dashes++;
|
|
335
|
+
} else if (input.next == greaterThan && dashes >= 2) {
|
|
336
|
+
if (i > 3) input.acceptToken(commentContent$1, -2);
|
|
337
|
+
break;
|
|
338
|
+
} else {
|
|
339
|
+
dashes = 0;
|
|
340
|
+
}
|
|
341
|
+
input.advance();
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
function inForeignElement(context) {
|
|
345
|
+
for (; context; context = context.parent) if (context.name == "svg" || context.name == "math") return true;
|
|
346
|
+
return false;
|
|
347
|
+
}
|
|
348
|
+
const endTag = new ExternalTokenizer((input, stack) => {
|
|
349
|
+
if (input.next == slash && input.peek(1) == greaterThan) {
|
|
350
|
+
let selfClosing = stack.dialectEnabled(Dialect_selfClosing) || inForeignElement(stack.context);
|
|
351
|
+
input.acceptToken(selfClosing ? SelfClosingEndTag : EndTag, 2);
|
|
352
|
+
} else if (input.next == greaterThan) {
|
|
353
|
+
input.acceptToken(EndTag, 1);
|
|
354
|
+
}
|
|
355
|
+
});
|
|
356
|
+
function contentTokenizer(tag, textToken, endToken) {
|
|
357
|
+
let lastState = 2 + tag.length;
|
|
358
|
+
return new ExternalTokenizer(input => {
|
|
359
|
+
// state means:
|
|
360
|
+
// - 0 nothing matched
|
|
361
|
+
// - 1 '<' matched
|
|
362
|
+
// - 2 '</' + possibly whitespace matched
|
|
363
|
+
// - 3-(1+tag.length) part of the tag matched
|
|
364
|
+
// - lastState whole tag + possibly whitespace matched
|
|
365
|
+
for (let state = 0, matchedLen = 0, i = 0;; i++) {
|
|
366
|
+
if (input.next < 0) {
|
|
367
|
+
if (i) input.acceptToken(textToken);
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
if (state == 0 && input.next == lessThan || state == 1 && input.next == slash || state >= 2 && state < lastState && input.next == tag.charCodeAt(state - 2)) {
|
|
371
|
+
state++;
|
|
372
|
+
matchedLen++;
|
|
373
|
+
} else if ((state == 2 || state == lastState) && isSpace(input.next)) {
|
|
374
|
+
matchedLen++;
|
|
375
|
+
} else if (state == lastState && input.next == greaterThan) {
|
|
376
|
+
if (i > matchedLen) input.acceptToken(textToken, -matchedLen);else input.acceptToken(endToken, -(matchedLen - 2));
|
|
377
|
+
break;
|
|
378
|
+
} else if ((input.next == 10 /* '\n' */ || input.next == 13 /* '\r' */) && i) {
|
|
379
|
+
input.acceptToken(textToken, 1);
|
|
380
|
+
break;
|
|
381
|
+
} else {
|
|
382
|
+
state = matchedLen = 0;
|
|
383
|
+
}
|
|
384
|
+
input.advance();
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
}
|
|
388
|
+
const scriptTokens = contentTokenizer("script", scriptText, StartCloseScriptTag);
|
|
389
|
+
const styleTokens = contentTokenizer("style", styleText, StartCloseStyleTag);
|
|
390
|
+
const textareaTokens = contentTokenizer("textarea", textareaText, StartCloseTextareaTag);
|
|
391
|
+
const htmlHighlighting = styleTags({
|
|
392
|
+
"Text RawText": tags$1.content,
|
|
393
|
+
"StartTag StartCloseTag SelfClosingEndTag EndTag": tags$1.angleBracket,
|
|
394
|
+
TagName: tags$1.tagName,
|
|
395
|
+
"MismatchedCloseTag/TagName": [tags$1.tagName, tags$1.invalid],
|
|
396
|
+
AttributeName: tags$1.attributeName,
|
|
397
|
+
"AttributeValue UnquotedAttributeValue": tags$1.attributeValue,
|
|
398
|
+
Is: tags$1.definitionOperator,
|
|
399
|
+
"EntityReference CharacterReference": tags$1.character,
|
|
400
|
+
Comment: tags$1.blockComment,
|
|
401
|
+
ProcessingInst: tags$1.processingInstruction,
|
|
402
|
+
DoctypeDecl: tags$1.documentMeta
|
|
403
|
+
});
|
|
404
|
+
|
|
405
|
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
406
|
+
const parser$1 = LRParser.deserialize({
|
|
407
|
+
version: 14,
|
|
408
|
+
states: ",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ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^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",
|
|
410
|
+
goto: "%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",
|
|
411
|
+
nodeNames: "⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",
|
|
412
|
+
maxTerm: 67,
|
|
413
|
+
context: elementContext,
|
|
414
|
+
nodeProps: [["closedBy", -10, 1, 2, 3, 7, 8, 9, 10, 11, 12, 13, "EndTag", 6, "EndTag SelfClosingEndTag", -4, 21, 30, 33, 36, "CloseTag"], ["openedBy", 4, "StartTag StartCloseTag", 5, "StartTag", -4, 29, 32, 35, 37, "OpenTag"], ["group", -9, 14, 17, 18, 19, 20, 39, 40, 41, 42, "Entity", 16, "Entity TextContent", -3, 28, 31, 34, "TextContent Entity"]],
|
|
415
|
+
propSources: [htmlHighlighting],
|
|
416
|
+
skippedNodes: [0],
|
|
417
|
+
repeatNodeCount: 9,
|
|
418
|
+
tokenData: "#%g!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q$q!Q![-_![!]!!O!]!^-_!^!_!&W!_!`#$o!`!a&X!a!c-_!c!}!!O!}#R-_#R#S!!O#S#T3V#T#o!!O#o#s-_#s$f$q$f%W-_%W%o!!O%o%p-_%p&a!!O&a&b-_&b1p!!O1p4U-_4U4d!!O4d4e-_4e$IS!!O$IS$I`-_$I`$Ib!!O$Ib$Kh-_$Kh%#t!!O%#t&/x-_&/x&Et!!O&Et&FV-_&FV;'S!!O;'S;:j!&Q;:j;=`4s<%l?&r-_?&r?Ah!!O?Ah?BY$q?BY?Mn!!O?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV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ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!V#$lP;=`<%l!Ey!V#$zXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",
|
|
419
|
+
tokenizers: [scriptTokens, styleTokens, textareaTokens, endTag, tagStart, commentContent, 0, 1, 2, 3, 4, 5],
|
|
420
|
+
topRules: {
|
|
421
|
+
"Document": [0, 15]
|
|
422
|
+
},
|
|
423
|
+
dialects: {
|
|
424
|
+
noMatch: 0,
|
|
425
|
+
selfClosing: 485
|
|
426
|
+
},
|
|
427
|
+
tokenPrec: 487
|
|
428
|
+
});
|
|
429
|
+
function getAttrs(openTag, input) {
|
|
430
|
+
let attrs = Object.create(null);
|
|
431
|
+
for (let att of openTag.getChildren(Attribute)) {
|
|
432
|
+
let name = att.getChild(AttributeName),
|
|
433
|
+
value = att.getChild(AttributeValue) || att.getChild(UnquotedAttributeValue);
|
|
434
|
+
if (name) attrs[input.read(name.from, name.to)] = !value ? "" : value.type.id == AttributeValue ? input.read(value.from + 1, value.to - 1) : input.read(value.from, value.to);
|
|
435
|
+
}
|
|
436
|
+
return attrs;
|
|
437
|
+
}
|
|
438
|
+
function findTagName(openTag, input) {
|
|
439
|
+
let tagNameNode = openTag.getChild(TagName);
|
|
440
|
+
return tagNameNode ? input.read(tagNameNode.from, tagNameNode.to) : " ";
|
|
441
|
+
}
|
|
442
|
+
function maybeNest(node, input, tags) {
|
|
443
|
+
let attrs;
|
|
444
|
+
for (let tag of tags) {
|
|
445
|
+
if (!tag.attrs || tag.attrs(attrs || (attrs = getAttrs(node.node.parent.firstChild, input)))) return {
|
|
446
|
+
parser: tag.parser
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
return null;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
// tags?: {
|
|
453
|
+
// tag: string,
|
|
454
|
+
// attrs?: ({[attr: string]: string}) => boolean,
|
|
455
|
+
// parser: Parser
|
|
456
|
+
// }[]
|
|
457
|
+
// attributes?: {
|
|
458
|
+
// name: string,
|
|
459
|
+
// tagName?: string,
|
|
460
|
+
// parser: Parser
|
|
461
|
+
// }[]
|
|
462
|
+
|
|
463
|
+
function configureNesting() {
|
|
464
|
+
let tags = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
465
|
+
let attributes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
466
|
+
let script = [],
|
|
467
|
+
style = [],
|
|
468
|
+
textarea = [],
|
|
469
|
+
other = [];
|
|
470
|
+
for (let tag of tags) {
|
|
471
|
+
let array = tag.tag == "script" ? script : tag.tag == "style" ? style : tag.tag == "textarea" ? textarea : other;
|
|
472
|
+
array.push(tag);
|
|
473
|
+
}
|
|
474
|
+
let attrs = attributes.length ? Object.create(null) : null;
|
|
475
|
+
for (let attr of attributes) (attrs[attr.name] || (attrs[attr.name] = [])).push(attr);
|
|
476
|
+
return parseMixed((node, input) => {
|
|
477
|
+
let id = node.type.id;
|
|
478
|
+
if (id == ScriptText) return maybeNest(node, input, script);
|
|
479
|
+
if (id == StyleText) return maybeNest(node, input, style);
|
|
480
|
+
if (id == TextareaText) return maybeNest(node, input, textarea);
|
|
481
|
+
if (id == Element && other.length) {
|
|
482
|
+
let n = node.node,
|
|
483
|
+
open = n.firstChild,
|
|
484
|
+
tagName = open && findTagName(open, input),
|
|
485
|
+
attrs;
|
|
486
|
+
if (tagName) for (let tag of other) {
|
|
487
|
+
if (tag.tag == tagName && (!tag.attrs || tag.attrs(attrs || (attrs = getAttrs(n, input))))) {
|
|
488
|
+
let close = n.lastChild;
|
|
489
|
+
return {
|
|
490
|
+
parser: tag.parser,
|
|
491
|
+
overlay: [{
|
|
492
|
+
from: open.to,
|
|
493
|
+
to: close.type.id == CloseTag ? close.from : n.to
|
|
494
|
+
}]
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
if (attrs && id == Attribute) {
|
|
500
|
+
let n = node.node,
|
|
501
|
+
nameNode;
|
|
502
|
+
if (nameNode = n.firstChild) {
|
|
503
|
+
let matches = attrs[input.read(nameNode.from, nameNode.to)];
|
|
504
|
+
if (matches) for (let attr of matches) {
|
|
505
|
+
if (attr.tagName && attr.tagName != findTagName(n.parent, input)) continue;
|
|
506
|
+
let value = n.lastChild;
|
|
507
|
+
if (value.type.id == AttributeValue) {
|
|
508
|
+
let from = value.from + 1;
|
|
509
|
+
let last = value.lastChild,
|
|
510
|
+
to = value.to - (last && last.isError ? 0 : 1);
|
|
511
|
+
if (to > from) return {
|
|
512
|
+
parser: attr.parser,
|
|
513
|
+
overlay: [{
|
|
514
|
+
from,
|
|
515
|
+
to
|
|
516
|
+
}]
|
|
517
|
+
};
|
|
518
|
+
} else if (value.type.id == UnquotedAttributeValue) {
|
|
519
|
+
return {
|
|
520
|
+
parser: attr.parser,
|
|
521
|
+
overlay: [{
|
|
522
|
+
from: value.from,
|
|
523
|
+
to: value.to
|
|
524
|
+
}]
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
return null;
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
535
|
+
const descendantOp = 95,
|
|
536
|
+
Unit = 1,
|
|
537
|
+
callee = 96,
|
|
538
|
+
identifier$2 = 97,
|
|
539
|
+
VariableName = 2;
|
|
540
|
+
|
|
541
|
+
/* Hand-written tokenizers for CSS tokens that can't be
|
|
542
|
+
expressed by Lezer's built-in tokenizer. */
|
|
543
|
+
|
|
544
|
+
const space = [9, 10, 11, 12, 13, 32, 133, 160, 5760, 8192, 8193, 8194, 8195, 8196, 8197, 8198, 8199, 8200, 8201, 8202, 8232, 8233, 8239, 8287, 12288];
|
|
545
|
+
const colon = 58,
|
|
546
|
+
parenL = 40,
|
|
547
|
+
underscore = 95,
|
|
548
|
+
bracketL = 91,
|
|
549
|
+
dash = 45,
|
|
550
|
+
period = 46,
|
|
551
|
+
hash = 35,
|
|
552
|
+
percent = 37;
|
|
553
|
+
function isAlpha(ch) {
|
|
554
|
+
return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122 || ch >= 161;
|
|
555
|
+
}
|
|
556
|
+
function isDigit(ch) {
|
|
557
|
+
return ch >= 48 && ch <= 57;
|
|
558
|
+
}
|
|
559
|
+
const identifiers = new ExternalTokenizer((input, stack) => {
|
|
560
|
+
for (let inside = false, dashes = 0, i = 0;; i++) {
|
|
561
|
+
let {
|
|
562
|
+
next
|
|
563
|
+
} = input;
|
|
564
|
+
if (isAlpha(next) || next == dash || next == underscore || inside && isDigit(next)) {
|
|
565
|
+
if (!inside && (next != dash || i > 0)) inside = true;
|
|
566
|
+
if (dashes === i && next == dash) dashes++;
|
|
567
|
+
input.advance();
|
|
568
|
+
} else {
|
|
569
|
+
if (inside) input.acceptToken(next == parenL ? callee : dashes == 2 && stack.canShift(VariableName) ? VariableName : identifier$2);
|
|
570
|
+
break;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
});
|
|
574
|
+
const descendant = new ExternalTokenizer(input => {
|
|
575
|
+
if (space.includes(input.peek(-1))) {
|
|
576
|
+
let {
|
|
577
|
+
next
|
|
578
|
+
} = input;
|
|
579
|
+
if (isAlpha(next) || next == underscore || next == hash || next == period || next == bracketL || next == colon || next == dash) input.acceptToken(descendantOp);
|
|
580
|
+
}
|
|
581
|
+
});
|
|
582
|
+
const unitToken = new ExternalTokenizer(input => {
|
|
583
|
+
if (!space.includes(input.peek(-1))) {
|
|
584
|
+
let {
|
|
585
|
+
next
|
|
586
|
+
} = input;
|
|
587
|
+
if (next == percent) {
|
|
588
|
+
input.advance();
|
|
589
|
+
input.acceptToken(Unit);
|
|
590
|
+
}
|
|
591
|
+
if (isAlpha(next)) {
|
|
592
|
+
do {
|
|
593
|
+
input.advance();
|
|
594
|
+
} while (isAlpha(input.next));
|
|
595
|
+
input.acceptToken(Unit);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
});
|
|
599
|
+
const cssHighlighting = styleTags({
|
|
600
|
+
"AtKeyword import charset namespace keyframes media supports": tags$1.definitionKeyword,
|
|
601
|
+
"from to selector": tags$1.keyword,
|
|
602
|
+
NamespaceName: tags$1.namespace,
|
|
603
|
+
KeyframeName: tags$1.labelName,
|
|
604
|
+
KeyframeRangeName: tags$1.operatorKeyword,
|
|
605
|
+
TagName: tags$1.tagName,
|
|
606
|
+
ClassName: tags$1.className,
|
|
607
|
+
PseudoClassName: tags$1.constant(tags$1.className),
|
|
608
|
+
IdName: tags$1.labelName,
|
|
609
|
+
"FeatureName PropertyName": tags$1.propertyName,
|
|
610
|
+
AttributeName: tags$1.attributeName,
|
|
611
|
+
NumberLiteral: tags$1.number,
|
|
612
|
+
KeywordQuery: tags$1.keyword,
|
|
613
|
+
UnaryQueryOp: tags$1.operatorKeyword,
|
|
614
|
+
"CallTag ValueName": tags$1.atom,
|
|
615
|
+
VariableName: tags$1.variableName,
|
|
616
|
+
Callee: tags$1.operatorKeyword,
|
|
617
|
+
Unit: tags$1.unit,
|
|
618
|
+
"UniversalSelector NestingSelector": tags$1.definitionOperator,
|
|
619
|
+
MatchOp: tags$1.compareOperator,
|
|
620
|
+
"ChildOp SiblingOp, LogicOp": tags$1.logicOperator,
|
|
621
|
+
BinOp: tags$1.arithmeticOperator,
|
|
622
|
+
Important: tags$1.modifier,
|
|
623
|
+
Comment: tags$1.blockComment,
|
|
624
|
+
ColorLiteral: tags$1.color,
|
|
625
|
+
"ParenthesizedContent StringLiteral": tags$1.string,
|
|
626
|
+
":": tags$1.punctuation,
|
|
627
|
+
"PseudoOp #": tags$1.derefOperator,
|
|
628
|
+
"; ,": tags$1.separator,
|
|
629
|
+
"( )": tags$1.paren,
|
|
630
|
+
"[ ]": tags$1.squareBracket,
|
|
631
|
+
"{ }": tags$1.brace
|
|
632
|
+
});
|
|
633
|
+
|
|
634
|
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
635
|
+
const spec_callee = {
|
|
636
|
+
__proto__: null,
|
|
637
|
+
lang: 32,
|
|
638
|
+
"nth-child": 32,
|
|
639
|
+
"nth-last-child": 32,
|
|
640
|
+
"nth-of-type": 32,
|
|
641
|
+
"nth-last-of-type": 32,
|
|
642
|
+
dir: 32,
|
|
643
|
+
"host-context": 32,
|
|
644
|
+
url: 60,
|
|
645
|
+
"url-prefix": 60,
|
|
646
|
+
domain: 60,
|
|
647
|
+
regexp: 60,
|
|
648
|
+
selector: 134
|
|
649
|
+
};
|
|
650
|
+
const spec_AtKeyword = {
|
|
651
|
+
__proto__: null,
|
|
652
|
+
"@import": 114,
|
|
653
|
+
"@media": 138,
|
|
654
|
+
"@charset": 142,
|
|
655
|
+
"@namespace": 146,
|
|
656
|
+
"@keyframes": 152,
|
|
657
|
+
"@supports": 164
|
|
658
|
+
};
|
|
659
|
+
const spec_identifier = {
|
|
660
|
+
__proto__: null,
|
|
661
|
+
not: 128,
|
|
662
|
+
only: 128
|
|
663
|
+
};
|
|
664
|
+
const parser = LRParser.deserialize({
|
|
665
|
+
version: 14,
|
|
666
|
+
states: "8`QYQ[OOO#_Q[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO#fQ[O'#CfO$YQXO'#CaO$aQ[O'#ChO$lQ[O'#DPO$qQ[O'#DTOOQP'#Ee'#EeO$vQdO'#DeO%bQ[O'#DrO$vQdO'#DtO%sQ[O'#DvO&OQ[O'#DyO&WQ[O'#EPO&fQ[O'#EROOQS'#Ed'#EdOOQS'#ET'#ETQYQ[OOO&mQXO'#CdO'bQWO'#DaO'gQWO'#EkO'rQ[O'#EkQOQWOOOOQP'#Cg'#CgOOQP,59Q,59QO#fQ[O,59QO'|Q[O'#EWO(hQWO,58{O(pQ[O,59SO$lQ[O,59kO$qQ[O,59oO'|Q[O,59sO'|Q[O,59uO'|Q[O,59vO({Q[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S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Name NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent , PseudoClassName ArgList IdSelector # IdName ] AttributeSelector [ AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",
|
|
670
|
+
maxTerm: 109,
|
|
671
|
+
nodeProps: [["openedBy", 17, "(", 48, "{"], ["closedBy", 18, ")", 49, "}"]],
|
|
672
|
+
propSources: [cssHighlighting],
|
|
673
|
+
skippedNodes: [0, 3],
|
|
674
|
+
repeatNodeCount: 9,
|
|
675
|
+
tokenData: "Lq~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Cu![!]Dp!]!^El!^!_$}!_!`E}!`!aF`!a!b$}!b!cG[!c!}$}!}#OHt#O#P$}#P#QIV#Q#R6d#R#T$}#T#UIh#U#c$}#c#dJy#d#o$}#o#pK`#p#q6d#q#rKq#r#sLS#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`Lk<%lO$}W%QSOy%^z;'S%^;'S;=`%o<%lO%^W%cSoWOy%^z;'S%^;'S;=`%o<%lO%^W%rP;=`<%l%^~%zh#V~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z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lO%^XJSUoWOy%^z#W%^#W#XJf#X;'S%^;'S;=`%o<%lO%^XJmS!`PoWOy%^z;'S%^;'S;=`%o<%lO%^XJ|UOy%^z#f%^#f#gJf#g;'S%^;'S;=`%o<%lO%^ZKeS!RROy%^z;'S%^;'S;=`%o<%lO%^_KvS!QVOy%^z;'S%^;'S;=`%o<%lO%^ZLXU!PPOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^WLnP;=`<%l$}",
|
|
676
|
+
tokenizers: [descendant, unitToken, identifiers, 0, 1, 2, 3],
|
|
677
|
+
topRules: {
|
|
678
|
+
"StyleSheet": [0, 4],
|
|
679
|
+
"Styles": [1, 84]
|
|
680
|
+
},
|
|
681
|
+
specialized: [{
|
|
682
|
+
term: 96,
|
|
683
|
+
get: value => spec_callee[value] || -1
|
|
684
|
+
}, {
|
|
685
|
+
term: 56,
|
|
686
|
+
get: value => spec_AtKeyword[value] || -1
|
|
687
|
+
}, {
|
|
688
|
+
term: 97,
|
|
689
|
+
get: value => spec_identifier[value] || -1
|
|
690
|
+
}],
|
|
691
|
+
tokenPrec: 1142
|
|
692
|
+
});
|
|
693
|
+
|
|
694
|
+
let _properties = null;
|
|
695
|
+
function properties() {
|
|
696
|
+
if (!_properties && typeof document == "object" && document.body) {
|
|
697
|
+
let {
|
|
698
|
+
style
|
|
699
|
+
} = document.body,
|
|
700
|
+
names = [],
|
|
701
|
+
seen = new Set();
|
|
702
|
+
for (let prop in style) if (prop != "cssText" && prop != "cssFloat") {
|
|
703
|
+
if (typeof style[prop] == "string") {
|
|
704
|
+
if (/[A-Z]/.test(prop)) prop = prop.replace(/[A-Z]/g, ch => "-" + ch.toLowerCase());
|
|
705
|
+
if (!seen.has(prop)) {
|
|
706
|
+
names.push(prop);
|
|
707
|
+
seen.add(prop);
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
_properties = names.sort().map(name => ({
|
|
712
|
+
type: "property",
|
|
713
|
+
label: name
|
|
714
|
+
}));
|
|
715
|
+
}
|
|
716
|
+
return _properties || [];
|
|
717
|
+
}
|
|
718
|
+
const pseudoClasses = /*@__PURE__*/["active", "after", "any-link", "autofill", "backdrop", "before", "checked", "cue", "default", "defined", "disabled", "empty", "enabled", "file-selector-button", "first", "first-child", "first-letter", "first-line", "first-of-type", "focus", "focus-visible", "focus-within", "fullscreen", "has", "host", "host-context", "hover", "in-range", "indeterminate", "invalid", "is", "lang", "last-child", "last-of-type", "left", "link", "marker", "modal", "not", "nth-child", "nth-last-child", "nth-last-of-type", "nth-of-type", "only-child", "only-of-type", "optional", "out-of-range", "part", "placeholder", "placeholder-shown", "read-only", "read-write", "required", "right", "root", "scope", "selection", "slotted", "target", "target-text", "valid", "visited", "where"].map(name => ({
|
|
719
|
+
type: "class",
|
|
720
|
+
label: name
|
|
721
|
+
}));
|
|
722
|
+
const values = /*@__PURE__*/["above", "absolute", "activeborder", "additive", "activecaption", "after-white-space", "ahead", "alias", "all", "all-scroll", "alphabetic", "alternate", "always", "antialiased", "appworkspace", "asterisks", "attr", "auto", "auto-flow", "avoid", "avoid-column", "avoid-page", "avoid-region", "axis-pan", "background", "backwards", "baseline", "below", "bidi-override", "blink", "block", "block-axis", "bold", "bolder", "border", "border-box", "both", "bottom", "break", "break-all", "break-word", "bullets", "button", "button-bevel", "buttonface", "buttonhighlight", "buttonshadow", "buttontext", "calc", "capitalize", "caps-lock-indicator", "caption", "captiontext", "caret", "cell", "center", "checkbox", "circle", "cjk-decimal", "clear", "clip", "close-quote", "col-resize", "collapse", "color", "color-burn", "color-dodge", "column", "column-reverse", "compact", "condensed", "contain", "content", "contents", "content-box", "context-menu", "continuous", "copy", "counter", "counters", "cover", "crop", "cross", "crosshair", "currentcolor", "cursive", "cyclic", "darken", "dashed", "decimal", "decimal-leading-zero", "default", "default-button", "dense", "destination-atop", "destination-in", "destination-out", "destination-over", "difference", "disc", "discard", "disclosure-closed", "disclosure-open", "document", "dot-dash", "dot-dot-dash", "dotted", "double", "down", "e-resize", "ease", "ease-in", "ease-in-out", "ease-out", "element", "ellipse", "ellipsis", "embed", "end", "ethiopic-abegede-gez", "ethiopic-halehame-aa-er", "ethiopic-halehame-gez", "ew-resize", "exclusion", "expanded", "extends", "extra-condensed", "extra-expanded", "fantasy", "fast", "fill", "fill-box", "fixed", "flat", "flex", "flex-end", "flex-start", "footnotes", "forwards", "from", "geometricPrecision", "graytext", "grid", "groove", "hand", "hard-light", "help", "hidden", "hide", "higher", "highlight", "highlighttext", "horizontal", "hsl", "hsla", "hue", "icon", "ignore", "inactiveborder", "inactivecaption", "inactivecaptiontext", "infinite", "infobackground", "infotext", "inherit", "initial", "inline", "inline-axis", "inline-block", "inline-flex", "inline-grid", "inline-table", "inset", "inside", "intrinsic", "invert", "italic", "justify", "keep-all", "landscape", "large", "larger", "left", "level", "lighter", "lighten", "line-through", "linear", "linear-gradient", "lines", "list-item", "listbox", "listitem", "local", "logical", "loud", "lower", "lower-hexadecimal", "lower-latin", "lower-norwegian", "lowercase", "ltr", "luminosity", "manipulation", "match", "matrix", "matrix3d", "medium", "menu", "menutext", "message-box", "middle", "min-intrinsic", "mix", "monospace", "move", "multiple", "multiple_mask_images", "multiply", "n-resize", "narrower", "ne-resize", "nesw-resize", "no-close-quote", "no-drop", "no-open-quote", "no-repeat", "none", "normal", "not-allowed", "nowrap", "ns-resize", "numbers", "numeric", "nw-resize", "nwse-resize", "oblique", "opacity", "open-quote", "optimizeLegibility", "optimizeSpeed", "outset", "outside", "outside-shape", "overlay", "overline", "padding", "padding-box", "painted", "page", "paused", "perspective", "pinch-zoom", "plus-darker", "plus-lighter", "pointer", "polygon", "portrait", "pre", "pre-line", "pre-wrap", "preserve-3d", "progress", "push-button", "radial-gradient", "radio", "read-only", "read-write", "read-write-plaintext-only", "rectangle", "region", "relative", "repeat", "repeating-linear-gradient", "repeating-radial-gradient", "repeat-x", "repeat-y", "reset", "reverse", "rgb", "rgba", "ridge", "right", "rotate", "rotate3d", "rotateX", "rotateY", "rotateZ", "round", "row", "row-resize", "row-reverse", "rtl", "run-in", "running", "s-resize", "sans-serif", "saturation", "scale", "scale3d", "scaleX", "scaleY", "scaleZ", "screen", "scroll", "scrollbar", "scroll-position", "se-resize", "self-start", "self-end", "semi-condensed", "semi-expanded", "separate", "serif", "show", "single", "skew", "skewX", "skewY", "skip-white-space", "slide", "slider-horizontal", "slider-vertical", "sliderthumb-horizontal", "sliderthumb-vertical", "slow", "small", "small-caps", "small-caption", "smaller", "soft-light", "solid", "source-atop", "source-in", "source-out", "source-over", "space", "space-around", "space-between", "space-evenly", "spell-out", "square", "start", "static", "status-bar", "stretch", "stroke", "stroke-box", "sub", "subpixel-antialiased", "svg_masks", "super", "sw-resize", "symbolic", "symbols", "system-ui", "table", "table-caption", "table-cell", "table-column", "table-column-group", "table-footer-group", "table-header-group", "table-row", "table-row-group", "text", "text-bottom", "text-top", "textarea", "textfield", "thick", "thin", "threeddarkshadow", "threedface", "threedhighlight", "threedlightshadow", "threedshadow", "to", "top", "transform", "translate", "translate3d", "translateX", "translateY", "translateZ", "transparent", "ultra-condensed", "ultra-expanded", "underline", "unidirectional-pan", "unset", "up", "upper-latin", "uppercase", "url", "var", "vertical", "vertical-text", "view-box", "visible", "visibleFill", "visiblePainted", "visibleStroke", "visual", "w-resize", "wait", "wave", "wider", "window", "windowframe", "windowtext", "words", "wrap", "wrap-reverse", "x-large", "x-small", "xor", "xx-large", "xx-small"].map(name => ({
|
|
723
|
+
type: "keyword",
|
|
724
|
+
label: name
|
|
725
|
+
})).concat( /*@__PURE__*/["aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate", "coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange", "darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkturquoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "honeydew", "hotpink", "indianred", "indigo", "ivory", "khaki", "lavender", "lavenderblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgreen", "lightpink", "lightsalmon", "lightseagreen", "lightskyblue", "lightslategray", "lightsteelblue", "lightyellow", "lime", "limegreen", "linen", "magenta", "maroon", "mediumaquamarine", "mediumblue", "mediumorchid", "mediumpurple", "mediumseagreen", "mediumslateblue", "mediumspringgreen", "mediumturquoise", "mediumvioletred", "midnightblue", "mintcream", "mistyrose", "moccasin", "navajowhite", "navy", "oldlace", "olive", "olivedrab", "orange", "orangered", "orchid", "palegoldenrod", "palegreen", "paleturquoise", "palevioletred", "papayawhip", "peachpuff", "peru", "pink", "plum", "powderblue", "purple", "rebeccapurple", "red", "rosybrown", "royalblue", "saddlebrown", "salmon", "sandybrown", "seagreen", "seashell", "sienna", "silver", "skyblue", "slateblue", "slategray", "snow", "springgreen", "steelblue", "tan", "teal", "thistle", "tomato", "turquoise", "violet", "wheat", "white", "whitesmoke", "yellow", "yellowgreen"].map(name => ({
|
|
726
|
+
type: "constant",
|
|
727
|
+
label: name
|
|
728
|
+
})));
|
|
729
|
+
const tags = /*@__PURE__*/["a", "abbr", "address", "article", "aside", "b", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "figcaption", "figure", "footer", "form", "header", "hgroup", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "meter", "nav", "ol", "output", "p", "pre", "ruby", "section", "select", "small", "source", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "tr", "u", "ul"].map(name => ({
|
|
730
|
+
type: "type",
|
|
731
|
+
label: name
|
|
732
|
+
}));
|
|
733
|
+
const identifier$1 = /^(\w[\w-]*|-\w[\w-]*|)$/,
|
|
734
|
+
variable = /^-(-[\w-]*)?$/;
|
|
735
|
+
function isVarArg(node, doc) {
|
|
736
|
+
var _a;
|
|
737
|
+
if (node.name == "(" || node.type.isError) node = node.parent || node;
|
|
738
|
+
if (node.name != "ArgList") return false;
|
|
739
|
+
let callee = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.firstChild;
|
|
740
|
+
if ((callee === null || callee === void 0 ? void 0 : callee.name) != "Callee") return false;
|
|
741
|
+
return doc.sliceString(callee.from, callee.to) == "var";
|
|
742
|
+
}
|
|
743
|
+
const VariablesByNode = /*@__PURE__*/new NodeWeakMap();
|
|
744
|
+
const declSelector = ["Declaration"];
|
|
745
|
+
function astTop(node) {
|
|
746
|
+
for (let cur = node;;) {
|
|
747
|
+
if (cur.type.isTop) return cur;
|
|
748
|
+
if (!(cur = cur.parent)) return node;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
function variableNames(doc, node, isVariable) {
|
|
752
|
+
if (node.to - node.from > 4096) {
|
|
753
|
+
let known = VariablesByNode.get(node);
|
|
754
|
+
if (known) return known;
|
|
755
|
+
let result = [],
|
|
756
|
+
seen = new Set(),
|
|
757
|
+
cursor = node.cursor(IterMode.IncludeAnonymous);
|
|
758
|
+
if (cursor.firstChild()) do {
|
|
759
|
+
for (let option of variableNames(doc, cursor.node, isVariable)) if (!seen.has(option.label)) {
|
|
760
|
+
seen.add(option.label);
|
|
761
|
+
result.push(option);
|
|
762
|
+
}
|
|
763
|
+
} while (cursor.nextSibling());
|
|
764
|
+
VariablesByNode.set(node, result);
|
|
765
|
+
return result;
|
|
766
|
+
} else {
|
|
767
|
+
let result = [],
|
|
768
|
+
seen = new Set();
|
|
769
|
+
node.cursor().iterate(node => {
|
|
770
|
+
var _a;
|
|
771
|
+
if (isVariable(node) && node.matchContext(declSelector) && ((_a = node.node.nextSibling) === null || _a === void 0 ? void 0 : _a.name) == ":") {
|
|
772
|
+
let name = doc.sliceString(node.from, node.to);
|
|
773
|
+
if (!seen.has(name)) {
|
|
774
|
+
seen.add(name);
|
|
775
|
+
result.push({
|
|
776
|
+
label: name,
|
|
777
|
+
type: "variable"
|
|
778
|
+
});
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
});
|
|
782
|
+
return result;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
/**
|
|
786
|
+
Create a completion source for a CSS dialect, providing a
|
|
787
|
+
predicate for determining what kind of syntax node can act as a
|
|
788
|
+
completable variable. This is used by language modes like Sass and
|
|
789
|
+
Less to reuse this package's completion logic.
|
|
790
|
+
*/
|
|
791
|
+
const defineCSSCompletionSource = isVariable => context => {
|
|
792
|
+
let {
|
|
793
|
+
state,
|
|
794
|
+
pos
|
|
795
|
+
} = context,
|
|
796
|
+
node = syntaxTree(state).resolveInner(pos, -1);
|
|
797
|
+
let isDash = node.type.isError && node.from == node.to - 1 && state.doc.sliceString(node.from, node.to) == "-";
|
|
798
|
+
if (node.name == "PropertyName" || (isDash || node.name == "TagName") && /^(Block|Styles)$/.test(node.resolve(node.to).name)) return {
|
|
799
|
+
from: node.from,
|
|
800
|
+
options: properties(),
|
|
801
|
+
validFor: identifier$1
|
|
802
|
+
};
|
|
803
|
+
if (node.name == "ValueName") return {
|
|
804
|
+
from: node.from,
|
|
805
|
+
options: values,
|
|
806
|
+
validFor: identifier$1
|
|
807
|
+
};
|
|
808
|
+
if (node.name == "PseudoClassName") return {
|
|
809
|
+
from: node.from,
|
|
810
|
+
options: pseudoClasses,
|
|
811
|
+
validFor: identifier$1
|
|
812
|
+
};
|
|
813
|
+
if (isVariable(node) || (context.explicit || isDash) && isVarArg(node, state.doc)) return {
|
|
814
|
+
from: isVariable(node) || isDash ? node.from : pos,
|
|
815
|
+
options: variableNames(state.doc, astTop(node), isVariable),
|
|
816
|
+
validFor: variable
|
|
817
|
+
};
|
|
818
|
+
if (node.name == "TagName") {
|
|
819
|
+
for (let {
|
|
820
|
+
parent
|
|
821
|
+
} = node; parent; parent = parent.parent) if (parent.name == "Block") return {
|
|
822
|
+
from: node.from,
|
|
823
|
+
options: properties(),
|
|
824
|
+
validFor: identifier$1
|
|
825
|
+
};
|
|
826
|
+
return {
|
|
827
|
+
from: node.from,
|
|
828
|
+
options: tags,
|
|
829
|
+
validFor: identifier$1
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
if (!context.explicit) return null;
|
|
833
|
+
let above = node.resolve(pos),
|
|
834
|
+
before = above.childBefore(pos);
|
|
835
|
+
if (before && before.name == ":" && above.name == "PseudoClassSelector") return {
|
|
836
|
+
from: pos,
|
|
837
|
+
options: pseudoClasses,
|
|
838
|
+
validFor: identifier$1
|
|
839
|
+
};
|
|
840
|
+
if (before && before.name == ":" && above.name == "Declaration" || above.name == "ArgList") return {
|
|
841
|
+
from: pos,
|
|
842
|
+
options: values,
|
|
843
|
+
validFor: identifier$1
|
|
844
|
+
};
|
|
845
|
+
if (above.name == "Block" || above.name == "Styles") return {
|
|
846
|
+
from: pos,
|
|
847
|
+
options: properties(),
|
|
848
|
+
validFor: identifier$1
|
|
849
|
+
};
|
|
850
|
+
return null;
|
|
851
|
+
};
|
|
852
|
+
/**
|
|
853
|
+
CSS property, variable, and value keyword completion source.
|
|
854
|
+
*/
|
|
855
|
+
const cssCompletionSource = /*@__PURE__*/defineCSSCompletionSource(n => n.name == "VariableName");
|
|
856
|
+
|
|
857
|
+
/**
|
|
858
|
+
A language provider based on the [Lezer CSS
|
|
859
|
+
parser](https://github.com/lezer-parser/css), extended with
|
|
860
|
+
highlighting and indentation information.
|
|
861
|
+
*/
|
|
862
|
+
const cssLanguage = /*@__PURE__*/LRLanguage.define({
|
|
863
|
+
name: "css",
|
|
864
|
+
parser: /*@__PURE__*/parser.configure({
|
|
865
|
+
props: [/*@__PURE__*/indentNodeProp.add({
|
|
866
|
+
Declaration: /*@__PURE__*/continuedIndent()
|
|
867
|
+
}), /*@__PURE__*/foldNodeProp.add({
|
|
868
|
+
Block: foldInside
|
|
869
|
+
})]
|
|
870
|
+
}),
|
|
871
|
+
languageData: {
|
|
872
|
+
commentTokens: {
|
|
873
|
+
block: {
|
|
874
|
+
open: "/*",
|
|
875
|
+
close: "*/"
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
indentOnInput: /^\s*\}$/,
|
|
879
|
+
wordChars: "-"
|
|
880
|
+
}
|
|
881
|
+
});
|
|
882
|
+
/**
|
|
883
|
+
Language support for CSS.
|
|
884
|
+
*/
|
|
885
|
+
function css() {
|
|
886
|
+
return new LanguageSupport(cssLanguage, cssLanguage.data.of({
|
|
887
|
+
autocomplete: cssCompletionSource
|
|
888
|
+
}));
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
const Targets = ["_blank", "_self", "_top", "_parent"];
|
|
892
|
+
const Charsets = ["ascii", "utf-8", "utf-16", "latin1", "latin1"];
|
|
893
|
+
const Methods = ["get", "post", "put", "delete"];
|
|
894
|
+
const Encs = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"];
|
|
895
|
+
const Bool = ["true", "false"];
|
|
896
|
+
const S = {}; // Empty tag spec
|
|
897
|
+
const Tags = {
|
|
898
|
+
a: {
|
|
899
|
+
attrs: {
|
|
900
|
+
href: null,
|
|
901
|
+
ping: null,
|
|
902
|
+
type: null,
|
|
903
|
+
media: null,
|
|
904
|
+
target: Targets,
|
|
905
|
+
hreflang: null
|
|
906
|
+
}
|
|
907
|
+
},
|
|
908
|
+
abbr: S,
|
|
909
|
+
address: S,
|
|
910
|
+
area: {
|
|
911
|
+
attrs: {
|
|
912
|
+
alt: null,
|
|
913
|
+
coords: null,
|
|
914
|
+
href: null,
|
|
915
|
+
target: null,
|
|
916
|
+
ping: null,
|
|
917
|
+
media: null,
|
|
918
|
+
hreflang: null,
|
|
919
|
+
type: null,
|
|
920
|
+
shape: ["default", "rect", "circle", "poly"]
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
article: S,
|
|
924
|
+
aside: S,
|
|
925
|
+
audio: {
|
|
926
|
+
attrs: {
|
|
927
|
+
src: null,
|
|
928
|
+
mediagroup: null,
|
|
929
|
+
crossorigin: ["anonymous", "use-credentials"],
|
|
930
|
+
preload: ["none", "metadata", "auto"],
|
|
931
|
+
autoplay: ["autoplay"],
|
|
932
|
+
loop: ["loop"],
|
|
933
|
+
controls: ["controls"]
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
b: S,
|
|
937
|
+
base: {
|
|
938
|
+
attrs: {
|
|
939
|
+
href: null,
|
|
940
|
+
target: Targets
|
|
941
|
+
}
|
|
942
|
+
},
|
|
943
|
+
bdi: S,
|
|
944
|
+
bdo: S,
|
|
945
|
+
blockquote: {
|
|
946
|
+
attrs: {
|
|
947
|
+
cite: null
|
|
948
|
+
}
|
|
949
|
+
},
|
|
950
|
+
body: S,
|
|
951
|
+
br: S,
|
|
952
|
+
button: {
|
|
953
|
+
attrs: {
|
|
954
|
+
form: null,
|
|
955
|
+
formaction: null,
|
|
956
|
+
name: null,
|
|
957
|
+
value: null,
|
|
958
|
+
autofocus: ["autofocus"],
|
|
959
|
+
disabled: ["autofocus"],
|
|
960
|
+
formenctype: Encs,
|
|
961
|
+
formmethod: Methods,
|
|
962
|
+
formnovalidate: ["novalidate"],
|
|
963
|
+
formtarget: Targets,
|
|
964
|
+
type: ["submit", "reset", "button"]
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
canvas: {
|
|
968
|
+
attrs: {
|
|
969
|
+
width: null,
|
|
970
|
+
height: null
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
caption: S,
|
|
974
|
+
center: S,
|
|
975
|
+
cite: S,
|
|
976
|
+
code: S,
|
|
977
|
+
col: {
|
|
978
|
+
attrs: {
|
|
979
|
+
span: null
|
|
980
|
+
}
|
|
981
|
+
},
|
|
982
|
+
colgroup: {
|
|
983
|
+
attrs: {
|
|
984
|
+
span: null
|
|
985
|
+
}
|
|
986
|
+
},
|
|
987
|
+
command: {
|
|
988
|
+
attrs: {
|
|
989
|
+
type: ["command", "checkbox", "radio"],
|
|
990
|
+
label: null,
|
|
991
|
+
icon: null,
|
|
992
|
+
radiogroup: null,
|
|
993
|
+
command: null,
|
|
994
|
+
title: null,
|
|
995
|
+
disabled: ["disabled"],
|
|
996
|
+
checked: ["checked"]
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
data: {
|
|
1000
|
+
attrs: {
|
|
1001
|
+
value: null
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
datagrid: {
|
|
1005
|
+
attrs: {
|
|
1006
|
+
disabled: ["disabled"],
|
|
1007
|
+
multiple: ["multiple"]
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
datalist: {
|
|
1011
|
+
attrs: {
|
|
1012
|
+
data: null
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
dd: S,
|
|
1016
|
+
del: {
|
|
1017
|
+
attrs: {
|
|
1018
|
+
cite: null,
|
|
1019
|
+
datetime: null
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
details: {
|
|
1023
|
+
attrs: {
|
|
1024
|
+
open: ["open"]
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
dfn: S,
|
|
1028
|
+
div: S,
|
|
1029
|
+
dl: S,
|
|
1030
|
+
dt: S,
|
|
1031
|
+
em: S,
|
|
1032
|
+
embed: {
|
|
1033
|
+
attrs: {
|
|
1034
|
+
src: null,
|
|
1035
|
+
type: null,
|
|
1036
|
+
width: null,
|
|
1037
|
+
height: null
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
eventsource: {
|
|
1041
|
+
attrs: {
|
|
1042
|
+
src: null
|
|
1043
|
+
}
|
|
1044
|
+
},
|
|
1045
|
+
fieldset: {
|
|
1046
|
+
attrs: {
|
|
1047
|
+
disabled: ["disabled"],
|
|
1048
|
+
form: null,
|
|
1049
|
+
name: null
|
|
1050
|
+
}
|
|
1051
|
+
},
|
|
1052
|
+
figcaption: S,
|
|
1053
|
+
figure: S,
|
|
1054
|
+
footer: S,
|
|
1055
|
+
form: {
|
|
1056
|
+
attrs: {
|
|
1057
|
+
action: null,
|
|
1058
|
+
name: null,
|
|
1059
|
+
"accept-charset": Charsets,
|
|
1060
|
+
autocomplete: ["on", "off"],
|
|
1061
|
+
enctype: Encs,
|
|
1062
|
+
method: Methods,
|
|
1063
|
+
novalidate: ["novalidate"],
|
|
1064
|
+
target: Targets
|
|
1065
|
+
}
|
|
1066
|
+
},
|
|
1067
|
+
h1: S,
|
|
1068
|
+
h2: S,
|
|
1069
|
+
h3: S,
|
|
1070
|
+
h4: S,
|
|
1071
|
+
h5: S,
|
|
1072
|
+
h6: S,
|
|
1073
|
+
head: {
|
|
1074
|
+
children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
|
|
1075
|
+
},
|
|
1076
|
+
header: S,
|
|
1077
|
+
hgroup: S,
|
|
1078
|
+
hr: S,
|
|
1079
|
+
html: {
|
|
1080
|
+
attrs: {
|
|
1081
|
+
manifest: null
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
i: S,
|
|
1085
|
+
iframe: {
|
|
1086
|
+
attrs: {
|
|
1087
|
+
src: null,
|
|
1088
|
+
srcdoc: null,
|
|
1089
|
+
name: null,
|
|
1090
|
+
width: null,
|
|
1091
|
+
height: null,
|
|
1092
|
+
sandbox: ["allow-top-navigation", "allow-same-origin", "allow-forms", "allow-scripts"],
|
|
1093
|
+
seamless: ["seamless"]
|
|
1094
|
+
}
|
|
1095
|
+
},
|
|
1096
|
+
img: {
|
|
1097
|
+
attrs: {
|
|
1098
|
+
alt: null,
|
|
1099
|
+
src: null,
|
|
1100
|
+
ismap: null,
|
|
1101
|
+
usemap: null,
|
|
1102
|
+
width: null,
|
|
1103
|
+
height: null,
|
|
1104
|
+
crossorigin: ["anonymous", "use-credentials"]
|
|
1105
|
+
}
|
|
1106
|
+
},
|
|
1107
|
+
input: {
|
|
1108
|
+
attrs: {
|
|
1109
|
+
alt: null,
|
|
1110
|
+
dirname: null,
|
|
1111
|
+
form: null,
|
|
1112
|
+
formaction: null,
|
|
1113
|
+
height: null,
|
|
1114
|
+
list: null,
|
|
1115
|
+
max: null,
|
|
1116
|
+
maxlength: null,
|
|
1117
|
+
min: null,
|
|
1118
|
+
name: null,
|
|
1119
|
+
pattern: null,
|
|
1120
|
+
placeholder: null,
|
|
1121
|
+
size: null,
|
|
1122
|
+
src: null,
|
|
1123
|
+
step: null,
|
|
1124
|
+
value: null,
|
|
1125
|
+
width: null,
|
|
1126
|
+
accept: ["audio/*", "video/*", "image/*"],
|
|
1127
|
+
autocomplete: ["on", "off"],
|
|
1128
|
+
autofocus: ["autofocus"],
|
|
1129
|
+
checked: ["checked"],
|
|
1130
|
+
disabled: ["disabled"],
|
|
1131
|
+
formenctype: Encs,
|
|
1132
|
+
formmethod: Methods,
|
|
1133
|
+
formnovalidate: ["novalidate"],
|
|
1134
|
+
formtarget: Targets,
|
|
1135
|
+
multiple: ["multiple"],
|
|
1136
|
+
readonly: ["readonly"],
|
|
1137
|
+
required: ["required"],
|
|
1138
|
+
type: ["hidden", "text", "search", "tel", "url", "email", "password", "datetime", "date", "month", "week", "time", "datetime-local", "number", "range", "color", "checkbox", "radio", "file", "submit", "image", "reset", "button"]
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
ins: {
|
|
1142
|
+
attrs: {
|
|
1143
|
+
cite: null,
|
|
1144
|
+
datetime: null
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
kbd: S,
|
|
1148
|
+
keygen: {
|
|
1149
|
+
attrs: {
|
|
1150
|
+
challenge: null,
|
|
1151
|
+
form: null,
|
|
1152
|
+
name: null,
|
|
1153
|
+
autofocus: ["autofocus"],
|
|
1154
|
+
disabled: ["disabled"],
|
|
1155
|
+
keytype: ["RSA"]
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1158
|
+
label: {
|
|
1159
|
+
attrs: {
|
|
1160
|
+
for: null,
|
|
1161
|
+
form: null
|
|
1162
|
+
}
|
|
1163
|
+
},
|
|
1164
|
+
legend: S,
|
|
1165
|
+
li: {
|
|
1166
|
+
attrs: {
|
|
1167
|
+
value: null
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
link: {
|
|
1171
|
+
attrs: {
|
|
1172
|
+
href: null,
|
|
1173
|
+
type: null,
|
|
1174
|
+
hreflang: null,
|
|
1175
|
+
media: null,
|
|
1176
|
+
sizes: ["all", "16x16", "16x16 32x32", "16x16 32x32 64x64"]
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1179
|
+
map: {
|
|
1180
|
+
attrs: {
|
|
1181
|
+
name: null
|
|
1182
|
+
}
|
|
1183
|
+
},
|
|
1184
|
+
mark: S,
|
|
1185
|
+
menu: {
|
|
1186
|
+
attrs: {
|
|
1187
|
+
label: null,
|
|
1188
|
+
type: ["list", "context", "toolbar"]
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
1191
|
+
meta: {
|
|
1192
|
+
attrs: {
|
|
1193
|
+
content: null,
|
|
1194
|
+
charset: Charsets,
|
|
1195
|
+
name: ["viewport", "application-name", "author", "description", "generator", "keywords"],
|
|
1196
|
+
"http-equiv": ["content-language", "content-type", "default-style", "refresh"]
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
meter: {
|
|
1200
|
+
attrs: {
|
|
1201
|
+
value: null,
|
|
1202
|
+
min: null,
|
|
1203
|
+
low: null,
|
|
1204
|
+
high: null,
|
|
1205
|
+
max: null,
|
|
1206
|
+
optimum: null
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1209
|
+
nav: S,
|
|
1210
|
+
noscript: S,
|
|
1211
|
+
object: {
|
|
1212
|
+
attrs: {
|
|
1213
|
+
data: null,
|
|
1214
|
+
type: null,
|
|
1215
|
+
name: null,
|
|
1216
|
+
usemap: null,
|
|
1217
|
+
form: null,
|
|
1218
|
+
width: null,
|
|
1219
|
+
height: null,
|
|
1220
|
+
typemustmatch: ["typemustmatch"]
|
|
1221
|
+
}
|
|
1222
|
+
},
|
|
1223
|
+
ol: {
|
|
1224
|
+
attrs: {
|
|
1225
|
+
reversed: ["reversed"],
|
|
1226
|
+
start: null,
|
|
1227
|
+
type: ["1", "a", "A", "i", "I"]
|
|
1228
|
+
},
|
|
1229
|
+
children: ["li", "script", "template", "ul", "ol"]
|
|
1230
|
+
},
|
|
1231
|
+
optgroup: {
|
|
1232
|
+
attrs: {
|
|
1233
|
+
disabled: ["disabled"],
|
|
1234
|
+
label: null
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
option: {
|
|
1238
|
+
attrs: {
|
|
1239
|
+
disabled: ["disabled"],
|
|
1240
|
+
label: null,
|
|
1241
|
+
selected: ["selected"],
|
|
1242
|
+
value: null
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
output: {
|
|
1246
|
+
attrs: {
|
|
1247
|
+
for: null,
|
|
1248
|
+
form: null,
|
|
1249
|
+
name: null
|
|
1250
|
+
}
|
|
1251
|
+
},
|
|
1252
|
+
p: S,
|
|
1253
|
+
param: {
|
|
1254
|
+
attrs: {
|
|
1255
|
+
name: null,
|
|
1256
|
+
value: null
|
|
1257
|
+
}
|
|
1258
|
+
},
|
|
1259
|
+
pre: S,
|
|
1260
|
+
progress: {
|
|
1261
|
+
attrs: {
|
|
1262
|
+
value: null,
|
|
1263
|
+
max: null
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1266
|
+
q: {
|
|
1267
|
+
attrs: {
|
|
1268
|
+
cite: null
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
rp: S,
|
|
1272
|
+
rt: S,
|
|
1273
|
+
ruby: S,
|
|
1274
|
+
samp: S,
|
|
1275
|
+
script: {
|
|
1276
|
+
attrs: {
|
|
1277
|
+
type: ["text/javascript"],
|
|
1278
|
+
src: null,
|
|
1279
|
+
async: ["async"],
|
|
1280
|
+
defer: ["defer"],
|
|
1281
|
+
charset: Charsets
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1284
|
+
section: S,
|
|
1285
|
+
select: {
|
|
1286
|
+
attrs: {
|
|
1287
|
+
form: null,
|
|
1288
|
+
name: null,
|
|
1289
|
+
size: null,
|
|
1290
|
+
autofocus: ["autofocus"],
|
|
1291
|
+
disabled: ["disabled"],
|
|
1292
|
+
multiple: ["multiple"]
|
|
1293
|
+
}
|
|
1294
|
+
},
|
|
1295
|
+
slot: {
|
|
1296
|
+
attrs: {
|
|
1297
|
+
name: null
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
small: S,
|
|
1301
|
+
source: {
|
|
1302
|
+
attrs: {
|
|
1303
|
+
src: null,
|
|
1304
|
+
type: null,
|
|
1305
|
+
media: null
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1308
|
+
span: S,
|
|
1309
|
+
strong: S,
|
|
1310
|
+
style: {
|
|
1311
|
+
attrs: {
|
|
1312
|
+
type: ["text/css"],
|
|
1313
|
+
media: null,
|
|
1314
|
+
scoped: null
|
|
1315
|
+
}
|
|
1316
|
+
},
|
|
1317
|
+
sub: S,
|
|
1318
|
+
summary: S,
|
|
1319
|
+
sup: S,
|
|
1320
|
+
table: S,
|
|
1321
|
+
tbody: S,
|
|
1322
|
+
td: {
|
|
1323
|
+
attrs: {
|
|
1324
|
+
colspan: null,
|
|
1325
|
+
rowspan: null,
|
|
1326
|
+
headers: null
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
template: S,
|
|
1330
|
+
textarea: {
|
|
1331
|
+
attrs: {
|
|
1332
|
+
dirname: null,
|
|
1333
|
+
form: null,
|
|
1334
|
+
maxlength: null,
|
|
1335
|
+
name: null,
|
|
1336
|
+
placeholder: null,
|
|
1337
|
+
rows: null,
|
|
1338
|
+
cols: null,
|
|
1339
|
+
autofocus: ["autofocus"],
|
|
1340
|
+
disabled: ["disabled"],
|
|
1341
|
+
readonly: ["readonly"],
|
|
1342
|
+
required: ["required"],
|
|
1343
|
+
wrap: ["soft", "hard"]
|
|
1344
|
+
}
|
|
1345
|
+
},
|
|
1346
|
+
tfoot: S,
|
|
1347
|
+
th: {
|
|
1348
|
+
attrs: {
|
|
1349
|
+
colspan: null,
|
|
1350
|
+
rowspan: null,
|
|
1351
|
+
headers: null,
|
|
1352
|
+
scope: ["row", "col", "rowgroup", "colgroup"]
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
thead: S,
|
|
1356
|
+
time: {
|
|
1357
|
+
attrs: {
|
|
1358
|
+
datetime: null
|
|
1359
|
+
}
|
|
1360
|
+
},
|
|
1361
|
+
title: S,
|
|
1362
|
+
tr: S,
|
|
1363
|
+
track: {
|
|
1364
|
+
attrs: {
|
|
1365
|
+
src: null,
|
|
1366
|
+
label: null,
|
|
1367
|
+
default: null,
|
|
1368
|
+
kind: ["subtitles", "captions", "descriptions", "chapters", "metadata"],
|
|
1369
|
+
srclang: null
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
ul: {
|
|
1373
|
+
children: ["li", "script", "template", "ul", "ol"]
|
|
1374
|
+
},
|
|
1375
|
+
var: S,
|
|
1376
|
+
video: {
|
|
1377
|
+
attrs: {
|
|
1378
|
+
src: null,
|
|
1379
|
+
poster: null,
|
|
1380
|
+
width: null,
|
|
1381
|
+
height: null,
|
|
1382
|
+
crossorigin: ["anonymous", "use-credentials"],
|
|
1383
|
+
preload: ["auto", "metadata", "none"],
|
|
1384
|
+
autoplay: ["autoplay"],
|
|
1385
|
+
mediagroup: ["movie"],
|
|
1386
|
+
muted: ["muted"],
|
|
1387
|
+
controls: ["controls"]
|
|
1388
|
+
}
|
|
1389
|
+
},
|
|
1390
|
+
wbr: S
|
|
1391
|
+
};
|
|
1392
|
+
const GlobalAttrs = {
|
|
1393
|
+
accesskey: null,
|
|
1394
|
+
class: null,
|
|
1395
|
+
contenteditable: Bool,
|
|
1396
|
+
contextmenu: null,
|
|
1397
|
+
dir: ["ltr", "rtl", "auto"],
|
|
1398
|
+
draggable: ["true", "false", "auto"],
|
|
1399
|
+
dropzone: ["copy", "move", "link", "string:", "file:"],
|
|
1400
|
+
hidden: ["hidden"],
|
|
1401
|
+
id: null,
|
|
1402
|
+
inert: ["inert"],
|
|
1403
|
+
itemid: null,
|
|
1404
|
+
itemprop: null,
|
|
1405
|
+
itemref: null,
|
|
1406
|
+
itemscope: ["itemscope"],
|
|
1407
|
+
itemtype: null,
|
|
1408
|
+
lang: ["ar", "bn", "de", "en-GB", "en-US", "es", "fr", "hi", "id", "ja", "pa", "pt", "ru", "tr", "zh"],
|
|
1409
|
+
spellcheck: Bool,
|
|
1410
|
+
autocorrect: Bool,
|
|
1411
|
+
autocapitalize: Bool,
|
|
1412
|
+
style: null,
|
|
1413
|
+
tabindex: null,
|
|
1414
|
+
title: null,
|
|
1415
|
+
translate: ["yes", "no"],
|
|
1416
|
+
rel: ["stylesheet", "alternate", "author", "bookmark", "help", "license", "next", "nofollow", "noreferrer", "prefetch", "prev", "search", "tag"],
|
|
1417
|
+
role: /*@__PURE__*/"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),
|
|
1418
|
+
"aria-activedescendant": null,
|
|
1419
|
+
"aria-atomic": Bool,
|
|
1420
|
+
"aria-autocomplete": ["inline", "list", "both", "none"],
|
|
1421
|
+
"aria-busy": Bool,
|
|
1422
|
+
"aria-checked": ["true", "false", "mixed", "undefined"],
|
|
1423
|
+
"aria-controls": null,
|
|
1424
|
+
"aria-describedby": null,
|
|
1425
|
+
"aria-disabled": Bool,
|
|
1426
|
+
"aria-dropeffect": null,
|
|
1427
|
+
"aria-expanded": ["true", "false", "undefined"],
|
|
1428
|
+
"aria-flowto": null,
|
|
1429
|
+
"aria-grabbed": ["true", "false", "undefined"],
|
|
1430
|
+
"aria-haspopup": Bool,
|
|
1431
|
+
"aria-hidden": Bool,
|
|
1432
|
+
"aria-invalid": ["true", "false", "grammar", "spelling"],
|
|
1433
|
+
"aria-label": null,
|
|
1434
|
+
"aria-labelledby": null,
|
|
1435
|
+
"aria-level": null,
|
|
1436
|
+
"aria-live": ["off", "polite", "assertive"],
|
|
1437
|
+
"aria-multiline": Bool,
|
|
1438
|
+
"aria-multiselectable": Bool,
|
|
1439
|
+
"aria-owns": null,
|
|
1440
|
+
"aria-posinset": null,
|
|
1441
|
+
"aria-pressed": ["true", "false", "mixed", "undefined"],
|
|
1442
|
+
"aria-readonly": Bool,
|
|
1443
|
+
"aria-relevant": null,
|
|
1444
|
+
"aria-required": Bool,
|
|
1445
|
+
"aria-selected": ["true", "false", "undefined"],
|
|
1446
|
+
"aria-setsize": null,
|
|
1447
|
+
"aria-sort": ["ascending", "descending", "none", "other"],
|
|
1448
|
+
"aria-valuemax": null,
|
|
1449
|
+
"aria-valuemin": null,
|
|
1450
|
+
"aria-valuenow": null,
|
|
1451
|
+
"aria-valuetext": null
|
|
1452
|
+
};
|
|
1453
|
+
const eventAttributes = /*@__PURE__*/("beforeunload copy cut dragstart dragover dragleave dragenter dragend " + "drag paste focus blur change click load mousedown mouseenter mouseleave " + "mouseup keydown keyup resize scroll unload").split(" ").map(n => "on" + n);
|
|
1454
|
+
for (let a of eventAttributes) GlobalAttrs[a] = null;
|
|
1455
|
+
class Schema {
|
|
1456
|
+
constructor(extraTags, extraAttrs) {
|
|
1457
|
+
this.tags = Object.assign(Object.assign({}, Tags), extraTags);
|
|
1458
|
+
this.globalAttrs = Object.assign(Object.assign({}, GlobalAttrs), extraAttrs);
|
|
1459
|
+
this.allTags = Object.keys(this.tags);
|
|
1460
|
+
this.globalAttrNames = Object.keys(this.globalAttrs);
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
Schema.default = /*@__PURE__*/new Schema();
|
|
1464
|
+
function elementName(doc, tree) {
|
|
1465
|
+
let max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : doc.length;
|
|
1466
|
+
if (!tree) return "";
|
|
1467
|
+
let tag = tree.firstChild;
|
|
1468
|
+
let name = tag && tag.getChild("TagName");
|
|
1469
|
+
return name ? doc.sliceString(name.from, Math.min(name.to, max)) : "";
|
|
1470
|
+
}
|
|
1471
|
+
function findParentElement(tree) {
|
|
1472
|
+
let skip = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1473
|
+
for (; tree; tree = tree.parent) if (tree.name == "Element") {
|
|
1474
|
+
if (skip) skip = false;else return tree;
|
|
1475
|
+
}
|
|
1476
|
+
return null;
|
|
1477
|
+
}
|
|
1478
|
+
function allowedChildren(doc, tree, schema) {
|
|
1479
|
+
let parentInfo = schema.tags[elementName(doc, findParentElement(tree))];
|
|
1480
|
+
return (parentInfo === null || parentInfo === void 0 ? void 0 : parentInfo.children) || schema.allTags;
|
|
1481
|
+
}
|
|
1482
|
+
function openTags(doc, tree) {
|
|
1483
|
+
let open = [];
|
|
1484
|
+
for (let parent = findParentElement(tree); parent && !parent.type.isTop; parent = findParentElement(parent.parent)) {
|
|
1485
|
+
let tagName = elementName(doc, parent);
|
|
1486
|
+
if (tagName && parent.lastChild.name == "CloseTag") break;
|
|
1487
|
+
if (tagName && open.indexOf(tagName) < 0 && (tree.name == "EndTag" || tree.from >= parent.firstChild.to)) open.push(tagName);
|
|
1488
|
+
}
|
|
1489
|
+
return open;
|
|
1490
|
+
}
|
|
1491
|
+
const identifier = /^[:\-\.\w\u00b7-\uffff]*$/;
|
|
1492
|
+
function completeTag(state, schema, tree, from, to) {
|
|
1493
|
+
let end = /\s*>/.test(state.sliceDoc(to, to + 5)) ? "" : ">";
|
|
1494
|
+
let parent = findParentElement(tree, true);
|
|
1495
|
+
return {
|
|
1496
|
+
from,
|
|
1497
|
+
to,
|
|
1498
|
+
options: allowedChildren(state.doc, parent, schema).map(tagName => ({
|
|
1499
|
+
label: tagName,
|
|
1500
|
+
type: "type"
|
|
1501
|
+
})).concat(openTags(state.doc, tree).map((tag, i) => ({
|
|
1502
|
+
label: "/" + tag,
|
|
1503
|
+
apply: "/" + tag + end,
|
|
1504
|
+
type: "type",
|
|
1505
|
+
boost: 99 - i
|
|
1506
|
+
}))),
|
|
1507
|
+
validFor: /^\/?[:\-\.\w\u00b7-\uffff]*$/
|
|
1508
|
+
};
|
|
1509
|
+
}
|
|
1510
|
+
function completeCloseTag(state, tree, from, to) {
|
|
1511
|
+
let end = /\s*>/.test(state.sliceDoc(to, to + 5)) ? "" : ">";
|
|
1512
|
+
return {
|
|
1513
|
+
from,
|
|
1514
|
+
to,
|
|
1515
|
+
options: openTags(state.doc, tree).map((tag, i) => ({
|
|
1516
|
+
label: tag,
|
|
1517
|
+
apply: tag + end,
|
|
1518
|
+
type: "type",
|
|
1519
|
+
boost: 99 - i
|
|
1520
|
+
})),
|
|
1521
|
+
validFor: identifier
|
|
1522
|
+
};
|
|
1523
|
+
}
|
|
1524
|
+
function completeStartTag(state, schema, tree, pos) {
|
|
1525
|
+
let options = [],
|
|
1526
|
+
level = 0;
|
|
1527
|
+
for (let tagName of allowedChildren(state.doc, tree, schema)) options.push({
|
|
1528
|
+
label: "<" + tagName,
|
|
1529
|
+
type: "type"
|
|
1530
|
+
});
|
|
1531
|
+
for (let open of openTags(state.doc, tree)) options.push({
|
|
1532
|
+
label: "</" + open + ">",
|
|
1533
|
+
type: "type",
|
|
1534
|
+
boost: 99 - level++
|
|
1535
|
+
});
|
|
1536
|
+
return {
|
|
1537
|
+
from: pos,
|
|
1538
|
+
to: pos,
|
|
1539
|
+
options,
|
|
1540
|
+
validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/
|
|
1541
|
+
};
|
|
1542
|
+
}
|
|
1543
|
+
function completeAttrName(state, schema, tree, from, to) {
|
|
1544
|
+
let elt = findParentElement(tree),
|
|
1545
|
+
info = elt ? schema.tags[elementName(state.doc, elt)] : null;
|
|
1546
|
+
let localAttrs = info && info.attrs ? Object.keys(info.attrs) : [];
|
|
1547
|
+
let names = info && info.globalAttrs === false ? localAttrs : localAttrs.length ? localAttrs.concat(schema.globalAttrNames) : schema.globalAttrNames;
|
|
1548
|
+
return {
|
|
1549
|
+
from,
|
|
1550
|
+
to,
|
|
1551
|
+
options: names.map(attrName => ({
|
|
1552
|
+
label: attrName,
|
|
1553
|
+
type: "property"
|
|
1554
|
+
})),
|
|
1555
|
+
validFor: identifier
|
|
1556
|
+
};
|
|
1557
|
+
}
|
|
1558
|
+
function completeAttrValue(state, schema, tree, from, to) {
|
|
1559
|
+
var _a;
|
|
1560
|
+
let nameNode = (_a = tree.parent) === null || _a === void 0 ? void 0 : _a.getChild("AttributeName");
|
|
1561
|
+
let options = [],
|
|
1562
|
+
token = undefined;
|
|
1563
|
+
if (nameNode) {
|
|
1564
|
+
let attrName = state.sliceDoc(nameNode.from, nameNode.to);
|
|
1565
|
+
let attrs = schema.globalAttrs[attrName];
|
|
1566
|
+
if (!attrs) {
|
|
1567
|
+
let elt = findParentElement(tree),
|
|
1568
|
+
info = elt ? schema.tags[elementName(state.doc, elt)] : null;
|
|
1569
|
+
attrs = (info === null || info === void 0 ? void 0 : info.attrs) && info.attrs[attrName];
|
|
1570
|
+
}
|
|
1571
|
+
if (attrs) {
|
|
1572
|
+
let base = state.sliceDoc(from, to).toLowerCase(),
|
|
1573
|
+
quoteStart = '"',
|
|
1574
|
+
quoteEnd = '"';
|
|
1575
|
+
if (/^['"]/.test(base)) {
|
|
1576
|
+
token = base[0] == '"' ? /^[^"]*$/ : /^[^']*$/;
|
|
1577
|
+
quoteStart = "";
|
|
1578
|
+
quoteEnd = state.sliceDoc(to, to + 1) == base[0] ? "" : base[0];
|
|
1579
|
+
base = base.slice(1);
|
|
1580
|
+
from++;
|
|
1581
|
+
} else {
|
|
1582
|
+
token = /^[^\s<>='"]*$/;
|
|
1583
|
+
}
|
|
1584
|
+
for (let value of attrs) options.push({
|
|
1585
|
+
label: value,
|
|
1586
|
+
apply: quoteStart + value + quoteEnd,
|
|
1587
|
+
type: "constant"
|
|
1588
|
+
});
|
|
1589
|
+
}
|
|
1590
|
+
}
|
|
1591
|
+
return {
|
|
1592
|
+
from,
|
|
1593
|
+
to,
|
|
1594
|
+
options,
|
|
1595
|
+
validFor: token
|
|
1596
|
+
};
|
|
1597
|
+
}
|
|
1598
|
+
function htmlCompletionFor(schema, context) {
|
|
1599
|
+
let {
|
|
1600
|
+
state,
|
|
1601
|
+
pos
|
|
1602
|
+
} = context,
|
|
1603
|
+
around = syntaxTree(state).resolveInner(pos),
|
|
1604
|
+
tree = around.resolve(pos, -1);
|
|
1605
|
+
for (let scan = pos, before; around == tree && (before = tree.childBefore(scan));) {
|
|
1606
|
+
let last = before.lastChild;
|
|
1607
|
+
if (!last || !last.type.isError || last.from < last.to) break;
|
|
1608
|
+
around = tree = before;
|
|
1609
|
+
scan = last.from;
|
|
1610
|
+
}
|
|
1611
|
+
if (tree.name == "TagName") {
|
|
1612
|
+
return tree.parent && /CloseTag$/.test(tree.parent.name) ? completeCloseTag(state, tree, tree.from, pos) : completeTag(state, schema, tree, tree.from, pos);
|
|
1613
|
+
} else if (tree.name == "StartTag") {
|
|
1614
|
+
return completeTag(state, schema, tree, pos, pos);
|
|
1615
|
+
} else if (tree.name == "StartCloseTag" || tree.name == "IncompleteCloseTag") {
|
|
1616
|
+
return completeCloseTag(state, tree, pos, pos);
|
|
1617
|
+
} else if (context.explicit && (tree.name == "OpenTag" || tree.name == "SelfClosingTag") || tree.name == "AttributeName") {
|
|
1618
|
+
return completeAttrName(state, schema, tree, tree.name == "AttributeName" ? tree.from : pos, pos);
|
|
1619
|
+
} else if (tree.name == "Is" || tree.name == "AttributeValue" || tree.name == "UnquotedAttributeValue") {
|
|
1620
|
+
return completeAttrValue(state, schema, tree, tree.name == "Is" ? pos : tree.from, pos);
|
|
1621
|
+
} else if (context.explicit && (around.name == "Element" || around.name == "Text" || around.name == "Document")) {
|
|
1622
|
+
return completeStartTag(state, schema, tree, pos);
|
|
1623
|
+
} else {
|
|
1624
|
+
return null;
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
/**
|
|
1628
|
+
Create a completion source for HTML extended with additional tags
|
|
1629
|
+
or attributes.
|
|
1630
|
+
*/
|
|
1631
|
+
function htmlCompletionSourceWith(config) {
|
|
1632
|
+
let {
|
|
1633
|
+
extraTags,
|
|
1634
|
+
extraGlobalAttributes: extraAttrs
|
|
1635
|
+
} = config;
|
|
1636
|
+
let schema = extraAttrs || extraTags ? new Schema(extraTags, extraAttrs) : Schema.default;
|
|
1637
|
+
return context => htmlCompletionFor(schema, context);
|
|
1638
|
+
}
|
|
1639
|
+
const defaultNesting = [{
|
|
1640
|
+
tag: "script",
|
|
1641
|
+
attrs: attrs => attrs.type == "text/typescript" || attrs.lang == "ts",
|
|
1642
|
+
parser: typescriptLanguage.parser
|
|
1643
|
+
}, {
|
|
1644
|
+
tag: "script",
|
|
1645
|
+
attrs: attrs => attrs.type == "text/babel" || attrs.type == "text/jsx",
|
|
1646
|
+
parser: jsxLanguage.parser
|
|
1647
|
+
}, {
|
|
1648
|
+
tag: "script",
|
|
1649
|
+
attrs: attrs => attrs.type == "text/typescript-jsx",
|
|
1650
|
+
parser: tsxLanguage.parser
|
|
1651
|
+
}, {
|
|
1652
|
+
tag: "script",
|
|
1653
|
+
attrs(attrs) {
|
|
1654
|
+
return !attrs.type || /^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(attrs.type);
|
|
1655
|
+
},
|
|
1656
|
+
parser: javascriptLanguage.parser
|
|
1657
|
+
}, {
|
|
1658
|
+
tag: "style",
|
|
1659
|
+
attrs(attrs) {
|
|
1660
|
+
return (!attrs.lang || attrs.lang == "css") && (!attrs.type || /^(text\/)?(x-)?(stylesheet|css)$/i.test(attrs.type));
|
|
1661
|
+
},
|
|
1662
|
+
parser: cssLanguage.parser
|
|
1663
|
+
}];
|
|
1664
|
+
const defaultAttrs = /*@__PURE__*/[{
|
|
1665
|
+
name: "style",
|
|
1666
|
+
parser: /*@__PURE__*/cssLanguage.parser.configure({
|
|
1667
|
+
top: "Styles"
|
|
1668
|
+
})
|
|
1669
|
+
}].concat( /*@__PURE__*/eventAttributes.map(name => ({
|
|
1670
|
+
name,
|
|
1671
|
+
parser: javascriptLanguage.parser
|
|
1672
|
+
})));
|
|
1673
|
+
/**
|
|
1674
|
+
A language provider based on the [Lezer HTML
|
|
1675
|
+
parser](https://github.com/lezer-parser/html), extended with the
|
|
1676
|
+
JavaScript and CSS parsers to parse the content of `<script>` and
|
|
1677
|
+
`<style>` tags.
|
|
1678
|
+
*/
|
|
1679
|
+
const htmlPlain = /*@__PURE__*/LRLanguage.define({
|
|
1680
|
+
name: "html",
|
|
1681
|
+
parser: /*@__PURE__*/parser$1.configure({
|
|
1682
|
+
props: [/*@__PURE__*/indentNodeProp.add({
|
|
1683
|
+
Element(context) {
|
|
1684
|
+
let after = /^(\s*)(<\/)?/.exec(context.textAfter);
|
|
1685
|
+
if (context.node.to <= context.pos + after[0].length) return context.continue();
|
|
1686
|
+
return context.lineIndent(context.node.from) + (after[2] ? 0 : context.unit);
|
|
1687
|
+
},
|
|
1688
|
+
"OpenTag CloseTag SelfClosingTag"(context) {
|
|
1689
|
+
return context.column(context.node.from) + context.unit;
|
|
1690
|
+
},
|
|
1691
|
+
Document(context) {
|
|
1692
|
+
if (context.pos + /\s*/.exec(context.textAfter)[0].length < context.node.to) return context.continue();
|
|
1693
|
+
let endElt = null,
|
|
1694
|
+
close;
|
|
1695
|
+
for (let cur = context.node;;) {
|
|
1696
|
+
let last = cur.lastChild;
|
|
1697
|
+
if (!last || last.name != "Element" || last.to != cur.to) break;
|
|
1698
|
+
endElt = cur = last;
|
|
1699
|
+
}
|
|
1700
|
+
if (endElt && !((close = endElt.lastChild) && (close.name == "CloseTag" || close.name == "SelfClosingTag"))) return context.lineIndent(endElt.from) + context.unit;
|
|
1701
|
+
return null;
|
|
1702
|
+
}
|
|
1703
|
+
}), /*@__PURE__*/foldNodeProp.add({
|
|
1704
|
+
Element(node) {
|
|
1705
|
+
let first = node.firstChild,
|
|
1706
|
+
last = node.lastChild;
|
|
1707
|
+
if (!first || first.name != "OpenTag") return null;
|
|
1708
|
+
return {
|
|
1709
|
+
from: first.to,
|
|
1710
|
+
to: last.name == "CloseTag" ? last.from : node.to
|
|
1711
|
+
};
|
|
1712
|
+
}
|
|
1713
|
+
}), /*@__PURE__*/bracketMatchingHandle.add({
|
|
1714
|
+
"OpenTag CloseTag": node => node.getChild("TagName")
|
|
1715
|
+
})]
|
|
1716
|
+
}),
|
|
1717
|
+
languageData: {
|
|
1718
|
+
commentTokens: {
|
|
1719
|
+
block: {
|
|
1720
|
+
open: "<!--",
|
|
1721
|
+
close: "-->"
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
indentOnInput: /^\s*<\/\w+\W$/,
|
|
1725
|
+
wordChars: "-._"
|
|
1726
|
+
}
|
|
1727
|
+
});
|
|
1728
|
+
/**
|
|
1729
|
+
A language provider based on the [Lezer HTML
|
|
1730
|
+
parser](https://github.com/lezer-parser/html), extended with the
|
|
1731
|
+
JavaScript and CSS parsers to parse the content of `<script>` and
|
|
1732
|
+
`<style>` tags.
|
|
1733
|
+
*/
|
|
1734
|
+
const htmlLanguage = /*@__PURE__*/htmlPlain.configure({
|
|
1735
|
+
wrap: /*@__PURE__*/configureNesting(defaultNesting, defaultAttrs)
|
|
1736
|
+
});
|
|
1737
|
+
/**
|
|
1738
|
+
Language support for HTML, including
|
|
1739
|
+
[`htmlCompletion`](https://codemirror.net/6/docs/ref/#lang-html.htmlCompletion) and JavaScript and
|
|
1740
|
+
CSS support extensions.
|
|
1741
|
+
*/
|
|
1742
|
+
function html() {
|
|
1743
|
+
let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1744
|
+
let dialect = "",
|
|
1745
|
+
wrap;
|
|
1746
|
+
if (config.matchClosingTags === false) dialect = "noMatch";
|
|
1747
|
+
if (config.selfClosingTags === true) dialect = (dialect ? dialect + " " : "") + "selfClosing";
|
|
1748
|
+
if (config.nestedLanguages && config.nestedLanguages.length || config.nestedAttributes && config.nestedAttributes.length) wrap = configureNesting((config.nestedLanguages || []).concat(defaultNesting), (config.nestedAttributes || []).concat(defaultAttrs));
|
|
1749
|
+
let lang = wrap ? htmlPlain.configure({
|
|
1750
|
+
wrap,
|
|
1751
|
+
dialect
|
|
1752
|
+
}) : dialect ? htmlLanguage.configure({
|
|
1753
|
+
dialect
|
|
1754
|
+
}) : htmlLanguage;
|
|
1755
|
+
return new LanguageSupport(lang, [htmlLanguage.data.of({
|
|
1756
|
+
autocomplete: htmlCompletionSourceWith(config)
|
|
1757
|
+
}), config.autoCloseTags !== false ? autoCloseTags : [], javascript().support, css().support]);
|
|
1758
|
+
}
|
|
1759
|
+
const selfClosers = /*@__PURE__*/new Set( /*@__PURE__*/"area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));
|
|
1760
|
+
/**
|
|
1761
|
+
Extension that will automatically insert close tags when a `>` or
|
|
1762
|
+
`/` is typed.
|
|
1763
|
+
*/
|
|
1764
|
+
const autoCloseTags = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, text) => {
|
|
1765
|
+
if (view.composing || view.state.readOnly || from != to || text != ">" && text != "/" || !htmlLanguage.isActiveAt(view.state, from, -1)) return false;
|
|
1766
|
+
let {
|
|
1767
|
+
state
|
|
1768
|
+
} = view;
|
|
1769
|
+
let changes = state.changeByRange(range => {
|
|
1770
|
+
var _a, _b, _c;
|
|
1771
|
+
let {
|
|
1772
|
+
head
|
|
1773
|
+
} = range,
|
|
1774
|
+
around = syntaxTree(state).resolveInner(head, -1),
|
|
1775
|
+
name;
|
|
1776
|
+
if (around.name == "TagName" || around.name == "StartTag") around = around.parent;
|
|
1777
|
+
if (text == ">" && around.name == "OpenTag") {
|
|
1778
|
+
if (((_b = (_a = around.parent) === null || _a === void 0 ? void 0 : _a.lastChild) === null || _b === void 0 ? void 0 : _b.name) != "CloseTag" && (name = elementName(state.doc, around.parent, head)) && !selfClosers.has(name)) {
|
|
1779
|
+
let hasRightBracket = view.state.doc.sliceString(head, head + 1) === ">";
|
|
1780
|
+
let insert = `${hasRightBracket ? "" : ">"}</${name}>`;
|
|
1781
|
+
return {
|
|
1782
|
+
range: EditorSelection.cursor(head + 1),
|
|
1783
|
+
changes: {
|
|
1784
|
+
from: head + (hasRightBracket ? 1 : 0),
|
|
1785
|
+
insert
|
|
1786
|
+
}
|
|
1787
|
+
};
|
|
1788
|
+
}
|
|
1789
|
+
} else if (text == "/" && around.name == "OpenTag") {
|
|
1790
|
+
let empty = around.parent,
|
|
1791
|
+
base = empty === null || empty === void 0 ? void 0 : empty.parent;
|
|
1792
|
+
if (empty.from == head - 1 && ((_c = base.lastChild) === null || _c === void 0 ? void 0 : _c.name) != "CloseTag" && (name = elementName(state.doc, base, head)) && !selfClosers.has(name)) {
|
|
1793
|
+
let hasRightBracket = view.state.doc.sliceString(head, head + 1) === ">";
|
|
1794
|
+
let insert = `/${name}${hasRightBracket ? "" : ">"}`;
|
|
1795
|
+
let pos = head + insert.length + (hasRightBracket ? 1 : 0);
|
|
1796
|
+
return {
|
|
1797
|
+
range: EditorSelection.cursor(pos),
|
|
1798
|
+
changes: {
|
|
1799
|
+
from: head,
|
|
1800
|
+
insert
|
|
1801
|
+
}
|
|
1802
|
+
};
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
return {
|
|
1806
|
+
range
|
|
1807
|
+
};
|
|
1808
|
+
});
|
|
1809
|
+
if (changes.changes.empty) return false;
|
|
1810
|
+
view.dispatch(changes, {
|
|
1811
|
+
userEvent: "input.type",
|
|
1812
|
+
scrollIntoView: true
|
|
1813
|
+
});
|
|
1814
|
+
return true;
|
|
1815
|
+
});
|
|
1816
|
+
|
|
1817
|
+
export { jsonParseLinter as a, css as c, html as h, json as j };
|