@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,16 +1,43 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, resolveComponent, createBlock, ref, watch } from 'vue';
1
+ import { openBlock, createElementBlock, mergeProps, renderSlot, resolveComponent, withModifiers, createBlock, normalizeClass, createCommentVNode, defineComponent, ref, computed, watch } from 'vue';
2
+ import { s as script$1 } from './OrCard.vue_vue_type_script_lang-165de137.js';
2
3
  import './OrIconButton-4bd33e3c.js';
3
4
  import { s as script$3 } from './OrIconButton.vue_vue_type_script_lang-641f6e06.js';
4
- import './OrButton-8ab33d9d.js';
5
- import './OrMenu-f26e8e55.js';
6
- import { s as script$5 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
7
- import './OrMenuItem-4feaba6c.js';
8
- import { s as script$6 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
9
- import './OrIcon-d878b768.js';
10
- import { s as script$2 } from './OrSearch.vue_vue_type_script_lang-147a1fb9.js';
5
+ import './OrInput-fa782fc1.js';
6
+ import { s as script$4 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
7
+ import { s as script$2 } from './OrSortHeader.vue_vue_type_script_lang-75115125.js';
11
8
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
12
- import { s as script$4 } from './OrButton.vue_vue_type_script_lang-3718b300.js';
13
- import { s as script$7 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
9
+
10
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
11
+ return openBlock(), createElementBlock("div", mergeProps({
12
+ ref: "root"
13
+ }, _ctx.$attrs, {
14
+ class: _ctx.rootStyles
15
+ }), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */);
16
+ }
17
+
18
+ script$1.render = render$1;
19
+ script$1.__file = "src/components/or-card-v3/OrCard.vue";
20
+
21
+ const _hoisted_1 = ["activated"];
22
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
23
+ const _component_OrIcon = resolveComponent("OrIcon");
24
+ return openBlock(), createElementBlock("div", mergeProps({
25
+ ref: "root"
26
+ }, _ctx.$attrs, {
27
+ class: _ctx.rootStyles,
28
+ activated: _ctx.activated ? '' : null,
29
+ onClick: _cache[0] || (_cache[0] = withModifiers($event => _ctx.toggleDirection(), ["stop"]))
30
+ }), [renderSlot(_ctx.$slots, "default"), _ctx.activated ? (openBlock(), createBlock(_component_OrIcon, {
31
+ key: 0,
32
+ class: normalizeClass({
33
+ 'rotate-180': _ctx.proxyModelValue.direction === 'asc'
34
+ }),
35
+ icon: 'arrow_downward'
36
+ }, null, 8 /* PROPS */, ["class"])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
37
+ }
38
+
39
+ script$2.render = render;
40
+ script$2.__file = "src/components/or-sort-header-v3/OrSortHeader.vue";
14
41
 
15
42
  var CardCollectionView;
16
43
  (function (CardCollectionView) {
@@ -34,7 +61,7 @@ const CardCollectionToolbarPanel = [
34
61
  // Layout
35
62
  'layout-row',
36
63
  // Spacing
37
- 'gap-lg+'];
64
+ 'gap-sm+'];
38
65
  const CardCollectionContent = [
39
66
  // Layout
40
67
  'grid',
@@ -47,80 +74,13 @@ const CardCollectionContentViews = {
47
74
  'list': []
48
75
  };
49
76
 
50
- var script$1 = defineComponent({
51
- name: 'OrCardCollectionView',
52
- props: {
53
- items: {
54
- type: Array,
55
- default: []
56
- },
57
- mode: {
58
- type: String,
59
- required: true
60
- }
61
- },
62
- setup(props) {
63
- const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
64
- return {
65
- contentStyles
66
- };
67
- }
68
- });
69
-
70
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
71
- return openBlock(), createElementBlock("div", {
72
- class: normalizeClass(_ctx.contentStyles)
73
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index) => {
74
- return renderSlot(_ctx.$slots, "item", mergeProps({
75
- key: item.key || index
76
- }, {
77
- item,
78
- mode: _ctx.mode
79
- }));
80
- }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
81
- }
82
-
83
- script$1.render = render$1;
84
- script$1.__file = "src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue";
85
-
86
- function render(_ctx, _cache, $props, $setup, $data, $options) {
87
- const _component_OrInput = resolveComponent("OrInput");
88
- return openBlock(), createBlock(_component_OrInput, mergeProps({
89
- ref: "root"
90
- }, _ctx.$attrs, {
91
- modelValue: _ctx.localModelValue,
92
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.localModelValue = $event),
93
- modelModifiers: {
94
- trim: true
95
- },
96
- class: _ctx.rootStyles,
97
- type: 'search',
98
- size: _ctx.size,
99
- placeholder: _ctx.placeholder,
100
- debounce: _ctx.debounce,
101
- disabled: _ctx.disabled,
102
- "disable-default-styles": _ctx.disableDefaultStyles,
103
- onInput: _cache[1] || (_cache[1] = $event => _ctx.$emit('input', $event)),
104
- onKeydown: _cache[2] || (_cache[2] = $event => _ctx.$emit('keydown', $event)),
105
- onKeyup: _cache[3] || (_cache[3] = $event => _ctx.$emit('keyup', $event)),
106
- onFocus: _cache[4] || (_cache[4] = $event => _ctx.$emit('focus', $event)),
107
- onBlur: _cache[5] || (_cache[5] = $event => _ctx.$emit('blur', $event))
108
- }), null, 16 /* FULL_PROPS */, ["modelValue", "class", "size", "placeholder", "debounce", "disabled", "disable-default-styles"]);
109
- }
110
-
111
- script$2.render = render;
112
- script$2.__file = "src/components/or-search-v3/OrSearch.vue";
113
-
114
77
  var script = defineComponent({
115
78
  name: 'OrCardCollection',
116
79
  components: {
117
- OrCardCollectionView: script$1,
80
+ OrCard: script$1,
118
81
  OrIconButton: script$3,
119
- OrButton: script$4,
120
- OrMenu: script$5,
121
- OrMenuItem: script$6,
122
- OrIcon: script$7,
123
- OrSearch: script$2
82
+ OrInput: script$4,
83
+ OrSortHeader: script$2
124
84
  },
125
85
  inheritAttrs: false,
126
86
  props: {
@@ -133,12 +93,12 @@ var script = defineComponent({
133
93
  default: CardCollectionView.Grid
134
94
  },
135
95
  sort: {
136
- type: String,
137
- required: true
96
+ type: Object,
97
+ default: undefined
138
98
  },
139
- sortOptions: {
99
+ sortHeaders: {
140
100
  type: Array,
141
- default: () => []
101
+ default: undefined
142
102
  },
143
103
  search: {
144
104
  type: String,
@@ -150,13 +110,12 @@ var script = defineComponent({
150
110
  setup(props, context) {
151
111
  // Refs
152
112
  const root = ref();
153
- const sortMenu = ref();
154
- const sortButton = ref();
155
113
  // Styles
156
114
  const classAttribute = useClassAttribute();
157
115
  const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
158
116
  const toolbarStyles = computed(() => [...CardCollectionToolbar]);
159
117
  const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
118
+ const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[proxyView.value]]);
160
119
  // State
161
120
  const proxyView = ref(props.view);
162
121
  const proxySort = ref(props.sort);
@@ -168,12 +127,6 @@ var script = defineComponent({
168
127
  function switchToListView() {
169
128
  proxyView.value = CardCollectionView.List;
170
129
  }
171
- function handleSort(sort) {
172
- proxySort.value = sort;
173
- }
174
- function handleSearch(search) {
175
- proxySearch.value = search;
176
- }
177
130
  // Effects
178
131
  watch(() => props.view, value => {
179
132
  proxyView.value = value;
@@ -195,18 +148,15 @@ var script = defineComponent({
195
148
  });
196
149
  return {
197
150
  root,
198
- sortMenu,
199
- sortButton,
200
151
  rootStyles,
201
152
  toolbarStyles,
202
153
  toolbarPanelStyles,
154
+ contentStyles,
203
155
  proxyView,
204
156
  proxySort,
205
157
  proxySearch,
206
158
  switchToGridView,
207
- switchToListView,
208
- handleSort,
209
- handleSearch
159
+ switchToListView
210
160
  };
211
161
  }
212
162
  });
@@ -1,13 +1,43 @@
1
- import { defineComponent, ref, computed, watch } from 'vue';
1
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeClass, renderSlot, createBlock, Fragment, createTextVNode, toDisplayString, createCommentVNode, defineComponent, ref, computed, watch } from 'vue';
2
2
  import { useMagicKeys, whenever } from '@vueuse/core';
3
3
  import { l as logicAnd } from './index-01519e46.js';
4
4
  import './OrBottomSheet.vue_vue_type_script_lang-6fb49de9.js';
5
- import './OrButton-8ab33d9d.js';
6
- import './OrInput-e97211bb.js';
7
- import { s as script$2, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-3718b300.js';
8
- import { s as script$1 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
5
+ import { s as script$1, a as ButtonColor } from './OrButton.vue_vue_type_script_lang-3718b300.js';
6
+ import './OrInput-fa782fc1.js';
7
+ import { s as script$2 } from './OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
9
8
  import { s as script$3 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
10
9
 
10
+ const _hoisted_1 = ["type", "disabled"];
11
+ const _hoisted_2 = {
12
+ key: 0,
13
+ class: /*#__PURE__*/normalizeClass(['absolute'])
14
+ };
15
+ function render(_ctx, _cache, $props, $setup, $data, $options) {
16
+ const _component_OrLoader = resolveComponent("OrLoader");
17
+ return openBlock(), createElementBlock("button", mergeProps({
18
+ ref: "root"
19
+ }, _ctx.$attrs, {
20
+ class: _ctx.rootStyles,
21
+ type: _ctx.type,
22
+ disabled: _ctx.disabled,
23
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.$emit('click', $event)),
24
+ onFocus: _cache[1] || (_cache[1] = $event => _ctx.$emit('focus', $event)),
25
+ onBlur: _cache[2] || (_cache[2] = $event => _ctx.$emit('blur', $event))
26
+ }), [createElementVNode("div", {
27
+ class: normalizeClass(['contents', _ctx.loading && 'invisible'])
28
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */), _ctx.loading ? (openBlock(), createElementBlock("div", _hoisted_2, [_ctx.variant !== 'link' ? (openBlock(), createBlock(_component_OrLoader, {
29
+ key: 0,
30
+ variant: 'circular',
31
+ color: 'inherit',
32
+ size: 's'
33
+ })) : (openBlock(), createElementBlock(Fragment, {
34
+ key: 1
35
+ }, [createTextVNode(toDisplayString(_ctx.loadingText) + "… ", 1 /* TEXT */)], 64 /* STABLE_FRAGMENT */))])) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */, _hoisted_1);
36
+ }
37
+
38
+ script$1.render = render;
39
+ script$1.__file = "src/components/or-button-v3/OrButton.vue";
40
+
11
41
  var ConfirmType;
12
42
  (function (ConfirmType) {
13
43
  ConfirmType["D"] = "d";
@@ -59,8 +89,8 @@ const ConfirmFooterButtons = [
59
89
  var script = defineComponent({
60
90
  name: 'OrConfirm',
61
91
  components: {
62
- OrOverlay: script$1,
63
- OrButton: script$2,
92
+ OrOverlay: script$2,
93
+ OrButton: script$1,
64
94
  OrInput: script$3
65
95
  },
66
96
  props: {
@@ -4,7 +4,7 @@ import { s as styleInject } from './style-inject.es-4c6f2515.js';
4
4
 
5
5
  const _hoisted_1 = ["id", "type", "placeholder", "required", "disabled"];
6
6
  const _hoisted_2 = {
7
- class: /*#__PURE__*/normalizeClass(['layout-row', 'm-[-4px] md:m-[-2px]'])
7
+ class: /*#__PURE__*/normalizeClass(['layout-row'])
8
8
  };
9
9
  function render(_ctx, _cache, $props, $setup, $data, $options) {
10
10
  const _component_OrLabel = resolveComponent("OrLabel");
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, computed, watch } from 'vue';
2
2
  import { debouncedWatch } from '@vueuse/core';
3
- import './OrInput-e97211bb.js';
4
- import { s as script$1 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
3
+ import './OrInput-fa782fc1.js';
5
4
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
5
+ import { s as script$1 } from './OrInput.vue_vue_type_script_lang-f6d793d3.js';
6
6
  import { a as InputBoxSize } from './OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
7
7
 
8
8
  var script = defineComponent({
@@ -4,7 +4,7 @@ import { s as styleInject } from './style-inject.es-4c6f2515.js';
4
4
  import './OrHint-9592499e.js';
5
5
  import { s as script$2 } from './OrExpansionPanel.vue_vue_type_script_lang-7f9c6721.js';
6
6
  import './OrIcon-d878b768.js';
7
- import './OrInput-e97211bb.js';
7
+ import './OrInput-fa782fc1.js';
8
8
  import './OrInputBox-eb54d73d.js';
9
9
  import './OrLabel-c6873e79.js';
10
10
  import './OrMenuItem-4feaba6c.js';
@@ -1,14 +1,40 @@
1
1
  import { useResizeObserver } from '@vueuse/core';
2
- import { openBlock, createElementBlock, mergeProps, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
2
+ import { resolveComponent, openBlock, createElementBlock, mergeProps, createVNode, withCtx, createElementVNode, normalizeClass, withModifiers, renderSlot, defineComponent, ref, computed, reactive, watch, nextTick, onMounted } from 'vue';
3
3
  import './OrIcon-d878b768.js';
4
- import './OrMenu-f26e8e55.js';
4
+ import { s as script$1 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
5
5
  import './OrMenuItem-4feaba6c.js';
6
- import { s as script$1 } from './OrTab.vue_vue_type_script_lang-134ad9d1.js';
6
+ import { s as script$2 } from './OrTab.vue_vue_type_script_lang-134ad9d1.js';
7
7
  import { u as useClassAttribute } from './useClassAttribute-00888f78.js';
8
- import { s as script$2 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
9
- import { s as script$3 } from './OrMenu.vue_vue_type_script_lang-2446a69a.js';
8
+ import { s as script$3 } from './OrIcon.vue_vue_type_script_lang-a119a715.js';
10
9
  import { s as script$4 } from './OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
11
10
 
11
+ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
12
+ const _component_OrPopover = resolveComponent("OrPopover");
13
+ return openBlock(), createElementBlock("div", mergeProps({
14
+ ref: "root"
15
+ }, _ctx.$attrs, {
16
+ class: _ctx.rootStyles
17
+ }), [createVNode(_component_OrPopover, {
18
+ ref: "popover",
19
+ variant: 'auto',
20
+ trigger: _ctx.trigger,
21
+ placement: _ctx.placement,
22
+ "full-width": false,
23
+ "disable-default-styles": false,
24
+ "onUpdate:state": _cache[1] || (_cache[1] = $event => _ctx.$emit('update:state', $event))
25
+ }, {
26
+ default: withCtx(() => [createElementVNode("div", {
27
+ class: normalizeClass(_ctx.bodyStyles),
28
+ onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.onClick && _ctx.onClick(...args), ["stop"]))
29
+ }, [renderSlot(_ctx.$slots, "default")], 2 /* CLASS */)]),
30
+
31
+ _: 3 /* FORWARDED */
32
+ }, 8 /* PROPS */, ["trigger", "placement"])], 16 /* FULL_PROPS */);
33
+ }
34
+
35
+ script$1.render = render$1;
36
+ script$1.__file = "src/components/or-menu-v3/OrMenu.vue";
37
+
12
38
  const _hoisted_1 = ["selected"];
13
39
  function render(_ctx, _cache, $props, $setup, $data, $options) {
14
40
  return openBlock(), createElementBlock("div", mergeProps({
@@ -23,8 +49,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
23
49
  }), [renderSlot(_ctx.$slots, "default")], 16 /* FULL_PROPS */, _hoisted_1);
24
50
  }
25
51
 
26
- script$1.render = render;
27
- script$1.__file = "src/components/or-tab-v3/OrTab.vue";
52
+ script$2.render = render;
53
+ script$2.__file = "src/components/or-tab-v3/OrTab.vue";
28
54
 
29
55
  var TabsVariant;
30
56
  (function (TabsVariant) {
@@ -53,10 +79,10 @@ const TabsRootVariants = {
53
79
  var script = defineComponent({
54
80
  name: 'OrTabs',
55
81
  components: {
56
- OrIcon: script$2,
57
- OrMenu: script$3,
82
+ OrIcon: script$3,
83
+ OrMenu: script$1,
58
84
  OrMenuItem: script$4,
59
- OrTab: script$1
85
+ OrTab: script$2
60
86
  },
61
87
  inheritAttrs: false,
62
88
  props: {
@@ -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, s as OrButtonV3 } from '../OrButton.vue_vue_type_script_lang-3718b300.js';
9
9
  export { s as OrCard } from '../OrCard.vue_vue_type_script_lang-90ba001b.js';
10
10
  export { C as CARD_COLLECTION_LAYOUT, s as OrCardCollection } from '../OrCardCollection.vue_vue_type_script_lang-d8124dda.js';
11
- export { C as CardCollectionView, s as OrCardCollectionV3 } from '../OrCardCollection.vue_vue_type_script_lang-0e029303.js';
11
+ export { C as CardCollectionView, s as OrCardCollectionV3 } from '../OrCardCollection.vue_vue_type_script_lang-3993a015.js';
12
12
  export { s as OrCardV3 } from '../OrCard.vue_vue_type_script_lang-165de137.js';
13
13
  export { a as OrCarousel, s as OrCarouselItem } from '../OrCarouselItem.vue_vue_type_script_lang-ad286afc.js';
14
14
  export { s as OrCheckbox } from '../OrCheckbox.vue_vue_type_script_lang-d8a66818.js';
@@ -19,7 +19,7 @@ export { s as OrCode, O as OrCodeLanguages } from '../OrCode.vue_vue_type_script
19
19
  export { s as OrCollapse } from '../OrCollapse.vue_vue_type_script_lang-65cbb754.js';
20
20
  export { s as OrColorPicker, h as amber, n as black, b as blue, m as blueGrey, k as brown, c as cyan, j as deepOrange, d as deepPurple, g as green, i as indigo, l as lightBlue, e as lightGreen, f as lime, o as orange, p as pink, a as purple, r as red, t as teal, w as white, y as yellow } from '../OrColorPicker.vue_vue_type_script_lang-4141378d.js';
21
21
  export { s as OrConfirm } from '../OrConfirm.vue_vue_type_script_lang-0f16fc67.js';
22
- export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-18997376.js';
22
+ export { C as ConfirmType, s as OrConfirmV3 } from '../OrConfirm.vue_vue_type_script_lang-289b5600.js';
23
23
  export { D as DEFAULT_TEXT, s as OrDateTimePicker, a as OrDateTimePickerItemTypes, O as OrDateTimePickerTypes } from '../OrDateTimePicker.vue_vue_type_script_lang-7bfe5005.js';
24
24
  export { s as OrError } from '../OrError.vue_vue_type_script_lang-7c39e012.js';
25
25
  export { s as OrErrorTagV3 } from '../OrErrorTag.vue_vue_type_script_lang-4828c387.js';
@@ -63,10 +63,10 @@ export { s as OrProgressV3, P as ProgressColor, a as ProgressType } from '../OrP
63
63
  export { s as OrRadio } from '../OrRadio.vue_vue_type_script_lang-c956b54b.js';
64
64
  export { s as OrRadioGroup } from '../OrRadioGroup.vue_vue_type_script_lang-caea7bcb.js';
65
65
  export { s as OrRadioV3 } from '../OrRadio.vue_vue_type_script_lang-2e666a56.js';
66
- export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-147a1fb9.js';
66
+ export { s as OrSearchV3 } from '../OrSearch.vue_vue_type_script_lang-ed78b21f.js';
67
67
  export { s as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl.vue_vue_type_script_lang-579406f5.js';
68
68
  export { s as OrSelect } from '../OrSelect.vue_vue_type_script_lang-26c0a70a.js';
69
- export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-58b92fb0.js';
69
+ export { s as OrSelectV3 } from '../OrSelect.vue_vue_type_script_lang-c74a63e1.js';
70
70
  export { s as OrSidebar, O as OrSidebarSide } from '../OrSidebar.vue_vue_type_script_lang-7c55ac0a.js';
71
71
  export { O as OrSidebarPlacement, s as OrSidebarV3 } from '../OrSidebar.vue_vue_type_script_lang-ce0b152c.js';
72
72
  export { s as OrSkeletonCircle, a as OrSkeletonRect, b as OrSkeletonText, O as OrSkeletonTextSizes } from '../OrSkeletonText.vue_vue_type_script_lang-f3f989c3.js';
@@ -80,7 +80,7 @@ export { s as OrTab } from '../OrTab.vue_vue_type_script_lang-de7c7063.js';
80
80
  export { s as OrTabHeaderItem } from '../OrTabHeaderItem.vue_vue_type_script_lang-e1f29563.js';
81
81
  export { s as OrTabV3 } from '../OrTab.vue_vue_type_script_lang-134ad9d1.js';
82
82
  export { s as OrTabs } from '../OrTabs.vue_vue_type_script_lang-40e2a6e9.js';
83
- export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-61b79a5a.js';
83
+ export { s as OrTabsV3, T as TabsVariant } from '../OrTabs.vue_vue_type_script_lang-919b2021.js';
84
84
  export { s as OrTag } from '../OrTag.vue_vue_type_script_lang-8c526c11.js';
85
85
  export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag.vue_vue_type_script_lang-92d9fb12.js';
86
86
  export { s as OrTeleport } from '../OrTeleportVue3-012351e1.js';
@@ -106,10 +106,7 @@ import '../OrLoader-ee97fef4.js';
106
106
  import '../OrLoader-c4bbef2f.js';
107
107
  import '../OrIconButton-e637158e.js';
108
108
  import '../OrIconButton-4bd33e3c.js';
109
- import '../OrButton-8ab33d9d.js';
110
- import '../OrMenu-f26e8e55.js';
111
- import '../OrMenuItem-4feaba6c.js';
112
- import '../OrIcon-d878b768.js';
109
+ import '../OrInput-fa782fc1.js';
113
110
  import '../OrLabel-c6873e79.js';
114
111
  import '../OrLabel-e412c532.js';
115
112
  import '../OrError-b43ebad8.js';
@@ -120,8 +117,8 @@ import '../dom-d21d0a92.js';
120
117
  import '../OrFloating-b6672a37.js';
121
118
  import '../index-01519e46.js';
122
119
  import '../OrButton-ec723bb7.js';
123
- import '../OrInput-e97211bb.js';
124
120
  import '../OrCollapse-63e83681.js';
121
+ import '../OrIcon-d878b768.js';
125
122
  import '../floating-ui.dom.esm-83eba816.js';
126
123
  import '../OrHint-9592499e.js';
127
124
  import '../OrInlineInputBox-9d68ded1.js';
@@ -131,5 +128,6 @@ import '../v4-cf8987a3.js';
131
128
  import '../OrPopover-c462ce77.js';
132
129
  import '../useResponsive-9d397e2a.js';
133
130
  import '../useElevation-c8d5d3ba.js';
131
+ import '../OrMenuItem-4feaba6c.js';
134
132
  import '../dropdown-open-293d2de2.js';
135
133
  import '../useOverflow-2468b718.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, s as OrCardCollectionV3 } from '../../OrCardCollection.vue_vue_type_script_lang-0e029303.js';
1
+ export { C as CardCollectionView, s as OrCardCollectionV3 } from '../../OrCardCollection.vue_vue_type_script_lang-3993a015.js';
2
2
  import 'vue';
3
+ import '../../OrCard.vue_vue_type_script_lang-165de137.js';
4
+ import '../../useClassAttribute-00888f78.js';
3
5
  import '../../OrIconButton-4bd33e3c.js';
4
6
  import '../../OrIconButton.vue_vue_type_script_lang-641f6e06.js';
5
7
  import '../../OrIcon-d878b768.js';
6
8
  import '../../OrIcon.vue_vue_type_script_lang-a119a715.js';
7
- import '../../useClassAttribute-00888f78.js';
8
9
  import '../../OrTooltip.vue_vue_type_script_lang-67cc86ed.js';
9
10
  import '@vueuse/core';
10
11
  import '../../OrPopover-c462ce77.js';
@@ -15,16 +16,7 @@ import '../../OrOverlay.vue_vue_type_script_lang-cb3aad0c.js';
15
16
  import '../../OrTeleport.vue3.vue_vue_type_script_lang-4dc70cf1.js';
16
17
  import '../../useElevation-c8d5d3ba.js';
17
18
  import '../../useResponsive-9d397e2a.js';
18
- import '../../OrButton-8ab33d9d.js';
19
- import '../../OrButton.vue_vue_type_script_lang-3718b300.js';
20
- import '../../OrLoader-c4bbef2f.js';
21
- import '../../OrLoader.vue_vue_type_script_lang-5405040c.js';
22
- import '../../OrMenu-f26e8e55.js';
23
- import '../../OrMenu.vue_vue_type_script_lang-2446a69a.js';
24
- import '../../OrMenuItem-4feaba6c.js';
25
- import '../../OrMenuItem.vue_vue_type_script_lang-0ffaef05.js';
26
- import '../../OrSearch.vue_vue_type_script_lang-147a1fb9.js';
27
- import '../../OrInput-e97211bb.js';
19
+ import '../../OrInput-fa782fc1.js';
28
20
  import '../../OrInput.vue_vue_type_script_lang-f6d793d3.js';
29
21
  import '../../OrHint-9592499e.js';
30
22
  import '../../OrError.vue_vue_type_script_lang-cc6c135f.js';
@@ -34,3 +26,4 @@ import '../../OrInputBox.vue_vue_type_script_lang-5ee4ee45.js';
34
26
  import '../../OrLabel-c6873e79.js';
35
27
  import '../../OrLabel.vue_vue_type_script_lang-96f94c4e.js';
36
28
  import '../../style-inject.es-4c6f2515.js';
29
+ import '../../OrSortHeader.vue_vue_type_script_lang-75115125.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;