@onereach/ui-components 4.2.0-beta.2548.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-e19e74f4.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-f5c54d46.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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent } from 'vue-demi';
|
|
2
|
-
import { _ as __vue_component__$1 } from './OrIcon-
|
|
2
|
+
import { _ as __vue_component__$1 } from './OrIcon-a40e60af.js';
|
|
3
3
|
import _ from 'lodash';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
5
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, isVue3 } from 'vue-demi';
|
|
2
|
-
import { _ as __vue_component__ } from './OrIcon-
|
|
2
|
+
import { _ as __vue_component__ } from './OrIcon-a40e60af.js';
|
|
3
3
|
import { _ as __vue_component__$1, L as LoaderViews } from './OrLoader-212ef381.js';
|
|
4
|
-
import { B as BUTTON_TYPE, a as BUTTON_COLOR, b as BUTTON_SIZE, H as HTML_BUTTON_TYPE } from './OrIconButton.vue_rollup-plugin-vue_styles.0-
|
|
4
|
+
import { B as BUTTON_TYPE, a as BUTTON_COLOR, b as BUTTON_SIZE, H as HTML_BUTTON_TYPE } from './OrIconButton.vue_rollup-plugin-vue_styles.0-277ce06c.js';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
6
6
|
|
|
7
7
|
var script = defineComponent({
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref } from 'vue-demi';
|
|
2
2
|
import { _ as __vue_component__$1 } from './OrCard-c44d9783.js';
|
|
3
|
-
import { _ as __vue_component__$2 } from './OrIcon-
|
|
4
|
-
import { _ as __vue_component__$3 } from './OrSearch-
|
|
5
|
-
import './OrButton.vue_rollup-plugin-vue_styles.0-
|
|
6
|
-
import { _ as __vue_component__$4 } from './OrIconButton-
|
|
7
|
-
import './OrIconButton.vue_rollup-plugin-vue_styles.0-
|
|
3
|
+
import { _ as __vue_component__$2 } from './OrIcon-a40e60af.js';
|
|
4
|
+
import { _ as __vue_component__$3 } from './OrSearch-620d5d76.js';
|
|
5
|
+
import './OrButton.vue_rollup-plugin-vue_styles.0-48c5883e.js';
|
|
6
|
+
import { _ as __vue_component__$4 } from './OrIconButton-23972f7d.js';
|
|
7
|
+
import './OrIconButton.vue_rollup-plugin-vue_styles.0-277ce06c.js';
|
|
8
8
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
9
9
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
10
10
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Splide } from '@splidejs/splide';
|
|
2
|
-
import { _ as __vue_component__$1 } from './OrIcon-
|
|
2
|
+
import { _ as __vue_component__$1 } from './OrIcon-a40e60af.js';
|
|
3
3
|
import { defineComponent, ref } from 'vue-demi';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
5
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, reactive } from 'vue-demi';
|
|
2
|
+
import { useVModel } from '@vueuse/core';
|
|
2
3
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
3
|
-
import '@vueuse/core';
|
|
4
4
|
import { _ as __vue_component__$1, L as LabelVariant } from './OrLabel-63380256.js';
|
|
5
5
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
6
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
@@ -46,12 +46,12 @@ var script = defineComponent({
|
|
|
46
46
|
},
|
|
47
47
|
props: {
|
|
48
48
|
modelValue: {
|
|
49
|
-
type:
|
|
50
|
-
default:
|
|
49
|
+
type: null,
|
|
50
|
+
default: null
|
|
51
51
|
},
|
|
52
52
|
value: {
|
|
53
|
-
type: String,
|
|
54
|
-
default:
|
|
53
|
+
type: [String, Boolean, Number],
|
|
54
|
+
default: null
|
|
55
55
|
},
|
|
56
56
|
label: {
|
|
57
57
|
type: String,
|
|
@@ -74,9 +74,11 @@ var script = defineComponent({
|
|
|
74
74
|
default: false
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
|
-
emits: ['update:modelValue', 'focus', 'blur'],
|
|
77
|
+
emits: ['update:modelValue', 'click', 'focus', 'blur'],
|
|
78
78
|
expose: ['root', 'focus', 'blur'],
|
|
79
|
-
setup(props,
|
|
79
|
+
setup(props, {
|
|
80
|
+
emit
|
|
81
|
+
}) {
|
|
80
82
|
// Refs
|
|
81
83
|
const root = ref();
|
|
82
84
|
const control = ref();
|
|
@@ -88,13 +90,25 @@ var script = defineComponent({
|
|
|
88
90
|
id: useIdAttribute(),
|
|
89
91
|
...useControlAttributes()
|
|
90
92
|
});
|
|
91
|
-
const proxyModelValue =
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
const proxyModelValue = useVModel(props, 'modelValue', emit);
|
|
94
|
+
const isChecked = computed(() => {
|
|
95
|
+
if (Array.isArray(proxyModelValue.value)) {
|
|
96
|
+
return props.value && proxyModelValue.value.includes(props.value);
|
|
95
97
|
}
|
|
98
|
+
return !!proxyModelValue.value;
|
|
96
99
|
});
|
|
97
100
|
// Methods
|
|
101
|
+
function handleChange() {
|
|
102
|
+
if (Array.isArray(proxyModelValue.value)) {
|
|
103
|
+
if (isChecked.value) {
|
|
104
|
+
proxyModelValue.value = proxyModelValue.value.filter(v => v !== props.value);
|
|
105
|
+
} else {
|
|
106
|
+
proxyModelValue.value = [...proxyModelValue.value, props.value];
|
|
107
|
+
}
|
|
108
|
+
} else {
|
|
109
|
+
proxyModelValue.value = !proxyModelValue.value;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
98
112
|
function focus() {
|
|
99
113
|
var _a;
|
|
100
114
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -109,14 +123,15 @@ var script = defineComponent({
|
|
|
109
123
|
rootStyles,
|
|
110
124
|
controlStyles,
|
|
111
125
|
controlAttributes,
|
|
112
|
-
|
|
126
|
+
isChecked,
|
|
127
|
+
handleChange,
|
|
113
128
|
focus,
|
|
114
129
|
blur
|
|
115
130
|
};
|
|
116
131
|
}
|
|
117
132
|
});
|
|
118
133
|
|
|
119
|
-
var css_248z = "input[data-v-
|
|
134
|
+
var css_248z = "input[data-v-7688319c]{appearance:none;line-height:0}";
|
|
120
135
|
styleInject(css_248z);
|
|
121
136
|
|
|
122
137
|
/* script */
|
|
@@ -130,49 +145,31 @@ var __vue_render__ = function () {
|
|
|
130
145
|
ref: "root",
|
|
131
146
|
class: _vm.rootStyles
|
|
132
147
|
}, [_c('input', _vm._b({
|
|
133
|
-
directives: [{
|
|
134
|
-
name: "model",
|
|
135
|
-
rawName: "v-model",
|
|
136
|
-
value: _vm.proxyModelValue,
|
|
137
|
-
expression: "proxyModelValue"
|
|
138
|
-
}],
|
|
139
148
|
ref: "control",
|
|
140
149
|
class: _vm.controlStyles,
|
|
141
150
|
attrs: {
|
|
142
|
-
"
|
|
151
|
+
"type": 'checkbox',
|
|
143
152
|
"required": _vm.required,
|
|
144
|
-
"disabled": _vm.disabled
|
|
145
|
-
"type": "checkbox"
|
|
153
|
+
"disabled": _vm.disabled
|
|
146
154
|
},
|
|
147
155
|
domProps: {
|
|
156
|
+
"checked": _vm.isChecked,
|
|
148
157
|
"value": _vm.value,
|
|
149
|
-
"
|
|
158
|
+
"indeterminate": _vm.indeterminate
|
|
150
159
|
},
|
|
151
160
|
on: {
|
|
161
|
+
"change": _vm.handleChange,
|
|
152
162
|
"focus": function ($event) {
|
|
153
163
|
return _vm.$emit('focus', $event);
|
|
154
164
|
},
|
|
155
165
|
"blur": function ($event) {
|
|
156
166
|
return _vm.$emit('blur', $event);
|
|
157
167
|
},
|
|
158
|
-
"
|
|
159
|
-
|
|
160
|
-
$$el = $event.target,
|
|
161
|
-
$$c = $$el.checked ? true : false;
|
|
162
|
-
if (Array.isArray($$a)) {
|
|
163
|
-
var $$v = _vm.value,
|
|
164
|
-
$$i = _vm._i($$a, $$v);
|
|
165
|
-
if ($$el.checked) {
|
|
166
|
-
$$i < 0 && (_vm.proxyModelValue = $$a.concat([$$v]));
|
|
167
|
-
} else {
|
|
168
|
-
$$i > -1 && (_vm.proxyModelValue = $$a.slice(0, $$i).concat($$a.slice($$i + 1)));
|
|
169
|
-
}
|
|
170
|
-
} else {
|
|
171
|
-
_vm.proxyModelValue = $$c;
|
|
172
|
-
}
|
|
168
|
+
"click": function ($event) {
|
|
169
|
+
return _vm.$emit('click', $event);
|
|
173
170
|
}
|
|
174
171
|
}
|
|
175
|
-
}, 'input', _vm.controlAttributes, false))
|
|
172
|
+
}, 'input', _vm.controlAttributes, false)), _vm._v(" "), _vm.$slots.default || _vm.label ? [_c('OrLabel', {
|
|
176
173
|
attrs: {
|
|
177
174
|
"control-id": _vm.controlAttributes.id,
|
|
178
175
|
"variant": _vm.labelVariant,
|
|
@@ -195,7 +192,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
195
192
|
/* style */
|
|
196
193
|
const __vue_inject_styles__ = undefined;
|
|
197
194
|
/* scoped */
|
|
198
|
-
const __vue_scope_id__ = "data-v-
|
|
195
|
+
const __vue_scope_id__ = "data-v-7688319c";
|
|
199
196
|
/* module identifier */
|
|
200
197
|
const __vue_module_identifier__ = undefined;
|
|
201
198
|
/* functional template */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent } from 'vue-demi';
|
|
2
2
|
import _ from 'lodash';
|
|
3
|
-
import { _ as __vue_component__$1 } from './OrIcon-
|
|
3
|
+
import { _ as __vue_component__$1 } from './OrIcon-a40e60af.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
5
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
6
|
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { defineComponent, computed, watch } from 'vue-demi';
|
|
2
|
+
import { useVModel, useToggle } from '@vueuse/core';
|
|
3
|
+
import { _ as __vue_component__$2 } from './OrCheckbox-39c94019.js';
|
|
4
|
+
import { _ as __vue_component__$1 } from './OrIcon-d35a84d8.js';
|
|
5
|
+
import { _ as __vue_component__$3 } from './OrButton-6b60a776.js';
|
|
6
|
+
import { f as flattenDeep } from './flattenDeep-e7a8b995.js';
|
|
7
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
8
|
+
|
|
9
|
+
const CheckboxTreeRoot = [
|
|
10
|
+
// Layout
|
|
11
|
+
'flex', 'flex-col',
|
|
12
|
+
// Spacing
|
|
13
|
+
'gap-sm+ md:gap-sm'];
|
|
14
|
+
const CheckboxTreeRootParent = [
|
|
15
|
+
// Layout
|
|
16
|
+
'flex', 'flex-row', 'gap-xs'];
|
|
17
|
+
|
|
18
|
+
var script = defineComponent({
|
|
19
|
+
name: 'OrCheckboxTree',
|
|
20
|
+
components: {
|
|
21
|
+
OrIcon: __vue_component__$1,
|
|
22
|
+
OrCheckbox: __vue_component__$2,
|
|
23
|
+
OrButton: __vue_component__$3
|
|
24
|
+
},
|
|
25
|
+
model: {
|
|
26
|
+
prop: 'modelValue',
|
|
27
|
+
event: 'update:modelValue'
|
|
28
|
+
},
|
|
29
|
+
props: {
|
|
30
|
+
modelValue: {
|
|
31
|
+
type: Array,
|
|
32
|
+
default: () => []
|
|
33
|
+
},
|
|
34
|
+
item: {
|
|
35
|
+
type: Object,
|
|
36
|
+
required: true
|
|
37
|
+
},
|
|
38
|
+
collapsible: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
disabled: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false
|
|
45
|
+
},
|
|
46
|
+
expanded: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: true
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
emits: ['update:modelValue'],
|
|
52
|
+
setup(props, {
|
|
53
|
+
emit
|
|
54
|
+
}) {
|
|
55
|
+
// State
|
|
56
|
+
const hasChildren = computed(() => props.item.children && props.item.children.length > 0);
|
|
57
|
+
const childrenValues = computed(() => {
|
|
58
|
+
const getChildValues = children => {
|
|
59
|
+
return children === null || children === void 0 ? void 0 : children.map(child => {
|
|
60
|
+
if (child.children) {
|
|
61
|
+
return getChildValues(child.children);
|
|
62
|
+
} else {
|
|
63
|
+
return child.value;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
return flattenDeep(getChildValues(props.item.children));
|
|
68
|
+
});
|
|
69
|
+
const proxyModelValue = useVModel(props, 'modelValue', emit);
|
|
70
|
+
const isAnyChildrenSelected = computed(() => {
|
|
71
|
+
var _a;
|
|
72
|
+
return (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.some(value => {
|
|
73
|
+
var _a;
|
|
74
|
+
return (_a = childrenValues.value) === null || _a === void 0 ? void 0 : _a.includes(value);
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
const isAllChildrenSelected = computed(() => {
|
|
78
|
+
var _a;
|
|
79
|
+
return (_a = childrenValues.value) === null || _a === void 0 ? void 0 : _a.every(value => {
|
|
80
|
+
var _a;
|
|
81
|
+
return (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.includes(value);
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
const isIntermediate = computed(() => {
|
|
85
|
+
return isAnyChildrenSelected.value && !isAllChildrenSelected.value;
|
|
86
|
+
});
|
|
87
|
+
const [isOpen, setIsOpen] = useToggle(props.expanded);
|
|
88
|
+
watch(() => props.expanded, value => {
|
|
89
|
+
if (value !== undefined) {
|
|
90
|
+
setIsOpen(value);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
// Styles
|
|
94
|
+
const rootStyles = computed(() => ['or-checkbox-tree-v3', ...CheckboxTreeRoot]);
|
|
95
|
+
// Styles
|
|
96
|
+
const parentStyles = computed(() => [...CheckboxTreeRootParent]);
|
|
97
|
+
// Methods
|
|
98
|
+
const handleParentClick = () => {
|
|
99
|
+
if (isAllChildrenSelected.value) {
|
|
100
|
+
proxyModelValue.value = proxyModelValue.value.filter(value => !childrenValues.value.includes(value));
|
|
101
|
+
} else {
|
|
102
|
+
proxyModelValue.value = [...new Set([...proxyModelValue.value, ...childrenValues.value])];
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
return {
|
|
106
|
+
rootStyles,
|
|
107
|
+
parentStyles,
|
|
108
|
+
hasChildren,
|
|
109
|
+
proxyModelValue,
|
|
110
|
+
isOpen,
|
|
111
|
+
setIsOpen,
|
|
112
|
+
isIntermediate,
|
|
113
|
+
isAllChildrenSelected,
|
|
114
|
+
isAnyChildrenSelected,
|
|
115
|
+
childrenValues,
|
|
116
|
+
handleParentClick
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
/* script */
|
|
122
|
+
const __vue_script__ = script;
|
|
123
|
+
|
|
124
|
+
/* template */
|
|
125
|
+
var __vue_render__ = function () {
|
|
126
|
+
var _vm = this;
|
|
127
|
+
var _h = _vm.$createElement;
|
|
128
|
+
var _c = _vm._self._c || _h;
|
|
129
|
+
return _c('div', {
|
|
130
|
+
ref: "root",
|
|
131
|
+
class: _vm.rootStyles
|
|
132
|
+
}, [_vm.hasChildren ? [_c('div', {
|
|
133
|
+
class: _vm.parentStyles
|
|
134
|
+
}, [_vm.collapsible ? [_c('OrButton', {
|
|
135
|
+
attrs: {
|
|
136
|
+
"variant": "link",
|
|
137
|
+
"disabled": _vm.disabled
|
|
138
|
+
},
|
|
139
|
+
on: {
|
|
140
|
+
"click": function () {
|
|
141
|
+
return _vm.setIsOpen(!_vm.isOpen);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}, [_c('OrIcon', {
|
|
145
|
+
class: [_vm.isOpen ? 'rotate-[180deg]' : 'rotate-0'],
|
|
146
|
+
attrs: {
|
|
147
|
+
"icon": "arrow_drop_down",
|
|
148
|
+
"size": "l"
|
|
149
|
+
}
|
|
150
|
+
})], 1)] : _vm._e(), _vm._v(" "), _c('OrCheckbox', {
|
|
151
|
+
attrs: {
|
|
152
|
+
"value": "true",
|
|
153
|
+
"model-value": _vm.isAllChildrenSelected,
|
|
154
|
+
"indeterminate": _vm.isIntermediate,
|
|
155
|
+
"label": _vm.item.label,
|
|
156
|
+
"disabled": _vm.disabled
|
|
157
|
+
},
|
|
158
|
+
on: {
|
|
159
|
+
"click": _vm.handleParentClick
|
|
160
|
+
}
|
|
161
|
+
})], 2), _vm._v(" "), _vm.hasChildren && _vm.isOpen ? _c('div', {
|
|
162
|
+
class: {
|
|
163
|
+
'ml-2xl': _vm.collapsible,
|
|
164
|
+
'ml-lg': !_vm.collapsible
|
|
165
|
+
}
|
|
166
|
+
}, _vm._l(_vm.item.children, function (child) {
|
|
167
|
+
return _c('OrCheckboxTree', {
|
|
168
|
+
key: child.value || child.label,
|
|
169
|
+
staticClass: "mt-xs",
|
|
170
|
+
attrs: {
|
|
171
|
+
"item": child,
|
|
172
|
+
"collapsible": child.collapsible,
|
|
173
|
+
"expanded": child.expanded,
|
|
174
|
+
"disabled": _vm.disabled || child.disabled
|
|
175
|
+
},
|
|
176
|
+
model: {
|
|
177
|
+
value: _vm.proxyModelValue,
|
|
178
|
+
callback: function ($$v) {
|
|
179
|
+
_vm.proxyModelValue = $$v;
|
|
180
|
+
},
|
|
181
|
+
expression: "proxyModelValue"
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}), 1) : _vm._e()] : [_c('OrCheckbox', {
|
|
185
|
+
attrs: {
|
|
186
|
+
"disabled": _vm.disabled || _vm.item.disabled,
|
|
187
|
+
"label": _vm.item.label,
|
|
188
|
+
"value": _vm.item.value
|
|
189
|
+
},
|
|
190
|
+
model: {
|
|
191
|
+
value: _vm.proxyModelValue,
|
|
192
|
+
callback: function ($$v) {
|
|
193
|
+
_vm.proxyModelValue = $$v;
|
|
194
|
+
},
|
|
195
|
+
expression: "proxyModelValue"
|
|
196
|
+
}
|
|
197
|
+
})]], 2);
|
|
198
|
+
};
|
|
199
|
+
var __vue_staticRenderFns__ = [];
|
|
200
|
+
|
|
201
|
+
/* style */
|
|
202
|
+
const __vue_inject_styles__ = undefined;
|
|
203
|
+
/* scoped */
|
|
204
|
+
const __vue_scope_id__ = undefined;
|
|
205
|
+
/* module identifier */
|
|
206
|
+
const __vue_module_identifier__ = undefined;
|
|
207
|
+
/* functional template */
|
|
208
|
+
const __vue_is_functional_template__ = false;
|
|
209
|
+
/* style inject */
|
|
210
|
+
|
|
211
|
+
/* style inject SSR */
|
|
212
|
+
|
|
213
|
+
/* style inject shadow dom */
|
|
214
|
+
|
|
215
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
216
|
+
render: __vue_render__,
|
|
217
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
218
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
219
|
+
|
|
220
|
+
export { __vue_component__ as _ };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent } from 'vue-demi';
|
|
2
|
-
import { _ as __vue_component__$1 } from './OrIcon-
|
|
2
|
+
import { _ as __vue_component__$1 } from './OrIcon-a40e60af.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
4
4
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent } from 'vue-demi';
|
|
2
|
-
import { _ as __vue_component__$1 } from './OrChip-
|
|
2
|
+
import { _ as __vue_component__$1 } from './OrChip-8a1abfc5.js';
|
|
3
3
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
4
4
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
5
5
|
import { _ as __vue_component__$2 } from './OrLabel-931394a5.js';
|
|
@@ -4,13 +4,13 @@ import { indentWithTab } from '@codemirror/commands';
|
|
|
4
4
|
import { basicSetup, EditorView as EditorView$1 } from 'codemirror';
|
|
5
5
|
import { useElementHover } from '@vueuse/core';
|
|
6
6
|
import { defineComponent, ref } from 'vue-demi';
|
|
7
|
-
import './OrButton.vue_rollup-plugin-vue_styles.0-
|
|
8
|
-
import { _ as __vue_component__$1 } from './OrIconButton-
|
|
9
|
-
import './OrIconButton.vue_rollup-plugin-vue_styles.0-
|
|
7
|
+
import './OrButton.vue_rollup-plugin-vue_styles.0-48c5883e.js';
|
|
8
|
+
import { _ as __vue_component__$1 } from './OrIconButton-23972f7d.js';
|
|
9
|
+
import './OrIconButton.vue_rollup-plugin-vue_styles.0-277ce06c.js';
|
|
10
10
|
import { _ as __vue_component__$4 } from './OrError-efc74907.js';
|
|
11
11
|
import { _ as __vue_component__$5 } from './OrHint-fe65fbe6.js';
|
|
12
12
|
import { _ as __vue_component__$6 } from './OrLabel-931394a5.js';
|
|
13
|
-
import { _ as __vue_component__$2 } from './OrModal-
|
|
13
|
+
import { _ as __vue_component__$2 } from './OrModal-b9cfb8ec.js';
|
|
14
14
|
import { _ as __vue_component__$3 } from './OrTeleport.vue2-f0c16c71.js';
|
|
15
15
|
import { html } from '@codemirror/lang-html';
|
|
16
16
|
import { css } from '@codemirror/lang-css';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
-
import { _ as __vue_component__$1 } from './OrButton-
|
|
3
|
-
import { a as BUTTON_COLOR } from './OrIconButton.vue_rollup-plugin-vue_styles.0-
|
|
4
|
-
import { _ as __vue_component__$2, O as OrModalSizes } from './OrModal-
|
|
2
|
+
import { _ as __vue_component__$1 } from './OrButton-4e532ddb.js';
|
|
3
|
+
import { a as BUTTON_COLOR } from './OrIconButton.vue_rollup-plugin-vue_styles.0-277ce06c.js';
|
|
4
|
+
import { _ as __vue_component__$2, O as OrModalSizes } from './OrModal-b9cfb8ec.js';
|
|
5
5
|
import { _ as __vue_component__$3 } from './OrInput-c005a759.js';
|
|
6
6
|
import { useMagicKeys, useActiveElement, whenever } from '@vueuse/core';
|
|
7
7
|
import { logicAnd } from '@vueuse/math';
|
|
@@ -6,9 +6,9 @@ import { _ as __vue_component__$3 } from './OrLabel-931394a5.js';
|
|
|
6
6
|
import { _ as __vue_component__$4 } from './OrError-efc74907.js';
|
|
7
7
|
import { _ as __vue_component__$5 } from './OrHint-fe65fbe6.js';
|
|
8
8
|
import { _ as __vue_component__$6 } from './OrCollapse-50e3914c.js';
|
|
9
|
-
import './OrButton.vue_rollup-plugin-vue_styles.0-
|
|
10
|
-
import { _ as __vue_component__$7 } from './OrIconButton-
|
|
11
|
-
import './OrIconButton.vue_rollup-plugin-vue_styles.0-
|
|
9
|
+
import './OrButton.vue_rollup-plugin-vue_styles.0-48c5883e.js';
|
|
10
|
+
import { _ as __vue_component__$7 } from './OrIconButton-23972f7d.js';
|
|
11
|
+
import './OrIconButton.vue_rollup-plugin-vue_styles.0-277ce06c.js';
|
|
12
12
|
import { s as setStyle, r as requestAF, d as getCS, a as reflow, c as cancelAF } from './dom-7a41831b.js';
|
|
13
13
|
import { p as pxToRem } from './px-to-rem-0b26b83e.js';
|
|
14
14
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
+
import { _ as __vue_component__$1 } from './OrLabel-63380256.js';
|
|
3
|
+
import { _ as __vue_component__$2 } from './OrError-4ffc1c39.js';
|
|
4
|
+
import { _ as __vue_component__$3 } from './OrHint-aa221198.js';
|
|
5
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
|
+
|
|
7
|
+
var FormGroupDirection;
|
|
8
|
+
(function (FormGroupDirection) {
|
|
9
|
+
FormGroupDirection["Vertical"] = "vertical";
|
|
10
|
+
FormGroupDirection["Horizontal"] = "horizontal";
|
|
11
|
+
})(FormGroupDirection || (FormGroupDirection = {}));
|
|
12
|
+
|
|
13
|
+
const FormGroupRoot = [
|
|
14
|
+
// Layout
|
|
15
|
+
'layout-column', 'gap-md md:gap-sm'];
|
|
16
|
+
const FormGroupContent = [
|
|
17
|
+
// Layout
|
|
18
|
+
'pl-[10px] md:pl-[0]', 'gap-md md:gap-sm'];
|
|
19
|
+
const FormGroupLabel = [
|
|
20
|
+
// Typography
|
|
21
|
+
'!typography-body-2-regular', '!theme-foreground', 'dark:!theme-foreground-dark', 'invalid:!theme-foreground-error', 'dark:invalid:!theme-foreground-error-dark'];
|
|
22
|
+
const FormGroupContentDirections = {
|
|
23
|
+
[FormGroupDirection.Vertical]: ['layout-column', 'gap-sm'],
|
|
24
|
+
[FormGroupDirection.Horizontal]: ['layout-row', 'gap-[18px] md:gap-md']
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
var script = defineComponent({
|
|
28
|
+
name: 'OrFormGroupV3',
|
|
29
|
+
components: {
|
|
30
|
+
OrLabel: __vue_component__$1,
|
|
31
|
+
OrError: __vue_component__$2,
|
|
32
|
+
OrHint: __vue_component__$3
|
|
33
|
+
},
|
|
34
|
+
props: {
|
|
35
|
+
label: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: undefined
|
|
38
|
+
},
|
|
39
|
+
required: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false
|
|
42
|
+
},
|
|
43
|
+
disabled: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
direction: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: FormGroupDirection.Vertical
|
|
50
|
+
},
|
|
51
|
+
error: {
|
|
52
|
+
type: [String, Boolean],
|
|
53
|
+
default: undefined
|
|
54
|
+
},
|
|
55
|
+
hint: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: undefined
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
setup(props) {
|
|
61
|
+
// Refs
|
|
62
|
+
const root = ref();
|
|
63
|
+
// State
|
|
64
|
+
const invalid = computed(() => !!props.error);
|
|
65
|
+
// Styles
|
|
66
|
+
const rootStyles = computed(() => ['or-form-group-v3', ...FormGroupRoot]);
|
|
67
|
+
const labelStyles = computed(() => [...FormGroupLabel]);
|
|
68
|
+
const contentStyles = computed(() => [...FormGroupContent, ...FormGroupContentDirections[props.direction]]);
|
|
69
|
+
return {
|
|
70
|
+
root,
|
|
71
|
+
rootStyles,
|
|
72
|
+
labelStyles,
|
|
73
|
+
contentStyles,
|
|
74
|
+
invalid
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/* script */
|
|
80
|
+
const __vue_script__ = script;
|
|
81
|
+
|
|
82
|
+
/* template */
|
|
83
|
+
var __vue_render__ = function () {
|
|
84
|
+
var _vm = this;
|
|
85
|
+
var _h = _vm.$createElement;
|
|
86
|
+
var _c = _vm._self._c || _h;
|
|
87
|
+
return _c('div', {
|
|
88
|
+
ref: "root",
|
|
89
|
+
class: _vm.rootStyles
|
|
90
|
+
}, [_c('div', {
|
|
91
|
+
staticClass: "layout-row"
|
|
92
|
+
}, [_vm._t("label", function () {
|
|
93
|
+
return [_vm.label ? _c('OrLabel', {
|
|
94
|
+
class: _vm.labelStyles,
|
|
95
|
+
attrs: {
|
|
96
|
+
"required": _vm.required,
|
|
97
|
+
"disabled": _vm.disabled,
|
|
98
|
+
"invalid": _vm.invalid ? '' : null
|
|
99
|
+
},
|
|
100
|
+
scopedSlots: _vm._u([{
|
|
101
|
+
key: "addon",
|
|
102
|
+
fn: function () {
|
|
103
|
+
return [_vm._t("addon")];
|
|
104
|
+
},
|
|
105
|
+
proxy: true
|
|
106
|
+
}], null, true)
|
|
107
|
+
}, [_vm._v("\n " + _vm._s(_vm.label) + "\n\n ")]) : _vm._e()];
|
|
108
|
+
})], 2), _vm._v(" "), _c('div', {
|
|
109
|
+
class: _vm.contentStyles
|
|
110
|
+
}, [_vm._t("default")], 2), _vm._v(" "), _vm.hint && !_vm.error ? [_c('OrHint', {
|
|
111
|
+
attrs: {
|
|
112
|
+
"disabled": _vm.disabled
|
|
113
|
+
}
|
|
114
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n ")])] : _vm._e(), _vm._v(" "), typeof _vm.error === 'string' ? [_c('OrError', {
|
|
115
|
+
attrs: {
|
|
116
|
+
"disabled": _vm.disabled
|
|
117
|
+
}
|
|
118
|
+
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n ")])] : _vm._e()], 2);
|
|
119
|
+
};
|
|
120
|
+
var __vue_staticRenderFns__ = [];
|
|
121
|
+
|
|
122
|
+
/* style */
|
|
123
|
+
const __vue_inject_styles__ = undefined;
|
|
124
|
+
/* scoped */
|
|
125
|
+
const __vue_scope_id__ = undefined;
|
|
126
|
+
/* module identifier */
|
|
127
|
+
const __vue_module_identifier__ = undefined;
|
|
128
|
+
/* functional template */
|
|
129
|
+
const __vue_is_functional_template__ = false;
|
|
130
|
+
/* style inject */
|
|
131
|
+
|
|
132
|
+
/* style inject SSR */
|
|
133
|
+
|
|
134
|
+
/* style inject shadow dom */
|
|
135
|
+
|
|
136
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
137
|
+
render: __vue_render__,
|
|
138
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
139
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
140
|
+
|
|
141
|
+
export { FormGroupDirection as F, __vue_component__ as _ };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref } from 'vue-demi';
|
|
2
2
|
import _ from 'lodash';
|
|
3
|
-
import './OrTooltip.vue_rollup-plugin-vue_styles.0-
|
|
4
|
-
import { _ as __vue_component__$1 } from './OrTooltipContent-
|
|
3
|
+
import './OrTooltip.vue_rollup-plugin-vue_styles.0-a256ac18.js';
|
|
4
|
+
import { _ as __vue_component__$1 } from './OrTooltipContent-d85e1071.js';
|
|
5
5
|
import { _ as __vue_component__$2, O as OrFloatingPlacements } from './OrFloating-67b6592e.js';
|
|
6
6
|
import { p as pxToRem } from './px-to-rem-0b26b83e.js';
|
|
7
7
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as script } from './OrIconButton.vue_rollup-plugin-vue_styles.0-
|
|
1
|
+
import { s as script } from './OrIconButton.vue_rollup-plugin-vue_styles.0-277ce06c.js';
|
|
2
2
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
3
3
|
|
|
4
4
|
/* script */
|