@onereach/ui-components 4.1.2 → 4.1.3-beta.2558.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 +140 -0
- package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +115 -0
- package/dist/bundled/v2/components/OrCheckboxGroupV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrCheckboxGroupV3/index.js +25 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +203 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +76 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/index.js +17 -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 +7 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/types.js +1 -0
- package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +34 -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/OrFormGroupV3/OrFormGroup.js +123 -0
- package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.vue.d.ts +85 -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 +6 -0
- package/dist/bundled/v2/components/OrFormGroupV3/styles.js +20 -0
- 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/index.d.ts +1 -0
- package/dist/bundled/v2/index.js +4 -3
- 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/{OrCheckbox.vue_vue_type_script_lang-60cefcbd.js → OrCheckbox.vue_vue_type_script_lang-51a4f8d3.js} +26 -10
- package/dist/bundled/v3/OrCheckboxTree.vue_vue_type_script_lang-ffa313a0.js +102 -0
- package/dist/bundled/v3/OrFormGroup.vue_vue_type_script_lang-360b258b.js +60 -0
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-f7601423.js → OrSelect.vue_vue_type_script_lang-c0612348.js} +1 -1
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +112 -0
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +115 -0
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +32 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +74 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +76 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +20 -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 +7 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/types.js +1 -0
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +9 -7
- 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/OrFormGroupV3/OrFormGroup.js +58 -0
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +85 -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 +6 -0
- package/dist/bundled/v3/components/OrFormGroupV3/styles.js +20 -0
- 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/OrSelectV3/OrSelect.js +4 -4
- package/dist/bundled/v3/components/OrSelectV3/index.js +3 -3
- package/dist/bundled/v3/components/index.js +2 -2
- package/dist/bundled/v3/index.d.ts +1 -0
- package/dist/bundled/v3/index.js +7 -7
- 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/{OrCheckbox-dc587ec9.js → OrCheckbox-e55228e5.js} +34 -40
- package/dist/esm/v2/OrCheckboxTree-00fd6cf9.js +202 -0
- package/dist/esm/v2/OrFormGroup-7a883bce.js +140 -0
- package/dist/esm/v2/{OrSelect-40183874.js → OrSelect-4031334e.js} +1 -1
- package/dist/esm/v2/components/index.js +2 -2
- package/dist/esm/v2/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +115 -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 +129 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +76 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +10 -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 +7 -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-form-group-v3/OrFormGroup.vue.d.ts +85 -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 +6 -0
- 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-select-v3/index.js +2 -2
- package/dist/esm/v2/flattenDeep-e7a8b995.js +5 -0
- package/dist/esm/v2/index.d.ts +1 -0
- package/dist/esm/v2/index.js +3 -2
- package/dist/esm/v2/utils/functions/flattenDeep.d.ts +2 -0
- package/dist/esm/v3/{OrCheckbox-56f849f7.js → OrCheckbox-eab735d0.js} +32 -16
- package/dist/esm/v3/OrCheckboxTree-8ead5a31.js +162 -0
- package/dist/esm/v3/OrFormGroup-d9255559.js +121 -0
- package/dist/esm/v3/{OrSelect-5502d82d.js → OrSelect-ebdab996.js} +1 -1
- package/dist/esm/v3/components/index.js +2 -2
- package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +115 -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 +94 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +76 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +10 -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 +7 -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-form-group-v3/OrFormGroup.vue.d.ts +85 -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 +6 -0
- 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-select-v3/index.js +2 -2
- package/dist/esm/v3/flattenDeep-e7a8b995.js +5 -0
- package/dist/esm/v3/index.d.ts +1 -0
- package/dist/esm/v3/index.js +3 -2
- package/dist/esm/v3/utils/functions/flattenDeep.d.ts +2 -0
- package/package.json +2 -3
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.docs.mdx +7 -0
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.stories3.ts +263 -0
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.vue +82 -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 +168 -0
- package/src/components/or-checkbox-tree-v3/index.ts +1 -0
- package/src/components/or-checkbox-tree-v3/styles.ts +15 -0
- package/src/components/or-checkbox-tree-v3/types.ts +7 -0
- package/src/components/or-checkbox-v3/OrCheckbox.vue +30 -12
- package/src/components/or-form-group-v3/OrFormGroup.stories3.ts +114 -0
- package/src/components/or-form-group-v3/OrFormGroup.vue +114 -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 +36 -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/index.ts +1 -0
- package/src/utils/functions/flattenDeep.ts +5 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, reactive } from 'vue-demi';
|
|
2
|
+
import { useVModel } from '@vueuse/core';
|
|
2
3
|
import { CheckboxRoot, CheckboxControl, CheckboxControlHandle } from './components/OrCheckboxV3/styles.js';
|
|
3
4
|
import './components/OrLabelV3/OrLabel.js';
|
|
4
5
|
import { LabelVariant } from './components/OrLabelV3/props.js';
|
|
@@ -17,12 +18,12 @@ var script = defineComponent({
|
|
|
17
18
|
},
|
|
18
19
|
props: {
|
|
19
20
|
modelValue: {
|
|
20
|
-
type:
|
|
21
|
-
default:
|
|
21
|
+
type: null,
|
|
22
|
+
default: null
|
|
22
23
|
},
|
|
23
24
|
value: {
|
|
24
|
-
type: String,
|
|
25
|
-
default:
|
|
25
|
+
type: [String, Boolean, Number],
|
|
26
|
+
default: null
|
|
26
27
|
},
|
|
27
28
|
label: {
|
|
28
29
|
type: String,
|
|
@@ -47,7 +48,9 @@ var script = defineComponent({
|
|
|
47
48
|
},
|
|
48
49
|
emits: ['update:modelValue', 'focus', 'blur'],
|
|
49
50
|
expose: ['root', 'focus', 'blur'],
|
|
50
|
-
setup(props,
|
|
51
|
+
setup(props, {
|
|
52
|
+
emit
|
|
53
|
+
}) {
|
|
51
54
|
// Refs
|
|
52
55
|
const root = ref();
|
|
53
56
|
const control = ref();
|
|
@@ -59,13 +62,25 @@ var script = defineComponent({
|
|
|
59
62
|
id: useIdAttribute(),
|
|
60
63
|
...useControlAttributes()
|
|
61
64
|
});
|
|
62
|
-
const proxyModelValue =
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
const proxyModelValue = useVModel(props, 'modelValue', emit);
|
|
66
|
+
const isChecked = computed(() => {
|
|
67
|
+
if (Array.isArray(proxyModelValue.value)) {
|
|
68
|
+
return props.value && proxyModelValue.value.includes(props.value);
|
|
66
69
|
}
|
|
70
|
+
return !!proxyModelValue.value;
|
|
67
71
|
});
|
|
68
72
|
// Methods
|
|
73
|
+
function handleChange() {
|
|
74
|
+
if (Array.isArray(proxyModelValue.value)) {
|
|
75
|
+
if (isChecked.value) {
|
|
76
|
+
proxyModelValue.value = proxyModelValue.value.filter(v => v !== props.value);
|
|
77
|
+
} else {
|
|
78
|
+
proxyModelValue.value = [...proxyModelValue.value, props.value];
|
|
79
|
+
}
|
|
80
|
+
} else {
|
|
81
|
+
proxyModelValue.value = !proxyModelValue.value;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
69
84
|
function focus() {
|
|
70
85
|
var _a;
|
|
71
86
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -80,7 +95,8 @@ var script = defineComponent({
|
|
|
80
95
|
rootStyles,
|
|
81
96
|
controlStyles,
|
|
82
97
|
controlAttributes,
|
|
83
|
-
|
|
98
|
+
isChecked,
|
|
99
|
+
handleChange,
|
|
84
100
|
focus,
|
|
85
101
|
blur
|
|
86
102
|
};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { defineComponent, computed } from 'vue-demi';
|
|
2
|
+
import { useVModel, useToggle } from '@vueuse/core';
|
|
3
|
+
import { CheckboxTreeRoot, CheckboxTreeRootParent } from './components/OrCheckboxTreeV3/styles.js';
|
|
4
|
+
import flattenDeep from './utils/functions/flattenDeep.js';
|
|
5
|
+
import './components/OrIconV3/OrIcon.js';
|
|
6
|
+
import './components/OrCheckboxV3/OrCheckbox.js';
|
|
7
|
+
import { s as script$1 } from './OrIcon.vue_vue_type_script_lang-73f9cc63.js';
|
|
8
|
+
import { s as script$2 } from './OrCheckbox.vue_vue_type_script_lang-51a4f8d3.js';
|
|
9
|
+
|
|
10
|
+
var script = defineComponent({
|
|
11
|
+
name: 'OrCheckboxTree',
|
|
12
|
+
components: {
|
|
13
|
+
OrIcon: script$1,
|
|
14
|
+
OrCheckbox: script$2
|
|
15
|
+
},
|
|
16
|
+
model: {
|
|
17
|
+
prop: 'modelValue',
|
|
18
|
+
event: 'update:modelValue'
|
|
19
|
+
},
|
|
20
|
+
props: {
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: Array,
|
|
23
|
+
default: () => []
|
|
24
|
+
},
|
|
25
|
+
item: {
|
|
26
|
+
type: Object,
|
|
27
|
+
required: true
|
|
28
|
+
},
|
|
29
|
+
collapsible: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: false
|
|
32
|
+
},
|
|
33
|
+
disabled: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
setup(props, {
|
|
39
|
+
emit
|
|
40
|
+
}) {
|
|
41
|
+
// State
|
|
42
|
+
const hasChildren = computed(() => props.item.children && props.item.children.length > 0);
|
|
43
|
+
const childrenValues = computed(() => {
|
|
44
|
+
const getChildValues = children => {
|
|
45
|
+
return children === null || children === void 0 ? void 0 : children.map(child => {
|
|
46
|
+
if (child.children) {
|
|
47
|
+
return getChildValues(child.children);
|
|
48
|
+
} else {
|
|
49
|
+
return child.value;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
};
|
|
53
|
+
return flattenDeep(getChildValues(props.item.children));
|
|
54
|
+
});
|
|
55
|
+
const proxyModelValue = useVModel(props, 'modelValue', emit);
|
|
56
|
+
const isAnyChildrenSelected = computed(() => {
|
|
57
|
+
var _a;
|
|
58
|
+
return (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.some(value => {
|
|
59
|
+
var _a;
|
|
60
|
+
return (_a = childrenValues.value) === null || _a === void 0 ? void 0 : _a.includes(value);
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
const isAllChildrenSelected = computed(() => {
|
|
64
|
+
var _a;
|
|
65
|
+
return (_a = childrenValues.value) === null || _a === void 0 ? void 0 : _a.every(value => {
|
|
66
|
+
var _a;
|
|
67
|
+
return (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.includes(value);
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
const isIntermediate = computed(() => {
|
|
71
|
+
return isAnyChildrenSelected.value && !isAllChildrenSelected.value;
|
|
72
|
+
});
|
|
73
|
+
const [isOpen, setIsOpen] = useToggle(true);
|
|
74
|
+
// Styles
|
|
75
|
+
const rootStyles = computed(() => ['or-checkbox-tree-v3', ...CheckboxTreeRoot]);
|
|
76
|
+
// Styles
|
|
77
|
+
const parentStyles = computed(() => [...CheckboxTreeRootParent]);
|
|
78
|
+
// Methods
|
|
79
|
+
const handleParentClick = () => {
|
|
80
|
+
if (isAllChildrenSelected.value) {
|
|
81
|
+
proxyModelValue.value = proxyModelValue.value.filter(value => !childrenValues.value.includes(value));
|
|
82
|
+
} else {
|
|
83
|
+
proxyModelValue.value = [...proxyModelValue.value, ...childrenValues.value];
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
return {
|
|
87
|
+
rootStyles,
|
|
88
|
+
parentStyles,
|
|
89
|
+
hasChildren,
|
|
90
|
+
proxyModelValue,
|
|
91
|
+
isOpen,
|
|
92
|
+
setIsOpen,
|
|
93
|
+
isIntermediate,
|
|
94
|
+
isAllChildrenSelected,
|
|
95
|
+
isAnyChildrenSelected,
|
|
96
|
+
childrenValues,
|
|
97
|
+
handleParentClick
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
export { script as s };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
+
import { FormGroupDirection } from './components/OrFormGroupV3/props.js';
|
|
3
|
+
import { FormGroupRoot, FormGroupLabel, FormGroupLabelError, FormGroupContent, FormGroupContentDirections } from './components/OrFormGroupV3/styles.js';
|
|
4
|
+
import './components/OrLabelV3/OrLabel.js';
|
|
5
|
+
import './components/OrErrorV3/OrError.js';
|
|
6
|
+
import './components/OrHintV3/OrHint.js';
|
|
7
|
+
import { s as script$1 } from './OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
8
|
+
import { s as script$2 } from './OrError.vue_vue_type_script_lang-df7b5e32.js';
|
|
9
|
+
import { s as script$3 } from './OrHint.vue_vue_type_script_lang-0f5e8377.js';
|
|
10
|
+
|
|
11
|
+
var script = defineComponent({
|
|
12
|
+
name: 'OrFormGroupV3',
|
|
13
|
+
components: {
|
|
14
|
+
OrLabel: script$1,
|
|
15
|
+
OrError: script$2,
|
|
16
|
+
OrHint: script$3
|
|
17
|
+
},
|
|
18
|
+
props: {
|
|
19
|
+
label: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: undefined
|
|
22
|
+
},
|
|
23
|
+
required: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
},
|
|
27
|
+
disabled: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: false
|
|
30
|
+
},
|
|
31
|
+
direction: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: FormGroupDirection.Vertical
|
|
34
|
+
},
|
|
35
|
+
error: {
|
|
36
|
+
type: [String, Boolean],
|
|
37
|
+
default: undefined
|
|
38
|
+
},
|
|
39
|
+
hint: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: undefined
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
setup(props) {
|
|
45
|
+
// Refs
|
|
46
|
+
const root = ref();
|
|
47
|
+
// Styles
|
|
48
|
+
const rootStyles = computed(() => ['or-form-group-v3', ...FormGroupRoot]);
|
|
49
|
+
const labelStyles = computed(() => [...FormGroupLabel, ...(props.error ? FormGroupLabelError : [])]);
|
|
50
|
+
const contentStyles = computed(() => [...FormGroupContent, ...FormGroupContentDirections[props.direction]]);
|
|
51
|
+
return {
|
|
52
|
+
root,
|
|
53
|
+
rootStyles,
|
|
54
|
+
labelStyles,
|
|
55
|
+
contentStyles
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export { script as s };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from 'vue-demi';
|
|
2
2
|
import { SelectRoot, SelectControl, SelectPlaceholder, SelectDropdown, SelectNoSearchResults } from './components/OrSelectV3/styles.js';
|
|
3
3
|
import './components/OrCheckboxV3/OrCheckbox.js';
|
|
4
|
-
import { s as script$1 } from './OrCheckbox.vue_vue_type_script_lang-
|
|
4
|
+
import { s as script$1 } from './OrCheckbox.vue_vue_type_script_lang-51a4f8d3.js';
|
|
5
5
|
import './components/OrErrorV3/OrError.js';
|
|
6
6
|
import './components/OrExpansionPanelV3/OrExpansionPanel.js';
|
|
7
7
|
import { s as script$3 } from './OrExpansionPanel.vue_vue_type_script_lang-f1b6ff7d.js';
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { defineComponent } from 'vue-demi';
|
|
2
|
+
import { useVModel } from '@vueuse/core';
|
|
3
|
+
import '../OrCheckboxTreeV3/OrCheckboxTree.js';
|
|
4
|
+
import { s as script$1 } from '../../OrCheckboxTree.vue_vue_type_script_lang-ffa313a0.js';
|
|
5
|
+
import '../OrFormGroupV3/OrFormGroup.js';
|
|
6
|
+
import { FormGroupDirection } from '../OrFormGroupV3/props.js';
|
|
7
|
+
import { s as script$2 } from '../../OrFormGroup.vue_vue_type_script_lang-360b258b.js';
|
|
8
|
+
import { resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
9
|
+
import '../OrCheckboxTreeV3/styles.js';
|
|
10
|
+
import '../../utils/functions/flattenDeep.js';
|
|
11
|
+
import '../OrIconV3/OrIcon.js';
|
|
12
|
+
import '../../OrIcon.vue_vue_type_script_lang-73f9cc63.js';
|
|
13
|
+
import '../OrIconV3/props.js';
|
|
14
|
+
import '../OrIconV3/styles.js';
|
|
15
|
+
import '../OrCheckboxV3/OrCheckbox.js';
|
|
16
|
+
import '../../OrCheckbox.vue_vue_type_script_lang-51a4f8d3.js';
|
|
17
|
+
import '../OrCheckboxV3/styles.js';
|
|
18
|
+
import '../OrLabelV3/OrLabel.js';
|
|
19
|
+
import '../../OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
20
|
+
import '../OrLabelV3/props.js';
|
|
21
|
+
import '../OrLabelV3/styles.js';
|
|
22
|
+
import '../../hooks/useIdAttribute.js';
|
|
23
|
+
import '../../hooks/useControlAttributes.js';
|
|
24
|
+
import '../../style-inject.es-4c6f2515.js';
|
|
25
|
+
import '../OrFormGroupV3/styles.js';
|
|
26
|
+
import '../OrErrorV3/OrError.js';
|
|
27
|
+
import '../../OrError.vue_vue_type_script_lang-df7b5e32.js';
|
|
28
|
+
import '../OrErrorV3/styles.js';
|
|
29
|
+
import '../OrHintV3/OrHint.js';
|
|
30
|
+
import '../../OrHint.vue_vue_type_script_lang-0f5e8377.js';
|
|
31
|
+
import '../OrHintV3/styles.js';
|
|
32
|
+
|
|
33
|
+
var script = defineComponent({
|
|
34
|
+
name: 'OrCheckboxGroup',
|
|
35
|
+
components: {
|
|
36
|
+
OrCheckboxTree: script$1,
|
|
37
|
+
OrFormGroup: script$2
|
|
38
|
+
},
|
|
39
|
+
model: {
|
|
40
|
+
prop: 'modelValue',
|
|
41
|
+
event: 'update:modelValue'
|
|
42
|
+
},
|
|
43
|
+
props: {
|
|
44
|
+
modelValue: {
|
|
45
|
+
type: Array,
|
|
46
|
+
default: () => []
|
|
47
|
+
},
|
|
48
|
+
label: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: ''
|
|
51
|
+
},
|
|
52
|
+
error: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: ''
|
|
55
|
+
},
|
|
56
|
+
hint: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: ''
|
|
59
|
+
},
|
|
60
|
+
direction: {
|
|
61
|
+
type: String,
|
|
62
|
+
default: FormGroupDirection.Vertical
|
|
63
|
+
},
|
|
64
|
+
options: {
|
|
65
|
+
type: Array,
|
|
66
|
+
default: () => []
|
|
67
|
+
},
|
|
68
|
+
disabled: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
setup(props, {
|
|
74
|
+
emit
|
|
75
|
+
}) {
|
|
76
|
+
const proxyModelValue = useVModel(props, 'modelValue', emit);
|
|
77
|
+
return {
|
|
78
|
+
proxyModelValue
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
84
|
+
const _component_OrCheckboxTree = resolveComponent("OrCheckboxTree");
|
|
85
|
+
const _component_OrFormGroup = resolveComponent("OrFormGroup");
|
|
86
|
+
return openBlock(), createBlock(_component_OrFormGroup, {
|
|
87
|
+
label: _ctx.label,
|
|
88
|
+
error: _ctx.error,
|
|
89
|
+
hint: _ctx.hint,
|
|
90
|
+
disabled: _ctx.disabled,
|
|
91
|
+
direction: _ctx.direction
|
|
92
|
+
}, {
|
|
93
|
+
addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
|
|
94
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, option => {
|
|
95
|
+
return openBlock(), createBlock(_component_OrCheckboxTree, {
|
|
96
|
+
key: option.value,
|
|
97
|
+
modelValue: _ctx.proxyModelValue,
|
|
98
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event),
|
|
99
|
+
item: option,
|
|
100
|
+
disabled: _ctx.disabled || option.disabled,
|
|
101
|
+
collapsible: option.collapsible
|
|
102
|
+
}, null, 8 /* PROPS */, ["modelValue", "item", "disabled", "collapsible"]);
|
|
103
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
104
|
+
|
|
105
|
+
_: 3 /* FORWARDED */
|
|
106
|
+
}, 8 /* PROPS */, ["label", "error", "hint", "disabled", "direction"]);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
script.render = render;
|
|
110
|
+
script.__file = "src/components/or-checkbox-group-v3/OrCheckboxGroup.vue";
|
|
111
|
+
|
|
112
|
+
export { script as default };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { FormGroupDirection } from '../or-form-group-v3';
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
proxyModelValue: import("@vue/composition-api").Ref<string[]> | import("@vue/composition-api").WritableComputedRef<string[]>;
|
|
5
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: PropType<string[]>;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
label: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
error: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
hint: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
direction: {
|
|
23
|
+
type: PropType<FormGroupDirection>;
|
|
24
|
+
default: FormGroupDirection;
|
|
25
|
+
};
|
|
26
|
+
options: {
|
|
27
|
+
type: PropType<{
|
|
28
|
+
label: string;
|
|
29
|
+
value: any;
|
|
30
|
+
disabled?: boolean | undefined;
|
|
31
|
+
collapsible: boolean;
|
|
32
|
+
}[]>;
|
|
33
|
+
default: () => never[];
|
|
34
|
+
};
|
|
35
|
+
disabled: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
40
|
+
modelValue: {
|
|
41
|
+
type: PropType<string[]>;
|
|
42
|
+
default: () => never[];
|
|
43
|
+
};
|
|
44
|
+
label: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
error: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
hint: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
direction: {
|
|
57
|
+
type: PropType<FormGroupDirection>;
|
|
58
|
+
default: FormGroupDirection;
|
|
59
|
+
};
|
|
60
|
+
options: {
|
|
61
|
+
type: PropType<{
|
|
62
|
+
label: string;
|
|
63
|
+
value: any;
|
|
64
|
+
disabled?: boolean | undefined;
|
|
65
|
+
collapsible: boolean;
|
|
66
|
+
}[]>;
|
|
67
|
+
default: () => never[];
|
|
68
|
+
};
|
|
69
|
+
disabled: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
74
|
+
modelValue: string[];
|
|
75
|
+
label: string;
|
|
76
|
+
error: string;
|
|
77
|
+
hint: string;
|
|
78
|
+
direction: FormGroupDirection;
|
|
79
|
+
options: {
|
|
80
|
+
label: string;
|
|
81
|
+
value: any;
|
|
82
|
+
disabled?: boolean | undefined;
|
|
83
|
+
collapsible: boolean;
|
|
84
|
+
}[];
|
|
85
|
+
disabled: boolean;
|
|
86
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
87
|
+
proxyModelValue: import("@vue/composition-api").Ref<string[]> | import("@vue/composition-api").WritableComputedRef<string[]>;
|
|
88
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
89
|
+
modelValue: string[];
|
|
90
|
+
label: string;
|
|
91
|
+
error: string;
|
|
92
|
+
hint: string;
|
|
93
|
+
direction: FormGroupDirection;
|
|
94
|
+
options: {
|
|
95
|
+
label: string;
|
|
96
|
+
value: any;
|
|
97
|
+
disabled?: boolean | undefined;
|
|
98
|
+
collapsible: boolean;
|
|
99
|
+
}[];
|
|
100
|
+
disabled: boolean;
|
|
101
|
+
} & {}, {
|
|
102
|
+
modelValue: string[];
|
|
103
|
+
label: string;
|
|
104
|
+
error: string;
|
|
105
|
+
hint: string;
|
|
106
|
+
direction: FormGroupDirection;
|
|
107
|
+
options: {
|
|
108
|
+
label: string;
|
|
109
|
+
value: any;
|
|
110
|
+
disabled?: boolean | undefined;
|
|
111
|
+
collapsible: boolean;
|
|
112
|
+
}[];
|
|
113
|
+
disabled: boolean;
|
|
114
|
+
}, true>);
|
|
115
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrCheckboxGroupV3 } from './OrCheckboxGroup.vue';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export { default as OrCheckboxGroupV3 } from './OrCheckboxGroup.js';
|
|
2
|
+
import 'vue-demi';
|
|
3
|
+
import '@vueuse/core';
|
|
4
|
+
import '../OrCheckboxTreeV3/OrCheckboxTree.js';
|
|
5
|
+
import '../../OrCheckboxTree.vue_vue_type_script_lang-ffa313a0.js';
|
|
6
|
+
import '../OrCheckboxTreeV3/styles.js';
|
|
7
|
+
import '../../utils/functions/flattenDeep.js';
|
|
8
|
+
import '../OrIconV3/OrIcon.js';
|
|
9
|
+
import '../../OrIcon.vue_vue_type_script_lang-73f9cc63.js';
|
|
10
|
+
import '../OrIconV3/props.js';
|
|
11
|
+
import '../OrIconV3/styles.js';
|
|
12
|
+
import 'vue';
|
|
13
|
+
import '../OrCheckboxV3/OrCheckbox.js';
|
|
14
|
+
import '../../OrCheckbox.vue_vue_type_script_lang-51a4f8d3.js';
|
|
15
|
+
import '../OrCheckboxV3/styles.js';
|
|
16
|
+
import '../OrLabelV3/OrLabel.js';
|
|
17
|
+
import '../../OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
18
|
+
import '../OrLabelV3/props.js';
|
|
19
|
+
import '../OrLabelV3/styles.js';
|
|
20
|
+
import '../../hooks/useIdAttribute.js';
|
|
21
|
+
import '../../hooks/useControlAttributes.js';
|
|
22
|
+
import '../../style-inject.es-4c6f2515.js';
|
|
23
|
+
import '../OrFormGroupV3/OrFormGroup.js';
|
|
24
|
+
import '../../OrFormGroup.vue_vue_type_script_lang-360b258b.js';
|
|
25
|
+
import '../OrFormGroupV3/props.js';
|
|
26
|
+
import '../OrFormGroupV3/styles.js';
|
|
27
|
+
import '../OrErrorV3/OrError.js';
|
|
28
|
+
import '../../OrError.vue_vue_type_script_lang-df7b5e32.js';
|
|
29
|
+
import '../OrErrorV3/styles.js';
|
|
30
|
+
import '../OrHintV3/OrHint.js';
|
|
31
|
+
import '../../OrHint.vue_vue_type_script_lang-0f5e8377.js';
|
|
32
|
+
import '../OrHintV3/styles.js';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { s as script } from '../../OrCheckboxTree.vue_vue_type_script_lang-ffa313a0.js';
|
|
2
|
+
export { s as default } from '../../OrCheckboxTree.vue_vue_type_script_lang-ffa313a0.js';
|
|
3
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, createElementVNode, createBlock, createCommentVNode, createVNode, renderList } from 'vue';
|
|
4
|
+
import 'vue-demi';
|
|
5
|
+
import '@vueuse/core';
|
|
6
|
+
import './styles.js';
|
|
7
|
+
import '../../utils/functions/flattenDeep.js';
|
|
8
|
+
import '../OrIconV3/OrIcon.js';
|
|
9
|
+
import '../../OrIcon.vue_vue_type_script_lang-73f9cc63.js';
|
|
10
|
+
import '../OrIconV3/props.js';
|
|
11
|
+
import '../OrIconV3/styles.js';
|
|
12
|
+
import '../OrCheckboxV3/OrCheckbox.js';
|
|
13
|
+
import '../../OrCheckbox.vue_vue_type_script_lang-51a4f8d3.js';
|
|
14
|
+
import '../OrCheckboxV3/styles.js';
|
|
15
|
+
import '../OrLabelV3/OrLabel.js';
|
|
16
|
+
import '../../OrLabel.vue_vue_type_script_lang-3e11ab8a.js';
|
|
17
|
+
import '../OrLabelV3/props.js';
|
|
18
|
+
import '../OrLabelV3/styles.js';
|
|
19
|
+
import '../../hooks/useIdAttribute.js';
|
|
20
|
+
import '../../hooks/useControlAttributes.js';
|
|
21
|
+
import '../../style-inject.es-4c6f2515.js';
|
|
22
|
+
|
|
23
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
24
|
+
const _component_OrIcon = resolveComponent("OrIcon");
|
|
25
|
+
const _component_OrCheckbox = resolveComponent("OrCheckbox");
|
|
26
|
+
const _component_OrCheckboxTree = resolveComponent("OrCheckboxTree", true);
|
|
27
|
+
return openBlock(), createElementBlock("div", {
|
|
28
|
+
ref: "root",
|
|
29
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
30
|
+
}, [_ctx.hasChildren ? (openBlock(), createElementBlock(Fragment, {
|
|
31
|
+
key: 0
|
|
32
|
+
}, [createElementVNode("div", {
|
|
33
|
+
class: normalizeClass(_ctx.parentStyles)
|
|
34
|
+
}, [_ctx.collapsible ? (openBlock(), createBlock(_component_OrIcon, {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: normalizeClass([_ctx.isOpen ? 'rotate-[180deg]' : 'rotate-0']),
|
|
37
|
+
icon: "arrow_drop_down",
|
|
38
|
+
size: "l",
|
|
39
|
+
onClick: _cache[0] || (_cache[0] = () => _ctx.setIsOpen(!_ctx.isOpen))
|
|
40
|
+
}, null, 8 /* PROPS */, ["class"])) : createCommentVNode("v-if", true), createVNode(_component_OrCheckbox, {
|
|
41
|
+
value: "true",
|
|
42
|
+
"model-value": _ctx.isAllChildrenSelected,
|
|
43
|
+
indeterminate: _ctx.isIntermediate,
|
|
44
|
+
label: _ctx.item.label,
|
|
45
|
+
disabled: _ctx.disabled,
|
|
46
|
+
onClick: _ctx.handleParentClick
|
|
47
|
+
}, null, 8 /* PROPS */, ["model-value", "indeterminate", "label", "disabled", "onClick"])], 2 /* CLASS */), _ctx.hasChildren && _ctx.isOpen ? (openBlock(), createElementBlock("div", {
|
|
48
|
+
key: 0,
|
|
49
|
+
class: normalizeClass({
|
|
50
|
+
'ml-2xl': _ctx.collapsible,
|
|
51
|
+
'ml-lg': !_ctx.collapsible
|
|
52
|
+
})
|
|
53
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.item.children, child => {
|
|
54
|
+
return openBlock(), createBlock(_component_OrCheckboxTree, {
|
|
55
|
+
key: child.value,
|
|
56
|
+
modelValue: _ctx.proxyModelValue,
|
|
57
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.proxyModelValue = $event),
|
|
58
|
+
class: "mt-xs",
|
|
59
|
+
item: child,
|
|
60
|
+
collapsible: _ctx.collapsible || child.collapsible,
|
|
61
|
+
disabled: _ctx.disabled || child.disabled
|
|
62
|
+
}, null, 8 /* PROPS */, ["modelValue", "item", "collapsible", "disabled"]);
|
|
63
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createBlock(_component_OrCheckbox, {
|
|
64
|
+
key: 1,
|
|
65
|
+
modelValue: _ctx.proxyModelValue,
|
|
66
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.proxyModelValue = $event),
|
|
67
|
+
disabled: _ctx.disabled || _ctx.item.disabled,
|
|
68
|
+
label: _ctx.item.label,
|
|
69
|
+
value: _ctx.item.value
|
|
70
|
+
}, null, 8 /* PROPS */, ["modelValue", "disabled", "label", "value"]))], 2 /* CLASS */);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
script.render = render;
|
|
74
|
+
script.__file = "src/components/or-checkbox-tree-v3/OrCheckboxTree.vue";
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { CheckboxNode } from './types';
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
5
|
+
parentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
|
+
hasChildren: import("@vue/composition-api").ComputedRef<boolean | undefined>;
|
|
7
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]> | import("@vue/composition-api").Ref<string[]>;
|
|
8
|
+
isOpen: import("@vue/composition-api").Ref<boolean>;
|
|
9
|
+
setIsOpen: (value?: boolean | undefined) => boolean;
|
|
10
|
+
isIntermediate: import("@vue/composition-api").ComputedRef<boolean>;
|
|
11
|
+
isAllChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
12
|
+
isAnyChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
13
|
+
childrenValues: import("@vue/composition-api").ComputedRef<any[]>;
|
|
14
|
+
handleParentClick: () => void;
|
|
15
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
16
|
+
modelValue: {
|
|
17
|
+
type: PropType<string[]>;
|
|
18
|
+
default: () => never[];
|
|
19
|
+
};
|
|
20
|
+
item: {
|
|
21
|
+
type: PropType<CheckboxNode>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
collapsible: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
disabled: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
33
|
+
modelValue: {
|
|
34
|
+
type: PropType<string[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
item: {
|
|
38
|
+
type: PropType<CheckboxNode>;
|
|
39
|
+
required: true;
|
|
40
|
+
};
|
|
41
|
+
collapsible: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
disabled: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
50
|
+
modelValue: string[];
|
|
51
|
+
item: CheckboxNode;
|
|
52
|
+
collapsible: boolean;
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
55
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
56
|
+
parentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
57
|
+
hasChildren: import("@vue/composition-api").ComputedRef<boolean | undefined>;
|
|
58
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]> | import("@vue/composition-api").Ref<string[]>;
|
|
59
|
+
isOpen: import("@vue/composition-api").Ref<boolean>;
|
|
60
|
+
setIsOpen: (value?: boolean | undefined) => boolean;
|
|
61
|
+
isIntermediate: import("@vue/composition-api").ComputedRef<boolean>;
|
|
62
|
+
isAllChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
63
|
+
isAnyChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
64
|
+
childrenValues: import("@vue/composition-api").ComputedRef<any[]>;
|
|
65
|
+
handleParentClick: () => void;
|
|
66
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
67
|
+
modelValue: string[];
|
|
68
|
+
item: CheckboxNode;
|
|
69
|
+
collapsible: boolean;
|
|
70
|
+
disabled: boolean;
|
|
71
|
+
} & {}, {
|
|
72
|
+
modelValue: string[];
|
|
73
|
+
collapsible: boolean;
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
}, true>);
|
|
76
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrCheckboxTreeV3 } from './OrCheckboxTree.vue';
|