@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.
Files changed (81) hide show
  1. package/dist/bundled/v2/{OrCard-58a1ba3e.js → OrCard-29116e1f.js} +2 -2
  2. package/dist/bundled/v2/{OrCardCollection-a9a779ea.js → OrCardCollection-94a30a19.js} +144 -53
  3. package/dist/bundled/v2/{OrConfirm-18c534df.js → OrConfirm-ff57274f.js} +1 -1
  4. package/dist/bundled/v2/{OrInput-8b90e08f.js → OrInput-4b82eb59.js} +4 -4
  5. package/dist/bundled/v2/{OrSearch-9d402f56.js → OrSearch-3ece0ef6.js} +3 -3
  6. package/dist/bundled/v2/{OrSelect-f37e751b.js → OrSelect-68aacb62.js} +2 -2
  7. package/dist/bundled/v2/{OrSortHeader-396e6a7c.js → OrSortHeader-9932d28f.js} +2 -2
  8. package/dist/bundled/v2/components/index.js +7 -7
  9. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
  10. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -28
  11. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  12. package/dist/bundled/v2/components/or-card-collection-v3/index.js +8 -5
  13. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +1 -1
  14. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  15. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  16. package/dist/bundled/v2/components/or-input-v3/index.js +1 -1
  17. package/dist/bundled/v2/components/or-search-v3/index.js +2 -2
  18. package/dist/bundled/v2/components/or-select-v3/index.js +2 -2
  19. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  20. package/dist/bundled/v2/index.js +8 -8
  21. package/dist/bundled/v3/OrButton-8ab33d9d.js +33 -0
  22. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3993a015.js → OrCardCollection.vue_vue_type_script_lang-0e029303.js} +98 -48
  23. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-289b5600.js → OrConfirm.vue_vue_type_script_lang-18997376.js} +7 -37
  24. package/dist/bundled/v3/{OrInput-fa782fc1.js → OrInput-e97211bb.js} +1 -1
  25. package/dist/bundled/v3/OrMenu-f26e8e55.js +29 -0
  26. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-ed78b21f.js → OrSearch.vue_vue_type_script_lang-147a1fb9.js} +2 -2
  27. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-c74a63e1.js → OrSelect.vue_vue_type_script_lang-58b92fb0.js} +1 -1
  28. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-919b2021.js → OrTabs.vue_vue_type_script_lang-61b79a5a.js} +10 -36
  29. package/dist/bundled/v3/components/index.js +10 -8
  30. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
  31. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -28
  32. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  33. package/dist/bundled/v3/components/or-card-collection-v3/index.js +12 -5
  34. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +1 -1
  35. package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -2
  36. package/dist/bundled/v3/components/or-search-v3/index.js +2 -2
  37. package/dist/bundled/v3/components/or-select-v3/index.js +2 -2
  38. package/dist/bundled/v3/components/or-tabs-v3/index.js +2 -1
  39. package/dist/bundled/v3/index.js +316 -301
  40. package/dist/esm/v2/{OrCardCollection-4f001551.js → OrCardCollection-54648673.js} +144 -52
  41. package/dist/esm/v2/{OrConfirm-b0b2e43c.js → OrConfirm-74e21c56.js} +1 -1
  42. package/dist/esm/v2/{OrInput-2f16a7ac.js → OrInput-b8a1627f.js} +4 -4
  43. package/dist/esm/v2/{OrSearch-ddb7c1fe.js → OrSearch-0c0d1773.js} +1 -1
  44. package/dist/esm/v2/{OrSelect-528c7480.js → OrSelect-0e6e7868.js} +2 -2
  45. package/dist/esm/v2/components/index.js +5 -5
  46. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
  47. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -28
  48. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +35 -0
  49. package/dist/esm/v2/components/or-card-collection-v3/index.js +8 -5
  50. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +1 -1
  51. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  52. package/dist/esm/v2/components/or-input-v3/index.js +1 -1
  53. package/dist/esm/v2/components/or-search-v3/index.js +2 -2
  54. package/dist/esm/v2/components/or-select-v3/index.js +2 -2
  55. package/dist/esm/v2/index.js +5 -5
  56. package/dist/esm/v3/OrCardCollection-9d0036fa.js +259 -0
  57. package/dist/esm/v3/{OrConfirm-906427ef.js → OrConfirm-a3f312a6.js} +1 -1
  58. package/dist/esm/v3/{OrInput-41691fb3.js → OrInput-e2ac1182.js} +1 -1
  59. package/dist/esm/v3/{OrSearch-cdde55ce.js → OrSearch-01225d82.js} +1 -1
  60. package/dist/esm/v3/{OrSelect-d9c76482.js → OrSelect-2e00d4c8.js} +2 -2
  61. package/dist/esm/v3/components/index.js +5 -5
  62. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +3 -0
  63. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -28
  64. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +35 -0
  65. package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -5
  66. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +1 -1
  67. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  68. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  69. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  70. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  71. package/dist/esm/v3/index.js +5 -5
  72. package/package.json +1 -1
  73. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +115 -19
  74. package/src/components/or-card-collection-v3/OrCardCollection.vue +93 -67
  75. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +39 -0
  76. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +40 -0
  77. package/src/components/or-card-collection-v3/styles.ts +1 -1
  78. package/src/components/or-card-collection-v3/types.ts +1 -1
  79. package/src/components/or-input-v3/OrInput.vue +1 -1
  80. package/src/components/or-select-v3/OrSelect.vue +1 -1
  81. package/dist/esm/v3/OrCardCollection-5a0febaf.js +0 -198
@@ -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 OrCard = __vue_component__;
70
+ var __vue_component__$1 = __vue_component__;
71
71
 
72
- export { OrCard as O };
72
+ export { __vue_component__$1 as _ };
@@ -1,11 +1,13 @@
1
1
  import './index-fa6eb4ca.js';
2
- import { O as OrCard } from './OrCard-58a1ba3e.js';
2
+ import { defineComponent, computed, ref, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
3
+ import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
3
4
  import { O as OrIconButton } from './OrIconButton-a215104c.js';
4
- import { O as OrInput } from './OrInput-8b90e08f.js';
5
- import { O as OrSortHeader } from './OrSortHeader-396e6a7c.js';
5
+ import { O as OrButton } from './OrButton-0e91a808.js';
6
+ import { O as OrMenu } from './OrMenu-fa47c888.js';
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';
6
10
  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';
9
11
 
10
12
  var CardCollectionView;
11
13
  (function (CardCollectionView) {
@@ -29,7 +31,7 @@ const CardCollectionToolbarPanel = [
29
31
  // Layout
30
32
  'layout-row',
31
33
  // Spacing
32
- 'gap-sm+'];
34
+ 'gap-lg+'];
33
35
  const CardCollectionContent = [
34
36
  // Layout
35
37
  'grid',
@@ -42,13 +44,75 @@ const CardCollectionContentViews = {
42
44
  'list': []
43
45
  };
44
46
 
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
+
45
106
  var script = defineComponent({
46
107
  name: 'OrCardCollection',
47
108
  components: {
48
- OrCard,
109
+ OrCardCollectionView,
49
110
  OrIconButton,
50
- OrInput,
51
- OrSortHeader
111
+ OrButton,
112
+ OrMenu,
113
+ OrMenuItem,
114
+ OrIcon,
115
+ OrSearch
52
116
  },
53
117
  inheritAttrs: false,
54
118
  props: {
@@ -61,12 +125,12 @@ var script = defineComponent({
61
125
  default: CardCollectionView.Grid
62
126
  },
63
127
  sort: {
64
- type: Object,
65
- default: undefined
128
+ type: String,
129
+ required: true
66
130
  },
67
- sortHeaders: {
131
+ sortOptions: {
68
132
  type: Array,
69
- default: undefined
133
+ default: () => []
70
134
  },
71
135
  search: {
72
136
  type: String,
@@ -78,12 +142,13 @@ var script = defineComponent({
78
142
  setup(props, context) {
79
143
  // Refs
80
144
  const root = ref();
145
+ const sortMenu = ref();
146
+ const sortButton = ref();
81
147
  // Styles
82
148
  const classAttribute = useClassAttribute();
83
149
  const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
84
150
  const toolbarStyles = computed(() => [...CardCollectionToolbar]);
85
151
  const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
86
- const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
87
152
  // State
88
153
  const proxyView = ref(props.view);
89
154
  const proxySort = ref(props.sort);
@@ -95,6 +160,12 @@ var script = defineComponent({
95
160
  function switchToListView() {
96
161
  proxyView.value = CardCollectionView.List;
97
162
  }
163
+ function handleSort(sort) {
164
+ proxySort.value = sort;
165
+ }
166
+ function handleSearch(search) {
167
+ proxySearch.value = search;
168
+ }
98
169
  // Effects
99
170
  watch(() => props.view, value => {
100
171
  proxyView.value = value;
@@ -116,15 +187,18 @@ var script = defineComponent({
116
187
  });
117
188
  return {
118
189
  root,
190
+ sortMenu,
191
+ sortButton,
119
192
  rootStyles,
120
193
  toolbarStyles,
121
194
  toolbarPanelStyles,
122
- contentStyles,
123
195
  proxyView,
124
196
  proxySort,
125
197
  proxySearch,
126
198
  switchToGridView,
127
- switchToListView
199
+ switchToListView,
200
+ handleSort,
201
+ handleSearch
128
202
  };
129
203
  }
130
204
  });
@@ -144,36 +218,48 @@ var __vue_render__ = function () {
144
218
  class: _vm.toolbarStyles
145
219
  }, [_c('div', {
146
220
  class: _vm.toolbarPanelStyles
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"
221
+ }, [_vm.sortOptions.length ? [_c('OrButton', {
222
+ ref: "sortButton",
223
+ attrs: {
224
+ "variant": "link",
225
+ "color": "inherit"
226
+ },
227
+ on: {
228
+ "click": function ($event) {
229
+ return _vm.sortMenu.toggle();
230
+ }
231
+ }
232
+ }, [_vm._v("\n " + _vm._s(_vm.proxySort) + "\n "), _vm.sortMenu ? _c('OrIcon', {
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
+ }
159
248
  }
160
- }, [_vm._v("\n " + _vm._s(header.label) + "\n ")]);
161
- }) : _vm._e()], 2), _vm._v(" "), _c('div', {
249
+ }, [_vm._v("\n " + _vm._s(sortItem) + "\n ")]);
250
+ }), 1)] : _vm._e()], 2), _vm._v(" "), _c('div', {
162
251
  class: _vm.toolbarPanelStyles
163
- }, [_c('OrInput', {
252
+ }, [_c('OrSearch', {
253
+ staticClass: "md:w-[350px]",
164
254
  attrs: {
165
- "type": 'search',
166
- "placeholder": 'Search',
167
- "size": 's'
255
+ "size": "s"
168
256
  },
169
- model: {
170
- value: _vm.proxySearch,
171
- callback: function ($$v) {
172
- _vm.proxySearch = $$v;
173
- },
174
- expression: "proxySearch"
257
+ on: {
258
+ "search": _vm.handleSearch
175
259
  }
176
- }), _vm._v(" "), _c('OrIconButton', {
260
+ }), _vm._v(" "), _c('div', {
261
+ staticClass: "layout-row gap-sm"
262
+ }, [_c('OrIconButton', {
177
263
  attrs: {
178
264
  "icon": 'grid_view'
179
265
  },
@@ -184,24 +270,29 @@ var __vue_render__ = function () {
184
270
  }
185
271
  }), _vm._v(" "), _c('OrIconButton', {
186
272
  attrs: {
187
- "icon": 'view_list'
273
+ "icon": 'view_agenda'
188
274
  },
189
275
  on: {
190
276
  "click": function ($event) {
191
277
  return _vm.switchToListView();
192
278
  }
193
279
  }
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)]);
280
+ }), _vm._v(" "), _vm._t("addon")], 2)], 1)]), _vm._v(" "), _vm._t(_vm.proxyView, function () {
281
+ return [_c('OrCardCollectionView', {
282
+ attrs: {
283
+ "items": _vm.items,
284
+ "mode": _vm.proxyView
285
+ },
286
+ scopedSlots: _vm._u([{
287
+ key: "item",
288
+ fn: function (props) {
289
+ return [_vm._t("item", null, null, props)];
290
+ }
291
+ }], null, true)
292
+ })];
293
+ }, null, {
294
+ items: _vm.items
295
+ })], 2);
205
296
  };
206
297
  var __vue_staticRenderFns__ = [];
207
298
 
@@ -3,7 +3,7 @@ import { useMagicKeys, whenever } from '@vueuse/core';
3
3
  import { l as logicAnd } from './index-17f264f9.js';
4
4
  import { O as OrOverlay } from './OrOverlay-3c89d622.js';
5
5
  import { O as OrButton, a as ButtonColor } from './OrButton-0e91a808.js';
6
- import { O as OrInput } from './OrInput-8b90e08f.js';
6
+ import { O as OrInput } from './OrInput-4b82eb59.js';
7
7
  import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
8
8
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
9
9
 
@@ -301,7 +301,7 @@ var __vue_render__ = function () {
301
301
  }
302
302
  }
303
303
  }, 'input', _vm.$attrs, false)), _vm._v(" "), _c('div', {
304
- class: ['layout-row']
304
+ class: ['layout-row', 'm-[-4px] md:m-[-2px]']
305
305
  }, [_vm.type === 'password' ? [_c('OrIconButton', {
306
306
  attrs: {
307
307
  "icon": {
@@ -363,14 +363,14 @@ var __vue_staticRenderFns__ = [];
363
363
  /* style */
364
364
  const __vue_inject_styles__ = function (inject) {
365
365
  if (!inject) return;
366
- inject("data-v-677a1aa4_0", {
367
- source: "input[data-v-677a1aa4]{min-width:0;background:0 0;outline:0}input[type=number][data-v-677a1aa4]::-webkit-inner-spin-button{display:none}input[type=search][data-v-677a1aa4]::-webkit-search-cancel-button{display:none}",
366
+ inject("data-v-2f46aeca_0", {
367
+ source: "input[data-v-2f46aeca]{min-width:0;background:0 0;outline:0}input[type=number][data-v-2f46aeca]::-webkit-inner-spin-button{display:none}input[type=search][data-v-2f46aeca]::-webkit-search-cancel-button{display:none}",
368
368
  map: undefined,
369
369
  media: undefined
370
370
  });
371
371
  };
372
372
  /* scoped */
373
- const __vue_scope_id__ = "data-v-677a1aa4";
373
+ const __vue_scope_id__ = "data-v-2f46aeca";
374
374
  /* module identifier */
375
375
  const __vue_module_identifier__ = undefined;
376
376
  /* functional template */
@@ -1,6 +1,6 @@
1
1
  import './index-fa6eb4ca.js';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
- import { O as OrInput } from './OrInput-8b90e08f.js';
3
+ import { O as OrInput } from './OrInput-4b82eb59.js';
4
4
  import { u as useClassAttribute } from './useClassAttribute-9bf33346.js';
5
5
  import { defineComponent, ref, computed, watch } from '@vue/composition-api/dist/vue-composition-api.mjs';
6
6
  import { a as InputBoxSize } from './OrInputBox-79ec54ad.js';
@@ -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 __vue_component__$1 = __vue_component__;
140
+ var OrSearch = __vue_component__;
141
141
 
142
- export { __vue_component__$1 as _ };
142
+ export { OrSearch as O };
@@ -4,7 +4,7 @@ import { O as OrError } from './OrError-aad17598.js';
4
4
  import { O as OrExpansionPanel } from './OrExpansionPanel-995caa85.js';
5
5
  import { O as OrHint } from './OrHint-f38a1940.js';
6
6
  import { O as OrIcon } from './OrIcon-8625385f.js';
7
- import { O as OrInput } from './OrInput-8b90e08f.js';
7
+ import { O as OrInput } from './OrInput-4b82eb59.js';
8
8
  import { O as OrInputBox, a as InputBoxSize } from './OrInputBox-79ec54ad.js';
9
9
  import { O as OrLabel } from './OrLabel-172c4b89.js';
10
10
  import { O as OrMenuItem } from './OrMenuItem-26420908.js';
@@ -370,7 +370,7 @@ var __vue_render__ = function () {
370
370
  })]] : [_c('span', {
371
371
  class: _vm.placeholderStyles
372
372
  }, [_vm._v(_vm._s(_vm.placeholder))])]], 2), _vm._v(" "), _vm.multiple && _vm.outerItems.length > 0 ? [_vm._v("\n +" + _vm._s(_vm.outerItems.length) + "\n ")] : _vm._e(), _vm._v(" "), _c('div', {
373
- class: ['layout-row']
373
+ class: ['layout-row', 'm-[-4px] md:m-[-2px]']
374
374
  }, [_c('OrIcon', {
375
375
  attrs: {
376
376
  "icon": _vm.popoverState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down',
@@ -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 OrSortHeader = __vue_component__;
132
+ var __vue_component__$1 = __vue_component__;
133
133
 
134
- export { OrSortHeader as O };
134
+ export { __vue_component__$1 as _ };
@@ -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-a9a779ea.js';
12
- export { O as OrCardV3 } from '../OrCard-58a1ba3e.js';
11
+ export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../OrCardCollection-94a30a19.js';
12
+ export { _ as OrCardV3 } from '../OrCard-29116e1f.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';
@@ -19,7 +19,7 @@ export { _ as OrCode, O as OrCodeLanguages } from '../OrCode-edc7a1f5.js';
19
19
  export { O as OrCollapse } from '../OrCollapse-3aa9a9b7.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-a1a37e83.js';
21
21
  export { _ as OrConfirm } from '../OrConfirm-56d01cff.js';
22
- export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-18c534df.js';
22
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-ff57274f.js';
23
23
  export { D as DEFAULT_TEXT, _ as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker-e212f892.js';
24
24
  export { O as OrError } from '../OrError-31503e4c.js';
25
25
  export { _ as OrErrorTagV3 } from '../OrErrorTag-d0c5bcf4.js';
@@ -37,7 +37,7 @@ export { I as InlineInputType, _ as OrInlineInputV3 } from '../OrInlineInput-9ad
37
37
  export { a as InlineTextEditTrimmingTypes, I as InlineTextEditTypes, _ as OrInlineTextEdit } from '../OrInlineTextEdit-7262efdf.js';
38
38
  export { _ as OrInlineTextareaV3 } from '../OrInlineTextarea-9c6f9044.js';
39
39
  export { a as InputBoxSize, I as InputBoxVariant, a as InputSize, O as OrInputBoxV3, a as SearchSize, a as SelectSize, a as TextareaSize } from '../OrInputBox-79ec54ad.js';
40
- export { I as InputType, O as OrInputV3 } from '../OrInput-8b90e08f.js';
40
+ export { I as InputType, O as OrInputV3 } from '../OrInput-4b82eb59.js';
41
41
  export { a as OrNumberInput, b as OrPassword, _ as OrTextarea } from '../OrPassword-7da938aa.js';
42
42
  export { O as OrInput } from '../OrInput-08f2f666.js';
43
43
  export { O as OrSearch } from '../OrSearch-f7cfa52f.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 { _ as OrSearchV3 } from '../OrSearch-9d402f56.js';
66
+ export { O as OrSearchV3 } from '../OrSearch-3ece0ef6.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-f37e751b.js';
69
+ export { _ as OrSelectV3 } from '../OrSelect-68aacb62.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 { O as OrSortHeaderV3 } from '../OrSortHeader-396e6a7c.js';
75
+ export { _ as OrSortHeaderV3 } from '../OrSortHeader-9932d28f.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';
@@ -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, CardCollectionSortHeader } from './types';
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: PropType<SortHeaderModel>;
30
- default: undefined;
36
+ type: StringConstructor;
37
+ required: true;
31
38
  };
32
- sortHeaders: {
33
- type: PropType<CardCollectionSortHeader[]>;
34
- default: undefined;
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: PropType<SortHeaderModel>;
51
- default: undefined;
57
+ type: StringConstructor;
58
+ required: true;
52
59
  };
53
- sortHeaders: {
54
- type: PropType<CardCollectionSortHeader[]>;
55
- default: undefined;
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: SortHeaderModel;
70
+ sort: string;
64
71
  items: CardCollectionItem[];
65
72
  view: CardCollectionView;
66
- sortHeaders: CardCollectionSortHeader[];
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: SortHeaderModel;
100
+ sort: string;
86
101
  items: CardCollectionItem[];
87
102
  view: CardCollectionView;
88
- sortHeaders: CardCollectionSortHeader[];
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
- sortHeaders: CardCollectionSortHeader[];
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,12 +1,11 @@
1
- export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../../OrCardCollection-a9a779ea.js';
1
+ export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../../OrCardCollection-94a30a19.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';
7
5
  import '../../normalize-component-6e8e3d80.js';
8
6
  import '../../OrIconButton-a215104c.js';
9
7
  import '../../OrIcon-8625385f.js';
8
+ import '../../useClassAttribute-9bf33346.js';
10
9
  import '../../OrTooltip-fbfa05fd.js';
11
10
  import '@vueuse/core';
12
11
  import '../../OrPopover-5dc240f1.js';
@@ -17,10 +16,14 @@ import '../../OrTeleport.vue2-e9ba3054.js';
17
16
  import 'portal-vue';
18
17
  import '../../useElevation-aac032f4.js';
19
18
  import '../../useResponsive-e13dfbb0.js';
20
- import '../../OrInput-8b90e08f.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
+ import '../../OrInput-4b82eb59.js';
21
25
  import '../../OrError-aad17598.js';
22
26
  import '../../OrHint-f38a1940.js';
23
27
  import '../../OrInputBox-79ec54ad.js';
24
28
  import '../../OrLabel-172c4b89.js';
25
29
  import '../../browser-82dea9ed.js';
26
- import '../../OrSortHeader-396e6a7c.js';