@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,88 @@
|
|
|
1
|
+
import { defineComponent } from 'vue-demi';
|
|
2
|
+
import { useVModel } from '@vueuse/core';
|
|
3
|
+
import { s as script$2, F as FormGroupDirection } from './OrFormGroup-9f581536.js';
|
|
4
|
+
import { s as script$1 } from './OrCheckboxTree-fa6288af.js';
|
|
5
|
+
import { resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
6
|
+
|
|
7
|
+
var script = defineComponent({
|
|
8
|
+
name: 'OrCheckboxGroup',
|
|
9
|
+
components: {
|
|
10
|
+
OrCheckboxTree: script$1,
|
|
11
|
+
OrFormGroup: script$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
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
59
|
+
const _component_OrCheckboxTree = resolveComponent("OrCheckboxTree");
|
|
60
|
+
const _component_OrFormGroup = resolveComponent("OrFormGroup");
|
|
61
|
+
return openBlock(), createBlock(_component_OrFormGroup, {
|
|
62
|
+
label: _ctx.label,
|
|
63
|
+
error: _ctx.error,
|
|
64
|
+
hint: _ctx.hint,
|
|
65
|
+
disabled: _ctx.disabled,
|
|
66
|
+
direction: _ctx.direction
|
|
67
|
+
}, {
|
|
68
|
+
addon: withCtx(() => [renderSlot(_ctx.$slots, "addon")]),
|
|
69
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.options, option => {
|
|
70
|
+
return openBlock(), createBlock(_component_OrCheckboxTree, {
|
|
71
|
+
key: option.value,
|
|
72
|
+
modelValue: _ctx.proxyModelValue,
|
|
73
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.proxyModelValue = $event),
|
|
74
|
+
item: option,
|
|
75
|
+
disabled: _ctx.disabled || option.disabled,
|
|
76
|
+
collapsible: option.collapsible,
|
|
77
|
+
expanded: option.expanded
|
|
78
|
+
}, null, 8 /* PROPS */, ["modelValue", "item", "disabled", "collapsible", "expanded"]);
|
|
79
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
80
|
+
|
|
81
|
+
_: 3 /* FORWARDED */
|
|
82
|
+
}, 8 /* PROPS */, ["label", "error", "hint", "disabled", "direction"]);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
script.render = render;
|
|
86
|
+
script.__file = "src/components/or-checkbox-group-v3/OrCheckboxGroup.vue";
|
|
87
|
+
|
|
88
|
+
export { script as s };
|
|
@@ -3,7 +3,6 @@ import { useVModel, useToggle } from '@vueuse/core';
|
|
|
3
3
|
import { s as script$2 } from './OrCheckbox-56d7b6eb.js';
|
|
4
4
|
import { s as script$1 } from './OrIcon-62793572.js';
|
|
5
5
|
import { s as script$3 } from './OrButton-c2b6aa9e.js';
|
|
6
|
-
import { f as flattenDeep } from './flattenDeep-fe0af413.js';
|
|
7
6
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, createElementVNode, createBlock, withCtx, createVNode, createCommentVNode, renderList } from 'vue';
|
|
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: {
|
|
@@ -180,4 +184,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
180
184
|
script.render = render;
|
|
181
185
|
script.__file = "src/components/or-checkbox-tree-v3/OrCheckboxTree.vue";
|
|
182
186
|
|
|
183
|
-
export { script as s };
|
|
187
|
+
export { flattenDeep as f, script as s };
|
|
@@ -206,7 +206,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
206
206
|
}, 8 /* PROPS */, ["is-open", "title-text", "size", "show-close", "close-on-click-outside", "onClose"]);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
var css_248z = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-077d7158 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-077d7158 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n.or-confirm-footer[data-v-077d7158] {\n display: flex;\n flex-direction: row;\n gap: var(--s-4);\n justify-content: end;\n}\n.confirmation-textbox[data-v-077d7158] {\n margin-top: var(--s-3);\n}\n.or-modal[data-v-077d7158] .header {\n padding-bottom: var(--s-4) !important;\n}\n.or-modal[data-v-077d7158] .content {\n padding-bottom: 0 !important;\n font-size: var(--fs-1);\n font-weight: normal;\n line-height: var(--lh-1);\n}\n.or-modal[data-v-077d7158] .footer {\n box-shadow: none !important;\n}";
|
|
209
|
+
var css_248z = "/**\n * A simple way to manage mobile breakpoints described in https://davidwalsh.name/write-media-queries-sass.\n * Can be further extended using following approach https://rimdev.io/making-media-query-mixins-with-sass/\n */\n@keyframes spinAround-077d7158 {\nfrom {\n transform: rotate(0);\n}\nto {\n transform: rotate(359deg);\n}\n}\n@keyframes fade-077d7158 {\nfrom {\n opacity: 1;\n}\nto {\n opacity: 0;\n}\n}\n.or-confirm-footer[data-v-077d7158] {\n display: flex;\n flex-direction: row;\n gap: var(--s-4);\n justify-content: flex-end;\n}\n.confirmation-textbox[data-v-077d7158] {\n margin-top: var(--s-3);\n}\n.or-modal[data-v-077d7158] .header {\n padding-bottom: var(--s-4) !important;\n}\n.or-modal[data-v-077d7158] .content {\n padding-bottom: 0 !important;\n font-size: var(--fs-1);\n font-weight: normal;\n line-height: var(--lh-1);\n}\n.or-modal[data-v-077d7158] .footer {\n box-shadow: none !important;\n}";
|
|
210
210
|
styleInject(css_248z);
|
|
211
211
|
|
|
212
212
|
script.render = render;
|