@onereach/ui-components 4.3.13 → 4.3.14-beta.2689.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/OrConfirm/OrConfirm.js +2 -2
- package/dist/bundled/v2/components/OrExpansionPanelV3/styles.js +3 -1
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
- package/dist/bundled/v2/components/OrSidebarV3/styles.js +1 -1
- package/dist/bundled/v2/components/index.d.ts +3 -0
- package/dist/bundled/v2/components/index.js +8 -0
- package/dist/bundled/v2/index.js +9 -2
- package/dist/bundled/v3/OrCheckboxGroup.vue_vue_type_script_lang-1e71771d.js +60 -0
- package/dist/bundled/v3/OrRadioGroup.vue_vue_type_script_lang-dfffdd80.js +59 -0
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-264914d3.js → OrSelect.vue_vue_type_script_lang-2c4c9f9d.js} +2 -2
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +9 -60
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +1 -1
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +2 -2
- package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrExpansionPanelV3/styles.js +3 -1
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +1 -1
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +9 -60
- package/dist/bundled/v3/components/OrRadioGroupV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +3 -3
- package/dist/bundled/v3/components/OrSelectV3/index.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebarV3/styles.js +1 -1
- package/dist/bundled/v3/components/index.d.ts +3 -0
- package/dist/bundled/v3/components/index.js +15 -4
- package/dist/bundled/v3/index.js +20 -8
- package/dist/esm/v2/OrCheckboxGroup-f470f938.js +121 -0
- package/dist/esm/v2/{OrCheckboxTree-df80d4ab.js → OrCheckboxTree-1304ae59.js} +6 -2
- package/dist/esm/v2/{OrConfirm-b62d9ce4.js → OrConfirm-d0d9d56c.js} +2 -2
- package/dist/esm/v2/{OrExpansionPanel-7c359bb0.js → OrExpansionPanel-d3a2218d.js} +3 -1
- package/dist/esm/v2/OrInlineTextEdit-601163c3.js +400 -0
- package/dist/esm/v2/OrRadioGroup-0de37d76.js +120 -0
- package/dist/esm/v2/{OrSelect-9d6b3363.js → OrSelect-a4c34099.js} +1 -1
- package/dist/esm/v2/{OrSidebar-b8387abe.js → OrSidebar-de938772.js} +1 -1
- package/dist/esm/v2/components/index.d.ts +3 -0
- package/dist/esm/v2/components/index.js +9 -5
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +6 -122
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +1 -2
- package/dist/esm/v2/components/or-confirm/index.js +1 -1
- package/dist/esm/v2/components/or-expansion-panel-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-text-edit/index.js +1 -1
- package/dist/esm/v2/components/or-radio-group-v3/index.js +6 -120
- package/dist/esm/v2/components/or-select-v3/index.js +2 -2
- package/dist/esm/v2/components/or-sidebar-v3/index.js +1 -1
- package/dist/esm/v2/index.js +9 -6
- package/dist/esm/v3/OrCheckboxGroup-c41a99ba.js +88 -0
- package/dist/esm/v3/{OrCheckboxTree-4a85b9b3.js → OrCheckboxTree-fa6288af.js} +6 -2
- package/dist/esm/v3/{OrConfirm-1a94bdea.js → OrConfirm-410da5b4.js} +1 -1
- package/dist/esm/v3/{OrExpansionPanel-99ca7ed7.js → OrExpansionPanel-c016d8fa.js} +3 -1
- package/dist/esm/v3/OrInlineTextEdit-42d59fb9.js +356 -0
- package/dist/esm/v3/OrRadioGroup-5d1fe6fd.js +87 -0
- package/dist/esm/v3/{OrSelect-3dbddc6b.js → OrSelect-046e8e36.js} +1 -1
- package/dist/esm/v3/{OrSidebar-bfd19c4c.js → OrSidebar-3f2502fb.js} +1 -1
- package/dist/esm/v3/components/index.d.ts +3 -0
- package/dist/esm/v3/components/index.js +9 -5
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +6 -89
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +1 -2
- package/dist/esm/v3/components/or-confirm/index.js +1 -1
- package/dist/esm/v3/components/or-expansion-panel-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-text-edit/index.js +1 -1
- package/dist/esm/v3/components/or-radio-group-v3/index.js +6 -87
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/components/or-sidebar-v3/index.js +1 -1
- package/dist/esm/v3/index.js +9 -6
- package/package.json +2 -3
- package/src/components/index.ts +3 -0
- package/src/components/or-confirm/OrConfirm.vue +1 -1
- package/src/components/or-expansion-panel-v3/styles.ts +4 -1
- package/src/components/or-inline-text-edit/OrInlineTextEdit.vue +6 -6
- package/src/components/or-sidebar-v3/styles.ts +1 -1
- package/dist/esm/v2/OrInlineTextEdit-a129aaf1.js +0 -400
- package/dist/esm/v2/flattenDeep-fe0af413.js +0 -6
- package/dist/esm/v3/OrInlineTextEdit-4f4ecba4.js +0 -356
- package/dist/esm/v3/flattenDeep-fe0af413.js +0 -6
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-528dd4d5.js → OrCheckboxTree.vue_vue_type_script_lang-46436cf3.js} +1 -1
- /package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-f1b6ff7d.js → OrExpansionPanel.vue_vue_type_script_lang-d4ed6199.js} +0 -0
- /package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-d7f700de.js → OrSidebar.vue_vue_type_script_lang-5723e223.js} +0 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { defineComponent } from 'vue-demi';
|
|
2
|
+
import { useVModel } from '@vueuse/core';
|
|
3
|
+
import { _ as __vue_component__$2, F as FormGroupDirection } from './OrFormGroup-29a514db.js';
|
|
4
|
+
import { _ as __vue_component__$1 } from './OrCheckboxTree-1304ae59.js';
|
|
5
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
6
|
+
|
|
7
|
+
var script = defineComponent({
|
|
8
|
+
name: 'OrCheckboxGroup',
|
|
9
|
+
components: {
|
|
10
|
+
OrCheckboxTree: __vue_component__$1,
|
|
11
|
+
OrFormGroup: __vue_component__$2
|
|
12
|
+
},
|
|
13
|
+
model: {
|
|
14
|
+
prop: 'modelValue',
|
|
15
|
+
event: 'update:modelValue'
|
|
16
|
+
},
|
|
17
|
+
props: {
|
|
18
|
+
modelValue: {
|
|
19
|
+
type: Array,
|
|
20
|
+
default: () => []
|
|
21
|
+
},
|
|
22
|
+
label: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ''
|
|
25
|
+
},
|
|
26
|
+
error: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: ''
|
|
29
|
+
},
|
|
30
|
+
hint: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: ''
|
|
33
|
+
},
|
|
34
|
+
direction: {
|
|
35
|
+
type: String,
|
|
36
|
+
default: FormGroupDirection.Vertical
|
|
37
|
+
},
|
|
38
|
+
options: {
|
|
39
|
+
type: Array,
|
|
40
|
+
default: () => []
|
|
41
|
+
},
|
|
42
|
+
disabled: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: false
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
setup(props, _ref) {
|
|
48
|
+
let {
|
|
49
|
+
emit
|
|
50
|
+
} = _ref;
|
|
51
|
+
const proxyModelValue = useVModel(props, 'modelValue', emit);
|
|
52
|
+
return {
|
|
53
|
+
proxyModelValue
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/* script */
|
|
59
|
+
const __vue_script__ = script;
|
|
60
|
+
|
|
61
|
+
/* template */
|
|
62
|
+
var __vue_render__ = function () {
|
|
63
|
+
var _vm = this;
|
|
64
|
+
var _h = _vm.$createElement;
|
|
65
|
+
var _c = _vm._self._c || _h;
|
|
66
|
+
return _c('OrFormGroup', {
|
|
67
|
+
attrs: {
|
|
68
|
+
"label": _vm.label,
|
|
69
|
+
"error": _vm.error,
|
|
70
|
+
"hint": _vm.hint,
|
|
71
|
+
"disabled": _vm.disabled,
|
|
72
|
+
"direction": _vm.direction
|
|
73
|
+
},
|
|
74
|
+
scopedSlots: _vm._u([{
|
|
75
|
+
key: "addon",
|
|
76
|
+
fn: function () {
|
|
77
|
+
return [_vm._t("addon")];
|
|
78
|
+
},
|
|
79
|
+
proxy: true
|
|
80
|
+
}], null, true)
|
|
81
|
+
}, [_vm._v(" "), _vm._l(_vm.options, function (option) {
|
|
82
|
+
return _c('OrCheckboxTree', {
|
|
83
|
+
key: option.value,
|
|
84
|
+
attrs: {
|
|
85
|
+
"item": option,
|
|
86
|
+
"disabled": _vm.disabled || option.disabled,
|
|
87
|
+
"collapsible": option.collapsible,
|
|
88
|
+
"expanded": option.expanded
|
|
89
|
+
},
|
|
90
|
+
model: {
|
|
91
|
+
value: _vm.proxyModelValue,
|
|
92
|
+
callback: function ($$v) {
|
|
93
|
+
_vm.proxyModelValue = $$v;
|
|
94
|
+
},
|
|
95
|
+
expression: "proxyModelValue"
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
})], 2);
|
|
99
|
+
};
|
|
100
|
+
var __vue_staticRenderFns__ = [];
|
|
101
|
+
|
|
102
|
+
/* style */
|
|
103
|
+
const __vue_inject_styles__ = undefined;
|
|
104
|
+
/* scoped */
|
|
105
|
+
const __vue_scope_id__ = undefined;
|
|
106
|
+
/* module identifier */
|
|
107
|
+
const __vue_module_identifier__ = undefined;
|
|
108
|
+
/* functional template */
|
|
109
|
+
const __vue_is_functional_template__ = false;
|
|
110
|
+
/* style inject */
|
|
111
|
+
|
|
112
|
+
/* style inject SSR */
|
|
113
|
+
|
|
114
|
+
/* style inject shadow dom */
|
|
115
|
+
|
|
116
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
117
|
+
render: __vue_render__,
|
|
118
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
119
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
120
|
+
|
|
121
|
+
export { __vue_component__ as _ };
|
|
@@ -3,7 +3,6 @@ import { useVModel, useToggle } from '@vueuse/core';
|
|
|
3
3
|
import { _ as __vue_component__$2 } from './OrCheckbox-59332f84.js';
|
|
4
4
|
import { _ as __vue_component__$1 } from './OrIcon-d35a84d8.js';
|
|
5
5
|
import { _ as __vue_component__$3 } from './OrButton-9622e713.js';
|
|
6
|
-
import { f as flattenDeep } from './flattenDeep-fe0af413.js';
|
|
7
6
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
8
7
|
|
|
9
8
|
const CheckboxTreeRoot = [
|
|
@@ -15,6 +14,11 @@ const CheckboxTreeRootParent = [
|
|
|
15
14
|
// Layout
|
|
16
15
|
'flex', 'flex-row', 'gap-xs'];
|
|
17
16
|
|
|
17
|
+
function flattenDeep() {
|
|
18
|
+
let arr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
19
|
+
return arr.flatMap(subArray => Array.isArray(subArray) ? flattenDeep(subArray) : subArray);
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
var script = defineComponent({
|
|
19
23
|
name: 'OrCheckboxTree',
|
|
20
24
|
components: {
|
|
@@ -218,4 +222,4 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
218
222
|
staticRenderFns: __vue_staticRenderFns__
|
|
219
223
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
220
224
|
|
|
221
|
-
export { __vue_component__ as _ };
|
|
225
|
+
export { __vue_component__ as _, flattenDeep as f };
|
|
@@ -157,7 +157,7 @@ var script = defineComponent({
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
|
|
160
|
-
var css_248z = "@keyframes spinAround-data-v-
|
|
160
|
+
var css_248z = "@keyframes spinAround-data-v-7f2367a9{from{transform:rotate(0)}to{transform:rotate(359deg)}}@keyframes fade-data-v-7f2367a9{from{opacity:1}to{opacity:0}}.or-confirm-footer[data-v-7f2367a9]{display:flex;flex-direction:row;gap:var(--s-4);justify-content:flex-end}.confirmation-textbox[data-v-7f2367a9]{margin-top:var(--s-3)}.or-modal[data-v-7f2367a9] .header{padding-bottom:var(--s-4)!important}.or-modal[data-v-7f2367a9] .content{padding-bottom:0!important;font-size:var(--fs-1);font-weight:400;line-height:var(--lh-1)}.or-modal[data-v-7f2367a9] .footer{box-shadow:none!important}";
|
|
161
161
|
styleInject(css_248z);
|
|
162
162
|
|
|
163
163
|
/* script */
|
|
@@ -240,7 +240,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
240
240
|
/* style */
|
|
241
241
|
const __vue_inject_styles__ = undefined;
|
|
242
242
|
/* scoped */
|
|
243
|
-
const __vue_scope_id__ = "data-v-
|
|
243
|
+
const __vue_scope_id__ = "data-v-7f2367a9";
|
|
244
244
|
/* module identifier */
|
|
245
245
|
const __vue_module_identifier__ = undefined;
|
|
246
246
|
/* functional template */
|