@onereach/ui-components 2.68.1-beta.2061.0 → 2.68.1-beta.2067.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-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
- package/dist/bundled/v2/{OrCardCollection-a9a779ea.js → OrCardCollection-94a30a19.js} +144 -53
- package/dist/bundled/v2/{OrConfirm-18c534df.js → OrConfirm-ff57274f.js} +1 -1
- package/dist/bundled/v2/{OrInput-8b90e08f.js → OrInput-4b82eb59.js} +4 -4
- package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-3ece0ef6.js} +3 -3
- package/dist/bundled/v2/{OrSelect-f37e751b.js → OrSelect-68aacb62.js} +2 -2
- package/dist/bundled/v2/{OrSortHeader-396e6a7c.js → OrSortHeader-9932d28f.js} +2 -2
- package/dist/bundled/v2/components/index.js +7 -7
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -28
- package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/bundled/v2/components/or-card-collection-v3/index.js +8 -5
- 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-confirm-v3/index.js +2 -2
- package/dist/bundled/v2/components/or-input-v3/index.js +1 -1
- package/dist/bundled/v2/components/or-search-v3/index.js +2 -2
- 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/index.js +8 -8
- package/dist/bundled/v3/OrButton-8ab33d9d.js +33 -0
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3993a015.js → OrCardCollection.vue_vue_type_script_lang-0e029303.js} +98 -48
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-18997376.js} +7 -37
- package/dist/bundled/v3/{OrInput-fa782fc1.js → OrInput-e97211bb.js} +1 -1
- package/dist/bundled/v3/OrMenu-f26e8e55.js +29 -0
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-147a1fb9.js} +2 -2
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c74a63e1.js → OrSelect.vue_vue_type_script_lang-58b92fb0.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-919b2021.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +10 -36
- package/dist/bundled/v3/components/index.js +10 -8
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -28
- package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/bundled/v3/components/or-card-collection-v3/index.js +12 -5
- package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -2
- package/dist/bundled/v3/components/or-search-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-select-v3/index.js +2 -2
- package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
- package/dist/bundled/v3/index.js +316 -301
- package/dist/esm/v2/{OrCardCollection-4f001551.js → OrCardCollection-54648673.js} +144 -52
- package/dist/esm/v2/{OrConfirm-b0b2e43c.js → OrConfirm-74e21c56.js} +1 -1
- package/dist/esm/v2/{OrInput-2f16a7ac.js → OrInput-b8a1627f.js} +4 -4
- package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-0c0d1773.js} +1 -1
- package/dist/esm/v2/{OrSelect-528c7480.js → OrSelect-0e6e7868.js} +2 -2
- package/dist/esm/v2/components/index.js +5 -5
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -28
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
- package/dist/esm/v2/components/or-card-collection-v3/index.js +8 -5
- package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +1 -1
- package/dist/esm/v2/components/or-search-v3/index.js +2 -2
- package/dist/esm/v2/components/or-select-v3/index.js +2 -2
- package/dist/esm/v2/index.js +5 -5
- package/dist/esm/v3/OrCardCollection-9d0036fa.js +259 -0
- package/dist/esm/v3/{OrConfirm-906427ef.js → OrConfirm-a3f312a6.js} +1 -1
- package/dist/esm/v3/{OrInput-41691fb3.js → OrInput-e2ac1182.js} +1 -1
- package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-01225d82.js} +1 -1
- package/dist/esm/v3/{OrSelect-d9c76482.js → OrSelect-2e00d4c8.js} +2 -2
- package/dist/esm/v3/components/index.js +5 -5
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -28
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
- package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -5
- package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +1 -1
- package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
- package/dist/esm/v3/components/or-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-search-v3/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/index.js +5 -5
- package/package.json +1 -1
- package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +115 -19
- package/src/components/or-card-collection-v3/OrCardCollection.vue +93 -67
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +39 -0
- package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +40 -0
- 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-input-v3/OrInput.vue +1 -1
- package/src/components/or-select-v3/OrSelect.vue +1 -1
- package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrSelectV3 } from '../../OrSelect-
|
|
1
|
+
export { _ as OrSelectV3 } from '../../OrSelect-0e6e7868.js';
|
|
2
2
|
export { a as SelectSize } from '../../OrInputBox-4d5a318d.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../dropdown-open-0d314aa4.js';
|
|
@@ -13,7 +13,7 @@ import '../../OrError-d267ee9a.js';
|
|
|
13
13
|
import '../../OrExpansionPanel-968ddc61.js';
|
|
14
14
|
import '../../OrIcon-5e394c62.js';
|
|
15
15
|
import '../../OrHint-42dc9ebb.js';
|
|
16
|
-
import '../../OrInput-
|
|
16
|
+
import '../../OrInput-b8a1627f.js';
|
|
17
17
|
import '../../OrIconButton-e17e4944.js';
|
|
18
18
|
import '../../OrTooltip-513bee30.js';
|
|
19
19
|
import '../../OrPopover-9bafbdb4.js';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -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, _ as OrButtonV3 } from './OrButton-357a5756.js';
|
|
9
9
|
export { _ as OrCard } from './OrCard-b7268256.js';
|
|
10
10
|
export { C as CARD_COLLECTION_LAYOUT, _ as OrCardCollection } from './OrCardCollection-f6b07557.js';
|
|
11
|
-
export { C as CardCollectionView, _ as OrCardCollectionV3 } from './OrCardCollection-
|
|
11
|
+
export { C as CardCollectionView, _ as OrCardCollectionV3 } from './OrCardCollection-54648673.js';
|
|
12
12
|
export { _ as OrCardV3 } from './OrCard-de799db0.js';
|
|
13
13
|
export { a as OrCarousel, _ as OrCarouselItem } from './OrCarouselItem-4e2cf3d8.js';
|
|
14
14
|
export { _ as OrCheckbox } from './OrCheckbox-915f1f0a.js';
|
|
@@ -19,7 +19,7 @@ export { _ as OrCode, O as OrCodeLanguages } from './OrCode-41dd5f9b.js';
|
|
|
19
19
|
export { _ as OrCollapse } from './OrCollapse-4d892ca3.js';
|
|
20
20
|
export { _ as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from './OrColorPicker-75abefdd.js';
|
|
21
21
|
export { _ as OrConfirm } from './OrConfirm-d7112dd3.js';
|
|
22
|
-
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-
|
|
22
|
+
export { C as ConfirmType, _ as OrConfirmV3 } from './OrConfirm-74e21c56.js';
|
|
23
23
|
export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from './OrDateTimePicker-349df9b2.js';
|
|
24
24
|
export { _ as OrError } from './OrError-081130bb.js';
|
|
25
25
|
export { _ as OrErrorTagV3 } from './OrErrorTag-782dd714.js';
|
|
@@ -37,7 +37,7 @@ export { I as InlineInputType, _ as OrInlineInputV3 } from './OrInlineInput-cfee
|
|
|
37
37
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, _ as OrInlineTextEdit } from './OrInlineTextEdit-b47cfc2d.js';
|
|
38
38
|
export { _ as OrInlineTextareaV3 } from './OrInlineTextarea-897b5377.js';
|
|
39
39
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, _ as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from './OrInputBox-4d5a318d.js';
|
|
40
|
-
export { I as InputType, _ as OrInputV3 } from './OrInput-
|
|
40
|
+
export { I as InputType, _ as OrInputV3 } from './OrInput-b8a1627f.js';
|
|
41
41
|
export { a as OrNumberInput, b as OrPassword, _ as OrTextarea } from './OrPassword-1fa97156.js';
|
|
42
42
|
export { _ as OrInput } from './OrSearch.vue_rollup-plugin-vue_script-197d77fc.js';
|
|
43
43
|
export { _ as OrSearch } from './OrSearch-0589d17d.js';
|
|
@@ -63,10 +63,10 @@ export { _ as OrProgressV3, P as ProgressColor, a as ProgressType } from './OrPr
|
|
|
63
63
|
export { _ as OrRadio } from './OrRadio-e4198532.js';
|
|
64
64
|
export { _ as OrRadioGroup } from './OrRadioGroup-d9d32cba.js';
|
|
65
65
|
export { _ as OrRadioV3 } from './OrRadio-848ce55d.js';
|
|
66
|
-
export { _ as OrSearchV3 } from './OrSearch-
|
|
66
|
+
export { _ as OrSearchV3 } from './OrSearch-0c0d1773.js';
|
|
67
67
|
export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-e8dce8f9.js';
|
|
68
68
|
export { _ as OrSelect } from './OrSelect-dae2b069.js';
|
|
69
|
-
export { _ as OrSelectV3 } from './OrSelect-
|
|
69
|
+
export { _ as OrSelectV3 } from './OrSelect-0e6e7868.js';
|
|
70
70
|
export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-7d6125bb.js';
|
|
71
71
|
export { O as OrSidebarPlacement, _ as OrSidebarV3 } from './OrSidebar-fabc7bc9.js';
|
|
72
72
|
export { _ as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from './OrSkeletonText-cc94bdc9.js';
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { defineComponent, computed, ref, watch } from 'vue-demi';
|
|
2
|
+
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
3
|
+
import '@vueuse/core';
|
|
4
|
+
import { s as script$2 } from './OrIconButton-1eebcafc.js';
|
|
5
|
+
import { s as script$4 } from './OrMenu-840038cd.js';
|
|
6
|
+
import './OrPopover-1075dd38.js';
|
|
7
|
+
import { s as script$5 } from './OrMenuItem-9da279f6.js';
|
|
8
|
+
import { s as script$6 } from './OrIcon-b195169c.js';
|
|
9
|
+
import { openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, resolveComponent, createElementVNode, createVNode, withCtx, createTextVNode, toDisplayString, createBlock, createCommentVNode, normalizeProps, guardReactiveProps } from 'vue';
|
|
10
|
+
import { s as script$3 } from './OrButton-f4b9ee51.js';
|
|
11
|
+
import { s as script$7 } from './OrSearch-01225d82.js';
|
|
12
|
+
import './OrInputBox-5247ab25.js';
|
|
13
|
+
|
|
14
|
+
var CardCollectionView;
|
|
15
|
+
(function (CardCollectionView) {
|
|
16
|
+
CardCollectionView["Grid"] = "grid";
|
|
17
|
+
CardCollectionView["List"] = "list";
|
|
18
|
+
})(CardCollectionView || (CardCollectionView = {}));
|
|
19
|
+
|
|
20
|
+
const CardCollectionRoot = [
|
|
21
|
+
// Layout
|
|
22
|
+
'layout-column',
|
|
23
|
+
// Spacing
|
|
24
|
+
'gap-md'];
|
|
25
|
+
const CardCollectionToolbar = [
|
|
26
|
+
// Layout
|
|
27
|
+
'layout-row justify-between',
|
|
28
|
+
// Typography
|
|
29
|
+
'typography-body-2-regular',
|
|
30
|
+
// Theme
|
|
31
|
+
'theme-foreground-default', 'dark:theme-foreground-default-dark'];
|
|
32
|
+
const CardCollectionToolbarPanel = [
|
|
33
|
+
// Layout
|
|
34
|
+
'layout-row',
|
|
35
|
+
// Spacing
|
|
36
|
+
'gap-lg+'];
|
|
37
|
+
const CardCollectionContent = [
|
|
38
|
+
// Layout
|
|
39
|
+
'grid',
|
|
40
|
+
// Spacing
|
|
41
|
+
'gap-sm md:gap-md'];
|
|
42
|
+
const CardCollectionContentViews = {
|
|
43
|
+
'grid': [
|
|
44
|
+
// Layout
|
|
45
|
+
'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
|
|
46
|
+
'list': []
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var script$1 = defineComponent({
|
|
50
|
+
name: 'OrCardCollectionView',
|
|
51
|
+
props: {
|
|
52
|
+
items: {
|
|
53
|
+
type: Array,
|
|
54
|
+
default: []
|
|
55
|
+
},
|
|
56
|
+
mode: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
setup(props) {
|
|
62
|
+
const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
|
|
63
|
+
return {
|
|
64
|
+
contentStyles
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
70
|
+
return openBlock(), createElementBlock("div", {
|
|
71
|
+
class: normalizeClass(_ctx.contentStyles)
|
|
72
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index) => {
|
|
73
|
+
return renderSlot(_ctx.$slots, "item", mergeProps({
|
|
74
|
+
key: item.key || index
|
|
75
|
+
}, {
|
|
76
|
+
item,
|
|
77
|
+
mode: _ctx.mode
|
|
78
|
+
}));
|
|
79
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
script$1.render = render$1;
|
|
83
|
+
script$1.__file = "src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue";
|
|
84
|
+
|
|
85
|
+
var script = defineComponent({
|
|
86
|
+
name: 'OrCardCollection',
|
|
87
|
+
components: {
|
|
88
|
+
OrCardCollectionView: script$1,
|
|
89
|
+
OrIconButton: script$2,
|
|
90
|
+
OrButton: script$3,
|
|
91
|
+
OrMenu: script$4,
|
|
92
|
+
OrMenuItem: script$5,
|
|
93
|
+
OrIcon: script$6,
|
|
94
|
+
OrSearch: script$7
|
|
95
|
+
},
|
|
96
|
+
inheritAttrs: false,
|
|
97
|
+
props: {
|
|
98
|
+
items: {
|
|
99
|
+
type: Array,
|
|
100
|
+
default: []
|
|
101
|
+
},
|
|
102
|
+
view: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: CardCollectionView.Grid
|
|
105
|
+
},
|
|
106
|
+
sort: {
|
|
107
|
+
type: String,
|
|
108
|
+
required: true
|
|
109
|
+
},
|
|
110
|
+
sortOptions: {
|
|
111
|
+
type: Array,
|
|
112
|
+
default: () => []
|
|
113
|
+
},
|
|
114
|
+
search: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: undefined
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
emits: ['viewChange', 'sortChange', 'searchChange'],
|
|
120
|
+
expose: ['root'],
|
|
121
|
+
setup(props, context) {
|
|
122
|
+
// Refs
|
|
123
|
+
const root = ref();
|
|
124
|
+
const sortMenu = ref();
|
|
125
|
+
const sortButton = ref();
|
|
126
|
+
// Styles
|
|
127
|
+
const classAttribute = useClassAttribute();
|
|
128
|
+
const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
|
|
129
|
+
const toolbarStyles = computed(() => [...CardCollectionToolbar]);
|
|
130
|
+
const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
|
|
131
|
+
// State
|
|
132
|
+
const proxyView = ref(props.view);
|
|
133
|
+
const proxySort = ref(props.sort);
|
|
134
|
+
const proxySearch = ref(props.search);
|
|
135
|
+
// Methods
|
|
136
|
+
function switchToGridView() {
|
|
137
|
+
proxyView.value = CardCollectionView.Grid;
|
|
138
|
+
}
|
|
139
|
+
function switchToListView() {
|
|
140
|
+
proxyView.value = CardCollectionView.List;
|
|
141
|
+
}
|
|
142
|
+
function handleSort(sort) {
|
|
143
|
+
proxySort.value = sort;
|
|
144
|
+
}
|
|
145
|
+
function handleSearch(search) {
|
|
146
|
+
proxySearch.value = search;
|
|
147
|
+
}
|
|
148
|
+
// Effects
|
|
149
|
+
watch(() => props.view, value => {
|
|
150
|
+
proxyView.value = value;
|
|
151
|
+
});
|
|
152
|
+
watch(proxyView, value => {
|
|
153
|
+
context.emit('viewChange', value);
|
|
154
|
+
});
|
|
155
|
+
watch(() => props.sort, value => {
|
|
156
|
+
proxySort.value = value;
|
|
157
|
+
});
|
|
158
|
+
watch(proxySort, value => {
|
|
159
|
+
context.emit('sortChange', value);
|
|
160
|
+
});
|
|
161
|
+
watch(() => props.search, value => {
|
|
162
|
+
proxySearch.value = value;
|
|
163
|
+
});
|
|
164
|
+
watch(proxySearch, value => {
|
|
165
|
+
context.emit('searchChange', value);
|
|
166
|
+
});
|
|
167
|
+
return {
|
|
168
|
+
root,
|
|
169
|
+
sortMenu,
|
|
170
|
+
sortButton,
|
|
171
|
+
rootStyles,
|
|
172
|
+
toolbarStyles,
|
|
173
|
+
toolbarPanelStyles,
|
|
174
|
+
proxyView,
|
|
175
|
+
proxySort,
|
|
176
|
+
proxySearch,
|
|
177
|
+
switchToGridView,
|
|
178
|
+
switchToListView,
|
|
179
|
+
handleSort,
|
|
180
|
+
handleSearch
|
|
181
|
+
};
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
const _hoisted_1 = {
|
|
186
|
+
class: "layout-row gap-sm"
|
|
187
|
+
};
|
|
188
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
189
|
+
const _component_OrIcon = resolveComponent("OrIcon");
|
|
190
|
+
const _component_OrButton = resolveComponent("OrButton");
|
|
191
|
+
const _component_OrMenuItem = resolveComponent("OrMenuItem");
|
|
192
|
+
const _component_OrMenu = resolveComponent("OrMenu");
|
|
193
|
+
const _component_OrSearch = resolveComponent("OrSearch");
|
|
194
|
+
const _component_OrIconButton = resolveComponent("OrIconButton");
|
|
195
|
+
const _component_OrCardCollectionView = resolveComponent("OrCardCollectionView");
|
|
196
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
197
|
+
ref: "root"
|
|
198
|
+
}, _ctx.$attrs, {
|
|
199
|
+
class: _ctx.rootStyles
|
|
200
|
+
}), [createElementVNode("div", {
|
|
201
|
+
class: normalizeClass(_ctx.toolbarStyles)
|
|
202
|
+
}, [createElementVNode("div", {
|
|
203
|
+
class: normalizeClass(_ctx.toolbarPanelStyles)
|
|
204
|
+
}, [_ctx.sortOptions.length ? (openBlock(), createElementBlock(Fragment, {
|
|
205
|
+
key: 0
|
|
206
|
+
}, [createVNode(_component_OrButton, {
|
|
207
|
+
ref: "sortButton",
|
|
208
|
+
variant: "link",
|
|
209
|
+
color: "inherit",
|
|
210
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.sortMenu.toggle())
|
|
211
|
+
}, {
|
|
212
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.proxySort) + " ", 1 /* TEXT */), _ctx.sortMenu ? (openBlock(), createBlock(_component_OrIcon, {
|
|
213
|
+
key: 0,
|
|
214
|
+
icon: _ctx.sortMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
215
|
+
}, null, 8 /* PROPS */, ["icon"])) : createCommentVNode("v-if", true)]),
|
|
216
|
+
_: 1 /* STABLE */
|
|
217
|
+
}, 512 /* NEED_PATCH */), createVNode(_component_OrMenu, {
|
|
218
|
+
ref: "sortMenu",
|
|
219
|
+
trigger: _ctx.sortButton && _ctx.sortButton.root
|
|
220
|
+
}, {
|
|
221
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortOptions, sortItem => {
|
|
222
|
+
return openBlock(), createBlock(_component_OrMenuItem, {
|
|
223
|
+
key: sortItem,
|
|
224
|
+
onClick: $event => _ctx.handleSort(sortItem)
|
|
225
|
+
}, {
|
|
226
|
+
default: withCtx(() => [createTextVNode(toDisplayString(sortItem), 1 /* TEXT */)]),
|
|
227
|
+
|
|
228
|
+
_: 2 /* DYNAMIC */
|
|
229
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
|
|
230
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
231
|
+
|
|
232
|
+
_: 1 /* STABLE */
|
|
233
|
+
}, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 2 /* CLASS */), createElementVNode("div", {
|
|
234
|
+
class: normalizeClass(_ctx.toolbarPanelStyles)
|
|
235
|
+
}, [createVNode(_component_OrSearch, {
|
|
236
|
+
class: "md:w-[350px]",
|
|
237
|
+
size: "s",
|
|
238
|
+
onSearch: _ctx.handleSearch
|
|
239
|
+
}, null, 8 /* PROPS */, ["onSearch"]), createElementVNode("div", _hoisted_1, [createVNode(_component_OrIconButton, {
|
|
240
|
+
icon: 'grid_view',
|
|
241
|
+
onClick: _cache[1] || (_cache[1] = $event => _ctx.switchToGridView())
|
|
242
|
+
}), createVNode(_component_OrIconButton, {
|
|
243
|
+
icon: 'view_agenda',
|
|
244
|
+
onClick: _cache[2] || (_cache[2] = $event => _ctx.switchToListView())
|
|
245
|
+
}), renderSlot(_ctx.$slots, "addon")])], 2 /* CLASS */)], 2 /* CLASS */), renderSlot(_ctx.$slots, _ctx.proxyView, normalizeProps(guardReactiveProps({
|
|
246
|
+
items: _ctx.items
|
|
247
|
+
})), () => [createVNode(_component_OrCardCollectionView, {
|
|
248
|
+
items: _ctx.items,
|
|
249
|
+
mode: _ctx.proxyView
|
|
250
|
+
}, {
|
|
251
|
+
item: withCtx(props => [renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(props)))]),
|
|
252
|
+
_: 3 /* FORWARDED */
|
|
253
|
+
}, 8 /* PROPS */, ["items", "mode"])])], 16 /* FULL_PROPS */);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
script.render = render;
|
|
257
|
+
script.__file = "src/components/or-card-collection-v3/OrCardCollection.vue";
|
|
258
|
+
|
|
259
|
+
export { CardCollectionView as C, script as s };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { s as script$2, a as ButtonColor } from './OrButton-f4b9ee51.js';
|
|
3
3
|
import { s as script$1 } from './OrOverlay-738a44d5.js';
|
|
4
|
-
import { s as script$3 } from './OrInput-
|
|
4
|
+
import { s as script$3 } from './OrInput-e2ac1182.js';
|
|
5
5
|
import { useMagicKeys, whenever } from '@vueuse/core';
|
|
6
6
|
import { logicAnd } from '@vueuse/math';
|
|
7
7
|
import { resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, normalizeClass, renderSlot, createTextVNode, toDisplayString, createElementBlock, createVNode, createCommentVNode } from 'vue';
|
|
@@ -145,7 +145,7 @@ var script = defineComponent({
|
|
|
145
145
|
|
|
146
146
|
const _hoisted_1 = ["id", "type", "placeholder", "required", "disabled"];
|
|
147
147
|
const _hoisted_2 = {
|
|
148
|
-
class: /*#__PURE__*/normalizeClass(['layout-row'])
|
|
148
|
+
class: /*#__PURE__*/normalizeClass(['layout-row', 'm-[-4px] md:m-[-2px]'])
|
|
149
149
|
};
|
|
150
150
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
151
151
|
const _component_OrLabel = resolveComponent("OrLabel");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
2
|
import { debouncedWatch } from '@vueuse/core';
|
|
3
3
|
import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
|
|
4
|
-
import { s as script$1 } from './OrInput-
|
|
4
|
+
import { s as script$1 } from './OrInput-e2ac1182.js';
|
|
5
5
|
import { a as InputBoxSize } from './OrInputBox-5247ab25.js';
|
|
6
6
|
import { resolveComponent, openBlock, createBlock, mergeProps } from 'vue';
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ import { s as script$3 } from './OrExpansionPanel-311e64cf.js';
|
|
|
9
9
|
import { s as script$4 } from './OrHint-74bb732d.js';
|
|
10
10
|
import { s as script$5 } from './OrIcon-b195169c.js';
|
|
11
11
|
import { s as script$7, a as InputBoxSize } from './OrInputBox-5247ab25.js';
|
|
12
|
-
import { s as script$6 } from './OrInput-
|
|
12
|
+
import { s as script$6 } from './OrInput-e2ac1182.js';
|
|
13
13
|
import { s as script$8 } from './OrLabel-bdaec602.js';
|
|
14
14
|
import { s as script$9 } from './OrMenuItem-9da279f6.js';
|
|
15
15
|
import { s as script$a } from './OrPopover-1075dd38.js';
|
|
@@ -288,7 +288,7 @@ var script = defineComponent({
|
|
|
288
288
|
|
|
289
289
|
const _hoisted_1 = ["id", "tabindex", "disabled"];
|
|
290
290
|
const _hoisted_2 = {
|
|
291
|
-
class: /*#__PURE__*/normalizeClass(['layout-row'])
|
|
291
|
+
class: /*#__PURE__*/normalizeClass(['layout-row', 'm-[-4px] md:m-[-2px]'])
|
|
292
292
|
};
|
|
293
293
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
294
294
|
const _component_OrLabel = resolveComponent("OrLabel");
|
|
@@ -6,7 +6,7 @@ export { b as BUTTON_COLOR, d as BUTTON_LOADER_TYPE, c as BUTTON_SIZE, B as BUTT
|
|
|
6
6
|
export { a as ButtonColor, b as ButtonType, B as ButtonVariant, s as OrButtonV3 } from '../OrButton-f4b9ee51.js';
|
|
7
7
|
export { s as OrCard } from '../OrCard-e3a5aea4.js';
|
|
8
8
|
export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection-a5e326ef.js';
|
|
9
|
-
export { C as CardCollectionView, s as OrCardCollectionV3 } from '../OrCardCollection-
|
|
9
|
+
export { C as CardCollectionView, s as OrCardCollectionV3 } from '../OrCardCollection-9d0036fa.js';
|
|
10
10
|
export { s as OrCardV3 } from '../OrCard-fd92f7c8.js';
|
|
11
11
|
export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem-636d99a1.js';
|
|
12
12
|
export { s as OrCheckbox } from '../OrCheckbox-ed4a19cf.js';
|
|
@@ -16,7 +16,7 @@ export { s as OrCode, O as OrCodeLanguages } from '../OrCode-ee19a5e6.js';
|
|
|
16
16
|
export { s as OrCollapse } from '../OrCollapse-445141ab.js';
|
|
17
17
|
export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker-189cb097.js';
|
|
18
18
|
export { s as OrConfirm } from '../OrConfirm-f39bd784.js';
|
|
19
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-
|
|
19
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm-a3f312a6.js';
|
|
20
20
|
export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-f2e08564.js';
|
|
21
21
|
export { s as OrError } from '../OrError-f90296db.js';
|
|
22
22
|
export { s as OrErrorTagV3 } from '../OrErrorTag-98252eef.js';
|
|
@@ -34,7 +34,7 @@ export { I as InlineInputType, s as OrInlineInputV3 } from '../OrInlineInput-310
|
|
|
34
34
|
export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, s as OrInlineTextEdit } from '../OrInlineTextEdit-1aa477b5.js';
|
|
35
35
|
export { s as OrInlineTextareaV3 } from '../OrInlineTextarea-b28c3d8c.js';
|
|
36
36
|
export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, s as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from '../OrInputBox-5247ab25.js';
|
|
37
|
-
export { I as InputType, s as OrInputV3 } from '../OrInput-
|
|
37
|
+
export { I as InputType, s as OrInputV3 } from '../OrInput-e2ac1182.js';
|
|
38
38
|
export { a as OrInput, b as OrNumberInput, c as OrPassword, d as OrSearch, s as OrTextarea } from '../OrSearch-7cb2c91c.js';
|
|
39
39
|
export { s as OrLabel } from '../OrLabel-876f8729.js';
|
|
40
40
|
export { L as LabelVariant, s as OrLabelV3 } from '../OrLabel-bdaec602.js';
|
|
@@ -58,10 +58,10 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrP
|
|
|
58
58
|
export { s as OrRadio } from '../OrRadio-c3ab11f2.js';
|
|
59
59
|
export { s as OrRadioGroup } from '../OrRadioGroup-00785e41.js';
|
|
60
60
|
export { s as OrRadioV3 } from '../OrRadio-54b6d0de.js';
|
|
61
|
-
export { s as OrSearchV3 } from '../OrSearch-
|
|
61
|
+
export { s as OrSearchV3 } from '../OrSearch-01225d82.js';
|
|
62
62
|
export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-171cad78.js';
|
|
63
63
|
export { s as OrSelect } from '../OrSelect-0821b907.js';
|
|
64
|
-
export { s as OrSelectV3 } from '../OrSelect-
|
|
64
|
+
export { s as OrSelectV3 } from '../OrSelect-2e00d4c8.js';
|
|
65
65
|
export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar-375c85a3.js';
|
|
66
66
|
export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar-a62972f5.js';
|
|
67
67
|
export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText-2b1610ce.js';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryFn } from '@storybook/vue3';
|
|
2
|
+
import OrCardCollection from './OrCardCollection.vue';
|
|
2
3
|
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, {
|
|
3
4
|
[x: string]: ((...args: any[]) => any) | null;
|
|
4
5
|
} | string[], {} & {}, {
|
|
@@ -15,3 +16,5 @@ export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import(
|
|
|
15
16
|
} | string[], {} & {}, {
|
|
16
17
|
[x: number]: string;
|
|
17
18
|
} | {}, true>)>;
|
|
19
|
+
export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
|
|
20
|
+
export declare const WithLink: StoryFn<typeof OrCardCollection>;
|
|
@@ -1,21 +1,28 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import { SortHeaderModel } from '../or-sort-header-v3';
|
|
3
2
|
import { CardCollectionView } from './props';
|
|
4
|
-
import { CardCollectionItem
|
|
3
|
+
import { CardCollectionItem } from './types';
|
|
5
4
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
6
5
|
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>;
|
|
7
16
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
8
17
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
9
18
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
10
|
-
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
11
19
|
proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
|
|
12
|
-
proxySort: import("@vue/composition-api").Ref<
|
|
13
|
-
column: string;
|
|
14
|
-
direction: "asc" | "desc";
|
|
15
|
-
}>;
|
|
20
|
+
proxySort: import("@vue/composition-api").Ref<string>;
|
|
16
21
|
proxySearch: import("@vue/composition-api").Ref<string>;
|
|
17
22
|
switchToGridView: () => void;
|
|
18
23
|
switchToListView: () => void;
|
|
24
|
+
handleSort: (sort: string) => void;
|
|
25
|
+
handleSearch: (search: string) => void;
|
|
19
26
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
20
27
|
items: {
|
|
21
28
|
type: PropType<CardCollectionItem[]>;
|
|
@@ -26,12 +33,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
26
33
|
default: CardCollectionView;
|
|
27
34
|
};
|
|
28
35
|
sort: {
|
|
29
|
-
type:
|
|
30
|
-
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
required: true;
|
|
31
38
|
};
|
|
32
|
-
|
|
33
|
-
type: PropType<
|
|
34
|
-
default:
|
|
39
|
+
sortOptions: {
|
|
40
|
+
type: PropType<string[]>;
|
|
41
|
+
default: () => never[];
|
|
35
42
|
};
|
|
36
43
|
search: {
|
|
37
44
|
type: StringConstructor;
|
|
@@ -47,12 +54,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
47
54
|
default: CardCollectionView;
|
|
48
55
|
};
|
|
49
56
|
sort: {
|
|
50
|
-
type:
|
|
51
|
-
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
required: true;
|
|
52
59
|
};
|
|
53
|
-
|
|
54
|
-
type: PropType<
|
|
55
|
-
default:
|
|
60
|
+
sortOptions: {
|
|
61
|
+
type: PropType<string[]>;
|
|
62
|
+
default: () => never[];
|
|
56
63
|
};
|
|
57
64
|
search: {
|
|
58
65
|
type: StringConstructor;
|
|
@@ -60,39 +67,46 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
60
67
|
};
|
|
61
68
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
62
69
|
search: string;
|
|
63
|
-
sort:
|
|
70
|
+
sort: string;
|
|
64
71
|
items: CardCollectionItem[];
|
|
65
72
|
view: CardCollectionView;
|
|
66
|
-
|
|
73
|
+
sortOptions: string[];
|
|
67
74
|
} & {} & {
|
|
68
75
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
69
76
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
70
77
|
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>;
|
|
71
88
|
rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
|
|
72
89
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
73
90
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
74
|
-
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
75
91
|
proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
|
|
76
|
-
proxySort: import("@vue/composition-api").Ref<
|
|
77
|
-
column: string;
|
|
78
|
-
direction: "asc" | "desc";
|
|
79
|
-
}>;
|
|
92
|
+
proxySort: import("@vue/composition-api").Ref<string>;
|
|
80
93
|
proxySearch: import("@vue/composition-api").Ref<string>;
|
|
81
94
|
switchToGridView: () => void;
|
|
82
95
|
switchToListView: () => void;
|
|
96
|
+
handleSort: (sort: string) => void;
|
|
97
|
+
handleSearch: (search: string) => void;
|
|
83
98
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
84
99
|
search: string;
|
|
85
|
-
sort:
|
|
100
|
+
sort: string;
|
|
86
101
|
items: CardCollectionItem[];
|
|
87
102
|
view: CardCollectionView;
|
|
88
|
-
|
|
103
|
+
sortOptions: string[];
|
|
89
104
|
} & {} & {
|
|
90
105
|
[x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
|
|
91
106
|
}, {
|
|
92
107
|
search: string;
|
|
93
|
-
sort: SortHeaderModel;
|
|
94
108
|
items: CardCollectionItem[];
|
|
95
109
|
view: CardCollectionView;
|
|
96
|
-
|
|
110
|
+
sortOptions: string[];
|
|
97
111
|
}, true>);
|
|
98
112
|
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { CardCollectionItem } from './types';
|
|
3
|
+
import { CardCollectionView } from './props';
|
|
4
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
5
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
6
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
7
|
+
items: {
|
|
8
|
+
type: PropType<CardCollectionItem[]>;
|
|
9
|
+
default: CardCollectionItem[];
|
|
10
|
+
};
|
|
11
|
+
mode: {
|
|
12
|
+
type: PropType<CardCollectionView>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
16
|
+
items: {
|
|
17
|
+
type: PropType<CardCollectionItem[]>;
|
|
18
|
+
default: CardCollectionItem[];
|
|
19
|
+
};
|
|
20
|
+
mode: {
|
|
21
|
+
type: PropType<CardCollectionView>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
25
|
+
items: CardCollectionItem[];
|
|
26
|
+
mode: CardCollectionView;
|
|
27
|
+
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
28
|
+
contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
29
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, {}, {
|
|
30
|
+
items: CardCollectionItem[];
|
|
31
|
+
mode: CardCollectionView;
|
|
32
|
+
} & {}, {
|
|
33
|
+
items: CardCollectionItem[];
|
|
34
|
+
}, true>);
|
|
35
|
+
export default _default;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
export { C as CardCollectionView, s as OrCardCollectionV3 } from '../../OrCardCollection-
|
|
1
|
+
export { C as CardCollectionView, s as OrCardCollectionV3 } from '../../OrCardCollection-9d0036fa.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../useClassAttribute-47fdb016.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
|
-
import '../../OrCard-fd92f7c8.js';
|
|
6
|
-
import 'vue';
|
|
7
5
|
import '../../OrIconButton-1eebcafc.js';
|
|
8
6
|
import '../../OrIcon-b195169c.js';
|
|
7
|
+
import 'vue';
|
|
9
8
|
import '../../OrTooltip-50d27b4f.js';
|
|
10
9
|
import '../../OrPopover-1075dd38.js';
|
|
11
10
|
import '@floating-ui/dom';
|
|
@@ -14,10 +13,14 @@ import '../../useResponsive-a02e95b7.js';
|
|
|
14
13
|
import '../../OrBottomSheet-62817aec.js';
|
|
15
14
|
import '../../OrOverlay-738a44d5.js';
|
|
16
15
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
17
|
-
import '../../
|
|
16
|
+
import '../../OrMenu-840038cd.js';
|
|
17
|
+
import '../../OrMenuItem-9da279f6.js';
|
|
18
|
+
import '../../OrButton-f4b9ee51.js';
|
|
19
|
+
import '../../OrLoader-b3cf4231.js';
|
|
20
|
+
import '../../OrSearch-01225d82.js';
|
|
21
|
+
import '../../OrInput-e2ac1182.js';
|
|
18
22
|
import '../../OrError-ec8c709d.js';
|
|
19
23
|
import '../../OrHint-74bb732d.js';
|
|
20
24
|
import '../../OrInputBox-5247ab25.js';
|
|
21
25
|
import '../../OrLabel-bdaec602.js';
|
|
22
26
|
import '../../style-inject.es-4c6f2515.js';
|
|
23
|
-
import '../../OrSortHeader-fe1a9cf8.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-
|
|
1
|
+
export { C as ConfirmType, s as OrConfirmV3 } from '../../OrConfirm-a3f312a6.js';
|
|
2
2
|
import 'vue-demi';
|
|
3
3
|
import '../../OrButton-f4b9ee51.js';
|
|
4
4
|
import '../../useClassAttribute-47fdb016.js';
|
|
@@ -8,7 +8,7 @@ import 'vue';
|
|
|
8
8
|
import '../../OrOverlay-738a44d5.js';
|
|
9
9
|
import '../../useElevation-31bfe1f6.js';
|
|
10
10
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
11
|
-
import '../../OrInput-
|
|
11
|
+
import '../../OrInput-e2ac1182.js';
|
|
12
12
|
import '../../OrError-ec8c709d.js';
|
|
13
13
|
import '../../OrHint-74bb732d.js';
|
|
14
14
|
import '../../OrIconButton-1eebcafc.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { I as InputType, s as OrInputV3 } from '../../OrInput-
|
|
1
|
+
export { I as InputType, s as OrInputV3 } from '../../OrInput-e2ac1182.js';
|
|
2
2
|
export { a as InputSize } from '../../OrInputBox-5247ab25.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useClassAttribute-47fdb016.js';
|