@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
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
:class="rootStyles"
|
|
5
|
+
>
|
|
6
|
+
<template v-if="hasChildren">
|
|
7
|
+
<div :class="parentStyles">
|
|
8
|
+
<template
|
|
9
|
+
v-if="collapsible"
|
|
10
|
+
>
|
|
11
|
+
<OrButton
|
|
12
|
+
variant="link"
|
|
13
|
+
:disabled="disabled"
|
|
14
|
+
@click="() => setIsOpen(!isOpen)"
|
|
15
|
+
>
|
|
16
|
+
<OrIcon
|
|
17
|
+
:class="[isOpen ? 'rotate-[180deg]': 'rotate-0']"
|
|
18
|
+
icon="arrow_drop_down"
|
|
19
|
+
size="l"
|
|
20
|
+
/>
|
|
21
|
+
</OrButton>
|
|
22
|
+
</template>
|
|
23
|
+
<OrCheckbox
|
|
24
|
+
value="true"
|
|
25
|
+
:model-value="isAllChildrenSelected"
|
|
26
|
+
:indeterminate="isIntermediate"
|
|
27
|
+
:label="item.label"
|
|
28
|
+
:disabled="disabled"
|
|
29
|
+
@click="handleParentClick"
|
|
30
|
+
/>
|
|
31
|
+
</div>
|
|
32
|
+
<div
|
|
33
|
+
v-if="hasChildren && isOpen"
|
|
34
|
+
:class="{
|
|
35
|
+
'ml-2xl': collapsible,
|
|
36
|
+
'ml-lg': !collapsible
|
|
37
|
+
}"
|
|
38
|
+
>
|
|
39
|
+
<OrCheckboxTree
|
|
40
|
+
v-for="child in item.children"
|
|
41
|
+
:key="child.value || child.label"
|
|
42
|
+
v-model="proxyModelValue"
|
|
43
|
+
class="mt-xs"
|
|
44
|
+
:item="child"
|
|
45
|
+
:collapsible="child.collapsible"
|
|
46
|
+
:expanded="child.expanded"
|
|
47
|
+
:disabled="disabled || child.disabled"
|
|
48
|
+
/>
|
|
49
|
+
</div>
|
|
50
|
+
</template>
|
|
51
|
+
<template v-else>
|
|
52
|
+
<OrCheckbox
|
|
53
|
+
v-model="proxyModelValue"
|
|
54
|
+
:disabled="disabled || item.disabled"
|
|
55
|
+
:label="item.label"
|
|
56
|
+
:value="item.value"
|
|
57
|
+
/>
|
|
58
|
+
</template>
|
|
59
|
+
</div>
|
|
60
|
+
</template>
|
|
61
|
+
|
|
62
|
+
<script lang="ts">
|
|
63
|
+
import { computed, defineComponent, PropType, watch } from 'vue-demi';
|
|
64
|
+
import { useVModel, useToggle } from '@vueuse/core';
|
|
65
|
+
import { OrCheckboxV3 as OrCheckbox } from '../or-checkbox-v3';
|
|
66
|
+
import { OrIconV3 as OrIcon } from '../or-icon-v3';
|
|
67
|
+
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
68
|
+
import { CheckboxTreeRoot, CheckboxTreeRootParent } from './styles';
|
|
69
|
+
import { CheckboxTreeNode } from './types';
|
|
70
|
+
import flattenDeep from '../../utils/functions/flattenDeep';
|
|
71
|
+
|
|
72
|
+
export default defineComponent({
|
|
73
|
+
name: 'OrCheckboxTree',
|
|
74
|
+
components: {
|
|
75
|
+
OrIcon,
|
|
76
|
+
OrCheckbox,
|
|
77
|
+
OrButton,
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
model: {
|
|
81
|
+
prop: 'modelValue',
|
|
82
|
+
event: 'update:modelValue',
|
|
83
|
+
},
|
|
84
|
+
|
|
85
|
+
props: {
|
|
86
|
+
modelValue: {
|
|
87
|
+
type: Array as PropType<string[]>,
|
|
88
|
+
default: () => [],
|
|
89
|
+
},
|
|
90
|
+
item: {
|
|
91
|
+
type: Object as PropType<CheckboxTreeNode>,
|
|
92
|
+
required: true,
|
|
93
|
+
},
|
|
94
|
+
collapsible: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: false,
|
|
97
|
+
},
|
|
98
|
+
disabled: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: false,
|
|
101
|
+
},
|
|
102
|
+
expanded: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: true,
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
emits: [
|
|
109
|
+
'update:modelValue',
|
|
110
|
+
],
|
|
111
|
+
|
|
112
|
+
setup(props, { emit }) {
|
|
113
|
+
|
|
114
|
+
// State
|
|
115
|
+
const hasChildren = computed(() => props.item.children && props.item.children.length > 0);
|
|
116
|
+
const childrenValues = computed(() => {
|
|
117
|
+
const getChildValues = (children?: CheckboxTreeNode[]): any[] | undefined => {
|
|
118
|
+
return children?.map((child) => {
|
|
119
|
+
if (child.children) {
|
|
120
|
+
return getChildValues(child.children);
|
|
121
|
+
} else {
|
|
122
|
+
return child.value;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
return flattenDeep(getChildValues(props.item.children));
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
const proxyModelValue = useVModel(props, 'modelValue', emit);
|
|
131
|
+
|
|
132
|
+
const isAnyChildrenSelected = computed(() => {
|
|
133
|
+
return proxyModelValue.value?.some((value) => childrenValues.value?.includes(value));
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
const isAllChildrenSelected = computed(() => {
|
|
137
|
+
return childrenValues.value?.every((value) => proxyModelValue.value?.includes(value));
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
const isIntermediate = computed(() => {
|
|
141
|
+
return isAnyChildrenSelected.value && !isAllChildrenSelected.value;
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
const [isOpen, setIsOpen] = useToggle(props.expanded);
|
|
145
|
+
|
|
146
|
+
watch(() => props.expanded, (value) => {
|
|
147
|
+
if (value !== undefined) {
|
|
148
|
+
setIsOpen(value);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
// Styles
|
|
153
|
+
const rootStyles = computed(() => [
|
|
154
|
+
'or-checkbox-tree-v3',
|
|
155
|
+
...CheckboxTreeRoot,
|
|
156
|
+
]);
|
|
157
|
+
|
|
158
|
+
// Styles
|
|
159
|
+
const parentStyles = computed(() => [
|
|
160
|
+
...CheckboxTreeRootParent,
|
|
161
|
+
]);
|
|
162
|
+
|
|
163
|
+
// Methods
|
|
164
|
+
const handleParentClick = () => {
|
|
165
|
+
if (isAllChildrenSelected.value) {
|
|
166
|
+
proxyModelValue.value = proxyModelValue.value.filter((value) => !childrenValues.value.includes(value));
|
|
167
|
+
} else {
|
|
168
|
+
proxyModelValue.value = [
|
|
169
|
+
...new Set([
|
|
170
|
+
...proxyModelValue.value,
|
|
171
|
+
...childrenValues.value,
|
|
172
|
+
]),
|
|
173
|
+
];
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
return {
|
|
178
|
+
rootStyles,
|
|
179
|
+
parentStyles,
|
|
180
|
+
hasChildren,
|
|
181
|
+
proxyModelValue,
|
|
182
|
+
isOpen,
|
|
183
|
+
setIsOpen,
|
|
184
|
+
isIntermediate,
|
|
185
|
+
isAllChildrenSelected,
|
|
186
|
+
isAnyChildrenSelected,
|
|
187
|
+
childrenValues,
|
|
188
|
+
handleParentClick,
|
|
189
|
+
};
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
|
+
</script>
|
|
@@ -5,16 +5,18 @@
|
|
|
5
5
|
>
|
|
6
6
|
<input
|
|
7
7
|
ref="control"
|
|
8
|
-
|
|
8
|
+
:checked="isChecked"
|
|
9
9
|
v-bind="controlAttributes"
|
|
10
10
|
:class="controlStyles"
|
|
11
11
|
:type="'checkbox'"
|
|
12
12
|
:value="value"
|
|
13
|
-
:indeterminate="indeterminate"
|
|
13
|
+
:indeterminate.prop="indeterminate"
|
|
14
14
|
:required="required"
|
|
15
15
|
:disabled="disabled"
|
|
16
|
+
@change="handleChange"
|
|
16
17
|
@focus="$emit('focus', $event)"
|
|
17
18
|
@blur="$emit('blur', $event)"
|
|
19
|
+
@click="$emit('click', $event)"
|
|
18
20
|
>
|
|
19
21
|
|
|
20
22
|
<template v-if="$slots.default || label">
|
|
@@ -36,6 +38,7 @@
|
|
|
36
38
|
|
|
37
39
|
<script lang="ts">
|
|
38
40
|
import { computed, defineComponent, PropType, reactive, ref } from 'vue-demi';
|
|
41
|
+
import { useVModel } from '@vueuse/core';
|
|
39
42
|
import { useControlAttributes, useIdAttribute } from '../../hooks';
|
|
40
43
|
import { LabelVariant, OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
41
44
|
import { CheckboxControl, CheckboxControlHandle, CheckboxRoot } from './styles';
|
|
@@ -54,13 +57,13 @@ export default defineComponent({
|
|
|
54
57
|
|
|
55
58
|
props: {
|
|
56
59
|
modelValue: {
|
|
57
|
-
type:
|
|
58
|
-
default:
|
|
60
|
+
type: null as any,
|
|
61
|
+
default: null,
|
|
59
62
|
},
|
|
60
63
|
|
|
61
64
|
value: {
|
|
62
|
-
type: String,
|
|
63
|
-
default:
|
|
65
|
+
type: [String, Boolean, Number] as PropType<string | boolean | number>,
|
|
66
|
+
default: null,
|
|
64
67
|
},
|
|
65
68
|
|
|
66
69
|
label: {
|
|
@@ -92,6 +95,7 @@ export default defineComponent({
|
|
|
92
95
|
emits: [
|
|
93
96
|
'update:modelValue',
|
|
94
97
|
|
|
98
|
+
'click',
|
|
95
99
|
'focus',
|
|
96
100
|
'blur',
|
|
97
101
|
],
|
|
@@ -103,7 +107,7 @@ export default defineComponent({
|
|
|
103
107
|
'blur',
|
|
104
108
|
],
|
|
105
109
|
|
|
106
|
-
setup(props,
|
|
110
|
+
setup(props, { emit }) {
|
|
107
111
|
// Refs
|
|
108
112
|
const root = ref<HTMLElement>();
|
|
109
113
|
const control = ref<HTMLInputElement>();
|
|
@@ -125,15 +129,30 @@ export default defineComponent({
|
|
|
125
129
|
...useControlAttributes(),
|
|
126
130
|
});
|
|
127
131
|
|
|
128
|
-
const proxyModelValue =
|
|
129
|
-
|
|
132
|
+
const proxyModelValue = useVModel(props, 'modelValue', emit);
|
|
133
|
+
|
|
134
|
+
const isChecked = computed(() => {
|
|
135
|
+
if (Array.isArray(proxyModelValue.value)) {
|
|
136
|
+
return props.value && proxyModelValue.value.includes(props.value);
|
|
137
|
+
}
|
|
130
138
|
|
|
131
|
-
|
|
132
|
-
context.emit('update:modelValue', value);
|
|
133
|
-
},
|
|
139
|
+
return !!proxyModelValue.value;
|
|
134
140
|
});
|
|
135
141
|
|
|
136
142
|
// Methods
|
|
143
|
+
|
|
144
|
+
function handleChange(): void {
|
|
145
|
+
if (Array.isArray(proxyModelValue.value)) {
|
|
146
|
+
if (isChecked.value) {
|
|
147
|
+
proxyModelValue.value = proxyModelValue.value.filter((v) => v !== props.value);
|
|
148
|
+
} else {
|
|
149
|
+
proxyModelValue.value = [...proxyModelValue.value, props.value];
|
|
150
|
+
}
|
|
151
|
+
} else {
|
|
152
|
+
proxyModelValue.value = !proxyModelValue.value;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
137
156
|
function focus(): void {
|
|
138
157
|
control.value?.focus();
|
|
139
158
|
}
|
|
@@ -148,7 +167,8 @@ export default defineComponent({
|
|
|
148
167
|
rootStyles,
|
|
149
168
|
controlStyles,
|
|
150
169
|
controlAttributes,
|
|
151
|
-
|
|
170
|
+
isChecked,
|
|
171
|
+
handleChange,
|
|
152
172
|
focus,
|
|
153
173
|
blur,
|
|
154
174
|
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import OrFormGroup from './OrFormGroup.vue';
|
|
2
|
+
import { ref } from 'vue-demi';
|
|
3
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
4
|
+
import { OrRadioV3 as OrRadio } from '../or-radio-v3';
|
|
5
|
+
import { OrCheckboxV3 as OrCheckbox } from '../or-checkbox-v3';
|
|
6
|
+
import { OrSwitchV3 as OrSwitch } from '../or-switch-v3';
|
|
7
|
+
import { FormGroupDirection } from './props';
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Components/Forms/Group',
|
|
10
|
+
component: OrFormGroup,
|
|
11
|
+
argTypes: {
|
|
12
|
+
// Props
|
|
13
|
+
label: {
|
|
14
|
+
control: { type: 'text' },
|
|
15
|
+
},
|
|
16
|
+
error: {
|
|
17
|
+
control: { type: 'text' },
|
|
18
|
+
},
|
|
19
|
+
hint: {
|
|
20
|
+
control: { type: 'text' },
|
|
21
|
+
},
|
|
22
|
+
direction: {
|
|
23
|
+
control: { type: 'select' },
|
|
24
|
+
options: Object.values(FormGroupDirection),
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
} as Meta<typeof OrFormGroup>;
|
|
28
|
+
|
|
29
|
+
const RadioTemplate: StoryFn<typeof OrFormGroup> = (args) => ({
|
|
30
|
+
components: {
|
|
31
|
+
OrFormGroup,
|
|
32
|
+
OrRadio,
|
|
33
|
+
},
|
|
34
|
+
setup() {
|
|
35
|
+
const modelValue = ref('');
|
|
36
|
+
return {
|
|
37
|
+
args,
|
|
38
|
+
modelValue,
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
template: `
|
|
42
|
+
<OrFormGroup
|
|
43
|
+
v-bind="args"
|
|
44
|
+
>
|
|
45
|
+
<OrRadio :label="'Option 1'" value="1" v-model="modelValue"/>
|
|
46
|
+
<OrRadio :label="'Option 2'" value="3" v-model="modelValue"/>
|
|
47
|
+
<OrRadio :label="'Option 3'" value="4" v-model="modelValue"/>
|
|
48
|
+
</OrFormGroup>
|
|
49
|
+
`,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export const RadioGroup = RadioTemplate.bind({});
|
|
53
|
+
RadioGroup.args = {
|
|
54
|
+
label: 'Radio Group',
|
|
55
|
+
hint: 'This is a hint',
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const CheckboxTemplate: StoryFn<typeof OrFormGroup> = (args) => ({
|
|
59
|
+
components: {
|
|
60
|
+
OrFormGroup,
|
|
61
|
+
OrCheckbox,
|
|
62
|
+
},
|
|
63
|
+
setup() {
|
|
64
|
+
const modelValue = ref([]);
|
|
65
|
+
return {
|
|
66
|
+
args,
|
|
67
|
+
modelValue,
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
template: `
|
|
71
|
+
<OrFormGroup
|
|
72
|
+
v-bind="args"
|
|
73
|
+
>
|
|
74
|
+
<OrCheckbox :label="'Option 1'" value="1" v-model="modelValue"/>
|
|
75
|
+
<OrCheckbox :label="'Option 2'" value="3" v-model="modelValue"/>
|
|
76
|
+
<OrCheckbox :label="'Option 3'" value="4" v-model="modelValue"/>
|
|
77
|
+
</OrFormGroup>
|
|
78
|
+
`,
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
export const CheckboxGroup = CheckboxTemplate.bind({});
|
|
82
|
+
CheckboxGroup.args = {
|
|
83
|
+
label: 'Checkbox Group',
|
|
84
|
+
hint: 'This is a hint',
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const SwitchTemplate: StoryFn<typeof OrFormGroup> = (args) => ({
|
|
88
|
+
components: {
|
|
89
|
+
OrFormGroup,
|
|
90
|
+
OrSwitch,
|
|
91
|
+
},
|
|
92
|
+
setup() {
|
|
93
|
+
const modelValue = ref([]);
|
|
94
|
+
return {
|
|
95
|
+
args,
|
|
96
|
+
modelValue,
|
|
97
|
+
};
|
|
98
|
+
},
|
|
99
|
+
template: `
|
|
100
|
+
<OrFormGroup
|
|
101
|
+
v-bind="args"
|
|
102
|
+
>
|
|
103
|
+
<OrSwitch :label="'Option 1'" value="1" v-model="modelValue"/>
|
|
104
|
+
<OrSwitch :label="'Option 2'" value="3" v-model="modelValue"/>
|
|
105
|
+
<OrSwitch :label="'Option 3'" value="4" v-model="modelValue"/>
|
|
106
|
+
</OrFormGroup>
|
|
107
|
+
`,
|
|
108
|
+
});
|
|
109
|
+
|
|
110
|
+
export const SwitchGroup = SwitchTemplate.bind({});
|
|
111
|
+
SwitchGroup.args = {
|
|
112
|
+
label: 'Switch Group',
|
|
113
|
+
hint: 'This is a hint',
|
|
114
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
ref="root"
|
|
4
|
+
:class="rootStyles"
|
|
5
|
+
>
|
|
6
|
+
<div class="layout-row">
|
|
7
|
+
<slot name="label">
|
|
8
|
+
<OrLabel
|
|
9
|
+
v-if="label"
|
|
10
|
+
:required="required"
|
|
11
|
+
:disabled="disabled"
|
|
12
|
+
:invalid="invalid ? '' : null"
|
|
13
|
+
:class="labelStyles"
|
|
14
|
+
>
|
|
15
|
+
{{ label }}
|
|
16
|
+
|
|
17
|
+
<template v-slot:addon>
|
|
18
|
+
<slot name="addon" />
|
|
19
|
+
</template>
|
|
20
|
+
</OrLabel>
|
|
21
|
+
</slot>
|
|
22
|
+
</div>
|
|
23
|
+
<div :class="contentStyles">
|
|
24
|
+
<slot />
|
|
25
|
+
</div>
|
|
26
|
+
|
|
27
|
+
<template v-if="hint && !error">
|
|
28
|
+
<OrHint :disabled="disabled">
|
|
29
|
+
{{ hint }}
|
|
30
|
+
</OrHint>
|
|
31
|
+
</template>
|
|
32
|
+
|
|
33
|
+
<template
|
|
34
|
+
v-if="typeof error === 'string'"
|
|
35
|
+
>
|
|
36
|
+
<OrError :disabled="disabled">
|
|
37
|
+
{{ error }}
|
|
38
|
+
</OrError>
|
|
39
|
+
</template>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script lang="ts">
|
|
44
|
+
import { defineComponent, ref, PropType, computed } from 'vue-demi';
|
|
45
|
+
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
46
|
+
import { OrErrorV3 as OrError } from '../or-error-v3';
|
|
47
|
+
import { OrHintV3 as OrHint } from '../or-hint-v3';
|
|
48
|
+
import { FormGroupDirection } from './props';
|
|
49
|
+
import { FormGroupContent, FormGroupContentDirections, FormGroupRoot, FormGroupLabel } from './styles';
|
|
50
|
+
|
|
51
|
+
export default defineComponent({
|
|
52
|
+
name: 'OrFormGroupV3',
|
|
53
|
+
components: {
|
|
54
|
+
OrLabel,
|
|
55
|
+
OrError,
|
|
56
|
+
OrHint,
|
|
57
|
+
},
|
|
58
|
+
props: {
|
|
59
|
+
label: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: undefined,
|
|
62
|
+
},
|
|
63
|
+
required: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: false,
|
|
66
|
+
},
|
|
67
|
+
disabled: {
|
|
68
|
+
type: Boolean,
|
|
69
|
+
default: false,
|
|
70
|
+
},
|
|
71
|
+
direction: {
|
|
72
|
+
type: String as PropType<FormGroupDirection>,
|
|
73
|
+
default: FormGroupDirection.Vertical,
|
|
74
|
+
},
|
|
75
|
+
error: {
|
|
76
|
+
type: [String, Boolean],
|
|
77
|
+
default: undefined,
|
|
78
|
+
},
|
|
79
|
+
hint: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: undefined,
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
setup(props) {
|
|
85
|
+
// Refs
|
|
86
|
+
const root = ref<HTMLElement>();
|
|
87
|
+
|
|
88
|
+
// State
|
|
89
|
+
const invalid = computed(() => !!props.error);
|
|
90
|
+
|
|
91
|
+
// Styles
|
|
92
|
+
const rootStyles = computed(() => [
|
|
93
|
+
'or-form-group-v3',
|
|
94
|
+
...FormGroupRoot,
|
|
95
|
+
]);
|
|
96
|
+
|
|
97
|
+
const labelStyles = computed(() => [
|
|
98
|
+
...FormGroupLabel,
|
|
99
|
+
]);
|
|
100
|
+
|
|
101
|
+
const contentStyles = computed(() => [
|
|
102
|
+
...FormGroupContent,
|
|
103
|
+
...FormGroupContentDirections[props.direction],
|
|
104
|
+
]);
|
|
105
|
+
|
|
106
|
+
return {
|
|
107
|
+
root,
|
|
108
|
+
rootStyles,
|
|
109
|
+
labelStyles,
|
|
110
|
+
contentStyles,
|
|
111
|
+
invalid,
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
</script>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { FormGroupDirection } from './props';
|
|
2
|
+
|
|
3
|
+
export const FormGroupRoot: string[] = [
|
|
4
|
+
// Layout
|
|
5
|
+
'layout-column',
|
|
6
|
+
'gap-md md:gap-sm',
|
|
7
|
+
];
|
|
8
|
+
export const FormGroupContent: string[] = [
|
|
9
|
+
// Layout
|
|
10
|
+
'pl-[10px] md:pl-[0]',
|
|
11
|
+
'gap-md md:gap-sm',
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
export const FormGroupLabel: string[] = [
|
|
15
|
+
// Typography
|
|
16
|
+
'!typography-body-2-regular',
|
|
17
|
+
'!theme-foreground',
|
|
18
|
+
'dark:!theme-foreground-dark',
|
|
19
|
+
|
|
20
|
+
'invalid:!theme-foreground-error',
|
|
21
|
+
'dark:invalid:!theme-foreground-error-dark',
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
export const FormGroupContentDirections: Record<FormGroupDirection, string[]> = {
|
|
25
|
+
[FormGroupDirection.Vertical]: [
|
|
26
|
+
'layout-column',
|
|
27
|
+
'gap-sm',
|
|
28
|
+
],
|
|
29
|
+
[FormGroupDirection.Horizontal]: [
|
|
30
|
+
'layout-row',
|
|
31
|
+
'gap-[18px] md:gap-md',
|
|
32
|
+
],
|
|
33
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { action } from '@storybook/addon-actions';
|
|
2
|
+
import { Meta, StoryFn } from '@storybook/vue3';
|
|
3
|
+
import { ref, watch } from 'vue-demi';
|
|
4
|
+
import OrRadioGroup from './OrRadioGroup.vue';
|
|
5
|
+
import { FormGroupDirection } from '../or-form-group-v3';
|
|
6
|
+
|
|
7
|
+
export default {
|
|
8
|
+
title: 'Components/Forms/Radio/Group',
|
|
9
|
+
component: OrRadioGroup,
|
|
10
|
+
|
|
11
|
+
argTypes: {
|
|
12
|
+
options: {
|
|
13
|
+
control: { type: 'object' },
|
|
14
|
+
},
|
|
15
|
+
direction: {
|
|
16
|
+
control: { type: 'select' },
|
|
17
|
+
options: Object.values(FormGroupDirection),
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
parameters: {
|
|
22
|
+
layout: 'centered',
|
|
23
|
+
},
|
|
24
|
+
} as Meta<typeof OrRadioGroup>;
|
|
25
|
+
|
|
26
|
+
const Template: StoryFn<typeof OrRadioGroup> = (args) => ({
|
|
27
|
+
components: {
|
|
28
|
+
OrRadioGroup,
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
setup() {
|
|
32
|
+
// State
|
|
33
|
+
const model = ref<string>();
|
|
34
|
+
|
|
35
|
+
// Effects
|
|
36
|
+
watch(model, (value) => {
|
|
37
|
+
console.debug(value);
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
args,
|
|
42
|
+
model,
|
|
43
|
+
onUpdateModelValue: action('update:modelValue'),
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
template: `
|
|
48
|
+
<div class="contents">
|
|
49
|
+
<OrRadioGroup
|
|
50
|
+
v-model="model"
|
|
51
|
+
v-bind="args"
|
|
52
|
+
@update:modelValue="onUpdateModelValue"
|
|
53
|
+
/>
|
|
54
|
+
</div>
|
|
55
|
+
`,
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
export const Group = Template.bind({});
|
|
59
|
+
|
|
60
|
+
Group.args = {
|
|
61
|
+
label: 'Radio Group',
|
|
62
|
+
options: [
|
|
63
|
+
{
|
|
64
|
+
label: 'Radio 1',
|
|
65
|
+
value: 'radio-1',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
label: 'Radio 2',
|
|
69
|
+
value: 'radio-2',
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
label: 'Radio 3',
|
|
73
|
+
value: 'radio-3',
|
|
74
|
+
disabled: true,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: 'Radio 4',
|
|
78
|
+
value: 'radio-4',
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
};
|