@onereach/ui-components 4.1.1 → 4.1.2-beta.2552.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 +132 -0
- package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +110 -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 +190 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +63 -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 +1 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/styles.js +7 -0
- package/dist/bundled/v2/components/OrCheckboxTreeV3/types.d.ts +5 -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 +121 -0
- package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.vue.d.ts +83 -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 +4 -0
- package/dist/bundled/v2/components/OrFormGroupV3/styles.js +14 -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.js +3 -3
- 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-80c4ebd5.js +93 -0
- package/dist/bundled/v3/OrFormGroup.vue_vue_type_script_lang-fb14a874.js +58 -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 +110 -0
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +110 -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 +71 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +63 -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 +1 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.js +7 -0
- package/dist/bundled/v3/components/OrCheckboxTreeV3/types.d.ts +5 -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 +83 -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 +4 -0
- package/dist/bundled/v3/components/OrFormGroupV3/styles.js +14 -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.js +6 -7
- package/dist/esm/v2/{OrCheckbox-dc587ec9.js → OrCheckbox-e55228e5.js} +34 -40
- package/dist/esm/v2/OrCheckboxTree-636b7553.js +186 -0
- package/dist/esm/v2/OrFormGroup-e583c054.js +132 -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 +110 -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 +121 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +63 -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 +1 -0
- package/dist/esm/v2/components/or-checkbox-tree-v3/types.d.ts +5 -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 +83 -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 +4 -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/index.js +2 -2
- package/dist/esm/v3/{OrCheckbox-56f849f7.js → OrCheckbox-eab735d0.js} +32 -16
- package/dist/esm/v3/OrCheckboxTree-1acfe5c8.js +147 -0
- package/dist/esm/v3/OrFormGroup-e7a78131.js +113 -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 +110 -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 +92 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +63 -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 +1 -0
- package/dist/esm/v3/components/or-checkbox-tree-v3/types.d.ts +5 -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 +83 -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 +4 -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/index.js +2 -2
- package/package.json +2 -3
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.docs.mdx +12 -0
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.stories3.ts +163 -0
- package/src/components/or-checkbox-group-v3/OrCheckboxGroup.vue +78 -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 +99 -0
- package/src/components/or-checkbox-tree-v3/OrCheckboxTree.vue +149 -0
- package/src/components/or-checkbox-tree-v3/index.ts +1 -0
- package/src/components/or-checkbox-tree-v3/styles.ts +9 -0
- package/src/components/or-checkbox-tree-v3/types.ts +5 -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 +108 -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 +26 -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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, reactive } from 'vue-demi';
|
|
2
|
+
import { useVModel } from '@vueuse/core';
|
|
2
3
|
import { a as useIdAttribute, u as useControlAttributes } from './useIdAttribute-859439f0.js';
|
|
3
|
-
import '@vueuse/core';
|
|
4
4
|
import { s as script$1, L as LabelVariant } from './OrLabel-4da56db0.js';
|
|
5
|
-
import { resolveComponent, openBlock, createElementBlock, normalizeClass,
|
|
5
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
6
6
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
7
7
|
|
|
8
8
|
const CheckboxRoot = [
|
|
@@ -46,12 +46,12 @@ var script = defineComponent({
|
|
|
46
46
|
},
|
|
47
47
|
props: {
|
|
48
48
|
modelValue: {
|
|
49
|
-
type:
|
|
50
|
-
default:
|
|
49
|
+
type: null,
|
|
50
|
+
default: null
|
|
51
51
|
},
|
|
52
52
|
value: {
|
|
53
|
-
type: String,
|
|
54
|
-
default:
|
|
53
|
+
type: [String, Boolean, Number],
|
|
54
|
+
default: null
|
|
55
55
|
},
|
|
56
56
|
label: {
|
|
57
57
|
type: String,
|
|
@@ -76,7 +76,9 @@ var script = defineComponent({
|
|
|
76
76
|
},
|
|
77
77
|
emits: ['update:modelValue', 'focus', 'blur'],
|
|
78
78
|
expose: ['root', 'focus', 'blur'],
|
|
79
|
-
setup(props,
|
|
79
|
+
setup(props, {
|
|
80
|
+
emit
|
|
81
|
+
}) {
|
|
80
82
|
// Refs
|
|
81
83
|
const root = ref();
|
|
82
84
|
const control = ref();
|
|
@@ -88,13 +90,25 @@ var script = defineComponent({
|
|
|
88
90
|
id: useIdAttribute(),
|
|
89
91
|
...useControlAttributes()
|
|
90
92
|
});
|
|
91
|
-
const proxyModelValue =
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
const proxyModelValue = useVModel(props, 'modelValue', emit);
|
|
94
|
+
const isChecked = computed(() => {
|
|
95
|
+
if (Array.isArray(proxyModelValue.value)) {
|
|
96
|
+
return props.value && proxyModelValue.value.includes(props.value);
|
|
95
97
|
}
|
|
98
|
+
return !!proxyModelValue.value;
|
|
96
99
|
});
|
|
97
100
|
// Methods
|
|
101
|
+
function handleChange() {
|
|
102
|
+
if (Array.isArray(proxyModelValue.value)) {
|
|
103
|
+
if (isChecked.value) {
|
|
104
|
+
proxyModelValue.value = proxyModelValue.value.filter(v => v !== props.value);
|
|
105
|
+
} else {
|
|
106
|
+
proxyModelValue.value = [...proxyModelValue.value, props.value];
|
|
107
|
+
}
|
|
108
|
+
} else {
|
|
109
|
+
proxyModelValue.value = !proxyModelValue.value;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
98
112
|
function focus() {
|
|
99
113
|
var _a;
|
|
100
114
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -109,22 +123,23 @@ var script = defineComponent({
|
|
|
109
123
|
rootStyles,
|
|
110
124
|
controlStyles,
|
|
111
125
|
controlAttributes,
|
|
112
|
-
|
|
126
|
+
isChecked,
|
|
127
|
+
handleChange,
|
|
113
128
|
focus,
|
|
114
129
|
blur
|
|
115
130
|
};
|
|
116
131
|
}
|
|
117
132
|
});
|
|
118
133
|
|
|
119
|
-
const _hoisted_1 = ["value", "indeterminate", "required", "disabled"];
|
|
134
|
+
const _hoisted_1 = ["checked", "value", "indeterminate", "required", "disabled"];
|
|
120
135
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
121
136
|
const _component_OrLabel = resolveComponent("OrLabel");
|
|
122
137
|
return openBlock(), createElementBlock("div", {
|
|
123
138
|
ref: "root",
|
|
124
139
|
class: normalizeClass(_ctx.rootStyles)
|
|
125
|
-
}, [
|
|
140
|
+
}, [createElementVNode("input", mergeProps({
|
|
126
141
|
ref: "control",
|
|
127
|
-
|
|
142
|
+
checked: _ctx.isChecked
|
|
128
143
|
}, _ctx.controlAttributes, {
|
|
129
144
|
class: _ctx.controlStyles,
|
|
130
145
|
type: 'checkbox',
|
|
@@ -132,9 +147,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
132
147
|
indeterminate: _ctx.indeterminate,
|
|
133
148
|
required: _ctx.required,
|
|
134
149
|
disabled: _ctx.disabled,
|
|
150
|
+
onChange: _cache[0] || (_cache[0] = (...args) => _ctx.handleChange && _ctx.handleChange(...args)),
|
|
135
151
|
onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
|
|
136
152
|
onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
|
|
137
|
-
}), null, 16 /* FULL_PROPS */, _hoisted_1),
|
|
153
|
+
}), null, 16 /* FULL_PROPS */, _hoisted_1), _ctx.$slots.default || _ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
138
154
|
key: 0,
|
|
139
155
|
"control-id": _ctx.controlAttributes.id,
|
|
140
156
|
variant: _ctx.labelVariant,
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { defineComponent, computed } from 'vue-demi';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import { useVModel, useToggle } from '@vueuse/core';
|
|
4
|
+
import { s as script$2 } from './OrCheckbox-eab735d0.js';
|
|
5
|
+
import { s as script$1 } from './OrIcon-62793572.js';
|
|
6
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, createElementVNode, createBlock, createCommentVNode, createVNode, renderList } from 'vue';
|
|
7
|
+
|
|
8
|
+
const CheckboxDeepRoot = [
|
|
9
|
+
// Layout
|
|
10
|
+
'flex', 'flex-col',
|
|
11
|
+
// Spacing
|
|
12
|
+
'gap-sm+ md:gap-sm'];
|
|
13
|
+
|
|
14
|
+
var script = defineComponent({
|
|
15
|
+
name: 'OrCheckboxTree',
|
|
16
|
+
components: {
|
|
17
|
+
OrIcon: script$1,
|
|
18
|
+
OrCheckbox: script$2
|
|
19
|
+
},
|
|
20
|
+
model: {
|
|
21
|
+
prop: 'modelValue',
|
|
22
|
+
event: 'update:modelValue'
|
|
23
|
+
},
|
|
24
|
+
props: {
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: Array,
|
|
27
|
+
default: () => []
|
|
28
|
+
},
|
|
29
|
+
item: {
|
|
30
|
+
type: Object,
|
|
31
|
+
required: true
|
|
32
|
+
},
|
|
33
|
+
collapsible: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: true
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
setup(props, {
|
|
39
|
+
emit
|
|
40
|
+
}) {
|
|
41
|
+
const hasChildren = computed(() => props.item.children && props.item.children.length > 0);
|
|
42
|
+
const childrenValues = computed(() => {
|
|
43
|
+
const getChildValues = children => {
|
|
44
|
+
return children === null || children === void 0 ? void 0 : children.map(child => {
|
|
45
|
+
if (child.children) {
|
|
46
|
+
return getChildValues(child.children);
|
|
47
|
+
} else {
|
|
48
|
+
return child.value;
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
return _.flatten(getChildValues(props.item.children));
|
|
53
|
+
});
|
|
54
|
+
const proxyModelValue = useVModel(props, 'modelValue', emit);
|
|
55
|
+
const isAnyChildrenSelected = computed(() => {
|
|
56
|
+
var _a;
|
|
57
|
+
return (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.some(value => {
|
|
58
|
+
var _a;
|
|
59
|
+
return (_a = childrenValues.value) === null || _a === void 0 ? void 0 : _a.includes(value);
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
const isAllChildrenSelected = computed(() => {
|
|
63
|
+
var _a;
|
|
64
|
+
return (_a = childrenValues.value) === null || _a === void 0 ? void 0 : _a.every(value => {
|
|
65
|
+
var _a;
|
|
66
|
+
return (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.includes(value);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
const isIntermediate = computed(() => {
|
|
70
|
+
return isAnyChildrenSelected.value && !isAllChildrenSelected.value;
|
|
71
|
+
});
|
|
72
|
+
const [isOpen, setIsOpen] = useToggle(true);
|
|
73
|
+
// Styles
|
|
74
|
+
const rootStyles = computed(() => ['or-checkbox-deep-v3', ...CheckboxDeepRoot]);
|
|
75
|
+
const handleParentClick = () => {
|
|
76
|
+
if (isAllChildrenSelected.value) {
|
|
77
|
+
proxyModelValue.value = proxyModelValue.value.filter(value => !childrenValues.value.includes(value));
|
|
78
|
+
} else {
|
|
79
|
+
proxyModelValue.value = [...proxyModelValue.value, ...childrenValues.value];
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
return {
|
|
83
|
+
rootStyles,
|
|
84
|
+
hasChildren,
|
|
85
|
+
proxyModelValue,
|
|
86
|
+
isOpen,
|
|
87
|
+
setIsOpen,
|
|
88
|
+
isIntermediate,
|
|
89
|
+
isAllChildrenSelected,
|
|
90
|
+
isAnyChildrenSelected,
|
|
91
|
+
childrenValues,
|
|
92
|
+
handleParentClick
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
const _hoisted_1 = {
|
|
98
|
+
class: "flex flex-row gap-xs"
|
|
99
|
+
};
|
|
100
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
101
|
+
const _component_OrIcon = resolveComponent("OrIcon");
|
|
102
|
+
const _component_OrCheckbox = resolveComponent("OrCheckbox");
|
|
103
|
+
const _component_OrCheckboxTree = resolveComponent("OrCheckboxTree", true);
|
|
104
|
+
return openBlock(), createElementBlock("div", {
|
|
105
|
+
ref: "root",
|
|
106
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
107
|
+
}, [_ctx.hasChildren ? (openBlock(), createElementBlock(Fragment, {
|
|
108
|
+
key: 0
|
|
109
|
+
}, [createElementVNode("div", _hoisted_1, [_ctx.collapsible ? (openBlock(), createBlock(_component_OrIcon, {
|
|
110
|
+
key: 0,
|
|
111
|
+
class: normalizeClass([_ctx.isOpen ? 'rotate-0' : 'rotate-[-90deg]']),
|
|
112
|
+
icon: "arrow_drop_down",
|
|
113
|
+
size: "l",
|
|
114
|
+
onClick: _cache[0] || (_cache[0] = () => _ctx.setIsOpen(!_ctx.isOpen))
|
|
115
|
+
}, null, 8 /* PROPS */, ["class"])) : createCommentVNode("v-if", true), createVNode(_component_OrCheckbox, {
|
|
116
|
+
value: "true",
|
|
117
|
+
"model-value": _ctx.isAllChildrenSelected,
|
|
118
|
+
indeterminate: _ctx.isIntermediate,
|
|
119
|
+
label: _ctx.item.label,
|
|
120
|
+
onClick: _ctx.handleParentClick
|
|
121
|
+
}, null, 8 /* PROPS */, ["model-value", "indeterminate", "label", "onClick"])]), _ctx.hasChildren && _ctx.isOpen ? (openBlock(), createElementBlock("div", {
|
|
122
|
+
key: 0,
|
|
123
|
+
class: normalizeClass({
|
|
124
|
+
'ml-2xl': _ctx.collapsible
|
|
125
|
+
})
|
|
126
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.item.children, child => {
|
|
127
|
+
return openBlock(), createBlock(_component_OrCheckboxTree, {
|
|
128
|
+
key: child.value,
|
|
129
|
+
modelValue: _ctx.proxyModelValue,
|
|
130
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.proxyModelValue = $event),
|
|
131
|
+
class: "mt-xs",
|
|
132
|
+
item: child,
|
|
133
|
+
collapsible: _ctx.collapsible
|
|
134
|
+
}, null, 8 /* PROPS */, ["modelValue", "item", "collapsible"]);
|
|
135
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)) : createCommentVNode("v-if", true)], 64 /* STABLE_FRAGMENT */)) : (openBlock(), createBlock(_component_OrCheckbox, {
|
|
136
|
+
key: 1,
|
|
137
|
+
modelValue: _ctx.proxyModelValue,
|
|
138
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.proxyModelValue = $event),
|
|
139
|
+
label: _ctx.item.label,
|
|
140
|
+
value: _ctx.item.value
|
|
141
|
+
}, null, 8 /* PROPS */, ["modelValue", "label", "value"]))], 2 /* CLASS */);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
script.render = render;
|
|
145
|
+
script.__file = "src/components/or-checkbox-tree-v3/OrCheckboxTree.vue";
|
|
146
|
+
|
|
147
|
+
export { script as s };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { defineComponent, ref, computed } from 'vue-demi';
|
|
2
|
+
import { s as script$1 } from './OrLabel-4da56db0.js';
|
|
3
|
+
import { s as script$2 } from './OrError-c01d0c29.js';
|
|
4
|
+
import { s as script$3 } from './OrHint-06ab89d7.js';
|
|
5
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createBlock, withCtx, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
6
|
+
|
|
7
|
+
var FormGroupDirection;
|
|
8
|
+
(function (FormGroupDirection) {
|
|
9
|
+
FormGroupDirection["Vertical"] = "vertical";
|
|
10
|
+
FormGroupDirection["Horizontal"] = "horizontal";
|
|
11
|
+
})(FormGroupDirection || (FormGroupDirection = {}));
|
|
12
|
+
|
|
13
|
+
const FormGroupRoot = [
|
|
14
|
+
// Layout
|
|
15
|
+
'flex', 'flex-col', 'gap-md md:gap-sm'];
|
|
16
|
+
const FormGroupContent = [
|
|
17
|
+
// Layout
|
|
18
|
+
'flex', 'pl-[10px] md:pl-[0]', 'gap-md md:gap-sm'];
|
|
19
|
+
const FormGroupContentDirections = {
|
|
20
|
+
[FormGroupDirection.Vertical]: ['flex-col', 'gap-sm'],
|
|
21
|
+
[FormGroupDirection.Horizontal]: ['flex-row', 'gap-[18px] md:gap-md']
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
var script = defineComponent({
|
|
25
|
+
name: 'OrFormGroupV3',
|
|
26
|
+
components: {
|
|
27
|
+
OrLabel: script$1,
|
|
28
|
+
OrError: script$2,
|
|
29
|
+
OrHint: script$3
|
|
30
|
+
},
|
|
31
|
+
props: {
|
|
32
|
+
label: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: undefined
|
|
35
|
+
},
|
|
36
|
+
required: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
},
|
|
40
|
+
disabled: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
43
|
+
},
|
|
44
|
+
direction: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: FormGroupDirection.Vertical
|
|
47
|
+
},
|
|
48
|
+
error: {
|
|
49
|
+
type: [String, Boolean],
|
|
50
|
+
default: undefined
|
|
51
|
+
},
|
|
52
|
+
hint: {
|
|
53
|
+
type: String,
|
|
54
|
+
default: undefined
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
setup(props) {
|
|
58
|
+
// Refs
|
|
59
|
+
const root = ref();
|
|
60
|
+
// Styles
|
|
61
|
+
const rootStyles = computed(() => ['or-form-group-v3', ...FormGroupRoot]);
|
|
62
|
+
const contentStyles = computed(() => [...FormGroupContent, ...FormGroupContentDirections[props.direction]]);
|
|
63
|
+
return {
|
|
64
|
+
root,
|
|
65
|
+
rootStyles,
|
|
66
|
+
contentStyles
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const _hoisted_1 = {
|
|
72
|
+
class: "flex flex-row"
|
|
73
|
+
};
|
|
74
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
75
|
+
const _component_OrLabel = resolveComponent("OrLabel");
|
|
76
|
+
const _component_OrHint = resolveComponent("OrHint");
|
|
77
|
+
const _component_OrError = resolveComponent("OrError");
|
|
78
|
+
return openBlock(), createElementBlock("div", {
|
|
79
|
+
ref: "root",
|
|
80
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
81
|
+
}, [createElementVNode("div", _hoisted_1, [renderSlot(_ctx.$slots, "label", {}, () => [_ctx.label ? (openBlock(), createBlock(_component_OrLabel, {
|
|
82
|
+
key: 0,
|
|
83
|
+
required: _ctx.required,
|
|
84
|
+
disabled: _ctx.disabled,
|
|
85
|
+
class: "!typography-body-2-regular"
|
|
86
|
+
}, {
|
|
87
|
+
addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
|
|
88
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.label) + " ", 1 /* TEXT */)]),
|
|
89
|
+
|
|
90
|
+
_: 3 /* FORWARDED */
|
|
91
|
+
}, 8 /* PROPS */, ["required", "disabled"])) : createCommentVNode("v-if", true)])]), createElementVNode("div", {
|
|
92
|
+
class: normalizeClass(_ctx.contentStyles)
|
|
93
|
+
}, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), _ctx.hint && !_ctx.error ? (openBlock(), createBlock(_component_OrHint, {
|
|
94
|
+
key: 0,
|
|
95
|
+
disabled: _ctx.disabled
|
|
96
|
+
}, {
|
|
97
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.hint), 1 /* TEXT */)]),
|
|
98
|
+
|
|
99
|
+
_: 1 /* STABLE */
|
|
100
|
+
}, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true), typeof _ctx.error === 'string' ? (openBlock(), createBlock(_component_OrError, {
|
|
101
|
+
key: 1,
|
|
102
|
+
disabled: _ctx.disabled
|
|
103
|
+
}, {
|
|
104
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.error), 1 /* TEXT */)]),
|
|
105
|
+
|
|
106
|
+
_: 1 /* STABLE */
|
|
107
|
+
}, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
script.render = render;
|
|
111
|
+
script.__file = "src/components/or-form-group-v3/OrFormGroup.vue";
|
|
112
|
+
|
|
113
|
+
export { FormGroupDirection as F, script as s };
|
|
@@ -2,7 +2,7 @@ import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch }
|
|
|
2
2
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-0d314aa4.js';
|
|
3
3
|
import { u as useOverflow } from './useOverflow-af6161c8.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
-
import { s as script$1 } from './OrCheckbox-
|
|
5
|
+
import { s as script$1 } from './OrCheckbox-eab735d0.js';
|
|
6
6
|
import { s as script$2 } from './OrError-c01d0c29.js';
|
|
7
7
|
import { s as script$3 } from './OrExpansionPanel-99ca7ed7.js';
|
|
8
8
|
import { s as script$4 } from './OrHint-06ab89d7.js';
|
|
@@ -12,7 +12,7 @@ export { s as OrCardV3 } from '../OrCard-cc82902c.js';
|
|
|
12
12
|
export { s as OrCarousel } from '../OrCarousel-8de5d65b.js';
|
|
13
13
|
export { s as OrCarouselItem } from '../OrCarouselItem-8c7ccd0f.js';
|
|
14
14
|
export { s as OrCheckbox } from '../OrCheckbox-c2d9cf53.js';
|
|
15
|
-
export { s as OrCheckboxV3 } from '../OrCheckbox-
|
|
15
|
+
export { s as OrCheckboxV3 } from '../OrCheckbox-eab735d0.js';
|
|
16
16
|
export { s as OrChip } from '../OrChip-ccd4b331.js';
|
|
17
17
|
export { s as OrChips } from '../OrChips-9a19aa03.js';
|
|
18
18
|
export { s as OrCode, O as OrCodeLanguages } from '../OrCode-b0b514ab.js';
|
|
@@ -69,7 +69,7 @@ export { s as OrSearch } from '../OrSearch-fb2dd591.js';
|
|
|
69
69
|
export { s as OrSearchV3 } from '../OrSearch-d5d46937.js';
|
|
70
70
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-4587c7a9.js';
|
|
71
71
|
export { s as OrSelect } from '../OrSelect-3d923250.js';
|
|
72
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
72
|
+
export { s as OrSelectV3 } from '../OrSelect-ebdab996.js';
|
|
73
73
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
74
74
|
export { s as OrSidebarV3 } from '../OrSidebar-0d715029.js';
|
|
75
75
|
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-4d7497ec.js';
|
|
@@ -0,0 +1,110 @@
|
|
|
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
|
+
}[]>;
|
|
32
|
+
default: () => never[];
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
39
|
+
modelValue: {
|
|
40
|
+
type: PropType<string[]>;
|
|
41
|
+
default: () => never[];
|
|
42
|
+
};
|
|
43
|
+
label: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
error: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
hint: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
direction: {
|
|
56
|
+
type: PropType<FormGroupDirection>;
|
|
57
|
+
default: FormGroupDirection;
|
|
58
|
+
};
|
|
59
|
+
options: {
|
|
60
|
+
type: PropType<{
|
|
61
|
+
label: string;
|
|
62
|
+
value: any;
|
|
63
|
+
disabled?: boolean | undefined;
|
|
64
|
+
}[]>;
|
|
65
|
+
default: () => never[];
|
|
66
|
+
};
|
|
67
|
+
disabled: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
72
|
+
modelValue: string[];
|
|
73
|
+
label: string;
|
|
74
|
+
error: string;
|
|
75
|
+
hint: string;
|
|
76
|
+
direction: FormGroupDirection;
|
|
77
|
+
options: {
|
|
78
|
+
label: string;
|
|
79
|
+
value: any;
|
|
80
|
+
disabled?: boolean | undefined;
|
|
81
|
+
}[];
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
84
|
+
proxyModelValue: import("@vue/composition-api").Ref<string[]> | import("@vue/composition-api").WritableComputedRef<string[]>;
|
|
85
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
86
|
+
modelValue: string[];
|
|
87
|
+
label: string;
|
|
88
|
+
error: string;
|
|
89
|
+
hint: string;
|
|
90
|
+
direction: FormGroupDirection;
|
|
91
|
+
options: {
|
|
92
|
+
label: string;
|
|
93
|
+
value: any;
|
|
94
|
+
disabled?: boolean | undefined;
|
|
95
|
+
}[];
|
|
96
|
+
disabled: boolean;
|
|
97
|
+
} & {}, {
|
|
98
|
+
modelValue: string[];
|
|
99
|
+
label: string;
|
|
100
|
+
error: string;
|
|
101
|
+
hint: string;
|
|
102
|
+
direction: FormGroupDirection;
|
|
103
|
+
options: {
|
|
104
|
+
label: string;
|
|
105
|
+
value: any;
|
|
106
|
+
disabled?: boolean | undefined;
|
|
107
|
+
}[];
|
|
108
|
+
disabled: boolean;
|
|
109
|
+
}, true>);
|
|
110
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrCheckboxGroupV3 } from './OrCheckboxGroup.vue';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { defineComponent } from 'vue-demi';
|
|
2
|
+
import { s as script$2, F as FormGroupDirection } from '../../OrFormGroup-e7a78131.js';
|
|
3
|
+
import { s as script$1 } from '../../OrCheckboxTree-1acfe5c8.js';
|
|
4
|
+
import { useVModel } from '@vueuse/core';
|
|
5
|
+
import { resolveComponent, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList } from 'vue';
|
|
6
|
+
import '../../OrLabel-4da56db0.js';
|
|
7
|
+
import '../../OrError-c01d0c29.js';
|
|
8
|
+
import '../../OrHint-06ab89d7.js';
|
|
9
|
+
import 'lodash';
|
|
10
|
+
import '../../OrCheckbox-eab735d0.js';
|
|
11
|
+
import '../../useIdAttribute-859439f0.js';
|
|
12
|
+
import '../../style-inject.es-4c6f2515.js';
|
|
13
|
+
import '../../OrIcon-62793572.js';
|
|
14
|
+
|
|
15
|
+
var script = defineComponent({
|
|
16
|
+
name: 'OrCheckboxGroup',
|
|
17
|
+
components: {
|
|
18
|
+
OrCheckboxTree: script$1,
|
|
19
|
+
OrFormGroup: script$2
|
|
20
|
+
},
|
|
21
|
+
model: {
|
|
22
|
+
prop: 'modelValue',
|
|
23
|
+
event: 'update:modelValue'
|
|
24
|
+
},
|
|
25
|
+
props: {
|
|
26
|
+
modelValue: {
|
|
27
|
+
type: Array,
|
|
28
|
+
default: () => []
|
|
29
|
+
},
|
|
30
|
+
label: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: ''
|
|
33
|
+
},
|
|
34
|
+
error: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: ''
|
|
37
|
+
},
|
|
38
|
+
hint: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: ''
|
|
41
|
+
},
|
|
42
|
+
direction: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: FormGroupDirection.Vertical
|
|
45
|
+
},
|
|
46
|
+
options: {
|
|
47
|
+
type: Array,
|
|
48
|
+
default: () => []
|
|
49
|
+
},
|
|
50
|
+
disabled: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: false
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
setup(props, {
|
|
56
|
+
emit
|
|
57
|
+
}) {
|
|
58
|
+
const proxyModelValue = useVModel(props, 'modelValue', emit);
|
|
59
|
+
return {
|
|
60
|
+
proxyModelValue
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
66
|
+
const _component_OrCheckboxTree = resolveComponent("OrCheckboxTree");
|
|
67
|
+
const _component_OrFormGroup = resolveComponent("OrFormGroup");
|
|
68
|
+
return openBlock(), createBlock(_component_OrFormGroup, {
|
|
69
|
+
label: _ctx.label,
|
|
70
|
+
error: _ctx.error,
|
|
71
|
+
hint: _ctx.hint,
|
|
72
|
+
disabled: _ctx.disabled,
|
|
73
|
+
direction: _ctx.direction
|
|
74
|
+
}, {
|
|
75
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, option => {
|
|
76
|
+
return openBlock(), createBlock(_component_OrCheckboxTree, {
|
|
77
|
+
key: option.value,
|
|
78
|
+
modelValue: _ctx.proxyModelValue,
|
|
79
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event),
|
|
80
|
+
item: option,
|
|
81
|
+
disabeld: _ctx.disabled || option.disabled
|
|
82
|
+
}, null, 8 /* PROPS */, ["modelValue", "item", "disabeld"]);
|
|
83
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
84
|
+
|
|
85
|
+
_: 1 /* STABLE */
|
|
86
|
+
}, 8 /* PROPS */, ["label", "error", "hint", "disabled", "direction"]);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
script.render = render;
|
|
90
|
+
script.__file = "src/components/or-checkbox-group-v3/OrCheckboxGroup.vue";
|
|
91
|
+
|
|
92
|
+
export { script as OrCheckboxGroupV3 };
|
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
hasChildren: import("@vue/composition-api").ComputedRef<boolean | undefined>;
|
|
6
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]> | import("@vue/composition-api").Ref<string[]>;
|
|
7
|
+
isOpen: import("@vue/composition-api").Ref<boolean>;
|
|
8
|
+
setIsOpen: (value?: boolean | undefined) => boolean;
|
|
9
|
+
isIntermediate: import("@vue/composition-api").ComputedRef<boolean>;
|
|
10
|
+
isAllChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
11
|
+
isAnyChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
12
|
+
childrenValues: import("@vue/composition-api").ComputedRef<any[]>;
|
|
13
|
+
handleParentClick: () => void;
|
|
14
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: PropType<string[]>;
|
|
17
|
+
default: () => never[];
|
|
18
|
+
};
|
|
19
|
+
item: {
|
|
20
|
+
type: PropType<CheckboxNode>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
collapsible: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
28
|
+
modelValue: {
|
|
29
|
+
type: PropType<string[]>;
|
|
30
|
+
default: () => never[];
|
|
31
|
+
};
|
|
32
|
+
item: {
|
|
33
|
+
type: PropType<CheckboxNode>;
|
|
34
|
+
required: true;
|
|
35
|
+
};
|
|
36
|
+
collapsible: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
41
|
+
modelValue: string[];
|
|
42
|
+
item: CheckboxNode;
|
|
43
|
+
collapsible: boolean;
|
|
44
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
45
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
46
|
+
hasChildren: import("@vue/composition-api").ComputedRef<boolean | undefined>;
|
|
47
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]> | import("@vue/composition-api").Ref<string[]>;
|
|
48
|
+
isOpen: import("@vue/composition-api").Ref<boolean>;
|
|
49
|
+
setIsOpen: (value?: boolean | undefined) => boolean;
|
|
50
|
+
isIntermediate: import("@vue/composition-api").ComputedRef<boolean>;
|
|
51
|
+
isAllChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
52
|
+
isAnyChildrenSelected: import("@vue/composition-api").ComputedRef<boolean>;
|
|
53
|
+
childrenValues: import("@vue/composition-api").ComputedRef<any[]>;
|
|
54
|
+
handleParentClick: () => void;
|
|
55
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
56
|
+
modelValue: string[];
|
|
57
|
+
item: CheckboxNode;
|
|
58
|
+
collapsible: boolean;
|
|
59
|
+
} & {}, {
|
|
60
|
+
modelValue: string[];
|
|
61
|
+
collapsible: boolean;
|
|
62
|
+
}, true>);
|
|
63
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as OrCheckboxTreeV3 } from './OrCheckboxTree.vue';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { s as OrCheckboxTreeV3 } from '../../OrCheckboxTree-1acfe5c8.js';
|
|
2
|
+
import 'vue-demi';
|
|
3
|
+
import 'lodash';
|
|
4
|
+
import '@vueuse/core';
|
|
5
|
+
import '../../OrCheckbox-eab735d0.js';
|
|
6
|
+
import '../../useIdAttribute-859439f0.js';
|
|
7
|
+
import '../../OrLabel-4da56db0.js';
|
|
8
|
+
import 'vue';
|
|
9
|
+
import '../../style-inject.es-4c6f2515.js';
|
|
10
|
+
import '../../OrIcon-62793572.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CheckboxDeepRoot: string[];
|