@onereach/ui-components 2.68.1-beta.2067.0 → 2.68.1-beta.2068.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/{OrCard-29116e1f.js → OrCard-58a1ba3e.js} +2 -2
- package/dist/bundled/v2/{OrCardCollection-94a30a19.js → OrCardCollection-dac9fd1e.js} +53 -144
- package/dist/bundled/v2/{OrSearch-3ece0ef6.js → OrSearch-e34afaee.js} +2 -2
- package/dist/bundled/v2/{OrSelect-68aacb62.js → OrSelect-5fef3ccd.js} +1 -1
- package/dist/bundled/v2/{OrSortHeader-9932d28f.js → OrSortHeader-396e6a7c.js} +2 -2
- package/dist/bundled/v2/components/index.js +6 -6
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -3
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +28 -42
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -7
- package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-select-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-tag-v3/OrTag.stories3.d.ts +5 -0
- package/dist/bundled/v2/hooks/index.js +1 -1
- package/dist/bundled/v2/index.js +7 -7
- package/dist/bundled/v2/{useOverflow-43299d81.js → useOverflow-bfea931e.js} +7 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-0e029303.js → OrCardCollection.vue_vue_type_script_lang-7a07be47.js} +48 -98
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-18997376.js → OrConfirm.vue_vue_type_script_lang-2e7fa659.js} +36 -6
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-147a1fb9.js → OrSearch.vue_vue_type_script_lang-1d2a20e0.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-58b92fb0.js → OrSelect.vue_vue_type_script_lang-6fd881cf.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-61b79a5a.js → OrTabs.vue_vue_type_script_lang-919b2021.js} +36 -10
- package/dist/bundled/v3/components/index.js +9 -11
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -3
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +28 -42
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +4 -11
- package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/bundled/v3/components/or-confirm-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-search-v3/index.js +1 -1
- package/dist/bundled/v3/components/or-select-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
- package/dist/bundled/v3/components/or-tag-v3/OrTag.stories3.d.ts +5 -0
- package/dist/bundled/v3/hooks/index.js +1 -1
- package/dist/bundled/v3/index.js +301 -316
- package/dist/bundled/v3/{useOverflow-2468b718.js → useOverflow-f7916ce2.js} +7 -3
- package/dist/esm/v2/{OrCardCollection-54648673.js → OrCardCollection-e46b220e.js} +52 -144
- package/dist/esm/v2/{OrSelect-0e6e7868.js → OrSelect-81c1173a.js} +1 -1
- package/dist/esm/v2/components/index.js +3 -3
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -3
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +28 -42
- package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -7
- package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/esm/v2/components/or-select-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tag-v3/OrTag.stories3.d.ts +5 -0
- package/dist/esm/v2/hooks/index.js +1 -1
- package/dist/esm/v2/index.js +3 -3
- package/dist/esm/v2/{useOverflow-ac506c65.js → useOverflow-2f535f6c.js} +7 -3
- package/dist/esm/v3/OrCardCollection-5924d035.js +198 -0
- package/dist/esm/v3/{OrSelect-2e00d4c8.js → OrSelect-fe1566ac.js} +1 -1
- package/dist/esm/v3/components/index.js +3 -3
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -3
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +28 -42
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -7
- package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tag-v3/OrTag.stories3.d.ts +5 -0
- package/dist/esm/v3/hooks/index.js +1 -1
- package/dist/esm/v3/index.js +3 -3
- package/dist/esm/v3/{useOverflow-ac506c65.js → useOverflow-2f535f6c.js} +7 -3
- package/package.json +1 -1
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +19 -115
- package/src/components/or-card-collection-v3/OrCardCollection.vue +67 -93
- package/src/components/or-card-collection-v3/styles.ts +1 -1
- package/src/components/or-card-collection-v3/types.ts +1 -1
- package/src/components/or-tag-v3/OrTag.stories3.ts +112 -0
- package/src/hooks/useOverflow.ts +3 -2
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
- package/dist/bundled/v3/OrButton-8ab33d9d.js +0 -33
- package/dist/bundled/v3/OrMenu-f26e8e55.js +0 -29
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
- package/dist/esm/v3/OrCardCollection-9d0036fa.js +0 -259
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +0 -39
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +0 -40
|
@@ -67,6 +67,6 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
67
67
|
render: __vue_render__,
|
|
68
68
|
staticRenderFns: __vue_staticRenderFns__
|
|
69
69
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
70
|
-
var
|
|
70
|
+
var OrCard = __vue_component__;
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { OrCard as O };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import './index-fa6eb4ca.js';
|
|
2
|
-
import {
|
|
3
|
-
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
2
|
+
import { O as OrCard } from './OrCard-58a1ba3e.js';
|
|
4
3
|
import { O as OrIconButton } from './OrIconButton-a215104c.js';
|
|
5
|
-
import { O as
|
|
6
|
-
import { O as
|
|
7
|
-
import { O as OrMenuItem } from './OrMenuItem-26420908.js';
|
|
8
|
-
import { O as OrIcon } from './OrIcon-8625385f.js';
|
|
9
|
-
import { O as OrSearch } from './OrSearch-3ece0ef6.js';
|
|
4
|
+
import { O as OrInput } from './OrInput-4b82eb59.js';
|
|
5
|
+
import { O as OrSortHeader } from './OrSortHeader-396e6a7c.js';
|
|
10
6
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
7
|
+
import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
8
|
+
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
11
9
|
|
|
12
10
|
var CardCollectionView;
|
|
13
11
|
(function (CardCollectionView) {
|
|
@@ -31,7 +29,7 @@ const CardCollectionToolbarPanel = [
|
|
|
31
29
|
// Layout
|
|
32
30
|
'layout-row',
|
|
33
31
|
// Spacing
|
|
34
|
-
'gap-
|
|
32
|
+
'gap-sm+'];
|
|
35
33
|
const CardCollectionContent = [
|
|
36
34
|
// Layout
|
|
37
35
|
'grid',
|
|
@@ -44,75 +42,13 @@ const CardCollectionContentViews = {
|
|
|
44
42
|
'list': []
|
|
45
43
|
};
|
|
46
44
|
|
|
47
|
-
var script$1 = defineComponent({
|
|
48
|
-
name: 'OrCardCollectionView',
|
|
49
|
-
props: {
|
|
50
|
-
items: {
|
|
51
|
-
type: Array,
|
|
52
|
-
default: []
|
|
53
|
-
},
|
|
54
|
-
mode: {
|
|
55
|
-
type: String,
|
|
56
|
-
required: true
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
setup(props) {
|
|
60
|
-
const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
|
|
61
|
-
return {
|
|
62
|
-
contentStyles
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
/* script */
|
|
68
|
-
const __vue_script__$1 = script$1;
|
|
69
|
-
|
|
70
|
-
/* template */
|
|
71
|
-
var __vue_render__$1 = function () {
|
|
72
|
-
var _vm = this;
|
|
73
|
-
var _h = _vm.$createElement;
|
|
74
|
-
var _c = _vm._self._c || _h;
|
|
75
|
-
return _c('div', {
|
|
76
|
-
class: _vm.contentStyles
|
|
77
|
-
}, [_vm._l(_vm.items, function (item) {
|
|
78
|
-
return _vm._t("item", null, null, {
|
|
79
|
-
item: item,
|
|
80
|
-
mode: _vm.mode
|
|
81
|
-
});
|
|
82
|
-
})], 2);
|
|
83
|
-
};
|
|
84
|
-
var __vue_staticRenderFns__$1 = [];
|
|
85
|
-
|
|
86
|
-
/* style */
|
|
87
|
-
const __vue_inject_styles__$1 = undefined;
|
|
88
|
-
/* scoped */
|
|
89
|
-
const __vue_scope_id__$1 = undefined;
|
|
90
|
-
/* module identifier */
|
|
91
|
-
const __vue_module_identifier__$1 = undefined;
|
|
92
|
-
/* functional template */
|
|
93
|
-
const __vue_is_functional_template__$1 = false;
|
|
94
|
-
/* style inject */
|
|
95
|
-
|
|
96
|
-
/* style inject SSR */
|
|
97
|
-
|
|
98
|
-
/* style inject shadow dom */
|
|
99
|
-
|
|
100
|
-
const __vue_component__$2 = /*#__PURE__*/normalizeComponent({
|
|
101
|
-
render: __vue_render__$1,
|
|
102
|
-
staticRenderFns: __vue_staticRenderFns__$1
|
|
103
|
-
}, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
|
|
104
|
-
var OrCardCollectionView = __vue_component__$2;
|
|
105
|
-
|
|
106
45
|
var script = defineComponent({
|
|
107
46
|
name: 'OrCardCollection',
|
|
108
47
|
components: {
|
|
109
|
-
|
|
48
|
+
OrCard,
|
|
110
49
|
OrIconButton,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
OrMenuItem,
|
|
114
|
-
OrIcon,
|
|
115
|
-
OrSearch
|
|
50
|
+
OrInput,
|
|
51
|
+
OrSortHeader
|
|
116
52
|
},
|
|
117
53
|
inheritAttrs: false,
|
|
118
54
|
props: {
|
|
@@ -125,12 +61,12 @@ var script = defineComponent({
|
|
|
125
61
|
default: CardCollectionView.Grid
|
|
126
62
|
},
|
|
127
63
|
sort: {
|
|
128
|
-
type:
|
|
129
|
-
|
|
64
|
+
type: Object,
|
|
65
|
+
default: undefined
|
|
130
66
|
},
|
|
131
|
-
|
|
67
|
+
sortHeaders: {
|
|
132
68
|
type: Array,
|
|
133
|
-
default:
|
|
69
|
+
default: undefined
|
|
134
70
|
},
|
|
135
71
|
search: {
|
|
136
72
|
type: String,
|
|
@@ -142,13 +78,12 @@ var script = defineComponent({
|
|
|
142
78
|
setup(props, context) {
|
|
143
79
|
// Refs
|
|
144
80
|
const root = ref();
|
|
145
|
-
const sortMenu = ref();
|
|
146
|
-
const sortButton = ref();
|
|
147
81
|
// Styles
|
|
148
82
|
const classAttribute = useClassAttribute();
|
|
149
83
|
const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
|
|
150
84
|
const toolbarStyles = computed(() => [...CardCollectionToolbar]);
|
|
151
85
|
const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
|
|
86
|
+
const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
|
|
152
87
|
// State
|
|
153
88
|
const proxyView = ref(props.view);
|
|
154
89
|
const proxySort = ref(props.sort);
|
|
@@ -160,12 +95,6 @@ var script = defineComponent({
|
|
|
160
95
|
function switchToListView() {
|
|
161
96
|
proxyView.value = CardCollectionView.List;
|
|
162
97
|
}
|
|
163
|
-
function handleSort(sort) {
|
|
164
|
-
proxySort.value = sort;
|
|
165
|
-
}
|
|
166
|
-
function handleSearch(search) {
|
|
167
|
-
proxySearch.value = search;
|
|
168
|
-
}
|
|
169
98
|
// Effects
|
|
170
99
|
watch(() => props.view, value => {
|
|
171
100
|
proxyView.value = value;
|
|
@@ -187,18 +116,15 @@ var script = defineComponent({
|
|
|
187
116
|
});
|
|
188
117
|
return {
|
|
189
118
|
root,
|
|
190
|
-
sortMenu,
|
|
191
|
-
sortButton,
|
|
192
119
|
rootStyles,
|
|
193
120
|
toolbarStyles,
|
|
194
121
|
toolbarPanelStyles,
|
|
122
|
+
contentStyles,
|
|
195
123
|
proxyView,
|
|
196
124
|
proxySort,
|
|
197
125
|
proxySearch,
|
|
198
126
|
switchToGridView,
|
|
199
|
-
switchToListView
|
|
200
|
-
handleSort,
|
|
201
|
-
handleSearch
|
|
127
|
+
switchToListView
|
|
202
128
|
};
|
|
203
129
|
}
|
|
204
130
|
});
|
|
@@ -218,48 +144,36 @@ var __vue_render__ = function () {
|
|
|
218
144
|
class: _vm.toolbarStyles
|
|
219
145
|
}, [_c('div', {
|
|
220
146
|
class: _vm.toolbarPanelStyles
|
|
221
|
-
}, [_vm.
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
attrs: {
|
|
234
|
-
"icon": _vm.sortMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
235
|
-
}
|
|
236
|
-
}) : _vm._e()], 1), _vm._v(" "), _c('OrMenu', {
|
|
237
|
-
ref: "sortMenu",
|
|
238
|
-
attrs: {
|
|
239
|
-
"trigger": _vm.sortButton && _vm.sortButton.root
|
|
240
|
-
}
|
|
241
|
-
}, _vm._l(_vm.sortOptions, function (sortItem) {
|
|
242
|
-
return _c('OrMenuItem', {
|
|
243
|
-
key: sortItem,
|
|
244
|
-
on: {
|
|
245
|
-
"click": function ($event) {
|
|
246
|
-
return _vm.handleSort(sortItem);
|
|
247
|
-
}
|
|
147
|
+
}, [_vm.sortHeaders ? _vm._l(_vm.sortHeaders, function (header) {
|
|
148
|
+
return _c('OrSortHeader', {
|
|
149
|
+
key: header.value,
|
|
150
|
+
attrs: {
|
|
151
|
+
"input-value": header.value
|
|
152
|
+
},
|
|
153
|
+
model: {
|
|
154
|
+
value: _vm.proxySort,
|
|
155
|
+
callback: function ($$v) {
|
|
156
|
+
_vm.proxySort = $$v;
|
|
157
|
+
},
|
|
158
|
+
expression: "proxySort"
|
|
248
159
|
}
|
|
249
|
-
}, [_vm._v("\n
|
|
250
|
-
})
|
|
160
|
+
}, [_vm._v("\n " + _vm._s(header.label) + "\n ")]);
|
|
161
|
+
}) : _vm._e()], 2), _vm._v(" "), _c('div', {
|
|
251
162
|
class: _vm.toolbarPanelStyles
|
|
252
|
-
}, [_c('
|
|
253
|
-
staticClass: "md:w-[350px]",
|
|
163
|
+
}, [_c('OrInput', {
|
|
254
164
|
attrs: {
|
|
255
|
-
"
|
|
165
|
+
"type": 'search',
|
|
166
|
+
"placeholder": 'Search',
|
|
167
|
+
"size": 's'
|
|
256
168
|
},
|
|
257
|
-
|
|
258
|
-
|
|
169
|
+
model: {
|
|
170
|
+
value: _vm.proxySearch,
|
|
171
|
+
callback: function ($$v) {
|
|
172
|
+
_vm.proxySearch = $$v;
|
|
173
|
+
},
|
|
174
|
+
expression: "proxySearch"
|
|
259
175
|
}
|
|
260
|
-
}), _vm._v(" "), _c('
|
|
261
|
-
staticClass: "layout-row gap-sm"
|
|
262
|
-
}, [_c('OrIconButton', {
|
|
176
|
+
}), _vm._v(" "), _c('OrIconButton', {
|
|
263
177
|
attrs: {
|
|
264
178
|
"icon": 'grid_view'
|
|
265
179
|
},
|
|
@@ -270,29 +184,24 @@ var __vue_render__ = function () {
|
|
|
270
184
|
}
|
|
271
185
|
}), _vm._v(" "), _c('OrIconButton', {
|
|
272
186
|
attrs: {
|
|
273
|
-
"icon": '
|
|
187
|
+
"icon": 'view_list'
|
|
274
188
|
},
|
|
275
189
|
on: {
|
|
276
190
|
"click": function ($event) {
|
|
277
191
|
return _vm.switchToListView();
|
|
278
192
|
}
|
|
279
193
|
}
|
|
280
|
-
}), _vm._v(" "), _vm._t("addon")], 2)]
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
}], null, true)
|
|
292
|
-
})];
|
|
293
|
-
}, null, {
|
|
294
|
-
items: _vm.items
|
|
295
|
-
})], 2);
|
|
194
|
+
}), _vm._v(" "), _vm._t("addon")], 2)]), _vm._v(" "), _c('div', {
|
|
195
|
+
class: _vm.contentStyles
|
|
196
|
+
}, [_vm.proxyView === 'grid' ? _vm._l(_vm.items, function (item) {
|
|
197
|
+
return _c('OrCard', {
|
|
198
|
+
key: item.id
|
|
199
|
+
}, [_vm._t("gridItem", null, null, item)], 2);
|
|
200
|
+
}) : _vm._e(), _vm._v(" "), _vm.proxyView === 'list' ? _vm._l(_vm.items, function (item) {
|
|
201
|
+
return _c('OrCard', {
|
|
202
|
+
key: item.id
|
|
203
|
+
}, [_vm._t("listItem", null, null, item)], 2);
|
|
204
|
+
}) : _vm._e()], 2)]);
|
|
296
205
|
};
|
|
297
206
|
var __vue_staticRenderFns__ = [];
|
|
298
207
|
|
|
@@ -137,6 +137,6 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
137
137
|
render: __vue_render__,
|
|
138
138
|
staticRenderFns: __vue_staticRenderFns__
|
|
139
139
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
140
|
-
var
|
|
140
|
+
var __vue_component__$1 = __vue_component__;
|
|
141
141
|
|
|
142
|
-
export {
|
|
142
|
+
export { __vue_component__$1 as _ };
|
|
@@ -12,7 +12,7 @@ import { O as OrPopover } from './OrPopover-5dc240f1.js';
|
|
|
12
12
|
import { O as OrTag } from './OrTag-6440aa89.js';
|
|
13
13
|
import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-e2a93aaf.js';
|
|
14
14
|
import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
|
|
15
|
-
import { u as useOverflow } from './useOverflow-
|
|
15
|
+
import { u as useOverflow } from './useOverflow-bfea931e.js';
|
|
16
16
|
import { defineComponent, getCurrentInstance, ref, computed, onMounted, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
17
17
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
18
18
|
|
|
@@ -129,6 +129,6 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
|
129
129
|
render: __vue_render__,
|
|
130
130
|
staticRenderFns: __vue_staticRenderFns__
|
|
131
131
|
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
132
|
-
var
|
|
132
|
+
var OrSortHeader = __vue_component__;
|
|
133
133
|
|
|
134
|
-
export {
|
|
134
|
+
export { OrSortHeader as O };
|
|
@@ -8,8 +8,8 @@ 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-0e91a808.js';
|
|
9
9
|
export { O as OrCard } from '../OrCard-a6b30f8f.js';
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from '../OrCardCollection-89428bbf.js';
|
|
11
|
-
export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../OrCardCollection-
|
|
12
|
-
export {
|
|
11
|
+
export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../OrCardCollection-dac9fd1e.js';
|
|
12
|
+
export { O as OrCardV3 } from '../OrCard-58a1ba3e.js';
|
|
13
13
|
export { a as OrCarousel, _ as OrCarouselItem } from '../OrCarouselItem-6da755c0.js';
|
|
14
14
|
export { O as OrCheckbox } from '../OrCheckbox-4cbddd67.js';
|
|
15
15
|
export { O as OrCheckboxV3 } from '../OrCheckbox-dbef9f9a.js';
|
|
@@ -63,16 +63,16 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrP
|
|
|
63
63
|
export { _ as OrRadio } from '../OrRadio-187d6fc7.js';
|
|
64
64
|
export { _ as OrRadioGroup } from '../OrRadioGroup-aa9f0757.js';
|
|
65
65
|
export { _ as OrRadioV3 } from '../OrRadio-cd39b20b.js';
|
|
66
|
-
export {
|
|
66
|
+
export { _ as OrSearchV3 } from '../OrSearch-e34afaee.js';
|
|
67
67
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-21cc914e.js';
|
|
68
68
|
export { _ as OrSelect } from '../OrSelect-a23d4210.js';
|
|
69
|
-
export { _ as OrSelectV3 } from '../OrSelect-
|
|
69
|
+
export { _ as OrSelectV3 } from '../OrSelect-5fef3ccd.js';
|
|
70
70
|
export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-e2b2c9ec.js';
|
|
71
71
|
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from '../OrSidebar-c95ef614.js';
|
|
72
72
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-242d22f3.js';
|
|
73
73
|
export { _ as OrSkeletonCircleV3, a as OrSkeletonRectV3, b as OrSkeletonTextV3 } from '../OrSkeletonText-516993b4.js';
|
|
74
74
|
export { _ as OrSlider } from '../OrSlider-59d05856.js';
|
|
75
|
-
export {
|
|
75
|
+
export { O as OrSortHeaderV3 } from '../OrSortHeader-396e6a7c.js';
|
|
76
76
|
export { _ as OrStepper } from '../OrStepper-3fc1a2b3.js';
|
|
77
77
|
export { _ as OrSwitch } from '../OrSwitch-47670dbd.js';
|
|
78
78
|
export { _ as OrSwitchV3 } from '../OrSwitch-237a2081.js';
|
|
@@ -113,6 +113,6 @@ import '../v4-cf8987a3.js';
|
|
|
113
113
|
import '../useResponsive-e13dfbb0.js';
|
|
114
114
|
import '../useElevation-aac032f4.js';
|
|
115
115
|
import '../dropdown-open-e2a93aaf.js';
|
|
116
|
-
import '../useOverflow-
|
|
116
|
+
import '../useOverflow-bfea931e.js';
|
|
117
117
|
import 'portal-vue/dist/portal-vue.esm.js';
|
|
118
118
|
import 'portal-vue';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
-
import OrCardCollection from './OrCardCollection.vue';
|
|
3
2
|
declare const _default: Meta<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, {
|
|
4
3
|
[x: string]: ((...args: any[]) => any) | null;
|
|
5
4
|
} | string[], {} & {}, {
|
|
@@ -16,5 +15,3 @@ export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import(
|
|
|
16
15
|
} | string[], {} & {}, {
|
|
17
16
|
[x: number]: string;
|
|
18
17
|
} | {}, true>)>;
|
|
19
|
-
export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
|
|
20
|
-
export declare const WithLink: StoryFn<typeof OrCardCollection>;
|
|
@@ -1,28 +1,21 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
+
import { SortHeaderModel } from '../or-sort-header-v3';
|
|
2
3
|
import { CardCollectionView } from './props';
|
|
3
|
-
import { CardCollectionItem } from './types';
|
|
4
|
+
import { CardCollectionItem, CardCollectionSortHeader } from './types';
|
|
4
5
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
6
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
6
|
-
sortMenu: import("@vue/composition-api").Ref<(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, {
|
|
7
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
8
|
-
} | string[], {} & {}, {
|
|
9
|
-
[x: number]: string;
|
|
10
|
-
} | {}, true>)) | undefined>;
|
|
11
|
-
sortButton: import("@vue/composition-api").Ref<(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, {
|
|
12
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
13
|
-
} | string[], {} & {}, {
|
|
14
|
-
[x: number]: string;
|
|
15
|
-
} | {}, true>)) | undefined>;
|
|
16
7
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
17
8
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
18
9
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
10
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
19
11
|
proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
|
|
20
|
-
proxySort: import("@vue/composition-api").Ref<
|
|
12
|
+
proxySort: import("@vue/composition-api").Ref<{
|
|
13
|
+
column: string;
|
|
14
|
+
direction: "asc" | "desc";
|
|
15
|
+
}>;
|
|
21
16
|
proxySearch: import("@vue/composition-api").Ref<string>;
|
|
22
17
|
switchToGridView: () => void;
|
|
23
18
|
switchToListView: () => void;
|
|
24
|
-
handleSort: (sort: string) => void;
|
|
25
|
-
handleSearch: (search: string) => void;
|
|
26
19
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
27
20
|
items: {
|
|
28
21
|
type: PropType<CardCollectionItem[]>;
|
|
@@ -33,12 +26,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
33
26
|
default: CardCollectionView;
|
|
34
27
|
};
|
|
35
28
|
sort: {
|
|
36
|
-
type:
|
|
37
|
-
|
|
29
|
+
type: PropType<SortHeaderModel>;
|
|
30
|
+
default: undefined;
|
|
38
31
|
};
|
|
39
|
-
|
|
40
|
-
type: PropType<
|
|
41
|
-
default:
|
|
32
|
+
sortHeaders: {
|
|
33
|
+
type: PropType<CardCollectionSortHeader[]>;
|
|
34
|
+
default: undefined;
|
|
42
35
|
};
|
|
43
36
|
search: {
|
|
44
37
|
type: StringConstructor;
|
|
@@ -54,12 +47,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
54
47
|
default: CardCollectionView;
|
|
55
48
|
};
|
|
56
49
|
sort: {
|
|
57
|
-
type:
|
|
58
|
-
|
|
50
|
+
type: PropType<SortHeaderModel>;
|
|
51
|
+
default: undefined;
|
|
59
52
|
};
|
|
60
|
-
|
|
61
|
-
type: PropType<
|
|
62
|
-
default:
|
|
53
|
+
sortHeaders: {
|
|
54
|
+
type: PropType<CardCollectionSortHeader[]>;
|
|
55
|
+
default: undefined;
|
|
63
56
|
};
|
|
64
57
|
search: {
|
|
65
58
|
type: StringConstructor;
|
|
@@ -67,46 +60,39 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
67
60
|
};
|
|
68
61
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
69
62
|
search: string;
|
|
70
|
-
sort:
|
|
63
|
+
sort: SortHeaderModel;
|
|
71
64
|
items: CardCollectionItem[];
|
|
72
65
|
view: CardCollectionView;
|
|
73
|
-
|
|
66
|
+
sortHeaders: CardCollectionSortHeader[];
|
|
74
67
|
} & {} & {
|
|
75
68
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
76
69
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
77
70
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
78
|
-
sortMenu: import("@vue/composition-api").Ref<(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, {
|
|
79
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
80
|
-
} | string[], {} & {}, {
|
|
81
|
-
[x: number]: string;
|
|
82
|
-
} | {}, true>)) | undefined>;
|
|
83
|
-
sortButton: import("@vue/composition-api").Ref<(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, {
|
|
84
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
85
|
-
} | string[], {} & {}, {
|
|
86
|
-
[x: number]: string;
|
|
87
|
-
} | {}, true>)) | undefined>;
|
|
88
71
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
89
72
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
90
73
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
74
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
91
75
|
proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
|
|
92
|
-
proxySort: import("@vue/composition-api").Ref<
|
|
76
|
+
proxySort: import("@vue/composition-api").Ref<{
|
|
77
|
+
column: string;
|
|
78
|
+
direction: "asc" | "desc";
|
|
79
|
+
}>;
|
|
93
80
|
proxySearch: import("@vue/composition-api").Ref<string>;
|
|
94
81
|
switchToGridView: () => void;
|
|
95
82
|
switchToListView: () => void;
|
|
96
|
-
handleSort: (sort: string) => void;
|
|
97
|
-
handleSearch: (search: string) => void;
|
|
98
83
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
99
84
|
search: string;
|
|
100
|
-
sort:
|
|
85
|
+
sort: SortHeaderModel;
|
|
101
86
|
items: CardCollectionItem[];
|
|
102
87
|
view: CardCollectionView;
|
|
103
|
-
|
|
88
|
+
sortHeaders: CardCollectionSortHeader[];
|
|
104
89
|
} & {} & {
|
|
105
90
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
106
91
|
}, {
|
|
107
92
|
search: string;
|
|
93
|
+
sort: SortHeaderModel;
|
|
108
94
|
items: CardCollectionItem[];
|
|
109
95
|
view: CardCollectionView;
|
|
110
|
-
|
|
96
|
+
sortHeaders: CardCollectionSortHeader[];
|
|
111
97
|
}, true>);
|
|
112
98
|
export default _default;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../../OrCardCollection-
|
|
1
|
+
export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../../OrCardCollection-dac9fd1e.js';
|
|
2
2
|
import '../../index-fa6eb4ca.js';
|
|
3
3
|
import 'vue';
|
|
4
4
|
import '@vue/composition-api/dist/vue-composition-api.mjs';
|
|
5
|
+
import '../../OrCard-58a1ba3e.js';
|
|
6
|
+
import '../../useClassAttribute-9bf33346.js';
|
|
5
7
|
import '../../normalize-component-6e8e3d80.js';
|
|
6
8
|
import '../../OrIconButton-a215104c.js';
|
|
7
9
|
import '../../OrIcon-8625385f.js';
|
|
8
|
-
import '../../useClassAttribute-9bf33346.js';
|
|
9
10
|
import '../../OrTooltip-fbfa05fd.js';
|
|
10
11
|
import '@vueuse/core';
|
|
11
12
|
import '../../OrPopover-5dc240f1.js';
|
|
@@ -16,14 +17,10 @@ import '../../OrTeleport.vue2-e9ba3054.js';
|
|
|
16
17
|
import 'portal-vue';
|
|
17
18
|
import '../../useElevation-aac032f4.js';
|
|
18
19
|
import '../../useResponsive-e13dfbb0.js';
|
|
19
|
-
import '../../OrButton-0e91a808.js';
|
|
20
|
-
import '../../OrLoader-6a1f937b.js';
|
|
21
|
-
import '../../OrMenu-fa47c888.js';
|
|
22
|
-
import '../../OrMenuItem-26420908.js';
|
|
23
|
-
import '../../OrSearch-3ece0ef6.js';
|
|
24
20
|
import '../../OrInput-4b82eb59.js';
|
|
25
21
|
import '../../OrError-aad17598.js';
|
|
26
22
|
import '../../OrHint-f38a1940.js';
|
|
27
23
|
import '../../OrInputBox-79ec54ad.js';
|
|
28
24
|
import '../../OrLabel-172c4b89.js';
|
|
29
25
|
import '../../browser-82dea9ed.js';
|
|
26
|
+
import '../../OrSortHeader-396e6a7c.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { _ as OrSelectV3 } from '../../OrSelect-5fef3ccd.js';
|
|
2
2
|
export { a as SelectSize } from '../../OrInputBox-79ec54ad.js';
|
|
3
3
|
import '../../index-fa6eb4ca.js';
|
|
4
4
|
import 'vue';
|
|
@@ -27,4 +27,4 @@ import '../../useResponsive-e13dfbb0.js';
|
|
|
27
27
|
import '../../OrMenuItem-26420908.js';
|
|
28
28
|
import '../../OrTag-6440aa89.js';
|
|
29
29
|
import '../../dropdown-open-e2a93aaf.js';
|
|
30
|
-
import '../../useOverflow-
|
|
30
|
+
import '../../useOverflow-bfea931e.js';
|
|
@@ -15,3 +15,8 @@ export declare const WithCustomColor: StoryFn<import("vue").ComponentOptions<imp
|
|
|
15
15
|
} | string[], {} & {}, {
|
|
16
16
|
[x: number]: string;
|
|
17
17
|
} | {}, true>)>;
|
|
18
|
+
export declare const InsideContainer: 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>)>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { u as useClassAttribute } from '../useClassAttribute-9bf33346.js';
|
|
2
2
|
export { u as useElevation } from '../useElevation-aac032f4.js';
|
|
3
|
-
export { u as useOverflow } from '../useOverflow-
|
|
3
|
+
export { u as useOverflow } from '../useOverflow-bfea931e.js';
|
|
4
4
|
export { u as useToggle } from '../useToggle-6166bd53.js';
|
|
5
5
|
export { u as useResponsive } from '../useResponsive-e13dfbb0.js';
|
|
6
6
|
import '../index-fa6eb4ca.js';
|