@onereach/ui-components 4.12.0 → 4.12.1-beta.2983.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +26 -62
- package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +2 -25
- package/dist/bundled/v2/components/OrCardCollectionV3/index.js +6 -4
- package/dist/bundled/v2/components/OrCardCollectionV3/styles.js +6 -5
- package/dist/bundled/v2/components/OrCardCollectionV3/types.d.ts +0 -4
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +1 -1
- package/dist/bundled/v2/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +1 -1
- package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/v2/components/OrMenuItemV3/styles.js +3 -1
- package/dist/bundled/v2/components/OrSortingV3/OrSortingV3.js +160 -0
- package/dist/bundled/v2/components/OrSortingV3/OrSortingV3.vue.d.ts +69 -0
- package/dist/bundled/v2/components/OrSortingV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrSortingV3/index.js +34 -0
- package/dist/bundled/v2/components/OrSortingV3/styles.d.ts +2 -0
- package/dist/bundled/v2/components/OrSortingV3/styles.js +6 -0
- package/dist/bundled/v2/components/OrSortingV3/types.d.ts +4 -0
- package/dist/bundled/v2/components/index.d.ts +1 -1
- package/dist/bundled/v2/components/index.js +3 -3
- package/dist/bundled/v2/index.js +4 -4
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-9d20dd3c.js → OrCardCollection.vue_vue_type_script_lang-9597e400.js} +5 -30
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-d94c33ca.js → OrDatePicker.vue_vue_type_script_lang-04af0e24.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-46b1735a.js → OrDateTimePicker.vue_vue_type_script_lang-ec06a304.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-57340c1e.js → OrDateTimePickerMonthSelect-1e284be4.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-32a27808.js → OrPagination.vue_vue_type_script_lang-f4c61af9.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-69c5cd67.js → OrSelect.vue_vue_type_script_lang-fe9a7e7c.js} +1 -1
- package/dist/bundled/v3/OrSortingV3.vue_vue_type_script_lang-1bb22099.js +68 -0
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-e9ea6c28.js → OrTabs.vue_vue_type_script_lang-366b95d9.js} +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +26 -51
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +2 -5
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +10 -7
- package/dist/bundled/v3/components/OrCardCollectionV3/styles.js +6 -5
- package/dist/bundled/v3/components/OrCardCollectionV3/types.d.ts +0 -4
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +4 -4
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +3 -3
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +4 -4
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +3 -3
- package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.js +2 -2
- package/dist/bundled/v3/components/OrMenuItemV3/index.js +1 -1
- package/dist/bundled/v3/components/OrMenuItemV3/styles.js +3 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +3 -3
- package/dist/bundled/v3/components/OrPaginationV3/index.js +2 -2
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +3 -3
- package/dist/bundled/v3/components/OrSelectV3/index.js +2 -2
- package/dist/bundled/v3/components/OrSortingV3/OrSortingV3.js +88 -0
- package/dist/bundled/v3/components/OrSortingV3/OrSortingV3.vue.d.ts +36 -0
- package/dist/bundled/v3/components/OrSortingV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrSortingV3/index.js +42 -0
- package/dist/bundled/v3/components/OrSortingV3/styles.d.ts +2 -0
- package/dist/bundled/v3/components/OrSortingV3/styles.js +6 -0
- package/dist/bundled/v3/components/OrSortingV3/types.d.ts +4 -0
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +3 -3
- package/dist/bundled/v3/components/OrTabsV3/index.js +2 -2
- package/dist/bundled/v3/components/index.d.ts +1 -1
- package/dist/bundled/v3/components/index.js +12 -11
- package/dist/bundled/v3/index.js +15 -15
- package/dist/esm/v2/{OrCardCollection-d29b850c.js → OrCardCollection-4e2fba5e.js} +24 -65
- package/dist/esm/v2/{OrDatePicker-365c393c.js → OrDatePicker-078c3498.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker-665b1585.js → OrDateTimePicker-22febde1.js} +1 -1
- package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-a59d2087.js → OrDateTimePicker.vue_rollup-plugin-vue_script-f843a18d.js} +1 -1
- package/dist/esm/v2/{OrDateTimePickerPopoverHeader-3a99a29d.js → OrDateTimePickerPopoverHeader-f4dabe74.js} +1 -1
- package/dist/esm/v2/{OrMenuItem-b5bb6e11.js → OrMenuItem-8af38fc8.js} +3 -1
- package/dist/esm/v2/{OrPagination-b9a941dd.js → OrPagination-05a1c01b.js} +1 -1
- package/dist/esm/v2/{OrSelect-9893819d.js → OrSelect-925d2b50.js} +1 -1
- package/dist/esm/v2/OrSortingV3-6b5f1b51.js +139 -0
- package/dist/esm/v2/{OrTabs-80db5b36.js → OrTabs-e5b6986c.js} +1 -1
- package/dist/esm/v2/{OrTimePicker-13232692.js → OrTimePicker-3860cda8.js} +2 -2
- package/dist/esm/v2/components/index.d.ts +1 -1
- package/dist/esm/v2/components/index.js +11 -11
- package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +2 -25
- package/dist/esm/v2/components/or-card-collection-v3/index.js +8 -7
- package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +0 -4
- package/dist/esm/v2/components/or-date-picker-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +4 -4
- package/dist/esm/v2/components/or-menu-item-v3/index.js +1 -1
- package/dist/esm/v2/components/or-pagination-v3/index.js +2 -2
- package/dist/esm/v2/components/or-select-v3/index.js +2 -2
- package/dist/esm/v2/components/or-sorting-v3/OrSortingV3.vue.d.ts +69 -0
- package/dist/esm/v2/components/or-sorting-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-sorting-v3/index.js +20 -0
- package/dist/esm/v2/components/or-sorting-v3/styles.d.ts +2 -0
- package/dist/esm/v2/components/or-sorting-v3/types.d.ts +4 -0
- package/dist/esm/v2/components/or-tabs-v3/index.js +2 -2
- package/dist/esm/v2/components/or-time-picker-v3/index.js +4 -4
- package/dist/esm/v2/index.js +11 -11
- package/dist/esm/v3/{OrCardCollection-305a9a2d.js → OrCardCollection-46544ba3.js} +25 -75
- package/dist/esm/v3/{OrDatePicker-aac79bce.js → OrDatePicker-4b5a93ad.js} +1 -1
- package/dist/esm/v3/{OrDateTimePicker-5a1af2fe.js → OrDateTimePicker-091fe6ac.js} +1 -1
- package/dist/esm/v3/{OrDateTimePickerPopoverHeader-a478e254.js → OrDateTimePickerPopoverHeader-be89989e.js} +1 -1
- package/dist/esm/v3/{OrMenuItem-331cb96b.js → OrMenuItem-e2344d0e.js} +3 -1
- package/dist/esm/v3/{OrPagination-1018acbc.js → OrPagination-a3904a4d.js} +1 -1
- package/dist/esm/v3/{OrSelect-a310d8be.js → OrSelect-0ef072dc.js} +1 -1
- package/dist/esm/v3/OrSortingV3-1ac9a2d5.js +115 -0
- package/dist/esm/v3/{OrTabs-328f5a69.js → OrTabs-3457d575.js} +1 -1
- package/dist/esm/v3/{OrTimePicker-aaf59858.js → OrTimePicker-c4b02958.js} +2 -2
- package/dist/esm/v3/components/index.d.ts +1 -1
- package/dist/esm/v3/components/index.js +10 -10
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +2 -5
- package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -7
- package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +0 -4
- package/dist/esm/v3/components/or-date-picker-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +3 -3
- package/dist/esm/v3/components/or-menu-item-v3/index.js +1 -1
- package/dist/esm/v3/components/or-pagination-v3/index.js +2 -2
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/components/or-sorting-v3/OrSortingV3.vue.d.ts +36 -0
- package/dist/esm/v3/components/or-sorting-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-sorting-v3/index.js +19 -0
- package/dist/esm/v3/components/or-sorting-v3/styles.d.ts +2 -0
- package/dist/esm/v3/components/or-sorting-v3/types.d.ts +4 -0
- package/dist/esm/v3/components/or-tabs-v3/index.js +2 -2
- package/dist/esm/v3/components/or-time-picker-v3/index.js +4 -4
- package/dist/esm/v3/index.js +10 -10
- package/package.json +2 -3
- package/src/components/index.ts +1 -1
- package/src/components/or-card-collection-v3/OrCardCollection.vue +17 -58
- package/src/components/or-card-collection-v3/styles.ts +6 -8
- package/src/components/or-card-collection-v3/types.ts +0 -5
- package/src/components/or-menu-item-v3/styles.ts +3 -0
- package/src/components/or-sorting-v3/OrSortingV3.vue +116 -0
- package/src/components/or-sorting-v3/index.ts +2 -0
- package/src/components/or-sorting-v3/styles.ts +5 -0
- package/src/components/or-sorting-v3/types.ts +4 -0
- package/dist/bundled/v2/components/OrSortHeaderV3/OrSortHeader.js +0 -109
- package/dist/bundled/v2/components/OrSortHeaderV3/OrSortHeader.vue.d.ts +0 -46
- package/dist/bundled/v2/components/OrSortHeaderV3/index.d.ts +0 -2
- package/dist/bundled/v2/components/OrSortHeaderV3/index.js +0 -8
- package/dist/bundled/v2/components/OrSortHeaderV3/styles.d.ts +0 -1
- package/dist/bundled/v2/components/OrSortHeaderV3/styles.js +0 -15
- package/dist/bundled/v2/components/OrSortHeaderV3/types.d.ts +0 -4
- package/dist/bundled/v3/OrSortHeader.vue_vue_type_script_lang-a444d88b.js +0 -57
- package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.js +0 -30
- package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.vue.d.ts +0 -34
- package/dist/bundled/v3/components/OrSortHeaderV3/index.d.ts +0 -2
- package/dist/bundled/v3/components/OrSortHeaderV3/index.js +0 -9
- package/dist/bundled/v3/components/OrSortHeaderV3/styles.d.ts +0 -1
- package/dist/bundled/v3/components/OrSortHeaderV3/styles.js +0 -15
- package/dist/bundled/v3/components/OrSortHeaderV3/types.d.ts +0 -4
- package/dist/esm/v2/OrSortHeader-46a92f09.js +0 -123
- package/dist/esm/v2/components/or-sort-header-v3/OrSortHeader.vue.d.ts +0 -46
- package/dist/esm/v2/components/or-sort-header-v3/index.d.ts +0 -2
- package/dist/esm/v2/components/or-sort-header-v3/index.js +0 -8
- package/dist/esm/v2/components/or-sort-header-v3/styles.d.ts +0 -1
- package/dist/esm/v2/components/or-sort-header-v3/types.d.ts +0 -4
- package/dist/esm/v3/OrSortHeader-21a443f9.js +0 -93
- package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +0 -34
- package/dist/esm/v3/components/or-sort-header-v3/index.d.ts +0 -2
- package/dist/esm/v3/components/or-sort-header-v3/index.js +0 -8
- package/dist/esm/v3/components/or-sort-header-v3/styles.d.ts +0 -1
- package/dist/esm/v3/components/or-sort-header-v3/types.d.ts +0 -4
- package/src/components/or-sort-header-v3/OrSortHeader.docs.mdx +0 -3
- package/src/components/or-sort-header-v3/OrSortHeader.stories3.ts +0 -125
- package/src/components/or-sort-header-v3/OrSortHeader.vue +0 -95
- package/src/components/or-sort-header-v3/index.ts +0 -2
- package/src/components/or-sort-header-v3/styles.ts +0 -21
- package/src/components/or-sort-header-v3/types.ts +0 -4
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-232c4dda.js → OrDateTimePickerMonthSelect-2e61ba21.js} +0 -0
- /package/dist/bundled/v2/components/{OrSortHeaderV3 → OrSortingV3}/types.js +0 -0
- /package/dist/bundled/v3/{OrMenuItem.vue_vue_type_script_lang-f35dcab4.js → OrMenuItem.vue_vue_type_script_lang-8f6994d5.js} +0 -0
- /package/dist/bundled/v3/components/{OrSortHeaderV3 → OrSortingV3}/types.js +0 -0
|
@@ -3,14 +3,13 @@ import { CardCollectionContent, CardCollectionContentViews, CardCollectionRoot,
|
|
|
3
3
|
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
4
4
|
import { gridView, defaultViewModes } from './props.js';
|
|
5
5
|
import __vue_component__$2 from '../OrIconButtonV3/OrIconButton.js';
|
|
6
|
-
import __vue_component__$3 from '../
|
|
7
|
-
import __vue_component__$4 from '../
|
|
8
|
-
import __vue_component__$5 from '../OrMenuItemV3/OrMenuItem.js';
|
|
9
|
-
import __vue_component__$6 from '../OrIconV3/OrIcon.js';
|
|
10
|
-
import __vue_component__$7 from '../OrSearchV3/OrSearch.js';
|
|
6
|
+
import __vue_component__$3 from '../OrSortingV3/OrSortingV3.js';
|
|
7
|
+
import __vue_component__$4 from '../OrSearchV3/OrSearch.js';
|
|
11
8
|
import '../OrIconButtonV3/props.js';
|
|
12
9
|
import '../OrIconV3/props.js';
|
|
13
10
|
import '../OrIconButtonV3/styles.js';
|
|
11
|
+
import '../OrIconV3/OrIcon.js';
|
|
12
|
+
import '../OrIconV3/styles.js';
|
|
14
13
|
import '../OrTooltipV3/OrTooltip.js';
|
|
15
14
|
import '../OrTooltipV3/styles.js';
|
|
16
15
|
import '../OrPopoverV3/OrPopover.js';
|
|
@@ -30,14 +29,17 @@ import '../../hooks/useElevation.js';
|
|
|
30
29
|
import '../../utils/isVisible.js';
|
|
31
30
|
import '../../hooks/usePopoverState.js';
|
|
32
31
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
32
|
+
import '../OrSortingV3/styles.js';
|
|
33
|
+
import '../OrMenuV3/OrMenu.js';
|
|
34
|
+
import '../OrMenuV3/styles.js';
|
|
35
|
+
import '../OrMenuItemV3/OrMenuItem.js';
|
|
36
|
+
import '../OrMenuItemV3/styles.js';
|
|
37
|
+
import '../OrButtonV3/OrButton.js';
|
|
33
38
|
import '../OrButtonV3/props.js';
|
|
34
39
|
import '../OrButtonV3/styles.js';
|
|
35
40
|
import '../OrLoaderV3/OrLoader.js';
|
|
36
41
|
import '../OrLoaderV3/props.js';
|
|
37
42
|
import '../OrLoaderV3/styles.js';
|
|
38
|
-
import '../OrMenuV3/styles.js';
|
|
39
|
-
import '../OrMenuItemV3/styles.js';
|
|
40
|
-
import '../OrIconV3/styles.js';
|
|
41
43
|
import '../OrInputV3/OrInput.js';
|
|
42
44
|
import '../OrInputV3/props.js';
|
|
43
45
|
import '../OrInputBoxV3/props.js';
|
|
@@ -123,11 +125,8 @@ var script = defineComponent({
|
|
|
123
125
|
components: {
|
|
124
126
|
OrCardCollectionView,
|
|
125
127
|
OrIconButton: __vue_component__$2,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
OrMenuItem: __vue_component__$5,
|
|
129
|
-
OrIcon: __vue_component__$6,
|
|
130
|
-
OrSearch: __vue_component__$7
|
|
128
|
+
OrSorting: __vue_component__$3,
|
|
129
|
+
OrSearch: __vue_component__$4
|
|
131
130
|
},
|
|
132
131
|
props: {
|
|
133
132
|
items: {
|
|
@@ -168,8 +167,6 @@ var script = defineComponent({
|
|
|
168
167
|
setup(props, context) {
|
|
169
168
|
// Refs
|
|
170
169
|
const root = ref();
|
|
171
|
-
const sortMenu = ref();
|
|
172
|
-
const sortButton = ref();
|
|
173
170
|
// Styles
|
|
174
171
|
const rootStyles = computed(() => ['or-card-collection-v3', ...CardCollectionRoot]);
|
|
175
172
|
const toolbarStyles = computed(() => [...CardCollectionToolbar]);
|
|
@@ -180,15 +177,11 @@ var script = defineComponent({
|
|
|
180
177
|
});
|
|
181
178
|
// State
|
|
182
179
|
const proxyView = ref(props.view);
|
|
183
|
-
const proxySort = ref(props.sort);
|
|
184
180
|
const proxySearch = ref(props.search);
|
|
185
181
|
// Methods
|
|
186
182
|
function switchView(view) {
|
|
187
183
|
proxyView.value = view;
|
|
188
184
|
}
|
|
189
|
-
function handleSort(sort) {
|
|
190
|
-
proxySort.value = sort;
|
|
191
|
-
}
|
|
192
185
|
function handleSearch(search) {
|
|
193
186
|
proxySearch.value = search;
|
|
194
187
|
}
|
|
@@ -199,12 +192,6 @@ var script = defineComponent({
|
|
|
199
192
|
watch(proxyView, value => {
|
|
200
193
|
context.emit('viewChange', value);
|
|
201
194
|
});
|
|
202
|
-
watch(() => props.sort, value => {
|
|
203
|
-
proxySort.value = value;
|
|
204
|
-
});
|
|
205
|
-
watch(proxySort, value => {
|
|
206
|
-
context.emit('sortChange', value);
|
|
207
|
-
});
|
|
208
195
|
watch(() => props.search, value => {
|
|
209
196
|
proxySearch.value = value;
|
|
210
197
|
});
|
|
@@ -213,17 +200,13 @@ var script = defineComponent({
|
|
|
213
200
|
});
|
|
214
201
|
return {
|
|
215
202
|
root,
|
|
216
|
-
sortMenu,
|
|
217
|
-
sortButton,
|
|
218
203
|
rootStyles,
|
|
219
204
|
toolbarStyles,
|
|
220
205
|
toolbarPanelStyles,
|
|
221
206
|
proxyView,
|
|
222
|
-
proxySort,
|
|
223
207
|
proxySearch,
|
|
224
208
|
sortLabel,
|
|
225
209
|
switchView,
|
|
226
|
-
handleSort,
|
|
227
210
|
handleSearch
|
|
228
211
|
};
|
|
229
212
|
}
|
|
@@ -244,58 +227,39 @@ var __vue_render__ = function () {
|
|
|
244
227
|
class: _vm.toolbarStyles
|
|
245
228
|
}, [_c('div', {
|
|
246
229
|
class: _vm.toolbarPanelStyles
|
|
247
|
-
}, [_vm.sortOptions.length ? [_c('
|
|
248
|
-
ref: "sortButton",
|
|
230
|
+
}, [_vm.sortOptions.length ? [_c('OrSorting', {
|
|
249
231
|
attrs: {
|
|
250
|
-
"
|
|
251
|
-
"
|
|
232
|
+
"sort": _vm.sort,
|
|
233
|
+
"options": _vm.sortOptions
|
|
252
234
|
},
|
|
253
235
|
on: {
|
|
254
|
-
"
|
|
255
|
-
return _vm
|
|
236
|
+
"change": function ($event) {
|
|
237
|
+
return _vm.$emit('sortChange', $event);
|
|
256
238
|
}
|
|
257
239
|
}
|
|
258
|
-
}
|
|
259
|
-
attrs: {
|
|
260
|
-
"icon": _vm.sortMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
261
|
-
}
|
|
262
|
-
}) : _vm._e()], 1), _vm._v(" "), _c('OrMenu', {
|
|
263
|
-
ref: "sortMenu",
|
|
264
|
-
attrs: {
|
|
265
|
-
"trigger": _vm.sortButton && _vm.sortButton.root
|
|
266
|
-
}
|
|
267
|
-
}, _vm._l(_vm.sortOptions, function (sortItem) {
|
|
268
|
-
return _c('OrMenuItem', {
|
|
269
|
-
key: sortItem,
|
|
270
|
-
on: {
|
|
271
|
-
"click": function ($event) {
|
|
272
|
-
return _vm.handleSort(sortItem.value);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}, [_vm._v("\n " + _vm._s(sortItem.label) + "\n ")]);
|
|
276
|
-
}), 1)] : _vm._e()], 2), _vm._v(" "), _c('div', {
|
|
240
|
+
})] : _vm._e()], 2), _vm._v(" "), _c('div', {
|
|
277
241
|
class: _vm.toolbarPanelStyles
|
|
278
242
|
}, [_c('OrSearch', {
|
|
279
243
|
staticClass: "md:w-[350px]",
|
|
280
244
|
attrs: {
|
|
281
245
|
"model-value": _vm.proxySearch,
|
|
282
246
|
"placeholder": _vm.searchPlaceholder,
|
|
283
|
-
"debounce": _vm.searchDebounce
|
|
284
|
-
"size": "s"
|
|
247
|
+
"debounce": _vm.searchDebounce
|
|
285
248
|
},
|
|
286
249
|
on: {
|
|
287
250
|
"search": _vm.handleSearch
|
|
288
251
|
}
|
|
289
|
-
}), _vm._v(" "), _c('div', {
|
|
252
|
+
}), _vm._v(" "), _vm.viewModes.length > 1 ? [_c('div', {
|
|
290
253
|
staticClass: "layout-row gap-sm"
|
|
291
|
-
},
|
|
254
|
+
}, _vm._l(_vm.viewModes, function (viewOption) {
|
|
292
255
|
return _c('OrIconButton', {
|
|
293
256
|
key: viewOption.view,
|
|
294
257
|
attrs: {
|
|
258
|
+
"size": "l",
|
|
295
259
|
"icon": {
|
|
296
|
-
icon: viewOption.icon
|
|
297
|
-
|
|
298
|
-
|
|
260
|
+
icon: viewOption.icon
|
|
261
|
+
},
|
|
262
|
+
"selected": viewOption.view === _vm.proxyView
|
|
299
263
|
},
|
|
300
264
|
on: {
|
|
301
265
|
"click": function ($event) {
|
|
@@ -303,7 +267,7 @@ var __vue_render__ = function () {
|
|
|
303
267
|
}
|
|
304
268
|
}
|
|
305
269
|
});
|
|
306
|
-
}) : _vm._e(), _vm._v(" "), _vm._t("addon")], 2)]
|
|
270
|
+
}), 1)] : _vm._e(), _vm._v(" "), _vm._t("addon")], 2)]), _vm._v(" "), _vm._t("header", null, null, {
|
|
307
271
|
items: _vm.items,
|
|
308
272
|
mode: _vm.proxyView
|
|
309
273
|
}), _vm._v(" "), _vm.items.length ? _vm._t(_vm.proxyView, function () {
|
|
@@ -1,26 +1,15 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
import {
|
|
2
|
+
import { SortOption } from '../or-sorting-v3';
|
|
3
|
+
import { CardCollectionItem, ViewMode } from './types';
|
|
3
4
|
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
5
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
-
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, {
|
|
6
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
7
|
-
} | string[], {} & {}, {
|
|
8
|
-
[x: number]: string;
|
|
9
|
-
} | {}, true>)) | undefined>;
|
|
10
|
-
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, {
|
|
11
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
12
|
-
} | string[], {} & {}, {
|
|
13
|
-
[x: number]: string;
|
|
14
|
-
} | {}, true>)) | undefined>;
|
|
15
6
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
16
7
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
17
8
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
18
9
|
proxyView: import("@vue/composition-api").Ref<string>;
|
|
19
|
-
proxySort: import("@vue/composition-api").Ref<string>;
|
|
20
10
|
proxySearch: import("@vue/composition-api").Ref<string>;
|
|
21
11
|
sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
|
|
22
12
|
switchView: (view: string) => void;
|
|
23
|
-
handleSort: (sort: string) => void;
|
|
24
13
|
handleSearch: (search: string) => void;
|
|
25
14
|
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
26
15
|
items: {
|
|
@@ -101,25 +90,13 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
101
90
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
102
91
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
103
92
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
104
|
-
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, {
|
|
105
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
106
|
-
} | string[], {} & {}, {
|
|
107
|
-
[x: number]: string;
|
|
108
|
-
} | {}, true>)) | undefined>;
|
|
109
|
-
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, {
|
|
110
|
-
[x: string]: ((...args: any[]) => any) | null;
|
|
111
|
-
} | string[], {} & {}, {
|
|
112
|
-
[x: number]: string;
|
|
113
|
-
} | {}, true>)) | undefined>;
|
|
114
93
|
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
115
94
|
toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
116
95
|
toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
117
96
|
proxyView: import("@vue/composition-api").Ref<string>;
|
|
118
|
-
proxySort: import("@vue/composition-api").Ref<string>;
|
|
119
97
|
proxySearch: import("@vue/composition-api").Ref<string>;
|
|
120
98
|
sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
|
|
121
99
|
switchView: (view: string) => void;
|
|
122
|
-
handleSort: (sort: string) => void;
|
|
123
100
|
handleSearch: (search: string) => void;
|
|
124
101
|
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
125
102
|
sort: string;
|
|
@@ -28,16 +28,18 @@ import '../../hooks/useElevation.js';
|
|
|
28
28
|
import '../../utils/isVisible.js';
|
|
29
29
|
import '../../hooks/usePopoverState.js';
|
|
30
30
|
import '../../hooks/useResponsive/useResponsive.js';
|
|
31
|
+
import '../OrSortingV3/OrSortingV3.js';
|
|
32
|
+
import '../OrSortingV3/styles.js';
|
|
33
|
+
import '../OrMenuV3/OrMenu.js';
|
|
34
|
+
import '../OrMenuV3/styles.js';
|
|
35
|
+
import '../OrMenuItemV3/OrMenuItem.js';
|
|
36
|
+
import '../OrMenuItemV3/styles.js';
|
|
31
37
|
import '../OrButtonV3/OrButton.js';
|
|
32
38
|
import '../OrButtonV3/props.js';
|
|
33
39
|
import '../OrButtonV3/styles.js';
|
|
34
40
|
import '../OrLoaderV3/OrLoader.js';
|
|
35
41
|
import '../OrLoaderV3/props.js';
|
|
36
42
|
import '../OrLoaderV3/styles.js';
|
|
37
|
-
import '../OrMenuV3/OrMenu.js';
|
|
38
|
-
import '../OrMenuV3/styles.js';
|
|
39
|
-
import '../OrMenuItemV3/OrMenuItem.js';
|
|
40
|
-
import '../OrMenuItemV3/styles.js';
|
|
41
43
|
import '../OrSearchV3/OrSearch.js';
|
|
42
44
|
import '../OrInputV3/OrInput.js';
|
|
43
45
|
import '../OrInputV3/props.js';
|
|
@@ -2,9 +2,7 @@ const CardCollectionRoot = [
|
|
|
2
2
|
// Layout
|
|
3
3
|
'layout-column',
|
|
4
4
|
// Spacing
|
|
5
|
-
'gap-md', 'max-h-full'
|
|
6
|
-
// Overflow
|
|
7
|
-
'overflow-hidden'];
|
|
5
|
+
'gap-md', 'max-h-full'];
|
|
8
6
|
const CardCollectionToolbar = [
|
|
9
7
|
// Layout
|
|
10
8
|
'layout-row justify-between',
|
|
@@ -23,11 +21,14 @@ const CardCollectionContent = [
|
|
|
23
21
|
// Spacing
|
|
24
22
|
'gap-sm md:gap-md',
|
|
25
23
|
// Overflow
|
|
26
|
-
'overflow-auto'
|
|
24
|
+
'overflow-y-auto', 'p-xs*', '-m-xs*'
|
|
25
|
+
// '-mr-sm*',
|
|
26
|
+
];
|
|
27
|
+
|
|
27
28
|
const CardCollectionContentViews = {
|
|
28
29
|
'grid': [
|
|
29
30
|
// Layout
|
|
30
|
-
'
|
|
31
|
+
'grid-cols-1', 'md:grid-cols-5'],
|
|
31
32
|
'list': ['grid-cols-1']
|
|
32
33
|
};
|
|
33
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
2
|
import { useCurrentDate } from '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
3
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-
|
|
3
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-2e61ba21.js';
|
|
4
4
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-52a99e6a.js';
|
|
5
5
|
import { DatePicker, DatePickerPopover } from './styles.js';
|
|
6
6
|
import __vue_component__$1 from '../OrErrorV3/OrError.js';
|
|
@@ -2,7 +2,7 @@ export { default as OrDatePickerV3 } from './OrDatePicker.js';
|
|
|
2
2
|
export { InputBoxSize as DatePickerSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../OrDateTimePickerV3/hooks/useCurrentDate.js';
|
|
5
|
-
import '../../OrDateTimePickerMonthSelect-
|
|
5
|
+
import '../../OrDateTimePickerMonthSelect-2e61ba21.js';
|
|
6
6
|
import '../OrDateTimePickerV3/hooks/useDatePlaceholder.js';
|
|
7
7
|
import '../../hooks/useProxyModelValue.js';
|
|
8
8
|
import '../../normalize-component-6e8e3d80.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch } from 'vue-demi';
|
|
2
2
|
import { useCurrentDate } from './hooks/useCurrentDate.js';
|
|
3
|
-
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-
|
|
3
|
+
import { O as OrDateTimePickerDateControl, a as OrDateTimePickerDateSelect, b as OrDateTimePickerMonthSelect } from '../../OrDateTimePickerMonthSelect-2e61ba21.js';
|
|
4
4
|
import { O as OrDateTimePickerMobileControl, a as OrDateTimePickerPopoverFooter, b as OrDateTimePickerPopoverHeader } from '../../OrDateTimePickerPopoverHeader-52a99e6a.js';
|
|
5
5
|
import { O as OrDateTimePickerTimeControl, a as OrDateTimePickerTimeSelect } from '../../OrDateTimePickerTimeSelect-8851268e.js';
|
|
6
6
|
import { DateTimePickerTimeFormat } from './props.js';
|
|
@@ -3,7 +3,7 @@ export { DateTimePickerTimeFormat } from './props.js';
|
|
|
3
3
|
export { InputBoxSize as DateTimePickerSize } from '../OrInputBoxV3/props.js';
|
|
4
4
|
import 'vue-demi';
|
|
5
5
|
import './hooks/useCurrentDate.js';
|
|
6
|
-
import '../../OrDateTimePickerMonthSelect-
|
|
6
|
+
import '../../OrDateTimePickerMonthSelect-2e61ba21.js';
|
|
7
7
|
import './hooks/useDatePlaceholder.js';
|
|
8
8
|
import '../../hooks/useProxyModelValue.js';
|
|
9
9
|
import '../../normalize-component-6e8e3d80.js';
|
|
@@ -14,6 +14,8 @@ const MenuItemRoot = [
|
|
|
14
14
|
// Theme (hover)
|
|
15
15
|
'hover:md:theme-foreground-default', 'dark:hover:md:theme-foreground-default-dark',
|
|
16
16
|
// Theme (active)
|
|
17
|
-
'active:theme-foreground-default', 'dark:active:theme-foreground-default-dark'
|
|
17
|
+
'active:theme-foreground-default', 'dark:active:theme-foreground-default-dark',
|
|
18
|
+
// Theme (selected)
|
|
19
|
+
'selected:text-on-background dark:selected:text-on-background-dark'];
|
|
18
20
|
|
|
19
21
|
export { MenuItemRoot };
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch } from 'vue-demi';
|
|
2
|
+
import { SortingRoot, SortingLabel } from './styles.js';
|
|
3
|
+
import __vue_component__$1 from '../OrMenuV3/OrMenu.js';
|
|
4
|
+
import __vue_component__$2 from '../OrMenuItemV3/OrMenuItem.js';
|
|
5
|
+
import __vue_component__$3 from '../OrButtonV3/OrButton.js';
|
|
6
|
+
import __vue_component__$4 from '../OrIconV3/OrIcon.js';
|
|
7
|
+
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
8
|
+
import '../OrMenuV3/styles.js';
|
|
9
|
+
import '../OrPopoverV3/OrPopover.js';
|
|
10
|
+
import '../../floating-ui.dom.esm-83eba816.js';
|
|
11
|
+
import '../../index-760079e7.js';
|
|
12
|
+
import '../../index-ec92055d.js';
|
|
13
|
+
import '../OrPopoverV3/props.js';
|
|
14
|
+
import '../OrPopoverV3/styles.js';
|
|
15
|
+
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
16
|
+
import '../OrBottomSheetV3/props.js';
|
|
17
|
+
import '../OrBottomSheetV3/styles.js';
|
|
18
|
+
import '../OrOverlayV3/OrOverlay.js';
|
|
19
|
+
import '../OrOverlayV3/styles.js';
|
|
20
|
+
import '../OrTeleportV3/OrTeleport.js';
|
|
21
|
+
import 'vue';
|
|
22
|
+
import '../../hooks/useElevation.js';
|
|
23
|
+
import '../../utils/isVisible.js';
|
|
24
|
+
import '../../hooks/usePopoverState.js';
|
|
25
|
+
import '../../hooks/useResponsive/useResponsive.js';
|
|
26
|
+
import '../OrMenuItemV3/styles.js';
|
|
27
|
+
import '../OrIconV3/props.js';
|
|
28
|
+
import '../OrIconV3/styles.js';
|
|
29
|
+
import '../OrButtonV3/props.js';
|
|
30
|
+
import '../OrButtonV3/styles.js';
|
|
31
|
+
import '../OrLoaderV3/OrLoader.js';
|
|
32
|
+
import '../OrLoaderV3/props.js';
|
|
33
|
+
import '../OrLoaderV3/styles.js';
|
|
34
|
+
|
|
35
|
+
var script = defineComponent({
|
|
36
|
+
name: 'OrSorting',
|
|
37
|
+
components: {
|
|
38
|
+
OrMenu: __vue_component__$1,
|
|
39
|
+
OrMenuItem: __vue_component__$2,
|
|
40
|
+
OrButton: __vue_component__$3,
|
|
41
|
+
OrIcon: __vue_component__$4
|
|
42
|
+
},
|
|
43
|
+
props: {
|
|
44
|
+
sort: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: undefined
|
|
47
|
+
},
|
|
48
|
+
options: {
|
|
49
|
+
type: Array,
|
|
50
|
+
default: () => []
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
emits: ['change'],
|
|
54
|
+
setup(props, context) {
|
|
55
|
+
// Refs
|
|
56
|
+
const root = ref();
|
|
57
|
+
const sortMenu = ref();
|
|
58
|
+
const sortButton = ref();
|
|
59
|
+
// State
|
|
60
|
+
const proxySort = ref(props.sort);
|
|
61
|
+
const sortLabel = computed(() => {
|
|
62
|
+
var _a;
|
|
63
|
+
return (_a = props.options.find(item => item.value === props.sort)) === null || _a === void 0 ? void 0 : _a.label;
|
|
64
|
+
});
|
|
65
|
+
// Methods
|
|
66
|
+
function handleSort(sort) {
|
|
67
|
+
proxySort.value = sort;
|
|
68
|
+
}
|
|
69
|
+
// Effects
|
|
70
|
+
watch(() => props.sort, value => {
|
|
71
|
+
proxySort.value = value;
|
|
72
|
+
});
|
|
73
|
+
watch(proxySort, value => {
|
|
74
|
+
context.emit('change', value);
|
|
75
|
+
});
|
|
76
|
+
const rootStyles = computed(() => ['or-sorting-v3', ...SortingRoot]);
|
|
77
|
+
const sortLabelStyles = computed(() => [...SortingLabel]);
|
|
78
|
+
return {
|
|
79
|
+
root,
|
|
80
|
+
sortMenu,
|
|
81
|
+
sortButton,
|
|
82
|
+
sortLabel,
|
|
83
|
+
proxySort,
|
|
84
|
+
handleSort,
|
|
85
|
+
rootStyles,
|
|
86
|
+
sortLabelStyles
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
/* script */
|
|
92
|
+
const __vue_script__ = script;
|
|
93
|
+
|
|
94
|
+
/* template */
|
|
95
|
+
var __vue_render__ = function () {
|
|
96
|
+
var _vm = this;
|
|
97
|
+
var _h = _vm.$createElement;
|
|
98
|
+
var _c = _vm._self._c || _h;
|
|
99
|
+
return _c('div', {
|
|
100
|
+
ref: _vm.root,
|
|
101
|
+
class: _vm.rootStyles
|
|
102
|
+
}, [_c('OrButton', {
|
|
103
|
+
ref: "sortButton",
|
|
104
|
+
attrs: {
|
|
105
|
+
"variant": "link",
|
|
106
|
+
"color": "primary"
|
|
107
|
+
},
|
|
108
|
+
on: {
|
|
109
|
+
"click": function ($event) {
|
|
110
|
+
return _vm.sortMenu.toggle();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}, [_c('span', {
|
|
114
|
+
class: _vm.sortLabelStyles
|
|
115
|
+
}, [_vm._v("\n " + _vm._s(_vm.sortLabel) + "\n ")]), _vm._v(" "), _vm.sortMenu ? _c('OrIcon', {
|
|
116
|
+
attrs: {
|
|
117
|
+
"icon": _vm.sortMenu.state === 'open' ? 'arrow_drop_up' : 'arrow_drop_down'
|
|
118
|
+
}
|
|
119
|
+
}) : _vm._e()], 1), _vm._v(" "), _c('OrMenu', {
|
|
120
|
+
ref: "sortMenu",
|
|
121
|
+
attrs: {
|
|
122
|
+
"trigger": _vm.sortButton && _vm.sortButton.root,
|
|
123
|
+
"placement": "bottom-start"
|
|
124
|
+
}
|
|
125
|
+
}, _vm._l(_vm.options, function (item) {
|
|
126
|
+
return _c('OrMenuItem', {
|
|
127
|
+
key: item.value,
|
|
128
|
+
attrs: {
|
|
129
|
+
"selected": item.value === _vm.proxySort
|
|
130
|
+
},
|
|
131
|
+
on: {
|
|
132
|
+
"click": function ($event) {
|
|
133
|
+
return _vm.handleSort(item.value);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}, [_vm._v("\n " + _vm._s(item.label) + "\n ")]);
|
|
137
|
+
}), 1)], 1);
|
|
138
|
+
};
|
|
139
|
+
var __vue_staticRenderFns__ = [];
|
|
140
|
+
|
|
141
|
+
/* style */
|
|
142
|
+
const __vue_inject_styles__ = undefined;
|
|
143
|
+
/* scoped */
|
|
144
|
+
const __vue_scope_id__ = undefined;
|
|
145
|
+
/* module identifier */
|
|
146
|
+
const __vue_module_identifier__ = undefined;
|
|
147
|
+
/* functional template */
|
|
148
|
+
const __vue_is_functional_template__ = false;
|
|
149
|
+
/* style inject */
|
|
150
|
+
|
|
151
|
+
/* style inject SSR */
|
|
152
|
+
|
|
153
|
+
/* style inject shadow dom */
|
|
154
|
+
|
|
155
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
156
|
+
render: __vue_render__,
|
|
157
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
158
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
159
|
+
|
|
160
|
+
export { __vue_component__ as default };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { SortOption } from './types';
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
+
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, {
|
|
6
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
7
|
+
} | string[], {} & {}, {
|
|
8
|
+
[x: number]: string;
|
|
9
|
+
} | {}, true>)) | undefined>;
|
|
10
|
+
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, {
|
|
11
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
12
|
+
} | string[], {} & {}, {
|
|
13
|
+
[x: number]: string;
|
|
14
|
+
} | {}, true>)) | undefined>;
|
|
15
|
+
sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
|
|
16
|
+
proxySort: import("@vue/composition-api").Ref<string>;
|
|
17
|
+
handleSort: (sort: string) => void;
|
|
18
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
19
|
+
sortLabelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
20
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
21
|
+
sort: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
options: {
|
|
26
|
+
type: PropType<SortOption[]>;
|
|
27
|
+
default: () => never[];
|
|
28
|
+
};
|
|
29
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
30
|
+
sort: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
options: {
|
|
35
|
+
type: PropType<SortOption[]>;
|
|
36
|
+
default: () => never[];
|
|
37
|
+
};
|
|
38
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
39
|
+
sort: string;
|
|
40
|
+
options: SortOption[];
|
|
41
|
+
} & {} & {
|
|
42
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
43
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
44
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
45
|
+
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, {
|
|
46
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
47
|
+
} | string[], {} & {}, {
|
|
48
|
+
[x: number]: string;
|
|
49
|
+
} | {}, true>)) | undefined>;
|
|
50
|
+
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, {
|
|
51
|
+
[x: string]: ((...args: any[]) => any) | null;
|
|
52
|
+
} | string[], {} & {}, {
|
|
53
|
+
[x: number]: string;
|
|
54
|
+
} | {}, true>)) | undefined>;
|
|
55
|
+
sortLabel: import("@vue/composition-api").ComputedRef<string | undefined>;
|
|
56
|
+
proxySort: import("@vue/composition-api").Ref<string>;
|
|
57
|
+
handleSort: (sort: string) => void;
|
|
58
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
59
|
+
sortLabelStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
60
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
61
|
+
sort: string;
|
|
62
|
+
options: SortOption[];
|
|
63
|
+
} & {} & {
|
|
64
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}, {
|
|
66
|
+
sort: string;
|
|
67
|
+
options: SortOption[];
|
|
68
|
+
}, true>);
|
|
69
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { default as OrSortingV3 } from './OrSortingV3.js';
|
|
2
|
+
import 'vue-demi';
|
|
3
|
+
import './styles.js';
|
|
4
|
+
import '../OrMenuV3/OrMenu.js';
|
|
5
|
+
import '../OrMenuV3/styles.js';
|
|
6
|
+
import '../OrPopoverV3/OrPopover.js';
|
|
7
|
+
import '../../floating-ui.dom.esm-83eba816.js';
|
|
8
|
+
import '../../index-760079e7.js';
|
|
9
|
+
import '../../index-ec92055d.js';
|
|
10
|
+
import '../OrPopoverV3/props.js';
|
|
11
|
+
import '../OrPopoverV3/styles.js';
|
|
12
|
+
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
13
|
+
import '../OrBottomSheetV3/props.js';
|
|
14
|
+
import '../OrBottomSheetV3/styles.js';
|
|
15
|
+
import '../OrOverlayV3/OrOverlay.js';
|
|
16
|
+
import '../OrOverlayV3/styles.js';
|
|
17
|
+
import '../OrTeleportV3/OrTeleport.js';
|
|
18
|
+
import 'vue';
|
|
19
|
+
import '../../normalize-component-6e8e3d80.js';
|
|
20
|
+
import '../../hooks/useElevation.js';
|
|
21
|
+
import '../../utils/isVisible.js';
|
|
22
|
+
import '../../hooks/usePopoverState.js';
|
|
23
|
+
import '../../hooks/useResponsive/useResponsive.js';
|
|
24
|
+
import '../OrMenuItemV3/OrMenuItem.js';
|
|
25
|
+
import '../OrMenuItemV3/styles.js';
|
|
26
|
+
import '../OrIconV3/OrIcon.js';
|
|
27
|
+
import '../OrIconV3/props.js';
|
|
28
|
+
import '../OrIconV3/styles.js';
|
|
29
|
+
import '../OrButtonV3/OrButton.js';
|
|
30
|
+
import '../OrButtonV3/props.js';
|
|
31
|
+
import '../OrButtonV3/styles.js';
|
|
32
|
+
import '../OrLoaderV3/OrLoader.js';
|
|
33
|
+
import '../OrLoaderV3/props.js';
|
|
34
|
+
import '../OrLoaderV3/styles.js';
|