@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,624 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="root"
|
|
4
|
-
:class="rootStyles"
|
|
5
|
-
>
|
|
6
|
-
<or-label>
|
|
7
|
-
{{ description }}
|
|
8
|
-
</or-label>
|
|
9
|
-
<div
|
|
10
|
-
ref="containerRef"
|
|
11
|
-
:class="containerStyles"
|
|
12
|
-
@click="handleEditorClick()"
|
|
13
|
-
>
|
|
14
|
-
<div :class="toolbarContainerStyles">
|
|
15
|
-
<div
|
|
16
|
-
v-for="(tool, index) in toolbar"
|
|
17
|
-
:key="index"
|
|
18
|
-
:class="toolbarStyles"
|
|
19
|
-
>
|
|
20
|
-
<div
|
|
21
|
-
v-for="item in tool"
|
|
22
|
-
:key="item"
|
|
23
|
-
class="flex gap-md"
|
|
24
|
-
>
|
|
25
|
-
<or-icon-button
|
|
26
|
-
v-if="item==='heading'"
|
|
27
|
-
ref="toolbarButtonRef"
|
|
28
|
-
:selected="isActive[item]"
|
|
29
|
-
:disabled="!isFocused"
|
|
30
|
-
:tooltip="{text: item, placement: 'top'}"
|
|
31
|
-
:icon="{icon: headingIcon, variant: 'inherit', size: 'm'}"
|
|
32
|
-
@click="menuRef.open()"
|
|
33
|
-
/>
|
|
34
|
-
<or-icon-button
|
|
35
|
-
v-else
|
|
36
|
-
:tooltip="{text: iconTooltipsEnum[item], placement: 'top'}"
|
|
37
|
-
:selected="isActive[item]"
|
|
38
|
-
:disabled="!isFocused"
|
|
39
|
-
:icon="{icon: iconsEnum[item], variant: 'inherit', size: 'm'}"
|
|
40
|
-
@click="handleToolbarClick(item)"
|
|
41
|
-
/>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
<div :class="['p-sm', { 'h-[calc(100%-32px)]': fullHeight }]">
|
|
46
|
-
<div
|
|
47
|
-
ref="editorRef"
|
|
48
|
-
:class="editorInputStyles"
|
|
49
|
-
/>
|
|
50
|
-
<slot name="files" />
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
<or-menu
|
|
54
|
-
v-if="toolbarButtonRef"
|
|
55
|
-
ref="menuRef"
|
|
56
|
-
:trigger="toolbarButtonRef[getIndexOfHeading].root"
|
|
57
|
-
placement="bottom-start"
|
|
58
|
-
>
|
|
59
|
-
<or-menu-item
|
|
60
|
-
v-for="heading in headingLevels"
|
|
61
|
-
:key="heading"
|
|
62
|
-
@click="handleToolbarClick('heading', heading)"
|
|
63
|
-
>
|
|
64
|
-
Heading {{ heading }}
|
|
65
|
-
</or-menu-item>
|
|
66
|
-
<or-menu-item
|
|
67
|
-
@click="handleToolbarClick('heading')"
|
|
68
|
-
>
|
|
69
|
-
None
|
|
70
|
-
</or-menu-item>
|
|
71
|
-
</or-menu>
|
|
72
|
-
<or-modal
|
|
73
|
-
:is-open="isOpenLinkModal"
|
|
74
|
-
size="s"
|
|
75
|
-
>
|
|
76
|
-
<template v-slot:header>
|
|
77
|
-
<p class="text-headline-2">
|
|
78
|
-
Add Link
|
|
79
|
-
</p>
|
|
80
|
-
</template>
|
|
81
|
-
<div>
|
|
82
|
-
<or-label>
|
|
83
|
-
Text
|
|
84
|
-
</or-label>
|
|
85
|
-
<or-input
|
|
86
|
-
v-model="text"
|
|
87
|
-
placeholder="Placeholder"
|
|
88
|
-
class="pb-md"
|
|
89
|
-
/>
|
|
90
|
-
<or-label>
|
|
91
|
-
Link
|
|
92
|
-
</or-label>
|
|
93
|
-
<or-input
|
|
94
|
-
v-model="link"
|
|
95
|
-
placeholder="Placeholder"
|
|
96
|
-
/>
|
|
97
|
-
</div>
|
|
98
|
-
<template v-slot:footer>
|
|
99
|
-
<div class="flex ml-auto gap-md">
|
|
100
|
-
<or-button
|
|
101
|
-
variant="outlined"
|
|
102
|
-
@click="discardLink"
|
|
103
|
-
>
|
|
104
|
-
<p>Cancel</p>
|
|
105
|
-
</or-button>
|
|
106
|
-
<or-button
|
|
107
|
-
@click="attachLink"
|
|
108
|
-
>
|
|
109
|
-
<p>Save</p>
|
|
110
|
-
</or-button>
|
|
111
|
-
</div>
|
|
112
|
-
</template>
|
|
113
|
-
</or-modal>
|
|
114
|
-
</div>
|
|
115
|
-
</template>
|
|
116
|
-
|
|
117
|
-
<script lang="ts">
|
|
118
|
-
import { defineComponent, ref, computed, onBeforeUnmount, onMounted, watch } from 'vue-demi';
|
|
119
|
-
import { useFocusTrap, UseFocusTrapReturn } from '@vueuse/integrations/useFocusTrap';
|
|
120
|
-
import { onClickOutside } from '@vueuse/core';
|
|
121
|
-
import { serialize, deserialize } from './utils/markdown';
|
|
122
|
-
|
|
123
|
-
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
124
|
-
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
125
|
-
import { OrMenuV3 as OrMenu } from '../or-menu-v3';
|
|
126
|
-
import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
127
|
-
import { OrModalV3 as OrModal } from '../or-modal-v3';
|
|
128
|
-
import { OrInputV3 as OrInput } from '../or-input-v3';
|
|
129
|
-
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
130
|
-
|
|
131
|
-
import {
|
|
132
|
-
EditorContainer,
|
|
133
|
-
ToolbarContainer,
|
|
134
|
-
Toolbar,
|
|
135
|
-
ToolbarButtonFocused,
|
|
136
|
-
ToolbarButton,
|
|
137
|
-
EditorInput,
|
|
138
|
-
} from './styles';
|
|
139
|
-
|
|
140
|
-
import { Editor, mergeAttributes } from '@tiptap/core';
|
|
141
|
-
import StarterKit from '@tiptap/starter-kit';
|
|
142
|
-
import Underline from '@tiptap/extension-underline';
|
|
143
|
-
import Link from '@tiptap/extension-link';
|
|
144
|
-
import Highlight from '@tiptap/extension-highlight';
|
|
145
|
-
import Heading, { Level } from '@tiptap/extension-heading';
|
|
146
|
-
import Placeholder from '@tiptap/extension-placeholder';
|
|
147
|
-
|
|
148
|
-
import codemirrorNode from './utils/codemirror/codemirrorNode';
|
|
149
|
-
|
|
150
|
-
export default defineComponent({
|
|
151
|
-
name: 'OrRichTextEditor',
|
|
152
|
-
|
|
153
|
-
components: {
|
|
154
|
-
OrIconButton,
|
|
155
|
-
OrLabel,
|
|
156
|
-
OrMenuItem,
|
|
157
|
-
OrMenu,
|
|
158
|
-
OrModal,
|
|
159
|
-
OrInput,
|
|
160
|
-
OrButton,
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
inheritAttrs: false,
|
|
164
|
-
|
|
165
|
-
model: {
|
|
166
|
-
prop: 'modelValue',
|
|
167
|
-
event: 'update:modelValue',
|
|
168
|
-
},
|
|
169
|
-
|
|
170
|
-
props: {
|
|
171
|
-
modelValue: {
|
|
172
|
-
type: String,
|
|
173
|
-
default: undefined,
|
|
174
|
-
},
|
|
175
|
-
toolbar: {
|
|
176
|
-
type: Array,
|
|
177
|
-
default: () => [],
|
|
178
|
-
},
|
|
179
|
-
description: {
|
|
180
|
-
type: String,
|
|
181
|
-
default: '',
|
|
182
|
-
},
|
|
183
|
-
placeholder: {
|
|
184
|
-
type: String,
|
|
185
|
-
default: '',
|
|
186
|
-
},
|
|
187
|
-
autofocus: {
|
|
188
|
-
type: Boolean,
|
|
189
|
-
default: false,
|
|
190
|
-
},
|
|
191
|
-
markdownFormat: {
|
|
192
|
-
type: Boolean,
|
|
193
|
-
default: false,
|
|
194
|
-
},
|
|
195
|
-
fullHeight: {
|
|
196
|
-
type: Boolean,
|
|
197
|
-
default: false,
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
emits: [
|
|
202
|
-
'update:modelValue',
|
|
203
|
-
|
|
204
|
-
'input',
|
|
205
|
-
'file-upload',
|
|
206
|
-
],
|
|
207
|
-
|
|
208
|
-
expose: [
|
|
209
|
-
'root',
|
|
210
|
-
],
|
|
211
|
-
|
|
212
|
-
setup(props, context) {
|
|
213
|
-
// Refs
|
|
214
|
-
const root = ref<HTMLElement>();
|
|
215
|
-
let editor = null as Editor | null;
|
|
216
|
-
const editorRef = ref<HTMLDivElement>();
|
|
217
|
-
const containerRef = ref<HTMLDivElement>();
|
|
218
|
-
const toolbarButtonRef = ref<InstanceType<typeof OrIconButton>>();
|
|
219
|
-
const menuRef = ref<InstanceType<typeof OrMenu>>();
|
|
220
|
-
const isActive = ref<{[key: string]: boolean;}>({});
|
|
221
|
-
const isFocused = ref<boolean>(props.autofocus);
|
|
222
|
-
const headingLevels = [1, 2, 3, 4] as Level[];
|
|
223
|
-
const activeHeadingLevel = ref<number>(0);
|
|
224
|
-
const markdownOutput = ref<string>('');
|
|
225
|
-
const isOpenLinkModal = ref<boolean>(false);
|
|
226
|
-
const text = ref<string>('');
|
|
227
|
-
const link = ref<string>('');
|
|
228
|
-
let trap: UseFocusTrapReturn = useFocusTrap(editorRef, {
|
|
229
|
-
immediate: true,
|
|
230
|
-
fallbackFocus: '.container',
|
|
231
|
-
allowOutsideClick: true,
|
|
232
|
-
});
|
|
233
|
-
const iconsEnum = ref<{[key: string]: string;}>({
|
|
234
|
-
bold: 'format_bold',
|
|
235
|
-
italic: 'format_italic',
|
|
236
|
-
underline: 'format_underlined',
|
|
237
|
-
strike: 'format_strikethrough',
|
|
238
|
-
bulletList: 'format_list_bulleted',
|
|
239
|
-
orderedList: 'format_list_numbered',
|
|
240
|
-
link: 'link',
|
|
241
|
-
highlight: 'highlight',
|
|
242
|
-
redo: 'redo',
|
|
243
|
-
undo: 'undo',
|
|
244
|
-
codeBlock: 'code_blocks',
|
|
245
|
-
blockquote: 'format_quote',
|
|
246
|
-
file: 'attach_file',
|
|
247
|
-
});
|
|
248
|
-
const iconTooltipsEnum = ref<{[key: string]: string;}>({
|
|
249
|
-
bold: 'Bold',
|
|
250
|
-
italic: 'Italic',
|
|
251
|
-
underline: 'Underline',
|
|
252
|
-
strike: 'Strike',
|
|
253
|
-
bulletList: 'Bulleted List',
|
|
254
|
-
orderedList: 'Numbered List',
|
|
255
|
-
link: 'Link',
|
|
256
|
-
highlight: 'Highlight',
|
|
257
|
-
redo: 'Redo',
|
|
258
|
-
undo: 'Undo',
|
|
259
|
-
codeBlock: 'Code Block',
|
|
260
|
-
blockquote: 'Quote',
|
|
261
|
-
file: 'File',
|
|
262
|
-
});
|
|
263
|
-
|
|
264
|
-
onMounted(() => {
|
|
265
|
-
editor = new Editor({
|
|
266
|
-
onUpdate: ({ editor }) => {
|
|
267
|
-
isFocused.value = true;
|
|
268
|
-
setActiveFormats();
|
|
269
|
-
const html = editor.getHTML();
|
|
270
|
-
const text = editor.getText();
|
|
271
|
-
if (props.markdownFormat) {
|
|
272
|
-
markdownOutput.value = serialize(editor.schema, editor.getJSON());
|
|
273
|
-
proxyModelValue.value = markdownOutput.value;
|
|
274
|
-
} else {
|
|
275
|
-
proxyModelValue.value = text === '' ? text : html;
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
onCreate: ({ editor }) => {
|
|
279
|
-
if (props.markdownFormat) {
|
|
280
|
-
const deserialized = deserialize(editor.schema, proxyModelValue.value);
|
|
281
|
-
editor.commands.setContent(deserialized);
|
|
282
|
-
} else {
|
|
283
|
-
editor.commands.setContent(proxyModelValue.value as string);
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
element: editorRef.value,
|
|
287
|
-
autofocus: props.autofocus,
|
|
288
|
-
extensions: [
|
|
289
|
-
codemirrorNode,
|
|
290
|
-
StarterKit.configure({
|
|
291
|
-
heading: false,
|
|
292
|
-
codeBlock: false,
|
|
293
|
-
}),
|
|
294
|
-
Heading.configure({ levels: headingLevels }).extend({
|
|
295
|
-
levels: headingLevels,
|
|
296
|
-
renderHTML({ node, HTMLAttributes }) {
|
|
297
|
-
return [
|
|
298
|
-
'h' + node.attrs.level,
|
|
299
|
-
mergeAttributes(HTMLAttributes, {
|
|
300
|
-
class: `typography-headline-${node.attrs.level}`,
|
|
301
|
-
}),
|
|
302
|
-
0,
|
|
303
|
-
];
|
|
304
|
-
},
|
|
305
|
-
}),
|
|
306
|
-
Underline,
|
|
307
|
-
Link.configure({
|
|
308
|
-
openOnClick: true,
|
|
309
|
-
linkOnPaste: true,
|
|
310
|
-
autolink: false,
|
|
311
|
-
protocols: ['ftp', 'mailto', 'http', 'https'],
|
|
312
|
-
validate: href => /^https?:\/\//.test(href),
|
|
313
|
-
HTMLAttributes: {
|
|
314
|
-
class: 'text-primary cursor-pointer',
|
|
315
|
-
},
|
|
316
|
-
}),
|
|
317
|
-
Highlight,
|
|
318
|
-
Placeholder
|
|
319
|
-
.configure({
|
|
320
|
-
placeholder: props.placeholder,
|
|
321
|
-
emptyEditorClass: 'is-editor-empty text-outline',
|
|
322
|
-
}),
|
|
323
|
-
],
|
|
324
|
-
editorProps: {
|
|
325
|
-
attributes: {
|
|
326
|
-
class: 'focus:outline-none',
|
|
327
|
-
},
|
|
328
|
-
},
|
|
329
|
-
});
|
|
330
|
-
setActiveFormats();
|
|
331
|
-
trap.activate();
|
|
332
|
-
});
|
|
333
|
-
|
|
334
|
-
onBeforeUnmount(() => {
|
|
335
|
-
editor?.destroy();
|
|
336
|
-
});
|
|
337
|
-
|
|
338
|
-
onClickOutside(root, () => {
|
|
339
|
-
isFocused.value = false;
|
|
340
|
-
trap.deactivate();
|
|
341
|
-
});
|
|
342
|
-
|
|
343
|
-
// Computed
|
|
344
|
-
const proxyModelValue = computed({
|
|
345
|
-
get: () => {
|
|
346
|
-
return props.modelValue;
|
|
347
|
-
},
|
|
348
|
-
|
|
349
|
-
set: (value) => {
|
|
350
|
-
context.emit('input', value);
|
|
351
|
-
context.emit('update:modelValue', value);
|
|
352
|
-
},
|
|
353
|
-
});
|
|
354
|
-
|
|
355
|
-
const getIndexOfHeading = computed(() => {
|
|
356
|
-
return props.toolbar.flat().indexOf('heading');
|
|
357
|
-
});
|
|
358
|
-
|
|
359
|
-
const headingIcon = computed(() => {
|
|
360
|
-
if (activeHeadingLevel.value && isActive.value.heading) {
|
|
361
|
-
return `format_h${activeHeadingLevel.value}`;
|
|
362
|
-
}
|
|
363
|
-
return 'format_paragraph';
|
|
364
|
-
});
|
|
365
|
-
|
|
366
|
-
//Methods
|
|
367
|
-
const handleEditorClick = () => {
|
|
368
|
-
setActiveFormats();
|
|
369
|
-
isFocused.value = true;
|
|
370
|
-
editor?.commands.focus();
|
|
371
|
-
activeHeadingLevel.value = editor?.getAttributes('heading')?.level || 0;
|
|
372
|
-
};
|
|
373
|
-
|
|
374
|
-
const handleToolbarClick = (item: string, level?: number) => {
|
|
375
|
-
switch (item) {
|
|
376
|
-
case 'bulletList':
|
|
377
|
-
case 'orderedList':
|
|
378
|
-
item === 'bulletList' ? editor?.commands.toggleBulletList() : editor?.commands.toggleOrderedList();
|
|
379
|
-
break;
|
|
380
|
-
case 'link':
|
|
381
|
-
if (editor) {
|
|
382
|
-
const cursorPosition = editor?.state.selection.$anchor.pos || 0;
|
|
383
|
-
const { from, to, empty } = editor.state.selection;
|
|
384
|
-
const isLink = editor.view.state.doc.nodeAt(cursorPosition)?.marks.filter((mark) => mark.type.name === 'link');
|
|
385
|
-
const existedText = isLink?.length ? editor.view.state.doc.nodeAt(cursorPosition)?.text || '' : '';
|
|
386
|
-
|
|
387
|
-
text.value = empty ? existedText : editor.state.doc.textBetween(from, to, ' ');
|
|
388
|
-
link.value = editor.getAttributes('link').href || '';
|
|
389
|
-
}
|
|
390
|
-
isOpenLinkModal.value = !isOpenLinkModal.value;
|
|
391
|
-
break;
|
|
392
|
-
case 'blockquote':
|
|
393
|
-
editor?.chain().focus().toggleBlockquote().run();
|
|
394
|
-
break;
|
|
395
|
-
case 'codeBlock':
|
|
396
|
-
if (!isActive.value['codeBlock']) {
|
|
397
|
-
editor?.commands.setNode(item, { language: 'javascript' });
|
|
398
|
-
} else {
|
|
399
|
-
editor?.commands.setNode('paragraph');
|
|
400
|
-
}
|
|
401
|
-
break;
|
|
402
|
-
case 'heading':
|
|
403
|
-
if (!level) {
|
|
404
|
-
editor?.commands.toggleHeading({ level: 0 as Level });
|
|
405
|
-
activeHeadingLevel.value = 0;
|
|
406
|
-
} else {
|
|
407
|
-
activeHeadingLevel.value = level;
|
|
408
|
-
editor?.commands.toggleHeading({ level: level as Level });
|
|
409
|
-
}
|
|
410
|
-
editor?.commands.focus();
|
|
411
|
-
break;
|
|
412
|
-
case 'undo':
|
|
413
|
-
case 'redo':
|
|
414
|
-
item === 'undo' ? editor?.commands.undo() : editor?.commands.redo();
|
|
415
|
-
break;
|
|
416
|
-
case 'file':
|
|
417
|
-
context.emit('file-upload');
|
|
418
|
-
break;
|
|
419
|
-
default:
|
|
420
|
-
editor?.chain().focus().toggleMark(item).run();
|
|
421
|
-
break;
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
const attachLink = async () => {
|
|
426
|
-
// empty
|
|
427
|
-
if (link.value === '') {
|
|
428
|
-
editor?.chain().focus().extendMarkRange('link').unsetLink().run();
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
const isEmptySelection = editor?.state.selection.empty;
|
|
432
|
-
const cursorPosition = editor?.state.selection.$anchor.pos || 0;
|
|
433
|
-
const isLink = editor?.view.state.doc.nodeAt(cursorPosition)?.marks.filter((mark) => mark.type.name === 'link');
|
|
434
|
-
const existedText = isLink?.length ? editor?.view.state.doc.nodeAt(cursorPosition)?.text : '';
|
|
435
|
-
|
|
436
|
-
if (link.value && isEmptySelection && !existedText) {
|
|
437
|
-
editor?.chain()
|
|
438
|
-
.focus()
|
|
439
|
-
.setMark('link', {
|
|
440
|
-
href: link.value,
|
|
441
|
-
target: '__blank',
|
|
442
|
-
})
|
|
443
|
-
.command(({ tr }) => {
|
|
444
|
-
const preparedValue = text.value[text.value.length - 1] === ' ' ? text.value : `${text.value} `;
|
|
445
|
-
tr.insertText(preparedValue);
|
|
446
|
-
return true;
|
|
447
|
-
})
|
|
448
|
-
.run();
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
if (link.value && existedText === text.value && isEmptySelection) {
|
|
452
|
-
editor?.chain()
|
|
453
|
-
.extendMarkRange('link')
|
|
454
|
-
.updateAttributes('link', {
|
|
455
|
-
href: link.value,
|
|
456
|
-
})
|
|
457
|
-
.run();
|
|
458
|
-
}
|
|
459
|
-
|
|
460
|
-
if (link.value && !isEmptySelection) {
|
|
461
|
-
editor?.chain()
|
|
462
|
-
.focus()
|
|
463
|
-
.setMark('link', {
|
|
464
|
-
href: link.value,
|
|
465
|
-
target: '__blank',
|
|
466
|
-
})
|
|
467
|
-
.run();
|
|
468
|
-
}
|
|
469
|
-
|
|
470
|
-
text.value = '';
|
|
471
|
-
link.value = '';
|
|
472
|
-
|
|
473
|
-
isOpenLinkModal.value = false;
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
const discardLink = () => {
|
|
477
|
-
isOpenLinkModal.value = false;
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
const setActiveFormats = () => {
|
|
481
|
-
const toolbarList = props.toolbar.flat() as string[];
|
|
482
|
-
toolbarList.forEach((item) => {
|
|
483
|
-
isActive.value[item] = editor?.isActive(item) || false;
|
|
484
|
-
});
|
|
485
|
-
};
|
|
486
|
-
|
|
487
|
-
// Styles
|
|
488
|
-
const rootStyles = computed(() => {
|
|
489
|
-
return [
|
|
490
|
-
'or-rich-text-editor',
|
|
491
|
-
...props.fullHeight ? ['h-full'] : [],
|
|
492
|
-
];
|
|
493
|
-
});
|
|
494
|
-
|
|
495
|
-
const containerStyles = computed(() => {
|
|
496
|
-
return [
|
|
497
|
-
...EditorContainer,
|
|
498
|
-
...props.fullHeight ? ['h-full'] : [],
|
|
499
|
-
];
|
|
500
|
-
});
|
|
501
|
-
|
|
502
|
-
const toolbarContainerStyles = computed(() => {
|
|
503
|
-
return [
|
|
504
|
-
...ToolbarContainer,
|
|
505
|
-
];
|
|
506
|
-
});
|
|
507
|
-
|
|
508
|
-
const toolbarStyles = computed(() => {
|
|
509
|
-
return [
|
|
510
|
-
...Toolbar,
|
|
511
|
-
...isFocused.value ? ToolbarButtonFocused : ToolbarButton,
|
|
512
|
-
];
|
|
513
|
-
});
|
|
514
|
-
|
|
515
|
-
const editorInputStyles = computed(() => {
|
|
516
|
-
return [
|
|
517
|
-
'tiptap-editor',
|
|
518
|
-
...props.fullHeight ? ['h-full overflow-y-auto'] : [],
|
|
519
|
-
...EditorInput,
|
|
520
|
-
];
|
|
521
|
-
});
|
|
522
|
-
|
|
523
|
-
//Effects
|
|
524
|
-
watch(proxyModelValue, (value) => {
|
|
525
|
-
if (value !== editor?.getHTML() && !props.markdownFormat) {
|
|
526
|
-
editor?.commands.setContent(value as string);
|
|
527
|
-
}
|
|
528
|
-
if (props.markdownFormat && value !== markdownOutput.value) {
|
|
529
|
-
const deserialized = deserialize(editor?.schema, value);
|
|
530
|
-
editor?.commands.setContent(deserialized);
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
|
|
534
|
-
return {
|
|
535
|
-
editor,
|
|
536
|
-
editorRef,
|
|
537
|
-
containerRef,
|
|
538
|
-
toolbarButtonRef,
|
|
539
|
-
menuRef,
|
|
540
|
-
iconsEnum,
|
|
541
|
-
handleToolbarClick,
|
|
542
|
-
handleEditorClick,
|
|
543
|
-
isActive,
|
|
544
|
-
iconTooltipsEnum,
|
|
545
|
-
containerStyles,
|
|
546
|
-
toolbarContainerStyles,
|
|
547
|
-
toolbarStyles,
|
|
548
|
-
rootStyles,
|
|
549
|
-
root,
|
|
550
|
-
editorInputStyles,
|
|
551
|
-
getIndexOfHeading,
|
|
552
|
-
headingLevels,
|
|
553
|
-
headingIcon,
|
|
554
|
-
attachLink,
|
|
555
|
-
discardLink,
|
|
556
|
-
isOpenLinkModal,
|
|
557
|
-
text,
|
|
558
|
-
link,
|
|
559
|
-
isFocused,
|
|
560
|
-
};
|
|
561
|
-
},
|
|
562
|
-
});
|
|
563
|
-
</script>
|
|
564
|
-
|
|
565
|
-
<style lang="scss">
|
|
566
|
-
.tiptap-editor {
|
|
567
|
-
ol { //see if editor can not inherit it
|
|
568
|
-
margin: 0 24px;
|
|
569
|
-
list-style: decimal;
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
ul {
|
|
573
|
-
margin: 0 24px;
|
|
574
|
-
list-style: initial;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
pre { //TODO: test styles for code block, need to discuss with team
|
|
578
|
-
background-color: rgba($color: #bad1ec, $alpha: .3);
|
|
579
|
-
padding: 4px 8px;
|
|
580
|
-
margin: 4px 0;
|
|
581
|
-
width: 100%;
|
|
582
|
-
border-radius: 4px;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
blockquote {
|
|
586
|
-
margin: 8px 24px;
|
|
587
|
-
padding: 0 24px;
|
|
588
|
-
border-left: 4px solid #bad1ec;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
.is-editor-empty::before {
|
|
592
|
-
content: attr(data-placeholder);
|
|
593
|
-
height: 0;
|
|
594
|
-
pointer-events: none;
|
|
595
|
-
float: left;
|
|
596
|
-
}
|
|
597
|
-
|
|
598
|
-
.cm-editor {
|
|
599
|
-
border: none;
|
|
600
|
-
border-radius: 4px;
|
|
601
|
-
|
|
602
|
-
.cm-scroller {
|
|
603
|
-
border-radius: 4px;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
&.cm-focused {
|
|
607
|
-
outline: none;
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
.cm-gutters {
|
|
611
|
-
background-color: rgba(0, 95, 177, 0.08);
|
|
612
|
-
border: none;
|
|
613
|
-
|
|
614
|
-
.cm-gutterElement {
|
|
615
|
-
padding: 0 10px;
|
|
616
|
-
|
|
617
|
-
&.cm-activeLineGutter {
|
|
618
|
-
background-color: rgba(0, 95, 177, 0.07)
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
</style>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as OrRichTextEditorV3 } from './OrRichTextEditor.vue';
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
export const EditorContainer: string[] = [
|
|
2
|
-
// Colors
|
|
3
|
-
'border-outline',
|
|
4
|
-
'dark:border-outline-dark',
|
|
5
|
-
'focus-within:theme-border-1-primary',
|
|
6
|
-
'dark:focus-within:theme-border-1-primary-dark',
|
|
7
|
-
'focus-within:bg-primary-opacity-0-08',
|
|
8
|
-
'dark:focus-within:bg-primary-opacity-0-08-dark',
|
|
9
|
-
'focus-within:theme-outline-primary',
|
|
10
|
-
'dark:focus-within:theme-outline-primary-dark',
|
|
11
|
-
|
|
12
|
-
// Sizing
|
|
13
|
-
'border-1',
|
|
14
|
-
'rounded-md',
|
|
15
|
-
'w-full',
|
|
16
|
-
];
|
|
17
|
-
|
|
18
|
-
export const ToolbarContainer: string[] = [
|
|
19
|
-
// Layout
|
|
20
|
-
'flex',
|
|
21
|
-
//Spacing
|
|
22
|
-
'py-sm',
|
|
23
|
-
//Sizing
|
|
24
|
-
'border-b-1',
|
|
25
|
-
//Colors
|
|
26
|
-
'border-b-outline',
|
|
27
|
-
'dark:border-b-outline-dark',
|
|
28
|
-
];
|
|
29
|
-
|
|
30
|
-
export const Toolbar: string[] = [
|
|
31
|
-
// Layout
|
|
32
|
-
'flex',
|
|
33
|
-
// Spacing
|
|
34
|
-
'px-sm',
|
|
35
|
-
'gap-md',
|
|
36
|
-
// Sizing
|
|
37
|
-
'border-r-1',
|
|
38
|
-
//Colors
|
|
39
|
-
'border-r-disabled',
|
|
40
|
-
'dark:border-r-outline-dark',
|
|
41
|
-
// Last child
|
|
42
|
-
'last-of-type:border-none',
|
|
43
|
-
];
|
|
44
|
-
|
|
45
|
-
export const ToolbarButton: string[] = [
|
|
46
|
-
// Typography
|
|
47
|
-
'text-on-disabled',
|
|
48
|
-
'dark:text-on-disabled-dark',
|
|
49
|
-
];
|
|
50
|
-
|
|
51
|
-
export const ToolbarButtonFocused: string[] = [
|
|
52
|
-
// Typography
|
|
53
|
-
'text-outline',
|
|
54
|
-
'dark:text-outline-dark',
|
|
55
|
-
];
|
|
56
|
-
|
|
57
|
-
export const EditorInput: string[] = [
|
|
58
|
-
// Typography
|
|
59
|
-
'typography-body-2-regular',
|
|
60
|
-
'text-on-background',
|
|
61
|
-
'dark:text-on-background-dark',
|
|
62
|
-
// Sizing
|
|
63
|
-
'min-h-[88px]',
|
|
64
|
-
];
|