@onereach/ui-components 2.69.2-beta.2123.0 → 2.69.2-beta.2128.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 (123) hide show
  1. package/dist/bundled/v2/{OrAvatar-2fa559e1.js → OrAvatar-ae61bfb9.js} +41 -15
  2. package/dist/bundled/v2/{OrCard-29116e1f.js → OrCard-58a1ba3e.js} +2 -2
  3. package/dist/bundled/v2/OrCardCollection-a9a779ea.js +228 -0
  4. package/dist/bundled/v2/{OrSearch-a11b3621.js → OrSearch-9d402f56.js} +3 -9
  5. package/dist/bundled/v2/{OrSortHeader-9932d28f.js → OrSortHeader-396e6a7c.js} +2 -2
  6. package/dist/bundled/v2/components/index.js +5 -5
  7. package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  8. package/dist/bundled/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
  9. package/dist/bundled/v2/components/or-avatar-v3/index.js +2 -1
  10. package/dist/bundled/v2/components/or-avatar-v3/props.d.ts +2 -1
  11. package/dist/bundled/v2/components/or-avatar-v3/styles.d.ts +2 -0
  12. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  13. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  14. package/dist/bundled/v2/components/or-card-collection-v3/index.js +4 -7
  15. package/dist/bundled/v2/components/or-card-collection-v3/props.d.ts +1 -5
  16. package/dist/bundled/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  17. package/dist/bundled/v2/components/or-card-collection-v3/types.d.ts +3 -8
  18. package/dist/bundled/v2/components/or-card-v3/index.js +1 -1
  19. package/dist/bundled/v2/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  20. package/dist/bundled/v2/components/or-search-v3/index.js +1 -1
  21. package/dist/bundled/v2/components/or-sort-header-v3/index.js +1 -1
  22. package/dist/bundled/v2/index.js +6 -6
  23. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-22e46ce1.js → OrAvatar.vue_vue_type_script_lang-0426862b.js} +35 -13
  24. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-861158b5.js +164 -0
  25. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-85472b12.js → OrConfirm.vue_vue_type_script_lang-289b5600.js} +36 -6
  26. package/dist/bundled/v3/{OrIconButton-4bd33e3c.js → OrIconButton-1581013c.js} +1 -1
  27. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-641f6e06.js → OrIconButton.vue_vue_type_script_lang-f6f801ff.js} +1 -1
  28. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-3a8189f4.js → OrInlineInput.vue_vue_type_script_lang-f29483f4.js} +2 -2
  29. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-890b97ab.js → OrInlineTextarea.vue_vue_type_script_lang-cc40af48.js} +2 -2
  30. package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-f6d793d3.js +2 -2
  31. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-00a477f0.js → OrModal.vue_vue_type_script_lang-80a7b906.js} +2 -2
  32. package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-fbb35355.js +2 -2
  33. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-0ae8a6dd.js → OrSearch.vue_vue_type_script_lang-ed78b21f.js} +2 -8
  34. package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-15285ce4.js +1 -1
  35. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-61b79a5a.js → OrTabs.vue_vue_type_script_lang-919b2021.js} +36 -10
  36. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-92d9fb12.js → OrTag.vue_vue_type_script_lang-dc6a4011.js} +2 -2
  37. package/dist/bundled/v3/{OrToastContainer-afb51e5d.js → OrToastContainer-7c3c0b12.js} +1 -1
  38. package/dist/bundled/v3/components/index.js +15 -17
  39. package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  40. package/dist/bundled/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
  41. package/dist/bundled/v3/components/or-avatar-v3/index.js +3 -1
  42. package/dist/bundled/v3/components/or-avatar-v3/props.d.ts +2 -1
  43. package/dist/bundled/v3/components/or-avatar-v3/styles.d.ts +2 -0
  44. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  45. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  46. package/dist/bundled/v3/components/or-card-collection-v3/index.js +6 -13
  47. package/dist/bundled/v3/components/or-card-collection-v3/props.d.ts +1 -5
  48. package/dist/bundled/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  49. package/dist/bundled/v3/components/or-card-collection-v3/types.d.ts +3 -8
  50. package/dist/bundled/v3/components/or-confirm-v3/index.js +3 -4
  51. package/dist/bundled/v3/components/or-icon-button-v3/index.js +1 -1
  52. package/dist/bundled/v3/components/or-inline-input-v3/index.js +3 -3
  53. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +3 -3
  54. package/dist/bundled/v3/components/or-input-v3/index.js +2 -2
  55. package/dist/bundled/v3/components/or-modal-v3/index.js +3 -3
  56. package/dist/bundled/v3/components/or-notification-v3/index.js +2 -2
  57. package/dist/bundled/v3/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  58. package/dist/bundled/v3/components/or-search-v3/index.js +3 -3
  59. package/dist/bundled/v3/components/or-select-v3/index.js +3 -3
  60. package/dist/bundled/v3/components/or-tabs-v3/index.js +1 -2
  61. package/dist/bundled/v3/components/or-tag-v3/index.js +3 -3
  62. package/dist/bundled/v3/components/or-toast-v3/index.js +4 -4
  63. package/dist/bundled/v3/index.js +314 -339
  64. package/dist/bundled/v3/{types-6c5eee23.js → types-dcc78caa.js} +2 -2
  65. package/dist/esm/v2/{OrAvatar-0afdef36.js → OrAvatar-3d155af3.js} +41 -15
  66. package/dist/esm/v2/OrCardCollection-4f001551.js +227 -0
  67. package/dist/esm/v2/{OrSearch-62d91301.js → OrSearch-ddb7c1fe.js} +1 -7
  68. package/dist/esm/v2/components/index.js +3 -3
  69. package/dist/esm/v2/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  70. package/dist/esm/v2/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
  71. package/dist/esm/v2/components/or-avatar-v3/index.js +2 -1
  72. package/dist/esm/v2/components/or-avatar-v3/props.d.ts +2 -1
  73. package/dist/esm/v2/components/or-avatar-v3/styles.d.ts +2 -0
  74. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  75. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  76. package/dist/esm/v2/components/or-card-collection-v3/index.js +4 -7
  77. package/dist/esm/v2/components/or-card-collection-v3/props.d.ts +1 -5
  78. package/dist/esm/v2/components/or-card-collection-v3/styles.d.ts +2 -2
  79. package/dist/esm/v2/components/or-card-collection-v3/types.d.ts +3 -8
  80. package/dist/esm/v2/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  81. package/dist/esm/v2/components/or-search-v3/index.js +1 -1
  82. package/dist/esm/v2/index.js +3 -3
  83. package/dist/esm/v3/{OrAvatar-ef88d31c.js → OrAvatar-53a4429d.js} +43 -16
  84. package/dist/esm/v3/OrCardCollection-5a0febaf.js +198 -0
  85. package/dist/esm/v3/{OrSearch-aafb93b4.js → OrSearch-cdde55ce.js} +1 -7
  86. package/dist/esm/v3/components/index.js +3 -3
  87. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.stories3.d.ts +1 -1
  88. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +11 -0
  89. package/dist/esm/v3/components/or-avatar-v3/index.js +2 -1
  90. package/dist/esm/v3/components/or-avatar-v3/props.d.ts +2 -1
  91. package/dist/esm/v3/components/or-avatar-v3/styles.d.ts +2 -0
  92. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.stories3.d.ts +0 -5
  93. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +42 -67
  94. package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -7
  95. package/dist/esm/v3/components/or-card-collection-v3/props.d.ts +1 -5
  96. package/dist/esm/v3/components/or-card-collection-v3/styles.d.ts +2 -2
  97. package/dist/esm/v3/components/or-card-collection-v3/types.d.ts +3 -8
  98. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +0 -13
  99. package/dist/esm/v3/components/or-search-v3/index.js +1 -1
  100. package/dist/esm/v3/index.js +3 -3
  101. package/package.json +1 -1
  102. package/src/components/or-avatar-v3/OrAvatar.stories3.ts +9 -7
  103. package/src/components/or-avatar-v3/OrAvatar.vue +22 -2
  104. package/src/components/or-avatar-v3/props.ts +1 -0
  105. package/src/components/or-avatar-v3/styles.ts +49 -11
  106. package/src/components/or-card-collection-v3/OrCardCollection.stories3.ts +30 -230
  107. package/src/components/or-card-collection-v3/OrCardCollection.vue +77 -120
  108. package/src/components/or-card-collection-v3/props.ts +1 -14
  109. package/src/components/or-card-collection-v3/styles.ts +3 -3
  110. package/src/components/or-card-collection-v3/types.ts +3 -9
  111. package/src/components/or-search-v3/OrSearch.vue +1 -7
  112. package/dist/bundled/v2/OrCardCollection-773ae0db.js +0 -346
  113. package/dist/bundled/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
  114. package/dist/bundled/v3/OrButton-8ab33d9d.js +0 -33
  115. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-b983bda7.js +0 -228
  116. package/dist/bundled/v3/OrMenu-f26e8e55.js +0 -29
  117. package/dist/bundled/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
  118. package/dist/esm/v2/OrCardCollection-61c86bfc.js +0 -346
  119. package/dist/esm/v2/components/or-card-collection-v3/OrCardCollectionView.vue2.vue.d.ts +0 -35
  120. package/dist/esm/v3/OrCardCollection-fdc7848b.js +0 -289
  121. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollectionView.vue3.vue.d.ts +0 -35
  122. package/src/components/or-card-collection-v3/OrCardCollectionView.vue2.vue +0 -41
  123. package/src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue +0 -42
@@ -1,289 +0,0 @@
1
- import { defineComponent, computed, ref, watch } from 'vue-demi';
2
- import { u as useClassAttribute } from './useClassAttribute-47fdb016.js';
3
- import '@vueuse/core';
4
- import { s as script$2 } from './OrIconButton-1eebcafc.js';
5
- import { s as script$4 } from './OrMenu-840038cd.js';
6
- import './OrPopover-1075dd38.js';
7
- import { s as script$5 } from './OrMenuItem-9da279f6.js';
8
- import { s as script$6 } from './OrIcon-b195169c.js';
9
- import { openBlock, createElementBlock, normalizeClass, Fragment, renderList, renderSlot, mergeProps, createTextVNode, toDisplayString, resolveComponent, createElementVNode, createVNode, withCtx, createBlock, createCommentVNode, normalizeProps, guardReactiveProps } from 'vue';
10
- import { s as script$3 } from './OrButton-f4b9ee51.js';
11
- import { s as script$7 } from './OrSearch-aafb93b4.js';
12
- import './OrInputBox-5247ab25.js';
13
-
14
- const CardCollectionRoot = [
15
- // Layout
16
- 'layout-column',
17
- // Spacing
18
- 'gap-md'];
19
- const CardCollectionToolbar = [
20
- // Layout
21
- 'layout-row justify-between',
22
- // Typography
23
- 'typography-body-2-regular',
24
- // Theme
25
- 'theme-foreground-default', 'dark:theme-foreground-default-dark'];
26
- const CardCollectionToolbarPanel = [
27
- // Layout
28
- 'layout-row',
29
- // Spacing
30
- 'gap-lg+'];
31
- const CardCollectionContent = [
32
- // Layout
33
- 'grid',
34
- // Spacing
35
- 'gap-sm md:gap-md'];
36
- const CardCollectionContentViews = {
37
- 'grid': [
38
- // Layout
39
- 'sm:grid-cols-1', 'md:grid-cols-2', 'lg:grid-cols-4', 'xl:grid-cols-6'],
40
- 'list': []
41
- };
42
-
43
- var script$1 = defineComponent({
44
- name: 'OrCardCollectionView',
45
- props: {
46
- items: {
47
- type: Array,
48
- default: []
49
- },
50
- mode: {
51
- type: String,
52
- required: true
53
- }
54
- },
55
- setup(props) {
56
- const contentStyles = computed(() => [...CardCollectionContent, ...CardCollectionContentViews[props.mode]]);
57
- return {
58
- contentStyles
59
- };
60
- }
61
- });
62
-
63
- function render$1(_ctx, _cache, $props, $setup, $data, $options) {
64
- return openBlock(), createElementBlock("div", {
65
- class: normalizeClass(_ctx.contentStyles)
66
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index) => {
67
- return renderSlot(_ctx.$slots, "item", mergeProps({
68
- key: item.key || index
69
- }, {
70
- item,
71
- mode: _ctx.mode
72
- }), () => [createTextVNode(toDisplayString(item.key), 1 /* TEXT */)]);
73
- }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
74
- }
75
-
76
- script$1.render = render$1;
77
- script$1.__file = "src/components/or-card-collection-v3/OrCardCollectionView.vue3.vue";
78
-
79
- var DefaultCardCollectionViews;
80
- (function (DefaultCardCollectionViews) {
81
- DefaultCardCollectionViews["Grid"] = "grid";
82
- DefaultCardCollectionViews["List"] = "list";
83
- })(DefaultCardCollectionViews || (DefaultCardCollectionViews = {}));
84
- const gridView = {
85
- view: DefaultCardCollectionViews.Grid,
86
- icon: 'grid_view'
87
- };
88
- const listView = {
89
- view: DefaultCardCollectionViews.List,
90
- icon: 'view_agenda'
91
- };
92
- const defaultViewModes = [gridView, listView];
93
-
94
- var script = defineComponent({
95
- name: 'OrCardCollection',
96
- components: {
97
- OrCardCollectionView: script$1,
98
- OrIconButton: script$2,
99
- OrButton: script$3,
100
- OrMenu: script$4,
101
- OrMenuItem: script$5,
102
- OrIcon: script$6,
103
- OrSearch: script$7
104
- },
105
- inheritAttrs: false,
106
- props: {
107
- items: {
108
- type: Array,
109
- default: []
110
- },
111
- view: {
112
- type: String,
113
- default: gridView.view
114
- },
115
- viewModes: {
116
- type: Array,
117
- default: () => defaultViewModes
118
- },
119
- sort: {
120
- type: String,
121
- default: undefined
122
- },
123
- sortOptions: {
124
- type: Array,
125
- default: () => []
126
- },
127
- search: {
128
- type: String,
129
- default: ''
130
- }
131
- },
132
- emits: ['viewChange', 'sortChange', 'searchChange'],
133
- expose: ['root'],
134
- setup(props, context) {
135
- // Refs
136
- const root = ref();
137
- const sortMenu = ref();
138
- const sortButton = ref();
139
- // Styles
140
- const classAttribute = useClassAttribute();
141
- const rootStyles = computed(() => ['or-card-collection', ...CardCollectionRoot, classAttribute.value]);
142
- const toolbarStyles = computed(() => [...CardCollectionToolbar]);
143
- const toolbarPanelStyles = computed(() => [...CardCollectionToolbarPanel]);
144
- const sortLabel = computed(() => {
145
- var _a;
146
- return (_a = props.sortOptions.find(item => item.value === props.sort)) === null || _a === void 0 ? void 0 : _a.label;
147
- });
148
- // State
149
- const proxyView = ref(props.view);
150
- const proxySort = ref(props.sort);
151
- const proxySearch = ref(props.search);
152
- // Methods
153
- function switchView(view) {
154
- proxyView.value = view;
155
- }
156
- function handleSort(sort) {
157
- proxySort.value = sort;
158
- }
159
- function handleSearch(search) {
160
- proxySearch.value = search;
161
- }
162
- // Effects
163
- watch(() => props.view, value => {
164
- proxyView.value = value;
165
- });
166
- watch(proxyView, value => {
167
- context.emit('viewChange', value);
168
- });
169
- watch(() => props.sort, value => {
170
- proxySort.value = value;
171
- });
172
- watch(proxySort, value => {
173
- context.emit('sortChange', value);
174
- });
175
- watch(() => props.search, value => {
176
- proxySearch.value = value;
177
- });
178
- watch(proxySearch, value => {
179
- context.emit('searchChange', value);
180
- });
181
- return {
182
- root,
183
- sortMenu,
184
- sortButton,
185
- rootStyles,
186
- toolbarStyles,
187
- toolbarPanelStyles,
188
- proxyView,
189
- proxySort,
190
- proxySearch,
191
- sortLabel,
192
- switchView,
193
- handleSort,
194
- handleSearch
195
- };
196
- }
197
- });
198
-
199
- const _hoisted_1 = {
200
- class: "layout-row gap-sm"
201
- };
202
- function render(_ctx, _cache, $props, $setup, $data, $options) {
203
- const _component_OrIcon = resolveComponent("OrIcon");
204
- const _component_OrButton = resolveComponent("OrButton");
205
- const _component_OrMenuItem = resolveComponent("OrMenuItem");
206
- const _component_OrMenu = resolveComponent("OrMenu");
207
- const _component_OrSearch = resolveComponent("OrSearch");
208
- const _component_OrIconButton = resolveComponent("OrIconButton");
209
- const _component_OrCardCollectionView = resolveComponent("OrCardCollectionView");
210
- return openBlock(), createElementBlock("div", mergeProps({
211
- ref: "root"
212
- }, _ctx.$attrs, {
213
- class: _ctx.rootStyles
214
- }), [createElementVNode("div", {
215
- class: normalizeClass(_ctx.toolbarStyles)
216
- }, [createElementVNode("div", {
217
- class: normalizeClass(_ctx.toolbarPanelStyles)
218
- }, [_ctx.sortOptions.length ? (openBlock(), createElementBlock(Fragment, {
219
- key: 0
220
- }, [createVNode(_component_OrButton, {
221
- ref: "sortButton",
222
- variant: "link",
223
- color: "inherit",
224
- onClick: _cache[0] || (_cache[0] = $event => _ctx.sortMenu.toggle())
225
- }, {
226
- default: withCtx(() => [createTextVNode(toDisplayString(_ctx.sortLabel) + " ", 1 /* TEXT */), _ctx.sortMenu ? (openBlock(), createBlock(_component_OrIcon, {
227
- key: 0,
228
- icon: _ctx.sortMenu.isOpen ? 'arrow_drop_up' : 'arrow_drop_down'
229
- }, null, 8 /* PROPS */, ["icon"])) : createCommentVNode("v-if", true)]),
230
- _: 1 /* STABLE */
231
- }, 512 /* NEED_PATCH */), createVNode(_component_OrMenu, {
232
- ref: "sortMenu",
233
- trigger: _ctx.sortButton && _ctx.sortButton.root
234
- }, {
235
- default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortOptions, sortItem => {
236
- return openBlock(), createBlock(_component_OrMenuItem, {
237
- key: sortItem,
238
- onClick: $event => _ctx.handleSort(sortItem.value)
239
- }, {
240
- default: withCtx(() => [createTextVNode(toDisplayString(sortItem.label), 1 /* TEXT */)]),
241
-
242
- _: 2 /* DYNAMIC */
243
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
244
- }), 128 /* KEYED_FRAGMENT */))]),
245
-
246
- _: 1 /* STABLE */
247
- }, 8 /* PROPS */, ["trigger"])], 64 /* STABLE_FRAGMENT */)) : createCommentVNode("v-if", true)], 2 /* CLASS */), createElementVNode("div", {
248
- class: normalizeClass(_ctx.toolbarPanelStyles)
249
- }, [createVNode(_component_OrSearch, {
250
- modelValue: _ctx.proxySearch,
251
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.proxySearch = $event),
252
- class: "md:w-[350px]",
253
- size: "s",
254
- onSearch: _ctx.handleSearch
255
- }, null, 8 /* PROPS */, ["modelValue", "onSearch"]), createElementVNode("div", _hoisted_1, [_ctx.viewModes.length > 1 ? (openBlock(true), createElementBlock(Fragment, {
256
- key: 0
257
- }, renderList(_ctx.viewModes, viewOption => {
258
- return openBlock(), createBlock(_component_OrIconButton, {
259
- key: viewOption.view,
260
- icon: {
261
- icon: viewOption.icon,
262
- variant: viewOption.view === _ctx.proxyView ? 'filled' : 'outlined'
263
- },
264
- onClick: $event => _ctx.switchView(viewOption.view)
265
- }, null, 8 /* PROPS */, ["icon", "onClick"]);
266
- }), 128 /* KEYED_FRAGMENT */)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "addon")])], 2 /* CLASS */)], 2 /* CLASS */), renderSlot(_ctx.$slots, "header", normalizeProps(guardReactiveProps({
267
- items: _ctx.items,
268
- mode: _ctx.proxyView
269
- }))), _ctx.items.length ? renderSlot(_ctx.$slots, _ctx.proxyView, normalizeProps(mergeProps({
270
- key: 0
271
- }, {
272
- items: _ctx.items
273
- })), () => [createVNode(_component_OrCardCollectionView, {
274
- items: _ctx.items,
275
- mode: _ctx.proxyView
276
- }, {
277
- item: withCtx(props => [renderSlot(_ctx.$slots, "item", normalizeProps(guardReactiveProps(props)))]),
278
- _: 3 /* FORWARDED */
279
- }, 8 /* PROPS */, ["items", "mode"])]) : _ctx.items.length === 0 && _ctx.proxySearch.length > 0 ? renderSlot(_ctx.$slots, "noSearchResults", normalizeProps(mergeProps({
280
- key: 1
281
- }, {
282
- search: _ctx.proxySearch
283
- })), () => [createTextVNode(" No results ")]) : createCommentVNode("v-if", true)], 16 /* FULL_PROPS */);
284
- }
285
-
286
- script.render = render;
287
- script.__file = "src/components/or-card-collection-v3/OrCardCollection.vue";
288
-
289
- export { DefaultCardCollectionViews as D, defaultViewModes as d, gridView as g, listView as l, script as s };
@@ -1,35 +0,0 @@
1
- import { PropType } from 'vue-demi';
2
- import { CardCollectionItem } from './types';
3
- import { DefaultCardCollectionViews } 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<DefaultCardCollectionViews>;
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<DefaultCardCollectionViews>;
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: DefaultCardCollectionViews;
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: DefaultCardCollectionViews;
32
- } & {}, {
33
- items: CardCollectionItem[];
34
- }, true>);
35
- export default _default;
@@ -1,41 +0,0 @@
1
- <template>
2
- <div :class="contentStyles">
3
- <slot
4
- v-for="(item) in items"
5
- name="item"
6
- v-bind="{
7
- item,
8
- mode,
9
- }"
10
- >
11
- {{ item.key }}
12
- </slot>
13
- </div>
14
- </template>
15
- <script lang="ts">
16
- import { defineComponent, computed, PropType } from 'vue-demi';
17
- import { CardCollectionContent, CardCollectionContentViews } from './styles';
18
- import { CardCollectionItem } from './types';
19
- import { DefaultCardCollectionViews } from './props';
20
-
21
- export default defineComponent({
22
- name: 'OrCardCollectionView',
23
- props: {
24
- items: {
25
- type: Array as PropType<CardCollectionItem[]>,
26
- default: [] as CardCollectionItem[],
27
- },
28
- mode: {
29
- type: String as PropType<DefaultCardCollectionViews>,
30
- required: true,
31
- },
32
- },
33
- setup(props) {
34
- const contentStyles = computed(() => [
35
- ...CardCollectionContent,
36
- ...CardCollectionContentViews[props.mode],
37
- ]);
38
- return { contentStyles };
39
- },
40
- });
41
- </script>
@@ -1,42 +0,0 @@
1
- <template>
2
- <div :class="contentStyles">
3
- <slot
4
- v-for="(item, index) in items"
5
- :key="item.key || index"
6
- name="item"
7
- v-bind="{
8
- item,
9
- mode,
10
- }"
11
- >
12
- {{ item.key }}
13
- </slot>
14
- </div>
15
- </template>
16
- <script lang="ts">
17
- import { defineComponent, computed, PropType } from 'vue-demi';
18
- import { CardCollectionContent, CardCollectionContentViews } from './styles';
19
- import { CardCollectionItem } from './types';
20
- import { DefaultCardCollectionViews } from './props';
21
-
22
- export default defineComponent({
23
- name: 'OrCardCollectionView',
24
- props: {
25
- items: {
26
- type: Array as PropType<CardCollectionItem[]>,
27
- default: [] as CardCollectionItem[],
28
- },
29
- mode: {
30
- type: String as PropType<DefaultCardCollectionViews>,
31
- required: true,
32
- },
33
- },
34
- setup(props) {
35
- const contentStyles = computed(() => [
36
- ...CardCollectionContent,
37
- ...CardCollectionContentViews[props.mode],
38
- ]);
39
- return { contentStyles };
40
- },
41
- });
42
- </script>