@onereach/ui-components 2.68.1-beta.2067.0 → 2.68.1-beta.2069.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-29116e1f.js → OrCard-58a1ba3e.js} +2 -2
  2. package/dist/bundled/v2/{OrCardCollection-94a30a19.js → OrCardCollection-a9a779ea.js} +53 -144
  3. package/dist/bundled/v2/{OrConfirm-ff57274f.js → OrConfirm-18c534df.js} +1 -1
  4. package/dist/bundled/v2/{OrInput-4b82eb59.js → OrInput-8b90e08f.js} +4 -4
  5. package/dist/bundled/v2/{OrSearch-3ece0ef6.js → OrSearch-9d402f56.js} +3 -3
  6. package/dist/bundled/v2/{OrSelect-68aacb62.js → OrSelect-f37e751b.js} +2 -2
  7. package/dist/bundled/v2/{OrSortHeader-9932d28f.js → OrSortHeader-396e6a7c.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 +0 -3
  10. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +28 -42
  11. package/dist/bundled/v2/components/or-card-collection-v3/index.js +5 -8
  12. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +1 -1
  13. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  14. package/dist/bundled/v2/components/or-confirm-v3/index.js +2 -2
  15. package/dist/bundled/v2/components/or-input-v3/index.js +1 -1
  16. package/dist/bundled/v2/components/or-search-v3/index.js +2 -2
  17. package/dist/bundled/v2/components/or-select-v3/index.js +2 -2
  18. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  19. package/dist/bundled/v2/index.js +8 -8
  20. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-0e029303.js → OrCardCollection.vue_vue_type_script_lang-3993a015.js} +48 -98
  21. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-18997376.js → OrConfirm.vue_vue_type_script_lang-289b5600.js} +37 -7
  22. package/dist/bundled/v3/{OrInput-e97211bb.js → OrInput-fa782fc1.js} +1 -1
  23. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-147a1fb9.js → OrSearch.vue_vue_type_script_lang-ed78b21f.js} +2 -2
  24. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-58b92fb0.js → OrSelect.vue_vue_type_script_lang-c74a63e1.js} +1 -1
  25. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-61b79a5a.js → OrTabs.vue_vue_type_script_lang-919b2021.js} +36 -10
  26. package/dist/bundled/v3/components/index.js +8 -10
  27. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -3
  28. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +28 -42
  29. package/dist/bundled/v3/components/or-card-collection-v3/index.js +5 -12
  30. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +1 -1
  31. package/dist/bundled/v3/components/or-confirm-v3/index.js +2 -3
  32. package/dist/bundled/v3/components/or-search-v3/index.js +2 -2
  33. package/dist/bundled/v3/components/or-select-v3/index.js +2 -2
  34. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
  35. package/dist/bundled/v3/index.js +301 -316
  36. package/dist/esm/v2/{OrCardCollection-54648673.js → OrCardCollection-4f001551.js} +52 -144
  37. package/dist/esm/v2/{OrConfirm-74e21c56.js → OrConfirm-b0b2e43c.js} +1 -1
  38. package/dist/esm/v2/{OrInput-b8a1627f.js → OrInput-2f16a7ac.js} +4 -4
  39. package/dist/esm/v2/{OrSearch-0c0d1773.js → OrSearch-ddb7c1fe.js} +1 -1
  40. package/dist/esm/v2/{OrSelect-0e6e7868.js → OrSelect-528c7480.js} +2 -2
  41. package/dist/esm/v2/components/index.js +5 -5
  42. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -3
  43. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +28 -42
  44. package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -8
  45. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +1 -1
  46. package/dist/esm/v2/components/or-confirm-v3/index.js +2 -2
  47. package/dist/esm/v2/components/or-input-v3/index.js +1 -1
  48. package/dist/esm/v2/components/or-search-v3/index.js +2 -2
  49. package/dist/esm/v2/components/or-select-v3/index.js +2 -2
  50. package/dist/esm/v2/index.js +5 -5
  51. package/dist/esm/v3/OrCardCollection-5a0febaf.js +198 -0
  52. package/dist/esm/v3/{OrConfirm-a3f312a6.js → OrConfirm-906427ef.js} +1 -1
  53. package/dist/esm/v3/{OrInput-e2ac1182.js → OrInput-41691fb3.js} +1 -1
  54. package/dist/esm/v3/{OrSearch-01225d82.js → OrSearch-cdde55ce.js} +1 -1
  55. package/dist/esm/v3/{OrSelect-2e00d4c8.js → OrSelect-d9c76482.js} +2 -2
  56. package/dist/esm/v3/components/index.js +5 -5
  57. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -3
  58. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +28 -42
  59. package/dist/esm/v3/components/or-card-collection-v3/index.js +5 -8
  60. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +1 -1
  61. package/dist/esm/v3/components/or-confirm-v3/index.js +2 -2
  62. package/dist/esm/v3/components/or-input-v3/index.js +1 -1
  63. package/dist/esm/v3/components/or-search-v3/index.js +2 -2
  64. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  65. package/dist/esm/v3/index.js +5 -5
  66. package/package.json +1 -1
  67. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +19 -115
  68. package/src/components/or-card-collection-v3/OrCardCollection.vue +67 -93
  69. package/src/components/or-card-collection-v3/styles.ts +1 -1
  70. package/src/components/or-card-collection-v3/types.ts +1 -1
  71. package/src/components/or-input-v3/OrInput.vue +1 -1
  72. package/src/components/or-select-v3/OrSelect.vue +1 -1
  73. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
  74. package/dist/bundled/v3/OrButton-8ab33d9d.js +0 -33
  75. package/dist/bundled/v3/OrMenu-f26e8e55.js +0 -29
  76. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
  77. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
  78. package/dist/esm/v3/OrCardCollection-9d0036fa.js +0 -259
  79. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
  80. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +0 -39
  81. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +0 -40
@@ -1,15 +1,11 @@
1
- import { defineComponent, computed, ref, watch } from 'vue-demi';
1
+ import { defineComponent, ref, computed, watch } from 'vue-demi';
2
2
  import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
3
  import '@vueuse/core';
4
+ import { _ as __vue_component__$1 } from './OrCard-de799db0.js';
4
5
  import { _ as __vue_component__$2 } from './OrIconButton-e17e4944.js';
5
- import { _ as __vue_component__$4 } from './OrMenu-df27d0ef.js';
6
- import './OrPopover-9bafbdb4.js';
7
- import { _ as __vue_component__$5 } from './OrMenuItem-c7f28480.js';
8
- import { _ as __vue_component__$6 } from './OrIcon-5e394c62.js';
6
+ import { _ as __vue_component__$3 } from './OrInput-2f16a7ac.js';
7
+ import { _ as __vue_component__$4 } from './OrSortHeader-19bf94ca.js';
9
8
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
10
- import { _ as __vue_component__$3 } from './OrButton-357a5756.js';
11
- import { _ as __vue_component__$7 } from './OrSearch-0c0d1773.js';
12
- import './OrInputBox-4d5a318d.js';
13
9
 
14
10
  var CardCollectionView;
15
11
  (function (CardCollectionView) {
@@ -33,7 +29,7 @@ const CardCollectionToolbarPanel = [
33
29
  // Layout
34
30
  'layout-row',
35
31
  // Spacing
36
- 'gap-lg+'];
32
+ 'gap-sm+'];
37
33
  const CardCollectionContent = [
38
34
  // Layout
39
35
  'grid',
@@ -46,74 +42,13 @@ const CardCollectionContentViews = {
46
42
  'list': []
47
43
  };
48
44
 
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
- /* script */
70
- const __vue_script__$1 = script$1;
71
-
72
- /* template */
73
- var __vue_render__$1 = function () {
74
- var _vm = this;
75
- var _h = _vm.$createElement;
76
- var _c = _vm._self._c || _h;
77
- return _c('div', {
78
- class: _vm.contentStyles
79
- }, [_vm._l(_vm.items, function (item) {
80
- return _vm._t("item", null, null, {
81
- item: item,
82
- mode: _vm.mode
83
- });
84
- })], 2);
85
- };
86
- var __vue_staticRenderFns__$1 = [];
87
-
88
- /* style */
89
- const __vue_inject_styles__$1 = undefined;
90
- /* scoped */
91
- const __vue_scope_id__$1 = undefined;
92
- /* module identifier */
93
- const __vue_module_identifier__$1 = undefined;
94
- /* functional template */
95
- const __vue_is_functional_template__$1 = false;
96
- /* style inject */
97
-
98
- /* style inject SSR */
99
-
100
- /* style inject shadow dom */
101
-
102
- const __vue_component__$1 = /*#__PURE__*/normalizeComponent({
103
- render: __vue_render__$1,
104
- staticRenderFns: __vue_staticRenderFns__$1
105
- }, __vue_inject_styles__$1, __vue_script__$1, __vue_scope_id__$1, __vue_is_functional_template__$1, __vue_module_identifier__$1, false, undefined, undefined, undefined);
106
-
107
45
  var script = defineComponent({
108
46
  name: 'OrCardCollection',
109
47
  components: {
110
- OrCardCollectionView: __vue_component__$1,
48
+ OrCard: __vue_component__$1,
111
49
  OrIconButton: __vue_component__$2,
112
- OrButton: __vue_component__$3,
113
- OrMenu: __vue_component__$4,
114
- OrMenuItem: __vue_component__$5,
115
- OrIcon: __vue_component__$6,
116
- OrSearch: __vue_component__$7
50
+ OrInput: __vue_component__$3,
51
+ OrSortHeader: __vue_component__$4
117
52
  },
118
53
  inheritAttrs: false,
119
54
  props: {
@@ -126,12 +61,12 @@ var script = defineComponent({
126
61
  default: CardCollectionView.Grid
127
62
  },
128
63
  sort: {
129
- type: String,
130
- required: true
64
+ type: Object,
65
+ default: undefined
131
66
  },
132
- sortOptions: {
67
+ sortHeaders: {
133
68
  type: Array,
134
- default: () => []
69
+ default: undefined
135
70
  },
136
71
  search: {
137
72
  type: String,
@@ -143,13 +78,12 @@ var script = defineComponent({
143
78
  setup(props, context) {
144
79
  // Refs
145
80
  const root = ref();
146
- const sortMenu = ref();
147
- const sortButton = ref();
148
81
  // Styles
149
82
  const classAttribute = useClassAttribute();
150
83
  const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
151
84
  const toolbarStyles = computed(() => [...CardCollectionToolbar]);
152
85
  const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
86
+ const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
153
87
  // State
154
88
  const proxyView = ref(props.view);
155
89
  const proxySort = ref(props.sort);
@@ -161,12 +95,6 @@ var script = defineComponent({
161
95
  function switchToListView() {
162
96
  proxyView.value = CardCollectionView.List;
163
97
  }
164
- function handleSort(sort) {
165
- proxySort.value = sort;
166
- }
167
- function handleSearch(search) {
168
- proxySearch.value = search;
169
- }
170
98
  // Effects
171
99
  watch(() => props.view, value => {
172
100
  proxyView.value = value;
@@ -188,18 +116,15 @@ var script = defineComponent({
188
116
  });
189
117
  return {
190
118
  root,
191
- sortMenu,
192
- sortButton,
193
119
  rootStyles,
194
120
  toolbarStyles,
195
121
  toolbarPanelStyles,
122
+ contentStyles,
196
123
  proxyView,
197
124
  proxySort,
198
125
  proxySearch,
199
126
  switchToGridView,
200
- switchToListView,
201
- handleSort,
202
- handleSearch
127
+ switchToListView
203
128
  };
204
129
  }
205
130
  });
@@ -219,48 +144,36 @@ var __vue_render__ = function () {
219
144
  class: _vm.toolbarStyles
220
145
  }, [_c('div', {
221
146
  class: _vm.toolbarPanelStyles
222
- }, [_vm.sortOptions.length ? [_c('OrButton', {
223
- ref: "sortButton",
224
- attrs: {
225
- "variant": "link",
226
- "color": "inherit"
227
- },
228
- on: {
229
- "click": function ($event) {
230
- return _vm.sortMenu.toggle();
231
- }
232
- }
233
- }, [_vm._v("\n " + _vm._s(_vm.proxySort) + "\n "), _vm.sortMenu ? _c('OrIcon', {
234
- attrs: {
235
- "icon": _vm.sortMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'
236
- }
237
- }) : _vm._e()], 1), _vm._v(" "), _c('OrMenu', {
238
- ref: "sortMenu",
239
- attrs: {
240
- "trigger": _vm.sortButton && _vm.sortButton.root
241
- }
242
- }, _vm._l(_vm.sortOptions, function (sortItem) {
243
- return _c('OrMenuItem', {
244
- key: sortItem,
245
- on: {
246
- "click": function ($event) {
247
- return _vm.handleSort(sortItem);
248
- }
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"
249
159
  }
250
- }, [_vm._v("\n " + _vm._s(sortItem) + "\n ")]);
251
- }), 1)] : _vm._e()], 2), _vm._v(" "), _c('div', {
160
+ }, [_vm._v("\n " + _vm._s(header.label) + "\n ")]);
161
+ }) : _vm._e()], 2), _vm._v(" "), _c('div', {
252
162
  class: _vm.toolbarPanelStyles
253
- }, [_c('OrSearch', {
254
- staticClass: "md:w-[350px]",
163
+ }, [_c('OrInput', {
255
164
  attrs: {
256
- "size": "s"
165
+ "type": 'search',
166
+ "placeholder": 'Search',
167
+ "size": 's'
257
168
  },
258
- on: {
259
- "search": _vm.handleSearch
169
+ model: {
170
+ value: _vm.proxySearch,
171
+ callback: function ($$v) {
172
+ _vm.proxySearch = $$v;
173
+ },
174
+ expression: "proxySearch"
260
175
  }
261
- }), _vm._v(" "), _c('div', {
262
- staticClass: "layout-row gap-sm"
263
- }, [_c('OrIconButton', {
176
+ }), _vm._v(" "), _c('OrIconButton', {
264
177
  attrs: {
265
178
  "icon": 'grid_view'
266
179
  },
@@ -271,29 +184,24 @@ var __vue_render__ = function () {
271
184
  }
272
185
  }), _vm._v(" "), _c('OrIconButton', {
273
186
  attrs: {
274
- "icon": 'view_agenda'
187
+ "icon": 'view_list'
275
188
  },
276
189
  on: {
277
190
  "click": function ($event) {
278
191
  return _vm.switchToListView();
279
192
  }
280
193
  }
281
- }), _vm._v(" "), _vm._t("addon")], 2)], 1)]), _vm._v(" "), _vm._t(_vm.proxyView, function () {
282
- return [_c('OrCardCollectionView', {
283
- attrs: {
284
- "items": _vm.items,
285
- "mode": _vm.proxyView
286
- },
287
- scopedSlots: _vm._u([{
288
- key: "item",
289
- fn: function (props) {
290
- return [_vm._t("item", null, null, props)];
291
- }
292
- }], null, true)
293
- })];
294
- }, null, {
295
- items: _vm.items
296
- })], 2);
194
+ }), _vm._v(" "), _vm._t("addon")], 2)]), _vm._v(" "), _c('div', {
195
+ class: _vm.contentStyles
196
+ }, [_vm.proxyView === 'grid' ? _vm._l(_vm.items, function (item) {
197
+ return _c('OrCard', {
198
+ key: item.id
199
+ }, [_vm._t("gridItem", null, null, item)], 2);
200
+ }) : _vm._e(), _vm._v(" "), _vm.proxyView === 'list' ? _vm._l(_vm.items, function (item) {
201
+ return _c('OrCard', {
202
+ key: item.id
203
+ }, [_vm._t("listItem", null, null, item)], 2);
204
+ }) : _vm._e()], 2)]);
297
205
  };
298
206
  var __vue_staticRenderFns__ = [];
299
207
 
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue-demi';
2
2
  import { _ as __vue_component__$2, a as ButtonColor } from './OrButton-357a5756.js';
3
3
  import { _ as __vue_component__$1 } from './OrOverlay-18ba2dc6.js';
4
- import { _ as __vue_component__$3 } from './OrInput-b8a1627f.js';
4
+ import { _ as __vue_component__$3 } from './OrInput-2f16a7ac.js';
5
5
  import { useMagicKeys, whenever } from '@vueuse/core';
6
6
  import { logicAnd } from '@vueuse/math';
7
7
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
@@ -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', 'm-[-4px] md:m-[-2px]']
304
+ class: ['layout-row']
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-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}",
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}",
368
368
  map: undefined,
369
369
  media: undefined
370
370
  });
371
371
  };
372
372
  /* scoped */
373
- const __vue_scope_id__ = "data-v-2f46aeca";
373
+ const __vue_scope_id__ = "data-v-677a1aa4";
374
374
  /* module identifier */
375
375
  const __vue_module_identifier__ = undefined;
376
376
  /* functional template */
@@ -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 { _ as __vue_component__$1 } from './OrInput-b8a1627f.js';
4
+ import { _ as __vue_component__$1 } from './OrInput-2f16a7ac.js';
5
5
  import { a as InputBoxSize } from './OrInputBox-4d5a318d.js';
6
6
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
7
7
 
@@ -9,7 +9,7 @@ import { _ as __vue_component__$3 } from './OrExpansionPanel-968ddc61.js';
9
9
  import { _ as __vue_component__$4 } from './OrHint-42dc9ebb.js';
10
10
  import { _ as __vue_component__$5 } from './OrIcon-5e394c62.js';
11
11
  import { _ as __vue_component__$7, a as InputBoxSize } from './OrInputBox-4d5a318d.js';
12
- import { _ as __vue_component__$6 } from './OrInput-b8a1627f.js';
12
+ import { _ as __vue_component__$6 } from './OrInput-2f16a7ac.js';
13
13
  import { _ as __vue_component__$8 } from './OrLabel-2a9f1477.js';
14
14
  import { _ as __vue_component__$9 } from './OrMenuItem-c7f28480.js';
15
15
  import { _ as __vue_component__$a } from './OrPopover-9bafbdb4.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', 'm-[-4px] md:m-[-2px]']
373
+ class: ['layout-row']
374
374
  }, [_c('OrIcon', {
375
375
  attrs: {
376
376
  "icon": _vm.popoverState === 'open' ? 'arrow_drop_up' : 'arrow_drop_down',
@@ -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-54648673.js';
11
+ export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../OrCardCollection-4f001551.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-74e21c56.js';
22
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../OrConfirm-b0b2e43c.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-cfe
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-b8a1627f.js';
40
+ export { I as InputType, _ as OrInputV3 } from '../OrInput-2f16a7ac.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 '../OrP
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-0c0d1773.js';
66
+ export { _ as OrSearchV3 } from '../OrSearch-ddb7c1fe.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-0e6e7868.js';
69
+ export { _ as OrSelectV3 } from '../OrSelect-528c7480.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';
@@ -1,5 +1,4 @@
1
1
  import { Meta, StoryFn } from '@storybook/vue3';
2
- import OrCardCollection from './OrCardCollection.vue';
3
2
  declare const _default: Meta<import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
4
3
  [x: string]: ((...args: any[]) => any) | null;
5
4
  } | string[], {} & {}, {
@@ -16,5 +15,3 @@ export declare const WithSorting: StoryFn<import("vue").ComponentOptions<import(
16
15
  } | string[], {} & {}, {
17
16
  [x: number]: string;
18
17
  } | {}, true>)>;
19
- export declare const OverrideViewContainer: StoryFn<typeof OrCardCollection>;
20
- export declare const WithLink: StoryFn<typeof OrCardCollection>;
@@ -1,28 +1,21 @@
1
1
  import { PropType } from 'vue-demi';
2
+ import { SortHeaderModel } from '../or-sort-header-v3';
2
3
  import { CardCollectionView } from './props';
3
- import { CardCollectionItem } from './types';
4
+ import { CardCollectionItem, CardCollectionSortHeader } from './types';
4
5
  declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
5
6
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
6
- sortMenu: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
7
- [x: string]: ((...args: any[]) => any) | null;
8
- } | string[], {} & {}, {
9
- [x: number]: string;
10
- } | {}, true>)) | undefined>;
11
- sortButton: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
12
- [x: string]: ((...args: any[]) => any) | null;
13
- } | string[], {} & {}, {
14
- [x: number]: string;
15
- } | {}, true>)) | undefined>;
16
7
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
17
8
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
18
9
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
10
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
19
11
  proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
20
- proxySort: import("@vue/composition-api").Ref<string>;
12
+ proxySort: import("@vue/composition-api").Ref<{
13
+ column: string;
14
+ direction: "asc" | "desc";
15
+ }>;
21
16
  proxySearch: import("@vue/composition-api").Ref<string>;
22
17
  switchToGridView: () => void;
23
18
  switchToListView: () => void;
24
- handleSort: (sort: string) => void;
25
- handleSearch: (search: string) => void;
26
19
  }> & import("@vue/composition-api").Data, {}, {}, {
27
20
  items: {
28
21
  type: PropType<CardCollectionItem[]>;
@@ -33,12 +26,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
33
26
  default: CardCollectionView;
34
27
  };
35
28
  sort: {
36
- type: StringConstructor;
37
- required: true;
29
+ type: PropType<SortHeaderModel>;
30
+ default: undefined;
38
31
  };
39
- sortOptions: {
40
- type: PropType<string[]>;
41
- default: () => never[];
32
+ sortHeaders: {
33
+ type: PropType<CardCollectionSortHeader[]>;
34
+ default: undefined;
42
35
  };
43
36
  search: {
44
37
  type: StringConstructor;
@@ -54,12 +47,12 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
54
47
  default: CardCollectionView;
55
48
  };
56
49
  sort: {
57
- type: StringConstructor;
58
- required: true;
50
+ type: PropType<SortHeaderModel>;
51
+ default: undefined;
59
52
  };
60
- sortOptions: {
61
- type: PropType<string[]>;
62
- default: () => never[];
53
+ sortHeaders: {
54
+ type: PropType<CardCollectionSortHeader[]>;
55
+ default: undefined;
63
56
  };
64
57
  search: {
65
58
  type: StringConstructor;
@@ -67,46 +60,39 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
67
60
  };
68
61
  }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
69
62
  search: string;
70
- sort: string;
63
+ sort: SortHeaderModel;
71
64
  items: CardCollectionItem[];
72
65
  view: CardCollectionView;
73
- sortOptions: string[];
66
+ sortHeaders: CardCollectionSortHeader[];
74
67
  } & {} & {
75
68
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
76
69
  }, import("@vue/composition-api").ShallowUnwrapRef<{
77
70
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
78
- sortMenu: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
79
- [x: string]: ((...args: any[]) => any) | null;
80
- } | string[], {} & {}, {
81
- [x: number]: string;
82
- } | {}, true>)) | undefined>;
83
- sortButton: import("@vue/composition-api").Ref<(import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<unknown>, import("@vue/composition-api").MethodOptions, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>, import("@vue/composition-api").ExtractPropTypes<import("@vue/composition-api").ComponentPropsOptions<import("@vue/composition-api").Data>>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
84
- [x: string]: ((...args: any[]) => any) | null;
85
- } | string[], {} & {}, {
86
- [x: number]: string;
87
- } | {}, true>)) | undefined>;
88
71
  rootStyles: import("@vue/composition-api").ComputedRef<(string | undefined)[]>;
89
72
  toolbarStyles: import("@vue/composition-api").ComputedRef<string[]>;
90
73
  toolbarPanelStyles: import("@vue/composition-api").ComputedRef<string[]>;
74
+ contentStyles: import("@vue/composition-api").ComputedRef<string[]>;
91
75
  proxyView: import("@vue/composition-api").Ref<CardCollectionView>;
92
- proxySort: import("@vue/composition-api").Ref<string>;
76
+ proxySort: import("@vue/composition-api").Ref<{
77
+ column: string;
78
+ direction: "asc" | "desc";
79
+ }>;
93
80
  proxySearch: import("@vue/composition-api").Ref<string>;
94
81
  switchToGridView: () => void;
95
82
  switchToListView: () => void;
96
- handleSort: (sort: string) => void;
97
- handleSearch: (search: string) => void;
98
83
  }>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
99
84
  search: string;
100
- sort: string;
85
+ sort: SortHeaderModel;
101
86
  items: CardCollectionItem[];
102
87
  view: CardCollectionView;
103
- sortOptions: string[];
88
+ sortHeaders: CardCollectionSortHeader[];
104
89
  } & {} & {
105
90
  [x: string & `on${string}`]: ((...args: any[]) => any) | undefined;
106
91
  }, {
107
92
  search: string;
93
+ sort: SortHeaderModel;
108
94
  items: CardCollectionItem[];
109
95
  view: CardCollectionView;
110
- sortOptions: string[];
96
+ sortHeaders: CardCollectionSortHeader[];
111
97
  }, true>);
112
98
  export default _default;
@@ -1,10 +1,11 @@
1
- export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../../OrCardCollection-54648673.js';
1
+ export { C as CardCollectionView, _ as OrCardCollectionV3 } from '../../OrCardCollection-4f001551.js';
2
2
  import 'vue-demi';
3
3
  import '../../useClassAttribute-47fdb016.js';
4
4
  import '@vueuse/core';
5
+ import '../../OrCard-de799db0.js';
6
+ import '../../normalize-component-6e8e3d80.js';
5
7
  import '../../OrIconButton-e17e4944.js';
6
8
  import '../../OrIcon-5e394c62.js';
7
- import '../../normalize-component-6e8e3d80.js';
8
9
  import '../../OrTooltip-513bee30.js';
9
10
  import '../../OrPopover-9bafbdb4.js';
10
11
  import '@floating-ui/dom';
@@ -14,14 +15,10 @@ import '../../OrBottomSheet-16c2e610.js';
14
15
  import '../../OrOverlay-18ba2dc6.js';
15
16
  import '../../OrTeleport.vue2-fb92f29f.js';
16
17
  import 'portal-vue';
17
- import '../../OrMenu-df27d0ef.js';
18
- import '../../OrMenuItem-c7f28480.js';
19
- import '../../OrButton-357a5756.js';
20
- import '../../OrLoader-f857d55b.js';
21
- import '../../OrSearch-0c0d1773.js';
22
- import '../../OrInput-b8a1627f.js';
18
+ import '../../OrInput-2f16a7ac.js';
23
19
  import '../../OrError-d267ee9a.js';
24
20
  import '../../OrHint-42dc9ebb.js';
25
21
  import '../../OrInputBox-4d5a318d.js';
26
22
  import '../../OrLabel-2a9f1477.js';
27
23
  import '../../browser-82dea9ed.js';
24
+ import '../../OrSortHeader-19bf94ca.js';
@@ -1,5 +1,5 @@
1
1
  export interface CardCollectionItem {
2
- key?: string;
2
+ id: string;
3
3
  }
4
4
  export interface CardCollectionSortHeader {
5
5
  value: string;
@@ -1,4 +1,4 @@
1
- export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-74e21c56.js';
1
+ export { C as ConfirmType, _ as OrConfirmV3 } from '../../OrConfirm-b0b2e43c.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrButton-357a5756.js';
4
4
  import '../../useClassAttribute-47fdb016.js';
@@ -9,7 +9,7 @@ import '../../OrOverlay-18ba2dc6.js';
9
9
  import '../../useElevation-31bfe1f6.js';
10
10
  import '../../OrTeleport.vue2-fb92f29f.js';
11
11
  import 'portal-vue';
12
- import '../../OrInput-b8a1627f.js';
12
+ import '../../OrInput-2f16a7ac.js';
13
13
  import '../../OrError-d267ee9a.js';
14
14
  import '../../OrHint-42dc9ebb.js';
15
15
  import '../../OrIconButton-e17e4944.js';
@@ -1,4 +1,4 @@
1
- export { I as InputType, _ as OrInputV3 } from '../../OrInput-b8a1627f.js';
1
+ export { I as InputType, _ as OrInputV3 } from '../../OrInput-2f16a7ac.js';
2
2
  export { a as InputSize } from '../../OrInputBox-4d5a318d.js';
3
3
  import 'vue-demi';
4
4
  import '../../useClassAttribute-47fdb016.js';
@@ -1,9 +1,9 @@
1
- export { _ as OrSearchV3 } from '../../OrSearch-0c0d1773.js';
1
+ export { _ as OrSearchV3 } from '../../OrSearch-ddb7c1fe.js';
2
2
  export { a as SearchSize } from '../../OrInputBox-4d5a318d.js';
3
3
  import 'vue-demi';
4
4
  import '@vueuse/core';
5
5
  import '../../useClassAttribute-47fdb016.js';
6
- import '../../OrInput-b8a1627f.js';
6
+ import '../../OrInput-2f16a7ac.js';
7
7
  import '../../OrError-d267ee9a.js';
8
8
  import '../../normalize-component-6e8e3d80.js';
9
9
  import '../../OrHint-42dc9ebb.js';
@@ -1,4 +1,4 @@
1
- export { _ as OrSelectV3 } from '../../OrSelect-0e6e7868.js';
1
+ export { _ as OrSelectV3 } from '../../OrSelect-528c7480.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-b8a1627f.js';
16
+ import '../../OrInput-2f16a7ac.js';
17
17
  import '../../OrIconButton-e17e4944.js';
18
18
  import '../../OrTooltip-513bee30.js';
19
19
  import '../../OrPopover-9bafbdb4.js';