@onereach/ui-components 2.72.2-beta.2265.0 → 2.72.2-beta.2267.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/{OrCardCollection-06ecb8e1.js → OrCardCollection-4ac89ea5.js} +1 -1
- package/dist/bundled/v2/{OrSearch-bb87b34c.js → OrSearch-09fd004c.js} +2 -1
- package/dist/bundled/v2/{OrSidebar-468106b9.js → OrSidebar-c95ef614.js} +34 -155
- package/dist/bundled/v2/components/index.js +3 -4
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/bundled/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/bundled/v2/components/or-sidebar-v3/index.js +1 -13
- package/dist/bundled/v2/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/bundled/v2/index.js +4 -5
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-e2980d04.js → OrCardCollection.vue_vue_type_script_lang-f76c3264.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-321907ec.js → OrSearch.vue_vue_type_script_lang-c054c8db.js} +2 -1
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-ce0b152c.js +181 -0
- package/dist/bundled/v3/components/index.js +3 -4
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/bundled/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/bundled/v3/components/or-sidebar-v3/index.js +2 -16
- package/dist/bundled/v3/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/bundled/v3/index.js +12 -29
- package/dist/esm/v2/{OrCardCollection-251ab033.js → OrCardCollection-5a9eda35.js} +1 -1
- package/dist/esm/v2/{OrSearch-f42d588d.js → OrSearch-7411388b.js} +2 -1
- package/dist/esm/v2/{OrSidebar-f7fc1179.js → OrSidebar-fabc7bc9.js} +34 -155
- package/dist/esm/v2/components/index.js +3 -4
- package/dist/esm/v2/components/or-card-collection-v3/index.js +2 -2
- package/dist/esm/v2/components/or-search-v3/index.js +1 -1
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/esm/v2/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/esm/v2/components/or-sidebar-v3/index.js +1 -13
- package/dist/esm/v2/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/esm/v2/index.js +3 -4
- package/dist/esm/v3/{OrCardCollection-8b8e3745.js → OrCardCollection-e4fde5b4.js} +1 -1
- package/dist/esm/v3/{OrSearch-4c5c44f2.js → OrSearch-5406bf03.js} +2 -1
- package/dist/esm/v3/OrSidebar-a62972f5.js +206 -0
- package/dist/esm/v3/components/index.js +3 -4
- package/dist/esm/v3/components/or-card-collection-v3/index.js +2 -2
- package/dist/esm/v3/components/or-search-v3/index.js +1 -1
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.stories3.d.ts +1 -36
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +4 -49
- package/dist/esm/v3/components/or-sidebar-v3/index.js +1 -12
- package/dist/esm/v3/components/or-sidebar-v3/styles.d.ts +1 -7
- package/dist/esm/v3/index.js +3 -4
- package/package.json +1 -1
- package/src/components/or-search-v3/OrSearch.vue +2 -1
- package/src/components/or-sidebar-v3/OrSidebar.docs.mdx +0 -6
- package/src/components/or-sidebar-v3/OrSidebar.stories3.ts +12 -253
- package/src/components/or-sidebar-v3/OrSidebar.vue +23 -130
- package/src/components/or-sidebar-v3/styles.ts +9 -114
- package/dist/bundled/v2/OrSidebarCollapseButton-1161aef8.js +0 -121
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-sidebar-v3/partials/index.js +0 -18
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +0 -1
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +0 -18
- package/dist/bundled/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +0 -2
- package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-a68e0381.js +0 -291
- package/dist/bundled/v3/OrSidebarCollapseButton.vue_vue_type_script_lang-31f02a78.js +0 -71
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-sidebar-v3/partials/index.js +0 -17
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +0 -1
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +0 -17
- package/dist/bundled/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +0 -2
- package/dist/esm/v2/OrSidebarCollapseButton-3b28945e.js +0 -119
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.d.ts +0 -1
- package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +0 -16
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +0 -1
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +0 -16
- package/dist/esm/v2/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +0 -2
- package/dist/esm/v3/OrSidebar-dbeffb9d.js +0 -313
- package/dist/esm/v3/OrSidebarCollapseButton-5478da75.js +0 -90
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.d.ts +0 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +0 -15
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.d.ts +0 -12
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +0 -53
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.d.ts +0 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.js +0 -15
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.d.ts +0 -2
- package/src/components/or-sidebar-v3/partials/index.ts +0 -1
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.stories3.ts +0 -48
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue +0 -74
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/index.ts +0 -1
- package/src/components/or-sidebar-v3/partials/or-sidebar-collapse-button/styles.ts +0 -50
|
@@ -6,7 +6,7 @@ import { O as OrButton } from './OrButton-d45772c1.js';
|
|
|
6
6
|
import { O as OrMenu } from './OrMenu-52da43bc.js';
|
|
7
7
|
import { O as OrMenuItem } from './OrMenuItem-e2693a5f.js';
|
|
8
8
|
import { O as OrIcon } from './OrIcon-458206aa.js';
|
|
9
|
-
import { O as OrSearch } from './OrSearch-
|
|
9
|
+
import { O as OrSearch } from './OrSearch-09fd004c.js';
|
|
10
10
|
|
|
11
11
|
const CardCollectionRoot = [
|
|
12
12
|
// Layout
|
|
@@ -48,11 +48,12 @@ var script = defineComponent({
|
|
|
48
48
|
// State
|
|
49
49
|
const localModelValue = ref((_a = props.modelValue) !== null && _a !== void 0 ? _a : '');
|
|
50
50
|
// Events
|
|
51
|
-
debouncedWatch(localModelValue, () => context.emit('search', localModelValue.value), {
|
|
51
|
+
debouncedWatch(localModelValue, () => localModelValue.value.length > 0 && context.emit('search', localModelValue.value), {
|
|
52
52
|
debounce: props.debounce
|
|
53
53
|
});
|
|
54
54
|
watch(localModelValue, (val, beforeVal) => {
|
|
55
55
|
if (val.length === 0 && beforeVal.length > 0) {
|
|
56
|
+
context.emit('search');
|
|
56
57
|
context.emit('clear');
|
|
57
58
|
}
|
|
58
59
|
});
|
|
@@ -1,63 +1,35 @@
|
|
|
1
1
|
import { useDraggable, useElementBounding } from '@vueuse/core';
|
|
2
2
|
import _ from 'lodash';
|
|
3
3
|
import './index-fa6eb4ca.js';
|
|
4
|
-
import {
|
|
5
|
-
import { defineComponent, ref, computed, useSlots, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
4
|
+
import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
6
5
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
7
6
|
|
|
7
|
+
var OrSidebarPlacement;
|
|
8
|
+
(function (OrSidebarPlacement) {
|
|
9
|
+
OrSidebarPlacement["left"] = "left";
|
|
10
|
+
OrSidebarPlacement["right"] = "right";
|
|
11
|
+
})(OrSidebarPlacement || (OrSidebarPlacement = {}));
|
|
12
|
+
|
|
8
13
|
const SidebarRoot = [
|
|
9
14
|
// Position
|
|
10
15
|
'relative',
|
|
11
16
|
// Layout
|
|
12
|
-
'flex', 'flex-
|
|
13
|
-
// Box
|
|
14
|
-
'min-w-0', 'h-auto', 'p-0',
|
|
15
|
-
// Theme
|
|
16
|
-
'bg-background', 'dark:bg-background-dark'];
|
|
17
|
-
const SidebarBar = [
|
|
18
|
-
// Position
|
|
19
|
-
'relative',
|
|
20
|
-
// Layout
|
|
21
|
-
'flex', 'flex-col', 'shrink-0', 'grow',
|
|
22
|
-
// Box
|
|
23
|
-
'min-h-0', 'p-0',
|
|
24
|
-
// Theme
|
|
25
|
-
'text-on-background', 'dark:text-on-background-dark',
|
|
26
|
-
// Transition
|
|
27
|
-
'transition-[width]'];
|
|
28
|
-
const SidebarToolbar = [
|
|
29
|
-
// Position
|
|
30
|
-
'relative',
|
|
31
|
-
// Layout
|
|
32
|
-
'flex', 'flex-col', 'shrink-0', 'grow', 'overflow-auto', 'items-center',
|
|
33
|
-
// Sizing
|
|
34
|
-
'gap-md',
|
|
17
|
+
'flex', 'flex-col', 'shrink-0',
|
|
35
18
|
// Box
|
|
36
|
-
'min-h-0', '
|
|
37
|
-
|
|
38
|
-
'text-outline', 'dark:text-outline-dark'];
|
|
39
|
-
const CollapsibleSidebarToolbar = ['pt-[56px]'];
|
|
40
|
-
const SidebarSides = {
|
|
19
|
+
'min-h-0', 'p-0'];
|
|
20
|
+
const SidebarRootSides = {
|
|
41
21
|
[OrSidebarPlacement.left]: [
|
|
42
22
|
// Borders
|
|
43
|
-
'border-r-[1px]', 'border-r-solid', 'border-r-
|
|
23
|
+
'border-r-[1px]', 'border-r-solid', 'border-r-secondary dark:border-r-secondary-dark'],
|
|
44
24
|
[OrSidebarPlacement.right]: [
|
|
45
25
|
// Borders
|
|
46
|
-
'border-l-[1px]', 'border-l-solid', 'border-l-
|
|
47
|
-
};
|
|
48
|
-
const SidebarToolbarSides = {
|
|
49
|
-
[OrSidebarPlacement.left]: [
|
|
50
|
-
// Borders
|
|
51
|
-
'border-r-[1px]', 'border-r-solid', 'border-r-outline-variant dark:border-r-outline-variant-dark'],
|
|
52
|
-
[OrSidebarPlacement.right]: [
|
|
53
|
-
// Borders
|
|
54
|
-
'border-l-[1px]', 'border-l-solid', 'border-l-outline-variant dark:border-l-outline-variant-dark']
|
|
26
|
+
'border-l-[1px]', 'border-l-solid', 'border-l-secondary dark:border-l-secondary-dark']
|
|
55
27
|
};
|
|
56
28
|
const SidebarResize = [
|
|
57
29
|
// Position
|
|
58
30
|
'absolute', 'inset-y-none', 'z-[1]',
|
|
59
31
|
// Box
|
|
60
|
-
'w-
|
|
32
|
+
'w-[12px]', 'h-[100%]',
|
|
61
33
|
// Cursor
|
|
62
34
|
'cursor-ew-resize'];
|
|
63
35
|
const SidebarResizeSides = {
|
|
@@ -65,80 +37,57 @@ const SidebarResizeSides = {
|
|
|
65
37
|
// Position
|
|
66
38
|
'-right-[1px]',
|
|
67
39
|
// Borders
|
|
68
|
-
'hover:border-r-2', 'hover:border-r-primary
|
|
40
|
+
'hover:border-r-2', 'hover:border-r-primary hover:dark:border-r-primary-dark',
|
|
69
41
|
// Transition
|
|
70
42
|
'transition-[border-right]'],
|
|
71
43
|
[OrSidebarPlacement.right]: [
|
|
72
44
|
// Position
|
|
73
45
|
'-left-[1px]',
|
|
74
46
|
// Borders
|
|
75
|
-
'hover:border-l-2', 'hover:border-l-primary
|
|
47
|
+
'hover:border-l-2', 'hover:border-l-primary hover:dark:border-l-primary-dark',
|
|
76
48
|
// Transition
|
|
77
49
|
'transition-[border-left]']
|
|
78
50
|
};
|
|
79
|
-
const SidebarCollapseButton = [
|
|
80
|
-
// Position
|
|
81
|
-
'absolute', 'top-md', 'inset-y-none', 'z-[1]'];
|
|
82
|
-
const SidebarCollapseButtonSides = {
|
|
83
|
-
[OrSidebarPlacement.left]: [
|
|
84
|
-
// Position
|
|
85
|
-
'-right-[12px]'],
|
|
86
|
-
[OrSidebarPlacement.right]: [
|
|
87
|
-
// Position
|
|
88
|
-
'-left-[12px]']
|
|
89
|
-
};
|
|
90
51
|
const SidebarResizingSides = {
|
|
91
52
|
[OrSidebarPlacement.left]: [
|
|
92
53
|
// Borders
|
|
93
|
-
'border-r-2', 'border-r-primary
|
|
54
|
+
'border-r-2', 'border-r-primary dark:border-r-primary-dark'],
|
|
94
55
|
[OrSidebarPlacement.right]: [
|
|
95
56
|
// Borders
|
|
96
|
-
'border-l-2', 'border-l-primary
|
|
57
|
+
'border-l-2', 'border-l-primary dark:border-l-primary-dark']
|
|
97
58
|
};
|
|
98
59
|
const SidebarMain = [
|
|
99
60
|
// Layout
|
|
100
|
-
'flex', 'flex-col', 'grow',
|
|
61
|
+
'flex', 'flex-col', 'grow',
|
|
101
62
|
// Box
|
|
102
63
|
'min-h-0'];
|
|
103
64
|
const SidebarHeader = [
|
|
104
|
-
// Layout
|
|
105
|
-
'shrink-0', 'overflow-hidden',
|
|
106
65
|
// Sizing
|
|
107
|
-
'p-md'
|
|
108
|
-
// Typography
|
|
109
|
-
'typography-headline-2', 'whitespace-nowrap', 'text-ellipsis'];
|
|
66
|
+
'p-md'];
|
|
110
67
|
const SidebarContent = [
|
|
111
68
|
// Layout
|
|
112
69
|
'grow', 'overflow-auto',
|
|
113
70
|
// Sizing
|
|
114
71
|
'p-md'];
|
|
115
72
|
const SidebarFooter = [
|
|
116
|
-
// Layout
|
|
117
|
-
'shrink-0', 'overflow-x-hidden',
|
|
118
73
|
// Sizing
|
|
119
74
|
'p-md',
|
|
120
75
|
// Borders
|
|
121
|
-
'border-t-[1px]', 'border-t-solid', 'border-t-
|
|
76
|
+
'border-t-[1px]', 'border-t-solid', 'border-t-secondary dark:border-t-secondary-dark'];
|
|
122
77
|
|
|
123
78
|
var script = defineComponent({
|
|
124
79
|
name: 'OrSidebar',
|
|
125
|
-
components: {
|
|
126
|
-
OrSidebarCollapseButton
|
|
127
|
-
},
|
|
128
80
|
props: {
|
|
129
81
|
width: {
|
|
130
82
|
type: Number,
|
|
131
|
-
|
|
83
|
+
required: false,
|
|
84
|
+
default: 0,
|
|
132
85
|
validator: value => _.isNumber(value) && value >= 0
|
|
133
86
|
},
|
|
134
87
|
minimumWidth: {
|
|
135
88
|
type: Number,
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
maximumWidth: {
|
|
140
|
-
type: Number,
|
|
141
|
-
default: 384,
|
|
89
|
+
required: false,
|
|
90
|
+
default: 350,
|
|
142
91
|
validator: value => _.isNumber(value) && value >= 0
|
|
143
92
|
},
|
|
144
93
|
/**
|
|
@@ -152,18 +101,9 @@ var script = defineComponent({
|
|
|
152
101
|
type: String,
|
|
153
102
|
default: OrSidebarPlacement.right,
|
|
154
103
|
validator: value => _.includes(_.values(OrSidebarPlacement), value)
|
|
155
|
-
},
|
|
156
|
-
draggable: {
|
|
157
|
-
type: Boolean,
|
|
158
|
-
default: true
|
|
159
|
-
},
|
|
160
|
-
collapsible: {
|
|
161
|
-
type: Boolean,
|
|
162
|
-
default: false
|
|
163
104
|
}
|
|
164
105
|
},
|
|
165
|
-
emits: ['change:width'
|
|
166
|
-
expose: ['root', 'open', 'close'],
|
|
106
|
+
emits: ['change:width'],
|
|
167
107
|
setup(props, {
|
|
168
108
|
emit
|
|
169
109
|
}) {
|
|
@@ -174,26 +114,16 @@ var script = defineComponent({
|
|
|
174
114
|
var _a;
|
|
175
115
|
return (_a = root.value) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
176
116
|
});
|
|
177
|
-
// Slots
|
|
178
|
-
const {
|
|
179
|
-
toolbar: toolbarSlot
|
|
180
|
-
} = useSlots();
|
|
181
117
|
// State
|
|
182
118
|
const startPositionX = ref(0);
|
|
183
119
|
const isResizing = ref(false);
|
|
184
|
-
const isCollapsed = ref(false);
|
|
185
|
-
const maximumWidth = ref(props.maximumWidth || 384);
|
|
186
120
|
const localWidth = ref(props.width >= props.minimumWidth ? props.width : props.minimumWidth);
|
|
187
|
-
const isShowingToolbar = computed(() => !!toolbarSlot);
|
|
188
121
|
// Styles
|
|
189
122
|
const sidebarStyle = computed(() => ({
|
|
190
|
-
width:
|
|
123
|
+
width: localWidth.value + 'px'
|
|
191
124
|
}));
|
|
192
|
-
const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot]);
|
|
193
|
-
const sidebarStyles = computed(() => [...SidebarBar, ...SidebarSides[props.side]]);
|
|
194
|
-
const toolbarStyles = computed(() => [...SidebarToolbar, ...(props.collapsible ? CollapsibleSidebarToolbar : []), ...SidebarToolbarSides[props.side]]);
|
|
125
|
+
const rootStyles = computed(() => ['or-sidebar', ...SidebarRoot, ...SidebarRootSides[props.side]]);
|
|
195
126
|
const resizeStyles = computed(() => [...SidebarResize, ...SidebarResizeSides[props.side], ...(isResizing.value ? SidebarResizingSides[props.side] : [])]);
|
|
196
|
-
const collapsibleButtonStyles = computed(() => [...SidebarCollapseButton, ...SidebarCollapseButtonSides[props.side]]);
|
|
197
127
|
const mainStyles = computed(() => [...SidebarMain]);
|
|
198
128
|
const headerStyles = computed(() => [...SidebarHeader]);
|
|
199
129
|
const contentStyles = computed(() => [...SidebarContent]);
|
|
@@ -219,15 +149,8 @@ var script = defineComponent({
|
|
|
219
149
|
isResizing.value = false;
|
|
220
150
|
}
|
|
221
151
|
});
|
|
222
|
-
// Methods
|
|
223
|
-
function open() {
|
|
224
|
-
isCollapsed.value = false;
|
|
225
|
-
}
|
|
226
|
-
function close() {
|
|
227
|
-
isCollapsed.value = true;
|
|
228
|
-
}
|
|
229
152
|
const {
|
|
230
|
-
width:
|
|
153
|
+
width: maximumWidth
|
|
231
154
|
} = useElementBounding(parentContainer);
|
|
232
155
|
watch(() => props.width, newValue => {
|
|
233
156
|
if (newValue !== localWidth.value) {
|
|
@@ -237,36 +160,22 @@ var script = defineComponent({
|
|
|
237
160
|
watch(() => props.minimumWidth, newMinimum => {
|
|
238
161
|
if (newMinimum > localWidth.value) localWidth.value = newMinimum;
|
|
239
162
|
});
|
|
240
|
-
watch(() => props.maximumWidth, newMaximum => {
|
|
241
|
-
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
242
|
-
});
|
|
243
|
-
watch(containerWidth, newMaximum => {
|
|
244
|
-
if (newMaximum < maximumWidth.value) maximumWidth.value = newMaximum;
|
|
245
|
-
});
|
|
246
163
|
watch(maximumWidth, newMaximum => {
|
|
247
164
|
if (newMaximum < localWidth.value) localWidth.value = newMaximum;
|
|
248
165
|
});
|
|
249
166
|
watch(localWidth, val => emit('change:width', val));
|
|
250
|
-
watch(isCollapsed, val => emit(val ? 'close' : 'open'));
|
|
251
167
|
return {
|
|
252
168
|
root,
|
|
253
169
|
resizeBar,
|
|
254
170
|
isResizing,
|
|
255
|
-
isCollapsed,
|
|
256
171
|
localWidth,
|
|
257
|
-
isShowingToolbar,
|
|
258
172
|
sidebarStyle,
|
|
259
173
|
rootStyles,
|
|
260
|
-
sidebarStyles,
|
|
261
|
-
toolbarStyles,
|
|
262
174
|
resizeStyles,
|
|
263
|
-
collapsibleButtonStyles,
|
|
264
175
|
mainStyles,
|
|
265
176
|
headerStyles,
|
|
266
177
|
contentStyles,
|
|
267
|
-
footerStyles
|
|
268
|
-
open,
|
|
269
|
-
close
|
|
178
|
+
footerStyles
|
|
270
179
|
};
|
|
271
180
|
}
|
|
272
181
|
});
|
|
@@ -281,50 +190,20 @@ var __vue_render__ = function () {
|
|
|
281
190
|
var _c = _vm._self._c || _h;
|
|
282
191
|
return _c('aside', {
|
|
283
192
|
ref: "root",
|
|
284
|
-
class: _vm.rootStyles
|
|
285
|
-
}, [_vm.side === 'right' && _vm.isShowingToolbar ? _c('div', {
|
|
286
|
-
class: _vm.toolbarStyles
|
|
287
|
-
}, [_vm._t("toolbar")], 2) : _vm._e(), _vm._v(" "), _c('div', {
|
|
288
|
-
class: _vm.sidebarStyles,
|
|
193
|
+
class: _vm.rootStyles,
|
|
289
194
|
style: _vm.sidebarStyle
|
|
290
|
-
}, [
|
|
195
|
+
}, [_c('div', {
|
|
291
196
|
ref: "resizeBar",
|
|
292
197
|
class: _vm.resizeStyles
|
|
293
|
-
})
|
|
294
|
-
class: _vm.collapsibleButtonStyles,
|
|
295
|
-
attrs: {
|
|
296
|
-
"side": _vm.side
|
|
297
|
-
},
|
|
298
|
-
model: {
|
|
299
|
-
value: _vm.isCollapsed,
|
|
300
|
-
callback: function ($$v) {
|
|
301
|
-
_vm.isCollapsed = $$v;
|
|
302
|
-
},
|
|
303
|
-
expression: "isCollapsed"
|
|
304
|
-
}
|
|
305
|
-
}) : _vm._e(), _vm._v(" "), _c('div', {
|
|
306
|
-
directives: [{
|
|
307
|
-
name: "show",
|
|
308
|
-
rawName: "v-show",
|
|
309
|
-
value: !_vm.isCollapsed,
|
|
310
|
-
expression: "!isCollapsed"
|
|
311
|
-
}],
|
|
198
|
+
}), _vm._v(" "), _c('div', {
|
|
312
199
|
class: _vm.mainStyles
|
|
313
200
|
}, [_vm.$slots.header ? _c('div', {
|
|
314
201
|
class: _vm.headerStyles
|
|
315
202
|
}, [_vm._t("header")], 2) : _vm._e(), _vm._v(" "), _c('div', {
|
|
316
203
|
class: _vm.contentStyles
|
|
317
204
|
}, [_vm._t("default")], 2)]), _vm._v(" "), _vm.$slots.footer ? _c('div', {
|
|
318
|
-
directives: [{
|
|
319
|
-
name: "show",
|
|
320
|
-
rawName: "v-show",
|
|
321
|
-
value: !_vm.isCollapsed,
|
|
322
|
-
expression: "!isCollapsed"
|
|
323
|
-
}],
|
|
324
205
|
class: _vm.footerStyles
|
|
325
|
-
}, [_vm._t("footer")], 2) : _vm._e()]
|
|
326
|
-
class: _vm.toolbarStyles
|
|
327
|
-
}, [_vm._t("toolbar")], 2) : _vm._e()]);
|
|
206
|
+
}, [_vm._t("footer")], 2) : _vm._e()]);
|
|
328
207
|
};
|
|
329
208
|
var __vue_staticRenderFns__ = [];
|
|
330
209
|
|
|
@@ -348,4 +227,4 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
348
227
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
349
228
|
var __vue_component__$1 = __vue_component__;
|
|
350
229
|
|
|
351
|
-
export { __vue_component__$1 as _ };
|
|
230
|
+
export { OrSidebarPlacement as O, __vue_component__$1 as _ };
|
|
@@ -8,7 +8,7 @@ export { a as BUTTON_COLOR, c as BUTTON_LOADER_TYPE, b as BUTTON_SIZE, B as BUTT
|
|
|
8
8
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, O as OrButtonV3 } from '../OrButton-d45772c1.js';
|
|
9
9
|
export { O as OrCard } from '../OrCard-a6b30f8f.js';
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from '../OrCardCollection-166cfcc6.js';
|
|
11
|
-
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-
|
|
11
|
+
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../OrCardCollection-4ac89ea5.js';
|
|
12
12
|
export { _ as OrCardV3 } from '../OrCard-45d5869b.js';
|
|
13
13
|
export { a as OrCarousel, _ as OrCarouselItem } from '../OrCarouselItem-6da755c0.js';
|
|
14
14
|
export { O as OrCheckbox } from '../OrCheckbox-4cbddd67.js';
|
|
@@ -66,13 +66,12 @@ export { _ as OrRadio } from '../OrRadio-187d6fc7.js';
|
|
|
66
66
|
export { _ as OrRadioGroup } from '../OrRadioGroup-aa9f0757.js';
|
|
67
67
|
export { _ as OrRadioV3 } from '../OrRadio-fe23947a.js';
|
|
68
68
|
export { O as OrSearch } from '../OrSearch-832d7978.js';
|
|
69
|
-
export { O as OrSearchV3 } from '../OrSearch-
|
|
69
|
+
export { O as OrSearchV3 } from '../OrSearch-09fd004c.js';
|
|
70
70
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-878279bf.js';
|
|
71
71
|
export { _ as OrSelect } from '../OrSelect-a23d4210.js';
|
|
72
72
|
export { _ as OrSelectV3 } from '../OrSelect-2ececfc1.js';
|
|
73
73
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-e2b2c9ec.js';
|
|
74
|
-
export { _ as OrSidebarV3 } from '../OrSidebar-
|
|
75
|
-
export { O as OrSidebarPlacement } from '../OrSidebarCollapseButton-1161aef8.js';
|
|
74
|
+
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../OrSidebar-c95ef614.js';
|
|
76
75
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-242d22f3.js';
|
|
77
76
|
export { _ as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from '../OrSkeletonText-9a2f39dc.js';
|
|
78
77
|
export { _ as OrSlider } from '../OrSlider-59d05856.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-
|
|
1
|
+
export { D as DefaultCardCollectionViews, _ as OrCardCollectionV3, d as defaultViewModes, g as gridView, l as listView } from '../../OrCardCollection-4ac89ea5.js';
|
|
2
2
|
import '../../index-fa6eb4ca.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
@@ -19,7 +19,7 @@ import '../../OrButton-d45772c1.js';
|
|
|
19
19
|
import '../../OrLoader-864ef92a.js';
|
|
20
20
|
import '../../OrMenu-52da43bc.js';
|
|
21
21
|
import '../../OrMenuItem-e2693a5f.js';
|
|
22
|
-
import '../../OrSearch-
|
|
22
|
+
import '../../OrSearch-09fd004c.js';
|
|
23
23
|
import '../../OrInput-00070eee.js';
|
|
24
24
|
import '../../OrError-52f668a4.js';
|
|
25
25
|
import '../../OrHint-fde53334.js';
|
|
@@ -10,17 +10,7 @@ export declare const Default: StoryFn<import("vue").ComponentOptions<import("vue
|
|
|
10
10
|
} | string[], {} & {}, {
|
|
11
11
|
[x: number]: string;
|
|
12
12
|
} | {}, true>)>;
|
|
13
|
-
export declare const
|
|
14
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
15
|
-
} | string[], {} & {}, {
|
|
16
|
-
[x: number]: string;
|
|
17
|
-
} | {}, true>)>;
|
|
18
|
-
export declare const NotDraggable: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
19
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
20
|
-
} | string[], {} & {}, {
|
|
21
|
-
[x: number]: string;
|
|
22
|
-
} | {}, true>)>;
|
|
23
|
-
export declare const Collapsible: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
13
|
+
export declare const WithMinimumWidth: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
24
14
|
[x: string]: ((...args: any[]) => any) | null;
|
|
25
15
|
} | string[], {} & {}, {
|
|
26
16
|
[x: number]: string;
|
|
@@ -40,33 +30,8 @@ export declare const WithFooter: StoryFn<import("vue").ComponentOptions<import("
|
|
|
40
30
|
} | string[], {} & {}, {
|
|
41
31
|
[x: number]: string;
|
|
42
32
|
} | {}, true>)>;
|
|
43
|
-
export declare const WithToolbar: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
44
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
45
|
-
} | string[], {} & {}, {
|
|
46
|
-
[x: number]: string;
|
|
47
|
-
} | {}, true>)>;
|
|
48
|
-
export declare const CollapsibleWithToolbar: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
49
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
50
|
-
} | string[], {} & {}, {
|
|
51
|
-
[x: number]: string;
|
|
52
|
-
} | {}, true>)>;
|
|
53
|
-
export declare const WithTabs: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
54
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
55
|
-
} | string[], {} & {}, {
|
|
56
|
-
[x: number]: string;
|
|
57
|
-
} | {}, true>)>;
|
|
58
33
|
export declare const LeftSidebar: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
59
34
|
[x: string]: ((...args: any[]) => any) | null;
|
|
60
35
|
} | string[], {} & {}, {
|
|
61
36
|
[x: number]: string;
|
|
62
37
|
} | {}, true>)>;
|
|
63
|
-
export declare const WithLeftToolbar: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
64
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
65
|
-
} | string[], {} & {}, {
|
|
66
|
-
[x: number]: string;
|
|
67
|
-
} | {}, true>)>;
|
|
68
|
-
export declare const CollapsibleWithWithLeftToolbar: StoryFn<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
69
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
70
|
-
} | string[], {} & {}, {
|
|
71
|
-
[x: number]: string;
|
|
72
|
-
} | {}, true>)>;
|
|
@@ -4,36 +4,26 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
4
4
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
resizeBar: import("@vue/composition-api").Ref<HTMLElement | null>;
|
|
6
6
|
isResizing: import("@vue/composition-api").Ref<boolean>;
|
|
7
|
-
isCollapsed: import("@vue/composition-api").Ref<boolean>;
|
|
8
7
|
localWidth: import("@vue/composition-api").Ref<number>;
|
|
9
|
-
isShowingToolbar: import("@vue/composition-api").ComputedRef<boolean>;
|
|
10
8
|
sidebarStyle: import("@vue/composition-api").ComputedRef<{
|
|
11
9
|
width: string;
|
|
12
10
|
}>;
|
|
13
11
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
14
|
-
sidebarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
15
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
16
12
|
resizeStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
17
|
-
collapsibleButtonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
18
13
|
mainStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
19
14
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
20
15
|
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
21
16
|
footerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
22
|
-
open: () => void;
|
|
23
|
-
close: () => void;
|
|
24
17
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
25
18
|
width: {
|
|
26
19
|
type: NumberConstructor;
|
|
20
|
+
required: false;
|
|
27
21
|
default: number;
|
|
28
22
|
validator: (value?: any) => boolean;
|
|
29
23
|
};
|
|
30
24
|
minimumWidth: {
|
|
31
25
|
type: NumberConstructor;
|
|
32
|
-
|
|
33
|
-
validator: (value?: any) => boolean;
|
|
34
|
-
};
|
|
35
|
-
maximumWidth: {
|
|
36
|
-
type: NumberConstructor;
|
|
26
|
+
required: false;
|
|
37
27
|
default: number;
|
|
38
28
|
validator: (value?: any) => boolean;
|
|
39
29
|
};
|
|
@@ -49,27 +39,16 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
49
39
|
default: OrSidebarPlacement;
|
|
50
40
|
validator: (value?: any) => boolean;
|
|
51
41
|
};
|
|
52
|
-
draggable: {
|
|
53
|
-
type: BooleanConstructor;
|
|
54
|
-
default: boolean;
|
|
55
|
-
};
|
|
56
|
-
collapsible: {
|
|
57
|
-
type: BooleanConstructor;
|
|
58
|
-
default: boolean;
|
|
59
|
-
};
|
|
60
42
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
61
43
|
width: {
|
|
62
44
|
type: NumberConstructor;
|
|
45
|
+
required: false;
|
|
63
46
|
default: number;
|
|
64
47
|
validator: (value?: any) => boolean;
|
|
65
48
|
};
|
|
66
49
|
minimumWidth: {
|
|
67
50
|
type: NumberConstructor;
|
|
68
|
-
|
|
69
|
-
validator: (value?: any) => boolean;
|
|
70
|
-
};
|
|
71
|
-
maximumWidth: {
|
|
72
|
-
type: NumberConstructor;
|
|
51
|
+
required: false;
|
|
73
52
|
default: number;
|
|
74
53
|
validator: (value?: any) => boolean;
|
|
75
54
|
};
|
|
@@ -85,59 +64,35 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
85
64
|
default: OrSidebarPlacement;
|
|
86
65
|
validator: (value?: any) => boolean;
|
|
87
66
|
};
|
|
88
|
-
draggable: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: boolean;
|
|
91
|
-
};
|
|
92
|
-
collapsible: {
|
|
93
|
-
type: BooleanConstructor;
|
|
94
|
-
default: boolean;
|
|
95
|
-
};
|
|
96
67
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
97
68
|
width: number;
|
|
98
69
|
minimumWidth: number;
|
|
99
|
-
maximumWidth: number;
|
|
100
70
|
side: OrSidebarPlacement;
|
|
101
|
-
draggable: boolean;
|
|
102
|
-
collapsible: boolean;
|
|
103
71
|
} & {} & {
|
|
104
72
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
105
73
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
106
74
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
107
75
|
resizeBar: import("@vue/composition-api").Ref<HTMLElement | null>;
|
|
108
76
|
isResizing: import("@vue/composition-api").Ref<boolean>;
|
|
109
|
-
isCollapsed: import("@vue/composition-api").Ref<boolean>;
|
|
110
77
|
localWidth: import("@vue/composition-api").Ref<number>;
|
|
111
|
-
isShowingToolbar: import("@vue/composition-api").ComputedRef<boolean>;
|
|
112
78
|
sidebarStyle: import("@vue/composition-api").ComputedRef<{
|
|
113
79
|
width: string;
|
|
114
80
|
}>;
|
|
115
81
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
116
|
-
sidebarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
117
|
-
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
118
82
|
resizeStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
119
|
-
collapsibleButtonStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
120
83
|
mainStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
121
84
|
headerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
122
85
|
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
123
86
|
footerStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
124
|
-
open: () => void;
|
|
125
|
-
close: () => void;
|
|
126
87
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
127
88
|
width: number;
|
|
128
89
|
minimumWidth: number;
|
|
129
|
-
maximumWidth: number;
|
|
130
90
|
side: OrSidebarPlacement;
|
|
131
|
-
draggable: boolean;
|
|
132
|
-
collapsible: boolean;
|
|
133
91
|
} & {} & {
|
|
134
92
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
135
93
|
}, {
|
|
136
94
|
width: number;
|
|
137
95
|
minimumWidth: number;
|
|
138
|
-
maximumWidth: number;
|
|
139
96
|
side: OrSidebarPlacement;
|
|
140
|
-
draggable: boolean;
|
|
141
|
-
collapsible: boolean;
|
|
142
97
|
}, true>);
|
|
143
98
|
export default _default;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
export { _ as OrSidebarV3 } from '../../OrSidebar-
|
|
2
|
-
export { O as OrSidebarPlacement } from '../../OrSidebarCollapseButton-1161aef8.js';
|
|
1
|
+
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../../OrSidebar-c95ef614.js';
|
|
3
2
|
import '@vueuse/core';
|
|
4
3
|
import 'lodash';
|
|
5
4
|
import '../../index-fa6eb4ca.js';
|
|
6
5
|
import 'vue';
|
|
7
6
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
8
7
|
import '../../normalize-component-6e8e3d80.js';
|
|
9
|
-
import '../../OrIconButton-837d57f8.js';
|
|
10
|
-
import '../../OrIcon-458206aa.js';
|
|
11
|
-
import '../../OrTooltip-b1f38647.js';
|
|
12
|
-
import '../../OrPopover-4e8acb7b.js';
|
|
13
|
-
import '../../floating-ui.dom.esm-83eba816.js';
|
|
14
|
-
import '../../OrBottomSheet-ddba20c1.js';
|
|
15
|
-
import '../../OrOverlay-efa7992e.js';
|
|
16
|
-
import '../../OrTeleport.vue2-e9ba3054.js';
|
|
17
|
-
import 'portal-vue';
|
|
18
|
-
import '../../useElevation-aac032f4.js';
|
|
19
|
-
import '../../useResponsive-e13dfbb0.js';
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { OrSidebarPlacement } from './props';
|
|
2
2
|
export declare const SidebarRoot: string[];
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const SidebarToolbar: string[];
|
|
5
|
-
export declare const CollapsibleSidebarToolbar: string[];
|
|
6
|
-
export declare const SidebarSides: Record<OrSidebarPlacement, string[]>;
|
|
7
|
-
export declare const SidebarToolbarSides: Record<OrSidebarPlacement, string[]>;
|
|
3
|
+
export declare const SidebarRootSides: Record<OrSidebarPlacement, string[]>;
|
|
8
4
|
export declare const SidebarResize: string[];
|
|
9
5
|
export declare const SidebarResizeSides: Record<OrSidebarPlacement, string[]>;
|
|
10
|
-
export declare const SidebarCollapseButton: string[];
|
|
11
|
-
export declare const SidebarCollapseButtonSides: Record<OrSidebarPlacement, string[]>;
|
|
12
6
|
export declare const SidebarResizingSides: Record<OrSidebarPlacement, string[]>;
|
|
13
7
|
export declare const SidebarMain: string[];
|
|
14
8
|
export declare const SidebarHeader: string[];
|