@onereach/ui-components 4.2.0-beta.2549.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.js +145 -0
- package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +91 -0
- package/dist/bundled/v2/components/OrCheckboxGroupV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrCheckboxGroupV3/index.js +31 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +226 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +91 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/index.js +23 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/styles.js +10 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/types.d.ts +8 -0
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +37 -39
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.vue.d.ts +18 -16
- package/dist/bundled/v2/components/OrCheckboxV3/index.js +1 -0
- package/dist/bundled/v2/components/OrCode/OrCode.js +3727 -6
- package/dist/bundled/v2/components/OrCode/index.js +2 -6
- package/dist/bundled/v2/components/OrCode/lang.js +3 -3897
- package/dist/bundled/v2/components/OrCode/theme.js +1 -2
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +0 -1
- package/dist/bundled/v2/components/OrConfirm/index.js +0 -1
- package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.js +127 -0
- package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.vue.d.ts +87 -0
- package/dist/bundled/v2/components/OrFormGroupV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrFormGroupV3/index.js +12 -0
- package/dist/bundled/v2/components/OrFormGroupV3/props.d.ts +4 -0
- package/dist/bundled/v2/components/OrFormGroupV3/props.js +7 -0
- package/dist/bundled/v2/components/OrFormGroupV3/styles.d.ts +5 -0
- package/dist/bundled/v2/components/OrFormGroupV3/styles.js +17 -0
- package/dist/bundled/v2/components/OrModal/OrModal.js +1266 -3
- package/dist/bundled/v2/components/OrModal/index.js +0 -1
- package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +132 -0
- package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +110 -0
- package/dist/bundled/v2/components/OrRadioGroupV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrRadioGroupV3/index.js +19 -0
- package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +1 -1
- package/dist/bundled/v2/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v2/components/OrTooltipContent/OrTooltipContent.js +2 -2
- package/dist/bundled/v2/components/index.d.ts +0 -1
- package/dist/bundled/v2/components/index.js +2 -15
- package/dist/bundled/v2/{index-f5487f12.js → index-6976c52a.js} +115 -3
- package/dist/bundled/v2/index.d.ts +1 -0
- package/dist/bundled/v2/index.js +8 -20
- package/dist/bundled/v2/{index-70ca38c5.js → lang-02d2bb2d.js} +3965 -73
- package/dist/bundled/v2/utils/functions/flattenDeep.d.ts +2 -0
- package/dist/bundled/v2/utils/functions/flattenDeep.js +5 -0
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-29e8ad0e.js → OrAvatar.vue_vue_type_script_lang-6511e348.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-a4a16fe5.js → OrButton.vue_vue_type_script_lang-da7f7ed0.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-c1d83552.js → OrCardCollection.vue_vue_type_script_lang-7a2e1332.js} +3 -3
- package/dist/bundled/v3/{OrCarousel.vue_vue_type_script_lang-0e87c56b.js → OrCarousel.vue_vue_type_script_lang-6976844a.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-6ff51af9.js → OrCheckbox.vue_vue_type_script_lang-11b16d93.js} +1 -1
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-60cefcbd.js → OrCheckbox.vue_vue_type_script_lang-b274a5ee.js} +27 -11
- package/dist/bundled/v3/OrCheckboxTree.vue_vue_type_script_lang-f9807b75.js +115 -0
- package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-ceebbd82.js → OrChip.vue_vue_type_script_lang-5a390853.js} +1 -1
- package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-94b456c7.js → OrChips.vue_vue_type_script_lang-d4bb44eb.js} +1 -1
- package/dist/bundled/{v2/index-16aee5bc.js → v3/OrCode.vue_vue_type_script_lang-5397df6a.js} +234 -14
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-36318ca2.js → OrConfirm.vue_vue_type_script_lang-89febea7.js} +2 -2
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-5c1a5d4a.js → OrDateTimePicker.vue_vue_type_script_lang-8ff54abd.js} +1 -1
- package/dist/bundled/v3/OrFormGroup.vue_vue_type_script_lang-1c6844d6.js +63 -0
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-5d204461.js → OrIconButton.vue_vue_type_script_lang-96cb5b59.js} +2 -2
- package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-424e2c26.js → OrInlineTextEdit.vue_vue_type_script_lang-45987769.js} +1 -1
- package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-c65271b9.js → OrList.vue_vue_type_script_lang-2c7537cc.js} +3 -3
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-d3dce7b8.js → OrListOfInputs.vue_vue_type_script_lang-009f62a5.js} +3 -3
- package/dist/bundled/v3/{useFocusTrap-9567b3c8.js → OrModal.vue_vue_type_script_lang-c53617ae.js} +105 -3
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-ef4f2661.js → OrNotification.vue_vue_type_script_lang-efb05bb2.js} +2 -2
- package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-0c461991.js → OrOverflowMenu.vue_vue_type_script_lang-ba50133f.js} +2 -2
- package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-3d308fef.js → OrPassword.vue_vue_type_script_lang-37f52611.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-86f4f5c7.js → OrSearch.vue_vue_type_script_lang-bcb935c3.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-f7601423.js → OrSelect.vue_vue_type_script_lang-098ea3ab.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-d2fecd97.js → OrSelect.vue_vue_type_script_lang-c82d8f58.js} +3 -3
- package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-900036a2.js → OrSlider.vue_vue_type_script_lang-45ecddbe.js} +1 -1
- package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-2821c496.js → OrStepper.vue_vue_type_script_lang-975a4df6.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-f06b54a2.js → OrTag.vue_vue_type_script_lang-621e9307.js} +1 -1
- package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-b8d5341b.js → OrTextbox.vue_vue_type_script_lang-812f302d.js} +1 -1
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +3 -3
- package/dist/bundled/v3/components/OrAvatar/index.js +2 -2
- package/dist/bundled/v3/components/OrButtonV2/OrButton.js +3 -3
- package/dist/bundled/v3/components/OrButtonV2/index.js +4 -4
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +6 -6
- package/dist/bundled/v3/components/OrCardCollection/index.js +5 -5
- package/dist/bundled/v3/components/OrCarousel/OrCarousel.js +3 -3
- package/dist/bundled/v3/components/OrCarousel/index.js +2 -2
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +3 -3
- package/dist/bundled/v3/components/OrCheckbox/index.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +121 -0
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +91 -0
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +40 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +90 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +91 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +28 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.js +10 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/types.d.ts +8 -0
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +12 -9
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +18 -16
- package/dist/bundled/v3/components/OrCheckboxV3/index.js +2 -1
- package/dist/bundled/v3/components/OrChip/OrChip.js +3 -3
- package/dist/bundled/v3/components/OrChip/index.js +2 -2
- package/dist/bundled/v3/components/OrChips/OrChips.js +4 -4
- package/dist/bundled/v3/components/OrChips/index.js +3 -3
- package/dist/bundled/v3/components/OrCode/OrCode.js +9 -13
- package/dist/bundled/v3/components/OrCode/index.js +7 -11
- package/dist/bundled/v3/components/OrCode/lang.js +3 -3897
- package/dist/bundled/v3/components/OrCode/theme.js +1 -2
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +7 -8
- package/dist/bundled/v3/components/OrConfirm/index.js +6 -7
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +5 -5
- package/dist/bundled/v3/components/OrDateTimePicker/index.js +4 -4
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.js +59 -0
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +87 -0
- package/dist/bundled/v3/components/OrFormGroupV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrFormGroupV3/index.js +15 -0
- package/dist/bundled/v3/components/OrFormGroupV3/props.d.ts +4 -0
- package/dist/bundled/v3/components/OrFormGroupV3/props.js +7 -0
- package/dist/bundled/v3/components/OrFormGroupV3/styles.d.ts +5 -0
- package/dist/bundled/v3/components/OrFormGroupV3/styles.js +17 -0
- package/dist/bundled/v3/components/OrIcon/OrIcon.js +2 -2
- package/dist/bundled/v3/components/OrIcon/index.js +1 -1
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +4 -4
- package/dist/bundled/v3/components/OrIconButtonV2/index.js +3 -3
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +5 -5
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +4 -4
- package/dist/bundled/v3/components/OrList/OrList.js +6 -6
- package/dist/bundled/v3/components/OrList/index.js +5 -5
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +7 -7
- package/dist/bundled/v3/components/OrListOfInputs/index.js +6 -6
- package/dist/bundled/v3/components/OrModal/OrModal.js +5 -6
- package/dist/bundled/v3/components/OrModal/index.js +4 -5
- package/dist/bundled/v3/components/OrNotification/OrNotification.js +5 -5
- package/dist/bundled/v3/components/OrNotification/index.js +4 -4
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +6 -6
- package/dist/bundled/v3/components/OrOverflowMenu/index.js +5 -5
- package/dist/bundled/v3/components/OrPassword/OrPassword.js +5 -5
- package/dist/bundled/v3/components/OrPassword/index.js +4 -4
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +104 -0
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +110 -0
- package/dist/bundled/v3/components/OrRadioGroupV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrRadioGroupV3/index.js +24 -0
- package/dist/bundled/v3/components/OrSearch/OrSearch.js +5 -5
- package/dist/bundled/v3/components/OrSearch/index.js +4 -4
- package/dist/bundled/v3/components/OrSelect/OrSelect.js +5 -5
- package/dist/bundled/v3/components/OrSelect/index.js +4 -4
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +4 -4
- package/dist/bundled/v3/components/OrSelectV3/index.js +3 -3
- package/dist/bundled/v3/components/OrSlider/OrSlider.js +3 -3
- package/dist/bundled/v3/components/OrSlider/index.js +2 -2
- package/dist/bundled/v3/components/OrStepper/OrStepper.js +4 -4
- package/dist/bundled/v3/components/OrStepper/index.js +3 -3
- package/dist/bundled/v3/components/OrTag/OrTag.js +3 -3
- package/dist/bundled/v3/components/OrTag/index.js +2 -2
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +5 -5
- package/dist/bundled/v3/components/OrTextbox/index.js +4 -4
- package/dist/bundled/v3/components/OrToast/OrToast.js +3 -3
- package/dist/bundled/v3/components/OrToast/index.js +4 -4
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +5 -5
- package/dist/bundled/v3/components/OrToastContainer/index.js +4 -4
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +2 -2
- package/dist/bundled/v3/components/OrTooltip/index.js +1 -1
- package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.js +1 -1
- package/dist/bundled/v3/components/index.d.ts +0 -1
- package/dist/bundled/v3/components/index.js +31 -45
- package/dist/bundled/v3/{index-f5487f12.js → index-6976c52a.js} +115 -3
- package/dist/bundled/v3/index.d.ts +1 -0
- package/dist/bundled/v3/index.js +39 -53
- package/dist/bundled/v3/{index-70ca38c5.js → lang-02d2bb2d.js} +3965 -73
- package/dist/bundled/v3/utils/functions/flattenDeep.d.ts +2 -0
- package/dist/bundled/v3/utils/functions/flattenDeep.js +5 -0
- package/dist/esm/v2/{OrAvatar-da5cba16.js → OrAvatar-7c024521.js} +1 -1
- package/dist/esm/v2/{OrButton-bdddd8d4.js → OrButton-4e532ddb.js} +1 -1
- package/dist/esm/v2/{OrButton.vue_rollup-plugin-vue_styles.0-3dbd90b4.js → OrButton.vue_rollup-plugin-vue_styles.0-48c5883e.js} +2 -2
- package/dist/esm/v2/{OrCardCollection-4e014d25.js → OrCardCollection-9bf513b7.js} +5 -5
- package/dist/esm/v2/{OrCarousel-3c809a13.js → OrCarousel-e0c2e387.js} +1 -1
- package/dist/esm/v2/{OrCheckbox-dc587ec9.js → OrCheckbox-39c94019.js} +37 -40
- package/dist/esm/v2/{OrCheckbox-bf34eb0f.js → OrCheckbox-7b98fc08.js} +1 -1
- package/dist/esm/v2/OrCheckboxTree-7b81e76c.js +220 -0
- package/dist/esm/v2/{OrChip-416e848e.js → OrChip-8a1abfc5.js} +1 -1
- package/dist/esm/v2/{OrChips-77e789e9.js → OrChips-a01d8520.js} +1 -1
- package/dist/esm/v2/{OrChips.vue_rollup-plugin-vue_styles.0-e05c5ca8.js → OrChips.vue_rollup-plugin-vue_styles.0-3cbb0871.js} +1 -1
- package/dist/esm/v2/{OrCode-dcb0132a.js → OrCode-e54e09f7.js} +4 -4
- package/dist/esm/v2/{OrConfirm-497cd260.js → OrConfirm-5d5dd9bc.js} +3 -3
- package/dist/esm/v2/{OrDateTimePicker-c88ca716.js → OrDateTimePicker-6e2853ec.js} +3 -3
- package/dist/esm/v2/OrFormGroup-29a514db.js +141 -0
- package/dist/esm/v2/{OrIcon-8a6d663a.js → OrIcon-a40e60af.js} +2 -2
- package/dist/esm/v2/{OrIconButton-97bfd51d.js → OrIconButton-23972f7d.js} +1 -1
- package/dist/esm/v2/{OrIconButton.vue_rollup-plugin-vue_styles.0-e3806cef.js → OrIconButton.vue_rollup-plugin-vue_styles.0-277ce06c.js} +3 -3
- package/dist/esm/v2/{OrInlineTextEdit-e8414fb6.js → OrInlineTextEdit-9541b625.js} +3 -3
- package/dist/esm/v2/{OrList-a46d6306.js → OrList-61c7b8ea.js} +4 -4
- package/dist/esm/v2/{OrListOfInputs-33a7bf87.js → OrListOfInputs-e1b09290.js} +5 -5
- package/dist/esm/v2/{OrModal-6d84829c.js → OrModal-b9cfb8ec.js} +3 -3
- package/dist/esm/v2/{OrNotification-7945568d.js → OrNotification-fdb88eec.js} +4 -4
- package/dist/esm/v2/{OrOverflowMenu-5ce7171b.js → OrOverflowMenu-83540c76.js} +4 -4
- package/dist/esm/v2/{OrPassword-3597153d.js → OrPassword-022e10fd.js} +3 -3
- package/dist/esm/v2/{OrSearch-49ceaac4.js → OrSearch-620d5d76.js} +3 -3
- package/dist/esm/v2/{OrSelect-40183874.js → OrSelect-1865c781.js} +1 -1
- package/dist/esm/v2/{OrSelect-eb5cc918.js → OrSelect-d887118b.js} +4 -4
- package/dist/esm/v2/{OrSlider-32a14ca4.js → OrSlider-c0a7f9cf.js} +1 -1
- package/dist/esm/v2/{OrStepper-462bc9e6.js → OrStepper-b00f7531.js} +2 -2
- package/dist/esm/v2/{OrTag-a1fff567.js → OrTag-6349049b.js} +1 -1
- package/dist/esm/v2/{OrTextbox-0a89a533.js → OrTextbox-0373bd6a.js} +3 -3
- package/dist/esm/v2/{OrToastContainer-5ce15a5b.js → OrToastContainer-1625b803.js} +3 -3
- package/dist/esm/v2/{OrTooltip-cfb56e8f.js → OrTooltip-97a42707.js} +1 -1
- package/dist/esm/v2/{OrTooltip.vue_rollup-plugin-vue_styles.0-122f7804.js → OrTooltip.vue_rollup-plugin-vue_styles.0-a256ac18.js} +1 -1
- package/dist/esm/v2/{OrTooltipContent-c9540548.js → OrTooltipContent-d85e1071.js} +2 -2
- package/dist/esm/v2/components/index.d.ts +0 -1
- package/dist/esm/v2/components/index.js +34 -58
- package/dist/esm/v2/components/or-avatar/index.js +4 -4
- package/dist/esm/v2/components/or-button-v2/index.js +8 -8
- package/dist/esm/v2/components/or-card-collection/index.js +9 -9
- package/dist/esm/v2/components/or-carousel/index.js +4 -4
- package/dist/esm/v2/components/or-checkbox/index.js +4 -4
- package/dist/esm/v2/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +91 -0
- package/dist/esm/v2/components/or-checkbox-group-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +130 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +91 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +12 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/types.d.ts +8 -0
- package/dist/esm/v2/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -16
- package/dist/esm/v2/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v2/components/or-chips/index.js +6 -6
- package/dist/esm/v2/components/or-chips/or-chip/index.js +4 -4
- package/dist/esm/v2/components/or-code/index.js +9 -9
- package/dist/esm/v2/components/or-confirm/index.js +10 -10
- package/dist/esm/v2/components/or-date-time-picker/index.js +8 -8
- package/dist/esm/v2/components/or-form-group-v3/OrFormGroup.vue.d.ts +87 -0
- package/dist/esm/v2/components/or-form-group-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-form-group-v3/index.js +6 -0
- package/dist/esm/v2/components/or-form-group-v3/props.d.ts +4 -0
- package/dist/esm/v2/components/or-form-group-v3/styles.d.ts +5 -0
- package/dist/esm/v2/components/or-icon/index.js +3 -3
- package/dist/esm/v2/components/or-icon-button-v2/index.js +6 -6
- package/dist/esm/v2/components/or-inline-text-edit/index.js +8 -8
- package/dist/esm/v2/components/or-list/index.js +9 -9
- package/dist/esm/v2/components/or-list-of-inputs/index.js +10 -10
- package/dist/esm/v2/components/or-modal/index.js +8 -8
- package/dist/esm/v2/components/or-notification/index.js +8 -8
- package/dist/esm/v2/components/or-overflow-menu/index.js +9 -9
- package/dist/esm/v2/components/or-password/index.js +8 -8
- package/dist/esm/v2/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +110 -0
- package/dist/esm/v2/components/or-radio-group-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-radio-group-v3/index.js +124 -0
- package/dist/esm/v2/components/or-search/index.js +8 -8
- package/dist/esm/v2/components/or-select/index.js +7 -7
- package/dist/esm/v2/components/or-select-v3/index.js +2 -2
- package/dist/esm/v2/components/or-slider/index.js +4 -4
- package/dist/esm/v2/components/or-stepper/index.js +8 -8
- package/dist/esm/v2/components/or-tag/index.js +4 -4
- package/dist/esm/v2/components/or-textbox/index.js +8 -8
- package/dist/esm/v2/components/or-toast/index.js +8 -8
- package/dist/esm/v2/components/or-toast/or-toast-container/index.js +8 -8
- package/dist/esm/v2/components/or-tooltip/index.js +3 -3
- package/dist/esm/v2/components/or-tooltip/or-tooltip-content/index.js +1 -1
- package/dist/esm/v2/flattenDeep-e7a8b995.js +5 -0
- package/dist/esm/v2/index.d.ts +1 -0
- package/dist/esm/v2/index.js +35 -58
- package/dist/esm/v2/utils/functions/flattenDeep.d.ts +2 -0
- package/dist/esm/v3/{OrAvatar-b18f2208.js → OrAvatar-14a5c5f0.js} +1 -1
- package/dist/esm/v3/{OrButton-170b493f.js → OrButton-f8b10d79.js} +2 -2
- package/dist/esm/v3/{OrCardCollection-dc158967.js → OrCardCollection-ffbb9eda.js} +4 -4
- package/dist/esm/v3/{OrCarousel-8de5d65b.js → OrCarousel-03597740.js} +1 -1
- package/dist/esm/v3/{OrCheckbox-56f849f7.js → OrCheckbox-488b6915.js} +36 -19
- package/dist/esm/v3/{OrCheckbox-c2d9cf53.js → OrCheckbox-7efd5f26.js} +1 -1
- package/dist/esm/v3/OrCheckboxTree-87d0528b.js +182 -0
- package/dist/esm/v3/{OrChip-ccd4b331.js → OrChip-97a85e10.js} +1 -1
- package/dist/esm/v3/{OrChips-9a19aa03.js → OrChips-64b86761.js} +1 -1
- package/dist/esm/v3/{OrCode-b0b514ab.js → OrCode-6f2e4d99.js} +3 -3
- package/dist/esm/v3/{OrConfirm-1ffb7ed6.js → OrConfirm-ab04201f.js} +3 -3
- package/dist/esm/v3/{OrDateTimePicker-02c6de49.js → OrDateTimePicker-014f7819.js} +2 -2
- package/dist/esm/v3/OrFormGroup-9f581536.js +122 -0
- package/dist/esm/v3/{OrIcon-9b3d24cc.js → OrIcon-925c5413.js} +2 -2
- package/dist/esm/v3/{OrIconButton-9d08aa44.js → OrIconButton-5387fd59.js} +3 -3
- package/dist/esm/v3/{OrInlineTextEdit-8cfde85c.js → OrInlineTextEdit-6f97629f.js} +2 -2
- package/dist/esm/v3/{OrList-d3e330be.js → OrList-b8799cf4.js} +3 -3
- package/dist/esm/v3/{OrListOfInputs-3c8eaf97.js → OrListOfInputs-16ba8358.js} +4 -4
- package/dist/esm/v3/{OrModal-f8ae7146.js → OrModal-e6513e8c.js} +2 -2
- package/dist/esm/v3/{OrNotification-24192897.js → OrNotification-4c56f7ea.js} +3 -3
- package/dist/esm/v3/{OrOverflowMenu-a7568f8d.js → OrOverflowMenu-fe77e22c.js} +2 -2
- package/dist/esm/v3/{OrPassword-88a67993.js → OrPassword-9c8a458d.js} +2 -2
- package/dist/esm/v3/{OrSearch-fb2dd591.js → OrSearch-c4caf04e.js} +2 -2
- package/dist/esm/v3/{OrSelect-5502d82d.js → OrSelect-35b41c3f.js} +1 -1
- package/dist/esm/v3/{OrSelect-3d923250.js → OrSelect-d8a78242.js} +4 -4
- package/dist/esm/v3/{OrSlider-ae7b8a11.js → OrSlider-80e0f2e6.js} +1 -1
- package/dist/esm/v3/{OrStepper-446007c5.js → OrStepper-3a586401.js} +2 -2
- package/dist/esm/v3/{OrTag-38d1ba92.js → OrTag-e7adb078.js} +1 -1
- package/dist/esm/v3/{OrTextbox-7de2b10c.js → OrTextbox-f7388a30.js} +2 -2
- package/dist/esm/v3/{OrToastContainer-c3ecb1c8.js → OrToastContainer-94ba2803.js} +2 -2
- package/dist/esm/v3/{OrTooltip-be7209e5.js → OrTooltip-618ce7c9.js} +1 -1
- package/dist/esm/v3/{OrTooltipContent-68c34911.js → OrTooltipContent-37a5f562.js} +1 -1
- package/dist/esm/v3/components/index.d.ts +0 -1
- package/dist/esm/v3/components/index.js +30 -54
- package/dist/esm/v3/components/or-avatar/index.js +4 -4
- package/dist/esm/v3/components/or-button-v2/index.js +5 -5
- package/dist/esm/v3/components/or-card-collection/index.js +7 -7
- package/dist/esm/v3/components/or-carousel/index.js +4 -4
- package/dist/esm/v3/components/or-checkbox/index.js +4 -4
- package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +91 -0
- package/dist/esm/v3/components/or-checkbox-group-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +97 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +91 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +12 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/types.d.ts +8 -0
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +18 -16
- package/dist/esm/v3/components/or-checkbox-v3/index.js +2 -2
- package/dist/esm/v3/components/or-chips/index.js +5 -5
- package/dist/esm/v3/components/or-chips/or-chip/index.js +4 -4
- package/dist/esm/v3/components/or-code/index.js +7 -7
- package/dist/esm/v3/components/or-confirm/index.js +7 -7
- package/dist/esm/v3/components/or-date-time-picker/index.js +6 -6
- package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +87 -0
- package/dist/esm/v3/components/or-form-group-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-form-group-v3/index.js +6 -0
- package/dist/esm/v3/components/or-form-group-v3/props.d.ts +4 -0
- package/dist/esm/v3/components/or-form-group-v3/styles.d.ts +5 -0
- package/dist/esm/v3/components/or-icon/index.js +3 -3
- package/dist/esm/v3/components/or-icon-button-v2/index.js +4 -4
- package/dist/esm/v3/components/or-inline-text-edit/index.js +6 -6
- package/dist/esm/v3/components/or-list/index.js +6 -6
- package/dist/esm/v3/components/or-list-of-inputs/index.js +7 -7
- package/dist/esm/v3/components/or-modal/index.js +6 -6
- package/dist/esm/v3/components/or-notification/index.js +6 -6
- package/dist/esm/v3/components/or-overflow-menu/index.js +6 -6
- package/dist/esm/v3/components/or-password/index.js +6 -6
- package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +110 -0
- package/dist/esm/v3/components/or-radio-group-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-radio-group-v3/index.js +91 -0
- package/dist/esm/v3/components/or-search/index.js +6 -6
- package/dist/esm/v3/components/or-select/index.js +7 -7
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/components/or-slider/index.js +4 -4
- package/dist/esm/v3/components/or-stepper/index.js +6 -6
- package/dist/esm/v3/components/or-tag/index.js +4 -4
- package/dist/esm/v3/components/or-textbox/index.js +6 -6
- package/dist/esm/v3/components/or-toast/index.js +6 -6
- package/dist/esm/v3/components/or-toast/or-toast-container/index.js +6 -6
- package/dist/esm/v3/components/or-tooltip/index.js +2 -2
- package/dist/esm/v3/components/or-tooltip/or-tooltip-content/index.js +1 -1
- package/dist/esm/v3/flattenDeep-e7a8b995.js +5 -0
- package/dist/esm/v3/index.d.ts +1 -0
- package/dist/esm/v3/index.js +31 -54
- package/dist/esm/v3/utils/functions/flattenDeep.d.ts +2 -0
- package/package.json +5 -25
- package/src/components/index.ts +0 -1
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.docs.mdx +7 -0
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.stories3.ts +373 -0
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.vue +80 -0
- package/src/components/or-checkbox-group-v3/index.ts +1 -0
- package/src/components/or-checkbox-tree-v3/OrCheckboxTree.docs.mdx +7 -0
- package/src/components/or-checkbox-tree-v3/OrCheckboxTree.stories3.ts +112 -0
- package/src/components/or-checkbox-tree-v3/OrCheckboxTree.vue +192 -0
- package/src/components/or-checkbox-tree-v3/index.ts +2 -0
- package/src/components/or-checkbox-tree-v3/styles.ts +15 -0
- package/src/components/or-checkbox-tree-v3/types.ts +8 -0
- package/src/components/or-checkbox-v3/OrCheckbox.vue +33 -13
- package/src/components/or-form-group-v3/OrFormGroup.stories3.ts +114 -0
- package/src/components/or-form-group-v3/OrFormGroup.vue +116 -0
- package/src/components/or-form-group-v3/index.ts +2 -0
- package/src/components/or-form-group-v3/props.ts +4 -0
- package/src/components/or-form-group-v3/styles.ts +33 -0
- package/src/components/or-radio-group-v3/OrRadioGroup.stories3.ts +81 -0
- package/src/components/or-radio-group-v3/OrRadioGroup.vue +80 -0
- package/src/components/or-radio-group-v3/index.ts +1 -0
- package/src/components/or-radio-v3/OrRadio.stories3.ts +1 -1
- package/src/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue +0 -1
- package/src/index.ts +1 -0
- package/src/utils/functions/flattenDeep.ts +5 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -1990
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -170
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +0 -68
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -45
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v2/index-62c3221b.js +0 -6956
- package/dist/bundled/v2/index.es-3f39f316.js +0 -115
- package/dist/bundled/v2/markdown-516daba9.js +0 -18737
- package/dist/bundled/v2/tiptap-core.esm-f85402b1.js +0 -9360
- package/dist/bundled/v2/useFocusTrap-9567b3c8.js +0 -1268
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-f6f74339.js +0 -236
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-af0c4288.js +0 -107
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-fec87993.js +0 -1765
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -228
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -170
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +0 -84
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -45
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v3/index-16aee5bc.js +0 -3740
- package/dist/bundled/v3/index-62c3221b.js +0 -6956
- package/dist/bundled/v3/index.es-3f39f316.js +0 -115
- package/dist/bundled/v3/markdown-516daba9.js +0 -18737
- package/dist/bundled/v3/tiptap-core.esm-f85402b1.js +0 -9360
- package/dist/esm/v2/OrRichTextEditor-b3da3217.js +0 -724
- package/dist/esm/v2/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -170
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -59
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/dist/esm/v3/OrRichTextEditor-39eb04a8.js +0 -687
- package/dist/esm/v3/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -170
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -57
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -7
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -102
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -624
- package/src/components/or-rich-text-editor-v3/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/styles.ts +0 -64
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +0 -40
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +0 -254
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +0 -213
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +0 -22
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +0 -117
- /package/dist/bundled/v2/components/{OrRichTextEditorV3/utils/codemirror → OrCheckboxTreeV3}/types.js +0 -0
- /package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-e3152dc5.js → OrIcon.vue_vue_type_script_lang-e5349e49.js} +0 -0
- /package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-0811fd48.js → OrToastContainer.vue_vue_type_script_lang-70cc38be.js} +0 -0
- /package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-b8594f7e.js → OrTooltip.vue_vue_type_script_lang-76a6b7f4.js} +0 -0
- /package/dist/bundled/v3/components/{OrRichTextEditorV3/utils/codemirror → OrCheckboxTreeV3}/types.js +0 -0
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/core';
|
|
2
|
-
import { Level } from '@tiptap/extension-heading';
|
|
3
|
-
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
-
editor: Editor | null;
|
|
5
|
-
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
6
|
-
containerRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
7
|
-
toolbarButtonRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
8
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
9
|
-
} | string[], {} & {}, {
|
|
10
|
-
[x: number]: string;
|
|
11
|
-
} | {}, true> | undefined>;
|
|
12
|
-
menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
13
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
14
|
-
} | string[], {} & {}, {
|
|
15
|
-
[x: number]: string;
|
|
16
|
-
} | {}, true> | undefined>;
|
|
17
|
-
iconsEnum: import("@vue/composition-api").Ref<{
|
|
18
|
-
[x: string]: string;
|
|
19
|
-
}>;
|
|
20
|
-
handleToolbarClick: (item: string, level?: number) => void;
|
|
21
|
-
handleEditorClick: () => void;
|
|
22
|
-
isActive: import("@vue/composition-api").Ref<{
|
|
23
|
-
[x: string]: boolean;
|
|
24
|
-
}>;
|
|
25
|
-
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
26
|
-
[x: string]: string;
|
|
27
|
-
}>;
|
|
28
|
-
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
29
|
-
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
30
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
31
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
32
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
33
|
-
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
34
|
-
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
35
|
-
headingLevels: Level[];
|
|
36
|
-
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
37
|
-
attachLink: () => Promise<void>;
|
|
38
|
-
discardLink: () => void;
|
|
39
|
-
isOpenLinkModal: import("@vue/composition-api").Ref<boolean>;
|
|
40
|
-
text: import("@vue/composition-api").Ref<string>;
|
|
41
|
-
link: import("@vue/composition-api").Ref<string>;
|
|
42
|
-
isFocused: import("@vue/composition-api").Ref<boolean>;
|
|
43
|
-
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
44
|
-
modelValue: {
|
|
45
|
-
type: StringConstructor;
|
|
46
|
-
default: undefined;
|
|
47
|
-
};
|
|
48
|
-
toolbar: {
|
|
49
|
-
type: ArrayConstructor;
|
|
50
|
-
default: () => never[];
|
|
51
|
-
};
|
|
52
|
-
description: {
|
|
53
|
-
type: StringConstructor;
|
|
54
|
-
default: string;
|
|
55
|
-
};
|
|
56
|
-
placeholder: {
|
|
57
|
-
type: StringConstructor;
|
|
58
|
-
default: string;
|
|
59
|
-
};
|
|
60
|
-
autofocus: {
|
|
61
|
-
type: BooleanConstructor;
|
|
62
|
-
default: boolean;
|
|
63
|
-
};
|
|
64
|
-
markdownFormat: {
|
|
65
|
-
type: BooleanConstructor;
|
|
66
|
-
default: boolean;
|
|
67
|
-
};
|
|
68
|
-
fullHeight: {
|
|
69
|
-
type: BooleanConstructor;
|
|
70
|
-
default: boolean;
|
|
71
|
-
};
|
|
72
|
-
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
73
|
-
modelValue: {
|
|
74
|
-
type: StringConstructor;
|
|
75
|
-
default: undefined;
|
|
76
|
-
};
|
|
77
|
-
toolbar: {
|
|
78
|
-
type: ArrayConstructor;
|
|
79
|
-
default: () => never[];
|
|
80
|
-
};
|
|
81
|
-
description: {
|
|
82
|
-
type: StringConstructor;
|
|
83
|
-
default: string;
|
|
84
|
-
};
|
|
85
|
-
placeholder: {
|
|
86
|
-
type: StringConstructor;
|
|
87
|
-
default: string;
|
|
88
|
-
};
|
|
89
|
-
autofocus: {
|
|
90
|
-
type: BooleanConstructor;
|
|
91
|
-
default: boolean;
|
|
92
|
-
};
|
|
93
|
-
markdownFormat: {
|
|
94
|
-
type: BooleanConstructor;
|
|
95
|
-
default: boolean;
|
|
96
|
-
};
|
|
97
|
-
fullHeight: {
|
|
98
|
-
type: BooleanConstructor;
|
|
99
|
-
default: boolean;
|
|
100
|
-
};
|
|
101
|
-
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
102
|
-
modelValue: string;
|
|
103
|
-
toolbar: unknown[];
|
|
104
|
-
description: string;
|
|
105
|
-
placeholder: string;
|
|
106
|
-
autofocus: boolean;
|
|
107
|
-
markdownFormat: boolean;
|
|
108
|
-
fullHeight: boolean;
|
|
109
|
-
} & {} & {
|
|
110
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
111
|
-
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
112
|
-
editor: Editor | null;
|
|
113
|
-
editorRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
114
|
-
containerRef: import("@vue/composition-api").Ref<HTMLDivElement | undefined>;
|
|
115
|
-
toolbarButtonRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
116
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
117
|
-
} | string[], {} & {}, {
|
|
118
|
-
[x: number]: string;
|
|
119
|
-
} | {}, true> | undefined>;
|
|
120
|
-
menuRef: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
121
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
122
|
-
} | string[], {} & {}, {
|
|
123
|
-
[x: number]: string;
|
|
124
|
-
} | {}, true> | undefined>;
|
|
125
|
-
iconsEnum: import("@vue/composition-api").Ref<{
|
|
126
|
-
[x: string]: string;
|
|
127
|
-
}>;
|
|
128
|
-
handleToolbarClick: (item: string, level?: number) => void;
|
|
129
|
-
handleEditorClick: () => void;
|
|
130
|
-
isActive: import("@vue/composition-api").Ref<{
|
|
131
|
-
[x: string]: boolean;
|
|
132
|
-
}>;
|
|
133
|
-
iconTooltipsEnum: import("@vue/composition-api").Ref<{
|
|
134
|
-
[x: string]: string;
|
|
135
|
-
}>;
|
|
136
|
-
containerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
137
|
-
toolbarContainerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
138
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
139
|
-
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
140
|
-
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
141
|
-
editorInputStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
142
|
-
getIndexOfHeading: import("@vue/composition-api").ComputedRef<number>;
|
|
143
|
-
headingLevels: Level[];
|
|
144
|
-
headingIcon: import("@vue/composition-api").ComputedRef<string>;
|
|
145
|
-
attachLink: () => Promise<void>;
|
|
146
|
-
discardLink: () => void;
|
|
147
|
-
isOpenLinkModal: import("@vue/composition-api").Ref<boolean>;
|
|
148
|
-
text: import("@vue/composition-api").Ref<string>;
|
|
149
|
-
link: import("@vue/composition-api").Ref<string>;
|
|
150
|
-
isFocused: import("@vue/composition-api").Ref<boolean>;
|
|
151
|
-
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
152
|
-
modelValue: string;
|
|
153
|
-
toolbar: unknown[];
|
|
154
|
-
description: string;
|
|
155
|
-
placeholder: string;
|
|
156
|
-
autofocus: boolean;
|
|
157
|
-
markdownFormat: boolean;
|
|
158
|
-
fullHeight: boolean;
|
|
159
|
-
} & {} & {
|
|
160
|
-
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
161
|
-
}, {
|
|
162
|
-
modelValue: string;
|
|
163
|
-
toolbar: unknown[];
|
|
164
|
-
description: string;
|
|
165
|
-
placeholder: string;
|
|
166
|
-
autofocus: boolean;
|
|
167
|
-
markdownFormat: boolean;
|
|
168
|
-
fullHeight: boolean;
|
|
169
|
-
}, true>);
|
|
170
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as OrRichTextEditorV3 } from './OrRichTextEditor.vue';
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
export { default as OrRichTextEditorV3 } from './OrRichTextEditor.js';
|
|
2
|
-
import 'vue-demi';
|
|
3
|
-
import '../../useFocusTrap-9567b3c8.js';
|
|
4
|
-
import '@vueuse/core';
|
|
5
|
-
import '../../markdown-516daba9.js';
|
|
6
|
-
import '../../index-62c3221b.js';
|
|
7
|
-
import 'node:punycode';
|
|
8
|
-
import '../../tiptap-core.esm-f85402b1.js';
|
|
9
|
-
import '../../index.es-3f39f316.js';
|
|
10
|
-
import './styles.js';
|
|
11
|
-
import './utils/codemirror/codemirrorNode.js';
|
|
12
|
-
import './utils/codemirror/codemirrorView.js';
|
|
13
|
-
import '../../index-f5487f12.js';
|
|
14
|
-
import './utils/codemirror/theme.js';
|
|
15
|
-
import '../../index-16aee5bc.js';
|
|
16
|
-
import '../../index-70ca38c5.js';
|
|
17
|
-
import '../OrIconButtonV3/OrIconButton.js';
|
|
18
|
-
import '../OrIconButtonV3/props.js';
|
|
19
|
-
import '../OrIconV3/props.js';
|
|
20
|
-
import '../OrIconButtonV3/styles.js';
|
|
21
|
-
import '../OrIconV3/OrIcon.js';
|
|
22
|
-
import '../OrIconV3/styles.js';
|
|
23
|
-
import '../../normalize-component-6e8e3d80.js';
|
|
24
|
-
import '../OrTooltipV3/OrTooltip.js';
|
|
25
|
-
import '../OrTooltipV3/styles.js';
|
|
26
|
-
import '../OrPopoverV3/OrPopover.js';
|
|
27
|
-
import '../../floating-ui.dom.esm-83eba816.js';
|
|
28
|
-
import '../OrPopoverV3/props.js';
|
|
29
|
-
import '../OrPopoverV3/styles.js';
|
|
30
|
-
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
31
|
-
import '../OrBottomSheetV3/styles.js';
|
|
32
|
-
import '../OrOverlayV3/OrOverlay.js';
|
|
33
|
-
import '../OrOverlayV3/styles.js';
|
|
34
|
-
import '../OrTeleportV3/OrTeleport.js';
|
|
35
|
-
import 'portal-vue';
|
|
36
|
-
import '../../hooks/useElevation.js';
|
|
37
|
-
import '../../utils/isVisible.js';
|
|
38
|
-
import '../../hooks/useResponsive/useResponsive.js';
|
|
39
|
-
import '../OrLabelV3/OrLabel.js';
|
|
40
|
-
import '../OrLabelV3/props.js';
|
|
41
|
-
import '../OrLabelV3/styles.js';
|
|
42
|
-
import '../OrMenuItemV3/OrMenuItem.js';
|
|
43
|
-
import '../OrMenuItemV3/styles.js';
|
|
44
|
-
import '../OrMenuV3/OrMenu.js';
|
|
45
|
-
import '../OrMenuV3/styles.js';
|
|
46
|
-
import '../OrModalV3/OrModal.js';
|
|
47
|
-
import '../OrModalV3/props.js';
|
|
48
|
-
import '../OrModalV3/styles.js';
|
|
49
|
-
import '../OrInputV3/OrInput.js';
|
|
50
|
-
import '../OrInputV3/props.js';
|
|
51
|
-
import '../OrInputBoxV3/props.js';
|
|
52
|
-
import '../OrInputV3/styles.js';
|
|
53
|
-
import '../OrErrorV3/OrError.js';
|
|
54
|
-
import '../OrErrorV3/styles.js';
|
|
55
|
-
import '../OrHintV3/OrHint.js';
|
|
56
|
-
import '../OrHintV3/styles.js';
|
|
57
|
-
import '../OrInputBoxV3/OrInputBox.js';
|
|
58
|
-
import '../OrInputBoxV3/styles.js';
|
|
59
|
-
import '../OrLoaderV3/OrLoader.js';
|
|
60
|
-
import '../OrLoaderV3/props.js';
|
|
61
|
-
import '../OrLoaderV3/styles.js';
|
|
62
|
-
import '../../hooks/useIdAttribute.js';
|
|
63
|
-
import '../../hooks/useControlAttributes.js';
|
|
64
|
-
import '../../hooks/useValidationAttributes.js';
|
|
65
|
-
import '../../style-inject.es-4c6f2515.js';
|
|
66
|
-
import '../OrButtonV3/OrButton.js';
|
|
67
|
-
import '../OrButtonV3/props.js';
|
|
68
|
-
import '../OrButtonV3/styles.js';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const EditorContainer: string[];
|
|
2
|
-
export declare const ToolbarContainer: string[];
|
|
3
|
-
export declare const Toolbar: string[];
|
|
4
|
-
export declare const ToolbarButton: string[];
|
|
5
|
-
export declare const ToolbarButtonFocused: string[];
|
|
6
|
-
export declare const EditorInput: string[];
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
const EditorContainer = [
|
|
2
|
-
// Colors
|
|
3
|
-
'border-outline', 'dark:border-outline-dark', 'focus-within:theme-border-1-primary', 'dark:focus-within:theme-border-1-primary-dark', 'focus-within:bg-primary-opacity-0-08', 'dark:focus-within:bg-primary-opacity-0-08-dark', 'focus-within:theme-outline-primary', 'dark:focus-within:theme-outline-primary-dark',
|
|
4
|
-
// Sizing
|
|
5
|
-
'border-1', 'rounded-md', 'w-full'];
|
|
6
|
-
const ToolbarContainer = [
|
|
7
|
-
// Layout
|
|
8
|
-
'flex',
|
|
9
|
-
//Spacing
|
|
10
|
-
'py-sm',
|
|
11
|
-
//Sizing
|
|
12
|
-
'border-b-1',
|
|
13
|
-
//Colors
|
|
14
|
-
'border-b-outline', 'dark:border-b-outline-dark'];
|
|
15
|
-
const Toolbar = [
|
|
16
|
-
// Layout
|
|
17
|
-
'flex',
|
|
18
|
-
// Spacing
|
|
19
|
-
'px-sm', 'gap-md',
|
|
20
|
-
// Sizing
|
|
21
|
-
'border-r-1',
|
|
22
|
-
//Colors
|
|
23
|
-
'border-r-disabled', 'dark:border-r-outline-dark',
|
|
24
|
-
// Last child
|
|
25
|
-
'last-of-type:border-none'];
|
|
26
|
-
const ToolbarButton = [
|
|
27
|
-
// Typography
|
|
28
|
-
'text-on-disabled', 'dark:text-on-disabled-dark'];
|
|
29
|
-
const ToolbarButtonFocused = [
|
|
30
|
-
// Typography
|
|
31
|
-
'text-outline', 'dark:text-outline-dark'];
|
|
32
|
-
const EditorInput = [
|
|
33
|
-
// Typography
|
|
34
|
-
'typography-body-2-regular', 'text-on-background', 'dark:text-on-background-dark',
|
|
35
|
-
// Sizing
|
|
36
|
-
'min-h-[88px]'];
|
|
37
|
-
|
|
38
|
-
export { EditorContainer, EditorInput, Toolbar, ToolbarButton, ToolbarButtonFocused, ToolbarContainer };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { N as Node } from '../../../../tiptap-core.esm-f85402b1.js';
|
|
2
|
-
import CodeMirrorView from './codemirrorView.js';
|
|
3
|
-
import { m as minimalSetup } from '../../../../index-16aee5bc.js';
|
|
4
|
-
import { e as javascript } from '../../../../index-70ca38c5.js';
|
|
5
|
-
import '../../../../index-62c3221b.js';
|
|
6
|
-
import '../../../../index.es-3f39f316.js';
|
|
7
|
-
import '../../../../index-f5487f12.js';
|
|
8
|
-
import './theme.js';
|
|
9
|
-
|
|
10
|
-
var codemirrorNode = Node.create({
|
|
11
|
-
name: 'codeBlock',
|
|
12
|
-
content: 'text*',
|
|
13
|
-
marks: '',
|
|
14
|
-
group: 'block',
|
|
15
|
-
code: true,
|
|
16
|
-
defining: true,
|
|
17
|
-
isolating: true,
|
|
18
|
-
parseHTML() {
|
|
19
|
-
return [{
|
|
20
|
-
tag: 'pre',
|
|
21
|
-
preserveWhitespace: 'full'
|
|
22
|
-
}];
|
|
23
|
-
},
|
|
24
|
-
renderHTML() {
|
|
25
|
-
return ['pre', ['code', 0]];
|
|
26
|
-
},
|
|
27
|
-
addNodeView() {
|
|
28
|
-
return ({
|
|
29
|
-
node,
|
|
30
|
-
editor,
|
|
31
|
-
getPos
|
|
32
|
-
}) => {
|
|
33
|
-
return new CodeMirrorView({
|
|
34
|
-
node,
|
|
35
|
-
view: editor.view,
|
|
36
|
-
getPos: getPos,
|
|
37
|
-
cmOptions: {
|
|
38
|
-
extensions: [minimalSetup, javascript()]
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
export { codemirrorNode as default };
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { TextSelection } from 'prosemirror-state';
|
|
2
|
-
import { EditorView, NodeView } from 'prosemirror-view';
|
|
3
|
-
import { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
4
|
-
import { Transaction as CMTransaction } from '@codemirror/state';
|
|
5
|
-
import { Command, EditorView as CMView } from '@codemirror/view';
|
|
6
|
-
import { CodeMirrorViewOptions } from './types';
|
|
7
|
-
declare class CodeMirrorView implements NodeView {
|
|
8
|
-
name: string;
|
|
9
|
-
node: ProsemirrorNode;
|
|
10
|
-
view: EditorView;
|
|
11
|
-
dom: HTMLElement;
|
|
12
|
-
cm: CMView;
|
|
13
|
-
getPos: () => number;
|
|
14
|
-
updating: boolean;
|
|
15
|
-
constructor(options: CodeMirrorViewOptions);
|
|
16
|
-
forwardSelection(): void;
|
|
17
|
-
asProseMirrorSelection(doc: ProsemirrorNode): TextSelection;
|
|
18
|
-
dispatch(cmTr: CMTransaction): void;
|
|
19
|
-
mayBeEscape(unit: 'char' | 'line', dir: -1 | 1): Command;
|
|
20
|
-
update(node: ProsemirrorNode): boolean;
|
|
21
|
-
setSelection(anchor: number, head: number): void;
|
|
22
|
-
focus(): void;
|
|
23
|
-
selectNode(): void;
|
|
24
|
-
stopEvent(): boolean;
|
|
25
|
-
destroy(): void;
|
|
26
|
-
}
|
|
27
|
-
export default CodeMirrorView;
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { n as exitCode, T as TextSelection, S as Selection } from '../../../../index-62c3221b.js';
|
|
2
|
-
import { a as EditorState, E as EditorView, Y as highlightActiveLine, B as highlightActiveLineGutter, z as lineNumbers, k as keymap } from '../../../../index-f5487f12.js';
|
|
3
|
-
import theme from './theme.js';
|
|
4
|
-
import '../../../../index.es-3f39f316.js';
|
|
5
|
-
|
|
6
|
-
const computeChange = (oldVal, newVal) => {
|
|
7
|
-
if (oldVal === newVal) {
|
|
8
|
-
return null;
|
|
9
|
-
}
|
|
10
|
-
let start = 0;
|
|
11
|
-
let oldEnd = oldVal.length;
|
|
12
|
-
let newEnd = newVal.length;
|
|
13
|
-
while (start < oldEnd && oldVal.charCodeAt(start) === newVal.charCodeAt(start)) {
|
|
14
|
-
start += 1;
|
|
15
|
-
}
|
|
16
|
-
while (oldEnd > start && newEnd > start && oldVal.charCodeAt(oldEnd - 1) === newVal.charCodeAt(newEnd - 1)) {
|
|
17
|
-
oldEnd -= 1;
|
|
18
|
-
newEnd -= 1;
|
|
19
|
-
}
|
|
20
|
-
return {
|
|
21
|
-
from: start,
|
|
22
|
-
to: oldEnd,
|
|
23
|
-
text: newVal.slice(start, newEnd)
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
class CodeMirrorView {
|
|
27
|
-
constructor(options) {
|
|
28
|
-
var _a;
|
|
29
|
-
this.updating = false;
|
|
30
|
-
// Store for later
|
|
31
|
-
this.node = options.node;
|
|
32
|
-
this.view = options.view;
|
|
33
|
-
const cmExtensions = ((_a = options.cmOptions) === null || _a === void 0 ? void 0 : _a.extensions) || [];
|
|
34
|
-
this.name = 'codeBlock', this.getPos = options.getPos;
|
|
35
|
-
const changeFilter = EditorState.changeFilter.of(tr => {
|
|
36
|
-
if (!tr.docChanged && !this.updating) {
|
|
37
|
-
this.forwardSelection();
|
|
38
|
-
}
|
|
39
|
-
return true;
|
|
40
|
-
});
|
|
41
|
-
// Create a CodeMirror instancew
|
|
42
|
-
this.cm = new EditorView({
|
|
43
|
-
dispatch: this.dispatch.bind(this)
|
|
44
|
-
});
|
|
45
|
-
// The editor's outer node is our DOM representation
|
|
46
|
-
this.dom = this.cm.dom;
|
|
47
|
-
const cmState = EditorState.create({
|
|
48
|
-
doc: this.node.textContent,
|
|
49
|
-
extensions: [theme, changeFilter, highlightActiveLine(), highlightActiveLineGutter(), lineNumbers(), keymap.of([{
|
|
50
|
-
key: 'ArrowUp',
|
|
51
|
-
run: this.mayBeEscape('line', -1)
|
|
52
|
-
}, {
|
|
53
|
-
key: 'ArrowLeft',
|
|
54
|
-
run: this.mayBeEscape('char', -1)
|
|
55
|
-
}, {
|
|
56
|
-
key: 'ArrowDown',
|
|
57
|
-
run: this.mayBeEscape('line', 1)
|
|
58
|
-
}, {
|
|
59
|
-
key: 'ArrowRight',
|
|
60
|
-
run: this.mayBeEscape('char', 1)
|
|
61
|
-
}, {
|
|
62
|
-
key: 'Ctrl-Enter',
|
|
63
|
-
run: () => {
|
|
64
|
-
if (exitCode(this.view.state, this.view.dispatch)) {
|
|
65
|
-
this.view.focus();
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
}]), cmExtensions]
|
|
71
|
-
});
|
|
72
|
-
this.cm.setState(cmState);
|
|
73
|
-
}
|
|
74
|
-
forwardSelection() {
|
|
75
|
-
if (!this.cm.hasFocus) {
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
const {
|
|
79
|
-
state
|
|
80
|
-
} = this.view;
|
|
81
|
-
const selection = this.asProseMirrorSelection(state.doc);
|
|
82
|
-
if (!selection.eq(state.selection)) {
|
|
83
|
-
this.view.dispatch(state.tr.setSelection(selection));
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
asProseMirrorSelection(doc) {
|
|
87
|
-
const offset = this.getPos() + 1;
|
|
88
|
-
const {
|
|
89
|
-
anchor,
|
|
90
|
-
head
|
|
91
|
-
} = this.cm.state.selection.main;
|
|
92
|
-
return TextSelection.create(doc, anchor + offset, head + offset);
|
|
93
|
-
}
|
|
94
|
-
dispatch(cmTr) {
|
|
95
|
-
this.cm.setState(cmTr.state);
|
|
96
|
-
if (cmTr.docChanged && !this.updating) {
|
|
97
|
-
const start = this.getPos() + 1;
|
|
98
|
-
const cmValue = cmTr.state.doc.toString();
|
|
99
|
-
const change = computeChange(this.node.textContent, cmValue);
|
|
100
|
-
if (!change) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
const content = change.text ? this.view.state.schema.text(change.text) : null;
|
|
104
|
-
const tr = this.view.state.tr.replaceWith(change.from + start, change.to + start, content);
|
|
105
|
-
this.view.dispatch(tr);
|
|
106
|
-
this.forwardSelection();
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
mayBeEscape(unit, dir) {
|
|
110
|
-
return view => {
|
|
111
|
-
const {
|
|
112
|
-
state
|
|
113
|
-
} = view;
|
|
114
|
-
const {
|
|
115
|
-
selection
|
|
116
|
-
} = state;
|
|
117
|
-
const offsetToPos = () => {
|
|
118
|
-
const offset = selection.main.from;
|
|
119
|
-
const line = state.doc.lineAt(offset);
|
|
120
|
-
return {
|
|
121
|
-
line: line.number,
|
|
122
|
-
ch: offset - line.from
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
const pos = offsetToPos();
|
|
126
|
-
const hasSelection = state.selection.ranges.some(r => !r.empty);
|
|
127
|
-
const firstLine = 1;
|
|
128
|
-
const lastLine = state.doc.lineAt(state.doc.length).number;
|
|
129
|
-
if (hasSelection || pos.line !== (dir < 0 ? firstLine : lastLine) || unit === 'char' && pos.ch !== (dir < 0 ? 0 : state.doc.line(pos.line).length)) {
|
|
130
|
-
return false;
|
|
131
|
-
}
|
|
132
|
-
const targetPos = this.getPos() + (dir < 0 ? 0 : this.node.nodeSize);
|
|
133
|
-
const pmSelection = Selection.near(this.view.state.doc.resolve(targetPos), dir);
|
|
134
|
-
this.view.dispatch(this.view.state.tr.setSelection(pmSelection).scrollIntoView());
|
|
135
|
-
this.view.focus();
|
|
136
|
-
return true;
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
update(node) {
|
|
140
|
-
if (node.type !== this.node.type) {
|
|
141
|
-
return false;
|
|
142
|
-
}
|
|
143
|
-
this.node = node;
|
|
144
|
-
const change = computeChange(this.cm.state.doc.toString(), node.textContent);
|
|
145
|
-
if (change) {
|
|
146
|
-
this.updating = true;
|
|
147
|
-
this.cm.dispatch({
|
|
148
|
-
changes: {
|
|
149
|
-
from: change.from,
|
|
150
|
-
to: change.to,
|
|
151
|
-
insert: change.text
|
|
152
|
-
}
|
|
153
|
-
});
|
|
154
|
-
this.updating = false;
|
|
155
|
-
}
|
|
156
|
-
return true;
|
|
157
|
-
}
|
|
158
|
-
setSelection(anchor, head) {
|
|
159
|
-
this.focus();
|
|
160
|
-
this.updating = true;
|
|
161
|
-
this.cm.dispatch({
|
|
162
|
-
selection: {
|
|
163
|
-
anchor,
|
|
164
|
-
head
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
this.updating = false;
|
|
168
|
-
}
|
|
169
|
-
focus() {
|
|
170
|
-
this.cm.focus();
|
|
171
|
-
this.forwardSelection();
|
|
172
|
-
}
|
|
173
|
-
selectNode() {
|
|
174
|
-
this.focus();
|
|
175
|
-
}
|
|
176
|
-
stopEvent() {
|
|
177
|
-
return true;
|
|
178
|
-
}
|
|
179
|
-
destroy() {
|
|
180
|
-
this.cm.destroy();
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export { CodeMirrorView as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as CodeMirrorView } from './codemirrorView';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Extension } from '@codemirror/state';
|
|
2
|
-
import { HighlightStyle } from '@codemirror/language';
|
|
3
|
-
export declare const color: {
|
|
4
|
-
chalky: string;
|
|
5
|
-
coral: string;
|
|
6
|
-
cyan: string;
|
|
7
|
-
invalid: string;
|
|
8
|
-
ivory: string;
|
|
9
|
-
stone: string;
|
|
10
|
-
malibu: string;
|
|
11
|
-
sage: string;
|
|
12
|
-
whiskey: string;
|
|
13
|
-
violet: string;
|
|
14
|
-
darkBackground: string;
|
|
15
|
-
highlightBackground: string;
|
|
16
|
-
background: string;
|
|
17
|
-
tooltipBackground: string;
|
|
18
|
-
selection: string;
|
|
19
|
-
cursor: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const orCodeTheme: Extension;
|
|
22
|
-
export declare const orCodeHighlightStyle: HighlightStyle;
|
|
23
|
-
declare const theme: Extension;
|
|
24
|
-
export default theme;
|